− | /*!@license js/jquery.js by Joubel and other contributors, licensed under GNU GENERAL PUBLIC LICENSE Version 3*/!function(h,H){function O(e,t){return t.toUpperCase()}function M(){m.addEventListener?(m.removeEventListener("DOMContentLoaded",t,!1),h.removeEventListener("load",t,!1)):(m.detachEvent("onreadystatechange",t),h.detachEvent("onload",t))}var q,g=typeof H,m=h.document,B=h.location,_=h.jQuery,R=h.$,z={},d=[],e="1.9.1",Q=d.concat,$=d.push,u=d.slice,X=d.indexOf,W=z.toString,V=z.hasOwnProperty,U=e.trim,w=function(e,t){return new w.fn.init(e,t,ae)},J=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,C=/\S+/g,Y=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,G=/^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/,K=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,Z=/^[\],:{}\s]*$/,ee=/(?:^|:|,)(?:\s*\[)+/g,te=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,ne=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,ie=/^-ms-/,re=/-([\da-z])/gi,t=function(e){!m.addEventListener&&"load"!==e.type&&"complete"!==m.readyState||(M(),w.ready())};function oe(e){var t=e.length,n=w.type(e);return!w.isWindow(e)&&(!(1!==e.nodeType||!t)||"array"===n||"function"!==n&&(0===t||"number"==typeof t&&0<t&&t-1 in e))}w.fn=w.prototype={jquery:e,constructor:w,init:function(e,t,n){var i,r;if(e){if("string"!=typeof e)return e.nodeType?(this.context=this[0]=e,this.length=1,this):w.isFunction(e)?n.ready(e):(e.selector!==H&&(this.selector=e.selector,this.context=e.context),w.makeArray(e,this));if(!(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:G.exec(e))||!i[1]&&t)return(!t||t.jquery?t||n:this.constructor(t)).find(e);if(i[1]){if(t=t instanceof w?t[0]:t,w.merge(this,w.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:m,!0)),K.test(i[1])&&w.isPlainObject(t))for(i in t)w.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i])}else{if((r=m.getElementById(i[2]))&&r.parentNode){if(r.id!==i[2])return n.find(e);this.length=1,this[0]=r}this.context=m,this.selector=e}}return this},selector:"",length:0,size:function(){return this.length},toArray:function(){return u.call(this)},get:function(e){return null==e?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e){e=w.merge(this.constructor(),e);return e.prevObject=this,e.context=this.context,e},each:function(e,t){return w.each(this,e,t)},ready:function(e){return w.ready.promise().done(e),this},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,e=+e+(e<0?t:0);return this.pushStack(0<=e&&e<t?[this[e]]:[])},map:function(n){return this.pushStack(w.map(this,function(e,t){return n.call(e,t,e)}))},end:function(){return this.prevObject||this.constructor(null)},push:$,sort:[].sort,splice:[].splice},w.fn.init.prototype=w.fn,w.extend=w.fn.extend=function(){var e,t,n,i,r,o=arguments[0]||{},a=1,s=arguments.length,c=!1;for("boolean"==typeof o&&(c=o,o=arguments[1]||{},a=2),"object"==typeof o||w.isFunction(o)||(o={}),s===a&&(o=this,--a);a<s;a++)if(null!=(i=arguments[a]))for(n in i)r=o[n],t=i[n],o!==t&&(c&&t&&(w.isPlainObject(t)||(e=w.isArray(t)))?(r=e?(e=!1,r&&w.isArray(r)?r:[]):r&&w.isPlainObject(r)?r:{},o[n]=w.extend(c,r,t)):t!==H&&(o[n]=t));return o},w.extend({noConflict:function(e){return h.$===w&&(h.$=R),e&&h.jQuery===w&&(h.jQuery=_),w},isReady:!1,readyWait:1,holdReady:function(e){e?w.readyWait++:w.ready(!0)},ready:function(e){if(!0===e?!--w.readyWait:!w.isReady){if(!m.body)return setTimeout(w.ready);(w.isReady=!0)!==e&&0<--w.readyWait||(q.resolveWith(m,[w]),w.fn.trigger&&w(m).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===w.type(e)},isArray:Array.isArray||function(e){return"array"===w.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?z[W.call(e)]||"object":typeof e},isPlainObject:function(e){if(!e||"object"!==w.type(e)||e.nodeType||w.isWindow(e))return!1;try{if(e.constructor&&!V.call(e,"constructor")&&!V.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}for(var t in e);return t===H||V.call(e,t)},isEmptyObject:function(e){for(var t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||m;var i=K.exec(e),n=!n&&[];return i?[t.createElement(i[1])]:(i=w.buildFragment([e],t,n),n&&w(n).remove(),w.merge([],i.childNodes))},parseJSON:function(e){return h.JSON&&h.JSON.parse?h.JSON.parse(e):null===e?e:"string"==typeof e&&(e=w.trim(e))&&Z.test(e.replace(te,"@").replace(ne,"]").replace(ee,""))?Function("return "+e)():(w.error("Invalid JSON: "+e),H)},parseXML:function(e){var t;if(!e||"string"!=typeof e)return null;try{h.DOMParser?t=(new DOMParser).parseFromString(e,"text/xml"):((t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e))}catch(e){t=H}return t&&t.documentElement&&!t.getElementsByTagName("parsererror").length||w.error("Invalid XML: "+e),t},noop:function(){},globalEval:function(e){e&&w.trim(e)&&(h.execScript||function(e){h.eval.call(h,e)})(e)},camelCase:function(e){return e.replace(ie,"ms-").replace(re,O)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var i,r=0,o=e.length,a=oe(e);if(n){if(a)for(;r<o&&!1!==(i=t.apply(e[r],n));r++);else for(r in e)if(i=t.apply(e[r],n),!1===i)break}else if(a)for(;r<o&&!1!==(i=t.call(e[r],r,e[r]));r++);else for(r in e)if(i=t.call(e[r],r,e[r]),!1===i)break;return e},trim:U&&!U.call("\ufeff ")?function(e){return null==e?"":U.call(e)}:function(e){return null==e?"":(e+"").replace(Y,"")},makeArray:function(e,t){t=t||[];return null!=e&&(oe(Object(e))?w.merge(t,"string"==typeof e?[e]:e):$.call(t,e)),t},inArray:function(e,t,n){var i;if(t){if(X)return X.call(t,e,n);for(i=t.length,n=n?n<0?Math.max(0,i+n):n:0;n<i;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){var n=t.length,i=e.length,r=0;if("number"==typeof n)for(;r<n;r++)e[i++]=t[r];else for(;t[r]!==H;)e[i++]=t[r++];return e.length=i,e},grep:function(e,t,n){var i=[],r=0,o=e.length;for(n=!!n;r<o;r++)n!==!!t(e[r],r)&&i.push(e[r]);return i},map:function(e,t,n){var i,r=0,o=e.length,a=[];if(oe(e))for(;r<o;r++)null!=(i=t(e[r],r,n))&&(a[a.length]=i);else for(r in e)i=t(e[r],r,n),null!=i&&(a[a.length]=i);return Q.apply([],a)},guid:1,proxy:function(e,t){var n,i;return"string"==typeof t&&(i=e[t],t=e,e=i),w.isFunction(e)?(n=u.call(arguments,2),(i=function(){return e.apply(t||this,n.concat(u.call(arguments)))}).guid=e.guid=e.guid||w.guid++,i):H},access:function(e,t,n,i,r,o,a){var s=0,c=e.length,l=null==n;if("object"===w.type(n))for(s in r=!0,n)w.access(e,t,s,n[s],!0,o,a);else if(i!==H&&(r=!0,w.isFunction(i)||(a=!0),t=l?a?(t.call(e,i),null):(l=t,function(e,t,n){return l.call(w(e),n)}):t))for(;s<c;s++)t(e[s],n,a?i:i.call(e[s],s,t(e[s],n)));return r?e:l?t.call(e):c?t(e[0],n):o},now:function(){return(new Date).getTime()}}),w.ready.promise=function(e){if(!q)if(q=w.Deferred(),"complete"===m.readyState)setTimeout(w.ready);else if(m.addEventListener)m.addEventListener("DOMContentLoaded",t,!1),h.addEventListener("load",t,!1);else{m.attachEvent("onreadystatechange",t),h.attachEvent("onload",t);var n=!1;try{n=null==h.frameElement&&m.documentElement}catch(e){}n&&n.doScroll&&function t(){if(!w.isReady){try{n.doScroll("left")}catch(e){return setTimeout(t,50)}M(),w.ready()}}()}return q.promise(e)},w.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){z["[object "+t+"]"]=t.toLowerCase()});var ae=w(m),se={};w.Callbacks=function(r){var e,n;r="string"==typeof r?se[r]||(n=se[e=r]={},w.each(e.match(C)||[],function(e,t){n[t]=!0}),n):w.extend({},r);function i(e){for(t=r.memory&&e,a=!0,c=l||0,l=0,s=u.length,o=!0;u&&c<s;c++)if(!1===u[c].apply(e[0],e[1])&&r.stopOnFalse){t=!1;break}o=!1,u&&(d?d.length&&i(d.shift()):t?u=[]:f.disable())}var o,t,a,s,c,l,u=[],d=!r.once&&[],f={add:function(){var e;return u&&(e=u.length,function i(e){w.each(e,function(e,t){var n=w.type(t);"function"===n?r.unique&&f.has(t)||u.push(t):t&&t.length&&"string"!==n&&i(t)})}(arguments),o?s=u.length:t&&(l=e,i(t))),this},remove:function(){return u&&w.each(arguments,function(e,t){for(var n;-1<(n=w.inArray(t,u,n));)u.splice(n,1),o&&(n<=s&&s--,n<=c)&&c--}),this},has:function(e){return e?-1<w.inArray(e,u):!(!u||!u.length)},empty:function(){return u=[],this},disable:function(){return u=d=t=H,this},disabled:function(){return!u},lock:function(){return d=H,t||f.disable(),this},locked:function(){return!d},fireWith:function(e,t){return t=[e,(t=t||[]).slice?t.slice():t],!u||a&&!d||(o?d.push(t):i(t)),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!a}};return f},w.extend({Deferred:function(e){var a=[["resolve","done",w.Callbacks("once memory"),"resolved"],["reject","fail",w.Callbacks("once memory"),"rejected"],["notify","progress",w.Callbacks("memory")]],r="pending",s={state:function(){return r},always:function(){return c.done(arguments).fail(arguments),this},then:function(){var o=arguments;return w.Deferred(function(r){w.each(a,function(e,t){var n=t[0],i=w.isFunction(o[e])&&o[e];c[t[1]](function(){var e=i&&i.apply(this,arguments);e&&w.isFunction(e.promise)?e.promise().done(r.resolve).fail(r.reject).progress(r.notify):r[n+"With"](this===s?r.promise():this,i?[e]:arguments)})}),o=null}).promise()},promise:function(e){return null!=e?w.extend(e,s):s}},c={};return s.pipe=s.then,w.each(a,function(e,t){var n=t[2],i=t[3];s[t[1]]=n.add,i&&n.add(function(){r=i},a[1^e][2].disable,a[2][2].lock),c[t[0]]=function(){return c[t[0]+"With"](this===c?s:this,arguments),this},c[t[0]+"With"]=n.fireWith}),s.promise(c),e&&e.call(c,c),c},when:function(e){function t(t,n,i){return function(e){n[t]=this,i[t]=1<arguments.length?u.call(arguments):e,i===r?l.notifyWith(n,i):--c||l.resolveWith(n,i)}}var r,n,i,o=0,a=u.call(arguments),s=a.length,c=1!==s||e&&w.isFunction(e.promise)?s:0,l=1===c?e:w.Deferred();if(1<s)for(r=Array(s),n=Array(s),i=Array(s);o<s;o++)a[o]&&w.isFunction(a[o].promise)?a[o].promise().done(t(o,i,a)).fail(l.reject).progress(t(o,n,r)):--c;return c||l.resolveWith(i,a),l.promise()}}),w.support=function(){var r,e,t,n,i,o,a,s,c=m.createElement("div");if(c.setAttribute("className","t"),c.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=c.getElementsByTagName("*"),e=c.getElementsByTagName("a")[0],!n||!e||!n.length)return{};i=(n=m.createElement("select")).appendChild(m.createElement("option")),t=c.getElementsByTagName("input")[0],e.style.cssText="top:1px;float:left;opacity:.5",r={getSetAttribute:"t"!==c.className,leadingWhitespace:3===c.firstChild.nodeType,tbody:!c.getElementsByTagName("tbody").length,htmlSerialize:!!c.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:"/a"===e.getAttribute("href"),opacity:/^0.5/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:!!t.value,optSelected:i.selected,enctype:!!m.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==m.createElement("nav").cloneNode(!0).outerHTML,boxModel:"CSS1Compat"===m.compatMode,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},t.checked=!0,r.noCloneChecked=t.cloneNode(!0).checked,n.disabled=!0,r.optDisabled=!i.disabled;try{delete c.test}catch(e){r.deleteExpando=!1}for(s in(t=m.createElement("input")).setAttribute("value",""),r.input=""===t.getAttribute("value"),t.value="t",t.setAttribute("type","radio"),r.radioValue="t"===t.value,t.setAttribute("checked","t"),t.setAttribute("name","t"),(i=m.createDocumentFragment()).appendChild(t),r.appendChecked=t.checked,r.checkClone=i.cloneNode(!0).cloneNode(!0).lastChild.checked,c.attachEvent&&(c.attachEvent("onclick",function(){r.noCloneEvent=!1}),c.cloneNode(!0).click()),{submit:!0,change:!0,focusin:!0})c.setAttribute(o="on"+s,"t"),r[s+"Bubbles"]=o in h||!1===c.attributes[o].expando;return c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",r.clearCloneStyle="content-box"===c.style.backgroundClip,w(function(){var e,t,n="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",i=m.getElementsByTagName("body")[0];i&&((e=m.createElement("div")).style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",i.appendChild(e).appendChild(c),c.innerHTML="<table><tr><td></td><td>t</td></tr></table>",(t=c.getElementsByTagName("td"))[0].style.cssText="padding:0;margin:0;border:0;display:none",a=0===t[0].offsetHeight,t[0].style.display="",t[1].style.display="none",r.reliableHiddenOffsets=a&&0===t[0].offsetHeight,c.innerHTML="",c.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",r.boxSizing=4===c.offsetWidth,r.doesNotIncludeMarginInBodyOffset=1!==i.offsetTop,h.getComputedStyle&&(r.pixelPosition="1%"!==(h.getComputedStyle(c,null)||{}).top,r.boxSizingReliable="4px"===(h.getComputedStyle(c,null)||{width:"4px"}).width,(t=c.appendChild(m.createElement("div"))).style.cssText=c.style.cssText=n,t.style.marginRight=t.style.width="0",c.style.width="1px",r.reliableMarginRight=!parseFloat((h.getComputedStyle(t,null)||{}).marginRight)),typeof c.style.zoom!=g&&(c.innerHTML="",c.style.cssText=n+"width:1px;padding:1px;display:inline;zoom:1",r.inlineBlockNeedsLayout=3===c.offsetWidth,c.style.display="block",c.innerHTML="<div></div>",c.firstChild.style.width="5px",r.shrinkWrapBlocks=3!==c.offsetWidth,r.inlineBlockNeedsLayout)&&(i.style.zoom=1),i.removeChild(e),c=null)}),n=i=e=t=null,r}();var ce=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,le=/([A-Z])/g;function ue(e,t,n,i){if(w.acceptData(e)){var r,o=w.expando,a="string"==typeof t,s=e.nodeType,c=s?w.cache:e,l=s?e[o]:e[o]&&o;if(l&&c[l]&&(i||c[l].data)||!a||n!==H)return l||(s?e[o]=l=d.pop()||w.guid++:l=o),c[l]||(c[l]={},s)||(c[l].toJSON=w.noop),"object"!=typeof t&&"function"!=typeof t||(i?c[l]=w.extend(c[l],t):c[l].data=w.extend(c[l].data,t)),e=c[l],i||(e.data||(e.data={}),e=e.data),n!==H&&(e[w.camelCase(t)]=n),a?null==(r=e[t])&&(r=e[w.camelCase(t)]):r=e,r}}function de(e,t,n){if(w.acceptData(e)){var i,r,o,a=e.nodeType,s=a?w.cache:e,c=a?e[w.expando]:w.expando;if(s[c]){if(t&&(o=n?s[c]:s[c].data)){for((i=0,r=(t=w.isArray(t)?t.concat(w.map(t,w.camelCase)):t in o||(t=w.camelCase(t))in o?[t]:t.split(" ")).length);i<r;i++)delete o[t[i]];if(!(n?pe:w.isEmptyObject)(o))return}(n||(delete s[c].data,pe(s[c])))&&(a?w.cleanData([e],!0):w.support.deleteExpando||s!=s.window?delete s[c]:s[c]=null)}}}function fe(e,t,n){if(n===H&&1===e.nodeType){var i="data-"+t.replace(le,"-$1").toLowerCase();if("string"==typeof(n=e.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:ce.test(n)?w.parseJSON(n):n)}catch(e){}w.data(e,t,n)}else n=H}return n}function pe(e){for(var t in e)if(("data"!==t||!w.isEmptyObject(e[t]))&&"toJSON"!==t)return;return 1}w.extend({cache:{},expando:"jQuery"+(e+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return!!(e=e.nodeType?w.cache[e[w.expando]]:e[w.expando])&&!pe(e)},data:function(e,t,n){return ue(e,t,n)},removeData:function(e,t){return de(e,t)},_data:function(e,t,n){return ue(e,t,n,!0)},_removeData:function(e,t){return de(e,t,!0)},acceptData:function(e){var t;return!(e.nodeType&&1!==e.nodeType&&9!==e.nodeType||(t=e.nodeName&&w.noData[e.nodeName.toLowerCase()])&&(!0===t||e.getAttribute("classid")!==t))}}),w.fn.extend({data:function(t,e){var n,i,r=this[0],o=0,a=null;if(t!==H)return"object"==typeof t?this.each(function(){w.data(this,t)}):w.access(this,function(e){return e===H?r?fe(r,t,w.data(r,t)):null:(this.each(function(){w.data(this,t,e)}),H)},null,e,1<arguments.length,null,!0);if(this.length&&(a=w.data(r),1===r.nodeType)&&!w._data(r,"parsedAttrs")){for(n=r.attributes;n.length>o;o++)(i=n[o].name).indexOf("data-")||(i=w.camelCase(i.slice(5)),fe(r,i,a[i]));w._data(r,"parsedAttrs",!0)}return a},removeData:function(e){return this.each(function(){w.removeData(this,e)})}}),w.extend({queue:function(e,t,n){var i;return e?(i=w._data(e,t=(t||"fx")+"queue"),n&&(!i||w.isArray(n)?i=w._data(e,t,w.makeArray(n)):i.push(n)),i||[]):H},dequeue:function(e,t){t=t||"fx";var n=w.queue(e,t),i=n.length,r=n.shift(),o=w._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),i--),(o.cur=r)&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,function(){w.dequeue(e,t)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return w._data(e,n)||w._data(e,n,{empty:w.Callbacks("once memory").add(function(){w._removeData(e,t+"queue"),w._removeData(e,n)})})}}),w.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?w.queue(this[0],t):n===H?this:this.each(function(){var e=w.queue(this,t,n);w._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&w.dequeue(this,t)})},dequeue:function(e){return this.each(function(){w.dequeue(this,e)})},delay:function(i,e){return i=w.fx&&w.fx.speeds[i]||i,this.queue(e=e||"fx",function(e,t){var n=setTimeout(e,i);t.stop=function(){clearTimeout(n)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function n(){--r||o.resolveWith(a,[a])}var i,r=1,o=w.Deferred(),a=this,s=this.length;for("string"!=typeof e&&(t=e,e=H),e=e||"fx";s--;)(i=w._data(a[s],e+"queueHooks"))&&i.empty&&(r++,i.empty.add(n));return n(),o.promise(t)}});var he,ge,me=/[\t\r\n]/g,ye=/\r/g,ve=/^(?:input|select|textarea|button|object)$/i,be=/^(?:a|area)$/i,Pe=/^(?:checked|selected|autofocus|autoplay|async|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped)$/i,xe=/^(?:checked|selected)$/i,a=w.support.getSetAttribute,He=w.support.input,we=(w.fn.extend({attr:function(e,t){return w.access(this,w.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){w.removeAttr(this,e)})},prop:function(e,t){return w.access(this,w.prop,e,t,1<arguments.length)},removeProp:function(e){return e=w.propFix[e]||e,this.each(function(){try{this[e]=H,delete this[e]}catch(e){}})},addClass:function(t){var e,n,i,r,o,a=0,s=this.length,c="string"==typeof t&&t;if(w.isFunction(t))return this.each(function(e){w(this).addClass(t.call(this,e,this.className))});if(c)for(e=(t||"").match(C)||[];a<s;a++)if(i=1===(n=this[a]).nodeType&&(n.className?(" "+n.className+" ").replace(me," "):" ")){for(o=0;r=e[o++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");n.className=w.trim(i)}return this},removeClass:function(t){var e,n,i,r,o,a=0,s=this.length,c=0===arguments.length||"string"==typeof t&&t;if(w.isFunction(t))return this.each(function(e){w(this).removeClass(t.call(this,e,this.className))});if(c)for(e=(t||"").match(C)||[];a<s;a++)if(i=1===(n=this[a]).nodeType&&(n.className?(" "+n.className+" ").replace(me," "):"")){for(o=0;r=e[o++];)for(;0<=i.indexOf(" "+r+" ");)i=i.replace(" "+r+" "," ");n.className=t?w.trim(i):""}return this},toggleClass:function(o,a){var s=typeof o,c="boolean"==typeof a;return w.isFunction(o)?this.each(function(e){w(this).toggleClass(o.call(this,e,this.className,a),a)}):this.each(function(){if("string"==s)for(var e,t=0,n=w(this),i=a,r=o.match(C)||[];e=r[t++];)i=c?i:!n.hasClass(e),n[i?"addClass":"removeClass"](e);else s!=g&&"boolean"!=s||(this.className&&w._data(this,"__className__",this.className),this.className=!this.className&&!1!==o&&w._data(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,i=this.length;n<i;n++)if(1===this[n].nodeType&&0<=(" "+this[n].className+" ").replace(me," ").indexOf(t))return!0;return!1},val:function(n){var e,i,r,t=this[0];return arguments.length?(r=w.isFunction(n),this.each(function(e){var t=w(this);1===this.nodeType&&(null==(e=r?n.call(this,e,t.val()):n)?e="":"number"==typeof e?e+="":w.isArray(e)&&(e=w.map(e,function(e){return null==e?"":e+""})),(i=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in i&&i.set(this,e,"value")!==H||(this.value=e))})):t?(i=w.valHooks[t.type]||w.valHooks[t.nodeName.toLowerCase()])&&"get"in i&&(e=i.get(t,"value"))!==H?e:"string"==typeof(e=t.value)?e.replace(ye,""):null==e?"":e:void 0}}),w.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){for(var t,n=e.options,i=e.selectedIndex,r="select-one"===e.type||i<0,o=r?null:[],a=r?i+1:n.length,s=i<0?a:r?i:0;s<a;s++)if(!(!(t=n[s]).selected&&s!==i||(w.support.optDisabled?t.disabled:null!==t.getAttribute("disabled"))||t.parentNode.disabled&&w.nodeName(t.parentNode,"optgroup"))){if(t=w(t).val(),r)return t;o.push(t)}return o},set:function(e,t){var n=w.makeArray(t);return w(e).find("option").each(function(){this.selected=0<=w.inArray(w(this).val(),n)}),n.length||(e.selectedIndex=-1),n}}},attr:function(e,t,n){var i,r,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return typeof e.getAttribute==g?w.prop(e,t,n):((o=1!==o||!w.isXMLDoc(e))&&(t=t.toLowerCase(),i=w.attrHooks[t]||(Pe.test(t)?ge:he)),n===H?!(i&&o&&"get"in i&&null!==(r=i.get(e,t)))&&null==(r=typeof e.getAttribute!=g?e.getAttribute(t):r)?H:r:null!==n?i&&o&&"set"in i&&(r=i.set(e,n,t))!==H?r:(e.setAttribute(t,n+""),n):(w.removeAttr(e,t),H))},removeAttr:function(e,t){var n,i,r=0,o=t&&t.match(C);if(o&&1===e.nodeType)for(;n=o[r++];)i=w.propFix[n]||n,Pe.test(n)?!a&&xe.test(n)?e[w.camelCase("default-"+n)]=e[i]=!1:e[i]=!1:w.attr(e,n,""),e.removeAttribute(a?n:i)},attrHooks:{type:{set:function(e,t){var n;if(!w.support.radioValue&&"radio"===t&&w.nodeName(e,"input"))return n=e.value,e.setAttribute("type",t),n&&(e.value=n),t}}},propFix:{tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(e,t,n){var i,r,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return(1!==o||!w.isXMLDoc(e))&&(t=w.propFix[t]||t,r=w.propHooks[t]),n!==H?r&&"set"in r&&(i=r.set(e,n,t))!==H?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=e.getAttributeNode("tabindex");return t&&t.specified?parseInt(t.value,10):ve.test(e.nodeName)||be.test(e.nodeName)&&e.href?0:H}}}}),ge={get:function(e,t){var n=w.prop(e,t),i="boolean"==typeof n&&e.getAttribute(t),n="boolean"==typeof n?He&&a?null!=i:xe.test(t)?e[w.camelCase("default-"+t)]:!!i:e.getAttributeNode(t);return n&&!1!==n.value?t.toLowerCase():H},set:function(e,t,n){return!1===t?w.removeAttr(e,n):He&&a||!xe.test(n)?e.setAttribute(!a&&w.propFix[n]||n,n):e[w.camelCase("default-"+n)]=e[n]=!0,n}},He&&a||(w.attrHooks.value={get:function(e,t){t=e.getAttributeNode(t);return w.nodeName(e,"input")?e.defaultValue:t&&t.specified?t.value:H},set:function(e,t,n){return w.nodeName(e,"input")?(e.defaultValue=t,H):he&&he.set(e,t,n)}}),a||(he=w.valHooks.button={get:function(e,t){e=e.getAttributeNode(t);return e&&("id"===t||"name"===t||"coords"===t?""!==e.value:e.specified)?e.value:H},set:function(e,t,n){var i=e.getAttributeNode(n);return i||e.setAttributeNode(i=e.ownerDocument.createAttribute(n)),i.value=t+="","value"===n||t===e.getAttribute(n)?t:H}},w.attrHooks.contenteditable={get:he.get,set:function(e,t,n){he.set(e,""!==t&&t,n)}},w.each(["width","height"],function(e,n){w.attrHooks[n]=w.extend(w.attrHooks[n],{set:function(e,t){return""===t?(e.setAttribute(n,"auto"),t):H}})})),w.support.hrefNormalized||(w.each(["href","src","width","height"],function(e,t){w.attrHooks[t]=w.extend(w.attrHooks[t],{get:function(e){e=e.getAttribute(t,2);return null==e?H:e}})}),w.each(["href","src"],function(e,t){w.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}})),w.support.style||(w.attrHooks.style={get:function(e){return e.style.cssText||H},set:function(e,t){return e.style.cssText=t+""}}),w.support.optSelected||(w.propHooks.selected=w.extend(w.propHooks.selected,{get:function(e){e=e.parentNode;return e&&(e.selectedIndex,e.parentNode)&&e.parentNode.selectedIndex,null}})),w.support.enctype||(w.propFix.enctype="encoding"),w.support.checkOn||w.each(["radio","checkbox"],function(){w.valHooks[this]={get:function(e){return null===e.getAttribute("value")?"on":e.value}}}),w.each(["radio","checkbox"],function(){w.valHooks[this]=w.extend(w.valHooks[this],{set:function(e,t){return w.isArray(t)?e.checked=0<=w.inArray(w(e).val(),t):H}})}),/^(?:input|select|textarea)$/i),Ce=/^key/,Te=/^(?:mouse|contextmenu)|click/,Se=/^(?:focusinfocus|focusoutblur)$/,Ee=/^([^.]*)(?:\.(.+)|)$/;function ke(){return!0}function je(){return!1}w.event={global:{},add:function(e,t,n,i,r){var o,a,s,c,l,u,d,f,p,h=w._data(e);if(h)for(n.handler&&(n=(s=n).handler,r=s.selector),n.guid||(n.guid=w.guid++),o=(o=h.events)||(h.events={}),(l=h.handle)||((l=h.handle=function(e){return typeof w==g||e&&w.event.triggered===e.type?H:w.event.dispatch.apply(l.elem,arguments)}).elem=e),a=(t=(t||"").match(C)||[""]).length;a--;)d=p=(f=Ee.exec(t[a])||[])[1],f=(f[2]||"").split(".").sort(),c=w.event.special[d]||{},d=(r?c.delegateType:c.bindType)||d,c=w.event.special[d]||{},p=w.extend({type:d,origType:p,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&w.expr.match.needsContext.test(r),namespace:f.join(".")},s),(u=o[d])||((u=o[d]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(e,i,f,l))||(e.addEventListener?e.addEventListener(d,l,!1):e.attachEvent&&e.attachEvent("on"+d,l)),c.add&&(c.add.call(e,p),p.handler.guid||(p.handler.guid=n.guid)),r?u.splice(u.delegateCount++,0,p):u.push(p),w.event.global[d]=!0},remove:function(e,t,n,i,r){var o,a,s,c,l,u,d,f,p,h,g,m=w.hasData(e)&&w._data(e);if(m&&(u=m.events)){for(l=(t=(t||"").match(C)||[""]).length;l--;)if(p=g=(s=Ee.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),p){for(d=w.event.special[p]||{},f=u[p=(i?d.delegateType:d.bindType)||p]||[],s=s[2]&&RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),c=o=f.length;o--;)a=f[o],!r&&g!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||i&&i!==a.selector&&("**"!==i||!a.selector)||(f.splice(o,1),a.selector&&f.delegateCount--,d.remove&&d.remove.call(e,a));c&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,h,m.handle)||w.removeEvent(e,p,m.handle),delete u[p])}else for(p in u)w.event.remove(e,p+t[l],n,i,!0);w.isEmptyObject(u)&&(delete m.handle,w._removeData(e,"events"))}},trigger:function(e,t,n,i){var r,o,a,s,c,l,u=[n||m],d=V.call(e,"type")?e.type:e,f=V.call(e,"namespace")?e.namespace.split("."):[],p=c=n=n||m;if(3!==n.nodeType&&8!==n.nodeType&&!Se.test(d+w.event.triggered)&&(0<=d.indexOf(".")&&(d=(f=d.split(".")).shift(),f.sort()),o=d.indexOf(":")<0&&"on"+d,(e=e[w.expando]?e:new w.Event(d,"object"==typeof e&&e)).isTrigger=!0,e.namespace=f.join("."),e.namespace_re=e.namespace?RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=H,e.target||(e.target=n),t=null==t?[e]:w.makeArray(t,[e]),s=w.event.special[d]||{},i||!s.trigger||!1!==s.trigger.apply(n,t))){if(!i&&!s.noBubble&&!w.isWindow(n)){for(a=s.delegateType||d,Se.test(a+d)||(p=p.parentNode);p;p=p.parentNode)u.push(p),c=p;c===(n.ownerDocument||m)&&u.push(c.defaultView||c.parentWindow||h)}for(l=0;(p=u[l++])&&!e.isPropagationStopped();)e.type=1<l?a:s.bindType||d,(r=(w._data(p,"events")||{})[e.type]&&w._data(p,"handle"))&&r.apply(p,t),(r=o&&p[o])&&w.acceptData(p)&&r.apply&&!1===r.apply(p,t)&&e.preventDefault();if(e.type=d,!(i||e.isDefaultPrevented()||s._default&&!1!==s._default.apply(n.ownerDocument,t)||"click"===d&&w.nodeName(n,"a"))&&w.acceptData(n)&&o&&n[d]&&!w.isWindow(n)){(c=n[o])&&(n[o]=null),w.event.triggered=d;try{n[d]()}catch(e){}w.event.triggered=H,c&&(n[o]=c)}return e.result}},dispatch:function(e){e=w.event.fix(e);var t,n,i,r,o,a=u.call(arguments),s=(w._data(this,"events")||{})[e.type]||[],c=w.event.special[e.type]||{};if((a[0]=e).delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,e)){for(o=w.event.handlers.call(this,e,s),t=0;(i=o[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,r=0;(n=i.handlers[r++])&&!e.isImmediatePropagationStopped();)e.namespace_re&&!e.namespace_re.test(n.namespace)||(e.handleObj=n,e.data=n.data,(n=((w.event.special[n.origType]||{}).handle||n.handler).apply(i.elem,a))===H)||!1!==(e.result=n)||(e.preventDefault(),e.stopPropagation());return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,i,r,o,a=[],s=t.delegateCount,c=e.target;if(s&&c.nodeType&&(!e.button||"click"!==e.type))for(;c!=this;c=c.parentNode||this)if(1===c.nodeType&&(!0!==c.disabled||"click"!==e.type)){for(r=[],o=0;o<s;o++)r[n=(i=t[o]).selector+" "]===H&&(r[n]=i.needsContext?0<=w(n,this).index(c):w.find(n,this,null,[c]).length),r[n]&&r.push(i);r.length&&a.push({elem:c,handlers:r})}return t.length>s&&a.push({elem:this,handlers:t.slice(s)}),a},fix:function(e){if(e[w.expando])return e;var t,n,i,r=e.type,o=e,a=this.fixHooks[r];for(a||(this.fixHooks[r]=a=Te.test(r)?this.mouseHooks:Ce.test(r)?this.keyHooks:{}),i=a.props?this.props.concat(a.props):this.props,e=new w.Event(o),t=i.length;t--;)e[n=i[t]]=o[n];return e.target||(e.target=o.srcElement||m),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,a.filter?a.filter(e,o):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,i,r=t.button,o=t.fromElement;return null==e.pageX&&null!=t.clientX&&(i=(n=e.target.ownerDocument||m).documentElement,n=n.body,e.pageX=t.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&o&&(e.relatedTarget=o===e.target?t.toElement:o),e.which||r===H||(e.which=1&r?1:2&r?3:4&r?2:0),e}},special:{load:{noBubble:!0},click:{trigger:function(){return w.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):H}},focus:{trigger:function(){if(this!==m.activeElement&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===m.activeElement&&this.blur?(this.blur(),!1):H},delegateType:"focusout"},beforeunload:{postDispatch:function(e){e.result!==H&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,i){e=w.extend(new w.Event,n,{type:e,isSimulated:!0,originalEvent:{}});i?w.event.trigger(e,null,t):w.event.dispatch.call(t,e),e.isDefaultPrevented()&&n.preventDefault()}},w.removeEvent=m.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){t="on"+t;e.detachEvent&&(typeof e[t]==g&&(e[t]=null),e.detachEvent(t,n))},w.Event=function(e,t){return this instanceof w.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||!1===e.returnValue||e.getPreventDefault&&e.getPreventDefault()?ke:je):this.type=e,t&&w.extend(this,t),this.timeStamp=e&&e.timeStamp||w.now(),this[w.expando]=!0,H):new w.Event(e,t)},w.Event.prototype={isDefaultPrevented:je,isPropagationStopped:je,isImmediatePropagationStopped:je,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ke,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ke,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ke,this.stopPropagation()}},w.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,r){w.event.special[e]={delegateType:r,bindType:r,handle:function(e){var t,n=e.relatedTarget,i=e.handleObj;return n&&(n===this||w.contains(this,n))||(e.type=i.origType,t=i.handler.apply(this,arguments),e.type=r),t}}}),w.support.submitBubbles||(w.event.special.submit={setup:function(){return!w.nodeName(this,"form")&&(w.event.add(this,"click._submit keypress._submit",function(e){e=e.target,e=w.nodeName(e,"input")||w.nodeName(e,"button")?e.form:H;e&&!w._data(e,"submitBubbles")&&(w.event.add(e,"submit._submit",function(e){e._submit_bubble=!0}),w._data(e,"submitBubbles",!0))}),H)},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode)&&!e.isTrigger&&w.event.simulate("submit",this.parentNode,e,!0)},teardown:function(){return!w.nodeName(this,"form")&&(w.event.remove(this,"._submit"),H)}}),w.support.changeBubbles||(w.event.special.change={setup:function(){return we.test(this.nodeName)?("checkbox"!==this.type&&"radio"!==this.type||(w.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),w.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),w.event.simulate("change",this,e,!0)})),!1):(w.event.add(this,"beforeactivate._change",function(e){e=e.target;we.test(e.nodeName)&&!w._data(e,"changeBubbles")&&(w.event.add(e,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||w.event.simulate("change",this.parentNode,e,!0)}),w._data(e,"changeBubbles",!0))}),H)},handle:function(e){var t=e.target;return this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type?e.handleObj.handler.apply(this,arguments):H},teardown:function(){return w.event.remove(this,"._change"),!we.test(this.nodeName)}}),w.support.focusinBubbles||w.each({focus:"focusin",blur:"focusout"},function(e,t){function n(e){w.event.simulate(t,e.target,w.event.fix(e),!0)}var i=0;w.event.special[t]={setup:function(){0==i++&&m.addEventListener(e,n,!0)},teardown:function(){0==--i&&m.removeEventListener(e,n,!0)}}}),w.fn.extend({on:function(e,t,n,i,r){var o,a;if("object"==typeof e){for(o in"string"!=typeof t&&(n=n||t,t=H),e)this.on(o,t,n,e[o],r);return this}if(null==n&&null==i?(i=t,n=t=H):null==i&&("string"==typeof t?(i=n,n=H):(i=n,n=t,t=H)),!1===i)i=je;else if(!i)return this;return 1===r&&(a=i,(i=function(e){return w().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=w.guid++)),this.each(function(){w.event.add(this,e,i,n,t)})},one:function(e,t,n,i){return this.on(e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)i=e.handleObj,w(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler);else{if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=H),!1===n&&(n=je),this.each(function(){w.event.remove(this,e,n,t)});for(r in e)this.off(r,t,e[r])}return this},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},trigger:function(e,t){return this.each(function(){w.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?w.event.trigger(e,t,n,!0):H}});var Ne,Ie,x,Ae,De,Le,Fe,Oe,Me,T,n,P,S,qe,Be,_e,Re,ze=h,Qe=void 0,E="sizzle"+-new Date,k=ze.document,j={},N=0,$e=0,Xe=gt(),We=gt(),Ve=gt(),i=typeof Qe,e=[],Ue=e.pop,Je=e.push,Ye=e.slice,Ge=e.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},r="[\\x20\\t\\r\\n\\f]",Ke=(e="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+").replace("w","w#"),Ze="\\["+r+"*("+e+")"+r+"*(?:([*^$|!~]?=)"+r+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+Ke+")|)|)"+r+"*\\]",et=":("+e+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+Ze.replace(3,8)+")*)|.*)\\)|)",tt=RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),nt=RegExp("^"+r+"*,"+r+"*"),it=RegExp("^"+r+"*([\\x20\\t\\r\\n\\f>+~])"+r+"*"),rt=RegExp(et),ot=RegExp("^"+Ke+"$"),at={ID:RegExp("^#("+e+")"),CLASS:RegExp("^\\.("+e+")"),NAME:RegExp("^\\[name=['\"]?("+e+")['\"]?\\]"),TAG:RegExp("^("+e.replace("w","w*")+")"),ATTR:RegExp("^"+Ze),PSEUDO:RegExp("^"+et),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),needsContext:RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},st=/[\x20\t\r\n\f]*[+~]/,ct=/^[^{]+\{\s*\[native code/,lt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ut=/^(?:input|select|textarea|button)$/i,dt=/^h\d$/i,ft=/'|\\/g,pt=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,I=/\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g,A=function(e,t){var n="0x"+t-65536;return n!=n?t:n<0?String.fromCharCode(65536+n):String.fromCharCode(55296|n>>10,56320|1023&n)};try{Ye.call(k.documentElement.childNodes,0)[0].nodeType}catch(e){Ye=function(e){for(var t,n=[];t=this[e++];)n.push(t);return n}}function ht(e){return ct.test(e+"")}function gt(){var n,i=[];return n=function(e,t){return i.push(e+=" ")>x.cacheLength&&delete n[i.shift()],n[e]=t}}function c(e){return e[E]=!0,e}function o(e){var t=T.createElement("div");try{return e(t)}catch(e){return!1}}function D(e,t,n,i){var r,o,a,s,c,l;if((t?t.ownerDocument||t:k)!==T&&Me(t),n=n||[],!e||"string"!=typeof e)return n;if(1!==(b=(t=t||T).nodeType)&&9!==b)return[];if(!P&&!i){if(c=lt.exec(e))if(l=c[1]){if(9===b){if(!(a=t.getElementById(l))||!a.parentNode)return n;if(a.id===l)return n.push(a),n}else if(t.ownerDocument&&(a=t.ownerDocument.getElementById(l))&&_e(t,a)&&a.id===l)return n.push(a),n}else{if(c[2])return Je.apply(n,Ye.call(t.getElementsByTagName(e),0)),n;if((l=c[3])&&j.getByClassName&&t.getElementsByClassName)return Je.apply(n,Ye.call(t.getElementsByClassName(l),0)),n}if(j.qsa&&!S.test(e)){if(a=!0,s=E,c=t,l=9===b&&e,1===b&&"object"!==t.nodeName.toLowerCase()){for(o=yt(e),(a=t.getAttribute("id"))?s=a.replace(ft,"\\$&"):t.setAttribute("id",s),s="[id='"+s+"'] ",r=o.length;r--;)o[r]=s+vt(o[r]);c=st.test(e)&&t.parentNode||t,l=o.join(",")}if(l)try{return Je.apply(n,Ye.call(c.querySelectorAll(l),0)),n}catch(e){}finally{a||t.removeAttribute("id")}}}var u,d,f,p,h,g=e.replace(tt,"$1"),m=t,y=n,v=i,b=yt(g);if(!v&&1===b.length){if(2<(d=b[0]=b[0].slice(0)).length&&"ID"===(f=d[0]).type&&9===m.nodeType&&!P&&x.relative[d[1].type]){if(!(m=x.find.ID(f.matches[0].replace(I,A),m)[0]))return y;g=g.slice(d.shift().value.length)}for(u=at.needsContext.test(g)?0:d.length;u--&&(f=d[u],!x.relative[p=f.type]);)if((h=x.find[p])&&(v=h(f.matches[0].replace(I,A),st.test(d[0].type)&&m.parentNode||m))){if(d.splice(u,1),g=v.length&&vt(d))break;return Je.apply(y,Ye.call(v,0)),y}}return Le(g,b)(v,m,P,y,st.test(g)),y}function mt(e,t){var n=t&&e,i=n&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(a){return c(function(o){return o=+o,c(function(e,t){for(var n,i=a([],e.length,o),r=i.length;r--;)e[n=i[r]]&&(e[n]=!(t[n]=e[n]))})})}for(Ne in De=D.isXML=function(e){e=e&&(e.ownerDocument||e).documentElement;return!!e&&"HTML"!==e.nodeName},Me=D.setDocument=function(e){var c=e?e.ownerDocument||e:k;return c!==T&&9===c.nodeType&&c.documentElement&&(n=(T=c).documentElement,P=De(c),j.tagNameNoComments=o(function(e){return e.appendChild(c.createComment("")),!e.getElementsByTagName("*").length}),j.attributes=o(function(e){e.innerHTML="<select></select>";e=typeof e.lastChild.getAttribute("multiple");return"boolean"!=e&&"string"!=e}),j.getByClassName=o(function(e){return e.innerHTML="<div class='hidden e'></div><div class='hidden'></div>",!(!e.getElementsByClassName||!e.getElementsByClassName("e").length)&&(e.lastChild.className="e",2===e.getElementsByClassName("e").length)}),j.getByName=o(function(e){e.id=E+0,e.innerHTML="<a name='"+E+"'></a><div name='"+E+"'></div>",n.insertBefore(e,n.firstChild);var t=c.getElementsByName&&c.getElementsByName(E).length===2+c.getElementsByName(E+0).length;return j.getIdNotName=!c.getElementById(E),n.removeChild(e),t}),x.attrHandle=o(function(e){return e.innerHTML="<a href='#'></a>",e.firstChild&&typeof e.firstChild.getAttribute!=i&&"#"===e.firstChild.getAttribute("href")})?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},j.getIdNotName?(x.find.ID=function(e,t){if(typeof t.getElementById!=i&&!P)return(t=t.getElementById(e))&&t.parentNode?[t]:[]},x.filter.ID=function(e){var t=e.replace(I,A);return function(e){return e.getAttribute("id")===t}}):(x.find.ID=function(e,t){if(typeof t.getElementById!=i&&!P)return(t=t.getElementById(e))?t.id===e||typeof t.getAttributeNode!=i&&t.getAttributeNode("id").value===e?[t]:Qe:[]},x.filter.ID=function(e){var t=e.replace(I,A);return function(e){e=typeof e.getAttributeNode!=i&&e.getAttributeNode("id");return e&&e.value===t}}),x.find.TAG=j.tagNameNoComments?function(e,t){return typeof t.getElementsByTagName!=i?t.getElementsByTagName(e):Qe}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[r++];)1===n.nodeType&&i.push(n);return i},x.find.NAME=j.getByName&&function(e,t){return typeof t.getElementsByName!=i?t.getElementsByName(name):Qe},x.find.CLASS=j.getByClassName&&function(e,t){return typeof t.getElementsByClassName==i||P?Qe:t.getElementsByClassName(e)},qe=[],S=[":focus"],(j.qsa=ht(c.querySelectorAll))&&(o(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||S.push("\\["+r+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||S.push(":checked")}),o(function(e){e.innerHTML="<input type='hidden' i=''/>",e.querySelectorAll("[i^='']").length&&S.push("[*^$]="+r+"*(?:\"\"|'')"),e.querySelectorAll(":enabled").length||S.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),S.push(",.*:")})),(j.matchesSelector=ht(Be=n.matchesSelector||n.mozMatchesSelector||n.webkitMatchesSelector||n.oMatchesSelector||n.msMatchesSelector))&&o(function(e){j.disconnectedMatch=Be.call(e,"div"),Be.call(e,"[s!='']:x"),qe.push("!=",et)}),S=RegExp(S.join("|")),qe=RegExp(qe.join("|")),_e=ht(n.contains)||n.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},Re=n.compareDocumentPosition?function(e,t){var n;return e===t?(Fe=!0,0):(n=t.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(t))?1&n||e.parentNode&&11===e.parentNode.nodeType?e===c||_e(k,e)?-1:t===c||_e(k,t)?1:0:4&n?-1:1:e.compareDocumentPosition?-1:1}:function(e,t){var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(e===t)return Fe=!0,0;if(!r||!o)return e===c?-1:t===c?1:r?-1:o?1:0;if(r===o)return mt(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?mt(a[i],s[i]):a[i]===k?-1:s[i]===k?1:0},Fe=!1,[0,0].sort(Re),j.detectDuplicates=Fe),T},D.matches=function(e,t){return D(e,null,null,t)},D.matchesSelector=function(e,t){if((e.ownerDocument||e)!==T&&Me(e),t=t.replace(pt,"='$1']"),!(!j.matchesSelector||P||qe&&qe.test(t)||S.test(t)))try{var n=Be.call(e,t);if(n||j.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0<D(t,T,null,[e]).length},D.contains=function(e,t){return(e.ownerDocument||e)!==T&&Me(e),_e(e,t)},D.attr=function(e,t){var n;return(e.ownerDocument||e)!==T&&Me(e),P||(t=t.toLowerCase()),(n=x.attrHandle[t])?n(e):P||j.attributes?e.getAttribute(t):((n=e.getAttributeNode(t))||e.getAttribute(t))&&!0===e[t]?t:n&&n.specified?n.value:null},D.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},D.uniqueSort=function(e){var t,n=[],i=1,r=0;if(Fe=!j.detectDuplicates,e.sort(Re),Fe){for(;t=e[i];i++)t===e[i-1]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return e},Ae=D.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=Ae(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i];i++)n+=Ae(t);return n},x=D.selectors={cacheLength:50,createPseudo:c,match:at,find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(I,A),e[3]=(e[4]||e[5]||"").replace(I,A),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||D.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&D.error(e[0]),e},PSEUDO:function(e){var t,n=!e[5]&&e[2];return at.CHILD.test(e[0])?null:(e[4]?e[2]=e[4]:n&&rt.test(n)&&(t=(t=yt(n,!0))&&n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(t){return"*"===t?function(){return!0}:(t=t.replace(I,A).toLowerCase(),function(e){return e.nodeName&&e.nodeName.toLowerCase()===t})},CLASS:function(e){var t=Xe[e+" "];return t||(t=RegExp("(^|"+r+")"+e+"("+r+"|$)"))&&Xe(e,function(e){return t.test(e.className||typeof e.getAttribute!=i&&e.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(e){e=D.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===i:"!="===n?e!==i:"^="===n?i&&0===e.indexOf(i):"*="===n?i&&-1<e.indexOf(i):"$="===n?i&&e.slice(-i.length)===i:"~="===n?-1<(" "+e+" ").indexOf(i):"|="===n&&(e===i||e.slice(0,i.length+1)===i+"-"))}},CHILD:function(p,e,t,h,g){var m="nth"!==p.slice(0,3),y="last"!==p.slice(-4),v="of-type"===e;return 1===h&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var i,r,o,a,s,c,l=m!=y?"nextSibling":"previousSibling",u=e.parentNode,d=v&&e.nodeName.toLowerCase(),f=!n&&!v;if(u){if(m){for(;l;){for(o=e;o=o[l];)if(v?o.nodeName.toLowerCase()===d:1===o.nodeType)return!1;c=l="only"===p&&!c&&"nextSibling"}return!0}if(c=[y?u.firstChild:u.lastChild],y&&f){for(s=(i=(r=u[E]||(u[E]={}))[p]||[])[0]===N&&i[1],a=i[0]===N&&i[2],o=s&&u.childNodes[s];o=++s&&o&&o[l]||(a=s=0,c.pop());)if(1===o.nodeType&&++a&&o===e){r[p]=[N,s,a];break}}else if(f&&(i=(e[E]||(e[E]={}))[p])&&i[0]===N)a=i[1];else for(;(o=++s&&o&&o[l]||(a=s=0,c.pop()))&&((v?o.nodeName.toLowerCase()!==d:1!==o.nodeType)||!++a||(f&&((o[E]||(o[E]={}))[p]=[N,a]),o!==e)););return(a-=g)===h||0==a%h&&0<=a/h}}},PSEUDO:function(e,o){var t,a=x.pseudos[e]||x.setFilters[e.toLowerCase()]||D.error("unsupported pseudo: "+e);return a[E]?a(o):1<a.length?(t=[e,e,"",o],x.setFilters.hasOwnProperty(e.toLowerCase())?c(function(e,t){for(var n,i=a(e,o),r=i.length;r--;)e[n=Ge.call(e,i[r])]=!(t[n]=i[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:c(function(e){var i=[],r=[],s=Le(e.replace(tt,"$1"));return s[E]?c(function(e,t,n,i){for(var r,o=s(e,null,i,[]),a=e.length;a--;)(r=o[a])&&(e[a]=!(t[a]=r))}):function(e,t,n){return i[0]=e,s(i,null,n,r),!r.pop()}}),has:c(function(t){return function(e){return 0<D(t,e).length}}),contains:c(function(t){return function(e){return-1<(e.textContent||e.innerText||Ae(e)).indexOf(t)}}),lang:c(function(n){return ot.test(n||"")||D.error("unsupported lang: "+n),n=n.replace(I,A).toLowerCase(),function(e){var t;do{if(t=P?e.getAttribute("xml:lang")||e.getAttribute("lang"):e.lang)return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=ze.location&&ze.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===n},focus:function(e){return e===T.activeElement&&(!T.hasFocus||T.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if("@"<e.nodeName||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!x.pseudos.empty(e)},header:function(e){return dt.test(e.nodeName)},input:function(e){return ut.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:s(function(){return[0]}),last:s(function(e,t){return[t-1]}),eq:s(function(e,t,n){return[n<0?n+t:n]}),even:s(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:s(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:s(function(e,t,n){for(var i=n<0?n+t:n;0<=--i;)e.push(i);return e}),gt:s(function(e,t,n){for(var i=n<0?n+t:n;t>++i;)e.push(i);return e})}},{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[Ne]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(Ne);for(Ne in{submit:!0,reset:!0})x.pseudos[Ne]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(Ne);function yt(e,t){var n,i,r,o,a,s,c,l=We[e+" "];if(l)return t?0:l.slice(0);for(a=e,s=[],c=x.preFilter;a;){for(o in n&&!(i=nt.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=it.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(tt," ")}),a=a.slice(n.length)),x.filter)!(i=at[o].exec(a))||c[o]&&!(i=c[o](i))||(n=i.shift(),r.push({value:n,type:o,matches:i}),a=a.slice(n.length));if(!n)break}return t?a.length:a?D.error(e):We(e,s).slice(0)}function vt(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function bt(s,e,t){var c=e.dir,l=t&&"parentNode"===c,u=$e++;return e.first?function(e,t,n){for(;e=e[c];)if(1===e.nodeType||l)return s(e,t,n)}:function(e,t,n){var i,r,o,a=N+" "+u;if(n){for(;e=e[c];)if((1===e.nodeType||l)&&s(e,t,n))return!0}else for(;e=e[c];)if(1===e.nodeType||l)if((r=(o=e[E]||(e[E]={}))[c])&&r[0]===a){if(!0===(i=r[1])||i===Ie)return!0===i}else if((r=o[c]=[a])[1]=s(e,t,n)||Ie,!0===r[1])return!0}}function Pt(r){return 1<r.length?function(e,t,n){for(var i=r.length;i--;)if(!r[i](e,t,n))return!1;return!0}:r[0]}function xt(e,t,n,i,r){for(var o,a=[],s=0,c=e.length,l=null!=t;s<c;s++)(o=e[s])&&(!n||n(o,i,r))&&(a.push(o),l)&&t.push(s);return a}function Ht(p,h,g,m,y,e){return m&&!m[E]&&(m=Ht(m)),y&&!y[E]&&(y=Ht(y,e)),c(function(e,t,n,i){var r,o,a,s=[],c=[],l=t.length,u=e||function(e,t,n){for(var i=0,r=t.length;i<r;i++)D(e,t[i],n);return n}(h||"*",n.nodeType?[n]:n,[]),d=!p||!e&&h?u:xt(u,s,p,n,i),f=g?y||(e?p:l||m)?[]:t:d;if(g&&g(d,f,n,i),m)for(r=xt(f,c),m(r,[],n,i),o=r.length;o--;)(a=r[o])&&(f[c[o]]=!(d[c[o]]=a));if(e){if(y||p){if(y){for(r=[],o=f.length;o--;)(a=f[o])&&r.push(d[o]=a);y(null,f=[],r,i)}for(o=f.length;o--;)(a=f[o])&&-1<(r=y?Ge.call(e,a):s[o])&&(e[r]=!(t[r]=a))}}else f=xt(f===t?f.splice(l,f.length):f),y?y(null,t,f,i):Je.apply(t,f)})}function wt(m,y){function e(e,t,n,i,r){var o,a,s,c=[],l=0,u="0",d=e&&[],f=null!=r,p=Oe,h=e||P&&x.find.TAG("*",r&&t.parentNode||t),g=N+=null==p?1:Math.random()||.1;for(f&&(Oe=t!==T&&t,Ie=v);null!=(o=h[u]);u++){if(P&&o){for(a=0;s=m[a++];)if(s(o,t,n)){i.push(o);break}f&&(N=g,Ie=++v)}b&&((o=!s&&o)&&l--,e)&&d.push(o)}if(l+=u,b&&u!==l){for(a=0;s=y[a++];)s(d,c,t,n);if(e){if(0<l)for(;u--;)d[u]||c[u]||(c[u]=Ue.call(i));c=xt(c)}Je.apply(i,c),f&&!e&&0<c.length&&1<l+y.length&&D.uniqueSort(i)}return f&&(N=g,Oe=p),d}var v=0,b=0<y.length,P=0<m.length;return b?c(e):e}function Ct(){}Le=D.compile=function(e,t){var n,i=[],r=[],o=Ve[e+" "];if(!o){for(n=(t=t||yt(e)).length;n--;)((o=function e(t){for(var i,n,r,o=t.length,a=x.relative[t[0].type],s=a||x.relative[" "],c=a?1:0,l=bt(function(e){return e===i},s,!0),u=bt(function(e){return-1<Ge.call(i,e)},s,!0),d=[function(e,t,n){return!a&&(n||t!==Oe)||((i=t).nodeType?l:u)(e,t,n)}];c<o;c++)if(n=x.relative[t[c].type])d=[bt(Pt(d),n)];else{if((n=x.filter[t[c].type].apply(null,t[c].matches))[E]){for(r=++c;r<o&&!x.relative[t[r].type];r++);return Ht(1<c&&Pt(d),1<c&&vt(t.slice(0,c-1)).replace(tt,"$1"),n,c<r&&e(t.slice(c,r)),r<o&&e(t=t.slice(r)),r<o&&vt(t))}d.push(n)}return Pt(d)}(t[n]))[E]?i:r).push(o);o=Ve(e,wt(r,i))}return o},x.pseudos.nth=x.pseudos.eq,x.filters=Ct.prototype=x.pseudos,x.setFilters=new Ct,Me(),D.attr=w.attr,w.find=D,w.expr=D.selectors,w.expr[":"]=w.expr.pseudos,w.unique=D.uniqueSort,w.text=D.getText,w.isXMLDoc=D.isXML,w.contains=D.contains;var Tt=/Until$/,St=/^(?:parents|prev(?:Until|All))/,Et=/^.[^:#\[\.,]*$/,kt=w.expr.match.needsContext,jt={children:!0,contents:!0,next:!0,prev:!0};function Nt(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function It(e,n,i){if(n=n||0,w.isFunction(n))return w.grep(e,function(e,t){return!!n.call(e,t,e)===i});if(n.nodeType)return w.grep(e,function(e){return e===n===i});if("string"==typeof n){var t=w.grep(e,function(e){return 1===e.nodeType});if(Et.test(n))return w.filter(n,t,!i);n=w.filter(n,t)}return w.grep(e,function(e){return 0<=w.inArray(e,n)===i})}function At(e){var t=Dt.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}w.fn.extend({find:function(e){var t,n,i,r=this.length;if("string"!=typeof e)return(i=this).pushStack(w(e).filter(function(){for(t=0;t<r;t++)if(w.contains(i[t],this))return!0}));for(n=[],t=0;t<r;t++)w.find(e,this[t],n);return(n=this.pushStack(1<r?w.unique(n):n)).selector=(this.selector?this.selector+" ":"")+e,n},has:function(e){var t,n=w(e,this),i=n.length;return this.filter(function(){for(t=0;t<i;t++)if(w.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(It(this,e,!1))},filter:function(e){return this.pushStack(It(this,e,!0))},is:function(e){return!!e&&("string"==typeof e?kt.test(e)?0<=w(e,this.context).index(this[0]):0<w.filter(e,this).length:0<this.filter(e).length)},closest:function(e,t){for(var n,i=0,r=this.length,o=[],a=kt.test(e)||"string"!=typeof e?w(e,t||this.context):0;i<r;i++)for(n=this[i];n&&n.ownerDocument&&n!==t&&11!==n.nodeType;){if(a?-1<a.index(n):w.find.matchesSelector(n,e)){o.push(n);break}n=n.parentNode}return this.pushStack(1<o.length?w.unique(o):o)},index:function(e){return e?"string"==typeof e?w.inArray(this[0],w(e)):w.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){t="string"==typeof e?w(e,t):w.makeArray(e&&e.nodeType?[e]:e),e=w.merge(this.get(),t);return this.pushStack(w.unique(e))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),w.fn.andSelf=w.fn.addBack,w.each({parent:function(e){e=e.parentNode;return e&&11!==e.nodeType?e:null},parents:function(e){return w.dir(e,"parentNode")},parentsUntil:function(e,t,n){return w.dir(e,"parentNode",n)},next:function(e){return Nt(e,"nextSibling")},prev:function(e){return Nt(e,"previousSibling")},nextAll:function(e){return w.dir(e,"nextSibling")},prevAll:function(e){return w.dir(e,"previousSibling")},nextUntil:function(e,t,n){return w.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return w.dir(e,"previousSibling",n)},siblings:function(e){return w.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return w.sibling(e.firstChild)},contents:function(e){return w.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:w.merge([],e.childNodes)}},function(i,r){w.fn[i]=function(e,t){var n=w.map(this,r,e);return(t=Tt.test(i)?t:e)&&"string"==typeof t&&(n=w.filter(t,n)),n=1<this.length&&!jt[i]?w.unique(n):n,1<this.length&&St.test(i)&&(n=n.reverse()),this.pushStack(n)}}),w.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),1===t.length?w.find.matchesSelector(t[0],e)?[t[0]]:[]:w.find.matches(e,t)},dir:function(e,t,n){for(var i=[],r=e[t];r&&9!==r.nodeType&&(n===H||1!==r.nodeType||!w(r).is(n));)1===r.nodeType&&i.push(r),r=r[t];return i},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});var Dt="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Lt=/ jQuery\d+="(?:null|\d+)"/g,Ft=RegExp("<(?:"+Dt+")[\\s/>]","i"),Ot=/^\s+/,Mt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,qt=/<([\w:]+)/,Bt=/<tbody/i,_t=/<|&#?\w+;/,Rt=/<(?:script|style|link)/i,zt=/^(?:checkbox|radio)$/i,Qt=/checked\s*(?:[^=]|=\s*.checked.)/i,$t=/^$|\/(?:java|ecma)script/i,Xt=/^true\/(.*)/,Wt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,y={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>"],_default:w.support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},Vt=At(m).appendChild(m.createElement("div"));function Ut(e){var t=e.getAttributeNode("type");return e.type=(t&&t.specified)+"/"+e.type,e}function Jt(e){var t=Xt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Yt(e,t){for(var n,i=0;null!=(n=e[i]);i++)w._data(n,"globalEval",!t||w._data(t[i],"globalEval"))}function Gt(e,t){if(1===t.nodeType&&w.hasData(e)){var n,i,r,e=w._data(e),o=w._data(t,e),a=e.events;if(a)for(n in delete o.handle,o.events={},a)for(i=0,r=a[n].length;i<r;i++)w.event.add(t,n,a[n][i]);o.data&&(o.data=w.extend({},o.data))}}function v(e,t){var n,i,r=0,o=typeof e.getElementsByTagName!=g?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!=g?e.querySelectorAll(t||"*"):H;if(!o)for(o=[],n=e.childNodes||e;null!=(i=n[r]);r++)!t||w.nodeName(i,t)?o.push(i):w.merge(o,v(i,t));return t===H||t&&w.nodeName(e,t)?w.merge([e],o):o}function Kt(e){zt.test(e.type)&&(e.defaultChecked=e.checked)}y.optgroup=y.option,y.tbody=y.tfoot=y.colgroup=y.caption=y.thead,y.th=y.td,w.fn.extend({text:function(e){return w.access(this,function(e){return e===H?w.text(this):this.empty().append((this[0]&&this[0].ownerDocument||m).createTextNode(e))},null,e,arguments.length)},wrapAll:function(t){var e;return w.isFunction(t)?this.each(function(e){w(this).wrapAll(t.call(this,e))}):(this[0]&&(e=w(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)),this)},wrapInner:function(n){return w.isFunction(n)?this.each(function(e){w(this).wrapInner(n.call(this,e))}):this.each(function(){var e=w(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=w.isFunction(t);return this.each(function(e){w(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(){return this.parent().each(function(){w.nodeName(this,"body")||w(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||this.insertBefore(e,this.firstChild)})},before:function(){return this.domManip(arguments,!1,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,!1,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,i=0;null!=(n=this[i]);i++)(!e||0<w.filter(e,[n]).length)&&(t||1!==n.nodeType||w.cleanData(v(n)),n.parentNode)&&(t&&w.contains(n.ownerDocument,n)&&Yt(v(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&w.cleanData(v(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&w.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return w.clone(this,e,t)})},html:function(e){return w.access(this,function(e){var t=this[0]||{},n=0,i=this.length;if(e===H)return 1===t.nodeType?t.innerHTML.replace(Lt,""):H;if(!("string"!=typeof e||Rt.test(e)||!w.support.htmlSerialize&&Ft.test(e)||!w.support.leadingWhitespace&&Ot.test(e)||y[(qt.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(Mt,"<$1></$2>");try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(w.cleanData(v(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(e){return w.isFunction(e)||"string"==typeof e||(e=w(e).not(this).detach()),this.domManip([e],!0,function(e){var t=this.nextSibling,n=this.parentNode;n&&(w(this).remove(),n.insertBefore(e,t))})},detach:function(e){return this.remove(e,!0)},domManip:function(n,i,r){n=Q.apply([],n);var e,t,o,a,s,c,l,u,d=0,f=this.length,p=this,h=f-1,g=n[0],m=w.isFunction(g);if(m||!(f<=1||"string"!=typeof g||w.support.checkClone)&&Qt.test(g))return this.each(function(e){var t=p.eq(e);m&&(n[0]=g.call(this,e,i?t.html():H)),t.domManip(n,i,r)});if(f&&(e=(c=w.buildFragment(n,this[0].ownerDocument,!1,this)).firstChild,1===c.childNodes.length&&(c=e),e)){for(i=i&&w.nodeName(e,"tr"),o=(a=w.map(v(c,"script"),Ut)).length;d<f;d++)t=c,d!==h&&(t=w.clone(t,!0,!0),o)&&w.merge(a,v(t,"script")),r.call(i&&w.nodeName(this[d],"table")?(l=this[d],u="tbody",l.getElementsByTagName(u)[0]||l.appendChild(l.ownerDocument.createElement(u))):this[d],t,d);if(o)for(s=a[a.length-1].ownerDocument,w.map(a,Jt),d=0;d<o;d++)t=a[d],$t.test(t.type||"")&&!w._data(t,"globalEval")&&w.contains(s,t)&&(t.src?w.ajax({url:t.src,type:"GET",dataType:"script",async:!1,global:!1,throws:!0}):w.globalEval((t.text||t.textContent||t.innerHTML||"").replace(Wt,"")));c=e=null}return this}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){w.fn[e]=function(e){for(var t,n=0,i=[],r=w(e),o=r.length-1;n<=o;n++)t=n===o?this:this.clone(!0),w(r[n])[a](t),$.apply(i,t.get());return this.pushStack(i)}}),w.extend({clone:function(e,t,n){var i,r,o,a,s,c,l,u,d=w.contains(e.ownerDocument,e);if(w.support.html5Clone||w.isXMLDoc(e)||!Ft.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Vt.innerHTML=e.outerHTML,Vt.removeChild(o=Vt.firstChild)),!(w.support.noCloneEvent&&w.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||w.isXMLDoc(e)))for(i=v(o),s=v(e),a=0;null!=(r=s[a]);++a)if(i[a]){f=void 0;p=void 0;c=void 0;l=void 0;u=void 0;var f=r;var p=i[a];if(1===p.nodeType){if(c=p.nodeName.toLowerCase(),!w.support.noCloneEvent&&p[w.expando]){for(l in(u=w._data(p)).events)w.removeEvent(p,l,u.handle);p.removeAttribute(w.expando)}"script"===c&&p.text!==f.text?(Ut(p).text=f.text,Jt(p)):"object"===c?(p.parentNode&&(p.outerHTML=f.outerHTML),w.support.html5Clone&&f.innerHTML&&!w.trim(p.innerHTML)&&(p.innerHTML=f.innerHTML)):"input"===c&&zt.test(f.type)?(p.defaultChecked=p.checked=f.checked,p.value!==f.value&&(p.value=f.value)):"option"===c?p.defaultSelected=p.selected=f.defaultSelected:"input"!==c&&"textarea"!==c||(p.defaultValue=f.defaultValue)}}if(t)if(n)for(s=s||v(e),i=i||v(o),a=0;null!=(r=s[a]);a++)Gt(r,i[a]);else Gt(e,o);return 0<(i=v(o,"script")).length&&Yt(i,!d&&v(e,"script")),i=s=r=null,o},buildFragment:function(e,t,n,i){for(var r,o,a,s,c,l,u,d=e.length,f=At(t),p=[],h=0;h<d;h++)if((o=e[h])||0===o)if("object"===w.type(o))w.merge(p,o.nodeType?[o]:o);else if(_t.test(o)){for(s=s||f.appendChild(t.createElement("div")),c=(qt.exec(o)||["",""])[1].toLowerCase(),s.innerHTML=(u=y[c]||y._default)[1]+o.replace(Mt,"<$1></$2>")+u[2],r=u[0];r--;)s=s.lastChild;if(!w.support.leadingWhitespace&&Ot.test(o)&&p.push(t.createTextNode(Ot.exec(o)[0])),!w.support.tbody)for(r=(o="table"!==c||Bt.test(o)?"<table>"!==u[1]||Bt.test(o)?0:s:s.firstChild)&&o.childNodes.length;r--;)w.nodeName(l=o.childNodes[r],"tbody")&&!l.childNodes.length&&o.removeChild(l);for(w.merge(p,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=f.lastChild}else p.push(t.createTextNode(o));for(s&&f.removeChild(s),w.support.appendChecked||w.grep(v(p,"input"),Kt),h=0;o=p[h++];)if((!i||-1===w.inArray(o,i))&&(a=w.contains(o.ownerDocument,o),s=v(f.appendChild(o),"script"),a&&Yt(s),n))for(r=0;o=s[r++];)$t.test(o.type||"")&&n.push(o);return s=null,f},cleanData:function(e,t){for(var n,i,r,o,a=0,s=w.expando,c=w.cache,l=w.support.deleteExpando,u=w.event.special;null!=(n=e[a]);a++)if((t||w.acceptData(n))&&(o=(r=n[s])&&c[r])){if(o.events)for(i in o.events)u[i]?w.event.remove(n,i):w.removeEvent(n,i,o.handle);c[r]&&(delete c[r],l?delete n[s]:typeof n.removeAttribute!=g?n.removeAttribute(s):n[s]=null,d.push(r))}}});var Zt,l,f,en=/alpha\([^)]*\)/i,tn=/opacity\s*=\s*([^)]*)/,nn=/^(top|right|bottom|left)$/,rn=/^(none|table(?!-c[ea]).+)/,on=/^margin/,an=RegExp("^("+J+")(.*)$","i"),sn=RegExp("^("+J+")(?!px)[a-z%]+$","i"),cn=RegExp("^([+-])=("+J+")","i"),ln={BODY:"block"},un={position:"absolute",visibility:"hidden",display:"block"},dn={letterSpacing:0,fontWeight:400},p=["Top","Right","Bottom","Left"],fn=["Webkit","O","Moz","ms"];function pn(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),i=t,r=fn.length;r--;)if((t=fn[r]+n)in e)return t;return i}function hn(e,t){return"none"===w.css(e=t||e,"display")||!w.contains(e.ownerDocument,e)}function gn(e,t){for(var n,i,r,o=[],a=0,s=e.length;a<s;a++)(i=e[a]).style&&(o[a]=w._data(i,"olddisplay"),n=i.style.display,t?(o[a]||"none"!==n||(i.style.display=""),""===i.style.display&&hn(i)&&(o[a]=w._data(i,"olddisplay",bn(i.nodeName)))):!o[a]&&(r=hn(i),n&&"none"!==n||!r)&&w._data(i,"olddisplay",r?n:w.css(i,"display")));for(a=0;a<s;a++)!(i=e[a]).style||t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t?o[a]||"":"none");return e}function mn(e,t,n){var i=an.exec(t);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):t}function yn(e,t,n,i,r){for(var o=n===(i?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=w.css(e,n+p[o],!0,r)),i?("content"===n&&(a-=w.css(e,"padding"+p[o],!0,r)),"margin"!==n&&(a-=w.css(e,"border"+p[o]+"Width",!0,r))):(a+=w.css(e,"padding"+p[o],!0,r),"padding"!==n&&(a+=w.css(e,"border"+p[o]+"Width",!0,r)));return a}function vn(e,t,n){var i=!0,r="width"===t?e.offsetWidth:e.offsetHeight,o=l(e),a=w.support.boxSizing&&"border-box"===w.css(e,"boxSizing",!1,o);if(r<=0||null==r){if(((r=f(e,t,o))<0||null==r)&&(r=e.style[t]),sn.test(r))return r;i=a&&(w.support.boxSizingReliable||r===e.style[t]),r=parseFloat(r)||0}return r+yn(e,t,n||(a?"border":"content"),i,o)+"px"}function bn(e){var t=m,n=ln[e];return n||("none"!==(n=Pn(e,t))&&n||((t=((Zt=(Zt||w("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(t.documentElement))[0].contentWindow||Zt[0].contentDocument).document).write("<!doctype html><html><body>"),t.close(),n=Pn(e,t),Zt.detach()),ln[e]=n),n}function Pn(e,t){e=w(t.createElement(e)).appendTo(t.body),t=w.css(e[0],"display");return e.remove(),t}w.fn.extend({css:function(e,t){return w.access(this,function(e,t,n){var i,r,o={},a=0;if(w.isArray(t)){for(r=l(e),i=t.length;a<i;a++)o[t[a]]=w.css(e,t[a],!1,r);return o}return n!==H?w.style(e,t,n):w.css(e,t)},e,t,1<arguments.length)},show:function(){return gn(this,!0)},hide:function(){return gn(this)},toggle:function(e){var t="boolean"==typeof e;return this.each(function(){(t?e:hn(this))?w(this).show():w(this).hide()})}}),w.extend({cssHooks:{opacity:{get:function(e,t){if(t)return""===(t=f(e,"opacity"))?"1":t}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:w.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,a,s=w.camelCase(t),c=e.style;if(t=w.cssProps[s]||(w.cssProps[s]=pn(c,s)),a=w.cssHooks[t]||w.cssHooks[s],n===H)return a&&"get"in a&&(r=a.get(e,!1,i))!==H?r:c[t];if("string"===(o=typeof n)&&(r=cn.exec(n))&&(n=(r[1]+1)*r[2]+parseFloat(w.css(e,t)),o="number"),!(null==n||"number"===o&&isNaN(n)||("number"!==o||w.cssNumber[s]||(n+="px"),w.support.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&(n=a.set(e,n,i))===H)))try{c[t]=n}catch(e){}}},css:function(e,t,n,i){var r,o=w.camelCase(t);return t=w.cssProps[o]||(w.cssProps[o]=pn(e.style,o)),"normal"===(r=(r=(o=w.cssHooks[t]||w.cssHooks[o])&&"get"in o?o.get(e,!0,n):r)===H?f(e,t,i):r)&&t in dn&&(r=dn[t]),(""===n||n)&&(o=parseFloat(r),!0===n||w.isNumeric(o))?o||0:r},swap:function(e,t,n,i){var r,o={};for(r in t)o[r]=e.style[r],e.style[r]=t[r];for(r in n=n.apply(e,i||[]),t)e.style[r]=o[r];return n}}),h.getComputedStyle?(l=function(e){return h.getComputedStyle(e,null)},f=function(e,t,n){var i,n=n||l(e),r=n?n.getPropertyValue(t)||n[t]:H,o=e.style;return n&&(""!==r||w.contains(e.ownerDocument,e)||(r=w.style(e,t)),sn.test(r))&&on.test(t)&&(e=o.width,t=o.minWidth,i=o.maxWidth,o.minWidth=o.maxWidth=o.width=r,r=n.width,o.width=e,o.minWidth=t,o.maxWidth=i),r}):m.documentElement.currentStyle&&(l=function(e){return e.currentStyle},f=function(e,t,n){var i,r,o,n=n||l(e),n=n?n[t]:H,a=e.style;return null==n&&a&&a[t]&&(n=a[t]),sn.test(n)&&!nn.test(t)&&(i=a.left,(o=(r=e.runtimeStyle)&&r.left)&&(r.left=e.currentStyle.left),a.left="fontSize"===t?"1em":n,n=a.pixelLeft+"px",a.left=i,o)&&(r.left=o),""===n?"auto":n}),w.each(["height","width"],function(e,r){w.cssHooks[r]={get:function(e,t,n){return t?0===e.offsetWidth&&rn.test(w.css(e,"display"))?w.swap(e,un,function(){return vn(e,r,n)}):vn(e,r,n):H},set:function(e,t,n){var i=n&&l(e);return mn(0,t,n?yn(e,r,n,w.support.boxSizing&&"border-box"===w.css(e,"boxSizing",!1,i),i):0)}}}),w.support.opacity||(w.cssHooks.opacity={get:function(e,t){return tn.test((t&&e.currentStyle?e.currentStyle:e.style).filter||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,e=e.currentStyle,i=w.isNumeric(t)?"alpha(opacity="+100*t+")":"",r=e&&e.filter||n.filter||"";((n.zoom=1)<=t||""===t)&&""===w.trim(r.replace(en,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||e&&!e.filter)||(n.filter=en.test(r)?r.replace(en,i):r+" "+i)}}),w(function(){w.support.reliableMarginRight||(w.cssHooks.marginRight={get:function(e,t){return t?w.swap(e,{display:"inline-block"},f,[e,"marginRight"]):H}}),!w.support.pixelPosition&&w.fn.position&&w.each(["top","left"],function(e,n){w.cssHooks[n]={get:function(e,t){return t?(t=f(e,n),sn.test(t)?w(e).position()[n]+"px":t):H}}})}),w.expr&&w.expr.filters&&(w.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!w.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||w.css(e,"display"))},w.expr.filters.visible=function(e){return!w.expr.filters.hidden(e)}),w.each({margin:"",padding:"",border:"Width"},function(r,o){w.cssHooks[r+o]={expand:function(e){for(var t=0,n={},i="string"==typeof e?e.split(" "):[e];t<4;t++)n[r+p[t]+o]=i[t]||i[t-2]||i[0];return n}},on.test(r)||(w.cssHooks[r+o].set=mn)});var xn=/%20/g,Hn=/\[\]$/,wn=/\r?\n/g,Cn=/^(?:submit|button|image|reset|file)$/i,Tn=/^(?:input|select|textarea|keygen)/i;w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=w.prop(this,"elements");return e?w.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!w(this).is(":disabled")&&Tn.test(this.nodeName)&&!Cn.test(e)&&(this.checked||!zt.test(e))}).map(function(e,t){var n=w(this).val();return null==n?null:w.isArray(n)?w.map(n,function(e){return{name:t.name,value:e.replace(wn,"\r\n")}}):{name:t.name,value:n.replace(wn,"\r\n")}}).get()}}),w.param=function(e,t){function n(e,t){t=w.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)}var i,r=[];if(t===H&&(t=w.ajaxSettings&&w.ajaxSettings.traditional),w.isArray(e)||e.jquery&&!w.isPlainObject(e))w.each(e,function(){n(this.name,this.value)});else for(i in e)!function n(i,e,r,o){if(w.isArray(e))w.each(e,function(e,t){r||Hn.test(i)?o(i,t):n(i+"["+("object"==typeof t?e:"")+"]",t,r,o)});else if(r||"object"!==w.type(e))o(i,e);else for(var t in e)n(i+"["+t+"]",e[t],r,o)}(i,e[i],t,n);return r.join("&").replace(xn,"+")},w.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,n){w.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}}),w.fn.hover=function(e,t){return this.mouseenter(e).mouseleave(t||e)};var L,F,Sn=w.now(),En=/\?/,kn=/#.*$/,jn=/([?&])_=[^&]*/,Nn=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,In=/^(?:GET|HEAD)$/,An=/^\/\//,Dn=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Ln=w.fn.load,Fn={},On={},Mn="*/".concat("*");try{F=B.href}catch(e){(F=m.createElement("a")).href="",F=F.href}function qn(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,i=0,r=e.toLowerCase().match(C)||[];if(w.isFunction(t))for(;n=r[i++];)"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Bn(t,i,r,o){var a={},s=t===On;function c(e){var n;return a[e]=!0,w.each(t[e]||[],function(e,t){t=t(i,r,o);return"string"!=typeof t||s||a[t]?s?!(n=t):H:(i.dataTypes.unshift(t),c(t),!1)}),n}return c(i.dataTypes[0])||!a["*"]&&c("*")}function _n(e,t){var n,i,r=w.ajaxSettings.flatOptions||{};for(i in t)t[i]!==H&&((r[i]?e:n=n||{})[i]=t[i]);return n&&w.extend(!0,e,n),e}L=Dn.exec(F.toLowerCase())||[],w.fn.load=function(e,t,n){var i,r,o,a,s;return"string"!=typeof e&&Ln?Ln.apply(this,arguments):(a=this,0<=(s=e.indexOf(" "))&&(i=e.slice(s,e.length),e=e.slice(0,s)),w.isFunction(t)?(n=t,t=H):t&&"object"==typeof t&&(o="POST"),0<a.length&&w.ajax({url:e,type:o,dataType:"html",data:t}).done(function(e){r=arguments,a.html(i?w("<div>").append(w.parseHTML(e)).find(i):e)}).complete(n&&function(e,t){a.each(n,r||[e.responseText,t,e])}),this)},w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){w.fn[t]=function(e){return this.on(t,e)}}),w.each(["get","post"],function(e,r){w[r]=function(e,t,n,i){return w.isFunction(t)&&(i=i||n,n=t,t=H),w.ajax({url:e,type:r,dataType:i,data:t,success:n})}}),w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:F,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(L[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Mn,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"},converters:{"* text":h.String,"text html":!0,"text json":w.parseJSON,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?_n(_n(e,w.ajaxSettings),t):_n(w.ajaxSettings,e)},ajaxPrefilter:qn(Fn),ajaxTransport:qn(On),ajax:function(e,t){"object"==typeof e&&(t=e,e=H);var n,l,u,d,f,p,i,h=w.ajaxSetup({},t=t||{}),g=h.context||h,m=h.context&&(g.nodeType||g.jquery)?w(g):w.event,y=w.Deferred(),v=w.Callbacks("once memory"),b=h.statusCode||{},r={},o={},P=0,a="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(2===P){if(!i)for(i={};t=Nn.exec(u);)i[t[1].toLowerCase()]=t[2];t=i[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===P?u:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return P||(e=o[n]=o[n]||e,r[e]=t),this},overrideMimeType:function(e){return P||(h.mimeType=e),this},statusCode:function(e){if(e)if(P<2)for(var t in e)b[t]=[b[t],e[t]];else x.always(e[x.status]);return this},abort:function(e){e=e||a;return p&&p.abort(e),s(0,e),this}};if(y.promise(x).complete=v.add,x.success=x.done,x.error=x.fail,h.url=((e||h.url||F)+"").replace(kn,"").replace(An,L[1]+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=w.trim(h.dataType||"*").toLowerCase().match(C)||[""],null==h.crossDomain&&(e=Dn.exec(h.url.toLowerCase()),h.crossDomain=!(!e||e[1]===L[1]&&e[2]===L[2]&&(e[3]||("http:"===e[1]?80:443))==(L[3]||("http:"===L[1]?80:443)))),h.data&&h.processData&&"string"!=typeof h.data&&(h.data=w.param(h.data,h.traditional)),Bn(Fn,h,t,x),2!==P){for(n in(f=h.global)&&0==w.active++&&w.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!In.test(h.type),l=h.url,h.hasContent||(h.data&&(l=h.url+=(En.test(l)?"&":"?")+h.data,delete h.data),!1===h.cache&&(h.url=jn.test(l)?l.replace(jn,"$1_="+Sn++):l+(En.test(l)?"&":"?")+"_="+Sn++)),h.ifModified&&(w.lastModified[l]&&x.setRequestHeader("If-Modified-Since",w.lastModified[l]),w.etag[l])&&x.setRequestHeader("If-None-Match",w.etag[l]),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&x.setRequestHeader("Content-Type",h.contentType),x.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Mn+"; q=0.01":""):h.accepts["*"]),h.headers)x.setRequestHeader(n,h.headers[n]);if(h.beforeSend&&(!1===h.beforeSend.call(g,x,h)||2===P))return x.abort();for(n in a="abort",{success:1,error:1,complete:1})x[n](h[n]);if(p=Bn(On,h,t,x)){x.readyState=1,f&&m.trigger("ajaxSend",[x,h]),h.async&&0<h.timeout&&(d=setTimeout(function(){x.abort("timeout")},h.timeout));try{P=1,p.send(r,s)}catch(e){if(!(P<2))throw e;s(-1,e)}}else s(-1,"No Transport")}return x;function s(e,t,n,i){var r,o,a,s,c=t;2!==P&&(P=2,d&&clearTimeout(d),p=H,u=i||"",x.readyState=0<e?4:0,n&&(s=function(e,t,n){var i,r,o,a,s=e.contents,c=e.dataTypes,l=e.responseFields;for(a in l)a in n&&(t[l[a]]=n[a]);for(;"*"===c[0];)c.shift(),r===H&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(a in s)if(s[a]&&s[a].test(r)){c.unshift(a);break}if(c[0]in n)o=c[0];else{for(a in n){if(!c[0]||e.converters[a+" "+c[0]]){o=a;break}i=i||a}o=o||i}return o?(o!==c[0]&&c.unshift(o),n[o]):H}(h,x,n)),200<=e&&e<300||304===e?(h.ifModified&&((i=x.getResponseHeader("Last-Modified"))&&(w.lastModified[l]=i),i=x.getResponseHeader("etag"))&&(w.etag[l]=i),204===e?(r=!0,c="nocontent"):304===e?(r=!0,c="notmodified"):(c=(r=function(e,t){var n,i,r,o,a={},s=0,c=e.dataTypes.slice(),l=c[0];if(e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c[1])for(r in e.converters)a[r.toLowerCase()]=e.converters[r];for(;i=c[++s];)if("*"!==i){if("*"!==l&&l!==i){if(!(r=a[l+" "+i]||a["* "+i]))for(n in a)if(o=n.split(" "),o[1]===i&&(r=a[l+" "+o[0]]||a["* "+o[0]])){!0===r?r=a[n]:!0!==a[n]&&(i=o[0],c.splice(s--,0,i));break}if(!0!==r)if(r&&e.throws)t=r(t);else try{t=r(t)}catch(e){return{state:"parsererror",error:r?e:"No conversion from "+l+" to "+i}}}l=i}return{state:"success",data:t}}(h,s)).state,o=r.data,r=!(a=r.error))):(a=c,(e||!c)&&(c="error",e<0)&&(e=0)),x.status=e,x.statusText=(t||c)+"",r?y.resolveWith(g,[o,c,x]):y.rejectWith(g,[x,c,a]),x.statusCode(b),b=H,f&&m.trigger(r?"ajaxSuccess":"ajaxError",[x,h,r?o:a]),v.fireWith(g,[x,c]),f)&&(m.trigger("ajaxComplete",[x,h]),--w.active||w.event.trigger("ajaxStop"))}},getScript:function(e,t){return w.get(e,H,t,"script")},getJSON:function(e,t,n){return w.get(e,t,n,"json")}}),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return w.globalEval(e),e}}}),w.ajaxPrefilter("script",function(e){e.cache===H&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),w.ajaxTransport("script",function(t){var i,r;if(t.crossDomain)return r=m.head||w("head")[0]||m.documentElement,{send:function(e,n){(i=m.createElement("script")).async=!0,t.scriptCharset&&(i.charset=t.scriptCharset),i.src=t.url,i.onload=i.onreadystatechange=function(e,t){!t&&i.readyState&&!/loaded|complete/.test(i.readyState)||(i.onload=i.onreadystatechange=null,i.parentNode&&i.parentNode.removeChild(i),i=null,t)||n(200,"success")},r.insertBefore(i,r.firstChild)},abort:function(){i&&i.onload(H,!0)}}});var Rn=[],zn=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Rn.pop()||w.expando+"_"+Sn++;return this[e]=!0,e}}),w.ajaxPrefilter("json jsonp",function(e,t,n){var i,r,o,a=!1!==e.jsonp&&(zn.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&zn.test(e.data)&&"data");return a||"jsonp"===e.dataTypes[0]?(i=e.jsonpCallback=w.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(zn,"$1"+i):!1!==e.jsonp&&(e.url+=(En.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return o||w.error(i+" was not called"),o[0]},e.dataTypes[0]="json",r=h[i],h[i]=function(){o=arguments},n.always(function(){h[i]=r,e[i]&&(e.jsonpCallback=t.jsonpCallback,Rn.push(i)),o&&w.isFunction(r)&&r(o[0]),o=r=H}),"script"):H});var Qn,$n=0,Xn=h.ActiveXObject&&function(){for(var e in Qn)Qn[e](H,!0)};function Wn(){try{return new h.XMLHttpRequest}catch(e){}}w.ajaxSettings.xhr=h.ActiveXObject?function(){return!this.isLocal&&Wn()||function(){try{return new h.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}()}:Wn,Ke=w.ajaxSettings.xhr(),w.support.cors=!!Ke&&"withCredentials"in Ke,(w.support.ajax=!!Ke)&&w.ajaxTransport(function(l){var u;if(!l.crossDomain||w.support.cors)return{send:function(e,a){var s,t,c=l.xhr();if(l.username?c.open(l.type,l.url,l.async,l.username,l.password):c.open(l.type,l.url,l.async),l.xhrFields)for(t in l.xhrFields)c[t]=l.xhrFields[t];l.mimeType&&c.overrideMimeType&&c.overrideMimeType(l.mimeType),l.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest");try{for(t in e)c.setRequestHeader(t,e[t])}catch(e){}c.send(l.hasContent&&l.data||null),u=function(e,t){var n,i,r,o;try{if(u&&(t||4===c.readyState))if(u=H,s&&(c.onreadystatechange=w.noop,Xn)&&delete Qn[s],t)4!==c.readyState&&c.abort();else{o={},n=c.status,i=c.getAllResponseHeaders(),"string"==typeof c.responseText&&(o.text=c.responseText);try{r=c.statusText}catch(e){r=""}n||!l.isLocal||l.crossDomain?1223===n&&(n=204):n=o.text?200:404}}catch(e){t||a(-1,e)}o&&a(n,r,o,i)},l.async?4===c.readyState?setTimeout(u):(s=++$n,Xn&&(Qn||(Qn={},w(h).unload(Xn)),Qn[s]=u),c.onreadystatechange=u):u()},abort:function(){u&&u(H,!0)}}});var Vn,Un,Jn=/^(?:toggle|show|hide)$/,Yn=RegExp("^(?:([+-])=|)("+J+")([a-z%]*)$","i"),Gn=/queueHooks$/,Kn=[function(t,e,n){var i,r,o,a,s,c,l,u,d,f=this,p=t.style,h={},g=[],m=t.nodeType&&hn(t);for(r in n.queue||(null==(u=w._queueHooks(t,"fx")).unqueued&&(u.unqueued=0,d=u.empty.fire,u.empty.fire=function(){u.unqueued||d()}),u.unqueued++,f.always(function(){f.always(function(){u.unqueued--,w.queue(t,"fx").length||u.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===w.css(t,"display"))&&"none"===w.css(t,"float")&&(w.support.inlineBlockNeedsLayout&&"inline"!==bn(t.nodeName)?p.zoom=1:p.display="inline-block"),n.overflow&&(p.overflow="hidden",w.support.shrinkWrapBlocks||f.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),e)if(a=e[r],Jn.exec(a)){if(delete e[r],c=c||"toggle"===a,a===(m?"hide":"show"))continue;g.push(r)}if(o=g.length){"hidden"in(s=w._data(t,"fxshow")||w._data(t,"fxshow",{}))&&(m=s.hidden),c&&(s.hidden=!m),m?w(t).show():f.done(function(){w(t).hide()}),f.done(function(){for(var e in w._removeData(t,"fxshow"),h)w.style(t,e,h[e])});for(r=0;r<o;r++)i=g[r],l=f.createTween(i,m?s[i]:0),h[i]=s[i]||w.style(t,i),i in s||(s[i]=l.start,m&&(l.end=l.start,l.start="width"===i||"height"===i?1:0))}}],Zn={"*":[function(e,t){var n,i,r=this.createTween(e,t),t=Yn.exec(t),o=r.cur(),a=+o||0,s=1,c=20;if(t){if(n=+t[2],"px"!==(i=t[3]||(w.cssNumber[e]?"":"px"))&&a)for(a=w.css(r.elem,e,!0)||n||1;w.style(r.elem,e,(a/=s=s||".5")+i),s!==(s=r.cur()/o)&&1!==s&&--c;);r.unit=i,r.start=a,r.end=t[1]?a+(t[1]+1)*n:n}return r}]};function ei(){return setTimeout(function(){Vn=H}),Vn=w.now()}function ti(r,e,t){var n,o,i,a,s,c,l,u,d=0,f=Kn.length,p=w.Deferred().always(function(){delete h.elem}),h=function(){if(o)return!1;for(var e=Vn||ei(),e=Math.max(0,g.startTime+g.duration-e),t=1-(e/g.duration||0),n=0,i=g.tweens.length;n<i;n++)g.tweens[n].run(t);return p.notifyWith(r,[g,t,e]),t<1&&i?e:(p.resolveWith(r,[g]),!1)},g=p.promise({elem:r,props:w.extend({},e),opts:w.extend(!0,{specialEasing:{}},t),originalProperties:e,originalOptions:t,startTime:Vn||ei(),duration:t.duration,tweens:[],createTween:function(e,t){t=w.Tween(r,g.opts,e,t,g.opts.specialEasing[e]||g.opts.easing);return g.tweens.push(t),t},stop:function(e){var t=0,n=e?g.tweens.length:0;if(!o){for(o=!0;t<n;t++)g.tweens[t].run(1);e?p.resolveWith(r,[g,e]):p.rejectWith(r,[g,e])}return this}}),m=g.props,y=m,v=g.opts.specialEasing;for(s in y)if(a=w.camelCase(s),c=v[a],i=y[s],w.isArray(i)&&(c=i[1],i=y[s]=i[0]),s!==a&&(y[a]=i,delete y[s]),l=w.cssHooks[a],l&&"expand"in l)for(s in i=l.expand(i),delete y[a],i)s in y||(y[s]=i[s],v[s]=c);else v[a]=c;for(;d<f;d++)if(n=Kn[d].call(g,r,m,g.opts))return n;return u=g,w.each(m,function(e,t){for(var n=(Zn[e]||[]).concat(Zn["*"]),i=0,r=n.length;i<r;i++)if(n[i].call(u,e,t))return}),w.isFunction(g.opts.start)&&g.opts.start.call(r,g),w.fx.timer(w.extend(h,{elem:r,anim:g,queue:g.opts.queue})),g.progress(g.opts.progress).done(g.opts.done,g.opts.complete).fail(g.opts.fail).always(g.opts.always)}function b(e,t,n,i,r){return new b.prototype.init(e,t,n,i,r)}function ni(e,t){var n,i={height:e},r=0;for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=p[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ii(e){return w.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}w.Animation=w.extend(ti,{tweener:function(e,t){for(var n,i=0,r=(e=w.isFunction(e)?(t=e,["*"]):e.split(" ")).length;i<r;i++)n=e[i],Zn[n]=Zn[n]||[],Zn[n].unshift(t)},prefilter:function(e,t){t?Kn.unshift(e):Kn.push(e)}}),((w.Tween=b).prototype={constructor:b,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||"swing",this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(w.cssNumber[n]?"":"px")},cur:function(){var e=b.propHooks[this.prop];return(e&&e.get?e:b.propHooks._default).get(this)},run:function(e){var t=b.propHooks[this.prop];return this.pos=e=this.options.duration?w.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(t&&t.set?t:b.propHooks._default).set(this),this}}).init.prototype=b.prototype,(b.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=w.css(e.elem,e.prop,""))&&"auto"!==t?t:0:e.elem[e.prop]},set:function(e){w.fx.step[e.prop]?w.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[w.cssProps[e.prop]]||w.cssHooks[e.prop])?w.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}}).scrollTop=b.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},w.each(["toggle","show","hide"],function(e,i){var r=w.fn[i];w.fn[i]=function(e,t,n){return null==e||"boolean"==typeof e?r.apply(this,arguments):this.animate(ni(i,!0),e,t,n)}}),w.fn.extend({fadeTo:function(e,t,n,i){return this.filter(hn).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(t,e,n,i){var r=w.isEmptyObject(t),o=w.speed(e,n,i),a=function(){var e=ti(this,w.extend({},t),o);a.finish=function(){e.stop(!0)},(r||w._data(this,"finish"))&&e.stop(!0)};return a.finish=a,r||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(r,e,o){function a(e){var t=e.stop;delete e.stop,t(o)}return"string"!=typeof r&&(o=e,e=r,r=H),e&&!1!==r&&this.queue(r||"fx",[]),this.each(function(){var e=!0,t=null!=r&&r+"queueHooks",n=w.timers,i=w._data(this);if(t)i[t]&&i[t].stop&&a(i[t]);else for(t in i)i[t]&&i[t].stop&&Gn.test(t)&&a(i[t]);for(t=n.length;t--;)n[t].elem!==this||null!=r&&n[t].queue!==r||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||w.dequeue(this,r)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=w._data(this),n=t[a+"queue"],i=t[a+"queueHooks"],r=w.timers,o=n?n.length:0;for(t.finish=!0,w.queue(this,a,[]),i&&i.cur&&i.cur.finish&&i.cur.finish.call(this),e=r.length;e--;)r[e].elem===this&&r[e].queue===a&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),w.each({slideDown:ni("show"),slideUp:ni("hide"),slideToggle:ni("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,i){w.fn[e]=function(e,t,n){return this.animate(i,e,t,n)}}),w.speed=function(e,t,n){var i=e&&"object"==typeof e?w.extend({},e):{complete:n||!n&&t||w.isFunction(e)&&e,duration:e,easing:n&&t||t&&!w.isFunction(t)&&t};return i.duration=w.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in w.fx.speeds?w.fx.speeds[i.duration]:w.fx.speeds._default,null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){w.isFunction(i.old)&&i.old.call(this),i.queue&&w.dequeue(this,i.queue)},i},w.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},w.timers=[],w.fx=b.prototype.init,w.fx.tick=function(){var e,t=w.timers,n=0;for(Vn=w.now();t.length>n;n++)(e=t[n])()||t[n]!==e||t.splice(n--,1);t.length||w.fx.stop(),Vn=H},w.fx.timer=function(e){e()&&w.timers.push(e)&&w.fx.start()},w.fx.interval=13,w.fx.start=function(){Un=Un||setInterval(w.fx.tick,w.fx.interval)},w.fx.stop=function(){clearInterval(Un),Un=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fx.step={},w.expr&&w.expr.filters&&(w.expr.filters.animated=function(t){return w.grep(w.timers,function(e){return t===e.elem}).length}),w.fn.offset=function(t){var e,n,i,r;return arguments.length?t===H?this:this.each(function(e){w.offset.setOffset(this,t,e)}):(n={top:0,left:0},(r=(i=this[0])&&i.ownerDocument)?(e=r.documentElement,w.contains(e,i)?(typeof i.getBoundingClientRect!=g&&(n=i.getBoundingClientRect()),i=ii(r),{top:n.top+(i.pageYOffset||e.scrollTop)-(e.clientTop||0),left:n.left+(i.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):n):void 0)},w.offset={setOffset:function(e,t,n){var i,r=w.css(e,"position"),o=("static"===r&&(e.style.position="relative"),w(e)),a=o.offset(),s=w.css(e,"top"),c=w.css(e,"left"),l={},r=("absolute"===r||"fixed"===r)&&-1<w.inArray("auto",[s,c])?(i=(r=o.position()).top,r.left):(i=parseFloat(s)||0,parseFloat(c)||0);null!=(t=w.isFunction(t)?t.call(e,n,a):t).top&&(l.top=t.top-a.top+i),null!=t.left&&(l.left=t.left-a.left+r),"using"in t?t.using.call(e,l):o.css(l)}},w.fn.extend({position:function(){var e,t,n,i;if(this[0])return n={top:0,left:0},i=this[0],"fixed"===w.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),(n=w.nodeName(e[0],"html")?n:e.offset()).top+=w.css(e[0],"borderTopWidth",!0),n.left+=w.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-w.css(i,"marginTop",!0),left:t.left-n.left-w.css(i,"marginLeft",!0)}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||m.documentElement;e&&!w.nodeName(e,"html")&&"static"===w.css(e,"position");)e=e.offsetParent;return e||m.documentElement})}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var o=/Y/.test(r);w.fn[t]=function(e){return w.access(this,function(e,t,n){var i=ii(e);return n===H?i?r in i?i[r]:i.document.documentElement[t]:e[t]:(i?i.scrollTo(o?w(i).scrollLeft():n,o?n:w(i).scrollTop()):e[t]=n,H)},t,e,arguments.length,null)}}),w.each({Height:"height",Width:"width"},function(o,a){w.each({padding:"inner"+o,content:a,"":"outer"+o},function(i,e){w.fn[e]=function(e,t){var n=arguments.length&&(i||"boolean"!=typeof e),r=i||(!0===e||!0===t?"margin":"border");return w.access(this,function(e,t,n){var i;return w.isWindow(e)?e.document.documentElement["client"+o]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+o],i["scroll"+o],e.body["offset"+o],i["offset"+o],i["client"+o])):n===H?w.css(e,t,r):w.style(e,t,n,r)},a,n?e:H,n,null)}})}),h.jQuery=h.$=w,"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return w})}(window);var WebFontConfig,_tmp_script_path,embed_path,H5P=window.H5P=window.H5P||{};function getEmbedScriptPath(e){for(var t=document.getElementsByTagName("script"),n="",i="",r=0;r<t.length;r++)t[r].src.match(e)&&(n=t[r].src);return""!=n&&(i="/"),n.split("?")[0].split("/").slice(0,-1).join("/")+i}function createStoryJS(e,t){var n,i,r,o=!1,a="2.24",s={timeout:"",checks:0,finished:!1,js:!1,css:!1,jquery:!1,has_jquery:!1,language:!1,font:{css:!1,js:!1}},c={base:embed_path,css:embed_path+"css/",js:embed_path+"js/",locale:embed_path+"js/locale/",jquery:"//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js",font:{google:!1,css:embed_path+"css/themes/font/",js:"//ajax.googleapis.com/ajax/libs/webfont/1/webfont.js"}},l={version:a,debug:!1,type:"timeline",id:"storyjs",embed_id:"timeline-embed",embed:!0,width:"100%",height:"100%",source:"https://docs.google.com/spreadsheet/pub?key=0Agl_Dv6iEbDadFYzRjJPUGktY0NkWXFUWkVIZDNGRHc&output=html",lang:"en",font:"default",css:c.css+"timeline.css?"+a,js:"",api_keys:{google:"",flickr:"",twitter:""},gmap_key:""},u=[{name:"Merriweather-NewsCycle",google:["News+Cycle:400,700:latin","Merriweather:400,700,900:latin"]},{name:"NewsCycle-Merriweather",google:["News+Cycle:400,700:latin","Merriweather:300,400,700:latin"]},{name:"PoiretOne-Molengo",google:["Poiret+One::latin","Molengo::latin"]},{name:"Arvo-PTSans",google:["Arvo:400,700,400italic:latin","PT+Sans:400,700,400italic:latin"]},{name:"PTSerif-PTSans",google:["PT+Sans:400,700,400italic:latin","PT+Serif:400,700,400italic:latin"]},{name:"PT",google:["PT+Sans+Narrow:400,700:latin","PT+Sans:400,700,400italic:latin","PT+Serif:400,700,400italic:latin"]},{name:"DroidSerif-DroidSans",google:["Droid+Sans:400,700:latin","Droid+Serif:400,700,400italic:latin"]},{name:"Lekton-Molengo",google:["Lekton:400,700,400italic:latin","Molengo::latin"]},{name:"NixieOne-Ledger",google:["Nixie+One::latin","Ledger::latin"]},{name:"AbrilFatface-Average",google:["Average::latin","Abril+Fatface::latin"]},{name:"PlayfairDisplay-Muli",google:["Playfair+Display:400,400italic:latin","Muli:300,400,300italic,400italic:latin"]},{name:"Rancho-Gudea",google:["Rancho::latin","Gudea:400,700,400italic:latin"]},{name:"Bevan-PotanoSans",google:["Bevan::latin","Pontano+Sans::latin"]},{name:"BreeSerif-OpenSans",google:["Bree+Serif::latin","Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800:latin"]},{name:"SansitaOne-Kameron",google:["Sansita+One::latin","Kameron:400,700:latin"]},{name:"Lora-Istok",google:["Lora:400,700,400italic,700italic:latin","Istok+Web:400,700,400italic,700italic:latin"]},{name:"Pacifico-Arimo",google:["Pacifico::latin","Arimo:400,700,400italic,700italic:latin"]}];if("object"==typeof e)for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&(l[i]=e[i]);void 0!==t&&(l.source=t),"object"==typeof url_config&&(o=!0,l.source.match("docs.google.com")||l.source.match("json")||l.source.match("storify")||(l.source="https://docs.google.com/spreadsheet/pub?key="+l.source+"&output=html")),l.js.match("locale")&&(l.lang=l.js.split("locale/")[1].replace(".js",""),l.js=c.js+"timeline-min.js?"+a),l.js.match("/")||(l.css=c.css+l.type+".css?"+a,l.js=c.js+l.type,l.debug?l.js+=".js?"+a:l.js+="-min.js?"+a,l.id="storyjs-"+l.type),l.lang.match("/")?c.locale=l.lang:c.locale=c.locale+l.lang+".js?"+a;t="storyjs-embed";if(n=document.createElement("div"),(r=""!=l.embed_id?document.getElementById(l.embed_id):document.getElementById("timeline-embed")).appendChild(n),n.setAttribute("id",l.id),l.width.toString().match("%")?r.style.width=l.width.split("%")[0]+"%":(l.width=l.width-2,r.style.width=l.width+"px"),l.height.toString().match("%")?(r.style.height=l.height,t+=" full-embed",r.style.height=l.height.split("%")[0]+"%"):(l.width.toString().match("%")?t+=" full-embed":t+=" sized-embed",l.height=l.height-16,r.style.height=l.height+"px"),r.setAttribute("class",t),r.setAttribute("className",t),n.style.position="relative",LoadLib.css(l.css,function(){s.css=!0,b()}),"default"==l.font)s.font.js=!0,s.font.css=!0;else{l.font.match("/")?(r=l.font.split(".css")[0].split("/"),c.font.name=r[r.length-1],c.font.css=l.font):(c.font.name=l.font,c.font.css=c.font.css+l.font+".css?"+a),LoadLib.css(c.font.css,function(){s.font.css=!0,b()});for(var d=0;d<u.length;d++)c.font.name==u[d].name&&(c.font.google=!0,WebFontConfig={google:{families:u[d].google}});c.font.google?LoadLib.js(c.font.js,function(){s.font.js=!0,b()}):s.font.js=!0}try{if(s.has_jquery=jQuery,s.has_jquery=!0,s.has_jquery){var f=jQuery.fn.jquery.split("."),p="1.7.1".split(".");for(s.jquery=!0,d=0;d<2;d++){var h=f[d],g=parseFloat(p[d]);if(h!=g){s.jquery=g<h;break}}}}catch(e){s.jquery=!1}function m(){LoadLib.js(l.js,y)}function y(){s.js=!0,"en"!=l.lang?LazyLoad.js(c.locale,v):s.language=!0,b()}function v(){s.language=!0,b()}function b(){40<s.checks||(s.checks++,s.js&&s.css&&s.font.css&&s.font.js&&s.language?s.finished||(s.finished=!0,VMM.debug=l.debug,new VMM.Timeline(l.id).init(l),o&&VMM.bindEvent(global,onHeadline,"HEADLINE")):s.timeout=setTimeout("onloaded_check_again();",250))}s.jquery?m():LoadLib.js(c.jquery,m),this.onloaded_check_again=function(){b()}}H5P.jQuery=jQuery.noConflict(!0),H5P.jQuery.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),(H5P=window.H5P=window.H5P||{}).isFramed=window.self!==window.parent,H5P.$window=H5P.jQuery(window),H5P.instances=[],document.documentElement.requestFullScreen?H5P.fullScreenBrowserPrefix="":document.documentElement.webkitRequestFullScreen?(H5P.safariBrowser=navigator.userAgent.match(/version\/([.\d]+)/i),H5P.safariBrowser=null===H5P.safariBrowser?0:parseInt(H5P.safariBrowser[1]),(0===H5P.safariBrowser||6<H5P.safariBrowser)&&(H5P.fullScreenBrowserPrefix="webkit")):document.documentElement.mozRequestFullScreen?H5P.fullScreenBrowserPrefix="moz":document.documentElement.msRequestFullscreen&&(H5P.fullScreenBrowserPrefix="ms"),H5P.opened={},H5P.init=function(e){void 0===H5P.$body&&(H5P.$body=H5P.jQuery(document.body)),void 0===H5P.fullscreenSupported&&(H5P.fullscreenSupported=!(H5PIntegration.fullscreenDisabled||H5P.fullscreenDisabled||H5P.isFramed&&!1!==H5P.externalEmbed&&!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled))),void 0===H5P.canHasFullScreen&&(H5P.canHasFullScreen=H5P.fullscreenSupported),H5P.jQuery(".h5p-content:not(.h5p-initialized)",e).each(function(){var t=H5P.jQuery(this).addClass("h5p-initialized"),n=H5P.jQuery('<div class="h5p-container"></div>').appendTo(t),r=t.data("content-id"),o=H5PIntegration.contents["cid-"+r];if(void 0===o)return H5P.error("No data for content id "+r+". Perhaps the library is gone?");var e,i,a,s,c,l,u,d={library:o.library,params:JSON.parse(o.jsonContent),metadata:o.metadata},f=(H5P.getUserData(r,"state",function(e,t){var i;t?d.userDatas={state:t}:null===t&&H5PIntegration.saveFreq&&(delete o.contentUserData,i=new H5P.Dialog("content-user-data-reset","Data Reset","<p>"+H5P.t("contentChanged")+"</p><p>"+H5P.t("startingOver")+'</p><div class="h5p-dialog-ok-button" tabIndex="0" role="button">OK</div>',n),H5P.jQuery(i).on("dialog-opened",function(e,t){function n(e){"click"!==e.type&&32!==e.which||(i.close(),H5P.deleteUserData(r,"state",0))}t.find(".h5p-dialog-ok-button").click(n).keypress(n),H5P.trigger(f,"resize")}).on("dialog-closed",function(){H5P.trigger(f,"resize")}),i.open())}),H5P.newRunnable(d,r,n,!0,{standalone:!0})),p=(H5P.offlineRequestQueue=new H5P.OfflineRequestQueue({instance:f}),1==o.fullScreen&&H5P.fullscreenSupported&&H5P.jQuery('<div class="h5p-content-controls"><div role="button" tabindex="0" class="h5p-enable-fullscreen" aria-label="'+H5P.t("fullscreen")+'" title="'+H5P.t("fullscreen")+'"></div></div>').prependTo(n).children().click(function(){H5P.fullScreen(n,f)}).keydown(function(e){if(32===e.which||13===e.which)return H5P.fullScreen(n,f),!1}),o.displayOptions),h=!1;p.frame&&(p.copyright&&!(e=H5P.getCopyrights(f,d.params,r,d.metadata))&&(p.copyright=!1),p=new H5P.ActionBar(p),i=p.getDOMElement(),p.on("reuse",function(){H5P.openReuseDialog(i,o,d,f,r),f.triggerXAPI("accessed-reuse")}),p.on("copyrights",function(){new H5P.Dialog("copyrights",H5P.t("copyrightInformation"),e,n).open(!0),f.triggerXAPI("accessed-copyright")}),p.on("embed",function(){H5P.openEmbedDialog(i,o.embedCode,o.resizeCode,{width:t.width(),height:t.height()},f),f.triggerXAPI("accessed-embed")}),p.hasActions())&&(h=!0,i.insertAfter(n)),t.addClass(h?"h5p-frame":"h5p-no-frame"),H5P.opened[r]=new Date,H5P.on(f,"finish",function(e){void 0!==e.data&&H5P.setFinished(r,e.data.score,e.data.maxScore,e.data.time)}),H5P.on(f,"xAPI",H5P.xAPICompletedListener),!1!==H5PIntegration.saveFreq&&(f.getCurrentState instanceof Function||"function"==typeof f.getCurrentState)&&(s=function(){var e=f.getCurrentState();void 0!==e&&H5P.setUserData(r,"state",e,{deleteOnChange:!0}),H5PIntegration.saveFreq&&(a=setTimeout(s,1e3*H5PIntegration.saveFreq))},H5PIntegration.saveFreq&&(a=setTimeout(s,1e3*H5PIntegration.saveFreq)),H5P.on(f,"xAPI",function(e){e=e.getVerb();"completed"!==e&&"progressed"!==e||(clearTimeout(a),a=setTimeout(s,3e3))})),H5P.isFramed&&(!1===H5P.externalEmbed?(l=window.frameElement,H5P.on(f,"resize",function(){clearTimeout(c),c=setTimeout(function(){var e;window.parent.H5P.isFullscreen||(e=l.parentElement.style.height,l.parentElement.style.height=l.parentElement.clientHeight+"px",l.getBoundingClientRect(),l.style.height="1px",l.style.height=l.contentDocument.body.scrollHeight+"px",l.parentElement.style.height=e)},1)})):H5P.communicator&&(u=!1,H5P.communicator.on("ready",function(){H5P.communicator.send("hello")}),H5P.communicator.on("hello",function(){u=!0,document.body.style.height="auto",document.body.style.overflow="hidden",H5P.trigger(f,"resize")}),H5P.communicator.on("resizePrepared",function(){H5P.communicator.send("resize",{scrollHeight:document.body.scrollHeight})}),H5P.communicator.on("resize",function(){H5P.trigger(f,"resize")}),H5P.on(f,"resize",function(){H5P.isFullscreen||(clearTimeout(c),c=setTimeout(function(){u?H5P.communicator.send("prepareResize",{scrollHeight:document.body.scrollHeight,clientHeight:document.body.clientHeight}):H5P.communicator.send("hello")},0))}))),H5P.isFramed&&!1!==H5P.externalEmbed||H5P.jQuery(window.parent).resize(function(){window.parent.H5P.isFullscreen,H5P.trigger(f,"resize")}),H5P.instances.push(f),H5P.trigger(f,"resize"),t.addClass("using-mouse"),t.on("mousedown keydown keyup",function(e){t.toggleClass("using-mouse","mousedown"===e.type)}),H5P.externalDispatcher&&H5P.externalDispatcher.trigger("initialized")}),H5P.jQuery("iframe.h5p-iframe:not(.h5p-initialized)",e).each(function(){var e=H5P.jQuery(this).addClass("h5p-initialized").data("content-id");this.contentDocument.open(),this.contentDocument.write('<!doctype html><html class="h5p-iframe"><head>'+H5P.getHeadTags(e)+'</head><body><div class="h5p-content" data-content-id="'+e+'"/></body></html>'),this.contentDocument.close()})},H5P.getHeadTags=function(e){function t(e){for(var t="",n=0;n<e.length;n++)t+='<link rel="stylesheet" href="'+e[n]+'">';return t}function n(e){for(var t="",n=0;n<e.length;n++)t+='<script src="'+e[n]+'"><\/script>';return t}return'<base target="_parent">'+t(H5PIntegration.core.styles)+t(H5PIntegration.contents["cid-"+e].styles)+n(H5PIntegration.core.scripts)+n(H5PIntegration.contents["cid-"+e].scripts)+"<script>H5PIntegration = window.parent.H5PIntegration; var H5P = H5P || {}; H5P.externalEmbed = false;<\/script>"},H5P.communicator=window.postMessage&&window.addEventListener?new function(){var n={};window.addEventListener("message",function(e){window.parent===e.source&&"h5p"===e.data.context&&void 0!==n[e.data.action]&&n[e.data.action](e.data)},!1),this.on=function(e,t){n[e]=t},this.send=function(e,t){(t=void 0===t?{}:t).context="h5p",t.action=e,window.parent.postMessage(t,"*")}}:void 0,H5P.semiFullScreen=function(e,t,n,i){H5P.fullScreen(e,t,n,i,!0)},H5P.fullScreen=function(e,t,n,i,r){if(void 0===H5P.exitFullScreen)if(H5P.isFramed&&!1===H5P.externalEmbed)window.parent.H5P.fullScreen(e,t,n,H5P.$body.get(),r),H5P.isFullscreen=!0,H5P.exitFullScreen=function(){window.parent.H5P.exitFullScreen()},H5P.on(t,"exitFullScreen",function(){H5P.isFullscreen=!1,H5P.exitFullScreen=void 0});else{function o(e){l.addClass(e),void 0!==u&&u.css("height","")}function a(){H5P.trigger(t,"resize"),H5P.trigger(t,"focus"),H5P.trigger(t,"enterFullScreen")}function s(e){H5P.isFullscreen=!1,l.removeClass(e),H5P.trigger(t,"resize"),H5P.trigger(t,"focus"),(H5P.exitFullScreen=void 0)!==n&&n(),H5P.trigger(t,"exitFullScreen")}var c,l,u,d=e;void 0===i?c=H5P.$body:(l=(c=H5P.jQuery(i)).add(e.get()),i="#h5p-iframe-"+e.parent().data("content-id"),e=(u=H5P.jQuery(i)).parent()),l=e.add(H5P.$body).add(l);if(H5P.isFullscreen=!0,void 0===H5P.fullScreenBrowserPrefix||!0===r){if(!H5P.isFramed){o("h5p-semi-fullscreen");var f,p,h=H5P.jQuery('<div role="button" tabindex="0" class="h5p-disable-fullscreen" title="'+H5P.t("disableFullscreen")+'" aria-label="'+H5P.t("disableFullscreen")+'"></div>').appendTo(d.find(".h5p-content-controls")),g=H5P.exitFullScreen=function(){f?p.content=f:y.removeChild(p),h.remove(),c.unbind("keyup",m),s("h5p-semi-fullscreen")},m=function(e){27===e.keyCode&&g()};h.click(g),c.keyup(m);for(var y,v=document.getElementsByTagName("meta"),b=0;b<v.length;b++)if("viewport"===v[b].name){p=v[b],f=p.content;break}f||((p=document.createElement("meta")).name="viewport"),p.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0",f||(y=document.getElementsByTagName("head")[0]).appendChild(p),a()}}else{o("h5p-fullscreen");var P,x="ms"===H5P.fullScreenBrowserPrefix?"MSFullscreenChange":H5P.fullScreenBrowserPrefix+"fullscreenchange";document.addEventListener(x,function(){void 0===P?(P=!1,a()):(s("h5p-fullscreen"),document.removeEventListener(x,arguments.callee,!1))}),""===H5P.fullScreenBrowserPrefix?e[0].requestFullScreen():(i="ms"===H5P.fullScreenBrowserPrefix?"msRequestFullscreen":H5P.fullScreenBrowserPrefix+"RequestFullScreen",r="webkit"===H5P.fullScreenBrowserPrefix&&0===H5P.safariBrowser?Element.ALLOW_KEYBOARD_INPUT:void 0,e[0][i](r)),H5P.exitFullScreen=function(){""===H5P.fullScreenBrowserPrefix?document.exitFullscreen():"moz"===H5P.fullScreenBrowserPrefix?document.mozCancelFullScreen():document[H5P.fullScreenBrowserPrefix+"ExitFullscreen"]()}}}},function(){H5P.addQueryParameter=function(e,t){let n,i;e=e.split("?");return n=e[1]?(i=e[1].split("#"),e[0]+"?"+i[0]+"&"):(i=e[0].split("#"))[0]+"?",n+=t,i[1]&&(n+="#"+i[1]),n},H5P.setSource=function(e,t,n){let i=t.path;t=H5P.getCrossOrigin(t);t?(e.crossOrigin=t,H5PIntegration.crossoriginCacheBuster&&(i=H5P.addQueryParameter(i,H5PIntegration.crossoriginCacheBuster))):e.removeAttribute("crossorigin"),e.src=H5P.getPath(i,n)};function r(e){return e.match(/^[a-z0-9]+:\/\//i)}H5P.getCrossOrigin=function(e){return"object"!=typeof e?H5PIntegration.crossorigin&&H5PIntegration.crossoriginRegex&&e.match(H5PIntegration.crossoriginRegex)?H5PIntegration.crossorigin:null:H5PIntegration.crossorigin&&!r(e.path)?H5PIntegration.crossorigin:void 0},H5P.getPath=function(e,t){if(r(e))return e;var n,i="#tmp"===e.substr(-4,4);if(void 0===t||i){if(void 0===window.H5PEditor)return;n=H5PEditor.filesPath}else n=(n=void 0!==H5PIntegration.contents&&H5PIntegration.contents["cid-"+t]?H5PIntegration.contents["cid-"+t].contentUrl:n)||H5PIntegration.url+"/content/"+t;return(n=r(n)?n:window.location.protocol+"//"+window.location.host+n)+"/"+e}}(),H5P.getContentPath=function(e){return H5PIntegration.url+"/content/"+e},H5P.classFromName=function(e){e=e.split(".");return this[e[e.length-1]]},H5P.newRunnable=function(t,e,n,i,r){var o,a;try{a=(s=t.library.split(" ",2))[0],o=s[1].split(".",2)}catch(e){return H5P.error("Invalid library string: "+t.library)}if(t.params instanceof Object!=!0||t.params instanceof Array==!0)return H5P.error("Invalid library params for: "+t.library),H5P.error(t.params);try{for(var s=s[0].split("."),c=window,l=0;l<s.length;l++)c=c[s[l]];if("function"!=typeof c)throw null}catch(e){return H5P.error("Unable to find constructor for: "+t.library)}void 0===r&&(r={}),t.subContentId&&(r.subContentId=t.subContentId),t.userDatas&&t.userDatas.state&&H5PIntegration.saveFreq&&(r.previousState=t.userDatas.state),t.metadata&&(r.metadata=t.metadata);var u,d=r.standalone||!1;return c.prototype=H5P.jQuery.extend({},H5P.ContentType(d).prototype,c.prototype),void 0===(u=-1<H5P.jQuery.inArray(t.library,["H5P.CoursePresentation 1.0","H5P.CoursePresentation 1.1","H5P.CoursePresentation 1.2","H5P.CoursePresentation 1.3"])?new c(t.params,e):new c(t.params,e,r)).$&&(u.$=H5P.jQuery(u)),void 0===u.contentId&&(u.contentId=e),void 0===u.subContentId&&t.subContentId&&(u.subContentId=t.subContentId),void 0===u.parent&&r&&r.parent&&(u.parent=r.parent),void 0===u.libraryInfo&&(u.libraryInfo={versionedName:t.library,versionedNameNoSpaces:a+"-"+o[0]+"."+o[1],machineName:a,majorVersion:o[0],minorVersion:o[1]}),void 0!==n&&(n.toggleClass("h5p-standalone",d),u.attach(n),H5P.trigger(u,"domChanged",{$target:n,library:a,key:"newLibrary"},{bubbles:!0,external:!0}),void 0!==i&&i||H5P.trigger(u,"resize")),u},H5P.error=function(e){void 0!==window.console&&void 0!==console.error&&console.error(e.stack||e)},H5P.t=function(e,t,n){if(void 0===n&&(n="H5P"),void 0===H5PIntegration.l10n[n])return'[Missing translation namespace "'+n+'"]';if(void 0===H5PIntegration.l10n[n][e])return'[Missing translation "'+e+'" in "'+n+'"]';var i=H5PIntegration.l10n[n][e];if(void 0!==t)for(var r in t)i=i.replace(r,t[r]);return i},H5P.Dialog=function(e,t,n,i){var r=this,o=H5P.jQuery('<div class="h5p-popup-dialog h5p-'+e+'-dialog" role="dialog" tabindex="-1"> <div class="h5p-inner"> <h2>'+t+'</h2> <div class="h5p-scroll-content">'+n+'</div> <div class="h5p-close" role="button" tabindex="0" aria-label="'+H5P.t("close")+'" title="'+H5P.t("close")+'"></div> </div> </div>').insertAfter(i).click(function(e){e&&e.originalEvent&&e.originalEvent.preventClosing||r.close()}).children(".h5p-inner").click(function(e){e.originalEvent.preventClosing=!0}).find(".h5p-close").click(function(){r.close()}).keypress(function(e){if(13===e.which||32===e.which)return r.close(),!1}).end().find("a").click(function(e){e.stopPropagation()}).end().end();r.open=function(e){e&&o.css("height","100%"),setTimeout(function(){o.addClass("h5p-open"),H5P.jQuery(r).trigger("dialog-opened",[o]),o.focus()},1)},r.close=function(){o.removeClass("h5p-open"),setTimeout(function(){o.remove(),H5P.jQuery(r).trigger("dialog-closed",[o]),i.attr("tabindex","-1"),i.focus()},200)}},H5P.getCopyrights=function(e,t,n,i){var r;if(void 0!==e.getCopyrights)try{r=e.getCopyrights()}catch(e){}void 0===r&&(r=new H5P.ContentCopyrights,H5P.findCopyrights(r,t,n));t=H5P.buildMetadataCopyrights(i,e.libraryInfo.machineName);return void 0!==t&&r.addMediaInFront(t),r=void 0!==r?r.toString():r},H5P.findCopyrights=function(o,e,t,n){var i,r,a,s;for(r in n&&(n.params=e,c(n,n.machineName,t)),e)e.hasOwnProperty(r)&&("overrideSettings"===r?(console.warn("The semantics field 'overrideSettings' is DEPRECATED and should not be used."),console.warn(e)):((a=e[r])&&a.library&&"string"==typeof a.library?i=a.library.split(" ")[0]:a&&a.library&&"object"==typeof a.library&&(i=a.library.library&&"string"==typeof a.library.library?a.library.library.split(" ")[0]:i),a instanceof Array?H5P.findCopyrights(o,a,t):a instanceof Object&&(c(a,i,t),void 0===a.copyright||void 0===a.copyright.license||void 0===a.path||void 0===a.mime?H5P.findCopyrights(o,a,t):(s=new H5P.MediaCopyright(a.copyright),void 0!==a.width&&void 0!==a.height&&s.setThumbnail(new H5P.Thumbnail(H5P.getPath(a.path,t),a.width,a.height)),o.addMedia(s)))));function c(e,t,n){var i,r;e.metadata&&void 0!==(t=H5P.buildMetadataCopyrights(e.metadata,t))&&(e.params&&"Image"===e.params.contentName&&e.params.file&&(i=e.params.file.path,r=e.params.file.width,e=e.params.file.height,t.setThumbnail(new H5P.Thumbnail(H5P.getPath(i,n),r,e))),o.addMedia(t))}},H5P.buildMetadataCopyrights=function(e){if(e&&void 0!==e.license&&"U"!==e.license)return e={contentType:e.contentType,title:e.title,author:e.authors&&0<e.authors.length?e.authors.map(function(e){return e.role?e.name+" ("+e.role+")":e.name}).join(", "):void 0,source:e.source,year:e.yearFrom?e.yearFrom+(e.yearTo?"-"+e.yearTo:""):void 0,license:e.license,version:e.licenseVersion,licenseExtras:e.licenseExtras,changes:e.changes&&0<e.changes.length?e.changes.map(function(e){return e.log+(e.author?", "+e.author:"")+(e.date?", "+e.date:"")}).join(" / "):void 0},new H5P.MediaCopyright(e)},H5P.openReuseDialog=function(e,n,i,r,o){let t="";n.displayOptions.export&&(t+='<button type="button" class="h5p-big-button h5p-download-button"><div class="h5p-button-title">Download as an .h5p file</div><div class="h5p-button-description">.h5p files may be uploaded to any web-site where H5P content may be created.</div></button>'),n.displayOptions.export&&n.displayOptions.copy&&(t+='<div class="h5p-horizontal-line-text"><span>or</span></div>'),n.displayOptions.copy&&(t+='<button type="button" class="h5p-big-button h5p-copy-button"><div class="h5p-button-title">Copy content</div><div class="h5p-button-description">Copied content may be pasted anywhere this content type is supported on this website.</div></button>');const a=new H5P.Dialog("reuse",H5P.t("reuseContent"),t,e);H5P.jQuery(a).on("dialog-opened",function(e,t){H5P.jQuery('<a href="https://h5p.org/node/442225" target="_blank">More Info</a>').click(function(e){e.stopPropagation()}).appendTo(t.find("h2")),t.find(".h5p-download-button").click(function(){window.location.href=n.exportUrl,r.triggerXAPI("downloaded"),a.close()}),t.find(".h5p-copy-button").click(function(){var e=new H5P.ClipboardItem(i);e.contentId=o,H5P.setClipboard(e),r.triggerXAPI("copied"),a.close(),H5P.attachToastTo(H5P.jQuery(".h5p-content:first")[0],H5P.t("contentCopied"),{position:{horizontal:"centered",vertical:"centered",noOverflowX:!0}})}),H5P.trigger(r,"resize")}).on("dialog-closed",function(){H5P.trigger(r,"resize")}),a.open()},H5P.openEmbedDialog=function(e,t,n,l,u){var d=t+n,t=new H5P.Dialog("embed",H5P.t("embed"),'<textarea class="h5p-embed-code-container" autocorrect="off" autocapitalize="off" spellcheck="false"></textarea>'+H5P.t("size")+': <input type="text" value="'+Math.ceil(l.width)+'" class="h5p-embed-size"/> × <input type="text" value="'+Math.ceil(l.height)+'" class="h5p-embed-size"/> px<br/><div role="button" tabindex="0" class="h5p-expander">'+H5P.t("showAdvanced")+'</div><div class="h5p-expander-content"><p>'+H5P.t("advancedHelp")+'</p><textarea class="h5p-embed-code-container" autocorrect="off" autocapitalize="off" spellcheck="false">'+n+"</textarea></div>",e);H5P.jQuery(t).on("dialog-opened",function(e,n){function i(){H5P.trigger(u,"resize")}function t(e,t){return e=parseFloat(e.val()),isNaN(e)?t:Math.ceil(e)}function r(){n.find(".h5p-embed-code-container:first").val(d.replace(":w",t(s,l.width)).replace(":h",t(c,l.height)))}function o(){var e=H5P.jQuery(this),t=e.next();t.is(":visible")?(e.removeClass("h5p-open").text(H5P.t("showAdvanced")).attr("aria-expanded","true"),t.hide()):(e.addClass("h5p-open").text(H5P.t("hideAdvanced")).attr("aria-expanded","false"),t.show()),n.find(".h5p-embed-code-container").each(function(){H5P.jQuery(this).css("height",this.scrollHeight+"px")}),i()}var a=n.find(".h5p-inner").find(".h5p-scroll-content"),s=(a.outerHeight(),a.innerHeight(),n.find(".h5p-embed-size:eq(0)")),c=n.find(".h5p-embed-size:eq(1)");s.change(r),c.change(r),r(),n.find(".h5p-embed-code-container").each(function(){H5P.jQuery(this).css("height",this.scrollHeight+"px").focus(function(){H5P.jQuery(this).select()})}),n.find(".h5p-embed-code-container").eq(0).select(),i();n.find(".h5p-expander").click(o).keypress(function(e){if(32===e.keyCode)return o.apply(this),!1})}).on("dialog-closed",function(){H5P.trigger(u,"resize")}),t.open()},H5P.attachToastTo=function(t,e,n){if(void 0===t||void 0===e)return;function i(e){-1===r(e).indexOf(t)&&(clearTimeout(c),o())}const r=function(e){var t=e.composedPath&&e.composedPath()||e.path,e=e.target;return null!=t?t.indexOf(window)<0?t.concat(window):t:e===window?[window]:[e].concat(function e(t,n){n=n||[];t=t.parentNode;return t?e(t,n.concat(t)):n}(e),window)},o=function(){document.removeEventListener("click",i),a.parentNode&&a.parentNode.removeChild(a)};(n=n||{}).style=n.style||"h5p-toast",n.duration=n.duration||3e3;const a=document.createElement("div");a.setAttribute("id",n.style),a.classList.add("h5p-toast-disabled"),a.classList.add(n.style);var s=document.createElement("span"),e=(s.innerHTML=e,a.appendChild(s),document.body.appendChild(a),function(e,t,n){(n=n||{}).offsetHorizontal=n.offsetHorizontal||0,n.offsetVertical=n.offsetVertical||0;var i=t.getBoundingClientRect(),r=e.getBoundingClientRect();let o=0,a=0;switch(n.horizontal){case"before":o=r.left-i.width-n.offsetHorizontal;break;case"after":o=r.left+r.width+n.offsetHorizontal;break;case"left":o=r.left+n.offsetHorizontal;break;case"right":o=r.left+r.width-i.width-n.offsetHorizontal;break;default:o=r.left+r.width/2-i.width/2+n.offsetHorizontal}switch(n.vertical){case"above":a=r.top-i.height-n.offsetVertical;break;case"below":a=r.top+r.height+n.offsetVertical;break;case"top":a=r.top+n.offsetVertical;break;case"bottom":a=r.top+r.height-i.height-n.offsetVertical;break;case"centered":a=r.top+r.height/2-i.height/2+n.offsetVertical;break;default:a=r.top+r.height+n.offsetVertical}t=document.body.getBoundingClientRect();return(n.noOverflowLeft||n.noOverflowX)&&o<t.x&&(o=t.x),(n.noOverflowRight||n.noOverflowX)&&o+i.width>t.x+t.width&&(o=t.x+t.width-i.width),(n.noOverflowTop||n.noOverflowY)&&a<t.y&&(a=t.y),{left:o=(n.noOverflowBottom||n.noOverflowY)&&a+i.height>t.y+t.height?t.y+t.height-i.height:o,top:a}}(t,a,n.position));a.style.left=Math.round(e.left)+"px",a.style.top=Math.round(e.top)+"px",a.classList.remove("h5p-toast-disabled");const c=setTimeout(o,n.duration);document.addEventListener("click",i)},H5P.ContentCopyrights=function(){var n,i=[],r=[];this.setLabel=function(e){n=e},this.addMedia=function(e){void 0!==e&&i.push(e)},this.addMediaInFront=function(e){void 0!==e&&i.unshift(e)},this.addContent=function(e){void 0!==e&&r.push(e)},this.toString=function(){for(var e="",t=0;t<i.length;t++)e+=i[t];for(t=0;t<r.length;t++)e+=r[t];return e=""!==e?'<div class="h5p-content-copyrights">'+(e=void 0!==n?"<h3>"+n+"</h3>"+e:e)+"</div>":e}},H5P.MediaCopyright=function(e,t,n,i){function r(e){return void 0===t||void 0===t[e]?H5P.t(e):t[e]}function o(e,t){var n,i,r=H5P.copyrightLicenses[e],o="",r=("PD"===e&&t||(o+=r.hasOwnProperty("label")?r.label:r),(n=r.versions&&(t=!r.versions.default||t&&r.versions[t]?t:r.versions.default)&&r.versions[t]?r.versions[t]:n)&&(o&&(o+=" "),o+=n.hasOwnProperty("label")?n.label:n),r.hasOwnProperty("link")?i=r.link.replace(":version",r.linkVersions?r.linkVersions[t]:t):n&&r.hasOwnProperty("link")&&(i=n.link),i&&(o='<a href="'+i+'" target="_blank">'+o+"</a>"),"");return"PD"!==e&&"C"!==e&&(r+=e),t&&"CC0 1.0"!==t&&(r&&"GNU GPL"!==e&&(r+=" "),r+=t),r&&(o+=" ("+r+")"),"C"===e&&(o+=" ©"),o}var a,s=new H5P.DefinitionList;if(void 0!==e){for(var c in i)i.hasOwnProperty(c)&&(e[c]=i[c]);void 0===n&&(n=["contentType","title","license","author","year","source","licenseExtras","changes"]);for(var l=0;l<n.length;l++){var u,d=n[l];void 0!==e[d]&&""!==e[d]&&(u=e[d],"license"===d&&(u=o(e.license,e.version)),"source"===d&&(u=u?'<a href="'+u+'" target="_blank">'+u+"</a>":void 0),s.add(new H5P.Field(r(d),u)))}}this.setThumbnail=function(e){a=e},this.undisclosed=function(){if(1===s.size()){var e=s.get(0);if(e.getLabel()===r("license")&&e.getValue()===o("U"))return!0}return!1},this.toString=function(){var e="";return this.undisclosed()||(void 0!==a&&(e+=a),""!==(e+=s)&&(e='<div class="h5p-media-copyright">'+e+"</div>")),e}},H5P.Thumbnail=function(e,t,n){var i;void 0!==t&&(i=Math.round(t/n*100)),this.toString=function(){return'<img src="'+e+'" alt="'+H5P.t("thumbnail")+'" class="h5p-thumbnail" height="100"'+(void 0===i?"":' width="'+i+'"')+"/>"}},H5P.Field=function(e,t){this.getLabel=function(){return e},this.getValue=function(){return t}},H5P.DefinitionList=function(){var i=[];this.add=function(e){i.push(e)},this.size=function(){return i.length},this.get=function(e){return i[e]},this.toString=function(){for(var e="",t=0;t<i.length;t++){var n=i[t];e+="<dt>"+n.getLabel()+"</dt><dd>"+n.getValue()+"</dd>"}return""===e?e:'<dl class="h5p-definition-list">'+e+"</dl>"}},H5P.Coords=function(e,t,n,i){return this instanceof H5P.Coords?(this.x=0,this.y=0,this.w=1,this.h=1,"object"==typeof e?(this.x=e.x,this.y=e.y,this.w=e.w,this.h=e.h):(void 0!==e&&(this.x=e),void 0!==t&&(this.y=t),void 0!==n&&(this.w=n),void 0!==i&&(this.h=i)),this):new H5P.Coords(e,t,n,i)},H5P.libraryFromString=function(e){e=/(.+)\s(\d+)\.(\d+)$/g.exec(e);return null!==e&&{machineName:e[1],majorVersion:parseInt(e[2]),minorVersion:parseInt(e[3])}},H5P.getLibraryPath=function(e){return void 0!==H5PIntegration.urlLibraries?H5PIntegration.urlLibraries+"/"+e:H5PIntegration.url+"/libraries/"+e},H5P.cloneObject=function(e,t){var n,i=e instanceof Array?[]:{};for(n in e)e.hasOwnProperty(n)&&(void 0!==t&&t&&"object"==typeof e[n]?i[n]=H5P.cloneObject(e[n],t):i[n]=e[n]);return i},H5P.trim=function(e){return e.replace(/^\s+|\s+$/g,"")},H5P.jsLoaded=function(e){return H5PIntegration.loadedJs=H5PIntegration.loadedJs||[],-1!==H5P.jQuery.inArray(e,H5PIntegration.loadedJs)},H5P.cssLoaded=function(e){return H5PIntegration.loadedCss=H5PIntegration.loadedCss||[],-1!==H5P.jQuery.inArray(e,H5PIntegration.loadedCss)},H5P.shuffleArray=function(e){if(e instanceof Array){var t,n,i,r=e.length;if(0===r)return!1;for(;--r;)t=Math.floor(Math.random()*(r+1)),n=e[r],i=e[t],e[r]=i,e[t]=n;return e}},H5P.setFinished=function(e,t,n,i){if(("number"==typeof t||t instanceof Number)&&!0===H5PIntegration.postUserStatistics){function r(e){return Math.round(e.getTime()/1e3)}const o={contentId:e,score:t,maxScore:n,opened:r(H5P.opened[e]),finished:r(new Date),time:i};H5P.jQuery.post(H5PIntegration.ajax.setFinished,o).fail(function(){H5P.offlineRequestQueue.add(H5PIntegration.ajax.setFinished,o)})}},Array.prototype.indexOf||(Array.prototype.indexOf=function(e){for(var t=0;t<this.length;t++)if(this[t]===e)return t;return-1}),void 0===String.prototype.trim&&(String.prototype.trim=function(){return H5P.trim(this)}),H5P.trigger=function(e,t,n,i){void 0!==e.trigger?e.trigger(t,n,i):void 0!==e.$&&void 0!==e.$.trigger&&e.$.trigger(t)},H5P.on=function(e,t,n){void 0!==e.on?e.on(t,n):void 0!==e.$&&void 0!==e.$.on&&e.$.on(t,n)},H5P.createUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},H5P.createTitle=function(e,t){if(!e)return"";void 0===t&&(t=60);e=H5P.jQuery("<div></div>").text(e.replace(/(<([^>]+)>)/gi,"")).text();return e=e.length>t?e.substr(0,t-3)+"...":e},function(c){function s(e,t,n,i,r,o,a,s){void 0===H5PIntegration.user?i("Not signed in."):(e={url:H5PIntegration.ajax.contentUserData.replace(":contentId",e).replace(":dataType",t).replace(":subContentId",n||0),dataType:"json",async:void 0===s||s},void 0!==r?(e.type="POST",e.data={data:null===r?0:r,preload:o?1:0,invalidate:a?1:0}):e.type="GET",void 0!==i&&(e.error=function(e,t){i(t)},e.success=function(e){e.success?!1===e.data||void 0===e.data?i():i(void 0,e.data):i(e.message)}),c.ajax(e))}H5P.getUserData=function(e,n,i,r){r=r||0,H5PIntegration.contents=H5PIntegration.contents||{};var o=H5PIntegration.contents["cid-"+e]||{},a=o.contentUserData;if(a&&a[r]&&void 0!==a[r][n])if("RESET"===a[r][n])i(void 0,null);else try{i(void 0,JSON.parse(a[r][n]))}catch(e){i(e)}else s(e,n,r,function(e,t){if(e||void 0===t)i(e,t);else{void 0===o.contentUserData&&(o.contentUserData=a={}),void 0===a[r]&&(a[r]={}),a[r][n]=t;try{i(void 0,JSON.parse(t))}catch(e){i(e)}}})},H5P.setUserData=function(e,t,n,i){var r=H5P.jQuery.extend(!0,{},{subContentId:0,preloaded:!0,deleteOnChange:!1,async:!0},i);try{n=JSON.stringify(n)}catch(e){return void(r.errorCallback&&r.errorCallback(e))}i=H5PIntegration.contents["cid-"+e],(i=void 0===i?H5PIntegration.contents["cid-"+e]={}:i).contentUserData||(i.contentUserData={}),i=i.contentUserData;void 0===i[r.subContentId]&&(i[r.subContentId]={}),n!==i[r.subContentId][t]&&(i[r.subContentId][t]=n,s(e,t,r.subContentId,function(e){r.errorCallback&&e&&r.errorCallback(e)},n,r.preloaded,r.deleteOnChange,r.async))},H5P.deleteUserData=function(e,t,n){n=n||0;var i=H5PIntegration.contents["cid-"+e].contentUserData;i&&i[n]&&i[n][t]&&delete i[n][t],s(e,t,n,void 0,null)},H5P.getContentForInstance=function(e){e="cid-"+e;return H5PIntegration&&H5PIntegration.contents&&H5PIntegration.contents[e]?H5PIntegration.contents[e]:void 0},H5P.ClipboardItem=function(e,t,n){var i=this;t||(t="action",e={action:e}),i.specific=e,t&&e[t]&&(i.generic=t),n&&(i.from=n),window.H5PEditor&&H5PEditor.contentId&&(i.contentId=H5PEditor.contentId),i.specific.width||i.specific.height||i.generic&&(e=i.specific[i.generic]).params.file&&e.params.file.width&&e.params.file.height&&(i.width=20,i.height=e.params.file.height/e.params.file.width*i.width)},H5P.clipboardify=function(e){e instanceof H5P.ClipboardItem||(e=new H5P.ClipboardItem(e)),H5P.setClipboard(e)},H5P.getClipboard=function(){return e()},H5P.setClipboard=function(e){localStorage.setItem("h5pClipboard",JSON.stringify(e)),H5P.externalDispatcher.trigger("datainclipboard",{reset:!1})},H5P.getLibraryConfig=function(e){return H5PIntegration.libraryConfig&&H5PIntegration.libraryConfig[e]?H5PIntegration.libraryConfig[e]:{}};var e=function(){var t=localStorage.getItem("h5pClipboard");if(t){try{t=JSON.parse(t)}catch(e){return void console.error("Unable to parse JSON from clipboard.",e)}return i(t.specific,function(e){return"#tmp"===e.substr(-4,4)||!t.contentId||e.match(/^https?:\/\//i)?e:H5PEditor.contentId?"../"+t.contentId+"/"+e:(H5PEditor.contentRelUrl||"../content/")+t.contentId+"/"+e}),t.generic&&(t.generic=t.specific[t.generic]),t}},i=function(e,t){for(var n in e)e.hasOwnProperty(n)&&e[n]instanceof Object&&(void 0!==(n=e[n]).path&&void 0!==n.mime?n.path=t(n.path):(void 0!==n.library&&void 0!==n.subContentId&&delete n.subContentId,i(n,t)))};c(document).ready(function(){window.addEventListener("storage",function(e){"h5pClipboard"===e.key&&H5P.externalDispatcher.trigger("datainclipboard",{reset:null===e.newValue})});var r,e,t={default:"4.0","4.0":H5P.t("licenseCC40"),"3.0":H5P.t("licenseCC30"),2.5:H5P.t("licenseCC25"),"2.0":H5P.t("licenseCC20"),"1.0":H5P.t("licenseCC10")};H5P.copyrightLicenses={U:H5P.t("licenseU"),"CC BY":{label:H5P.t("licenseCCBY"),link:"http://creativecommons.org/licenses/by/:version",versions:t},"CC BY-SA":{label:H5P.t("licenseCCBYSA"),link:"http://creativecommons.org/licenses/by-sa/:version",versions:t},"CC BY-ND":{label:H5P.t("licenseCCBYND"),link:"http://creativecommons.org/licenses/by-nd/:version",versions:t},"CC BY-NC":{label:H5P.t("licenseCCBYNC"),link:"http://creativecommons.org/licenses/by-nc/:version",versions:t},"CC BY-NC-SA":{label:H5P.t("licenseCCBYNCSA"),link:"http://creativecommons.org/licenses/by-nc-sa/:version",versions:t},"CC BY-NC-ND":{label:H5P.t("licenseCCBYNCND"),link:"http://creativecommons.org/licenses/by-nc-nd/:version",versions:t},"CC0 1.0":{label:H5P.t("licenseCC010"),link:"https://creativecommons.org/publicdomain/zero/1.0/"},"GNU GPL":{label:H5P.t("licenseGPL"),link:"http://www.gnu.org/licenses/gpl-:version-standalone.html",linkVersions:{v3:"3.0",v2:"2.0",v1:"1.0"},versions:{default:"v3",v3:H5P.t("licenseV3"),v2:H5P.t("licenseV2"),v1:H5P.t("licenseV1")}},PD:{label:H5P.t("licensePD"),versions:{"CC0 1.0":{label:H5P.t("licenseCC010"),link:"https://creativecommons.org/publicdomain/zero/1.0/"},"CC PDM":{label:H5P.t("licensePDM"),link:"https://creativecommons.org/publicdomain/mark/1.0/"}}},"ODC PDDL":'<a href="http://opendatacommons.org/licenses/pddl/1.0/" target="_blank">Public Domain Dedication and Licence</a>',"CC PDM":{label:H5P.t("licensePDM"),link:"https://creativecommons.org/publicdomain/mark/1.0/"},C:H5P.t("licenseC")},H5P.isFramed&&!1===H5P.externalEmbed&&H5P.externalDispatcher.on("*",function(e){window.parent.H5P.externalDispatcher.trigger.call(this,e)}),H5P.preventInit||H5P.init(document.body),!1!==H5PIntegration.saveFreq&&(r=0,e=function(){var e=(new Date).getTime();if(250<e-r){r=e;for(var t=0;t<H5P.instances.length;t++){var n,i=H5P.instances[t];(i.getCurrentState instanceof Function||"function"==typeof i.getCurrentState)&&void 0!==(n=i.getCurrentState())&&H5P.setUserData(i.contentId,"state",n,{deleteOnChange:!0,async:!1})}}},H5P.$window.one("beforeunload unload",function(){H5P.$window.off("pagehide beforeunload unload"),e()}),H5P.$window.on("pagehide",e))})}(H5P.jQuery),(H5P=window.H5P=window.H5P||{}).Event=function(e,t,n){this.type=e,this.data=t;var i=!1,r=!1,o=!1;!0===(n=void 0===n?{}:n).bubbles&&(i=!0),!0===n.external&&(r=!0),this.preventBubbling=function(){i=!1},this.getBubbles=function(){return i},this.scheduleForExternal=function(){return!(!r||o)&&(o=!0)}},H5P.EventDispatcher=function(){function i(e,t){if(void 0!==a[e])for(var n=a[e].slice(),i=0;i<n.length;i++){var r=n[i],o=r.thisArg||this;r.listener.call(o,t)}}var r=this,a={};this.on=function(e,t,n){if("function"!=typeof t)throw TypeError("listener must be a function");r.trigger("newListener",{type:e,listener:t});t={listener:t,thisArg:n};a[e]?a[e].push(t):a[e]=[t]},this.once=function(e,t,n){if(!(t instanceof Function))throw TypeError("listener must be a function");var i=function(e){r.off(e.type,i),t.call(this,e)};r.on(e,i,n)},this.off=function(e,t){if(void 0!==t&&!(t instanceof Function))throw TypeError("listener must be a function");if(void 0!==a[e])if(void 0===t)delete a[e],r.trigger("removeListener",e);else{for(var n=0;n<a[e].length;n++)if(a[e][n].listener===t){a[e].splice(n,1),r.trigger("removeListener",e,{listener:t});break}a[e].length||delete a[e]}},this.trigger=function(e,t,n){void 0!==e&&(e instanceof String||"string"==typeof e?e=new H5P.Event(e,t,n):void 0!==t&&(e.data=t),n=e.scheduleForExternal(),i.call(this,e.type,e),i.call(this,"*",e),e.getBubbles()&&r.parent instanceof H5P.EventDispatcher&&(r.parent.trigger instanceof Function||"function"==typeof r.parent.trigger)&&r.parent.trigger(e),n)&&H5P.externalDispatcher.trigger.call(this,e)}},(H5P=window.H5P=window.H5P||{}).XAPIEvent=function(){H5P.Event.call(this,"xAPI",{statement:{}},{bubbles:!0,external:!0})},H5P.XAPIEvent.prototype=Object.create(H5P.Event.prototype),H5P.XAPIEvent.prototype.constructor=H5P.XAPIEvent,H5P.XAPIEvent.prototype.setScoredResult=function(e,t,n,i,r){this.data.statement.result={},void 0!==e&&(void 0===t?this.data.statement.result.score={raw:e}:(this.data.statement.result.score={min:0,max:t,raw:e},0<t&&(this.data.statement.result.score.scaled=Math.round(e/t*1e4)/1e4))),this.data.statement.result.completion=void 0===i?"completed"===this.getVerb()||"answered"===this.getVerb():i,void 0!==r&&(this.data.statement.result.success=r),n&&n.activityStartTime&&(e=Math.round((Date.now()-n.activityStartTime)/10)/100,this.data.statement.result.duration="PT"+e+"S")},H5P.XAPIEvent.prototype.setVerb=function(e){-1!==H5P.jQuery.inArray(e,H5P.XAPIEvent.allowedXAPIVerbs)?this.data.statement.verb={id:"http://adlnet.gov/expapi/verbs/"+e,display:{"en-US":e}}:void 0!==e.id&&(this.data.statement.verb=e)},H5P.XAPIEvent.prototype.getVerb=function(e){var t=this.data.statement;return"verb"in t?!0===e?t.verb:t.verb.id.slice(31):null},H5P.XAPIEvent.prototype.setObject=function(e){e.contentId?(this.data.statement.object={id:this.getContentXAPIId(e),objectType:"Activity",definition:{extensions:{"http://h5p.org/x-api/h5p-local-content-id":e.contentId}}},e.subContentId?(this.data.statement.object.definition.extensions["http://h5p.org/x-api/h5p-subContentId"]=e.subContentId,"function"==typeof e.getTitle&&(this.data.statement.object.definition.name={"en-US":e.getTitle()})):(e=H5P.getContentForInstance(e.contentId))&&e.metadata&&e.metadata.title&&(this.data.statement.object.definition.name={"en-US":H5P.createTitle(e.metadata.title)})):this.data.statement.object={definition:{}}},H5P.XAPIEvent.prototype.setContext=function(e){e.parent&&(e.parent.contentId||e.parent.subContentId)&&(this.data.statement.context={contextActivities:{parent:[{id:this.getContentXAPIId(e.parent),objectType:"Activity"}]}}),e.libraryInfo&&(void 0===this.data.statement.context&&(this.data.statement.context={contextActivities:{}}),this.data.statement.context.contextActivities.category=[{id:"http://h5p.org/libraries/"+e.libraryInfo.versionedNameNoSpaces,objectType:"Activity"}])},H5P.XAPIEvent.prototype.setActor=function(){if(void 0!==H5PIntegration.user)this.data.statement.actor={name:H5PIntegration.user.name,mbox:"mailto:"+H5PIntegration.user.mail,objectType:"Agent"};else{var t;try{localStorage.H5PUserUUID?t=localStorage.H5PUserUUID:(t=H5P.createUUID(),localStorage.H5PUserUUID=t)}catch(e){t="not-trackable-"+H5P.createUUID()}this.data.statement.actor={account:{name:t,homePage:H5PIntegration.siteUrl},objectType:"Agent"}}},H5P.XAPIEvent.prototype.getMaxScore=function(){return this.getVerifiedStatementValue(["result","score","max"])},H5P.XAPIEvent.prototype.getScore=function(){return this.getVerifiedStatementValue(["result","score","raw"])},H5P.XAPIEvent.prototype.getContentXAPIId=function(e){var t;return e.contentId&&H5PIntegration&&H5PIntegration.contents&&H5PIntegration.contents["cid-"+e.contentId]&&(t=H5PIntegration.contents["cid-"+e.contentId].url,e.subContentId)&&(t+="?subContentId="+e.subContentId),t},H5P.XAPIEvent.prototype.isFromChild=function(){var e=this.getVerifiedStatementValue(["context","contextActivities","parent",0,"id"]);return!e||-1===e.indexOf("subContentId")},H5P.XAPIEvent.prototype.getVerifiedStatementValue=function(e){for(var t=this.data.statement,n=0;n<e.length;n++){if(void 0===t[e[n]])return null;t=t[e[n]]}return t},H5P.XAPIEvent.allowedXAPIVerbs=["answered","asked","attempted","attended","commented","completed","exited","experienced","failed","imported","initialized","interacted","launched","mastered","passed","preferred","progressed","registered","responded","resumed","scored","shared","suspended","terminated","voided","downloaded","copied","accessed-reuse","accessed-embed","accessed-copyright"],(H5P=window.H5P=window.H5P||{}).externalDispatcher=new H5P.EventDispatcher,H5P.EventDispatcher.prototype.triggerXAPI=function(e,t){this.trigger(this.createXAPIEventTemplate(e,t))},H5P.EventDispatcher.prototype.createXAPIEventTemplate=function(e,t){var n=new H5P.XAPIEvent;if(n.setActor(),n.setVerb(e),void 0!==t)for(var i in t)n.data.statement[i]=t[i];return"object"in n.data.statement||n.setObject(this),"context"in n.data.statement||n.setContext(this),n},H5P.EventDispatcher.prototype.triggerXAPICompleted=function(e,t,n){this.triggerXAPIScored(e,t,"completed",!0,n)},H5P.EventDispatcher.prototype.triggerXAPIScored=function(e,t,n,i,r){n=this.createXAPIEventTemplate(n);n.setScoredResult(e,t,this,i,r),this.trigger(n)},H5P.EventDispatcher.prototype.setActivityStarted=function(){void 0===this.activityStartTime&&(void 0!==this.contentId&&void 0!==H5PIntegration.contents&&void 0!==H5PIntegration.contents["cid-"+this.contentId]&&this.triggerXAPI("attempted"),this.activityStartTime=Date.now())},H5P.xAPICompletedListener=function(e){var t,n;"completed"!==e.getVerb()&&"answered"!==e.getVerb()||e.getVerifiedStatementValue(["context","contextActivities","parent"])||(t=e.getScore(),n=e.getMaxScore(),e=e.getVerifiedStatementValue(["object","definition","extensions","http://h5p.org/x-api/h5p-local-content-id"]),H5P.setFinished(e,t,n))},/*!@license js/h5p-content-type.js by Joubel and other contributors, licensed under GNU GENERAL PUBLIC LICENSE Version 3*/
| |