/*!
 * jQuery JavaScript Library v1.11.0
 * 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: 2014-01-23T21:02Z
 */
(function(global,factory){if(typeof module==="object"&&typeof module.exports==="object"){
// For CommonJS and CommonJS-like environments where a proper window is present,
// execute the factory and get jQuery
// For environments that do not inherently posses a window with a document
// (such as Node.js), expose a jQuery-making factory as module.exports
// This accentuates the need for the creation of a real window
// e.g. var jQuery = require("jquery")(window);
// See ticket #14549 for more info
module.exports=global.document?factory(global,true):function(w){if(!w.document){throw new Error("jQuery requires a window with a document")}return factory(w)}}else{factory(global)}
// Pass this if window is not defined yet
})(typeof window!=="undefined"?window:this,function(window,noGlobal){
// Can't do this because several apps including ASP.NET trace
// the stack via arguments.caller.callee and Firefox dies if
// you try to trace through "use strict" call chains. (#13335)
// Support: Firefox 18+
//
var deletedIds=[];var slice=deletedIds.slice;var concat=deletedIds.concat;var push=deletedIds.push;var indexOf=deletedIds.indexOf;var class2type={};var toString=class2type.toString;var hasOwn=class2type.hasOwnProperty;var trim="".trim;var support={};var version="1.11.0",
// Define a local copy of jQuery
jQuery=function(selector,context){
// The jQuery object is actually just the init constructor 'enhanced'
// Need init if jQuery is called (just allow error to be thrown if not included)
return new jQuery.fn.init(selector,context)},
// Make sure we trim BOM and NBSP (here's looking at you, Safari 5.0 and IE)
rtrim=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
// Matches dashed string for camelizing
rmsPrefix=/^-ms-/,rdashAlpha=/-([\da-z])/gi,
// Used by jQuery.camelCase as callback to replace()
fcamelCase=function(all,letter){return letter.toUpperCase()};jQuery.fn=jQuery.prototype={
// The current version of jQuery being used
jquery:version,constructor:jQuery,
// Start with an empty selector
selector:"",
// The default length of a jQuery object is 0
length:0,toArray:function(){return slice.call(this)},
// Get the Nth element in the matched element set OR
// Get the whole matched element set as a clean array
get:function(num){return num!=null?
// Return a 'clean' array
num<0?this[num+this.length]:this[num]:
// Return just the object
slice.call(this)},
// Take an array of elements and push it onto the stack
// (returning the new matched element set)
pushStack:function(elems){
// Build a new jQuery matched element set
var ret=jQuery.merge(this.constructor(),elems);
// Add the old object onto the stack (as a reference)
ret.prevObject=this;ret.context=this.context;
// Return the newly-formed element set
return ret},
// Execute a callback for every element in the matched set.
// (You can seed the arguments with an array of args, but this is
// only used internally.)
each:function(callback,args){return jQuery.each(this,callback,args)},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem)}))},slice:function(){return this.pushStack(slice.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(i){var len=this.length,j=+i+(i<0?len:0);return this.pushStack(j>=0&&j<len?[this[j]]:[])},end:function(){return this.prevObject||this.constructor(null)},
// For internal use only.
// Behaves like an Array's method, not like a jQuery method.
push:push,sort:deletedIds.sort,splice:deletedIds.splice};jQuery.extend=jQuery.fn.extend=function(){var src,copyIsArray,copy,name,options,clone,target=arguments[0]||{},i=1,length=arguments.length,deep=false;
// Handle a deep copy situation
if(typeof target==="boolean"){deep=target;
// skip the boolean and the target
target=arguments[i]||{};i++}
// Handle case when target is a string or something (possible in deep copy)
if(typeof target!=="object"&&!jQuery.isFunction(target)){target={}}
// extend jQuery itself if only one argument is passed
if(i===length){target=this;i--}for(;i<length;i++){
// Only deal with non-null/undefined values
if((options=arguments[i])!=null){
// Extend the base object
for(name in options){src=target[name];copy=options[name];
// Prevent never-ending loop
if(target===copy){continue}
// Recurse if we're merging plain objects or arrays
if(deep&&copy&&(jQuery.isPlainObject(copy)||(copyIsArray=jQuery.isArray(copy)))){if(copyIsArray){copyIsArray=false;clone=src&&jQuery.isArray(src)?src:[]}else{clone=src&&jQuery.isPlainObject(src)?src:{}}
// Never move original objects, clone them
target[name]=jQuery.extend(deep,clone,copy);
// Don't bring in undefined values
}else if(copy!==undefined){target[name]=copy}}}}
// Return the modified object
return target};jQuery.extend({
// Unique for each copy of jQuery on the page
expando:"jQuery"+(version+Math.random()).replace(/\D/g,""),
// Assume jQuery is ready without the ready module
isReady:true,error:function(msg){throw new Error(msg)},noop:function(){},
// See test/unit/core.js for details concerning isFunction.
// Since version 1.3, DOM methods and functions like alert
// aren't supported. They return false on IE (#2968).
isFunction:function(obj){return jQuery.type(obj)==="function"},isArray:Array.isArray||function(obj){return jQuery.type(obj)==="array"},isWindow:function(obj){
/* jshint eqeqeq: false */
return obj!=null&&obj==obj.window},isNumeric:function(obj){
// parseFloat NaNs numeric-cast false positives (null|true|false|"")
// ...but misinterprets leading-number strings, particularly hex literals ("0x...")
// subtraction forces infinities to NaN
return obj-parseFloat(obj)>=0},isEmptyObject:function(obj){var name;for(name in obj){return false}return true},isPlainObject:function(obj){var key;
// Must be an Object.
// Because of IE, we also have to check the presence of the constructor property.
// Make sure that DOM nodes and window objects don't pass through, as well
if(!obj||jQuery.type(obj)!=="object"||obj.nodeType||jQuery.isWindow(obj)){return false}try{
// Not own constructor property must be Object
if(obj.constructor&&!hasOwn.call(obj,"constructor")&&!hasOwn.call(obj.constructor.prototype,"isPrototypeOf")){return false}}catch(e){
// IE8,9 Will throw exceptions on certain host objects #9897
return false}
// Support: IE<9
// Handle iteration over inherited properties before own properties.
if(support.ownLast){for(key in obj){return hasOwn.call(obj,key)}}
// Own properties are enumerated firstly, so to speed up,
// if last one is own, then all properties are own.
for(key in obj){}return key===undefined||hasOwn.call(obj,key)},type:function(obj){if(obj==null){return obj+""}return typeof obj==="object"||typeof obj==="function"?class2type[toString.call(obj)]||"object":typeof obj},
// Evaluates a script in a global context
// Workarounds based on findings by Jim Driscoll
// http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context
globalEval:function(data){if(data&&jQuery.trim(data)){
// We use execScript on Internet Explorer
// We use an anonymous function so that context is window
// rather than jQuery in Firefox
(window.execScript||function(data){window["eval"].call(window,data)})(data)}},
// Convert dashed to camelCase; used by the css and data modules
// Microsoft forgot to hump their vendor prefix (#9572)
camelCase:function(string){return string.replace(rmsPrefix,"ms-").replace(rdashAlpha,fcamelCase)},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toLowerCase()===name.toLowerCase()},
// args is for internal usage only
each:function(obj,callback,args){var value,i=0,length=obj.length,isArray=isArraylike(obj);if(args){if(isArray){for(;i<length;i++){value=callback.apply(obj[i],args);if(value===false){break}}}else{for(i in obj){value=callback.apply(obj[i],args);if(value===false){break}}}
// A special, fast, case for the most common use of each
}else{if(isArray){for(;i<length;i++){value=callback.call(obj[i],i,obj[i]);if(value===false){break}}}else{for(i in obj){value=callback.call(obj[i],i,obj[i]);if(value===false){break}}}}return obj},
// Use native String.trim function wherever possible
trim:trim&&!trim.call("\ufeff ")?function(text){return text==null?"":trim.call(text)}:
// Otherwise use our own trimming functionality
function(text){return text==null?"":(text+"").replace(rtrim,"")},
// results is for internal usage only
makeArray:function(arr,results){var ret=results||[];if(arr!=null){if(isArraylike(Object(arr))){jQuery.merge(ret,typeof arr==="string"?[arr]:arr)}else{push.call(ret,arr)}}return ret},inArray:function(elem,arr,i){var len;if(arr){if(indexOf){return indexOf.call(arr,elem,i)}len=arr.length;i=i?i<0?Math.max(0,len+i):i:0;for(;i<len;i++){
// Skip accessing in sparse arrays
if(i in arr&&arr[i]===elem){return i}}}return-1},merge:function(first,second){var len=+second.length,j=0,i=first.length;while(j<len){first[i++]=second[j++]}
// Support: IE<9
// Workaround casting of .length to NaN on otherwise arraylike objects (e.g., NodeLists)
if(len!==len){while(second[j]!==undefined){first[i++]=second[j++]}}first.length=i;return first},grep:function(elems,callback,invert){var callbackInverse,matches=[],i=0,length=elems.length,callbackExpect=!invert;
// Go through the array, only saving the items
// that pass the validator function
for(;i<length;i++){callbackInverse=!callback(elems[i],i);if(callbackInverse!==callbackExpect){matches.push(elems[i])}}return matches},
// arg is for internal usage only
map:function(elems,callback,arg){var value,i=0,length=elems.length,isArray=isArraylike(elems),ret=[];
// Go through the array, translating each of the items to their new values
if(isArray){for(;i<length;i++){value=callback(elems[i],i,arg);if(value!=null){ret.push(value)}}
// Go through every key on the object,
}else{for(i in elems){value=callback(elems[i],i,arg);if(value!=null){ret.push(value)}}}
// Flatten any nested arrays
return concat.apply([],ret)},
// A global GUID counter for objects
guid:1,
// Bind a function to a context, optionally partially applying any
// arguments.
proxy:function(fn,context){var args,proxy,tmp;if(typeof context==="string"){tmp=fn[context];context=fn;fn=tmp}
// Quick check to determine if target is callable, in the spec
// this throws a TypeError, but we will just return undefined.
if(!jQuery.isFunction(fn)){return undefined}
// Simulated bind
args=slice.call(arguments,2);proxy=function(){return fn.apply(context||this,args.concat(slice.call(arguments)))};
// Set the guid of unique handler to the same of original handler, so it can be removed
proxy.guid=fn.guid=fn.guid||jQuery.guid++;return proxy},now:function(){return+new Date},
// jQuery.support is not used in Core but other projects attach their
// properties to it so it needs to exist.
support:support});
// Populate the class2type map
jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(i,name){class2type["[object "+name+"]"]=name.toLowerCase()});function isArraylike(obj){var length=obj.length,type=jQuery.type(obj);if(type==="function"||jQuery.isWindow(obj)){return false}if(obj.nodeType===1&&length){return true}return type==="array"||length===0||typeof length==="number"&&length>0&&length-1 in obj}var Sizzle=
/*!
 * Sizzle CSS Selector Engine v1.10.16
 * http://sizzlejs.com/
 *
 * Copyright 2013 jQuery Foundation, Inc. and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2014-01-13
 */
function(window){var i,support,Expr,getText,isXML,compile,outermostContext,sortInput,hasDuplicate,
// Local document vars
setDocument,document,docElem,documentIsHTML,rbuggyQSA,rbuggyMatches,matches,contains,
// Instance-specific data
expando="sizzle"+-new Date,preferredDoc=window.document,dirruns=0,done=0,classCache=createCache(),tokenCache=createCache(),compilerCache=createCache(),sortOrder=function(a,b){if(a===b){hasDuplicate=true}return 0},
// General-purpose constants
strundefined=typeof undefined,MAX_NEGATIVE=1<<31,
// Instance methods
hasOwn={}.hasOwnProperty,arr=[],pop=arr.pop,push_native=arr.push,push=arr.push,slice=arr.slice,
// Use a stripped-down indexOf if we can't use a native one
indexOf=arr.indexOf||function(elem){var i=0,len=this.length;for(;i<len;i++){if(this[i]===elem){return i}}return-1},booleans="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
// Regular expressions
// Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace
whitespace="[\\x20\\t\\r\\n\\f]",
// http://www.w3.org/TR/css3-syntax/#characters
characterEncoding="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",
// Loosely modeled on CSS identifier characters
// An unquoted value should be a CSS identifier http://www.w3.org/TR/css3-selectors/#attribute-selectors
// Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
identifier=characterEncoding.replace("w","w#"),
// Acceptable operators http://www.w3.org/TR/selectors/#attribute-selectors
attributes="\\["+whitespace+"*("+characterEncoding+")"+whitespace+"*(?:([*^$|!~]?=)"+whitespace+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+identifier+")|)|)"+whitespace+"*\\]",
// Prefer arguments quoted,
//   then not containing pseudos/brackets,
//   then attribute selectors/non-parenthetical expressions,
//   then anything else
// These preferences are here to reduce the number of selectors
//   needing tokenize in the PSEUDO preFilter
pseudos=":("+characterEncoding+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+attributes.replace(3,8)+")*)|.*)\\)|)",
// Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
rtrim=new RegExp("^"+whitespace+"+|((?:^|[^\\\\])(?:\\\\.)*)"+whitespace+"+$","g"),rcomma=new RegExp("^"+whitespace+"*,"+whitespace+"*"),rcombinators=new RegExp("^"+whitespace+"*([>+~]|"+whitespace+")"+whitespace+"*"),rattributeQuotes=new RegExp("="+whitespace+"*([^\\]'\"]*?)"+whitespace+"*\\]","g"),rpseudo=new RegExp(pseudos),ridentifier=new RegExp("^"+identifier+"$"),matchExpr={ID:new RegExp("^#("+characterEncoding+")"),CLASS:new RegExp("^\\.("+characterEncoding+")"),TAG:new RegExp("^("+characterEncoding.replace("w","w*")+")"),ATTR:new RegExp("^"+attributes),PSEUDO:new RegExp("^"+pseudos),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+whitespace+"*(even|odd|(([+-]|)(\\d*)n|)"+whitespace+"*(?:([+-]|)"+whitespace+"*(\\d+)|))"+whitespace+"*\\)|)","i"),bool:new RegExp("^(?:"+booleans+")$","i"),
// For use in libraries implementing .is()
// We use this for POS matching in `select`
needsContext:new RegExp("^"+whitespace+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+whitespace+"*((?:-\\d)?\\d*)"+whitespace+"*\\)|)(?=[^-]|$)","i")},rinputs=/^(?:input|select|textarea|button)$/i,rheader=/^h\d$/i,rnative=/^[^{]+\{\s*\[native \w/,
// Easily-parseable/retrievable ID or TAG or CLASS selectors
rquickExpr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,rsibling=/[+~]/,rescape=/'|\\/g,
// CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters
runescape=new RegExp("\\\\([\\da-f]{1,6}"+whitespace+"?|("+whitespace+")|.)","ig"),funescape=function(_,escaped,escapedWhitespace){var high="0x"+escaped-65536;
// NaN means non-codepoint
// Support: Firefox
// Workaround erroneous numeric interpretation of +"0x"
return high!==high||escapedWhitespace?escaped:high<0?
// BMP codepoint
String.fromCharCode(high+65536):
// Supplemental Plane codepoint (surrogate pair)
String.fromCharCode(high>>10|55296,high&1023|56320)};
// Optimize for push.apply( _, NodeList )
try{push.apply(arr=slice.call(preferredDoc.childNodes),preferredDoc.childNodes);
// Support: Android<4.0
// Detect silently failing push.apply
arr[preferredDoc.childNodes.length].nodeType}catch(e){push={apply:arr.length?
// Leverage slice if possible
function(target,els){push_native.apply(target,slice.call(els))}:
// Support: IE<9
// Otherwise append directly
function(target,els){var j=target.length,i=0;
// Can't trust NodeList.length
while(target[j++]=els[i++]){}target.length=j-1}}}function Sizzle(selector,context,results,seed){var match,elem,m,nodeType,
// QSA vars
i,groups,old,nid,newContext,newSelector;if((context?context.ownerDocument||context:preferredDoc)!==document){setDocument(context)}context=context||document;results=results||[];if(!selector||typeof selector!=="string"){return results}if((nodeType=context.nodeType)!==1&&nodeType!==9){return[]}if(documentIsHTML&&!seed){
// Shortcuts
if(match=rquickExpr.exec(selector)){
// Speed-up: Sizzle("#ID")
if(m=match[1]){if(nodeType===9){elem=context.getElementById(m);
// Check parentNode to catch when Blackberry 4.6 returns
// nodes that are no longer in the document (jQuery #6963)
if(elem&&elem.parentNode){
// Handle the case where IE, Opera, and Webkit return items
// by name instead of ID
if(elem.id===m){results.push(elem);return results}}else{return results}}else{
// Context is not a document
if(context.ownerDocument&&(elem=context.ownerDocument.getElementById(m))&&contains(context,elem)&&elem.id===m){results.push(elem);return results}}
// Speed-up: Sizzle("TAG")
}else if(match[2]){push.apply(results,context.getElementsByTagName(selector));return results;
// Speed-up: Sizzle(".CLASS")
}else if((m=match[3])&&support.getElementsByClassName&&context.getElementsByClassName){push.apply(results,context.getElementsByClassName(m));return results}}
// QSA path
if(support.qsa&&(!rbuggyQSA||!rbuggyQSA.test(selector))){nid=old=expando;newContext=context;newSelector=nodeType===9&&selector;
// qSA works strangely on Element-rooted queries
// We can work around this by specifying an extra ID on the root
// and working up from there (Thanks to Andrew Dupont for the technique)
// IE 8 doesn't work on object elements
if(nodeType===1&&context.nodeName.toLowerCase()!=="object"){groups=tokenize(selector);if(old=context.getAttribute("id")){nid=old.replace(rescape,"\\$&")}else{context.setAttribute("id",nid)}nid="[id='"+nid+"'] ";i=groups.length;while(i--){groups[i]=nid+toSelector(groups[i])}newContext=rsibling.test(selector)&&testContext(context.parentNode)||context;newSelector=groups.join(",")}if(newSelector){try{push.apply(results,newContext.querySelectorAll(newSelector));return results}catch(qsaError){}finally{if(!old){context.removeAttribute("id")}}}}}
// All others
return select(selector.replace(rtrim,"$1"),context,results,seed)}
/**
 * Create key-value caches of limited size
 * @returns {Function(string, Object)} Returns the Object data after storing it on itself with
 *	property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)
 *	deleting the oldest entry
 */function createCache(){var keys=[];function cache(key,value){
// Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
if(keys.push(key+" ")>Expr.cacheLength){
// Only keep the most recent entries
delete cache[keys.shift()]}return cache[key+" "]=value}return cache}
/**
 * Mark a function for special use by Sizzle
 * @param {Function} fn The function to mark
 */function markFunction(fn){fn[expando]=true;return fn}
/**
 * Support testing using an element
 * @param {Function} fn Passed the created div and expects a boolean result
 */function assert(fn){var div=document.createElement("div");try{return!!fn(div)}catch(e){return false}finally{
// Remove from its parent by default
if(div.parentNode){div.parentNode.removeChild(div)}
// release memory in IE
div=null}}
/**
 * Adds the same handler for all of the specified attrs
 * @param {String} attrs Pipe-separated list of attributes
 * @param {Function} handler The method that will be applied
 */function addHandle(attrs,handler){var arr=attrs.split("|"),i=attrs.length;while(i--){Expr.attrHandle[arr[i]]=handler}}
/**
 * Checks document order of two siblings
 * @param {Element} a
 * @param {Element} b
 * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b
 */function siblingCheck(a,b){var cur=b&&a,diff=cur&&a.nodeType===1&&b.nodeType===1&&(~b.sourceIndex||MAX_NEGATIVE)-(~a.sourceIndex||MAX_NEGATIVE);
// Use IE sourceIndex if available on both nodes
if(diff){return diff}
// Check if b follows a
if(cur){while(cur=cur.nextSibling){if(cur===b){return-1}}}return a?1:-1}
/**
 * Returns a function to use in pseudos for input types
 * @param {String} type
 */function createInputPseudo(type){return function(elem){var name=elem.nodeName.toLowerCase();return name==="input"&&elem.type===type}}
/**
 * Returns a function to use in pseudos for buttons
 * @param {String} type
 */function createButtonPseudo(type){return function(elem){var name=elem.nodeName.toLowerCase();return(name==="input"||name==="button")&&elem.type===type}}
/**
 * Returns a function to use in pseudos for positionals
 * @param {Function} fn
 */function createPositionalPseudo(fn){return markFunction(function(argument){argument=+argument;return markFunction(function(seed,matches){var j,matchIndexes=fn([],seed.length,argument),i=matchIndexes.length;
// Match elements found at the specified indexes
while(i--){if(seed[j=matchIndexes[i]]){seed[j]=!(matches[j]=seed[j])}}})})}
/**
 * Checks a node for validity as a Sizzle context
 * @param {Element|Object=} context
 * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value
 */function testContext(context){return context&&typeof context.getElementsByTagName!==strundefined&&context}
// Expose support vars for convenience
support=Sizzle.support={};
/**
 * Detects XML nodes
 * @param {Element|Object} elem An element or a document
 * @returns {Boolean} True iff elem is a non-HTML XML node
 */isXML=Sizzle.isXML=function(elem){
// documentElement is verified for cases where it doesn't yet exist
// (such as loading iframes in IE - #4833)
var documentElement=elem&&(elem.ownerDocument||elem).documentElement;return documentElement?documentElement.nodeName!=="HTML":false};
/**
 * Sets document-related variables once based on the current document
 * @param {Element|Object} [doc] An element or document object to use to set the document
 * @returns {Object} Returns the current document
 */setDocument=Sizzle.setDocument=function(node){var hasCompare,doc=node?node.ownerDocument||node:preferredDoc,parent=doc.defaultView;
// If no document and documentElement is available, return
if(doc===document||doc.nodeType!==9||!doc.documentElement){return document}
// Set our document
document=doc;docElem=doc.documentElement;
// Support tests
documentIsHTML=!isXML(doc);
// Support: IE>8
// If iframe document is assigned to "document" variable and if iframe has been reloaded,
// IE will throw "permission denied" error when accessing "document" variable, see jQuery #13936
// IE6-8 do not support the defaultView property so parent will be undefined
if(parent&&parent!==parent.top){
// IE11 does not have attachEvent, so all must suffer
if(parent.addEventListener){parent.addEventListener("unload",function(){setDocument()},false)}else if(parent.attachEvent){parent.attachEvent("onunload",function(){setDocument()})}}
/* Attributes
	---------------------------------------------------------------------- */
// Support: IE<8
// Verify that getAttribute really returns attributes and not properties (excepting IE8 booleans)
support.attributes=assert(function(div){div.className="i";return!div.getAttribute("className")});
/* getElement(s)By*
	---------------------------------------------------------------------- */
// Check if getElementsByTagName("*") returns only elements
support.getElementsByTagName=assert(function(div){div.appendChild(doc.createComment(""));return!div.getElementsByTagName("*").length});
// Check if getElementsByClassName can be trusted
support.getElementsByClassName=rnative.test(doc.getElementsByClassName)&&assert(function(div){div.innerHTML="<div class='a'></div><div class='a i'></div>";
// Support: Safari<4
// Catch class over-caching
div.firstChild.className="i";
// Support: Opera<10
// Catch gEBCN failure to find non-leading classes
return div.getElementsByClassName("i").length===2});
// Support: IE<10
// Check if getElementById returns elements by name
// The broken getElementById methods don't pick up programatically-set names,
// so use a roundabout getElementsByName test
support.getById=assert(function(div){docElem.appendChild(div).id=expando;return!doc.getElementsByName||!doc.getElementsByName(expando).length});
// ID find and filter
if(support.getById){Expr.find["ID"]=function(id,context){if(typeof context.getElementById!==strundefined&&documentIsHTML){var m=context.getElementById(id);
// Check parentNode to catch when Blackberry 4.6 returns
// nodes that are no longer in the document #6963
return m&&m.parentNode?[m]:[]}};Expr.filter["ID"]=function(id){var attrId=id.replace(runescape,funescape);return function(elem){return elem.getAttribute("id")===attrId}}}else{
// Support: IE6/7
// getElementById is not reliable as a find shortcut
delete Expr.find["ID"];Expr.filter["ID"]=function(id){var attrId=id.replace(runescape,funescape);return function(elem){var node=typeof elem.getAttributeNode!==strundefined&&elem.getAttributeNode("id");return node&&node.value===attrId}}}
// Tag
Expr.find["TAG"]=support.getElementsByTagName?function(tag,context){if(typeof context.getElementsByTagName!==strundefined){return context.getElementsByTagName(tag)}}:function(tag,context){var elem,tmp=[],i=0,results=context.getElementsByTagName(tag);
// Filter out possible comments
if(tag==="*"){while(elem=results[i++]){if(elem.nodeType===1){tmp.push(elem)}}return tmp}return results};
// Class
Expr.find["CLASS"]=support.getElementsByClassName&&function(className,context){if(typeof context.getElementsByClassName!==strundefined&&documentIsHTML){return context.getElementsByClassName(className)}};
/* QSA/matchesSelector
	---------------------------------------------------------------------- */
// QSA and matchesSelector support
// matchesSelector(:active) reports false when true (IE9/Opera 11.5)
rbuggyMatches=[];
// qSa(:focus) reports false when true (Chrome 21)
// We allow this because of a bug in IE8/9 that throws an error
// whenever `document.activeElement` is accessed on an iframe
// So, we allow :focus to pass through QSA all the time to avoid the IE error
// See http://bugs.jquery.com/ticket/13378
rbuggyQSA=[];if(support.qsa=rnative.test(doc.querySelectorAll)){
// Build QSA regex
// Regex strategy adopted from Diego Perini
assert(function(div){
// Select is set to empty string on purpose
// This is to test IE's treatment of not explicitly
// setting a boolean content attribute,
// since its presence should be enough
// http://bugs.jquery.com/ticket/12359
div.innerHTML="<select t=''><option selected=''></option></select>";
// Support: IE8, Opera 10-12
// Nothing should be selected when empty strings follow ^= or $= or *=
if(div.querySelectorAll("[t^='']").length){rbuggyQSA.push("[*^$]="+whitespace+"*(?:''|\"\")")}
// Support: IE8
// Boolean attributes and "value" are not treated correctly
if(!div.querySelectorAll("[selected]").length){rbuggyQSA.push("\\["+whitespace+"*(?:value|"+booleans+")")}
// Webkit/Opera - :checked should return selected option elements
// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
// IE8 throws error here and will not see later tests
if(!div.querySelectorAll(":checked").length){rbuggyQSA.push(":checked")}});assert(function(div){
// Support: Windows 8 Native Apps
// The type and name attributes are restricted during .innerHTML assignment
var input=doc.createElement("input");input.setAttribute("type","hidden");div.appendChild(input).setAttribute("name","D");
// Support: IE8
// Enforce case-sensitivity of name attribute
if(div.querySelectorAll("[name=d]").length){rbuggyQSA.push("name"+whitespace+"*[*^$|!~]?=")}
// FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)
// IE8 throws error here and will not see later tests
if(!div.querySelectorAll(":enabled").length){rbuggyQSA.push(":enabled",":disabled")}
// Opera 10-11 does not throw on post-comma invalid pseudos
div.querySelectorAll("*,:x");rbuggyQSA.push(",.*:")})}if(support.matchesSelector=rnative.test(matches=docElem.webkitMatchesSelector||docElem.mozMatchesSelector||docElem.oMatchesSelector||docElem.msMatchesSelector)){assert(function(div){
// Check to see if it's possible to do matchesSelector
// on a disconnected node (IE 9)
support.disconnectedMatch=matches.call(div,"div");
// This should fail with an exception
// Gecko does not error, returns false instead
matches.call(div,"[s!='']:x");rbuggyMatches.push("!=",pseudos)})}rbuggyQSA=rbuggyQSA.length&&new RegExp(rbuggyQSA.join("|"));rbuggyMatches=rbuggyMatches.length&&new RegExp(rbuggyMatches.join("|"));
/* Contains
	---------------------------------------------------------------------- */hasCompare=rnative.test(docElem.compareDocumentPosition);
// Element contains another
// Purposefully does not implement inclusive descendent
// As in, an element does not contain itself
contains=hasCompare||rnative.test(docElem.contains)?function(a,b){var adown=a.nodeType===9?a.documentElement:a,bup=b&&b.parentNode;return a===bup||!!(bup&&bup.nodeType===1&&(adown.contains?adown.contains(bup):a.compareDocumentPosition&&a.compareDocumentPosition(bup)&16))}:function(a,b){if(b){while(b=b.parentNode){if(b===a){return true}}}return false};
/* Sorting
	---------------------------------------------------------------------- */
// Document order sorting
sortOrder=hasCompare?function(a,b){
// Flag for duplicate removal
if(a===b){hasDuplicate=true;return 0}
// Sort on method existence if only one input has compareDocumentPosition
var compare=!a.compareDocumentPosition-!b.compareDocumentPosition;if(compare){return compare}
// Calculate position if both inputs belong to the same document
compare=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):
// Otherwise we know they are disconnected
1;
// Disconnected nodes
if(compare&1||!support.sortDetached&&b.compareDocumentPosition(a)===compare){
// Choose the first element that is related to our preferred document
if(a===doc||a.ownerDocument===preferredDoc&&contains(preferredDoc,a)){return-1}if(b===doc||b.ownerDocument===preferredDoc&&contains(preferredDoc,b)){return 1}
// Maintain original order
return sortInput?indexOf.call(sortInput,a)-indexOf.call(sortInput,b):0}return compare&4?-1:1}:function(a,b){
// Exit early if the nodes are identical
if(a===b){hasDuplicate=true;return 0}var cur,i=0,aup=a.parentNode,bup=b.parentNode,ap=[a],bp=[b];
// Parentless nodes are either documents or disconnected
if(!aup||!bup){return a===doc?-1:b===doc?1:aup?-1:bup?1:sortInput?indexOf.call(sortInput,a)-indexOf.call(sortInput,b):0;
// If the nodes are siblings, we can do a quick check
}else if(aup===bup){return siblingCheck(a,b)}
// Otherwise we need full lists of their ancestors for comparison
cur=a;while(cur=cur.parentNode){ap.unshift(cur)}cur=b;while(cur=cur.parentNode){bp.unshift(cur)}
// Walk down the tree looking for a discrepancy
while(ap[i]===bp[i]){i++}return i?
// Do a sibling check if the nodes have a common ancestor
siblingCheck(ap[i],bp[i]):
// Otherwise nodes in our document sort first
ap[i]===preferredDoc?-1:bp[i]===preferredDoc?1:0};return doc};Sizzle.matches=function(expr,elements){return Sizzle(expr,null,null,elements)};Sizzle.matchesSelector=function(elem,expr){
// Set document vars if needed
if((elem.ownerDocument||elem)!==document){setDocument(elem)}
// Make sure that attribute selectors are quoted
expr=expr.replace(rattributeQuotes,"='$1']");if(support.matchesSelector&&documentIsHTML&&(!rbuggyMatches||!rbuggyMatches.test(expr))&&(!rbuggyQSA||!rbuggyQSA.test(expr))){try{var ret=matches.call(elem,expr);
// IE 9's matchesSelector returns false on disconnected nodes
if(ret||support.disconnectedMatch||
// As well, disconnected nodes are said to be in a document
// fragment in IE 9
elem.document&&elem.document.nodeType!==11){return ret}}catch(e){}}return Sizzle(expr,document,null,[elem]).length>0};Sizzle.contains=function(context,elem){
// Set document vars if needed
if((context.ownerDocument||context)!==document){setDocument(context)}return contains(context,elem)};Sizzle.attr=function(elem,name){
// Set document vars if needed
if((elem.ownerDocument||elem)!==document){setDocument(elem)}var fn=Expr.attrHandle[name.toLowerCase()],
// Don't get fooled by Object.prototype properties (jQuery #13807)
val=fn&&hasOwn.call(Expr.attrHandle,name.toLowerCase())?fn(elem,name,!documentIsHTML):undefined;return val!==undefined?val:support.attributes||!documentIsHTML?elem.getAttribute(name):(val=elem.getAttributeNode(name))&&val.specified?val.value:null};Sizzle.error=function(msg){throw new Error("Syntax error, unrecognized expression: "+msg)};
/**
 * Document sorting and removing duplicates
 * @param {ArrayLike} results
 */Sizzle.uniqueSort=function(results){var elem,duplicates=[],j=0,i=0;
// Unless we *know* we can detect duplicates, assume their presence
hasDuplicate=!support.detectDuplicates;sortInput=!support.sortStable&&results.slice(0);results.sort(sortOrder);if(hasDuplicate){while(elem=results[i++]){if(elem===results[i]){j=duplicates.push(i)}}while(j--){results.splice(duplicates[j],1)}}
// Clear input after sorting to release objects
// See https://github.com/jquery/sizzle/pull/225
sortInput=null;return results};
/**
 * Utility function for retrieving the text value of an array of DOM nodes
 * @param {Array|Element} elem
 */getText=Sizzle.getText=function(elem){var node,ret="",i=0,nodeType=elem.nodeType;if(!nodeType){
// If no nodeType, this is expected to be an array
while(node=elem[i++]){
// Do not traverse comment nodes
ret+=getText(node)}}else if(nodeType===1||nodeType===9||nodeType===11){
// Use textContent for elements
// innerText usage removed for consistency of new lines (jQuery #11153)
if(typeof elem.textContent==="string"){return elem.textContent}else{
// Traverse its children
for(elem=elem.firstChild;elem;elem=elem.nextSibling){ret+=getText(elem)}}}else if(nodeType===3||nodeType===4){return elem.nodeValue}
// Do not include comment or processing instruction nodes
return ret};Expr=Sizzle.selectors={
// Can be adjusted by the user
cacheLength:50,createPseudo:markFunction,match:matchExpr,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:true}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:true},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(match){match[1]=match[1].replace(runescape,funescape);
// Move the given value to match[3] whether quoted or unquoted
match[3]=(match[4]||match[5]||"").replace(runescape,funescape);if(match[2]==="~="){match[3]=" "+match[3]+" "}return match.slice(0,4)},CHILD:function(match){
/* matches from matchExpr["CHILD"]
				1 type (only|nth|...)
				2 what (child|of-type)
				3 argument (even|odd|\d*|\d*n([+-]\d+)?|...)
				4 xn-component of xn+y argument ([+-]?\d*n|)
				5 sign of xn-component
				6 x of xn-component
				7 sign of y-component
				8 y of y-component
			*/
match[1]=match[1].toLowerCase();if(match[1].slice(0,3)==="nth"){
// nth-* requires argument
if(!match[3]){Sizzle.error(match[0])}
// numeric x and y parameters for Expr.filter.CHILD
// remember that false/true cast respectively to 0/1
match[4]=+(match[4]?match[5]+(match[6]||1):2*(match[3]==="even"||match[3]==="odd"));match[5]=+(match[7]+match[8]||match[3]==="odd");
// other types prohibit arguments
}else if(match[3]){Sizzle.error(match[0])}return match},PSEUDO:function(match){var excess,unquoted=!match[5]&&match[2];if(matchExpr["CHILD"].test(match[0])){return null}
// Accept quoted arguments as-is
if(match[3]&&match[4]!==undefined){match[2]=match[4];
// Strip excess characters from unquoted arguments
}else if(unquoted&&rpseudo.test(unquoted)&&(
// Get excess from tokenize (recursively)
excess=tokenize(unquoted,true))&&(
// advance to the next closing parenthesis
excess=unquoted.indexOf(")",unquoted.length-excess)-unquoted.length)){
// excess is a negative index
match[0]=match[0].slice(0,excess);match[2]=unquoted.slice(0,excess)}
// Return only captures needed by the pseudo filter method (type and argument)
return match.slice(0,3)}},filter:{TAG:function(nodeNameSelector){var nodeName=nodeNameSelector.replace(runescape,funescape).toLowerCase();return nodeNameSelector==="*"?function(){return true}:function(elem){return elem.nodeName&&elem.nodeName.toLowerCase()===nodeName}},CLASS:function(className){var pattern=classCache[className+" "];return pattern||(pattern=new RegExp("(^|"+whitespace+")"+className+"("+whitespace+"|$)"))&&classCache(className,function(elem){return pattern.test(typeof elem.className==="string"&&elem.className||typeof elem.getAttribute!==strundefined&&elem.getAttribute("class")||"")})},ATTR:function(name,operator,check){return function(elem){var result=Sizzle.attr(elem,name);if(result==null){return operator==="!="}if(!operator){return true}result+="";return operator==="="?result===check:operator==="!="?result!==check:operator==="^="?check&&result.indexOf(check)===0:operator==="*="?check&&result.indexOf(check)>-1:operator==="$="?check&&result.slice(-check.length)===check:operator==="~="?(" "+result+" ").indexOf(check)>-1:operator==="|="?result===check||result.slice(0,check.length+1)===check+"-":false}},CHILD:function(type,what,argument,first,last){var simple=type.slice(0,3)!=="nth",forward=type.slice(-4)!=="last",ofType=what==="of-type";return first===1&&last===0?
// Shortcut for :nth-*(n)
function(elem){return!!elem.parentNode}:function(elem,context,xml){var cache,outerCache,node,diff,nodeIndex,start,dir=simple!==forward?"nextSibling":"previousSibling",parent=elem.parentNode,name=ofType&&elem.nodeName.toLowerCase(),useCache=!xml&&!ofType;if(parent){
// :(first|last|only)-(child|of-type)
if(simple){while(dir){node=elem;while(node=node[dir]){if(ofType?node.nodeName.toLowerCase()===name:node.nodeType===1){return false}}
// Reverse direction for :only-* (if we haven't yet done so)
start=dir=type==="only"&&!start&&"nextSibling"}return true}start=[forward?parent.firstChild:parent.lastChild];
// non-xml :nth-child(...) stores cache data on `parent`
if(forward&&useCache){
// Seek `elem` from a previously-cached index
outerCache=parent[expando]||(parent[expando]={});cache=outerCache[type]||[];nodeIndex=cache[0]===dirruns&&cache[1];diff=cache[0]===dirruns&&cache[2];node=nodeIndex&&parent.childNodes[nodeIndex];while(node=++nodeIndex&&node&&node[dir]||(
// Fallback to seeking `elem` from the start
diff=nodeIndex=0)||start.pop()){
// When found, cache indexes on `parent` and break
if(node.nodeType===1&&++diff&&node===elem){outerCache[type]=[dirruns,nodeIndex,diff];break}}
// Use previously-cached element index if available
}else if(useCache&&(cache=(elem[expando]||(elem[expando]={}))[type])&&cache[0]===dirruns){diff=cache[1];
// xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...)
}else{
// Use the same loop as above to seek `elem` from the start
while(node=++nodeIndex&&node&&node[dir]||(diff=nodeIndex=0)||start.pop()){if((ofType?node.nodeName.toLowerCase()===name:node.nodeType===1)&&++diff){
// Cache the index of each encountered element
if(useCache){(node[expando]||(node[expando]={}))[type]=[dirruns,diff]}if(node===elem){break}}}}
// Incorporate the offset, then check against cycle size
diff-=last;return diff===first||diff%first===0&&diff/first>=0}}},PSEUDO:function(pseudo,argument){
// pseudo-class names are case-insensitive
// http://www.w3.org/TR/selectors/#pseudo-classes
// Prioritize by case sensitivity in case custom pseudos are added with uppercase letters
// Remember that setFilters inherits from pseudos
var args,fn=Expr.pseudos[pseudo]||Expr.setFilters[pseudo.toLowerCase()]||Sizzle.error("unsupported pseudo: "+pseudo);
// The user may use createPseudo to indicate that
// arguments are needed to create the filter function
// just as Sizzle does
if(fn[expando]){return fn(argument)}
// But maintain support for old signatures
if(fn.length>1){args=[pseudo,pseudo,"",argument];return Expr.setFilters.hasOwnProperty(pseudo.toLowerCase())?markFunction(function(seed,matches){var idx,matched=fn(seed,argument),i=matched.length;while(i--){idx=indexOf.call(seed,matched[i]);seed[idx]=!(matches[idx]=matched[i])}}):function(elem){return fn(elem,0,args)}}return fn}},pseudos:{
// Potentially complex pseudos
not:markFunction(function(selector){
// Trim the selector passed to compile
// to avoid treating leading and trailing
// spaces as combinators
var input=[],results=[],matcher=compile(selector.replace(rtrim,"$1"));return matcher[expando]?markFunction(function(seed,matches,context,xml){var elem,unmatched=matcher(seed,null,xml,[]),i=seed.length;
// Match elements unmatched by `matcher`
while(i--){if(elem=unmatched[i]){seed[i]=!(matches[i]=elem)}}}):function(elem,context,xml){input[0]=elem;matcher(input,null,xml,results);return!results.pop()}}),has:markFunction(function(selector){return function(elem){return Sizzle(selector,elem).length>0}}),contains:markFunction(function(text){return function(elem){return(elem.textContent||elem.innerText||getText(elem)).indexOf(text)>-1}}),
// "Whether an element is represented by a :lang() selector
// is based solely on the element's language value
// being equal to the identifier C,
// or beginning with the identifier C immediately followed by "-".
// The matching of C against the element's language value is performed case-insensitively.
// The identifier C does not have to be a valid language name."
// http://www.w3.org/TR/selectors/#lang-pseudo
lang:markFunction(function(lang){
// lang value must be a valid identifier
if(!ridentifier.test(lang||"")){Sizzle.error("unsupported lang: "+lang)}lang=lang.replace(runescape,funescape).toLowerCase();return function(elem){var elemLang;do{if(elemLang=documentIsHTML?elem.lang:elem.getAttribute("xml:lang")||elem.getAttribute("lang")){elemLang=elemLang.toLowerCase();return elemLang===lang||elemLang.indexOf(lang+"-")===0}}while((elem=elem.parentNode)&&elem.nodeType===1);return false}}),
// Miscellaneous
target:function(elem){var hash=window.location&&window.location.hash;return hash&&hash.slice(1)===elem.id},root:function(elem){return elem===docElem},focus:function(elem){return elem===document.activeElement&&(!document.hasFocus||document.hasFocus())&&!!(elem.type||elem.href||~elem.tabIndex)},
// Boolean properties
enabled:function(elem){return elem.disabled===false},disabled:function(elem){return elem.disabled===true},checked:function(elem){
// In CSS3, :checked should return both checked and selected elements
// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
var nodeName=elem.nodeName.toLowerCase();return nodeName==="input"&&!!elem.checked||nodeName==="option"&&!!elem.selected},selected:function(elem){
// Accessing this property makes selected-by-default
// options in Safari work properly
if(elem.parentNode){elem.parentNode.selectedIndex}return elem.selected===true},
// Contents
empty:function(elem){
// http://www.w3.org/TR/selectors/#empty-pseudo
// :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),
//   but not by others (comment: 8; processing instruction: 7; etc.)
// nodeType < 6 works because attributes (2) do not appear as children
for(elem=elem.firstChild;elem;elem=elem.nextSibling){if(elem.nodeType<6){return false}}return true},parent:function(elem){return!Expr.pseudos["empty"](elem)},
// Element/input types
header:function(elem){return rheader.test(elem.nodeName)},input:function(elem){return rinputs.test(elem.nodeName)},button:function(elem){var name=elem.nodeName.toLowerCase();return name==="input"&&elem.type==="button"||name==="button"},text:function(elem){var attr;return elem.nodeName.toLowerCase()==="input"&&elem.type==="text"&&(
// Support: IE<8
// New HTML5 attribute values (e.g., "search") appear with elem.type === "text"
(attr=elem.getAttribute("type"))==null||attr.toLowerCase()==="text")},
// Position-in-collection
first:createPositionalPseudo(function(){return[0]}),last:createPositionalPseudo(function(matchIndexes,length){return[length-1]}),eq:createPositionalPseudo(function(matchIndexes,length,argument){return[argument<0?argument+length:argument]}),even:createPositionalPseudo(function(matchIndexes,length){var i=0;for(;i<length;i+=2){matchIndexes.push(i)}return matchIndexes}),odd:createPositionalPseudo(function(matchIndexes,length){var i=1;for(;i<length;i+=2){matchIndexes.push(i)}return matchIndexes}),lt:createPositionalPseudo(function(matchIndexes,length,argument){var i=argument<0?argument+length:argument;for(;--i>=0;){matchIndexes.push(i)}return matchIndexes}),gt:createPositionalPseudo(function(matchIndexes,length,argument){var i=argument<0?argument+length:argument;for(;++i<length;){matchIndexes.push(i)}return matchIndexes})}};Expr.pseudos["nth"]=Expr.pseudos["eq"];
// Add button/input type pseudos
for(i in{radio:true,checkbox:true,file:true,password:true,image:true}){Expr.pseudos[i]=createInputPseudo(i)}for(i in{submit:true,reset:true}){Expr.pseudos[i]=createButtonPseudo(i)}
// Easy API for creating new setFilters
function setFilters(){}setFilters.prototype=Expr.filters=Expr.pseudos;Expr.setFilters=new setFilters;function tokenize(selector,parseOnly){var matched,match,tokens,type,soFar,groups,preFilters,cached=tokenCache[selector+" "];if(cached){return parseOnly?0:cached.slice(0)}soFar=selector;groups=[];preFilters=Expr.preFilter;while(soFar){
// Comma and first run
if(!matched||(match=rcomma.exec(soFar))){if(match){
// Don't consume trailing commas as valid
soFar=soFar.slice(match[0].length)||soFar}groups.push(tokens=[])}matched=false;
// Combinators
if(match=rcombinators.exec(soFar)){matched=match.shift();tokens.push({value:matched,
// Cast descendant combinators to space
type:match[0].replace(rtrim," ")});soFar=soFar.slice(matched.length)}
// Filters
for(type in Expr.filter){if((match=matchExpr[type].exec(soFar))&&(!preFilters[type]||(match=preFilters[type](match)))){matched=match.shift();tokens.push({value:matched,type:type,matches:match});soFar=soFar.slice(matched.length)}}if(!matched){break}}
// Return the length of the invalid excess
// if we're just parsing
// Otherwise, throw an error or return tokens
return parseOnly?soFar.length:soFar?Sizzle.error(selector):
// Cache the tokens
tokenCache(selector,groups).slice(0)}function toSelector(tokens){var i=0,len=tokens.length,selector="";for(;i<len;i++){selector+=tokens[i].value}return selector}function addCombinator(matcher,combinator,base){var dir=combinator.dir,checkNonElements=base&&dir==="parentNode",doneName=done++;return combinator.first?
// Check against closest ancestor/preceding element
function(elem,context,xml){while(elem=elem[dir]){if(elem.nodeType===1||checkNonElements){return matcher(elem,context,xml)}}}:
// Check against all ancestor/preceding elements
function(elem,context,xml){var oldCache,outerCache,newCache=[dirruns,doneName];
// We can't set arbitrary data on XML nodes, so they don't benefit from dir caching
if(xml){while(elem=elem[dir]){if(elem.nodeType===1||checkNonElements){if(matcher(elem,context,xml)){return true}}}}else{while(elem=elem[dir]){if(elem.nodeType===1||checkNonElements){outerCache=elem[expando]||(elem[expando]={});if((oldCache=outerCache[dir])&&oldCache[0]===dirruns&&oldCache[1]===doneName){
// Assign to newCache so results back-propagate to previous elements
return newCache[2]=oldCache[2]}else{
// Reuse newcache so results back-propagate to previous elements
outerCache[dir]=newCache;
// A match means we're done; a fail means we have to keep checking
if(newCache[2]=matcher(elem,context,xml)){return true}}}}}}}function elementMatcher(matchers){return matchers.length>1?function(elem,context,xml){var i=matchers.length;while(i--){if(!matchers[i](elem,context,xml)){return false}}return true}:matchers[0]}function condense(unmatched,map,filter,context,xml){var elem,newUnmatched=[],i=0,len=unmatched.length,mapped=map!=null;for(;i<len;i++){if(elem=unmatched[i]){if(!filter||filter(elem,context,xml)){newUnmatched.push(elem);if(mapped){map.push(i)}}}}return newUnmatched}function setMatcher(preFilter,selector,matcher,postFilter,postFinder,postSelector){if(postFilter&&!postFilter[expando]){postFilter=setMatcher(postFilter)}if(postFinder&&!postFinder[expando]){postFinder=setMatcher(postFinder,postSelector)}return markFunction(function(seed,results,context,xml){var temp,i,elem,preMap=[],postMap=[],preexisting=results.length,
// Get initial elements from seed or context
elems=seed||multipleContexts(selector||"*",context.nodeType?[context]:context,[]),
// Prefilter to get matcher input, preserving a map for seed-results synchronization
matcherIn=preFilter&&(seed||!selector)?condense(elems,preMap,preFilter,context,xml):elems,matcherOut=matcher?
// If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,
postFinder||(seed?preFilter:preexisting||postFilter)?
// ...intermediate processing is necessary
[]:
// ...otherwise use results directly
results:matcherIn;
// Find primary matches
if(matcher){matcher(matcherIn,matcherOut,context,xml)}
// Apply postFilter
if(postFilter){temp=condense(matcherOut,postMap);postFilter(temp,[],context,xml);
// Un-match failing elements by moving them back to matcherIn
i=temp.length;while(i--){if(elem=temp[i]){matcherOut[postMap[i]]=!(matcherIn[postMap[i]]=elem)}}}if(seed){if(postFinder||preFilter){if(postFinder){
// Get the final matcherOut by condensing this intermediate into postFinder contexts
temp=[];i=matcherOut.length;while(i--){if(elem=matcherOut[i]){
// Restore matcherIn since elem is not yet a final match
temp.push(matcherIn[i]=elem)}}postFinder(null,matcherOut=[],temp,xml)}
// Move matched elements from seed to results to keep them synchronized
i=matcherOut.length;while(i--){if((elem=matcherOut[i])&&(temp=postFinder?indexOf.call(seed,elem):preMap[i])>-1){seed[temp]=!(results[temp]=elem)}}}
// Add elements to results, through postFinder if defined
}else{matcherOut=condense(matcherOut===results?matcherOut.splice(preexisting,matcherOut.length):matcherOut);if(postFinder){postFinder(null,results,matcherOut,xml)}else{push.apply(results,matcherOut)}}})}function matcherFromTokens(tokens){var checkContext,matcher,j,len=tokens.length,leadingRelative=Expr.relative[tokens[0].type],implicitRelative=leadingRelative||Expr.relative[" "],i=leadingRelative?1:0,
// The foundational matcher ensures that elements are reachable from top-level context(s)
matchContext=addCombinator(function(elem){return elem===checkContext},implicitRelative,true),matchAnyContext=addCombinator(function(elem){return indexOf.call(checkContext,elem)>-1},implicitRelative,true),matchers=[function(elem,context,xml){return!leadingRelative&&(xml||context!==outermostContext)||((checkContext=context).nodeType?matchContext(elem,context,xml):matchAnyContext(elem,context,xml))}];for(;i<len;i++){if(matcher=Expr.relative[tokens[i].type]){matchers=[addCombinator(elementMatcher(matchers),matcher)]}else{matcher=Expr.filter[tokens[i].type].apply(null,tokens[i].matches);
// Return special upon seeing a positional matcher
if(matcher[expando]){
// Find the next relative operator (if any) for proper handling
j=++i;for(;j<len;j++){if(Expr.relative[tokens[j].type]){break}}return setMatcher(i>1&&elementMatcher(matchers),i>1&&toSelector(
// If the preceding token was a descendant combinator, insert an implicit any-element `*`
tokens.slice(0,i-1).concat({value:tokens[i-2].type===" "?"*":""})).replace(rtrim,"$1"),matcher,i<j&&matcherFromTokens(tokens.slice(i,j)),j<len&&matcherFromTokens(tokens=tokens.slice(j)),j<len&&toSelector(tokens))}matchers.push(matcher)}}return elementMatcher(matchers)}function matcherFromGroupMatchers(elementMatchers,setMatchers){var bySet=setMatchers.length>0,byElement=elementMatchers.length>0,superMatcher=function(seed,context,xml,results,outermost){var elem,j,matcher,matchedCount=0,i="0",unmatched=seed&&[],setMatched=[],contextBackup=outermostContext,
// We must always have either seed elements or outermost context
elems=seed||byElement&&Expr.find["TAG"]("*",outermost),
// Use integer dirruns iff this is the outermost matcher
dirrunsUnique=dirruns+=contextBackup==null?1:Math.random()||.1,len=elems.length;if(outermost){outermostContext=context!==document&&context}
// Add elements passing elementMatchers directly to results
// Keep `i` a string if there are no elements so `matchedCount` will be "00" below
// Support: IE<9, Safari
// Tolerate NodeList properties (IE: "length"; Safari: <number>) matching elements by id
for(;i!==len&&(elem=elems[i])!=null;i++){if(byElement&&elem){j=0;while(matcher=elementMatchers[j++]){if(matcher(elem,context,xml)){results.push(elem);break}}if(outermost){dirruns=dirrunsUnique}}
// Track unmatched elements for set filters
if(bySet){
// They will have gone through all possible matchers
if(elem=!matcher&&elem){matchedCount--}
// Lengthen the array for every element, matched or not
if(seed){unmatched.push(elem)}}}
// Apply set filters to unmatched elements
matchedCount+=i;if(bySet&&i!==matchedCount){j=0;while(matcher=setMatchers[j++]){matcher(unmatched,setMatched,context,xml)}if(seed){
// Reintegrate element matches to eliminate the need for sorting
if(matchedCount>0){while(i--){if(!(unmatched[i]||setMatched[i])){setMatched[i]=pop.call(results)}}}
// Discard index placeholder values to get only actual matches
setMatched=condense(setMatched)}
// Add matches to results
push.apply(results,setMatched);
// Seedless set matches succeeding multiple successful matchers stipulate sorting
if(outermost&&!seed&&setMatched.length>0&&matchedCount+setMatchers.length>1){Sizzle.uniqueSort(results)}}
// Override manipulation of globals by nested matchers
if(outermost){dirruns=dirrunsUnique;outermostContext=contextBackup}return unmatched};return bySet?markFunction(superMatcher):superMatcher}compile=Sizzle.compile=function(selector,group/* Internal Use Only */){var i,setMatchers=[],elementMatchers=[],cached=compilerCache[selector+" "];if(!cached){
// Generate a function of recursive functions that can be used to check each element
if(!group){group=tokenize(selector)}i=group.length;while(i--){cached=matcherFromTokens(group[i]);if(cached[expando]){setMatchers.push(cached)}else{elementMatchers.push(cached)}}
// Cache the compiled function
cached=compilerCache(selector,matcherFromGroupMatchers(elementMatchers,setMatchers))}return cached};function multipleContexts(selector,contexts,results){var i=0,len=contexts.length;for(;i<len;i++){Sizzle(selector,contexts[i],results)}return results}function select(selector,context,results,seed){var i,tokens,token,type,find,match=tokenize(selector);if(!seed){
// Try to minimize operations if there is only one group
if(match.length===1){
// Take a shortcut and set the context if the root selector is an ID
tokens=match[0]=match[0].slice(0);if(tokens.length>2&&(token=tokens[0]).type==="ID"&&support.getById&&context.nodeType===9&&documentIsHTML&&Expr.relative[tokens[1].type]){context=(Expr.find["ID"](token.matches[0].replace(runescape,funescape),context)||[])[0];if(!context){return results}selector=selector.slice(tokens.shift().value.length)}
// Fetch a seed set for right-to-left matching
i=matchExpr["needsContext"].test(selector)?0:tokens.length;while(i--){token=tokens[i];
// Abort if we hit a combinator
if(Expr.relative[type=token.type]){break}if(find=Expr.find[type]){
// Search, expanding context for leading sibling combinators
if(seed=find(token.matches[0].replace(runescape,funescape),rsibling.test(tokens[0].type)&&testContext(context.parentNode)||context)){
// If seed is empty or no tokens remain, we can return early
tokens.splice(i,1);selector=seed.length&&toSelector(tokens);if(!selector){push.apply(results,seed);return results}break}}}}}
// Compile and execute a filtering function
// Provide `match` to avoid retokenization if we modified the selector above
compile(selector,match)(seed,context,!documentIsHTML,results,rsibling.test(selector)&&testContext(context.parentNode)||context);return results}
// One-time assignments
// Sort stability
support.sortStable=expando.split("").sort(sortOrder).join("")===expando;
// Support: Chrome<14
// Always assume duplicates if they aren't passed to the comparison function
support.detectDuplicates=!!hasDuplicate;
// Initialize against the default document
setDocument();
// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)
// Detached nodes confoundingly follow *each other*
support.sortDetached=assert(function(div1){
// Should return 1, but returns 4 (following)
return div1.compareDocumentPosition(document.createElement("div"))&1});
// Support: IE<8
// Prevent attribute/property "interpolation"
// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
if(!assert(function(div){div.innerHTML="<a href='#'></a>";return div.firstChild.getAttribute("href")==="#"})){addHandle("type|href|height|width",function(elem,name,isXML){if(!isXML){return elem.getAttribute(name,name.toLowerCase()==="type"?1:2)}})}
// Support: IE<9
// Use defaultValue in place of getAttribute("value")
if(!support.attributes||!assert(function(div){div.innerHTML="<input/>";div.firstChild.setAttribute("value","");return div.firstChild.getAttribute("value")===""})){addHandle("value",function(elem,name,isXML){if(!isXML&&elem.nodeName.toLowerCase()==="input"){return elem.defaultValue}})}
// Support: IE<9
// Use getAttributeNode to fetch booleans when getAttribute lies
if(!assert(function(div){return div.getAttribute("disabled")==null})){addHandle(booleans,function(elem,name,isXML){var val;if(!isXML){return elem[name]===true?name.toLowerCase():(val=elem.getAttributeNode(name))&&val.specified?val.value:null}})}return Sizzle}(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;var rsingleTag=/^<(\w+)\s*\/?>(?:<\/\1>|)$/;var risSimple=/^.[^:#\[\.,]*$/;
// Implement the identical functionality for filter and not
function winnow(elements,qualifier,not){if(jQuery.isFunction(qualifier)){return jQuery.grep(elements,function(elem,i){
/* jshint -W018 */
return!!qualifier.call(elem,i,elem)!==not})}if(qualifier.nodeType){return jQuery.grep(elements,function(elem){return elem===qualifier!==not})}if(typeof qualifier==="string"){if(risSimple.test(qualifier)){return jQuery.filter(qualifier,elements,not)}qualifier=jQuery.filter(qualifier,elements)}return jQuery.grep(elements,function(elem){return jQuery.inArray(elem,qualifier)>=0!==not})}jQuery.filter=function(expr,elems,not){var elem=elems[0];if(not){expr=":not("+expr+")"}return elems.length===1&&elem.nodeType===1?jQuery.find.matchesSelector(elem,expr)?[elem]:[]:jQuery.find.matches(expr,jQuery.grep(elems,function(elem){return elem.nodeType===1}))};jQuery.fn.extend({find:function(selector){var i,ret=[],self=this,len=self.length;if(typeof selector!=="string"){return this.pushStack(jQuery(selector).filter(function(){for(i=0;i<len;i++){if(jQuery.contains(self[i],this)){return true}}}))}for(i=0;i<len;i++){jQuery.find(selector,self[i],ret)}
// Needed because $( selector, context ) becomes $( context ).find( selector )
ret=this.pushStack(len>1?jQuery.unique(ret):ret);ret.selector=this.selector?this.selector+" "+selector:selector;return ret},filter:function(selector){return this.pushStack(winnow(this,selector||[],false))},not:function(selector){return this.pushStack(winnow(this,selector||[],true))},is:function(selector){return!!winnow(this,
// If this is a positional/relative selector, check membership in the returned set
// so $("p:first").is("p:last") won't return true for a doc with two "p".
typeof selector==="string"&&rneedsContext.test(selector)?jQuery(selector):selector||[],false).length}});
// Initialize a jQuery object
// A central reference to the root jQuery(document)
var rootjQuery,
// Use the correct document accordingly with window argument (sandbox)
document=window.document,
// A simple way to check for HTML strings
// Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
// Strict HTML recognition (#11290: must start with <)
rquickExpr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,init=jQuery.fn.init=function(selector,context){var match,elem;
// HANDLE: $(""), $(null), $(undefined), $(false)
if(!selector){return this}
// Handle HTML strings
if(typeof selector==="string"){if(selector.charAt(0)==="<"&&selector.charAt(selector.length-1)===">"&&selector.length>=3){
// Assume that strings that start and end with <> are HTML and skip the regex check
match=[null,selector,null]}else{match=rquickExpr.exec(selector)}
// Match html or make sure no context is specified for #id
if(match&&(match[1]||!context)){
// HANDLE: $(html) -> $(array)
if(match[1]){context=context instanceof jQuery?context[0]:context;
// scripts is true for back-compat
// Intentionally let the error be thrown if parseHTML is not present
jQuery.merge(this,jQuery.parseHTML(match[1],context&&context.nodeType?context.ownerDocument||context:document,true));
// HANDLE: $(html, props)
if(rsingleTag.test(match[1])&&jQuery.isPlainObject(context)){for(match in context){
// Properties of context are called as methods if possible
if(jQuery.isFunction(this[match])){this[match](context[match]);
// ...and otherwise set as attributes
}else{this.attr(match,context[match])}}}return this;
// HANDLE: $(#id)
}else{elem=document.getElementById(match[2]);
// Check parentNode to catch when Blackberry 4.6 returns
// nodes that are no longer in the document #6963
if(elem&&elem.parentNode){
// Handle the case where IE and Opera return items
// by name instead of ID
if(elem.id!==match[2]){return rootjQuery.find(selector)}
// Otherwise, we inject the element directly into the jQuery object
this.length=1;this[0]=elem}this.context=document;this.selector=selector;return this}
// HANDLE: $(expr, $(...))
}else if(!context||context.jquery){return(context||rootjQuery).find(selector);
// HANDLE: $(expr, context)
// (which is just equivalent to: $(context).find(expr)
}else{return this.constructor(context).find(selector)}
// HANDLE: $(DOMElement)
}else if(selector.nodeType){this.context=this[0]=selector;this.length=1;return this;
// HANDLE: $(function)
// Shortcut for document ready
}else if(jQuery.isFunction(selector)){return typeof rootjQuery.ready!=="undefined"?rootjQuery.ready(selector):
// Execute immediately if ready is not present
selector(jQuery)}if(selector.selector!==undefined){this.selector=selector.selector;this.context=selector.context}return jQuery.makeArray(selector,this)};
// Give the init function the jQuery prototype for later instantiation
init.prototype=jQuery.fn;
// Initialize central reference
rootjQuery=jQuery(document);var rparentsprev=/^(?:parents|prev(?:Until|All))/,
// methods guaranteed to produce a unique set when starting from a unique set
guaranteedUnique={children:true,contents:true,next:true,prev:true};jQuery.extend({dir:function(elem,dir,until){var matched=[],cur=elem[dir];while(cur&&cur.nodeType!==9&&(until===undefined||cur.nodeType!==1||!jQuery(cur).is(until))){if(cur.nodeType===1){matched.push(cur)}cur=cur[dir]}return matched},sibling:function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType===1&&n!==elem){r.push(n)}}return r}});jQuery.fn.extend({has:function(target){var i,targets=jQuery(target,this),len=targets.length;return this.filter(function(){for(i=0;i<len;i++){if(jQuery.contains(this,targets[i])){return true}}})},closest:function(selectors,context){var cur,i=0,l=this.length,matched=[],pos=rneedsContext.test(selectors)||typeof selectors!=="string"?jQuery(selectors,context||this.context):0;for(;i<l;i++){for(cur=this[i];cur&&cur!==context;cur=cur.parentNode){
// Always skip document fragments
if(cur.nodeType<11&&(pos?pos.index(cur)>-1:
// Don't pass non-elements to Sizzle
cur.nodeType===1&&jQuery.find.matchesSelector(cur,selectors))){matched.push(cur);break}}}return this.pushStack(matched.length>1?jQuery.unique(matched):matched)},
// Determine the position of an element within
// the matched set of elements
index:function(elem){
// No argument, return index in parent
if(!elem){return this[0]&&this[0].parentNode?this.first().prevAll().length:-1}
// index in selector
if(typeof elem==="string"){return jQuery.inArray(this[0],jQuery(elem))}
// Locate the position of the desired element
return jQuery.inArray(
// If it receives a jQuery object, the first element is used
elem.jquery?elem[0]:elem,this)},add:function(selector,context){return this.pushStack(jQuery.unique(jQuery.merge(this.get(),jQuery(selector,context))))},addBack:function(selector){return this.add(selector==null?this.prevObject:this.prevObject.filter(selector))}});function sibling(cur,dir){do{cur=cur[dir]}while(cur&&cur.nodeType!==1);return cur}jQuery.each({parent:function(elem){var parent=elem.parentNode;return parent&&parent.nodeType!==11?parent:null},parents:function(elem){return jQuery.dir(elem,"parentNode")},parentsUntil:function(elem,i,until){return jQuery.dir(elem,"parentNode",until)},next:function(elem){return sibling(elem,"nextSibling")},prev:function(elem){return sibling(elem,"previousSibling")},nextAll:function(elem){return jQuery.dir(elem,"nextSibling")},prevAll:function(elem){return jQuery.dir(elem,"previousSibling")},nextUntil:function(elem,i,until){return jQuery.dir(elem,"nextSibling",until)},prevUntil:function(elem,i,until){return jQuery.dir(elem,"previousSibling",until)},siblings:function(elem){return jQuery.sibling((elem.parentNode||{}).firstChild,elem)},children:function(elem){return jQuery.sibling(elem.firstChild)},contents:function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.merge([],elem.childNodes)}},function(name,fn){jQuery.fn[name]=function(until,selector){var ret=jQuery.map(this,fn,until);if(name.slice(-5)!=="Until"){selector=until}if(selector&&typeof selector==="string"){ret=jQuery.filter(selector,ret)}if(this.length>1){
// Remove duplicates
if(!guaranteedUnique[name]){ret=jQuery.unique(ret)}
// Reverse order for parents* and prev-derivatives
if(rparentsprev.test(name)){ret=ret.reverse()}}return this.pushStack(ret)}});var rnotwhite=/\S+/g;
// String to Object options format cache
var optionsCache={};
// Convert String-formatted options into Object-formatted ones and store in cache
function createOptions(options){var object=optionsCache[options]={};jQuery.each(options.match(rnotwhite)||[],function(_,flag){object[flag]=true});return object}
/*
 * Create a callback list using the following parameters:
 *
 *	options: an optional list of space-separated options that will change how
 *			the callback list behaves or a more traditional option object
 *
 * By default a callback list will act like an event callback list and can be
 * "fired" multiple times.
 *
 * Possible options:
 *
 *	once:			will ensure the callback list can only be fired once (like a Deferred)
 *
 *	memory:			will keep track of previous values and will call any callback added
 *					after the list has been fired right away with the latest "memorized"
 *					values (like a Deferred)
 *
 *	unique:			will ensure a callback can only be added once (no duplicate in the list)
 *
 *	stopOnFalse:	interrupt callings when a callback returns false
 *
 */jQuery.Callbacks=function(options){
// Convert options from String-formatted to Object-formatted if needed
// (we check in cache first)
options=typeof options==="string"?optionsCache[options]||createOptions(options):jQuery.extend({},options);var// Flag to know if list is currently firing
firing,
// Last fire value (for non-forgettable lists)
memory,
// Flag to know if list was already fired
fired,
// End of the loop when firing
firingLength,
// Index of currently firing callback (modified by remove if needed)
firingIndex,
// First callback to fire (used internally by add and fireWith)
firingStart,
// Actual callback list
list=[],
// Stack of fire calls for repeatable lists
stack=!options.once&&[],
// Fire callbacks
fire=function(data){memory=options.memory&&data;fired=true;firingIndex=firingStart||0;firingStart=0;firingLength=list.length;firing=true;for(;list&&firingIndex<firingLength;firingIndex++){if(list[firingIndex].apply(data[0],data[1])===false&&options.stopOnFalse){memory=false;// To prevent further calls using add
break}}firing=false;if(list){if(stack){if(stack.length){fire(stack.shift())}}else if(memory){list=[]}else{self.disable()}}},
// Actual Callbacks object
self={
// Add a callback or a collection of callbacks to the list
add:function(){if(list){
// First, we save the current length
var start=list.length;(function add(args){jQuery.each(args,function(_,arg){var type=jQuery.type(arg);if(type==="function"){if(!options.unique||!self.has(arg)){list.push(arg)}}else if(arg&&arg.length&&type!=="string"){
// Inspect recursively
add(arg)}})})(arguments);
// Do we need to add the callbacks to the
// current firing batch?
if(firing){firingLength=list.length;
// With memory, if we're not firing then
// we should call right away
}else if(memory){firingStart=start;fire(memory)}}return this},
// Remove a callback from the list
remove:function(){if(list){jQuery.each(arguments,function(_,arg){var index;while((index=jQuery.inArray(arg,list,index))>-1){list.splice(index,1);
// Handle firing indexes
if(firing){if(index<=firingLength){firingLength--}if(index<=firingIndex){firingIndex--}}}})}return this},
// Check if a given callback is in the list.
// If no argument is given, return whether or not list has callbacks attached.
has:function(fn){return fn?jQuery.inArray(fn,list)>-1:!!(list&&list.length)},
// Remove all callbacks from the list
empty:function(){list=[];firingLength=0;return this},
// Have the list do nothing anymore
disable:function(){list=stack=memory=undefined;return this},
// Is it disabled?
disabled:function(){return!list},
// Lock the list in its current state
lock:function(){stack=undefined;if(!memory){self.disable()}return this},
// Is it locked?
locked:function(){return!stack},
// Call all callbacks with the given context and arguments
fireWith:function(context,args){if(list&&(!fired||stack)){args=args||[];args=[context,args.slice?args.slice():args];if(firing){stack.push(args)}else{fire(args)}}return this},
// Call all the callbacks with the given arguments
fire:function(){self.fireWith(this,arguments);return this},
// To know if the callbacks have already been called at least once
fired:function(){return!!fired}};return self};jQuery.extend({Deferred:function(func){var tuples=[
// action, add listener, listener list, final state
["resolve","done",jQuery.Callbacks("once memory"),"resolved"],["reject","fail",jQuery.Callbacks("once memory"),"rejected"],["notify","progress",jQuery.Callbacks("memory")]],state="pending",promise={state:function(){return state},always:function(){deferred.done(arguments).fail(arguments);return this},then:function(){var fns=arguments;return jQuery.Deferred(function(newDefer){jQuery.each(tuples,function(i,tuple){var fn=jQuery.isFunction(fns[i])&&fns[i];
// deferred[ done | fail | progress ] for forwarding actions to newDefer
deferred[tuple[1]](function(){var returned=fn&&fn.apply(this,arguments);if(returned&&jQuery.isFunction(returned.promise)){returned.promise().done(newDefer.resolve).fail(newDefer.reject).progress(newDefer.notify)}else{newDefer[tuple[0]+"With"](this===promise?newDefer.promise():this,fn?[returned]:arguments)}})});fns=null}).promise()},
// Get a promise for this deferred
// If obj is provided, the promise aspect is added to the object
promise:function(obj){return obj!=null?jQuery.extend(obj,promise):promise}},deferred={};
// Keep pipe for back-compat
promise.pipe=promise.then;
// Add list-specific methods
jQuery.each(tuples,function(i,tuple){var list=tuple[2],stateString=tuple[3];
// promise[ done | fail | progress ] = list.add
promise[tuple[1]]=list.add;
// Handle state
if(stateString){list.add(function(){
// state = [ resolved | rejected ]
state=stateString;
// [ reject_list | resolve_list ].disable; progress_list.lock
},tuples[i^1][2].disable,tuples[2][2].lock)}
// deferred[ resolve | reject | notify ]
deferred[tuple[0]]=function(){deferred[tuple[0]+"With"](this===deferred?promise:this,arguments);return this};deferred[tuple[0]+"With"]=list.fireWith});
// Make the deferred a promise
promise.promise(deferred);
// Call given func if any
if(func){func.call(deferred,deferred)}
// All done!
return deferred},
// Deferred helper
when:function(subordinate/* , ..., subordinateN */){var i=0,resolveValues=slice.call(arguments),length=resolveValues.length,
// the count of uncompleted subordinates
remaining=length!==1||subordinate&&jQuery.isFunction(subordinate.promise)?length:0,
// the master Deferred. If resolveValues consist of only a single Deferred, just use that.
deferred=remaining===1?subordinate:jQuery.Deferred(),
// Update function for both resolve and progress values
updateFunc=function(i,contexts,values){return function(value){contexts[i]=this;values[i]=arguments.length>1?slice.call(arguments):value;if(values===progressValues){deferred.notifyWith(contexts,values)}else if(!--remaining){deferred.resolveWith(contexts,values)}}},progressValues,progressContexts,resolveContexts;
// add listeners to Deferred subordinates; treat others as resolved
if(length>1){progressValues=new Array(length);progressContexts=new Array(length);resolveContexts=new Array(length);for(;i<length;i++){if(resolveValues[i]&&jQuery.isFunction(resolveValues[i].promise)){resolveValues[i].promise().done(updateFunc(i,resolveContexts,resolveValues)).fail(deferred.reject).progress(updateFunc(i,progressContexts,progressValues))}else{--remaining}}}
// if we're not waiting on anything, resolve the master
if(!remaining){deferred.resolveWith(resolveContexts,resolveValues)}return deferred.promise()}});
// The deferred used on DOM ready
var readyList;jQuery.fn.ready=function(fn){
// Add the callback
jQuery.ready.promise().done(fn);return this};jQuery.extend({
// Is the DOM ready to be used? Set to true once it occurs.
isReady:false,
// A counter to track how many items to wait for before
// the ready event fires. See #6781
readyWait:1,
// Hold (or release) the ready event
holdReady:function(hold){if(hold){jQuery.readyWait++}else{jQuery.ready(true)}},
// Handle when the DOM is ready
ready:function(wait){
// Abort if there are pending holds or we're already ready
if(wait===true?--jQuery.readyWait:jQuery.isReady){return}
// Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
if(!document.body){return setTimeout(jQuery.ready)}
// Remember that the DOM is ready
jQuery.isReady=true;
// If a normal DOM Ready event fired, decrement, and wait if need be
if(wait!==true&&--jQuery.readyWait>0){return}
// If there are functions bound, to execute
readyList.resolveWith(document,[jQuery]);
// Trigger any bound ready events
if(jQuery.fn.trigger){jQuery(document).trigger("ready").off("ready")}}});
/**
 * Clean-up method for dom ready events
 */function detach(){if(document.addEventListener){document.removeEventListener("DOMContentLoaded",completed,false);window.removeEventListener("load",completed,false)}else{document.detachEvent("onreadystatechange",completed);window.detachEvent("onload",completed)}}
/**
 * The ready event handler and self cleanup method
 */function completed(){
// readyState === "complete" is good enough for us to call the dom ready in oldIE
if(document.addEventListener||event.type==="load"||document.readyState==="complete"){detach();jQuery.ready()}}jQuery.ready.promise=function(obj){if(!readyList){readyList=jQuery.Deferred();
// Catch cases where $(document).ready() is called after the browser event has already occurred.
// we once tried to use readyState "interactive" here, but it caused issues like the one
// discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15
if(document.readyState==="complete"){
// Handle it asynchronously to allow scripts the opportunity to delay ready
setTimeout(jQuery.ready);
// Standards-based browsers support DOMContentLoaded
}else if(document.addEventListener){
// Use the handy event callback
document.addEventListener("DOMContentLoaded",completed,false);
// A fallback to window.onload, that will always work
window.addEventListener("load",completed,false);
// If IE event model is used
}else{
// Ensure firing before onload, maybe late but safe also for iframes
document.attachEvent("onreadystatechange",completed);
// A fallback to window.onload, that will always work
window.attachEvent("onload",completed);
// If IE and not a frame
// continually check to see if the document is ready
var top=false;try{top=window.frameElement==null&&document.documentElement}catch(e){}if(top&&top.doScroll){(function doScrollCheck(){if(!jQuery.isReady){try{
// Use the trick by Diego Perini
// http://javascript.nwbox.com/IEContentLoaded/
top.doScroll("left")}catch(e){return setTimeout(doScrollCheck,50)}
// detach all dom ready events
detach();
// and execute any waiting functions
jQuery.ready()}})()}}}return readyList.promise(obj)};var strundefined=typeof undefined;
// Support: IE<9
// Iteration over object's inherited properties before its own
var i;for(i in jQuery(support)){break}support.ownLast=i!=="0";
// Note: most support tests are defined in their respective modules.
// false until the test is run
support.inlineBlockNeedsLayout=false;jQuery(function(){
// We need to execute this one support test ASAP because we need to know
// if body.style.zoom needs to be set.
var container,div,body=document.getElementsByTagName("body")[0];if(!body){
// Return for frameset docs that don't have a body
return}
// Setup
container=document.createElement("div");container.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px";div=document.createElement("div");body.appendChild(container).appendChild(div);if(typeof div.style.zoom!==strundefined){
// Support: IE<8
// Check if natively block-level elements act like inline-block
// elements when setting their display to 'inline' and giving
// them layout
div.style.cssText="border:0;margin:0;width:1px;padding:1px;display:inline;zoom:1";if(support.inlineBlockNeedsLayout=div.offsetWidth===3){
// Prevent IE 6 from affecting layout for positioned elements #11048
// Prevent IE from shrinking the body in IE 7 mode #12869
// Support: IE<8
body.style.zoom=1}}body.removeChild(container);
// Null elements to avoid leaks in IE
container=div=null});(function(){var div=document.createElement("div");
// Execute the test only if not already executed in another module.
if(support.deleteExpando==null){
// Support: IE<9
support.deleteExpando=true;try{delete div.test}catch(e){support.deleteExpando=false}}
// Null elements to avoid leaks in IE.
div=null})();
/**
 * Determines whether an object can have data
 */jQuery.acceptData=function(elem){var noData=jQuery.noData[(elem.nodeName+" ").toLowerCase()],nodeType=+elem.nodeType||1;
// Do not set data on non-element DOM nodes because it will not be cleared (#8335).
return nodeType!==1&&nodeType!==9?false:
// Nodes accept data unless otherwise specified; rejection can be conditional
!noData||noData!==true&&elem.getAttribute("classid")===noData};var rbrace=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,rmultiDash=/([A-Z])/g;function dataAttr(elem,key,data){
// If nothing was found internally, try to fetch any
// data from the HTML5 data-* attribute
if(data===undefined&&elem.nodeType===1){var name="data-"+key.replace(rmultiDash,"-$1").toLowerCase();data=elem.getAttribute(name);if(typeof data==="string"){try{data=data==="true"?true:data==="false"?false:data==="null"?null:
// Only convert to a number if it doesn't change the string
+data+""===data?+data:rbrace.test(data)?jQuery.parseJSON(data):data}catch(e){}
// Make sure we set the data so it isn't changed later
jQuery.data(elem,key,data)}else{data=undefined}}return data}
// checks a cache object for emptiness
function isEmptyDataObject(obj){var name;for(name in obj){
// if the public data object is empty, the private is still empty
if(name==="data"&&jQuery.isEmptyObject(obj[name])){continue}if(name!=="toJSON"){return false}}return true}function internalData(elem,name,data,pvt/* Internal Use Only */){if(!jQuery.acceptData(elem)){return}var ret,thisCache,internalKey=jQuery.expando,
// We have to handle DOM nodes and JS objects differently because IE6-7
// can't GC object references properly across the DOM-JS boundary
isNode=elem.nodeType,
// Only DOM nodes need the global jQuery cache; JS object data is
// attached directly to the object so GC can occur automatically
cache=isNode?jQuery.cache:elem,
// Only defining an ID for JS objects if its cache already exists allows
// the code to shortcut on the same path as a DOM node with no cache
id=isNode?elem[internalKey]:elem[internalKey]&&internalKey;
// Avoid doing any more work than we need to when trying to get data on an
// object that has no data at all
if((!id||!cache[id]||!pvt&&!cache[id].data)&&data===undefined&&typeof name==="string"){return}if(!id){
// Only DOM nodes need a new unique ID for each element since their data
// ends up in the global cache
if(isNode){id=elem[internalKey]=deletedIds.pop()||jQuery.guid++}else{id=internalKey}}if(!cache[id]){
// Avoid exposing jQuery metadata on plain JS objects when the object
// is serialized using JSON.stringify
cache[id]=isNode?{}:{toJSON:jQuery.noop}}
// An object can be passed to jQuery.data instead of a key/value pair; this gets
// shallow copied over onto the existing cache
if(typeof name==="object"||typeof name==="function"){if(pvt){cache[id]=jQuery.extend(cache[id],name)}else{cache[id].data=jQuery.extend(cache[id].data,name)}}thisCache=cache[id];
// jQuery data() is stored in a separate object inside the object's internal data
// cache in order to avoid key collisions between internal data and user-defined
// data.
if(!pvt){if(!thisCache.data){thisCache.data={}}thisCache=thisCache.data}if(data!==undefined){thisCache[jQuery.camelCase(name)]=data}
// Check for both converted-to-camel and non-converted data property names
// If a data property was specified
if(typeof name==="string"){
// First Try to find as-is property data
ret=thisCache[name];
// Test for null|undefined property data
if(ret==null){
// Try to find the camelCased property
ret=thisCache[jQuery.camelCase(name)]}}else{ret=thisCache}return ret}function internalRemoveData(elem,name,pvt){if(!jQuery.acceptData(elem)){return}var thisCache,i,isNode=elem.nodeType,
// See jQuery.data for more information
cache=isNode?jQuery.cache:elem,id=isNode?elem[jQuery.expando]:jQuery.expando;
// If there is already no cache entry for this object, there is no
// purpose in continuing
if(!cache[id]){return}if(name){thisCache=pvt?cache[id]:cache[id].data;if(thisCache){
// Support array or space separated string names for data keys
if(!jQuery.isArray(name)){
// try the string as a key before any manipulation
if(name in thisCache){name=[name]}else{
// split the camel cased version by spaces unless a key with the spaces exists
name=jQuery.camelCase(name);if(name in thisCache){name=[name]}else{name=name.split(" ")}}}else{
// If "name" is an array of keys...
// When data is initially created, via ("key", "val") signature,
// keys will be converted to camelCase.
// Since there is no way to tell _how_ a key was added, remove
// both plain key and camelCase key. #12786
// This will only penalize the array argument path.
name=name.concat(jQuery.map(name,jQuery.camelCase))}i=name.length;while(i--){delete thisCache[name[i]]}
// If there is no data left in the cache, we want to continue
// and let the cache object itself get destroyed
if(pvt?!isEmptyDataObject(thisCache):!jQuery.isEmptyObject(thisCache)){return}}}
// See jQuery.data for more information
if(!pvt){delete cache[id].data;
// Don't destroy the parent cache unless the internal data object
// had been the only thing left in it
if(!isEmptyDataObject(cache[id])){return}}
// Destroy the cache
if(isNode){jQuery.cleanData([elem],true);
// Use delete when supported for expandos or `cache` is not a window per isWindow (#10080)
/* jshint eqeqeq: false */}else if(support.deleteExpando||cache!=cache.window){
/* jshint eqeqeq: true */
delete cache[id];
// When all else fails, null
}else{cache[id]=null}}jQuery.extend({cache:{},
// The following elements (space-suffixed to avoid Object.prototype collisions)
// throw uncatchable exceptions if you attempt to set expando properties
noData:{"applet ":true,"embed ":true,
// ...but Flash objects (which have this classid) *can* handle expandos
"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(elem){elem=elem.nodeType?jQuery.cache[elem[jQuery.expando]]:elem[jQuery.expando];return!!elem&&!isEmptyDataObject(elem)},data:function(elem,name,data){return internalData(elem,name,data)},removeData:function(elem,name){return internalRemoveData(elem,name)},
// For internal use only.
_data:function(elem,name,data){return internalData(elem,name,data,true)},_removeData:function(elem,name){return internalRemoveData(elem,name,true)}});jQuery.fn.extend({data:function(key,value){var i,name,data,elem=this[0],attrs=elem&&elem.attributes;
// Special expections of .data basically thwart jQuery.access,
// so implement the relevant behavior ourselves
// Gets all values
if(key===undefined){if(this.length){data=jQuery.data(elem);if(elem.nodeType===1&&!jQuery._data(elem,"parsedAttrs")){i=attrs.length;while(i--){name=attrs[i].name;if(name.indexOf("data-")===0){name=jQuery.camelCase(name.slice(5));dataAttr(elem,name,data[name])}}jQuery._data(elem,"parsedAttrs",true)}}return data}
// Sets multiple values
if(typeof key==="object"){return this.each(function(){jQuery.data(this,key)})}return arguments.length>1?
// Sets one value
this.each(function(){jQuery.data(this,key,value)}):
// Gets one value
// Try to fetch any internally stored data first
elem?dataAttr(elem,key,jQuery.data(elem,key)):undefined},removeData:function(key){return this.each(function(){jQuery.removeData(this,key)})}});jQuery.extend({queue:function(elem,type,data){var queue;if(elem){type=(type||"fx")+"queue";queue=jQuery._data(elem,type);
// Speed up dequeue by getting out quickly if this is just a lookup
if(data){if(!queue||jQuery.isArray(data)){queue=jQuery._data(elem,type,jQuery.makeArray(data))}else{queue.push(data)}}return queue||[]}},dequeue:function(elem,type){type=type||"fx";var queue=jQuery.queue(elem,type),startLength=queue.length,fn=queue.shift(),hooks=jQuery._queueHooks(elem,type),next=function(){jQuery.dequeue(elem,type)};
// If the fx queue is dequeued, always remove the progress sentinel
if(fn==="inprogress"){fn=queue.shift();startLength--}if(fn){
// Add a progress sentinel to prevent the fx queue from being
// automatically dequeued
if(type==="fx"){queue.unshift("inprogress")}
// clear up the last queue stop function
delete hooks.stop;fn.call(elem,next,hooks)}if(!startLength&&hooks){hooks.empty.fire()}},
// not intended for public consumption - generates a queueHooks object, or returns the current one
_queueHooks:function(elem,type){var key=type+"queueHooks";return jQuery._data(elem,key)||jQuery._data(elem,key,{empty:jQuery.Callbacks("once memory").add(function(){jQuery._removeData(elem,type+"queue");jQuery._removeData(elem,key)})})}});jQuery.fn.extend({queue:function(type,data){var setter=2;if(typeof type!=="string"){data=type;type="fx";setter--}if(arguments.length<setter){return jQuery.queue(this[0],type)}return data===undefined?this:this.each(function(){var queue=jQuery.queue(this,type,data);
// ensure a hooks for this queue
jQuery._queueHooks(this,type);if(type==="fx"&&queue[0]!=="inprogress"){jQuery.dequeue(this,type)}})},dequeue:function(type){return this.each(function(){jQuery.dequeue(this,type)})},clearQueue:function(type){return this.queue(type||"fx",[])},
// Get a promise resolved when queues of a certain type
// are emptied (fx is the type by default)
promise:function(type,obj){var tmp,count=1,defer=jQuery.Deferred(),elements=this,i=this.length,resolve=function(){if(!--count){defer.resolveWith(elements,[elements])}};if(typeof type!=="string"){obj=type;type=undefined}type=type||"fx";while(i--){tmp=jQuery._data(elements[i],type+"queueHooks");if(tmp&&tmp.empty){count++;tmp.empty.add(resolve)}}resolve();return defer.promise(obj)}});var pnum=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source;var cssExpand=["Top","Right","Bottom","Left"];var isHidden=function(elem,el){
// isHidden might be called from jQuery#filter function;
// in that case, element will be second argument
elem=el||elem;return jQuery.css(elem,"display")==="none"||!jQuery.contains(elem.ownerDocument,elem)};
// Multifunctional method to get and set values of a collection
// The value/s can optionally be executed if it's a function
var access=jQuery.access=function(elems,fn,key,value,chainable,emptyGet,raw){var i=0,length=elems.length,bulk=key==null;
// Sets many values
if(jQuery.type(key)==="object"){chainable=true;for(i in key){jQuery.access(elems,fn,i,key[i],true,emptyGet,raw)}
// Sets one value
}else if(value!==undefined){chainable=true;if(!jQuery.isFunction(value)){raw=true}if(bulk){
// Bulk operations run against the entire set
if(raw){fn.call(elems,value);fn=null;
// ...except when executing function values
}else{bulk=fn;fn=function(elem,key,value){return bulk.call(jQuery(elem),value)}}}if(fn){for(;i<length;i++){fn(elems[i],key,raw?value:value.call(elems[i],i,fn(elems[i],key)))}}}return chainable?elems:
// Gets
bulk?fn.call(elems):length?fn(elems[0],key):emptyGet};var rcheckableType=/^(?:checkbox|radio)$/i;(function(){var fragment=document.createDocumentFragment(),div=document.createElement("div"),input=document.createElement("input");
// Setup
div.setAttribute("className","t");div.innerHTML="  <link/><table></table><a href='/a'>a</a>";
// IE strips leading whitespace when .innerHTML is used
support.leadingWhitespace=div.firstChild.nodeType===3;
// Make sure that tbody elements aren't automatically inserted
// IE will insert them into empty tables
support.tbody=!div.getElementsByTagName("tbody").length;
// Make sure that link elements get serialized correctly by innerHTML
// This requires a wrapper element in IE
support.htmlSerialize=!!div.getElementsByTagName("link").length;
// Makes sure cloning an html5 element does not cause problems
// Where outerHTML is undefined, this still works
support.html5Clone=document.createElement("nav").cloneNode(true).outerHTML!=="<:nav></:nav>";
// Check if a disconnected checkbox will retain its checked
// value of true after appended to the DOM (IE6/7)
input.type="checkbox";input.checked=true;fragment.appendChild(input);support.appendChecked=input.checked;
// Make sure textarea (and checkbox) defaultValue is properly cloned
// Support: IE6-IE11+
div.innerHTML="<textarea>x</textarea>";support.noCloneChecked=!!div.cloneNode(true).lastChild.defaultValue;
// #11217 - WebKit loses check when the name is after the checked attribute
fragment.appendChild(div);div.innerHTML="<input type='radio' checked='checked' name='t'/>";
// Support: Safari 5.1, iOS 5.1, Android 4.x, Android 2.3
// old WebKit doesn't clone checked state correctly in fragments
support.checkClone=div.cloneNode(true).cloneNode(true).lastChild.checked;
// Support: IE<9
// Opera does not clone events (and typeof div.attachEvent === undefined).
// IE9-10 clones events bound via attachEvent, but they don't trigger with .click()
support.noCloneEvent=true;if(div.attachEvent){div.attachEvent("onclick",function(){support.noCloneEvent=false});div.cloneNode(true).click()}
// Execute the test only if not already executed in another module.
if(support.deleteExpando==null){
// Support: IE<9
support.deleteExpando=true;try{delete div.test}catch(e){support.deleteExpando=false}}
// Null elements to avoid leaks in IE.
fragment=div=input=null})();(function(){var i,eventName,div=document.createElement("div");
// Support: IE<9 (lack submit/change bubble), Firefox 23+ (lack focusin event)
for(i in{submit:true,change:true,focusin:true}){eventName="on"+i;if(!(support[i+"Bubbles"]=eventName in window)){
// Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP)
div.setAttribute(eventName,"t");support[i+"Bubbles"]=div.attributes[eventName].expando===false}}
// Null elements to avoid leaks in IE.
div=null})();var rformElems=/^(?:input|select|textarea)$/i,rkeyEvent=/^key/,rmouseEvent=/^(?:mouse|contextmenu)|click/,rfocusMorph=/^(?:focusinfocus|focusoutblur)$/,rtypenamespace=/^([^.]*)(?:\.(.+)|)$/;function returnTrue(){return true}function returnFalse(){return false}function safeActiveElement(){try{return document.activeElement}catch(err){}}
/*
 * Helper functions for managing events -- not part of the public interface.
 * Props to Dean Edwards' addEvent library for many of the ideas.
 */jQuery.event={global:{},add:function(elem,types,handler,data,selector){var tmp,events,t,handleObjIn,special,eventHandle,handleObj,handlers,type,namespaces,origType,elemData=jQuery._data(elem);
// Don't attach events to noData or text/comment nodes (but allow plain objects)
if(!elemData){return}
// Caller can pass in an object of custom data in lieu of the handler
if(handler.handler){handleObjIn=handler;handler=handleObjIn.handler;selector=handleObjIn.selector}
// Make sure that the handler has a unique ID, used to find/remove it later
if(!handler.guid){handler.guid=jQuery.guid++}
// Init the element's event structure and main handler, if this is the first
if(!(events=elemData.events)){events=elemData.events={}}if(!(eventHandle=elemData.handle)){eventHandle=elemData.handle=function(e){
// Discard the second event of a jQuery.event.trigger() and
// when an event is called after a page has unloaded
return typeof jQuery!==strundefined&&(!e||jQuery.event.triggered!==e.type)?jQuery.event.dispatch.apply(eventHandle.elem,arguments):undefined};
// Add elem as a property of the handle fn to prevent a memory leak with IE non-native events
eventHandle.elem=elem}
// Handle multiple events separated by a space
types=(types||"").match(rnotwhite)||[""];t=types.length;while(t--){tmp=rtypenamespace.exec(types[t])||[];type=origType=tmp[1];namespaces=(tmp[2]||"").split(".").sort();
// There *must* be a type, no attaching namespace-only handlers
if(!type){continue}
// If event changes its type, use the special event handlers for the changed type
special=jQuery.event.special[type]||{};
// If selector defined, determine special event api type, otherwise given type
type=(selector?special.delegateType:special.bindType)||type;
// Update special based on newly reset type
special=jQuery.event.special[type]||{};
// handleObj is passed to all event handlers
handleObj=jQuery.extend({type:type,origType:origType,data:data,handler:handler,guid:handler.guid,selector:selector,needsContext:selector&&jQuery.expr.match.needsContext.test(selector),namespace:namespaces.join(".")},handleObjIn);
// Init the event handler queue if we're the first
if(!(handlers=events[type])){handlers=events[type]=[];handlers.delegateCount=0;
// Only use addEventListener/attachEvent if the special events handler returns false
if(!special.setup||special.setup.call(elem,data,namespaces,eventHandle)===false){
// Bind the global event handler to the element
if(elem.addEventListener){elem.addEventListener(type,eventHandle,false)}else if(elem.attachEvent){elem.attachEvent("on"+type,eventHandle)}}}if(special.add){special.add.call(elem,handleObj);if(!handleObj.handler.guid){handleObj.handler.guid=handler.guid}}
// Add to the element's handler list, delegates in front
if(selector){handlers.splice(handlers.delegateCount++,0,handleObj)}else{handlers.push(handleObj)}
// Keep track of which events have ever been used, for event optimization
jQuery.event.global[type]=true}
// Nullify elem to prevent memory leaks in IE
elem=null},
// Detach an event or set of events from an element
remove:function(elem,types,handler,selector,mappedTypes){var j,handleObj,tmp,origCount,t,events,special,handlers,type,namespaces,origType,elemData=jQuery.hasData(elem)&&jQuery._data(elem);if(!elemData||!(events=elemData.events)){return}
// Once for each type.namespace in types; type may be omitted
types=(types||"").match(rnotwhite)||[""];t=types.length;while(t--){tmp=rtypenamespace.exec(types[t])||[];type=origType=tmp[1];namespaces=(tmp[2]||"").split(".").sort();
// Unbind all events (on this namespace, if provided) for the element
if(!type){for(type in events){jQuery.event.remove(elem,type+types[t],handler,selector,true)}continue}special=jQuery.event.special[type]||{};type=(selector?special.delegateType:special.bindType)||type;handlers=events[type]||[];tmp=tmp[2]&&new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)");
// Remove matching events
origCount=j=handlers.length;while(j--){handleObj=handlers[j];if((mappedTypes||origType===handleObj.origType)&&(!handler||handler.guid===handleObj.guid)&&(!tmp||tmp.test(handleObj.namespace))&&(!selector||selector===handleObj.selector||selector==="**"&&handleObj.selector)){handlers.splice(j,1);if(handleObj.selector){handlers.delegateCount--}if(special.remove){special.remove.call(elem,handleObj)}}}
// Remove generic event handler if we removed something and no more handlers exist
// (avoids potential for endless recursion during removal of special event handlers)
if(origCount&&!handlers.length){if(!special.teardown||special.teardown.call(elem,namespaces,elemData.handle)===false){jQuery.removeEvent(elem,type,elemData.handle)}delete events[type]}}
// Remove the expando if it's no longer used
if(jQuery.isEmptyObject(events)){delete elemData.handle;
// removeData also checks for emptiness and clears the expando if empty
// so use it instead of delete
jQuery._removeData(elem,"events")}},trigger:function(event,data,elem,onlyHandlers){var handle,ontype,cur,bubbleType,special,tmp,i,eventPath=[elem||document],type=hasOwn.call(event,"type")?event.type:event,namespaces=hasOwn.call(event,"namespace")?event.namespace.split("."):[];cur=tmp=elem=elem||document;
// Don't do events on text and comment nodes
if(elem.nodeType===3||elem.nodeType===8){return}
// focus/blur morphs to focusin/out; ensure we're not firing them right now
if(rfocusMorph.test(type+jQuery.event.triggered)){return}if(type.indexOf(".")>=0){
// Namespaced trigger; create a regexp to match event type in handle()
namespaces=type.split(".");type=namespaces.shift();namespaces.sort()}ontype=type.indexOf(":")<0&&"on"+type;
// Caller can pass in a jQuery.Event object, Object, or just an event type string
event=event[jQuery.expando]?event:new jQuery.Event(type,typeof event==="object"&&event);
// Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)
event.isTrigger=onlyHandlers?2:3;event.namespace=namespaces.join(".");event.namespace_re=event.namespace?new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;
// Clean up the event in case it is being reused
event.result=undefined;if(!event.target){event.target=elem}
// Clone any incoming data and prepend the event, creating the handler arg list
data=data==null?[event]:jQuery.makeArray(data,[event]);
// Allow special events to draw outside the lines
special=jQuery.event.special[type]||{};if(!onlyHandlers&&special.trigger&&special.trigger.apply(elem,data)===false){return}
// Determine event propagation path in advance, per W3C events spec (#9951)
// Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
if(!onlyHandlers&&!special.noBubble&&!jQuery.isWindow(elem)){bubbleType=special.delegateType||type;if(!rfocusMorph.test(bubbleType+type)){cur=cur.parentNode}for(;cur;cur=cur.parentNode){eventPath.push(cur);tmp=cur}
// Only add window if we got to document (e.g., not plain obj or detached DOM)
if(tmp===(elem.ownerDocument||document)){eventPath.push(tmp.defaultView||tmp.parentWindow||window)}}
// Fire handlers on the event path
i=0;while((cur=eventPath[i++])&&!event.isPropagationStopped()){event.type=i>1?bubbleType:special.bindType||type;
// jQuery handler
handle=(jQuery._data(cur,"events")||{})[event.type]&&jQuery._data(cur,"handle");if(handle){handle.apply(cur,data)}
// Native handler
handle=ontype&&cur[ontype];if(handle&&handle.apply&&jQuery.acceptData(cur)){event.result=handle.apply(cur,data);if(event.result===false){event.preventDefault()}}}event.type=type;
// If nobody prevented the default action, do it now
if(!onlyHandlers&&!event.isDefaultPrevented()){if((!special._default||special._default.apply(eventPath.pop(),data)===false)&&jQuery.acceptData(elem)){
// Call a native DOM method on the target with the same name name as the event.
// Can't use an .isFunction() check here because IE6/7 fails that test.
// Don't do default actions on window, that's where global variables be (#6170)
if(ontype&&elem[type]&&!jQuery.isWindow(elem)){
// Don't re-trigger an onFOO event when we call its FOO() method
tmp=elem[ontype];if(tmp){elem[ontype]=null}
// Prevent re-triggering of the same event, since we already bubbled it above
jQuery.event.triggered=type;try{elem[type]()}catch(e){
// IE<9 dies on focus/blur to hidden element (#1486,#12518)
// only reproducible on winXP IE8 native, not IE9 in IE8 mode
}jQuery.event.triggered=undefined;if(tmp){elem[ontype]=tmp}}}}return event.result},dispatch:function(event){
// Make a writable jQuery.Event from the native event object
event=jQuery.event.fix(event);var i,ret,handleObj,matched,j,handlerQueue=[],args=slice.call(arguments),handlers=(jQuery._data(this,"events")||{})[event.type]||[],special=jQuery.event.special[event.type]||{};
// Use the fix-ed jQuery.Event rather than the (read-only) native event
args[0]=event;event.delegateTarget=this;
// Call the preDispatch hook for the mapped type, and let it bail if desired
if(special.preDispatch&&special.preDispatch.call(this,event)===false){return}
// Determine handlers
handlerQueue=jQuery.event.handlers.call(this,event,handlers);
// Run delegates first; they may want to stop propagation beneath us
i=0;while((matched=handlerQueue[i++])&&!event.isPropagationStopped()){event.currentTarget=matched.elem;j=0;while((handleObj=matched.handlers[j++])&&!event.isImmediatePropagationStopped()){
// Triggered event must either 1) have no namespace, or
// 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace).
if(!event.namespace_re||event.namespace_re.test(handleObj.namespace)){event.handleObj=handleObj;event.data=handleObj.data;ret=((jQuery.event.special[handleObj.origType]||{}).handle||handleObj.handler).apply(matched.elem,args);if(ret!==undefined){if((event.result=ret)===false){event.preventDefault();event.stopPropagation()}}}}}
// Call the postDispatch hook for the mapped type
if(special.postDispatch){special.postDispatch.call(this,event)}return event.result},handlers:function(event,handlers){var sel,handleObj,matches,i,handlerQueue=[],delegateCount=handlers.delegateCount,cur=event.target;
// Find delegate handlers
// Black-hole SVG <use> instance trees (#13180)
// Avoid non-left-click bubbling in Firefox (#3861)
if(delegateCount&&cur.nodeType&&(!event.button||event.type!=="click")){
/* jshint eqeqeq: false */
for(;cur!=this;cur=cur.parentNode||this){
/* jshint eqeqeq: true */
// Don't check non-elements (#13208)
// Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
if(cur.nodeType===1&&(cur.disabled!==true||event.type!=="click")){matches=[];for(i=0;i<delegateCount;i++){handleObj=handlers[i];
// Don't conflict with Object.prototype properties (#13203)
sel=handleObj.selector+" ";if(matches[sel]===undefined){matches[sel]=handleObj.needsContext?jQuery(sel,this).index(cur)>=0:jQuery.find(sel,this,null,[cur]).length}if(matches[sel]){matches.push(handleObj)}}if(matches.length){handlerQueue.push({elem:cur,handlers:matches})}}}}
// Add the remaining (directly-bound) handlers
if(delegateCount<handlers.length){handlerQueue.push({elem:this,handlers:handlers.slice(delegateCount)})}return handlerQueue},fix:function(event){if(event[jQuery.expando]){return event}
// Create a writable copy of the event object and normalize some properties
var i,prop,copy,type=event.type,originalEvent=event,fixHook=this.fixHooks[type];if(!fixHook){this.fixHooks[type]=fixHook=rmouseEvent.test(type)?this.mouseHooks:rkeyEvent.test(type)?this.keyHooks:{}}copy=fixHook.props?this.props.concat(fixHook.props):this.props;event=new jQuery.Event(originalEvent);i=copy.length;while(i--){prop=copy[i];event[prop]=originalEvent[prop]}
// Support: IE<9
// Fix target property (#1925)
if(!event.target){event.target=originalEvent.srcElement||document}
// Support: Chrome 23+, Safari?
// Target should not be a text node (#504, #13143)
if(event.target.nodeType===3){event.target=event.target.parentNode}
// Support: IE<9
// For mouse/key events, metaKey==false if it's undefined (#3368, #11328)
event.metaKey=!!event.metaKey;return fixHook.filter?fixHook.filter(event,originalEvent):event},
// Includes some event props shared by KeyEvent and MouseEvent
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(event,original){
// Add which for key events
if(event.which==null){event.which=original.charCode!=null?original.charCode:original.keyCode}return event}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(event,original){var body,eventDoc,doc,button=original.button,fromElement=original.fromElement;
// Calculate pageX/Y if missing and clientX/Y available
if(event.pageX==null&&original.clientX!=null){eventDoc=event.target.ownerDocument||document;doc=eventDoc.documentElement;body=eventDoc.body;event.pageX=original.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc&&doc.clientLeft||body&&body.clientLeft||0);event.pageY=original.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc&&doc.clientTop||body&&body.clientTop||0)}
// Add relatedTarget, if necessary
if(!event.relatedTarget&&fromElement){event.relatedTarget=fromElement===event.target?original.toElement:fromElement}
// Add which for click: 1 === left; 2 === middle; 3 === right
// Note: button is not normalized, so don't use it
if(!event.which&&button!==undefined){event.which=button&1?1:button&2?3:button&4?2:0}return event}},special:{load:{
// Prevent triggered image.load events from bubbling to window.load
noBubble:true},focus:{
// Fire native event if possible so blur/focus sequence is correct
trigger:function(){if(this!==safeActiveElement()&&this.focus){try{this.focus();return false}catch(e){
// Support: IE<9
// If we error on focus to hidden element (#1486, #12518),
// let .trigger() run the handlers
}}},delegateType:"focusin"},blur:{trigger:function(){if(this===safeActiveElement()&&this.blur){this.blur();return false}},delegateType:"focusout"},click:{
// For checkbox, fire native event so checked state will be right
trigger:function(){if(jQuery.nodeName(this,"input")&&this.type==="checkbox"&&this.click){this.click();return false}},
// For cross-browser consistency, don't fire native .click() on links
_default:function(event){return jQuery.nodeName(event.target,"a")}},beforeunload:{postDispatch:function(event){
// Even when returnValue equals to undefined Firefox will still show alert
if(event.result!==undefined){event.originalEvent.returnValue=event.result}}}},simulate:function(type,elem,event,bubble){
// Piggyback on a donor event to simulate a different one.
// Fake originalEvent to avoid donor's stopPropagation, but if the
// simulated event prevents default then we do the same on the donor.
var e=jQuery.extend(new jQuery.Event,event,{type:type,isSimulated:true,originalEvent:{}});if(bubble){jQuery.event.trigger(e,null,elem)}else{jQuery.event.dispatch.call(elem,e)}if(e.isDefaultPrevented()){event.preventDefault()}}};jQuery.removeEvent=document.removeEventListener?function(elem,type,handle){if(elem.removeEventListener){elem.removeEventListener(type,handle,false)}}:function(elem,type,handle){var name="on"+type;if(elem.detachEvent){
// #8545, #7054, preventing memory leaks for custom events in IE6-8
// detachEvent needed property on element, by name of that event, to properly expose it to GC
if(typeof elem[name]===strundefined){elem[name]=null}elem.detachEvent(name,handle)}};jQuery.Event=function(src,props){
// Allow instantiation without the 'new' keyword
if(!(this instanceof jQuery.Event)){return new jQuery.Event(src,props)}
// Event object
if(src&&src.type){this.originalEvent=src;this.type=src.type;
// Events bubbling up the document may have been marked as prevented
// by a handler lower down the tree; reflect the correct value.
this.isDefaultPrevented=src.defaultPrevented||src.defaultPrevented===undefined&&(
// Support: IE < 9
src.returnValue===false||
// Support: Android < 4.0
src.getPreventDefault&&src.getPreventDefault())?returnTrue:returnFalse;
// Event type
}else{this.type=src}
// Put explicitly provided properties onto the event object
if(props){jQuery.extend(this,props)}
// Create a timestamp if incoming event doesn't have one
this.timeStamp=src&&src.timeStamp||jQuery.now();
// Mark it as fixed
this[jQuery.expando]=true};
// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
jQuery.Event.prototype={isDefaultPrevented:returnFalse,isPropagationStopped:returnFalse,isImmediatePropagationStopped:returnFalse,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=returnTrue;if(!e){return}
// If preventDefault exists, run it on the original event
if(e.preventDefault){e.preventDefault();
// Support: IE
// Otherwise set the returnValue property of the original event to false
}else{e.returnValue=false}},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=returnTrue;if(!e){return}
// If stopPropagation exists, run it on the original event
if(e.stopPropagation){e.stopPropagation()}
// Support: IE
// Set the cancelBubble property of the original event to true
e.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=returnTrue;this.stopPropagation()}};
// Create mouseenter/leave events using mouseover/out and event-time checks
jQuery.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(orig,fix){jQuery.event.special[orig]={delegateType:fix,bindType:fix,handle:function(event){var ret,target=this,related=event.relatedTarget,handleObj=event.handleObj;
// For mousenter/leave call the handler if related is outside the target.
// NB: No relatedTarget if the mouse left/entered the browser window
if(!related||related!==target&&!jQuery.contains(target,related)){event.type=handleObj.origType;ret=handleObj.handler.apply(this,arguments);event.type=fix}return ret}}});
// IE submit delegation
if(!support.submitBubbles){jQuery.event.special.submit={setup:function(){
// Only need this for delegated form submit events
if(jQuery.nodeName(this,"form")){return false}
// Lazy-add a submit handler when a descendant form may potentially be submitted
jQuery.event.add(this,"click._submit keypress._submit",function(e){
// Node name check avoids a VML-related crash in IE (#9807)
var elem=e.target,form=jQuery.nodeName(elem,"input")||jQuery.nodeName(elem,"button")?elem.form:undefined;if(form&&!jQuery._data(form,"submitBubbles")){jQuery.event.add(form,"submit._submit",function(event){event._submit_bubble=true});jQuery._data(form,"submitBubbles",true)}});
// return undefined since we don't need an event listener
},postDispatch:function(event){
// If form was submitted by the user, bubble the event up the tree
if(event._submit_bubble){delete event._submit_bubble;if(this.parentNode&&!event.isTrigger){jQuery.event.simulate("submit",this.parentNode,event,true)}}},teardown:function(){
// Only need this for delegated form submit events
if(jQuery.nodeName(this,"form")){return false}
// Remove delegated handlers; cleanData eventually reaps submit handlers attached above
jQuery.event.remove(this,"._submit")}}}
// IE change delegation and checkbox/radio fix
if(!support.changeBubbles){jQuery.event.special.change={setup:function(){if(rformElems.test(this.nodeName)){
// IE doesn't fire change on a check/radio until blur; trigger it on click
// after a propertychange. Eat the blur-change in special.change.handle.
// This still fires onchange a second time for check/radio after blur.
if(this.type==="checkbox"||this.type==="radio"){jQuery.event.add(this,"propertychange._change",function(event){if(event.originalEvent.propertyName==="checked"){this._just_changed=true}});jQuery.event.add(this,"click._change",function(event){if(this._just_changed&&!event.isTrigger){this._just_changed=false}
// Allow triggered, simulated change events (#11500)
jQuery.event.simulate("change",this,event,true)})}return false}
// Delegated event; lazy-add a change handler on descendant inputs
jQuery.event.add(this,"beforeactivate._change",function(e){var elem=e.target;if(rformElems.test(elem.nodeName)&&!jQuery._data(elem,"changeBubbles")){jQuery.event.add(elem,"change._change",function(event){if(this.parentNode&&!event.isSimulated&&!event.isTrigger){jQuery.event.simulate("change",this.parentNode,event,true)}});jQuery._data(elem,"changeBubbles",true)}})},handle:function(event){var elem=event.target;
// Swallow native change events from checkbox/radio, we already triggered them above
if(this!==elem||event.isSimulated||event.isTrigger||elem.type!=="radio"&&elem.type!=="checkbox"){return event.handleObj.handler.apply(this,arguments)}},teardown:function(){jQuery.event.remove(this,"._change");return!rformElems.test(this.nodeName)}}}
// Create "bubbling" focus and blur events
if(!support.focusinBubbles){jQuery.each({focus:"focusin",blur:"focusout"},function(orig,fix){
// Attach a single capturing handler on the document while someone wants focusin/focusout
var handler=function(event){jQuery.event.simulate(fix,event.target,jQuery.event.fix(event),true)};jQuery.event.special[fix]={setup:function(){var doc=this.ownerDocument||this,attaches=jQuery._data(doc,fix);if(!attaches){doc.addEventListener(orig,handler,true)}jQuery._data(doc,fix,(attaches||0)+1)},teardown:function(){var doc=this.ownerDocument||this,attaches=jQuery._data(doc,fix)-1;if(!attaches){doc.removeEventListener(orig,handler,true);jQuery._removeData(doc,fix)}else{jQuery._data(doc,fix,attaches)}}}})}jQuery.fn.extend({on:function(types,selector,data,fn,/*INTERNAL*/one){var type,origFn;
// Types can be a map of types/handlers
if(typeof types==="object"){
// ( types-Object, selector, data )
if(typeof selector!=="string"){
// ( types-Object, data )
data=data||selector;selector=undefined}for(type in types){this.on(type,selector,data,types[type],one)}return this}if(data==null&&fn==null){
// ( types, fn )
fn=selector;data=selector=undefined}else if(fn==null){if(typeof selector==="string"){
// ( types, selector, fn )
fn=data;data=undefined}else{
// ( types, data, fn )
fn=data;data=selector;selector=undefined}}if(fn===false){fn=returnFalse}else if(!fn){return this}if(one===1){origFn=fn;fn=function(event){
// Can use an empty set, since event contains the info
jQuery().off(event);return origFn.apply(this,arguments)};
// Use same guid so caller can remove using origFn
fn.guid=origFn.guid||(origFn.guid=jQuery.guid++)}return this.each(function(){jQuery.event.add(this,types,fn,data,selector)})},one:function(types,selector,data,fn){return this.on(types,selector,data,fn,1)},off:function(types,selector,fn){var handleObj,type;if(types&&types.preventDefault&&types.handleObj){
// ( event )  dispatched jQuery.Event
handleObj=types.handleObj;jQuery(types.delegateTarget).off(handleObj.namespace?handleObj.origType+"."+handleObj.namespace:handleObj.origType,handleObj.selector,handleObj.handler);return this}if(typeof types==="object"){
// ( types-object [, selector] )
for(type in types){this.off(type,selector,types[type])}return this}if(selector===false||typeof selector==="function"){
// ( types [, fn] )
fn=selector;selector=undefined}if(fn===false){fn=returnFalse}return this.each(function(){jQuery.event.remove(this,types,fn,selector)})},trigger:function(type,data){return this.each(function(){jQuery.event.trigger(type,data,this)})},triggerHandler:function(type,data){var elem=this[0];if(elem){return jQuery.event.trigger(type,data,elem,true)}}});function createSafeFragment(document){var list=nodeNames.split("|"),safeFrag=document.createDocumentFragment();if(safeFrag.createElement){while(list.length){safeFrag.createElement(list.pop())}}return safeFrag}var nodeNames="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|"+"header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",rinlinejQuery=/ jQuery\d+="(?:null|\d+)"/g,rnoshimcache=new RegExp("<(?:"+nodeNames+")[\\s/>]","i"),rleadingWhitespace=/^\s+/,rxhtmlTag=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,rtagName=/<([\w:]+)/,rtbody=/<tbody/i,rhtml=/<|&#?\w+;/,rnoInnerhtml=/<(?:script|style|link)/i,
// checked="checked" or checked
rchecked=/checked\s*(?:[^=]|=\s*.checked.)/i,rscriptType=/^$|\/(?:java|ecma)script/i,rscriptTypeMasked=/^true\/(.*)/,rcleanScript=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,
// We have to close these tags to support XHTML (#13200)
wrapMap={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],
// IE6-8 can't serialize link, script, style, or any html5 (NoScope) tags,
// unless wrapped in a div with non-breaking characters in front of it.
_default:support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},safeFragment=createSafeFragment(document),fragmentDiv=safeFragment.appendChild(document.createElement("div"));wrapMap.optgroup=wrapMap.option;wrapMap.tbody=wrapMap.tfoot=wrapMap.colgroup=wrapMap.caption=wrapMap.thead;wrapMap.th=wrapMap.td;function getAll(context,tag){var elems,elem,i=0,found=typeof context.getElementsByTagName!==strundefined?context.getElementsByTagName(tag||"*"):typeof context.querySelectorAll!==strundefined?context.querySelectorAll(tag||"*"):undefined;if(!found){for(found=[],elems=context.childNodes||context;(elem=elems[i])!=null;i++){if(!tag||jQuery.nodeName(elem,tag)){found.push(elem)}else{jQuery.merge(found,getAll(elem,tag))}}}return tag===undefined||tag&&jQuery.nodeName(context,tag)?jQuery.merge([context],found):found}
// Used in buildFragment, fixes the defaultChecked property
function fixDefaultChecked(elem){if(rcheckableType.test(elem.type)){elem.defaultChecked=elem.checked}}
// Support: IE<8
// Manipulating tables requires a tbody
function manipulationTarget(elem,content){return jQuery.nodeName(elem,"table")&&jQuery.nodeName(content.nodeType!==11?content:content.firstChild,"tr")?elem.getElementsByTagName("tbody")[0]||elem.appendChild(elem.ownerDocument.createElement("tbody")):elem}
// Replace/restore the type attribute of script elements for safe DOM manipulation
function disableScript(elem){elem.type=(jQuery.find.attr(elem,"type")!==null)+"/"+elem.type;return elem}function restoreScript(elem){var match=rscriptTypeMasked.exec(elem.type);if(match){elem.type=match[1]}else{elem.removeAttribute("type")}return elem}
// Mark scripts as having already been evaluated
function setGlobalEval(elems,refElements){var elem,i=0;for(;(elem=elems[i])!=null;i++){jQuery._data(elem,"globalEval",!refElements||jQuery._data(refElements[i],"globalEval"))}}function cloneCopyEvent(src,dest){if(dest.nodeType!==1||!jQuery.hasData(src)){return}var type,i,l,oldData=jQuery._data(src),curData=jQuery._data(dest,oldData),events=oldData.events;if(events){delete curData.handle;curData.events={};for(type in events){for(i=0,l=events[type].length;i<l;i++){jQuery.event.add(dest,type,events[type][i])}}}
// make the cloned public data object a copy from the original
if(curData.data){curData.data=jQuery.extend({},curData.data)}}function fixCloneNodeIssues(src,dest){var nodeName,e,data;
// We do not need to do anything for non-Elements
if(dest.nodeType!==1){return}nodeName=dest.nodeName.toLowerCase();
// IE6-8 copies events bound via attachEvent when using cloneNode.
if(!support.noCloneEvent&&dest[jQuery.expando]){data=jQuery._data(dest);for(e in data.events){jQuery.removeEvent(dest,e,data.handle)}
// Event data gets referenced instead of copied if the expando gets copied too
dest.removeAttribute(jQuery.expando)}
// IE blanks contents when cloning scripts, and tries to evaluate newly-set text
if(nodeName==="script"&&dest.text!==src.text){disableScript(dest).text=src.text;restoreScript(dest);
// IE6-10 improperly clones children of object elements using classid.
// IE10 throws NoModificationAllowedError if parent is null, #12132.
}else if(nodeName==="object"){if(dest.parentNode){dest.outerHTML=src.outerHTML}
// This path appears unavoidable for IE9. When cloning an object
// element in IE9, the outerHTML strategy above is not sufficient.
// If the src has innerHTML and the destination does not,
// copy the src.innerHTML into the dest.innerHTML. #10324
if(support.html5Clone&&(src.innerHTML&&!jQuery.trim(dest.innerHTML))){dest.innerHTML=src.innerHTML}}else if(nodeName==="input"&&rcheckableType.test(src.type)){
// IE6-8 fails to persist the checked state of a cloned checkbox
// or radio button. Worse, IE6-7 fail to give the cloned element
// a checked appearance if the defaultChecked value isn't also set
dest.defaultChecked=dest.checked=src.checked;
// IE6-7 get confused and end up setting the value of a cloned
// checkbox/radio button to an empty string instead of "on"
if(dest.value!==src.value){dest.value=src.value}
// IE6-8 fails to return the selected option to the default selected
// state when cloning options
}else if(nodeName==="option"){dest.defaultSelected=dest.selected=src.defaultSelected;
// IE6-8 fails to set the defaultValue to the correct value when
// cloning other types of input fields
}else if(nodeName==="input"||nodeName==="textarea"){dest.defaultValue=src.defaultValue}}jQuery.extend({clone:function(elem,dataAndEvents,deepDataAndEvents){var destElements,node,clone,i,srcElements,inPage=jQuery.contains(elem.ownerDocument,elem);if(support.html5Clone||jQuery.isXMLDoc(elem)||!rnoshimcache.test("<"+elem.nodeName+">")){clone=elem.cloneNode(true);
// IE<=8 does not properly clone detached, unknown element nodes
}else{fragmentDiv.innerHTML=elem.outerHTML;fragmentDiv.removeChild(clone=fragmentDiv.firstChild)}if((!support.noCloneEvent||!support.noCloneChecked)&&(elem.nodeType===1||elem.nodeType===11)&&!jQuery.isXMLDoc(elem)){
// We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2
destElements=getAll(clone);srcElements=getAll(elem);
// Fix all IE cloning issues
for(i=0;(node=srcElements[i])!=null;++i){
// Ensure that the destination node is not null; Fixes #9587
if(destElements[i]){fixCloneNodeIssues(node,destElements[i])}}}
// Copy the events from the original to the clone
if(dataAndEvents){if(deepDataAndEvents){srcElements=srcElements||getAll(elem);destElements=destElements||getAll(clone);for(i=0;(node=srcElements[i])!=null;i++){cloneCopyEvent(node,destElements[i])}}else{cloneCopyEvent(elem,clone)}}
// Preserve script evaluation history
destElements=getAll(clone,"script");if(destElements.length>0){setGlobalEval(destElements,!inPage&&getAll(elem,"script"))}destElements=srcElements=node=null;
// Return the cloned set
return clone},buildFragment:function(elems,context,scripts,selection){var j,elem,contains,tmp,tag,tbody,wrap,l=elems.length,
// Ensure a safe fragment
safe=createSafeFragment(context),nodes=[],i=0;for(;i<l;i++){elem=elems[i];if(elem||elem===0){
// Add nodes directly
if(jQuery.type(elem)==="object"){jQuery.merge(nodes,elem.nodeType?[elem]:elem);
// Convert non-html into a text node
}else if(!rhtml.test(elem)){nodes.push(context.createTextNode(elem));
// Convert html into DOM nodes
}else{tmp=tmp||safe.appendChild(context.createElement("div"));
// Deserialize a standard representation
tag=(rtagName.exec(elem)||["",""])[1].toLowerCase();wrap=wrapMap[tag]||wrapMap._default;tmp.innerHTML=wrap[1]+elem.replace(rxhtmlTag,"<$1></$2>")+wrap[2];
// Descend through wrappers to the right content
j=wrap[0];while(j--){tmp=tmp.lastChild}
// Manually add leading whitespace removed by IE
if(!support.leadingWhitespace&&rleadingWhitespace.test(elem)){nodes.push(context.createTextNode(rleadingWhitespace.exec(elem)[0]))}
// Remove IE's autoinserted <tbody> from table fragments
if(!support.tbody){
// String was a <table>, *may* have spurious <tbody>
elem=tag==="table"&&!rtbody.test(elem)?tmp.firstChild:
// String was a bare <thead> or <tfoot>
wrap[1]==="<table>"&&!rtbody.test(elem)?tmp:0;j=elem&&elem.childNodes.length;while(j--){if(jQuery.nodeName(tbody=elem.childNodes[j],"tbody")&&!tbody.childNodes.length){elem.removeChild(tbody)}}}jQuery.merge(nodes,tmp.childNodes);
// Fix #12392 for WebKit and IE > 9
tmp.textContent="";
// Fix #12392 for oldIE
while(tmp.firstChild){tmp.removeChild(tmp.firstChild)}
// Remember the top-level container for proper cleanup
tmp=safe.lastChild}}}
// Fix #11356: Clear elements from fragment
if(tmp){safe.removeChild(tmp)}
// Reset defaultChecked for any radios and checkboxes
// about to be appended to the DOM in IE 6/7 (#8060)
if(!support.appendChecked){jQuery.grep(getAll(nodes,"input"),fixDefaultChecked)}i=0;while(elem=nodes[i++]){
// #4087 - If origin and destination elements are the same, and this is
// that element, do not do anything
if(selection&&jQuery.inArray(elem,selection)!==-1){continue}contains=jQuery.contains(elem.ownerDocument,elem);
// Append to fragment
tmp=getAll(safe.appendChild(elem),"script");
// Preserve script evaluation history
if(contains){setGlobalEval(tmp)}
// Capture executables
if(scripts){j=0;while(elem=tmp[j++]){if(rscriptType.test(elem.type||"")){scripts.push(elem)}}}}tmp=null;return safe},cleanData:function(elems,/* internal */acceptData){var elem,type,id,data,i=0,internalKey=jQuery.expando,cache=jQuery.cache,deleteExpando=support.deleteExpando,special=jQuery.event.special;for(;(elem=elems[i])!=null;i++){if(acceptData||jQuery.acceptData(elem)){id=elem[internalKey];data=id&&cache[id];if(data){if(data.events){for(type in data.events){if(special[type]){jQuery.event.remove(elem,type);
// This is a shortcut to avoid jQuery.event.remove's overhead
}else{jQuery.removeEvent(elem,type,data.handle)}}}
// Remove cache only if it was not already removed by jQuery.event.remove
if(cache[id]){delete cache[id];
// IE does not allow us to delete expando properties from nodes,
// nor does it have a removeAttribute function on Document nodes;
// we must handle all of these cases
if(deleteExpando){delete elem[internalKey]}else if(typeof elem.removeAttribute!==strundefined){elem.removeAttribute(internalKey)}else{elem[internalKey]=null}deletedIds.push(id)}}}}}});jQuery.fn.extend({text:function(value){return access(this,function(value){return value===undefined?jQuery.text(this):this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(value))},null,value,arguments.length)},append:function(){return this.domManip(arguments,function(elem){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var target=manipulationTarget(this,elem);target.appendChild(elem)}})},prepend:function(){return this.domManip(arguments,function(elem){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var target=manipulationTarget(this,elem);target.insertBefore(elem,target.firstChild)}})},before:function(){return this.domManip(arguments,function(elem){if(this.parentNode){this.parentNode.insertBefore(elem,this)}})},after:function(){return this.domManip(arguments,function(elem){if(this.parentNode){this.parentNode.insertBefore(elem,this.nextSibling)}})},remove:function(selector,keepData/* Internal Use Only */){var elem,elems=selector?jQuery.filter(selector,this):this,i=0;for(;(elem=elems[i])!=null;i++){if(!keepData&&elem.nodeType===1){jQuery.cleanData(getAll(elem))}if(elem.parentNode){if(keepData&&jQuery.contains(elem.ownerDocument,elem)){setGlobalEval(getAll(elem,"script"))}elem.parentNode.removeChild(elem)}}return this},empty:function(){var elem,i=0;for(;(elem=this[i])!=null;i++){
// Remove element nodes and prevent memory leaks
if(elem.nodeType===1){jQuery.cleanData(getAll(elem,false))}
// Remove any remaining nodes
while(elem.firstChild){elem.removeChild(elem.firstChild)}
// If this is a select, ensure that it displays empty (#12336)
// Support: IE<9
if(elem.options&&jQuery.nodeName(elem,"select")){elem.options.length=0}}return this},clone:function(dataAndEvents,deepDataAndEvents){dataAndEvents=dataAndEvents==null?false:dataAndEvents;deepDataAndEvents=deepDataAndEvents==null?dataAndEvents:deepDataAndEvents;return this.map(function(){return jQuery.clone(this,dataAndEvents,deepDataAndEvents)})},html:function(value){return access(this,function(value){var elem=this[0]||{},i=0,l=this.length;if(value===undefined){return elem.nodeType===1?elem.innerHTML.replace(rinlinejQuery,""):undefined}
// See if we can take a shortcut and just use innerHTML
if(typeof value==="string"&&!rnoInnerhtml.test(value)&&(support.htmlSerialize||!rnoshimcache.test(value))&&(support.leadingWhitespace||!rleadingWhitespace.test(value))&&!wrapMap[(rtagName.exec(value)||["",""])[1].toLowerCase()]){value=value.replace(rxhtmlTag,"<$1></$2>");try{for(;i<l;i++){
// Remove element nodes and prevent memory leaks
elem=this[i]||{};if(elem.nodeType===1){jQuery.cleanData(getAll(elem,false));elem.innerHTML=value}}elem=0;
// If using innerHTML throws an exception, use the fallback method
}catch(e){}}if(elem){this.empty().append(value)}},null,value,arguments.length)},replaceWith:function(){var arg=arguments[0];
// Make the changes, replacing each context element with the new content
this.domManip(arguments,function(elem){arg=this.parentNode;jQuery.cleanData(getAll(this));if(arg){arg.replaceChild(elem,this)}});
// Force removal if there was no new content (e.g., from empty arguments)
return arg&&(arg.length||arg.nodeType)?this:this.remove()},detach:function(selector){return this.remove(selector,true)},domManip:function(args,callback){
// Flatten any nested arrays
args=concat.apply([],args);var first,node,hasScripts,scripts,doc,fragment,i=0,l=this.length,set=this,iNoClone=l-1,value=args[0],isFunction=jQuery.isFunction(value);
// We can't cloneNode fragments that contain checked, in WebKit
if(isFunction||l>1&&typeof value==="string"&&!support.checkClone&&rchecked.test(value)){return this.each(function(index){var self=set.eq(index);if(isFunction){args[0]=value.call(this,index,self.html())}self.domManip(args,callback)})}if(l){fragment=jQuery.buildFragment(args,this[0].ownerDocument,false,this);first=fragment.firstChild;if(fragment.childNodes.length===1){fragment=first}if(first){scripts=jQuery.map(getAll(fragment,"script"),disableScript);hasScripts=scripts.length;
// Use the original fragment for the last item instead of the first because it can end up
// being emptied incorrectly in certain situations (#8070).
for(;i<l;i++){node=fragment;if(i!==iNoClone){node=jQuery.clone(node,true,true);
// Keep references to cloned scripts for later restoration
if(hasScripts){jQuery.merge(scripts,getAll(node,"script"))}}callback.call(this[i],node,i)}if(hasScripts){doc=scripts[scripts.length-1].ownerDocument;
// Reenable scripts
jQuery.map(scripts,restoreScript);
// Evaluate executable scripts on first document insertion
for(i=0;i<hasScripts;i++){node=scripts[i];if(rscriptType.test(node.type||"")&&!jQuery._data(node,"globalEval")&&jQuery.contains(doc,node)){if(node.src){
// Optional AJAX dependency, but won't run scripts if not present
if(jQuery._evalUrl){jQuery._evalUrl(node.src)}}else{jQuery.globalEval((node.text||node.textContent||node.innerHTML||"").replace(rcleanScript,""))}}}}
// Fix #11809: Avoid leaking memory
fragment=first=null}}return this}});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=function(selector){var elems,i=0,ret=[],insert=jQuery(selector),last=insert.length-1;for(;i<=last;i++){elems=i===last?this:this.clone(true);jQuery(insert[i])[original](elems);
// Modern browsers can apply jQuery collections as arrays, but oldIE needs a .get()
push.apply(ret,elems.get())}return this.pushStack(ret)}});var iframe,elemdisplay={};
/**
 * Retrieve the actual display of a element
 * @param {String} name nodeName of the element
 * @param {Object} doc Document object
 */
// Called only from within defaultDisplay
function actualDisplay(name,doc){var elem=jQuery(doc.createElement(name)).appendTo(doc.body),
// getDefaultComputedStyle might be reliably used only on attached element
display=window.getDefaultComputedStyle?
// Use of this method is a temporary fix (more like optmization) until something better comes along,
// since it was removed from specification and supported only in FF
window.getDefaultComputedStyle(elem[0]).display:jQuery.css(elem[0],"display");
// We don't have any data stored on the element,
// so use "detach" method as fast way to get rid of the element
elem.detach();return display}
/**
 * Try to determine the default display value of an element
 * @param {String} nodeName
 */function defaultDisplay(nodeName){var doc=document,display=elemdisplay[nodeName];if(!display){display=actualDisplay(nodeName,doc);
// If the simple way fails, read from inside an iframe
if(display==="none"||!display){
// Use the already-created iframe if possible
iframe=(iframe||jQuery("<iframe frameborder='0' width='0' height='0'/>")).appendTo(doc.documentElement);
// Always write a new HTML skeleton so Webkit and Firefox don't choke on reuse
doc=(iframe[0].contentWindow||iframe[0].contentDocument).document;
// Support: IE
doc.write();doc.close();display=actualDisplay(nodeName,doc);iframe.detach()}
// Store the correct default display
elemdisplay[nodeName]=display}return display}(function(){var a,shrinkWrapBlocksVal,div=document.createElement("div"),divReset="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;"+"display:block;padding:0;margin:0;border:0";
// Setup
div.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";a=div.getElementsByTagName("a")[0];a.style.cssText="float:left;opacity:.5";
// Make sure that element opacity exists
// (IE uses filter instead)
// Use a regex to work around a WebKit issue. See #5145
support.opacity=/^0.5/.test(a.style.opacity);
// Verify style float existence
// (IE uses styleFloat instead of cssFloat)
support.cssFloat=!!a.style.cssFloat;div.style.backgroundClip="content-box";div.cloneNode(true).style.backgroundClip="";support.clearCloneStyle=div.style.backgroundClip==="content-box";
// Null elements to avoid leaks in IE.
a=div=null;support.shrinkWrapBlocks=function(){var body,container,div,containerStyles;if(shrinkWrapBlocksVal==null){body=document.getElementsByTagName("body")[0];if(!body){
// Test fired too early or in an unsupported environment, exit.
return}containerStyles="border:0;width:0;height:0;position:absolute;top:0;left:-9999px";container=document.createElement("div");div=document.createElement("div");body.appendChild(container).appendChild(div);
// Will be changed later if needed.
shrinkWrapBlocksVal=false;if(typeof div.style.zoom!==strundefined){
// Support: IE6
// Check if elements with layout shrink-wrap their children
div.style.cssText=divReset+";width:1px;padding:1px;zoom:1";div.innerHTML="<div></div>";div.firstChild.style.width="5px";shrinkWrapBlocksVal=div.offsetWidth!==3}body.removeChild(container);
// Null elements to avoid leaks in IE.
body=container=div=null}return shrinkWrapBlocksVal}})();var rmargin=/^margin/;var rnumnonpx=new RegExp("^("+pnum+")(?!px)[a-z%]+$","i");var getStyles,curCSS,rposition=/^(top|right|bottom|left)$/;if(window.getComputedStyle){getStyles=function(elem){return elem.ownerDocument.defaultView.getComputedStyle(elem,null)};curCSS=function(elem,name,computed){var width,minWidth,maxWidth,ret,style=elem.style;computed=computed||getStyles(elem);
// getPropertyValue is only needed for .css('filter') in IE9, see #12537
ret=computed?computed.getPropertyValue(name)||computed[name]:undefined;if(computed){if(ret===""&&!jQuery.contains(elem.ownerDocument,elem)){ret=jQuery.style(elem,name)}
// A tribute to the "awesome hack by Dean Edwards"
// Chrome < 17 and Safari 5.0 uses "computed value" instead of "used value" for margin-right
// Safari 5.1.7 (at least) returns percentage for a larger set of values, but width seems to be reliably pixels
// this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values
if(rnumnonpx.test(ret)&&rmargin.test(name)){
// Remember the original values
width=style.width;minWidth=style.minWidth;maxWidth=style.maxWidth;
// Put in the new values to get a computed value out
style.minWidth=style.maxWidth=style.width=ret;ret=computed.width;
// Revert the changed values
style.width=width;style.minWidth=minWidth;style.maxWidth=maxWidth}}
// Support: IE
// IE returns zIndex value as an integer.
return ret===undefined?ret:ret+""}}else if(document.documentElement.currentStyle){getStyles=function(elem){return elem.currentStyle};curCSS=function(elem,name,computed){var left,rs,rsLeft,ret,style=elem.style;computed=computed||getStyles(elem);ret=computed?computed[name]:undefined;
// Avoid setting ret to empty string here
// so we don't default to auto
if(ret==null&&style&&style[name]){ret=style[name]}
// From the awesome hack by Dean Edwards
// http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
// If we're not dealing with a regular pixel number
// but a number that has a weird ending, we need to convert it to pixels
// but not position css attributes, as those are proportional to the parent element instead
// and we can't measure the parent instead because it might trigger a "stacking dolls" problem
if(rnumnonpx.test(ret)&&!rposition.test(name)){
// Remember the original values
left=style.left;rs=elem.runtimeStyle;rsLeft=rs&&rs.left;
// Put in the new values to get a computed value out
if(rsLeft){rs.left=elem.currentStyle.left}style.left=name==="fontSize"?"1em":ret;ret=style.pixelLeft+"px";
// Revert the changed values
style.left=left;if(rsLeft){rs.left=rsLeft}}
// Support: IE
// IE returns zIndex value as an integer.
return ret===undefined?ret:ret+""||"auto"}}function addGetHookIf(conditionFn,hookFn){
// Define the hook, we'll check on the first run if it's really needed.
return{get:function(){var condition=conditionFn();if(condition==null){
// The test was not ready at this point; screw the hook this time
// but check again when needed next time.
return}if(condition){
// Hook not needed (or it's not possible to use it due to missing dependency),
// remove it.
// Since there are no other hooks for marginRight, remove the whole object.
delete this.get;return}
// Hook needed; redefine it so that the support test is not executed again.
return(this.get=hookFn).apply(this,arguments)}}}(function(){var a,reliableHiddenOffsetsVal,boxSizingVal,boxSizingReliableVal,pixelPositionVal,reliableMarginRightVal,div=document.createElement("div"),containerStyles="border:0;width:0;height:0;position:absolute;top:0;left:-9999px",divReset="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;"+"display:block;padding:0;margin:0;border:0";
// Setup
div.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";a=div.getElementsByTagName("a")[0];a.style.cssText="float:left;opacity:.5";
// Make sure that element opacity exists
// (IE uses filter instead)
// Use a regex to work around a WebKit issue. See #5145
support.opacity=/^0.5/.test(a.style.opacity);
// Verify style float existence
// (IE uses styleFloat instead of cssFloat)
support.cssFloat=!!a.style.cssFloat;div.style.backgroundClip="content-box";div.cloneNode(true).style.backgroundClip="";support.clearCloneStyle=div.style.backgroundClip==="content-box";
// Null elements to avoid leaks in IE.
a=div=null;jQuery.extend(support,{reliableHiddenOffsets:function(){if(reliableHiddenOffsetsVal!=null){return reliableHiddenOffsetsVal}var container,tds,isSupported,div=document.createElement("div"),body=document.getElementsByTagName("body")[0];if(!body){
// Return for frameset docs that don't have a body
return}
// Setup
div.setAttribute("className","t");div.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";container=document.createElement("div");container.style.cssText=containerStyles;body.appendChild(container).appendChild(div);
// Support: IE8
// Check if table cells still have offsetWidth/Height when they are set
// to display:none and there are still other visible table cells in a
// table row; if so, offsetWidth/Height are not reliable for use when
// determining if an element has been hidden directly using
// display:none (it is still safe to use offsets if a parent element is
// hidden; don safety goggles and see bug #4512 for more information).
div.innerHTML="<table><tr><td></td><td>t</td></tr></table>";tds=div.getElementsByTagName("td");tds[0].style.cssText="padding:0;margin:0;border:0;display:none";isSupported=tds[0].offsetHeight===0;tds[0].style.display="";tds[1].style.display="none";
// Support: IE8
// Check if empty table cells still have offsetWidth/Height
reliableHiddenOffsetsVal=isSupported&&tds[0].offsetHeight===0;body.removeChild(container);
// Null elements to avoid leaks in IE.
div=body=null;return reliableHiddenOffsetsVal},boxSizing:function(){if(boxSizingVal==null){computeStyleTests()}return boxSizingVal},boxSizingReliable:function(){if(boxSizingReliableVal==null){computeStyleTests()}return boxSizingReliableVal},pixelPosition:function(){if(pixelPositionVal==null){computeStyleTests()}return pixelPositionVal},reliableMarginRight:function(){var body,container,div,marginDiv;
// Use window.getComputedStyle because jsdom on node.js will break without it.
if(reliableMarginRightVal==null&&window.getComputedStyle){body=document.getElementsByTagName("body")[0];if(!body){
// Test fired too early or in an unsupported environment, exit.
return}container=document.createElement("div");div=document.createElement("div");container.style.cssText=containerStyles;body.appendChild(container).appendChild(div);
// Check if div with explicit width and no margin-right incorrectly
// gets computed margin-right based on width of container. (#3333)
// Fails in WebKit before Feb 2011 nightlies
// WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
marginDiv=div.appendChild(document.createElement("div"));marginDiv.style.cssText=div.style.cssText=divReset;marginDiv.style.marginRight=marginDiv.style.width="0";div.style.width="1px";reliableMarginRightVal=!parseFloat((window.getComputedStyle(marginDiv,null)||{}).marginRight);body.removeChild(container)}return reliableMarginRightVal}});function computeStyleTests(){var container,div,body=document.getElementsByTagName("body")[0];if(!body){
// Test fired too early or in an unsupported environment, exit.
return}container=document.createElement("div");div=document.createElement("div");container.style.cssText=containerStyles;body.appendChild(container).appendChild(div);div.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;"+"position:absolute;display:block;padding:1px;border:1px;width:4px;"+"margin-top:1%;top:1%";
// Workaround failing boxSizing test due to offsetWidth returning wrong value
// with some non-1 values of body zoom, ticket #13543
jQuery.swap(body,body.style.zoom!=null?{zoom:1}:{},function(){boxSizingVal=div.offsetWidth===4});
// Will be changed later if needed.
boxSizingReliableVal=true;pixelPositionVal=false;reliableMarginRightVal=true;
// Use window.getComputedStyle because jsdom on node.js will break without it.
if(window.getComputedStyle){pixelPositionVal=(window.getComputedStyle(div,null)||{}).top!=="1%";boxSizingReliableVal=(window.getComputedStyle(div,null)||{width:"4px"}).width==="4px"}body.removeChild(container);
// Null elements to avoid leaks in IE.
div=body=null}})();
// A method for quickly swapping in/out CSS properties to get correct calculations.
jQuery.swap=function(elem,options,callback,args){var ret,name,old={};
// Remember the old values, and insert the new ones
for(name in options){old[name]=elem.style[name];elem.style[name]=options[name]}ret=callback.apply(elem,args||[]);
// Revert the old values
for(name in options){elem.style[name]=old[name]}return ret};var ralpha=/alpha\([^)]*\)/i,ropacity=/opacity\s*=\s*([^)]*)/,
// swappable if display is none or starts with table except "table", "table-cell", or "table-caption"
// see here for display values: https://developer.mozilla.org/en-US/docs/CSS/display
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"];
// return a css property mapped to a potentially vendor prefixed property
function vendorPropName(style,name){
// shortcut for names that are not vendor prefixed
if(name in style){return name}
// check for vendor prefixed names
var capName=name.charAt(0).toUpperCase()+name.slice(1),origName=name,i=cssPrefixes.length;while(i--){name=cssPrefixes[i]+capName;if(name in style){return name}}return origName}function showHide(elements,show){var display,elem,hidden,values=[],index=0,length=elements.length;for(;index<length;index++){elem=elements[index];if(!elem.style){continue}values[index]=jQuery._data(elem,"olddisplay");display=elem.style.display;if(show){
// Reset the inline display of this element to learn if it is
// being hidden by cascaded rules or not
if(!values[index]&&display==="none"){elem.style.display=""}
// Set elements which have been overridden with display: none
// in a stylesheet to whatever the default browser style is
// for such an element
if(elem.style.display===""&&isHidden(elem)){values[index]=jQuery._data(elem,"olddisplay",defaultDisplay(elem.nodeName))}}else{if(!values[index]){hidden=isHidden(elem);if(display&&display!=="none"||!hidden){jQuery._data(elem,"olddisplay",hidden?display:jQuery.css(elem,"display"))}}}}
// Set the display of most of the elements in a second loop
// to avoid the constant reflow
for(index=0;index<length;index++){elem=elements[index];if(!elem.style){continue}if(!show||elem.style.display==="none"||elem.style.display===""){elem.style.display=show?values[index]||"":"none"}}return elements}function setPositiveNumber(elem,value,subtract){var matches=rnumsplit.exec(value);return matches?
// Guard against undefined "subtract", e.g., when used as in cssHooks
Math.max(0,matches[1]-(subtract||0))+(matches[2]||"px"):value}function augmentWidthOrHeight(elem,name,extra,isBorderBox,styles){var i=extra===(isBorderBox?"border":"content")?
// If we already have the right measurement, avoid augmentation
4:
// Otherwise initialize for horizontal or vertical properties
name==="width"?1:0,val=0;for(;i<4;i+=2){
// both box models exclude margin, so add it if we want it
if(extra==="margin"){val+=jQuery.css(elem,extra+cssExpand[i],true,styles)}if(isBorderBox){
// border-box includes padding, so remove it if we want content
if(extra==="content"){val-=jQuery.css(elem,"padding"+cssExpand[i],true,styles)}
// at this point, extra isn't border nor margin, so remove border
if(extra!=="margin"){val-=jQuery.css(elem,"border"+cssExpand[i]+"Width",true,styles)}}else{
// at this point, extra isn't content, so add padding
val+=jQuery.css(elem,"padding"+cssExpand[i],true,styles);
// at this point, extra isn't content nor padding, so add border
if(extra!=="padding"){val+=jQuery.css(elem,"border"+cssExpand[i]+"Width",true,styles)}}}return val}function getWidthOrHeight(elem,name,extra){
// Start with offset property, which is equivalent to the border-box value
var valueIsBorderBox=true,val=name==="width"?elem.offsetWidth:elem.offsetHeight,styles=getStyles(elem),isBorderBox=support.boxSizing()&&jQuery.css(elem,"boxSizing",false,styles)==="border-box";
// some non-html elements return undefined for offsetWidth, so check for null/undefined
// svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285
// MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668
if(val<=0||val==null){
// Fall back to computed then uncomputed css if necessary
val=curCSS(elem,name,styles);if(val<0||val==null){val=elem.style[name]}
// Computed unit is not pixels. Stop here and return.
if(rnumnonpx.test(val)){return val}
// we need the check for style in case a browser which returns unreliable values
// for getComputedStyle silently falls back to the reliable elem.style
valueIsBorderBox=isBorderBox&&(support.boxSizingReliable()||val===elem.style[name]);
// Normalize "", auto, and prepare for extra
val=parseFloat(val)||0}
// use the active box-sizing model to add/subtract irrelevant styles
return val+augmentWidthOrHeight(elem,name,extra||(isBorderBox?"border":"content"),valueIsBorderBox,styles)+"px"}jQuery.extend({
// Add in style property hooks for overriding the default
// behavior of getting and setting a style property
cssHooks:{opacity:{get:function(elem,computed){if(computed){
// We should always get a number back from opacity
var ret=curCSS(elem,"opacity");return ret===""?"1":ret}}}},
// Don't automatically add "px" to these possibly-unitless properties
cssNumber:{columnCount:true,fillOpacity:true,fontWeight:true,lineHeight:true,opacity:true,order:true,orphans:true,widows:true,zIndex:true,zoom:true},
// Add in properties whose names you wish to fix before
// setting or getting the value
cssProps:{
// normalize float css property
float:support.cssFloat?"cssFloat":"styleFloat"},
// Get and set the style property on a DOM Node
style:function(elem,name,value,extra){
// Don't set styles on text and comment nodes
if(!elem||elem.nodeType===3||elem.nodeType===8||!elem.style){return}
// Make sure that we're working with the right name
var ret,type,hooks,origName=jQuery.camelCase(name),style=elem.style;name=jQuery.cssProps[origName]||(jQuery.cssProps[origName]=vendorPropName(style,origName));
// gets hook for the prefixed version
// followed by the unprefixed version
hooks=jQuery.cssHooks[name]||jQuery.cssHooks[origName];
// Check if we're setting a value
if(value!==undefined){type=typeof value;
// convert relative number strings (+= or -=) to relative numbers. #7345
if(type==="string"&&(ret=rrelNum.exec(value))){value=(ret[1]+1)*ret[2]+parseFloat(jQuery.css(elem,name));
// Fixes bug #9237
type="number"}
// Make sure that null and NaN values aren't set. See: #7116
if(value==null||value!==value){return}
// If a number was passed in, add 'px' to the (except for certain CSS properties)
if(type==="number"&&!jQuery.cssNumber[origName]){value+="px"}
// Fixes #8908, it can be done more correctly by specifing setters in cssHooks,
// but it would mean to define eight (for every problematic property) identical functions
if(!support.clearCloneStyle&&value===""&&name.indexOf("background")===0){style[name]="inherit"}
// If a hook was provided, use that value, otherwise just set the specified value
if(!hooks||!("set"in hooks)||(value=hooks.set(elem,value,extra))!==undefined){
// Support: IE
// Swallow errors from 'invalid' CSS values (#5509)
try{
// Support: Chrome, Safari
// Setting style to blank string required to delete "style: x !important;"
style[name]="";style[name]=value}catch(e){}}}else{
// If a hook was provided get the non-computed value from there
if(hooks&&"get"in hooks&&(ret=hooks.get(elem,false,extra))!==undefined){return ret}
// Otherwise just get the value from the style object
return style[name]}},css:function(elem,name,extra,styles){var num,val,hooks,origName=jQuery.camelCase(name);
// Make sure that we're working with the right name
name=jQuery.cssProps[origName]||(jQuery.cssProps[origName]=vendorPropName(elem.style,origName));
// gets hook for the prefixed version
// followed by the unprefixed version
hooks=jQuery.cssHooks[name]||jQuery.cssHooks[origName];
// If a hook was provided get the computed value from there
if(hooks&&"get"in hooks){val=hooks.get(elem,true,extra)}
// Otherwise, if a way to get the computed value exists, use that
if(val===undefined){val=curCSS(elem,name,styles)}
//convert "normal" to computed value
if(val==="normal"&&name in cssNormalTransform){val=cssNormalTransform[name]}
// Return, converting to number if forced or a qualifier was provided and val looks numeric
if(extra===""||extra){num=parseFloat(val);return extra===true||jQuery.isNumeric(num)?num||0:val}return val}});jQuery.each(["height","width"],function(i,name){jQuery.cssHooks[name]={get:function(elem,computed,extra){if(computed){
// certain elements can have dimension info if we invisibly show them
// however, it must have a current display style that would benefit from this
return elem.offsetWidth===0&&rdisplayswap.test(jQuery.css(elem,"display"))?jQuery.swap(elem,cssShow,function(){return getWidthOrHeight(elem,name,extra)}):getWidthOrHeight(elem,name,extra)}},set:function(elem,value,extra){var styles=extra&&getStyles(elem);return setPositiveNumber(elem,value,extra?augmentWidthOrHeight(elem,name,extra,support.boxSizing()&&jQuery.css(elem,"boxSizing",false,styles)==="border-box",styles):0)}}});if(!support.opacity){jQuery.cssHooks.opacity={get:function(elem,computed){
// IE uses filters for opacity
return ropacity.test((computed&&elem.currentStyle?elem.currentStyle.filter:elem.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":computed?"1":""},set:function(elem,value){var style=elem.style,currentStyle=elem.currentStyle,opacity=jQuery.isNumeric(value)?"alpha(opacity="+value*100+")":"",filter=currentStyle&&currentStyle.filter||style.filter||"";
// IE has trouble with opacity if it does not have layout
// Force it by setting the zoom level
style.zoom=1;
// if setting opacity to 1, and no other filters exist - attempt to remove filter attribute #6652
// if value === "", then remove inline opacity #12685
if((value>=1||value==="")&&jQuery.trim(filter.replace(ralpha,""))===""&&style.removeAttribute){
// Setting style.filter to null, "" & " " still leave "filter:" in the cssText
// if "filter:" is present at all, clearType is disabled, we want to avoid this
// style.removeAttribute is IE Only, but so apparently is this code path...
style.removeAttribute("filter");
// if there is no filter style applied in a css rule or unset inline opacity, we are done
if(value===""||currentStyle&&!currentStyle.filter){return}}
// otherwise, set new filter values
style.filter=ralpha.test(filter)?filter.replace(ralpha,opacity):filter+" "+opacity}}}jQuery.cssHooks.marginRight=addGetHookIf(support.reliableMarginRight,function(elem,computed){if(computed){
// WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
// Work around by temporarily setting element display to inline-block
return jQuery.swap(elem,{display:"inline-block"},curCSS,[elem,"marginRight"])}});
// These hooks are used by animate to expand properties
jQuery.each({margin:"",padding:"",border:"Width"},function(prefix,suffix){jQuery.cssHooks[prefix+suffix]={expand:function(value){var i=0,expanded={},
// assumes a single number if not a string
parts=typeof value==="string"?value.split(" "):[value];for(;i<4;i++){expanded[prefix+cssExpand[i]+suffix]=parts[i]||parts[i-2]||parts[0]}return expanded}};if(!rmargin.test(prefix)){jQuery.cssHooks[prefix+suffix].set=setPositiveNumber}});jQuery.fn.extend({css:function(name,value){return access(this,function(elem,name,value){var styles,len,map={},i=0;if(jQuery.isArray(name)){styles=getStyles(elem);len=name.length;for(;i<len;i++){map[name[i]]=jQuery.css(elem,name[i],false,styles)}return map}return value!==undefined?jQuery.style(elem,name,value):jQuery.css(elem,name)},name,value,arguments.length>1)},show:function(){return showHide(this,true)},hide:function(){return showHide(this)},toggle:function(state){if(typeof state==="boolean"){return state?this.show():this.hide()}return this.each(function(){if(isHidden(this)){jQuery(this).show()}else{jQuery(this).hide()}})}});function Tween(elem,options,prop,end,easing){return new Tween.prototype.init(elem,options,prop,end,easing)}jQuery.Tween=Tween;Tween.prototype={constructor:Tween,init:function(elem,options,prop,end,easing,unit){this.elem=elem;this.prop=prop;this.easing=easing||"swing";this.options=options;this.start=this.now=this.cur();this.end=end;this.unit=unit||(jQuery.cssNumber[prop]?"":"px")},cur:function(){var hooks=Tween.propHooks[this.prop];return hooks&&hooks.get?hooks.get(this):Tween.propHooks._default.get(this)},run:function(percent){var eased,hooks=Tween.propHooks[this.prop];if(this.options.duration){this.pos=eased=jQuery.easing[this.easing](percent,this.options.duration*percent,0,1,this.options.duration)}else{this.pos=eased=percent}this.now=(this.end-this.start)*eased+this.start;if(this.options.step){this.options.step.call(this.elem,this.now,this)}if(hooks&&hooks.set){hooks.set(this)}else{Tween.propHooks._default.set(this)}return this}};Tween.prototype.init.prototype=Tween.prototype;Tween.propHooks={_default:{get:function(tween){var result;if(tween.elem[tween.prop]!=null&&(!tween.elem.style||tween.elem.style[tween.prop]==null)){return tween.elem[tween.prop]}
// passing an empty string as a 3rd parameter to .css will automatically
// attempt a parseFloat and fallback to a string if the parse fails
// so, simple values such as "10px" are parsed to Float.
// complex values such as "rotate(1rad)" are returned as is.
result=jQuery.css(tween.elem,tween.prop,"");
// Empty strings, null, undefined and "auto" are converted to 0.
return!result||result==="auto"?0:result},set:function(tween){
// use step hook for back compat - use cssHook if its there - use .style if its
// available and use plain properties where available
if(jQuery.fx.step[tween.prop]){jQuery.fx.step[tween.prop](tween)}else if(tween.elem.style&&(tween.elem.style[jQuery.cssProps[tween.prop]]!=null||jQuery.cssHooks[tween.prop])){jQuery.style(tween.elem,tween.prop,tween.now+tween.unit)}else{tween.elem[tween.prop]=tween.now}}}};
// Support: IE <=9
// Panic based approach to setting things on disconnected nodes
Tween.propHooks.scrollTop=Tween.propHooks.scrollLeft={set:function(tween){if(tween.elem.nodeType&&tween.elem.parentNode){tween.elem[tween.prop]=tween.now}}};jQuery.easing={linear:function(p){return p},swing:function(p){return.5-Math.cos(p*Math.PI)/2}};jQuery.fx=Tween.prototype.init;
// Back Compat <1.8 extension point
jQuery.fx.step={};var fxNow,timerId,rfxtypes=/^(?:toggle|show|hide)$/,rfxnum=new RegExp("^(?:([+-])=|)("+pnum+")([a-z%]*)$","i"),rrun=/queueHooks$/,animationPrefilters=[defaultPrefilter],tweeners={"*":[function(prop,value){var tween=this.createTween(prop,value),target=tween.cur(),parts=rfxnum.exec(value),unit=parts&&parts[3]||(jQuery.cssNumber[prop]?"":"px"),
// Starting value computation is required for potential unit mismatches
start=(jQuery.cssNumber[prop]||unit!=="px"&&+target)&&rfxnum.exec(jQuery.css(tween.elem,prop)),scale=1,maxIterations=20;if(start&&start[3]!==unit){
// Trust units reported by jQuery.css
unit=unit||start[3];
// Make sure we update the tween properties later on
parts=parts||[];
// Iteratively approximate from a nonzero starting point
start=+target||1;do{
// If previous iteration zeroed out, double until we get *something*
// Use a string for doubling factor so we don't accidentally see scale as unchanged below
scale=scale||".5";
// Adjust and apply
start=start/scale;jQuery.style(tween.elem,prop,start+unit);
// Update scale, tolerating zero or NaN from tween.cur()
// And breaking the loop if scale is unchanged or perfect, or if we've just had enough
}while(scale!==(scale=tween.cur()/target)&&scale!==1&&--maxIterations)}
// Update tween properties
if(parts){start=tween.start=+start||+target||0;tween.unit=unit;
// If a +=/-= token was provided, we're doing a relative animation
tween.end=parts[1]?start+(parts[1]+1)*parts[2]:+parts[2]}return tween}]};
// Animations created synchronously will run synchronously
function createFxNow(){setTimeout(function(){fxNow=undefined});return fxNow=jQuery.now()}
// Generate parameters to create a standard animation
function genFx(type,includeWidth){var which,attrs={height:type},i=0;
// if we include width, step value is 1 to do all cssExpand values,
// if we don't include width, step value is 2 to skip over Left and Right
includeWidth=includeWidth?1:0;for(;i<4;i+=2-includeWidth){which=cssExpand[i];attrs["margin"+which]=attrs["padding"+which]=type}if(includeWidth){attrs.opacity=attrs.width=type}return attrs}function createTween(value,prop,animation){var tween,collection=(tweeners[prop]||[]).concat(tweeners["*"]),index=0,length=collection.length;for(;index<length;index++){if(tween=collection[index].call(animation,prop,value)){
// we're done with this property
return tween}}}function defaultPrefilter(elem,props,opts){
/* jshint validthis: true */
var prop,value,toggle,tween,hooks,oldfire,display,dDisplay,anim=this,orig={},style=elem.style,hidden=elem.nodeType&&isHidden(elem),dataShow=jQuery._data(elem,"fxshow");
// handle queue: false promises
if(!opts.queue){hooks=jQuery._queueHooks(elem,"fx");if(hooks.unqueued==null){hooks.unqueued=0;oldfire=hooks.empty.fire;hooks.empty.fire=function(){if(!hooks.unqueued){oldfire()}}}hooks.unqueued++;anim.always(function(){
// doing this makes sure that the complete handler will be called
// before this completes
anim.always(function(){hooks.unqueued--;if(!jQuery.queue(elem,"fx").length){hooks.empty.fire()}})})}
// height/width overflow pass
if(elem.nodeType===1&&("height"in props||"width"in props)){
// Make sure that nothing sneaks out
// Record all 3 overflow attributes because IE does not
// change the overflow attribute when overflowX and
// overflowY are set to the same value
opts.overflow=[style.overflow,style.overflowX,style.overflowY];
// Set display property to inline-block for height/width
// animations on inline elements that are having width/height animated
display=jQuery.css(elem,"display");dDisplay=defaultDisplay(elem.nodeName);if(display==="none"){display=dDisplay}if(display==="inline"&&jQuery.css(elem,"float")==="none"){
// inline-level elements accept inline-block;
// block-level elements need to be inline with layout
if(!support.inlineBlockNeedsLayout||dDisplay==="inline"){style.display="inline-block"}else{style.zoom=1}}}if(opts.overflow){style.overflow="hidden";if(!support.shrinkWrapBlocks()){anim.always(function(){style.overflow=opts.overflow[0];style.overflowX=opts.overflow[1];style.overflowY=opts.overflow[2]})}}
// show/hide pass
for(prop in props){value=props[prop];if(rfxtypes.exec(value)){delete props[prop];toggle=toggle||value==="toggle";if(value===(hidden?"hide":"show")){
// If there is dataShow left over from a stopped hide or show and we are going to proceed with show, we should pretend to be hidden
if(value==="show"&&dataShow&&dataShow[prop]!==undefined){hidden=true}else{continue}}orig[prop]=dataShow&&dataShow[prop]||jQuery.style(elem,prop)}}if(!jQuery.isEmptyObject(orig)){if(dataShow){if("hidden"in dataShow){hidden=dataShow.hidden}}else{dataShow=jQuery._data(elem,"fxshow",{})}
// store state if its toggle - enables .stop().toggle() to "reverse"
if(toggle){dataShow.hidden=!hidden}if(hidden){jQuery(elem).show()}else{anim.done(function(){jQuery(elem).hide()})}anim.done(function(){var prop;jQuery._removeData(elem,"fxshow");for(prop in orig){jQuery.style(elem,prop,orig[prop])}});for(prop in orig){tween=createTween(hidden?dataShow[prop]:0,prop,anim);if(!(prop in dataShow)){dataShow[prop]=tween.start;if(hidden){tween.end=tween.start;tween.start=prop==="width"||prop==="height"?1:0}}}}}function propFilter(props,specialEasing){var index,name,easing,value,hooks;
// camelCase, specialEasing and expand cssHook pass
for(index in props){name=jQuery.camelCase(index);easing=specialEasing[name];value=props[index];if(jQuery.isArray(value)){easing=value[1];value=props[index]=value[0]}if(index!==name){props[name]=value;delete props[index]}hooks=jQuery.cssHooks[name];if(hooks&&"expand"in hooks){value=hooks.expand(value);delete props[name];
// not quite $.extend, this wont overwrite keys already present.
// also - reusing 'index' from above because we have the correct "name"
for(index in value){if(!(index in props)){props[index]=value[index];specialEasing[index]=easing}}}else{specialEasing[name]=easing}}}function Animation(elem,properties,options){var result,stopped,index=0,length=animationPrefilters.length,deferred=jQuery.Deferred().always(function(){
// don't match elem in the :animated selector
delete tick.elem}),tick=function(){if(stopped){return false}var currentTime=fxNow||createFxNow(),remaining=Math.max(0,animation.startTime+animation.duration-currentTime),
// archaic crash bug won't allow us to use 1 - ( 0.5 || 0 ) (#12497)
temp=remaining/animation.duration||0,percent=1-temp,index=0,length=animation.tweens.length;for(;index<length;index++){animation.tweens[index].run(percent)}deferred.notifyWith(elem,[animation,percent,remaining]);if(percent<1&&length){return remaining}else{deferred.resolveWith(elem,[animation]);return false}},animation=deferred.promise({elem:elem,props:jQuery.extend({},properties),opts:jQuery.extend(true,{specialEasing:{}},options),originalProperties:properties,originalOptions:options,startTime:fxNow||createFxNow(),duration:options.duration,tweens:[],createTween:function(prop,end){var tween=jQuery.Tween(elem,animation.opts,prop,end,animation.opts.specialEasing[prop]||animation.opts.easing);animation.tweens.push(tween);return tween},stop:function(gotoEnd){var index=0,
// if we are going to the end, we want to run all the tweens
// otherwise we skip this part
length=gotoEnd?animation.tweens.length:0;if(stopped){return this}stopped=true;for(;index<length;index++){animation.tweens[index].run(1)}
// resolve when we played the last frame
// otherwise, reject
if(gotoEnd){deferred.resolveWith(elem,[animation,gotoEnd])}else{deferred.rejectWith(elem,[animation,gotoEnd])}return this}}),props=animation.props;propFilter(props,animation.opts.specialEasing);for(;index<length;index++){result=animationPrefilters[index].call(animation,elem,props,animation.opts);if(result){return result}}jQuery.map(props,createTween,animation);if(jQuery.isFunction(animation.opts.start)){animation.opts.start.call(elem,animation)}jQuery.fx.timer(jQuery.extend(tick,{elem:elem,anim:animation,queue:animation.opts.queue}));
// attach callbacks from options
return animation.progress(animation.opts.progress).done(animation.opts.done,animation.opts.complete).fail(animation.opts.fail).always(animation.opts.always)}jQuery.Animation=jQuery.extend(Animation,{tweener:function(props,callback){if(jQuery.isFunction(props)){callback=props;props=["*"]}else{props=props.split(" ")}var prop,index=0,length=props.length;for(;index<length;index++){prop=props[index];tweeners[prop]=tweeners[prop]||[];tweeners[prop].unshift(callback)}},prefilter:function(callback,prepend){if(prepend){animationPrefilters.unshift(callback)}else{animationPrefilters.push(callback)}}});jQuery.speed=function(speed,easing,fn){var opt=speed&&typeof speed==="object"?jQuery.extend({},speed):{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&!jQuery.isFunction(easing)&&easing};opt.duration=jQuery.fx.off?0:typeof opt.duration==="number"?opt.duration:opt.duration in jQuery.fx.speeds?jQuery.fx.speeds[opt.duration]:jQuery.fx.speeds._default;
// normalize opt.queue - true/undefined/null -> "fx"
if(opt.queue==null||opt.queue===true){opt.queue="fx"}
// Queueing
opt.old=opt.complete;opt.complete=function(){if(jQuery.isFunction(opt.old)){opt.old.call(this)}if(opt.queue){jQuery.dequeue(this,opt.queue)}};return opt};jQuery.fn.extend({fadeTo:function(speed,to,easing,callback){
// show any hidden elements after setting opacity to 0
return this.filter(isHidden).css("opacity",0).show().end().animate({opacity:to},speed,easing,callback)},animate:function(prop,speed,easing,callback){var empty=jQuery.isEmptyObject(prop),optall=jQuery.speed(speed,easing,callback),doAnimation=function(){
// Operate on a copy of prop so per-property easing won't be lost
var anim=Animation(this,jQuery.extend({},prop),optall);
// Empty animations, or finishing resolves immediately
if(empty||jQuery._data(this,"finish")){anim.stop(true)}};doAnimation.finish=doAnimation;return empty||optall.queue===false?this.each(doAnimation):this.queue(optall.queue,doAnimation)},stop:function(type,clearQueue,gotoEnd){var stopQueue=function(hooks){var stop=hooks.stop;delete hooks.stop;stop(gotoEnd)};if(typeof type!=="string"){gotoEnd=clearQueue;clearQueue=type;type=undefined}if(clearQueue&&type!==false){this.queue(type||"fx",[])}return this.each(function(){var dequeue=true,index=type!=null&&type+"queueHooks",timers=jQuery.timers,data=jQuery._data(this);if(index){if(data[index]&&data[index].stop){stopQueue(data[index])}}else{for(index in data){if(data[index]&&data[index].stop&&rrun.test(index)){stopQueue(data[index])}}}for(index=timers.length;index--;){if(timers[index].elem===this&&(type==null||timers[index].queue===type)){timers[index].anim.stop(gotoEnd);dequeue=false;timers.splice(index,1)}}
// start the next in the queue if the last step wasn't forced
// timers currently will call their complete callbacks, which will dequeue
// but only if they were gotoEnd
if(dequeue||!gotoEnd){jQuery.dequeue(this,type)}})},finish:function(type){if(type!==false){type=type||"fx"}return this.each(function(){var index,data=jQuery._data(this),queue=data[type+"queue"],hooks=data[type+"queueHooks"],timers=jQuery.timers,length=queue?queue.length:0;
// enable finishing flag on private data
data.finish=true;
// empty the queue first
jQuery.queue(this,type,[]);if(hooks&&hooks.stop){hooks.stop.call(this,true)}
// look for any active animations, and finish them
for(index=timers.length;index--;){if(timers[index].elem===this&&timers[index].queue===type){timers[index].anim.stop(true);timers.splice(index,1)}}
// look for any animations in the old queue and finish them
for(index=0;index<length;index++){if(queue[index]&&queue[index].finish){queue[index].finish.call(this)}}
// turn off finishing flag
delete data.finish})}});jQuery.each(["toggle","show","hide"],function(i,name){var cssFn=jQuery.fn[name];jQuery.fn[name]=function(speed,easing,callback){return speed==null||typeof speed==="boolean"?cssFn.apply(this,arguments):this.animate(genFx(name,true),speed,easing,callback)}});
// Generate shortcuts for custom animations
jQuery.each({slideDown:genFx("show"),slideUp:genFx("hide"),slideToggle:genFx("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(name,props){jQuery.fn[name]=function(speed,easing,callback){return this.animate(props,speed,easing,callback)}});jQuery.timers=[];jQuery.fx.tick=function(){var timer,timers=jQuery.timers,i=0;fxNow=jQuery.now();for(;i<timers.length;i++){timer=timers[i];
// Checks the timer has not already been removed
if(!timer()&&timers[i]===timer){timers.splice(i--,1)}}if(!timers.length){jQuery.fx.stop()}fxNow=undefined};jQuery.fx.timer=function(timer){jQuery.timers.push(timer);if(timer()){jQuery.fx.start()}else{jQuery.timers.pop()}};jQuery.fx.interval=13;jQuery.fx.start=function(){if(!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 speed
_default:400};
// Based off of the plugin by Clint Helfers, with permission.
// http://blindsignals.com/index.php/2009/07/jquery-delay/
jQuery.fn.delay=function(time,type){time=jQuery.fx?jQuery.fx.speeds[time]||time:time;type=type||"fx";return this.queue(type,function(next,hooks){var timeout=setTimeout(next,time);hooks.stop=function(){clearTimeout(timeout)}})};(function(){var a,input,select,opt,div=document.createElement("div");
// Setup
div.setAttribute("className","t");div.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";a=div.getElementsByTagName("a")[0];
// First batch of tests.
select=document.createElement("select");opt=select.appendChild(document.createElement("option"));input=div.getElementsByTagName("input")[0];a.style.cssText="top:1px";
// Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7)
support.getSetAttribute=div.className!=="t";
// Get the style information from getAttribute
// (IE uses .cssText instead)
support.style=/top/.test(a.getAttribute("style"));
// Make sure that URLs aren't manipulated
// (IE normalizes it by default)
support.hrefNormalized=a.getAttribute("href")==="/a";
// Check the default checkbox/radio value ("" on WebKit; "on" elsewhere)
support.checkOn=!!input.value;
// Make sure that a selected-by-default option has a working selected property.
// (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
support.optSelected=opt.selected;
// Tests for enctype support on a form (#6743)
support.enctype=!!document.createElement("form").enctype;
// Make sure that the options inside disabled selects aren't marked as disabled
// (WebKit marks them as disabled)
select.disabled=true;support.optDisabled=!opt.disabled;
// Support: IE8 only
// Check if we can trust getAttribute("value")
input=document.createElement("input");input.setAttribute("value","");support.input=input.getAttribute("value")==="";
// Check if an input maintains its value after becoming a radio
input.value="t";input.setAttribute("type","radio");support.radioValue=input.value==="t";
// Null elements to avoid leaks in IE.
a=input=select=opt=div=null})();var rreturn=/\r/g;jQuery.fn.extend({val:function(value){var hooks,ret,isFunction,elem=this[0];if(!arguments.length){if(elem){hooks=jQuery.valHooks[elem.type]||jQuery.valHooks[elem.nodeName.toLowerCase()];if(hooks&&"get"in hooks&&(ret=hooks.get(elem,"value"))!==undefined){return ret}ret=elem.value;return typeof ret==="string"?
// handle most common string cases
ret.replace(rreturn,""):
// handle cases where value is null/undef or number
ret==null?"":ret}return}isFunction=jQuery.isFunction(value);return this.each(function(i){var val;if(this.nodeType!==1){return}if(isFunction){val=value.call(this,i,jQuery(this).val())}else{val=value}
// Treat null/undefined as ""; convert numbers to string
if(val==null){val=""}else if(typeof val==="number"){val+=""}else if(jQuery.isArray(val)){val=jQuery.map(val,function(value){return value==null?"":value+""})}hooks=jQuery.valHooks[this.type]||jQuery.valHooks[this.nodeName.toLowerCase()];
// If set returns undefined, fall back to normal setting
if(!hooks||!("set"in hooks)||hooks.set(this,val,"value")===undefined){this.value=val}})}});jQuery.extend({valHooks:{option:{get:function(elem){var val=jQuery.find.attr(elem,"value");return val!=null?val:jQuery.text(elem)}},select:{get:function(elem){var value,option,options=elem.options,index=elem.selectedIndex,one=elem.type==="select-one"||index<0,values=one?null:[],max=one?index+1:options.length,i=index<0?max:one?index:0;
// Loop through all the selected options
for(;i<max;i++){option=options[i];
// oldIE doesn't update selected after form reset (#2551)
if((option.selected||i===index)&&(
// Don't return options that are disabled or in a disabled optgroup
support.optDisabled?!option.disabled:option.getAttribute("disabled")===null)&&(!option.parentNode.disabled||!jQuery.nodeName(option.parentNode,"optgroup"))){
// Get the specific value for the option
value=jQuery(option).val();
// We don't need an array for one selects
if(one){return value}
// Multi-Selects return an array
values.push(value)}}return values},set:function(elem,value){var optionSet,option,options=elem.options,values=jQuery.makeArray(value),i=options.length;while(i--){option=options[i];if(jQuery.inArray(jQuery.valHooks.option.get(option),values)>=0){
// Support: IE6
// When new option element is added to select box we need to
// force reflow of newly added node in order to workaround delay
// of initialization properties
try{option.selected=optionSet=true}catch(_){
// Will be executed only in IE6
option.scrollHeight}}else{option.selected=false}}
// Force browsers to behave consistently when non-matching value is set
if(!optionSet){elem.selectedIndex=-1}return options}}}});
// Radios and checkboxes getter/setter
jQuery.each(["radio","checkbox"],function(){jQuery.valHooks[this]={set:function(elem,value){if(jQuery.isArray(value)){return elem.checked=jQuery.inArray(jQuery(elem).val(),value)>=0}}};if(!support.checkOn){jQuery.valHooks[this].get=function(elem){
// Support: Webkit
// "" is returned instead of "on" if a value isn't specified
return elem.getAttribute("value")===null?"on":elem.value}}});var nodeHook,boolHook,attrHandle=jQuery.expr.attrHandle,ruseDefault=/^(?:checked|selected)$/i,getSetAttribute=support.getSetAttribute,getSetInput=support.input;jQuery.fn.extend({attr:function(name,value){return access(this,jQuery.attr,name,value,arguments.length>1)},removeAttr:function(name){return this.each(function(){jQuery.removeAttr(this,name)})}});jQuery.extend({attr:function(elem,name,value){var hooks,ret,nType=elem.nodeType;
// don't get/set attributes on text, comment and attribute nodes
if(!elem||nType===3||nType===8||nType===2){return}
// Fallback to prop when attributes are not supported
if(typeof elem.getAttribute===strundefined){return jQuery.prop(elem,name,value)}
// All attributes are lowercase
// Grab necessary hook if one is defined
if(nType!==1||!jQuery.isXMLDoc(elem)){name=name.toLowerCase();hooks=jQuery.attrHooks[name]||(jQuery.expr.match.bool.test(name)?boolHook:nodeHook)}if(value!==undefined){if(value===null){jQuery.removeAttr(elem,name)}else if(hooks&&"set"in hooks&&(ret=hooks.set(elem,value,name))!==undefined){return ret}else{elem.setAttribute(name,value+"");return value}}else if(hooks&&"get"in hooks&&(ret=hooks.get(elem,name))!==null){return ret}else{ret=jQuery.find.attr(elem,name);
// Non-existent attributes return null, we normalize to undefined
return ret==null?undefined:ret}},removeAttr:function(elem,value){var name,propName,i=0,attrNames=value&&value.match(rnotwhite);if(attrNames&&elem.nodeType===1){while(name=attrNames[i++]){propName=jQuery.propFix[name]||name;
// Boolean attributes get special treatment (#10870)
if(jQuery.expr.match.bool.test(name)){
// Set corresponding property to false
if(getSetInput&&getSetAttribute||!ruseDefault.test(name)){elem[propName]=false;
// Support: IE<9
// Also clear defaultChecked/defaultSelected (if appropriate)
}else{elem[jQuery.camelCase("default-"+name)]=elem[propName]=false}
// See #9699 for explanation of this approach (setting first, then removal)
}else{jQuery.attr(elem,name,"")}elem.removeAttribute(getSetAttribute?name:propName)}}},attrHooks:{type:{set:function(elem,value){if(!support.radioValue&&value==="radio"&&jQuery.nodeName(elem,"input")){
// Setting the type on a radio button after the value resets the value in IE6-9
// Reset value to default in case type is set after value during creation
var val=elem.value;elem.setAttribute("type",value);if(val){elem.value=val}return value}}}}});
// Hook for boolean attributes
boolHook={set:function(elem,value,name){if(value===false){
// Remove boolean attributes when set to false
jQuery.removeAttr(elem,name)}else if(getSetInput&&getSetAttribute||!ruseDefault.test(name)){
// IE<8 needs the *property* name
elem.setAttribute(!getSetAttribute&&jQuery.propFix[name]||name,name);
// Use defaultChecked and defaultSelected for oldIE
}else{elem[jQuery.camelCase("default-"+name)]=elem[name]=true}return name}};
// Retrieve booleans specially
jQuery.each(jQuery.expr.match.bool.source.match(/\w+/g),function(i,name){var getter=attrHandle[name]||jQuery.find.attr;attrHandle[name]=getSetInput&&getSetAttribute||!ruseDefault.test(name)?function(elem,name,isXML){var ret,handle;if(!isXML){
// Avoid an infinite loop by temporarily removing this function from the getter
handle=attrHandle[name];attrHandle[name]=ret;ret=getter(elem,name,isXML)!=null?name.toLowerCase():null;attrHandle[name]=handle}return ret}:function(elem,name,isXML){if(!isXML){return elem[jQuery.camelCase("default-"+name)]?name.toLowerCase():null}}});
// fix oldIE attroperties
if(!getSetInput||!getSetAttribute){jQuery.attrHooks.value={set:function(elem,value,name){if(jQuery.nodeName(elem,"input")){
// Does not return so that setAttribute is also used
elem.defaultValue=value}else{
// Use nodeHook if defined (#1954); otherwise setAttribute is fine
return nodeHook&&nodeHook.set(elem,value,name)}}}}
// IE6/7 do not support getting/setting some attributes with get/setAttribute
if(!getSetAttribute){
// Use this for any attribute in IE6/7
// This fixes almost every IE6/7 issue
nodeHook={set:function(elem,value,name){
// Set the existing or create a new attribute node
var ret=elem.getAttributeNode(name);if(!ret){elem.setAttributeNode(ret=elem.ownerDocument.createAttribute(name))}ret.value=value+="";
// Break association with cloned elements by also using setAttribute (#9646)
if(name==="value"||value===elem.getAttribute(name)){return value}}};
// Some attributes are constructed with empty-string values when not defined
attrHandle.id=attrHandle.name=attrHandle.coords=function(elem,name,isXML){var ret;if(!isXML){return(ret=elem.getAttributeNode(name))&&ret.value!==""?ret.value:null}};
// Fixing value retrieval on a button requires this module
jQuery.valHooks.button={get:function(elem,name){var ret=elem.getAttributeNode(name);if(ret&&ret.specified){return ret.value}},set:nodeHook.set};
// Set contenteditable to false on removals(#10429)
// Setting to empty string throws an error as an invalid value
jQuery.attrHooks.contenteditable={set:function(elem,value,name){nodeHook.set(elem,value===""?false:value,name)}};
// Set width and height to auto instead of 0 on empty string( Bug #8150 )
// This is for removals
jQuery.each(["width","height"],function(i,name){jQuery.attrHooks[name]={set:function(elem,value){if(value===""){elem.setAttribute(name,"auto");return value}}}})}if(!support.style){jQuery.attrHooks.style={get:function(elem){
// Return undefined in the case of empty string
// Note: IE uppercases css property names, but if we were to .toLowerCase()
// .cssText, that would destroy case senstitivity in URL's, like in "background"
return elem.style.cssText||undefined},set:function(elem,value){return elem.style.cssText=value+""}}}var rfocusable=/^(?:input|select|textarea|button|object)$/i,rclickable=/^(?:a|area)$/i;jQuery.fn.extend({prop:function(name,value){return access(this,jQuery.prop,name,value,arguments.length>1)},removeProp:function(name){name=jQuery.propFix[name]||name;return this.each(function(){
// try/catch handles cases where IE balks (such as removing a property on window)
try{this[name]=undefined;delete this[name]}catch(e){}})}});jQuery.extend({propFix:{for:"htmlFor",class:"className"},prop:function(elem,name,value){var ret,hooks,notxml,nType=elem.nodeType;
// don't get/set properties on text, comment and attribute nodes
if(!elem||nType===3||nType===8||nType===2){return}notxml=nType!==1||!jQuery.isXMLDoc(elem);if(notxml){
// Fix name and attach hooks
name=jQuery.propFix[name]||name;hooks=jQuery.propHooks[name]}if(value!==undefined){return hooks&&"set"in hooks&&(ret=hooks.set(elem,value,name))!==undefined?ret:elem[name]=value}else{return hooks&&"get"in hooks&&(ret=hooks.get(elem,name))!==null?ret:elem[name]}},propHooks:{tabIndex:{get:function(elem){
// elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
// http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
// Use proper attribute retrieval(#12072)
var tabindex=jQuery.find.attr(elem,"tabindex");return tabindex?parseInt(tabindex,10):rfocusable.test(elem.nodeName)||rclickable.test(elem.nodeName)&&elem.href?0:-1}}}});
// Some attributes require a special call on IE
// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
if(!support.hrefNormalized){
// href/src property should get the full normalized URL (#10299/#12915)
jQuery.each(["href","src"],function(i,name){jQuery.propHooks[name]={get:function(elem){return elem.getAttribute(name,4)}}})}
// Support: Safari, IE9+
// mis-reports the default selected property of an option
// Accessing the parent's selectedIndex property fixes it
if(!support.optSelected){jQuery.propHooks.selected={get:function(elem){var parent=elem.parentNode;if(parent){parent.selectedIndex;
// Make sure that it also works with optgroups, see #5701
if(parent.parentNode){parent.parentNode.selectedIndex}}return null}}}jQuery.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){jQuery.propFix[this.toLowerCase()]=this});
// IE6/7 call enctype encoding
if(!support.enctype){jQuery.propFix.enctype="encoding"}var rclass=/[\t\r\n\f]/g;jQuery.fn.extend({addClass:function(value){var classes,elem,cur,clazz,j,finalValue,i=0,len=this.length,proceed=typeof value==="string"&&value;if(jQuery.isFunction(value)){return this.each(function(j){jQuery(this).addClass(value.call(this,j,this.className))})}if(proceed){
// The disjunction here is for better compressibility (see removeClass)
classes=(value||"").match(rnotwhite)||[];for(;i<len;i++){elem=this[i];cur=elem.nodeType===1&&(elem.className?(" "+elem.className+" ").replace(rclass," "):" ");if(cur){j=0;while(clazz=classes[j++]){if(cur.indexOf(" "+clazz+" ")<0){cur+=clazz+" "}}
// only assign if different to avoid unneeded rendering.
finalValue=jQuery.trim(cur);if(elem.className!==finalValue){elem.className=finalValue}}}}return this},removeClass:function(value){var classes,elem,cur,clazz,j,finalValue,i=0,len=this.length,proceed=arguments.length===0||typeof value==="string"&&value;if(jQuery.isFunction(value)){return this.each(function(j){jQuery(this).removeClass(value.call(this,j,this.className))})}if(proceed){classes=(value||"").match(rnotwhite)||[];for(;i<len;i++){elem=this[i];
// This expression is here for better compressibility (see addClass)
cur=elem.nodeType===1&&(elem.className?(" "+elem.className+" ").replace(rclass," "):"");if(cur){j=0;while(clazz=classes[j++]){
// Remove *all* instances
while(cur.indexOf(" "+clazz+" ")>=0){cur=cur.replace(" "+clazz+" "," ")}}
// only assign if different to avoid unneeded rendering.
finalValue=value?jQuery.trim(cur):"";if(elem.className!==finalValue){elem.className=finalValue}}}}return this},toggleClass:function(value,stateVal){var type=typeof value;if(typeof stateVal==="boolean"&&type==="string"){return stateVal?this.addClass(value):this.removeClass(value)}if(jQuery.isFunction(value)){return this.each(function(i){jQuery(this).toggleClass(value.call(this,i,this.className,stateVal),stateVal)})}return this.each(function(){if(type==="string"){
// toggle individual class names
var className,i=0,self=jQuery(this),classNames=value.match(rnotwhite)||[];while(className=classNames[i++]){
// check each className given, space separated list
if(self.hasClass(className)){self.removeClass(className)}else{self.addClass(className)}}
// Toggle whole class name
}else if(type===strundefined||type==="boolean"){if(this.className){
// store className if set
jQuery._data(this,"__className__",this.className)}
// If the element has a class name or if we're passed "false",
// then remove the whole classname (if there was one, the above saved it).
// Otherwise bring back whatever was previously saved (if anything),
// falling back to the empty string if nothing was stored.
this.className=this.className||value===false?"":jQuery._data(this,"__className__")||""}})},hasClass:function(selector){var className=" "+selector+" ",i=0,l=this.length;for(;i<l;i++){if(this[i].nodeType===1&&(" "+this[i].className+" ").replace(rclass," ").indexOf(className)>=0){return true}}return false}});
// Return jQuery for attributes-only inclusion
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(i,name){
// Handle event binding
jQuery.fn[name]=function(data,fn){return arguments.length>0?this.on(name,null,data,fn):this.trigger(name)}});jQuery.fn.extend({hover:function(fnOver,fnOut){return this.mouseenter(fnOver).mouseleave(fnOut||fnOver)},bind:function(types,data,fn){return this.on(types,null,data,fn)},unbind:function(types,fn){return this.off(types,null,fn)},delegate:function(selector,types,data,fn){return this.on(types,selector,data,fn)},undelegate:function(selector,types,fn){
// ( namespace ) or ( selector, types [, fn] )
return arguments.length===1?this.off(selector,"**"):this.off(types,selector||"**",fn)}});var nonce=jQuery.now();var rquery=/\?/;var rvalidtokens=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;jQuery.parseJSON=function(data){
// Attempt to parse using the native JSON parser first
if(window.JSON&&window.JSON.parse){
// Support: Android 2.3
// Workaround failure to string-cast null input
return window.JSON.parse(data+"")}var requireNonComma,depth=null,str=jQuery.trim(data+"");
// Guard against invalid (and possibly dangerous) input by ensuring that nothing remains
// after removing valid tokens
return str&&!jQuery.trim(str.replace(rvalidtokens,function(token,comma,open,close){
// Force termination if we see a misplaced comma
if(requireNonComma&&comma){depth=0}
// Perform no more replacements after returning to outermost depth
if(depth===0){return token}
// Commas must not follow "[", "{", or ","
requireNonComma=open||comma;
// Determine new depth
// array/object open ("[" or "{"): depth += true - false (increment)
// array/object close ("]" or "}"): depth += false - true (decrement)
// other cases ("," or primitive): depth += true - true (numeric cast)
depth+=!close-!open;
// Remove this token
return""}))?Function("return "+str)():jQuery.error("Invalid JSON: "+data)};
// Cross-browser xml parsing
jQuery.parseXML=function(data){var xml,tmp;if(!data||typeof data!=="string"){return null}try{if(window.DOMParser){// Standard
tmp=new DOMParser;xml=tmp.parseFromString(data,"text/xml")}else{// IE
xml=new ActiveXObject("Microsoft.XMLDOM");xml.async="false";xml.loadXML(data)}}catch(e){xml=undefined}if(!xml||!xml.documentElement||xml.getElementsByTagName("parsererror").length){jQuery.error("Invalid XML: "+data)}return xml};var
// Document location
ajaxLocParts,ajaxLocation,rhash=/#.*$/,rts=/([?&])_=[^&]*/,rheaders=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,// IE leaves an \r character at EOL
// #7653, #8125, #8152: local protocol detection
rlocalProtocol=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,rnoContent=/^(?:GET|HEAD)$/,rprotocol=/^\/\//,rurl=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,
/* Prefilters
	 * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
	 * 2) These are called:
	 *    - BEFORE asking for a transport
	 *    - AFTER param serialization (s.data is a string if s.processData is true)
	 * 3) key is the dataType
	 * 4) the catchall symbol "*" can be used
	 * 5) execution will start with transport dataType and THEN continue down to "*" if needed
	 */
prefilters={},
/* Transports bindings
	 * 1) key is the dataType
	 * 2) the catchall symbol "*" can be used
	 * 3) selection will start with transport dataType and THEN go to "*" if needed
	 */
transports={},
// Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
allTypes="*/".concat("*");
// #8138, IE may throw an exception when accessing
// a field from window.location if document.domain has been set
try{ajaxLocation=location.href}catch(e){
// Use the href attribute of an A element
// since IE will modify it given document.location
ajaxLocation=document.createElement("a");ajaxLocation.href="";ajaxLocation=ajaxLocation.href}
// Segment location into parts
ajaxLocParts=rurl.exec(ajaxLocation.toLowerCase())||[];
// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
function addToPrefiltersOrTransports(structure){
// dataTypeExpression is optional and defaults to "*"
return function(dataTypeExpression,func){if(typeof dataTypeExpression!=="string"){func=dataTypeExpression;dataTypeExpression="*"}var dataType,i=0,dataTypes=dataTypeExpression.toLowerCase().match(rnotwhite)||[];if(jQuery.isFunction(func)){
// For each dataType in the dataTypeExpression
while(dataType=dataTypes[i++]){
// Prepend if requested
if(dataType.charAt(0)==="+"){dataType=dataType.slice(1)||"*";(structure[dataType]=structure[dataType]||[]).unshift(func);
// Otherwise append
}else{(structure[dataType]=structure[dataType]||[]).push(func)}}}}}
// Base inspection function for prefilters and transports
function inspectPrefiltersOrTransports(structure,options,originalOptions,jqXHR){var inspected={},seekingTransport=structure===transports;function inspect(dataType){var selected;inspected[dataType]=true;jQuery.each(structure[dataType]||[],function(_,prefilterOrFactory){var dataTypeOrTransport=prefilterOrFactory(options,originalOptions,jqXHR);if(typeof dataTypeOrTransport==="string"&&!seekingTransport&&!inspected[dataTypeOrTransport]){options.dataTypes.unshift(dataTypeOrTransport);inspect(dataTypeOrTransport);return false}else if(seekingTransport){return!(selected=dataTypeOrTransport)}});return selected}return inspect(options.dataTypes[0])||!inspected["*"]&&inspect("*")}
// A special extend for ajax options
// that takes "flat" options (not to be deep extended)
// Fixes #9887
function ajaxExtend(target,src){var deep,key,flatOptions=jQuery.ajaxSettings.flatOptions||{};for(key in src){if(src[key]!==undefined){(flatOptions[key]?target:deep||(deep={}))[key]=src[key]}}if(deep){jQuery.extend(true,target,deep)}return target}
/* Handles responses to an ajax request:
 * - finds the right dataType (mediates between content-type and expected dataType)
 * - returns the corresponding response
 */function ajaxHandleResponses(s,jqXHR,responses){var firstDataType,ct,finalDataType,type,contents=s.contents,dataTypes=s.dataTypes;
// Remove auto dataType and get content-type in the process
while(dataTypes[0]==="*"){dataTypes.shift();if(ct===undefined){ct=s.mimeType||jqXHR.getResponseHeader("Content-Type")}}
// Check if we're dealing with a known content-type
if(ct){for(type in contents){if(contents[type]&&contents[type].test(ct)){dataTypes.unshift(type);break}}}
// Check to see if we have a response for the expected dataType
if(dataTypes[0]in responses){finalDataType=dataTypes[0]}else{
// Try convertible dataTypes
for(type in responses){if(!dataTypes[0]||s.converters[type+" "+dataTypes[0]]){finalDataType=type;break}if(!firstDataType){firstDataType=type}}
// Or just use first one
finalDataType=finalDataType||firstDataType}
// If we found a dataType
// We add the dataType to the list if needed
// and return the corresponding response
if(finalDataType){if(finalDataType!==dataTypes[0]){dataTypes.unshift(finalDataType)}return responses[finalDataType]}}
/* Chain conversions given the request and the original response
 * Also sets the responseXXX fields on the jqXHR instance
 */function ajaxConvert(s,response,jqXHR,isSuccess){var conv2,current,conv,tmp,prev,converters={},
// Work with a copy of dataTypes in case we need to modify it for conversion
dataTypes=s.dataTypes.slice();
// Create converters map with lowercased keys
if(dataTypes[1]){for(conv in s.converters){converters[conv.toLowerCase()]=s.converters[conv]}}current=dataTypes.shift();
// Convert to each sequential dataType
while(current){if(s.responseFields[current]){jqXHR[s.responseFields[current]]=response}
// Apply the dataFilter if provided
if(!prev&&isSuccess&&s.dataFilter){response=s.dataFilter(response,s.dataType)}prev=current;current=dataTypes.shift();if(current){
// There's only work to do if current dataType is non-auto
if(current==="*"){current=prev;
// Convert response if prev dataType is non-auto and differs from current
}else if(prev!=="*"&&prev!==current){
// Seek a direct converter
conv=converters[prev+" "+current]||converters["* "+current];
// If none found, seek a pair
if(!conv){for(conv2 in converters){
// If conv2 outputs current
tmp=conv2.split(" ");if(tmp[1]===current){
// If prev can be converted to accepted input
conv=converters[prev+" "+tmp[0]]||converters["* "+tmp[0]];if(conv){
// Condense equivalence converters
if(conv===true){conv=converters[conv2];
// Otherwise, insert the intermediate dataType
}else if(converters[conv2]!==true){current=tmp[0];dataTypes.unshift(tmp[1])}break}}}}
// Apply converter (if not an equivalence)
if(conv!==true){
// Unless errors are allowed to bubble, catch and return them
if(conv&&s["throws"]){response=conv(response)}else{try{response=conv(response)}catch(e){return{state:"parsererror",error:conv?e:"No conversion from "+prev+" to "+current}}}}}}}return{state:"success",data:response}}jQuery.extend({
// Counter for holding the number of active queries
active:0,
// Last-Modified header cache for next request
lastModified:{},etag:{},ajaxSettings:{url:ajaxLocation,type:"GET",isLocal:rlocalProtocol.test(ajaxLocParts[1]),global:true,processData:true,async:true,contentType:"application/x-www-form-urlencoded; charset=UTF-8",
/*
		timeout: 0,
		data: null,
		dataType: null,
		username: null,
		password: null,
		cache: null,
		throws: false,
		traditional: false,
		headers: {},
		*/
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"},
// Data converters
// Keys separate source (or catchall "*") and destination types with a single space
converters:{
// Convert anything to text
"* text":String,
// Text to html (true = no transformation)
"text html":true,
// Evaluate text as a json expression
"text json":jQuery.parseJSON,
// Parse text as xml
"text xml":jQuery.parseXML},
// For options that shouldn't be deep extended:
// you can add your own custom options here if
// and when you create one that shouldn't be
// deep extended (see ajaxExtend)
flatOptions:{url:true,context:true}},
// Creates a full fledged settings object into target
// with both ajaxSettings and settings fields.
// If target is omitted, writes into ajaxSettings.
ajaxSetup:function(target,settings){return settings?
// Building a settings object
ajaxExtend(ajaxExtend(target,jQuery.ajaxSettings),settings):
// Extending ajaxSettings
ajaxExtend(jQuery.ajaxSettings,target)},ajaxPrefilter:addToPrefiltersOrTransports(prefilters),ajaxTransport:addToPrefiltersOrTransports(transports),
// Main method
ajax:function(url,options){
// If url is an object, simulate pre-1.5 signature
if(typeof url==="object"){options=url;url=undefined}
// Force options to be an object
options=options||{};var// Cross-domain detection vars
parts,
// Loop variable
i,
// URL without anti-cache param
cacheURL,
// Response headers as string
responseHeadersString,
// timeout handle
timeoutTimer,
// To know if global events are to be dispatched
fireGlobals,transport,
// Response headers
responseHeaders,
// Create the final options object
s=jQuery.ajaxSetup({},options),
// Callbacks context
callbackContext=s.context||s,
// Context for global events is callbackContext if it is a DOM node or jQuery collection
globalEventContext=s.context&&(callbackContext.nodeType||callbackContext.jquery)?jQuery(callbackContext):jQuery.event,
// Deferreds
deferred=jQuery.Deferred(),completeDeferred=jQuery.Callbacks("once memory"),
// Status-dependent callbacks
statusCode=s.statusCode||{},
// Headers (they are sent all at once)
requestHeaders={},requestHeadersNames={},
// The jqXHR state
state=0,
// Default abort message
strAbort="canceled",
// Fake xhr
jqXHR={readyState:0,
// Builds headers hashtable if needed
getResponseHeader:function(key){var match;if(state===2){if(!responseHeaders){responseHeaders={};while(match=rheaders.exec(responseHeadersString)){responseHeaders[match[1].toLowerCase()]=match[2]}}match=responseHeaders[key.toLowerCase()]}return match==null?null:match},
// Raw string
getAllResponseHeaders:function(){return state===2?responseHeadersString:null},
// Caches the header
setRequestHeader:function(name,value){var lname=name.toLowerCase();if(!state){name=requestHeadersNames[lname]=requestHeadersNames[lname]||name;requestHeaders[name]=value}return this},
// Overrides response content-type header
overrideMimeType:function(type){if(!state){s.mimeType=type}return this},
// Status-dependent callbacks
statusCode:function(map){var code;if(map){if(state<2){for(code in map){
// Lazy-add the new callback in a way that preserves old ones
statusCode[code]=[statusCode[code],map[code]]}}else{
// Execute the appropriate callbacks
jqXHR.always(map[jqXHR.status])}}return this},
// Cancel the request
abort:function(statusText){var finalText=statusText||strAbort;if(transport){transport.abort(finalText)}done(0,finalText);return this}};
// Attach deferreds
deferred.promise(jqXHR).complete=completeDeferred.add;jqXHR.success=jqXHR.done;jqXHR.error=jqXHR.fail;
// Remove hash character (#7531: and string promotion)
// Add protocol if not provided (#5866: IE7 issue with protocol-less urls)
// Handle falsy url in the settings object (#10093: consistency with old signature)
// We also use the url parameter if available
s.url=((url||s.url||ajaxLocation)+"").replace(rhash,"").replace(rprotocol,ajaxLocParts[1]+"//");
// Alias method option to type as per ticket #12004
s.type=options.method||options.type||s.method||s.type;
// Extract dataTypes list
s.dataTypes=jQuery.trim(s.dataType||"*").toLowerCase().match(rnotwhite)||[""];
// A cross-domain request is in order when we have a protocol:host:port mismatch
if(s.crossDomain==null){parts=rurl.exec(s.url.toLowerCase());s.crossDomain=!!(parts&&(parts[1]!==ajaxLocParts[1]||parts[2]!==ajaxLocParts[2]||(parts[3]||(parts[1]==="http:"?"80":"443"))!==(ajaxLocParts[3]||(ajaxLocParts[1]==="http:"?"80":"443"))))}
// Convert data if not already a string
if(s.data&&s.processData&&typeof s.data!=="string"){s.data=jQuery.param(s.data,s.traditional)}
// Apply prefilters
inspectPrefiltersOrTransports(prefilters,s,options,jqXHR);
// If request was aborted inside a prefilter, stop there
if(state===2){return jqXHR}
// We can fire global events as of now if asked to
fireGlobals=s.global;
// Watch for a new set of requests
if(fireGlobals&&jQuery.active++===0){jQuery.event.trigger("ajaxStart")}
// Uppercase the type
s.type=s.type.toUpperCase();
// Determine if request has content
s.hasContent=!rnoContent.test(s.type);
// Save the URL in case we're toying with the If-Modified-Since
// and/or If-None-Match header later on
cacheURL=s.url;
// More options handling for requests with no content
if(!s.hasContent){
// If data is available, append data to url
if(s.data){cacheURL=s.url+=(rquery.test(cacheURL)?"&":"?")+s.data;
// #9682: remove data so that it's not used in an eventual retry
delete s.data}
// Add anti-cache in url if needed
if(s.cache===false){s.url=rts.test(cacheURL)?
// If there is already a '_' parameter, set its value
cacheURL.replace(rts,"$1_="+nonce++):
// Otherwise add one to the end
cacheURL+(rquery.test(cacheURL)?"&":"?")+"_="+nonce++}}
// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
if(s.ifModified){if(jQuery.lastModified[cacheURL]){jqXHR.setRequestHeader("If-Modified-Since",jQuery.lastModified[cacheURL])}if(jQuery.etag[cacheURL]){jqXHR.setRequestHeader("If-None-Match",jQuery.etag[cacheURL])}}
// Set the correct header, if data is being sent
if(s.data&&s.hasContent&&s.contentType!==false||options.contentType){jqXHR.setRequestHeader("Content-Type",s.contentType)}
// Set the Accepts header for the server, depending on the dataType
jqXHR.setRequestHeader("Accept",s.dataTypes[0]&&s.accepts[s.dataTypes[0]]?s.accepts[s.dataTypes[0]]+(s.dataTypes[0]!=="*"?", "+allTypes+"; q=0.01":""):s.accepts["*"]);
// Check for headers option
for(i in s.headers){jqXHR.setRequestHeader(i,s.headers[i])}
// Allow custom headers/mimetypes and early abort
if(s.beforeSend&&(s.beforeSend.call(callbackContext,jqXHR,s)===false||state===2)){
// Abort if not done already and return
return jqXHR.abort()}
// aborting is no longer a cancellation
strAbort="abort";
// Install callbacks on deferreds
for(i in{success:1,error:1,complete:1}){jqXHR[i](s[i])}
// Get transport
transport=inspectPrefiltersOrTransports(transports,s,options,jqXHR);
// If no transport, we auto-abort
if(!transport){done(-1,"No Transport")}else{jqXHR.readyState=1;
// Send global event
if(fireGlobals){globalEventContext.trigger("ajaxSend",[jqXHR,s])}
// Timeout
if(s.async&&s.timeout>0){timeoutTimer=setTimeout(function(){jqXHR.abort("timeout")},s.timeout)}try{state=1;transport.send(requestHeaders,done)}catch(e){
// Propagate exception as error if not done
if(state<2){done(-1,e);
// Simply rethrow otherwise
}else{throw e}}}
// Callback for when everything is done
function done(status,nativeStatusText,responses,headers){var isSuccess,success,error,response,modified,statusText=nativeStatusText;
// Called once
if(state===2){return}
// State is "done" now
state=2;
// Clear timeout if it exists
if(timeoutTimer){clearTimeout(timeoutTimer)}
// Dereference transport for early garbage collection
// (no matter how long the jqXHR object will be used)
transport=undefined;
// Cache response headers
responseHeadersString=headers||"";
// Set readyState
jqXHR.readyState=status>0?4:0;
// Determine if successful
isSuccess=status>=200&&status<300||status===304;
// Get response data
if(responses){response=ajaxHandleResponses(s,jqXHR,responses)}
// Convert no matter what (that way responseXXX fields are always set)
response=ajaxConvert(s,response,jqXHR,isSuccess);
// If successful, handle type chaining
if(isSuccess){
// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
if(s.ifModified){modified=jqXHR.getResponseHeader("Last-Modified");if(modified){jQuery.lastModified[cacheURL]=modified}modified=jqXHR.getResponseHeader("etag");if(modified){jQuery.etag[cacheURL]=modified}}
// if no content
if(status===204||s.type==="HEAD"){statusText="nocontent";
// if not modified
}else if(status===304){statusText="notmodified";
// If we have data, let's convert it
}else{statusText=response.state;success=response.data;error=response.error;isSuccess=!error}}else{
// We extract error from statusText
// then normalize statusText and status for non-aborts
error=statusText;if(status||!statusText){statusText="error";if(status<0){status=0}}}
// Set data for the fake xhr object
jqXHR.status=status;jqXHR.statusText=(nativeStatusText||statusText)+"";
// Success/Error
if(isSuccess){deferred.resolveWith(callbackContext,[success,statusText,jqXHR])}else{deferred.rejectWith(callbackContext,[jqXHR,statusText,error])}
// Status-dependent callbacks
jqXHR.statusCode(statusCode);statusCode=undefined;if(fireGlobals){globalEventContext.trigger(isSuccess?"ajaxSuccess":"ajaxError",[jqXHR,s,isSuccess?success:error])}
// Complete
completeDeferred.fireWith(callbackContext,[jqXHR,statusText]);if(fireGlobals){globalEventContext.trigger("ajaxComplete",[jqXHR,s]);
// Handle the global AJAX counter
if(!--jQuery.active){jQuery.event.trigger("ajaxStop")}}}return jqXHR},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json")},getScript:function(url,callback){return jQuery.get(url,undefined,callback,"script")}});jQuery.each(["get","post"],function(i,method){jQuery[method]=function(url,data,callback,type){
// shift arguments if data argument was omitted
if(jQuery.isFunction(data)){type=type||callback;callback=data;data=undefined}return jQuery.ajax({url:url,type:method,dataType:type,data:data,success:callback})}});
// Attach a bunch of functions for handling common AJAX events
jQuery.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(i,type){jQuery.fn[type]=function(fn){return this.on(type,fn)}});jQuery._evalUrl=function(url){return jQuery.ajax({url:url,type:"GET",dataType:"script",async:false,global:false,throws:true})};jQuery.fn.extend({wrapAll:function(html){if(jQuery.isFunction(html)){return this.each(function(i){jQuery(this).wrapAll(html.call(this,i))})}if(this[0]){
// The elements to wrap the target around
var wrap=jQuery(html,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){wrap.insertBefore(this[0])}wrap.map(function(){var elem=this;while(elem.firstChild&&elem.firstChild.nodeType===1){elem=elem.firstChild}return elem}).append(this)}return this},wrapInner:function(html){if(jQuery.isFunction(html)){return this.each(function(i){jQuery(this).wrapInner(html.call(this,i))})}return this.each(function(){var self=jQuery(this),contents=self.contents();if(contents.length){contents.wrapAll(html)}else{self.append(html)}})},wrap:function(html){var isFunction=jQuery.isFunction(html);return this.each(function(i){jQuery(this).wrapAll(isFunction?html.call(this,i):html)})},unwrap:function(){return this.parent().each(function(){if(!jQuery.nodeName(this,"body")){jQuery(this).replaceWith(this.childNodes)}}).end()}});jQuery.expr.filters.hidden=function(elem){
// Support: Opera <= 12.12
// Opera reports offsetWidths and offsetHeights less than zero on some elements
return elem.offsetWidth<=0&&elem.offsetHeight<=0||!support.reliableHiddenOffsets()&&(elem.style&&elem.style.display||jQuery.css(elem,"display"))==="none"};jQuery.expr.filters.visible=function(elem){return!jQuery.expr.filters.hidden(elem)};var r20=/%20/g,rbracket=/\[\]$/,rCRLF=/\r?\n/g,rsubmitterTypes=/^(?:submit|button|image|reset|file)$/i,rsubmittable=/^(?:input|select|textarea|keygen)/i;function buildParams(prefix,obj,traditional,add){var name;if(jQuery.isArray(obj)){
// Serialize array item.
jQuery.each(obj,function(i,v){if(traditional||rbracket.test(prefix)){
// Treat each array item as a scalar.
add(prefix,v)}else{
// Item is non-scalar (array or object), encode its numeric index.
buildParams(prefix+"["+(typeof v==="object"?i:"")+"]",v,traditional,add)}})}else if(!traditional&&jQuery.type(obj)==="object"){
// Serialize object item.
for(name in obj){buildParams(prefix+"["+name+"]",obj[name],traditional,add)}}else{
// Serialize scalar item.
add(prefix,obj)}}
// Serialize an array of form elements or a set of
// key/values into a query string
jQuery.param=function(a,traditional){var prefix,s=[],add=function(key,value){
// If value is a function, invoke it and return its value
value=jQuery.isFunction(value)?value():value==null?"":value;s[s.length]=encodeURIComponent(key)+"="+encodeURIComponent(value)};
// Set traditional to true for jQuery <= 1.3.2 behavior.
if(traditional===undefined){traditional=jQuery.ajaxSettings&&jQuery.ajaxSettings.traditional}
// If an array was passed in, assume that it is an array of form elements.
if(jQuery.isArray(a)||a.jquery&&!jQuery.isPlainObject(a)){
// Serialize the form elements
jQuery.each(a,function(){add(this.name,this.value)})}else{
// If traditional, encode the "old" way (the way 1.3.2 or older
// did it), otherwise encode params recursively.
for(prefix in a){buildParams(prefix,a[prefix],traditional,add)}}
// Return the resulting serialization
return s.join("&").replace(r20,"+")};jQuery.fn.extend({serialize:function(){return jQuery.param(this.serializeArray())},serializeArray:function(){return this.map(function(){
// Can add propHook for "elements" to filter or add form elements
var elements=jQuery.prop(this,"elements");return elements?jQuery.makeArray(elements):this}).filter(function(){var type=this.type;
// Use .is(":disabled") so that fieldset[disabled] works
return this.name&&!jQuery(this).is(":disabled")&&rsubmittable.test(this.nodeName)&&!rsubmitterTypes.test(type)&&(this.checked||!rcheckableType.test(type))}).map(function(i,elem){var val=jQuery(this).val();return val==null?null:jQuery.isArray(val)?jQuery.map(val,function(val){return{name:elem.name,value:val.replace(rCRLF,"\r\n")}}):{name:elem.name,value:val.replace(rCRLF,"\r\n")}}).get()}});
// Create the request object
// (This is still attached to ajaxSettings for backward compatibility)
jQuery.ajaxSettings.xhr=window.ActiveXObject!==undefined?
// Support: IE6+
function(){
// XHR cannot access local files, always use ActiveX for that case
return!this.isLocal&&
// Support: IE7-8
// oldIE XHR does not support non-RFC2616 methods (#13240)
// See http://msdn.microsoft.com/en-us/library/ie/ms536648(v=vs.85).aspx
// and http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9
// Although this check for six methods instead of eight
// since IE also does not support "trace" and "connect"
/^(get|post|head|put|delete|options)$/i.test(this.type)&&createStandardXHR()||createActiveXHR()}:
// For all other browsers, use the standard XMLHttpRequest object
createStandardXHR;var xhrId=0,xhrCallbacks={},xhrSupported=jQuery.ajaxSettings.xhr();
// Support: IE<10
// Open requests must be manually aborted on unload (#5280)
if(window.ActiveXObject){jQuery(window).on("unload",function(){for(var key in xhrCallbacks){xhrCallbacks[key](undefined,true)}})}
// Determine support properties
support.cors=!!xhrSupported&&"withCredentials"in xhrSupported;xhrSupported=support.ajax=!!xhrSupported;
// Create transport if the browser can provide an xhr
if(xhrSupported){jQuery.ajaxTransport(function(options){
// Cross domain only allowed if supported through XMLHttpRequest
if(!options.crossDomain||support.cors){var callback;return{send:function(headers,complete){var i,xhr=options.xhr(),id=++xhrId;
// Open the socket
xhr.open(options.type,options.url,options.async,options.username,options.password);
// Apply custom fields if provided
if(options.xhrFields){for(i in options.xhrFields){xhr[i]=options.xhrFields[i]}}
// Override mime type if needed
if(options.mimeType&&xhr.overrideMimeType){xhr.overrideMimeType(options.mimeType)}
// X-Requested-With header
// For cross-domain requests, seeing as conditions for a preflight are
// akin to a jigsaw puzzle, we simply never set it to be sure.
// (it can always be set on a per-request basis or even using ajaxSetup)
// For same-domain requests, won't change header if already provided.
if(!options.crossDomain&&!headers["X-Requested-With"]){headers["X-Requested-With"]="XMLHttpRequest"}
// Set headers
for(i in headers){
// Support: IE<9
// IE's ActiveXObject throws a 'Type Mismatch' exception when setting
// request header to a null-value.
//
// To keep consistent with other XHR implementations, cast the value
// to string and ignore `undefined`.
if(headers[i]!==undefined){xhr.setRequestHeader(i,headers[i]+"")}}
// Do send the request
// This may raise an exception which is actually
// handled in jQuery.ajax (so no try/catch here)
xhr.send(options.hasContent&&options.data||null);
// Listener
callback=function(_,isAbort){var status,statusText,responses;
// Was never called and is aborted or complete
if(callback&&(isAbort||xhr.readyState===4)){
// Clean up
delete xhrCallbacks[id];callback=undefined;xhr.onreadystatechange=jQuery.noop;
// Abort manually if needed
if(isAbort){if(xhr.readyState!==4){xhr.abort()}}else{responses={};status=xhr.status;
// Support: IE<10
// Accessing binary-data responseText throws an exception
// (#11426)
if(typeof xhr.responseText==="string"){responses.text=xhr.responseText}
// Firefox throws an exception when accessing
// statusText for faulty cross-domain requests
try{statusText=xhr.statusText}catch(e){
// We normalize with Webkit giving an empty statusText
statusText=""}
// Filter status for non standard behaviors
// If the request is local and we have data: assume a success
// (success with no data won't get notified, that's the best we
// can do given current implementations)
if(!status&&options.isLocal&&!options.crossDomain){status=responses.text?200:404;
// IE - #1450: sometimes returns 1223 when it should be 204
}else if(status===1223){status=204}}}
// Call complete if needed
if(responses){complete(status,statusText,responses,xhr.getAllResponseHeaders())}};if(!options.async){
// if we're in sync mode we fire the callback
callback()}else if(xhr.readyState===4){
// (IE6 & IE7) if it's in cache and has been
// retrieved directly we need to fire the callback
setTimeout(callback)}else{
// Add to the list of active xhr callbacks
xhr.onreadystatechange=xhrCallbacks[id]=callback}},abort:function(){if(callback){callback(undefined,true)}}}}})}
// Functions to create xhrs
function createStandardXHR(){try{return new window.XMLHttpRequest}catch(e){}}function createActiveXHR(){try{return new window.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}
// Install script dataType
jQuery.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(text){jQuery.globalEval(text);return text}}});
// Handle cache's special case and global
jQuery.ajaxPrefilter("script",function(s){if(s.cache===undefined){s.cache=false}if(s.crossDomain){s.type="GET";s.global=false}});
// Bind script tag hack transport
jQuery.ajaxTransport("script",function(s){
// This transport only deals with cross domain requests
if(s.crossDomain){var script,head=document.head||jQuery("head")[0]||document.documentElement;return{send:function(_,callback){script=document.createElement("script");script.async=true;if(s.scriptCharset){script.charset=s.scriptCharset}script.src=s.url;
// Attach handlers for all browsers
script.onload=script.onreadystatechange=function(_,isAbort){if(isAbort||!script.readyState||/loaded|complete/.test(script.readyState)){
// Handle memory leak in IE
script.onload=script.onreadystatechange=null;
// Remove the script
if(script.parentNode){script.parentNode.removeChild(script)}
// Dereference the script
script=null;
// Callback if not abort
if(!isAbort){callback(200,"success")}}};
// Circumvent IE6 bugs with base elements (#2709 and #4378) by prepending
// Use native DOM manipulation to avoid our domManip AJAX trickery
head.insertBefore(script,head.firstChild)},abort:function(){if(script){script.onload(undefined,true)}}}}});var oldCallbacks=[],rjsonp=/(=)\?(?=&|$)|\?\?/;
// Default jsonp settings
jQuery.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var callback=oldCallbacks.pop()||jQuery.expando+"_"+nonce++;this[callback]=true;return callback}});
// Detect, normalize options and install callbacks for jsonp requests
jQuery.ajaxPrefilter("json jsonp",function(s,originalSettings,jqXHR){var callbackName,overwritten,responseContainer,jsonProp=s.jsonp!==false&&(rjsonp.test(s.url)?"url":typeof s.data==="string"&&!(s.contentType||"").indexOf("application/x-www-form-urlencoded")&&rjsonp.test(s.data)&&"data");
// Handle iff the expected data type is "jsonp" or we have a parameter to set
if(jsonProp||s.dataTypes[0]==="jsonp"){
// Get callback name, remembering preexisting value associated with it
callbackName=s.jsonpCallback=jQuery.isFunction(s.jsonpCallback)?s.jsonpCallback():s.jsonpCallback;
// Insert callback into url or form data
if(jsonProp){s[jsonProp]=s[jsonProp].replace(rjsonp,"$1"+callbackName)}else if(s.jsonp!==false){s.url+=(rquery.test(s.url)?"&":"?")+s.jsonp+"="+callbackName}
// Use data converter to retrieve json after script execution
s.converters["script json"]=function(){if(!responseContainer){jQuery.error(callbackName+" was not called")}return responseContainer[0]};
// force json dataType
s.dataTypes[0]="json";
// Install callback
overwritten=window[callbackName];window[callbackName]=function(){responseContainer=arguments};
// Clean-up function (fires after converters)
jqXHR.always(function(){
// Restore preexisting value
window[callbackName]=overwritten;
// Save back as free
if(s[callbackName]){
// make sure that re-using the options doesn't screw things around
s.jsonpCallback=originalSettings.jsonpCallback;
// save the callback name for future use
oldCallbacks.push(callbackName)}
// Call if it was a function and we have a response
if(responseContainer&&jQuery.isFunction(overwritten)){overwritten(responseContainer[0])}responseContainer=overwritten=undefined});
// Delegate to script
return"script"}});
// data: string of html
// context (optional): If specified, the fragment will be created in this context, defaults to document
// keepScripts (optional): If true, will include scripts passed in the html string
jQuery.parseHTML=function(data,context,keepScripts){if(!data||typeof data!=="string"){return null}if(typeof context==="boolean"){keepScripts=context;context=false}context=context||document;var parsed=rsingleTag.exec(data),scripts=!keepScripts&&[];
// Single tag
if(parsed){return[context.createElement(parsed[1])]}parsed=jQuery.buildFragment([data],context,scripts);if(scripts&&scripts.length){jQuery(scripts).remove()}return jQuery.merge([],parsed.childNodes)};
// Keep a copy of the old load method
var _load=jQuery.fn.load;
/**
 * Load a url into a page
 */jQuery.fn.load=function(url,params,callback){if(typeof url!=="string"&&_load){return _load.apply(this,arguments)}var selector,response,type,self=this,off=url.indexOf(" ");if(off>=0){selector=url.slice(off,url.length);url=url.slice(0,off)}
// If it's a function
if(jQuery.isFunction(params)){
// We assume that it's the callback
callback=params;params=undefined;
// Otherwise, build a param string
}else if(params&&typeof params==="object"){type="POST"}
// If we have elements to modify, make the request
if(self.length>0){jQuery.ajax({url:url,
// if "type" variable is undefined, then "GET" method will be used
type:type,dataType:"html",data:params}).done(function(responseText){
// Save response for use in complete callback
response=arguments;self.html(selector?
// If a selector was specified, locate the right elements in a dummy div
// Exclude scripts to avoid IE 'Permission Denied' errors
jQuery("<div>").append(jQuery.parseHTML(responseText)).find(selector):
// Otherwise use the full result
responseText)}).complete(callback&&function(jqXHR,status){self.each(callback,response||[jqXHR.responseText,status,jqXHR])})}return this};jQuery.expr.filters.animated=function(elem){return jQuery.grep(jQuery.timers,function(fn){return elem===fn.elem}).length};var docElem=window.document.documentElement;
/**
 * Gets a window from an element
 */function getWindow(elem){return jQuery.isWindow(elem)?elem:elem.nodeType===9?elem.defaultView||elem.parentWindow:false}jQuery.offset={setOffset:function(elem,options,i){var curPosition,curLeft,curCSSTop,curTop,curOffset,curCSSLeft,calculatePosition,position=jQuery.css(elem,"position"),curElem=jQuery(elem),props={};
// set position first, in-case top/left are set even on static elem
if(position==="static"){elem.style.position="relative"}curOffset=curElem.offset();curCSSTop=jQuery.css(elem,"top");curCSSLeft=jQuery.css(elem,"left");calculatePosition=(position==="absolute"||position==="fixed")&&jQuery.inArray("auto",[curCSSTop,curCSSLeft])>-1;
// need to be able to calculate position if either top or left is auto and position is either absolute or fixed
if(calculatePosition){curPosition=curElem.position();curTop=curPosition.top;curLeft=curPosition.left}else{curTop=parseFloat(curCSSTop)||0;curLeft=parseFloat(curCSSLeft)||0}if(jQuery.isFunction(options)){options=options.call(elem,i,curOffset)}if(options.top!=null){props.top=options.top-curOffset.top+curTop}if(options.left!=null){props.left=options.left-curOffset.left+curLeft}if("using"in options){options.using.call(elem,props)}else{curElem.css(props)}}};jQuery.fn.extend({offset:function(options){if(arguments.length){return options===undefined?this:this.each(function(i){jQuery.offset.setOffset(this,options,i)})}var docElem,win,box={top:0,left:0},elem=this[0],doc=elem&&elem.ownerDocument;if(!doc){return}docElem=doc.documentElement;
// Make sure it's not a disconnected DOM node
if(!jQuery.contains(docElem,elem)){return box}
// If we don't have gBCR, just use 0,0 rather than error
// BlackBerry 5, iOS 3 (original iPhone)
if(typeof elem.getBoundingClientRect!==strundefined){box=elem.getBoundingClientRect()}win=getWindow(doc);return{top:box.top+(win.pageYOffset||docElem.scrollTop)-(docElem.clientTop||0),left:box.left+(win.pageXOffset||docElem.scrollLeft)-(docElem.clientLeft||0)}},position:function(){if(!this[0]){return}var offsetParent,offset,parentOffset={top:0,left:0},elem=this[0];
// fixed elements are offset from window (parentOffset = {top:0, left: 0}, because it is its only offset parent
if(jQuery.css(elem,"position")==="fixed"){
// we assume that getBoundingClientRect is available when computed position is fixed
offset=elem.getBoundingClientRect()}else{
// Get *real* offsetParent
offsetParent=this.offsetParent();
// Get correct offsets
offset=this.offset();if(!jQuery.nodeName(offsetParent[0],"html")){parentOffset=offsetParent.offset()}
// Add offsetParent borders
parentOffset.top+=jQuery.css(offsetParent[0],"borderTopWidth",true);parentOffset.left+=jQuery.css(offsetParent[0],"borderLeftWidth",true)}
// Subtract parent offsets and element margins
// note: when an element has margin: auto the offsetLeft and marginLeft
// are the same in Safari causing offset.left to incorrectly be 0
return{top:offset.top-parentOffset.top-jQuery.css(elem,"marginTop",true),left:offset.left-parentOffset.left-jQuery.css(elem,"marginLeft",true)}},offsetParent:function(){return this.map(function(){var offsetParent=this.offsetParent||docElem;while(offsetParent&&(!jQuery.nodeName(offsetParent,"html")&&jQuery.css(offsetParent,"position")==="static")){offsetParent=offsetParent.offsetParent}return offsetParent||docElem})}});
// Create scrollLeft and scrollTop methods
jQuery.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(method,prop){var top=/Y/.test(prop);jQuery.fn[method]=function(val){return access(this,function(elem,method,val){var win=getWindow(elem);if(val===undefined){return win?prop in win?win[prop]:win.document.documentElement[method]:elem[method]}if(win){win.scrollTo(!top?val:jQuery(win).scrollLeft(),top?val:jQuery(win).scrollTop())}else{elem[method]=val}},method,val,arguments.length,null)}});
// Add the top/left cssHooks using jQuery.fn.position
// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084
// getComputedStyle returns percent when specified for top/left/bottom/right
// rather than make the css module depend on the offset module, we just check for it here
jQuery.each(["top","left"],function(i,prop){jQuery.cssHooks[prop]=addGetHookIf(support.pixelPosition,function(elem,computed){if(computed){computed=curCSS(elem,prop);
// if curCSS returns percentage, fallback to offset
return rnumnonpx.test(computed)?jQuery(elem).position()[prop]+"px":computed}})});
// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods
jQuery.each({Height:"height",Width:"width"},function(name,type){jQuery.each({padding:"inner"+name,content:type,"":"outer"+name},function(defaultExtra,funcName){
// margin is only for outerHeight, outerWidth
jQuery.fn[funcName]=function(margin,value){var chainable=arguments.length&&(defaultExtra||typeof margin!=="boolean"),extra=defaultExtra||(margin===true||value===true?"margin":"border");return access(this,function(elem,type,value){var doc;if(jQuery.isWindow(elem)){
// As of 5/8/2012 this will yield incorrect results for Mobile Safari, but there
// isn't a whole lot we can do. See pull request at this URL for discussion:
// https://github.com/jquery/jquery/pull/764
return elem.document.documentElement["client"+name]}
// Get document width or height
if(elem.nodeType===9){doc=elem.documentElement;
// Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height], whichever is greatest
// unfortunately, this causes bug #3838 in IE6/8 only, but there is currently no good, small way to fix it.
return Math.max(elem.body["scroll"+name],doc["scroll"+name],elem.body["offset"+name],doc["offset"+name],doc["client"+name])}return value===undefined?
// Get width or height on the element, requesting but not forcing parseFloat
jQuery.css(elem,type,extra):
// Set width or height on the element
jQuery.style(elem,type,value,extra)},type,chainable?margin:undefined,chainable,null)}})});
// The number of elements contained in the matched element set
jQuery.fn.size=function(){return this.length};jQuery.fn.andSelf=jQuery.fn.addBack;
// Register as a named AMD module, since jQuery can be concatenated with other
// files that may use define, but not via a proper concatenation script that
// understands anonymous AMD modules. A named AMD is safest and most robust
// way to register. Lowercase jquery is used because AMD module names are
// derived from file names, and jQuery is normally delivered in a lowercase
// file name. Do this after creating the global so that if an AMD module wants
// to call noConflict to hide this version of jQuery, it will work.
if(typeof define==="function"&&define.amd){define("jquery",[],function(){return jQuery})}var
// Map over jQuery in case of overwrite
_jQuery=window.jQuery,
// Map over the $ in case of overwrite
_$=window.$;jQuery.noConflict=function(deep){if(window.$===jQuery){window.$=_$}if(deep&&window.jQuery===jQuery){window.jQuery=_jQuery}return jQuery};
// Expose jQuery and $ identifiers, even in
// AMD (#7102#comment:10, https://github.com/jquery/jquery/pull/557)
// and CommonJS for browser emulators (#13566)
if(typeof noGlobal===strundefined){window.jQuery=window.$=jQuery}return jQuery});
/*!
   JW Player version 8.17.1
   Copyright (c) 2020, JW Player, All Rights Reserved
   This source code and its use and distribution is subject to the terms
   and conditions of the applicable license agreement.
   https://www.jwplayer.com/tos/
   This product includes portions of other software. For the full text of licenses, see
   https://ssl.p.jwpcdn.com/player/v/8.17.1/notice.txt
*/window.jwplayer=function(t){function e(e){for(var n,i,o=e[0],u=e[1],a=0,s=[];a<o.length;a++)i=o[a],r[i]&&s.push(r[i][0]),r[i]=0;for(n in u)Object.prototype.hasOwnProperty.call(u,n)&&(t[n]=u[n]);for(c&&c(e);s.length;)s.shift()()}var n={},r={0:0};function i(e){if(n[e])return n[e].exports;var r=n[e]={i:e,l:!1,exports:{}};return t[e].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(t){var e=[],n=r[t];if(0!==n)if(n)e.push(n[2]);else{var o=new Promise(function(e,i){n=r[t]=[e,i]});e.push(n[2]=o);var u,a=document.createElement("script");a.charset="utf-8",a.timeout=55,i.nc&&a.setAttribute("nonce",i.nc),a.src=function(t){return i.p+""+({1:"jwplayer.amp",2:"jwplayer.controls",3:"jwplayer.core",4:"jwplayer.core.controls",5:"jwplayer.core.controls.html5",6:"jwplayer.core.controls.polyfills",7:"jwplayer.core.controls.polyfills.html5",8:"jwplayer.vr",9:"polyfills.intersection-observer",10:"polyfills.webvtt",11:"provider.airplay",12:"provider.cast",13:"provider.flash",14:"provider.hlsjs",15:"provider.hlsjs-progressive",16:"provider.html5",17:"provider.shaka",18:"related",19:"vttparser"}[t]||t)+".js"}(t),u=function(e){a.onerror=a.onload=null,clearTimeout(c);var n=r[t];if(0!==n){if(n){var i=e&&("load"===e.type?"missing":e.type),o=e&&e.target&&e.target.src,u=new Error("Loading chunk "+t+" failed.\n("+i+": "+o+")");u.type=i,u.request=o,n[1](u)}r[t]=void 0}};var c=setTimeout(function(){u({type:"timeout",target:a})},55e3);a.onerror=a.onload=u,document.head.appendChild(a)}return Promise.all(e)},i.m=t,i.c=n,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i.oe=function(t){throw console.error(t),t};var o=window.webpackJsonpjwplayer=window.webpackJsonpjwplayer||[],u=o.push.bind(o);o.push=e,o=o.slice();for(var a=0;a<o.length;a++)e(o[a]);var c=u;return i(i.s=51)}([function(t,e,n){"use strict";n.d(e,"i",function(){return k}),n.d(e,"A",function(){return x}),n.d(e,"F",function(){return T}),n.d(e,"l",function(){return _}),n.d(e,"k",function(){return I}),n.d(e,"a",function(){return L}),n.d(e,"b",function(){return R}),n.d(e,"G",function(){return B}),n.d(e,"n",function(){return H}),n.d(e,"H",function(){return W}),n.d(e,"e",function(){return X}),n.d(e,"J",function(){return Y}),n.d(e,"m",function(){return J}),n.d(e,"h",function(){return K}),n.d(e,"p",function(){return Z}),n.d(e,"c",function(){return G}),n.d(e,"C",function(){return nt}),n.d(e,"I",function(){return ot}),n.d(e,"q",function(){return ct}),n.d(e,"g",function(){return st}),n.d(e,"j",function(){return lt}),n.d(e,"D",function(){return ft}),n.d(e,"w",function(){return pt}),n.d(e,"t",function(){return mt}),n.d(e,"v",function(){return bt}),n.d(e,"x",function(){return yt}),n.d(e,"s",function(){return jt}),n.d(e,"u",function(){return wt}),n.d(e,"r",function(){return Ot}),n.d(e,"y",function(){return kt}),n.d(e,"o",function(){return xt}),n.d(e,"d",function(){return Pt}),n.d(e,"E",function(){return St}),n.d(e,"B",function(){return Tt}),n.d(e,"z",function(){return At});var r=n(18),i={},o=Array.prototype,u=Object.prototype,a=Function.prototype,c=o.slice,s=o.concat,l=u.toString,f=u.hasOwnProperty,d=o.map,p=o.reduce,h=o.forEach,v=o.filter,g=o.every,m=o.some,b=o.indexOf,y=Array.isArray,j=Object.keys,w=a.bind,O=window.isFinite,k=function(t,e,n){var r,o;if(null==t)return t;if(h&&t.forEach===h)t.forEach(e,n);else if(t.length===+t.length){for(r=0,o=t.length;r<o;r++)if(e.call(n,t[r],r,t)===i)return}else{var u=ut(t);for(r=0,o=u.length;r<o;r++)if(e.call(n,t[u[r]],u[r],t)===i)return}return t},C=k,x=function(t,e,n){var r=[];return null==t?r:d&&t.map===d?t.map(e,n):(k(t,function(t,i,o){r.push(e.call(n,t,i,o))}),r)},P=x,S="Reduce of empty array with no initial value",T=function(t,e,n,r){var i=arguments.length>2;if(null==t&&(t=[]),p&&t.reduce===p)return r&&(e=G(e,r)),i?t.reduce(e,n):t.reduce(e);if(k(t,function(t,o,u){i?n=e.call(r,n,t,o,u):(n=t,i=!0)}),!i)throw new TypeError(S);return n},E=T,A=T,_=function(t,e,n){var r;return R(t,function(t,i,o){if(e.call(n,t,i,o))return r=t,!0}),r},F=_,I=function(t,e,n){var r=[];return null==t?r:v&&t.filter===v?t.filter(e,n):(k(t,function(t,i,o){e.call(n,t,i,o)&&r.push(t)}),r)},M=I,L=function(t,e,n){e||(e=xt);var r=!0;return null==t?r:g&&t.every===g?t.every(e,n):(k(t,function(t,o,u){if(!(r=r&&e.call(n,t,o,u)))return i}),!!r)},N=L,R=function(t,e,n){e||(e=xt);var r=!1;return null==t?r:m&&t.some===m?t.some(e,n):(k(t,function(t,o,u){if(r||(r=e.call(n,t,o,u)))return i}),!!r)},D=R,B=function(t){return null==t?0:t.length===+t.length?t.length:ut(t).length},z=function(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}},q=function(t){return null==t?xt:mt(t)?t:St(t)},V=function(t){return function(e,n,r){var i={};return n=q(n),k(e,function(o,u){var a=n.call(r,o,u,e);t(i,a,o)}),i}},H=V(function(t,e,n){Ct(t,e)?t[e].push(n):t[e]=[n]}),Q=V(function(t,e,n){t[e]=n}),W=function(t,e,n,r){for(var i=(n=q(n)).call(r,e),o=0,u=t.length;o<u;){var a=o+u>>>1;n.call(r,t[a])<i?o=a+1:u=a}return o},X=function(t,e){return null!=t&&(t.length!==+t.length&&(t=at(t)),Z(t,e)>=0)},U=X,Y=function(t,e){return I(t,Tt(e))},J=function(t,e){return _(t,Tt(e))},K=function(t){var e=s.apply(o,c.call(arguments,1));return I(t,function(t){return!X(e,t)})},Z=function(t,e,n){if(null==t)return-1;var r=0,i=t.length;if(n){if("number"!=typeof n)return t[r=W(t,e)]===e?r:-1;r=n<0?Math.max(0,i+n):n}if(b&&t.indexOf===b)return t.indexOf(e,n);for(;r<i;r++)if(t[r]===e)return r;return-1},$=function(){},G=function(t,e){var n,r;if(w&&t.bind===w)return w.apply(t,c.call(arguments,1));if(!mt(t))throw new TypeError;return n=c.call(arguments,2),r=function(){if(!(this instanceof r))return t.apply(e,n.concat(c.call(arguments)));$.prototype=t.prototype;var i=new $;$.prototype=null;var o=t.apply(i,n.concat(c.call(arguments)));return Object(o)===o?o:i}},tt=function(t){var e=c.call(arguments,1);return function(){for(var n=0,r=e.slice(),i=0,o=r.length;i<o;i++)Ct(r[i],"partial")&&(r[i]=arguments[n++]);for(;n<arguments.length;)r.push(arguments[n++]);return t.apply(this,r)}},et=tt(z,2),nt=function(t,e){var n={};return e||(e=xt),function(){var r=e.apply(this,arguments);return Ct(n,r)?n[r]:n[r]=t.apply(this,arguments)}},rt=function(t,e){var n=c.call(arguments,2);return setTimeout(function(){return t.apply(null,n)},e)},it=tt(rt,{partial:tt},1),ot=function(t,e,n){var r,i,o,u=null,a=0;n||(n={});var c=function(){a=!1===n.leading?0:Et(),u=null,o=t.apply(r,i),r=i=null};return function(){a||!1!==n.leading||(a=Et);var s=e-(Et-a);return r=this,i=arguments,s<=0?(clearTimeout(u),u=null,a=Et,o=t.apply(r,i),r=i=null):u||!1===n.trailing||(u=setTimeout(c,s)),o}},ut=function(t){if(!pt(t))return[];if(j)return j(t);var e=[];for(var n in t)Ct(t,n)&&e.push(n);return e},at=function(t){for(var e=ut(t),n=ut.length,r=Array(n),i=0;i<n;i++)r[i]=t[e[i]];return r},ct=function(t){for(var e={},n=ut(t),r=0,i=n.length;r<i;r++)e[t[n[r]]]=n[r];return e},st=function(t){return k(c.call(arguments,1),function(e){if(e)for(var n in e)void 0===t[n]&&(t[n]=e[n])}),t},lt=Object.assign||function(t){return k(c.call(arguments,1),function(e){if(e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}),t},ft=function(t){var e={},n=s.apply(o,c.call(arguments,1));return k(n,function(n){n in t&&(e[n]=t[n])}),e},dt=y||function(t){return"[object Array]"==l.call(t)},pt=function(t){return t===Object(t)},ht=[];k(["Function","String","Number","Date","RegExp"],function(t){ht[t]=function(e){return l.call(e)=="[object "+t+"]"}}),ht.Function=function(t){return"function"==typeof t};var vt=ht.Date,gt=ht.RegExp,mt=ht.Function,bt=ht.Number,yt=ht.String,jt=function(t){return O(t)&&!wt(parseFloat(t))},wt=function(t){return bt(t)&&t!=+t},Ot=function(t){return!0===t||!1===t||"[object Boolean]"==l.call(t)},kt=function(t){return void 0===t},Ct=function(t,e){return f.call(t,e)},xt=function(t){return t},Pt=function(t){return function(){return t}},St=function(t){return function(e){return e[t]}},Tt=function(t){return function(e){if(e===t)return!0;for(var n in t)if(t[n]!==e[n])return!1;return!0}},Et=r.a,At=function(t){return bt(t)&&!wt(t)};e.f={after:function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},all:L,any:R,before:z,bind:G,clone:function(t){return pt(t)?dt(t)?t.slice():lt({},t):t},collect:P,compact:function(t){return I(t,xt)},constant:Pt,contains:X,debounce:function(t,e){var n;return void 0===e&&(e=100),function(){for(var r=this,i=arguments.length,o=new Array(i),u=0;u<i;u++)o[u]=arguments[u];clearTimeout(n),n=setTimeout(function(){t.apply(r,o)},e)}},defaults:st,defer:it,delay:rt,detect:F,difference:K,each:k,every:N,extend:lt,filter:I,find:_,findWhere:J,foldl:E,forEach:C,groupBy:H,has:Ct,identity:xt,include:U,indexBy:Q,indexOf:Z,inject:A,invert:ct,isArray:dt,isBoolean:Ot,isDate:vt,isFinite:jt,isFunction:mt,isNaN:wt,isNull:function(t){return null===t},isNumber:bt,isObject:pt,isRegExp:gt,isString:yt,isUndefined:kt,isValidNumber:At,keys:ut,last:function(t,e,n){if(null!=t)return null==e||n?t[t.length-1]:c.call(t,Math.max(t.length-e,0))},map:x,matches:Tt,max:function(t,e,n){if(!e&&dt(t)&&t[0]===+t[0]&&t.length<65535)return Math.max.apply(Math,t);var r=-1/0,i=-1/0;return k(t,function(t,o,u){var a=e?e.call(n,t,o,u):t;a>i&&(r=t,i=a)}),r},memoize:nt,now:Et,omit:function(t){var e={},n=s.apply(o,c.call(arguments,1));for(var r in t)X(n,r)||(e[r]=t[r]);return e},once:et,partial:tt,pick:ft,pluck:function(t,e){return x(t,St(e))},property:St,propertyOf:function(t){return null==t?function(){}:function(e){return t[e]}},reduce:T,reject:function(t,e,n){return I(t,function(t,r,i){return!e.call(n,t,r,i)},n)},result:function(t,e){if(null!=t){var n=t[e];return mt(n)?n.call(t):n}},select:M,size:B,some:D,sortedIndex:W,throttle:ot,where:Y,without:function(t){return K(t,c.call(arguments,1))}}},function(t,e,n){"use strict";n.d(e,"A",function(){return i}),n.d(e,"z",function(){return o}),n.d(e,"y",function(){return u}),n.d(e,"v",function(){return a}),n.d(e,"w",function(){return c}),n.d(e,"u",function(){return s}),n.d(e,"b",function(){return l}),n.d(e,"d",function(){return f}),n.d(e,"x",function(){return d}),n.d(e,"e",function(){return p}),n.d(e,"i",function(){return h}),n.d(e,"a",function(){return v}),n.d(e,"f",function(){return g}),n.d(e,"l",function(){return m}),n.d(e,"j",function(){return b}),n.d(e,"k",function(){return y}),n.d(e,"c",function(){return j}),n.d(e,"g",function(){return w}),n.d(e,"h",function(){return O}),n.d(e,"p",function(){return k}),n.d(e,"m",function(){return C}),n.d(e,"n",function(){return x}),n.d(e,"o",function(){return P}),n.d(e,"q",function(){return S}),n.d(e,"r",function(){return T}),n.d(e,"s",function(){return E}),n.d(e,"t",function(){return A}),n.d(e,"C",function(){return _}),n.d(e,"B",function(){return F}),n.d(e,"D",function(){return I});var r=n(0),i=1e5,o=100001,u=100002,a=101e3,c=102e3,s=102700,l=200001,f=202e3,d=104e3,p=203e3,h=203640,v=203700,g=204e3,m=210001,b=21e4,y=214e3,j=306e3,w=308e3,O=308640,k="cantPlayVideo",C="badConnection",x="cantLoadPlayer",P="cantPlayInBrowser",S="liveStreamDown",T="protectedContent",E="technicalError",A=function(){function t(t,e,n){this.code=Object(r.z)(e)?e:0,this.sourceError=n||null,t&&(this.key=t)}return t.logMessage=function(t){var e=t%1e3,n=Math.floor((t-e)/1e3),r=t.toString();return e>=400&&e<600&&(r=n+"400-"+n+"599"),"JW Player "+(t>299999&&t<4e5?"Warning":"Error")+" "+t+". For more information see https://developer.jwplayer.com/jw-player/docs/developer-guide/api/errors-reference#"+r},t}();function _(t,e,n){return n instanceof A&&n.code?n:new A(t,e,n)}function F(t,e){var n=_(E,e,t);return n.code=(t&&t instanceof A&&t.code||0)+e,n}function I(t){var e=t.name,n=t.message;switch(e){case"AbortError":return/pause/.test(n)?303213:/load/.test(n)?303212:303210;case"NotAllowedError":return 303220;case"NotSupportedError":return 303230;default:return 303200}}},function(t,e,n){"use strict";n.d(e,"i",function(){return o}),n.d(e,"e",function(){return u}),n.d(e,"j",function(){return a}),n.d(e,"a",function(){return c}),n.d(e,"b",function(){return s}),n.d(e,"g",function(){return l}),n.d(e,"d",function(){return f}),n.d(e,"f",function(){return d}),n.d(e,"h",function(){return p}),n.d(e,"c",function(){return h});var r=n(0),i=window.parseFloat;function o(t){return t.replace(/^\s+|\s+$/g,"")}function u(t,e,n){for(t=""+t,n=n||"0";t.length<e;)t=n+t;return t}function a(t,e){for(var n=t.attributes,r=0;r<n.length;r++)if(n[r].name&&n[r].name.toLowerCase()===e.toLowerCase())return n[r].value.toString();return""}function c(t){if(!t||"rtmp"===t.substr(0,4))return"";var e=/[(,]format=(m3u8|mpd)-/i.exec(t);return e?e[1]:(t=t.split("?")[0].split("#")[0]).lastIndexOf(".")>-1?t.substr(t.lastIndexOf(".")+1,t.length).toLowerCase():""}function s(t){var e=(t/60|0)%60,n=t%60;return u((t/3600|0).toString(),2)+":"+u(e.toString(),2)+":"+u(n.toFixed(3),6)}function l(t,e){if(!t)return 0;if(Object(r.z)(t))return t;var n=t.replace(",","."),o=n.slice(-1),u=n.split(":"),a=u.length,c=0;if("s"===o)c=i(n);else if("m"===o)c=60*i(n);else if("h"===o)c=3600*i(n);else if(a>1){var s=a-1;4===a&&(e&&(c=i(u[s])/e),s-=1),c+=i(u[s]),c+=60*i(u[s-1]),a>=3&&(c+=3600*i(u[s-2]))}else c=i(n);return Object(r.z)(c)?c:0}function f(t,e,n){if(Object(r.x)(t)&&"%"===t.slice(-1)){var o=i(t);return e&&Object(r.z)(e)&&Object(r.z)(o)?e*o/100:null}return l(t,n)}function d(t,e){return t.map(function(t){return e+t})}function p(t,e){return t.map(function(t){return t+e})}function h(t){return!!t&&Object(r.x)(t)&&"%"===t.slice(-1)}},function(t,e,n){"use strict";n.d(e,"kb",function(){return r}),n.d(e,"nb",function(){return i}),n.d(e,"lb",function(){return o}),n.d(e,"pb",function(){return u}),n.d(e,"qb",function(){return a}),n.d(e,"mb",function(){return c}),n.d(e,"ob",function(){return s}),n.d(e,"rb",function(){return l}),n.d(e,"s",function(){return f}),n.d(e,"u",function(){return d}),n.d(e,"t",function(){return p}),n.d(e,"n",function(){return h}),n.d(e,"q",function(){return v}),n.d(e,"ub",function(){return g}),n.d(e,"r",function(){return m}),n.d(e,"Z",function(){return b}),n.d(e,"W",function(){return y}),n.d(e,"v",function(){return j}),n.d(e,"Y",function(){return w}),n.d(e,"w",function(){return O}),n.d(e,"wb",function(){return k}),n.d(e,"a",function(){return C}),n.d(e,"b",function(){return x}),n.d(e,"c",function(){return P}),n.d(e,"d",function(){return S}),n.d(e,"e",function(){return T}),n.d(e,"h",function(){return E}),n.d(e,"F",function(){return A}),n.d(e,"hb",function(){return _}),n.d(e,"Q",function(){return F}),n.d(e,"C",function(){return I}),n.d(e,"B",function(){return M}),n.d(e,"E",function(){return L}),n.d(e,"p",function(){return N}),n.d(e,"cb",function(){return R}),n.d(e,"m",function(){return D}),n.d(e,"G",function(){return B}),n.d(e,"H",function(){return z}),n.d(e,"N",function(){return q}),n.d(e,"O",function(){return V}),n.d(e,"R",function(){return H}),n.d(e,"jb",function(){return Q}),n.d(e,"bb",function(){return W}),n.d(e,"D",function(){return X}),n.d(e,"S",function(){return U}),n.d(e,"P",function(){return Y}),n.d(e,"T",function(){return J}),n.d(e,"V",function(){return K}),n.d(e,"M",function(){return Z}),n.d(e,"L",function(){return $}),n.d(e,"K",function(){return G}),n.d(e,"I",function(){return tt}),n.d(e,"J",function(){return et}),n.d(e,"U",function(){return nt}),n.d(e,"o",function(){return rt}),n.d(e,"y",function(){return it}),n.d(e,"ib",function(){return ot}),n.d(e,"db",function(){return ut}),n.d(e,"eb",function(){return at}),n.d(e,"f",function(){return ct}),n.d(e,"g",function(){return st}),n.d(e,"sb",function(){return lt}),n.d(e,"tb",function(){return ft}),n.d(e,"ab",function(){return dt}),n.d(e,"A",function(){return pt}),n.d(e,"l",function(){return ht}),n.d(e,"k",function(){return vt}),n.d(e,"fb",function(){return gt}),n.d(e,"gb",function(){return mt}),n.d(e,"vb",function(){return bt}),n.d(e,"z",function(){return yt}),n.d(e,"j",function(){return jt}),n.d(e,"X",function(){return wt}),n.d(e,"i",function(){return Ot}),n.d(e,"x",function(){return kt});var r="buffering",i="idle",o="complete",u="paused",a="playing",c="error",s="loading",l="stalled",f="drag",d="dragStart",p="dragEnd",h="click",v="doubleClick",g="tap",m="doubleTap",b="over",y="move",j="enter",w="out",O=c,k="warning",C="adClick",x="adPause",P="adPlay",S="adSkipped",T="adTime",E="autostartNotAllowed",A=o,_="ready",F="seek",I="beforePlay",M="beforeComplete",L="bufferFull",N="displayClick",R="playlistComplete",D="cast",B="mediaError",z="firstFrame",q="playAttempt",V="playAttemptFailed",H="seeked",Q="setupError",W="state",X="bufferChange",U="time",Y="ratechange",J="mediaType",K="volume",Z="mute",$="metadataCueParsed",G="meta",tt="levels",et="levelsChanged",nt="visualQuality",rt="controls",it="fullscreen",ot="resize",ut="playlistItem",at="playlist",ct="audioTracks",st="audioTrackChanged",lt="subtitlesTracks",ft="subtitlesTrackChanged",dt="playbackRateChanged",pt="logoClick",ht="captionsList",vt="captionsChanged",gt="providerChanged",mt="providerFirstFrame",bt="userAction",yt="instreamClick",jt="breakpoint",wt="fullscreenchange",Ot="bandwidthEstimate",kt="float"},function(t,e,n){"use strict";n.d(e,"b",function(){return i}),n.d(e,"d",function(){return o}),n.d(e,"a",function(){return u}),n.d(e,"c",function(){return a});var r=n(2);function i(t){var e="";return t&&(t.localName?e=t.localName:t.baseName&&(e=t.baseName)),e}function o(t){var e="";return t&&(t.textContent?e=Object(r.i)(t.textContent):t.text&&(e=Object(r.i)(t.text))),e}function u(t,e){return t.childNodes[e]}function a(t){return t.childNodes?t.childNodes.length:0}},function(t,e,n){"use strict";n.r(e);var r=n(8);function i(t,e){var n;return t&&t.length>e&&(n=t[e]),n}var o=n(0);n.d(e,"Browser",function(){return c}),n.d(e,"OS",function(){return s}),n.d(e,"Features",function(){return l});var u=navigator.userAgent,a=function(){};var c={},s={},l={};Object.defineProperties(c,{androidNative:{get:Object(o.C)(r.c),enumerable:!0},chrome:{get:Object(o.C)(r.d),enumerable:!0},edge:{get:Object(o.C)(r.e),enumerable:!0},facebook:{get:Object(o.C)(r.g),enumerable:!0},firefox:{get:Object(o.C)(r.f),enumerable:!0},ie:{get:Object(o.C)(r.i),enumerable:!0},msie:{get:Object(o.C)(r.n),enumerable:!0},safari:{get:Object(o.C)(r.q),enumerable:!0},version:{get:Object(o.C)(function(t,e){var n,r,i,o;return t.chrome?n=-1!==e.indexOf("Chrome")?e.substring(e.indexOf("Chrome")+7):e.substring(e.indexOf("CriOS")+6):t.safari?n=e.substring(e.indexOf("Version")+8):t.firefox?n=e.substring(e.indexOf("Firefox")+8):t.edge?n=e.substring(e.indexOf("Edge")+5):t.ie&&(-1!==e.indexOf("rv:")?n=e.substring(e.indexOf("rv:")+3):-1!==e.indexOf("MSIE")&&(n=e.substring(e.indexOf("MSIE")+5))),n&&(-1!==(o=n.indexOf(";"))&&(n=n.substring(0,o)),-1!==(o=n.indexOf(" "))&&(n=n.substring(0,o)),-1!==(o=n.indexOf(")"))&&(n=n.substring(0,o)),r=parseInt(n,10),i=parseInt(n.split(".")[1],10)),{version:n,major:r,minor:i}}.bind(void 0,c,u)),enumerable:!0}}),Object.defineProperties(s,{android:{get:Object(o.C)(r.b),enumerable:!0},iOS:{get:Object(o.C)(r.j),enumerable:!0},mobile:{get:Object(o.C)(r.o),enumerable:!0},mac:{get:Object(o.C)(r.p),enumerable:!0},iPad:{get:Object(o.C)(r.k),enumerable:!0},iPhone:{get:Object(o.C)(r.l),enumerable:!0},windows:{get:Object(o.C)(function(){return u.indexOf("Windows")>-1}),enumerable:!0},tizen:{get:Object(o.C)(r.r),enumerable:!0},version:{get:Object(o.C)(function(t,e){var n,r,o;if(t.windows)switch(n=i(/Windows(?: NT|)? ([._\d]+)/.exec(e),1)){case"6.1":n="7.0";break;case"6.2":n="8.0";break;case"6.3":n="8.1"}else t.android?n=i(/Android ([._\d]+)/.exec(e),1):t.iOS?n=i(/OS ([._\d]+)/.exec(e),1):t.mac?n=i(/Mac OS X (10[._\d]+)/.exec(e),1):t.tizen&&(n=i(/Tizen ([._\d]+)/.exec(e),1));if(n){r=parseInt(n,10);var u=n.split(/[._]/);u&&(o=parseInt(u[1],10))}return{version:n,major:r,minor:o}}.bind(void 0,s,u)),enumerable:!0}}),Object.defineProperties(l,{flash:{get:Object(o.C)(r.h),enumerable:!0},flashVersion:{get:Object(o.C)(r.a),enumerable:!0},iframe:{get:Object(o.C)(r.m),enumerable:!0},passiveEvents:{get:Object(o.C)(function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){return t=!0}});window.addEventListener("testPassive",a,e),window.removeEventListener("testPassive",a,e)}catch(t){}return t}),enumerable:!0},backgroundLoading:{get:Object(o.C)(function(){return!(s.iOS||c.safari||s.tizen)}),enumerable:!0}})},function(t,e,n){"use strict";n.d(e,"i",function(){return s}),n.d(e,"e",function(){return l}),n.d(e,"q",function(){return f}),n.d(e,"j",function(){return d}),n.d(e,"s",function(){return p}),n.d(e,"r",function(){return h}),n.d(e,"u",function(){return v}),n.d(e,"d",function(){return b}),n.d(e,"a",function(){return y}),n.d(e,"o",function(){return j}),n.d(e,"p",function(){return w}),n.d(e,"v",function(){return O}),n.d(e,"t",function(){return k}),n.d(e,"h",function(){return C}),n.d(e,"b",function(){return x}),n.d(e,"g",function(){return P}),n.d(e,"c",function(){return S}),n.d(e,"m",function(){return T}),n.d(e,"k",function(){return E}),n.d(e,"n",function(){return A}),n.d(e,"l",function(){return _}),n.d(e,"f",function(){return F});var r,i=n(0),o=n(2),u=n(5),a=window.DOMParser,c=!0;function s(t,e){return t.classList.contains(e)}function l(t){return d(t).firstChild}function f(t,e){C(t),function(t,e){if(!e)return;for(var n=document.createDocumentFragment(),r=d(e).childNodes,i=0;i<r.length;i++)n.appendChild(r[i].cloneNode(!0));t.appendChild(n)}(t,e)}function d(t){var e=function(t){r||(r=new a,c=function(){try{if(r.parseFromString("","text/html"))return!0}catch(t){}return!1}());if(c)return r.parseFromString(t,"text/html").body;var e=document.implementation.createHTMLDocument("");t.toLowerCase().indexOf("<!doctype")>-1?e.documentElement.innerHTML=t:e.body.innerHTML=t;return e.body}(t);p(e);for(var n=e.querySelectorAll("*"),i=n.length;i--;){h(n[i])}return e}function p(t){for(var e=t.querySelectorAll("script,object,iframe"),n=e.length;n--;){var r=e[n];r.parentNode.removeChild(r)}return t}function h(t){for(var e=t.attributes,n=e.length;n--;){var r=e[n].name;if(/^on/.test(r)&&t.removeAttribute(r),/href/.test(r)){var i=e[n].value;/javascript:|javascript&colon;/.test(i)&&t.removeAttribute(r)}}return t}function v(t){return t+(t.toString().indexOf("%")>0?"":"px")}function g(t){return Object(i.x)(t.className)?t.className.split(" "):[]}function m(t,e){e=Object(o.i)(e),t.className!==e&&(t.className=e)}function b(t){return t.classList?t.classList:g(t)}function y(t,e){var n=g(t);(Array.isArray(e)?e:e.split(" ")).forEach(function(t){Object(i.e)(n,t)||n.push(t)}),m(t,n.join(" "))}function j(t,e){var n=g(t),r=Array.isArray(e)?e:e.split(" ");m(t,Object(i.h)(n,r).join(" "))}function w(t,e,n){var r=t.className||"";e.test(r)?r=r.replace(e,n):n&&(r+=" "+n),m(t,r)}function O(t,e,n){var r=s(t,e);(n=Object(i.r)(n)?n:!r)!==r&&(n?y(t,e):j(t,e))}function k(t,e,n){t.setAttribute(e,n)}function C(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function x(t){var e=document.createElement("link");e.rel="stylesheet",e.href=t,document.getElementsByTagName("head")[0].appendChild(e)}function P(t){t&&C(t)}function S(t){var e={left:0,right:0,width:0,height:0,top:0,bottom:0};if(!t||!document.body.contains(t))return e;var n=t.getBoundingClientRect(),r=window.pageYOffset,i=window.pageXOffset;return n.width||n.height||n.left||n.top?(e.left=n.left+i,e.right=n.right+i,e.top=n.top+r,e.bottom=n.bottom+r,e.width=n.right-n.left,e.height=n.bottom-n.top,e):e}function T(t,e){t.insertBefore(e,t.firstChild)}function E(t){return t.nextElementSibling}function A(t){return t.previousElementSibling}function _(t,e,n){void 0===n&&(n={});var r=document.createElement("a");r.href=t,r.target=e,r=Object(i.j)(r,n),u.Browser.firefox?r.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})):r.click()}function F(){var t=window.screen.orientation;return!!t&&("landscape-primary"===t.type||"landscape-secondary"===t.type)||90===window.orientation||-90===window.orientation}},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o}),n.d(e,"c",function(){return u}),n.d(e,"d",function(){return a});var r=n(1),i={};function o(t,e){return function(){throw new r.t(r.n,t,e)}}function u(t,e){return function(){throw new r.t(null,t,e)}}function a(){return n.e(3).then(function(t){return n(71).default}.bind(null,n)).catch(o(r.v+101))}},function(t,e,n){"use strict";n.d(e,"h",function(){return u}),n.d(e,"f",function(){return c}),n.d(e,"l",function(){return l}),n.d(e,"k",function(){return f}),n.d(e,"p",function(){return d}),n.d(e,"g",function(){return p}),n.d(e,"e",function(){return h}),n.d(e,"n",function(){return v}),n.d(e,"r",function(){return g}),n.d(e,"d",function(){return m}),n.d(e,"i",function(){return b}),n.d(e,"q",function(){return y}),n.d(e,"j",function(){return j}),n.d(e,"c",function(){return w}),n.d(e,"b",function(){return O}),n.d(e,"o",function(){return k}),n.d(e,"m",function(){return C}),n.d(e,"a",function(){return x});var r=navigator.userAgent;function i(t){return null!==r.match(t)}function o(t){return function(){return i(t)}}function u(){var t=x();return!!(t&&t>=18)}var a=function(){return"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1},c=o(/gecko\//i),s=o(/trident\/.+rv:\s*11/i),l=o(/iP(hone|od)/i),f=function(){return i(/iPad/i)||a()},d=function(){return i(/Macintosh/i)&&!a()},p=o(/FBAV/i);function h(){return i(/\sEdge\/\d+/i)}function v(){return i(/msie/i)}function g(){return i(/SMART-TV/)}function m(){return i(/\s(?:(?:Headless)?Chrome|CriOS)\//i)&&!h()&&!i(/UCBrowser/i)&&!g()}function b(){return h()||s()||v()}function y(){return i(/safari/i)&&!i(/(?:Chrome|CriOS|chromium|android|phantom)/i)||g()}function j(){return i(/iP(hone|ad|od)/i)||a()}function w(){return!(i(/chrome\/[123456789]/i)&&!i(/chrome\/18/i)&&!c())&&O()}function O(){return i(/Android/i)&&!i(/Windows Phone/i)}function k(){return j()||O()||i(/Windows Phone/i)}function C(){try{return window.self!==window.top}catch(t){return!0}}function x(){if(O())return 0;var t,e=navigator.plugins;if(e&&(t=e.namedItem("Shockwave Flash"))&&t.description)return parseFloat(t.description.replace(/\D+(\d+\.?\d*).*/,"$1"));if(void 0!==window.ActiveXObject){try{if(t=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash"))return parseFloat(t.GetVariable("$version").split(" ")[1].replace(/\s*,\s*/,"."))}catch(t){return 0}return t}return 0}},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"c",function(){return i}),n.d(e,"d",function(){return o}),n.d(e,"b",function(){return u}),n.d(e,"e",function(){return a}),n.d(e,"f",function(){return c});var r=function(){function t(){}var e=t.prototype;return e.on=function(t,e,n){if(!l(this,"on",t,[e,n])||!e)return this;var r=this._events||(this._events={});return(r[t]||(r[t]=[])).push({callback:e,context:n}),this},e.once=function(t,e,n){if(!l(this,"once",t,[e,n])||!e)return this;var r=0,i=this,o=function n(){r++||(i.off(t,n),e.apply(this,arguments))};return o._callback=e,this.on(t,o,n)},e.off=function(t,e,n){if(!this._events||!l(this,"off",t,[e,n]))return this;if(!t&&!e&&!n)return delete this._events,this;for(var r=t?[t]:Object.keys(this._events),i=0,o=r.length;i<o;i++){t=r[i];var u=this._events[t];if(u){var a=this._events[t]=[];if(e||n)for(var c=0,s=u.length;c<s;c++){var f=u[c];(e&&e!==f.callback&&e!==f.callback._callback||n&&n!==f.context)&&a.push(f)}a.length||delete this._events[t]}}return this},e.trigger=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!this._events)return this;if(!l(this,"trigger",t,n))return this;var i=this._events[t],o=this._events.all;return i&&f(i,n,this),o&&f(o,arguments,this),this},e.triggerSafe=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!this._events)return this;if(!l(this,"trigger",t,n))return this;var i=this._events[t],o=this._events.all;return i&&f(i,n,this,t),o&&f(o,arguments,this,t),this},t}(),i=r.prototype.on,o=r.prototype.once,u=r.prototype.off,a=r.prototype.trigger,c=r.prototype.triggerSafe;r.on=i,r.once=o,r.off=u,r.trigger=a;var s=/\s+/;function l(t,e,n,r){if(!n)return!0;if("object"==typeof n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t[e].apply(t,[i,n[i]].concat(r));return!1}if(s.test(n)){for(var o=n.split(s),u=0,a=o.length;u<a;u++)t[e].apply(t,[o[u]].concat(r));return!1}return!0}function f(t,e,n,r){for(var i=-1,o=t.length;++i<o;){var u=t[i];if(r)try{u.callback.apply(u.context||n,e)}catch(t){console.log('Error in "'+r+'" event handler:',t)}else u.callback.apply(u.context||n,e)}}},function(t,e,n){"use strict";n.r(e),n.d(e,"exists",function(){return i}),n.d(e,"isHTTPS",function(){return o}),n.d(e,"isFileProtocol",function(){return u}),n.d(e,"isRtmp",function(){return a}),n.d(e,"isYouTube",function(){return c}),n.d(e,"typeOf",function(){return s}),n.d(e,"isDeepKeyCompliant",function(){return l});var r=window.location.protocol;function i(t){switch(typeof t){case"string":return t.length>0;case"object":return null!==t;case"undefined":return!1;default:return!0}}function o(){return"https:"===r}function u(){return"file:"===r}function a(t,e){return 0===t.indexOf("rtmp:")||"rtmp"===e}function c(t,e){return"youtube"===e||/^(http|\/\/).*(youtube\.com|youtu\.be)\/.+/.test(t)}function s(t){if(null===t)return"null";var e=typeof t;return"object"===e&&Array.isArray(t)?"array":e}function l(t,e,n){var r=Object.keys(t);return Object.keys(e).length>=r.length&&r.every(function(r){var i=t[r],o=e[r];return i&&"object"==typeof i?!(!o||"object"!=typeof o)&&l(i,o,n):n(r,t)})}},function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"b",function(){return c}),n.d(e,"d",function(){return s}),n.d(e,"e",function(){return d}),n.d(e,"c",function(){return p});var r,i=n(2),o=n(40),u=n.n(o),a=u.a.clear;function c(t,e,n,r){n=n||"all-players";var i="";if("object"==typeof e){var o=document.createElement("div");s(o,e);var a=o.style.cssText;Object.prototype.hasOwnProperty.call(e,"content")&&a&&(a=a+' content: "'+e.content+'";'),r&&a&&(a=a.replace(/;/g," !important;")),i="{"+a+"}"}else"string"==typeof e&&(i=e);""!==i&&"{}"!==i?u.a.style([[t,t+i]],n):u.a.clear(n,t)}function s(t,e){if(null!=t){var n;void 0===t.length&&(t=[t]);var r={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=f(n,e[n]));for(var i=0;i<t.length;i++){var o=t[i],u=void 0;if(null!=o)for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(u=l(n),o.style[u]!==r[n]&&(o.style[u]=r[n]))}}}function l(t){t=t.split("-");for(var e=1;e<t.length;e++)t[e]=t[e].charAt(0).toUpperCase()+t[e].slice(1);return t.join("")}function f(t,e){return""===e||null==e?"":"string"==typeof e&&isNaN(e)?/png|gif|jpe?g/i.test(e)&&e.indexOf("url")<0?"url("+e+")":e:0===e||"z-index"===t||"opacity"===t?""+e:/color/i.test(t)?"#"+Object(i.e)(e.toString(16).replace(/^0x/i,""),6):Math.ceil(e)+"px"}function d(t,e){s(t,{transform:e,webkitTransform:e,msTransform:e,mozTransform:e,oTransform:e})}function p(t,e){var n="rgb",i=void 0!==e&&100!==e;if(i&&(n+="a"),!r){var o=document.createElement("canvas");o.height=1,o.width=1,r=o.getContext("2d")}t?isNaN(parseInt(t,16))||(t="#"+t):t="#000000",r.clearRect(0,0,1,1),r.fillStyle=t,r.fillRect(0,0,1,1);var u=r.getImageData(0,0,1,1).data;return n+="("+u[0]+", "+u[1]+", "+u[2],i&&(n+=", "+e/100),n+")"}},function(t,e,n){"use strict";n.r(e),n.d(e,"getAbsolutePath",function(){return o}),n.d(e,"isAbsolutePath",function(){return u}),n.d(e,"parseXML",function(){return a}),n.d(e,"serialize",function(){return c}),n.d(e,"parseDimension",function(){return s}),n.d(e,"timeFormat",function(){return l});var r=n(10),i=n(0);function o(t,e){if(e&&Object(r.exists)(e)||(e=document.location.href),!Object(r.exists)(t))return"";if(u(t))return t;var n,i=e.substring(0,e.indexOf("://")+3),o=e.substring(i.length,e.indexOf("/",i.length+1));if(0===t.indexOf("/"))n=t.split("/");else{var a=e.split("?")[0];n=(a=a.substring(i.length+o.length+1,a.lastIndexOf("/"))).split("/").concat(t.split("/"))}for(var c=[],s=0;s<n.length;s++)n[s]&&Object(r.exists)(n[s])&&"."!==n[s]&&(".."===n[s]?c.pop():c.push(n[s]));return i+o+"/"+c.join("/")}function u(t){return/^(?:(?:https?|file):)?\/\//.test(t)}function a(t){var e=null;try{(e=(new window.DOMParser).parseFromString(t,"text/xml")).querySelector("parsererror")&&(e=null)}catch(t){}return e}function c(t){if(void 0===t)return null;if("string"==typeof t&&t.length<6){var e=t.toLowerCase();if("true"===e)return!0;if("false"===e)return!1;if(!Object(i.u)(Number(t))&&!Object(i.u)(parseFloat(t)))return Number(t)}return t}function s(t){return Object(i.z)(t)?t:""===t?0:t.lastIndexOf("%")>-1?t:parseInt(t.replace("px",""),10)}function l(t,e){if(Object(i.u)(t)&&(t=parseInt(t.toString())),Object(i.u)(t)||!isFinite(t)||t<=0&&!e)return"00:00";var n=t<0?"-":"";t=Math.abs(t);var r=Math.floor(t/3600),o=Math.floor((t-3600*r)/60),u=Math.floor(t%60);return n+(r?r+":":"")+(o<10?"0":"")+o+":"+(u<10?"0":"")+u}},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(32),i=n(17),o=n(57),u=n(0);n(9);function a(t){var e=t.getName().name;if(!r.a[e]){if(!Object(u.l)(i.a,Object(u.B)({name:e}))){if(!Object(u.t)(t.supports))throw new Error("Tried to register a provider with an invalid object");i.a.unshift({name:e,supports:t.supports})}0,Object(u.g)(t.prototype,o.a),r.a[e]=t}}},function(t,e,n){"use strict";n.d(e,"j",function(){return p}),n.d(e,"d",function(){return h}),n.d(e,"b",function(){return v}),n.d(e,"e",function(){return m}),n.d(e,"g",function(){return y}),n.d(e,"h",function(){return j}),n.d(e,"c",function(){return w}),n.d(e,"f",function(){return k}),n.d(e,"i",function(){return C}),n.d(e,"a",function(){return x});var r=n(0),i=n(8),o=n(27),u=n(10),a=n(39),c={},s={zh:"Chinese",nl:"Dutch",en:"English",fr:"French",de:"German",it:"Italian",ja:"Japanese",pt:"Portuguese",ru:"Russian",es:"Spanish",el:"Greek",fi:"Finnish",id:"Indonesian",ko:"Korean",th:"Thai",vi:"Vietnamese"},l=Object(r.q)(s);function f(t){var e=d(t),n=e.indexOf("_");return-1===n?e:e.substring(0,n)}function d(t){return t.toLowerCase().replace("-","_")}function p(t){return t?Object.keys(t).reduce(function(e,n){return e[d(n)]=t[n],e},{}):{}}function h(t){if(t)return 3===t.length?t:s[f(t)]||t}function v(t){return l[t]||""}function g(t){var e=t.querySelector("html");return e?e.getAttribute("lang"):null}function m(){var t=g(document);if(!t&&Object(i.m)())try{t=g(window.top.document)}catch(t){}return t||navigator.language||"en"}var b=["ar","da","de","el","es","fi","fr","he","id","it","ja","ko","nl","no","oc","pt","ro","ru","sl","sv","th","tr","vi","zh"];function y(t){return 8207===t.charCodeAt(0)||/^[\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC]/.test(t)}function j(t){return b.indexOf(f(t))>=0}function w(t,e,n){return Object(r.j)({},function(t){var e=t.advertising,n=t.related,i=t.sharing,o=t.abouttext,u=Object(r.j)({},t.localization);e&&(u.advertising=u.advertising||{},O(u.advertising,e,"admessage"),O(u.advertising,e,"cuetext"),O(u.advertising,e,"loadingAd"),O(u.advertising,e,"podmessage"),O(u.advertising,e,"skipmessage"),O(u.advertising,e,"skiptext"));"string"==typeof u.related?u.related={heading:u.related}:u.related=u.related||{};n&&O(u.related,n,"autoplaymessage");i&&(u.sharing=u.sharing||{},O(u.sharing,i,"heading"),O(u.sharing,i,"copied"));o&&O(u,t,"abouttext");var a=u.close||u.nextUpClose;a&&(u.close=a);return u}(t),e[f(n)],e[d(n)])}function O(t,e,n){var r=t[n]||e[n];r&&(t[n]=r)}function k(t){return Object(u.isDeepKeyCompliant)(a.a,t,function(t,e){return"string"==typeof e[t]})}function C(t,e){var n=c[e];if(!n){var r=t+"translations/"+f(e)+".json";c[e]=n=new Promise(function(t,n){Object(o.b)({url:r,oncomplete:t,onerror:function(t,r,i,o){c[e]=null,n(o)},responseType:"json"})})}return n}function x(t,e){var n=Object(r.j)({},t,e);return P(n,"errors",t,e),P(n,"related",t,e),P(n,"sharing",t,e),P(n,"advertising",t,e),P(n,"shortcuts",t,e),P(n,"captionsStyles",t,e),n}function P(t,e,n,i){t[e]=Object(r.j)({},n[e],i[e])}},function(t,e,n){"use strict";e.a=[]},function(t,e,n){"use strict";e.a={debug:!1}},function(t,e,n){"use strict";n.d(e,"a",function(){return p});var r=n(26),i=n(5),o=n(21),u=n(0),a=n(10),c=n(35),s=Object(u.l)(r.a,Object(u.B)({name:"html5"})),l=s.supports;function f(t){var e=window.MediaSource;return Object(u.a)(t,function(t){return!!e&&!!e.isTypeSupported&&e.isTypeSupported(t)})}function d(t){if(t.drm)return!1;var e=t.file.indexOf(".m3u8")>-1,n="hls"===t.type||"m3u8"===t.type;if(!e&&!n)return!1;var r=i.Browser.chrome||i.Browser.firefox||i.Browser.edge||i.Browser.ie&&11===i.Browser.version.major,o=i.OS.android&&!1===t.hlsjsdefault,u=i.Browser.safari&&!!t.safarihlsjs;return f(t.mediaTypes||['video/mp4;codecs="avc1.4d400d,mp4a.40.2"'])&&(r||u)&&!o}s.supports=function(t,e){var n=l.apply(this,arguments);if(n&&t.drm&&"hls"===t.type){var r=Object(o.a)(e),i=r("drm");if(i&&t.drm.fairplay){var u=window.WebKitMediaKeys;return u&&u.isTypeSupported&&u.isTypeSupported("com.apple.fps.1_0","video/mp4")}return i}return n},r.a.push({name:"shaka",supports:function(t){return!(t.drm&&!Object(c.a)(t.drm))&&(!(!window.HTMLVideoElement||!window.MediaSource)&&(f(t.mediaTypes)&&("dash"===t.type||"mpd"===t.type||(t.file||"").indexOf("mpd-time-csf")>-1)))}}),r.a.unshift({name:"hlsjs",supports:function(t){return d(t)}}),r.a.unshift({name:"hlsjsProgressive",supports:function(t){return t._hlsjsProgressive&&d(t)}}),r.a.push({name:"flash",supports:function(t){if(!i.Features.flash||t.drm)return!1;var e=t.type;return"hls"===e||"m3u8"===e||!Object(a.isRtmp)(t.file,e)&&["flv","f4v","mov","m4a","m4v","mp4","aac","f4a","mp3","mpeg","smil"].indexOf(e)>-1}});var p=r.a},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=Date.now||function(){return(new Date).getTime()}},function(t,e,n){"use strict";n.r(e),n.d(e,"getScriptPath",function(){return o}),n.d(e,"repo",function(){return u}),n.d(e,"versionCheck",function(){return a}),n.d(e,"loadFrom",function(){return c});var r=n(29),i=n(10),o=function(t){for(var e=document.getElementsByTagName("script"),n=0;n<e.length;n++){var r=e[n].src;if(r){var i=r.lastIndexOf("/"+t);if(i>=0)return r.substr(0,i+1)}}return""},u=function(){var t="//ssl.p.jwpcdn.com/player/v/8.17.1/";return""+(Object(i.isFileProtocol)()?"https:":"")+t},a=function(t){var e=("0"+t).split(/\W/),n=r.a.split(/\W/),i=parseFloat(e[0]),o=parseFloat(n[0]);return!(i>o)&&!(i===o&&parseFloat("0"+e[1])>parseFloat(n[1]))},c=function(){return u()}},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"c",function(){return o}),n.d(e,"b",function(){return u});var r=n(37),i=r.a,o=r.c;function u(t){var e=Object(r.b)(t);if(!t)return e;switch(Object(r.c)(t)){case"jwpsrv":e=305001;break;case"googima":e=305002;break;case"vast":e=305003;break;case"freewheel":e=305004;break;case"dai":e=305005;break;case"gapro":e=305006;break;case"bidding":e=305007}return e}},function(t,e,n){"use strict";n.d(e,"a",function(){return r});function r(t){var e={setup:["free","starter","business","premium","enterprise","developer","ads","unlimited","trial","platinum"],drm:["enterprise","developer","ads","unlimited","trial"],ads:["ads","unlimited","trial","platinum","enterprise","developer","business"],jwpsrv:["free","starter","business","premium","enterprise","developer","ads","trial","platinum","invalid"],discovery:["ads","enterprise","developer","trial","unlimited"]};return function(n){return e[n]&&e[n].indexOf(t)>-1}}},function(t,e,n){"use strict";var r=n(0),i={none:!0,metadata:!0,auto:!0};function o(t,e){return i[t]?t:i[e]?e:"metadata"}var u=n(28),a=n(33),c=n(41),s=n(1);n.d(e,"b",function(){return l}),n.d(e,"e",function(){return f}),n.d(e,"d",function(){return d}),n.d(e,"f",function(){return p}),n.d(e,"c",function(){return h});function l(t,e,n){var i=Object(r.j)({},n);return delete i.playlist,t.map(function(t){return d(e,t,i)}).filter(function(t){return!!t})}function f(t){if(!Array.isArray(t)||0===t.length)throw new s.t(s.p,630)}function d(t,e,n){var i=t.getProviders(),u=t.get("preload"),a=Object(r.j)({},e);if(a.preload=o(e.preload,u),a.allSources=v(a,t),a.sources=g(a.allSources,i),a.sources.length)return a.file=a.sources[0].file,a.feedData=n,function(t){var e=t.sources[0].liveSyncDuration;return t.dvrSeekLimit=t.liveSyncDuration=e,t}(a)}function p(t,e){var n=(parseInt(t,10)||0)%e;return n<0&&(n+=e),n}var h=function(t,e){return g(v(t,e),e.getProviders())};function v(t,e){var n=e.attributes,r=t.sources,i=t.allSources,u=t.preload,c=t.drm,s=m(t.withCredentials,n.withCredentials);return(i||r).map(function(e){if(e!==Object(e))return null;b(e,n,"androidhls"),b(e,n,"hlsjsdefault"),b(e,n,"safarihlsjs"),function(t,e,n){if(t.liveSyncDuration)return;var r=e.liveSyncDuration?e:n;b(t,r,"liveSyncDuration")}(e,t,n),b(e,n,"_hlsjsProgressive"),e.preload=o(e.preload,u);var r=e.drm||c||n.drm;r&&(e.drm=r);var i=m(e.withCredentials,s);return void 0!==i&&(e.withCredentials=i),Object(a.a)(e)}).filter(function(t){return!!t})}function g(t,e){e&&e.choose||(e=new c.a);var n=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=e.choose(r).providerToCheck;if(i)return{type:r.type,provider:i}}return null}(t,e);if(!n)return[];var r=n.provider,i=n.type;return t.filter(function(t){return t.type===i&&e.providerSupports(r,t)})}function m(t,e){return void 0===t?e:t}function b(t,e,n){n in e&&(t[n]=e[n])}e.a=function(t){return(Array.isArray(t)?t:[t]).map(u.a)}},function(t,e,n){"use strict";var r=n(0),i=n(9),o=n(3),u={};function a(t){var e=document.createElement("link");return e.type="text/css",e.rel="stylesheet",e.href=t,e}function c(t,e){var n=document.createElement("script");return n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=e||45e3,n.src=t,n}var s=function(t,e,n){var r=this,i=0;function s(t){i=2,r.trigger(o.w,t).off()}function l(t){i=3,r.trigger(o.lb,t).off()}this.getStatus=function(){return i},this.load=function(){var r=u[t];return 0!==i?r:(r&&r.then(l).catch(s),i=1,r=new Promise(function(r,i){var o=(e?a:c)(t,n),u=function(){o.onerror=o.onload=null,clearTimeout(d)},f=function(t){u(),s(t),i(t)},d=setTimeout(function(){f(new Error("Network timeout "+t))},45e3);o.onerror=function(){f(new Error("Failed to load "+t))},o.onload=function(t){u(),l(t),r(t)};var p=document.getElementsByTagName("head")[0]||document.documentElement;p.insertBefore(o,p.firstChild)}),u[t]=r,r)}};Object(r.j)(s.prototype,i.a),e.a=s},function(t,e,n){"use strict";var r=n(1),i=n(20),o=function(){this.load=function(t,e,n,o){return n&&"object"==typeof n?Promise.all(Object.keys(n).filter(function(t){return t}).map(function(u){var a=n[u];return e.setupPlugin(u).then(function(e){if(!o.attributes._destroyed)return Object(i.a)(e,a,t)}).catch(function(t){return e.removePlugin(u),t.code?t:new r.t(null,Object(i.b)(u),t)})})):Promise.resolve()}},u=n(58),a=n(46),c={},s=function(){function t(){}var e=t.prototype;return e.setupPlugin=function(t){var e=this.getPlugin(t);return e?(e.url!==t&&Object(a.a)('JW Plugin "'+Object(i.c)(t)+'" already loaded from "'+e.url+'". Ignoring "'+t+'."'),e.promise):this.addPlugin(t).load()},e.addPlugin=function(t){var e=Object(i.c)(t),n=c[e];return n||(n=new u.a(t),c[e]=n),n},e.getPlugin=function(t){return c[Object(i.c)(t)]},e.removePlugin=function(t){delete c[Object(i.c)(t)]},e.getPlugins=function(){return c},t}();n.d(e,"b",function(){return f}),n.d(e,"a",function(){return d});var l=new s,f=function(t,e,n){var r=l.addPlugin(t);r.js||r.registerPlugin(t,e,n)};function d(t,e){var n=t.get("plugins");return window.jwplayerPluginJsonp=f,(t.pluginLoader=t.pluginLoader||new o).load(e,l,n,t).then(function(e){if(!t.attributes._destroyed)return delete window.jwplayerPluginJsonp,e})}},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(47),i=n(21),o=n(44),u=n(1),a=100013;e.b=function(t){var e,n,c;try{var s=Object(r.a)(t||"",Object(o.a)("NDh2aU1Cb0NHRG5hcDFRZQ==")).split("/");if("pro"===(e=s[0])&&(e="premium"),Object(i.a)(e)("setup")||(e="invalid"),s.length>2){n=s[1];var l=parseInt(s[2]);l>0&&(c=new Date).setTime(l)}}catch(t){e="invalid"}this.edition=function(){return e},this.token=function(){return n},this.expiration=function(){return c},this.duration=function(){return c?c.getTime()-(new Date).getTime():0},this.error=function(){var r;return void 0===t?r=100011:"invalid"!==e&&n?this.duration()<0&&(r=a):r=100012,r?new u.t(u.n,r):null}}},function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"b",function(){return c});var r=n(65),i=n(10),o=n(31),u={aac:"audio/mp4",mp4:"video/mp4",f4v:"video/mp4",m4v:"video/mp4",mov:"video/mp4",mp3:"audio/mpeg",mpeg:"audio/mpeg",ogv:"video/ogg",ogg:"video/ogg",oga:"video/ogg",vorbis:"video/ogg",webm:"video/webm",f4a:"video/aac",m3u8:"application/vnd.apple.mpegurl",m3u:"application/vnd.apple.mpegurl",hls:"application/vnd.apple.mpegurl"},a=[{name:"html5",supports:c}];function c(t){if(!o.a||!o.a.canPlayType)return!1;if(!1===Object(r.a)(t))return!1;var e=t.file,n=t.type;if(Object(i.isRtmp)(e,n))return!1;var a=t.mimeType||u[n];if(!a)return!1;var c=t.mediaTypes;return c&&c.length&&(a=[a].concat(c.slice()).join("; ")),!!o.a.canPlayType(a)}},function(t,e,n){"use strict";n.d(e,"b",function(){return c}),n.d(e,"a",function(){return s});var r=n(0),i=n(12),o=n(10),u=n(1),a=function(){};function c(t,e,n,d){var p;t===Object(t)&&(t=(d=t).url);var h=Object(r.j)({xhr:null,url:t,withCredentials:!1,retryWithoutCredentials:!1,timeout:6e4,timeoutId:-1,oncomplete:e||a,onerror:n||a,mimeType:d&&!d.responseType?"text/xml":"",requireValidXML:!1,responseType:d&&d.plainText?"text":"",useDomParser:!1,requestFilter:null},d),v=function(t,e){return function(t,n){var i=t.currentTarget||e.xhr;if(clearTimeout(e.timeoutId),e.retryWithoutCredentials&&e.xhr.withCredentials)return s(i),void c(Object(r.j)({},e,{xhr:null,withCredentials:!1,retryWithoutCredentials:!1}));!n&&i.status>=400&&i.status<600&&(n=i.status),l(e,n?u.p:u.s,n||6,t)}}(0,h);if("XMLHttpRequest"in window){if(p=h.xhr=h.xhr||new window.XMLHttpRequest,"function"==typeof h.requestFilter){var g;try{g=h.requestFilter({url:t,xhr:p})}catch(t){return v(t,5),p}g&&"open"in g&&"send"in g&&(p=h.xhr=g)}p.onreadystatechange=function(t){return function(e){var n=e.currentTarget||t.xhr;if(4===n.readyState){clearTimeout(t.timeoutId);var a=n.status;if(a>=400)return void l(t,u.p,a<600?a:6);if(200===a)return function(t){return function(e){var n=e.currentTarget||t.xhr;if(clearTimeout(t.timeoutId),t.responseType){if("json"===t.responseType)return function(t,e){if(!t.response||"string"==typeof t.response&&'"'!==t.responseText.substr(1))try{t=Object(r.j)({},t,{response:JSON.parse(t.responseText)})}catch(t){return void l(e,u.p,611,t)}return e.oncomplete(t)}(n,t)}else{var o,a=n.responseXML;if(a)try{o=a.firstChild}catch(t){}if(a&&o)return f(n,a,t);if(t.useDomParser&&n.responseText&&!a&&(a=Object(i.parseXML)(n.responseText))&&a.firstChild)return f(n,a,t);if(t.requireValidXML)return void l(t,u.p,602)}t.oncomplete(n)}}(t)(e);0===a&&Object(o.isFileProtocol)()&&!/^[a-z][a-z0-9+.-]*:/.test(t.url)&&l(t,u.p,7)}}}(h),p.onerror=v,"overrideMimeType"in p?h.mimeType&&p.overrideMimeType(h.mimeType):h.useDomParser=!0;try{t=t.replace(/#.*$/,""),p.open("GET",t,!0)}catch(t){return v(t,3),p}if(h.responseType)try{p.responseType=h.responseType}catch(t){}h.timeout&&(h.timeoutId=setTimeout(function(){s(p),l(h,u.s,1)},h.timeout),p.onabort=function(){clearTimeout(h.timeoutId)});try{h.withCredentials&&"withCredentials"in p&&(p.withCredentials=!0),p.send()}catch(t){v(t,4)}return p}l(h,u.s,2)}function s(t){t.onload=null,t.onprogress=null,t.onreadystatechange=null,t.onerror=null,"abort"in t&&t.abort()}function l(t,e,n,r){t.onerror(e,t.url,t.xhr,new u.t(e,n,r))}function f(t,e,n){var i=e.documentElement;if(!n.requireValidXML||"parsererror"!==i.nodeName&&!i.getElementsByTagName("parsererror").length)return t.responseXML||(t=Object(r.j)({},t,{responseXML:e})),n.oncomplete(t);l(n,u.p,601)}},function(t,e,n){"use strict";var r=n(0),i=n(33),o=["captions","metadata","thumbnails","chapters"];var u=function(t){if(t&&t.file){var e,n=Object(r.j)({},{kind:"captions",default:!1},t);return n.kind=(e=n.kind,-1!==o.indexOf(e)?n.kind:"captions"),n.default=!!n.default,n}},a=Array.isArray;e.a=function(t){a((t=t||{}).tracks)||delete t.tracks;var e=Object(r.j)({},{sources:[],tracks:[],minDvrWindow:120,dvrSeekLimit:25},t);e.sources!==Object(e.sources)||a(e.sources)||(e.sources=[Object(i.a)(e.sources)]),a(e.sources)&&0!==e.sources.length||(t.levels?e.sources=t.levels:e.sources=[Object(i.a)(t)]);for(var n=0;n<e.sources.length;n++){var o=e.sources[n];if(o){var c=o.default;o.default=!!c&&"true"===c.toString(),e.sources[n].label||(e.sources[n].label=n.toString()),e.sources[n]=Object(i.a)(e.sources[n])}}return e.sources=e.sources.filter(function(t){return!!t}),a(e.tracks)||(e.tracks=[]),a(e.captions)&&(e.tracks=e.tracks.concat(e.captions),delete e.captions),e.tracks=e.tracks.map(u).filter(function(t){return!!t}),e}},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r="8.17.1+commercial_v8-17-1.420.commercial.6107038.hlsjs..hlsjsprogressive.dd9ffc5.jwplayer.8fb2579.dai.07e1a38.freewheel.af0c077.googima.0c2b122.googimanvmp.6873d1e.headerbidding.179206e.vast.8fedf3e.analytics.231d1d1.gapro.141397a"},function(t,e,n){"use strict";var r=n(0),i=n(18),o=window.performance||{timing:{}},u=o.timing.navigationStart||Object(i.a)();function a(){return u+o.now()}"now"in o||(o.now=function(){return Object(i.a)()-u});var c=function(){function t(){this.startTimes={},this.sum={},this.counts={},this.ticks={}}var e=t.prototype;return e.start=function(t){this.startTimes[t]=a(),this.counts[t]=this.counts[t]+1||1},e.end=function(t){if(this.startTimes[t]){var e=a()-this.startTimes[t];delete this.startTimes[t],this.sum[t]=this.sum[t]+e||e}},e.dump=function(){var t=Object(r.j)({},this.sum);for(var e in this.startTimes)if(Object.prototype.hasOwnProperty.call(this.startTimes,e)){var n=a()-this.startTimes[e];t[e]=t[e]+n||n}return{counts:Object(r.j)({},this.counts),sums:t,events:Object(r.j)({},this.ticks)}},e.tick=function(t){this.ticks[t]=a()},e.clear=function(t){delete this.ticks[t]},e.between=function(t,e){return this.ticks[e]&&this.ticks[t]?this.ticks[e]-this.ticks[t]:null},t}();e.a=c},function(t,e,n){"use strict";var r=document.createElement("video");e.a=r},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r={}},function(t,e,n){"use strict";var r=n(0),i=n(10),o=n(2);e.a=function(t){if(t&&t.file){var e=Object(r.j)({},{default:!1,type:""},t);e.file=Object(o.i)(""+e.file);var n=/^[^/]+\/(?:x-)?([^/]+)$/,u=e.type;if(n.test(u)&&(e.mimeType=u,e.type=u.replace(n,"$1")),Object(i.isYouTube)(e.file)?e.type="youtube":Object(i.isRtmp)(e.file)?e.type="rtmp":e.type||(e.type=Object(o.a)(e.file)),e.type){switch(e.type){case"m3u8":case"vnd.apple.mpegurl":e.type="hls";break;case"dash+xml":e.type="dash";break;case"m4a":e.type="aac";break;case"smil":e.type="rtmp"}return Object.keys(e).forEach(function(t){""===e[t]&&delete e[t]}),e}}}},function(t,e,n){"use strict";n.d(e,"a",function(){return v}),n.d(e,"b",function(){return j});var r=n(5),i=n(3),o=n(9),u=n(18),a=n(6);var c,s,l="ontouchstart"in window,f="PointerEvent"in window&&!r.OS.android,d=!(f||l&&r.OS.mobile),p=r.Features.passiveEvents,h=!!p&&{passive:!0},v=function(t){var e,n;function r(e,n){var r;r=t.call(this)||this;var i=!(n=n||{}).preventScrolling;return r.directSelect=!!n.directSelect,r.dragged=!1,r.enableDoubleTap=!1,r.el=e,r.handlers={},r.options={},r.lastClick=0,r.lastStart=0,r.passive=i,r.pointerId=null,r.startX=0,r.startY=0,r.event=null,r}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=r.prototype;return i.on=function(e,n,r){return m(e)&&(this.handlers[e]||y[e](this)),t.prototype.on.call(this,e,n,r)},i.off=function(e,n,r){var i=this;if(m(e))O(this,e);else if(!e){var o=this.handlers;Object.keys(o).forEach(function(t){O(i,t)})}return t.prototype.off.call(this,e,n,r)},i.destroy=function(){this.el&&(this.off(),f&&k(this),this.el=null)},r}(o.a),g=/\s+/;function m(t){return t&&!(g.test(t)||"object"==typeof t)}function b(t){if(!t.handlers.init){var e=t.el,n=t.passive,r=!!p&&{passive:n},o=function(i){if(Object(a.o)(e,"jw-tab-focus"),!function(t){if("which"in t)return 3===t.which;if("button"in t)return 2===t.button;return!1}(i)){var o=i.target,c=i.type;if(!t.directSelect||o===e){var s=P(i),f=s.pageX,d=s.pageY;if(t.dragged=!1,t.lastStart=Object(u.a)(),t.startX=f,t.startY=d,O(t,"window"),"pointerdown"===c&&i.isPrimary){if(!n){var p=i.pointerId;t.pointerId=p,e.setPointerCapture(p)}w(t,"window","pointermove",l,r),w(t,"window","pointercancel",h),w(t,"window","pointerup",h),"BUTTON"===e.tagName&&e.focus()}else"mousedown"===c?(w(t,"window","mousemove",l,r),w(t,"window","mouseup",h)):"touchstart"===c&&(w(t,"window","touchmove",l,r),w(t,"window","touchcancel",h),w(t,"window","touchend",h),n||S(i))}}},l=function(e){if(t.dragged)x(t,i.s,e);else{var r=P(e),o=r.pageX,u=r.pageY,a=o-t.startX,c=u-t.startY;a*a+c*c>36&&(x(t,i.u,e),t.dragged=!0,x(t,i.s,e))}n||"touchmove"!==e.type||S(e)},h=function(n){if(clearTimeout(c),t.el)if(k(t),O(t,"window"),t.dragged)t.dragged=!1,x(t,i.t,n);else if(-1===n.type.indexOf("cancel")&&e.contains(n.target)){if(Object(u.a)()-t.lastStart>500)return;var r="pointerup"===n.type||"pointercancel"===n.type,o="mouseup"===n.type||r&&"mouse"===n.pointerType;!function(t,e,n){if(t.enableDoubleTap)if(Object(u.a)()-t.lastClick<300){var r=n?i.q:i.r;x(t,r,e),t.lastClick=0}else t.lastClick=Object(u.a)()}(t,n,o),o?x(t,i.n,n):(x(t,i.ub,n),"touchend"!==n.type||p||S(n))}};f?w(t,"init","pointerdown",o,r):(d&&w(t,"init","mousedown",o,r),w(t,"init","touchstart",o,r)),s||(s=new v(document).on("interaction")),w(t,"init","blur",function(){Object(a.o)(e,"jw-tab-focus")}),w(t,"init","focus",function(){s.event&&"keydown"===s.event.type&&Object(a.a)(e,"jw-tab-focus")})}}var y={drag:function(t){b(t)},dragStart:function(t){b(t)},dragEnd:function(t){b(t)},click:function(t){b(t)},tap:function(t){if(r.OS.iOS&&r.OS.version.major<11){var e=document.body;e&&(e.ontouchstart=e.ontouchstart||function(){})}b(t)},doubleTap:function(t){t.enableDoubleTap=!0,b(t)},doubleClick:function(t){t.enableDoubleTap=!0,b(t)},longPress:function(t){if(r.OS.iOS){var e=function(){clearTimeout(c)};w(t,"longPress","touchstart",function(n){e(),c=setTimeout(function(){x(t,"longPress",n)},500)}),w(t,"longPress","touchmove",e),w(t,"longPress","touchcancel",e),w(t,"longPress","touchend",e)}else t.el.oncontextmenu=function(e){return x(t,"longPress",e),!1}},focus:function(t){w(t,"focus","focus",function(e){C(t,"focus",e)})},blur:function(t){w(t,"blur","blur",function(e){C(t,"blur",e)})},over:function(t){(f||d)&&w(t,i.Z,f?"pointerover":"mouseover",function(e){"touch"!==e.pointerType&&x(t,i.Z,e)})},out:function(t){if(f){var e=t.el;w(t,i.Y,"pointerout",function(n){if("touch"!==n.pointerType&&"clientX"in n){var r=document.elementFromPoint(n.clientX,n.clientY);e.contains(r)||x(t,i.Y,n)}})}else d&&w(t,i.Y,"mouseout",function(e){x(t,i.Y,e)})},move:function(t){(f||d)&&w(t,i.W,f?"pointermove":"mousemove",function(e){"touch"!==e.pointerType&&x(t,i.W,e)})},enter:function(t){w(t,i.v,"keydown",function(e){"Enter"!==e.key&&13!==e.keyCode||(e.stopPropagation(),C(t,i.v,e))})},keydown:function(t){w(t,"keydown","keydown",function(e){C(t,"keydown",e)},!1)},gesture:function(t){var e=function(e){return x(t,"gesture",e)};w(t,"gesture","click",e),w(t,"gesture","keydown",e)},interaction:function(t){var e=function(e){t.event=e};w(t,"interaction","mousedown",e,!0),w(t,"interaction","keydown",e,!0)}};function j(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}function w(t,e,n,r,i){void 0===i&&(i=h);var o=t.handlers[e],u=t.options[e];if(o||(o=t.handlers[e]={},u=t.options[e]={}),o[n])throw new Error(e+" "+n+" already registered");o[n]=r,u[n]=i;var a=t.el;("window"===e?j(a):a).addEventListener(n,r,i)}function O(t,e){var n=t.el,r=t.handlers,i=t.options,o="window"===e?j(n):n,u=r[e],a=i[e];u&&(Object.keys(u).forEach(function(t){var e=a[t];"boolean"==typeof e?o.removeEventListener(t,u[t],e):o.removeEventListener(t,u[t])}),r[e]=null,i[e]=null)}function k(t){var e=t.el;null!==t.pointerId&&(e.releasePointerCapture(t.pointerId),t.pointerId=null)}function C(t,e,n){var r=t.el,i=n.target;t.trigger(e,{type:e,sourceEvent:n,currentTarget:r,target:i})}function x(t,e,n){var r=function(t,e,n){var r,i=e.target,o=e.touches,u=e.changedTouches,a=e.pointerType;o||u?(r=o&&o.length?o[0]:u[0],a=a||"touch"):(r=e,a=a||"mouse");var c=r,s=c.pageX,l=c.pageY;return{type:t,pointerType:a,pageX:s,pageY:l,sourceEvent:e,currentTarget:n,target:i}}(e,n,t.el);t.trigger(e,r)}function P(t){return 0===t.type.indexOf("touch")?(t.originalEvent||t).changedTouches[0]:t}function S(t){t.preventDefault&&t.preventDefault()}},function(t,e,n){"use strict";n.d(e,"b",function(){return c}),n.d(e,"d",function(){return s}),n.d(e,"c",function(){return l}),n.d(e,"a",function(){return f});var r,i=n(21),o=[{configName:"clearkey",keyName:"org.w3.clearkey"},{configName:"widevine",keyName:"com.widevine.alpha"},{configName:"playready",keyName:"com.microsoft.playready"}],u=[],a={};function c(t){return t.some(function(t){return!!t.drm||t.sources.some(function(t){return!!t.drm})})}function s(t){return r||((navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration||window.MSMediaKeys)&&Object(i.a)(t)("drm")?(o.forEach(function(t){var e,n,r=(e=t.keyName,n=[{initDataTypes:["cenc"],videoCapabilities:[{contentType:'video/mp4;codecs="avc1.4d401e"'}],audioCapabilities:[{contentType:'audio/mp4;codecs="mp4a.40.2"'}]}],navigator.requestMediaKeySystemAccess?navigator.requestMediaKeySystemAccess(e,n):new Promise(function(t,n){var r;try{r=new window.MSMediaKeys(e)}catch(t){return void n(t)}t(r)})).then(function(){a[t.configName]=!0}).catch(function(){a[t.configName]=!1});u.push(r)}),r=Promise.all(u)):Promise.resolve())}function l(t){return a[t]}function f(t){if(r)return Object.keys(t).some(function(t){return l(t)})}},function(t,e,n){"use strict";var r=n(0),i=n(19),o=n(10),u=n(12),a=n(2),c=n(30),s=n(16);function l(t,e){this.name=t,this.message=e.message||e.toString(),this.error=e}var f=n(8),d=n(6),p=n(11),h=n(27),v=n(52),g=n(46),m=n(53);var b=Object(r.j)({},u,o,i,{addClass:d.a,hasClass:d.i,removeClass:d.o,replaceClass:d.p,toggleClass:d.v,classList:d.d,styleDimension:d.u,createElement:d.e,emptyElement:d.h,addStyleSheet:d.b,bounds:d.c,openLink:d.l,replaceInnerHtml:d.q,css:p.b,clearCss:p.a,style:p.d,transform:p.e,getRgba:p.c,ajax:h.b,crossdomain:function(t){var e=document.createElement("a"),n=document.createElement("a");e.href=location.href;try{return n.href=t,n.href=n.href,e.protocol+"//"+e.host!=n.protocol+"//"+n.host}catch(t){}return!0},tryCatch:function(t,e,n){if(void 0===n&&(n=[]),s.a.debug)return t.apply(e||this,n);try{return t.apply(e||this,n)}catch(e){return new l(t.name,e)}},Error:l,Timer:c.a,log:g.a,genId:m.b,between:v.a,foreach:function(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])},flashVersion:f.a,isIframe:f.m,indexOf:r.p,trim:a.i,pad:a.e,extension:a.a,hms:a.b,seconds:a.g,prefix:a.f,suffix:a.h,noop:function(){}});e.a=b},function(t,e,n){"use strict";n.d(e,"c",function(){return i}),n.d(e,"b",function(){return o}),n.d(e,"a",function(){return u});var r=n(0),i=function(t){return t.replace(/^(.*\/)?([^-]*)-?.*\.(js)$/,"$2")};function o(t){return 305e3}function u(t,e,n){var i=t.name,o=Object(r.j)({},e),u=document.createElement("div");u.id=n.id+"_"+i,u.className="jw-plugin jw-reset";var a=t.getNewInstance(n,o,u);return n.addPlugin(i,a),a}},function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return u});var r=n(7),i=null,o={};function u(){return i||(i=n.e(2).then(function(t){var e=n(70).default;return o.controls=e,e}.bind(null,n)).catch(function(){i=null,Object(r.c)(301130)()})),i}},function(t,e,n){"use strict";e.a={advertising:{admessage:"This ad will end in xx",cuetext:"Advertisement",displayHeading:"Advertisement",loadingAd:"Loading ad",podmessage:"Ad __AD_POD_CURRENT__ of __AD_POD_LENGTH__.",skipmessage:"Skip ad in xx",skiptext:"Skip"},airplay:"AirPlay",audioTracks:"Audio Tracks",auto:"Auto",buffer:"Loading",cast:"Chromecast",cc:"Closed Captions",close:"Close",errors:{badConnection:"This video cannot be played because of a problem with your internet connection.",cantLoadPlayer:"Sorry, the video player failed to load.",cantPlayInBrowser:"The video cannot be played in this browser.",cantPlayVideo:"This video file cannot be played.",errorCode:"Error Code",liveStreamDown:"The live stream is either down or has ended.",protectedContent:"There was a problem providing access to protected content.",technicalError:"This video cannot be played because of a technical error."},exitFullscreen:"Exit Fullscreen",fullscreen:"Fullscreen",hd:"Quality",liveBroadcast:"Live",logo:"Logo",mute:"Mute",next:"Next",nextUp:"Next Up",notLive:"Not Live",off:"Off",pause:"Pause",play:"Play",playback:"Play",playbackRates:"Playback Rates",player:"Video Player",poweredBy:"Powered by",prev:"Previous",related:{autoplaymessage:"Next up in xx",heading:"More Videos"},replay:"Replay",rewind:"Rewind 10 Seconds",settings:"Settings",sharing:{copied:"Copied",email:"Email",embed:"Embed",heading:"Share",link:"Link"},slider:"Seek",stop:"Stop",unmute:"Unmute",videoInfo:"About This Video",volume:"Volume",volumeSlider:"Volume",shortcuts:{playPause:"Play/Pause",volumeToggle:"Mute/Unmute",fullscreenToggle:"Fullscreen/Exit Fullscreen",seekPercent:"Seek %",keyboardShortcuts:"Keyboard Shortcuts",increaseVolume:"Increase Volume",decreaseVolume:"Decrease Volume",seekForward:"Seek Forward",seekBackward:"Seek Backward",spacebar:"SPACE",captionsToggle:"Captions On/Off"},captionsStyles:{subtitleSettings:"Subtitle Settings",color:"Font Color",fontOpacity:"Font Opacity",userFontScale:"Font Size",fontFamily:"Font Family",edgeStyle:"Character Edge",backgroundColor:"Background Color",backgroundOpacity:"Background Opacity",windowColor:"Window Color",windowOpacity:"Window Opacity",white:"White",black:"Black",red:"Red",green:"Green",blue:"Blue",yellow:"Yellow",magenta:"Magenta",cyan:"Cyan",none:"None",raised:"Raised",depressed:"Depressed",uniform:"Uniform",dropShadow:"Drop Shadow"},disabled:"Disabled",enabled:"Enabled",reset:"Reset"}},function(t,e){var n,r,i={},o={},u=(n=function(){return document.head||document.getElementsByTagName("head")[0]},function(){return void 0===r&&(r=n.apply(this,arguments)),r});function a(t){var e=document.createElement("style");return e.type="text/css",e.setAttribute("data-jwplayer-id",t),function(t){u().appendChild(t)}(e),e}function c(t,e){var n,r,i,u=o[t];u||(u=o[t]={element:a(t),counter:0});var c=u.counter++;return n=u.element,i=function(){f(n,c,"")},(r=function(t){f(n,c,t)})(e.css),function(t){if(t){if(t.css===e.css&&t.media===e.media)return;r((e=t).css)}else i()}}t.exports={style:function(t,e){!function(t,e){for(var n=0;n<e.length;n++){var r=e[n],o=(i[t]||{})[r.id];if(o){for(var u=0;u<o.parts.length;u++)o.parts[u](r.parts[u]);for(;u<r.parts.length;u++)o.parts.push(c(t,r.parts[u]))}else{var a=[];for(u=0;u<r.parts.length;u++)a.push(c(t,r.parts[u]));i[t]=i[t]||{},i[t][r.id]={id:r.id,parts:a}}}}(e,function(t){for(var e=[],n={},r=0;r<t.length;r++){var i=t[r],o=i[0],u=i[1],a=i[2],c={css:u,media:a};n[o]?n[o].parts.push(c):e.push(n[o]={id:o,parts:[c]})}return e}(t))},clear:function(t,e){var n=i[t];if(!n)return;if(e){var r=n[e];if(r)for(var o=0;o<r.parts.length;o+=1)r.parts[o]();return}for(var u=Object.keys(n),a=0;a<u.length;a+=1)for(var c=n[u[a]],s=0;s<c.parts.length;s+=1)c.parts[s]();delete i[t]}};var s,l=(s=[],function(t,e){return s[t]=e,s.filter(Boolean).join("\n")});function f(t,e,n){if(t.styleSheet)t.styleSheet.cssText=l(e,n);else{var r=document.createTextNode(n),i=t.childNodes[e];i?t.replaceChild(r,i):t.appendChild(r)}}},function(t,e,n){"use strict";var r=n(0),i=n(17),o=n(32),u=n(13),a=n(7),c={html5:function(){return n.e(16).then(function(t){var e=n(152).default;return Object(u.a)(e),e}.bind(null,n)).catch(Object(a.b)(152))}};Object(r.j)(c,{shaka:function(){return n.e(17).then(function(t){var e=n(171).default;return Object(u.a)(e),e}.bind(null,n)).catch(Object(a.b)(154))},hlsjs:function(){return n.e(14).then(function(t){var e=n(165).default;return Object(u.a)(e),e}.bind(null,n)).catch(Object(a.b)(153))},flash:function(){return n.e(13).then(function(t){var e=n(173).default;return Object(u.a)(e),e}.bind(null,n)).catch(Object(a.b)(151))},hlsjsProgressive:function(){return n.e(15).then(function(t){var e=n(166).default;return Object(u.a)(e),e}.bind(null,n)).catch(Object(a.b)(155))}});var s=c;function l(t){this.config=t||{}}Object(r.j)(l.prototype,{load:function(t){var e=s[t],n=function(){return Promise.reject(new Error("Failed to load media"))};return e?e().then(function(){var e=o.a[t];return e||n()}):n()},providerSupports:function(t,e){return t.supports(e)},choose:function(t){if(t===Object(t))for(var e=i.a.length,n=0;n<e;n++){var r=i.a[n];if(this.providerSupports(r,t))return{priority:e-n-1,name:r.name,type:t.type,providerToCheck:r,provider:o.a[r.name]}}return{}}});var f=l;f.prototype.providerSupports=function(t,e){return t.supports(e,this.config.edition)};e.a=f},function(t,e,n){"use strict";var r=n(6),i=n(11);function o(t,e){var n=e.message,o=e.code,u=function(t,e,n,r){return'<div id="'+t+'" class="jw-error jw-reset"><div class="jw-error-msg jw-info-overlay jw-reset"><style>[id="'+t+'"].jw-error{background:#000;overflow:hidden;position:relative}[id="'+t+'"] .jw-error-msg{top:50%;left:50%;position:absolute;transform:translate(-50%,-50%)}[id="'+t+'"] .jw-error-text{text-align:start;color:#FFF;font:14px/1.35 Arial,Helvetica,sans-serif}</style><div class="jw-icon jw-reset"></div><div class="jw-info-container jw-reset"><div class="jw-error-text jw-reset-text" dir="auto">'+(e||"")+'<span class="jw-break jw-reset"></span>'+(r?("("+n+": "+r+")").replace(/\s+/g,"&nbsp;"):"")+"</div></div></div></div>"}(t.get("id"),n,t.get("localization").errors.errorCode,o.toString()),a=t.get("width"),c=t.get("height"),s=Object(r.e)(u);return Object(i.d)(s,{width:a.toString().indexOf("%")>0?a:a+"px",height:c.toString().indexOf("%")>0?c:c+"px"}),s}n.d(e,"a",function(){return o})},function(t,e,n){"use strict";function r(t){return t.slice&&"px"===t.slice(-2)&&(t=t.slice(0,-2)),t}function i(t,e){if(-1===e.toString().indexOf("%"))return 0;if("string"!=typeof t||!t)return 0;if(/^\d*\.?\d+%$/.test(t))return t;var n=t.indexOf(":");if(-1===n)return 0;var r=parseFloat(t.substr(0,n)),i=parseFloat(t.substr(n+1));return r<=0||i<=0?0:i/r*100+"%"}n.d(e,"b",function(){return r}),n.d(e,"a",function(){return i})},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=window.atob},function(t,e,n){"use strict";var r=n(4),i=n(2);function o(t){var e={zh:"Chinese",nl:"Dutch",en:"English",fr:"French",de:"German",it:"Italian",ja:"Japanese",pt:"Portuguese",ru:"Russian",es:"Spanish"};return e[t]?e[t]:t}function u(t){for(var e=[],n=0;n<Object(r.c)(t);n++){var i=t.childNodes[n];"jwplayer"===i.prefix&&"mediatypes"===Object(r.b)(i).toLowerCase()&&e.push(Object(r.d)(i))}return e}var a=function t(e,n){for(var a=[],c=0;c<Object(r.c)(e);c++){var s=e.childNodes[c];if("media"===s.prefix){if(!Object(r.b)(s))continue;switch(Object(r.b)(s).toLowerCase()){case"content":if(Object(i.j)(s,"duration")&&(n.duration=Object(i.g)(Object(i.j)(s,"duration"))),Object(i.j)(s,"url")){n.sources||(n.sources=[]);var l={file:Object(i.j)(s,"url"),type:Object(i.j)(s,"type"),width:Object(i.j)(s,"width"),label:Object(i.j)(s,"label")},f=u(s);f.length&&(l.mediaTypes=f),n.sources.push(l)}Object(r.c)(s)>0&&(n=t(s,n));break;case"title":n.title=Object(r.d)(s);break;case"description":n.description=Object(r.d)(s);break;case"guid":n.mediaid=Object(r.d)(s);break;case"thumbnail":n.image||(n.image=Object(i.j)(s,"url"));break;case"group":t(s,n);break;case"subtitle":var d={file:Object(i.j)(s,"url"),kind:"captions"};Object(i.j)(s,"lang").length>0&&(d.label=o(Object(i.j)(s,"lang"))),a.push(d)}}}n.tracks||(n.tracks=[]);for(var p=0;p<a.length;p++)n.tracks.push(a[p]);return n},c=n(12),s=function(t,e){for(var n="default",o=[],u=[],a=0;a<t.childNodes.length;a++){var s=t.childNodes[a];if("jwplayer"===s.prefix){var l=Object(r.b)(s);"source"===l?(delete e.sources,o.push({file:Object(i.j)(s,"file"),default:Object(i.j)(s,n),label:Object(i.j)(s,"label"),type:Object(i.j)(s,"type")})):"track"===l?(delete e.tracks,u.push({file:Object(i.j)(s,"file"),default:Object(i.j)(s,n),kind:Object(i.j)(s,"kind"),label:Object(i.j)(s,"label")})):(e[l]=Object(c.serialize)(Object(r.d)(s)),"file"===l&&e.sources&&delete e.sources)}e.file||(e.file=e.link)}if(o.length){e.sources=[];for(var f=0;f<o.length;f++){var d=o[f];d.file.length>0&&(d[n]="true"===o[f][n],d.label||delete d.label,e.sources.push(d))}}if(u.length){e.tracks=[];for(var p=0;p<u.length;p++){var h=u[p];h.file&&h.file.length>0&&(h[n]="true"===u[p][n],h.kind=u[p].kind.length?u[p].kind:"captions",h.label||delete h.label,e.tracks.push(h))}}return e},l=n(28);function f(t){var e=[];e.feedData={};for(var n=0;n<Object(r.c)(t);n++){var i=Object(r.a)(t,n);if("channel"===Object(r.b)(i).toLowerCase())for(var o=0;o<Object(r.c)(i);o++){var u=Object(r.a)(i,o),a=Object(r.b)(u).toLowerCase();"item"===a?e.push(d(u)):a&&(e.feedData[a]=Object(r.d)(u))}}return e}function d(t){for(var e={},n=0;n<t.childNodes.length;n++){var o=t.childNodes[n],u=Object(r.b)(o);if(u)switch(u.toLowerCase()){case"enclosure":e.file=Object(i.j)(o,"url");break;case"title":e.title=Object(r.d)(o);break;case"guid":e.mediaid=Object(r.d)(o);break;case"pubdate":e.date=Object(r.d)(o);break;case"description":e.description=Object(r.d)(o);break;case"link":e.link=Object(r.d)(o);break;case"category":e.tags?e.tags+=Object(r.d)(o):e.tags=Object(r.d)(o)}}return new l.a(s(t,a(t,e)))}n.d(e,"a",function(){return f})},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r="function"==typeof console.log?console.log.bind(console):function(){}},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(44);function i(t){for(var e=new Array(Math.ceil(t.length/4)),n=0;n<e.length;n++)e[n]=t.charCodeAt(4*n)+(t.charCodeAt(4*n+1)<<8)+(t.charCodeAt(4*n+2)<<16)+(t.charCodeAt(4*n+3)<<24);return e}function o(t,e){if(t=String(t),e=String(e),0===t.length)return"";for(var n,o,u,a=i(Object(r.a)(t)),c=i((n=e,unescape(encodeURIComponent(n))).slice(0,16)),s=a.length,l=a[s-1],f=a[0],d=2654435769*Math.floor(6+52/s);d;){u=d>>>2&3;for(var p=s-1;p>=0;p--)o=((l=a[p>0?p-1:s-1])>>>5^f<<2)+(f>>>3^l<<4)^(d^f)+(c[3&p^u]^l),f=a[p]-=o;d-=2654435769}return function(t){try{return decodeURIComponent(escape(t))}catch(e){return t}}(function(t){for(var e=new Array(t.length),n=0;n<t.length;n++)e[n]=String.fromCharCode(255&t[n],t[n]>>>8&255,t[n]>>>16&255,t[n]>>>24&255);return e.join("")}(a).replace(/\0+$/,""))}},function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"a",function(){return i});var r=window.requestAnimationFrame||function(t){return setTimeout(t,17)},i=window.cancelAnimationFrame||clearTimeout},function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"a",function(){return i});var r={audioMode:!1,flashBlocked:!1,itemMeta:{},playbackRate:1,playRejected:!1,state:n(3).nb,itemReady:!1,controlsEnabled:!1},i={position:0,duration:0,buffer:0,currentTime:0}},function(t,e,n){"use strict";n.d(e,"a",function(){return l}),n.d(e,"c",function(){return f});var r=n(0),i=n(43),o=n(19),u=n(12),a=n(5),c=n(39),s=n(14),l={autoPause:{viewability:!1,pauseAds:!1},autostart:!1,bandwidthEstimate:null,bitrateSelection:null,castAvailable:!1,controls:!0,cues:[],defaultPlaybackRate:1,displaydescription:!0,displaytitle:!0,displayPlaybackLabel:!1,enableShortcuts:!0,height:360,intl:{},item:0,language:"en",liveTimeout:null,localization:c.a,mute:!1,nextUpDisplay:!0,playbackRateControls:!1,playbackRates:[.5,1,1.25,1.5,2],renderCaptionsNatively:!1,repeat:!1,stretching:"uniform",volume:90,width:640};function f(t){return t?t<5?5:t>30?30:t:25}e.b=function(t,e){var d=Object(r.j)({},(window.jwplayer||{}).defaults,e,t);!function(t){Object.keys(t).forEach(function(e){"id"!==e&&(t[e]=Object(u.serialize)(t[e]))})}(d);var p=d.forceLocalizationDefaults?l.language:Object(s.e)(),h=Object(s.j)(d.intl);d.localization=Object(s.a)(c.a,Object(s.c)(d,h,p));var v=Object(r.j)({},l,d);"."===v.base&&(v.base=Object(o.getScriptPath)("jwplayer.js")),v.base=(v.base||Object(o.loadFrom)()).replace(/\/?$/,"/"),n.p=v.base,v.width=Object(i.b)(v.width),v.height=Object(i.b)(v.height),v.aspectratio=Object(i.a)(v.aspectratio,v.width),v.volume=Object(r.z)(v.volume)?Math.min(Math.max(0,v.volume),100):l.volume,v.mute=!!v.mute,v.language=p,v.intl=h;var g=v.playlistIndex;g&&(v.item=g),Object(r.v)(v.item)||(v.item=0);var m=d.autoPause;m&&(v.autoPause.viewability=!("viewability"in m)||!!m.viewability);var b=v.playbackRateControls;if(b){var y=v.playbackRates;Array.isArray(b)&&(y=b),(y=y.filter(function(t){return Object(r.v)(t)&&t>=.25&&t<=4}).map(function(t){return Math.round(100*t)/100})).indexOf(1)<0&&y.push(1),y.sort(),v.playbackRateControls=!0,v.playbackRates=y}(!v.playbackRateControls||v.playbackRates.indexOf(v.defaultPlaybackRate)<0)&&(v.defaultPlaybackRate=1),v.playbackRate=v.defaultPlaybackRate,v.aspectratio||delete v.aspectratio;var j=v.playlist;if(j)Array.isArray(j.playlist)&&(v.feedData=j,v.playlist=j.playlist);else{var w=Object(r.D)(v,["title","description","type","mediaid","image","images","file","sources","tracks","preload","duration"]);v.playlist=[w]}v.qualityLabels=v.qualityLabels||v.hlslabels,delete v.duration;var O=v.liveTimeout;null!==O&&(Object(r.z)(O)?0!==O&&(O=Math.max(30,O)):O=null,v.liveTimeout=O);var k,C,x=parseFloat(v.bandwidthEstimate),P=parseFloat(v.bitrateSelection);return v.bandwidthEstimate=Object(r.z)(x)?x:(k=v.defaultBandwidthEstimate,C=parseFloat(k),Object(r.z)(C)?Math.max(C,1):l.bandwidthEstimate),v.bitrateSelection=Object(r.z)(P)?P:l.bitrateSelection,v.liveSyncDuration=f(v.liveSyncDuration),v.backgroundLoading=Object(r.r)(v.backgroundLoading)?v.backgroundLoading:a.Features.backgroundLoading,v}},function(t,e,n){"use strict";n.r(e);var r=n(0),i=setTimeout;function o(){}function u(t){if(!(this instanceof u))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(t,this)}function a(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,u._immediateFn(function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null!==n){var r;try{r=n(t._value)}catch(t){return void s(e.promise,t)}c(e.promise,r)}else(1===t._state?c:s)(e.promise,t._value)})):t._deferreds.push(e)}function c(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof u)return t._state=3,t._value=e,void l(t);if("function"==typeof n)return void d((r=n,i=e,function(){r.apply(i,arguments)}),t)}t._state=1,t._value=e,l(t)}catch(e){s(t,e)}var r,i}function s(t,e){t._state=2,t._value=e,l(t)}function l(t){2===t._state&&0===t._deferreds.length&&u._immediateFn(function(){t._handled||u._unhandledRejectionFn(t._value)});for(var e=0,n=t._deferreds.length;e<n;e++)a(t,t._deferreds[e]);t._deferreds=null}function f(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function d(t,e){var n=!1;try{t(function(t){n||(n=!0,c(e,t))},function(t){n||(n=!0,s(e,t))})}catch(t){if(n)return;n=!0,s(e,t)}}u.prototype.catch=function(t){return this.then(null,t)},u.prototype.then=function(t,e){var n=new this.constructor(o);return a(this,new f(t,e,n)),n},u.prototype.finally=function(t){var e=this.constructor;return this.then(function(n){return e.resolve(t()).then(function(){return n})},function(n){return e.resolve(t()).then(function(){return e.reject(n)})})},u.all=function(t){return new u(function(e,n){if(!t||void 0===t.length)throw new TypeError("Promise.all accepts an array");var r=Array.prototype.slice.call(t);if(0===r.length)return e([]);var i=r.length;function o(t,u){try{if(u&&("object"==typeof u||"function"==typeof u)){var a=u.then;if("function"==typeof a)return void a.call(u,function(e){o(t,e)},n)}r[t]=u,0==--i&&e(r)}catch(t){n(t)}}for(var u=0;u<r.length;u++)o(u,r[u])})},u.resolve=function(t){return t&&"object"==typeof t&&t.constructor===u?t:new u(function(e){e(t)})},u.reject=function(t){return new u(function(e,n){n(t)})},u.race=function(t){return new u(function(e,n){for(var r=0,i=t.length;r<i;r++)t[r].then(e,n)})},u._immediateFn="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){i(t,0)},u._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};var p=u;window.Promise||(window.Promise=p);var h=n(19),v=n(15),g=n(17),m=n(13),b={availableProviders:g.a,registerProvider:m.a},y=n(24);b.registerPlugin=function(t,e,n){"jwpsrv"!==t&&Object(y.b)(t,e,n)};var j=b,w=n(29),O=n(16),k=n(5),C=n(64),x=n(3),P=n(30),S=n(9),T=n(36),E=0;function A(t,e){var n=new C.a(e);return n.on(x.hb,function(e){t._qoe.tick("ready"),e.setupTime=t._qoe.between("setup","ready")}),n.on("all",function(e,n){t.trigger(e,n)}),n}function _(t,e){var n=t.plugins;Object.keys(n).forEach(function(t){delete n[t]}),e.get("setupConfig")&&t.trigger("remove"),t.off(),e.playerDestroy(),e.getContainer().removeAttribute("data-jwplayer-id")}function F(t){var e=++E,n=t.id||"player-"+e,i=new P.a,o={},u=A(this,t);i.tick("init"),t.setAttribute("data-jwplayer-id",n),Object.defineProperties(this,{id:{enumerable:!0,get:function(){return n}},uniqueId:{enumerable:!0,get:function(){return e}},plugins:{enumerable:!0,get:function(){return o}},_qoe:{enumerable:!0,get:function(){return i}},version:{enumerable:!0,get:function(){return w.a}},Events:{enumerable:!0,get:function(){return S.a}},utils:{enumerable:!0,get:function(){return T.a}},_:{enumerable:!0,get:function(){return r.f}}}),Object(r.j)(this,{_events:{},setup:function(e){return i.clear("ready"),i.tick("setup"),_(this,u),(u=A(this,t)).init(e,this),this.on(e.events,null,this)},remove:function(){return function(t){for(var e=v.a.length;e--;)if(v.a[e].uniqueId===t.uniqueId){v.a.splice(e,1);break}}(this),_(this,u),this},qoe:function(){var t=u.getItemQoe();return{setupTime:this._qoe.between("setup","ready"),firstFrame:t.getFirstFrame?t.getFirstFrame():null,player:this._qoe.dump(),item:t.dump()}},addCues:function(t){return Array.isArray(t)&&u.addCues(t),this},getAudioTracks:function(){return u.getAudioTracks()},getBuffer:function(){return u.get("buffer")},getCaptions:function(){return u.get("captions")},getCaptionsList:function(){return u.getCaptionsList()},getConfig:function(){return u.getConfig()},getContainer:function(){return u.getContainer()},getControls:function(){return u.get("controls")},getCues:function(){return u.get("cues")},getCurrentAudioTrack:function(){return u.getCurrentAudioTrack()},getCurrentCaptions:function(){return u.getCurrentCaptions()},getCurrentQuality:function(){return u.getCurrentQuality()},getCurrentTime:function(){return u.get("currentTime")},getDuration:function(){return u.get("duration")},getEnvironment:function(){return k},getFullscreen:function(){return u.get("fullscreen")},getHeight:function(){return u.getHeight()},getItemMeta:function(){return u.get("itemMeta")||{}},getMute:function(){return u.getMute()},getPlaybackRate:function(){return u.get("playbackRate")},getPlaylist:function(){return u.get("playlist")},getPlaylistIndex:function(){return u.get("item")},getPlaylistItem:function(t){if(!T.a.exists(t))return u.get("playlistItem");var e=this.getPlaylist();return e?e[t]:null},getPosition:function(){return u.get("position")},getProvider:function(){return u.getProvider()},getQualityLevels:function(){return u.getQualityLevels()},getSafeRegion:function(t){return void 0===t&&(t=!0),u.getSafeRegion(t)},getState:function(){return u.getState()},getStretching:function(){return u.get("stretching")},getViewable:function(){return u.get("viewable")},getVisualQuality:function(){return u.getVisualQuality()},getVolume:function(){return u.get("volume")},getWidth:function(){return u.getWidth()},setCaptions:function(t){return u.setCaptions(t),this},setConfig:function(t){return u.setConfig(t),this},setControls:function(t){return u.setControls(t),this},setCurrentAudioTrack:function(t){u.setCurrentAudioTrack(t)},setCurrentCaptions:function(t){u.setCurrentCaptions(t)},setCurrentQuality:function(t){u.setCurrentQuality(t)},setFullscreen:function(t){return u.setFullscreen(t),this},setMute:function(t){return u.setMute(t),this},setPlaybackRate:function(t){return u.setPlaybackRate(t),this},setPlaylistItem:function(t,e){return u.setPlaylistItem(t,e),this},setCues:function(t){return Array.isArray(t)&&u.setCues(t),this},setVolume:function(t){return u.setVolume(t),this},load:function(t,e){return u.load(t,e),this},play:function(t){return u.play(t),this},pause:function(t){return u.pause(t),this},playToggle:function(t){switch(this.getState()){case x.qb:case x.kb:return this.pause(t);default:return this.play(t)}},seek:function(t,e){return u.seek(t,e),this},playlistItem:function(t,e){return u.playlistItem(t,e),this},playlistNext:function(t){return u.playlistNext(t),this},playlistPrev:function(t){return u.playlistPrev(t),this},next:function(t){return u.next(t),this},castToggle:function(){return u.castToggle(),this},createInstream:function(){return u.createInstream()},stop:function(){return u.stop(),this},resize:function(t,e){return u.resize(t,e),this},addButton:function(t,e,n,r,i){return u.addButton(t,e,n,r,i),this},removeButton:function(t){return u.removeButton(t),this},attachMedia:function(){return u.attachMedia(),this},detachMedia:function(){return u.detachMedia(),this},isBeforeComplete:function(){return u.isBeforeComplete()},isBeforePlay:function(){return u.isBeforePlay()},setPlaylistItemCallback:function(t,e){u.setItemCallback(t,e)},removePlaylistItemCallback:function(){u.setItemCallback(null)},getPlaylistItemPromise:function(t){return u.getItemPromise(t)},getFloating:function(){return!!u.get("isFloating")},setFloating:function(t){u.setConfig({floating:{mode:t?"always":"never"}})}})}Object(r.j)(F.prototype,{on:function(t,e,n){return S.c.call(this,t,e,n)},once:function(t,e,n){return S.d.call(this,t,e,n)},off:function(t,e,n){return S.b.call(this,t,e,n)},trigger:function(t,e){return(e=r.f.isObject(e)?Object(r.j)({},e):{}).type=t,O.a.debug?S.e.call(this,t,e):S.f.call(this,t,e)},getPlugin:function(t){return this.plugins[t]},addPlugin:function(t,e){this.plugins[t]=e,this.on("ready",e.addToPlayer),e.resize&&this.on("resize",e.resizeHandler)},registerPlugin:function(t,e,n){Object(y.b)(t,e,n)},getAdBlock:function(){return!1},playAd:function(t){},pauseAd:function(t){},skipAd:function(){}}),n.p=Object(h.loadFrom)();var I=function(t){var e,n;if(t?"string"==typeof t?(e=M(t))||(n=document.getElementById(t)):"number"==typeof t?e=v.a[t]:t.nodeType&&(e=M((n=t).id||n.getAttribute("data-jwplayer-id"))):e=v.a[0],e)return e;if(n){var r=new F(n);return v.a.push(r),r}return{registerPlugin:y.b}};function M(t){for(var e=0;e<v.a.length;e++)if(v.a[e].id===t)return v.a[e];return null}function L(t){Object.defineProperties(t,{api:{get:function(){return j},set:function(){}},version:{get:function(){return w.a},set:function(){}},debug:{get:function(){return O.a.debug},set:function(t){O.a.debug=!!t}}})}L(I);var N=I,R=n(34),D=n(25),B=n(23),z=n(47),q=n(45),V=n(31),H=r.f.extend,Q={};Q._=r.f,Q.utils=Object(r.j)(T.a,{key:D.b,extend:H,scriptloader:B.a,rssparser:{parse:q.a},tea:z.a,UI:R.a}),Q.utils.css.style=Q.utils.style,Q.vid=V.a;var W=Q,X=n(63),U=/^(?:on(?:ce)?|off|trigger)$/;function Y(t){var e={};J(this,t,t,e),J(this,t,F.prototype,e)}function J(t,e,n,r){var i=Object.keys(n);i.forEach(function(o){"function"==typeof n[o]&&"Events"!==o?t[o]=function t(e,n,r,i,o){return function(){var u=Array.prototype.slice.call(arguments),a=u[0],c=n._trackCallQueue||(n._trackCallQueue=[]),s=U.test(r),l=s&&u[1]&&u[1]._callback,f=o.edition||K(n,o,"edition"),d="free"===f;if(d){var p=["addButton","addCues","detachMedia","load","next","pause","play","playlistItem","playlistNext","playlistPrev","playToggle","resize","seek","setCaptions","setConfig","setControls","setCues","setFullscreen","setMute","setPlaybackRate","setPlaylistItem","setVolume","stop"];if(p.indexOf(r)>-1)return Z(r),e;var h=["createInstream","setCurrentAudioTrack","setCurrentCaptions","setCurrentQuality"];if(h.indexOf(r)>-1)return Z(r),null}if(l||c.push([r,a]),s)return tt(n,c),n[r].apply(e,u);$(r,u);var v=n[r].apply(n,u);return"remove"===r?n.off.call(e):"setup"===r&&(n.off.call(e),n.off(a.events,null,n),n.on.call(e,a.events,null,e),n.on("all",function(r,u){if("ready"===r){var a=Object.keys(n).filter(function(t){return"_"!==t[0]&&-1===i.indexOf(t)&&"function"==typeof n[t]}),s=i.concat(a);a.forEach(function(r){e[r]=t(e,n,r,s,o)})}n.trigger.call(e,r,u),tt(n,c)})),tt(n,c),v===n?e:v}}(t,e,o,i,r):"_events"===o?t._events={}:Object.defineProperty(t,o,{enumerable:!0,get:function(){return n[o]}})})}function K(t,e,n){var r=t.getConfig()[n];return e[n]=r,r}function Z(t){console.warn("The API method jwplayer()."+t+"() is disabled in the free edition of JW Player.")}function $(t,e){var n={reason:Object(X.a)()?"interaction":"external"};switch(t){case"play":case"pause":case"playToggle":case"playlistNext":case"playlistPrev":case"next":e[0]=n;break;case"seek":case"playlistItem":e[1]=n}}function G(t,e,n){try{var r=function(t,e){switch(t){case"setup":return!!e;case"getSafeRegion":case"pauseAd":case"setControls":case"setFullscreen":case"setMute":return!!e===e?e:void 0;case"setPlaylistItem":case"getPlaylistItem":return(0|e)===e?e:void 0;case"setPlaybackRate":case"setVolume":return Number(e);case"setConfig":return Object.keys(Object(e)).join(",");case"on":case"once":case"off":case"trigger":case"getPlugin":case"addPlugin":case"registerPlugin":return""+e}return null}(e,n);t.trackExternalAPIUsage(e,r)}catch(t){O.a.debug&&console.warn(t)}}function tt(t,e){if(e.length){var n=t.getPlugin("jwpsrv");n&&n.trackExternalAPIUsage&&(e.forEach(function(t){G(n,t[0],t[1])}),e.length=0)}}var et=window;Object(r.j)(N,W);var nt=function(t){var e=N(t);return e.uniqueId?e._publicApi||(e._publicApi=new Y(e)):e};Object(r.j)(nt,W),L(nt),"function"==typeof et.define&&et.define.amd&&et.define([],function(){return nt});var rt=nt;et.jwplayer&&(rt=et.jwplayer);e.default=rt},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(t,e,n){return Math.max(Math.min(t,n),e)}},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return o});var r=12;function i(){try{var t=window.crypto||window.msCrypto;if(t&&t.getRandomValues)return t.getRandomValues(new Uint32Array(1))[0].toString(36)}catch(t){}return Math.random().toString(36).slice(2,9)}function o(t){for(var e="";e.length<t;)e+=i();return e.slice(0,t)}},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(t){var e,n;function r(){var e;return(e=t.call(this)||this).attributes=Object.create(null),e}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=r.prototype;return i.addAttributes=function(t){var e=this;Object.keys(t).forEach(function(n){e.add(n,t[n])})},i.add=function(t,e){var n=this;Object.defineProperty(this,t,{get:function(){return n.attributes[t]},set:function(e){return n.set(t,e)},enumerable:!1}),this.attributes[t]=e},i.get=function(t){return this.attributes[t]},i.set=function(t,e){if(this.attributes[t]!==e){var n=this.attributes[t];this.attributes[t]=e,this.trigger("change:"+t,this,e,n)}},i.clone=function(){var t={},e=this.attributes;if(e)for(var n in e)t[n]=e[n];return t},i.change=function(t,e,n){this.on("change:"+t,e,n);var r=this.get(t);return e.call(n,this,r,r),this},r}(n(9).a)},function(t,e,n){"use strict";function r(t,e,n){var r=[],i={};function o(){for(;r.length>0;){var e=r.shift(),n=e.command,o=e.args;(i[n]||t[n]).apply(t,o)}}e.forEach(function(e){var u=t[e];i[e]=u,t[e]=function(){for(var t=arguments.length,i=new Array(t),a=0;a<t;a++)i[a]=arguments[a];n()?r.push({command:e,args:i}):(o(),u&&u.apply(this,i))}}),Object.defineProperty(this,"queue",{enumerable:!0,get:function(){return r}}),this.flush=o,this.empty=function(){r.length=0},this.off=function(){e.forEach(function(e){var n=i[e];n&&(t[e]=n,delete i[e])})},this.destroy=function(){this.off(),this.empty()}}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";n.d(e,"c",function(){return r}),n.d(e,"b",function(){return i}),n.d(e,"a",function(){return o});var r=4,i=5,o=1},function(t,e,n){"use strict";var r=n(3),i=function(){},o=function(){return!1},u={name:"default"},a={supports:o,play:i,pause:i,preload:i,load:i,stop:i,volume:i,mute:i,seek:i,resize:i,remove:i,destroy:i,setVisibility:i,setFullscreen:i,getFullscreen:o,supportsFullscreen:o,getContainer:i,setContainer:i,getName:function(){return u},getQualityLevels:i,getCurrentQuality:i,setCurrentQuality:i,getAudioTracks:i,getCurrentAudioTrack:i,setCurrentAudioTrack:i,getSeekRange:function(){return{start:0,end:this.getDuration()}},setPlaybackRate:i,getPlaybackRate:function(){return 1},getBandwidthEstimate:function(){return null},getLiveLatency:function(){return null},setControls:i,attachMedia:i,detachMedia:i,init:i,setState:function(t){this.state=t,this.trigger(r.bb,{newstate:t})},sendMediaType:function(t){var e=t[0],n=e.type,i=e.mimeType,o="aac"===n||"mp3"===n||"mpeg"===n||i&&0===i.indexOf("audio/");this.trigger(r.T,{mediaType:o?"audio":"video"})},getDuration:function(){return 0},trigger:i};e.a=a},function(t,e,n){"use strict";var r=n(0),i=n(23),o=n(12),u=n(2),a=n(1),c=n(20),s=function(t){if("string"==typeof t){var e=(t=t.split("?")[0]).indexOf("://");if(e>0)return 0;var n=t.indexOf("/"),r=Object(u.a)(t);return!(e<0&&n<0)||r&&isNaN(r)?1:2}};var l=function(t){this.url=t,this.promise_=null};Object.defineProperties(l.prototype,{promise:{get:function(){return this.promise_||this.load()},set:function(){}}}),Object(r.j)(l.prototype,{load:function(){var t=this,e=this.promise_;if(!e){if(2===s(this.url))e=Promise.resolve(this);else{var n=new i.a(function(t){switch(s(t)){case 0:return t;case 1:return Object(o.getAbsolutePath)(t,window.location.href)}}(this.url));this.loader=n,e=n.load().then(function(){return t})}this.promise_=e}return e},registerPlugin:function(t,e,n){this.name=t,this.target=e,this.js=n},getNewInstance:function(t,e,n){var r=this.js;if("function"!=typeof r)throw new a.t(null,Object(c.b)(this.url)+100);var i=new r(t,e,n);return i.addToPlayer=function(){var e=t.getContainer().querySelector(".jw-overlays");e&&(n.left=e.style.left,n.top=e.style.top,e.appendChild(n),i.displayArea=e)},i.resizeHandler=function(){var t=i.displayArea;t&&i.resize(t.clientWidth,t.clientHeight)},i}}),e.a=l},function(t,e,n){"use strict";var r=n(0),i=n(3),o=n(4),u=n(45),a=n(27),c=n(9),s=n(1);e.a=function(){var t=Object(r.j)(this,c.a);function e(e){try{var a,c=e.responseXML?e.responseXML.childNodes:null,l=null;if(c){for(var f=0;f<c.length&&8===(l=c[f]).nodeType;f++);if(l&&"xml"===Object(o.b)(l)&&(l=l.nextSibling),l&&"rss"===Object(o.b)(l)){var d=Object(u.a)(l);a=Object(r.j)({playlist:d},d.feedData)}}if(!a)try{var p=JSON.parse(e.responseText);if(Array.isArray(p))a={playlist:p};else{if(!Array.isArray(p.playlist))throw Error("Playlist is not an array");a=p}}catch(t){throw new s.t(s.p,621,t)}t.trigger(i.eb,a)}catch(t){n(t)}}function n(e){e instanceof s.t&&!e.code&&(e=new s.t(s.p,0)),t.trigger(i.w,e)}this.load=function(t){Object(a.b)(t,e,function(t,e,r,i){n(i)})},this.destroy=function(){this.off()}}},function(t,e,n){"use strict";n.d(e,"b",function(){return i}),n.d(e,"a",function(){return u});var r=n(56);function i(){for(var t=r.c,e=[],n=[],i=0;i<t;i++){var a=u();e.push(a),n.push(a),o(a)}var c=n.shift(),s=n.shift(),l=!1;return{primed:function(){return l},prime:function(){e.forEach(o),l=!0},played:function(){l=!0},getPrimedElement:function(){return n.shift()||null},getAdElement:function(){return c},getTestElement:function(){return s},clean:function(t){if(t.src){t.removeAttribute("src");try{t.load()}catch(t){}}},recycle:function(t){t&&!n.some(function(e){return e===t})&&(this.clean(t),n.push(t))},syncVolume:function(t){var n=Math.min(Math.max(0,t/100),1);e.forEach(function(t){t.volume=n})},syncMute:function(t){e.forEach(function(e){e.muted=t})}}}function o(t){t.src||t.load()}function u(t){var e=document.createElement("video");return e.className="jw-video jw-reset",e.setAttribute("tabindex","-1"),e.setAttribute("disableRemotePlayback",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("playsinline",""),t&&Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])}),e}},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(0);function i(t,e){return Object(r.j)({},e,{prime:function(){t.src||t.load()},getPrimedElement:function(){return t},clean:function(){e.clean(t)},recycle:function(){e.clean(t)}})}},function(t,e,n){"use strict";e.a="hidden"in document?function(){return!document.hidden}:"webkitHidden"in document?function(){return!document.webkitHidden}:function(){return!0}},function(t,e,n){"use strict";function r(t){return!!(t=t||window.event)&&/^(?:mouse|pointer|touch|gesture|click|key)/.test(t.type)}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";var r=n(0),i=n(55),o=n(50),u=n(19),a=n(10),c=n(51),s=n(25),l=n(21);function f(t,e){var n=t.querySelector(e);if(n)return n.getAttribute("content")}var d=n(67),p=n.n(d),h=n(66);function v(t){return"string"==typeof t&&/^\/\/(?:content\.jwplatform|cdn\.jwplayer)\.com\//.test(t)}function g(t){return"https:"+t}function m(t,e){var n="file:"===window.location.protocol?"https:":"",r={bidding:"//ssl.p.jwpcdn.com/player/v/8.17.1/bidding.js",jwpsrv:"//ssl.p.jwpcdn.com/player/v/8.17.1/jwpsrv.js",dai:"//ssl.p.jwpcdn.com/player/plugins/dai/v/0.4.13/dai.js",vast:"//ssl.p.jwpcdn.com/player/plugins/vast/v/8.8.1/vast.js",googima:e?"//ssl.p.jwpcdn.com/player/v/8.17.1/googimanvmp.js":"//ssl.p.jwpcdn.com/player/plugins/googima/v/8.8.1/googima.js",freewheel:"//ssl.p.jwpcdn.com/player/plugins/freewheel/v/2.2.11/freewheel.js",gapro:"//ssl.p.jwpcdn.com/player/plugins/gapro/v/2.1.5/gapro.js"}[t];return r?n+r:""}function b(t,e,n){e&&(t[e.client||m(n)]=e,delete e.client)}var y=function(t,e){var i,d,y,j=Object(o.b)(t,e),w=j.key||c.default.key,O=new s.b(w),k=O.edition();if("free"===O.edition()&&(j=Object(r.j)({skin:{active:"#ff0046",timeslider:{progress:"none"}},logo:{position:"control-bar",file:p.a}},o.a,Object(r.D)(j,["analytics","aspectratio","base","file","height","playlist","sources","width"]))),j.key=w,j.edition=k,j.error=O.error(),j.generateSEOMetadata=j.generateSEOMetadata||!1,"unlimited"===k){var C=Object(u.getScriptPath)("jwplayer.js");if(!C)throw new Error("Error setting up player: Could not locate jwplayer.js script tag");n.p=C}if(j.flashplayer=function(t){var e=t.flashplayer;e||(e=(Object(u.getScriptPath)("jwplayer.js")||t.base)+"jwplayer.flash.swf");"http:"===window.location.protocol&&(e=e.replace(/^https/,"http"));return e}(j),j.related=function(t){var e=Object(l.a)(t.edition),n=t.related,i=!e("discovery")||n!==Object(n),o=!n||"none"!==n.displayMode,u=n||{},a=void 0===u.oncomplete?"none":u.oncomplete,c=u.autoplaytimer;!1===a||t.repeat?a="hide":"none"===a&&(c=0);var s="autoplay"===a&&c<=0||"none"===a;return Object(r.j)({},n,{disableRelated:i,showButton:o,oncomplete:a,autoplaytimer:c,shouldAutoAdvance:s})}(j),j.ab&&(j.ab=function(t){var e=t.ab;e.clone&&(e=e.clone());return Object.keys(e.tests).forEach(function(n){e.tests[n].forEach(function(e){e.addConfig&&e.addConfig(t,e.selection)})}),e}(j)),j.plugins=function(t){var e=Object(r.j)({},t.plugins),n=Object(l.a)(t.edition);if(n("ads")){var i=Object(r.j)({},t.advertising),o=i.client;if(o){var u=m(o,t.__ab_jwIMA)||o;e[u]=i,delete i.client}i.bids&&b(e,i.bids,"bidding")}if(n("jwpsrv")){var a=t.analytics;a!==Object(a)&&(a={}),b(e,a,"jwpsrv")}return b(e,t.ga,"gapro"),e}(j),i=j.playlist,Object(r.x)(i)&&i.indexOf("__CONTEXTUAL__")>-1&&(j.playlist=function(t,e){var n=(t.querySelector("title")||{}).textContent,r=f(t,'meta[property="og:title"]'),i=encodeURIComponent(r||n||""),o=f(t,'meta[property="og:description"]')||f(t,'meta[name="description"]');return o&&(i+="&page_description="+encodeURIComponent(o)),e.replace("__CONTEXTUAL__",i)}(document,j.playlist),j.contextual=!0),Object(a.isFileProtocol)()){var x=j,P=x.playlist,S=x.related;v(P)&&(j.playlist=g(P)),S&&v(S.file)&&(S.file=g(S.file))}return j.__abSendDomainToFeeds&&(y=j.playlist,/\.jwplatform.com|\.jwplayer.com/.test(y))&&(j.playlist=(d=j.playlist,d+=(-1!==d.indexOf("?")?"&":"?")+"page_domain="+encodeURIComponent(Object(h.a)()))),j},j=n(7),w=n(28),O=n(22),k=n(17),C=n(13),x=n(38),P=n(1),S=null;function T(t){return S||(S=function(t){var e=t.get("controls"),r=E(),i=function(t,e){var n=t.get("playlist");if(Array.isArray(n)&&n.length)for(var r=Object(O.f)(t.get("item"),n.length),i=Object(O.c)(Object(w.a)(n[r]),t),o=0;o<i.length;o++)for(var u=i[o],a=t.getProviders(),c=0;c<k.a.length;c++){var s=k.a[c];if(a.providerSupports(s,u))return s.name===e}return!1}(t,"html5");if(e&&r&&i)return o=n.e(7).then(function(t){n(148);var e=n(71).default;return x.a.controls=n(70).default,Object(C.a)(n(152).default),e}.bind(null,n)).catch(Object(j.b)(P.v+105)),j.a.html5=o,o;var o;if(e&&i)return function(){var t=n.e(5).then(function(t){var e=n(71).default;return x.a.controls=n(70).default,Object(C.a)(n(152).default),e}.bind(null,n)).catch(Object(j.b)(P.v+104));return j.a.html5=t,t}();if(e&&r)return n.e(6).then(function(t){n(148);var e=n(71).default;return x.a.controls=n(70).default,e}.bind(null,n)).catch(Object(j.b)(P.v+103));if(e)return n.e(4).then(function(t){var e=n(71).default;return x.a.controls=n(70).default,e}.bind(null,n)).catch(Object(j.b)(P.v+102));return(E()?n.e(9).then(function(t){return n(148)}.bind(null,n)).catch(Object(j.b)(P.v+120)):Promise.resolve()).then(j.d)}(t)),S}function E(){var t=window.IntersectionObserverEntry;return!(t&&"IntersectionObserver"in window&&"intersectionRatio"in t.prototype)}var A=n(24),_=n(3),F=n(59),I=n(23),M=n(14);function L(t){var e=t.get("playlist");return new Promise(function(n,r){if("string"!=typeof e){var i=t.get("feedData")||{};return N(t,e,i),n()}var o=new F.a;o.on(_.eb,function(e){var r=e.playlist;delete e.playlist,N(t,r,e),n()}),o.on(_.w,function(e){N(t,[],{}),r(Object(P.B)(e,P.w))}),o.load(e)})}function N(t,e,n){var r=t.attributes;r.playlist=Object(O.a)(e),r.feedData=n}function R(t){return t.attributes._destroyed}var D=n(35),B=function(t,e){return/isAMP/.test(document.location.search)?n.e(1).then(function(r){var i=new(0,n(167).default)(e);return t.attributes.ampController=i,Promise.resolve()}.bind(null,n)).catch(Object(j.b)(P.v+130)):Promise.resolve()};function z(t){return H(t)?Promise.resolve():L(t).then(function(){if(t.get("drm")||Object(D.b)(t.get("playlist")))return Object(D.d)(t.get("edition"))}).then(function(){return L(e=t).then(function(){if(!R(e)){var t=Object(O.b)(e.get("playlist"),e);e.attributes.playlist=t;try{Object(O.e)(t)}catch(t){throw t.code+=P.w,t}var n=e.getProviders(),r=Object(O.f)(e.get("item"),t.length),i=n.choose(t[r].sources[0]),o=i.provider,u=i.name;return"function"==typeof o?o:j.a.html5&&"html5"===u?j.a.html5:n.load(u).catch(function(t){throw Object(P.B)(t,P.x)})}});var e})}function q(t,e){var n=[V(t),B(t,e)];return H(t)||n.push(Promise.resolve()),Promise.all(n)}function V(t){var e=t.attributes,n=e.error;if(n&&n.code===s.a){var r=e.pid,i=e.ph,o=new s.b(e.key);if(i>0&&i<4&&r&&o.duration()>-7776e6)return new I.a("//content.jwplatform.com/libraries/"+r+".js").load().then(function(){var t=window.jwplayer.defaults.key,n=new s.b(t);n.error()||n.token()!==o.token()||(e.key=t,e.edition=n.edition(),e.error=n.error())}).catch(function(){})}return Promise.resolve()}function H(t){var e=t.get("advertising");return!(!e||!e.outstream)}var Q=function(t){var e=t.get("skin")?t.get("skin").url:void 0;if("string"==typeof e&&!function(t){for(var e=document.styleSheets,n=0,r=e.length;n<r;n++)if(e[n].href===t)return!0;return!1}(e)){return new I.a(e,!0).load().catch(function(t){return t})}return Promise.resolve()},W=function(t){var e=t.attributes,n=e.language,r=e.base,i=e.setupConfig,o=e.intl,u=Object(M.c)(i,o,n);return!Object(M.h)(n)||Object(M.f)(u)?Promise.resolve():new Promise(function(i){return Object(M.i)(r,n).then(function(n){var r=n.response;if(!R(t)){if(!r)throw new P.t(null,P.h);e.localization=Object(M.a)(r,u),i()}}).catch(function(t){i(t.code===P.h?t:Object(P.B)(t,P.g))})})};var X=function(t){var e;this.start=function(n){var r=Object(A.a)(t,n),i=Promise.all([T(t),r,z(t),q(t,n),Q(t),W(t)]),o=new Promise(function(t,n){e=setTimeout(function(){n(new P.t(P.n,P.z))},6e4);var r=function(){clearTimeout(e),setTimeout(t,6e4)};i.then(r).catch(r)});return Promise.race([i,o]).catch(function(t){var e=function(){throw t};return r.then(e).catch(e)}).then(function(t){return function(t){if(!t||!t.length)return{core:null,warnings:[]};var e=t.reduce(function(t,e){return t.concat(e)},[]).filter(function(t){return t&&t.code});return{core:t[0],warnings:e}}(t)})},this.destroy=function(){clearTimeout(e),t.set("_destroyed",!0),t=null}},U=n(41),Y=n(30),J=n(12),K=n(16),Z={removeItem:function(t){}};try{Z=window.localStorage||Z}catch(t){}var $=function(){function t(t,e){this.namespace=t,this.items=e}var e=t.prototype;return e.getAllItems=function(){var t=this;return this.items.reduce(function(e,n){var r=Z[t.namespace+"."+n];return r&&(e[n]="captions"!==n?Object(J.serialize)(r):JSON.parse(r)),e},{})},e.track=function(t){var e=this;this.items.forEach(function(n){t.on("change:"+n,function(t,r){try{"captions"===n&&(r=JSON.stringify(r)),Z[e.namespace+"."+n]=r}catch(t){K.a.debug&&console.error(t)}})})},e.clear=function(){var t=this;this.items.forEach(function(e){Z.removeItem(t.namespace+"."+e)})},t}(),G=n(54),tt=n(49),et=n(9),nt=n(42),rt=n(60),it=n(61),ot=n(34);n(68),n(69);n.d(e,"b",function(){return st});var ut=function(t){this._events={},this.modelShim=new G.a,this.modelShim._qoeItem=new Y.a,this.mediaShim={},this.setup=new X(this.modelShim),this.currentContainer=this.originalContainer=t,this.apiQueue=new i.a(this,["load","play","pause","seek","stop","playlistItem","playlistNext","playlistPrev","next","preload","setConfig","setCurrentAudioTrack","setCurrentCaptions","setCurrentQuality","setFullscreen","addButton","removeButton","castToggle","setMute","setVolume","setPlaybackRate","addCues","setCues","setPlaylistItem","resize","setCaptions","setControls"],function(){return!0})};function at(t,e){e&&e.code&&(e.sourceError&&console.error(e.sourceError),console.error(P.t.logMessage(e.code)))}function ct(t){t&&t.code&&console.warn(P.t.logMessage(t.code))}function st(t,e){if(!document.body.contains(t.currentContainer)){var n=document.getElementById(t.get("id"));n&&(t.currentContainer=n)}t.currentContainer.parentElement&&t.currentContainer.parentElement.replaceChild(e,t.currentContainer),t.currentContainer=e}Object(r.j)(ut.prototype,{on:et.a.on,once:et.a.once,off:et.a.off,trigger:et.a.trigger,init:function(t,e){var n=this,i=this.modelShim,o=new $("jwplayer",["volume","mute","captionLabel","captions","bandwidthEstimate","bitrateSelection","qualityLabel","enableShortcuts"]),u=o&&o.getAllItems();i.attributes=i.attributes||{},Object(r.j)(this.mediaShim,tt.a);var a=t,c=y(Object(r.j)({},t),u);c.id=e.id,c.setupConfig=a,Object(r.j)(i.attributes,c,tt.b),i.getProviders=function(){return new U.a(c)},i.setProvider=function(){};var s=Object(rt.b)();i.get("backgroundLoading")||(s=Object(it.a)(s.getPrimedElement(),s));var l=new ot.a(Object(ot.b)(this.originalContainer)).once("gesture",function(){s.prime(),n.preload(),l.destroy()});return i.on("change:errorEvent",at),this.setup.start(e).then(function(t){var u=t.core;if(!u)throw Object(P.B)(null,P.y);if(n.setup){n.on(_.wb,ct),t.warnings.forEach(function(t){n.trigger(_.wb,t)});var a=n.modelShim.clone();if(a.error)throw a.error;var c=n.apiQueue.queue.slice(0);n.apiQueue.destroy(),Object(r.j)(n,u.prototype),n.setup(a,e,n.originalContainer,n._events,c,s);var l=n._model;return i.off("change:errorEvent",at),l.on("change:errorEvent",at),o.track(l),n.updatePlaylist(l.get("playlist"),l.get("feedData")).catch(function(t){var e=t.code===P.a?P.u:P.w;throw Object(P.B)(t,e)})}}).then(function(){n.setup&&n.playerReady()}).catch(function(t){n.setup&&function(t,e,n){Promise.resolve().then(function(){var r=Object(P.C)(P.s,P.A,n),i=t._model||t.modelShim;r.message=r.message||i.get("localization").errors[r.key],delete r.key;var o=i.get("contextual");if(!o){var u=Object(nt.a)(t,r);nt.a.cloneIcon&&u.querySelector(".jw-icon").appendChild(nt.a.cloneIcon("error")),st(t,u)}i.set("errorEvent",r),i.set("state",_.mb),t.trigger(_.jb,r),o&&e.remove()})}(n,e,t)})},playerDestroy:function(){this.apiQueue&&this.apiQueue.destroy(),this.setup&&this.setup.destroy(),this.currentContainer!==this.originalContainer&&st(this,this.originalContainer),this.off(),this._events=this._model=this.modelShim=this.apiQueue=this.setup=null},getContainer:function(){return this.currentContainer},get:function(t){if(this.modelShim)return t in this.mediaShim?this.mediaShim[t]:this.modelShim.get(t)},getItemQoe:function(){return this.modelShim._qoeItem},getItemPromise:function(){return null},setItemCallback:function(t){this.modelShim&&(this.modelShim.attributes.playlistItemCallback=t)},getConfig:function(){return Object(r.j)({},this.modelShim.attributes,this.mediaShim)},getCurrentCaptions:function(){return this.get("captionsIndex")},getWidth:function(){return this.get("containerWidth")},getHeight:function(){return this.get("containerHeight")},getMute:function(){return this.get("mute")},getProvider:function(){return this.get("provider")},getState:function(){return this.get("state")},getAudioTracks:function(){return null},getCaptionsList:function(){return null},getQualityLevels:function(){return null},getVisualQuality:function(){return null},getCurrentQuality:function(){return-1},getCurrentAudioTrack:function(){return-1},getSafeRegion:function(){return{x:0,y:0,width:0,height:0}},isBeforeComplete:function(){return!1},isBeforePlay:function(){return!1},createInstream:function(){return null},skipAd:function(){},attachMedia:function(){},detachMedia:function(){}});e.a=ut},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(5);function i(t){return"hls"===t.type&&r.OS.android?!1!==t.androidhls&&(!r.Browser.firefox&&parseFloat(r.OS.version.version)>=4.4):null}},function(t,e,n){"use strict";function r(){var t,e,n=window.location.host;if(window.top!==window.self){n=(document.referrer?(t=document.referrer,(e=document.createElement("a")).href=t,e):{}).host;try{n=n||window.top.location.host}catch(t){}}return n}n.d(e,"a",function(){return r})},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 29.3" class="jw-svg-icon jw-svg-icon-watermark" focusable="false"><path d="M37,16.68c0,2.4-.59,3.43-2.4,3.43a5.75,5.75,0,0,1-3.38-1.23v3.58a7.39,7.39,0,0,0,3.67,1c3.67,0,5.73-1.91,5.73-6.32V5.86H37Z"></path><polygon points="58.33 17.61 55.39 6.01 52.55 6.01 49.52 17.61 46.73 6.01 43.06 6.01 47.56 23.29 50.89 23.29 53.92 11.88 56.96 23.29 60.24 23.29 64.74 6.01 61.17 6.01 58.33 17.61"></polygon><path d="M73.84,6H67.47V23.29h2.2v-6.9h4.17c3.47,0,5.77-1.77,5.77-5.19S77.31,6,73.84,6Zm0,8.47H69.72V8h4.12c2.3,0,3.57,1.22,3.62,3.28C77.46,13.21,76.19,14.48,73.84,14.48Z"></path><path d="M99.2,6l-6,15.27H85V6H82.8V23.29H94.7l2-5.19h7.09l2,5.19H108L101.26,6ZM97.39,16.14l2.84-7.39L103,16.14Z"></path><polygon points="113.98 14.18 108.99 6.01 106.59 6.01 112.81 16.14 112.81 23.29 115.01 23.29 115.01 16.14 121.33 6.01 118.98 6.01 113.98 14.18"></polygon><polygon points="123.14 23.29 134.1 23.29 134.1 21.28 125.29 21.28 125.29 15.41 133.32 15.41 133.32 13.45 125.29 13.45 125.29 7.97 134.1 7.97 134.1 6.01 123.14 6.01 123.14 23.29"></polygon><path d="M144.86,15.85c2.74-.39,4.41-2,4.41-4.85,0-3.23-2.26-5-5.73-5h-6.32V23.29h2.22V16h3.08l4.94,7.29H150Zm-5.42-1.71V8h4.06c2.3,0,3.62,1.17,3.62,3.08s-1.32,3.09-3.62,3.09Z"></path><path d="M27.63.09a1,1,0,0,0-1.32.48c-.24.51-6.35,15.3-6.35,15.3-.2.46-.33.41-.33-.07,0,0,0-5.15,0-9.39,0-2.31-1.12-3.61-2.73-3.88A3.12,3.12,0,0,0,14.83,3a4.57,4.57,0,0,0-1.5,1.79c-.48.94-3.47,9.66-3.47,9.66-.16.46-.31.44-.31,0,0,0-.09-3.76-.18-4.64-.13-1.36-.44-3.59-2.2-3.7S4.77,8,4.36,9.24c-.29.84-1.65,5.35-1.65,5.35l-.2.46h0c-.06.24-.17.24-.24,0l-.11-.42Q2,14,1.74,13.31a1.71,1.71,0,0,0-.33-.66.83.83,0,0,0-.88-.22.82.82,0,0,0-.53.69,4.22,4.22,0,0,0,.07.79,29,29,0,0,0,1,4.6,1.31,1.31,0,0,0,1.8.66,3.43,3.43,0,0,0,1.24-1.81c.33-.81,2-5.48,2-5.48.18-.46.31-.44.29,0,0,0-.09,4.57-.09,6.64a13.11,13.11,0,0,0,.28,2.93,2.41,2.41,0,0,0,.82,1.27,2,2,0,0,0,1.41.4,2,2,0,0,0,.7-.24,3.15,3.15,0,0,0,.79-.71,12.52,12.52,0,0,0,1.26-2.11c.81-1.6,2.92-6.58,2.92-6.58.2-.46.33-.41.33.07,0,0-.26,8.36-.26,11.55a6.39,6.39,0,0,0,.44,2.33,2.8,2.8,0,0,0,1.45,1.61A2.57,2.57,0,0,0,18.79,29a3.76,3.76,0,0,0,1.28-1.32,15.12,15.12,0,0,0,1.07-2.31c.64-1.65,1.17-3.33,1.7-5s5-17.65,5.28-19a1.79,1.79,0,0,0,0-.46A1,1,0,0,0,27.63.09Z"></path></svg>'},function(t,e,n){"use strict";var r,i=n(62),o=n(5),u=n(6),a=[],c=[],s=[],l={},f="screen"in window&&"orientation"in window.screen,d=o.OS.android&&o.Browser.chrome,p=!1;function h(t,e){for(var n=e.length;n--;){var r=e[n];if(t.target===r.getContainer()){r.setIntersection(t);break}}}function v(){a.forEach(function(t){var e=t.model;if(!(e.get("audioMode")||!e.get("controls")||e.get("visibility")<.75)){var n=e.get("state"),r=Object(u.f)();!r&&"paused"===n&&t.api.getFullscreen()?t.api.setFullscreen(!1):"playing"===n&&t.api.setFullscreen(r)}})}function g(){a.forEach(function(t){t.model.set("activeTab",Object(i.a)())})}function m(t,e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}function b(t){s.forEach(function(e){e(t)})}document.addEventListener("visibilitychange",g),document.addEventListener("webkitvisibilitychange",g),d&&f&&window.screen.orientation.addEventListener("change",v),window.addEventListener("beforeunload",function(){document.removeEventListener("visibilitychange",g),document.removeEventListener("webkitvisibilitychange",g),window.removeEventListener("scroll",b),d&&f&&window.screen.orientation.removeEventListener("change",v)}),e.a={add:function(t){a.push(t)},remove:function(t){m(t,a)},addScrollHandler:function(t){p||(p=!0,window.addEventListener("scroll",b)),s.push(t)},removeScrollHandler:function(t){var e=s.indexOf(t);-1!==e&&s.splice(e,1)},addWidget:function(t){c.push(t)},removeWidget:function(t){m(t,c)},size:function(){return a.length},observe:function(t){var e;e=window.IntersectionObserver,r||(r=new e(function(t){if(t&&t.length)for(var e=t.length;e--;){var n=t[e];h(n,a),h(n,c)}},{threshold:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]})),l[t.id]||(l[t.id]=!0,r.observe(t))},unobserve:function(t){r&&l[t.id]&&(delete l[t.id],r.unobserve(t))}}},function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n(0),i=n(48),o=n(6),u=n(11),a=[],c=-1;function s(){Object(i.a)(c),c=Object(i.b)(function(){a.forEach(function(t){t.view.updateBounds();var e=t.view.model.get("containerWidth");t.resized=t.width!==e,t.width=e}),a.forEach(function(t){t.contractElement.scrollLeft=2*t.width}),a.forEach(function(t){Object(u.d)(t.expandChild,{width:t.width+1}),t.resized&&t.view.model.get("visibility")&&t.view.updateStyles()}),a.forEach(function(t){t.expandElement.scrollLeft=t.width+1}),a.forEach(function(t){t.resized&&t.view.checkResized()})})}var l=function(){function t(t,e,n){var i={display:"block",position:"absolute",top:0,left:0},c={width:"100%",height:"100%"},l=Object(o.e)('<div style="opacity:0;visibility:hidden;overflow:hidden;"><div><div style="height:1px;"></div></div><div class="jw-contract-trigger"></div></div>'),f=l.firstChild,d=f.firstChild,p=f.nextSibling;Object(u.d)([f,p],Object(r.j)({overflow:"auto"},i,c)),Object(u.d)(l,Object(r.j)({},i,c)),this.expandElement=f,this.expandChild=d,this.contractElement=p,this.hiddenElement=l,this.element=t,this.view=e,this.model=n,this.width=0,this.resized=!1,t.firstChild?t.insertBefore(l,t.firstChild):t.appendChild(l),t.addEventListener("scroll",s,!0),a.push(this),s()}return t.prototype.destroy=function(){if(this.view){var t=a.indexOf(this);-1!==t&&a.splice(t,1),this.element.removeEventListener("scroll",s,!0),this.element.removeChild(this.hiddenElement),this.view=this.model=null}},t}()}]).default;// // --------------------------------------
// // GOOGLE-ANALYTICS
var xst=2;if(typeof window["GoogleAnalyticsObject"]!=undefined){(function(i,s,o,g,r,a,m){i["GoogleAnalyticsObject"]=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date;a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,"script","https://www.google-analytics.com/analytics.js","ga")}
// // --------------------------------------
// var oe24_jwPlayerVideoWithAdsReload;
var oe24_jwplayer_setup_type="WEB";// for webpages use „type“ = 'WEB' - for app 'APP'
var appDet=new Array(/\(Linux; Android [\.0-9]+; .+?(wv)?\) AppleWebKit\/[\.0-9]+ \(KHTML, like Gecko\) Version\/.+?Chrome\/.+? Mobile Safari\/[\.0-9]+/i,/Mozilla\/5.0 \(Linux; U; Android [\.0-9]+; en-gb; Build\/KLP\) AppleWebKit\/[\.0-9]+ \(KHTML, like Gecko\) Version\/4.0 Safari\/[\.0-9]+/i,/Mozilla\/5.0 \(Linux; Android [\.0-9]+; Nexus 5 Build\/_BuildID_\) AppleWebKit\/[\.0-9]+ \(KHTML, like Gecko\) Version\/4.0 Chrome\/.+? Mobile Safari\/[\.0-9]+/i,/Mozilla\/5.0 \(Linux; Android [\.0-9]+; Nexus 5 Build\/LMY48B; wv\) AppleWebKit\/[\.0-9]+ \(KHTML, like Gecko\) Version\/4.0 Chrome\/.+? Mobile Safari\/[\.0-9]+/i,/oe24\.at\/[\.0-9]+ \(com.iphone-wizard.OE24; build:[\.0-9]+; iOS [\.0-9]+\) Alamofire\/[\.0-9]+/i);var appDetDevice=new Array("Android_oe24","Android_oe24","Android_oe24","Android_oe24","iOS_oe24");var oe24_jwplayer_app_device="web";var tcString="";for(var reg in appDet){if(navigator.userAgent.match(appDet[reg])){oe24_jwplayer_setup_type="APP";oe24_jwplayer_app_device=appDetDevice[reg];break}}
// if(oe24_jwplayer_setup_type == 'WEB'){
//     var userAgent = navigator.userAgent.toLowerCase();
//     var Android = userAgent.indexOf('android') > -1;
//     if(Android) {
//         console.log('userAgent match - last hope');
//         oe24_jwplayer_app_device = 'Android_oe24';
//     }
// }
if(window.location.href.indexOf("dev")>-1){
// for preproduction
var oe24_jwplayer_setup_media="oe24test";var oe24_jwplayer_setup_url="//at-config-preproduction.sensic.net/s2s-web.js"}else{
// for production
var oe24_jwplayer_setup_media="oe24";var oe24_jwplayer_setup_url="//at-config.sensic.net/s2s-web.js"}if(oe24_jwplayer_setup_type=="APP"){var oe24_jwplayer_isMobile={Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return navigator.userAgent.match(/iPhone|iPod/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)},any:function(){return oe24_jwplayer_isMobile.Android()||oe24_jwplayer_isMobile.BlackBerry()||oe24_jwplayer_isMobile.iOS()||oe24_jwplayer_isMobile.Opera()||oe24_jwplayer_isMobile.Windows()}};var oe24_jwplayer_setup_device=oe24_jwplayer_isMobile.any()?"SMARTPHONE":"TABLET";var gfkS2sConf={media:oe24_jwplayer_setup_media,url:oe24_jwplayer_setup_url,type:oe24_jwplayer_setup_type,// for webpages use „type“ = WEB
device:oe24_jwplayer_setup_device,// use either TABLET or SMARTPHONE or UNKNOWN
ai:"[AdvertisingId/IDFA]"}}else{var gfkS2sConf={media:oe24_jwplayer_setup_media,url:oe24_jwplayer_setup_url,type:oe24_jwplayer_setup_type}}(function($,jwplayer){"use strict";var oe24jwplayerAdTime=undefined;var tab,hidden,visibilityChange,jwPlayerObject;function JWPlayer_8_17_1(el,playlistObject){this.playlistObject=playlistObject;this.$el=$(el);this.$relatedWrapper=this.$el.nextAll(".videoPlayerRelatedWrapper");this.$replayBtn=this.$relatedWrapper.find(".videoPlayerReplay");this.$relatedItems=this.$relatedWrapper.find(".videoPlayerRelatedItems");this.countRelatedItems=this.$relatedItems.find(".videoPlayerRelatedItem").length;this.ga=undefined;this.trackingName=undefined;this.jwplayerId=this.$el.attr("id");this.videoId=this.jwplayerId=="mobileTeaserOe24TvCustom"?"251215975":this.jwplayerId.split("_")[1];
// AGTT Teletest Tracking START
this.adTime=undefined;this.adDuration=undefined;this.gfkInitAd=false;this.gfkAdPosition="";this.gfkInitVideo=false;this.oe24PreDone=false;this.oe24LiveStreamPaused=0;this.oe24LiveStreamPausedSum=0;
// helper to remind the current playing-state
this.oe24Playing=false;
// AGTT Teletest Tracking END
// helper for naming
this.gfkAdPosition="";this.oe24LastPlayedId="";var defaults={
// primary: 'flash', // zum austesten, ob flash funktioniert.
flashplayer:"/8.17.1/jwplayer.flash.swf",// wird ueber die page-datei _shared/page/jwplayer/jwplayer.page aufgeloest
// key: 'QcCdgx3inM94dJ9izldPrT3TuCMlZ+e+QhYdRg==',
key:"2FsrTep9OcXBJctufEe413UqWJsrr4d5rUgyi06J8Ki97VJ/",displaytitle:false,displaydescription:false,hlshtml:true,androidhls:true,aspectratio:"16:9",width:"100%",stretching:"uniform",preload:"auto",ga:{}};var defaultsEvent={ready:true,error:true,adPlay:true,adRequest:true,play:true,firstFrame:true,beforeComplete:true,complete:true};
// (ws) 2017-10-17 DAILY-897
// Im Falle eines Video-Fehlers soll nur einmal ein "custom" Element mit der Fehlermeldung erzeugt werden
this.customMessageBoxDone=false;
// (ws) 2017-10-17 DAILY-897 end
var elOpts=this.$el.data("jwplayer-opts");if(typeof elOpts=="undefined"){
// Backend Problematik
elOpts=JSON.parse(this.$el.attr("data-jwplayer-opts"))}
// handle cookie-consent
if(tcString.length){if(typeof elOpts.advertising!="undefined"){for(var s in elOpts.advertising.schedule){elOpts.advertising.schedule[s].tag+="&gdpr=1&gdpr_pd=1&gdpr_consent="+tcString}}}if(typeof elOpts.advertising!="undefined"){console.log(elOpts.advertising)}this.playerOptions=$.extend(defaults,elOpts);var elOptsEvent=this.$el.data("jwplayer-opts-event");if(typeof elOptsEvent=="undefined"){
// Backend Problematik
elOptsEvent=JSON.parse(this.$el.attr("data-jwplayer-opts-event"))}this.playerOptionsEvent=$.extend(defaultsEvent,elOptsEvent);this.elAgttData=this.$el.data("jwplayer-agtt");if(typeof elAgttData=="undefined"){
// Backend Problematik
this.elAgttData=JSON.parse(this.$el.attr("data-jwplayer-agtt"))}
// additional elAgttData
this.elAgttData.channel="oe24";this.elAgttData.deviceid="web";this.elAgttData.deviceid=oe24_jwplayer_setup_type=="APP"?oe24_jwplayer_app_device:this.elAgttData.deviceid;this.elAgttData.videopartid="1_1";this.elAgttData.playerid=isMobileDevice()?"oe24.mobile.agtt":"oe24.video.agtt";this.elAgttData.playerid=oe24_jwplayer_setup_type=="APP"?"oe24.app.agtt":this.elAgttData.playerid;this.elAgttData.airdate=getOe24IsoDate(this.elAgttData.airdate);this.elAgttData.clipreleasetime=getOe24IsoDate(this.elAgttData.clipreleasetime);this.handleVisibility();var rc=this.setupPlayer();if(false===rc){return false}if(typeof this.playlistObject!=="undefined"){this.initPlaylists()}this.initGfkJsTracking();this.initGoogleAnalytics();this.oe24TrackingEvent();this.addEventListeners("init");jwPlayerObject=this}function isMobileDevice(){
// www.detectmobilebrowsers.com
// Regex updated: 1 August 2014
var a=navigator.userAgent||navigator.vendor||window.opera;if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4))){return true}return false}
// If the page is hidden, pause the video;
// if the page is shown, play the video
function handleVisibilityChange(){if(document[hidden]){tab=0}else{tab=1}}JWPlayer_8_17_1.prototype.handleVisibility=function(){if(typeof window.document.visibilityState!=="undefined"){if(window.document.visibilityState=="visible"){tab=1}else{tab=0}return}if(typeof window.document.hasFocus!=="undefined"){if(window.document.hasFocus()){tab=1}else{tab=0}return}if(typeof document.hidden!=="undefined"){// Opera 12.10 and Firefox 18 and later support
hidden="hidden";visibilityChange="visibilitychange"}else if(typeof document.msHidden!=="undefined"){hidden="msHidden";visibilityChange="msvisibilitychange"}else if(typeof document.webkitHidden!=="undefined"){hidden="webkitHidden";visibilityChange="webkitvisibilitychange"}
// Warn if the browser doesn't support addEventListener or the Page Visibility API
if(typeof document.addEventListener==="undefined"||hidden===undefined){tab=1}else{
// Handle page visibility change
document.addEventListener(visibilityChange,handleVisibilityChange,false);handleVisibilityChange()}};function getOe24IsoDate(date2change){if(date2change==null)return date2change;if(date2change.length<16){return date2change}var day=date2change.substring(0,2);var month=parseInt(date2change.substring(3,5))-1;var year=date2change.substring(6,10);var hour=date2change.substring(11,13);var minute=date2change.substring(14,16);var d=new Date(year,month,day,hour,minute,0,0);var nd=d.toISOString();return nd.toString()}JWPlayer_8_17_1.prototype.initPlaylists=function(){var self=this;var $clips=$(this.playlistObject.box).find(this.playlistObject.clipsSelector);var $closeEvent=$(this.playlistObject.box).find(".videoLayerClose");var $upEvent=$(this.playlistObject.box).find(".videoLayerUp");function clipClickEvent(e){
// set playing-state to false, click has been done on one of the top-videos
self.oe24Playing=false;e.preventDefault();if("Mobile Column"===self.playlistObject.columnName){$("html, body").animate({scrollTop:0},200)}var sources=$(this).data("videosrc");var image=$(this).data("videoposter");var livestream=$(this).data("livestream");var url=$(this).data("url");var published=$(this).data("published");published=getOe24IsoDate(published);var videoId=$(this).data("id");var videoLength=$(this).data("length");var title=$(this).find(".smallClipTitle").text();
// self.videoId = $(this).data('video-id');
self.playerOptions.playlist[0].sources=sources;self.playerOptions.playlist[0].image=image;self.playerOptions.playlist[0].title=title;if(livestream=="1"){self.elAgttData.cliptype="Live"}else{self.elAgttData.cliptype="Sendung"}self.videoId=videoId;self.elAgttData.videotitle=title;self.elAgttData.programname=title;self.elAgttData.clipurl=url;self.elAgttData.clipreleasetime=published;self.elAgttData.airdate=published;self.elAgttData.episodeid=videoId;self.elAgttData.videopartid="1_1";self.elAgttData.episodeduration=videoLength;self.elAgttData.playerduration=videoLength;self.elAgttData.videoduration=videoLength;if(typeof nst!=="undefined"){if(self.gfkInitVideo&&self.player.getState()==="playing"){self.gfkAgent.stop()}self.gfkInitAd=false;self.gfkInitVideo=false}self.player.setup(self.playerOptions);self.addEventListeners("click");$clips.removeClass("active");$(this).addClass("active")}function closeClickEvent(e){self.player.pause()}function upClickEvent(e){self.player.play()}$clips.on("click",clipClickEvent);$closeEvent.on("click",closeClickEvent);$upEvent.on("click",upClickEvent);this.player.on("ready",function(e){$(self.playlistObject.box).fadeIn("slow")});this.player.on("error",function(e){$(self.playlistObject.box).fadeIn("slow")})};JWPlayer_8_17_1.prototype.addEventListeners=function(calledBy){var self=this;function oe24Tracking(){return;
// // this.videoId = this.jwplayerId.split('_')[1];
// // this.oe24LastPlayedId = 0;
// if(self.videoId != self.oe24LastPlayedId) {
//     var hostname = window.location.hostname;
//     var currentUrl = window.location.href;
//     var protocol = (hostname.includes('dev.')) ? 'http' : 'https';
//     var trackurl = protocol + '://'+hostname+'/_tracking/oe24video';
//     var sendurl = currentUrl;
//     var i = currentUrl.indexOf(hostname);
//     sendurl = currentUrl.substring(i+hostname.length);
//     var livestream = 0;
//     var demand = 0;
//     var category = '';
//     var channel = '';
//     if(sendurl == '/' && self.videoId == '251215975'){
//         // Frontpage - Livestream
//         livestream = 1;
//         category = 'ls';
//         channel = '/';
//     }
//     else {
//         switch(self.videoId) {
//             case '161573764':
//                 // Frontpage - Livestream
//                 livestream = 1;
//                 category = 'ls';
//                 channel = '/';
//                 break;
//             case '251215975':
//                 // Artikeldetail - Livestream
//                 livestream = 1;
//                 category = 'la';
//                 channel = sendurl;
//                 break;
//             case '387095113':
//                 //newsvideo - Livestream
//                 livestream = 1;
//                 category = 'lnv';
//                 channel = '/video';
//                 break;
//             default:
//                 demand = 1;
//                 channel = sendurl;
//                 if(channel.substring(0,6) == '/video'){
//                     category = 'nv';
//                 }
//                 else {
//                     category = 'oe24';
//                 }
//                 break;
//         }
//     }
//     if(hostname.includes('wetter')){
//         category = 'w';
//         livestream = 0;
//         demand = 1;
//     }
//     var xhttp = new XMLHttpRequest();
//     xhttp.onreadystatechange = function() {
//         if (this.readyState == 4 && this.status == 200) {}
//     };
//     xhttp.open('POST', trackurl, true);
//     xhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
//     xhttp.send('v='+self.videoId+'&c='+category+'&ls='+livestream+'&dm='+demand+'&ch='+channel);
// }
// self.oe24LastPlayedId = self.videoId;
}
// AGTT Teletest Tracking START
function gfkSetIsPlaying(isPlaying,playerPosition){var state=self.oe24Playing;var contentId="default";
// var videoId = (self.playerOptions.playlist[0].title) ? self.playerOptions.playlist[0].title : self.videoId;
// var originalVideoId = videoId;
// // advertisments must have another videoId
// var videoId = (self.gfkInitAd) ? videoId + '_Ad_' + self.gfkAdPosition : videoId;
// video-id - should be an unique-id, can be the same as episode-id (according to gfk), but should be another one, when in an advertisement
var videoId=self.videoId?self.videoId:self.elAgttData.episodeid;
// advertisments must have another videoId
var videoId=self.gfkInitAd?videoId+"_Ad_"+self.gfkAdPosition:videoId;var videoId=String(videoId);var originalVideoId=videoId;var volume=self.player.getMute()===true?"0":self.player.getVolume().toString();var fullscreen=self.player.getFullscreen().toString()=="true"?"1":"0";var cliptype=self.elAgttData.cliptype;// "[ContentId]"
// cliptype = (self.gfkInitAd && playerPosition<=0) ? 'preroll' : cliptype;
// cliptype = (self.gfkInitAd && playerPosition>0) ? 'midroll' : cliptype;
cliptype=self.gfkInitAd&&self.gfkAdPosition!=""?self.gfkAdPosition:cliptype;cliptype=gfkGetPosition(cliptype);var liveStreamPaused=0;if((self.elAgttData.cliptype.toLowerCase()=="live"||self.elAgttData.cliptype.toLowerCase()=="auto_live"||self.elAgttData.cliptype.toLowerCase()=="audio_live")&&!self.gfkInitAd){var now=(new Date).getTime();liveStreamPaused=self.oe24LiveStreamPaused!=0?now-self.oe24LiveStreamPaused:0;liveStreamPaused+=self.oe24LiveStreamPausedSum;self.oe24LiveStreamPaused=0;
// remember cumulative sum of paused-time during livestream if users pauses again during the stream
self.oe24LiveStreamPausedSum=liveStreamPaused}var videoduration=self.gfkInitAd&&self.adDuration?self.adDuration:self.elAgttData.videoduration;var customobject={cliptype:cliptype,videotitle:self.elAgttData.videotitle,episodeid:self.elAgttData.episodeid,videopartid:self.elAgttData.videopartid,airdate:self.elAgttData.airdate,playerid:self.elAgttData.playerid,channel:self.elAgttData.channel,deviceid:self.elAgttData.deviceid,playerduration:videoduration,videoduration:videoduration,episodeduration:videoduration,programname:self.elAgttData.programname,clipreleasetime:self.elAgttData.clipreleasetime,videoid:originalVideoId};if(isPlaying){
// set state only if its currently not 'playing'
if(!state){if((self.elAgttData.cliptype=="Live"||self.elAgttData.cliptype=="Auto_live"||self.elAgttData.cliptype.toLowerCase()=="audio_live")&&self.gfkAdPosition.length<=0){
// Livestream
self.gfkAgent.playLive(contentId,"",liveStreamPaused,videoId,fullscreen,volume,customobject)}else{
// Video on Demand
self.gfkAgent.playVOD(contentId,videoId,fullscreen,volume,customobject)}self.oe24Playing=true;
// self.gfkAgent.play(contentId, liveStreamPaused, videoId, fullscreen, volume, customobject);
// self.oe24Playing = true;
}}else{
// set state only if its currently not 'paused'
if(state){self.gfkAgent.stop();self.oe24Playing=false;self.oe24LiveStreamPaused=(new Date).getTime()}}}function gfkGetPosition(adPosition){var returnAdPosition=adPosition.toLowerCase()=="pre"?"Preroll":adPosition;returnAdPosition=adPosition.toLowerCase()=="mid"?"Midroll":returnAdPosition;returnAdPosition=adPosition.toLowerCase()=="post"?"Postroll":returnAdPosition;return returnAdPosition}function gfkAdMetaEvent(event){
// var adPosition = undefined;
// for (var key in self.playerOptions.advertising.schedule) {
//     if (self.playerOptions.advertising.schedule[key].tag == event.tag) {
//         adPosition = self.playerOptions.advertising.schedule[key].offset;
//         // self.gfkAdPosition = key;
//         break;
//     }
// }
var adPosition=event.adposition;if(adPosition===undefined){return}adPosition="mid"===adPosition&&"nonlinear"===event.linear?"overlay":adPosition;self.gfkAdPosition=gfkGetPosition(adPosition);if(self.gfkAdPosition==="overlay"){return}self.gfkInitAd=true;self.adTime=0;oe24jwplayerAdTime=0}function gfkAdPlayEvent(event){
// oe24Tracking();
if(self.gfkInitAd===false){return}gfkSetIsPlaying(true,self.adTime)}function gfkAdPauseEvent(event){gfkSetIsPlaying(false,self.adTime)}function gfkAdTimeEvent(event){self.adTime=Math.round(event.position*1e3);oe24jwplayerAdTime=Math.round(event.position*1e3);self.adDuration=Math.round(event.duration)}function gfkAdImpressionEvent(event){self.adDuration=Math.round(event.duration);if(self.gfkInitAd===true){return}var adPosition=event.adposition;adPosition="mid"===adPosition&&"nonlinear"===event.linear?"overlay":adPosition;self.gfkAdPosition=gfkGetPosition(adPosition);if(self.gfkAdPosition==="overlay"){return}self.gfkInitAd=true;
// gfkSetIsPlaying(true, 0);
}function gfkAdCompleteEvent(event){if(self.gfkAdPosition=="overlay"){return}self.oe24PreDone=true;gfkSetIsPlaying(false,self.adTime);self.gfkInitAd=false;self.adTime=undefined;self.adDuration=undefined;gfkSetIsPlaying(false,0);self.gfkAdPosition=""}function sendRequest2(){var a=getData2();var b=parseInt(a,10);b=b+3;setCookie("grx",b,30*12*24*60);return b}function getData2(){var grx=getCookie("grx");if(grx===""){grx=0}return grx}function getCookie(cname){var name=cname+"=";var decodedCookie=decodeURIComponent(document.cookie);var ca=decodedCookie.split(";");for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==" "){c=c.substring(1)}if(c.indexOf(name)==0){return c.substring(name.length,c.length)}}return false}function setCookie(cname,cvalue,exseconds){var d=new Date;d.setTime(d.getTime()+exseconds*1e3);var expires="expires="+d.toUTCString();document.cookie=cname+"="+cvalue+";"+expires+";path=/"}function gfkFirstFrameEvent(event){self.gfkInitVideo=true;self.adTime=0;oe24jwplayerAdTime=0;self.oe24LiveStreamPausedSum=0;gfkSetIsPlaying(true,0)}function gfkPlayEvent(event){
// oe24Tracking();
if(self.gfkInitVideo===false){return}self.adTime=0;oe24jwplayerAdTime=0;var playerPos=Math.round(self.player.getPosition()*1e3);gfkSetIsPlaying(true,playerPos)}function gfkPauseEvent(event){var playerPos=Math.round(self.player.getPosition()*1e3);gfkSetIsPlaying(false,playerPos)}function gfkStopEvent(event){var playerPos=Math.round(self.player.getPosition()*1e3);gfkSetIsPlaying(false,playerPos)}function gfkSeekEvent(event){var playerPos=Math.round(self.player.getPosition()*1e3);gfkSetIsPlaying(false,playerPos)}function gfkSeekedEvent(event){var state=self.player.getState();var playerPos=Math.round(self.player.getPosition()*1e3);switch(state){case"playing":case"buffering":gfkSetIsPlaying(true,playerPos);break;case"paused":case"idle":
// gfkSetIsPlaying(false, playerPos);
break;default:break}}function gfkBeforeCompleteEvent(event){var playerPos=Math.round(self.player.getPosition()*1e3);gfkSetIsPlaying(false,playerPos);self.gfkInitVideo=false}function gfkMuteEvent(event){var volume=self.player.getMute()===true?"0":self.player.getVolume().toString();self.gfkAgent.volume(volume.toString())}function gfkFullscreenEvent(event){var fullscreen=self.player.getFullscreen().toString()=="true"?"1":"0";self.gfkAgent.screen(fullscreen)}
// AGTT Teletest Tracking END
// BOX PLAYLISTS
function clipBeforeCompleteEvent(e){var $clips=$(self.playlistObject.box).find(self.playlistObject.clipsSelector);var $activeElement=$(self.playlistObject.box).find(".active");var newActiveIndex=($clips.index($activeElement)+1)%$clips.length;var newActiveElement=$clips.get(newActiveIndex);$(newActiveElement).trigger("click")}
// BOX PLAYLISTS END
// M3U8 ERROR EVENT
function m3u8ErrorEvent(event){var lowerCaseEventMessage=event.message.toLowerCase();if(lowerCaseEventMessage.indexOf("cannot load m3u8:")>=0){var provider=self.player.getProvider()["name"];provider=provider.indexOf("flash")===0?"flash":"html5";var newPlayerOptions=$.extend(true,{},self.playerOptions);delete newPlayerOptions.advertising;if(newPlayerOptions.playlist[0].sources.length>1&&"flash"!==provider){
// wenn nur 1 video in der playlist ist, dieses trotzdem probieren
newPlayerOptions.playlist[0].sources.shift()}self.player.setup(newPlayerOptions);self.addEventListeners("error");
// } else if (lowerCaseEventMessage.indexOf('error playing file:unknown playback error') >= 0) {
// self.player.load(self.playerOptions.playlist[0]);
}}
// M3U8 ERROR EVENT END
function adPlayEvent(event){self.sendAnalyticsEvent("Video","Adition Play",self.playerOptions.playlist[0].title);self.pauseOtherVideos()}function adRequestEvent(event){self.sendAnalyticsEvent("Video","Adition Request",self.playerOptions.playlist[0].title)}function beforeCompleteEvent(event){self.sendAnalyticsEvent("Video","Video fertig abgespielt",self.playerOptions.playlist[0].title)}function checkMutedOption(event){
// (pj) 2016-03-30 workaround to mute jwplayer
if("true"===self.playerOptions.mute){self.player.setMute(true)}else{self.player.setMute(false)}
// (pj) 2016-03-30 end
}function completeEvent(event){self.sendAnalyticsEvent("Video","Video inkl. PostRoll fertig abgespielt",self.playerOptions.playlist[0].title);if(self.countRelatedItems>0){self.showRelatedVideos()}}
// function errorEvent(event) {
//     self.sendAnalyticsEvent('Video', 'Videofehler', event.message);
// }
function errorEvent(event){self.sendAnalyticsEvent("Video","Videofehler",event.message);
// (ws) 2017-10-17 DAILY-897
if(true===self.customMessageBoxDone){return}var jwplayerElement=document.getElementById(self.jwplayerId);var jwplayerParentElement=jwplayerElement.parentElement;var messageStrings=["Die Wiedergabe des Streams wird von ihrem Web-Browser nicht unterstützt.","Bitte aktivieren sie den Flash Player für ihren Web-Browser."];if(isMobileDevice()){messageStrings=messageStrings.slice(0,1)}var customMessageBox,customContentBox,customContent;customMessageBox=document.createElement("div");customMessageBox.setAttribute("class","customMessageBox");customContentBox=document.createElement("div");customContentBox.setAttribute("class","customContentBox");for(var n=0;n<messageStrings.length;n++){customContent=document.createElement("p");customContent.textContent=messageStrings[n];customContentBox.appendChild(customContent)}customMessageBox.appendChild(customContentBox);
// Falls die Klasse schon durch einen vorherigen Fehler gesetzt wurde, diese zuerst entfernen
jwplayerParentElement.classList.remove("customLiveStreamError");jwplayerParentElement.classList.add("customLiveStreamError");jwplayerParentElement.appendChild(customMessageBox);customMessageBox.style.display="block";self.customMessageBoxDone=true;
// (ws) 2017-10-17 DAILY-897 end
}function firstFrameEvent(event){self.sendAnalyticsEvent("Video","Video gestartet",self.playerOptions.playlist[0].title)}function playEvent(event){self.sendAnalyticsEvent("Video","Video Play",self.playerOptions.playlist[0].title);self.pauseOtherVideos()}function stopEvent(event){self.sendAnalyticsEvent("Video","Video Stop",self.playerOptions.playlist[0].title);self.pauseOtherVideos()}function readyEvent(event){self.sendAnalyticsEvent("Video","JWPlayer geladen",self.playerOptions.playlist[0].title)}function replayVideo(event){event.preventDefault();self.hideRelatedVideos();self.player.play(true)}this.player.on("ready",checkMutedOption);if(true===this.playerOptionsEvent.adPlay){this.player.on("adPlay",adPlayEvent)}if(true===this.playerOptionsEvent.adRequest){this.player.on("adRequest",adRequestEvent)}if(true===this.playerOptionsEvent.beforeComplete){this.player.on("beforeComplete",beforeCompleteEvent)}if(true===this.playerOptionsEvent.complete){this.player.on("complete",completeEvent)}if(true===this.playerOptionsEvent.error){this.player.on("error",errorEvent)}if(true===this.playerOptionsEvent.firstFrame){this.player.on("firstFrame",firstFrameEvent)}if(true===this.playerOptionsEvent.play){this.player.on("play",playEvent)}if(true===this.playerOptionsEvent.ready){this.player.on("ready",readyEvent)}
// if (true === this.playerOptionsEvent.stop) {
this.player.on("stop",stopEvent);window.onbeforeunload=function(){gfkStopEvent()};
// }
// AGTT Teletest Tracking START
if(typeof this.gfkAgent!=="undefined"){this.player.on("adMeta",gfkAdMetaEvent);this.player.on("adPlay",gfkAdPlayEvent);this.player.on("adPause",gfkAdPauseEvent);this.player.on("adTime",gfkAdTimeEvent);this.player.on("adImpression",gfkAdImpressionEvent);this.player.on("adComplete",gfkAdCompleteEvent);this.player.on("firstFrame",gfkFirstFrameEvent);this.player.on("play",gfkPlayEvent);this.player.on("pause",gfkPauseEvent);this.player.on("beforeComplete",gfkBeforeCompleteEvent);this.player.on("stop",gfkStopEvent);this.player.on("seek",gfkSeekEvent);this.player.on("seeked",gfkSeekedEvent);this.player.on("mute",gfkMuteEvent);this.player.on("fullscreen",gfkFullscreenEvent)}
// AGTT Teletest Tracking END
// M3U8 ERROR EVENT
this.player.on("error",m3u8ErrorEvent);
// M3U8 ERROR EVENT END
// BOX PLAYLISTS
if(typeof this.playlistObject!=="undefined"){this.player.on("beforeComplete",clipBeforeCompleteEvent)}
// BOX PLAYLISTS END
if(typeof $.on=="function"){this.$replayBtn.on("click",replayVideo)}else{this.$replayBtn.click(replayVideo)}};JWPlayer_8_17_1.prototype.pauseOtherVideos=function(){var i=0;while(jwplayer(i).id){if(jwplayer(i)!==this.player){jwplayer(i).pause(true)}i++}};JWPlayer_8_17_1.prototype.showRelatedVideos=function(){this.$relatedWrapper.removeClass("videoPlayerRelatedWrapperHidden")};JWPlayer_8_17_1.prototype.hideRelatedVideos=function(){this.$relatedWrapper.addClass("videoPlayerRelatedWrapperHidden")};JWPlayer_8_17_1.prototype.setupPlayer=function(){if(typeof this.jwplayerId==="undefined"){return false}
// if gravity no autostart for other videos
if(document.body.classList.contains("withGravityAd")){this.playerOptions.autostart=false}
// autostart only if in active browser
if(!tab){
// if (!tab || oe24_jwplayer_setup_type == 'APP') {
this.playerOptions.autostart=false}if(oe24_jwplayer_app_device=="Android_oe24"){this.playerOptions.autostart=false}this.player=jwplayer(this.jwplayerId);this.player.setup(this.playerOptions);return true};JWPlayer_8_17_1.prototype.oe24TrackingEvent=function(){
// altes spunQ-Tracking
if(typeof oe24Tracking=="object"&&oe24Tracking.currentObject!=this.videoId){oe24Tracking.currentObject=this.videoId;oe24Tracking.trackPageView()}
// neues spunQ-Tracking (development)
if(typeof spunqTracking=="object"&&spunqTracking.getObjectId()!=this.videoId){spunqTracking.setObjectId(this.videoId);spunqTracking.trackEvent()}};JWPlayer_8_17_1.prototype.initGfkJsTracking=function(){(function(w,d,c,s,id,v){if(d.getElementById(id)){return}w[id]={};w[id].agents=[];var api=["playLive","playVOD","stop","skip","screen","volume","impression"];w.s=function(){function s(c,pId,cb){var sA={queue:[],config:c,cb:cb,pId:pId};api.forEach(function(e){sA[e]=function(){sA.p=cb();sA.queue.push({f:e,a:arguments})}});return sA}return s}();w[id].getAgent=function(cb,pId){var a={a:new w.s(c,pId||"",cb||function(){return 0})};api.forEach(function(e){a[e]=function(){return this.a[e].apply(this.a,arguments)}});w[id].agents.push(a);return a};var lJS=function(eId,url){var tag=d.createElement(s);var el=d.getElementsByTagName(s)[0];tag.id=eId;tag.async=true;tag.type="text/javascript";tag.src=url;el.parentNode.insertBefore(tag,el)};lJS(id,c.url)})(window,document,gfkS2sConf,"script","gfkS2s");var player=this.player;
// VOD: Callback method must return the current video position in milliseconds.
function videoPositionCallback(){if(oe24jwplayerAdTime!=undefined&&oe24jwplayerAdTime>0){var position=oe24jwplayerAdTime}else{var position=Math.round(player.getPosition()*1e3);//must return milliseconds!
}return position}
// playerId is the id of the <video> element
var playerId=this.jwplayerId;this.gfkAgent=gfkS2s.getAgent(videoPositionCallback,playerId)};JWPlayer_8_17_1.prototype.sendAnalyticsEvent=function(category,type,message){if(typeof this.ga==="undefined"){return false}if(typeof this.trackingName==="undefined"){return false}var trackingSend=this.trackingName+".send";if(typeof message==="undefined"){this.ga(trackingSend,"event",category,type)}else{this.ga(trackingSend,"event",category,type,message)}};JWPlayer_8_17_1.prototype.initGoogleAnalytics=function(){
// GoogleAnalytics Url
// https://developers.google.com/analytics/devguides/collection/analyticsjs/
// "GoogleAnalyticsObject" is ein fixer string, welcher den funktionsnamen enthaelt
// wie man von einem funktionsnamen auf das eigtl. objekt kommt zeigt diese seite
// http://www.sitepoint.com/call-javascript-function-string-without-using-eval/
var self=this;var googleAnalyticsString=window["GoogleAnalyticsObject"];if(typeof googleAnalyticsString==="undefined"){return false}this.ga=window[googleAnalyticsString];// hier kommt das eigentliche GoogleAnalyticsObject heraus
// readyCallBack Aufruf von GoogleAnalytics
this.ga(function(){
// diese Variable 'ga' ist NICHT "this.ga" oder "self.ga", warum auch immer
// um flexibel zu bleiben verwende ich hier einen variablenNamen
var ga=window[googleAnalyticsString];var tracker=ga.getByName("jwPlayer");if(typeof tracker==="undefined"){return false}self.trackingName=tracker.get("name")})};var __instances={};$.fn.jwPlayer=function(playlistObject){const selInstances=[];this.each(function(){const $this=$(this);var id=$this.attr("id");if(!__instances[id]){__instances[id]=new JWPlayer_8_17_1(this,playlistObject);__instances[id].player.on("ready",function(){$this.trigger("jwPlayerInit",__instances[id])})}selInstances.push(__instances[id])});return selInstances.length===1?selInstances[0]:selInstances}})(jQuery,jwplayer);window.addEventListener("tcfConsentLoaded",function(e){tcString=e.tcString;var elements=document.getElementsByClassName("js-jwplayer8_17_1");if(elements.length>0){$(".js-jwplayer8_17_1").jwPlayer()}});
/*
 * Lazy Load - jQuery plugin for lazy loading images
 *
 * Copyright (c) 2007-2013 Mika Tuupola
 *
 * Licensed under the MIT license:
 *   http://www.opensource.org/licenses/mit-license.php
 *
 * Project home:
 *   http://www.appelsiini.net/projects/lazyload
 *
 * Version:  1.9.3
 *
 */
(function($,window,document,undefined){var $window=$(window);$.fn.lazyload=function(options){var elements=this;var $container;var settings={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:window,data_attribute:"original",skip_invisible:true,appear:null,load:null,placeholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC"};function update(){var counter=0;elements.each(function(){var $this=$(this);if(settings.skip_invisible&&!$this.is(":visible")){return}if($.abovethetop(this,settings)||$.leftofbegin(this,settings)){
/* Nothing. */}else if(!$.belowthefold(this,settings)&&!$.rightoffold(this,settings)){$this.trigger("appear");
/* if we found an image we'll load, reset the counter */counter=0}else{if(++counter>settings.failure_limit){return false}}})}if(options){
/* Maintain BC for a couple of versions. */
if(undefined!==options.failurelimit){options.failure_limit=options.failurelimit;delete options.failurelimit}if(undefined!==options.effectspeed){options.effect_speed=options.effectspeed;delete options.effectspeed}$.extend(settings,options)}
/* Cache container as jQuery as object. */$container=settings.container===undefined||settings.container===window?$window:$(settings.container);
/* Fire one scroll event per scroll. Not one scroll event per image. */if(0===settings.event.indexOf("scroll")){$container.bind(settings.event,function(){return update()})}this.each(function(){var self=this;var $self=$(self);self.loaded=false;
/* If no src attribute given use data:uri. */if($self.attr("src")===undefined||$self.attr("src")===false){if($self.is("img")){$self.attr("src",settings.placeholder)}}
/* When appear is triggered load original image. */$self.one("appear",function(){if(!this.loaded){if(settings.appear){var elements_left=elements.length;settings.appear.call(self,elements_left,settings)}$("<img />").bind("load",function(){var original=$self.attr("data-"+settings.data_attribute);$self.hide();if($self.is("img")){$self.attr("src",original)}else{$self.css("background-image","url('"+original+"')")}$self[settings.effect](settings.effect_speed);self.loaded=true;
/* Remove image from array so it is not looped next time. */var temp=$.grep(elements,function(element){return!element.loaded});elements=$(temp);if(settings.load){var elements_left=elements.length;settings.load.call(self,elements_left,settings)}}).attr("src",$self.attr("data-"+settings.data_attribute))}});
/* When wanted event is triggered load original image */
/* by triggering appear.                              */if(0!==settings.event.indexOf("scroll")){$self.bind(settings.event,function(){if(!self.loaded){$self.trigger("appear")}})}});
/* Check if something appears when window is resized. */$window.bind("resize",function(){update()});
/* With IOS5 force loading images when navigating with back button. */
/* Non optimal workaround. */if(/(?:iphone|ipod|ipad).*os 5/gi.test(navigator.appVersion)){$window.bind("pageshow",function(event){if(event.originalEvent&&event.originalEvent.persisted){elements.each(function(){$(this).trigger("appear")})}})}
/* Force initial check if images should appear. */$(document).ready(function(){update()});return this};
/* Convenience methods in jQuery namespace.           */
/* Use as  $.belowthefold(element, {threshold : 100, container : window}) */$.belowthefold=function(element,settings){var fold;if(settings.container===undefined||settings.container===window){fold=(window.innerHeight?window.innerHeight:$window.height())+$window.scrollTop()}else{fold=$(settings.container).offset().top+$(settings.container).height()}return fold<=$(element).offset().top-settings.threshold};$.rightoffold=function(element,settings){var fold;if(settings.container===undefined||settings.container===window){fold=$window.width()+$window.scrollLeft()}else{fold=$(settings.container).offset().left+$(settings.container).width()}return fold<=$(element).offset().left-settings.threshold};$.abovethetop=function(element,settings){var fold;if(settings.container===undefined||settings.container===window){fold=$window.scrollTop()}else{fold=$(settings.container).offset().top}return fold>=$(element).offset().top+settings.threshold+$(element).height()};$.leftofbegin=function(element,settings){var fold;if(settings.container===undefined||settings.container===window){fold=$window.scrollLeft()}else{fold=$(settings.container).offset().left}return fold>=$(element).offset().left+settings.threshold+$(element).width()};$.inviewport=function(element,settings){return!$.rightoffold(element,settings)&&!$.leftofbegin(element,settings)&&!$.belowthefold(element,settings)&&!$.abovethetop(element,settings)};
/* Custom selectors for your convenience.   */
/* Use as $("img:below-the-fold").something() or */
/* $("img").filter(":below-the-fold").something() which is faster */$.extend($.expr[":"],{"below-the-fold":function(a){return $.belowthefold(a,{threshold:0})},"above-the-top":function(a){return!$.belowthefold(a,{threshold:0})},"right-of-screen":function(a){return $.rightoffold(a,{threshold:0})},"left-of-screen":function(a){return!$.rightoffold(a,{threshold:0})},"in-viewport":function(a){return $.inviewport(a,{threshold:0})},
/* Maintain BC for couple of versions. */
"above-the-fold":function(a){return!$.belowthefold(a,{threshold:0})},"right-of-fold":function(a){return $.rightoffold(a,{threshold:0})},"left-of-fold":function(a){return!$.rightoffold(a,{threshold:0})}})})(jQuery,window,document);$("img.oe24Lazy").lazyload({threshold:140,skip_invisible:false});
/*
     _ _      _       _
 ___| (_) ___| | __  (_)___
/ __| | |/ __| |/ /  | / __|
\__ \ | | (__|   < _ | \__ \
|___/_|_|\___|_|\_(_)/ |___/
                   |__/

 Version: 1.3.7
  Author: Ken Wheeler
 Website: http://kenwheeler.github.io
    Docs: http://kenwheeler.github.io/slick
    Repo: http://github.com/kenwheeler/slick
  Issues: http://github.com/kenwheeler/slick/issues

 */
/* global window, document, define, jQuery, setInterval, clearInterval */
(function(factory){"use strict";if(typeof define==="function"&&define.amd){define(["jquery"],factory)}else{factory(jQuery)}})(function($){"use strict";var Slick=window.Slick||{};Slick=function(){var instanceUid=0;function Slick(element,settings){var _=this,responsiveSettings,breakpoint;_.defaults={accessibility:true,appendArrows:$(element),arrows:true,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next">Next</button>',autoplay:false,autoplaySpeed:3e3,centerMode:false,centerPadding:"50px",cssEase:"ease",customPaging:function(slider,i){return'<button type="button" data-role="none">'+(i+1)+"</button>"},dots:false,dotsClass:"slick-dots",draggable:true,easing:"linear",fade:false,focusOnSelect:false,infinite:true,lazyLoad:"ondemand",onBeforeChange:null,onAfterChange:null,onInit:null,onReInit:null,pauseOnHover:true,pauseOnDotsHover:false,responsive:null,rtl:false,slide:"div",slidesToShow:1,slidesToScroll:1,speed:300,swipe:true,touchMove:true,touchThreshold:5,useCSS:true,vertical:false};_.initials={animating:false,dragging:false,autoPlayTimer:null,currentSlide:0,currentLeft:null,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:false,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:false};$.extend(_,_.initials);_.activeBreakpoint=null;_.animType=null;_.animProp=null;_.breakpoints=[];_.breakpointSettings=[];_.cssTransitions=false;_.paused=false;_.positionProp=null;_.$slider=$(element);_.$slidesCache=null;_.transformType=null;_.transitionType=null;_.windowWidth=0;_.windowTimer=null;_.options=$.extend({},_.defaults,settings);_.originalSettings=_.options;responsiveSettings=_.options.responsive||null;if(responsiveSettings&&responsiveSettings.length>-1){for(breakpoint in responsiveSettings){if(responsiveSettings.hasOwnProperty(breakpoint)){_.breakpoints.push(responsiveSettings[breakpoint].breakpoint);_.breakpointSettings[responsiveSettings[breakpoint].breakpoint]=responsiveSettings[breakpoint].settings}}_.breakpoints.sort(function(a,b){return b-a})}_.autoPlay=$.proxy(_.autoPlay,_);_.autoPlayClear=$.proxy(_.autoPlayClear,_);_.changeSlide=$.proxy(_.changeSlide,_);_.selectHandler=$.proxy(_.selectHandler,_);_.setPosition=$.proxy(_.setPosition,_);_.swipeHandler=$.proxy(_.swipeHandler,_);_.dragHandler=$.proxy(_.dragHandler,_);_.keyHandler=$.proxy(_.keyHandler,_);_.autoPlayIterator=$.proxy(_.autoPlayIterator,_);_.instanceUid=instanceUid++;
// A simple way to check for HTML strings
// Strict HTML recognition (must start with <)
// Extracted from jQuery v1.11 source
_.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/;_.init()}return Slick}();Slick.prototype.addSlide=function(markup,index,addBefore){var _=this;if(typeof index==="boolean"){addBefore=index;index=null}else if(index<0||index>=_.slideCount){return false}_.unload();if(typeof index==="number"){if(index===0&&_.$slides.length===0){$(markup).appendTo(_.$slideTrack)}else if(addBefore){$(markup).insertBefore(_.$slides.eq(index))}else{$(markup).insertAfter(_.$slides.eq(index))}}else{if(addBefore===true){$(markup).prependTo(_.$slideTrack)}else{$(markup).appendTo(_.$slideTrack)}}_.$slides=_.$slideTrack.children(this.options.slide);_.$slideTrack.children(this.options.slide).detach();_.$slideTrack.append(_.$slides);_.$slides.each(function(index,element){$(element).attr("index",index)});_.$slidesCache=_.$slides;_.reinit()};Slick.prototype.animateSlide=function(targetLeft,callback){var animProps={},_=this;if(_.options.rtl===true&&_.options.vertical===false){targetLeft=-targetLeft}if(_.transformsEnabled===false){if(_.options.vertical===false){_.$slideTrack.animate({left:targetLeft},_.options.speed,_.options.easing,callback)}else{_.$slideTrack.animate({top:targetLeft},_.options.speed,_.options.easing,callback)}}else{if(_.cssTransitions===false){$({animStart:_.currentLeft}).animate({animStart:targetLeft},{duration:_.options.speed,easing:_.options.easing,step:function(now){if(_.options.vertical===false){animProps[_.animType]="translate("+now+"px, 0px)";_.$slideTrack.css(animProps)}else{animProps[_.animType]="translate(0px,"+now+"px)";_.$slideTrack.css(animProps)}},complete:function(){if(callback){callback.call()}}})}else{_.applyTransition();if(_.options.vertical===false){animProps[_.animType]="translate3d("+targetLeft+"px, 0px, 0px)"}else{animProps[_.animType]="translate3d(0px,"+targetLeft+"px, 0px)"}_.$slideTrack.css(animProps);if(callback){setTimeout(function(){_.disableTransition();callback.call()},_.options.speed)}}}};Slick.prototype.applyTransition=function(slide){var _=this,transition={};if(_.options.fade===false){transition[_.transitionType]=_.transformType+" "+_.options.speed+"ms "+_.options.cssEase}else{transition[_.transitionType]="opacity "+_.options.speed+"ms "+_.options.cssEase}if(_.options.fade===false){_.$slideTrack.css(transition)}else{_.$slides.eq(slide).css(transition)}};Slick.prototype.autoPlay=function(){var _=this;if(_.autoPlayTimer){clearInterval(_.autoPlayTimer)}if(_.slideCount>_.options.slidesToShow&&_.paused!==true){_.autoPlayTimer=setInterval(_.autoPlayIterator,_.options.autoplaySpeed)}};Slick.prototype.autoPlayClear=function(){var _=this;if(_.autoPlayTimer){clearInterval(_.autoPlayTimer)}};Slick.prototype.autoPlayIterator=function(){var _=this;var asNavFor=_.options.asNavFor!=null?$(_.options.asNavFor).getSlick():null;if(_.options.infinite===false){if(_.direction===1){if(_.currentSlide+1===_.slideCount-1){_.direction=0}_.slideHandler(_.currentSlide+_.options.slidesToScroll);if(asNavFor!=null)asNavFor.slideHandler(asNavFor.currentSlide+asNavFor.options.slidesToScroll)}else{if(_.currentSlide-1===0){_.direction=1}_.slideHandler(_.currentSlide-_.options.slidesToScroll);if(asNavFor!=null)asNavFor.slideHandler(asNavFor.currentSlide-asNavFor.options.slidesToScroll)}}else{_.slideHandler(_.currentSlide+_.options.slidesToScroll);if(asNavFor!=null)asNavFor.slideHandler(asNavFor.currentSlide+asNavFor.options.slidesToScroll)}};Slick.prototype.buildArrows=function(){var _=this;if(_.options.arrows===true&&_.slideCount>_.options.slidesToShow){_.$prevArrow=$(_.options.prevArrow);_.$nextArrow=$(_.options.nextArrow);if(_.htmlExpr.test(_.options.prevArrow)){_.$prevArrow.appendTo(_.options.appendArrows)}if(_.htmlExpr.test(_.options.nextArrow)){_.$nextArrow.appendTo(_.options.appendArrows)}if(_.options.infinite!==true){_.$prevArrow.addClass("slick-disabled")}}};Slick.prototype.buildDots=function(){var _=this,i,dotString;if(_.options.dots===true&&_.slideCount>_.options.slidesToShow){dotString='<ul class="'+_.options.dotsClass+'">';for(i=0;i<=_.getDotCount();i+=1){dotString+="<li>"+_.options.customPaging.call(this,_,i)+"</li>"}dotString+="</ul>";_.$dots=$(dotString).appendTo(_.$slider);_.$dots.find("li").first().addClass("slick-active")}};Slick.prototype.buildOut=function(){var _=this;_.$slides=_.$slider.children(_.options.slide+":not(.slick-cloned)").addClass("slick-slide");_.slideCount=_.$slides.length;_.$slides.each(function(index,element){$(element).attr("index",index)});_.$slidesCache=_.$slides;_.$slider.addClass("slick-slider");_.$slideTrack=_.slideCount===0?$('<div class="slick-track"/>').appendTo(_.$slider):_.$slides.wrapAll('<div class="slick-track"/>').parent();_.$list=_.$slideTrack.wrap('<div class="slick-list"/>').parent();_.$slideTrack.css("opacity",0);if(_.options.centerMode===true){_.options.slidesToScroll=1;if(_.options.slidesToShow%2===0){_.options.slidesToShow=3}}$("img[data-lazy]",_.$slider).not("[src]").addClass("slick-loading");_.setupInfinite();_.buildArrows();_.buildDots();_.updateDots();if(_.options.accessibility===true){_.$list.prop("tabIndex",0)}_.setSlideClasses(typeof this.currentSlide==="number"?this.currentSlide:0);if(_.options.draggable===true){_.$list.addClass("draggable")}};Slick.prototype.checkResponsive=function(){var _=this,breakpoint,targetBreakpoint;if(_.originalSettings.responsive&&_.originalSettings.responsive.length>-1&&_.originalSettings.responsive!==null){targetBreakpoint=null;for(breakpoint in _.breakpoints){if(_.breakpoints.hasOwnProperty(breakpoint)){if($(window).width()<_.breakpoints[breakpoint]){targetBreakpoint=_.breakpoints[breakpoint]}}}if(targetBreakpoint!==null){if(_.activeBreakpoint!==null){if(targetBreakpoint!==_.activeBreakpoint){_.activeBreakpoint=targetBreakpoint;_.options=$.extend({},_.options,_.breakpointSettings[targetBreakpoint]);_.refresh()}}else{_.activeBreakpoint=targetBreakpoint;_.options=$.extend({},_.options,_.breakpointSettings[targetBreakpoint]);_.refresh()}}else{if(_.activeBreakpoint!==null){_.activeBreakpoint=null;_.options=$.extend({},_.options,_.originalSettings);_.refresh()}}}};Slick.prototype.changeSlide=function(event){var _=this,$target=$(event.target);var asNavFor=_.options.asNavFor!=null?$(_.options.asNavFor).getSlick():null;
// If target is a link, prevent default action.
$target.is("a")&&event.preventDefault();switch(event.data.message){case"previous":if(_.slideCount>_.options.slidesToShow){_.slideHandler(_.currentSlide-_.options.slidesToScroll);if(asNavFor!=null)asNavFor.slideHandler(asNavFor.currentSlide-asNavFor.options.slidesToScroll)}break;case"next":if(_.slideCount>_.options.slidesToShow){_.slideHandler(_.currentSlide+_.options.slidesToScroll);if(asNavFor!=null)asNavFor.slideHandler(asNavFor.currentSlide+asNavFor.options.slidesToScroll)}break;case"index":var index=$(event.target).parent().index()*_.options.slidesToScroll;_.slideHandler(index);if(asNavFor!=null)asNavFor.slideHandler(index);break;default:return false}};Slick.prototype.destroy=function(){var _=this;_.autoPlayClear();_.touchObject={};$(".slick-cloned",_.$slider).remove();if(_.$dots){_.$dots.remove()}if(_.$prevArrow){_.$prevArrow.remove();_.$nextArrow.remove()}if(_.$slides.parent().hasClass("slick-track")){_.$slides.unwrap().unwrap()}_.$slides.removeClass("slick-slide slick-active slick-visible").removeAttr("style");_.$slider.removeClass("slick-slider");_.$slider.removeClass("slick-initialized");_.$list.off(".slick");$(window).off(".slick-"+_.instanceUid);$(document).off(".slick-"+_.instanceUid)};Slick.prototype.disableTransition=function(slide){var _=this,transition={};transition[_.transitionType]="";if(_.options.fade===false){_.$slideTrack.css(transition)}else{_.$slides.eq(slide).css(transition)}};Slick.prototype.fadeSlide=function(slideIndex,callback){var _=this;if(_.cssTransitions===false){_.$slides.eq(slideIndex).css({zIndex:1e3});_.$slides.eq(slideIndex).animate({opacity:1},_.options.speed,_.options.easing,callback)}else{_.applyTransition(slideIndex);_.$slides.eq(slideIndex).css({opacity:1,zIndex:1e3});if(callback){setTimeout(function(){_.disableTransition(slideIndex);callback.call()},_.options.speed)}}};Slick.prototype.filterSlides=function(filter){var _=this;if(filter!==null){_.unload();_.$slideTrack.children(this.options.slide).detach();_.$slidesCache.filter(filter).appendTo(_.$slideTrack);_.reinit()}};Slick.prototype.getCurrent=function(){var _=this;return _.currentSlide};Slick.prototype.getDotCount=function(){var _=this,breaker=0,dotCounter=0,dotCount=0,dotLimit;dotLimit=_.options.infinite===true?_.slideCount+_.options.slidesToShow-_.options.slidesToScroll:_.slideCount;while(breaker<dotLimit){dotCount++;dotCounter+=_.options.slidesToScroll;breaker=dotCounter+_.options.slidesToShow}return dotCount};Slick.prototype.getLeft=function(slideIndex){var _=this,targetLeft,verticalHeight,verticalOffset=0;_.slideOffset=0;verticalHeight=_.$slides.first().outerHeight();if(_.options.infinite===true){if(_.slideCount>_.options.slidesToShow){_.slideOffset=_.slideWidth*_.options.slidesToShow*-1;verticalOffset=verticalHeight*_.options.slidesToShow*-1}if(_.slideCount%_.options.slidesToScroll!==0){if(slideIndex+_.options.slidesToScroll>_.slideCount&&_.slideCount>_.options.slidesToShow){_.slideOffset=_.slideCount%_.options.slidesToShow*_.slideWidth*-1;verticalOffset=_.slideCount%_.options.slidesToShow*verticalHeight*-1}}}else{if(_.slideCount%_.options.slidesToShow!==0){if(slideIndex+_.options.slidesToScroll>_.slideCount&&_.slideCount>_.options.slidesToShow){_.slideOffset=_.options.slidesToShow*_.slideWidth-_.slideCount%_.options.slidesToShow*_.slideWidth;verticalOffset=_.slideCount%_.options.slidesToShow*verticalHeight}}}if(_.options.centerMode===true&&_.options.infinite===true){_.slideOffset+=_.slideWidth*Math.floor(_.options.slidesToShow/2)-_.slideWidth}else if(_.options.centerMode===true){_.slideOffset+=_.slideWidth*Math.floor(_.options.slidesToShow/2)}if(_.options.vertical===false){targetLeft=slideIndex*_.slideWidth*-1+_.slideOffset}else{targetLeft=slideIndex*verticalHeight*-1+verticalOffset}return targetLeft};Slick.prototype.init=function(){var _=this;if(!$(_.$slider).hasClass("slick-initialized")){$(_.$slider).addClass("slick-initialized");_.buildOut();_.setProps();_.startLoad();_.loadSlider();_.initializeEvents();_.checkResponsive()}if(_.options.onInit!==null){_.options.onInit.call(this,_)}};Slick.prototype.initArrowEvents=function(){var _=this;if(_.options.arrows===true&&_.slideCount>_.options.slidesToShow){_.$prevArrow.on("click.slick",{message:"previous"},_.changeSlide);_.$nextArrow.on("click.slick",{message:"next"},_.changeSlide)}};Slick.prototype.initDotEvents=function(){var _=this;if(_.options.dots===true&&_.slideCount>_.options.slidesToShow){$("li",_.$dots).on("click.slick",{message:"index"},_.changeSlide)}if(_.options.dots===true&&_.options.pauseOnDotsHover===true&&_.options.autoplay===true){$("li",_.$dots).on("mouseenter.slick",_.autoPlayClear).on("mouseleave.slick",_.autoPlay)}};Slick.prototype.initializeEvents=function(){var _=this;_.initArrowEvents();_.initDotEvents();_.$list.on("touchstart.slick mousedown.slick",{action:"start"},_.swipeHandler);_.$list.on("touchmove.slick mousemove.slick",{action:"move"},_.swipeHandler);_.$list.on("touchend.slick mouseup.slick",{action:"end"},_.swipeHandler);_.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},_.swipeHandler);if(_.options.pauseOnHover===true&&_.options.autoplay===true){_.$list.on("mouseenter.slick",_.autoPlayClear);_.$list.on("mouseleave.slick",_.autoPlay)}if(_.options.accessibility===true){_.$list.on("keydown.slick",_.keyHandler)}if(_.options.focusOnSelect===true){$(_.options.slide,_.$slideTrack).on("click.slick",_.selectHandler)}$(window).on("orientationchange.slick.slick-"+_.instanceUid,function(){_.checkResponsive();_.setPosition()});$(window).on("resize.slick.slick-"+_.instanceUid,function(){if($(window).width()!==_.windowWidth){clearTimeout(_.windowDelay);_.windowDelay=window.setTimeout(function(){_.windowWidth=$(window).width();_.checkResponsive();_.setPosition()},50)}});$(window).on("load.slick.slick-"+_.instanceUid,_.setPosition);$(document).on("ready.slick.slick-"+_.instanceUid,_.setPosition)};Slick.prototype.initUI=function(){var _=this;if(_.options.arrows===true&&_.slideCount>_.options.slidesToShow){_.$prevArrow.show();_.$nextArrow.show()}if(_.options.dots===true&&_.slideCount>_.options.slidesToShow){_.$dots.show()}if(_.options.autoplay===true){_.autoPlay()}};Slick.prototype.keyHandler=function(event){var _=this;if(event.keyCode===37){_.changeSlide({data:{message:"previous"}})}else if(event.keyCode===39){_.changeSlide({data:{message:"next"}})}};Slick.prototype.lazyLoad=function(){var _=this,loadRange,cloneRange,rangeStart,rangeEnd;
// function loadImages(imagesScope) {
//     $('img[data-lazy]', imagesScope).each(function() {
//         var image = $(this),
//             imageSource = $(this).attr('data-lazy') + "?" + new Date().getTime();
//
//         image
//           .load(function() { image.animate({ opacity: 1 }, 200); })
//           .css({ opacity: 0 })
//           .attr('src', imageSource)
//           .removeAttr('data-lazy')
//           .removeClass('slick-loading');
//     });
// }
// (ws) 141015
function loadImages(imagesScope){$("img[data-lazy]",imagesScope).each(function(){var image=$(this),
// (ws) don't kill varnish
imageSource=$(this).attr("data-lazy");image.load(function(){image.animate({opacity:1},50)}).css({opacity:0}).attr("src",imageSource).removeAttr("data-lazy").removeClass("slick-loading")})}
// (ws) 141015 end
if(_.options.centerMode===true){if(_.options.infinite===true){rangeStart=_.currentSlide+(_.options.slidesToShow/2+1);rangeEnd=rangeStart+_.options.slidesToShow+2}else{rangeStart=Math.max(0,_.currentSlide-(_.options.slidesToShow/2+1));rangeEnd=2+(_.options.slidesToShow/2+1)+_.currentSlide}}else{rangeStart=_.options.infinite?_.options.slidesToShow+_.currentSlide:_.currentSlide;rangeEnd=rangeStart+_.options.slidesToShow;if(_.options.fade===true){if(rangeStart>0)rangeStart--;if(rangeEnd<=_.slideCount)rangeEnd++}}loadRange=_.$slider.find(".slick-slide").slice(rangeStart,rangeEnd);loadImages(loadRange);if(_.slideCount==1){cloneRange=_.$slider.find(".slick-slide");loadImages(cloneRange)}else if(_.currentSlide>=_.slideCount-_.options.slidesToShow){cloneRange=_.$slider.find(".slick-cloned").slice(0,_.options.slidesToShow);loadImages(cloneRange)}else if(_.currentSlide===0){cloneRange=_.$slider.find(".slick-cloned").slice(_.options.slidesToShow*-1);loadImages(cloneRange)}};Slick.prototype.loadSlider=function(){var _=this;_.setPosition();_.$slideTrack.css({opacity:1});_.$slider.removeClass("slick-loading");_.initUI();if(_.options.lazyLoad==="progressive"){_.progressiveLazyLoad()}};Slick.prototype.postSlide=function(index){var _=this;if(_.options.onAfterChange!==null){_.options.onAfterChange.call(this,_,index)}_.animating=false;_.setPosition();_.swipeLeft=null;if(_.options.autoplay===true&&_.paused===false){_.autoPlay()}};Slick.prototype.progressiveLazyLoad=function(){var _=this,imgCount,targetImage;imgCount=$("img[data-lazy]").length;if(imgCount>0){targetImage=$("img[data-lazy]",_.$slider).first();targetImage.attr("src",targetImage.attr("data-lazy")).removeClass("slick-loading").load(function(){targetImage.removeAttr("data-lazy");_.progressiveLazyLoad()})}};Slick.prototype.refresh=function(){var _=this,currentSlide=_.currentSlide;_.destroy();$.extend(_,_.initials);_.currentSlide=currentSlide;_.init()};Slick.prototype.reinit=function(){var _=this;_.$slides=_.$slideTrack.children(_.options.slide).addClass("slick-slide");_.slideCount=_.$slides.length;if(_.currentSlide>=_.slideCount&&_.currentSlide!==0){_.currentSlide=_.currentSlide-_.options.slidesToScroll}_.setProps();_.setupInfinite();_.buildArrows();_.updateArrows();_.initArrowEvents();_.buildDots();_.updateDots();_.initDotEvents();if(_.options.focusOnSelect===true){$(_.options.slide,_.$slideTrack).on("click.slick",_.selectHandler)}_.setSlideClasses(0);_.setPosition();if(_.options.onReInit!==null){_.options.onReInit.call(this,_)}};Slick.prototype.removeSlide=function(index,removeBefore){var _=this;if(typeof index==="boolean"){removeBefore=index;index=removeBefore===true?0:_.slideCount-1}else{index=removeBefore===true?--index:index}if(_.slideCount<1||index<0||index>_.slideCount-1){return false}_.unload();_.$slideTrack.children(this.options.slide).eq(index).remove();_.$slides=_.$slideTrack.children(this.options.slide);_.$slideTrack.children(this.options.slide).detach();_.$slideTrack.append(_.$slides);_.$slidesCache=_.$slides;_.reinit()};Slick.prototype.setCSS=function(position){var _=this,positionProps={},x,y;if(_.options.rtl===true){position=-position}x=_.positionProp=="left"?position+"px":"0px";y=_.positionProp=="top"?position+"px":"0px";positionProps[_.positionProp]=position;if(_.transformsEnabled===false){_.$slideTrack.css(positionProps)}else{positionProps={};if(_.cssTransitions===false){positionProps[_.animType]="translate("+x+", "+y+")";_.$slideTrack.css(positionProps)}else{positionProps[_.animType]="translate3d("+x+", "+y+", 0px)";_.$slideTrack.css(positionProps)}}};Slick.prototype.setDimensions=function(){var _=this;if(_.options.vertical===false){if(_.options.centerMode===true){_.$list.css({padding:"0px "+_.options.centerPadding})}}else{_.$list.height(_.$slides.first().outerHeight(true)*_.options.slidesToShow);if(_.options.centerMode===true){_.$list.css({padding:_.options.centerPadding+" 0px"})}}_.listWidth=_.$list.width();_.listHeight=_.$list.height();if(_.options.vertical===false){_.slideWidth=Math.ceil(_.listWidth/_.options.slidesToShow);_.$slideTrack.width(Math.ceil(_.slideWidth*_.$slideTrack.children(".slick-slide").length))}else{_.slideWidth=Math.ceil(_.listWidth);_.$slideTrack.height(Math.ceil(_.$slides.first().outerHeight(true)*_.$slideTrack.children(".slick-slide").length))}var offset=_.$slides.first().outerWidth(true)-_.$slides.first().width();_.$slideTrack.children(".slick-slide").width(_.slideWidth-offset)};Slick.prototype.setFade=function(){var _=this,targetLeft;_.$slides.each(function(index,element){targetLeft=_.slideWidth*index*-1;$(element).css({position:"relative",left:targetLeft,top:0,zIndex:800,opacity:0})});_.$slides.eq(_.currentSlide).css({zIndex:900,opacity:1})};Slick.prototype.setPosition=function(){var _=this;_.setDimensions();if(_.options.fade===false){_.setCSS(_.getLeft(_.currentSlide))}else{_.setFade()}};Slick.prototype.setProps=function(){var _=this,bodyStyle=document.body.style;_.positionProp=_.options.vertical===true?"top":"left";if(_.positionProp==="top"){_.$slider.addClass("slick-vertical")}else{_.$slider.removeClass("slick-vertical")}if(bodyStyle.WebkitTransition!==undefined||bodyStyle.MozTransition!==undefined||bodyStyle.msTransition!==undefined){if(_.options.useCSS===true){_.cssTransitions=true}}if(bodyStyle.OTransform!==undefined){_.animType="OTransform";_.transformType="-o-transform";_.transitionType="OTransition";if(bodyStyle.perspectiveProperty===undefined&&bodyStyle.webkitPerspective===undefined)_.animType=false}if(bodyStyle.MozTransform!==undefined){_.animType="MozTransform";_.transformType="-moz-transform";_.transitionType="MozTransition";if(bodyStyle.perspectiveProperty===undefined&&bodyStyle.MozPerspective===undefined)_.animType=false}if(bodyStyle.webkitTransform!==undefined){_.animType="webkitTransform";_.transformType="-webkit-transform";_.transitionType="webkitTransition";if(bodyStyle.perspectiveProperty===undefined&&bodyStyle.webkitPerspective===undefined)_.animType=false}if(bodyStyle.msTransform!==undefined){_.animType="msTransform";_.transformType="-ms-transform";_.transitionType="msTransition";if(bodyStyle.msTransform===undefined)_.animType=false}if(bodyStyle.transform!==undefined&&_.animType!==false){_.animType="transform";_.transformType="transform";_.transitionType="transition"}_.transformsEnabled=_.animType!==null&&_.animType!==false};Slick.prototype.setSlideClasses=function(index){var _=this,centerOffset,allSlides,indexOffset,remainder;_.$slider.find(".slick-slide").removeClass("slick-active").removeClass("slick-center");allSlides=_.$slider.find(".slick-slide");if(_.options.centerMode===true){centerOffset=Math.floor(_.options.slidesToShow/2);if(_.options.infinite===true){if(index>=centerOffset&&index<=_.slideCount-1-centerOffset){_.$slides.slice(index-centerOffset,index+centerOffset+1).addClass("slick-active")}else{indexOffset=_.options.slidesToShow+index;allSlides.slice(indexOffset-centerOffset+1,indexOffset+centerOffset+2).addClass("slick-active")}if(index===0){allSlides.eq(allSlides.length-1-_.options.slidesToShow).addClass("slick-center")}else if(index===_.slideCount-1){allSlides.eq(_.options.slidesToShow).addClass("slick-center")}}_.$slides.eq(index).addClass("slick-center")}else{if(index>=0&&index<=_.slideCount-_.options.slidesToShow){_.$slides.slice(index,index+_.options.slidesToShow).addClass("slick-active")}else if(allSlides.length<=_.options.slidesToShow){allSlides.addClass("slick-active")}else{remainder=_.slideCount%_.options.slidesToShow;indexOffset=_.options.infinite===true?_.options.slidesToShow+index:index;if(_.options.slidesToShow==_.options.slidesToScroll&&_.slideCount-index<_.options.slidesToShow){allSlides.slice(indexOffset-(_.options.slidesToShow-remainder),indexOffset+remainder).addClass("slick-active")}else{allSlides.slice(indexOffset,indexOffset+_.options.slidesToShow).addClass("slick-active")}}}if(_.options.lazyLoad==="ondemand"){_.lazyLoad()}};Slick.prototype.setupInfinite=function(){var _=this,i,slideIndex,infiniteCount;if(_.options.fade===true||_.options.vertical===true){_.options.centerMode=false}if(_.options.infinite===true&&_.options.fade===false){slideIndex=null;if(_.slideCount>_.options.slidesToShow){if(_.options.centerMode===true){infiniteCount=_.options.slidesToShow+1}else{infiniteCount=_.options.slidesToShow}for(i=_.slideCount;i>_.slideCount-infiniteCount;i-=1){slideIndex=i-1;$(_.$slides[slideIndex]).clone(true).attr("id","").prependTo(_.$slideTrack).addClass("slick-cloned")}for(i=0;i<infiniteCount;i+=1){slideIndex=i;$(_.$slides[slideIndex]).clone(true).attr("id","").appendTo(_.$slideTrack).addClass("slick-cloned")}_.$slideTrack.find(".slick-cloned").find("[id]").each(function(){$(this).attr("id","")})}}};Slick.prototype.selectHandler=function(event){var _=this;var asNavFor=_.options.asNavFor!=null?$(_.options.asNavFor).getSlick():null;
// (pj) / (ws) 2015-02-20
// var index = parseInt($(event.target).parent().attr("index"));
var index=parseInt($(event.target).parents(_.options.slide).attr("index"));
// (pj) / (ws) 2015-02-20 //
if(!index)index=0;if(_.slideCount<=_.options.slidesToShow){return}_.slideHandler(index);if(asNavFor!=null){if(asNavFor.slideCount<=asNavFor.options.slidesToShow){return}asNavFor.slideHandler(index)}};Slick.prototype.slideHandler=function(index){var targetSlide,animSlide,slideLeft,unevenOffset,targetLeft=null,_=this;if(_.animating===true){return false}targetSlide=index;targetLeft=_.getLeft(targetSlide);slideLeft=_.getLeft(_.currentSlide);unevenOffset=_.slideCount%_.options.slidesToScroll!==0?_.options.slidesToScroll:0;_.currentLeft=_.swipeLeft===null?slideLeft:_.swipeLeft;if(_.options.infinite===false&&_.options.centerMode===false&&(index<0||index>_.slideCount-_.options.slidesToShow+unevenOffset)){if(_.options.fade===false){targetSlide=_.currentSlide;_.animateSlide(slideLeft,function(){_.postSlide(targetSlide)})}return false}else if(_.options.infinite===false&&_.options.centerMode===true&&(index<0||index>_.slideCount-_.options.slidesToScroll)){if(_.options.fade===false){targetSlide=_.currentSlide;_.animateSlide(slideLeft,function(){_.postSlide(targetSlide)})}return false}if(_.options.autoplay===true){clearInterval(_.autoPlayTimer)}if(targetSlide<0){if(_.slideCount%_.options.slidesToScroll!==0){animSlide=_.slideCount-_.slideCount%_.options.slidesToScroll}else{animSlide=_.slideCount-_.options.slidesToScroll}}else if(targetSlide>_.slideCount-1){animSlide=0}else{animSlide=targetSlide}_.animating=true;if(_.options.onBeforeChange!==null&&index!==_.currentSlide){_.options.onBeforeChange.call(this,_,_.currentSlide,animSlide)}_.currentSlide=animSlide;_.setSlideClasses(_.currentSlide);_.updateDots();_.updateArrows();if(_.options.fade===true){_.fadeSlide(animSlide,function(){_.postSlide(animSlide)});return false}_.animateSlide(targetLeft,function(){_.postSlide(animSlide)})};Slick.prototype.startLoad=function(){var _=this;if(_.options.arrows===true&&_.slideCount>_.options.slidesToShow){_.$prevArrow.hide();_.$nextArrow.hide()}if(_.options.dots===true&&_.slideCount>_.options.slidesToShow){_.$dots.hide()}_.$slider.addClass("slick-loading")};Slick.prototype.swipeDirection=function(){var xDist,yDist,r,swipeAngle,_=this;xDist=_.touchObject.startX-_.touchObject.curX;yDist=_.touchObject.startY-_.touchObject.curY;r=Math.atan2(yDist,xDist);swipeAngle=Math.round(r*180/Math.PI);if(swipeAngle<0){swipeAngle=360-Math.abs(swipeAngle)}if(swipeAngle<=45&&swipeAngle>=0){return"left"}if(swipeAngle<=360&&swipeAngle>=315){return"left"}if(swipeAngle>=135&&swipeAngle<=225){return"right"}return"vertical"};Slick.prototype.swipeEnd=function(event){var _=this;var asNavFor=_.options.asNavFor!=null?$(_.options.asNavFor).getSlick():null;_.dragging=false;if(_.touchObject.curX===undefined){return false}if(_.touchObject.swipeLength>=_.touchObject.minSwipe){$(event.target).on("click.slick",function(event){event.stopImmediatePropagation();event.stopPropagation();event.preventDefault();$(event.target).off("click.slick")});switch(_.swipeDirection()){case"left":_.slideHandler(_.currentSlide+_.options.slidesToScroll);if(asNavFor!=null)asNavFor.slideHandler(asNavFor.currentSlide+asNavFor.options.slidesToScroll);_.touchObject={};break;case"right":_.slideHandler(_.currentSlide-_.options.slidesToScroll);if(asNavFor!=null)asNavFor.slideHandler(asNavFor.currentSlide-asNavFor.options.slidesToScroll);_.touchObject={};break}}else{if(_.touchObject.startX!==_.touchObject.curX){_.slideHandler(_.currentSlide);if(asNavFor!=null)asNavFor.slideHandler(asNavFor.currentSlide);_.touchObject={}}}};Slick.prototype.swipeHandler=function(event){var _=this;if(_.options.swipe===false||"ontouchend"in document&&_.options.swipe===false){return}else if(_.options.draggable===false||_.options.draggable===false&&!event.originalEvent.touches){return}_.touchObject.fingerCount=event.originalEvent&&event.originalEvent.touches!==undefined?event.originalEvent.touches.length:1;_.touchObject.minSwipe=_.listWidth/_.options.touchThreshold;switch(event.data.action){case"start":_.swipeStart(event);break;case"move":_.swipeMove(event);break;case"end":_.swipeEnd(event);break}};Slick.prototype.swipeMove=function(event){var _=this,curLeft,swipeDirection,positionOffset,touches;touches=event.originalEvent!==undefined?event.originalEvent.touches:null;curLeft=_.getLeft(_.currentSlide);if(!_.dragging||touches&&touches.length!==1){return false}_.touchObject.curX=touches!==undefined?touches[0].pageX:event.clientX;_.touchObject.curY=touches!==undefined?touches[0].pageY:event.clientY;_.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(_.touchObject.curX-_.touchObject.startX,2)));swipeDirection=_.swipeDirection();if(swipeDirection==="vertical"){return}if(event.originalEvent!==undefined&&_.touchObject.swipeLength>4){event.preventDefault()}positionOffset=_.touchObject.curX>_.touchObject.startX?1:-1;if(_.options.vertical===false){_.swipeLeft=curLeft+_.touchObject.swipeLength*positionOffset}else{_.swipeLeft=curLeft+_.touchObject.swipeLength*(_.$list.height()/_.listWidth)*positionOffset}if(_.options.fade===true||_.options.touchMove===false){return false}if(_.animating===true){_.swipeLeft=null;return false}_.setCSS(_.swipeLeft)};Slick.prototype.swipeStart=function(event){var _=this,touches;if(_.touchObject.fingerCount!==1||_.slideCount<=_.options.slidesToShow){_.touchObject={};return false}if(event.originalEvent!==undefined&&event.originalEvent.touches!==undefined){touches=event.originalEvent.touches[0]}_.touchObject.startX=_.touchObject.curX=touches!==undefined?touches.pageX:event.clientX;_.touchObject.startY=_.touchObject.curY=touches!==undefined?touches.pageY:event.clientY;_.dragging=true};Slick.prototype.unfilterSlides=function(){var _=this;if(_.$slidesCache!==null){_.unload();_.$slideTrack.children(this.options.slide).detach();_.$slidesCache.appendTo(_.$slideTrack);_.reinit()}};Slick.prototype.unload=function(){var _=this;$(".slick-cloned",_.$slider).remove();if(_.$dots){_.$dots.remove()}if(_.$prevArrow){_.$prevArrow.remove();_.$nextArrow.remove()}_.$slides.removeClass("slick-slide slick-active slick-visible").removeAttr("style")};Slick.prototype.updateArrows=function(){var _=this;if(_.options.arrows===true&&_.options.infinite!==true&&_.slideCount>_.options.slidesToShow){_.$prevArrow.removeClass("slick-disabled");_.$nextArrow.removeClass("slick-disabled");if(_.currentSlide===0){_.$prevArrow.addClass("slick-disabled");_.$nextArrow.removeClass("slick-disabled")}else if(_.currentSlide>=_.slideCount-_.options.slidesToShow){_.$nextArrow.addClass("slick-disabled");_.$prevArrow.removeClass("slick-disabled")}}};Slick.prototype.updateDots=function(){var _=this;if(_.$dots!==null){_.$dots.find("li").removeClass("slick-active");_.$dots.find("li").eq(Math.floor(_.currentSlide/_.options.slidesToScroll)).addClass("slick-active")}};$.fn.slick=function(options){var _=this;return _.each(function(index,element){element.slick=new Slick(element,options)})};$.fn.slickAdd=function(slide,slideIndex,addBefore){var _=this;return _.each(function(index,element){element.slick.addSlide(slide,slideIndex,addBefore)})};$.fn.slickCurrentSlide=function(){var _=this;return _.get(0).slick.getCurrent()};$.fn.slickFilter=function(filter){var _=this;return _.each(function(index,element){element.slick.filterSlides(filter)})};$.fn.slickGoTo=function(slide){var _=this;return _.each(function(index,element){var asNavFor=element.slick.options.asNavFor!=null?$(element.slick.options.asNavFor):null;if(asNavFor!=null)asNavFor.slickGoTo(slide);element.slick.slideHandler(slide)})};$.fn.slickNext=function(){var _=this;return _.each(function(index,element){element.slick.changeSlide({data:{message:"next"}})})};$.fn.slickPause=function(){var _=this;return _.each(function(index,element){element.slick.autoPlayClear();element.slick.paused=true})};$.fn.slickPlay=function(){var _=this;return _.each(function(index,element){element.slick.paused=false;element.slick.autoPlay()})};$.fn.slickPrev=function(){var _=this;return _.each(function(index,element){element.slick.changeSlide({data:{message:"previous"}})})};$.fn.slickRemove=function(slideIndex,removeBefore){var _=this;return _.each(function(index,element){element.slick.removeSlide(slideIndex,removeBefore)})};$.fn.slickGetOption=function(option){var _=this;return _.get(0).slick.options[option]};$.fn.slickSetOption=function(option,value,refresh){var _=this;return _.each(function(index,element){element.slick.options[option]=value;if(refresh===true){element.slick.unload();element.slick.reinit()}})};$.fn.slickUnfilter=function(){var _=this;return _.each(function(index,element){element.slick.unfilterSlides()})};$.fn.unslick=function(){var _=this;return _.each(function(index,element){if(element.slick){element.slick.destroy()}})};$.fn.getSlick=function(){var s=null;var _=this;_.each(function(index,element){s=element.slick});return s}});
/**
 * Article Pages
 */
/*!
 * Article Pages
 */function showTextPages(){this.box=$("#wrap article .article_body");this.gotoPage=function(page){this.box.find(".article_page_body").hide();this.box.find(".article_page_body:eq("+(page-1)+")").show();$("#wrap article .article_pages").each(function(){$(this).find("a").removeClass("active");$(this).find("a:eq("+(page-1)+")").addClass("active")})}}if($("#wrap article .article_pages").length>0){var pager=new showTextPages}$(".article_box .overlay_box .arrowContainer .arrow").click(function(e){
// console.log('OLD', this);
e.preventDefault();
/*
	var images = $('.article_box .overlay_box img');
	var imgLength = images.length;
	var imgIndex = $('.article_box .overlay_box img:visible').index();
	*/var images=$(this).parent().parent().children("img");var imgLength=images.length;var imgIndex=$(this).parent().parent().children("img:visible").index();
// (ws)
var copyright=$(".article_box .article_box_top_copyright");
// (ws) end
images.hide();if($(this).hasClass("arrowLeft")){imgIndex=imgIndex-1>=0?imgIndex-1:imgLength-1}else{imgIndex=imgIndex+1>=imgLength?0:imgIndex+1}$(images[imgIndex]).show();
// (ws)
$(copyright).removeClass("active");$(copyright[imgIndex]).addClass("active");
// (ws) end
oe24Tracking.loadOewa();oe24Tracking.googleAnalyticsRefreshTracking()});
/*
	jQuery autoComplete v1.0.7
    Copyright (c) 2014 Simon Steinberger / Pixabay
    GitHub: https://github.com/Pixabay/jQuery-autoComplete
	License: http://www.opensource.org/licenses/mit-license.php
*/
(function($){$.fn.autoComplete=function(options){var o=$.extend({},$.fn.autoComplete.defaults,options);
// public methods
if(typeof options=="string"){this.each(function(){var that=$(this);if(options=="destroy"){$(window).off("resize.autocomplete",that.updateSC);that.off("blur.autocomplete focus.autocomplete keydown.autocomplete keyup.autocomplete");if(that.data("autocomplete"))that.attr("autocomplete",that.data("autocomplete"));else that.removeAttr("autocomplete");$(that.data("sc")).remove();that.removeData("sc").removeData("autocomplete")}});return this}return this.each(function(){var that=$(this);
// sc = 'suggestions container'
that.sc=$('<div class="autocomplete-suggestions '+o.menuClass+'"></div>');that.data("sc",that.sc).data("autocomplete",that.attr("autocomplete"));that.attr("autocomplete","off");that.cache={};that.last_val="";that.updateSC=function(resize,next){that.sc.css({top:that.offset().top+that.outerHeight(),left:that.offset().left,width:that.outerWidth()});if(!resize){that.sc.show();if(!that.sc.maxHeight)that.sc.maxHeight=parseInt(that.sc.css("max-height"));if(!that.sc.suggestionHeight)that.sc.suggestionHeight=$(".autocomplete-suggestion",that.sc).first().outerHeight();if(that.sc.suggestionHeight)if(!next)that.sc.scrollTop(0);else{var scrTop=that.sc.scrollTop(),selTop=next.offset().top-that.sc.offset().top;if(selTop+that.sc.suggestionHeight-that.sc.maxHeight>0)that.sc.scrollTop(selTop+that.sc.suggestionHeight+scrTop-that.sc.maxHeight);else if(selTop<0)that.sc.scrollTop(selTop+scrTop)}}};$(window).on("resize.autocomplete",that.updateSC);that.sc.appendTo("body");that.sc.on("mouseleave",".autocomplete-suggestion",function(){$(".autocomplete-suggestion.selected").removeClass("selected")});that.sc.on("mouseenter",".autocomplete-suggestion",function(){$(".autocomplete-suggestion.selected").removeClass("selected");$(this).addClass("selected")});that.sc.on("mousedown",".autocomplete-suggestion",function(e){var item=$(this),v=item.data("val");if(v||item.hasClass("autocomplete-suggestion")){// else outside click
that.val(v);o.onSelect(e,v,item);that.sc.hide()}});that.on("blur.autocomplete",function(){try{over_sb=$(".autocomplete-suggestions:hover").length}catch(e){over_sb=0}// IE7 fix :hover
if(!over_sb){that.last_val=that.val();that.sc.hide();setTimeout(function(){that.sc.hide()},350);// hide suggestions on fast input
}else if(!that.is(":focus"))setTimeout(function(){that.focus()},20)});if(!o.minChars)that.on("focus.autocomplete",function(){that.last_val="\n";that.trigger("keyup.autocomplete")});function suggest(data){var val=that.val();that.cache[val]=data;if(data.length&&val.length>=o.minChars){var s="";for(var i=0;i<data.length;i++)s+=o.renderItem(data[i],val);that.sc.html(s);that.updateSC(0)}else that.sc.hide()}that.on("keydown.autocomplete",function(e){
// down (40), up (38)
if((e.which==40||e.which==38)&&that.sc.html()){var next,sel=$(".autocomplete-suggestion.selected",that.sc);if(!sel.length){next=e.which==40?$(".autocomplete-suggestion",that.sc).first():$(".autocomplete-suggestion",that.sc).last();that.val(next.addClass("selected").data("val"))}else{next=e.which==40?sel.next(".autocomplete-suggestion"):sel.prev(".autocomplete-suggestion");if(next.length){sel.removeClass("selected");that.val(next.addClass("selected").data("val"))}else{sel.removeClass("selected");that.val(that.last_val);next=0}}that.updateSC(0,next);return false}
// esc
else if(e.which==27)that.val(that.last_val).sc.hide();
// enter or tab
else if(e.which==13||e.which==9){var sel=$(".autocomplete-suggestion.selected",that.sc);if(sel.length&&that.sc.is(":visible")){o.onSelect(e,sel.data("val"),sel);setTimeout(function(){that.sc.hide()},20)}}});that.on("keyup.autocomplete",function(e){if(!~$.inArray(e.which,[13,27,35,36,37,38,39,40])){var val=that.val();if(val.length>=o.minChars){if(val!=that.last_val){that.last_val=val;clearTimeout(that.timer);if(o.cache){if(val in that.cache){suggest(that.cache[val]);return}
// no requests if previous suggestions were empty
for(var i=1;i<val.length-o.minChars;i++){var part=val.slice(0,val.length-i);if(part in that.cache&&!that.cache[part].length){suggest([]);return}}}that.timer=setTimeout(function(){o.source(val,suggest)},o.delay)}}else{that.last_val=val;that.sc.hide()}}})})};$.fn.autoComplete.defaults={source:0,minChars:3,delay:150,cache:1,menuClass:"",renderItem:function(item,search){
// escape special characters
search=search.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var re=new RegExp("("+search.split(" ").join("|")+")","gi");return'<div class="autocomplete-suggestion" data-val="'+item+'">'+item.replace(re,"<b>$1</b>")+"</div>"},onSelect:function(e,term,item){}}})(jQuery);(function($){"use strict";$.fn.Kommentare=function(options){var commentId=$(this).find('#setCommentForm :input[name="commentRef"]').val();if(typeof commentId==="undefined"){return}var addLeadingZeros=function(num){return num>=0&&num<10?"0"+num:""+num};var getCommentDateTime=function(timestamp){var date=new Date(timestamp*1e3);var tag=addLeadingZeros(date.getDate());var monat=addLeadingZeros(date.getMonth()+1);var jahr=date.getFullYear();var std=addLeadingZeros(date.getHours());var min=addLeadingZeros(date.getMinutes());return tag+"."+monat+"."+jahr+" "+std+":"+min};var getCommentDiv=function(comment,answerId,isPetition){var username=""===comment["firstname"]||""===comment["lastname"]?comment["username"]:comment["firstname"]+" "+comment["lastname"]+" ("+comment["username"]+")";if(isPetition&&username.substr(-7)==" (GAST)"){username=username.substr(0,username.length-7)}var commentId=answerId!==null?answerId:comment["id"];var commentName=$("<span></span>").addClass("name").text(username);var commentTrenner=$("<div></div>").addClass("trenner").text(">>");var commentDatum=$("<span></span>").addClass("datum").text(getCommentDateTime(comment["date"]));var commentAnswer=$("<a></a>").addClass("answerComment").addClass("right").data("answerId",commentId).text("Antworten");var commentClearfix=$("<div></div>").addClass("clearfix");var commentText=$("<p></p>").text(comment["text"]);var commentDivContainer=$("<div></div>").addClass("comment_div").append(commentName,[commentTrenner,commentDatum,commentAnswer,commentClearfix,commentText]);var commentDivAfter=$("<div></div>").addClass("comment_div_after");var commentDiv=$("<div></div>").addClass("comment").append(commentDivContainer,[commentDivAfter]);if(answerId!==null){commentDiv.addClass("antwort")}return commentDiv};var showComments=function(commentSection){var comments=$("#commentsContainer").data("comments");comments.reverse();var isPetition=$(commentSection).hasClass("no_borders");if(comments.length>0){$("#commentsContainer").html("")}for(var c=0;c<comments.length;++c){var commentDiv=getCommentDiv(comments[c],null,isPetition);$("#commentsContainer").append(commentDiv);if(comments[c]["answers"]!=null){for(var a=0;a<comments[c]["answers"].length;++a){var commentAnswerDiv=getCommentDiv(comments[c]["answers"][a],comments[c]["id"],isPetition);$("#commentsContainer").append(commentAnswerDiv)}}}};var loadComments=function(commentSection){$.ajax({url:"/user/json/getcomments/"+commentId,dataType:"json",
// cache: false,
success:function(response){console.log("comments success");if(response!==null){$("#commentsContainer").data("comments",response);$("#commentText").text("Posten Sie ("+response.length+")");$("#commentCounter span").text("("+response.length+")");showComments(commentSection)}
// (ws) 2015-11-25 OE2016-24
$("#commentsContainer").addClass("js-commentsDone");
// (ws) 2015-11-25 OE2016-24 //
}})};return this.each(function(i){var commentSection=this;loadComments(commentSection);
// Wenn user auf Antworten klickt
$(this).on("click",".comment .answerComment",function(){$("#setCommentForm").find(':input[name="commentAnswerRef"]').val($(this).data("answerId"));$(".commentsHeaderText").text("Posten Sie Ihre Antwort");$("#setCommentForm textarea").attr("placeholder","Schreiben Sie hier Ihre Antwort")});
// Wenn user ins Kommentarfeld was reinschreibt
$(this).find("#setCommentForm textarea").bind("keyup",function(){if($(this).val().length>0){$('#setCommentForm :input[name="setComment"]').val("1");$("#setCommentForm .button").removeAttr("disabled")}else{$('#setCommentForm :input[name="setComment"]').val("0");$("#setCommentForm .button").attr("disabled","disabled")}});
// Form-Submit
$(this).find("form").bind("submit",function(){var that=this;var data=$(this).serialize();$(commentSection).find("#commentMsg").text("");$(commentSection).find("#"+$(this).attr("id")+' button[type="submit"]').attr("disabled","disabled");$(commentSection).find("#"+$(this).attr("id")+' input[type="submit"]').attr("disabled","disabled");$.post("/user/json",data,function(response){$(commentSection).find("#"+$(that).attr("id")+' button[type="submit"]').removeAttr("disabled");$(commentSection).find("#"+$(that).attr("id")+' input[type="submit"]').removeAttr("disabled");if($(that).attr("id")=="logoutForm"){if(response.error===null){$(commentSection).find("#loginForm").css("display","inline");$(commentSection).find("#commentGuestUsername").css("display","inline");$(commentSection).find("#loginUsername").css("display","none");$(commentSection).find("#logoutForm").css("display","none");$(commentSection).find("#noFirstAndLastname").css("display","none");if($(commentSection).find("#commentGuestUsername").length==0){$(commentSection).find("#setCommentForm").css("display","none")}else{$(commentSection).find("#setCommentForm").css("display","inline")}$('#loginForm :input[name="username"]').focus()}}if($(that).attr("id")=="loginForm"){if(response.error===null){$(commentSection).find("#loginUsername").text("Hallo "+response.username);$(commentSection).find("#logoutForm").css("display","inline");$(commentSection).find("#loginUsername").css("display","inline");$(commentSection).find("#setCommentForm").css("display","inline");$(commentSection).find("#loginForm").css("display","none");$(commentSection).find("#commentGuestUsername").css("display","none");if($(commentSection).find("#commentGuestUsername").length==0){$(commentSection).find("#setCommentForm")[0].reset();$(commentSection).find("#setCommentForm textarea").val("");$(commentSection).find('#setCommentForm :input[name="setComment"]').val("0");$(commentSection).find('#setCommentForm :input[name="commentAnswerRef"]').val("0");$(commentSection).find("#setCommentForm textarea").attr("placeholder","Schreiben Sie hier Ihren Kommentar");$(commentSection).find(".commentsHeaderText").text("Posten Sie Ihre Meinung");$(commentSection).find('#setCommentForm :input[type="submit"]').attr("disabled","disabled")}$(commentSection).find("#setCommentForm textarea").focus();if(response.firstName===null||response.lastName===null){window.location.href="/user?noFirstLastName&redirect="+window.location.href;$(commentSection).find("#noFirstAndLastname").css("display","inline");$(commentSection).find("#setCommentForm").css("display","none")}}}if(response.success!==null){$(commentSection).find("#commentMsg").removeClass("error").addClass("success").html(response.success)}else if(response.error!==null){$(commentSection).find("#commentMsg").removeClass("success").addClass("error").html(response.error)}if(response.error===null){$(that)[0].reset();if($(that).attr("id")=="setCommentForm"){
// loadComments();
}}},"json").fail(function(){if($(that).attr("id")=="loginForm"){$(commentSection).find("#commentMsg").removeClass("success").addClass("error").html("Ein Fehler ist aufgetreten.")}$(commentSection).find("#"+$(that).attr("id")+' button[type="submit"]').removeAttr("disabled");$(commentSection).find("#"+$(that).attr("id")+' input[type="submit"]').removeAttr("disabled")});return false})})}})(jQuery);$("section.comments").Kommentare();(function($){$(".consoleBottomItems a, .consoleButtonPrev, .consoleButtonNext").on("click",function(e){e.preventDefault()});$(".consoleTopItems").each(function(){console.log("oe2016");var consoleContent=$(this).parents(".consoleContent");var syncItems=consoleContent.find(".consoleBottomItems");var prevArrow=consoleContent.find(".consoleButtonPrev");var nextArrow=consoleContent.find(".consoleButtonNext");var autoplay=consoleContent.data("autoplay");var autoplaySpeed=consoleContent.data("autoplay-speed");$(this).slick({prevArrow:prevArrow,nextArrow:nextArrow,autoplay:1===autoplay?true:false,autoplaySpeed:autoplaySpeed,draggable:false,fade:true,lazyLoad:"ondemand",slide:"a",slidesToShow:1,slidesToScroll:1,asNavFor:syncItems})});$(".consoleBottomItems").each(function(){var consoleContent=$(this).parents(".consoleContent");var syncItems=consoleContent.find(".consoleTopItems");var slidesToShow=consoleContent.data("slides-to-show");var consoleCounter=consoleContent.find(".consoleCounter");$(this).slick({arrows:false,draggable:false,slide:"a",slidesToShow:slidesToShow,slidesToScroll:1,focusOnSelect:true,speed:200,asNavFor:syncItems,onInit:function(){$(this.$list).on("click",function(e){if($(e.target).is("span")){$(e.target).parents("a").trigger("click")}});var current=$(this.$list).find(".slick-active").get(0);$(this.$list).find(".consoleBottomItem").removeClass("current");$(current).addClass("current")},onAfterChange:function(slider,pos){var current=$(this.$list).find(".slick-active").get(0);$(this.$list).find(".consoleBottomItem").removeClass("current");$(current).addClass("current");consoleCounter.text(pos+1+"/"+slider.slideCount)}})})})(jQuery);$(document).ready(function(){});(function($,win,doc,undefined){"use strict";function ConsoleOe24(element,opts){var stories=$(element).children(".consoleStories"),counter=$(element).children(".consoleCounter"),navigation=$(element).find(".consoleNavigation"),prevArrow=$(element).find(".slickPrev"),nextArrow=$(element).find(".slickNext"),storyItems=stories.children(".consoleStoriesItem"),interval=navigation.data("interval");stories.slick({
// asNavFor: navigation,
arrows:false,draggable:false,fade:true,lazyLoad:"ondemand",slidesToShow:1,slidesToScroll:1,slide:"a",onInit:function(){navigation.css({display:"block",width:"100%"});storyItems.css({display:"block"})},onBeforeChange:function(slider,pos,nextPos){counter.text(nextPos+1+"/"+slider.slideCount)}});navigation.slick({asNavFor:stories,arrows:true,prevArrow:prevArrow,nextArrow:nextArrow,
// autoplay: false,
autoplay:true,autoplaySpeed:interval,draggable:false,focusOnSelect:true,lazyLoad:"ondemand",pauseOnHover:true,slidesToShow:4,slidesToScroll:1,slide:"a",speed:250,onInit:function(){prevArrow.on("click",function(e){navigation.slickPause()});nextArrow.on("click",function(e){navigation.slickPause()})}});
// In onInit funktioniert preventDefault() nicht fuer die geklonten Items
$(element).find(".consoleNavigationItem").on("click",function(e){e.preventDefault();navigation.slickPause()})}$.fn.consoleOe24=function(opts){return this.each(function(){new ConsoleOe24(this,opts)})}})(jQuery,window,document);
// (ws) 2016-03-07
if(false===$("#wrap").hasClass("oe2016")||$("#wrap").hasClass("layout_tv")){
// $('.console').consoleOe24();
$(".console").not(".flickity").consoleOe24()}
// (ws) 2016-03-07 end
// $(document).ready(function() {
// 	setTimeout(function () {
// 		$('.console .captionContainer').fadeIn("fast");
// 	}, 2000);
// });
$(document).ready(function(){function CookiesOverlay(element,opts){this.element=element;this.opts=opts;if(true===this.checkCookie()){return}this.init()}CookiesOverlay.prototype.init=function(){var self=this;if($(this.element).hasClass("layout_oe24_mobile")){if(getCookie("appStickyCorrection")){$(this.element).css("bottom","94px")}else{$(this.element).css("bottom","50px")}}$(this.element).addClass("cookiesOverlayEnabled");$(this.opts.closeButton).on("click",function(e){e.preventDefault();self.setCookie()})};CookiesOverlay.prototype.setCookie=function(){var d=new Date;d.setTime(d.getTime()+this.opts.expires*24*60*60*1e3);document.cookie=this.opts.name+"="+this.opts.value+";expires="+d.toUTCString()+";path=/; ";this.checkCookie()};CookiesOverlay.prototype.checkCookie=function(){
// IE8 kennt Array.prototype.indexOf() nicht!
// pos = document.cookie.split(';').indexOf(cookie);
var pos=-1;var arr=document.cookie.split(";");for(var n=0;n<arr.length;n++){if(arr[n].trim()===this.opts.name+"="+this.opts.value){pos=n;break}}if(pos>=0){$(this.element).removeClass("cookiesOverlayEnabled");return true}return false};$.fn.cookiesOverlay=function(opts){return this.each(function(){new CookiesOverlay(this,opts)})};$(".cookiesOverlay").cookiesOverlay({name:"cookiesOverlay",value:"cookiesOverlayAccepted",expires:365*2,closeButton:$(".cookiesOverlayClose")[0]})});function startFishtankParallax(channelName,adSlotBanner,className){
// $('.fishtank').css('position', 'relative').css('left', '0px');
// $('.fishtank .ad').css('height', '855px').css('background-image', 'url(/images/000000516131.png)');
if($(".fishtank").length===0){return}var navPortal=$(".nav_portal").height();var fishtankHeight=$(".fishtank").height();var startScrollingDelay=fishtankHeight/2;var fishtankTop=$(".fishtank").offset().top+startScrollingDelay;var fishtankImgHeight=$(".fishtank .ad").height();var fishtankOverflow=fishtankImgHeight-fishtankHeight;var startScroll=fishtankTop-$(window).height();$(window).scroll(function(){var navMain=$(".nav_main").height();var scrollView=$(window).height()-navPortal-navMain;// + $('.fishtank').height();
var scrollTop=$(window).scrollTop();if(scrollTop>startScroll&&scrollTop+navPortal+navMain<fishtankTop-startScrollingDelay){var diff=(scrollTop-startScroll)/(scrollView-startScrollingDelay);var translateNew=fishtankOverflow*diff;$(".fishtank .ad").css("transform","translateY(-"+translateNew+"px)")}if(scrollTop<startScroll){$(".fishtank .ad").css("transform","translateY(0px)")}if(scrollTop+navPortal+navMain>fishtankTop-startScrollingDelay){$(".fishtank .ad").css("transform","translateY(-"+fishtankOverflow+"px)")}})}if(typeof window["setFishtankParallax"]!=="undefined"){window["setFishtankParallax"].forEach(function(entry){startFishtankParallax(entry[0],$(entry[1]).attr("id"),adSlotsSticky[$(entry[1]).attr("id")])})}function GravityAd(options){this.options=options;this.playerMajorVersion=globalPlayerMajorVersion;var rc=this.init();if(false===rc){return}this.addPlayerEventListener();this.player.setMute(true);
// this.player.play(true);
}
// -------------------------------------------------------
// -------------------------------------------------------
GravityAd.prototype.addPlayerEventListener=function(){var self=this;function playerReady(){var timeoutId;self.bodyClass=self.bodyElement.className;self.bodyElement.className=[self.bodyClass,"withGravityAd"].join(" ");self.addWindowEventListener();self.addMoveEventListener();self.addVolumeEventListener();window.scrollTo(0,0);
// jwplayer 6 braucht lange, bis die Hoehe des Containers angepasst ist
function checkContainerHeight(){var containerHeight=document.querySelector("#gravityPlayerContent").clientHeight;if(containerHeight>0){clearTimeout(timeoutId);self.updatePositions()}else{timeoutId=setTimeout(checkContainerHeight,50)}}timeoutId=setTimeout(checkContainerHeight,50)}function playerPlay(){
// (ws) 2016-01-19 Skyscaper nicht zeigen, wenn Gravity-Ad abgespielt wird
self.skyscrapers.style.display="none";
// (pj) 2015-11-17 Gravity Container auf Block erst bei Video Play setzen
self.gravityContainer.style.display="block";
// self.updatePositions();
// (pj) 2015-11-17 end
}function playerComplete(){if(self.options.maxPlayCounter<1){
// 1) Ein Wert <= 0 bedeutet, dass das Video endlos neu gestartet wird
self.player.play(true)}else if(self.options.maxPlayCounter>=1&&self.currentPlayCounter<self.options.maxPlayCounter){
// 2) Ein Wert groesser 0 (1, 2, ... ) bedeutet, dass das Video so oft abgespielt wird, wie angegeben
self.currentPlayCounter++;self.player.play(true)}else{
// self.player.remove();
// self.gravityContainer.style.display = 'none';
self.player.stop();
// (ws) 2016-01-19 Skyscaper zeigen, wenn Gravity-Ad nicht abgespielt wird
self.skyscrapers.style.display="block"}}function playerClick(){window.open(self.options.url)}function playerSetupError(){self.player.remove();self.gravityContainer.style.display="none"}
// -----------------------------------------------
// -----------------------------------------------
if(6===globalPlayerMajorVersion){self.player.onReady(playerReady);
// (pj) 2015-11-17 bei onPlay soll erst der gravityContainer sichtbar werden.
// Wunsch von Florian/Georg, da sonst lange Zeite eine schwarze Flaeche sichtbar ist.
self.player.onPlay(playerPlay);
// (pj) 2015-11-17 end
self.player.onComplete(playerComplete);self.player.onDisplayClick(playerClick);self.player.onSetupError(playerSetupError)}else if(7===globalPlayerMajorVersion){self.player.on("ready",playerReady);
// (pj) 2015-11-17 bei onPlay soll erst der gravityContainer sichtbar werden.
// Wunsch von Florian/Georg, da sonst lange Zeite eine schwarze Flaeche sichtbar ist.
self.player.on("play",playerPlay);
// (pj) 2015-11-17 end
self.player.on("complete",playerComplete);self.player.on("click",playerClick);self.player.on("setupError",playerSetupError);
// (bs) 2018-02-16 Anpassungen für das Update auf Version 8
}else if(8===globalPlayerMajorVersion){self.player.on("ready",playerReady);self.player.on("play",playerPlay);self.player.on("complete",playerComplete);self.player.on("click",playerClick);self.player.on("setupError",playerSetupError)}
// self.player.on('ready', function(event) {
//     var offsetHeight = self.gravityContainer.offsetHeight;
//     self.bodyClass = self.bodyElement.className;
//     self.bodyElement.className = [self.bodyClass, 'withGravityAd'].join(" ");
//     self.addWindowEventListener();
//     self.addMoveEventListener();
//     self.addVolumeEventListener();
//     self.updatePositions();
//     self.wrapper.style.marginTop = offsetHeight + 'px';
//     window.scrollTo(0, 0);
// });
// self.player.on('complete', function() {
//     if (self.options.maxPlayCounter < 1) {
//         // 1) Ein Wert <= 0 bedeutet, dass das Video endlos neu gestartet wird
//         self.player.play(true);
//     } else if (self.options.maxPlayCounter >= 1 && self.currentPlayCounter < self.options.maxPlayCounter) {
//         // 2) Ein Wert groesser 0 (1, 2, ... ) bedeutet, dass das Video so oft abgespielt wird, wie angegeben
//         self.currentPlayCounter++;
//         self.player.play(true);
//     } else {
//         // self.player.remove();
//         self.player.stop();
//     }
// });
// self.player.on('click', function(event) {
//     window.open(self.options.url);
// });
// self.player.on('setupError', function(e) {
//     self.player.remove();
// });
// self.player.on('remove', function(event) {
//     self.gravityContainer.style.display = 'none';
// });
};GravityAd.prototype.addWindowEventListener=function(){var self=this;function windowResizeHandler(){self.updatePositions()}function windowScrollHandler(){var opacity=self.getOpacity();self.gravityContainer.style.opacity=opacity}if(window.addEventListener){window.addEventListener("scroll",windowScrollHandler,false);window.addEventListener("resize",windowResizeHandler,false)}else if(window.attachEvent){window.attachEvent("scroll",windowScrollHandler);window.attachEvent("resize",windowResizeHandler)}};GravityAd.prototype.addMoveEventListener=function(){var self=this;function gravityMoveClickHandler(event){var containerHeight=document.querySelector("#gravityPlayerContent").clientHeight;gravityScrollToY(containerHeight,1500,"easeInOutQuint");event.preventDefault();event.stopPropagation()}if(this.gravityMove&&this.gravityMove.addEventListener){this.gravityMove.addEventListener("click",gravityMoveClickHandler,false)}else if(this.gravityMove&&this.gravityMove.attachEvent){this.gravityMove.attachEvent("click",gravityMoveClickHandler)}if(this.gravityMoveLogo&&this.gravityMoveLogo.addEventListener){this.gravityMoveLogo.addEventListener("click",gravityMoveClickHandler,false)}else if(this.gravityMoveLogo&&this.gravityMoveLogo.attachEvent){this.gravityMoveLogo.attachEvent("click",gravityMoveClickHandler)}};GravityAd.prototype.addVolumeEventListener=function(){var self=this;function gravityVolumeClickHandler(event){if(typeof self.player!=="object"||self.player.getState()==="idle"){return}self.player.setMute(!self.player.getMute());self.gravityVolumeIcon.src=true===self.player.getMute()?"/images/gravity/gravityVolumeMute.png":"/images/gravity/gravityVolumeSpeaker.png";event.preventDefault();event.stopPropagation()}if(this.gravityVolume&&this.gravityVolume.addEventListener){this.gravityVolume.addEventListener("click",gravityVolumeClickHandler,false)}else if(this.gravityVolume&&this.gravityVolume.attachEvent){this.gravityVolume.attachEvent("click",gravityVolumeClickHandler)}}
// -------------------------------------------------------
// -------------------------------------------------------;
GravityAd.prototype.updatePositions=function(){var windowHeight=this.getWindowHeight(),containerHeight=document.querySelector("#gravityPlayerContent").clientHeight;clientHeight=this.gravityControls.clientHeight,minHeight=Math.min(containerHeight,windowHeight);
// (pj) 2015-11-17 Bug, wenn Gravity Container erst beim Play-Event erscheinen soll, muss hier die Opacity auch nochmal gesetzt werden.
// Wenn es hier nicht gesetzt wird, wird der Container zwar geoeffnet, aber die Opacity bleibt bei 0.
this.gravityContainer.style.opacity=this.getOpacity();this.gravityContainer.style.display=this.gravityContainer.style.opacity>0?"block":"none";
// (pj) 2015-11-17 end
this.gravityControls.style.top=minHeight-clientHeight+"px";this.wrapper.style.marginTop=containerHeight+"px";
// (pj) 2015-11-13 Sticky Header zum testen, im Echtbetrieb kann der raus.
// (bs) sollt ja echt betrieb sein, oder ? ich nehme die Zeile mal raus.
// OE24InitSticky('gravity', 'Superbanner', 'bb_sticky');
// (pj) 2015-11-13 end
};GravityAd.prototype.getWindowHeight=function(){var windowHeight=window.parent.innerHeight||window.parent.document.documentElement.clientHeight||window.parent.document.body.clientHeight;return windowHeight};GravityAd.prototype.getOpacity=function(){var self=this,windowHeight=self.getWindowHeight(),offsetHeight=self.gravityContainer.offsetHeight,scrollPosition=window.pageYOffset||document.documentElement.scrollTop,minHeight=Math.min(offsetHeight,windowHeight),term=minHeight-self.opacityZeroPosition;var termPosition=term>self.maxTermPosition?term:self.maxTermPosition;self.maxTermPosition=termPosition;if(scrollPosition<=termPosition){opacity=1-scrollPosition/windowHeight}else{opacity=0}if(opacity>0){
// (ws) 2016-01-19 Skyscaper zeigen, wenn Gravity-Ad nicht abgespielt wird
self.skyscrapers.style.display="none";
// (pj) 2015-11-17 Player abspielen, wenn sichtbar
self.player.play(true)}else{
// (ws) 2016-01-19 Skyscaper zeigen, wenn Gravity-Ad nicht abgespielt wird
self.skyscrapers.style.display="block";
// (pj) 2015-11-17 Player pausieren, wenn nicht sichtbar
self.player.pause(true)}self.gravityContainer.style.display=opacity>0?"block":"none";return opacity}
// -------------------------------------------------------
// -------------------------------------------------------;
GravityAd.prototype.init=function(){
// Zaehler zum Vergleich, wie oft das Video gespielt werden soll, falls
// diese Option konfiguriert wurde (siehe -> globalGravityOptions.maxPlayCounter)
this.currentPlayCounter=1;
// Abstand von oben, wo die Opacity des Ad-Containers auf 0 gesetzt wird
this.opacityZeroPosition=90;
// max Position merken, um bei display-none nicht unter 0 zu kommen
this.maxTermPosition=0;
// Opacity des Ad-Containers, bei der das Video pausiert wird
this.suspendPlayBack=.5;
// ---------------------------------------------------
this.bodyElement=document.querySelector("body");this.wrapper=document.querySelector("#wrap");this.gravityContainer=document.querySelector(".gravityContainer");this.gravityPlayerContent=document.querySelector("#gravityPlayerContent");this.skyscrapers=document.querySelector("#Skyscrapers");this.gravityControls=this.gravityContainer.querySelector(".gravityControls");this.gravityVolume=this.gravityControls.querySelector(".gravityVolume");this.gravityMove=this.gravityControls.querySelector(".gravityMove");this.gravityMoveLogo=this.gravityContainer.querySelector(".gravityMoveLogo");this.gravityVolumeIcon=this.gravityVolume.querySelector(".gravityVolumeIcon");this.gravityMoveIcon=this.gravityMove.querySelector(".gravityMoveIcon");this.player=this.initPlayer();if(!this.player){return false}
// ---------------------------------------------------
this.header=document.querySelector("header");
// ---------------------------------------------------
// (pj) 2015-11-17 Gravity Container hier noch nicht auf Block setzen.
// Grund: Das oeffnen des Containers hinterlaesst einen schwarzen Bereich fuer etwa 2-3 Sekunden, danach wird erst das Video abgespielt.
// Wunsch: Container soll sich erst oeffnen, wenn das Video zum abspielen beginnt.
// this.gravityContainer.style.display = 'block';
// (pj) 2015-11-17 end
// ---------------------------------------------------
return true};GravityAd.prototype.initPlayer=function(){var self=this;var player,playerId=self.gravityPlayerContent.getAttribute("id"),playerConfig={
// 'primary': 'flash',
file:self.options.video,image:typeof self.options.image==="undefined"||!self.options.image?"":self.options.image,type:"mp4",autostart:true,width:"100%",aspectratio:"16:9",mute:true,controls:false,
// 'flashplayer': 'http://www.oe24.at/misc/jwplayer_7_0_3/jwplayer.flash.swf'
flashplayer:"http://www.oe24.at/misc/jwplayer_8_1_11/jwplayer.flash.swf",
// für version 8:
key:"2FsrTep9OcXBJctufEe413UqWJsrr4d5rUgyi06J8Ki97VJ/"};if(null===playerId){return null}player=jwplayer(playerId);player=player.setup(playerConfig);return player}
// -------------------------------------------------------
// -------------------------------------------------------;
if(typeof jwplayer==="function"){var globalPlayerMajorVersion=jwplayer.version.substr(0,1)*1;if(6===globalPlayerMajorVersion){jwplayer.key="0c5MB4r7nSgjR9tFqI4PsNqh4MQcbFV0duseNQ=="}else if(7===globalPlayerMajorVersion){jwplayer.key="4BDv8xMllXGBIp2Tj+l3LlDBKqajA2+ZMcou/w==";
// jwplayer.key = "IJ159Vs5AiH7tZUMXfkm3ORPVL55CSUFv19XeQ==";
}else{jwplayer.key="unknown"}if(typeof globalGravityOptions!=="undefined"&&globalGravityOptions!==null&&typeof globalGravityOptions.video!=="undefined"&&globalGravityOptions.video!==null){new GravityAd(globalGravityOptions)}}
// -------------------------------------------------------
// -------------------------------------------------------
// http://stackoverflow.com/questions/12199363/scrollto-with-animation
// first add raf shim
// http://www.paulirish.com/2011/requestanimationframe-for-smart-animating/
window.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(callback){window.setTimeout(callback,1e3/60)}}();
// main function
function gravityScrollToY(scrollTargetY,speed,easing){
// scrollTargetY: the target scrollY property of the window
// speed: time in pixels per second
// easing: easing equation to use
var scrollY=window.scrollY,scrollTargetY=scrollTargetY||0,speed=speed||2e3,easing=easing||"easeOutSine",currentTime=0;
// min time .1, max time .8 seconds
var time=Math.max(.1,Math.min(Math.abs(scrollY-scrollTargetY)/speed,.8));
// easing equations from https://github.com/danro/easing-js/blob/master/easing.js
var PI_D2=Math.PI/2,easingEquations={easeOutSine:function(pos){return Math.sin(pos*(Math.PI/2))},easeInOutSine:function(pos){return-.5*(Math.cos(Math.PI*pos)-1)},easeInOutQuint:function(pos){if((pos/=.5)<1){return.5*Math.pow(pos,5)}return.5*(Math.pow(pos-2,5)+2)}};
// add animation loop
function tick(){currentTime+=1/60;var p=currentTime/time;var t=easingEquations[easing](p);if(p<1){requestAnimFrame(tick);window.scrollTo(0,scrollY+(scrollTargetY-scrollY)*t)}else{window.scrollTo(0,scrollTargetY)}}
// call it once to get started
tick()}
// scroll it!
// gravityScrollToY(0, 1500, 'easeInOutQuint');
var OE24ScrollHandler={scrollTop:$(window).scrollTop(),navTop:$("header .nav_top").length?$("header .nav_top"):false,navPortal:$("header .nav_portal").length?$("header .nav_portal"):false,navMain:$("header .nav_main").length?$("header .nav_main"):false,navPortalTop:0,navPortalTopStart:0,navPortalTopFirstInit:0,stickyTimeout:{},init:function(){this.navPortalTopFirstInit=this.navTop.innerHeight()+parseInt($("header").css("padding-top"));
// this.navPortalTopFirstInit = (this.navPortal) ? this.navPortal.offset().top : 0;
this.navPortalTop=this.navPortal?this.navPortal.offset().top:0;this.navPortalTopStart=this.navPortal?this.navPortal.offset().top:0},fixHeaderPosition:function(Superbanner){this.navPortalTop=this.navPortalTopFirstInit+Superbanner.height();this.navPortalTopStart=this.navPortalTopFirstInit+Superbanner.height()},initSticky:function(adBannerId,stickyClassName){if("cad_sticky"===stickyClassName&&$(".oe2016 .sidebar.article").length>0){
// (pj) 2015-11-24 wenn cad_sticky in oe2016-rebrush und auf artikel-ansicht, dann andere logik
return}if($("#"+adBannerId).hasClass(stickyClassName)){this.stickyTimeout[adBannerId]={timeout:null};
// $('#' + adBannerId).removeClass(stickyClassName);
}},fixedHeader:function(){var navPortalHeight=false===this.navPortal?0:this.navPortal.outerHeight(true);var navMainHeight=false===this.navMain?0:this.navMain.outerHeight(true);var navPositionLeft=$("header").offset().left-$(window).scrollLeft();this.scrollTop=$(window).scrollTop();if(this.scrollTop>=this.navPortalTop&&false!==this.navPortal&&false!==this.navMain){if(false!==this.navPortal)this.navPortal.addClass("fixed").css({left:navPositionLeft});if(false!==this.navMain)this.navMain.addClass("fixed").css({top:navPortalHeight,left:navPositionLeft});$.each(this.stickyTimeout,function(key){if($("#"+key).hasClass("fixed")){$("#"+key).css({left:navPositionLeft})}});navMainHeight=false===this.navMain?0:this.navMain.outerHeight(true);if(false!==this.navTop)this.navTop.css({"margin-bottom":navPortalHeight+navMainHeight});this.makeSticky(navPortalHeight,navMainHeight)}if(this.scrollTop<this.navPortalTopStart&&false!==this.navPortal&&false!==this.navMain){if(false!==this.navPortal)this.navPortal.removeClass("fixed").css({left:0});if(false!==this.navMain)this.navMain.removeClass("fixed").css({top:0,left:0});if(false!==this.navTop)this.navTop.css({"margin-bottom":0});this.removeSticky()}},makeSticky:function(navPortalHeight,navMainHeight){$.each(this.stickyTimeout,function(item,value){if(value.timeout===false){return}var itemID="#"+item;if(typeof value.initOffsetTop==="undefined"){OE24ScrollHandler.stickyTimeout[item].initOffsetTop=$(itemID).offset().top;OE24ScrollHandler.stickyTimeout[item].initMarginBottom=$(itemID).parent().css("margin-bottom")}var itemHeight=parseInt($(itemID).height())+parseInt(value.initMarginBottom);var menueScrollPosition=OE24ScrollHandler.scrollTop+navPortalHeight+navMainHeight;if(menueScrollPosition<value.initOffsetTop){OE24ScrollHandler.removeSticky();return}$(itemID).parent().css({"margin-bottom":itemHeight});$(itemID).addClass("fixed");if(value.timeout==null){OE24ScrollHandler.stickyTimeout[item].timeout=window.setTimeout(function(){OE24ScrollHandler.clearTimeout(item)},7e3)}})},clearTimeout:function(item){this.removeSticky();window.clearTimeout(OE24ScrollHandler.stickyTimeout[item].timeout);OE24ScrollHandler.stickyTimeout[item].timeout=false},removeSticky:function(){$.each(this.stickyTimeout,function(item,value){var itemID="#"+item;$(itemID).removeClass("fixed");$(itemID).parent().css({"margin-bottom":""})})}};function OE24InitSticky(channelName,adSlotBanner,className){if($("#wrap").find(".headerContainer").length===0){return}
// diese Funktion MUSS ausserhalb von document.ready sein fuer IE9 und darunter
if(typeof channelName=="undefined"){channelName=""}var adSlotBannerID="#"+adSlotBanner;var classNameClass="."+className;if(adSlotBanner=="Superbanner"){OE24ScrollHandler.fixHeaderPosition($("#Superbanner"));
// (pj) 2015-11-27 Wenn im #gravityPlayerContent ein Video ausgespielt wird, berechne die Hoehe fuer diese Position neu, damit der StickyHeader passt.
if($("#gravityPlayerContent").children().length>0){if($("#gravityPlayerContent").length>0){OE24ScrollHandler.fixHeaderPosition($("#gravityPlayerContent"))}}
// (pj) 2015-11-27 end
// if (channelName == 'frontpage') {
// 	return;
// }
}OE24ScrollHandler.initSticky(adSlotBanner,className)}$(document).ready(function(){if($("#wrap").find(".headerContainer").length===0){return}
// temp
var layout=$("#wrap").hasClass("layout_madonna");if(false==layout){OE24ScrollHandler.init();
// Wenn schon gescrollt wurde und die Seite neu geladen wird ...
OE24ScrollHandler.fixedHeader();$(window).scroll(function(e){OE24ScrollHandler.fixedHeader()});if(typeof window["setOE24Sticky"]!=="undefined"){window["setOE24Sticky"].forEach(function(entry){OE24InitSticky(entry[0],$(entry[1]).attr("id"),adSlotsSticky[$(entry[1]).attr("id")])});
// OE24InitSticky(window['setOE24Sticky'][0], $(renderSlotElement).attr('id'), adSlotsSticky[$(renderSlotElement).attr('id')]);
}}});$(document).ready(function(){if($("#wrap").find(".headerContainer").length===0){return}if(typeof weatherDisplay!=="undefined"){var mainWeather=$(".nav_main_weather");var mainWeatherDropdown=$(".nav_main_weather_dropdown");var weatherDegree=$(".nav_main_weather .nav_main_weather_degree");var weatherCity=$(".nav_main_weather .nav_main_weather_city");var weatherIcon=$(".nav_main_weather .icon_weather");$(".nav_main_weather a").click(function(e){e.preventDefault();mainWeatherDropdown.toggleClass("show")});
// mainWeatherDropdown.mouseenter(function(e) {
// 	e.stopPropagation();
// });
mainWeatherDropdown.children("ul").mouseleave(function(e){mainWeatherDropdown.toggleClass("show")});weatherDisplay.rotatePlace=function(){
// weatherDisplay wird in nav_header_main.tpl initialiert
weatherDisplay.placeIndex=weatherDisplay.placeIndex+1==weatherDisplay.places.length?0:weatherDisplay.placeIndex+1;place=weatherDisplay.places[weatherDisplay.placeIndex];weatherDegree.html(place.temp+"&deg;");weatherCity.html(place.name);weatherIcon.removeClass().addClass("icon_weather icon-wi"+weatherDisplay.pad(place.icon,3));setTimeout(weatherDisplay.rotatePlace,weatherDisplay.timeout)};weatherDisplay.pad=function(num,size){var s="000"+num;return s.substr(s.length-size)};setTimeout(weatherDisplay.rotatePlace,weatherDisplay.timeout)}});$(document).ready(function(){if($("#wrap").find(".headerContainer").length===0){return}var navMainButtons=$(".navMainButtons");if(navMainButtons.length>0){$(".nav_main").hover(function(e){navMainButtons.fadeIn(150)},function(e){navMainButtons.fadeOut(150)})}});(function($){function StickyHeader(el){this.el=$(el);this.headerNav=this.el.find(".headerNav");this.headerNavLogo=this.el.find(".headerNavLogo");this.headerNavMain=this.el.find(".headerNavMain");this.headerNavPortal=this.el.find(".headerNavPortal");this.headerNavContainer=this.el.find(".headerNavContainer");this.headerNavPortalOuterHeight=this.headerNavPortal.outerHeight();this.init()}StickyHeader.prototype.init=function(){var self=this;self.scrollHandler();$(window).on("scroll",function(e){self.scrollHandler()})};StickyHeader.prototype.scrollHandler=function(){var self=this,marginBottom=0,offset=$(self.headerNav).offset(),scrollTop=$(window).scrollTop();scrollLeft=offset.left-$(window).scrollLeft();function update(positionLeft,marginBottom){
// (db) 2017-12-14 set 'left' only if 'wrap'-div is not centered
if($(".headerNavContainer").hasClass("headerNavCenterSticky")){self.headerNavContainer.css("left","")}else{self.headerNavContainer.css({left:positionLeft+"px"})}self.headerNavPortal.css({"margin-bottom":marginBottom+"px"})}function adIsSticky(scrollLeft){if(typeof globalVars.stickyObjects==="undefined"){return}$.each(globalVars.stickyObjects,function(key,werbePosition){var $werbePositionObject=$(werbePosition.objectQuery);if($werbePositionObject.length==0){return}if(false==werbePosition.timeout){return}if(null==werbePosition.timeout){werbePosition.timeout=window.setTimeout(function(){werbePosition.timeout=false;$werbePositionObject.removeClass("stickyHeader");updateWerbung(werbePosition,0,0);delete globalVars.stickyObjects[key]},7e3)}$werbePositionObject.addClass("stickyHeader");marginBottom=$werbePositionObject.outerHeight();updateWerbung(werbePosition,scrollLeft,marginBottom)})}function adIsNotSticky(scrollLeft){if(typeof globalVars.stickyObjects==="undefined"){return}$.each(globalVars.stickyObjects,function(key,werbePosition){var $werbePositionObject=$(werbePosition.objectQuery);if($werbePositionObject.length==0){return}$werbePositionObject.removeClass("stickyHeader");updateWerbung(werbePosition,0,0)})}function updateWerbung(werbePosition,positionLeft,marginBottom){var $werbePositionObject=$(werbePosition.objectQuery);if($werbePositionObject.length==0){return}
// werbePosition bekommt Position left um an der richtigen Position zu bleiben
$werbePositionObject.css({left:positionLeft+"px"});
// Container bekommt margin-bottom, damit Seite nicht huepft
$werbePositionObject.parent().css({"margin-bottom":marginBottom+"px"})}if(scrollTop>offset.top+this.headerNavPortalOuterHeight){this.headerNavContainer.addClass("stickyHeader");marginBottom=self.headerNavLogo.outerHeight()+self.headerNavMain.outerHeight();update(scrollLeft,marginBottom);adIsSticky(scrollLeft)}else{this.headerNavContainer.removeClass("stickyHeader");update(0,0);adIsNotSticky(scrollLeft)}};$.fn.stickyHeader=function(){return this.each(function(){globalVars.stickyHeader=new StickyHeader(this)})}})(jQuery);$(".headerBox").stickyHeader();(function($){
// Object "weatherDropdown" wird in "headerNavWeatherDropdown.[php|tpl]" initialisiert
if(typeof weatherDropdown==="undefined"){return}var headerNavWeatherDropdown=$(".headerNavWeatherDropdown");$(".headerNavWeather").click(function(e){e.preventDefault();headerNavWeatherDropdown.toggleClass("show")});
// Falls das Staedte-DropDown beim MouseEnter-Event gezeigt werden soll ...
// $('.headerNavWeather').mouseenter(function(e) {
//     headerNavWeatherDropdown.toggleClass('show');
// });
headerNavWeatherDropdown.mouseleave(function(e){headerNavWeatherDropdown.toggleClass("show")});weatherDropdown.rotatePlace=function(){var weatherIcon=$(".headerNavWeather .icon_weather");var weatherDegree=$(".headerNavWeather .headerNavWeatherDegree");var weatherCity=$(".headerNavWeather .headerNavWeatherCity");weatherDropdown.placeIndex=weatherDropdown.placeIndex+1==weatherDropdown.places.length?0:weatherDropdown.placeIndex+1;place=weatherDropdown.places[weatherDropdown.placeIndex];weatherIcon.removeClass().addClass("icon_weather icon-wi"+weatherDropdown.pad(place.icon,3));weatherDegree.html(place.temp+"&deg;");weatherCity.html(place.name);setTimeout(weatherDropdown.rotatePlace,weatherDropdown.timeout)};weatherDropdown.pad=function(num,size){var s="000"+num;return s.substr(s.length-size)};setTimeout(weatherDropdown.rotatePlace,weatherDropdown.timeout)})(jQuery);(function($){function HeaderSubNav(el,settings){this.headerNavContainer=$(el);
// this.defaults = {
//     ajaxDelay: 200
// }
// this.settings = $.extend(this.defaults, settings);
// Ajax-Request
this.jqXHR=false;
// urlPart: Neueste Stories abrufen
this.urlPartLatest="oe2016/newest";
// urlPart: Top-Stories abrufen
this.urlPartTopStories="oe2016/top";this.headerNavMainItems=this.headerNavContainer.find(".headerNavMainItem").not(".facebook");this.headerNavMainSubNav=this.headerNavContainer.find(".headerNavMainSubNav");this.subNavMenu=this.headerNavContainer.find(".headerNavMainSubNav .subNavMenu");this.init()}HeaderSubNav.prototype.init=function(){var self=this;
// Click-Events der Sidebar-Buttons werden derzeit nicht weiter verarbeitet
$(".headerNavMainSubNav .subNavSidebar1, .headerNavMainSubNav .subNavSidebar2").on("click",function(e){e.preventDefault()});
// Hover-Events
this.headerNavMainItems.find("> a").on("mouseenter",function(){var currentLink=$(this).parents(".headerNavMainItem").find(".subNavMenu a:first");if(currentLink.length<=0){return}var url=currentLink.data("jsonurl");url=""===url?"":url+self.urlPartLatest;self.readStories(currentLink,url)});this.subNavMenu.find("li > a").on("mouseenter",function(){var currentLink=$(this);var url=currentLink.data("jsonurl");url=""===url?"":url+self.urlPartLatest;self.readStories(currentLink,url)})};HeaderSubNav.prototype.readStories=function(currentLink,url){var self=this,stories=[];if(""===url){self.writeStories(currentLink,[]);return}if(currentLink.data("jsonData")){stories=currentLink.data("jsonData").stories;self.writeStories(currentLink,stories)}else{this.fetchJsonData(currentLink,url)}};HeaderSubNav.prototype.writeStories=function(currentLink,stories){var subNavContainer=currentLink.parents(".subNavContainer"),selector;$(".subNavContainer").removeClass("noStories");if(0==stories.length){$(".subNavContainer").addClass("noStories");return}$.each(stories,function(index,value){selector=".subNavStory"+(index+1);subNavContainer.find(selector).attr("href","#");subNavContainer.find(selector+" img").attr("src","/images/empty.gif");subNavContainer.find(selector+" span").html("");subNavContainer.find(selector).attr("href",stories[index].href);subNavContainer.find(selector+" img").attr("src",stories[index].image);subNavContainer.find(selector+" span").html(stories[index].caption)})};HeaderSubNav.prototype.fetchJsonData=function(currentLink,url){var self=this;
// Aktuellen Ajax-Request abbrechen
if(self.jqXHR){self.jqXHR.abort();self.jqXHR=false}this.jqXHR=$.ajax({cache:true,jsonp:false,dataType:"jsonp",url:url+"?jsonCallbackSubNav",jsonpCallback:"jsonCallbackSubNav",success:function(data,status,jqXHR){self.writeStories(currentLink,data.stories);currentLink.data("jsonData",{jsonUrl:data.jsonUrl,stories:data.stories})},error:function(jqXHR,status,errorThrown){var data={};data.stories=[];self.writeStories(currentLink,data.stories);currentLink.removeData("jsonData")}})};$.fn.headerSubNav=function(settings){return this.each(function(){globalVars.headerSubNav=new HeaderSubNav(this,settings)})}})(jQuery);$(document).ready(function(){if(typeof globalVars.headerSubNav==="undefined"){$(".headerNavContainer").headerSubNav({})}});(function($){"use strict";function ConsoleSlider(element,opts){var consoleSlider=$(element),stories=consoleSlider.find(".consoleStories"),navigation=consoleSlider.find(".consoleNavigation"),navigationItem=consoleSlider.find(".consoleNavigationItem"),counter=consoleSlider.find(".consoleStoryCounter"),prevArrow=consoleSlider.find(".buttonPrev"),nextArrow=consoleSlider.find(".buttonNext"),autoplay=consoleSlider.data("autoplay"),autoplay=1==autoplay?true:false,autoplaySpeed=consoleSlider.data("autoplayspeed"),slidesToShow=consoleSlider.data("slidestoshow"),slidesToScroll=consoleSlider.data("slidestoscroll");
// --------------------------------------------------------
stories.slick({arrows:false,draggable:false,fade:true,lazyLoad:"ondemand",slide:"a",slidesToShow:1,slidesToScroll:1,onInit:function(){var storyText=consoleSlider.find(".consoleStoryText");storyText.css({opacity:"1"})},onBeforeChange:function(slider,pos,nextPos){counter.text(nextPos+1+"/"+slider.slideCount)}});
// --------------------------------------------------------
navigation.slick({asNavFor:stories,autoplay:autoplay,autoplaySpeed:autoplaySpeed,draggable:false,focusOnSelect:true,lazyLoad:"ondemand",pauseOnHover:true,prevArrow:prevArrow,nextArrow:nextArrow,slide:"a",slidesToShow:slidesToShow,slidesToScroll:slidesToScroll,onInit:function(){prevArrow.on("click",function(e){navigation.slickPause()});nextArrow.on("click",function(e){navigation.slickPause()})}});
// In onInit funktioniert preventDefault() nicht fuer die geklonten Items
navigationItem.on("click",function(e){var index=$(this).index();stories.slickGoTo(index);e.preventDefault();navigation.slickPause()});$(".consoleNavigation .slick-cloned").on("click",function(e){e.preventDefault();navigation.slickPause()})}$.fn.consoleSlider=function(opts){return this.each(function(){new ConsoleSlider(this,opts)})}})(jQuery);(function($){$(document).ready(function(){
// if ($('#wrap').hasClass('layout_tv')) {
//     return;
// }
// Slick
// $('.oe2016 .console').not('.flickity').consoleSlider();
// Flickity
$(".flickity.console").flickitySetup();
// // (db) 2018-10-09
$(".flickity.console .consoleStoryItem.isVideo").on("click",function(e){e.preventDefault();if($(this).hasClass("is-selected")){
// stop topvideo-player if exists
var videoPlayer=document.querySelector(".oe24tvTopVideoLayer .videoPlayer .jwplayer");if(videoPlayer!=null){var videoConsole=jwplayer(videoPlayer.id);videoConsole.pause()}var id=$(this).attr("datavid");var video=document.getElementById(id);video.play();$(this).addClass("videoHide")}});
// get targets for observer - video
var target=$(".console.flickity .consoleStoryItem.isVideo");if(target.length>0){
// call observer
var observer=new MutationObserver(function(mutations){mutations.forEach(function(mutation){var attribute=mutation.attributeName;if("class"==attribute){var classList=mutation.target.classList;var videoId=mutation.target.attributes.datavid.nodeValue;if(!classList.contains("is-selected")){var video=document.getElementById(videoId);video.pause();video.currentTime=0;video.load();target.each(function(index){$(this).removeClass("videoHide")})}}})});
// config for obserer - check only attributes
var config={attributes:true};
// start observer
var elements=target.length;for(var i=0;i<elements;i++){observer.observe(target[i],config)}
// disconnect observer
//observer.disconnect();
}})})(jQuery);(function($){"use strict";function EditorsComment(element,opts){var editorsComment=$(element),editorsCommentRow=editorsComment.find(".editorsCommentRow"),editorsCommentCol=editorsComment.find(".editorsCommentCol"),prevArrow=editorsComment.find(".prevArrow"),nextArrow=editorsComment.find(".nextArrow"),slidesToShow=editorsComment.data("slidestoshow"),maxHeight=0,outerHeight=0;
// ----------------------------------------------
//  Gleiche Hoehe fuer alle Slides
//  ------------------------------
//  Die Hoehe der Box wird per CSS auf height:0px und overflow:hidden gesetzt
//  Die Hoehe fuer die Slides wird berechnet und gesetzt
//  Die Hoehe der Box ist die Hoehe der Slides + Padding oben und unten
editorsCommentCol.each(function(index){outerHeight=$(this).outerHeight();maxHeight=maxHeight<outerHeight?outerHeight:maxHeight});editorsCommentCol.css({height:maxHeight});editorsComment.css({height:maxHeight+20+"px"});
// ----------------------------------------------
editorsCommentRow.slick({prevArrow:prevArrow,nextArrow:nextArrow,infinite:true,slide:"a",slidesToShow:slidesToShow,slidesToScroll:1})}$.fn.editorsComment=function(opts){return this.each(function(){new EditorsComment(this,opts)})}})(jQuery);$(document).ready(function(){$(".editorsComment").editorsComment()});(function($){"use strict";function TeamBox(element,opts){var teamBox=$(element),slider=teamBox.find(".teamBoxSlider"),prevArrow=teamBox.find(".prevArrow"),nextArrow=teamBox.find(".nextArrow"),slidesToShow=teamBox.data("slidestoshow"),slidesToScroll=teamBox.data("slidestoscroll");slider.slick({prevArrow:prevArrow,nextArrow:nextArrow,infinite:true,
// autoplay: true,
slide:"a",slidesToShow:slidesToShow,slidesToScroll:slidesToScroll,onInit:function(){teamBox.css({height:"auto"})}})}$.fn.teamBox=function(opts){return this.each(function(){new TeamBox(this,opts)})}})(jQuery);$(document).ready(function(){$(".teamBox").teamBox()});(function($){"use strict";function StandardContentBox(element,opts){var box=$(element),columnLeft=box.find(".columnLeft"),columnRight=box.find(".columnRight"),heightLeft=columnLeft.outerHeight(true),heightRight=columnRight.outerHeight(true);if(heightLeft<heightRight){columnLeft.find("a").css({height:heightRight-20+"px"})}}$.fn.standardContentBox=function(opts){return this.each(function(){new StandardContentBox(this,opts)})}})(jQuery);$(document).ready(function(){$(".standardContentBox.portrait").standardContentBox()});
/*!
 * Flickity PACKAGED v1.2.1
 * Touch, responsive, flickable galleries
 *
 * Licensed GPLv3 for open source use
 * or Flickity Commercial License for commercial use
 *
 * http://flickity.metafizzy.co
 * Copyright 2015 Metafizzy
 */
/**
 * Bridget makes jQuery widgets
 * v1.1.0
 * MIT license
 */
(function(window){
// -------------------------- utils -------------------------- //
var slice=Array.prototype.slice;function noop(){}
// -------------------------- definition -------------------------- //
function defineBridget($){
// bail if no jQuery
if(!$){return}
// -------------------------- addOptionMethod -------------------------- //
/**
 * adds option method -> $().plugin('option', {...})
 * @param {Function} PluginClass - constructor class
 */function addOptionMethod(PluginClass){
// don't overwrite original option method
if(PluginClass.prototype.option){return}
// option setter
PluginClass.prototype.option=function(opts){
// bail out if not an object
if(!$.isPlainObject(opts)){return}this.options=$.extend(true,this.options,opts)}}
// -------------------------- plugin bridge -------------------------- //
// helper function for logging errors
// $.error breaks jQuery chaining
var logError=typeof console==="undefined"?noop:function(message){console.error(message)};
/**
 * jQuery plugin bridge, access methods like $elem.plugin('method')
 * @param {String} namespace - plugin name
 * @param {Function} PluginClass - constructor class
 */function bridge(namespace,PluginClass){
// add to jQuery fn namespace
$.fn[namespace]=function(options){if(typeof options==="string"){
// call plugin method when first argument is a string
// get arguments for method
var args=slice.call(arguments,1);for(var i=0,len=this.length;i<len;i++){var elem=this[i];var instance=$.data(elem,namespace);if(!instance){logError("cannot call methods on "+namespace+" prior to initialization; "+"attempted to call '"+options+"'");continue}if(!$.isFunction(instance[options])||options.charAt(0)==="_"){logError("no such method '"+options+"' for "+namespace+" instance");continue}
// trigger method with arguments
var returnValue=instance[options].apply(instance,args);
// break look and return first value if provided
if(returnValue!==undefined){return returnValue}}
// return this if no return value
return this}else{return this.each(function(){var instance=$.data(this,namespace);if(instance){
// apply options & init
instance.option(options);instance._init()}else{
// initialize new instance
instance=new PluginClass(this,options);$.data(this,namespace,instance)}})}}}
// -------------------------- bridget -------------------------- //
/**
 * converts a Prototypical class into a proper jQuery plugin
 *   the class must have a ._init method
 * @param {String} namespace - plugin name, used in $().pluginName
 * @param {Function} PluginClass - constructor class
 */$.bridget=function(namespace,PluginClass){addOptionMethod(PluginClass);bridge(namespace,PluginClass)};return $.bridget}
// transport
if(typeof define==="function"&&define.amd){
// AMD
define("jquery-bridget/jquery.bridget",["jquery"],defineBridget)}else if(typeof exports==="object"){defineBridget(require("jquery"))}else{
// get jquery from browser global
defineBridget(window.jQuery)}})(window);
/*!
 * classie v1.0.1
 * class helper functions
 * from bonzo https://github.com/ded/bonzo
 * MIT license
 * 
 * classie.has( elem, 'my-class' ) -> true/false
 * classie.add( elem, 'my-new-class' )
 * classie.remove( elem, 'my-unwanted-class' )
 * classie.toggle( elem, 'my-class' )
 */
/*jshint browser: true, strict: true, undef: true, unused: true */
/*global define: false, module: false */
(function(window){
// class helper functions from bonzo https://github.com/ded/bonzo
function classReg(className){return new RegExp("(^|\\s+)"+className+"(\\s+|$)")}
// classList support for class management
// altho to be fair, the api sucks because it won't accept multiple classes at once
var hasClass,addClass,removeClass;if("classList"in document.documentElement){hasClass=function(elem,c){return elem.classList.contains(c)};addClass=function(elem,c){elem.classList.add(c)};removeClass=function(elem,c){elem.classList.remove(c)}}else{hasClass=function(elem,c){return classReg(c).test(elem.className)};addClass=function(elem,c){if(!hasClass(elem,c)){elem.className=elem.className+" "+c}};removeClass=function(elem,c){elem.className=elem.className.replace(classReg(c)," ")}}function toggleClass(elem,c){var fn=hasClass(elem,c)?removeClass:addClass;fn(elem,c)}var classie={
// full names
hasClass:hasClass,addClass:addClass,removeClass:removeClass,toggleClass:toggleClass,
// short names
has:hasClass,add:addClass,remove:removeClass,toggle:toggleClass};
// transport
if(typeof define==="function"&&define.amd){
// AMD
define("classie/classie",classie)}else if(typeof exports==="object"){
// CommonJS
module.exports=classie}else{
// browser global
window.classie=classie}})(window);
/*!
 * EventEmitter v4.2.11 - git.io/ee
 * Unlicense - http://unlicense.org/
 * Oliver Caldwell - http://oli.me.uk/
 * @preserve
 */(function(){"use strict";
/**
     * Class for managing events.
     * Can be extended to provide event functionality in other classes.
     *
     * @class EventEmitter Manages event registering and emitting.
     */function EventEmitter(){}
// Shortcuts to improve speed and size
var proto=EventEmitter.prototype;var exports=this;var originalGlobalValue=exports.EventEmitter;
/**
     * Finds the index of the listener for the event in its storage array.
     *
     * @param {Function[]} listeners Array of listeners to search through.
     * @param {Function} listener Method to look for.
     * @return {Number} Index of the specified listener, -1 if not found
     * @api private
     */function indexOfListener(listeners,listener){var i=listeners.length;while(i--){if(listeners[i].listener===listener){return i}}return-1}
/**
     * Alias a method while keeping the context correct, to allow for overwriting of target method.
     *
     * @param {String} name The name of the target method.
     * @return {Function} The aliased method
     * @api private
     */function alias(name){return function aliasClosure(){return this[name].apply(this,arguments)}}
/**
     * Returns the listener array for the specified event.
     * Will initialise the event object and listener arrays if required.
     * Will return an object if you use a regex search. The object contains keys for each matched event. So /ba[rz]/ might return an object containing bar and baz. But only if you have either defined them with defineEvent or added some listeners to them.
     * Each property in the object response is an array of listener functions.
     *
     * @param {String|RegExp} evt Name of the event to return the listeners from.
     * @return {Function[]|Object} All listener functions for the event.
     */proto.getListeners=function getListeners(evt){var events=this._getEvents();var response;var key;
// Return a concatenated array of all matching events if
// the selector is a regular expression.
if(evt instanceof RegExp){response={};for(key in events){if(events.hasOwnProperty(key)&&evt.test(key)){response[key]=events[key]}}}else{response=events[evt]||(events[evt]=[])}return response};
/**
     * Takes a list of listener objects and flattens it into a list of listener functions.
     *
     * @param {Object[]} listeners Raw listener objects.
     * @return {Function[]} Just the listener functions.
     */proto.flattenListeners=function flattenListeners(listeners){var flatListeners=[];var i;for(i=0;i<listeners.length;i+=1){flatListeners.push(listeners[i].listener)}return flatListeners};
/**
     * Fetches the requested listeners via getListeners but will always return the results inside an object. This is mainly for internal use but others may find it useful.
     *
     * @param {String|RegExp} evt Name of the event to return the listeners from.
     * @return {Object} All listener functions for an event in an object.
     */proto.getListenersAsObject=function getListenersAsObject(evt){var listeners=this.getListeners(evt);var response;if(listeners instanceof Array){response={};response[evt]=listeners}return response||listeners};
/**
     * Adds a listener function to the specified event.
     * The listener will not be added if it is a duplicate.
     * If the listener returns true then it will be removed after it is called.
     * If you pass a regular expression as the event name then the listener will be added to all events that match it.
     *
     * @param {String|RegExp} evt Name of the event to attach the listener to.
     * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.
     * @return {Object} Current instance of EventEmitter for chaining.
     */proto.addListener=function addListener(evt,listener){var listeners=this.getListenersAsObject(evt);var listenerIsWrapped=typeof listener==="object";var key;for(key in listeners){if(listeners.hasOwnProperty(key)&&indexOfListener(listeners[key],listener)===-1){listeners[key].push(listenerIsWrapped?listener:{listener:listener,once:false})}}return this};
/**
     * Alias of addListener
     */proto.on=alias("addListener");
/**
     * Semi-alias of addListener. It will add a listener that will be
     * automatically removed after its first execution.
     *
     * @param {String|RegExp} evt Name of the event to attach the listener to.
     * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.
     * @return {Object} Current instance of EventEmitter for chaining.
     */proto.addOnceListener=function addOnceListener(evt,listener){return this.addListener(evt,{listener:listener,once:true})};
/**
     * Alias of addOnceListener.
     */proto.once=alias("addOnceListener");
/**
     * Defines an event name. This is required if you want to use a regex to add a listener to multiple events at once. If you don't do this then how do you expect it to know what event to add to? Should it just add to every possible match for a regex? No. That is scary and bad.
     * You need to tell it what event names should be matched by a regex.
     *
     * @param {String} evt Name of the event to create.
     * @return {Object} Current instance of EventEmitter for chaining.
     */proto.defineEvent=function defineEvent(evt){this.getListeners(evt);return this};
/**
     * Uses defineEvent to define multiple events.
     *
     * @param {String[]} evts An array of event names to define.
     * @return {Object} Current instance of EventEmitter for chaining.
     */proto.defineEvents=function defineEvents(evts){for(var i=0;i<evts.length;i+=1){this.defineEvent(evts[i])}return this};
/**
     * Removes a listener function from the specified event.
     * When passed a regular expression as the event name, it will remove the listener from all events that match it.
     *
     * @param {String|RegExp} evt Name of the event to remove the listener from.
     * @param {Function} listener Method to remove from the event.
     * @return {Object} Current instance of EventEmitter for chaining.
     */proto.removeListener=function removeListener(evt,listener){var listeners=this.getListenersAsObject(evt);var index;var key;for(key in listeners){if(listeners.hasOwnProperty(key)){index=indexOfListener(listeners[key],listener);if(index!==-1){listeners[key].splice(index,1)}}}return this};
/**
     * Alias of removeListener
     */proto.off=alias("removeListener");
/**
     * Adds listeners in bulk using the manipulateListeners method.
     * If you pass an object as the second argument you can add to multiple events at once. The object should contain key value pairs of events and listeners or listener arrays. You can also pass it an event name and an array of listeners to be added.
     * You can also pass it a regular expression to add the array of listeners to all events that match it.
     * Yeah, this function does quite a bit. That's probably a bad thing.
     *
     * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add to multiple events at once.
     * @param {Function[]} [listeners] An optional array of listener functions to add.
     * @return {Object} Current instance of EventEmitter for chaining.
     */proto.addListeners=function addListeners(evt,listeners){
// Pass through to manipulateListeners
return this.manipulateListeners(false,evt,listeners)};
/**
     * Removes listeners in bulk using the manipulateListeners method.
     * If you pass an object as the second argument you can remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.
     * You can also pass it an event name and an array of listeners to be removed.
     * You can also pass it a regular expression to remove the listeners from all events that match it.
     *
     * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to remove from multiple events at once.
     * @param {Function[]} [listeners] An optional array of listener functions to remove.
     * @return {Object} Current instance of EventEmitter for chaining.
     */proto.removeListeners=function removeListeners(evt,listeners){
// Pass through to manipulateListeners
return this.manipulateListeners(true,evt,listeners)};
/**
     * Edits listeners in bulk. The addListeners and removeListeners methods both use this to do their job. You should really use those instead, this is a little lower level.
     * The first argument will determine if the listeners are removed (true) or added (false).
     * If you pass an object as the second argument you can add/remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.
     * You can also pass it an event name and an array of listeners to be added/removed.
     * You can also pass it a regular expression to manipulate the listeners of all events that match it.
     *
     * @param {Boolean} remove True if you want to remove listeners, false if you want to add.
     * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add/remove from multiple events at once.
     * @param {Function[]} [listeners] An optional array of listener functions to add/remove.
     * @return {Object} Current instance of EventEmitter for chaining.
     */proto.manipulateListeners=function manipulateListeners(remove,evt,listeners){var i;var value;var single=remove?this.removeListener:this.addListener;var multiple=remove?this.removeListeners:this.addListeners;
// If evt is an object then pass each of its properties to this method
if(typeof evt==="object"&&!(evt instanceof RegExp)){for(i in evt){if(evt.hasOwnProperty(i)&&(value=evt[i])){
// Pass the single listener straight through to the singular method
if(typeof value==="function"){single.call(this,i,value)}else{
// Otherwise pass back to the multiple function
multiple.call(this,i,value)}}}}else{
// So evt must be a string
// And listeners must be an array of listeners
// Loop over it and pass each one to the multiple method
i=listeners.length;while(i--){single.call(this,evt,listeners[i])}}return this};
/**
     * Removes all listeners from a specified event.
     * If you do not specify an event then all listeners will be removed.
     * That means every event will be emptied.
     * You can also pass a regex to remove all events that match it.
     *
     * @param {String|RegExp} [evt] Optional name of the event to remove all listeners for. Will remove from every event if not passed.
     * @return {Object} Current instance of EventEmitter for chaining.
     */proto.removeEvent=function removeEvent(evt){var type=typeof evt;var events=this._getEvents();var key;
// Remove different things depending on the state of evt
if(type==="string"){
// Remove all listeners for the specified event
delete events[evt]}else if(evt instanceof RegExp){
// Remove all events matching the regex.
for(key in events){if(events.hasOwnProperty(key)&&evt.test(key)){delete events[key]}}}else{
// Remove all listeners in all events
delete this._events}return this};
/**
     * Alias of removeEvent.
     *
     * Added to mirror the node API.
     */proto.removeAllListeners=alias("removeEvent");
/**
     * Emits an event of your choice.
     * When emitted, every listener attached to that event will be executed.
     * If you pass the optional argument array then those arguments will be passed to every listener upon execution.
     * Because it uses `apply`, your array of arguments will be passed as if you wrote them out separately.
     * So they will not arrive within the array on the other side, they will be separate.
     * You can also pass a regular expression to emit to all events that match it.
     *
     * @param {String|RegExp} evt Name of the event to emit and execute listeners for.
     * @param {Array} [args] Optional array of arguments to be passed to each listener.
     * @return {Object} Current instance of EventEmitter for chaining.
     */proto.emitEvent=function emitEvent(evt,args){var listeners=this.getListenersAsObject(evt);var listener;var i;var key;var response;for(key in listeners){if(listeners.hasOwnProperty(key)){i=listeners[key].length;while(i--){
// If the listener returns true then it shall be removed from the event
// The function is executed either with a basic call or an apply if there is an args array
listener=listeners[key][i];if(listener.once===true){this.removeListener(evt,listener.listener)}response=listener.listener.apply(this,args||[]);if(response===this._getOnceReturnValue()){this.removeListener(evt,listener.listener)}}}}return this};
/**
     * Alias of emitEvent
     */proto.trigger=alias("emitEvent");
/**
     * Subtly different from emitEvent in that it will pass its arguments on to the listeners, as opposed to taking a single array of arguments to pass on.
     * As with emitEvent, you can pass a regex in place of the event name to emit to all events that match it.
     *
     * @param {String|RegExp} evt Name of the event to emit and execute listeners for.
     * @param {...*} Optional additional arguments to be passed to each listener.
     * @return {Object} Current instance of EventEmitter for chaining.
     */proto.emit=function emit(evt){var args=Array.prototype.slice.call(arguments,1);return this.emitEvent(evt,args)};
/**
     * Sets the current value to check against when executing listeners. If a
     * listeners return value matches the one set here then it will be removed
     * after execution. This value defaults to true.
     *
     * @param {*} value The new value to check for when executing listeners.
     * @return {Object} Current instance of EventEmitter for chaining.
     */proto.setOnceReturnValue=function setOnceReturnValue(value){this._onceReturnValue=value;return this};
/**
     * Fetches the current value to check against when executing listeners. If
     * the listeners return value matches this one then it should be removed
     * automatically. It will return true by default.
     *
     * @return {*|Boolean} The current value to check for or the default, true.
     * @api private
     */proto._getOnceReturnValue=function _getOnceReturnValue(){if(this.hasOwnProperty("_onceReturnValue")){return this._onceReturnValue}else{return true}};
/**
     * Fetches the events object and creates one if required.
     *
     * @return {Object} The events storage object.
     * @api private
     */proto._getEvents=function _getEvents(){return this._events||(this._events={})};
/**
     * Reverts the global {@link EventEmitter} to its previous value and returns a reference to this version.
     *
     * @return {Function} Non conflicting EventEmitter class.
     */EventEmitter.noConflict=function noConflict(){exports.EventEmitter=originalGlobalValue;return EventEmitter};
// Expose the class either via AMD, CommonJS or the global object
if(typeof define==="function"&&define.amd){define("eventEmitter/EventEmitter",[],function(){return EventEmitter})}else if(typeof module==="object"&&module.exports){module.exports=EventEmitter}else{exports.EventEmitter=EventEmitter}}).call(this);
/*!
 * eventie v1.0.6
 * event binding helper
 *   eventie.bind( elem, 'click', myFn )
 *   eventie.unbind( elem, 'click', myFn )
 * MIT license
 */
/*jshint browser: true, undef: true, unused: true */
/*global define: false, module: false */
(function(window){var docElem=document.documentElement;var bind=function(){};function getIEEvent(obj){var event=window.event;
// add event.target
event.target=event.target||event.srcElement||obj;return event}if(docElem.addEventListener){bind=function(obj,type,fn){obj.addEventListener(type,fn,false)}}else if(docElem.attachEvent){bind=function(obj,type,fn){obj[type+fn]=fn.handleEvent?function(){var event=getIEEvent(obj);fn.handleEvent.call(fn,event)}:function(){var event=getIEEvent(obj);fn.call(obj,event)};obj.attachEvent("on"+type,obj[type+fn])}}var unbind=function(){};if(docElem.removeEventListener){unbind=function(obj,type,fn){obj.removeEventListener(type,fn,false)}}else if(docElem.detachEvent){unbind=function(obj,type,fn){obj.detachEvent("on"+type,obj[type+fn]);try{delete obj[type+fn]}catch(err){
// can't delete window object properties
obj[type+fn]=undefined}}}var eventie={bind:bind,unbind:unbind};
// ----- module definition ----- //
if(typeof define==="function"&&define.amd){
// AMD
define("eventie/eventie",eventie)}else if(typeof exports==="object"){
// CommonJS
module.exports=eventie}else{
// browser global
window.eventie=eventie}})(window);
/*!
 * getStyleProperty v1.0.4
 * original by kangax
 * http://perfectionkills.com/feature-testing-css-properties/
 * MIT license
 */
/*jshint browser: true, strict: true, undef: true */
/*global define: false, exports: false, module: false */
(function(window){var prefixes="Webkit Moz ms Ms O".split(" ");var docElemStyle=document.documentElement.style;function getStyleProperty(propName){if(!propName){return}
// test standard property first
if(typeof docElemStyle[propName]==="string"){return propName}
// capitalize
propName=propName.charAt(0).toUpperCase()+propName.slice(1);
// test vendor specific properties
var prefixed;for(var i=0,len=prefixes.length;i<len;i++){prefixed=prefixes[i]+propName;if(typeof docElemStyle[prefixed]==="string"){return prefixed}}}
// transport
if(typeof define==="function"&&define.amd){
// AMD
define("get-style-property/get-style-property",[],function(){return getStyleProperty})}else if(typeof exports==="object"){
// CommonJS for Component
module.exports=getStyleProperty}else{
// browser global
window.getStyleProperty=getStyleProperty}})(window);
/*!
 * getSize v1.2.2
 * measure size of elements
 * MIT license
 */
/*jshint browser: true, strict: true, undef: true, unused: true */
/*global define: false, exports: false, require: false, module: false, console: false */
(function(window,undefined){
// -------------------------- helpers -------------------------- //
// get a number from a string, not a percentage
function getStyleSize(value){var num=parseFloat(value);
// not a percent like '100%', and a number
var isValid=value.indexOf("%")===-1&&!isNaN(num);return isValid&&num}function noop(){}var logError=typeof console==="undefined"?noop:function(message){console.error(message)};
// -------------------------- measurements -------------------------- //
var measurements=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];function getZeroSize(){var size={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};for(var i=0,len=measurements.length;i<len;i++){var measurement=measurements[i];size[measurement]=0}return size}function defineGetSize(getStyleProperty){
// -------------------------- setup -------------------------- //
var isSetup=false;var getStyle,boxSizingProp,isBoxSizeOuter;
/**
 * setup vars and functions
 * do it on initial getSize(), rather than on script load
 * For Firefox bug https://bugzilla.mozilla.org/show_bug.cgi?id=548397
 */function setup(){
// setup once
if(isSetup){return}isSetup=true;var getComputedStyle=window.getComputedStyle;getStyle=function(){var getStyleFn=getComputedStyle?function(elem){return getComputedStyle(elem,null)}:function(elem){return elem.currentStyle};return function getStyle(elem){var style=getStyleFn(elem);if(!style){logError("Style returned "+style+". Are you running this code in a hidden iframe on Firefox? "+"See http://bit.ly/getsizebug1")}return style}}();
// -------------------------- box sizing -------------------------- //
boxSizingProp=getStyleProperty("boxSizing");
/**
   * WebKit measures the outer-width on style.width on border-box elems
   * IE & Firefox measures the inner-width
   */if(boxSizingProp){var div=document.createElement("div");div.style.width="200px";div.style.padding="1px 2px 3px 4px";div.style.borderStyle="solid";div.style.borderWidth="1px 2px 3px 4px";div.style[boxSizingProp]="border-box";var body=document.body||document.documentElement;body.appendChild(div);var style=getStyle(div);isBoxSizeOuter=getStyleSize(style.width)===200;body.removeChild(div)}}
// -------------------------- getSize -------------------------- //
function getSize(elem){setup();
// use querySeletor if elem is string
if(typeof elem==="string"){elem=document.querySelector(elem)}
// do not proceed on non-objects
if(!elem||typeof elem!=="object"||!elem.nodeType){return}var style=getStyle(elem);
// if hidden, everything is 0
if(style.display==="none"){return getZeroSize()}var size={};size.width=elem.offsetWidth;size.height=elem.offsetHeight;var isBorderBox=size.isBorderBox=!!(boxSizingProp&&style[boxSizingProp]&&style[boxSizingProp]==="border-box");
// get all measurements
for(var i=0,len=measurements.length;i<len;i++){var measurement=measurements[i];var value=style[measurement];value=mungeNonPixel(elem,value);var num=parseFloat(value);
// any 'auto', 'medium' value will be 0
size[measurement]=!isNaN(num)?num:0}var paddingWidth=size.paddingLeft+size.paddingRight;var paddingHeight=size.paddingTop+size.paddingBottom;var marginWidth=size.marginLeft+size.marginRight;var marginHeight=size.marginTop+size.marginBottom;var borderWidth=size.borderLeftWidth+size.borderRightWidth;var borderHeight=size.borderTopWidth+size.borderBottomWidth;var isBorderBoxSizeOuter=isBorderBox&&isBoxSizeOuter;
// overwrite width and height if we can get it from style
var styleWidth=getStyleSize(style.width);if(styleWidth!==false){size.width=styleWidth+(
// add padding and border unless it's already including it
isBorderBoxSizeOuter?0:paddingWidth+borderWidth)}var styleHeight=getStyleSize(style.height);if(styleHeight!==false){size.height=styleHeight+(
// add padding and border unless it's already including it
isBorderBoxSizeOuter?0:paddingHeight+borderHeight)}size.innerWidth=size.width-(paddingWidth+borderWidth);size.innerHeight=size.height-(paddingHeight+borderHeight);size.outerWidth=size.width+marginWidth;size.outerHeight=size.height+marginHeight;return size}
// IE8 returns percent values, not pixels
// taken from jQuery's curCSS
function mungeNonPixel(elem,value){
// IE8 and has percent value
if(window.getComputedStyle||value.indexOf("%")===-1){return value}var style=elem.style;
// Remember the original values
var left=style.left;var rs=elem.runtimeStyle;var rsLeft=rs&&rs.left;
// Put in the new values to get a computed value out
if(rsLeft){rs.left=elem.currentStyle.left}style.left=value;value=style.pixelLeft;
// Revert the changed values
style.left=left;if(rsLeft){rs.left=rsLeft}return value}return getSize}
// transport
if(typeof define==="function"&&define.amd){
// AMD for RequireJS
define("get-size/get-size",["get-style-property/get-style-property"],defineGetSize)}else if(typeof exports==="object"){
// CommonJS for Component
module.exports=defineGetSize(require("desandro-get-style-property"))}else{
// browser global
window.getSize=defineGetSize(window.getStyleProperty)}})(window);
/*!
 * docReady v1.0.4
 * Cross browser DOMContentLoaded event emitter
 * MIT license
 */
/*jshint browser: true, strict: true, undef: true, unused: true*/
/*global define: false, require: false, module: false */
(function(window){var document=window.document;
// collection of functions to be triggered on ready
var queue=[];function docReady(fn){
// throw out non-functions
if(typeof fn!=="function"){return}if(docReady.isReady){
// ready now, hit it
fn()}else{
// queue function when ready
queue.push(fn)}}docReady.isReady=false;
// triggered on various doc ready events
function onReady(event){
// bail if already triggered or IE8 document is not ready just yet
var isIE8NotReady=event.type==="readystatechange"&&document.readyState!=="complete";if(docReady.isReady||isIE8NotReady){return}trigger()}function trigger(){docReady.isReady=true;
// process queue
for(var i=0,len=queue.length;i<len;i++){var fn=queue[i];fn()}}function defineDocReady(eventie){
// trigger ready if page is ready
if(document.readyState==="complete"){trigger()}else{
// listen for events
eventie.bind(document,"DOMContentLoaded",onReady);eventie.bind(document,"readystatechange",onReady);eventie.bind(window,"load",onReady)}return docReady}
// transport
if(typeof define==="function"&&define.amd){
// AMD
define("doc-ready/doc-ready",["eventie/eventie"],defineDocReady)}else if(typeof exports==="object"){module.exports=defineDocReady(require("eventie"))}else{
// browser global
window.docReady=defineDocReady(window.eventie)}})(window);
/**
 * matchesSelector v1.0.3
 * matchesSelector( element, '.selector' )
 * MIT license
 */
/*jshint browser: true, strict: true, undef: true, unused: true */
/*global define: false, module: false */
(function(ElemProto){"use strict";var matchesMethod=function(){
// check for the standard method name first
if(ElemProto.matches){return"matches"}
// check un-prefixed
if(ElemProto.matchesSelector){return"matchesSelector"}
// check vendor prefixes
var prefixes=["webkit","moz","ms","o"];for(var i=0,len=prefixes.length;i<len;i++){var prefix=prefixes[i];var method=prefix+"MatchesSelector";if(ElemProto[method]){return method}}}();
// ----- match ----- //
function match(elem,selector){return elem[matchesMethod](selector)}
// ----- appendToFragment ----- //
function checkParent(elem){
// not needed if already has parent
if(elem.parentNode){return}var fragment=document.createDocumentFragment();fragment.appendChild(elem)}
// ----- query ----- //
// fall back to using QSA
// thx @jonathantneal https://gist.github.com/3062955
function query(elem,selector){
// append to fragment if no parent
checkParent(elem);
// match elem with all selected elems of parent
var elems=elem.parentNode.querySelectorAll(selector);for(var i=0,len=elems.length;i<len;i++){
// return true if match
if(elems[i]===elem){return true}}
// otherwise return false
return false}
// ----- matchChild ----- //
function matchChild(elem,selector){checkParent(elem);return match(elem,selector)}
// ----- matchesSelector ----- //
var matchesSelector;if(matchesMethod){
// IE9 supports matchesSelector, but doesn't work on orphaned elems
// check for that
var div=document.createElement("div");var supportsOrphans=match(div,"div");matchesSelector=supportsOrphans?match:matchChild}else{matchesSelector=query}
// transport
if(typeof define==="function"&&define.amd){
// AMD
define("matches-selector/matches-selector",[],function(){return matchesSelector})}else if(typeof exports==="object"){module.exports=matchesSelector}else{
// browser global
window.matchesSelector=matchesSelector}})(Element.prototype);
/**
 * Fizzy UI utils v1.0.1
 * MIT license
 */
/*jshint browser: true, undef: true, unused: true, strict: true */
(function(window,factory){
/*global define: false, module: false, require: false */
"use strict";
// universal module definition
if(typeof define=="function"&&define.amd){
// AMD
define("fizzy-ui-utils/utils",["doc-ready/doc-ready","matches-selector/matches-selector"],function(docReady,matchesSelector){return factory(window,docReady,matchesSelector)})}else if(typeof exports=="object"){
// CommonJS
module.exports=factory(window,require("doc-ready"),require("desandro-matches-selector"))}else{
// browser global
window.fizzyUIUtils=factory(window,window.docReady,window.matchesSelector)}})(window,function factory(window,docReady,matchesSelector){var utils={};
// ----- extend ----- //
// extends objects
utils.extend=function(a,b){for(var prop in b){a[prop]=b[prop]}return a};
// ----- modulo ----- //
utils.modulo=function(num,div){return(num%div+div)%div};
// ----- isArray ----- //
var objToString=Object.prototype.toString;utils.isArray=function(obj){return objToString.call(obj)=="[object Array]"};
// ----- makeArray ----- //
// turn element or nodeList into an array
utils.makeArray=function(obj){var ary=[];if(utils.isArray(obj)){
// use object if already an array
ary=obj}else if(obj&&typeof obj.length=="number"){
// convert nodeList to array
for(var i=0,len=obj.length;i<len;i++){ary.push(obj[i])}}else{
// array of single index
ary.push(obj)}return ary};
// ----- indexOf ----- //
// index of helper cause IE8
utils.indexOf=Array.prototype.indexOf?function(ary,obj){return ary.indexOf(obj)}:function(ary,obj){for(var i=0,len=ary.length;i<len;i++){if(ary[i]===obj){return i}}return-1};
// ----- removeFrom ----- //
utils.removeFrom=function(ary,obj){var index=utils.indexOf(ary,obj);if(index!=-1){ary.splice(index,1)}};
// ----- isElement ----- //
// http://stackoverflow.com/a/384380/182183
utils.isElement=typeof HTMLElement=="function"||typeof HTMLElement=="object"?function isElementDOM2(obj){return obj instanceof HTMLElement}:function isElementQuirky(obj){return obj&&typeof obj=="object"&&obj.nodeType==1&&typeof obj.nodeName=="string"};
// ----- setText ----- //
utils.setText=function(){var setTextProperty;function setText(elem,text){
// only check setTextProperty once
setTextProperty=setTextProperty||(document.documentElement.textContent!==undefined?"textContent":"innerText");elem[setTextProperty]=text}return setText}();
// ----- getParent ----- //
utils.getParent=function(elem,selector){while(elem!=document.body){elem=elem.parentNode;if(matchesSelector(elem,selector)){return elem}}};
// ----- getQueryElement ----- //
// use element as selector string
utils.getQueryElement=function(elem){if(typeof elem=="string"){return document.querySelector(elem)}return elem};
// ----- handleEvent ----- //
// enable .ontype to trigger from .addEventListener( elem, 'type' )
utils.handleEvent=function(event){var method="on"+event.type;if(this[method]){this[method](event)}};
// ----- filterFindElements ----- //
utils.filterFindElements=function(elems,selector){
// make array of elems
elems=utils.makeArray(elems);var ffElems=[];for(var i=0,len=elems.length;i<len;i++){var elem=elems[i];
// check that elem is an actual element
if(!utils.isElement(elem)){continue}
// filter & find items if we have a selector
if(selector){
// filter siblings
if(matchesSelector(elem,selector)){ffElems.push(elem)}
// find children
var childElems=elem.querySelectorAll(selector);
// concat childElems to filterFound array
for(var j=0,jLen=childElems.length;j<jLen;j++){ffElems.push(childElems[j])}}else{ffElems.push(elem)}}return ffElems};
// ----- debounceMethod ----- //
utils.debounceMethod=function(_class,methodName,threshold){
// original method
var method=_class.prototype[methodName];var timeoutName=methodName+"Timeout";_class.prototype[methodName]=function(){var timeout=this[timeoutName];if(timeout){clearTimeout(timeout)}var args=arguments;var _this=this;this[timeoutName]=setTimeout(function(){method.apply(_this,args);delete _this[timeoutName]},threshold||100)}};
// ----- htmlInit ----- //
// http://jamesroberts.name/blog/2010/02/22/string-functions-for-javascript-trim-to-camel-case-to-dashed-and-to-underscore/
utils.toDashed=function(str){return str.replace(/(.)([A-Z])/g,function(match,$1,$2){return $1+"-"+$2}).toLowerCase()};var console=window.console;
/**
 * allow user to initialize classes via .js-namespace class
 * htmlInit( Widget, 'widgetName' )
 * options are parsed from data-namespace-option attribute
 */utils.htmlInit=function(WidgetClass,namespace){docReady(function(){var dashedNamespace=utils.toDashed(namespace);var elems=document.querySelectorAll(".js-"+dashedNamespace);var dataAttr="data-"+dashedNamespace+"-options";for(var i=0,len=elems.length;i<len;i++){var elem=elems[i];var attr=elem.getAttribute(dataAttr);var options;try{options=attr&&JSON.parse(attr)}catch(error){
// log error, do not initialize
if(console){console.error("Error parsing "+dataAttr+" on "+elem.nodeName.toLowerCase()+(elem.id?"#"+elem.id:"")+": "+error)}continue}
// initialize
var instance=new WidgetClass(elem,options);
// make available via $().data('layoutname')
var jQuery=window.jQuery;if(jQuery){jQuery.data(elem,namespace,instance)}}})};
// -----  ----- //
return utils});(function(window,factory){"use strict";
// universal module definition
if(typeof define=="function"&&define.amd){
// AMD
define("flickity/js/cell",["get-size/get-size"],function(getSize){return factory(window,getSize)})}else if(typeof exports=="object"){
// CommonJS
module.exports=factory(window,require("get-size"))}else{
// browser global
window.Flickity=window.Flickity||{};window.Flickity.Cell=factory(window,window.getSize)}})(window,function factory(window,getSize){function Cell(elem,parent){this.element=elem;this.parent=parent;this.create()}var isIE8="attachEvent"in window;Cell.prototype.create=function(){this.element.style.position="absolute";
// IE8 prevent child from changing focus http://stackoverflow.com/a/17525223/182183
if(isIE8){this.element.setAttribute("unselectable","on")}this.x=0;this.shift=0};Cell.prototype.destroy=function(){
// reset style
this.element.style.position="";var side=this.parent.originSide;this.element.style[side]=""};Cell.prototype.getSize=function(){this.size=getSize(this.element)};Cell.prototype.setPosition=function(x){this.x=x;this.setDefaultTarget();this.renderPosition(x)};Cell.prototype.setDefaultTarget=function(){var marginProperty=this.parent.originSide=="left"?"marginLeft":"marginRight";this.target=this.x+this.size[marginProperty]+this.size.width*this.parent.cellAlign};Cell.prototype.renderPosition=function(x){
// render position of cell with in slider
var side=this.parent.originSide;this.element.style[side]=this.parent.getPositionValue(x)};
/**
 * @param {Integer} factor - 0, 1, or -1
**/Cell.prototype.wrapShift=function(shift){this.shift=shift;this.renderPosition(this.x+this.parent.slideableWidth*shift)};Cell.prototype.remove=function(){this.element.parentNode.removeChild(this.element)};return Cell});(function(window,factory){"use strict";
// universal module definition
if(typeof define=="function"&&define.amd){
// AMD
define("flickity/js/animate",["get-style-property/get-style-property","fizzy-ui-utils/utils"],function(getStyleProperty,utils){return factory(window,getStyleProperty,utils)})}else if(typeof exports=="object"){
// CommonJS
module.exports=factory(window,require("desandro-get-style-property"),require("fizzy-ui-utils"))}else{
// browser global
window.Flickity=window.Flickity||{};window.Flickity.animatePrototype=factory(window,window.getStyleProperty,window.fizzyUIUtils)}})(window,function factory(window,getStyleProperty,utils){
// -------------------------- requestAnimationFrame -------------------------- //
// https://gist.github.com/1866474
var lastTime=0;var prefixes="webkit moz ms o".split(" ");
// get unprefixed rAF and cAF, if present
var requestAnimationFrame=window.requestAnimationFrame;var cancelAnimationFrame=window.cancelAnimationFrame;
// loop through vendor prefixes and get prefixed rAF and cAF
var prefix;for(var i=0;i<prefixes.length;i++){if(requestAnimationFrame&&cancelAnimationFrame){break}prefix=prefixes[i];requestAnimationFrame=requestAnimationFrame||window[prefix+"RequestAnimationFrame"];cancelAnimationFrame=cancelAnimationFrame||window[prefix+"CancelAnimationFrame"]||window[prefix+"CancelRequestAnimationFrame"]}
// fallback to setTimeout and clearTimeout if either request/cancel is not supported
if(!requestAnimationFrame||!cancelAnimationFrame){requestAnimationFrame=function(callback){var currTime=(new Date).getTime();var timeToCall=Math.max(0,16-(currTime-lastTime));var id=window.setTimeout(function(){callback(currTime+timeToCall)},timeToCall);lastTime=currTime+timeToCall;return id};cancelAnimationFrame=function(id){window.clearTimeout(id)}}
// -------------------------- animate -------------------------- //
var proto={};proto.startAnimation=function(){if(this.isAnimating){return}this.isAnimating=true;this.restingFrames=0;this.animate()};proto.animate=function(){this.applyDragForce();this.applySelectedAttraction();var previousX=this.x;this.integratePhysics();this.positionSlider();this.settle(previousX);
// animate next frame
if(this.isAnimating){var _this=this;requestAnimationFrame(function animateFrame(){_this.animate()})}
/** /
  // log animation frame rate
  var now = new Date();
  if ( this.then ) {
    console.log( ~~( 1000 / (now-this.then)) + 'fps' )
  }
  this.then = now;
  /**/};var transformProperty=getStyleProperty("transform");var is3d=!!getStyleProperty("perspective");proto.positionSlider=function(){var x=this.x;
// wrap position around
if(this.options.wrapAround&&this.cells.length>1){x=utils.modulo(x,this.slideableWidth);x=x-this.slideableWidth;this.shiftWrapCells(x)}x=x+this.cursorPosition;
// reverse if right-to-left and using transform
x=this.options.rightToLeft&&transformProperty?-x:x;var value=this.getPositionValue(x);if(transformProperty){
// use 3D tranforms for hardware acceleration on iOS
// but use 2D when settled, for better font-rendering
this.slider.style[transformProperty]=is3d&&this.isAnimating?"translate3d("+value+",0,0)":"translateX("+value+")"}else{this.slider.style[this.originSide]=value}};proto.positionSliderAtSelected=function(){if(!this.cells.length){return}var selectedCell=this.cells[this.selectedIndex];this.x=-selectedCell.target;this.positionSlider()};proto.getPositionValue=function(position){if(this.options.percentPosition){
// percent position, round to 2 digits, like 12.34%
return Math.round(position/this.size.innerWidth*1e4)*.01+"%"}else{
// pixel positioning
return Math.round(position)+"px"}};proto.settle=function(previousX){
// keep track of frames where x hasn't moved
if(!this.isPointerDown&&Math.round(this.x*100)==Math.round(previousX*100)){this.restingFrames++}
// stop animating if resting for 3 or more frames
if(this.restingFrames>2){this.isAnimating=false;delete this.isFreeScrolling;
// render position with translateX when settled
if(is3d){this.positionSlider()}this.dispatchEvent("settle")}};proto.shiftWrapCells=function(x){
// shift before cells
var beforeGap=this.cursorPosition+x;this._shiftCells(this.beforeShiftCells,beforeGap,-1);
// shift after cells
var afterGap=this.size.innerWidth-(x+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,afterGap,1)};proto._shiftCells=function(cells,gap,shift){for(var i=0,len=cells.length;i<len;i++){var cell=cells[i];var cellShift=gap>0?shift:0;cell.wrapShift(cellShift);gap-=cell.size.outerWidth}};proto._unshiftCells=function(cells){if(!cells||!cells.length){return}for(var i=0,len=cells.length;i<len;i++){cells[i].wrapShift(0)}};
// -------------------------- physics -------------------------- //
proto.integratePhysics=function(){this.velocity+=this.accel;this.x+=this.velocity;this.velocity*=this.getFrictionFactor();
// reset acceleration
this.accel=0};proto.applyForce=function(force){this.accel+=force};proto.getFrictionFactor=function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]};proto.getRestingPosition=function(){
// my thanks to Steven Wittens, who simplified this math greatly
return this.x+this.velocity/(1-this.getFrictionFactor())};proto.applyDragForce=function(){if(!this.isPointerDown){return}
// change the position to drag position by applying force
var dragVelocity=this.dragX-this.x;var dragForce=dragVelocity-this.velocity;this.applyForce(dragForce)};proto.applySelectedAttraction=function(){
// do not attract if pointer down or no cells
var len=this.cells.length;if(this.isPointerDown||this.isFreeScrolling||!len){return}var cell=this.cells[this.selectedIndex];var wrap=this.options.wrapAround&&len>1?this.slideableWidth*Math.floor(this.selectedIndex/len):0;var distance=(cell.target+wrap)*-1-this.x;var force=distance*this.options.selectedAttraction;this.applyForce(force)};return proto});
/**
 * Flickity main
 */
(function(window,factory){"use strict";
// universal module definition
if(typeof define=="function"&&define.amd){
// AMD
define("flickity/js/flickity",["classie/classie","eventEmitter/EventEmitter","eventie/eventie","get-size/get-size","fizzy-ui-utils/utils","./cell","./animate"],function(classie,EventEmitter,eventie,getSize,utils,Cell,animatePrototype){return factory(window,classie,EventEmitter,eventie,getSize,utils,Cell,animatePrototype)})}else if(typeof exports=="object"){
// CommonJS
module.exports=factory(window,require("desandro-classie"),require("wolfy87-eventemitter"),require("eventie"),require("get-size"),require("fizzy-ui-utils"),require("./cell"),require("./animate"))}else{
// browser global
var _Flickity=window.Flickity;window.Flickity=factory(window,window.classie,window.EventEmitter,window.eventie,window.getSize,window.fizzyUIUtils,_Flickity.Cell,_Flickity.animatePrototype)}})(window,function factory(window,classie,EventEmitter,eventie,getSize,utils,Cell,animatePrototype){
// vars
var jQuery=window.jQuery;var getComputedStyle=window.getComputedStyle;var console=window.console;function moveElements(elems,toElem){elems=utils.makeArray(elems);while(elems.length){toElem.appendChild(elems.shift())}}
// -------------------------- Flickity -------------------------- //
// globally unique identifiers
var GUID=0;
// internal store of all Flickity intances
var instances={};function Flickity(element,options){var queryElement=utils.getQueryElement(element);if(!queryElement){if(console){console.error("Bad element for Flickity: "+(queryElement||element))}return}this.element=queryElement;
// add jQuery
if(jQuery){this.$element=jQuery(this.element)}
// options
this.options=utils.extend({},this.constructor.defaults);this.option(options);
// kick things off
this._create()}Flickity.defaults={accessibility:true,cellAlign:"center",
// cellSelector: undefined,
// contain: false,
freeScrollFriction:.075,// friction when free-scrolling
friction:.28,// friction when selecting
// initialIndex: 0,
percentPosition:true,resize:true,selectedAttraction:.025,setGallerySize:true};
// hash of methods triggered on _create()
Flickity.createMethods=[];
// inherit EventEmitter
utils.extend(Flickity.prototype,EventEmitter.prototype);Flickity.prototype._create=function(){
// add id for Flickity.data
var id=this.guid=++GUID;this.element.flickityGUID=id;// expando
instances[id]=this;// associate via id
// initial properties
this.selectedIndex=0;
// how many frames slider has been in same position
this.restingFrames=0;
// initial physics properties
this.x=0;this.velocity=0;this.accel=0;this.originSide=this.options.rightToLeft?"right":"left";
// create viewport & slider
this.viewport=document.createElement("div");this.viewport.className="flickity-viewport";Flickity.setUnselectable(this.viewport);this._createSlider();if(this.options.resize||this.options.watchCSS){eventie.bind(window,"resize",this);this.isResizeBound=true}for(var i=0,len=Flickity.createMethods.length;i<len;i++){var method=Flickity.createMethods[i];this[method]()}if(this.options.watchCSS){this.watchCSS()}else{this.activate()}};
/**
 * set options
 * @param {Object} opts
 */Flickity.prototype.option=function(opts){utils.extend(this.options,opts)};Flickity.prototype.activate=function(){if(this.isActive){return}this.isActive=true;classie.add(this.element,"flickity-enabled");if(this.options.rightToLeft){classie.add(this.element,"flickity-rtl")}this.getSize();
// move initial cell elements so they can be loaded as cells
var cellElems=this._filterFindCellElements(this.element.children);moveElements(cellElems,this.slider);this.viewport.appendChild(this.slider);this.element.appendChild(this.viewport);
// get cells from children
this.reloadCells();if(this.options.accessibility){
// allow element to focusable
this.element.tabIndex=0;
// listen for key presses
eventie.bind(this.element,"keydown",this)}this.emit("activate");var index;var initialIndex=this.options.initialIndex;if(this.isInitActivated){index=this.selectedIndex}else if(initialIndex!==undefined){index=this.cells[initialIndex]?initialIndex:0}else{index=0}
// select instantly
this.select(index,false,true);
// flag for initial activation, for using initialIndex
this.isInitActivated=true};
// slider positions the cells
Flickity.prototype._createSlider=function(){
// slider element does all the positioning
var slider=document.createElement("div");slider.className="flickity-slider";slider.style[this.originSide]=0;this.slider=slider};Flickity.prototype._filterFindCellElements=function(elems){return utils.filterFindElements(elems,this.options.cellSelector)};
// goes through all children
Flickity.prototype.reloadCells=function(){
// collection of item elements
this.cells=this._makeCells(this.slider.children);this.positionCells();this._getWrapShiftCells();this.setGallerySize()};
/**
 * turn elements into Flickity.Cells
 * @param {Array or NodeList or HTMLElement} elems
 * @returns {Array} items - collection of new Flickity Cells
 */Flickity.prototype._makeCells=function(elems){var cellElems=this._filterFindCellElements(elems);
// create new Flickity for collection
var cells=[];for(var i=0,len=cellElems.length;i<len;i++){var elem=cellElems[i];var cell=new Cell(elem,this);cells.push(cell)}return cells};Flickity.prototype.getLastCell=function(){return this.cells[this.cells.length-1]};
// positions all cells
Flickity.prototype.positionCells=function(){
// size all cells
this._sizeCells(this.cells);
// position all cells
this._positionCells(0)};
/**
 * position certain cells
 * @param {Integer} index - which cell to start with
 */Flickity.prototype._positionCells=function(index){index=index||0;
// also measure maxCellHeight
// start 0 if positioning all cells
this.maxCellHeight=index?this.maxCellHeight||0:0;var cellX=0;
// get cellX
if(index>0){var startCell=this.cells[index-1];cellX=startCell.x+startCell.size.outerWidth}var cell;for(var len=this.cells.length,i=index;i<len;i++){cell=this.cells[i];cell.setPosition(cellX);cellX+=cell.size.outerWidth;this.maxCellHeight=Math.max(cell.size.outerHeight,this.maxCellHeight)}
// keep track of cellX for wrap-around
this.slideableWidth=cellX;
// contain cell target
this._containCells()};
/**
 * cell.getSize() on multiple cells
 * @param {Array} cells
 */Flickity.prototype._sizeCells=function(cells){for(var i=0,len=cells.length;i<len;i++){var cell=cells[i];cell.getSize()}};
// alias _init for jQuery plugin .flickity()
Flickity.prototype._init=Flickity.prototype.reposition=function(){this.positionCells();this.positionSliderAtSelected()};Flickity.prototype.getSize=function(){this.size=getSize(this.element);this.setCellAlign();this.cursorPosition=this.size.innerWidth*this.cellAlign};var cellAlignShorthands={
// cell align, then based on origin side
center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};Flickity.prototype.setCellAlign=function(){var shorthand=cellAlignShorthands[this.options.cellAlign];this.cellAlign=shorthand?shorthand[this.originSide]:this.options.cellAlign};Flickity.prototype.setGallerySize=function(){if(this.options.setGallerySize){this.viewport.style.height=this.maxCellHeight+"px"}};Flickity.prototype._getWrapShiftCells=function(){
// only for wrap-around
if(!this.options.wrapAround){return}
// unshift previous cells
this._unshiftCells(this.beforeShiftCells);this._unshiftCells(this.afterShiftCells);
// get before cells
// initial gap
var gapX=this.cursorPosition;var cellIndex=this.cells.length-1;this.beforeShiftCells=this._getGapCells(gapX,cellIndex,-1);
// get after cells
// ending gap between last cell and end of gallery viewport
gapX=this.size.innerWidth-this.cursorPosition;
// start cloning at first cell, working forwards
this.afterShiftCells=this._getGapCells(gapX,0,1)};Flickity.prototype._getGapCells=function(gapX,cellIndex,increment){
// keep adding cells until the cover the initial gap
var cells=[];while(gapX>0){var cell=this.cells[cellIndex];if(!cell){break}cells.push(cell);cellIndex+=increment;gapX-=cell.size.outerWidth}return cells};
// ----- contain ----- //
// contain cell targets so no excess sliding
Flickity.prototype._containCells=function(){if(!this.options.contain||this.options.wrapAround||!this.cells.length){return}var startMargin=this.options.rightToLeft?"marginRight":"marginLeft";var endMargin=this.options.rightToLeft?"marginLeft":"marginRight";var firstCellStartMargin=this.cells[0].size[startMargin];var lastCell=this.getLastCell();var contentWidth=this.slideableWidth-lastCell.size[endMargin];var endLimit=contentWidth-this.size.innerWidth*(1-this.cellAlign);
// content is less than gallery size
var isContentSmaller=contentWidth<this.size.innerWidth;
// contain each cell target
for(var i=0,len=this.cells.length;i<len;i++){var cell=this.cells[i];
// reset default target
cell.setDefaultTarget();if(isContentSmaller){
// all cells fit inside gallery
cell.target=contentWidth*this.cellAlign}else{
// contain to bounds
cell.target=Math.max(cell.target,this.cursorPosition+firstCellStartMargin);cell.target=Math.min(cell.target,endLimit)}}};
// -----  ----- //
/**
 * emits events via eventEmitter and jQuery events
 * @param {String} type - name of event
 * @param {Event} event - original event
 * @param {Array} args - extra arguments
 */Flickity.prototype.dispatchEvent=function(type,event,args){var emitArgs=[event].concat(args);this.emitEvent(type,emitArgs);if(jQuery&&this.$element){if(event){
// create jQuery event
var $event=jQuery.Event(event);$event.type=type;this.$element.trigger($event,args)}else{
// just trigger with type if no event available
this.$element.trigger(type,args)}}};
// -------------------------- select -------------------------- //
/**
 * @param {Integer} index - index of the cell
 * @param {Boolean} isWrap - will wrap-around to last/first if at the end
 * @param {Boolean} isInstant - will immediately set position at selected cell
 */Flickity.prototype.select=function(index,isWrap,isInstant){if(!this.isActive){return}index=parseInt(index,10);
// wrap position so slider is within normal area
var len=this.cells.length;if(this.options.wrapAround&&len>1){if(index<0){this.x-=this.slideableWidth}else if(index>=len){this.x+=this.slideableWidth}}if(this.options.wrapAround||isWrap){index=utils.modulo(index,len)}
// bail if invalid index
if(!this.cells[index]){return}this.selectedIndex=index;this.setSelectedCell();if(isInstant){this.positionSliderAtSelected()}else{this.startAnimation()}this.dispatchEvent("cellSelect")};Flickity.prototype.previous=function(isWrap){this.select(this.selectedIndex-1,isWrap)};Flickity.prototype.next=function(isWrap){this.select(this.selectedIndex+1,isWrap)};Flickity.prototype.setSelectedCell=function(){this._removeSelectedCellClass();this.selectedCell=this.cells[this.selectedIndex];this.selectedElement=this.selectedCell.element;classie.add(this.selectedElement,"is-selected")};Flickity.prototype._removeSelectedCellClass=function(){if(this.selectedCell){classie.remove(this.selectedCell.element,"is-selected")}};
// -------------------------- get cells -------------------------- //
/**
 * get Flickity.Cell, given an Element
 * @param {Element} elem
 * @returns {Flickity.Cell} item
 */Flickity.prototype.getCell=function(elem){
// loop through cells to get the one that matches
for(var i=0,len=this.cells.length;i<len;i++){var cell=this.cells[i];if(cell.element==elem){return cell}}};
/**
 * get collection of Flickity.Cells, given Elements
 * @param {Element, Array, NodeList} elems
 * @returns {Array} cells - Flickity.Cells
 */Flickity.prototype.getCells=function(elems){elems=utils.makeArray(elems);var cells=[];for(var i=0,len=elems.length;i<len;i++){var elem=elems[i];var cell=this.getCell(elem);if(cell){cells.push(cell)}}return cells};
/**
 * get cell elements
 * @returns {Array} cellElems
 */Flickity.prototype.getCellElements=function(){var cellElems=[];for(var i=0,len=this.cells.length;i<len;i++){cellElems.push(this.cells[i].element)}return cellElems};
/**
 * get parent cell from an element
 * @param {Element} elem
 * @returns {Flickit.Cell} cell
 */Flickity.prototype.getParentCell=function(elem){
// first check if elem is cell
var cell=this.getCell(elem);if(cell){return cell}
// try to get parent cell elem
elem=utils.getParent(elem,".flickity-slider > *");return this.getCell(elem)};
/**
 * get cells adjacent to a cell
 * @param {Integer} adjCount - number of adjacent cells
 * @param {Integer} index - index of cell to start
 * @returns {Array} cells - array of Flickity.Cells
 */Flickity.prototype.getAdjacentCellElements=function(adjCount,index){if(!adjCount){return[this.selectedElement]}index=index===undefined?this.selectedIndex:index;var len=this.cells.length;if(1+adjCount*2>=len){return this.getCellElements()}var cellElems=[];for(var i=index-adjCount;i<=index+adjCount;i++){var cellIndex=this.options.wrapAround?utils.modulo(i,len):i;var cell=this.cells[cellIndex];if(cell){cellElems.push(cell.element)}}return cellElems};
// -------------------------- events -------------------------- //
Flickity.prototype.uiChange=function(){this.emit("uiChange")};Flickity.prototype.childUIPointerDown=function(event){this.emitEvent("childUIPointerDown",[event])};
// ----- resize ----- //
Flickity.prototype.onresize=function(){this.watchCSS();this.resize()};utils.debounceMethod(Flickity,"onresize",150);Flickity.prototype.resize=function(){if(!this.isActive){return}this.getSize();
// wrap values
if(this.options.wrapAround){this.x=utils.modulo(this.x,this.slideableWidth)}this.positionCells();this._getWrapShiftCells();this.setGallerySize();this.positionSliderAtSelected()};var supportsConditionalCSS=Flickity.supportsConditionalCSS=function(){var supports;return function checkSupport(){if(supports!==undefined){return supports}if(!getComputedStyle){supports=false;return}
// style body's :after and check that
var style=document.createElement("style");var cssText=document.createTextNode('body:after { content: "foo"; display: none; }');style.appendChild(cssText);document.head.appendChild(style);var afterContent=getComputedStyle(document.body,":after").content;
// check if able to get :after content
supports=afterContent.indexOf("foo")!=-1;document.head.removeChild(style);return supports}}();
// watches the :after property, activates/deactivates
Flickity.prototype.watchCSS=function(){var watchOption=this.options.watchCSS;if(!watchOption){return}var supports=supportsConditionalCSS();if(!supports){
// activate if watch option is fallbackOn
var method=watchOption=="fallbackOn"?"activate":"deactivate";this[method]();return}var afterContent=getComputedStyle(this.element,":after").content;
// activate if :after { content: 'flickity' }
if(afterContent.indexOf("flickity")!=-1){this.activate()}else{this.deactivate()}};
// ----- keydown ----- //
// go previous/next if left/right keys pressed
Flickity.prototype.onkeydown=function(event){
// only work if element is in focus
if(!this.options.accessibility||document.activeElement&&document.activeElement!=this.element){return}if(event.keyCode==37){
// go left
var leftMethod=this.options.rightToLeft?"next":"previous";this.uiChange();this[leftMethod]()}else if(event.keyCode==39){
// go right
var rightMethod=this.options.rightToLeft?"previous":"next";this.uiChange();this[rightMethod]()}};
// -------------------------- destroy -------------------------- //
// deactivate all Flickity functionality, but keep stuff available
Flickity.prototype.deactivate=function(){if(!this.isActive){return}classie.remove(this.element,"flickity-enabled");classie.remove(this.element,"flickity-rtl");
// destroy cells
for(var i=0,len=this.cells.length;i<len;i++){var cell=this.cells[i];cell.destroy()}this._removeSelectedCellClass();this.element.removeChild(this.viewport);
// move child elements back into element
moveElements(this.slider.children,this.element);if(this.options.accessibility){this.element.removeAttribute("tabIndex");eventie.unbind(this.element,"keydown",this)}
// set flags
this.isActive=false;this.emit("deactivate")};Flickity.prototype.destroy=function(){this.deactivate();if(this.isResizeBound){eventie.unbind(window,"resize",this)}this.emit("destroy");if(jQuery&&this.$element){jQuery.removeData(this.element,"flickity")}delete this.element.flickityGUID;delete instances[this.guid]};
// -------------------------- prototype -------------------------- //
utils.extend(Flickity.prototype,animatePrototype);
// -------------------------- extras -------------------------- //
// quick check for IE8
var isIE8="attachEvent"in window;Flickity.setUnselectable=function(elem){if(!isIE8){return}
// IE8 prevent child from changing focus http://stackoverflow.com/a/17525223/182183
elem.setAttribute("unselectable","on")};
/**
 * get Flickity instance from element
 * @param {Element} elem
 * @returns {Flickity}
 */Flickity.data=function(elem){elem=utils.getQueryElement(elem);var id=elem&&elem.flickityGUID;return id&&instances[id]};utils.htmlInit(Flickity,"flickity");if(jQuery&&jQuery.bridget){jQuery.bridget("flickity",Flickity)}Flickity.Cell=Cell;return Flickity});
/*!
 * Unipointer v1.1.0
 * base class for doing one thing with pointer event
 * MIT license
 */
/*jshint browser: true, undef: true, unused: true, strict: true */
/*global define: false, module: false, require: false */
(function(window,factory){"use strict";
// universal module definition
if(typeof define=="function"&&define.amd){
// AMD
define("unipointer/unipointer",["eventEmitter/EventEmitter","eventie/eventie"],function(EventEmitter,eventie){return factory(window,EventEmitter,eventie)})}else if(typeof exports=="object"){
// CommonJS
module.exports=factory(window,require("wolfy87-eventemitter"),require("eventie"))}else{
// browser global
window.Unipointer=factory(window,window.EventEmitter,window.eventie)}})(window,function factory(window,EventEmitter,eventie){function noop(){}function Unipointer(){}
// inherit EventEmitter
Unipointer.prototype=new EventEmitter;Unipointer.prototype.bindStartEvent=function(elem){this._bindStartEvent(elem,true)};Unipointer.prototype.unbindStartEvent=function(elem){this._bindStartEvent(elem,false)};
/**
 * works as unbinder, as you can ._bindStart( false ) to unbind
 * @param {Boolean} isBind - will unbind if falsey
 */Unipointer.prototype._bindStartEvent=function(elem,isBind){
// munge isBind, default to true
isBind=isBind===undefined?true:!!isBind;var bindMethod=isBind?"bind":"unbind";if(window.navigator.pointerEnabled){
// W3C Pointer Events, IE11. See https://coderwall.com/p/mfreca
eventie[bindMethod](elem,"pointerdown",this)}else if(window.navigator.msPointerEnabled){
// IE10 Pointer Events
eventie[bindMethod](elem,"MSPointerDown",this)}else{
// listen for both, for devices like Chrome Pixel
eventie[bindMethod](elem,"mousedown",this);eventie[bindMethod](elem,"touchstart",this)}};
// trigger handler methods for events
Unipointer.prototype.handleEvent=function(event){var method="on"+event.type;if(this[method]){this[method](event)}};
// returns the touch that we're keeping track of
Unipointer.prototype.getTouch=function(touches){for(var i=0,len=touches.length;i<len;i++){var touch=touches[i];if(touch.identifier==this.pointerIdentifier){return touch}}};
// ----- start event ----- //
Unipointer.prototype.onmousedown=function(event){
// dismiss clicks from right or middle buttons
var button=event.button;if(button&&(button!==0&&button!==1)){return}this._pointerDown(event,event)};Unipointer.prototype.ontouchstart=function(event){this._pointerDown(event,event.changedTouches[0])};Unipointer.prototype.onMSPointerDown=Unipointer.prototype.onpointerdown=function(event){this._pointerDown(event,event)};
/**
 * pointer start
 * @param {Event} event
 * @param {Event or Touch} pointer
 */Unipointer.prototype._pointerDown=function(event,pointer){
// dismiss other pointers
if(this.isPointerDown){return}this.isPointerDown=true;
// save pointer identifier to match up touch events
this.pointerIdentifier=pointer.pointerId!==undefined?
// pointerId for pointer events, touch.indentifier for touch events
pointer.pointerId:pointer.identifier;this.pointerDown(event,pointer)};Unipointer.prototype.pointerDown=function(event,pointer){this._bindPostStartEvents(event);this.emitEvent("pointerDown",[event,pointer])};
// hash of events to be bound after start event
var postStartEvents={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"],MSPointerDown:["MSPointerMove","MSPointerUp","MSPointerCancel"]};Unipointer.prototype._bindPostStartEvents=function(event){if(!event){return}
// get proper events to match start event
var events=postStartEvents[event.type];
// IE8 needs to be bound to document
var node=event.preventDefault?window:document;
// bind events to node
for(var i=0,len=events.length;i<len;i++){var evnt=events[i];eventie.bind(node,evnt,this)}
// save these arguments
this._boundPointerEvents={events:events,node:node}};Unipointer.prototype._unbindPostStartEvents=function(){var args=this._boundPointerEvents;
// IE8 can trigger dragEnd twice, check for _boundEvents
if(!args||!args.events){return}for(var i=0,len=args.events.length;i<len;i++){var event=args.events[i];eventie.unbind(args.node,event,this)}delete this._boundPointerEvents};
// ----- move event ----- //
Unipointer.prototype.onmousemove=function(event){this._pointerMove(event,event)};Unipointer.prototype.onMSPointerMove=Unipointer.prototype.onpointermove=function(event){if(event.pointerId==this.pointerIdentifier){this._pointerMove(event,event)}};Unipointer.prototype.ontouchmove=function(event){var touch=this.getTouch(event.changedTouches);if(touch){this._pointerMove(event,touch)}};
/**
 * pointer move
 * @param {Event} event
 * @param {Event or Touch} pointer
 * @private
 */Unipointer.prototype._pointerMove=function(event,pointer){this.pointerMove(event,pointer)};
// public
Unipointer.prototype.pointerMove=function(event,pointer){this.emitEvent("pointerMove",[event,pointer])};
// ----- end event ----- //
Unipointer.prototype.onmouseup=function(event){this._pointerUp(event,event)};Unipointer.prototype.onMSPointerUp=Unipointer.prototype.onpointerup=function(event){if(event.pointerId==this.pointerIdentifier){this._pointerUp(event,event)}};Unipointer.prototype.ontouchend=function(event){var touch=this.getTouch(event.changedTouches);if(touch){this._pointerUp(event,touch)}};
/**
 * pointer up
 * @param {Event} event
 * @param {Event or Touch} pointer
 * @private
 */Unipointer.prototype._pointerUp=function(event,pointer){this._pointerDone();this.pointerUp(event,pointer)};
// public
Unipointer.prototype.pointerUp=function(event,pointer){this.emitEvent("pointerUp",[event,pointer])};
// ----- pointer done ----- //
// triggered on pointer up & pointer cancel
Unipointer.prototype._pointerDone=function(){
// reset properties
this.isPointerDown=false;delete this.pointerIdentifier;
// remove events
this._unbindPostStartEvents();this.pointerDone()};Unipointer.prototype.pointerDone=noop;
// ----- pointer cancel ----- //
Unipointer.prototype.onMSPointerCancel=Unipointer.prototype.onpointercancel=function(event){if(event.pointerId==this.pointerIdentifier){this._pointerCancel(event,event)}};Unipointer.prototype.ontouchcancel=function(event){var touch=this.getTouch(event.changedTouches);if(touch){this._pointerCancel(event,touch)}};
/**
 * pointer cancel
 * @param {Event} event
 * @param {Event or Touch} pointer
 * @private
 */Unipointer.prototype._pointerCancel=function(event,pointer){this._pointerDone();this.pointerCancel(event,pointer)};
// public
Unipointer.prototype.pointerCancel=function(event,pointer){this.emitEvent("pointerCancel",[event,pointer])};
// -----  ----- //
// utility function for getting x/y cooridinates from event, because IE8
Unipointer.getPointerPoint=function(pointer){return{x:pointer.pageX!==undefined?pointer.pageX:pointer.clientX,y:pointer.pageY!==undefined?pointer.pageY:pointer.clientY}};
// -----  ----- //
return Unipointer});
/*!
 * Unidragger v1.1.6
 * Draggable base class
 * MIT license
 */
/*jshint browser: true, unused: true, undef: true, strict: true */
(function(window,factory){
/*global define: false, module: false, require: false */
"use strict";
// universal module definition
if(typeof define=="function"&&define.amd){
// AMD
define("unidragger/unidragger",["eventie/eventie","unipointer/unipointer"],function(eventie,Unipointer){return factory(window,eventie,Unipointer)})}else if(typeof exports=="object"){
// CommonJS
module.exports=factory(window,require("eventie"),require("unipointer"))}else{
// browser global
window.Unidragger=factory(window,window.eventie,window.Unipointer)}})(window,function factory(window,eventie,Unipointer){
// -----  ----- //
function noop(){}
// handle IE8 prevent default
function preventDefaultEvent(event){if(event.preventDefault){event.preventDefault()}else{event.returnValue=false}}
// -------------------------- Unidragger -------------------------- //
function Unidragger(){}
// inherit Unipointer & EventEmitter
Unidragger.prototype=new Unipointer;
// ----- bind start ----- //
Unidragger.prototype.bindHandles=function(){this._bindHandles(true)};Unidragger.prototype.unbindHandles=function(){this._bindHandles(false)};var navigator=window.navigator;
/**
 * works as unbinder, as you can .bindHandles( false ) to unbind
 * @param {Boolean} isBind - will unbind if falsey
 */Unidragger.prototype._bindHandles=function(isBind){
// munge isBind, default to true
isBind=isBind===undefined?true:!!isBind;
// extra bind logic
var binderExtra;if(navigator.pointerEnabled){binderExtra=function(handle){
// disable scrolling on the element
handle.style.touchAction=isBind?"none":""}}else if(navigator.msPointerEnabled){binderExtra=function(handle){
// disable scrolling on the element
handle.style.msTouchAction=isBind?"none":""}}else{binderExtra=function(){
// TODO re-enable img.ondragstart when unbinding
if(isBind){disableImgOndragstart(handle)}}}
// bind each handle
var bindMethod=isBind?"bind":"unbind";for(var i=0,len=this.handles.length;i<len;i++){var handle=this.handles[i];this._bindStartEvent(handle,isBind);binderExtra(handle);eventie[bindMethod](handle,"click",this)}};
// remove default dragging interaction on all images in IE8
// IE8 does its own drag thing on images, which messes stuff up
function noDragStart(){return false}
// TODO replace this with a IE8 test
var isIE8="attachEvent"in document.documentElement;
// IE8 only
var disableImgOndragstart=!isIE8?noop:function(handle){if(handle.nodeName=="IMG"){handle.ondragstart=noDragStart}var images=handle.querySelectorAll("img");for(var i=0,len=images.length;i<len;i++){var img=images[i];img.ondragstart=noDragStart}};
// ----- start event ----- //
/**
 * pointer start
 * @param {Event} event
 * @param {Event or Touch} pointer
 */Unidragger.prototype.pointerDown=function(event,pointer){
// dismiss range sliders
if(event.target.nodeName=="INPUT"&&event.target.type=="range"){
// reset pointerDown logic
this.isPointerDown=false;delete this.pointerIdentifier;return}this._dragPointerDown(event,pointer);
// kludge to blur focused inputs in dragger
var focused=document.activeElement;if(focused&&focused.blur){focused.blur()}
// bind move and end events
this._bindPostStartEvents(event);
// track scrolling
this.pointerDownScroll=Unidragger.getScrollPosition();eventie.bind(window,"scroll",this);this.emitEvent("pointerDown",[event,pointer])};
// base pointer down logic
Unidragger.prototype._dragPointerDown=function(event,pointer){
// track to see when dragging starts
this.pointerDownPoint=Unipointer.getPointerPoint(pointer);
// prevent default, unless touchstart or <select>
var isTouchstart=event.type=="touchstart";var targetNodeName=event.target.nodeName;if(!isTouchstart&&targetNodeName!="SELECT"){preventDefaultEvent(event)}};
// ----- move event ----- //
/**
 * drag move
 * @param {Event} event
 * @param {Event or Touch} pointer
 */Unidragger.prototype.pointerMove=function(event,pointer){var moveVector=this._dragPointerMove(event,pointer);this.emitEvent("pointerMove",[event,pointer,moveVector]);this._dragMove(event,pointer,moveVector)};
// base pointer move logic
Unidragger.prototype._dragPointerMove=function(event,pointer){var movePoint=Unipointer.getPointerPoint(pointer);var moveVector={x:movePoint.x-this.pointerDownPoint.x,y:movePoint.y-this.pointerDownPoint.y};
// start drag if pointer has moved far enough to start drag
if(!this.isDragging&&this.hasDragStarted(moveVector)){this._dragStart(event,pointer)}return moveVector};
// condition if pointer has moved far enough to start drag
Unidragger.prototype.hasDragStarted=function(moveVector){return Math.abs(moveVector.x)>3||Math.abs(moveVector.y)>3};
// ----- end event ----- //
/**
 * pointer up
 * @param {Event} event
 * @param {Event or Touch} pointer
 */Unidragger.prototype.pointerUp=function(event,pointer){this.emitEvent("pointerUp",[event,pointer]);this._dragPointerUp(event,pointer)};Unidragger.prototype._dragPointerUp=function(event,pointer){if(this.isDragging){this._dragEnd(event,pointer)}else{
// pointer didn't move enough for drag to start
this._staticClick(event,pointer)}};Unidragger.prototype.pointerDone=function(){eventie.unbind(window,"scroll",this)};
// -------------------------- drag -------------------------- //
// dragStart
Unidragger.prototype._dragStart=function(event,pointer){this.isDragging=true;this.dragStartPoint=Unidragger.getPointerPoint(pointer);
// prevent clicks
this.isPreventingClicks=true;this.dragStart(event,pointer)};Unidragger.prototype.dragStart=function(event,pointer){this.emitEvent("dragStart",[event,pointer])};
// dragMove
Unidragger.prototype._dragMove=function(event,pointer,moveVector){
// do not drag if not dragging yet
if(!this.isDragging){return}this.dragMove(event,pointer,moveVector)};Unidragger.prototype.dragMove=function(event,pointer,moveVector){preventDefaultEvent(event);this.emitEvent("dragMove",[event,pointer,moveVector])};
// dragEnd
Unidragger.prototype._dragEnd=function(event,pointer){
// set flags
this.isDragging=false;
// re-enable clicking async
var _this=this;setTimeout(function(){delete _this.isPreventingClicks});this.dragEnd(event,pointer)};Unidragger.prototype.dragEnd=function(event,pointer){this.emitEvent("dragEnd",[event,pointer])};Unidragger.prototype.pointerDone=function(){eventie.unbind(window,"scroll",this);delete this.pointerDownScroll};
// ----- onclick ----- //
// handle all clicks and prevent clicks when dragging
Unidragger.prototype.onclick=function(event){if(this.isPreventingClicks){preventDefaultEvent(event)}};
// ----- staticClick ----- //
// triggered after pointer down & up with no/tiny movement
Unidragger.prototype._staticClick=function(event,pointer){
// ignore emulated mouse up clicks
if(this.isIgnoringMouseUp&&event.type=="mouseup"){return}
// allow click in <input>s and <textarea>s
var nodeName=event.target.nodeName;if(nodeName=="INPUT"||nodeName=="TEXTAREA"){event.target.focus()}this.staticClick(event,pointer);
// set flag for emulated clicks 300ms after touchend
if(event.type!="mouseup"){this.isIgnoringMouseUp=true;var _this=this;
// reset flag after 300ms
setTimeout(function(){delete _this.isIgnoringMouseUp},400)}};Unidragger.prototype.staticClick=function(event,pointer){this.emitEvent("staticClick",[event,pointer])};
// ----- scroll ----- //
Unidragger.prototype.onscroll=function(){var scroll=Unidragger.getScrollPosition();var scrollMoveX=this.pointerDownScroll.x-scroll.x;var scrollMoveY=this.pointerDownScroll.y-scroll.y;
// cancel click/tap if scroll is too much
if(Math.abs(scrollMoveX)>3||Math.abs(scrollMoveY)>3){this._pointerDone()}};
// ----- utils ----- //
Unidragger.getPointerPoint=function(pointer){return{x:pointer.pageX!==undefined?pointer.pageX:pointer.clientX,y:pointer.pageY!==undefined?pointer.pageY:pointer.clientY}};var isPageOffset=window.pageYOffset!==undefined;
// get scroll in { x, y }
Unidragger.getScrollPosition=function(){return{x:isPageOffset?window.pageXOffset:document.body.scrollLeft,y:isPageOffset?window.pageYOffset:document.body.scrollTop}};
// -----  ----- //
Unidragger.getPointerPoint=Unipointer.getPointerPoint;return Unidragger});(function(window,factory){"use strict";
// universal module definition
if(typeof define=="function"&&define.amd){
// AMD
define("flickity/js/drag",["classie/classie","eventie/eventie","./flickity","unidragger/unidragger","fizzy-ui-utils/utils"],function(classie,eventie,Flickity,Unidragger,utils){return factory(window,classie,eventie,Flickity,Unidragger,utils)})}else if(typeof exports=="object"){
// CommonJS
module.exports=factory(window,require("desandro-classie"),require("eventie"),require("./flickity"),require("unidragger"),require("fizzy-ui-utils"))}else{
// browser global
window.Flickity=factory(window,window.classie,window.eventie,window.Flickity,window.Unidragger,window.fizzyUIUtils)}})(window,function factory(window,classie,eventie,Flickity,Unidragger,utils){
// handle IE8 prevent default
function preventDefaultEvent(event){if(event.preventDefault){event.preventDefault()}else{event.returnValue=false}}
// ----- defaults ----- //
utils.extend(Flickity.defaults,{draggable:true});
// ----- create ----- //
Flickity.createMethods.push("_createDrag");
// -------------------------- drag prototype -------------------------- //
utils.extend(Flickity.prototype,Unidragger.prototype);
// --------------------------  -------------------------- //
Flickity.prototype._createDrag=function(){this.on("activate",this.bindDrag);this.on("uiChange",this._uiChangeDrag);this.on("childUIPointerDown",this._childUIPointerDownDrag);this.on("deactivate",this.unbindDrag)};Flickity.prototype.bindDrag=function(){if(!this.options.draggable||this.isDragBound){return}classie.add(this.element,"is-draggable");this.handles=[this.viewport];this.bindHandles();this.isDragBound=true};Flickity.prototype.unbindDrag=function(){if(!this.isDragBound){return}classie.remove(this.element,"is-draggable");this.unbindHandles();delete this.isDragBound};Flickity.prototype._uiChangeDrag=function(){delete this.isFreeScrolling};Flickity.prototype._childUIPointerDownDrag=function(event){preventDefaultEvent(event);this.pointerDownFocus(event)};
// -------------------------- pointer events -------------------------- //
Flickity.prototype.pointerDown=function(event,pointer){
// dismiss range sliders
if(event.target.nodeName=="INPUT"&&event.target.type=="range"){
// reset pointerDown logic
this.isPointerDown=false;delete this.pointerIdentifier;return}this._dragPointerDown(event,pointer);
// kludge to blur focused inputs in dragger
var focused=document.activeElement;if(focused&&focused.blur&&focused!=this.element&&
// do not blur body for IE9 & 10, #117
focused!=document.body){focused.blur()}this.pointerDownFocus(event);
// stop if it was moving
this.dragX=this.x;classie.add(this.viewport,"is-pointer-down");
// bind move and end events
this._bindPostStartEvents(event);
// track scrolling
this.pointerDownScroll=Unidragger.getScrollPosition();eventie.bind(window,"scroll",this);this.dispatchEvent("pointerDown",event,[pointer])};var touchStartEvents={touchstart:true,MSPointerDown:true};var focusNodes={INPUT:true,SELECT:true};Flickity.prototype.pointerDownFocus=function(event){
// focus element, if not touch, and its not an input or select
if(!this.options.accessibility||touchStartEvents[event.type]||focusNodes[event.target.nodeName]){return}var prevScrollY=window.pageYOffset;this.element.focus();
// hack to fix scroll jump after focus, #76
if(window.pageYOffset!=prevScrollY){window.scrollTo(window.pageXOffset,prevScrollY)}};
// ----- move ----- //
Flickity.prototype.hasDragStarted=function(moveVector){return Math.abs(moveVector.x)>3};
// ----- up ----- //
Flickity.prototype.pointerUp=function(event,pointer){classie.remove(this.viewport,"is-pointer-down");this.dispatchEvent("pointerUp",event,[pointer]);this._dragPointerUp(event,pointer)};Flickity.prototype.pointerDone=function(){eventie.unbind(window,"scroll",this);delete this.pointerDownScroll};
// -------------------------- dragging -------------------------- //
Flickity.prototype.dragStart=function(event,pointer){this.dragStartPosition=this.x;this.startAnimation();this.dispatchEvent("dragStart",event,[pointer])};Flickity.prototype.dragMove=function(event,pointer,moveVector){preventDefaultEvent(event);this.previousDragX=this.dragX;
// reverse if right-to-left
var direction=this.options.rightToLeft?-1:1;var dragX=this.dragStartPosition+moveVector.x*direction;if(!this.options.wrapAround&&this.cells.length){
// slow drag
var originBound=Math.max(-this.cells[0].target,this.dragStartPosition);dragX=dragX>originBound?(dragX+originBound)*.5:dragX;var endBound=Math.min(-this.getLastCell().target,this.dragStartPosition);dragX=dragX<endBound?(dragX+endBound)*.5:dragX}this.dragX=dragX;this.dragMoveTime=new Date;this.dispatchEvent("dragMove",event,[pointer,moveVector])};Flickity.prototype.dragEnd=function(event,pointer){if(this.options.freeScroll){this.isFreeScrolling=true}
// set selectedIndex based on where flick will end up
var index=this.dragEndRestingSelect();if(this.options.freeScroll&&!this.options.wrapAround){
// if free-scroll & not wrap around
// do not free-scroll if going outside of bounding cells
// so bounding cells can attract slider, and keep it in bounds
var restingX=this.getRestingPosition();this.isFreeScrolling=-restingX>this.cells[0].target&&-restingX<this.getLastCell().target}else if(!this.options.freeScroll&&index==this.selectedIndex){
// boost selection if selected index has not changed
index+=this.dragEndBoostSelect()}delete this.previousDragX;
// apply selection
// TODO refactor this, selecting here feels weird
this.select(index);this.dispatchEvent("dragEnd",event,[pointer])};Flickity.prototype.dragEndRestingSelect=function(){var restingX=this.getRestingPosition();
// how far away from selected cell
var distance=Math.abs(this.getCellDistance(-restingX,this.selectedIndex));
// get closet resting going up and going down
var positiveResting=this._getClosestResting(restingX,distance,1);var negativeResting=this._getClosestResting(restingX,distance,-1);
// use closer resting for wrap-around
var index=positiveResting.distance<negativeResting.distance?positiveResting.index:negativeResting.index;return index};
/**
 * given resting X and distance to selected cell
 * get the distance and index of the closest cell
 * @param {Number} restingX - estimated post-flick resting position
 * @param {Number} distance - distance to selected cell
 * @param {Integer} increment - +1 or -1, going up or down
 * @returns {Object} - { distance: {Number}, index: {Integer} }
 */Flickity.prototype._getClosestResting=function(restingX,distance,increment){var index=this.selectedIndex;var minDistance=Infinity;var condition=this.options.contain&&!this.options.wrapAround?
// if contain, keep going if distance is equal to minDistance
function(d,md){return d<=md}:function(d,md){return d<md};while(condition(distance,minDistance)){
// measure distance to next cell
index+=increment;minDistance=distance;distance=this.getCellDistance(-restingX,index);if(distance===null){break}distance=Math.abs(distance)}return{distance:minDistance,
// selected was previous index
index:index-increment}};
/**
 * measure distance between x and a cell target
 * @param {Number} x
 * @param {Integer} index - cell index
 */Flickity.prototype.getCellDistance=function(x,index){var len=this.cells.length;
// wrap around if at least 2 cells
var isWrapAround=this.options.wrapAround&&len>1;var cellIndex=isWrapAround?utils.modulo(index,len):index;var cell=this.cells[cellIndex];if(!cell){return null}
// add distance for wrap-around cells
var wrap=isWrapAround?this.slideableWidth*Math.floor(index/len):0;return x-(cell.target+wrap)};Flickity.prototype.dragEndBoostSelect=function(){
// do not boost if no previousDragX or dragMoveTime
if(this.previousDragX===undefined||!this.dragMoveTime||
// or if drag was held for 100 ms
new Date-this.dragMoveTime>100){return 0}var distance=this.getCellDistance(-this.dragX,this.selectedIndex);var delta=this.previousDragX-this.dragX;if(distance>0&&delta>0){
// boost to next if moving towards the right, and positive velocity
return 1}else if(distance<0&&delta<0){
// boost to previous if moving towards the left, and negative velocity
return-1}return 0};
// ----- staticClick ----- //
Flickity.prototype.staticClick=function(event,pointer){
// get clickedCell, if cell was clicked
var clickedCell=this.getParentCell(event.target);var cellElem=clickedCell&&clickedCell.element;var cellIndex=clickedCell&&utils.indexOf(this.cells,clickedCell);this.dispatchEvent("staticClick",event,[pointer,cellElem,cellIndex])};
// -----  ----- //
return Flickity});
/*!
 * Tap listener v1.1.2
 * listens to taps
 * MIT license
 */
/*jshint browser: true, unused: true, undef: true, strict: true */
(function(window,factory){
// universal module definition
/*jshint strict: false*/ /*globals define, module, require */
if(typeof define=="function"&&define.amd){
// AMD
define("tap-listener/tap-listener",["unipointer/unipointer"],function(Unipointer){return factory(window,Unipointer)})}else if(typeof exports=="object"){
// CommonJS
module.exports=factory(window,require("unipointer"))}else{
// browser global
window.TapListener=factory(window,window.Unipointer)}})(window,function factory(window,Unipointer){
// --------------------------  TapListener -------------------------- //
function TapListener(elem){this.bindTap(elem)}
// inherit Unipointer & EventEmitter
TapListener.prototype=new Unipointer;
/**
 * bind tap event to element
 * @param {Element} elem
 */TapListener.prototype.bindTap=function(elem){if(!elem){return}this.unbindTap();this.tapElement=elem;this._bindStartEvent(elem,true)};TapListener.prototype.unbindTap=function(){if(!this.tapElement){return}this._bindStartEvent(this.tapElement,true);delete this.tapElement};var isPageOffset=window.pageYOffset!==undefined;
/**
 * pointer up
 * @param {Event} event
 * @param {Event or Touch} pointer
 */TapListener.prototype.pointerUp=function(event,pointer){
// ignore emulated mouse up clicks
if(this.isIgnoringMouseUp&&event.type=="mouseup"){return}var pointerPoint=Unipointer.getPointerPoint(pointer);var boundingRect=this.tapElement.getBoundingClientRect();
// standard or IE8 scroll positions
var scrollX=isPageOffset?window.pageXOffset:document.body.scrollLeft;var scrollY=isPageOffset?window.pageYOffset:document.body.scrollTop;
// calculate if pointer is inside tapElement
var isInside=pointerPoint.x>=boundingRect.left+scrollX&&pointerPoint.x<=boundingRect.right+scrollX&&pointerPoint.y>=boundingRect.top+scrollY&&pointerPoint.y<=boundingRect.bottom+scrollY;
// trigger callback if pointer is inside element
if(isInside){this.emitEvent("tap",[event,pointer])}
// set flag for emulated clicks 300ms after touchend
if(event.type!="mouseup"){this.isIgnoringMouseUp=true;
// reset flag after 300ms
setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),320)}};TapListener.prototype.destroy=function(){this.pointerDone();this.unbindTap()};
// -----  ----- //
return TapListener});
// -------------------------- prev/next button -------------------------- //
(function(window,factory){"use strict";
// universal module definition
if(typeof define=="function"&&define.amd){
// AMD
define("flickity/js/prev-next-button",["eventie/eventie","./flickity","tap-listener/tap-listener","fizzy-ui-utils/utils"],function(eventie,Flickity,TapListener,utils){return factory(window,eventie,Flickity,TapListener,utils)})}else if(typeof exports=="object"){
// CommonJS
module.exports=factory(window,require("eventie"),require("./flickity"),require("tap-listener"),require("fizzy-ui-utils"))}else{
// browser global
factory(window,window.eventie,window.Flickity,window.TapListener,window.fizzyUIUtils)}})(window,function factory(window,eventie,Flickity,TapListener,utils){
// ----- inline SVG support ----- //
var svgURI="http://www.w3.org/2000/svg";
// only check on demand, not on script load
var supportsInlineSVG=function(){var supports;function checkSupport(){if(supports!==undefined){return supports}var div=document.createElement("div");div.innerHTML="<svg/>";supports=(div.firstChild&&div.firstChild.namespaceURI)==svgURI;return supports}return checkSupport}();
// -------------------------- PrevNextButton -------------------------- //
function PrevNextButton(direction,parent){this.direction=direction;this.parent=parent;this._create()}PrevNextButton.prototype=new TapListener;PrevNextButton.prototype._create=function(){
// properties
this.isEnabled=true;this.isPrevious=this.direction==-1;var leftDirection=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==leftDirection;var element=this.element=document.createElement("button");element.className="flickity-prev-next-button";element.className+=this.isPrevious?" previous":" next";
// prevent button from submitting form http://stackoverflow.com/a/10836076/182183
element.setAttribute("type","button");
// init as disabled
this.disable();element.setAttribute("aria-label",this.isPrevious?"previous":"next");Flickity.setUnselectable(element);
// create arrow
if(supportsInlineSVG()){var svg=this.createSVG();element.appendChild(svg)}else{
// SVG not supported, set button text
this.setArrowText();element.className+=" no-svg"}
// update on select
var _this=this;this.onCellSelect=function(){_this.update()};this.parent.on("cellSelect",this.onCellSelect);
// tap
this.on("tap",this.onTap);
// pointerDown
this.on("pointerDown",function onPointerDown(button,event){_this.parent.childUIPointerDown(event)})};PrevNextButton.prototype.activate=function(){this.bindTap(this.element);
// click events from keyboard
eventie.bind(this.element,"click",this);
// add to DOM
this.parent.element.appendChild(this.element)};PrevNextButton.prototype.deactivate=function(){
// remove from DOM
this.parent.element.removeChild(this.element);
// do regular TapListener destroy
TapListener.prototype.destroy.call(this);
// click events from keyboard
eventie.unbind(this.element,"click",this)};PrevNextButton.prototype.createSVG=function(){var svg=document.createElementNS(svgURI,"svg");svg.setAttribute("viewBox","0 0 100 100");var path=document.createElementNS(svgURI,"path");var pathMovements=getArrowMovements(this.parent.options.arrowShape);path.setAttribute("d",pathMovements);path.setAttribute("class","arrow");
// rotate arrow
if(!this.isLeft){path.setAttribute("transform","translate(100, 100) rotate(180) ")}svg.appendChild(path);return svg};
// get SVG path movmement
function getArrowMovements(shape){
// use shape as movement if string
if(typeof shape=="string"){return shape}
// create movement string
return"M "+shape.x0+",50"+" L "+shape.x1+","+(shape.y1+50)+" L "+shape.x2+","+(shape.y2+50)+" L "+shape.x3+",50 "+" L "+shape.x2+","+(50-shape.y2)+" L "+shape.x1+","+(50-shape.y1)+" Z"}PrevNextButton.prototype.setArrowText=function(){var parentOptions=this.parent.options;var arrowText=this.isLeft?parentOptions.leftArrowText:parentOptions.rightArrowText;utils.setText(this.element,arrowText)};PrevNextButton.prototype.onTap=function(){if(!this.isEnabled){return}this.parent.uiChange();var method=this.isPrevious?"previous":"next";this.parent[method]()};PrevNextButton.prototype.handleEvent=utils.handleEvent;PrevNextButton.prototype.onclick=function(){
// only allow clicks from keyboard
var focused=document.activeElement;if(focused&&focused==this.element){this.onTap()}};
// -----  ----- //
PrevNextButton.prototype.enable=function(){if(this.isEnabled){return}this.element.disabled=false;this.isEnabled=true};PrevNextButton.prototype.disable=function(){if(!this.isEnabled){return}this.element.disabled=true;this.isEnabled=false};PrevNextButton.prototype.update=function(){
// index of first or last cell, if previous or next
var cells=this.parent.cells;
// enable is wrapAround and at least 2 cells
if(this.parent.options.wrapAround&&cells.length>1){this.enable();return}var lastIndex=cells.length?cells.length-1:0;var boundIndex=this.isPrevious?0:lastIndex;var method=this.parent.selectedIndex==boundIndex?"disable":"enable";this[method]()};PrevNextButton.prototype.destroy=function(){this.deactivate()};
// -------------------------- Flickity prototype -------------------------- //
utils.extend(Flickity.defaults,{prevNextButtons:true,leftArrowText:"‹",rightArrowText:"›",arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}});Flickity.createMethods.push("_createPrevNextButtons");Flickity.prototype._createPrevNextButtons=function(){if(!this.options.prevNextButtons){return}this.prevButton=new PrevNextButton(-1,this);this.nextButton=new PrevNextButton(1,this);this.on("activate",this.activatePrevNextButtons)};Flickity.prototype.activatePrevNextButtons=function(){this.prevButton.activate();this.nextButton.activate();this.on("deactivate",this.deactivatePrevNextButtons)};Flickity.prototype.deactivatePrevNextButtons=function(){this.prevButton.deactivate();this.nextButton.deactivate();this.off("deactivate",this.deactivatePrevNextButtons)};
// --------------------------  -------------------------- //
Flickity.PrevNextButton=PrevNextButton;return Flickity});(function(window,factory){"use strict";
// universal module definition
if(typeof define=="function"&&define.amd){
// AMD
define("flickity/js/page-dots",["eventie/eventie","./flickity","tap-listener/tap-listener","fizzy-ui-utils/utils"],function(eventie,Flickity,TapListener,utils){return factory(window,eventie,Flickity,TapListener,utils)})}else if(typeof exports=="object"){
// CommonJS
module.exports=factory(window,require("eventie"),require("./flickity"),require("tap-listener"),require("fizzy-ui-utils"))}else{
// browser global
factory(window,window.eventie,window.Flickity,window.TapListener,window.fizzyUIUtils)}})(window,function factory(window,eventie,Flickity,TapListener,utils){
// -------------------------- PageDots -------------------------- //
function PageDots(parent){this.parent=parent;this._create()}PageDots.prototype=new TapListener;PageDots.prototype._create=function(){
// create holder element
this.holder=document.createElement("ol");this.holder.className="flickity-page-dots";Flickity.setUnselectable(this.holder);
// create dots, array of elements
this.dots=[];
// update on select
var _this=this;this.onCellSelect=function(){_this.updateSelected()};this.parent.on("cellSelect",this.onCellSelect);
// tap
this.on("tap",this.onTap);
// pointerDown
this.on("pointerDown",function onPointerDown(button,event){_this.parent.childUIPointerDown(event)})};PageDots.prototype.activate=function(){this.setDots();this.bindTap(this.holder);
// add to DOM
this.parent.element.appendChild(this.holder)};PageDots.prototype.deactivate=function(){
// remove from DOM
this.parent.element.removeChild(this.holder);TapListener.prototype.destroy.call(this)};PageDots.prototype.setDots=function(){
// get difference between number of cells and number of dots
var delta=this.parent.cells.length-this.dots.length;if(delta>0){this.addDots(delta)}else if(delta<0){this.removeDots(-delta)}};PageDots.prototype.addDots=function(count){var fragment=document.createDocumentFragment();var newDots=[];while(count){var dot=document.createElement("li");dot.className="dot";fragment.appendChild(dot);newDots.push(dot);count--}this.holder.appendChild(fragment);this.dots=this.dots.concat(newDots)};PageDots.prototype.removeDots=function(count){
// remove from this.dots collection
var removeDots=this.dots.splice(this.dots.length-count,count);
// remove from DOM
for(var i=0,len=removeDots.length;i<len;i++){var dot=removeDots[i];this.holder.removeChild(dot)}};PageDots.prototype.updateSelected=function(){
// remove selected class on previous
if(this.selectedDot){this.selectedDot.className="dot"}
// don't proceed if no dots
if(!this.dots.length){return}this.selectedDot=this.dots[this.parent.selectedIndex];this.selectedDot.className="dot is-selected"};PageDots.prototype.onTap=function(event){var target=event.target;
// only care about dot clicks
if(target.nodeName!="LI"){return}this.parent.uiChange();var index=utils.indexOf(this.dots,target);this.parent.select(index)};PageDots.prototype.destroy=function(){this.deactivate()};Flickity.PageDots=PageDots;
// -------------------------- Flickity -------------------------- //
utils.extend(Flickity.defaults,{pageDots:true});Flickity.createMethods.push("_createPageDots");Flickity.prototype._createPageDots=function(){if(!this.options.pageDots){return}this.pageDots=new PageDots(this);this.on("activate",this.activatePageDots);this.on("cellAddedRemoved",this.onCellAddedRemovedPageDots);this.on("deactivate",this.deactivatePageDots)};Flickity.prototype.activatePageDots=function(){this.pageDots.activate()};Flickity.prototype.onCellAddedRemovedPageDots=function(){this.pageDots.setDots()};Flickity.prototype.deactivatePageDots=function(){this.pageDots.deactivate()};
// -----  ----- //
Flickity.PageDots=PageDots;return Flickity});(function(window,factory){"use strict";
// universal module definition
if(typeof define=="function"&&define.amd){
// AMD
define("flickity/js/player",["eventEmitter/EventEmitter","eventie/eventie","fizzy-ui-utils/utils","./flickity"],function(EventEmitter,eventie,utils,Flickity){return factory(EventEmitter,eventie,utils,Flickity)})}else if(typeof exports=="object"){
// CommonJS
module.exports=factory(require("wolfy87-eventemitter"),require("eventie"),require("fizzy-ui-utils"),require("./flickity"))}else{
// browser global
factory(window.EventEmitter,window.eventie,window.fizzyUIUtils,window.Flickity)}})(window,function factory(EventEmitter,eventie,utils,Flickity){
// -------------------------- Page Visibility -------------------------- //
// https://developer.mozilla.org/en-US/docs/Web/Guide/User_experience/Using_the_Page_Visibility_API
var hiddenProperty,visibilityEvent;if("hidden"in document){hiddenProperty="hidden";visibilityEvent="visibilitychange"}else if("webkitHidden"in document){hiddenProperty="webkitHidden";visibilityEvent="webkitvisibilitychange"}
// -------------------------- Player -------------------------- //
function Player(parent){this.parent=parent;this.state="stopped";
// visibility change event handler
if(visibilityEvent){var _this=this;this.onVisibilityChange=function(){_this.visibilityChange()}}}Player.prototype=new EventEmitter;
// start play
Player.prototype.play=function(){if(this.state=="playing"){return}this.state="playing";
// listen to visibility change
if(visibilityEvent){document.addEventListener(visibilityEvent,this.onVisibilityChange,false)}
// start ticking
this.tick()};Player.prototype.tick=function(){
// do not tick if not playing
if(this.state!="playing"){return}var time=this.parent.options.autoPlay;
// default to 3 seconds
time=typeof time=="number"?time:3e3;var _this=this;
// HACK: reset ticks if stopped and started within interval
this.clear();this.timeout=setTimeout(function(){_this.parent.next(true);_this.tick()},time)};Player.prototype.stop=function(){this.state="stopped";this.clear();
// remove visibility change event
if(visibilityEvent){document.removeEventListener(visibilityEvent,this.onVisibilityChange,false)}};Player.prototype.clear=function(){clearTimeout(this.timeout)};Player.prototype.pause=function(){if(this.state=="playing"){this.state="paused";this.clear()}};Player.prototype.unpause=function(){
// re-start play if in unpaused state
if(this.state=="paused"){this.play()}};
// pause if page visibility is hidden, unpause if visible
Player.prototype.visibilityChange=function(){var isHidden=document[hiddenProperty];this[isHidden?"pause":"unpause"]()};
// -------------------------- Flickity -------------------------- //
utils.extend(Flickity.defaults,{pauseAutoPlayOnHover:true});Flickity.createMethods.push("_createPlayer");Flickity.prototype._createPlayer=function(){this.player=new Player(this);this.on("activate",this.activatePlayer);this.on("uiChange",this.stopPlayer);this.on("pointerDown",this.stopPlayer);this.on("deactivate",this.deactivatePlayer)};Flickity.prototype.activatePlayer=function(){if(!this.options.autoPlay){return}this.player.play();eventie.bind(this.element,"mouseenter",this);this.isMouseenterBound=true};
// Player API, don't hate the ... thanks I know where the door is
Flickity.prototype.playPlayer=function(){this.player.play()};Flickity.prototype.stopPlayer=function(){this.player.stop()};Flickity.prototype.pausePlayer=function(){this.player.pause()};Flickity.prototype.unpausePlayer=function(){this.player.unpause()};Flickity.prototype.deactivatePlayer=function(){this.player.stop();if(this.isMouseenterBound){eventie.unbind(this.element,"mouseenter",this);delete this.isMouseenterBound}};
// ----- mouseenter/leave ----- //
// pause auto-play on hover
Flickity.prototype.onmouseenter=function(){if(!this.options.pauseAutoPlayOnHover){return}this.player.pause();eventie.bind(this.element,"mouseleave",this)};
// resume auto-play on hover off
Flickity.prototype.onmouseleave=function(){this.player.unpause();eventie.unbind(this.element,"mouseleave",this)};
// -----  ----- //
Flickity.Player=Player;return Flickity});(function(window,factory){"use strict";
// universal module definition
if(typeof define=="function"&&define.amd){
// AMD
define("flickity/js/add-remove-cell",["./flickity","fizzy-ui-utils/utils"],function(Flickity,utils){return factory(window,Flickity,utils)})}else if(typeof exports=="object"){
// CommonJS
module.exports=factory(window,require("./flickity"),require("fizzy-ui-utils"))}else{
// browser global
factory(window,window.Flickity,window.fizzyUIUtils)}})(window,function factory(window,Flickity,utils){
// append cells to a document fragment
function getCellsFragment(cells){var fragment=document.createDocumentFragment();for(var i=0,len=cells.length;i<len;i++){var cell=cells[i];fragment.appendChild(cell.element)}return fragment}
// -------------------------- add/remove cell prototype -------------------------- //
/**
 * Insert, prepend, or append cells
 * @param {Element, Array, NodeList} elems
 * @param {Integer} index
 */Flickity.prototype.insert=function(elems,index){var cells=this._makeCells(elems);if(!cells||!cells.length){return}var len=this.cells.length;
// default to append
index=index===undefined?len:index;
// add cells with document fragment
var fragment=getCellsFragment(cells);
// append to slider
var isAppend=index==len;if(isAppend){this.slider.appendChild(fragment)}else{var insertCellElement=this.cells[index].element;this.slider.insertBefore(fragment,insertCellElement)}
// add to this.cells
if(index===0){
// prepend, add to start
this.cells=cells.concat(this.cells)}else if(isAppend){
// append, add to end
this.cells=this.cells.concat(cells)}else{
// insert in this.cells
var endCells=this.cells.splice(index,len-index);this.cells=this.cells.concat(cells).concat(endCells)}this._sizeCells(cells);var selectedIndexDelta=index>this.selectedIndex?0:cells.length;this._cellAddedRemoved(index,selectedIndexDelta)};Flickity.prototype.append=function(elems){this.insert(elems,this.cells.length)};Flickity.prototype.prepend=function(elems){this.insert(elems,0)};
/**
 * Remove cells
 * @param {Element, Array, NodeList} elems
 */Flickity.prototype.remove=function(elems){var cells=this.getCells(elems);var selectedIndexDelta=0;var i,len,cell;
// calculate selectedIndexDelta, easier if done in seperate loop
for(i=0,len=cells.length;i<len;i++){cell=cells[i];var wasBefore=utils.indexOf(this.cells,cell)<this.selectedIndex;selectedIndexDelta-=wasBefore?1:0}for(i=0,len=cells.length;i<len;i++){cell=cells[i];cell.remove();
// remove item from collection
utils.removeFrom(this.cells,cell)}if(cells.length){
// update stuff
this._cellAddedRemoved(0,selectedIndexDelta)}};
// updates when cells are added or removed
Flickity.prototype._cellAddedRemoved=function(changedCellIndex,selectedIndexDelta){selectedIndexDelta=selectedIndexDelta||0;this.selectedIndex+=selectedIndexDelta;this.selectedIndex=Math.max(0,Math.min(this.cells.length-1,this.selectedIndex));this.emitEvent("cellAddedRemoved",[changedCellIndex,selectedIndexDelta]);this.cellChange(changedCellIndex,true)};
/**
 * logic to be run after a cell's size changes
 * @param {Element} elem - cell's element
 */Flickity.prototype.cellSizeChange=function(elem){var cell=this.getCell(elem);if(!cell){return}cell.getSize();var index=utils.indexOf(this.cells,cell);this.cellChange(index)};
/**
 * logic any time a cell is changed: added, removed, or size changed
 * @param {Integer} changedCellIndex - index of the changed cell, optional
 */Flickity.prototype.cellChange=function(changedCellIndex,isPositioningSlider){var prevSlideableWidth=this.slideableWidth;this._positionCells(changedCellIndex);this._getWrapShiftCells();this.setGallerySize();
// position slider
if(this.options.freeScroll){
// shift x by change in slideableWidth
// TODO fix position shifts when prepending w/ freeScroll
var deltaX=prevSlideableWidth-this.slideableWidth;this.x+=deltaX*this.cellAlign;this.positionSlider()}else{
// do not position slider after lazy load
if(isPositioningSlider){this.positionSliderAtSelected()}this.select(this.selectedIndex)}};
// -----  ----- //
return Flickity});(function(window,factory){"use strict";
// universal module definition
if(typeof define=="function"&&define.amd){
// AMD
define("flickity/js/lazyload",["classie/classie","eventie/eventie","./flickity","fizzy-ui-utils/utils"],function(classie,eventie,Flickity,utils){return factory(window,classie,eventie,Flickity,utils)})}else if(typeof exports=="object"){
// CommonJS
module.exports=factory(window,require("desandro-classie"),require("eventie"),require("./flickity"),require("fizzy-ui-utils"))}else{
// browser global
factory(window,window.classie,window.eventie,window.Flickity,window.fizzyUIUtils)}})(window,function factory(window,classie,eventie,Flickity,utils){"use strict";Flickity.createMethods.push("_createLazyload");Flickity.prototype._createLazyload=function(){this.on("cellSelect",this.lazyLoad)};Flickity.prototype.lazyLoad=function(){var lazyLoad=this.options.lazyLoad;if(!lazyLoad){return}
// get adjacent cells, use lazyLoad option for adjacent count
var adjCount=typeof lazyLoad=="number"?lazyLoad:0;var cellElems=this.getAdjacentCellElements(adjCount);
// get lazy images in those cells
var lazyImages=[];for(var i=0,len=cellElems.length;i<len;i++){var cellElem=cellElems[i];var lazyCellImages=getCellLazyImages(cellElem);lazyImages=lazyImages.concat(lazyCellImages)}
// load lazy images
for(i=0,len=lazyImages.length;i<len;i++){var img=lazyImages[i];new LazyLoader(img,this)}};function getCellLazyImages(cellElem){
// check if cell element is lazy image
if(cellElem.nodeName=="IMG"&&cellElem.getAttribute("data-flickity-lazyload")){return[cellElem]}
// select lazy images in cell
var imgs=cellElem.querySelectorAll("img[data-flickity-lazyload]");return utils.makeArray(imgs)}
// -------------------------- LazyLoader -------------------------- //
/**
 * class to handle loading images
 */function LazyLoader(img,flickity){this.img=img;this.flickity=flickity;this.load()}LazyLoader.prototype.handleEvent=utils.handleEvent;LazyLoader.prototype.load=function(){eventie.bind(this.img,"load",this);eventie.bind(this.img,"error",this);
// load image
this.img.src=this.img.getAttribute("data-flickity-lazyload");
// remove attr
this.img.removeAttribute("data-flickity-lazyload")};LazyLoader.prototype.onload=function(event){this.complete(event,"flickity-lazyloaded")};LazyLoader.prototype.onerror=function(event){this.complete(event,"flickity-lazyerror")};LazyLoader.prototype.complete=function(event,className){
// unbind events
eventie.unbind(this.img,"load",this);eventie.unbind(this.img,"error",this);var cell=this.flickity.getParentCell(this.img);var cellElem=cell&&cell.element;this.flickity.cellSizeChange(cellElem);classie.add(this.img,className);this.flickity.dispatchEvent("lazyLoad",event,cellElem)};
// -----  ----- //
Flickity.LazyLoader=LazyLoader;return Flickity});
/*!
 * Flickity v1.2.1
 * Touch, responsive, flickable galleries
 *
 * Licensed GPLv3 for open source use
 * or Flickity Commercial License for commercial use
 *
 * http://flickity.metafizzy.co
 * Copyright 2015 Metafizzy
 */
(function(window,factory){"use strict";
// universal module definition
if(typeof define=="function"&&define.amd){
// AMD
define("flickity/js/index",["./flickity","./drag","./prev-next-button","./page-dots","./player","./add-remove-cell","./lazyload"],factory)}else if(typeof exports=="object"){
// CommonJS
module.exports=factory(require("./flickity"),require("./drag"),require("./prev-next-button"),require("./page-dots"),require("./player"),require("./add-remove-cell"),require("./lazyload"))}})(window,function factory(Flickity){
/*jshint strict: false*/
return Flickity});
/*!
 * Flickity asNavFor v1.0.4
 * enable asNavFor for Flickity
 */
/*jshint browser: true, undef: true, unused: true, strict: true*/
(function(window,factory){
/*global define: false, module: false, require: false */
"use strict";
// universal module definition
if(typeof define=="function"&&define.amd){
// AMD
define("flickity-as-nav-for/as-nav-for",["classie/classie","flickity/js/index","fizzy-ui-utils/utils"],function(classie,Flickity,utils){return factory(window,classie,Flickity,utils)})}else if(typeof exports=="object"){
// CommonJS
module.exports=factory(window,require("desandro-classie"),require("flickity"),require("fizzy-ui-utils"))}else{
// browser global
window.Flickity=factory(window,window.classie,window.Flickity,window.fizzyUIUtils)}})(window,function factory(window,classie,Flickity,utils){
// -------------------------- asNavFor prototype -------------------------- //
// Flickity.defaults.asNavFor = null;
Flickity.createMethods.push("_createAsNavFor");Flickity.prototype._createAsNavFor=function(){this.on("activate",this.activateAsNavFor);this.on("deactivate",this.deactivateAsNavFor);this.on("destroy",this.destroyAsNavFor);var asNavForOption=this.options.asNavFor;if(!asNavForOption){return}
// HACK do async, give time for other flickity to be initalized
var _this=this;setTimeout(function initNavCompanion(){_this.setNavCompanion(asNavForOption)})};Flickity.prototype.setNavCompanion=function(elem){elem=utils.getQueryElement(elem);var companion=Flickity.data(elem);
// stop if no companion or companion is self
if(!companion||companion==this){return}this.navCompanion=companion;
// companion select
var _this=this;this.onNavCompanionSelect=function(){_this.navCompanionSelect()};companion.on("cellSelect",this.onNavCompanionSelect);
// click
this.on("staticClick",this.onNavStaticClick);this.navCompanionSelect()};Flickity.prototype.navCompanionSelect=function(){if(!this.navCompanion){return}var index=this.navCompanion.selectedIndex;this.select(index);
// set nav selected class
this.removeNavSelectedElement();
// stop if companion has more cells than this one
if(this.selectedIndex!=index){return}this.navSelectedElement=this.cells[index].element;classie.add(this.navSelectedElement,"is-nav-selected")};Flickity.prototype.activateAsNavFor=function(){this.navCompanionSelect()};Flickity.prototype.removeNavSelectedElement=function(){if(!this.navSelectedElement){return}classie.remove(this.navSelectedElement,"is-nav-selected");delete this.navSelectedElement};Flickity.prototype.onNavStaticClick=function(event,pointer,cellElement,cellIndex){if(typeof cellIndex=="number"){this.navCompanion.select(cellIndex)}};Flickity.prototype.deactivateAsNavFor=function(){this.removeNavSelectedElement()};Flickity.prototype.destroyAsNavFor=function(){if(!this.navCompanion){return}this.navCompanion.off("cellSelect",this.onNavCompanionSelect);this.off("staticClick",this.onNavStaticClick);delete this.navCompanion};
// -----  ----- //
return Flickity});
/*!
 * imagesLoaded v3.2.0
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */
(function(window,factory){"use strict";
// universal module definition
/*global define: false, module: false, require: false */if(typeof define=="function"&&define.amd){
// AMD
define("imagesloaded/imagesloaded",["eventEmitter/EventEmitter","eventie/eventie"],function(EventEmitter,eventie){return factory(window,EventEmitter,eventie)})}else if(typeof module=="object"&&module.exports){
// CommonJS
module.exports=factory(window,require("wolfy87-eventemitter"),require("eventie"))}else{
// browser global
window.imagesLoaded=factory(window,window.EventEmitter,window.eventie)}})(window,
// --------------------------  factory -------------------------- //
function factory(window,EventEmitter,eventie){var $=window.jQuery;var console=window.console;
// -------------------------- helpers -------------------------- //
// extend objects
function extend(a,b){for(var prop in b){a[prop]=b[prop]}return a}var objToString=Object.prototype.toString;function isArray(obj){return objToString.call(obj)=="[object Array]"}
// turn element or nodeList into an array
function makeArray(obj){var ary=[];if(isArray(obj)){
// use object if already an array
ary=obj}else if(typeof obj.length=="number"){
// convert nodeList to array
for(var i=0;i<obj.length;i++){ary.push(obj[i])}}else{
// array of single index
ary.push(obj)}return ary}
// -------------------------- imagesLoaded -------------------------- //
/**
   * @param {Array, Element, NodeList, String} elem
   * @param {Object or Function} options - if function, use as callback
   * @param {Function} onAlways - callback function
   */function ImagesLoaded(elem,options,onAlways){
// coerce ImagesLoaded() without new, to be new ImagesLoaded()
if(!(this instanceof ImagesLoaded)){return new ImagesLoaded(elem,options,onAlways)}
// use elem as selector string
if(typeof elem=="string"){elem=document.querySelectorAll(elem)}this.elements=makeArray(elem);this.options=extend({},this.options);if(typeof options=="function"){onAlways=options}else{extend(this.options,options)}if(onAlways){this.on("always",onAlways)}this.getImages();if($){
// add jQuery Deferred object
this.jqDeferred=new $.Deferred}
// HACK check async to allow time to bind listeners
var _this=this;setTimeout(function(){_this.check()})}ImagesLoaded.prototype=new EventEmitter;ImagesLoaded.prototype.options={};ImagesLoaded.prototype.getImages=function(){this.images=[];
// filter & find items if we have an item selector
for(var i=0;i<this.elements.length;i++){var elem=this.elements[i];this.addElementImages(elem)}};
/**
   * @param {Node} element
   */ImagesLoaded.prototype.addElementImages=function(elem){
// filter siblings
if(elem.nodeName=="IMG"){this.addImage(elem)}
// get background image on element
if(this.options.background===true){this.addElementBackgroundImages(elem)}
// find children
// no non-element nodes, #143
var nodeType=elem.nodeType;if(!nodeType||!elementNodeTypes[nodeType]){return}var childImgs=elem.querySelectorAll("img");
// concat childElems to filterFound array
for(var i=0;i<childImgs.length;i++){var img=childImgs[i];this.addImage(img)}
// get child background images
if(typeof this.options.background=="string"){var children=elem.querySelectorAll(this.options.background);for(i=0;i<children.length;i++){var child=children[i];this.addElementBackgroundImages(child)}}};var elementNodeTypes={1:true,9:true,11:true};ImagesLoaded.prototype.addElementBackgroundImages=function(elem){var style=getStyle(elem);
// get url inside url("...")
var reURL=/url\(['"]*([^'"\)]+)['"]*\)/gi;var matches=reURL.exec(style.backgroundImage);while(matches!==null){var url=matches&&matches[1];if(url){this.addBackground(url,elem)}matches=reURL.exec(style.backgroundImage)}};
// IE8
var getStyle=window.getComputedStyle||function(elem){return elem.currentStyle};
/**
   * @param {Image} img
   */ImagesLoaded.prototype.addImage=function(img){var loadingImage=new LoadingImage(img);this.images.push(loadingImage)};ImagesLoaded.prototype.addBackground=function(url,elem){var background=new Background(url,elem);this.images.push(background)};ImagesLoaded.prototype.check=function(){var _this=this;this.progressedCount=0;this.hasAnyBroken=false;
// complete if no images
if(!this.images.length){this.complete();return}function onProgress(image,elem,message){
// HACK - Chrome triggers event before object properties have changed. #83
setTimeout(function(){_this.progress(image,elem,message)})}for(var i=0;i<this.images.length;i++){var loadingImage=this.images[i];loadingImage.once("progress",onProgress);loadingImage.check()}};ImagesLoaded.prototype.progress=function(image,elem,message){this.progressedCount++;this.hasAnyBroken=this.hasAnyBroken||!image.isLoaded;
// progress event
this.emit("progress",this,image,elem);if(this.jqDeferred&&this.jqDeferred.notify){this.jqDeferred.notify(this,image)}
// check if completed
if(this.progressedCount==this.images.length){this.complete()}if(this.options.debug&&console){console.log("progress: "+message,image,elem)}};ImagesLoaded.prototype.complete=function(){var eventName=this.hasAnyBroken?"fail":"done";this.isComplete=true;this.emit(eventName,this);this.emit("always",this);if(this.jqDeferred){var jqMethod=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[jqMethod](this)}};
// --------------------------  -------------------------- //
function LoadingImage(img){this.img=img}LoadingImage.prototype=new EventEmitter;LoadingImage.prototype.check=function(){
// If complete is true and browser supports natural sizes,
// try to check for image status manually.
var isComplete=this.getIsImageComplete();if(isComplete){
// report based on naturalWidth
this.confirm(this.img.naturalWidth!==0,"naturalWidth");return}
// If none of the checks above matched, simulate loading on detached element.
this.proxyImage=new Image;eventie.bind(this.proxyImage,"load",this);eventie.bind(this.proxyImage,"error",this);
// bind to image as well for Firefox. #191
eventie.bind(this.img,"load",this);eventie.bind(this.img,"error",this);this.proxyImage.src=this.img.src};LoadingImage.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth!==undefined};LoadingImage.prototype.confirm=function(isLoaded,message){this.isLoaded=isLoaded;this.emit("progress",this,this.img,message)};
// ----- events ----- //
// trigger specified handler for event type
LoadingImage.prototype.handleEvent=function(event){var method="on"+event.type;if(this[method]){this[method](event)}};LoadingImage.prototype.onload=function(){this.confirm(true,"onload");this.unbindEvents()};LoadingImage.prototype.onerror=function(){this.confirm(false,"onerror");this.unbindEvents()};LoadingImage.prototype.unbindEvents=function(){eventie.unbind(this.proxyImage,"load",this);eventie.unbind(this.proxyImage,"error",this);eventie.unbind(this.img,"load",this);eventie.unbind(this.img,"error",this)};
// -------------------------- Background -------------------------- //
function Background(url,element){this.url=url;this.element=element;this.img=new Image}
// inherit LoadingImage prototype
Background.prototype=new LoadingImage;Background.prototype.check=function(){eventie.bind(this.img,"load",this);eventie.bind(this.img,"error",this);this.img.src=this.url;
// check if image is already complete
var isComplete=this.getIsImageComplete();if(isComplete){this.confirm(this.img.naturalWidth!==0,"naturalWidth");this.unbindEvents()}};Background.prototype.unbindEvents=function(){eventie.unbind(this.img,"load",this);eventie.unbind(this.img,"error",this)};Background.prototype.confirm=function(isLoaded,message){this.isLoaded=isLoaded;this.emit("progress",this,this.element,message)};
// -------------------------- jQuery -------------------------- //
ImagesLoaded.makeJQueryPlugin=function(jQuery){jQuery=jQuery||window.jQuery;if(!jQuery){return}
// set local variable
$=jQuery;
// $().imagesLoaded()
$.fn.imagesLoaded=function(options,callback){var instance=new ImagesLoaded(this,options,callback);return instance.jqDeferred.promise($(this))}};
// try making plugin
ImagesLoaded.makeJQueryPlugin();
// --------------------------  -------------------------- //
return ImagesLoaded});
/*!
 * Flickity imagesLoaded v1.0.4
 * enables imagesLoaded option for Flickity
 */
/*jshint browser: true, strict: true, undef: true, unused: true */
(function(window,factory){
/*global define: false, module: false, require: false */
"use strict";
// universal module definition
if(typeof define=="function"&&define.amd){
// AMD
define(["flickity/js/index","imagesloaded/imagesloaded"],function(Flickity,imagesLoaded){return factory(window,Flickity,imagesLoaded)})}else if(typeof exports=="object"){
// CommonJS
module.exports=factory(window,require("flickity"),require("imagesloaded"))}else{
// browser global
window.Flickity=factory(window,window.Flickity,window.imagesLoaded)}})(window,function factory(window,Flickity,imagesLoaded){"use strict";Flickity.createMethods.push("_createImagesLoaded");Flickity.prototype._createImagesLoaded=function(){this.on("activate",this.imagesLoaded)};Flickity.prototype.imagesLoaded=function(){if(!this.options.imagesLoaded){return}var _this=this;function onImagesLoadedProgress(instance,image){var cell=_this.getParentCell(image.img);_this.cellSizeChange(cell&&cell.element);if(!_this.options.freeScroll){_this.positionSliderAtSelected()}}imagesLoaded(this.slider).on("progress",onImagesLoadedProgress)};return Flickity});(function($){"use strict";var pluginName="flickity_1_2_1";function FlickitySetup(el,optsMain,optsNav){this.$el=$(el);this.$flickMain=this.$el.find(".js-flickMain");this.$flickNav=this.$el.find(".js-flickNav");this.$nextButtons=this.$el.find(".js-flickNext");this.$prevButtons=this.$el.find(".js-flickPrev");this.$hiddenItems=this.$el.find(".js-flickHidden");this.$slideInfos=this.$el.find(".js-flickSlideInfo");
// (ws) 2016-04-07
var autoPlay=this.$el.data("autoplay"),autoPlaySpeed=this.$el.data("autoplayspeed");
// Flickity autoPlay -> false | true (speed default 3000 ms) | speed (in ms)
autoPlay=0==autoPlay?false:autoPlaySpeed;
// (ws) 2016-04-07 //
// (pj) 2016-10-13 Werbung reloaden, wenn Ad-Reload geklickt wurde
this.adReload=this.$el.hasClass("js-adReload");this.adReloadInterval=this.$el.data("ad-reload-interval");this.adReloadCounter=0;
// (pj) 2016-10-13 end
var defaultsBoth={lazyLoad:true,
// lazyLoad: 2,
prevNextButtons:false,pageDots:false,freeScroll:false,contain:true,wrapAround:true,
// pauseAutoPlayOnHover: false,
// (ws) 2016-04-07
autoPlay:autoPlay,cellAlign:"left",draggable:true,imagesLoaded:true};var defaultsMain={
// setGallerySize: true
setGallerySize:false};var defaultsNav={lazyLoad:4,cellAlign:"left"};if(this.$flickMain.find(".js-flickSlideItem").length>0){defaultsMain.cellSelector=".js-flickSlideItem"}if(this.$flickNav.find(".js-flickSlideItem").length>0){defaultsNav.cellSelector=".js-flickSlideItem"}this.flickMainOptions=$.extend(defaultsBoth,defaultsMain,optsMain);this.flickNavOptions=$.extend(defaultsBoth,defaultsNav,optsNav);this.init();this.addEventListener()}FlickitySetup.prototype.reloadAds=function(){if(!this.adReload){return}this.adReloadCounter++;if(this.adReloadCounter!==this.adReloadInterval){return}if(typeof adition==="undefined"){return}if(typeof adition.srq==="undefined"){return}this.adReloadCounter=0;adition.srq.push(function(api){api.reload()})};FlickitySetup.prototype.addEventListener=function(){var self=this;function slideToNextItem(e){e.preventDefault();self.stopAutoPlay();self.$flickMain.flickity("next",true);self.$flickNav.flickity("next",true);self.reloadAds()}function slideToPrevItem(e){e.preventDefault();self.stopAutoPlay();self.$flickMain.flickity("previous",true);self.$flickNav.flickity("previous",true);self.reloadAds()}function clickNavigationItem(e){var index;e.preventDefault();self.stopAutoPlay();index=$(this).index();self.$flickMain.flickity("select",index,true,false);self.$flickNav.flickity("select",index,true,false);self.reloadAds()}function cellSelectMain(){self.refreshSlideInfo()}function dragEndMain(e){var flkty=self.$flickMain.data("flickity"),index=flkty.selectedIndex;self.stopAutoPlay();self.$flickNav.flickity("select",index,true,false);self.reloadAds()}this.$flickMain.on("dragEnd",dragEndMain);this.$flickMain.on("cellSelect",cellSelectMain);this.$nextButtons.on("click."+pluginName,slideToNextItem);this.$prevButtons.on("click."+pluginName,slideToPrevItem);this.$flickNav.find(".js-flickSlideItem").on("click."+pluginName,clickNavigationItem);
// (ws) 2016-04-07
this.$flickMain.on("mouseenter",function(e){self.$flickMain.flickity("pausePlayer");self.$flickNav.flickity("pausePlayer")});this.$flickMain.on("mouseleave",function(e){self.$flickMain.flickity("unpausePlayer");self.$flickNav.flickity("unpausePlayer")});this.$flickNav.on("mouseenter",function(e){self.$flickMain.flickity("pausePlayer");self.$flickNav.flickity("pausePlayer")});this.$flickNav.on("mouseleave",function(e){self.$flickMain.flickity("unpausePlayer");self.$flickNav.flickity("unpausePlayer")});
// (ws) 2016-04-07 //
};FlickitySetup.prototype.stopAutoPlay=function(){this.$flickMain.flickity("stopPlayer");this.$flickNav.flickity("stopPlayer")};FlickitySetup.prototype.refreshSlideInfo=function(){var selectedIndex=this.$flickMainData.selectedIndex+1;var cellLength=this.$flickMainData.cells.length;this.$slideInfos.text(selectedIndex+"/"+cellLength)};FlickitySetup.prototype.init=function(){this.$hiddenItems.removeClass("js-flickHidden");this.$flickMain.flickity(this.flickMainOptions);this.$flickNav.flickity(this.flickNavOptions);this.$flickMainData=this.$flickMain.data("flickity");this.$flickNavData=this.$flickNav.data("flickity")};$.fn.flickitySetup=function(optsMain,optsNav){return this.each(function(){new FlickitySetup(this,optsMain,optsNav)})}})(jQuery);(function(){var allowedEventOrigins=["http://php-infra.oe24.at","https://php-infra.oe24.at","http://imagesrv.adition.com","https://imagesrv.adition.com",
// (db) 2018-11-05 grinch-ad
"https://d.screenagers.at"];window.addEventListener("message",function(event){if(allowedEventOrigins.indexOf(event.origin)>=0){if(typeof event.data.event_id!="undefined"){if(event.data.event_id==="oe24postmessage"){if(typeof event.data.target!="undefined"&&typeof event.data.start!="undefined"){var targetFrame=event.data.target;var eventStart=event.data.start;var iframe=parent.document.getElementById(targetFrame);if(iframe.tagName!="IFRAME"){
// find first iframe in this element
var iframe=document.querySelector("#"+targetFrame+" iframe")}if(iframe.tagName!="IFRAME")return;if(iframe!=null){iframe.contentWindow.postMessage({event_id:eventStart},"*")}}}}}})})();
// 2019-07-01 (db) a1
function oe24_a1_ad_201907(){var interval=setInterval(function(){var suc=false;var doc=parent.document.documentElement;
// var left = (parent.window.pageXOffset || doc.scrollLeft) - (doc.clientLeft || 0);
var top=(parent.window.pageYOffset||doc.scrollTop)-(doc.clientTop||0);var div=document.getElementById("adv_sitebar");if(typeof div!=="undefined"){var iframe=div.firstChild;if(typeof iframe!=="undefined"){var conwin=iframe.contentWindow;if(typeof conwin!=="undefined"){suc=true;iframe.contentWindow.postMessage({id:"mut:scroll-position",scrollPosition:top},"*")}}}if(!suc)clearInterval(interval)},50)}
// setTimeout(function(){
//     oe24_a1_ad_201907();
// }, 1000);
(function($){"use strict";function StandardContentSlider(element,opts){console.log(element);this.contentSlider=$(element);this.countSlides=this.contentSlider.data("count-slides");this.storiesPerRow=this.contentSlider.data("stories-per-row");this.sliderRows=this.contentSlider.data("slider-rows");this.contentSliderBox=this.contentSlider.parents(".contentSliderBox");this.contentSliderBoxCounter=this.contentSliderBox.find(".contentSliderBoxCounter");console.log("this.countSlides: "+this.countSlides);console.log("this.storiesPerRow: "+this.storiesPerRow);console.log("this.sliderRows: "+this.sliderRows);console.log("this.contentSliderBox: "+this.contentSliderBox);
// ??? this.countSlides = (this.contentSliderBoxCounter.length > 0) ? this.contentSliderBoxCounter.data('count-slides') : 0;
// Die Button sollen dargestellt werden, auch wenn die Anzahl der Slides gleich
// der Stories per Row ist, wenn also gar nicht "geslidet" werden soll
// this.prevNextButtonsEnabled = (this.countSlides > this.storiesPerRow) ? true : false;
this.prevNextButtonsEnabled=true;// (this.countSlides > this.storiesPerRow) ? true : false;
this.slideMe=this.countSlides>this.storiesPerRow?true:false;this.defaults={useFlickity:true};this.opts=$.extend(this.defaults,opts);this.init()}StandardContentSlider.prototype.init=function(){console.log("init");var that=this,slideBoxes,firstImage,firstImageHeight=0,storyTextHeight=0,marginTop=0,marginBottom=0;
// http://codepen.io/desandro/pen/KVwVqa/
// trigger redraw for transition
that.contentSlider[0].offsetHeight;var aTag=$(that.contentSlider).find(".slide a");if(aTag.length>0){marginTop=parseInt($(that.contentSlider).find(".slide a").css("margin-top").replace(/px/,""));marginBottom=parseInt($(that.contentSlider).find(".slide a").css("margin-bottom").replace(/px/,""))}for(var i=that.sliderRows;i>0;i--){console.log("slideRow: "+i);slideBoxes=that.contentSlider.find(".slideBox"+i);console.log(slideBoxes);firstImage=$(slideBoxes).find("img").get(0);console.log("find img");console.log(firstImage);firstImageHeight=$(firstImage).outerHeight(true);console.log("firstImageHeight: "+firstImageHeight);if(firstImageHeight>0){
// console.log('No OnLoad');
that.setSlideBoxesHeight(slideBoxes,marginTop,marginBottom,firstImageHeight);console.log("init flickity1");that.initFlickity()}else{$(firstImage).on("load",function(){
// console.log('In OnLoad');
firstImageHeight=$(firstImage).outerHeight(true);that.setSlideBoxesHeight(slideBoxes,marginTop,marginBottom,firstImageHeight);console.log("init flickity2");that.initFlickity()})}}};StandardContentSlider.prototype.setSlideBoxesHeight=function(slideBoxes,marginTop,marginBottom,firstImageHeight){var that=this,storyTextHeight,slideBoxesHeight;storyTextHeight=that.getStoryTextHeight(slideBoxes,firstImageHeight);slideBoxesHeight=marginTop+firstImageHeight+storyTextHeight+marginBottom;slideBoxes.height(slideBoxesHeight);
// console.log(marginTop, marginBottom, firstImageHeight, storyTextHeight, slideBoxesHeight);
};StandardContentSlider.prototype.getStoryTextHeight=function(slideBoxes,firstImageHeight){var storyText,storyTextHeight=0,outerHeight=0;for(var j=slideBoxes.length-1;j>=0;j--){storyText=$(slideBoxes[j]).find(".storyText");outerHeight=parseInt($(storyText).outerHeight(true));storyTextHeight=outerHeight>storyTextHeight?outerHeight:storyTextHeight}return storyTextHeight};StandardContentSlider.prototype.initFlickity=function(){var that=this;if(false===that.opts.useFlickity){return}
// (db) 2018-03-09 bei weniger als storiesPerRow draggen verhindern
console.log("that.countSlides: that.countSlides <= that.storiesPerRow");var draggable=that.countSlides<=that.storiesPerRow?false:true;that.contentSlider.flickity({prevNextButtons:this.prevNextButtonsEnabled,lazyLoad:that.storiesPerRow-1,pageDots:false,freeScroll:false,wrapAround:true,cellAlign:"left",draggable:draggable,imagesLoaded:true,cellSelector:".js-flickSlideItem"});var flkty=that.contentSlider.data("flickity");if(that.contentSliderBoxCounter.length>0){flkty.on("cellSelect",function(e){that.contentSliderBoxCounter.html(flkty.selectedIndex+1+" / "+that.countSlides)})}if(false===that.slideMe){$(flkty.prevButton.element).attr("disabled","disabled");$(flkty.nextButton.element).attr("disabled","disabled")}
// (ws) 2016-07-12 speziell fuer oe24TV
that.contentSlider.parents(".tabbedBoxTvContent").siblings(".tabbedBoxTvSidebar").addClass("active");
// (ws) 2016-07-12 //
};$.fn.standardContentSlider=function(opts){return this.each(function(){new StandardContentSlider(this,opts)})}})(jQuery);$(document).ready(function(){$(".contentSlider").standardContentSlider({useFlickity:true});$(".contentSlider.js-flickMain").find("button").addClass("js-oewaLink")});(function(){function FlickitySlider(slider,sliderClass){var that=this;that.slider=slider;that.sliderClass=sliderClass;that.imagePosition=0;that.options={cellAlign:"left",cellSelector:".story",contain:true,imagesLoaded:true,lazyLoad:1,pageDots:false,prevNextButtons:true,wrapAround:true,
// custom property
classCounter:null};options=slider.dataset.options;if("undefined"!==typeof options){options=JSON.parse(options);for(var key in options){that.options[key]=options[key]}}var flkty="undefined"!==typeof Flickity?new Flickity(that.slider,that.options):null;if("undefined"===typeof flkty||null===flkty){return}
// -------------------------------
// Falls ein Zaehler gewuenscht ist, ist er hier implementiert.
// Das Counter-Element muss innerhalb von .flickitySlider liegen
that.counter=slider.querySelector(that.options.classCounter);flkty.on("cellSelect",function(){
// http://flickity.metafizzy.co/events.html#select
// This event was previously cellSelect in Flickity v1. cellSelect will continue to work in Flickity v2.
var cellNumber=flkty.selectedIndex+1;
// Zaehler, falls vorhanden, aktualisieren
if(null!==that.counter){
// text nur einmal setzen
if(that.imagePosition!=flkty.selectedIndex){that.counter.textContent=cellNumber+"/"+flkty.cells.length}}
// voting - got to image
if(typeof window["theVoting"]!="undefined"){
// sicher gehen, dass gotoImage nur einmal ausgeführt wird
if(that.imagePosition!=flkty.selectedIndex){window["theVoting"].gotoImage(flkty.selectedIndex)}}that.imagePosition=flkty.selectedIndex});
// add oewa-Link to slide-buttons
var buttons=document.getElementsByClassName("flickity-prev-next-button");var buttonsLength=buttons.length;for(j=0;j<buttonsLength;j++){buttons[j].classList.add("js-oewaLink")}
// voting
if(typeof window["theVoting"]!="undefined"){window["theVoting"].gotoImage(0)}else{window["initVoting"]=true}}var sliderClass=".flickitySlider";var sliders=document.querySelectorAll(sliderClass);for(var i=0,slider;slider=sliders[i];i++){new FlickitySlider(slider,sliderClass)}})();(function($,win,doc,undefined){"use strict";function MoneyTicker(element,opts){this.element=$(element);this.defaults={interval:60,movement:1};this.opts=$.extend(this.defaults,opts);this.init()}MoneyTicker.prototype.init=function(){var self=this;this.intervalID=null;this.elementLeft=0;this.elementWidth=this.element.width();this.element.append(this.element.html());this.element.on("mouseenter",function(e){self.stop()});this.element.on("mouseleave",function(e){self.start()});this.start()};MoneyTicker.prototype.start=function(){var self=this;self.stop();self.intervalID=setInterval(function(){self.elementLeft-=self.defaults.movement;
// self.element.css("left", self.elementLeft + 'px');
self.element.css("transform","translate3d("+self.elementLeft+"px, 0, 0)");if(self.elementLeft<self.elementWidth*-1){self.elementLeft=0}},self.defaults.interval)};MoneyTicker.prototype.stop=function(){clearInterval(this.intervalID)};$.fn.moneyTicker=function(opts){return this.each(function(){new MoneyTicker(this,opts)})}})(jQuery,window,document);$(".moneyTicker .atxEntryContent").moneyTicker({interval:20});
// http://stackoverflow.com/questions/3219758/detect-changes-in-the-dom
var observeDOM=function(){var MutationObserver=window.MutationObserver||window.WebKitMutationObserver,eventListenerSupported=window.addEventListener;return function(obj,callback){if(MutationObserver){
// define a new observer
var observer=new MutationObserver(function(mutations,observer){if(mutations[0].addedNodes.length||mutations[0].removedNodes.length){callback()}});
// have the observer observe foo for changes in children
observer.observe(obj,{childList:true,subtree:true})}else if(eventListenerSupported){obj.addEventListener("DOMNodeInserted",callback,false);obj.addEventListener("DOMNodeRemoved",callback,false)}}}();
/*
 *  Remodal - v1.0.2
 *  Responsive, lightweight, fast, synchronized with CSS animations, fully customizable modal window plugin with declarative configuration and hash tracking.
 *  http://vodkabears.github.io/remodal/
 *
 *  Made by Ilya Makarov
 *  Under MIT License
 */!function(root,factory){if(typeof define==="function"&&define.amd){define(["jquery"],function($){return factory(root,$)})}else if(typeof exports==="object"){factory(root,require("jquery"))}else{factory(root,root.jQuery||root.Zepto)}}(this,function(global,$){"use strict";
/**
   * Name of the plugin
   * @private
   * @const
   * @type {String}
   */var PLUGIN_NAME="remodal";
/**
   * Namespace for CSS and events
   * @private
   * @const
   * @type {String}
   */var NAMESPACE=global.REMODAL_GLOBALS&&global.REMODAL_GLOBALS.NAMESPACE||PLUGIN_NAME;
/**
   * Animationstart event with vendor prefixes
   * @private
   * @const
   * @type {String}
   */var ANIMATIONSTART_EVENTS=$.map(["animationstart","webkitAnimationStart","MSAnimationStart","oAnimationStart"],function(eventName){return eventName+"."+NAMESPACE}).join(" ");
/**
   * Animationend event with vendor prefixes
   * @private
   * @const
   * @type {String}
   */var ANIMATIONEND_EVENTS=$.map(["animationend","webkitAnimationEnd","MSAnimationEnd","oAnimationEnd"],function(eventName){return eventName+"."+NAMESPACE}).join(" ");
/**
   * Default settings
   * @private
   * @const
   * @type {Object}
   */var DEFAULTS=$.extend({hashTracking:true,closeOnConfirm:true,closeOnCancel:true,closeOnEscape:true,closeOnOutsideClick:true,modifier:""},global.REMODAL_GLOBALS&&global.REMODAL_GLOBALS.DEFAULTS);
/**
   * States of the Remodal
   * @private
   * @const
   * @enum {String}
   */var STATES={CLOSING:"closing",CLOSED:"closed",OPENING:"opening",OPENED:"opened"};
/**
   * Reasons of the state change.
   * @private
   * @const
   * @enum {String}
   */var STATE_CHANGE_REASONS={CONFIRMATION:"confirmation",CANCELLATION:"cancellation"};
/**
   * Is animation supported?
   * @private
   * @const
   * @type {Boolean}
   */var IS_ANIMATION=function(){var style=document.createElement("div").style;return style.animationName!==undefined||style.WebkitAnimationName!==undefined||style.MozAnimationName!==undefined||style.msAnimationName!==undefined||style.OAnimationName!==undefined}();
/**
   * Current modal
   * @private
   * @type {Remodal}
   */var current;
/**
   * Scrollbar position
   * @private
   * @type {Number}
   */var scrollTop;
/**
   * Returns an animation duration
   * @private
   * @param {jQuery} $elem
   * @returns {Number}
   */function getAnimationDuration($elem){if(IS_ANIMATION&&$elem.css("animation-name")==="none"&&$elem.css("-webkit-animation-name")==="none"&&$elem.css("-moz-animation-name")==="none"&&$elem.css("-o-animation-name")==="none"&&$elem.css("-ms-animation-name")==="none"){return 0}var duration=$elem.css("animation-duration")||$elem.css("-webkit-animation-duration")||$elem.css("-moz-animation-duration")||$elem.css("-o-animation-duration")||$elem.css("-ms-animation-duration")||"0s";var delay=$elem.css("animation-delay")||$elem.css("-webkit-animation-delay")||$elem.css("-moz-animation-delay")||$elem.css("-o-animation-delay")||$elem.css("-ms-animation-delay")||"0s";var iterationCount=$elem.css("animation-iteration-count")||$elem.css("-webkit-animation-iteration-count")||$elem.css("-moz-animation-iteration-count")||$elem.css("-o-animation-iteration-count")||$elem.css("-ms-animation-iteration-count")||"1";var max;var len;var num;var i;duration=duration.split(", ");delay=delay.split(", ");iterationCount=iterationCount.split(", ");
// The 'duration' size is the same as the 'delay' size
for(i=0,len=duration.length,max=Number.NEGATIVE_INFINITY;i<len;i++){num=parseFloat(duration[i])*parseInt(iterationCount[i],10)+parseFloat(delay[i]);if(num>max){max=num}}return num}
/**
   * Returns a scrollbar width
   * @private
   * @returns {Number}
   */function getScrollbarWidth(){if($(document.body).height()<=$(window).height()){return 0}var outer=document.createElement("div");var inner=document.createElement("div");var widthNoScroll;var widthWithScroll;outer.style.visibility="hidden";outer.style.width="100px";document.body.appendChild(outer);widthNoScroll=outer.offsetWidth;
// Force scrollbars
outer.style.overflow="scroll";
// Add inner div
inner.style.width="100%";outer.appendChild(inner);widthWithScroll=inner.offsetWidth;
// Remove divs
outer.parentNode.removeChild(outer);return widthNoScroll-widthWithScroll}
/**
   * Locks the screen
   * @private
   */function lockScreen(){var $html=$("html");var lockedClass=namespacify("is-locked");var paddingRight;var $body;if(!$html.hasClass(lockedClass)){$body=$(document.body);
// Zepto does not support '-=', '+=' in the `css` method
paddingRight=parseInt($body.css("padding-right"),10)+getScrollbarWidth();$body.css("padding-right",paddingRight+"px");$html.addClass(lockedClass)}}
/**
   * Unlocks the screen
   * @private
   */function unlockScreen(){var $html=$("html");var lockedClass=namespacify("is-locked");var paddingRight;var $body;if($html.hasClass(lockedClass)){$body=$(document.body);
// Zepto does not support '-=', '+=' in the `css` method
paddingRight=parseInt($body.css("padding-right"),10)-getScrollbarWidth();$body.css("padding-right",paddingRight+"px");$html.removeClass(lockedClass)}}
/**
   * Sets a state for an instance
   * @private
   * @param {Remodal} instance
   * @param {STATES} state
   * @param {Boolean} isSilent If true, Remodal does not trigger events
   * @param {String} Reason of a state change.
   */function setState(instance,state,isSilent,reason){var newState=namespacify("is",state);var allStates=[namespacify("is",STATES.CLOSING),namespacify("is",STATES.OPENING),namespacify("is",STATES.CLOSED),namespacify("is",STATES.OPENED)].join(" ");instance.$bg.removeClass(allStates).addClass(newState);instance.$overlay.removeClass(allStates).addClass(newState);instance.$wrapper.removeClass(allStates).addClass(newState);instance.$modal.removeClass(allStates).addClass(newState);instance.state=state;!isSilent&&instance.$modal.trigger({type:state,reason:reason},[{reason:reason}])}
/**
   * Synchronizes with the animation
   * @param {Function} doBeforeAnimation
   * @param {Function} doAfterAnimation
   * @param {Remodal} instance
   */function syncWithAnimation(doBeforeAnimation,doAfterAnimation,instance){var runningAnimationsCount=0;var handleAnimationStart=function(e){if(e.target!==this){return}runningAnimationsCount++};var handleAnimationEnd=function(e){if(e.target!==this){return}if(--runningAnimationsCount===0){
// Remove event listeners
$.each(["$bg","$overlay","$wrapper","$modal"],function(index,elemName){instance[elemName].off(ANIMATIONSTART_EVENTS+" "+ANIMATIONEND_EVENTS)});doAfterAnimation()}};$.each(["$bg","$overlay","$wrapper","$modal"],function(index,elemName){instance[elemName].on(ANIMATIONSTART_EVENTS,handleAnimationStart).on(ANIMATIONEND_EVENTS,handleAnimationEnd)});doBeforeAnimation();
// If the animation is not supported by a browser or its duration is 0
if(getAnimationDuration(instance.$bg)===0&&getAnimationDuration(instance.$overlay)===0&&getAnimationDuration(instance.$wrapper)===0&&getAnimationDuration(instance.$modal)===0){
// Remove event listeners
$.each(["$bg","$overlay","$wrapper","$modal"],function(index,elemName){instance[elemName].off(ANIMATIONSTART_EVENTS+" "+ANIMATIONEND_EVENTS)});doAfterAnimation()}}
/**
   * Closes immediately
   * @private
   * @param {Remodal} instance
   */function halt(instance){if(instance.state===STATES.CLOSED){return}$.each(["$bg","$overlay","$wrapper","$modal"],function(index,elemName){instance[elemName].off(ANIMATIONSTART_EVENTS+" "+ANIMATIONEND_EVENTS)});instance.$bg.removeClass(instance.settings.modifier);instance.$overlay.removeClass(instance.settings.modifier).hide();instance.$wrapper.hide();unlockScreen();setState(instance,STATES.CLOSED,true)}
/**
   * Parses a string with options
   * @private
   * @param str
   * @returns {Object}
   */function parseOptions(str){var obj={};var arr;var len;var val;var i;
// Remove spaces before and after delimiters
str=str.replace(/\s*:\s*/g,":").replace(/\s*,\s*/g,",");
// Parse a string
arr=str.split(",");for(i=0,len=arr.length;i<len;i++){arr[i]=arr[i].split(":");val=arr[i][1];
// Convert a string value if it is like a boolean
if(typeof val==="string"||val instanceof String){val=val==="true"||(val==="false"?false:val)}
// Convert a string value if it is like a number
if(typeof val==="string"||val instanceof String){val=!isNaN(val)?+val:val}obj[arr[i][0]]=val}return obj}
/**
   * Generates a string separated by dashes and prefixed with NAMESPACE
   * @private
   * @param {...String}
   * @returns {String}
   */function namespacify(){var result=NAMESPACE;for(var i=0;i<arguments.length;++i){result+="-"+arguments[i]}return result}
/**
   * Handles the hashchange event
   * @private
   * @listens hashchange
   */function handleHashChangeEvent(){var id=location.hash.replace("#","");var instance;var $elem;if(!id){
// Check if we have currently opened modal and animation was completed
if(current&&current.state===STATES.OPENED&&current.settings.hashTracking){current.close()}}else{
// Catch syntax error if your hash is bad
try{$elem=$("[data-"+PLUGIN_NAME+"-id="+id.replace(new RegExp("/","g"),"\\/")+"]")}catch(err){}if($elem&&$elem.length){instance=$[PLUGIN_NAME].lookup[$elem.data(PLUGIN_NAME)];if(instance&&instance.settings.hashTracking){instance.open()}}}}
/**
   * Remodal constructor
   * @constructor
   * @param {jQuery} $modal
   * @param {Object} options
   */function Remodal($modal,options){var $body=$(document.body);var remodal=this;remodal.settings=$.extend({},DEFAULTS,options);remodal.index=$[PLUGIN_NAME].lookup.push(remodal)-1;remodal.state=STATES.CLOSED;remodal.$overlay=$("."+namespacify("overlay"));if(!remodal.$overlay.length){remodal.$overlay=$("<div>").addClass(namespacify("overlay")+" "+namespacify("is",STATES.CLOSED)).hide();$body.append(remodal.$overlay)}remodal.$bg=$("."+namespacify("bg")).addClass(namespacify("is",STATES.CLOSED));remodal.$modal=$modal;remodal.$modal.addClass(NAMESPACE+" "+namespacify("is-initialized")+" "+remodal.settings.modifier+" "+namespacify("is",STATES.CLOSED));remodal.$wrapper=$("<div>").addClass(namespacify("wrapper")+" "+remodal.settings.modifier+" "+namespacify("is",STATES.CLOSED)).hide().append(remodal.$modal);$body.append(remodal.$wrapper);
// Add the event listener for the close button
remodal.$wrapper.on("click."+NAMESPACE,"[data-"+PLUGIN_NAME+'-action="close"]',function(e){e.preventDefault();remodal.close()});
// Add the event listener for the cancel button
remodal.$wrapper.on("click."+NAMESPACE,"[data-"+PLUGIN_NAME+'-action="cancel"]',function(e){e.preventDefault();remodal.$modal.trigger(STATE_CHANGE_REASONS.CANCELLATION);if(remodal.settings.closeOnCancel){remodal.close(STATE_CHANGE_REASONS.CANCELLATION)}});
// Add the event listener for the confirm button
remodal.$wrapper.on("click."+NAMESPACE,"[data-"+PLUGIN_NAME+'-action="confirm"]',function(e){e.preventDefault();remodal.$modal.trigger(STATE_CHANGE_REASONS.CONFIRMATION);if(remodal.settings.closeOnConfirm){remodal.close(STATE_CHANGE_REASONS.CONFIRMATION)}});
// Add the event listener for the overlay
remodal.$wrapper.on("click."+NAMESPACE,function(e){var $target=$(e.target);if(!$target.hasClass(namespacify("wrapper"))){return}if(remodal.settings.closeOnOutsideClick){remodal.close()}})}
/**
   * Opens a modal window
   * @public
   */Remodal.prototype.open=function(){var remodal=this;var id;
// Check if the animation was completed
if(remodal.state===STATES.OPENING||remodal.state===STATES.CLOSING){return}id=remodal.$modal.attr("data-"+PLUGIN_NAME+"-id");if(id&&remodal.settings.hashTracking){scrollTop=$(window).scrollTop();location.hash=id}if(current&&current!==remodal){halt(current)}current=remodal;lockScreen();remodal.$bg.addClass(remodal.settings.modifier);remodal.$overlay.addClass(remodal.settings.modifier).show();remodal.$wrapper.show().scrollTop(0);syncWithAnimation(function(){setState(remodal,STATES.OPENING)},function(){setState(remodal,STATES.OPENED)},remodal)};
/**
   * Closes a modal window
   * @public
   * @param {String} reason
   */Remodal.prototype.close=function(reason){var remodal=this;
// Check if the animation was completed
if(remodal.state===STATES.OPENING||remodal.state===STATES.CLOSING){return}if(remodal.settings.hashTracking&&remodal.$modal.attr("data-"+PLUGIN_NAME+"-id")===location.hash.substr(1)){location.hash="";$(window).scrollTop(scrollTop)}syncWithAnimation(function(){setState(remodal,STATES.CLOSING,false,reason)},function(){remodal.$bg.removeClass(remodal.settings.modifier);remodal.$overlay.removeClass(remodal.settings.modifier).hide();remodal.$wrapper.hide();unlockScreen();setState(remodal,STATES.CLOSED,false,reason)},remodal)};
/**
   * Returns a current state of a modal
   * @public
   * @returns {STATES}
   */Remodal.prototype.getState=function(){return this.state};
/**
   * Destroys a modal
   * @public
   */Remodal.prototype.destroy=function(){var lookup=$[PLUGIN_NAME].lookup;var instanceCount;halt(this);this.$wrapper.remove();delete lookup[this.index];instanceCount=$.grep(lookup,function(instance){return!!instance}).length;if(instanceCount===0){this.$overlay.remove();this.$bg.removeClass(namespacify("is",STATES.CLOSING)+" "+namespacify("is",STATES.OPENING)+" "+namespacify("is",STATES.CLOSED)+" "+namespacify("is",STATES.OPENED))}};
/**
   * Special plugin object for instances
   * @public
   * @type {Object}
   */$[PLUGIN_NAME]={lookup:[]};
/**
   * Plugin constructor
   * @constructor
   * @param {Object} options
   * @returns {JQuery}
   */$.fn[PLUGIN_NAME]=function(opts){var instance;var $elem;this.each(function(index,elem){$elem=$(elem);if($elem.data(PLUGIN_NAME)==null){instance=new Remodal($elem,opts);$elem.data(PLUGIN_NAME,instance.index);if(instance.settings.hashTracking&&$elem.attr("data-"+PLUGIN_NAME+"-id")===location.hash.substr(1)){instance.open()}}else{instance=$[PLUGIN_NAME].lookup[$elem.data(PLUGIN_NAME)]}});return instance};$(document).ready(function(){
// data-remodal-target opens a modal window with the special Id
$(document).on("click","[data-"+PLUGIN_NAME+"-target]",function(e){e.preventDefault();var elem=e.currentTarget;var id=elem.getAttribute("data-"+PLUGIN_NAME+"-target");var $target=$("[data-"+PLUGIN_NAME+"-id="+id+"]");$[PLUGIN_NAME].lookup[$target.data(PLUGIN_NAME)].open()});
// Auto initialization of modal windows
// They should have the 'remodal' class attribute
// Also you can write the `data-remodal-options` attribute to pass params into the modal
$(document).find("."+NAMESPACE).each(function(i,container){var $container=$(container);var options=$container.data(PLUGIN_NAME+"-options");if(!options){options={}}else if(typeof options==="string"||options instanceof String){options=parseOptions(options)}$container[PLUGIN_NAME](options)});
// Handles the keydown event
$(document).on("keydown."+NAMESPACE,function(e){if(current&&current.settings.closeOnEscape&&current.state===STATES.OPENED&&e.keyCode===27){current.close()}});
// Handles the hashchange event
$(window).on("hashchange."+NAMESPACE,handleHashChangeEvent)})});$(document).ready(function(){function showVideoBox(){var counter=$(this).parent().parent().find(".videoCounter");var showVids=2;$(this).removeClass("js-invokeOnce");if($(this).hasClass("twoVideos")){showVids=2}else if($(this).hasClass("threeVideos")){showVids=3}else if($(this).hasClass("fourVideos")){showVids=4}else if($(this).hasClass("fiveVideos")){showVids=5}$(this).slick({slidesToShow:showVids,slidesToScroll:1,draggable:false,prevArrow:$(this).find(".leftArrow"),nextArrow:$(this).find(".rightArrow"),lazyLoad:"ondemand",onBeforeChange:function(slider,pos,nextPos){counter.text(nextPos+1+" / "+slider.slideCount)},onInit:function(){this.$slider.parents(".videoContentBox").css("display","block")}});$(this).parent().css("max-height","")}$(".videoContentBox:in-viewport .videoContentWrapper.js-invokeOnce").each(showVideoBox);$(window).scroll(function(){$(".videoContentBox:in-viewport .videoContentWrapper.js-invokeOnce").each(showVideoBox)})});var SidebarCad=function(){if(!$("#wrap").hasClass("a2016")||!$(".a2016 .content.article").length>0||!$(".a2016 .sidebar.article").length>0){return}
// this.cad1 = $('#Contentad1');
// this.cad1 = $('#Contentad_Sky1');
this.cad1=$("#sidebarContainerTopBox");this.cad2=$("#Contentad2");this.cad1Content=null;this.cad2Content=null;this.timeout={key:0,counter:0,interval:100,limit:1e4};this.header=$(".headerContainer header");this.navPortal=$(".headerContainer .nav_portal");this.navMain=$(".headerContainer .nav_main");if($("#wrap").hasClass("oe2016")){this.header=$(".headerBox .headerNav");this.navPortal=$(".headerBox .headerNavPortal");this.navMain=$(".headerBox .headerNavContainer")}this.sidebarContainer=$(".a2016 .sidebar.article .sidebarContainer");
// Hoehe von navPortal und navMain, wenn beide NICHT 'fixed' sind
this.cad1Top=100;this.sidebarContainerPaddingBottom=parseInt($(".a2016 .sidebar.article .sidebarContainer").css("padding-bottom"));
// (ws) 2015-12-04
// Die Hoehe des sidebarContainers wird jetzt in articleObserver.js ermittelt
// this.article = $('.a2016 .content.article');
// this.initSidebar();
this.initCad()};SidebarCad.prototype.initCad=function(){var self=this;self.cad1.css({display:"block"});self.cad2.css({display:"block"});self.cad2.css({position:"absolute",bottom:this.sidebarContainerPaddingBottom+"px"});function pollCad(){var temp;temp=self.cad1.find("iframe");if(temp.length>0){self.cad1Content=temp}temp=self.cad2.find("iframe");if(temp.length>0){self.cad2Content=temp}if(self.cad1Content!==null&&self.cad2Content!==null||self.timeout.counter>self.timeout.limit){clearTimeout(self.timeout.key);self.handleWindowScrollEvent()}else{self.timeout.counter+=self.timeout.interval;self.timeout.key=setTimeout(pollCad,self.timeout.interval)}}pollCad();$(window).on("scroll",function(e){self.handleWindowScrollEvent()})};SidebarCad.prototype.handleWindowScrollEvent=function(){if(this.navMain.hasClass("fixed")||this.navMain.hasClass("stickyHeader")){var sidebarContainerPositionBottom=this.sidebarContainer.position().top+this.sidebarContainer.outerHeight();var cad1Bottom=this.cad1Top+this.cad1.outerHeight();var cad2Height=this.cad2.length>0?this.cad2.outerHeight():0;var gravityHeight=$(".gravityContainer").length>0?$(".gravityContainer").outerHeight(true):0;var scrollTop=$(window).scrollTop()-gravityHeight;cad2Height=cad2Height>0?cad2Height+10:0;if(sidebarContainerPositionBottom-cad1Bottom-cad2Height-this.sidebarContainerPaddingBottom>scrollTop){this.cad1.css({position:"fixed",top:this.cad1Top+"px",bottom:"auto",left:this.navMain.position().left});
// 2018-02-14 (db) fullpage-ads positioning
$(".fullpageAds #sidebarContainerTopBox, .fullpageAds #Contentad2").css({left:"50%","margin-left":"-480px"})}else{this.cad1.css({position:"absolute",top:"auto",bottom:cad2Height+this.sidebarContainerPaddingBottom+"px",left:"auto"});
// 2018-02-14 (db) fullpage-ads positioning
$(".fullpageAds #sidebarContainerTopBox, .fullpageAds #Contentad2").css({left:"auto","margin-left":"0"})}}else{this.cad1.css({position:"static"});
// 2018-02-14 (db) fullpage-ads positioning
$(".fullpageAds #sidebarContainerTopBox, .fullpageAds #Contentad2").css({left:"auto","margin-left":"0"})}};$(document).ready(function(){new SidebarCad});var oe2016SidebarCadFixed=false;var oe2016SidebarCadLoaded={duration:500,maxTries:10,tried:0};var oe2016SidebarCad=function(){var oe2016=$("#wrap").hasClass("oe2016")?true:false;var article=$("#wrap").hasClass("a2016")||$(".a2016 .content.article").length>0||$(".a2016 .sidebar.article").length>0?true:false;if(!oe2016||oe2016&&article){return}
// this.cad1 = $('#Contentad1');
this.cad1=$("#Contentad1.cad_sticky2017");
// only if element exists
if(this.cad1.length>0){this.cad1OriginalTop=document.getElementById("Contentad1").offsetTop;this.cad1Fixed=false;this.fixedDuration=2500;this.cadTimer=null;this.timeout={key:0,counter:0,interval:100,limit:1e4};this.header=$(".headerBox .headerNav");this.navPortal=$(".headerBox .headerNavPortal");this.navMain=$(".headerBox .headerNavContainer");
// Hoehe von navPortal und navMain, wenn beide NICHT 'fixed' sind
this.navHeight=100;
// this.sidebarContainerPaddingBottom = parseInt($('.a2016 .sidebar.article .sidebarContainer').css('padding-bottom'));
// for display-reasons - do not display margin for subdiv, while position is fixed
this.cad1_subdiv=$("#Contentad1.cad_sticky2017 div");this.initCad()}else{
// try again, in case ad hasn't been loaded yet
oe2016SidebarCadLoaded.tried++;if(oe2016SidebarCadLoaded.tried<oe2016SidebarCadLoaded.maxTries){setTimeout(function(){new oe2016SidebarCad},oe2016SidebarCadLoaded.duration)}}};oe2016SidebarCad.prototype.initCad=function(){var self=this;self.cad1.css({display:"block"});function pollCad(){var temp;temp=self.cad1.find("iframe");self.cad1Content=null;if(temp.length>0){self.cad1Content=temp}if(self.cad1Content!==null||self.timeout.counter>self.timeout.limit){clearTimeout(self.timeout.key);self.handleWindowScrollEvent()}else{
// no content loaded/has been found, try again in "interval" milliseconds until "limit" has been reached
self.timeout.counter+=self.timeout.interval;self.timeout.key=setTimeout(pollCad,self.timeout.interval)}}pollCad();$(window).on("scroll",function(e){self.handleWindowScrollEvent()})};oe2016SidebarCad.prototype.handleWindowScrollEvent=function(){if(!oe2016SidebarCadFixed){
// handle margin for first div
if(this.navMain.hasClass("fixed")||this.navMain.hasClass("stickyHeader")){var cad1top=this.cad1OriginalTop-this.navHeight;var gravityHeight=$(".gravityContainer").length>0?$(".gravityContainer").outerHeight(true):0;var scrollTop=$(window).scrollTop()-gravityHeight;if(cad1top<scrollTop){
// element "über" Fenster - position fixed
this.cad1.css({position:"fixed",top:this.navHeight+"px",bottom:"auto",left:"auto","z-index":"9999"});this.cad1_subdiv.css({"margin-bottom":"0"});if(!this.cadTimer){this.cadTimer=setTimeout(function(){$("#Contentad1.cad_sticky2017").css({position:"static",top:"auto",bottom:"auto",left:"auto","z-index":"1"});$("#Contentad1.cad_sticky2017 div").css({"margin-bottom":"20px"});oe2016SidebarCadFixed=true},this.fixedDuration)}}else{
// element im Fenster oder darunter -> alles normal
this.cad1.css({position:"static",top:"auto",bottom:"auto",left:"auto","z-index":"1"});this.cad1_subdiv.css({"margin-bottom":"20px"})}}else{this.cad1.css({position:"static"});this.cad1_subdiv.css({"margin-bottom":"20px"})}}};$(document).ready(function(){new oe2016SidebarCad});
// Displayed in Viewport
// var oe2016SidebarCadInViewport = {
//     timeVisible: 0,
//     lastState: false,
//     lastTime: 0
// };
// $(window).scroll(function(){
//     if (!oe2016SidebarCadFixed) {
//         //Window Object
//         var win = $(window);
//         //Object to Check
//         // var obj = $('#Contentad1');
//         var obj = $('#Contentad1.cad_sticky2017');
//         if (obj.length>0) {
//             //the top Scroll Position in the page
//             var scrollPosition = win.scrollTop();
//             //the end of the visible area in the page, starting from the scroll position
//             var visibleArea = win.scrollTop() + win.height();
//             //the end of the object to check
//             var objEndPos = (obj.offset().top + obj.outerHeight());
//             var inViewport = (visibleArea >= objEndPos && scrollPosition <= objEndPos ? true : false);
//             if (inViewport) {
//                 if (false == oe2016SidebarCadInViewport.lastState) {
//                     // start counter
//                     oe2016SidebarCadInViewport.lastTime = new Date().getTime();
//                 }
//                 else if (true == oe2016SidebarCadInViewport.lastState) {
//                     var now = new Date().getTime();
//                     oe2016SidebarCadInViewport.timeVisible += now-oe2016SidebarCadInViewport.lastTime;
//                     if (2500 < oe2016SidebarCadInViewport.timeVisible) {
//                         // ad was visible long enough
//                         oe2016SidebarCadFixed = true;
//                     }
//                     oe2016SidebarCadInViewport.lastTime = now;
//                 }
//             }
//             oe2016SidebarCadInViewport.lastState = inViewport;
//         }
//     }
// });
(function(containerClass){
// "use strict";
// --------------------------------------------------------
var oe24adsLoadAfterPage={allowedAds:new Array(
// 'Contentad2',
"Contentad3","Contentad4","Contentad5","Contentad6","Contentad7","Contentad8","Contentad9"),ads:new Array,adsVisible:new Array,handleAd:function(container){var containerId=container.id;var loadIt=false;
// ------------------------------------
if(oe24adsLoadAfterPage.allowedAds.indexOf(containerId)==-1){
// handle only allowedAds - others have been loaded right on the start within html
return}
// ------------------------------------
// during testing only on channel-pages
var channel=oe24adsLoadAfterPage.isChannel();if(channel==false){loadIt=true}
// ------------------------------------
oe24adsLoadAfterPage.ads[containerId]=containerId;oe24adsLoadAfterPage.adsVisible[containerId]=false;if(oe24adsLoadAfterPage.isVisible(containerId)){loadIt=true}if(loadIt){oe24adsLoadAfterPage.displayAd(containerId)}},channel:null,isChannel:function(){if(oe24adsLoadAfterPage.channel==null){oe24adsLoadAfterPage.channel=false;
// during testing only on channel-pages
var wrap=document.getElementById("wrap");if(wrap.classList.contains("channel")){oe24adsLoadAfterPage.channel=true}}return oe24adsLoadAfterPage.channel},isVisible:function(id){var offsetTop=document.getElementById(id).offsetTop;var doc=document.documentElement;var scrollTop=(window.pageYOffset||doc.scrollTop)-(doc.clientTop||0);var windowHeight=window.innerHeight;
// contentad in visible area +/- additional pixel
var additionalPixel=100;if(offsetTop>=scrollTop-additionalPixel&&offsetTop<=scrollTop+windowHeight+additionalPixel){return true}return false},displayId:"",displayAd:function(id){if(oe24adsLoadAfterPage.adsVisible[id]==false){oe24adsLoadAfterPage.displayId=id;// helper to remember which ad we are handling right now
adition=adition||{};adition.srq=adition.srq||[];adition.srq.push(function(api){api.renderSlot(oe24adsLoadAfterPage.displayId);oe24adsLoadAfterPage.adsVisible[oe24adsLoadAfterPage.displayId]=true})}},controlAd:function(){for(var i=0;i<oe24adsLoadAfterPage.allowedAds.length;i++){var id=oe24adsLoadAfterPage.allowedAds[i];if(typeof oe24adsLoadAfterPage.adsVisible[id]!="undefined"){if(oe24adsLoadAfterPage.adsVisible[id]==false){if(oe24adsLoadAfterPage.isVisible(id)){oe24adsLoadAfterPage.displayAd(id)}}}}}};
// --------------------------------------------------------
// (bs) 2017-09-19 bugfix. if this is a channel where advertisments are disabled,
// the global variable "adition" does not exist - hence the return.
if(typeof adition==="undefined"){return}var containers=document.querySelectorAll(containerClass);for(var i=0,container;container=containers[i];++i){oe24adsLoadAfterPage.handleAd(container)}window.onscroll=function(){oe24adsLoadAfterPage.controlAd()}})(".adSlotAdition");
// console.log('oe2016adLoad');
// ;(function() {
//   var oe24Img = {
//     isInViewport: function (elem) {
//       var bounding = elem.getBoundingClientRect();
//       return (
//           bounding.top >= 0 &&
//           bounding.left >= 0 &&
//           bounding.bottom <= (window.innerHeight ||
// document.documentElement.clientHeight) &&
//           bounding.right <= (window.innerWidth ||
// document.documentElement.clientWidth)
//       );
//     },
//       load:function(){
//         console.log('load');
//           var elements = document.querySelectorAll('.oe24Lazy');
//       //var elements = document.querySelectorAll('.imgLoad');
//       for (i = 0; i < elements.length; ++i) {
//         //console.log(elements[i]);
//         if(oe24Img.isInViewport(elements[i])) {
//           var src = elements[i].src;
//           var original = elements[i].getAttribute("data-original");
//           if(src!=original) {
//             console.log('set element '+i);
//             elements[i].src=original;
//           }
//         }
//       }
//       }
//   }
//   if (document.documentMode || /Edge\//.test(navigator.userAgent)) {
//    console.log('ie');
//    window.onscroll = function() {
//         oe24Img.load();
//     };
//    window.onresize = function() {
//         oe24Img.load();
//     };
//   }
//   else {
//     console.log('NOT ie');
//   }
// })();
(function(){var adMiddleSrc="";var adTopSrc="";var adLeftSrc="";var adRightSrc="";var adMiddleType="iframe";var adTopType="iframe";var adLeftType="iframe";var adRightType="iframe";var adMiddleLink="";var adTopLink="";var adLeftLink="";var adRightLink="";var videoFullscreenSrc="";var adPosition="";var srcDomain="";var adTopHeight=90;var middleBoxTop="10px";var validOrigins=new Array("http://www.dev.oe24.at","https://www.oe24.at","https://www.gesund24.at","https://sport.oe24.at","https://www.wirkochen.at","http://www.wetter.at","https://www.wetter.at","https://madonna.oe24.at","https://streaming.ad-balancer.at","http://imagesrv.adition.com","https://imagesrv.adition.com","http://d.scrn.ag","https://d.scrn.ag");window.addEventListener("message",function(event){var origin=event.origin;if(validOrigins.indexOf(origin)>=0){
// if(event.data.event_id === 'oe24cinematicvideo') event.data.event_id = 'oe24doublebridgevideo' ;
if(event.data.event_id==="oe24cinematicvideo"){oe24ad.fullscreen.buildFullpageVideo(event.data.data)}if(event.data.event_id==="oe24cinematicvideobuild"){if(adPosition==""){adMiddleSrc=event.data.data.middlesrc;videoFullscreenSrc=event.data.data.videofullscreen;adPosition=event.data.data.adposition;srcDomain=event.data.data.srcdomain;var videoSource=document.querySelector("div#"+adPosition+" iframe");
// var videoSource = document.querySelector('#oe24videocinematicsource');
videoSource.contentWindow.transmitted=true;oe24ad.cinematic.buildCinematic()}}
// doublebridge fullscreen
if(event.data.event_id==="oe24doublebridgevideo"){oe24ad.fullscreen.buildFullpageVideo(event.data.data)}if(event.data.event_id==="oe24doublebridgevideobuild"){if(adPosition==""){adMiddleSrc=event.data.data.middlesrc;adTopSrc=event.data.data.topsrc;adLeftSrc=event.data.data.leftsrc;adRightSrc=event.data.data.rightsrc;if(typeof event.data.data.middletype!="undefined"){adMiddleType=event.data.data.middletype}if(typeof event.data.data.toptype!="undefined"){adTopType=event.data.data.toptype}if(typeof event.data.data.lefttype!="undefined"){adLeftType=event.data.data.lefttype}if(typeof event.data.data.righttype!="undefined"){adRightType=event.data.data.righttype}if(typeof event.data.data.middlelink!="undefined"){adMiddleLink=event.data.data.middlelink}if(typeof event.data.data.toplink!="undefined"){adTopLink=event.data.data.toplink}if(typeof event.data.data.leftlink!="undefined"){adLeftLink=event.data.data.leftlink}if(typeof event.data.data.rightlink!="undefined"){adRightLink=event.data.data.rightlink}videoFullscreenSrc=event.data.data.videofullscreen;adPosition=event.data.data.adposition;srcDomain=event.data.data.srcdomain;var videoSource=document.querySelector("div#"+adPosition+" iframe");
// var videoSource = document.querySelector('#oe24videocinematicsource');
videoSource.contentWindow.transmitted=true;oe24ad.doublebridge.buildDoublebridge()}}
// fullscreen video start
if(event.data.event_id==="oe24fullscreenstart"){
// console.log('...XXX... FULLSCREENSTART' );
}
// close fullscreen video
if(event.data.event_id==="oe24fullscreenclose"){var fullscreen=document.getElementById("oe24fullscreenContainer");if(fullscreen.length!=0){fullscreen.style.display="none"}}}});var oe24ad={doublebridge:{buildDoublebridge:function(){var aBody=parent.document.body;aBody.classList.add("fullpageAds");aBody.classList.add("doublebridge");
// build again?
var classes2check=new Array("fullpageAdTop","fullpageAdLeft","fullpageAdRight","fullpageAdMiddle");for(i in classes2check){var class2check=classes2check[i];var knodes=parent.document.getElementsByClassName(class2check);if(knodes.length>0){knodes[0].parentNode.removeChild(knodes[0])}}
// if (adTopHeight > 0) {
//     var wrap = parent.document.getElementById('wrap');
//     if (wrap){
//         wrap.style.top = adTopHeight + 'px';
//     }
// }
// fullsize-video
var adMiddleNodeFullSize=document.createElement("div");adMiddleNodeFullSize.id="oe24billboardMiddleVideo";adMiddleNodeFullSize.classList.add("fullpageVideo");adMiddleNodeFullSize.style.height="100%";adMiddleNodeFullSize.style.display="none";adMiddleNodeFullSize.innerHTML='<link rel="preload" as="video" href="'+videoFullscreenSrc+'">';adMiddleNodeFullSize.innerHTML+='<div id="adMiddleNodeVideoContainer" style="height: 100%;"><div id="adMiddleNodeVideo" style="height: 100%;"></div></div>';adMiddleNodeFullSize.innerHTML+='<div id="adMiddleNodeClose" style="display: none;">✕</div>';adMiddleNodeFullSize.innerHTML+='<div id="oe24cinematicplaybutton" class="fullpageCtrl fullpagePlay fullpageButtonPause"></div>';adMiddleNodeFullSize.innerHTML+='<div id="oe24cinematicmutebutton" class="fullpageCtrl fullpageMute fullpageButtonUnmute"></div>';aBody.appendChild(adMiddleNodeFullSize);var playButton=document.getElementById("oe24cinematicplaybutton");playButton.addEventListener("click",function(e){e.preventDefault();oe24ad.fullscreen.setPlay()});var muteButton=document.getElementById("oe24cinematicmutebutton");muteButton.addEventListener("click",function(e){e.preventDefault();oe24ad.fullscreen.setMute()});var close=document.getElementById("adMiddleNodeVideoContainer");close.addEventListener("click",function(e){e.preventDefault();oe24ad.doublebridge.handleFullscreen()});var closeButton=document.getElementById("adMiddleNodeClose");closeButton.addEventListener("click",function(e){e.preventDefault();oe24ad.doublebridge.handleFullscreen()});
// top
var adTopNode=parent.document.getElementById("oe24billboardAdTop");if(adTopNode){adTopNode.parentNode.removeChild(adTopNode)}var adTopNode=document.createElement("div");adTopNode.id="oe24billboardAdTop";adTopNode.classList.add("fullpageAdTop");if(adTopType=="img"){adTopNode.innerHTML='<a href="'+adTopLink+'" target="_blank"><img src="'+adTopSrc+'" width="960" height="90" border="0"></a>'}else{adTopNode.innerHTML='<iframe src="'+adTopSrc+'" width="100%" height="'+adTopHeight+'" style="overflow: hidden; max-width: 100%;" scrolling="no"></iframe>'}
// left
var adLeftNode=parent.document.getElementById("oe24billboardAdLeft");if(adLeftNode){adLeftNode.parentNode.removeChild(adLeftNode)}var adLeftNode=document.createElement("div");adLeftNode.id="oe24billboardAdLeft";adLeftNode.classList.add("fullpageAdLeft");if(adLeftType=="img"){adLeftNode.innerHTML='<a href="'+adLeftLink+'" target="_blank"><img src="'+adLeftSrc+'" border="0"></a>'}else{adLeftNode.innerHTML='<iframe src="'+adLeftSrc+'" width="150" height="850" style="overflow: hidden;" scrolling="no"></iframe>'}aBody.appendChild(adLeftNode);
// right
var adRightNode=parent.document.getElementById("oe24billboardAdRight");if(adRightNode){adRightNode.parentNode.removeChild(adRightNode)}var adRightNode=document.createElement("div");adRightNode.id="oe24billboardAdRight";adRightNode.classList.add("fullpageAdRight");if(adRightType=="img"){adRightNode.innerHTML='<a href="'+adRightLink+'" target="_blank"><img src="'+adRightSrc+'" border="0"></a>'}else{adRightNode.innerHTML='<iframe src="'+adRightSrc+'" width="130" height="850" style="overflow: hidden;" scrolling="no"></iframe>'}aBody.appendChild(adRightNode);
// middle
var adMiddleNode=parent.document.getElementById("oe24billboardMiddle");if(adMiddleNode){adMiddleNode.parentNode.removeChild(adMiddleNode)}var adMiddleNode=document.createElement("div");adMiddleNode.id="oe24billboardMiddle";adMiddleNode.classList.add("fullpageAdMiddle");adMiddleNode.style.marginTop=middleBoxTop;if(adMiddleType=="img"){adMiddleNode.innerHTML='<a href="'+adMiddleLink+'" target="_blank"><img src="'+adMiddleSrc+'" width="960" height="250" border="0"></a>'}else{adMiddleNode.innerHTML='<iframe src="'+adMiddleSrc+'" width="100%" height="100%" style="overflow: hidden;" scrolling="no"></iframe>'}
// build fullscreen-cinematic
oe24ad.fullscreen.createFullscreen();
// header add middle and top
var header=parent.document.getElementsByClassName("headerBox");if(typeof header[0]!="undefined"){header[0].parentNode.insertBefore(adTopNode,header[0]);header[0].parentNode.insertBefore(adMiddleNode,header[0].nextSibling)}
// var headerBox = parent.document.getElementsByClassName('headerBox');
// sticky-header
var headerContainer=parent.document.getElementsByClassName("headerNavContainer");if(typeof headerContainer[0]!=="undefined"){headerContainer[0].classList.add("headerNavCenterSticky")}window.parent.onscroll=function(){oe24ad.doublebridge.displayScroll()};
// send received message
var videoSource=document.querySelector("div#"+adPosition+" iframe");
// var videoSource = document.querySelector('#oe24videocinematicsource');
videoSource.contentWindow.transmitted=true},handleFullscreen:function(){var MiddleNodePlayer=jwplayer("adMiddleNodeVideo");MiddleNodePlayer.stop();var videoContainer=parent.document.getElementById("oe24billboardMiddleVideo");videoContainer.classList.add("fullpageAdHide");videoContainer.style.display="none";var middle=parent.document.getElementById("oe24billboardMiddle");middle.style.display="block";oe24ad.doublebridge.displayScroll()},displayScroll:function(){var middle=parent.document.getElementsByClassName("fullpageAdMiddle");var headerBox=parent.document.getElementsByClassName("headerNavContainer");if(typeof headerBox[0]!="undefined"&&typeof middle[0]!="undefined"){if(headerBox[0].classList.contains("stickyHeader")){middle[0].classList.add("fullpageAdHide")}else{middle[0].classList.remove("fullpageAdHide")}}}},fullscreen:{setPlay:function(){var MiddleNodePlayer=jwplayer("adMiddleNodeVideo");var button=parent.document.getElementsByClassName("fullpagePlay");if(MiddleNodePlayer.getState()=="playing"){MiddleNodePlayer.pause();button[0].classList.remove("fullpageButtonPause");button[0].classList.add("fullpageButtonPlay")}else{MiddleNodePlayer.play();button[0].classList.remove("fullpageButtonPlay");button[0].classList.add("fullpageButtonPause")}},setMute:function(){var MiddleNodePlayer=jwplayer("adMiddleNodeVideo");var button=parent.document.getElementsByClassName("fullpageMute");var mute=!MiddleNodePlayer.getMute();if(mute){button[0].classList.remove("fullpageButtonUnmute");button[0].classList.add("fullpageButtonMute")}else{button[0].classList.remove("fullpageButtonMute");button[0].classList.add("fullpageButtonUnmute")}MiddleNodePlayer.setMute(mute)},createFullscreen:function(){
// video
var MiddleNodePlayer,playerId="adMiddleNodeVideo",playerConfig={file:videoFullscreenSrc,type:"mp4",autostart:false,repeat:true,width:"100%",mute:false,controls:false,preload:"auto",flashplayer:"http://www.oe24.at/misc/jwplayer_8_1_11/jwplayer.flash.swf",key:"2FsrTep9OcXBJctufEe413UqWJsrr4d5rUgyi06J8Ki97VJ/"};MiddleNodePlayer=jwplayer(playerId);MiddleNodePlayer=MiddleNodePlayer.setup(playerConfig)},buildFullpageVideo:function(message){var pos=message.pos?message.pos:0;var middle=parent.document.getElementById("oe24billboardMiddle");var headerBox=parent.document.getElementsByClassName("headerBox");middle.style.display="none";var MiddleNodePlayer=jwplayer("adMiddleNodeVideo");if(pos>0)MiddleNodePlayer.seek(pos);MiddleNodePlayer.play();var middleContainerFull=parent.document.getElementById("oe24billboardMiddleVideo");middleContainerFull.style.display="block";parent.document.getElementById("adMiddleNodeClose").style.display="block"}},cinematic:{handleFullscreen:function(){var MiddleNodePlayer=jwplayer("adMiddleNodeVideo");MiddleNodePlayer.stop();var videoContainer=parent.document.getElementById("oe24billboardMiddleVideo");videoContainer.classList.add("fullpageAdHide");videoContainer.style.display="none";var middle=parent.document.getElementById("oe24billboardMiddle");middle.style.display="block";oe24ad.cinematic.displayCinematic()},displayCinematic:function(){var currentPosition=parent.document.body.scrollTop?parent.document.body.scrollTop:parent.document.documentElement.scrollTop;var middle=parent.document.getElementsByClassName("fullpageAdMiddle");var headerBox=parent.document.getElementsByClassName("headerBox");if(currentPosition>60){middle[0].classList.add("fullpageAdHide");headerBox[0].classList.add("fullpageAdNormal")}else{var video=parent.document.getElementById("oe24billboardMiddleVideo");if(video.style.display!="block"){if(currentPosition<=1){middle[0].classList.remove("fullpageAdHide");headerBox[0].classList.remove("fullpageAdNormal")}}}},buildCinematic:function(){var aBody=parent.document.body;aBody.classList.add("fullpageAds");aBody.classList.add("fullpageCinematic");
// fullsize-video
var adMiddleNodeFullSize=document.createElement("div");adMiddleNodeFullSize.id="oe24billboardMiddleVideo";adMiddleNodeFullSize.classList.add("fullpageVideo");adMiddleNodeFullSize.style.height="100%";adMiddleNodeFullSize.style.display="none";adMiddleNodeFullSize.innerHTML='<link rel="preload" as="video" href="'+videoFullscreenSrc+'">';adMiddleNodeFullSize.innerHTML+='<div id="adMiddleNodeVideoContainer" style="height: 100%;"><div id="adMiddleNodeVideo" style="height: 100%;"></div></div>';adMiddleNodeFullSize.innerHTML+='<div id="adMiddleNodeClose" style="display: none;">✕</div>';adMiddleNodeFullSize.innerHTML+='<div id="oe24cinematicplaybutton" class="fullpageCtrl fullpagePlay fullpageButtonPause"></div>';adMiddleNodeFullSize.innerHTML+='<div id="oe24cinematicmutebutton" class="fullpageCtrl fullpageMute fullpageButtonUnmute"></div>';aBody.appendChild(adMiddleNodeFullSize);var playButton=document.getElementById("oe24cinematicplaybutton");playButton.addEventListener("click",function(e){e.preventDefault();oe24ad.fullscreen.setPlay()});var muteButton=document.getElementById("oe24cinematicmutebutton");muteButton.addEventListener("click",function(e){e.preventDefault();oe24ad.fullscreen.setMute()});var close=document.getElementById("adMiddleNodeVideoContainer");close.addEventListener("click",function(e){e.preventDefault();oe24ad.cinematic.handleFullscreen()});var closeButton=document.getElementById("adMiddleNodeClose");closeButton.addEventListener("click",function(e){e.preventDefault();oe24ad.cinematic.handleFullscreen()});
// cinematic - middle
var adMiddleNode=document.createElement("div");adMiddleNode.id="oe24billboardMiddle";adMiddleNode.classList.add("fullpageAdMiddle");adMiddleNode.innerHTML='<iframe src="'+adMiddleSrc+'" width="100%" height="100%" style="overflow: hidden;" scrolling="no"></iframe>';aBody.appendChild(adMiddleNode);
// build fullscreen-cinematic
oe24ad.fullscreen.createFullscreen();var headerBox=parent.document.getElementsByClassName("headerBox");
// sticky-header
var headerContainer=parent.document.getElementsByClassName("headerNavContainer");if(typeof headerContainer[0]!=="undefined"){headerContainer[0].classList.add("headerNavCenterSticky")}window.onscroll=function(){oe24ad.cinematic.displayCinematic()};
// send received message
// var videoSource = document.getElementById(adPosition);
var videoSource=document.querySelector("div#"+adPosition+" iframe");videoSource.contentWindow.transmitted=true}}}})();
/*!
 * Slideshow.js
 */
// function Slideshow() {
// 	this.containerClass;
// 	this.slidePrefix;
// 	this.countSlides;
// 	this.currentSlide;
// 	this.autoplay=false;
// 	this.interval;
// 	this.slidePrev = function() {
// 		//prev Slide
// 		$(this.slidePrefix + this.currentSlide).hide();
// 		if (this.currentSlide == 1) {
// 			this.currentSlide=this.countSlides;
// 		} else {
// 			this.currentSlide--;
// 		}
// 		$(this.slidePrefix + this.currentSlide).show();
// 		if (typeof window['theVoting'] != "undefined") {
// 			window['theVoting'].gotoImage(this.currentSlide);
// 		}
// 	}
// 	this.slideNext = function() {
// 		//next Slide
// 		$(this.slidePrefix + this.currentSlide).hide();
// 		if (this.currentSlide == this.countSlides) {
// 			this.currentSlide=1;
// 		} else {
// 			this.currentSlide++;
// 		}
// 		$(this.slidePrefix + this.currentSlide).show();
// 		if (typeof window['theVoting'] != "undefined") {
// 			window['theVoting'].gotoImage(this.currentSlide);
// 		}
// 	}
// 	this.slideTo = function(picNr) {
// 		//slide to picNr
// 		$(this.slidePrefix + this.currentSlide).hide();
// 		this.currentSlide = picNr;
// 		$(this.slidePrefix + this.currentSlide).show();
// 		if (this.interval && this.interval != null) {
// 			window.clearInterval(this.interval);
// 			this.interval = null;
// 		}
// 		if (typeof window['theVoting'] != "undefined") {
// 			window['theVoting'].gotoImage(this.currentSlide);
// 		}
// 	}
// 	this.gotoImageVoting = function() {
// 		if (typeof window['theVoting'] != "undefined") {
// 			window['theVoting'].gotoImage(this.currentSlide);
// 		}
// 	}
// }
// Slideshow.prototype.setContainerClass = function(value) {
// 	this.containerClass = value;
// 	this.slidePrefix = '.' + this.containerClass + '-slide-';
// }
// Slideshow.prototype.setAutoplay = function(value) {
// 	this.autoplay = value;
// }
// Slideshow.prototype.init = function() {
// 	this.countSlides = $('.' + this.containerClass).children().length;
// 	var that=this;
// 	$('.' + this.containerClass).children().each(function(index) {
// 		$(this).addClass(that.slidePrefix.replace('.','') + (index + 1) );
// 	});
// 	$('.' + this.containerClass).children().not(this.slidePrefix + '1').hide();
// 	this.currentSlide=1;
// 	$('.' + this.containerClass).parent().children('.arrow').addClass(this.containerClass + '-nav');
// 	$('.' + this.containerClass + '-nav').click(function() {
// 		if ($(this).hasClass('arrowLeft')) {
// 			//previouse Slide
// 			that.slidePrev();
// 		} else {
// 			//next Slide
// 			that.slideNext();
// 		}
// 		if (that.autoplay && that.interval != null) {
// 			window.clearInterval(that.interval);
// 			that.interval=null;
// 		}
// 	});
// 	if (this.autoplay) {
// 		this.interval = setInterval(function() { that.slideNext(); }, 4000);
// 	}
// }
// if (typeof slideShows != "undefined") {
//     for (c=0; c<slideShows.length; c++)
//     {
// 		window['slideshow' + slideShows[c]] = new Slideshow();
// 		window['slideshow' + slideShows[c]].setContainerClass('slideshowPics-' + slideShows[c]);
// 		if ($('.article_thumbnails').length == 0 && false) {
// 			window['slideshow' + slideShows[c]].setAutoplay(true);
// 		}
// 		window['slideshow' + slideShows[c]].init();
//     }
// }
(function($){"use strict";$.fn.oe24slideShow=function(options){var moveSlide=function(slides,position){$(slides).removeClass("active");$(slides[position]).addClass("active");
// $(slides).fadeOut(300).removeClass('active');
// $(slides[position]).addClass('active').fadeIn(300);
voting(position)};var moveSlideDescription=function(descriptions,position){$(descriptions).removeClass("active");$(descriptions[position]).addClass("active")};var movePager=function(thumbnails,slideshowThumbnails,pages,position){$(slideshowThumbnails).removeClass("active");$(thumbnails[position]).parent().addClass("active");var pageIndex=$(thumbnails[position]).parent().index(".slideshowThumbnails");$(pages).removeClass("active");$(pages[pageIndex]).addClass("active")};var voting=function(position){if(typeof window["theVoting"]!="undefined"){window["theVoting"].gotoImage(position)}};var checkAndShowAd=function(slides,adObject){if(adObject.showAds===false){return true}adObject.pictureCounter++;if(adObject.pictureCounter===5){adObject.pictureCounter=0;$(slides).removeClass("active");adObject.adDiv.show();adObject.slideshowContainer.css({height:"600px",backgroundColor:"#e8e8e8"})}else{adObject.adDiv.hide();adObject.slideshowContainer.css({height:"auto",backgroundColor:"#ffffff"})}return adObject.pictureCounter===0?false:true};return this.each(function(i){var that=this;var position=$(that).find(".slide.active").index();
// ein object deswegen, damit ich den Zähler in einer Funktion modifizieren kann
var adObject={pictureCounter:1,adDiv:$(that).find(".slideAd"),slideshowContainer:$(that).find(".slideshowContainer"),showAds:options.showAds};that.slides=$(that).find(".slide");
// that.active = $(that).find('.slide.active');
that.descriptions=$(that).find(".slideDescription");
// that.descriptionActive = $(that).find('.slideDescription.active');
that.last=that.slides.length-1;that.arrows=$(that).find(".arrow");that.slideshowThumbnails=$(that).find(".slideshowThumbnails");that.thumbnails=$(that.slideshowThumbnails).find("a");that.pages=$(that).find(".slideshowPages a");$(that.arrows).click(function(e){e.preventDefault();
// if (checkAndShowAd(that.slides, adObject)) {
if($(this).hasClass("arrowNext")){position=position+1>that.last?0:position+=1}else{position=position-1<0?that.last:position-=1}moveSlide(that.slides,position);moveSlideDescription(that.descriptions,position);movePager(that.thumbnails,that.slideshowThumbnails,that.pages,position);
// }
});
// Thumbnails Pages
$(that.pages).click(function(e){var pageIndex=$(this).index();$(that.pages).removeClass("active");$(this).addClass("active");$(that.slideshowThumbnails).removeClass("active");$(that.slideshowThumbnails[pageIndex]).addClass("active");e.preventDefault()});
// Thumbnails
$(that.thumbnails).click(function(e){e.preventDefault();
// if (checkAndShowAd(that.slides, adObject)) {
position=$(that.slideshowThumbnails).find("a").index(this);moveSlide(that.slides,position);moveSlideDescription(that.descriptions,position);
// }
});
// Voting "init"
voting(0)})}})(jQuery);
// $('.slideshow').oe24slideShow();
$(document).ready(function(){$(".imageSlideShowWrapper").each(function(){var _=this;var imagesPerPage=$(this).data("images-per-page");var $bigSlider=$(this).find(".imageSlideShow");var $bigSliderCounter=$(this).find(".bigSliderCounter");var $bigSliderPrev=$(this).find(".arrowPrev");var $bigSliderNext=$(this).find(".arrowNext");var $thumbSlider=$(this).find(".imageSlideShowThumbs");$bigSlider.slick({slidesToShow:1,slidesToScroll:1,draggable:false,lazyLoad:"progressive",prevArrow:$bigSliderPrev,nextArrow:$bigSliderNext,onInit:function(){$bigSlider.find(".slide.hide").removeClass("hide");if(typeof window["theVoting"]!="undefined"){window["theVoting"].gotoImage(0)}else{window["initVoting"]=true}},onBeforeChange:function(slider,pos,nextPos){var nextItem=nextPos+1;if($thumbSlider.length>0){var thumbnailIndex=Math.floor(nextPos/imagesPerPage);$thumbSlider.slickGoTo(thumbnailIndex*imagesPerPage)}$bigSliderCounter.text(nextItem+" / "+slider.slideCount);if(typeof window["theVoting"]!="undefined"){window["theVoting"].gotoImage(nextPos)}}});if($thumbSlider.length>0){$thumbSlider.slick({infinite:false,draggable:false,arrows:false,slidesToShow:imagesPerPage,slidesToScroll:imagesPerPage,lazyLoad:"progressive",onBeforeChange:function(slider,pos,nextPos){var pageIndex=Math.floor(nextPos/imagesPerPage);$(_).find(".slideshowPages .active").removeClass("active");$(_).find(".slideshowPages a:eq("+pageIndex+")").addClass("active")}});$thumbSlider.find(".slideThumb").on("click",function(){$bigSlider.slickGoTo($(this).index())});$(this).find(".slideshowPages a").on("click",function(e){e.preventDefault();$(this).parent().find(".active").removeClass("active");$(this).addClass("active");$bigSlider.slickGoTo($(this).index()*imagesPerPage);$thumbSlider.slickGoTo($(this).index()*imagesPerPage)})}})});$(document).ready(function(){(function($){var useCaptcha=$(".slideshowVoting").data("usecaptcha");if(useCaptcha){SlideShowVotingCaptchaExpired()}var type=$(".slideshowVoting").data("type");if(type==4){var $leftArrow=$(".slideshowVoting .leftArrow");var $rightArrow=$(".slideshowVoting .rightArrow");$(".slideshowItemsContainer").slick({slidesToShow:1,slidesToScroll:1,draggable:false,lazyLoad:"progressive",prevArrow:$leftArrow,nextArrow:$rightArrow,onInit:function(){}})}$(".jsSlideshowVoting").on("click",function(event){event.preventDefault();var max=$(".slideshowItemsContainer").data("max");var classVoting=$(this).attr("class").split(" ")[1];$("."+classVoting).removeClass("selected");$(this).parent().siblings().find("a").removeClass("selected");$(this).addClass("selected");console.log("voting: "+$(".slideshowVoting .selected").length+"=="+max);if($(".slideshowVoting .selected").length==max){console.log("remodal");
// get the instance on the modal dialogue
var inst=$("[data-remodal-id=modal]").remodal();
// open window
inst.open()}});$(document).on("confirmation",".remodal",function(){console.log("confirmation");var arr=new Array;var id=$(".slideshowItemsContainer").data("id");var selectedList=$(".slideshowItemsContainer .selected");$.each(selectedList,function(index){arr.push($(this).parent().parent().data("id")+";"+$(this).attr("class").split(" ")[1])});var type=$(".slideshowVoting").data("type");if(type==4){var pictureId=$(".slideshowItemsContainer").find(".slick-active").data("id");arr.push(pictureId+";jsOption1")}var domain=$(".slideshowItemsContainer").data("domain");var voterData=new Array;var name=$("#slideShowVotingName").val();var tel=$("#slideShowVotingPhone").val();var mail=$("#slideShowVotingEmail").val();
//var url = 'http://' + domain + '.oe24.at/_slideShowVoting/' + id + '/' + arr.join('|');
var url="https://"+domain+"/_slideShowVoting/"+id+"/"+arr.join("|");if(name!=="Name"&&tel!=="Telefonnummer"&&mail!=="E-Mail"){url+="/"+name+"|"+tel+"|"+mail}console.log(url);var posting=$.get(url);posting.done(function(data){var json=$.parseJSON(data);for(var i in json){var span=$(".slideshowItemsContainer").find("[data-id='"+i+"'] .jsPoints").text(json[i])}});$(".jsSlideshowVoting").removeClass("selected");$(".jsSlideshowVoting").unbind("click");
// $('.voteButton').unbind('click');
var showGame=$(".slideshowItemsContainer").data("game");if(1==showGame){window.location=$(".slideshowItemsContainer").data("url")}else{document.location.hash="hitlistAnchor"}$(".votingResult").css("display","block")});$(document).on("cancellation",".remodal",function(){var selectedList=$(".slideshowItemsContainer .selected");selectedList.removeClass("selected");document.location.hash="hitlistAnchor"});$(".showResultButton").on("click",function(event){event.preventDefault();$(".votingResult").css("display","block")});$(".voteButton").on("click",function(e){e.preventDefault();var type=$(".slideshowVoting").data("type");var arr=Array();if(type==4){var pictureId=$(".slideshowItemsContainer").find(".slick-active").data("id");arr.push(pictureId+";jsOption1")}var domain=$(".slideshowItemsContainer").data("domain");var id=$(".slideshowItemsContainer").data("id");var url="http://"+domain+".oe24.at/_slideShowVoting/"+id+"/"+arr.join("|");var posting=$.get(url);posting.done(function(data){});var showGame=$(".slideshowItemsContainer").data("game");$(".voteButton").prop("disabled",true);$(".voteButton").addClass("disabled");if(1==showGame){window.location=$(".slideshowItemsContainer").data("url")}else{document.location.hash="hitlistAnchor"}})})(jQuery)});function SlideShowVotingCaptchaSuccess(response){$(".remodal-confirm").prop("disabled",false);$(".voteButton").prop("disabled",false)}function SlideShowVotingCaptchaExpired(){$(".remodal-confirm").prop("disabled",true);$(".voteButton").prop("disabled",true)}
/**
 * oe24Subnavigation für Relaunch 2014
 * @author Philipp Jarnig
 *
 * Klettert die Listelemente durch und zeigt die richtige Subliste an, welche ausgewählt wurde.
 */
/*!
 * oe24Subnavigation für Relaunch 2014
 * @author Philipp Jarnig
 *
 * Klettert die Listelemente durch und zeigt die richtige Subliste an, welche ausgewählt wurde.
 */var oe24SubnavfetchData=oe24SubnavfetchData||[[]];var oe24SubnavfetchDataUrl=oe24SubnavfetchDataUrl||[""];function oe24Subnav(aNode,sidebarClicked){if(typeof aNode=="undefined"){return}var url=null;fetchData=function(loadSidebar,aNode,subnavContainer){showData("load",subnavContainer);url=aNode.data("jsonurl");if(!url||url==null){url==""}if(url!=""){url=url+loadSidebar}var idx=jQuery.inArray(url,oe24SubnavfetchDataUrl);if(idx>=0){subnavContainer.data(url+loadSidebar,oe24SubnavfetchData[idx]);showData(oe24SubnavfetchData[idx],subnavContainer);return}$.ajax({url:url+"?jsonCallbackSubNav",jsonp:false,cache:true,jsonpCallback:"jsonCallbackSubNav",cache:"true",dataType:"jsonp"}).done(function(msg){oe24SubnavfetchData.push(msg);
// oe24SubnavfetchDataUrl.push(url); // alte buggy version
oe24SubnavfetchDataUrl.push(msg.jsonUrl);subnavContainer.data(url+loadSidebar,msg);showData(msg,subnavContainer)})};showData=function(content,subnavContainer){subNavContent=subnavContainer.find(".subnav_content").children();aTop1=subNavContent.nextAll().eq(0);aTop2=subNavContent.nextAll().eq(1);divMore=subNavContent.nextAll().eq(2).children();aMore1=divMore;aMore2=divMore.nextAll().eq(0);aMore3=divMore.nextAll().eq(1);if(typeof content[0]=="undefined"){subNavContent.parent().hide();subNavContent.parent().parent().css("height",40)}else{subNavContent.parent().show();subNavContent.parent().parent().css("height",260)}for(m=0;m<5;++m){var aClass=m<2?"aTop"+(m+1):"aMore"+(m-1);if(content=="load"||typeof content[m]=="undefined"){window[aClass].attr("href","#").addClass("empty");window[aClass].children().first().attr("src","/images/empty.gif");window[aClass].children().next().html("")}else{window[aClass].attr("href",content[m].href).removeClass("empty");window[aClass].children().first().attr("src",content[m].image);window[aClass].children().next().html(content[m].caption)}}};var noStory="Zur Zeit ist keine aktuelle Meldung eingelangt.";if(!sidebarClicked){
// var subnavItem = $(aNode.parentNode);
var subnavContentId="#"+$(aNode.parentNode).attr("id")+"_content";var subnavContainer=$(aNode.parentNode.parentNode.parentNode);subnavContainer.data("lastSubnavClicked",subnavContentId);
// Timestamp überprüfen, wenn Element vorhanden und wenn nicht aktuell, daten nachladen.
// if (subnavContainer.find(subnavContentId).length > 0) {
// var itemTimestamp = subnavItem.attr('timestamp');
// var url = aNode.data('jsonurl');
// // Timestamp abholen für aktuelle Liste
// $.ajax ({
// 	url: url + "timeStamp",
// cache: false,
// 	dataType: 'json'
// }).done (function (msg) {
// wenn neue Zeit jünger als alte zeit, dann Daten neu laden, sonst das div anzeigen
// if (msg.timestamp <= itemTimestamp) {
// 	showData( subnavContainer.data(aNode.data('jsonurl') + 'newest'), subnavContainer );
// } else {
// subnavItem.attr('timestamp', msg.timestamp);
// if (typeof subnavContainer.data(aNode.data('jsonurl') + 'newest') != "undefined") {
// 	showData( subnavContainer.data(aNode.data('jsonurl') + 'newest'), subnavContainer );
// } else {
// 	fetchData('newest', aNode, subnavContainer);
// }
// }
// })
// 	return;
// }
// Inhalte nachladen, die benötigt werden anhand subnavItem.attr('id')
if(typeof subnavContainer.data($(aNode).data("jsonurl")+"newest")!="undefined"){showData(subnavContainer.data($(aNode).data("jsonurl")+"newest"),subnavContainer)}else{fetchData("newest",$(aNode),subnavContainer)}return}else{
// var subnavItem = $(aNode.parentNode.parentNode);
var subnavContainer=$(aNode.parentNode.parentNode.parentNode);var subnavContentId=subnavContainer.data("lastSubnavClicked");if(typeof subnavContentId=="undefined"){subnavContentId="#subnav_1_content"}var sidebar=$(aNode).attr("class").substr(8,1)=="1"?"newest":"top";var aNode=subnavContainer.find(subnavContentId.substr(0,9)).children()[0];if(typeof aNode=="undefined"||$(aNode).data("jsonurl")==""){return}if(typeof subnavContainer.data($(aNode).data("jsonurl")+sidebar)!="undefined"){showData(subnavContainer.data($(aNode).data("jsonurl")+sidebar),subnavContainer)}else{fetchData(sidebar,$(aNode),subnavContainer)}}}$(function(){"use strict";var delay=200,setTimeoutConst;$(".nav_main_items .subnav_container .subnav_menu li").on("mouseover","a",function(){var subnav_container_menu=this;setTimeoutConst=setTimeout(function(){$(subnav_container_menu.parentNode.parentNode).children().removeClass("active");// allen li-Nodes die Klasse 'active' löschen.
$(subnav_container_menu.parentNode).addClass("active");// über dem a-Node wird das li-Node mit der Klasse 'active' befüllt.
$(subnav_container_menu.parentNode.parentNode).next().find(".sidebar a").removeClass("active");$(subnav_container_menu.parentNode.parentNode).next().find(".sidebar a:first").addClass("active");oe24Subnav(subnav_container_menu,false)},delay)}).on("mouseout","a",function(){clearTimeout(setTimeoutConst)});$(".nav_main_items .subnav_container").on("mouseover",".sidebar a",function(){var subnav_container_sidebar=this;setTimeoutConst=setTimeout(function(){$(subnav_container_sidebar.parentNode).children().removeClass("active");// a-Nodes die Klasse 'active' löschen.
$(subnav_container_sidebar).addClass("active");// a-Node mit Klasse 'active' befüllen.
oe24Subnav(subnav_container_sidebar,true)},delay)}).on("mouseout",".sidebar a",function(){clearTimeout(setTimeoutConst)});$(".nav_main_items .subnav_container").each(function(){
//oe24Subnav($(this).find('.subnav_menu li a')[0], false);
});$(".nav_main_items").on("mouseover",">li>a",function(){var subnav_container_item=this;setTimeoutConst=setTimeout(function(){$(subnav_container_item).next().find(".subnav_menu li").removeClass("active");// allen li-Nodes die Klasse 'active' löschen.
$(subnav_container_item).next().find(".subnav_menu li:first").addClass("active");// über dem a-Node wird das li-Node mit der Klasse 'active' befüllt.
$(subnav_container_item).next().find(".sidebar a").removeClass("active");$(subnav_container_item).next().find(".sidebar a:first").addClass("active");if(typeof $(subnav_container_item).next().find(".subnav_menu li a")[0]!="undefined"){oe24Subnav($(subnav_container_item).next().find(".subnav_menu li a")[0],false)}},delay)}).on("mouseout",">li>a",function(){clearTimeout(setTimeoutConst)})});(function($){"use strict";$.fn.oe24textSlideShow=function(){var gotoPage=function(box,position,pages){var textPosition=$(box).find(".textSlideshowHeadline .textSlideshowPosition");
// if(navigator.userAgent.toLowerCase().indexOf('chrome') > -1){
//     window.getSelection().setBaseAndExtent(textPosition,0,textPosition,1);
// }
var currentItem=$(box).find(".textSlideshowContentArea .tSsEntry");currentItem.removeClass("visible").addClass("hidden");var nextItem=$(box).find(".textSlideshowContentArea .tSsEntry:eq("+position+")");nextItem.removeClass("hidden").addClass("visible");$(box).find(".textSlideshowHeadline .textSlideshowPosition").html(position+1+"/"+pages)};return this.each(function(i){var that=this;var position=$(that).find(".tSsEntry.visible").index();var pages=$(that).find(".textSlideshowContentArea .tSsEntry").length;that.last=pages-1;that.arrows=$(that).find(".arrow");$(that.arrows).click(function(e){e.preventDefault();if($(this).hasClass("tSsRightBtn")){position=position+1>that.last?0:position+=1}else{position=position-1<0?that.last:position-=1}gotoPage(that,position,pages)})})}})(jQuery);$(".textSlideshow").oe24textSlideShow();
/*
 * Viewport - jQuery selectors for finding elements in viewport
 *
 * Copyright (c) 2008-2009 Mika Tuupola
 *
 * Licensed under the MIT license:
 *   http://www.opensource.org/licenses/mit-license.php
 *
 * Project home:
 *  http://www.appelsiini.net/projects/viewport
 *
 */
(function($){$.belowthefold=function(element,settings){var fold=$(window).height()+$(window).scrollTop();return fold<=$(element).offset().top-settings.threshold};$.abovethetop=function(element,settings){var top=$(window).scrollTop();return top>=$(element).offset().top+$(element).height()-settings.threshold};$.rightofscreen=function(element,settings){var fold=$(window).width()+$(window).scrollLeft();return fold<=$(element).offset().left-settings.threshold};$.leftofscreen=function(element,settings){var left=$(window).scrollLeft();return left>=$(element).offset().left+$(element).width()-settings.threshold};$.inviewport=function(element,settings){return!$.rightofscreen(element,settings)&&!$.leftofscreen(element,settings)&&!$.belowthefold(element,settings)&&!$.abovethetop(element,settings)};$.extend($.expr[":"],{"below-the-fold":function(a,i,m){return $.belowthefold(a,{threshold:0})},"above-the-top":function(a,i,m){return $.abovethetop(a,{threshold:0})},"left-of-screen":function(a,i,m){return $.leftofscreen(a,{threshold:0})},"right-of-screen":function(a,i,m){return $.rightofscreen(a,{threshold:0})},"in-viewport":function(a,i,m){return $.inviewport(a,{threshold:0})}})})(jQuery);function slideshowVoting(param){var self=this;
/**
    * goto a image
    */this.gotoImage=function(image){this.currentImage=image;var theUrl="votePanel.do?key="+self.param.voteKey+"&template="+self.param.template+"&imgUrl="+self.param.imgUrls[this.currentImage];$("#votingFrame").attr("src",theUrl)};this.showResult=function(){document.location.href=href+"&result=true"};this.currentImage=1;this.param=param}function checkVotingFrameSize(){var theframe=document.getElementById("vresultframe");var theBody=theframe.contentWindow.document.body;var contentHeight=theBody.offsetHeight+30;var iframeHeight=theframe.offsetHeight;if(iframeHeight<contentHeight){theframe.style.height=contentHeight+"px"}}$(document).ready(function(){if(typeof votingBoxes!="undefined"){for(s=0;s<votingBoxes.length;s++){window["theVoting"]=new slideshowVoting({imgUrls:votingBoxes[s]["imgUrls"],voteKey:votingBoxes[s]["voteKey"],template:votingBoxes[s]["template"]})}}if(window["initVoting"]==true&&typeof window["theVoting"]!="undefined"){window["theVoting"].gotoImage(0)}});(function($,win,doc,undefined){"use strict";function WeatherTicker(element,opts){this.element=$(element);this.defaults={interval:2e3};this.opts=$.extend(this.defaults,opts);this.init()}WeatherTicker.prototype.init=function(){var self=this;this.intervalID=null;this.elementTop=0;this.elementHeight=this.element.height();this.movement=this.element.children().height();this.element.on("mouseenter",function(e){self.stop()});this.element.on("mouseleave",function(e){self.start()});this.start()};WeatherTicker.prototype.start=function(){var self=this;self.stop();self.intervalID=setInterval(function(){self.elementTop-=self.movement;if(self.elementTop<=self.elementHeight*-1){self.elementTop=0}self.element.css("top",self.elementTop+"px")},self.defaults.interval)};WeatherTicker.prototype.stop=function(){clearInterval(this.intervalID)};$.fn.weatherTicker=function(opts){return this.each(function(){new WeatherTicker(this,opts)})}})(jQuery,window,document);$(".row .breakingNewsWeather .weatherTicker ul").weatherTicker({interval:1600});$(document).ready(function(){$(".weatherNavi a:not(.weatherAtLink)").click(function(e){var weatherBox=$(this).parents(".weatherBox");var dataType=$(this).data("type");e.preventDefault();weatherBox.find(".weatherNavi a").removeClass("active");$(this).addClass("active");weatherBox.find(".weatherMap .location").each(function(){$(this).find(".wetterIcon img").attr("src","http://www.wetter.at/wetter_public/images/icons/clouds/60x60/icon_"+$(this).find(".wetterIcon").data(dataType)+".png");$(this).find(".wetterTemperature").html($(this).find(".wetterTemperature").data(dataType)+"&deg;")});weatherBox.find(".weatherText p").html(weatherBox.find(".weatherText p").data(dataType))})});(function(iom){function oewaCall(e){try{iom.c(oewa_data,1)}catch(e){console&&console.info&&console.info(e)}}const oewaLinks=document.querySelectorAll(".js-oewaLink");for(var i=oewaLinks.length-1;i>=0;i--){oewaLinks[i].addEventListener("click",function(event){oewaCall(event);if(typeof oewaCall2023==="function"){oewaCall2023()}});oewaLinks[i].addEventListener("touchstart",function(event){oewaCall(event);if(typeof oewaCall2023==="function"){oewaCall2023()}},{passive:true})}if(typeof jQuery!="undefined"){$(".js-oewaContainer").on("click",".js-oewaDynLink",function(e){oewaCall(e);if(typeof oewaCall2023==="function"){oewaCall2023()}})}})(window.iom);$(document).ready(function(){function showContentScrollBox(){$(this).removeClass("js-invokeOnce");$(this).slick({slidesToShow:3,slidesToScroll:1,draggable:false,prevArrow:$(this).parent().find(".leftArrow"),nextArrow:$(this).parent().find(".rightArrow"),lazyLoad:"ondemand",onInit:function(){this.$slider.parents(".oe2016contentScrollBox").css("display","block")}})}$(".oe2016contentScrollBox:in-viewport .contentScrollBoxBody.js-invokeOnce").each(showContentScrollBox);$(window).scroll(function(){$(".oe2016contentScrollBox:in-viewport .contentScrollBoxBody.js-invokeOnce").each(showContentScrollBox)})});
// JQuery Plugin to handle OesterreichTabbedBox clicks.
// Plugin documentation as follows:
// http://debuggable.com/posts/how-to-write-jquery-plugins:4f72ab2e-7310-4a74-817a-0a04cbdd56cb
(function($,doc,win){"use strict";function OesterreichTabbedBox(el,opts){this.el=$(el);this.opts=opts;this.tabbedBoxNav=this.el.find(".tabbedBoxNav");this.currentActive=this.tabbedBoxNav.find(".active");this.ajaxLoader=this.el.find(".ajaxLoader");this.init()}OesterreichTabbedBox.prototype.init=function(){var self=this;function handleClick(event){var url=$(this).data("link");var posting=$.post(url);event.preventDefault();self.ajaxLoader.show();self.currentActive.removeClass("active");$(this).addClass("active");self.currentActive=$(this);posting.done(function(data){var result=jQuery.parseJSON(data);$(result).each(function(index){$("#oesterreichTabbedBox .js-oesterreichBoxAjaxTarget"+index+" .articleLink").attr("href",this.url);$("#oesterreichTabbedBox .js-oesterreichBoxAjaxTarget"+index+" .image").attr("src",this.imageUrl);$("#oesterreichTabbedBox .js-oesterreichBoxAjaxTarget"+index+" .story_pretitle").text(this.preTitle);$("#oesterreichTabbedBox .js-oesterreichBoxAjaxTarget"+index+" .story_pagetitle").text(this.title);$("#oesterreichTabbedBox .js-oesterreichBoxAjaxTarget"+index+" .story_leadtext").text(this.leadText)});self.ajaxLoader.hide()})}self.el.find(".js-countryLink").on("click",handleClick)};$.fn.oeTabbedBox=function(opts){return this.each(function(){new OesterreichTabbedBox(this,opts)})}})(jQuery,document,window);$("#oesterreichTabbedBox").oeTabbedBox({});
// $('#oesterreichTabbedBox .active').click();
(function($,jwplayer){"use strict";function RadioPlayer(el){
// jQuery Objects
this.$el=$(el);
// this.$headerLogoButton = this.$el.find('.js-radioPlayerLogoButton');
this.$coverButton=this.$el.find(".js-radioPlayerCoverWrapper");this.$iconPlayPause=this.$el.find(".iconPlayPause");this.$radioStream=this.$el.find(".js-radioStream");this.$interpretNow=this.$el.find(".radioPlayerNowInterpret");this.$titleNow=this.$el.find(".radioPlayerNowTitle");this.$interpretNext=this.$el.find(".radioPlayerNextInterpret");this.$titleNext=this.$el.find(".radioPlayerNextTitle");this.$coverImage=this.$el.find(".radioPlayerCoverImage");this.$coverImageFallback="";this.$coverImageEmpty="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
// Variables
this.radioStreamId=this.$radioStream.attr("id");this.player=false;this.playlistInterval=3e4;this.playlistIntervalId=false;
// Data-Variables
this.isPopup=this.$el.data("is-popup");this.radioStation=this.$el.data("radio-station");this.ftpFolder=this.radioStation=="wien"?"wien":"vbg";
// Initialising
this.init();this.addEventListeners()}RadioPlayer.prototype.initJWPlayer=function(){var autoplay=true;if(false==this.isPopup){autoplay=false;return}if(typeof this.streamUrl==="undefined"){return}if(typeof jwplayer==="undefined"){return}this.player=jwplayer(this.radioStreamId).setup({
// 'flashplayer': '/v7.2.2/jwplayer.flash.swf',
flashplayer:"/v8.1.11/jwplayer.flash.swf",key:"2FsrTep9OcXBJctufEe413UqWJsrr4d5rUgyi06J8Ki97VJ/",file:this.streamUrl,type:"mp3",autostart:autoplay,
// 'primary': "flash",
width:0,height:0});this.player.setVolume(100)};RadioPlayer.prototype.init=function(){var self=this;switch(this.radioStation){case"wien":this.playlistUrl="/_getPlaylist/wien/playlist.json";this.streamUrl="https://frontend.streamonkey.net/antwien-live?aggregator=website";this.$coverImageFallback="/images/rl2014/logo/cover_radiooe24.jpg";break;case"salzburg":this.playlistUrl="/_getPlaylist/salzburg/playlist.json";this.streamUrl="https://frontend.streamonkey.net/antsalzburg-live?aggregator=website";this.$coverImageFallback="/images/rl2014/logo/cover_antennesalzburg.jpg";break;case"tirol":this.playlistUrl="/_getPlaylist/tirol/playlist.json";this.streamUrl="https://frontend.streamonkey.net/anttirol-live?aggregator=website";this.$coverImageFallback="/images/rl2014/logo/cover_antennetirol.jpg";break;case"oesterreich":this.playlistUrl="/_getPlaylist/oesterreich/playlist.json";this.streamUrl="https://frontend.streamonkey.net/antoesterreich-live?aggregator=website";
// this.$coverImageFallback = '/images/rl2014/logo/cover_antennesalzburg.jpg'
break;default:break}this.playlistIntervalId=window.setInterval(function(){self.updatePlaylist()},this.playlistInterval);this.initJWPlayer()};RadioPlayer.prototype.addEventListeners=function(){var self=this;
// this.$headerLogoButton.on('click', function(e) {
//     e.preventDefault();
//     if (false == self.isPopup) {
//         // self.openPopup($(this).attr('href'));
//         return;
//     }
//     self.togglePlayPause();
// });
this.$coverButton.on("click",function(e){e.preventDefault();if(false==self.isPopup){self.openPopup($(this).attr("href"));return}self.togglePlayPause()})};RadioPlayer.prototype.openPopup=function(href){var boxHeight=this.$el.outerHeight()+10;window.open(href,"oe24playerwin","width=330,height="+boxHeight)};RadioPlayer.prototype.togglePlayPause=function(){if(false===this.player){return}var playerState=this.$iconPlayPause.hasClass("icon_play")?"playing":"paused";this.$iconPlayPause.removeClass("icon_play");this.$iconPlayPause.removeClass("icon_pause");this.player.play();// toggle between pause and play
if("playing"===playerState){this.$iconPlayPause.addClass("icon_pause")}else{this.$iconPlayPause.addClass("icon_play")}}
// Load new/next Title and Cover;
RadioPlayer.prototype.updatePlaylist=function(){var self=this;if(typeof this.playlistUrl==="undefined"){window.clearInterval(this.playlistIntervalId);return}$.getJSON(this.playlistUrl,function(data){var trackNow=data.tracks[0];var trackNext=data.tracks[1];self.$interpretNow.text(trackNow.artist);self.$titleNow.text(trackNow.title);self.$interpretNext.text(trackNext.artist);self.$titleNext.text(trackNext.title);$.ajax({url:"/_checkCover/"+self.ftpFolder+"/"+trackNow.track_id+"/cover.jpg"}).done(function(data){var imageSet=data;if(self.$coverImageEmpty==data){
// no image get fallbackimage
var imageSet=self.$coverImageFallback.length?self.$coverImageFallback:data}self.$coverImage.attr("src",imageSet)}).fail(function(data){
// fallback-cover img if available
if(self.$coverImageFallback.length){self.$coverImage.attr("src",self.$coverImageFallback)}})})};$.fn.radioPlayer=function(){return this.each(function(){new RadioPlayer(this)})}})(jQuery,jwplayer);$(document).ready(function(){$(".radioPlayer").radioPlayer()});$(document).ready(function(){$("#electionSearch .electionSearchInput").autoComplete({minChars:1,source:function(term,suggest){term=term.toLowerCase();var choices=globalElectionSearchData;var matches=[];$.each(choices,function(index,value){if(value.toLowerCase().indexOf(term)>=0){matches.push(value)}});suggest(matches)},renderItem:function(item,search){search=search.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var re=new RegExp("("+search.split(" ").join("|")+")","gi");return'<div class="autocomplete-suggestion" data-val="'+item+'">'+item.replace(re,"<b>$1</b>")+"</div>"},onSelect:function(e,term,item){var dataVal=$(item).data("val").toLowerCase();$.each(globalElectionSearchData,function(index,value){if(value.toLowerCase()===dataVal){var url=$("#electionSearch .electionSearchInput").data("entity-url")+index;$("#electionSearch .electionSearchInput").data("url",url)}})}});$(".electionSearchForm").on("submit",function(e){e.preventDefault();var url=$("#electionSearch .electionSearchInput").data("url");var myWindow=window.open(url,"_blank")})});$(document).ready(function(){$(".apaElectionSearch .apaElectionSearchInput").autoComplete({minChars:1,source:function(term,suggest){term=term.toLowerCase();var choices=globalApaGemeindeListe;var matches=[];$.each(choices,function(index,value){if(value.toLowerCase().indexOf(term)>=0){matches.push(value)}});matches.sort();suggest(matches)},renderItem:function(item,search){search=search.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var re=new RegExp("("+search.split(" ").join("|")+")","gi");return'<div class="autocomplete-suggestion" data-val="'+item+'">'+item.replace(re,"<b>$1</b>")+"</div>"},onSelect:function(e,term,item){var dataVal=$(item).data("val").toLowerCase();$.each(globalApaGemeindeListe,function(index,value){if(value.toLowerCase()===dataVal){var url=$(".apaElectionSearch .apaElectionSearchInput").data("entity-url")+index;$(".apaElectionSearch .apaElectionSearchInput").data("url",url)}})}});$(".apaElectionSearchForm").on("submit",function(e){e.preventDefault();var value=$(".apaElectionSearch .apaElectionSearchInput").val();value=$.trim(value+"");if(""!==value){var url=$(".apaElectionSearch .apaElectionSearchInput").data("url");var myWindow=window.open(url,"_blank")}})});(function($){function Oe24tvTopVideoBox(element,options){var $playerDiv=$(element).find(options.playerClass);var columnName=$(element).data("column-name");var playlistObject={box:element,columnName:columnName,clipsSelector:".js-topVideoBoxSmallClip"};
// calls Philipps jwPlayer-Skript.
$playerDiv.jwPlayer(playlistObject)}$.fn.oe24tvTopVideoBox=function(options){return this.each(function(){new Oe24tvTopVideoBox(this,options)})}})(jQuery);$(document).ready(function(){$(".oe24tvTopVideoBox").oe24tvTopVideoBox({playerClass:".js-oe24tvTopVideoBoxPlayer"})});(function($){
// function Oe24tvTopVideoBox(element, options) {
//     var $playerDiv = $(element).find(options.playerClass);
//     var columnName = $(element).data('column-name');
//     var playlistObject = {
//         'box': element,
//         'columnName': columnName,
//         'clipsSelector': '.js-topVideoBoxSmallClip'
//     }
//     // calls Philipps jwPlayer-Skript.
//     $playerDiv.jwPlayer(playlistObject);
// }
// $.fn.oe24tvTopVideoBox = function(options) {
//     return this.each(function() {
//         new Oe24tvTopVideoBox(this, options);
//     });
// };
// // bottom video-layer
// $(document).ready(function () {
//     if ( $( ".oe24tvTopVideoLayer" ).length ) {
//         $('.oe24tvTopVideoLayer').oe24tvTopVideoBox({
//             'playerClass' : '.js-oe24tvTopVideoBoxPlayer'
//         });
//         // close layer
//         $('.oe24tvTopVideoLayer .videoLayerClose').click(function(e) {
//           $('.oe24tvTopVideoLayer').removeClass('tvLayerStart').addClass('tvLayerEnd');
//         });
//         // open layer
//         $('.oe24tvTopVideoLayer .videoLayerUp').click(function(e) {
//           $('.oe24tvTopVideoLayer').removeClass('tvLayerEnd').addClass('tvLayerStart');
//         });
//         // start layer - nur wenn nicht gravity Werbung ausgespielt wird
//         setTimeout(function(){
//             // if(!$('body').hasClass('withGravityAd')){
//                 $('.oe24tvTopVideoLayer').removeClass('tvLayerEnd').addClass('tvLayerStart');
//             // }
//         }, 3000);
//     }
// });
$(document).ready(function(){setTimeout(function(){
// if(!$('body').hasClass('withGravityAd')){
function Oe24tvTopVideoBox(element,options){var $playerDiv=$(element).find(options.playerClass);var columnName=$(element).data("column-name");var playlistObject={box:element,columnName:columnName,clipsSelector:".js-topVideoBoxSmallClip"};
// calls Philipps jwPlayer-Skript.
$playerDiv.jwPlayer(playlistObject)}$.fn.oe24tvTopVideoBox=function(options){return this.each(function(){new Oe24tvTopVideoBox(this,options)})};
// bottom video-layer
if($(".oe24tvTopVideoLayer").length){$(".oe24tvTopVideoLayer").oe24tvTopVideoBox({playerClass:".js-oe24tvTopVideoBoxPlayer"});
// close layer
$(".oe24tvTopVideoLayer .videoLayerClose").click(function(e){$(".oe24tvTopVideoLayer").removeClass("tvLayerStart").addClass("tvLayerEnd")});
// open layer
$(".oe24tvTopVideoLayer .videoLayerUp").click(function(e){$(".oe24tvTopVideoLayer").removeClass("tvLayerEnd").addClass("tvLayerStart")});
// start layer - nur wenn nicht gravity Werbung ausgespielt wird
// if(!$('body').hasClass('withGravityAd')){
$(".oe24tvTopVideoLayer").removeClass("tvLayerEnd").addClass("tvLayerStart");
// }
}
// }
},2500)})})(jQuery);(function($){"use strict";function Infinite(el,options){this.el=$(el);this.defaults={
// Ueber diese Variable kann die Scroll-Geschwindigkeit gesteuert werden (ca. pixel/seconds)
// Hoeher Wert -> schneller und umgekehrt
// speed: 300,
speed:200,animationName:"infiniteRun",animationTimingFunction:"linear",animationIterationCount:"infinite",
// animationIterationCount: '0',
// animationDuration: '45s',
animationDelay:"0s"};var meta=this.el.data("infinite-options");this.options=$.extend(this.defaults,options,meta);this.init()}Infinite.prototype.init=function(){var elementWidth=this.el.outerWidth(true);var infiniteItemWidth=0;var infiniteWrapperWidth=0;var infiniteWrapper;var infiniteItems;
// -------------
this.el.wrapInner('<div class="infiniteWrapper"></div>');infiniteWrapper=this.el.children();infiniteItems=infiniteWrapper.children();
// -------------
// Zwecks Test
// this.stylesItem(infiniteWrapper);
// -------------
infiniteItems.each(function(){
// Wichtig! Ohne der nachfolgenden Zeile wird als Elementbreite die "sichtbare" Breite
// des Elements, spricht die Breite des Containers zurueckgeliefert
$(this).css("white-space","nowrap");$(this).addClass("infiniteItem");infiniteItemWidth=$(this).outerWidth(true);infiniteWrapperWidth+=infiniteItemWidth});
// -------------
infiniteItems.clone(true,true).appendTo(infiniteWrapper);
// -------------
this.stylesWrapper(infiniteWrapper,infiniteWrapperWidth,elementWidth);this.eventsWrapper(infiniteWrapper);this.keyframe(infiniteWrapperWidth);
// -------------
};Infinite.prototype.stylesWrapper=function(infiniteWrapper,infiniteWrapperWidth,elementWidth){var currentWidth=infiniteWrapperWidth+elementWidth+(infiniteWrapperWidth-elementWidth)+1,animationDuration=parseInt(currentWidth/this.options.speed,10)+"s";
// console.log(currentWidth, animationDuration);
infiniteWrapper.css({width:currentWidth,transform:"translate3d(0, 0, 0)",
// 'animation': 'infiniteRun 10s linear infinite',
"animation-name":this.options.animationName,
// 'animation-duration': this.options.animationDuration,
"animation-duration":animationDuration,"animation-timing-function":this.options.animationTimingFunction,"animation-iteration-count":this.options.animationIterationCount,"animation-delay":this.options.animationDelay})};Infinite.prototype.eventsWrapper=function(infiniteWrapper){infiniteWrapper.hover(function(){$(this).css("animation-play-state","paused","cursor","pointer")},function(){$(this).css("animation-play-state","running","cursor","normal")})};Infinite.prototype.keyframe=function(infiniteWrapperWidth){
// http://stackoverflow.com/questions/5105530/programmatically-changing-webkit-transformation-values-in-animation-rules
// https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/insertRule
var style=document.head.appendChild(document.createElement("style"));var rule="infiniteRun { 100%  { transform: translateX(-"+infiniteWrapperWidth+"px); } }";if(CSSRule.KEYFRAMES_RULE){// W3C
style.sheet.insertRule("@keyframes"+" "+rule,0)}else if(CSSRule.WEBKIT_KEYFRAMES_RULE){// WebKit
style.sheet.insertRule("@-webkit-keyframes"+" "+rule,0)}else{console.log("Can't insert keyframes rule")}};Infinite.prototype.stylesItem=function(infiniteWrapper){var firstItem=infiniteWrapper.children(":first").addClass("infiniteFirstItem");var lastItem=infiniteWrapper.children(":last").addClass("infiniteLastItem");firstItem.css("background-color","#f00");lastItem.css("background-color","#00f")};$.fn.infinite=function(options){return this.each(function(){new Infinite(this,options)})}})(jQuery);$(document).ready(function(){$(".infiniteScroller").infinite()});
// Laufzeit von 05.09.2016 - 05.10.2016, siehe DAILY-600
function Campaign_A1Sitebar_2016_09_05(){
// var iframe = document.getElementById('ad_frame'); // replace ad_frame
// var iframe = document.getElementById('Skyscraper1').firstChild.firstChild;
var iframe=document.getElementById("adv_sitebar_a1");// replace ad_frame
(function(){var lastTime=0;var vendors=["ms","moz","webkit","o"];for(var x=0;x<vendors.length&&!window.requestAnimationFrame;++x){window.requestAnimationFrame=window[vendors[x]+"RequestAnimationFrame"];window.cancelAnimationFrame=window[vendors[x]+"CancelAnimationFrame"]||window[vendors[x]+"CancelRequestAnimationFrame"]}if(!window.requestAnimationFrame)window.requestAnimationFrame=function(callback,element){var currTime=(new Date).getTime();var timeToCall=Math.max(0,16-(currTime-lastTime));var id=window.setTimeout(function(){callback(currTime+timeToCall)},timeToCall);lastTime=currTime+timeToCall;return id};if(!window.cancelAnimationFrame)window.cancelAnimationFrame=function(id){clearTimeout(id)}})();var oldData;function update(){var data={scrollTop:window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,scrollHeight:document.body.scrollHeight,windowHeight:window.innerHeight};if(oldData&&data.scrollTop===oldData.scrollTop&&data.scrollHeight===oldData.scrollHeight&&data.windowHeight===oldData.windowHeight){requestAnimationFrame(update);return}iframe.contentWindow.postMessage({action:"scrollUpdate",data:data},"*");oldData=data;requestAnimationFrame(update)}window.addEventListener("message",function onMessage(e){if(e.data.action=="iframeLoaded"){requestAnimationFrame(update)}})}
/*!
 * The Final Countdown for jQuery v2.2.0 (http://hilios.github.io/jQuery.countdown/)
 * Copyright (c) 2016 Edson Hilios
 * 
 * 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.
 */
(function(factory){"use strict";if(typeof define==="function"&&define.amd){define(["jquery"],factory)}else{factory(jQuery)}})(function($){"use strict";var instances=[],matchers=[],defaultOptions={precision:100,elapse:false,defer:false};matchers.push(/^[0-9]*$/.source);matchers.push(/([0-9]{1,2}\/){2}[0-9]{4}( [0-9]{1,2}(:[0-9]{2}){2})?/.source);matchers.push(/[0-9]{4}([\/\-][0-9]{1,2}){2}( [0-9]{1,2}(:[0-9]{2}){2})?/.source);matchers=new RegExp(matchers.join("|"));function parseDateString(dateString){if(dateString instanceof Date){return dateString}if(String(dateString).match(matchers)){if(String(dateString).match(/^[0-9]*$/)){dateString=Number(dateString)}if(String(dateString).match(/\-/)){dateString=String(dateString).replace(/\-/g,"/")}return new Date(dateString)}else{throw new Error("Couldn't cast `"+dateString+"` to a date object.")}}var DIRECTIVE_KEY_MAP={Y:"years",m:"months",n:"daysToMonth",d:"daysToWeek",w:"weeks",W:"weeksToMonth",H:"hours",M:"minutes",S:"seconds",D:"totalDays",I:"totalHours",N:"totalMinutes",T:"totalSeconds"};function escapedRegExp(str){var sanitize=str.toString().replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1");return new RegExp(sanitize)}function strftime(offsetObject){return function(format){var directives=format.match(/%(-|!)?[A-Z]{1}(:[^;]+;)?/gi);if(directives){for(var i=0,len=directives.length;i<len;++i){var directive=directives[i].match(/%(-|!)?([a-zA-Z]{1})(:[^;]+;)?/),regexp=escapedRegExp(directive[0]),modifier=directive[1]||"",plural=directive[3]||"",value=null;directive=directive[2];if(DIRECTIVE_KEY_MAP.hasOwnProperty(directive)){value=DIRECTIVE_KEY_MAP[directive];value=Number(offsetObject[value])}if(value!==null){if(modifier==="!"){value=pluralize(plural,value)}if(modifier===""){if(value<10){value="0"+value.toString()}}format=format.replace(regexp,value.toString())}}}format=format.replace(/%%/,"%");return format}}function pluralize(format,count){var plural="s",singular="";if(format){format=format.replace(/(:|;|\s)/gi,"").split(/\,/);if(format.length===1){plural=format[0]}else{singular=format[0];plural=format[1]}}if(Math.abs(count)>1){return plural}else{return singular}}var Countdown=function(el,finalDate,options){this.el=el;this.$el=$(el);this.interval=null;this.offset={};this.options=$.extend({},defaultOptions);this.instanceNumber=instances.length;instances.push(this);this.$el.data("countdown-instance",this.instanceNumber);if(options){if(typeof options==="function"){this.$el.on("update.countdown",options);this.$el.on("stoped.countdown",options);this.$el.on("finish.countdown",options)}else{this.options=$.extend({},defaultOptions,options)}}this.setFinalDate(finalDate);if(this.options.defer===false){this.start()}};$.extend(Countdown.prototype,{start:function(){if(this.interval!==null){clearInterval(this.interval)}var self=this;this.update();this.interval=setInterval(function(){self.update.call(self)},this.options.precision)},stop:function(){clearInterval(this.interval);this.interval=null;this.dispatchEvent("stoped")},toggle:function(){if(this.interval){this.stop()}else{this.start()}},pause:function(){this.stop()},resume:function(){this.start()},remove:function(){this.stop.call(this);instances[this.instanceNumber]=null;delete this.$el.data().countdownInstance},setFinalDate:function(value){this.finalDate=parseDateString(value)},update:function(){if(this.$el.closest("html").length===0){this.remove();return}var hasEventsAttached=$._data(this.el,"events")!==undefined,now=new Date,newTotalSecsLeft;newTotalSecsLeft=this.finalDate.getTime()-now.getTime();newTotalSecsLeft=Math.ceil(newTotalSecsLeft/1e3);newTotalSecsLeft=!this.options.elapse&&newTotalSecsLeft<0?0:Math.abs(newTotalSecsLeft);if(this.totalSecsLeft===newTotalSecsLeft||!hasEventsAttached){return}else{this.totalSecsLeft=newTotalSecsLeft}this.elapsed=now>=this.finalDate;this.offset={seconds:this.totalSecsLeft%60,minutes:Math.floor(this.totalSecsLeft/60)%60,hours:Math.floor(this.totalSecsLeft/60/60)%24,days:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToWeek:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToMonth:Math.floor(this.totalSecsLeft/60/60/24%30.4368),weeks:Math.floor(this.totalSecsLeft/60/60/24/7),weeksToMonth:Math.floor(this.totalSecsLeft/60/60/24/7)%4,months:Math.floor(this.totalSecsLeft/60/60/24/30.4368),years:Math.abs(this.finalDate.getFullYear()-now.getFullYear()),totalDays:Math.floor(this.totalSecsLeft/60/60/24),totalHours:Math.floor(this.totalSecsLeft/60/60),totalMinutes:Math.floor(this.totalSecsLeft/60),totalSeconds:this.totalSecsLeft};if(!this.options.elapse&&this.totalSecsLeft===0){this.stop();this.dispatchEvent("finish")}else{this.dispatchEvent("update")}},dispatchEvent:function(eventName){var event=$.Event(eventName+".countdown");event.finalDate=this.finalDate;event.elapsed=this.elapsed;event.offset=$.extend({},this.offset);event.strftime=strftime(this.offset);this.$el.trigger(event)}});$.fn.countdown=function(){var argumentsArray=Array.prototype.slice.call(arguments,0);return this.each(function(){var instanceNumber=$(this).data("countdown-instance");if(instanceNumber!==undefined){var instance=instances[instanceNumber],method=argumentsArray[0];if(Countdown.prototype.hasOwnProperty(method)){instance[method].apply(instance,argumentsArray.slice(1))}else if(String(method).match(/^[$A-Z_][0-9A-Z_$]*$/i)===null){instance.setFinalDate.call(instance,method);instance.start()}else{$.error("Method %s does not exist on jQuery.countdown".replace(/\%s/gi,method))}}else{new Countdown(this,argumentsArray[0],argumentsArray[1])}})}});$(document).ready(function(){
// Verwendet das jQuery-Plugin "The Final Countdown"
// http://hilios.github.io/jQuery.countdown/
$(".countdownBox").each(function(){var countdownBox=$(this),countdownLiftOff=countdownBox.data("lift-off"),showSeconds=parseInt(countdownBox.data("show-seconds"),10),counter=countdownBox.find(".countdownCounter");
// zwecks schnellem Test
// countdownLiftOff = '2016/09/26 07:00:00';
// countdownLiftOff = '2016/09/22 10:34:00';
var formatAll=['<span class="countdownCell">%D</span>','<span class="countdownCell">%H</span>','<span class="countdownCell">%M</span>','<span class="countdownCell">%S</span>'];var format=1===showSeconds?formatAll.join(""):formatAll.splice(0,3).join("");counter.countdown(countdownLiftOff).on("update.countdown",function(event){if(countdownBox.is(":hidden")){countdownBox.addClass("countdownRunning")}countdownHtml=event.strftime(format);$(this).html(countdownHtml)}).on("finish.countdown",function(event){countdownBox.addClass("countdownFinished")})})});$(document).ready(function(){$("#adventkalenderWin a.hidden").hover(function(e){$(this).removeClass("hidden").children("img").show()},function(e){$(this).addClass("hidden").children("img").hide()})});
// Verwendet das jQuery-Plugin "The Final Countdown"
// http://hilios.github.io/jQuery.countdown/
(function(){"use strict";function SilvesterCountdown(el){var silvesterCountdown=$(el);var silvesterCounter=silvesterCountdown.find(".silvesterCounter");var finalDate=$(el).data("finaldate");var html="";
// Pruefen, ob das jQuery-Plugin "The Final Countdown" geladen ist
if(typeof silvesterCounter.countdown!=="function"){return}
// Container zeigen
silvesterCountdown.css("display","block");
// Event-Handler des Plugins
silvesterCounter.countdown(finalDate).on("update.countdown",function(event){html=event.strftime('<span class="silvesterDigits">%I</span><span class="silvesterDigits">%M</span><span class="silvesterDigits">%S</span>');$(this).html(html)}).on("finish.countdown",function(event){silvesterCountdown.addClass("finished")})}$.fn.silvesterCountdown=function(){return this.each(function(){new SilvesterCountdown(this)})};$(".silvesterCountdown").silvesterCountdown()})();(function(containerClass){"use strict";
// --------------------------------------------------------
function TeleTraderSlider(container){
// var slider = container.querySelector('.flickitySlider');
var slider=container.querySelector(".teleTraderSlider");var countColumns=parseInt(container.dataset.countColumns,10);var entriesCounter=parseInt(slider.dataset.entriesCounter,10);var groupCells=parseInt(slider.dataset.groupCells,10);
// https://jsperf.com/numbers-and-integers
// Check if variable is an integer
countColumns=typeof countColumns==="number"&&countColumns%1===0?countColumns:4;entriesCounter=typeof entriesCounter==="number"&&entriesCounter%1===0?entriesCounter:0;groupCells=typeof groupCells==="number"&&groupCells%1===0?groupCells:1;var options={cellAlign:"left",contain:true,pageDots:false,wrapAround:true};if(typeof Flickity==="undefined"){return}var flkty=new Flickity(slider,options);if("undefined"===typeof flkty||null===flkty){return}
// ...
if(entriesCounter<=countColumns){flkty.prevButton.disable();flkty.nextButton.disable()}}
// --------------------------------------------------------
var containers=document.querySelectorAll(containerClass);for(var i=0,container;container=containers[i];++i){new TeleTraderSlider(container)}})(".teleTraderBox");(function(containerClass,sliderClass){"use strict";
// --------------------------------------------------------
function Slider(container,sliderClass){var slider=container.querySelector(sliderClass);if(typeof slider==="undefined"||null===slider){
// Box wird nicht gezeigt
return}
// -------------------------------------------
// var countColumns = parseInt(slider.dataset.countColumns, 10);
// var countSlides = parseInt(slider.dataset.countSlides, 10);
// // https://jsperf.com/numbers-and-integers
// // Check if variable is an integer
// countColumns = (typeof countColumns === 'number' && (countColumns % 1) === 0) ? countColumns : 4;
// countSlides = (typeof countSlides === 'number' && (countSlides % 1) === 0) ? countSlides : 0;
var countSlides="countSlides"in slider.dataset?slider.dataset.countSlides:0;var countColumns="countColumns"in slider.dataset?slider.dataset.countColumns:4;countSlides=isNaN(countSlides)?0:countSlides;countColumns=isNaN(countColumns)?4:countColumns;countSlides=parseInt(countSlides,10);countColumns=parseInt(countColumns,10);
// -------------------------------------------
// Flickity Init
var options={cellAlign:"left",contain:true,imagesLoaded:true,pageDots:false,wrapAround:true};if(typeof Flickity==="undefined"){return}var flkty=new Flickity(slider,options);if(typeof flkty==="undefined"||null===flkty){return}
// -------------------------------------------
if(countSlides<=countColumns){if(typeof flkty.prevButton!=="undefined"){flkty.prevButton.disable()}if(typeof flkty.nextButton!=="undefined"){flkty.nextButton.disable()}}
// -------------------------------------------
container.className+=" slider-enabled"}
// --------------------------------------------------------
var containers=document.querySelectorAll(containerClass);for(var i=0,container;container=containers[i];++i){new Slider(container,sliderClass)}})(".genericSliderBox",".flktySlider");(function(containerClass,sliderClass){"use strict";
// --------------------------------------------------------
function Slider(container,sliderClass){var slider=container.querySelector(sliderClass);if(typeof slider==="undefined"||null===slider){
// Box wird nicht gezeigt
return}
// -------------------------------------------
// var countColumns = parseInt(slider.dataset.countColumns, 10);
// var countSlides = parseInt(slider.dataset.countSlides, 10);
// // https://jsperf.com/numbers-and-integers
// // Check if variable is an integer
// countColumns = (typeof countColumns === 'number' && (countColumns % 1) === 0) ? countColumns : 4;
// countSlides = (typeof countSlides === 'number' && (countSlides % 1) === 0) ? countSlides : 0;
var countSlides="countSlides"in slider.dataset?slider.dataset.countSlides:0;var countColumns="countColumns"in slider.dataset?slider.dataset.countColumns:4;countSlides=isNaN(countSlides)?0:countSlides;countColumns=isNaN(countColumns)?4:countColumns;countSlides=parseInt(countSlides,10);countColumns=parseInt(countColumns,10);
// -------------------------------------------
// Flickity Init
var options={cellAlign:"left",contain:true,imagesLoaded:true,pageDots:false,wrapAround:true};if(typeof Flickity==="undefined"){return}var flkty=new Flickity(slider,options);if(typeof flkty==="undefined"||null===flkty){return}
// -------------------------------------------
if(countSlides<=countColumns){if(typeof flkty.prevButton!=="undefined"){flkty.prevButton.disable()}if(typeof flkty.nextButton!=="undefined"){flkty.nextButton.disable()}}
// -------------------------------------------
container.className+=" slider-enabled"}
// --------------------------------------------------------
var containers=document.querySelectorAll(containerClass);for(var i=0,container;container=containers[i];++i){new Slider(container,sliderClass)}})(".businessSliderBox",".flktySlider");(function(containerClass,sliderClass){"use strict";
// --------------------------------------------------------
function Slider(container,sliderClass){var slider=container.querySelector(sliderClass);if(typeof slider==="undefined"||null===slider){
// Box wird nicht gezeigt
return}
// -------------------------------------------
// var countColumns = parseInt(slider.dataset.countColumns, 10);
// var countSlides = parseInt(slider.dataset.countSlides, 10);
// // https://jsperf.com/numbers-and-integers
// // Check if variable is an integer
// countColumns = (typeof countColumns === 'number' && (countColumns % 1) === 0) ? countColumns : 4;
// countSlides = (typeof countSlides === 'number' && (countSlides % 1) === 0) ? countSlides : 0;
var countSlides="countSlides"in slider.dataset?slider.dataset.countSlides:0;var countColumns="countColumns"in slider.dataset?slider.dataset.countColumns:4;countSlides=isNaN(countSlides)?0:countSlides;countColumns=isNaN(countColumns)?4:countColumns;countSlides=parseInt(countSlides,10);countColumns=parseInt(countColumns,10);
// -------------------------------------------
// Flickity Init
var options={cellAlign:"left",contain:true,imagesLoaded:true,pageDots:false,wrapAround:true};if(typeof Flickity==="undefined"){return}var flkty=new Flickity(slider,options);if(typeof flkty==="undefined"||null===flkty){return}
// -------------------------------------------
if(countSlides<=countColumns){if(typeof flkty.prevButton!=="undefined"){flkty.prevButton.disable()}if(typeof flkty.nextButton!=="undefined"){flkty.nextButton.disable()}}
// -------------------------------------------
container.className+=" slider-enabled";
// -------------------------------------------
// scroll to current show
console.log("tvProgrammSlider - scroll");setTimeout(function(){var now=new Date;for(var i=0;i<=6;i++){var day=new Date(now.getTime()+1e3*60*60*24*i);var id2search="sl_"+day.toISOString().slice(0,10).replace(/-/g,"");console.log(id2search);var eventid2search="currentShow"+day.toISOString().slice(0,10).replace(/-/g,"");var curentEvent=document.getElementById(eventid2search);console.log(curentEvent);if(curentEvent){console.log("found");var currentSlider=document.getElementById(id2search);if(currentSlider){var offset=curentEvent.offsetTop;currentSlider.scrollTop=offset;console.log("start slide")}}}},100)}
// --------------------------------------------------------
var containers=document.querySelectorAll(containerClass);for(var i=0,container;container=containers[i];++i){new Slider(container,sliderClass)}})(".tvProgrammSliderBox",".flktySlider");var emarsys={register:{error:"",form_lanuage:"de",onbeforesubmit:function(){return true},is_3_valid:function(input){if(input==""){emarsys.register.error+="E-Mail: Eingabe fehlt!\n";return false}var emailPat=/^(.+)@(.+)$/;var specialChars='\\(\\)<>@,;:\\\\\\"\\.\\[\\]';var validChars="[^\\s"+specialChars+"]";var quotedUser='("[^"]*")';var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;var atom=validChars+"+";var word="("+atom+"|"+quotedUser+")";var userPat=new RegExp("^"+word+"(\\."+word+")*$");var domainPat=new RegExp("^"+atom+"(\\."+atom+")*$");var matchArray=input.match(emailPat);if(matchArray==null){emarsys.register.error+="E-Mail: Bitte geben Sie eine gültige E-Mail Adresse an!\n";// check @ and .
return false}var user=matchArray[1];var domain=matchArray[2];if(user.match(userPat)==null){emarsys.register.error+="E-Mail: Bitte geben Sie eine gültige E-Mail Adresse an!\n";// username doesn't seem to be valid
return false}var IPArray=domain.match(ipDomainPat);if(IPArray!=null){for(var i=1;i<=4;i++){if(IPArray[i]>255){emarsys.register.error+="E-Mail: Bitte geben Sie eine gültige E-Mail Adresse an!\n";// Destination IP address is invalid
return false}}return true}var domainArray=domain.match(domainPat);if(domainArray==null){emarsys.register.error+="E-Mail: Bitte geben Sie eine gültige E-Mail Adresse an!\n";// The domain name doesn't seem to be valid
return false}var atomPat=new RegExp(atom,"g");var domArr=domain.match(atomPat);var len=domArr.length;if(len<2){emarsys.register.error+="E-Mail: Bitte geben Sie eine gültige E-Mail Adresse an!\n";// This address is missing a hostname
return false}return true},CheckInputs:function(){var newsletterType=typeof document.getElementById("nltype")!="undefined"?document.getElementById("nltype").value:"oe24";var check_ok=true;emarsys.register.error="Fehler in der Eingabe!\n";emailField=document.ProfileForm.email;check_ok=emarsys.register.is_3_valid(emailField.value)&&check_ok;if("MediaMonitor"==newsletterType){var firstName=document.ProfileForm.firstname.value;if(firstName.length<1){check_ok=false;emarsys.register.error+="Vorname: Eingabe fehlt!\n"}var lastName=document.ProfileForm.lastname.value;if(lastName.length<1){check_ok=false;emarsys.register.error+="Nachname: Eingabe fehlt!\n"}var companyName=document.ProfileForm.companyname.value;if(companyName.length<1){check_ok=false;emarsys.register.error+="Firmenname: Eingabe fehlt!\n"}}
// check checkbox
// var optIn = document.getElementById('nlOptin');
//    if (!optIn.checked) {
//    	check_ok = false;
//    	error += "Bitte die Allgemeinen Gesch\u00e4ftsbedingungen best\u00e4tigen!\n";
//    }
// check checkbox
var optIn=document.getElementById("nlprivacy");if(!optIn.checked){check_ok=false;emarsys.register.error+="Bitte die Datenschutzbestimmungen des Gewinnspiels bestätigen!\n"}
// salutation = gender
var salutation=document.getElementById("inp_46");var gender=document.getElementById("inp_5");if(salutation&&gender){gender.value=salutation.value}if(check_ok==false){alert(emarsys.register.error)}return check_ok},SubmitIt:function(){if(emarsys.register.CheckInputs()==true){if(window.onbeforesubmit)emarsys.register.onbeforesubmit();document.ProfileForm.submit()}},MailIt:function(){if(emarsys.register.CheckInputs()){if(document.ProfileForm.subject.value==""||document.ProfileForm.msg.value=="")alert("Bitte für Sie die Nachrichtenfelder aus!");else document.ProfileForm.submit()}},FieldWithName:function(frm,fieldname,numofield){if(!numofield)numofield=0;field_count=0;for(i=0;i<frm.elements.length;++i){if(frm.elements[i].name==fieldname){if(field_count==numofield)return frm.elements[i];else field_count++}}},NumChecked:function(frm,fieldname){var count=0;for(i=0;i<frm.elements.length;++i){if(frm.elements[i].name==fieldname&&frm.elements[i].checked==true)++count}return count},NumSel:function(field){var count=0;for(i=0;i<field.length;++i)if(field[i].selected==true)++count;return count}}};(function(){
// http://www.chartjs.org/
// https://laracasts.com/discuss/channels/general-discussion/chartjs-and-half-donuts
// https://jsfiddle.net/m846s85L/
"use strict";function drawMyChart(ctx){var chartType=ctx.dataset.chartType;var chartData=JSON.parse(ctx.dataset.chartData);var defaultFontSize=ctx.dataset.defaultFontSize==="undefined"?14:ctx.dataset.defaultFontSize;
// Charts.js kennt unter anderem nur 'bar' bzw. 'pie' als Chart-Type
// Im spunQ-Template muss ich allerdings unterscheiden zwischen
// einfachem Bar-Chart mit nur einem Bar und Group-Bar-Chart fuer
// "alte" und "neue" Werte, die nebeneinander dargestellt werden sollen.
chartType="bar"==chartType||"barGroup"==chartType?"bar":chartType;
// console.log(chartType);
// console.log(chartData);
// console.log(chartData.data);
// console.log(defaultFontSize);
// ----------------------------------------------
var datasets=[],options,data;for(var n=0;n<chartData.data.length;n++){datasets.push({data:chartData.data[n],backgroundColor:chartData.colors[n]})}
// ----------------------------------------------
switch(chartType){case"bar":options={legend:{display:false}};break;case"pie":options={legend:{display:false},layout:{padding:{left:0,right:0,top:0,bottom:11}},rotation:1*Math.PI,circumference:1*Math.PI};break;default:return}
// ----------------------------------------------
data={labels:chartData.parteien,datasets:datasets};
// ----------------------------------------------
Chart.defaults.global.defaultFontFamily="'Open Sans', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif";Chart.defaults.global.defaultFontSize=typeof defaultFontSize==="undefined"?14:defaultFontSize;Chart.defaults.global.defaultFontStyle="bold";Chart.defaults.global.defaultFontColor="#000000";
// console.log(data);
// console.log(options);
var myChart=new Chart(ctx,{type:chartType,options:options,data:data});
// console.log(myChart);
}
// ------------------------------------------
var charts=document.querySelectorAll(".chart");
// IE11: [object NodeList].foreach() funktioniert nicht
// charts.forEach(function(ctx, index) {
//     drawMyChart(ctx);
// });
for(var i=0;i<charts.length;i++){drawMyChart(charts[i])}})();
// /Volumes/www/oe24_oe24/page/slideShowVoting.page
// * @url /_slideShowVoting/(?<slideshowId>.*)/(?<votings>.*)
// * @url /_slideShowVoting/(?<slideshowId>.*)/(?<votings>.*)/(?<voter>.*)
// debug($slideshowId);
// debug($votings);
// debug($voter);
// 2017-10-30 12:10:43: [  DEBUG  ] oe24.oe24.slideShowVoting.page:require() [15]: 161624401
// 2017-10-30 12:10:43: [  DEBUG  ] oe24.oe24.slideShowVoting.page:require() [16]: 161624405;jsOption1|161624423;jsOption2|161624426;jsOption3
// 2017-10-30 12:10:43: [  DEBUG  ] oe24.oe24.slideShowVoting.page:require() [17]: a|b|c
(function(){"use strict";var SlideshowVoting=function(container){var temp;
// ------------------------
// Status, ob schon abgestimmt wurde
this.hasAlreadyVoted=false;
// ------------------------
this.votingContainer=container.querySelector(".votingContainer");this.modalContainer=container.querySelector(".modalContainer");this.hintContainer=container.querySelector(".hintContainer");
// ------------------------
this.votingOptions=container.dataset.votingOptions;this.votingOptions=JSON.parse(this.votingOptions);
// ------------------------
// Voting-Buttons NodeList
temp=this.votingContainer.querySelectorAll(".votingButton");
// Voting-Buttons Array
this.votingButtons=Array.prototype.slice.call(temp,0);
// ------------------------
// Play-Buttons NodeList
temp=this.votingContainer.querySelectorAll(".playButton");
// Play-Buttons Array
this.playButtons=Array.prototype.slice.call(temp,0);
// ------------------------
this.modalButtonSubmit=this.modalContainer&&this.modalContainer.querySelector(".modalButtonSubmit");this.modalButtonCancel=this.modalContainer&&this.modalContainer.querySelector(".modalButtonCancel");this.hintButtonClose=this.hintContainer&&this.hintContainer.querySelector(".hintButtonClose");
// ------------------------
// console.log(this.votingOptions.showCompetiton, this.votingOptions.competitionUrl);
// ------------------------
this.init()};SlideshowVoting.prototype.init=function(){var that=this;this.votingContainer&&this.votingContainer.addEventListener("click",function(event){var temp,columnPosition,activeVotingButtons,position;position=that.votingButtons.indexOf(event.target);if(position<0){
// Es wurde keiner der Voting-Buttons geklickt
return}if(that.hasAlreadyVoted){
// Falls nur einmal abgestimmt werden soll, Kommentar vor den folgenden Zeilen entfernen
that.hintContainer.querySelector("."+that.votingOptions.classAlreadyVoted).classList.add("active");that.hintContainer.classList.add("active");return}
// ------------------------
// https://developer.mozilla.org/de/docs/Web/API/Element/classList
// if (event.target.classList.contains('disabled')) {
//     return;
// }
// https://stackoverflow.com/questions/5898656/test-if-an-element-contains-a-class
// Fuer alle Browser + aeltere Versionen
if(that.hasClass(event.target,that.votingOptions.classNameDisabled)){
// Button ist disabled
return}
// ------------------------
// Spaltenposition des geklickten Buttons
columnPosition=position%that.votingOptions.maxButtons;
// ------------------------
// Von Voting-Buttons wird die Markierung entfernt
that.removeClassActiveFromSiblings(event.target);
// In allen Voting-Buttons die Markierung suchen und gegebenenfalls entfernen
that.removeClassActiveFromPosition(columnPosition);
// ------------------------
// Der angeklickte Voting-Button wird jetzt marktiert
event.target.classList.add(that.votingOptions.classNameActive);
// ------------------------
// Wenn die Voting-Punkte vergeben sind, dann den modalen Dialog zeigen
temp=that.votingContainer.querySelectorAll(".votingButton."+that.votingOptions.classNameActive);that.activeVotingButtons=Array.prototype.slice.call(temp,0);if(that.activeVotingButtons.length>=that.votingOptions.maxButtons){
// Modal-Container einblenden
that.modalContainer&&that.modalContainer.classList.add(that.votingOptions.classNameActive)}event.preventDefault()});
// ------------------------
this.modalButtonSubmit&&this.modalButtonSubmit.addEventListener("click",function(event){that.modalSubmit(that.activeVotingButtons);that.hasAlreadyVoted=true;that.modalReset();if(that.votingOptions.resetAlreadyVoted){
// Die ausgewaehlten Votings sollen zurueckgesetzt werden
that.votingReset()}});this.modalButtonCancel&&this.modalButtonCancel.addEventListener("click",function(event){that.modalReset();that.votingReset()});
// ------------------------
this.hintButtonClose&&this.hintButtonClose.addEventListener("click",function(event){
// Aktiven Text finden und ausblenden
that.hintContainer.querySelector("."+that.votingOptions.classNameActive).classList.remove(that.votingOptions.classNameActive);
// Container ausblenden
that.hintContainer.classList.remove(that.votingOptions.classNameActive)})}
// --------------------------------------------------;
SlideshowVoting.prototype.modalReset=function(){var modalDataName=this.modalContainer.querySelector(".modalDataName");var modalDataTelefon=this.modalContainer.querySelector(".modalDataTelefon");var modalDataEmail=this.modalContainer.querySelector(".modalDataEmail");if(modalDataName!==null&&modalDataTelefon!==null&&modalDataEmail!==null){
// Eingabefelder zuruecksetzen
modalDataName.value="";modalDataTelefon.value="";modalDataEmail.value=""}
// Modal-Container ausblenden
this.modalContainer.classList.remove(this.votingOptions.classNameActive)};
// --------------------------------------------------
SlideshowVoting.prototype.votingReset=function(){
// Alle Voting-Buttons zuruecksetzen
this.votingButtons.forEach(function(element,index){element.classList.remove(this.votingOptions.classNameActive)},this);
// Test, ob die active-Buttons zurueckgesetzt wurden
// var temp = this.votingContainer.querySelectorAll('.votingButton.' + this.votingOptions.classNameActive);
// console.log(temp);
};
// --------------------------------------------------
SlideshowVoting.prototype.modalSubmit=function(activeVotingButtons){var temp,votingUrl,votingData=[];var modalDataName=this.modalContainer.querySelector(".modalDataName");var modalDataTelefon=this.modalContainer.querySelector(".modalDataTelefon");var modalDataEmail=this.modalContainer.querySelector(".modalDataEmail");
// Wenn das Eingabefeld zwar gueltig ist, also gezeigt wurde, aber keine Eingabe gemacht wurde ...
modalDataName=null!==modalDataName&&""===modalDataName.value?null:modalDataName;modalDataTelefon=null!==modalDataTelefon&&""===modalDataTelefon.value?null:modalDataTelefon;modalDataEmail=null!==modalDataEmail&&""===modalDataEmail.value?null:modalDataEmail;
// ------------------------
activeVotingButtons.forEach(function(element,index){votingData.push(element.dataset.itemInfo)},this);votingUrl=this.votingOptions.votingUrl+"/"+this.votingOptions.votingId+"/"+votingData.join("|");
// ------------------------
if(modalDataName!==null&&modalDataTelefon!==null&&modalDataEmail!==null){temp=modalDataName.value+"|"+modalDataTelefon.value+"|"+modalDataEmail.value;
// Telefonnummer wird gerne mit Slash geschrieben, beispielsweise 01/2367452.
// Der Slash wuerde allerdings ein URL-Segment hinzufuegen!!!
// Daher wird der Slash ersetzt durch ein Leerzeichen.
// So ist die Telefonnummer für Redaktion/Marketing immer noch "lesbar"
temp=temp.replace(/\//g," ");votingUrl+="/"+temp}
// ------------------------
// Daten abschicken
this.modalSend(votingUrl)};
// --------------------------------------------------
SlideshowVoting.prototype.modalSend=function(votingUrl){var that=this;var xhttp=new XMLHttpRequest;xhttp.onreadystatechange=function(){that.modalResponse(that,this)};xhttp.open("GET",votingUrl,true);xhttp.send()}
// --------------------------------------------------;
SlideshowVoting.prototype.modalResponse=function(that,xhttp){
// https://www.w3schools.com/js/js_ajax_http.asp
// readyState  Holds the status of the XMLHttpRequest.
//     0: request not initialized
//     1: server connection established
//     2: request received
//     3: processing request
//     4: request finished and response is ready
// XMLHttpRequest.DONE = 4
if(xhttp.readyState==XMLHttpRequest.DONE){switch(xhttp.status){case 200:
// OK
that.hintContainer.querySelector("."+that.votingOptions.classThanksVoted).classList.add("active");that.hintContainer.classList.add("active");break;case 403:
// Forbidden
break;case 404:
// Not Found
break;default:break}}}
// --------------------------------------------------;
SlideshowVoting.prototype.removeClassActiveFromSiblings=function(target){var temp,siblings,selector,closestParent;selector="."+this.votingOptions.classVotingItem;closestParent=this.getClosest(target.parentNode,selector);temp=closestParent.querySelectorAll("."+this.votingOptions.classNameButton);siblings=Array.prototype.slice.call(temp,0);siblings.forEach(function(element,index){element.classList.remove(this.votingOptions.classNameActive)},this)};
// --------------------------------------------------
SlideshowVoting.prototype.removeClassActiveFromPosition=function(columnPosition){
// Die Voting-Buttons in einer bestimmten Spalte zuruecksetzen
this.votingButtons.forEach(function(element,index){if(index%this.votingOptions.maxButtons==columnPosition){element.classList.remove(this.votingOptions.classNameActive)}},this)};
// --------------------------------------------------
// https://gomakethings.com/climbing-up-and-down-the-dom-tree-with-vanilla-javascript/
// // usage:
// var elem = document.querySelector('#example');
// var closestElem = getClosest(elem, '.sample-class');
// // usage from parent on:
// var elem = document.querySelector('#example');
// var closestElem = getClosest(elem.parentNode, '#sample-id');
/**
     * Get the closest matching element up the DOM tree.
     * @private
     * @param  {Element} elem     Starting element
     * @param  {String}  selector Selector to match against
     * @return {Boolean|Element}  Returns null if not match found
     */SlideshowVoting.prototype.getClosest=function(elem,selector){
// Element.matches() polyfill
if(!Element.prototype.matches){Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(s){var matches=(this.document||this.ownerDocument).querySelectorAll(s),i=matches.length;while(--i>=0&&matches.item(i)!==this){}return i>-1}}
// Get closest match
for(;elem&&elem!==document;elem=elem.parentNode){if(elem.matches(selector))return elem}return null};SlideshowVoting.prototype.hasClass=function(element,searchClassName){var pos=(" "+element.className+" ").indexOf(" "+searchClassName+" ");return pos>-1}
// --------------------------------------------------
// --------------------------------------------------;
var element,votingBox=document.querySelector(".votingBox");if(null!==votingBox&&typeof votingBox==="object"){element=new SlideshowVoting(votingBox)}})();(function(){var meinoe24={controlAuth:function(){return true},getArchive:function(){console.log("getArchive");var archive=document.getElementById("meinOe24Archive");if(typeof archive=="undefined"){return}if(typeof userInfo!="undefined"){var xhttp=new XMLHttpRequest;xhttp.onreadystatechange=function(){if(this.readyState==4&&this.status==200){var archive=document.getElementById("meinOe24Archive");if(typeof archive=="undefined"){return}var response=JSON.parse(xhttp.response);
// if(typeof response.data.coins != 'undefined'){
//     meinOE24Coins =  response.data.coins;
//     meinOE24SetCoinText(meinOE24Coins);
//     meinOE24WriteDigits(meinOE24Coins);
//     return meinOE24Coins;
// }
if(response.status=="OK"&&typeof response.data!="undefined"){for(i in response.data){
// console.log(i);
// if (i == 'contentIds') {
//     console.log("contentIds");
//     console.log(i);
// }
if(i!="userId"&&i!="coins"&&i!="contentIds"){var date=i;var rec=response.data[date];var sum=response.data[date].sum;var tr=document.createElement("tr");var tdRec=document.createElement("th");tdRec.classList.add("meinOe24Records");tdRec.innerHTML=date;tdRec.style.width="18%";var tdId=document.createElement("th");tdId.classList.add("meinOe24RecordsId");tdId.style.backgroundColor="#d0113a";var tdVal=document.createElement("th");tdVal.classList.add("meinOe24Values");tdVal.innerHTML="Gesammelte Coins: "+sum;tdVal.style.width="25%";tr.appendChild(tdRec);tr.appendChild(tdId);tr.appendChild(tdVal);archive.appendChild(tr);for(time in rec.entries){var id=rec.entries[time]["id"];var type=rec.entries[time]["type"];var val=type=="raffle"||type=="payment"?"-"+rec.entries[time]["value"]:rec.entries[time]["value"];var type=type=="raffle"?"Gewinnspiel":type;var type=type=="article"?"Artikel":type;var type=type=="payment"?"Auszahlung":type;
// if (type == 'transfer') continue;
var tr=document.createElement("tr");var tdRec=document.createElement("td");tdRec.classList.add("meinOe24Records");var objId=id>0?id:"";
// tdRec.innerHTML = time.substring(0, 5) + ': ' + type.charAt(0).toUpperCase()+type.slice(1)+' '+objId;
tdRec.innerHTML=time.substring(0,5)+": "+type.charAt(0).toUpperCase()+type.slice(1);var tdId=document.createElement("td");tdId.classList.add("meinOe24RecordsId");var objId=id>0?id:"";tdId.innerHTML=objId;var tdVal=document.createElement("td");tdVal.classList.add("meinOe24Values");tdVal.innerHTML=val;tr.appendChild(tdRec);tr.appendChild(tdId);tr.appendChild(tdVal);archive.appendChild(tr);
// <tr>
//     <td class="meinOe24Dates"><strong> Uhr</strong></td>
//     <td class="meinOe24Records"><strong>ucfirst(type):</strong> id</td>
//     <td class="meinOe24Values">amount</td>
// </tr>
}}}getArticleTitles(response.data.contentIds)}}}}}};function getArticleTitles(arr){var hostname=window.location.hostname;var protocol=hostname.includes("dev.")?"http":"https";arr=arr.slice(0,500);
// console.log(arr);
// console.log(arr.length);
var ids="["+arr.join(",")+"]";var xhttp=new XMLHttpRequest;xhttp.onreadystatechange=function(){if(this.readyState==4&&this.status==200){replaceArticleTitles(JSON.parse(xhttp.response))}}}function replaceArticleTitles(arr){console.log(arr);var elems=document.querySelectorAll(".meinOe24RecordsId");for(var i=0;i<elems.length&&i<500;i++){if(elems[i].innerHTML!=""){if(typeof elems[i].innerHTML!="undefined"){var id=elems[i].innerHTML;elems[i].innerHTML=arr[id]}}}}$(document).ready(function(){
// archive
var archive=document.getElementById("meinOe24Archive");if(typeof archive!=="undefined"&&archive!==null){meinoe24.getArchive()}})})();(function(containerClass,sliderClass){"use strict";var container=document.querySelector(containerClass);if(typeof container==="undefined"||null===container){return}var slider=container.querySelector(sliderClass);if(typeof slider==="undefined"||null===slider){
// Box wird nicht gezeigt, weil die CSS-Class flickity-enabled erst von Flickity gesetzt wird.
// Erst dann wirkt der CSS-Selector .consoleGames24 .consoleGames24Stories.flickity-enable -> display:block
return}
// -------------------------------
var wrapAround=true;var options=JSON.parse(container.dataset.sliderOptions);var autoPlay=parseInt(options.autoplay,10);var autoPlaySpeed=parseInt(options.autoplayspeed,10);
// -------------------------------
// Flickity autoPlay -> false | true (speed default 3000 ms) | speed (in ms)
autoPlay=0===autoPlay?false:autoPlaySpeed;
// -------------------------------
var activate=Flickity.prototype.activate;Flickity.prototype.activate=function(){if(this.isActive){return}activate.apply(this,arguments);this.dispatchEvent("ready")};var flickityOptions={autoPlay:autoPlay,cellAlign:"left",cellSelector:".consoleGames24Item",contain:true,draggable:true,freeScroll:false,imagesLoaded:true,lazyLoad:2,// true
pageDots:false,pauseAutoPlayOnHover:true,prevNextButtons:false,wrapAround:wrapAround};var flkty="undefined"!==typeof Flickity?new Flickity(slider,flickityOptions):null;if("undefined"===typeof flkty||null===flkty){return}
// -------------------------------
//  Flickity Event Listener
// Den "ready" Event gibt es offenbar in unserer schon veralteten Version (v1.2.1) nicht
// Der Event, der zu Ladebeginn und wenn der erste Slide in siner Endpoition ist, ist "settle"
flkty.once("settle",function(event,pointer){var headline=container.querySelector(".consoleGames24 .consoleGames24Headline");var button=container.querySelector(".consoleGames24 .consoleGames24Button");headline.classList.add("ready");button.classList.add("ready")});
// -------------------------------
function resetCounter(){var currentSlide=flkty.selectedIndex+1;var newCounter=currentSlide+"/"+countSlides;slidesCounter.innerHTML=newCounter}var countSlides=flkty.cells.length;var slidesCounter=container.querySelector(".consoleGames24Counter");var buttonPrev=container.querySelector(".consoleGames24ButtonPrev");var buttonNext=container.querySelector(".consoleGames24ButtonNext");buttonPrev.addEventListener("click",function(){flkty.previous(wrapAround);resetCounter()});buttonNext.addEventListener("click",function(){flkty.next(wrapAround);resetCounter()})})(".consoleGames24",".consoleGames24Stories");(function(containerClass,sliderClass){"use strict";var container=document.querySelector(containerClass);if(typeof container==="undefined"||null===container){return}var slider=container.querySelector(sliderClass);if(typeof slider==="undefined"||null===slider){
// Box wird nicht gezeigt, weil die CSS-Class flickity-enabled erst von Flickity gesetzt wird.
// Erst dann wirkt der CSS-Selector .consoleWm2018 .consoleWm2018Stories.flickity-enable -> display:block
return}
// -------------------------------
var wrapAround=true;var options=JSON.parse(container.dataset.sliderOptions);var autoPlay=parseInt(options.autoplay,10);var autoPlaySpeed=parseInt(options.autoplayspeed,10);
// -------------------------------
// Flickity autoPlay -> false | true (speed default 3000 ms) | speed (in ms)
autoPlay=0===autoPlay?false:autoPlaySpeed;
// -------------------------------
var activate=Flickity.prototype.activate;Flickity.prototype.activate=function(){if(this.isActive){return}activate.apply(this,arguments);this.dispatchEvent("ready")};var flickityOptions={autoPlay:autoPlay,cellAlign:"left",cellSelector:".consoleWm2018Item",contain:true,draggable:true,freeScroll:false,imagesLoaded:true,lazyLoad:2,// true
pageDots:false,pauseAutoPlayOnHover:true,prevNextButtons:false,wrapAround:wrapAround};var flkty="undefined"!==typeof Flickity?new Flickity(slider,flickityOptions):null;if("undefined"===typeof flkty||null===flkty){return}
// -------------------------------
//  Flickity Event Listener
// Den "ready" Event gibt es offenbar in unserer schon veralteten Version (v1.2.1) nicht
// Der Event, der zu Ladebeginn und wenn der erste Slide in siner Endpoition ist, ist "settle"
flkty.once("settle",function(event,pointer){var headline=container.querySelector(".consoleWm2018 .consoleWm2018Headline");var button=container.querySelector(".consoleWm2018 .consoleWm2018Button");headline.classList.add("ready");button.classList.add("ready")});
// -------------------------------
function resetCounter(){var currentSlide=flkty.selectedIndex+1;var newCounter=currentSlide+"/"+countSlides;slidesCounter.innerHTML=newCounter}var countSlides=flkty.cells.length;var slidesCounter=container.querySelector(".consoleWm2018Counter");var buttonPrev=container.querySelector(".consoleWm2018ButtonPrev");var buttonNext=container.querySelector(".consoleWm2018ButtonNext");buttonPrev.addEventListener("click",function(){flkty.previous(wrapAround);resetCounter()});buttonNext.addEventListener("click",function(){flkty.next(wrapAround);resetCounter()})})(".consoleWm2018",".consoleWm2018Stories");
