| Current Path : /var/www/media/com_komento/scripts/ |
| Current File : /var/www/media/com_komento/scripts/admin-4.0.2.min.js |
!function(){function e(t){function e(){n.push([this,arguments]),i||e.execute()}var n=[],i=1,r=0,t=t;return e.execute=function(){if(!r){var e;for(r=1,i=0;e=n.shift();)t.apply(e[0],e[1]);r=0}},e.lock=function(){i=0},e}var r,t,l={},u=0,o=[],n=window.KTVendors={setup:function(e){t=e,n.init()},jquery:function(e){r||(r=e,n.init())},init:function(){u||r&&t&&(n.$=r.initialize(t),n.plugin.execute(),u=1)},plugin:e(function(e,t){t.apply(n,[r])}),module:e(function(e,t){r.module(e,t)}),installer:function(e,t,n){if(o[e]||(o[e]=[]),!t)return o[e];var i=l[e];if(i.registered)return i.install(t,n);o[e].push([t,n])},component:function(a,e){if(!a)return l;if(!e)return l[a];if("function"==typeof e)return(n=e).registered=!0,l[a]=n;function i(e,t,n){for(var i=0;i<t.length;i++){var r=t[i];e[r]=function(e,t,n){return function(){return(n||s).push(o(e,this,arguments)),t}}(r,e,n)}return e}function t(t,n){return function(){var e=[o(t,this,arguments)];return s.push(e),i({},n,e)}}var n,s=[],o=function(e,t,n){return{method:e,context:this,args:n}};return s.execute=function(){for(var e=l[a],t=0;t<s.length;t++){var n=s[t];if("[object Array]"===Object.prototype.toString.call(n))for(var i=n,r=e,o=0;o<i.length;o++)r=r[i[o].method].apply(r,i[o].args);else e[n.method].apply(e,n.args)}},(n=i(function(){n.run.apply(this.arguments)},["run","ready","template","dialog"])).className=a,n.options=e,n.queue=s,n.module=t("module",["done","always","fail","progress"]),n.require=t("require",["library","script","stylesheet","language","template","app","view","done","always","fail","progress"]),window[a]=l[a]=n,u&&r.Component.register(n),n}}}(),KTVendors.setup({environment:window.kt.environment,source:"local",mode:"production"==window.kt.environment?"compressed":"uncompressed",path:window.kt.rootUrl+"/media/com_komento/scripts/vendors",cdn:"",extension:".js",cdnPath:"",rootPath:window.kt.rootUrl,basePath:window.kt.rootUrl,indexUrl:window.kt.rootUrl+"/index.php",token:window.kt.token,joomla:{appendTitle:window.kt.appendTitle,sitename:window.kt.siteName},locale:{lang:window.kt.locale}}),KTVendors.component("Komento",{environment:window.kt.environment,source:"local",mode:(window.kt.environment,"compressed"),version:"3.0",momentLang:window.kt.momentLang,ajaxUrl:window.kt.ajaxUrl}),function(e,t){"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(h,e){function s(e){var t=e.length,n=Z.type(e);return"function"!==n&&!Z.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e))}function t(e,n,i){if(Z.isFunction(n))return Z.grep(e,function(e,t){return!!n.call(e,t,e)!==i});if(n.nodeType)return Z.grep(e,function(e){return e===n!==i});if("string"==typeof n){if(oe.test(n))return Z.filter(n,e,i);n=Z.filter(n,e)}return Z.grep(e,function(e){return 0<=Z.inArray(e,n)!==i})}function n(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function i(){ae.addEventListener?(ae.removeEventListener("DOMContentLoaded",r,!1),h.removeEventListener("load",r,!1)):(ae.detachEvent("onreadystatechange",r),h.detachEvent("onload",r))}function r(){!ae.addEventListener&&"load"!==event.type&&"complete"!==ae.readyState||(i(),Z.ready())}function l(e,t,n){if(void 0===n&&1===e.nodeType){var i="data-"+t.replace(ve,"-$1").toLowerCase();if("string"==typeof(n=e.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:ge.test(n)?Z.parseJSON(n):n)}catch(e){}Z.data(e,t,n)}else n=void 0}return n}function u(e){for(var t in e)if(("data"!==t||!Z.isEmptyObject(e[t]))&&"toJSON"!==t)return;return 1}function o(e,t,n,i){if(Z.acceptData(e)){var r,o=Z.expando,a=e.nodeType,s=a?Z.cache:e,l=a?e[o]:e[o]&&o;if(l&&s[l]&&(i||s[l].data)||void 0!==n||"string"!=typeof t)return s[l=l||(a?e[o]=H.pop()||Z.guid++:o)]||(s[l]=a?{}:{toJSON:Z.noop}),"object"!=typeof t&&"function"!=typeof t||(i?s[l]=Z.extend(s[l],t):s[l].data=Z.extend(s[l].data,t)),l=s[l],i||(l.data||(l.data={}),l=l.data),void 0!==n&&(l[Z.camelCase(t)]=n),"string"==typeof t?null==(r=l[t])&&(r=l[Z.camelCase(t)]):r=l,r}}function a(e,t,n){if(Z.acceptData(e)){var i,r,o=e.nodeType,a=o?Z.cache:e,s=o?e[Z.expando]:Z.expando;if(a[s]){if(t&&(i=n?a[s]:a[s].data)){r=(t=Z.isArray(t)?t.concat(Z.map(t,Z.camelCase)):t in i||(t=Z.camelCase(t))in i?[t]:t.split(" ")).length;for(;r--;)delete i[t[r]];if(n?!u(i):!Z.isEmptyObject(i))return}(n||(delete a[s].data,u(a[s])))&&(o?Z.cleanData([e],!0):X.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}function c(){return!0}function f(){return!1}function d(){try{return ae.activeElement}catch(e){}}function m(e){var t=Ae.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function g(e,t){var n,i,r=0,o=typeof e.getElementsByTagName!=me?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!=me?e.querySelectorAll(t||"*"):void 0;if(!o)for(o=[],n=e.childNodes||e;null!=(i=n[r]);r++)!t||Z.nodeName(i,t)?o.push(i):Z.merge(o,g(i,t));return void 0===t||t&&Z.nodeName(e,t)?Z.merge([e],o):o}function v(e){xe.test(e.type)&&(e.defaultChecked=e.checked)}function p(e,t){return Z.nodeName(e,"table")&&Z.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function y(e){return e.type=(null!==Z.find.attr(e,"type"))+"/"+e.type,e}function b(e){var t=Re.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function w(e,t){for(var n,i=0;null!=(n=e[i]);i++)Z._data(n,"globalEval",!t||Z._data(t[i],"globalEval"))}function _(e,t){if(1===t.nodeType&&Z.hasData(e)){var n,i,r,o=Z._data(e),e=Z._data(t,o),a=o.events;if(a)for(n in delete e.handle,e.events={},a)for(i=0,r=a[n].length;i<r;i++)Z.event.add(t,n,a[n][i]);e.data&&(e.data=Z.extend({},e.data))}}function x(e,t){e=Z(t.createElement(e)).appendTo(t.body),t=h.getDefaultComputedStyle?h.getDefaultComputedStyle(e[0]).display:Z.css(e[0],"display");return e.detach(),t}function C(e){var t=ae,n=qe[e];return n||("none"!==(n=x(e,t))&&n||((t=((We=(We||Z("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentWindow||We[0].contentDocument).document).write(),t.close(),n=x(e,t),We.detach()),qe[e]=n),n}function T(t,n){return{get:function(){var e=t();if(null!=e){if(!e)return(this.get=n).apply(this,arguments);delete this.get}}}}function k(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),i=t,r=ct.length;r--;)if((t=ct[r]+n)in e)return t;return i}function E(e,t){for(var n,i,r,o=[],a=0,s=e.length;a<s;a++)(i=e[a]).style&&(o[a]=Z._data(i,"olddisplay"),n=i.style.display,t?(o[a]||"none"!==n||(i.style.display=""),""===i.style.display&&ye(i)&&(o[a]=Z._data(i,"olddisplay",C(i.nodeName)))):o[a]||(r=ye(i),(n&&"none"!==n||!r)&&Z._data(i,"olddisplay",r?n:Z.css(i,"display"))));for(a=0;a<s;a++)(i=e[a]).style&&(t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t?o[a]||"":"none"));return e}function S(e,t,n){var i=at.exec(t);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):t}function A(e,t,n,i,r){for(var o=n===(i?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=Z.css(e,n+we[o],!0,r)),i?("content"===n&&(a-=Z.css(e,"padding"+we[o],!0,r)),"margin"!==n&&(a-=Z.css(e,"border"+we[o]+"Width",!0,r))):(a+=Z.css(e,"padding"+we[o],!0,r),"padding"!==n&&(a+=Z.css(e,"border"+we[o]+"Width",!0,r)));return a}function D(e,t,n){var i=!0,r="width"===t?e.offsetWidth:e.offsetHeight,o=Ke(e),a=X.boxSizing()&&"border-box"===Z.css(e,"boxSizing",!1,o);if(r<=0||null==r){if(((r=Ye(e,t,o))<0||null==r)&&(r=e.style[t]),et.test(r))return r;i=a&&(X.boxSizingReliable()||r===e.style[t]),r=parseFloat(r)||0}return r+A(e,t,n||(a?"border":"content"),i,o)+"px"}function O(e,t,n,i,r){return new O.prototype.init(e,t,n,i,r)}function N(){return setTimeout(function(){ft=void 0}),ft=Z.now()}function M(e,t){var n,i={height:e},r=0;for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=we[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function L(e,t,n){for(var i,r=(bt[t]||[]).concat(bt["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,t,e))return i}function P(r,e,t){var n,o,i=0,a=yt.length,s=Z.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var e=ft||N(),e=Math.max(0,u.startTime+u.duration-e),t=1-(e/u.duration||0),n=0,i=u.tweens.length;n<i;n++)u.tweens[n].run(t);return s.notifyWith(r,[u,t,e]),t<1&&i?e:(s.resolveWith(r,[u]),!1)},u=s.promise({elem:r,props:Z.extend({},e),opts:Z.extend(!0,{specialEasing:{}},t),originalProperties:e,originalOptions:t,startTime:ft||N(),duration:t.duration,tweens:[],createTween:function(e,t){e=Z.Tween(r,u.opts,e,t,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(e),e},stop:function(e){var t=0,n=e?u.tweens.length:0;if(o)return this;for(o=!0;t<n;t++)u.tweens[t].run(1);return e?s.resolveWith(r,[u,e]):s.rejectWith(r,[u,e]),this}}),c=u.props;for(!function(e,t){var n,i,r,o,a;for(n in e)if(r=t[i=Z.camelCase(n)],o=e[n],Z.isArray(o)&&(r=o[1],o=e[n]=o[0]),n!==i&&(e[i]=o,delete e[n]),(a=Z.cssHooks[i])&&"expand"in a)for(n in o=a.expand(o),delete e[i],o)n in e||(e[n]=o[n],t[n]=r);else t[i]=r}(c,u.opts.specialEasing);i<a;i++)if(n=yt[i].call(u,r,c,u.opts))return n;return Z.map(c,L,u),Z.isFunction(u.opts.start)&&u.opts.start.call(r,u),Z.fx.timer(Z.extend(l,{elem:r,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function I(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,i=0,r=e.toLowerCase().match(de)||[];if(Z.isFunction(t))for(;n=r[i++];)"+"===n.charAt(0)?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function j(t,i,r,o){function a(e){var n;return s[e]=!0,Z.each(t[e]||[],function(e,t){t=t(i,r,o);return"string"!=typeof t||l||s[t]?l?!(n=t):void 0:(i.dataTypes.unshift(t),a(t),!1)}),n}var s={},l=t===Bt;return a(i.dataTypes[0])||!s["*"]&&a("*")}function $(e,t){var n,i,r=Z.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((r[i]?e:n=n||{})[i]=t[i]);return n&&Z.extend(!0,e,n),e}function F(){try{return new h.XMLHttpRequest}catch(e){}}function R(e){return Z.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}function z(e,t){return t.toUpperCase()}var H=[],B=H.slice,W=H.concat,U=H.push,q=H.indexOf,K={},Y=K.toString,G=K.hasOwnProperty,V="".trim,X={},J="1.11.1pre",Z=function(e,t){return new Z.fn.init(e,t)},Q=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ee=/^-ms-/,te=/-([\da-z])/gi;Z.fn=Z.prototype={jquery:J,constructor:Z,selector:"",length:0,toArray:function(){return B.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:B.call(this)},pushStack:function(e){e=Z.merge(this.constructor(),e);return e.prevObject=this,e.context=this.context,e},each:function(e,t){return Z.each(this,e,t)},map:function(n){return this.pushStack(Z.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(B.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,e=+e+(e<0?t:0);return this.pushStack(0<=e&&e<t?[this[e]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:U,sort:H.sort,splice:H.splice},Z.extend=Z.fn.extend=function(){var e,t,n,i,r,o=arguments[0]||{},a=1,s=arguments.length,l=!1;for("boolean"==typeof o&&(l=o,o=arguments[a]||{},a++),"object"==typeof o||Z.isFunction(o)||(o={}),a===s&&(o=this,a--);a<s;a++)if(null!=(i=arguments[a]))for(n in i)r=o[n],o!==(t=i[n])&&(l&&t&&(Z.isPlainObject(t)||(e=Z.isArray(t)))?(r=e?(e=!1,r&&Z.isArray(r)?r:[]):r&&Z.isPlainObject(r)?r:{},o[n]=Z.extend(l,r,t)):void 0!==t&&(o[n]=t));return o},Z.extend({expando:"jQuery"+(J+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===Z.type(e)},isArray:Array.isArray||function(e){return"array"===Z.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return 0<=e-parseFloat(e)},isEmptyObject:function(e){for(var t in e)return!1;return!0},isPlainObject:function(e){if(!e||"object"!==Z.type(e)||e.nodeType||Z.isWindow(e))return!1;try{if(e.constructor&&!G.call(e,"constructor")&&!G.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}if(X.ownLast)for(var t in e)return G.call(e,t);for(t in e);return void 0===t||G.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?K[Y.call(e)]||"object":typeof e},globalEval:function(e){e&&Z.trim(e)&&(h.execScript||function(e){h.eval.call(h,e)})(e)},camelCase:function(e){return e.replace(ee,"ms-").replace(te,z)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var i=0,r=e.length,o=s(e);if(n){if(o)for(;i<r&&!1!==t.apply(e[i],n);i++);else for(i in e)if(!1===t.apply(e[i],n))break}else if(o)for(;i<r&&!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:V&&!V.call("\ufeff ")?function(e){return null==e?"":V.call(e)}:function(e){return null==e?"":(e+"").replace(Q,"")},makeArray:function(e,t){t=t||[];return null!=e&&(s(Object(e))?Z.merge(t,"string"==typeof e?[e]:e):U.call(t,e)),t},inArray:function(e,t,n){var i;if(t){if(q)return q.call(t,e,n);for(i=t.length,n=n?n<0?Math.max(0,i+n):n:0;n<i;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;)e[r++]=t[i++];if(n!=n)for(;void 0!==t[i];)e[r++]=t[i++];return e.length=r,e},grep:function(e,t,n){for(var i=[],r=0,o=e.length,a=!n;r<o;r++)!t(e[r],r)!=a&&i.push(e[r]);return i},map:function(e,t,n){var i,r=0,o=e.length,a=[];if(s(e))for(;r<o;r++)null!=(i=t(e[r],r,n))&&a.push(i);else for(r in e)null!=(i=t(e[r],r,n))&&a.push(i);return W.apply([],a)},guid:1,proxy:function(e,t){var n,i;if("string"==typeof t&&(i=e[t],t=e,e=i),Z.isFunction(e))return n=B.call(arguments,2),(i=function(){return e.apply(t||this,n.concat(B.call(arguments)))}).guid=e.guid=e.guid||Z.guid++,i},now:function(){return+new Date},support:X}),Z.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){K["[object "+t+"]"]=t.toLowerCase()});var ne=function(n){function w(e,t,n,i){var r,o,a,s,l,u,c;if((t?t.ownerDocument||t:$)!==D&&A(t),n=n||[],!e||"string"!=typeof e)return n;if(1!==(r=(t=t||D).nodeType)&&9!==r)return[];if(N&&!i){if(u=he.exec(e))if(c=u[1]){if(9===r){if(!(s=t.getElementById(c))||!s.parentNode)return n;if(s.id===c)return n.push(s),n}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(c))&&I(t,s)&&s.id===c)return n.push(s),n}else{if(u[2])return V.apply(n,t.getElementsByTagName(e)),n;if((c=u[3])&&v.getElementsByClassName&&t.getElementsByClassName)return V.apply(n,t.getElementsByClassName(c)),n}if(v.qsa&&(!M||!M.test(e))){if(l=s=j,u=t,c=9===r&&e,1===r&&"object"!==t.nodeName.toLowerCase()){for(a=d(e),(s=t.getAttribute("id"))?l=s.replace(ge,"\\$&"):t.setAttribute("id",l),l="[id='"+l+"'] ",o=a.length;o--;)a[o]=l+p(a[o]);u=me.test(e)&&f(t.parentNode)||t,c=a.join(",")}if(c)try{return V.apply(n,u.querySelectorAll(c)),n}catch(e){}finally{s||t.removeAttribute("id")}}}return T(e.replace(re,"$1"),t,n,i)}function e(){function n(e,t){return i.push(e+" ")>x.cacheLength&&delete n[i.shift()],n[e+" "]=t}var i=[];return n}function l(e){return e[j]=!0,e}function t(e){var t=D.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function i(e,t){for(var n=e.split("|"),i=e.length;i--;)x.attrHandle[n[i]]=t}function u(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function r(a){return l(function(o){return o=+o,l(function(e,t){for(var n,i=a([],e.length,o),r=i.length;r--;)e[n=i[r]]&&(e[n]=!(t[n]=e[n]))})})}function f(e){return e&&typeof e.getElementsByTagName!==U&&e}function o(){}function d(e,t){var n,i,r,o,a,s,l,u=H[e+" "];if(u)return t?0:u.slice(0);for(a=e,s=[],l=x.preFilter;a;){for(o in n&&!(i=oe.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=ae.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(re," ")}),a=a.slice(n.length)),x.filter)!(i=ce[o].exec(a))||l[o]&&!(i=l[o](i))||(n=i.shift(),r.push({value:n,type:o,matches:i}),a=a.slice(n.length));if(!n)break}return t?a.length:a?w.error(e):H(e,s).slice(0)}function p(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function h(a,e,t){var s=e.dir,l=t&&"parentNode"===s,u=R++;return e.first?function(e,t,n){for(;e=e[s];)if(1===e.nodeType||l)return a(e,t,n)}:function(e,t,n){var i,r,o=[F,u];if(n){for(;e=e[s];)if((1===e.nodeType||l)&&a(e,t,n))return!0}else for(;e=e[s];)if(1===e.nodeType||l){if((i=(r=e[j]||(e[j]={}))[s])&&i[0]===F&&i[1]===u)return o[2]=i[2];if((r[s]=o)[2]=a(e,t,n))return!0}}}function m(r){return 1<r.length?function(e,t,n){for(var i=r.length;i--;)if(!r[i](e,t,n))return!1;return!0}:r[0]}function _(e,t,n,i,r){for(var o,a=[],s=0,l=e.length,u=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,i,r)||(a.push(o),u&&t.push(s)));return a}function y(p,h,m,g,v,e){return g&&!g[j]&&(g=y(g)),v&&!v[j]&&(v=y(v,e)),l(function(e,t,n,i){var r,o,a,s=[],l=[],u=t.length,c=e||function(e,t,n){for(var i=0,r=t.length;i<r;i++)w(e,t[i],n);return n}(h||"*",n.nodeType?[n]:n,[]),f=!p||!e&&h?c:_(c,s,p,n,i),d=m?v||(e?p:u||g)?[]:t:f;if(m&&m(f,d,n,i),g)for(r=_(d,l),g(r,[],n,i),o=r.length;o--;)(a=r[o])&&(d[l[o]]=!(f[l[o]]=a));if(e){if(v||p){if(v){for(r=[],o=d.length;o--;)(a=d[o])&&r.push(f[o]=a);v(null,d=[],r,i)}for(o=d.length;o--;)(a=d[o])&&-1<(r=v?J.call(e,a):s[o])&&(e[r]=!(t[r]=a))}}else d=_(d===t?d.splice(u,d.length):d),v?v(null,t,d,i):V.apply(t,d)})}function a(g,v){function e(e,t,n,i,r){var o,a,s,l=0,u="0",c=e&&[],f=[],d=k,p=e||b&&x.find.TAG("*",r),h=F+=null==d?1:Math.random()||.1,m=p.length;for(r&&(k=t!==D&&t);u!==m&&null!=(o=p[u]);u++){if(b&&o){for(a=0;s=g[a++];)if(s(o,t,n)){i.push(o);break}r&&(F=h)}y&&((o=!s&&o)&&l--,e&&c.push(o))}if(l+=u,y&&u!==l){for(a=0;s=v[a++];)s(c,f,t,n);if(e){if(0<l)for(;u--;)c[u]||f[u]||(f[u]=Y.call(i));f=_(f)}V.apply(i,f),r&&!e&&0<f.length&&1<l+v.length&&w.uniqueSort(i)}return r&&(F=h,k=d),c}var y=0<v.length,b=0<g.length;return y?l(e):e}function g(e,t,n){var i="0x"+t-65536;return i!=i||n?t:i<0?String.fromCharCode(65536+i):String.fromCharCode(i>>10|55296,1023&i|56320)}var s,v,x,c,b,C,T,k,E,S,A,D,O,N,M,L,P,I,j="sizzle"+-new Date,$=n.document,F=0,R=0,z=e(),H=e(),B=e(),W=function(e,t){return e===t&&(S=!0),0},U="undefined",q={}.hasOwnProperty,K=[],Y=K.pop,G=K.push,V=K.push,X=K.slice,J=K.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},Z="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Q="[\\x20\\t\\r\\n\\f]",ee="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",te=ee.replace("w","w#"),ne="\\["+Q+"*("+ee+")"+Q+"*(?:([*^$|!~]?=)"+Q+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+te+")|)|)"+Q+"*\\]",ie=":("+ee+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+ne.replace(3,8)+")*)|.*)\\)|)",re=new RegExp("^"+Q+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Q+"+$","g"),oe=new RegExp("^"+Q+"*,"+Q+"*"),ae=new RegExp("^"+Q+"*([>+~]|"+Q+")"+Q+"*"),se=new RegExp("="+Q+"*([^\\]'\"]*?)"+Q+"*\\]","g"),le=new RegExp(ie),ue=new RegExp("^"+te+"$"),ce={ID:new RegExp("^#("+ee+")"),CLASS:new RegExp("^\\.("+ee+")"),TAG:new RegExp("^("+ee.replace("w","w*")+")"),ATTR:new RegExp("^"+ne),PSEUDO:new RegExp("^"+ie),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Q+"*(even|odd|(([+-]|)(\\d*)n|)"+Q+"*(?:([+-]|)"+Q+"*(\\d+)|))"+Q+"*\\)|)","i"),bool:new RegExp("^(?:"+Z+")$","i"),needsContext:new RegExp("^"+Q+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Q+"*((?:-\\d)?\\d*)"+Q+"*\\)|)(?=[^-]|$)","i")},fe=/^(?:input|select|textarea|button)$/i,de=/^h\d$/i,pe=/^[^{]+\{\s*\[native \w/,he=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,me=/[+~]/,ge=/'|\\/g,ve=new RegExp("\\\\([\\da-f]{1,6}"+Q+"?|("+Q+")|.)","ig");try{V.apply(K=X.call($.childNodes),$.childNodes),K[$.childNodes.length].nodeType}catch(e){V={apply:K.length?function(e,t){G.apply(e,X.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}for(s in v=w.support={},b=w.isXML=function(e){e=e&&(e.ownerDocument||e).documentElement;return!!e&&"HTML"!==e.nodeName},A=w.setDocument=function(e){var l=e?e.ownerDocument||e:$,e=l.defaultView;return l!==D&&9===l.nodeType&&l.documentElement?(O=(D=l).documentElement,N=!b(l),e&&e!==e.top&&(e.addEventListener?e.addEventListener("unload",function(){A()},!1):e.attachEvent&&e.attachEvent("onunload",function(){A()})),v.attributes=t(function(e){return e.className="i",!e.getAttribute("className")}),v.getElementsByTagName=t(function(e){return e.appendChild(l.createComment("")),!e.getElementsByTagName("*").length}),v.getElementsByClassName=pe.test(l.getElementsByClassName)&&t(function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),v.getById=t(function(e){return O.appendChild(e).id=j,!l.getElementsByName||!l.getElementsByName(j).length}),v.getById?(x.find.ID=function(e,t){if(typeof t.getElementById!==U&&N){e=t.getElementById(e);return e&&e.parentNode?[e]:[]}},x.filter.ID=function(e){var t=e.replace(ve,g);return function(e){return e.getAttribute("id")===t}}):(delete x.find.ID,x.filter.ID=function(e){var t=e.replace(ve,g);return function(e){e=typeof e.getAttributeNode!==U&&e.getAttributeNode("id");return e&&e.value===t}}),x.find.TAG=v.getElementsByTagName?function(e,t){if(typeof t.getElementsByTagName!==U)return t.getElementsByTagName(e)}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[r++];)1===n.nodeType&&i.push(n);return i},x.find.CLASS=v.getElementsByClassName&&function(e,t){if(typeof t.getElementsByClassName!==U&&N)return t.getElementsByClassName(e)},L=[],M=[],(v.qsa=pe.test(l.querySelectorAll))&&(t(function(e){e.innerHTML="<select t=''><option selected=''></option></select>",e.querySelectorAll("[t^='']").length&&M.push("[*^$]="+Q+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||M.push("\\["+Q+"*(?:value|"+Z+")"),e.querySelectorAll(":checked").length||M.push(":checked")}),t(function(e){var t=l.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&M.push("name"+Q+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||M.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),M.push(",.*:")})),(v.matchesSelector=pe.test(P=O.webkitMatchesSelector||O.mozMatchesSelector||O.oMatchesSelector||O.msMatchesSelector))&&t(function(e){v.disconnectedMatch=P.call(e,"div"),P.call(e,"[s!='']:x"),L.push("!=",ie)}),M=M.length&&new RegExp(M.join("|")),L=L.length&&new RegExp(L.join("|")),e=pe.test(O.compareDocumentPosition),I=e||pe.test(O.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},W=e?function(e,t){if(e===t)return S=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!v.sortDetached&&t.compareDocumentPosition(e)===n?e===l||e.ownerDocument===$&&I($,e)?-1:t===l||t.ownerDocument===$&&I($,t)?1:E?J.call(E,e)-J.call(E,t):0:4&n?-1:1)}:function(e,t){if(e===t)return S=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e===l?-1:t===l?1:r?-1:o?1:E?J.call(E,e)-J.call(E,t):0;if(r===o)return u(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?u(a[i],s[i]):a[i]===$?-1:s[i]===$?1:0},l):D},w.matches=function(e,t){return w(e,null,null,t)},w.matchesSelector=function(e,t){if((e.ownerDocument||e)!==D&&A(e),t=t.replace(se,"='$1']"),v.matchesSelector&&N&&(!L||!L.test(t))&&(!M||!M.test(t)))try{var n=P.call(e,t);if(n||v.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0<w(t,D,null,[e]).length},w.contains=function(e,t){return(e.ownerDocument||e)!==D&&A(e),I(e,t)},w.attr=function(e,t){(e.ownerDocument||e)!==D&&A(e);var n=x.attrHandle[t.toLowerCase()],n=n&&q.call(x.attrHandle,t.toLowerCase())?n(e,t,!N):void 0;return void 0!==n?n:v.attributes||!N?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},w.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},w.uniqueSort=function(e){var t,n=[],i=0,r=0;if(S=!v.detectDuplicates,E=!v.sortStable&&e.slice(0),e.sort(W),S){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return E=null,e},c=w.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+=c(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=c(t);return n},(x=w.selectors={cacheLength:50,createPseudo:l,match:ce,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(ve,g),e[3]=(e[4]||e[5]||"").replace(ve,g),"~="===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]||w.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]&&w.error(e[0]),e},PSEUDO:function(e){var t,n=!e[5]&&e[2];return ce.CHILD.test(e[0])?null:(e[3]&&void 0!==e[4]?e[2]=e[4]:n&&le.test(n)&&(t=d(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(ve,g).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=z[e+" "];return t||(t=new RegExp("(^|"+Q+")"+e+"("+Q+"|$)"))&&z(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==U&&e.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(e){e=w.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===i:"!="===n?e!==i:"^="===n?i&&0===e.indexOf(i):"*="===n?i&&-1<e.indexOf(i):"$="===n?i&&e.slice(-i.length)===i:"~="===n?-1<(" "+e+" ").indexOf(i):"|="===n&&(e===i||e.slice(0,i.length+1)===i+"-"))}},CHILD:function(p,e,t,h,m){var g="nth"!==p.slice(0,3),v="last"!==p.slice(-4),y="of-type"===e;return 1===h&&0===m?function(e){return!!e.parentNode}:function(e,t,n){var i,r,o,a,s,l,u=g!=v?"nextSibling":"previousSibling",c=e.parentNode,f=y&&e.nodeName.toLowerCase(),d=!n&&!y;if(c){if(g){for(;u;){for(o=e;o=o[u];)if(y?o.nodeName.toLowerCase()===f:1===o.nodeType)return!1;l=u="only"===p&&!l&&"nextSibling"}return!0}if(l=[v?c.firstChild:c.lastChild],v&&d){for(s=(i=(r=c[j]||(c[j]={}))[p]||[])[0]===F&&i[1],a=i[0]===F&&i[2],o=s&&c.childNodes[s];o=++s&&o&&o[u]||(a=s=0)||l.pop();)if(1===o.nodeType&&++a&&o===e){r[p]=[F,s,a];break}}else if(d&&(i=(e[j]||(e[j]={}))[p])&&i[0]===F)a=i[1];else for(;(o=++s&&o&&o[u]||(a=s=0)||l.pop())&&((y?o.nodeName.toLowerCase()!==f:1!==o.nodeType)||!++a||(d&&((o[j]||(o[j]={}))[p]=[F,a]),o!==e)););return(a-=m)===h||a%h==0&&0<=a/h}}},PSEUDO:function(e,o){var t,a=x.pseudos[e]||x.setFilters[e.toLowerCase()]||w.error("unsupported pseudo: "+e);return a[j]?a(o):1<a.length?(t=[e,e,"",o],x.setFilters.hasOwnProperty(e.toLowerCase())?l(function(e,t){for(var n,i=a(e,o),r=i.length;r--;)e[n=J.call(e,i[r])]=!(t[n]=i[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:l(function(e){var i=[],r=[],s=C(e.replace(re,"$1"));return s[j]?l(function(e,t,n,i){for(var r,o=s(e,null,i,[]),a=e.length;a--;)(r=o[a])&&(e[a]=!(t[a]=r))}):function(e,t,n){return i[0]=e,s(i,null,n,r),!r.pop()}}),has:l(function(t){return function(e){return 0<w(t,e).length}}),contains:l(function(t){return function(e){return-1<(e.textContent||e.innerText||c(e)).indexOf(t)}}),lang:l(function(n){return ue.test(n||"")||w.error("unsupported lang: "+n),n=n.replace(ve,g).toLowerCase(),function(e){var t;do{if(t=N?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===O},focus:function(e){return e===D.activeElement&&(!D.hasFocus||D.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!x.pseudos.empty(e)},header:function(e){return de.test(e.nodeName)},input:function(e){return fe.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(e=e.getAttribute("type"))||"text"===e.toLowerCase())},first:r(function(){return[0]}),last:r(function(e,t){return[t-1]}),eq:r(function(e,t,n){return[n<0?n+t:n]}),even:r(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:r(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:r(function(e,t,n){for(var i=n<0?n+t:n;0<=--i;)e.push(i);return e}),gt:r(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=x.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[s]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(s);for(s in{submit:!0,reset:!0})x.pseudos[s]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(s);return o.prototype=x.filters=x.pseudos,x.setFilters=new o,C=w.compile=function(e,t){var n,i=[],r=[],o=B[e+" "];if(!o){for(n=(t=t||d(e)).length;n--;)((o=function e(t){for(var i,n,r,o=t.length,a=x.relative[t[0].type],s=a||x.relative[" "],l=a?1:0,u=h(function(e){return e===i},s,!0),c=h(function(e){return-1<J.call(i,e)},s,!0),f=[function(e,t,n){return!a&&(n||t!==k)||((i=t).nodeType?u:c)(e,t,n)}];l<o;l++)if(n=x.relative[t[l].type])f=[h(m(f),n)];else{if((n=x.filter[t[l].type].apply(null,t[l].matches))[j]){for(r=++l;r<o&&!x.relative[t[r].type];r++);return y(1<l&&m(f),1<l&&p(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(re,"$1"),n,l<r&&e(t.slice(l,r)),r<o&&e(t=t.slice(r)),r<o&&p(t))}f.push(n)}return m(f)}(t[n]))[j]?i:r).push(o);(o=B(e,a(r,i))).selector=e}return o},T=w.select=function(e,t,n,i){var r,o,a,s,l,u="function"==typeof e&&e,c=!i&&d(e=u.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&v.getById&&9===t.nodeType&&N&&x.relative[o[1].type]){if(!(t=(x.find.ID(a.matches[0].replace(ve,g),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=ce.needsContext.test(e)?0:o.length;r--&&(a=o[r],!x.relative[s=a.type]);)if((l=x.find[s])&&(i=l(a.matches[0].replace(ve,g),me.test(o[0].type)&&f(t.parentNode)||t))){if(o.splice(r,1),!(e=i.length&&p(o)))return V.apply(n,i),n;break}}return(u||C(e,c))(i,t,!N,n,me.test(e)&&f(t.parentNode)||t),n},v.sortStable=j.split("").sort(W).join("")===j,v.detectDuplicates=!!S,A(),v.sortDetached=t(function(e){return 1&e.compareDocumentPosition(D.createElement("div"))}),t(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||i("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),v.attributes&&t(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||i("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),t(function(e){return null==e.getAttribute("disabled")})||i(Z,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(t=e.getAttributeNode(t))&&t.specified?t.value:null}),w}(h);Z.find=ne,Z.expr=ne.selectors,Z.expr[":"]=Z.expr.pseudos,Z.unique=ne.uniqueSort,Z.text=ne.getText,Z.isXMLDoc=ne.isXML,Z.contains=ne.contains;var ie=Z.expr.match.needsContext,re=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,oe=/^.[^:#\[\.,]*$/;Z.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?Z.find.matchesSelector(i,e)?[i]:[]:Z.find.matches(e,Z.grep(t,function(e){return 1===e.nodeType}))},Z.fn.extend({find:function(e){var t,n=[],i=this,r=i.length;if("string"!=typeof e)return this.pushStack(Z(e).filter(function(){for(t=0;t<r;t++)if(Z.contains(i[t],this))return!0}));for(t=0;t<r;t++)Z.find(e,i[t],n);return(n=this.pushStack(1<r?Z.unique(n):n)).selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(t(this,e||[],!1))},not:function(e){return this.pushStack(t(this,e||[],!0))},is:function(e){return!!t(this,"string"==typeof e&&ie.test(e)?Z(e):e||[],!1).length}});var ae=h.document,se=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(Z.fn.init=function(e,t){var n,i;if(!e)return this;if("string"!=typeof e)return e.nodeType?(this.context=this[0]=e,this.length=1,this):Z.isFunction(e)?void 0!==le.ready?le.ready(e):e(Z):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),Z.makeArray(e,this));if(!(n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:se.exec(e))||!n[1]&&t)return(!t||t.jquery?t||le:this.constructor(t)).find(e);if(n[1]){if(t=t instanceof Z?t[0]:t,Z.merge(this,Z.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:ae,!0)),re.test(n[1])&&Z.isPlainObject(t))for(n in t)Z.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}if((i=ae.getElementById(n[2]))&&i.parentNode){if(i.id!==n[2])return le.find(e);this.length=1,this[0]=i}return this.context=ae,this.selector=e,this}).prototype=Z.fn;var le=Z(ae),ue=/^(?:parents|prev(?:Until|All))/,ce={children:!0,contents:!0,next:!0,prev:!0};Z.extend({dir:function(e,t,n){for(var i=[],r=e[t];r&&9!==r.nodeType&&(void 0===n||1!==r.nodeType||!Z(r).is(n));)1===r.nodeType&&i.push(r),r=r[t];return i},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),Z.fn.extend({has:function(e){var t,n=Z(e,this),i=n.length;return this.filter(function(){for(t=0;t<i;t++)if(Z.contains(this,n[t]))return!0})},closest:function(e,t){for(var n,i=0,r=this.length,o=[],a=ie.test(e)||"string"!=typeof e?Z(e,t||this.context):0;i<r;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&Z.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?Z.unique(o):o)},index:function(e){return e?"string"==typeof e?Z.inArray(this[0],Z(e)):Z.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(Z.unique(Z.merge(this.get(),Z(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),Z.each({parent:function(e){e=e.parentNode;return e&&11!==e.nodeType?e:null},parents:function(e){return Z.dir(e,"parentNode")},parentsUntil:function(e,t,n){return Z.dir(e,"parentNode",n)},next:function(e){return n(e,"nextSibling")},prev:function(e){return n(e,"previousSibling")},nextAll:function(e){return Z.dir(e,"nextSibling")},prevAll:function(e){return Z.dir(e,"previousSibling")},nextUntil:function(e,t,n){return Z.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return Z.dir(e,"previousSibling",n)},siblings:function(e){return Z.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return Z.sibling(e.firstChild)},contents:function(e){return Z.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:Z.merge([],e.childNodes)}},function(i,r){Z.fn[i]=function(e,t){var n=Z.map(this,r,e);return(t="Until"!==i.slice(-5)?e:t)&&"string"==typeof t&&(n=Z.filter(t,n)),1<this.length&&(ce[i]||(n=Z.unique(n)),ue.test(i)&&(n=n.reverse())),this.pushStack(n)}});var fe,de=/\S+/g,pe={};Z.Callbacks=function(r){var e,n;r="string"==typeof r?pe[r]||(n=pe[e=r]={},Z.each(e.match(de)||[],function(e,t){n[t]=!0}),n):Z.extend({},r);function i(e){for(t=r.memory&&e,a=!0,l=u||0,u=0,s=c.length,o=!0;c&&l<s;l++)if(!1===c[l].apply(e[0],e[1])&&r.stopOnFalse){t=!1;break}o=!1,c&&(f?f.length&&i(f.shift()):t?c=[]:d.disable())}var o,t,a,s,l,u,c=[],f=!r.once&&[],d={add:function(){var e;return c&&(e=c.length,function i(e){Z.each(e,function(e,t){var n=Z.type(t);"function"===n?r.unique&&d.has(t)||c.push(t):t&&t.length&&"string"!==n&&i(t)})}(arguments),o?s=c.length:t&&(u=e,i(t))),this},remove:function(){return c&&Z.each(arguments,function(e,t){for(var n;-1<(n=Z.inArray(t,c,n));)c.splice(n,1),o&&(n<=s&&s--,n<=l&&l--)}),this},has:function(e){return e?-1<Z.inArray(e,c):!(!c||!c.length)},empty:function(){return c=[],s=0,this},disable:function(){return c=f=t=void 0,this},disabled:function(){return!c},lock:function(){return f=void 0,t||d.disable(),this},locked:function(){return!f},fireWith:function(e,t){return!c||a&&!f||(t=[e,(t=t||[]).slice?t.slice():t],o?f.push(t):i(t)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!a}};return d},Z.extend({Deferred:function(e){var o=[["resolve","done",Z.Callbacks("once memory"),"resolved"],["reject","fail",Z.Callbacks("once memory"),"rejected"],["notify","progress",Z.Callbacks("memory")]],r="pending",a={state:function(){return r},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var r=arguments;return Z.Deferred(function(i){Z.each(o,function(e,t){var n=Z.isFunction(r[e])&&r[e];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&Z.isFunction(e.promise)?e.promise().done(i.resolve).fail(i.reject).progress(i.notify):i[t[0]+"With"](this===a?i.promise():this,n?[e]:arguments)})}),r=null}).promise()},promise:function(e){return null!=e?Z.extend(e,a):a}},s={};return a.pipe=a.then,Z.each(o,function(e,t){var n=t[2],i=t[3];a[t[1]]=n.add,i&&n.add(function(){r=i},o[1^e][2].disable,o[2][2].lock),s[t[0]]=function(){return s[t[0]+"With"](this===s?a:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){function t(t,n,i){return function(e){n[t]=this,i[t]=1<arguments.length?B.call(arguments):e,i===r?u.notifyWith(n,i):--l||u.resolveWith(n,i)}}var r,n,i,o=0,a=B.call(arguments),s=a.length,l=1!==s||e&&Z.isFunction(e.promise)?s:0,u=1===l?e:Z.Deferred();if(1<s)for(r=new Array(s),n=new Array(s),i=new Array(s);o<s;o++)a[o]&&Z.isFunction(a[o].promise)?a[o].promise().done(t(o,i,a)).fail(u.reject).progress(t(o,n,r)):--l;return l||u.resolveWith(i,a),u.promise()}}),Z.fn.ready=function(e){return Z.ready.promise().done(e),this},Z.extend({isReady:!1,readyWait:1,holdReady:function(e){e?Z.readyWait++:Z.ready(!0)},ready:function(e){if(!0===e?!--Z.readyWait:!Z.isReady){if(!ae.body)return setTimeout(Z.ready);(Z.isReady=!0)!==e&&0<--Z.readyWait||(fe.resolveWith(ae,[Z]),Z.fn.trigger&&Z(ae).trigger("ready").off("ready"))}}}),Z.ready.promise=function(e){if(!fe)if(fe=Z.Deferred(),"complete"===ae.readyState)setTimeout(Z.ready);else if(ae.addEventListener)ae.addEventListener("DOMContentLoaded",r,!1),h.addEventListener("load",r,!1);else{ae.attachEvent("onreadystatechange",r),h.attachEvent("onload",r);var n=!1;try{n=null==h.frameElement&&ae.documentElement}catch(e){}n&&n.doScroll&&!function t(){if(!Z.isReady){try{n.doScroll("left")}catch(e){return setTimeout(t,50)}i(),Z.ready()}}()}return fe.promise(e)};var he,me="undefined";for(he in Z(X))break;X.ownLast="0"!==he,X.inlineBlockNeedsLayout=!1,Z(function(){var e,t,n=ae.getElementsByTagName("body")[0];n&&((e=ae.createElement("div")).style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",t=ae.createElement("div"),n.appendChild(e).appendChild(t),typeof t.style.zoom!=me&&(t.style.cssText="border:0;margin:0;width:1px;padding:1px;display:inline;zoom:1",(X.inlineBlockNeedsLayout=3===t.offsetWidth)&&(n.style.zoom=1)),n.removeChild(e))}),function(){var e=ae.createElement("div");if(null==X.deleteExpando){X.deleteExpando=!0;try{delete e.test}catch(e){X.deleteExpando=!1}}}(),Z.acceptData=function(e){var t=Z.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return(1===n||9===n)&&(!t||!0!==t&&e.getAttribute("classid")===t)};var ge=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ve=/([A-Z])/g;Z.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return!!(e=e.nodeType?Z.cache[e[Z.expando]]:e[Z.expando])&&!u(e)},data:function(e,t,n){return o(e,t,n)},removeData:function(e,t){return a(e,t)},_data:function(e,t,n){return o(e,t,n,!0)},_removeData:function(e,t){return a(e,t,!0)}}),Z.fn.extend({data:function(e,t){var n,i,r,o=this[0],a=o&&o.attributes;if(void 0!==e)return"object"==typeof e?this.each(function(){Z.data(this,e)}):1<arguments.length?this.each(function(){Z.data(this,e,t)}):o?l(o,e,Z.data(o,e)):void 0;if(this.length&&(r=Z.data(o),1===o.nodeType&&!Z._data(o,"parsedAttrs"))){for(n=a.length;n--;)0===(i=a[n].name).indexOf("data-")&&l(o,i=Z.camelCase(i.slice(5)),r[i]);Z._data(o,"parsedAttrs",!0)}return r},removeData:function(e){return this.each(function(){Z.removeData(this,e)})}}),Z.extend({queue:function(e,t,n){var i;if(e)return i=Z._data(e,t=(t||"fx")+"queue"),n&&(!i||Z.isArray(n)?i=Z._data(e,t,Z.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=Z.queue(e,t),i=n.length,r=n.shift(),o=Z._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,function(){Z.dequeue(e,t)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Z._data(e,n)||Z._data(e,n,{empty:Z.Callbacks("once memory").add(function(){Z._removeData(e,t+"queue"),Z._removeData(e,n)})})}}),Z.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?Z.queue(this[0],t):void 0===n?this:this.each(function(){var e=Z.queue(this,t,n);Z._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&Z.dequeue(this,t)})},dequeue:function(e){return this.each(function(){Z.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function n(){--r||o.resolveWith(a,[a])}var i,r=1,o=Z.Deferred(),a=this,s=this.length;for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(i=Z._data(a[s],e+"queueHooks"))&&i.empty&&(r++,i.empty.add(n));return n(),o.promise(t)}});function ye(e,t){return"none"===Z.css(e=t||e,"display")||!Z.contains(e.ownerDocument,e)}var be=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,we=["Top","Right","Bottom","Left"],_e=Z.access=function(e,t,n,i,r,o,a){var s=0,l=e.length,u=null==n;if("object"===Z.type(n))for(s in r=!0,n)Z.access(e,t,s,n[s],!0,o,a);else if(void 0!==i&&(r=!0,Z.isFunction(i)||(a=!0),t=u?a?(t.call(e,i),null):(u=t,function(e,t,n){return u.call(Z(e),n)}):t))for(;s<l;s++)t(e[s],n,a?i:i.call(e[s],s,t(e[s],n)));return r?e:u?t.call(e):l?t(e[0],n):o},xe=/^(?:checkbox|radio)$/i;!function(){var e=ae.createDocumentFragment(),t=ae.createElement("div"),n=ae.createElement("input");if(t.setAttribute("className","t"),t.innerHTML=" <link/><table></table><a href='/a'>a</a>",X.leadingWhitespace=3===t.firstChild.nodeType,X.tbody=!t.getElementsByTagName("tbody").length,X.htmlSerialize=!!t.getElementsByTagName("link").length,X.html5Clone="<:nav></:nav>"!==ae.createElement("nav").cloneNode(!0).outerHTML,n.type="checkbox",n.checked=!0,e.appendChild(n),X.appendChecked=n.checked,t.innerHTML="<textarea>x</textarea>",X.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,e.appendChild(t),t.innerHTML="<input type='radio' checked='checked' name='t'/>",X.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,X.noCloneEvent=!0,t.attachEvent&&(t.attachEvent("onclick",function(){X.noCloneEvent=!1}),t.cloneNode(!0).click()),null==X.deleteExpando){X.deleteExpando=!0;try{delete t.test}catch(e){X.deleteExpando=!1}}}(),function(){var e,t,n=ae.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})(X[e+"Bubbles"]=(t="on"+e)in h)||(n.setAttribute(t,"t"),X[e+"Bubbles"]=!1===n.attributes[t].expando)}();var Ce=/^(?:input|select|textarea)$/i,Te=/^key/,ke=/^(?:mouse|contextmenu)|click/,Ee=/^(?:focusinfocus|focusoutblur)$/,Se=/^([^.]*)(?:\.(.+)|)$/;Z.event={global:{},add:function(e,t,n,i,r){var o,a,s,l,u,c,f,d,p,h=Z._data(e);if(h)for(n.handler&&(n=(s=n).handler,r=s.selector),n.guid||(n.guid=Z.guid++),(o=h.events)||(o=h.events={}),(u=h.handle)||((u=h.handle=function(e){return typeof Z==me||e&&Z.event.triggered===e.type?void 0:Z.event.dispatch.apply(u.elem,arguments)}).elem=e),a=(t=(t||"").match(de)||[""]).length;a--;)f=p=(c=Se.exec(t[a])||[])[1],d=(c[2]||"").split(".").sort(),f&&(l=Z.event.special[f]||{},f=(r?l.delegateType:l.bindType)||f,l=Z.event.special[f]||{},c=Z.extend({type:f,origType:p,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&Z.expr.match.needsContext.test(r),namespace:d.join(".")},s),(p=o[f])||((p=o[f]=[]).delegateCount=0,l.setup&&!1!==l.setup.call(e,i,d,u)||(e.addEventListener?e.addEventListener(f,u,!1):e.attachEvent&&e.attachEvent("on"+f,u))),l.add&&(l.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),r?p.splice(p.delegateCount++,0,c):p.push(c),Z.event.global[f]=!0)},remove:function(e,t,n,i,r){var o,a,s,l,u,c,f,d,p,h,m,g=Z.hasData(e)&&Z._data(e);if(g&&(c=g.events)){for(u=(t=(t||"").match(de)||[""]).length;u--;)if(p=m=(s=Se.exec(t[u])||[])[1],h=(s[2]||"").split(".").sort(),p){for(f=Z.event.special[p]||{},d=c[p=(i?f.delegateType:f.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=d.length;o--;)a=d[o],!r&&m!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||i&&i!==a.selector&&("**"!==i||!a.selector)||(d.splice(o,1),a.selector&&d.delegateCount--,f.remove&&f.remove.call(e,a));l&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,h,g.handle)||Z.removeEvent(e,p,g.handle),delete c[p])}else for(p in c)Z.event.remove(e,p+t[u],n,i,!0);Z.isEmptyObject(c)&&(delete g.handle,Z._removeData(e,"events"))}},trigger:function(e,t,n,i){var r,o,a,s,l,u,c=[n||ae],f=G.call(e,"type")?e.type:e,d=G.call(e,"namespace")?e.namespace.split("."):[],p=l=n=n||ae;if(3!==n.nodeType&&8!==n.nodeType&&!Ee.test(f+Z.event.triggered)&&(0<=f.indexOf(".")&&(f=(d=f.split(".")).shift(),d.sort()),o=f.indexOf(":")<0&&"on"+f,(e=e[Z.expando]?e:new Z.Event(f,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=d.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:Z.makeArray(t,[e]),s=Z.event.special[f]||{},i||!s.trigger||!1!==s.trigger.apply(n,t))){if(!i&&!s.noBubble&&!Z.isWindow(n)){for(a=s.delegateType||f,Ee.test(a+f)||(p=p.parentNode);p;p=p.parentNode)c.push(p),l=p;l===(n.ownerDocument||ae)&&c.push(l.defaultView||l.parentWindow||h)}for(u=0;(p=c[u++])&&!e.isPropagationStopped();)e.type=1<u?a:s.bindType||f,(r=(Z._data(p,"events")||{})[e.type]&&Z._data(p,"handle"))&&r.apply(p,t),(r=o&&p[o])&&r.apply&&Z.acceptData(p)&&(e.result=r.apply(p,t),!1===e.result&&e.preventDefault());if(e.type=f,!i&&!e.isDefaultPrevented()&&(!s._default||!1===s._default.apply(c.pop(),t))&&Z.acceptData(n)&&o&&n[f]&&!Z.isWindow(n)){(l=n[o])&&(n[o]=null),Z.event.triggered=f;try{n[f]()}catch(e){}Z.event.triggered=void 0,l&&(n[o]=l)}return e.result}},dispatch:function(e){e=Z.event.fix(e);var t,n,i,r,o,a=B.call(arguments),s=(Z._data(this,"events")||{})[e.type]||[],l=Z.event.special[e.type]||{};if((a[0]=e).delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,e)){for(o=Z.event.handlers.call(this,e,s),t=0;(i=o[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,r=0;(n=i.handlers[r++])&&!e.isImmediatePropagationStopped();)e.namespace_re&&!e.namespace_re.test(n.namespace)||(e.handleObj=n,e.data=n.data,void 0!==(n=((Z.event.special[n.origType]||{}).handle||n.handler).apply(i.elem,a))&&!1===(e.result=n)&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,i,r,o,a=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(r=[],o=0;o<s;o++)void 0===r[n=(i=t[o]).selector+" "]&&(r[n]=i.needsContext?0<=Z(n,this).index(l):Z.find(n,this,null,[l]).length),r[n]&&r.push(i);r.length&&a.push({elem:l,handlers:r})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},fix:function(e){if(e[Z.expando])return e;var t,n,i,r=e.type,o=e,a=this.fixHooks[r];for(a||(this.fixHooks[r]=a=ke.test(r)?this.mouseHooks:Te.test(r)?this.keyHooks:{}),i=a.props?this.props.concat(a.props):this.props,e=new Z.Event(o),t=i.length;t--;)e[n=i[t]]=o[n];return e.target||(e.target=o.srcElement||ae),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,a.filter?a.filter(e,o):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,i,r=t.button,o=t.fromElement;return null==e.pageX&&null!=t.clientX&&(i=(n=e.target.ownerDocument||ae).documentElement,n=n.body,e.pageX=t.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&o&&(e.relatedTarget=o===e.target?t.toElement:o),e.which||void 0===r||(e.which=1&r?1:2&r?3:4&r?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==d()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){if(this===d()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(Z.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(e){return Z.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,i){e=Z.extend(new Z.Event,n,{type:e,isSimulated:!0,originalEvent:{}});i?Z.event.trigger(e,null,t):Z.event.dispatch.call(t,e),e.isDefaultPrevented()&&n.preventDefault()}},Z.removeEvent=ae.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){t="on"+t;e.detachEvent&&(typeof e[t]==me&&(e[t]=null),e.detachEvent(t,n))},Z.Event=function(e,t){if(!(this instanceof Z.Event))return new Z.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&(!1===e.returnValue||e.getPreventDefault&&e.getPreventDefault())?c:f):this.type=e,t&&Z.extend(this,t),this.timeStamp=e&&e.timeStamp||Z.now(),this[Z.expando]=!0},Z.Event.prototype={isDefaultPrevented:f,isPropagationStopped:f,isImmediatePropagationStopped:f,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=c,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=c,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=c,this.stopPropagation()}},Z.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,r){Z.event.special[e]={delegateType:r,bindType:r,handle:function(e){var t,n=e.relatedTarget,i=e.handleObj;return n&&(n===this||Z.contains(this,n))||(e.type=i.origType,t=i.handler.apply(this,arguments),e.type=r),t}}}),X.submitBubbles||(Z.event.special.submit={setup:function(){if(Z.nodeName(this,"form"))return!1;Z.event.add(this,"click._submit keypress._submit",function(e){e=e.target,e=Z.nodeName(e,"input")||Z.nodeName(e,"button")?e.form:void 0;e&&!Z._data(e,"submitBubbles")&&(Z.event.add(e,"submit._submit",function(e){e._submit_bubble=!0}),Z._data(e,"submitBubbles",!0))})},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&Z.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){if(Z.nodeName(this,"form"))return!1;Z.event.remove(this,"._submit")}}),X.changeBubbles||(Z.event.special.change={setup:function(){if(Ce.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(Z.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),Z.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),Z.event.simulate("change",this,e,!0)})),!1;Z.event.add(this,"beforeactivate._change",function(e){e=e.target;Ce.test(e.nodeName)&&!Z._data(e,"changeBubbles")&&(Z.event.add(e,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||Z.event.simulate("change",this.parentNode,e,!0)}),Z._data(e,"changeBubbles",!0))})},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return e.handleObj.handler.apply(this,arguments)},teardown:function(){return Z.event.remove(this,"._change"),!Ce.test(this.nodeName)}}),X.focusinBubbles||Z.each({focus:"focusin",blur:"focusout"},function(n,i){function r(e){Z.event.simulate(i,e.target,Z.event.fix(e),!0)}Z.event.special[i]={setup:function(){var e=this.ownerDocument||this,t=Z._data(e,i);t||e.addEventListener(n,r,!0),Z._data(e,i,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=Z._data(e,i)-1;t?Z._data(e,i,t):(e.removeEventListener(n,r,!0),Z._removeData(e,i))}}}),Z.fn.extend({on:function(e,t,n,i,r){var o,a;if("object"==typeof e){for(o in"string"!=typeof t&&(n=n||t,t=void 0),e)this.on(o,t,n,e[o],r);return this}if(null==n&&null==i?(i=t,n=t=void 0):null==i&&("string"==typeof t?(i=n,n=void 0):(i=n,n=t,t=void 0)),!1===i)i=f;else if(!i)return this;return 1===r&&(a=i,(i=function(e){return Z().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=Z.guid++)),this.each(function(){Z.event.add(this,e,i,n,t)})},one:function(e,t,n,i){return this.on(e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,Z(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=f),this.each(function(){Z.event.remove(this,e,n,t)});for(r in e)this.off(r,t,e[r]);return this},trigger:function(e,t){return this.each(function(){Z.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return Z.event.trigger(e,t,n,!0)}});var Ae="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",De=/ jQuery\d+="(?:null|\d+)"/g,Oe=new RegExp("<(?:"+Ae+")[\\s/>]","i"),Ne=/^\s+/,Me=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Le=/<([\w:]+)/,Pe=/<tbody/i,Ie=/<|&#?\w+;/,je=/<(?:script|style|link)/i,$e=/checked\s*(?:[^=]|=\s*.checked.)/i,Fe=/^$|\/(?:java|ecma)script/i,Re=/^true\/(.*)/,ze=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,He={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:X.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},Be=m(ae).appendChild(ae.createElement("div"));He.optgroup=He.option,He.tbody=He.tfoot=He.colgroup=He.caption=He.thead,He.th=He.td,Z.extend({clone:function(e,t,n){var i,r,o,a,s,l=Z.contains(e.ownerDocument,e);if(X.html5Clone||Z.isXMLDoc(e)||!Oe.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Be.innerHTML=e.outerHTML,Be.removeChild(o=Be.firstChild)),!(X.noCloneEvent&&X.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||Z.isXMLDoc(e)))for(i=g(o),s=g(e),a=0;null!=(r=s[a]);++a)i[a]&&function(e,t){var n,i,r;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!X.noCloneEvent&&t[Z.expando]){for(i in(r=Z._data(t)).events)Z.removeEvent(t,i,r.handle);t.removeAttribute(Z.expando)}"script"===n&&t.text!==e.text?(y(t).text=e.text,b(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),X.html5Clone&&e.innerHTML&&!Z.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&xe.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}}(r,i[a]);if(t)if(n)for(s=s||g(e),i=i||g(o),a=0;null!=(r=s[a]);a++)_(r,i[a]);else _(e,o);return 0<(i=g(o,"script")).length&&w(i,!l&&g(e,"script")),i=s=r=null,o},buildFragment:function(e,t,n,i){for(var r,o,a,s,l,u,c,f=e.length,d=m(t),p=[],h=0;h<f;h++)if((o=e[h])||0===o)if("object"===Z.type(o))Z.merge(p,o.nodeType?[o]:o);else if(Ie.test(o)){for(s=s||d.appendChild(t.createElement("div")),l=(Le.exec(o)||["",""])[1].toLowerCase(),c=He[l]||He._default,s.innerHTML=c[1]+o.replace(Me,"<$1></$2>")+c[2],r=c[0];r--;)s=s.lastChild;if(!X.leadingWhitespace&&Ne.test(o)&&p.push(t.createTextNode(Ne.exec(o)[0])),!X.tbody)for(r=(o="table"!==l||Pe.test(o)?"<table>"!==c[1]||Pe.test(o)?0:s:s.firstChild)&&o.childNodes.length;r--;)Z.nodeName(u=o.childNodes[r],"tbody")&&!u.childNodes.length&&o.removeChild(u);for(Z.merge(p,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=d.lastChild}else p.push(t.createTextNode(o));for(s&&d.removeChild(s),X.appendChecked||Z.grep(g(p,"input"),v),h=0;o=p[h++];)if((!i||-1===Z.inArray(o,i))&&(a=Z.contains(o.ownerDocument,o),s=g(d.appendChild(o),"script"),a&&w(s),n))for(r=0;o=s[r++];)Fe.test(o.type||"")&&n.push(o);return s=null,d},cleanData:function(e,t){for(var n,i,r,o,a=0,s=Z.expando,l=Z.cache,u=X.deleteExpando,c=Z.event.special;null!=(n=e[a]);a++)if((t||Z.acceptData(n))&&(o=(r=n[s])&&l[r])){if(o.events)for(i in o.events)c[i]?Z.event.remove(n,i):Z.removeEvent(n,i,o.handle);l[r]&&(delete l[r],u?delete n[s]:typeof n.removeAttribute!=me?n.removeAttribute(s):n[s]=null,H.push(r))}}}),Z.fn.extend({text:function(e){return _e(this,function(e){return void 0===e?Z.text(this):this.empty().append((this[0]&&this[0].ownerDocument||ae).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||p(this,e).appendChild(e)})},prepend:function(){return this.domManip(arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=p(this,e)).insertBefore(e,t.firstChild)})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,i=e?Z.filter(e,this):this,r=0;null!=(n=i[r]);r++)t||1!==n.nodeType||Z.cleanData(g(n)),n.parentNode&&(t&&Z.contains(n.ownerDocument,n)&&w(g(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&Z.cleanData(g(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&Z.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return Z.clone(this,e,t)})},html:function(e){return _e(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(De,""):void 0;if("string"==typeof e&&!je.test(e)&&(X.htmlSerialize||!Oe.test(e))&&(X.leadingWhitespace||!Ne.test(e))&&!He[(Le.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(Me,"<$1></$2>");try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(Z.cleanData(g(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,Z.cleanData(g(this)),t&&t.replaceChild(e,this)}),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(n,i){n=W.apply([],n);var e,t,r,o,a,s,l=0,u=this.length,c=this,f=u-1,d=n[0],p=Z.isFunction(d);if(p||1<u&&"string"==typeof d&&!X.checkClone&&$e.test(d))return this.each(function(e){var t=c.eq(e);p&&(n[0]=d.call(this,e,t.html())),t.domManip(n,i)});if(u&&(e=(s=Z.buildFragment(n,this[0].ownerDocument,!1,this)).firstChild,1===s.childNodes.length&&(s=e),e)){for(r=(o=Z.map(g(s,"script"),y)).length;l<u;l++)t=s,l!==f&&(t=Z.clone(t,!0,!0),r&&Z.merge(o,g(t,"script"))),i.call(this[l],t,l);if(r)for(a=o[o.length-1].ownerDocument,Z.map(o,b),l=0;l<r;l++)t=o[l],Fe.test(t.type||"")&&!Z._data(t,"globalEval")&&Z.contains(a,t)&&(t.src?Z._evalUrl&&Z._evalUrl(t.src):Z.globalEval((t.text||t.textContent||t.innerHTML||"").replace(ze,"")));s=e=null}return this}}),Z.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){Z.fn[e]=function(e){for(var t,n=0,i=[],r=Z(e),o=r.length-1;n<=o;n++)t=n===o?this:this.clone(!0),Z(r[n])[a](t),U.apply(i,t.get());return this.pushStack(i)}});var We,Ue,qe={};(ht=ae.createElement("div")).innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",(pt=ht.getElementsByTagName("a")[0]).style.cssText="float:left;opacity:.5",X.opacity=/^0.5/.test(pt.style.opacity),X.cssFloat=!!pt.style.cssFloat,ht.style.backgroundClip="content-box",ht.cloneNode(!0).style.backgroundClip="",X.clearCloneStyle="content-box"===ht.style.backgroundClip,pt=ht=null,X.shrinkWrapBlocks=function(){var e,t,n;if(null==Ue){if(!(e=ae.getElementsByTagName("body")[0]))return;t=ae.createElement("div"),n=ae.createElement("div"),e.appendChild(t).appendChild(n),Ue=!1,typeof n.style.zoom!=me&&(n.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0;width:1px;padding:1px;zoom:1",n.innerHTML="<div></div>",n.firstChild.style.width="5px",Ue=3!==n.offsetWidth),e.removeChild(t),e=n=null}return Ue};var Ke,Ye,Ge,Ve,Xe,Je,Ze,Qe=/^margin/,et=new RegExp("^("+be+")(?!px)[a-z%]+$","i"),tt=/^(top|right|bottom|left)$/;function nt(){var e,t,n=ae.getElementsByTagName("body")[0];n&&(e=ae.createElement("div"),t=ae.createElement("div"),e.style.cssText=Ze,n.appendChild(e).appendChild(t),t.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;display:block;padding:1px;border:1px;width:4px;margin-top:1%;top:1%",Z.swap(n,null!=n.style.zoom?{zoom:1}:{},function(){Ve=4===t.offsetWidth}),Je=!(Xe=!0),h.getComputedStyle&&(Je="1%"!==(h.getComputedStyle(t,null)||{}).top,Xe="4px"===(h.getComputedStyle(t,null)||{width:"4px"}).width),n.removeChild(e),t=null)}h.getComputedStyle?(Ke=function(e){return e.ownerDocument.defaultView.getComputedStyle(e,null)},Ye=function(e,t,n){var i,r=e.style,o=(n=n||Ke(e))?n.getPropertyValue(t)||n[t]:void 0;return n&&(""!==o||Z.contains(e.ownerDocument,e)||(o=Z.style(e,t)),et.test(o)&&Qe.test(t)&&(i=r.width,e=r.minWidth,t=r.maxWidth,r.minWidth=r.maxWidth=r.width=o,o=n.width,r.width=i,r.minWidth=e,r.maxWidth=t)),void 0===o?o:o+""}):ae.documentElement.currentStyle&&(Ke=function(e){return e.currentStyle},Ye=function(e,t,n){var i,r,o,a=e.style;return null==(o=(n=n||Ke(e))?n[t]:void 0)&&a&&a[t]&&(o=a[t]),et.test(o)&&!tt.test(t)&&(i=a.left,(n=(r=e.runtimeStyle)&&r.left)&&(r.left=e.currentStyle.left),a.left="fontSize"===t?"1em":o,o=a.pixelLeft+"px",a.left=i,n&&(r.left=n)),void 0===o?o:o+""||"auto"}),J=ae.createElement("div"),Ze="border:0;width:0;height:0;position:absolute;top:0;left:-9999px",J.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",(ne=J.getElementsByTagName("a")[0]).style.cssText="float:left;opacity:.5",X.opacity=/^0.5/.test(ne.style.opacity),X.cssFloat=!!ne.style.cssFloat,J.style.backgroundClip="content-box",J.cloneNode(!0).style.backgroundClip="",X.clearCloneStyle="content-box"===J.style.backgroundClip,ne=J=null,Z.extend(X,{reliableHiddenOffsets:function(){if(null!=Ge)return Ge;var e,t,n,i=ae.createElement("div"),r=ae.getElementsByTagName("body")[0];return r?(i.setAttribute("className","t"),i.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",(e=ae.createElement("div")).style.cssText=Ze,r.appendChild(e).appendChild(i),i.innerHTML="<table><tr><td></td><td>t</td></tr></table>",(t=i.getElementsByTagName("td"))[0].style.cssText="padding:0;margin:0;border:0;display:none",n=0===t[0].offsetHeight,t[0].style.display="",t[1].style.display="none",Ge=n&&0===t[0].offsetHeight,r.removeChild(e),i=r=null,Ge):void 0},boxSizing:function(){return null==Ve&&nt(),Ve},boxSizingReliable:function(){return null==Xe&&nt(),Xe},pixelPosition:function(){return null==Je&&nt(),Je},reliableMarginRight:function(){var e,t,n,i,r=!0;if(h.getComputedStyle){if(!(e=ae.getElementsByTagName("body")[0]))return;t=ae.createElement("div"),n=ae.createElement("div"),t.style.cssText=Ze,e.appendChild(t).appendChild(n),(i=n.appendChild(ae.createElement("div"))).style.cssText=n.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0",i.style.marginRight=i.style.width="0",n.style.width="1px",r=!parseFloat((h.getComputedStyle(i,null)||{}).marginRight),e.removeChild(t)}return r}}),Z.swap=function(e,t,n,i){var r,o={};for(r in t)o[r]=e.style[r],e.style[r]=t[r];for(r in i=n.apply(e,i||[]),t)e.style[r]=o[r];return i};var it=/alpha\([^)]*\)/i,rt=/opacity\s*=\s*([^)]*)/,ot=/^(none|table(?!-c[ea]).+)/,at=new RegExp("^("+be+")(.*)$","i"),st=new RegExp("^([+-])=("+be+")","i"),lt={position:"absolute",visibility:"hidden",display:"block"},ut={letterSpacing:0,fontWeight:400},ct=["Webkit","O","Moz","ms"];Z.extend({cssHooks:{opacity:{get:function(e,t){if(t){e=Ye(e,"opacity");return""===e?"1":e}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:X.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,a,s=Z.camelCase(t),l=e.style;if(t=Z.cssProps[s]||(Z.cssProps[s]=k(l,s)),a=Z.cssHooks[t]||Z.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(e,!1,i))?r:l[t];if("string"===(o=typeof n)&&(r=st.exec(n))&&(n=(r[1]+1)*r[2]+parseFloat(Z.css(e,t)),o="number"),null!=n&&n==n&&("number"!==o||Z.cssNumber[s]||(n+="px"),X.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),!(a&&"set"in a&&void 0===(n=a.set(e,n,i)))))try{l[t]="",l[t]=n}catch(e){}}},css:function(e,t,n,i){var r,o=Z.camelCase(t);return t=Z.cssProps[o]||(Z.cssProps[o]=k(e.style,o)),"normal"===(r=void 0===(r=(o=Z.cssHooks[t]||Z.cssHooks[o])&&"get"in o?o.get(e,!0,n):r)?Ye(e,t,i):r)&&t in ut&&(r=ut[t]),""===n||n?(t=parseFloat(r),!0===n||Z.isNumeric(t)?t||0:r):r}}),Z.each(["height","width"],function(e,r){Z.cssHooks[r]={get:function(e,t,n){if(t)return 0===e.offsetWidth&&ot.test(Z.css(e,"display"))?Z.swap(e,lt,function(){return D(e,r,n)}):D(e,r,n)},set:function(e,t,n){var i=n&&Ke(e);return S(0,t,n?A(e,r,n,X.boxSizing()&&"border-box"===Z.css(e,"boxSizing",!1,i),i):0)}}}),X.opacity||(Z.cssHooks.opacity={get:function(e,t){return rt.test((t&&e.currentStyle?e.currentStyle:e.style).filter||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,i=e.currentStyle,r=Z.isNumeric(t)?"alpha(opacity="+100*t+")":"",e=i&&i.filter||n.filter||"";((n.zoom=1)<=t||""===t)&&""===Z.trim(e.replace(it,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||i&&!i.filter)||(n.filter=it.test(e)?e.replace(it,r):e+" "+r)}}),Z.cssHooks.marginRight=T(X.reliableMarginRight,function(e,t){if(t)return Z.swap(e,{display:"inline-block"},Ye,[e,"marginRight"])}),Z.each({margin:"",padding:"",border:"Width"},function(r,o){Z.cssHooks[r+o]={expand:function(e){for(var t=0,n={},i="string"==typeof e?e.split(" "):[e];t<4;t++)n[r+we[t]+o]=i[t]||i[t-2]||i[0];return n}},Qe.test(r)||(Z.cssHooks[r+o].set=S)}),Z.fn.extend({css:function(e,t){return _e(this,function(e,t,n){var i,r,o={},a=0;if(Z.isArray(t)){for(i=Ke(e),r=t.length;a<r;a++)o[t[a]]=Z.css(e,t[a],!1,i);return o}return void 0!==n?Z.style(e,t,n):Z.css(e,t)},e,t,1<arguments.length)},show:function(){return E(this,!0)},hide:function(){return E(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ye(this)?Z(this).show():Z(this).hide()})}}),(Z.Tween=O).prototype={constructor:O,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||"swing",this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(Z.cssNumber[n]?"":"px")},cur:function(){var e=O.propHooks[this.prop];return(e&&e.get?e:O.propHooks._default).get(this)},run:function(e){var t,n=O.propHooks[this.prop];return this.options.duration?this.pos=t=Z.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:O.propHooks._default).set(this),this}},O.prototype.init.prototype=O.prototype,O.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=Z.css(e.elem,e.prop,""))&&"auto"!==t?t:0:e.elem[e.prop]},set:function(e){Z.fx.step[e.prop]?Z.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[Z.cssProps[e.prop]]||Z.cssHooks[e.prop])?Z.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},O.propHooks.scrollTop=O.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},Z.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},Z.fx=O.prototype.init,Z.fx.step={};var ft,dt,pt,ht,mt=/^(?:toggle|show|hide)$/,gt=new RegExp("^(?:([+-])=|)("+be+")([a-z%]*)$","i"),vt=/queueHooks$/,yt=[function(t,e,n){var i,r,o,a,s,l,u,c,f=this,d={},p=t.style,h=t.nodeType&&ye(t),m=Z._data(t,"fxshow");for(i in n.queue||(null==(s=Z._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,f.always(function(){f.always(function(){s.unqueued--,Z.queue(t,"fx").length||s.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],u=Z.css(t,"display"),c=C(t.nodeName),"inline"===(u="none"===u?c:u)&&"none"===Z.css(t,"float")&&(X.inlineBlockNeedsLayout&&"inline"!==c?p.zoom=1:p.display="inline-block")),n.overflow&&(p.overflow="hidden",X.shrinkWrapBlocks()||f.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),e)if(r=e[i],mt.exec(r)){if(delete e[i],o=o||"toggle"===r,r===(h?"hide":"show")){if("show"!==r||!m||void 0===m[i])continue;h=!0}d[i]=m&&m[i]||Z.style(t,i)}if(!Z.isEmptyObject(d))for(i in m?"hidden"in m&&(h=m.hidden):m=Z._data(t,"fxshow",{}),o&&(m.hidden=!h),h?Z(t).show():f.done(function(){Z(t).hide()}),f.done(function(){for(var e in Z._removeData(t,"fxshow"),d)Z.style(t,e,d[e])}),d)a=L(h?m[i]:0,i,f),i in m||(m[i]=a.start,h&&(a.end=a.start,a.start="width"===i||"height"===i?1:0))}],bt={"*":[function(e,t){var n=this.createTween(e,t),i=n.cur(),t=gt.exec(t),r=t&&t[3]||(Z.cssNumber[e]?"":"px"),o=(Z.cssNumber[e]||"px"!==r&&+i)&>.exec(Z.css(n.elem,e)),a=1,s=20;if(o&&o[3]!==r)for(r=r||o[3],t=t||[],o=+i||1;o/=a=a||".5",Z.style(n.elem,e,o+r),a!==(a=n.cur()/i)&&1!==a&&--s;);return t&&(o=n.start=+o||+i||0,n.unit=r,n.end=t[1]?o+(t[1]+1)*t[2]:+t[2]),n}]};Z.Animation=Z.extend(P,{tweener:function(e,t){for(var n,i=0,r=(e=Z.isFunction(e)?(t=e,["*"]):e.split(" ")).length;i<r;i++)n=e[i],bt[n]=bt[n]||[],bt[n].unshift(t)},prefilter:function(e,t){t?yt.unshift(e):yt.push(e)}}),Z.speed=function(e,t,n){var i=e&&"object"==typeof e?Z.extend({},e):{complete:n||!n&&t||Z.isFunction(e)&&e,duration:e,easing:n&&t||t&&!Z.isFunction(t)&&t};return i.duration=Z.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in Z.fx.speeds?Z.fx.speeds[i.duration]:Z.fx.speeds._default,null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){Z.isFunction(i.old)&&i.old.call(this),i.queue&&Z.dequeue(this,i.queue)},i},Z.fn.extend({fadeTo:function(e,t,n,i){return this.filter(ye).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(t,e,n,i){var r=Z.isEmptyObject(t),o=Z.speed(e,n,i),i=function(){var e=P(this,Z.extend({},t),o);(r||Z._data(this,"finish"))&&e.stop(!0)};return i.finish=i,r||!1===o.queue?this.each(i):this.queue(o.queue,i)},stop:function(r,e,o){function a(e){var t=e.stop;delete e.stop,t(o)}return"string"!=typeof r&&(o=e,e=r,r=void 0),e&&!1!==r&&this.queue(r||"fx",[]),this.each(function(){var e=!0,t=null!=r&&r+"queueHooks",n=Z.timers,i=Z._data(this);if(t)i[t]&&i[t].stop&&a(i[t]);else for(t in i)i[t]&&i[t].stop&&vt.test(t)&&a(i[t]);for(t=n.length;t--;)n[t].elem!==this||null!=r&&n[t].queue!==r||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||Z.dequeue(this,r)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=Z._data(this),n=t[a+"queue"],i=t[a+"queueHooks"],r=Z.timers,o=n?n.length:0;for(t.finish=!0,Z.queue(this,a,[]),i&&i.stop&&i.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===a&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),Z.each(["toggle","show","hide"],function(e,i){var r=Z.fn[i];Z.fn[i]=function(e,t,n){return null==e||"boolean"==typeof e?r.apply(this,arguments):this.animate(M(i,!0),e,t,n)}}),Z.each({slideDown:M("show"),slideUp:M("hide"),slideToggle:M("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,i){Z.fn[e]=function(e,t,n){return this.animate(i,e,t,n)}}),Z.timers=[],Z.fx.tick=function(){var e,t=Z.timers,n=0;for(ft=Z.now();n<t.length;n++)(e=t[n])()||t[n]!==e||t.splice(n--,1);t.length||Z.fx.stop(),ft=void 0},Z.fx.timer=function(e){Z.timers.push(e),e()?Z.fx.start():Z.timers.pop()},Z.fx.interval=13,Z.fx.start=function(){dt=dt||setInterval(Z.fx.tick,Z.fx.interval)},Z.fx.stop=function(){clearInterval(dt),dt=null},Z.fx.speeds={slow:600,fast:200,_default:400},Z.fn.delay=function(i,e){return i=Z.fx&&Z.fx.speeds[i]||i,this.queue(e=e||"fx",function(e,t){var n=setTimeout(e,i);t.stop=function(){clearTimeout(n)}})},(ht=ae.createElement("div")).setAttribute("className","t"),ht.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",pt=ht.getElementsByTagName("a")[0],ne=(J=ae.createElement("select")).appendChild(ae.createElement("option")),be=ht.getElementsByTagName("input")[0],pt.style.cssText="top:1px",X.getSetAttribute="t"!==ht.className,X.style=/top/.test(pt.getAttribute("style")),X.hrefNormalized="/a"===pt.getAttribute("href"),X.checkOn=!!be.value,X.optSelected=ne.selected,X.enctype=!!ae.createElement("form").enctype,J.disabled=!0,X.optDisabled=!ne.disabled,(be=ae.createElement("input")).setAttribute("value",""),X.input=""===be.getAttribute("value"),be.value="t",be.setAttribute("type","radio"),X.radioValue="t"===be.value;var wt=/\r/g;Z.fn.extend({val:function(t){var n,e,i,r=this[0];return arguments.length?(i=Z.isFunction(t),this.each(function(e){1===this.nodeType&&(null==(e=i?t.call(this,e,Z(this).val()):t)?e="":"number"==typeof e?e+="":Z.isArray(e)&&(e=Z.map(e,function(e){return null==e?"":e+""})),(n=Z.valHooks[this.type]||Z.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,e,"value")||(this.value=e))})):r?(n=Z.valHooks[r.type]||Z.valHooks[r.nodeName.toLowerCase()])&&"get"in n&&void 0!==(e=n.get(r,"value"))?e:"string"==typeof(e=r.value)?e.replace(wt,""):null==e?"":e:void 0}}),Z.extend({valHooks:{option:{get:function(e){var t=Z.find.attr(e,"value");return null!=t?t:Z.text(e)}},select:{get:function(e){for(var t,n=e.options,i=e.selectedIndex,r="select-one"===e.type||i<0,o=r?null:[],a=r?i+1:n.length,s=i<0?a:r?i:0;s<a;s++)if(((t=n[s]).selected||s===i)&&(X.optDisabled?!t.disabled:null===t.getAttribute("disabled"))&&(!t.parentNode.disabled||!Z.nodeName(t.parentNode,"optgroup"))){if(t=Z(t).val(),r)return t;o.push(t)}return o},set:function(e,t){for(var n,i,r=e.options,o=Z.makeArray(t),a=r.length;a--;)if(i=r[a],0<=Z.inArray(Z.valHooks.option.get(i),o))try{i.selected=n=!0}catch(e){i.scrollHeight}else i.selected=!1;return n||(e.selectedIndex=-1),r}}}}),Z.each(["radio","checkbox"],function(){Z.valHooks[this]={set:function(e,t){if(Z.isArray(t))return e.checked=0<=Z.inArray(Z(e).val(),t)}},X.checkOn||(Z.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var _t,xt,Ct=Z.expr.attrHandle,Tt=/^(?:checked|selected)$/i,kt=X.getSetAttribute,Et=X.input;Z.fn.extend({attr:function(e,t){return _e(this,Z.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){Z.removeAttr(this,e)})}}),Z.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return typeof e.getAttribute==me?Z.prop(e,t,n):(1===o&&Z.isXMLDoc(e)||(t=t.toLowerCase(),i=Z.attrHooks[t]||(Z.expr.match.bool.test(t)?xt:_t)),void 0===n?!(i&&"get"in i&&null!==(r=i.get(e,t)))&&null==(r=Z.find.attr(e,t))?void 0:r:null!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):void Z.removeAttr(e,t))},removeAttr:function(e,t){var n,i,r=0,o=t&&t.match(de);if(o&&1===e.nodeType)for(;n=o[r++];)i=Z.propFix[n]||n,Z.expr.match.bool.test(n)?Et&&kt||!Tt.test(n)?e[i]=!1:e[Z.camelCase("default-"+n)]=e[i]=!1:Z.attr(e,n,""),e.removeAttribute(kt?n:i)},attrHooks:{type:{set:function(e,t){if(!X.radioValue&&"radio"===t&&Z.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}}}),xt={set:function(e,t,n){return!1===t?Z.removeAttr(e,n):Et&&kt||!Tt.test(n)?e.setAttribute(!kt&&Z.propFix[n]||n,n):e[Z.camelCase("default-"+n)]=e[n]=!0,n}},Z.each(Z.expr.match.bool.source.match(/\w+/g),function(e,t){var o=Ct[t]||Z.find.attr;Ct[t]=Et&&kt||!Tt.test(t)?function(e,t,n){var i,r;return n||(r=Ct[t],Ct[t]=i,i=null!=o(e,t,n)?t.toLowerCase():null,Ct[t]=r),i}:function(e,t,n){if(!n)return e[Z.camelCase("default-"+t)]?t.toLowerCase():null}}),Et&&kt||(Z.attrHooks.value={set:function(e,t,n){if(!Z.nodeName(e,"input"))return _t&&_t.set(e,t,n);e.defaultValue=t}}),kt||(_t={set:function(e,t,n){var i=e.getAttributeNode(n);if(i||e.setAttributeNode(i=e.ownerDocument.createAttribute(n)),i.value=t+="","value"===n||t===e.getAttribute(n))return t}},Ct.id=Ct.name=Ct.coords=function(e,t,n){if(!n)return(t=e.getAttributeNode(t))&&""!==t.value?t.value:null},Z.valHooks.button={get:function(e,t){t=e.getAttributeNode(t);if(t&&t.specified)return t.value},set:_t.set},Z.attrHooks.contenteditable={set:function(e,t,n){_t.set(e,""!==t&&t,n)}},Z.each(["width","height"],function(e,n){Z.attrHooks[n]={set:function(e,t){if(""===t)return e.setAttribute(n,"auto"),t}}})),X.style||(Z.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var St=/^(?:input|select|textarea|button|object)$/i,At=/^(?:a|area)$/i;Z.fn.extend({prop:function(e,t){return _e(this,Z.prop,e,t,1<arguments.length)},removeProp:function(e){return e=Z.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(e){}})}}),Z.extend({propFix:{for:"htmlFor",class:"className"},prop:function(e,t,n){var i,r,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return(1!==o||!Z.isXMLDoc(e))&&(t=Z.propFix[t]||t,r=Z.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=Z.find.attr(e,"tabindex");return t?parseInt(t,10):St.test(e.nodeName)||At.test(e.nodeName)&&e.href?0:-1}}}}),X.hrefNormalized||Z.each(["href","src"],function(e,t){Z.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),X.optSelected||(Z.propHooks.selected={get:function(e){e=e.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null}}),Z.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Z.propFix[this.toLowerCase()]=this}),X.enctype||(Z.propFix.enctype="encoding");var Dt=/[\t\r\n\f]/g;Z.fn.extend({addClass:function(t){var e,n,i,r,o,a,s=0,l=this.length,u="string"==typeof t&&t;if(Z.isFunction(t))return this.each(function(e){Z(this).addClass(t.call(this,e,this.className))});if(u)for(e=(t||"").match(de)||[];s<l;s++)if(i=1===(n=this[s]).nodeType&&(n.className?(" "+n.className+" ").replace(Dt," "):" ")){for(o=0;r=e[o++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");a=Z.trim(i),n.className!==a&&(n.className=a)}return this},removeClass:function(t){var e,n,i,r,o,a,s=0,l=this.length,u=0===arguments.length||"string"==typeof t&&t;if(Z.isFunction(t))return this.each(function(e){Z(this).removeClass(t.call(this,e,this.className))});if(u)for(e=(t||"").match(de)||[];s<l;s++)if(i=1===(n=this[s]).nodeType&&(n.className?(" "+n.className+" ").replace(Dt," "):"")){for(o=0;r=e[o++];)for(;0<=i.indexOf(" "+r+" ");)i=i.replace(" "+r+" "," ");a=t?Z.trim(i):"",n.className!==a&&(n.className=a)}return this},toggleClass:function(r,t){var o=typeof r;return"boolean"==typeof t&&"string"==o?t?this.addClass(r):this.removeClass(r):Z.isFunction(r)?this.each(function(e){Z(this).toggleClass(r.call(this,e,this.className,t),t)}):this.each(function(){if("string"==o)for(var e,t=0,n=Z(this),i=r.match(de)||[];e=i[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else o!=me&&"boolean"!=o||(this.className&&Z._data(this,"__className__",this.className),this.className=!this.className&&!1!==r&&Z._data(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,i=this.length;n<i;n++)if(1===this[n].nodeType&&0<=(" "+this[n].className+" ").replace(Dt," ").indexOf(t))return!0;return!1}}),Z.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,n){Z.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}}),Z.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,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)}});var Ot=Z.now(),Nt=/\?/,Mt=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;Z.parseJSON=function(e){if(h.JSON&&h.JSON.parse)return h.JSON.parse(e+"");var r,o=null,t=Z.trim(e+"");return t&&!Z.trim(t.replace(Mt,function(e,t,n,i){return 0===(o=r&&t?0:o)?e:(r=n||t,o+=!i-!n,"")}))?Function("return "+t)():Z.error("Invalid JSON: "+e)},Z.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{h.DOMParser?t=(new DOMParser).parseFromString(e,"text/xml"):((t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e))}catch(e){t=void 0}return t&&t.documentElement&&!t.getElementsByTagName("parsererror").length||Z.error("Invalid XML: "+e),t};var Lt,Pt,It=/#.*$/,jt=/([?&])_=[^&]*/,$t=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Ft=/^(?:GET|HEAD)$/,Rt=/^\/\//,zt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Ht={},Bt={},Wt="*/".concat("*");try{Pt=location.href}catch(e){(Pt=ae.createElement("a")).href="",Pt=Pt.href}Lt=zt.exec(Pt.toLowerCase())||[],Z.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Pt,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Lt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Wt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":Z.parseJSON,"text xml":Z.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?$($(e,Z.ajaxSettings),t):$(Z.ajaxSettings,e)},ajaxPrefilter:I(Ht),ajaxTransport:I(Bt),ajax:function(e,t){function n(e,t,n,i){var r,o,a,s=t;2!==b&&(b=2,c&&clearTimeout(c),d=void 0,u=i||"",w.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(a=function(e,t,n){for(var i,r,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(a in s)if(s[a]&&s[a].test(r)){l.unshift(a);break}if(l[0]in n)o=l[0];else{for(a in n){if(!l[0]||e.converters[a+" "+l[0]]){o=a;break}i=i||a}o=o||i}if(o)return o!==l[0]&&l.unshift(o),n[o]}(p,w,n)),a=function(e,t,n,i){var r,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(r in u)if((s=r.split(" "))[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[r]:!0!==u[r]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(p,a,w,i),i?(p.ifModified&&((n=w.getResponseHeader("Last-Modified"))&&(Z.lastModified[l]=n),(n=w.getResponseHeader("etag"))&&(Z.etag[l]=n)),204===e||"HEAD"===p.type?s="nocontent":304===e?s="notmodified":(s=a.state,r=a.data,i=!(o=a.error))):(o=s,!e&&s||(s="error",e<0&&(e=0))),w.status=e,w.statusText=(t||s)+"",i?g.resolveWith(h,[r,s,w]):g.rejectWith(h,[w,s,o]),w.statusCode(y),y=void 0,f&&m.trigger(i?"ajaxSuccess":"ajaxError",[w,p,i?r:o]),v.fireWith(h,[w,s]),f&&(m.trigger("ajaxComplete",[w,p]),--Z.active||Z.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0);var i,l,u,c,f,d,r,p=Z.ajaxSetup({},t=t||{}),h=p.context||p,m=p.context&&(h.nodeType||h.jquery)?Z(h):Z.event,g=Z.Deferred(),v=Z.Callbacks("once memory"),y=p.statusCode||{},o={},a={},b=0,s="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!r)for(r={};t=$t.exec(u);)r[t[1].toLowerCase()]=t[2];t=r[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?u:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=a[n]=a[n]||e,o[e]=t),this},overrideMimeType:function(e){return b||(p.mimeType=e),this},statusCode:function(e){if(e)if(b<2)for(var t in e)y[t]=[y[t],e[t]];else w.always(e[w.status]);return this},abort:function(e){e=e||s;return d&&d.abort(e),n(0,e),this}};if(g.promise(w).complete=v.add,w.success=w.done,w.error=w.fail,p.url=((e||p.url||Pt)+"").replace(It,"").replace(Rt,Lt[1]+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=Z.trim(p.dataType||"*").toLowerCase().match(de)||[""],null==p.crossDomain&&(e=zt.exec(p.url.toLowerCase()),p.crossDomain=!(!e||e[1]===Lt[1]&&e[2]===Lt[2]&&(e[3]||("http:"===e[1]?"80":"443"))===(Lt[3]||("http:"===Lt[1]?"80":"443")))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=Z.param(p.data,p.traditional)),j(Ht,p,t,w),2===b)return w;for(i in(f=p.global)&&0==Z.active++&&Z.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Ft.test(p.type),l=p.url,p.hasContent||(p.data&&(l=p.url+=(Nt.test(l)?"&":"?")+p.data,delete p.data),!1===p.cache&&(p.url=jt.test(l)?l.replace(jt,"$1_="+Ot++):l+(Nt.test(l)?"&":"?")+"_="+Ot++)),p.ifModified&&(Z.lastModified[l]&&w.setRequestHeader("If-Modified-Since",Z.lastModified[l]),Z.etag[l]&&w.setRequestHeader("If-None-Match",Z.etag[l])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&w.setRequestHeader("Content-Type",p.contentType),w.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Wt+"; q=0.01":""):p.accepts["*"]),p.headers)w.setRequestHeader(i,p.headers[i]);if(p.beforeSend&&(!1===p.beforeSend.call(h,w,p)||2===b))return w.abort();for(i in s="abort",{success:1,error:1,complete:1})w[i](p[i]);return d=j(Bt,p,t,w),w.send=function(){w.readyState=1,f&&m.trigger("ajaxSend",[w,p]),p.async&&0<p.timeout&&(c=setTimeout(function(){w.abort("timeout")},p.timeout));try{b=1,d.send(o,n)}catch(e){if(!(b<2))throw e;n(-1,e)}},d?!1!==t.autostart&&w.send():n(-1,"No Transport"),w},getJSON:function(e,t,n){return Z.get(e,t,n,"json")},getScript:function(e,t){return Z.get(e,void 0,t,"script")}}),Z.each(["get","post"],function(e,r){Z[r]=function(e,t,n,i){return Z.isFunction(t)&&(i=i||n,n=t,t=void 0),Z.ajax({url:e,type:r,dataType:i,data:t,success:n})}}),Z.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){Z.fn[t]=function(e){return this.on(t,e)}}),Z._evalUrl=function(e){return Z.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},Z.fn.extend({wrapAll:function(t){return Z.isFunction(t)?this.each(function(e){Z(this).wrapAll(t.call(this,e))}):(this[0]&&(e=Z(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)),this);var e},wrapInner:function(n){return Z.isFunction(n)?this.each(function(e){Z(this).wrapInner(n.call(this,e))}):this.each(function(){var e=Z(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=Z.isFunction(t);return this.each(function(e){Z(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(){return this.parent().each(function(){Z.nodeName(this,"body")||Z(this).replaceWith(this.childNodes)}).end()}}),Z.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!X.reliableHiddenOffsets()&&"none"===(e.style&&e.style.display||Z.css(e,"display"))},Z.expr.filters.visible=function(e){return!Z.expr.filters.hidden(e)};var Ut=/%20/g,qt=/\[\]$/,Kt=/\r?\n/g,Yt=/^(?:submit|button|image|reset|file)$/i,Gt=/^(?:input|select|textarea|keygen)/i;Z.param=function(e,t){function n(e,t){t=Z.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)}var i,r=[];if(void 0===t&&(t=Z.ajaxSettings&&Z.ajaxSettings.traditional),Z.isArray(e)||e.jquery&&!Z.isPlainObject(e))Z.each(e,function(){n(this.name,this.value)});else for(i in e)!function n(i,e,r,o){if(Z.isArray(e))Z.each(e,function(e,t){r||qt.test(i)?o(i,t):n(i+"["+("object"==typeof t?e:"")+"]",t,r,o)});else if(r||"object"!==Z.type(e))o(i,e);else for(var t in e)n(i+"["+t+"]",e[t],r,o)}(i,e[i],t,n);return r.join("&").replace(Ut,"+")},Z.fn.extend({serialize:function(){return Z.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=Z.prop(this,"elements");return e?Z.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!Z(this).is(":disabled")&&Gt.test(this.nodeName)&&!Yt.test(e)&&(this.checked||!xe.test(e))}).map(function(e,t){var n=Z(this).val();return null==n?null:Z.isArray(n)?Z.map(n,function(e){return{name:t.name,value:e.replace(Kt,"\r\n")}}):{name:t.name,value:n.replace(Kt,"\r\n")}}).get()}}),Z.ajaxSettings.xhr=void 0!==h.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&F()||function(){try{return new h.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}()}:F;var Vt=0,Xt={},ne=Z.ajaxSettings.xhr();h.ActiveXObject&&Z(h).on("unload",function(){for(var e in Xt)Xt[e](void 0,!0)}),X.cors=!!ne&&"withCredentials"in ne,(ne=X.ajax=!!ne)&&Z.ajaxTransport(function(l){var u;if(!l.crossDomain||X.cors)return{send:function(e,o){var t,a=l.xhr(),s=++Vt;if(a.open(l.type,l.url,l.async,l.username,l.password),l.xhrFields)for(t in l.xhrFields)a[t]=l.xhrFields[t];for(t in l.mimeType&&a.overrideMimeType&&a.overrideMimeType(l.mimeType),l.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)void 0!==e[t]&&a.setRequestHeader(t,e[t]+"");a.send(l.hasContent&&l.data||null),u=function(e,t){var n,i,r;if(u&&(t||4===a.readyState))if(delete Xt[s],u=void 0,a.onreadystatechange=Z.noop,t)4!==a.readyState&&a.abort();else{r={},n=a.status,"string"==typeof a.responseText&&(r.text=a.responseText);try{i=a.statusText}catch(e){i=""}n||!l.isLocal||l.crossDomain?1223===n&&(n=204):n=r.text?200:404}r&&o(n,i,r,a.getAllResponseHeaders())},l.async?4===a.readyState?setTimeout(u):a.onreadystatechange=Xt[s]=u:u()},abort:function(){u&&u(void 0,!0)}}}),Z.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return Z.globalEval(e),e}}}),Z.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),Z.ajaxTransport("script",function(t){if(t.crossDomain){var i,r=ae.head||Z("head")[0]||ae.documentElement;return{send:function(e,n){(i=ae.createElement("script")).async=!0,t.scriptCharset&&(i.charset=t.scriptCharset),i.src=t.url,i.onload=i.onreadystatechange=function(e,t){!t&&i.readyState&&!/loaded|complete/.test(i.readyState)||(i.onload=i.onreadystatechange=null,i.parentNode&&i.parentNode.removeChild(i),i=null,t||n(200,"success"))},r.insertBefore(i,r.firstChild)},abort:function(){i&&i.onload(void 0,!0)}}}});var Jt=[],Zt=/(=)\?(?=&|$)|\?\?/;Z.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Jt.pop()||Z.expando+"_"+Ot++;return this[e]=!0,e}}),Z.ajaxPrefilter("json jsonp",function(e,t,n){var i,r,o,a=!1!==e.jsonp&&(Zt.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=Z.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Zt,"$1"+i):!1!==e.jsonp&&(e.url+=(Nt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return o||Z.error(i+" was not called"),o[0]},e.dataTypes[0]="json",r=h[i],h[i]=function(){o=arguments},n.always(function(){h[i]=r,e[i]&&(e.jsonpCallback=t.jsonpCallback,Jt.push(i)),o&&Z.isFunction(r)&&r(o[0]),o=r=void 0}),"script"}),Z.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||ae;var i=re.exec(e),n=!n&&[];return i?[t.createElement(i[1])]:(i=Z.buildFragment([e],t,n),n&&n.length&&Z(n).remove(),Z.merge([],i.childNodes))};var Qt=Z.fn.load;Z.fn.load=function(e,t,n){if("string"!=typeof e&&Qt)return Qt.apply(this,arguments);var i,r,o,a=this,s=e.indexOf(" ");return 0<=s&&(i=e.slice(s,e.length),e=e.slice(0,s)),Z.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),0<a.length&&Z.ajax({url:e,type:o,dataType:"html",data:t}).done(function(e){r=arguments,a.html(i?Z("<div>").append(Z.parseHTML(e)).find(i):e)}).complete(n&&function(e,t){a.each(n,r||[e.responseText,t,e])}),this},Z.expr.filters.animated=function(t){return Z.grep(Z.timers,function(e){return t===e.elem}).length};var en=h.document.documentElement;return Z.offset={setOffset:function(e,t,n){var i,r,o,a,s=Z.css(e,"position"),l=Z(e),u={};"static"===s&&(e.style.position="relative"),o=l.offset(),i=Z.css(e,"top"),a=Z.css(e,"left"),a=("absolute"===s||"fixed"===s)&&-1<Z.inArray("auto",[i,a])?(r=(s=l.position()).top,s.left):(r=parseFloat(i)||0,parseFloat(a)||0),null!=(t=Z.isFunction(t)?t.call(e,n,o):t).top&&(u.top=t.top-o.top+r),null!=t.left&&(u.left=t.left-o.left+a),"using"in t?t.using.call(e,u):l.css(u)}},Z.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){Z.offset.setOffset(this,t,e)});var e,n={top:0,left:0},i=this[0],r=i&&i.ownerDocument;return r?(e=r.documentElement,Z.contains(e,i)?(typeof i.getBoundingClientRect!=me&&(n=i.getBoundingClientRect()),r=R(r),{top:n.top+(r.pageYOffset||e.scrollTop)-(e.clientTop||0),left:n.left+(r.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):n):void 0},position:function(){if(this[0]){var e,t,n={top:0,left:0},i=this[0];return"fixed"===Z.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),(n=!Z.nodeName(e[0],"html")?e.offset():n).top+=Z.css(e[0],"borderTopWidth",!0),n.left+=Z.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-Z.css(i,"marginTop",!0),left:t.left-n.left-Z.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||en;e&&!Z.nodeName(e,"html")&&"static"===Z.css(e,"position");)e=e.offsetParent;return e||en})}}),Z.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var o=/Y/.test(r);Z.fn[t]=function(e){return _e(this,function(e,t,n){var i=R(e);if(void 0===n)return i?r in i?i[r]:i.document.documentElement[t]:e[t];i?i.scrollTo(o?Z(i).scrollLeft():n,o?n:Z(i).scrollTop()):e[t]=n},t,e,arguments.length,null)}}),Z.each(["top","left"],function(e,n){Z.cssHooks[n]=T(X.pixelPosition,function(e,t){if(t)return t=Ye(e,n),et.test(t)?Z(e).position()[n]+"px":t})}),Z.each({Height:"height",Width:"width"},function(o,a){Z.each({padding:"inner"+o,content:a,"":"outer"+o},function(i,e){Z.fn[e]=function(e,t){var n=arguments.length&&(i||"boolean"!=typeof e),r=i||(!0===e||!0===t?"margin":"border");return _e(this,function(e,t,n){var i;return Z.isWindow(e)?e.document.documentElement["client"+o]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+o],i["scroll"+o],e.body["offset"+o],i["offset"+o],i["client"+o])):void 0===n?Z.css(e,t,r):Z.style(e,t,n,r)},a,n?e:void 0,n,null)}})}),Z.fn.size=function(){return this.length},Z.fn.andSelf=Z.fn.addBack,Z.uaMatch=function(e){e=e.toLowerCase();e=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:e[1]||"",version:e[2]||"0"}},be={},(ne=Z.uaMatch(navigator.userAgent)).browser&&(be[ne.browser]=!0,be.version=ne.version),be.chrome?be.webkit=!0:be.webkit&&(be.safari=!0),Z.browser=be,Z.version="4.0",Z.long_version="4.0.37",Z.uid=function(e,t){return(e||"")+Math.random().toString().replace(".","")+(t||"")},Z.globalNamespace=Z.uid("Foundry"),(h[Z.globalNamespace]=Z).run=function(e){return Z.isFunction(e)?e(Z):null},Z.initialize=function(e){Z.initialized||(Z.extend(Z,e),"development"==Z.environment&&(h.F=Z),Z.initialized=!0,KTVendors.module.execute())},KTVendors.jquery(Z),"function"==typeof define&&define.amd&&define("jquery",[],function(){return Z}),Z}),KTVendors.plugin("lodash",function(n){function tt(e,t,n){for(var i=(n||0)-1,r=e?e.length:0;++i<r;)if(e[i]===t)return i;return-1}function nt(e,t){var n=typeof t;return e=e.cache,"boolean"==n||null==t?e[t]?0:-1:(e=(e=e[n="number"!=n&&"string"!=n?"object":n])&&e["number"==n?t:ht+t],"object"==n?e&&-1<tt(e,t)?0:-1:e?0:-1)}function s(e){var t,n=this.cache,i=typeof e;"boolean"==i||null==e?n[e]=!0:(t="number"==(i="number"!=i&&"string"!=i?"object":i)?e:ht+e,n=n[i]||(n[i]={}),"object"==i?(n[t]||(n[t]=[])).push(e):n[t]=!0)}function it(e){return e.charCodeAt(0)}function rt(e,t){for(var n=e.criteria,i=t.criteria,r=-1,o=n.length;++r<o;){var a=n[r],s=i[r];if(a!==s){if(s<a||void 0===a)return 1;if(a<s||void 0===s)return-1}}return e.index-t.index}function ot(e){var t=-1,n=e.length,i=e[0],r=e[n/2|0],o=e[n-1];if(i&&"object"==typeof i&&r&&"object"==typeof r&&o&&"object"==typeof o)return!1;o=lt();o.false=o.null=o.true=o[void 0]=!1;var a=lt();for(a.array=e,a.cache=o,a.push=s;++t<n;)a.push(e[t]);return a}function at(e){return"\\"+o[e]}function st(){return t.pop()||[]}function lt(){return i.pop()||{array:null,cache:null,criteria:null,false:!1,index:0,null:!1,number:null,object:null,push:null,string:null,true:!1,undefined:!1,value:null}}function ut(e){e.length=0,t.length<r&&t.push(e)}function ct(e){var t=e.cache;t&&ct(t),e.array=e.cache=e.criteria=e.object=e.number=e.string=e.value=null,i.length<r&&i.push(e)}function ft(e,t,n){for(var i=-1,r=(n=void 0===n?e?e.length:0:n)-(t=t||0)||0,o=Array(r<0?0:r);++i<r;)o[i]=e[t+i];return o}var dt,t=[],i=[],pt=0,ht=+new Date+"",mt=75,r=40,gt=" \t\v\f \ufeff\n\r\u2028\u2029 ",vt=/\b__p \+= '';/g,yt=/\b(__p \+=) '' \+/g,bt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,wt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_t=/\w*$/,xt=/^\s*function[ \n\r\t]+\w/,Ct=/<%=([\s\S]+?)%>/g,Tt=RegExp("^["+gt+"]*0+(?=.$)"),kt=/($^)/,Et=/\bthis\b/,St=/['\n\r\t\u2028\u2029\\]/g,At=["Array","Boolean","Date","Function","Math","Number","Object","RegExp","String","_","attachEvent","clearTimeout","isFinite","isNaN","parseInt","setTimeout"],Dt=0,Ot="[object Arguments]",Nt="[object Array]",Mt="[object Boolean]",Lt="[object Date]",Pt="[object Function]",It="[object Number]",jt="[object Object]",$t="[object RegExp]",Ft="[object String]",Rt={};Rt[Pt]=!1;var zt={leading:!(Rt[Ot]=Rt[Nt]=Rt[Mt]=Rt[Lt]=Rt[It]=Rt[jt]=Rt[$t]=Rt[Ft]=!0),maxWait:0,trailing:!1},Ht={configurable:!1,enumerable:!1,value:null,writable:!1},Bt={boolean:!1,function:!0,object:!0,number:!1,string:!1,undefined:!1},o={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},Wt=Bt[typeof window]&&window||this,e=Bt[typeof exports]&&exports&&!exports.nodeType&&exports,a=Bt[typeof module]&&module&&!module.nodeType&&module,e=(a&&a.exports,Bt[typeof global]&&global);!e||e.global!==e&&e.window!==e||(Wt=e);var Ut=n._=function e(n){function f(e){return e&&"object"==typeof e&&!We(e)&&Te.call(e,"__wrapped__")?e:new l(e)}function l(e,t){this.__chain__=!!t,this.__wrapped__=e}function d(e){function i(){var e;if(o&&(e=ft(o),ke.apply(e,arguments)),this instanceof i){var t=m(r.prototype),n=r.apply(t,e||arguments);return E(n)?n:t}return r.apply(a,e||arguments)}var r=e[0],o=e[2],a=e[4];return Be(i,e),i}function c(e,n,i,r,o){if(i){var a=i(e);if(void 0!==a)return a}if(!E(e))return e;var t=ve.call(e);if(!Rt[t])return e;var s=Re[t];switch(t){case Mt:case Lt:return new s(+e);case It:case Ft:return new s(e);case $t:return(a=s(e.source,_t.exec(e))).lastIndex=e.lastIndex,a}if(t=We(e),n){var l=!r;r=r||st(),o=o||st();for(var u=r.length;u--;)if(r[u]==e)return o[u];a=t?s(e.length):{}}else a=t?ft(e):Ve({},e);return t&&(Te.call(e,"index")&&(a.index=e.index),Te.call(e,"input")&&(a.input=e.input)),n&&(r.push(e),o.push(a),(t?P:Je)(e,function(e,t){a[t]=c(e,n,i,r,o)}),l&&(ut(r),ut(o))),a}function m(e,t){return E(e)?Oe(e):{}}function p(r,o,e){if("function"!=typeof r)return J;if(void 0===o||!("prototype"in r))return r;var t,n=r.__bindData__;if(void 0===n&&((n=(n=ze.funcNames?!r.name:n)||!ze.funcDecomp)||(t=xe.call(r),(n=ze.funcNames?n:!xt.test(t))||(n=Et.test(t),Be(r,n)))),!1===n||!0!==n&&1&n[1])return r;switch(e){case 1:return function(e){return r.call(o,e)};case 2:return function(e,t){return r.call(o,e,t)};case 3:return function(e,t,n){return r.call(o,e,t,n)};case 4:return function(e,t,n,i){return r.call(o,e,t,n,i)}}return V(r,o)}function g(e){function i(){var e,t=c?l:this;if(a&&(e=ft(a),ke.apply(e,arguments)),(s||d)&&(e=e||ft(arguments),s&&ke.apply(e,s),d&&e.length<u))return o|=16,g([r,p?o:-4&o,e,null,l,u]);if(e=e||arguments,f&&(r=t[h]),this instanceof i){var t=m(r.prototype),n=r.apply(t,e);return E(n)?n:t}return r.apply(t,e)}var r=e[0],o=e[1],a=e[2],s=e[3],l=e[4],u=e[5],c=1&o,f=2&o,d=4&o,p=8&o,h=r;return Be(i,e),i}function u(e,t){var n,i=-1,r=b(),o=e?e.length:0,a=mt<=o&&r===tt,s=[];for(a&&((n=ot(t))?(r=nt,t=n):a=!1);++i<o;){var l=e[i];r(t,l)<0&&s.push(l)}return a&&ct(t),s}function h(e,t,n,i){for(var r=(i||0)-1,o=e?e.length:0,a=[];++r<o;){var s=e[r];if(s&&"object"==typeof s&&"number"==typeof s.length&&(We(s)||_(s))){var l=-1,u=(s=t?s:h(s,t,n)).length,c=a.length;for(a.length+=u;++l<u;)a[c++]=s[l]}else n||a.push(s)}return a}function v(i,e,r,o,a,s){if(r&&void 0!==(d=r(i,e)))return!!d;if(i===e)return 0!==i||1/i==1/e;if(!(i!=i||i&&Bt[typeof i]||e&&Bt[typeof e]))return!1;if(null==i||null==e)return i===e;var t=ve.call(i),n=ve.call(e);if((t=t==Ot?jt:t)!=(n=n==Ot?jt:n))return!1;switch(t){case Mt:case Lt:return+i==+e;case It:return i!=+i?e!=+e:0==i?1/i==1/e:i==+e;case $t:case Ft:return i==de(e)}var l=t==Nt;if(!l){var n=Te.call(i,"__wrapped__"),u=Te.call(e,"__wrapped__");if(n||u)return v(n?i.__wrapped__:i,u?e.__wrapped__:e,r,o,a,s);if(t!=jt)return!1;if(t=i.constructor,u=e.constructor,t!=u&&!(k(t)&&t instanceof t&&k(u)&&u instanceof u)&&"constructor"in i&&"constructor"in e)return!1}u=!a,a=a||st(),s=s||st();for(var c=a.length;c--;)if(a[c]==i)return s[c]==e;var f=0,d=!0;if(a.push(i),s.push(e),l){if(c=i.length,f=e.length,(d=f==c)||o)for(;f--;){var p=c,h=e[f];if(o)for(;p--&&!(d=v(i[p],h,r,o,a,s)););else if(!(d=v(i[f],h,r,o,a,s)))break}}else Xe(e,function(e,t,n){if(Te.call(n,t))return f++,d=Te.call(i,t)&&v(i[t],e,r,o,a,s)}),d&&!o&&Xe(i,function(e,t,n){if(Te.call(n,t))return d=-1<--f});return a.pop(),s.pop(),u&&(ut(a),ut(s)),d}function o(e,t){return e+_e(Fe()*(t-e+1))}function r(e,t,n){var i=-1,r=b(),o=e?e.length:0,a=[],s=!t&&mt<=o&&r===tt,l=n||s?st():a;for(s&&(r=nt,l=ot(l));++i<o;){var u=e[i],c=n?n(u,i,e):u;(t?!i||l[l.length-1]!==c:r(l,c)<0)&&((n||s)&&l.push(c),a.push(u))}return s?(ut(l.array),ct(l)):n&&ut(l),a}function t(s){return function(e,i,t){var r={};i=f.createCallback(i,t,3);var n=-1,o=e?e.length:0;if("number"==typeof o)for(;++n<o;){var a=e[n];s(r,a,i(a,n,e),e)}else Je(e,function(e,t,n){s(r,e,i(e,t,n),n)});return r}}function y(e,t,n,i,r,o){var a=1&t,s=4&t,l=16&t,u=32&t;if(!(2&t||k(e)))throw new pe;l&&!n.length&&(t&=-17,l=n=!1),u&&!i.length&&(t&=-33,u=i=!1);var c=e&&e.__bindData__;return c&&!0!==c?((c=ft(c))[2]&&(c[2]=ft(c[2])),c[3]&&(c[3]=ft(c[3])),!a||1&c[1]||(c[4]=r),!a&&1&c[1]&&(t|=8),!s||4&c[1]||(c[5]=o),l&&ke.apply(c[2]||(c[2]=[]),n),u&&Ae.apply(c[3]||(c[3]=[]),i),c[1]|=t,y.apply(null,c)):(1==t||17===t?d:g)([e,t,n,i,r,o])}function i(e){return qe[e]}function b(){var e=(e=f.indexOf)===W?tt:e;return e}function a(e){return"function"==typeof e&&ye.test(e)}function s(e){var t,n;return!(!e||ve.call(e)!=jt||k(t=e.constructor)&&!(t instanceof t))&&(Xe(e,function(e,t){n=t}),void 0===n||Te.call(e,n))}function w(e){return Ke[e]}function _(e){return e&&"object"==typeof e&&"number"==typeof e.length&&ve.call(e)==Ot||!1}function x(e,t,n){var i=Ue(e),r=i.length;for(t=p(t,n,3);r--;){var o=i[r];if(!1===t(e[o],o,e))break}return e}function C(e){var n=[];return Xe(e,function(e,t){k(e)&&n.push(t)}),n.sort()}function T(e){for(var t=-1,n=Ue(e),i=n.length,r={};++t<i;){var o=n[t];r[e[o]]=o}return r}function k(e){return"function"==typeof e}function E(e){return!(!e||!Bt[typeof e])}function S(e){return"number"==typeof e||e&&"object"==typeof e&&ve.call(e)==It||!1}function A(e){return"string"==typeof e||e&&"object"==typeof e&&ve.call(e)==Ft||!1}function D(e){for(var t=-1,n=Ue(e),i=n.length,r=re(i);++t<i;)r[t]=e[n[t]];return r}function O(e,t,n){var i=-1,r=b(),o=e?e.length:0,a=!1;return n=(n<0?Ie(0,o+n):n)||0,We(e)?a=-1<r(e,t,n):"number"==typeof o?a=-1<(A(e)?e.indexOf(t,n):r(e,t,n)):Je(e,function(e){if(++i>=n)return!(a=e===t)}),a}function N(e,i,t){var r=!0;i=f.createCallback(i,t,3);var n=-1,o=e?e.length:0;if("number"==typeof o)for(;++n<o&&(r=!!i(e[n],n,e)););else Je(e,function(e,t,n){return r=!!i(e,t,n)});return r}function M(e,i,t){var r=[];i=f.createCallback(i,t,3);var n=-1,o=e?e.length:0;if("number"==typeof o)for(;++n<o;){var a=e[n];i(a,n,e)&&r.push(a)}else Je(e,function(e,t,n){i(e,t,n)&&r.push(e)});return r}function L(e,i,t){i=f.createCallback(i,t,3);var r,n=-1,o=e?e.length:0;if("number"!=typeof o)return Je(e,function(e,t,n){if(i(e,t,n))return r=e,!1}),r;for(;++n<o;){var a=e[n];if(i(a,n,e))return a}}function P(e,t,n){var i=-1,r=e?e.length:0;if(t=t&&void 0===n?t:p(t,n,3),"number"==typeof r)for(;++i<r&&!1!==t(e[i],i,e););else Je(e,t);return e}function I(e,i,t){var r=e?e.length:0;if(i=i&&void 0===t?i:p(i,t,3),"number"==typeof r)for(;r--&&!1!==i(e[r],r,e););else{var o=Ue(e),r=o.length;Je(e,function(e,t,n){return t=o?o[--r]:--r,i(n[t],t,n)})}return e}function j(e,i,t){var r=-1,n=e?e.length:0;if(i=f.createCallback(i,t,3),"number"==typeof n)for(var o=re(n);++r<n;)o[r]=i(e[r],r,e);else o=[],Je(e,function(e,t,n){o[++r]=i(e,t,n)});return o}function $(e,i,t){var r=-1/0,o=r;if(null==(i="function"!=typeof i&&t&&t[i]===e?null:i)&&We(e))for(var n=-1,a=e.length;++n<a;){var s=e[n];o<s&&(o=s)}else i=null==i&&A(e)?it:f.createCallback(i,t,3),P(e,function(e,t,n){n=i(e,t,n),r<n&&(r=n,o=e)});return o}function F(e,i,r,t){if(!e)return r;var o=arguments.length<3;i=f.createCallback(i,t,4);var n=-1,a=e.length;if("number"==typeof a)for(o&&(r=e[++n]);++n<a;)r=i(r,e[n],n,e);else Je(e,function(e,t,n){r=o?(o=!1,e):i(r,e,t,n)});return r}function R(e,i,r,t){var o=arguments.length<3;return i=f.createCallback(i,t,4),I(e,function(e,t,n){r=o?(o=!1,e):i(r,e,t,n)}),r}function z(e){var n=-1,t=e?e.length:0,i=re("number"==typeof t?t:0);return P(e,function(e){var t=o(0,++n);i[n]=i[t],i[t]=e}),i}function H(e,i,t){var r;i=f.createCallback(i,t,3);var n=-1,o=e?e.length:0;if("number"==typeof o)for(;++n<o&&!(r=i(e[n],n,e)););else Je(e,function(e,t,n){return!(r=i(e,t,n))});return!!r}function B(e,t,n){var i=0,r=e?e.length:0;if("number"!=typeof t&&null!=t){var o=-1;for(t=f.createCallback(t,n,3);++o<r&&t(e[o],o,e);)i++}else if(null==(i=t)||n)return e?e[0]:dt;return ft(e,0,je(Ie(0,i),r))}function W(e,t,n){if("number"==typeof n){var i=e?e.length:0;n=n<0?Ie(0,i+n):n||0}else if(n)return i=q(e,t),e[i]===t?i:-1;return tt(e,t,n)}function U(e,t,n){if("number"!=typeof t&&null!=t){var i=0,r=-1,o=e?e.length:0;for(t=f.createCallback(t,n,3);++r<o&&t(e[r],r,e);)i++}else i=null==t||n?1:Ie(0,t);return ft(e,i)}function q(e,t,n,i){var r=0,o=e?e.length:r;for(t=(n=n?f.createCallback(n,i,1):J)(t);r<o;){var a=r+o>>>1;n(e[a])<t?r=1+a:o=a}return r}function K(e,t,n,i){return"boolean"!=typeof t&&null!=t&&(i=n,n="function"!=typeof t&&i&&i[t]===e?null:t,t=!1),r(e,t,n=null!=n?f.createCallback(n,i,3):n)}function Y(){for(var e=1<arguments.length?arguments:arguments[0],t=-1,n=e?$(Qe(e,"length")):0,i=re(n<0?0:n);++t<n;)i[t]=Qe(e,t);return i}function G(e,t){var n=-1,i=e?e.length:0,r={};for(t||!i||We(e[0])||(t=[]);++n<i;){var o=e[n];t?r[o]=t[n]:o&&(r[o[0]]=o[1])}return r}function V(e,t){return 2<arguments.length?y(e,17,ft(arguments,2),null,t):y(e,1,null,null,t)}function X(i,r,e){function o(){var e,t=r-(et()-c);t<=0?(l&&we(l),e=p,l=d=p=dt,e&&(m=et(),u=i.apply(f,s),d||l||(s=f=null))):d=Ee(o,t)}function a(){d&&we(d),l=d=p=dt,!v&&g===r||(m=et(),u=i.apply(f,s),d||l||(s=f=null))}var s,l,u,c,f,d,p,h,m=0,g=!1,v=!0;if(!k(i))throw new pe;return r=Ie(0,r)||0,!0===e?v=!(h=!0):E(e)&&(h=e.leading,g="maxWait"in e&&(Ie(r,e.maxWait)||0),v="trailing"in e?e.trailing:v),function(){var e,t,n;return s=arguments,c=et(),f=this,p=v&&(d||!h),!1===g?e=h&&!d:(n=(t=g-(c-(m=l||h?m:c)))<=0)?(l=l&&we(l),m=c,u=i.apply(f,s)):l=l||Ee(a,t),n&&d?d=we(d):d||r===g||(d=Ee(o,r)),e&&(n=!0,u=i.apply(f,s)),!n||d||l||(s=f=null),u}}function J(e){return e}function Z(r,t,e){var o=!0,n=t&&C(t);t&&(e||n.length)||(null==e&&(e=t),a=l,t=r,r=f,n=C(t)),!1===e?o=!1:E(e)&&"chain"in e&&(o=e.chain);var a=r,s=k(a);P(n,function(e){var i=r[e]=t[e];s&&(a.prototype[e]=function(){var e=this.__chain__,t=this.__wrapped__,n=[t];if(ke.apply(n,arguments),n=i.apply(r,n),o||e){if(t===n&&E(n))return this;(n=new a(n)).__chain__=e}return n})})}function Q(){}function ee(t){return function(e){return e[t]}}function te(){return this.__wrapped__}function ne(){}function ie(e,t,n){var i,r,o=e;if(!e)return o;for(var a=arguments,s=0,l="number"==typeof n?2:a.length;++s<l;)if((r=a[s])&&Bt[typeof r])for(var u=-1,c=Bt[typeof r]&&Ue(r),f=c?c.length:0;++u<f;)void 0===o[i=c[u]]&&(o[i]=r[i]);return o}var re=(n=n?Ut.defaults(Wt.Object(),n,Ut.pick(Wt,At)):Wt).Array,oe=n.Boolean,ae=n.Date,se=n.Function,le=n.Math,ue=n.Number,ce=n.Object,fe=n.RegExp,de=n.String,pe=n.TypeError,he=[],me=ce.prototype,ge=n._,ve=me.toString,ye=fe("^"+de(ve).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),be=le.ceil,we=n.clearTimeout,_e=le.floor,xe=se.prototype.toString,Ce=a(Ce=ce.getPrototypeOf)&&Ce,Te=me.hasOwnProperty,ke=he.push,Ee=n.setTimeout,Se=he.splice,Ae=he.unshift,De=function(){try{var e={},t=a(t=ce.defineProperty)&&t,n=t(e,e,e)&&t}catch(e){}return n}(),Oe=a(Oe=ce.create)&&Oe,Ne=a(Ne=re.isArray)&&Ne,Me=n.isFinite,Le=n.isNaN,Pe=a(Pe=ce.keys)&&Pe,Ie=le.max,je=le.min,$e=n.parseInt,Fe=le.random,Re={};Re[Nt]=re,Re[Mt]=oe,Re[Lt]=ae,Re[Pt]=se,Re[jt]=ce,Re[It]=ue,Re[$t]=fe,Re[Ft]=de,l.prototype=f.prototype;var ze=f.support={};ze.funcDecomp=!a(n.WinRTError)&&Et.test(e),ze.funcNames="string"==typeof se.name,f.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:Ct,variable:"",imports:{_:f}},Oe||(m=function(e){var t;return E(e)&&(ne.prototype=e,t=new ne,ne.prototype=null),t||n.Object()});var He,Be=De?function(e,t){Ht.value=t,De(e,"__bindData__",Ht)}:Q,We=Ne||function(e){return e&&"object"==typeof e&&"number"==typeof e.length&&ve.call(e)==Nt||!1},Ue=Pe?function(e){return E(e)?Pe(e):[]}:function(e){var t,n=e,i=[];if(!n)return i;if(!Bt[typeof e])return i;for(t in n)Te.call(n,t)&&i.push(t);return i},qe={"&":"&","<":"<",">":">",'"':""","'":"'"},Ke=T(qe),Ye=fe("("+Ue(Ke).join("|")+")","g"),Ge=fe("["+Ue(qe).join("")+"]","g"),Ve=function(e,t,n){var i,r,o=e;if(!e)return o;var a,s=arguments,l=0,u="number"==typeof n?2:s.length;for(3<u&&"function"==typeof s[u-2]?a=p(s[--u-1],s[u--],2):2<u&&"function"==typeof s[u-1]&&(a=s[--u]);++l<u;)if((r=s[l])&&Bt[typeof r])for(var c=-1,f=Bt[typeof r]&&Ue(r),d=f?f.length:0;++c<d;)o[i=f[c]]=a?a(o[i],r[i]):r[i];return o},Xe=function(e,t,n){var i,r=e,o=r;if(!r)return o;if(!Bt[typeof r])return o;for(i in t=t&&void 0===n?t:p(t,n,3),r)if(!1===t(r[i],i,e))return o;return o},Je=function(e,t,n){var i,r=e,o=r;if(!r)return o;if(!Bt[typeof r])return o;t=t&&void 0===n?t:p(t,n,3);for(var a=-1,s=Bt[typeof r]&&Ue(r),l=s?s.length:0;++a<l;)if(!1===t(r[i=s[a]],i,e))return o;return o},Ze=Ce?function(e){if(!e||ve.call(e)!=jt)return!1;var t=e.valueOf,n=a(t)&&(n=Ce(t))&&Ce(n);return n?e==n||Ce(e)==n:s(e)}:s,me=t(function(e,t,n){Te.call(e,n)?e[n]++:e[n]=1}),le=t(function(e,t,n){(Te.call(e,n)?e[n]:e[n]=[]).push(t)}),oe=t(function(e,t,n){e[n]=t}),Qe=j,ue=M,et=a(et=ae.now)&&et||function(){return(new ae).getTime()},Ne=8==$e(gt+"08")?$e:function(e,t){return $e(A(e)?e.replace(Tt,""):e,t||0)};return f.after=function(e,t){if(!k(t))throw new pe;return function(){if(--e<1)return t.apply(this,arguments)}},f.assign=Ve,f.at=function(e){for(var t=arguments,n=-1,i=h(t,!0,!1,1),r=t[2]&&t[2][t[1]]===e?1:i.length,o=re(r);++n<r;)o[n]=e[i[n]];return o},f.bind=V,f.bindAll=function(e){for(var t=1<arguments.length?h(arguments,!0,!1,1):C(e),n=-1,i=t.length;++n<i;){var r=t[n];e[r]=y(e[r],1,null,null,e)}return e},f.bindKey=function(e,t){return 2<arguments.length?y(t,19,ft(arguments,2),null,e):y(t,3,null,null,e)},f.chain=function(e){return(e=new l(e)).__chain__=!0,e},f.compact=function(e){for(var t=-1,n=e?e.length:0,i=[];++t<n;){var r=e[t];r&&i.push(r)}return i},f.compose=function(){for(var n=arguments,e=n.length;e--;)if(!k(n[e]))throw new pe;return function(){for(var e=arguments,t=n.length;t--;)e=[n[t].apply(this,e)];return e[0]}},f.constant=function(e){return function(){return e}},f.countBy=me,f.create=function(e,t){return e=m(e),t?Ve(e,t):e},f.createCallback=function(i,e,t){var n=typeof i;if(null==i||"function"==n)return p(i,e,t);if("object"!=n)return ee(i);var r=Ue(i),o=r[0],a=i[o];return 1!=r.length||a!=a||E(a)?function(e){for(var t=r.length,n=!1;t--&&(n=v(e[r[t]],i[r[t]],null,!0)););return n}:function(e){return e=e[o],a===e&&(0!==a||1/a==1/e)}},f.curry=function(e,t){return y(e,4,null,null,null,t="number"==typeof t?t:+t||e.length)},f.debounce=X,f.defaults=ie,f.defer=function(e){if(!k(e))throw new pe;var t=ft(arguments,1);return Ee(function(){e.apply(dt,t)},1)},f.delay=function(e,t){if(!k(e))throw new pe;var n=ft(arguments,2);return Ee(function(){e.apply(dt,n)},t)},f.difference=function(e){return u(e,h(arguments,!0,!0,1))},f.filter=M,f.flatten=function(e,t,n,i){return"boolean"!=typeof t&&null!=t&&(i=n,n="function"!=typeof t&&i&&i[t]===e?null:t,t=!1),h(e=null!=n?j(e,n,i):e,t)},f.forEach=P,f.forEachRight=I,f.forIn=Xe,f.forInRight=function(e,t,n){var i=[];Xe(e,function(e,t){i.push(t,e)});var r=i.length;for(t=p(t,n,3);r--&&!1!==t(i[r--],i[r],e););return e},f.forOwn=Je,f.forOwnRight=x,f.functions=C,f.groupBy=le,f.indexBy=oe,f.initial=function(e,t,n){var i=0,r=e?e.length:0;if("number"!=typeof t&&null!=t){var o=r;for(t=f.createCallback(t,n,3);o--&&t(e[o],o,e);)i++}else i=null==t||n?1:t||i;return ft(e,0,je(Ie(0,r-i),r))},f.intersection=function(){for(var e=[],t=-1,n=arguments.length,i=st(),r=b(),o=r===tt,a=st();++t<n;){var s=arguments[t];(We(s)||_(s))&&(e.push(s),i.push(o&&s.length>=mt&&ot(t?e[t]:a)))}var l=e[0],u=-1,c=l?l.length:0,f=[];e:for(;++u<c;){var d=i[0],s=l[u];if((d?nt(d,s):r(a,s))<0){for(t=n,(d||a).push(s);--t;)if(((d=i[t])?nt(d,s):r(e[t],s))<0)continue e;f.push(s)}}for(;n--;)(d=i[n])&&ct(d);return ut(i),ut(a),f},f.invert=T,f.invoke=function(e,t){var n=ft(arguments,2),i=-1,r="function"==typeof t,o=e?e.length:0,a=re("number"==typeof o?o:0);return P(e,function(e){a[++i]=(r?t:e[t]).apply(e,n)}),a},f.keys=Ue,f.map=j,f.mapValues=function(e,i,t){var r={};return i=f.createCallback(i,t,3),Je(e,function(e,t,n){r[t]=i(e,t,n)}),r},f.max=$,f.memoize=function(n,i){function r(){var e=r.cache,t=i?i.apply(this,arguments):ht+arguments[0];return Te.call(e,t)?e[t]:e[t]=n.apply(this,arguments)}if(!k(n))throw new pe;return r.cache={},r.reset=function(){var e=r.cache,t=i?i.apply(this,arguments):ht+arguments[0];Te.call(e,t)&&delete e[t]},r},f.merge=function(e){var t,n=arguments,i=2;if(!E(e))return e;3<(i="number"!=typeof n[2]?n.length:i)&&"function"==typeof n[i-2]?t=p(n[--i-1],n[i--],2):2<i&&"function"==typeof n[i-1]&&(t=n[--i]);for(var r=ft(arguments,1,i),o=-1,a=st(),s=st();++o<i;)!function l(u,e,c,f,d){(We(e)?P:Je)(e,function(e,t){var n,i,r=e,o=u[t];if(e&&((i=We(e))||Ze(e))){for(var a,s=f.length;s--;)if(n=f[s]==e){o=d[s];break}n||(c&&(a=void 0!==(r=c(o,e)))&&(o=r),a||(o=i?We(o)?o:[]:Ze(o)?o:{}),f.push(e),d.push(o),a||l(o,e,c,f,d))}else void 0!==(r=c&&void 0===(r=c(o,e))?e:r)&&(o=r);u[t]=o})}(e,r[o],t,a,s);return ut(a),ut(s),e},f.min=function(e,i,t){var r=1/0,o=r;if(null==(i="function"!=typeof i&&t&&t[i]===e?null:i)&&We(e))for(var n=-1,a=e.length;++n<a;){var s=e[n];s<o&&(o=s)}else i=null==i&&A(e)?it:f.createCallback(i,t,3),P(e,function(e,t,n){(n=i(e,t,n))<r&&(r=n,o=e)});return o},f.omit=function(e,i,t){var r={};if("function"!=typeof i){var n=[];Xe(e,function(e,t){n.push(t)});for(var o=-1,a=(n=u(n,h(arguments,!0,!1,1))).length;++o<a;){var s=n[o];r[s]=e[s]}}else i=f.createCallback(i,t,3),Xe(e,function(e,t,n){i(e,t,n)||(r[t]=e)});return r},f.once=function(e){var t,n;if(!k(e))throw new pe;return function(){return t||(t=!0,n=e.apply(this,arguments),e=null),n}},f.pairs=function(e){for(var t=-1,n=Ue(e),i=n.length,r=re(i);++t<i;){var o=n[t];r[t]=[o,e[o]]}return r},f.partial=function(e){return y(e,16,ft(arguments,1))},f.partialRight=function(e){return y(e,32,null,ft(arguments,1))},f.pick=function(e,i,t){var r={};if("function"!=typeof i)for(var n=-1,o=h(arguments,!0,!1,1),a=E(e)?o.length:0;++n<a;){var s=o[n];s in e&&(r[s]=e[s])}else i=f.createCallback(i,t,3),Xe(e,function(e,t,n){i(e,t,n)&&(r[t]=e)});return r},f.pluck=Qe,f.property=ee,f.pull=function(e){for(var t=arguments,n=0,i=t.length,r=e?e.length:0;++n<i;)for(var o=-1,a=t[n];++o<r;)e[o]===a&&(Se.call(e,o--,1),r--);return e},f.range=function(e,t,n){e=+e||0,null==t&&(t=e,e=0);for(var i=-1,r=Ie(0,be((t-e)/((n="number"==typeof n?n:+n||1)||1))),o=re(r);++i<r;)o[i]=e,e+=n;return o},f.reject=function(e,i,t){return i=f.createCallback(i,t,3),M(e,function(e,t,n){return!i(e,t,n)})},f.remove=function(e,t,n){var i=-1,r=e?e.length:0,o=[];for(t=f.createCallback(t,n,3);++i<r;){var a=e[i];t(a,i,e)&&(o.push(a),Se.call(e,i--,1),r--)}return o},f.rest=U,f.shuffle=z,f.sortBy=function(e,r,t){var o=-1,a=We(r),n=e?e.length:0,s=re("number"==typeof n?n:0);for(a||(r=f.createCallback(r,t,3)),P(e,function(t,e,n){var i=s[++o]=lt();a?i.criteria=j(r,function(e){return t[e]}):(i.criteria=st())[0]=r(t,e,n),i.index=o,i.value=t}),n=s.length,s.sort(rt);n--;){var i=s[n];s[n]=i.value,a||ut(i.criteria),ct(i)}return s},f.tap=function(e,t){return t(e),e},f.throttle=function(e,t,n){var i=!0,r=!0;if(!k(e))throw new pe;return!1===n?i=!1:E(n)&&(i="leading"in n?n.leading:i,r="trailing"in n?n.trailing:r),zt.leading=i,zt.maxWait=t,zt.trailing=r,X(e,t,zt)},f.times=function(e,t,n){e=-1<(e=+e)?e:0;var i=-1,r=re(e);for(t=p(t,n,1);++i<e;)r[i]=t(i);return r},f.toArray=function(e){return(e&&"number"==typeof e.length?ft:D)(e)},f.transform=function(e,i,r,t){var n,o=We(e);return null==r&&(r=o?[]:m((n=e&&e.constructor)&&n.prototype)),i&&(i=f.createCallback(i,t,4),(o?P:Je)(e,function(e,t,n){return i(r,e,t,n)})),r},f.union=function(){return r(h(arguments,!0,!0))},f.uniq=K,f.values=D,f.where=ue,f.without=function(e){return u(e,ft(arguments,1))},f.wrap=function(e,t){return y(t,16,[e])},f.xor=function(){for(var e=-1,t=arguments.length;++e<t;){var n,i=arguments[e];(We(i)||_(i))&&(n=n?r(u(n,i).concat(u(i,n))):i)}return n||[]},f.zip=Y,f.zipObject=G,f.collect=j,f.drop=U,f.each=P,f.eachRight=I,f.extend=Ve,f.methods=C,f.object=G,f.select=M,f.tail=U,f.unique=K,f.unzip=Y,Z(f),f.clone=function(e,t,n,i){return"boolean"!=typeof t&&null!=t&&(i=n,n=t,t=!1),c(e,t,"function"==typeof n&&p(n,i,1))},f.cloneDeep=function(e,t,n){return c(e,!0,"function"==typeof t&&p(t,n,1))},f.contains=O,f.escape=function(e){return null==e?"":de(e).replace(Ge,i)},f.every=N,f.find=L,f.findIndex=function(e,t,n){var i=-1,r=e?e.length:0;for(t=f.createCallback(t,n,3);++i<r;)if(t(e[i],i,e))return i;return-1},f.findKey=function(e,i,t){var r;return i=f.createCallback(i,t,3),Je(e,function(e,t,n){if(i(e,t,n))return r=t,!1}),r},f.findLast=function(e,i,t){var r;return i=f.createCallback(i,t,3),I(e,function(e,t,n){if(i(e,t,n))return r=e,!1}),r},f.findLastIndex=function(e,t,n){var i=e?e.length:0;for(t=f.createCallback(t,n,3);i--;)if(t(e[i],i,e))return i;return-1},f.findLastKey=function(e,i,t){var r;return i=f.createCallback(i,t,3),x(e,function(e,t,n){if(i(e,t,n))return r=t,!1}),r},f.has=function(e,t){return!!e&&Te.call(e,t)},f.identity=J,f.indexOf=W,f.isArguments=_,f.isArray=We,f.isBoolean=function(e){return!0===e||!1===e||e&&"object"==typeof e&&ve.call(e)==Mt||!1},f.isDate=function(e){return e&&"object"==typeof e&&ve.call(e)==Lt||!1},f.isElement=function(e){return e&&1===e.nodeType||!1},f.isEmpty=function(e){var t=!0;if(!e)return t;var n=ve.call(e),i=e.length;return n==Nt||n==Ft||n==Ot||n==jt&&"number"==typeof i&&k(e.splice)?!i:(Je(e,function(){return t=!1}),t)},f.isEqual=function(e,t,n,i){return v(e,t,"function"==typeof n&&p(n,i,2))},f.isFinite=function(e){return Me(e)&&!Le(parseFloat(e))},f.isFunction=k,f.isNaN=function(e){return S(e)&&e!=+e},f.isNull=function(e){return null===e},f.isNumber=S,f.isObject=E,f.isPlainObject=Ze,f.isRegExp=function(e){return e&&"object"==typeof e&&ve.call(e)==$t||!1},f.isString=A,f.isUndefined=function(e){return void 0===e},f.lastIndexOf=function(e,t,n){var i=e?e.length:0;for("number"==typeof n&&(i=(n<0?Ie(0,i+n):je(n,i-1))+1);i--;)if(e[i]===t)return i;return-1},f.mixin=Z,f.noConflict=function(){return n._=ge,this},f.noop=Q,f.now=et,f.parseInt=Ne,f.random=function(e,t,n){var i=null==e,r=null==t;return null==n&&("boolean"==typeof e&&r?(n=e,e=1):r||"boolean"!=typeof t||(n=t,r=!0)),i&&r&&(t=1),e=+e||0,r?(t=e,e=0):t=+t||0,n||e%1||t%1?(n=Fe(),je(e+n*(t-e+parseFloat("1e-"+((n+"").length-1))),t)):o(e,t)},f.reduce=F,f.reduceRight=R,f.result=function(e,t){if(e){var n=e[t];return k(n)?e[t]():n}},f.runInContext=e,f.size=function(e){var t=e?e.length:0;return"number"==typeof t?t:Ue(e).length},f.some=H,f.sortedIndex=q,f.template=function(a,e,t){var n=f.templateSettings;a=de(a||""),t=ie({},t,n);var s,i=ie({},t.imports,n.imports),r=Ue(i),o=D(i),l=0,n=t.interpolate||kt,u="__p += '",i=fe((t.escape||kt).source+"|"+n.source+"|"+(n===Ct?wt:kt).source+"|"+(t.evaluate||kt).source+"|$","g");a.replace(i,function(e,t,n,i,r,o){return n=n||i,u+=a.slice(l,o).replace(St,at),t&&(u+="' +\n__e("+t+") +\n'"),r&&(s=!0,u+="';\n"+r+";\n__p += '"),n&&(u+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),l=o+e.length,e}),u+="';\n",n=t.variable,(i=n)||(u="with ("+(n="obj")+") {\n"+u+"\n}\n"),u=(s?u.replace(vt,""):u).replace(yt,"$1").replace(bt,"$1;"),u="function("+n+") {\n"+(i?"":n+" || ("+n+" = {});\n")+"var __t, __p = '', __e = _.escape"+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+u+"return __p\n}",t="\n/*\n//# sourceURL="+(t.sourceURL||"/lodash/template/source["+Dt+++"]")+"\n*/";try{var c=se(r,"return "+u+t).apply(dt,o)}catch(e){throw e.source=u,e}return e?c(e):(c.source=u,c)},f.unescape=function(e){return null==e?"":de(e).replace(Ye,w)},f.uniqueId=function(e){var t=++pt;return de(null==e?"":e)+t},f.all=N,f.any=H,f.detect=L,f.findWhere=L,f.foldl=F,f.foldr=R,f.include=O,f.inject=F,Z((He={},Je(f,function(e,t){f.prototype[t]||(He[t]=e)}),He),!1),f.first=B,f.last=function(e,t,n){var i=0,r=e?e.length:0;if("number"!=typeof t&&null!=t){var o=r;for(t=f.createCallback(t,n,3);o--&&t(e[o],o,e);)i++}else if(null==(i=t)||n)return e?e[r-1]:dt;return ft(e,Ie(0,r-i))},f.sample=function(e,t,n){return e&&"number"!=typeof e.length&&(e=D(e)),null==t||n?e?e[o(0,e.length-1)]:dt:((e=z(e)).length=je(Ie(0,t),e.length),e)},f.take=B,f.head=B,Je(f,function(r,e){var o="sample"!==e;f.prototype[e]||(f.prototype[e]=function(e,t){var n=this.__chain__,i=r(this.__wrapped__,e,t);return n||null!=e&&(!t||o&&"function"==typeof e)?new l(i,n):i})}),f.VERSION="2.4.1",f.prototype.chain=function(){return this.__chain__=!0,this},f.prototype.toString=function(){return de(this.__wrapped__)},f.prototype.value=te,f.prototype.valueOf=te,P(["join","pop","shift"],function(e){var n=he[e];f.prototype[e]=function(){var e=this.__chain__,t=n.apply(this.__wrapped__,arguments);return e?new l(t,e):t}}),P(["push","reverse","sort","unshift"],function(e){var t=he[e];f.prototype[e]=function(){return t.apply(this.__wrapped__,arguments),this}}),P(["concat","slice","splice"],function(e){var t=he[e];f.prototype[e]=function(){return new l(t.apply(this.__wrapped__,arguments),this.__chain__)}}),f}();n.each(Ut,function(e,t){Object.hasOwnProperty.call(Ut,e)&&!/VERSION/.test(name)&&(n[e]||(n[e]=t))})}),KTVendors.plugin("bootstrap3",function(e){if(window["Komento/Bootstrap"])throw new Error("An instance of Bootstrap has been initialized before this.");window["Komento/Bootstrap"]={version:"3.0.3",foundry:e},function(i){"use strict";i.fn.emulateTransitionEnd=function(e){var t=!1,n=this;i(this).one(i.support.transition.end,function(){t=!0});return setTimeout(function(){t||i(n).trigger(i.support.transition.end)},e),this},i(function(){i.support.transition=function(){var e,t=document.createElement("bootstrap"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(e in n)if(void 0!==t.style[e])return{end:n[e]}}()})}(e),function(o){"use strict";function i(e){o(e).on("click",t,this.close)}var t='[data-bs-dismiss="alert"]';i.prototype.close=function(e){function t(){r.trigger("closed.bs.alert").remove()}var n=o(this),i=(i=n.attr("data-target"))||(i=n.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,""),r=o(i);e&&e.preventDefault(),(r=!r.length?n.hasClass("alert")?n:n.parent():r).trigger(e=o.Event("close.bs.alert")),e.isDefaultPrevented()||(r.removeClass("in"),o.support.transition&&r.hasClass("fade")?r.one(o.support.transition.end,t).emulateTransitionEnd(150):t())};var e=o.fn.alert;o.fn.alert=function(n){return this.each(function(){var e=o(this),t=e.data("bs.alert");t||e.data("bs.alert",t=new i(this)),"string"==typeof n&&t[n].call(e)})},o.fn.alert.Constructor=i,o.fn.alert.noConflict=function(){return o.fn.alert=e,this},o(document).on("click.bs.alert.data-api",t,i.prototype.close)}(e),function(r){"use strict";function o(){r(".dropdown-backdrop").remove(),r(s).each(function(e){var t=a(r(this));t.hasClass("open")&&(t.triggerHandler(e=r.Event("hide.bs.dropdown")),e.isDefaultPrevented()||t.removeClass("open").trigger("hidden.bs.dropdown"))})}function a(e){var t=e.attr("data-target"),t=(t=t||(t=e.attr("href"))&&/#/.test(t)&&t.replace(/.*(?=#[^\s]*$)/,""))&&r(t);return t&&t.length?t:e.parent()}function i(e){r(e).on("click.bs.dropdown",this.toggle)}var s="[data-kt-toggle=dropdown]";i.prototype.toggle=function(e){var t=r(this);if(!t.is(".disabled, :disabled")){var n=a(t),i=n.hasClass("open");if(o(),!i){if("ontouchstart"in document.documentElement&&!n.closest(".navbar-nav").length&&r('<div class="dropdown-backdrop"/>').insertAfter(r(this)).on("click",o),n.triggerHandler(e=r.Event("show.bs.dropdown")),e.isDefaultPrevented())return;n.toggleClass("open").trigger("shown.bs.dropdown"),t.focus()}return!1}},i.prototype.keydown=function(e){if(/(38|40|27)/.test(e.keyCode)){var t=r(this);if(e.preventDefault(),e.stopPropagation(),!t.is(".disabled, :disabled")){var n=a(t),i=n.hasClass("open");if(!i||27==e.keyCode)return 27==e.which&&n.find(s).focus(),t.click();t=r("[role=menu] li:not(.divider):visible a",n);t.length&&(n=t.index(t.filter(":focus")),38==e.keyCode&&0<n&&n--,40==e.keyCode&&n<t.length-1&&n++,t.eq(n=!~n?0:n).focus())}}};var e=r.fn.dropdown;r.fn.dropdown=function(n){return this.each(function(){var e=r(this),t=e.data("bs.dropdown");t||e.data("bs.dropdown",t=new i(this)),"string"==typeof n&&t[n].call(e)})},r.fn.dropdown.Constructor=i,r.fn.dropdown.noConflict=function(){return r.fn.dropdown=e,this},r(document).on("click.bs.dropdown.data-api",o).on("click.bs.dropdown.data-api",".dropdown_ form, .dropdown-static",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",s,i.prototype.toggle).on("keydown.bs.dropdown.data-api",s+", [role=menu]",i.prototype.keydown)}(e),function(c){"use strict";function i(e,t){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",e,t)}i.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},i.prototype.init=function(e,t,n){this.enabled=!0,this.type=e,this.$element=c(t),this.options=this.getOptions(n);for(var i=this.options.trigger.split(" "),r=i.length;r--;){var o,a=i[r];"click"==a?this.$element.on("click."+this.type,this.options.selector,c.proxy(this.toggle,this)):"manual"!=a&&(o="hover"==a?"mouseleave":"blur",this.$element.on(("hover"==a?"mouseenter":"focus")+"."+this.type,this.options.selector,c.proxy(this.enter,this)),this.$element.on(o+"."+this.type,this.options.selector,c.proxy(this.leave,this)))}this.options.selector?this._options=c.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.getOptions=function(e){return(e=c.extend({},this.getDefaults(),this.$element.data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},i.prototype.getDelegateOptions=function(){var n={},i=this.getDefaults();return this._options&&c.each(this._options,function(e,t){i[e]!=t&&(n[e]=t)}),n},i.prototype.enter=function(e){var t=e instanceof this.constructor?e:c(e.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);if(clearTimeout(t.timeout),t.hoverState="in",!t.options.delay||!t.options.delay.show)return t.show();t.timeout=setTimeout(function(){"in"==t.hoverState&&t.show()},t.options.delay.show)},i.prototype.leave=function(e){var t=e instanceof this.constructor?e:c(e.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);if(clearTimeout(t.timeout),t.hoverState="out",!t.options.delay||!t.options.delay.hide)return t.hide();t.timeout=setTimeout(function(){"out"==t.hoverState&&t.hide()},t.options.delay.hide)},i.prototype.show=function(){var e,t,n,i,r,o,a,s,l,u=c.Event("show.bs."+this.type);this.hasContent()&&this.enabled&&(this.$element.triggerHandler(u),u.isDefaultPrevented()||(e=this.tip(),this.setContent(),this.options.animation&&e.addClass("fade"),s="function"==typeof this.options.placement?this.options.placement.call(this,e[0],this.$element[0]):this.options.placement,(o=(r=/\s?auto?\s?/i).test(s))&&(s=s.replace(r,"")||"top"),e.detach().css({top:0,left:0,display:"block"}).addClass(s.split("-")[0]),this.options.container?e.appendTo(this.options.container):e.insertAfter(this.$element),t=this.getPosition(),n=e[0].offsetWidth,l=e[0].offsetHeight,o&&(a=this.$element.parent(),i=s,u=document.documentElement.scrollTop||document.body.scrollTop,r="body"==this.options.container?window.innerWidth:a.outerWidth(),o="body"==this.options.container?window.innerHeight:a.outerHeight(),a="body"==this.options.container?0:a.offset().left,s="bottom"==s&&t.top+t.height+l-u>o?"top":"top"==s&&t.top-u-l<0?"bottom":"right"==s&&t.right+n>r?"left":"left"==s&&t.left-n<a?"right":s,e.removeClass(i).addClass(s)),l=this.getCalculatedOffset(s,t,n,l),this.applyPlacement(l,s),this.$element.trigger("shown.bs."+this.type)))},i.prototype.applyPlacement=function(e,t){var n,i=this.tip(),r=i[0].offsetWidth,o=i[0].offsetHeight,a=parseInt(i.css("margin-top"),10),s=parseInt(i.css("margin-left"),10);isNaN(a)&&(a=0),isNaN(s)&&(s=0),e.top=e.top+a,e.left=e.left+s,i.offset(e).addClass("in");var l=i[0].offsetWidth,a=i[0].offsetHeight;"top"==t&&a!=o&&(n=!0,e.top=e.top+o-a),0===["top","bottom"].indexOf(t.split("-")[0])&&(e.left<(s=0)&&(s=-2*e.left,e.left=0,i.offset(e),l=i[0].offsetWidth,a=i[0].offsetHeight),this.replaceArrow(s-r+l,l,"left")),0===["left","right"].indexOf(t.split("-")[0])&&this.replaceArrow(a-o,a,"top"),n&&i.offset(e)},i.prototype.replaceArrow=function(e,t,n){this.arrow().css(n,e?50*(1-e/t)+"%":"")},i.prototype.setContent=function(){var e=this.tip(),t=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeClass("fade in top bottom left right")},i.prototype.hide=function(){function e(){"in"!=t.hoverState&&n.detach()}var t=this,n=this.tip(),i=c.Event("hide.bs."+this.type);if(this.$element.triggerHandler(i),!i.isDefaultPrevented())return n.removeClass("in"),c.support.transition&&this.$tip.hasClass("fade")?n.one(c.support.transition.end,e).emulateTransitionEnd(150):e(),this.$element.trigger("hidden.bs."+this.type),this},i.prototype.fixTitle=function(){var e=this.$element;!e.attr("title")&&"string"==typeof e.attr("data-original-title")||e.attr("data-original-title",e.attr("title")||"").attr("title","")},i.prototype.hasContent=function(){return this.getTitle()},i.prototype.getPosition=function(){var e=this.$element[0];return c.extend({},"function"==typeof e.getBoundingClientRect?e.getBoundingClientRect():{width:e.offsetWidth,height:e.offsetHeight},this.$element.offset())},i.prototype.getCalculatedOffset=function(e,t,n,i){return"left-top"==e?{top:t.top,left:t.left-n}:"left-bottom"==e?{top:t.top+t.height-i,left:t.left-n}:"right-top"==e?{top:t.top,left:t.left+t.width}:"right-bottom"==e?{top:t.top+t.height-i,left:t.left+t.width}:"top-left"==e?{top:t.top-i,left:t.left}:"top-right"==e?{top:t.top-i,left:t.left+t.width-n}:"bottom-left"==e?{top:t.top+t.height,left:t.left}:"bottom-right"==e?{top:t.top+t.height,left:t.left+t.width-n}:"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-n/2}:"top"==e?{top:t.top-i,left:t.left+t.width/2-n/2}:"left"==e?{top:t.top+t.height/2-i/2,left:t.left-n}:{top:t.top+t.height/2-i/2,left:t.left+t.width}},i.prototype.getTitle=function(){var e=this.$element,t=this.options;return e.attr("data-original-title")||("function"==typeof t.title?t.title.call(e[0]):t.title)},i.prototype.tip=function(){return this.$tip=this.$tip||c(this.options.template)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},i.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},i.prototype.enable=function(){this.enabled=!0},i.prototype.disable=function(){this.enabled=!1},i.prototype.toggleEnabled=function(){this.enabled=!this.enabled},i.prototype.toggle=function(e){e=e?c(e.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type):this;e.tip().hasClass("in")?e.leave(e):e.enter(e)},i.prototype.destroy=function(){this.hide().$element.off("."+this.type).removeData("bs."+this.type)};var e=c.fn.tooltip;c.fn.tooltip=function(n){return this.each(function(){var e=c(this),t=e.data("bs.tooltip");t||e.data("bs.tooltip",t=new i(this,"object"==typeof n&&n)),"string"==typeof n&&t[n]()})},c.fn.tooltip.Constructor=i,c.fn.tooltip.noConflict=function(){return c.fn.tooltip=e,this}}(e),function(i){"use strict";function r(e,t){this.init("popover",e,t)}if(!i.fn.tooltip)throw new Error("Popover requires tooltip.js");r.DEFAULTS=i.extend({},i.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div id="kt" class="o-popover--kt"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),r.prototype=i.extend({},i.fn.tooltip.Constructor.prototype),(r.prototype.constructor=r).prototype.getDefaults=function(){return r.DEFAULTS},r.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content")[this.options.html?"html":"text"](n),e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},r.prototype.hasContent=function(){return this.getTitle()||this.getContent()},r.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},r.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},r.prototype.tip=function(){return this.$tip||(this.$tip=i(this.options.template)),this.$tip};var e=i.fn.popover;i.fn.popover=function(n){return this.each(function(){var e=i(this),t=e.data("bs.popover");t||e.data("bs.popover",t=new r(this,"object"==typeof n&&n)),"string"==typeof n&&t[n]()})},i.fn.popover.Constructor=r,i.fn.popover.noConflict=function(){return i.fn.popover=e,this}}(e),function(a){"use strict";function r(e,t){this.$element=a(e),this.options=a.extend({},r.DEFAULTS,t),this.transitioning=null,this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()}r.DEFAULTS={toggle:!0},r.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},r.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e=a.Event("show.bs.collapse");if(this.$element.triggerHandler(e),!e.isDefaultPrevented()){e=this.$parent&&this.$parent.find("> .panel > .in");if(e&&e.length){var t=e.data("bs.collapse");if(t&&t.transitioning)return;e.collapse("hide"),t||e.data("bs.collapse",null)}var n=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[n](0),this.transitioning=1;t=function(){this.$element.removeClass("collapsing").addClass("in")[n]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return t.call(this);e=a.camelCase(["scroll",n].join("-"));this.$element.one(a.support.transition.end,a.proxy(t,this)).emulateTransitionEnd(350)[n](this.$element[0][e])}}},r.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=a.Event("hide.bs.collapse");if(this.$element.triggerHandler(e),!e.isDefaultPrevented()){var t=this.dimension();this.$element[t](this.$element[t]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;e=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};if(!a.support.transition)return e.call(this);this.$element[t](0).one(a.support.transition.end,a.proxy(e,this)).emulateTransitionEnd(350)}}},r.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var e=a.fn.collapse;a.fn.collapse=function(i){return this.each(function(){var e=a(this),t=e.data("bs.collapse"),n=a.extend({},r.DEFAULTS,e.data(),"object"==typeof i&&i);t||e.data("bs.collapse",t=new r(this,n)),"string"==typeof i&&t[i]()})},a.fn.collapse.Constructor=r,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api","[data-bp-toggle=collapse]",function(e){var t=a(this),n=t.attr("data-target")||e.preventDefault()||(o=t.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,""),i=a(n),r=i.data("bs.collapse"),e=r?"toggle":t.data(),o=t.attr("data-parent"),n=o&&a(o);r&&r.transitioning||(n&&n.find('[data-bp-toggle=collapse][data-parent="'+o+'"]').not(t).addClass("collapsed"),t[i.hasClass("in")?"addClass":"removeClass"]("collapsed")),i.collapse(e)})}(e),function(a){"use strict";function i(e){this.element=a(e)}i.prototype.show=function(){var e,t,n=this.element,i=n.closest("ul:not(.dropdown-menu)"),r=(r=n.data("target"))||(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]*$)/,"");n.parent("li").hasClass("active")||(e=i.find(".active:last a")[0],t=a.Event("show.bs.tab",{relatedTarget:e}),n.triggerHandler(t),t.isDefaultPrevented()||(r=a(r),this.activate(n.parent("li"),i),this.activate(r,r.parent(),function(){n.trigger({type:"shown.bs.tab",relatedTarget:e})})))},i.prototype.activate=function(e,t,n){function i(){r.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),e.addClass("active"),o?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu")&&e.closest("li.dropdown").addClass("active"),n&&n()}var r=t.find("> .active"),o=n&&a.support.transition&&r.hasClass("fade");o?r.one(a.support.transition.end,i).emulateTransitionEnd(150):i(),r.removeClass("in")};var e=a.fn.tab;a.fn.tab=function(n){return this.each(function(){var e=a(this),t=e.data("bs.tab");t||e.data("bs.tab",t=new i(this)),"string"==typeof n&&t[n]()})},a.fn.tab.Constructor=i,a.fn.tab.noConflict=function(){return a.fn.tab=e,this},a(document).on("click.bs.tab.data-api",'[data-bs-toggle="tab"], [data-bs-toggle="pill"]',function(e){e.preventDefault(),a(this).tab("show")})}(e)}),KTVendors.plugin("utils",function(c){function t(e){this.items=e,this.start=0,this.end=e.length-1,this.node=null,this.stopped=!1}function n(){this.lastId=0}var r,o,i,a,s,l;function u(e){this.threads=[],this.threadCount=0,this.threadLimit=e.threadLimit||1,this.threadDelay=e.threadDelay||0}function f(e){return{r:(e=parseInt(-1<e.indexOf("#")?e.substring(1):e,16))>>16,g:(65280&e)>>8,b:255&e}}function d(e){var t={h:0,s:0,b:0},n=Math.min(e.r,e.g,e.b),i=Math.max(e.r,e.g,e.b),n=i-n;return t.b=i,t.s=0!=i?255*n/i:0,0!=t.s?(e.r==i?t.h=(e.g-e.b)/n:e.g==i?t.h=2+(e.b-e.r)/n:t.h=4+(e.r-e.g)/n,t.h*=60):t.h=360,t.h<0&&(t.h+=360),t.s*=100/255,t.b*=100/255,t}function p(e){var t={},n=e.h,i=255*e.s/100,r=255*e.b/100;return 0==i?t.r=t.g=t.b=r:(r=n%60*((e=r)-(i=(255-i)*r/255))/60,(n=360==n?0:n)<60?(t.r=e,t.b=i,t.g=i+r):n<120?(t.g=e,t.b=i,t.r=e-r):n<180?(t.g=e,t.r=i,t.b=i+r):n<240?(t.b=e,t.r=i,t.g=e-r):n<300?(t.b=e,t.g=i,t.r=i+r):n<360?(t.r=e,t.g=i,t.b=e-r):(t.r=0,t.g=0,t.b=0)),{r:Math.round(t.r),g:Math.round(t.g),b:Math.round(t.b)}}function h(e){var n=[e.r.toString(16),e.g.toString(16),e.b.toString(16)];return c.each(n,function(e,t){1==t.length&&(n[e]="0"+t)}),n.join("")}function m(e){return e.split(".")[0]}function g(e){this.fnList={},this.events={},this.mode=e}c.extend(t.prototype,{isLooping:function(){return!this.stopped&&(1<Math.abs(this.start-this.end)&&(this.node=Math.floor((this.start+this.end)/2),!0))},flip:function(e){e?this.end=this.node-1:this.start=this.node+1},stop:function(){this.stop=!0}}),c.Bloop=function(e){return new t(e)},c.Chunk=function(n,e){c.isArray(n)&&(n=[]);var e=c.extend({},{size:256,every:1e3},e),i=c.extend(c.Deferred(),{size:e.size,every:e.every,from:0,to:n.length,process:function(e){return i.process.fn=e,i},chunkStart:function(e){return i.chunkStart.fn=e,i},chunkEnd:function(e){return i.chunkEnd.fn=e,i},start:function(){return i.stopped=!1,i.iterate(),i},iterate:function(){if(!i.stopped){var e=i.process.fn;if(e){i.to=from.size+i.size;var t=n.length;i.to>t&&(i.to=t);t={from:i.from,to:i.to};for(i.chunkStart.fn&&i.chunkStart.fn.call(i,t.from,t.to);i.from<i.to&&!i.stopped;)e.call(i,n[i.from]),i.from++;return i.chunkEnd.fn&&i.chunkEnd.fn.call(i,t.from,t.to),i.completed=i.from>=n.length-1,i.completed?i.resolveWith(i):i.nextIteration=setTimeout(i.iterate,i.every),i}}},pause:function(){return i.stopped=!0,clearTimeout(i.nextIteration),i},restart:function(){return"rejected"===i.state()||(i.from=0,i.start()),i},stop:function(){return i.pause(),i.rejectWith(i,[i.from]),i}});return i},r=c.isFunction,n.prototype.queue=function(t){var n=this,i=c.uid();return n.lastId=i,function(){if(n.lastId===i){var e=arguments,e=r(t)?t.apply(this,e):e;return r(n.fn)?n.fn.apply(this,e):e}}},c.Enqueue=function(e){var t=new n;r(e)&&(t.fn=e);e=c.proxy(t.queue,t);return e.reset=function(){t.lastId=0},e},o={error:"error",warning:"warn",success:"log",info:"info"},c.Exception=function(e){var t=arguments,n=1==t.length,i=3==t.length;return e=c.isPlainObject(e)?e:{type:n?"error":t[0],message:n?t[0]:t[1]},i&&c.extend(e,t[2]),"development"==c.environment&&console[o[e.type]](e.message,e),e},c.IE=function(){var e=navigator.userAgent;if(e.match(/MSIE 9/))return 9;if(e.match(/MSIE 10/))return 10;if(e.match(/rv:11/i))return 11;for(var t=3,n=document.createElement("div"),i=n.getElementsByTagName("i");n.innerHTML="\x3c!--[if gt IE "+ ++t+"]><i></i><![endif]--\x3e",i[0];);return 4<t?t:void 0}(),c.Task=function(e){var t=c.extend(c.Deferred(),{data:{},list:[],add:function(e){e=c.extend(c.Deferred(),{name:e,item:void 0});return t.list.push(e),e},process:function(){return t._promise||(t._promise=c.when.apply(c,t.list).then(t.resolve,t.reject,t.progress)),t}},e);return t},c.extend(u.prototype,{add:function(e,t){c.isFunction(e)&&(e.type=t||"normal","deferred"==t&&(e.deferred=c.Deferred().always(c.proxy(this.next,this))),this.threads.push(e),this.run())},addDeferred:function(e){return this.add(e,"deferred")},next:function(){this.threadCount--,this.run()},run:function(){var t=this;setTimeout(function(){if(!(t.threads.length<1)&&t.threadCount<t.threadLimit){t.threadCount++;var e=t.threads.shift();try{e.call(e,e.deferred)}catch(e){console.error(e)}e.deferred||t.next()}},t.threadDelay)}}),c.Threads=function(e){return new u(e)},c.callback=function(e,t){if(c.isFunction(e)){var n=c.uid("cb");return window[n]=function(){return t||delete window[n],e.apply(null,arguments)},n}c.isString(e)&&"destroy"===e&&(n=t,delete window[n])},c.fn.checkList=function(n){function e(){var e,t;a||(e=r.filter(":checked"),t=r.not(":checked"),e.length<1&&o.removeAttr("checked"),e.length==r.length&&o.prop("checked",!0),n.change.call(i,e,t))}var n=c.extend({},{checkbox:".checkbox",masterCheckbox:".master-checkbox",check:function(){},uncheck:function(){},change:function(){}},n),i=this,r=i.find(n.checkbox),o=i.find(n.masterCheckbox),a=!1;return r.checked(function(){n.check.apply(i),e()},function(){n.uncheck.apply(i),e()}),o.checked(function(){a=!0,r.checked(!0),a=!1,e()},function(){a=!0,r.checked(!1),a=!1,e()}),e(),this},c.fn.switchClass=function(n,e){var e=e||"-",i=n.split(e)[0]+e,r=i.length;return this.each(function(){var e=c(this),t=c.map((e.attr("class")||"").split(" "),function(e){return e.slice(0,r)==i||""==e?null:e});t.push(n),e.attr("class",t.join(" "))})},c.fn.activateClass=function(e){return this.prevObject.removeClass(e),c(this).addClass(e)},c.extend(c,{hexToRgb:f,hexToHsb:function(e){return d(f(e))},rgbToHsb:d,hsbToRgb:p,rgbToHex:h,hsbToHex:function(e){return h(p(e))},fixHsb:function(e){return{h:Math.min(360,Math.max(0,e.h)),s:Math.min(100,Math.max(0,e.s)),b:Math.min(100,Math.max(0,e.b))}},fixRgb:function(e){return{r:Math.min(255,Math.max(0,e.r)),g:Math.min(255,Math.max(0,e.g)),b:Math.min(255,Math.max(0,e.b))}},fixHex:function(e){var t=6-e.length;if(3==t)for(var n,i=e.split(""),e="";n=i.shift();)e+=n+n;else for(;t--;)e="0"+e;return e.replace(/[^A-Fa-f0-9]/g,"0"),e}}),c.fn.htmlData=function(e,o){var a,o=void 0===o||o,s=new RegExp("^data-"+(e?e+"-":"")+"(.*)","i"),l={};return this.length<=0?{}:(c.each(this[0].attributes,function(e,t){if(t.specified&&(a=t.name.match(s))&&a[1])if(o){var n,i=a[1].split("-"),r=l;for(max=i.length-1,e=0;e<=max;e++)n=i[e],e==max?r[n]=t.value:(r[n]||(r[n]={}),r=r[n])}else l[a[1]]=t.value}),l)},c.fn.defineData=function(e,t){return void 0===this.data(e)&&this.data(e,t),this},c.deletes=function(n,e){c.each(e,function(e,t){delete n[t]})},c.fn.disabled=function(e){return void 0===e?this.is(":disabled")||this.hasClass("disabled"):this.prop("disabled",!!e).toggleClass("disabled",!!e)},c.fn.enabled=function(e){return void 0===e?!this.disabled():this.disabled(!e)},c.distinct=function(n){var e=c.unique;if(!(n.length<1)){if(n[0].nodeType)return e.apply(this,arguments);if("object"!=typeof n[0])return c.grep(n,function(e,t){return c.inArray(e,n)===t});var t=Math.random(),i=[];return c.each(n,function(e){n[e][t]||(i.push(n[e]),n[e][t]=!0)}),c.each(i,function(e){delete i[e][t]}),i}},c.fn.tagName=function(){return(this[0]||{}).tagName},c.create=function(e){return c(document.createElement(e))},c.fn.editable=function(e){return c.isUndefined(e)?"true"===this.prop("contenteditable"):(this.prop("contenteditable",e),!1===e&&this.removeAttr("contenteditable"),this)},c.download=function(e){return c("<iframe>").hide().appendTo("body").bind("load",function(){c(this).remove()}).attr("src",e)},c.ns=function(e,t){return e.split(" ").join(t+" ")+t},c.getPointerPosition=function(e){return e.type.match("touch")?{x:e.originalEvent.changedTouches[0].pageX,y:e.originalEvent.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}},i="___eventable",a=["on","off","fire"],c.extend(g.prototype,{createEvent:function(e){return this.events[e]=c.Callbacks(this.mode)},on:function(e,t){if(!e||!c.isFunction(t))return this;var n=this.fnList;(n[e]||(n[e]=[])).push(t);e=m(e);return(this.events[e]||this.createEvent(e)).add(t),this},off:function(e){if(!e)return this;var n=m(e),i=this.events[n];if(!i)return this;function r(e){c.each(e,function(e,t){i.remove(t)})}return n!==e?c.each(this.fnList,function(e,t){-1<e.indexOf(n)&&r(t)}):r(this.fnList[e]),this},fire:function(e){var t=this.events[e];if(t)return t.fire.apply(t,c.makeArray(arguments).slice(1)),this},destroy:function(){for(name in this.events)this.events[name].disable()}}),c.eventable=function(e,t){var n=e[i];return n&&"destroy"===t?(n.destroy(),c.deletes(e,a),delete e[i]):(n=e[i]=new g(t),e.on=c.proxy(n.on,n),e.off=c.proxy(n.off,n),e.fire=c.proxy(n.fire,n),e)},c.fn.checkList=function(n){function e(){var e,t;a||(e=r.filter(":checked"),t=r.not(":checked"),e.length<1&&o.removeAttr("checked"),e.length==r.length&&o.prop("checked",!0),n.change.call(i,e,t))}var n=c.extend({},{checkbox:".checkbox",masterCheckbox:".master-checkbox",check:function(){},uncheck:function(){},change:function(){}},n),i=this,r=i.find(n.checkbox),o=i.find(n.masterCheckbox),a=!1;return r.checked(function(){n.check.apply(i),e()},function(){n.uncheck.apply(i),e()}),o.checked(function(){a=!0,r.checked(!0),a=!1,e()},function(){a=!0,r.checked(!1),a=!1,e()}),e(),this},c.fn.checked=function(n,i){return arguments.length<1?this.is(":checked"):(this.each(function(e){var t=c(this);"boolean"!=typeof n?(t.is("input[type=checkbox]")||t.is("input[type=radio]"))&&t.off("change.checked").on("change.checked",function(){try{return(t.is(":checked")?n:i).apply(t)}catch(e){}}):t.attr("checked",n).trigger("change")}),this)},c.fn.locate=function(e){var n="data";return c.each(this[0].attributes,function(e,t){if(t.specified&&"$"===t.value)return n=t.name,!1}),this.find("["+n+"-"+e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()+"]")},s=["overflow","overflow-x","overflow-y"],c.fn.noscroll=function(e){return void 0===e&&(e=!0),this.each(function(){var n=c(this),i=n.data("noscroll");!i&&e&&(i={},c.each(s,function(e,t){i[t]=n.css(t)}),n.data("noscroll",i)),e?c.each(s,function(e,t){n.css(t,"hidden")}):i&&n.css(i)})},c.fn.visible=function(e){var t=c(this),n=c(window);if(!(t.length<1)){var i=n.scrollTop(),r=i+n.height(),n=t.offset().top,t=n+t.height();return(!0===e?n:t)<=r&&i<=(!0===e?t:n)}},c.fn.where=c.fn.filterBy=function(e,t,n){n=n||"=",t="[data-"+e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()+n+t+"]";return this.filter(t)},c.fn.checked=function(n,i){return arguments.length<1?this.is(":checked"):(this.each(function(e){var t=c(this);"boolean"!=typeof n?(t.is("input[type=checkbox]")||t.is("input[type=radio]"))&&t.off("change.checked").on("change.checked",function(){try{return(t.is(":checked")?n:i).apply(t)}catch(e){}}):t.attr("checked",n).trigger("change")}),this)},c.fn.selectAll=function(){return this.each(function(){this.select()})},c.fn.unselect=function(){return this.each(function(){var e=this.value;this.value+=" ",this.value=e})},c.fn.toObject=c.fn.serializeObject=function(){var n={};return c.each(c(this).serializeArray(),function(e,t){n.hasOwnProperty(t.name)?(c.isArray(n[t.name])||(n[t.name]=[n[t.name]]),n[t.name].push(t.value)):n[t.name]=t.value}),n},c.fn.toJSON=c.fn.serializeJSON=function(){return JSON.stringify(c(this).serializeObject())},c.sanitizeHTML=function(e){return c(c.parseHTML(e,document,!0)).toHTML()},c.toHTML=function(e){return c("<div>").html(e).html()},c.fn.toHTML=function(){return c.toHTML(this.clone())},c.toXHTML=function(e,t){var n=e.innerHTML?String(e.innerHTML):e,i=n.match(/(<.+[^>])/g);if(i)for(var r=0;r<i.length;r+=1){var o,a=i[r];if(i[r]=i[r].replace(/([<|<\/].+?\w+).+[^>]/,function(e){return e}),o=i[r].match(/\=[a-zA-Z\.\:\[\]_\(\)\&\$\%#\@\!0-9\/]+[?\s+|?>]/g))for(var s=0,l=o.length;s<l;)i[r]=i[r].replace(o[s],o[s].replace(/(\=)([a-zA-Z\.\:\[\]_\(\)\&\$\%#\@\!0-9\/]+)?([\s+|?>])/g,function(){var e=Array.prototype.slice.call(arguments);return'="'+(t?e[2]:e[2].toLowerCase())+'"'+e[3]})),s+=1;n=n.replace(a,i[r])}return n},c.fn.xhtml=function(){return c.IE?c.toXHTML(this[0]):this.html()},c.buildHTML=function(e,t){if(e instanceof c)return e;var n,i=document;window.CloudFlare&&((n=c.buildHTML.iframe)&&n.contentDocument||((n=c.buildHTML.iframe=document.createElement("iframe")).style.display="none",document.body.appendChild(n)),i=n.contentDocument);var e=c.trim(e),r=[],e=c.buildFragment([e],i,r),o=c.merge([],e.childNodes);if(!t&&0<r.length){var a=i.createElement("script");a.text="try{"+c.callback(function(){c(r).remove()})+"();}catch(e){}";for(var s,l,u=o.length-1;(s=o[u--])&&("SCRIPT"===s.nodeName?l=o.push(a):1===s.nodeType&&(l=s.appendChild(a)),!l););l||o.push(a),r.push(a)}return c(o)},c.intersects=function(e,t){return(t=c.isArray(t)?{top:t.y,left:t.x,bottom:t.y,right:t.x}:t).left<=e.right&&e.left<=t.right&&t.top<=e.bottom&&e.top<=t.bottom},c.fn.intersectsWith=function(e,t,n,i){var r=this.offset(),r={top:r.top,left:r.left,bottom:r.top+(sourceHeight=this.height()),right:r.left+(sourceWidth=this.width()),width:sourceWidth,height:sourceHeight},i={top:e,left:t,bottom:e+(i=i||0),right:t+(n=n||0),width:n,height:i};return!!c.intersects(r,i)&&{reference:r,subject:i}},c.isDeferred=function(e){return e&&c.isFunction(e.always)},c.isNumeric=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},c.rotateNumber=function(e,t,n,i){return(e+=i=void 0===i?0:i)<t?e+=n+1:n<e&&(e-=n+1),e},c.regExpEscape=function(e){return e.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},c.remap=function(n,i,e){return c.each(e,function(e,t){n[t]=i[t]}),obj},(l=c.Ajax=function(e){e.autostart=!1;var t=c.ajax(e);return"function"==typeof t.send&&l.queue.addDeferred(function(e){t.send(),setTimeout(e.resolve,l.interval)}),t}).queue=c.Threads({threadLimit:1}),l.interval=1200,l.interval=0,function(){c.fn.addTransitoryClass=function(e,t){var n=this.addClass(e);return setTimeout(function(){n.removeClass(e)},t||1),this};function n(e,t,n){var i=this;return setTimeout(function(){i[e+"Class"](t)},n||50),this}c.fn.addClassAfter=function(e,t){return n.call(this,"add",e,t)},c.fn.removeClassAfter=function(e,t){return n.call(this,"remove",e,t)};function i(e,t,n,i){var r=e?"-in":"-out";return this.addTransitoryClass(t.replace(/ /g,r+" ")+r,n||1e3)[(e?"add":"remove")+"ClassAfter"](t),i&&setTimeout(i,n),this}c.fn.addTransitionClass=function(e,t,n){return i.call(this,!0,e,t,n)},c.fn.removeTransitionClass=function(e,t,n){return i.call(this,!1,e,t,n)}}(),c.trimSeparators=function(e,t,n){return e=e.replace(new RegExp("^["+t+"\\s]+|["+t+",\\s]+$","g"),"").replace(new RegExp(t+"["+t+"\\s]*"+t,"g"),t).replace(new RegExp("[\\s]+"+t,"g"),t).replace(new RegExp(t+"[\\s]+","g"),t),e=n?c.distinct(e.split(t)).join(t):e},c.uid=function(e,t){return(e||"")+Math.random().toString().replace(".","")+(t||"")}}),KTVendors.plugin("uri",function(e){e.isUrl=function(e){return/^(http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/.test(e)};function h(e){"use strict";function s(e){return e=(e=decodeURIComponent(e)).replace("+"," ")}function a(e,t){for(var n,i,r,o=[],a=0;a<u.length;a++)n=u[a],i=s(n[0])===s(e),r=s(n[1])===s(t),(1!==arguments.length||i)&&(2!==arguments.length||i||r)||o.push(n);return u=o,this}function l(e,t,n){return 3===arguments.length&&-1!==n?(n=Math.min(n,u.length),u.splice(n,0,[e,t])):0<arguments.length&&u.push([e,t]),this}var u=function(e){var t,n,i,r,o,a=[];if(null==e||""===e)return a;for(n=(e=0===e.indexOf("?")?e.substring(1):e).toString().split(/[&;]/),t=0;t<n.length;t++)r=(o=(i=n[t]).split("="))[0],o=-1===i.indexOf("=")?null:null===o[1]?"":o[1],a.push([r,o]);return a}(e);return{getParamValue:function(e){for(var t,n=0;n<u.length;n++)if(t=u[n],s(e)===s(t[0]))return t[1]},getParamValues:function(e){for(var t,n=[],i=0;i<u.length;i++)t=u[i],s(e)===s(t[0])&&n.push(t[1]);return n},deleteParam:a,addParam:l,replaceParam:function(e,t,n){var i,r,o=-1;if(3===arguments.length){for(i=0;i<u.length;i++)if(r=u[i],s(r[0])===s(e)&&decodeURIComponent(r[1])===s(n)){o=i;break}a(e,n).addParam(e,t,o)}else{for(i=0;i<u.length;i++)if(r=u[i],s(r[0])===s(e)){o=i;break}a(e),l(e,t,o)}return this},toString:function(){for(var e,t="",n=0;n<u.length;n++)e=u[n],0<t.length&&(t+="&"),null===e[1]?t+=e[0]:t+=e.join("=");return 0<t.length?"?"+t:t}}}function m(n){"use strict";function i(e){return void 0!==e&&(d.protocol=e),d.protocol}function r(e){return null===(p=void 0!==e?e:p)?-1!==d.source.indexOf("//"):p}function o(e){return void 0!==e&&(d.userInfo=e),d.userInfo}function a(e){return void 0!==e&&(d.host=e),d.host}function s(e){return void 0!==e&&(d.port=e),d.port}function l(e){return void 0!==e&&(d.path=e),d.path}function u(e){return t=void 0!==e?new h(e):t}function c(e){return void 0!==e&&(d.anchor=e),d.anchor}function e(){function e(e){return null!==e&&""!==e}var t="";return e(i())?(t+=i(),i().indexOf(":")!==i().length-1&&(t+=":"),t+="//"):r()&&e(a())&&(t+="//"),e(o())&&e(a())&&(t+=o(),o().indexOf("@")!==o().length-1&&(t+="@")),e(a())&&(t+=a(),e(s())&&(t+=":"+s())),e(l())?t+=l():e(a())&&(e(u().toString())||e(c()))&&(t+="/"),e(u().toString())&&(0!==u().toString().indexOf("?")&&(t+="?"),t+=u().toString()),e(c())&&(0!==c().indexOf("#")&&(t+="#"),t+=c()),t}var f=/[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&\/\/=]*)?/gi,d=function(e){for(var t=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],i="queryKey",n=/(?:^|&)([^&=]*)=?([^&]*)/g,r=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(e),o={},a=14;a--;)o[t[a]]=r[a]||"";return o[i]={},o[t[12]].replace(n,function(e,t,n){t&&(o[i][t]=n)}),o}(n||""),t=new h(d.query),p=null;return{protocol:i,hasAuthorityPrefix:r,userInfo:o,host:a,port:s,path:l,query:u,anchor:c,setProtocol:function(e){return i(e),this},setHasAuthorityPrefix:function(e){return r(e),this},setUserInfo:function(e){return o(e),this},setHost:function(e){return a(e),this},setPort:function(e){return s(e),this},setPath:function(e){return l(e),this},setQuery:function(e){return u(e),this},setAnchor:function(e){return c(e),this},getQueryParamValue:function(e){return u().getParamValue(e)},getQueryParamValues:function(e){return u().getParamValues(e)},deleteQueryParam:function(e,t){return 2===arguments.length?u().deleteParam(e,t):u().deleteParam(e),this},addQueryParam:function(e,t,n){return 3===arguments.length?u().addParam(e,t,n):u().addParam(e,t),this},replaceQueryParam:function(e,t,n){return 3===arguments.length?u().replaceParam(e,t,n):u().replaceParam(e,t),this},extract:function(e){var t=n.match(f)||[];return void 0===e?t:t[e]||""},toPath:function(e){if(void 0===e)return d.path;if("/"==e.substring(0,1))return d.path=e;var t,n=d.path.split("/"),i=e.split("/");for(""===n.slice(-1)[0]&&n.pop();t=i.shift();)switch(t){case"..":1<n.length&&n.pop();break;case".":break;default:n.push(t)}return d.path=n.join("/"),this},toString:e,clone:function(){return new m(e())}}}e.uri=function(e){return new m(e)}}),KTVendors.plugin("mvc",function($){function n1a(e,t,n){return void 0!==e[t]?e[t]:n&&(e[t]={})}function o1a(e){var t=typeof e;return e&&("function"==t||"object"==t)}var p1a,m1a,q1a,bca,cca,dca,eca,qca,uca,Vca,Wca,Xca,Yca,Zca,$ca,a2a,c2a;function _ca(e,t){return e.concat(Wca(t))}function b2a(e,r,t){for(var n in t=t||e,e)t[n]=Xca(e[n])&&Xca(r[n])&&a2a.test(e[n])?function(n,i){return function(){var e,t=this._super;return this._super=r[n],e=i.apply(this,arguments),this._super=t,e}}(n,e[n]):e[n]}m1a={undHash:/_|-/,colons:/::/,words:/([A-Z]+)([A-Z][a-z])/g,lowUp:/([a-z\d])([A-Z])/g,dash:/([a-z\d])([A-Z])/g,replacer:/\{([^\}]+)\}/g,dot:/\./},q1a=$.String=$.extend($.String||{},{getObject:p1a=function(e,t,n){var i,r,o,a=e?e.split(m1a.dot):[],s=a.length,l=0;if(t=$.isArray(t)?t:[t||window],0==s)return t[0];for(;i=t[l++];){for(o=0;o<s-1&&o1a(i);o++)i=n1a(i,a[o],n);if(o1a(i)&&void 0!==(r=n1a(i,a[o],n)))return!1===n&&delete i[a[o]],r}},capitalize:function(e,t){return e.charAt(0).toUpperCase()+e.substr(1)},camelize:function(e){return(e=q1a.classize(e)).charAt(0).toLowerCase()+e.substr(1)},classize:function(e,t){for(var n=e.split(m1a.undHash),i=0;i<n.length;i++)n[i]=q1a.capitalize(n[i]);return n.join(t||"")},niceName:function(e){return q1a.classize(e," ")},underscore:function(e){return e.replace(m1a.colons,"/").replace(m1a.words,"$1_$2").replace(m1a.lowUp,"$1_$2").replace(m1a.dash,"_").toLowerCase()},sub:function(e,n,i){var r=[];return r.push(e.replace(m1a.replacer,function(e,t){e=p1a(e,n,"boolean"==typeof i?!i:i)||p1a(t,n,"boolean"==typeof i?!i:i),t=typeof e;return"object"!=t&&"function"!=t||null===t?""+e:(r.push(e),"")})),r.length<=1?r[0]:r},_regs:m1a}),$.extend($,q1a),$.String.rsplit=function(e,t){for(var n,i=t.exec(e),r=[];null!==i;)n=i.index,t.lastIndex,0!==n&&(r.push(e.substring(0,n)),e=e.slice(n)),r.push(i[0]),e=e.slice(i[0].length),i=t.exec(e);return""!==e&&r.push(e),r},bca=/^\d+$/,cca=/([^\[\]]+)|(\[\])/g,dca=/\+/g,eca=/([^?#]*)(#.*)?$/,$.String=$.extend($.String||{},{deparam:function(e){if(!e||!eca.test(e))return{};for(var t={},n=e.split("&"),i=0;i<n.length;i++){var r=t,o=n[i].split("=");2!=o.length&&(o=[o[0],o.slice(1).join("=")]);for(var a=decodeURIComponent(o[0].replace(dca," ")),o=decodeURIComponent(o[1].replace(dca," ")),s=a.match(cca),l=0;l<s.length-1;l++){var u=s[l];r[u]||(r[u]=bca.test(s[l+1])||"[]"==s[l+1]?[]:{}),r=r[u]}lastPart=s[s.length-1],"[]"==lastPart?r.push(o):r[lastPart]=o}return t}}),qca=$.cleanData,$.cleanData=function(e){for(var t,n=0;void 0!==(t=e[n]);n++)$(t).triggerHandler("destroyed");qca(e)},uca=$.fn._closest=$.fn.closest,$.fn.closest=function(n,e){if(n instanceof $||$.isElement(n))return uca.call(this,arguments);var t,i,r,o,a={},s=!0,l="string"==typeof n?[n]:n;if($.each(l,function(e,t){if(0==t.indexOf(">")){if(-1!=t.indexOf(" "))throw" closest does not work with > followed by spaces!";a[l[e]=t.substr(1)]=t,"string"==typeof n&&(n=t.substr(1)),s=!1}}),t=uca.call(this,n,e),s)return t;for(r=0;r<t.length;)o=(i=t[r]).selector,void 0===a[o]||(i.selector=a[o],a[o]=!1,"string"==typeof i.selector&&i.elem.parentNode===e)?r++:t.splice(r,1);return t},$.cookie=function(e,t,n){if(void 0===t){var i=null;if(document.cookie&&""!=document.cookie)for(var r=document.cookie.split(";"),o=0;o<r.length;o++){var a=jQuery.trim(r[o]);if(a.substring(0,e.length+1)==e+"="){i=decodeURIComponent(a.substring(e.length+1));break}}if(jQuery.evalJSON&&i&&i.match(/^\s*\{/))try{i=jQuery.evalJSON(i)}catch(e){}return i}n=n||{},null===t&&(t="",n.expires=-1),"object"==typeof t&&jQuery.toJSON&&(t=jQuery.toJSON(t));var s="";n.expires&&("number"==typeof n.expires||n.expires.toUTCString)&&("number"==typeof n.expires?(u=new Date).setTime(u.getTime()+24*n.expires*60*60*1e3):u=n.expires,s="; expires="+u.toUTCString());var l=n.path?"; path="+n.path:"",u=n.domain?"; domain="+n.domain:"",n=n.secure?"; secure":"";document.cookie=[e,"=",encodeURIComponent(t),s,l,u,n].join("")},Vca=!1,Wca=$.makeArray,Xca=$.isFunction,Yca=$.isArray,Zca=$.extend,$ca=$.String.getObject,a2a=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/,c2a="prototype",clss=$.Class=function(){arguments.length&&clss.extend.apply(clss,arguments)},Zca(clss,{proxy:function(o){var a,s=Wca(arguments);return o=s.shift(),Yca(o)||(o=[o]),a=this,function(){for(var e,t,n=_ca(s,arguments),i=o.length,r=0;r<i;r++)(t=o[r])&&((e="string"==typeof t)&&a._set_called&&(a.called=t),n=(e?a[t]:t).apply(a,n||[]),r<i-1&&(n=!Yca(n)||n._use_call?[n]:n));return n}},newInstance:function(){var e,t=this.rawInstance();return t.setup&&(e=t.setup.apply(t,arguments)),t.init&&t.init.apply(t,Yca(e)?e:arguments),t},setup:function(e,t){return this.defaults=Zca(!0,{},e.defaults,this.defaults),arguments},rawInstance:function(){Vca=!0;var e=new this;return Vca=!1,e},extend:function(e,t,n){function i(){if(!Vca)return this.constructor!==i&&arguments.length?arguments.callee.extend.apply(arguments.callee,arguments):this.Class.newInstance.apply(this.Class,arguments)}"string"!=typeof e&&(n=t,t=e,e=null),n||(n=t,t=null),n=n||{};var r,o,a,s=this[c2a];for(r in Vca=!0,o=new this,Vca=!1,b2a(n,s,o),this)this.hasOwnProperty(r)&&(i[r]=this[r]);b2a(t,this,i),e&&(t&&t.root&&(a=t.root,$.isString(a)&&(a=$ca(a,window,!0))),l=(s=e.split(/\./)).pop(),s=$ca(s.join("."),a||window,!0),Zca(!0,i,(a=s)[l]),s[l]=i),Zca(i,{prototype:o,namespace:a,shortName:l,constructor:i,fullName:e});var l=(i[c2a].Class=i[c2a].constructor=i).setup.apply(i,_ca([this],arguments));return i.init&&i.init.apply(i,l||_ca([this],arguments)),i}}),clss.callback=clss[c2a].callback=clss[c2a].proxy=clss.proxy,function(){function s(e,t,n,i,r){return i?function(e,t,n,i,r){0===t.indexOf(">")&&(t=(e.data("directSelector")+" "||"")+t);var o=e.delegate&&e.undelegate?e:$(C(e)?[e]:e);return r?o.delegate(t,n,r,i):o.delegate(t,n,i),function(){o.undelegate(t,n,i),o=e=n=i=t=null}}(e,i,t,n,r):(a=t,s=n,r=r,u=(o=e).bind&&o.unbind?o:$(C(o)?[o]:o),0===a.indexOf(">")&&(a=a.substr(1),l=function(e){e.target===o&&s.apply(this,arguments)}),r?u.bind(a,r,l||s):u.bind(a,l||s),function(){u.unbind(a,l||s),o=a=s=l=null});var o,a,s,l,u}function l(e,t){var n="string"==typeof t?e[t]:t;return x(n)&&C(n[1])&&(n=n[1]),function(){return e.called=t,n.apply(e,[this.nodeName?$(this):this].concat(i.call(arguments,0)))}}function b(e){return u.underscore(e.replace($.globalNamespace+".","").replace(n,"_").replace(r,""))}function w(e,t){return $.data(e,"controllers",t)}var _=$.makeArray,x=$.isArray,C=$.isFunction,T=$.isString,m=$.extend,u=$.String,g=$.each,t=u.getObject,k="prototype",v="constructor",i=Array[k].slice,n=/\./g,r=/_?controllers?/gi,o=/^\S(.*)\s(.*)/,c=/\{([^\}]+)\}/g,f=/\{([^\.]+[\.][^\.]+)\}/g,d=/^(?:(.*?)\s)?([\w\.\:>]+)$/,a=$.globalNamespace+".Controller";$.Controller=function(e){var t=_(arguments),n={root:a},t=2<t.length?(n=$.extend(n,t[1]),t[2]):t[1];return n.namespace&&(e=n.namespace+"."+e),$.Controller.Class(e,n,t)};var E=a+".Class";$.Class(E,{setup:function(e,t){if(this._super.apply(this,arguments),this.shortName&&this.fullName!=E){for(var n=this.elements||[],i=0,r=this.defaults;element=n[i++];){var o=element.indexOf("{"),a=element.indexOf("}"),s=(element.length,element.slice(0,o)),l=element.slice(a+1),u=element.slice(o+1,a).split("|"),c=0,a=s.match(/^\^(\S*)\s(.*)/),f="";for(a&&(f=a[1]+"-",s=a[2]);t=u[c++];){var d="{"+$.camelize(f+t)+"}";$.has(r,d)||(r[d]=s+t+l)}}this._fullName=b(this.fullName),this._shortName=b(this.shortName);var p,h,m=this;T(this.pluginName)&&(h=this._fullName,v=this.pluginName,$.fn[v]||($.fn[v]=function(n){var i=_(arguments);if($.isString(n)&&"controller"===n){var e=w(this[0]);return e&&e[h]}return this.each(function(){var e=w(this),t=e&&e[h];t?$.isString(n)?(e=t[n],$.isFunction(e)&&e.apply(t,i.slice(1))):t.update.apply(t,i):m.newInstance.apply(m,[this].concat(i))})}));var g,v=_(arguments),y=this[k],v=v[3<v.length?3:2];for(p in C(v)&&(this.protoFactory=v,y=this.protoFactory.call(this,null)),this.actions={},y)"constructor"!=p&&this._isAction(p)&&(g=y[p],(C(g)||x(g)&&C(g[1]))&&(this.actions[p]=this._action(p)));$.module("$:/Controllers/"+this.fullName).resolve(this)}},hookup:function(e){return new this(e)},_isAction:function(e){return!!o.test(e)||(-1<$.inArray(e,this.listensTo)||$.event.special[e]||p[e])},_action:function(e,n){if(c.lastIndex=0,!n&&c.test(e))return null;var i,r,t=e=e.replace("{self} ","");n&&(a=!1,f.test(e)&&(r="",t=e.replace(f,function(e,t){t=t.split(".");return i=n["{"+t[0]+"}"]||{},r=$.isControllerInstance(i)?(i[t[1]]||{}).selector:r}).match(d),a=!!r,t=[i.element].concat(t||[])),a||(t=u.sub(e,[n,window])));var o=x(t),a=(o?t[1]:t).match(d),e=a[2];return{processor:p[e]||h,parts:a,delegate:o?t[0]:void 0}},processors:{},listensTo:[],defaults:{},hostname:"parent"},{setup:function(e,t){var n,i=this,r=i[v],o=(i[k],r._fullName);i.instanceId=$.uid(o+"_");var a,s,l,u,c=i.options=m(!0,{},r.defaults,r.defaultOptions,t),f=i.element=$(e);for(a in r.protoFactory&&(n=r.protoFactory.apply(r,[i,c,f]),m(!0,i,n)),(w(e)||w(e,{}))[o]=i,f.data("directSelector")||(d=$.uid("DS"),f.addClass(d).data("directSelector","."+d)),i.selectors={},c)a.match(/^\{.+\}$/)&&(s=a.replace(/^\{|\}$/g,""),l=c[a],T(l)?(u=i[s],i[s]=i.selectors[s]=function(t,i,e){i=/^(\.|\#)$/.test(i)?i+e:i;function r(e){var n=(r.baseElement||t.element).find(i);return $.isString(e)&&(n=n.filter(e)),$.isPlainObject(e)&&$.each(e,function(e,t){n=n.filterBy(e,t)}),n}return r.selector=i,r.css=function(){var t,e,n=r.cssRule;return n||(t=f.data("directSelector"),e=$.map(i.split(","),function(e){return t+" "+e}),(n=r.cssRule=$.cssRule(e)).important=!0),arguments.length?n.css.apply(n,arguments):n},r.inside=function(e){return $(e).find(i)},r.of=function(e){return $(e).parents(i).eq(0)},r.under=function(e){var t=[];return r().each(function(){$(this).parents().filter(e).length&&t.push(this)}),$(t)},$.isPlainObject(u)&&$.extend(r,u),r}(i,l,s)):i[s]=l);var d=c.view,p=i.view;i.view=function(){return p.apply(this,arguments)},g(d||{},function(n,e){i.view[n]=function(e){var t=_(arguments);return $.isBoolean(e)?t=t.slice(1):e=!1,i.view.apply(i,[e,n].concat(t))}}),$.extend(i,c.controller),i.pluginInstances={},i.called="init",i._bind();var h=i.init||$.noop;return i.init=function(){return i.init=h,result=h.apply(i,arguments),i.trigger("init."+r.fullName.toLowerCase(),[i]),result},[f,c].concat(_(arguments).slice(2))},on:function(e){var t=_(arguments),n=this.element,i=t.length;return 2==i?this._binder(n,e,t[1]):3==i&&T(t[1])?this._binder(n,e,t[2],t[1]):this._binder(t[1],e,t[2])},_bind:function(){var i=this,r=i[v],o=r.actions,a=i._bindings=[],s=i.element;g(o||{},function(e,t){var n;o.hasOwnProperty(e)&&(n=r.actions[e]||r._action(e,i.options),$.isControllerInstance(n.delegate)&&(n.delegate=n.delegate.element),a.push(n.processor(n.delegate||s,n.parts[2],n.parts[1],e,i)))});var t=l(this,"destroy");return s.bind("destroyed",t),a.push(function(e){$(e).unbind("destroyed",t)}),a.length},_binder:function(e,t,n,i){return"string"==typeof n&&(n=l(this,n)),this._bindings.push(s(e,t,n,i)),this._bindings.length},_unbind:function(){var n=this.element[0];g(this._bindings,function(e,t){t(n)}),this._bindings=[]},trigger:function(e){var t=this.element;if(t){var n=$.Event(e);return t.trigger.apply(t,[n].concat($.makeArray(arguments).slice(1))),n}},delegate:function(e,t,n,i){return"string"==typeof e&&(i=n,n=t,t=e,e=this.element),this._binder(e,n,i,t)},update:function(e){m(this.options,e),this._unbind(),this._bind()},destroy:function(){if(!this._destroyed){var e=this[v]._fullName;for(pname in this.pluginInstances)this.removePlugin(pname);this._destroyed=!0,this.element.removeClass(e),this._unbind(),delete this._actions,delete this.element.data("controllers")[e],$(this).triggerHandler("destroyed"),this.element=$()}},find:function(e){return this.element.find(e)},view:function(){var e,t=_(arguments),n=t,i=!1,r=this[v].component||$,o=this.options.view||{};return"boolean"==typeof t[0]&&(i=t[0],n=t.slice(1)),null==(n[0]=o[n[0]])?i?"":$(""):(e=r.View.apply(r,n),i?e:$($.parseHTML($.trim(e))))},getPlugin:function(e){return this.pluginInstances[e]},addSubscriber:function(e){var e=$.isArray(e)?e:[e||{}],n=this,i=this.Class.hostname,r={};return r["{"+i+"}"]=n,$.map(e,function(e,t){return!!$.isControllerInstance(e)&&(e.options[i]===this?e:(e[i]=n,e.update(r)))}),e},addPlugin:function(e,t,n){if(e){(t||n)&&!$.isPlainObject(t)||(n=t,t=[this.Class.root,this.Class.fullName,$.String.capitalize(e)].join(".")),$.isString(t)&&(t=$.getController(t));var i=$.isControllerInstance(t);if(C(t)||i){var r=(this.Class.pluginExtendsInstance?this.options:this.options.plugin||{})[e];n=$.extend(!0,{element:this.element},n,r);r=i?"instance":$.isController(t)?"controller":"function";this.trigger("addPlugin",[e,t,n,r]);var o,a=this.Class.hostname;switch(n["{"+a+"}"]=this,r){case"instance":(o=t).update(n),t[a]=this;break;case"controller":o=n.element.addController(t,n);break;case"function":o=t(this,n)}if(o)return this.pluginInstances[e]=o,this.Class.pluginExtendsInstance&&(this[e]=o),"function"!=r&&((i={})["{"+e+"}"]=o,this.update(i)),this.trigger("registerPlugin",[e,o,n,r]),o}}},removePlugin:function(e){var t=this.getPlugin(e);if(t)return this.trigger("removePlugin",[e,t]),delete this.pluginInstances[e],$.isFunction(t.destroy)?t.destroy():null},invokePlugin:function(e,t,n){var i=this.getPlugin(e);if(i&&$.isFunction(i[t]))return this.trigger("invokePlugin",[e,i,n]),i[t].apply(this,n)},getMessageGroup:function(){var e=$.isFunction(this.messageGroup)?this.messageGroup():this.element.find("[data-message-group]");return e=e.length<1?$("<div data-message-group></div>").prependTo(this.element):e},setMessage:function(e,t){var n,i,r={type:"warning",message:"",parent:this.getMessageGroup(),element:$('<div class="o-alert o-alert--dismissible"><button type="button" class="o-alert__close" data-bs-dismiss="alert">×</button></div>')},o={},a=$.isDeferred(e),o=$.isPlainObject(e)&&!a?e:{message:e,type:t||"warning"},s=$.extend({},r,o),l=s.element;return $.isDeferred(e)?(n=arguments.callee,i=this,e.done(function(e,t){s.message=e,s.type=t||"warning",n.call(i,s),l.show()})):(l.addClass("o-alert--"+s.type).append(s.message),$("html").has(l).length<1&&l.appendTo(s.parent)),l},clearMessage:function(){this.getMessageGroup().empty()},_set_called:!0});var p=$.Controller.Class.processors,h=function(e,t,n,i,r){var o,a=r[i];return x(a)&&C(a[1])&&(o=a[0]),s(e,t,l(r,i),n,o)};g("change click contextmenu dblclick keydown keyup keypress mousedown mousemove mouseout mouseover mouseup reset resize scroll select submit focusin focusout mouseenter mouseleave".split(" "),function(e,t){p[t]=h});function y(e){return e.replace("$.Controller",a)}function S(e){if(T(e)&&(e=y(e),e=t(e)||t(a+"."+e)),A(e))return e}function A(e){return C(e)&&e.hasOwnProperty("_fullName")}function D(e){return $.map(e,function(e){return(x(e)?D:S)(e)})}$.getController=S,$.isController=function(e){return!!S(e)},$.isControllerInstance=function(e){return e&&e[v]&&A(e[v])},$.isControllerOf=function(e,t){if(!t)return!1;x(t)||(t=[t]);for(var n=0;n<t.length;n++)if(e instanceof S(t[n]))return!0;return!1},$.fn.extend({controllers:function(){var i=D(_(arguments)),r=[];return this.each(function(){var n=$.data(this,"controllers");g(n||{},function(e,t){n.hasOwnProperty(e)&&(i.length&&!$.isControllerOf(t,i)||r.push(t))})}),r},controller:function(e,t){return void 0===t?this.controllers(e)[0]:(this.addController.apply(this,arguments),this)},hasController:function(e){e=(S(e)||{})._fullName||(T(e)?b(y(e)):"");return!!e&&($(this).data("controllers")||{}).hasOwnProperty(e)},addController:function(t,n,i){var r=S(t);if(r){var o=[];return this.each(function(){var e;1===this.nodeType&&"SCRIPT"!=this.nodeName&&((e=$(this).controller(t))?o.push(e):(e=new r(this,n),C(i)&&i.apply(e,[$(this),e]),o.push(e)))}),1<o.length?o:o[0]}},removeController:function(t){return this.each(function(){for(var e=$(this).controllers(t);e.length;)e.shift().destroy()}),this},addControllerWhenAvailable:function(e){var t=this,n=arguments,i=$.Deferred();return $.isController(e)&&(e=e.fullName),T(e)?($.module("$:/Controllers/"+e).pipe(function(){var e=t.addController.apply(t,n);i.resolveWith(e,[t,e])},i.reject,i.fail),i):i.reject()},implement:function(){return this.addController.apply(this,arguments),this}}),function(){for(var e,t=["is","find"],n={};e=t.shift();)n[e]=$.fn[e],$.fn[e]=function(t){return function(e){return n[t].apply(this,(e||{}).hasOwnProperty("of")?[e.selector]:arguments)}}(e)}()}(),function(){function f(e){return e.replace(/^\/\//,"").replace(/[\/\.]/g,"_")}function d(e,t){if(!e.match(/[^\s]/))throw"$.View ERROR: There is no template or an empty template at "+t}var l=$.makeArray,n=1,p=$.View=function(e,r,o,a){"function"==typeof o&&(a=o,o=void 0);var t=c(r);if(t.length){var s=$.Deferred();return t.push(i(e,!0)),$.when.apply($,t).then(function(e){var t=l(arguments),n=t.pop()[0];if(u(r))r=h(e);else for(var i in r)u(r[i])&&(r[i]=h(t.shift()));n=n(r,o),s.resolve(n),a&&a(n)}),s.promise()}var n,t="function"==typeof a,s=i(e,t);return t?(n=s).done(function(e){a(e(r,o))}):s.done(function(e){n=e(r,o)}),n},i=function(e,t){return $.ajax({url:e,dataType:"view",async:t})},u=function(e){return e&&$.isFunction(e.always)},c=function(e){var t,n=[];if(u(e))return[e];for(t in e)u(e[t])&&n.push(e[t]);return n},h=function(e){return $.isArray(e)&&3===e.length&&"success"===e[1]?e[0]:e};$.ajaxTransport("view",function(e,n){function i(e){return e=u.renderer(o,e),p.cache&&(p.cached[o]=e),{view:e}}var r,o,a,t,s=n.url,l=s.match(/\.[\w\d]+$/);(l=(r=document.getElementById(s))?"."+r.type.match(/\/(x\-)?(.+)/)[2]:l)||(l=p.ext,s+=p.ext),o=f(s),s.match(/^\/\//)&&(t=s.substr(2),s="undefined"==typeof steal?"/"+t:steal.root.mapJoin(t)+"");var u=p.types[l],c=$.template()[n.url];return{send:function(e,t){return c?(u=p.types["."+c.type],t(200,"success",i(c.content))):p.cached[o]?t(200,"success",{view:p.cached[o]}):void(r?t(200,"success",i(r.innerHTML)):a=$.ajax({async:n.async,url:s,dataType:"text",error:function(){d("",s),t(404)},success:function(e){d(e,s),t(200,"success",i(e))}}))},abort:function(){a&&a.abort()}}}),$.extend(p,{hookups:{},hookup:function(e){var t=++n;return p.hookups[t]=e,t},cached:{},cache:!0,register:function(e){this.types["."+e.suffix]=e,window.steal&&steal.type(e.suffix+" view js",function(e,t,n){var i=p.types["."+e.type],r=f(e.rootSrc+"");e.text=i.script(r,e.text),t()})},types:{},ext:".ejs",registerScript:function(e,t,n){return"$.View.preload('"+t+"',"+p.types["."+e].script(t,n)+");"},preload:function(e,n){p.cached[e]=function(e,t){return n.call(e,e,t)}}}),window.steal&&steal.type("view js",function(e,t,n){var i=p.types["."+e.type],r=f(e.rootSrc+"");e.text="steal('"+(i.plugin||"jquery/view/"+e.type)+"').then(function($){$.View.preload('"+r+"',"+e.text+");\n})",t()});var a={val:!0,text:!0},r=function(r){var o=$.fn[r];$.fn[r]=function(){var t,e,n=l(arguments),i=this;if(u(n[0]))return n[0].done(function(e){s.call(i,[e],o)}),this;if(m(n)){if(e=v(n))return t=n[e],n[e]=function(e){s.call(i,[e],o),t.call(i,e)},p.apply(p,n),this;if(e=p.apply(p,n),u(e))return e.done(function(e){s.call(i,[e],o)}),this;n=[e]}return a[r]?o.apply(this,n):s.call(this,n,o)}},s=function(e,t){var n,i;for(i in p.hookups)break;return i&&e[0]&&g(e[0])&&(n=p.hookups,p.hookups={},e[0]=$(e[0])),t=t.apply(this,e),n&&y(e[0],n),t},m=function(e){var t=typeof e[1];return"string"==typeof e[0]&&("object"==t||"function"==t)&&!o(e[1])},o=function(e){return e.nodeType||e.jquery},g=function(e){return!!o(e)||"string"==typeof e&&("<"===(e=$.trim(e)).substr(0,1)&&">"===e.substr(e.length-1,1)&&3<=e.length)},v=function(e){return"function"==typeof e[3]?3:"function"==typeof e[2]&&2},y=function(e,t){for(var n,i,r,o=0,a=(n=(e=e.filter(function(){return 3!=this.nodeType})).add("[data-view-id]",e)).length;o<a;o++)n[o].getAttribute&&(i=n[o].getAttribute("data-view-id"))&&(r=t[i])&&(r(n[o],i),delete t[i],n[o].removeAttribute("data-view-id"));$.extend(p.hookups,t)};$.fn.hookup=function(){var e=p.hookups;return p.hookups={},y(this,e),this},$.each(["prepend","append","after","before","text","html","replaceWith","val"],function(e,t){r(t)})}(),function(){var myEval=function(script){eval(script)},rSplit=$.String.rsplit,extend=$.extend,isArray=$.isArray,returnReg=/\r\n/g,retReg=/\r/g,newReg=/\n/g,nReg=/\n/,slashReg=/\\/g,quoteReg=/"/g,singleQuoteReg=/'/g,tabReg=/\t/g,leftBracket=/\{/g,rightBracket=/\}/g,quickFunc=/\s*\(([\$\w]+)\)\s*->([^\n]*)/,clean=function(e){return e.replace(slashReg,"\\\\").replace(newReg,"\\n").replace(quoteReg,'\\"').replace(tabReg,"\\t")},escapeHTML=function(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(quoteReg,""").replace(singleQuoteReg,"'")},$View=$.View,bracketNum=function(e){var t=e.match(leftBracket),e=e.match(rightBracket);return(t?t.length:0)-(e?e.length:0)},EJS=function(e){if(this.constructor!=EJS){var n=new EJS(e);return function(e,t){return n.render(e,t)}}"function"!=typeof e?(extend(this,EJS.options,e),this.template=compile(this.text,this.type,this.name)):this.template={fn:e}};$&&($.EJS=EJS),EJS.prototype.render=function(e,t){e=e||{},this._extra_helpers=t;t=new EJS.Helpers(e,t||{});return this.template.fn.call(e,e,t)},extend(EJS,{text:function(i){if("string"==typeof i)return i;if(null==i)return"";var e=(i.hookup?function(e,t){i.hookup.call(i,e,t)}:"function"==typeof i&&i)||isArray(i)&&function(e,t){for(var n=0;n<i.length;n++)i[n].hookup?i[n].hookup(e,t):i[n](e,t)};return e?"data-view-id='"+$View.hookup(e)+"'":i.toString?i.toString():""},clean:function(e){return"string"==typeof e?escapeHTML(e):"number"==typeof e?e:EJS.text(e)},options:{type:"[",ext:".ejs"}});var scan=function(e,t,n){for(var i=rSplit(t,nReg),r=0;r<i.length;r++)scanline(e,i[r],n)},scanline=function(e,t,n){e.lines++;for(var i,r=rSplit(t,e.splitter),o=0;o<r.length;o++)null!==(i=r[o])&&n(i,e)},makeScanner=function(e,t){var n={};return extend(n,{left:e+"%",right:"%"+t,dLeft:e+"%%",dRight:"%%"+t,eeLeft:e+"%==",eLeft:e+"%=",cmnt:e+"%#",cleanLeft:e+"%~",scan:scan,lines:0}),n.splitter=new RegExp("("+[n.dLeft,n.dRight,n.eeLeft,n.eLeft,n.cmnt,n.left,n.right+"\n",n.right,"\n"].join(")|(").replace(/\[/g,"\\[").replace(/\]/g,"\\]")+")"),n},compile=function(e,t,n){e=e.replace(returnReg,"\n").replace(retReg,"\n"),t=t||"[";function r(e){u.push(i,'"',clean(e),'");')}function o(){c=""}var i="___v1ew.push(",a=i,s="var ___v1ew = [];",l="return ___v1ew.join('')",u=new EJS.Buffer([s],[]),c="",f=null,d=[];scan(makeScanner(t,"["===t?"]":">"),e||"",function(e,t){if(null===f)switch(e){case"\n":r(c+="\n"),u.cr(),o();break;case t.left:case t.eLeft:case t.eeLeft:case t.cmnt:f=e,0<c.length&&r(c),o();break;case t.dLeft:c+=t.left;break;default:c+=e}else switch(e){case t.right:switch(f){case t.left:var n=bracketNum(c),i=d.length&&-1==n?d.pop():";";"));"===i&&u.push(l),u.push(c,i),1===n&&d.push(";");break;case t.eLeft:(n=bracketNum(c))&&d.push("));"),quickFunc.test(c)&&(c="function(__){var "+(i=c.match(quickFunc))[1]+"=$(__);"+i[2]+"}"),u.push(a,$.globalNamespace+".EJS.clean(",c,n?s:"));");break;case t.eeLeft:(n=bracketNum(c))&&d.push("));"),u.push(a,$.globalNamespace+".EJS.text(",c,n?s:"));")}f=null,o();break;case t.dRight:c+=t.right;break;default:c+=e}}),0<c.length&&u.push(i,'"',clean(c)+'");');e={out:"try { with(_VIEW) { with (_CONTEXT) {"+u.close()+" "+l+"}}}catch(e){e.lineNumber=null;throw e;}"};return myEval.call(e,"this.fn = (function(_CONTEXT,_VIEW){ var $ = "+$.globalNamespace+";"+e.out+"});"),e};EJS.Buffer=function(e,t){this.line=[],this.script=[],this.post=t,this.push.apply(this,e)},EJS.Buffer.prototype={push:function(){this.line.push.apply(this.line,arguments)},cr:function(){this.script.push(this.line.join(""),"\n"),this.line=[]},close:function(){return 0<this.line.length&&(this.script.push(this.line.join("")),this.line=[]),this.post.length&&this.push.apply(this,this.post),this.script.push(";"),this.script.join("")}},EJS.Helpers=function(e,t){this._data=e,this._extras=t,extend(this,t)},EJS.Helpers.prototype={plugin:function(e){var t=$.makeArray(arguments),n=t.shift();return function(e){e=$(e);e[n].apply(e,t)}},view:function(e,t,n){return n=n||this._extras,t=t||this._data,$View(e,t,n)}},$View.register({suffix:"ejs",script:function(e,t){return $.globalNamespace+".EJS(function(_CONTEXT,_VIEW) { "+new EJS({text:t,name:e}).template.out+" })"},renderer:function(e,t){return EJS({text:t,name:e})}})}(),function(){function s(e){return"object"==typeof e&&null!==e&&e}function l(i,r,o){return i instanceof $.Observe?a([i],o._namespace):i=new(p(i)?$.Observe.List:$.Observe)(i),i.bind("change"+o._namespace,function(e,t){var n=$.makeArray(arguments),e=n.shift();n[0]="*"===r?o.indexOf(i)+"."+n[0]:r+"."+n[0],$.event.trigger(e,n,o)}),i}function a(e,t){for(var n,i=0;i<e.length;i++)(n=e[i])&&n.unbind&&n.unbind("change"+t)}function u(){if(!r)return r=[],!0}function c(e,t,n){return!e._init&&(r?void r.push({t:e,ev:t,args:n}):$.event.trigger(t,n,e,!0))}function f(){var e,t=r.length,n=r.slice(0);r=null,o++;for(var i=0;i<t;i++)e=n[i],$.event.trigger({type:e.ev,batchNum:o},e.args,e.t)}function d(e,n,i){return e.each(function(e,t){i[e]=s(t)&&"function"==typeof t[n]?t[n]():t}),i}var p=$.isArray,h=$.makeArray,e=$.each,n=0,r=null,o=0;$.Class($.globalNamespace+".Observe",{init:function(e){this._data={},this._namespace=".observe"+ ++n,this._init=!0,this.attrs(e),delete this._init},attr:function(e,t){return void 0===t?this._get(e):(this._set(e,t),this)},each:function(){return e.apply(null,[this.__get()].concat(h(arguments)))},removeAttr:function(e){var t=p(e)?e:e.split("."),n=t.shift(),e=this._data[n];return t.length?e.removeAttr(t):(delete this._data[n],c(this,"change",[n,"remove",void 0,e]),e)},_get:function(e){var t=p(e)?e:(""+e).split("."),e=this.__get(t.shift());return t.length?e?e._get(t):void 0:e},__get:function(e){return e?this._data[e]:this._data},_set:function(e,t){var n=p(e)?e:(""+e).split("."),i=n.shift(),e=this.__get(i);if(s(e)&&n.length)e._set(n,t);else{if(n.length)throw"jQuery.Observe: set a property on an object that does not exist";t!==e&&(n=this.__get().hasOwnProperty(i)?"set":"add",this.__set(i,s(t)?l(t,i,this):t),c(this,"change",[i,n,t,e]),e&&a([e],this._namespace))}},__set:function(e,t){this._data[e]=t,e in this.constructor.prototype||(this[e]=t)},bind:function(e,t){return $.fn.bind.apply($([this]),arguments),this},unbind:function(e,t){return $.fn.unbind.apply($([this]),arguments),this},serialize:function(){return d(this,"serialize",{})},attrs:function(e,t){if(void 0===e)return d(this,"attrs",{});e=$.extend(!0,{},e);var n,i=u();for(n in this._data){var r=this._data[n],o=e[n];void 0!==o?(s(r)&&s(o)?r.attrs(o,t):r!=o&&this._set(n,o),delete e[n]):t&&this.removeAttr(n)}for(n in e)o=e[n],this._set(n,o);i&&f()}});function m(e){return e[0]&&$.isArray(e[0])?e[0]:h(e)}var t=$.Observe($.globalNamespace+".Observe.List",{init:function(e,t){this.length=0,this._namespace=".list"+ ++n,this._init=!0,this.bind("change",this.proxy("_changes")),this.push.apply(this,h(e||[])),$.extend(this,t),this.comparator&&this.sort(),delete this._init},_changes:function(e,t,n,i,r){if(this.comparator&&/^\d+./.test(t)){var o=+/^\d+/.exec(t)[0],a=this[o],s=this.sortedIndex(a);if(s!==o)return[].splice.call(this,o,1),[].splice.call(this,s,0,a),c(this,"move",[a,s,o]),e.stopImmediatePropagation(),void c(this,"change",[t.replace(/^\d+/,s),n,i,r])}-1===t.indexOf(".")&&("add"===n?c(this,n,[i,+t]):"remove"===n&&c(this,n,[r,+t]))},sortedIndex:function(e){for(var t=e.attr(this.comparator),n=0,i=0;i<this.length;i++)if(e!==this[i]){if(t<=this[i].attr(this.comparator))return i+n}else n=-1;return i+n},__get:function(e){return e?this[e]:this},__set:function(e,t){this[e]=t},serialize:function(){return d(this,"serialize",[])},splice:function(e,t){for(var n=h(arguments),i=2;i<n.length;i++){var r=n[i];s(r)&&(n[i]=l(r,"*",this))}void 0===t&&(t=n[1]=this.length-e);var o=[].splice.apply(this,n);return 0<t&&(c(this,"change",[""+e,"remove",void 0,o]),a(o,this._namespace)),2<n.length&&c(this,"change",[""+e,"add",n.slice(2),o]),o},attrs:function(e,t){if(void 0===e)return d(this,"attrs",[]);e=e.slice(0);for(var n=Math.min(e.length,this.length),i=u(),r=0;r<n;r++){var o=this[r],a=e[r];s(o)&&s(a)?o.attrs(a,t):o!=a&&this._set(r,a)}e.length>this.length?this.push(e.slice(this.length)):e.length<this.length&&t&&this.splice(e.length),i&&f()},sort:function(e,t){var n=this.comparator;[].sort.apply(this,n?[function(e,t){return(e=e[n])===(t=t[n])?0:e<t?-1:1}]:[]);t||c(this,"reset")}});e({push:"length",unshift:0},function(o,a){t.prototype[o]=function(){for(var e=m(arguments),t=a?this.length:0,n=0;n<e.length;n++){var i=e[n];s(i)&&(e[n]=l(i,"*",this))}if(1==e.length&&this.comparator){var r=this.sortedIndex(e[0]);return this.splice(r,0,e[0]),this.length}r=[][o].apply(this,e);return this.comparator&&1<e.length?(this.sort(null,!0),c(this,"reset",[e])):c(this,"change",[""+t,"add",e,void 0]),r}}),e({pop:"length",shift:0},function(n,i){t.prototype[n]=function(){var e=m(arguments),t=i&&this.length?this.length-1:0,e=[][n].apply(this,e);return c(this,"change",[""+t,"remove",void 0,[e]]),e&&e.unbind&&e.unbind("change"+this._namespace),e}}),t.prototype.indexOf=[].indexOf||function(e){return $.inArray(e,this)},$.O=function(e,t){return new(p(e)||e instanceof $.Observe.List?$.Observe.List:$.Observe)(e,t)}}()}),KTVendors.plugin("joomla",function(n){var i={squeezebox:function(){return window.parent.SqueezeBox}};n.Joomla=function(e,t){if(n.isFunction(t))window.Joomla[e]=t;else{e=i[e]||window.Joomla[e];if(n.isFunction(e))return e.apply(window,t)}}}),KTVendors.plugin("module",function(r){function t(e){var t=this,n=r.Callbacks("once memory");r.extend(this,r.Deferred(),{name:e,status:"pending",ready:function(e){!0===e&&n.fire.call(t,r),r.isFunction(e)&&n.add(e)}}),t.then(function(){t.exports=this,t.status="resolved"},function(){t.status="rejected"});var i=t.done;t.done=function(){t.required=!0;var e=t.factory;return e&&"ready"===t.status&&e.call(t,r),t.done=i,t.done.apply(this,arguments)}}function i(e,t){var n;if("string"==typeof e){if(n=i.get(e),void 0===t)return n;if(r.isFunction(t))return"resolved"==n.status||(n.factory=t,n.status="ready",n.ready("true"),n.required&&(n.status="executing",t.call(n,r))),n}r.isArray(e)&&(e=r.map(e,function(e){var t=i.get(r.isString(e)?e:e.name);if(t)return"pending"===t.status&&(t.status="ready"),r.isPlainObject(e)?e:void 0}),r.each(e,function(e,t){i(t.name,t.factory)}))}r.module=(r.extend(i,{registry:{},get:function(e){if(e)return r.isModule(e)&&(e=e.replace("module://","")),i.registry[e]||i.create(e)},create:function(e){return i.registry[e]=new t(e)},remove:function(e){delete i.registry[e]}}),i),r.isModule=function(e){return r.isString(e)?!!e.match("module://"):e&&e instanceof t}}),KTVendors.plugin("script",function(i){i.Script=function(e){var t=document.createElement("script");return t.text=i.isString(e)?e:i.callback(e)+"();",i(t)},i.script=function(){function t(e){(e=i.extend(this,e)).manager=i.Deferred(),i.extend(e,e.manager.promise()),e.load()}var n=document.getElementsByTagName("head")[0];document.getElementsByTagName("base")[0];return i.extend(t.prototype,{timeout:7e3,retry:3,retryCount:1,type:"text/javascript",async:!1,charset:"UTF-8",verbose:!1,head:n,insert:function(){var e=this.node;this.head.appendChild(e)},remove:function(){var e=this.node;setTimeout(function(){e.onload=e.onerror=e.onreadystatechange=null;try{n.removeChild(e)}catch(e){}},1e3)},load:function(){var e,t=this;t.endTime=void 0,t.startTime=new Date,t.node=e=document.createElement("script"),t.insert(),t._ready=i.proxy(t.ready,t),t._error=i.proxy(t.error,t),e.attachEvent&&!i.browser.opera?(e.attachEvent("onreadystatechange",t._ready),e.attachEvent("onerror",t._error)):(e.addEventListener("load",t._ready,!1),e.addEventListener("error",t._error,!1)),i(e).attr({type:t.type,async:t.async,charset:t.charset,src:t.url}),t.monitor()},monitor:function(){var e=this;e.retryCount>e.retry?e._error():setTimeout(function(){"resolved"!==e.state()&&(e.verbose&&console.warn("$.script: Load timeout. [Retry: "+e.retryCount+"]",e),e.remove(),e.retryCount++,e.load())},e.timeout*e.retryCount)},ready:function(e){var t=this.node;"load"!==e.type&&!/loaded|complete/.test(t.readyState)||(this.complete.call(this,e),this.manager.resolve(this))},error:function(e){this.verbose&&console.error("$.script: Unable to load ",this),this.complete.call(this,e),this.remove(),this.manager.reject(this)},complete:function(e){var t=this.node;this.endTime=new Date,t.detachEvent&&!i.browser.opera?(t.detachEvent("onreadystatechange",this._ready),t.detachEvent("onerror",this._error)):(t.removeEventListener("load",this._ready,!1),t.removeEventListener("error",this._error,!1))}}),function(e){if(void 0!==e)return new t(e="string"==typeof e?{url:e}:e)}}()}),KTVendors.plugin("template",function(i){function r(e,t){return void 0===e?r.templates:"string"==typeof t?(n=i.isPlainObject(t)?t:i.extend({},o,{name:e,content:t}),r.templates[e]=n):(n=r.templates[e]||{}).content||"";var n}var o;i.template=(o={content:"",type:"ejs"},i.extend(r,{templates:{},remove:function(e){delete r.templates[e]}}),r)}),KTVendors.plugin("require",function(a){function o(){var i=this,e=a.makeArray(arguments),e=a.isPlainObject(e[0])?(r=e[0],e.slice(1)):e,r=a.extend({},o.defaultOptions,i.options,r,{batch:i});a.each(e,function(e,t){var n=new o.task(t,r),t=o.images[n.url],n=t||n;i.addTask(n),t||(o.images[n.url]=n).start()})}a.require=function(){function i(e){return e=new n(e),i.batches[e.id]=e}var e=function(e){return a.uri(e).setAnchor("").setQuery("").toPath("../").toString()};a.extend(i,{defaultOptions:{path:(e=a.path||a("[require-path]").attr("require-path")||e(a("script:last").attr("src"))||e(window.location.href),e=/^(\/|\.)/.test(e)?a.uri(window.location.href).toPath(e).toString():e),timeout:1e4,retry:3,verbose:"development"==a.environment},setup:function(e){a.extend(i.defaultOptions,e)},batches:{},status:function(o){return a.each(i.batches,function(e,t){var n={pending:0,resolved:0,rejected:0,ready:0,total:0},i=[];a.each(t.tasks,function(e,t){state=t.module&&"ready"==t.module.status?"ready":t.state(),n[state]++,n.total++,i.push({state:state,content:"["+state+"] "+t.name})});var r=t.id+": "+t.state()+" ["+n.resolved+"/"+n.total+"]";o&&n[o]<1||(a.IE?(console.log('$.require.batches["'+t.id+'"]'),a.each(i,function(e,t){console.log(t.content)}),console.log("")):(console.groupCollapsed(r),console.log('$.require.batches["'+t.id+'"]',t),a.each(i,function(e,t){var n=t.state,i=t.content;if(!o||n==o)switch(n){case"pending":console.warn(i);break;case"rejected":console.error(i);break;default:console.info(i)}}),console.groupEnd(r)))}),"$.require.status(pending|resolved|rejected|ready);"},loaders:{},addLoader:function(e,t){i[e]=t,n.prototype[e]=function(){return this.autoFinalize(),t.apply(this,arguments),this},i.loaders[e]=i[e]=t},removeLoader:function(e){delete n.prototype[e],delete i[e]}});var r=0,n=function(e){var t=a.Callbacks("once memory"),n=!1;return a.extend(this,{id:++r,tasks:[],options:a.extend({},i.defaultOptions,e),autoFinalizeDuration:300,finalized:!1,required:function(e){return!0===e&&(n=t.fire()),a.isFunction(e)&&t.add(e),n}})};return a.extend(n.prototype,{addTask:function(e){a.isDeferred(e)&&(this.finalized||(this.tasks.push(e),e.batch=this))},autoFinalize:function(){var e=this,t=e.autoFinalizeDuration;!1!==t&&(clearTimeout(e.autoFinalizeTimer),e.autoFinalizeTimer=setTimeout(function(){e.finalize()},t))},finalize:function(){var e,t,n,i,r=this;r.finalized||(r.finalized=!0,e=r.manager=a.when.apply(null,r.tasks),t=e.promise(),n=a.Callbacks(),a.extend(r,t,{progress:n.add,notify:n.fire,done:function(){return r.required(!0),r.done=t.done,r.done.apply(r,arguments)}}),i=r.options.verbose,e.progress(function(e,t){i&&"rejected"==e&&console.warn("Require: Task "+t.name+" failed to load.",t)}).fail(function(){i&&console.warn("Require: Batch "+r.id+" failed.",r)}),setTimeout(function(){a.each(r.tasks,function(e,t){t.then(function(){r.notify("resolved",t)},function(){r.notify("rejected",t)},function(){r.notify("progress",t)})})},1))},expand:function(e,t){var e=a.makeArray(e),n=t||{},i=[],i=a.isPlainObject(e[0])?(n=a.extend(e[0],t),e.slice(1)):e;return{options:n,names:i}}}),a.each(["done","fail","progress","always","then"],function(e,t){n.prototype[t]=function(){return this.finalize(),this[t].apply(this,arguments)}}),i}(),a.require.addLoader("script",function(){var e=a.uri(a.indexUrl).host();e!==a.uri(document.location.href).host()&&e.match("xn--")&&(a.support.cors=!0);function o(){var n,i=this,e=a.makeArray(arguments),e=a.isPlainObject(e[0])?(r=e[0],e.slice(1)):e,r=a.extend({},o.defaultOptions,i.options,r,{batch:i});a.each(e,function(e,t){t=new o.task(t,r,n);i.addTask(t),r.serial&&void 0!==n?n.always(t.start):t.start(),n=t})}!0===document.createElement("script").async||"MozAppearance"in document.documentElement.style||window.opera;return a.extend(o,{defaultOptions:{path:"",extension:"compressed"==a.mode?"min.js":"js",serial:!1,async:!1,xhr:!1},setup:function(){a.extend(o.defaultOptions,options)},scripts:{},task:function(e,t,n){var i=a.extend(this,a.Deferred());i.name=e,i.options=t,i.taskBefore=n,a.isArray(e)&&(i.name=e[0]+"@"+e[1],i.moduleName=e[0],e[2]||(i.defineModule=!0,a.module.registry[i.moduleName]&&console.warn("$.require.script: "+i.moduleName+" exists! Using existing module instead."),i.options.xhr=!0),e=e[1],i.module=a.module(i.moduleName)),a.isUrl(e)?i.url=e:/^(\/|\.)/.test(e)?i.url=a.uri(i.options.path).toPath(e).toString():(i.url=a.uri(i.options.path).toPath("./"+e+"."+i.options.extension).toString(),i.module=a.module(e))}}),a.extend(o.task.prototype,{start:function(){var e=this.module;e&&"pending"!==e.status?this.waitForModule():this.load()},waitForModule:function(){var e=this,t=e.module;t.then(e.resolve,e.reject,e.notify),e.batch.required(function(){t.done(e.resolve)})},load:function(){var e,n=this,i=n.taskBefore;n.script=o.scripts[n.url]||(e=n.options.xhr?a.ajax({url:n.url,dataType:"text"}):a.script({url:n.url,type:"text/javascript",async:n.options.async,timeout:n.batch.options.timeout,retry:n.batch.options.retry,verbose:n.batch.options.verbose}),o.scripts[n.url]=e),n.script.done(function(e){function t(){n.module?n.waitForModule():n.resolve()}n.options.xhr&&(n.defineModule&&(n.module=a.module(n.moduleName,function(){a.globalEval(e),this.resolveWith(e)})),!n.options.async||i)?i.done(function(){a.globalEval(e),t()}):t()}).fail(function(){n.reject()})}}),o}()),a.require.addLoader("library",function(){var e=a.makeArray(arguments),t={},e=a.isPlainObject(e[0])?(t=e[0],e.slice(1)):e;return a.extend(t,{path:a.scriptPath}),this.script.apply(this,[t].concat(e))}),a.require.addLoader("image",(a.extend(o,{defaultOptions:{path:""},setup:function(){a.extend(o.defaultOptions,options)},images:{},task:function(e,t){var n=a.extend(this,a.Deferred());n.name=e,n.options=t,a.isUrl(e)?n.url=e:/^(\/|\.)/.test(e)?n.url=a.uri(n.options.path).toPath(e).toString():n.url=a.uri(n.options.path).toPath("./"+e).toString(),n.options.url=n.url}}),a.extend(o.task.prototype,{start:function(){var e=this;e.image=a(new Image).load(function(){e.resolve()}).error(function(){e.reject()}).attr("src",e.options.url)}}),o))}),KTVendors.plugin("server",function($){var self=$.server=function(i){var r=$.Deferred(),e=$.extend(!0,{},self.defaultOptions,i,{success:function(){}}),e=r.xhr=$.Ajax(e).done(function(e){if("string"==typeof e)try{e=$.parseJSON(e)}catch(e){r.rejectWith(r,["Unable to parse Ajax commands.","error"])}var n;$.isArray(e)?(n=function(e){var t=e.type,t=self.parsers[t]||i[t];if($.isFunction(t))return t.apply(r,e.data)},e=$.map(e,function(e){return"notify"!=e.type?e:void n(e)}),$.each(e,function(e,t){n(t)})):r.rejectWith(r,["Invalid ajax commands.","error"]),"pending"===r.state()&&r.resolveWith(r)}).fail(function(e,t,n){r.rejectWith(r,[n,t])});return r.abort=e.abort,r};self.defaultOptions={type:"POST",data:{tmpl:"component",format:"ajax",no_html:1},cache:!1,contentType:"application/x-www-form-urlencoded",dataType:"json"},self.parsers={script:function(){var data=$.makeArray(arguments);if("string"!=typeof data[0]){var chain=window,chainBroken=!1;$.each(data,function(e,t){"Foundry"===t.property&&(t.property=$.globalNamespace),"Foundry"===t.method&&(t.method=$.globalNamespace);try{switch(t.type){case"get":chain=chain[t.property];break;case"set":chain[t.property]=t.value,chainBroken=!0;break;case"call":chain=chain[t.method].apply(chain,t.args)}}catch(e){chainBroken=!0}})}else try{eval(data[0])}catch(err){}},resolve:function(){this.resolveWith(this,arguments)},reject:function(){this.rejectWith(this,arguments)},notify:function(){this.notifyWith(this,arguments)},redirect:function(e){window.location=e}}}),KTVendors.plugin("component",function(s){var a=s.Component=function(e,t){return arguments.length<1?a.registry:arguments.length<2?a.registry[e]:a.register(e,t)};a.registry={},a.proxy=function(e,t,n){s.isFunction(n)?e[t]=s.proxy(n,e):e[t]=n},a.register=function(e,t){var n;s.isFunction(e)&&(e=(n=e).className,t=n.options);var i=a.registry[e]=window[e]=function(e){return s.isFunction(e)?e(s):component};if(s.each(a.prototype,function(e,t){a.proxy(i,e,t)}),i.$=s,i.options=t,i.className=e,i.identifier="komento",i.componentName="com_komento",i.prefix=i.identifier+"/",i.version=t.version,i.safeVersion=i.version.replace(/\./g,""),i.environment=t.environment||s.environment,i.mode=t.mode||s.mode,i.debug="development"===i.environment,i.console=a.console(i),i.language=t.language||s.locale.lang||"en",i.ajaxUrl=t.ajaxUrl||s.basePath+"/?option="+i.componentName,i.scriptPath=t.scriptPath||s.rootPath+"/media/"+i.componentName+"/scripts/",i.stylePath=t.stylePath||s.rootPath+"/media/"+i.componentName+"/styles/",i.templatePath=t.templatePath||t.scriptPath,i.languagePath=t.languagePath||i.ajaxUrl+"&tmpl=component&no_html=1&controller=lang&task=getLanguage",i.viewPath=t.viewPath||i.ajaxUrl+"&tmpl=component&no_html=1&controller=themes&task=getAjaxTemplate",i.optimizeResources=!0,i.resourcePath=t.resourcePath||i.ajaxUrl+"&tmpl=component&no_html=1&controller=foundry&task=getResource",i.resourceInterval=1200,i.scriptVersioning=t.scriptVersioning||!1,i.tasks=[],KTVendors.component(e,i),n)if(i.debug)n.queue.execute();else{for(var r,o=KTVendors.installer(e);r=o.shift();)i.install.apply(i,r);s.when(i.install("definitions"),i.install("scripts"),i.install("resources")).done(function(){n.queue.execute()})}},a.extend=function(n,i){a.prototype[n]=i,s.each(a.registry,function(e,t){a.proxy(t,n,i)})},s.template("component/console",'<div id="[%== component.identifier %]-console" class="foundry-console" style="display: none; z-index: 999999;"><div class="console-header"><div class="console-title">[%= component.className %] [%= component.version %]</div><div class="console-remove-button">x</div></div><div class="console-log-item-group"></div><style type="text/css">.foundry-console{position:fixed;width:50%;height:50%;bottom:0;left:0;background:white;box-shadow: 0 0 5px 0;margin-left: 25px;}.console-log-item-group{width: 100%;height: 100%;overflow-y:scroll;}.console-header{position: absolute;background:red;color:white;font-weight:bold;top:-24px;left: 0;line-height:24px;width:100%}.console-remove-button{text-align:center;cursor: pointer;display:block;width: 24px;float:right}.console-remove-button:hover{color: yellow}.console-title{padding: 0 5px;float:left}.console-log-item{padding: 5px}.console-log-item + .console-log-item{border-top: 1px solid #ccc}</style></div>'),a.console=function(e){return r=e,n.selector="#"+r.identifier+"-console",n.init=function(){return(o=s(n.selector)).length<1&&(o=s(s.View("component/console",{component:r})).appendTo("body")).find(".console-remove-button").click(function(){o.hide()}),n.element=o,arguments.callee},n.methods={log:function(e,t,n){t=t||"info";var i=o.find(".console-log-item-group"),e=s(document.createElement("div")).addClass("console-log-item type-"+t).attr("data-code",n).html(e);i.append(e),i[0].scrollTop=i[0].scrollHeight,r.debug&&o.show()},toggle:function(){o.toggle()},reset:function(){o.find(".console-log-item-group").empty()}},s.each(n.methods,function(e,t){n[e]=function(){return n.init(),t.apply(n,arguments)}}),n;function n(e){return arguments.length<1?n.toggle():n[e]&&n[e].apply(n,arguments)}var r,o};var t=s(document),e=a.prototype;s.extend(e,{run:function(e){return s.isFunction(e)?e(s):this},ready:(t.ready(function(){e.ready=e.run}),function(e){s.isFunction(e)&&t.ready(function(){e(s)})}),install:function(e,t){var n=this,i=n.tasks[e]||(n.tasks[e]=s.Deferred());if(!t)return i;function r(){return t(s,n),i.resolve()}if("definitions"==e)return r();s.when(n.install("definitions")).done(r)},token:function(){return this.token.value||(this.token.value=window.kt.token)},template:function(e){var t=this;return null==e?s.grep(s.template(),function(e){return 0==e.indexOf(t.prefix)}):(arguments[0]=t.prefix+e,s.template.apply(null,arguments))},require:function(e){var o=this,e=e||{},a=s.require(e),n={};return s.each(["library","script","template","done"],function(e,t){n[t]=a[t]}),a.resource=function(e){if(s.isPlainObject(e)&&e.type&&e.name&&s.isDeferred(e.loader)){var i=o.resourceCollector;i||(i=o.resourceCollector=s.Deferred(),s.extend(i,{name:s.uid("ResourceCollector"),manifest:[],loaderList:[],loaders:[],load:function(){var t,e;delete o.resourceCollector,i.manifest.length<0?i.resolve():(t=0,(e=function(){t++,s.Ajax({type:"POST",url:o.resourcePath,dataType:"json",data:{resource:i.manifest}}).done(function(e){s.isArray(e)?(s.each(e,function(e,t){var n=t.content;i.loaders[t.id][void 0!==n?"resolve":"reject"](n)}),1<t&&o.debug&&console.info("Attempt to try and get resources again was successful!")):i.reject("Server did not return a valid resource manifest.")}).fail(function(){2<t?o.debug&&console.error("Unable to get resource again. Giving up!"):(o.debug&&console.warn("Unable to get resource. Trying again..."),e())})})(),s.when.apply(null,i.loaderList).done(i.resolve).fail(i.reject))}}),setTimeout(i.load,o.resourceCollectionInterval));var t=e.id=s.uid("Resource");return i.loaders[t]=e.loader,i.loaderList.push(e.loader),delete e.loader,i.manifest.push(e),a}},a.view=function(){var i=this,e=i.expand(arguments,{path:o.viewPath}),r={},t=e.options,e=s.map(e.names,function(e){var t=o.prefix+e,n=s.require.template.loaders[t];if(!n){if((n=s.require.template.loader(t)).name=t,i.addTask(n),!o.optimizeResources)return r[e]=n,e;a.resource({type:"view",name:e,loader:n})}});return 0<e.length&&s.Ajax({url:t.path,dataType:"json",data:{names:e}}).done(function(e){s.isArray(e)&&s.each(e,function(e,t){var n=t.content;r[t.name][void 0!==n?"resolve":"reject"](n)})}),a},a.library=function(){return n.script.apply(this,arguments),a},a.script=function(){var t=this.expand(arguments,{path:o.scriptPath}),e=s.map(t.names,function(e){return s.isArray(e)||s.isUrl(e)||/^(\/|\.)/.test(e)?e:[[o.prefix+e,s.uri(t.options.path).toPath("./"+e+"."+(t.options.extension||"js")+(o.scriptVersioning?"?version="+o.safeVersion:"")).toString(),!0]]});return n.script.apply(a,[t.options].concat(e)),a},a.template=function(){var e=this.expand(arguments,{path:o.templatePath});return n.template.apply(a,[e.options].concat(s.map(e.names,function(e){return[[o.prefix+e,e]]}))),a},a.app=function(){var i=this.expand(arguments,{path:o.scriptPath});return names=s.map(i.names,function(e){if(s.isArray(e)||s.isUrl(e)||/^(\/|\.)/.test(e))return e;var t=e.split("/"),n=s.rootPath+"/media/"+o.componentName+"/apps";return 4===t.length&&(n+="/"+t.shift()),n+="/"+t[0]+"/"+t[1]+"/scripts/"+t[2],[[o.prefix+e,n+"."+(i.options.extension||"js")+(o.scriptVersioning?"?version="+o.safeVersion:""),!0]]}),n.script.apply(a,[i.options].concat(names)),a},a.done=function(e){return n.done.call(a,function(){o.ready(e)})},a},module:function(e,t){if(!s.isArray(e)){e=this.prefix+e;return t?s.module.apply(null,[e,function(){t.call(this,s)}]):s.module(e)}}}),s.Component.extend("ajax",function(e,t,n){var i=this,r=new Date,o={url:i.ajaxUrl+"&_ts="+r.getTime(),data:s.extend(t,{option:i.componentName,namespace:e})};if((o=s.extend(!0,o,i.options.ajax)).data[i.token()]=1,o.data.hasOwnProperty("args")&&(o.data.args=s.toJSON(o.data.args)),s.isPlainObject(n)){if(n.type){switch(n.type){case"jsonp":n.dataType="jsonp",n.crossDomain=!0,o.data.transport="jsonp";break;case"iframe":n.iframe=!0,n.processData=!1,n.files=o.data.files,delete o.data.files,o.data.transport="iframe"}delete n.type}s.extend(o,n)}s.isFunction(n)&&(o.success=n);e=s.server(o);return e.progress(function(e,t,n){i.debug&&"debug"==t&&i.console.log(e,t,n)}),e}),s.Component.extend("Controller",function(){var e,t=s.makeArray(arguments),n=t[0];return 1==t.length?s.String.getObject(n):(t=2<t.length?(e=t[1],t[2]):(e={},t[1]),s.extend(e,{root:this.className+".Controller",component:this}),s.Controller.apply(this,[n,e,t]))}),s.Component.extend("View",function(e){return arguments.length<1?this.template():(arguments[0]=this.prefix+e,s.View.apply(this,arguments))}),KTVendors.module.execute(),s.each(KTVendors.component(),function(e,t){t.registered||s.Component.register(t)})}),KTVendors.plugin("static",function($){$.module(["dialog","expanding","moment","plupload","scrollTo","ui/autocomplete","ui/core","ui/menu","ui/position","ui/widget"]),KTVendors.module("dialog",function(e){function t(){jQuery(document).ready(function(){Komento.dialog=jQuery.extend(fd.dialog,{appearance:kt.appearance,theme:kt.theme,mobile:kt.mobile,ios:kt.ios,jqueryNamespace:e.globalNamespace})})}t(),this.resolveWith(t)}),KTVendors.module("expanding",function(u){function e(){function n(){u(this).data("textareaClone").find("div").text(this.value.replace(/\r\n/g,"\n")+" "),u(this).trigger("resize.expanding")}u.expandingTextarea=u.extend({autoInitialize:!0,initialSelector:"textarea.expanding",opts:{resize:function(){}}},u.expandingTextarea||{});var o=["lineHeight","textDecoration","letterSpacing","fontSize","fontFamily","fontStyle","fontWeight","textTransform","textAlign","direction","wordSpacing","fontSizeAdjust","wordWrap","word-break","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","boxSizing","webkitBoxSizing","mozBoxSizing","msBoxSizing"],a={position:"absolute",height:"100%",resize:"none"},s={visibility:"hidden",border:"0 solid",whiteSpace:"pre-wrap"},l={position:"relative"};u.fn.expandingTextarea=function(e){var t=u.extend({},u.expandingTextarea.opts,e);return"resize"===e?this.trigger("input.expanding"):("destroy"===e?this.filter(".expanding-init").each(function(){var e=u(this).removeClass("expanding-init");e.attr("style",e.data("expanding-styles")||"").removeData("expanding-styles")}):this.filter("textarea").not(".expanding-init").addClass("expanding-init").each(function(){var i=u(this),e=i.parent(),r=u(u.parseHTML("<pre class='textareaClone'><div></div></pre>"));i.after(r).data("textareaClone",r),e.css(l),i.data("expanding-styles",i.attr("style")),i.css(a),r.css(s),u.each(o,function(e,t){var n=i.css(t);r.css(t)!==n&&r.css(t,n)}),i.bind("input.expanding propertychange.expanding keyup.expanding",n),n.apply(this),t.resize&&i.bind("resize.expanding",t.resize)}),this)},u(function(){u.expandingTextarea.autoInitialize&&u(u.expandingTextarea.initialSelector).expandingTextarea()})}e(),this.resolveWith(e)}),KTVendors.module("moment",function(Ie){function e(){!function(u){function a(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function e(e,t){var n=!0;return s(function(){return n&&(!1===W.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e),n=!1),t.apply(this,arguments)},t)}function t(t,n){return function(e){return c(t.call(this,e),n)}}function r(){}function i(e){w(e),s(this,e)}function o(e){var t=m(e),n=t.year||0,i=t.quarter||0,r=t.month||0,o=t.week||0,a=t.day||0,s=t.hour||0,l=t.minute||0,e=t.second||0,t=t.millisecond||0;this._milliseconds=+t+1e3*e+6e4*l+36e5*s,this._days=+a+7*o,this._months=+r+3*i+12*n,this._data={},this._bubble()}function s(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return t.hasOwnProperty("toString")&&(e.toString=t.toString),t.hasOwnProperty("valueOf")&&(e.valueOf=t.valueOf),e}function l(e){return e<0?Math.ceil(e):Math.floor(e)}function c(e,t,n){for(var i=""+Math.abs(e),e=0<=e;i.length<t;)i="0"+i;return(e?n?"+":"":"-")+i}function f(e,t,n,i){var r=t._milliseconds,o=t._days,t=t._months;i=null==i||i,r&&e._d.setTime(+e._d+r*n),o&&z(e,"Date",R(e,"Date")+o*n),t&&F(e,R(e,"Month")+t*n),i&&W.updateOffset(e,o||t)}function d(e){return"[object Array]"===Object.prototype.toString.call(e)}function p(e,t,n){for(var i=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),o=0,a=0;a<i;a++)(n&&e[a]!==t[a]||!n&&g(e[a])!==g(t[a]))&&o++;return o+r}function h(e){var t;return e&&(t=e.toLowerCase().replace(/(.)s$/,"$1"),e=Ae[e]||De[t]||t),e}function m(e){var t,n,i={};for(n in e)e.hasOwnProperty(n)&&(t=h(n))&&(i[t]=e[n]);return i}function g(e){var t=+e,e=0;return e=0!=t&&isFinite(t)?0<=t?Math.floor(t):Math.ceil(t):e}function v(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function n(e,t,n){return I(W([e,11,31+t-n]),t,n).week}function y(e){return b(e)?366:365}function b(e){return e%4==0&&e%100!=0||e%400==0}function w(e){var t;e._a&&-2===e._pf.overflow&&(t=e._a[Y]<0||11<e._a[Y]?Y:e._a[G]<1||e._a[G]>v(e._a[K],e._a[Y])?G:e._a[V]<0||23<e._a[V]?V:e._a[X]<0||59<e._a[X]?X:e._a[J]<0||59<e._a[J]?J:e._a[Z]<0||999<e._a[Z]?Z:-1,e._pf._overflowDayOfYear&&(t<K||G<t)&&(t=G),e._pf.overflow=t)}function _(e){return null==e._isValid&&(e._isValid=!isNaN(e._d.getTime())&&e._pf.overflow<0&&!e._pf.empty&&!e._pf.invalidMonth&&!e._pf.nullInput&&!e._pf.invalidFormat&&!e._pf.userInvalidated,e._strict&&(e._isValid=e._isValid&&0===e._pf.charsLeftOver&&0===e._pf.unusedTokens.length)),e._isValid}function x(e){return e&&e.toLowerCase().replace("_","-")}function C(e,t){return t._isUTC?W(e).zone(t._offset||0):W(e).local()}function T(e){function t(e){if(!Q[e]&&te)try{require("./lang/"+e)}catch(e){}return Q[e]}var n,i,r,o,a=0;if(!e)return W.fn._lang;if(!d(e)){if(i=t(e))return i;e=[e]}for(;a<e.length;){for(n=(o=x(e[a]).split("-")).length,r=(r=x(e[a+1]))?r.split("-"):null;0<n;){if(i=t(o.slice(0,n).join("-")))return i;if(r&&r.length>=n&&p(o,r,!0)>=n-1)break;n--}a++}return W.fn._lang}function k(e,t){return e.isValid()?(t=E(t,e.lang()),Oe[t]||(Oe[t]=function(n){for(var e,i=n.match(oe),r=0,o=i.length;r<o;r++)Le[i[r]]?i[r]=Le[i[r]]:i[r]=(e=i[r]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){var t="";for(r=0;r<o;r++)t+=i[r]instanceof Function?i[r].call(e,n):i[r];return t}}(t)),Oe[t](e)):e.lang().invalidDate()}function E(e,t){function n(e){return t.longDateFormat(e)||e}var i=5;for(ae.lastIndex=0;0<=i&&ae.test(e);)e=e.replace(ae,n),ae.lastIndex=0,--i;return e}function S(e){var t=(e=e||"").match(pe)||[],e=((t[t.length-1]||[])+"").match(Ee)||["-",0,0],t=60*e[1]+g(e[2]);return"+"===e[0]?-t:t}function A(n){var e,t,i,r,o,a,s,l=[];if(!n._d){for(a=n,s=new Date,t=a._useUTC?[s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate()]:[s.getFullYear(),s.getMonth(),s.getDate()],n._w&&null==n._a[G]&&null==n._a[Y]&&(i=function(e){var t=parseInt(e,10);return e?e.length<3?68<t?1900+t:2e3+t:t:null==n._a[K]?W().weekYear():n._a[K]},o=null!=(r=n._w).GG||null!=r.W||null!=r.E?j(i(r.GG),r.W||1,r.E,4,1):(o=T(n._l),a=null!=r.d?L(r.d,o):null!=r.e?parseInt(r.e,10)+o._week.dow:0,s=parseInt(r.w,10)||1,null!=r.d&&a<o._week.dow&&s++,j(i(r.gg),s,a,o._week.doy,o._week.dow)),n._a[K]=o.year,n._dayOfYear=o.dayOfYear),n._dayOfYear&&(o=(null==n._a[K]?t:n._a)[K],n._dayOfYear>y(o)&&(n._pf._overflowDayOfYear=!0),o=M(o,0,n._dayOfYear),n._a[Y]=o.getUTCMonth(),n._a[G]=o.getUTCDate()),e=0;e<3&&null==n._a[e];++e)n._a[e]=l[e]=t[e];for(;e<7;e++)n._a[e]=l[e]=null==n._a[e]?2===e?1:0:n._a[e];l[V]+=g((n._tzm||0)/60),l[X]+=g((n._tzm||0)%60),n._d=(n._useUTC?M:N).apply(null,l)}}function D(e){e._a=[],e._pf.empty=!0;for(var t,n,i,r=T(e._l),o=""+e._i,a=o.length,s=0,l=E(e._f,r).match(oe)||[],u=0;u<l.length;u++)n=l[u],(t=(o.match(function(e,t){var n=t._strict;switch(e){case"Q":return ve;case"DDDD":return be;case"YYYY":case"GGGG":case"gggg":return n?we:ue;case"Y":case"G":case"g":return xe;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return n?_e:ce;case"S":if(n)return ve;case"SS":if(n)return ye;case"SSS":if(n)return be;case"DDD":return le;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return de;case"a":case"A":return T(t._l)._meridiemParse;case"X":return me;case"Z":case"ZZ":return pe;case"T":return he;case"SSSS":return fe;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return n?ye:se;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return se;case"Do":return ge;default:return new RegExp(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,r){return t||n||i||r}).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))}}(n,e))||[])[0])&&(0<(i=o.substr(0,o.indexOf(t))).length&&e._pf.unusedInput.push(i),o=o.slice(o.indexOf(t)+t.length),s+=t.length),Le[n]?(t?e._pf.empty=!1:e._pf.unusedTokens.push(n),function(e,t,n){var i,r=n._a;switch(e){case"Q":null!=t&&(r[Y]=3*(g(t)-1));break;case"M":case"MM":null!=t&&(r[Y]=g(t)-1);break;case"MMM":case"MMMM":null!=(i=T(n._l).monthsParse(t))?r[Y]=i:n._pf.invalidMonth=t;break;case"D":case"DD":null!=t&&(r[G]=g(t));break;case"Do":null!=t&&(r[G]=g(parseInt(t,10)));break;case"DDD":case"DDDD":null!=t&&(n._dayOfYear=g(t));break;case"YY":r[K]=W.parseTwoDigitYear(t);break;case"YYYY":case"YYYYY":case"YYYYYY":r[K]=g(t);break;case"a":case"A":n._isPm=T(n._l).isPM(t);break;case"H":case"HH":case"h":case"hh":r[V]=g(t);break;case"m":case"mm":r[X]=g(t);break;case"s":case"ss":r[J]=g(t);break;case"S":case"SS":case"SSS":case"SSSS":r[Z]=g(1e3*("0."+t));break;case"X":n._d=new Date(1e3*parseFloat(t));break;case"Z":case"ZZ":n._useUTC=!0,n._tzm=S(t);break;case"w":case"ww":case"W":case"WW":case"d":case"dd":case"ddd":case"dddd":case"e":case"E":e=e.substr(0,1);case"gg":case"gggg":case"GG":case"GGGG":case"GGGGG":e=e.substr(0,2),t&&(n._w=n._w||{},n._w[e]=t)}}(n,t,e)):e._strict&&!t&&e._pf.unusedTokens.push(n);e._pf.charsLeftOver=a-s,0<o.length&&e._pf.unusedInput.push(o),e._isPm&&e._a[V]<12&&(e._a[V]+=12),!1===e._isPm&&12===e._a[V]&&(e._a[V]=0),A(e),w(e)}function O(e){var t,n=e._i,i=ne.exec(n);n===u?e._d=new Date:i?e._d=new Date(+i[1]):"string"==typeof n?function(e){var t,n,i=e._i,r=Ce.exec(i);if(r){for(e._pf.iso=!0,t=0,n=Te.length;t<n;t++)if(Te[t][1].exec(i)){e._f=Te[t][0]+(r[6]||" ");break}for(t=0,n=ke.length;t<n;t++)if(ke[t][1].exec(i)){e._f+=ke[t][0];break}i.match(pe)&&(e._f+="Z"),D(e)}else W.createFromInputFallback(e)}(e):d(n)?(e._a=n.slice(0),A(e)):(t=n,"[object Date]"===Object.prototype.toString.call(t)||t instanceof Date?e._d=new Date(+n):"object"==typeof n?(i=e)._d||(t=m(i._i),i._a=[t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond],A(i)):"number"==typeof n?e._d=new Date(n):W.createFromInputFallback(e))}function N(e,t,n,i,r,o,a){a=new Date(e,t,n,i,r,o,a);return e<1970&&a.setFullYear(e),a}function M(e){var t=new Date(Date.UTC.apply(null,arguments));return e<1970&&t.setUTCFullYear(e),t}function L(e,t){if("string"==typeof e)if(isNaN(e)){if("number"!=typeof(e=t.weekdaysParse(e)))return null}else e=parseInt(e,10);return e}function P(e,t,n){var i=q(Math.abs(e)/1e3),r=q(i/60),o=q(r/60),a=q(o/24),s=q(a/365),s=(i<45?["s",i]:1===r&&["m"])||r<45&&["mm",r]||1===o&&["h"]||o<22&&["hh",o]||1===a&&["d"]||a<=25&&["dd",a]||a<=45&&["M"]||a<345&&["MM",q(a/30)]||1===s&&["y"]||["yy",s];return s[2]=t,s[3]=0<e,s[4]=n,function(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}.apply({},s)}function I(e,t,n){t=n-t,n-=e.day();return t<n&&(n-=7),n<t-7&&(n+=7),n=W(e).add("d",n),{week:Math.ceil(n.dayOfYear()/7),year:n.year()}}function j(e,t,n,i,r){var o=M(e,0,1).getUTCDay();return{year:0<(r=7*(t-1)+((n=null!=n?n:r)-r)+(r-o+(i<o?7:0)-(o<r?7:0))+1)?e:e-1,dayOfYear:0<r?r:y(e-1)+r}}function $(e){var t=e._i,n=e._f;return null===t||n===u&&""===t?W.invalid({nullInput:!0}):("string"==typeof t&&(e._i=t=T().preparse(t)),W.isMoment(t)?(e=function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&ee.hasOwnProperty(t)&&(n[t]=e[t]);return n}(t))._d=new Date(+t._d):(n?d(n)?function(e){var t,n,i,r,o;if(0===e._f.length)return e._pf.invalidFormat=!0,e._d=new Date(NaN);for(r=0;r<e._f.length;r++)o=0,(t=s({},e))._pf=a(),t._f=e._f[r],D(t),_(t)&&(o+=t._pf.charsLeftOver,o+=10*t._pf.unusedTokens.length,t._pf.score=o,(null==i||o<i)&&(i=o,n=t));s(e,n||t)}:D:O)(e),new i(e))}function F(e,t){var n;return"string"==typeof t&&"number"!=typeof(t=e.lang().monthsParse(t))||(n=Math.min(e.date(),v(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n)),e}function R(e,t){return e._d["get"+(e._isUTC?"UTC":"")+t]()}function z(e,t,n){return"Month"===t?F(e,n):e._d["set"+(e._isUTC?"UTC":"")+t](n)}function H(t,n){return function(e){return null!=e?(z(this,t,e),W.updateOffset(this,n),this):R(this,t)}}function B(e,t){W.duration.fn["as"+e]=function(){return+this/t}}for(var W,U,q=Math.round,K=0,Y=1,G=2,V=3,X=4,J=5,Z=6,Q={},ee={_isAMomentObject:null,_i:null,_f:null,_l:null,_strict:null,_isUTC:null,_offset:null,_pf:null,_lang:null},te=void 0!==je&&je.exports,ne=/^\/?Date\((\-?\d+)/i,ie=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,re=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,oe=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|X|zz?|ZZ?|.)/g,ae=/(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g,se=/\d\d?/,le=/\d{1,3}/,ue=/\d{1,4}/,ce=/[+\-]?\d{1,6}/,fe=/\d+/,de=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,pe=/Z|[\+\-]\d\d:?\d\d/gi,he=/T/i,me=/[\+\-]?\d+(\.\d{1,3})?/,ge=/\d{1,2}/,ve=/\d/,ye=/\d\d/,be=/\d{3}/,we=/\d{4}/,_e=/[+-]?\d{6}/,xe=/[+-]?\d+/,Ce=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Te=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],ke=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],Ee=/([\+\-]|\d\d)/gi,Se=("Date|Hours|Minutes|Seconds|Milliseconds".split("|"),{Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6}),Ae={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",Q:"quarter",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},De={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},Oe={},Ne="DDD w W M D d".split(" "),Me="M D H h m s w W".split(" "),Le={M:function(){return this.month()+1},MMM:function(e){return this.lang().monthsShort(this,e)},MMMM:function(e){return this.lang().months(this,e)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(e){return this.lang().weekdaysMin(this,e)},ddd:function(e){return this.lang().weekdaysShort(this,e)},dddd:function(e){return this.lang().weekdays(this,e)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return c(this.year()%100,2)},YYYY:function(){return c(this.year(),4)},YYYYY:function(){return c(this.year(),5)},YYYYYY:function(){var e=this.year();return(0<=e?"+":"-")+c(Math.abs(e),6)},gg:function(){return c(this.weekYear()%100,2)},gggg:function(){return c(this.weekYear(),4)},ggggg:function(){return c(this.weekYear(),5)},GG:function(){return c(this.isoWeekYear()%100,2)},GGGG:function(){return c(this.isoWeekYear(),4)},GGGGG:function(){return c(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.lang().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.lang().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return g(this.milliseconds()/100)},SS:function(){return c(g(this.milliseconds()/10),2)},SSS:function(){return c(this.milliseconds(),3)},SSSS:function(){return c(this.milliseconds(),3)},Z:function(){var e=-this.zone(),t="+";return e<0&&(e=-e,t="-"),t+c(g(e/60),2)+":"+c(g(e)%60,2)},ZZ:function(){var e=-this.zone(),t="+";return e<0&&(e=-e,t="-"),t+c(g(e/60),2)+c(g(e)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},X:function(){return this.unix()},Q:function(){return this.quarter()}},Pe=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];Ne.length;)U=Ne.pop(),Le[U+"o"]=function(t,n){return function(e){return this.lang().ordinal(t.call(this,e),n)}}(Le[U],U);for(;Me.length;)U=Me.pop(),Le[U+U]=t(Le[U],2);for(Le.DDDD=t(Le.DDD,3),s(r.prototype,{set:function(e){var t,n;for(n in e)"function"==typeof(t=e[n])?this[n]=t:this["_"+n]=t},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(e){return this._months[e.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(e){return this._monthsShort[e.month()]},monthsParse:function(e){var t,n;for(this._monthsParse||(this._monthsParse=[]),t=0;t<12;t++)if(this._monthsParse[t]||(n=W.utc([2e3,t]),n="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[t]=new RegExp(n.replace(".",""),"i")),this._monthsParse[t].test(e))return t},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(e){return this._weekdays[e.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(e){return this._weekdaysShort[e.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(e){return this._weekdaysMin[e.day()]},weekdaysParse:function(e){var t,n;for(this._weekdaysParse||(this._weekdaysParse=[]),t=0;t<7;t++)if(this._weekdaysParse[t]||(n=W([2e3,1]).day(t),n="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[t]=new RegExp(n.replace(".",""),"i")),this._weekdaysParse[t].test(e))return t},_longDateFormat:{LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D YYYY",LLL:"MMMM D YYYY LT",LLLL:"dddd, MMMM D YYYY LT"},longDateFormat:function(e){var t=this._longDateFormat[e];return!t&&this._longDateFormat[e.toUpperCase()]&&(t=this._longDateFormat[e.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e]=t),t},isPM:function(e){return"p"===(e+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(e,t){e=this._calendar[e];return"function"==typeof e?e.apply(t):e},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(e,t,n,i){var r=this._relativeTime[n];return"function"==typeof r?r(e,t,n,i):r.replace(/%d/i,e)},pastFuture:function(e,t){e=this._relativeTime[0<e?"future":"past"];return"function"==typeof e?e(t):e.replace(/%s/i,t)},ordinal:function(e){return this._ordinal.replace("%d",e)},_ordinal:"%d",preparse:function(e){return e},postformat:function(e){return e},week:function(e){return I(e,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),(W=function(e,t,n,i){var r;return"boolean"==typeof n&&(i=n,n=u),(r={_isAMomentObject:!0})._i=e,r._f=t,r._l=n,r._strict=i,r._isUTC=!1,r._pf=a(),$(r)}).suppressDeprecationWarnings=!1,W.createFromInputFallback=e("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(e){e._d=new Date(e._i)}),W.utc=function(e,t,n,i){var r;return"boolean"==typeof n&&(i=n,n=u),(r={_isAMomentObject:!0,_useUTC:!0,_isUTC:!0})._l=n,r._i=e,r._f=t,r._strict=i,r._pf=a(),$(r).utc()},W.unix=function(e){return W(1e3*e)},W.duration=function(e,t){var n,i=e,r=null;return W.isDuration(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(i={},t?i[t]=e:i.milliseconds=e):(r=ie.exec(e))?(n="-"===r[1]?-1:1,i={y:0,d:g(r[G])*n,h:g(r[V])*n,m:g(r[X])*n,s:g(r[J])*n,ms:g(r[Z])*n}):(r=re.exec(e))&&(n="-"===r[1]?-1:1,i={y:(t=function(e){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*n})(r[2]),M:t(r[3]),d:t(r[4]),h:t(r[5]),m:t(r[6]),s:t(r[7]),w:t(r[8])}),i=new o(i),W.isDuration(e)&&e.hasOwnProperty("_lang")&&(i._lang=e._lang),i},W.version="2.6.0",W.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",W.momentProperties=ee,W.updateOffset=function(){},W.lang=function(e,t){var n,i;return e?(t?(n=x(e),(i=t).abbr=n,Q[n]||(Q[n]=new r),Q[n].set(i),Q[n]):null===t?(delete Q[e],e="en"):Q[e]||T(e),(W.duration.fn._lang=W.fn._lang=T(e))._abbr):W.fn._lang._abbr},W.langData=function(e){return T(e=e&&e._lang&&e._lang._abbr?e._lang._abbr:e)},W.isMoment=function(e){return e instanceof i||null!=e&&e.hasOwnProperty("_isAMomentObject")},W.isDuration=function(e){return e instanceof o},U=Pe.length-1;0<=U;--U)!function(a){var s,l;if(0===a.indexOf("week"))s=7,l="day";else{if(0!==a.indexOf("month"))return;s=12,l="month"}W[a]=function(t,e){var n,i,r=W.fn._lang[a],o=[];if("number"==typeof t&&(e=t,t=u),i=function(e){e=W().utc().set(l,e);return r.call(W.fn._lang,e,t||"")},null!=e)return i(e);for(n=0;n<s;n++)o.push(i(n));return o}}(Pe[U]);for(U in W.normalizeUnits=h,W.invalid=function(e){var t=W.utc(NaN);return null!=e?s(t._pf,e):t._pf.userInvalidated=!0,t},W.parseZone=function(){return W.apply(null,arguments).parseZone()},W.parseTwoDigitYear=function(e){return g(e)+(68<g(e)?1900:2e3)},s(W.fn=i.prototype,{clone:function(){return W(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().lang("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var e=W(this).utc();return 0<e.year()&&e.year()<=9999?k(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):k(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){return[this.year(),this.month(),this.date(),this.hours(),this.minutes(),this.seconds(),this.milliseconds()]},isValid:function(){return _(this)},isDSTShifted:function(){return!!this._a&&(this.isValid()&&0<p(this._a,(this._isUTC?W.utc(this._a):W(this._a)).toArray()))},parsingFlags:function(){return s({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(){return this.zone(0)},local:function(){return this.zone(0),this._isUTC=!1,this},format:function(e){e=k(this,e||W.defaultFormat);return this.lang().postformat(e)},add:function(e,t){t="string"==typeof e?W.duration(+t,e):W.duration(e,t);return f(this,t,1),this},subtract:function(e,t){t="string"==typeof e?W.duration(+t,e):W.duration(e,t);return f(this,t,-1),this},diff:function(e,t,n){var i,r,o=C(e,this),e=6e4*(this.zone()-o.zone());return"year"===(t=h(t))||"month"===t?(i=432e5*(this.daysInMonth()+o.daysInMonth()),r=12*(this.year()-o.year())+(this.month()-o.month()),r+=(this-W(this).startOf("month")-(o-W(o).startOf("month")))/i,r-=6e4*(this.zone()-W(this).startOf("month").zone()-(o.zone()-W(o).startOf("month").zone()))/i,"year"===t&&(r/=12)):(i=this-o,r="second"===t?i/1e3:"minute"===t?i/6e4:"hour"===t?i/36e5:"day"===t?(i-e)/864e5:"week"===t?(i-e)/6048e5:i),n?r:l(r)},from:function(e,t){return W.duration(this.diff(e)).lang(this.lang()._abbr).humanize(!t)},fromNow:function(e){return this.from(W(),e)},calendar:function(){var e=C(W(),this).startOf("day"),e=this.diff(e,"days",!0),e=e<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse";return this.format(this.lang().calendar(e,this))},isLeapYear:function(){return b(this.year())},isDST:function(){return this.zone()<this.clone().month(0).zone()||this.zone()<this.clone().month(5).zone()},day:function(e){var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=L(e,this.lang()),this.add({d:e-t})):t},month:H("Month",!0),startOf:function(e){switch(e=h(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e?this.weekday(0):"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this},endOf:function(e){return e=h(e),this.startOf(e).add("isoWeek"===e?"week":e,1).subtract("ms",1)},isAfter:function(e,t){return t=void 0!==t?t:"millisecond",+this.clone().startOf(t)>+W(e).startOf(t)},isBefore:function(e,t){return t=void 0!==t?t:"millisecond",+this.clone().startOf(t)<+W(e).startOf(t)},isSame:function(e,t){return t=t||"ms",+this.clone().startOf(t)==+C(e,this).startOf(t)},min:function(e){return(e=W.apply(null,arguments))<this?this:e},max:function(e){return this<(e=W.apply(null,arguments))?this:e},zone:function(e,t){var n=this._offset||0;return null==e?this._isUTC?n:this._d.getTimezoneOffset():("string"==typeof e&&(e=S(e)),Math.abs(e)<16&&(e*=60),this._offset=e,this._isUTC=!0,n!==e&&(!t||this._changeInProgress?f(this,W.duration(n-e,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,W.updateOffset(this,!0),this._changeInProgress=null)),this)},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.zone(this._tzm):"string"==typeof this._i&&this.zone(this._i),this},hasAlignedHourOffset:function(e){return e=e?W(e).zone():0,(this.zone()-e)%60==0},daysInMonth:function(){return v(this.year(),this.month())},dayOfYear:function(e){var t=q((W(this).startOf("day")-W(this).startOf("year"))/864e5)+1;return null==e?t:this.add("d",e-t)},quarter:function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},weekYear:function(e){var t=I(this,this.lang()._week.dow,this.lang()._week.doy).year;return null==e?t:this.add("y",e-t)},isoWeekYear:function(e){var t=I(this,1,4).year;return null==e?t:this.add("y",e-t)},week:function(e){var t=this.lang().week(this);return null==e?t:this.add("d",7*(e-t))},isoWeek:function(e){var t=I(this,1,4).week;return null==e?t:this.add("d",7*(e-t))},weekday:function(e){var t=(this.day()+7-this.lang()._week.dow)%7;return null==e?t:this.add("d",e-t)},isoWeekday:function(e){return null==e?this.day()||7:this.day(this.day()%7?e:e-7)},isoWeeksInYear:function(){return n(this.year(),1,4)},weeksInYear:function(){var e=this._lang._week;return n(this.year(),e.dow,e.doy)},get:function(e){return this[e=h(e)]()},set:function(e,t){return"function"==typeof this[e=h(e)]&&this[e](t),this},lang:function(e){return e===u?this._lang:(this._lang=T(e),this)}}),W.fn.millisecond=W.fn.milliseconds=H("Milliseconds",!1),W.fn.second=W.fn.seconds=H("Seconds",!1),W.fn.minute=W.fn.minutes=H("Minutes",!1),W.fn.hour=W.fn.hours=H("Hours",!0),W.fn.date=H("Date",!0),W.fn.dates=e("dates accessor is deprecated. Use date instead.",H("Date",!0)),W.fn.year=H("FullYear",!0),W.fn.years=e("years accessor is deprecated. Use year instead.",H("FullYear",!0)),W.fn.days=W.fn.day,W.fn.months=W.fn.month,W.fn.weeks=W.fn.week,W.fn.isoWeeks=W.fn.isoWeek,W.fn.quarters=W.fn.quarter,W.fn.toJSON=W.fn.toISOString,s(W.duration.fn=o.prototype,{_bubble:function(){var e=this._milliseconds,t=this._days,n=this._months,i=this._data;i.milliseconds=e%1e3,e=l(e/1e3),i.seconds=e%60,e=l(e/60),i.minutes=e%60,e=l(e/60),i.hours=e%24,t+=l(e/24),i.days=t%30,n+=l(t/30),i.months=n%12,n=l(n/12),i.years=n},weeks:function(){return l(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*g(this._months/12)},humanize:function(e){var t=+this,n=P(t,!e,this.lang());return e&&(n=this.lang().pastFuture(t,n)),this.lang().postformat(n)},add:function(e,t){t=W.duration(e,t);return this._milliseconds+=t._milliseconds,this._days+=t._days,this._months+=t._months,this._bubble(),this},subtract:function(e,t){t=W.duration(e,t);return this._milliseconds-=t._milliseconds,this._days-=t._days,this._months-=t._months,this._bubble(),this},get:function(e){return this[(e=h(e)).toLowerCase()+"s"]()},as:function(e){return this["as"+(e=h(e)).charAt(0).toUpperCase()+e.slice(1)+"s"]()},lang:W.fn.lang,toIsoString:function(){var e=Math.abs(this.years()),t=Math.abs(this.months()),n=Math.abs(this.days()),i=Math.abs(this.hours()),r=Math.abs(this.minutes()),o=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(e?e+"Y":"")+(t?t+"M":"")+(n?n+"D":"")+(i||r||o?"T":"")+(i?i+"H":"")+(r?r+"M":"")+(o?o+"S":""):"P0D"}}),Se)Se.hasOwnProperty(U)&&(B(U,Se[U]),function(e){W.duration.fn[e]=function(){return this._data[e]}}(U.toLowerCase()));B("Weeks",6048e5),W.duration.fn.asMonths=function(){return(+this-31536e6*this.years())/2592e6+12*this.years()},W.lang("en",{ordinal:function(e){var t=e%10;return e+(1===g(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),Ie.moment=W}.call(this)}var je=this;e(),je.resolveWith(e)}),function(){var moduleFactory=function($){var module=this,jQuery=$,exports=function(){function hza(e){return eza.getElementById(e)}var dza,eza,fza,AAa,BAa,CAa,DAa,FAa,EAa;function IAa(e,t,n){var i=e.naturalWidth,r=e.naturalHeight,o=n.width,a=n.height,s=t.getContext("2d");s.save(),function(e){var t=e.naturalWidth;if(1048576<t*e.naturalHeight){var n=BAa.createElement("canvas");n.width=n.height=1;n=n.getContext("2d");return n.drawImage(e,1-t,0),0===n.getImageData(0,0,1,1).data[3]}return!1}(e)&&(i/=2,r/=2);var l=BAa.createElement("canvas");l.width=l.height=1024;for(var u=l.getContext("2d"),c=function(e,t){var n=BAa.createElement("canvas");n.width=1,n.height=t,(n=n.getContext("2d")).drawImage(e,0,0);for(var i=n.getImageData(0,0,1,t).data,r=0,o=t,a=t;r<a;)0===i[4*(a-1)+3]?o=a:r=a,a=o+r>>1;return 0==(t=a/t)?1:t}(e,r),f=0;f<r;){for(var d=r<f+1024?r-f:1024,p=0;p<i;){var h=i<p+1024?i-p:1024;u.clearRect(0,0,1024,1024),u.drawImage(e,-p,-f);var m=p*o/i<<0,g=Math.ceil(h*o/i),v=f*a/r/c<<0,y=Math.ceil(d*a/r/c);s.drawImage(l,0,0,h,d,m,v,g,y),p+=1024}f+=1024}s.restore()}function KAa(e,t){var n;if(!("FileReader"in AAa))return t(e.getAsBinary());(n=new FileReader).readAsBinaryString(e),n.onload=function(){t(n.result)}}function LAa(o,a,s,l){var u,c,f,d=this;!function(e,t){var n;if(!("FileReader"in AAa))return t(e.getAsDataURL());(n=new FileReader).readAsDataURL(e),n.onload=function(){t(n.result)}}(EAa[o.id],function(r){(u=BAa.createElement("canvas")).style.display="none",BAa.body.appendChild(u),(c=new Image).onerror=c.onabort=function(){l({success:!1})},c.onload=function(){var e,t,n,i;if(a.width||(a.width=c.width),a.height||(a.height=c.height),(f=Math.min(a.width/c.width,a.height/c.height))<1)e=Math.round(c.width*f),t=Math.round(c.height*f);else{if(!a.quality||"image/jpeg"!==s)return void l({success:!1});e=c.width,t=c.height}if(u.width=e,u.height=t,IAa(c,u,{width:e,height:t}),"image/jpeg"===s&&(n=new NAa(atob(r.substring(r.indexOf("base64,")+7)))).headers&&n.headers.length&&(i=new OAa).init(n.get("exif")[0])&&(i.setExif("PixelXDimension",e),i.setExif("PixelYDimension",t),n.set("exif",i.getBinary()),d.hasEventListener("ExifData")&&d.trigger("ExifData",o,i.EXIF()),d.hasEventListener("GpsData")&&d.trigger("GpsData",o,i.GPS())),a.quality&&"image/jpeg"===s)try{r=u.toDataURL(s,a.quality/100)}catch(e){r=u.toDataURL(s)}else r=u.toDataURL(s);r=r.substring(r.indexOf("base64,")+7),r=atob(r),n&&n.headers&&n.headers.length&&(r=n.restore(r),n.purge()),u.parentNode.removeChild(u),l({success:!0,data:r})},c.src=r})}function MAa(){function i(e,t){for(var n=s?0:-8*(t-1),i=0,r=0;r<t;r++)i|=o.charCodeAt(e+r)<<Math.abs(n+8*r);return i}function a(e,t,n){n=3===arguments.length?n:o.length-t-1;o=o.substr(0,t)+e+o.substr(n+t)}var o,s=!1;return{II:function(e){if(e===DAa)return s;s=e},init:function(e){s=!1,o=e},SEGMENT:function(e,t,n){switch(arguments.length){case 1:return o.substr(e,o.length-e-1);case 2:return o.substr(e,t);case 3:a(n,e,t);break;default:return o}},BYTE:function(e){return i(e,1)},SHORT:function(e){return i(e,2)},LONG:function(e,t){if(t===DAa)return i(e,4);!function(e,t,n){for(var i="",r=s?0:-8*(n-1),o=0;o<n;o++)i+=String.fromCharCode(t>>Math.abs(r+8*o)&255);a(i,e,n)}(e,t,4)},SLONG:function(e){e=i(e,4);return 2147483647<e?e-4294967296:e},STRING:function(e,t){var n="";for(t+=e;e<t;e++)n+=String.fromCharCode(i(e,1));return n}}}function NAa(e){var o,t,n,i,r={65505:{app:"EXIF",name:"APP1",signature:"Exif\0"},65506:{app:"ICC",name:"APP2",signature:"ICC_PROFILE\0"},65517:{app:"IPTC",name:"APP13",signature:"Photoshop 3.0\0"}},a=[],s=new MAa;if(s.init(e),65496===s.SHORT(0)){for(o=2,i=Math.min(1048576,e.length);o<=i;)if(65488<=(t=s.SHORT(o))&&t<=65495)o+=2;else{if(65498===t||65497===t)break;n=s.SHORT(o+2)+2,r[t]&&s.STRING(o+4,r[t].signature.length)===r[t].signature&&a.push({hex:t,app:r[t].app.toUpperCase(),name:r[t].name.toUpperCase(),start:o,length:n,segment:s.SEGMENT(o,n)}),o+=n}return s.init(null),{headers:a,restore:function(e){s.init(e);var t=new NAa(e);if(!t.headers)return!1;for(var n=t.headers.length;0<n;n--){var i=t.headers[n-1];s.SEGMENT(i.start,i.length,"")}t.purge(),o=65504==s.SHORT(2)?4+s.SHORT(4):2;for(var n=0,r=a.length;n<r;n++)s.SEGMENT(o,0,a[n].segment),o+=a[n].length;return s.SEGMENT()},get:function(e){for(var t=[],n=0,i=a.length;n<i;n++)a[n].app===e.toUpperCase()&&t.push(a[n].segment);return t},set:function(e,t){var n=[];"string"==typeof t?n.push(t):n=t;for(var i=ii=0,r=a.length;i<r&&(a[i].app===e.toUpperCase()&&(a[i].segment=n[ii],a[i].length=n[ii].length,ii++),!(ii>=n.length));i++);},purge:function(){a=[],s.init(null)}}}}function OAa(){function r(e,t){for(var n,i,r,o,a,s=d.SHORT(e),l=[],u={},c=0;c<s;c++)if(o=e+12*c+2,(i=t[d.SHORT(o)])!==DAa){switch(a=d.SHORT(o+=2),r=d.LONG(o+=2),o+=4,l=[],a){case 1:case 7:for(4<r&&(o=d.LONG(o)+f.tiffHeader),n=0;n<r;n++)l[n]=d.BYTE(o+n);break;case 2:4<r&&(o=d.LONG(o)+f.tiffHeader),u[i]=d.STRING(o,r-1);continue;case 3:for(2<r&&(o=d.LONG(o)+f.tiffHeader),n=0;n<r;n++)l[n]=d.SHORT(o+2*n);break;case 4:for(1<r&&(o=d.LONG(o)+f.tiffHeader),n=0;n<r;n++)l[n]=d.LONG(o+4*n);break;case 5:for(o=d.LONG(o)+f.tiffHeader,n=0;n<r;n++)l[n]=d.LONG(o+4*n)/d.LONG(o+4*n+4);break;case 9:for(o=d.LONG(o)+f.tiffHeader,n=0;n<r;n++)l[n]=d.SLONG(o+4*n);break;case 10:for(o=d.LONG(o)+f.tiffHeader,n=0;n<r;n++)l[n]=d.SLONG(o+4*n)/d.SLONG(o+4*n+4);break;default:continue}a=1==r?l[0]:l,p.hasOwnProperty(i)&&"object"!=typeof a?u[i]=p[i][a]:u[i]=a}return u}var f={},d=new MAa,u={tiff:{274:"Orientation",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer"},exif:{36864:"ExifVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",36867:"DateTimeOriginal",33434:"ExposureTime",33437:"FNumber",34855:"ISOSpeedRatings",37377:"ShutterSpeedValue",37378:"ApertureValue",37383:"MeteringMode",37384:"LightSource",37385:"Flash",41986:"ExposureMode",41987:"WhiteBalance",41990:"SceneCaptureType",41988:"DigitalZoomRatio",41992:"Contrast",41993:"Saturation",41994:"Sharpness"},gps:{0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude"}},p={ColorSpace:{1:"sRGB",0:"Uncalibrated"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{1:"Daylight",2:"Fliorescent",3:"Tungsten",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 -5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire.",1:"Flash fired.",5:"Strobe return light not detected.",7:"Strobe return light detected.",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},ExposureMode:{0:"Auto exposure",1:"Manual exposure",2:"Auto bracket"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},GPSLatitudeRef:{N:"North latitude",S:"South latitude"},GPSLongitudeRef:{E:"East longitude",W:"West longitude"}};return{init:function(e){return f={tiffHeader:10},!(e===DAa||!e.length)&&(d.init(e),65505===d.SHORT(0)&&"EXIF\0"===d.STRING(4,5).toUpperCase()&&(e=f.tiffHeader,d.II(18761==d.SHORT(e)),42===d.SHORT(e+=2)&&(f.IFD0=f.tiffHeader+d.LONG(e+=2),e=r(f.IFD0,u.tiff),f.exifIFD="ExifIFDPointer"in e?f.tiffHeader+e.ExifIFDPointer:DAa,f.gpsIFD="GPSInfoIFDPointer"in e?f.tiffHeader+e.GPSInfoIFDPointer:DAa,!0)))},EXIF:function(){var e=r(f.exifIFD,u.exif);if(e.ExifVersion&&"array"===CAa.typeOf(e.ExifVersion)){for(var t=0,n="";t<e.ExifVersion.length;t++)n+=String.fromCharCode(e.ExifVersion[t]);e.ExifVersion=n}return e},GPS:function(){var e=r(f.gpsIFD,u.gps);return e.GPSVersionID&&(e.GPSVersionID=e.GPSVersionID.join(".")),e},setExif:function(e,t){return("PixelXDimension"===e||"PixelYDimension"===e)&&function(e,t,n){var r,o,a,s=0;if("string"==typeof t){var l=u[e.toLowerCase()];for(hex in l)if(l[hex]===t){t=hex;break}}for(r=f[e.toLowerCase()+"IFD"],o=d.SHORT(r),i=0;i<o;i++)if(a=r+12*i+2,d.SHORT(a)==t){s=a+8;break}return!!s&&(d.LONG(s,n),!0)}("exif",e,t)},getBinary:function(){return d.SEGMENT()}}}!function(){function a(){this.returnValue=!1}function s(){this.cancelBubble=!0}var c,l,n=0,f=[],t={},r={},i={"<":"lt",">":"gt","&":"amp",'"':"quot","'":"#39"},o=/[<>&\"\']/g,d=window.setTimeout,u={};!function(){for(var e,t,n="application/msword,doc dot,application/pdf,pdf,application/pgp-signature,pgp,application/postscript,ps ai eps,application/rtf,rtf,application/vnd.ms-excel,xls xlb,application/vnd.ms-powerpoint,ppt pps pot,application/zip,zip,application/x-shockwave-flash,swf swfl,application/vnd.openxmlformats-officedocument.wordprocessingml.document,docx,application/vnd.openxmlformats-officedocument.wordprocessingml.template,dotx,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,xlsx,application/vnd.openxmlformats-officedocument.presentationml.presentation,pptx,application/vnd.openxmlformats-officedocument.presentationml.template,potx,application/vnd.openxmlformats-officedocument.presentationml.slideshow,ppsx,application/x-javascript,js,application/json,json,audio/mpeg,mpga mpega mp2 mp3,audio/x-wav,wav,audio/mp4,m4a,image/bmp,bmp,image/gif,gif,image/jpeg,jpeg jpg jpe,image/photoshop,psd,image/png,png,image/svg+xml,svg svgz,image/tiff,tiff tif,text/plain,asc txt text diff log,text/html,htm html xhtml,text/css,css,text/csv,csv,text/rtf,rtf,video/mpeg,mpeg mpg mpe m2v,video/quicktime,qt mov,video/mp4,mp4,video/x-m4v,m4v,video/x-flv,flv,video/x-ms-wmv,wmv,video/avi,avi,video/webm,webm,video/3gpp,3gp,video/3gpp2,3g2,video/vnd.rn-realvideo,rv,application/vnd.oasis.opendocument.formula-template,otf,application/octet-stream,exe,.rar,rar".split(/,/),i=0;i<n.length;i+=2)for(t=n[i+1].split(/ /),e=0;e<t.length;e++)r[t[e]]=n[i]}();var e,p,h,m,g,v={VERSION:"@@version@@",STOPPED:1,STARTED:2,QUEUED:1,UPLOADING:2,FAILED:4,DONE:5,GENERIC_ERROR:-100,HTTP_ERROR:-200,IO_ERROR:-300,SECURITY_ERROR:-400,INIT_ERROR:-500,FILE_SIZE_ERROR:-600,FILE_EXTENSION_ERROR:-601,IMAGE_FORMAT_ERROR:-700,IMAGE_MEMORY_ERROR:-701,IMAGE_DIMENSIONS_ERROR:-702,mimeTypes:r,ua:(e=navigator,p=e.userAgent,h=e.vendor,m=/WebKit/.test(p),g=m&&-1!==h.indexOf("Apple"),h=window.opera&&window.opera.buildNumber,{windows:-1!==navigator.platform.indexOf("Win"),android:/Android/.test(p),ie:!m&&!h&&/MSIE/gi.test(p)&&/Explorer/gi.test(e.appName),webkit:m,gecko:!m&&/Gecko/.test(p),safari:g,opera:!!h}),typeOf:function(e){return{}.toString.call(e).match(/\s([a-z|A-Z]+)/)[1].toLowerCase()},extend:function(n){return v.each(arguments,function(e,t){0<t&&v.each(e,function(e,t){n[t]=e})}),n},cleanName:function(e){for(var t=[/[\300-\306]/g,"A",/[\340-\346]/g,"a",/\307/g,"C",/\347/g,"c",/[\310-\313]/g,"E",/[\350-\353]/g,"e",/[\314-\317]/g,"I",/[\354-\357]/g,"i",/\321/g,"N",/\361/g,"n",/[\322-\330]/g,"O",/[\362-\370]/g,"o",/[\331-\334]/g,"U",/[\371-\374]/g,"u"],n=0;n<t.length;n+=2)e=e.replace(t[n],t[n+1]);return e=(e=e.replace(/\s+/g,"_")).replace(/[^a-z0-9_\-\.]+/gi,"")},addRuntime:function(e,t){return t.name=e,f[e]=t,f.push(t),t},guid:function(){for(var e=(new Date).getTime().toString(32),t=0;t<5;t++)e+=Math.floor(65535*Math.random()).toString(32);return(v.guidPrefix||"p")+e+(n++).toString(32)},buildUrl:function(e,t){var n="";return v.each(t,function(e,t){n+=(n?"&":"")+encodeURIComponent(t)+"="+encodeURIComponent(e)}),n&&(e+=(0<e.indexOf("?")?"&":"?")+n),e},each:function(e,t){var n,i,r;if(e)if((n=e.length)===c){for(i in e)if(e.hasOwnProperty(i)&&!1===t(e[i],i))return}else for(r=0;r<n;r++)if(!1===t(e[r],r))return},formatSize:function(e){return e===c||/\D/.test(e)?v.translate("N/A"):1073741824<e?Math.round(e/1073741824,1)+" GB":1048576<e?Math.round(e/1048576,1)+" MB":1024<e?Math.round(e/1024,1)+" KB":e+" b"},getPos:function(e,t){function n(e){var t,n=0,i=0;return e&&(t=e.getBoundingClientRect(),e="CSS1Compat"===l.compatMode?l.documentElement:l.body,n=t.left+e.scrollLeft,i=t.top+e.scrollTop),{x:n,y:i}}var i,r,o,a=0,s=0,l=document;if(t=t||l.body,e&&e.getBoundingClientRect&&v.ua.ie&&(!l.documentMode||l.documentMode<8))return r=n(e),o=n(t),{x:r.x-o.x,y:r.y-o.y};for(i=e;i&&i!=t&&i.nodeType;)a+=i.offsetLeft||0,s+=i.offsetTop||0,i=i.offsetParent;for(i=e.parentNode;i&&i!=t&&i.nodeType;)a-=i.scrollLeft||0,s-=i.scrollTop||0,i=i.parentNode;return{x:a,y:s}},getSize:function(e){return{w:e.offsetWidth||e.clientWidth,h:e.offsetHeight||e.clientHeight}},parseSize:function(e){var t;return"string"==typeof e&&(t=(e=/^([0-9]+)([mgk]?)$/.exec(e.toLowerCase().replace(/[^0-9mkg]/g,"")))[2],e=+e[1],"g"==t&&(e*=1073741824),"m"==t&&(e*=1048576),"k"==t&&(e*=1024)),e},xmlEncode:function(e){return e&&(""+e).replace(o,function(e){return i[e]?"&"+i[e]+";":e})},toArray:function(e){for(var t=[],n=0;n<e.length;n++)t[n]=e[n];return t},inArray:function(e,t){if(t){if(Array.prototype.indexOf)return Array.prototype.indexOf.call(t,e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1},addI18n:function(e){return v.extend(t,e)},translate:function(e){return t[e]||e},isEmptyObj:function(e){if(e===c)return!0;for(var t in e)return!1;return!0},hasClass:function(e,t){return""!=e.className&&new RegExp("(^|\\s+)"+t+"(\\s+|$)").test(e.className)},addClass:function(e,t){v.hasClass(e,t)||(e.className=""==e.className?t:e.className.replace(/\s+$/,"")+" "+t)},removeClass:function(e,t){t=new RegExp("(^|\\s+)"+t+"(\\s+|$)");e.className=e.className.replace(t,function(e,t,n){return" "===t&&" "===n?" ":""})},getStyle:function(e,t){return e.currentStyle?e.currentStyle[t]:window.getComputedStyle?window.getComputedStyle(e,null)[t]:void 0},addEvent:function(e,t,n){var i,r,o=arguments[3];t=t.toLowerCase(),l===c&&(l="Plupload_"+v.guid()),e.addEventListener?e.addEventListener(t,i=n,!1):e.attachEvent&&e.attachEvent("on"+t,i=function(){var e=window.event;e.target||(e.target=e.srcElement),e.preventDefault=a,e.stopPropagation=s,n(e)}),e[l]===c&&(e[l]=v.guid()),u.hasOwnProperty(e[l])||(u[e[l]]={}),(r=u[e[l]]).hasOwnProperty(t)||(r[t]=[]),r[t].push({func:i,orig:n,key:o})},removeEvent:function(t,e){var n,i;if("function"==typeof arguments[2]?n=arguments[2]:i=arguments[2],e=e.toLowerCase(),t[l]&&u[t[l]]&&u[t[l]][e]){for(var r,o=(r=u[t[l]][e]).length-1;0<=o&&(r[o].key!==i&&r[o].orig!==n||(t.removeEventListener?t.removeEventListener(e,r[o].func,!1):t.detachEvent&&t.detachEvent("on"+e,r[o].func),r[o].orig=null,r[o].func=null,r.splice(o,1),n===c));o--);if(r.length||delete u[t[l]][e],v.isEmptyObj(u[t[l]])){delete u[t[l]];try{delete t[l]}catch(e){t[l]=c}}}},removeAllEvents:function(n){var i=arguments[1];n[l]!==c&&n[l]&&v.each(u[n[l]],function(e,t){v.removeEvent(n,t,i)})}};v.Uploader=function(l){function n(){var e,t,n=0;if(this.state==v.STARTED){for(t=0;t<u.length;t++)e||u[t].status!=v.QUEUED?n++:((e=u[t]).status=v.UPLOADING,this.trigger("BeforeUpload",e)&&this.trigger("UploadFile",e));n==u.length&&(this.stop(),this.trigger("UploadComplete",u))}}function i(){var e,t;for(a.reset(),e=0;e<u.length;e++)(t=u[e]).size!==c?(a.size+=t.size,a.loaded+=t.loaded):a.size=c,t.status==v.DONE?a.uploaded++:t.status==v.FAILED?a.failed++:a.queued++;a.size===c?a.percent=0<u.length?Math.ceil(a.uploaded/u.length*100):0:(a.bytesPerSec=Math.ceil(a.loaded/((+new Date-r||1)/1e3)),a.percent=0<a.size?Math.ceil(a.loaded/a.size*100):0)}var r,e,o={},u=[],a=new v.QueueProgress;l=v.extend({chunk_size:0,multipart:!0,multi_selection:!0,file_data_name:"file",filters:[]},l),v.extend(this,{state:v.STOPPED,runtime:"",features:{},files:u,settings:l,total:a,id:v.guid(),init:function(){var t,o,e,s=this,a=0;if("function"==typeof l.preinit?l.preinit(s):v.each(l.preinit,function(e,t){s.bind(t,e)}),l.page_url=l.page_url||document.location.pathname.replace(/\/[^\/]+$/g,"/"),/^(\w+:\/\/|\/)/.test(l.url)||(l.url=l.page_url+l.url),l.chunk_size=v.parseSize(l.chunk_size),l.max_file_size=v.parseSize(l.max_file_size),s.bind("FilesAdded",function(e,t){var n,i,r,o=0,a=l.filters;for(a&&a.length&&(r=[],v.each(a,function(e){v.each(e.extensions.split(/,/),function(e){/^\s*\*\s*$/.test(e)?r.push("\\.*"):r.push("\\."+e.replace(new RegExp("["+"/^$.*+?|()[]{}\\".replace(/./g,"\\$&")+"]","g"),"\\$&"))})}),r=new RegExp(r.join("|")+"$","i")),n=0;n<t.length;n++)(i=t[n]).loaded=0,i.percent=0,i.status=v.QUEUED,!r||r.test(i.name)?i.size!==c&&i.size>l.max_file_size?e.trigger("Error",{code:v.FILE_SIZE_ERROR,message:v.translate("File size error."),file:i}):(u.push(i),o++):e.trigger("Error",{code:v.FILE_EXTENSION_ERROR,message:v.translate("File extension error."),file:i});if(!o)return!1;d(function(){s.trigger("QueueChanged"),s.refresh()},1)}),l.unique_names&&s.bind("UploadFile",function(e,t){var n=t.name.match(/\.([^.]+)$/),i="tmp";n&&(i=n[1]),t.target_name=t.id+"."+i}),s.bind("UploadProgress",function(e,t){t.percent=0<t.size?Math.ceil(t.loaded/t.size*100):100,i()}),s.bind("StateChanged",function(e){if(e.state==v.STARTED)r=+new Date;else if(e.state==v.STOPPED)for(t=e.files.length-1;0<=t;t--)e.files[t].status==v.UPLOADING&&(e.files[t].status=v.QUEUED,i())}),s.bind("QueueChanged",i),s.bind("Error",function(e,t){t.file&&(t.file.status=v.FAILED,i(),e.state==v.STARTED&&d(function(){n.call(s)},1))}),s.bind("FileUploaded",function(e,t){t.status=v.DONE,t.loaded=t.size,e.trigger("UploadProgress",t),d(function(){n.call(s)},1)}),l.runtimes)for(o=[],e=l.runtimes.split(/\s?,\s?/),t=0;t<e.length;t++)f[e[t]]&&o.push(f[e[t]]);else o=f;!function t(){var n,e,i,r=o[a++];if(r){if(n=r.getFeatures(),e=s.settings.required_features)for(e=e.split(","),i=0;i<e.length;i++)if(!n[e[i]])return void t();r.init(s,function(e){e&&e.success?(s.features=n,s.runtime=r.name,s.trigger("Init",{runtime:r.name}),s.trigger("PostInit"),s.refresh()):t()})}else s.trigger("Error",{code:v.INIT_ERROR,message:v.translate("Init error.")})}(),"function"==typeof l.init?l.init(s):v.each(l.init,function(e,t){s.bind(t,e)})},refresh:function(){this.trigger("Refresh")},start:function(){u.length&&this.state!=v.STARTED&&(this.state=v.STARTED,this.trigger("StateChanged"),n.call(this))},stop:function(){this.state!=v.STOPPED&&(this.state=v.STOPPED,this.trigger("CancelUpload"),this.trigger("StateChanged"))},disableBrowse:function(){e=arguments[0]===c||arguments[0],this.trigger("DisableBrowse",e)},getFile:function(e){for(var t=u.length-1;0<=t;t--)if(u[t].id===e)return u[t]},removeFile:function(e){for(var t=u.length-1;0<=t;t--)if(u[t].id===e.id)return this.splice(t,1)[0]},splice:function(e,t){t=u.splice(e===c?0:e,t===c?u.length:t);return this.trigger("FilesRemoved",t),this.trigger("QueueChanged"),t},trigger:function(e){var t,n,i=o[e.toLowerCase()];if(i)for((n=Array.prototype.slice.call(arguments))[0]=this,t=0;t<i.length;t++)if(!1===i[t].func.apply(i[t].scope,n))return!1;return!0},hasEventListener:function(e){return!!o[e.toLowerCase()]},bind:function(e,t,n){var i;e=e.toLowerCase(),(i=o[e]||[]).push({func:t,scope:n||this}),o[e]=i},unbind:function(e){e=e.toLowerCase();var t,n=o[e],i=arguments[1];if(n){if(i!==c){for(t=n.length-1;0<=t;t--)if(n[t].func===i){n.splice(t,1);break}}else n=[];n.length||delete o[e]}},unbindAll:function(){var n=this;v.each(o,function(e,t){n.unbind(t)})},destroy:function(){this.stop(),this.trigger("Destroy"),this.unbindAll()}})},v.File=function(e,t,n){this.id=e,this.name=t,this.size=n,this.loaded=0,this.percent=0,this.status=0},v.Runtime=function(){this.getFeatures=function(){},this.init=function(e,t){}},v.QueueProgress=function(){var e=this;e.size=0,e.loaded=0,e.uploaded=0,e.failed=0,e.queued=0,e.percent=0,e.bytesPerSec=0,e.reset=function(){e.size=e.loaded=e.uploaded=e.failed=e.queued=e.percent=e.bytesPerSec=0}},v.runtimes={},$.plupload=v}(),dza=window,eza=document,fza=$.plupload,fza.runtimes.Html4=fza.addRuntime("html4",{getFeatures:function(){return{multipart:!0,triggerDialog:fza.ua.gecko&&dza.FormData||fza.ua.webkit}},init:function(h,e){h.bind("Init",function(a){var n,r,s,e,t,i,o,l=eza.body,u="javascript",c=[],f=/MSIE/.test(navigator.userAgent),d=[],p=a.settings.filters;e:for(e=0;e<p.length;e++)for(t=p[e].extensions.split(/,/),o=0;o<t.length;o++){if("*"===t[o]){d=[];break e}(i=fza.mimeTypes[t[o]])&&-1===fza.inArray(i,d)&&d.push(i)}d=d.join(","),a.settings.container&&(l=hza(a.settings.container),"static"===fza.getStyle(l,"position")&&(l.style.position="relative")),a.bind("UploadFile",function(e,t){var i;t.status!=fza.DONE&&t.status!=fza.FAILED&&e.state!=fza.STOPPED&&(i=hza("form_"+t.id),hza("input_"+t.id).setAttribute("name",e.settings.file_data_name),i.setAttribute("action",e.settings.url),fza.each(fza.extend({name:t.target_name||t.name},e.settings.multipart_params),function(e,t){var n=eza.createElement("input");fza.extend(n,{type:"hidden",name:t,value:e}),i.insertBefore(n,i.firstChild)}),r=t,hza("form_"+s).style.top="-1048575px",i.submit())}),a.bind("FileUploaded",function(e){e.refresh()}),a.bind("StateChanged",function(e){var t;e.state==fza.STARTED?((t=eza.createElement("div")).innerHTML='<iframe id="'+a.id+'_iframe" name="'+a.id+'_iframe" src="'+u+':""" style="display:none"></iframe>',n=t.firstChild,l.appendChild(n),fza.addEvent(n,"load",function(e){var t,e=e.target;if(r){try{t=e.contentWindow.document||e.contentDocument||dza.frames[e.id].document}catch(e){return void a.trigger("Error",{code:fza.SECURITY_ERROR,message:fza.translate("Security error."),file:r})}(t=t.documentElement.innerText||t.documentElement.textContent)&&(r.status=fza.DONE,r.loaded=1025,r.percent=100,a.trigger("UploadProgress",r),a.trigger("FileUploaded",r,{response:t}))}},a.id)):e.state==fza.STOPPED&&dza.setTimeout(function(){fza.removeEvent(n,"load",e.id),n.parentNode&&n.parentNode.removeChild(n)},0),fza.each(e.files,function(e,t){e.status!==fza.DONE&&e.status!==fza.FAILED||(e=hza("form_"+e.id))&&e.parentNode.removeChild(e)})}),a.bind("Refresh",function(e){var t,n,i,r,o,a=hza(e.settings.browse_button);a&&(i=fza.getPos(a,hza(e.settings.container)),o=fza.getSize(a),r=hza("form_"+s),hza("input_"+s),fza.extend(r.style,{top:i.y+"px",left:i.x+"px",width:o.w+"px",height:o.h+"px"}),e.features.triggerDialog&&("static"===fza.getStyle(a,"position")&&fza.extend(a.style,{position:"relative"}),o=parseInt(a.style.zIndex,10),isNaN(o)&&(o=0),fza.extend(a.style,{zIndex:o}),fza.extend(r.style,{zIndex:o-1})),t=e.settings.browse_button_hover,n=e.settings.browse_button_active,r=e.features.triggerDialog?a:r,t&&(fza.addEvent(r,"mouseover",function(){fza.addClass(a,t)},e.id),fza.addEvent(r,"mouseout",function(){fza.removeClass(a,t)},e.id)),n&&(fza.addEvent(r,"mousedown",function(){fza.addClass(a,n)},e.id),fza.addEvent(eza.body,"mouseup",function(){fza.removeClass(a,n)},e.id)))}),h.bind("FilesRemoved",function(e,t){for(var n,i=0;i<t.length;i++)(n=hza("form_"+t[i].id))&&n.parentNode.removeChild(n)}),h.bind("DisableBrowse",function(e,t){var n=eza.getElementById("input_"+s);n&&(n.disabled=t)}),h.bind("Destroy",function(e){var t,n,i,r={inputContainer:"form_"+s,inputFile:"input_"+s,browseButton:e.settings.browse_button};for(t in r)(n=hza(r[t]))&&fza.removeAllEvents(n,e.id);fza.removeAllEvents(eza.body,e.id),fza.each(c,function(e,t){(i=hza("form_"+e))&&i.parentNode.removeChild(i)})}),function n(){var i,r,e,o;s=fza.guid(),c.push(s),(i=eza.createElement("form")).setAttribute("id","form_"+s),i.setAttribute("method","post"),i.setAttribute("enctype","multipart/form-data"),i.setAttribute("encoding","multipart/form-data"),i.setAttribute("target",a.id+"_iframe"),i.style.position="absolute",(r=eza.createElement("input")).setAttribute("id","input_"+s),r.setAttribute("type","file"),r.setAttribute("accept",d),r.setAttribute("size",1),o=hza(a.settings.browse_button),a.features.triggerDialog&&o&&fza.addEvent(hza(a.settings.browse_button),"click",function(e){r.disabled||r.click(),e.preventDefault()},a.id),fza.extend(r.style,{width:"100%",height:"100%",opacity:0,fontSize:"99px",cursor:"pointer"}),fza.extend(i.style,{overflow:"hidden"}),(e=a.settings.shim_bgcolor)&&(i.style.background=e),f&&fza.extend(r.style,{filter:"alpha(opacity=0)"}),fza.addEvent(r,"change",function(e){var t=e.target,e=[];t.value&&(hza("form_"+s).style.top="-1048575px",t=(t=t.value.replace(/\\/g,"/")).substring(t.length,t.lastIndexOf("/")+1),e.push(new fza.File(s,t)),a.features.triggerDialog?fza.removeEvent(o,"click",a.id):fza.removeAllEvents(i,a.id),fza.removeEvent(r,"change",a.id),n(),e.length&&h.trigger("FilesAdded",e))},a.id),i.appendChild(r),l.appendChild(i),a.refresh()}()}),e({success:!0})}}),AAa=window,BAa=document,CAa=$.plupload,EAa={},CAa.runtimes.Html5=CAa.addRuntime("html5",{getFeatures:function(){var e,t,n,i,r,o=t=i=r=!1;return AAa.XMLHttpRequest&&(t=!!(e=new XMLHttpRequest).upload,o=!(!e.sendAsBinary&&!e.upload)),o&&(n=!!(e.sendAsBinary||AAa.Uint8Array&&AAa.ArrayBuffer),i=!(!File||!File.prototype.getAsDataURL&&!AAa.FileReader||!n),r=!(!File||!(File.prototype.mozSlice||File.prototype.webkitSlice||File.prototype.slice))),FAa=CAa.ua.safari&&CAa.ua.windows,{html5:o,dragdrop:"draggable"in(o=BAa.createElement("div"))||"ondragstart"in o&&"ondrop"in o,jpgresize:i,pngresize:i,multipart:i||!!AAa.FileReader||!!AAa.FormData,canSendBinary:n,cantSendBlobInFormData:!(!(CAa.ua.gecko&&AAa.FormData&&AAa.FileReader)||FileReader.prototype.readAsArrayBuffer)||CAa.ua.android,progress:t,chunks:r,multi_selection:!(CAa.ua.safari&&CAa.ua.windows),triggerDialog:CAa.ua.gecko&&AAa.FormData||CAa.ua.webkit}},init:function(d,e){function p(e){for(var t,n,i=[],r={},o=0;o<e.length;o++)r[(t=e[o]).name]&&CAa.ua.safari&&CAa.ua.windows||(r[t.name]=!0,n=CAa.guid(),EAa[n]=t,i.push(new CAa.File(n,t.fileName||t.name,t.fileSize||t.size)));i.length&&d.trigger("FilesAdded",i)}var b,w=this.getFeatures();w.html5?(d.bind("Init",function(n){var e,t,i,r,o,a,s,l=[],u=n.settings.filters,c=BAa.body,f=BAa.createElement("div");f.id=n.id+"_html5_container",CAa.extend(f.style,{position:"absolute",background:d.settings.shim_bgcolor||"transparent",width:"100px",height:"100px",overflow:"hidden",zIndex:99999,opacity:d.settings.shim_bgcolor?"":0}),f.className="plupload html5",d.settings.container&&(c=BAa.getElementById(d.settings.container),"static"===CAa.getStyle(c,"position")&&(c.style.position="relative")),c.appendChild(f);e:for(t=0;t<u.length;t++)for(r=u[t].extensions.split(/,/),i=0;i<r.length;i++){if("*"===r[i]){l=[];break e}(o=CAa.mimeTypes[r[i]])&&-1===CAa.inArray(o,l)&&l.push(o)}f.innerHTML='<input id="'+d.id+'_html5" style="font-size:999px" type="file" accept="'+l.join(",")+'" '+(d.settings.multi_selection&&d.features.multi_selection?'multiple="multiple"':"")+" />",f.scrollTop=100,c=BAa.getElementById(d.id+"_html5"),n.features.triggerDialog?CAa.extend(c.style,{position:"absolute",width:"100%",height:"100%"}):CAa.extend(c.style,{cssFloat:"right",styleFloat:"right"}),c.onchange=function(){p(this.files),this.value=""},(e=BAa.getElementById(n.settings.browse_button))&&(a=n.settings.browse_button_hover,s=n.settings.browse_button_active,f=n.features.triggerDialog?e:f,a&&(CAa.addEvent(f,"mouseover",function(){CAa.addClass(e,a)},n.id),CAa.addEvent(f,"mouseout",function(){CAa.removeClass(e,a)},n.id)),s&&(CAa.addEvent(f,"mousedown",function(){CAa.addClass(e,s)},n.id),CAa.addEvent(BAa.body,"mouseup",function(){CAa.removeClass(e,s)},n.id)),n.features.triggerDialog&&CAa.addEvent(e,"click",function(e){var t=BAa.getElementById(n.id+"_html5");t&&!t.disabled&&t.click(),e.preventDefault()},n.id))}),d.bind("PostInit",function(){var i=BAa.getElementById(d.settings.drop_element);i&&(FAa?CAa.addEvent(i,"dragenter",function(e){var t,n=BAa.getElementById(d.id+"_drop");n||((n=BAa.createElement("input")).setAttribute("type","file"),n.setAttribute("id",d.id+"_drop"),n.setAttribute("multiple","multiple"),CAa.addEvent(n,"change",function(){p(this.files),CAa.removeEvent(n,"change",d.id),n.parentNode.removeChild(n)},d.id),CAa.addEvent(n,"dragover",function(e){e.stopPropagation()},d.id),i.appendChild(n)),CAa.getPos(i,BAa.getElementById(d.settings.container)),t=CAa.getSize(i),"static"===CAa.getStyle(i,"position")&&CAa.extend(i.style,{position:"relative"}),CAa.extend(n.style,{position:"absolute",display:"block",top:0,left:0,width:t.w+"px",height:t.h+"px",opacity:0})},d.id):(CAa.addEvent(i,"dragover",function(e){e.preventDefault()},d.id),CAa.addEvent(i,"drop",function(e){var t=e.dataTransfer;t&&t.files&&p(t.files),e.preventDefault()},d.id)))}),d.bind("Refresh",function(e){var t,n,i=BAa.getElementById(d.settings.browse_button);i&&(t=CAa.getPos(i,BAa.getElementById(e.settings.container)),n=CAa.getSize(i),e=BAa.getElementById(d.id+"_html5_container"),CAa.extend(e.style,{top:t.y+"px",left:t.x+"px",width:n.w+"px",height:n.h+"px"}),d.features.triggerDialog&&("static"===CAa.getStyle(i,"position")&&CAa.extend(i.style,{position:"relative"}),n=parseInt(CAa.getStyle(i,"zIndex"),10),isNaN(n)&&(n=0),CAa.extend(i.style,{zIndex:n}),CAa.extend(e.style,{zIndex:n-1})))}),d.bind("DisableBrowse",function(e,t){e=BAa.getElementById(e.id+"_html5");e&&(e.disabled=t)}),d.bind("CancelUpload",function(){b&&b.abort&&b.abort()}),d.bind("UploadFile",function(v,y){function t(i){var m=0,g=0;!function s(){function e(e){if(b.sendAsBinary)b.sendAsBinary(e);else if(v.features.canSendBinary){for(var t=new Uint8Array(e.length),n=0;n<e.length;n++)t[n]=255&e.charCodeAt(n);b.send(t.buffer)}}function t(n){var i,t=0,r="----pluploadboundary"+CAa.guid(),o="\r\n",a="";if((b=new XMLHttpRequest).upload&&(b.upload.onprogress=function(e){y.loaded=Math.min(y.size,g+e.loaded-t),v.trigger("UploadProgress",y)}),b.onreadystatechange=function(){var t,e;if(4==b.readyState&&v.state!==CAa.STOPPED){try{t=b.status}catch(e){t=0}if(400<=t)v.trigger("Error",{code:CAa.HTTP_ERROR,message:CAa.translate("HTTP Error."),file:y,status:t});else{if(u){if(e={chunk:m,chunks:u,response:b.responseText,status:t},v.trigger("ChunkUploaded",y,e),g+=f,e.cancelled)return void(y.status=CAa.FAILED);y.loaded=Math.min(y.size,(m+1)*c)}else y.loaded=y.size;v.trigger("UploadProgress",y),n=l=i=a=null,!u||++m>=u?(y.status=CAa.DONE,v.trigger("FileUploaded",y,{response:b.responseText,status:t})):s()}}},v.settings.multipart&&w.multipart){if(p.name=y.target_name||y.name,b.open("post",h,!0),CAa.each(v.settings.headers,function(e,t){b.setRequestHeader(t,e)}),"string"!=typeof n&&AAa.FormData)return i=new FormData,CAa.each(CAa.extend(p,v.settings.multipart_params),function(e,t){i.append(t,e)}),i.append(v.settings.file_data_name,n),void b.send(i);if("string"==typeof n)return b.setRequestHeader("Content-Type","multipart/form-data; boundary="+r),CAa.each(CAa.extend(p,v.settings.multipart_params),function(e,t){a+="--"+r+o+'Content-Disposition: form-data; name="'+t+'"'+o+o,a+=unescape(encodeURIComponent(e))+o}),d=CAa.mimeTypes[y.name.replace(/^.+\.([^.]+)/,"$1").toLowerCase()]||"application/octet-stream",a+="--"+r+o+'Content-Disposition: form-data; name="'+v.settings.file_data_name+'"; filename="'+unescape(encodeURIComponent(y.name))+'"'+o+"Content-Type: "+d+o+o+n+o+"--"+r+"--"+o,t=a.length-n.length,void e(n=a)}h=CAa.buildUrl(v.settings.url,CAa.extend(p,v.settings.multipart_params)),b.open("post",h,!0),b.setRequestHeader("Content-Type","application/octet-stream"),CAa.each(v.settings.headers,function(e,t){b.setRequestHeader(t,e)}),"string"==typeof n?e(n):b.send(n)}var l,u,c,f,d,n,p,h=v.settings.url;y.status!=CAa.DONE&&y.status!=CAa.FAILED&&v.state!=CAa.STOPPED&&(p={name:y.target_name||y.name},r.chunk_size&&y.size>r.chunk_size&&(w.chunks||"string"==typeof i)?(c=r.chunk_size,u=Math.ceil(y.size/c),f=Math.min(c,y.size-m*c),l="string"==typeof i?i.substring(m*c,m*c+f):function(t,n,i){var e;if(!File.prototype.slice)return(e=File.prototype.webkitSlice||File.prototype.mozSlice)?e.call(t,n,i):null;try{return t.slice(),t.slice(n,i)}catch(e){return t.slice(n,i-n)}}(i,m*c,m*c+f),p.chunk=m,p.chunks=u):(f=y.size,l=i),v.settings.multipart&&w.multipart&&"string"!=typeof l&&AAa.FileReader&&w.cantSendBlobInFormData&&w.chunks&&v.settings.chunk_size?((n=new FileReader).onload=function(){t(n.result),n=null},n.readAsBinaryString(l)):t(l))}()}var r=v.settings,n=EAa[y.id];w.jpgresize&&v.settings.resize&&/\.(png|jpg|jpeg)$/i.test(y.name)?LAa.call(v,y,v.settings.resize,/\.png$/i.test(y.name)?"image/png":"image/jpeg",function(e){e.success?(y.size=e.data.length,t(e.data)):w.chunks?t(n):KAa(n,t)}):!w.chunks&&w.jpgresize?KAa(n,t):t(n)}),d.bind("Destroy",function(e){var t,n,i=BAa.body,r={inputContainer:e.id+"_html5_container",inputFile:e.id+"_html5",browseButton:e.settings.browse_button,dropElm:e.settings.drop_element};for(t in r)(n=BAa.getElementById(r[t]))&&CAa.removeAllEvents(n,e.id);CAa.removeAllEvents(BAa.body,e.id),(i=e.settings.container?BAa.getElementById(e.settings.container):i).removeChild(BAa.getElementById(r.inputContainer))}),e({success:!0})):e({success:!1})}}),$.Controller("plupload",{pluginName:"plupload",hostname:"plupload",defaultOptions:{"{uploader}":"[data-plupload-uploader]","{uploadButton}":"[data-plupload-upload-button]","{uploadDropsite}":"[data-plupload-dropsite]",settings:{runtimes:"html5, html4",url:$.indexUrl,max_file_count:20,unique_names:!0}}},function(self,opts,base){return{init:function(){var e=self.options.settings,t=$.uid("uploadContainer-");self.element.attr("id",t),e.container=t;t=self.uploadButtonId=$.uid("uploadButton-");self.uploadButtonMain=self.uploadButton(":first").attr("id",t),e.browse_button=t;t=$.uid("uploadDropsite-");0<self.uploadDropsite().length&&(self.uploadDropsite().attr("id",t),e.drop_element=t),self.uploader=$(self.uploader()[0]||self.element),self.plupload=new $.plupload.Uploader(e),self.plupload.bind("PostInit",function(){self.eventHandler("PostInit",$.makeArray(arguments))}),self.plupload.init();$.each(["BeforeUpload","ChunkUploaded","Destroy","Error","FilesAdded","FilesRemoved","FileUploaded","Init","QueueChanged","Refresh","StateChanged","UploadComplete","UploadFile","UploadProgress"],function(e,t){self.plupload.bind(t,function(){self.eventHandler(t,$.makeArray(arguments))})}),$.IE||"html5"!=self.plupload.runtime||base.addClass("can-drop-file"),base.addClass("can-upload")},"{uploadButton} click":function(e){e[0]!=self.uploadButtonMain[0]&&self.plupload.features.triggerDialog&&self.uploadButtonMain.click()},"{uploadButton} mouseover":function(e){self.plupload.features.triggerDialog||(self.uploadButton().removeAttr("id"),e.attr("id",self.uploadButtonId),self.plupload.refresh())},eventHandler:function(e,t){var n,i,r=self["plupload::"+e];(i=(self.uploader.data("events")||{})[e])&&i[0].handler;!1!==(n=$.isFunction(r)?r.apply(self,t):n)&&self.uploader.trigger(e,n||t)},"plupload::FileUploaded":function(up,file,data,handler){var response;try{response=eval("("+data.response+")")}catch(e){response={type:"error",message:"Unable to parse server response.",data:data}}return"error"==response.type?(self.uploader.trigger("FileError",[up,file,response]),!1):[up,file,response]},"plupload::Error":function(e,t){try{console.log("plupload Error: ",e,t)}catch(e){}}}})};exports(),module.resolveWith(exports)};KTVendors.module("plupload",moduleFactory)}(),KTVendors.module("scrollTo",function(e){var t=this,n=e,e=function(){!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):void 0!==t&&t.exports?t.exports=e(require("jquery")):e(n)}(function(r){"use strict";function o(e){return!e.nodeName||-1!==r.inArray(e.nodeName.toLowerCase(),["iframe","#document","html","body"])}function t(e){return r.isFunction(e)||r.isPlainObject(e)?e:{top:e,left:e}}var v=r.scrollTo=function(e,t,n){return r(window).scrollTo(e,t,n)};return v.defaults={axis:"xy",duration:0,limit:!0},r.fn.scrollTo=function(e,n,m){"object"==typeof n&&(m=n,n=0),"function"==typeof m&&(m={onAfter:m}),"max"===e&&(e=9e9),m=r.extend({},v.defaults,m),n=n||m.duration;var g=m.queue&&1<m.axis.length;return g&&(n/=2),m.offset=t(m.offset),m.over=t(m.over),this.each(function(){function s(e){var t=r.extend({},m,{queue:!0,duration:n,complete:e&&function(){e.call(c,d,m)}});f.animate(p,t)}if(null!==e){var l,u=o(this),c=u?this.contentWindow||window:this,f=r(c),d=e,p={};switch(typeof d){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(d)){d=t(d);break}d=u?r(d):r(d,c);case"object":if(0===d.length)return;(d.is||d.style)&&(l=(d=r(d)).offset())}var h=r.isFunction(m.offset)&&m.offset(c,d)||m.offset;r.each(m.axis.split(""),function(e,t){var n="x"===t?"Left":"Top",i=n.toLowerCase(),r="scroll"+n,o=f[r](),a=v.max(c,t);l?(p[r]=l[i]+(u?0:o-f.offset()[i]),m.margin&&(p[r]-=parseInt(d.css("margin"+n),10)||0,p[r]-=parseInt(d.css("border"+n+"Width"),10)||0),p[r]+=h[i]||0,m.over[i]&&(p[r]+=d["x"===t?"width":"height"]()*m.over[i])):(i=d[i],p[r]=i.slice&&"%"===i.slice(-1)?parseFloat(i)/100*a:i),m.limit&&/^\d+$/.test(p[r])&&(p[r]=p[r]<=0?0:Math.min(p[r],a)),!e&&1<m.axis.length&&(o===p[r]?p={}:g&&(s(m.onAfterFirst),p={}))}),s(m.onAfter)}})},v.max=function(e,t){var n="x"===t?"Width":"Height",i="scroll"+n;if(!o(e))return e[i]-r(e)[n.toLowerCase()]();t="client"+n,n=e.ownerDocument||e.document,e=n.documentElement,n=n.body;return Math.max(e[i],n[i])-Math.min(e[t],n[t])},r.Tween.propHooks.scrollLeft=r.Tween.propHooks.scrollTop={get:function(e){return r(e.elem)[e.prop]()},set:function(e){var t=this.get(e);if(e.options.interrupt&&e._last&&e._last!==t)return r(e.elem).stop();var n=Math.round(e.now);t!==n&&(r(e.elem)[e.prop](n),e._last=this.get(e))}},v})};e(),t.resolveWith(e)}),KTVendors.module("ui/autocomplete",function(e){var t=this,n=e;e.require().script("ui/core","ui/widget","ui/position","ui/menu").done(function(){function e(){var o,i,r,e,t;i=0,(o=n).widget("ui.autocomplete",{version:"1.10.4pre",defaultElement:"<input>",options:{appendTo:"#kt.ui",autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var n,i,r,e=this.element[0].nodeName.toLowerCase(),t="textarea"===e,e="input"===e;this.isMultiLine=t||!e&&this.element.prop("isContentEditable"),this.valueMethod=this.element[t||e?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(e){if(this.element.prop("readOnly"))i=r=n=!0;else{i=r=n=!1;var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:n=!0,this._move("previousPage",e);break;case t.PAGE_DOWN:n=!0,this._move("nextPage",e);break;case t.UP:n=!0,this._keyEvent("previous",e);break;case t.DOWN:n=!0,this._keyEvent("next",e);break;case t.ENTER:case t.NUMPAD_ENTER:this.menu.active&&(n=!0,e.preventDefault(),this.menu.select(e));break;case t.TAB:this.menu.active&&this.menu.select(e);break;case t.ESCAPE:this.menu.element.is(":visible")&&(this._value(this.term),this.close(e),e.preventDefault());break;default:i=!0,this._searchTimeout(e)}}},keypress:function(e){if(n)return n=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||e.preventDefault());if(!i){var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:this._move("previousPage",e);break;case t.PAGE_DOWN:this._move("nextPage",e);break;case t.UP:this._keyEvent("previous",e);break;case t.DOWN:this._keyEvent("next",e)}}},input:function(e){if(r)return r=!1,void e.preventDefault();this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){this.cancelBlur?delete this.cancelBlur:(clearTimeout(this.searching),this.close(e),this._change(e))}}),this._initSource(),this.menu=o("<ul>").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().data("ui-menu"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var n=this.menu.element[0];o(e.target).closest(".ui-menu-item").length||this._delay(function(){var t=this;this.document.one("mousedown",function(e){e.target===t.element[0]||e.target===n||o.contains(n,e.target)||t.close()})})},menufocus:function(e,t){if(this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){o(e.target).trigger(e.originalEvent)});t=t.item.data("ui-autocomplete-item");!1!==this._trigger("focus",e,{item:t})?e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(t.value):this.liveRegion.text(t.value)},menuselect:function(e,t){var n=t.item.data("ui-autocomplete-item"),i=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=i,this._delay(function(){this.previous=i,this.selectedItem=n})),!1!==this._trigger("select",e,{item:n})&&this._value(n.value),this.term=this._value(),this.close(e),this.selectedItem=n}}),this.liveRegion=o("<span>",{role:"status","aria-live":"polite"}).addClass("ui-helper-hidden-accessible").insertBefore(this.element),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_appendTo:function(){var e=this.options.appendTo;return e=!(e=(e=e&&(e.jquery||e.nodeType?o(e):this.document.find(e).eq(0)))||this.element.closest(".ui-front")).length?this.document[0].body:e},_initSource:function(){var n,i,r=this;o.isArray(this.options.source)?(n=this.options.source,this.source=function(e,t){t(o.ui.autocomplete.filter(n,e.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,t){r.xhr&&r.xhr.abort(),r.xhr=o.ajax({url:i,data:e,dataType:"json",success:function(e){t(e)},error:function(){t([])}})}):this.source=this.options.source},_searchTimeout:function(e){clearTimeout(this.searching),this.searching=this._delay(function(){this.term!==this._value()&&(this.selectedItem=null,this.search(null,e))},this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):!1!==this._trigger("search",t)?this._search(e):void 0},_search:function(e){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var t=this,n=++i;return function(e){n===i&&t.__response(e),t.pending--,t.pending||t.element.removeClass("ui-autocomplete-loading")}},__response:function(e){e=e&&this._normalize(e),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:o.map(e,function(e){return"string"==typeof e?{label:e,value:e}:o.extend({label:e.label||e.value,value:e.value||e.label},e)})},_suggest:function(e){var t=this.menu.element.empty();this._renderMenu(t,e),this.isNewMenu=!0,this.menu.refresh(),t.show(),this._resizeMenu(),t.position(o.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(n,e){var i=this;o.each(e,function(e,t){i._renderItemData(n,t)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(e,t){return o("<li>").append(o("<a>").text(t.label)).appendTo(e)},_move:function(e,t){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this._value(this.term),void this.menu.blur()):void this.menu[e](t);this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(e,t),t.preventDefault())}}),o.extend(o.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,t){var n=new RegExp(o.ui.autocomplete.escapeRegex(t),"i");return o.grep(e,function(e){return n.test(e.label||e.value||e)})}}),o.widget("ui.autocomplete",o.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(1<e?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var t;this._superApply(arguments),this.options.disabled||this.cancelSearch||(t=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.text(t))}}),e=(r=n).ui.autocomplete.prototype,t=e._initSource,r.extend(e,{_initSource:function(){this.options.html&&r.isArray(this.options.source)?this.source=function(e,t){var n;t((t=this.options.source,e=e.term,n=new RegExp(r.ui.autocomplete.escapeRegex(e),"i"),r.grep(t,function(e){return n.test(r("<div>").html(e.label||e.value||e).text())})))}:t.call(this)},_renderItem:function(e,t){return r("<li></li>").data("item.autocomplete",t).append(r("<a></a>")[this.options.html?"html":"text"](t.label)).appendTo(e)}})}e(),t.resolveWith(e)})}),KTVendors.module("ui/core",function(e){var a=e,e=function(){function i(e,t){var n,i,r=e.nodeName.toLowerCase();return"area"===r?(i=(n=e.parentNode).name,!(!e.href||!i||"map"!==n.nodeName.toLowerCase())&&(!!(i=s("img[usemap=#"+i+"]")[0])&&o(i))):(/input|select|textarea|button|object/.test(r)?!e.disabled:"a"===r&&e.href||t)&&o(e)}function o(e){return s.expr.filters.visible(e)&&!s(e).parents().addBack().filter(function(){return"hidden"===s.css(this,"visibility")}).length}var s,e,t,n,r;n=0,r=/^ui-id-\d+$/,(s=a).ui=s.ui||{},s.extend(s.ui,{version:"1.10.4pre",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),s.fn.extend({focus:(e=s.fn.focus,function(t,n){return"number"==typeof t?this.each(function(){var e=this;setTimeout(function(){s(e).focus(),n&&n.call(e)},t)}):e.apply(this,arguments)}),scrollParent:function(){var e=(s.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(s.css(this,"position"))&&/(auto|scroll)/.test(s.css(this,"overflow")+s.css(this,"overflow-y")+s.css(this,"overflow-x"))}):this.parents().filter(function(){return/(auto|scroll)/.test(s.css(this,"overflow")+s.css(this,"overflow-y")+s.css(this,"overflow-x"))})).eq(0);return/fixed/.test(this.css("position"))||!e.length?s(document):e},zIndex:function(e){if(void 0!==e)return this.css("zIndex",e);if(this.length)for(var t,n,i=s(this[0]);i.length&&i[0]!==document;){if(("absolute"===(t=i.css("position"))||"relative"===t||"fixed"===t)&&(n=parseInt(i.css("zIndex"),10),!isNaN(n)&&0!==n))return n;i=i.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++n)})},removeUniqueId:function(){return this.each(function(){r.test(this.id)&&s(this).removeAttr("id")})}}),s.extend(s.expr[":"],{data:s.expr.createPseudo?s.expr.createPseudo(function(t){return function(e){return!!s.data(e,t)}}):function(e,t,n){return!!s.data(e,n[3])},focusable:function(e){return i(e,!isNaN(s.attr(e,"tabindex")))},tabbable:function(e){var t=s.attr(e,"tabindex"),n=isNaN(t);return(n||0<=t)&&i(e,!n)}}),s("<a>").outerWidth(1).jquery||s.each(["Width","Height"],function(e,n){function i(e,t,n,i){return s.each(r,function(){t-=parseFloat(s.css(e,"padding"+this))||0,n&&(t-=parseFloat(s.css(e,"border"+this+"Width"))||0),i&&(t-=parseFloat(s.css(e,"margin"+this))||0)}),t}var r="Width"===n?["Left","Right"]:["Top","Bottom"],o=n.toLowerCase(),a={innerWidth:s.fn.innerWidth,innerHeight:s.fn.innerHeight,outerWidth:s.fn.outerWidth,outerHeight:s.fn.outerHeight};s.fn["inner"+n]=function(e){return void 0===e?a["inner"+n].call(this):this.each(function(){s(this).css(o,i(this,e)+"px")})},s.fn["outer"+n]=function(e,t){return"number"!=typeof e?a["outer"+n].call(this,e):this.each(function(){s(this).css(o,i(this,e,!0,t)+"px")})}}),s.fn.addBack||(s.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),s("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(s.fn.removeData=(t=s.fn.removeData,function(e){return arguments.length?t.call(this,s.camelCase(e)):t.call(this)})),s.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),s.support.selectstart="onselectstart"in document.createElement("div"),s.fn.extend({disableSelection:function(){return this.bind((s.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),s.extend(s.ui,{plugin:{add:function(e,t,n){var i,r=s.ui[e].prototype;for(i in n)r.plugins[i]=r.plugins[i]||[],r.plugins[i].push([t,n[i]])},call:function(e,t,n){var i,r=e.plugins[t];if(r&&e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType)for(i=0;i<r.length;i++)e.options[r[i][0]]&&r[i][1].apply(e.element,n)}},hasScroll:function(e,t){if("hidden"===s(e).css("overflow"))return!1;var n=t&&"left"===t?"scrollLeft":"scrollTop",t=!1;return 0<e[n]||(e[n]=1,t=0<e[n],e[n]=0,t)}}),s(function(){0<s("body > [id=kt].ui").length||s(document.createElement("div")).attr("id","kt").addClass("ui").css({position:"absolute",top:0,left:0,overflow:"visible",width:0,height:0,zIndex:10002}).appendTo("body")})};e(),this.resolveWith(e)}),KTVendors.module("ui/menu",function(e){var t=this,n=e;e.require().script("ui/widget").done(function(){function e(){var s;(s=n).widget("ui.menu",{version:"1.10.4pre",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,s.proxy(function(e){this.options.disabled&&e.preventDefault()},this)),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item > a":function(e){e.preventDefault()},"click .ui-state-disabled > a":function(e){e.preventDefault()},"click .ui-menu-item:has(a)":function(e){var t=s(e.target).closest(".ui-menu-item");!this.mouseHandled&&t.not(".ui-state-disabled").length&&(this.mouseHandled=!0,this.select(e),t.has(".ui-menu").length?this.expand(e):this.element.is(":focus")||(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){var t=s(e.currentTarget);t.siblings().children(".ui-state-active").removeClass("ui-state-active"),this.focus(e,t)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var n=this.active||this.element.children(".ui-menu-item").eq(0);t||this.focus(e,n)},blur:function(e){this._delay(function(){s.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){s(e.target).closest(".ui-menu").length||this.collapseAll(e),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var e=s(this);e.data("ui-menu-submenu-carat")&&e.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(e){function t(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var n,i,r,o,a=!0;switch(e.keyCode){case s.ui.keyCode.PAGE_UP:this.previousPage(e);break;case s.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case s.ui.keyCode.HOME:this._move("first","first",e);break;case s.ui.keyCode.END:this._move("last","last",e);break;case s.ui.keyCode.UP:this.previous(e);break;case s.ui.keyCode.DOWN:this.next(e);break;case s.ui.keyCode.LEFT:this.collapse(e);break;case s.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case s.ui.keyCode.ENTER:case s.ui.keyCode.SPACE:this._activate(e);break;case s.ui.keyCode.ESCAPE:this.collapse(e);break;default:a=!1,n=this.previousFilter||"",i=String.fromCharCode(e.keyCode),r=!1,clearTimeout(this.filterTimer),i===n?r=!0:i=n+i,o=new RegExp("^"+t(i),"i"),n=this.activeMenu.children(".ui-menu-item").filter(function(){return o.test(s(this).children("a").text())}),(n=r&&-1!==n.index(this.active.next())?this.active.nextAll(".ui-menu-item"):n).length||(i=String.fromCharCode(e.keyCode),o=new RegExp("^"+t(i),"i"),n=this.activeMenu.children(".ui-menu-item").filter(function(){return o.test(s(this).children("a").text())})),n.length?(this.focus(e,n),1<n.length?(this.previousFilter=i,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}a&&e.preventDefault()},_activate:function(e){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var i=this.options.icons.submenu,e=this.element.find(this.options.menus);e.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=s(this),t=e.prev("a"),n=s("<span>").addClass("ui-menu-icon ui-icon "+i).data("ui-menu-submenu-carat",!0);t.attr("aria-haspopup","true").prepend(n),e.attr("aria-labelledby",t.attr("id"))}),(e=e.add(this.element)).children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()}),e.children(":not(.ui-menu-item)").each(function(){var e=s(this);/[^\-\u2014\u2013\s]/.test(e.text())||e.addClass("ui-widget-content ui-menu-divider")}),e.children(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!s.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){"icons"===e&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(t.submenu),this._super(e,t)},focus:function(e,t){var n;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),n=this.active.children("a").addClass("ui-state-focus"),this.options.role&&this.element.attr("aria-activedescendant",n.attr("id")),this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(n=t.children(".ui-menu")).length&&/^mouse/.test(e.type)&&this._startOpening(n),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(e){var t,n,i;this._hasScroll()&&(n=parseFloat(s.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(s.css(this.activeMenu[0],"paddingTop"))||0,t=e.offset().top-this.activeMenu.offset().top-n-i,n=this.activeMenu.scrollTop(),i=this.activeMenu.height(),e=e.height(),t<0?this.activeMenu.scrollTop(n+t):i<t+e&&this.activeMenu.scrollTop(n+t-i+e))},blur:function(e,t){t||clearTimeout(this.timer),this.active&&(this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",e,{item:this.active}))},_startOpening:function(e){clearTimeout(this.timer),"true"===e.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(e)},this.delay))},_open:function(e){var t=s.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(t)},collapseAll:function(t,n){clearTimeout(this.timer),this.timer=this._delay(function(){var e=n?this.element:s(t&&t.target).closest(this.element.find(".ui-menu"));e.length||(e=this.element),this._close(e),this.blur(t),this.activeMenu=e},this.delay)},_close:function(e){(e=e||(this.active?this.active.parent():this.element)).find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(e,t)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(e,t,n){var i;(i=this.active?"first"===e||"last"===e?this.active["first"===e?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[e+"All"](".ui-menu-item").eq(0):i)&&i.length&&this.active||(i=this.activeMenu.children(".ui-menu-item")[t]()),this.focus(n,i)},nextPage:function(e){var t,n,i;this.active?this.isLastItem()||(this._hasScroll()?(n=this.active.offset().top,i=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return(t=s(this)).offset().top-n-i<0}),this.focus(e,t)):this.focus(e,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]())):this.next(e)},previousPage:function(e){var t,n,i;this.active?this.isFirstItem()||(this._hasScroll()?(n=this.active.offset().top,i=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return 0<(t=s(this)).offset().top-n+i}),this.focus(e,t)):this.focus(e,this.activeMenu.children(".ui-menu-item").first())):this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||s(e.target).closest(".ui-menu-item");var t={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,t)}})}e(),t.resolveWith(e)})}),KTVendors.module("ui/position",function(e){var t=e,e=function(){!function(x){function C(e,t,n){return[parseFloat(e[0])*(l.test(e[0])?t/100:1),parseFloat(e[1])*(l.test(e[1])?n/100:1)]}function T(e,t){return parseInt(x.css(e,t),10)||0}x.ui=x.ui||{};var i,k=Math.max,E=Math.abs,S=Math.round,r=/left|center|right/,o=/top|center|bottom/,a=/[\+\-]\d+(\.[\d]+)?%?/,s=/^\w+/,l=/%$/,n=x.fn.position;x.position={scrollbarWidth:function(){if(void 0!==i)return i;var e,t=x("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),n=t.children()[0];return x("body").append(t),e=n.offsetWidth,t.css("overflow","scroll"),e===(n=n.offsetWidth)&&(n=t[0].clientWidth),t.remove(),i=e-n},getScrollInfo:function(e){var t=e.isWindow?"":e.element.css("overflow-x"),n=e.isWindow?"":e.element.css("overflow-y"),t="scroll"===t||"auto"===t&&e.width<e.element[0].scrollWidth;return{width:"scroll"===n||"auto"===n&&e.height<e.element[0].scrollHeight?x.position.scrollbarWidth():0,height:t?x.position.scrollbarWidth():0}},getWithinInfo:function(e){var t=x(e||window),e=x.isWindow(t[0]);return{element:t,isWindow:e,offset:t.offset()||{left:0,top:0},scrollLeft:t.scrollLeft(),scrollTop:t.scrollTop(),width:e?t.width():t.outerWidth(),height:e?t.height():t.outerHeight()}}},x.fn.position=function(f){if(!f||!f.of)return n.apply(this,arguments);f=x.extend({},f);var d,p,h,m,g,e,v=x(f.of),y=x.position.getWithinInfo(f.within),b=x.position.getScrollInfo(y),w=(f.collision||"flip").split(" "),_={},t=9===(e=(t=v)[0]).nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:x.isWindow(e)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:e.preventDefault?{width:0,height:0,offset:{top:e.pageY,left:e.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()};return v[0].preventDefault&&(f.at="left top"),p=t.width,h=t.height,m=t.offset,g=x.extend({},m),x.each(["my","at"],function(){var e,t,n=(f[this]||"").split(" ");(n=1===n.length?r.test(n[0])?n.concat(["center"]):o.test(n[0])?["center"].concat(n):["center","center"]:n)[0]=r.test(n[0])?n[0]:"center",n[1]=o.test(n[1])?n[1]:"center",e=a.exec(n[0]),t=a.exec(n[1]),_[this]=[e?e[0]:0,t?t[0]:0],f[this]=[s.exec(n[0])[0],s.exec(n[1])[0]]}),1===w.length&&(w[1]=w[0]),"right"===f.at[0]?g.left+=p:"center"===f.at[0]&&(g.left+=p/2),"bottom"===f.at[1]?g.top+=h:"center"===f.at[1]&&(g.top+=h/2),d=C(_.at,p,h),g.left+=d[0],g.top+=d[1],this.each(function(){var n,e,a=x(this),s=a.outerWidth(),l=a.outerHeight(),t=T(this,"marginLeft"),i=T(this,"marginTop"),r=s+t+T(this,"marginRight")+b.width,o=l+i+T(this,"marginBottom")+b.height,u=x.extend({},g),c=C(_.my,a.outerWidth(),a.outerHeight());"right"===f.my[0]?u.left-=s:"center"===f.my[0]&&(u.left-=s/2),"bottom"===f.my[1]?u.top-=l:"center"===f.my[1]&&(u.top-=l/2),u.left+=c[0],u.top+=c[1],x.support.offsetFractions||(u.left=S(u.left),u.top=S(u.top)),n={marginLeft:t,marginTop:i},x.each(["left","top"],function(e,t){x.ui.position[w[e]]&&x.ui.position[w[e]][t](u,{targetWidth:p,targetHeight:h,elemWidth:s,elemHeight:l,collisionPosition:n,collisionWidth:r,collisionHeight:o,offset:[d[0]+c[0],d[1]+c[1]],my:f.my,at:f.at,within:y,elem:a})}),f.using&&(e=function(e){var t=m.left-u.left,n=t+p-s,i=m.top-u.top,r=i+h-l,o={target:{element:v,left:m.left,top:m.top,width:p,height:h},element:{element:a,left:u.left,top:u.top,width:s,height:l},horizontal:n<0?"left":0<t?"right":"center",vertical:r<0?"top":0<i?"bottom":"middle"};p<s&&E(t+n)<p&&(o.horizontal="center"),h<l&&E(i+r)<h&&(o.vertical="middle"),k(E(t),E(n))>k(E(i),E(r))?o.important="horizontal":o.important="vertical",f.using.call(this,e,o)}),a.offset(x.extend(u,{using:e}))})},x.ui.position={fit:{left:function(e,t){var n=t.within,i=n.isWindow?n.scrollLeft:n.offset.left,r=n.width,o=e.left-t.collisionPosition.marginLeft,a=i-o,s=o+t.collisionWidth-r-i;t.collisionWidth>r?0<a&&s<=0?(n=e.left+a+t.collisionWidth-r-i,e.left+=a-n):e.left=!(0<s&&a<=0)&&s<a?i+r-t.collisionWidth:i:0<a?e.left+=a:0<s?e.left-=s:e.left=k(e.left-o,e.left)},top:function(e,t){var n=t.within,i=n.isWindow?n.scrollTop:n.offset.top,r=t.within.height,o=e.top-t.collisionPosition.marginTop,a=i-o,s=o+t.collisionHeight-r-i;t.collisionHeight>r?0<a&&s<=0?(n=e.top+a+t.collisionHeight-r-i,e.top+=a-n):e.top=!(0<s&&a<=0)&&s<a?i+r-t.collisionHeight:i:0<a?e.top+=a:0<s?e.top-=s:e.top=k(e.top-o,e.top)}},flip:{left:function(e,t){var n=t.within,i=n.offset.left+n.scrollLeft,r=n.width,o=n.isWindow?n.scrollLeft:n.offset.left,a=e.left-t.collisionPosition.marginLeft,s=a-o,l=a+t.collisionWidth-r-o,u="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,n="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,a=-2*t.offset[0];s<0?((i=e.left+u+n+a+t.collisionWidth-r-i)<0||i<E(s))&&(e.left+=u+n+a):0<l&&(0<(o=e.left-t.collisionPosition.marginLeft+u+n+a-o)||E(o)<l)&&(e.left+=u+n+a)},top:function(e,t){var n=t.within,i=n.offset.top+n.scrollTop,r=n.height,o=n.isWindow?n.scrollTop:n.offset.top,a=e.top-t.collisionPosition.marginTop,s=a-o,l=a+t.collisionHeight-r-o,u="top"===t.my[1]?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,n="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,a=-2*t.offset[1];s<0?(i=e.top+u+n+a+t.collisionHeight-r-i,e.top+u+n+a>s&&(i<0||i<E(s))&&(e.top+=u+n+a)):0<l&&(o=e.top-t.collisionPosition.marginTop+u+n+a-o,e.top+u+n+a>l&&(0<o||E(o)<l)&&(e.top+=u+n+a))}},flipfit:{left:function(){x.ui.position.flip.left.apply(this,arguments),x.ui.position.fit.left.apply(this,arguments)},top:function(){x.ui.position.flip.top.apply(this,arguments),x.ui.position.fit.top.apply(this,arguments)}}},function(){var e,t=document.getElementsByTagName("body")[0],n=document.createElement("div"),i=document.createElement(t?"div":"body"),r={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};for(e in t&&x.extend(r,{position:"absolute",left:"-1000px",top:"-1000px"}),r)i.style[e]=r[e];i.appendChild(n),(t=t||document.documentElement).insertBefore(i,t.firstChild),n.style.cssText="position: absolute; left: 10.7432222px;",n=x(n).offset().left,x.support.offsetFractions=10<n&&n<11,i.innerHTML="",t.removeChild(i)}()}(t)};e(),this.resolveWith(e)}),KTVendors.module("ui/widget",function(e){var t=e,e=function(){var u,s,n,l,i;u=t,n=0,l=Array.prototype.slice,i=u.cleanData,u.cleanData=function(e){for(var t,n=0;null!=(t=e[n]);n++)try{u(t).triggerHandler("remove")}catch(e){}i(e)},u.widget=function(e,n,t){var i,r,o,a,s={},l=e.split(".")[0];e=e.split(".")[1],i=l+"-"+e,t||(t=n,n=u.Widget),u.expr[":"][i.toLowerCase()]=function(e){return!!u.data(e,i)},u[l]=u[l]||{},r=u[l][e],o=u[l][e]=function(e,t){if(!this._createWidget)return new o(e,t);arguments.length&&this._createWidget(e,t)},u.extend(o,r,{version:t.version,_proto:u.extend({},t),_childConstructors:[]}),(a=new n).options=u.widget.extend({},a.options),u.each(t,function(t,i){function r(){return n.prototype[t].apply(this,arguments)}function o(e){return n.prototype[t].apply(this,e)}u.isFunction(i)?s[t]=function(){var e,t=this._super,n=this._superApply;return this._super=r,this._superApply=o,e=i.apply(this,arguments),this._super=t,this._superApply=n,e}:s[t]=i}),o.prototype=u.widget.extend(a,{widgetEventPrefix:r?a.widgetEventPrefix:e},s,{constructor:o,namespace:l,widgetName:e,widgetFullName:i}),r?(u.each(r._childConstructors,function(e,t){var n=t.prototype;u.widget(n.namespace+"."+n.widgetName,o,t._proto)}),delete r._childConstructors):n._childConstructors.push(o),u.widget.bridge(e,o)},u.widget.extend=function(e){for(var t,n,i=l.call(arguments,1),r=0,o=i.length;r<o;r++)for(t in i[r])n=i[r][t],i[r].hasOwnProperty(t)&&n!==s&&(u.isPlainObject(n)?e[t]=u.isPlainObject(e[t])?u.widget.extend({},e[t],n):u.widget.extend({},n):e[t]=n);return e},u.widget.bridge=function(o,t){var a=t.prototype.widgetFullName||o;u.fn[o]=function(n){var e="string"==typeof n,i=l.call(arguments,1),r=this;return n=!e&&i.length?u.widget.extend.apply(null,[n].concat(i)):n,e?this.each(function(){var e,t=u.data(this,a);return t?u.isFunction(t[n])&&"_"!==n.charAt(0)?(e=t[n].apply(t,i))!==t&&e!==s?(r=e&&e.jquery?r.pushStack(e.get()):e,!1):void 0:u.error("no such method '"+n+"' for "+o+" widget instance"):u.error("cannot call methods on "+o+" prior to initialization; attempted to call method '"+n+"'")}):this.each(function(){var e=u.data(this,a);e?e.option(n||{})._init():u.data(this,a,new t(n,this))}),r}},u.Widget=function(){},u.Widget._childConstructors=[],u.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(e,t){t=u(t||this.defaultElement||this)[0],this.element=u(t),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=u.widget.extend({},this.options,this._getCreateOptions(),e),this.bindings=u(),this.hoverable=u(),this.focusable=u(),t!==this&&(u.data(t,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===t&&this.destroy()}}),this.document=u(t.style?t.ownerDocument:t.document||t),this.window=u(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:u.noop,_getCreateEventData:u.noop,_create:u.noop,_init:u.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(u.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:u.noop,widget:function(){return this.element},option:function(e,t){var n,i,r,o=e;if(0===arguments.length)return u.widget.extend({},this.options);if("string"==typeof e)if(o={},e=(n=e.split(".")).shift(),n.length){for(i=o[e]=u.widget.extend({},this.options[e]),r=0;r<n.length-1;r++)i[n[r]]=i[n[r]]||{},i=i[n[r]];if(e=n.pop(),t===s)return i[e]===s?null:i[e];i[e]=t}else{if(t===s)return this.options[e]===s?null:this.options[e];o[e]=t}return this._setOptions(o),this},_setOptions:function(e){for(var t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return this.options[e]=t,"disabled"===e&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!t).attr("aria-disabled",t),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(r,o,e){var a,s=this;"boolean"!=typeof r&&(e=o,o=r,r=!1),e?(o=a=u(o),this.bindings=this.bindings.add(o)):(e=o,o=this.element,a=this.widget()),u.each(e,function(e,t){function n(){if(r||!0!==s.options.disabled&&!u(this).hasClass("ui-state-disabled"))return("string"==typeof t?s[t]:t).apply(s,arguments)}"string"!=typeof t&&(n.guid=t.guid=t.guid||n.guid||u.guid++);var i=e.match(/^(\w+)\s*(.*)$/),e=i[1]+s.eventNamespace,i=i[2];i?a.delegate(i,e,n):o.bind(e,n)})},_off:function(e,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.unbind(t).undelegate(t)},_delay:function(e,t){var n=this;return setTimeout(function(){return("string"==typeof e?n[e]:e).apply(n,arguments)},t||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){u(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){u(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){u(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){u(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,t,n){var i,r,o=this.options[e];if(n=n||{},(t=u.Event(t)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),t.target=this.element[0],r=t.originalEvent)for(i in r)i in t||(t[i]=r[i]);return this.element.trigger(t,n),!(u.isFunction(o)&&!1===o.apply(this.element[0],[t].concat(n))||t.isDefaultPrevented())}},u.each({show:"fadeIn",hide:"fadeOut"},function(o,a){u.Widget.prototype["_"+o]=function(t,e,n){var i=(e="string"==typeof e?{effect:e}:e)?!0!==e&&"number"!=typeof e&&e.effect||a:o,r=!u.isEmptyObject(e="number"==typeof(e=e||{})?{duration:e}:e);e.complete=n,e.delay&&t.delay(e.delay),r&&u.effects&&u.effects.effect[i]?t[o](e):i!==o&&t[i]?t[i](e.duration,e.easing,n):t.queue(function(e){u(this)[o](),n&&n.call(t[0]),e()})}})};e(),this.resolveWith(e)})}),KTVendors.installer("Komento","definitions",function(e){e.module(["komento/shared/elements","komento/shared/foundry","komento/admin/admin","komento/admin/comments/actions","komento/admin/db/db","komento/admin/integrations/smileys","komento/admin/maintenance/database","komento/admin/maintenance/maintenance","komento/admin/migrators/actions","komento/admin/migrators/common","komento/admin/migrators/custom","komento/admin/migrators/progress","komento/admin/reports/actions"])}),KTVendors.installer("Komento","scripts",function(e){Komento.module("shared/elements",function(e){var t=!1;Komento.isMobile=function(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}};var n=0;window.onmousemove=function(){n++,i()};var i=e.debounce(function(){!t&&10<n?(t=!0,n=0,e(document).on("mouseover.tooltip.data-kt-api","[data-kt-provide=tooltip]",function(){e(this).tooltip({delay:{show:200,hide:100},animation:!1,template:'<div id="kt" class="tooltip tooltip-kt"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',container:"body"}).tooltip("show")})):n=0},500);Komento.isMobile()||e(document).on("mouseover.tooltip.data-kt-api","[data-kt-provide=tooltip]",function(){e(this).tooltip({delay:{show:200,hide:100},animation:!1,template:'<div id="kt" class="tooltip tooltip-kt"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',container:"body"}).tooltip("show")}),e(document).on("mouseover.popover.data-kt-api","[data-kt-provide=popover]",function(){e(this).popover({delay:{show:200,hide:100},animation:!1,trigger:"hover",container:"body"}).popover("show")}),this.resolve()}),Komento.module("shared/foundry",function(n){jQuery(document).on("fd.komento.user.browse",function(e,t,n,i){window.insertUser=function(e,t){n.val(t),i.val(e),Komento.dialog().close()},Komento.dialog({content:Komento.ajax("admin/views/users/browse")})}),jQuery(document).on("fd.komento.textcopy.copied",function(e,t){(t=n(t)).attr("data-original-title",t.data("copied")).tooltip("show")}),jQuery(document).on("fd.komento.textcopy.mouseout",function(e,t){n(t).attr("data-original-title",n(t).data("copy")).tooltip("show")}),this.resolve()}),Komento.require().script("shared/elements","shared/foundry").library("dialog").done(function(e){}),Komento.module("admin.comment.actions",function(a){var e=this;Komento.require().library("dialog").script("komento.common","admin.language").done(function(){var n={};"1.5"==Komento.options.jversion?(n.published="images/tick.png",n.unpublished="images/publish_x.png"):(n.published="templates/bluestork/images/admin/tick.png",n.unpublished="templates/bluestork/images/admin/publish_x.png"),Komento.actions={loadReplies:function(t){var e=a(".kmt-row").length;Komento.ajax("admin.views.comments.loadreplies",{parentId:t,startCount:e},{success:function(e){a("#kmt-"+t).after(e).find(".linked-cell").text("-"),a(".kmt-row").each(function(e,t){e%=2;t.removeClass("row1","row0").addClass("row"+e)}),Komento.options.jversion<"3.0"&&a("#toggle").attr("onClick","checkAll("+a(".kmt-row").length+");")}})},submit:function(r,e){0!=a(".foundryDialog").length&&a(".foundryDialog").controller().close(),Komento.actions.affectchild=e;var i=new Array,o=new Array;a('input[type="checkbox"]:checked').each(function(e,t){var n;""!=t.value&&(i.push(t.value),o.push(a("#kmt-"+t.value)),n="unstick"==r||"stick"==r?"sticked":"published",a("#kmt-"+t.value).find("."+n+"-cell a img").attr("src",Komento.options.spinner))}),Komento.ajax("admin.views.comments."+r,{ids:i,affectchild:e},{success:function(){var n=[],i=[];a.each(o,function(e,t){Komento.actions[r](t),0<t.attr("childs")&&n.push(1),0!=t.attr("parentid")&&i.push(1)}),("publish"==r&&0<i.length||"publish"!=r&&0<n.length)&&Komento.actions[r+"Dialog"]()},fail:function(){}})},publish:function(e){var t=e.find(".published-cell a").attr("onclick").replace("unpublish","publish").replace("publish","unpublish");e.find(".published-cell a").attr("onclick",t).attr("title",a.language("COM_KOMENTO_UNPUBLISH_ITEM")),Komento.options.jversion<"3.0"?e.find(".published-cell a img").attr("src",n.published):(e.find(".published-cell i").removeClass("icon-unpublish").addClass("icon-publish"),e.find(".published-cell span").removeClass("icon-unpublish").addClass("icon-publish")),Komento.actions.publishParent(e),Komento.actions.publishChild(e)},publishParent:function(e){var t;e.exists()&&(t=e.find(".published-cell a").attr("onclick").replace("unpublish","publish").replace("publish","unpublish"),e.find(".published-cell a").attr("onclick",t).attr("title",a.language("COM_KOMENTO_UNPUBLISH_ITEM")),Komento.options.jversion<"3.0"?e.find(".published-cell a img").attr("src",n.published):(e.find(".published-cell i").removeClass("icon-unpublish").addClass("icon-publish"),e.find(".published-cell span").removeClass("icon-unpublish").addClass("icon-publish")),0!=e.attr("parentid")&&Komento.actions.publishParent(a("#kmt-"+e.attr("parentid"))))},publishChild:function(e){var t;e.exists()&&(t=e.find(".published-cell a").attr("onclick").replace("unpublish","publish").replace("publish","unpublish"),e.find(".published-cell a").attr("onclick",t).attr("title",a.language("COM_KOMENTO_UNPUBLISH_ITEM")),Komento.options.jversion<"3.0"?e.find(".published-cell a img").attr("src",n.published):(e.find(".published-cell i").removeClass("icon-unpublish").addClass("icon-publish"),e.find(".published-cell span").removeClass("icon-unpublish").addClass("icon-publish")),1==Komento.actions.affectchild&0<e.attr("childs")&&(e=e.attr("id").split("-")[1],Komento.actions.publishChild(a('.kmt-row[parentid="'+e+'"]'))))},publishDialog:function(){a.dialog("<p>"+a.language("COM_KOMENTO_PARENT_PUBLISHED")+"</p>")},publishParentDialog:function(){a.dialog("<p>"+a.language("COM_KOMENTO_PARENT_PUBLISHED")+"</p>")},unpublish:function(e){var t;e.exists()&&(t=e.find(".published-cell a").attr("onclick").replace("unpublish","publish"),e.find(".published-cell a").attr("onclick",t).attr("title",a.language("COM_KOMENTO_PUBLISH_ITEM")),Komento.options.jversion<"3.0"?e.find(".published-cell a img").attr("src",n.unpublished):(e.find(".published-cell i").removeClass("icon-publish").addClass("icon-unpublish"),e.find(".published-cell span").removeClass("icon-publish").addClass("icon-unpublish")),0<e.attr("childs")&&(e=e.attr("id").split("-")[1],Komento.actions.unpublish(a('.kmt-row[parentid="'+e+'"]'))))},unpublishDialog:function(){a.dialog("<p>"+a.language("COM_KOMENTO_CHILD_UNPUBLISHED")+"</p>")},stick:function(e){var t=e.find(".sticked-cell a").attr("onclick").replace("stick","unstick");e.find(".sticked-cell a").attr("onclick",t),Komento.options.jversion<"3.0"?e.find(".sticked-cell a img").attr("src","components/com_komento/assets/images/sticked.png"):e.find(".sticked-cell i").removeClass("icon-star-empty").addClass("icon-star")},stickDialog:function(){},unstick:function(e){var t=e.find(".sticked-cell a").attr("onclick").replace("unstick","stick");e.find(".sticked-cell a").attr("onclick",t),Komento.options.jversion<"3.0"?e.find(".sticked-cell a img").attr("src","components/com_komento/assets/images/unsticked.png"):e.find(".sticked-cell i").removeClass("icon-star").addClass("icon-star-empty")},unstickDialog:function(){}},Komento.prepare={checkChild:function(){var n=[];return a('input[type="checkbox"]:checked').each(function(e,t){""!=t.value&&0<a("#kmt-"+t.value).attr("childs")&&n.push(1)}),0<n.length},remove:function(){var e,t;Komento.prepare.checkChild()?(e=a.language("COM_KOMENTO_CONFIRM_DELETE_AFFECT_ALL_CHILD"),t='<button onclick="Komento.prepare.removeall()">'+a.language("COM_KOMENTO_DELETE_ALL_CHILD")+"</button>",t+='<button onclick="Komento.prepare.removesingle()">'+a.language("COM_KOMENTO_DELETE_MOVE_CHILD_UP")+"</button>"):(e=a.language("COM_KOMENTO_CONFIRM_DELETE"),t='<button onclick="Komento.prepare.removeall()">'+a.language("COM_KOMENTO_DELETE_COMMENT")+"</button>"),a.dialog('<div style="text-align: center;"><p>'+e+"</p>"+t+"</div>")},removeall:function(){prepareSubmit("remove",1)},removesingle:function(){prepareSubmit("remove",0)},publish:function(){var e,t;Komento.prepare.checkChild()?(e=a.language("COM_KOMENTO_CONFIRM_PUBLISH_AFFECT_ALL_CHILD"),t='<button onclick="Komento.prepare.publishall()">'+a.language("COM_KOMENTO_PUBLISH_ALL_CHILD")+"</button>",t+='<button onclick="Komento.prepare.publishsingle()">'+a.language("COM_KOMENTO_PUBLISH_SINGLE")+"</button>",a.dialog('<div style="text-align: center;"><p>'+e+"</p>"+t+"</div>")):Komento.actions.submit("publish",1)},publishall:function(){Komento.actions.submit("publish",1)},publishsingle:function(){Komento.actions.submit("publish",0)},unpublish:function(){Komento.actions.submit("unpublish",1)},stick:function(){Komento.actions.submit("stick",1)},unstick:function(){Komento.actions.submit("unstick",1)},saveColumns:function(){submitform("saveColumns")}},window.submitbutton=function(e){Komento.prepare[e]()},window.prepareSubmit=function(e,t){0!=a(".foundryDialog").length&&a(".foundryDialog").controller().close(),document.adminForm.affectchild.value=t,submitform(e)},window.listItemTask=function(e,t){var n=document.adminForm,e=n[e];if(e){for(var i=0;;i++){1;{var r=n["cb"+i];if(!r)break;r.checked=!1}}e.checked=!0,n.boxchecked.value=1,submitbutton(t)}return!1},e.resolve()})}),Komento.module("admin.database",function(e){var t=this;Komento.require().language("COM_KOMENTO_SETTINGS_DATABASE_POPULATE_DEPTH_STATUS_UPDATING","COM_KOMENTO_SETTINGS_DATABASE_POPULATE_DEPTH_STATUS_COMPLETED","COM_KOMENTO_SETTINGS_DATABASE_POPULATE_DEPTH_STATUS_ERROR","COM_KOMENTO_SETTINGS_DATABASE_FIX_STRUCTURE_STATUS_UPDATING_STAGE1","COM_KOMENTO_SETTINGS_DATABASE_FIX_STRUCTURE_STATUS_UPDATING_STAGE2","COM_KOMENTO_SETTINGS_DATABASE_FIX_STRUCTURE_STATUS_ERROR","COM_KOMENTO_SETTINGS_DATABASE_FIX_STRUCTURE_STATUS_COMPLETED").done(function(i){Komento.Controller("Database.DepthMaintenance",{defaultOptions:{"{start}":".start","{status}":".status","{total}":".total","{count}":".count","{statusWrapper}":"[data-status-wrapper]","{totalWrapper}":"[data-total-wrapper]","{countWrapper}":"[data-count-wrapper]"}},function(t){return{init:function(){},"{start} click":function(e){e.enabled()&&(t.counter=0,e.disabled(!0),t.statusWrapper().show(),t.totalWrapper().show(),t.countWrapper().show(),t.status().html('<img src="'+Komento.options.spinner+'" />'+i.language("COM_KOMENTO_SETTINGS_DATABASE_POPULATE_DEPTH_STATUS_UPDATING")),t.totalArticle(0),t.countArticle(0),Komento.ajax("admin.views.system.getArticleStatistics").done(function(e){t.totalArticle(e.length),t.articles=e,t.populateDepth()}).fail(function(){t.status().html(i.language("COM_KOMENTO_SETTINGS_DATABASE_POPULATE_DEPTH_STATUS_ERROR"))}))},populateDepth:function(){var e=t.articles[t.counter];void 0!==e?Komento.ajax("admin.views.system.populateDepth",{component:e.component,cid:e.cid}).done(function(e){t.counter++,t.countArticle(parseInt(t.countArticle())+1),t.populateDepth()}).fail(function(){t.status().html(i.language("COM_KOMENTO_SETTINGS_DATABASE_POPULATE_DEPTH_STATUS_ERROR"))}):t.populateComplete()},totalArticle:function(e){return void 0===e?t.total().html():t.total().html(e)},countArticle:function(e){return void 0===e?t.count().html():t.count().html(e)},populateComplete:function(){t.status().html(i.language("COM_KOMENTO_SETTINGS_DATABASE_POPULATE_DEPTH_STATUS_COMPLETED")),t.start().enabled(!0)}}}),Komento.Controller("Database.FixStructure",{defaultOptions:{"{component}":".componentSelection","{article}":".articleSelection","{start}":".start","{fixstatus}":".fixStatus","{total}":".total","{count}":".count","{statusWrapper}":"[data-status-wrapper]","{totalWrapper}":"[data-total-wrapper]","{countWrapper}":"[data-count-wrapper]"}},function(n){return{init:function(){},"{component} change":function(e){e=e.val();n.article().html(n.createOption("all","*")),"all"!==e&&Komento.ajax("admin.views.system.getArticles",{component:e}).done(function(e){i.each(e,function(e,t){n.article().append(n.createOption(t,t))})})},createOption:function(e,t){var n=i("<option></option>");return n.attr("value",e),n.text(t),n},"{start} click":function(e){var t;e.enabled()&&(n.counter=0,e.disabled(!0),n.statusWrapper().show(),n.totalWrapper().show(),n.countWrapper().show(),n.fixstatus().html('<img src="'+Komento.options.spinner+'" />'+i.language("COM_KOMENTO_SETTINGS_DATABASE_FIX_STRUCTURE_fixstatus_UPDATING_STAGE1")),n.totalArticle(0),n.countArticle(0),t=n.component().val(),e=n.article().val(),Komento.ajax("admin.views.system.getArticleStatistics",{component:t,cid:e}).done(function(e){n.totalArticle(e.length),n.articles=e,n.normalizeStructure()}).fail(function(){n.fixstatus().html(i.language("COM_KOMENTO_SETTINGS_DATABASE_FIX_STRUCTURE_STATUS_ERROR"))}))},normalizeStructure:function(){var e=n.articles[n.counter];if(void 0===e)return n.fixstatus().html('<img src="'+Komento.options.spinner+'" />'+i.language("COM_KOMENTO_SETTINGS_DATABASE_FIX_STRUCTURE_STATUS_UPDATING_STAGE2")),n.countArticle(0),n.counter=0,void n.fixStructure();Komento.ajax("admin.views.system.normalizeStructure",{component:e.component,cid:e.cid}).done(function(e){n.counter++,n.countArticle(parseInt(n.countArticle())+1),n.normalizeStructure()})},fixStructure:function(){var e=n.articles[n.counter];void 0!==e?Komento.ajax("admin.views.system.fixStructure",{component:e.component,cid:e.cid}).done(function(e){n.counter++,n.countArticle(parseInt(n.countArticle())+1),n.fixStructure(),n.fixComplete()}).fail(function(){n.fixstatus().html(i.language("COM_KOMENTO_SETTINGS_DATABASE_FIX_STRUCTURE_STATUS_ERROR"))}):n.fixComplete()},totalArticle:function(e){return void 0===e?n.total().html():n.total().html(e)},countArticle:function(e){return void 0===e?n.count().html():n.count().html(e)},fixComplete:function(){n.fixstatus().html(i.language("COM_KOMENTO_SETTINGS_DATABASE_FIX_STRUCTURE_STATUS_COMPLETED")),n.start().enabled(!0)}}}),t.resolve()})}),Komento.module("admin.integrations.customsmileys",function(e){Komento.Controller("CustomSmileys",{defaultOptions:{"{smiley}":"[data-smiley]","{addRow}":"[data-smiley-add-row]","{add}":"[data-smiley-add-button]","{delete}":"[data-smiley-delete-button]"}},function(t){return{init:function(){},"{add} click":function(){var e=t.smiley().eq(0).clone();e.find("input").val(""),t.addRow().before(e)},"{delete} click":function(e){e=e.parent("[data-smiley]");1<t.smiley().length?e.remove():e.find("input").val("")}}}),this.resolve()}),Komento.module("admin/maintenance/database",function(e){Komento.Controller("Maintenance.Execute",{defaultOptions:{"{container}":"[data-maintenance-database]","{start}":"[data-start]","{progress}":"[data-progress]","{progressBox}":"[data-progress-box]","{progressBar}":"[data-progress-bar]","{progressPercentage}":"[data-progress-percentage]","{errorBox}":"[data-error]","{successBox}":"[data-success]"}},function(n){return{init:function(){},counter:0,versions:[],"{start} click":function(e){e.hide(),n.progress().show(),n.process()},process:function(){n.getStats().done(function(e){n.versions=e,n.execute()})},getStats:function(){return Komento.ajax("admin/controllers/maintenance/getDatabaseStats")},execute:function(){if(void 0===n.versions[n.counter])return n.completed();n.successBox().hide(),Komento.ajax("admin/controllers/maintenance/synchronizeDatabase",{version:n.versions[n.counter]}).fail(function(e){var t=n.errorBox();t.show(),t.append('<div class="alert alert-danger">'+e+"</div>")}).always(function(){n.counter++;var e=Math.floor(n.counter/n.versions.length*100)+"%";n.progressBar().css("width",e),n.progressPercentage().text(e),n.execute()})},completed:function(){n.progressBar().css("width","100%"),n.progressPercentage().text("100%"),n.progressBox().removeClass("progress-info").addClass("progress-success"),n.successBox().delay(1e3).fadeIn(400)}}}),this.resolve()}),Komento.module("admin/maintenance/maintenance",function(e){Komento.Controller("Maintenance.Execute",{defaultOptions:{"{row}":"[data-row]"}},function(n){return{init:function(){n.runscript()},counter:0,success:0,fail:0,runscript:function(){var e=n.row().eq(n.counter);if(0===e.length)return n.completed();var t=e.data("key");Komento.ajax("admin/controllers/maintenance/runscript",{key:t}).done(function(){n.setStatus(e,1),n.success++}).fail(function(){n.setStatus(e,0),n.fail++}).always(function(){n.counter++,n.runscript()})},completed:function(){n.fail<1&&(window.location="index.php?option=com_komento&view=maintenance&success="+n.success)},setStatus:function(e,t){var n=e.find("[data-status]"),r=e.find("[data-icon]"),o=["label-danger","label-success","label-warning"],a=["fa-exclamation-triangle","fa-check","fa-wrench"];for(i=0;i<3;i++)n.toggleClass(o[i],t==i),r.toggleClass(a[i],t==i)}}}),this.resolve()}),Komento.module("migrator.actions",function(e){var t=this;Komento.require().script("admin.language","komento.common").done(function(){Komento.Controller("Migrator.Actions",{defaults:{"{migrateButton}":".migrateButton","{deleteButton}":".deleteButton","{migrateSettingsButton}":".migrateSettingsButton"}},function(t){return{init:function(){t.progress=t.element.find(".migratorProgress"),t.migrator=t.element.find(".migratorTable")},"{migrateButton} click":function(e){e.checkClick()&&t.migrateStart()},"{migrateSettingsButton} click":function(e){Komento.ajax("admin.views.integrations.migrateSettings",{component:t.element.find("#componentSettings").val(),currentComponent:e.data("current-component")},{success:function(){t.element.find("#SettingsMigratorProgress").removeClass("hide")}})},migrateStart:function(){t.progress.controller().migratedComments().text("0"),t.progress.controller().progressBar().width("0%"),t.progress.controller().progressPercentage().text("0"),t.progress.controller().progressStatus().html('<img src="'+Komento.options.spinner+'" /> Migrating...'),t.migrator.controller().getStatistic()},migrateComplete:function(){t.progress.controller().progressStatus().text(e.language("COM_KOMENTO_MIGRATORS_PROGRESS_DONE")),t.progress.controller().log(e.language("COM_KOMENTO_MIGRATORS_LOG_COMPLETE")),t.migrateButton().enable()}}}),t.resolve()})}),Komento.module("migrator.common",function(i){Komento.Controller("Migrator.Common",{defaults:{"{categoriesList}":"#category","{componentsList}":"#components","{publishingState}":"#publishingState","{migrateLikes}":"#migrateLikes"}},function(o){return{init:function(){o.migrationType=o.element.attr("migration-type"),o.migratorType=o.element.attr("migrator-type"),o.progress=o.element.find(".migratorProgress"),o.actions=o.element.parents(".tab-pane")},getStatistic:function(){var e,t;switch(o.migrationType){case"component":t="components",e=o.componentsList().val();break;case"article":t="categories",e=o.categoriesList().val();break;case"custom":t="data",e=i(".migrator-custom-data").controller().getData()}var n={};n[t]=e,Komento.ajax("admin.views.migrators.getmigrator",{type:o.migratorType,function:"getstatistic",params:n},{success:function(e,t){o.progress.controller().setTotalPosts(e.length),o.progress.controller().setTotalComments(t),0<t&&("custom"==o.migratorType?o.migrateCustom(n,0,t):o.migrate(e,0,e[0]))},log:function(e){o.progress.controller().log(e)}})},migrate:function(e,t,n){var i,r;void 0!==n?("article"===o.migrationType&&(r=n,n={component:o.migratorType,cid:r}),i=o.publishingState().val(),r=o.migrateLikes().is(":checked")?1:0,Komento.ajax("admin.views.migrators.getmigrator",{type:o.migratorType,function:"migrate",params:{component:n.component,cid:n.cid,publishingState:i,migrateLikes:r}},{success:function(){o.migrate(e,t+1,e[t+1])},fail:function(e){o.progress.controller().log("error: "+e)},update:function(e){o.progress.controller().updateMigratedComments(e)},log:function(e){o.progress.controller().log(e)}})):o.actions.controller().migrateComplete()},migrateCustom:function(t,e,n){n<=e?o.actions.controller().migrateComplete():(t.data.start=e,Komento.ajax("admin.views.migrators.getmigrator",{type:o.migratorType,function:"migrate",params:t},{success:function(e){o.migrateCustom(t,e,n)},fail:function(e){o.progress.controller().log("error: "+e)},update:function(e){o.progress.controller().updateMigratedComments(e)},log:function(e){o.progress.controller().log(e)}}))}}}),this.resolve()}),Komento.module("admin/migrators/custom",function(r){Komento.Controller("Migrator.Custom",{defaults:{"{migrateTable}":"[data-custom-table]","{componentFilter}":"[data-custom-component-filter]","{tableColumns}":"[data-table-columns]","{cycleAmount}":"[data-migrate-cycle]"}},function(t){return{init:function(){t.loadTableColumns()},"{migrateTable} change":function(){t.loadTableColumns()},loadTableColumns:function(){var e=t.migrateTable().val();Komento.ajax("admin/views/migrators/getColumns",{tableName:e}).done(function(i){t.tableColumns().each(function(e,t){var n=i;r(t).data("required")||(n='<option value="notavailable">none</option>'+i),r(t).html(n)})})},getData:function(){var i={};return i.table=t.migrateTable().val(),t.tableColumns().each(function(e,t){var n=r(t).attr("id").slice(15);i[n]=r(t).val()}),i.componentFilter=t.componentFilter().val(),i.cycle=t.cycleAmount().val(),i}}}),this.resolve()}),Komento.module("migrator.progress",function(e){var t=this;Komento.require().script("admin.language","komento.common").done(function(){Komento.Controller("Migrator.Progress",{defaults:{"{progressBar}":".progressBar","{progressStatus}":".progressStatus","{progressPercentage}":".progressPercentage","{logList}":".logList","{clearLog}":".clearLog","{totalComments}":".totalComments","{totalPosts}":".totalPosts","{migratedComments}":".migratedComments"}},function(n){return{init:function(){},"{clearLog} click":function(){n.logList().html("")},setTotalPosts:function(e){n.totalPosts().text(e)},setTotalComments:function(e){n.totalComments().text(e)},updateMigratedComments:function(e){var t=n.migratedComments().text(),t=parseInt(t)+parseInt(e);n.migratedComments().text(t);e=parseInt(n.totalComments().eq(0).text()),e=Math.ceil(t/e*100);n.progressBar().animate({width:e.toString()+"%"}),n.progressPercentage().text(e)},log:function(e){var t=new Date,t="<li>"+("["+(9<t.getHours()?t.getHours():"0"+t.getHours())+":"+(9<t.getMinutes()?t.getMinutes():"0"+t.getMinutes())+":"+(9<t.getSeconds()?t.getSeconds():"0"+t.getSeconds())+"]")+" "+e+"</li>",e=n.logList()[0].scrollHeight;n.logList().append(t).scrollTop(e)}}}),t.resolve()})}),Komento.module("admin.report.actions",function(a){var e=this;Komento.require().library("dialog").script("komento.common","admin.language").done(function(){var n={};"1.5"==Komento.options.jversion?(n.published="images/tick.png",n.unpublished="images/publish_x.png"):(n.published="templates/bluestork/images/admin/tick.png",n.unpublished="templates/bluestork/images/admin/publish_x.png"),Komento.actions={submit:function(r,e){0!=a(".foundryDialog").length&&a(".foundryDialog").controller().close(),Komento.actions.affectchild=e;var i=new Array,o=new Array;a('input[type="checkbox"]:checked').each(function(e,t){var n;""!=t.value&&(i.push(t.value),o.push(a("#kmt-"+t.value)),n="unstick"==r||"stick"==r?"sticked":"published",a("#kmt-"+t.value).find("."+n+"-cell a img").attr("src",Komento.options.spinner))}),Komento.ajax("admin.views.comments."+r,{ids:i,affectchild:e},{success:function(){var n=[],i=[];a.each(o,function(e,t){Komento.actions[r](t),0<t.attr("childs")&&n.push(1),0!=t.attr("parentid")&&i.push(1)}),("publish"==r&&0<i.length||"publish"!=r&&0<n.length)&&Komento.actions[r+"Dialog"]()},fail:function(){}})},publish:function(e){var t=e.find(".published-cell a").attr("onclick").replace("unpublish","publish").replace("publish","unpublish");e.find(".published-cell a").attr("onclick",t).attr("title",a.language("COM_KOMENTO_UNPUBLISH_ITEM")),Komento.options.jversion<"3.0"?e.find(".published-cell a img").attr("src",n.published):(e.find(".published-cell i").removeClass("icon-unpublish").addClass("icon-publish"),e.find(".published-cell span").removeClass("icon-unpublish").addClass("icon-publish")),Komento.actions.publishParent(e),Komento.actions.publishChild(e)},publishParent:function(e){var t;e.exists()&&(t=e.find(".published-cell a").attr("onclick").replace("unpublish","publish").replace("publish","unpublish"),e.find(".published-cell a").attr("onclick",t).attr("title",a.language("COM_KOMENTO_UNPUBLISH_ITEM")),Komento.options.jversion<"3.0"?e.find(".published-cell a img").attr("src",n.published):(e.find(".published-cell i").removeClass("icon-unpublish").addClass("icon-publish"),e.find(".published-cell span").removeClass("icon-unpublish").addClass("icon-publish")),0!=e.attr("parentid")&&Komento.actions.publishParent(a("#kmt-"+e.attr("parentid"))))},publishChild:function(e){var t;e.exists()&&(t=e.find(".published-cell a").attr("onclick").replace("unpublish","publish").replace("publish","unpublish"),e.find(".published-cell a").attr("onclick",t).attr("title",a.language("COM_KOMENTO_UNPUBLISH_ITEM")),Komento.options.jversion<"3.0"?e.find(".published-cell a img").attr("src",n.published):e.find(".published-cell i").removeClass("icon-unpublish").addClass("icon-publish"),1==Komento.actions.affectchild&0<e.attr("childs")&&(e=e.attr("id").split("-")[1],Komento.actions.publishChild(a('.kmt-row[parentid="'+e+'"]'))))},publishDialog:function(){a.dialog("<p>"+a.language("COM_KOMENTO_PARENT_PUBLISHED")+"</p>")},publishParentDialog:function(){a.dialog("<p>"+a.language("COM_KOMENTO_PARENT_PUBLISHED")+"</p>")},unpublish:function(e){var t;e.exists()&&(t=e.find(".published-cell a").attr("onclick").replace("unpublish","publish"),e.find(".published-cell a").attr("onclick",t).attr("title",a.language("COM_KOMENTO_PUBLISH_ITEM")),Komento.options.jversion<"3.0"?e.find(".published-cell a img").attr("src",n.unpublished):(e.find(".published-cell i").removeClass("icon-publish").addClass("icon-unpublish"),e.find(".published-cell span").removeClass("icon-publish").addClass("icon-unpublish")),0<e.attr("childs")&&(e=e.attr("id").split("-")[1],Komento.actions.unpublish(a('.kmt-row[parentid="'+e+'"]'))))},unpublishDialog:function(){a.dialog("<p>"+a.language("COM_KOMENTO_CHILD_UNPUBLISHED")+"</p>")}},Komento.prepare={checkChild:function(){var n=[];return a('input[type="checkbox"]:checked').each(function(e,t){""!=t.value&&0<a("#kmt-"+t.value).attr("childs")&&n.push(1)}),0<n.length},remove:function(){var e,t;Komento.prepare.checkChild()?(e=a.language("COM_KOMENTO_CONFIRM_DELETE_AFFECT_ALL_CHILD"),t='<button onclick="Komento.prepare.removeall()">'+a.language("COM_KOMENTO_DELETE_ALL_CHILD")+"</button>",t+='<button onclick="Komento.prepare.removesingle()">'+a.language("COM_KOMENTO_DELETE_MOVE_CHILD_UP")+"</button>"):(e=a.language("COM_KOMENTO_CONFIRM_DELETE"),t='<button onclick="Komento.prepare.removeall()">'+a.language("COM_KOMENTO_DELETE_COMMENT")+"</button>"),a.dialog('<div style="text-align: center;"><p>'+e+"</p>"+t+"</div>")},removeall:function(){prepareSubmit("remove",1)},removesingle:function(){prepareSubmit("remove",0)},publish:function(){var e,t;Komento.prepare.checkChild()?(e=a.language("COM_KOMENTO_CONFIRM_PUBLISH_AFFECT_ALL_CHILD"),t='<button onclick="Komento.prepare.publishall()">'+a.language("COM_KOMENTO_PUBLISH_ALL_CHILD")+"</button>",t+='<button onclick="Komento.prepare.publishsingle()">'+a.language("COM_KOMENTO_PUBLISH_SINGLE")+"</button>",a.dialog('<div style="text-align: center;"><p>'+e+"</p>"+t+"</div>")):Komento.actions.submit("publish",1)},publishall:function(){Komento.actions.submit("publish",1)},publishsingle:function(){Komento.actions.submit("publish",0)},unpublish:function(){Komento.actions.submit("unpublish",1)},clear:function(){submitform("clear")}},window.submitbutton=function(e){Komento.prepare[e]()},window.prepareSubmit=function(e,t){0!=a(".foundryDialog").length&&a(".foundryDialog").controller().close(),document.adminForm.affectchild.value=t,submitform(e)},window.listItemTask=function(e,t){var n=document.adminForm,e=n[e];if(e){for(var i=0;;i++){1;{var r=n["cb"+i];if(!r)break;r.checked=!1}}e.checked=!0,n.boxchecked.value=1,submitbutton(t)}return!1},e.resolve()})})});