/*!
 * ActivePresenter HTML5 Output File
 * Copyright (c) Atomi Systems, Inc. All rights reserved.
 * https://atomisystems.com/activepresenter/
 * Version: 8.0.6
 * Date: 2020.04.28
 */
/*!
 * jQuery JavaScript Library v3.2.1
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2017-03-20T18:59Z
 */
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=[],i=e.document,o=Object.getPrototypeOf,r=n.slice,s=n.concat,a=n.push,l=n.indexOf,u={},c=u.toString,p=u.hasOwnProperty,f=p.toString,h=f.call(Object),d={};function g(e,t){var n=(t=t||i).createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}var m="3.2.1",v=function(e,t){return new v.fn.init(e,t)},y=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,b=/^-ms-/,x=/-([a-z])/g,w=function(e,t){return t.toUpperCase()};function C(e){var t=!!e&&"length"in e&&e.length,n=v.type(e);return"function"!==n&&!v.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}v.fn=v.prototype={jquery:m,constructor:v,length:0,toArray:function(){return r.call(this)},get:function(e){return null==e?r.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=v.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return v.each(this,e)},map:function(e){return this.pushStack(v.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(r.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:a,sort:n.sort,splice:n.splice},v.extend=v.fn.extend=function(){var e,t,n,i,o,r,s=arguments[0]||{},a=1,l=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[a]||{},a++),"object"==typeof s||v.isFunction(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)n=s[t],s!==(i=e[t])&&(u&&i&&(v.isPlainObject(i)||(o=Array.isArray(i)))?(o?(o=!1,r=n&&Array.isArray(n)?n:[]):r=n&&v.isPlainObject(n)?n:{},s[t]=v.extend(u,r,i)):void 0!==i&&(s[t]=i));return s},v.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===v.type(e)},isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=v.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==c.call(e))&&(!(t=o(e))||"function"==typeof(n=p.call(t,"constructor")&&t.constructor)&&f.call(n)===h)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?u[c.call(e)]||"object":typeof e},globalEval:function(e){g(e)},camelCase:function(e){return e.replace(b,"ms-").replace(x,w)},each:function(e,t){var n,i=0;if(C(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(y,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(C(Object(e))?v.merge(n,"string"==typeof e?[e]:e):a.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:l.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,o=e.length;i<n;i++)e[o++]=t[i];return e.length=o,e},grep:function(e,t,n){for(var i=[],o=0,r=e.length,s=!n;o<r;o++)!t(e[o],o)!==s&&i.push(e[o]);return i},map:function(e,t,n){var i,o,r=0,a=[];if(C(e))for(i=e.length;r<i;r++)null!=(o=t(e[r],r,n))&&a.push(o);else for(r in e)null!=(o=t(e[r],r,n))&&a.push(o);return s.apply([],a)},guid:1,proxy:function(e,t){var n,i,o;if("string"==typeof t&&(n=e[t],t=e,e=n),v.isFunction(e))return i=r.call(arguments,2),(o=function(){return e.apply(t||this,i.concat(r.call(arguments)))}).guid=e.guid=e.guid||v.guid++,o},now:Date.now,support:d}),"function"==typeof Symbol&&(v.fn[Symbol.iterator]=n[Symbol.iterator]),v.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){u["[object "+t+"]"]=t.toLowerCase()});var _=
/*!
 * Sizzle CSS Selector Engine v2.3.3
 * https://sizzlejs.com/
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2016-08-08
 */
function(e){var t,n,i,o,r,s,a,l,u,c,p,f,h,d,g,m,v,y,b,x="sizzle"+1*new Date,w=e.document,C=0,_=0,T=se(),E=se(),k=se(),S=function(e,t){return e===t&&(p=!0),0},P={}.hasOwnProperty,N=[],D=N.pop,A=N.push,M=N.push,j=N.slice,H=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",O="[\\x20\\t\\r\\n\\f]",I="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",F="\\["+O+"*("+I+")(?:"+O+"*([*^$|!~]?=)"+O+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+O+"*\\]",q=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",R=new RegExp(O+"+","g"),W=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g"),B=new RegExp("^"+O+"*,"+O+"*"),$=new RegExp("^"+O+"*([>+~]|"+O+")"+O+"*"),z=new RegExp("="+O+"*([^\\]'\"]*?)"+O+"*\\]","g"),X=new RegExp(q),U=new RegExp("^"+I+"$"),Y={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+O+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,V=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,J=/[+~]/,Z=new RegExp("\\\\([\\da-f]{1,6}"+O+"?|("+O+")|.)","ig"),ee=function(e,t,n){var i="0x"+t-65536;return i!=i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){f()},oe=ye(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{M.apply(N=j.call(w.childNodes),w.childNodes),N[w.childNodes.length].nodeType}catch(e){M={apply:N.length?function(e,t){A.apply(e,j.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function re(e,t,i,o){var r,a,u,c,p,d,v,y=t&&t.ownerDocument,C=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==C&&9!==C&&11!==C)return i;if(!o&&((t?t.ownerDocument||t:w)!==h&&f(t),t=t||h,g)){if(11!==C&&(p=K.exec(e)))if(r=p[1]){if(9===C){if(!(u=t.getElementById(r)))return i;if(u.id===r)return i.push(u),i}else if(y&&(u=y.getElementById(r))&&b(t,u)&&u.id===r)return i.push(u),i}else{if(p[2])return M.apply(i,t.getElementsByTagName(e)),i;if((r=p[3])&&n.getElementsByClassName&&t.getElementsByClassName)return M.apply(i,t.getElementsByClassName(r)),i}if(n.qsa&&!k[e+" "]&&(!m||!m.test(e))){if(1!==C)y=t,v=e;else if("object"!==t.nodeName.toLowerCase()){for((c=t.getAttribute("id"))?c=c.replace(te,ne):t.setAttribute("id",c=x),a=(d=s(e)).length;a--;)d[a]="#"+c+" "+ve(d[a]);v=d.join(","),y=J.test(e)&&ge(t.parentNode)||t}if(v)try{return M.apply(i,y.querySelectorAll(v)),i}catch(e){}finally{c===x&&t.removeAttribute("id")}}}return l(e.replace(W,"$1"),t,i,o)}function se(){var e=[];return function t(n,o){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function ae(e){return e[x]=!0,e}function le(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ue(e,t){for(var n=e.split("|"),o=n.length;o--;)i.attrHandle[n[o]]=t}function ce(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function he(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&oe(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function de(e){return ae(function(t){return t=+t,ae(function(n,i){for(var o,r=e([],n.length,t),s=r.length;s--;)n[o=r[s]]&&(n[o]=!(i[o]=n[o]))})})}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}n=re.support={},r=re.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},f=re.setDocument=function(e){var t,o,s=e?e.ownerDocument||e:w;return s!==h&&9===s.nodeType&&s.documentElement?(d=(h=s).documentElement,g=!r(h),w!==h&&(o=h.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",ie,!1):o.attachEvent&&o.attachEvent("onunload",ie)),n.attributes=le(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=le(function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Q.test(h.getElementsByClassName),n.getById=le(function(e){return d.appendChild(e).id=x,!h.getElementsByName||!h.getElementsByName(x).length}),n.getById?(i.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(i.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,i,o,r=t.getElementById(e);if(r){if((n=r.getAttributeNode("id"))&&n.value===e)return[r];for(o=t.getElementsByName(e),i=0;r=o[i++];)if((n=r.getAttributeNode("id"))&&n.value===e)return[r]}return[]}}),i.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],o=0,r=t.getElementsByTagName(e);if("*"===e){for(;n=r[o++];)1===n.nodeType&&i.push(n);return i}return r},i.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},v=[],m=[],(n.qsa=Q.test(h.querySelectorAll))&&(le(function(e){d.appendChild(e).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+O+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+O+"*(?:value|"+L+")"),e.querySelectorAll("[id~="+x+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||m.push(".#.+[+~]")}),le(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+O+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),d.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(n.matchesSelector=Q.test(y=d.matches||d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&le(function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",q)}),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),t=Q.test(d.compareDocumentPosition),b=t||Q.test(d.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},S=t?function(e,t){if(e===t)return p=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===i?e===h||e.ownerDocument===w&&b(w,e)?-1:t===h||t.ownerDocument===w&&b(w,t)?1:c?H(c,e)-H(c,t):0:4&i?-1:1)}:function(e,t){if(e===t)return p=!0,0;var n,i=0,o=e.parentNode,r=t.parentNode,s=[e],a=[t];if(!o||!r)return e===h?-1:t===h?1:o?-1:r?1:c?H(c,e)-H(c,t):0;if(o===r)return ce(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;s[i]===a[i];)i++;return i?ce(s[i],a[i]):s[i]===w?-1:a[i]===w?1:0},h):h},re.matches=function(e,t){return re(e,null,null,t)},re.matchesSelector=function(e,t){if((e.ownerDocument||e)!==h&&f(e),t=t.replace(z,"='$1']"),n.matchesSelector&&g&&!k[t+" "]&&(!v||!v.test(t))&&(!m||!m.test(t)))try{var i=y.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){}return re(t,h,null,[e]).length>0},re.contains=function(e,t){return(e.ownerDocument||e)!==h&&f(e),b(e,t)},re.attr=function(e,t){(e.ownerDocument||e)!==h&&f(e);var o=i.attrHandle[t.toLowerCase()],r=o&&P.call(i.attrHandle,t.toLowerCase())?o(e,t,!g):void 0;return void 0!==r?r:n.attributes||!g?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},re.escape=function(e){return(e+"").replace(te,ne)},re.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},re.uniqueSort=function(e){var t,i=[],o=0,r=0;if(p=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(S),p){for(;t=e[r++];)t===e[r]&&(o=i.push(r));for(;o--;)e.splice(i[o],1)}return c=null,e},o=re.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+=o(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=o(t);return n},(i=re.selectors={cacheLength:50,createPseudo:ae,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Z,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(Z,ee),"~="===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]||re.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]&&re.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=s(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Z,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=T[e+" "];return t||(t=new RegExp("(^|"+O+")"+e+"("+O+"|$)"))&&T(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(i){var o=re.attr(i,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace(R," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,o){var r="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===i&&0===o?function(e){return!!e.parentNode}:function(t,n,l){var u,c,p,f,h,d,g=r!==s?"nextSibling":"previousSibling",m=t.parentNode,v=a&&t.nodeName.toLowerCase(),y=!l&&!a,b=!1;if(m){if(r){for(;g;){for(f=t;f=f[g];)if(a?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;d=g="only"===e&&!d&&"nextSibling"}return!0}if(d=[s?m.firstChild:m.lastChild],s&&y){for(b=(h=(u=(c=(p=(f=m)[x]||(f[x]={}))[f.uniqueID]||(p[f.uniqueID]={}))[e]||[])[0]===C&&u[1])&&u[2],f=h&&m.childNodes[h];f=++h&&f&&f[g]||(b=h=0)||d.pop();)if(1===f.nodeType&&++b&&f===t){c[e]=[C,h,b];break}}else if(y&&(b=h=(u=(c=(p=(f=t)[x]||(f[x]={}))[f.uniqueID]||(p[f.uniqueID]={}))[e]||[])[0]===C&&u[1]),!1===b)for(;(f=++h&&f&&f[g]||(b=h=0)||d.pop())&&((a?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++b||(y&&((c=(p=f[x]||(f[x]={}))[f.uniqueID]||(p[f.uniqueID]={}))[e]=[C,b]),f!==t)););return(b-=o)===i||b%i==0&&b/i>=0}}},PSEUDO:function(e,t){var n,o=i.pseudos[e]||i.setFilters[e.toLowerCase()]||re.error("unsupported pseudo: "+e);return o[x]?o(t):o.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ae(function(e,n){for(var i,r=o(e,t),s=r.length;s--;)e[i=H(e,r[s])]=!(n[i]=r[s])}):function(e){return o(e,0,n)}):o}},pseudos:{not:ae(function(e){var t=[],n=[],i=a(e.replace(W,"$1"));return i[x]?ae(function(e,t,n,o){for(var r,s=i(e,null,o,[]),a=e.length;a--;)(r=s[a])&&(e[a]=!(t[a]=r))}):function(e,o,r){return t[0]=e,i(t,null,r,n),t[0]=null,!n.pop()}}),has:ae(function(e){return function(t){return re(e,t).length>0}}),contains:ae(function(e){return e=e.replace(Z,ee),function(t){return(t.textContent||t.innerText||o(t)).indexOf(e)>-1}}),lang:ae(function(e){return U.test(e||"")||re.error("unsupported lang: "+e),e=e.replace(Z,ee).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:he(!1),disabled:he(!0),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.nodeType<6)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return V.test(e.nodeName)},input:function(e){return G.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"))||"text"===t.toLowerCase())},first:de(function(){return[0]}),last:de(function(e,t){return[t-1]}),eq:de(function(e,t,n){return[n<0?n+t:n]}),even:de(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:de(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:de(function(e,t,n){for(var i=n<0?n+t:n;--i>=0;)e.push(i);return e}),gt:de(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=i.pseudos.eq;for(t in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=pe(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=fe(t);function me(){}function ve(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function ye(e,t,n){var i=t.dir,o=t.next,r=o||i,s=n&&"parentNode"===r,a=_++;return t.first?function(t,n,o){for(;t=t[i];)if(1===t.nodeType||s)return e(t,n,o);return!1}:function(t,n,l){var u,c,p,f=[C,a];if(l){for(;t=t[i];)if((1===t.nodeType||s)&&e(t,n,l))return!0}else for(;t=t[i];)if(1===t.nodeType||s)if(c=(p=t[x]||(t[x]={}))[t.uniqueID]||(p[t.uniqueID]={}),o&&o===t.nodeName.toLowerCase())t=t[i]||t;else{if((u=c[r])&&u[0]===C&&u[1]===a)return f[2]=u[2];if(c[r]=f,f[2]=e(t,n,l))return!0}return!1}}function be(e){return e.length>1?function(t,n,i){for(var o=e.length;o--;)if(!e[o](t,n,i))return!1;return!0}:e[0]}function xe(e,t,n,i,o){for(var r,s=[],a=0,l=e.length,u=null!=t;a<l;a++)(r=e[a])&&(n&&!n(r,i,o)||(s.push(r),u&&t.push(a)));return s}function we(e,t,n,i,o,r){return i&&!i[x]&&(i=we(i)),o&&!o[x]&&(o=we(o,r)),ae(function(r,s,a,l){var u,c,p,f=[],h=[],d=s.length,g=r||function(e,t,n){for(var i=0,o=t.length;i<o;i++)re(e,t[i],n);return n}(t||"*",a.nodeType?[a]:a,[]),m=!e||!r&&t?g:xe(g,f,e,a,l),v=n?o||(r?e:d||i)?[]:s:m;if(n&&n(m,v,a,l),i)for(u=xe(v,h),i(u,[],a,l),c=u.length;c--;)(p=u[c])&&(v[h[c]]=!(m[h[c]]=p));if(r){if(o||e){if(o){for(u=[],c=v.length;c--;)(p=v[c])&&u.push(m[c]=p);o(null,v=[],u,l)}for(c=v.length;c--;)(p=v[c])&&(u=o?H(r,p):f[c])>-1&&(r[u]=!(s[u]=p))}}else v=xe(v===s?v.splice(d,v.length):v),o?o(null,s,v,l):M.apply(s,v)})}function Ce(e){for(var t,n,o,r=e.length,s=i.relative[e[0].type],a=s||i.relative[" "],l=s?1:0,c=ye(function(e){return e===t},a,!0),p=ye(function(e){return H(t,e)>-1},a,!0),f=[function(e,n,i){var o=!s&&(i||n!==u)||((t=n).nodeType?c(e,n,i):p(e,n,i));return t=null,o}];l<r;l++)if(n=i.relative[e[l].type])f=[ye(be(f),n)];else{if((n=i.filter[e[l].type].apply(null,e[l].matches))[x]){for(o=++l;o<r&&!i.relative[e[o].type];o++);return we(l>1&&be(f),l>1&&ve(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(W,"$1"),n,l<o&&Ce(e.slice(l,o)),o<r&&Ce(e=e.slice(o)),o<r&&ve(e))}f.push(n)}return be(f)}return me.prototype=i.filters=i.pseudos,i.setFilters=new me,s=re.tokenize=function(e,t){var n,o,r,s,a,l,u,c=E[e+" "];if(c)return t?0:c.slice(0);for(a=e,l=[],u=i.preFilter;a;){n&&!(o=B.exec(a))||(o&&(a=a.slice(o[0].length)||a),l.push(r=[])),n=!1,(o=$.exec(a))&&(n=o.shift(),r.push({value:n,type:o[0].replace(W," ")}),a=a.slice(n.length));for(s in i.filter)!(o=Y[s].exec(a))||u[s]&&!(o=u[s](o))||(n=o.shift(),r.push({value:n,type:s,matches:o}),a=a.slice(n.length));if(!n)break}return t?a.length:a?re.error(e):E(e,l).slice(0)},a=re.compile=function(e,t){var n,o,r,a,l,c,p=[],d=[],m=k[e+" "];if(!m){for(t||(t=s(e)),n=t.length;n--;)(m=Ce(t[n]))[x]?p.push(m):d.push(m);(m=k(e,(o=d,a=(r=p).length>0,l=o.length>0,c=function(e,t,n,s,c){var p,d,m,v=0,y="0",b=e&&[],x=[],w=u,_=e||l&&i.find.TAG("*",c),T=C+=null==w?1:Math.random()||.1,E=_.length;for(c&&(u=t===h||t||c);y!==E&&null!=(p=_[y]);y++){if(l&&p){for(d=0,t||p.ownerDocument===h||(f(p),n=!g);m=o[d++];)if(m(p,t||h,n)){s.push(p);break}c&&(C=T)}a&&((p=!m&&p)&&v--,e&&b.push(p))}if(v+=y,a&&y!==v){for(d=0;m=r[d++];)m(b,x,t,n);if(e){if(v>0)for(;y--;)b[y]||x[y]||(x[y]=D.call(s));x=xe(x)}M.apply(s,x),c&&!e&&x.length>0&&v+r.length>1&&re.uniqueSort(s)}return c&&(C=T,u=w),b},a?ae(c):c))).selector=e}return m},l=re.select=function(e,t,n,o){var r,l,u,c,p,f="function"==typeof e&&e,h=!o&&s(e=f.selector||e);if(n=n||[],1===h.length){if((l=h[0]=h[0].slice(0)).length>2&&"ID"===(u=l[0]).type&&9===t.nodeType&&g&&i.relative[l[1].type]){if(!(t=(i.find.ID(u.matches[0].replace(Z,ee),t)||[])[0]))return n;f&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(r=Y.needsContext.test(e)?0:l.length;r--&&(u=l[r],!i.relative[c=u.type]);)if((p=i.find[c])&&(o=p(u.matches[0].replace(Z,ee),J.test(l[0].type)&&ge(t.parentNode)||t))){if(l.splice(r,1),!(e=o.length&&ve(l)))return M.apply(n,o),n;break}}return(f||a(e,h))(o,t,!g,n,!t||J.test(e)&&ge(t.parentNode)||t),n},n.sortStable=x.split("").sort(S).join("")===x,n.detectDuplicates=!!p,f(),n.sortDetached=le(function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))}),le(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ue("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&le(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ue("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),le(function(e){return null==e.getAttribute("disabled")})||ue(L,function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),re}(e);v.find=_,v.expr=_.selectors,v.expr[":"]=v.expr.pseudos,v.uniqueSort=v.unique=_.uniqueSort,v.text=_.getText,v.isXMLDoc=_.isXML,v.contains=_.contains,v.escapeSelector=_.escape;var T=function(e,t,n){for(var i=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&v(e).is(n))break;i.push(e)}return i},E=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},k=v.expr.match.needsContext;function S(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var P=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,N=/^.[^:#\[\.,]*$/;function D(e,t,n){return v.isFunction(t)?v.grep(e,function(e,i){return!!t.call(e,i,e)!==n}):t.nodeType?v.grep(e,function(e){return e===t!==n}):"string"!=typeof t?v.grep(e,function(e){return l.call(t,e)>-1!==n}):N.test(t)?v.filter(t,e,n):(t=v.filter(t,e),v.grep(e,function(e){return l.call(t,e)>-1!==n&&1===e.nodeType}))}v.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?v.find.matchesSelector(i,e)?[i]:[]:v.find.matches(e,v.grep(t,function(e){return 1===e.nodeType}))},v.fn.extend({find:function(e){var t,n,i=this.length,o=this;if("string"!=typeof e)return this.pushStack(v(e).filter(function(){for(t=0;t<i;t++)if(v.contains(o[t],this))return!0}));for(n=this.pushStack([]),t=0;t<i;t++)v.find(e,o[t],n);return i>1?v.uniqueSort(n):n},filter:function(e){return this.pushStack(D(this,e||[],!1))},not:function(e){return this.pushStack(D(this,e||[],!0))},is:function(e){return!!D(this,"string"==typeof e&&k.test(e)?v(e):e||[],!1).length}});var A,M=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(v.fn.init=function(e,t,n){var o,r;if(!e)return this;if(n=n||A,"string"==typeof e){if(!(o="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:M.exec(e))||!o[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(o[1]){if(t=t instanceof v?t[0]:t,v.merge(this,v.parseHTML(o[1],t&&t.nodeType?t.ownerDocument||t:i,!0)),P.test(o[1])&&v.isPlainObject(t))for(o in t)v.isFunction(this[o])?this[o](t[o]):this.attr(o,t[o]);return this}return(r=i.getElementById(o[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v.isFunction(e)?void 0!==n.ready?n.ready(e):e(v):v.makeArray(e,this)}).prototype=v.fn,A=v(i);var j=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function L(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}v.fn.extend({has:function(e){var t=v(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(v.contains(this,t[e]))return!0})},closest:function(e,t){var n,i=0,o=this.length,r=[],s="string"!=typeof e&&v(e);if(!k.test(e))for(;i<o;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&v.find.matchesSelector(n,e))){r.push(n);break}return this.pushStack(r.length>1?v.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?l.call(v(e),this[0]):l.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(v.uniqueSort(v.merge(this.get(),v(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),v.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return T(e,"parentNode")},parentsUntil:function(e,t,n){return T(e,"parentNode",n)},next:function(e){return L(e,"nextSibling")},prev:function(e){return L(e,"previousSibling")},nextAll:function(e){return T(e,"nextSibling")},prevAll:function(e){return T(e,"previousSibling")},nextUntil:function(e,t,n){return T(e,"nextSibling",n)},prevUntil:function(e,t,n){return T(e,"previousSibling",n)},siblings:function(e){return E((e.parentNode||{}).firstChild,e)},children:function(e){return E(e.firstChild)},contents:function(e){return S(e,"iframe")?e.contentDocument:(S(e,"template")&&(e=e.content||e),v.merge([],e.childNodes))}},function(e,t){v.fn[e]=function(n,i){var o=v.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=v.filter(i,o)),this.length>1&&(H[e]||v.uniqueSort(o),j.test(e)&&o.reverse()),this.pushStack(o)}});var O=/[^\x20\t\r\n\f]+/g;function I(e){return e}function F(e){throw e}function q(e,t,n,i){var o;try{e&&v.isFunction(o=e.promise)?o.call(e).done(t).fail(n):e&&v.isFunction(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}v.Callbacks=function(e){var t,n;e="string"==typeof e?(t=e,n={},v.each(t.match(O)||[],function(e,t){n[t]=!0}),n):v.extend({},e);var i,o,r,s,a=[],l=[],u=-1,c=function(){for(s=s||e.once,r=i=!0;l.length;u=-1)for(o=l.shift();++u<a.length;)!1===a[u].apply(o[0],o[1])&&e.stopOnFalse&&(u=a.length,o=!1);e.memory||(o=!1),i=!1,s&&(a=o?[]:"")},p={add:function(){return a&&(o&&!i&&(u=a.length-1,l.push(o)),function t(n){v.each(n,function(n,i){v.isFunction(i)?e.unique&&p.has(i)||a.push(i):i&&i.length&&"string"!==v.type(i)&&t(i)})}(arguments),o&&!i&&c()),this},remove:function(){return v.each(arguments,function(e,t){for(var n;(n=v.inArray(t,a,n))>-1;)a.splice(n,1),n<=u&&u--}),this},has:function(e){return e?v.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return s=l=[],a=o="",this},disabled:function(){return!a},lock:function(){return s=l=[],o||i||(a=o=""),this},locked:function(){return!!s},fireWith:function(e,t){return s||(t=[e,(t=t||[]).slice?t.slice():t],l.push(t),i||c()),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!r}};return p},v.extend({Deferred:function(t){var n=[["notify","progress",v.Callbacks("memory"),v.Callbacks("memory"),2],["resolve","done",v.Callbacks("once memory"),v.Callbacks("once memory"),0,"resolved"],["reject","fail",v.Callbacks("once memory"),v.Callbacks("once memory"),1,"rejected"]],i="pending",o={state:function(){return i},always:function(){return r.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return v.Deferred(function(t){v.each(n,function(n,i){var o=v.isFunction(e[i[4]])&&e[i[4]];r[i[1]](function(){var e=o&&o.apply(this,arguments);e&&v.isFunction(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[i[0]+"With"](this,o?[e]:arguments)})}),e=null}).promise()},then:function(t,i,o){var r=0;function s(t,n,i,o){return function(){var a=this,l=arguments,u=function(){var e,u;if(!(t<r)){if((e=i.apply(a,l))===n.promise())throw new TypeError("Thenable self-resolution");u=e&&("object"==typeof e||"function"==typeof e)&&e.then,v.isFunction(u)?o?u.call(e,s(r,n,I,o),s(r,n,F,o)):(r++,u.call(e,s(r,n,I,o),s(r,n,F,o),s(r,n,I,n.notifyWith))):(i!==I&&(a=void 0,l=[e]),(o||n.resolveWith)(a,l))}},c=o?u:function(){try{u()}catch(e){v.Deferred.exceptionHook&&v.Deferred.exceptionHook(e,c.stackTrace),t+1>=r&&(i!==F&&(a=void 0,l=[e]),n.rejectWith(a,l))}};t?c():(v.Deferred.getStackHook&&(c.stackTrace=v.Deferred.getStackHook()),e.setTimeout(c))}}return v.Deferred(function(e){n[0][3].add(s(0,e,v.isFunction(o)?o:I,e.notifyWith)),n[1][3].add(s(0,e,v.isFunction(t)?t:I)),n[2][3].add(s(0,e,v.isFunction(i)?i:F))}).promise()},promise:function(e){return null!=e?v.extend(e,o):o}},r={};return v.each(n,function(e,t){var s=t[2],a=t[5];o[t[1]]=s.add,a&&s.add(function(){i=a},n[3-e][2].disable,n[0][2].lock),s.add(t[3].fire),r[t[0]]=function(){return r[t[0]+"With"](this===r?void 0:this,arguments),this},r[t[0]+"With"]=s.fireWith}),o.promise(r),t&&t.call(r,r),r},when:function(e){var t=arguments.length,n=t,i=Array(n),o=r.call(arguments),s=v.Deferred(),a=function(e){return function(n){i[e]=this,o[e]=arguments.length>1?r.call(arguments):n,--t||s.resolveWith(i,o)}};if(t<=1&&(q(e,s.done(a(n)).resolve,s.reject,!t),"pending"===s.state()||v.isFunction(o[n]&&o[n].then)))return s.then();for(;n--;)q(o[n],a(n),s.reject);return s.promise()}});var R=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;v.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&R.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},v.readyException=function(t){e.setTimeout(function(){throw t})};var W=v.Deferred();function B(){i.removeEventListener("DOMContentLoaded",B),e.removeEventListener("load",B),v.ready()}v.fn.ready=function(e){return W.then(e).catch(function(e){v.readyException(e)}),this},v.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--v.readyWait:v.isReady)||(v.isReady=!0,!0!==e&&--v.readyWait>0||W.resolveWith(i,[v]))}}),v.ready.then=W.then,"complete"===i.readyState||"loading"!==i.readyState&&!i.documentElement.doScroll?e.setTimeout(v.ready):(i.addEventListener("DOMContentLoaded",B),e.addEventListener("load",B));var $=function(e,t,n,i,o,r,s){var a=0,l=e.length,u=null==n;if("object"===v.type(n)){o=!0;for(a in n)$(e,t,a,n[a],!0,r,s)}else if(void 0!==i&&(o=!0,v.isFunction(i)||(s=!0),u&&(s?(t.call(e,i),t=null):(u=t,t=function(e,t,n){return u.call(v(e),n)})),t))for(;a<l;a++)t(e[a],n,s?i:i.call(e[a],a,t(e[a],n)));return o?e:u?t.call(e):l?t(e[0],n):r},z=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function X(){this.expando=v.expando+X.uid++}X.uid=1,X.prototype={cache:function(e){var t=e[this.expando];return t||(t={},z(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,o=this.cache(e);if("string"==typeof t)o[v.camelCase(t)]=n;else for(i in t)o[v.camelCase(i)]=t[i];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][v.camelCase(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(v.camelCase):(t=v.camelCase(t))in i?[t]:t.match(O)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||v.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!v.isEmptyObject(t)}};var U=new X,Y=new X,G=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,V=/[A-Z]/g;function Q(e,t,n){var i,o;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(V,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n="true"===(o=n)||"false"!==o&&("null"===o?null:o===+o+""?+o:G.test(o)?JSON.parse(o):o)}catch(e){}Y.set(e,t,n)}else n=void 0;return n}v.extend({hasData:function(e){return Y.hasData(e)||U.hasData(e)},data:function(e,t,n){return Y.access(e,t,n)},removeData:function(e,t){Y.remove(e,t)},_data:function(e,t,n){return U.access(e,t,n)},_removeData:function(e,t){U.remove(e,t)}}),v.fn.extend({data:function(e,t){var n,i,o,r=this[0],s=r&&r.attributes;if(void 0===e){if(this.length&&(o=Y.get(r),1===r.nodeType&&!U.get(r,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(i=s[n].name).indexOf("data-")&&(i=v.camelCase(i.slice(5)),Q(r,i,o[i]));U.set(r,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each(function(){Y.set(this,e)}):$(this,function(t){var n;if(r&&void 0===t)return void 0!==(n=Y.get(r,e))?n:void 0!==(n=Q(r,e))?n:void 0;this.each(function(){Y.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Y.remove(this,e)})}}),v.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=U.get(e,t),n&&(!i||Array.isArray(n)?i=U.access(e,t,v.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=v.queue(e,t),i=n.length,o=n.shift(),r=v._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===t&&n.unshift("inprogress"),delete r.stop,o.call(e,function(){v.dequeue(e,t)},r)),!i&&r&&r.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return U.get(e,n)||U.access(e,n,{empty:v.Callbacks("once memory").add(function(){U.remove(e,[t+"queue",n])})})}}),v.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?v.queue(this[0],e):void 0===t?this:this.each(function(){var n=v.queue(this,e,t);v._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&v.dequeue(this,e)})},dequeue:function(e){return this.each(function(){v.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,o=v.Deferred(),r=this,s=this.length,a=function(){--i||o.resolveWith(r,[r])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=U.get(r[s],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),o.promise(t)}});var K=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,J=new RegExp("^(?:([+-])=|)("+K+")([a-z%]*)$","i"),Z=["Top","Right","Bottom","Left"],ee=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&v.contains(e.ownerDocument,e)&&"none"===v.css(e,"display")},te=function(e,t,n,i){var o,r,s={};for(r in t)s[r]=e.style[r],e.style[r]=t[r];o=n.apply(e,i||[]);for(r in t)e.style[r]=s[r];return o};function ne(e,t,n,i){var o,r=1,s=20,a=i?function(){return i.cur()}:function(){return v.css(e,t,"")},l=a(),u=n&&n[3]||(v.cssNumber[t]?"":"px"),c=(v.cssNumber[t]||"px"!==u&&+l)&&J.exec(v.css(e,t));if(c&&c[3]!==u){u=u||c[3],n=n||[],c=+l||1;do{c/=r=r||".5",v.style(e,t,c+u)}while(r!==(r=a()/l)&&1!==r&&--s)}return n&&(c=+c||+l||0,o=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=o)),o}var ie={};function oe(e,t){for(var n,i,o,r,s,a,l,u=[],c=0,p=e.length;c<p;c++)(i=e[c]).style&&(n=i.style.display,t?("none"===n&&(u[c]=U.get(i,"display")||null,u[c]||(i.style.display="")),""===i.style.display&&ee(i)&&(u[c]=(r=void 0,s=void 0,void 0,l=void 0,s=(o=i).ownerDocument,a=o.nodeName,(l=ie[a])||(r=s.body.appendChild(s.createElement(a)),l=v.css(r,"display"),r.parentNode.removeChild(r),"none"===l&&(l="block"),ie[a]=l,l)))):"none"!==n&&(u[c]="none",U.set(i,"display",n)));for(c=0;c<p;c++)null!=u[c]&&(e[c].style.display=u[c]);return e}v.fn.extend({show:function(){return oe(this,!0)},hide:function(){return oe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ee(this)?v(this).show():v(this).hide()})}});var re=/^(?:checkbox|radio)$/i,se=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,ae=/^$|\/(?:java|ecma)script/i,le={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ue(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&S(e,t)?v.merge([e],n):n}function ce(e,t){for(var n=0,i=e.length;n<i;n++)U.set(e[n],"globalEval",!t||U.get(t[n],"globalEval"))}le.optgroup=le.option,le.tbody=le.tfoot=le.colgroup=le.caption=le.thead,le.th=le.td;var pe,fe,he=/<|&#?\w+;/;function de(e,t,n,i,o){for(var r,s,a,l,u,c,p=t.createDocumentFragment(),f=[],h=0,d=e.length;h<d;h++)if((r=e[h])||0===r)if("object"===v.type(r))v.merge(f,r.nodeType?[r]:r);else if(he.test(r)){for(s=s||p.appendChild(t.createElement("div")),a=(se.exec(r)||["",""])[1].toLowerCase(),l=le[a]||le._default,s.innerHTML=l[1]+v.htmlPrefilter(r)+l[2],c=l[0];c--;)s=s.lastChild;v.merge(f,s.childNodes),(s=p.firstChild).textContent=""}else f.push(t.createTextNode(r));for(p.textContent="",h=0;r=f[h++];)if(i&&v.inArray(r,i)>-1)o&&o.push(r);else if(u=v.contains(r.ownerDocument,r),s=ue(p.appendChild(r),"script"),u&&ce(s),n)for(c=0;r=s[c++];)ae.test(r.type||"")&&n.push(r);return p}pe=i.createDocumentFragment().appendChild(i.createElement("div")),(fe=i.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),pe.appendChild(fe),d.checkClone=pe.cloneNode(!0).cloneNode(!0).lastChild.checked,pe.innerHTML="<textarea>x</textarea>",d.noCloneChecked=!!pe.cloneNode(!0).lastChild.defaultValue;var ge=i.documentElement,me=/^key/,ve=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ye=/^([^.]*)(?:\.(.+)|)/;function be(){return!0}function xe(){return!1}function we(){try{return i.activeElement}catch(e){}}function Ce(e,t,n,i,o,r){var s,a;if("object"==typeof t){"string"!=typeof n&&(i=i||n,n=void 0);for(a in t)Ce(e,a,n,i,t[a],r);return e}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=xe;else if(!o)return e;return 1===r&&(s=o,(o=function(e){return v().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=v.guid++)),e.each(function(){v.event.add(this,t,o,i,n)})}v.event={global:{},add:function(e,t,n,i,o){var r,s,a,l,u,c,p,f,h,d,g,m=U.get(e);if(m)for(n.handler&&(n=(r=n).handler,o=r.selector),o&&v.find.matchesSelector(ge,o),n.guid||(n.guid=v.guid++),(l=m.events)||(l=m.events={}),(s=m.handle)||(s=m.handle=function(t){return void 0!==v&&v.event.triggered!==t.type?v.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(O)||[""]).length;u--;)h=g=(a=ye.exec(t[u])||[])[1],d=(a[2]||"").split(".").sort(),h&&(p=v.event.special[h]||{},h=(o?p.delegateType:p.bindType)||h,p=v.event.special[h]||{},c=v.extend({type:h,origType:g,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&v.expr.match.needsContext.test(o),namespace:d.join(".")},r),(f=l[h])||((f=l[h]=[]).delegateCount=0,p.setup&&!1!==p.setup.call(e,i,d,s)||e.addEventListener&&e.addEventListener(h,s)),p.add&&(p.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),o?f.splice(f.delegateCount++,0,c):f.push(c),v.event.global[h]=!0)},remove:function(e,t,n,i,o){var r,s,a,l,u,c,p,f,h,d,g,m=U.hasData(e)&&U.get(e);if(m&&(l=m.events)){for(u=(t=(t||"").match(O)||[""]).length;u--;)if(h=g=(a=ye.exec(t[u])||[])[1],d=(a[2]||"").split(".").sort(),h){for(p=v.event.special[h]||{},f=l[h=(i?p.delegateType:p.bindType)||h]||[],a=a[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=r=f.length;r--;)c=f[r],!o&&g!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(f.splice(r,1),c.selector&&f.delegateCount--,p.remove&&p.remove.call(e,c));s&&!f.length&&(p.teardown&&!1!==p.teardown.call(e,d,m.handle)||v.removeEvent(e,h,m.handle),delete l[h])}else for(h in l)v.event.remove(e,h+t[u],n,i,!0);v.isEmptyObject(l)&&U.remove(e,"handle events")}},dispatch:function(e){var t,n,i,o,r,s,a=v.event.fix(e),l=new Array(arguments.length),u=(U.get(this,"events")||{})[a.type]||[],c=v.event.special[a.type]||{};for(l[0]=a,t=1;t<arguments.length;t++)l[t]=arguments[t];if(a.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,a)){for(s=v.event.handlers.call(this,a,u),t=0;(o=s[t++])&&!a.isPropagationStopped();)for(a.currentTarget=o.elem,n=0;(r=o.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(r.namespace)||(a.handleObj=r,a.data=r.data,void 0!==(i=((v.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,l))&&!1===(a.result=i)&&(a.preventDefault(),a.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,a),a.result}},handlers:function(e,t){var n,i,o,r,s,a=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(r=[],s={},n=0;n<l;n++)void 0===s[o=(i=t[n]).selector+" "]&&(s[o]=i.needsContext?v(o,this).index(u)>-1:v.find(o,this,null,[u]).length),s[o]&&r.push(i);r.length&&a.push({elem:u,handlers:r})}return u=this,l<t.length&&a.push({elem:u,handlers:t.slice(l)}),a},addProp:function(e,t){Object.defineProperty(v.Event.prototype,e,{enumerable:!0,configurable:!0,get:v.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[v.expando]?e:new v.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==we()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===we()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&S(this,"input"))return this.click(),!1},_default:function(e){return S(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},v.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},v.Event=function(e,t){if(!(this instanceof v.Event))return new v.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?be:xe,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&v.extend(this,t),this.timeStamp=e&&e.timeStamp||v.now(),this[v.expando]=!0},v.Event.prototype={constructor:v.Event,isDefaultPrevented:xe,isPropagationStopped:xe,isImmediatePropagationStopped:xe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=be,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=be,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=be,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},v.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&me.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&ve.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},v.event.addProp),v.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){v.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=e.relatedTarget,o=e.handleObj;return i&&(i===this||v.contains(this,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),v.fn.extend({on:function(e,t,n,i){return Ce(this,e,t,n,i)},one:function(e,t,n,i){return Ce(this,e,t,n,i,1)},off:function(e,t,n){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,v(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=xe),this.each(function(){v.event.remove(this,e,n,t)})}});var _e=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Te=/<script|<style|<link/i,Ee=/checked\s*(?:[^=]|=\s*.checked.)/i,ke=/^true\/(.*)/,Se=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Pe(e,t){return S(e,"table")&&S(11!==t.nodeType?t:t.firstChild,"tr")&&v(">tbody",e)[0]||e}function Ne(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function De(e){var t=ke.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Ae(e,t){var n,i,o,r,s,a,l,u;if(1===t.nodeType){if(U.hasData(e)&&(r=U.access(e),s=U.set(t,r),u=r.events)){delete s.handle,s.events={};for(o in u)for(n=0,i=u[o].length;n<i;n++)v.event.add(t,o,u[o][n])}Y.hasData(e)&&(a=Y.access(e),l=v.extend({},a),Y.set(t,l))}}function Me(e,t,n,i){t=s.apply([],t);var o,r,a,l,u,c,p=0,f=e.length,h=f-1,m=t[0],y=v.isFunction(m);if(y||f>1&&"string"==typeof m&&!d.checkClone&&Ee.test(m))return e.each(function(o){var r=e.eq(o);y&&(t[0]=m.call(this,o,r.html())),Me(r,t,n,i)});if(f&&(r=(o=de(t,e[0].ownerDocument,!1,e,i)).firstChild,1===o.childNodes.length&&(o=r),r||i)){for(l=(a=v.map(ue(o,"script"),Ne)).length;p<f;p++)u=o,p!==h&&(u=v.clone(u,!0,!0),l&&v.merge(a,ue(u,"script"))),n.call(e[p],u,p);if(l)for(c=a[a.length-1].ownerDocument,v.map(a,De),p=0;p<l;p++)u=a[p],ae.test(u.type||"")&&!U.access(u,"globalEval")&&v.contains(c,u)&&(u.src?v._evalUrl&&v._evalUrl(u.src):g(u.textContent.replace(Se,""),c))}return e}function je(e,t,n){for(var i,o=t?v.filter(t,e):e,r=0;null!=(i=o[r]);r++)n||1!==i.nodeType||v.cleanData(ue(i)),i.parentNode&&(n&&v.contains(i.ownerDocument,i)&&ce(ue(i,"script")),i.parentNode.removeChild(i));return e}v.extend({htmlPrefilter:function(e){return e.replace(_e,"<$1></$2>")},clone:function(e,t,n){var i,o,r,s,a,l,u,c=e.cloneNode(!0),p=v.contains(e.ownerDocument,e);if(!(d.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||v.isXMLDoc(e)))for(s=ue(c),i=0,o=(r=ue(e)).length;i<o;i++)a=r[i],l=s[i],void 0,"input"===(u=l.nodeName.toLowerCase())&&re.test(a.type)?l.checked=a.checked:"input"!==u&&"textarea"!==u||(l.defaultValue=a.defaultValue);if(t)if(n)for(r=r||ue(e),s=s||ue(c),i=0,o=r.length;i<o;i++)Ae(r[i],s[i]);else Ae(e,c);return(s=ue(c,"script")).length>0&&ce(s,!p&&ue(e,"script")),c},cleanData:function(e){for(var t,n,i,o=v.event.special,r=0;void 0!==(n=e[r]);r++)if(z(n)){if(t=n[U.expando]){if(t.events)for(i in t.events)o[i]?v.event.remove(n,i):v.removeEvent(n,i,t.handle);n[U.expando]=void 0}n[Y.expando]&&(n[Y.expando]=void 0)}}}),v.fn.extend({detach:function(e){return je(this,e,!0)},remove:function(e){return je(this,e)},text:function(e){return $(this,function(e){return void 0===e?v.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Me(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Pe(this,e).appendChild(e)})},prepend:function(){return Me(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Pe(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Me(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Me(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(v.cleanData(ue(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return v.clone(this,e,t)})},html:function(e){return $(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Te.test(e)&&!le[(se.exec(e)||["",""])[1].toLowerCase()]){e=v.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(v.cleanData(ue(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Me(this,arguments,function(t){var n=this.parentNode;v.inArray(this,e)<0&&(v.cleanData(ue(this)),n&&n.replaceChild(t,this))},e)}}),v.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){v.fn[e]=function(e){for(var n,i=[],o=v(e),r=o.length-1,s=0;s<=r;s++)n=s===r?this:this.clone(!0),v(o[s])[t](n),a.apply(i,n.get());return this.pushStack(i)}});var He=/^margin/,Le=new RegExp("^("+K+")(?!px)[a-z%]+$","i"),Oe=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)};function Ie(e,t,n){var i,o,r,s,a=e.style;return(n=n||Oe(e))&&(""!==(s=n.getPropertyValue(t)||n[t])||v.contains(e.ownerDocument,e)||(s=v.style(e,t)),!d.pixelMarginRight()&&Le.test(s)&&He.test(t)&&(i=a.width,o=a.minWidth,r=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=i,a.minWidth=o,a.maxWidth=r)),void 0!==s?s+"":s}function Fe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(l){l.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",l.innerHTML="",ge.appendChild(a);var t=e.getComputedStyle(l);n="1%"!==t.top,s="2px"===t.marginLeft,o="4px"===t.width,l.style.marginRight="50%",r="4px"===t.marginRight,ge.removeChild(a),l=null}}var n,o,r,s,a=i.createElement("div"),l=i.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",d.clearCloneStyle="content-box"===l.style.backgroundClip,a.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",a.appendChild(l),v.extend(d,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return t(),o},pixelMarginRight:function(){return t(),r},reliableMarginLeft:function(){return t(),s}}))}();var qe=/^(none|table(?!-c[ea]).+)/,Re=/^--/,We={position:"absolute",visibility:"hidden",display:"block"},Be={letterSpacing:"0",fontWeight:"400"},$e=["Webkit","Moz","ms"],ze=i.createElement("div").style;function Xe(e){var t=v.cssProps[e];return t||(t=v.cssProps[e]=function(e){if(e in ze)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=$e.length;n--;)if((e=$e[n]+t)in ze)return e}(e)||e),t}function Ue(e,t,n){var i=J.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function Ye(e,t,n,i,o){var r,s=0;for(r=n===(i?"border":"content")?4:"width"===t?1:0;r<4;r+=2)"margin"===n&&(s+=v.css(e,n+Z[r],!0,o)),i?("content"===n&&(s-=v.css(e,"padding"+Z[r],!0,o)),"margin"!==n&&(s-=v.css(e,"border"+Z[r]+"Width",!0,o))):(s+=v.css(e,"padding"+Z[r],!0,o),"padding"!==n&&(s+=v.css(e,"border"+Z[r]+"Width",!0,o)));return s}function Ge(e,t,n){var i,o=Oe(e),r=Ie(e,t,o),s="border-box"===v.css(e,"boxSizing",!1,o);return Le.test(r)?r:(i=s&&(d.boxSizingReliable()||r===e.style[t]),"auto"===r&&(r=e["offset"+t[0].toUpperCase()+t.slice(1)]),(r=parseFloat(r)||0)+Ye(e,t,n||(s?"border":"content"),i,o)+"px")}function Ve(e,t,n,i,o){return new Ve.prototype.init(e,t,n,i,o)}v.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ie(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,r,s,a=v.camelCase(t),l=Re.test(t),u=e.style;if(l||(t=Xe(a)),s=v.cssHooks[t]||v.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(o=s.get(e,!1,i))?o:u[t];"string"===(r=typeof n)&&(o=J.exec(n))&&o[1]&&(n=ne(e,t,o),r="number"),null!=n&&n==n&&("number"===r&&(n+=o&&o[3]||(v.cssNumber[a]?"":"px")),d.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,i))||(l?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,i){var o,r,s,a=v.camelCase(t);return Re.test(t)||(t=Xe(a)),(s=v.cssHooks[t]||v.cssHooks[a])&&"get"in s&&(o=s.get(e,!0,n)),void 0===o&&(o=Ie(e,t,i)),"normal"===o&&t in Be&&(o=Be[t]),""===n||n?(r=parseFloat(o),!0===n||isFinite(r)?r||0:o):o}}),v.each(["height","width"],function(e,t){v.cssHooks[t]={get:function(e,n,i){if(n)return!qe.test(v.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ge(e,t,i):te(e,We,function(){return Ge(e,t,i)})},set:function(e,n,i){var o,r=i&&Oe(e),s=i&&Ye(e,t,i,"border-box"===v.css(e,"boxSizing",!1,r),r);return s&&(o=J.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=v.css(e,t)),Ue(0,n,s)}}}),v.cssHooks.marginLeft=Fe(d.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ie(e,"marginLeft"))||e.getBoundingClientRect().left-te(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),v.each({margin:"",padding:"",border:"Width"},function(e,t){v.cssHooks[e+t]={expand:function(n){for(var i=0,o={},r="string"==typeof n?n.split(" "):[n];i<4;i++)o[e+Z[i]+t]=r[i]||r[i-2]||r[0];return o}},He.test(e)||(v.cssHooks[e+t].set=Ue)}),v.fn.extend({css:function(e,t){return $(this,function(e,t,n){var i,o,r={},s=0;if(Array.isArray(t)){for(i=Oe(e),o=t.length;s<o;s++)r[t[s]]=v.css(e,t[s],!1,i);return r}return void 0!==n?v.style(e,t,n):v.css(e,t)},e,t,arguments.length>1)}}),v.Tween=Ve,Ve.prototype={constructor:Ve,init:function(e,t,n,i,o,r){this.elem=e,this.prop=n,this.easing=o||v.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=r||(v.cssNumber[n]?"":"px")},cur:function(){var e=Ve.propHooks[this.prop];return e&&e.get?e.get(this):Ve.propHooks._default.get(this)},run:function(e){var t,n=Ve.propHooks[this.prop];return this.options.duration?this.pos=t=v.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Ve.propHooks._default.set(this),this}},Ve.prototype.init.prototype=Ve.prototype,Ve.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=v.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){v.fx.step[e.prop]?v.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[v.cssProps[e.prop]]&&!v.cssHooks[e.prop]?e.elem[e.prop]=e.now:v.style(e.elem,e.prop,e.now+e.unit)}}},Ve.propHooks.scrollTop=Ve.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},v.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},v.fx=Ve.prototype.init,v.fx.step={};var Qe,Ke,Je,Ze,et=/^(?:toggle|show|hide)$/,tt=/queueHooks$/;function nt(){Ke&&(!1===i.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(nt):e.setTimeout(nt,v.fx.interval),v.fx.tick())}function it(){return e.setTimeout(function(){Qe=void 0}),Qe=v.now()}function ot(e,t){var n,i=0,o={height:e};for(t=t?1:0;i<4;i+=2-t)o["margin"+(n=Z[i])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function rt(e,t,n){for(var i,o=(st.tweeners[t]||[]).concat(st.tweeners["*"]),r=0,s=o.length;r<s;r++)if(i=o[r].call(n,t,e))return i}function st(e,t,n){var i,o,r=0,s=st.prefilters.length,a=v.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var t=Qe||it(),n=Math.max(0,u.startTime+u.duration-t),i=1-(n/u.duration||0),r=0,s=u.tweens.length;r<s;r++)u.tweens[r].run(i);return a.notifyWith(e,[u,i,n]),i<1&&s?n:(s||a.notifyWith(e,[u,1,0]),a.resolveWith(e,[u]),!1)},u=a.promise({elem:e,props:v.extend({},t),opts:v.extend(!0,{specialEasing:{},easing:v.easing._default},n),originalProperties:t,originalOptions:n,startTime:Qe||it(),duration:n.duration,tweens:[],createTween:function(t,n){var i=v.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(i),i},stop:function(t){var n=0,i=t?u.tweens.length:0;if(o)return this;for(o=!0;n<i;n++)u.tweens[n].run(1);return t?(a.notifyWith(e,[u,1,0]),a.resolveWith(e,[u,t])):a.rejectWith(e,[u,t]),this}}),c=u.props;for(!function(e,t){var n,i,o,r,s;for(n in e)if(o=t[i=v.camelCase(n)],r=e[n],Array.isArray(r)&&(o=r[1],r=e[n]=r[0]),n!==i&&(e[i]=r,delete e[n]),(s=v.cssHooks[i])&&"expand"in s){r=s.expand(r),delete e[i];for(n in r)n in e||(e[n]=r[n],t[n]=o)}else t[i]=o}(c,u.opts.specialEasing);r<s;r++)if(i=st.prefilters[r].call(u,e,c,u.opts))return v.isFunction(i.stop)&&(v._queueHooks(u.elem,u.opts.queue).stop=v.proxy(i.stop,i)),i;return v.map(c,rt,u),v.isFunction(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),v.fx.timer(v.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u}v.Animation=v.extend(st,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ne(n.elem,e,J.exec(t),n),n}]},tweener:function(e,t){v.isFunction(e)?(t=e,e=["*"]):e=e.match(O);for(var n,i=0,o=e.length;i<o;i++)n=e[i],st.tweeners[n]=st.tweeners[n]||[],st.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,o,r,s,a,l,u,c,p="width"in t||"height"in t,f=this,h={},d=e.style,g=e.nodeType&&ee(e),m=U.get(e,"fxshow");n.queue||(null==(s=v._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,f.always(function(){f.always(function(){s.unqueued--,v.queue(e,"fx").length||s.empty.fire()})}));for(i in t)if(o=t[i],et.test(o)){if(delete t[i],r=r||"toggle"===o,o===(g?"hide":"show")){if("show"!==o||!m||void 0===m[i])continue;g=!0}h[i]=m&&m[i]||v.style(e,i)}if((l=!v.isEmptyObject(t))||!v.isEmptyObject(h)){p&&1===e.nodeType&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],null==(u=m&&m.display)&&(u=U.get(e,"display")),"none"===(c=v.css(e,"display"))&&(u?c=u:(oe([e],!0),u=e.style.display||u,c=v.css(e,"display"),oe([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===v.css(e,"float")&&(l||(f.done(function(){d.display=u}),null==u&&(c=d.display,u="none"===c?"":c)),d.display="inline-block")),n.overflow&&(d.overflow="hidden",f.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]})),l=!1;for(i in h)l||(m?"hidden"in m&&(g=m.hidden):m=U.access(e,"fxshow",{display:u}),r&&(m.hidden=!g),g&&oe([e],!0),f.done(function(){g||oe([e]),U.remove(e,"fxshow");for(i in h)v.style(e,i,h[i])})),l=rt(g?m[i]:0,i,f),i in m||(m[i]=l.start,g&&(l.end=l.start,l.start=0))}}],prefilter:function(e,t){t?st.prefilters.unshift(e):st.prefilters.push(e)}}),v.speed=function(e,t,n){var i=e&&"object"==typeof e?v.extend({},e):{complete:n||!n&&t||v.isFunction(e)&&e,duration:e,easing:n&&t||t&&!v.isFunction(t)&&t};return v.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in v.fx.speeds?i.duration=v.fx.speeds[i.duration]:i.duration=v.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){v.isFunction(i.old)&&i.old.call(this),i.queue&&v.dequeue(this,i.queue)},i},v.fn.extend({fadeTo:function(e,t,n,i){return this.filter(ee).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var o=v.isEmptyObject(e),r=v.speed(t,n,i),s=function(){var t=st(this,v.extend({},e),r);(o||U.get(this,"finish"))&&t.stop(!0)};return s.finish=s,o||!1===r.queue?this.each(s):this.queue(r.queue,s)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,o=null!=e&&e+"queueHooks",r=v.timers,s=U.get(this);if(o)s[o]&&s[o].stop&&i(s[o]);else for(o in s)s[o]&&s[o].stop&&tt.test(o)&&i(s[o]);for(o=r.length;o--;)r[o].elem!==this||null!=e&&r[o].queue!==e||(r[o].anim.stop(n),t=!1,r.splice(o,1));!t&&n||v.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=U.get(this),i=n[e+"queue"],o=n[e+"queueHooks"],r=v.timers,s=i?i.length:0;for(n.finish=!0,v.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=r.length;t--;)r[t].elem===this&&r[t].queue===e&&(r[t].anim.stop(!0),r.splice(t,1));for(t=0;t<s;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),v.each(["toggle","show","hide"],function(e,t){var n=v.fn[t];v.fn[t]=function(e,i,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ot(t,!0),e,i,o)}}),v.each({slideDown:ot("show"),slideUp:ot("hide"),slideToggle:ot("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){v.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),v.timers=[],v.fx.tick=function(){var e,t=0,n=v.timers;for(Qe=v.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||v.fx.stop(),Qe=void 0},v.fx.timer=function(e){v.timers.push(e),v.fx.start()},v.fx.interval=13,v.fx.start=function(){Ke||(Ke=!0,nt())},v.fx.stop=function(){Ke=null},v.fx.speeds={slow:600,fast:200,_default:400},v.fn.delay=function(t,n){return t=v.fx&&v.fx.speeds[t]||t,n=n||"fx",this.queue(n,function(n,i){var o=e.setTimeout(n,t);i.stop=function(){e.clearTimeout(o)}})},Je=i.createElement("input"),Ze=i.createElement("select").appendChild(i.createElement("option")),Je.type="checkbox",d.checkOn=""!==Je.value,d.optSelected=Ze.selected,(Je=i.createElement("input")).value="t",Je.type="radio",d.radioValue="t"===Je.value;var at,lt=v.expr.attrHandle;v.fn.extend({attr:function(e,t){return $(this,v.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){v.removeAttr(this,e)})}}),v.extend({attr:function(e,t,n){var i,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===e.getAttribute?v.prop(e,t,n):(1===r&&v.isXMLDoc(e)||(o=v.attrHooks[t.toLowerCase()]||(v.expr.match.bool.test(t)?at:void 0)),void 0!==n?null===n?void v.removeAttr(e,t):o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(i=o.get(e,t))?i:null==(i=v.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!d.radioValue&&"radio"===t&&S(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,o=t&&t.match(O);if(o&&1===e.nodeType)for(;n=o[i++];)e.removeAttribute(n)}}),at={set:function(e,t,n){return!1===t?v.removeAttr(e,n):e.setAttribute(n,n),n}},v.each(v.expr.match.bool.source.match(/\w+/g),function(e,t){var n=lt[t]||v.find.attr;lt[t]=function(e,t,i){var o,r,s=t.toLowerCase();return i||(r=lt[s],lt[s]=o,o=null!=n(e,t,i)?s:null,lt[s]=r),o}});var ut=/^(?:input|select|textarea|button)$/i,ct=/^(?:a|area)$/i;function pt(e){return(e.match(O)||[]).join(" ")}function ft(e){return e.getAttribute&&e.getAttribute("class")||""}v.fn.extend({prop:function(e,t){return $(this,v.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[v.propFix[e]||e]})}}),v.extend({prop:function(e,t,n){var i,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&v.isXMLDoc(e)||(t=v.propFix[t]||t,o=v.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:e[t]=n:o&&"get"in o&&null!==(i=o.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=v.find.attr(e,"tabindex");return t?parseInt(t,10):ut.test(e.nodeName)||ct.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),d.optSelected||(v.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),v.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){v.propFix[this.toLowerCase()]=this}),v.fn.extend({addClass:function(e){var t,n,i,o,r,s,a,l=0;if(v.isFunction(e))return this.each(function(t){v(this).addClass(e.call(this,t,ft(this)))});if("string"==typeof e&&e)for(t=e.match(O)||[];n=this[l++];)if(o=ft(n),i=1===n.nodeType&&" "+pt(o)+" "){for(s=0;r=t[s++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");o!==(a=pt(i))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,i,o,r,s,a,l=0;if(v.isFunction(e))return this.each(function(t){v(this).removeClass(e.call(this,t,ft(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(O)||[];n=this[l++];)if(o=ft(n),i=1===n.nodeType&&" "+pt(o)+" "){for(s=0;r=t[s++];)for(;i.indexOf(" "+r+" ")>-1;)i=i.replace(" "+r+" "," ");o!==(a=pt(i))&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):v.isFunction(e)?this.each(function(n){v(this).toggleClass(e.call(this,n,ft(this),t),t)}):this.each(function(){var t,i,o,r;if("string"===n)for(i=0,o=v(this),r=e.match(O)||[];t=r[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=ft(this))&&U.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":U.get(this,"__className__")||""))})},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+pt(ft(n))+" ").indexOf(t)>-1)return!0;return!1}});var ht=/\r/g;v.fn.extend({val:function(e){var t,n,i,o=this[0];return arguments.length?(i=v.isFunction(e),this.each(function(n){var o;1===this.nodeType&&(null==(o=i?e.call(this,n,v(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=v.map(o,function(e){return null==e?"":e+""})),(t=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))})):o?(t=v.valHooks[o.type]||v.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(ht,""):null==n?"":n:void 0}}),v.extend({valHooks:{option:{get:function(e){var t=v.find.attr(e,"value");return null!=t?t:pt(v.text(e))}},select:{get:function(e){var t,n,i,o=e.options,r=e.selectedIndex,s="select-one"===e.type,a=s?null:[],l=s?r+1:o.length;for(i=r<0?l:s?r:0;i<l;i++)if(((n=o[i]).selected||i===r)&&!n.disabled&&(!n.parentNode.disabled||!S(n.parentNode,"optgroup"))){if(t=v(n).val(),s)return t;a.push(t)}return a},set:function(e,t){for(var n,i,o=e.options,r=v.makeArray(t),s=o.length;s--;)((i=o[s]).selected=v.inArray(v.valHooks.option.get(i),r)>-1)&&(n=!0);return n||(e.selectedIndex=-1),r}}}}),v.each(["radio","checkbox"],function(){v.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=v.inArray(v(e).val(),t)>-1}},d.checkOn||(v.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var dt=/^(?:focusinfocus|focusoutblur)$/;v.extend(v.event,{trigger:function(t,n,o,r){var s,a,l,u,c,f,h,d=[o||i],g=p.call(t,"type")?t.type:t,m=p.call(t,"namespace")?t.namespace.split("."):[];if(a=l=o=o||i,3!==o.nodeType&&8!==o.nodeType&&!dt.test(g+v.event.triggered)&&(g.indexOf(".")>-1&&(g=(m=g.split(".")).shift(),m.sort()),c=g.indexOf(":")<0&&"on"+g,(t=t[v.expando]?t:new v.Event(g,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=o),n=null==n?[t]:v.makeArray(n,[t]),h=v.event.special[g]||{},r||!h.trigger||!1!==h.trigger.apply(o,n))){if(!r&&!h.noBubble&&!v.isWindow(o)){for(u=h.delegateType||g,dt.test(u+g)||(a=a.parentNode);a;a=a.parentNode)d.push(a),l=a;l===(o.ownerDocument||i)&&d.push(l.defaultView||l.parentWindow||e)}for(s=0;(a=d[s++])&&!t.isPropagationStopped();)t.type=s>1?u:h.bindType||g,(f=(U.get(a,"events")||{})[t.type]&&U.get(a,"handle"))&&f.apply(a,n),(f=c&&a[c])&&f.apply&&z(a)&&(t.result=f.apply(a,n),!1===t.result&&t.preventDefault());return t.type=g,r||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(d.pop(),n)||!z(o)||c&&v.isFunction(o[g])&&!v.isWindow(o)&&((l=o[c])&&(o[c]=null),v.event.triggered=g,o[g](),v.event.triggered=void 0,l&&(o[c]=l)),t.result}},simulate:function(e,t,n){var i=v.extend(new v.Event,n,{type:e,isSimulated:!0});v.event.trigger(i,null,t)}}),v.fn.extend({trigger:function(e,t){return this.each(function(){v.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return v.event.trigger(e,t,n,!0)}}),v.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){v.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),v.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),d.focusin="onfocusin"in e,d.focusin||v.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){v.event.simulate(t,e.target,v.event.fix(e))};v.event.special[t]={setup:function(){var i=this.ownerDocument||this,o=U.access(i,t);o||i.addEventListener(e,n,!0),U.access(i,t,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this,o=U.access(i,t)-1;o?U.access(i,t,o):(i.removeEventListener(e,n,!0),U.remove(i,t))}}});var gt=e.location,mt=v.now(),vt=/\?/;v.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||v.error("Invalid XML: "+t),n};var yt=/\[\]$/,bt=/\r?\n/g,xt=/^(?:submit|button|image|reset|file)$/i,wt=/^(?:input|select|textarea|keygen)/i;function Ct(e,t,n,i){var o;if(Array.isArray(t))v.each(t,function(t,o){n||yt.test(e)?i(e,o):Ct(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,n,i)});else if(n||"object"!==v.type(t))i(e,t);else for(o in t)Ct(e+"["+o+"]",t[o],n,i)}v.param=function(e,t){var n,i=[],o=function(e,t){var n=v.isFunction(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!v.isPlainObject(e))v.each(e,function(){o(this.name,this.value)});else for(n in e)Ct(n,e[n],t,o);return i.join("&")},v.fn.extend({serialize:function(){return v.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=v.prop(this,"elements");return e?v.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!v(this).is(":disabled")&&wt.test(this.nodeName)&&!xt.test(e)&&(this.checked||!re.test(e))}).map(function(e,t){var n=v(this).val();return null==n?null:Array.isArray(n)?v.map(n,function(e){return{name:t.name,value:e.replace(bt,"\r\n")}}):{name:t.name,value:n.replace(bt,"\r\n")}}).get()}});var _t=/%20/g,Tt=/#.*$/,Et=/([?&])_=[^&]*/,kt=/^(.*?):[ \t]*([^\r\n]*)$/gm,St=/^(?:GET|HEAD)$/,Pt=/^\/\//,Nt={},Dt={},At="*/".concat("*"),Mt=i.createElement("a");function jt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,o=0,r=t.toLowerCase().match(O)||[];if(v.isFunction(n))for(;i=r[o++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function Ht(e,t,n,i){var o={},r=e===Dt;function s(a){var l;return o[a]=!0,v.each(e[a]||[],function(e,a){var u=a(t,n,i);return"string"!=typeof u||r||o[u]?r?!(l=u):void 0:(t.dataTypes.unshift(u),s(u),!1)}),l}return s(t.dataTypes[0])||!o["*"]&&s("*")}function Lt(e,t){var n,i,o=v.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:i||(i={}))[n]=t[n]);return i&&v.extend(!0,e,i),e}Mt.href=gt.href,v.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:gt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(gt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":At,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":v.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Lt(Lt(e,v.ajaxSettings),t):Lt(v.ajaxSettings,e)},ajaxPrefilter:jt(Nt),ajaxTransport:jt(Dt),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var o,r,s,a,l,u,c,p,f,h,d=v.ajaxSetup({},n),g=d.context||d,m=d.context&&(g.nodeType||g.jquery)?v(g):v.event,y=v.Deferred(),b=v.Callbacks("once memory"),x=d.statusCode||{},w={},C={},_="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(c){if(!a)for(a={};t=kt.exec(s);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return c?s:null},setRequestHeader:function(e,t){return null==c&&(e=C[e.toLowerCase()]=C[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==c&&(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)T.always(e[T.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||_;return o&&o.abort(t),E(0,t),this}};if(y.promise(T),d.url=((t||d.url||gt.href)+"").replace(Pt,gt.protocol+"//"),d.type=n.method||n.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(O)||[""],null==d.crossDomain){u=i.createElement("a");try{u.href=d.url,u.href=u.href,d.crossDomain=Mt.protocol+"//"+Mt.host!=u.protocol+"//"+u.host}catch(e){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=v.param(d.data,d.traditional)),Ht(Nt,d,n,T),c)return T;(p=v.event&&d.global)&&0==v.active++&&v.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!St.test(d.type),r=d.url.replace(Tt,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(_t,"+")):(h=d.url.slice(r.length),d.data&&(r+=(vt.test(r)?"&":"?")+d.data,delete d.data),!1===d.cache&&(r=r.replace(Et,"$1"),h=(vt.test(r)?"&":"?")+"_="+mt+++h),d.url=r+h),d.ifModified&&(v.lastModified[r]&&T.setRequestHeader("If-Modified-Since",v.lastModified[r]),v.etag[r]&&T.setRequestHeader("If-None-Match",v.etag[r])),(d.data&&d.hasContent&&!1!==d.contentType||n.contentType)&&T.setRequestHeader("Content-Type",d.contentType),T.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+At+"; q=0.01":""):d.accepts["*"]);for(f in d.headers)T.setRequestHeader(f,d.headers[f]);if(d.beforeSend&&(!1===d.beforeSend.call(g,T,d)||c))return T.abort();if(_="abort",b.add(d.complete),T.done(d.success),T.fail(d.error),o=Ht(Dt,d,n,T)){if(T.readyState=1,p&&m.trigger("ajaxSend",[T,d]),c)return T;d.async&&d.timeout>0&&(l=e.setTimeout(function(){T.abort("timeout")},d.timeout));try{c=!1,o.send(w,E)}catch(e){if(c)throw e;E(-1,e)}}else E(-1,"No Transport");function E(t,n,i,a){var u,f,h,w,C,_=n;c||(c=!0,l&&e.clearTimeout(l),o=void 0,s=a||"",T.readyState=t>0?4:0,u=t>=200&&t<300||304===t,i&&(w=function(e,t,n){for(var i,o,r,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(o in a)if(a[o]&&a[o].test(i)){l.unshift(o);break}if(l[0]in n)r=l[0];else{for(o in n){if(!l[0]||e.converters[o+" "+l[0]]){r=o;break}s||(s=o)}r=r||s}if(r)return r!==l[0]&&l.unshift(r),n[r]}(d,T,i)),w=function(e,t,n,i){var o,r,s,a,l,u={},c=e.dataTypes.slice();if(c[1])for(s in e.converters)u[s.toLowerCase()]=e.converters[s];for(r=c.shift();r;)if(e.responseFields[r]&&(n[e.responseFields[r]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=r,r=c.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(s=u[l+" "+r]||u["* "+r]))for(o in u)if((a=o.split(" "))[1]===r&&(s=u[l+" "+a[0]]||u["* "+a[0]])){!0===s?s=u[o]:!0!==u[o]&&(r=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+r}}}return{state:"success",data:t}}(d,w,T,u),u?(d.ifModified&&((C=T.getResponseHeader("Last-Modified"))&&(v.lastModified[r]=C),(C=T.getResponseHeader("etag"))&&(v.etag[r]=C)),204===t||"HEAD"===d.type?_="nocontent":304===t?_="notmodified":(_=w.state,f=w.data,u=!(h=w.error))):(h=_,!t&&_||(_="error",t<0&&(t=0))),T.status=t,T.statusText=(n||_)+"",u?y.resolveWith(g,[f,_,T]):y.rejectWith(g,[T,_,h]),T.statusCode(x),x=void 0,p&&m.trigger(u?"ajaxSuccess":"ajaxError",[T,d,u?f:h]),b.fireWith(g,[T,_]),p&&(m.trigger("ajaxComplete",[T,d]),--v.active||v.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return v.get(e,t,n,"json")},getScript:function(e,t){return v.get(e,void 0,t,"script")}}),v.each(["get","post"],function(e,t){v[t]=function(e,n,i,o){return v.isFunction(n)&&(o=o||i,i=n,n=void 0),v.ajax(v.extend({url:e,type:t,dataType:o,data:n,success:i},v.isPlainObject(e)&&e))}}),v._evalUrl=function(e){return v.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},v.fn.extend({wrapAll:function(e){var t;return this[0]&&(v.isFunction(e)&&(e=e.call(this[0])),t=v(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return v.isFunction(e)?this.each(function(t){v(this).wrapInner(e.call(this,t))}):this.each(function(){var t=v(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=v.isFunction(e);return this.each(function(n){v(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){v(this).replaceWith(this.childNodes)}),this}}),v.expr.pseudos.hidden=function(e){return!v.expr.pseudos.visible(e)},v.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},v.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Ot={0:200,1223:204},It=v.ajaxSettings.xhr();d.cors=!!It&&"withCredentials"in It,d.ajax=It=!!It,v.ajaxTransport(function(t){var n,i;if(d.cors||It&&!t.crossDomain)return{send:function(o,r){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest");for(s in o)a.setRequestHeader(s,o[s]);n=function(e){return function(){n&&(n=i=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?r(0,"error"):r(a.status,a.statusText):r(Ot[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),i=a.onerror=n("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout(function(){n&&i()})},n=n("abort");try{a.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),v.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),v.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return v.globalEval(e),e}}}),v.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),v.ajaxTransport("script",function(e){var t,n;if(e.crossDomain)return{send:function(o,r){t=v("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),i.head.appendChild(t[0])},abort:function(){n&&n()}}});var Ft,qt=[],Rt=/(=)\?(?=&|$)|\?\?/;v.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=qt.pop()||v.expando+"_"+mt++;return this[e]=!0,e}}),v.ajaxPrefilter("json jsonp",function(t,n,i){var o,r,s,a=!1!==t.jsonp&&(Rt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Rt.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return o=t.jsonpCallback=v.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Rt,"$1"+o):!1!==t.jsonp&&(t.url+=(vt.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return s||v.error(o+" was not called"),s[0]},t.dataTypes[0]="json",r=e[o],e[o]=function(){s=arguments},i.always(function(){void 0===r?v(e).removeProp(o):e[o]=r,t[o]&&(t.jsonpCallback=n.jsonpCallback,qt.push(o)),s&&v.isFunction(r)&&r(s[0]),s=r=void 0}),"script"}),d.createHTMLDocument=((Ft=i.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ft.childNodes.length),v.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(d.createHTMLDocument?((o=(t=i.implementation.createHTMLDocument("")).createElement("base")).href=i.location.href,t.head.appendChild(o)):t=i),r=P.exec(e),s=!n&&[],r?[t.createElement(r[1])]:(r=de([e],t,s),s&&s.length&&v(s).remove(),v.merge([],r.childNodes)));var o,r,s},v.fn.load=function(e,t,n){var i,o,r,s=this,a=e.indexOf(" ");return a>-1&&(i=pt(e.slice(a)),e=e.slice(0,a)),v.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),s.length>0&&v.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){r=arguments,s.html(i?v("<div>").append(v.parseHTML(e)).find(i):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,r||[e.responseText,t,e])})}),this},v.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){v.fn[t]=function(e){return this.on(t,e)}}),v.expr.pseudos.animated=function(e){return v.grep(v.timers,function(t){return e===t.elem}).length},v.offset={setOffset:function(e,t,n){var i,o,r,s,a,l,u=v.css(e,"position"),c=v(e),p={};"static"===u&&(e.style.position="relative"),a=c.offset(),r=v.css(e,"top"),l=v.css(e,"left"),("absolute"===u||"fixed"===u)&&(r+l).indexOf("auto")>-1?(s=(i=c.position()).top,o=i.left):(s=parseFloat(r)||0,o=parseFloat(l)||0),v.isFunction(t)&&(t=t.call(e,n,v.extend({},a))),null!=t.top&&(p.top=t.top-a.top+s),null!=t.left&&(p.left=t.left-a.left+o),"using"in t?t.using.call(e,p):c.css(p)}},v.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){v.offset.setOffset(this,e,t)});var t,n,i,o,r=this[0];return r?r.getClientRects().length?(i=r.getBoundingClientRect(),n=(t=r.ownerDocument).documentElement,o=t.defaultView,{top:i.top+o.pageYOffset-n.clientTop,left:i.left+o.pageXOffset-n.clientLeft}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n=this[0],i={top:0,left:0};return"fixed"===v.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),S(e[0],"html")||(i=e.offset()),i={top:i.top+v.css(e[0],"borderTopWidth",!0),left:i.left+v.css(e[0],"borderLeftWidth",!0)}),{top:t.top-i.top-v.css(n,"marginTop",!0),left:t.left-i.left-v.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===v.css(e,"position");)e=e.offsetParent;return e||ge})}}),v.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;v.fn[e]=function(i){return $(this,function(e,i,o){var r;if(v.isWindow(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===o)return r?r[t]:e[i];r?r.scrollTo(n?r.pageXOffset:o,n?o:r.pageYOffset):e[i]=o},e,i,arguments.length)}}),v.each(["top","left"],function(e,t){v.cssHooks[t]=Fe(d.pixelPosition,function(e,n){if(n)return n=Ie(e,t),Le.test(n)?v(e).position()[t]+"px":n})}),v.each({Height:"height",Width:"width"},function(e,t){v.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){v.fn[i]=function(o,r){var s=arguments.length&&(n||"boolean"!=typeof o),a=n||(!0===o||!0===r?"margin":"border");return $(this,function(t,n,o){var r;return v.isWindow(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===o?v.css(t,n,a):v.style(t,n,o,a)},t,s?o:void 0,s)}})}),v.fn.extend({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)}}),v.holdReady=function(e){e?v.readyWait++:v.ready(!0)},v.isArray=Array.isArray,v.parseJSON=JSON.parse,v.nodeName=S,"function"==typeof define&&define.amd&&define("jquery",[],function(){return v});var Wt=e.jQuery,Bt=e.$;return v.noConflict=function(t){return e.$===v&&(e.$=Bt),t&&e.jQuery===v&&(e.jQuery=Wt),v},t||(e.jQuery=e.$=v),v}),
/*! jQuery UI - v1.12.1 - 2017-10-27
* http://jqueryui.com
* Includes: widget.js, data.js, scroll-parent.js, widgets/draggable.js, widgets/droppable.js, widgets/mouse.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */
function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e){e.ui=e.ui||{};e.ui.version="1.12.1";
/*!
 * jQuery UI Widget 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */var t,n=0,i=Array.prototype.slice;e.cleanData=(t=e.cleanData,function(n){var i,o,r;for(r=0;null!=(o=n[r]);r++)try{(i=e._data(o,"events"))&&i.remove&&e(o).triggerHandler("remove")}catch(e){}t(n)}),e.widget=function(t,n,i){var o,r,s,a={},l=t.split(".")[0],u=l+"-"+(t=t.split(".")[1]);return i||(i=n,n=e.Widget),e.isArray(i)&&(i=e.extend.apply(null,[{}].concat(i))),e.expr[":"][u.toLowerCase()]=function(t){return!!e.data(t,u)},e[l]=e[l]||{},o=e[l][t],r=e[l][t]=function(e,t){if(!this._createWidget)return new r(e,t);arguments.length&&this._createWidget(e,t)},e.extend(r,o,{version:i.version,_proto:e.extend({},i),_childConstructors:[]}),(s=new n).options=e.widget.extend({},s.options),e.each(i,function(t,i){e.isFunction(i)?a[t]=function(){function e(){return n.prototype[t].apply(this,arguments)}function o(e){return n.prototype[t].apply(this,e)}return function(){var t,n=this._super,r=this._superApply;return this._super=e,this._superApply=o,t=i.apply(this,arguments),this._super=n,this._superApply=r,t}}():a[t]=i}),r.prototype=e.widget.extend(s,{widgetEventPrefix:o&&s.widgetEventPrefix||t},a,{constructor:r,namespace:l,widgetName:t,widgetFullName:u}),o?(e.each(o._childConstructors,function(t,n){var i=n.prototype;e.widget(i.namespace+"."+i.widgetName,r,n._proto)}),delete o._childConstructors):n._childConstructors.push(r),e.widget.bridge(t,r),r},e.widget.extend=function(t){for(var n,o,r=i.call(arguments,1),s=0,a=r.length;s<a;s++)for(n in r[s])o=r[s][n],r[s].hasOwnProperty(n)&&void 0!==o&&(e.isPlainObject(o)?t[n]=e.isPlainObject(t[n])?e.widget.extend({},t[n],o):e.widget.extend({},o):t[n]=o);return t},e.widget.bridge=function(t,n){var o=n.prototype.widgetFullName||t;e.fn[t]=function(r){var s="string"==typeof r,a=i.call(arguments,1),l=this;return s?this.length||"instance"!==r?this.each(function(){var n,i=e.data(this,o);return"instance"===r?(l=i,!1):i?e.isFunction(i[r])&&"_"!==r.charAt(0)?(n=i[r].apply(i,a))!==i&&void 0!==n?(l=n&&n.jquery?l.pushStack(n.get()):n,!1):void 0:e.error("no such method '"+r+"' for "+t+" widget instance"):e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+r+"'")}):l=void 0:(a.length&&(r=e.widget.extend.apply(null,[r].concat(a))),this.each(function(){var t=e.data(this,o);t?(t.option(r||{}),t._init&&t._init()):e.data(this,o,new n(r,this))})),l}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,i){i=e(i||this.defaultElement||this)[0],this.element=e(i),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},i!==this&&(e.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===i&&this.destroy()}}),this.document=e(i.style?i.ownerDocument:i.document||i),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,function(e,n){t._removeClass(n,e)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,n){var i,o,r,s=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(s={},t=(i=t.split(".")).shift(),i.length){for(o=s[t]=e.widget.extend({},this.options[t]),r=0;r<i.length-1;r++)o[i[r]]=o[i[r]]||{},o=o[i[r]];if(t=i.pop(),1===arguments.length)return void 0===o[t]?null:o[t];o[t]=n}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];s[t]=n}return this._setOptions(s),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return"classes"===e&&this._setOptionClasses(t),this.options[e]=t,"disabled"===e&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var n,i,o;for(n in t)o=this.classesElementLookup[n],t[n]!==this.options.classes[n]&&o&&o.length&&(i=e(o.get()),this._removeClass(o,n),i.addClass(this._classes({element:i,keys:n,classes:t,add:!0})))},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(t){var n=[],i=this;function o(o,r){var s,a;for(a=0;a<o.length;a++)s=i.classesElementLookup[o[a]]||e(),s=t.add?e(e.unique(s.get().concat(t.element.get()))):e(s.not(t.element).get()),i.classesElementLookup[o[a]]=s,n.push(o[a]),r&&t.classes[o[a]]&&n.push(t.classes[o[a]])}return t=e.extend({element:this.element,classes:this.options.classes||{}},t),this._on(t.element,{remove:"_untrackClassesElement"}),t.keys&&o(t.keys.match(/\S+/g)||[],!0),t.extra&&o(t.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(t){var n=this;e.each(n.classesElementLookup,function(i,o){-1!==e.inArray(t.target,o)&&(n.classesElementLookup[i]=e(o.not(t.target).get()))})},_removeClass:function(e,t,n){return this._toggleClass(e,t,n,!1)},_addClass:function(e,t,n){return this._toggleClass(e,t,n,!0)},_toggleClass:function(e,t,n,i){i="boolean"==typeof i?i:n;var o="string"==typeof e||null===e,r={extra:o?t:n,keys:o?e:t,element:o?this.element:e,add:i};return r.element.toggleClass(this._classes(r),i),this},_on:function(t,n,i){var o,r=this;"boolean"!=typeof t&&(i=n,n=t,t=!1),i?(n=o=e(n),this.bindings=this.bindings.add(n)):(i=n,n=this.element,o=this.widget()),e.each(i,function(i,s){function a(){if(t||!0!==r.options.disabled&&!e(this).hasClass("ui-state-disabled"))return("string"==typeof s?r[s]:s).apply(r,arguments)}"string"!=typeof s&&(a.guid=s.guid=s.guid||a.guid||e.guid++);var l=i.match(/^([\w:-]*)\s*(.*)$/),u=l[1]+r.eventNamespace,c=l[2];c?o.on(u,c,a):n.on(u,a)})},_off:function(t,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(n).off(n),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){var n=this;return setTimeout(function(){return("string"==typeof e?n[e]:e).apply(n,arguments)},t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(e(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(e(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,n,i){var o,r,s=this.options[t];if(i=i||{},(n=e.Event(n)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),n.target=this.element[0],r=n.originalEvent)for(o in r)o in n||(n[o]=r[o]);return this.element.trigger(n,i),!(e.isFunction(s)&&!1===s.apply(this.element[0],[n].concat(i))||n.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,n){e.Widget.prototype["_"+t]=function(i,o,r){var s;"string"==typeof o&&(o={effect:o});var a=o?!0===o||"number"==typeof o?n:o.effect||n:t;"number"==typeof(o=o||{})&&(o={duration:o}),s=!e.isEmptyObject(o),o.complete=r,o.delay&&i.delay(o.delay),s&&e.effects&&e.effects.effect[a]?i[t](o):a!==t&&i[a]?i[a](o.duration,o.easing,r):i.queue(function(n){e(this)[t](),r&&r.call(i[0]),n()})}});e.widget,e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(n){return!!e.data(n,t)}}):function(t,n,i){return!!e.data(t,i[3])}}),e.fn.scrollParent=function(t){var n=this.css("position"),i="absolute"===n,o=t?/(auto|scroll|hidden)/:/(auto|scroll)/,r=this.parents().filter(function(){var t=e(this);return(!i||"static"!==t.css("position"))&&o.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==n&&r.length?r:e(this[0].ownerDocument||document)},e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());
/*!
 * jQuery UI :data 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */var o=!1;e(document).on("mouseup",function(){o=!1});e.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(n){if(!0===e.data(n.target,t.widgetName+".preventClickEvent"))return e.removeData(n.target,t.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!o){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var n=this,i=1===t.which,r=!("string"!=typeof this.options.cancel||!t.target.nodeName)&&e(t.target).closest(this.options.cancel).length;return!(i&&!r&&this._mouseCapture(t))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(t),!this._mouseStarted)?(t.preventDefault(),!0):(!0===e.data(t.target,this.widgetName+".preventClickEvent")&&e.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return n._mouseMove(e)},this._mouseUpDelegate=function(e){return n._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),o=!0,!0))}},_mouseMove:function(t){if(this._mouseMoved){if(e.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,o=!1,t.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),e.ui.plugin={add:function(t,n,i){var o,r=e.ui[t].prototype;for(o in i)r.plugins[o]=r.plugins[o]||[],r.plugins[o].push([n,i[o]])},call:function(e,t,n,i){var o,r=e.plugins[t];if(r&&(i||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(o=0;o<r.length;o++)e.options[r[o][0]]&&r[o][1].apply(e.element,n)}},e.ui.safeActiveElement=function(e){var t;try{t=e.activeElement}catch(n){t=e.body}return t||(t=e.body),t.nodeName||(t=e.body),t},e.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&e(t).trigger("blur")};
/*!
 * jQuery UI Draggable 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
e.widget("ui.draggable",e.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(e,t){this._super(e,t),"handle"===e&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(t){var n=this.options;return!(this.helper||n.disabled||e(t.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(t),!!this.handle&&(this._blurActiveElement(t),this._blockFrames(!0===n.iframeFix?"iframe":n.iframeFix),!0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=e(this);return e("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var n=e.ui.safeActiveElement(this.document[0]);e(t.target).closest(n).length||e.ui.safeBlur(n)},_mouseStart:function(t){var n=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===e(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!n.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(e){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(t,n){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!n){var i=this._uiHash();if(!1===this._trigger("drag",t,i))return this._mouseUp(new e.Event("mouseup",t)),!1;this.position=i.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var n=this,i=!1;return e.ui.ddmanager&&!this.options.dropBehaviour&&(i=e.ui.ddmanager.drop(this,t)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||e.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==n._trigger("stop",t)&&n._clear()}):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new e.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!e(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var n=this.options,i=e.isFunction(n.helper),o=i?e(n.helper.apply(this.element[0],[t])):"clone"===n.helper?this.element.clone().removeAttr("id"):this.element;return o.parents("body").length||o.appendTo("parent"===n.appendTo?this.element[0].parentNode:n.appendTo),i&&o[0]===this.element[0]&&this._setPositionRelative(),o[0]===this.element[0]||/(fixed|absolute)/.test(o.css("position"))||o.css("position","absolute"),o},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),n=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==n&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(t?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,n,i,o=this.options,r=this.document[0];this.relativeContainer=null,o.containment?"window"!==o.containment?"document"!==o.containment?o.containment.constructor!==Array?("parent"===o.containment&&(o.containment=this.helper[0].parentNode),(i=(n=e(o.containment))[0])&&(t=/(scroll|auto)/.test(n.css("overflow")),this.containment=[(parseInt(n.css("borderLeftWidth"),10)||0)+(parseInt(n.css("paddingLeft"),10)||0),(parseInt(n.css("borderTopWidth"),10)||0)+(parseInt(n.css("paddingTop"),10)||0),(t?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(n.css("borderRightWidth"),10)||0)-(parseInt(n.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(n.css("borderBottomWidth"),10)||0)-(parseInt(n.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=n)):this.containment=o.containment:this.containment=[0,0,e(r).width()-this.helperProportions.width-this.margins.left,(e(r).height()||r.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,e(window).scrollLeft()+e(window).width()-this.helperProportions.width-this.margins.left,e(window).scrollTop()+(e(window).height()||r.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(e,t){t||(t=this.position);var n="absolute"===e?1:-1,i=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.offset.scroll.top:i?0:this.offset.scroll.top)*n,left:t.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.offset.scroll.left:i?0:this.offset.scroll.left)*n}},_generatePosition:function(e,t){var n,i,o,r,s=this.options,a=this._isRootNode(this.scrollParent[0]),l=e.pageX,u=e.pageY;return a&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(this.relativeContainer?(i=this.relativeContainer.offset(),n=[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):n=this.containment,e.pageX-this.offset.click.left<n[0]&&(l=n[0]+this.offset.click.left),e.pageY-this.offset.click.top<n[1]&&(u=n[1]+this.offset.click.top),e.pageX-this.offset.click.left>n[2]&&(l=n[2]+this.offset.click.left),e.pageY-this.offset.click.top>n[3]&&(u=n[3]+this.offset.click.top)),s.grid&&(o=s.grid[1]?this.originalPageY+Math.round((u-this.originalPageY)/s.grid[1])*s.grid[1]:this.originalPageY,u=n?o-this.offset.click.top>=n[1]||o-this.offset.click.top>n[3]?o:o-this.offset.click.top>=n[1]?o-s.grid[1]:o+s.grid[1]:o,r=s.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/s.grid[0])*s.grid[0]:this.originalPageX,l=n?r-this.offset.click.left>=n[0]||r-this.offset.click.left>n[2]?r:r-this.offset.click.left>=n[0]?r-s.grid[0]:r+s.grid[0]:r),"y"===s.axis&&(l=this.originalPageX),"x"===s.axis&&(u=this.originalPageY)),{top:u-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:a?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:a?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,n,i){return i=i||this._uiHash(),e.ui.plugin.call(this,t,[n,i,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),e.Widget.prototype._trigger.call(this,t,n,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,n,i){var o=e.extend({},n,{item:i.element});i.sortables=[],e(i.options.connectToSortable).each(function(){var n=e(this).sortable("instance");n&&!n.options.disabled&&(i.sortables.push(n),n.refreshPositions(),n._trigger("activate",t,o))})},stop:function(t,n,i){var o=e.extend({},n,{item:i.element});i.cancelHelperRemoval=!1,e.each(i.sortables,function(){var e=this;e.isOver?(e.isOver=0,i.cancelHelperRemoval=!0,e.cancelHelperRemoval=!1,e._storedCSS={position:e.placeholder.css("position"),top:e.placeholder.css("top"),left:e.placeholder.css("left")},e._mouseStop(t),e.options.helper=e.options._helper):(e.cancelHelperRemoval=!0,e._trigger("deactivate",t,o))})},drag:function(t,n,i){e.each(i.sortables,function(){var o=!1,r=this;r.positionAbs=i.positionAbs,r.helperProportions=i.helperProportions,r.offset.click=i.offset.click,r._intersectsWith(r.containerCache)&&(o=!0,e.each(i.sortables,function(){return this.positionAbs=i.positionAbs,this.helperProportions=i.helperProportions,this.offset.click=i.offset.click,this!==r&&this._intersectsWith(this.containerCache)&&e.contains(r.element[0],this.element[0])&&(o=!1),o})),o?(r.isOver||(r.isOver=1,i._parent=n.helper.parent(),r.currentItem=n.helper.appendTo(r.element).data("ui-sortable-item",!0),r.options._helper=r.options.helper,r.options.helper=function(){return n.helper[0]},t.target=r.currentItem[0],r._mouseCapture(t,!0),r._mouseStart(t,!0,!0),r.offset.click.top=i.offset.click.top,r.offset.click.left=i.offset.click.left,r.offset.parent.left-=i.offset.parent.left-r.offset.parent.left,r.offset.parent.top-=i.offset.parent.top-r.offset.parent.top,i._trigger("toSortable",t),i.dropped=r.element,e.each(i.sortables,function(){this.refreshPositions()}),i.currentItem=i.element,r.fromOutside=i),r.currentItem&&(r._mouseDrag(t),n.position=r.position)):r.isOver&&(r.isOver=0,r.cancelHelperRemoval=!0,r.options._revert=r.options.revert,r.options.revert=!1,r._trigger("out",t,r._uiHash(r)),r._mouseStop(t,!0),r.options.revert=r.options._revert,r.options.helper=r.options._helper,r.placeholder&&r.placeholder.remove(),n.helper.appendTo(i._parent),i._refreshOffsets(t),n.position=i._generatePosition(t,!0),i._trigger("fromSortable",t),i.dropped=!1,e.each(i.sortables,function(){this.refreshPositions()}))})}}),e.ui.plugin.add("draggable","cursor",{start:function(t,n,i){var o=e("body"),r=i.options;o.css("cursor")&&(r._cursor=o.css("cursor")),o.css("cursor",r.cursor)},stop:function(t,n,i){var o=i.options;o._cursor&&e("body").css("cursor",o._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,n,i){var o=e(n.helper),r=i.options;o.css("opacity")&&(r._opacity=o.css("opacity")),o.css("opacity",r.opacity)},stop:function(t,n,i){var o=i.options;o._opacity&&e(n.helper).css("opacity",o._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(e,t,n){n.scrollParentNotHidden||(n.scrollParentNotHidden=n.helper.scrollParent(!1)),n.scrollParentNotHidden[0]!==n.document[0]&&"HTML"!==n.scrollParentNotHidden[0].tagName&&(n.overflowOffset=n.scrollParentNotHidden.offset())},drag:function(t,n,i){var o=i.options,r=!1,s=i.scrollParentNotHidden[0],a=i.document[0];s!==a&&"HTML"!==s.tagName?(o.axis&&"x"===o.axis||(i.overflowOffset.top+s.offsetHeight-t.pageY<o.scrollSensitivity?s.scrollTop=r=s.scrollTop+o.scrollSpeed:t.pageY-i.overflowOffset.top<o.scrollSensitivity&&(s.scrollTop=r=s.scrollTop-o.scrollSpeed)),o.axis&&"y"===o.axis||(i.overflowOffset.left+s.offsetWidth-t.pageX<o.scrollSensitivity?s.scrollLeft=r=s.scrollLeft+o.scrollSpeed:t.pageX-i.overflowOffset.left<o.scrollSensitivity&&(s.scrollLeft=r=s.scrollLeft-o.scrollSpeed))):(o.axis&&"x"===o.axis||(t.pageY-e(a).scrollTop()<o.scrollSensitivity?r=e(a).scrollTop(e(a).scrollTop()-o.scrollSpeed):e(window).height()-(t.pageY-e(a).scrollTop())<o.scrollSensitivity&&(r=e(a).scrollTop(e(a).scrollTop()+o.scrollSpeed))),o.axis&&"y"===o.axis||(t.pageX-e(a).scrollLeft()<o.scrollSensitivity?r=e(a).scrollLeft(e(a).scrollLeft()-o.scrollSpeed):e(window).width()-(t.pageX-e(a).scrollLeft())<o.scrollSensitivity&&(r=e(a).scrollLeft(e(a).scrollLeft()+o.scrollSpeed)))),!1!==r&&e.ui.ddmanager&&!o.dropBehaviour&&e.ui.ddmanager.prepareOffsets(i,t)}}),e.ui.plugin.add("draggable","snap",{start:function(t,n,i){var o=i.options;i.snapElements=[],e(o.snap.constructor!==String?o.snap.items||":data(ui-draggable)":o.snap).each(function(){var t=e(this),n=t.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:n.top,left:n.left})})},drag:function(t,n,i){var o,r,s,a,l,u,c,p,f,h,d=i.options,g=d.snapTolerance,m=n.offset.left,v=m+i.helperProportions.width,y=n.offset.top,b=y+i.helperProportions.height;for(f=i.snapElements.length-1;f>=0;f--)u=(l=i.snapElements[f].left-i.margins.left)+i.snapElements[f].width,p=(c=i.snapElements[f].top-i.margins.top)+i.snapElements[f].height,v<l-g||m>u+g||b<c-g||y>p+g||!e.contains(i.snapElements[f].item.ownerDocument,i.snapElements[f].item)?(i.snapElements[f].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,t,e.extend(i._uiHash(),{snapItem:i.snapElements[f].item})),i.snapElements[f].snapping=!1):("inner"!==d.snapMode&&(o=Math.abs(c-b)<=g,r=Math.abs(p-y)<=g,s=Math.abs(l-v)<=g,a=Math.abs(u-m)<=g,o&&(n.position.top=i._convertPositionTo("relative",{top:c-i.helperProportions.height,left:0}).top),r&&(n.position.top=i._convertPositionTo("relative",{top:p,left:0}).top),s&&(n.position.left=i._convertPositionTo("relative",{top:0,left:l-i.helperProportions.width}).left),a&&(n.position.left=i._convertPositionTo("relative",{top:0,left:u}).left)),h=o||r||s||a,"outer"!==d.snapMode&&(o=Math.abs(c-y)<=g,r=Math.abs(p-b)<=g,s=Math.abs(l-m)<=g,a=Math.abs(u-v)<=g,o&&(n.position.top=i._convertPositionTo("relative",{top:c,left:0}).top),r&&(n.position.top=i._convertPositionTo("relative",{top:p-i.helperProportions.height,left:0}).top),s&&(n.position.left=i._convertPositionTo("relative",{top:0,left:l}).left),a&&(n.position.left=i._convertPositionTo("relative",{top:0,left:u-i.helperProportions.width}).left)),!i.snapElements[f].snapping&&(o||r||s||a||h)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,t,e.extend(i._uiHash(),{snapItem:i.snapElements[f].item})),i.snapElements[f].snapping=o||r||s||a||h)}}),e.ui.plugin.add("draggable","stack",{start:function(t,n,i){var o,r=i.options,s=e.makeArray(e(r.stack)).sort(function(t,n){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(n).css("zIndex"),10)||0)});s.length&&(o=parseInt(e(s[0]).css("zIndex"),10)||0,e(s).each(function(t){e(this).css("zIndex",o+t)}),this.css("zIndex",o+s.length))}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,n,i){var o=e(n.helper),r=i.options;o.css("zIndex")&&(r._zIndex=o.css("zIndex")),o.css("zIndex",r.zIndex)},stop:function(t,n,i){var o=i.options;o._zIndex&&e(n.helper).css("zIndex",o._zIndex)}});e.ui.draggable;
/*!
 * jQuery UI Droppable 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */e.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var t,n=this.options,i=n.accept;this.isover=!1,this.isout=!0,this.accept=e.isFunction(i)?i:function(e){return e.is(i)},this.proportions=function(){if(!arguments.length)return t||(t={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight});t=arguments[0]},this._addToManager(n.scope),n.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){e.ui.ddmanager.droppables[t]=e.ui.ddmanager.droppables[t]||[],e.ui.ddmanager.droppables[t].push(this)},_splice:function(e){for(var t=0;t<e.length;t++)e[t]===this&&e.splice(t,1)},_destroy:function(){var t=e.ui.ddmanager.droppables[this.options.scope];this._splice(t)},_setOption:function(t,n){if("accept"===t)this.accept=e.isFunction(n)?n:function(e){return e.is(n)};else if("scope"===t){var i=e.ui.ddmanager.droppables[this.options.scope];this._splice(i),this._addToManager(n)}this._super(t,n)},_activate:function(t){var n=e.ui.ddmanager.current;this._addActiveClass(),n&&this._trigger("activate",t,this.ui(n))},_deactivate:function(t){var n=e.ui.ddmanager.current;this._removeActiveClass(),n&&this._trigger("deactivate",t,this.ui(n))},_over:function(t){var n=e.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this._addHoverClass(),this._trigger("over",t,this.ui(n)))},_out:function(t){var n=e.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this._removeHoverClass(),this._trigger("out",t,this.ui(n)))},_drop:function(t,n){var i=n||e.ui.ddmanager.current,o=!1;return!(!i||(i.currentItem||i.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var n=e(this).droppable("instance");if(n.options.greedy&&!n.options.disabled&&n.options.scope===i.options.scope&&n.accept.call(n.element[0],i.currentItem||i.element)&&r(i,e.extend(n,{offset:n.element.offset()}),n.options.tolerance,t))return o=!0,!1}),!o&&(!!this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",t,this.ui(i)),this.element)))},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}});var r=e.ui.intersect=function(){function e(e,t,n){return e>=t&&e<t+n}return function(t,n,i,o){if(!n.offset)return!1;var r=(t.positionAbs||t.position.absolute).left+t.margins.left,s=(t.positionAbs||t.position.absolute).top+t.margins.top,a=r+t.helperProportions.width,l=s+t.helperProportions.height,u=n.offset.left,c=n.offset.top,p=u+n.proportions().width,f=c+n.proportions().height;switch(i){case"fit":return u<=r&&a<=p&&c<=s&&l<=f;case"intersect":return u<r+t.helperProportions.width/2&&a-t.helperProportions.width/2<p&&c<s+t.helperProportions.height/2&&l-t.helperProportions.height/2<f;case"pointer":return e(o.pageY,c,n.proportions().height)&&e(o.pageX,u,n.proportions().width);case"touch":return(s>=c&&s<=f||l>=c&&l<=f||s<c&&l>f)&&(r>=u&&r<=p||a>=u&&a<=p||r<u&&a>p);default:return!1}}}();e.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(t,n){var i,o,r=e.ui.ddmanager.droppables[t.options.scope]||[],s=n?n.type:null,a=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();e:for(i=0;i<r.length;i++)if(!(r[i].options.disabled||t&&!r[i].accept.call(r[i].element[0],t.currentItem||t.element))){for(o=0;o<a.length;o++)if(a[o]===r[i].element[0]){r[i].proportions().height=0;continue e}r[i].visible="none"!==r[i].element.css("display"),r[i].visible&&("mousedown"===s&&r[i]._activate.call(r[i],n),r[i].offset=r[i].element.offset(),r[i].proportions({width:r[i].element[0].offsetWidth,height:r[i].element[0].offsetHeight}))}},drop:function(t,n){var i=!1;return e.each((e.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&r(t,this,this.options.tolerance,n)&&(i=this._drop.call(this,n)||i),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,n)))}),i},dragStart:function(t,n){t.element.parentsUntil("body").on("scroll.droppable",function(){t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,n)})},drag:function(t,n){t.options.refreshPositions&&e.ui.ddmanager.prepareOffsets(t,n),e.each(e.ui.ddmanager.droppables[t.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var i,o,s,a=r(t,this,this.options.tolerance,n),l=!a&&this.isover?"isout":a&&!this.isover?"isover":null;l&&(this.options.greedy&&(o=this.options.scope,(s=this.element.parents(":data(ui-droppable)").filter(function(){return e(this).droppable("instance").options.scope===o})).length&&((i=e(s[0]).droppable("instance")).greedyChild="isover"===l)),i&&"isover"===l&&(i.isover=!1,i.isout=!0,i._out.call(i,n)),this[l]=!0,this["isout"===l?"isover":"isout"]=!1,this["isover"===l?"_over":"_out"].call(this,n),i&&"isout"===l&&(i.isout=!1,i.isover=!0,i._over.call(i,n)))}})},dragStop:function(t,n){t.element.parentsUntil("body").off("scroll.droppable"),t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,n)}},!1!==e.uiBackCompat&&e.widget("ui.droppable",e.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}});e.ui.droppable}),
/*!
* jQuery Cookie Plugin
* https://github.com/carhartl/jquery-cookie
*
* Copyright Klaus Hartl
* Released under the MIT license
*/
function(e){e.cookie=function(t,n,i){if(void 0===n){var o=null;if(document.cookie&&""!=document.cookie)for(var r=document.cookie.split(";"),s=0;s<r.length;s++){var a=e.trim(r[s]);if(a.substring(0,t.length+1)==t+"="){o=decodeURIComponent(a.substring(t.length+1));break}}return o}i=i||{},null===n&&(n="",(i=e.extend({},i)).expires=-1);var l,u="";i.expires&&("number"==typeof i.expires||i.expires.toUTCString)&&("number"==typeof i.expires?(l=new Date).setTime(l.getTime()+24*i.expires*60*60*1e3):l=i.expires,u="; expires="+l.toUTCString());var c=i.path?"; path="+i.path:"",p=i.domain?"; domain="+i.domain:"",f=i.secure?"; secure":"";document.cookie=[t,"=",encodeURIComponent(n),u,c,p,f].join("")}}(jQuery),
/*!
 * jQuery UI Touch Punch Improved 0.3.1
 *
 *
 * Copyright 2013, Chris Hutchinson <chris@brushd.com>
 * Original jquery-ui-touch-punch Copyright 2011, Dave Furfero
 * Dual licensed under the MIT or GPL Version 2 licenses.
 *
 * Depends:
 * jquery.ui.widget.js
 * jquery.ui.mouse.js
 */
function(e){var t=!1,n=!1;window.PointerEvent?t=!0:window.MSPointerEvent&&(n=!0);var i=t||n;if(e.support.touch="ontouchend"in document||i,e.support.touch&&e.ui.mouse){var o,r=e.ui.mouse.prototype,s=r._mouseInit,a=r._mouseDestroy;r._touchStart=function(e){o||!i&&!this._mouseCapture(e.originalEvent.changedTouches[0])||(!i||"mouse"!=e.originalEvent.pointerType&&4!=e.originalEvent.pointerType)&&(o=!0,this._touchMoved=!1,l(e,"mouseover"),l(e,"mousemove"),l(e,"mousedown"))},r._touchMove=function(e){o&&(this._touchMoved=!0,l(e,"mousemove"))},r._touchEnd=function(e){o&&(l(e,"mouseup"),l(e,"mouseout"),this._touchMoved||l(e,"click"),o=!1)},r._mouseInit=function(){var i,o=["_touchStart","_touchMove","_touchEnd"],r={};i=t?["pointerdown","pointermove","pointerup"]:n?["MSPointerDown","MSPointerMove","MSPointerUp"]:["touchstart","touchmove","touchend"];for(var a=0;a<o.length;++a)r[i[a]]=e.proxy(this,o[a]);this.element.on(r),s.call(this)},r._mouseDestroy=function(){var i,o=["_touchStart","_touchMove","_touchEnd"],r={};i=t?["pointerdown","pointermove","pointerup"]:n?["MSPointerDown","MSPointerMove","MSPointerUp"]:["touchstart","touchmove","touchend"];for(var s=0;s<o.length;++s)r[i[s]]=e.proxy(this,o[s]);this.element.off(r),a.call(this)}}function l(t,n){if(!(!i&&t.originalEvent.touches.length>1||i&&!t.originalEvent.isPrimary)){var o,r,s,a,l,u=i?t.originalEvent:t.originalEvent.changedTouches[0],c=document.createEvent("MouseEvents"),p=(o=u,r=window.pageXOffset,s=window.pageYOffset,a=o.clientX,l=o.clientY,0===o.pageY&&Math.floor(l)>Math.floor(o.pageY)||0===o.pageX&&Math.floor(a)>Math.floor(o.pageX)?(a-=r,l-=s):(l<o.pageY-s||a<o.pageX-r)&&(a=o.pageX-r,l=o.pageY-s),{clientX:a,clientY:l});e(u.target).is("input")||e(u.target).is("textarea")?t.stopPropagation():t.preventDefault(),c.initMouseEvent(n,!0,!0,window,1,t.screenX||u.screenX,t.screenY||u.screenY,t.clientX||p.clientX,t.clientY||p.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(c)}}}(jQuery),function(){"use strict";function e(e,t,n){this.x=e,this.y=t,this.z=n}function t(e){this.data=e}t.fromString=function(e){var n=e.match(/matrix3?d?\(([^\)]+)\)/i)[1].split(",");return 6===n.length&&(n=[n[0],n[1],"0","0",n[2],n[3],"0","0","0","0","1","0",n[4],n[5],"0","1"]),new t([parseFloat(n[0]),parseFloat(n[4]),parseFloat(n[8]),parseFloat(n[12]),parseFloat(n[1]),parseFloat(n[5]),parseFloat(n[9]),parseFloat(n[13]),parseFloat(n[2]),parseFloat(n[6]),parseFloat(n[10]),parseFloat(n[14]),parseFloat(n[3]),parseFloat(n[7]),parseFloat(n[11]),parseFloat(n[15])])},t.prototype.multiply=function(e){var n=this.data,i=e.data;return new t([n[0]*i[0]+n[1]*i[4]+n[2]*i[8]+n[3]*i[12],n[0]*i[1]+n[1]*i[5]+n[2]*i[9]+n[3]*i[13],n[0]*i[2]+n[1]*i[6]+n[2]*i[10]+n[3]*i[14],n[0]*i[3]+n[1]*i[7]+n[2]*i[11]+n[3]*i[15],n[4]*i[0]+n[5]*i[4]+n[6]*i[8]+n[7]*i[12],n[4]*i[1]+n[5]*i[5]+n[6]*i[9]+n[7]*i[13],n[4]*i[2]+n[5]*i[6]+n[6]*i[10]+n[7]*i[14],n[4]*i[3]+n[5]*i[7]+n[6]*i[11]+n[7]*i[15],n[8]*i[0]+n[9]*i[4]+n[10]*i[8]+n[11]*i[12],n[8]*i[1]+n[9]*i[5]+n[10]*i[9]+n[11]*i[13],n[8]*i[2]+n[9]*i[6]+n[10]*i[10]+n[11]*i[14],n[8]*i[3]+n[9]*i[7]+n[10]*i[11]+n[11]*i[15],n[12]*i[0]+n[13]*i[4]+n[14]*i[8]+n[15]*i[12],n[12]*i[1]+n[13]*i[5]+n[14]*i[9]+n[15]*i[13],n[12]*i[2]+n[13]*i[6]+n[14]*i[10]+n[15]*i[14],n[12]*i[3]+n[13]*i[7]+n[14]*i[11]+n[15]*i[15]])},t.prototype.translate=function(e,n,i){var o=new t([1,0,0,e,0,1,0,n,0,0,1,i,0,0,0,1]);return this.multiply(o)},t.prototype.inverse=function(){var e=this.data,n=e[0],i=e[1],o=e[2],r=e[4],s=e[5],a=e[6],l=e[8],u=e[9],c=e[10],p=s*c-a*u,f=a*l-r*c,h=r*u-s*l,d=n*p+i*f+o*h,g=new t([p/d,(o*u-i*c)/d,(i*a-o*s)/d,0,f/d,(n*c-o*l)/d,(o*r-n*a)/d,0,h/d,(i*l-n*u)/d,(n*s-i*r)/d,0,0,0,0,1]),m=new t([1,0,0,-e[3],0,1,0,-e[7],0,0,1,-e[11],0,0,0,1]);return g.multiply(m)},t.prototype.transformPoint=function(t){arguments.length>1&&(t=new e(t,arguments[1],arguments[2]||0));var n=this.data;return new e(n[0]*t.x+n[1]*t.y+n[2]*t.z+n[3],n[4]*t.x+n[5]*t.y+n[6]*t.z+n[7],n[8]*t.x+n[9]*t.y+n[10]*t.z+n[11])};var n=!1,i=!1,o=function(e){if(i)return n;i=!0;var t=e.createElement("div");t.style.cssText="width:200px;height:200px;position:fixed;-moz-transform:scale(2);",e.body.appendChild(t);var o=t.getBoundingClientRect();return n=void 0!=getComputedStyle(t,void 0).MozTransform&&o.bottom-o.top<300,t.parentNode.removeChild(t),n};function r(n){for(var i=t.fromString("matrix(1,0,0,1,0,0)"),r=i,s=n,a=o(s.ownerDocument);void 0!=s&&s!==s.ownerDocument.documentElement;){var l=window.getComputedStyle(s,void 0),u=t.fromString((l.transform||l.OTransform||l.WebkitTransform||l.msTransform||l.MozTransform||"none").replace(/^none$/,"matrix(1,0,0,1,0,0)"));if(a){var c=s.getBoundingClientRect(),p=void 0!=s.parentNode&&void 0!=s.parentNode.getBoundingClientRect?s.parentNode.getBoundingClientRect():x,f=i.translate(c.left-p.left,c.top-p.top,0),h=l.MozTransformOrigin;h=-1!==h.indexOf("%")?"":h,h=t.fromString("matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,"+((h||"0 0")+" 0").split(" ").slice(0,3)+",1)"),r=f.multiply(h).multiply(u).multiply(h.inverse()).multiply(r)}else r=u.multiply(r);s=s.parentNode}if(!a){for(var d=n.offsetWidth,g=n.offsetHeight,m=4,v=1/0,y=1/0;--m>=0;){var b=r.transformPoint(new e(0===m||1===m?0:d,0===m||3===m?0:g,0));b.x<v&&(v=b.x),b.y<y&&(y=b.y)}var x=n.getBoundingClientRect();r=i.translate(window.pageXOffset+x.left-v,window.pageYOffset+x.top-y,0).multiply(r)}return r}window.getTransformationMatrix=r,window.convertPointFromPageToNode=function(t,n,i){return r(t).inverse().transformPoint(new e(n,i,0))},window.convertPointFromNodeToPage=function(t,n,i){return r(t).transformPoint(new e(n,i,0))}}(),
/*!
 * Heartcode CanvasLoader https://github.com/heartcode/CanvasLoader
 * Copyright (c) 2011 Róbert Pataki
 * Modified by ATOMI
 * Licensed under the MIT license.
 */
function(){"use strict";var e=function(e,t){void 0===t&&(t={}),this.init(e,t)},t=e.prototype,n=["oval","spiral","square","rect","roundRect"],i=/^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/,o=function(e,t,n){var i,o=document.createElement(e);for(i in n)o[i]=n[i];return void 0!==t&&t.appendChild(o),o},r=function(e,t){for(var n in t)e.style[n]=t[n];return e},s=function(e,t){for(var n in t)e.setAttribute(n,t[n]);return e},a=function(e,t,n,i){e.save(),e.translate(t,n),e.rotate(i),e.translate(-t,-n),e.beginPath()};t.init=function(e,t){t||(t={}),"string"==typeof e&&(e=document.getElementById(e)),e||(e=document.body),this.cont=o("div",e),t.id&&(this.cont.id=t.id);var n=this.cont.style;n.position="absolute",n.margin="auto",n.left=n.right=n.top=n.bottom=0,n.pointerEvents="none",void 0!==t.zIndex&&(n.zIndex=t.zIndex),this.can=o("canvas",this.cont),this.con=this.can.getContext("2d"),this.cCan=r(o("canvas",this.cont),{display:"none"}),this.cCon=this.cCan.getContext("2d");var i,s,a=["shape","color","diameter","density","range","speed","text"],l=["oval","#2090e6",60,9,1,1,""];for(i=0;i<a.length;++i)this[s=a[i]]=void 0!==t[s]?t[s]:l[i];this.cRGB=this.getRGB(this.color),this.draw(),r(this.cont,{display:"none"})},t.cont={},t.can={},t.con={},t.cCan={},t.cCon={},t.timer=null,t.activeId=0,t.diameter=40,t.setDiameter=function(e){this.diameter=e<1?1:e,this.redraw()},t.getDiameter=function(){return this.diameter},t.cRGB={},t.color="#000000",t.setColor=function(e){this.color=i.test(e)?e:"#000000",this.cRGB=this.getRGB(this.color),this.redraw()},t.getColor=function(){return this.color},t.shape=n[0],t.setShape=function(e){var t;for(t in n)if(e===n[t]){this.shape=e,this.redraw();break}},t.getShape=function(){return this.shape},t.density=40,t.setDensity=function(e){this.density=Math.round(Math.abs(e)),this.density>360&&(this.density=360),this.density<2&&(this.density=2),this.activeId=0,this.redraw()},t.getDensity=function(){return this.density},t.range=1.3,t.setRange=function(e){this.range=Math.abs(e),this.redraw()},t.getRange=function(){return this.range},t.speed=2,t.setSpeed=function(e){this.speed=Math.round(Math.abs(e))},t.getSpeed=function(){return this.speed},t.text="",t.setText=function(e){this.text=e,this.textChanged=!0,this.timer&&this.tick(!0)},t.getText=function(){return this.text},t.getRGB=function(e){return e="#"===e.charAt(0)?e.substring(1,7):e,{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16)}},t.draw=function(){var e,t,i,o,l,u,c,p,f=0,h=this.density,d=Math.round(h*this.range),g=this.cCon,m=this.diameter,v=.47;for(m<1&&(this.diameter=m=1),r(this.cont,{width:m+"px",height:m+"px"}),g.clearRect(0,0,1e3,1e3),s(this.can,{width:m,height:m}),s(this.cCan,{width:m,height:m});f<h;){switch(p=f<=d?1-1/d*f:p=0,u=(270-360/h*f)/180*Math.PI,g.fillStyle="rgba("+this.cRGB.r+","+this.cRGB.g+","+this.cRGB.b+","+p.toString()+")",this.shape){case n[0]:case n[1]:e=.07*m,o=m*v+Math.cos(u)*(m*v-e)-m*v,l=m*v+Math.sin(u)*(m*v-e)-m*v,g.beginPath(),this.shape===n[1]?g.arc(.5*m+o,.5*m+l,e*p,0,2*Math.PI,!1):g.arc(.5*m+o,.5*m+l,e,0,2*Math.PI,!1);break;case n[2]:e=.12*m,o=Math.cos(u)*(m*v-e)+.5*m,l=Math.sin(u)*(m*v-e)+.5*m,a(g,o,l,u),g.fillRect(o,l-.5*e,e,e);break;case n[3]:case n[4]:i=.27*(t=.3*m),o=Math.cos(u)*(i+.13*(m-i))+.5*m,l=Math.sin(u)*(i+.13*(m-i))+.5*m,a(g,o,l,u),this.shape===n[3]?g.fillRect(o,l-.5*i,t,i):(c=.55*i,g.moveTo(o+c,l-.5*i),g.lineTo(o+t-c,l-.5*i),g.quadraticCurveTo(o+t,l-.5*i,o+t,l-.5*i+c),g.lineTo(o+t,l-.5*i+i-c),g.quadraticCurveTo(o+t,l-.5*i+i,o+t-c,l-.5*i+i),g.lineTo(o+c,l-.5*i+i),g.quadraticCurveTo(o,l-.5*i+i,o,l-.5*i+i-c),g.lineTo(o,l-.5*i+c),g.quadraticCurveTo(o,l-.5*i,o+c,l-.5*i))}g.closePath(),g.fill(),g.restore(),++f}this.con.textAlign="center",this.con.textBaseline="middle",this.con.font="bold "+this.detectFontSize()+"px Arial",this.con.fillStyle="rgb("+this.cRGB.r+","+this.cRGB.g+","+this.cRGB.b+")",this.timer&&this.tick(!0)},t.clean=function(){this.con.clearRect(0,0,1e3,1e3)},t.redraw=function(){this.clean(),this.draw()},t.reset=function(){this.timer&&(this.hide(),this.show())},t.detectFontSize=function(){if(this.diameter<90){if(this.shape.toLowerCase().indexOf("rect")>-1){if(this.diameter<65)return 8;if(this.diameter<80)return 10}return 12}return this.diameter<120?14:this.diameter<140?18:22},t.tick=function(e){var t,n=this.con,i=this.diameter,o=Date.now();if(i<1&&(this.diameter=i=1),!e&&this.prevTime){if((t=Math.floor((o-this.prevTime)*this.speed/100))===this.density&&(t=this.density-1),!t&&!this.textChanged)return;this.activeId+=360/this.density*t,t&&(this.prevTime=100*t/this.speed+this.prevTime)}else this.prevTime=o;n.clearRect(0,0,i,i),a(n,.5*i,.5*i,this.activeId/180*Math.PI),n.drawImage(this.cCan,0,0,i,i),n.restore(),this.text&&(n.fillText(this.text,i/2,i/2),this.textChanged=!1)},t.show=function(){if(!this.timer){this.prevTime=null;var e=this,t=function(){e.tick(),e.timer=requestAnimationFrame(t)};t(),r(this.cont,{display:"block"})}},t.hide=function(){this.timer&&(cancelAnimationFrame(this.timer),delete this.timer,this.prevTime=null,r(this.cont,{display:"none"}))},t.kill=function(){this.hide(),this.cont.parentNode&&this.cont.parentNode.removeChild(this.cont)},document.createElement("canvas").getContext&&(window.CanvasLoader=e)}();/*!
 * ActivePresenter HTML5 Output File
 * Copyright (c) Atomi Systems, Inc. All rights reserved.
 * https://atomisystems.com/activepresenter/
 * Version: 8.0.6
 * Date: 2020.04.28
 */
function onYouTubeIframeAPIReady(){AtomiAP.onYouTubeIframeAPIReady()}!function(t){"use strict";t=t.noConflict(!0);var i={o:0,u:2,_:3,T:4,S:8,M:10,C:11,I:13,P:14,R:15,D:16,N:17,O:18,L:21,F:22,U:23,Y:24,H:25,B:90,X:91,G:92},s={V:1,j:2,H:3,K:0,q:12,J:17,tt:18,it:1,et:2,nt:3,ht:4,rt:5,ot:6,ut:7},e=1<<29,n=1<<28,h=1<<20,r=1<<19,a=1<<18,o=65536,u=32768,c=0,f=1,l=2,d=0,p=1,v=2,m=3,b=4,w=5,g=6,_=7,k=0,y=2,T=4,x=8,S=16,E=32,M=64,C=128,I=256,P=512,R=1024,A=2048,D=4096,N=0,O=0,L=1,F=2,U=3,Y=4,H=0,B=1,z=2,X=3,G=4,V=5,$=0,W=1,j=2,Q=3,K=4,q=0,J=1,Z=2,tt=500,it=501,st=1,et=2,nt=3,ht={ct:1,ft:2,lt:8},rt={NONE:0,ARROW:1,OPEN:2,STEALTH:3,DIAMOND:4,OVAL:5},at=1,ot=2,ut=4,ct=8,ft=32,lt=64,dt=256,pt=512,vt={dt:0,pt:1,vt:2,u:3,bt:8,wt:9},mt=0,bt=1,wt=1,gt=2,_t=3,kt={gt:0,_t:1,kt:3,V:4,j:5,yt:6,P:7,Tt:8,xt:9},yt={St:1,Et:2,Mt:3,Ct:4,It:5,Pt:6,Rt:7,At:8},Tt={Dt:0,Nt:1,Ot:2,Lt:3,Ft:4,Tt:5,Ut:6},xt=1,St=2,Et=4,Mt=8,Ct=16,It=-1,Pt={3:"ap-click",4:"ap-dblclick",6:"ap-rollover",7:"ap-rollout",10:"ap-keypress",12:"ap-textenter",16:"ap-load",17:"ap-unload",21:"ap-check",23:"ap-correct",24:"ap-incorrect",25:"ap-complete",26:"ap-incomplete",27:"ap-timeout",29:"ap-accept",30:"ap-reject",32:"ap-swipeleft",33:"ap-swiperight",34:"ap-swipeup",35:"ap-swipedown",36:"ap-dragstart",37:"ap-dragend",38:"ap-dragenter",39:"ap-dragleave",40:"ap-timer-complete",41:"ap-uncheck"},Rt={Yt:1,Ht:2,Bt:3,zt:5,Xt:6,Gt:7,Vt:8,$t:12,Wt:13,jt:14,Qt:15,Kt:16,qt:19,Jt:20,Zt:26,ii:27,_t:28,si:29,ei:30,ni:31,hi:32,gt:33,ri:34,oi:35,ci:36,fi:37,li:38,di:39,pi:40,vi:41,bi:42,wi:43,gi:44,_i:45,ki:46},At={yi:0,Ti:1,xi:2,Si:3,Ei:4,Mi:5},Dt=0,Nt=1,Ot=2,Lt=3,Ft=0,Ut=2,Yt=0,Ht=1,Bt=2,zt=3,Xt=4,Gt=5,Vt=8,$t={Ci:1,Ii:2,Pi:3,Ri:4,Ai:5,Di:6,Ni:7,Oi:10,Li:11,Fi:1e3,Ui:2500,Yi:4e3,Hi:4001},Wt={"-1":"auto",0:"none",1:"default",5:"crosshair",6:"pointer",7:"text",11:"not-allowed",16:"help",18:"nesw-resize",19:"ns-resize",20:"nwse-resize",21:"ew-resize",22:"all-scroll",24:"wait"},jt={Bi:0,zi:1,Xi:2,Gi:3},Qt={Demo:1,Tutorial:2,Practice:4,Test:8},Kt=0,qt=1,Jt=2,Zt=3,ti=1,ii=2,si=3,ei=4,ni=5,hi=6,ri=7,ai=8,oi=9,ui=10,ci=11,fi=12,li=13,di=14,pi=1,vi=2,mi=3,bi={ACTUAL_SIZE:0,AUTOFIT:1,FULLSCREEN:2},wi={BOOLEAN:0,TEXT:1,NUMBER:2,COMMAND:3},gi=0,_i=1,ki=0,yi=1,Ti=0,xi=1,Si=2,Ei=3,Mi=-2,Ci=-1,Ii=1e3,Pi=1e-7,Ri="string",Ai="http://www.w3.org/2000/svg",Di="userSpaceOnUse",Ni=Math.PI,Oi=Math.abs,Li=Math.sqrt,Fi=Math.pow,Ui=Math.min,Yi=Math.max,Hi=Math.cos,Bi=Math.sin,zi=Math.tan,Xi=Math.atan2,Gi=Math.round,Vi=Math.floor,$i=Math.ceil,Wi=t.noop,ji=t.extend,Qi=t.isFunction,Ki=t.isNumeric,qi=Date.now||(Date.now=function(){return(new Date).getTime()}),Ji=window.document,Zi=window.requestAnimationFrame,ts=window.cancelAnimationFrame,is=["Webkit","Moz","ms","O"],ss=["webkit","moz","ms","o"],es={},ns={},hs=Ji.createElement("div");function rs(t){rs.disabled||window.console&&console.log(t)}function as(t,i,s){return Ui(Yi(t,i),s)}function os(t,i,s){return arguments.length<3&&(s=Pi),i-s<=t&&t<=i+s}function us(t,i){1==arguments.length&&(i=t);var s,e,n,h=[],r=[];for(s=0;s<t;++s)h.push(s);for(s=t;i>0;)e=Math.floor(Math.random()*s),--s,n=h[e],s!=e&&(h[e]=h[s],h[s]=n),r.push(n),--i,0==s&&(s=t);return r}function cs(t,i){hs.textContent=t;var s=hs.innerHTML;return i?s.replace(/\n/g,"<br />"):s}function fs(t){return hs.innerHTML=t,hs.textContent||""}function ls(t,i){return Gi(t*Fi(10,i))/Fi(10,i)}function ds(t,i,s){for(var e=t.parentNode,n=s.words?t.nodeValue.split(/(\s+)/):t.nodeValue,h=0,r=n.length;h<r;++h){var a,o,u=n[h];if(u)u.trim()?(a=Ji.createElement("div"),o=Ji.createTextNode(u),a.appendChild(o),a.style.display="inline-block",a.style.position="relative",i[s.words?"words":"chars"].push(a),s.words&&s.chars&&ds(o,i,{chars:!0})):a=Ji.createTextNode(u),e.insertBefore(a,t)}e.removeChild(t)}function ps(t){t=Vi(t/1e3);var i=Vi(t/3600),s=Vi(t%3600/60),e=t%60;return i<10&&(i="0"+i),s<10&&(s="0"+s),e<10&&(e="0"+e),i+":"+s+":"+e}function vs(t){var i,s;return t.indexOf(":")>=0?s=(i=t.split(":")).length-3:(i=t.match(/(\d+h)?(\d+m)?((\d*\.)?\d+s)?/i))[0]&&(s=1),void 0!==s?1e3*(3600*(parseFloat(i[s])||0)+60*(parseFloat(i[s+1])||0)+(parseFloat(i[s+2])||0)):parseInt(t)}function ms(t){return t*Ni/180}function bs(t,i){for(var s in i)t.setAttribute(s,i[s])}function ws(t,i,s,e){return void 0===i?typeof t===Ri?t:ws(t>>16&255,t>>8&255,255&t,(t>>24&255)/255):void 0===e||1===e?"rgb("+Gi(t)+","+Gi(i)+","+Gi(s)+")":"rgba("+Gi(t)+","+Gi(i)+","+Gi(s)+","+e.toFixed(6)+")"}rs.disabled=!0;var gs,_s,ks,ys=/[a-zA-Z%]+$/;function Ts(t){var i={unit:null};return typeof t===Ri?(i.value=parseFloat(t),i.unit=t.match(ys),i.unit&&(i.unit=i.unit[0])):i.value=t,i}function xs(t,i,s,e){if(i in t||!i)return i;var n,h,r=i.charAt(0).toUpperCase()+i.slice(1),a=s.length;for(h=0;h<a;++h)if((n=s[h]+r)in t)return n;return e?"":i}function Ss(t,i,s){return xs(t,i,ss,s)}function Es(t,i,s){return xs(t,i,is,s)}Zi||(Zi=window[Ss(window,"requestAnimationFrame")],ts=window[Ss(window,"cancelAnimationFrame")]||window[Ss(window,"cancelRequestAnimationFrame")],Zi||(Zi=function(t){var i=qi(),s=t.requestAnimationFrameTime?Yi(0,16-(i-t.requestAnimationFrameTime)):0;return t.requestAnimationFrameTime=i+s,window.setTimeout(function(){t(qi())},s)},ts=function(t){clearTimeout(t)}),window.requestAnimationFrame=Zi,window.cancelAnimationFrame=ts),ns.clipPath=(gs="clipPath",_s="inset(10%)",!!(ks=Es(hs.style,gs,!0))&&(es[gs]=ks,hs.style[ks]=_s,!(!hs.style[ks]||"none"==hs.style[ks])||!!(ks==gs&&(ks="Webkit"+gs.charAt(0).toUpperCase()+gs.slice(1))in hs.style&&(hs.style[ks]=_s,hs.style[ks]))&&(es[gs]=ks,!0)));var Ms=es.transform=Es(hs.style,"transform"),Cs=es.transformOrigin=Es(hs.style,"transformOrigin"),Is=Ss(Ji,"hidden",!0),Ps=ns.clipPath?es.clipPath:"clip",Rs=ns.clipPath?"inset(":"rect(",As=function(){for(var t=["fullscreenEnabled fullscreenElement requestFullscreen exitFullscreen fullscreenchange fullscreenerror".split(" "),"webkitFullscreenEnabled webkitFullscreenElement webkitRequestFullscreen webkitExitFullscreen webkitfullscreenchange webkitfullscreenerror".split(" "),"mozFullScreenEnabled mozFullScreenElement mozRequestFullScreen mozCancelFullScreen mozfullscreenchange mozfullscreenerror".split(" "),"msFullscreenEnabled msFullscreenElement msRequestFullscreen msExitFullscreen MSFullscreenChange MSFullscreenError".split(" ")],i={},s=0,e=0,n=t.length;e<n;++e)if(t[e][0]in Ji){s=e;break}for(e=0,n=t[0].length;e<n;++e)i[t[0][e]]=t[s][e];return t=null,{fullscreenEnabled:function(){return Ji[i.fullscreenEnabled]},fullscreenElement:function(){return Ji[i.fullscreenElement]},requestFullscreen:function(t){var s=i.requestFullscreen;if(t[s])return t[s]();t.webkitEnterFullscreen&&t.webkitEnterFullscreen()},isElementSupportFullscreen:function(t){return!!t[i.requestFullscreen]||!!t.webkitEnterFullscreen},exitFullscreen:function(){var t=i.exitFullscreen;if(Ji[t])return Ji[t]();element.webkitExitFullscreen&&element.webkitExitFullscreen()},addEventListener:function(t,s,e){return Ji.addEventListener(i[t]||t,s,e)},removeEventListener:function(t,s,e){return Ji.removeEventListener(i[t]||t,s,e)}}}();function Ds(){var t,i=function(){this.$init.apply(this,arguments)},s=[i.prototype],e=0,n=null;for(Qi(arguments[0])&&((n=arguments[0]).childClasses||(n.childClasses=[]),n.childClasses.push(i),e=1,s.push(n.prototype)),t=arguments.length;e<t;++e)s.push(arguments[e]);return ji.apply(null,s),i.prototype.$init||(i.prototype.$init=Wi),i.prototype.constructor=i,i.parentClass=n,i.childClasses=[],i.extend=Ns,i}function Ns(t,i,s){t=t||{},arguments.length<2&&(i=!0),arguments.length<3&&(s=!1);var e,n,h,r=this.prototype,a={};for(e in t)void 0!==(n=t[e])&&(void 0===(h=r[e])?r[e]=n:i&&(a[e]=h,r[e]=n));var o,u,c,f,l=this.childClasses;for(o=0,u=l.length;o<u;++o){if(c=l[o],i&&!s){f={},r=c.prototype;for(e in a)r[e]===a[e]&&(f[e]=t[e]);c.extend(f,!0,!1)}c.extend(t,s,s)}return this}var Os=Ds({$init:function(){this.clear()},add:function(t){var i={n:null,p:this.Vi,d:t};this.Vi?this.Vi.n=i:(this.$i=i,this.Wi.front&&(this.Wi.n=i)),this.Vi=i,this.Wi.back&&(this.Wi.p=i)},ji:function(t,i,s){for(var e=this.$i;e;){if((i?t(e.d):e.d===t)&&(e.p?e.p.n=e.n:this.$i=e.n,e.n?e.n.p=e.p:this.Vi=e.p,this.Wi.n===e&&(this.Wi.n=e.n),this.Wi.p===e&&(this.Wi.p=e.p),!s))return;e=e.n}},remove:function(t,i){this.ji(t,!1,i)},removeIf:function(t,i){this.ji(t,!0,i)},empty:function(){return!this.$i},clear:function(){this.$i=this.Vi=null,this.toFront()},toFront:function(){this.Wi={n:this.$i,p:null,front:1}},toBack:function(){this.Wi={n:this.null,p:this.Vi,back:1}},next:function(){var t=this.Wi.n;return t?(this.Wi=t,t.d):(this.toBack(),null)},previous:function(){var t=this.Wi.p;return t?(this.Wi=t,t.d):(this.toFront(),null)},hasNext:function(){return!!this.Wi.n},hasPrevious:function(){return!!this.Wi.p}}),Ls={INITIAL:0,LOADING:1,LOADED:2,ERROR:3,TIMEOUT:4};function Fs(t){if(!t.type){var i=t.url.substr(t.url.lastIndexOf(".")+1).toLowerCase(),s=i.lastIndexOf("?");s>-1&&(i=i.substring(0,s)),"js"!==i&&"css"!==i&&(i="image"),t.type=i}t.node||(t.node="image"===t.type?new Image:Ji.createElement("js"===t.type?"script":"link"));var e,n,h,r,a=t.node,o=function(t){t||(a.removeEventListener("load",u,!1),a.removeEventListener("error",u,!1)),e&&clearTimeout(e)&&(e=null)},u=(n=o,h=t,r="load",function(t){n(!t),h.progress=1,t?t.type===r?(h.status=Ls.LOADED,h.onLoad&&h.onLoad()):(h.status=Ls.ERROR,rs("Error loading "+h.url+", event "+t.type+(h.node.error?", error "+h.node.error.code:"")),h.onError&&h.onError()):(h.status=Ls.TIMEOUT,rs("Timeout loading "+h.url),h.onTimeout&&h.onTimeout()),h.onComplete&&h.onComplete()});switch(a.addEventListener("load",u,!1),a.addEventListener("error",u,!1),isNaN(t.maxTime)||(e=setTimeout(u,1e3*t.maxTime)),t.cancel=function(){return"image"===this.type&&(o(!1),this.node.src="",!0)},t.progress=0,t.status=Ls.LOADING,t.type){case"js":a.type="text/javascript",a.src=t.url;break;case"css":a.rel="stylesheet",a.type="text/css",a.href=t.url;break;default:a.src=t.url}"image"!==t.type&&(Ji.head||Ji.getElementsByTagName("head")[0]||Ji.documentElement).insertBefore(a,null);return t}var Us=Ds({$init:function(t){this.started=!1,this.paused=!1,this.Qi=0,this.complete=!1,this.items=[],this.loadingItems=[],this.nextIdx=0,this.loadedCount=0,this.options=ji({maxConnections:8,maxItemTime:10,holdCompletion:!1},t);var i=!1;(t=this.options).items&&(i=!0,this.add(t.items),delete t.items),this.paused=!!t.paused||!i,this.paused||this.load()},add:function(t){if(t){this.complete&&this.clear(),Array.isArray(t)||(t=[t]);var i,s,e,n,h=this,r=function(){var t=h.loadingItems.indexOf(this);t>-1&&(h.loadingItems.splice(t,1),++h.loadedCount,h.Ki()),h.options.onItemComplete&&h.options.onItemComplete.call(h,this),h.paused||h.complete||h.load()};for(i=0,s=t.length;i<s;++i)(e=t[i])&&(e.url||(e={url:e}),n=ji({},e,{progress:0,status:Ls.INITIAL,onComplete:r}),this.items.push(n));this.paused||this.load()}},load:function(t){if(this.add(t),this.paused=!1,!this.started&&(this.started=!0,this.options.onStart&&this.options.onStart.call(this),this.Ki(),!isNaN(this.options.maxTime))){var i=this;this.timeoutId=setTimeout(function(){i.timeoutId=null,i.options.onTimeout&&i.options.onTimeout.call(this)},1e3*this.options.maxTime)}var s,e;for(s=this.nextIdx,e=this.items.length;s<e&&!(this.loadingItems.length>=this.options.maxConnections);++s)this.items[s].status===Ls.INITIAL?this.qi(s):s===this.nextIdx&&++this.nextIdx},pause:function(){var t,i;if(!this.paused)for(this.paused=!0,t=this.loadingItems.length-1;t>=0;--t)(i=this.loadingItems[t])&&i.cancel()&&(this.loadingItems.splice(t,1),i.status===Ls.LOADING&&(i.status=Ls.INITIAL,this.nextIdx=0))},clear:function(){var t=this.paused;this.pause(),this.paused=t,this.started=this.complete=!1,this.Qi=0,this.items.length=0,this.loadingItems.length=0,this.nextIdx=0,this.loadedCount=0},progress:function(){return this.Qi},holdCompletion:function(t){void 0===t&&(t=!0),this.options.holdCompletion!==t&&(this.options.holdCompletion=t,t||this.Ki())},Ki:function(){if(this.started&&!this.complete&&!this.paused){var t=0;if(this.items.length){var i,s;for(t=this.loadedCount,i=0,s=this.loadingItems.length;i<s;++i)t+=this.loadingItems[i].progress;t/=this.items.length}else t=1;t===this.Qi&&0!==t||this.options.holdCompletion&&this.loadedCount===this.items.length||(this.Qi=t,this.options.onProgress&&this.options.onProgress.call(this,t)),this.options.holdCompletion||this.loadedCount!==this.items.length||(this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),this.complete=!0,this.options.onComplete&&this.options.onComplete.call(this))}},qi:function(t){var i=this.items[t];i&&(i.maxTime=this.options.maxItemTime,this.loadingItems.push(i),this.options.onItemStart&&this.options.onItemStart.call(this,i),Fs(i))}});ji(ns,{touch:"ontouchend"in Ji,pointer:!!window.PointerEvent,msPointer:!!window.MSPointerEvent});var Ys,Hs="mousedown",Bs="mouseup",zs="mousemove",Xs={NONE:0,LEFT:1,RIGHT:2,UP:4,DOWN:8,HORIZONTAL:3,VERTICAL:12,ALL:15};function Gs(t,i){return Oi(t)>=Oi(i)?t<0?Xs.LEFT:Xs.RIGHT:i<0?Xs.UP:Xs.DOWN}function Vs(t){var i=window.pageXOffset,s=window.pageYOffset,e=t.clientX,n=t.clientY;return 0===t.pageY&&Vi(n)>Vi(t.pageY)||0===t.pageX&&Vi(e)>Vi(t.pageX)?(e-=i,n-=s):(n<t.pageY-s||e<t.pageX-i)&&(e=t.pageX-i,n=t.pageY-s),{x:e,y:n}}function $s(t,i){return arguments.length>1&&(t.apHandled=i,t.originalEvent&&(t.originalEvent.apHandled=i)),t.apHandled||t.originalEvent&&t.originalEvent.apHandled}ns.pointer?(Hs="pointerdown",Bs="pointerup",zs="pointermove",Ys="pointercancel"):ns.touch?(Hs="touchstart",Bs="touchend",zs="touchmove",Ys="touchcancel"):ns.msPointer&&(Hs="MSPointerDown",Bs="MSPointerUp",zs="MSPointerMove",Ys="MSPointerCancel"),ji(t.event.special,{"ap-click":{setup:function(){var i=this;this.Ji=function(s){var e=t(this).data();i.filterEvent(s)||isNaN(e.apSglClickX)||isNaN(e.apSglClickY)||Oi(s.pageX-e.apSglClickX)>se.ClickMaxDistance||Oi(s.pageY-e.apSglClickY)>se.ClickMaxDistance?i.Zi.call(this,s):(i.Zi.call(this,s),Ks.fire("ap-click",i,s,!1))},this.Zi=function(s){t(i.node).off("mouseup",i.Ji).removeData("apSglClickX apSglClickY"),t(Ji).off("mouseup",i.Zi)},t(this.node).on("mousedown.apSglClick",function(s){if(!i.filterEvent(s)){var e=t(this).data();e.apSglClickX=s.pageX,e.apSglClickY=s.pageY,$s(s,!0),t(this).off("mouseup",i.Ji).on("mouseup",i.Ji),t(Ji).off("mouseup",i.Zi).on("mouseup",i.Zi)}})},teardown:function(){t(this.node).off(".apSglClick").removeData("apSglClickX apSglClickY"),this.Ji&&(t(this.node).off("mouseup",this.Ji),delete this.Ji),this.Zi&&(t(Ji).off("mouseup",this.Zi),delete this.Zi)}},"ap-dblclick":{setup:function(){var i=this;this.ss=function(s){var e=t(this).data();if(i.filterEvent(s)||isNaN(e.apDblClickX)||isNaN(e.apDblClickY)||Oi(s.pageX-e.apDblClickX)>se.ClickMaxDistance||Oi(s.pageY-e.apDblClickY)>se.ClickMaxDistance)i.es.call(this,s);else if(t(this).off("mouseup",i.ss).removeData("apDblClickX apDblClickY"),t(Ji).off("mouseup",i.es),e.apDblClickTrue)t(this).removeData("apDblClickTrue"),Ks.fire("ap-dblclick",i,s,!0);else{var n=qi()-(e.apDblClickStart||0);n>se.DoubleClickMaxTime?(e.apDblClickTimer?(clearTimeout(e.apDblClickTimer),t(this).removeData("apDblClickStart apDblClickTimer"),Ks.fire("ap-dblclick",i,s,!1)):t(this).removeData("apDblClickStart apDblClickTimer"),Ks.fire("ap-dblclick",i,s,!1)):e.apDblClickTimer=setTimeout(function(){t(i.node).removeData("apDblClickStart apDblClickTimer"),Ks.fire("ap-dblclick",i,s,!1)},se.DoubleClickMaxTime-n)}},this.es=function(s){t(i.node).off("mouseup",i.ss).removeData("apDblClickX apDblClickY apDblClickStart apDblClickTrue"),t(Ji).off("mouseup",i.es)},t(this.node).on("mousedown.apDblClick",function(s){if(!i.filterEvent(s)){var e=t(this).data(),n=qi();e.apDblClickX=s.pageX,e.apDblClickY=s.pageY,isNaN(e.apDblClickStart)?e.apDblClickStart=n:(e.apDblClickTrue=n-e.apDblClickStart<=se.DoubleClickMaxTime,e.apDblClickTrue?(e.apDblClickTimer&&clearTimeout(e.apDblClickTimer),t(this).removeData("apDblClickStart apDblClickTimer")):(e.apDblClickTimer&&(clearTimeout(e.apDblClickTimer),t(this).removeData("apDblClickTimer"),Ks.fire("ap-dblclick",i,s,!1)),e.apDblClickStart=n)),$s(s,!0),t(this).off("mouseup",i.ss).on("mouseup",i.ss),t(Ji).off("mouseup",i.es).on("mouseup",i.es)}})},teardown:function(){t(this.node).off(".apDblClick").removeData("apDblClickX apDblClickY apDblClickStart apDblClickTimer apDblClickTrue"),this.ss&&(t(this.node).off("mouseup",this.ss),delete this.ss),this.es&&(t(Ji).off("mouseup",this.es),delete this.es)}},"ap-rollover":{setup:function(){if(!se.browser.mobile){var i=this;t(this.node).on("mouseover.apRollover",function(s){!i.filterEvent(s)&&i.ns(!1,!0)&&t(i).triggerHandler(t.Event("ap-rollover",{originalEvent:s.originalEvent||s}))})}},teardown:function(){t(this.node).off(".apRollover")}},"ap-rollout":{setup:function(){if(!se.browser.mobile){var i=this;t(this.node).on("mouseout.apRollout",function(s){!i.filterEvent(s)&&i.ns(!1,!0)&&t(i).triggerHandler(t.Event("ap-rollout",{originalEvent:s.originalEvent||s}))})}},teardown:function(){t(this.node).off(".apRollout")}},"ap-swipe":{processing:!1,setup:function(){var i=this;t(this.node).on("mousedown.apSwipe",function(t){i.filterEvent(t)||$s(t,!0)}).on("dragstart.apSwipe",function(t){return!1}).on(Hs+".apSwipe",function(s){var e=s.originalEvent;if(!(i.filterEvent(s)||t.event.special["ap-swipe"].processing||e.touches&&e.touches.length>1)){t.event.special["ap-swipe"].processing=!0;var n,h={time:qi(),pos:e.targetTouches?Vs(e.targetTouches[0]):{x:e.clientX,y:e.clientY}},r={time:h.time,pos:h.pos},a=t(this).data("apSwipeDir")||Xs.ALL,o=function(t){e=t.originalEvent,r={time:qi(),pos:e.targetTouches?Vs(e.targetTouches[0]):{x:e.clientX,y:e.clientY}},(n=Gs(r.pos.x-h.pos.x,r.pos.y-h.pos.y))&a&&t.preventDefault()},u=function(s){c.call(this,s),e=s.originalEvent,r.time=qi();var a=r.pos.x-h.pos.x,o=r.pos.y-h.pos.y;((n=Gs(a,o))&Xs.HORIZONTAL&&Oi(a)>se.SwipeMinDistance&&Oi(o)<se.SwipeMaxDeflection||n&Xs.VERTICAL&&Oi(o)>se.SwipeMinDistance&&Oi(a)<se.SwipeMaxDeflection)&&Li(a*a+o*o)/(r.time-h.time)>se.SwipeMinVelocity&&i.ns(!1,!0)&&(t(i).triggerHandler(t.Event("ap-swipe",{value:{direction:n,start:h,stop:r},originalEvent:e})),t(i).triggerHandler(t.Event(function(t,i){switch(i=i||"",t){case Xs.LEFT:return i+"left";case Xs.RIGHT:return i+"right";case Xs.UP:return i+"up";case Xs.DOWN:return i+"down"}}(n,"ap-swipe"),{value:{direction:n,start:h,stop:r},originalEvent:e})))},c=function(i){t.event.special["ap-swipe"].processing=!1,t(Ji).off(zs+".apSwipe",o).off(Bs+".apSwipe",u),Ys&&t(Ji).off(Ys+".apSwipe",c)};t(Ji).on(zs+".apSwipe",o).on(Bs+".apSwipe",u),Ys&&t(Ji).on(Ys+".apSwipe",c)}}).css("touchAction","none")},teardown:function(){t(this.node).off(".apSwipe").css("touchAction","")}},"ap-swipeleft":{setup:function(){var i=t(this.node).data();i.apSwipeDir=(i.apSwipeDir||0)|Xs.LEFT,this.on("ap-swipe",Wi)},teardown:function(){var i=t(this.node).data();i.apSwipeDir&&(i.apSwipeDir&=~Xs.LEFT),0===i.apSwipeDir&&t(this.node).removeData("apSwipeDir"),this.off("ap-swipe",Wi)}},"ap-swiperight":{setup:function(){var i=t(this.node).data();i.apSwipeDir=(i.apSwipeDir||0)|Xs.RIGHT,this.on("ap-swipe",Wi)},teardown:function(){var i=t(this.node).data();i.apSwipeDir&&(i.apSwipeDir&=~Xs.RIGHT),0===i.apSwipeDir&&t(this.node).removeData("apSwipeDir"),this.off("ap-swipe",Wi)}},"ap-swipeup":{setup:function(){var i=t(this.node).data();i.apSwipeDir=(i.apSwipeDir||0)|Xs.UP,this.on("ap-swipe",Wi)},teardown:function(){var i=t(this.node).data();i.apSwipeDir&&(i.apSwipeDir&=~Xs.UP),0===i.apSwipeDir&&t(this.node).removeData("apSwipeDir"),this.off("ap-swipe",Wi)}},"ap-swipedown":{setup:function(){var i=t(this.node).data();i.apSwipeDir=(i.apSwipeDir||0)|Xs.DOWN,this.on("ap-swipe",Wi)},teardown:function(){var i=t(this.node).data();i.apSwipeDir&&(i.apSwipeDir&=~Xs.DOWN),0===i.apSwipeDir&&t(this.node).removeData("apSwipeDir"),this.off("ap-swipe",Wi)}}});var Ws={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",19:"Pause/Break",20:"Caps Lock",27:"Esc",32:"Space",33:"Page Up",34:"Page Down",35:"End",36:"Home",37:"Left Arrow",38:"Up Arrow",39:"Right Arrow",40:"Down Arrow",44:"Print Screen",45:"Insert",46:"Delete",91:"Left Windows",92:"Right Windows",93:"Windows Menu",106:"Numpad *",107:"Numpad +",108:"Separator",173:"-",110:"Numpad .",111:"Numpad /",144:"Num Lock",145:"Scroll Lock",59:";",61:"=",188:",",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},js={combinedCode:function(t,i,s,e,n){var h=0;return i&&(h|=Qs.MOD_CTRL),s&&(h|=Qs.MOD_SHIFT),e&&(h|=Qs.MOD_ALT),n&&(h|=Qs.MODE_META),h<<24|t},code:function(t){return 16777215&t},modifiers:function(t){return t>>24},modName:function(t){var i="";return t&Qs.MOD_CTRL&&(i+="+Ctrl"),t&Qs.MOD_SHIFT&&(i+="+Shift"),t&Qs.MOD_ALT&&(i+="+Alt"),t&Qs.MODE_META&&(i+=se.browser.macOS?"+⌘":"+Win"),i.substr(1)},isMouse:function(t){var i=js.code(t);return i>0&&i<=Ks.MAX_CODE},name:function(t,i){return js.isMouse(t)?Ks.name(t,i):Qs.name(t,i)}},Qs={MOD_ALT:1,MOD_CTRL:2,MOD_SHIFT:4,MODE_META:8,SHIFT:16,CTRL:17,ALT:18,F1:112,F12:123,F4:115,F5:116,PRTSCR:44,CANCEL:3,PAUSE:19,TAB:9,BACKSPACE:8,NUMBER0:48,NUMBER9:57,A:65,Z:90,W:87,NUMPAD0:96,NUMPAD9:105,ENTER:13,SPACE:32,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT_TAB:4<<24|9,combinedCode:function(t){var i=t.which,s=t.ctrlKey,e=t.shiftKey,n=t.altKey,h=t.metaKey;switch(i){case Qs.CTRL:s=!0,i=0;break;case Qs.SHIFT:e=!0,i=0;break;case Qs.ALT:n=!0,i=0;break;case 224:case 93:if(!se.browser.macOS)break;case 92:case 91:h=!0,i=0;break;case Qs.CANCEL:i=Qs.PAUSE;break;case 186:i=59;break;case 171:case 187:i=61;break;case 189:i=173}return js.combinedCode(i,s,e,n,h)},name:function(t){var i=js.modName(js.modifiers(t)),s=js.code(t),e="";return Qs.NUMBER0<=s&&s<=Qs.NUMBER9||Qs.A<=s&&s<=Qs.Z?e=String.fromCharCode(s):Qs.NUMPAD0<=s&&s<=Qs.NUMPAD9?e="Numpad "+(s-Qs.NUMPAD0):Qs.F1<=s&&s<=Qs.F12?e="F"+(s-Qs.F1+1):s&&(e=Ws[s]||""+s),i&&(e=e?i+"+"+e:i),e},hasKeydown:function(t){return t!==this.PRTSCR},shouldPreventDefault:function(t,i,s){if(s&&!i)return t!=Qs.TAB&&t!=Qs.SHIFT_TAB;var e=js.modifiers(t),n=js.code(t);return n==Qs.F5||n==Qs.F4||n==Qs.BACKSPACE&&!i||e&Qs.MOD_CTRL&&n==Qs.W||e&Qs.MOD_ALT&&(n==Qs.HOME||n==Qs.LEFT||n==Qs.RIGHT)},shouldIgnoreIncorrect:function(t){return 0==js.code(t)||t==Qs.TAB||t==Qs.SHIFT_TAB},preventDefault:function(t){t.preventDefault();try{t.originalEvent?t.originalEvent.keyCode=0:t.keyCode=0}catch(t){}}},Ks={LEFT:1,MIDDLE:2,RIGHT:3,DBLEFT:4,OUTSIDE:5,MAX_CODE:5,fromTouch:!1,combinedCode:function(t,i){var s=t.which;return i&&(s=Ks.DBLEFT),js.combinedCode(s,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)},name:function(t,i){var s=js.modName(js.modifiers(t)),e=js.code(t),n="";switch(i=i||ne,e){case Ks.LEFT:n=i.text("LeftClick");break;case Ks.MIDDLE:n=i.text("MiddleClick");break;case Ks.RIGHT:n=i.text("RightClick");break;case Ks.DBLEFT:n=i.text("LeftDClick");break;case Ks.OUTSIDE:n=i.text("ClickOutside");break;default:n=""+e}return s&&(n=n?s+"+"+n:s),n},fire:function(i,s,e,n){s.ns(!1,!0)&&t(s).triggerHandler(t.Event(i,{value:Ks.combinedCode(e,n),originalEvent:e.originalEvent||e}))}};if("mousedown"!==Hs){var qs=function(t){"mouse"!==t.pointerType&&4!==t.pointerType&&(Ks.fromTouch=!0),Ji.removeEventListener(Hs,qs,!0)};Ji.addEventListener(Hs,qs,!0)}function Js(t,s,e,n){if(function(t,i,s){var e,n,h,r,a,o,u=!1;if(!t||!t.length)return!0;for(e=0,n=t.length;e<n;++e){var c=(h=t[e])[3];if(h[0]||0===e){if(u)break;u=!0}if(u){switch(r=c[1],a=c[0],o=!1,h[1]){case kt.gt:r=i.vars.get(r),c[2]?a=i.vars.get(a):i.vars.os(c[1])==wi.NUMBER&&(a=Number(a));break;case kt._t:(r=s.currentTarget&&s.currentTarget.slide&&s.currentTarget.slide.object(r))?a==Mi?(a=c[2],r=r.us.name()):r=r.us.id():(rs("Object not found: "+c[1]),r=a=0);break;case kt.kt:s.currentTarget&&s.currentTarget.attempts?(r=s.currentTarget.attempts(),a===Ci&&(a=s.currentTarget.maxAttempts())):r=0;break;case kt.P:r=s.value&&s.value.id&&s.value.id();break;case kt.Tt:(r=s.currentTarget&&s.currentTarget.slide&&s.currentTarget.slide.object(r))?r=r.checked():(rs("Object not found: "+c[1]),r=a=0);break;case kt.xt:o=a;break;case kt.j:r=typeof a===Ri?Qs.name(s.value):s.value;break;default:r=s.value}switch(h[2]){case yt.St:o=r<a;break;case yt.Et:o=r>a;break;case yt.Mt:o=i.vars.os(c[1])==wi.NUMBER?os(r,a):r==a;break;case yt.Ct:o=r.toLowerCase&&a.toLowerCase&&r.toLowerCase()===a.toLowerCase();break;case yt.It:o=i.vars.os(c[1])==wi.NUMBER?!os(r,a):r!=a;break;case yt.Pt:o=r.toLowerCase&&a.toLowerCase&&r.toLowerCase()!==a.toLowerCase();break;case yt.Rt:o=r<=a;break;case yt.At:o=r>=a}u=u&&o}}return u}(t[2],s,e)){var h=t[0],r=t[1];switch(h){case Rt.Yt:s.pause(!0);break;case Rt.Ht:e.currentTarget&&e.currentTarget.cs&&e.currentTarget.cs(!1),s.pause(!1);break;case Rt.Bt:s.end();break;case Rt.ki:s.restart();break;case Rt.zt:s.showSlideById(r);break;case Rt.Xt:typeof(a=r)===Ri&&(a=s.variable(a)),s.showSlide(a);break;case Rt.Gt:typeof(a=r)===Ri&&(a=s.variable(a)-1),s.showSlide(s.slideIndex+a);break;case Rt.Vt:var a;typeof(a=r)===Ri&&(a=s.variable(a)),s.showSlide(s.slideIndex-a);break;case Rt.$t:try{var o=r;typeof o!==Ri&&(o=s.variable(o[1])),(u=window.open("mailto:"+encodeURIComponent(o),"_blank"))&&(u.focus(),setTimeout(function(){!u||u.document.hasFocus&&u.document.hasFocus()||u.close()},1e3))}catch(t){rs(t)}break;case Rt.Wt:try{var u,c=r[0],f=r[1];typeof c!==Ri&&(c=s.variable(r[1]),f=r[2]),(u=window.open(c,f))?u.focus():rs('Cannot open webpage "'+c+'" in window "'+f+'"')}catch(t){rs(t)}break;case Rt.jt:var l=s.fs(r);try{l&&l.call(e.currentTarget,e,s)}catch(t){rs(t)}break;case Rt.Qt:case Rt.Kt:case Rt.ri:case Rt.si:case Rt.ci:case Rt.ii:if(e.currentTarget&&e.currentTarget.slide){var d,p,v,m=r[0];if(typeof m===Ri&&(m=s.variable(m)),w=-2===m?e.value:e.currentTarget.slide.object(m)){if(_=w.ls(function(t){return t.actionData===r}))_.remove(),_.started()&&_.totalTime()<_.totalDuration()&&_.pause(_.totalDuration());else{for((_=new ah).actionData=r,w.ds(_),v=1;v<r.length;++v)(p=r[v])&&(d=se.createEffect(w,p[0],p[1],p[2],p[3]))&&_.addChild(d);_.addChild(new sh(function(){setTimeout(function(){w.ps(_)},0),(h===Rt.Qt||h===Rt.ri||h===Rt.ci)&&n&&n()},{startTime:_.duration(),duration:0}))}if(_.startTime(s.timeline.totalTime()),s.timeline.addChild(_),_.setup(),_.play(0),h===Rt.Qt||h===Rt.ri||h===Rt.ci)return}}break;case Rt.qt:if(s.ended)break;if(typeof r!==Ri&&(!r||r<=0))s.submit();else if(typeof(R=r)===Ri&&(R=s.variable(R)),e.currentTarget&&e.currentTarget.slide)(w=e.currentTarget.slide.object(R))&&w.ns(!0,!0)&&w.submit();break;case Rt.Jt:if(s.ended)break;if(typeof r!==Ri&&(!r||r<=0))s.clear(!0);else if(typeof(R=r)===Ri&&(R=s.variable(R)),e.currentTarget&&e.currentTarget.slide)(w=e.currentTarget.slide.object(R))&&w.ns(!0,!0)&&w.clear(!0);break;case Rt.oi:case Rt.Zt:var b=r[1]<5e3&&h==Rt.Zt;if(s.vs(r[0],r[1],r,b,h==Rt.oi?n:null),h==Rt.oi)return;break;case Rt._t:var w=e.currentTarget&&e.currentTarget.slide&&e.currentTarget.slide.object(r[0]),g=r[1];g==Mi?w&&w.state(r[2]):w&&w.state(g);break;case Rt.fi:typeof(k=r)===Ri&&(k=s.variable(k));var _=s.slide&&s.slide.timeline(k);return e.currentTarget&&e.currentTarget.slide&&s.ms(e.currentTarget.slide)&&(_=e.currentTarget.slide.timeline(k)),void s.startTimeline(_,n);case Rt.ei:typeof(k=r)===Ri&&(k=s.variable(k));_=s.slide&&s.slide.timeline(k);e.currentTarget&&e.currentTarget.slide&&s.ms(e.currentTarget.slide)&&(_=e.currentTarget.slide.timeline(k)),s.startTimeline(_);break;case Rt.ni:typeof(k=r)===Ri&&(k=s.variable(k));_=s.slide&&s.slide.timeline(k);e.currentTarget&&e.currentTarget.slide&&s.ms(e.currentTarget.slide)&&(_=e.currentTarget.slide.timeline(k)),s.pauseTimeline(_,!0);break;case Rt.hi:var k;typeof(k=r)===Ri&&(k=s.variable(k));_=s.slide&&s.slide.timeline(k);e.currentTarget&&e.currentTarget.slide&&s.ms(e.currentTarget.slide)&&(_=e.currentTarget.slide.timeline(k)),s.pauseTimeline(_,!1);break;case Rt.gt:var y=r[1],T=r[2];r[3]?T=s.vars.get(T):s.vars.os(y)==wi.NUMBER&&(T=Number(T));var x=!0;switch(r[0]){case Tt.Dt:s.vars.set(y,s.vars.get(y)+T);break;case Tt.Nt:s.vars.set(y,s.vars.get(y)-T);break;case Tt.Ot:s.vars.set(y,s.vars.get(y)*T);break;case Tt.Lt:s.vars.set(y,s.vars.get(y)/T);break;case Tt.Ft:s.vars.set(y,T);break;case Tt.Tt:s.vars.set(y,!s.vars.get(y));break;case Tt.Ut:var S=r[4];void 0===S&&(S="");var E=s.vars.get(y)||"";E?E+=S+T:E=T,s.vars.set(y,E);break;default:x=!1}x&&s.vars.bs(y)&&(s.ws.vars[y]=s.variable(y),s.lms&&s.lms.storeSuspendData(s.ws,!0));break;case Rt.li:if(typeof(M=r[0])!==Ri?(M=s.variable(r[1]),s.showFeedbackByName(M,r[2],r[3]?n:null)):s.showFeedbackById(M,r[1],r[2]?n:null),r[2])return;break;case Rt.di:var M;typeof(M=r)!==Ri?(M=s.variable(r[1]),s.hideFeedbackByName(M)):s.hideFeedbackById(M);break;case Rt.pi:s.reviewCourse();break;case Rt.bi:var C=r[0];typeof C===Ri&&(C=s.variable(C));var I=C,P={showCorrect:r[1],showIncorrect:r[2],showValues:r[3],showResult:r[4]};if(I<=0)s.slide&&s.slide.gs(P),s.bottomSlide&&s.bottomSlide.gs(P),s.topSlide&&s.topSlide.gs(P);else if(e.currentTarget&&e.currentTarget.slide)(w=e.currentTarget.slide.object(I))&&w.gs&&w.gs(P);break;case Rt.wi:case Rt.gi:case Rt._i:if(s.ended)break;var R;if(e.currentTarget&&e.currentTarget.slide)typeof(R=r)===Ri&&(R=s.variable(R)),(w=e.currentTarget.slide.object(R))&&w.enabled()&&w._s.k==i.U&&(h==Rt.wi?w.startTimer():h==Rt.gi?w.pauseTimer():h==Rt._i&&w.stopTimer());break;case Rt.vi:var A=-1,D=r,N=D.length,O=function(){++A<N&&Js(D[A],s,e,A===N-1?n:O)};return void O()}n&&n()}else n&&n()}var Zs=0;function te(){return++Zs}function ie(t,i){t=(""+t).split("."),i=(""+i).split(".");var s,e,n,h=Ui(t.length,i.length);for(s=0;s<h;++s)if((e=parseInt(t[s]))!==(n=parseInt(i[s])))return e-n;return 0}var se={version:function(){return"8.0.6"},minPrezVersion:"8.0.0",presentations:[],loadedPrezs:[],unsupportedBrowser:!1,youtubeAPIState:Kt,mathJaxAPIState:Kt,messages:{},defaultLang:null,compatible:function(t){return ie(this.version(),t.mpv)>=0&&ie(t.v,this.minPrezVersion)>=0},open:function(i,s,e){return e=e||{},this.unsupportedBrowser?(t(function(){}),null):new ge(i,s,e)},close:function(t){t&&t.destroy()},find:function(t){var i,s,e,n,h=this.presentations;if(typeof t===Ri&&(n=t,t=Ji.getElementById(n)),!n&&!t)return null;for(i=0,s=h.length;i<s;++i)if(e=h[i],n&&e.containerId===n||t&&e.container===t)return e;return null},addTranslation:function(t,i,s){this.messages[i]=t,(s||null===this.defaultLang)&&(this.defaultLang=i)},tick:function(t){var i,s,e=this.presentations;for(i=0,s=e.length;i<s;++i)e[i].tick(t)},loadYouTubeIframeAPI:function(){if(this.youtubeAPIState==Kt){this.youtubeAPIState=qt;var t,i=Ji.createElement("script"),s=this;i.src="https://www.youtube.com/iframe_api",(t=Ji.getElementsByTagName("script")[0]).parentNode.insertBefore(i,t),setTimeout(function(){var t,i;if(s.youtubeAPIState==qt)for(s.youtubeAPIState=Zt,t=0,i=s.presentations.length;t<i;++t)s.presentations[t].ks()},3e4)}},onYouTubeIframeAPIReady:function(){var t,i;if(this.youtubeAPIState==qt)for(this.youtubeAPIState=Jt,t=0,i=this.presentations.length;t<i;++t)this.presentations[t].ks()},loadMathJaxAPI:function(t){if(this.mathJaxAPIState==Kt){this.mathJaxAPIState=qt;var i,s=Ji.getElementsByTagName("head")[0];(i=Ji.createElement("script")).type="text/x-mathjax-config",i[window.opera?"innerHTML":"text"]='MathJax.Hub.Config({ showProcessingMessages: false, showMathMenu: false, showMathMenuMSIE: true, skipStartupTypeset: true, messageStyle: "none" });MathJax.Hub.Register.StartupHook("End", function () { AtomiAP.onMathJaxAPIReady(); });',s.appendChild(i),window.apMathJaxFontDir=t.length>0&&"/"==t.charAt(t.length-1)?t.substring(0,t.length-1):t,(i=Ji.createElement("script")).type="text/javascript",i.src=t+"MathJax.js",s.appendChild(i)}},onMathJaxAPIReady:function(){var t,i;if(this.mathJaxAPIState==qt)for(this.mathJaxAPIState=Jt,t=0,i=this.presentations.length;t<i;++t)this.presentations[t].ks()},pageVisible:function(){return!Is||!Ji[Is]},onPageVisibilityChanged:function(){var t,i,s,e;if(this.pageVisible()){if(t=this.ys){for(s=0,e=t.length;s<e;++s)(i=t[s]).allPaused()&&i.pauseAll(!1);t.length=0}}else for(this.ys||(this.ys=[]),s=0,e=(t=this.presentations).length;s<e;++s)(i=t[s]).allPaused()||(i.pauseAll(!0),this.ys.push(i))},Ts:function(t){t.allPaused()||(t.pauseAll(!0),this.ys||(this.ys=[]),this.ys.push(t))},fullscreen:As};se.browser={init:function(){this.initiated||(this.initiated=!0,this.ie=!!Ji.documentMode,this.edge=!this.ie&&!!window.StyleMedia,this.safari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),this.iDevice=!!navigator.userAgent.match(/iPhone|iPad|iPod/i),this.iPhone=!!navigator.userAgent.match(/iPhone/i),this.android=!!navigator.userAgent.match(/Android/i),this.mobile=this.iDevice||this.android,this.chrome=!!window.chrome&&!!window.chrome.webstore,this.macOS=navigator.platform.indexOf("Mac")>=0,this.useCSSShadow=!this.edge&&!this.ie)}},se.browser.init(),t(window).resize(function(){var t,i;for(t=0,i=se.presentations.length;t<i;++t)se.presentations[t].layout()}),t(window).bind(se.browser.iDevice?"pagehide":"beforeunload unload",function(){for(var t=se.presentations;t.length>0;)se.close(t[0])}),t(Ji).on("keydown keyup",function(t){var i,s;for(i=0,s=se.presentations.length;i<s;++i)se.presentations[i].xs(t)}),Is&&t(Ji).on(Is.replace(/[H|h]idden/,"")+"visibilitychange",function(){se.onPageVisibilityChanged()});var ee=Ds({$init:function(t){this.Ss=arguments.length?t:null},text:function(t){var i,s,e,n=se.messages[this.Ss],h=arguments.length;if(e=n&&n[t]||(n=se.messages[se.defaultLang])&&n[t]||t,h>1)for(i=1;i<h;++i)s=new RegExp("\\{"+(i-1)+"\\}","g"),e=e.replace(s,arguments[i]);return e},number:function(t){var i,s=null===this.Ss?se.defaultLang:this.Ss,e=""+t;return"ar"!==s&&"ar"!==s.substr(0,2)||(i="۰ ۱ ۲ ۳ ۴ ۵ ۶ ۷ ۸ ۹".split(" "),e=e.replace(/[0-9]/g,function(t){return i[t]})),e}}),ne=new ee;function he(t){return("0"+t).slice(-2)}function re(t){return("0"+(i=t,i+1)).slice(-2);var i}function ae(t){return t.toString().slice(-2)}var oe=/%[^\s%]+%/g,ue=Ds({$init:function(t){this.Es=t,this.Ms={apVersion:{get:function(t){return t.version()}},apAuthor:{get:function(t){return cs(t.author())}},apHomepage:{get:function(t){return cs(t.homePage())}},apCopyright:{get:function(t){return cs(t.copyright())}},apProjectName:{get:function(t){return cs(t.name())}},apDescription:{get:function(t){return cs(t.description(),!0)}},apPlayMode:{get:function(t){return cs(t.ui.Cs.text(t.playMode()))}},apCurrentSlideLabel:{get:function(t){return t.currentSlideLabel()}},apElapsedTime:{get:function(t){return ps(t.elapsedTime())}},apElapsedTimeMs:{get:function(t){return t.elapsedTime()}},apRemainingTime:{get:function(t){var i=t.remainingTime();return i%1e3>0&&(i+=1e3),ps(i)}},apRemainingTimeMs:{get:function(t){return t.remainingTime()}},apTotalSlides:{get:function(t){return t.slideCount()}},apTakenSlides:{get:function(t){return t.takenSlideCount()}},apReviewMode:{get:function(t){return t.isReviewingMode()}},apQuizScore:{get:function(t){return t.score()}},apQuizScorePercentage:{get:function(t){return t.percentageScore()}},apQuizMaxScore:{get:function(t){return t.maxScore()}},apQuizPassed:{get:function(t){return cs(t.ui.Cs.text(t.result()?"passed":"failed"))}},apQuizPassedBool:{get:function(t){return t.result()}},apQuizTotalInteractions:{get:function(t){return t.interactionCount()}},apQuizTakenInteractions:{get:function(t){return t.takenInteractionCount()}},apQuizUnTakenInteractions:{get:function(t){return t.interactionCount()-t.takenInteractionCount()}},apQuizCorrectInteractions:{get:function(t){return t.takenInteractionCount(At.xi)}},apQuizIncorrectInteractions:{get:function(t){return t.takenInteractionCount(At.Si)}},apDetailedResult:{get:function(t){return t.detailedReportData(!1)}},apDetailedResult2:{get:function(t){return t.detailedReportData(!0)}},apCurrentTime:{get:function(t){var i=new Date,s=i.getHours(),e=i.getMinutes(),n=i.getSeconds();return this.nextUpdate=i.setSeconds(n+1,0),s<10&&(s="0"+s),e<10&&(e="0"+e),n<10&&(n="0"+n),s+":"+e+":"+n}},apCurrentDay:{get:function(t){var i=new Date,s=i.getDay()+1;return this.nextUpdate=i.setHours(24,0,0,0),s}},apCurrentHour:{get:function(t){var i=new Date,s=i.getHours();return this.nextUpdate=i.setHours(s+1,0,0,0),(s<10?"0":"")+s}},apCurrentMinutes:{get:function(t){var i=new Date,s=i.getMinutes();return this.nextUpdate=i.setMinutes(s+1,0,0),(s<10?"0":"")+s}},apCurrentMonth:{get:function(t){var i=(new Date).getMonth()+1;return(i<10?"0":"")+i}},apCurrentYear:{get:function(t){return("0000"+(new Date).getFullYear()).slice(-4)}},apCurrentLocaleDate:{get:function(t){return(new Date).toLocaleDateString()}},apProjectLocaleDate:{get:function(t){return(new Date).toLocaleDateString(t._s.language)}},apDateMMDDYYYY:{get:function(t){var i=new Date;return re(i.getMonth())+"/"+he(i.getDate())+"/"+i.getFullYear()}},apDateMMDDYY:{get:function(t){var i=new Date;return re(i.getMonth())+"/"+he(i.getDate())+"/"+ae(i.getFullYear())}},apDateDDMMYYYY:{get:function(t){var i=new Date;return he(i.getDate())+"/"+re(i.getMonth())+"/"+i.getFullYear()}},apDateDDMMYY:{get:function(t){var i=new Date;return he(i.getDate())+"/"+re(i.getMonth())+"/"+ae(i.getFullYear())}},apDateYYYYMMDD:{get:function(t){var i=new Date;return i.getFullYear()+"/"+re(i.getMonth())+"/"+he(i.getDate())}},apDateYYMMDD:{get:function(t){var i=new Date;return ae(i.getFullYear())+"/"+re(i.getMonth())+"/"+he(i.getDate())}},apCurrentSlideIndex:{get:function(t){return t.currentSlideIndex()},set:function(t,i){return t.currentSlideIndex(i),!0},type:wi.NUMBER},apPause:{get:function(t){return t.paused()},set:function(t,i){if(i=!!i,t.paused()!==i)return t.pause(i),!0}},apResume:{get:function(t){return!t.paused()},set:function(t,i){var s=!i;if(t.paused()!==s)return t.pause(s),!0}},apProgress:{get:function(t){return t.time()},set:function(t,i){t.time(i)},type:wi.NUMBER},apSpeed:{get:function(t){return Gi(100*t.speed())},set:function(t,i){t.speed(i/100)},type:wi.NUMBER},apMute:{get:function(t){return t.muted()},set:function(t,i){t.muted(i)}},apVolume:{get:function(t){return Gi(100*t.volume())},set:function(t,i){t.volume(i/100)},type:wi.NUMBER},apCCVisible:{get:function(t){return t.closedCaptionVisible()},set:function(t,i){t.showClosedCaption(i)}},apToolbarVisible:{get:function(t){return t.toolbarVisible()},set:function(t,i){t.showToolbar(i)}},apTOCVisible:{get:function(t){return t.tocVisible()},set:function(t,i){t.showToc(i)}},apCmdNextSlide:{set:function(t,i){i&&t.nextSlide()}},apCmdPreviousSlide:{set:function(t,i){i&&t.previousSlide()}},apCmdFirstSlide:{set:function(t,i){i&&t.firstSlide()}},apCmdLastSlide:{set:function(t,i){i&&t.lastSlide()}},apCmdHistoryBack:{set:function(t,i){i&&t.historyBack()}},apCmdHistoryForward:{set:function(t,i){i&&t.historyForward()}},apCmdEnd:{set:function(t,i){i&&t.end()}},apCmdRestart:{set:function(t,i){i&&t.restart()}},apCmdShowAbout:{set:function(t,i){i&&t.showAbout()}},apSidebarVisible:{get:function(t){return t.sidebarVisible()},set:function(t,i){t.showSidebar(i)}}},this.Is="apCurrentTime apCurrentDay apCurrentHour apCurrentMinutes".split(" ")},get:function(t){var i=this.Ms[t];if(i)return i.get?i.get(this.Es):i.val},set:function(t,i){var s=this.Ms[t],e=!1;return s||(s=this.Ms[t]={}),!(s.get&&!s.set)&&(s.set?e=s.set(this.Es,i):s.val!==i&&(s.val=i,e=!0),e&&this.Ps(s),!0)},remove:function(t){delete this.Ms[t];var i=this.Is.indexOf(t);i>=0&&this.Is.splice(i,1)},has:function(t){return!!this.Ms[t]},os:function(t,i){var s=this.Ms[t];if(1==arguments.length)return s?s.type:void 0;2==arguments.length&&(s||(s=this.Ms[t]={}),s.type=i)},bs:function(t,i){var s=this.Ms[t];if(1==arguments.length)return s?s.userType:void 0;2==arguments.length&&(s||(s=this.Ms[t]={}),s.userType=i)},addObserver:function(t,i){var s,e,n;for(s=0,e=t.length;s<e;++s)(n=this.Ms[t[s]])&&(n.obs||(n.obs=new Os),n.obs.add(i))},removeObserver:function(t){var i,s,e=this.Ms;for(i in e)(s=e[i]).obs&&s.obs.remove(t,!0)},removeObserverIf:function(t){var i,s,e=this.Ms;for(i in e)(s=e[i]).obs&&s.obs.removeIf(t,!0)},notifyObservers:function(t){var i=this.Ms[t];i&&this.Ps(i)},Ps:function(t){var i,s=t.obs;if(s)for(s.toFront();i=s.next();)i()},replace:function(t){var i=this,s={vars:[]};return s.text=t.replace(oe,function(t){var e=t.substring(1,t.length-1),n=i.Ms[e];return n?(s.vars.indexOf(e)<0&&s.vars.push(e),n.get?n.get(i.Es):n.val):t}),s},tick:function(t){var i,s,e;for(i=0,s=this.Is.length;i<s;++i)(e=this.Ms[this.Is[i]])&&t>=(e.nextUpdate||0)&&this.Ps(e)}}),ce=new(Ds({$init:function(){var t=Ji.createElement("audio"),i=Ji.createElement("video");this.Rs="",this.As="",t.canPlayType&&t.canPlayType('audio/mpeg; codecs="mp3"').replace(/no/,"")?this.Rs="mp3":t.canPlayType&&t.canPlayType('audio/ogg; codecs="vorbis"').replace(/no/,"")&&(this.Rs="ogg"),i.canPlayType&&i.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"').replace(/no/,"")?this.As="mp4":i.canPlayType&&i.canPlayType('video/webm; codecs="vp8"').replace(/no/,"")&&(this.As="webm"),this.Ds=!!this.Rs&&!!this.As,this.Ns=!1,this.Os=!1;try{t.playbackRate=2,this.Os=2==t.playbackRate}catch(t){}try{t.volume=.51,this.Ns=.51==t.volume}catch(t){}this.Ls=!1,this.Fs=!1;var s=this,e=t.play();void 0!==e&&e.catch(function(t){s.Fs=!0,rs("MediaManager:_requireInitMediaElements: "+s.Fs)}),rs("MediaManager:_canPlayMedia: "+this.Ds),rs("MediaManager:_canChangeVolume: "+this.Ns),rs("MediaManager:_canChangePlaybackRate: "+this.Os),rs("MediaManager:_fixDelayedMediaPlaying: "+this.Ls),rs("MediaManager:_requireInitMediaElements: "+this.Fs)},canChangeVolume:function(){return this.Ns},canChangePlaybackRate:function(){return this.Os}}));se.mediaManager=ce;var fe=Ds({$init:function(){this.Us=[],this.Ys=[],this.Hs=[],this.Bs=1,this.zs=!1,this.Xs=1,this.Gs=!1,this.Vs=6,this.$s=!1},Ws:function(t){var i,s,e=t[1]+t[3]+t[5],n=t[0]+t[2]+t[4]+t[9];for(e*=2,n*=2,t[8]>0&&(e+=1),t[7]>0&&(e+=this.Vs),i=0;i<e;++i)(s=Ji.createElement("audio")).muted=!0,this.Us.push(s);for(i=0;i<n;++i)(s=Ji.createElement("video")).muted=!0,this.Ys.push(s);this.Gs=t[6]>0,this.$s=e<=0&&n<=0},js:function(t){if(this.$s)t.call(null);else{this.$s=!0;var i,s,e,n=this.Us.concat(this.Ys),h=[];if(0!=(s=n.length))for(i=0;i<s;++i)e=n[i],h.push(!1),this.Qs(t,e,i,h);else t.call(null)}},Qs:function(t,i,s,e){var n,h,r,a,o,u=["error","ended","loadstart","durationchange","loadedmetadata","loadeddata","canplay","waiting","playing","canplaythrough","stalled","emptied","suspend"];for(o=function(c){for(rs("Prepare Media Complete: | index: "+s+"| event: "+c.type),e[s]=!0,r=0,a=u.length;r<a;++r)i.removeEventListener(u[r],o);i.pause();var f=!0;for(n=0,h=e.length;n<h;++n)if(!e[n]){f=!1;break}f&&t.call(null)},r=0,a=u.length;r<a;++r)i.addEventListener(u[r],o);var c=i.play();void 0!==c&&c.catch(function(t){rs("_prepareMediaElement play error: "+t)})},Ks:function(t){this.Hs.push(t)},qs:function(t){var i=this.Hs.indexOf(t);i>-1&&this.Hs.splice(i,1)},playbackRate:function(t){if(!arguments.length)return this.Xs;if(ce.canChangePlaybackRate()){this.Xs=t;var i,s,e=this.Hs;for(i=0,s=e.length;i<s;++i)e[i].playbackRate(t)}else rs("This device does not support changing playback rate")},volume:function(t){if(!arguments.length)return this.Bs;if(ce.canChangeVolume()){this.Bs=t;var i,s,e=this.Hs;for(i=0,s=e.length;i<s;++i)e[i].volume(t)}else rs("This device does not support changing volume")},muted:function(t){if(!arguments.length)return this.zs;this.zs=t;var i,s,e=this.Hs;for(i=0,s=e.length;i<s;++i)e[i].muted(t)},Js:function(){var t,i,s=this.Hs,e=this.Us.concat(this.Ys);for(t=0,i=e.length;t<i;++t)e[t].muted=!1;for(t=0,i=s.length;t<i;++t)s[t].Js()},Zs:function(t){var i,s,e=this.Hs;for(i=0,s=e.length;i<s;++i)e[i].Zs(t)}}),le=Ds({$init:function(t){this.Es=t,this.te=[],this.se=0,this.ee=!1},goBackward:function(t){var i=this.te[this.se-1],s=!1;return i&&(this.ee=!0,--this.se,s=this.Es.showSlide(i,t),this.ee=!1),s},goForward:function(t){var i=this.te[this.se+1],s=!1;return i&&(this.ee=!0,++this.se,s=this.Es.showSlide(i,t),this.ee=!1),s},add:function(t){t&&!this.ee&&t!=this.te[this.se]&&(this.se>=0&&this.se<this.te.length-1&&(this.te.length=this.se+1),this.te.push(t),this.se=this.te.length-1)},clear:function(){this.te.length=0,this.se=0,this.ee=!1}}),de=/^ap-(prez|slide|ctrl)-/,pe=new Us({onItemComplete:function(t){t.id&&t.id.ne&&t.id.ne(t.status)}});function ve(t,i){return t+"."+i}function me(t,i,s){if(t&&(t.b&&(t.b.im?s.push(i.getResource(ve(t.b.im[0],t.b.im[1]))):t.b.f&&t.b.f[0]===vt.u&&s.push(i.getResource(ve(t.b.f[1],t.b.f[2])))),t.cc))for(var e=0,n=t.cc.length;e<n;++e){var h=t.cc[e];h&&be(h,t,i,s)}}function be(t,s,e,n){if(t.s)for(var h=0,r=t.s.length;h<r;++h){var a=t.s[h];a.im?n.push(e.getResource(ve(a.im[0],a.im[2]))):a.f&&a.f[0]===vt.u&&n.push(e.getResource(ve(a.f[1],a.f[2])))}if(t.k==i.T&&void 0!==t.mi&&n.push(e.getImgResource(s.i+"."+t.i+(t.g?".png":".jpg"))),t.cc)for(h=0,r=t.cc.length;h<r;++h){var o=t.cc[h];o&&be(o,s,e,n)}}function we(t,i,s,e,n,h){h=h||n,t.addChild(new eh(i,"mediaDuration",{startTime:e,duration:0,tweenParams:[0,h],tweenType:jt.zi})).addChild(new eh(i,"mediaSrc",{startTime:e,duration:0,tweenParams:[-1,s],tweenType:jt.zi})).addChild(new eh(i,"mediaState",{startTime:e,duration:0,tweenParams:["stopped","playing"],tweenType:jt.zi})).addChild(new nh(i,"mediaSeek",{startTime:e,duration:h,tweenParams:[0,1],tweenType:jt.he})).addChild(new eh(i,"mediaState",{startTime:e+n,duration:0,tweenParams:["playing","stopped"],tweenType:jt.zi}))}var ge=Ds({$init:function(i,s,e){var n;this.ws={slides:[],fbs:[],randomMap:{},index:0,ts:0,elapsedTime:0,vars:{},s:1},this.re=new le(this),this.vars=new ue(this),this.timeline=null,this.transition=null,this.ae=null,this.started=!1,this.ended=!1,this.oe=!1,this.ue=[],this.ce=0,this.fe=0,this.le=!1,this.pe=Kt,this.ve={},this.contentState="loading",this.destroyed=!1,this.me=!0,this.be=0,this.we=new fe,i&&typeof i===Ri?(this._s=null,this._e=i):this._s=i||null,typeof s===Ri?(n=s,s=Ji.getElementById(s)):s&&(n=s.id),this.containerId=n,this.container=s,e=e||{},this.options=e;var h=location.search;if(h){var r,a,o,u=h.substring(1).toLowerCase().split("&");for(r=0,a=u.length;r<a;++r)switch((o=u[r].split("="))[0]){case"slide":e.slide=parseInt(o[1]);break;case"time":e.time=vs(decodeURIComponent(o[1]));break;case"slidetime":e.slideTime=vs(decodeURIComponent(o[1]));break;case"autofit":e[o[0]]="false"!=o[1]}}var c=e.preloader;c&&c.range?c.range=c.range/1e3:c={zIndex:2,color:"#2090e6",diameter:60,density:9,range:1,speed:1},this.ui=new se.UI(c),this.nodeId="ap-prez-"+(n?n.replace(de,""):"")+"-"+te(),this.ke=this.nodeId.replace(de,""),this.ye=0;var f=this;this.Te=new Us({maxConnections:8,maxTime:120,onItemComplete:function(t){if(f.ue.push(t.url),f.ue.length<=f.fe){if(!f.started){var i=f.ue.length/f.fe;f.ui.loadingUi.setText(Vi(100*i)+"%")}}else f.ce<10?f.ce++:(f.ce=0,f.ks())},onTimeout:function(){},onComplete:function(){f.oe=!0,f.ks()},onStart:function(){f.ui.loadingUi.show()},onProgress:function(){}}),this.slide=this.prevSlide=this.bottomSlide=this.topSlide=null,this.slideIndex=-1,this.layoutIndex=-1,s?this.xe(s):n&&t(function(){(s=Ji.getElementById(n))&&f.xe(s)})},Se:function(t){if(!t)return!0;if(!this.oe){var i=[];me(t,this,i);for(var s=0,e=i.length;s<e;++s)if(this.ue.indexOf(i[s])<0)return!1}return!(this._s.hasEquation&&!t.Ee)},Me:function(){return!this.slide||(!(!this.oe||this._s.hasEquation&&!this.slide._s.Ee)||this.Se(this.slide._s))},Ce:function(t){t!=this.le&&(this.le=t,t?this.Ie():this.Pe())},Re:function(){var t,i,s,e,n,h;for(s=0,3;s<3;++s)if(0==s?h=this.slide:1==s?h=this.topSlide:2==s&&(h=this.bottomSlide),h)if(h.Ae)h.Re();else if(t=h.children)for(e=0,n=t.length;e<n;++e)(i=t[e]).Re&&i.Re()},ks:function(){if(this._s.hasEquation){if(se.mathJaxAPIState==qt||se.mathJaxAPIState==Kt)return;if(se.mathJaxAPIState==Jt&&this.pe==Kt)return void this.De()}if(!this.we.Gs||se.youtubeAPIState!=qt&&se.youtubeAPIState!=Kt)if(this.Re(),this.started)this.le&&this.Me()&&this.Ce(!1);else{for(var t=0,i=this._s.pcs.length;t<i;++t){var s=this._s.pcs[t];if(!this.Se(s))return}var e=isNaN(this.options.slide)?0:this.options.slide-1;if(this.Se(this.Ne(e))){this.ui.loadingUi.hide();var n=function(){isNaN(this.options.slide)?this.start():this.start(this.options.slide,this.options.slideTime)};if(se.youtubeAPIState==Zt){var h=this;if(this.Oe)return void this.ui.showMsg(this.ui.Cs.text("YouTubeError"),!0,void 0,function(){n.call(h)});alert(ne.text("YouTubeError"))}n.call(this)}}},xe:function(t){this.destroyed||(this.container=t,this.ui.appendTo(t),this.ui.loadingUi.show(),this._e?pe.load({url:this._e,type:"js",id:this}):this.ne())},ne:function(t){if(!this.destroyed){if(this._e)if(t===Ls.LOADED)this._s=se.loadedPrezs.shift(),this._s||(this.contentState="error",this.ui.loadingUi.hide(),alert("Error parsing the presentation. Check the browser console for more information."));else{if(t!==Ls.ERROR)return;this.contentState="error",this.ui.loadingUi.hide(),alert(ne.text("LoadPrezError"))}if(this._s?se.compatible(this._s)||(this.contentState="incompatible",this.ui.loadingUi.hide(),alert(ne.text("IncompatiblePrez"))):this._s={},"loading"===this.contentState&&(this.contentState="loaded"),se.presentations.push(this),void 0!==this.options.time&&void 0===this.options.slide){var i=this.Le(this.options.time);i&&(this.options.slide=i.slideIndex+1,this.options.slideTime=i.slideTime)}if(this.options.onReady&&this.options.onReady.call(this),"loaded"===this.contentState){this.resourceLocation=void 0!==this.options.resourceLocation?this.options.resourceLocation:this._s.options.resourceLocation||"",this.fileNamePrefix=void 0!==this.options.fileNamePrefix?this.options.fileNamePrefix:this._s.options.fileNamePrefix||"",this.playerResource=void 0!==this.options.playerResource?this.options.playerResource:this._s.options.playerResource||"";this.options.playMode;var s=this.we,e=this._s.params;if(void 0!==this.options.autofit&&(e.DisplayMode[0]=e.DisplayMode[1]=e.DisplayMode[2]=e.DisplayMode[3]=this.options.autofit?bi.AUTOFIT:bi.ACTUAL_SIZE),this.Fe=!0,this._s.mcc?this.Ue=this._s.mcc.i||0:this.Ue=0,s.Ws(this._s.mediaStats),this.lms=this._s.options.lms?new se.LMS(this):null,this.lms&&(this.lms.initialize(),this.lms.loadSuspendData(),this.Ye=this.ws.elapsedTime||0,this.ws.fbs&&this.ws.fbs.length&&(this.He=this.ws.fbs),this.ws.fbs=[],this.ws.vars))for(var n in this.ws.vars)this.ws.vars.hasOwnProperty(n)&&this.variable(n,this.ws.vars[n]);this.Be(),this._s.hasEquation&&se.loadMathJaxAPI(this.playerResource),s.Gs&&se.loadYouTubeIframeAPI();var h=function(t){var i,s,e,n=[],h=t.cssUrl(),r=t._s,a=0;for(h&&n.push(h),r.authorImage&&n.push(t.getResource(ve(r.authorImage[0],r.authorImage[1]))),r.companyLogo&&n.push(t.getResource(ve(r.companyLogo[0],r.companyLogo[1]))),s=0,e=r.slides.length;s<e;++s)if(i=r.slides[s]){if(i.rd){var o=(r.pools||[])[i.lp];if(!o||0==o.length)continue}n.push(t.getThumbnailResource(i.thumbId||i.i))}for(s=0,e=r.pcs.length;s<e;++s)(i=r.pcs[s])&&me(i,t,n);if(r.feedbacks)for(s=0,e=r.feedbacks.length;s<e;++s)(i=r.feedbacks[s])&&me(i,t,n);for(s=0,e=r.slides.length;s<e;++s)(i=r.slides[s])&&me(i,t,n),3==s&&(a=n.length);return s<=3&&(a=n.length),{preloadCount:a,allResources:n}}(this);this.fe=h.preloadCount,this.Te.load(h.allResources),this.ks()}else this.ui.loadingUi.hide()}},version:function(){return this._s&&this._s.v||""},destroy:function(){if(!this.destroyed){if(this.destroyed=!0,this.lms){if(this.started&&!this.ended){this.slide&&this.ae&&(this.ws.ts=this.ae.time()-this.slide._s.st),this.ws.elapsedTime=this.elapsedTime();var t=this.vars.Ms;for(var i in t)this.vars.bs(i)&&(this.ws.vars[i]=this.vars.get(i));this.lms.storeSuspendData(this.ws,!0)}this.lms.terminate()}var s=se.presentations,e=s.indexOf(this);if(e>-1&&s.splice(e,1),this.ze){for(var n=0;n<this.ze.length;++n)this.ze[n].cleanup();this.ze.length=0}this.pauseAll(),this.ui.destroy()}},genId:function(){return++this.ye},genDomId:function(t){return t+this.ke+"-"+this.genId()},genSlideDomId:function(){return this.genDomId("ap-slide-")},genObjectDomId:function(){return this.genDomId("ap-ctrl-")},layout:function(){this.ui.layout()},setMaxContentWidth:function(t){this.ui.setMaxContentWidth(t),this.ui.layout()},Xe:function(){return this.ui?this.ui.Xe:1},object:function(t){var i=null;return this.slide&&(i=this.slide.object(t)),!i&&this.bottomSlide&&(i=this.bottomSlide.object(t)),!i&&this.topSlide&&(i=this.topSlide.object(t)),i},fs:function(t){return this._s.f[t]},Ge:function(t){var i,s,e=this._s.slides;if(!arguments.length)return e||[];for(i=0,s=e.length;i<s;++i)if(e[i].i===t)return e[i];return null},Ve:function(t){var i,s,e=this._s.slides;for(i=0,s=e.length;i<s;++i)if(fs(e[i].n).trim()===t)return e[i];return null},Ne:function(t){return this._s.slides[t]},$e:function(t){var i,s,e=this._s.feedbacks;if(!arguments.length)return e||[];for(i=0,s=e.length;i<s;++i)if(e[i].fbi===t)return e[i];return null},We:function(t){var i,s,e=this._s.feedbacks;if(!arguments.length)return e||[];for(i=0,s=e.length;i<s;++i)if(e[i].at===t)return e[i];return null},slideId:function(t){return t>=0&&t<this._s.slides.length?this._s.slides[t].i:-1},slideCount:function(){return this._s.slides.length},showSlideById:function(t){return this.showSlide(this.Ge(t))},showFeedbackById:function(t,i,s){return this.je(!0,t,i,s)},showFeedbackByName:function(t,i,s){return this.je(!1,t,i,s)},je:function(i,s,e,n){var h=i?this.$e(s):this.We(s);if(!h)return!1;var r=void 0!==e&&e>=0,a=h.fbi;if(this.Qe||(this.Qe=[]),this.Ke(i,s)>=0)return!0;this.fbTransition&&(this.fbTransition.remove(),this.fbTransition.seek(this.fbTransition.totalDuration()),this.fbTransition=null);var o=new Sn(this,h),u=this;if(this.Qe.push(o),r||this.ws.fbs.push(a),this.qe(!!o._s.w),!(h.ts&&h.ts[1]>0)||this.allPaused()&&this.ended||(this.fbTransition=se.createTransition.apply(se,[this,o,this.slide].concat(h.ts)),this.fbTransition.addChild(new sh(function(){var t=u.fbTransition;setTimeout(function(){t&&t.remove()},0)},{startTime:this.fbTransition.duration(),duration:0})),this.fbTransition.startTime(),o.ae.addChild(this.fbTransition),this.fbTransition.setup()),r){var c=new sh(function(){u.hideFeedbackById(a),n&&n()},{startTime:e});o.ds(c),o.ae.addChild(c)}else o.Je=n;return o.ae.startTime(this.timeline.totalTime()),this.timeline.addChild(o.ae),o.ae.setup(),o.ae.play(0),t(o).triggerHandler("ap-load"),!0},hideFeedbackById:function(t){this.Ze(this.Ke(!0,t))},hideFeedbackByName:function(t){this.Ze(this.Ke(!1,t))},Ze:function(i){if(this.Qe&&i>=0&&i<this.Qe.length){var s=this.Qe[i];if(s){t(s).triggerHandler("ap-unload"),s.remove(),s.Je&&s.Je();var e=this.ws.fbs.indexOf(s._s.fbi);e>=0&&this.ws.fbs.splice(e,1)}this.Qe.splice(i,1)}},hideAllFeedbacks:function(){if(this.Qe)for(;this.Qe.length;)this.Ze(this.Qe.length-1)},ms:function(t){if(this.Qe)for(var i=0,s=this.Qe.length;i<s;++i)if(this.Qe[i]==t)return!0;return!1},Ke:function(t,i){if(this.Qe)for(var s=0,e=this.Qe.length;s<e;++s)if(t){if(this.Qe[s]._s.fbi===i)return s}else if(this.Qe[s]._s.at===i)return s;return-1},firstSlide:function(t){return this.showSlide(0,t)},lastSlide:function(t){return this.showSlide(this.slideCount()-1,t)},currentSlide:function(){return this.slide},nextSlide:function(t){return this.showSlide(this.slideIndex+1,t)},previousSlide:function(t){return this.showSlide(this.slideIndex-1,t)},historyBack:function(t){return this.re.goBackward(t)},historyForward:function(t){return this.re.goForward(t)},tn:function(t){if(this.prevSlide){var i=this.prevSlide.background;isNaN(t)||t<0||!i?this.prevSlide.remove():(this.prevSlide.remove(!0),setTimeout(function(){i.remove()},t)),this.prevSlide=null}},sn:function(){for(var t={},i=this.ws.slides,s=0,e=i.length;s<e;++s)i[s]&&(t[s]=!0);return t},showClosedCaption:function(i){arguments.length||(i=!0),this.Fe=i,this.en&&t(this.en.node).css("visibility",i?"visible":"hidden"),this.vars.notifyObservers("apCCVisible"),t(this.ui).trigger("ap-cc",[i])},closedCaptionVisible:function(){return!!this.Fe},closedCaptionLanguageIndex:function(i){if(!arguments.length)return this.Ue;this.Ue=i,this.slide&&this.slide.reloadClosedCaption();var s=-1!=i;this.showClosedCaption(s),t(this.ui).trigger("ap-tool-multiple-language-cc",i)},nn:function(t){var i,s;t?(i=this.slide,s=this.prevSlide):(i=this.prevSlide,s=this.slide),i&&(i.node.style.zIndex=$t.Ii,i.background&&(i.background.node.style.zIndex=$t.Ci)),s&&(s.node.style.zIndex=$t.Ai,s.background&&(s.background.node.style.zIndex=$t.Pi))},showSlideAt:function(t,i){return this.showSlide(t-1,i)},showSlide:function(i,s){var e,n,h=typeof i;if("number"===h?i=this.Ne(i):"string"===h&&(i=this.Ve(i)),!i)return this.ended||this.slideIndex!==this.slideCount()-1||this.end(),!1;if(this.He&&this.He.length){for(var r=0,a=this.He.length;r<a;++r)this.showFeedbackById(this.He[r]);delete this.He}else this.hideAllFeedbacks();if(!this.ended&&this.slide){var o=this.ae.time()-this.slide._s.st>=this.slide._s.d;(this.slideIndex!=i.index&&o&&!this.ae.me||this.ws.slides[this.slideIndex])&&t(this.ui).trigger("ap-slideCompleted",[this.slide._s.i,!0])}e=as(e=(e="object"==typeof(s=s||{})?s.slideTime:s)||0,0,i.d),void 0!==s.transition?s.transition!=se.TransitionType.NONE&&(n=[s.transition,s.duration||0,s.direction||0]):e||(n=i.ts),this.transition&&(this.transition.remove(),this.transition.seek(this.transition.totalDuration()),this.transition=null),this.tn(),this.slide&&this.slide.cleanup();var u=this.layoutIndex<0?0:this.layoutIndex;this.ui.setSlideSize(this._s.l[u][0],i.h[u]),this.prevSlide=this.slide,this.slideIndex=i.index,this.hn=void 0==this.hn?this.slideIndex:Yi(this.hn,this.slideIndex),this.rn=void 0==this.rn?this.an(this.slideIndex,e):Yi(this.rn,this.an(this.slideIndex,e)),this.un=!1,this.slide=new Sn(this,i),this.nn(),this.qe(!!this.slide._s.w),this.ae.addChild(this.slide.ae);var c=this,f=new sh(function(){void 0!==i.a&&1!=i.a&&"Demo"!=c.playMode()||c.isReviewingMode()?(c.un=!0,c.pause(!0),c.isReviewingMode()&&c.slideIndex===c.slideCount()-1&&c.pauseAll()):(t(c.ui).trigger("ap-slideCompleted",[c.slide._s.i,!0]),c.slideIndex===c.slideCount()-1?c.end():c.nextSlide())},{startTime:this.slide.ae.startTime()+(i.d||0)});if(this.slide.ds(f),this.ae.addChild(f),!(n&&n[1]>0)||this.allPaused()&&this.ended||(this.transition=se.createTransition.apply(se,[this,this.slide,this.prevSlide].concat(n)),this.transition.addChild(new sh(function(){var t=c.transition;c.nn(),c.tn(se.TransitionMinDuration-t.duration()),setTimeout(function(){t&&(t.remove(),c.transition===t&&(c.transition=null))},0)},{startTime:this.transition.duration(),duration:0})),this.transition.startTime(this.slide.ae.startTime()+e),this.ae.addChild(this.transition),this.transition.setup()),this.ae.time()!==i.st+e){if(this.topSlide||this.bottomSlide)for(var l,d=this.timeline.firstChild;d;)l=d.next,d.slide!==c.topSlide&&d.slide!==c.bottomSlide||d.cn||(d.remove(),d.seek(d.totalDuration())),d=l;var p=this.paused();this.ae.seek(i.st+e),p&&this.pause(!1)}else this.slide.ae.update(0,!0),this.transition&&this.transition.update(0,!0),this.pause(!1);if(this.re.add(i),this.ended||(this.slide.savedData(!0),this.ws.index=this.slideIndex,this.ws.ts=e,this.lms&&(this.lms.setBookmark(fs(i.n),fs(i.de),this.slideIndex),this.lms.storeSuspendData(this.ws,!0))),this.vars.notifyObservers("apTakenSlides"),this.vars.notifyObservers("apQuizPassed"),this.vars.notifyObservers("apQuizPassedBool"),this.vars.notifyObservers("apRemainingTime"),this.vars.notifyObservers("apRemainingTimeMs"),this.vars.notifyObservers("apCurrentSlideIndex"),this.vars.notifyObservers("apCurrentSlideLabel"),this.vars.notifyObservers("apProgress"),t(this.ui).trigger("ap-progress",[this.slideIndex,this.slideId(this.slideIndex),this.ae.time()]),this.prevSlide&&t(this.prevSlide).triggerHandler("ap-unload"),this.slide.ln.length&&this.container){var v=this.container.getBoundingClientRect(),m=(v.left+v.right)/2,b=(v.top+v.bottom)/2;m>=0&&m<=window.innerWidth&&b>=0&&b<=window.innerHeight&&setTimeout(function(){c.container.focus({preventScroll:!0})},0)}return t(this.slide).triggerHandler("ap-load"),this.transition||this.tn(se.TransitionMinDuration),this.Se(i)?this.Ce(!1):this.Ce(!0),!0},De:function(){if(se.mathJaxAPIState==Jt&&this.pe==Kt){this.pe=qt;var t=this,i=function(i){var e,n;if(i.cc)for(e=0,n=i.cc.length;e<n;++e)s.call(null,i,i.cc[e]);MathJax.Hub.Queue(function(){i.Ee=!0,t.ks()})},s=function(t,i){var n,h,r;if(i.s)for(n=0,h=i.s.length;n<h;++n)(r=i.s[n]).m&&r.t&&r.t.length>0&&e.call(null,t,i,r);if(i.cc)for(n=0,h=i.cc.length;n<h;++n)s.call(null,t,i.cc[n])},e=function(i,s,e){var n=e.t[0],h=n+(e.t[1]||"");if(!t.ve[h]){t.ve[h]=!0;var r=Ji.createElement("div"),a=r.style;e.t[1]&&(a.cssText=e.t[1]),a.position="absolute",a.top=0,a.left=0,a.visibility="hidden",r.innerHTML=n,Ji.body.appendChild(r),MathJax.Hub.Queue(["Typeset",MathJax.Hub,r]),MathJax.Hub.Queue(function(){t.ve[h]=r.innerHTML,Ji.body.removeChild(r)})}MathJax.Hub.Queue(function(){if(e.t[0]=t.ve[h],t.slide&&t.slide._s==i){var r=t.object(s.n);r&&r.us.id()==e.i&&(hs.innerHTML=n,r.html()==hs.innerHTML&&r.html(t.ve[h]))}})};if(this._s.pcs&&(this._s.pcs[0]&&i.call(null,this._s.pcs[0]),this._s.pcs[1]&&i.call(null,this._s.pcs[1])),this._s.feedbacks){this._s.feedbacks.length;for(var n=0;n<this._s.feedbacks.length;n++)i.call(null,this._s.feedbacks[n])}var h,r=this._s.slides;for(n=0,h=r.length;n<h;++n)i.call(null,r[n]);t=this;MathJax.Hub.Queue(function(){t.pe=Jt,t.ks()})}},Be:function(){var i,s,e,n=this._s.slides||[],h=this._s.pools||[],r=[];this.dn=r;var a,o=0,u={},c={},f=Qt[this.options.playMode];for(s=0;s<n.length;++s){if(void 0===(i=n[s]).m||(i.m&f)===f)if(i.rd)(d=h[i.lp])&&d.length>0&&(c[i.lp]||(c[i.lp]=0),c[i.lp]++)}for(s=0;s<n.length;++s)if(void 0===(i=n[s]).m||(i.m&f)===f){a=i.i;var l=!0;if(i.rd){var d,p=i.lp;if((d=h[p])&&d.length>0)if(this.ws.randomMap&&void 0!==this.ws.randomMap[i.i]){v=i.i;this._s.slides[s]=i=t.extend(!0,{},d[this.ws.randomMap[i.i]]),a=i.i,i.i=v,i.thumbId=a}else{u[p]||(u[p]=us(d.length,c[p]));var v=i.i;this._s.slides[s]=i=t.extend(!0,{},d[u[p][0]]),a=i.i,i.i=v,i.thumbId=a,this.ws.randomMap[i.i]=u[p][0],u[p].splice(0,1)}else l=!1}i.index=s,i.st=o,o+=i.d,r.push({id:i.i,duration:i.d,title:i.n,ti:a,thumb:l})}else n.splice(s,1),--s;if(this._s.pcs&&(this._s.pcs[0]&&(this._s.pcs[0].index=n.length),this._s.pcs[1]&&(this._s.pcs[1].index=n.length+1)),this._s.feedbacks){var m=n.length+2;for(s=0,e=this._s.feedbacks.length;s<e;++s)this._s.feedbacks[s].index=m,++m}},pn:function(){var i=this.ui,s=this,e=this._s,n=s._s.l;if(e.options||(e.options={}),e.params||(e.params={}),this.options.playMode||(this.options.playMode="Tutorial"),e.options.playMode=this.options.playMode,i&&i.create){var h=e.options;if(h.language=e.language,h.textDir=e.textDir,h.responsive=e.responsive,h.projectName=e.projectName,h.authorName=e.author,h.authorDesc=e.authorDescription,h.authorImage=e.authorImage,h.companyLogo=e.companyLogo,h.playerIcons=e.playerIcons,h.playerLayouts=e.playerLayouts,e.mcc){var r=e.mcc.d;h.multipleLanCCs=r||[],h.defautlLanguageCCIndex=e.mcc.i||0}n&&n.length>0&&(h.slideWidth=n[0][0],h.slideHeight=n[0][1]);var a={},o=0;switch(e.options.playMode){case"Demonstration":o=0;break;case"Tutorial":o=1;break;case"Practice":o=2;break;case"Test":o=3}for(var u in e.params)a[u]=e.params[u][o];t("#"+this.containerId).attr("data-mode",o+1),0==a.SideBarPos&&(a.ShowSidebarBtn=!1),0==a.TocStyle&&(a.ShowTocBtn=!1),e.ar&&0!=e.ar.length||(a.ShowResourcesBtn=!1),e.av&&e.av.length||(a.ShowAuthorVideo=!1),ce.canChangePlaybackRate()||(a.ShowSpeedBtn=!1),ce.canChangeVolume()||(a.ShowVolumeBar=!1);var c,f=!1;if(e&&e.slides)for(var l=e.slides,d=0,p=l.length;d<p;++d){var v=l[d];if(v&&v.ca&&v.ca.n&&v.ca.n.length){f=!0;break}}f||(a.ShowCCBtn=!1),this.vn=a.Navigation,i.create("#"+this.containerId,e.toc,this.dn||[],e.ar,a,h),this.dn&&delete this.dn,(c=t(i)).trigger("ap-speed",[1]),c.trigger("ap-mute",[this.muted()]),c.trigger("ap-volume",[this.muted()?0:100*this.volume()]),c.trigger("ap-cc",[this.closedCaptionVisible()]),c.trigger("ap-toc",[this.tocVisible()]),c.trigger("ap-sidebar",[this.sidebarVisible()]),c.trigger("ap-resources",[!0]),c.trigger("ap-tool-multiple-language-cc",[this.closedCaptionLanguageIndex()]),this.showToolbar(a.ShowToolbar),a.ShowAuthorVideo&&(s.ze=[],t(".ap-presenter-video",t("#"+this.containerId)).each(function(t){var i=new vn(s);i.appendTo(this),s.ze.push(i)}))}if(t(".ap-canvas",s.container).on("dblclick",function(t){var i=window.getSelection&&getSelection();i&&i.removeAllRanges&&i.removeAllRanges()}),s.container.hasAttribute("tabindex")||(s.container.tabIndex=-1),t(s.container).on("contextmenu",function(t){var i=window.getSelection&&getSelection();i&&i.toString&&i.toString()||t.preventDefault()}),"Demo"!==this.options.playMode&&(t(".ap-canvas",s.container).on("mousedown",function(t){s.mn(t)}),t(s.container).on("keydown keyup",function(t){s.xs(t)})),(c=t(this.ui)).on("ui:ap-layout",function(){rs("Enter ui:ap-layout");var t,e,h,r=i.getMaxContentSize().width,a=0,o=!1;if(n)for(t=0;t<n.length;++t)if(r<=n[t][0]){a=t,e=n[t][0],h=n[t][1];break}if(a!==s.layoutIndex&&(rs("Change layout from "+s.layoutIndex+" to "+a),s.layoutIndex=a,o=!0,s.slide&&(h=s.slide._s.h[a]),i.setSlideSize(e,h)),o){if(s.slide&&s.slide.onLayoutSwitched(),s.prevSlide&&s.prevSlide.onLayoutSwitched(),s.topSlide&&s.topSlide.onLayoutSwitched(),s.bottomSlide&&s.bottomSlide.onLayoutSwitched(),s.Qe)for(t=0;t<s.Qe.length;++t){(u=s.Qe[t])&&u.onLayoutSwitched()}s.options.onLayoutSwitched&&s.options.onLayoutSwitched.call(s)}else if(s.slide&&s.slide.bn(),s.prevSlide&&s.prevSlide.bn(),s.topSlide&&s.topSlide.bn(),s.bottomSlide&&s.bottomSlide.bn(),s.Qe)for(t=0;t<s.Qe.length;++t){var u;(u=s.Qe[t])&&u.bn()}rs("Exit ui:ap-layout")}),c.on("ui:ap-showSlide",function(t,i){s.canNavigateTo(s.Ge(i).index,0)&&s.showSlideById(i)}),c.on("ui:ap-restart",function(){s.restart()}),c.on("ui:ap-first",function(){s.canNavigateTo(0,0)&&s.firstSlide()}),c.on("ui:ap-last",function(){if(s.slideIndex<s.slideCount()-1){if(!s.canNavigateTo(s.slideCount()-1,0))return;s.lastSlide()}}),c.on("ui:ap-next",function(){if(s.slideIndex<s.slideCount()-1){if(!s.canNavigateTo(s.slideIndex+1,0))return;s.nextSlide()}}),c.on("ui:ap-previous",function(){if(s.slideIndex>0){if(!s.canNavigateTo(s.slideIndex-1,0))return;s.previousSlide()}}),c.on("ui:ap-pause",function(){s.pauseAll(!s.allPaused())}),c.on("ui:ap-speed",function(t,i){s.speed(i)}),c.on("ui:ap-progress",function(t,i){var e=s.Le(i);if(e){if(!s.canNavigateTo(e.slideIndex,e.slideTime))return;s.showSlide(e.slideIndex,e.slideTime)}}),c.on("ui:ap-cc",function(){s.showClosedCaption(!s.closedCaptionVisible())}),c.on("ui:ap-toc",function(){s.showToc(!s.tocVisible())}),c.on("ui:ap-sidebar",function(){s.showSidebar(!s.sidebarVisible())}),c.on("ui:ap-expand-sidebar",function(t,i){s.wn(i)}),c.on("ui:ap-sound",function(){s.gn?s._n():s.muted(!s.muted())}),c.on("ui:ap-volume",function(t,i){s._n(),s.volume(i/100)}),c.on("ui:ap-about",function(){s.showAbout()}),c.on("ui:ap-resources",function(){s.showResources(!s.resourcesVisible())}),c.on("ui:ap-exit",function(){s.destroy(),window.close()}),c.on("ui:ap-multiple-language-cc",function(t,i){s.closedCaptionLanguageIndex(i)}),n&&n.length>0&&this._s.responsive?this.setMaxContentWidth(n[n.length-1][0]):this.layout(),this.started=!0,e.e&&e.e.l&&Ee(this,e.e.l,this.options.playMode),this.we.Gs){var m=se.browser;(m.ie||m.edge)&&"file:"==window.location.protocol&&i.showMsg(i.Cs.text("YouTubeIEError"),!0)}this.Oe=!0},kn:function(t){var i=this._s.av;if(this.ze&&i&&i.length)for(var s=0,e=this.ze.length;s<e;++s)for(var n=this.ze[s],h=0,r=i.length;h<r;++h){var a=i[h],o=a[4]>0?a[3]/a[4]:0;0==h&&(a[1]>0&&t.addChild(new eh(n,"display",{startTime:0,duration:0,tweenParams:["none","none"],tweenType:jt.zi})),n.Tn.yn(a[5]||a[2]),n.Tn.loadResource(a[0])),t.addChild(new eh(n,"authorVideoRatio",{startTime:a[1],duration:0,tweenParams:[o,o],tweenType:jt.zi})).addChild(new eh(n,"display",{startTime:a[1],duration:0,tweenParams:["none","block"],tweenType:jt.zi})),we(t,n,a[0],a[1],a[2],a[5]),(!i[h+1]||i[h+1][1]>a[1]+a[2])&&t.addChild(new eh(n,"display",{startTime:a[1]+a[2],duration:0,tweenParams:["block","none"],tweenType:jt.zi}))}},xn:function(){if(this.ze)for(var t=0,i=this.ze.length;t<i;++t)this.ze[t].bn()},_n:function(){this.gn&&(delete this.gn,this.muted(!1),this.we.$s=!0,this.we.Js(),t(this.container).off(".apUnmuteOnTap"),this._s.options.showUnmuteMsg&&this.ui.hideUnmuteHintMsg())},start:function(i,s){this.Oe||this.pn();var e,n,h=this,r=this._s.slides||[],a=this._s.vars||[];for(e=0,n=a.length;e<n;++e){var o=a[e],u=o[0],c=o[1],f=o[2],l=o[3];this.vars.os(u,f),this.vars.bs(u,l),f==wi.NUMBER&&(c=Number(c)),this.ws.vars.hasOwnProperty(u)&&(c=this.ws.vars[u]),this.vars.set(u,c)}if(this.re.clear(),this.slide&&(this.slide.cleanup(),this.slide.remove(),this.slide=null),this.prevSlide&&(this.prevSlide.cleanup(),this.prevSlide.remove(),this.prevSlide=null),this.topSlide&&(this.topSlide.cleanup(),this.topSlide.remove(),this.topSlide=null),this.bottomSlide&&(this.bottomSlide.cleanup(),this.bottomSlide.remove(),this.bottomSlide=null),this.Qe){for(e=0;e<this.Qe.length;++e)this.Qe[e].cleanup(),this.Qe[e].remove();this.Qe.length=0}if(this.ws.fbs.length=0,this.ae&&(this.ae.remove(),this.ae=null),this.timeline=new hh({paused:!0}),this.ae=new ah,this.timeline.addChild(this.ae),r.length){var d=r[r.length-1];this.ae.addChild(new sh(Wi,{startTime:d.st+d.d}))}this.Sn=0;var p,v,m=this.sn();for(e=0,n=r.length;e<n;++e)t(this.ui).trigger("ap-slideCompleted",[this.slideId(e),void 0!==m[e]&&m[e]]);if(void 0!==i&&(this.ws.index=i-1),void 0!==s&&(this.ws.ts=s),this.ws.index=this.ws.index||0,this.ws.ts=this.ws.ts||0,!ce.Fs||h.we.$s&&!h.we.Gs||(h.muted(!0),h.gn=!0,t(h.container).on("mouseup.apUnmuteOnTap",function(){h._n()}),h._s.options.showUnmuteMsg&&h.ui.showUnmuteHintMsg()),this.ui.loadingUi.hide(),this._s.pcs){var b=this._s.pcs[0];b&&(b.isBottom=!0,this.bottomSlide=new Sn(this,b),this.kn(this.bottomSlide.ae),this.bottomSlide.ae.startTime(0),this.ae.addChild(this.bottomSlide.ae)),(b=this._s.pcs[1])&&b.cc&&b.cc.length&&(b.isTop=!0,this.topSlide=new Sn(this,b),this.topSlide.ae.startTime(0),this.ae.addChild(this.topSlide.ae))}return this.lms&&this.lms.startLesson(),p=this.ws.index||0,v=this.ws.ts||0,this.be=0,this.En&&(clearTimeout(this.En),delete this.En),t(this).triggerHandler("ap-load"),this.showSlide(p,v),this.me=!1,t(this.ui).trigger("ap-pause",[!1]),this.ws.s=this.ws.s||1,this.speed(this.ws.s),this.timeline.paused(!1),se.pageVisible()||se.Ts(this),this},restart:function(t,i){void 0===t&&(t=1),void 0===i&&(i=0),this.ws.index=0,this.ws.ts=0,this.ws.slides=[],this.ws.elapsedTime=this.Ye||0,this.ws.vars={};var s,e,n=this._s.slides;for(s=0,e=n.length;s<e;++s)n[s].hss=[];return this.lms&&this.lms.storeSuspendData(this.ws),this.ended=!1,this.pauseAll(!1),this.Mn=!1,this.hn=void 0,this.rn=void 0,this.start(t,i)},seek:function(t,i){return this.showSlide(t,i)},Le:function(t){if(!isNaN(t)){var i,s,e,n=-1,h=0,r=this._s.slides;for(s=0,e=r.length;s<e;++s){if(t<(i=r[s]).d){n=s,h=Yi(t,0);break}t-=i.d}return n<0&&e>0&&(h=r[n=e-1].d),{slideIndex:n,slideTime:h}}},an:function(t,i){if(isNaN(i))return 0;var s,e,n,h=0,r=this._s.slides;for(e=0,n=r.length;e<n;++e){if(s=r[e],t==e)return h+i;h+=s.d}},canNavigateTo:function(t,i){if(this.vn==gi)return!1;if(this.vn==_i){if(void 0==this.hn||this.hn<t)return!1;if(void 0==this.rn||this.rn<this.an(t,i))return!1}return!0},time:function(t){if(!arguments.length)return this.ae.time();var i=this.Le(t);return!!i&&this.showSlide(i.slideIndex,i.slideTime)},slideTime:function(t){if(!arguments.length)return this.slide?this.ae.time()-this.slide.ae.startTime():0;var i=this.slideIndex||0;return i<0&&(i=0),this.showSlide(i,t)},duration:function(t){if(!arguments.length){var i=this._s.slides,s=i[i.length-1];return s?s.st+s.d:0}if(t){var e=this.duration();e&&this.speed(e/t)}return this},speed:function(i){if(!arguments.length)return this.timeline.Cn;var s=[.5,1,1.5,2];if(s.indexOf(i)<0){for(var e=Number.MAX_VALUE,n=0,h=0,r=s.length;h<r;++h){var a=Oi(s[h]-i);a<e&&(e=a,n=h)}i=s[n]}return ce.canChangePlaybackRate()?(this.ws.s=i,this.timeline.speed(i),t(this.ui).trigger("ap-speed",[i]),this.we.playbackRate(i),this.vars.notifyObservers("apSpeed"),this):(rs("This device doesn't support changing speed"),this)},pauseAll:function(i){return arguments.length||(i=!0),i=!!i,this.me==i?this:(this.me=i,i?(this.we.Zs(!0),this.timeline.paused(!0)):0==this.be&&(this.we.Zs(!1),this.timeline.paused(!1)),t(this.ui).trigger("ap-pause",[i]),this)},allPaused:function(){return this.me},paused:function(){return this.ae.paused()},pause:function(t){return arguments.length||(t=!0),!t&&this.un?this:(this.ae.paused(t),this.vars.notifyObservers("apPause"),this.vars.notifyObservers("apResume"),this)},end:function(t){if(this.ended)return rs("Prez.end() is called when it's already ended"),this;if(this.hideAllFeedbacks(),t){this.ui.showMsg(this.ui.Cs.text("MaxPrezTimeReached"),!0);for(var s,e,n,h,r,a=this.Ge(),o=a.length,u=Qt[this.options.playMode];--o>=0;)if(e=a[o].cc)for(n=0,h=e.length;n<h;++n)if(e[n].k===i.F){(void 0===(r=e[n].m)||r&u)&&(s=a[o]),o=-1;break}s&&this.showSlide(s,1)}this.ended=!0,this.pauseAll(!0),this.vars.notifyObservers("apRemainingTime"),this.vars.notifyObservers("apRemainingTimeMs"),this.vars.notifyObservers("apElapsedTime"),this.vars.notifyObservers("apElapsedTimeMs"),this.lms&&this.lms.endLesson(t);var c=this._s.options;return"Test"!==c.playMode&&"Practice"!==c.playMode&&"Tutorial"!==c.playMode||c.reportMethod==Ft||this.sendReport(),this},mute:function(t){return arguments.length||(t=!0),this.muted(t)},muted:function(i){var s=this.we;return arguments.length?(i=!!i,s.muted(i),t(this.ui).trigger("ap-volume",[i?0:100*s.volume()]),t(this.ui).trigger("ap-mute",[s.muted()]),this.vars.notifyObservers("apVolume"),this.vars.notifyObservers("apMute"),this):s.muted()},volume:function(i){var s=this.we;return arguments.length?(i=as(i,0,1),s.muted(0==i),s.volume(i),t(this.ui).trigger("ap-volume",[100*s.volume()]),t(this.ui).trigger("ap-mute",[s.muted()]),this.vars.notifyObservers("apVolume"),this.vars.notifyObservers("apMute"),this):s.volume()},showAbout:function(){var t=this._s,i={Name:this.name(),Author:this.author(),Copyright:this.copyright(),Homepage:this.homePage(),AppHomePage:t.appHomepage,Generator:t.generator+" "+t.v},s=this;return this.ui.showAbout(i,function(){s.pauseAll(!0)},function(){s.pauseAll(!1)}),this},Ie:function(){if(rs("_increaseBufferingCounter: "+(this.be+1)),0==this.be){this.we.Zs(!0),this.timeline.paused(!0);var t=this.ui.loadingUi;this.En=setTimeout(function(){t.show(),t.setText("")},3e3)}this.be++},Pe:function(){this.be<=0?rs("Invalid _decreaseBufferingCounter call"):(this.be--,rs("_decreaseBufferingCounter: "+this.be),0==this.be&&(this.En&&(clearTimeout(this.En),delete this.En),this.ui.loadingUi.hide(),this.me||(this.we.Zs(!1),this.timeline.paused(!1))))},mn:function(t){var i=qi();if(this.In&&i-this.In<=se.DoubleClickMaxTime&&t.preventDefault(),this.In=i,!($s(t)||!this.ns()||this.Qe&&this.Qe.length)){var s,e,n,h,r,a,o,u=[this.slide,this.bottomSlide,this.topSlide],c=Ks.OUTSIDE,f=t.originalEvent||t;for(h=0,r=u.length;h<r;++h)if(s=u[h]){for(a=0,o=(e=s.Pn).length;a<o;++a)(n=e[a]).ns(!0,!0)&&n.submit(c,!1);for(a=0,o=(e=s.ln).length;a<o;++a)(n=e[a]).ns(!0,!0)&&n.submit(c,f)}}},xs:function(t){if(Qs.hasKeydown(t.which)===("keydown"===t.type)){var i=Qs.combinedCode(t),s=t.target.nodeName.toLowerCase(),e="textarea"===s||"input"===s,n=this.slide&&this.slide.ln.length||this.bottomSlide&&this.bottomSlide.ln.length||this.topSlide&&this.topSlide.ln.length;if(!this.ns()||e||this.Qe&&this.Qe.length)return Qs.shouldPreventDefault(i,e,n)&&Qs.preventDefault(t),void t.stopPropagation();var h,r,a,o,u,c,f,l,d=!1,p=!1,v=[this.slide,this.bottomSlide,this.topSlide],m=t.originalEvent||t;for(o=0,u=v.length;o<u;++o)if(h=v[o])for(c=0,f=(a=h.ln).length;c<f;++c)(r=a[c]).ns(!0,!0)&&((l=r.Rn(i,!0)).result===At.xi&&(d=!0,r.submit(i,m)),l.result!==At.yi&&(p=!0));if(!d)for(o=0,u=v.length;o<u;++o)if(h=v[o]){for(c=0,f=(a=h.Pn).length;c<f;++c)(r=a[c]).ns(!0,!0)&&r.submit(i,!0);for(c=0,f=(a=h.ln).length;c<f;++c)(r=a[c]).ns(!0,!0)&&r.submit(i,m)}(p||Qs.shouldPreventDefault(i,e,n))&&Qs.preventDefault(t),t.stopPropagation()}else t.stopPropagation()},submit:function(){return this.ended?this:(this.slide&&this.slide.submit(),this.bottomSlide&&this.bottomSlide.submit(),this.topSlide&&this.topSlide.submit(),this)},clear:function(t,i){return this.ended&&!i?this:(this.slide&&this.slide.clear(t,i),this.bottomSlide&&this.bottomSlide.clear(t,i),this.topSlide&&this.topSlide.clear(t,i),this)},An:function(t,i){var s,e,n,h=t?t.length:0;for(s=0;s<h;++s){if((n=t[s]).i==i)return n;if(n.cc&&(e=this.An(n.cc,i)))return e}return null},correctResponses:function(e,n){var h,a,o,u,c,f,l,d,p,v,m;switch(n.k){case i.C:for(h=[],o=0,u=(c=n.e.v||[]).length;o<u;++o)n.t==s.V?h.push(Ks.name(c[o],this.ui.Cs)):h.push(Qs.name(c[o]));break;case i.S:for(h=[],o=0,u=(c=n.e.v||[]).length;o<u;++o)h.push(c[o]);break;case i.P:var b;for(h=[],o=0,u=(c=n.e.v||[]).length;o<u;++o)(b=this.An(e.cc,c[o]))&&h.push(b.r);break;case i.L:switch(f=n.cc||[],n.t){case s.nt:case s.it:case s.et:var w;for(h=[],a=[],o=0,u=(c=n.e.v||[]).length;o<u;++o)(w=this.An(f,c[o]))&&a.push(w.r);h.push(a);break;case s.rt:for(h=[],a=[],o=0,u=f.length;o<u;++o)a.push(f[o].r);h.push(a);break;case s.ht:for(h=[],o=0,u=f.length;o<u;++o)if(f[o].k==i.S)if(l=(c=f[o].e.v||[]).length,h.length>0)for(v=h,h=[],p=0;p<v.length;++p)for(d=0;d<l;++d)(m=t.extend({},v[p]))[f[o].r]=c[d],h.push(m);else for(d=0;d<l;++d)(m={})[f[o].r]=c[d],h.push(m);break;case s.ot:var g,_,k,y,T;for(h=[],a={},k={},o=0,u=f.length;o<u;++o)if(f[o].f&r)for(l=(c=(_=f[o]).e.v||[]).length,d=0;d<l;++d)(g=this.An(f,c[d]))&&(k[g.r]||(k[g.r]=[]),k[g.r].push(_.r));for(y in k)if(l=(T=k[y]).length,h.length>0)for(v=h,h=[],p=0;p<v.length;++p)for(d=0;d<l;++d)(m=t.extend({},v[p]))[y]=T[d],h.push(m);else for(d=0;d<l;++d)(m={})[y]=T[d],h.push(m);break;case s.ut:h=[]}break;case i.H:for(h=[],o=0,u=(f=n.cc||[]).length;o<u;++o)if(f[o].k==i.H)if(l=(c=f[o].e.v||[]).length,h.length>0)for(v=h,h=[],p=0;p<v.length;++p)for(d=0;d<l;++d)(m=t.extend({},v[p]))[f[o].r]=c[d],h.push(m);else for(d=0;d<l;++d)(m={})[f[o].r]=c[d],h.push(m);break;case i.Y:h=[];var x=n.e.v||[];for(o=0,u=x.length;o<u;++o)if(l=(c=x[o].v||[]).length,h.length>0)for(v=h,h=[],p=0;p<v.length;++p)for(d=0;d<l;++d)(m=t.extend({},v[p]))[x[o].r]=c[d],h.push(m);else for(d=0;d<l;++d)(m={})[x[o].r]=c[d],h.push(m)}return h},learnerResponse:function(t,e,n){var h,r,a,o,u,c,f;switch(e.k){case i.C:h=js.name(n.v,this.ui.Cs);break;case i.S:h=n.v;break;case i.P:h="",(c=this.An(t.cc,n.v))&&(h=c.r);break;case i.L:switch(a=e.cc,e.t){case s.nt:case s.it:case s.et:case s.rt:for(h=[],o=0,u=(r=n.v).length;o<u;++o)(c=this.An(a,r[o]))&&h.push(c.r);break;case s.ht:h={},r=n.v;for(f in r)(c=this.An(a,f))&&(h[c.r]=r[f]);break;case s.ot:var l,d;h={},r=n.v;for(f in r)if(c=this.An(a,f))for(o=0,u=(l=r[f]).length;o<u;++o)(d=this.An(a,l[o]))&&(h[d.r]=c.r);break;case s.ut:var p,v=function(t,s){var e,n,h,r=-1,a=!0;for(n=0,h=t.length;n<h;++n)if(t[n].k==i.O){if(a?(a=!1,r++,e=0):e++,s==t[n].i)return{row:r,col:e}}else a=!0};for(h={},o=0,u=(r=n.v).length;o<u;++o)(p=v(a,r[o]))&&(1==u?h[e.r]=parseInt(p.col+1):h[e.r+"_"+p.row]=parseInt(p.col+1))}break;case i.H:for(a=e.cc,h=[],o=0,u=(r=n.v).length;o<u;++o)(c=this.An(a,r[o]))&&h.push(c.r);break;case i.Y:h={},r=n.v;var m,b=(e.e||{}).v||[];for(m in r)(c=b[m])&&(h[c.r]=r[m])}return h},Dn:function(t){if(!t)return 0;var e,n,h,r=0;for(e=0,n=t.length||0;e<n;++e)switch((h=t[e]).k){case i.S:case i.C:case i.P:case i.H:h.e.f&Mt||r++;break;case i.L:switch(h.t){case s.nt:case s.it:case s.et:case s.ht:case s.rt:case s.ot:case s.ut:h.e.f&Mt||r++;break;default:r+=this.Dn(h.cc)}}return r},interactionCount:function(){if(void 0!==this.Nn)return this.Nn;var t,i,s,e=this._s.slides,n=0;for(i=0,s=e.length;i<s;++i)t=e[i],n+=this.Dn(t.cc);return this.Nn=n,n},takenInteractionCount:function(t){var i,s,e,n,h,r=this.ws.slides,a=0;for(s=0,e=r.length;s<e;++s)if(i=r[s])for(n in i)(h=i[n])&&!h.n&&void 0!==h.r&&h.r!=At.yi&&(void 0===t?a++:t==h.r&&a++);return a},takenSlideCount:function(){var t,i,s=this.ws.slides,e=0;for(t=0,i=s.length;t<i;++t)s[t]&&e++;return e},score:function(){var t,i,s,e,n,h=this.ws.slides,r=0;for(i=0,s=h.length;i<s;++i)if(t=h[i])for(e in t)(n=t[e])&&(r+=n.p||0,r-=n.sp||0);return ls(r,10)},scoreSubtract:function(){var t,i,s,e,n,h=this.ws.slides,r=0;for(i=0,s=h.length;i<s;++i)if(t=h[i])for(e in t)(n=t[e])&&(r+=n.sp||0);return r},maxControlScore:function(t){var e,n,h,a,o,u,c,f,l=0,d=t.e.f&xt&&!(t.e.f&Mt),p=t.e.f&Et;if(!d){for(n=t.cc?t.cc.length:0,e=0;e<n;++e)l+=this.maxControlScore(t.cc[e]);return l}if(!p)return t.e.m||0;switch(t.k){case i.C:case i.S:case i.P:h=t.e.m||[0],l=Yi.apply(null,h);break;case i.L:switch(n=(a=t.cc||[]).length,t.t){case s.it:case s.nt:if(n>0)for(l=a[0].e.m||0,e=1;e<n;++e)o=a[e],l=Yi(l,o.e.m||0);break;case s.et:for(u=t.e.v||[],e=0;e<n;++e)o=a[e],u.indexOf(o.i)<0||(l+=o.e.m||0);break;case s.ht:for(e=0;e<n;++e)(o=a[e]).k===i.S&&(o.e.f&Et?(h=o.e.m||[0],l+=Yi.apply(null,h)):l+=o.e.m||0);break;case s.ot:var v,m,b,w,g=[],_=[];for(e=0;e<n;++e)if((o=a[e]).f&r&&(b=o.e.v,w=o.e.m,b&&w&&b.length==w.length))for(c=0,f=b.length;c<f;++c)v=b[c],(m=g.indexOf(v))<0?(g.push(v),_.push(w[c])):_[m]<w[c]&&(_[m]=w[c]);for(e=0,n=_.length;e<n;++e)l+=_[e]}break;case i.H:var k=(T=t.e||{}).v||[],y=T.h;for(n=(a=t.cc||[]).length,y||(l=void 0),e=0;e<n;++e)(o=a[e]).k===i.C&&k.indexOf(o.i)>=0&&(y?l+=o.e.m||0:l=void 0===l?o.e.m||0:Yi(l,o.e.m||0));void 0===l&&(l=0);break;case i.Y:var T,x=(T=t.e||{}).v||[];for(n=x.length,e=0;e<n;++e){l+=x[e].m||0}}return l},maxScore:function(){if(void 0!==this.On)return this.On;var t,i,s,e,n,h,r=this._s.slides;for(h=0,i=0,s=r.length;i<s;++i)for(e=0,n=(t=r[i].cc||[]).length;e<n;++e)h+=this.maxControlScore(t[e]);return this.On=h,h},result:function(){var t=!0,i=this._s.options;switch(i.passCondition){case Dt:t=this.percentageScore()>=i.passConditionValue;break;case Nt:t=this.score()>=i.passConditionValue;break;case Ot:t=this.takenInteractionCount(At.xi)>=i.passConditionValue;break;case Lt:t=this.takenSlideCount()>=i.passConditionValue}return t},elapsedTime:function(){return this.ended||(this.Ln=(this.Ye||0)+this.timeline.totalTime()),this.Ln||0},remainingTime:function(){if(this.ended)return 0;var t=0,i=this.options.playMode;return(t="Tutorial"!==i&&"Practice"!==i&&"Test"!==i||!this._s.options.testMaxTime?this.duration()-this.time():60*this._s.options.testMaxTime*1e3-this.elapsedTime())<0?0:t},responseResultString:function(t){var i=this.ui.Cs;return t?t==At.xi?i.text("Correct"):t==At.Si?i.text("Incorrect"):t==At.Ei?i.text("Incomplete"):t==At.Ti?"":"Unknown":"Unknown"},requirements:function(){var t=this._s.options,i=this.ui.Cs;switch(t.passCondition){case Dt:return i.text("RequirePercent",i.number(t.passConditionValue));case Nt:return i.text("RequirePoints",i.number(t.passConditionValue));case Ot:return i.text("RequireAnswers",i.number(t.passConditionValue));case Lt:return i.text("RequireSlidesViewed",i.number(t.passConditionValue))}return i.text("RequireNone")},interactionTypeName:function(t){var e=this.ui.Cs;switch(t.k){case i.C:return t.t==s.V?e.text("MouseClick"):t.t==s.j?e.text("KeyStroke"):t.t==s.H?e.text("HotSpot"):"Unknown";case i.S:return e.text("TextBox");case i.P:return e.text("DropCtrl");case i.L:switch(t.t){case s.nt:return e.text("TrueFalse");case s.it:return e.text("MultipleChoice");case s.et:return e.text("MultipleResponse");case s.rt:return e.text("Sequence");case s.ht:return e.text("FillMultipleBlank");case s.ot:return e.text("DragDrop");case s.ut:return e.text("Likert")}break;case i.Y:return e.text("FillBlankNew");case i.H:return e.text("HotSpot")}return"Unknown"},formatResponse:function(t,e,n,h){var r,a,o="";switch(n){case i.C:case i.S:o=t;break;case i.P:o=t+"[.]"+e;break;case i.L:switch(h){case s.nt:case s.it:case s.et:case s.rt:for(o="",r=0,a=t.length||0;r<a;++r)""!=o&&(o+="[,]"),o+=t[r];break;case s.ht:case s.ot:case s.ut:var u,c=[];o="";for(u in t)t.hasOwnProperty(u)&&c.push(u);for(c.sort(),r=0,a=c.length;r<a;++r)""!=o&&(o+="[,]"),o+=c[r]+"[.]"+t[c[r]]}break;case i.H:for(o="",r=0,a=t.length||0;r<a;++r)""!=o&&(o+="[,]"),o+=t[r];break;case i.Y:var f,l=[];o="";for(f in t)t.hasOwnProperty(f)&&l.push(f);for(l.sort(),r=0,a=l.length;r<a;++r)""!=o&&(o+="[,]"),o+=l[r]+"[.]"+t[l[r]]}return o},reportData:function(i,s){var e,n,h,r,a,o,u,c,f,l,d,p,v,m=t.cookie("userid")||"",b=this.ui.Cs,w={},g=this._s;if(s){for(;""==m;)m=prompt(b.text("EnterUserID"),"");if(null===m)return null;t.cookie("userid",m)}for(w.prezName=g.projectName,w.prezDesc=g.description,w.date=(new Date).toUTCString(),w.userId=m,w.elapsedTime=Math.ceil(this.elapsedTime()/1e3),w.totalSlides=this.slideCount(),w.takenSlides=this.takenSlideCount(),w.totalInteractions=this.interactionCount(),w.takenInteractions=this.takenInteractionCount(),w.correctCount=this.takenInteractionCount(At.xi),w.score=this.score(),w.maxScore=this.maxScore(),w.percentage=w.maxScore&&w.score>0?Gi(100*w.score/w.maxScore):0,w.passed=this.result(),w.passCondition=g.options.passCondition,w.passValue=g.options.passConditionValue,w.interactions=[],l=0,p=(e=this.ws.slides).length;l<p;++l)if(n=e[l])for(h in n)if((r=n[h])&&r.r&&!r.n&&(a=g.slides[l],o=this.An(a.cc,h))){for(f=this.learnerResponse(a,o,r),c=this.correctResponses(a,o),(u={}).type=this.interactionTypeName(o),u.slide=l,u.reportid=o.r,u.attempts=r.a||0,u.result=r.r,v=(r.p||0)-(r.sp||0),u.score=ls(v,10),u.maxScore=this.maxControlScore(o),u.learnerResponse=this.formatResponse(f,u.reportid,o.k,o.t),u.correctResponses=[],d=0;d<c.length;++d)u.correctResponses.push(this.formatResponse(c[d],u.reportid,o.k,o.t));w.interactions.push(u)}return void 0===i&&(i=Vt),i!=Gt?this.formatReportData(w,i):w},formatReportData:function(t,i){var s,e,n,h,r,a=t.interactions,o=a.length||0,u="\n",c="\t";this.ui.Cs;switch(i){case Yt:case Ht:case Xt:break;case Bt:for(r='<?xml version="1.0" encoding="UTF-8"?>\n',r+="<Content>\n",r+="\t<Report>\n",r+="\t\t<Name>"+cs(t.prezName)+"</Name>"+u,r+="\t\t<Description>"+cs(t.prezDesc,!0)+"</Description>"+u,r+="\t\t<Date>"+t.date+"</Date>"+u,r+="\t\t<UserID>"+t.userId+"</UserID>"+u,r+="\t\t<TotalTime>"+t.elapsedTime+"</TotalTime>"+u,r+="\t\t<SlideCount>"+t.totalSlides+"</SlideCount>"+u,r+="\t\t<TakenSlide>"+t.takenSlides+"</TakenSlide>"+u,r+="\t\t<TotalInteraction>"+t.totalInteractions+"</TotalInteraction>"+u,r+="\t\t<TakenInteraction>"+t.takenInteractions+"</TakenInteraction>"+u,r+="\t\t<Correct>"+t.correctCount+"</Correct>"+u,r+="\t\t<Score>"+t.score+"</Score>"+u,r+="\t\t<MaxScore>"+t.maxScore+"</MaxScore>"+u,r+="\t\t<PassCondition>"+t.passCondition+"</PassCondition>"+u,r+="\t\t<PassValue>"+t.passValue+"</PassValue>"+u,r+="\t\t<Percent>"+t.percentage+"</Percent>"+u,r+="\t\t<Result>"+(t.passed?"true":"false")+"</Result>"+u,r+="\t\t<Details>\n",s=0;s<o;++s){for(e=a[s],r+="\t\t\t<Interaction>\n",r+="\t\t\t\t<SlideIndex>"+(parseInt(e.slide)+1)+"</SlideIndex>"+u,r+="\t\t\t\t<ReportID>"+e.reportid+"</ReportID>"+u,r+="\t\t\t\t<Attempts>"+e.attempts+"</Attempts>"+u,r+="\t\t\t\t<Score>"+e.score+"</Score>"+u,r+="\t\t\t\t<MaxScore>"+e.maxScore+"</MaxScore>"+u,r+="\t\t\t\t<Result>"+this.responseResultString(e.result)+"</Result>"+u,r+="\t\t\t\t<Type>"+e.type+"</Type>"+u,r+="\t\t\t\t<LearnerResponse>"+cs(""+e.learnerResponse)+"</LearnerResponse>"+u,r+="\t\t\t\t<CorrectResponses>\n",n=0,h=e.correctResponses.length;n<h;++n)r+="\t\t\t\t\t<CorrectResponse>"+cs(""+e.correctResponses[n])+"</CorrectResponse>"+u;r+="\t\t\t\t</CorrectResponses>\n",r+="\t\t\t</Interaction>\n"}r+="\t\t</Details>\n",r+="\t</Report>\n",r+="</Content>\n";break;case zt:case Vt:var f,l={};for(l.Name=t.prezName,l.Description=t.prezDesc,l.Date=t.date,l.UserID=t.userId,l.TotalTime=t.elapsedTime,l.SlideCount=t.totalSlides,l.TakenSlide=t.takenSlides,l.TotalInteraction=t.totalInteractions,l.TakenInteraction=t.takenInteractions,l.Correct=t.correctCount,l.Score=t.score,l.MaxScore=t.maxScore,l.PassCondition=t.passCondition,l.PassValue=t.passValue,l.Percent=t.percentage,l.Result=t.passed,l.Details=[],s=0;s<o;++s)e=a[s],(f={}).SlideIndex=parseInt(e.slide)+1,f.ReportID=e.reportid,f.Attempts=e.attempts,f.Score=e.score,f.MaxScore=e.maxScore,f.Result=this.responseResultString(e.result),f.Type=e.type,f.LearnerResponse=e.learnerResponse,f.CorrectResponses=e.correctResponses,l.Details.push(f);r=i===zt?JSON.stringify(l,null,c):l}return r},detailedReportData:function(t){var i,s,e,n,h,r,a=this.reportData(Gt,!1).interactions,o=a.length||0,u=this.ui.Cs;for(i="<div class='ap-detailed-result'>",i+="<table width='100%' height='auto' border='1px' bordercolor='#808080' bordercolordark='#808080' bordercolorlight='#C0C0C0' cellspacing='0px' rules='all' frame='box' cellpadding='0px'><thead><tr>",i+="<th width='10%' align='center'>"+u.text("NoSign")+"</th>",i+="<th width='10%' align='center'>"+u.text("SlideIndex")+"</th>",i+="<th width='10%' align='center'>"+u.text("ID")+"</th>",i+="<th width='10%' align='center'>"+u.text("Attempts")+"</th>",i+="<th width='10%' align='center'>"+u.text("Score")+"</th>",i+="<th width='10%' align='center'>"+u.text("MaxScore")+"</th>",i+="<th width='10%' align='center'>"+u.text("Result")+"</th>",t?(i+="<th width='15%' align='center'>"+u.text("LearnerResponse")+"</th>",i+="<th width='15%' align='center'>"+u.text("CorrectResponses")+"</th>"):i+="<th width='30%' align='center'>"+u.text("LearnerResponse")+"</th>",i+="</tr></thead><tbody>",e=0;e<o;++e){if(n=a[e],i+="<tr>",i+="<td align='center'>"+u.number(e+1)+"</td>",i+="<td align='center'>"+u.number(parseInt(n.slide)+1)+"</td>",i+="<td align='center'>"+n.reportid+"</td>",i+="<td align='center'>"+u.number(n.attempts)+"</td>",i+="<td align='center'>"+u.number(n.score)+"</td>",i+="<td align='center'>"+u.number(n.maxScore)+"</td>",i+="<td align='center'>"+this.responseResultString(n.result)+"</td>",i+="<td align='center' class='ap-result-response' style='word-break:break-all'>"+cs(""+n.learnerResponse)+"</td>",t){for(s="",h=0,r=n.correctResponses.length;h<r;++h)""!=s&&(s+="<br/><br/>"),s+=cs(""+n.correctResponses[h]);i+="<td align='center' class='ap-result-response' style='word-break:break-all'>"+s+"</td>"}i+="</tr>"}return i+="</tbody></table>",i+="</div>"},sendReport:function(){var i=this._s.options,s=this.reportData(i.reportFormat,!0),e=this.ui,n=e.Cs;if(null!==s)switch(i.reportMethod){case Ut:try{var h={type:"POST",url:i.reportAddress,data:"report="+s,timeout:6e4,success:function(){e.showMsg(n.text("SuccessSendReport"),!0)},error:function(t,s,h){var r;h&&(h instanceof Error?r=h.name+": "+h.message:h.toString&&(r=h.toString())),r||(r=n.text("CouldnotSendReport")+i.reportAddress+(s?": "+s:"")),e.showMsg(r,!0)}};e.showMsg(n.text("SendingReport"),!0),t.ajax(h)}catch(t){var r;return r=t instanceof Error?t.name+": "+t.message:t.toString?t.toString():n.text("CouldnotSendReport")+i.reportAddress,e.showMsg(r,!0),!1}}},getResource:function(t){return this.resourceLocation+this.fileNamePrefix+"res_"+t},getImgResource:function(t){return this.resourceLocation+this.fileNamePrefix+"img_"+t},getThumbnailResource:function(t){return this.resourceLocation+this.fileNamePrefix+"thumb_"+t+".jpg"},showToolbar:function(t){return arguments.length||(t=!0),this.ui.showToolbar(t),this.vars.notifyObservers("apToolbarVisible"),this},toolbarVisible:function(){return this.ui.toolbarVisible()},showToc:function(i){return arguments.length||(i=!0),this.ui.showToc(i),t(this.ui).trigger("ap-toc",[i]),this.vars.notifyObservers("apTOCVisible"),this},tocVisible:function(){return this.ui.tocVisible()},showSidebar:function(i){if(arguments.length||(i=!0),this.ui.showSidebar(i),t(this.ui).trigger("ap-sidebar",[i]),this.ze&&(!i||i&&!this.muted()))for(var s=0,e=this.ze.length;s<e;++s)this.ze[s].muted(!i);return i&&this.xn(),this.vars.notifyObservers("apSidebarVisible"),this},sidebarVisible:function(){return this.ui.sidebarVisible()},wn:function(t){t&&this.xn()},showResources:function(i){return arguments.length||(i=!0),this.ui.showResources(i),t(this.ui).trigger("ap-resources",[i]),this},resourcesVisible:function(){return this.ui.resourcesVisible()},author:function(){return this._s.author},homePage:function(){return this._s.homepage},copyright:function(){return this._s.copyright},name:function(){return this._s.projectName},description:function(){return this._s.description},currentSlideIndex:function(t){return arguments.length?this.showSlide(t-1):this.slideIndex+1},currentSlideLabel:function(){return this.slide&&this.slide.name()||""},percentageScore:function(){var t=this.score(),i=this.maxScore();return os(t,i)?100:i&&t>0?Gi(100*t/i):0},authorVideoView:function(t){var i=0==arguments.length?0:t;return this.ze&&this.ze.length>i?this.ze[i]:null},playMode:function(){return this.options.playMode},registerTimer:function(t){return this.Fn?this.Fn.push(t):this.Fn=[t],this},unregisterTimer:function(t){var i=this.Fn.indexOf(t);return i>=0&&this.Fn.splice(i,1),this},tick:function(i){if(this.timeline&&!this.timeline.me){var s=this.timeline.Un,e=(i-s)*this.timeline.Cn;if(this.Fn&&this.Fn.length){var n=this.timeline.Yn(e);this.timeline.Hn=n.totalTime;for(var h=0;h<this.Fn.length;++h)if(this.Fn[h].tick(i),this.timeline.Un!=s)return}this.timeline.update(e),this.vars.tick(i),t(this.ui).trigger("ap-progress",[this.slideIndex,this.slideId(this.slideIndex),this.ae.time()]);var r=this.elapsedTime();if(!this.Bn||i-this.Bn>=300){this.Bn=i,this.vars.notifyObservers("apElapsedTime"),this.vars.notifyObservers("apElapsedTimeMs"),this.vars.notifyObservers("apRemainingTime"),this.vars.notifyObservers("apRemainingTimeMs"),this.vars.notifyObservers("apProgress");var a=this.options.playMode;("Tutorial"===a||"Practice"===a||"Test"===a)&&this._s.options.testMaxTime&&r>=60*this._s.options.testMaxTime*1e3&&this.end(!0),this.slide&&this.slide._s.w&&this.qe(!0);var o=Ji.activeElement,u=o==this.container||(!o||o==Ji.body)&&this.container&&this.container.parentElement==Ji.body||this.Qe&&this.Qe.length&&t.contains(t(".ap-slides",this.container)[0],o);if(u){var c=window.getSelection&&getSelection();c&&c.toString()&&(u=!1)}u&&r>=300&&this.zn()}if(this.rn=void 0==this.rn?this.ae.time():Yi(this.rn,this.ae.time()),!this.ended){this.slide&&(this.ws.ts=this.ae.time()-this.slide._s.st),this.ws.elapsedTime=r;var f=this.vars.Ms;for(var l in f)this.vars.bs(l)&&(this.ws.vars[l]=this.vars.get(l));this.lms&&this.started&&!this.ended&&this.ws.ts-this.lms.getSuspendDataTS()>6e4&&this.lms.storeSuspendData(this.ws,!0)}}},zn:function(){var i=this.Qe&&this.Qe.length?".ap-feedback-slides":".ap-slides",s=t(i+' [tabindex]:not([tabindex="-1"])',t(this.container)).filter(":visible");if(s.length>0){(s=s.toArray()).sort(function(t,i){return t.tabIndex-i.tabIndex});var e=s[0].getBoundingClientRect();if(e.right>0&&e.bottom>0){var n=this.ui.stage()[0].getBoundingClientRect(),h=Math.min(e.right,n.right)-Math.max(e.left,n.left);(h>30||os(h,e.right-e.left))&&((h=Math.min(e.bottom,n.bottom)-Math.max(e.top,n.top))>30||os(h,e.bottom-e.top))&&s[0].focus({preventScroll:!0})}}},qe:function(i){if(i){var s,e,n,h="A"===this._s.generator.charAt(0),r={position:"absolute",display:"block",zIndex:$t.Li},a=h?r:{position:"absolute",display:"block"},o=h?15:50,u="a";if(o+="px",u+="lt",(!this.Xn||!h&&this.Xn[0].childNodes.length<4)&&(this.Xn=t(h?"<img />":"<div><img /><img /><img /><img /></div>"),s="pointer",s+="Event",s+="s",this.Xn.css(s,"none")),n="da",n+="ta",n+=":i",n+="ma",n+="ge",n+="/p",n+="ng",n+=";b",n+="as",n+="e6",n+="4,",n+=this._s.wmd,s="min",e="20",e+="0px",a[s+="Width"]=e,s="min",e="50",e+="px",a[s+="Height"]=e,h)this.Xn[0].src!==n&&(this.Xn[0].src=n),this.Xn[0][u]=this._s.generator,r.top=r.right=o,r.left="auto";else{var c,f,l,d=this.Xn[0].childNodes;for(f=0,l=d.length;f<l;++f)(c=d[f]).src!==n&&(c.src=n),c[u]=this._s.generator,0==f||3==f?(a.left=o,a.right="auto"):(a.left="auto",a.right=o),f<=1?(a.top=o,a.bottom="auto"):(a.top="auto",a.bottom=o),t(c).css(a);r.top=0,r.left=0,r.width="100%",r.height="100%"}this.Xn.css(r);var p=t(".ap-canvas",this.container);this.Xn[0].parentNode&&this.Xn[0].parentNode===p[0]||p.append(this.Xn)}else this.Xn&&this.Xn.hide()},prez:function(){return this},on:function(t,i){return Re.prototype.on.call(this,t,i)},off:function(t,i){return Re.prototype.off.call(this,t,i)},ns:function(){return"Demo"!==this.options.playMode&&!this.be&&(!this.me||this.ended)},cssUrl:function(){return void 0!==this.options.css?this.options.css:this._s.options.css},highlightFocus:function(t){if(!arguments.length)return void 0!==this.options.highlightFocus?this.options.highlightFocus:this._s.options.hilightFocus;this.options.highlightFocus=t},variable:function(t,i){return 1===arguments.length?this.vars.get(t):this.vars.set(t,i)},startTimeline:function(t,i){return typeof t===Ri&&(t=this.slide&&this.slide.timeline(t)),t?(t.remove(),t.Gn&&(t.Gn.remove(),t.Gn=null),t.started()&&t.totalTime()<t.totalDuration()&&t.pause(t.totalDuration()),t.startTime(this.timeline.totalTime()),i&&(t.Gn=new sh(function(){i.call(t)},{startTime:t.duration(),duration:0}),t.addChild(t.Gn)),this.timeline.addChild(t),t.setup(),t.play(0),t):null},pauseTimeline:function(t,i){return typeof t===Ri&&(t=this.slide&&this.slide.timeline(t)),t?(arguments.length<2&&(i=!0),i?t.paused(!0):t.started()?t.paused(!1):this.startTimeline(t),t):null},reviewCourse:function(){t(this.ui).trigger("ap-slideCompleted",[this.slide._s.i,!0]),this.Mn=!0,this.end(),this.firstSlide(),this.pauseAll(!1)},isReviewingMode:function(){return!0===this.Mn},runAction:function(t,i,s){for(var e=null,n=0,h=this._s.adActions.length;n<h;n++){var r=this._s.adActions[n];if(r[0]===t){e=r[1];break}}if(e){n=0;for(var a=e.length;n<a;n++){var o=e[n],u=o[0],c=o[1],f=o[2],l=o[3];if(null!==l){var d=i[l];switch(u){case Rt.zt:case Rt.Xt:o[1]=d+1;break;case Rt.Gt:case Rt.Vt:case Rt.$t:case Rt.Wt:case Rt.jt:o[1]=d;break;case Rt.Qt:case Rt.Kt:case Rt.ri:case Rt.si:case Rt.ci:case Rt.ii:c[0]=d;break;case Rt.qt:case Rt.Jt:o[1]=d;break;case Rt.oi:case Rt.Zt:var p=this._s;if(void 0!==p.ai)for(var v=0,m=p.ai.length;v<m;++v){var b=p.ai[v];b[1]===d&&(c[0]=b[0],c[1]=b[2])}break;case Rt._t:c[0]=d[0],c[1]=d[1];break;case Rt.fi:case Rt.ei:case Rt.ni:case Rt.hi:o[1]=d;break;case Rt.li:var w=this.We(d);c[0]=w.fbi;break;case Rt.di:w=this.We(d);o[1]=w.fbi;break;case Rt.bi:c[0]=d;break;case Rt.wi:case Rt.gi:case Rt._i:o[1]=d}}v=0;for(var g=f.length;v<g;v++){var _=f[v],k=_[3],y=_[4],T=y[0],x=i[T],S=y[1],E=i[S];switch(_[1]){case kt.gt:void 0!==T&&(k[1]=x),void 0!==S&&(k[0]=E);break;case kt._t:x!=E[0]&&(k[0]=k[1]=0),k[1]=x,k[0]=E[1];break;case kt.kt:k[0]=E;break;case kt.P:var M=s.currentTarget&&s.currentTarget.slide&&s.currentTarget.slide.object(E);k[0]=M.id();break;case kt.Tt:var C=this.slide.object(x);k[1]=C.id(),k[0]=E;break;case kt.V:"left click"===x.toLowerCase()?k[0]=1:"left double-click"===x.toLowerCase()?k[0]=4:"right click"===x.toLowerCase()&&(k[0]=3);break;case kt.yt:case kt.j:k[0]=x}}}var I=-1,P=(a=e.length,this.prez()),R=(n=0,function(){++I<a&&Js(e[I],P,s,I===a-1?null:R)});R()}},vs:function(t,s,e,n,h){var r=this.bottomSlide,a=r.ls(function(t){return t.actionData===e});if(a)a.remove(),a.started()&&a.totalTime()<a.totalDuration()&&a.pause(a.totalDuration());else{if(r.Vn||(r.Vn=0),r.Vn>=this.we.Vs)return;var u=r.defaultCtrlData();u.k=i._,u.mi=t,u.md=s,u.f|=o;var c=r.createChild(u);++r.Vn,(a=new ah).actionData=e,n&&(a.cn=!0),r.ds(a),we(a,c,t,0,s+500,s),a.addChild(new sh(function(){setTimeout(function(){r.ps(a)},0),c.remove(),--r.Vn,h&&h()},{startTime:a.duration(),duration:0}))}a.startTime(this.timeline.totalTime()),this.timeline.addChild(a),a.setup(),a.play(0)},$n:function(i,s,e,n,h,r){var a=Ji.createElement("canvas");bs(a,{width:2*e+2,height:2*e+2});var o=a.style;o.position="absolute",o.left=i-e-1+"px",o.top=s-e-1+"px",o.pointerEvents="none",o.zIndex=$t.Ni,t(".ap-slides",this.container)[0].appendChild(a);var u=this.bottomSlide,c=new ah,f=ji({},Ie,{node:a,slide:u,Wn:0,jn:n,Qn:h,Kn:e+1,qn:e+1,Jn:e});c.cn=!0,u.ds(c),c.addChild(new eh(f,"ceProgress",{startTime:0,duration:r,tweenParams:[0,100]})).addChild(new sh(function(){setTimeout(function(){u.ps(c)},0),a.parentNode&&a.parentNode.removeChild(a)},{startTime:r})),c.startTime(this.timeline.totalTime()),this.timeline.addChild(c),c.setup(),c.play(0)}}),_e=Ji.createElementNS(Ai,"svg"),ke=_e.createSVGMatrix(),ye=_e.createSVGPoint();function Te(t,i,s){ye.x=i,ye.y=s;var e=ye.matrixTransform(t);return{x:e.x,y:e.y}}var xe=Ds({$init:function(t,i){this.Zn=t,this._s=i||[],this.th=k,this.se=-1},useDefault:function(){var t,i,s=0;for(t=0,i=this._s.length;t<i;++t)if(this._s[t].d){s=t;break}return this.at(s)},is:function(t){var i=this._s[this.se];return i&&i[typeof t===Ri?"n":"i"]===t},at:function(t){if(!arguments.length)return this.se;var i=this._s[t];if(!i)return!1;this.se=t;var s=this.th;void 0!==i.p&&(this.th=i.p);var e=i.at;if(i.im){var n=i.im;this.Zn.ih(n[0],n[1],n[2],e)}var h,r,a,o=this.Zn.shape,u=i.f,c=i.l,f=i.s,l=i.t;if(this.layout(),i.tg&&this.Zn.setIconSize){var d=i.tg;if(!!d[6]){var p=(this.th&S)===S;o.createIcon(p,d[0],d[1],d[2],ws(d[3]),ws(d[4]),ws(d[5])),o.updateIcon(),this.Zn.setIconSize&&this.Zn.setIconSize(d[0])}}if(i.a){if(!i.a.params){i.a.type=i.a[0],i.a.params=i.a.slice(1);var v=i.a.params[0];if(v)for(r=0,a=v.length;r<a;++r)v[r]/=Ii}this.Zn.shape.shape(i.a.type,i.a.params)}if(u){if(!u.normed){if(u[0]===vt.vt){var m,b=u[2];for(r=0,a=b.length;r<a;++r)m=[(h=b[r])[0]],h=h[1],m.push(ws(h>>16&255,h>>8&255,255&h)),m.push((h>>24&255)/255),b[r]=m}u.normed=!0}switch(u[0]){case vt.dt:o.fillNone();break;case vt.pt:h=u[1],o.fillSolid(h>>16&255,h>>8&255,255&h,(h>>24&255)/255);break;case vt.vt:u[1]?o.fillRadialGradient(u[2],u[3],u[4],u[5],u[6]):o.fillLinearGradient(u[2],u[3],u[4],u[5]);break;case vt.u:u.length>1?o.fillImage(u[1],u[2],u[3],u[4],u[5]):o.fillNone()}}else o.fillNone();return c?(o.lineWidth(c[0]),h=c[1],o.lineColor(h>>16&255,h>>8&255,255&h,(h>>24&255)/255),o.lineJoin(c[2]),o.lineCap(c[2]),void 0!==c[3]?o.endArrow(c[3],c[4]):o.endArrow(rt.NONE),void 0!==c[5]?o.startArrow(c[5],c[6]):o.startArrow(rt.NONE),o.lineStyle(c[2])):o.lineStyle("none"),f?(h=f[3],o.applyEffectShadow(f[0],f[1],f[2],h>>16&255,h>>8&255,255&h,(h>>24&255)/255)):o.clearEffectShadow(),l?(!this.Zn.sh&&this.Zn.html(l[0]||""),this.Zn.textStyle(l[1]).textVerticalAlign(l[2])):!this.Zn.sh&&this.Zn.html(""),this.Zn.rotate(i.r||0),this.Zn.eh&&(this.Zn.shape||this.Zn.textContainer)&&(this.Zn.parent&&this.Zn.parent.nh(),this.Zn.hh()),e||(this.Zn.textNode&&(e=(e=this.Zn.textNode.textContent.replace(/\r|\n/g," ")).replace(/ +(?= )/g,"").trim()),e||(e=this.Zn._s.n,this._s.length>1&&(e+=" "+i.n))),e?this.Zn.accText(e):this.Zn.accText(""),this.rh(s,this.th),!0},id:function(t){if(!arguments.length){var i=this._s[this.se];return i?i.i:-1}return this.at(this.find("i",t))},name:function(t){if(!arguments.length){var i=this._s[this.se];return i?i.n:""}return this.at(this.find("n",t))},flags:function(t){if(!arguments.length)return this.th;var i,s=k,e=this.th;return t&S&&(s|=S),t&x?s|=x:t&y?s|=y:t&T?s|=T:t&E?s|=E:t&M?s|=M:t&C?s|=C:t&I?s|=I:t&P?s|=P:t&R?s|=R:t&A?s|=A:t&D&&(s|=D),this.ah=!0,i=this.at(this.find("p",s)),delete this.ah,this.rh(e,t),i},rh:function(t,i){this.th=i,!this.ah&&this.Zn.oh&&this.Zn.oh(t,i)},has:function(t){var i=this._s[this.se];return i&&(i.p&t)===t},find:function(t,i){var s,e;for(s=0,e=this._s.length;s<e;++s)if(this._s[s][t]===i)return s;return-1},uh:function(t){var i,s=this._s[this.se],e=s&&s.w&&s.w[this.Zn.slide.Es.layoutIndex];return e&&e.r&&(i=[(e=e.r)[0],e[1],e[4]]),i},layout:function(){var t=this._s[this.se],i=t&&t.w&&t.w[this.Zn.slide.Es.layoutIndex];if(i){if(!i.normed){var s,e,n,h,r,a=i.p;if(a)for(s=0;s<a.length;++s){if(s<2){if(c=a[s])for(u=0,h=c.length;u<h;++u)for(r=c[u],e=0;e<6;++e)r[e]/=Ii}else for(var o=a[s],u=0;u<o.length;++u){var c,f=o[u];if(f)if(c=f.p)for(e=0,h=c.length;e<h;++e)for(r=c[e],n=0;n<6;++n)r[n]/=Ii}}i.normed=!0}if(i.b&&this.Zn.flexbox(i.b),i.c)this.Zn.flexChild(i.c);else if(i.r){var l,d,p=i.r,v=Ts(p[2]),m=Ts(p[3]);this.Zn.center(1===p[5]||3===p[5],2===p[5]||3===p[5]),this.Zn.fh(p[0],p[1],p[4]),"%"===v.unit||"a"===v.unit?v.value/=Ii:v.unit||(v.unit="px"),"%"===m.unit||"a"===m.unit?m.value/=Ii:m.unit||(m.unit="px"),l=!(d="a"===m.unit)&&"a"===v.unit,this.Zn.autoWidth(l).autoHeight(d),(d||l)&&(this.Zn.lh=d?m.value:v.value,this.Zn.dh=!0),l||this.Zn.width(v.value+v.unit),d||this.Zn.height(m.value+m.unit)}this.Zn.shape.path(i.p&&i.p.length?i.p:null),i.f?this.Zn.fontScale(i.f):this.Zn.fontScale(100),this.Zn.alwaysHide(i.h)}}});function Se(t){this.ph=t,this.vh=[],this.mh=$t.Fi;var i=t._s.dd;this.bh={effect:i[0],scale:i[1],alpha:i[2],posType:i[3],posVal:i[4],maxAccept:i[5],replace:i[6],acceptAny:i[7],acceptIds:i[8]||[]}}function Ee(t,i,s){if(i){var e,n,h,r,a="Demo"===s;for(e=0,n=i.length;e<n;++e)h=i[e],r=Pt[h[0]],!h[1]||!h[1].length||a&&"ap-load"!==r&&"ap-unload"!==r&&"ap-timer-complete"!==r||t.on(r,function(t){return function(i,s){var e=-1,n=t[1],h=n.length,r=function(){++e<h&&Js(n[e],s,i,r)};r()}}(h))}}function Me(t){var i,s=[];if(!(t&&t.node&&t.showProp&&t.hideProp))return s;for(;t;)t.node.style.display===t.hideProp()&&(t.node.style.display=t.showProp(),s.push(t)),t=t.parent;return(i=s[s.length-1])&&i.bn&&i.bn(),s}function Ce(t){var i,s=t.length;if(s){for(i=s;--i>=0;)t[i].node.style.display=t[i].hideProp();t[s-1].bn&&t[s-1].bn()}}Se.TileMargin=5,Se.RevertTime=200,Se.DropTime=200,Se.ZoomEffectScale=1.1,Se.dragEffect=function(i,s,e,n){var h=t(i.node),r=i.node.style;if(s){var a={zIndex:$t.Ui,opacity:.8},o=i.wh={zIndex:r.zIndex,opacity:r.opacity},u=i._s.dd;if(u)switch(u[0]){case tt:h.addClass("ap-ctrl-dragsource-hilight");break;case it:var c=h.css("transform-origin").split(" ");e-=parseFloat(h.css("left"))+parseFloat(c[0]),n-=parseFloat(h.css("top"))+parseFloat(c[1]),o.transform=r[Ms],a.transform="translate("+e+"px, "+n+"px) scale("+Se.ZoomEffectScale+", "+Se.ZoomEffectScale+") translate("+-e+"px, "+-n+"px)",o.transform&&"none"!==o.transform&&(a.transform+=" "+o.transform)}h.css(a)}else i.wh&&(h.css(i.wh),delete i.wh),h.removeClass("ap-ctrl-dragsource-hilight")},Se.dropHoverEffect=function(i,s){var e=i._s.dd;if(e)switch(e[0]){case tt:s?t(i.node).addClass("ap-ctrl-droptarget-hilight"):t(i.node).removeClass("ap-ctrl-droptarget-hilight");break;case it:s?(i.gh=i.node.style[Ms],i.scaleBy(Se.ZoomEffectScale)):void 0!==i.gh&&(i.node.style[Ms]=i.gh,delete i.gh)}},Se.revert=function(t,i,s,e,n){var h=t.prez(),r=new ah({startTime:h.timeline.totalTime()}),a=t.node.style.zIndex;t.node.style.zIndex=$t.Ui,t.ds(r),r.addChild(new eh(t,"translateX",{startTime:0,duration:e,easing:Yn.outQuad,tweenParams:[-i],relative:Hn._h})).addChild(new eh(t,"translateY",{startTime:0,duration:e,easing:Yn.outQuad,tweenParams:[-s],relative:Hn._h})).addChild(new sh(function(){t.node.style.zIndex=a,n&&n(),setTimeout(function(){t.ps(r)},0)},{startTime:r.duration(),duration:0})),h.timeline.addChild(r),r.setup(),r.play(0)},Se.prototype={constructor:Se,droppedObjects:function(){return this.vh},accepted:function(t){return this.bh.acceptAny||this.bh.acceptIds.indexOf(t.id())>=0},drop:function(s,e,n,h){void 0===n&&(n=!0);var r=this.ph,a=this.bh,o=a.maxAccept<0||this.vh.length<a.maxAccept,u=!1,d=!1;if(s.parent!==r.parent?o=!1:(o||this.vh.length===a.maxAccept&&a.maxAccept>0&&(a.replace?(u=!0,o=!0):d=!0),!o&&!d||a.acceptAny||a.acceptIds.indexOf(s._s.i)<0&&(o=u=d=!1)),s._s.k==i.M&&s.us.flags(s.us.flags()&~(T|y)),!o)return n&&(s.hasStateFlag(D)&&s.us.flags(D),r.hasStateFlag(D)&&r.us.flags(D),t(r).triggerHandler(t.Event("ap-reject",{value:s})),Se.revert(s,h.x,h.y,Se.RevertTime)),!!d&&void 0;if(u){var p,v=this.vh[this.vh.length-1];v&&(p=this.startDragOut(v),n&&(s.hasStateFlag(D)&&s.us.flags(D),v.hasStateFlag(D)&&v.us.flags(D),t(r).triggerHandler(t.Event("ap-reject",{value:v})),Se.revert(v,p.x,p.y,Se.RevertTime)))}this.vh.push(s),s.dropTarget=r;var m={w:s.node.clientWidth,h:s.node.clientHeight},b={t:r.node.offsetTop,l:r.node.offsetLeft,w:r.node.clientWidth,h:r.node.clientHeight},w=a.scale/100,g="",_={},k=s.kh={},x=s.node.style;switch(1!==w&&(g="translate("+-m.w/2+"px, "+-m.h/2+"px) scale("+w+", "+w+") translate("+m.w/2+"px, "+m.h/2+"px)",m.w*=w,m.h*=w),a.posType){case f:this.yh(m,b,a.posVal);break;case l:this.Th(m,b,a.posVal);break;case c:m.l=b.l+e.x,m.t=b.t+e.y,s.xh={x:e.x,y:e.y}}var S,E,M,C=t(s.node).css("transform-origin").split(" "),I=t(r.node).css("transform-origin").split(" ");return S=b.l+parseFloat(I[0])-(s.node.offsetLeft+parseFloat(C[0])),E=b.t+parseFloat(I[1])-(s.node.offsetTop+parseFloat(C[1])),"none"===(M=r.node.style.transform)&&(M=""),_.transform="translate("+S+"px, "+E+"px) "+M+" translate("+-S+"px, "+-E+"px) translate("+(m.l-s.node.offsetLeft)+"px, "+(m.t-s.node.offsetTop)+"px) "+g,k.transform=x[Ms],_.zIndex=this.mh++,k.zIndex=x.zIndex,255!=a.alpha&&(_.opacity=a.alpha/255,k.opacity=x.opacity),t(s.node).css(_),s.updateCachedTransform(),n&&(s.hasStateFlag(A)&&s.us.flags(A),r.hasStateFlag(A)&&r.us.flags(A),t(r).triggerHandler(t.Event("ap-accept",{value:s})),r instanceof Ge&&r.submit(s)),!0},startDragOut:function(i){var s=this.vh.indexOf(i),e={x:0,y:0};if(s<0)return e;if(this.vh.splice(s,1),delete i.dropTarget,i.kh){var n=i.translate();t(i.node).css(i.kh),i.updateCachedTransform(),delete i.kh;var h=i.translate();e.x=n.translateX-h.translateX,e.y=n.translateY-h.translateY}if(this.bh.posType===l&&(this.Sh=this.Eh=this.Mh=0,this.vh.length)){var r,a,o,u,c=this.ph,f={t:c.node.offsetTop,l:c.node.offsetLeft,w:c.node.clientWidth,h:c.node.clientHeight},d=t(c.node).css("transform-origin").split(" "),p=c.node.style.transform,v=this.bh.scale/100,m="";for(d[0]=parseFloat(d[0]),d[1]=parseFloat(d[1]),"none"===p&&(p=""),s=0;s<this.vh.length;++s)r={w:(i=this.vh[s]).node.clientWidth,h:i.node.clientHeight},1!==v&&(m="translate("+-r.w/2+"px, "+-r.h/2+"px) scale("+v+", "+v+") translate("+r.w/2+"px, "+r.h/2+"px)",r.w*=v,r.h*=v),this.Th(r,f,this.bh.posVal),a=t(i.node).css("transform-origin").split(" "),o=f.l+d[0]-(i.node.offsetLeft+parseFloat(a[0])),u=f.t+d[1]-(i.node.offsetTop+parseFloat(a[1])),t(i.node).css("transform","translate("+o+"px, "+u+"px) "+p+" translate("+-o+"px, "+-u+"px) translate("+(r.l-i.node.offsetLeft)+"px, "+(r.t-i.node.offsetTop)+"px) "+m),i.updateCachedTransform()}return e},clear:function(){for(var t=this.vh;t.length;)this.startDragOut(t[t.length-1]);this.mh=$t.Fi},layout:function(){for(var t=this.ph;t;){if("none"===t.node.style.display)return;t=t.parent}var i,s,e=this.vh,n=[],h=[];if(e.length){for(;e.length;)i=e[e.length-1],n.push(i),h.push(i.xh||{x:0,y:0}),this.startDragOut(i);for(this.mh=$t.Fi,s=n.length-1;s>=0;--s)this.drop(n[s],h[s],!1)}},absolutePosition:function(){return this.bh.posType===c},yh:function(t,i,s){t.t=i.t+(i.h-t.h)*Vi(s/3)/2,t.l=i.l+(i.w-t.w)*(s%3)/2},Th:function(t,i,s){var e,n,h,r,a,o,u;switch(this.Sh||(this.Sh=Se.TileMargin),this.Eh||(this.Eh=Se.TileMargin),this.Mh||(this.Mh=0),s){case d:case p:case b:case w:default:h=t.w,r=t.h,a=i.w,o=!1;break;case v:case m:case g:case _:h=t.h,r=t.w,a=i.h,o=!0}(this.Sh+h>a?(this.Eh+=this.Mh+Se.TileMargin,e=this.Eh,n=Se.TileMargin,this.Sh=n+h+Se.TileMargin,this.Mh=r):(e=this.Eh,n=this.Sh,this.Sh+=h+Se.TileMargin,r>this.Mh&&(this.Mh=r)),o)&&(u=e,e=n,n=u);switch(s){case d:case m:default:t.t=i.t+e,t.l=i.l+n;break;case p:case v:t.t=i.t+i.h-e-t.h,t.l=i.l+n;break;case b:case _:t.t=i.t+e,t.l=i.l+i.w-n-t.w;break;case w:case g:t.t=i.t+i.h-e-t.h,t.l=i.l+i.w-n-t.w}}};var Ie={showProp:function(){return"block"},hideProp:function(){return"none"},rotate:function(){return 0},rotateToSlide:function(){for(var t=this,i=0;t&&t!=this.slide;)i+=t.rotate(),t=t.parent;return i},offsetPosition:function(){return this.node?{x:this.node.offsetLeft,y:this.node.offsetTop}:{x:0,y:0}},offsetSize:function(){return this.node?{width:this.node.offsetWidth,height:this.node.offsetHeight}:{width:0,height:0}},transformOrigin:function(t){if(!this.node)return{x:0,y:0};if(t){var i=this.node.getBoundingClientRect(),s=this.slide.node.getBoundingClientRect();return{x:((i.left+i.right)/2-s.left)/this.slide.prez().Xe(),y:((i.top+i.bottom)/2-s.top)/this.slide.prez().Xe()}}var e=this.offsetSize();return{x:e.width/2,y:e.height/2}},contentBox:function(){var t=this.offsetSize();return{x:0,y:0,width:t.width,height:t.height}},transformedContentBox:function(t){if(!this.node)return{x:0,y:0,width:0,height:0};var i=t?this.slide.node:this.node.parentNode,s=this.node.getBoundingClientRect(),e=i.getBoundingClientRect(),n=this.slide.prez().Xe();return{x:(s.left-e.left)/n,y:(s.top-e.top)/n,width:(s.right-s.left)/n,height:(s.bottom-s.top)/n}},rotatedContentBox:function(t,i){var s=this.contentBox(),e=this.transformOrigin();if(t%360){var n=ke.translate(e.x,e.y).rotate(t).translate(-e.x,-e.y),h=Te(n,s.x,s.y),r=Te(n,s.x+s.width,s.y),a=Te(n,s.x+s.width,s.y+s.height),o=Te(n,s.x,s.y+s.height);s.x=Ui(h.x,r.x,a.x,o.x),s.y=Ui(h.y,r.y,a.y,o.y),s.width=Yi(h.x,r.x,a.x,o.x)-s.x,s.height=Yi(h.y,r.y,a.y,o.y)-s.y}if(i){var u=this.transformOrigin(!0);s.x+=u.x-e.x,s.y+=u.y-e.y}else{var c=this.offsetPosition();s.x+=c.x,s.y+=c.y}return s}},Pe=Ds(Ie,{$init:function(t,i){this.node=t,this.parent=i,this.slide=i.slide},showProp:function(){return"inline-block"}}),Re=Ds(Ie,{$init:function(s,e){this.parent=null,this.slide=s,this.children=[],e=e||{},this._s=e,this.node=this.createNode();var n=this===s,o=this;if(this.node.id||(this.node.id=n?s.Es.genSlideDomId():s.Es.genObjectDomId()),t(this.node).addClass(n?"ap-slide":"ap-ctrl").css({position:"absolute",pointerEvents:se.browser.android?"auto":"none"}).on("focus",function(){o.prez()&&o.prez().highlightFocus()&&t(this).addClass("ap-focused")}).on("blur",function(){t(this).removeClass("ap-focused")}),e.f&a&&s.ae&&s.ae.addChild(new eh(this,"display",{startTime:0,duration:0,tweenParams:[this.showProp(),this.hideProp()],tweenType:jt.zi})),e.f&h){var u={start:function(i,s){var e=this.rlDragCtrl,n=this.style,h={x:0,y:0};if(!e||!e.ns(!1,!0)||e.prez()&&e.prez().ended)return!1;e.dropTarget&&(h=e.dropTarget.dropHelper.startDragOut(e)),e.Ch=null,e.Ih=null,e.Ph=e.Rh=0,e.Ah=h.x,e.Dh=h.y,e.Nh={left:n.left,right:n.right,top:n.top,bottom:n.bottom},e.Oh=getTransformationMatrix(this.parentNode).inverse(),e.Lh=e.Oh.transformPoint(s.originalPosition.left,s.originalPosition.top),e.Fh=parseFloat(t(this).css("left"))||0,e.Uh=parseFloat(t(this).css("top"))||0,(h.x||h.y)&&(e.Fh+=h.x,e.Uh+=h.y,t(this).css({left:e.Fh+"px",top:e.Uh+"px"}));var r=e.Oh.transformPoint(i.pageX,i.pageY);e.hasStateFlag(E)&&e.us.flags(E),Se.dragEffect(e,!0,r.x,r.y),t(e).triggerHandler(t.Event("ap-dragstart",{originalEvent:i}))},drag:function(i,s){var e,n,h,r=this.rlDragCtrl;if(r&&(e=r.Oh.transformPoint(s.position.left,s.position.top),r.Ph=e.x-r.Lh.x,r.Rh=e.y-r.Lh.y,s.position.left=r.Fh+r.Ph,s.position.top=r.Uh+r.Rh,n=this.style.zIndex,this.style.zIndex=-1,h=Ji.elementFromPoint(i.pageX,i.pageY),this.style.zIndex=n,h!==r.Ch)){r.Ch=h;for(var a=null;h&&h!==Ji.documentElement&&(h.rlDropCtrl?a=h.rlDropCtrl:h.rlDragCtrl&&h.rlDragCtrl.dropTarget&&(a=h.rlDragCtrl.dropTarget),!a);)h=h.parentNode;a&&!a.ns(!1,!0)&&(a=null),a!==r.Ih&&(r.Ih&&(r.hasStateFlag(I)&&r.us.flags(I),Se.dropHoverEffect(r.Ih,!1),t(r.Ih).triggerHandler(t.Event("ap-dragleave",{value:r,originalEvent:i}))),r.Ih=a,a&&(r.hasStateFlag(C)&&r.us.flags(C),Se.dropHoverEffect(a,!0),t(r.Ih).triggerHandler(t.Event("ap-dragenter",{value:r,originalEvent:i}))))}},stop:function(i,s){var e,n,h=this.rlDragCtrl;if(h){(e=h.Ih)&&e.dropHelper.absolutePosition()&&(n=convertPointFromNodeToPage(h.node,0,0),n=convertPointFromPageToNode(e.node,n.x,n.y)),Se.dragEffect(h,!1);var r,a=h.node.style,o=h.Nh;for(r in o)a[r]=o[r];if(delete h.Nh,h.Ph+=h.Ah,h.Rh+=h.Dh,e)h.hasStateFlag(M)&&h.us.flags(M),Se.dropHoverEffect(e,!1),e.dropHelper.drop(h,n,!0,{x:h.Ph,y:h.Rh}),t(h).triggerHandler(t.Event("ap-dragend",{value:h.dropTarget||null,originalEvent:i}));else{h.us.flags(k);var u=function(){if(h.parent&&h.parent.children){var t,i,s,e=h.parent.children;for(i=0,s=e.length;i<s;++i)(t=e[i])instanceof Ge&&t.ns(!0,!0)&&t.submit(h)}};h._s.dd[1]?(h.hasStateFlag(M)&&h.us.flags(M),t(h).triggerHandler(t.Event("ap-dragend",{value:null,originalEvent:i})),Se.revert(h,h.Ph,h.Rh,Se.RevertTime,u)):(h.hasStateFlag(M)&&h.us.flags(M),h.translateBy(h.Ph,h.Rh),t(h).triggerHandler(t.Event("ap-dragend",{value:null,originalEvent:i})),u())}delete h.Ch,delete h.Ih,delete h.Lh}}};this.node.rlDragCtrl=this,t(this.node).on("mousedown",function(t){this.rlDragCtrl&&this.rlDragCtrl.filterEvent(t)||$s(t,!0)}).css("touchAction","none").draggable(u)}else e.f&r&&(this.dropHelper=new Se(this),this.node.rlDropCtrl=this);if(this.Yh=this.node.clientWidth,this.Hh=this.node.clientHeight,this.shape=new Dn(this.node,this),this.us=new xe(this,e.s),this.us.useDefault(),e.tm&&this.textMargin(e.tm[0],e.tm[1],e.tm[2],e.tm[3]),!e.s&&this.flexbox&&this.flexbox(),void 0!==e.c&&this.cursor(Wt[e.c]),void 0!==e.mi&&e.k!=i._&&e.k!=i.T){this.Tn=new fn(s.Es,!1);var c=this.Tn;c.Bh(e.n),c.yn(e.md),c.synchronizeWithPrez(!0),c.loadResource(e.mi)}e.e&&e.e.l&&Ee(this,e.e.l,s.Es.options.playMode);var f,l,d,p,v=e.cc||[];for(f=0,l=v.length;f<l;++f)(d=Ne((p=v[f]).k,s,p))&&this.insertChild(d);if(this.zh(e.ti),void 0!==e.m){var m=Qt[s.Es.options.playMode];(e.m&m)!==m&&this.Xh(!1)}void 0!==e.ts&&this.userSelection(1==e.ts)},id:function(){return this._s.i},createNode:function(){return Ji.createElement("div")},prez:function(){return this.slide?this.slide.Es:null},defaultCtrlData:function(){var t,i,s=this.prez()._s.l;if((t={e:{},f:0,i:-1,k:-1,m:15,n:"",s:[{a:[0],d:1,id:0,n:"Normal",w:[]}],ti:-1}).i=this.slide.Gh++,0==t.s[0].w.length)for(i=0;i<s.length;++i)t.s[0].w.push([0,0,1,1]);return t},createChild:function(t){var i=Ne(t.k,this.slide,t);return i&&this.insertChild(i),i},showProp:function(){return this.Ae?"flex":"block"},autoWidth:function(t){return this.Vh=t,t&&(this.$h=!1,this.Ae?this.lh=(this.node.offsetWidth||this.Yh)/(this.node.offsetHeight||this.Hh)||0:this.lh=(this.node.clientWidth||this.Yh)/(this.node.clientHeight||this.Hh)||0),this},autoHeight:function(t){return this.$h=t,t&&(this.Vh=!1,this.Ae?this.lh=(this.node.offsetWidth||this.Yh)/(this.node.offsetHeight||this.Hh)||0:this.lh=(this.node.clientWidth||this.Yh)/(this.node.clientHeight||this.Hh)||0),this},left:function(t){return arguments.length?(this.node.style.left=Ki(t)?t+"px":t,this):this.node.offsetLeft},top:function(t){return arguments.length?(this.node.style.top=Ki(t)?t+"px":t,this):this.node.offsetTop},right:function(i){return arguments.length?(this.node.style.right=Ki(i)?i+"px":i,this):parseFloat(t(this.node).css("right"))},bottom:function(i){return arguments.length?(this.node.style.bottom=Ki(i)?i+"px":i,this):parseFloat(t(this.node).css("bottom"))},width:function(t){return arguments.length?(this.node.style.width=Ki(t)?t+"px":t,this.Vh=!1,this.bn(),this):this.Ae?this.node.offsetWidth:this.node.clientWidth},height:function(t){return arguments.length?(this.node.style.height=Ki(t)?t+"px":t,this.$h=!1,this.bn(),this):this.Ae?this.node.offsetHeight:this.node.clientHeight},fh:function(t,i,s){t=Ts(t),i=Ts(i),"%"===t.unit?t.value/=Ii:t.unit||(t.unit="px"),s===wt||s===gt?this.right(t.value+t.unit).left("auto"):this.left(t.value+t.unit).right("auto"),"%"===i.unit?i.value/=Ii:i.unit||(i.unit="px"),s===_t||s===gt?this.bottom(i.value+i.unit).top("auto"):this.top(i.value+i.unit).bottom("auto")},size:function(t,i){return arguments.length?(this.node.style.width=Ki(t)?t+"px":t,this.node.style.height=Ki(i)?i+"px":i,this.Vh=this.$h=!1,this.bn(),this):{width:this.node.clientWidth,height:this.node.clientHeight}},accText:function(t){return arguments.length||(t=""),this.node.setAttribute("aria-label",t),this},zh:function(t){isNaN(t)||this!==this.slide&&(-2==t?this.node.tabIndex=-1:-1==t?this.node.removeAttribute("tabIndex"):this.node.tabIndex=t)},Xh:function(t){if(!(this.Wh===t||void 0===this.Wh&&t)){this.Wh=t;var i,s,e,n=t?"":0,h=this.node.childNodes;for(s=0,e=h.length;s<e;++s)1===(i=h[s]).nodeType&&(i.style.opacity=n)}},updateTabIndexGR:function(t){if(this!==this.slide&&t instanceof We){var i,s,e,n=this.children,h=this._s.ti>0?this._s.ti:0,r=t.jh;for(i=0,s=n.length;i<s;++i)(e=n[i])instanceof We&&e.jh===r&&(t===e?e.node.tabIndex=h:e.node.tabIndex===h&&(e.node.tabIndex=-1))}},contentBox:function(){var i=t(this.node).css("overflow"),s=0,e=0,n=this.node.offsetWidth,h=this.node.offsetHeight;if(i&&"visible"!=i)return{x:s,y:e,width:n-s,height:h-e};var r,a,o,u,c,f=this.shape.contentBox(),l=this.textContainer;for(l&&((r=this.textNode.offsetHeight)>l.offsetHeight?"middle"===this.Qh?(a=l.offsetTop-(r-l.offsetHeight)/2,f.height=Yi(a+r,f.y+f.height)-Ui(f.y,a),f.y=Ui(f.y,a)):"bottom"===this.Qh?(a=l.offsetTop+l.offsetHeight-r)<f.y&&(f.height+=f.y-a,f.y=a):(a=l.offsetTop+r)>f.y+f.height&&(f.height=a-f.y):this.eh&&"auto"===this.node.style.height&&("middle"===this.Qh?(f.height=Yi(l.offsetTop+l.offsetHeight,f.y+f.height)-Ui(f.y,l.offsetTop),f.y=Ui(f.y,l.offsetTop)):"bottom"===this.Qh?l.offsetTop<f.y&&(f.height+=f.y-l.offsetTop,f.y=l.offsetTop):l.offsetTop+l.offsetHeight>f.y+f.height&&(f.height=l.offsetTop+l.offsetHeight-f.y))),s=Ui(s,f.x),e=Ui(e,f.y),n=Yi(n,f.x+f.width),h=Yi(h,f.y+f.height),o=0,u=this.children.length;o<u;++o)(c=this.children[o]).node.style.display!=c.hideProp()&&(f=c.transformedContentBox(),s=Ui(s,f.x),e=Ui(e,f.y),n=Yi(n,f.x+f.width),h=Yi(h,f.y+f.height));return{x:s,y:e,width:n-s,height:h-e}},transformedContentBox:function(t){var i=t?this.rotateToSlide():this.rotate();return this.rotatedContentBox(i,t)},Kh:function(t){return t||(t={x:0,y:0},this.parent)?(this.parent&&(this.parent.Kh(t),t.x+=this.parent.node.offsetLeft,t.y+=this.parent.node.offsetTop),t):t},center:function(t,i){this.qh=t,this.Jh=i},centerX:function(){if(this.qh){var t=this.Kh().x,i=this.slide.node.clientWidth;this.left((i-this.Yh)/2-t)}},centerY:function(){if(this.Jh){var t=this.Kh().y,i=this.slide.node.clientHeight;this.top((i-this.Hh)/2-t)}},rotate:function(t){var i=Jn.transform,s=i.get(this);return arguments.length?(s.rotate=t,i.set(this,s.isIdentity()?"":s),this.animProps&&this.animProps.set("rotate",s.rotate),this):s.rotate},rotateBy:function(t){var i=Jn.transform,s=i.get(this);return s.rotate+=t,i.set(this,s.isIdentity()?"":s),this.animProps&&this.animProps.set("rotate",s.rotate),this},translate:function(t,i){var s=Jn.transform,e=s.get(this);return arguments.length?(e.translateX=t||0,e.translateY=i||0,s.set(this,e.isIdentity()?"":e),this.animProps&&(this.animProps.set("translateX",e.translateX),this.animProps.set("translateY",e.translateY)),this):{translateX:e.translateX,translateY:e.translateY}},translateBy:function(t,i){var s=Jn.transform,e=s.get(this);return e.translateX+=t||0,e.translateY+=i||0,s.set(this,e.isIdentity()?"":e),this.animProps&&(this.animProps.set("translateX",e.translateX),this.animProps.set("translateY",e.translateY)),this},scale:function(t,i){var s=Jn.transform,e=s.get(this);return arguments.length?(1===arguments.length&&(i=t),e.scaleX=t,e.scaleY=i,s.set(this,e.isIdentity()?"":e),this.animProps&&(this.animProps.set("scaleX",e.scaleX),this.animProps.set("scaleY",e.scaleY)),this):{scaleX:e.scaleX,scaleY:e.scaleY}},scaleBy:function(t,i){var s=Jn.transform,e=s.get(this);return 1===arguments.length&&(i=t),e.scaleX*=t,e.scaleY*=i,s.set(this,e.isIdentity()?"":e),this.animProps&&(this.animProps.set("scaleX",e.scaleX),this.animProps.set("scaleY",e.scaleY)),this},transform:function(t,i,s,e,n){var h=Jn.transform,r=h.get(this);return arguments.length?(r.translateX=t||0,r.translateY=i||0,r.rotate=s||0,r.scaleX=void 0===e?1:e,r.scaleY=void 0===n?r.scaleX:n,h.set(this,r.isIdentity()?"":r),this.animProps&&this.animProps.set("transform",r),this):r},updateCachedTransform:function(){if(this.animProps){var t=Jn.transform.get(this);this.animProps.set("transform",t)}return this},flexbox:function(t){if(delete this.Ae,t){this.Ae=!0;var i=this.node.style;switch(i.display!==this.hideProp()&&(i.display=this.showProp()),i.flexDirection=t[0]==N?"row":"column",i.flexWrap=t[1]?"wrap":"nowrap",i.boxSizing="border-box",t[2]){case O:i.justifyContent="flex-start";break;case L:i.justifyContent="center";break;case F:i.justifyContent="flex-end";break;case U:i.justifyContent="space-between";break;case Y:i.justifyContent="space-around"}switch(t[3]){case H:i.alignContent="flex-start";break;case B:i.alignContent="center";break;case z:i.alignContent="flex-end";break;case X:i.alignContent="stretch";break;case G:i.alignContent="space-between";break;case V:i.alignContent="space-around"}switch(i.paddingRight="",t[4]){case q:"auto"===i.overflow&&(this.node.scrollTop=0,this.node.scrollLeft=0),i.overflow="visible";break;case J:"auto"===i.overflow&&(this.node.scrollTop=0,this.node.scrollLeft=0),i.overflow="hidden";break;case Z:i.overflow="auto",i.pointerEvents="auto";break;default:"auto"===i.overflow&&(this.node.scrollTop=0,this.node.scrollLeft=0),i.overflow="hidden"}}},flexChild:function(t){delete this.Zh,delete this.tr,delete this.eh;var i=this.node.style;if(t){this.eh=!0,this.Yh=0,this.Hh=0,i.position="relative",i.left="",i.right="",i.top="",i.bottom="",i.flexGrow=t[0],i.flexShrink=t[1];var s=t[2],e=t[3];switch(1===t[9]?this.Zh={type:"width"}:2===t[9]&&(this.Zh={type:"height"}),this.Zh&&"width"===this.Zh.type?this.Zh.value=t[2]/Ii:"a"===s?i.width="auto":("%"===(s=Ts(t[2])).unit?s.value/=Ii:s.unit||(s.unit="px"),i.width=s.value+s.unit),this.Zh&&"height"===this.Zh.type?this.Zh.value=t[3]/Ii:"a"===e?i.height="auto":("%"===(e=Ts(t[3])).unit?e.value/=Ii:e.unit||(e.unit="px"),i.height=e.value+e.unit),i.marginTop=t[4]+"px ",i.marginLeft=t[5]+"px",i.marginRight=t[6]+"px",i.marginBottom=t[7]+"px",t[8]){case K:i.alignSelf="auto";break;case $:i.alignSelf="flex-start";break;case W:i.alignSelf="center";break;case j:i.alignSelf="flex-end";break;case Q:i.alignSelf="stretch"}t[10]&&(i.minWidth=t[10]+"px"),t[11]&&(i.minHeight=t[11]+"px"),"a"!==s&&"a"!==e||(this.tr=!0)}else i.position="absolute"},Re:function(){for(var t,i=this.children,s=0,e=i.length;s<e;++s)(t=i[s]).Re&&t.Re();this.textContainer&&this.ir(),this.shape&&this.shape.layout()},hh:function(t){for(var i=this.parent,s=null;i&&i.Ae;){if(!((s=i.parent)&&s.Ae&&i.eh)){i.bn&&(i.bn(),i.bn());break}i=s}},nh:function(){if(!se.browser.safari)return!1;for(var t,i,s,e,n,h,r,a=this.Ae&&"column"===this.node.style.flexDirection,o=!1,u=this.children,c=0,f=u.length;c<f;++c)if(s=(i=u[c]).node.style,t=!1,i.Ae){if(a&&parseInt(s.flexGrow)>0&&"auto"===s.height)for(n=0,h=(e=i.children).length;n<h;++n)if("auto"===(r=e[n]).node.style.height)t=!0;else if("%"===Ts(r.node.style.height).unit){s.height="0%",o=!0;break}i.nh()&&(t&&a&&(s.height="0%"),o=!0)}return o},bn:function(){if(this.sr||(this.sr=0),this.sr>10)rs("Recursive checking resized: "+this.name());else{++this.sr;var t=this.node.clientWidth,i=this.node.clientHeight;if(this.Ae&&(t=this.node.offsetWidth,i=this.node.offsetHeight),this.Zh&&this.parent&&this.parent.Ae){var s=this.parent.node.style.flexDirection||"row";"height"==this.Zh.type?"row"==s||0==parseInt(this.node.style.flexShrink)?(i=t/this.Zh.value,this.Yh=t):delete this.Zh:"column"==s||0==parseInt(this.node.style.flexShrink)?(t=i*this.Zh.value,this.Hh=i):delete this.Zh}var e,n,h,r=this.children;if(t===this.Yh&&i===this.Hh&&this.Ae)for(n=0,h=r.length;n<h;++n)(e=r[n]).eh&&(e.Ae?e.bn():e.node.clientWidth===e.Yh&&e.node.clientHeight===e.Hh||e.bn());if(t===this.Yh&&i===this.Hh&&!this.dh)return this.centerX(),this.centerY(),void--this.sr;if(!this.Zh&&this.eh)this.Yh=t,this.Hh=i,this.onResized();else{var a=t-this.Yh,o=i-this.Hh;this.Yh=t,this.Hh=i,this.onResized(a,o)}var u=[];for(n=0,h=r.length;n<h;++n)(e=r[n]).bn(),e.dropHelper&&u.push(e);for(n=0,h=u.length;n<h;++n)u[n].dropHelper.layout();--this.sr}},onResized:function(t,i){!this.$h&&!this.Vh||this.tr||(this.lh?this.$h?(t||this.dh)&&(delete this.dh,this.height(this.Yh/this.lh),this.$h=!0):(i||this.dh)&&(delete this.dh,this.width(this.lh*this.Hh),this.Vh=!0):this.lh=this.Yh/this.Hh||0),delete this.dh,this.Zh&&(t&&this.width(this.Yh),i&&this.height(this.Hh)),this.centerX(),this.centerY(),this.textContainer&&(this.ir(),this.textVerticalAlign(this.Qh)),this.shape.layout()},er:function(){var t,i,s=this.children;for(t=0,i=s.length;t<i;++t)s[t].er()},onLayoutSwitched:function(){this.us.layout();var t,i,s,e=this.children,n=[];for(t=0,i=e.length;t<i;++t)(s=e[t]).onLayoutSwitched(),s.dropHelper&&n.push(s);if(this.Ae)for(t=0,i=e.length;t<i;++t)(s=e[t]).eh&&s.onResized&&s.onResized();for(t=0,i=n.length;t<i;++t)n[t].dropHelper.layout()},insertChild:function(t,i){return t&&(t.parent=this,t.slide=this.slide,isNaN(i)||null===i||i<0&&i>=this.children.length?(t.node.parentNode||this.node.appendChild(t.node),this.children.push(t)):(t.node.parentNode||this.node.insertBefore(t.node,this.children[i].node),this.children.splice(i,0,t)),t.nr(),t.bn()),this},remove:function(){if(this.parent){var t=this.parent.children.indexOf(this);t>-1&&this.parent.children.splice(t,1),this.node.parentNode==this.parent.node&&this.parent.node.removeChild(this.node),this.parent=null}return this.hr(),this.cleanup()},nr:function(){var t,i,s=this.slide;for(s.Gh<=this._s.i&&(s.Gh=this._s.i+1),s.rr[this._s.i]=this,s.or[this._s.n]=this,t=0,i=this.children.length;t<i;++t)this.children[t].nr()},hr:function(){var t,i,s=this.slide;for(delete s.rr[this._s.i],delete s.or[this._s.n],t=0,i=this.children.length;t<i;++t)this.children[t].hr()},state:function(t){return arguments.length?(typeof t===Ri?this.us.name(t):this.us.id(t),this.savedCurrentState(t),this):this.us.name()},savedCurrentState:function(t){var i=this.savedData(!0);if(i)if(arguments.length)i.st=t;else{var s=(t=this.us)._s[t.se];i.st=s.i}return this},ur:function(){return Ji.createElement("div")},cr:function(t){hs.innerHTML=t,(this.splitTexts?this.splitTexts.lr:this.textNode.innerHTML)!==hs.innerHTML&&(this.textNode.innerHTML=t,delete this.splitTexts)},dr:function(){var t="";return this.tr?t+="position: relative;":t+="position: absolute;",this._s.k===i.o&&this._s.t===s.tt?t+="left: 0%; top: 0%; overflow: auto; word-wrap: break-word; pointer-events: auto;":t+="left: 0; right: 0; word-wrap: break-word; pointer-events: auto;",void 0!==this.pr&&(t+=" cursor: "+this.pr+";"),t},vr:function(){if(!this.textNode){this.textContainer=Ji.createElement("div"),this.node.appendChild(this.textContainer);var t=this.textContainer.style;this.tr?(t.position="relative",t.boxSizing="border-box",t.width="100%",t.height=""):(t.position="absolute",t.width="",t.height="",t.boxSizing=""),this.ir(),this.textNode=this.ur(),t=this.textNode.style,this.mr?t.cssText=this.mr:(t.position="absolute",t.left=t.right=0,t.wordWrap="break-word",t.pointerEvents="auto"),this.Qh&&this.textVerticalAlign(this.Qh),this.textContainer.appendChild(this.textNode),void 0!==this.pr&&(this.textNode.style.cursor=this.pr),!1===this.Wh&&(this.textContainer.style.opacity=0),delete this.br,this.wr&&100!=this.wr&&this.gr()}},html:function(i){if(!arguments.length)return this.textNode?this.textNode.innerHTML:"";if(i+="",!this.textNode&&i&&this.vr(),this.textNode){if(this.wr&&100!=this.wr){this._r=i;var s={css:this.textNode.style.cssText,html:i};r=s,a=this.wr/100,(o=t("<div><div>"+r.html+"</div></div>"))[0].firstChild.style.cssText=r.css,t("*",o).each(function(){if(this.style&&this.style.fontSize){var i=this.style.fontSize,s=i.match(/\D+$/);if(!(s=s&&s[0])||s.search(/inherit|%|em/i)>-1)return;var e=parseFloat(i);if(isNaN(e)){var n=t(this);n.css("font-size",parseFloat(n.css("font-size"))*a)}else e*=a,this.style.fontSize=e+s}}),o=o[0].firstChild,r.css=o.cssText,r.html=o.innerHTML,i=s.html}else delete this._r;var e=this,n=this.slide.Es.vars,h=n.replace(i);this.cr(h.text),this.kr&&(n.removeObserver(this.kr),delete this.kr),h.vars.length?(this.yr=i,this.kr=function(){e.cr(n.replace(e.yr).text)},n.addObserver(h.vars,this.kr)):delete this.yr}var r,a,o;return this},text:function(t){return arguments.length?this.html(cs(t,!0)):this.textNode&&this.textNode.textContent||""},splitText:function(i){if(!this.textNode)return this;i&&i.chars&&(i=ji({},i,{words:!0}));var s,e,n,h,r,a=this.textNode.innerHTML,o=se.splitText(this.textNode,i),u=["chars","words"],c=this;o.lr=a,this.splitTexts=o,o.listItems||(o.listItems=[],t("li",this.textContainer).each(function(){o.listItems.push(new Pe(this,c))}));for(var f=0;f<2;++f){if(1==f){if(!(o=o.processStyles))break;u.length=0;for(n in o)u.push(n)}for(h=0;h<u.length;++h)if(n=u[h],r=o[n])for(s=0,e=r.length;s<e;++s)r[s]=new Pe(r[s],this)}return this},unsplitText:function(){return this.textNode&&this.splitTexts&&void 0!==this.splitTexts.lr&&(this.textNode.innerHTML=this.splitTexts.lr,delete this.splitTexts),this},textStyle:function(t){return t=(t||"")+this.dr(),this.textNode?(this.textNode.style.cssText=t,delete this.br,this.wr&&100!=this.wr&&this.gr()):this.mr=t,this},textVerticalAlign:function(t){if(!arguments.length)return this.Qh||"top";if("middle"===t||"top"===t||"bottom"===t){if(this.textNode){var i=this.textNode.style;i.top="",i.bottom="",i[Ms]="","top"===t?(i.top=0,i.bottom="auto",i[Ms]=""):"bottom"===t?(i.top="auto",i.bottom=0,i[Ms]=""):(this.tr||(i.top="50%",i[Ms]="translateY(-50%)"),i.bottom="auto")}this.Qh=t}return this},textMargin:function(t,i,s,e){return arguments.length?(this.Tr=[t,i,s,e],this.textContainer&&this.ir(),this):(this.Tr||(this.Tr=[5,5,5,5]),this.Tr.slice())},fontScale:function(t){if(!arguments.length)return this.wr||100;if(t!=(this.wr||100)){var i;if(this.wr=t,this.textNode)i=void 0!==this._r?this._r:void 0!==this.yr?this.yr:this.html(),this.html(i),this.gr();return this}},gr:function(){this.textNode&&(void 0===this.br&&(this.br=parseFloat(t(this.textNode).css("font-size"))||16),this.textNode.style.fontSize=this.br*this.wr/100+"px")},ir:function(){var t,i=this.textMargin(),s=this.textContainer.style;if(this.tr){if(!this.textNode)return;s.position="relative",s.boxSizing="border-box",s.width="100%",s.height="",s.left="",s.right="",s.top="",s.bottom="",s.padding=0,this.textNode.style.position="relative",t=this.shape.textMargin(this.node.clientWidth,this.node.clientHeight),s.paddingLeft=i[0]+t[0]+"px",s.paddingRight=i[2]+t[2]+"px";var e=(this.shape.shapeSizeForText(this.textNode.clientWidth,this.textNode.clientHeight+i[1]+i[3])[1]-this.node.clientHeight)/2+"px";s.paddingTop=e,s.paddingBottom=e,t=this.shape.textMargin(this.node.clientWidth,this.node.clientHeight),s.paddingLeft=i[0]+t[0]+"px",s.paddingTop=i[1]+t[1]+"px",s.paddingRight=i[2]+t[2]+"px",s.paddingBottom=i[3]+t[3]+"px","middle"===this.Qh?s.top=(this.node.clientHeight-this.textContainer.clientHeight)/2+"px":"bottom"===this.Qh&&(s.top=this.node.clientHeight-this.textContainer.clientHeight+"px")}else s.position="absolute",s.padding="",s.width="",s.height="",s.boxSizing="",this.textNode&&(this.textNode.style.position="absolute"),t=this.shape.textMargin(this.node.clientWidth,this.node.clientHeight),s.left=i[0]+t[0]+"px",s.top=i[1]+t[1]+"px",s.right=i[2]+t[2]+"px",s.bottom=i[3]+t[3]+"px"},cursor:function(t){return this.shape.cursor(t),this.pr=t,this.textNode&&(this.textNode.style.cursor=t),this},filterEvent:function(i){var s=!1,e=i.target,n=i.relatedTarget;switch(i.type){case"mouseover":case"mouseout":s=e===this.node||e===this.shape.node||!!n&&t.contains(this.node,n)&&n!==this.node&&n!==this.shape.node;break;case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":case"mouseup":case"click":case"dblclick":s=e===this.node||e===this.shape.node}return s},on:function(i,s){return s?(e=i+"-hdl",n=function(t){return s.call(this,t,this.prez())},this.xr||(this.xr={}),this.xr[e]||(this.xr[e]=[]),this.xr[e].push([s,n]),t(this).on(i,n),this):this;var e,n},off:function(i,s){if(!arguments.length)return t(this).off(),delete this.xr,this;var e,n=i+"-hdl",h=this.xr?this.xr[n]:null;if(s){if(h){for(e=h.length-1;e>=0;--e)if(h[e][0]===s){t(this).off(i,h[e][1]),h.splice(e,1);break}h.length||delete this.xr[n]}}else t(this).off(i),this.xr&&delete this.xr[n];return this},show:function(t,i,s){return this.animate(t||se.EffectType.APPEAR,i,s)},hide:function(t,i,s){return this.animate(t||se.EffectType.DISAPPEAR,i,s)},alwaysHide:function(t){var i,s;!this.Sr!=!t&&(t?(this.Sr=!0,(i=this.node.style.display)==(s=this.hideProp())&&(i=void 0)):(delete this.Sr,s=this.Er),void 0!==s&&(Jn.display.set(this,s),this.animProps&&this.animProps.set("display",s)),void 0!==i&&(this.Er=i));return this},animate:function(t,i,s){"object"!=typeof s&&(s={direction:s});var e=new ah,n=this,h=se.createEffect(this,t,0,i||0,s);if(!h)return this;this.ds(e),e.addChild(h).addChild(new sh(function(){setTimeout(function(){n.ps(e)},0),s.callback&&s.callback.call(n)},{startTime:e.duration(),duration:0}));var r=this.prez();return e.startTime(r.timeline.totalTime()),r.timeline.addChild(e),e.setup(),e.play(0),this},visible:function(){return"none"!==this.node.style.display},disable:function(t){arguments.length||(t=!0);var i=this.us.flags();return t?i|=x:i&=~x,this.us.flags(i),this},hasStateFlag:function(t){var i=!1;if(this.us){var s,e,n=this.us;for(s=0,e=n._s.length;s<e;++s)if((n._s[s].p&t)==t){i=!0;break}}return i},enable:function(t){return arguments.length||(t=!0),this.disable(!t)},disabled:function(){return(this.us.flags()&x)===x},enabled:function(){return!this.disabled()},cleanup:function(){var i,s,e=this.Mr,n=this.children;if(e){for(i=0,s=e.length;i<s;++i)e[i].remove();delete this.Mr}for(this.node.rlDragCtrl&&(t(this.node).draggable("destroy"),delete this.node.rlDragCtrl),this.node.rlDropCtrl&&delete this.node.rlDropCtrl,this.kr&&(this.prez().vars.removeObserver(this.kr),delete this.kr,delete this.yr),this.Tn&&this.Tn.cleanup(),i=0,s=n.length;i<s;++i)n[i].cleanup();return this},ds:function(t){t&&(t.slide=this.slide,this.Mr?this.Mr.push(t):this.Mr=[t])},ps:function(t){if(t&&(t.remove(),this.Mr)){var i=this.Mr.indexOf(t);i>=0&&this.Mr.splice(i,1)}return this},ls:function(t){var i,s=this.Mr;if(s)for(i=s.length-1;i>=0;--i)if(t(s[i]))return s[i];return null},cs:function(t){t?!1!==this.Cr&&(this.ns(!0,!0)||this.Ir)?(this.Ir&&delete this.Ir,this.Cr=!0,this.slide.Es.pause(!0)):!1===this.Cr&&delete this.Cr:(this.Cr&&this.slide.Es.pause(!1),this.Cr=!1)},Pr:function(i){var s,e=this.slide.Es.timeline,n=this,h=this.prez(),r=function(){n.ns(!0,!0)&&(n.disable(),h&&!h.ended&&t(n).triggerHandler("ap-timeout"))};i>0?(s=new ah({startTime:0}),this.ds(s),s.addChild(new sh(r,{startTime:e.totalTime()+i})),e.addChild(s,!0)):r()},savedData:function(t){var i,s=this.slide.savedData(t);return s&&(i=s[this._s.i],t&&!i&&(i=s[this._s.i]={})),i},submit:function(){if(this.prez()&&this.prez().ended)return this;var t,i,s,e=this.children;for(t=0,i=e.length;t<i;++t)(s=e[t]).ns(!0,!1)&&s.submit();return this},clear:function(t,i){if(this.prez()&&this.prez().ended&&!i)return this;this.dropHelper&&this.dropHelper.clear();var s,e,n,h=this.children;for(s=0,e=h.length;s<e;++s)n=h[s],t&&!n.ns(!0,!1)||n.clear(t,i);return this},restore:function(t){t||(t=this.savedData()),this._s.rs&&t&&void 0!=t.st&&this.us&&(this.state(t.st),this.bn());var i,s,e=this.children;for(i=0,s=e.length;i<s;++i)e[i].restore();return this},score:function(){var t=this.savedData();return t&&t.p?t.p:0},attempts:function(){var t=this.savedData();return t&&t.a||0},Rr:function(t){var i=this.maxAttempts();i>=0&&t>=i&&this.disable()},maxAttempts:function(t){var i=this._s.e;return arguments.length?(i||(i=this._s.e={}),i.a=t<0?-1:t,this.Rr(this.attempts()),this):i&&void 0!==i.a?i.a:-1},Ar:function(i,s,e,n,h,r,a){var o,u=!1,c=!1;switch(s){case At.xi:c=!0,o="ap-correct";break;case At.Si:c=!0,o="ap-incorrect";break;case At.Ti:o="ap-complete";break;case At.Ei:u=!0,o="ap-incomplete";break;default:return}var f=this.prez();if(i.r=s,i.v=e,void 0!==n){if(i.p=n,s==At.Si){var l=f.vars.get("apScoreSubtract");void 0!==l&&(i.sp=l)}}else delete i.p,delete i.sp;if(h?i.n=1:delete i.n,a?i.d=a:delete i.d,c&&!u&&(i.a?++i.a:i.a=1,this.disabled()||(this.Rr(i.a),this.disabled()&&(this.Ir=!0))),f){if(f.lms)if(u||h)f.lms.storeSuspendData(f.ws,!0);else{var d=this._s,p=f.learnerResponse(this.slide._s,d,i),v=f.correctResponses(this.slide._s,d),m={reportid:d.r,kind:d.k,type:d.t,multiline:d.f&ht.ft,name:d.n};f.lms.storeInteractionData(m,s,i.p,p,v)}var b=f.vars;b.notifyObservers("apQuizScore"),b.notifyObservers("apQuizScorePercentage"),b.notifyObservers("apQuizPassed"),b.notifyObservers("apQuizPassedBool"),b.notifyObservers("apQuizTakenInteractions"),b.notifyObservers("apQuizUnTakenInteractions"),b.notifyObservers("apQuizCorrectInteractions"),b.notifyObservers("apQuizIncorrectInteractions"),b.notifyObservers("apDetailedResult"),b.notifyObservers("apDetailedResult2")}t(this).triggerHandler(t.Event(o),{value:r})},ns:function(t,i){var s=this.prez().ns()&&(!t||this.visible())&&this.enabled();if(i&&s)for(var e=this.parent;e;){if(t&&!e.visible()||!e.enabled()){s=!1;break}e=e.parent}return s},name:function(){return this._s.n||""},Dr:function(){this.Nr&&this.node&&(this.node.removeChild(this.Nr),delete this.Nr),this.Or&&this.node&&(this.node.removeChild(this.Or),delete this.Or),this.Lr&&this.node&&(this.node.removeChild(this.Lr),delete this.Lr),this.slide.Fr&&this.slide.node&&(this.slide.node.removeChild(this.slide.Fr),delete this.slide.Fr)},gs:function(t){var i,s,e,n=this.children;for(i=0,s=n.length;i<s;++i)(e=n[i]).gs&&e.gs(t);return this},Ur:function(t,i){t&&(t.style.position="absolute","top-center"===i?(t.style.left="50%",t.style.transform="translateX(-50%) translateY(-100%)",t.style.textAlign="center"):"middle-right"===i?(t.style.left="100%",t.style.top="50%",t.style.transform="translateY(-50%)",t.style.textAlign="left"):"bottom-center"===i?(t.style.left="50%",t.style.top="100%",t.style.transform="translateX(-50%)",t.style.textAlign="center"):"middle-left"===i?(t.style.top="50%",t.style.transform="translateX(-100%) translateY(-50%)",t.style.textAlign="right"):"bottom-left"===i?(t.style.top="100%",t.style.textAlign="left"):(t.style.top="50%",t.style.left="50%",t.style.transform="translateX(-50%) translateY(-50%)",t.style.textAlign="center"))},Yr:function(t,i){var s=Ji.createElement("div");s.style.position="absolute",s.style.background=t===At.xi?"#2fae62":t===At.Si?"#d15327":"#e47c30",s.style.width="100%",s.style.height="40px",s.style.top="100%",s.style.transform="translateY(-100%)";var e=Ji.createElement("div"),n=Ji.createTextNode(i);return e.style.color="white",e.style.left="50%",e.style.top="50%",e.style.position="absolute",e.style.transform="translate(-50%, -50%)",e.appendChild(n),s.appendChild(e),s},Hr:function(t,i,s){var e=!1;if(Array.isArray(i)){for(var n="",h=0,r=i.length;h<r;++h)n+=i[h],h<r-1&&(n+=", ");i=n,e=!0}var a=Ji.createElement("div");a.style.position="absolute",a.style.background=t?"#2fae62":"#d15327",a.style.backgroundClip="padding-box",a.style.borderRadius="32px",a.style.border="1px solid #ffffff";var o=Ji.createElement("div"),u=Ji.createTextNode(i);if(o.style.color="white",e){a.style.display="inline-flex",a.style.padding="8px";var c=Ji.createElement("div"),f=this.slide.prez();c.innerHTML=t?f._s.playerIcons.correct:f._s.playerIcons.incorrect,c.getElementsByTagName("svg")[0].style.stroke="rgba(255, 255, 255, 0.3)",a.appendChild(c)}else a.style.height=a.style.width="32px",o.style.left="50%",o.style.top="50%",o.style.position="absolute",o.style.transform="translate(-50%, -50%)";return o.appendChild(u),a.appendChild(o),this.Ur(a,s),a},Br:function(t,i){var s=this.slide.prez(),e=Ji.createElement("div");return e.innerHTML=t?s._s.playerIcons.correct:s._s.playerIcons.incorrect,this.Ur(e.firstChild,i),"middle-left"==i?e.firstChild.style.marginLeft="-3px":"middle-right"==i&&(e.firstChild.style.marginLeft="3px"),e.firstChild},zr:function(t,i){if(t&&t.length>0){var s=this.shape&&"none"!==this.shape.Xr&&this.shape.Gr?this.shape.Gr:0,e=Ji.createElement("div"),n=Ji.createElement("span"),h=Ji.createTextNode(this.slide.prez().ui.Cs.text("Correct Values")+": ");if(n.appendChild(h),n.style.color="#30ae63",n.style.fontWeight="900","bottom-left"==i&&(n.innerHTML+="<br />"),t.length>1&&"bottom-left"==i){e.appendChild(n);for(var r=Ji.createElement("ul"),a=0;a<t.length;a++){var o=Ji.createElement("li");o.innerText=t[a],r.appendChild(o)}e.appendChild(r)}else e.appendChild(n),(n=Ji.createElement("span")).innerText=t.join(", "),e.appendChild(n);return-1!=i.indexOf("middle")?(e.style.display="inline-table",e.style.whiteSpace="nowrap","middle-right"==i&&(e.style.marginLeft=-$i(s/2)+"px")):e.style.padding="5px",e.style.backgroundColor="rgba(255, 255, 255, 0.9)","bottom-left"==i&&(e.style.marginTop=$i(s/2)+"px",e.style.border="10px solid rgba(255, 255, 255, 0.9)",e.style.borderRadius="4px",e.style.boxShadow="0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12)"),this.Ur(e,i),e}},Vr:function(s,e){var n=!!s;if(!s){s=s||{};var h=this.node.style;s.left=parseInt(h.width)+"px",s.top="0px"}var r=this,a=this.shape&&"none"!==this.shape.Xr&&this.shape.Gr?this.shape.Gr:0,o=Ji.createElement("div");o.className="ap-correct-values-dropdown",this.node.appendChild(o),o.style.display="inline-table",o.style.marginLeft=-$i(a/2)+"px";var u=o.style;if(u.fontFamily="Arial",u.fontSize="16px",u.height="18px",u.position="absolute",u.textAlign="left",n&&""==s.transform)u.top="0",u.left="0",u.transform="0",u.left=parseInt(s.width)+parseInt(s.left)+5+"px",u.top=s.top;else{u.top="50%",u.left="100%";var c="translateY(-50%)";n&&(c+=" ",c+="translateX(18px)"),u.transform=c,u.marginLeft="3px",u.marginTop="3px"}u.pointerEvents="visiblePainted",u.cursor="pointer";var f=Ji.createElement("div");f.className="ap-correct-values-dropbtn",f.innerHTML=this.slide.prez()._s.playerIcons.correctvalues,f.classList.add("ap-no-select"),t(f).css("color","white"),t(f).css("padding","0px"),t(f).css("border","none"),t(f).css("cursor","auto");var l=Ji.createElement("div");l.className="ap-correct-values-dropdown-content",o.appendChild(f),o.appendChild(l);var d=Ji.createElement("div"),p=this.slide.prez().ui.Cs.text("Correct Values");d.innerHTML=p+" :",l.appendChild(d),d.classList.add("ap-no-select");var v=Ji.createElement("ul");l.appendChild(v),t(v).css("margin","2px 2px"),t(v).css("padding","0px 10px 0px 15px");var m=t(d).css("font-size"),b=(m=parseInt(m))/16*7.7*p.length;d.style.width=b+"px";for(var w=0;w<e.length;++w){var g=Ji.createElement("li");g.classList.add("ap-no-select"),v.appendChild(g),m=t(g).css("font-size");var _=5+(m=parseInt(m))/16*7.7*e[w].length;b<_&&(b=_),g.style.width=b+"px",g.innerText=e[w]}return n&&""==s.transform&&(s.left=parseInt(s.left)-o.clientWidth-5+"px",u.left=parseInt(s.width)+parseInt(s.left)+5+"px"),t(Ji).on("click",function(i){function s(t){for(var i=t.parentNode;i&&(!i.classList||!i.classList.contains("ap-correct-values-dropdown"));)i=i.parentNode;return i}for(var e=s(i.target),n=t(e).find(".ap-correct-values-dropdown-content"),h=t(this).find(".ap-correct-values-dropdown-content"),r=0;r<h.length;++r){var a=h[r];if(!(n&&n.length>0&&a==n[0])){var o=s(a);o&&(o.style.zIndex="auto"),a.style.display="none"}}}),t(o).on("click",function(s){for(var e=t(this).find(".ap-correct-values-dropdown-content"),n=0;n<e.length;++n){var h=e[n],a=h.style;"block"==a.display?(this.style.zIndex="auto",a.display="none"):(this.style.zIndex=1e3,a.display="block");var o=0,u=h.children[0],c=t(u).apInputTagAutoWidth();o=Yi(c,o);for(var f=t(h).find("li"),l=0;l<f.length;++l){var d=f[l],p=t(d).apInputTagAutoWidth()+5;o=Yi(p,o)}for(l=0;l<f.length;++l){(d=f[l]).style.width=o+"px"}u.style.width=o+"px",r._s.k!=i.Y&&(a.right="0")}}),o},fillSolid:function(t,i,s,e){return this.shape.fillSolid(t,i,s,e),this},userSelection:function(i){return arguments.length?(i?t(this.node).removeClass("ap-no-select"):t(this.node).addClass("ap-no-select"),this):t(this.node).classList.contains("ap-no-select")}}),Ae={_default:function(t,i){return new Re(t,i)}};function De(t){for(var i=arguments.length;--i>0;)Ae[arguments[i]]=t}function Ne(t,s,e){if(s&&e&&void 0!==e.m){var n=Qt[s.Es.options.playMode];if(!((e.m&n)==n)&&e.k!=i.C&&e.k!=i.P)return null}var h=Ae[t]||Ae._default;return h?h.apply(null,Array.prototype.slice.call(arguments,1)):null}var Oe=Ds(Re,{$init:function(e,n){var h=e.defaultCtrlData();h.k=i.G,h.t=s.K,h.margin=n.margin,h.ti=-1;var r=[],a=void 0;if(e._s.ca&&(a=e._s.ca.r||{}),e._s&&e._s.h)for(var o=0;o<e._s.h.length;o++){var u={};u.r=[0,h.margin,0,0,2,1],a&&a.length&&a.length==e._s.h.length&&a[o]&&(u.f=a[o].f||100),r.push(u)}h.s=[{t:["<span></span>",n.textStyle[0],n.textStyle[1]],f:n.fill,w:r,a:0}],Re.prototype.$init.call(this,e,h),this.node.style.zIndex=$t.Oi,t(this.node).css("visibility",e.Es.Fe?"visible":"hidden")},onResized:function(t,i){if(this.$r&&!0===this.$r)Re.prototype.onResized.call(this,t,i);else{var s=this.slide.width(),e=this.slide.height();this.node.style.width=Math.max(s-2*this._s.margin,0)+"px",this.node.style.height=Math.max(e-2*this._s.margin,0)+"px";var n=this.innerTextNode(),h=n?n.width()+this.Tr[0]+this.Tr[2]+1:0,r=n?n.height()+this.Tr[1]+this.Tr[3]+1:0;this.node.style.width=h+"px",this.node.style.height=r+"px";for(var a=0;a<this._s.s.length;a++){var o=this._s.s[a].w;for(a=0;a<o.length;a++)o[a].r[2]=h,o[a].r[3]=r}this.us&&this.us.layout(),this.$r=!0,Re.prototype.onResized.call(this,t,i),this.$r=!1}},innerTextNode:function(){return t("span",t(this.textNode)).first()},onLayoutSwitched:function(){if(Re.prototype.onLayoutSwitched.call(this),this.Wr){var i=this.innerTextNode();t(i).html(this.Wr||""),this.onResized(0,0)}}});De(function(t,i){return new Oe(t,i)},i.G);var Le=Ds(Re,{$init:function(t,i){if(this.jr=0,this.Qr=0,this.Kr=!1,this.qr=!1,Re.prototype.$init.call(this,t,i),this._s.tmp.type==yi){var s=this.shape,e=s?s.node:void 0;s&&s.shapeNode;if(e){var n=e.querySelector("defs");n||(n=Ji.createElementNS(Ai,"defs"),e.appendChild(n));var h=Ji.createElementNS(Ai,"mask");h.id=s.container.id?s.container.id+"-masktimer":"ap-masktimer-"+te();var r=Ji.createElementNS(Ai,"rect");r.setAttribute("x",0),r.setAttribute("y",0),r.setAttribute("width",s.container.clientWidth),r.setAttribute("height",s.container.clientHeight),r.setAttribute("fill","white"),h.appendChild(r);var a=Ji.createElementNS(Ai,"path"),o=En[s.os];if(o&&o[0]){var u=s.container.clientWidth,c=s.container.clientHeight,f=new Mn;o[0].apply(f,[0,0,u,c]),a.setAttribute("d",f.path()),a.setAttribute("fill","black"),h.appendChild(a)}n.appendChild(h),s.Jr&&s.Jr.setAttribute("mask","url(#"+h.id+")"),s.Zr=h}}this.prez().registerTimer(this)},oh:function(t,i){this.ia(),i&x&&this.pauseTimer()},restore:function(t){return Re.prototype.restore.call(this,t),t||(t=this.savedData()),t&&t.tm&&(this.Kr=t.tm.s,this.Qr=t.tm.v,this.qr=t.tm.as,this.jr=this.prez().elapsedTime()-this.Qr,this.ia()),this},cleanup:function(){return this.prez().unregisterTimer(this),Re.prototype.cleanup.call(this)},startTimer:function(){this.Kr||(this.Qr&&this.Qr!=this._s.tmp.duration||(this.Qr=0),this.Kr=!0,this.jr=this.prez().elapsedTime()-this.Qr,this.tick())},pauseTimer:function(){this.Kr&&(this.Kr=!1,this.sa())},stopTimer:function(){this.Kr=!1,this.Qr=0,this.sa(),this.ia()},sa:function(){this.savedData(!0).tm={s:this.Kr,v:this.Qr,as:this.qr}},tick:function(){this.Kr&&!this.prez().ended&&(this.Qr=this.prez().elapsedTime()-this.jr,this.Qr>=this._s.tmp.duration&&(this.Qr=this._s.tmp.duration,this.Kr=!1),this.sa(),this.ia(),this.Qr==this._s.tmp.duration&&t(this).triggerHandler("ap-timer-complete"))},ia:function(){var t=this._s.tmp.type,i=this._s.tmp.subType,s=this._s.tmp.countdown,e=this._s.tmp.duration,n=s?e-this.Qr:this.Qr,h=this.shape,r=n/e;if(t==ki){var a,o,u,c="";if(i==Ti?(o=s?Math.ceil(n/1e3):Math.floor(n/1e3),u=Math.floor(o/60),c=("00"+Math.floor(u/60)).toString().slice(-2)+" : "+("00"+u%60).toString().slice(-2)+" : "+("00"+o%60).toString().slice(-2)):i==xi?(u=s?Math.ceil(n/1e3/60):Math.floor(n/1e3/60),c=("00"+Math.floor(u/60)).toString().slice(-2)+" : "+("00"+u%60).toString().slice(-2)):i==Si?(o=s?Math.ceil(n/1e3):Math.floor(n/1e3),c=("00"+(u=Math.floor(o/60))).toString().slice(-2)+" : "+("00"+o%60).toString().slice(-2)):i==Ei&&(a=n%1e3,c=("00"+(o=Math.floor(n/1e3))).toString().slice(-2)+" : "+("000"+a).toString().slice(-3)),c!=this.text()){var f=!!this.textNode;this.html(c),!f&&this.eh&&this.tr&&this.onResized()}}else if(t==yi&&h&&h.Zr){var l=h.Zr.querySelector("path");if(l){var d=En[h.os],p="none"!==h.Xr?h.Gr:0,v=p%2==0?0:1,m=Vi(p/2);if(d&&d[0]){var b=h.container.clientWidth-2*m-2*v,w=h.container.clientHeight-2*m-2*v,g=new Mn;d[0].apply(g,[b*r+v+m,m+v,b-b*r,w].concat(h.ea)),l.setAttribute("d",g.path())}}}}});De(function(t,i){return new Le(t,i)},i.U);var Fe=Ds(Re,{$init:function(i,s){Re.prototype.$init.call(this,i,s),this.node.setAttribute("role","button");var e=this;t(this.node).on("mousedown",function(t){e.filterEvent(t)||($s(t,!0),e.na=!0,setTimeout(function(){e.na&&(e.ns(!1,!0)&&e.us.flags(e.us.flags()|y),delete e.na)},0))}).on("mouseup",function(){e.na&&delete e.na,e.us.flags(e.us.flags()&~y)}).on("keydown",function(i){i.which!==Qs.SPACE&&i.which!==Qs.ENTER||!e.ns(!1,!0)||e.us.has(y)||(i.preventDefault(),i.stopPropagation(),t(e.textNode||e.shape.shapeNode).trigger(t.Event("mousedown",{pageX:0,pageY:0})))}).on("keyup",function(i){i.which!==Qs.SPACE&&i.which!==Qs.ENTER||(i.preventDefault(),i.stopPropagation(),t(e.textNode||e.shape.shapeNode).trigger(t.Event("mouseup",{pageX:0,pageY:0})))}),this.on("ap-rollover",function(t){this.ns(!1,!0)&&(this.us.has(E)||this.us.flags(this.us.flags()|T))}).on("ap-rollout",function(){e.na&&delete e.na,this.us.has(E)||this.us.flags(this.us.flags()&~(T|y))})}});De(function(t,i){return new Fe(t,i)},i.M);var Ue=Ds(Re,{$init:function(t,i){Re.prototype.$init.call(this,t,i),this.on("ap-dblclick",function(t,i){this.ns(!1,!0)&&this.submit(t.value,!1)});var s=t.Es.options.playMode;"Tutorial"!==s&&"Practice"!==s||this.on("ap-incorrect",function(){this.Xh(!0)})},nr:function(){this.slide.Pn.push(this),Re.prototype.nr.call(this)},submit:function(t,i){if(this.prez()&&this.prez().ended)return this;if(!arguments.length)return this;var s=this._s.e||{},e=s.f,n=(e&Mt)!==Mt,h=n,r=h&&(e&Et)===Et,a=0,o=s.v||[],u=At.Si,c=-1;if(i||(o.length?c=o.indexOf(t):js.code(t)!==Ks.OUTSIDE&&(c=0)),c>=0)u=At.xi,h&&s.m&&(a=r?s.m[c]||0:s.m);else if(i&&Qs.shouldIgnoreIncorrect(t))return this;return this.Ar(this.savedData(!0),u,t,h?a:void 0,!n,t),this},restore:function(t){return Re.prototype.restore.call(this,t),t||(t=this.savedData()),t&&void 0!==t.a&&this.Rr(t.a),this},gs:function(t){t=t||{};var i=this._s.e||{},s=i.f||0,e=i.v||[],n=(s&xt)===xt,h=this.savedData();if(n){Re.prototype.Dr.call(this);var r=h&&h.r===At.xi,a=null;if(r&&t.showCorrect||!r&&t.showIncorrect){var o=this.Br(r,"middle-right");o&&(this.node.appendChild(o),r?this.node.Nr=o:this.node.Or=o,a=o.style),this.Xh(!0)}if(t.showValues){if(e.length>0){for(var u=[],c=0;c<e.length;c++)u.push(Ks.name(e[c],this.slide.prez().ui.Cs));var f=Re.prototype.Vr.call(this,a,u);f&&(this.Lr=f)}this.Xh(!0)}if(t.showResult){var l=At.Ei;h&&void 0!==h.r&&(l=h.r);var d=this.Yr(l,this.slide.prez().responseResultString(l));d&&(this.slide.node.appendChild(d),this.slide.Fr=d)}}}}),Ye=Ds(Re,{$init:function(i,s){Re.prototype.$init.call(this,i,s);var e=this;t(this.node).on("mousedown",function(t){e.filterEvent(t)||($s(t,!0),Ks.fromTouch&&e.ns(!1,!0)&&e.submit(Ks.combinedCode(t),t.originalEvent||t))}).on("keydown keyup",function(t){if(Qs.hasKeydown(t.which)===("keydown"===t.type)){var i=!0,s=Qs.combinedCode(t);if(e.ns(!1,!0)){var n=e.Rn(s,!0);i=n.result!==At.yi,e.submit(n,t.originalEvent||t)}else i=Qs.shouldPreventDefault(s,!1,!0);i&&Qs.preventDefault(t)}t.stopPropagation()});var n=i.Es.options.playMode;"Tutorial"!==n&&"Practice"!==n||this.on("ap-incorrect",function(){this.Xh(!0)})},nr:function(){this.slide.ln.push(this),Re.prototype.nr.call(this)},submit:function(i,s){if(this.prez()&&this.prez().ended)return this;if(!arguments.length)return this;var e=s.type.indexOf("key")>=0,n="object"==typeof i?i:this.Rn(i,e);return e&&t(this).triggerHandler(t.Event("ap-keypress",{value:n.answer,originalEvent:s})),n.result!==At.yi&&this.Ar(this.savedData(!0),n.result,n.answer,n.score,!n.report,n.answer),this},Rn:function(t,i){var s=this._s.e||{},e=s.f,n=(e&Mt)!==Mt,h=n,r=h&&(e&Et)===Et,a=0,o=s.v||[],u=At.Si,c=-1;return i?c=o.length?o.indexOf(t):0:js.code(t)!==Ks.OUTSIDE&&(c=0),c>=0?(u=At.xi,h&&s.m&&(a=r?s.m[c]||0:s.m)):i&&Qs.shouldIgnoreIncorrect(t)&&(u=At.yi),{result:u,answer:t,score:h?a:void 0,report:n}},restore:function(t){return Re.prototype.restore.call(this,t),t||(t=this.savedData()),t&&void 0!==t.a&&this.Rr(t.a),this},gs:function(t){t=t||{};var i=this._s.e||{},s=i.f||0,e=i.v||[],n=(s&xt)===xt,h=this.savedData();if(n){Re.prototype.Dr.call(this);var r=h&&h.r===At.xi,a=null;if(r&&t.showCorrect||!r&&t.showIncorrect){var o=this.Br(r,"middle-right");o&&(this.node.appendChild(o),r?this.Nr=o:this.Or=o,a=o.style),this.Xh(!0)}if(t.showValues){for(var u=[],c=0;c<e.length;c++)u.push(js.name(e[c],this.slide.prez().ui.Cs));var f=Re.prototype.Vr.call(this,a,u);f&&(this.Lr=f),this.Xh(!0)}if(t.showResult){var l=At.Ei;h&&void 0!==h.r&&(l=h.r);var d=this.Yr(l,this.slide.prez().responseResultString(l));d&&(this.slide.node.appendChild(d),this.slide.Fr=d)}}},ns:function(t,i){return(!this.prez()||!this.prez().ended)&&Re.prototype.ns.call(this,t,i)}}),He=Ds(Re,{$init:function(t,i){Re.prototype.$init.call(this,t,i)}});function Be(t){return arguments.length?(this.textNode||this.vr(),this.textNode.value=t+"",this.ha(),this):this.textNode&&this.textNode.value||""}function ze(){return[this.ra.firstCorrectValue()]}De(function(t,i){return i.t===s.j?new Ye(t,i):i.t===s.V?new Ue(t,i):i.t===s.H?new He(t,i):void 0},i.C);var Xe=Ds(Re,{$init:function(i,s){this.sh=!0,s.v&&(this.aa=s.v),Re.prototype.$init.call(this,i,s),this.vr(),this.oa();var e=this;t(this.node).on("mousedown",function(t){e.ns(!1,!0)?e.filterEvent(t)||($s(t,!0),t.target!==e.textNode&&(t.preventDefault(),e.textNode.focus())):t.preventDefault()}),t(this.textNode).on("focus",function(i){e.ns(!1,!0)?e.prez()&&e.prez().highlightFocus()&&t(e.node).addClass("ap-focused"):i.preventDefault()}).on("blur",function(i){e.ns(!1,!0)?t(e.node).removeClass("ap-focused"):i.preventDefault()})},ur:function(){var i,s,e=this._s.f;e&ht.ft?i=Ji.createElement("textarea"):((i=Ji.createElement("input")).type=e&ht.ct?"password":"text",i.autocomplete="off"),i.spellcheck=!1,(s=i.style).border="none",s.margin=s.padding=0,s.backgroundColor="transparent",s.outline="none",this.disabled()&&(i.disabled=!0);var n=this.ua(),h=this;return n===It?t(i).on("input",function(t){if(h.ns(!1,!0)){var i=h.Rn();i.answer!==i.prevValue&&(i.result===At.xi||i.result===At.Ti||i.result===At.Si&&i.prevValue.substr(0,i.answer.length)!==i.answer)&&h.submit(i)}}):n>0&&t(i).on("keydown keyup",function(t){Qs.hasKeydown(t.which)===("keydown"===t.type)&&Qs.combinedCode(t)===n&&h.ns(!1,!0)&&h.submit()}),i},zh:function(t){isNaN(t)||(this.vr(),-2==t?this.textNode.tabIndex=-1:-1==t?this.textNode.removeAttribute("tabIndex"):this.textNode.tabIndex=t)},html:Be,text:Be,value:Be,caseSensitive:function(){return(this._s.f&ht.lt)===ht.lt},dr:function(){var t=Re.prototype.dr.call(this)+"border: none; margin: 0; padding: 0; background: transparent; width: 100%; outline: none;";return this._s.f&ht.ft&&(t+=" height: 100%; resize: none;"),t},clear:function(t,i){return this.prez()&&this.prez().ended&&!i?this:this.text("")},restore:function(t){return Re.prototype.restore.call(this,t),t||(t=this.savedData()),t&&void 0!==t.a&&this.Rr(t.a),this.text(t&&t.v||"")},oh:function(t,i){this.textNode&&(this.textNode.disabled=(i&x)==x)},ua:function(){var t=this._s.e||{},i=t.s||It;return t.f&(xt|St)||(i=It),i},submit:function(t){if(this.prez()&&this.prez().ended)return this;if(!t){if(this.ua()===It)return this;t=this.Rn()}return t.result===At.Mi&&(t.result=At.Si),t.result!==At.yi&&this.Ar(this.savedData(!0),t.result,t.answer,t.score,!t.report,t.answer),this},Rn:function(){var i=this._s.e||{},s=i.f,e=(s&xt)===xt,n=(s&Mt)!==Mt,h=e&&n,r=h&&(s&Et)===Et,a=0,o=this.value(),u=At.yi;if(e){var c,f,l,d=!this.caseSensitive(),p=d?o.toUpperCase():o,v=i.v||[""],m=-1;for(u=At.Si,f=0,l=v.length;f<l;++f){if(c=v[f],d&&(c=c.toUpperCase()),p===c){m=f,u=At.xi;break}c.substr(0,p.length)===p&&p.length<c.length&&(u=At.Mi)}u===At.xi?h&&i.m&&(a=r?i.m[m]||0:i.m):o||(u=At.Ei)}else s&St&&(u=o?At.Ti:At.Ei);o!==this.fa&&(this.ha(),t(this).triggerHandler(t.Event("ap-textenter",{value:o})));var b={result:u,answer:o,score:h?a:void 0,report:n,prevValue:this.fa||""};return this.fa=o,b},ha:function(){if(this.aa&&this.prez()){var t=this.textNode.value,i=this.prez().vars;i.os(this.aa)==wi.NUMBER&&(t=Number(t)),i.set(this.aa,t)}},firstCorrectValue:function(){var t=this._s.e;return t&&t.v&&t.v.length>0&&t.v[0]?t.v[0]:""},oa:function(){var t=this.slide,i=t.Es.options.playMode||"",s=this._s.e.f||0;if("Demo"===i&&(s&xt)===xt){for(var e=t.ae,n=0,h=0,r=null,a=null,o=(t._s.tl[0]||null)[2],u=0,c=null!==o?o.length:0;u<c;++u)if(o[u][0]==this._s.i){for(var f=o[u][1],l=0,d=null!==f?f.length:0;l<d;++l){var p=f[l];if(p&&p[0]>=se.EffectType.ENTRANCE_START&&p[0]<=se.EffectType.ENTRANCE_END&&!r?r=p:p&&p[0]>=se.EffectType.EXIT_START&&p[0]<=se.EffectType.EXIT_END&&!a&&(a=p,r&&r[1]>0&&a[0]===se.EffectType.DISAPPEAR&&a[1]<r[1]&&(a=null)),r&&a)break}break}var v,m=n=r?r[1]:0,b=h=a?a[1]+a[2]-n:t._s.d-n,w=h-500;if(r)(v=r[2])>0&&(v>b&&(v=b),b-=v,m+=v,w-=v);if(a)(v=a[2])>0&&(v>b&&(v=b),w-=v);var g=new eh(this,"text",{startTime:m,duration:w,tweenParams:[ze],tweenType:jt.Gi});return g&&e.addChild(g),this}},gs:function(t){t=t||{};var i=(((this._s.e||{}).f||0)&xt)===xt,s=this.savedData();if(i){Re.prototype.Dr.call(this);var e=s&&s.r===At.xi,n=null;if(e&&t.showCorrect||!e&&t.showIncorrect){var h=this.Br(e,"middle-right");h&&(this.node.appendChild(h),e?this.Nr=h:this.Or=h,n=h.style)}if(t.showValues){var r=(this._s.e||{}).v||[""],a=Re.prototype.Vr.call(this,n,r);a&&(this.Lr=a)}if(t.showResult){var o=At.Ei;s&&void 0!==s.r&&(o=s.r);var u=this.Yr(o,this.slide.prez().responseResultString(o));u&&(this.slide.node.appendChild(u),this.slide.Fr=u)}}},ns:function(t,i){return(!this.prez()||!this.prez().ended)&&Re.prototype.ns.call(this,t,i)}});De(function(t,i){return new Xe(t,i)},i.S);var Ge=Ds(Re,{$init:function(t,i){Re.prototype.$init.call(this,t,i);var s=t.Es.options.playMode;"Tutorial"!==s&&"Practice"!==s||this.on("ap-incorrect",function(){this.Xh(!0)})},submit:function(t){if(this.prez()&&this.prez().ended)return this;if(!t)return this;var i=this._s.e||{},s=i.f,e=(s&Mt)!==Mt,n=e,h=n&&(s&Et)===Et,r=!1,a=0,o=t;if(this.dropHelper.droppedObjects().indexOf(t)<0){if(!this.dropHelper.accepted(t)||this.dropHelper.droppedObjects().length)return this;r=!1,t=null}else{var u=(i.v||[]).indexOf(t.id());u>=0?(r=!0,n&&i.m&&(a=h?i.m[u]||0:i.m)):r=!1}var c,f=this.savedData(!0),l=r?P:R;o&&o.hasStateFlag(l)&&o.us.flags(l),this.hasStateFlag(l)&&this.us.flags(l),this.dropHelper.absolutePosition()&&t&&t.xh&&(c=[t.xh.x,t.xh.y]),this.Ar(f,r?At.xi:At.Si,t?t.id():0,n?a:void 0,!e,t,c);var d=this.maxAttempts();return f.a!=d&&-1!=d||(o.hasStateFlag(l)&&o.savedCurrentState(),this.hasStateFlag(l)&&this.savedCurrentState()),this},restore:function(t){if(this.clear(),!t&&!(t=this.savedData()))return this;if(this._s.rs&&t.st&&(this.state(t.st),this.bn()),void 0!==t.a&&this.Rr(t.a),t.v){var i=this.slide.object(t.v),s={x:t.d?t.d[0]:0,y:t.d?t.d[1]:0};if(i){var e=i.savedData();i._s.rs&&e&&e.st&&(i.state(e.st),i.bn()),this.dropHelper.drop(i,s,!1)}}return this},gs:function(t){t=t||{};var i=this._s.e||{},s=i.f||0,e=i.v||[],n=(s&xt)===xt,h=this.savedData();if(n){Re.prototype.Dr.call(this);var r=h&&h.r===At.xi;if(r&&t.showCorrect||!r&&t.showIncorrect)(u=this.Br(r,"middle-left"))&&(this.node.appendChild(u),r?this.Nr=u:this.Or=u);if(t.showCorrect)for(var a=0;a<e.length;a++){var o,u;if(o=this.slide.object(e[a]))Re.prototype.Dr.call(o),(u=this.Br(!0,"middle-left"))&&(o.node.appendChild(u),o.Nr=u)}if(t.showIncorrect)if(h&&void 0!==h.v)if(e.indexOf(h.v)<0)if(o=this.slide.object(h.v))Re.prototype.Dr.call(o),(u=this.Br(!1,"middle-left"))&&(o.node.appendChild(u),o.Or=u);if(t.showResult){var c=At.Ei;h&&void 0!==h.r&&(c=h.r);var f=this.Yr(c,this.slide.prez().responseResultString(c));f&&(this.slide.node.appendChild(f),this.slide.Fr=f)}(t.showCorrect||t.showValues)&&this.Xh(!0)}},ns:function(t,i){return(!this.prez()||!this.prez().ended)&&Re.prototype.ns.call(this,t,i)}});De(function(t,i){return new Ge(t,i)},i.P);var Ve=Ds(Re,{$init:function(i,s){this.la=16,Re.prototype.$init.call(this,i,s);var e=this;t(this.node).on("mousedown",function(t){e.filterEvent(t)||($s(t,!0),e.na=!0,setTimeout(function(){e.na&&(e.ns(!1,!0)&&e.us.flags(e.us.flags()|y),delete e.na)},0))}).on("mouseup",function(){e.na&&delete e.na,e.us.flags(e.us.flags()&~y)}),this.on("ap-rollover",function(t){this.ns(!1,!0)&&this.us.flags(this.us.flags()|T)}).on("ap-rollout",function(){e.na&&delete e.na,this.us.flags(this.us.flags()&~(T|y))})},textMargin:function(t,i,s,e){if(!arguments.length){var n=Re.prototype.textMargin.call(this);if(this.isShowToggleButton()){var h=this.la+Vi(2*Yi(7,this.la/4));if(n[0]+=h,this.tr){var r=this.textContainer?this.textContainer.style:null;r&&(r.paddingTop=n[1]+"px",r.paddingBottom=n[3]+"px"),this.node.clientHeight<h&&(n[1]+=(h-this.node.clientHeight)/2,n[3]+=(h-this.node.clientHeight)/2)}}return n}return Re.prototype.textMargin.call(this,t,i,s,e)},isShowToggleButton:function(){var t=this.us,i=t._s[t.se];return i.tg&&!!i.tg[6]},check:function(t){return arguments.length||(t=!0),this.da(t,!1),this},da:function(i,s){var e=this.us.flags(),n=!1;this.checked()!==i&&(n=!0,i?e|=S:e&=~S),this.us.flags(e),s&&n&&t(this).triggerHandler(i?"ap-check":"ap-uncheck")},checked:function(){return(this.us.flags()&S)===S},oh:function(t,i){this.node.setAttribute("aria-checked",i&S?"true":"false")},clear:function(t,i){return this.prez()&&this.prez().ended&&!i?this:(this.da(!1,!1),this)},setIconSize:function(t){this.la!==t&&(this.la=t,this.textContainer&&this.ir())},value:function(t){return arguments.length?(this.da(t,!1),this):this.checked()},ns:function(t,i){return(!this.prez()||!this.prez().ended)&&Re.prototype.ns.call(this,t,i)}}),$e=Ds(Ve,{$init:function(i,s){Ve.prototype.$init.call(this,i,s),this.node.setAttribute("role","checkbox");var e=this;this.on("ap-click",function(){this.ns(!1,!0)&&this.da(!this.checked(),!0)}),t(this.node).on("keydown",function(t){var i;switch(t.which){case Qs.SPACE:i=e;break;case Qs.TAB:var s=e.node.tabIndex;if(void 0===s||-1==s)break;var n=t.shiftKey?e.pa():e.va();n&&(n.zh(s),e.zh(-2),t.stopPropagation(),t.preventDefault(),n.ns(!1,!0)&&n.node.focus())}i&&(t.stopPropagation(),t.preventDefault(),i.ns(!1,!0)&&(i.da(!i.checked(),!0),i!==e&&i.node.focus()))})},va:function(){var t=null,i=null,s=!1;if(this.parent&&this.parent!==this.slide){var e=void 0,n=this.parent.savedData();n&&n.s&&(e=n.s);var h,r,a,o=this.parent.children;for(h=0,r=o.length;h<r;++h)if((a=e?o[e.indexOf(h)]:o[h])instanceof $e){if(!a.disabled()&&(i||(i=a),s)){t=a;break}a===this&&(s=!0)}}return t},pa:function(){var t=null,i=null,s=!1;if(this.parent&&this.parent!==this.slide){var e=void 0,n=this.parent.savedData();n&&n.s&&(e=n.s);var h,r,a=this.parent.children;for(h=a.length-1;h>=0;--h)if((r=e?a[e.indexOf(h)]:a[h])instanceof $e){if(!r.disabled()&&(i||(i=r),s)){t=r;break}r===this&&(s=!0)}}return t}});De(function(t,i){return new $e(t,i)},i.N);var We=Ds(Ve,{$init:function(i,s){Ve.prototype.$init.call(this,i,s),this.node.setAttribute("role","radio");var e=this;this.on("ap-click",function(){this.ns(!1,!0)&&!this.checked()&&this.da(!0,!0)}),t(this.node).on("keydown",function(t){var i;switch(t.which){case Qs.SPACE:i=e;break;case Qs.LEFT:case Qs.UP:i=e.ma();break;case Qs.RIGHT:case Qs.DOWN:i=e.ba()}i&&(t.stopPropagation(),t.preventDefault(),!i.checked()&&i.ns(!1,!0)&&(i.da(!0,!0),i!==e&&i.node.focus()))})},radioGroup:function(t){return arguments.length?(this.jh=t,this):this.jh},da:function(t,i){if(t&&this.parent&&this.parent!==this.slide){var s,e,n,h=this.jh,r=this.parent.children;for(s=0,e=r.length;s<e;++s)(n=r[s])!==this&&n instanceof We&&n.jh===h&&n.da(!1,i)}Ve.prototype.da.call(this,t,i),t&&this.parent&&-1===this.node.tabIndex&&this.parent.updateTabIndexGR(this)},ma:function(){var t=null,i=null,s=!1;if(this.parent&&this.parent!==this.slide){var e=void 0,n=this.parent.savedData();n&&n.s&&(e=n.s);var h,r,a=this.parent.children;for(h=a.length-1;h>=0;--h)if((r=e?a[e.indexOf(h)]:a[h])instanceof We&&r.jh===this.jh){if(!r.disabled()&&(i||(i=r),s)){t=r;break}r===this&&(s=!0)}}return t||i===this||(t=i),t},ba:function(){var t=null,i=null,s=!1;if(this.parent&&this.parent!==this.slide){var e=void 0,n=this.parent.savedData();n&&n.s&&(e=n.s);var h,r,a,o=this.parent.children;for(h=0,r=o.length;h<r;++h)if((a=e?o[e.indexOf(h)]:o[h])instanceof We&&a.jh===this.jh){if(!a.disabled()&&(i||(i=a),s)){t=a;break}a===this&&(s=!0)}}return t||i===this||(t=i),t}});function je(){return arguments.length?this:""}De(function(t,i){return new We(t,i)},i.O);var Qe=Ds(Re,{$init:function(t,i){Re.prototype.$init.call(this,t,i);var s=this.node.style;this.Ae&&"auto"===s.overflow||(this.node.style.pointerEvents="none")},filterEvent:function(i){var s,e,n=i.target,h=this.children;for(s=h.length-1;s>=0;--s)if((e=h[s]).node===n||t.contains(e.node,n))return e.filterEvent(i);return Re.prototype.filterEvent.call(this,i)},childById:function(t){var i,s,e=this.children;for(i=e.length-1;i>=0;--i)if(e[i].id()===t){s=e[i];break}return s},html:je});function Ke(t,i){var s,e,n=i.us.uh(t.us.at());n||(n=i.us.uh(0)),n&&(t.fh(n[0],n[1],n[2]),s=t.node.offsetLeft||0,e=t.node.offsetTop||0,(n=t.us.uh(t.us.at()))&&(t.fh(n[0],n[1],n[2]),s-=t.node.offsetLeft||0,e-=t.node.offsetTop||0,t.translate(s,e)))}var qe=Ds(Qe,{$init:function(e,n){Qe.prototype.$init.call(this,e,n),this.wa=this._s.t;var h,r,a,o=this.children,u=this._s.e||{};u.v;if((this._s.e&&this._s.e.f&Ct||this.wa==s.rt)&&(this.ga=!0,this._a(),this.wa!=s.rt&&this.zh(this._s.ti)),this.wa===s.ut){var c=0;for(h=0,r=o.length;h<r;++h)(a=o[h]).radioGroup?a.radioGroup(c):++c}else if(this.wa===s.rt){var f={start:function(i,s){var e=this.rlControl,n=this.style;if(!e||!e.ns(!1,!0)||e.prez()&&e.prez().ended)return!1;if(e.parent&&e.parent.Ae){e.Oh=getTransformationMatrix(this.parentNode).inverse(),e.Lh=e.Oh.transformPoint(s.originalPosition.left,s.originalPosition.top),e.Lh.x+=s.originalPosition.left-(parseFloat(this.offsetLeft)||0),e.Lh.y+=s.originalPosition.top-(parseFloat(this.offsetTop)||0);var h=e.textContainer,r=h.style;Se.dragEffect(e,!0);var a=Ji.createElement("div"),o=h.cloneNode(!0);(u=a.style).position="relative",["flexGrow","flexShrink","width","height","alignSelf","margin","order"].forEach(function(t){u[t]=n[t]}),o.style.visibility="hidden",a.appendChild(o),e.ka={position:n.position,width:n.width,height:n.height,left:n.left,top:n.top},n.width=e.node.offsetWidth+"px",n.height=e.node.offsetHeight+"px",n.position="absolute",e.ya={position:r.position,padding:r.padding,width:r.width,height:r.height,left:r.left,top:r.top,right:r.right,bottom:r.bottom},["left","top","right","bottom"].forEach(function(t){var i="padding"+t.charAt(0).toUpperCase()+t.slice(1);r[t]=r[i],r[i]=""}),r.position="absolute",r.width="",r.height="",t(a).addClass("ap-ctrl-drop-placeholder"),this.parentNode.appendChild(a),e.Ta=a,e.hasStateFlag(E)&&e.us.flags(E),t(e).triggerHandler(t.Event("ap-dragstart",{originalEvent:i}))}else{e.Nh={left:n.left,right:n.right,top:n.top,bottom:n.bottom},e.Oh=getTransformationMatrix(this.parentNode).inverse(),e.Lh=e.Oh.transformPoint(s.originalPosition.left,s.originalPosition.top),e.Lh.x+=s.originalPosition.left-(parseFloat(t(this).css("left"))||0),e.Lh.y+=s.originalPosition.top-(parseFloat(t(this).css("top"))||0),Se.dragEffect(e,!0);var u;a=Ji.createElement("div");(u=a.style).position="absolute",["left","right","top","bottom","width","height",Ms].forEach(function(t){u[t]=n[t]}),t(a).addClass("ap-ctrl-drop-placeholder"),this.parentNode.appendChild(a),e.Ta=a,e.hasStateFlag(E)&&e.us.flags(E),t(e).triggerHandler(t.Event("ap-dragstart",{originalEvent:i}))}},stop:function(i,s){var e=this.rlControl;if(e)if(Se.dragEffect(e,!1),e.parent&&e.parent.Ae){var n,h=e.node.style,r=e.textContainer.style,a=e.ka,o=e.ya;h.order=e.sequentialOrder;for(n in a)h[n]=a[n];for(n in o)r[n]=o[n];delete e.ka,delete e.ya,(u=e.Ta)&&u.parentNode&&u.parentNode.removeChild(u),delete e.Ta,e.hasStateFlag(M)&&e.us.flags(M),delete this.xa,delete this.Sa,delete this.Ea,t(e).triggerHandler(t.Event("ap-dragend",{value:null,originalEvent:i}))}else{var u;Ke(e,e.parent.children[e.sequentialOrder]),(u=e.Ta)&&u.parentNode&&u.parentNode.removeChild(u),delete e.Ta,e.hasStateFlag(M)&&e.us.flags(M),t(e).triggerHandler(t.Event("ap-dragend",{value:null,originalEvent:i}))}},drag:function(t,i){var s,e,n,h=this.rlControl;if(h)if(s=h.Oh.transformPoint(i.position.left,i.position.top),i.position.left=i.originalPosition.left+s.x-h.Lh.x,i.position.top=i.originalPosition.top+s.y-h.Lh.y,h.parent&&h.parent.Ae)for(e=this.style.zIndex,this.style.zIndex=-1,n=Ji.elementFromPoint(t.pageX,t.pageY),this.style.zIndex=e;n&&n!==Ji.documentElement;){if(n.rlControl){var r=!0;if(n&&n.rlControl){r=this.xa!==n.rlControl;var a=i.position.top;if(r)this.xa=n.rlControl,delete this.Sa;else if(void 0===this.Ea)r=!0;else if(void 0===this.Sa)a!=this.Ea&&(this.Sa=a>this.Ea);else{var o=a>this.Ea;o!=this.Sa&&a!=this.Ea&&(this.Sa=o,r=!0)}this.Ea=a}if(r&&n.rlControl!==h&&h.parent){var u=h.sequentialOrder,c=n.rlControl.sequentialOrder,f=h.parent.children;for(h.Ta.style.order=n.style.order,l=0,d=f.length;l<d;++l)(p=f[l])===h?p.sequentialOrder=c:((v=p.sequentialOrder)>u&&--v,v>=c&&++v,v!==p.sequentialOrder&&(p.sequentialOrder=v,p.node.style.order=v))}break}(n=n.parentNode)&&n!==Ji.documentElement||delete this.xa}else for(e=this.style.zIndex,this.style.zIndex=-1,n=Ji.elementFromPoint(t.pageX,t.pageY),this.style.zIndex=e;n&&n!==Ji.documentElement;){if(n.rlControl){if(n.rlControl!==h&&h.parent){u=h.sequentialOrder,c=n.rlControl.sequentialOrder,f=h.parent.children;var l,d,p,v,m=h.Ta.style,b=n.style;for(["left","right","top","bottom",Ms].forEach(function(t){m[t]=b[t]}),l=0,d=f.length;l<d;++l)(p=f[l])===h?p.sequentialOrder=c:((v=p.sequentialOrder)>u&&--v,v>=c&&++v,v!==p.sequentialOrder&&(p.sequentialOrder=v,Ke(p,f[v])))}break}n=n.parentNode}}};for(h=0,r=o.length;h<r;++h)(a=o[h]).node.rlControl=a,t(a.node).on("mousedown",function(t){this.rlControl&&this.rlControl.filterEvent(t)||$s(t,!0)}).css("touchAction","none").draggable(f)}this.wa===s.it&&this.node.setAttribute("role","radiogroup"),this.wa===s.ut&&this.zh(this._s.ti),this._s.k===i.H&&(this.Ma=!1,u.h&&(this.Ma=1==u.h),this.slide.Ca.addQuestion(this))},onResized:function(t,i){Re.prototype.onResized.call(this,t,i),this.ga&&this.shuffleAnswers(null,!0)},onLayoutSwitched:function(){Re.prototype.onLayoutSwitched.call(this),this.ga&&this.shuffleAnswers(null,!0)},zh:function(t){if(!isNaN(t)){var i=this._s.t;if(i!=s.rt&&i!=s.ot){var e=this.savedData(),n=void 0;e&&e.s&&(n=e.s);var h,r,a,o=this.children,u=-1,c=[];for(h=0,r=o.length;h<r;++h)n?(a=o[n.indexOf(h)]).zh(a._s.ti):a=o[h],a instanceof We?(u=a.jh,c.indexOf(u)<0?(t>=0&&a.zh(t),c.push(u)):a.zh(-2)):a instanceof Xe?a.zh(t):a instanceof $e&&(n&&t>=0?0==h?a.zh(t):a.zh(-2):a.zh(t))}else Re.prototype.zh.call(this,t)}},_a:function(){var t,i=this.savedData();if(i&&i.s)return i.s;switch(this.wa){case s.nt:case s.it:case s.et:case s.rt:t=us(this.children.length);break;case s.ot:var e,n,r=this.children,a=0;for(e=0,n=r.length;e<n;++e)r[e]._s.f&h&&++a;t=us(a)}return t&&(i||(i=this.savedData(!0)),i.s=t),t},shuffleAnswers:function(t,i){if(t)this.savedData(!0).s=t;else if(!(t=this._a()))return this;if(this.ga=!0,this.Yh||this.Hh){var e,n,r=this.children;switch(this.wa){case s.nt:case s.it:case s.et:for(e=0,n=r.length;e<n;++e)this.Ae?r[e].node.style.order=t[e]:Ke(r[e],r[t[e]]);break;case s.rt:for(e=0,n=r.length;e<n;++e)i&&void 0!==r[e].sequentialOrder||(r[e].sequentialOrder=t[e]),this.Ae?r[e].node.style.order=r[e].sequentialOrder:Ke(r[e],r[r[e].sequentialOrder]);break;case s.ot:var a,o=[];for(e=0,n=r.length;e<n;++e)(a=r[e])._s.f&h&&o.push(a);for(e=0,n=Ui(o.length,t.length);e<n;++e)i&&o[e].dropTarget||(this.Ae?o[e].node.style.order=t[e]:Ke(o[e],o[t[e]]))}return this}},submit:function(){if(this.prez()&&this.prez().ended)return this;var t,e,n,h,r,a,o,u,c,f,l=this.children,d=this._s.e||{},p=d.f,v=(p&xt)===xt,m=(p&Mt)!==Mt,b=v&&m,w=b&&(p&Et)===Et,g=0,_=!1,y=!1;if(this._s.k==i.H){for(a=d.v||[],o=[],u=[],t=0,e=l.length;t<e;++t)r=l[t],this.slide.Ca&&this.slide.Ca.isAnswered(r.id(),this.id())&&(o.push(r),u.push(r.id()),v&&(!_&&a.indexOf(r.id())<0&&(_=!0),w&&(g+=r._s.e.m)));y=0===this.slide.Ca.getHotSpotEffects(this.id()).length&&(!v||a.length>0),v&&!_&&(_=!this.slide.Ca.isAcceptAnswers(this.id(),a)),_&&w&&this.Ma&&(g=0),!v||_||y||this.Ma&&a.length!==o.length&&(_=!0)}else switch(this.wa){case s.it:case s.nt:case s.et:for(a=d.v||[],o=[],u=[],t=0,e=l.length;t<e;++t)(r=l[t]).checked&&r.checked()&&(o.push(r),u.push(r.id()),v&&(!_&&a.indexOf(r.id())<0&&(_=!0),w&&(g+=r._s.e.m)));y=0===o.length&&(!v||a.length>0),_&&w&&this.wa===s.et&&(g=0),!v||_||y||a.length===o.length||(_=!0);break;case s.ht:var T,x,S,E,M;for(o=[],u={},t=0,e=l.length;t<e;++t)if((r=l[t])instanceof Xe)if(o.push(r),S=r.value(),u[r.id()]=S,T=r._s.e||{},M=!r.caseSensitive(),v){for(M&&(S=S.toUpperCase()),x=-1,n=0,h=(a=T.v||[""]).length;n<h;++n)if(E=a[n],M&&(E=E.toUpperCase()),S===E){x=n;break}!_&&x<0&&S&&(_=!0),!y&&x<0&&!S&&(y=!0),w&&x>=0&&T.m&&(T.f&Et?g+=T.m[x]||0:g+=T.m)}else y||S||(y=!0);break;case s.rt:for(w=!1,(o=l.slice()).sort(function(t,i){return t.sequentialOrder-i.sequentialOrder}),u=[],t=0,e=o.length;t<e;++t)u.push(o[t].id());if(v&&!_)for(t=0,e=l.length;t<e;++t)if(l[t].sequentialOrder!==t){_=!0;break}break;case s.ot:var C,I,A,D,N,O,L,F=[],U=[];for(o=[],u={},t=0,e=l.length;t<e;++t)if((r=l[t]).dropHelper){a=(O=r._s.e||{}).v||[],o.push(r),u[r.id()]=A=[],(D=r.dropHelper.absolutePosition())&&(c||(c={}),c[r.id()]=L=[]);var Y=!1;for(n=0,h=(C=r.dropHelper.droppedObjects()).length;n<h;++n)I=C[n],A.push(I.id()),D&&(I.xh?L.push([I.xh.x,I.xh.y]):L.push([0,0])),U.push(I.id()),v&&(N=a.indexOf(I.id()),!_&&N<0&&(_=!0,Y=!1),N>=0&&!Y&&(Y=!0),w&&N>=0&&O.m&&(g+=O.m[N]||0));var H=Y?P:R;for(v&&r.hasStateFlag(H)&&(r.us.flags(H),r.savedCurrentState()),n=0,h=C.length;n<h;++n)if(I=C[n],U.push(I.id()),v){var B=a.indexOf(I.id()),z=k;z=B<0?R:P,I.hasStateFlag(z)&&(I.us.flags(z),I.savedCurrentState())}if(v&&!_&&A.length!==a.length)for(n=0,h=a.length;n<h;++n)A.indexOf(a[n])<0&&F.push(a[n])}if(v&&!_)for(t=0,e=F.length;t<e;++t)if(U.indexOf(F[t])<0){_=!0;break}U.length||v&&!F.length||(y=!0);break;case s.ut:o=[],u=[];var X,G=0;for(t=0,e=l.length;t<e;)(r=l[t]).radioGroup&&(r.jh!==G?(G=r.jh,void 0!==X&&(o.push(X),u.push(X?X.id():0)),X=r.checked()?r:null):r.checked()&&(X=r)),++t;void 0!==X&&(o.push(X),u.push(X?X.id():0)),y=o.indexOf(null)>=0;break;default:return this}return f=y?At.Ei:_?At.Si:v?At.xi:At.Ti,b&&!w&&f===At.xi&&(g=d.m||0),this.Ar(this.savedData(!0),f,u,b?g:void 0,!m,o,c),this},clear:function(t,e){return this.prez()&&this.prez().ended&&!e?this:(this.wa===s.rt&&this.shuffleAnswers(),this._s.k===i.H&&this.slide.Ca.clear(this),Re.prototype.clear.call(this,t,e))},disable:function(t){arguments.length||(t=!0),this._s.k===i.H&&this.slide.Ca.disableQuestion(this);var s,e,n=this.children;for(s=0,e=n.length;s<e;++s)n[s].disable(t);return Re.prototype.disable.call(this,t)},restore:function(t){if(!t&&!(t=this.savedData()))return Re.prototype.restore.call(this,t),this.clear(void 0,!0);void 0!==t.a&&this.Rr(t.a),!t.s||this.wa===Re.rt&&t.v||this.shuffleAnswers(t.s);var e,n,h,r=t.v,a=this.children;switch(this.wa){case s.nt:case s.it:case s.et:case s.ut:for(r||(r=[]),e=0,n=a.length;e<n;++e)(h=a[e]).check&&h.check(r.indexOf(h.id())>=0);break;case s.ht:for(r||(r={}),e=0,n=a.length;e<n;++e)(h=a[e])instanceof Xe&&h.value(r[h.id()]||"");break;case s.rt:var o;if(r&&r.length)for(e=0,n=a.length;e<n;++e)h=a[e],(o=r.indexOf(h._s.i))>=0&&(h.sequentialOrder=o,this.Ae?h.node.style.order=o:Ke(h,a[o]));break;case s.ot:var u,c,f,l,d,p,v=t.d||{};for(e=0,n=a.length;e<n;++e)if((h=a[e]).restore(),h.dropHelper)for(u=r&&r[h.id()]||[],f=v[h.id()]||[],h.dropHelper.clear(),d=0,p=u.length;d<p;++d)(c=this.slide.object(u[d]))&&(l=f[d],h.dropHelper.drop(c,{x:l?l[0]:0,y:l?l[1]:0},!1))}if(this._s.k==i.H)for(e=0,n=a.length;e<n;++e)(h=a[e]).restore();return this},cleanup:function(){if(this.wa===s.rt){var i,e,n,h=this.children;for(i=0,e=h.length;i<e;++i)(n=h[i]).node.rlControl&&(t(n.node).draggable("destroy"),delete n.node.rlControl),n.Ta&&n.Ta.parentNode&&n.Ta.parentNode.removeChild(n.Ta)}return Re.prototype.cleanup.call(this)},gs:function(t){t=t||{};var e=this._s.e||{},n=((e.f||0)&xt)===xt,h=this.savedData();if(n){switch(this.wa){case s.nt:case s.it:case s.et:var r=[];h&&(r=h.v||[]);for(var a=e.v||[],o=0;o<this.children.length;++o){var u=(I=this.children[o]).id();if(Re.prototype.Dr.call(I),t.showCorrect)if(a.indexOf(u)>=0)(P=this.Br(!0,"middle-left"))&&(I.node.appendChild(P),I.Nr=P);if(t.showIncorrect)if(r.indexOf(u)>=0&&a.indexOf(u)<0)(P=this.Br(!1,"middle-left"))&&(I.node.appendChild(P),I.Or=P)}break;case s.ht:r={};h&&(r=h.v||{});for(o=0;o<this.children.length;++o){if((I=this.children[o])instanceof Xe){a=(I._s.e||{}).v||[""];var c=!I.caseSensitive(),f=r[I.id()],l=[];if(c)for(var d=0;d<a.length;d++)l.push(a[d].toLowerCase());else l=a;var p=l.indexOf(c?f.toLowerCase():f)>=0;if(Re.prototype.Dr.call(I),p&&t.showCorrect||!p&&t.showIncorrect)(P=this.Br(p,"middle-right"))&&(I.node.appendChild(P),p?I.Nr=P:I.Or=P);if(t.showValues){var v=I.zr(a,"middle-right");v&&(v.style.transform+="translateX(-100%)",v.style.textAlign="right",I.node.appendChild(v),I.Lr=v)}}}break;case s.rt:var m=this.children,b=m.slice(),w=[];b.sort(function(t,i){return t.sequentialOrder-i.sequentialOrder});for(o=0;o<b.length;o++)w.push(b[o].id());for(r=h.v||w,o=0;o<m.length;o++){p=(f=r[o])===(I=m[o]).id();if(Re.prototype.Dr.call(I),p&&t.showCorrect||!p&&t.showIncorrect)(P=this.Hr(p,(o+1).toString(),"middle-left"))&&(I.node.appendChild(P),p?I.Nr=P:I.Or=P)}break;case s.ot:for(var g=0,_=[],k=(o=0,this.children.length);o<k;o++){var y=this.children[o];if(!y.dropHelper)if(g++,_.push(y.id()),t.showValues)Re.prototype.Dr.call(y),(P=this.Hr(p,g.toString(),"middle-left"))&&(y.node.appendChild(P),y.Or=P)}for(o=0;o<this.children.length;o++){r=[],a=[];if((I=this.children[o]).dropHelper){p=!0;var T=I._s.e||{},x=I.dropHelper.droppedObjects();a=T.v||[];for(d=0;d<x.length;d++)r.push(x[d].id());for(0==r.length&&a.length>0&&(p=!1),d=0;d<r.length;++d)a.indexOf(r[d])<0&&(p=!1);if(Re.prototype.Dr.call(I),p&&t.showCorrect||!p&&t.showIncorrect||!p&&t.showValues){var S,E=p&&a.length==r.length&&a.length>1,M=[];for(d=0,k=a.length;d<k;++d)(S=_.indexOf(a[d]))>=0&&M.push(S+1);if(1==M.length&&(g=M[0]),(!p||M.length>1&&!E)&&t.showValues){var C=M.length>1?M:g.toString();P=this.Hr(p,C,"middle-left")}else P=this.Br(p,"middle-left");P&&(I.node.appendChild(P),p?I.Nr=P:I.Or=P)}}}}if(this._s.k==i.H){r=[];h&&(r=h.v||[]);for(a=e.v||[],o=0;o<this.children.length;++o){var I;if((I=this.children[o])instanceof He){I.Xh(!0);u=I.id();Re.prototype.Dr.call(I);var P;p=a.indexOf(u)>=0;(P=this.Br(p,"middle-right"))&&(I.node.appendChild(P),p?I.Nr=P:I.Or=P)}}}if(Re.prototype.Dr.call(this.slide),t.showResult){var R=At.Ei;h&&void 0!==h.r&&(R=h.r);var A=this.Yr(R,this.slide.prez().responseResultString(R));A&&(this.slide.node.appendChild(A),this.slide.Fr=A)}}},ns:function(t,i){return(!this.prez()||!this.prez().ended)&&Re.prototype.ns.call(this,t,i)}});De(function(t,s){return s.t||s.k===i.H?new qe(t,s):new Qe(t,s)},i.L,i.F,i.H);var Je=Ds(Ie,{$init:function(i,s){void 0===s._s.fbi?this.node=t(".ap-slides",i.container)[0]:this.node=t(".ap-feedback-slides",i.container)[0],this.slide=s}});De(function(t,i){return new Je(t,i)},i.X);var Ze=Ds(Re,{$init:function(t,i){Re.prototype.$init.call(this,t,i)},createNode:function(){var t=Re.prototype.createNode.call(this),i=Ji.createElement("img"),s=i.style;return t.tabIndex=-1,t.appendChild(i),s.position="absolute",s.width="100%",s.height="100%",s.pointerEvents="auto",this.imageNode=i,t},ih:function(t,i,s,e){this.imageNode.src=this.prez().getResource(t+"."+s),this.imageNode.style.opacity=i/255,e&&this.imageNode.setAttribute("alt",e),this.shape.Ia(t,s,i)},cursor:function(t){return Re.prototype.cursor.call(this,t),this.imageNode.style.cursor=t,this},html:je});function tn(i,s,e){function n(){var n=50+s;n=""==i.value?50+s:t(i).apInputTagAutoWidth()+s,n+="px";var h=i.style.width!=n;t(i).css({width:n}),h&&e&&e()}s=s||0;var h="keyup,keypress,focus,blur,change".split(",");for(var r in h)i.addEventListener(h[r],n,!1);n()}De(function(t,i){return new Ze(t,i)},i.u),t.fn.apInputTagAutoWidth=function(){t.fn.apInputTagAutoWidth.fakeEl||(t.fn.apInputTagAutoWidth.fakeEl=t("<span>").hide().appendTo(Ji.body));var i=i||this.val()||this.text();t.fn.apInputTagAutoWidth.fakeEl.text(i).css("font-family",this.css("font-family")).css("font-size",this.css("font-size")).css("font-weight",this.css("font-weight")).css("font-weight",this.css("font-weight")).css("font-variant",this.css("font-variant"));var s=parseInt(t.fn.apInputTagAutoWidth.fakeEl.width())+5;return s<50&&(s=50),s};var sn=Ds(Re,{$init:function(i,s){Re.prototype.$init.call(this,i,s),this.vr();var e=this;if(t(this.node).on("mousedown",function(t){e.filterEvent(t)||$s(t,!0)}),this.Pa=[],this.Ra=[],this.textNode){this.Pa=t(this.textNode).find("input");for(var n=0,h=this.Pa.length;n<h;++n){var r=this.Pa[n];this.Ra.push(r.parentNode),r.spellcheck=!1,t(r).on("focus",function(t){e.ns(!1,!0)||t.preventDefault()}).on("blur",function(t){e.ns(!1,!0)||t.preventDefault()}).on("mousedown",function(t){e.ns(!1,!0)||t.preventDefault()}),tn(r,void 0,function(){e.hh&&e.hh()})}}this.zh(s.ti)},zh:function(t){if(!isNaN(t))if(this.vr(),-2==t)this.textNode.tabIndex=-1;else if(-1==t)this.textNode.removeAttribute("tabIndex");else if(this.Pa&&this.Pa.length>0)for(var i=0,s=this.Pa.length;i<s;++i){this.Pa[i].tabIndex=t}},allInputValues:function(t){var i=[];if(this.Pa&&0!=this.Pa.length&&t)for(var s=0,e=this.Pa.length;s<e;++s){var n=this.Pa[s];arguments.length||i.push(n&&n.value||""),n||this.vr();var h=t[s]?t[s]+"":"";n.value=h}else for(s=0,e=this.Pa.length;s<e;++s){n=this.Pa[s];arguments.length||i.push(n&&n.value||""),n||this.vr(),n.value=""}return arguments.length?(this.Aa(),this):i},dr:function(){return Re.prototype.dr.call(this)+"border: none; margin: 0; padding: 0; width: 100%; outline: none;"},clear:function(t,i){return this.prez()&&this.prez().ended&&!i?this:this.allInputValues([])},restore:function(t){return Re.prototype.restore.call(this,t),t||(t=this.savedData()),t&&void 0!==t.a&&this.Rr(t.a),this.allInputValues(t&&t.v||{})},oh:function(t,i){if(this.Pa){var s,e=(i&x)==x,n=this.Pa.length;for(s=0;s<n;++s)this.Pa[s].disabled=e}},ua:function(){var t=this._s.e||{},i=t.s||It;return t.f&(xt|St)||(i=It),i},submit:function(){if(this.prez()&&this.prez().ended)return this;var t,i,s,e,n,h,r,a,o,u,c,f,l,d,p=this.Pa,v=this._s.e||{},m=v.f,b=(m&xt)===xt,w=(m&Mt)!==Mt,g=b&&w,_=g&&(m&Et)===Et,k=0,y=!1,T=!1,x=v.v||[];for(r=[],a={},t=0,i=p.length;t<i;++t)if(n=p[t],r.push(n),c=n.value,a[t]=c,b){if(!(o=x[t]))continue;for((l=!o.c)&&(c=c.toUpperCase()),u=-1,s=0,e=(h=o.v||[""]).length;s<e;++s)if(f=h[s],l&&(f=f.toUpperCase()),c===f){u=s;break}!y&&u<0&&c&&(y=!0),!T&&u<0&&!c&&(T=!0),_&&u>=0&&o.m&&(k+=o.m||0)}else T||c||(T=!0);return d=T?At.Ei:y?At.Si:b?At.xi:At.Ti,g&&!_&&d===At.xi&&(k=v.m||0),this.Ar(this.savedData(!0),d,a,g?k:void 0,!w,r,void 0),this},gs:function(t){t=t||{};var i=this._s.e||{},s=((i.f||0)&xt)===xt,e=this.savedData();if(s){var n={};e&&(n=e.v||{});for(var h=[],r=i.v||[],a=this.Pa,o=0;o<a.length;++o){w=a[o];var u=r[o],c=u.v||[""],f=!u.c,l=n[o],d=[];if(f)for(var p=0;p<c.length;p++)d.push(c[p].toLowerCase());else d=c;var v=d.indexOf(f?l.toLowerCase():l)>=0;h.push({correct:v,arrCorrectValues:d.slice(),inputNode:w})}if(this.Da&&this.Da.length>0){o=0;for(var m=this.Da.length;o<m;++o)this.Ra[o].removeChild(this.Da[o]),delete this.Da[o]}if(this.Da=[],this.Na&&this.Na.length>0)for(o=0,m=this.Na.length;o<m;++o)this.Ra[o].removeChild(this.Na[o]),delete this.Na[o];this.Na=[];var b=0;(v&&t.showCorrect||!v&&t.showIncorrect||t.showValues)&&(b=18,t.showValues&&(b+=2,b+=18));for(o=0,m=h.length;o<m;++o){var w,g=h[o];v=g.correct;if(tn(w=g.inputNode,b),v&&t.showCorrect||!v&&t.showIncorrect||t.showValues){var _=this.Br(v,"middle-right");if(_){this.Da.push(_),this.Ra[o].appendChild(_);var k=_.style,y=-b+"px";if(k.transform="translate("+y+", -50%)",k.pointerEvents="visiblePainted",t.showValues){var T=Re.prototype.Vr.call(this,k,g.arrCorrectValues.slice());this.node.removeChild(T),this.Ra[o].appendChild(T),this.Na.push(T),y="-20px",T.style.transform="translate("+y+", -50%)"}}}}if(Re.prototype.Dr.call(this.slide),t.showResult){var x=At.Ei;e&&void 0!==e.r&&(x=e.r);var S=this.Yr(x,this.slide.prez().responseResultString(x));S&&(this.slide.node.appendChild(S),this.slide.Fr=S)}}},ns:function(t,i){return(!this.prez()||!this.prez().ended)&&Re.prototype.ns.call(this,t,i)},Aa:function(){for(var t=this.Pa,i=this,s=0,e=t.length;s<e;++s)tn(t[s],void 0,function(){i.hh&&i.hh()})}});De(function(t,i){return new sn(t,i)},i.Y);var en=Ds(Re,{$init:function(t,i){Re.prototype.$init.call(this,t,i),this.Oa=0},createNode:function(){var t=Re.prototype.createNode.call(this),i=Ji.createElement("div");i.style.top="50%",i.style.left="50%",i.style.width=this._s.ge.w+"px",i.style.height=this._s.ge.h+"px",i.style.position="absolute",i.style[Ms]="translate(-50%, -50%)";var s=Ji.createElement("canvas");return bs(s,{width:this._s.ge.w,height:this._s.ge.h}),this.La=s,i.appendChild(s),t.appendChild(i),t}});De(function(t,i){return new en(t,i)},i.I);var nn=Ds({$init:function(t,i,s,e,n){this.Fa=i,this.Ua=s,this.answerId=e,this.questionId=n,this.Ya=0,this.slide=t,this.Ca=t.Ca;var h=this.Ca.getHotSpotQuestion(n),r=h._s;this.circleRadius=void 0!==r.hs[0]?r.hs[0]:10,this.color=void 0!==r.hs[1]?ws(r.hs[1]):"green";var a=h._s.e.v||[];this.correct=a.indexOf(this.answerId)>=0},createNode:function(){var t=2*this.circleRadius,i=this.slide.prez().isReviewingMode();i&&(this.correct?this.color="#2fae62":this.color="#d15327");var s=Ji.createElement("div");if(s.className="ap-hotspot",s.style.top=this.Ua,s.style.left=this.Fa,s.style.width=t+"px",s.style.height=t+"px",s.style.backgroundColor=this.color,s.style.position="absolute",!i){var e=Ji.createElement("div");e.className="ap-circle",e.style.width=t+"px",e.style.height=t+"px",e.style.borderColor=this.color,s.appendChild(e)}return s.style.pointerEvents="auto",this.evtOnClick=this.Ha.bind(this),s.addEventListener("click",this.evtOnClick),s},Ha:function(t){this.Ca.removeHotSpotEffect(this)}}),hn=Ds({$init:function(t){this.hotSpotQuestionsEffects=t,this.hotSpotQuestions=[]},initSlide:function(i){var s=i.prez().options.playMode,e=i.prez().isReviewingMode();this.evtOnClick=this.Ha.bind(this),this.apSlidesNode=t(".ap-slides",i.prez().container)[0],"Demo"===s||e||(this.apSlidesNode.addEventListener("click",this.evtOnClick),this.apSlidesNode.style.pointerEvents="auto"),this.slide=i,this.hotSpotQuestionsEffects.forEach(function(t){for(var i=t.effects,s=0,e=i.length;s<e;s++){var n=i[s];n.node=n.createNode(),n.node&&this.slide.node.appendChild(n.node)}}.bind(this))},addQuestion:function(t){this.hotSpotQuestions.push(t);var i=t._s;if(this.circleRadius=void 0!==i.hs[0]?i.hs[0]:10,void 0===(s=this.getHotSpotEffects(t.id()))||null===s){var s=[];this.hotSpotQuestionsEffects.push({id:t.id(),effects:s})}t.node.style.pointerEvents="auto"},disableQuestion:function(t){var i=this.hotSpotQuestions.indexOf(this.getHotSpotQuestion(t.id()));-1!==i&&this.hotSpotQuestions.splice(i,1)},clear:function(t){if(void 0===this.hotSpotQuestionsEffects)return null;for(var i=0,s=this.hotSpotQuestionsEffects.length;i<s;i++){var e=this.hotSpotQuestionsEffects[i];if(e.id===t.id()){if(e.effects)for(i=0;i<e.effects.length;i++){var n=e.effects[i];this.slide.node.removeChild(n.node)}e.effects=[];break}}},Ha:function(i){var s=t(i.target).closest(".ap-ctrl");if(s.length>0){s=s[0];var e=this.Ba(s);if(null!==e){var n=this.Ba(s.parentNode);null===n&&(n=e);var h=1,r=this.slide.prez().ui;r&&r.za&&r.za.mode!=bi.ACTUAL_SIZE&&(h=1/(h=this.slide.prez().Xe()));var a=this.Xa(i,t(this.slide.node),2*this.circleRadius,!!this.slide.prez()._s.responsive,h);this.removeHotSpotIfExist(a.x,a.y,n)||this.addHotSpotEffect(a.x,a.y,e,n)}}},Xa:function(t,i,s,e,n){var h=i.offset().left,r=i.offset().top,a=s||0,o=0,u=0;return e?(o=((t.pageX-h)*n-a/2)/i.outerWidth()*100+"%",u=((t.pageY-r)*n-a/2)/i.outerHeight()*100+"%"):(o=(t.pageX-h)*n-a/2+"px",u=(t.pageY-r)*n-a/2+"px"),{x:o,y:u}},removeHotSpotIfExist:function(t,i,s){if(void 0===this.hotSpotQuestionsEffects)return!1;var e=this.getHotSpotEffects(s);if(e)for(var n=0;n<e.length;n++){var h=e[n];if(Oi(h.Fa-t)<=h.circleRadius&&Oi(h.Ua-i)<=h.circleRadius)return this.removeHotSpotEffect(h),!0}return!1},addHotSpotEffect:function(t,i,s,e){if(void 0===this.hotSpotQuestions)return!1;var n=this.getHotSpotQuestion(e);if(n){var h=this.getHotSpotEffects(e);if(!n.Ma&&h)for(var r=0;r<h.length;r++){var a=h[r];this.removeHotSpotEffect(a)}return(a=new nn(n.slide,t,i,s,n.id())).node=a.createNode(),a.node?(this.slide.node.appendChild(a.node),h.push(a),!0):this}return!1},removeHotSpotEffect:function(t){if(void 0===this.hotSpotQuestionsEffects)return!1;var i=this.getHotSpotEffects(t.questionId);return i&&i.splice(i.indexOf(t),1),this.getHotSpotQuestion(t.questionId)&&this.slide.node.removeChild(t.node),!1},getHotSpotEffects:function(t){if(void 0===this.hotSpotQuestionsEffects)return null;for(var i=null,s=0,e=this.hotSpotQuestionsEffects.length;s<e;s++){var n=this.hotSpotQuestionsEffects[s];if(n.id===t){i=n.effects;break}}return i},getHotSpotQuestion:function(t){if(void 0===this.hotSpotQuestions)return null;for(var i=null,s=0,e=this.hotSpotQuestions.length;s<e;s++){var n=this.hotSpotQuestions[s];if(n.id()===t){i=n;break}}return i},Ba:function(t){if(void 0===this.hotSpotQuestions)return null;for(var i=null,s=0,e=this.hotSpotQuestions.length;s<e;s++){var n=this.hotSpotQuestions[s];if(n.node===t){i=n.id();break}for(var h=0;h<n.children.length;h++){var r=n.children[h];if(r.node===t){i=r.id();break}}}return i},isAnswered:function(t,i){var s=this.getHotSpotEffects(i);if(s)for(var e=0;e<s.length;e++){if(s[e].answerId===t)return!0}return!1},isAcceptAnswers:function(t,i){var s=this.getHotSpotEffects(t);if(s)for(var e=0;e<s.length;e++){var n=s[e];if(i.indexOf(n.answerId)<0)return!1}return!0}}),rn={LINEWIDTH:6,CIRCLE_RADIUS_MAX:40,RECTANGLE_HEIGHT_ARROW:160,RECTANGLE_WIDTH_ARROW:40,ARROW_HEIGHT:80,HOLD_CIRCLE_RADIUS:25,PINCH_IN_OUT_ANGLE:Ni/6,TWO_FINGERS_TAP_ANGLE:Ni/18,TWO_FINGERS_CIRCLE_RADIUS_DOUBLE:20,TWO_FINGERS_CIRCLE_RADIUS_SINGLE:15,TWO_FINGERS_BETA_MIN:Ni/36,TWO_FINGERS_BETA_MAX:Ni/3,TWO_FINGERS_DOUBLE_BETA_MIN:Ni/6,TWO_FINGERS_DOUBLE_BETA_MAX:Ni/3,CIRCLE_LEFT_RIGHT_RADIUS:60,LEFT_RIGHT_ROTATE_ARROW_WIDTH:30,ROTATE_ARROW_HEIGHT:50,INNER_CIRCLE_RADIUS:25,Motivate:function(t){return Yn.linear(t)},fadeIn:function(t,i){i<=.3&&(t*=i/.3);return t},fadeOut:function(t,i){i>=.8&&(i>1&&(i=1),t*=1-(i-.8)/(1-.8));return t},drawUpArrowPath:function(t,i,s){t.beginPath(),t.moveTo(0,0),t.lineTo(-i,i),t.lineTo(-i/2,i),t.lineTo(0,s),t.lineTo(i/2,i),t.lineTo(i,i),t.closePath(),t.fill()},drawUpLeftCurveArrowPath:function(t,i,s,e){var n=(i*i/4-e*i)/2/(Math.sqrt(e*e-s*s)-e+i/2)+e-i/2,h=(i*i/4+e*i)/2/(Math.sqrt(e*e-s*s)-e-i/2)+e+i/2;t.beginPath(),t.moveTo(0,-i),t.lineTo(-i,0),t.lineTo(-i/2,0),t.arc(-n-i/2,0,n,0,Math.asin(s/n)),t.arc(i/2-h,0,h,-2*Ni+Math.asin(s/h),0,!0),t.lineTo(i,0),t.fill(),t.closePath()},drawUpRightCurveArrowPath:function(t,i,s,e){var n=(i*i/4-e*i)/2/(Math.sqrt(e*e-s*s)-e+i/2)+e-i/2,h=(i*i/4+e*i)/2/(Math.sqrt(e*e-s*s)-e-i/2)+e+i/2;t.beginPath(),t.moveTo(0,-i),t.lineTo(-i,0),t.lineTo(-i/2,0),t.arc(h-i/2,0,h,-Ni,-Ni-Math.asin(s/h),!0),t.arc(n+i/2,0,n,Ni-Math.asin(s/n),Ni,!1),t.lineTo(i,0),t.fill(),t.closePath()},drawSingleTap:function(t,i,s,e,n,h){var r=this.LINEWIDTH,a=this.CIRCLE_RADIUS_MAX,o=n.call(null,e)*(a-r)+r;t.lineWidth=r;var u=this.fadeIn(1,e);u=this.fadeOut(u,e),t.globalAlpha=u,t.strokeStyle=h,t.clearRect(i-a-r,s-a-r,2*(a+r),2*(a+r)),t.beginPath(),t.arc(i,s,o,0,2*Ni),t.stroke(),t.closePath()},drawDoubleTap:function(t,i,s,e,n,h){var r=this.CIRCLE_RADIUS_MAX,a=n.call(null,e)*(r-this.LINEWIDTH-15)+this.LINEWIDTH+15;t.lineWidth=this.LINEWIDTH;var o=this.fadeIn(1,e);o=this.fadeOut(o,e),t.globalAlpha=o,t.strokeStyle=h,t.clearRect(i-r-15,s-r-15,2*(r+15),2*(r+15)),t.beginPath(),t.arc(i,s,a,0,2*Ni),t.stroke(),t.closePath(),a>.3*(r-this.LINEWIDTH-15)+this.LINEWIDTH+15&&(t.beginPath(),t.arc(i,s,a-15,0,2*Ni),t.stroke(),t.closePath())},drawHold:function(t,i,s,e,n,h){var r=this.HOLD_CIRCLE_RADIUS,a=this.LINEWIDTH/2,o=.5*r,u=Ni/4,c=this.fadeIn(1,e);c=this.fadeOut(c,e),t.globalAlpha=c,t.strokeStyle=h,t.fillStyle=h;var f=2*Ni*n.call(null,e);t.clearRect(i-(r+2*o),s-(r+2*o),2*(r+2*o),2*(r+2*o)),t.beginPath(),t.lineWidth=this.LINEWIDTH,t.arc(i,s,r,0,2*Ni),t.stroke(),t.closePath(),t.translate(i+Math.cos(u)*(r+o)+a*Math.sin(Ni/4),s-Math.sin(u)*(r+o)-a*Math.cos(Ni/4)),t.beginPath(),t.lineWidth=this.LINEWIDTH/2,t.arc(0,0,o,0,2*Ni),t.stroke(),t.closePath(),t.setTransform(1,0,0,1,0,0),t.translate(i+Math.cos(u)*(r+o)+a*Math.sin(Ni/4),s-Math.sin(u)*(r+o)-a*Math.cos(Ni/4)),t.beginPath(),t.lineWidth=this.LINEWIDTH/2,t.moveTo(0,0),t.arc(0,0,o,-Ni/2+f,1.5*Ni,!0),t.fill(),t.closePath(),t.setTransform(1,0,0,1,0,0)},drawSwipeUp:function(t,i,s,e,n,h){var r=this.RECTANGLE_WIDTH_ARROW/2,a=this.ARROW_HEIGHT,o=this.RECTANGLE_HEIGHT_ARROW,u=o-a,c=this.fadeIn(1,e);c=this.fadeOut(c,e),t.globalAlpha=c,t.fillStyle=h,t.clearRect(i-o,s-o,2*o,2*o),t.translate(i,s+u/2-n.call(null,e)*u),this.drawUpArrowPath(t,r,a),t.setTransform(1,0,0,1,0,0)},drawSwipeDown:function(t,i,s,e,n,h){var r=this.RECTANGLE_WIDTH_ARROW/2,a=this.ARROW_HEIGHT,o=this.RECTANGLE_HEIGHT_ARROW,u=o-a,c=this.fadeIn(1,e);c=this.fadeOut(c,e),t.globalAlpha=c,t.fillStyle=h,t.clearRect(i-o,s-o,2*o,2*o),t.translate(i,s-u/2+n.call(null,e)*u),t.rotate(Ni),this.drawUpArrowPath(t,r,a),t.setTransform(1,0,0,1,0,0)},drawSwipeRight:function(t,i,s,e,n,h){var r=this.RECTANGLE_WIDTH_ARROW/2,a=this.ARROW_HEIGHT,o=this.RECTANGLE_HEIGHT_ARROW,u=o-a,c=this.fadeIn(1,e);c=this.fadeOut(c,e),t.globalAlpha=c,t.fillStyle=h,t.clearRect(i-o,s-o,2*o,2*o),t.translate(i-u/2+n.call(null,e)*u,s),t.rotate(Ni/2),this.drawUpArrowPath(t,r,a),t.setTransform(1,0,0,1,0,0)},drawSwipeLeft:function(t,i,s,e,n,h){var r=this.RECTANGLE_WIDTH_ARROW/2,a=this.ARROW_HEIGHT,o=this.RECTANGLE_HEIGHT_ARROW,u=o-a,c=this.fadeIn(1,e);c=this.fadeOut(c,e),t.globalAlpha=c,t.fillStyle=h,t.clearRect(i-o,s-o,2*o,2*o),t.translate(i+u/2-n.call(null,e)*u,s),t.fillStyle=h,t.rotate(1.5*Ni),this.drawUpArrowPath(t,r,a),t.setTransform(1,0,0,1,0,0)},drawPinchIn:function(t,i,s,e,n,h){var r=this.RECTANGLE_WIDTH_ARROW/2,a=this.ARROW_HEIGHT,o=this.RECTANGLE_HEIGHT_ARROW,u=this.PINCH_IN_OUT_ANGLE,c=Math.sin(u)*(o-a),f=this.fadeIn(1,e);f=this.fadeOut(f,e),t.globalAlpha=f,t.fillStyle=h,t.clearRect(i-o,s-o,2*o,2*o),t.translate(i,s);var l=-Math.sin(u)*o+a*Math.sin(u)+n.call(null,e)*c,d=-l/Math.tan(u);t.translate(l,d),t.rotate(u),this.drawUpArrowPath(t,r,a),t.setTransform(1,0,0,1,i,s);var p=Math.sin(u)*o-a*Math.sin(u)-n.call(null,e)*c,v=-p/Math.tan(u);t.translate(p,v),t.rotate(Ni+u),this.drawUpArrowPath(t,r,a),t.setTransform(1,0,0,1,0,0)},drawPinchOut:function(t,i,s,e,n,h){var r=this.RECTANGLE_WIDTH_ARROW/2,a=this.ARROW_HEIGHT,o=this.RECTANGLE_HEIGHT_ARROW,u=this.PINCH_IN_OUT_ANGLE,c=Math.sin(u)*(o-a),f=this.fadeIn(1,e);f=this.fadeOut(f,e),t.globalAlpha=f,t.fillStyle=h,t.clearRect(i-o,s-o,2*o,2*o),t.translate(i,s);var l=a*Math.sin(u)+n.call(null,e)*c,d=-l/Math.tan(u);t.translate(l,d),t.rotate(u),this.drawUpArrowPath(t,r,a),t.setTransform(1,0,0,1,i,s);var p=-a*Math.sin(u)-n.call(null,e)*c,v=-p/Math.tan(u);t.translate(p,v),t.rotate(Ni+u),this.drawUpArrowPath(t,r,a),t.setTransform(1,0,0,1,0,0)},drawTwoFingersTap:function(t,i,s,e,n,h){var r=this.TWO_FINGERS_CIRCLE_RADIUS_SINGLE,a=this.TWO_FINGERS_TAP_ANGLE,o=this.TWO_FINGERS_BETA_MIN,u=this.TWO_FINGERS_BETA_MAX,c=this.fadeIn(1,e);c=this.fadeOut(c,e),t.globalAlpha=c,t.strokeStyle=h;var f=o+n.call(null,e)*(u-o),l=r/Math.cos(f);t.clearRect(i-4*r,s-4*r,8*r,8*r),t.lineWidth=this.LINEWIDTH,t.lineJoin="round",t.lineCap="round",t.translate(i,s),t.rotate(-60*a/Ni),t.beginPath(),t.arc(r,0,l,Ni-f,-Ni+f,!0),t.arc(-r,0,l,-f,-2*Ni+f,!0),t.stroke(),t.closePath(),t.setTransform(1,0,0,1,0,0)},drawTwoFingersDoubleTap:function(t,i,s,e,n,h){var r=this.TWO_FINGERS_CIRCLE_RADIUS_DOUBLE,a=this.TWO_FINGERS_TAP_ANGLE,o=this.TWO_FINGERS_DOUBLE_BETA_MIN,u=this.TWO_FINGERS_DOUBLE_BETA_MAX,c=o+n.call(null,e)*(u-o),f=r/Math.cos(c);t.clearRect(i-4*r,s-4*r,8*r,8*r),t.translate(i,s),t.rotate(-60*a/Ni),t.lineWidth=this.LINEWIDTH;var l=this.fadeIn(1,e);if(l=this.fadeOut(l,e),t.globalAlpha=l,t.strokeStyle=h,t.lineJoin="round",t.lineCap="round",t.beginPath(),t.arc(-r,0,f,-c,-2*Ni+c,!0),t.arc(r,0,f,Ni-c,-Ni+c,!0),t.stroke(),t.closePath(),f*Math.sin(c)>15){var d=Math.atan((f*Math.sin(c)-15)/r),p=r/Math.cos(d);t.beginPath(),t.arc(-r,0,p,-d,-2*Ni+d,!0),t.arc(r,0,p,+Ni-d,-Ni+d,!0),t.stroke()}t.setTransform(1,0,0,1,0,0)},drawFingers:function(t,i,s,e,n,h){var r=this.INNER_CIRCLE_RADIUS,a=this.RECTANGLE_WIDTH_ARROW/2,o=this.RECTANGLE_HEIGHT_ARROW,u=this.fadeIn(1,e);u=this.fadeOut(u,e),t.globalAlpha=u,t.fillStyle=h,t.clearRect(i-o-r,s-o-r,2*(o+r),2*(o+r));var c=Ni/2,f=o-80;t.translate(i-r-o+80+n.call(null,e)*f,s),t.rotate(c),this.drawUpArrowPath(t,a,80),t.setTransform(1,0,0,1,0,0),c=Ni/4,f=Math.sin(c)*(o-80),t.translate(i,s);var l=Math.sin(c)*(-o-r+80)+n.call(null,e)*f,d=l/Math.tan(c);t.translate(l,d),t.rotate(Ni-c),this.drawUpArrowPath(t,a,80),t.setTransform(1,0,0,1,0,0),c=Ni,f=o-80,t.translate(i,s-r-o+80+n.call(null,e)*f),t.rotate(c),this.drawUpArrowPath(t,a,80),t.setTransform(1,0,0,1,0,0),c=Ni/6,f=Math.sin(c)*(o-80),t.translate(i,s);d=-(l=Math.sin(c)*(o+r-80)-n.call(null,e)*f)/Math.tan(c);t.translate(l,d),t.rotate(Ni+c),this.drawUpArrowPath(t,a,80),t.setTransform(1,0,0,1,0,0),c=Ni/3,f=Math.sin(c)*(o-80),t.translate(i,s),d=-(l=Math.sin(c)*(o+r-80)-n.call(null,e)*f)/Math.tan(c),t.translate(l,d),t.rotate(Ni+c),this.drawUpArrowPath(t,a,80),t.setTransform(1,0,0,1,0,0)},drawRotateLeft:function(t,i,s,e,n,h){var r=this.LEFT_RIGHT_ROTATE_ARROW_WIDTH/2,a=this.ROTATE_ARROW_HEIGHT,o=this.CIRCLE_LEFT_RIGHT_RADIUS,u=this.fadeIn(1,e);u=this.fadeOut(u,e),t.globalAlpha=u,t.fillStyle=h;var c=ms(110+60*n.call(null,e));t.clearRect(0,0,400,400),t.translate(i+Math.cos(c)*o,s-Math.sin(c)*o),t.rotate(-c),this.drawUpLeftCurveArrowPath(t,r,a,o),t.setTransform(1,0,0,1,0,0);var f=ms(200+60*n.call(null,e));t.translate(i+Math.cos(f)*o,s-Math.sin(f)*o),t.rotate(-f),this.drawUpLeftCurveArrowPath(t,r,a,o),t.setTransform(1,0,0,1,0,0)},drawRotateRight:function(t,i,s,e,n,h){var r=this.LEFT_RIGHT_ROTATE_ARROW_WIDTH/2,a=this.ROTATE_ARROW_HEIGHT,o=this.CIRCLE_LEFT_RIGHT_RADIUS,u=this.fadeIn(1,e);u=this.fadeOut(u,e),t.globalAlpha=u,t.fillStyle=h;var c=ms(150-60*n.call(null,e));t.clearRect(0,0,400,400),t.translate(i+Math.cos(c)*o,s-Math.sin(c)*o),t.rotate(Ni-c),this.drawUpRightCurveArrowPath(t,r,a,o),t.setTransform(1,0,0,1,0,0);var f=ms(60-60*n.call(null,e));t.translate(i+Math.cos(f)*o,s-Math.sin(f)*o),t.rotate(Ni-f),this.drawUpRightCurveArrowPath(t,r,a,o),t.setTransform(1,0,0,1,0,0)},renderGestureEffect:function(t,i,s,e,n,h){switch(i){case ti:this.drawSingleTap(t,s,e,n,this.Motivate,h);break;case ii:this.drawDoubleTap(t,s,e,n,this.Motivate,h);break;case si:this.drawHold(t,s,e,n,this.Motivate,h);break;case ei:this.drawTwoFingersTap(t,s,e,n,this.Motivate,h);break;case ni:this.drawTwoFingersDoubleTap(t,s,e,n,this.Motivate,h);break;case hi:this.drawSwipeUp(t,s,e,n,this.Motivate,h);break;case ai:this.drawSwipeDown(t,s,e,n,this.Motivate,h);break;case oi:this.drawSwipeLeft(t,s,e,n,this.Motivate,h);break;case ri:this.drawSwipeRight(t,s,e,n,this.Motivate,h);break;case oi:this.drawSwipeLeft(t,s,e,n,this.Motivate,h);break;case ui:this.drawRotateLeft(t,s,e,n,this.Motivate,h);break;case ci:this.drawRotateRight(t,s,e,n,this.Motivate,h);break;case fi:this.drawPinchIn(t,s,e,n,this.Motivate,h);break;case li:this.drawPinchOut(t,s,e,n,this.Motivate,h);break;case di:this.drawFingers(t,s,e,n,this.Motivate,h)}},renderMouseEffect:function(t,i,s,e,n,h,r){t.clearRect(0,0,2*r+4,2*r+4);var a=n*r;if(t.strokeStyle=h,t.lineWidth=2,t.lineJoin="round",t.lineCap="round",i==pi)t.beginPath(),t.arc(s,e,a,0,2*Math.PI),t.stroke();else if(i==vi)for(;a>0;)t.beginPath(),t.arc(s,e,a,0,2*Math.PI),t.stroke(),a-=9;else i==mi&&t.strokeRect(s-a,e-a,2*a,2*a)}},an=Ds(Ze,{$init:function(t,s){this.Ga=s;var e=2*s.hl_size,n=2*s.hl_size,h=t.defaultCtrlData();h.i=s.id,h.k=i.B,h.m=s.showMode,h.ti=-1;var r=[];if(t._s&&t._s.h)for(var a=0;a<t._s.h.length;a++){var o=s.pos[a][0]-e/2,u=s.pos[a][1]-n/2,c={};c.r=[o,u,e,n],r.push(c)}h.s=[{w:r}],h.ti=-1,Ze.prototype.$init.call(this,t,h),this.node.style.zIndex=$t.Ni,this.node.style.pointerEvents="none",this.imageNode.style.pointerEvents="none",this.Va=ji({},Ie,{node:this.imageNode,slide:this.slide})},$a:function(){var t,i=this.slide,s=this.Ga.cursors;if(s&&s.length){(t=new hh({startTime:0})).addChild(new eh(this,"display",{startTime:0,duration:0,tweenParams:["none","block"],tweenType:jt.zi}));for(var e=0;e<s.length;e++)for(var n=0;n<this.slide._s.h.length;n++){var h=0,r=s[e].points[n].length;2==r?h=2:4==r&&(h=1);for(var a=0;a<h;a++)s[e].points[n].push(s[e].points[n][0]),s[e].points[n].push(s[e].points[n][1]);0==e&&s[e].points[n].push(1)}var o=0,u=0,c=0,f=0,l=0,d="";for(e=0;e<s.length;e++){var p=s[e],v=s[e+1],m=p.start,b=p.stop,w=p.move;if(p.img){var g=p.img.w,_=p.img.h,k=this.Ga.hl_size-p.img.hpx,y=this.Ga.hl_size-p.img.hpy,T=this.slide.prez().getResource(p.img.id+".png");t.addChild(new eh(this.Va,"src",{startTime:o,duration:0,tweenParams:[d,T],tweenType:jt.zi})),t.addChild(new eh(this.Va,"width",{startTime:o,duration:0,tweenParams:[u,g],tweenType:jt.zi})),t.addChild(new eh(this.Va,"height",{startTime:o,duration:0,tweenParams:[c,_],tweenType:jt.zi})),t.addChild(new eh(this.Va,"left",{startTime:o,duration:0,tweenParams:[f,k],tweenType:jt.zi})),t.addChild(new eh(this.Va,"top",{startTime:o,duration:0,tweenParams:[l,y],tweenType:jt.zi})),u=g,c=_,f=k,l=y,d=T}else 0==e&&(t.addChild(new eh(this.Va,"width",{startTime:o,duration:0,tweenParams:[0,0],tweenType:jt.zi})),t.addChild(new eh(this.Va,"height",{startTime:o,duration:0,tweenParams:[0,0],tweenType:jt.zi})));var x=this.slide.prez().layoutIndex;if(void 0!=p.click&&(void 0!==p.sound||p.click_eff)&&function(t,s,e){i.ae.addChild(new sh(function(){var n=i.prez();void 0!==t.sound&&n.vs(t.sound,t.sdur,t,!0),t.click_eff&&n.$n(s,e,t.click_eff.r,t.click_eff.type,ws(t.click_eff.color),1e3)},{startTime:o+p.click}))}(p,this.Ga.pos[x][0]+p.points[x][0],this.Ga.pos[x][1]+p.points[x][1]),v){var S=[];for(n=0;n<p.points.length;n++){var E=p.points[n],M=v.points[n];S.push([E,M])}t.addChild(new eh(this,"position",{startTime:o+m,duration:w,tweenParams:[S[x]],tweenType:jt.Xi,easing:Yn.inOutQuad}))}m>=0?o+=m+b+w:o=-1}o>0&&t.addChild(new eh(this,"display",{startTime:o,duration:0,tweenParams:["block","none"],tweenType:jt.zi}))}return t}});De(function(t,i){return new an(t,i)},i.B);var on=Ds({$init:function(t){this.Es=t,this.Es.we.Ks(this)},us:function(t){},Wa:function(t){},ja:function(){},Qa:function(){},Ka:function(){},playbackRate:function(t){},volume:function(t){},muted:function(t){},cleanup:function(){this.Es.we.qs(this)},Js:function(){}}),un=Ds({$init:function(i,s,e){this.qa="video"==s.nodeName.toLowerCase();var n=i.Ja;this.Za="",this.qa?this.Za=t('<div class="ap-media-toolbar" media-type="video"> \t\t\t\t\t\t<div class="ap-media-play" role="button" style="display: none"> \t\t\t\t\t\t\t<div class="ap-media-play-icon">'+n.pause+n.play+'</div> \t\t\t\t\t\t</div> \t\t\t\t\t\t<div class="ap-media-toolbar-bottom"> \t\t\t\t\t\t\t<div class="ap-media-tool-container"> \t\t\t\t\t\t\t\t<div class="ap-media-tool-left"> \t\t\t\t\t\t\t\t\t<div class="ap-media-time-label ap-no-select" role="presentation">0:06 / 0:40</div> \t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t<div class="ap-media-tool-right"> \t\t\t\t\t\t\t\t\t<div class="ap-media-fullscreen" role="button">'+n.fullscreen+'</div> \t\t\t\t\t\t\t\t\t<div class="ap-media-mute" role="button" aria-pressed="true">'+n.sound+n.mute+'</div> \t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t<div class="ap-media-progressbar" role="slider" aria-valuemin="0" aria-valuemax="0" aria-valuenow="0"> \t\t\t\t\t\t\t\t<div class="ap-media-progress-background"></div> \t\t\t\t\t\t\t\t<div class="ap-media-play-progress"></div> \t\t\t\t\t\t\t\t<div class="ap-media-progress-grabber"></div> \t\t\t\t\t\t\t</div> \t\t\t\t\t\t</div> \t\t\t\t\t </div>')[0]:this.Za=t('<div class="ap-media-toolbar" media-type="audio"> \t\t\t\t\t\t<div class="ap-media-play" role="button"> \t\t\t\t\t\t\t<div class="ap-media-play-icon">'+n.pause+n.play+'</div> \t\t\t\t\t\t</div> \t\t\t\t\t\t<div class="ap-media-time-label ap-no-select" role="presentation">0:06 / 0:40</div> \t\t\t\t\t\t<div class="ap-media-progressbar" role="slider" aria-valuemin="0" aria-valuemax="0" aria-valuenow="0"> \t\t\t\t\t\t\t<div class="ap-media-progress-background"></div> \t\t\t\t\t\t\t<div class="ap-media-play-progress"></div> \t\t\t\t\t\t\t<div class="ap-media-progress-grabber"></div> \t\t\t\t\t\t</div> \t\t\t\t\t\t<div class="ap-media-mute" role="button" aria-pressed="true">'+n.sound+n.mute+"</div> \t\t\t\t\t </div>")[0],this.to=i,this.io=s,this.so=e,this.eo=t(".ap-media-toolbar-bottom",this.Za),this.no=t(".ap-media-play",this.Za),this.ho=t(".ap-media-mute",this.Za),this.ro=t(".ap-media-fullscreen",this.Za),this.ao=t(".ap-media-progressbar",this.Za),this.oo=t(".ap-media-play-progress",this.Za),this.uo=t(".ap-media-progress-grabber",this.Za),this.co=t(".ap-media-time-label",this.Za),this.qa&&(As.fullscreenEnabled()||As.isElementSupportFullscreen(s))||this.ro.hide();var h=s.style.cursor;h&&(this.Za.style.cursor=h,this.co.css({cursor:h})),this.fo=!0,this.lo=!1,this.mute(s.muted),this.pause(s.paused||s.ended),this.do()},do:function(){var i=this,s=this.Za,e=this.io,n=this.ho,h=this.ro,r=this.ao,a=this.uo,o=this.no;this.qa&&(s.onmouseover=function(){i.show(!0,!0)},s.onmousemove=function(){i.show(!0,!0)},s.onmouseleave=function(){i.show(!1)},[o,n,h,r].forEach(function(t){t.on("mouseover",function(){i.lo=!0}).on("mouseleave",function(){i.lo=!1})})),e.onpause=function(){i.pause(!0),i.show(!0),i.update()},e.onended=function(){this.paused||this.pause()},e.onplay=function(){i.pause(!1)},o.on("mousedown",function(){e.paused||e.ended?e.play():e.pause()}),e.onvolumechange=function(){i.mute(e.muted)},n.on("mousedown",function(){e.muted=!e.muted}),h.on("click",function(t){i.fullscreen()});var u=function(){return As.fullscreenElement()==i.so||e.webkitDisplayingFullscreen};r.on("mousedown",function(n){var h=u()?1:i.to.Xe,r=(n.pageX-this.offsetLeft*h-t(s).offset().left)/(this.offsetWidth*h);e.currentTime=r*e.duration}),a.css("touchAction","none").draggable({containment:r,axis:"x",start:function(){i.po=!0},drag:function(n,h){var a=h.position.left,o=this.offsetWidth/2,c=u()?1:i.to.Xe,f=n.pageX-r.position().left-t(s).offset().left-o*c-h.originalPosition.left*c;a=h.originalPosition.left+f/c,a=Math.max(Math.min(a,r[0].offsetWidth-o),-o),h.position.left=a;var l=(a+o)/r[0].offsetWidth;e.currentTime=l*e.duration,i.update()},stop:function(){i.po=!1;var t=u()?1:i.to.Xe,s=(this.offsetLeft+6*t)/r[0].offsetWidth;e.currentTime=s*e.duration}})},getNode:function(){return this.Za},update:function(){var t=this.ao,i=this.oo,s=this.uo,e=this.co,n=this.io,h=t[0].offsetWidth,r=isNaN(n.duration)?0:n.currentTime/n.duration;i.css({transform:"scaleX("+r+")"}),this.po||s.css({left:r*h-6+"px"}),e[0].innerHTML=AtomiAP.formatMSString(1e3*n.currentTime)+" / "+AtomiAP.formatMSString(isNaN(n.duration)?0:1e3*n.duration),t.attr("aria-valuenow",n.currentTime),isNaN(n.duration)||t.attr("aria-valuemax")===n.duration+""||t.attr("aria-valuemax",n.duration),this.fo&&this.qa&&(n.paused||this.lo?n.currentTime>0&&this.show(!0,!0):(void 0===this.vo&&(this.vo=n.currentTime),n.currentTime-this.vo>2&&this.show(!1)))},pause:function(t){var i=this.no,s=i.attr("data-value");(s=s?"false"===s:void 0)!==t&&i.attr("data-value",!t)},show:function(t,i){t!==this.fo?this.eo&&(t||this.io.paused||this.lo?(this.eo.stop().fadeIn(),this.no.stop().fadeIn(0,.5),this.fo=!0):(this.eo.fadeOut(500),this.no.fadeOut(500,0),this.fo=!1,this.vo=void 0)):i&&this.no.stop().fadeIn(0,.5)},mute:function(t){this.ho.attr("aria-pressed",t?"true":"false").attr("data-value",t)},fullscreen:function(){As.fullscreenEnabled()?As.fullscreenElement()==this.so?As.exitFullscreen():As.requestFullscreen(this.so):As.isElementSupportFullscreen(this.io)&&As.requestFullscreen(this.io)},resize:function(){var t=this.Za,i=this.ao,s=this.uo,e=this.io,n=isNaN(e.duration)?0:e.currentTime/e.duration;this.po||s.css({left:n*i[0].offsetWidth-6+"px"}),t.offsetWidth<200?t.setAttribute("size",200):t.removeAttribute("size")}}),cn=["error","ended","loadstart","durationchange","loadedmetadata","loadeddata","canplay","waiting","playing","canplaythrough","stalled","emptied","suspend"],fn=Ds(on,{$init:function(t,i){for(this.qa=i,this.mo=i?t.we.Ys.pop():t.we.Us.pop();this.mo.attributes.length>0;)this.mo.removeAttribute(this.mo.attributes[0].name);on.prototype.$init.call(this,t),this.bo="",this.wo=0,this._o=void 0,this.ko="stopped",this.yo=!1,this.To=!1,this.xo=!1,this.So=[],this.Eo=!1,this.Mo=!1,this.Co=!1,this.Io=!1,this.Po=!0,this.Ro=void 0,this.Ao()},createToolbar:function(t){return this.mo?(this.Do=new un(this.Es.ui,this.mo,t),this.Do.getNode()):null},getToolbar:function(){return this.Do},Ao:function(){if(this.mo){var t,i,s=this.So,e=this;for(t=0,i=cn.length;t<i;++t){var n=function(t){e.No(t)};s.push(n),this.mo.addEventListener(cn[t],n)}var h=this;this.Oo=function(){h.Lo()},this.mo.addEventListener("timeupdate",this.Oo)}},Fo:function(){if(this.mo){var t,i,s=this.So;for(t=0,i=cn.length;t<i;++t)this.mo.removeEventListener(cn[t],s[t]);s=[],this.mo.removeEventListener("timeupdate",this.Oo),delete this.Oo}},synchronizeWithPrez:function(t){if(!arguments.length)return this.To;this.To=t},backgroundAudio:function(t){if(!arguments.length)return this.xo;this.xo=t},Zs:function(t){if(!this.To){var i=this.mo;if(i)if(t){if(void 0===this.Uo&&(this.Uo=!i.paused),this.Uo)try{i.pause()}catch(t){rs("MediaPlayer::_onPrezPlayPause:"+this.bo+"|exception: "+t.toString())}}else{if(this.Uo)try{var s=i.play();if(void 0!==s){var e=this;s.catch(function(t){rs("MediaPlayer::_onPrezPlayPause|play error: "+t),"NotAllowedError"==t.name&&(e.Co=!0)})}}catch(t){rs("MediaPlayer::_onPrezPlayPause:"+this.bo+"|exception: "+t.toString())}delete this.Uo}}},Yo:function(t){if(t!=this._o){var i=this.Es;if(this._o=t,t)i.Ie();else if(ce.Ls&&this.qa&&!this.Mo){if(this.Io=!0,!this.mo)return;try{var s=this.mo.play();if(void 0!==s){var e=this;s.catch(function(t){rs("MediaPlayer::_updateBufferingState|play error: "+t),"NotAllowedError"==t.name&&(e.Co=!0)})}}catch(t){rs("MediaPlayer::_updateBufferingState:"+this.bo+"|exception: "+t.toString())}}else i.Pe()}},No:function(t){if("loadeddata"==t.type){var i=this.Es.we;this.volume(i.volume()),this.muted(i.muted()),this.playbackRate(i.playbackRate()),void 0!==this.Ro&&this.Wa(this.Ro||0)}if(!this.Eo&&this.mo&&this.To){var s=this.mo.readyState;if(rs("MediaPlayer::_onPlayerEvent:"+this.bo+"|event: "+t.type+" | state: "+s),"error"==t.type)return this.Eo=!0,void this.Yo(!1);if("ended"==t.type)return this.Mo=!0,void this.Yo(!1);switch(s){case 0:case 1:case 2:this.Yo(!0);break;case 3:this.Yo(!!se.browser.ie);break;case 4:this.Yo(!1);break;default:this.Yo(!0)}}},Lo:function(t){if(ce.Ls&&this.Io){rs("MediaPlayer::_onTimeUpdateEvent: "+this.bo),this.Io=!1;try{this.mo&&this.mo.pause()}catch(t){rs("MediaPlayer::_onTimeUpdateEvent:"+this.bo+"|exception: "+t.toString())}this.Es.Pe()}else this.Do&&this.Do.update()},Ho:function(){return this.mo},Bh:function(t){this.bo=t},yn:function(t){this.wo=(0|t)/1e3},Bo:function(){return this.wo},zo:function(){return this.Xo},loadResource:function(t){if(this.mo){void 0===t&&(t=-1),this.Mo=!0,this.Yo(!1),this.Eo=!1,this.Mo=!1,this.Io=!1,this.Po=!0,this.Ro=void 0;try{this.Xo=t,this.mo.src=-1!=t?this.Es.getResource(t+"."+(this.qa?ce.As:ce.Rs)):"",this.mo.load()}catch(t){rs("MediaPlayer::loadResource:"+this.bo+"|exception: "+t.toString())}}},us:function(t){if(!arguments.length)return this.ko;if(this.ko=t,this.mo)try{if(rs("MediaPlayer::state |"+this.bo+"|"+t),"stopped"==t)this.mo.pause();else if(!this.yo){var i=this.mo.play();if(void 0!==i){var s=this;i.catch(function(t){rs("MediaPlayer::state|play error: "+t),"NotAllowedError"==t.name&&(s.Co=!0)})}this.Mo=!1}}catch(t){rs("MediaPlayer::state Set Exception | "+this.bo+"|"+t.toString())}},Wa:function(t){if(arguments.length){if(!this.Po||!this.mo)return;var i=this.mo.readyState,s=t*this.wo;if(0==i)return rs("MediaPlayer::_ts Media Not Ready | "+this.bo+"|"+s+"| set failed"),void(this.Ro=t);this.Po=!1,this.Ro=void 0;try{rs("MediaPlayer::_ts |"+this.bo+"|"+s+"| set");var e=this.mo.currentTime;e<.2&&s-e>=0&&s-e<.2?rs("MediaPlayer::_ts |"+this.bo+"|"+s+"| difference too small"):this.mo.currentTime=s}catch(t){rs("MediaPlayer::_ts Set Exception | "+this.bo+"|"+t.toString())}}else try{return 0!=this.wo&&this.mo?this.mo.currentTime/this.wo:0}catch(t){return rs("MediaPlayer::_ts Get Exception | "+this.bo+"|"+t.toString()),0}},ja:function(){this.Po=!0},Qa:function(){if(rs("MediaPlayer::_timelinePlay | "+this.bo),(!this.xo||!this.Es.allPaused())&&this.yo&&(this.yo=!1,"stopped"!=this.ko&&!this.Mo&&this.mo))try{var t=this.mo.play();if(void 0!==t){var i=this;t.catch(function(t){rs("MediaPlayer::_timelinePlay|play error: "+t),"NotAllowedError"==t.name&&(i.Co=!0)})}}catch(t){rs("MediaPlayer::_timelinePlay Exception | "+this.bo+"|"+t.toString())}},Ka:function(){if(rs("MediaPlayer::_timelinePause | "+this.bo),(!this.xo||this.Es.allPaused())&&!this.yo&&(this.yo=!0,!this.Mo&&this.mo))try{this.mo.pause()}catch(t){rs("MediaPlayer::_timelinePause Exception | "+this.bo+"|"+t.toString())}},seek:function(t){if(this.mo){t|=0,rs("MediaPlayer::seek |"+this.bo+"|"+t);try{var i=this.mo.currentTime;if(i-t>=0&&i-t<.01)return void rs("MediaPlayer::seek |"+this.bo+"|"+i+"| too small difference");this.mo.currentTime=t}catch(t){rs("MediaPlayer::seek Exception | "+this.bo+"|"+t.toString())}}},playbackRate:function(t){if(!arguments.length)return this.mo?this.mo.playbackRate:1;try{this.mo&&(this.mo.playbackRate=t,this.mo.defaultPlaybackRate=t)}catch(t){rs("MediaPlayer::playbackRate Exception | "+this.bo+"|"+t.toString())}return this},volume:function(t){if(!arguments.length)return this.mo?this.mo.volume:1;try{t<0&&(t=0),t>1&&(t=1),this.mo&&(this.mo.volume=t,rs("MediaPlayer::volume | "+this.bo+"| set: "+t+"| get: "+this.mo.volume))}catch(t){rs("MediaPlayer::volume Exception | "+this.bo+"|"+t.toString())}return this},muted:function(t){if(!arguments.length)return!this.mo||this.mo.muted;try{this.mo&&(this.mo.muted=t)}catch(t){rs("MediaPlayer::muted Exception | "+this.bo+"|"+t.toString())}return this},cleanup:function(){on.prototype.cleanup.call(this);var t=this.mo;if(t){this.Mo=!0,this.Yo(!1),this.Fo(),this.mo=null;try{t.paused||t.pause()}catch(t){rs("MediaPlayer::cleanup Exception | "+this.bo+"|"+t.toString())}this.qa?this.Es.we.Ys.unshift(t):this.Es.we.Us.unshift(t)}},Js:function(){if(this.Co){if(this.Co=!1,this.Po=!0,this.yo)return;if("stopped"==this.ko)return;var t=this.mo;if(!t)return;try{var i=t.play();void 0!==i&&i.catch(function(t){rs("MediaPlayer::_updateUnmute|play error: "+t)})}catch(t){rs("MediaPlayer::_updateUnmute Exception | "+this.bo+"|"+t.toString())}}}}),ln=Ds(Re,{$init:function(i,s){Re.prototype.$init.call(this,i,s),this.Tn=new fn(i.Es,!1);var h=this.Tn,r=h.Ho(),a=r.style,c=this.node,f=this;if(c.appendChild(r),this.mo=r,void 0!==this.pr&&(a.cursor=this.pr),a.width="100%",a.height="100%",a.pointerEvents="auto",s.f&u){var l=h.createToolbar(c);l&&c.appendChild(l),c.style.pointerEvents="auto",t(this.node).on("mousedown",function(t){f.filterEvent(t)||$s(t,!0)})}s.f&e&&r.setAttribute("loop",""),h.Bh(s.n),h.yn(s.md),h.synchronizeWithPrez(s.f&o),h.backgroundAudio(s.f&n),h.loadResource(s.mi)},cursor:function(t){return Re.prototype.cursor.call(this,t),this.mo&&(this.mo.style.cursor=t),this},onResized:function(t,i){Re.prototype.onResized.call(this,t,i),this.Tn&&this.Tn.Do&&this.Tn.Do.resize()},html:je});De(function(t,i){return new ln(t,i)},i._);var dn=!1,pn=Ds(Re,{$init:function(i,s){Re.prototype.$init.call(this,i,s);var n,h,r,a=this.node,c=this;if(this.Tn=new fn(i.Es,!0),r=(h=(n=this.Tn).Ho()).style,a.appendChild(h),r.pointerEvents="auto",r.position="absolute",r.top="0px",r.left="0px",s.f&o&&void 0!==s.mi){var f,l=Ji.createElement("img"),d=l.style;f=i.Es.getImgResource(i._s.i+"."+this._s.i),f+=this._s.g?".png":".jpg",l.src=f,d.position="absolute",d.left="0px",d.top="0px",d.width="100%",d.height="100%",d.pointerEvents="auto",a.appendChild(l),this.Go=l,this.Vo(!0)}if(n){if(s.f&u){var p=n.createToolbar(a);p&&a.appendChild(p),a.style.pointerEvents="auto",t(this.node).on("mousedown",function(t){c.filterEvent(t)||$s(t,!0)})}s.f&e&&h.setAttribute("loop",""),h.setAttribute("playsinline",""),n.Bh(s.n),n.yn(s.md),n.synchronizeWithPrez(s.f&o),n.loadResource(s.mi),this._s.g&&(r.width="1px",r.height="1px",r[Cs]="",r[Ms]="",this.$o=function(){c.Wo(!0)},this.jo=function(){c.Wo(!1)},h.addEventListener("play",this.$o),h.addEventListener("pause",this.jo),h.addEventListener("ended",this.jo)),this.Qo=function(){var i=As.fullscreenElement(),s=t(c.node);i==c.node?s.hasClass("ap-fullscreen")||(s.addClass("ap-fullscreen"),c.bn()):s.hasClass("ap-fullscreen")&&(s.removeClass("ap-fullscreen"),c.bn())},As.addEventListener("fullscreenchange",this.Qo,!1)}},Wo:function(t){if(rs("Update green screen: "+t),t){if(!this.Ko){var i=this;this.Ko=setInterval(function(){i.qo()},100)}}else this.Ko&&(clearInterval(this.Ko),delete this.Ko)},Vo:function(t){var i,s=this.Tn,e=this.Go;if(s&&e&&(i=s.Ho()))if(t){if(e.style.display="block",!this.Jo){var n=this;this.Jo=function(){n.Vo(!1)},i.addEventListener("timeupdate",this.Jo)}}else e.style.display="none",this.Jo&&(i.removeEventListener("timeupdate",this.Jo),delete this.Jo)},createNode:function(){var t=Re.prototype.createNode.call(this),i=this._s;if(i.g){var s=Ji.createElement("canvas"),e=s.style;t.appendChild(s),this.Zo=s,bs(s,{width:i.v_w,height:i.v_h}),e.position="absolute",e.top="0px",e.left="0px",e.width="100%",e.height="100%",e.pointerEvents="auto"}return t},onResized:function(t,i){Re.prototype.onResized.call(this,t,i),this.tu()},tu:function(){if(!this._s.g&&this.Tn){var t=this.node.offsetWidth,i=this.node.offsetHeight,s=this._s.v_w,e=this._s.v_h,n=this.Tn.Ho(),h=this.Tn.getToolbar(),r=n.style,a=As.fullscreenElement()==this.node;t<=0||i<=0||s<=0||e<=0||(Oi(s/e-t/i)>.01&&!a?(r[Cs]="0% 0%",r[Ms]="scaleX("+t/s+") scaleY("+i/e+")",r.width="",r.height=""):(r.width="100%",r.height="100%",se.browser.chrome?(r[Cs]="0% 0%",r[Ms]="scaleX(1) scaleY(1)"):(r[Cs]="",r[Ms]="")),h&&h.resize())}},cleanup:function(){if(this.Vo(!1),As.removeEventListener("fullscreenchange",this.Qo,!1),this._s.g&&this.Tn){var t=this.Tn.Ho();t&&(t.removeEventListener("play",this.$o),t.removeEventListener("pause",this.jo),t.removeEventListener("ended",this.jo)),this.Wo(!1)}return Re.prototype.cleanup.call(this)},qo:function(){var t,i,s,e,n,h,r,a,o,u,c,f,l,d=this._s.g,p=this.Zo;if(d&&this.Tn&&(t=p.getContext("2d"))){a=((h=d[0])>>16&255)-(r=255*d[1]/100),o=(h>>16&255)+r,u=(h>>8&255)-r,c=(h>>8&255)+r,f=(255&h)-r,l=(255&h)+r,t.drawImage(this.Tn.Ho(),0,0,p.width,p.height);try{for(s=(i=t.getImageData(0,0,p.width,p.height)).data,e=0,n=s.length;e<n;e+=4)s[e]>a&&s[e]<o&&s[e+1]>u&&s[e+1]<c&&s[e+2]>f&&s[e+2]<l&&(s[e+3]=0);t.putImageData(i,0,0)}catch(t){dn||(dn=!0,"file:"==window.location.protocol&&alert(this.prez().ui.Cs.text("GreenScreenError")))}}},cursor:function(t){return Re.prototype.cursor.call(this,t),this.node.style.cursor=t,this},html:je});De(function(t,i){return new pn(t,i)},i.T);var vn=Ds({$init:function(t){this.Tn=new fn(t,!0),this.Tn.Ho().setAttribute("playsinline",""),this.Tn.synchronizeWithPrez(!0),this.Tn.muted=function(t){var i=fn.prototype.muted;return arguments.length?((t||!t&&this.Es.sidebarVisible())&&i.call(this,t),this):i.call(this)},this.node=null,this.iu=0},appendTo:function(t){this.node=t,this.node.appendChild(this.Tn.Ho())},cleanup:function(){this.Tn&&(this.Tn.cleanup(),this.Tn=null,this.node&&(this.node.parentNode&&this.node.parentNode.removeChild(this.node),this.node=null))},muted:function(t){if(!arguments.length)return this.Tn.muted();this.Tn.muted(t)},aspectRatio:function(t){if(!arguments.length)return this.iu;this.iu=t},bn:function(){}}),mn=-1,bn=0,wn=1,gn=2,_n=3,kn=5,yn=Ds(on,{$init:function(t,i,s){on.prototype.$init.call(this,t),this.Zn=i,this.bo="",this.wo=3600,this._o=void 0,this.ko="stopped",this.yo=!1,this.Eo=!1,this.Mo=!1,this.Po=!0,this.su=!1,this.eu=void 0;var e,n=i.nu,h={rel:0,showinfo:0,autoplay:0,playsinline:1},r=this;this.hu=s.auto_play,!0===s.play_range?(this.ru=(s.start_time||0)/1e3,this.au=(s.stop_time||0)/1e3):(this.ru=0,this.au=0),h.controls=s.hide_controls?0:1,h.iv_load_policy=s.hide_annotations?3:1,h.start=this.ru,h.autoplay=this.hu?1:0,this.au>0&&(h.end=this.au),e=new YT.Player(n,{height:"100%",width:"100%",videoId:s.youtube_id,playerVars:h,events:{onReady:function(){r.ou()},onStateChange:function(){r.uu()},onError:function(){r.cu()}}}),this.fu=e},Bh:function(t){this.bo=t},lu:function(t){switch(t){case mn:return"unstarted";case bn:return"ended";case wn:return"playing";case gn:return"paused";case _n:return"buffering";case kn:return"videocued";default:return"invalid"}},Zs:function(t){if(this.su&&!this.hu){var i=this.fu;if(t){if(void 0===this.Uo&&(this.Uo=i.getPlayerState()==wn),this.Uo)try{i.pauseVideo()}catch(t){rs("MediaPlayer::_onPrezPlayPause:"+this.bo+"|exception: "+t.toString())}}else{if(this.Uo)try{i.playVideo()}catch(t){rs("MediaPlayer::_onPrezPlayPause:"+this.bo+"|exception: "+t.toString())}delete this.Uo}}},Yo:function(t){if(t!=this._o){var i=this.Es;this._o=t,t?i.Ie():i.Pe()}},us:function(t){if(!arguments.length)return this.ko;if(this.ko=t,this.su)try{rs("YouTubeMediaPlayer::state |"+this.bo+"|"+t),"stopped"==t?this.fu.pauseVideo():this.yo||(this.fu.playVideo(),this.Mo=!1)}catch(t){rs("YouTubeMediaPlayer::state Set Exception | "+this.bo+"|"+t.toString())}},Wa:function(t){var i=this.fu;if(arguments.length){if(!this.su)return;if(!this.Po)return;var s,e;this.Po=!1,s=t/1e3*this.wo+this.ru;try{(e=i.getCurrentTime())-s>-1&&e-s<1?rs("YouTubeMediaPlayer::_ts |"+this.bo+"|"+e+"| too small difference"):(rs("YouTubeMediaPlayer::_ts |"+this.bo+"|"+s+"| set"),s>=(this.au>0?this.au:i.getDuration())-1?(rs("YouTubeMediaPlayer::_ts seek ts is larger than duration | "+this.bo+"|"+s),i.stopVideo(),this.Mo=!0,this.Yo(!1)):i.seekTo(s,!0))}catch(t){rs("YouTubeMediaPlayer::_ts Set Exception | "+this.bo+"|"+t.toString())}}else try{return 0==this.wo?0:this.su?(i.getCurrentTime()-this.ru)/this.wo:0}catch(t){return rs("YouTubeMediaPlayer::_ts Get Exception | "+this.bo+"|"+t.toString()),0}},ja:function(){this.Po=!0},Qa:function(){if(rs("YouTubeMediaPlayer::_timelinePlay | "+this.bo),this.yo&&(this.yo=!1,"stopped"!=this.ko&&this.su&&!this.Mo))try{this.fu.playVideo()}catch(t){rs("YouTubeMediaPlayer::_timelinePlay Exception | "+this.bo+"|"+t.toString())}},Ka:function(){if(rs("YouTubeMediaPlayer::_timelinePause | "+this.bo),!this.yo&&(this.yo=!0,this.su&&!this.Mo))try{this.fu.pauseVideo()}catch(t){rs("YouTubeMediaPlayer::_timelinePause Exception | "+this.bo+"|"+t.toString())}},playbackRate:function(t){if(!arguments.length)return this.su?this.fu.getPlaybackRate():1;try{if(!this.su)return;this.fu.setPlaybackRate(t)}catch(t){rs("YouTubeMediaPlayer::playbackRate Exception | "+this.bo+"|"+t.toString())}return this},volume:function(t){if(!arguments.length)return this.su?this.fu.getVolume()/100:1;try{if(!this.su)return;t<0&&(t=0),t>1&&(t=1),this.fu.setVolume(100*t)}catch(t){rs("YouTubeMediaPlayer::volume Exception | "+this.bo+"|"+t.toString())}return this},muted:function(t){if(!arguments.length)return!!this.su&&this.fu.isMuted();try{if(!this.su)return;t?this.fu.mute():this.fu.unMute()}catch(t){rs("YouTubeMediaPlayer::muted Exception | "+this.bo+"|"+t.toString())}return this},ou:function(){if(rs("YouTubeMediaPlayer::_onPlayerReady | "+this.bo),this.su)rs("YouTubeMediaPlayer::_onPlayerReady repeated state| "+this.bo);else{this.su=!0;var t=this.Es.we;this.volume(t.volume()),this.muted(t.muted()),this.playbackRate(t.playbackRate()),"playing"!=this.ko||this.yo?this.fu.pauseVideo():this.fu.playVideo()}},uu:function(){if(!this.Eo&&this.fu){var t=this.fu.getPlayerState();if(rs("YouTubeMediaPlayer::_onPlayerStateChanged | "+this.bo+"|"+this.lu(t)),this.hu)switch(t){case mn:case kn:this.Yo(!1);break;case bn:this.Mo=!0,this.Yo(!1);break;case wn:case gn:this.Yo(!1);break;case _n:this.Mo?this.Yo(!1):this.Yo(!0)}}},cu:function(){this.Eo=!0,this.fu&&this.hu&&this.Yo(!1)},cleanup:function(){on.prototype.cleanup.call(this),this.fu&&(this.Mo=!0,this.su=!1,this.Yo(!1),this.fu=null)}}),Tn=Ds(Re,{$init:function(t,i){if(Re.prototype.$init.call(this,t,i),se.youtubeAPIState==Jt&&(this.Tn=new yn(t.Es,this,i.YT_params),this.Tn.Bh(i.n)),i.YT_params.disable_scaling){var s,e=this.prez(),n=this;this.du=function(){n.pu()},e&&e.ui&&(s=e.ui.canvas())&&s.on("ap-scaleChanged",this.du)}},createNode:function(){var t=Re.prototype.createNode.call(this),i=Ji.createElement("div"),s=Ji.createElement("div"),e=i.style;return t.style.overflow="hidden",e.pointerEvents="auto",e.position="absolute",e.left="0px",e.top="0px",e.width="100%",e.height="100%",e.border="none",t.appendChild(i),this.mo=i,i.appendChild(s),this.nu=s,t},pu:function(){if(this.mo){var t,i=this.node.offsetWidth,s=this.node.offsetHeight,e=this.prez(),n=this.mo.style;1===(t=e?e.Xe():1)?(n.width="100%",n.height="100%",n[Cs]="",n[Ms]=""):(n.width=i*t+"px",n.height=s*t+"px",n[Cs]=1==t?"":"0% 0%",n[Ms]=1==t?"":"scale("+1/t+", "+1/t+")")}},cleanup:function(){if(this._s.YT_params.disable_scaling){var t,i=this.prez();i&&i.ui&&(t=i.ui.canvas())&&t.off("ap-scaleChanged",this.du),delete this.du}return Re.prototype.cleanup.call(this)},html:je});De(function(t,i){return new Tn(t,i)},i.R);var xn=Ds(Re,{$init:function(t,i){Re.prototype.$init.call(this,t,i);var s,e,n=this.frameNode,h=i.web_params;if(h.embed_code?"srcdoc"in n?n.srcdoc=h.embed_code:(e=function(t){t.target.removeEventListener("load",e,!1);var i=t.target.contentDocument;i.open(),i.write(h.embed_code),i.close()},n.addEventListener("load",e,!1)):(s=this,n.onload=function(){s.vu},n.onerror=function(){s.mu},this.bu=setTimeout(function(){s.wu()},2e4),h.address?n.src=h.address:h.entrypoint?n.src=this.prez().getResource(h.html_package)+"/"+h.entrypoint:n.src=this.prez().getResource(h.html_package+".html")),i.web_params.disable_scaling){var r,a=this.prez(),o=this;this.du=function(){o.pu()},a&&a.ui&&(r=a.ui.canvas())&&r.on("ap-scaleChanged",this.du)}},createNode:function(){var t=Re.prototype.createNode.call(this),i=Ji.createElement("iframe"),s=i.style,e=this._s.web_params.scrolling;return s.pointerEvents="auto",s.position="absolute",s.left="0px",s.top="0px",s.width="100%",s.height="100%",s.border="none",s.overflow=e?"auto":"hidden",bs(i,{scrolling:e?"auto":"no"}),t.appendChild(i),this.frameNode=i,t},vu:function(){clearTimeout(this.bu)},mu:function(){clearTimeout(this.bu)},wu:function(){},pu:function(){var t,i=this.node.offsetWidth,s=this.node.offsetHeight,e=this.prez(),n=this.frameNode.style;1===(t=e?e.Xe():1)?(n.width="100%",n.height="100%",n[Cs]="",n[Ms]=""):(n.width=i*t+"px",n.height=s*t+"px",n[Cs]=1==t?"":"0% 0%",n[Ms]=1==t?"":"scale("+1/t+", "+1/t+")")},cleanup:function(){if(this._s.web_params.disable_scaling){var t,i=this.prez();i&&i.ui&&(t=i.ui.canvas())&&t.off("ap-scaleChanged",this.du),delete this.du}return clearTimeout(this.bu),Re.prototype.cleanup.call(this)},html:je});De(function(t,i){return new xn(t,i)},i.D);var Sn=Ds(Qe,{$init:function(s,e){(e=e||{},this.Es=s,this.rr={0:this},this.or={},this.Pn=[],this.ln=[],this.Gh=1,void 0===e.hss&&(e.hss=[]),e.isBackground||(this.ae=new ah({startTime:e.st||0}),this.ds(this.ae)),this.gu=[],!e.hsm||e.isBackground||e.isTop||e.isBottom||(this.Ca=new hn(e.hss)),Qe.prototype.$init.call(this,this,e),this.nh)&&(this.nh()&&this.Re());!e.hsm||e.isBackground||e.isTop||e.isBottom||this.Ca.initSlide(this);var n=this.node.style,h=void 0!==e.fbi||e.isFeedbackBg,r=!(h||e.isBackground||e.isTop||e.isBottom);if(n.width="100%",n.height="100%",!e.isBackground&&!e.isTop&&!e.isBottom){var a={isBackground:!0,h:e.h,isFeedbackBg:h};e.b&&(e.b.f&&(a.s=[{f:e.b.f}]),e.b.im&&(a.cc=[{k:i.u,s:[{im:[e.b.im[0],255,e.b.im[1]],w:e.b.w}],m:Qt.Demo|Qt.Tutorial|Qt.Practice|Qt.Test}])),this.background=new Sn(s,a)}if(e.isBackground)n.zIndex=h?$t.Yi:$t.Pi,n.height=e.h[s.layoutIndex]+"px";else if(e.isTop?n.zIndex=$t.Di:e.isBottom?n.zIndex=$t.Ri:(n.zIndex=h?$t.Hi:$t.Ai,n.height=e.h[s.layoutIndex]+"px"),this.node.setAttribute("data-ap-sld-"+e.i,""),e.at&&this.node.setAttribute("aria-label",e.at),e.ca&&e.ca.n&&e.ca.n.length?this.reloadClosedCaption():r&&s.en&&(s.en.slide=this,this.ae.addChild(new eh(s.en,"display",{startTime:0,duration:0,tweenParams:["block","none"],tweenType:jt.zi}))),this._u=void 0,e.cp&&void 0!==e.cp.m){var o=Qt[this.Es.options.playMode];if((e.cp.m&o)==o){var u=new an(this,e.cp);t(".ap-slides",s.container)[0].appendChild(u.node),-1!=e.cp.hl_type&&(u.node.style.borderRadius=0===e.cp.hl_type?"50%":0,u.node.style.backgroundColor=ws(e.cp.hl_color)),this._u=u}}if(h?t(".ap-feedback-slides",s.container)[0].appendChild(this.node):t(".ap-slides",s.container)[0].appendChild(this.node),!e.isBackground){this.bn(),this.restore();var c=new Je(s,this);o=Qt[this.Es.options.playMode];if(e.i>=0)(k=se.createZoomAndPan(c,e.z,s.layoutIndex,o))&&this.ae.addChild(k);if(this._u)(k=this._u.$a())&&this.ae.addChild(k);for(var f in this.rr){var l=this.rr[f];l._s.ta&&l.splitText&&l.splitText({chars:l._s.ta&se.TextEffectFlags.CHARS,words:l._s.ta&se.TextEffectFlags.WORDS,processStyles:"backgroundColor, textDecoration"})}var d,p,v,m,b,w,g,_,k,y,T=e.tl||[];for(v=0,w=T.length;v<w;++v){for(d=T[v],0===v?y=this.ae:(y=new ah,this.ds(y)),y.id=d[0],y.name=d[1],m=0,g=(d=d[2]||[]).length;m<g;++m)if(p=d[m],c=this.object(p[0])){for(b=0,_=(p=p[1]||[]).length;b<_;++b)if(se.createEffect&&(k=se.createEffect.apply(se,[c].concat(p[b]))))switch(p[b][0]){case se.EffectType.PAUSE:case se.EffectType.TIME_OUT:"Demo"!==s.options.playMode&&(k.startTime(k.startTime()+e.st),s.ae.addChild(k),c.ds(k));break;default:y.addChild(k)}}else rs("Object not found: "+p[0]);this.gu.push(y),y.setup()}}},flexbox:function(){if(this._s.fb){var t=this._s.fb[this.Es.layoutIndex];t.b&&Re.prototype.flexbox.call(this,t.b)}},onLayoutSwitched:function(){var t=this._s.h[this.Es.layoutIndex];this.node.clientHeight!=t&&this.height(t);var i=this.node.clientWidth,s=this.node.clientHeight;if(i!=this.Yh||s!=this.Hh){var e=i-this.Yh,n=s-this.Hh;this.Yh=i,this.Hh=s,Re.prototype.onResized.call(this,e,n)}this.flexbox&&this.flexbox(),Re.prototype.onLayoutSwitched.call(this),this.nh&&this.nh();var h=this,r=function(t){if(t&&t.children)for(var i,s=0,e=h===t?2:1;s<e;++s)for(var n=0,a=t.children.length;n<a;++n)(i=t.children[n]).eh&&(i.Zh||!i.Ae&&i.shape||i.textContainer)&&i.bn(),r(i)};r(this),this.background&&this.background.onLayoutSwitched(),this.Es.en&&this.Es.en.onLayoutSwitched()},object:function(t){return(typeof t===Ri?this.or[t]:this.rr[t])||null},timeline:function(t){if(!arguments.length)return this.ae;var i,s,e=typeof t===Ri?"name":"id";for(i=0,s=this.gu.length;i<s;++i)if(this.gu[i][e]===t)return this.gu[i];return null},timelines:function(){return this.gu},remove:function(t){return this.node.parentNode&&this.node.parentNode.removeChild(this.node),this.background&&!t&&this.background.remove(),this.cleanup()},cleanup:function(){return this.background&&this.background.cleanup(),this._u&&(this._u.cleanup(),this._u.node.parentNode&&this._u.node.parentNode.removeChild(this._u.node)),Re.prototype.cleanup.call(this)},bn:function(){Re.prototype.bn.call(this),this.sr||(this.sr=0),this.sr>10?rs("Recursive checking resized: "+this.name()):(++this.sr,this.Es.en&&this.Es.en.slide==this&&this.Es.en.onResized(0,0),this.background&&this.background.bn(),--this.sr)},savedData:function(t){var i=this.Es.ws.slides,s=i[this._s.index];return t&&!s&&(s=i[this._s.index]={}),s},fillSolid:function(t,i,s,e){return this.background&&this.background.shape.fillSolid(t,i,s,e),this},reloadClosedCaption:function(){var t=this._s,i=this.Es,s=i.Ue||0,e=Qt[this.Es.options.playMode];if((i._s.cc.modes&e)==e){if(i._s.responsive&&i.en&&i.en.slide&&i.en.slide._s.i!=this._s.i){var n=i.en;(r=i.ui.canvas())&&n.node&&n.node.remove(),delete i.en}if(!i.en){var h={};h.fill=i._s.cc.fill,h.textStyle=i._s.cc.textStyle,h.margin=i._s.cc.margin;var r;n=new Oe(this,h);i.en=n,(r=i.ui.canvas())&&r.append(n.node)}i.en.slide=this,i.ku&&(this.ae.removeChild(i.ku),delete i.ku);for(var a=new hh({startTime:0}),o=0;o<t.ca.n.length;o++){var u=t.ca.n[o];0==o&&u.startTime>0&&a.addChild(new eh(this.Es.en,"display",{startTime:0,duration:0,tweenParams:["block","none"],tweenType:jt.zi})),a.addChild(new eh(this.Es.en,"display",{startTime:u.startTime,duration:0,tweenParams:["none","block"],tweenType:jt.zi})),a.addChild(new eh(this.Es.en,"ccNode",{startTime:u.startTime,duration:0,tweenParams:["",u.texts[s]],tweenType:jt.zi})),a.addChild(new eh(this.Es.en,"display",{startTime:u.startTime+u.duration,duration:0,tweenParams:["block","none"],tweenType:jt.zi}))}this.ae.addChild(a),i.ku=a}}}),En={0:[function(t,i,s,e){this.addRect(t,i,s,e)}],1:[function(t,i,s,e,n){var h=n[0]*Ui(s/2,e/2);this.addRoundedRect(t,i,s,e,h,h)},function(t,i,s){var e=s[0]*Ui(t/2,i/2),n=Gi(e*(1-Li(2)/2));return[n,n,n,n]},function(t,i,s){var e;return t<i?(e=t/(1-s[0]*(1-Li(2)/2)),e=2*Gi((e-t)/2)):(e=i/(1-s[0]*(1-Li(2)/2)),e=2*Gi((e-i)/2)),[t+e,i+e]}],2:[function(t,i,s,e,n){Cn(this,t,i,s,e,n,!1)}],3:[function(t,i,s,e,n){Cn(this,t,i,s,e,n,!0)},function(t,i){var s=.2*Ui(t,i),e=Gi(s*(1-Li(2)/2));return[e,e,e,e]},function(t,i){var s,e;return t<i?e=i+.4*(s=t/(1-.4*(1-Hi(Ni/4))))*(1-Hi(Ni/4)):s=t+.4*(e=i/(1-.4*(1-Hi(Ni/4))))*(1-Hi(Ni/4)),[Gi(s),Gi(e)]}],4:[function(t,i,s,e,n){var h=t+as(s-Ui(s,e)*n[0],0,s),r=i+e/2*n[1];this.moveTo(t,r).lineTo(h,r).lineTo(h,i).lineTo(t+s,i+e/2).lineTo(h,i+e).lineTo(h,i+e-n[1]*e/2).lineTo(t,i+e-n[1]*e/2).closeSubpath()},function(t,i,s){var e=as(t-Ui(t,i)*s[0],0,t),n=i/2*s[1];return[0,n,i<=0?0:Gi((t-e)*(i-2*n)/i),n]},function(t,i,s){var e=s[0],n=s[1];if(n<0&&(n=0),n>1&&(n=1),n<1){var h=i/(1-n),r=t+(1-n)*e*h;if(r<h){var a=1-(1-n)*e;a>.001&&(r=t/a)}return[Gi(r),Gi(h)]}return[t,i]}],5:[function(t,i,s,e,n){var h=t+as(Ui(s,e)*n[0],0,s),r=i+e/2*n[1];this.moveTo(h,i).lineTo(h,r).lineTo(t+s,r).lineTo(t+s,i+e-n[1]*e/2).lineTo(h,i+e-n[1]*e/2).lineTo(h,i+e).lineTo(t,i+e/2).closeSubpath()},function(t,i,s){var e=as(Ui(t,i)*s[0],0,t),n=i/2*s[1];return[i<=0?0:Gi(e*(i-2*n)/i),n,0,n]},function(t,i,s){var e=s[0],n=s[1];if(n<0&&(n=0),n>1&&(n=1),n<1){var h=i/(1-n),r=t+(1-n)*e*h;if(r<h){var a=1-(1-n)*e;a>.001&&(r=t/a)}return[Gi(r),Gi(h)]}return[t,i]}],6:[function(t,i,s,e,n){var h=i+as(Ui(s,e)*n[0],0,e),r=t+s/2*n[1];this.moveTo(t,h).lineTo(t+s/2,i).lineTo(t+s,h).lineTo(t+s-n[1]*s/2,h).lineTo(t+s-n[1]*s/2,i+e).lineTo(r,i+e).lineTo(r,h).lineTo(t,h).closeSubpath()},function(t,i,s){var e=as(Ui(t,i)*s[0],0,i),n=t/2*s[1];return[n,t<0?0:Gi(e*(t-2*n)/t),n,0]},function(t,i,s){var e=s[0],n=s[1];if(n<0&&(n=0),n>1&&(n=1),n<1){var h=t/(1-n),r=i+(1-n)*e*h;if(r<h){var a=1-(1-n)*e;a>.001&&(r=i/a)}return[Gi(h),Gi(r)]}return[t,i]}],7:[function(t,i,s,e,n){var h=as(e-Ui(s,e)*n[0],0,e),r=t+s/2*n[1],a=i+h;this.moveTo(t,a).lineTo(r,a).lineTo(r,i).lineTo(t+s-s/2*n[1],i).lineTo(t+s-s/2*n[1],a).lineTo(t+s,a).lineTo(t+s/2,i+e).closeSubpath()},function(t,i,s){var e=as(i-Ui(t,i)*s[0],0,i),n=t/2*s[1];return[n,0,n,t<=0?0:Gi((i-e)*(t-2*n)/t)]},function(t,i,s){var e=s[0],n=s[1];if(n<0&&(n=0),n>1&&(n=1),n<1){var h=t/(1-n),r=i+(1-n)*e*h;if(r<h){var a=1-(1-n)*e;a>.001&&(r=i/a)}return[Gi(h),Gi(r)]}return[t,i]}],8:[function(t,i,s,e,n){var h=t+s/2*(1+n[0]),r=i+e/2*(1+n[1]),a=Xi(n[1],n[0]),o=a-13*Ni/180,u=a+14*Ni/180;this.moveTo(h,r).lineTo(t+s/2+s/2*Hi(o),i+e/2+e/2*Bi(o)).arcTo(s/2,e/2,t+s/2+s/2*Hi(u),i+e/2+e/2*Bi(u),!0,!1).closeSubpath()},function(t,i){var s=1-Li(2)/2,e=Gi(t*s/2),n=Gi(i*s/2);return[e,n,e,n]},function(t,i){var s=1-Li(2)/2,e=i/(1-s);return[t+Gi(t/(1-s)-t),i+Gi(e-i)]}],9:[function(t,i,s,e,n){var h=n[0]*Ui(s/2,e/2);this.moveTo(t+h,i).lineTo(t+s-h,i).lineTo(t+s-h,i+h).lineTo(t+s,i+h).lineTo(t+s,i+e-h).lineTo(t+s-h,i+e-h).lineTo(t+s-h,i+e).lineTo(t+h,i+e).lineTo(t+h,i+e-h).lineTo(t,i+e-h).lineTo(t,i+h).lineTo(t+h,i+h).closeSubpath()},function(t,i,s){var e=s[0]*Ui(t/2,i/2);return[e,e,e,e]},function(t,i,s){var e;return s[0]<1?t<i?[e=t/(1-s[0]),i+e-t]:[t+(e=i/(1-s[0]))-i,e]:[t,i]}],10:[function(t,i,s,e){this.addEllipse(t+s/2,i+e/2,s/2,e/2)},function(t,i){var s=1-Li(2)/2,e=Gi(t*s/2),n=Gi(i*s/2);return[e,n,e,n]},function(t,i){var s=1-Li(2)/2,e=i/(1-s);return[t+Gi(t/(1-s)-t),i+Gi(e-i)]}],11:[function(t,i,s,e){this.moveTo(t+s/2,i).lineTo(t+s,i+e/2).lineTo(t+s/2,i+e).lineTo(t,i+e/2).closeSubpath()},function(t,i){var s=Gi(t/4),e=Gi(i/4);return[s,e,s,e]},function(t,i){return[2*t,2*i]}],12:[function(t,i,s,e,n){var h=t+s/2+n[0]*s/2,r=i+e/2+n[1]*e/2;this.moveTo(t+s/11,i+3/7*e).quadraticTo(t+1.3/11*s,i+1.1/7*e,t+3.8/11*s,i+1.9/7*e).quadraticTo(t+4.6/11*s,i+1/7*e,t+6/11*s,i+1.5/7*e).quadraticTo(t+6.8/11*s,i+.8/7*e,t+7.8/11*s,i+1.3/7*e).quadraticTo(t+9.5/11*s,i+.5/7*e,t+10/11*s,i+2/7*e).quadraticTo(t+1*s,i+2.4/7*e,t+10.5/11*s,i+3.2/7*e).quadraticTo(t+12/11*s,i+4.6/7*e,t+9.8/11*s,i+5.1/7*e).quadraticTo(t+9.5/11*s,i+6.8/7*e,t+7.5/11*s,i+6.2/7*e).quadraticTo(t+6/11*s,i+8/7*e,t+4.3/11*s,i+6.5/7*e).quadraticTo(t+2.6/11*s,i+e,t+1.5/11*s,i+6/7*e).quadraticTo(t+-.2/11*s,i+6/7*e,t+.5/11*s,i+4.5/7*e).quadraticTo(t-.5/11*s,i+3.7/7*e,t+1/11*s,i+3/7*e).closeSubpath().addEllipse(h,r,.2/11*s,.2/11*s).addEllipse(h+(t+s/2-h)/6,r+(i+e/2-r)/6,.5/11*s,.5/11*s).addEllipse(h+(t+s/2-h)/2.5,r+(i+e/2-r)/2.5,.8/11*s,.8/11*s)},function(t,i){var s=Gi(t/8),e=Gi(i/4);return[s,e,s,e]},function(t,i){return[t+Gi(t/3),2*i]}],14:[function(t,i,s,e,n){var h=n[0]*s/2,r=n[1]*e/2;this.moveTo(t,i+e/2).lineTo(t+h,i).lineTo(t+h,i+r).lineTo(t+s-h,i+r).lineTo(t+s-h,i).lineTo(t+s,i+e/2).lineTo(t+s-h,i+e).lineTo(t+s-h,i+e-r).lineTo(t+h,i+e-r).lineTo(t+h,i+e).closeSubpath()},function(t,i,s){var e=Gi(s[0]*t/2),n=Gi(i*(s[1]/2));return[e,n,e,n]},function(t,i,s){var e=s[0],n=s[1];return e<1&&n<1?[Gi(t/(1-e)),Gi(i/(1-n))]:[t,i]}],15:[function(t,i,s,e,n){var h=n[0]*s/2,r=n[1]*e/2;this.moveTo(t,i+r).lineTo(t+s/2,i).lineTo(t+s,i+r).lineTo(t+s-h,i+r).lineTo(t+s-h,i+e-r).lineTo(t+s,i+e-r).lineTo(t+s/2,i+e).lineTo(t,i+e-r).lineTo(t+h,i+e-r).lineTo(t+h,i+r).closeSubpath()},function(t,i,s){var e=Gi(t*(s[0]/2)),n=Gi(s[1]*i/2);return[e,n,e,n]},function(t,i,s){var e=s[0],n=s[1];return e<1&&n<1?[Gi(t/(1-e)),Gi(i/(1-n))]:[t,i]}],16:[function(t,i,s,e,n){var h=n[0]*s,r=n[1]*e,a=Ui(n[2],n[0])*s,o=Yi(n[3],n[1])*e;this.moveTo(t,i).lineTo(t+a,i).lineTo(t+a,i+o).lineTo(t+h,i+o).lineTo(t+h,i+r).lineTo(t+s,i+e/2).lineTo(t+h,i+e-r).lineTo(t+h,i+e-o).lineTo(t+a,i+e-o).lineTo(t+a,i+e).lineTo(t,i+e).closeSubpath()},function(t,i,s){return[0,0,Gi(t*(1-Ui(s[2],s[0]))),0]},function(t,i,s){var e=Ui(s[2],s[0]);return e>0?[Gi(t/e),i]:[t,i]}],17:[function(t,i,s,e,n){var h=n[1]*s,r=n[2]*e,a=Yi(n[0],n[1])*s,o=Ui(n[2],n[3])*e;this.moveTo(t,i).lineTo(t+s,i).lineTo(t+s,i+o).lineTo(t+s-a,i+o).lineTo(t+s-a,i+r).lineTo(t+s-h,i+r).lineTo(t+s/2,i+e).lineTo(t+h,i+r).lineTo(t+a,i+r).lineTo(t+a,i+o).lineTo(t,i+o).closeSubpath()},function(t,i,s){return[0,0,0,Gi(i*(1-Ui(s[2],s[3])))]},function(t,i,s){var e=Ui(s[2],s[3]);return[t,Gi(i/e)]}],18:[function(t,i,s,e,n){var h=n[0]*s,r=n[1]*e,a=Yi(n[2],n[0])*s,o=Yi(n[3],n[1])*e;this.moveTo(t+a,i).lineTo(t+s,i).lineTo(t+s,i+e).lineTo(t+a,i+e).lineTo(t+a,i+e-o).lineTo(t+h,i+e-o).lineTo(t+h,i+e-r).lineTo(t,i+e/2).lineTo(t+h,i+r).lineTo(t+h,i+o).lineTo(t+a,i+o).closeSubpath()},function(t,i,s){return[Gi(Yi(s[2],s[0])*t),0,0,0]},function(t,i,s){var e=Yi(s[2],s[0]);return e<1?[Gi(t/(1-e)),i]:[t,i]}],19:[function(t,i,s,e,n){var h=n[1]*s,r=n[2]*e,a=Yi(n[0],n[1])*s,o=Yi(n[2],n[3])*e;this.moveTo(t+s/2,i).lineTo(t+h,i+r).lineTo(t+a,i+r).lineTo(t+a,i+o).lineTo(t,i+o).lineTo(t,i+e).lineTo(t+s,i+e).lineTo(t+s,i+o).lineTo(t+s-a,i+o).lineTo(t+s-a,i+r).lineTo(t+s-h,i+r).closeSubpath()},function(t,i,s){return[0,Gi(Yi(s[2],s[3])*i),0,0]},function(t,i,s){var e=Yi(s[2],s[3]);return e<1?[t,Gi(i/(1-e))]:[t,i]}],20:[function(t,i,s,e,n){var h=n[0],r=n[1];this.moveTo(t+s*h,i).lineTo(t+s,i+e/2).lineTo(t+s*h,i+e).lineTo(t+s*h,i+e*(1-r/2)).lineTo(t,i+e*(1-r/2)).lineTo(t+(s-s*h)/2,i+e/2).lineTo(t,i+e*r/2).lineTo(t+s*h,i+e*r/2).closeSubpath()},function(t,i,s){var e=s[0],n=s[1];return[Gi(t*(1-e)/2),Gi(i/2*n),Gi(t-t*((1-e)*n+e)),Gi(i/2*n)]},function(t,i,s){var e=s[0],n=s[1];return n<1&&e>0?[Gi(t/((1-e)*n+e-(1-e)/2)),Gi(i/(1-n))]:[t,i]}],21:[function(t,i,s,e,n){var h=s*n[0];this.moveTo(t,i).lineTo(t+h,i).lineTo(t+s,i+e/2).lineTo(t+h,i+e).lineTo(t,i+e).lineTo(t+s-h,i+e/2).closeSubpath()},function(t,i,s){var e=s[0];return[Gi(t*(1-e)),0,Gi(t*(1-e)),0]}],22:[function(t,i,s,e,n){this.moveTo(t+n[0]*s,i).lineTo(t+s,i+e).lineTo(t,i+e).closeSubpath()},function(t,i,s){var e=s[0];return[Gi(t*e/2),Gi(i/2),Gi((1-e)*t/2),0]},function(t,i){return[Gi(2*t),Gi(2*i)]}],23:[function(t,i,s,e,n){this.moveTo(t,i).lineTo(t+s,i+e).lineTo(t,i+e).closeSubpath()},function(t,i){return[Gi(1*t/10),Gi(6*i/10),Gi(4*t/10),Gi(1*i/10)]},function(t,i){return[Gi(2*t),Gi(10*i/3)]}],24:[function(t,i,s,e,n){this.moveTo(t+.2*s,i).lineTo(t+s,i).lineTo(t+.8*s,i+e).lineTo(t,i+e).closeSubpath()},function(t,i){return[Gi(.2*t),0,Gi(.2*t),0]},function(t,i){return[Gi(t/.6),Gi(i)]}],25:[function(t,i,s,e,n){this.moveTo(t+s/2,i).lineTo(t+s,i+e/2*(1-Hi(2*Ni/4.7))).lineTo(t+s/2+s/2/Hi(2*Ni/20)*Bi(2*Ni/10),i+e).lineTo(t+s/2-s/2/Hi(2*Ni/20)*Bi(2*Ni/10),i+e).lineTo(t,i+e/2*(1-Hi(2*Ni/4.7))).closeSubpath()},function(t,i){return[Gi(t/4),Gi(i/4),Gi(t/4),Gi(i/4)]},function(t,i){return[2*t,2*i]}],26:[function(t,i,s,e,n){var h=n[0]*Ui(s/2,e/2);this.moveTo(t,i+e/2).lineTo(t+h,i+e).lineTo(t+s-h,i+e).lineTo(t+s,i+e/2).lineTo(t+s-h,i).lineTo(t+h,i).closeSubpath()},function(t,i,s){var e=Fi(3,s[0]),n=Gi(e*Ui(t/10,i/10));return[n,n,n,n]},function(t,i,s){var e,n,h=Fi(3,s[0]);return t<i?n=i+h*(e=t/(1-2*h/10))/5:e=t+h*(n=i/(1-2*h/10))/5,[Gi(e),Gi(n)]}],27:[function(t,i,s,e,n){var h=n[0]*Ui(s/2,e/2);this.moveTo(t+h,i).lineTo(t+s-h,i).lineTo(t+s,i+h).lineTo(t+s,i+e-h).lineTo(t+s-h,i+e).lineTo(t+h,i+e).lineTo(t,i+e-h).lineTo(t,i+h).closeSubpath()},function(t,i,s){var e=.70710678118*s[0]*Ui(t/2,i/2);return[e,e,e,e]},function(t,i,s){if(s[0]>1)return[t,i];var e,n,h=.70710678118*s[0];return t<i?n=i+h*(e=t/(1-h)):e=t+h*(n=i/(1-h)),[Gi(e),Gi(n)]}],28:[function(t,i,s,e,n){var h=n[0]*Ui(s/2,e/2);this.moveTo(t,i+h).cubicTo(t,i+h,t+h,i+h,t+h,i).lineTo(t+s-h,i).cubicTo(t+s-h,i,t+s-h,i+h,t+s,i+h).lineTo(t+s,i+e-h).cubicTo(t+s,i+e-h,t+s-h,i+e-h,t+s-h,i+e).lineTo(t+h,i+e).cubicTo(t+h,i+e,t+h,i+e-h,t,i+e-h).closeSubpath()},function(t,i,s){var e=Gi(s[0]*Ui(t/2,i/2)*Hi(Ni/4));return[e,e,e,e]},function(t,i,s){if(s[0]>1/Hi(Ni/4))return[t,i];var e=0;return t<i?e=(t/(1-s[0]*Hi(Ni/4))-t)/2:t>i&&(e=(i/(1-s[0]*Hi(Ni/4))-i)/2),[t+Gi(2*e),i+Gi(2*e)]}],31:[function(t,i,s,e){this.moveTo(t+s/2,i+e).cubicTo(t-s/2,i+e/4,t+s/4,i-e/3,t+s/2,i+e/4).cubicTo(t+.75*s,i-e/3,t+1.5*s,i+e/4,t+s/2,i+e).closeSubpath()},function(t,i){return[Gi(.2*t),Gi(.25*i),Gi(.2*t),Gi(.35*i)]},function(t,i){return[Gi(5*t/3),Gi(5*i/2)]}],32:[function(t,i,s,e,n){this.moveTo(t+s,i+e).cubicTo(t,i+e,t,i+e/2,t,i+e/2).cubicTo(t,i+e/2,t,i,t+s,i).cubicTo(t+n[0]*s,i,t+n[0]*s,i+e/2,t+n[0]*s,i+e/2).cubicTo(t+n[0]*s,i+e/2,t+n[0]*s,i+e,t+s,i+e).closeSubpath()},function(t,i,s){return[Gi(t*s[0]/3),Gi(i*(1-s[0])/2),Gi(t*(1-s[0])),Gi(i*(1-s[0])/2)]},function(t,i,s){var e=s[0];return e>0?[Gi(t/e*1.5),Gi(i/e)]:[t,i]}],44:[function(t,i,s,e,n){this.moveTo(t,i).lineTo(t+s,i).lineTo(t+s,i+.8*e).lineTo(t+s/2,i+e).lineTo(t,i+.8*e).closeSubpath()},function(t,i){return[0,0,0,.2*i]},function(t,i){return[t,5/4*i]}],46:[function(t,i,s,e,n){this.moveTo(t+s/6,i).lineTo(t,i+e/2).lineTo(t+s/6,i+e).lineTo(t+s-s/6,i+e).cubicTo(t+5/6*s,i+e,t+s,i+e,t+s,i+e/2).cubicTo(t+s,i,t+5/6*s,i,t+5/6*s,i).closeSubpath()},function(t,i){return[t/6,0,t/6,0]},function(t,i){return[3*t/2,i]}],47:[function(t,i,s,e,n){this.moveTo(t+.2*s,i).lineTo(t+s,i).lineTo(t+s,i+e).lineTo(t,i+e).lineTo(t,i+.2*e).closeSubpath()},function(t,i){return[0,.2*i,0,0]},function(t,i){return[t,Gi(5*i/4)]}],48:[function(t,i,s,e,n){var h=as(n[0]*Ui(s,e),0,s);this.moveTo(t,i).lineTo(t+s-h,i).lineTo(t+s,i+e/2).lineTo(t+s-h,i+e).lineTo(t,i+e).closeSubpath()},function(t,i,s){return[0,0,as(s[0]*Ui(t,i),0,t)/2,0]},function(t,i,s){var e=s[0];if(e>0){var n=i,h=t+e*n/2;return h<n&&(h=Gi(2*t/(2-e))),[Gi(h),Gi(n)]}return[t,i]}],49:[function(t,i,s,e,n){this.moveTo(t+s/6,i).cubicTo(t-s/18,i-e/35,t-s/18,i+36*e/35,t+s/6,i+e).lineTo(t+s,i+e).cubicTo(t+7*s/9,i+36*e/35,t+7*s/9,i-e/35,t+s,i).lineTo(t+s/6,i).closeSubpath()},function(t,i){return[t/6,0,t/6,0]},function(t,i){return[3*t/2,i]}],50:[function(t,i,s,e,n){var h=n[1]*s/2,r=n[0]*e/2;h<=0?this.moveTo(t-2*h,i+r).cubicTo(t+s/4-2*h,i-2.5*r,t+3*s/4,i+5*r,t+s,i+r).lineTo(t+s+2*h,i+e-r).cubicTo(t+3*s/4+2.2*h,i+e+2.5*r,t+s/4,i+e-5*r,t,i+e-r).lineTo(t-2*h,i+r):this.moveTo(t,i+r).cubicTo(t+s/4,i-2.5*r,t+3*s/4-2*h,i+5*r,t+s-2*h,i+r).lineTo(t+s,i+e-r).cubicTo(t+3*s/4,i+e+2.5*r,t+s/4+2*h,i+e-5*r,t+2*h,i+e-r).lineTo(t,i+r),this.closeSubpath()},function(t,i,s){var e=s[1]*t/2,n=s[0]*i/2;return[2*Oi(e),2.2*n,2*Oi(e),2.2*n]},function(t,i,s){return[t+2*(t*Oi(s[1])/(1-2*Oi(s[1]))),i+2*(i*s[0]/(1-2.2*s[0]))]}],52:[function(t,i,s,e,n,h){!function(t,i,s,e,n,h,r){var a,o=Pn(r),u=o.cXs,c=o.cYs,f=o.minX,l=o.minY,d=o.maxX,p=o.maxY,v=e/(d-f),m=n/(p-l);for(t.moveTo(i+(u[0]-f)*v,s+(c[0]-l)*m).lineTo(i+(u[1]*h-f)*v,s+(c[1]*h-l)*m),a=1;a<r;++a)t.lineTo(i+(u[2*a]-f)*v,s+(c[2*a]-l)*m).lineTo(i+(u[2*a+1]*h-f)*v,s+(c[2*a+1]*h-l)*m);t.closeSubpath()}(this,t,i,s,e,n[0],h)},function(t,i,s,e){var n=Pn(e),h=n.cXs,r=n.cYs,a=n.minX,o=n.minY,u=n.maxX,c=n.maxY,f=s[0],l=t/(u-a),d=i/(c-o),p=0,v=0;if(5===e)return[p=t-(h[1]*f-a)*l,v=(r[1]*f-o)*d,p,i-(r[5]*f-o)*d];switch(e){case 4:case 6:case 8:p=t-(h[1]*f-a)*l,v=(r[1]*f-o)*d;break;case 12:p=t-(h[3]*f-a)*l,v=(r[3]*f-o)*d;break;case 24:p=t-(h[5]*f-a)*l,v=(r[5]*f-o)*d}return[p,v,p,v]},function(t,i,s,e){var n=s[0],h=0,r=0,a=Pn(e),o=a.cXs,u=a.cYs,c=a.minX,f=a.minY,l=a.maxX,d=a.maxY;if(0==n)return[t,i];if(5==e)return[Gi(t*(l-c)/(-l-c+2*o[1]*n)),Gi(i*(d-f)/((u[5]-u[1])*n))];switch(e){case 4:case 6:case 8:h=Gi((l-o[1]*n)/(-l-c+2*o[1]*n)*t),r=Gi((u[1]*n-f)/(d-f-2*(u[1]*n-f))*i);break;case 12:h=Gi((l-o[3]*n)/(-l-c+2*o[3]*n)*t),r=Gi((u[3]*n-f)/(d-f-2*(u[3]*n-f))*i);break;case 24:h=Gi((l-o[5]*n)/(-l-c+2*o[5]*n)*t),r=Gi((u[5]*n-f)/(d-f-2*(u[5]*n-f))*i)}return[t+2*h,i+2*r]}]},Mn=Ds({$init:function(){this.yu=""},path:function(t){return arguments.length?(this.yu=t,this):this.yu},clear:function(){return this.yu="",this},addPath:function(t){return this.yu+=" "+t,this},moveTo:function(t,i){return this.yu+=" M"+t+","+i,this},lineTo:function(t,i){return this.yu+=" L"+t+","+i,this},arcTo:function(t,i,s,e,n,h){return this.yu+=" A"+t+","+i+" 0 "+(n?1:0)+","+(h?1:0)+" "+s+","+e,this},cubicTo:function(t,i,s,e,n,h){return this.yu+=" C"+t+","+i+" "+s+","+e+" "+n+","+h,this},quadraticTo:function(t,i,s,e){return this.yu+=" Q"+t+","+i+" "+s+","+e,this},closeSubpath:function(){return this.yu+=" Z",this},addEllipse:function(t,i,s,e){return this.moveTo(t-s,i).arcTo(s,e,t+s,i,!0,!0).arcTo(s,e,t-s,i,!0,!0).closeSubpath()},addRect:function(t,i,s,e){return this.moveTo(t,i).lineTo(t+s,i).lineTo(t+s,i+e).lineTo(t,i+e).closeSubpath()},addRoundedRect:function(t,i,s,e,n,h){return this.moveTo(t,i+h).arcTo(n,h,t+n,i,!1,!0).lineTo(t+s-n,i).arcTo(n,h,t+s,i+h,!1,!0).lineTo(t+s,i+e-h).arcTo(n,h,t+s-n,i+e,!1,!0).lineTo(t+n,i+e).arcTo(n,h,t,i+e-h,!1,!0).closeSubpath()},addMarker:function(t,i,s){var e,n,h;switch(n=(0==(e=i%3)?2:1==e?3:5)*s,h=(0==(e=Vi(i/3))?2:1==e?3:5)*s,t){case rt.ARROW:this.moveTo(0,0).lineTo(n,-h/2).lineTo(n,h/2).closeSubpath();break;case rt.OPEN:var r=Xi(h/2,n),a=Vi(s/Bi(r)/2);this.moveTo(n+a,-h/2).lineTo(a,0).lineTo(n+a,h/2);break;case rt.STEALTH:this.moveTo(0,0).lineTo(n,-h/2).lineTo(n/2,0).lineTo(n,h/2).closeSubpath();break;case rt.DIAMOND:this.moveTo(-n/2,0).lineTo(0,-h/2).lineTo(n/2,0).lineTo(0,h/2).closeSubpath();break;case rt.OVAL:this.addEllipse(0,0,n/2,h/2)}return this}});function Cn(t,i,s,e,n,h,r){var a=h[0],o=h[1],u=i+e/2*(1+a),c=s+n/2*(1+o),f=r?.2*Ui(e,n):0;t.moveTo(i+f,s),a<=0&&o<=0&&Oi(a)<=Oi(o)?(t.lineTo(i+.2*e,s).lineTo(u,c).lineTo(i+.4*e,s).lineTo(i+e-f,s),r&&t.arcTo(f,f,i+e,s+f,!1,!0),t.lineTo(i+e,s+n-f),r&&t.arcTo(f,f,i+e-f,s+n,!1,!0),t.lineTo(i+f,s+n),r&&t.arcTo(f,f,i,s+n-f,!1,!0),t.lineTo(i,s+f),r&&t.arcTo(f,f,i+f,s,!1,!0)):a<=0&&o<=0&&Oi(a)>Oi(o)?(t.lineTo(i+e-f,s),r&&t.arcTo(f,f,i+e,s+f,!1,!0),t.lineTo(i+e,s+n-f),r&&t.arcTo(f,f,i+e-f,s+n,!1,!0),t.lineTo(i+f,s+n),r&&t.arcTo(f,f,i,s+n-f,!1,!0),t.lineTo(i,s+4*n/10).lineTo(u,c).lineTo(i,s+2*n/10),r&&t.arcTo(f,f,i+f,s,!1,!0)):a>0&&o<=0&&Oi(a)<=Oi(o)?(t.lineTo(i+6*e/10,s).lineTo(u,c).lineTo(i+8*e/10,s).lineTo(i+e-f,s),r&&t.arcTo(f,f,i+e,s+f,!1,!0),t.lineTo(i+e,s+n-f),r&&t.arcTo(f,f,i+e-f,s+n,!1,!0),t.lineTo(i+f,s+n),r&&t.arcTo(f,f,i,s+n-f,!1,!0),t.lineTo(i,s+f),r&&t.arcTo(f,f,i+f,s,!1,!0)):a>0&&o<=0&&Oi(a)>Oi(o)?(t.lineTo(i+e-f,s),r&&t.arcTo(f,f,i+e,s+f,!1,!0),t.lineTo(i+e,s+2*n/10).lineTo(u,c).lineTo(i+e,s+4*n/10).lineTo(i+e,s+n-f),r&&t.arcTo(f,f,i+e-f,s+n,!1,!0),t.lineTo(i+f,s+n),r&&t.arcTo(f,f,i,s+n-f,!1,!0),t.lineTo(i,s+f),r&&t.arcTo(f,f,i+f,s,!1,!0)):a<=0&&o>0&&Oi(a)>Oi(o)?(t.lineTo(i+e-f,s),r&&t.arcTo(f,f,i+e,s+f,!1,!0),t.lineTo(i+e,s+n-f),r&&t.arcTo(f,f,i+e-f,s+n,!1,!0),t.lineTo(i+f,s+n),r&&t.arcTo(f,f,i,s+n-f,!1,!0),t.lineTo(i,s+.8*n).lineTo(u,c).lineTo(i,s+6*n/10).lineTo(i,s+f),r&&t.arcTo(f,f,i+f,s,!1,!0)):a<=0&&o>0&&Oi(a)<=Oi(o)?(t.lineTo(i+e-f,s),r&&t.arcTo(f,f,i+e,s+f,!1,!0),t.lineTo(i+e,s+n-f),r&&t.arcTo(f,f,i+e-f,s+n,!1,!0),t.lineTo(i+4*e/10,s+n).lineTo(u,c).lineTo(i+2*e/10,s+n).lineTo(i+f,s+n),r&&t.arcTo(f,f,i,s+n-f,!1,!0),t.lineTo(i,s+f),r&&t.arcTo(f,f,i+f,s,!1,!0)):a>0&&o>0&&Oi(a)>Oi(o)?(t.lineTo(i+e-f,s),r&&t.arcTo(f,f,i+e,s+f,!1,!0),t.lineTo(i+e,s+6*n/10).lineTo(u,c).lineTo(i+e,s+.8*n).lineTo(i+e,s+n-f),r&&t.arcTo(f,f,i+e-f,s+n,!1,!0),t.lineTo(i+f,s+n),r&&t.arcTo(f,f,i,s+n-f,!1,!0),t.lineTo(i,s+f),r&&t.arcTo(f,f,i+f,s,!1,!0)):a>0&&o>0&&Oi(a)<=Oi(o)&&(t.lineTo(i+e-f,s),r&&t.arcTo(f,f,i+e,s+f,!1,!0),t.lineTo(i+e,s+n-f),r&&t.arcTo(f,f,i+e-f,s+n,!1,!0),t.lineTo(i+.8*e,s+n).lineTo(u,c).lineTo(i+6*e/10,s+n).lineTo(i+f,s+n),r&&t.arcTo(f,f,i,s+n-f,!1,!0),t.lineTo(i,s+f),r&&t.arcTo(f,f,i+f,s,!1,!0)),t.closeSubpath()}var In={};function Pn(t){var i=In[t];if(!i){var s,e=[],n=[],h=1,r=1,a=-1,o=-1;for(s=0;s<t;s++)e[2*s]=Hi(2*Ni*s/t-Ni/2),n[2*s]=Bi(2*Ni*s/t-Ni/2),e[2*s]<h&&(h=e[2*s]),n[2*s]<r&&(r=n[2*s]),e[2*s]>a&&(a=e[2*s]),n[2*s]>o&&(o=n[2*s]),e[2*s+1]=Hi(2*Ni*((2*s+1)/2)/t-Ni/2),n[2*s+1]=Bi(2*Ni*((2*s+1)/2)/t-Ni/2);i=In[t]={cXs:e,cYs:n,minX:h,minY:r,maxX:a,maxY:o}}return i}function Rn(t){var i;try{i=t.getBBox()}catch(t){i={x:0,y:0,width:0,height:0}}return{x:i.x,y:i.y,width:i.width,height:i.height}}var An=se.browser.ie||se.browser.edge,Dn=Ds(Ie,{$init:function(t,i){this.parent=i,this.slide=i.slide,this.container=t,this.Tu=vt.dt,this.Xr="none",this.Gr=1,this.xu="black",this.Su=1,this.Eu="round",this.os=0,this.ea=[]},path:function(t){var i,s=null;if(t)for(s=[],i=0;i<t.length;++i)if(i<2)s.push(t[i].slice());else for(var e=t[i],n=0;n<e.length;++n){var h=e[n];if(h){var r=h.p;s.push(r.slice()),s[s.length-1].f=h.f}}this.Mu=s,this.Oe()?this.Cu():this.Iu()&&this.pn()},shape:function(t,i){this.os=t,this.ea=i,this.Oe()?this.Cu():this.Iu()&&this.pn()},lineStyle:function(t){if(typeof t!==Ri&&(t=t&at?"solid":t&ot?"dotted":t&ut?"dashed":t&ct?"dash-dotted":"none"),this.Xr=t,"none"===t)this.Pu?this.Pu.style.display=t:this.Ru&&(this.Ru.style.stroke=t),this.Au();else if(this.Oe()){this.Pu?this.Pu.style.display="":this.Ru&&(this.Ru.style.stroke=this.xu||"black");var i="none",s=this.Gr||0;switch(t){case"solid":i="none";break;case"dotted":i="0.01 "+2*s;break;case"dashed":i=2*s+" "+2*s;break;case"dash-dotted":case"dot-dashed":i=2*s+" "+2*s+" 0 "+2*s;break;default:i=t}this.Ru&&(this.Ru.style.strokeDasharray=i),this.Au()}else this.Iu()&&this.pn()},lineJoin:function(t){typeof t!==Ri&&(t=t&dt?"round":t&pt?"bevel":"miter"),this.Du=t,this.Ru&&(this.Ru.style.strokeLinejoin=t)},lineCap:function(t){if(typeof t!==Ri){var i="butt";t&ft?i="square":t&lt&&(i="round"),t=i}this.Eu=t,this.Ru&&(this.Ru.style.strokeLinecap=t)},lineWidth:function(t){this.Gr=t,this.Oe()?(this.Au(),this.Nu()&&this.Cu(),this.Ru&&(this.Ru.style.strokeWidth=t),this.hasArrow()&&(this.Cu(),this.Ou&&(this.Ou.style.strokeWidth=t),this.Lu&&(this.Lu.style.strokeWidth=t)),"none"!==this.Xr&&this.lineStyle(this.Xr)):this.Iu()&&this.pn()},Au:function(){if(this.shapeNode){var t=this.Gr%2/2;t&&"none"!==this.Xr?this.shapeNode.setAttribute("transform","translate("+t+", "+t+")"):this.shapeNode.removeAttribute("transform")}},lineColor:function(t,i,s,e){var n;typeof t===Ri?(this.xu=t,e=i):this.xu=ws(t,i,s),this.Su=void 0===e?1:e,this.Pu?(this.Pu.style.opacity=this.Su,this.Ru.style.stroke=this.xu,this.Ou&&(n=this.Ou.style,this.Fu&&this.Fu.type!==rt.NONE?this.Fu.type===rt.OPEN?(n.stroke=this.xu,n.fill="none"):(n.stroke="none",n.fill=this.xu):n.stroke=n.fill="none"),this.Lu&&(n=this.Lu.style,this.Uu&&this.Uu.type!==rt.NONE?this.Uu.type===rt.OPEN?(n.stroke=this.xu,n.fill="none"):(n.stroke="none",n.fill=this.xu):n.stroke=n.fill="none")):this.Ru&&("none"!==this.Xr&&(this.Ru.style.stroke=this.xu),this.Ru.style.strokeOpacity=this.Su)},startArrow:function(t,i){this.Fu={type:t,size:i},this.Oe()?(this.Cu(),this.lineColor(this.xu,this.Su)):this.Iu()&&this.pn()},endArrow:function(t,i){this.Uu={type:t,size:i},this.Oe()?(this.Cu(),this.lineColor(this.xu,this.Su)):this.Iu()&&this.pn()},fillNone:function(){this.Tu=vt.dt,this.Yu(),this.Jr&&(!this.Mu||function(t){for(var i=[],s=0,e=t.length;s<e;++s){var n=t[s];n&&(i=i.concat(n))}return function(t){var i=t.length;if(i>1&&t[i-1][6])return t[i-1][6]&&2==t[i-1][6];return!1}(i)}(this.Mu)?(this.Jr.style.fill="white",this.Jr.style.fillOpacity=0):this.Jr.style.fill="none")},fillSolid:function(t,i,s,e){this.Tu=vt.pt,this.Yu(),typeof t===Ri?(this.Hu=t,e=i):this.Hu=ws(t,i,s),this.Bu=void 0===e?1:e,this.Oe()?(this.Jr.style.fill=this.Hu,this.Jr.style.fillOpacity=this.Bu):this.Iu()&&this.pn()},fillLinearGradient:function(t,i,s,e){if(this.Tu=vt.bt,this.zu=i,this.Xu=t,this.Gu=s,this.Vu=e,this.Yu(),this.Oe()){if(!this.$u){this.$u=Ji.createElementNS(Ai,"linearGradient"),this.$u.id=this.container.id?this.container.id+"-lgrad":"ap-lgrad-"+te(),this.$u.setAttribute("gradientUnits",Di);var n=this.node.querySelector("defs");n||(n=Ji.createElementNS(Ai,"defs"),this.node.appendChild(n)),n.appendChild(this.$u)}this.Jr.style.fill="url(#"+this.$u.id+")",this.Jr.style.fillOpacity=1,this.fillAngle(i),this.fillColorStops(t),this.fillLinearGradientTransform(s,e)}else this.Iu()&&this.pn()},fillRadialGradient:function(t,i,s,e,n){if(this.Tu=vt.wt,this.Xu=t,this.Wu=i,this.ju=s,this.Qu=e,this.Ku=n,this.Yu(),this.Oe()){if(!this.qu){this.qu=Ji.createElementNS(Ai,"radialGradient"),this.qu.id=this.container.id?this.container.id+"-rgrad":"ap-rgrad-"+te(),this.qu.setAttribute("gradientUnits",Di);var h=this.node.querySelector("defs");h||(h=Ji.createElementNS(Ai,"defs"),this.node.appendChild(h)),h.appendChild(this.qu)}this.Jr.style.fill="url(#"+this.qu.id+")",this.Jr.style.fillOpacity=1;var r=Rn(this.node),a=r.x+r.width/2,o=r.y+r.height/2,u=Li(r.width*r.width/4+r.height*r.height/4);bs(this.qu,{cx:a,cy:o,r:u}),this.fillColorStops(t),this.fillRadialGradientTransform(i,s,e,n)}else this.Iu()&&this.pn()},fillAngle:function(t){if((t%=360)<0&&(t+=360),this.zu=t,this.Tu===vt.bt&&this.$u){var i,s,e,n,h=zi(t*Ni/180),r=1+h*h,a=Rn(this.node);t<90?(i=a.x,s=a.y,e=a.x+a.width,n=a.y+a.height):t<180?(e=a.x,n=a.y+a.height,i=a.x+a.width,s=a.y):t<270?(e=a.x,n=a.y,i=a.x+a.width,s=a.y+a.height):(i=a.x,s=a.y+a.height,e=a.x+a.width,n=a.y),bs(this.$u,{x1:(i+h*s)/r,y1:(i+h*s)*h/r,x2:(e+h*n)/r,y2:(e+h*n)*h/r}),this.fillLinearGradientTransform(this.Gu,this.Vu)}},fillColorStops:function(t){var i,s,e,n,h,r,a;if(this.Xu=t,this.Tu===vt.bt?i=this.$u:this.Tu===vt.wt&&(i=this.qu),i){for(;s=i.lastChild;)i.removeChild(s);for(n=0,h=t.length;n<h;++n)e=t[n],s=Ji.createElementNS(Ai,"stop"),typeof e[1]===Ri?(r=e[1],a=e[2]):(r=ws(e[1],e[2],e[3]),a=e[4]),void 0===a&&(a=1),bs(s,{offset:e[0]+"%","stop-color":r,"stop-opacity":a}),i.appendChild(s)}},fillLinearGradientTransform:function(t,i){if(this.Tu===vt.bt&&this.$u){this.Gu=t,this.Vu=i;var s,e,n,h=Rn(this.node),r=this.$u,a="";0!=t&&(s=this.zu*Ni/180,a+="translate("+h.width*t/100*Hi(s)+", "+h.width*t/100*Bi(s)+")"),100!=i&&(e=h.width/2,n=h.height/2,""!=a&&(a+=" "),a+="translate("+e+", "+n+") scale("+i/100+") translate("+-e+", "+-n+")"),a?r.setAttribute("gradientTransform",a):r.removeAttribute("gradientTransform")}},fillRadialGradientTransform:function(t,i,s,e){if(this.Tu===vt.wt&&this.qu){this.Wu=t,this.Qu=s,this.ju=i,this.Ku=e;var n,h,r=Rn(this.node),a=this.qu,o="";0==t&&0==i||(o="translate("+r.width*t/100+", "+r.height*i/100+")"),100==s&&100==e||(n=r.x+r.width/2,h=r.y+r.height/2,""!=o&&(o+=" "),o+="translate("+n+", "+h+") scale("+s/100+","+e/100+") translate("+-n+", "+-h+")"),o?a.setAttribute("gradientTransform",o):a.removeAttribute("gradientTransform")}},fillImage:function(t,i,e,n,h){if(this.Tu=vt.u,this.Ju=t,this.Zu=i,this.tc=e,this.ic=n,this.sc=h,this.Yu(),this.Oe()){if(!this.ec){this.ec=Ji.createElementNS(Ai,"pattern"),this.nc=Ji.createElementNS(Ai,"image"),this.ec.appendChild(this.nc),bs(this.ec,{id:this.container.id?this.container.id+"-imgfill":"ap-imgfill-"+te(),patternUnits:"userSpaceOnUse"});var r=this.node.querySelector("defs");r||(r=Ji.createElementNS(Ai,"defs"),this.node.appendChild(r)),r.appendChild(this.ec)}var a=this.parent.prez().getResource(t+"."+i);if(this.nc.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a),e===bt)if((d=this.parent)._s.t!==s.q)bs(this.ec,{width:"100%",height:"100%"}),bs(this.nc,{width:"100%",height:"100%",preserveAspectRatio:"none"});else{var o=d.slide;if(o){var u=-d.node.offsetLeft,c=-d.node.offsetTop,f=o.Yh,l=o.Hh;bs(this.ec,{x:u+"px",y:c+"px",width:f+"px",height:l+"px"}),bs(this.nc,{width:f+"px",height:l+"px",preserveAspectRatio:"none"})}}else if(e===mt){var d;(d=this.parent)._s.t!==s.q?(bs(this.ec,{width:n+"px",height:h+"px"}),bs(this.nc,{width:n+"px",height:h+"px",preserveAspectRatio:"none"})):(bs(this.ec,{x:-d.node.offsetLeft+"px",y:-d.node.offsetTop+"px",width:n+"px",height:h+"px"}),bs(this.nc,{width:n+"px",height:h+"px",preserveAspectRatio:"none"}))}this.Jr.style.fill="url(#"+this.ec.id+")",this.Jr.style.fillOpacity=1}else this.Iu()&&this.pn()},hc:function(){switch(this.Tu){case vt.dt:this.fillNone();break;case vt.pt:this.fillSolid(this.Hu,this.Bu);break;case vt.bt:this.fillLinearGradient(this.Xu,this.zu,this.Gu,this.Vu);break;case vt.wt:this.fillRadialGradient(this.Xu,this.Wu,this.ju,this.Qu,this.Ku);break;case vt.u:this.fillImage(this.Ju,this.Zu,this.tc,this.ic,this.sc)}},applyEffectShadow:function(t,i,s,e,n,h,r){this.rc=t,this.ac=i,this.oc=s,this.uc=e,this.fc=n,this.lc=h,this.dc=ws(e,n,h),this.pc=r,this.Yu();var a,o=s*Hi(i/180*Ni),u=s*Bi(i/180*Ni);if(se.browser.useCSSShadow&&(a="drop-shadow("+o+"px "+u+"px "+t/3+"px "+ws(e,n,h,r)+")",this.parent.node.style.filter=a,this.parent.node.style.WebkitFilter=a),this.Oe()){if(se.browser.useCSSShadow)return;if(this.Ia(this.vc,this.mc,this.bc),this.shapeNode.removeAttribute("filter"),this.wc)(c=this.node.querySelector("defs"))&&c.removeChild(this.wc),delete this.wc,delete this.gc,delete this._c,delete this.kc,delete this.yc,delete this.Tc;An&&this.xc&&(this.shapeNode.removeChild(this.xc),delete this.xc),this.wc=Ji.createElementNS(Ai,"filter"),this.wc.id=this.container.id?this.container.id+"-dropshadow":"ap-dropshadow-"+te(),this.gc=Ji.createElementNS(Ai,"feFlood"),this._c=Ji.createElementNS(Ai,"feComposite"),this.kc=Ji.createElementNS(Ai,"feOffset"),this.yc=t>0?Ji.createElementNS(Ai,"feGaussianBlur"):null,this.Tc=Ji.createElementNS(Ai,"feComposite");var c,f=this.wc;f.appendChild(this.gc),f.appendChild(this._c),f.appendChild(this.kc),t>0&&f.appendChild(this.yc),f.appendChild(this.Tc),(c=this.node.querySelector("defs"))||(c=Ji.createElementNS(Ai,"defs"),this.node.appendChild(c)),c.appendChild(f);var l,d,p,v,m=Rn(this.node);if(v=this.Gr+("miter"==this.Du?10:0),m.x-=v,m.y-=v,m.width+=2*v,m.height+=2*v,l={x:m.x-t+o,y:m.y-t+u,width:m.width+2*t,height:m.height+2*t},d=Math.min(m.x,l.x),p=Math.min(m.y,l.y),e=Math.max(m.x+m.width,l.x+l.width),h=Math.max(m.y+m.height,l.y+l.height),An){this.xc=Ji.createElementNS(Ai,"path");var b=new Mn;b.addRect(d,p,e-d,h-p),this.xc.setAttribute("d",b.path()),this.shapeNode.appendChild(this.xc)}bs(this.wc,{id:this.container.id?this.container.id+"-dropshadow":"ap-dropshadow-"+te(),filterUnits:Di,primitiveUnits:Di,style:"color-interpolation-filters:sRGB",x:d,y:p,width:e-d,height:h-p}),bs(this.gc,{result:"flood","flood-color":this.dc,"flood-opacity":this.pc}),bs(this._c,{result:"composite1",operator:"in",in2:"SourceGraphic",in:"flood"}),bs(this.kc,{result:"offset",in:"composite1",dx:o,dy:u}),this.yc&&bs(this.yc,{result:"blur",in:"offset",stdDeviation:t/3}),bs(this.Tc,{result:"composite2",operator:"over",in2:t>0?"blur":"offset",in:"SourceGraphic"}),this.shapeNode.setAttribute("filter","url(#"+this.wc.id+")")}else this.Iu()&&this.pn()},clearEffectShadow:function(){if(void 0!=this.rc)if(delete this.rc,delete this.ac,delete this.oc,delete this.uc,delete this.fc,delete this.lc,delete this.dc,delete this.pc,se.browser.useCSSShadow)this.parent.node.style.filter="";else{if(this.shapeNode.removeAttribute("filter"),this.wc){var t=this.node.querySelector("defs");t&&t.removeChild(this.wc),delete this.wc,delete this.gc,delete this._c,delete this.kc,delete this.yc,delete this.Tc}An&&this.xc&&(this.shapeNode.removeChild(this.xc),delete this.xc),this.Ia(),this.Yu()}},Sc:function(){void 0==this.rc?this.clearEffectShadow():this.applyEffectShadow(this.rc,this.ac,this.oc,this.uc,this.fc,this.lc,this.pc)},Ia:function(t,i,s){if(this.vc=t,this.mc=i,this.bc=s,this.Oe()){if(se.browser.useCSSShadow)return;if(void 0!=this.vc&&void 0!=this.rc){this.Ec||(this.Ec=Ji.createElementNS(Ai,"image"));var e=this.Ec,n=this.parent.prez().getResource(t+"."+i);this.shapeNode.appendChild(e),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n),bs(e,{x:"0",y:"0",width:"100%",height:"100%",opacity:s/255,preserveAspectRatio:"none"}),this.parent.imageNode&&(this.parent.imageNode.style.display="none")}else this.Ec&&(this.shapeNode.removeChild(this.Ec),delete this.Ec,this.parent.imageNode&&(this.parent.imageNode.style.display="block"))}else this.Iu()&&this.pn()},Yu:function(){if(!se.browser.useCSSShadow){var t,i=void 0!=this.rc&&this.Tu==vt.dt,s=this.parent.textContainer;if(s)if(t=s.style,i){var e=this.oc*Math.cos(this.ac/180*Math.PI),n=this.oc*Math.sin(this.ac/180*Math.PI),h=this.dc.substring(4,this.dc.length-1).replace(/ /g,"").split(","),r="rgba("+h[0]+", "+h[1]+", "+h[2]+", "+this.pc+")";t.textShadow=e+"px "+n+"px "+this.rc+"px "+r}else t.textShadow=""}},cursor:function(t){this.pr=t,this.shapeNode&&(this.shapeNode.style.cursor=t)},layout:function(){if(this.Cu(),this.Mc){var t=this.container.clientHeight;this.Mc.translate(0,t/2)}this.Tu!==vt.bt&&this.Tu!==vt.wt&&this.Tu!=vt.u||this.hc(),this.Sc()},remove:function(){this.node&&(this.container.removeChild(this.node),this.node=this.shapeNode=this.Pu=this.Ru=this.Ou=this.Lu=this.Jr=null)},textMargin:function(t,i){var s=[0,0,0,0],e=En[this.os];return e&&e[1]&&(s=e[1].apply(null,[t,i].concat(this.ea))),s},shapeSizeForText:function(t,i){var s=[t,i],e=En[this.os];return e&&e[2]&&(s=e[2].apply(null,[t,i].concat(this.ea))),s},createIcon:function(t,i,s,e,n,h,r){this.Oe()||this.pn(),this.Cc={checked:t,iconSize:i,iconType:s,colorCheckMark:r,colorFill:n,colorBorder:h,borderWidth:e},this.Mc||(this.Mc={init:function(){this.border=Ji.createElementNS(Ai,"path"),this.fill=Ji.createElementNS(Ai,"path"),this.mark=Ji.createElementNS(Ai,"path")},appendTo:function(t){t.appendChild(this.border),t.appendChild(this.fill),t.appendChild(this.mark)},translate:function(t,i){this.border.setAttribute("transform","translate("+t+","+i+")"),this.fill.setAttribute("transform","translate("+t+","+i+")"),this.mark.setAttribute("transform","translate("+t+","+i+")")}},this.Mc.init(),this.Mc.appendTo(this.shapeNode))},updateIcon:function(){if(this.Mc&&this.Cc){var t=this.parent._s.k;t==i.N?this.Ic():t==i.O&&this.Pc()}},Ic:function(){var t=this.Cc.iconSize/16,i=this.Cc.iconSize-4*Vi(Yi(t,1)+.5),s=Vi(Ui(-7,-this.Cc.iconSize/4))-2*Vi(Yi(t,1)+.5),e=i/2,n=new Mn;n.addRect(-s,-e,i,i).addRect(-s-this.Cc.borderWidth,-e-this.Cc.borderWidth,i+2*this.Cc.borderWidth,i+2*this.Cc.borderWidth),this.Mc.border.style.fillRule="evenodd",this.Mc.border.style.fill=this.Cc.colorBorder,this.Mc.border.setAttribute("d",n.path());var h=new Mn;if(h.addRect(-s,-e,i,i),this.Mc.fill.style.fill=this.Cc.colorFill,this.Mc.fill.setAttribute("d",h.path()),this.Cc.checked){24==this.la&&(this.Rc==st?(++e,++s):this.Rc==nt&&++e);var r=new Mn;switch(this.Cc.iconType){case st:r.moveTo(2.5*t-s,5*t-e).lineTo(4.5*t-s,7*t-e).lineTo(9.5*t-s,2*t-e).lineTo(11*t-s,3.5*t-e).lineTo(4.5*t-s,10*t-e).lineTo(1*t-s,6.5*t-e);break;case et:r.moveTo(2.5*t-s,5*t-e).lineTo(4.5*t-s,7*t-e).lineTo(14.5*t-s,-3*t-e).lineTo(16*t-s,-1.5*t-e).lineTo(4.5*t-s,10*t-e).lineTo(1*t-s,6.5*t-e);break;case nt:r.moveTo(3*t-s,5*t-e).lineTo(4.5*t-s,8*t-e).lineTo(13.5*t-s,-2*t-e).lineTo(16*t-s,-.5*t-e).lineTo(4.5*t-s,11*t-e).lineTo(0*t-s,6.5*t-e)}this.Mc.mark.style.fill=this.Cc.colorCheckMark,this.Mc.mark.setAttribute("d",r.path())}else this.Mc.mark.setAttribute("d","")},Pc:function(){var t,i,s,e=this.Cc.iconSize/16,n=this.Cc.iconSize/2,h=n+Yi(Vi(this.Cc.iconSize/4),7);switch(this.Cc.iconType){case st:t=n-2*e,i=n-4*e;break;case et:t=n-2*e,i=n-3*e;break;case nt:t=n-2*e,i=n-2*e}s=n-2*e+this.Cc.borderWidth;var r=new Mn;r.addEllipse(h,0,s-this.Cc.borderWidth,s-this.Cc.borderWidth).addEllipse(h,0,s,s),this.Mc.border.style.fillRule="evenodd",this.Mc.border.style.fill=this.Cc.colorBorder,this.Mc.border.setAttribute("d",r.path());var a=new Mn;if(a.addEllipse(h,0,t,t),this.Mc.fill.style.fill=this.Cc.colorFill,this.Mc.fill.setAttribute("d",a.path()),this.Cc.checked){var o=new Mn;o.addEllipse(h,0,i,i),this.Mc.mark.style.fill=this.Cc.colorCheckMark,this.Mc.mark.setAttribute("d",o.path())}else this.Mc.mark.setAttribute("d","")},Iu:function(){return(this.Mu||void 0!==this.os)&&("none"!==this.Xr||this.Tu!==vt.dt||void 0!=this.rc&&void 0!=this.vc)},Oe:function(){var t=!1;return this.hasArrow()?this.Pu&&(t=!0):this.shapeNode&&(t=!0),t},pn:function(){var t,i=!1;if(!this.node){var s=Ji.createElementNS(Ai,"svg");(t=s.style).width="100%",t.height="100%",t.minWidth="1px",t.minHeight="1px",t.position="absolute",t.overflow="visible",t.top=0,t.left=0,this.container.insertBefore(s,this.container.firstChild),this.node=s}if(this.hasArrow())this.Pu||(i=!0,this.shapeNode&&this.node.removeChild(this.shapeNode),this.shapeNode=Ji.createElementNS(Ai,"g"),this.Jr=Ji.createElementNS(Ai,"path"),this.Jr.style.stroke="none",this.shapeNode.appendChild(this.Jr),this.Pu=Ji.createElementNS(Ai,"g"),this.Ru=Ji.createElementNS(Ai,"path"),this.Ru.style.fill="none",this.Pu.appendChild(this.Ru),this.Ou=Ji.createElementNS(Ai,"path"),(t=this.Ou.style).strokeLinecap="round",t.strokeLinejoin="miter",this.Pu.appendChild(this.Ou),this.Lu=Ji.createElementNS(Ai,"path"),(t=this.Lu.style).strokeLinecap="round",t.strokeLinejoin="miter",this.Pu.appendChild(this.Lu),this.shapeNode.appendChild(this.Pu),this.node.appendChild(this.shapeNode));else if(this.Mu&&this.Mu.length){if(!this.Pu){if(i=!0,this.shapeNode&&this.node.removeChild(this.shapeNode),this.shapeNode=Ji.createElementNS(Ai,"g"),this.Jr=Ji.createElementNS(Ai,"path"),this.Jr.style.stroke="none",this.shapeNode.appendChild(this.Jr),this.Mu.length>2){this.Ac=[];for(var e=0;e<this.Mu.length;++e)if(!(e<2)){var n=this.Mu[e];if(n){var h=Ji.createElementNS(Ai,"path");h.style.fill=n.f,h.style.stroke="none",this.shapeNode.appendChild(h),this.Ac.push(h)}}}this.Ru=Ji.createElementNS(Ai,"path"),this.Ru.style.fill="none",this.shapeNode.appendChild(this.Ru),this.node.appendChild(this.shapeNode)}}else this.shapeNode||(i=!0,this.shapeNode=Ji.createElementNS(Ai,"g"),this.Jr=this.Ru=Ji.createElementNS(Ai,"path"),this.shapeNode.appendChild(this.Jr),this.node.appendChild(this.shapeNode));i&&((t=this.shapeNode.style).pointerEvents="visiblePainted",t.strokeMiterlimit=10,t.fill=t.stroke="none",this.Cu(),void 0!==this.Du&&this.lineJoin(this.Du),void 0!==this.Eu&&this.lineCap(this.Eu),this.lineWidth(this.Gr),this.lineColor(this.xu,this.Su),this.lineStyle(this.Xr),this.hc(),this.Sc(),void 0!==this.pr&&this.cursor(this.pr))},hasArrow:function(){return this.Dc()&&(this.Fu&&this.Fu.type!==rt.NONE||this.Uu&&this.Uu.type!==rt.NONE)},Dc:function(){return this.Mu&&this.Mu.length>0&&this.Mu[1]&&this.Mu[1].length>1&&this.Gr},Nc:function(){var t=this.container.clientWidth,i=this.container.clientHeight,s=new Mn,e={fill:"",line:"",startArrow:"",startArrowTransform:"",endArrow:"",endArrowTransform:""};if(!t&&!i)return e;if(this.Mu){var n=this.Mu;if(void 0===n.w){var h=function(t){var i=new Mn,s=Ji.createElementNS(Ai,"svg"),e=Ji.createElementNS(Ai,"path"),n=s.style;n.position="absolute",n.top=n.left="-10000px",n.visibility="hidden";for(var h=0,r=t.length;h<r;++h){var a=t[h];a&&Nn(i,a)}e.setAttribute("d",i.path()),s.appendChild(e),Ji.body.appendChild(s);var o=Rn(e);return Ji.body.removeChild(s),o}(n);n.w=h.width,n.h=h.height}e.w===t&&e.h===i||(n=function(t,i,s){for(var e=[],n=0,h=t.length;n<h;++n){var r=t[n];if(r){var a=On(r,i,s);e.push(a)}}return e}(n,n.w?t/n.w:1,n.h?i/n.h:1));for(var r=0,a=n.length;r<a;++r){s.clear();var o,u,c,f,l,d,p=n[r];1==r&&this.Dc()&&(this.Fu&&this.Fu.type!==rt.NONE&&(o=p[0].slice(),c=Xi(o[5]-o[1],o[4]-o[0]),(d=new Mn).addMarker(this.Fu.type,this.Fu.size,this.Gr),e.startArrow=d.path(),e.startArrowTransform="translate("+o[0]+","+o[1]+") rotate("+180*c/Ni+")",f=Ln(this.Fu.type,this.Fu.size,this.Gr),p[0][0]+=f*Hi(c),p[0][1]+=f*Bi(c)),this.Uu&&this.Uu.type!==rt.NONE&&(u=p[l=p.length-1].slice(),c=Xi(u[3]-u[1],u[2]-u[0]),(d=new Mn).addMarker(this.Uu.type,this.Uu.size,this.Gr),e.endArrow=d.path(),e.endArrowTransform="translate("+u[0]+","+u[1]+") rotate("+180*c/Ni+")",f=Ln(this.Uu.type,this.Uu.size,this.Gr),p[l][0]+=f*Hi(c),p[l][1]+=f*Bi(c))),Nn(s,p),o&&(p[0]=o),u&&(p[l]=u),1==r&&(e.line=s.path()),(o||u)&&(s.clear(),Nn(s,p)),0==r&&(e.fill=s.path()),r>=2&&(e.decorators||(e.decorators=[]),e.decorators.push(s.path()))}}else{var v=En[this.os];if(v&&v[0])if(this.Nu()){var m="none"!==this.Xr?this.Gr:0,b=m%2==0?0:1,w=Vi(m/2);v[0].apply(s,[-w-b,-w-b,t+2*w+b,i+2*w+b].concat(this.ea))}else v[0].apply(s,[0,0,t,i].concat(this.ea));e.fill=e.line=s.path()}return e},Cu:function(){var t=this.Nc();if(this.Jr){var e=this.parent;if(e._s.t===s.q){var n=this.slide;if(n){var h={x:-e.node.offsetLeft,y:-e.node.offsetTop,width:n.Yh,height:n.Hh},r=new Mn;r.addRect(h.x,h.y,h.width,h.height),t.fill&&(t.fill+=r.path())}}12===this.os||this.Ac&&this.Ac.length||(this.Jr.style.fillRule="evenodd"),this.Jr.setAttribute("d",t.fill)}if(this.Ru!==this.Jr&&this.Ru.setAttribute("d",t.line),this.Ou&&(this.Ou.setAttribute("d",t.startArrow),t.startArrowTransform?this.Ou.setAttribute("transform",t.startArrowTransform):this.Ou.removeAttribute("transform")),this.Lu&&(this.Lu.setAttribute("d",t.endArrow),t.endArrowTransform?this.Lu.setAttribute("transform",t.endArrowTransform):this.Lu.removeAttribute("transform")),this.parent._s.k==i.U&&this.Zr){var a=this.Zr.querySelector("rect"),o="none"!==this.Xr?this.Gr:0,u=o%2==0?0:1,c=Vi(o/2),f=this.container.clientWidth,l=this.container.clientHeight;a&&(a.setAttribute("x",-o),a.setAttribute("y",-o),a.setAttribute("width",f+2*o),a.setAttribute("height",l+2*o));var d=this.Zr.querySelector("path");if(d){var p=new Mn,v=En[this.os],m=this.parent._s.tmp.duration,b=(this.parent._s.tmp.countdown?m-this.parent.Qr:this.parent.Qr)/m;f=f-2*c-2*u,l=l-2*c-2*u;v&&v[0]&&(v[0].apply(p,[f*b+u+c,c+u,f-f*b,l].concat(this.ea)),d.setAttribute("d",p.path()))}}if(this.Ac&&this.Ac.length>0&&t.decorators&&t.decorators.length==this.Ac.length)for(var w=0;w<this.Ac.length;++w)this.Ac[w].setAttribute("d",t.decorators[w])},Nu:function(){var t=this.parent._s.k;return t==i.u||t==i.N||t==i.O},offsetPosition:function(){return{x:0,y:0}},offsetSize:function(){return this.node?this.parent.offsetSize():{width:0,height:0}},contentBox:function(){if(!this.node)return{x:0,y:0,width:0,height:0};var t=Rn(this.node),i=(this.Gr||0)/2*("miter"===this.Du?10:1);if(i&&(t.x-=i,t.y-=i,t.width+=2*i,t.height+=2*i),void 0!==this.rc){var s=this.oc*Hi(this.ac/180*Ni),e=this.oc*Bi(this.ac/180*Ni),n=this.rc,h={x:t.x+s-n,y:t.y+e-n,width:t.width+2*n,height:t.height+2*n},r=t.x+t.width,a=t.y+t.height;t.x=Ui(t.x,h.x),t.y=Ui(t.y,h.y),t.width=Yi(r,h.x+h.width)-t.x,t.height=Yi(a,h.y+h.height)-t.y}return t},transformedContentBox:function(t){var i=t?this.rotateToSlide():this.rotate();return this.rotatedContentBox(i,t)}});function Nn(t,i){var s,e,n,h,r=null;for(n=0,h=i.length;n<h;++n)(s=i[n])[6]&&1==s[6]||0===n?(t.moveTo(s[0],s[1]),r=s):t.cubicTo(e[4],e[5],s[2],s[3],s[0],s[1]),s[6]&&2==s[6]&&(r&&(t.cubicTo(s[4],s[5],r[2],r[3],r[0],r[1]),r=null),t.closeSubpath()),e=s}function On(t,i,s){var e,n,h,r,a,o=[],u=ke.scaleNonUniform(i,s);for(n=0,h=t.length;n<h;++n)r=[],a=Te(u,(e=t[n])[0],e[1]),r[0]=a.x,r[1]=a.y,a=Te(u,e[2],e[3]),r[2]=a.x,r[3]=a.y,a=Te(u,e[4],e[5]),r[4]=a.x,r[5]=a.y,r[6]=e[6],o[n]=r;return o}function Ln(t,i,s){var e=i%3,n=(0===e?2:1===e?3:5)*s;switch(t){case rt.ARROW:case rt.OPEN:case rt.STEALTH:return i<3?2.5*n/4:2*n/4;default:return 0}}var Fn={FPS:60,INTERVAL:16,time:0,syncTimes:[],timerId:null,isRunning:function(){return!!this.timerId},start:function(){this.stop(),Un()},stop:function(){this.timerId&&(cancelAnimationFrame(this.timerId),this.timerId=null)},now:function(){var t=this.syncTimes;return t.length?t[t.length-1]:this.time},pushSync:function(t){this.syncTimes.push(t)},popSync:function(){this.syncTimes.pop()},adjustLag:function(){}};function Un(){Fn.syncTimes.length=0,Fn.time=Date.now(),Fn.timerId=requestAnimationFrame(Un),se.tick(Fn.time)}var Yn={linear:function(t){return t},inQuad:function(t){return t*t},outQuad:function(t){return-t*(t-2)},inOutQuad:function(t){return t<.5?2*t*t:2*t*(2-t)-1},inBounce:function(t){Yn.outBounce(1-t)},outBounce:function(t){return 1===t?1:t<4/11?7.5625*t*t:t<8/11?7.5625*(t-=6/11)*t+.75:t<10/11?7.5625*(t-=9/11)*t+.9375:7.5625*(t-=21/22)*t+.984375}},Hn={he:0,Oc:1,Lc:2,Fc:3,_h:4,Uc:5,Yc:6},Bn=Ds({$init:function(t,i){this.s=t,this.d=i-t},resolveRelative:function(t,i,s,e){var n,h;switch(t){case Hn.Oc:n=i,h=s;break;case Hn.Lc:n=i,h=i+s;break;case Hn.Fc:n=s,h=i;break;case Hn._h:n=i-s,h=i;break;case Hn.Uc:n=i+s,h=i+e;break;case Hn.Yc:n=i*s,h=i*e;break;default:n=s,h=e}this.$init(n,h)},value:function(t){return this.s+this.d*t}}),zn={_default:function(t,i){return new Bn(t,i)}};function Xn(t,i){return void 0===zn[i]&&(zn[i]=t,!0)}function Gn(t){return(zn[t]||zn._default).apply(null,Array.prototype.slice.call(arguments,1))}var Vn=Ds(Bn,{$init:function(t,i){this.s=t,this.e=void 0===i?t:i},value:function(t){return t<1?this.s:this.e}});function $n(t,i,s){var e=s*s,n=e*s,h=1-s,r=h*h,a=r*h,o=3*r*s,u=3*h*e;return{x:a*t[0]+o*t[4]+u*i[2]+n*i[0],y:a*t[1]+o*t[5]+u*i[3]+n*i[1]}}function Wn(t,i,s,e,n){var h=Vi(s[e].t),r=(s[e].t+s[e+1].t)/2-h,a=$n(t,i,r),o={x:s[e].x,y:s[e].y},u={x:s[e+1].x,y:s[e+1].y},c=0;return(jn(a,{x:(o.x+u.x)/2,y:(o.y+u.y)/2})>n||jn(o,u)>4*n)&&(a.t=h+r,s.splice(e+1,0,a),c=1+Wn(t,i,s,e+1,n),c+=Wn(t,i,s,e,n)),c}function jn(t,i){var s=i.x-t.x,e=i.y-t.y;return Li(s*s+e*e)}Xn(function(t,i){return new Vn(t,i)},jt.zi);var Qn=Ds(Bn,{$init:function(t,i){this.Hc=i||{translateX:0,translateY:0},this.points(t)},value:function(t){var i=this.Bc(t),s=Vi(i),e=this.zc,n=e.length-2;s<0?(s=0,i=0):(s>n&&(s=n),(i-=s)>1&&(i=1));var h,r,a,o,u,c,f,l,d,p=$n(e[s],e[s+1],i),v=i;return v<1e-6?v=1e-6:v>.999999&&(v=.999999),o=e[s],u=e[s+1],f=(c=v)*c,r={x:3*(d=(l=1-c)*l)*(o[4]-o[0])+6*l*c*(u[2]-o[4])+3*f*(u[0]-u[2]),y:3*d*(o[5]-o[1])+6*l*c*(u[3]-o[5])+3*f*(u[1]-u[3])},180*Xi(r.y,r.x)/Ni,(t<0||t>1)&&(h=Li(r.x*r.x+r.y*r.y))>0&&(a=t>1?t-1:t,p.x+=a*this.Xc*r.x/h,p.y+=a*this.Xc*r.y/h),{translateX:p.x+this.Hc.translateX,translateY:p.y+this.Hc.translateY}},points:function(t){t&&t.length||(t=[[0,0,0,0,0,0]]),1===t.length&&(t[1]=t[0]),this.zc=t,this.Gc(),this.Vc()},Gc:function(){this.yu=[];var t,i,s,e,n=this.zc,h=n.length-1,r=this.yu;for(t=0;t<h;++t)for(i=0;i<4;++i)s=i/4,(e=$n(n[t],n[t+1],s)).t=t+s,r.push(e);for(h>=0&&r.push({x:n[h][0],y:n[h][1],t:h}),t=h-1;t>=0;--t)for(i=3;i>=0;--i)Wn(n[t],n[t+1],r,4*t+i,2)},Vc:function(){var t,i=this.yu,s=0,e=i.length-1;for(t=0;t<e;++t)i[t].l=s,s+=jn(i[t],i[t+1]);e>=0&&(i[e].l=s),this.Xc=s,this.$c=[];var n,h,r=this.$c,a=s;for(this.Wc=10,t=0,s=0;t<e;)if(i[t+1].l<s)++t;else if(n=i[t],h=i[t+1],r.push({l:s,t:h.l>n.l?n.t+(s-n.l)*(h.t-n.t)/(h.l-n.l):n.t}),(s+=10)>a)break;0===r.length&&r.push({l:0,t:0}),e>=0&&(r.length<2||r[r.length-1].t<i[e].t)&&r.push({l:a,t:i[e].t})},Bc:function(t){var i,s,e,n,h=t*this.Xc,r=this.$c,a=r.length;return 0===a?i=0:1===a?i=r[0].t:(e=r[s=this.Wc>0?Ui(Yi(0,Vi(h/this.Wc)),a-2):0],i=(n=r[s+1]).l>e.l?e.t+(h-e.l)*(n.t-e.t)/(n.l-e.l):e.t),i}});Xn(function(t,i){return new Qn(t,i)},jt.Xi);var Kn=Ds(Bn,{$init:function(t){this.jc=t||""},value:function(t){var i=this.jc;if(t>=0||t<=1){var s=i.length,e=s*t;e>s&&(e=s),i=i.substring(0,e)}return i}});function qn(){return os(this.translateX,0)&&os(this.translateY,0)&&os(this.rotate,0)&&os(this.scaleX,1)&&os(this.scaleY,1)}Xn(function(t){return new Kn(t)},jt.Gi);var Jn={transform:{children:["translateX","translateY","rotate","scaleX","scaleY"],get:function(i){var s,e,n={translateX:0,translateY:0,rotate:0,scaleX:1,scaleY:1,isIdentity:qn},h=t(i.node).css("transform");if("matrix("===h.substr(0,7)){for(s=0,e=(h=h.substring(7,h.length-1).split(",")).length;s<e;++s)h[s]=parseFloat(h[s]);n.translateX=h[4]||0,n.translateY=h[5]||0,n.scaleX=Li(h[0]*h[0]+h[1]*h[1]),0===n.scaleX?(n.scaleY=Li(h[2]*h[2]+h[3]*h[3]),0===n.scaleY?n.rotate=0:n.rotate=180*Xi(-h[2],h[3])/Ni):(n.scaleY=(h[0]*h[3]-h[1]*h[2])/n.scaleX,n.rotate=180*Xi(h[1],h[0])/Ni)}return n},set:function(t,i){if(i&&typeof i!==Ri){var s=Bi(i.rotate*Ni/180),e=Hi(i.rotate*Ni/180);t.node.style[Ms]="matrix("+i.scaleX*e+", "+i.scaleX*s+", "+-i.scaleY*s+", "+i.scaleY*e+", "+i.translateX+", "+i.translateY+")"}else t.node.style[Ms]=i}},resetTransform:{order:1e3,get:function(i){return t(i.node).css("transform")},set:function(t,i){t.node.style[Ms]=i},rawProp:function(t){return["transform",{translateX:0,translateY:0,rotate:0,scaleX:1,scaleY:1}]}},position:{base:"transform",children:["translateX","translateY"]},translateX:{base:"transform"},translateY:{base:"transform"},rotate:{base:"transform"},scaleX:{base:"transform",add:function(t,i){return t*i}},scaleY:{base:"transform",add:function(t,i){return t*i}},opacity:{get:function(i){return t(i.node).css("opacity")},set:function(t,i){t.node.style.opacity=i}},resetOpacity:{order:1e3,get:function(i){return t(i.node).css("opacity")},set:function(t,i){t.node.style.opacity=i}},display:{get:function(i){return t(i.node).css("display")},set:function(i,s){i.Sr?(i.Er=s,s=i.hideProp?i.hideProp():"none",i.Er==s&&delete i.Er):delete i.Er,i.node.style.display=s,s==(i.hideProp?i.hideProp():"none")&&Ji.activeElement&&(i.node==Ji.activeElement||t.contains(i.node,Ji.activeElement))&&Ji.activeElement.blur(),i.bn&&i.bn(),i.hh&&i.hh()},add:function(t,i){return i}},resetClip:{order:1e3,get:function(i){return t(i.node).css(Ps)},set:function(t,i){t.node.style[Ps]=i}},clip:{order:1,children:["clipTop","clipRight","clipBottom","clipLeft"],get:function(i){var s,e,n,h,r=t(i.node).css(Ps);if(r.substr(0,Rs.length)===Rs)r=r.substring(Rs.length,r.length-1).split(" "),s=parseFloat(r[0]),1==r.length?e=n=h=s:(e=parseFloat(r[1]),2==r.length?(n=s,h=e):(n=parseFloat(r[2]),h=3==r.length?e:parseFloat(r[3])));else{var a=i.contentBox&&i.contentBox();a||(a={x:0,y:0,width:i.node.offsetWidth,height:i.node.offsetHeight}),s=a.y,e=(h=a.x)+a.width,n=s+a.height,ns.clipPath&&(e=i.node.offsetWidth-e,n=i.node.offsetHeight-n)}return{clipTop:s,clipRight:e,clipBottom:n,clipLeft:h}},set:function(t,i){t.node.style[Ps]=i&&typeof i!==Ri?Rs+i.clipTop+"px "+i.clipRight+"px "+i.clipBottom+"px "+i.clipLeft+"px)":i}},clipTop:{base:"clip"},clipRight:{base:"clip"},clipBottom:{base:"clip"},clipLeft:{base:"clip"},ccNode:{get:function(i){return t(i.textNode).html()||""},set:function(i,s){s=s||"",i.textNode&&(t(i.textNode).html(s),i.Wr=s,i.onResized&&i.onResized(0,0))}},src:{get:function(i){return t(i.node).attr("src")||""},set:function(i,s){t(i.node).attr("src",s||"")}},ceProgress:{get:function(t){return t.Wn},set:function(t,i){t.Wn=i,rn.renderMouseEffect(t.node.getContext("2d"),t.jn,t.Kn,t.qn,i/100,t.Qn,t.Jn)}},geProgress:{get:function(t){return t.Oa},set:function(i,s){if(i.Oa=s,i.La){var e=i.La,n=e.getContext("2d"),h=i._s.ge.type,r=t(e).attr("width"),a=t(e).attr("height"),o=Math.round(r/2),u=Math.round(a/2),c=ws(i._s.ge.color),f=s/100;rn.renderGestureEffect(n,h,o,u,f,c)}}},width:{get:function(i){return t(i.node).css("width")},set:function(t,i){t.node.style.width=i+"px"}},height:{get:function(i){return t(i.node).css("height")},set:function(t,i){t.node.style.height=i+"px"}},left:{get:function(i){return t(i.node).css("left")},set:function(t,i){t.node.style.left=i+"px"}},top:{get:function(i){return t(i.node).css("top")},set:function(t,i){t.node.style.top=i+"px"}},mediaSrc:{get:function(t){if(t.Tn)return t.Tn.zo()},set:function(t,i){t.Tn&&t.Tn.loadResource(i)}},mediaDuration:{get:function(t){if(t.Tn)return t.Tn.Bo()},set:function(t,i){t.Tn&&t.Tn.yn(i)}},mediaState:{get:function(t){return t.Tn?t.Tn.us():"stopped"},set:function(t,i){t.Tn&&t.Tn.us(i)}},mediaSeek:{get:function(t){return t.Tn?t.Tn.Wa():0},set:function(t,i){t.Tn&&t.Tn.Wa(i)}},text:{get:function(t){return t.html?t.html():""},set:function(t,i){i=i||"",t.html&&t.html(i)}},timerState:{get:function(t){return t.Kr||!1},set:function(t,i){i&&!t.qr&&(t.qr=!0,(!t.enabled||t.enabled())&&t.startTimer&&t.startTimer())}},svgOpacity:{get:function(t){return t.shape&&t.shape.shapeNode?t.shape.shapeNode.style.opacity:-1},set:function(t,i){t.shape&&t.shape.shapeNode&&(t.shape.shapeNode.style.opacity=i)}},authorVideoRatio:{get:function(t){return t.aspectRatio&&t.aspectRatio()},set:function(t,i){t.aspectRatio&&t.aspectRatio(i)},order:-1},backgroundColor:{get:function(i){return t(i.node).css("backgroundColor")},set:function(t,i){t.node.style.backgroundColor=i}},textDecoration:{get:function(i){return t(i.node).css("textDecoration")},set:function(t,i){t.node.style.textDecoration=i}},listStyleType:{get:function(i){return t(i.node).css("listStyleType")},set:function(t,i){t.node.style.listStyleType=i}}},Zn=Ds({$init:function(t){this.ra=t,this.Qc={}},apply:function(t){this.toTarget(t,this.get(t))},toTarget:function(t,i){var s,e,n,h=Jn[t];if(h)if(h.set)h.set(this.ra,i);else if(h.base&&(s=Jn[h.base])&&s.set){if(e=this.get(h.base))if(e.hasOwnProperty(t))e[t]=i;else if(i)for(n in i)e[n]=i[n];else e=i;else e=i;s.set(this.ra,e)}},fromTarget:function(t){var i,s,e,n,h,r,a=Jn[t];if(a)if(a.get)s=a.get(this.ra);else if(a.base&&(i=Jn[a.base])&&i.get&&(s=i.get(this.ra)))if(a.children&&(r=a.children.length)){for(e={},h=0;h<r;++h)e[n=a.children[h]]=s[n];s=e}else void 0!==s[t]&&(s=s[t]);return s},get:function(t){var i,s,e,n,h=Jn[t];if(h&&h.children&&(n=h.children.length))for(i={},e=0;e<n;++e)i[s=h.children[e]]=this.Qc[s];else i=this.Qc[t];return i},set:function(t,i){var s,e,n,h=Jn[t];if(h&&h.children&&(n=h.children.length))for(e=0;e<n;++e)s=h.children[e],this.Qc[s]=i?i[s]:i;else this.Qc[t]=i;if(h&&h.rawProp){var r=h.rawProp(i);this.set(r[0],r[1])}},add:function(t,i){var s,e,n,h,r=Jn[t];if(r&&r.children&&(h=r.children.length))for(n=0;n<h;++n)e=r.children[n],(s=Jn[e])&&s.add?this.Qc[e]=s.add(this.Qc[e],i?i[e]:i):this.Qc[e]=(this.Qc[e]||0)+i;else r&&r.add?this.Qc[t]=r.add(this.Qc[t],i):this.Qc[t]=(this.Qc[t]||0)+i}}),th=Ds({$init:function(t){this.options=t=ji({speed:1,repeat:1,alternated:!1,paused:!1,startTime:0},t),this.Cn=t.speed||1e-9,this.Kc=t.repeat||1,this.qc=1,this.Jc=t.alternated,this.Un=t.startTime,this.Zc=void 0,this.tf=void 0,this.if=void 0,this.Hn=0,this.me=t.paused,this.so=null,this.sf=null},started:function(){return void 0!==this.if},speed:function(t){return arguments.length?(this.Cn=t||1e-9,this.me||this.startTime((this.so?this.so.Hn:Fn.now())-this.Hn/this.Cn),this):this.Cn},repeat:function(t){return arguments.length?(this.Kc=t||1,ih(this,!0),this):this.Kc},alternated:function(t){return arguments.length?(this.Jc=t,this):this.Jc},startTime:function(t){if(!arguments.length)return this.Un;if(t!==this.Un)if(this.so){var i=this.so;i.removeChild(this),this.Un=t,i.addChild(this)}else this.Un=t;return this},endTime:function(t){return this.Un+(t?this.duration():this.totalDuration())/this.Cn},duration:function(t){return arguments.length?(this.Zc=t,ih(this,!0),this):this.Zc},totalDuration:function(t){return arguments.length?this.Kc>0?this.duration(t/this.Kc):this:(void 0===this.tf&&(void 0===this.Zc&&this.duration(),-1===this.Kc?this.tf=1e11:-2===this.Kc?this.tf=this.so?(this.so.duration()-this.Un)*this.Cn:this.Zc:this.tf=this.Kc*this.Zc),this.tf)},play:function(t){return void 0!==t&&this.seek(t),this.paused(!1)},pause:function(t){return this.paused(!0),void 0!==t&&this.seek(t),this},paused:function(t){if(!arguments.length)return this.me;if(t=!!t,this.me!==t){this.me=t;for(var i=this;i&&!i.me;)i.startTime((i.so?i.so.Hn:Fn.now())-i.Hn/i.Cn),i=i.so;t||this.update(this.Hn)}return this},ef:function(){for(var t=this;t;){if(t.me)return!0;t=t.so}return!1},seek:function(t){return this.totalTime(t)},time:function(t){return arguments.length?(t=as(t,0,this.duration()),this.Jc&&this.qc%2==0&&(t=this.Zc-t),this.totalTime(t+(this.qc-1)*this.Zc)):this.if||0},totalTime:function(t){if(!arguments.length)return this.Hn;t<0&&(t=0),this.nf(t),this.update(t,!0);for(var i=this;i&&!i.me;)i.startTime((i.so?i.so.Hn:Fn.now())-i.Hn/i.Cn),i=i.so;return this},nf:function(t){this.if=void 0},parent:function(t){return arguments.length?(t?t.addChild(this):this.remove(),this):this.so},timeline:function(){return this.sf},remove:function(){return this.so&&this.so.removeChild(this),this},setup:function(){},update:function(t,i){},Yn:function(t){var i=void 0===this.Zc?this.duration():this.Zc,s=void 0===this.tf?this.totalDuration():this.tf,e=1,n={totalTime:t,uncapTime:t,active:t>-Pi&&t<s+Pi};return t<Pi||0===i?(t>-Pi&&t<Pi?n.totalTime=n.uncapTime=0:t<0&&(n.totalTime=0),t=0):(t>s-Pi&&(t<s+Pi&&(t=s,n.totalTime=n.uncapTime=t),t>s&&(t=s)),1!==this.Kc&&(0===(e=$i(t/i))&&(e=1),t-=(e-1)*i,this.Jc&&e%2==0&&(t=i-t),t>i?t=i:t<0&&(t=0),e<this.Kc?this.uncapTime=t:(this.uncapTime-=(e-1)*i,this.Jc&&e%2==0&&(this.uncapTime=i-this.uncapTime)))),n.time=t,n.cycle=e,n},hf:function(t){this.sf=t},rf:function(t,i){return!0},af:function(t){}});function ih(t,i){for(;t;)t.tf=void 0,i?i=!1:t.Zc=void 0,t=t.so}var sh=Ds(th,{$init:function(t,i){this.isEvent=!0,this.uf=!1,th.prototype.$init.call(this,i),this.Zc=this.options.duration||0,this.cf=t},update:function(t,i){t=this.Yn(t),this.qc=t.cycle,this.Hn=t.totalTime,this.if=t.time,this.uf||(this.uf=!0,this.cf&&this.cf(this.if,i))},nf:function(t){th.prototype.nf.call(this,t),this.uf=t>0}}),eh=Ds(th,{$init:function(t,i,s){th.prototype.$init.call(this,s),(s=this.options).tweenParams||(s.tweenParams=[]),void 0===s.relative&&(s.relative=Hn.he),this.ra=t,t.animProps||(t.animProps=new Zn(t)),this.ff=i,this.Zc=s.duration||0,this.lf=s.additive||!1,this.df=s.easing||Yn.linear,s.revert&&(this.pf=!0),Qi(this.options.tweenParams[0])||(this.vf=Gn.apply(null,[s.tweenType].concat(s.tweenParams)))},setup:function(){if(Qi(this.options.tweenParams[0]))this.vf=Gn.apply(null,[this.options.tweenType].concat(this.options.tweenParams[0].apply(this,this.options.tweenParams.slice(1))));else if(this.options.relative!==Hn.he){var t=this.mf();this.vf.resolveRelative.apply(this.vf,[this.options.relative,t].concat(this.options.tweenParams))}},update:function(t,i){t=this.Yn(t);var s=this.if!=t.time||this.qc!=t.cycle,e=this.df(this.Zc?t.time/this.Zc:1);this.pf&&t.totalTime>=this.tf&&(e=0),this.qc=t.cycle,this.if=t.time,this.Hn=t.totalTime,this.lf?this.ra.animProps.add(this.ff,this.vf.value(e)):this.ra.animProps.set(this.ff,this.vf.value(e)),this.sf&&s&&this.sf.bf(this.ff,this.ra)},hf:function(t){t!==this.sf&&(this.sf&&this.sf.wf(this.ff,this.ra),this.sf=t,t&&t.gf(this.ff,this.ra))},rf:function(t,i){return this!==i&&(this.ra===i.ra&&(this.update(t,!0),this.if=void 0),!0)},mf:function(t){var i;if(this.sf){for(var s=0,e=this,n=this.sf,h=ji({},this.ra.animProps.Qc);e&&e!==n;)s=e.Un+s/e.Cn,e=e.so;n.rf(s,this),i=t?t.call(this):this.ra.animProps.get(this.ff),this.ra.animProps.Qc=h}else i=t?t.call(this):this.ra.animProps.fromTarget(this.ff);return i}}),nh=Ds(eh,{af:function(t){var i=this.ra.Tn,s=this.ef();i&&(s?i.Ka():i.Qa())},update:function(t,i){if(eh.prototype.update.call(this,t),i){var s=this.ra.Tn;s&&s.ja()}}}),hh=Ds(th,{$init:function(t){th.prototype.$init.call(this,t),this.firstChild=this.lastChild=null},setup:function(){for(var t=this.firstChild;t;)t.setup(),t=t.next},duration:function(t){if(!arguments.length){if(void 0===this.Zc){var i,s=this.lastChild;for(t=0;s;)(s.Kc>0||-1===s.Kc)&&(i=s.Un+s.totalDuration()/s.Cn)>t&&(t=i),s=s.prev;this.Zc=t}return this.Zc}return t&&(this.Zc||this.duration())&&this.speed(this.Zc/t),this},totalDuration:function(t){return arguments.length?(this.Kc>0&&t&&(this.tf||this.totalDuration())&&this.speed(this.tf/t),this):void 0!==this.tf?this.tf:th.prototype.totalDuration.call(this)},update:function(t,i){var s=this.Yn(t);s.cycle>1&&this.Hn<(s.cycle-1)*this.Zc&&this.started()&&(this.update((s.cycle-1)*this.Zc,i),this.nf(t)),this.qc=s.cycle,this.if=s.time,this.Hn=s.totalTime;for(var e,n=this.ef(),h=s.time,r=this.firstChild;r&&!(r.Un>h)&&(e=r.next,r.me||(r.update((h-r.Un)*r.Cn,i),!r.firstChild||this.qc===s.cycle&&this.if===h&&this.ef()===n));)r=e},hf:function(t){if(t!==this.sf){for(var i=this.firstChild;i;)i.hf(t),i=i.next;this.sf=t}},addChild:function(t,i){if(t.isEvent&&!this.isTimeline)return rs("Only timeline can add timing event"),this;t.so&&t.remove();for(var s=this.lastChild;s&&(i?s.Un>=t.Un:s.Un>t.Un);)s=s.prev;return s?(t.next=s.next,t.prev=s,t.next?t.next.prev=t:this.lastChild=t,s.next=t):(t.next=this.firstChild,this.firstChild?this.firstChild.prev=t:this.lastChild=t,this.firstChild=t),t.so=this,t.hf(this.isTimeline?this:this.sf),void 0!==this.Zc&&t.endTime()>this.Zc&&(this.Zc=t.endTime(),ih(this,!0)),this},removeChild:function(t){return t.so===this&&(t.prev?t.prev.next=t.next:this.firstChild=t.next,t.next?t.next.prev=t.prev:this.lastChild=t.prev,t.prev=t.next=null,t.so=null,t.sf&&t.hf(null),void 0!==this.Zc&&t.endTime()>=this.Zc&&ih(this,!1)),this},removeChildIf:function(t){for(var i,s=this.firstChild;s;)i=s.next,t(s)&&this.removeChild(s),s=i;return this},paused:function(t){if(!arguments.length)return th.prototype.paused.call(this);th.prototype.paused.call(this,t);for(var i=this.firstChild;i;)i.af(t),i=i.next;return this},rf:function(t,i){if(this===i)return!1;t=this.Yn(t).time;for(var s=this.firstChild;s;){if(s.Un<=t&&!s.rf((t-s.Un)*s.Cn,i))return!1;s=s.next}return!0},nf:function(t){th.prototype.nf.call(this,t),t=this.Yn(t).uncapTime;for(var i=this.firstChild;i;)i.nf((t-i.Un)*i.Cn),i=i.next},af:function(t){th.prototype.af.call(this,t);for(var i=this.firstChild;i;)i.af(t),i=i.next}});function rh(t,i){return t.active-i.active||t.order-i.order}var ah=Ds(hh,{isTimeline:!0,$init:function(t){hh.prototype.$init.call(this,t),this._f=[]},setup:function(){var t,i,s,e,n,h,r=this._f,a=r.length,o=[];for(h=0;h<a;++h)t=r[h].target,(s=r[h].props).display&&(s.display.value=t.animProps.fromTarget("display"));for(h=0;h<a;++h){var u=Me(r[h].target);u.length&&o.push(u)}for(h=0;h<a;++h){t=r[h].target,s=r[h].props,e={};for(i in s)Jn[i]&&Jn[i].base?e[Jn[i].base]=1:e[i]=1;delete e.display;for(i in e)if(n=t.animProps.fromTarget(i),s[i])s[i].value=n;else for(i in n)s[i]?s[i].value=n[i]:s[i]={value:n[i],count:0}}for(hh.prototype.setup.call(this),h=0,a=o.length;h<a;++h)Ce(o[h])},update:function(t,i){t=this.Yn(t),this.qc=t.cycle,this.Hn=t.totalTime;var s,e,n=this.ef();if(i||this.if!==t.time){var h,r,a,o,u,c=this._f;for(o=0,u=c.length;o<u;++o){h=c[o].target,a=c[o].props;for(r in a)a[r].active=!1,(a[r].count||void 0===h.animProps.get(r))&&h.animProps.set(r,a[r].value)}var f,l,d=this.if=t.time,p=!1,v=!1;if(!n)for(s=this.firstChild;s&&!(s.Un>t.time);){if(e=s.next,s.isEvent&&!s.me&&!s.uf)for(this.if=d=s.Un,this.Hn=t.totalTime+d-t.time,o=0;o<2;++o){for(1===o&&this.kf(i),f=this.firstChild,v=!0;f&&!(f.Un>d);){if(l=f.next,!f.me&&(0===o&&!f.isEvent||1===o&&f.isEvent)&&(f.update((d-f.Un)*f.Cn,i),(f.isEvent||f.firstChild)&&(this.qc!==t.cycle||this.if!==d||this.ef()!==n))){p=!0;break}f=l}if(p)break}if(p)break;s=e}if(!(p||this.if===t.time&&v))for(this.if=d=t.time,this.Hn=t.totalTime,f=this.firstChild;f&&!(f.Un>d)&&(l=f.next,f.me||f.isEvent||(f.update((d-f.Un)*f.Cn,i),!f.firstChild||this.qc===t.cycle&&this.if===d&&this.ef()===n));)f=l;this.kf(i)}else if(!n)for(s=this.firstChild;s&&!(s.Un>t.time)&&(e=s.next,!s.isEvent||s.Un!==this.if||s.me||s.uf||(s.update(0,i),this.qc===t.cycle&&this.if===t.time&&this.ef()===n));)s=e},kf:function(t){var i,s,e,n,h,r,a,o,u,c,f=this._f;for(r=0,a=f.length;r<a;++r){c=f[r].target,h=f[r].props,s={};for(n in h)(t||h[n].active)&&(e={name:n,active:h[n].active?1:0,order:0},Jn[n]&&(Jn[n].base?(e.name=Jn[n].base,e.order=Jn[e.name].order||0):e.order=Jn[n].order||0),s[e.name]?e.active&&(s[e.name].active=1):s[e.name]=e);i=[];for(n in s)i.push(s[n]);for(i.sort(rh),o=0,u=i.length;o<u;++o)c.animProps.apply(i[o].name)}},rf:function(t,i){var s,e,n,h,r,a=this._f;for(h=0,r=a.length;h<r;++h)if((s=a[h].target)===i.ra){n=a[h].props;for(e in n)n[e].active=!1,s.animProps.set(e,n[e].value)}return hh.prototype.rf.call(this,t,i)},hf:function(t){this.sf=t},gf:function(t,i){var s,e,n,h,r,a=this._f;for(h=0,r=a.length;h<r;++h)if(a[h].target===i){s=a[h];break}if(s||(s={target:i,props:{},count:0},a.push(s)),e=s.props,(n=Jn[t])&&n.children&&(r=n.children.length))for(h=0;h<r;++h)e[t=n.children[h]]?++e[t].count:(e[t]={count:1},++s.count);else e[t]?++e[t].count:(e[t]={count:1},++s.count)},wf:function(t,i){var s,e,n,h,r,a,o=this._f;for(r=0,a=o.length;r<a;++r)if(o[r].target===i){s=o[r],h=r;break}if(s){if(e=s.props,(n=Jn[t])&&n.children&&(a=n.children.length))for(r=0;r<a;++r)e[t=n.children[r]]&&(e[t].count>1?--e[t].count:(delete e[t],--s.count));else e[t]&&(e[t].count>1?--e[t].count:(delete e[t],--s.count));s.count<=0&&o.splice(h,1)}},bf:function(t,i){var s,e,n,h,r,a=this._f;for(h=0,r=a.length;h<r;++h)if(a[h].target===i){s=a[h];break}if(s)if(e=s.props,(n=Jn[t])&&n.children&&(r=n.children.length))for(h=0;h<r;++h)e[t=n.children[h]]&&(e[t].active=!0);else e[t]&&(e[t].active=!0)}});ji(se,{$:t,jQuery:t,Easing:Yn,MarkerType:rt,GradientType:{LINEAR:0,RADIAL:1},GradientShape:{CIRCLE:0,ELLIPSE:1},GradientSize:{CLOSE_SIDE:0,FAR_SIDE:1,CLOSE_CORNER:2,FAR_CORNER:3},FillType:vt,DisplayMode:bi,Object:Re,color:ws,createClass:Ds,Locale:ee,SVGShape:Dn,ShapePath:Mn,ClickMaxDistance:1,DoubleClickMaxTime:400,SwipeMinDistance:30,SwipeMaxDeflection:200,SwipeMinVelocity:.3,TransitionMinDuration:500,Timeline:ah,Animation:eh,MediaAnimation:nh,AnimationGroup:hh,TimingEvent:sh,RelativeTweenType:Hn,TweenType:jt,logDebug:rs,ZIndex:$t,ControlKind:i,ControlType:s,TextBoxFlags:ht,ResponseResult:At,PlayModes:Qt,animatedProperties:Jn,DragDrop:Se,htmlEscape:cs,htmlToText:fs,Key:Qs,splitText:function(t,i){var s=[],e={};if((i=i||{words:!0}).chars||i.words){var n,h;if(i.chars&&(e.chars=[]),i.words&&(e.words=[]),e.processStyles={},i.processStyles){var r=i.processStyles.split(",");for(n=0,h=r.length;n<h;++n)e.processStyles[r[n].trim()]=[]}for(function t(i,s,e){if(i){for(var n in e)i.style&&i.style[n]&&e[n].push(i);for(var h=0,r=i.childNodes.length;h<r;++h){var a=i.childNodes[h];3==a.nodeType?s.push(a):t(a,s)}}}(t,s,e.processStyles),n=0,h=s.length;n<h;++n)ds(s[n],e,i)}return e},support:ns}),window.AtomiAP=se,Fn.start()}(jQuery),function(t){t.EffectType={START:0,NONE:0,ENTRANCE_START:200,APPEAR:200,FADE_IN:201,FLY_IN:202,PEEK_IN:203,FLOAT_IN:204,WIPE_IN:205,ZOOM_IN:206,GROW_TURN_IN:207,SHAPE_IN:208,SWIVEL_IN:209,BOUNCE_IN:210,EXPAND_IN:211,SPINNER_IN:212,STRETCH_IN:213,COMPRESS_IN:214,ENTRANCE_END:215,EXIT_START:400,DISAPPEAR:400,FADE_OUT:401,FLY_OUT:402,PEEK_OUT:403,FLOAT_OUT:404,WIPE_OUT:405,ZOOM_OUT:406,SHRINK_TURN_OUT:407,SHAPE_OUT:408,SWIVEL_OUT:409,BOUNCE_OUT:410,CONTRACT_OUT:411,SPINNER_OUT:412,STRETCH_OUT:413,COLLAPSE_OUT:414,EXIT_END:415,EMPHASIS_START:600,PULSE:600,TEETER:601,SPIN:602,EMPHASIS_END:604,MOTION_PATH_START:800,MOTION_PATH_END:807,EXTENSION_START:1e3,PAUSE:1e3,TIME_OUT:1001,MEDIA_PLAY:1002,MEDIA_STOP:1003,MEDIA_SEEK:1004,GESTURE_PROGRESS:1005,TIMER_START:1006,EXTENSION_END:1007},t.EffectDirection={BOTTOM:1,LEFT:2,RIGHT:3,TOP:4,BOTTOM_LEFT:5,BOTTOM_RIGHT:6,TOP_LEFT:7,TOP_RIGHT:8,IN:9,OUT:10,CLOCKWISE:12,COUNTER_CLOCKWISE:13},t.TextEffectFlags={CHARS:1,WORDS:2};var i=t.EffectType,s=t.EffectDirection,e=t.Animation,n=t.MediaAnimation,h=t.AnimationGroup,r=t.Timeline,a=t.TimingEvent,o=t.Easing,u=o.outQuad,c=o.inQuad,f=o.linear,l=t.RelativeTweenType,d=t.TweenType;function p(t,i,s,h,r,a,o,u,c,f){var l={startTime:h,duration:r,tweenParams:a,easing:u,relative:o,tweenType:c,revert:f};"scale"===s?(t.addChild(new e(i,"scaleX",l)),t.addChild(new e(i,"scaleY",l))):"mediaSeek"===s?t.addChild(new n(i,s,l)):t.addChild(new e(i,s,l))}function v(t,i,s){var e,n,h,r=t[this.ra.slide.prez().layoutIndex];if(!r.normed){for(n=0,h=r.length;n<h;++n){e=r[n];for(var a=0;a<6;++a)e[a]=e[a]/1e3}r.normed=!0}var o=this.ra.animProps.fromTarget(this.ff),u=this.ra.score?this.ra:this.ra.parent;if(u&&i){var c=u.transformOrigin(!0);o.translateX-=c.x,o.translateY-=c.y}if(u&&u!=this.ra){var f=-u.rotate()%360;if(f){var l=r["r"+f];if(!l){l=r["r"+f]=[];var d,p=i?c:{x:0,y:0};for(n=0,h=r.length;n<h;++n)d=m((e=r[n].slice())[0],e[1],f,p.x,p.y),e[0]=d.x,e[1]=d.y,d=m(e[2],e[3],f,p.x,p.y),e[2]=d.x,e[3]=d.y,d=m(e[4],e[5],f,p.x,p.y),e[4]=d.x,e[5]=d.y,l.push(e)}r=l}}return void 0!==s&&((e=r[n=1==s?0:r.length-1]?r[n].slice():[0,0,0,0,0,0])[2]=e[4]=e[0],e[3]=e[5]=e[1],r=[e,e.slice()]),[r,o]}function m(t,i,s,e,n){if(s%360){t-=e=e||0,i-=n=n||0,s=s*Math.PI/180;var h=Math.cos(s),r=Math.sin(s);return{x:h*t-r*i+e,y:r*t+h*i+n}}return{x:t,y:i}}function b(t,i){var e=this.mf(),n=this.ra.animProps.fromTarget(this.ff),h=this.ra.transformedContentBox(!0),r=this.ra.slide,a=0,o=0;switch(h.x+=e.translateX-n.translateX,h.y+=e.translateY-n.translateY,t){case s.LEFT:a=-h.x-h.width;break;case s.TOP:o=-h.y-h.height;break;case s.RIGHT:a=r.offsetSize().width-h.x;break;case s.BOTTOM:o=r.offsetSize().height-h.y;break;case s.TOP_LEFT:a=-h.x-h.width,o=-h.y-h.height;break;case s.TOP_RIGHT:a=r.offsetSize().width-h.x,o=-h.y-h.height;break;case s.BOTTOM_RIGHT:a=r.offsetSize().width-h.x,o=r.offsetSize().height-h.y;break;case s.BOTTOM_LEFT:a=-h.x-h.width,o=r.offsetSize().height-h.y}var u=m(a,o,-(this.ra.parent&&this.ra.parent.rotateToSlide()||0));return a=u.x,o=u.y,i?[[[0,0,a/2,o/2,0,0],[a,o,a,o,a/2,o/2]],e]:[[[a,o,a,o,a/2,o/2],[0,0,a/2,o/2,0,0]],e]}function w(t,i){var e=this.mf(),n=this.ra.contentBox(),h=0,r=0;switch(t){case s.LEFT:h=-n.width;break;case s.TOP:r=-n.height;break;case s.RIGHT:h=n.width;break;case s.BOTTOM:r=n.height;break;case s.TOP_LEFT:h=-n.width,r=-n.height;break;case s.TOP_RIGHT:h=n.width,r=-n.height;break;case s.BOTTOM_RIGHT:h=n.width,r=n.height;break;case s.BOTTOM_LEFT:h=-n.width,r=n.height}var a=m(h,r,this.ra.rotate());return h=a.x,r=a.y,i?[[[0,0,h/2,r/2,0,0],[h,r,h,r,h/2,r/2]],e]:[[[h,r,h,r,h/2,r/2],[0,0,h/2,r/2,0,0]],e]}function g(i,e,n){var h,r,a,o=this.ra.contentBox(),u=n?o.width/2:0,c=n?o.height/2:0;switch(i){case s.LEFT:r=o.x+o.width-u,a=o.x;break;case s.TOP:r=o.y+o.height-c,a=o.y;break;case s.RIGHT:r=o.x+u,a=o.x+o.width,t.support.clipPath&&(r=(h=this.ra.offsetSize().width)-r,a=h-a);break;case s.BOTTOM:r=o.y+c,a=o.y+o.height,t.support.clipPath&&(r=(h=this.ra.offsetSize().height)-r,a=h-a)}return e?[a,r]:[r,a]}function _(t,i,e,n){var h,r,a=n?c:u;e==s.LEFT||e==s.TOP_LEFT||e==s.BOTTOM_LEFT?h=!0:e!=s.RIGHT&&e!=s.TOP_RIGHT&&e!=s.BOTTOM_RIGHT||(h=!1),e==s.TOP||e==s.TOP_LEFT||e==s.TOP_RIGHT?r=!0:e!=s.BOTTOM&&e!=s.BOTTOM_LEFT&&e!=s.BOTTOM_RIGHT||(r=!1),i=!!i,void 0!==h&&(h!=i?t.push(["clipLeft",0,1,[g,s.LEFT,n],l.he,a]):t.push(["clipRight",0,1,[g,s.RIGHT,n],l.he,a])),void 0!==r&&(r!=i?t.push(["clipTop",0,1,[g,s.TOP,n],l.he,a]):t.push(["clipBottom",0,1,[g,s.BOTTOM,n],l.he,a])),t.push(["resetClip",1,0,["",""],l.he,f,d.zi]),i||t.push(["position",0,1,[w,e,n],l.he,a,d.Xi,n])}function k(t,i){var e=i?c:u;t.push(["clipLeft",0,1,[g,s.LEFT,i,!0],l.he,e],["clipTop",0,1,[g,s.TOP,i,!0],l.he,e],["clipRight",0,1,[g,s.RIGHT,i,!0],l.he,e],["clipBottom",0,1,[g,s.BOTTOM,i,!0],l.he,e],["resetClip",1,0,["",""],l.he,f,d.zi])}function y(t,i){return t*=i?this.ra.slide.offsetSize().height/100:this.ra.slide.offsetSize().width/100,[this.mf(),t]}t.createZoomAndPan=function(t,i,s,e){var n=new h({startTime:0});if(p(n,t,"scale",0,0,[1],l.Oc),p(n,t,"translateX",0,0,[0],l.Oc),p(n,t,"translateY",0,0,[0],l.Oc),i&&i.length)for(var r=0;r<i.length;r++){var a=i[r];if(void 0!==a.m&&(a.m&e)==e){var o,u,c=a.scale[s]/100,d=a.pos[s];o=1===d.ux?[y,-d.x*c/1e3]:[-d.x*c],u=1===d.uy?[y,-d.y*c/1e3,!0]:[-d.y*c],p(n,t,"scale",a.startTime,a.duration,[c],l.Oc),p(n,t,"translateX",a.startTime,a.duration,o,l.Oc,f),p(n,t,"translateY",a.startTime,a.duration,u,l.Oc,f)}}return n};t.animatedProperties;t.createEffect=function(e,n,r,m,w){r=r||0,m=m||0,w=w||{};var g={r:"repeat",d:"direction",a:"alternated",p:"path",t:"text"};for(var y in g)void 0!==w[y]&&(w[g[y]]=w[y]);if(n===i.PAUSE)return new a(function(){e.cs&&e.cs(!0)},{startTime:r});if(n===i.TIME_OUT)return new a(function(){e.Pr&&e.Pr(m)},{startTime:r});var T,x,S,E,M=new h({startTime:r,repeat:w.repeat||1,alternated:!!w.alternated}),C=w.direction,I=[],P=w.text&&w.text[0]&&e.splitText&&e.html&&e.html(),R=m;if(P){var A=w.text[1];e.shape&&e.shape.node?I.push(e.shape):R=A;var D={chars:w.text[0]&t.TextEffectFlags.CHARS,words:w.text[0]&t.TextEffectFlags.WORDS,processStyles:"backgroundColor, textDecoration"},N=e.splitTexts;if((!N||D.chars&&!N.chars||D.words&&!N.words)&&(e.splitText(D),N=e.splitTexts),D.chars&&N&&N.chars)for(T=0,x=N.chars.length;T<x;++T)I.push(N.chars[T]);if(D.words&&N&&N.words)for(T=0,x=N.words.length;T<x;++T)I.push(N.words[T])}else I.push(e);var O=t.browser.iDevice,L=[];n==i.FADE_IN?L=[["opacity",0,1,[0,1],l.he,u]]:n==i.FLY_IN?L=[["position",0,1,[b,C],l.Fc,u,d.Xi]]:n==i.PEEK_IN?_(L,!1,C,!1):n==i.FLOAT_IN?C==s.BOTTOM?L=[["translateY",0,1,[100],l.Fc,u],["opacity",0,1,[0,1],l.he,u]]:C==s.TOP&&(L=[["translateY",0,1,[-100],l.Fc,u],["opacity",0,1,[0,1],l.he,u]]):n==i.WIPE_IN?_(L,!0,C,!1):n==i.ZOOM_IN?(L=[["scale",0,1,[0,1],l.Yc,u],["opacity",0,1,[0,1],l.he,u]],O&&L.push(["svgOpacity",0,1,[.9,1],l.he])):n==i.GROW_TURN_IN?(L=[["rotate",0,1,[90],l.Fc,u],["opacity",0,1,[0,1],l.he,u],["scale",0,1,[0,1],l.Yc,u]],O&&L.push(["svgOpacity",0,1,[.9,1],l.he])):n==i.SWIVEL_IN?(L=[["opacity",0,1,[0,1]],["scaleX",0,.2,[0,1],l.Yc,u],["scaleX",.2,.2,[1,1e-4],l.Yc,u],["scaleX",.4,.2,[1,-1e4],l.Yc,u],["scaleX",.6,.2,[1,-1e-4],l.Yc,u],["scaleX",.8,.2,[1,1e4],l.Yc,u]],O&&L.push(["svgOpacity",0,1,[.9,1],l.he])):n==i.BOUNCE_IN?L=[["translateX",0,1,[-150],l.Fc],["translateY",0,1,[-250],l.Fc,o.outBounce],["opacity",0,.05,[0,1]],["scaleY",7.9/22,.1/22,[1,.5],l.Yc],["scaleY",8/22,.1/22,[1,2],l.Yc],["scaleY",15.9/22,.1/22,[1,.8],l.Yc],["scaleY",16/22,.1/22,[1,1.25],l.Yc],["scaleY",19.9/22,.1/22,[1,.9],l.Yc],["scaleY",20/22,.1/22,[1,10/9],l.Yc]]:n==i.EXPAND_IN?L=[["scaleX",0,1,[.8,1],l.Yc,u],["opacity",0,1,[0,1],l.he,u]]:n==i.SPINNER_IN?L=[["rotate",0,1,[-360],l.Lc,u],["opacity",0,1,[100/255,1],l.he,u]]:n==i.STRETCH_IN?(L=[["scaleX",0,1,[0,1],l.Yc,u]],O&&L.push(["svgOpacity",0,1,[.9,1],l.he])):n==i.COMPRESS_IN?L=[["scaleX",0,1,[1.5,1],l.Yc,u],["opacity",0,1,[0,1],l.he,u]]:n==i.SHAPE_IN?k(L,!1):n==i.PULSE?L=[["scale",0,.5,[1,1.2],l.Yc],["opacity",0,.5,[1,100/255]],["scale",.5,.5,[1,5/6],l.Yc],["opacity",.5,.5,[100/255,1]]]:n==i.TEETER?L=[["rotate",0,1/8,[-10],l.Lc],["rotate",1/8,1/8,[10],l.Lc],["rotate",.25,1/8,[10],l.Lc],["rotate",3/8,1/8,[-10],l.Lc],["rotate",.5,1/8,[-10],l.Lc],["rotate",5/8,1/8,[10],l.Lc],["rotate",.75,1/8,[10],l.Lc],["rotate",7/8,1/8,[-10],l.Lc]]:n==i.SPIN?C==s.CLOCKWISE?L=[["rotate",0,1,[360],l.Lc]]:C==s.COUNTER_CLOCKWISE&&(L=[["rotate",0,1,[-360],l.Lc]]):n==i.FADE_OUT?L=[["opacity",0,1,[1,0],l.he,c],["opacity",1,0,[0,1]]]:n==i.FLY_OUT?L=[["position",0,1,[b,C,!0],l.Fc,c,d.Xi,!0]]:n==i.FLOAT_OUT?C==s.BOTTOM?L=[["translateY",0,1,[100],l.Lc,c],["translateY",1,0,[-100],l.Lc],["opacity",0,1,[1,0],l.he,c],["opacity",1,0,[0,1]]]:C==s.TOP&&(L=[["translateY",0,1,[-100],l.Lc,c],["translateY",1,0,[100],l.Lc],["opacity",0,1,[1,0],l.he,c],["opacity",1,0,[0,1]]]):n==i.PEEK_OUT?_(L,!1,C,!0):n==i.WIPE_OUT?_(L,!0,C,!0):n==i.ZOOM_OUT?L=[["scale",0,1,[1,1e-4],l.Yc,c],["opacity",0,1,[1,0],l.he,c],["scale",1,0,[1e4,1e4],l.Yc],["opacity",1,0,[0,1]]]:n==i.SHRINK_TURN_OUT?L=[["rotate",0,1,[90],l.Lc,c],["opacity",0,1,[1,0],l.he,c],["scale",0,1,[1,1e-4],l.Yc,c],["rotate",1,0,[-90],l.Lc],["opacity",1,0,[0,1]],["scale",1,0,[1e4,1e4],l.Yc]]:n==i.SWIVEL_OUT?L=[["opacity",0,1,[1,0],l.he,c],["scaleX",0,.2,[1,1e-4],l.Yc,c],["scaleX",.2,.2,[1,-1e4],l.Yc,c],["scaleX",.4,.2,[1,-1e-4],l.Yc,c],["scaleX",.6,.2,[1,1e4],l.Yc,c],["scaleX",.8,.2,[1,1e-4],l.Yc,c],["opacity",1,0,[0,1]],["scaleX",1,0,[1e4,1e4],l.Yc]]:n==i.BOUNCE_OUT?L=[["translateX",0,1,[150],l.Lc],["translateY",0,1,[250],l.Lc,o.outBounce],["opacity",.95,1,[1,0]],["translateX",1,0,[-150],l.Lc],["translateY",1,0,[-250],l.Lc],["opacity",1,0,[0,1]]]:n==i.SHAPE_OUT?k(L,!0):n==i.CONTRACT_OUT?L=[["scaleX",0,1,[1,.8],l.Yc,c],["opacity",0,1,[1,0],l.he,c],["scaleX",1,0,[1.25,1.25],l.Yc],["opacity",1,0,[0,1]]]:n==i.SPINNER_OUT?L=[["rotate",0,1,[360],l.Lc,c],["opacity",0,1,[1,100/255],l.he,c],["opacity",1,0,[100/255,1]]]:n==i.STRETCH_OUT?L=[["scaleX",0,1,[1,1.5],l.Yc,c],["opacity",0,1,[1,0],l.he,c],["scaleX",1,0,[2/3,2/3],l.Yc],["opacity",1,0,[0,1]]]:n==i.COLLAPSE_OUT?L=[["scaleX",0,1,[1,1e-4],l.Yc,c],["scaleX",1,0,[1e4,1e4],l.Yc]]:n>=i.MOTION_PATH_START&&n<=i.MOTION_PATH_END?L=[["position",0,1,[v,w.path[0],w.path[1]],l.he,f,d.Xi]]:n==i.GESTURE_PROGRESS?L=[["geProgress",0,1,[0,100]]]:n==i.TIMER_START?L=[["timerState",0,1,[!1,!0],l.he,f,d.zi]]:n==i.MEDIA_PLAY?L=[["mediaState",0,0,["stopped","playing"],l.he,f,d.zi]]:n==i.MEDIA_STOP?L=[["mediaState",1,0,["playing","stopped"],l.he,f,d.zi]]:n==i.MEDIA_SEEK&&(L=[["mediaSeek",0,1,[0,1],l.he,f]]);var F,U,Y=e.showProp?e.showProp():"block",H=e.hideProp?e.hideProp():"none",B=I.length>=2?R+(I.length-2)*A+m:m;if(n>=i.ENTRANCE_START&&n<=i.ENTRANCE_END){if(p(M,e,"display",0,0,[H,Y],l.he,f,d.zi),P)for(L.unshift(["opacity",0,0,[0,1]]),T=0,x=I.length;T<x;++T)p(M,I[T],"opacity",0,0,[1,0])}else if(n>=i.EXIT_START&&n<=i.EXIT_END)p(M,e,"display",B,0,[Y,H],l.he,f,d.zi),P&&L.push(["opacity",1,0,[1,0]]);else if(n>=i.MOTION_PATH_START&&n<=i.MOTION_PATH_END&&P)for(T=0,x=I.length;T<x;++T)p(M,I[T],"position",0,0,[{translateX:0,translateY:0}],l.he,f,d.zi);for(T=0,x=I.length;T<x;++T)for(U=0==T?0:R+A*(T-1),S=0,E=L.length;S<E;++S)F=L[S],p(M,I[T],F[0],U+F[1]*m,F[2]*m,F[3],F[4],F[5],F[6],F[7]);if(P){var z,X,G,V=!1;if(N&&N.processStyles)for(z in N.processStyles)if((G=N.processStyles[z])&&G.length){V=!0;break}var $=B,W=M;if(w.repeat>1&&($=B*w.repeat,(n>=i.MOTION_PATH_START&&n<=i.MOTION_PATH_END||V||N&&N.listItems&&N.listItems.length)&&(W=new h({startTime:r}),M.startTime(0),W.addChild(M))),N){if(N.listItems)for(T=0,x=N.listItems.length;T<x;++T)X=N.listItems[T].node.style.listStyleType||"",p(W,N.listItems[T],"listStyleType",0,0,[X,"none"],l.he,f,d.zi),p(W,N.listItems[T],"listStyleType",$,0,["none",X],l.he,f,d.zi);if(N.processStyles)for(z in N.processStyles)if((G=N.processStyles[z])&&G.length){for(T=I[0]==e.shape?1:0,x=I.length;T<x;++T)for(S=G.length-1;S>=0;--S)if(t.$.contains(G[S].node,I[T].node)){X=G[S].node.style[z],p(W,I[T],z,0,0,["",X],l.he,f,d.zi);break}for(T=0,x=G.length;T<x;++T)X=G[T].node.style[z],p(W,G[T],z,0,0,[X,""],l.he,f,d.zi),p(W,G[T],z,$,0,["",X],l.he,f,d.zi)}}if(n>=i.ENTRANCE_START&&n<=i.ENTRANCE_END||n>=i.EXIT_START&&n<=i.EXIT_END)for(T=0,x=I.length;T<x;++T)p(M,I[T],"resetOpacity",B,0,["",""],l.he,f,d.zi);else if(n>=i.MOTION_PATH_START&&n<=i.MOTION_PATH_END&&(!w.repeat||w.repeat>0)){var j=2;for(w.repeat>1&&w.alternated&&(j=w.repeat%2+1),p(W,e,"position",$,0,[v,w.path[0],w.path[1],j],l.he,f,d.Xi),T=0,x=I.length;T<x;++T)p(W,I[T],"resetTransform",$,0,["",""],l.he,f,d.zi)}}return W||M};var T={NONE:0,CUT:1,FADE:2,PUSH:3,WIPE:4,ZOOM:5,COVER:6,UNCOVER:7,REVEAL:8,FLY_THROUGH:9};function x(t,i,s,e,n,h,r,a,o,u){var c=i.slide,f=i.slideBG;c&&p(t,c,s,n*e,h*e,r,a,o,u),f&&p(t,f,s,n*e,h*e,r,a,o,u)}t.TransitionType=T,t.createTransition=function(i,e,n,h,a,o){var p=e?e.offsetSize():{width:0,height:0},v=n?n.offsetSize():{width:0,height:0},m=new r({startTime:0}),b={slide:e,slideBG:e?e.background:null},w={slide:n,slideBG:n?n.background:null};if(h==T.CUT)x(m,b,"opacity",a,0,.1,[0,1]);else if(h==T.FADE)x(m,b,"opacity",a,0,1,[0,1]);else if(h==T.PUSH)o==s.BOTTOM?x(m,b,"translateY",a,0,1,[p.height,0],l.he,u):o==s.LEFT?x(m,b,"translateX",a,0,1,[-p.width,0],l.he,u):o==s.RIGHT?x(m,b,"translateX",a,0,1,[p.width,0],l.he,u):o==s.TOP&&x(m,b,"translateY",a,0,1,[-p.height,0],l.he,u),o==s.BOTTOM?x(m,w,"translateY",a,0,1,[0,-v.height],l.he,u):o==s.LEFT?x(m,w,"translateX",a,0,1,[0,v.width],l.he,u):o==s.RIGHT?x(m,w,"translateX",a,0,1,[0,-v.width],l.he,u):o==s.TOP&&x(m,w,"translateY",a,0,1,[0,v.height],l.he,u);else if(h==T.WIPE){var g=t.support.clipPath;o==s.BOTTOM?x(m,b,"clipTop",a,0,1,[p.height,0],l.he,u):o==s.LEFT?x(m,b,"clipRight",a,0,1,g?[p.width,0]:[0,p.width],l.he,u):o==s.RIGHT?x(m,b,"clipLeft",a,0,1,[p.width,0],l.he,u):o==s.TOP?x(m,b,"clipBottom",a,0,1,g?[p.height,0]:[0,p.height],l.he,u):o==s.BOTTOM_LEFT?(x(m,b,"clipTop",a,0,1,[p.height,0],l.he,u),x(m,b,"clipRight",a,0,1,g?[p.width,0]:[0,p.width],l.he,u)):o==s.BOTTOM_RIGHT?(x(m,b,"clipTop",a,0,1,[p.height,0],l.he,u),x(m,b,"clipLeft",a,0,1,[p.width,0],l.he,u)):o==s.TOP_LEFT?(x(m,b,"clipBottom",a,0,1,g?[p.height,0]:[0,p.height],l.he,u),x(m,b,"clipRight",a,0,1,g?[p.width,0]:[0,p.width],l.he,u)):o==s.TOP_RIGHT&&(x(m,b,"clipBottom",a,0,1,g?[p.height,0]:[0,p.height],l.he,u),x(m,b,"clipLeft",a,0,1,[p.width,0],l.he,u)),x(m,b,"resetClip",a,1,0,["",""],l.he,f,d.zi)}else h==T.ZOOM?o==s.IN?(x(m,b,"scale",a,0,1,[0,1],l.Yc,u),x(m,b,"opacity",a,0,1,[0,1],l.he,u)):o==s.OUT&&(x(m,b,"scale",a,0,1,[2,1],l.Yc,u),x(m,b,"opacity",a,0,1,[0,1],l.he,u)):h==T.COVER?o==s.BOTTOM?x(m,b,"translateY",a,0,1,[p.height],l.Fc,u):o==s.LEFT?x(m,b,"translateX",a,0,1,[-p.width],l.Fc,u):o==s.RIGHT?x(m,b,"translateX",a,0,1,[p.width],l.Fc,u):o==s.TOP?x(m,b,"translateY",a,0,1,[-p.height],l.Fc,u):o==s.BOTTOM_LEFT?(x(m,b,"translateY",a,0,1,[p.height],l.Fc,u),x(m,b,"translateX",a,0,1,[-p.width],l.Fc,u)):o==s.BOTTOM_RIGHT?(x(m,b,"translateY",a,0,1,[p.height],l.Fc,u),x(m,b,"translateX",a,0,1,[p.width],l.Fc,u)):o==s.TOP_RIGHT?(x(m,b,"translateY",a,0,1,[-p.height],l.Fc,u),x(m,b,"translateX",a,0,1,[p.width],l.Fc,u)):o==s.TOP_LEFT&&(x(m,b,"translateY",a,0,1,[-p.height],l.Fc,u),x(m,b,"translateX",a,0,1,[-p.width],l.Fc,u)):h==T.UNCOVER?(i.nn(!0),o==s.BOTTOM?x(m,w,"translateY",a,0,1,[0,-v.height],l.he,c):o==s.LEFT?x(m,w,"translateX",a,0,1,[0,v.width],l.he,c):o==s.RIGHT?x(m,w,"translateX",a,0,1,[0,-v.width],l.he,c):o==s.TOP?x(m,w,"translateY",a,0,1,[0,v.height],l.he,c):o==s.BOTTOM_LEFT?(x(m,w,"translateY",a,0,1,[0,-v.height],l.he,c),x(m,w,"translateX",a,0,1,[0,v.width],l.he,c)):o==s.BOTTOM_RIGHT?(x(m,w,"translateY",a,0,1,[0,-v.height],l.he,c),x(m,w,"translateX",a,0,1,[0,-v.width],l.he,c)):o==s.TOP_RIGHT?(x(m,w,"translateY",a,0,1,[0,v.height],l.he,c),x(m,w,"translateX",a,0,1,[0,-v.width],l.he,c)):o==s.TOP_LEFT&&(x(m,w,"translateY",a,0,1,[0,v.height],l.he,c),x(m,w,"translateX",a,0,1,[0,v.width],l.he,c))):h==T.REVEAL?(x(m,b,"opacity",a,0,1,[0,1]),x(m,b,"translateX",a,0,1,[20,0],l.he,u),x(m,b,"translateY",a,0,1,[5,0],l.he,u),x(m,w,"opacity",a,0,1,[1,0]),x(m,w,"translateX",a,0,1,[0,-20],l.he,c),x(m,w,"translateY",a,0,1,[0,-5],l.he,c)):h==T.FLY_THROUGH&&(o==s.OUT?x(m,w,"scale",a,0,1,[1,.5],l.Yc):o==s.IN&&x(m,w,"scale",a,0,1,[1,1.5],l.Yc),x(m,w,"opacity",a,0,1,[1,0]),o==s.OUT?x(m,b,"scale",a,0,1,[1.5,1],l.Yc):o==s.IN&&x(m,b,"scale",a,0,1,[.5,1],l.Yc),x(m,b,"opacity",a,0,1,[0,1]));return m}}(AtomiAP),function(t){"use strict";t.formatMSString=function(t){var i,s,e;return s=((e=Math.round(t/1e3))-(i=e%60))/60,i=i>=10?""+i:"0"+i,(s=s>=10?""+s:"0"+s)+":"+i}}(window.AtomiAP=window.AtomiAP||{}),function(t,i){"use strict";var s=t.DisplayMode,e=t.createClass({$init:function(e){this.yf={responsive:!1,slideWidth:500,slideHeight:800},this.Oe=!1,this.Tf=[],this.xf=[],this.Xe=1,this.ea=null,this.Cs=null,this.Sf=null,this.Ef=null,this.Mf=null,this.Cf=null,this.If=null,this.Pf=null,this.Rf="",this.Af=i('\t\t\t\t<div class="ap-content-area">\t\t\t\t\t<div class="ap-stage" style="z-index: 1">\t\t\t\t\t\t<div class="ap-canvas" style="overflow:hidden; z-index: 1">\t\t\t\t\t\t\t<div class="ap-slides" style="transform-origin: 0% 0%; width: 100%; height: 100%; position: absolute; top: 0; left: 0"></div>\t\t\t\t\t\t\t<div class="ap-feedback-slides" style="transform-origin: 0% 0%; width: 100%; height: 100%; position: absolute; top: 0; left: 0; pointer-events: none;"></div>\t\t\t\t\t\t</div>\t\t\t\t\t</div>\t\t\t\t</div>')[0],this.loadingUi=new CanvasLoader(this.Af,e);var n=this;this.za={mode:s.AUTOFIT,prevMode:s.AUTOFIT,register:function(){var e=this;this.Df=function(){var h=t.fullscreen.fullscreenElement();if(h){var r=i(n.Rf)[0];h==r&&(i(r).addClass("ap-fullscreen"),n.layout())}else i(n.Rf).removeClass("ap-fullscreen"),e.mode==s.FULLSCREEN?e.changeMode(e.prevMode):n.layout()},t.fullscreen.addEventListener("fullscreenchange",this.Df,!1)},unregister:function(){t.fullscreen.removeEventListener("fullscreenchange",this.Df,!1)},changeMode:function(e){if(this.mode!=e){var h=n.stage()[0];h&&(h.scrollLeft=h.scrollTop=0),this.prevMode=this.mode,this.mode=e,i(n).trigger("ui:ap-displayModeChanged",[e]),this.mode==s.FULLSCREEN?t.fullscreen.requestFullscreen(i(n.Rf)[0]):t.fullscreen.fullscreenElement()?t.fullscreen.exitFullscreen():n.layout()}}}},container:function(){return i(this.Rf)},stage:function(){return i(".ap-stage",i(this.Rf))},canvas:function(){return i(".ap-canvas",i(this.Rf))},contentArea:function(){return i(".ap-content-area",i(this.Rf))},sidebar:function(){return i(".ap-side-bar",i(this.Rf))},sidebarExpand:function(){return i(".ap-side-bar-expand",i(this.Rf))},companyLogo:function(){return i(".ap-company-logo",i(this.Rf))},presenterInfo:function(){return i(".ap-presenter-info",i(this.Rf))},tocContainer:function(){return i(".ap-toc-container",i(this.Rf))},resourcesContainer:function(){return i(".ap-resources-container",i(this.Rf))},topbar:function(){return i(".ap-toolbar-top",i(this.Rf))},bottombar:function(){return i(".ap-toolbar-bottom",i(this.Rf))},toolbar:function(){return this.bottombar()},showToc:function(t){this.Sf&&(t?(this.Sf.show(),this.Sf.scrollToCurrentSlide()):this.Sf.hide(),2==this.ea.TocStyle&&this.layout())},tocVisible:function(){return!(!this.Sf||!this.Sf.isShow())},showSidebar:function(t){t?(this.sidebar().show(),this.sidebarExpand().attr("sidebar-show",!0),this.tocVisible()&&this.Sf.scrollToCurrentSlide()):(this.sidebar().hide(),this.sidebarExpand().attr("sidebar-show",!1)),this.layout(),t&&"false"===this.sidebarExpand().attr("data-value")&&this.wn(!0,!0)},sidebarVisible:function(){var t=this.sidebar();return t&&"none"!=t.css("display")},showResources:function(t){this.Pf&&(t?this.Pf.show():this.Pf.hide())},resourcesVisible:function(){return this.Pf&&this.Pf.isShow()},autoHidePlayerBar:function(t){0==arguments.length?(this.Mf&&this.Mf.autoHide(),this.Ef&&this.Ef.autoHide()):(this.Mf&&this.Mf.isAutoHide()||this.Ef&&this.Ef.isAutoHide())!=t&&(this.Mf&&this.Mf.autoHide(t),this.Ef&&this.Ef.autoHide(t),this.layout())},showTopbar:function(t){this.Mf&&(t?this.Mf.show():this.Mf.hide(),this.layout())},topbarVisible:function(){return this.Mf&&this.Mf.visible()},showBottombar:function(t){this.Ef&&(t?this.Ef.show():this.Ef.hide(),this.layout())},bottombarVisible:function(){return this.Ef&&this.Ef.visible()},showToolbar:function(t){this.showBottombar(t)},toolbarVisible:function(){return this.bottombarVisible()},isAutoFit:function(){return this.za.mode==s.AUTOFIT||this.za.mode==s.FULLSCREEN},getMaxContentSize:function(){var t,s,e,n,h,r,a=this.ea.SideBarPos,o=this.topbar(),u=this.bottombar(),c=this.sidebar(),f=i(this.Rf),l=parseInt(this.contentArea().css("padding-left"));return t=0==c.length||"none"==c.css("display")||0==a||c[0].hasAttribute("collapse")?0:c[0].offsetWidth,s=0==o.length||"none"==o.css("display")?0:o.outerHeight(!0),e=0==u.length||"none"==u.css("display")?0:u.outerHeight(!0),r=f.width()-t-(t>0?3:2)*l,h=f.height()-s-e-2*l,n=r,void 0!==this.Nf&&r>this.Nf&&(r=this.Nf),{width:r,height:h,maxContainerWidth:n}},setMaxContentWidth:function(t){this.Nf=t},setSlideSize:function(i,s){this.yf.slideWidth===i&&this.yf.slideHeight===s||(t.logDebug("Change slide size from "+this.yf.slideWidth+"x"+this.yf.slideHeight+" to "+i+"x"+s),this.yf.slideWidth=i,this.yf.slideHeight=s,this.layout())},getContainerFitRect:function(){var t,s,e,n,h,r,a,o,u=this.ea.SideBarPos,c=this.topbar(),f=this.bottombar(),l=this.sidebar(),d=this.contentArea(),p=i(this.Rf),v=d.width(),m=d.height(),b=d.position().top,w=parseInt(d.css("padding-left")),g=0;return 0!=l.length&&"none"!=l.css("display")&&0!=u||(v-=w),0==c.length||"none"==c.css("display")?(n=e=h=0,m-=w,g=b+=w):(n=c.outerWidth(!0),e=c.outerHeight(!0),h=b-(c.position().top+e)),0==f.length||"none"==f.css("display")?(a=r=o=0,m-=w):(a=f.outerWidth(!0),r=f.outerHeight(!0),o=f.position().top-(b+m)),t=Math.max(v,n,a),s=m+e+h+r+o,{x:(p.width()-t)/2,y:g,width:t,height:s}},Of:function(){var t=i("<div>").css({visibility:"hidden",width:100,height:100,overflow:"scroll"}).appendTo(i(this.Rf)),s=i("<div>").css({width:"100%"}).appendTo(t).outerWidth();return t.remove(),100-s},layout:function(){if(this.Oe){var t,e,n,h,r,a,o,u,c,f=this.yf.slideWidth,l=this.yf.slideHeight,d=this.ea.SideBarPos,p=this.getMaxContentSize(),v=this.stage(),m=this.canvas(),b=this.contentArea(),w=this.sidebar(),g=this.sidebarExpand(),_=this.topbar(),k=this.bottombar(),y=i(this.Rf),T=parseInt(this.contentArea().css("padding-left")),x=this.za.mode,S=0==this.ea.PlayerSize,E=this.Of(),M=E;if(this.yf.responsive){t=p.width,e=Math.min(p.height,l);var C=!1;if(x==s.FULLSCREEN&&p.maxContainerWidth>t){var I=p.maxContainerWidth/f;l*I>p.height&&(I=p.height/l),I>1&&(C=!0,e=l*I,t=f*I,v.css("overflow-x","hidden"),v.css("overflow-y","hidden"),v.width(t).height(e),m.width(f).height(l),m.css("transform","scale("+I+","+I+")"),m.css("transform-origin","0% 0%"),E=0,M=0,this.Xe=I)}C||(l!=e?v.css("overflow-y","auto"):v.css("overflow-y","hidden"),v.width(t).height(e),m.width("100%").height(l),m.css("transform",""),m.css("transform-origin",""),E=l>e?E:0,M=0,this.Xe=1),m.trigger("ap-scaleChanged")}else(e=l*(I=p.width/f))>p.height&&(I=p.height/l),this.isAutoFit()||I<1?(t=f*I,e=l*I):(t=f,e=l,I=1),v.width(t).height(e),this.isAutoFit()?(v.css("overflow-x","hidden"),v.css("overflow-y","hidden"),m.width(f).height(l),m.css("transform","scale("+I+","+I+")"),m.css("transform-origin","0% 0%"),E=0,M=0,this.Xe=I):(f!=t?v.css("overflow-x","auto"):v.css("overflow-x","hidden"),l!=e?v.css("overflow-y","auto"):v.css("overflow-y","hidden"),m.width(f).height(l),m.css("transform",""),m.css("transform-origin",""),M=f>t?M:0,E=l>e?E:0,this.Xe=1),m.trigger("ap-scaleChanged");n=0==w.length||"none"==w.css("display")||0==d||w[0].hasAttribute("collapse")?0:w[0].offsetWidth,h=0==_.length||"none"==_.css("display")?0:_.outerHeight(!0),r=0==k.length||"none"==k.css("display")?0:k.outerHeight(!0),a=Math.min(y.width(),v.width()+n+(n>0?3:2)*T+E),u=v.height()+2*T+M,o=(y.width()-a)/2,c=h+(y.height()-u-h-r)/2,S?b.css({left:o,top:c}).outerWidth(a).outerHeight(u):b.css({left:o,top:h}).outerWidth(a).outerHeight(u),1==d?(v.css({left:n+(n>0?2:1)*T,top:T}),w.css({left:T,top:T,height:v.height()+M})):2==d?(v.css({left:T,top:T}),w.css({right:T,top:T,height:v.height()+M})):(v.css({left:T,top:T}),w.hide(),this.sidebarExpand().attr("sidebar-show",!1)),S?(_.css({left:0,top:0}).outerWidth(y.width()),k.css({left:0,top:y.height()-r}).outerWidth(y.width())):(_.css({left:o,top:0}).outerWidth(a),k.css({left:o,top:h+u}).outerWidth(a));var P=this.ea.SideBarWidth;a=v.width()+P+(P>0?3:2)*T+E,P<=2*(t-P-16)||a<y.width()?"none"!=g.css("display")&&this.wn(!0):P>2*t?this.wn(!1):this.wn(),this.Lf=this.getContainerFitRect(),this.If&&this.If.layout(this.Lf),i(this).trigger("ui:ap-layout")}},create:function(s,e,n,h,r,o){var u=o.playerLayouts.topbar||"",c=o.playerLayouts.bottombar||"",l=o.playerLayouts.sidebar||"";if(this.destroy(),this.Oe=!0,this.Rf=s,this.ea=r,this.yf=o,this.yf.responsive&&(t.fullscreen.fullscreenEnabled()||(this.ea.ShowDisplayModeBtn=!1)),this.Ja=o.playerIcons,this.Tf=[],this.xf=[],this.Ff=n,this.Cs=new t.Locale(this.yf.language,this.yf.textDir),this.Mf=""!=u?new t.RLToolbar(this,u,!0):null,this.Ef=""!=c?new t.RLToolbar(this,c,!1):null,this.contentArea().append(l),0==r.TocStyle||0==this.tocContainer().length?(this.Sf=null,this.tocContainer().remove()):(1==r.TocStyle&&(this.tocContainer().appendTo(this.container()),this.tocContainer().hide()),this.Sf=new t.RLToc(this,e,n),this.Uf=function(){this.tocContainer()&&1==r.TocStyle&&this.tocVisible()&&this.Sf&&this.Yf()},i(this).on("ui:ap-layout",this.Uf)),!h||h.length<=0||0==this.resourcesContainer().length?(this.Pf=null,this.resourcesContainer().remove()):(this.resourcesContainer().appendTo(this.container()),this.resourcesContainer().hide(),this.Pf=new a(this,h),this.Hf=function(){var t=this.resourcesContainer();if(t&&this.Pf){var e=i(".ap-tool-resources",s);e&&this.Bf(e,t,400,300)}},i(this).on("ui:ap-layout",this.Hf)),!1===r.ShowTopBar&&this.showTopbar(!1),r.AutoHidePlayerBar){if(!this.zf){this.zf=new f(this.container()),this.zf.appendTo(this.container());var d=this;this.zf.onClick(function(){var t=d.Mf&&d.Mf.isAutoHide()||d.Ef&&d.Ef.isAutoHide();d.autoHidePlayerBar(!t)})}this.autoHidePlayerBar()}if(this.Xf(),this.Gf(this.Rf),this.za.register(),this.za.changeMode(this.ea.DisplayMode),t.browser.macOS){var p=this;setTimeout(function(){p.layout()},100)}else this.layout()},Xf:function(){var t=this,e=this.Cs,n=i(this.Rf),h=i(this);h.on("ap-pause",function(s,h){i(".ap-tool-play",n).each(function(t){var s=i(this);"button"==s.attr("role")?s.attr("aria-pressed",h?"true":"false").attr("data-value",h).attr("title",e.text(h?"PlayPrez":"PausePrez")):"menuitemcheckbox"==s.attr("role")&&s.attr("aria-checked",h?"true":"false").attr("data-value",h)}),t.showPrezStateFeedback(h)}),h.on("ap-speed",function(t,s){i(".ap-tool-speed",n).each(function(t){i(this).attr("data-value",s)})}),h.on("ap-mute",function(t,s){i(".ap-tool-sound",n).each(function(t){var n=i(this);"button"==n.attr("role")?i(this).attr("aria-pressed",s?"true":"false").attr("data-value",s).attr("title",e.text(s?"Unmute":"Mute")):"menuitemcheckbox"==n.attr("role")&&n.attr("aria-checked",s?"true":"false").attr("data-value",s)})}),h.on("ap-cc",function(t,s){i(".ap-tool-cc",n).each(function(t){var n=i(this);"button"==n.attr("role")?i(this).attr("aria-pressed",s?"true":"false").attr("data-value",s).attr("title",e.text(s?"HideCC":"ShowCC")):"menuitemcheckbox"==n.attr("role")&&n.attr("aria-checked",s?"true":"false").attr("data-value",s)})}),h.on("ap-sidebar",function(t,s){i(".ap-tool-sidebar",n).each(function(t){var n=i(this);"button"==n.attr("role")?i(this).attr("aria-pressed",s?"true":"false").attr("data-value",s).attr("title",e.text(s?"HideSidebar":"ShowSidebar")):"menuitemcheckbox"==n.attr("role")&&n.attr("aria-checked",s?"true":"false").attr("data-value",s)})}),h.on("ui:ap-displayModeChanged",function(h,r){var a,o=t.yf.responsive;o?a=r==s.FULLSCREEN?"ExitFullScreen":"FullScreen":r==s.ACTUAL_SIZE?a="ActualSize":r==s.AUTOFIT?a="AutoFit":r==s.FULLSCREEN&&(a="ExitFullScreen"),i(".ap-tool-displaymode",n).each(function(){i(this).attr("data-value",o?2:r).attr("title",e.text(a))})}),h.on("ap-progress",function(s,h,r,a){var o,u,c=t.Tf;for(o=0,u=c.length;o<u;++o)c[o].setValue(a);void 0!==t.Vf&&Math.round(a/1e3)==Math.round(this.Vf/1e3)||(t.Vf=a,i(".ap-tool-position",n).html(e.number(AtomiAP.formatMSString(a))),i(".ap-tool-slide-index",n).html(e.number(h+1)))}),h.on("ap-volume",function(i,s){var e,n,h=t.xf;for(e=0,n=h.length;e<n;++e)h[e].setValue(s)}),h.on("ui:ap-pause",function(){t.$f=!0}),h.on("ap-toc",function(s,h){i(".ap-tool-toc",n).each(function(s){var n=i(this);t.Sf&&("button"==n.attr("role")?n.attr("aria-pressed",h?"true":"false").attr("data-value",h).attr("title",e.text(h?"HideToc":"ShowToc")):"menuitemcheckbox"==n.attr("role")&&n.attr("aria-checked",h?"true":"false").attr("data-value",h))})}),h.on("ap-tool-multiple-language-cc",function(t,s){this.yf.defautlLanguageCCIndex=s,i(".ap-tool-cc",n).each(function(t){var n=i(this);s=-1!=s,"button"==n.attr("role")?i(this).attr("aria-pressed",s?"true":"false").attr("data-value",s).attr("title",e.text("ClosedCaption")):"menuitemcheckbox"==n.attr("role")&&n.attr("aria-checked",s?"true":"false").attr("data-value",s)})}),"Demo"==t.yf.playMode&&t.stage().on("click",function(){h.trigger("ui:ap-pause")})},Wf:function(){"Demo"==this.yf.playMode&&this.stage().off("click"),i(this).off("ap-pause").off("ap-speed").off("ap-mute").off("ap-cc").off("ui:ap-displayModeChanged").off("ap-progress").off("ap-volume").off("ui:ap-layout")},Gf:function(t){var e=this,n=this.yf.responsive,h=i(t),r=this.Cs;this.jf(t),i(".ap-tool-restart",h).on("click",function(){i(e).trigger("ui:ap-restart")}),i(".ap-tool-first",h).on("click",function(){i(e).trigger("ui:ap-first")}),i(".ap-tool-prev",h).on("click",function(){i(e).trigger("ui:ap-previous")}),i(".ap-tool-play",h).on("click",function(){i(e).trigger("ui:ap-pause")}),i(".ap-tool-next",h).on("click",function(){i(e).trigger("ui:ap-next")}),i(".ap-tool-last",h).on("click",function(){i(e).trigger("ui:ap-last")}),i(".ap-tool-speed_0_5",h).on("click",function(){i(e).trigger("ui:ap-speed",[.5])}),i(".ap-tool-speed_1_0",h).on("click",function(){i(e).trigger("ui:ap-speed",[1])}),i(".ap-tool-speed_1_5",h).on("click",function(){i(e).trigger("ui:ap-speed",[1.5])}),i(".ap-tool-speed_2_0",h).on("click",function(){i(e).trigger("ui:ap-speed",[2])}),i(".ap-tool-sound",h).on("click",function(){i(e).trigger("ui:ap-sound")}),i('.ap-tool-cc[role="button"]',h).on("click",function(){return e.yf.multipleLanCCs&&e.yf.multipleLanCCs.length>1?(e.Qf(this),!1):(i(e).trigger("ui:ap-cc"),!0)}),i('.ap-tool-cc[role="menuitemcheckbox"]',h).on("click",function(){return i(e).trigger("ui:ap-cc"),!0}),i(".ap-tool-about",h).on("click",function(){i(e).trigger("ui:ap-about")}),i(".ap-tool-actualsize",h).on("click",function(){e.za.changeMode(s.ACTUAL_SIZE)}),i(".ap-tool-autofit",h).on("click",function(){e.za.changeMode(s.AUTOFIT)}),i(".ap-tool-fullscreen",h).on("click",function(){e.za.changeMode(s.FULLSCREEN)}),i(".ap-tool-toc",h).on("click",function(){return i(e).trigger("ui:ap-toc"),1!=e.ea.TocStyle}),i(".ap-tool-sidebar",h).on("click",function(){i(e).trigger("ui:ap-sidebar")}),i('.ap-tool-speed[role="button"]',h).on("click",function(){return e.Kf(this),!1}),i('.ap-tool-displaymode[role="button"]',h).on("click",function(){return e.yf.responsive?(e.za.mode==s.FULLSCREEN?e.za.changeMode(s.ACTUAL_SIZE):e.za.changeMode(s.FULLSCREEN),!0):(e.qf(this),!1)}),i('.ap-tool-setting[role="button"]',h).on("click",function(){return e.Jf(this),!1}),i(".ap-tool-resources",h).on("click",function(){return i(e).trigger("ui:ap-resources"),e.Bf(this,e.resourcesContainer(),400,300),!1}),i(".ap-tool-exit",h).on("click",function(){i(e).trigger("ui:ap-exit")}),i(".ap-side-bar-expand",h).on("click",function(){"true"===e.sidebarExpand().attr("data-value")?e.wn(!1,!0):e.wn(!0,!0)});for(var a=0,o=0;o<this.Ff.length;++o)a+=this.Ff[o].duration;i(".ap-tool-progress",h).each(function(s){var n={followMouse:!1,max:a,slideInfos:e.Ff};n.thumbnailPrefixPath=e.yf.resourceLocation+e.yf.fileNamePrefix;var h=new u(i(this),e.ea,n);h.Zf=t,e.Tf.push(h),i(h).on("valueChanged",function(t,s){i(e).trigger("ui:ap-progress",[s])})}),i(".ap-tool-volume",h).each(function(s){var n=new u(i(this),i.extend({},e.ea,{Navigation:!0}),{followMouse:!0});n.Zf=t,e.xf.push(n),i(n).on("valueChanging",function(t,s){i(e).trigger("ui:ap-volume",[s])}).on("valueChanged",function(t,s){i(e).trigger("ui:ap-volume",[s])})}),i(".ap-tool-duration",h).html(r.number(AtomiAP.formatMSString(a))),i(".ap-tool-slide-count",h).html(r.number(this.Ff.length||0)),i(".ap-tool-projectname",h).html(e.yf.projectName),i(".ap-tool-projectdesc",h).html(e.yf.description),i(".ap-tool-displaymode",h).attr("data-value",n?"2":e.za.mode),i(".ap-presenter-info",h).each(function(t){if(e.ea.ShowAuthorInfo||e.ea.ShowAuthorImage||e.ea.ShowCompanyLogo||e.ea.ShowAuthorVideo){if(e.ea.ShowCompanyLogo&&e.yf.companyLogo){var s=e.yf.companyLogo[0],n=e.yf.companyLogo[1],h=e.yf.resourceLocation+e.yf.fileNamePrefix+"res_"+s+"."+n;i(this).append('<div class="ap-company-logo"><img src="'+h+'" /></div>')}if(e.ea.ShowAuthorImage&&e.yf.authorImage){s=e.yf.authorImage[0],n=e.yf.authorImage[1],h=e.yf.resourceLocation+e.yf.fileNamePrefix+"res_"+s+"."+n;i(this).append('<div class="ap-presenter-image"><img src="'+h+'" /></div>')}e.ea.ShowAuthorVideo&&i(this).append('<div class="ap-presenter-video"></div>'),e.ea.ShowAuthorInfo&&(e.yf.authorName&&i(this).append('<div class="ap-presenter-name">'+e.yf.authorName+"</div>"),e.yf.authorDesc&&i(this).append('<div class="ap-presenter-desc">'+e.yf.authorDesc+"</div>")),i(this).show()}else i(this).hide()}),i(".ap-tool-multiple-language-cc",h).on("click",function(){var t=i(this).attr("ap-multiple-language-index");t=parseInt(t),i(e).trigger("ui:ap-multiple-language-cc",t)})},jf:function(t){var s,e,n,h,r=i(t),a=this.Cs,o=this.ea,u=[["ap-tool-restart","Restart",o.ShowRestartBtn,["restart"]],["ap-tool-first","FirstSlide",o.ShowFirstBtn,["first"]],["ap-tool-prev","PreviousSlide",o.ShowPrevBtn,["prev"]],["ap-tool-play","PlayPrez",o.ShowPlayBtn,["play","pause"]],["ap-tool-next","NextSlide",o.ShowNextBtn,["next"]],["ap-tool-last","LastSlide",o.ShowLastBtn,["last"]],["ap-tool-speed","PlaybackSpeed",o.ShowSpeedBtn,["speed05","speed10","speed15","speed20"]],["ap-tool-sound","Mute",o.ShowVolumeBtn,["mute","sound"]],["ap-tool-about","About",o.ShowInfoBtn,["about"]],["ap-tool-cc","HideCC",o.ShowCCBtn,["cchide","ccshow"]],["ap-tool-toc","HideToc",o.ShowTocBtn,["tochide","tocshow"]],["ap-tool-sidebar","HideSidebar",o.ShowSidebarBtn,["sidebarhide","sidebarshow"]],["ap-tool-displaymode","AutoFit",o.ShowDisplayModeBtn,["actualsize","autofit","fullscreen"]],["ap-tool-setting","Settings",!0,["setting"]],["ap-tool-progress","PrezProgress",o.ShowProgressBar,[]],["ap-tool-volume","AdjustVolume",o.ShowVolumeBar,[]],["ap-tool-position","",o.ShowPosition,[]],["ap-tool-duration","",o.ShowPrezLen,[]],["ap-tool-resources","Resources",o.ShowResourcesBtn,["resources"]],["ap-tool-slide-index","",!0,[]],["ap-tool-slide-count","",!0,[]],["ap-tool-exit","Exit",o.ShowExitBtn,["exit"]]];for(s=0,e=u.length;s<e;++s)if((h=i("."+(n=u[s])[0],r)).hasClass("ap-button")||h.hasClass("ap-label")||h.hasClass("ap-slider")){if(h.attr("title",a.text(n[1])).attr("data-enabled",n[2]),n[2]||h.hide(),h.hasClass("ap-button")&&this.Ja){for(var c='<div class="ap-button-icon">',f=n[3],l=0;l<f.length;++l)c+=this.Ja[f[l]];c+="</div>",c+='<div class="ap-button-label">'+a.text(n[1])+"</div>",h.append(c)}(h.hasClass("ap-tool-play")||h.hasClass("ap-tool-cc")||h.hasClass("ap-tool-sidebar")||h.hasClass("ap-tool-sound")||h.hasClass("ap-tool-toc"))&&h.attr("aria-pressed","false"),h.hasClass("ap-button")&&h.attr("role","button"),h.hasClass("ap-label")&&h.attr("role","presentation"),h.hasClass("ap-slider")&&h.attr("role","slider")}},il:function(t){var s=i(t);i(".ap-tool-restart",s).off("click"),i(".ap-tool-first",s).off("click"),i(".ap-tool-prev",s).off("click"),i(".ap-tool-play",s).off("click"),i(".ap-tool-next",s).off("click"),i(".ap-tool-last",s).off("click"),i(".ap-tool-speed",s).off("click"),i(".ap-tool-speed_0_5",s).off("click"),i(".ap-tool-speed_1_0",s).off("click"),i(".ap-tool-speed_1_5",s).off("click"),i(".ap-tool-speed_2_0",s).off("click"),i(".ap-tool-sound",s).off("click"),i(".ap-tool-about",s).off("click"),i(".ap-tool-cc",s).off("click"),i(".ap-tool-toc",s).off("click"),i(".ap-tool-sidebar",s).off("click"),i(".ap-tool-displaymode",s).off("click"),i(".ap-tool-actualsize",s).off("click"),i(".ap-tool-autofit",s).off("click"),i(".ap-tool-fullscreen",s).off("click"),i(".ap-tool-setting",s).off("click"),i(".ap-tool-resources",s).off("click"),i(".ap-tool-exit",s).off("click"),i(".ap-side-bar-expand",s).off("click"),i(".ap-tool-multiple-language-cc",s).off("click");var e,n,h,r=this.Tf;for(this.Tf=[],e=0,n=r.length;e<n;++e)(h=r[e]).Zf==t?(i(h).off("valueChanged"),h.destroy()):this.Tf.push(h);for(r=this.xf,this.xf=[],e=0,n=r.length;e<n;++e)(h=r[e]).Zf==t?(i(h).off("valueChanged").off("valueChanging"),h.destroy()):this.xf.push(h)},destroy:function(){this.za.unregister(),this.Wf(),this.il(this.Rf),this.Sf&&(this.Sf.destroy(),this.Sf=null),this.Ef&&(this.Ef.destroy(),this.Ef=null),this.Mf&&(this.Mf.destroy(),this.Mf=null),this.Pf&&(this.Pf.destroy(),this.Pf=null),this.sl(),this.contentArea().remove(),this.Oe=!1},appendTo:function(t){i(t).append(this.Af),this.Oe||i(this.Af).outerWidth(i(t).width()).outerHeight(i(t).height())},showMsg:function(i,s,e,n,h){void 0===h&&(h=[]),void 0===s&&(s=!0);var r=this.Cs;this.If&&this.If.close();var a=this,o=new t.RLPopup(i,a);o.setOptions({isShowClose:s,overlay:!0,navItems:h,textDirection:a.yf.textDir,closeText:r.text("Close")}),o.onShow(function(){a.If=o,e&&e()}),o.onClose(function(){a.If=void 0,n&&n()}),o.show(this.Rf,this.Lf)},showAbout:function(t,i,s){var e=[],n="",h=this.Cs;""!=t.Homepage&&(n='<a class="ap-about-homepage" href="'+t.Homepage+'" target="_blank" tabindex="-1">'+t.Homepage+"</a>");var r='<div style="line-height:1.8;padding:5px;"> \t\t\t\t\t<b>'+t.Name+"</b> \t\t\t\t\t<br />"+h.text("Author")+": <b>"+t.Author+"</b> \t\t\t\t\t<br />"+h.text("Copyright")+": <b>"+t.Copyright+"</b> \t\t\t\t\t<br />"+h.text("Homepage")+": <b>"+n+'</b> \t\t\t\t\t</div> \t\t\t\t\t<div style="line-height:1.8;border-top:solid 1px #DDDDDD;padding:5px;"> \t\t\t\t\t'+h.text("BuiltWith")+' \t\t\t\t\t<a class="ap-about-app-home" dir="ltr" href="'+t.AppHomePage+'" title="'+t.AppHomePage+'" target="_blank" tabindex = "-1">'+t.Generator+"</a> \t\t\t\t\t<br />Atomi Systems, Inc. \t\t\t\t</div>";""!=t.Homepage&&e.push(".ap-about-homepage"),e.push(".ap-about-app-home"),this.showMsg(r,!0,i,s,e)},showUnmuteHintMsg:function(){var t,s,e;e=this.stage(),i(this.Rf),t='<div id="UnmuteHint" style="position:absolute;top:20px;left:0px;width:100%;height:auto;z-index:8;pointer-events:none;text-align:right;background-color:none;"><span style="background-color:rgba(255, 255, 255, 0.8);padding:15px;font-size:16px;font-family:Arial;border: 1px solid #777777;margin:10px;">'+this.Cs.text("ClickToUnmute")+"</span></div>",e.append(t),s=i("#UnmuteHint",e),setTimeout(function(){s.fadeOut(400,function(){s.remove()})},3e3)},hideUnmuteHintMsg:function(){var t=i("#UnmuteHint",this.stage());t&&t.remove()},showPrezStateFeedback:function(t){var s,e=this.stage(),n=this;if(n.$f){n.$f=!1,n.el&&clearTimeout(n.el),n.nl&&clearTimeout(n.nl),i(".ap-prez-state-btn",e).remove(),s='<div class="ap-prez-state-btn" data-animating="false">'+n.Ja[t?"pause":"play"]+"</div>",e.append(s);var h=i(".ap-prez-state-btn",e);if(0!=h.length){var r=h.get(0);n.el=setTimeout(function(){r.setAttribute("data-animating","true"),n.el=void 0},100),n.nl=setTimeout(function(){r.parentNode.removeChild(r),n.nl=void 0},2e3)}}},Bf:function(t,s,e,n){var h,r,a,o,u,c,f,l,d=this.container(),p=this.Lf,v=i(t);h=Math.min(e,d.width()),r=Math.min(n,d.height()),a=v.offset().left+v.width()/2-h/2;for(var m=0;m<=1&&(u=v.offset().top-(d.offset().top+r),c=d.offset().top+d.height()-(v.offset().top+v.height()+r),f=d.offset().left+d.width()-(v.offset().left+v.width()+h),l=v.offset().left-(d.offset().left+h),u<0&&c<0&&f<0&&l<0);++m)r=d.offset().top+d.height()-(v.offset().top+v.height());u>=0?(o=v.offset().top-d.offset().top-r,a=Math.max(0,Math.min(a,p.x+p.width-h))):c>=0?(o=v.offset().top+v.height()-d.offset().top,a=Math.max(0,Math.min(a,p.x+p.width-h))):f>=0?(o=0,a=v.offset().left+v.width()+d.offset().left):(o=0,a=v.offset().left-d.offset().left-h),s.css({left:a,top:o,position:"absolute"}).outerWidth(h,!0).outerHeight(r,!0)},Yf:function(){if(this.Sf&&this.tocVisible()){var t,s,e,n,h=this.container(),r=i(".ap-toc-content-wrapper",h),a=i(".ap-toc-container",h),o=i(".ap-toc-header",h),u=i(".ap-toc",h),c=this.topbar(),f=this.bottombar(),l=0==c.length||"none"==c.css("display")?0:c.outerHeight(!0),d=0==f.length||"none"==f.css("display")?0:f.outerHeight(!0),p=this.Lf,v=a.outerHeight(!0)-a.innerHeight()+o.outerHeight(!0)-o.innerHeight(),m=a.outerWidth(!0)-a.innerWidth();t=Math.min(400,p.width-m)+m,s=Math.min(u.outerHeight(!0)+o.outerHeight(!0),p.height-d-l)+v,e=p.x+p.width-t,n=p.y+p.height-d-s,a.css({left:e,top:n,position:"absolute"}).outerWidth(t,!0).outerHeight(s,!0),r.css({"min-height":"0"}),s-v<=o.outerHeight(!0)?(r.css({overflow:""}),a.css({overflow:"auto"})):(r.css({overflow:"auto"}),a.css({overflow:""}))}},hl:function(t,s,e){var n=this.container(),h=this;t.appendTo(n),t.attachEventHanlders(function(t){h.Gf(t)}),t.show(s,e,function(){t.detachEventHandlers(function(t){h.il(t)}),i(h).off("ui:ap-layout.hideMenu")}),i(h).on("ui:ap-layout.hideMenu",function(){t.destroy()})},Kf:function(t){var s=this.rl("mnuspeed");if(s)s.destroy();else{var e=i(t).attr("data-value");void 0==e&&(e=1),(s=new o("mnuspeed",this.Ja,this)).addRadioMenuItem("ap-tool-speed_0_5","0.5x",.5==e),s.addRadioMenuItem("ap-tool-speed_1_0","1.0x",1==e),s.addRadioMenuItem("ap-tool-speed_1_5","1.5x",1.5==e),s.addRadioMenuItem("ap-tool-speed_2_0","2.0x",2==e),this.hl(s,t,!0)}},qf:function(i){var e="mnudisplaymode",n=this.rl(e);if(n)n.destroy();else{var h=this.Cs;(n=new o(e,this.Ja,this)).addRadioMenuItem("ap-tool-actualsize",h.text("ActualSize"),this.za.mode==s.ACTUAL_SIZE),n.addRadioMenuItem("ap-tool-autofit",h.text("AutoFit"),this.za.mode==s.AUTOFIT),t.fullscreen.fullscreenEnabled()&&n.addRadioMenuItem("ap-tool-fullscreen",h.text("FullScreen"),this.za.mode==s.FULLSCREEN),this.hl(n,i,!0)}},Qf:function(t){var s="mnumultiplelanguagecc",e=this.rl(s);if(e)e.destroy();else{var n=this.Cs,h=this.yf,r=h.multipleLanCCs,a=h.defautlLanguageCCIndex,u=(e=new o(s,this.Ja,this)).addRadioMenuItem("ap-tool-multiple-language-cc",n.text("HideCC"),-1==a);i(u).attr("ap-multiple-language-index",-1);for(var c=0,f=r.length;c<f;++c)u=e.addRadioMenuItem("ap-tool-multiple-language-cc",r[c],a==c),i(u).attr("ap-multiple-language-index",c);this.hl(e,t,!0)}},al:function(t){return this.ol?this.ol.push(t):this.ol=[t],this},rl:function(t){if(this.ol)for(var i=0;i<this.ol.length;++i)if(this.ol[i].id()==t)return this.ol[i];return null},ul:function(t){if(this.ol){var i=this.ol.indexOf(t);i>=0&&this.ol.splice(i,1)}return this},sl:function(){if(this.ol)for(;this.ol.length;)this.ol[this.ol.length-1].destroy();return this},Jf:function(e){var n="mnusetting",h=this.rl(n);if(h)h.destroy();else{var r=this.container(),a=this.Cs,u=this,c=this.yf.responsive;h=new o(n,u.Ja,this);var f=[];u.yf.multipleLanCCs&&u.yf.multipleLanCCs.length>1&&(f=u.yf.multipleLanCCs.slice());var l=i(e).closest(".ap-toolbar,.ap-sidebar",r);i(".ap-button",l).each(function(){var e=i(this);"false"!=e.attr("data-enabled")&&"none"==e.css("display")&&["ap-tool-first","ap-tool-prev","ap-tool-next","ap-tool-last","ap-tool-about","ap-tool-restart","ap-tool-exit","ap-tool-play","ap-tool-cc","ap-tool-sound","ap-tool-speed","ap-tool-displaymode"].forEach(function(n){if(e.hasClass(n)){var r="";switch(n){case"ap-tool-first":case"ap-tool-prev":case"ap-tool-next":case"ap-tool-last":case"ap-tool-about":case"ap-tool-restart":case"ap-tool-exit":h.addMenuItem(n,e.attr("title"));break;case"ap-tool-play":case"ap-tool-sound":r||("ap-tool-play"==n?r="PausePrez":"ap-tool-sound"==n&&(r="Mute")),h.addToggleMenuItem(n,a.text(r),"true"==e.attr("aria-pressed"));break;case"ap-tool-cc":if(r||(r="ClosedCaption"),f.length){var l=u.yf.defautlLanguageCCIndex,d=new o("mnumultiplelanguagecc",u.Ja);d.addMenuHeaderItem(a.text("ClosedCaption"));var p=d.addRadioMenuItem("ap-tool-multiple-language-cc",a.text("HideCC"),-1==l);i(p).attr("ap-multiple-language-index",-1);for(var v=0,m=f.length;v<m;++v)p=d.addRadioMenuItem("ap-tool-multiple-language-cc",f[v],l==v),i(p).attr("ap-multiple-language-index",v);h.addSubMenuItem(n,e.attr("title"),d)}else h.addToggleMenuItem(n,a.text(r),"true"==e.attr("aria-pressed"));break;case"ap-tool-speed":var b=e.attr("data-value");void 0==b&&(b=1);var w=new o("mnuspeed",u.Ja);w.addMenuHeaderItem(a.text("PlaybackSpeed")),w.addRadioMenuItem("ap-tool-speed_0_5","0.5x",.5==b),w.addRadioMenuItem("ap-tool-speed_1_0","1.0x",1==b),w.addRadioMenuItem("ap-tool-speed_1_5","1.5x",1.5==b),w.addRadioMenuItem("ap-tool-speed_2_0","2.0x",2==b),h.addSubMenuItem(n,e.attr("title"),w);break;case"ap-tool-displaymode":if(c)t.fullscreen.fullscreenEnabled()&&(u.za.mode==s.FULLSCREEN?h.addToggleMenuItem("ap-tool-autofit",a.text("FullScreen"),!0):h.addToggleMenuItem("ap-tool-fullscreen",a.text("FullScreen"),!1));else{var g=new o("mnudisplaymode",u.Ja);g.addMenuHeaderItem(a.text("DisplayMode")),g.addRadioMenuItem("ap-tool-actualsize",a.text("ActualSize"),u.za.mode==s.ACTUAL_SIZE),g.addRadioMenuItem("ap-tool-autofit",a.text("AutoFit"),u.za.mode==s.AUTOFIT),t.fullscreen.fullscreenEnabled()&&g.addRadioMenuItem("ap-tool-fullscreen",a.text("FullScreen"),u.za.mode==s.FULLSCREEN),h.addSubMenuItem(n,e.attr("title"),g)}}}})}),this.hl(h,e,!0)}},wn:function(t,s){if(!0!==this.cl){var e=this.sidebar(),n=this.presenterInfo(),h=this.tocContainer(),r=this.sidebarExpand();if(0==arguments.length)return 1==this.ea.SideBarPos?(a="none"!==e[0].style.display&&"true"!==e.attr("collapse")?e[0].offsetLeft+e[0].clientWidth:0,e[0].parentNode&&a>e[0].parentNode.clientWidth&&(a=e[0].parentNode.clientWidth)):""!==(a="none"!==e[0].style.display&&"true"!==e.attr("collapse")?e[0].offsetLeft:"")&&a<0&&(a=0),void r.css({left:a});if(t){var a;if(n.show(),2==this.ea.TocStyle&&("false"!==h.attr("toc-show")&&h.show(),h.attr("sidebar-expand",!0)),e.attr("position",1==this.ea.SideBarPos?"left":"right"),s)e.attr("collapse",!1),1==this.ea.SideBarPos?(a=e[0].offsetLeft+e[0].clientWidth,e[0].parentNode&&a>e[0].parentNode.clientWidth&&(a=e[0].parentNode.clientWidth)):(a=e[0].offsetLeft)<0&&(a=0),r.css({left:a});else e.removeAttr("collapse");r.attr({"icon-type":1==this.ea.SideBarPos?"left":"right",title:this.Cs.text("HideSidebar"),"data-value":"true"}),s||r.hide(),i(this).trigger("ui:ap-expand-sidebar",[!0]),this.cl||(this.cl=!0)}else n.hide(),2==this.ea.TocStyle&&(h.hide(),h.attr("sidebar-expand",!1)),r.show(),e.attr({collapse:!0,position:1==this.ea.SideBarPos?"left":"right"}),r.css("left",""),r.attr({"icon-type":1==this.ea.SideBarPos?"right":"left",title:this.Cs.text("ShowSidebar"),"data-value":"false"}),this.cl||(this.cl=!0);1==this.cl&&(this.layout(),this.cl=void 0)}},updateTocEntries:function(t){this.Sf&&this.Sf.updateEntries(t)}}),n=t.createClass({$init:function(t,i){this.yf={isShowClose:!0,overlay:!0,navItems:[],textDirection:"ltr",closeText:"Close",showCallback:void 0,closeCallback:void 0},this.fl=null,this.ll=null,this.dl=null,this.pl=null,this.vl=t,this.ml=i,this.ml&&this.ml.al(this)},bl:function(){var t='\t\t\t\t\t<div class="ap-popup"> \t\t\t\t\t\t<div class="ap-popup-content"> \t\t\t\t\t\t</div> \t\t\t\t\t\t<div class="ap-popup-footer"> \t\t\t\t\t\t\t<a href="#" class="ap-popup-close" role="button" title="'+this.yf.closeText+'"> \t\t\t\t\t\t\t</a> \t\t\t\t\t\t</div> \t\t\t\t\t</div>';this.fl=i(t),this.ll=i(".ap-popup-close",this.fl),this.dl=i(".ap-popup-content",this.fl),"rtl"==this.yf.textDirection&&(i(".ap-popup-content",this.fl).attr("dir",this.yf.textDirection).css("text-align","right"),i(".ap-popup-footer",this.fl).attr("dir",this.yf.textDirection).css("text-align","left")),this.dl.append(this.vl);for(var s=0;s<this.yf.navItems.length;++s)this.yf.navItems[s]=i(this.yf.navItems[s],this.fl)},wl:function(){0!=this.yf.overlay&&(this.pl=i('<div class="ap-popup-hide ap-popup-overlay"></div>'))},setOptions:function(t){i.extend(this.yf,t)},getDom:function(){return this.fl},show:function(t,s){this.Rf=t,this.gl=i(this.Rf).attr("tabindex"),i(this.Rf).attr("tabindex",1),s||(s={x:0,y:0,width:i(t).outerWidth(),height:i(t).outerHeight()}),this.bl(),this.wl(),i(this.Rf).append(this.fl),0==this.yf.isShowClose&&i(".ap-popup-footer",this.fl).hide(),this.fl.attr("role","dialog"),this.showOverlay(),this.layout(s),this.yf.showCallback&&this.yf.showCallback();var e=this,n=this.yf.navItems,h=-1;this.yf.isShowClose&&(this.ll.click(function(){e.close()}),n.push(this.ll),h=n.length-1,this.ll.attr("tabindex","0"),this.ll.focus()),i(this.Rf).bind("mousedown.popup",function(){return i(this).focus(),!1}).bind("keydown.popup",function(t){switch(t.which){case 9:if(n.length>0){t.stopPropagation(),t.preventDefault();var i=!1;if(h>=0&&h<=n.length-1){var s=n[h];0==s.attr("tabindex")&&(i=!0,s.attr("tabindex","-1"),s.blur())}h<0||h>n.length-1?h=0:(h+=i?t.shiftKey?-1:1:0)<0?h=n.length-1:h>n.length-1&&(h=0);var r=n[h];r.attr("tabindex","0"),r.focus()}break;case 27:t.stopPropagation(),t.preventDefault(),e.close();break;case 13:case 32:for(var a=0;a<n.length;++a)if(t.target==n[a][0]){t.stopPropagation();break}}}).focusin(function(){if(!(n.length<=0)){(h<0||h>n.length-1)&&(h=0);var t=n[h];t.get(0)!==document.activeElement&&(t.attr("tabindex","0"),t.focus())}});for(var r=0;r<n.length;++r)n[r].focus(function(t){for(var s=0;s<n.length;++s)if(this==n[s]){h=s;break}i(this).attr("tabindex","0")}).blur(function(t){i(this).attr("tabindex","-1")});i(this.Rf).focus()},showOverlay:function(){0!=this.yf.overlay&&(i(this.Rf).append(this.pl),this.pl.hide().addClass("ap-popup-overlayBG").fadeIn(200))},hideOverlay:function(){if(0!=this.yf.overlay){var t=this;this.pl.fadeOut(200,function(){t.pl.removeClass("ap-popup-overlayBG"),t.pl.addClass("ap-popup-hide"),t.pl.remove()})}},close:function(){this.fl.remove(),this.hideOverlay(),this.yf.closeCallback&&this.yf.closeCallback(),i(this.Rf).unbind("keydown.popup").unbind("focus.popup").unbind("mousedown.popup"),i(this.Rf).attr("tabindex",this.gl),this.ml&&this.ml.ul(this)},onClose:function(t){this.yf.closeCallback=t},onShow:function(t){this.yf.showCallback=t},layout:function(t){this.pl.width(t.width).height(t.height),this.pl.css({left:t.x,top:t.y});var s=Math.min(.5*t.width,370),e=i(".ap-popup-content",this.fl).innerHeight()+i(".ap-popup-footer",this.fl).innerHeight()+10;this.fl.css({width:s,height:e});var n=t.x+(t.width-s)/2-20,h=t.y+(t.height-e)/2-20;this.fl.css({left:n,top:h})},destroy:function(){this.close()}}),h=t.createClass({$init:function(t){this.Xo="",this._l=-1,this.kl="",this.yl="",this.Tl=0,this.xl=!0,this.so=t,this.Sl=[],this.El=!1,this.Wi=!1,this.fl=null},Ml:function(){var t,i,s=this.Sl;for(this.El=!0,this.Wi=!1,t=0,i=s.length;t<i;++t)s[t].El||(this.El=!1),s[t].Wi&&(this.Wi=!0);this.fl&&this.fl.attr("data-status",this.Wi?"current":this.El?"completed":"incomplete"),this.so&&this.so.Ml()},Cl:function(){this.fl&&this.fl.attr("data-status",this.Wi?"current":this.El?"completed":"incomplete"),this.so&&this.so.Ml()},setCompleted:function(t){this.El=t,this.Cl()},setCurrent:function(t){this.Wi=t,this.Cl()},getChildIndex:function(t){var i,s,e=this.Sl;for(i=0,s=e.length;i<s;++i)if(e[i].Xo==t.Xo)return i;return-1},hasChildren:function(){return this.Sl.length>0},isSlide:function(){return this._l>=0},getExpandIconDom:function(){return i(".ap-toc-entry-icon",this.fl)}}),r=t.createClass({$init:function(t,s,e){this.ml=t,this.Il=[],this.Pl=null,this.Rl=null,this.Al=t.tocContainer(),this.Rf=t.Rf,this.Cs=t.Cs,this.Dl={},this.Ff=e;for(var n=0;n<e.length;++n)e[n].thumb&&(this.Dl[e[n].id]=e[n].ti);var h='<div class="ap-toc-header"> \t\t\t\t\t\t\t<div class="ap-toc-header-text">'+this.Cs.text("Toc")+'</div> \t\t\t\t\t\t\t<div class="ap-button ap-tool-toc-close"></div> \t\t\t\t\t\t</div> \t\t\t\t\t\t<div class="ap-toc-content-wrapper" style="overflow:auto;"> \t\t\t\t\t\t\t<table class="ap-toc" role="treegrid" aria-readonly="true" tabindex="0" border="0"></table> \t\t\t\t\t\t</div>';for(this.Al.append(h),this.Nl=i(".ap-toc",this.Al),this.Ol=i(".ap-tool-toc-close",this.Al),this.Ol.append(t.Ja.closepane),this.Ol.attr("role","button").attr("title",this.Cs.text("Close")),this.Ol.on("click",function(){t.tocVisible()&&i(t).trigger("ui:ap-toc")}),2==t.ea.TocStyle&&(this.Ol.hide(),this.Al.attr("toc-show",!0)),this.Ll(s),n=0;n<this.Il.length;++n)this.Fl(this.Il[n],0);this.do(),this.Ul();var r=this;this.Yl=function(t,i,s,e){i<0||s<0||r.setCurrentEntry(s)},this.Hl=function(t,i,s){r.setCompletedEntry(i,s)},i(t).on("ap-progress.toc",this.Yl),i(t).on("ap-slideCompleted.toc",this.Hl)},updateEntries:function(t){this.Bl(),this.Il=[],this.Pl=null,this.Rl=null,this.Nl.empty(),this.Ll(t);for(var i=0;i<this.Il.length;++i)this.Fl(this.Il[i],0);if(void 0!=this.zl){var s=this.zl;this.zl=void 0,this.setCurrentEntry(s)}this.do(),this.Ul()},Xl:function(t,i){if(t.s==i.id&&t.f)t.t=i.title;else for(var s=0,e=t.c.length;s<e;++s)this.Xl(t.c[s],i)},Ul:function(){var t,i,s,e=this.ml;if(e)if(1==e.ea.ShowMaxTocLevel)for(t=0,i=this.Il.length;t<i;++t)s=this.Il[t],this.Gl(s);else for(t=0,i=this.Il.length;t<i;++t)s=this.Il[t],this.Vl(s)},destroy:function(){var t=i(this.ml);this.Ol.off("click"),this.Ol=null;var s=[];this.$l(s,null);for(var e=0;e<s.length;++e){var n=s[e];n.isSlide()?n.fl.off("click"):n.getExpandIconDom().off("click"),n.fl.off("focusin").off("focusout")}t.off("ap-progress.toc",this.Yl).off("ap-slideCompleted.toc",this.Hl),this.Il=[],this.Pl=null,this.Rl=null,this.Nl.off("focus").off("focusout").off("keydown"),this.Al.remove(),this.Al=null,this.Nl.remove(),this.Nl=null},show:function(){if(this.Al){var t=this.Al.attr("sidebar-expand");void 0!=t&&"true"!=t||this.Al.show(),2==this.ml.ea.TocStyle&&this.Al.attr("toc-show",!0);var s=this;1==this.ml.ea.TocStyle&&(this.ml.Yf(),i(document).unbind("click.TocPane"),setTimeout(function(){i(document).bind("click.TocPane",function(t){i(t.target).closest(".ap-toc-container").is(s.Al)||(i(document).unbind("click.TocPane"),i(s.ml).trigger("ui:ap-toc"))})},100))}},hide:function(){this.Al&&(this.Al.hide(),2==this.ml.ea.TocStyle&&this.Al.attr("toc-show",!1),1==this.ml.ea.TocStyle&&i(document).unbind("click.TocPane"))},isShow:function(){if(this.Al&&this.Al.length>0){var t=this.Al.attr("toc-show");return 2!=this.ml.ea.TocStyle||void 0==t?"none"!=this.Al.css("display"):"true"==t}return!1},Wl:function(t){for(var i=0;i<this.Il.length;++i)if(this.Il[i].Xo==t.Xo)return i;return-1},$l:function(t,i){var s;s=null==i?this.Il:i.Sl;for(var e=0;e<s.length;++e)t.push(s[e]),this.$l(t,s[e])},jl:function(t,i){var s;s=null==i?this.Il:i.Sl;for(var e=0;e<s.length;++e){var n=s[e];if(n._l==t)return n;if(n.hasChildren()){var h=this.jl(t,n);if(null!=h)return h}}return null},Ql:function(t){this.Pl&&(this.Pl.setCurrent(!1),this.Pl=null),t&&(this.Pl=t,this.Pl.setCurrent(!0))},Kl:function(t){null!=this.Rl&&(this.Rl.fl.attr("tabindex","-1"),this.Rl=null),t.fl.attr("tabindex","0"),t.fl.focus()},ql:function(t,i){var s,e=i.Sl;for(s=0;s<e.length;++s)this.ql(!1,e[s]);t||i.fl.hide()},Jl:function(t,i){t||i.fl.show();var s,e=i.Sl;if("true"==i.fl.attr("aria-expanded")||t)for(s=0;s<e.length;++s)this.Jl(!1,e[s])},Gl:function(t){t.fl.attr("aria-expanded","true"),t.xl=!0,this.Jl(!0,t),null!=this.Zl&&this.Zl.Xo==t.Xo&&this.td(this.Pl)},Vl:function(t){if(t.fl.attr("aria-expanded","false"),t.xl=!1,this.ql(!0,t),t.hasChildren()&&null!=this.Pl)for(var i=this.Pl.so;null!=i;){if(i.Xo==t.Xo){this.td(this.Pl);break}i=i.parent}},sd:function(t){var i;return null==t.so?(i=this.Wl(t))>=0&&i<this.Il.length-1?this.Il[i+1]:null:(i=t.so.getChildIndex(t))>=t.so.Sl.length-1?this.sd(t.so):t.so.Sl[i+1]},ed:function(t){if(t.xl&&t.hasChildren()){var i=t.Sl[t.Sl.length-1];return this.ed(i)}return t},nd:function(){if(null!=this.Rl){var t=null;null!=(t=this.Rl.xl&&this.Rl.hasChildren()?this.Rl.Sl[0]:this.sd(this.Rl))&&(this.Rl.fl.blur(),this.Rl=null,t.fl.focus())}},hd:function(){if(null!=this.Rl){var t,i=null;if(null==this.Rl.so)(t=this.Wl(this.Rl))>0&&(i=this.ed(this.Il[t-1]));else i=(t=this.Rl.so.getChildIndex(this.Rl))>0?this.ed(this.Rl.so.Sl[t-1]):this.Rl.so;null!=i&&(this.Rl.fl.blur(),this.Rl=null,i.fl.focus())}},ad:function(t){var i=0;if(t.isSlide())i+=t.Tl;else for(var s=t.Sl,e=0;e<s.length;++e)i+=this.ad(s[e]);return i},od:function(t,i,s,e){t.kl=i.t,t.yl=i.n,t._l=i.s,t.ud=i.ti,i.d?t.Tl=i.d:t.Tl=0,t.Xo=""==s?e+"":s+"-"+e;var n=i.c;if(null!=n&&n.length>0){t.Sl.length=0;for(var r=0;r<n.length;++r){var a=n[r],o=new h(t);this.od(o,a,t.Xo,r+1),t.Sl.push(o)}}},Ll:function(t){this.Il.length=0;for(var i=this.Ff,s=0,e=i.length||0;s<e;++s)for(var n=0,r=t.length;n<r;++n)this.Xl(t[n],i[s]);for(s=0;s<t.length;++s){var a=t[s],o=new h(null);this.Il.push(o),this.od(o,a,"",s+1)}},Fl:function(s,e){var n,h,r=e+1,a=10*r,o=this.ml,u=o.Ja,c=o.ea.TocShowStateIcons,f=o.ea.TocShowThumbnails,l=o.ea.TocShowDuration;h='<tr class="ap-toc-entry" role="row" tabindex="-1" aria-level="'+r+'" data-status="incomplete"',s.hasChildren()?h+=' aria-expanded="'+s.xl+'">':h+=">",h+="<td",!s.hasChildren()&&e>0&&(a+=10),h+=' style="padding-left: '+a+'px; width: 100%" ><div class="ap-toc-entry-content">',s.isSlide()?f&&void 0!=(n=this.Dl[s._l])&&(h+='<img class="ap-toc-entry-thumbnail" src="'+(o.yf.resourceLocation+o.yf.fileNamePrefix+"thumb_"+n+".jpg")+'"/>'):h+='<div class="ap-toc-entry-icon">'+u.collapsed+u.expanded+"</div>",h+='<div class="ap-toc-entry-content-text">',s.yl&&s.yl.length>0&&(h+='<div style="display:table-cell;">'+s.yl+"&nbsp;</div>"),h+='<div style="display:table-cell;">'+s.kl+"</div>",h+="</div>",h+="</div></td>",c&&(h+='<td><div class="ap-toc-entry-status-icon">'+u.current+u.completed+"</div></td>"),l&&(h+='<td class="ap-toc-entry-duration">'+t.formatMSString(this.ad(s))+"</td>"),h+="</tr>",s.fl=i(h),this.Nl.append(s.fl);for(var d=0;d<s.Sl.length;++d)this.Fl(s.Sl[d],r)},do:function(){var t=[];this.$l(t,null);for(var s=this,e=0;e<t.length;++e){!function(t){t.isSlide()?t.fl.on("click",function(){i(s.ml).trigger("ui:ap-showSlide",[t._l])}):t.getExpandIconDom().on("click",function(){t.xl?s.Vl(t):s.Gl(t)}),t.fl.on("focusin",function(){s.Nl.attr("tabindex",-1),t.fl.attr("tabindex","0"),s.Rl=t}),t.fl.on("focusout",function(){t.fl.attr("tabindex","-1"),s.Rl=null})}(t[e])}this.Nl.on("focus",function(){var t=[];s.$l(t),t.length>0&&(s.Kl(t[0]),s.Nl.attr("tabindex",-1))}).on("focusout",function(){null==s.Rl&&s.Nl.attr("tabindex",0)}).on("keydown",function(t){switch(t.which){case 13:if(null!=s.Rl)return i(s.ml).trigger("ui:ap-showSlide",[s.Rl._l]),!1;break;case 39:if(null!=s.Rl)return 0==s.Rl.xl&&s.Rl.hasChildren()?s.Gl(s.Rl):s.Rl.hasChildren()&&s.nd(),!1;break;case 37:if(null!=s.Rl)return s.Rl.xl&&s.Rl.hasChildren()?s.Vl(s.Rl):null!=s.Rl.so&&s.Kl(s.Rl.so),!1;break;case 40:if(null!=s.Rl)return s.nd(),!1;break;case 38:if(null!=s.Rl)return s.hd(),!1}})},Bl:function(){var t=[];this.$l(t,null);for(var i=0;i<t.length;++i){var s=t[i];s.isSlide()?s.fl.off("click"):s.getExpandIconDom().off("click"),s.fl.off("focusin").off("focusout")}this.Il=[],this.Pl=null,this.Rl=null,this.Nl.off("focus").off("focusout").off("keydown")},setCompletedEntry:function(t,i){var s=this.jl(t);null!=s&&s.setCompleted(i)},setCurrentEntry:function(t){if(void 0===this.zl||this.zl!==t){var i=this.jl(t);null!=i&&this.Ql(i);var s=this.ml;this.zl=t,s.ea.AutoScroll&&this.scrollToCurrentSlide()}},scrollToCurrentSlide:function(){if(null!=this.Pl){var t=i(this.Rf),s=i(".ap-toc-content-wrapper",t);s[0].scrollTop+s[0].offsetHeight<this.Pl.fl[0].offsetTop+this.Pl.fl[0].offsetHeight?s[0].scrollTop=this.Pl.fl[0].offsetTop+this.Pl.fl[0].offsetHeight-s[0].clientHeight:this.Pl.fl[0].offsetTop<s[0].scrollTop&&(s[0].scrollTop=this.Pl.fl[0].offsetTop)}}}),a=t.createClass({$init:function(t,s){this.ml=t,this.fd=-1,this.ld=t.resourcesContainer(),this.ld.hide(),this.Rf=t.Rf,this.pd=s;var e='<div class="ap-resources-pane-header">'+s[s.length-1]+'</div>\t\t\t\t\t\t<div class="ap-resources-pane-content"> \t\t\t\t\t\t\t<ol class="ap-resources-list"></ol> \t\t\t\t\t\t</div>';this.ld.append(e),this.vd=i(".ap-resources-list",this.ld);for(var n=0;n<s.length-1;++n)this.Fl(s[n]);this.Il=i("li",this.vd).toArray(),this.do()},destroy:function(){for(var t=0;t<this.Il.length;++t)i(this.Il[t]).off("focusin").off("focusout");this.ld.off("keydown"),this.ld.remove(),this.ld=null,this.Il=[]},do:function(){var t=this,s=this.ld,e=this.Il;s.attr("tabinex",0),s.on("keydown",function(s){var n;return 13!=s.which&&32!=s.which||s.altKey||s.shiftKey||s.ctrlKey?27==s.which?(t.hide(),!1):9==s.which?(t.hide(),!1):38==s.which?((n=e[t.fd])&&i(n).attr("tabindex",-1),0==t.fd?t.fd=e.length-1:t.fd--,n=e[t.fd],i(n).focus().attr("tabindex",0),!1):40==s.which?((n=e[t.fd])&&i(n).attr("tabindex",-1),t.fd==e.length-1?t.fd=0:t.fd++,n=e[t.fd],i(n).focus().attr("tabindex",0),!1):void 0:((n=e[t.fd])&&i("a",i(n))[0].click(),!1)});for(var n=0;n<this.Il.length;++n)i(this.Il[n]).on("focusin",function(){s.attr("tabindex",-1),i(this).attr("tabindex",0)}).on("focusout",function(){i(this).attr("tabindex",-1)})},show:function(){this.bd="click.ResourcesPane";var t=this;i(document).bind(t.bd,function(s){i(s.target).closest(".ap-resources-container").is(t.ld)||(t.hide(),i(document).unbind(t.bd))}),t.ld.show(),t.ld.attr("tabindex",-1),this.fd<0&&(this.fd=0);var s=this.Il[this.fd];s?i(s).attr("tabindex",0).focus():t.ld.attr("tabindex",0).focus()},hide:function(){this.bd&&i(document).off(this.bd),this.ld&&this.ld.hide()},isShow:function(){return this.ld&&this.ld.length>0&&"none"!=this.ld.css("display")},Fl:function(t){if(!(t.length<=1)){var i='<li><a href="';2==t.length?i+=t[1]:(i+=this.ml.yf.resourceLocation+this.ml.yf.fileNamePrefix+"res_"+t[1]+"."+t[2],i+='" download="'+t[0]+"."+t[2]),i+='" target="_blank">'+t[0],i+="</a></li>",this.vd.append(i)}}}),o=t.createClass({$init:function(t,s,e){this.Ja=s,this.so=null,this.wd=[],this.gd=null,this.fl=i('<div id="'+t+'" class="ap-menu" tabindex="0" role="menu"></div>'),this.fl.hide(),this.fd=-1,this.do(),this.bd=null,this._d=null,this.ml=e,this.ml&&this.ml.al(this)},id:function(){return this.fl[0].id},destroy:function(){null!=this.bd&&(i(document).unbind(this.bd),this.bd=null),this.kd&&(this.kd(),this.kd=null);for(var t=0;t<this.wd.length;++t)this.wd[t].submenu&&this.wd[t].submenu.destroy(),this.wd[t].dom.off("click").off("focusin").off("focusout").off("keydown");this.wd=[],this.fl&&(this.fl.off("keydown"),this.fl.remove(),this.fl=null),this.Ja=null,this.ml&&this.ml.ul(this)},do:function(){var t=this;this.fl.on("keydown",function(i){var s,e=t.wd;return 13!=i.which&&32!=i.which||i.altKey||i.shiftKey||i.ctrlKey?27==i.which?(t.so?(t.hide(),t.so.show(t.so._d,!0,t.so.kd)):t.destroy(),!1):9==i.which?(t.so?(t.hide(),t.so.show(t.so._d,!0,t.so.kd)):t.destroy(),!1):37==i.which?(t.so&&(t.hide(),t.so.show(t.so._d,!0,t.so.kd)),!1):39==i.which?((s=e[t.fd])&&s.submenu&&s.dom.trigger("click"),!1):38==i.which?((s=e[t.fd])&&s.dom.attr("tabindex",-1),0==t.fd?t.fd=e.length-1:t.fd--,(s=e[t.fd].dom).focus(),s.attr("tabindex",0),!1):40==i.which?((s=e[t.fd])&&s.dom.attr("tabindex",-1),t.fd==e.length-1?t.fd=0:t.fd++,(s=e[t.fd].dom).focus(),s.attr("tabindex",0),!1):void 0:((s=e[t.fd])&&s.dom.trigger("click"),!1)})},yd:function(){for(var t=this;t.so;)t=t.so;return t},Td:function(t,i,s,e){var n=this;t.focusin(function(){n.fl.attr("tabindex",-1),t.attr("tabindex",0)}).focusout(function(){t.attr("tabindex",-1)}),this.fl.append(t),this.wd.push({dom:t,id:i,state:s,submenu:e})},appendTo:function(t){this.Rf=t,this.Rf.append(this.fl);for(var i=0;i<this.wd.length;++i)this.wd[i].submenu&&this.wd[i].submenu.appendTo(t)},attachEventHanlders:function(t){t(this.fl.get(0));for(var i=0;i<this.wd.length;++i)this.wd[i].submenu&&t(this.wd[i].submenu.fl.get(0))},detachEventHandlers:function(t){t(this.fl.get(0));for(var i=0;i<this.wd.length;++i)this.wd[i].submenu&&t(this.wd[i].submenu.fl.get(0))},xd:function(t){if(this.fl&&this.fl.has(t).length>0)return this;for(var i=0;i<this.wd.length;++i)if(this.wd[i].submenu){var s=this.wd[i].submenu.xd(t);if(s)return s}return null},show:function(t,s,e){this._d=t;var n,h,r,a,o,u,c,f,l=i(t),d=this.fl,p=this.Rf;n=d.outerWidth(!0),h=d.outerHeight(!0),r=l.offset().left+l.width()/2-n/2;for(var v=0;v<=1;++v)o=l.offset().top-(p.offset().top+h+10),u=p.offset().top+p.height()-(l.offset().top+l.height()+h+10),c=p.offset().left+p.width()-(l.offset().left+l.width()+n+10),f=l.offset().left-(p.offset().left+n+10),o<0&&u<0&&c<0&&f<0&&(h=Math.max(o,u)-10);if(o>=0?(a=l.offset().top-p.offset().top-h-10,r=Math.max(0,Math.min(r,p.width()-n-10))):u>=0?(a=l.offset().top+l.height()+10-p.offset().top,r=Math.max(0,Math.min(r,p.width()-n-10))):c>=0?(a=0,r=l.offset().left+l.width()+10-p.offset().left):(a=0,r=l.offset().left-p.offset().left-n-10),d.css({left:r,top:a}),d.show(),!this.so){var m=this;m.bd="click.RLMenu"+this.id(),i(document).bind(m.bd,function(e){var n=i(e.target).closest(".ap-menu-item");if("menuitemcheckbox"!=n.attr("role")){var h=m.xd(e.target);if(n.hasClass("ap-tool-menu-back")&&h&&h.so)return h.hide(),void h.so.show(t,s,h.so.kd);if("true"==n.attr("aria-haspopup")&&h)for(var r=0;r<h.wd.length;++r)if(h.wd[r].dom.get(0)==n.get(0))return h.hide(),void h.wd[r].submenu.show(t,s);m.destroy()}})}if(-1==this.fd&&(this.fd=0),s){d.attr("tabindex",-1);var b=this.wd[this.fd];b?(b.dom.attr("tabindex",0),b.dom.focus()):(d.attr("tabindex",0),d.focus())}else d.attr("tabindex",0),d.focus();this.kd=e},hide:function(){this.fl.attr("tabindex",-1),this.fl.hide()},isShown:function(){return"none"!=this.fl.css("display")},addMenuItem:function(t,s){var e=i('<div class="ap-menu-item '+t+'" role="menuitem" tabindex="-1" > \t\t\t\t\t\t\t<div class="ap-menu-item-label">'+s+'</div> \t\t\t\t\t\t\t<div class="ap-menu-item-content"></div> \t\t\t\t\t\t</div>');return this.Td(e,t,!0),e},addToggleMenuItem:function(t,s,e){var n=i('<div class="ap-menu-item '+t+'" role="menuitemcheckbox" aria-checked="'+(1==e?"true":"false")+'" tabindex="-1" > \t\t\t\t\t\t\t<div class="ap-menu-item-label">'+s+'</div> \t\t\t\t\t\t\t<div class="ap-menu-item-toggle-container"> \t\t\t\t\t\t\t\t<div class="ap-menu-item-toggle"> \t\t\t\t\t\t\t\t\t<div class="ap-menu-item-toggle-bar"></div>\t\t\t\t\t\t\t\t\t<div class="ap-menu-item-toggle-button"></div>\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t</div> \t\t\t\t\t\t</div>');return this.Td(n,t,e),n},addRadioMenuItem:function(t,s,e){var n=this.Ja,h=i('<div class="ap-menu-item '+t+'" role="menuitemradio" tabindex="-1" aria-checked="'+(e?"true":"false")+'"> \t\t\t\t\t\t\t<div class="ap-menu-item-icon">'+n.check+'</div> \t\t\t\t\t\t\t<div class="ap-menu-item-label">'+s+"</div> \t\t\t\t\t\t</div>");return this.Td(h),h},addSubMenuItem:function(t,s,e){var n=this.Ja,h=i('<div class="ap-menu-item '+t+'" role="menuitem" tabindex="-1" aria-haspopup="true"> \t\t\t\t\t\t<div class="ap-menu-item-label">'+s+'</div> \t\t\t\t\t\t<div class="ap-menu-item-icon">'+n.openmenu+"</div> \t\t\t\t\t</div>");return e.so=this,this.Td(h,t,!0,e),h},addMenuHeaderItem:function(t){var s=this.Ja,e="ap-tool-menu-back",n=i('<div class="ap-menu-item '+e+'" role="menuitem" tabindex="-1" > \t\t\t\t\t\t\t<div class="ap-menu-item-icon">'+s.closemenu+'</div> \t\t\t\t\t\t\t<div class="ap-menu-item-label">'+t+"</div> \t\t\t\t\t\t</div>");return this.Td(n,e,!0),n}}),u=t.createClass({$init:function(s,e,n){this.Sd=n.scale||1,this.Ed=n.min||0,this.Md=n.max||100,this.Cd=n.value||0,this.kl=n.title||"",this.Id=n.isRTL||!1,this.Ff=n.slideInfos||[],this.Pd=n.followMouse||!1,this.Rd=n.thumbnailPrefixPath,this.Ad=this.Ff.length>0,this.Dd=-1,this.fl=s,this.ea=e,this.fl.append('<div class="ap-slider-track"><div class="ap-slider-track-lower"></div></div>\t\t\t\t\t\t\t  <div class="ap-slider-thumb-containment"></div> \t\t\t\t\t\t\t  <div class="ap-slider-thumb-outer" style="position:absolute;height:100%;"><div class="ap-slider-thumb"></div></div>\t\t\t\t\t\t\t  <div class="ap-slider-tooltip"></div>'),this.Nd=i(".ap-slider-track",this.fl),this.Od=i(".ap-slider-track-lower",this.fl),this.Ld=i(".ap-slider-thumb-outer",this.fl),this.Fd=i(".ap-slider-tooltip",this.fl),this.Ud=i(".ap-slider-thumb-containment",this.fl),this.Yd=i(".ap-slider-thumb",this.fl).outerWidth()/2,this.Ld.width(2*this.Yd),this.Ud.css({position:"absolute",left:-this.Yd+"px",top:"0px",width:"calc(100% + "+2*this.Yd+"px)",height:"100%"}),this.fl.attr({"aria-valuemin":this.Ed,"aria-valuemax":this.Md,"aria-valuenow":this.Cd,title:this.kl});for(var h=0,r=0,a=this.Ff.length;r<a-1;++r)if(h+=this.Ff[r].duration,e.ShowSegments){var o=i('<div class="ap-slider-marker"></div>'),u=h/(this.Md-this.Ed)*100;o.css("left","calc("+u+"% - "+o.width()/2+"px)"),this.Nd.append(o)}var c=this,f=t.browser.mobile;f||this.fl.mouseenter(function(t){c.Ad&&c.Fd.show()}).mousemove(function(t){if(c.Ad){var s=t.pageX-i(this).offset().left;c.Hd(s)}}).mouseleave(function(t){c.Ad&&c.Fd.hide()}),this.Ld.css("touchAction","none").draggable({containment:c.Ud,axis:"x",start:function(){c.po=!0,f&&c.Ad&&c.Fd.show()},drag:function(){var t=parseInt(i(this).css("left"))+c.Yd;c.Bd(t),f&&c.Ad&&c.Hd(t)},stop:function(){c.po=!1;var t=parseInt(i(this).css("left"))+c.Yd;c.Bd(t,!0),f&&c.Ad&&c.Fd.hide()}}).mousedown(function(t){return s.focus(),t.stopPropagation(),!0}),this.fl.on("mousedown",function(t){return c.Bd(t.pageX-i(this).offset().left,!0),t.stopPropagation(),!0}).on("keydown",function(t){var i=c.zd(c.Cd);if(37==t.which)i+=-5;else if(39==t.which)i+=5;else if(36==t.which)i=0;else{if(35!=t.which)return!0;i=c.getWidth()}c.Bd(i,!0),t.stopPropagation(),t.preventDefault()})},destroy:function(){this.Ld.off("mouseenter").off("mouseleave").off("mousedown").draggable("destroy"),this.Ld=null,this.fl.off("mousedown").off("keydown"),this.fl.empty(),this.fl=null},Hd:function(t){var s,e=this.Cs,n=this.Xd,h=this.Gd(t),r=0,a=0;for(a=0,s=this.Ff.length||0;a<s&&!(h<=(r+=this.Ff[a].duration));++a);if(!(a>=this.Ff.length)){if(a!=this.Dd){this.Dd=a;var o=this.Ff[a].title,u="";u+='<div class="ap-slider-tooltip-timestamp">'+AtomiAP.formatMSString(h)+"</div>",this.Rd&&this.Ff[a].thumb&&(u+='<img src="'+this.Rd+"thumb_"+this.Ff[a].ti+'.jpg" />'),u+="<div>"+(e?e.text("Slide"):"Slide")+" "+(a+1)+"/"+this.Ff.length+"</div>",u+="<div>"+o+"</div>",this.Fd.html(e?e.number(u,n):u)}else i(".ap-slider-tooltip-timestamp",this.Fd).html(AtomiAP.formatMSString(h));this.Fd.css({left:0,width:"auto"});var c=this.Fd.width(),f=this.Fd.height();this.Fd.css({left:t-c/2,top:-f-40,width:c})}},Vd:function(t){var i=t/this.getWidth()*100;this.Ld.css("left","calc("+i+"% - "+this.Yd+"px)"),this.Od.css("width",i+"%")},Bd:function(t,s){var e=this.getWidth();t<0?t=0:t>e&&(t=e);var n=this.Gd(t),h=!1;isNaN(n)||n!=this.Cd&&(s?i(this).trigger("valueChanged",[n]):i(this).trigger("valueChanging",[n]),this.Cd=n,this.fl.attr("aria-valuenow",this.Cd),h=!0),this.po||h||(t=this.zd(this.Cd)||0),this.Vd(t)},Gd:function(t){var i=this.getWidth();"rtl"==this.Id&&(t=i-t);var s=Math.round(this.Ed+t*(this.Md-this.Ed)/i);return s<this.Ed?s=this.Ed:s>this.Md&&(s=this.Md),s},zd:function(t){var i=this.getWidth(),s=Math.round((t-this.Ed)*i/(this.Md-this.Ed));return this.Id&&(s=i-s),s<0?s=0:s>i&&(s=i),s},setTooltip:function(t){t!=this.$d&&(this.$d=t,this.Fd.html(t))},showTooltip:function(t){void 0===t&&(t=!0),t?this.Fd.show():this.Fd.hide()},enableTooltip:function(t){this.Ad=t},getValue:function(){return this.Cd},setValue:function(t){if(this.po&&!this.Pd)return!1;t<this.Ed?t=this.Ed:t>this.Md&&(t=this.Md),this.Cd=t,this.fl.attr("aria-valuenow",this.Cd);var i=this.zd(t)||0;return this.Vd(i),!0},setTitle:function(t){this.fl.attr("title",t)},getMin:function(){return this.Ed},setMin:function(t){this.Ed=t,this.fl.attr("aria-valuemin",this.Ed)},getMax:function(){return this.Md},setMax:function(t){this.Md=t,this.fl.attr("aria-valuemax",this.Md)},getWidth:function(){return this.fl.width()||.001},setWidth:function(t){this.fl.width(t)}}),c=t.createClass({$init:function(t,s,e){this.ml=t,this.Wd=-1,this.jd=!1;var n=t.container();this.fl=i(s),e?this.fl.insertBefore(i(".ap-content-area",n)):this.fl.appendTo(n),this.fl.attr("unselectable","on").css("user-select","none").on("selectstart",!1),this.Qd=i(".ap-button,.ap-slider",this.fl).toArray(),this.Kd(),this.fl.show();var h=this;this.qd=function(t){h.Jd()},i(this.ml).on("ui:ap-layout",this.qd)},destroy:function(){i(this.ml).off("ui:ap-layout",this.qd),i.each(this.Qd,function(t,s){i(s).off("focusin").off("focusout")}),this.fl.off("mousedown").off("keydown").off("focus").off("focusout"),this.fl.remove(),this.fl=null},Zd:function(t){var s=i(t);return"none"!=s.css("display")&&"false"!=s.attr("data-enabled")},Kd:function(){var t=this;this.fl.on("mousedown",function(i){for(var s=0;s<t.Qd.length;++s)i.target==t.Qd[s]&&(t.Wd=s);return i.stopPropagation(),!0}).on("keydown",function(s){if(9==s.which){var e,n=t.Qd,h=!s.shiftKey,r=!0,a=-1,o=t.Wd,u=n.length-1;do{if(h?++o:--o,o<0||o>u){a=h?0:u;break}if(t.Zd(n[o])){a=o,r=!1;break}}while(o>=0&&o<=u);if(r)return t.Wd=a,!0;s.stopPropagation(),s.preventDefault(),t.Wd>=0&&t.Wd<=u&&(e=t.Qd[t.Wd],i(e).attr("tabindex","-1")),a>=0&&a<=u&&(t.Wd=a,e=t.Qd[t.Wd],i(e).attr("tabindex","0").focus())}else if(32==s.which||13==s.which){var c=i(s.target);"button"==c.attr("role")&&(s.stopPropagation(),c.trigger("click",[s.which]))}});var s=function(){var s=0;return i.each(t.Qd,function(i,e){if(t.Zd(e))return s=i,!1}),s};this.fl.on("focus",function(e){var n=t.Wd;if((n<0||n>=t.Qd.length||!t.Zd(t.Qd[n]))&&(t.Wd=s(),n=t.Wd),t.fl.attr("tabindex","-1"),n>=0&&n<t.Qd.length){var h=t.Qd[n];return i(h).attr("tabindex","0").focus(),!1}return!0}),this.fl.on("focusout",function(){t.jd||t.fl.attr("tabindex","0")});for(var e=0;e<this.Qd.length;++e)!function(e,n){i(e).on("focusin",function(h){t.Zd(e)?t.Wd=n:t.Wd=s(),t.fl.attr("tabindex","-1"),t.jd=!0,i(this).attr("tabindex","0")}).on("focusout",function(s){t.jd=!1,i(this).attr("tabindex","-1")})}(this.Qd[e],e)},Jd:function(){var t=i("[data-priority]",this.fl),s=i(".ap-tool-setting",this.fl),e=parseInt(s.attr("data-priority"));t.each(function(t){var s=i(this);"false"!=s.attr("data-enabled")&&s.show()}),s.hide();for(var n,h,r,a,o,u=Number.MAX_SAFE_INTEGER||1e10;r=this.fl.outerWidth(),n=!1,h=u,t.each(function(t){var s=i(this);return"false"==s.attr("data-enabled")||("none"==s.css("display")||(parseInt(s.attr("data-priority"))<h&&(h=parseInt(s.attr("data-priority"))),s.position().top,a=s.position().left,o=s.outerWidth(),a+o>r?(n=!0,!0):void 0))}),n&&h!=u;)e>h&&s.show(),t.each(function(t){var s=i(this);return"false"==s.attr("data-enabled")||("none"==s.css("display")||void(parseInt(s.attr("data-priority"))<=h&&s.hide()))})},show:function(){this.fl.css("display","")},hide:function(){this.fl.hide()},visible:function(){return this.fl&&"none"!==this.fl[0].style.display},isAutoHide:function(){return this.fl.hasClass("ap-auto-hide")},autoHide:function(t){0==arguments.length||t?this.fl.addClass("ap-auto-hide"):this.fl.removeClass("ap-auto-hide")}}),f=t.createClass({$init:function(t){this.fl=i('<div class="ap-floating-button"><div></div></div>');var s=this,e=!1;this.fl.css("touchAction","none").draggable({containment:t}).mousedown(function(t){e=!1}).mousemove(function(t){e=!0}).mouseup(function(){e||s.cf&&s.cf(),e=!1})},appendTo:function(t){t.append(this.fl)},show:function(){this.fl.css("display","")},hide:function(){this.fl.hide()},onClick:function(t){this.cf=t}});t.RLPopup=n,t.RLToolbar=c,t.RLToc=r,t.UI=e}(window.AtomiAP=window.AtomiAP||{},window.AtomiAP.$||jQuery);