/*! jquery v2.2.4 | (c) jquery foundation | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new error("jquery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexof,i={},j=i.tostring,k=i.hasownproperty,l={},m="2.2.4",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\ufeff\xa0]+|[\s\ufeff\xa0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.touppercase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toarray:function(){return e.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:e.call(this)},pushstack:function(a){var b=n.merge(this.constructor(),a);return b.prevobject=this,b.context=this.context,b},each:function(a){return n.each(this,a)},map:function(a){return this.pushstack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushstack(e.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushstack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevobject||this.constructor()},push:g,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isfunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(n.isplainobject(d)||(e=n.isarray(d)))?(e?(e=!1,f=c&&n.isarray(c)?c:[]):f=c&&n.isplainobject(c)?c:{},g[b]=n.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},n.extend({expando:"jquery"+(m+math.random()).replace(/\d/g,""),isready:!0,error:function(a){throw new error(a)},noop:function(){},isfunction:function(a){return"function"===n.type(a)},isarray:array.isarray,iswindow:function(a){return null!=a&&a===a.window},isnumeric:function(a){var b=a&&a.tostring();return!n.isarray(a)&&b-parsefloat(b)+1>=0},isplainobject:function(a){var b;if("object"!==n.type(a)||a.nodetype||n.iswindow(a))return!1;if(a.constructor&&!k.call(a,"constructor")&&!k.call(a.constructor.prototype||{},"isprototypeof"))return!1;for(b in a);return void 0===b||k.call(a,b)},isemptyobject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?i[j.call(a)]||"object":typeof a},globaleval:function(a){var b,c=eval;a=n.trim(a),a&&(1===a.indexof("use strict")?(b=d.createelement("script"),b.text=a,d.head.appendchild(b).parentnode.removechild(b)):c(a))},camelcase:function(a){return a.replace(p,"ms-").replace(q,r)},nodename:function(a,b){return a.nodename&&a.nodename.tolowercase()===b.tolowercase()},each:function(a,b){var c,d=0;if(s(a)){for(c=a.length;c>d;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makearray:function(a,b){var c=b||[];return null!=a&&(s(object(a))?n.merge(c,"string"==typeof a?[a]:a):g.call(c,a)),c},inarray:function(a,b,c){return null==b?-1:h.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,e,g=0,h=[];if(s(a))for(d=a.length;d>g;g++)e=b(a[g],g,c),null!=e&&h.push(e);else for(g in a)e=b(a[g],g,c),null!=e&&h.push(e);return f.apply([],h)},guid:1,proxy:function(a,b){var c,d,f;return"string"==typeof b&&(c=a[b],b=a,a=c),n.isfunction(a)?(d=e.call(arguments,2),f=function(){return a.apply(b||this,d.concat(e.call(arguments)))},f.guid=a.guid=a.guid||n.guid++,f):void 0},now:date.now,support:l}),"function"==typeof symbol&&(n.fn[symbol.iterator]=c[symbol.iterator]),n.each("boolean number string function array date regexp object error symbol".split(" "),function(a,b){i["[object "+b+"]"]=b.tolowercase()});function s(a){var b=!!a&&"length"in a&&a.length,c=n.type(a);return"function"===c||n.iswindow(a)?!1:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new date,v=a.document,w=0,x=0,y=ga(),z=ga(),a=ga(),b=function(a,b){return a===b&&(l=!0),0},c=1<<31,d={}.hasownproperty,e=[],f=e.pop,g=e.push,h=e.push,i=e.slice,j=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},k="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",l="[\\x20\\t\\r\\n\\f]",m="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",n="\\["+l+"*("+m+")(?:"+l+"*([*^$|!~]?=)"+l+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+m+"))|)"+l+"*\\]",o=":("+m+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+n+")*)|.*)\\)|)",p=new regexp(l+"+","g"),q=new regexp("^"+l+"+|((?:^|[^\\\\])(?:\\\\.)*)"+l+"+$","g"),r=new regexp("^"+l+"*,"+l+"*"),s=new regexp("^"+l+"*([>+~]|"+l+")"+l+"*"),t=new regexp("="+l+"*([^\\]'\"]*?)"+l+"*\\]","g"),u=new regexp(o),v=new regexp("^"+m+"$"),w={id:new regexp("^#("+m+")"),class:new regexp("^\\.("+m+")"),tag:new regexp("^("+m+"|[*])"),attr:new regexp("^"+n),pseudo:new regexp("^"+o),child:new regexp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+l+"*(even|odd|(([+-]|)(\\d*)n|)"+l+"*(?:([+-]|)"+l+"*(\\d+)|))"+l+"*\\)|)","i"),bool:new regexp("^(?:"+k+")$","i"),needscontext:new regexp("^"+l+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+l+"*((?:-\\d)?\\d*)"+l+"*\\)|)(?=[^-]|$)","i")},x=/^(?:input|select|textarea|button)$/i,y=/^h\d$/i,z=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_=/[+~]/,aa=/'|\\/g,ba=new regexp("\\\\([\\da-f]{1,6}"+l+"?|("+l+")|.)","ig"),ca=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?string.fromcharcode(d+65536):string.fromcharcode(d>>10|55296,1023&d|56320)},da=function(){m()};try{h.apply(e=i.call(v.childnodes),v.childnodes),e[v.childnodes.length].nodetype}catch(ea){h={apply:e.length?function(a,b){g.apply(a,i.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fa(a,b,d,e){var f,h,j,k,l,o,r,s,w=b&&b.ownerdocument,x=b?b.nodetype:9;if(d=d||[],"string"!=typeof a||!a||1!==x&&9!==x&&11!==x)return d;if(!e&&((b?b.ownerdocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==x&&(o=$.exec(a)))if(f=o[1]){if(9===x){if(!(j=b.getelementbyid(f)))return d;if(j.id===f)return d.push(j),d}else if(w&&(j=w.getelementbyid(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(o[2])return h.apply(d,b.getelementsbytagname(a)),d;if((f=o[3])&&c.getelementsbyclassname&&b.getelementsbyclassname)return h.apply(d,b.getelementsbyclassname(f)),d}if(c.qsa&&!a[a+" "]&&(!q||!q.test(a))){if(1!==x)w=b,s=a;else if("object"!==b.nodename.tolowercase()){(k=b.getattribute("id"))?k=k.replace(aa,"\\$&"):b.setattribute("id",k=u),r=g(a),h=r.length,l=v.test(k)?"#"+k:"[id='"+k+"']";while(h--)r[h]=l+" "+qa(r[h]);s=r.join(","),w=_.test(a)&&oa(b.parentnode)||b}if(s)try{return h.apply(d,w.queryselectorall(s)),d}catch(y){}finally{k===u&&b.removeattribute("id")}}}return i(a.replace(q,"$1"),b,d,e)}function ga(){var a=[];function b(c,e){return a.push(c+" ")>d.cachelength&&delete b[a.shift()],b[c+" "]=e}return b}function ha(a){return a[u]=!0,a}function ia(a){var b=n.createelement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentnode&&b.parentnode.removechild(b),b=null}}function ja(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrhandle[c[e]]=b}function ka(a,b){var c=b&&a,d=c&&1===a.nodetype&&1===b.nodetype&&(~b.sourceindex||c)-(~a.sourceindex||c);if(d)return d;if(c)while(c=c.nextsibling)if(c===b)return-1;return a?1:-1}function la(a){return function(b){var c=b.nodename.tolowercase();return"input"===c&&b.type===a}}function ma(a){return function(b){var c=b.nodename.tolowercase();return("input"===c||"button"===c)&&b.type===a}}function na(a){return ha(function(b){return b=+b,ha(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function oa(a){return a&&"undefined"!=typeof a.getelementsbytagname&&a}c=fa.support={},f=fa.isxml=function(a){var b=a&&(a.ownerdocument||a).documentelement;return b?"html"!==b.nodename:!1},m=fa.setdocument=function(a){var b,e,g=a?a.ownerdocument||a:v;return g!==n&&9===g.nodetype&&g.documentelement?(n=g,o=n.documentelement,p=!f(n),(e=n.defaultview)&&e.top!==e&&(e.addeventlistener?e.addeventlistener("unload",da,!1):e.attachevent&&e.attachevent("onunload",da)),c.attributes=ia(function(a){return a.classname="i",!a.getattribute("classname")}),c.getelementsbytagname=ia(function(a){return a.appendchild(n.createcomment("")),!a.getelementsbytagname("*").length}),c.getelementsbyclassname=z.test(n.getelementsbyclassname),c.getbyid=ia(function(a){return o.appendchild(a).id=u,!n.getelementsbyname||!n.getelementsbyname(u).length}),c.getbyid?(d.find.id=function(a,b){if("undefined"!=typeof b.getelementbyid&&p){var c=b.getelementbyid(a);return c?[c]:[]}},d.filter.id=function(a){var b=a.replace(ba,ca);return function(a){return a.getattribute("id")===b}}):(delete d.find.id,d.filter.id=function(a){var b=a.replace(ba,ca);return function(a){var c="undefined"!=typeof a.getattributenode&&a.getattributenode("id");return c&&c.value===b}}),d.find.tag=c.getelementsbytagname?function(a,b){return"undefined"!=typeof b.getelementsbytagname?b.getelementsbytagname(a):c.qsa?b.queryselectorall(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getelementsbytagname(a);if("*"===a){while(c=f[e++])1===c.nodetype&&d.push(c);return d}return f},d.find.class=c.getelementsbyclassname&&function(a,b){return"undefined"!=typeof b.getelementsbyclassname&&p?b.getelementsbyclassname(a):void 0},r=[],q=[],(c.qsa=z.test(n.queryselectorall))&&(ia(function(a){o.appendchild(a).innerhtml="",a.queryselectorall("[msallowcapture^='']").length&&q.push("[*^$]="+l+"*(?:''|\"\")"),a.queryselectorall("[selected]").length||q.push("\\["+l+"*(?:value|"+k+")"),a.queryselectorall("[id~="+u+"-]").length||q.push("~="),a.queryselectorall(":checked").length||q.push(":checked"),a.queryselectorall("a#"+u+"+*").length||q.push(".#.+[+~]")}),ia(function(a){var b=n.createelement("input");b.setattribute("type","hidden"),a.appendchild(b).setattribute("name","d"),a.queryselectorall("[name=d]").length&&q.push("name"+l+"*[*^$|!~]?="),a.queryselectorall(":enabled").length||q.push(":enabled",":disabled"),a.queryselectorall("*,:x"),q.push(",.*:")})),(c.matchesselector=z.test(s=o.matches||o.webkitmatchesselector||o.mozmatchesselector||o.omatchesselector||o.msmatchesselector))&&ia(function(a){c.disconnectedmatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",o)}),q=q.length&&new regexp(q.join("|")),r=r.length&&new regexp(r.join("|")),b=z.test(o.comparedocumentposition),t=b||z.test(o.contains)?function(a,b){var c=9===a.nodetype?a.documentelement:a,d=b&&b.parentnode;return a===d||!(!d||1!==d.nodetype||!(c.contains?c.contains(d):a.comparedocumentposition&&16&a.comparedocumentposition(d)))}:function(a,b){if(b)while(b=b.parentnode)if(b===a)return!0;return!1},b=b?function(a,b){if(a===b)return l=!0,0;var d=!a.comparedocumentposition-!b.comparedocumentposition;return d?d:(d=(a.ownerdocument||a)===(b.ownerdocument||b)?a.comparedocumentposition(b):1,1&d||!c.sortdetached&&b.comparedocumentposition(a)===d?a===n||a.ownerdocument===v&&t(v,a)?-1:b===n||b.ownerdocument===v&&t(v,b)?1:k?j(k,a)-j(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentnode,f=b.parentnode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?j(k,a)-j(k,b):0;if(e===f)return ka(a,b);c=a;while(c=c.parentnode)g.unshift(c);c=b;while(c=c.parentnode)h.unshift(c);while(g[d]===h[d])d++;return d?ka(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},fa.matches=function(a,b){return fa(a,null,null,b)},fa.matchesselector=function(a,b){if((a.ownerdocument||a)!==n&&m(a),b=b.replace(t,"='$1']"),c.matchesselector&&p&&!a[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedmatch||a.document&&11!==a.document.nodetype)return d}catch(e){}return fa(b,n,null,[a]).length>0},fa.contains=function(a,b){return(a.ownerdocument||a)!==n&&m(a),t(a,b)},fa.attr=function(a,b){(a.ownerdocument||a)!==n&&m(a);var e=d.attrhandle[b.tolowercase()],f=e&&d.call(d.attrhandle,b.tolowercase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getattribute(b):(f=a.getattributenode(b))&&f.specified?f.value:null},fa.error=function(a){throw new error("syntax error, unrecognized expression: "+a)},fa.uniquesort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectduplicates,k=!c.sortstable&&a.slice(0),a.sort(b),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fa.gettext=function(a){var b,c="",d=0,f=a.nodetype;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textcontent)return a.textcontent;for(a=a.firstchild;a;a=a.nextsibling)c+=e(a)}else if(3===f||4===f)return a.nodevalue}else while(b=a[d++])c+=e(b);return c},d=fa.selectors={cachelength:50,createpseudo:ha,match:w,attrhandle:{},find:{},relative:{">":{dir:"parentnode",first:!0}," ":{dir:"parentnode"},"+":{dir:"previoussibling",first:!0},"~":{dir:"previoussibling"}},prefilter:{attr:function(a){return a[1]=a[1].replace(ba,ca),a[3]=(a[3]||a[4]||a[5]||"").replace(ba,ca),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},child:function(a){return a[1]=a[1].tolowercase(),"nth"===a[1].slice(0,3)?(a[3]||fa.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&fa.error(a[0]),a},pseudo:function(a){var b,c=!a[6]&&a[2];return w.child.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&u.test(c)&&(b=g(c,!0))&&(b=c.indexof(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{tag:function(a){var b=a.replace(ba,ca).tolowercase();return"*"===a?function(){return!0}:function(a){return a.nodename&&a.nodename.tolowercase()===b}},class:function(a){var b=y[a+" "];return b||(b=new regexp("(^|"+l+")"+a+"("+l+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.classname&&a.classname||"undefined"!=typeof a.getattribute&&a.getattribute("class")||"")})},attr:function(a,b,c){return function(d){var e=fa.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexof(c):"*="===b?c&&e.indexof(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(p," ")+" ").indexof(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},child:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentnode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextsibling":"previoussibling",q=b.parentnode,r=h&&b.nodename.tolowercase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodename.tolowercase()===r:1===m.nodetype)return!1;o=p="only"===a&&!o&&"nextsibling"}return!0}if(o=[g?q.firstchild:q.lastchild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueid]||(l[m.uniqueid]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childnodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodetype&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueid]||(l[m.uniqueid]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodename.tolowercase()===r:1===m.nodetype)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueid]||(l[m.uniqueid]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},pseudo:function(a,b){var c,e=d.pseudos[a]||d.setfilters[a.tolowercase()]||fa.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setfilters.hasownproperty(a.tolowercase())?ha(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=j(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ha(function(a){var b=[],c=[],d=h(a.replace(q,"$1"));return d[u]?ha(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ha(function(a){return function(b){return fa(a,b).length>0}}),contains:ha(function(a){return a=a.replace(ba,ca),function(b){return(b.textcontent||b.innertext||e(b)).indexof(a)>-1}}),lang:ha(function(a){return v.test(a||"")||fa.error("unsupported lang: "+a),a=a.replace(ba,ca).tolowercase(),function(b){var c;do if(c=p?b.lang:b.getattribute("xml:lang")||b.getattribute("lang"))return c=c.tolowercase(),c===a||0===c.indexof(a+"-");while((b=b.parentnode)&&1===b.nodetype);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeelement&&(!n.hasfocus||n.hasfocus())&&!!(a.type||a.href||~a.tabindex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodename.tolowercase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentnode&&a.parentnode.selectedindex,a.selected===!0},empty:function(a){for(a=a.firstchild;a;a=a.nextsibling)if(a.nodetype<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return y.test(a.nodename)},input:function(a){return x.test(a.nodename)},button:function(a){var b=a.nodename.tolowercase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodename.tolowercase()&&"text"===a.type&&(null==(b=a.getattribute("type"))||"text"===b.tolowercase())},first:na(function(){return[0]}),last:na(function(a,b){return[b-1]}),eq:na(function(a,b,c){return[0>c?c+b:c]}),even:na(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:na(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:na(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:na(function(a,b,c){for(var d=0>c?c+b:c;++db;b++)d+=a[b].value;return d}function ra(a,b,c){var d=b.dir,e=c&&"parentnode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodetype||e)return a(b,c,f)}:function(b,c,g){var h,i,j,k=[w,f];if(g){while(b=b[d])if((1===b.nodetype||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodetype||e){if(j=b[u]||(b[u]={}),i=j[b.uniqueid]||(j[b.uniqueid]={}),(h=i[d])&&h[0]===w&&h[1]===f)return k[2]=h[2];if(i[d]=k,k[2]=a(b,c,g))return!0}}}function sa(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ta(a,b,c){for(var d=0,e=b.length;e>d;d++)fa(a,b[d],c);return c}function ua(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(c&&!c(f,d,e)||(g.push(f),j&&b.push(h)));return g}function va(a,b,c,d,e,f){return d&&!d[u]&&(d=va(d)),e&&!e[u]&&(e=va(e,f)),ha(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ta(b||"*",h.nodetype?[h]:h,[]),q=!a||!f&&b?p:ua(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ua(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?j(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ua(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):h.apply(g,r)})}function wa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ra(function(a){return a===b},h,!0),l=ra(function(a){return j(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodetype?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[ra(sa(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return va(i>1&&sa(m),i>1&&qa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(q,"$1"),c,e>i&&wa(a.slice(i,e)),f>e&&wa(a=a.slice(e)),f>e&&qa(a))}m.push(c)}return sa(m)}function xa(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.tag("*",k),y=w+=null==v?1:math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerdocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=f.call(i));u=ua(u)}h.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&fa.uniquesort(i)}return k&&(w=y,j=v),t};return c?ha(f):f}return h=fa.compile=function(a,b){var c,d=[],e=[],f=a[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wa(b[c]),f[u]?d.push(f):e.push(f);f=a(a,xa(e,d)),f.selector=a}return f},i=fa.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"id"===(k=j[0]).type&&c.getbyid&&9===b.nodetype&&p&&d.relative[j[1].type]){if(b=(d.find.id(k.matches[0].replace(ba,ca),b)||[])[0],!b)return e;n&&(b=b.parentnode),a=a.slice(j.shift().value.length)}i=w.needscontext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ba,ca),_.test(j[0].type)&&oa(b.parentnode)||b))){if(j.splice(i,1),a=f.length&&qa(j),!a)return h.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,!b||_.test(a)&&oa(b.parentnode)||b),e},c.sortstable=u.split("").sort(b).join("")===u,c.detectduplicates=!!l,m(),c.sortdetached=ia(function(a){return 1&a.comparedocumentposition(n.createelement("div"))}),ia(function(a){return a.innerhtml="","#"===a.firstchild.getattribute("href")})||ja("type|href|height|width",function(a,b,c){return c?void 0:a.getattribute(b,"type"===b.tolowercase()?1:2)}),c.attributes&&ia(function(a){return a.innerhtml="",a.firstchild.setattribute("value",""),""===a.firstchild.getattribute("value")})||ja("value",function(a,b,c){return c||"input"!==a.nodename.tolowercase()?void 0:a.defaultvalue}),ia(function(a){return null==a.getattribute("disabled")})||ja(k,function(a,b,c){var d;return c?void 0:a[b]===!0?b.tolowercase():(d=a.getattributenode(b))&&d.specified?d.value:null}),fa}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.uniquesort=n.unique=t.uniquesort,n.text=t.gettext,n.isxmldoc=t.isxml,n.contains=t.contains;var u=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodetype)if(1===a.nodetype){if(e&&n(a).is(c))break;d.push(a)}return d},v=function(a,b){for(var c=[];a;a=a.nextsibling)1===a.nodetype&&a!==b&&c.push(a);return c},w=n.expr.match.needscontext,x=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,y=/^.[^:#\[\.,]*$/;function z(a,b,c){if(n.isfunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodetype)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(y.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return h.call(b,a)>-1!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodetype?n.find.matchesselector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodetype}))},n.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushstack(n(a).filter(function(){for(b=0;c>b;b++)if(n.contains(e[b],this))return!0}));for(b=0;c>b;b++)n.find(a,e[b],d);return d=this.pushstack(c>1?n.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushstack(z(this,a||[],!1))},not:function(a){return this.pushstack(z(this,a||[],!0))},is:function(a){return!!z(this,"string"==typeof a&&w.test(a)?n(a):a||[],!1).length}});var a,b=/^(?:\s*(<[\w\w]+>)[^>]*|#([\w-]*))$/,c=n.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||a,"string"==typeof a){if(e="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:b.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parsehtml(e[1],b&&b.nodetype?b.ownerdocument||b:d,!0)),x.test(e[1])&&n.isplainobject(b))for(e in b)n.isfunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}return f=d.getelementbyid(e[2]),f&&f.parentnode&&(this.length=1,this[0]=f),this.context=d,this.selector=a,this}return a.nodetype?(this.context=this[0]=a,this.length=1,this):n.isfunction(a)?void 0!==c.ready?c.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makearray(a,this))};c.prototype=n.fn,a=n(d);var d=/^(?:parents|prev(?:until|all))/,e={children:!0,contents:!0,next:!0,prev:!0};n.fn.extend({has:function(a){var b=n(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(n.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=w.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentnode)if(c.nodetype<11&&(g?g.index(c)>-1:1===c.nodetype&&n.find.matchesselector(c,a))){f.push(c);break}return this.pushstack(f.length>1?n.uniquesort(f):f)},index:function(a){return a?"string"==typeof a?h.call(n(a),this[0]):h.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentnode?this.first().prevall().length:-1},add:function(a,b){return this.pushstack(n.uniquesort(n.merge(this.get(),n(a,b))))},addback:function(a){return this.add(null==a?this.prevobject:this.prevobject.filter(a))}});function f(a,b){while((a=a[b])&&1!==a.nodetype);return a}n.each({parent:function(a){var b=a.parentnode;return b&&11!==b.nodetype?b:null},parents:function(a){return u(a,"parentnode")},parentsuntil:function(a,b,c){return u(a,"parentnode",c)},next:function(a){return f(a,"nextsibling")},prev:function(a){return f(a,"previoussibling")},nextall:function(a){return u(a,"nextsibling")},prevall:function(a){return u(a,"previoussibling")},nextuntil:function(a,b,c){return u(a,"nextsibling",c)},prevuntil:function(a,b,c){return u(a,"previoussibling",c)},siblings:function(a){return v((a.parentnode||{}).firstchild,a)},children:function(a){return v(a.firstchild)},contents:function(a){return a.contentdocument||n.merge([],a.childnodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(e[a]||n.uniquesort(e),d.test(a)&&e.reverse()),this.pushstack(e)}});var g=/\s+/g;function h(a){var b={};return n.each(a.match(g)||[],function(a,c){b[c]=!0}),b}n.callbacks=function(a){a="string"==typeof a?h(a):n.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h-1)f.splice(c,1),h>=c&&h--}),this},has:function(a){return a?n.inarray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=g=[],c||(f=c=""),this},locked:function(){return!!e},firewith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.firewith(this,arguments),this},fired:function(){return!!d}};return j},n.extend({deferred:function(a){var b=[["resolve","done",n.callbacks("once memory"),"resolved"],["reject","fail",n.callbacks("once memory"),"rejected"],["notify","progress",n.callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.deferred(function(c){n.each(b,function(b,f){var g=n.isfunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isfunction(a.promise)?a.promise().progress(c.notify).done(c.resolve).fail(c.reject):c[f[0]+"with"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"with"](this===e?d:this,arguments),this},e[f[0]+"with"]=g.firewith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=e.call(arguments),d=c.length,f=1!==d||a&&n.isfunction(a.promise)?d:0,g=1===f?a:n.deferred(),h=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?e.call(arguments):d,c===i?g.notifywith(b,c):--f||g.resolvewith(b,c)}},i,j,k;if(d>1)for(i=new array(d),j=new array(d),k=new array(d);d>b;b++)c[b]&&n.isfunction(c[b].promise)?c[b].promise().progress(h(b,j,i)).done(h(b,k,c)).fail(g.reject):--f;return f||g.resolvewith(k,c),g.promise()}});var i;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isready:!1,readywait:1,holdready:function(a){a?n.readywait++:n.ready(!0)},ready:function(a){(a===!0?--n.readywait:n.isready)||(n.isready=!0,a!==!0&&--n.readywait>0||(i.resolvewith(d,[n]),n.fn.triggerhandler&&(n(d).triggerhandler("ready"),n(d).off("ready"))))}});function j(){d.removeeventlistener("domcontentloaded",j),a.removeeventlistener("load",j),n.ready()}n.ready.promise=function(b){return i||(i=n.deferred(),"complete"===d.readystate||"loading"!==d.readystate&&!d.documentelement.doscroll?a.settimeout(n.ready):(d.addeventlistener("domcontentloaded",j),a.addeventlistener("load",j))),i.promise(b)},n.ready.promise();var k=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)k(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isfunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},l=function(a){return 1===a.nodetype||9===a.nodetype||!+a.nodetype};function m(){this.expando=n.expando+m.uid++}m.uid=1,m.prototype={register:function(a,b){var c=b||{};return a.nodetype?a[this.expando]=c:object.defineproperty(a,this.expando,{value:c,writable:!0,configurable:!0}),a[this.expando]},cache:function(a){if(!l(a))return{};var b=a[this.expando];return b||(b={},l(a)&&(a.nodetype?a[this.expando]=b:object.defineproperty(a,this.expando,{value:b,configurable:!0}))),b},set:function(a,b,c){var d,e=this.cache(a);if("string"==typeof b)e[b]=c;else for(d in b)e[d]=b[d];return e},get:function(a,b){return void 0===b?this.cache(a):a[this.expando]&&a[this.expando][b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,n.camelcase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=a[this.expando];if(void 0!==f){if(void 0===b)this.register(a);else{n.isarray(b)?d=b.concat(b.map(n.camelcase)):(e=n.camelcase(b),b in f?d=[b,e]:(d=e,d=d in f?[d]:d.match(g)||[])),c=d.length;while(c--)delete f[d[c]]}(void 0===b||n.isemptyobject(f))&&(a.nodetype?a[this.expando]=void 0:delete a[this.expando])}},hasdata:function(a){var b=a[this.expando];return void 0!==b&&!n.isemptyobject(b)}};var n=new m,o=new m,p=/^(?:\{[\w\w]*\}|\[[\w\w]*\])$/,q=/[a-z]/g;function r(a,b,c){var d;if(void 0===c&&1===a.nodetype)if(d="data-"+b.replace(q,"-$&").tolowercase(),c=a.getattribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:p.test(c)?n.parsejson(c):c; }catch(e){}o.set(a,b,c)}else c=void 0;return c}n.extend({hasdata:function(a){return o.hasdata(a)||n.hasdata(a)},data:function(a,b,c){return o.access(a,b,c)},removedata:function(a,b){o.remove(a,b)},_data:function(a,b,c){return n.access(a,b,c)},_removedata:function(a,b){n.remove(a,b)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=o.get(f),1===f.nodetype&&!n.get(f,"hasdataattrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexof("data-")&&(d=n.camelcase(d.slice(5)),r(f,d,e[d])));n.set(f,"hasdataattrs",!0)}return e}return"object"==typeof a?this.each(function(){o.set(this,a)}):k(this,function(b){var c,d;if(f&&void 0===b){if(c=o.get(f,a)||o.get(f,a.replace(q,"-$&").tolowercase()),void 0!==c)return c;if(d=n.camelcase(a),c=o.get(f,d),void 0!==c)return c;if(c=r(f,d,void 0),void 0!==c)return c}else d=n.camelcase(a),this.each(function(){var c=o.get(this,d);o.set(this,d,b),a.indexof("-")>-1&&void 0!==c&&o.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removedata:function(a){return this.each(function(){o.remove(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=n.get(a,b),c&&(!d||n.isarray(c)?d=n.access(a,b,n.makearray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queuehooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queuehooks:function(a,b){var c=b+"queuehooks";return n.get(a,c)||n.access(a,c,{empty:n.callbacks("once memory").add(function(){n.remove(a,[b+"queue",c])})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length",""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};$.optgroup=$.option,$.tbody=$.tfoot=$.colgroup=$.caption=$.thead,$.th=$.td;function _(a,b){var c="undefined"!=typeof a.getelementsbytagname?a.getelementsbytagname(b||"*"):"undefined"!=typeof a.queryselectorall?a.queryselectorall(b||"*"):[];return void 0===b||b&&n.nodename(a,b)?n.merge([a],c):c}function aa(a,b){for(var c=0,d=a.length;d>c;c++)n.set(a[c],"globaleval",!b||n.get(b[c],"globaleval"))}var ba=/<|&#?\w+;/;function ca(a,b,c,d,e){for(var f,g,h,i,j,k,l=b.createdocumentfragment(),m=[],o=0,p=a.length;p>o;o++)if(f=a[o],f||0===f)if("object"===n.type(f))n.merge(m,f.nodetype?[f]:f);else if(ba.test(f)){g=g||l.appendchild(b.createelement("div")),h=(y.exec(f)||["",""])[1].tolowercase(),i=$[h]||$._default,g.innerhtml=i[1]+n.htmlprefilter(f)+i[2],k=i[0];while(k--)g=g.lastchild;n.merge(m,g.childnodes),g=l.firstchild,g.textcontent=""}else m.push(b.createtextnode(f));l.textcontent="",o=0;while(f=m[o++])if(d&&n.inarray(f,d)>-1)e&&e.push(f);else if(j=n.contains(f.ownerdocument,f),g=_(l.appendchild(f),"script"),j&&aa(g),c){k=0;while(f=g[k++])z.test(f.type||"")&&c.push(f)}return l}!function(){var a=d.createdocumentfragment(),b=a.appendchild(d.createelement("div")),c=d.createelement("input");c.setattribute("type","radio"),c.setattribute("checked","checked"),c.setattribute("name","t"),b.appendchild(c),l.checkclone=b.clonenode(!0).clonenode(!0).lastchild.checked,b.innerhtml="",l.noclonechecked=!!b.clonenode(!0).lastchild.defaultvalue}();var da=/^key/,ea=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,fa=/^([^.]*)(?:\.(.+)|)/;function ga(){return!0}function ha(){return!1}function ia(){try{return d.activeelement}catch(a){}}function ja(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)ja(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=ha;else if(!e)return a;return 1===f&&(g=e,e=function(a){return n().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=n.guid++)),a.each(function(){n.event.add(this,b,e,d,c)})}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n.get(a);if(r){c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=n.guid++),(i=r.events)||(i=r.events={}),(g=r.handle)||(g=r.handle=function(b){return"undefined"!=typeof n&&n.event.triggered!==b.type?n.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(g)||[""],j=b.length;while(j--)h=fa.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o&&(l=n.event.special[o]||{},o=(e?l.delegatetype:l.bindtype)||o,l=n.event.special[o]||{},k=n.extend({type:o,origtype:q,data:d,handler:c,guid:c.guid,selector:e,needscontext:e&&n.expr.match.needscontext.test(e),namespace:p.join(".")},f),(m=i[o])||(m=i[o]=[],m.delegatecount=0,l.setup&&l.setup.call(a,d,p,g)!==!1||a.addeventlistener&&a.addeventlistener(o,g)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegatecount++,0,k):m.push(k),n.event.global[o]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n.hasdata(a)&&n.get(a);if(r&&(i=r.events)){b=(b||"").match(g)||[""],j=b.length;while(j--)if(h=fa.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegatetype:l.bindtype)||o,m=i[o]||[],h=h[2]&&new regexp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&q!==k.origtype||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegatecount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeevent(a,o,r.handle),delete i[o])}else for(o in i)n.event.remove(a,o+b[j],c,d,!0);n.isemptyobject(i)&&n.remove(a,"handle events")}},dispatch:function(a){a=n.event.fix(a);var b,c,d,f,g,h=[],i=e.call(arguments),j=(n.get(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegatetarget=this,!k.predispatch||k.predispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.ispropagationstopped()){a.currenttarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isimmediatepropagationstopped())a.rnamespace&&!a.rnamespace.test(g.namespace)||(a.handleobj=g,a.data=g.data,d=((n.event.special[g.origtype]||{}).handle||g.handler).apply(f.elem,i),void 0!==d&&(a.result=d)===!1&&(a.preventdefault(),a.stoppropagation()))}return k.postdispatch&&k.postdispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegatecount,i=a.target;if(h&&i.nodetype&&("click"!==a.type||isnan(a.button)||a.button<1))for(;i!==this;i=i.parentnode||this)if(1===i.nodetype&&(i.disabled!==!0||"click"!==a.type)){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needscontext?n(e,this).index(i)>-1:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h]*)\/>/gi,la=/\s*$/g;function pa(a,b){return n.nodename(a,"table")&&n.nodename(11!==b.nodetype?b:b.firstchild,"tr")?a.getelementsbytagname("tbody")[0]||a.appendchild(a.ownerdocument.createelement("tbody")):a}function qa(a){return a.type=(null!==a.getattribute("type"))+"/"+a.type,a}function ra(a){var b=na.exec(a.type);return b?a.type=b[1]:a.removeattribute("type"),a}function sa(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodetype){if(n.hasdata(a)&&(f=n.access(a),g=n.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)n.event.add(b,e,j[e][c])}o.hasdata(a)&&(h=o.access(a),i=n.extend({},h),o.set(b,i))}}function ta(a,b){var c=b.nodename.tolowercase();"input"===c&&x.test(a.type)?b.checked=a.checked:"input"!==c&&"textarea"!==c||(b.defaultvalue=a.defaultvalue)}function ua(a,b,c,d){b=f.apply([],b);var e,g,h,i,j,k,m=0,o=a.length,p=o-1,q=b[0],r=n.isfunction(q);if(r||o>1&&"string"==typeof q&&!l.checkclone&&ma.test(q))return a.each(function(e){var f=a.eq(e);r&&(b[0]=q.call(this,e,f.html())),ua(f,b,c,d)});if(o&&(e=ca(b,a[0].ownerdocument,!1,a,d),g=e.firstchild,1===e.childnodes.length&&(e=g),g||d)){for(h=n.map(_(e,"script"),qa),i=h.length;o>m;m++)j=e,m!==p&&(j=n.clone(j,!0,!0),i&&n.merge(h,_(j,"script"))),c.call(a[m],j,m);if(i)for(k=h[h.length-1].ownerdocument,n.map(h,ra),m=0;i>m;m++)j=h[m],z.test(j.type||"")&&!n.access(j,"globaleval")&&n.contains(k,j)&&(j.src?n._evalurl&&n._evalurl(j.src):n.globaleval(j.textcontent.replace(oa,"")))}return a}function va(a,b,c){for(var d,e=b?n.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodetype||n.cleandata(_(d)),d.parentnode&&(c&&n.contains(d.ownerdocument,d)&&aa(_(d,"script")),d.parentnode.removechild(d));return a}n.extend({htmlprefilter:function(a){return a.replace(ka,"<$1>")},clone:function(a,b,c){var d,e,f,g,h=a.clonenode(!0),i=n.contains(a.ownerdocument,a);if(!(l.noclonechecked||1!==a.nodetype&&11!==a.nodetype||n.isxmldoc(a)))for(g=_(h),f=_(a),d=0,e=f.length;e>d;d++)ta(f[d],g[d]);if(b)if(c)for(f=f||_(a),g=g||_(h),d=0,e=f.length;e>d;d++)sa(f[d],g[d]);else sa(a,h);return g=_(h,"script"),g.length>0&&aa(g,!i&&_(a,"script")),h},cleandata:function(a){for(var b,c,d,e=n.event.special,f=0;void 0!==(c=a[f]);f++)if(l(c)){if(b=c[n.expando]){if(b.events)for(d in b.events)e[d]?n.event.remove(c,d):n.removeevent(c,d,b.handle);c[n.expando]=void 0}c[o.expando]&&(c[o.expando]=void 0)}}}),n.fn.extend({dommanip:ua,detach:function(a){return va(this,a,!0)},remove:function(a){return va(this,a)},text:function(a){return k(this,function(a){return void 0===a?n.text(this):this.empty().each(function(){1!==this.nodetype&&11!==this.nodetype&&9!==this.nodetype||(this.textcontent=a)})},null,a,arguments.length)},append:function(){return ua(this,arguments,function(a){if(1===this.nodetype||11===this.nodetype||9===this.nodetype){var b=pa(this,a);b.appendchild(a)}})},prepend:function(){return ua(this,arguments,function(a){if(1===this.nodetype||11===this.nodetype||9===this.nodetype){var b=pa(this,a);b.insertbefore(a,b.firstchild)}})},before:function(){return ua(this,arguments,function(a){this.parentnode&&this.parentnode.insertbefore(a,this)})},after:function(){return ua(this,arguments,function(a){this.parentnode&&this.parentnode.insertbefore(a,this.nextsibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodetype&&(n.cleandata(_(a,!1)),a.textcontent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return k(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodetype)return b.innerhtml;if("string"==typeof a&&!la.test(a)&&!$[(y.exec(a)||["",""])[1].tolowercase()]){a=n.htmlprefilter(a);try{for(;d>c;c++)b=this[c]||{},1===b.nodetype&&(n.cleandata(_(b,!1)),b.innerhtml=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replacewith:function(){var a=[];return ua(this,arguments,function(b){var c=this.parentnode;n.inarray(this,a)<0&&(n.cleandata(_(this)),c&&c.replacechild(b,this))},a)}}),n.each({appendto:"append",prependto:"prepend",insertbefore:"before",insertafter:"after",replaceall:"replacewith"},function(a,b){n.fn[a]=function(a){for(var c,d=[],e=n(a),f=e.length-1,h=0;f>=h;h++)c=h===f?this:this.clone(!0),n(e[h])[b](c),g.apply(d,c.get());return this.pushstack(d)}});var wa,xa={html:"block",body:"block"};function ya(a,b){var c=n(b.createelement(a)).appendto(b.body),d=n.css(c[0],"display");return c.detach(),d}function za(a){var b=d,c=xa[a];return c||(c=ya(a,b),"none"!==c&&c||(wa=(wa||n("',srcaction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initiframe:function(){b.types.push(p),w("beforechange",function(a,b,c){b!==c&&(b===p?r():c===p&&r(!0))}),w(h+"."+p,function(){r()})},getiframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexof(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastindexof(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcaction&&(g[f.srcaction]=e),b._parsemarkup(d,g,c),b.updatestatus("ready"),d}}});var s=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},t=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificpopup.registermodule("gallery",{options:{enabled:!1,arrowmarkup:'',preload:[0,2],navigatebyimgclick:!0,arrows:!0,tprev:"previous (left arrow key)",tnext:"next (right arrow key)",tcounter:"%curr% of %total%"},proto:{initgallery:function(){var c=b.st.gallery,e=".mfp-gallery";return b.direction=!0,c&&c.enabled?(f+=" mfp-gallery",w(m+e,function(){c.navigatebyimgclick&&b.wrap.on("click"+e,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on("keydown"+e,function(a){37===a.keycode?b.prev():39===a.keycode&&b.next()})}),w("updatestatus"+e,function(a,c){c.text&&(c.text=t(c.text,b.curritem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?t(c.tcounter,f.index,g):""}),w("buildcontrols"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowleft){var d=c.arrowmarkup,e=b.arrowleft=a(d.replace(/%title%/gi,c.tprev).replace(/%dir%/gi,"left")).addclass(s),f=b.arrowright=a(d.replace(/%title%/gi,c.tnext).replace(/%dir%/gi,"right")).addclass(s);e.click(function(){b.prev()}),f.click(function(){b.next()}),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadtimeout&&cleartimeout(b._preloadtimeout),b._preloadtimeout=settimeout(function(){b.preloadnearbyimages(),b._preloadtimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowright=b.arrowleft=null})):!1},next:function(){b.direction=!0,b.index=s(b.index+1),b.updateitemhtml()},prev:function(){b.direction=!1,b.index=s(b.index-1),b.updateitemhtml()},goto:function(a){b.direction=a>=b.index,b.index=a,b.updateitemhtml()},preloadnearbyimages:function(){var a,c=b.st.gallery.preload,d=math.min(c[0],b.items.length),e=math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloaditem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloaditem(b.index-a)},_preloaditem:function(c){if(c=s(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseel(c)),y("lazyload",d),"image"===d.type&&(d.img=a('').on("load.mfploader",function(){d.hassize=!0}).on("error.mfploader",function(){d.hassize=!0,d.loaderror=!0,y("lazyloaderror",d)}).attr("src",d.src)),d.preloaded=!0}}}});var u="retina";a.magnificpopup.registermodule(u,{options:{replacesrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initretina:function(){if(window.devicepixelratio>1){var a=b.st.retina,c=a.ratio;c=isnan(c)?c():c,c>1&&(w("imagehassize."+u,function(a,b){b.img.css({"max-width":b.img[0].naturalwidth/c,width:"100%"})}),w("elementparse."+u,function(b,d){d.src=a.replacesrc(d,c)}))}}}}),a()}); /** * owl carousel v2.3.4 * copyright 2013-2018 david deutsch * licensed under: see license in https://github.com/owlcarousel2/owlcarousel2/blob/master/license */ !function(a,b,c,d){function e(b,c){this.settings=null,this.options=a.extend({},e.defaults,c),this.$element=a(b),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},a.each(["onresize","onthrottledresize"],a.proxy(function(b,c){this._handlers[c]=a.proxy(this[c],this)},this)),a.each(e.plugins,a.proxy(function(a,b){this._plugins[a.charat(0).tolowercase()+a.slice(1)]=new b(this)},this)),a.each(e.workers,a.proxy(function(b,c){this._pipe.push({filter:c.filter,run:a.proxy(c.run,this)})},this)),this.setup(),this.initialize()}e.defaults={items:3,loop:!1,center:!1,rewind:!1,checkvisibility:!0,mousedrag:!0,touchdrag:!0,pulldrag:!0,freedrag:!1,margin:0,stagepadding:0,merge:!1,mergefit:!0,autowidth:!1,startposition:0,rtl:!1,smartspeed:250,fluidspeed:!1,dragendspeed:!1,responsive:{},responsiverefreshrate:200,responsivebaseelement:b,fallbackeasing:"swing",slidetransition:"",info:!1,nesteditemselector:!1,itemelement:"div",stageelement:"div",refreshclass:"owl-refresh",loadedclass:"owl-loaded",loadingclass:"owl-loading",rtlclass:"owl-rtl",responsiveclass:"owl-responsive",dragclass:"owl-drag",itemclass:"owl-item",stageclass:"owl-stage",stageouterclass:"owl-stage-outer",grabclass:"owl-grab"},e.width={default:"default",inner:"inner",outer:"outer"},e.type={event:"event",state:"state"},e.plugins={},e.workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(a){a.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(a){var b=this.settings.margin||"",c=!this.settings.autowidth,d=this.settings.rtl,e={width:"auto","margin-left":d?b:"","margin-right":d?"":b};!c&&this.$stage.children().css(e),a.css=e}},{filter:["width","items","settings"],run:function(a){var b=(this.width()/this.settings.items).tofixed(3)-this.settings.margin,c=null,d=this._items.length,e=!this.settings.autowidth,f=[];for(a.items={merge:!1,width:b};d--;)c=this._mergers[d],c=this.settings.mergefit&&math.min(c,this.settings.items)||c,a.items.merge=c>1||a.items.merge,f[d]=e?b*c:this._items[d].width();this._widths=f}},{filter:["items","settings"],run:function(){var b=[],c=this._items,d=this.settings,e=math.max(2*d.items,4),f=2*math.ceil(c.length/2),g=d.loop&&c.length?d.rewind?e:math.max(e,f):0,h="",i="";for(g/=2;g>0;)b.push(this.normalize(b.length/2,!0)),h+=c[b[b.length-1]][0].outerhtml,b.push(this.normalize(c.length-1-(b.length-1)/2,!0)),i=c[b[b.length-1]][0].outerhtml+i,g-=1;this._clones=b,a(h).addclass("cloned").appendto(this.$stage),a(i).addclass("cloned").prependto(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var a=this.settings.rtl?1:-1,b=this._clones.length+this._items.length,c=-1,d=0,e=0,f=[];++c",h)||this.op(b,"<",g)&&this.op(b,">",h))&&i.push(c);this.$stage.children(".active").removeclass("active"),this.$stage.children(":eq("+i.join("), :eq(")+")").addclass("active"),this.$stage.children(".center").removeclass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addclass("center")}}],e.prototype.initializestage=function(){this.$stage=this.$element.find("."+this.settings.stageclass),this.$stage.length||(this.$element.addclass(this.options.loadingclass),this.$stage=a("<"+this.settings.stageelement+">",{class:this.settings.stageclass}).wrap(a("
",{class:this.settings.stageouterclass})),this.$element.append(this.$stage.parent()))},e.prototype.initializeitems=function(){var b=this.$element.find(".owl-item");if(b.length)return this._items=b.get().map(function(b){return a(b)}),this._mergers=this._items.map(function(){return 1}),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isvisible()?this.refresh():this.invalidate("width"),this.$element.removeclass(this.options.loadingclass).addclass(this.options.loadedclass)},e.prototype.initialize=function(){if(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleclass(this.settings.rtlclass,this.settings.rtl),this.settings.autowidth&&!this.is("pre-loading")){var a,b,c;a=this.$element.find("img"),b=this.settings.nesteditemselector?"."+this.settings.nesteditemselector:d,c=this.$element.children(b).width(),a.length&&c<=0&&this.preloadautowidthimages(a)}this.initializestage(),this.initializeitems(),this.registereventhandlers(),this.leave("initializing"),this.trigger("initialized")},e.prototype.isvisible=function(){return!this.settings.checkvisibility||this.$element.is(":visible")},e.prototype.setup=function(){var b=this.viewport(),c=this.options.responsive,d=-1,e=null;c?(a.each(c,function(a){a<=b&&a>d&&(d=number(a))}),e=a.extend({},this.options,c[d]),"function"==typeof e.stagepadding&&(e.stagepadding=e.stagepadding()),delete e.responsive,e.responsiveclass&&this.$element.attr("class",this.$element.attr("class").replace(new regexp("("+this.options.responsiveclass+"-)\\s+\\s","g"),"$1"+d))):e=a.extend({},this.options),this.trigger("change",{property:{name:"settings",value:e}}),this._breakpoint=d,this.settings=e,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},e.prototype.optionslogic=function(){this.settings.autowidth&&(this.settings.stagepadding=!1,this.settings.merge=!1)},e.prototype.prepare=function(b){var c=this.trigger("prepare",{content:b});return c.data||(c.data=a("<"+this.settings.itemelement+"/>").addclass(this.options.itemclass).append(b)),this.trigger("prepared",{content:c.data}),c.data},e.prototype.update=function(){for(var b=0,c=this._pipe.length,d=a.proxy(function(a){return this[a]},this._invalidated),e={};b0)&&this._pipe[b].run(e),b++;this._invalidated={},!this.is("valid")&&this.enter("valid")},e.prototype.width=function(a){switch(a=a||e.width.default){case e.width.inner:case e.width.outer:return this._width;default:return this._width-2*this.settings.stagepadding+this.settings.margin}},e.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionslogic(),this.$element.addclass(this.options.refreshclass),this.update(),this.$element.removeclass(this.options.refreshclass),this.leave("refreshing"),this.trigger("refreshed")},e.prototype.onthrottledresize=function(){b.cleartimeout(this.resizetimer),this.resizetimer=b.settimeout(this._handlers.onresize,this.settings.responsiverefreshrate)},e.prototype.onresize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.isvisible()&&(this.enter("resizing"),this.trigger("resize").isdefaultprevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},e.prototype.registereventhandlers=function(){a.support.transition&&this.$stage.on(a.support.transition.end+".owl.core",a.proxy(this.ontransitionend,this)),!1!==this.settings.responsive&&this.on(b,"resize",this._handlers.onthrottledresize),this.settings.mousedrag&&(this.$element.addclass(this.options.dragclass),this.$stage.on("mousedown.owl.core",a.proxy(this.ondragstart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchdrag&&(this.$stage.on("touchstart.owl.core",a.proxy(this.ondragstart,this)),this.$stage.on("touchcancel.owl.core",a.proxy(this.ondragend,this)))},e.prototype.ondragstart=function(b){var d=null;3!==b.which&&(a.support.transform?(d=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","),d={x:d[16===d.length?12:4],y:d[16===d.length?13:5]}):(d=this.$stage.position(),d={x:this.settings.rtl?d.left+this.$stage.width()-this.width()+this.settings.margin:d.left,y:d.top}),this.is("animating")&&(a.support.transform?this.animate(d.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleclass(this.options.grabclass,"mousedown"===b.type),this.speed(0),this._drag.time=(new date).gettime(),this._drag.target=a(b.target),this._drag.stage.start=d,this._drag.stage.current=d,this._drag.pointer=this.pointer(b),a(c).on("mouseup.owl.core touchend.owl.core",a.proxy(this.ondragend,this)),a(c).one("mousemove.owl.core touchmove.owl.core",a.proxy(function(b){var d=this.difference(this._drag.pointer,this.pointer(b));a(c).on("mousemove.owl.core touchmove.owl.core",a.proxy(this.ondragmove,this)),math.abs(d.x)0^this.settings.rtl?"left":"right";a(c).off(".owl.core"),this.$element.removeclass(this.options.grabclass),(0!==d.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragendspeed||this.settings.smartspeed),this.current(this.closest(e.x,0!==d.x?f:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=f,(math.abs(d.x)>3||(new date).gettime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},e.prototype.closest=function(b,c){var e=-1,f=30,g=this.width(),h=this.coordinates();return this.settings.freedrag||a.each(h,a.proxy(function(a,i){return"left"===c&&b>i-f&&bi-g-f&&b",h[a+1]!==d?h[a+1]:i-g)&&(e="left"===c?a+1:a),-1===e},this)),this.settings.loop||(this.op(b,">",h[this.minimum()])?e=b=this.minimum():this.op(b,"<",h[this.maximum()])&&(e=b=this.maximum())),e},e.prototype.animate=function(b){var c=this.speed()>0;this.is("animating")&&this.ontransitionend(),c&&(this.enter("animating"),this.trigger("translate")),a.support.transform3d&&a.support.transition?this.$stage.css({transform:"translate3d("+b+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slidetransition?" "+this.settings.slidetransition:"")}):c?this.$stage.animate({left:b+"px"},this.speed(),this.settings.fallbackeasing,a.proxy(this.ontransitionend,this)):this.$stage.css({left:b+"px"})},e.prototype.is=function(a){return this._states.current[a]&&this._states.current[a]>0},e.prototype.current=function(a){if(a===d)return this._current;if(0===this._items.length)return d;if(a=this.normalize(a),this._current!==a){var b=this.trigger("change",{property:{name:"position",value:a}});b.data!==d&&(a=this.normalize(b.data)),this._current=a,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},e.prototype.invalidate=function(b){return"string"===a.type(b)&&(this._invalidated[b]=!0,this.is("valid")&&this.leave("valid")),a.map(this._invalidated,function(a,b){return b})},e.prototype.reset=function(a){(a=this.normalize(a))!==d&&(this._speed=0,this._current=a,this.suppress(["translate","translated"]),this.animate(this.coordinates(a)),this.release(["translate","translated"]))},e.prototype.normalize=function(a,b){var c=this._items.length,e=b?0:this._clones.length;return!this.isnumeric(a)||c<1?a=d:(a<0||a>=c+e)&&(a=((a-e/2)%c+c)%c+e/2),a},e.prototype.relative=function(a){return a-=this._clones.length/2,this.normalize(a,!0)},e.prototype.maximum=function(a){var b,c,d,e=this.settings,f=this._coordinates.length;if(e.loop)f=this._clones.length/2+this._items.length-1;else if(e.autowidth||e.merge){if(b=this._items.length)for(c=this._items[--b].width(),d=this.$element.width();b--&&!((c+=this._items[b].width()+this.settings.margin)>d););f=b+1}else f=e.center?this._items.length-1:this._items.length-e.items;return a&&(f-=this._clones.length/2),math.max(f,0)},e.prototype.minimum=function(a){return a?0:this._clones.length/2},e.prototype.items=function(a){return a===d?this._items.slice():(a=this.normalize(a,!0),this._items[a])},e.prototype.mergers=function(a){return a===d?this._mergers.slice():(a=this.normalize(a,!0),this._mergers[a])},e.prototype.clones=function(b){var c=this._clones.length/2,e=c+this._items.length,f=function(a){return a%2==0?e+a/2:c-(a+1)/2};return b===d?a.map(this._clones,function(a,b){return f(b)}):a.map(this._clones,function(a,c){return a===b?f(c):null})},e.prototype.speed=function(a){return a!==d&&(this._speed=a),this._speed},e.prototype.coordinates=function(b){var c,e=1,f=b-1;return b===d?a.map(this._coordinates,a.proxy(function(a,b){return this.coordinates(b)},this)):(this.settings.center?(this.settings.rtl&&(e=-1,f=b+1),c=this._coordinates[b],c+=(this.width()-c+(this._coordinates[f]||0))/2*e):c=this._coordinates[f]||0,c=math.ceil(c))},e.prototype.duration=function(a,b,c){return 0===c?0:math.min(math.max(math.abs(b-a),1),6)*math.abs(c||this.settings.smartspeed)},e.prototype.to=function(a,b){var c=this.current(),d=null,e=a-this.relative(c),f=(e>0)-(e<0),g=this._items.length,h=this.minimum(),i=this.maximum();this.settings.loop?(!this.settings.rewind&&math.abs(e)>g/2&&(e+=-1*f*g),a=c+e,(d=((a-h)%g+g)%g+h)!==a&&d-e<=i&&d-e>0&&(c=d-e,a=d,this.reset(c))):this.settings.rewind?(i+=1,a=(a%i+i)%i):a=math.max(h,math.min(i,a)),this.speed(this.duration(c,a,b)),this.current(a),this.isvisible()&&this.update()},e.prototype.next=function(a){a=a||!1,this.to(this.relative(this.current())+1,a)},e.prototype.prev=function(a){a=a||!1,this.to(this.relative(this.current())-1,a)},e.prototype.ontransitionend=function(a){if(a!==d&&(a.stoppropagation(),(a.target||a.srcelement||a.originaltarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},e.prototype.viewport=function(){var d;return this.options.responsivebaseelement!==b?d=a(this.options.responsivebaseelement).width():b.innerwidth?d=b.innerwidth:c.documentelement&&c.documentelement.clientwidth?d=c.documentelement.clientwidth:console.warn("can not detect viewport width."),d},e.prototype.replace=function(b){this.$stage.empty(),this._items=[],b&&(b=b instanceof jquery?b:a(b)),this.settings.nesteditemselector&&(b=b.find("."+this.settings.nesteditemselector)),b.filter(function(){return 1===this.nodetype}).each(a.proxy(function(a,b){b=this.prepare(b),this.$stage.append(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addback("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isnumeric(this.settings.startposition)?this.settings.startposition:0),this.invalidate("items")},e.prototype.add=function(b,c){var e=this.relative(this._current);c=c===d?this._items.length:this.normalize(c,!0),b=b instanceof jquery?b:a(b),this.trigger("add",{content:b,position:c}),b=this.prepare(b),0===this._items.length||c===this._items.length?(0===this._items.length&&this.$stage.append(b),0!==this._items.length&&this._items[c-1].after(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addback("[data-merge]").attr("data-merge")||1)):(this._items[c].before(b),this._items.splice(c,0,b),this._mergers.splice(c,0,1*b.find("[data-merge]").addback("[data-merge]").attr("data-merge")||1)),this._items[e]&&this.reset(this._items[e].index()),this.invalidate("items"),this.trigger("added",{content:b,position:c})},e.prototype.remove=function(a){(a=this.normalize(a,!0))!==d&&(this.trigger("remove",{content:this._items[a],position:a}),this._items[a].remove(),this._items.splice(a,1),this._mergers.splice(a,1),this.invalidate("items"),this.trigger("removed",{content:null,position:a}))},e.prototype.preloadautowidthimages=function(b){b.each(a.proxy(function(b,c){this.enter("pre-loading"),c=a(c),a(new image).one("load",a.proxy(function(a){c.attr("src",a.target.src),c.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",c.attr("src")||c.attr("data-src")||c.attr("data-src-retina"))},this))},e.prototype.destroy=function(){this.$element.off(".owl.core"),this.$stage.off(".owl.core"),a(c).off(".owl.core"),!1!==this.settings.responsive&&(b.cleartimeout(this.resizetimer),this.off(b,"resize",this._handlers.onthrottledresize));for(var d in this._plugins)this._plugins[d].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeclass(this.options.refreshclass).removeclass(this.options.loadingclass).removeclass(this.options.loadedclass).removeclass(this.options.rtlclass).removeclass(this.options.dragclass).removeclass(this.options.grabclass).attr("class",this.$element.attr("class").replace(new regexp(this.options.responsiveclass+"-\\s+\\s","g"),"")).removedata("owl.carousel")},e.prototype.op=function(a,b,c){var d=this.settings.rtl;switch(b){case"<":return d?a>c:a":return d?ac;case">=":return d?a<=c:a>=c;case"<=":return d?a>=c:a<=c}},e.prototype.on=function(a,b,c,d){a.addeventlistener?a.addeventlistener(b,c,d):a.attachevent&&a.attachevent("on"+b,c)},e.prototype.off=function(a,b,c,d){a.removeeventlistener?a.removeeventlistener(b,c,d):a.detachevent&&a.detachevent("on"+b,c)},e.prototype.trigger=function(b,c,d,f,g){var h={item:{count:this._items.length,index:this.current()}},i=a.camelcase(a.grep(["on",b,d],function(a){return a}).join("-").tolowercase()),j=a.event([b,"owl",d||"carousel"].join(".").tolowercase(),a.extend({relatedtarget:this},h,c));return this._supress[b]||(a.each(this._plugins,function(a,b){b.ontrigger&&b.ontrigger(j)}),this.register({type:e.type.event,name:b}),this.$element.trigger(j),this.settings&&"function"==typeof this.settings[i]&&this.settings[i].call(this,j)),j},e.prototype.enter=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]===d&&(this._states.current[b]=0),this._states.current[b]++},this))},e.prototype.leave=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]--},this))},e.prototype.register=function(b){if(b.type===e.type.event){if(a.event.special[b.name]||(a.event.special[b.name]={}),!a.event.special[b.name].owl){var c=a.event.special[b.name]._default;a.event.special[b.name]._default=function(a){return!c||!c.apply||a.namespace&&-1!==a.namespace.indexof("owl")?a.namespace&&a.namespace.indexof("owl")>-1:c.apply(this,arguments)},a.event.special[b.name].owl=!0}}else b.type===e.type.state&&(this._states.tags[b.name]?this._states.tags[b.name]=this._states.tags[b.name].concat(b.tags):this._states.tags[b.name]=b.tags,this._states.tags[b.name]=a.grep(this._states.tags[b.name],a.proxy(function(c,d){return a.inarray(c,this._states.tags[b.name])===d},this)))},e.prototype.suppress=function(b){a.each(b,a.proxy(function(a,b){this._supress[b]=!0},this))},e.prototype.release=function(b){a.each(b,a.proxy(function(a,b){delete this._supress[b]},this))},e.prototype.pointer=function(a){var c={x:null,y:null};return a=a.originalevent||a||b.event,a=a.touches&&a.touches.length?a.touches[0]:a.changedtouches&&a.changedtouches.length?a.changedtouches[0]:a,a.pagex?(c.x=a.pagex,c.y=a.pagey):(c.x=a.clientx,c.y=a.clienty),c},e.prototype.isnumeric=function(a){return!isnan(parsefloat(a))},e.prototype.difference=function(a,b){return{x:a.x-b.x,y:a.y-b.y}},a.fn.owlcarousel=function(b){var c=array.prototype.slice.call(arguments,1);return this.each(function(){var d=a(this),f=d.data("owl.carousel");f||(f=new e(this,"object"==typeof b&&b),d.data("owl.carousel",f),a.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(b,c){f.register({type:e.type.event,name:c}),f.$element.on(c+".owl.carousel.core",a.proxy(function(a){a.namespace&&a.relatedtarget!==this&&(this.suppress([c]),f[c].apply(this,[].slice.call(arguments,1)),this.release([c]))},f))})),"string"==typeof b&&"_"!==b.charat(0)&&f[b].apply(f,c)})},a.fn.owlcarousel.constructor=e}(window.zepto||window.jquery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autorefresh&&this.watch()},this)},this._core.options=a.extend({},e.defaults,this._core.options),this._core.$element.on(this._handlers)};e.defaults={autorefresh:!0,autorefreshinterval:500},e.prototype.watch=function(){this._interval||(this._visible=this._core.isvisible(),this._interval=b.setinterval(a.proxy(this.refresh,this),this._core.settings.autorefreshinterval))},e.prototype.refresh=function(){this._core.isvisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleclass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},e.prototype.destroy=function(){var a,c;b.clearinterval(this._interval);for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(c in object.getownpropertynames(this))"function"!=typeof this[c]&&(this[c]=null)},a.fn.owlcarousel.constructor.plugins.autorefresh=e}(window.zepto||window.jquery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":a.proxy(function(b){if(b.namespace&&this._core.settings&&this._core.settings.lazyload&&(b.property&&"position"==b.property.name||"initialized"==b.type)){var c=this._core.settings,e=c.center&&math.ceil(c.items/2)||c.items,f=c.center&&-1*e||0,g=(b.property&&b.property.value!==d?b.property.value:this._core.current())+f,h=this._core.clones().length,i=a.proxy(function(a,b){this.load(b)},this);for(c.lazyloadeager>0&&(e+=c.lazyloadeager,c.loop&&(g-=c.lazyloadeager,e++));f++-1||(e.each(a.proxy(function(c,d){var e,f=a(d),g=b.devicepixelratio>1&&f.attr("data-src-retina")||f.attr("data-src")||f.attr("data-srcset");this._core.trigger("load",{element:f,url:g},"lazy"),f.is("img")?f.one("load.owl.lazy",a.proxy(function(){f.css("opacity",1),this._core.trigger("loaded",{element:f,url:g},"lazy")},this)).attr("src",g):f.is("source")?f.one("load.owl.lazy",a.proxy(function(){this._core.trigger("loaded",{element:f,url:g},"lazy")},this)).attr("srcset",g):(e=new image,e.onload=a.proxy(function(){f.css({"background-image":'url("'+g+'")',opacity:"1"}),this._core.trigger("loaded",{element:f,url:g},"lazy")},this),e.src=g)},this)),this._loaded.push(d.get(0)))},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this._core.$element.off(a,this.handlers[a]);for(b in object.getownpropertynames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlcarousel.constructor.plugins.lazy=e}(window.zepto||window.jquery,window,document),function(a,b,c,d){var e=function(c){this._core=c,this._previousheight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoheight&&this.update()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoheight&&"position"===a.property.name&&this.update()},this),"loaded.owl.lazy":a.proxy(function(a){a.namespace&&this._core.settings.autoheight&&a.element.closest("."+this._core.settings.itemclass).index()===this._core.current()&&this.update()},this)},this._core.options=a.extend({},e.defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalid=null;var d=this;a(b).on("load",function(){d._core.settings.autoheight&&d.update()}),a(b).resize(function(){d._core.settings.autoheight&&(null!=d._intervalid&&cleartimeout(d._intervalid),d._intervalid=settimeout(function(){d.update()},250))})};e.defaults={autoheight:!1,autoheightclass:"owl-height"},e.prototype.update=function(){var b=this._core._current,c=b+this._core.settings.items,d=this._core.settings.lazyload,e=this._core.$stage.children().toarray().slice(b,c),f=[],g=0;a.each(e,function(b,c){f.push(a(c).height())}),g=math.max.apply(null,f),g<=1&&d&&this._previousheight&&(g=this._previousheight),this._previousheight=g,this._core.$stage.parent().height(g).addclass(this._core.settings.autoheightclass)},e.prototype.destroy=function(){var a,b;for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in object.getownpropertynames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlcarousel.constructor.plugins.autoheight=e}(window.zepto||window.jquery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.video&&this.isinfullscreen()&&a.preventdefault()},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"===a.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":a.proxy(function(b){if(b.namespace){var c=a(b.content).find(".owl-video");c.length&&(c.css("display","none"),this.fetch(c,a(b.content)))}},this)},this._core.options=a.extend({},e.defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",a.proxy(function(a){this.play(a)},this))};e.defaults={video:!1,videoheight:!1,videowidth:!1},e.prototype.fetch=function(a,b){var c=function(){return a.attr("data-vimeo-id")?"vimeo":a.attr("data-vzaar-id")?"vzaar":"youtube"}(),d=a.attr("data-vimeo-id")||a.attr("data-youtube-id")||a.attr("data-vzaar-id"),e=a.attr("data-width")||this._core.settings.videowidth,f=a.attr("data-height")||this._core.settings.videoheight,g=a.attr("href");if(!g)throw new error("missing video url.");if(d=g.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([a-za-z0-9._%-]*)(\&\s+)?/),d[3].indexof("youtu")>-1)c="youtube";else if(d[3].indexof("vimeo")>-1)c="vimeo";else{if(!(d[3].indexof("vzaar")>-1))throw new error("video url not supported.");c="vzaar"}d=d[6],this._videos[g]={type:c,id:d,width:e,height:f},b.attr("data-video",g),this.thumbnail(a,this._videos[g])},e.prototype.thumbnail=function(b,c){var d,e,f,g=c.width&&c.height?"width:"+c.width+"px;height:"+c.height+"px;":"",h=b.find("img"),i="src",j="",k=this._core.settings,l=function(c){e='
',d=k.lazyload?a("
",{class:"owl-video-tn "+j,srctype:c}):a("
",{class:"owl-video-tn",style:"opacity:1;background-image:url("+c+")"}),b.after(d),b.after(e)};if(b.wrap(a("
",{class:"owl-video-wrapper",style:g})),this._core.settings.lazyload&&(i="data-src",j="owl-lazy"),h.length)return l(h.attr(i)),h.remove(),!1;"youtube"===c.type?(f="//img.youtube.com/vi/"+c.id+"/hqdefault.jpg",l(f)):"vimeo"===c.type?a.ajax({type:"get",url:"//vimeo.com/api/v2/video/"+c.id+".json",jsonp:"callback",datatype:"jsonp",success:function(a){f=a[0].thumbnail_large,l(f)}}):"vzaar"===c.type&&a.ajax({type:"get",url:"//vzaar.com/api/videos/"+c.id+".json",jsonp:"callback",datatype:"jsonp",success:function(a){f=a.framegrab_url,l(f)}})},e.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeclass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},e.prototype.play=function(b){var c,d=a(b.target),e=d.closest("."+this._core.settings.itemclass),f=this._videos[e.attr("data-video")],g=f.width||"100%",h=f.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),e=this._core.items(this._core.relative(e.index())),this._core.reset(e.index()),c=a(''),c.attr("height",h),c.attr("width",g),"youtube"===f.type?c.attr("src","//www.youtube.com/embed/"+f.id+"?autoplay=1&rel=0&v="+f.id):"vimeo"===f.type?c.attr("src","//player.vimeo.com/video/"+f.id+"?autoplay=1"):"vzaar"===f.type&&c.attr("src","//view.vzaar.com/"+f.id+"/player?autoplay=true"),a(c).wrap('
').insertafter(e.find(".owl-video")),this._playing=e.addclass("owl-video-playing"))},e.prototype.isinfullscreen=function(){var b=c.fullscreenelement||c.mozfullscreenelement||c.webkitfullscreenelement;return b&&a(b).parent().hasclass("owl-video-frame")},e.prototype.destroy=function(){var a,b;this._core.$element.off("click.owl.video");for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in object.getownpropertynames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlcarousel.constructor.plugins.video=e}(window.zepto||window.jquery,window,document),function(a,b,c,d){var e=function(b){this.core=b,this.core.options=a.extend({},e.defaults,this.core.options),this.swapping=!0,this.previous=d,this.next=d,this.handlers={"change.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&(this.previous=this.core.current(),this.next=a.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":a.proxy(function(a){a.namespace&&(this.swapping="translated"==a.type)},this),"translate.owl.carousel":a.proxy(function(a){a.namespace&&this.swapping&&(this.core.options.animateout||this.core.options.animatein)&&this.swap()},this)},this.core.$element.on(this.handlers)};e.defaults={animateout:!1, animatein:!1},e.prototype.swap=function(){if(1===this.core.settings.items&&a.support.animation&&a.support.transition){this.core.speed(0);var b,c=a.proxy(this.clear,this),d=this.core.$stage.children().eq(this.previous),e=this.core.$stage.children().eq(this.next),f=this.core.settings.animatein,g=this.core.settings.animateout;this.core.current()!==this.previous&&(g&&(b=this.core.coordinates(this.previous)-this.core.coordinates(this.next),d.one(a.support.animation.end,c).css({left:b+"px"}).addclass("animated owl-animated-out").addclass(g)),f&&e.one(a.support.animation.end,c).addclass("animated owl-animated-in").addclass(f))}},e.prototype.clear=function(b){a(b.target).css({left:""}).removeclass("animated owl-animated-out owl-animated-in").removeclass(this.core.settings.animatein).removeclass(this.core.settings.animateout),this.core.ontransitionend()},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this.core.$element.off(a,this.handlers[a]);for(b in object.getownpropertynames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlcarousel.constructor.plugins.animate=e}(window.zepto||window.jquery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":a.proxy(function(a){a.namespace&&"settings"===a.property.name?this._core.settings.autoplay?this.play():this.stop():a.namespace&&"position"===a.property.name&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":a.proxy(function(a,b,c){a.namespace&&this.play(b,c)},this),"stop.owl.autoplay":a.proxy(function(a){a.namespace&&this.stop()},this),"mouseover.owl.autoplay":a.proxy(function(){this._core.settings.autoplayhoverpause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":a.proxy(function(){this._core.settings.autoplayhoverpause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":a.proxy(function(){this._core.settings.autoplayhoverpause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":a.proxy(function(){this._core.settings.autoplayhoverpause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=a.extend({},e.defaults,this._core.options)};e.defaults={autoplay:!1,autoplaytimeout:5e3,autoplayhoverpause:!1,autoplayspeed:!1},e.prototype._next=function(d){this._call=b.settimeout(a.proxy(this._next,this,d),this._timeout*(math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||c.hidden||this._core.next(d||this._core.settings.autoplayspeed)},e.prototype.read=function(){return(new date).gettime()-this._time},e.prototype.play=function(c,d){var e;this._core.is("rotating")||this._core.enter("rotating"),c=c||this._core.settings.autoplaytimeout,e=math.min(this._time%(this._timeout||c),c),this._paused?(this._time=this.read(),this._paused=!1):b.cleartimeout(this._call),this._time+=this.read()%c-e,this._timeout=c,this._call=b.settimeout(a.proxy(this._next,this,d),c-e)},e.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,b.cleartimeout(this._call),this._core.leave("rotating"))},e.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,b.cleartimeout(this._call))},e.prototype.destroy=function(){var a,b;this.stop();for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in object.getownpropertynames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlcarousel.constructor.plugins.autoplay=e}(window.zepto||window.jquery,window,document),function(a,b,c,d){"use strict";var e=function(b){this._core=b,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":a.proxy(function(b){b.namespace&&this._core.settings.dotsdata&&this._templates.push('
'+a(b.content).find("[data-dot]").addback("[data-dot]").attr("data-dot")+"
")},this),"added.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsdata&&this._templates.splice(a.position,0,this._templates.pop())},this),"remove.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsdata&&this._templates.splice(a.position,1)},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&this.draw()},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=a.extend({},e.defaults,this._core.options),this.$element.on(this._handlers)};e.defaults={nav:!1,navtext:['',''],navspeed:!1,navelement:'button type="button" role="presentation"',navcontainer:!1,navcontainerclass:"owl-nav",navclass:["owl-prev","owl-next"],slideby:1,dotclass:"owl-dot",dotsclass:"owl-dots",dots:!0,dotseach:!1,dotsdata:!1,dotsspeed:!1,dotscontainer:!1},e.prototype.initialize=function(){var b,c=this._core.settings;this._controls.$relative=(c.navcontainer?a(c.navcontainer):a("
").addclass(c.navcontainerclass).appendto(this.$element)).addclass("disabled"),this._controls.$previous=a("<"+c.navelement+">").addclass(c.navclass[0]).html(c.navtext[0]).prependto(this._controls.$relative).on("click",a.proxy(function(a){this.prev(c.navspeed)},this)),this._controls.$next=a("<"+c.navelement+">").addclass(c.navclass[1]).html(c.navtext[1]).appendto(this._controls.$relative).on("click",a.proxy(function(a){this.next(c.navspeed)},this)),c.dotsdata||(this._templates=[a('',nextarrow:'',autoplay:!1,autoplayspeed:3e3,centermode:!1,centerpadding:"50px",cssease:"ease",custompaging:function(e,t){return i('").addclass(this._triggerclass).html(o?t("").attr({src:o,alt:n,title:n}):n)),e[r?"before":"after"](i.trigger),i.trigger.on("click",function(){return t.datepicker._datepickershowing&&t.datepicker._lastinput===e[0]?t.datepicker._hidedatepicker():t.datepicker._datepickershowing&&t.datepicker._lastinput!==e[0]?(t.datepicker._hidedatepicker(),t.datepicker._showdatepicker(e[0])):t.datepicker._showdatepicker(e[0]),!1}))},_autosize:function(t){if(this._get(t,"autosize")&&!t.inline){var e,i,s,n,o=new date(2009,11,20),a=this._get(t,"dateformat");a.match(/[dm]/)&&(e=function(t){for(i=0,s=0,n=0;t.length>n;n++)t[n].length>i&&(i=t[n].length,s=n);return s},o.setmonth(e(this._get(t,a.match(/mm/)?"monthnames":"monthnamesshort"))),o.setdate(e(this._get(t,a.match(/dd/)?"daynames":"daynamesshort"))+20-o.getday())),t.input.attr("size",this._formatdate(t,o).length)}},_inlinedatepicker:function(e,i){var s=t(e);s.hasclass(this.markerclassname)||(s.addclass(this.markerclassname).append(i.dpdiv),t.data(e,"datepicker",i),this._setdate(i,this._getdefaultdate(i),!0),this._updatedatepicker(i),this._updatealternate(i),i.settings.disabled&&this._disabledatepicker(e),i.dpdiv.css("display","block"))},_dialogdatepicker:function(e,i,s,n,o){var r,h,l,c,u,d=this._dialoginst;return d||(this.uuid+=1,r="dp"+this.uuid,this._dialoginput=t(""),this._dialoginput.on("keydown",this._dokeydown),t("body").append(this._dialoginput),d=this._dialoginst=this._newinst(this._dialoginput,!1),d.settings={},t.data(this._dialoginput[0],"datepicker",d)),a(d.settings,n||{}),i=i&&i.constructor===date?this._formatdate(d,i):i,this._dialoginput.val(i),this._pos=o?o.length?o:[o.pagex,o.pagey]:null,this._pos||(h=document.documentelement.clientwidth,l=document.documentelement.clientheight,c=document.documentelement.scrollleft||document.body.scrollleft,u=document.documentelement.scrolltop||document.body.scrolltop,this._pos=[h/2-100+c,l/2-150+u]),this._dialoginput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),d.settings.onselect=s,this._indialog=!0,this.dpdiv.addclass(this._dialogclass),this._showdatepicker(this._dialoginput[0]),t.blockui&&t.blockui(this.dpdiv),t.data(this._dialoginput[0],"datepicker",d),this},_destroydatepicker:function(e){var i,s=t(e),n=t.data(e,"datepicker");s.hasclass(this.markerclassname)&&(i=e.nodename.tolowercase(),t.removedata(e,"datepicker"),"input"===i?(n.append.remove(),n.trigger.remove(),s.removeclass(this.markerclassname).off("focus",this._showdatepicker).off("keydown",this._dokeydown).off("keypress",this._dokeypress).off("keyup",this._dokeyup)):("div"===i||"span"===i)&&s.removeclass(this.markerclassname).empty(),m===n&&(m=null))},_enabledatepicker:function(e){var i,s,n=t(e),o=t.data(e,"datepicker");n.hasclass(this.markerclassname)&&(i=e.nodename.tolowercase(),"input"===i?(e.disabled=!1,o.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===i||"span"===i)&&(s=n.children("."+this._inlineclass),s.children().removeclass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledinputs=t.map(this._disabledinputs,function(t){return t===e?null:t}))},_disabledatepicker:function(e){var i,s,n=t(e),o=t.data(e,"datepicker");n.hasclass(this.markerclassname)&&(i=e.nodename.tolowercase(),"input"===i?(e.disabled=!0,o.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===i||"span"===i)&&(s=n.children("."+this._inlineclass),s.children().addclass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledinputs=t.map(this._disabledinputs,function(t){return t===e?null:t}),this._disabledinputs[this._disabledinputs.length]=e)},_isdisableddatepicker:function(t){if(!t)return!1;for(var e=0;this._disabledinputs.length>e;e++)if(this._disabledinputs[e]===t)return!0;return!1},_getinst:function(e){try{return t.data(e,"datepicker")}catch(i){throw"missing instance data for this datepicker"}},_optiondatepicker:function(e,i,s){var n,o,r,h,l=this._getinst(e);return 2===arguments.length&&"string"==typeof i?"defaults"===i?t.extend({},t.datepicker._defaults):l?"all"===i?t.extend({},l.settings):this._get(l,i):null:(n=i||{},"string"==typeof i&&(n={},n[i]=s),l&&(this._curinst===l&&this._hidedatepicker(),o=this._getdatedatepicker(e,!0),r=this._getminmaxdate(l,"min"),h=this._getminmaxdate(l,"max"),a(l.settings,n),null!==r&&void 0!==n.dateformat&&void 0===n.mindate&&(l.settings.mindate=this._formatdate(l,r)),null!==h&&void 0!==n.dateformat&&void 0===n.maxdate&&(l.settings.maxdate=this._formatdate(l,h)),"disabled"in n&&(n.disabled?this._disabledatepicker(e):this._enabledatepicker(e)),this._attachments(t(e),l),this._autosize(l),this._setdate(l,o),this._updatealternate(l),this._updatedatepicker(l)),void 0)},_changedatepicker:function(t,e,i){this._optiondatepicker(t,e,i)},_refreshdatepicker:function(t){var e=this._getinst(t);e&&this._updatedatepicker(e)},_setdatedatepicker:function(t,e){var i=this._getinst(t);i&&(this._setdate(i,e),this._updatedatepicker(i),this._updatealternate(i))},_getdatedatepicker:function(t,e){var i=this._getinst(t);return i&&!i.inline&&this._setdatefromfield(i,e),i?this._getdate(i):null},_dokeydown:function(e){var i,s,n,o=t.datepicker._getinst(e.target),a=!0,r=o.dpdiv.is(".ui-datepicker-rtl");if(o._keyevent=!0,t.datepicker._datepickershowing)switch(e.keycode){case 9:t.datepicker._hidedatepicker(),a=!1;break;case 13:return n=t("td."+t.datepicker._dayoverclass+":not(."+t.datepicker._currentclass+")",o.dpdiv),n[0]&&t.datepicker._selectday(e.target,o.selectedmonth,o.selectedyear,n[0]),i=t.datepicker._get(o,"onselect"),i?(s=t.datepicker._formatdate(o),i.apply(o.input?o.input[0]:null,[s,o])):t.datepicker._hidedatepicker(),!1;case 27:t.datepicker._hidedatepicker();break;case 33:t.datepicker._adjustdate(e.target,e.ctrlkey?-t.datepicker._get(o,"stepbigmonths"):-t.datepicker._get(o,"stepmonths"),"m");break;case 34:t.datepicker._adjustdate(e.target,e.ctrlkey?+t.datepicker._get(o,"stepbigmonths"):+t.datepicker._get(o,"stepmonths"),"m");break;case 35:(e.ctrlkey||e.metakey)&&t.datepicker._cleardate(e.target),a=e.ctrlkey||e.metakey;break;case 36:(e.ctrlkey||e.metakey)&&t.datepicker._gototoday(e.target),a=e.ctrlkey||e.metakey;break;case 37:(e.ctrlkey||e.metakey)&&t.datepicker._adjustdate(e.target,r?1:-1,"d"),a=e.ctrlkey||e.metakey,e.originalevent.altkey&&t.datepicker._adjustdate(e.target,e.ctrlkey?-t.datepicker._get(o,"stepbigmonths"):-t.datepicker._get(o,"stepmonths"),"m");break;case 38:(e.ctrlkey||e.metakey)&&t.datepicker._adjustdate(e.target,-7,"d"),a=e.ctrlkey||e.metakey;break;case 39:(e.ctrlkey||e.metakey)&&t.datepicker._adjustdate(e.target,r?-1:1,"d"),a=e.ctrlkey||e.metakey,e.originalevent.altkey&&t.datepicker._adjustdate(e.target,e.ctrlkey?+t.datepicker._get(o,"stepbigmonths"):+t.datepicker._get(o,"stepmonths"),"m");break;case 40:(e.ctrlkey||e.metakey)&&t.datepicker._adjustdate(e.target,7,"d"),a=e.ctrlkey||e.metakey;break;default:a=!1}else 36===e.keycode&&e.ctrlkey?t.datepicker._showdatepicker(this):a=!1;a&&(e.preventdefault(),e.stoppropagation())},_dokeypress:function(e){var i,s,n=t.datepicker._getinst(e.target);return t.datepicker._get(n,"constraininput")?(i=t.datepicker._possiblechars(t.datepicker._get(n,"dateformat")),s=string.fromcharcode(null==e.charcode?e.keycode:e.charcode),e.ctrlkey||e.metakey||" ">s||!i||i.indexof(s)>-1):void 0},_dokeyup:function(e){var i,s=t.datepicker._getinst(e.target);if(s.input.val()!==s.lastval)try{i=t.datepicker.parsedate(t.datepicker._get(s,"dateformat"),s.input?s.input.val():null,t.datepicker._getformatconfig(s)),i&&(t.datepicker._setdatefromfield(s),t.datepicker._updatealternate(s),t.datepicker._updatedatepicker(s))}catch(n){}return!0},_showdatepicker:function(e){if(e=e.target||e,"input"!==e.nodename.tolowercase()&&(e=t("input",e.parentnode)[0]),!t.datepicker._isdisableddatepicker(e)&&t.datepicker._lastinput!==e){var s,n,o,r,h,l,c;s=t.datepicker._getinst(e),t.datepicker._curinst&&t.datepicker._curinst!==s&&(t.datepicker._curinst.dpdiv.stop(!0,!0),s&&t.datepicker._datepickershowing&&t.datepicker._hidedatepicker(t.datepicker._curinst.input[0])),n=t.datepicker._get(s,"beforeshow"),o=n?n.apply(e,[e,s]):{},o!==!1&&(a(s.settings,o),s.lastval=null,t.datepicker._lastinput=e,t.datepicker._setdatefromfield(s),t.datepicker._indialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findpos(e),t.datepicker._pos[1]+=e.offsetheight),r=!1,t(e).parents().each(function(){return r|="fixed"===t(this).css("position"),!r}),h={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,s.dpdiv.empty(),s.dpdiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updatedatepicker(s),h=t.datepicker._checkoffset(s,h,r),s.dpdiv.css({position:t.datepicker._indialog&&t.blockui?"static":r?"fixed":"absolute",display:"none",left:h.left+"px",top:h.top+"px"}),s.inline||(l=t.datepicker._get(s,"showanim"),c=t.datepicker._get(s,"duration"),s.dpdiv.css("z-index",i(t(e))+1),t.datepicker._datepickershowing=!0,t.effects&&t.effects.effect[l]?s.dpdiv.show(l,t.datepicker._get(s,"showoptions"),c):s.dpdiv[l||"show"](l?c:null),t.datepicker._shouldfocusinput(s)&&s.input.trigger("focus"),t.datepicker._curinst=s)) }},_updatedatepicker:function(e){this.maxrows=4,m=e,e.dpdiv.empty().append(this._generatehtml(e)),this._attachhandlers(e);var i,s=this._getnumberofmonths(e),n=s[1],a=17,r=e.dpdiv.find("."+this._dayoverclass+" a");r.length>0&&o.apply(r.get(0)),e.dpdiv.removeclass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),n>1&&e.dpdiv.addclass("ui-datepicker-multi-"+n).css("width",a*n+"em"),e.dpdiv[(1!==s[0]||1!==s[1]?"add":"remove")+"class"]("ui-datepicker-multi"),e.dpdiv[(this._get(e,"isrtl")?"add":"remove")+"class"]("ui-datepicker-rtl"),e===t.datepicker._curinst&&t.datepicker._datepickershowing&&t.datepicker._shouldfocusinput(e)&&e.input.trigger("focus"),e.yearshtml&&(i=e.yearshtml,settimeout(function(){i===e.yearshtml&&e.yearshtml&&e.dpdiv.find("select.ui-datepicker-year:first").replacewith(e.yearshtml),i=e.yearshtml=null},0))},_shouldfocusinput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkoffset:function(e,i,s){var n=e.dpdiv.outerwidth(),o=e.dpdiv.outerheight(),a=e.input?e.input.outerwidth():0,r=e.input?e.input.outerheight():0,h=document.documentelement.clientwidth+(s?0:t(document).scrollleft()),l=document.documentelement.clientheight+(s?0:t(document).scrolltop());return i.left-=this._get(e,"isrtl")?n-a:0,i.left-=s&&i.left===e.input.offset().left?t(document).scrollleft():0,i.top-=s&&i.top===e.input.offset().top+r?t(document).scrolltop():0,i.left-=math.min(i.left,i.left+n>h&&h>n?math.abs(i.left+n-h):0),i.top-=math.min(i.top,i.top+o>l&&l>o?math.abs(o+r):0),i},_findpos:function(e){for(var i,s=this._getinst(e),n=this._get(s,"isrtl");e&&("hidden"===e.type||1!==e.nodetype||t.expr.filters.hidden(e));)e=e[n?"previoussibling":"nextsibling"];return i=t(e).offset(),[i.left,i.top]},_hidedatepicker:function(e){var i,s,n,o,a=this._curinst;!a||e&&a!==t.data(e,"datepicker")||this._datepickershowing&&(i=this._get(a,"showanim"),s=this._get(a,"duration"),n=function(){t.datepicker._tidydialog(a)},t.effects&&(t.effects.effect[i]||t.effects[i])?a.dpdiv.hide(i,t.datepicker._get(a,"showoptions"),s,n):a.dpdiv["slidedown"===i?"slideup":"fadein"===i?"fadeout":"hide"](i?s:null,n),i||n(),this._datepickershowing=!1,o=this._get(a,"onclose"),o&&o.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a]),this._lastinput=null,this._indialog&&(this._dialoginput.css({position:"absolute",left:"0",top:"-100px"}),t.blockui&&(t.unblockui(),t("body").append(this.dpdiv))),this._indialog=!1)},_tidydialog:function(t){t.dpdiv.removeclass(this._dialogclass).off(".ui-datepicker-calendar")},_checkexternalclick:function(e){if(t.datepicker._curinst){var i=t(e.target),s=t.datepicker._getinst(i[0]);(i[0].id!==t.datepicker._maindivid&&0===i.parents("#"+t.datepicker._maindivid).length&&!i.hasclass(t.datepicker.markerclassname)&&!i.closest("."+t.datepicker._triggerclass).length&&t.datepicker._datepickershowing&&(!t.datepicker._indialog||!t.blockui)||i.hasclass(t.datepicker.markerclassname)&&t.datepicker._curinst!==s)&&t.datepicker._hidedatepicker()}},_adjustdate:function(e,i,s){var n=t(e),o=this._getinst(n[0]);this._isdisableddatepicker(n[0])||(this._adjustinstdate(o,i+("m"===s?this._get(o,"showcurrentatpos"):0),s),this._updatedatepicker(o))},_gototoday:function(e){var i,s=t(e),n=this._getinst(s[0]);this._get(n,"gotocurrent")&&n.currentday?(n.selectedday=n.currentday,n.drawmonth=n.selectedmonth=n.currentmonth,n.drawyear=n.selectedyear=n.currentyear):(i=new date,n.selectedday=i.getdate(),n.drawmonth=n.selectedmonth=i.getmonth(),n.drawyear=n.selectedyear=i.getfullyear()),this._notifychange(n),this._adjustdate(s)},_selectmonthyear:function(e,i,s){var n=t(e),o=this._getinst(n[0]);o["selected"+("m"===s?"month":"year")]=o["draw"+("m"===s?"month":"year")]=parseint(i.options[i.selectedindex].value,10),this._notifychange(o),this._adjustdate(n)},_selectday:function(e,i,s,n){var o,a=t(e);t(n).hasclass(this._unselectableclass)||this._isdisableddatepicker(a[0])||(o=this._getinst(a[0]),o.selectedday=o.currentday=t("a",n).html(),o.selectedmonth=o.currentmonth=i,o.selectedyear=o.currentyear=s,this._selectdate(e,this._formatdate(o,o.currentday,o.currentmonth,o.currentyear)))},_cleardate:function(e){var i=t(e);this._selectdate(i,"")},_selectdate:function(e,i){var s,n=t(e),o=this._getinst(n[0]);i=null!=i?i:this._formatdate(o),o.input&&o.input.val(i),this._updatealternate(o),s=this._get(o,"onselect"),s?s.apply(o.input?o.input[0]:null,[i,o]):o.input&&o.input.trigger("change"),o.inline?this._updatedatepicker(o):(this._hidedatepicker(),this._lastinput=o.input[0],"object"!=typeof o.input[0]&&o.input.trigger("focus"),this._lastinput=null)},_updatealternate:function(e){var i,s,n,o=this._get(e,"altfield");o&&(i=this._get(e,"altformat")||this._get(e,"dateformat"),s=this._getdate(e),n=this.formatdate(i,s,this._getformatconfig(e)),t(o).val(n))},noweekends:function(t){var e=t.getday();return[e>0&&6>e,""]},iso8601week:function(t){var e,i=new date(t.gettime());return i.setdate(i.getdate()+4-(i.getday()||7)),e=i.gettime(),i.setmonth(0),i.setdate(1),math.floor(math.round((e-i)/864e5)/7)+1},parsedate:function(e,i,s){if(null==e||null==i)throw"invalid arguments";if(i="object"==typeof i?""+i:i+"",""===i)return null;var n,o,a,r,h=0,l=(s?s.shortyearcutoff:null)||this._defaults.shortyearcutoff,c="string"!=typeof l?l:(new date).getfullyear()%100+parseint(l,10),u=(s?s.daynamesshort:null)||this._defaults.daynamesshort,d=(s?s.daynames:null)||this._defaults.daynames,p=(s?s.monthnamesshort:null)||this._defaults.monthnamesshort,f=(s?s.monthnames:null)||this._defaults.monthnames,g=-1,m=-1,_=-1,v=-1,b=!1,y=function(t){var i=e.length>n+1&&e.charat(n+1)===t;return i&&n++,i},w=function(t){var e=y(t),s="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,n="y"===t?s:1,o=regexp("^\\d{"+n+","+s+"}"),a=i.substring(h).match(o);if(!a)throw"missing number at position "+h;return h+=a[0].length,parseint(a[0],10)},k=function(e,s,n){var o=-1,a=t.map(y(e)?n:s,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(t.each(a,function(t,e){var s=e[1];return i.substr(h,s.length).tolowercase()===s.tolowercase()?(o=e[0],h+=s.length,!1):void 0}),-1!==o)return o+1;throw"unknown name at position "+h},x=function(){if(i.charat(h)!==e.charat(n))throw"unexpected literal at position "+h;h++};for(n=0;e.length>n;n++)if(b)"'"!==e.charat(n)||y("'")?x():b=!1;else switch(e.charat(n)){case"d":_=w("d");break;case"d":k("d",u,d);break;case"o":v=w("o");break;case"m":m=w("m");break;case"m":m=k("m",p,f);break;case"y":g=w("y");break;case"@":r=new date(w("@")),g=r.getfullyear(),m=r.getmonth()+1,_=r.getdate();break;case"!":r=new date((w("!")-this._ticksto1970)/1e4),g=r.getfullyear(),m=r.getmonth()+1,_=r.getdate();break;case"'":y("'")?x():b=!0;break;default:x()}if(i.length>h&&(a=i.substr(h),!/^\s+/.test(a)))throw"extra/unparsed characters found in date: "+a;if(-1===g?g=(new date).getfullyear():100>g&&(g+=(new date).getfullyear()-(new date).getfullyear()%100+(c>=g?0:-100)),v>-1)for(m=1,_=v;;){if(o=this._getdaysinmonth(g,m-1),o>=_)break;m++,_-=o}if(r=this._daylightsavingadjust(new date(g,m-1,_)),r.getfullyear()!==g||r.getmonth()+1!==m||r.getdate()!==_)throw"invalid date";return r},atom:"yy-mm-dd",cookie:"d, dd m yy",iso_8601:"yy-mm-dd",rfc_822:"d, d m y",rfc_850:"dd, dd-m-y",rfc_1036:"d, d m y",rfc_1123:"d, d m yy",rfc_2822:"d, d m yy",rss:"d, d m y",ticks:"!",timestamp:"@",w3c:"yy-mm-dd",_ticksto1970:1e7*60*60*24*(718685+math.floor(492.5)-math.floor(19.7)+math.floor(4.925)),formatdate:function(t,e,i){if(!e)return"";var s,n=(i?i.daynamesshort:null)||this._defaults.daynamesshort,o=(i?i.daynames:null)||this._defaults.daynames,a=(i?i.monthnamesshort:null)||this._defaults.monthnamesshort,r=(i?i.monthnames:null)||this._defaults.monthnames,h=function(e){var i=t.length>s+1&&t.charat(s+1)===e;return i&&s++,i},l=function(t,e,i){var s=""+e;if(h(t))for(;i>s.length;)s="0"+s;return s},c=function(t,e,i,s){return h(t)?s[e]:i[e]},u="",d=!1;if(e)for(s=0;t.length>s;s++)if(d)"'"!==t.charat(s)||h("'")?u+=t.charat(s):d=!1;else switch(t.charat(s)){case"d":u+=l("d",e.getdate(),2);break;case"d":u+=c("d",e.getday(),n,o);break;case"o":u+=l("o",math.round((new date(e.getfullyear(),e.getmonth(),e.getdate()).gettime()-new date(e.getfullyear(),0,0).gettime())/864e5),3);break;case"m":u+=l("m",e.getmonth()+1,2);break;case"m":u+=c("m",e.getmonth(),a,r);break;case"y":u+=h("y")?e.getfullyear():(10>e.getfullyear()%100?"0":"")+e.getfullyear()%100;break;case"@":u+=e.gettime();break;case"!":u+=1e4*e.gettime()+this._ticksto1970;break;case"'":h("'")?u+="'":d=!0;break;default:u+=t.charat(s)}return u},_possiblechars:function(t){var e,i="",s=!1,n=function(i){var s=t.length>e+1&&t.charat(e+1)===i;return s&&e++,s};for(e=0;t.length>e;e++)if(s)"'"!==t.charat(e)||n("'")?i+=t.charat(e):s=!1;else switch(t.charat(e)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"d":case"m":return null;case"'":n("'")?i+="'":s=!0;break;default:i+=t.charat(e)}return i},_get:function(t,e){return void 0!==t.settings[e]?t.settings[e]:this._defaults[e]},_setdatefromfield:function(t,e){if(t.input.val()!==t.lastval){var i=this._get(t,"dateformat"),s=t.lastval=t.input?t.input.val():null,n=this._getdefaultdate(t),o=n,a=this._getformatconfig(t);try{o=this.parsedate(i,s,a)||n}catch(r){s=e?"":s}t.selectedday=o.getdate(),t.drawmonth=t.selectedmonth=o.getmonth(),t.drawyear=t.selectedyear=o.getfullyear(),t.currentday=s?o.getdate():0,t.currentmonth=s?o.getmonth():0,t.currentyear=s?o.getfullyear():0,this._adjustinstdate(t)}},_getdefaultdate:function(t){return this._restrictminmax(t,this._determinedate(t,this._get(t,"defaultdate"),new date))},_determinedate:function(e,i,s){var n=function(t){var e=new date;return e.setdate(e.getdate()+t),e},o=function(i){try{return t.datepicker.parsedate(t.datepicker._get(e,"dateformat"),i,t.datepicker._getformatconfig(e))}catch(s){}for(var n=(i.tolowercase().match(/^c/)?t.datepicker._getdate(e):null)||new date,o=n.getfullyear(),a=n.getmonth(),r=n.getdate(),h=/([+\-]?[0-9]+)\s*(d|d|w|w|m|m|y|y)?/g,l=h.exec(i);l;){switch(l[2]||"d"){case"d":case"d":r+=parseint(l[1],10);break;case"w":case"w":r+=7*parseint(l[1],10);break;case"m":case"m":a+=parseint(l[1],10),r=math.min(r,t.datepicker._getdaysinmonth(o,a));break;case"y":case"y":o+=parseint(l[1],10),r=math.min(r,t.datepicker._getdaysinmonth(o,a))}l=h.exec(i)}return new date(o,a,r)},a=null==i||""===i?s:"string"==typeof i?o(i):"number"==typeof i?isnan(i)?s:n(i):new date(i.gettime());return a=a&&"invalid date"==""+a?s:a,a&&(a.sethours(0),a.setminutes(0),a.setseconds(0),a.setmilliseconds(0)),this._daylightsavingadjust(a)},_daylightsavingadjust:function(t){return t?(t.sethours(t.gethours()>12?t.gethours()+2:0),t):null},_setdate:function(t,e,i){var s=!e,n=t.selectedmonth,o=t.selectedyear,a=this._restrictminmax(t,this._determinedate(t,e,new date));t.selectedday=t.currentday=a.getdate(),t.drawmonth=t.selectedmonth=t.currentmonth=a.getmonth(),t.drawyear=t.selectedyear=t.currentyear=a.getfullyear(),n===t.selectedmonth&&o===t.selectedyear||i||this._notifychange(t),this._adjustinstdate(t),t.input&&t.input.val(s?"":this._formatdate(t))},_getdate:function(t){var e=!t.currentyear||t.input&&""===t.input.val()?null:this._daylightsavingadjust(new date(t.currentyear,t.currentmonth,t.currentday));return e},_attachhandlers:function(e){var i=this._get(e,"stepmonths"),s="#"+e.id.replace(/\\\\/g,"\\");e.dpdiv.find("[data-handler]").map(function(){var e={prev:function(){t.datepicker._adjustdate(s,-i,"m")},next:function(){t.datepicker._adjustdate(s,+i,"m")},hide:function(){t.datepicker._hidedatepicker()},today:function(){t.datepicker._gototoday(s)},selectday:function(){return t.datepicker._selectday(s,+this.getattribute("data-month"),+this.getattribute("data-year"),this),!1},selectmonth:function(){return t.datepicker._selectmonthyear(s,this,"m"),!1},selectyear:function(){return t.datepicker._selectmonthyear(s,this,"y"),!1}};t(this).on(this.getattribute("data-event"),e[this.getattribute("data-handler")])})},_generatehtml:function(t){var e,i,s,n,o,a,r,h,l,c,u,d,p,f,g,m,_,v,b,y,w,k,x,c,d,i,t,p,m,s,h,z,o,a,n,w,e,f,l,r=new date,b=this._daylightsavingadjust(new date(r.getfullyear(),r.getmonth(),r.getdate())),y=this._get(t,"isrtl"),j=this._get(t,"showbuttonpanel"),q=this._get(t,"hideifnoprevnext"),k=this._get(t,"navigationasdateformat"),u=this._getnumberofmonths(t),v=this._get(t,"showcurrentatpos"),$=this._get(t,"stepmonths"),x=1!==u[0]||1!==u[1],g=this._daylightsavingadjust(t.currentday?new date(t.currentyear,t.currentmonth,t.currentday):new date(9999,9,9)),q=this._getminmaxdate(t,"min"),j=this._getminmaxdate(t,"max"),z=t.drawmonth-v,te=t.drawyear;if(0>z&&(z+=12,te--),j)for(e=this._daylightsavingadjust(new date(j.getfullyear(),j.getmonth()-u[0]*u[1]+1,j.getdate())),e=q&&q>e?q:e;this._daylightsavingadjust(new date(te,z,1))>e;)z--,0>z&&(z=11,te--);for(t.drawmonth=z,t.drawyear=te,i=this._get(t,"prevtext"),i=k?this.formatdate(i,this._daylightsavingadjust(new date(te,z-$,1)),this._getformatconfig(t)):i,s=this._canadjustmonth(t,-1,te,z)?""+i+"":q?"":""+i+"",n=this._get(t,"nexttext"),n=k?this.formatdate(n,this._daylightsavingadjust(new date(te,z+$,1)),this._getformatconfig(t)):n,o=this._canadjustmonth(t,1,te,z)?""+n+"":q?"":""+n+"",a=this._get(t,"currenttext"),r=this._get(t,"gotocurrent")&&t.currentday?g:b,a=k?this.formatdate(a,r,this._getformatconfig(t)):a,h=t.inline?"":"",l=j?"
"+(y?h:"")+(this._isinrange(t,r)?"":"")+(y?"":h)+"
":"",c=parseint(this._get(t,"firstday"),10),c=isnan(c)?0:c,u=this._get(t,"showweek"),d=this._get(t,"daynames"),p=this._get(t,"daynamesmin"),f=this._get(t,"monthnames"),g=this._get(t,"monthnamesshort"),m=this._get(t,"beforeshowday"),_=this._get(t,"showothermonths"),v=this._get(t,"selectothermonths"),b=this._getdefaultdate(t),y="",k=0;u[0]>k;k++){for(x="",this.maxrows=4,c=0;u[1]>c;c++){if(d=this._daylightsavingadjust(new date(te,z,t.selectedday)),i=" ui-corner-all",t="",x){if(t+="
"}for(t+="
"+(/all|left/.test(i)&&0===k?y?o:s:"")+(/all|right/.test(i)&&0===k?y?s:o:"")+this._generatemonthyearheader(t,z,te,q,j,k>0||c>0,f,g)+"
"+"",p=u?"":"",w=0;7>w;w++)m=(w+c)%7,p+="";for(t+=p+"",s=this._getdaysinmonth(te,z),te===t.selectedyear&&z===t.selectedmonth&&(t.selectedday=math.min(t.selectedday,s)),h=(this._getfirstdayofmonth(te,z)-c+7)%7,z=math.ceil((h+s)/7),o=x?this.maxrows>z?this.maxrows:z:z,this.maxrows=o,a=this._daylightsavingadjust(new date(te,z,1-h)),n=0;o>n;n++){for(t+="",w=u?"":"",w=0;7>w;w++)e=m?m.apply(t.input?t.input[0]:null,[a]):[!0,""],f=a.getmonth()!==z,l=f&&!v||!e[0]||q&&q>a||j&&a>j,w+="",a.setdate(a.getdate()+1),a=this._daylightsavingadjust(a);t+=w+""}z++,z>11&&(z=0,te++),t+="
"+this._get(t,"weekheader")+"=5?" class='ui-datepicker-week-end'":"")+">"+""+p[m]+"
"+this._get(t,"calculateweek")(a)+""+(f&&!_?" ":l?""+a.getdate()+"":""+a.getdate()+"")+"
"+(x?"
"+(u[0]>0&&c===u[1]-1?"
":""):""),x+=t}y+=x}return y+=l,t._keyevent=!1,y},_generatemonthyearheader:function(t,e,i,s,n,o,a,r){var h,l,c,u,d,p,f,g,m=this._get(t,"changemonth"),_=this._get(t,"changeyear"),v=this._get(t,"showmonthafteryear"),b="
",y="";if(o||!m)y+=""+a[e]+"";else{for(h=s&&s.getfullyear()===i,l=n&&n.getfullyear()===i,y+=""}if(v||(b+=y+(!o&&m&&_?"":" ")),!t.yearshtml)if(t.yearshtml="",o||!_)b+=""+i+"";else{for(u=this._get(t,"yearrange").split(":"),d=(new date).getfullyear(),p=function(t){var e=t.match(/c[+\-].*/)?i+parseint(t.substring(1),10):t.match(/[+\-].*/)?d+parseint(t,10):parseint(t,10);return isnan(e)?d:e},f=p(u[0]),g=math.max(f,p(u[1]||"")),f=s?math.max(f,s.getfullyear()):f,g=n?math.min(g,n.getfullyear()):g,t.yearshtml+="",b+=t.yearshtml,t.yearshtml=null}return b+=this._get(t,"yearsuffix"),v&&(b+=(!o&&m&&_?"":" ")+y),b+="
"},_adjustinstdate:function(t,e,i){var s=t.selectedyear+("y"===i?e:0),n=t.selectedmonth+("m"===i?e:0),o=math.min(t.selectedday,this._getdaysinmonth(s,n))+("d"===i?e:0),a=this._restrictminmax(t,this._daylightsavingadjust(new date(s,n,o)));t.selectedday=a.getdate(),t.drawmonth=t.selectedmonth=a.getmonth(),t.drawyear=t.selectedyear=a.getfullyear(),("m"===i||"y"===i)&&this._notifychange(t)},_restrictminmax:function(t,e){var i=this._getminmaxdate(t,"min"),s=this._getminmaxdate(t,"max"),n=i&&i>e?i:e;return s&&n>s?s:n},_notifychange:function(t){var e=this._get(t,"onchangemonthyear");e&&e.apply(t.input?t.input[0]:null,[t.selectedyear,t.selectedmonth+1,t])},_getnumberofmonths:function(t){var e=this._get(t,"numberofmonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getminmaxdate:function(t,e){return this._determinedate(t,this._get(t,e+"date"),null)},_getdaysinmonth:function(t,e){return 32-this._daylightsavingadjust(new date(t,e,32)).getdate()},_getfirstdayofmonth:function(t,e){return new date(t,e,1).getday()},_canadjustmonth:function(t,e,i,s){var n=this._getnumberofmonths(t),o=this._daylightsavingadjust(new date(i,s+(0>e?e:n[0]*n[1]),1));return 0>e&&o.setdate(this._getdaysinmonth(o.getfullyear(),o.getmonth())),this._isinrange(t,o)},_isinrange:function(t,e){var i,s,n=this._getminmaxdate(t,"min"),o=this._getminmaxdate(t,"max"),a=null,r=null,h=this._get(t,"yearrange");return h&&(i=h.split(":"),s=(new date).getfullyear(),a=parseint(i[0],10),r=parseint(i[1],10),i[0].match(/[+\-].*/)&&(a+=s),i[1].match(/[+\-].*/)&&(r+=s)),(!n||e.gettime()>=n.gettime())&&(!o||e.gettime()<=o.gettime())&&(!a||e.getfullyear()>=a)&&(!r||r>=e.getfullyear())},_getformatconfig:function(t){var e=this._get(t,"shortyearcutoff");return e="string"!=typeof e?e:(new date).getfullyear()%100+parseint(e,10),{shortyearcutoff:e,daynamesshort:this._get(t,"daynamesshort"),daynames:this._get(t,"daynames"),monthnamesshort:this._get(t,"monthnamesshort"),monthnames:this._get(t,"monthnames")}},_formatdate:function(t,e,i,s){e||(t.currentday=t.selectedday,t.currentmonth=t.selectedmonth,t.currentyear=t.selectedyear);var n=e?"object"==typeof e?e:this._daylightsavingadjust(new date(s,i,e)):this._daylightsavingadjust(new date(t.currentyear,t.currentmonth,t.currentday));return this.formatdate(this._get(t,"dateformat"),n,this._getformatconfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).on("mousedown",t.datepicker._checkexternalclick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._maindivid).length&&t("body").append(t.datepicker.dpdiv);var i=array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isdisabled"!==e&&"getdate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?t.datepicker["_"+e+"datepicker"].apply(t.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof e?t.datepicker["_"+e+"datepicker"].apply(t.datepicker,[this].concat(i)):t.datepicker._attachdatepicker(this,e)}):t.datepicker["_"+e+"datepicker"].apply(t.datepicker,[this[0]].concat(i))},t.datepicker=new s,t.datepicker.initialized=!1,t.datepicker.uuid=(new date).gettime(),t.datepicker.version="1.12.1",t.datepicker,t.ui.ie=!!/msie [\w.]+/.exec(navigator.useragent.tolowercase());var _=!1;t(document).on("mouseup",function(){_=!1}),t.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseinit:function(){var e=this;this.element.on("mousedown."+this.widgetname,function(t){return e._mousedown(t)}).on("click."+this.widgetname,function(i){return!0===t.data(i.target,e.widgetname+".preventclickevent")?(t.removedata(i.target,e.widgetname+".preventclickevent"),i.stopimmediatepropagation(),!1):void 0}),this.started=!1},_mousedestroy:function(){this.element.off("."+this.widgetname),this._mousemovedelegate&&this.document.off("mousemove."+this.widgetname,this._mousemovedelegate).off("mouseup."+this.widgetname,this._mouseupdelegate)},_mousedown:function(e){if(!_){this._mousemoved=!1,this._mousestarted&&this._mouseup(e),this._mousedownevent=e;var i=this,s=1===e.which,n="string"==typeof this.options.cancel&&e.target.nodename?t(e.target).closest(this.options.cancel).length:!1;return s&&!n&&this._mousecapture(e)?(this.mousedelaymet=!this.options.delay,this.mousedelaymet||(this._mousedelaytimer=settimeout(function(){i.mousedelaymet=!0},this.options.delay)),this._mousedistancemet(e)&&this._mousedelaymet(e)&&(this._mousestarted=this._mousestart(e)!==!1,!this._mousestarted)?(e.preventdefault(),!0):(!0===t.data(e.target,this.widgetname+".preventclickevent")&&t.removedata(e.target,this.widgetname+".preventclickevent"),this._mousemovedelegate=function(t){return i._mousemove(t)},this._mouseupdelegate=function(t){return i._mouseup(t)},this.document.on("mousemove."+this.widgetname,this._mousemovedelegate).on("mouseup."+this.widgetname,this._mouseupdelegate),e.preventdefault(),_=!0,!0)):!0}},_mousemove:function(e){if(this._mousemoved){if(t.ui.ie&&(!document.documentmode||9>document.documentmode)&&!e.button)return this._mouseup(e);if(!e.which)if(e.originalevent.altkey||e.originalevent.ctrlkey||e.originalevent.metakey||e.originalevent.shiftkey)this.ignoremissingwhich=!0;else if(!this.ignoremissingwhich)return this._mouseup(e)}return(e.which||e.button)&&(this._mousemoved=!0),this._mousestarted?(this._mousedrag(e),e.preventdefault()):(this._mousedistancemet(e)&&this._mousedelaymet(e)&&(this._mousestarted=this._mousestart(this._mousedownevent,e)!==!1,this._mousestarted?this._mousedrag(e):this._mouseup(e)),!this._mousestarted)},_mouseup:function(e){this.document.off("mousemove."+this.widgetname,this._mousemovedelegate).off("mouseup."+this.widgetname,this._mouseupdelegate),this._mousestarted&&(this._mousestarted=!1,e.target===this._mousedownevent.target&&t.data(e.target,this.widgetname+".preventclickevent",!0),this._mousestop(e)),this._mousedelaytimer&&(cleartimeout(this._mousedelaytimer),delete this._mousedelaytimer),this.ignoremissingwhich=!1,_=!1,e.preventdefault()},_mousedistancemet:function(t){return math.max(math.abs(this._mousedownevent.pagex-t.pagex),math.abs(this._mousedownevent.pagey-t.pagey))>=this.options.distance},_mousedelaymet:function(){return this.mousedelaymet},_mousestart:function(){},_mousedrag:function(){},_mousestop:function(){},_mousecapture:function(){return!0}}),t.ui.plugin={add:function(e,i,s){var n,o=t.ui[e].prototype;for(n in s)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([i,s[n]])},call:function(t,e,i,s){var n,o=t.plugins[e];if(o&&(s||t.element[0].parentnode&&11!==t.element[0].parentnode.nodetype))for(n=0;o.length>n;n++)t.options[o[n][0]]&&o[n][1].apply(t.element,i)}},t.ui.safeblur=function(e){e&&"body"!==e.nodename.tolowercase()&&t(e).trigger("blur")},t.widget("ui.draggable",t.ui.mouse,{version:"1.12.1",widgeteventprefix:"drag",options:{addclasses:!0,appendto:"parent",axis:!1,connecttosortable:!1,containment:!1,cursor:"auto",cursorat:!1,grid:!1,handle:!1,helper:"original",iframefix:!1,opacity:!1,refreshpositions:!1,revert:!1,revertduration:500,scope:"default",scroll:!0,scrollsensitivity:20,scrollspeed:20,snap:!1,snapmode:"both",snaptolerance:20,stack:!1,zindex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setpositionrelative(),this.options.addclasses&&this._addclass("ui-draggable"),this._sethandleclassname(),this._mouseinit()},_setoption:function(t,e){this._super(t,e),"handle"===t&&(this._removehandleclassname(),this._sethandleclassname())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?(this.destroyonclear=!0,void 0):(this._removehandleclassname(),this._mousedestroy(),void 0)},_mousecapture:function(e){var i=this.options;return this.helper||i.disabled||t(e.target).closest(".ui-resizable-handle").length>0?!1:(this.handle=this._gethandle(e),this.handle?(this._bluractiveelement(e),this._blockframes(i.iframefix===!0?"iframe":i.iframefix),!0):!1)},_blockframes:function(e){this.iframeblocks=this.document.find(e).map(function(){var e=t(this);return t("
").css("position","absolute").appendto(e.parent()).outerwidth(e.outerwidth()).outerheight(e.outerheight()).offset(e.offset())[0]})},_unblockframes:function(){this.iframeblocks&&(this.iframeblocks.remove(),delete this.iframeblocks)},_bluractiveelement:function(e){var i=t.ui.safeactiveelement(this.document[0]),s=t(e.target);s.closest(i).length||t.ui.safeblur(i)},_mousestart:function(e){var i=this.options;return this.helper=this._createhelper(e),this._addclass(this.helper,"ui-draggable-dragging"),this._cachehelperproportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cachemargins(),this.cssposition=this.helper.css("position"),this.scrollparent=this.helper.scrollparent(!0),this.offsetparent=this.helper.offsetparent(),this.hasfixedancestor=this.helper.parents().filter(function(){return"fixed"===t(this).css("position")}).length>0,this.positionabs=this.element.offset(),this._refreshoffsets(e),this.originalposition=this.position=this._generateposition(e,!1),this.originalpagex=e.pagex,this.originalpagey=e.pagey,i.cursorat&&this._adjustoffsetfromhelper(i.cursorat),this._setcontainment(),this._trigger("start",e)===!1?(this._clear(),!1):(this._cachehelperproportions(),t.ui.ddmanager&&!i.dropbehaviour&&t.ui.ddmanager.prepareoffsets(this,e),this._mousedrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragstart(this,e),!0)},_refreshoffsets:function(t){this.offset={top:this.positionabs.top-this.margins.top,left:this.positionabs.left-this.margins.left,scroll:!1,parent:this._getparentoffset(),relative:this._getrelativeoffset()},this.offset.click={left:t.pagex-this.offset.left,top:t.pagey-this.offset.top}},_mousedrag:function(e,i){if(this.hasfixedancestor&&(this.offset.parent=this._getparentoffset()),this.position=this._generateposition(e,!0),this.positionabs=this._convertpositionto("absolute"),!i){var s=this._uihash();if(this._trigger("drag",e,s)===!1)return this._mouseup(new t.event("mouseup",e)),!1;this.position=s.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mousestop:function(e){var i=this,s=!1;return t.ui.ddmanager&&!this.options.dropbehaviour&&(s=t.ui.ddmanager.drop(this,e)),this.dropped&&(s=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!s||"valid"===this.options.revert&&s||this.options.revert===!0||t.isfunction(this.options.revert)&&this.options.revert.call(this.element,s)?t(this.helper).animate(this.originalposition,parseint(this.options.revertduration,10),function(){i._trigger("stop",e)!==!1&&i._clear()}):this._trigger("stop",e)!==!1&&this._clear(),!1},_mouseup:function(e){return this._unblockframes(),t.ui.ddmanager&&t.ui.ddmanager.dragstop(this,e),this.handleelement.is(e.target)&&this.element.trigger("focus"),t.ui.mouse.prototype._mouseup.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseup(new t.event("mouseup",{target:this.element[0]})):this._clear(),this},_gethandle:function(e){return this.options.handle?!!t(e.target).closest(this.element.find(this.options.handle)).length:!0},_sethandleclassname:function(){this.handleelement=this.options.handle?this.element.find(this.options.handle):this.element,this._addclass(this.handleelement,"ui-draggable-handle")},_removehandleclassname:function(){this._removeclass(this.handleelement,"ui-draggable-handle")},_createhelper:function(e){var i=this.options,s=t.isfunction(i.helper),n=s?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeattr("id"):this.element;return n.parents("body").length||n.appendto("parent"===i.appendto?this.element[0].parentnode:i.appendto),s&&n[0]===this.element[0]&&this._setpositionrelative(),n[0]===this.element[0]||/(fixed|absolute)/.test(n.css("position"))||n.css("position","absolute"),n},_setpositionrelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustoffsetfromhelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isarray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperproportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperproportions.height-e.bottom+this.margins.top)},_isrootnode:function(t){return/(html|body)/i.test(t.tagname)||t===this.document[0]},_getparentoffset:function(){var e=this.offsetparent.offset(),i=this.document[0];return"absolute"===this.cssposition&&this.scrollparent[0]!==i&&t.contains(this.scrollparent[0],this.offsetparent[0])&&(e.left+=this.scrollparent.scrollleft(),e.top+=this.scrollparent.scrolltop()),this._isrootnode(this.offsetparent[0])&&(e={top:0,left:0}),{top:e.top+(parseint(this.offsetparent.css("bordertopwidth"),10)||0),left:e.left+(parseint(this.offsetparent.css("borderleftwidth"),10)||0)}},_getrelativeoffset:function(){if("relative"!==this.cssposition)return{top:0,left:0};var t=this.element.position(),e=this._isrootnode(this.scrollparent[0]);return{top:t.top-(parseint(this.helper.css("top"),10)||0)+(e?0:this.scrollparent.scrolltop()),left:t.left-(parseint(this.helper.css("left"),10)||0)+(e?0:this.scrollparent.scrollleft())} },_cachemargins:function(){this.margins={left:parseint(this.element.css("marginleft"),10)||0,top:parseint(this.element.css("margintop"),10)||0,right:parseint(this.element.css("marginright"),10)||0,bottom:parseint(this.element.css("marginbottom"),10)||0}},_cachehelperproportions:function(){this.helperproportions={width:this.helper.outerwidth(),height:this.helper.outerheight()}},_setcontainment:function(){var e,i,s,n=this.options,o=this.document[0];return this.relativecontainer=null,n.containment?"window"===n.containment?(this.containment=[t(window).scrollleft()-this.offset.relative.left-this.offset.parent.left,t(window).scrolltop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollleft()+t(window).width()-this.helperproportions.width-this.margins.left,t(window).scrolltop()+(t(window).height()||o.body.parentnode.scrollheight)-this.helperproportions.height-this.margins.top],void 0):"document"===n.containment?(this.containment=[0,0,t(o).width()-this.helperproportions.width-this.margins.left,(t(o).height()||o.body.parentnode.scrollheight)-this.helperproportions.height-this.margins.top],void 0):n.containment.constructor===array?(this.containment=n.containment,void 0):("parent"===n.containment&&(n.containment=this.helper[0].parentnode),i=t(n.containment),s=i[0],s&&(e=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseint(i.css("borderleftwidth"),10)||0)+(parseint(i.css("paddingleft"),10)||0),(parseint(i.css("bordertopwidth"),10)||0)+(parseint(i.css("paddingtop"),10)||0),(e?math.max(s.scrollwidth,s.offsetwidth):s.offsetwidth)-(parseint(i.css("borderrightwidth"),10)||0)-(parseint(i.css("paddingright"),10)||0)-this.helperproportions.width-this.margins.left-this.margins.right,(e?math.max(s.scrollheight,s.offsetheight):s.offsetheight)-(parseint(i.css("borderbottomwidth"),10)||0)-(parseint(i.css("paddingbottom"),10)||0)-this.helperproportions.height-this.margins.top-this.margins.bottom],this.relativecontainer=i),void 0):(this.containment=null,void 0)},_convertpositionto:function(t,e){e||(e=this.position);var i="absolute"===t?1:-1,s=this._isrootnode(this.scrollparent[0]);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssposition?-this.offset.scroll.top:s?0:this.offset.scroll.top)*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssposition?-this.offset.scroll.left:s?0:this.offset.scroll.left)*i}},_generateposition:function(t,e){var i,s,n,o,a=this.options,r=this._isrootnode(this.scrollparent[0]),h=t.pagex,l=t.pagey;return r&&this.offset.scroll||(this.offset.scroll={top:this.scrollparent.scrolltop(),left:this.scrollparent.scrollleft()}),e&&(this.containment&&(this.relativecontainer?(s=this.relativecontainer.offset(),i=[this.containment[0]+s.left,this.containment[1]+s.top,this.containment[2]+s.left,this.containment[3]+s.top]):i=this.containment,t.pagex-this.offset.click.lefti[2]&&(h=i[2]+this.offset.click.left),t.pagey-this.offset.click.top>i[3]&&(l=i[3]+this.offset.click.top)),a.grid&&(n=a.grid[1]?this.originalpagey+math.round((l-this.originalpagey)/a.grid[1])*a.grid[1]:this.originalpagey,l=i?n-this.offset.click.top>=i[1]||n-this.offset.click.top>i[3]?n:n-this.offset.click.top>=i[1]?n-a.grid[1]:n+a.grid[1]:n,o=a.grid[0]?this.originalpagex+math.round((h-this.originalpagex)/a.grid[0])*a.grid[0]:this.originalpagex,h=i?o-this.offset.click.left>=i[0]||o-this.offset.click.left>i[2]?o:o-this.offset.click.left>=i[0]?o-a.grid[0]:o+a.grid[0]:o),"y"===a.axis&&(h=this.originalpagex),"x"===a.axis&&(l=this.originalpagey)),{top:l-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssposition?-this.offset.scroll.top:r?0:this.offset.scroll.top),left:h-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssposition?-this.offset.scroll.left:r?0:this.offset.scroll.left)}},_clear:function(){this._removeclass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelhelperremoval||this.helper.remove(),this.helper=null,this.cancelhelperremoval=!1,this.destroyonclear&&this.destroy()},_trigger:function(e,i,s){return s=s||this._uihash(),t.ui.plugin.call(this,e,[i,s,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionabs=this._convertpositionto("absolute"),s.offset=this.positionabs),t.widget.prototype._trigger.call(this,e,i,s)},plugins:{},_uihash:function(){return{helper:this.helper,position:this.position,originalposition:this.originalposition,offset:this.positionabs}}}),t.ui.plugin.add("draggable","connecttosortable",{start:function(e,i,s){var n=t.extend({},i,{item:s.element});s.sortables=[],t(s.options.connecttosortable).each(function(){var i=t(this).sortable("instance");i&&!i.options.disabled&&(s.sortables.push(i),i.refreshpositions(),i._trigger("activate",e,n))})},stop:function(e,i,s){var n=t.extend({},i,{item:s.element});s.cancelhelperremoval=!1,t.each(s.sortables,function(){var t=this;t.isover?(t.isover=0,s.cancelhelperremoval=!0,t.cancelhelperremoval=!1,t._storedcss={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mousestop(e),t.options.helper=t.options._helper):(t.cancelhelperremoval=!0,t._trigger("deactivate",e,n))})},drag:function(e,i,s){t.each(s.sortables,function(){var n=!1,o=this;o.positionabs=s.positionabs,o.helperproportions=s.helperproportions,o.offset.click=s.offset.click,o._intersectswith(o.containercache)&&(n=!0,t.each(s.sortables,function(){return this.positionabs=s.positionabs,this.helperproportions=s.helperproportions,this.offset.click=s.offset.click,this!==o&&this._intersectswith(this.containercache)&&t.contains(o.element[0],this.element[0])&&(n=!1),n})),n?(o.isover||(o.isover=1,s._parent=i.helper.parent(),o.currentitem=i.helper.appendto(o.element).data("ui-sortable-item",!0),o.options._helper=o.options.helper,o.options.helper=function(){return i.helper[0]},e.target=o.currentitem[0],o._mousecapture(e,!0),o._mousestart(e,!0,!0),o.offset.click.top=s.offset.click.top,o.offset.click.left=s.offset.click.left,o.offset.parent.left-=s.offset.parent.left-o.offset.parent.left,o.offset.parent.top-=s.offset.parent.top-o.offset.parent.top,s._trigger("tosortable",e),s.dropped=o.element,t.each(s.sortables,function(){this.refreshpositions()}),s.currentitem=s.element,o.fromoutside=s),o.currentitem&&(o._mousedrag(e),i.position=o.position)):o.isover&&(o.isover=0,o.cancelhelperremoval=!0,o.options._revert=o.options.revert,o.options.revert=!1,o._trigger("out",e,o._uihash(o)),o._mousestop(e,!0),o.options.revert=o.options._revert,o.options.helper=o.options._helper,o.placeholder&&o.placeholder.remove(),i.helper.appendto(s._parent),s._refreshoffsets(e),i.position=s._generateposition(e,!0),s._trigger("fromsortable",e),s.dropped=!1,t.each(s.sortables,function(){this.refreshpositions()}))})}}),t.ui.plugin.add("draggable","cursor",{start:function(e,i,s){var n=t("body"),o=s.options;n.css("cursor")&&(o._cursor=n.css("cursor")),n.css("cursor",o.cursor)},stop:function(e,i,s){var n=s.options;n._cursor&&t("body").css("cursor",n._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i,s){var n=t(i.helper),o=s.options;n.css("opacity")&&(o._opacity=n.css("opacity")),n.css("opacity",o.opacity)},stop:function(e,i,s){var n=s.options;n._opacity&&t(i.helper).css("opacity",n._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,i){i.scrollparentnothidden||(i.scrollparentnothidden=i.helper.scrollparent(!1)),i.scrollparentnothidden[0]!==i.document[0]&&"html"!==i.scrollparentnothidden[0].tagname&&(i.overflowoffset=i.scrollparentnothidden.offset())},drag:function(e,i,s){var n=s.options,o=!1,a=s.scrollparentnothidden[0],r=s.document[0];a!==r&&"html"!==a.tagname?(n.axis&&"x"===n.axis||(s.overflowoffset.top+a.offsetheight-e.pagey=0;d--)h=s.snapelements[d].left-s.margins.left,l=h+s.snapelements[d].width,c=s.snapelements[d].top-s.margins.top,u=c+s.snapelements[d].height,h-g>_||m>l+g||c-g>b||v>u+g||!t.contains(s.snapelements[d].item.ownerdocument,s.snapelements[d].item)?(s.snapelements[d].snapping&&s.options.snap.release&&s.options.snap.release.call(s.element,e,t.extend(s._uihash(),{snapitem:s.snapelements[d].item})),s.snapelements[d].snapping=!1):("inner"!==f.snapmode&&(n=g>=math.abs(c-b),o=g>=math.abs(u-v),a=g>=math.abs(h-_),r=g>=math.abs(l-m),n&&(i.position.top=s._convertpositionto("relative",{top:c-s.helperproportions.height,left:0}).top),o&&(i.position.top=s._convertpositionto("relative",{top:u,left:0}).top),a&&(i.position.left=s._convertpositionto("relative",{top:0,left:h-s.helperproportions.width}).left),r&&(i.position.left=s._convertpositionto("relative",{top:0,left:l}).left)),p=n||o||a||r,"outer"!==f.snapmode&&(n=g>=math.abs(c-v),o=g>=math.abs(u-b),a=g>=math.abs(h-m),r=g>=math.abs(l-_),n&&(i.position.top=s._convertpositionto("relative",{top:c,left:0}).top),o&&(i.position.top=s._convertpositionto("relative",{top:u-s.helperproportions.height,left:0}).top),a&&(i.position.left=s._convertpositionto("relative",{top:0,left:h}).left),r&&(i.position.left=s._convertpositionto("relative",{top:0,left:l-s.helperproportions.width}).left)),!s.snapelements[d].snapping&&(n||o||a||r||p)&&s.options.snap.snap&&s.options.snap.snap.call(s.element,e,t.extend(s._uihash(),{snapitem:s.snapelements[d].item})),s.snapelements[d].snapping=n||o||a||r||p)}}),t.ui.plugin.add("draggable","stack",{start:function(e,i,s){var n,o=s.options,a=t.makearray(t(o.stack)).sort(function(e,i){return(parseint(t(e).css("zindex"),10)||0)-(parseint(t(i).css("zindex"),10)||0)});a.length&&(n=parseint(t(a[0]).css("zindex"),10)||0,t(a).each(function(e){t(this).css("zindex",n+e)}),this.css("zindex",n+a.length))}}),t.ui.plugin.add("draggable","zindex",{start:function(e,i,s){var n=t(i.helper),o=s.options;n.css("zindex")&&(o._zindex=n.css("zindex")),n.css("zindex",o.zindex)},stop:function(e,i,s){var n=s.options;n._zindex&&t(i.helper).css("zindex",n._zindex)}}),t.ui.draggable,t.widget("ui.resizable",t.ui.mouse,{version:"1.12.1",widgeteventprefix:"resize",options:{alsoresize:!1,animate:!1,animateduration:"slow",animateeasing:"swing",aspectratio:!1,autohide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxheight:null,maxwidth:null,minheight:10,minwidth:10,zindex:90,resize:null,start:null,stop:null},_num:function(t){return parsefloat(t)||0},_isnumber:function(t){return!isnan(parsefloat(t))},_hasscroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var s=i&&"left"===i?"scrollleft":"scrolltop",n=!1;return e[s]>0?!0:(e[s]=1,n=e[s]>0,e[s]=0,n)},_create:function(){var e,i=this.options,s=this;this._addclass("ui-resizable"),t.extend(this,{_aspectratio:!!i.aspectratio,aspectratio:i.aspectratio,originalelement:this.element,_proportionallyresizeelements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodename.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("
").css({position:this.element.css("position"),width:this.element.outerwidth(),height:this.element.outerheight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementiswrapper=!0,e={margintop:this.originalelement.css("margintop"),marginright:this.originalelement.css("marginright"),marginbottom:this.originalelement.css("marginbottom"),marginleft:this.originalelement.css("marginleft")},this.element.css(e),this.originalelement.css("margin",0),this.originalresizestyle=this.originalelement.css("resize"),this.originalelement.css("resize","none"),this._proportionallyresizeelements.push(this.originalelement.css({position:"static",zoom:1,display:"block"})),this.originalelement.css(e),this._proportionallyresize()),this._setuphandles(),i.autohide&&t(this.element).on("mouseenter",function(){i.disabled||(s._removeclass("ui-resizable-autohide"),s._handles.show())}).on("mouseleave",function(){i.disabled||s.resizing||(s._addclass("ui-resizable-autohide"),s._handles.hide())}),this._mouseinit()},_destroy:function(){this._mousedestroy();var e,i=function(e){t(e).removedata("resizable").removedata("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()};return this.elementiswrapper&&(i(this.element),e=this.element,this.originalelement.css({position:e.css("position"),width:e.outerwidth(),height:e.outerheight(),top:e.css("top"),left:e.css("left")}).insertafter(e),e.remove()),this.originalelement.css("resize",this.originalresizestyle),i(this.originalelement),this},_setoption:function(t,e){switch(this._super(t,e),t){case"handles":this._removehandles(),this._setuphandles();break;default:}},_setuphandles:function(){var e,i,s,n,o,a=this.options,r=this;if(this.handles=a.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=t(),this.handles.constructor===string)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),s=this.handles.split(","),this.handles={},i=0;s.length>i;i++)e=t.trim(s[i]),n="ui-resizable-"+e,o=t("
"),this._addclass(o,"ui-resizable-handle "+n),o.css({zindex:a.zindex}),this.handles[e]=".ui-resizable-"+e,this.element.append(o);this._renderaxis=function(e){var i,s,n,o;e=e||this.element;for(i in this.handles)this.handles[i].constructor===string?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodetype)&&(this.handles[i]=t(this.handles[i]),this._on(this.handles[i],{mousedown:r._mousedown})),this.elementiswrapper&&this.originalelement[0].nodename.match(/^(textarea|input|select|button)$/i)&&(s=t(this.handles[i],this.element),o=/sw|ne|nw|se|n|s/.test(i)?s.outerheight():s.outerwidth(),n=["padding",/ne|nw|n/.test(i)?"top":/se|sw|s/.test(i)?"bottom":/^e$/.test(i)?"right":"left"].join(""),e.css(n,o),this._proportionallyresize()),this._handles=this._handles.add(this.handles[i])},this._renderaxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableselection(),this._handles.on("mouseover",function(){r.resizing||(this.classname&&(o=this.classname.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),r.axis=o&&o[1]?o[1]:"se")}),a.autohide&&(this._handles.hide(),this._addclass("ui-resizable-autohide"))},_removehandles:function(){this._handles.remove()},_mousecapture:function(e){var i,s,n=!1;for(i in this.handles)s=t(this.handles[i])[0],(s===e.target||t.contains(s,e.target))&&(n=!0);return!this.options.disabled&&n},_mousestart:function(e){var i,s,n,o=this.options,a=this.element;return this.resizing=!0,this._renderproxy(),i=this._num(this.helper.css("left")),s=this._num(this.helper.css("top")),o.containment&&(i+=t(o.containment).scrollleft()||0,s+=t(o.containment).scrolltop()||0),this.offset=this.helper.offset(),this.position={left:i,top:s},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:a.width(),height:a.height()},this.originalsize=this._helper?{width:a.outerwidth(),height:a.outerheight()}:{width:a.width(),height:a.height()},this.sizediff={width:a.outerwidth()-a.width(),height:a.outerheight()-a.height()},this.originalposition={left:i,top:s},this.originalmouseposition={left:e.pagex,top:e.pagey},this.aspectratio="number"==typeof o.aspectratio?o.aspectratio:this.originalsize.width/this.originalsize.height||1,n=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===n?this.axis+"-resize":n),this._addclass("ui-resizable-resizing"),this._propagate("start",e),!0},_mousedrag:function(e){var i,s,n=this.originalmouseposition,o=this.axis,a=e.pagex-n.left||0,r=e.pagey-n.top||0,h=this._change[o];return this._updateprevproperties(),h?(i=h.apply(this,[e,a,r]),this._updatevirtualboundaries(e.shiftkey),(this._aspectratio||e.shiftkey)&&(i=this._updateratio(i,e)),i=this._respectsize(i,e),this._updatecache(i),this._propagate("resize",e),s=this._applychanges(),!this._helper&&this._proportionallyresizeelements.length&&this._proportionallyresize(),t.isemptyobject(s)||(this._updateprevproperties(),this._trigger("resize",e,this.ui()),this._applychanges()),!1):!1},_mousestop:function(e){this.resizing=!1;var i,s,n,o,a,r,h,l=this.options,c=this;return this._helper&&(i=this._proportionallyresizeelements,s=i.length&&/textarea/i.test(i[0].nodename),n=s&&this._hasscroll(i[0],"left")?0:c.sizediff.height,o=s?0:c.sizediff.width,a={width:c.helper.width()-o,height:c.helper.height()-n},r=parsefloat(c.element.css("left"))+(c.position.left-c.originalposition.left)||null,h=parsefloat(c.element.css("top"))+(c.position.top-c.originalposition.top)||null,l.animate||this.element.css(t.extend(a,{top:h,left:r})),c.helper.height(c.size.height),c.helper.width(c.size.width),this._helper&&!l.animate&&this._proportionallyresize()),t("body").css("cursor","auto"),this._removeclass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updateprevproperties:function(){this.prevposition={top:this.position.top,left:this.position.left},this.prevsize={width:this.size.width,height:this.size.height}},_applychanges:function(){var t={};return this.position.top!==this.prevposition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevposition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevsize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevsize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updatevirtualboundaries:function(t){var e,i,s,n,o,a=this.options;o={minwidth:this._isnumber(a.minwidth)?a.minwidth:0,maxwidth:this._isnumber(a.maxwidth)?a.maxwidth:1/0,minheight:this._isnumber(a.minheight)?a.minheight:0,maxheight:this._isnumber(a.maxheight)?a.maxheight:1/0},(this._aspectratio||t)&&(e=o.minheight*this.aspectratio,s=o.minwidth/this.aspectratio,i=o.maxheight*this.aspectratio,n=o.maxwidth/this.aspectratio,e>o.minwidth&&(o.minwidth=e),s>o.minheight&&(o.minheight=s),o.maxwidth>i&&(o.maxwidth=i),o.maxheight>n&&(o.maxheight=n)),this._vboundaries=o},_updatecache:function(t){this.offset=this.helper.offset(),this._isnumber(t.left)&&(this.position.left=t.left),this._isnumber(t.top)&&(this.position.top=t.top),this._isnumber(t.height)&&(this.size.height=t.height),this._isnumber(t.width)&&(this.size.width=t.width)},_updateratio:function(t){var e=this.position,i=this.size,s=this.axis;return this._isnumber(t.height)?t.width=t.height*this.aspectratio:this._isnumber(t.width)&&(t.height=t.width/this.aspectratio),"sw"===s&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===s&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectsize:function(t){var e=this._vboundaries,i=this.axis,s=this._isnumber(t.width)&&e.maxwidth&&e.maxwidtht.width,a=this._isnumber(t.height)&&e.minheight&&e.minheight>t.height,r=this.originalposition.left+this.originalsize.width,h=this.originalposition.top+this.originalsize.height,l=/sw|nw|w/.test(i),c=/nw|ne|n/.test(i);return o&&(t.width=e.minwidth),a&&(t.height=e.minheight),s&&(t.width=e.maxwidth),n&&(t.height=e.maxheight),o&&l&&(t.left=r-e.minwidth),s&&l&&(t.left=r-e.maxwidth),a&&c&&(t.top=h-e.minheight),n&&c&&(t.top=h-e.maxheight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getpaddingplusborderdimensions:function(t){for(var e=0,i=[],s=[t.css("bordertopwidth"),t.css("borderrightwidth"),t.css("borderbottomwidth"),t.css("borderleftwidth")],n=[t.css("paddingtop"),t.css("paddingright"),t.css("paddingbottom"),t.css("paddingleft")];4>e;e++)i[e]=parsefloat(s[e])||0,i[e]+=parsefloat(n[e])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyresize:function(){if(this._proportionallyresizeelements.length)for(var t,e=0,i=this.helper||this.element;this._proportionallyresizeelements.length>e;e++)t=this._proportionallyresizeelements[e],this.outerdimensions||(this.outerdimensions=this._getpaddingplusborderdimensions(t)),t.css({height:i.height()-this.outerdimensions.height||0,width:i.width()-this.outerdimensions.width||0})},_renderproxy:function(){var e=this.element,i=this.options;this.elementoffset=e.offset(),this._helper?(this.helper=this.helper||t("
"),this._addclass(this.helper,this._helper),this.helper.css({width:this.element.outerwidth(),height:this.element.outerheight(),position:"absolute",left:this.elementoffset.left+"px",top:this.elementoffset.top+"px",zindex:++i.zindex}),this.helper.appendto("body").disableselection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalsize.width+e}},w:function(t,e){var i=this.originalsize,s=this.originalposition;return{left:s.left+e,width:i.width-e}},n:function(t,e,i){var s=this.originalsize,n=this.originalposition;return{top:n.top+i,height:s.height-i}},s:function(t,e,i){return{height:this.originalsize.height+i}},se:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},sw:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,s]))},ne:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},nw:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,s]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalelement:this.originalelement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalsize:this.originalsize,originalposition:this.originalposition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var i=t(this).resizable("instance"),s=i.options,n=i._proportionallyresizeelements,o=n.length&&/textarea/i.test(n[0].nodename),a=o&&i._hasscroll(n[0],"left")?0:i.sizediff.height,r=o?0:i.sizediff.width,h={width:i.size.width-r,height:i.size.height-a},l=parsefloat(i.element.css("left"))+(i.position.left-i.originalposition.left)||null,c=parsefloat(i.element.css("top"))+(i.position.top-i.originalposition.top)||null;i.element.animate(t.extend(h,c&&l?{top:c,left:l}:{}),{duration:s.animateduration,easing:s.animateeasing,step:function(){var s={width:parsefloat(i.element.css("width")),height:parsefloat(i.element.css("height")),top:parsefloat(i.element.css("top")),left:parsefloat(i.element.css("left"))};n&&n.length&&t(n[0]).css({width:s.width,height:s.height}),i._updatecache(s),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,i,s,n,o,a,r,h=t(this).resizable("instance"),l=h.options,c=h.element,u=l.containment,d=u instanceof t?u.get(0):/parent/.test(u)?c.parent().get(0):u;d&&(h.containerelement=t(d),/document/.test(u)||u===document?(h.containeroffset={left:0,top:0},h.containerposition={left:0,top:0},h.parentdata={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentnode.scrollheight}):(e=t(d),i=[],t(["top","right","left","bottom"]).each(function(t,s){i[t]=h._num(e.css("padding"+s))}),h.containeroffset=e.offset(),h.containerposition=e.position(),h.containersize={height:e.innerheight()-i[3],width:e.innerwidth()-i[1]},s=h.containeroffset,n=h.containersize.height,o=h.containersize.width,a=h._hasscroll(d,"left")?d.scrollwidth:o,r=h._hasscroll(d)?d.scrollheight:n,h.parentdata={element:d,left:s.left,top:s.top,width:a,height:r}))},resize:function(e){var i,s,n,o,a=t(this).resizable("instance"),r=a.options,h=a.containeroffset,l=a.position,c=a._aspectratio||e.shiftkey,u={top:0,left:0},d=a.containerelement,p=!0;d[0]!==document&&/static/.test(d.css("position"))&&(u=h),l.left<(a._helper?h.left:0)&&(a.size.width=a.size.width+(a._helper?a.position.left-h.left:a.position.left-u.left),c&&(a.size.height=a.size.width/a.aspectratio,p=!1),a.position.left=r.helper?h.left:0),l.top<(a._helper?h.top:0)&&(a.size.height=a.size.height+(a._helper?a.position.top-h.top:a.position.top),c&&(a.size.width=a.size.height*a.aspectratio,p=!1),a.position.top=a._helper?h.top:0),n=a.containerelement.get(0)===a.element.parent().get(0),o=/relative|absolute/.test(a.containerelement.css("position")),n&&o?(a.offset.left=a.parentdata.left+a.position.left,a.offset.top=a.parentdata.top+a.position.top):(a.offset.left=a.element.offset().left,a.offset.top=a.element.offset().top),i=math.abs(a.sizediff.width+(a._helper?a.offset.left-u.left:a.offset.left-h.left)),s=math.abs(a.sizediff.height+(a._helper?a.offset.top-u.top:a.offset.top-h.top)),i+a.size.width>=a.parentdata.width&&(a.size.width=a.parentdata.width-i,c&&(a.size.height=a.size.width/a.aspectratio,p=!1)),s+a.size.height>=a.parentdata.height&&(a.size.height=a.parentdata.height-s,c&&(a.size.width=a.size.height*a.aspectratio,p=!1)),p||(a.position.left=a.prevposition.left,a.position.top=a.prevposition.top,a.size.width=a.prevsize.width,a.size.height=a.prevsize.height)},stop:function(){var e=t(this).resizable("instance"),i=e.options,s=e.containeroffset,n=e.containerposition,o=e.containerelement,a=t(e.helper),r=a.offset(),h=a.outerwidth()-e.sizediff.width,l=a.outerheight()-e.sizediff.height;e._helper&&!i.animate&&/relative/.test(o.css("position"))&&t(this).css({left:r.left-n.left-s.left,width:h,height:l}),e._helper&&!i.animate&&/static/.test(o.css("position"))&&t(this).css({left:r.left-n.left-s.left,width:h,height:l})}}),t.ui.plugin.add("resizable","alsoresize",{start:function(){var e=t(this).resizable("instance"),i=e.options;t(i.alsoresize).each(function(){var e=t(this);e.data("ui-resizable-alsoresize",{width:parsefloat(e.width()),height:parsefloat(e.height()),left:parsefloat(e.css("left")),top:parsefloat(e.css("top"))})})},resize:function(e,i){var s=t(this).resizable("instance"),n=s.options,o=s.originalsize,a=s.originalposition,r={height:s.size.height-o.height||0,width:s.size.width-o.width||0,top:s.position.top-a.top||0,left:s.position.left-a.left||0};t(n.alsoresize).each(function(){var e=t(this),s=t(this).data("ui-resizable-alsoresize"),n={},o=e.parents(i.originalelement[0]).length?["width","height"]:["width","height","top","left"];t.each(o,function(t,e){var i=(s[e]||0)+(r[e]||0);i&&i>=0&&(n[e]=i||null)}),e.css(n)})},stop:function(){t(this).removedata("ui-resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),i=e.size;e.ghost=e.originalelement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}),e._addclass(e.ghost,"ui-resizable-ghost"),t.uibackcompat!==!1&&"string"==typeof e.options.ghost&&e.ghost.addclass(this.options.ghost),e.ghost.appendto(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removechild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,i=t(this).resizable("instance"),s=i.options,n=i.size,o=i.originalsize,a=i.originalposition,r=i.axis,h="number"==typeof s.grid?[s.grid,s.grid]:s.grid,l=h[0]||1,c=h[1]||1,u=math.round((n.width-o.width)/l)*l,d=math.round((n.height-o.height)/c)*c,p=o.width+u,f=o.height+d,g=s.maxwidth&&p>s.maxwidth,m=s.maxheight&&f>s.maxheight,_=s.minwidth&&s.minwidth>p,v=s.minheight&&s.minheight>f;s.grid=h,_&&(p+=l),v&&(f+=c),g&&(p-=l),m&&(f-=c),/^(se|s|e)$/.test(r)?(i.size.width=p,i.size.height=f):/^(ne)$/.test(r)?(i.size.width=p,i.size.height=f,i.position.top=a.top-d):/^(sw)$/.test(r)?(i.size.width=p,i.size.height=f,i.position.left=a.left-u):((0>=f-c||0>=p-l)&&(e=i._getpaddingplusborderdimensions(this)),f-c>0?(i.size.height=f,i.position.top=a.top-d):(f=c-e.height,i.size.height=f,i.position.top=a.top+o.height-f),p-l>0?(i.size.width=p,i.position.left=a.left-u):(p=l-e.width,i.size.width=p,i.position.left=a.left+o.width-p))}}),t.ui.resizable,t.widget("ui.dialog",{version:"1.12.1",options:{appendto:"body",autoopen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeonescape:!0,closetext:"close",draggable:!0,hide:null,height:"auto",maxheight:null,maxwidth:null,minheight:150,minwidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var i=t(this).css(e).offset().top;0>i&&t(this).css("top",e.top-i)}},resizable:!0,show:null,title:null,width:300,beforeclose:null,close:null,drag:null,dragstart:null,dragstop:null,focus:null,open:null,resize:null,resizestart:null,resizestop:null},sizerelatedoptions:{buttons:!0,height:!0,maxheight:!0,maxwidth:!0,minheight:!0,minwidth:!0,width:!0},resizablerelatedoptions:{maxheight:!0,maxwidth:!0,minheight:!0,minwidth:!0},_create:function(){this.originalcss={display:this.element[0].style.display,width:this.element[0].style.width,minheight:this.element[0].style.minheight,maxheight:this.element[0].style.maxheight,height:this.element[0].style.height},this.originalposition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originaltitle=this.element.attr("title"),null==this.options.title&&null!=this.originaltitle&&(this.options.title=this.originaltitle),this.options.disabled&&(this.options.disabled=!1),this._createwrapper(),this.element.show().removeattr("title").appendto(this.uidialog),this._addclass("ui-dialog-content","ui-widget-content"),this._createtitlebar(),this._createbuttonpane(),this.options.draggable&&t.fn.draggable&&this._makedraggable(),this.options.resizable&&t.fn.resizable&&this._makeresizable(),this._isopen=!1,this._trackfocus()},_init:function(){this.options.autoopen&&this.open()},_appendto:function(){var e=this.options.appendto;return e&&(e.jquery||e.nodetype)?t(e):this.document.find(e||"body").eq(0)},_destroy:function(){var t,e=this.originalposition;this._untrackinstance(),this._destroyoverlay(),this.element.removeuniqueid().css(this.originalcss).detach(),this.uidialog.remove(),this.originaltitle&&this.element.attr("title",this.originaltitle),t=e.parent.children().eq(e.index),t.length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uidialog },disable:t.noop,enable:t.noop,close:function(e){var i=this;this._isopen&&this._trigger("beforeclose",e)!==!1&&(this._isopen=!1,this._focusedelement=null,this._destroyoverlay(),this._untrackinstance(),this.opener.filter(":focusable").trigger("focus").length||t.ui.safeblur(t.ui.safeactiveelement(this.document[0])),this._hide(this.uidialog,this.options.hide,function(){i._trigger("close",e)}))},isopen:function(){return this._isopen},movetotop:function(){this._movetotop()},_movetotop:function(e,i){var s=!1,n=this.uidialog.siblings(".ui-front:visible").map(function(){return+t(this).css("z-index")}).get(),o=math.max.apply(null,n);return o>=+this.uidialog.css("z-index")&&(this.uidialog.css("z-index",o+1),s=!0),s&&!i&&this._trigger("focus",e),s},open:function(){var e=this;return this._isopen?(this._movetotop()&&this._focustabbable(),void 0):(this._isopen=!0,this.opener=t(t.ui.safeactiveelement(this.document[0])),this._size(),this._position(),this._createoverlay(),this._movetotop(null,!0),this.overlay&&this.overlay.css("z-index",this.uidialog.css("z-index")-1),this._show(this.uidialog,this.options.show,function(){e._focustabbable(),e._trigger("focus")}),this._makefocustarget(),this._trigger("open"),void 0)},_focustabbable:function(){var t=this._focusedelement;t||(t=this.element.find("[autofocus]")),t.length||(t=this.element.find(":tabbable")),t.length||(t=this.uidialogbuttonpane.find(":tabbable")),t.length||(t=this.uidialogtitlebarclose.filter(":tabbable")),t.length||(t=this.uidialog),t.eq(0).trigger("focus")},_keepfocus:function(e){function i(){var e=t.ui.safeactiveelement(this.document[0]),i=this.uidialog[0]===e||t.contains(this.uidialog[0],e);i||this._focustabbable()}e.preventdefault(),i.call(this),this._delay(i)},_createwrapper:function(){this.uidialog=t("
").hide().attr({tabindex:-1,role:"dialog"}).appendto(this._appendto()),this._addclass(this.uidialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uidialog,{keydown:function(e){if(this.options.closeonescape&&!e.isdefaultprevented()&&e.keycode&&e.keycode===t.ui.keycode.escape)return e.preventdefault(),this.close(e),void 0;if(e.keycode===t.ui.keycode.tab&&!e.isdefaultprevented()){var i=this.uidialog.find(":tabbable"),s=i.filter(":first"),n=i.filter(":last");e.target!==n[0]&&e.target!==this.uidialog[0]||e.shiftkey?e.target!==s[0]&&e.target!==this.uidialog[0]||!e.shiftkey||(this._delay(function(){n.trigger("focus")}),e.preventdefault()):(this._delay(function(){s.trigger("focus")}),e.preventdefault())}},mousedown:function(t){this._movetotop(t)&&this._focustabbable()}}),this.element.find("[aria-describedby]").length||this.uidialog.attr({"aria-describedby":this.element.uniqueid().attr("id")})},_createtitlebar:function(){var e;this.uidialogtitlebar=t("
"),this._addclass(this.uidialogtitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uidialogtitlebar,{mousedown:function(e){t(e.target).closest(".ui-dialog-titlebar-close")||this.uidialog.trigger("focus")}}),this.uidialogtitlebarclose=t("").button({label:t("").text(this.options.closetext).html(),icon:"ui-icon-closethick",showlabel:!1}).appendto(this.uidialogtitlebar),this._addclass(this.uidialogtitlebarclose,"ui-dialog-titlebar-close"),this._on(this.uidialogtitlebarclose,{click:function(t){t.preventdefault(),this.close(t)}}),e=t("").uniqueid().prependto(this.uidialogtitlebar),this._addclass(e,"ui-dialog-title"),this._title(e),this.uidialogtitlebar.prependto(this.uidialog),this.uidialog.attr({"aria-labelledby":e.attr("id")})},_title:function(t){this.options.title?t.text(this.options.title):t.html(" ")},_createbuttonpane:function(){this.uidialogbuttonpane=t("
"),this._addclass(this.uidialogbuttonpane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uibuttonset=t("
").appendto(this.uidialogbuttonpane),this._addclass(this.uibuttonset,"ui-dialog-buttonset"),this._createbuttons()},_createbuttons:function(){var e=this,i=this.options.buttons;return this.uidialogbuttonpane.remove(),this.uibuttonset.empty(),t.isemptyobject(i)||t.isarray(i)&&!i.length?(this._removeclass(this.uidialog,"ui-dialog-buttons"),void 0):(t.each(i,function(i,s){var n,o;s=t.isfunction(s)?{click:s,text:i}:s,s=t.extend({type:"button"},s),n=s.click,o={icon:s.icon,iconposition:s.iconposition,showlabel:s.showlabel,icons:s.icons,text:s.text},delete s.click,delete s.icon,delete s.iconposition,delete s.showlabel,delete s.icons,"boolean"==typeof s.text&&delete s.text,t("",s).button(o).appendto(e.uibuttonset).on("click",function(){n.apply(e.element[0],arguments)})}),this._addclass(this.uidialog,"ui-dialog-buttons"),this.uidialogbuttonpane.appendto(this.uidialog),void 0)},_makedraggable:function(){function e(t){return{position:t.position,offset:t.offset}}var i=this,s=this.options;this.uidialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(s,n){i._addclass(t(this),"ui-dialog-dragging"),i._blockframes(),i._trigger("dragstart",s,e(n))},drag:function(t,s){i._trigger("drag",t,e(s))},stop:function(n,o){var a=o.offset.left-i.document.scrollleft(),r=o.offset.top-i.document.scrolltop();s.position={my:"left top",at:"left"+(a>=0?"+":"")+a+" "+"top"+(r>=0?"+":"")+r,of:i.window},i._removeclass(t(this),"ui-dialog-dragging"),i._unblockframes(),i._trigger("dragstop",n,e(o))}})},_makeresizable:function(){function e(t){return{originalposition:t.originalposition,originalsize:t.originalsize,position:t.position,size:t.size}}var i=this,s=this.options,n=s.resizable,o=this.uidialog.css("position"),a="string"==typeof n?n:"n,e,s,w,se,sw,ne,nw";this.uidialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoresize:this.element,maxwidth:s.maxwidth,maxheight:s.maxheight,minwidth:s.minwidth,minheight:this._minheight(),handles:a,start:function(s,n){i._addclass(t(this),"ui-dialog-resizing"),i._blockframes(),i._trigger("resizestart",s,e(n))},resize:function(t,s){i._trigger("resize",t,e(s))},stop:function(n,o){var a=i.uidialog.offset(),r=a.left-i.document.scrollleft(),h=a.top-i.document.scrolltop();s.height=i.uidialog.height(),s.width=i.uidialog.width(),s.position={my:"left top",at:"left"+(r>=0?"+":"")+r+" "+"top"+(h>=0?"+":"")+h,of:i.window},i._removeclass(t(this),"ui-dialog-resizing"),i._unblockframes(),i._trigger("resizestop",n,e(o))}}).css("position",o)},_trackfocus:function(){this._on(this.widget(),{focusin:function(e){this._makefocustarget(),this._focusedelement=t(e.target)}})},_makefocustarget:function(){this._untrackinstance(),this._trackinginstances().unshift(this)},_untrackinstance:function(){var e=this._trackinginstances(),i=t.inarray(this,e);-1!==i&&e.splice(i,1)},_trackinginstances:function(){var t=this.document.data("ui-dialog-instances");return t||(t=[],this.document.data("ui-dialog-instances",t)),t},_minheight:function(){var t=this.options;return"auto"===t.height?t.minheight:math.min(t.minheight,t.height)},_position:function(){var t=this.uidialog.is(":visible");t||this.uidialog.show(),this.uidialog.position(this.options.position),t||this.uidialog.hide()},_setoptions:function(e){var i=this,s=!1,n={};t.each(e,function(t,e){i._setoption(t,e),t in i.sizerelatedoptions&&(s=!0),t in i.resizablerelatedoptions&&(n[t]=e)}),s&&(this._size(),this._position()),this.uidialog.is(":data(ui-resizable)")&&this.uidialog.resizable("option",n)},_setoption:function(e,i){var s,n,o=this.uidialog;"disabled"!==e&&(this._super(e,i),"appendto"===e&&this.uidialog.appendto(this._appendto()),"buttons"===e&&this._createbuttons(),"closetext"===e&&this.uidialogtitlebarclose.button({label:t("").text(""+this.options.closetext).html()}),"draggable"===e&&(s=o.is(":data(ui-draggable)"),s&&!i&&o.draggable("destroy"),!s&&i&&this._makedraggable()),"position"===e&&this._position(),"resizable"===e&&(n=o.is(":data(ui-resizable)"),n&&!i&&o.resizable("destroy"),n&&"string"==typeof i&&o.resizable("option","handles",i),n||i===!1||this._makeresizable()),"title"===e&&this._title(this.uidialogtitlebar.find(".ui-dialog-title")))},_size:function(){var t,e,i,s=this.options;this.element.show().css({width:"auto",minheight:0,maxheight:"none",height:0}),s.minwidth>s.width&&(s.width=s.minwidth),t=this.uidialog.css({height:"auto",width:s.width}).outerheight(),e=math.max(0,s.minheight-t),i="number"==typeof s.maxheight?math.max(0,s.maxheight-t):"none","auto"===s.height?this.element.css({minheight:e,maxheight:i,height:"auto"}):this.element.height(math.max(0,s.height-t)),this.uidialog.is(":data(ui-resizable)")&&this.uidialog.resizable("option","minheight",this._minheight())},_blockframes:function(){this.iframeblocks=this.document.find("iframe").map(function(){var e=t(this);return t("
").css({position:"absolute",width:e.outerwidth(),height:e.outerheight()}).appendto(e.parent()).offset(e.offset())[0]})},_unblockframes:function(){this.iframeblocks&&(this.iframeblocks.remove(),delete this.iframeblocks)},_allowinteraction:function(e){return t(e.target).closest(".ui-dialog").length?!0:!!t(e.target).closest(".ui-datepicker").length},_createoverlay:function(){if(this.options.modal){var e=!0;this._delay(function(){e=!1}),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(t){e||this._allowinteraction(t)||(t.preventdefault(),this._trackinginstances()[0]._focustabbable())}}),this.overlay=t("
").appendto(this._appendto()),this._addclass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepfocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyoverlay:function(){if(this.options.modal&&this.overlay){var t=this.document.data("ui-dialog-overlays")-1;t?this.document.data("ui-dialog-overlays",t):(this._off(this.document,"focusin"),this.document.removedata("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),t.uibackcompat!==!1&&t.widget("ui.dialog",t.ui.dialog,{options:{dialogclass:""},_createwrapper:function(){this._super(),this.uidialog.addclass(this.options.dialogclass)},_setoption:function(t,e){"dialogclass"===t&&this.uidialog.removeclass(this.options.dialogclass).addclass(e),this._superapply(arguments)}}),t.ui.dialog,t.widget("ui.droppable",{version:"1.12.1",widgeteventprefix:"drop",options:{accept:"*",addclasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,i=this.options,s=i.accept;this.isover=!1,this.isout=!0,this.accept=t.isfunction(s)?s:function(t){return t.is(s)},this.proportions=function(){return arguments.length?(e=arguments[0],void 0):e?e:e={width:this.element[0].offsetwidth,height:this.element[0].offsetheight}},this._addtomanager(i.scope),i.addclasses&&this._addclass("ui-droppable")},_addtomanager:function(e){t.ui.ddmanager.droppables[e]=t.ui.ddmanager.droppables[e]||[],t.ui.ddmanager.droppables[e].push(this)},_splice:function(t){for(var e=0;t.length>e;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var e=t.ui.ddmanager.droppables[this.options.scope];this._splice(e)},_setoption:function(e,i){if("accept"===e)this.accept=t.isfunction(i)?i:function(t){return t.is(i)};else if("scope"===e){var s=t.ui.ddmanager.droppables[this.options.scope];this._splice(s),this._addtomanager(i)}this._super(e,i)},_activate:function(e){var i=t.ui.ddmanager.current;this._addactiveclass(),i&&this._trigger("activate",e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this._removeactiveclass(),i&&this._trigger("deactivate",e,this.ui(i))},_over:function(e){var i=t.ui.ddmanager.current;i&&(i.currentitem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentitem||i.element)&&(this._addhoverclass(),this._trigger("over",e,this.ui(i)))},_out:function(e){var i=t.ui.ddmanager.current;i&&(i.currentitem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentitem||i.element)&&(this._removehoverclass(),this._trigger("out",e,this.ui(i)))},_drop:function(e,i){var s=i||t.ui.ddmanager.current,n=!1;return s&&(s.currentitem||s.element)[0]!==this.element[0]?(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var i=t(this).droppable("instance");return i.options.greedy&&!i.options.disabled&&i.options.scope===s.options.scope&&i.accept.call(i.element[0],s.currentitem||s.element)&&v(s,t.extend(i,{offset:i.element.offset()}),i.options.tolerance,e)?(n=!0,!1):void 0}),n?!1:this.accept.call(this.element[0],s.currentitem||s.element)?(this._removeactiveclass(),this._removehoverclass(),this._trigger("drop",e,this.ui(s)),this.element):!1):!1},ui:function(t){return{draggable:t.currentitem||t.element,helper:t.helper,position:t.position,offset:t.positionabs}},_addhoverclass:function(){this._addclass("ui-droppable-hover")},_removehoverclass:function(){this._removeclass("ui-droppable-hover")},_addactiveclass:function(){this._addclass("ui-droppable-active")},_removeactiveclass:function(){this._removeclass("ui-droppable-active")}});var v=t.ui.intersect=function(){function t(t,e,i){return t>=e&&e+i>t}return function(e,i,s,n){if(!i.offset)return!1;var o=(e.positionabs||e.position.absolute).left+e.margins.left,a=(e.positionabs||e.position.absolute).top+e.margins.top,r=o+e.helperproportions.width,h=a+e.helperproportions.height,l=i.offset.left,c=i.offset.top,u=l+i.proportions().width,d=c+i.proportions().height;switch(s){case"fit":return o>=l&&u>=r&&a>=c&&d>=h;case"intersect":return o+e.helperproportions.width/2>l&&u>r-e.helperproportions.width/2&&a+e.helperproportions.height/2>c&&d>h-e.helperproportions.height/2;case"pointer":return t(n.pagey,c,i.proportions().height)&&t(n.pagex,l,i.proportions().width);case"touch":return(a>=c&&d>=a||h>=c&&d>=h||c>a&&h>d)&&(o>=l&&u>=o||r>=l&&u>=r||l>o&&r>u);default:return!1}}}();t.ui.ddmanager={current:null,droppables:{"default":[]},prepareoffsets:function(e,i){var s,n,o=t.ui.ddmanager.droppables[e.options.scope]||[],a=i?i.type:null,r=(e.currentitem||e.element).find(":data(ui-droppable)").addback();t:for(s=0;o.length>s;s++)if(!(o[s].options.disabled||e&&!o[s].accept.call(o[s].element[0],e.currentitem||e.element))){for(n=0;r.length>n;n++)if(r[n]===o[s].element[0]){o[s].proportions().height=0;continue t}o[s].visible="none"!==o[s].element.css("display"),o[s].visible&&("mousedown"===a&&o[s]._activate.call(o[s],i),o[s].offset=o[s].element.offset(),o[s].proportions({width:o[s].element[0].offsetwidth,height:o[s].element[0].offsetheight}))}},drop:function(e,i){var s=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&v(e,this,this.options.tolerance,i)&&(s=this._drop.call(this,i)||s),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentitem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))}),s},dragstart:function(e,i){e.element.parentsuntil("body").on("scroll.droppable",function(){e.options.refreshpositions||t.ui.ddmanager.prepareoffsets(e,i)})},drag:function(e,i){e.options.refreshpositions&&t.ui.ddmanager.prepareoffsets(e,i),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){if(!this.options.disabled&&!this.greedychild&&this.visible){var s,n,o,a=v(e,this,this.options.tolerance,i),r=!a&&this.isover?"isout":a&&!this.isover?"isover":null;r&&(this.options.greedy&&(n=this.options.scope,o=this.element.parents(":data(ui-droppable)").filter(function(){return t(this).droppable("instance").options.scope===n}),o.length&&(s=t(o[0]).droppable("instance"),s.greedychild="isover"===r)),s&&"isover"===r&&(s.isover=!1,s.isout=!0,s._out.call(s,i)),this[r]=!0,this["isout"===r?"isover":"isout"]=!1,this["isover"===r?"_over":"_out"].call(this,i),s&&"isout"===r&&(s.isout=!1,s.isover=!0,s._over.call(s,i)))}})},dragstop:function(e,i){e.element.parentsuntil("body").off("scroll.droppable"),e.options.refreshpositions||t.ui.ddmanager.prepareoffsets(e,i)}},t.uibackcompat!==!1&&t.widget("ui.droppable",t.ui.droppable,{options:{hoverclass:!1,activeclass:!1},_addactiveclass:function(){this._super(),this.options.activeclass&&this.element.addclass(this.options.activeclass)},_removeactiveclass:function(){this._super(),this.options.activeclass&&this.element.removeclass(this.options.activeclass)},_addhoverclass:function(){this._super(),this.options.hoverclass&&this.element.addclass(this.options.hoverclass)},_removehoverclass:function(){this._super(),this.options.hoverclass&&this.element.removeclass(this.options.hoverclass)}}),t.ui.droppable,t.widget("ui.progressbar",{version:"1.12.1",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldvalue=this.options.value=this._constrainedvalue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addclass("ui-progressbar","ui-widget ui-widget-content"),this.valuediv=t("
").appendto(this.element),this._addclass(this.valuediv,"ui-progressbar-value","ui-widget-header"),this._refreshvalue()},_destroy:function(){this.element.removeattr("role aria-valuemin aria-valuemax aria-valuenow"),this.valuediv.remove()},value:function(t){return void 0===t?this.options.value:(this.options.value=this._constrainedvalue(t),this._refreshvalue(),void 0)},_constrainedvalue:function(t){return void 0===t&&(t=this.options.value),this.indeterminate=t===!1,"number"!=typeof t&&(t=0),this.indeterminate?!1:math.min(this.options.max,math.max(this.min,t))},_setoptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedvalue(e),this._refreshvalue()},_setoption:function(t,e){"max"===t&&(e=math.max(this.min,e)),this._super(t,e)},_setoptiondisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleclass(null,"ui-state-disabled",!!t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshvalue:function(){var e=this.options.value,i=this._percentage();this.valuediv.toggle(this.indeterminate||e>this.min).width(i.tofixed(0)+"%"),this._toggleclass(this.valuediv,"ui-progressbar-complete",null,e===this.options.max)._toggleclass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeattr("aria-valuenow"),this.overlaydiv||(this.overlaydiv=t("
").appendto(this.valuediv),this._addclass(this.overlaydiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":e}),this.overlaydiv&&(this.overlaydiv.remove(),this.overlaydiv=null)),this.oldvalue!==e&&(this.oldvalue=e,this._trigger("change")),e===this.options.max&&this._trigger("complete")}}),t.widget("ui.selectable",t.ui.mouse,{version:"1.12.1",options:{appendto:"body",autorefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var e=this;this._addclass("ui-selectable"),this.dragged=!1,this.refresh=function(){e.elementpos=t(e.element[0]).offset(),e.selectees=t(e.options.filter,e.element[0]),e._addclass(e.selectees,"ui-selectee"),e.selectees.each(function(){var i=t(this),s=i.offset(),n={left:s.left-e.elementpos.left,top:s.top-e.elementpos.top};t.data(this,"selectable-item",{element:this,$element:i,left:n.left,top:n.top,right:n.left+i.outerwidth(),bottom:n.top+i.outerheight(),startselected:!1,selected:i.hasclass("ui-selected"),selecting:i.hasclass("ui-selecting"),unselecting:i.hasclass("ui-unselecting")})})},this.refresh(),this._mouseinit(),this.helper=t("
"),this._addclass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removedata("selectable-item"),this._mousedestroy()},_mousestart:function(e){var i=this,s=this.options;this.opos=[e.pagex,e.pagey],this.elementpos=t(this.element[0]).offset(),this.options.disabled||(this.selectees=t(s.filter,this.element[0]),this._trigger("start",e),t(s.appendto).append(this.helper),this.helper.css({left:e.pagex,top:e.pagey,width:0,height:0}),s.autorefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var s=t.data(this,"selectable-item");s.startselected=!0,e.metakey||e.ctrlkey||(i._removeclass(s.$element,"ui-selected"),s.selected=!1,i._addclass(s.$element,"ui-unselecting"),s.unselecting=!0,i._trigger("unselecting",e,{unselecting:s.element}))}),t(e.target).parents().addback().each(function(){var s,n=t.data(this,"selectable-item");return n?(s=!e.metakey&&!e.ctrlkey||!n.$element.hasclass("ui-selected"),i._removeclass(n.$element,s?"ui-unselecting":"ui-selected")._addclass(n.$element,s?"ui-selecting":"ui-unselecting"),n.unselecting=!s,n.selecting=s,n.selected=s,s?i._trigger("selecting",e,{selecting:n.element}):i._trigger("unselecting",e,{unselecting:n.element}),!1):void 0}))},_mousedrag:function(e){if(this.dragged=!0,!this.options.disabled){var i,s=this,n=this.options,o=this.opos[0],a=this.opos[1],r=e.pagex,h=e.pagey;return o>r&&(i=r,r=o,o=i),a>h&&(i=h,h=a,a=i),this.helper.css({left:o,top:a,width:r-o,height:h-a}),this.selectees.each(function(){var i=t.data(this,"selectable-item"),l=!1,c={};i&&i.element!==s.element[0]&&(c.left=i.left+s.elementpos.left,c.right=i.right+s.elementpos.left,c.top=i.top+s.elementpos.top,c.bottom=i.bottom+s.elementpos.top,"touch"===n.tolerance?l=!(c.left>r||o>c.right||c.top>h||a>c.bottom):"fit"===n.tolerance&&(l=c.left>o&&r>c.right&&c.top>a&&h>c.bottom),l?(i.selected&&(s._removeclass(i.$element,"ui-selected"),i.selected=!1),i.unselecting&&(s._removeclass(i.$element,"ui-unselecting"),i.unselecting=!1),i.selecting||(s._addclass(i.$element,"ui-selecting"),i.selecting=!0,s._trigger("selecting",e,{selecting:i.element}))):(i.selecting&&((e.metakey||e.ctrlkey)&&i.startselected?(s._removeclass(i.$element,"ui-selecting"),i.selecting=!1,s._addclass(i.$element,"ui-selected"),i.selected=!0):(s._removeclass(i.$element,"ui-selecting"),i.selecting=!1,i.startselected&&(s._addclass(i.$element,"ui-unselecting"),i.unselecting=!0),s._trigger("unselecting",e,{unselecting:i.element}))),i.selected&&(e.metakey||e.ctrlkey||i.startselected||(s._removeclass(i.$element,"ui-selected"),i.selected=!1,s._addclass(i.$element,"ui-unselecting"),i.unselecting=!0,s._trigger("unselecting",e,{unselecting:i.element})))))}),!1}},_mousestop:function(e){var i=this;return this.dragged=!1,t(".ui-unselecting",this.element[0]).each(function(){var s=t.data(this,"selectable-item");i._removeclass(s.$element,"ui-unselecting"),s.unselecting=!1,s.startselected=!1,i._trigger("unselected",e,{unselected:s.element})}),t(".ui-selecting",this.element[0]).each(function(){var s=t.data(this,"selectable-item");i._removeclass(s.$element,"ui-selecting")._addclass(s.$element,"ui-selected"),s.selecting=!1,s.selected=!0,s.startselected=!0,i._trigger("selected",e,{selected:s.element})}),this._trigger("stop",e),this.helper.remove(),!1}}),t.widget("ui.selectmenu",[t.ui.formresetmixin,{version:"1.12.1",defaultelement:"",widgeteventprefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberformat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setoption("max",this.options.max),this._setoption("min",this.options.min),this._setoption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeattr("autocomplete")}})},_getcreateoptions:function(){var e=this._super(),i=this.element;return t.each(["min","max","step"],function(t,s){var n=i.attr(s);null!=n&&n.length&&(e[s]=n)}),e},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventdefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){return this.cancelblur?(delete this.cancelblur,void 0):(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",t),void 0)},mousewheel:function(t,e){if(e){if(!this.spinning&&!this._start(t))return!1;this._spin((e>0?1:-1)*this.options.step,t),cleartimeout(this.mousewheeltimer),this.mousewheeltimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventdefault()}},"mousedown .ui-spinner-button":function(e){function i(){var e=this.element[0]===t.ui.safeactiveelement(this.document[0]);e||(this.element.trigger("focus"),this.previous=s,this._delay(function(){this.previous=s}))}var s;s=this.element[0]===t.ui.safeactiveelement(this.document[0])?this.previous:this.element.val(),e.preventdefault(),i.call(this),this.cancelblur=!0,this._delay(function(){delete this.cancelblur,i.call(this)}),this._start(e)!==!1&&this._repeat(null,t(e.currenttarget).hasclass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(e){return t(e.currenttarget).hasclass("ui-state-active")?this._start(e)===!1?!1:(this._repeat(null,t(e.currenttarget).hasclass("ui-spinner-up")?1:-1,e),void 0):void 0},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uispinner=this.element.attr("autocomplete","off").wrap("").parent().append("")},_draw:function(){this._enhance(),this._addclass(this.uispinner,"ui-spinner","ui-widget ui-widget-content"),this._addclass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uispinner.children("a").attr("tabindex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeclass(this.buttons,"ui-corner-all"),this._addclass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addclass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showlabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showlabel:!1}),this.buttons.height()>math.ceil(.5*this.uispinner.height())&&this.uispinner.height()>0&&this.uispinner.height(this.uispinner.height())},_keydown:function(e){var i=this.options,s=t.ui.keycode;switch(e.keycode){case s.up:return this._repeat(null,1,e),!0;case s.down:return this._repeat(null,-1,e),!0;case s.page_up:return this._repeat(null,i.page,e),!0;case s.page_down:return this._repeat(null,-i.page,e),!0}return!1},_start:function(t){return this.spinning||this._trigger("start",t)!==!1?(this.counter||(this.counter=1),this.spinning=!0,!0):!1},_repeat:function(t,e,i){t=t||500,cleartimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,i)},t),this._spin(e*this.options.step,i)},_spin:function(t,e){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustvalue(i+t*this._increment(this.counter)),this.spinning&&this._trigger("spin",e,{value:i})===!1||(this._value(i),this.counter++)},_increment:function(e){var i=this.options.incremental;return i?t.isfunction(i)?i(e):math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var t=this._precisionof(this.options.step);return null!==this.options.min&&(t=math.max(t,this._precisionof(this.options.min))),t},_precisionof:function(t){var e=""+t,i=e.indexof(".");return-1===i?0:e.length-i-1},_adjustvalue:function(t){var e,i,s=this.options;return e=null!==s.min?s.min:0,i=t-e,i=math.round(i/s.step)*s.step,t=e+i,t=parsefloat(t.tofixed(this._precision())),null!==s.max&&t>s.max?s.max:null!==s.min&&s.min>t?s.min:t},_stop:function(t){this.spinning&&(cleartimeout(this.timer),cleartimeout(this.mousewheeltimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setoption:function(t,e){var i,s,n;return"culture"===t||"numberformat"===t?(i=this._parse(this.element.val()),this.options[t]=e,this.element.val(this._format(i)),void 0):(("max"===t||"min"===t||"step"===t)&&"string"==typeof e&&(e=this._parse(e)),"icons"===t&&(s=this.buttons.first().find(".ui-icon"),this._removeclass(s,null,this.options.icons.up),this._addclass(s,null,e.up),n=this.buttons.last().find(".ui-icon"),this._removeclass(n,null,this.options.icons.down),this._addclass(n,null,e.down)),this._super(t,e),void 0)},_setoptiondisabled:function(t){this._super(t),this._toggleclass(this.uispinner,null,"ui-state-disabled",!!t),this.element.prop("disabled",!!t),this.buttons.button(t?"disable":"enable")},_setoptions:r(function(t){this._super(t)}),_parse:function(t){return"string"==typeof t&&""!==t&&(t=window.globalize&&this.options.numberformat?globalize.parsefloat(t,10,this.options.culture):+t),""===t||isnan(t)?null:t},_format:function(t){return""===t?"":window.globalize&&this.options.numberformat?globalize.format(t,this.options.numberformat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isvalid:function(){var t=this.value();return null===t?!1:t===this._adjustvalue(t)},_value:function(t,e){var i;""!==t&&(i=this._parse(t),null!==i&&(e||(i=this._adjustvalue(i)),t=this._format(i))),this.element.val(t),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeattr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uispinner.replacewith(this.element)},stepup:r(function(t){this._stepup(t)}),_stepup:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepdown:r(function(t){this._stepdown(t)}),_stepdown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageup:r(function(t){this._stepup((t||1)*this.options.page)}),pagedown:r(function(t){this._stepdown((t||1)*this.options.page)}),value:function(t){return arguments.length?(r(this._value).call(this,t),void 0):this._parse(this.element.val())},widget:function(){return this.uispinner}}),t.uibackcompat!==!1&&t.widget("ui.spinner",t.ui.spinner,{_enhance:function(){this.uispinner=this.element.attr("autocomplete","off").wrap(this._uispinnerhtml()).parent().append(this._buttonhtml())},_uispinnerhtml:function(){return""},_buttonhtml:function(){return""}}),t.ui.spinner,t.widget("ui.tabs",{version:"1.12.1",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightstyle:"content",hide:null,show:null,activate:null,beforeactivate:null,beforeload:null,load:null},_islocal:function(){var t=/#.*$/;return function(e){var i,s;i=e.href.replace(t,""),s=location.href.replace(t,"");try{i=decodeuricomponent(i)}catch(n){}try{s=decodeuricomponent(s)}catch(n){}return e.hash.length>1&&i===s}}(),_create:function(){var e=this,i=this.options;this.running=!1,this._addclass("ui-tabs","ui-widget ui-widget-content"),this._toggleclass("ui-tabs-collapsible",null,i.collapsible),this._processtabs(),i.active=this._initialactive(),t.isarray(i.disabled)&&(i.disabled=t.unique(i.disabled.concat(t.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),this.active=this.options.active!==!1&&this.anchors.length?this._findactive(i.active):t(),this._refresh(),this.active.length&&this.load(i.active)},_initialactive:function(){var e=this.options.active,i=this.options.collapsible,s=location.hash.substring(1);return null===e&&(s&&this.tabs.each(function(i,n){return t(n).attr("aria-controls")===s?(e=i,!1):void 0}),null===e&&(e=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(null===e||-1===e)&&(e=this.tabs.length?0:!1)),e!==!1&&(e=this.tabs.index(this.tabs.eq(e)),-1===e&&(e=i?!1:0)),!i&&e===!1&&this.anchors.length&&(e=0),e},_getcreateeventdata:function(){return{tab:this.active,panel:this.active.length?this._getpanelfortab(this.active):t()}},_tabkeydown:function(e){var i=t(t.ui.safeactiveelement(this.document[0])).closest("li"),s=this.tabs.index(i),n=!0;if(!this._handlepagenav(e)){switch(e.keycode){case t.ui.keycode.right:case t.ui.keycode.down:s++;break;case t.ui.keycode.up:case t.ui.keycode.left:n=!1,s--;break;case t.ui.keycode.end:s=this.anchors.length-1;break;case t.ui.keycode.home:s=0;break;case t.ui.keycode.space:return e.preventdefault(),cleartimeout(this.activating),this._activate(s),void 0;case t.ui.keycode.enter:return e.preventdefault(),cleartimeout(this.activating),this._activate(s===this.options.active?!1:s),void 0;default:return}e.preventdefault(),cleartimeout(this.activating),s=this._focusnexttab(s,n),e.ctrlkey||e.metakey||(i.attr("aria-selected","false"),this.tabs.eq(s).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",s)},this.delay))}},_panelkeydown:function(e){this._handlepagenav(e)||e.ctrlkey&&e.keycode===t.ui.keycode.up&&(e.preventdefault(),this.active.trigger("focus"))},_handlepagenav:function(e){return e.altkey&&e.keycode===t.ui.keycode.page_up?(this._activate(this._focusnexttab(this.options.active-1,!1)),!0):e.altkey&&e.keycode===t.ui.keycode.page_down?(this._activate(this._focusnexttab(this.options.active+1,!0)),!0):void 0},_findnexttab:function(e,i){function s(){return e>n&&(e=0),0>e&&(e=n),e}for(var n=this.tabs.length-1;-1!==t.inarray(s(),this.options.disabled);)e=i?e+1:e-1;return e},_focusnexttab:function(t,e){return t=this._findnexttab(t,e),this.tabs.eq(t).trigger("focus"),t},_setoption:function(t,e){return"active"===t?(this._activate(e),void 0):(this._super(t,e),"collapsible"===t&&(this._toggleclass("ui-tabs-collapsible",null,e),e||this.options.active!==!1||this._activate(0)),"event"===t&&this._setupevents(e),"heightstyle"===t&&this._setupheightstyle(e),void 0)},_sanitizeselector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var e=this.options,i=this.tablist.children(":has(a[href])");e.disabled=t.map(i.filter(".ui-state-disabled"),function(t){return i.index(t)}),this._processtabs(),e.active!==!1&&this.anchors.length?this.active.length&&!t.contains(this.tablist[0],this.active[0])?this.tabs.length===e.disabled.length?(e.active=!1,this.active=t()):this._activate(this._findnexttab(math.max(0,e.active-1),!1)):e.active=this.tabs.index(this.active):(e.active=!1,this.active=t()),this._refresh()},_refresh:function(){this._setoptiondisabled(this.options.disabled),this._setupevents(this.options.event),this._setupheightstyle(this.options.heightstyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabindex:-1}),this.panels.not(this._getpanelfortab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabindex:0}),this._addclass(this.active,"ui-tabs-active","ui-state-active"),this._getpanelfortab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabindex",0)},_processtabs:function(){var e=this,i=this.tabs,s=this.anchors,n=this.panels;this.tablist=this._getlist().attr("role","tablist"),this._addclass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventnamespace,"> li",function(e){t(this).is(".ui-state-disabled")&&e.preventdefault()}).on("focus"+this.eventnamespace,".ui-tabs-anchor",function(){t(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabindex:-1}),this._addclass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return t("a",this)[0]}).attr({role:"presentation",tabindex:-1}),this._addclass(this.anchors,"ui-tabs-anchor"),this.panels=t(),this.anchors.each(function(i,s){var n,o,a,r=t(s).uniqueid().attr("id"),h=t(s).closest("li"),l=h.attr("aria-controls");e._islocal(s)?(n=s.hash,a=n.substring(1),o=e.element.find(e._sanitizeselector(n))):(a=h.attr("aria-controls")||t({}).uniqueid()[0].id,n="#"+a,o=e.element.find(n),o.length||(o=e._createpanel(a),o.insertafter(e.panels[i-1]||e.tablist)),o.attr("aria-live","polite")),o.length&&(e.panels=e.panels.add(o)),l&&h.data("ui-tabs-aria-controls",l),h.attr({"aria-controls":a,"aria-labelledby":r}),o.attr("aria-labelledby",r)}),this.panels.attr("role","tabpanel"),this._addclass(this.panels,"ui-tabs-panel","ui-widget-content"),i&&(this._off(i.not(this.tabs)),this._off(s.not(this.anchors)),this._off(n.not(this.panels)))},_getlist:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createpanel:function(e){return t("
").attr("id",e).data("ui-tabs-destroy",!0)},_setoptiondisabled:function(e){var i,s,n;for(t.isarray(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1),n=0;s=this.tabs[n];n++)i=t(s),e===!0||-1!==t.inarray(n,e)?(i.attr("aria-disabled","true"),this._addclass(i,null,"ui-state-disabled")):(i.removeattr("aria-disabled"),this._removeclass(i,null,"ui-state-disabled"));this.options.disabled=e,this._toggleclass(this.widget(),this.widgetfullname+"-disabled",null,e===!0)},_setupevents:function(e){var i={};e&&t.each(e.split(" "),function(t,e){i[e]="_eventhandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(t){t.preventdefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabkeydown"}),this._on(this.panels,{keydown:"_panelkeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupheightstyle:function(e){var i,s=this.element.parent();"fill"===e?(i=s.height(),i-=this.element.outerheight()-this.element.height(),this.element.siblings(":visible").each(function(){var e=t(this),s=e.css("position");"absolute"!==s&&"fixed"!==s&&(i-=e.outerheight(!0))}),this.element.children().not(this.panels).each(function(){i-=t(this).outerheight(!0)}),this.panels.each(function(){t(this).height(math.max(0,i-t(this).innerheight()+t(this).height()))}).css("overflow","auto")):"auto"===e&&(i=0,this.panels.each(function(){i=math.max(i,t(this).height("").height())}).height(i))},_eventhandler:function(e){var i=this.options,s=this.active,n=t(e.currenttarget),o=n.closest("li"),a=o[0]===s[0],r=a&&i.collapsible,h=r?t():this._getpanelfortab(o),l=s.length?this._getpanelfortab(s):t(),c={oldtab:s,oldpanel:l,newtab:r?t():o,newpanel:h};e.preventdefault(),o.hasclass("ui-state-disabled")||o.hasclass("ui-tabs-loading")||this.running||a&&!i.collapsible||this._trigger("beforeactivate",e,c)===!1||(i.active=r?!1:this.tabs.index(o),this.active=a?t():o,this.xhr&&this.xhr.abort(),l.length||h.length||t.error("jquery ui tabs: mismatching fragment identifier."),h.length&&this.load(this.tabs.index(o),e),this._toggle(e,c))},_toggle:function(e,i){function s(){o.running=!1,o._trigger("activate",e,i)}function n(){o._addclass(i.newtab.closest("li"),"ui-tabs-active","ui-state-active"),a.length&&o.options.show?o._show(a,o.options.show,s):(a.show(),s())}var o=this,a=i.newpanel,r=i.oldpanel;this.running=!0,r.length&&this.options.hide?this._hide(r,this.options.hide,function(){o._removeclass(i.oldtab.closest("li"),"ui-tabs-active","ui-state-active"),n()}):(this._removeclass(i.oldtab.closest("li"),"ui-tabs-active","ui-state-active"),r.hide(),n()),r.attr("aria-hidden","true"),i.oldtab.attr({"aria-selected":"false","aria-expanded":"false"}),a.length&&r.length?i.oldtab.attr("tabindex",-1):a.length&&this.tabs.filter(function(){return 0===t(this).attr("tabindex")}).attr("tabindex",-1),a.attr("aria-hidden","false"),i.newtab.attr({"aria-selected":"true","aria-expanded":"true",tabindex:0})},_activate:function(e){var i,s=this._findactive(e);s[0]!==this.active[0]&&(s.length||(s=this.active),i=s.find(".ui-tabs-anchor")[0],this._eventhandler({target:i,currenttarget:i,preventdefault:t.noop}))},_findactive:function(e){return e===!1?t():this.tabs.eq(e)},_getindex:function(e){return"string"==typeof e&&(e=this.anchors.index(this.anchors.filter("[href$='"+t.ui.escapeselector(e)+"']"))),e},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeattr("role").off(this.eventnamespace),this.anchors.removeattr("role tabindex").removeuniqueid(),this.tabs.add(this.panels).each(function(){t.data(this,"ui-tabs-destroy")?t(this).remove():t(this).removeattr("role tabindex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var e=t(this),i=e.data("ui-tabs-aria-controls");i?e.attr("aria-controls",i).removedata("ui-tabs-aria-controls"):e.removeattr("aria-controls")}),this.panels.show(),"content"!==this.options.heightstyle&&this.panels.css("height","")},enable:function(e){var i=this.options.disabled;i!==!1&&(void 0===e?i=!1:(e=this._getindex(e),i=t.isarray(i)?t.map(i,function(t){return t!==e?t:null}):t.map(this.tabs,function(t,i){return i!==e?i:null})),this._setoptiondisabled(i))},disable:function(e){var i=this.options.disabled;if(i!==!0){if(void 0===e)i=!0;else{if(e=this._getindex(e),-1!==t.inarray(e,i))return;i=t.isarray(i)?t.merge([e],i).sort():[e]}this._setoptiondisabled(i)}},load:function(e,i){e=this._getindex(e);var s=this,n=this.tabs.eq(e),o=n.find(".ui-tabs-anchor"),a=this._getpanelfortab(n),r={tab:n,panel:a},h=function(t,e){"abort"===e&&s.panels.stop(!1,!0),s._removeclass(n,"ui-tabs-loading"),a.removeattr("aria-busy"),t===s.xhr&&delete s.xhr};this._islocal(o[0])||(this.xhr=t.ajax(this._ajaxsettings(o,i,r)),this.xhr&&"canceled"!==this.xhr.statustext&&(this._addclass(n,"ui-tabs-loading"),a.attr("aria-busy","true"),this.xhr.done(function(t,e,n){settimeout(function(){a.html(t),s._trigger("load",i,r),h(n,e)},1)}).fail(function(t,e){settimeout(function(){h(t,e)},1)})))},_ajaxsettings:function(e,i,s){var n=this;return{url:e.attr("href").replace(/#.*$/,""),beforesend:function(e,o){return n._trigger("beforeload",i,t.extend({jqxhr:e,ajaxsettings:o},s))}}},_getpanelfortab:function(e){var i=t(e).attr("aria-controls");return this.element.find(this._sanitizeselector("#"+i))}}),t.uibackcompat!==!1&&t.widget("ui.tabs",t.ui.tabs,{_processtabs:function(){this._superapply(arguments),this._addclass(this.tabs,"ui-tab")}}),t.ui.tabs,t.widget("ui.tooltip",{version:"1.12.1",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var e=t(this).attr("title")||"";return t("").text(e).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_adddescribedby:function(e,i){var s=(e.attr("aria-describedby")||"").split(/\s+/);s.push(i),e.data("ui-tooltip-id",i).attr("aria-describedby",t.trim(s.join(" ")))},_removedescribedby:function(e){var i=e.data("ui-tooltip-id"),s=(e.attr("aria-describedby")||"").split(/\s+/),n=t.inarray(i,s);-1!==n&&s.splice(n,1),e.removedata("ui-tooltip-id"),s=t.trim(s.join(" ")),s?e.attr("aria-describedby",s):e.removeattr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveregion=t("
").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendto(this.document[0].body),this._addclass(this.liveregion,null,"ui-helper-hidden-accessible"),this.disabledtitles=t([])},_setoption:function(e,i){var s=this;this._super(e,i),"content"===e&&t.each(this.tooltips,function(t,e){s._updatecontent(e.element)})},_setoptiondisabled:function(t){this[t?"_disable":"_enable"]()},_disable:function(){var e=this;t.each(this.tooltips,function(i,s){var n=t.event("blur");n.target=n.currenttarget=s.element[0],e.close(n,!0)}),this.disabledtitles=this.disabledtitles.add(this.element.find(this.options.items).addback().filter(function(){var e=t(this);return e.is("[title]")?e.data("ui-tooltip-title",e.attr("title")).removeattr("title"):void 0}))},_enable:function(){this.disabledtitles.each(function(){var e=t(this);e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title"))}),this.disabledtitles=t([])},open:function(e){var i=this,s=t(e?e.target:this.element).closest(this.options.items);s.length&&!s.data("ui-tooltip-id")&&(s.attr("title")&&s.data("ui-tooltip-title",s.attr("title")),s.data("ui-tooltip-open",!0),e&&"mouseover"===e.type&&s.parents().each(function(){var e,s=t(this);s.data("ui-tooltip-open")&&(e=t.event("blur"),e.target=e.currenttarget=this,i.close(e,!0)),s.attr("title")&&(s.uniqueid(),i.parents[this.id]={element:this,title:s.attr("title")},s.attr("title",""))}),this._registerclosehandlers(e,s),this._updatecontent(s,e))},_updatecontent:function(t,e){var i,s=this.options.content,n=this,o=e?e.type:null;return"string"==typeof s||s.nodetype||s.jquery?this._open(e,t,s):(i=s.call(t[0],function(i){n._delay(function(){t.data("ui-tooltip-open")&&(e&&(e.type=o),this._open(e,t,i))})}),i&&this._open(e,t,i),void 0)},_open:function(e,i,s){function n(t){l.of=t,a.is(":hidden")||a.position(l)}var o,a,r,h,l=t.extend({},this.options.position);if(s){if(o=this._find(i))return o.tooltip.find(".ui-tooltip-content").html(s),void 0;i.is("[title]")&&(e&&"mouseover"===e.type?i.attr("title",""):i.removeattr("title")),o=this._tooltip(i),a=o.tooltip,this._adddescribedby(i,a.attr("id")),a.find(".ui-tooltip-content").html(s),this.liveregion.children().hide(),h=t("
").html(a.find(".ui-tooltip-content").html()),h.removeattr("name").find("[name]").removeattr("name"),h.removeattr("id").find("[id]").removeattr("id"),h.appendto(this.liveregion),this.options.track&&e&&/^mouse/.test(e.type)?(this._on(this.document,{mousemove:n}),n(e)):a.position(t.extend({of:i},this.options.position)),a.hide(),this._show(a,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(r=this.delayedshow=setinterval(function(){a.is(":visible")&&(n(l.of),clearinterval(r))},t.fx.interval)),this._trigger("open",e,{tooltip:a})}},_registerclosehandlers:function(e,i){var s={keyup:function(e){if(e.keycode===t.ui.keycode.escape){var s=t.event(e);s.currenttarget=i[0],this.close(s,!0)}}};i[0]!==this.element[0]&&(s.remove=function(){this._removetooltip(this._find(i).tooltip)}),e&&"mouseover"!==e.type||(s.mouseleave="close"),e&&"focusin"!==e.type||(s.focusout="close"),this._on(!0,i,s)},close:function(e){var i,s=this,n=t(e?e.currenttarget:this.element),o=this._find(n);return o?(i=o.tooltip,o.closing||(clearinterval(this.delayedshow),n.data("ui-tooltip-title")&&!n.attr("title")&&n.attr("title",n.data("ui-tooltip-title")),this._removedescribedby(n),o.hiding=!0,i.stop(!0),this._hide(i,this.options.hide,function(){s._removetooltip(t(this))}),n.removedata("ui-tooltip-open"),this._off(n,"mouseleave focusout keyup"),n[0]!==this.element[0]&&this._off(n,"remove"),this._off(this.document,"mousemove"),e&&"mouseleave"===e.type&&t.each(this.parents,function(e,i){t(i.element).attr("title",i.title),delete s.parents[e]}),o.closing=!0,this._trigger("close",e,{tooltip:i}),o.hiding||(o.closing=!1)),void 0):(n.removedata("ui-tooltip-open"),void 0)},_tooltip:function(e){var i=t("
").attr("role","tooltip"),s=t("
").appendto(i),n=i.uniqueid().attr("id");return this._addclass(s,"ui-tooltip-content"),this._addclass(i,"ui-tooltip","ui-widget ui-widget-content"),i.appendto(this._appendto(e)),this.tooltips[n]={element:e,tooltip:i}},_find:function(t){var e=t.data("ui-tooltip-id");return e?this.tooltips[e]:null},_removetooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_appendto:function(t){var e=t.closest(".ui-front, dialog");return e.length||(e=this.document[0].body),e},_destroy:function(){var e=this;t.each(this.tooltips,function(i,s){var n=t.event("blur"),o=s.element;n.target=n.currenttarget=o[0],e.close(n,!0),t("#"+i).remove(),o.data("ui-tooltip-title")&&(o.attr("title")||o.attr("title",o.data("ui-tooltip-title")),o.removedata("ui-tooltip-title"))}),this.liveregion.remove()}}),t.uibackcompat!==!1&&t.widget("ui.tooltip",t.ui.tooltip,{options:{tooltipclass:null},_tooltip:function(){var t=this._superapply(arguments);return this.options.tooltipclass&&t.tooltip.addclass(this.options.tooltipclass),t}}),t.ui.tooltip});