PageSourceSearch

https://www.camcha.fr/js/plugins.js?id=7fcaab8a7bed03312f32

js camcha.fr collected 2026-10-08 09:37:47 UTC 634,724 bytes, 1 lines download raw bytes

1if(window.Modernizr=function(t,e,i){function s(t){m.cssText=t}function n(t,e){return typeof t===e}function o(t,e){return!!~(""+t).indexOf(e)}function a(t,e){for(var s in t)if(m[t[s]]!==i)return"pfx"!=e||t[s];return!1}function r(t,e,s){for(var o in t){var a=e[t[o]];if(a!==i)return!1===s?t[o]:n(a,"function")?a.bind(s||e):a}return!1}function l(t,e,i){var s=t.charAt(0).toUpperCase()+t.substr(1),o=(t+" "+w.join(s+" ")+s).split(" ");return n(e,"string")||n(e,"undefined")?a(o,e):r(o=(t+" "+k.join(s+" ")+s).split(" "),e,i)}var h,c,u={},d=e.documentElement,p="modernizr",f=e.createElement(p),m=f.style,g=e.createElement("input"),v=":)",b={}.toString,y=" -webkit- -moz- -o- -ms- ".split(" "),_="Webkit Moz O ms",w=_.split(" "),k=_.toLowerCase().split(" "),x="http://www.w3.org/2000/svg",C={},j={},T={},P=[],S=P.slice,D=function(t,i,s,n){var o,a,r,l=e.createElement("div"),h=e.body,c=h||e.createElement("body");if(parseInt(s,10))for(;s--;)(r=e.createElement("div")).id=n?n[s]:p+(s+1),l.appendChild(r);return o=["&#173;","<style>",t,"</style>"].join(""),l.id=p,(h?l:c).innerHTML+=o,c.appendChild(l),h||(c.style.background="",d.appendChild(c)),a=i(l,t),h?l.parentNode.removeChild(l):c.parentNode.removeChild(c),!!a},E=function(){var t={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return function(s,o){o=o||e.createElement(t[s]||"div");var a=(s="on"+s)in o;return a||(o.setAttribute||(o=e.createElement("div")),o.setAttribute&&o.removeAttribute&&(o.setAttribute(s,""),a=n(o[s],"function"),n(o[s],"undefined")||(o[s]=i),o.removeAttribute(s))),o=null,a}}(),I={}.hasOwnProperty;c=n(I,"undefined")||n(I.call,"undefined")?function(t,e){return e in t&&n(t.constructor.prototype[e],"undefined")}:function(t,e){return I.call(t,e)},Function.prototype.bind||(Function.prototype.bind=function(t){var e=this;if("function"!=typeof e)throw new TypeError;var i=S.call(arguments,1),s=function(){if(this instanceof s){var n=function(){};n.prototype=e.prototype;var o=new n,a=e.apply(o,i.concat(S.call(arguments)));return Object(a)===a?a:o}return e.apply(t,i.concat(S.call(arguments)))};return s});!function(i,s){var n=['@font-face {font-family:"font";src:url("https://")}',["@media (",y.join("touch-enabled),("),p,")","{#touch{top:9px;position:absolute}}"].join(""),["@media (",y.join("transform-3d),("),p,")","{#csstransforms3d{left:9px;position:absolute;height:3px;}}"].join(""),['#generatedcontent:after{content:"',v,'";visibility:hidden}'].join("")].join(""),o=s.length;D(n,function(i,s){for(var n=e.styleSheets[e.styleSheets.length-1],a=n?n.cssRules&&n.cssRules[0]?n.cssRules[0].cssText:n.cssText||"":"",r=i.childNodes,l={};o--;)l[r[o].id]=r[o];u.touch="ontouchstart"in t||t.DocumentTouch&&e instanceof DocumentTouch||9===(l.touch&&l.touch.offsetTop),u.csstransforms3d=9===(l.csstransforms3d&&l.csstransforms3d.offsetLeft)&&3===l.csstransforms3d.offsetHeight,u.generatedcontent=(l.generatedcontent&&l.generatedcontent.offsetHeight)>=1,u.fontface=/src/i.test(a)&&0===a.indexOf(s.split(" ")[0])},o,s)}(0,["fontface","touch","csstransforms3d","generatedcontent"]);for(var N in C.flexbox=function(){return l("flexOrder")},C["flexbox-legacy"]=function(){return l("boxDirection")},C.canvas=function(){var t=e.createElement("canvas");return!!t.getContext&&!!t.getContext("2d")},C.canvastext=function(){return!!u.canvas&&!!n(e.createElement("canvas").getContext("2d").fillText,"function")},C.webgl=function(){try{var s,n=e.createElement("canvas");s=!(!t.WebGLRenderingContext||!n.getContext("experimental-webgl")&&!n.getContext("webgl")),n=i}catch(t){s=!1}return s},C.touch=function(){return u.touch},C.geolocation=function(){return!!navigator.geolocation},C.postmessage=function(){return!!t.postMessage},C.websqldatabase=function(){return!!t.openDatabase},C.indexedDB=function(){return!!l("indexedDB",t)},C.hashchange=function(){return E("hashchange",t)&&(e.documentMode===i||e.documentMode>7)},C.history=function(){return!!t.history&&!!history.pushState},C.draganddrop=function(){var t=e.createElement("div");return"draggable"in t||"ondragstart"in t&&"ondrop"in t},C.websockets=function(){for(var e=-1,i=w.length;++e<i;)if(t[w[e]+"WebSocket"])return!0;return"WebSocket"in t},C.rgba=function(){return s("background-color:rgba(150,255,150,.5)"),o(m.backgroundColor,"rgba")},C.hsla=function(){return s("background-color:hsla(120,40%,100%,.5)"),o(m.backgroundColor,"rgba")||o(m.backgroundColor,"hsla")},C.multiplebgs=function(){return s("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(m.background)},C.backgroundsize=function(){return l("backgroundSize")},C.borderimage=function(){return l("borderImage")}
1,C.borderradius=function(){return l("borderRadius")},C.boxshadow=function(){return l("boxShadow")},C.textshadow=function(){return""===e.createElement("div").style.textShadow},C.opacity=function(){return t="opacity:.55",s(y.join(t+";")+(e||"")),/^0.55$/.test(m.opacity);var t,e},C.cssanimations=function(){return l("animationName")},C.csscolumns=function(){return l("columnCount")},C.cssgradients=function(){var t="background-image:";return s((t+"-webkit- ".split(" ").join("gradient(linear,left top,right bottom,from(#9f9),to(white));"+t)+y.join("linear-gradient(left top,#9f9, white);"+t)).slice(0,-t.length)),o(m.backgroundImage,"gradient")},C.cssreflections=function(){return l("boxReflect")},C.csstransforms=function(){return!!l("transform")},C.csstransforms3d=function(){var t=!!l("perspective");return t&&"webkitPerspective"in d.style&&(t=u.csstransforms3d),t},C.csstransitions=function(){return l("transition")},C.fontface=function(){return u.fontface},C.generatedcontent=function(){return u.generatedcontent},C.video=function(){var t=e.createElement("video"),i=!1;try{(i=!!t.canPlayType)&&((i=new Boolean(i)).ogg=t.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),i.h264=t.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),i.webm=t.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(t){}return i},C.audio=function(){var t=e.createElement("audio"),i=!1;try{(i=!!t.canPlayType)&&((i=new Boolean(i)).ogg=t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),i.mp3=t.canPlayType("audio/mpeg;").replace(/^no$/,""),i.wav=t.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),i.m4a=(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(t){}return i},C.localstorage=function(){try{return localStorage.setItem(p,p),localStorage.removeItem(p),!0}catch(t){return!1}},C.sessionstorage=function(){try{return sessionStorage.setItem(p,p),sessionStorage.removeItem(p),!0}catch(t){return!1}},C.webworkers=function(){return!!t.Worker},C.applicationcache=function(){return!!t.applicationCache},C.svg=function(){return!!e.createElementNS&&!!e.createElementNS(x,"svg").createSVGRect},C.inlinesvg=function(){var t=e.createElement("div");return t.innerHTML="<svg/>",(t.firstChild&&t.firstChild.namespaceURI)==x},C.smil=function(){return!!e.createElementNS&&/SVGAnimate/.test(b.call(e.createElementNS(x,"animate")))},C.svgclippaths=function(){return!!e.createElementNS&&/SVGClipPath/.test(b.call(e.createElementNS(x,"clipPath")))},C)c(C,N)&&(h=N.toLowerCase(),u[h]=C[N](),P.push((u[h]?"":"no-")+h));return u.input||(u.input=function(i){for(var s=0,n=i.length;s<n;s++)T[i[s]]=i[s]in g;return T.list&&(T.list=!!e.createElement("datalist")&&!!t.HTMLDataListElement),T}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),u.inputtypes=function(t){for(var s,n,o,a=0,r=t.length;a<r;a++)g.setAttribute("type",n=t[a]),(s="text"!==g.type)&&(g.value=v,g.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(n)&&g.style.WebkitAppearance!==i?(d.appendChild(g),s=(o=e.defaultView).getComputedStyle&&"textfield"!==o.getComputedStyle(g,null).WebkitAppearance&&0!==g.offsetHeight,d.removeChild(g)):/^(search|tel)$/.test(n)||(/^(url|email)$/.test(n)?s=g.checkValidity&&!1===g.checkValidity():/^color$/.test(n)?(d.appendChild(g),d.offsetWidth,s=g.value!=v,d.removeChild(g)):s=g.value!=v)),j[t[a]]=!!s;return j}("search tel url email datetime date month week time datetime-local number range color".split(" "))),u.addTest=function(t,e){if("object"==typeof t)for(var s in t)c(t,s)&&u.addTest(s,t[s]);else{if(t=t.toLowerCase(),u[t]!==i)return u;e="function"==typeof e?e():e,d.className+=" "+(e?"":"no-")+t,u[t]=e}return u},s(""),f=g=null,function(t,e){function i(t){var e={},i=t.createElement,s=(0,t.createDocumentFragment)();t.createElement=function(t){var n=(e[t]||(e[t]=i(t))).cloneNode();return l.shivMethods&&n.canHaveChildren&&!r.test(t)?s.appendChild(n):n},t.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+function(){var t=l.elements;return"string"==typeof t?t.split(" "):t}().join().replace(/\w+/g,function(t){return e[t]=i(t),s.createElement(t),'c("'+t+'")'})+");return n}")(l,s)}function s(t){var e;return t.documentShived?t:(l.shivCSS&&!n&&(e=!!function(t,e){var i=t.createElement("p"),s=t.getElementsByTagName("head")[0]||t.documentElement;return i.innerHTML="x<style>"+e+"</style>",s.insertBefore(i.lastChild,s.firstChild)}(t,"article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{dis
vendor: 5,890 bytes, line 1
1play:block}audio{display:none}canvas,video{display:inline-block;*display:inline;*zoom:1}[hidden]{display:none}audio[controls]{display:inline-block;*display:inline;*zoom:1}mark{background:#FF0;color:#000}")),o||(e=!i(t)),e&&(t.documentShived=e),t)}var n,o,a=t.html5||{},r=/^<|^(?:button|form|map|select|textarea)$/i;!function(){var t=e.createElement("a");t.innerHTML="<xyz></xyz>",n="hidden"in t,o=1==t.childNodes.length||function(){try{e.createElement("a")}catch(t){return!0}var t=e.createDocumentFragment();return void 0===t.cloneNode||void 0===t.createDocumentFragment||void 0===t.createElement}()}();var l={elements:a.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:!1!==a.shivCSS,shivMethods:!1!==a.shivMethods,type:"default",shivDocument:s};t.html5=l,s(e)}(this,e),u._version="2.5.3",u._prefixes=y,u._domPrefixes=k,u._cssomPrefixes=w,u.hasEvent=E,u.testProp=function(t){return a([t])},u.testAllProps=l,u.testStyles=D,d.className=d.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+" js "+P.join(" "),u}(this,this.document),function(t,e,i){function s(t){return"[object Function]"==g.call(t)}function n(t){return"string"==typeof t}function o(){}function a(t){return!t||"loaded"==t||"complete"==t||"uninitialized"==t}function r(){var t=v.shift();b=1,t?t.t?f(function(){("c"==t.t?d.injectCss:d.injectJs)(t.s,0,t.a,t.x,t.e,1)},0):(t(),r()):b=0}function l(t,i,s,n,o,l,h){function c(e){if(!p&&a(u.readyState)&&(y.r=p=1,!b&&r(),u.onload=u.onreadystatechange=null,e))for(var s in"img"!=t&&f(function(){w.removeChild(u)},50),T[i])T[i].hasOwnProperty(s)&&T[i][s].onload()}h=h||d.errorTimeout;var u={},p=0,g=0,y={t:s,s:i,e:o,a:l,x:h};1===T[i]&&(g=1,T[i]=[],u=e.createElement(t)),"object"==t?u.data=i:(u.src=i,u.type=t),u.width=u.height="0",u.onerror=u.onload=u.onreadystatechange=function(){c.call(this,g)},v.splice(n,0,y),"img"!=t&&(g||2===T[i]?(w.insertBefore(u,_?null:m),f(c,h)):T[i].push(u))}function h(t,e,i,s,o){return b=0,e=e||"j",n(t)?l("c"==e?x:k,t,e,this.i++,i,s,o):(v.splice(this.i++,0,t),1==v.length&&r()),this}function c(){var t=d;return t.loader={load:h,i:0},t}var u,d,p=e.documentElement,f=t.setTimeout,m=e.getElementsByTagName("script")[0],g={}.toString,v=[],b=0,y="MozAppearance"in p.style,_=y&&!!e.createRange().compareNode,w=_?p:m.parentNode,k=(p=t.opera&&"[object Opera]"==g.call(t.opera),p=!!e.attachEvent&&!p,y?"object":p?"script":"img"),x=p?"script":k,C=Array.isArray||function(t){return"[object Array]"==g.call(t)},j=[],T={},P={timeout:function(t,e){return e.length&&(t.timeout=e[0]),t}};(d=function(t){function e(t,e,n,o,a){var l=function(t){t=t.split("!");var e,i,s,n=j.length,o=t.pop(),a=t.length;for(o={url:o,origUrl:o,prefixes:t},i=0;i<a;i++)s=t[i].split("="),(e=P[s.shift()])&&(o=e(o,s));for(i=0;i<n;i++)o=j[i](o);return o}(t),h=l.autoCallback;l.url.split(".").pop().split("?").shift(),l.bypass||(e&&(e=s(e)?e:e[t]||e[o]||e[t.split("/").pop().split("?")[0]]||r),l.instead?l.instead(t,e,n,o,a):(T[l.url]?l.noexec=!0:T[l.url]=1,n.load(l.url,l.forceCSS||!l.forceJS&&"css"==l.url.split(".").pop().split("?").shift()?"c":i,l.noexec,l.attrs,l.timeout),(s(e)||s(h))&&n.load(function(){c(),e&&e(l.origUrl,a,o),h&&h(l.origUrl,a,o),T[l.url]=2})))}function a(t,i){function a(t,o){if(t){if(n(t))o||(u=function(){var t=[].slice.call(arguments);d.apply(this,t),p()}),e(t,u,i,0,h);else if(Object(t)===t)for(l in r=function(){var e,i=0;for(e in t)t.hasOwnProperty(e)&&i++;return i}(),t)t.hasOwnProperty(l)&&(!o&&!--r&&(s(u)?u=function(){var t=[].slice.call(arguments);d.apply(this,t),p()}:u[l]=function(t){return function(){var e=[].slice.call(arguments);t&&t.apply(this,e),p()}}(d[l])),e(t[l],u,i,l,h))}else!o&&p()}var r,l,h=!!t.test,c=t.load||t.both,u=t.callback||o,d=u,p=t.complete||o;a(h?t.yep:t.nope,!!c),c&&a(c)}var l,h,u=this.yepnope.loader;if(n(t))e(t,0,u,0);else if(C(t))for(l=0;l<t.length;l++)n(h=t[l])?e(h,0,u,0):C(h)?d(h):Object(h)===h&&a(h,u);else Object(t)===t&&a(t,u)}).addPrefix=function(t,e){P[t]=e},d.addFilter=function(t){j.push(t)},d.errorTimeout=1e4,null==e.readyState&&e.addEventListener&&(e.readyState="loading",e.addEventListener("DOMContentLoaded",u=function(){e.removeEventListener("DOMContentLoaded",u,0),e.readyState="complete"},0)),t.yepnope=c(),t.yepnope.executeStack=r,t.yepnope.injectJs=function(t,i,s,n,l,h){var c,u,p=e.createElement("script");n=n||d.errorTimeout;for(u in p.src=t,s)p.setAttribute(u,s[u]);i=h?r:i||o,p.onreadystatechange=p.onload=function(){!c&&a(p.readyState)&&(c=1,i(),p.onload=p.onreadystatechange=null)},f(function(){c||(c=1,i(1))},n),l?p.onload():m.parentNode.insertBefore(p,m)},t.yepnope.injectCss=function(t,i,s,n,a,l){var h;n=e.createElement("link"),i=l?r:i||o;for(h in n.href=t,n.rel="stylesheet",n.type="text/css",s)n.setAttribute(h,s[h]);a||(m.parentNode.insertBefore(n,m),f(i,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))},Modernizr.addTest("boxsizing",function(){return Modernizr.testAllProps("boxSizing")&&(void 0===document.documentMode||document.documentMode>7)}),Modernizr.addTest("speechinput",function(){var t=document.createElement("input");return"speech"in t||"onwebkitspeechchange"in t}),Modernizr.addTest("overflowscrolling",function(){return Modernizr.testAllProps("overflowScrolling")}),Modernizr.addTest("cssresize",Modernizr.testAllProps("resize")),Modernizr.addTest("placeholder",function(){return"placeholder"in(Modernizr.input||document.createElement("input"))&&"placeholder"in(Modernizr.textarea||document.createElement("textarea"))}),Modernizr.addTest("cssscrollbar",function(){var t,e="#modernizr{overflow: scroll; width: 40px }#"+Modernizr._prefixes.join("scrollbar{width:0px} #modernizr::").split("#").slice(1).join("#")+"scrollbar{width:0px}";return Modernizr.testStyles(e,function(e){t="scrollWidth"in e&&40==e.scrollWidth}
1),t}),function(t,e){e.formvalidationapi=!1,e.formvalidationmessage=!1,e.buggyinteractivevalidation=!1,e.addTest("formvalidation",function(){var i=t.createElement("form");if("checkValidity"in i){var s,n=t.body,o=t.documentElement,a=!1,r=!1;return e.formvalidationapi=!0,i.onsubmit=function(t){window.opera||t.preventDefault(),t.stopPropagation(),e.buggyinteractivevalidation=!0},i.innerHTML='<input name="modTest" required><button></button>',i.style.position="absolute",i.style.top="-99999em",n||(a=!0,(n=t.createElement("body")).style.background="",o.appendChild(n)),n.appendChild(i),(s=i.getElementsByTagName("input")[0]).oninvalid=function(t){r=!0,t.preventDefault(),t.stopPropagation()},e.formvalidationmessage=!!s.validationMessage,i.getElementsByTagName("button")[0].click(),n.removeChild(i),a&&o.removeChild(n),r}return!1})}(document,window.Modernizr),function(t,e){var i,s,n=typeof e,o=t.location,a=t.document,r=a.documentElement,l=t.jQuery,h=t.$,c={},u=[],d="1.10.2",p=u.concat,f=u.push,m=u.slice,g=u.indexOf,v=c.toString,b=c.hasOwnProperty,y=d.trim,_=function(t,e){return new _.fn.init(t,e,s)},w=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,k=/\S+/g,x=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,C=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,j=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,T=/^[\],:{}\s]*$/,P=/(?:^|:|,)(?:\s*\[)+/g,S=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,D=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,E=/^-ms-/,I=/-([\da-z])/gi,N=function(t,e){return e.toUpperCase()},M=function(t){(a.addEventListener||"load"===t.type||"complete"===a.readyState)&&(A(),_.ready())},A=function(){a.addEventListener?(a.removeEventListener("DOMContentLoaded",M,!1),t.removeEventListener("load",M,!1)):(a.detachEvent("onreadystatechange",M),t.detachEvent("onload",M))};function O(t){var e=t.length,i=_.type(t);return!_.isWindow(t)&&(!(1!==t.nodeType||!e)||("array"===i||"function"!==i&&(0===e||"number"==typeof e&&e>0&&e-1 in t)))}_.fn=_.prototype={jquery:d,constructor:_,init:function(t,i,s){var n,o;if(!t)return this;if("string"==typeof t){if(!(n="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:C.exec(t))||!n[1]&&i)return!i||i.jquery?(i||s).find(t):this.constructor(i).find(t);if(n[1]){if(i=i instanceof _?i[0]:i,_.merge(this,_.parseHTML(n[1],i&&i.nodeType?i.ownerDocument||i:a,!0)),j.test(n[1])&&_.isPlainObject(i))for(n in i)_.isFunction(this[n])?this[n](i[n]):this.attr(n,i[n]);return this}if((o=a.getElementById(n[2]))&&o.parentNode){if(o.id!==n[2])return s.find(t);this.length=1,this[0]=o}return this.context=a,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):_.isFunction(t)?s.ready(t):(t.selector!==e&&(this.selector=t.selector,this.context=t.context),_.makeArray(t,this))},selector:"",length:0,toArray:function(){return m.call(this)},get:function(t){return null==t?this.toArray():0>t?this[this.length+t]:this[t]},pushStack:function(t){var e=_.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return _.each(this,t,e)},ready:function(t){return _.ready.promise().done(t),this},slice:function(){return this.pushStack(m.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,i=+t+(0>t?e:0);return this.pushStack(i>=0&&e>i?[this[i]]:[])},map:function(t){return this.pushStack(_.map(this,function(e,i){return t.call(e,i,e)}))},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:[].sort,splice:[].splice},_.fn.init.prototype=_.fn,_.extend=_.fn.extend=function(){var t,i,s,n,o,a,r=arguments[0]||{},l=1,h=arguments.length,c=!1;for("boolean"==typeof r&&(c=r,r=arguments[1]||{},l=2),"object"==typeof r||_.isFunction(r)||(r={}),h===l&&(r=this,--l);h>l;l++)if(null!=(o=arguments[l]))for(n in o)t=r[n],r!==(s=o[n])&&(c&&s&&(_.isPlainObject(s)||(i=_.isArray(s)))?(i?(i=!1,a=t&&_.isArray(t)?t:[]):a=t&&_.isPlainObject(t)?t:{},r[n]=_.extend(c,a,s)):s!==e&&(r[n]=s));return r},_.extend({expando:"jQuery"+(d+Math.random()).replace(/\D/g,""),noConflict:function(e){return t.$===_&&(t.$=h),e&&t.jQuery===_&&(t.jQuery=l),_},isReady:!1,readyWait:1,holdReady:function(t){t?_.readyWait++:_.ready(!0)},ready:function(t){if(!0===t?!--_.readyWait:!_.isReady){if(!a.body)return setTimeout(_.ready);_.isReady=!0,!0!==t&&--_.readyWait>0||(i.resolveWith(a,[_]),_.fn.trigger&&_(a).trigger("ready").off("ready"))}},isFunction:function(t){return"function"===_.type(t)},isArray:Array.isArray||function(t){return"array"===_.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)}
1,type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?c[v.call(t)]||"object":typeof t},isPlainObject:function(t){var i;if(!t||"object"!==_.type(t)||t.nodeType||_.isWindow(t))return!1;try{if(t.constructor&&!b.call(t,"constructor")&&!b.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}if(_.support.ownLast)for(i in t)return b.call(t,i);for(i in t);return i===e||b.call(t,i)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},error:function(t){throw Error(t)},parseHTML:function(t,e,i){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(i=e,e=!1),e=e||a;var s=j.exec(t),n=!i&&[];return s?[e.createElement(s[1])]:(s=_.buildFragment([t],e,n),n&&_(n).remove(),_.merge([],s.childNodes))},parseJSON:function(i){return t.JSON&&t.JSON.parse?t.JSON.parse(i):null===i?i:"string"==typeof i&&((i=_.trim(i))&&T.test(i.replace(S,"@").replace(D,"]").replace(P,"")))?Function("return "+i)():(_.error("Invalid JSON: "+i),e)},parseXML:function(i){var s;if(!i||"string"!=typeof i)return null;try{t.DOMParser?s=(new DOMParser).parseFromString(i,"text/xml"):((s=new ActiveXObject("Microsoft.XMLDOM")).async="false",s.loadXML(i))}catch(t){s=e}return s&&s.documentElement&&!s.getElementsByTagName("parsererror").length||_.error("Invalid XML: "+i),s},noop:function(){},globalEval:function(e){e&&_.trim(e)&&(t.execScript||function(e){t.eval.call(t,e)})(e)},camelCase:function(t){return t.replace(E,"ms-").replace(I,N)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,i){var s=0,n=t.length,o=O(t);if(i){if(o)for(;n>s&&!1!==e.apply(t[s],i);s++);else for(s in t)if(!1===e.apply(t[s],i))break}else if(o)for(;n>s&&!1!==e.call(t[s],s,t[s]);s++);else for(s in t)if(!1===e.call(t[s],s,t[s]))break;return t},trim:y&&!y.call("\ufeff ")?function(t){return null==t?"":y.call(t)}:function(t){return null==t?"":(t+"").replace(x,"")},makeArray:function(t,e){var i=e||[];return null!=t&&(O(Object(t))?_.merge(i,"string"==typeof t?[t]:t):f.call(i,t)),i},inArray:function(t,e,i){var s;if(e){if(g)return g.call(e,t,i);for(s=e.length,i=i?0>i?Math.max(0,s+i):i:0;s>i;i++)if(i in e&&e[i]===t)return i}return-1},merge:function(t,i){var s=i.length,n=t.length,o=0;if("number"==typeof s)for(;s>o;o++)t[n++]=i[o];else for(;i[o]!==e;)t[n++]=i[o++];return t.length=n,t},grep:function(t,e,i){var s=[],n=0,o=t.length;for(i=!!i;o>n;n++)i!==!!e(t[n],n)&&s.push(t[n]);return s},map:function(t,e,i){var s,n=0,o=t.length,a=[];if(O(t))for(;o>n;n++)null!=(s=e(t[n],n,i))&&(a[a.length]=s);else for(n in t)null!=(s=e(t[n],n,i))&&(a[a.length]=s);return p.apply([],a)},guid:1,proxy:function(t,i){var s,n,o;return"string"==typeof i&&(o=t[i],i=t,t=o),_.isFunction(t)?(s=m.call(arguments,2),(n=function(){return t.apply(i||this,s.concat(m.call(arguments)))}).guid=t.guid=t.guid||_.guid++,n):e},access:function(t,i,s,n,o,a,r){var l=0,h=t.length,c=null==s;if("object"===_.type(s))for(l in o=!0,s)_.access(t,i,l,s[l],!0,a,r);else if(n!==e&&(o=!0,_.isFunction(n)||(r=!0),c&&(r?(i.call(t,n),i=null):(c=i,i=function(t,e,i){return c.call(_(t),i)})),i))for(;h>l;l++)i(t[l],s,r?n:n.call(t[l],l,i(t[l],s)));return o?t:c?i.call(t):h?i(t[0],s):a},now:function(){return(new Date).getTime()},swap:function(t,e,i,s){var n,o,a={};for(o in e)a[o]=t.style[o],t.style[o]=e[o];for(o in n=i.apply(t,s||[]),e)t.style[o]=a[o];return n}}),_.ready.promise=function(e){if(!i)if(i=_.Deferred(),"complete"===a.readyState)setTimeout(_.ready);else if(a.addEventListener)a.addEventListener("DOMContentLoaded",M,!1),t.addEventListener("load",M,!1);else{a.attachEvent("onreadystatechange",M),t.attachEvent("onload",M);var s=!1;try{s=null==t.frameElement&&a.documentElement}catch(t){}s&&s.doScroll&&function t(){if(!_.isReady){try{s.doScroll("left")}catch(e){return setTimeout(t,50)}A(),_.ready()}}()}return i.promise(e)},_.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){c["[object "+e+"]"]=e.toLowerCase()}),s=_(a),function(t,e){var i,s,n,o,a,r,l,h,c,u,d,p,f,m,g,v,b,y="sizzle"+-new Date,w=t.document,k=0,x=0,C=at(),j=at(),T=at(),P=!1,S=function(t,e){return t===e?(P=!0,0):0},D=typeof e,E=1<<31,I={}.hasOwnProperty,N=[],M=N.pop,A=N.push,O=N.push,H=N.slice,L=N.indexOf||function(t){for(var e=0,i=this.length;i>e;e++)if(this[e]===t)return e;return-1},F="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="[\\x20\\t\\r\\n\\f]",z="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",$=z.replace("w","w#"),W="\\["+R+"*("+z+")"+R+"*(?:([*^$|!~]?=)"+R+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+$+")|)|)"+R+"*\\]",B=":("+z+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+W.replace(3,8)+")*)|.*)\\)|)",q=RegExp("^"+R+"+|((?:^|[^\\\\])(?:\\\\.)*)"+R+"+$","g"),V=RegExp("^"+R+"*,"+R+"*"),U=RegExp("^"+R+"*([>+~]|"+R+")"+R+"*"),Y=RegExp(R+"*[+~]"),X=RegExp("="+R+"*([^\\]'\"]*)"+R+"*\\]","g"),K=RegExp(B),Q=RegExp("^"+$+"$"),G={ID:RegExp("^#("+z+")"),CLASS:RegExp("^\\.("+z+")"),TAG:RegExp("^("+z.replace("w","w*")+")"),ATTR:RegExp("^"+W),PSEUDO:RegExp("^"+B),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),bool:Reg
vendor: 5,555 bytes, line 1
1Exp("^(?:"+F+")$","i"),needsContext:RegExp("^"+R+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)","i")},J=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/^(?:input|select|textarea|button)$/i,et=/^h\d$/i,it=/'|\\/g,st=RegExp("\\\\([\\da-f]{1,6}"+R+"?|("+R+")|.)","ig"),nt=function(t,e,i){var s="0x"+e-65536;return s!=s||i?e:0>s?String.fromCharCode(s+65536):String.fromCharCode(55296|s>>10,56320|1023&s)};try{O.apply(N=H.call(w.childNodes),w.childNodes),N[w.childNodes.length].nodeType}catch(t){O={apply:N.length?function(t,e){A.apply(t,H.call(e))}:function(t,e){for(var i=t.length,s=0;t[i++]=e[s++];);t.length=i-1}}}function ot(t,e,i,n){var o,a,r,l,h,c,p,g,v,_;if((e?e.ownerDocument||e:w)!==d&&u(e),i=i||[],!t||"string"!=typeof t)return i;if(1!==(l=(e=e||d).nodeType)&&9!==l)return[];if(f&&!n){if(o=Z.exec(t))if(r=o[1]){if(9===l){if(!(a=e.getElementById(r))||!a.parentNode)return i;if(a.id===r)return i.push(a),i}else if(e.ownerDocument&&(a=e.ownerDocument.getElementById(r))&&b(e,a)&&a.id===r)return i.push(a),i}else{if(o[2])return O.apply(i,e.getElementsByTagName(t)),i;if((r=o[3])&&s.getElementsByClassName&&e.getElementsByClassName)return O.apply(i,e.getElementsByClassName(r)),i}if(s.qsa&&(!m||!m.test(t))){if(g=p=y,v=e,_=9===l&&t,1===l&&"object"!==e.nodeName.toLowerCase()){for(c=mt(t),(p=e.getAttribute("id"))?g=p.replace(it,"\\$&"):e.setAttribute("id",g),g="[id='"+g+"'] ",h=c.length;h--;)c[h]=g+gt(c[h]);v=Y.test(t)&&e.parentNode||e,_=c.join(",")}if(_)try{return O.apply(i,v.querySelectorAll(_)),i}catch(t){}finally{p||e.removeAttribute("id")}}}return xt(t.replace(q,"$1"),e,i,n)}function at(){var t=[];return function e(i,s){return t.push(i+=" ")>o.cacheLength&&delete e[t.shift()],e[i]=s}}function rt(t){return t[y]=!0,t}function lt(t){var e=d.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ht(t,e){for(var i=t.split("|"),s=t.length;s--;)o.attrHandle[i[s]]=e}function ct(t,e){var i=e&&t,s=i&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||E)-(~t.sourceIndex||E);if(s)return s;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function ut(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function dt(t){return function(e){var i=e.nodeName.toLowerCase();return("input"===i||"button"===i)&&e.type===t}}function pt(t){return rt(function(e){return e=+e,rt(function(i,s){for(var n,o=t([],i.length,e),a=o.length;a--;)i[n=o[a]]&&(i[n]=!(s[n]=i[n]))})})}for(i in r=ot.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},s=ot.support={},u=ot.setDocument=function(t){var i=t?t.ownerDocument||t:w,n=i.defaultView;return i!==d&&9===i.nodeType&&i.documentElement?(d=i,p=i.documentElement,f=!r(i),n&&n.attachEvent&&n!==n.top&&n.attachEvent("onbeforeunload",function(){u()}),s.attributes=lt(function(t){return t.className="i",!t.getAttribute("className")}),s.getElementsByTagName=lt(function(t){return t.appendChild(i.createComment("")),!t.getElementsByTagName("*").length}),s.getElementsByClassName=lt(function(t){return t.innerHTML="<div class='a'></div><div class='a i'></div>",t.firstChild.className="i",2===t.getElementsByClassName("i").length}),s.getById=lt(function(t){return p.appendChild(t).id=y,!i.getElementsByName||!i.getElementsByName(y).length}),s.getById?(o.find.ID=function(t,e){if(typeof e.getElementById!==D&&f){var i=e.getElementById(t);return i&&i.parentNode?[i]:[]}},o.filter.ID=function(t){var e=t.replace(st,nt);return function(t){return t.getAttribute("id")===e}}):(delete o.find.ID,o.filter.ID=function(t){var e=t.replace(st,nt);return function(t){var i=typeof t.getAttributeNode!==D&&t.getAttributeNode("id");return i&&i.value===e}}),o.find.TAG=s.getElementsByTagName?function(t,i){return typeof i.getElementsByTagName!==D?i.getElementsByTagName(t):e}:function(t,e){var i,s=[],n=0,o=e.getElementsByTagName(t);if("*"===t){for(;i=o[n++];)1===i.nodeType&&s.push(i);return s}return o},o.find.CLASS=s.getElementsByClassName&&function(t,i){return typeof i.getElementsByClassName!==D&&f?i.getElementsByClassName(t):e},g=[],m=[],(s.qsa=J.test(i.querySelectorAll))&&(lt(function(t){t.innerHTML="<select><option selected=''></option></select>",t.querySelectorAll("[selected]").length||m.push("\\["+R+"*(?:value|"+F+")"),t.querySelectorAll(":checked").length||m.push(":checked")}),lt(function(t){var e=i.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("t",""),t.querySelectorAll("[t^='']").length&&m.push("[*^$]="+R+"*(?:''|\"\")"),t.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")})),(s.matchesSelector=J.test(v=p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&lt(function(t){s.disconnectedMatch=v.call(t,"div"),v.call(t,"[s!='']:x"),g.push("!=",B)}),m=m.length&&RegExp(m.join("|")),g=g.length&&RegExp(g.join("|")),b=J.test(p.contains)||p.compareDocumentPosition?function(t,e){var i=9===t.nodeType?t.documentElement:t,s=e&&e.parentNode;return t===s||!(!s||1!==s.nodeType||!(i.contains?i.contains(s):t.compareDocumentPosition&&16&t.compareDocumentPosition(s)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},S=p.compareDocumentPosition?function(t,e){if(t===e)return P=!0,0;var n=e.compareDocumentPosition&&t.compareDocumentPosition&&t.compareDocumentPosition(e);return n?1&n||!s.sortDetached&&e.compareDocumentPosition(t)===n?t===i||b(w,t)?-1:e===i||b(w,e)?1:c?L.c
vendor: 4,279 bytes, line 1
1all(c,t)-L.call(c,e):0:4&n?-1:1:t.compareDocumentPosition?-1:1}:function(t,e){var s,n=0,o=t.parentNode,a=e.parentNode,r=[t],l=[e];if(t===e)return P=!0,0;if(!o||!a)return t===i?-1:e===i?1:o?-1:a?1:c?L.call(c,t)-L.call(c,e):0;if(o===a)return ct(t,e);for(s=t;s=s.parentNode;)r.unshift(s);for(s=e;s=s.parentNode;)l.unshift(s);for(;r[n]===l[n];)n++;return n?ct(r[n],l[n]):r[n]===w?-1:l[n]===w?1:0},i):d},ot.matches=function(t,e){return ot(t,null,null,e)},ot.matchesSelector=function(t,e){if((t.ownerDocument||t)!==d&&u(t),e=e.replace(X,"='$1']"),!(!s.matchesSelector||!f||g&&g.test(e)||m&&m.test(e)))try{var i=v.call(t,e);if(i||s.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return ot(e,d,null,[t]).length>0},ot.contains=function(t,e){return(t.ownerDocument||t)!==d&&u(t),b(t,e)},ot.attr=function(t,i){(t.ownerDocument||t)!==d&&u(t);var n=o.attrHandle[i.toLowerCase()],a=n&&I.call(o.attrHandle,i.toLowerCase())?n(t,i,!f):e;return a===e?s.attributes||!f?t.getAttribute(i):(a=t.getAttributeNode(i))&&a.specified?a.value:null:a},ot.error=function(t){throw Error("Syntax error, unrecognized expression: "+t)},ot.uniqueSort=function(t){var e,i=[],n=0,o=0;if(P=!s.detectDuplicates,c=!s.sortStable&&t.slice(0),t.sort(S),P){for(;e=t[o++];)e===t[o]&&(n=i.push(o));for(;n--;)t.splice(i[n],1)}return t},a=ot.getText=function(t){var e,i="",s=0,n=t.nodeType;if(n){if(1===n||9===n||11===n){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=a(t)}else if(3===n||4===n)return t.nodeValue}else for(;e=t[s];s++)i+=a(e);return i},(o=ot.selectors={cacheLength:50,createPseudo:rt,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(st,nt),t[3]=(t[4]||t[5]||"").replace(st,nt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||ot.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&ot.error(t[0]),t},PSEUDO:function(t){var i,s=!t[5]&&t[2];return G.CHILD.test(t[0])?null:(t[3]&&t[4]!==e?t[2]=t[4]:s&&K.test(s)&&(i=mt(s,!0))&&(i=s.indexOf(")",s.length-i)-s.length)&&(t[0]=t[0].slice(0,i),t[2]=s.slice(0,i)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(st,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=C[t+" "];return e||(e=RegExp("(^|"+R+")"+t+"("+R+"|$)"))&&C(t,function(t){return e.test("string"==typeof t.className&&t.className||typeof t.getAttribute!==D&&t.getAttribute("class")||"")})},ATTR:function(t,e,i){return function(s){var n=ot.attr(s,t);return null==n?"!="===e:!e||(n+="","="===e?n===i:"!="===e?n!==i:"^="===e?i&&0===n.indexOf(i):"*="===e?i&&n.indexOf(i)>-1:"$="===e?i&&n.slice(-i.length)===i:"~="===e?(" "+n+" ").indexOf(i)>-1:"|="===e&&(n===i||n.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,i,s,n){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),r="of-type"===e;return 1===s&&0===n?function(t){return!!t.parentNode}:function(e,i,l){var h,c,u,d,p,f,m=o!==a?"nextSibling":"previousSibling",g=e.parentNode,v=r&&e.nodeName.toLowerCase(),b=!l&&!r;if(g){if(o){for(;m;){for(u=e;u=u[m];)if(r?u.nodeName.toLowerCase()===v:1===u.nodeType)return!1;f=m="only"===t&&!f&&"nextSibling"}return!0}if(f=[a?g.firstChild:g.lastChild],a&&b){for(p=(h=(c=g[y]||(g[y]={}))[t]||[])[0]===k&&h[1],d=h[0]===k&&h[2],u=p&&g.childNodes[p];u=++p&&u&&u[m]||(d=p=0)||f.pop();)if(1===u.nodeType&&++d&&u===e){c[t]=[k,p,d];break}}else if(b&&(h=(e[y]||(e[y]={}))[t])&&h[0]===k)d=h[1];else for(;(u=++p&&u&&u[m]||(d=p=0)||f.pop())&&((r?u.nodeName.toLowerCase()!==v:1!==u.nodeType)||!++d||(b&&((u[y]||(u[y]={}))[t]=[k,d]),u!==e)););return(d-=n)===s||0==d%s&&d/s>=0}}},PSEUDO:function(t,e){var i,s=o.pseudos[t]||o.setFilters[t.toLowerCase()]||ot.error("unsupported pseudo: "+t);return s[y]?s(e):s.length>1?(i=[t,t,"",e],o.setFilters.hasOwnProperty(t.toLowerCase())?rt(function(t,i){for(var n,o=s(t,e),a=o.length;a--;)t[n=L.call(t,o[a])]=!(i[n]=o[a])}):function(t){return s(t,0,i)}):s}},pseudos:{not:rt(function(t){var e=[],i=[],s=l(t.replace(q,"$1"));
vendor: 4,829 bytes, line 1
1return s[y]?rt(function(t,e,i,n){for(var o,a=s(t,null,n,[]),r=t.length;r--;)(o=a[r])&&(t[r]=!(e[r]=o))}):function(t,n,o){return e[0]=t,s(e,null,o,i),!i.pop()}}),has:rt(function(t){return function(e){return ot(t,e).length>0}}),contains:rt(function(t){return function(e){return(e.textContent||e.innerText||a(e)).indexOf(t)>-1}}),lang:rt(function(t){return Q.test(t||"")||ot.error("unsupported lang: "+t),t=t.replace(st,nt).toLowerCase(),function(e){var i;do{if(i=f?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===p},focus:function(t){return t===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeName>"@"||3===t.nodeType||4===t.nodeType)return!1;return!0},parent:function(t){return!o.pseudos.empty(t)},header:function(t){return et.test(t.nodeName)},input:function(t){return tt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||e.toLowerCase()===t.type)},first:pt(function(){return[0]}),last:pt(function(t,e){return[e-1]}),eq:pt(function(t,e,i){return[0>i?i+e:i]}),even:pt(function(t,e){for(var i=0;e>i;i+=2)t.push(i);return t}),odd:pt(function(t,e){for(var i=1;e>i;i+=2)t.push(i);return t}),lt:pt(function(t,e,i){for(var s=0>i?i+e:i;--s>=0;)t.push(s);return t}),gt:pt(function(t,e,i){for(var s=0>i?i+e:i;e>++s;)t.push(s);return t})}}).pseudos.nth=o.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})o.pseudos[i]=ut(i);for(i in{submit:!0,reset:!0})o.pseudos[i]=dt(i);function ft(){}function mt(t,e){var i,s,n,a,r,l,h,c=j[t+" "];if(c)return e?0:c.slice(0);for(r=t,l=[],h=o.preFilter;r;){for(a in(!i||(s=V.exec(r)))&&(s&&(r=r.slice(s[0].length)||r),l.push(n=[])),i=!1,(s=U.exec(r))&&(i=s.shift(),n.push({value:i,type:s[0].replace(q," ")}),r=r.slice(i.length)),o.filter)!(s=G[a].exec(r))||h[a]&&!(s=h[a](s))||(i=s.shift(),n.push({value:i,type:a,matches:s}),r=r.slice(i.length));if(!i)break}return e?r.length:r?ot.error(t):j(t,l).slice(0)}function gt(t){for(var e=0,i=t.length,s="";i>e;e++)s+=t[e].value;return s}function vt(t,e,i){var s=e.dir,o=i&&"parentNode"===s,a=x++;return e.first?function(e,i,n){for(;e=e[s];)if(1===e.nodeType||o)return t(e,i,n)}:function(e,i,r){var l,h,c,u=k+" "+a;if(r){for(;e=e[s];)if((1===e.nodeType||o)&&t(e,i,r))return!0}else for(;e=e[s];)if(1===e.nodeType||o)if((h=(c=e[y]||(e[y]={}))[s])&&h[0]===u){if(!0===(l=h[1])||l===n)return!0===l}else if((h=c[s]=[u])[1]=t(e,i,r)||n,!0===h[1])return!0}}function bt(t){return t.length>1?function(e,i,s){for(var n=t.length;n--;)if(!t[n](e,i,s))return!1;return!0}:t[0]}function yt(t,e,i,s,n){for(var o,a=[],r=0,l=t.length,h=null!=e;l>r;r++)(o=t[r])&&(!i||i(o,s,n))&&(a.push(o),h&&e.push(r));return a}function _t(t,e,i,s,n,o){return s&&!s[y]&&(s=_t(s)),n&&!n[y]&&(n=_t(n,o)),rt(function(o,a,r,l){var h,c,u,d=[],p=[],f=a.length,m=o||function(t,e,i){for(var s=0,n=e.length;n>s;s++)ot(t,e[s],i);return i}(e||"*",r.nodeType?[r]:r,[]),g=!t||!o&&e?m:yt(m,d,t,r,l),v=i?n||(o?t:f||s)?[]:a:g;if(i&&i(g,v,r,l),s)for(h=yt(v,p),s(h,[],r,l),c=h.length;c--;)(u=h[c])&&(v[p[c]]=!(g[p[c]]=u));if(o){if(n||t){if(n){for(h=[],c=v.length;c--;)(u=v[c])&&h.push(g[c]=u);n(null,v=[],h,l)}for(c=v.length;c--;)(u=v[c])&&(h=n?L.call(o,u):d[c])>-1&&(o[h]=!(a[h]=u))}}else v=yt(v===a?v.splice(f,v.length):v),n?n(null,a,v,l):O.apply(a,v)})}function wt(t){for(var e,i,s,n=t.length,a=o.relative[t[0].type],r=a||o.relative[" "],l=a?1:0,c=vt(function(t){return t===e},r,!0),u=vt(function(t){return L.call(e,t)>-1},r,!0),d=[function(t,i,s){return!a&&(s||i!==h)||((e=i).nodeType?c(t,i,s):u(t,i,s))}];n>l;l++)if(i=o.relative[t[l].type])d=[vt(bt(d),i)];else{if((i=o.filter[t[l].type].apply(null,t[l].matches))[y]){for(s=++l;n>s&&!o.relative[t[s].type];s++);return _t(l>1&&bt(d),l>1&&gt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(q,"$1"),i,s>l&&wt(t.slice(l,s)),n>s&&wt(t=t.slice(s)),n>s&&gt(t))}d.push(i)}return bt(d)}function kt(t,e){var i=0,s=e.length>0,a=t.length>0,r=function(r,l,c,u,p){var f,m,g,v=[],b=0,y="0",_=r&&[],w=null!=p,x=h,C=r||a&&o.find.TAG("*",p&&l.parentNode||l),j=k+=null==x?1:Math.random()||.1;for(w&&(h=l!==d&&l,n=i);null!=(f=C[y]);y++){if(a&&f){for(m=0;g=t[m++];
1)if(g(f,l,c)){u.push(f);break}w&&(k=j,n=++i)}s&&((f=!g&&f)&&b--,r&&_.push(f))}if(b+=y,s&&y!==b){for(m=0;g=e[m++];)g(_,v,l,c);if(r){if(b>0)for(;y--;)_[y]||v[y]||(v[y]=M.call(u));v=yt(v)}O.apply(u,v),w&&!r&&v.length>0&&b+e.length>1&&ot.uniqueSort(u)}return w&&(k=j,h=x),_};return s?rt(r):r}function xt(t,e,i,n){var a,r,h,c,u,d=mt(t);if(!n&&1===d.length){if((r=d[0]=d[0].slice(0)).length>2&&"ID"===(h=r[0]).type&&s.getById&&9===e.nodeType&&f&&o.relative[r[1].type]){if(!(e=(o.find.ID(h.matches[0].replace(st,nt),e)||[])[0]))return i;t=t.slice(r.shift().value.length)}for(a=G.needsContext.test(t)?0:r.length;a--&&(h=r[a],!o.relative[c=h.type]);)if((u=o.find[c])&&(n=u(h.matches[0].replace(st,nt),Y.test(r[0].type)&&e.parentNode||e))){if(r.splice(a,1),!(t=n.length&&gt(r)))return O.apply(i,n),i;break}}return l(t,d)(n,e,!f,i,Y.test(t)),i}ft.prototype=o.filters=o.pseudos,o.setFilters=new ft,l=ot.compile=function(t,e){var i,s=[],n=[],o=T[t+" "];if(!o){for(e||(e=mt(t)),i=e.length;i--;)(o=wt(e[i]))[y]?s.push(o):n.push(o);o=T(t,kt(n,s))}return o},s.sortStable=y.split("").sort(S).join("")===y,s.detectDuplicates=P,u(),s.sortDetached=lt(function(t){return 1&t.compareDocumentPosition(d.createElement("div"))}),lt(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||ht("type|href|height|width",function(t,i,s){return s?e:t.getAttribute(i,"type"===i.toLowerCase()?1:2)}),s.attributes&&lt(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||ht("value",function(t,i,s){return s||"input"!==t.nodeName.toLowerCase()?e:t.defaultValue}),lt(function(t){return null==t.getAttribute("disabled")})||ht(F,function(t,i,s){var n;return s?e:(n=t.getAttributeNode(i))&&n.specified?n.value:!0===t[i]?i.toLowerCase():null}),_.find=ot,_.expr=ot.selectors,_.expr[":"]=_.expr.pseudos,_.unique=ot.uniqueSort,_.text=ot.getText,_.isXMLDoc=ot.isXML,_.contains=ot.contains}(t);var H={};_.Callbacks=function(t){t="string"==typeof t?H[t]||function(t){var e=H[t]={};return _.each(t.match(k)||[],function(t,i){e[i]=!0}),e}(t):_.extend({},t);var i,s,n,o,a,r,l=[],h=!t.once&&[],c=function(e){for(s=t.memory&&e,n=!0,a=r||0,r=0,o=l.length,i=!0;l&&o>a;a++)if(!1===l[a].apply(e[0],e[1])&&t.stopOnFalse){s=!1;break}i=!1,l&&(h?h.length&&c(h.shift()):s?l=[]:u.disable())},u={add:function(){if(l){var e=l.length;(function e(i){_.each(i,function(i,s){var n=_.type(s);"function"===n?t.unique&&u.has(s)||l.push(s):s&&s.length&&"string"!==n&&e(s)})})(arguments),i?o=l.length:s&&(r=e,c(s))}return this},remove:function(){return l&&_.each(arguments,function(t,e){for(var s;(s=_.inArray(e,l,s))>-1;)l.splice(s,1),i&&(o>=s&&o--,a>=s&&a--)}),this},has:function(t){return t?_.inArray(t,l)>-1:!(!l||!l.length)},empty:function(){return l=[],o=0,this},disable:function(){return l=h=s=e,this},disabled:function(){return!l},lock:function(){return h=e,s||u.disable(),this},locked:function(){return!h},fireWith:function(t,e){return!l||n&&!h||(e=[t,(e=e||[]).slice?e.slice():e],i?h.push(e):c(e)),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!n}};return u},_.extend({Deferred:function(t){var e=[["resolve","done",_.Callbacks("once memory"),"resolved"],["reject","fail",_.Callbacks("once memory"),"rejected"],["notify","progress",_.Callbacks("memory")]],i="pending",s={state:function(){return i},always:function(){return n.done(arguments).fail(arguments),this},then:function(){var t=arguments;return _.Deferred(function(i){_.each(e,function(e,o){var a=o[0],r=_.isFunction(t[e])&&t[e];n[o[1]](function(){var t=r&&r.apply(this,arguments);t&&_.isFunction(t.promise)?t.promise().done(i.resolve).fail(i.reject).progress(i.notify):i[a+"With"](this===s?i.promise():this,r?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?_.extend(t,s):s}},n={};return s.pipe=s.then,_.each(e,function(t,o){var a=o[2],r=o[3];s[o[1]]=a.add,r&&a.add(function(){i=r},e[1^t][2].disable,e[2][2].lock),n[o[0]]=function(){return n[o[0]+"With"](this===n?s:this,arguments),this},n[o[0]+"With"]=a.fireWith}),s.promise(n),t&&t.call(n,n),n},when:function(t){var e,i,s,n=0,o=m.call(arguments),a=o.length,r=1!==a||t&&_.isFunction(t.promise)?a:0,l=1===r?t:_.Deferred(),h=function(t,i,s){return function(n){i[t]=this,s[t]=arguments.length>1?m.call(arguments):n,s===e?l.notifyWith(i,s):--r||l.resolveWith(i,s)}};if(a>1)for(e=Array(a),i=Array(a),s=Array(a);a>n;n++)o[n]&&_.isFunction(o[n].promise)?o[n].promise().done(h(n,s,o)).fail(l.reject).progress(h(n,i,e)):--r;return r||l.resolveWith(s,o),l.promise()}}),_.support=function(e){var i,s,o,r,l,h,c,u,d,p=a.createElement("div");if(p.setAttribute("className","t"),p.innerHTML="  <link/><table></table><a href='/a'>a</a>
1<input type='checkbox'/>",i=p.getElementsByTagName("*")||[],!(s=p.getElementsByTagName("a")[0])||!s.style||!i.length)return e;h=(r=a.createElement("select")).appendChild(a.createElement("option")),o=p.getElementsByTagName("input")[0],s.style.cssText="top:1px;float:left;opacity:.5",e.getSetAttribute="t"!==p.className,e.leadingWhitespace=3===p.firstChild.nodeType,e.tbody=!p.getElementsByTagName("tbody").length,e.htmlSerialize=!!p.getElementsByTagName("link").length,e.style=/top/.test(s.getAttribute("style")),e.hrefNormalized="/a"===s.getAttribute("href"),e.opacity=/^0.5/.test(s.style.opacity),e.cssFloat=!!s.style.cssFloat,e.checkOn=!!o.value,e.optSelected=h.selected,e.enctype=!!a.createElement("form").enctype,e.html5Clone="<:nav></:nav>"!==a.createElement("nav").cloneNode(!0).outerHTML,e.inlineBlockNeedsLayout=!1,e.shrinkWrapBlocks=!1,e.pixelPosition=!1,e.deleteExpando=!0,e.noCloneEvent=!0,e.reliableMarginRight=!0,e.boxSizingReliable=!0,o.checked=!0,e.noCloneChecked=o.cloneNode(!0).checked,r.disabled=!0,e.optDisabled=!h.disabled;try{delete p.test}catch(t){e.deleteExpando=!1}for(d in(o=a.createElement("input")).setAttribute("value",""),e.input=""===o.getAttribute("value"),o.value="t",o.setAttribute("type","radio"),e.radioValue="t"===o.value,o.setAttribute("checked","t"),o.setAttribute("name","t"),(l=a.createDocumentFragment()).appendChild(o),e.appendChecked=o.checked,e.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,p.attachEvent&&(p.attachEvent("onclick",function(){e.noCloneEvent=!1}),p.cloneNode(!0).click()),{submit:!0,change:!0,focusin:!0})p.setAttribute(c="on"+d,"t"),e[d+"Bubbles"]=c in t||!1===p.attributes[c].expando;for(d in p.style.backgroundClip="content-box",p.cloneNode(!0).style.backgroundClip="",e.clearCloneStyle="content-box"===p.style.backgroundClip,_(e))break;return e.ownLast="0"!==d,_(function(){var i,s,o,r="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",l=a.getElementsByTagName("body")[0];l&&((i=a.createElement("div")).style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",l.appendChild(i).appendChild(p),p.innerHTML="<table><tr><td></td><td>t</td></tr></table>",(o=p.getElementsByTagName("td"))[0].style.cssText="padding:0;margin:0;border:0;display:none",u=0===o[0].offsetHeight,o[0].style.display="",o[1].style.display="none",e.reliableHiddenOffsets=u&&0===o[0].offsetHeight,p.innerHTML="",p.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",_.swap(l,null!=l.style.zoom?{zoom:1}:{},function(){e.boxSizing=4===p.offsetWidth}),t.getComputedStyle&&(e.pixelPosition="1%"!==(t.getComputedStyle(p,null)||{}).top,e.boxSizingReliable="4px"===(t.getComputedStyle(p,null)||{width:"4px"}).width,(s=p.appendChild(a.createElement("div"))).style.cssText=p.style.cssText=r,s.style.marginRight=s.style.width="0",p.style.width="1px",e.reliableMarginRight=!parseFloat((t.getComputedStyle(s,null)||{}).marginRight)),typeof p.style.zoom!==n&&(p.innerHTML="",p.style.cssText=r+"width:1px;padding:1px;display:inline;zoom:1",e.inlineBlockNeedsLayout=3===p.offsetWidth,p.style.display="block",p.innerHTML="<div></div>",p.firstChild.style.width="5px",e.shrinkWrapBlocks=3!==p.offsetWidth,e.inlineBlockNeedsLayout&&(l.style.zoom=1)),l.removeChild(i),i=p=o=s=null)}),i=r=l=h=s=o=null,e}({});var L=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,F=/([A-Z])/g;function R(t,i,s,n){if(_.acceptData(t)){var o,a,r=_.expando,l=t.nodeType,h=l?_.cache:t,c=l?t[r]:t[r]&&r;if(c&&h[c]&&(n||h[c].data)||s!==e||"string"!=typeof i)return c||(c=l?t[r]=u.pop()||_.guid++:r),h[c]||(h[c]=l?{}:{toJSON:_.noop}),("object"==typeof i||"function"==typeof i)&&(n?h[c]=_.extend(h[c],i):h[c].data=_.extend(h[c].data,i)),a=h[c],n||(a.data||(a.data={}),a=a.data),s!==e&&(a[_.camelCase(i)]=s),"string"==typeof i?null==(o=a[i])&&(o=a[_.camelCase(i)]):o=a,o}}function z(t,e,i){if(_.acceptData(t)){var s,n,o=t.nodeType,a=o?_.cache:t,r=o?t[_.expando]:_.expando;if(a[r]){if(e&&(s=i?a[r]:a[r].data)){_.isArray(e)?e=e.concat(_.map(e,_.camelCase)):e in s?e=[e]:e=(e
1=_.camelCase(e))in s?[e]:e.split(" "),n=e.length;for(;n--;)delete s[e[n]];if(i?!W(s):!_.isEmptyObject(s))return}(i||(delete a[r].data,W(a[r])))&&(o?_.cleanData([t],!0):_.support.deleteExpando||a!=a.window?delete a[r]:a[r]=null)}}}function $(t,i,s){if(s===e&&1===t.nodeType){var n="data-"+i.replace(F,"-$1").toLowerCase();if("string"==typeof(s=t.getAttribute(n))){try{s="true"===s||"false"!==s&&("null"===s?null:+s+""===s?+s:L.test(s)?_.parseJSON(s):s)}catch(t){}_.data(t,i,s)}else s=e}return s}function W(t){var e;for(e in t)if(("data"!==e||!_.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}_.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return!!(t=t.nodeType?_.cache[t[_.expando]]:t[_.expando])&&!W(t)},data:function(t,e,i){return R(t,e,i)},removeData:function(t,e){return z(t,e)},_data:function(t,e,i){return R(t,e,i,!0)},_removeData:function(t,e){return z(t,e,!0)},acceptData:function(t){if(t.nodeType&&1!==t.nodeType&&9!==t.nodeType)return!1;var e=t.nodeName&&_.noData[t.nodeName.toLowerCase()];return!e||!0!==e&&t.getAttribute("classid")===e}}),_.fn.extend({data:function(t,i){var s,n,o=null,a=0,r=this[0];if(t===e){if(this.length&&(o=_.data(r),1===r.nodeType&&!_._data(r,"parsedAttrs"))){for(s=r.attributes;s.length>a;a++)0===(n=s[a].name).indexOf("data-")&&$(r,n=_.camelCase(n.slice(5)),o[n]);_._data(r,"parsedAttrs",!0)}return o}return"object"==typeof t?this.each(function(){_.data(this,t)}):arguments.length>1?this.each(function(){_.data(this,t,i)}):r?$(r,t,_.data(r,t)):null},removeData:function(t){return this.each(function(){_.removeData(this,t)})}}),_.extend({queue:function(t,i,s){var n;return t?(i=(i||"fx")+"queue",n=_._data(t,i),s&&(!n||_.isArray(s)?n=_._data(t,i,_.makeArray(s)):n.push(s)),n||[]):e},dequeue:function(t,e){e=e||"fx";var i=_.queue(t,e),s=i.length,n=i.shift(),o=_._queueHooks(t,e);"inprogress"===n&&(n=i.shift(),s--),n&&("fx"===e&&i.unshift("inprogress"),delete o.stop,n.call(t,function(){_.dequeue(t,e)},o)),!s&&o&&o.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return _._data(t,i)||_._data(t,i,{empty:_.Callbacks("once memory").add(function(){_._removeData(t,e+"queue"),_._removeData(t,i)})})}}),_.fn.extend({queue:function(t,i){var s=2;return"string"!=typeof t&&(i=t,t="fx",s--),s>arguments.length?_.queue(this[0],t):i===e?this:this.each(function(){var e=_.queue(this,t,i);_._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&_.dequeue(this,t)})},dequeue:function(t){return this.each(function(){_.dequeue(this,t)})},delay:function(t,e){return t=_.fx&&_.fx.speeds[t]||t,e=e||"fx",this.queue(e,function(e,i){var s=setTimeout(e,t);i.stop=function(){clearTimeout(s)}})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,i){var s,n=1,o=_.Deferred(),a=this,r=this.length,l=function(){--n||o.resolveWith(a,[a])};for("string"!=typeof t&&(i=t,t=e),t=t||"fx";r--;)(s=_._data(a[r],t+"queueHooks"))&&s.empty&&(n++,s.empty.add(l));return l(),o.promise(i)}});var B,q,V=/[\t\r\n\f]/g,U=/\r/g,Y=/^(?:input|select|textarea|button|object)$/i,X=/^(?:a|area)$/i,K=/^(?:checked|selected)$/i,Q=_.support.getSetAttribute,G=_.support.input;_.fn.extend({attr:function(t,e){return _.access(this,_.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){_.removeAttr(this,t)})},prop:function(t,e){return _.access(this,_.prop,t,e,arguments.length>1)},removeProp:function(t){return t=_.propFix[t]||t,this.each(function(){try{this[t]=e,delete this[t]}catch(t){}})},addClass:function(t){var e,i,s,n,o,a=0,r=this.length,l="string"==typeof t&&t;if(_.isFunction(t))return this.each(function(e){_(this).addClass(t.call(this,e,this.className))});if(l)for(e=(t||"").match(k)||[];r>a;a++)if(s=1===(i=this[a]).nodeType&&(i.className?(" "+i.className+" ").replace(V," "):" ")){for(o=0;n=e[o++];)0>s.indexOf(" "+n+" ")&&(s+=n+" ");i.className=_.trim(s)}return this},removeClass:function(t){var e,i,s,n,o,a=0,r=this.length,l=0===arguments.length||"string"==typeof t&&t;if(_.isFunction(t))return this.each(function(e){_(this).removeClass(t.call(this,e,this.className))});if(l)for(e=(t||"").match(k)||[];r>a;a++)if(s=1===(i=this[a]).nodeType&&(i.className?(" "+i.className+" ").replace(V," "):"")){for(o=0;n=e[o++];)for(;s.indexOf(" "+n+" ")>=0;)s=s.replace(" "+n+" "," ");i.className=t?_.trim(s):""}return this},toggleClass:function(t,e){var i=typeof t;return"boolean"==typeof e&&"string"===i?e?this.addClass(t):this.removeClass(t):_.isFunction(t)?this.each(function(i){_(this).toggleClass(t.call(this,i,this.className,e),e)}):this.each(function(){if("string"===i)for(var e,s=0,o=_(this),a=t.match(k)||[];e=a[s++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else(i===n||"boolean"===i)&&(this.className&&_._data(this,"__className__",this.className),this.className=this.className||!1===t?"":_._data(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",i=0,s=this.length;s>i;i++)if(1===this[i].nodeType&&(" "+this[i].className+" ").replace(V," ").indexOf(e)>=0)return!0;return!1},val:function(t){var i,s,n,o=this[0];return arguments.length?(n=_.isFunction(t),this.each(function(i){var o;1===this.nodeType&&(null==(o=n?t.call(this,i,_(this).val()):t)?o="":"number"==typeof o?o+="":_.isArray(o)&&(o=_.map(o,function(t){return null==t?"":t+""})),(s=_.valHooks[this.type]||_.valHooks[this.nodeName.toLowerCase()])&&"set"in s&&s.set(this,o,"value")!==e||(this.value=o))})):o?(s=_.valHooks[o.type]||_.valHooks[o.nodeName.toLowerCase()])&&"get"in s&&(i=s.get(o,"value"))!==e?i:"string"==typeof(i=o.value)?i.replace(U,""):null==i?"":i:void 0}}),_.extend({valHooks:{option:{get:function(t){var e=_.find.attr(t,"value");return null!=e?e:t.text}},select:{get:function(t){for(var e,i,s=t.options,n=t.selectedIndex,o="select-one"===t.type||0>n,a=o?null:[],r=o?n+1:s.length,l=0>n?r:o?n:0;r>l;
1l++)if(!(!(i=s[l]).selected&&l!==n||(_.support.optDisabled?i.disabled:null!==i.getAttribute("disabled"))||i.parentNode.disabled&&_.nodeName(i.parentNode,"optgroup"))){if(e=_(i).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var i,s,n=t.options,o=_.makeArray(e),a=n.length;a--;)((s=n[a]).selected=_.inArray(_(s).val(),o)>=0)&&(i=!0);return i||(t.selectedIndex=-1),o}}},attr:function(t,i,s){var o,a,r=t.nodeType;if(t&&3!==r&&8!==r&&2!==r)return typeof t.getAttribute===n?_.prop(t,i,s):(1===r&&_.isXMLDoc(t)||(i=i.toLowerCase(),o=_.attrHooks[i]||(_.expr.match.bool.test(i)?q:B)),s===e?o&&"get"in o&&null!==(a=o.get(t,i))?a:null==(a=_.find.attr(t,i))?e:a:null!==s?o&&"set"in o&&(a=o.set(t,s,i))!==e?a:(t.setAttribute(i,s+""),s):(_.removeAttr(t,i),e))},removeAttr:function(t,e){var i,s,n=0,o=e&&e.match(k);if(o&&1===t.nodeType)for(;i=o[n++];)s=_.propFix[i]||i,_.expr.match.bool.test(i)?G&&Q||!K.test(i)?t[s]=!1:t[_.camelCase("default-"+i)]=t[s]=!1:_.attr(t,i,""),t.removeAttribute(Q?i:s)},attrHooks:{type:{set:function(t,e){if(!_.support.radioValue&&"radio"===e&&_.nodeName(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},propFix:{for:"htmlFor",class:"className"},prop:function(t,i,s){var n,o,a=t.nodeType;if(t&&3!==a&&8!==a&&2!==a)return(1!==a||!_.isXMLDoc(t))&&(i=_.propFix[i]||i,o=_.propHooks[i]),s!==e?o&&"set"in o&&(n=o.set(t,s,i))!==e?n:t[i]=s:o&&"get"in o&&null!==(n=o.get(t,i))?n:t[i]},propHooks:{tabIndex:{get:function(t){var e=_.find.attr(t,"tabindex");return e?parseInt(e,10):Y.test(t.nodeName)||X.test(t.nodeName)&&t.href?0:-1}}}}),q={set:function(t,e,i){return!1===e?_.removeAttr(t,i):G&&Q||!K.test(i)?t.setAttribute(!Q&&_.propFix[i]||i,i):t[_.camelCase("default-"+i)]=t[i]=!0,i}},_.each(_.expr.match.bool.source.match(/\w+/g),function(t,i){var s=_.expr.attrHandle[i]||_.find.attr;_.expr.attrHandle[i]=G&&Q||!K.test(i)?function(t,i,n){var o=_.expr.attrHandle[i],a=n?e:(_.expr.attrHandle[i]=e)!=s(t,i,n)?i.toLowerCase():null;return _.expr.attrHandle[i]=o,a}:function(t,i,s){return s?e:t[_.camelCase("default-"+i)]?i.toLowerCase():null}}),G&&Q||(_.attrHooks.value={set:function(t,i,s){return _.nodeName(t,"input")?(t.defaultValue=i,e):B&&B.set(t,i,s)}}),Q||(B={set:function(t,i,s){var n=t.getAttributeNode(s);return n||t.setAttributeNode(n=t.ownerDocument.createAttribute(s)),n.value=i+="","value"===s||i===t.getAttribute(s)?i:e}},_.expr.attrHandle.id=_.expr.attrHandle.name=_.expr.attrHandle.coords=function(t,i,s){var n;return s?e:(n=t.getAttributeNode(i))&&""!==n.value?n.value:null},_.valHooks.button={get:function(t,i){var s=t.getAttributeNode(i);return s&&s.specified?s.value:e},set:B.set},_.attrHooks.contenteditable={set:function(t,e,i){B.set(t,""!==e&&e,i)}},_.each(["width","height"],function(t,i){_.attrHooks[i]={set:function(t,s){return""===s?(t.setAttribute(i,"auto"),s):e}}})),_.support.hrefNormalized||_.each(["href","src"],function(t,e){_.propHooks[e]={get:function(t){return t.getAttribute(e,4)}}}),_.support.style||(_.attrHooks.style={get:function(t){return t.style.cssText||e},set:function(t,e){return t.style.cssText=e+""}}),_.support.optSelected||(_.propHooks.selected={get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null}}),_.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){_.propFix[this.toLowerCase()]=this}),_.support.enctype||(_.propFix.enctype="encoding"),_.each(["radio","checkbox"],function(){_.valHooks[this]={set:function(t,i){return _.isArray(i)?t.checked=_.inArray(_(t).val(),i)>=0:e}},_.support.checkOn||(_.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var J=/^(?:input|select|textarea)$/i,Z=/^key/,tt=/^(?:mouse|contextmenu)|click/,et=/^(?:focusinfocus|focusoutblur)$/,it=/^([^.]*)(?:\.(.+)|)$/;function st(){return!0}function nt(){return!1}function ot(){try{return a.activeElement}catch(t){}}_.event={global:{},add:function(t,i,s,o,a){var r,l,h,c,u,d,p,f,m,g,v,b=_._data(t);if(b){for(s.handler&&(s=(c=s).handler,a=c.selector),s.guid||(s.guid=_.guid++),(l=b.events)||(l=b.events={}),(d=b.handle)||((d=b.handle=function(t){return typeof _===n||t&&_.event.triggered===t.type?e:_.event.dispatch.apply(d.elem,arguments)}).elem=t),h=(i=(i||"").match(k)||[""]).length;h--;)m=v=(r=it.exec(i[h])||[])[1],g=(r[2]||"").split(".").sort(),m&&(u=_.event.special[m]||{},m=(a?u.delegateType:u.bindType)||m,u=_.event.special[m]||{},p=_.extend({type:m,origType:v,data:o,handler:s,guid:s.guid,selector:a,needsContext:a&&_.expr.match.needsContext.test(a),namespace:g.join(".")},c),(f=l[m])||((f=l[m]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(t,o,g,d)||(t.addEventListener?t.addEventListener(m,d,!1):t.attachEvent&&t.attachEvent("on"+m,d))),u.add&&(u.add.call(t,p),p.handler.guid||(p.handler.guid=s.guid)),a?f.splice(f.delegateCount++,0,p):f.push(p),_.event.global[m]=!0);t=null}}
1,remove:function(t,e,i,s,n){var o,a,r,l,h,c,u,d,p,f,m,g=_.hasData(t)&&_._data(t);if(g&&(c=g.events)){for(h=(e=(e||"").match(k)||[""]).length;h--;)if(p=m=(r=it.exec(e[h])||[])[1],f=(r[2]||"").split(".").sort(),p){for(u=_.event.special[p]||{},d=c[p=(s?u.delegateType:u.bindType)||p]||[],r=r[2]&&RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=d.length;o--;)a=d[o],!n&&m!==a.origType||i&&i.guid!==a.guid||r&&!r.test(a.namespace)||s&&s!==a.selector&&("**"!==s||!a.selector)||(d.splice(o,1),a.selector&&d.delegateCount--,u.remove&&u.remove.call(t,a));l&&!d.length&&(u.teardown&&!1!==u.teardown.call(t,f,g.handle)||_.removeEvent(t,p,g.handle),delete c[p])}else for(p in c)_.event.remove(t,p+e[h],i,s,!0);_.isEmptyObject(c)&&(delete g.handle,_._removeData(t,"events"))}},trigger:function(i,s,n,o){var r,l,h,c,u,d,p,f=[n||a],m=b.call(i,"type")?i.type:i,g=b.call(i,"namespace")?i.namespace.split("."):[];if(h=d=n=n||a,3!==n.nodeType&&8!==n.nodeType&&!et.test(m+_.event.triggered)&&(m.indexOf(".")>=0&&(g=m.split("."),m=g.shift(),g.sort()),l=0>m.indexOf(":")&&"on"+m,(i=i[_.expando]?i:new _.Event(m,"object"==typeof i&&i)).isTrigger=o?2:3,i.namespace=g.join("."),i.namespace_re=i.namespace?RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,i.result=e,i.target||(i.target=n),s=null==s?[i]:_.makeArray(s,[i]),u=_.event.special[m]||{},o||!u.trigger||!1!==u.trigger.apply(n,s))){if(!o&&!u.noBubble&&!_.isWindow(n)){for(c=u.delegateType||m,et.test(c+m)||(h=h.parentNode);h;h=h.parentNode)f.push(h),d=h;d===(n.ownerDocument||a)&&f.push(d.defaultView||d.parentWindow||t)}for(p=0;(h=f[p++])&&!i.isPropagationStopped();)i.type=p>1?c:u.bindType||m,(r=(_._data(h,"events")||{})[i.type]&&_._data(h,"handle"))&&r.apply(h,s),(r=l&&h[l])&&_.acceptData(h)&&r.apply&&!1===r.apply(h,s)&&i.preventDefault();if(i.type=m,!o&&!i.isDefaultPrevented()&&(!u._default||!1===u._default.apply(f.pop(),s))&&_.acceptData(n)&&l&&n[m]&&!_.isWindow(n)){(d=n[l])&&(n[l]=null),_.event.triggered=m;try{n[m]()}catch(t){}_.event.triggered=e,d&&(n[l]=d)}return i.result}},dispatch:function(t){t=_.event.fix(t);var i,s,n,o,a,r=[],l=m.call(arguments),h=(_._data(this,"events")||{})[t.type]||[],c=_.event.special[t.type]||{};if(l[0]=t,t.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,t)){for(r=_.event.handlers.call(this,t,h),i=0;(o=r[i++])&&!t.isPropagationStopped();)for(t.currentTarget=o.elem,a=0;(n=o.handlers[a++])&&!t.isImmediatePropagationStopped();)(!t.namespace_re||t.namespace_re.test(n.namespace))&&(t.handleObj=n,t.data=n.data,(s=((_.event.special[n.origType]||{}).handle||n.handler).apply(o.elem,l))!==e&&!1===(t.result=s)&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,i){var s,n,o,a,r=[],l=i.delegateCount,h=t.target;if(l&&h.nodeType&&(!t.button||"click"!==t.type))for(;h!=this;h=h.parentNode||this)if(1===h.nodeType&&(!0!==h.disabled||"click"!==t.type)){for(o=[],a=0;l>a;a++)o[s=(n=i[a]).selector+" "]===e&&(o[s]=n.needsContext?_(s,this).index(h)>=0:_.find(s,this,null,[h]).length),o[s]&&o.push(n);o.length&&r.push({elem:h,handlers:o})}return i.length>l&&r.push({elem:this,handlers:i.slice(l)}),r},fix:function(t){if(t[_.expando])return t;var e,i,s,n=t.type,o=t,r=this.fixHooks[n];for(r||(this.fixHooks[n]=r=tt.test(n)?this.mouseHooks:Z.test(n)?this.keyHooks:{}),s=r.props?this.props.concat(r.props):this.props,t=new _.Event(o),e=s.length;e--;)t[i=s[e]]=o[i];return t.target||(t.target=o.srcElement||a),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey=!!t.metaKey,r.filter?r.filter(t,o):t},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,i){var s,n,o,r=i.button,l=i.fromElement;return null==t.pageX&&null!=i.clientX&&(o=(n=t.target.ownerDocument||a).documentElement,s=n.body,t.pageX=i.clientX+(o&&o.scrollLeft||s&&s.scrollLeft||0)-(o&&o.clientLeft||s&&s.clientLeft||0),t.pageY=i.clientY+(o&&o.scrollTop||s&&s.scrollTop||0)-(o&&o.clientTop||s&&s.clientTop||0)),!t.relatedTarget&&l&&(t.relatedTarget=l===t.target?i.toElement:l),t.which||r===e||(t.which=1&r?1:2&r?3:4&r?2:0),t}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ot()&&this.focus)try{return this.focus(),!1}catch(t){}},delegateType:"focusin"},blur:{trigger:function(){return this===ot()&&this.blur?(this.blur(),!1):e},delegateType:"focusout"}
vendor: 12,855 bytes, line 1
1,click:{trigger:function(){return _.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):e},_default:function(t){return _.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){t.result!==e&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,i,s){var n=_.extend(new _.Event,i,{type:t,isSimulated:!0,originalEvent:{}});s?_.event.trigger(n,null,e):_.event.dispatch.call(e,n),n.isDefaultPrevented()&&i.preventDefault()}},_.removeEvent=a.removeEventListener?function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i,!1)}:function(t,e,i){var s="on"+e;t.detachEvent&&(typeof t[s]===n&&(t[s]=null),t.detachEvent(s,i))},_.Event=function(t,i){return this instanceof _.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||!1===t.returnValue||t.getPreventDefault&&t.getPreventDefault()?st:nt):this.type=t,i&&_.extend(this,i),this.timeStamp=t&&t.timeStamp||_.now(),this[_.expando]=!0,e):new _.Event(t,i)},_.Event.prototype={isDefaultPrevented:nt,isPropagationStopped:nt,isImmediatePropagationStopped:nt,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=st,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=st,t&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=st,this.stopPropagation()}},_.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(t,e){_.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,s=t.relatedTarget,n=t.handleObj;return(!s||s!==this&&!_.contains(this,s))&&(t.type=n.origType,i=n.handler.apply(this,arguments),t.type=e),i}}}),_.support.submitBubbles||(_.event.special.submit={setup:function(){return!_.nodeName(this,"form")&&(_.event.add(this,"click._submit keypress._submit",function(t){var i=t.target,s=_.nodeName(i,"input")||_.nodeName(i,"button")?i.form:e;s&&!_._data(s,"submitBubbles")&&(_.event.add(s,"submit._submit",function(t){t._submit_bubble=!0}),_._data(s,"submitBubbles",!0))}),e)},postDispatch:function(t){t._submit_bubble&&(delete t._submit_bubble,this.parentNode&&!t.isTrigger&&_.event.simulate("submit",this.parentNode,t,!0))},teardown:function(){return!_.nodeName(this,"form")&&(_.event.remove(this,"._submit"),e)}}),_.support.changeBubbles||(_.event.special.change={setup:function(){return J.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(_.event.add(this,"propertychange._change",function(t){"checked"===t.originalEvent.propertyName&&(this._just_changed=!0)}),_.event.add(this,"click._change",function(t){this._just_changed&&!t.isTrigger&&(this._just_changed=!1),_.event.simulate("change",this,t,!0)})),!1):(_.event.add(this,"beforeactivate._change",function(t){var e=t.target;J.test(e.nodeName)&&!_._data(e,"changeBubbles")&&(_.event.add(e,"change._change",function(t){!this.parentNode||t.isSimulated||t.isTrigger||_.event.simulate("change",this.parentNode,t,!0)}),_._data(e,"changeBubbles",!0))}),e)},handle:function(t){var i=t.target;return this!==i||t.isSimulated||t.isTrigger||"radio"!==i.type&&"checkbox"!==i.type?t.handleObj.handler.apply(this,arguments):e},teardown:function(){return _.event.remove(this,"._change"),!J.test(this.nodeName)}}),_.support.focusinBubbles||_.each({focus:"focusin",blur:"focusout"},function(t,e){var i=0,s=function(t){_.event.simulate(e,t.target,_.event.fix(t),!0)};_.event.special[e]={setup:function(){0==i++&&a.addEventListener(t,s,!0)},teardown:function(){0==--i&&a.removeEventListener(t,s,!0)}}}),_.fn.extend({on:function(t,i,s,n,o){var a,r;if("object"==typeof t){for(a in"string"!=typeof i&&(s=s||i,i=e),t)this.on(a,i,s,t[a],o);return this}if(null==s&&null==n?(n=i,s=i=e):null==n&&("string"==typeof i?(n=s,s=e):(n=s,s=i,i=e)),!1===n)n=nt;else if(!n)return this;return 1===o&&(r=n,(n=function(t){return _().off(t),r.apply(this,arguments)}).guid=r.guid||(r.guid=_.guid++)),this.each(function(){_.event.add(this,t,n,s,i)})},one:function(t,e,i,s){return this.on(t,e,i,s,1)},off:function(t,i,s){var n,o;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,_(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(o in t)this.off(o,i,t[o]);return this}return(!1===i||"function"==typeof i)&&(s=i,i=e),!1===s&&(s=nt),this.each(function(){_.event.remove(this,t,s,i)})},trigger:function(t,e){return this.each(function(){_.event.trigger(t,e,this)})},triggerHandler:function(t,i){var s=this[0];return s?_.event.trigger(t,i,s,!0):e}});var at=/^.[^:#\[\.,]*$/,rt=/^(?:parents|prev(?:Until|All))/,lt=_.expr.match.needsContext,ht={children:!0,contents:!0,next:!0,prev:!0};function ct(t,e){do{t=t[e]}while(t&&1!==t.nodeType);return t}function ut(t,e,i){if(_.isFunction(e))return _.grep(t,function(t,s){return!!e.call(t,s,t)!==i});if(e.nodeType)return _.grep(t,function(t){return t===e!==i});if("string"==typeof e){if(at.test(e))return _.filter(e,t,i);e=_.filter(e,t)}return _.grep(t,function(t){return _.inArray(t,e)>=0!==i})}function dt(t){var e=pt.split("|"),i=t.createDocumentFragment();if(i.createElement)for(;e.length;)i.createElement(e.pop());return i}_.fn.extend({find:function(t){var e,i=[],s=this,n=s.length;if("string"!=typeof t)return this.pushStack(_(t).filter(function(){for(e=0;n>e;e++)if(_.contains(s[e],this))return!0}));for(e=0;n>e;e++)_.find(t,s[e],i);return(i=this.pushStack(n>1?_.unique(i):i)).selector=this.selector?this.selector+" "+t:t,i},has:function(t){var e,i=_(t,this),s=i.length;return this.filter(function(){for(e=0;s>e;e++)if(_.contains(this,i[e]))return!0})},not:function(t){return this.pushStack(ut(this,t||[],!0))},filter:function(t){return this.pushStack(ut(this,t||[],!1))},is:function(t){return!!ut(this,"string"==typeof t&&lt.test(t)?_(t):t||[],!1).length},closest:function(t,e){for(var i,s=0,n=this.length,o=[],a=lt.test(t)||"string"!=typeof t?_(t,e||this.context):0;n>s;s++)for(i=this[s];i&&i!==e;i=i.parentNode)if(11>i.nodeType&&(a?a.index(i)>-1:1===i.nodeType&&_.find.matchesSelector(i,t))){i=o.push(i);break}return this.pushStack(o.length>1?_.unique(o):o)},index:function(t){return t?"string"==typeof t?_.inArray(this[0],_(t)):_.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){var i="string"==typeof t?_(t,e):_.makeArray(t&&t.nodeType?[t]:t),s=_.merge(this.get(),i);return this.pushStack(_.unique(s))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),_.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return _.dir(t,"parentNode")},parentsUntil:function(t,e,i){return _.dir(t,"parentNode",i)},next:function(t){return ct(t,"nextSibling")},prev:function(t){return ct(t,"previousSibling")},nextAll:function(t){return _.dir(t,"nextSibling")},prevAll:function(t){return _.dir(t,"previousSibling")},nextUntil:function(t,e,i){return _.dir(t,"nextSibling",i)},prevUntil:function(t,e,i){return _.dir(t,"previousSibling",i)},siblings:function(t){return _.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return _.sibling(t.firstChild)},contents:function(t){return _.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:_.merge([],t.childNodes)}},function(t,e){_.fn[t]=function(i,s){var n=_.map(this,e,i);return"Until"!==t.slice(-5)&&(s=i),s&&"string"==typeof s&&(n=_.filter(s,n)),this.length>1&&(ht[t]||(n=_.unique(n)),rt.test(t)&&(n=n.reverse())),this.pushStack(n)}}),_.extend({filter:function(t,e,i){var s=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===s.nodeType?_.find.matchesSelector(s,t)?[s]:[]:_.find.matches(t,_.grep(e,function(t){return 1===t.nodeType}))},dir:function(t,i,s){for(var n=[],o=t[i];o&&9!==o.nodeType&&(s===e||1!==o.nodeType||!_(o).is(s));)1===o.nodeType&&n.push(o),o=o[i];return n},sibling:function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i}});var pt="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ft=/ jQuery\d+="(?:null|\d+)"/g,mt=RegExp("<(?:"+pt+")[\\s/>]","i"),gt=/^\s+/,vt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bt=/<([\w:]+)/,yt=/<tbody/i,_t=/<|&#?\w+;/,wt=/<(?:script|style|link)/i,kt=/^(?:checkbox|radio)$/i,xt=/checked\s*(?:[^=]|=\s*.checked.)/i,Ct=/^$|\/(?:java|ecma)script/i,jt=/^true\/(.*)/,Tt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Pt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:_.support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},St=dt(a).appendChild(a.createElement("div"));function Dt(t,e){return _.nodeName(t,"table")&&_.nodeName(1===e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function Et(t){return t.type=(null!==_.find.attr(t,"type"))+"/"+t.type,t}function It(t){var e=jt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function Nt(t,e){for(var i,s=0;null!=(i=t[s]);s++)_._data(i,"globalEval",!e||_._data(e[s],"globalEval"))}function Mt(t,e){if(1===e.nodeType&&_.hasData(t)){var i,s,n,o=_._data(t),a=_._data(e,o),r=o.events;if(r)for(i in delete a.handle,a.events={},r)for(s=0,n=r[i].length;n>s;s++)_.event.add(e,i,r[i][s]);a.data&&(a.data=_.extend({},a.data))}}function At(t,e){var i,s,n;if(1===e.nodeType){if(i=e.nodeName.toLowerCase(),!_.support.noCloneEvent&&e[_.expando]){for(s in(n=_._data(e)).events)_.removeEvent(e,s,n.handle);e.removeAttribute(_.expando)}"script"===i&&e.text!==t.text?(Et(e).text=t.text,It(e)):"object"===i?(e.parentNode&&(e.outerHTML=t.outerHTML),_.support.html5Clone&&t.innerHTML&&!_.trim(e.innerHTML)&&(e.innerHTML=t.innerHTML)):"input"===i&&kt.test(t.type)?(e.defaultChecked=e.checked=t.checked,e.value!==t.value&&(e.value=t.value)):"option"===i?e.defaultSelected=e.selected=t.defaultSelected:("input"===i||"textarea"===i)&&(e.defaultValue=t.defaultValue)}}function Ot(t,i){var s,o,a=0,r=typeof t.getElementsByTagName!==n?t.getElementsByTagName(i||"*"):typeof t.querySelectorAll!==n?t.querySelectorAll(i||"*"):e;if(!r)for(r=[],s=t.childNodes||t;null!=(o=s[a]);a++)!i||_.nodeName(o,i)?r.push(o):_.merge(r,Ot(o,i));return i===e||i&&_.nodeName(t,i)?_.merge([t],r):r}function Ht(t){kt.test(t.type)&&(t.defaultChecked=t.checked)}Pt.optgroup=Pt.option,Pt.tbody=Pt.tfoot=Pt.colgroup=Pt.caption=Pt.thead,Pt.th=Pt.td,_.fn.extend({text:function(t){return _.access(this,function(t){return t===e?_.text(this):this.empty().append((this[0]&&this[0].ownerDocument||a).createTextNode(t))},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Dt(this,t).appendChild(t)})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Dt(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var i,s=t?_.filter(t,this):this,n=0;null!=(i=s[n]);n++)e||1!==i.nodeType||_.cleanData(Ot(i)),i.parentNode&&(e&&_.contains(i.ownerDocument,i)&&Nt(Ot(i,"script")),i.parentNode.removeChild(i));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&_.cleanData(Ot(t,!1));t.firstChild;)t.removeChild(t.firstChild);t.options&&_.nodeName(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return _.clone(this,t,e)})},html:function(t){return _.access(this,function(t){var i=this[0]||{},s=0,n=this.length;if(t===e)return 1===i.nodeType?i.innerHTML.replace(ft,""):e;if(!("string"!=typeof t||wt.test(t)||!_.support.htmlSerialize&&mt.test(t)||!_.support.leadingWhitespace&&gt.test(t)||Pt[(bt.exec(t)||["",""])[1].toLowerCase()])){t=t.replace(vt,"<$1></$2>");try{for(;n>s;s++)1===(i=this[s]||{}).nodeType&&(_.cleanData(Ot(i,!1)),i.innerHTML=t);i=0}catch(t){}}i&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=_.map(this,function(t){return[t.nextSibling,t.parentNode]}),e=0;return this.domManip(arguments,function(i){var s=t[e++],n=t[e++];n&&(s&&s.parentNode!==n&&(s=this.nextSibling),_(this).remove(),n.insertBefore(i,s))},!0),e?this:this.remove()},detach:function(t){return this.remove(t,!0)}
vendor: 4,098 bytes, line 1
1,domManip:function(t,e,i){t=p.apply([],t);var s,n,o,a,r,l,h=0,c=this.length,u=this,d=c-1,f=t[0],m=_.isFunction(f);if(m||!(1>=c||"string"!=typeof f||_.support.checkClone)&&xt.test(f))return this.each(function(s){var n=u.eq(s);m&&(t[0]=f.call(this,s,n.html())),n.domManip(t,e,i)});if(c&&(s=(l=_.buildFragment(t,this[0].ownerDocument,!1,!i&&this)).firstChild,1===l.childNodes.length&&(l=s),s)){for(o=(a=_.map(Ot(l,"script"),Et)).length;c>h;h++)n=l,h!==d&&(n=_.clone(n,!0,!0),o&&_.merge(a,Ot(n,"script"))),e.call(this[h],n,h);if(o)for(r=a[a.length-1].ownerDocument,_.map(a,It),h=0;o>h;h++)n=a[h],Ct.test(n.type||"")&&!_._data(n,"globalEval")&&_.contains(r,n)&&(n.src?_._evalUrl(n.src):_.globalEval((n.text||n.textContent||n.innerHTML||"").replace(Tt,"")));l=s=null}return this}}),_.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){_.fn[t]=function(t){for(var i,s=0,n=[],o=_(t),a=o.length-1;a>=s;s++)i=s===a?this:this.clone(!0),_(o[s])[e](i),f.apply(n,i.get());return this.pushStack(n)}}),_.extend({clone:function(t,e,i){var s,n,o,a,r,l=_.contains(t.ownerDocument,t);if(_.support.html5Clone||_.isXMLDoc(t)||!mt.test("<"+t.nodeName+">")?o=t.cloneNode(!0):(St.innerHTML=t.outerHTML,St.removeChild(o=St.firstChild)),!(_.support.noCloneEvent&&_.support.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||_.isXMLDoc(t)))for(s=Ot(o),r=Ot(t),a=0;null!=(n=r[a]);++a)s[a]&&At(n,s[a]);if(e)if(i)for(r=r||Ot(t),s=s||Ot(o),a=0;null!=(n=r[a]);a++)Mt(n,s[a]);else Mt(t,o);return(s=Ot(o,"script")).length>0&&Nt(s,!l&&Ot(t,"script")),s=r=n=null,o},buildFragment:function(t,e,i,s){for(var n,o,a,r,l,h,c,u=t.length,d=dt(e),p=[],f=0;u>f;f++)if((o=t[f])||0===o)if("object"===_.type(o))_.merge(p,o.nodeType?[o]:o);else if(_t.test(o)){for(r=r||d.appendChild(e.createElement("div")),l=(bt.exec(o)||["",""])[1].toLowerCase(),c=Pt[l]||Pt._default,r.innerHTML=c[1]+o.replace(vt,"<$1></$2>")+c[2],n=c[0];n--;)r=r.lastChild;if(!_.support.leadingWhitespace&&gt.test(o)&&p.push(e.createTextNode(gt.exec(o)[0])),!_.support.tbody)for(n=(o="table"!==l||yt.test(o)?"<table>"!==c[1]||yt.test(o)?0:r:r.firstChild)&&o.childNodes.length;n--;)_.nodeName(h=o.childNodes[n],"tbody")&&!h.childNodes.length&&o.removeChild(h);for(_.merge(p,r.childNodes),r.textContent="";r.firstChild;)r.removeChild(r.firstChild);r=d.lastChild}else p.push(e.createTextNode(o));for(r&&d.removeChild(r),_.support.appendChecked||_.grep(Ot(p,"input"),Ht),f=0;o=p[f++];)if((!s||-1===_.inArray(o,s))&&(a=_.contains(o.ownerDocument,o),r=Ot(d.appendChild(o),"script"),a&&Nt(r),i))for(n=0;o=r[n++];)Ct.test(o.type||"")&&i.push(o);return r=null,d},cleanData:function(t,e){for(var i,s,o,a,r=0,l=_.expando,h=_.cache,c=_.support.deleteExpando,d=_.event.special;null!=(i=t[r]);r++)if((e||_.acceptData(i))&&(a=(o=i[l])&&h[o])){if(a.events)for(s in a.events)d[s]?_.event.remove(i,s):_.removeEvent(i,s,a.handle);h[o]&&(delete h[o],c?delete i[l]:typeof i.removeAttribute!==n?i.removeAttribute(l):i[l]=null,u.push(o))}},_evalUrl:function(t){return _.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})}}),_.fn.extend({wrapAll:function(t){if(_.isFunction(t))return this.each(function(e){_(this).wrapAll(t.call(this,e))});if(this[0]){var e=_(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t}).append(this)}return this},wrapInner:function(t){return _.isFunction(t)?this.each(function(e){_(this).wrapInner(t.call(this,e))}):this.each(function(){var e=_(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)})},wrap:function(t){var e=_.isFunction(t);return this.each(function(i){_(this).wrapAll(e?t.call(this,i):t)})},unwrap:function(){return this.parent().each(function(){_.nodeName(this,"body")||_(this).replaceWith(this.childNodes)}).end()}});var Lt,Ft,Rt,zt=/alpha\([^)]*\)/i,$t=/opacity\s*=\s*([^)]*)/,Wt=/^(top|right|bottom|left)$/,Bt=/^(none|table(?!-c[ea]).+)/,qt=/^margin/,Vt=RegExp("^("+w+")(.*)$","i"),Ut=RegExp("^("+w+")(?!px)[a-z%]+$","i"),Yt=Reg
vendor: 9,977 bytes, line 1
1Exp("^([+-])=("+w+")","i"),Xt={BODY:"block"},Kt={position:"absolute",visibility:"hidden",display:"block"},Qt={letterSpacing:0,fontWeight:400},Gt=["Top","Right","Bottom","Left"],Jt=["Webkit","O","Moz","ms"];function Zt(t,e){if(e in t)return e;for(var i=e.charAt(0).toUpperCase()+e.slice(1),s=e,n=Jt.length;n--;)if((e=Jt[n]+i)in t)return e;return s}function te(t,e){return t=e||t,"none"===_.css(t,"display")||!_.contains(t.ownerDocument,t)}function ee(t,e){for(var i,s,n,o=[],a=0,r=t.length;r>a;a++)(s=t[a]).style&&(o[a]=_._data(s,"olddisplay"),i=s.style.display,e?(o[a]||"none"!==i||(s.style.display=""),""===s.style.display&&te(s)&&(o[a]=_._data(s,"olddisplay",oe(s.nodeName)))):o[a]||(n=te(s),(i&&"none"!==i||!n)&&_._data(s,"olddisplay",n?i:_.css(s,"display"))));for(a=0;r>a;a++)(s=t[a]).style&&(e&&"none"!==s.style.display&&""!==s.style.display||(s.style.display=e?o[a]||"":"none"));return t}function ie(t,e,i){var s=Vt.exec(e);return s?Math.max(0,s[1]-(i||0))+(s[2]||"px"):e}function se(t,e,i,s,n){for(var o=i===(s?"border":"content")?4:"width"===e?1:0,a=0;4>o;o+=2)"margin"===i&&(a+=_.css(t,i+Gt[o],!0,n)),s?("content"===i&&(a-=_.css(t,"padding"+Gt[o],!0,n)),"margin"!==i&&(a-=_.css(t,"border"+Gt[o]+"Width",!0,n))):(a+=_.css(t,"padding"+Gt[o],!0,n),"padding"!==i&&(a+=_.css(t,"border"+Gt[o]+"Width",!0,n)));return a}function ne(t,e,i){var s=!0,n="width"===e?t.offsetWidth:t.offsetHeight,o=Ft(t),a=_.support.boxSizing&&"border-box"===_.css(t,"boxSizing",!1,o);if(0>=n||null==n){if((0>(n=Rt(t,e,o))||null==n)&&(n=t.style[e]),Ut.test(n))return n;s=a&&(_.support.boxSizingReliable||n===t.style[e]),n=parseFloat(n)||0}return n+se(t,e,i||(a?"border":"content"),s,o)+"px"}function oe(t){var e=a,i=Xt[t];return i||("none"!==(i=ae(t,e))&&i||((e=((Lt=(Lt||_("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(e.documentElement))[0].contentWindow||Lt[0].contentDocument).document).write("<!doctype html><html><body>"),e.close(),i=ae(t,e),Lt.detach()),Xt[t]=i),i}function ae(t,e){var i=_(e.createElement(t)).appendTo(e.body),s=_.css(i[0],"display");return i.remove(),s}_.fn.extend({css:function(t,i){return _.access(this,function(t,i,s){var n,o,a={},r=0;if(_.isArray(i)){for(o=Ft(t),n=i.length;n>r;r++)a[i[r]]=_.css(t,i[r],!1,o);return a}return s!==e?_.style(t,i,s):_.css(t,i)},t,i,arguments.length>1)},show:function(){return ee(this,!0)},hide:function(){return ee(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){te(this)?_(this).show():_(this).hide()})}}),_.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=Rt(t,"opacity");return""===i?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:_.support.cssFloat?"cssFloat":"styleFloat"},style:function(t,i,s,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,a,r,l=_.camelCase(i),h=t.style;if(i=_.cssProps[l]||(_.cssProps[l]=Zt(h,l)),r=_.cssHooks[i]||_.cssHooks[l],s===e)return r&&"get"in r&&(o=r.get(t,!1,n))!==e?o:h[i];if("string"===(a=typeof s)&&(o=Yt.exec(s))&&(s=(o[1]+1)*o[2]+parseFloat(_.css(t,i)),a="number"),!(null==s||"number"===a&&isNaN(s)||("number"!==a||_.cssNumber[l]||(s+="px"),_.support.clearCloneStyle||""!==s||0!==i.indexOf("background")||(h[i]="inherit"),r&&"set"in r&&(s=r.set(t,s,n))===e)))try{h[i]=s}catch(t){}}},css:function(t,i,s,n){var o,a,r,l=_.camelCase(i);return i=_.cssProps[l]||(_.cssProps[l]=Zt(t.style,l)),(r=_.cssHooks[i]||_.cssHooks[l])&&"get"in r&&(a=r.get(t,!0,s)),a===e&&(a=Rt(t,i,n)),"normal"===a&&i in Qt&&(a=Qt[i]),""===s||s?(o=parseFloat(a),!0===s||_.isNumeric(o)?o||0:a):a}}),t.getComputedStyle?(Ft=function(e){return t.getComputedStyle(e,null)},Rt=function(t,i,s){var n,o,a,r=s||Ft(t),l=r?r.getPropertyValue(i)||r[i]:e,h=t.style;return r&&(""!==l||_.contains(t.ownerDocument,t)||(l=_.style(t,i)),Ut.test(l)&&qt.test(i)&&(n=h.width,o=h.minWidth,a=h.maxWidth,h.minWidth=h.maxWidth=h.width=l,l=r.width,h.width=n,h.minWidth=o,h.maxWidth=a)),l}):a.documentElement.currentStyle&&(Ft=function(t){return t.currentStyle},Rt=function(t,i,s){var n,o,a,r=s||Ft(t),l=r?r[i]:e,h=t.style;return null==l&&h&&h[i]&&(l=h[i]),Ut.test(l)&&!Wt.test(i)&&(n=h.left,(a=(o=t.runtimeStyle)&&o.left)&&(o.left=t.currentStyle.left),h.left="fontSize"===i?"1em":l,l=h.pixelLeft+"px",h.left=n,a&&(o.left=a)),""===l?"auto":l}),_.each(["height","width"],function(t,i){_.cssHooks[i]={get:function(t,s,n){return s?0===t.offsetWidth&&Bt.test(_.css(t,"display"))?_.swap(t,Kt,function(){return ne(t,i,n)}):ne(t,i,n):e},set:function(t,e,s){var n=s&&Ft(t);return ie(0,e,s?se(t,i,s,_.support.boxSizing&&"border-box"===_.css(t,"boxSizing",!1,n),n):0)}}}),_.support.opacity||(_.cssHooks.opacity={get:function(t,e){return $t.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":e?"1":""},set:function(t,e){var i=t.style,s=t.currentStyle,n=_.isNumeric(e)?"alpha(opacity="+100*e+")":"",o=s&&s.filter||i.filter||"";i.zoom=1,(e>=1||""===e)&&""===_.trim(o.replace(zt,""))&&i.removeAttribute&&(i.removeAttribute("filter"),""===e||s&&!s.filter)||(i.filter=zt.test(o)?o.replace(zt,n):o+" "+n)}}),_(function(){_.support.reliableMarginRight||(_.cssHooks.marginRight={get:function(t,i){return i?_.swap(t,{display:"inline-block"},Rt,[t,"marginRight"]):e}}),!_.support.pixelPosition&&_.fn.position&&_.each(["top","left"],function(t,i){_.cssHooks[i]={get:function(t,s){return s?(s=Rt(t,i),Ut.test(s)?_(t).position()[i]+"px":s):e}}})}),_.expr&&_.expr.filters&&(_.expr.filters.hidden=function(t){return 0>=t.offsetWidth&&0>=t.offsetHeight||!_.support.reliableHiddenOffsets&&"none"===(t.style&&t.style.display||_.css(t,"display"))},_.expr.filters.visible=function(t){return!_.expr.filters.hidden(t)}),_.each({margin:"",padding:"",border:"Width"},function(t,e){_.cssHooks[t+e]={expand:function(i){for(var s=0,n={},o="string"==typeof i?i.split(" "):[i];4>s;s++)n[t+Gt[s]+e]=o[s]||o[s-2]||o[0];return n}},qt.test(t)||(_.cssHooks[t+e].set=ie)});var re=/%20/g,le=/\[\]$/,he=/\r?\n/g,ce=/^(?:submit|button|image|reset|file)$/i,ue=/^(?:input|select|textarea|keygen)/i;function de(t,e,i,s){var n;if(_.isArray(e))_.each(e,function(e,n){i||le.test(t)?s(t,n):de(t+"["+("object"==typeof n?e:"")+"]",n,i,s)});else if(i||"object"!==_.type(e))s(t,e);else for(n in e)de(t+"["+n+"]",e[n],i,s)}_.fn.extend({serialize:function(){return _.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=_.prop(this,"elements");return t?_.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!_(this).is(":disabled")&&ue.test(this.nodeName)&&!ce.test(t)&&(this.checked||!kt.test(t))}).map(function(t,e){var i=_(this).val();return null==i?null:_.isArray(i)?_.map(i,function(t){return{name:e.name,value:t.replace(he,"\r\n")}}):{name:e.name,value:i.replace(he,"\r\n")}}).get()}}),_.param=function(t,i){var s,n=[],o=function(t,e){e=_.isFunction(e)?e():null==e?"":e,n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(i===e&&(i=_.ajaxSettings&&_.ajaxSettings.traditional),_.isArray(t)||t.jquery&&!_.isPlainObject(t))_.each(t,function(){o(this.name,this.value)});else for(s in t)de(s,t[s],i,o);return n.join("&").replace(re,"+")},_.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){_.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}}),_.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,s){return this.on(e,t,i,s)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)}});var pe,fe,me=_.now(),ge=/\?/,ve=/#.*$/,be=/([?&])_=[^&]*/,ye=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,_e=/^(?:GET|HEAD)$/,we=/^\/\//,ke=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,xe=_.fn.load,Ce={},je={},Te="*/".concat("*");try{fe=o.href}catch(t){(fe=a.createElement("a")).href="",fe=fe.href}function Pe(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var s,n=0,o=e.toLowerCase().match(k)||[];if(_.isFunction(i))for(;s=o[n++];)"+"===s[0]?(s=s.slice(1)||"*",(t[s]=t[s]||[]).unshift(i)):(t[s]=t[s]||[]).push(i)}}function Se(t,i,s,n){var o={},a=t===je;function r(l){var h;return o[l]=!0,_.each(t[l]||[],function(t,l){var c=l(i,s,n);return"string"!=typeof c||a||o[c]?a?!(h=c):e:(i.dataTypes.unshift(c),r(c),!1)}),h}return r(i.dataTypes[0])||!o["*"]&&r("*")}function De(t,i){var s,n,o=_.ajaxSettings.flatOptions||{};for(n in i)i[n]!==e&&((o[n]?t:s||(s={}))[n]=i[n]);return s&&_.extend(!0,t,s),t}pe=ke.exec(fe.toLowerCase())||[],_.fn.load=function(t,i,s){if("string"!=typeof t&&xe)return xe.apply(this,arguments);var n,o,a,r=this,l=t.indexOf(" ");return l>=0&&(n=t.slice(l,t.length),t=t.slice(0,l)),_.isFunction(i)?(s=i,i=e):i&&"object"==typeof i&&(a="POST"),r.length>0&&_.ajax({url:t,type:a,dataType:"html",data:i}).done(function(t){o=arguments,r.html(n?_("<div>").append(_.parseHTML(t)).find(n):t)}).complete(s&&function(t,e){r.each(s,o||[t.responseText,e,t])}),this},_.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){_.fn[e]=function(t){return this.on(e,t)}}),_.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:fe,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(pe[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Te,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":_.parseJSON,"text xml":_.parseXML}
vendor: 4,246 bytes, line 1
1,flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?De(De(t,_.ajaxSettings),e):De(_.ajaxSettings,t)},ajaxPrefilter:Pe(Ce),ajaxTransport:Pe(je),ajax:function(t,i){"object"==typeof t&&(i=t,t=e),i=i||{};var s,n,o,a,r,l,h,c,u=_.ajaxSetup({},i),d=u.context||u,p=u.context&&(d.nodeType||d.jquery)?_(d):_.event,f=_.Deferred(),m=_.Callbacks("once memory"),g=u.statusCode||{},v={},b={},y=0,w="canceled",x={readyState:0,getResponseHeader:function(t){var e;if(2===y){if(!c)for(c={};e=ye.exec(a);)c[e[1].toLowerCase()]=e[2];e=c[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===y?a:null},setRequestHeader:function(t,e){var i=t.toLowerCase();return y||(t=b[i]=b[i]||t,v[t]=e),this},overrideMimeType:function(t){return y||(u.mimeType=t),this},statusCode:function(t){var e;if(t)if(2>y)for(e in t)g[e]=[g[e],t[e]];else x.always(t[x.status]);return this},abort:function(t){var e=t||w;return h&&h.abort(e),C(0,e),this}};if(f.promise(x).complete=m.add,x.success=x.done,x.error=x.fail,u.url=((t||u.url||fe)+"").replace(ve,"").replace(we,pe[1]+"//"),u.type=i.method||i.type||u.method||u.type,u.dataTypes=_.trim(u.dataType||"*").toLowerCase().match(k)||[""],null==u.crossDomain&&(s=ke.exec(u.url.toLowerCase()),u.crossDomain=!(!s||s[1]===pe[1]&&s[2]===pe[2]&&(s[3]||("http:"===s[1]?"80":"443"))===(pe[3]||("http:"===pe[1]?"80":"443")))),u.data&&u.processData&&"string"!=typeof u.data&&(u.data=_.param(u.data,u.traditional)),Se(Ce,u,i,x),2===y)return x;for(n in(l=u.global)&&0==_.active++&&_.event.trigger("ajaxStart"),u.type=u.type.toUpperCase(),u.hasContent=!_e.test(u.type),o=u.url,u.hasContent||(u.data&&(o=u.url+=(ge.test(o)?"&":"?")+u.data,delete u.data),!1===u.cache&&(u.url=be.test(o)?o.replace(be,"$1_="+me++):o+(ge.test(o)?"&":"?")+"_="+me++)),u.ifModified&&(_.lastModified[o]&&x.setRequestHeader("If-Modified-Since",_.lastModified[o]),_.etag[o]&&x.setRequestHeader("If-None-Match",_.etag[o])),(u.data&&u.hasContent&&!1!==u.contentType||i.contentType)&&x.setRequestHeader("Content-Type",u.contentType),x.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+Te+"; q=0.01":""):u.accepts["*"]),u.headers)x.setRequestHeader(n,u.headers[n]);if(u.beforeSend&&(!1===u.beforeSend.call(d,x,u)||2===y))return x.abort();for(n in w="abort",{success:1,error:1,complete:1})x[n](u[n]);if(h=Se(je,u,i,x)){x.readyState=1,l&&p.trigger("ajaxSend",[x,u]),u.async&&u.timeout>0&&(r=setTimeout(function(){x.abort("timeout")},u.timeout));try{y=1,h.send(v,C)}catch(t){if(!(2>y))throw t;C(-1,t)}}else C(-1,"No Transport");function C(t,i,s,n){var c,v,b,w,k,C=i;2!==y&&(y=2,r&&clearTimeout(r),h=e,a=n||"",x.readyState=t>0?4:0,c=t>=200&&300>t||304===t,s&&(w=function(t,i,s){var n,o,a,r,l=t.contents,h=t.dataTypes;for(;"*"===h[0];)h.shift(),o===e&&(o=t.mimeType||i.getResponseHeader("Content-Type"));if(o)for(r in l)if(l[r]&&l[r].test(o)){h.unshift(r);break}if(h[0]in s)a=h[0];else{for(r in s){if(!h[0]||t.converters[r+" "+h[0]]){a=r;break}n||(n=r)}a=a||n}return a?(a!==h[0]&&h.unshift(a),s[a]):e}(u,x,s)),w=function(t,e,i,s){var n,o,a,r,l,h={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)h[a.toLowerCase()]=t.converters[a];o=c.shift();for(;o;)if(t.responseFields[o]&&(i[t.responseFields[o]]=e),!l&&s&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=h[l+" "+o]||h["* "+o]))for(n in h)if((r=n.split(" "))[1]===o&&(a=h[l+" "+r[0]]||h["* "+r[0]])){!0===a?a=h[n]:!0!==h[n]&&(o=r[0],c.unshift(r[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(u,w,x,c),c?(u.ifModified&&((k=x.getResponseHeader("Last-Modified"))&&(_.lastModified[o]=k),(k=x.getResponseHeader("etag"))&&(_.etag[o]=k)),204===t||"HEAD"===u.type?C="nocontent":304===t?C="notmodified":(C=w.state,v=w.data,c=!(b=w.error))):(b=C,(t||!C)&&(C="error",0>t&&(t=0))),x.status=t,x.statusText=(i||C)+"",c?f.resolveWith(d,[v,C,x]):f.rejectWith(d,[x,C,b]),x.statusCode(g),g=e,l&&p.trigger(c?"ajaxSuccess":"ajaxError",[x,u,c?v:b]),m.fireWith(d,[x,C]),l&&(p.trigger("ajaxComplete",[x,u]),--_.active||_.event.trigger("ajaxStop")))}return x}
vendor: 4,491 bytes, line 1
1,getJSON:function(t,e,i){return _.get(t,e,i,"json")},getScript:function(t,i){return _.get(t,e,i,"script")}}),_.each(["get","post"],function(t,i){_[i]=function(t,s,n,o){return _.isFunction(s)&&(o=o||n,n=s,s=e),_.ajax({url:t,type:i,dataType:o,data:s,success:n})}}),_.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return _.globalEval(t),t}}}),_.ajaxPrefilter("script",function(t){t.cache===e&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),_.ajaxTransport("script",function(t){if(t.crossDomain){var i,s=a.head||_("head")[0]||a.documentElement;return{send:function(e,n){(i=a.createElement("script")).async=!0,t.scriptCharset&&(i.charset=t.scriptCharset),i.src=t.url,i.onload=i.onreadystatechange=function(t,e){(e||!i.readyState||/loaded|complete/.test(i.readyState))&&(i.onload=i.onreadystatechange=null,i.parentNode&&i.parentNode.removeChild(i),i=null,e||n(200,"success"))},s.insertBefore(i,s.firstChild)},abort:function(){i&&i.onload(e,!0)}}}});var Ee=[],Ie=/(=)\?(?=&|$)|\?\?/;_.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ee.pop()||_.expando+"_"+me++;return this[t]=!0,t}}),_.ajaxPrefilter("json jsonp",function(i,s,n){var o,a,r,l=!1!==i.jsonp&&(Ie.test(i.url)?"url":"string"==typeof i.data&&!(i.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ie.test(i.data)&&"data");return l||"jsonp"===i.dataTypes[0]?(o=i.jsonpCallback=_.isFunction(i.jsonpCallback)?i.jsonpCallback():i.jsonpCallback,l?i[l]=i[l].replace(Ie,"$1"+o):!1!==i.jsonp&&(i.url+=(ge.test(i.url)?"&":"?")+i.jsonp+"="+o),i.converters["script json"]=function(){return r||_.error(o+" was not called"),r[0]},i.dataTypes[0]="json",a=t[o],t[o]=function(){r=arguments},n.always(function(){t[o]=a,i[o]&&(i.jsonpCallback=s.jsonpCallback,Ee.push(o)),r&&_.isFunction(a)&&a(r[0]),r=a=e}),"script"):e});var Ne,Me,Ae=0,Oe=t.ActiveXObject&&function(){var t;for(t in Ne)Ne[t](e,!0)};function He(){try{return new t.XMLHttpRequest}catch(t){}}_.ajaxSettings.xhr=t.ActiveXObject?function(){return!this.isLocal&&He()||function(){try{return new t.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}()}:He,Me=_.ajaxSettings.xhr(),_.support.cors=!!Me&&"withCredentials"in Me,(Me=_.support.ajax=!!Me)&&_.ajaxTransport(function(i){var s;if(!i.crossDomain||_.support.cors)return{send:function(n,o){var a,r,l=i.xhr();if(i.username?l.open(i.type,i.url,i.async,i.username,i.password):l.open(i.type,i.url,i.async),i.xhrFields)for(r in i.xhrFields)l[r]=i.xhrFields[r];i.mimeType&&l.overrideMimeType&&l.overrideMimeType(i.mimeType),i.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");try{for(r in n)l.setRequestHeader(r,n[r])}catch(t){}l.send(i.hasContent&&i.data||null),s=function(t,n){var r,h,c,u;try{if(s&&(n||4===l.readyState))if(s=e,a&&(l.onreadystatechange=_.noop,Oe&&delete Ne[a]),n)4!==l.readyState&&l.abort();else{u={},r=l.status,h=l.getAllResponseHeaders(),"string"==typeof l.responseText&&(u.text=l.responseText);try{c=l.statusText}catch(t){c=""}r||!i.isLocal||i.crossDomain?1223===r&&(r=204):r=u.text?200:404}}catch(t){n||o(-1,t)}u&&o(r,c,u,h)},i.async?4===l.readyState?setTimeout(s):(a=++Ae,Oe&&(Ne||(Ne={},_(t).unload(Oe)),Ne[a]=s),l.onreadystatechange=s):s()},abort:function(){s&&s(e,!0)}}});var Le,Fe,Re=/^(?:toggle|show|hide)$/,ze=RegExp("^(?:([+-])=|)("+w+")([a-z%]*)$","i"),$e=/queueHooks$/,We=[function(t,e,i){var s,n,o,a,r,l,h=this,c={},u=t.style,d=t.nodeType&&te(t),p=_._data(t,"fxshow");for(s in i.queue||(null==(r=_._queueHooks(t,"fx")).unqueued&&(r.unqueued=0,l=r.empty.fire,r.empty.fire=function(){r.unqueued||l()}),r.unqueued++,h.always(function(){h.always(function(){r.unqueued--,_.queue(t,"fx").length||r.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(i.overflow=[u.overflow,u.overflowX,u.overflowY],"inline"===_.css(t,"display")&&"none"===_.css(t,"float")&&(_.support.inlineBlockNeedsLayout&&"inline"!==oe(t.nodeName)?u.zoom=1:u.display="inline-block")),i.overflow&&(u.overflow="hidden",_.support.shrinkWrapBlocks||h.always(function(){u.overflow=i.overflow[0],u.overflowX=i.overflow[1],u.overflowY=i.overflow[2]})),e)if(n=e[s],Re.exec(n)){if(delete e[s],o=o||"toggle"===n,n===(d?"hide":"show"))continue;c[s]=p&&p[s]||_.style(t,s)}if(!_.isEmptyObject(c))for(s in p?"hidden"in p&&(d=p.hidden):p=_._data(t,"fxshow",{}),o&&(p.hidden=!d),d?_(t).show():h.done(function(){_(t).hide()}),h.done(function(){var e;
vendor: 5,289 bytes, line 1
1for(e in _._removeData(t,"fxshow"),c)_.style(t,e,c[e])}),c)a=Ve(d?p[s]:0,s,h),s in p||(p[s]=a.start,d&&(a.end=a.start,a.start="width"===s||"height"===s?1:0))}],Be={"*":[function(t,e){var i=this.createTween(t,e),s=i.cur(),n=ze.exec(e),o=n&&n[3]||(_.cssNumber[t]?"":"px"),a=(_.cssNumber[t]||"px"!==o&&+s)&&ze.exec(_.css(i.elem,t)),r=1,l=20;if(a&&a[3]!==o){o=o||a[3],n=n||[],a=+s||1;do{a/=r=r||".5",_.style(i.elem,t,a+o)}while(r!==(r=i.cur()/s)&&1!==r&&--l)}return n&&(a=i.start=+a||+s||0,i.unit=o,i.end=n[1]?a+(n[1]+1)*n[2]:+n[2]),i}]};function qe(){return setTimeout(function(){Le=e}),Le=_.now()}function Ve(t,e,i){for(var s,n=(Be[e]||[]).concat(Be["*"]),o=0,a=n.length;a>o;o++)if(s=n[o].call(i,e,t))return s}function Ue(t,e,i){var s,n,o=0,a=We.length,r=_.Deferred().always(function(){delete l.elem}),l=function(){if(n)return!1;for(var e=Le||qe(),i=Math.max(0,h.startTime+h.duration-e),s=1-(i/h.duration||0),o=0,a=h.tweens.length;a>o;o++)h.tweens[o].run(s);return r.notifyWith(t,[h,s,i]),1>s&&a?i:(r.resolveWith(t,[h]),!1)},h=r.promise({elem:t,props:_.extend({},e),opts:_.extend(!0,{specialEasing:{}},i),originalProperties:e,originalOptions:i,startTime:Le||qe(),duration:i.duration,tweens:[],createTween:function(e,i){var s=_.Tween(t,h.opts,e,i,h.opts.specialEasing[e]||h.opts.easing);return h.tweens.push(s),s},stop:function(e){var i=0,s=e?h.tweens.length:0;if(n)return this;for(n=!0;s>i;i++)h.tweens[i].run(1);return e?r.resolveWith(t,[h,e]):r.rejectWith(t,[h,e]),this}}),c=h.props;for(function(t,e){var i,s,n,o,a;for(i in t)if(s=_.camelCase(i),n=e[s],o=t[i],_.isArray(o)&&(n=o[1],o=t[i]=o[0]),i!==s&&(t[s]=o,delete t[i]),(a=_.cssHooks[s])&&"expand"in a)for(i in o=a.expand(o),delete t[s],o)i in t||(t[i]=o[i],e[i]=n);else e[s]=n}(c,h.opts.specialEasing);a>o;o++)if(s=We[o].call(h,t,c,h.opts))return s;return _.map(c,Ve,h),_.isFunction(h.opts.start)&&h.opts.start.call(t,h),_.fx.timer(_.extend(l,{elem:t,anim:h,queue:h.opts.queue})),h.progress(h.opts.progress).done(h.opts.done,h.opts.complete).fail(h.opts.fail).always(h.opts.always)}function Ye(t,e,i,s,n){return new Ye.prototype.init(t,e,i,s,n)}function Xe(t,e){var i,s={height:t},n=0;for(e=e?1:0;4>n;n+=2-e)s["margin"+(i=Gt[n])]=s["padding"+i]=t;return e&&(s.opacity=s.width=t),s}function Ke(t){return _.isWindow(t)?t:9===t.nodeType&&(t.defaultView||t.parentWindow)}_.Animation=_.extend(Ue,{tweener:function(t,e){_.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var i,s=0,n=t.length;n>s;s++)i=t[s],Be[i]=Be[i]||[],Be[i].unshift(e)},prefilter:function(t,e){e?We.unshift(t):We.push(t)}}),_.Tween=Ye,Ye.prototype={constructor:Ye,init:function(t,e,i,s,n,o){this.elem=t,this.prop=i,this.easing=n||"swing",this.options=e,this.start=this.now=this.cur(),this.end=s,this.unit=o||(_.cssNumber[i]?"":"px")},cur:function(){var t=Ye.propHooks[this.prop];return t&&t.get?t.get(this):Ye.propHooks._default.get(this)},run:function(t){var e,i=Ye.propHooks[this.prop];return this.pos=e=this.options.duration?_.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):Ye.propHooks._default.set(this),this}},Ye.prototype.init.prototype=Ye.prototype,Ye.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=_.css(t.elem,t.prop,""))&&"auto"!==e?e:0:t.elem[t.prop]},set:function(t){_.fx.step[t.prop]?_.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[_.cssProps[t.prop]]||_.cssHooks[t.prop])?_.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},Ye.propHooks.scrollTop=Ye.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},_.each(["toggle","show","hide"],function(t,e){var i=_.fn[e];_.fn[e]=function(t,s,n){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(Xe(e,!0),t,s,n)}}),_.fn.extend({fadeTo:function(t,e,i,s){return this.filter(te).css("opacity",0).show().end().animate({opacity:e},t,i,s)},animate:function(t,e,i,s){var n=_.isEmptyObject(t),o=_.speed(e,i,s),a=function(){var e=Ue(this,_.extend({},t),o);(n||_._data(this,"finish"))&&e.stop(!0)};return a.finish=a,n||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,i,s){var n=function(t){var e=t.stop;delete t.stop,e(s)};return"string"!=typeof t&&(s=i,i=t,t=e),i&&!1!==t&&this.queue(t||"fx",[]),this.each(function(){var e=!0,i=null!=t&&t+"queueHooks",o=_.timers,a=_._data(this);if(i)a[i]&&a[i].stop&&n(a[i]);else for(i in a)a[i]&&a[i].stop&&$e.test(i)&&n(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(s),e=!1,o.splice(i,1));(e||!s)&&_.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,i=_._data(this),s=i[t+"queue"],n=i[t+"queueHooks"],o=_.timers,a=s?s.length:0;for(i.finish=!0,_.queue(this,t,[]),n&&n.stop&&n.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;a>e;e++)s[e]&&s[e].finish&&s[e].finish.call(this);delete i.finish})}}),_.each({slideDown:Xe("show"),slideUp:Xe("hide"),slideToggle:Xe("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){_.fn[t]=function(t,i,s){return this.animate(e,t,i,s)}}
1),_.speed=function(t,e,i){var s=t&&"object"==typeof t?_.extend({},t):{complete:i||!i&&e||_.isFunction(t)&&t,duration:t,easing:i&&e||e&&!_.isFunction(e)&&e};return s.duration=_.fx.off?0:"number"==typeof s.duration?s.duration:s.duration in _.fx.speeds?_.fx.speeds[s.duration]:_.fx.speeds._default,(null==s.queue||!0===s.queue)&&(s.queue="fx"),s.old=s.complete,s.complete=function(){_.isFunction(s.old)&&s.old.call(this),s.queue&&_.dequeue(this,s.queue)},s},_.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},_.timers=[],_.fx=Ye.prototype.init,_.fx.tick=function(){var t,i=_.timers,s=0;for(Le=_.now();i.length>s;s++)(t=i[s])()||i[s]!==t||i.splice(s--,1);i.length||_.fx.stop(),Le=e},_.fx.timer=function(t){t()&&_.timers.push(t)&&_.fx.start()},_.fx.interval=13,_.fx.start=function(){Fe||(Fe=setInterval(_.fx.tick,_.fx.interval))},_.fx.stop=function(){clearInterval(Fe),Fe=null},_.fx.speeds={slow:600,fast:200,_default:400},_.fx.step={},_.expr&&_.expr.filters&&(_.expr.filters.animated=function(t){return _.grep(_.timers,function(e){return t===e.elem}).length}),_.fn.offset=function(t){if(arguments.length)return t===e?this:this.each(function(e){_.offset.setOffset(this,t,e)});var i,s,o={top:0,left:0},a=this[0],r=a&&a.ownerDocument;return r?(i=r.documentElement,_.contains(i,a)?(typeof a.getBoundingClientRect!==n&&(o=a.getBoundingClientRect()),s=Ke(r),{top:o.top+(s.pageYOffset||i.scrollTop)-(i.clientTop||0),left:o.left+(s.pageXOffset||i.scrollLeft)-(i.clientLeft||0)}):o):void 0},_.offset={setOffset:function(t,e,i){var s=_.css(t,"position");"static"===s&&(t.style.position="relative");var n,o,a=_(t),r=a.offset(),l=_.css(t,"top"),h=_.css(t,"left"),c={},u={};("absolute"===s||"fixed"===s)&&_.inArray("auto",[l,h])>-1?(n=(u=a.position()).top,o=u.left):(n=parseFloat(l)||0,o=parseFloat(h)||0),_.isFunction(e)&&(e=e.call(t,i,r)),null!=e.top&&(c.top=e.top-r.top+n),null!=e.left&&(c.left=e.left-r.left+o),"using"in e?e.using.call(t,c):a.css(c)}},_.fn.extend({position:function(){if(this[0]){var t,e,i={top:0,left:0},s=this[0];return"fixed"===_.css(s,"position")?e=s.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),_.nodeName(t[0],"html")||(i=t.offset()),i.top+=_.css(t[0],"borderTopWidth",!0),i.left+=_.css(t[0],"borderLeftWidth",!0)),{top:e.top-i.top-_.css(s,"marginTop",!0),left:e.left-i.left-_.css(s,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||r;t&&!_.nodeName(t,"html")&&"static"===_.css(t,"position");)t=t.offsetParent;return t||r})}}),_.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var s=/Y/.test(i);_.fn[t]=function(n){return _.access(this,function(t,n,o){var a=Ke(t);return o===e?a?i in a?a[i]:a.document.documentElement[n]:t[n]:(a?a.scrollTo(s?_(a).scrollLeft():o,s?o:_(a).scrollTop()):t[n]=o,e)},t,n,arguments.length,null)}}),_.each({Height:"height",Width:"width"},function(t,i){_.each({padding:"inner"+t,content:i,"":"outer"+t},function(s,n){_.fn[n]=function(n,o){var a=arguments.length&&(s||"boolean"!=typeof n),r=s||(!0===n||!0===o?"margin":"border");return _.access(this,function(i,s,n){var o;return _.isWindow(i)?i.document.documentElement["client"+t]:9===i.nodeType?(o=i.documentElement,Math.max(i.body["scroll"+t],o["scroll"+t],i.body["offset"+t],o["offset"+t],o["client"+t])):n===e?_.css(i,s,r):_.style(i,s,n,r)},i,a?n:e,a,null)}})}),_.fn.size=function(){return this.length},_.fn.andSelf=_.fn.addBack,"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=_:(t.jQuery=t.$=_,"function"==typeof define&&define.amd&&define("jquery",[],function(){return _}))}(window),function(t,e){function i(e,i){var n,o,a,r=e.nodeName.toLowerCase();return"area"===r?(o=(n=e.parentNode).name,!(!e.href||!o||"map"!==n.nodeName.toLowerCase())&&(!!(a=t("img[usemap=#"+o+"]")[0])&&s(a))):(/input|select|textarea|button|object/.test(r)?!e.disabled:"a"===r&&e.href||i)&&s(e)}function s(e){return t.expr.filters.visible(e)&&!t(e).parents().addBack().filter(function(){return"hidden"===t.css(this,"visibility")}).length}var n=0,o=/^ui-id-\d+$/;t.ui=t.ui||{},t.extend(t.ui,{version:"1.10.3",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),t.fn.extend({focus:function(e){return function(i,s){return"number"==typeof i?this.each(function(){var e=this;setTimeout(function(){t(e).focus(),s&&s.call(e)},i)}):e.apply(this,arguments)}}(t.fn.focus),scrollParent:function(){var e;return e=t.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(t.css(this,"position"))&&/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))}
vendor: 11,921 bytes, line 1
1).eq(0),/fixed/.test(this.css("position"))||!e.length?t(document):e},zIndex:function(i){if(i!==e)return this.css("zIndex",i);if(this.length)for(var s,n,o=t(this[0]);o.length&&o[0]!==document;){if(("absolute"===(s=o.css("position"))||"relative"===s||"fixed"===s)&&(n=parseInt(o.css("zIndex"),10),!isNaN(n)&&0!==n))return n;o=o.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++n)})},removeUniqueId:function(){return this.each(function(){o.test(this.id)&&t(this).removeAttr("id")})}}),t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,s){return!!t.data(e,s[3])},focusable:function(e){return i(e,!isNaN(t.attr(e,"tabindex")))},tabbable:function(e){var s=t.attr(e,"tabindex"),n=isNaN(s);return(n||s>=0)&&i(e,!n)}}),t("<a>").outerWidth(1).jquery||t.each(["Width","Height"],function(i,s){function n(e,i,s,n){return t.each(o,function(){i-=parseFloat(t.css(e,"padding"+this))||0,s&&(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),n&&(i-=parseFloat(t.css(e,"margin"+this))||0)}),i}var o="Width"===s?["Left","Right"]:["Top","Bottom"],a=s.toLowerCase(),r={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+s]=function(i){return i===e?r["inner"+s].call(this):this.each(function(){t(this).css(a,n(this,i)+"px")})},t.fn["outer"+s]=function(e,i){return"number"!=typeof e?r["outer"+s].call(this,e):this.each(function(){t(this).css(a,n(this,e,!0,i)+"px")})}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(t.fn.removeData=function(e){return function(i){return arguments.length?e.call(this,t.camelCase(i)):e.call(this)}}(t.fn.removeData)),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),t.support.selectstart="onselectstart"in document.createElement("div"),t.fn.extend({disableSelection:function(){return this.bind((t.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(t){t.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),t.extend(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){var s,n=t.plugins[e];if(n&&t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType)for(s=0;n.length>s;s++)t.options[n[s][0]]&&n[s][1].apply(t.element,i)}},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||(e[s]=1,n=e[s]>0,e[s]=0,n)}})}(jQuery),function(t,e){var i=0,s=Array.prototype.slice,n=t.cleanData;t.cleanData=function(e){for(var i,s=0;null!=(i=e[s]);s++)try{t(i).triggerHandler("remove")}catch(t){}n(e)},t.widget=function(i,s,n){var o,a,r,l,h={},c=i.split(".")[0];i=i.split(".")[1],o=c+"-"+i,n||(n=s,s=t.Widget),t.expr[":"][o.toLowerCase()]=function(e){return!!t.data(e,o)},t[c]=t[c]||{},a=t[c][i],r=t[c][i]=function(t,i){return this._createWidget?(arguments.length&&this._createWidget(t,i),e):new r(t,i)},t.extend(r,a,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),(l=new s).options=t.widget.extend({},l.options),t.each(n,function(i,n){return t.isFunction(n)?(h[i]=function(){var t=function(){return s.prototype[i].apply(this,arguments)},e=function(t){return s.prototype[i].apply(this,t)};return function(){var i,s=this._super,o=this._superApply;return this._super=t,this._superApply=e,i=n.apply(this,arguments),this._super=s,this._superApply=o,i}}(),e):(h[i]=n,e)}),r.prototype=t.widget.extend(l,{widgetEventPrefix:a?l.widgetEventPrefix:i},h,{constructor:r,namespace:c,widgetName:i,widgetFullName:o}),a?(t.each(a._childConstructors,function(e,i){var s=i.prototype;t.widget(s.namespace+"."+s.widgetName,r,i._proto)}),delete a._childConstructors):s._childConstructors.push(r),t.widget.bridge(i,r)},t.widget.extend=function(i){for(var n,o,a=s.call(arguments,1),r=0,l=a.length;l>r;r++)for(n in a[r])o=a[r][n],a[r].hasOwnProperty(n)&&o!==e&&(i[n]=t.isPlainObject(o)?t.isPlainObject(i[n])?t.widget.extend({},i[n],o):t.widget.extend({},o):o);return i},t.widget.bridge=function(i,n){var o=n.prototype.widgetFullName||i;t.fn[i]=function(a){var r="string"==typeof a,l=s.call(arguments,1),h=this;return a=!r&&l.length?t.widget.extend.apply(null,[a].concat(l)):a,r?this.each(function(){var s,n=t.data(this,o);return n?t.isFunction(n[a])&&"_"!==a.charAt(0)?(s=n[a].apply(n,l))!==n&&s!==e?(h=s&&s.jquery?h.pushStack(s.get()):s,!1):e:t.error("no such method '"+a+"' for "+i+" widget instance"):t.error("cannot call methods on "+i+" prior to initialization; attempted to call method '"+a+"'")}):this.each(function(){var e=t.data(this,o);e?e.option(a||{})._init():t.data(this,o,new n(a,this))}),h}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(e,s){s=t(s||this.defaultElement||this)[0],this.element=t(s),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this.bindings=t(),this.hoverable=t(),this.focusable=t(),s!==this&&(t.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===s&&this.destroy()}}),this.document=t(s.style?s.ownerDocument:s.document||s),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(t.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:t.noop,widget:function(){return this.element},option:function(i,s){var n,o,a,r=i;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof i)if(r={},n=i.split("."),i=n.shift(),n.length){for(o=r[i]=t.widget.extend({},this.options[i]),a=0;n.length-1>a;a++)o[n[a]]=o[n[a]]||{},o=o[n[a]];if(i=n.pop(),s===e)return o[i]===e?null:o[i];o[i]=s}else{if(s===e)return this.options[i]===e?null:this.options[i];r[i]=s}return this._setOptions(r),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return this.options[t]=e,"disabled"===t&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!e).attr("aria-disabled",e),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(i,s,n){var o,a=this;"boolean"!=typeof i&&(n=s,s=i,i=!1),n?(s=o=t(s),this.bindings=this.bindings.add(s)):(n=s,s=this.element,o=this.widget()),t.each(n,function(n,r){function l(){return i||!0!==a.options.disabled&&!t(this).hasClass("ui-state-disabled")?("string"==typeof r?a[r]:r).apply(a,arguments):e}"string"!=typeof r&&(l.guid=r.guid=r.guid||l.guid||t.guid++);var h=n.match(/^(\w+)\s*(.*)$/),c=h[1]+a.eventNamespace,u=h[2];u?o.delegate(u,c,l):s.bind(c,l)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.unbind(e).undelegate(e)},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){t(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){t(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){t(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){t(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,i,s){var n,o,a=this.options[e];if(s=s||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(n in o)n in i||(i[n]=o[n]);return this.element.trigger(i,s),!(t.isFunction(a)&&!1===a.apply(this.element[0],[i].concat(s))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(s,n,o){"string"==typeof n&&(n={effect:n});var a,r=n?!0===n||"number"==typeof n?i:n.effect||i:e;"number"==typeof(n=n||{})&&(n={duration:n}),a=!t.isEmptyObject(n),n.complete=o,n.delay&&s.delay(n.delay),a&&t.effects&&t.effects.effect[r]?s[e](n):r!==e&&s[r]?s[r](n.duration,n.easing,o):s.queue(function(i){t(this)[e](),o&&o.call(s[0]),i()})}})}(jQuery),function(t){var e=!1;t(document).mouseup(function(){e=!1}),t.widget("ui.mouse",{version:"1.10.3",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).bind("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.unbind("."+this.widgetName),this._mouseMoveDelegate&&t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(i){if(!e){this._mouseStarted&&this._mouseUp(i),this._mouseDownEvent=i;var s=this,n=1===i.which,o=!("string"!=typeof this.options.cancel||!i.target.nodeName)&&t(i.target).closest(this.options.cancel).length;return!(n&&!o&&this._mouseCapture(i))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){s.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=!1!==this._mouseStart(i),!this._mouseStarted)?(i.preventDefault(),!0):(!0===t.data(i.target,this.widgetName+".preventClickEvent")&&t.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return s._mouseMove(t)},this._mouseUpDelegate=function(t){return s._mouseUp(t)},t(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),e=!0,!0))}},_mouseMove:function(e){return t.ui.ie&&(!document.documentMode||9>document.documentMode)&&!e.button?this._mouseUp(e):this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){return t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("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)),!1},_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}})}(jQuery),function(t){t.widget("ui.draggable",t.ui.mouse,{version:"1.10.3",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,
1containment:!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||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy()},_mouseCapture:function(e){var i=this.options;return!(this.helper||i.disabled||t(e.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(e),!!this.handle&&(t(!0===i.iframeFix?"iframe":i.iframeFix).each(function(){t("<div class='ui-draggable-iframeFix' style='background: #fff;'></div>").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(t(this).offset()).appendTo("body")}),!0))},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this.helper.addClass("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(),this.offsetParent=this.helper.offsetParent(),this.offsetParentCssPosition=this.offsetParent.css("position"),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.offset.scroll=!1,t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(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)},_mouseDrag:function(e,i){if("fixed"===this.offsetParentCssPosition&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),!i){var s=this._uiHash();if(!1===this._trigger("drag",e,s))return this._mouseUp({}),!1;this.position=s.position}return this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(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),!("original"===this.options.helper&&!t.contains(this.element[0].ownerDocument,this.element[0]))&&("invalid"===this.options.revert&&!s||"valid"===this.options.revert&&s||!0===this.options.revert||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,s)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==i._trigger("stop",e)&&i._clear()}):!1!==this._trigger("stop",e)&&this._clear(),!1)},_mouseUp:function(e){return t("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!t(e.target).closest(this.element.find(this.options.handle)).length},_createHelper:function(e){var i=this.options,s=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return s.parents("body").length||s.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),s[0]===this.element[0]||/(fixed|absolute)/.test(s.css("position"))||s.css("position","absolute"),s},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}
vendor: 10,268 bytes, line 1
1),"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)},_getParentOffset:function(){var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(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){var t=this.element.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_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;return n.containment?"window"===n.containment?void(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()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===n.containment?void(this.containment=[0,0,t(document).width()-this.helperProportions.width-this.margins.left,(t(document).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):n.containment.constructor===Array?void(this.containment=n.containment):("parent"===n.containment&&(n.containment=this.helper[0].parentNode),void((s=(i=t(n.containment))[0])&&(e="hidden"!==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.relative_container=i))):void(this.containment=null)},_convertPositionTo:function(e,i){i||(i=this.position);var s="absolute"===e?1:-1,n="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent;return this.offset.scroll||(this.offset.scroll={top:n.scrollTop(),left:n.scrollLeft()}),{top:i.top+this.offset.relative.top*s+this.offset.parent.top*s-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top)*s,left:i.left+this.offset.relative.left*s+this.offset.parent.left*s-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)*s}},_generatePosition:function(e){var i,s,n,o,a=this.options,r="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=e.pageX,h=e.pageY;return this.offset.scroll||(this.offset.scroll={top:r.scrollTop(),left:r.scrollLeft()}),this.originalPosition&&(this.containment&&(this.relative_container?(s=this.relative_container.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,e.pageX-this.offset.click.left<i[0]&&(l=i[0]+this.offset.click.left),e.pageY-this.offset.click.top<i[1]&&(h=i[1]+this.offset.click.top),e.pageX-this.offset.click.left>i[2]&&(l=i[2]+this.offset.click.left),e.pageY-this.offset.click.top>i[3]&&(h=i[3]+this.offset.click.top)),a.grid&&(n=a.grid[1]?this.originalPageY+Math.round((h-this.originalPageY)/a.grid[1])*a.grid[1]:this.originalPageY,h=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((l-this.originalPageX)/a.grid[0])*a.grid[0]:this.originalPageX,l=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)),{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(e,i,s){return s=s||this._uiHash(),t.ui.plugin.call(this,e,[i,s]),"drag"===e&&(this.positionAbs=this._convertPositionTo("absolute")),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){var s=t(this).data("ui-draggable"),n=s.options,o=t.extend({},i,{item:s.element});s.sortables=[],t(n.connectToSortable).each(function(){var i=t.data(this,"ui-sortable");i&&!i.options.disabled&&(s.sortables.push({instance:i,shouldRevert:i.options.revert}),i.refreshPositions(),i._trigger("activate",e,o))})},stop:function(e,i){var s=t(this).data("ui-draggable"),n=t.extend({},i,{item:s.element});t.each(s.sortables,function(){this.instance.isOver?(this.instance.isOver=0,s.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=this.shouldRevert),this.instance._mouseStop(e),this.instance.options.helper=this.instance.options._helper,"original"===s.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",e,n))})},drag:function(e,i){var s=t(this).data("ui-draggable"),n=this;t.each(s.sortables,function(){var o=!1,a=this;this.instance.positionAbs=s.positionAbs,this.instance.helperProportions=s.helperProportions,this.instance.offset.click=s.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(o=!0,t.each(s.sortables,function(){return this.instance.positionAbs=s.positionAbs,this.instance.helperProportions=s.helperProportions,this.instance.offset.click=s.offset.click,this!==a&&this.instance._intersectsWith(this.instance.containerCache)&&t.contains(a.instance.element[0],this.instance.element[0])&&(o=!1),o})),o?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=t(n).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return i.helper[0]},e.target=this.instance.currentItem[0],this.instance._mouseCapture(e,!0),this.instance._mouseStart(e,!0,!0),this.instance.offset.click.top=s.offset.click.top,this.instance.offset.click.left=s.offset.click.left,this.instance.offset.parent.left-=s.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=s.offset.parent.top-this.instance.offset.parent.top,s._trigger("toSortable",e),s.dropped=this.instance.element,s.currentItem=s.element,this.instance.fromOutside=s),this.instance.currentItem&&this.instance._mouseDrag(e)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",e,this.instance._uiHash(this.instance)),this.instance._mouseStop(e,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),s._trigger("fromSortable",e),s.dropped=!1)})}}),t.ui.plugin.add("draggable","cursor",{start:function(){var e=t("body"),i=t(this).data("ui-draggable").options;e.css("cursor")&&(i._cursor=e.css("cursor")),e.css("cursor",i.cursor)},stop:function(){var e=t(this).data("ui-draggable").options;e._cursor&&t("body").css("cursor",e._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i){var s=t(i.helper),n=t(this).data("ui-draggable").options;s.css("opacity")&&(n._opacity=s.css("opacity")),s.css("opacity",n.opacity)},stop:function(e,i){var s=t(this).data("ui-draggable").options;s._opacity&&t(i.helper).css("opacity",s._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(){var e=t(this).data("ui-draggable");e.scrollParent[0]!==document&&"HTML"!==e.scrollParent[0].tagName&&(e.overflowOffset=e.scrollParent.offset())},drag:function(e){var i=t(this).data("ui-draggable"),s=i.options,n=!1;i.scrollParent[0]!==document&&"HTML"!==i.scrollParent[0].tagName?(s.axis&&"x"===s.axis||(i.overflowOffset.top+i.scrollParent[0].offsetHeight-e.pageY<s.scrollSensitivity?i.scrollParent[0].scrollTop=n=i.scrollParent[0].scrollTop+s.scrollSpeed:e.pageY-i.overflowOffset.top<s.scrollSensitivity&&(i.scrollParent[0].scrollTop=n=i.scrollParent[0].scrollTop-s.scrollSpeed)),s.axis&&"y"===s.axis||(i.overflowOffset.left+i.scrollParent[0].offsetWidth-e.pageX<s.scrollSensitivity?i.scrollParent[0].scrollLeft=n=i.scrollParent[0].scrollLeft+s.scrollSpeed:e.pageX-i.overflowOffset.left<s.scrollSensitivity&&(i.scrollParent[0].scrollLeft=n=i.scrollParent[0].scrollLeft-s.scrollSpeed))):(s.axis&&"x"===s.axis||(e.pageY-t
vendor: 2,351 bytes, line 1
1(document).scrollTop()<s.scrollSensitivity?n=t(document).scrollTop(t(document).scrollTop()-s.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())<s.scrollSensitivity&&(n=t(document).scrollTop(t(document).scrollTop()+s.scrollSpeed))),s.axis&&"y"===s.axis||(e.pageX-t(document).scrollLeft()<s.scrollSensitivity?n=t(document).scrollLeft(t(document).scrollLeft()-s.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())<s.scrollSensitivity&&(n=t(document).scrollLeft(t(document).scrollLeft()+s.scrollSpeed)))),!1!==n&&t.ui.ddmanager&&!s.dropBehaviour&&t.ui.ddmanager.prepareOffsets(i,e)}}),t.ui.plugin.add("draggable","snap",{start:function(){var e=t(this).data("ui-draggable"),i=e.options;e.snapElements=[],t(i.snap.constructor!==String?i.snap.items||":data(ui-draggable)":i.snap).each(function(){var i=t(this),s=i.offset();this!==e.element[0]&&e.snapElements.push({item:this,width:i.outerWidth(),height:i.outerHeight(),top:s.top,left:s.left})})},drag:function(e,i){var s,n,o,a,r,l,h,c,u,d,p=t(this).data("ui-draggable"),f=p.options,m=f.snapTolerance,g=i.offset.left,v=g+p.helperProportions.width,b=i.offset.top,y=b+p.helperProportions.height;for(u=p.snapElements.length-1;u>=0;u--)l=(r=p.snapElements[u].left)+p.snapElements[u].width,c=(h=p.snapElements[u].top)+p.snapElements[u].height,r-m>v||g>l+m||h-m>y||b>c+m||!t.contains(p.snapElements[u].item.ownerDocument,p.snapElements[u].item)?(p.snapElements[u].snapping&&p.options.snap.release&&p.options.snap.release.call(p.element,e,t.extend(p._uiHash(),{snapItem:p.snapElements[u].item})),p.snapElements[u].snapping=!1):("inner"!==f.snapMode&&(s=m>=Math.abs(h-y),n=m>=Math.abs(c-b),o=m>=Math.abs(r-v),a=m>=Math.abs(l-g),s&&(i.position.top=p._convertPositionTo("relative",{top:h-p.helperProportions.height,left:0}).top-p.margins.top),n&&(i.position.top=p._convertPositionTo("relative",{top:c,left:0}).top-p.margins.top),o&&(i.position.left=p._convertPositionTo("relative",{top:0,left:r-p.helperProportions.width}).left-p.margins.left),a&&(i.position.left=p._convertPositionTo("relative",{top:0,left:l}).left-p.margins.left)),d=s||n||o||a,"outer"!==f.snapMode&&(s=m>=Math.abs(h-b),n=m>=Math.abs(c-y),o=m>=Math.abs(r-g),a=m>=Math.abs(l-v),s&&(i.position.top=p._convertPositionTo("relative",{top:h,left:0}).top-p.margins.top),n&&(i.position.top=p._convertPositionTo("relative",{top:c-
vendor: 4,360 bytes, line 1
1p.helperProportions.height,left:0}).top-p.margins.top),o&&(i.position.left=p._convertPositionTo("relative",{top:0,left:r}).left-p.margins.left),a&&(i.position.left=p._convertPositionTo("relative",{top:0,left:l-p.helperProportions.width}).left-p.margins.left)),!p.snapElements[u].snapping&&(s||n||o||a||d)&&p.options.snap.snap&&p.options.snap.snap.call(p.element,e,t.extend(p._uiHash(),{snapItem:p.snapElements[u].item})),p.snapElements[u].snapping=s||n||o||a||d)}}),t.ui.plugin.add("draggable","stack",{start:function(){var e,i=this.data("ui-draggable").options,s=t.makeArray(t(i.stack)).sort(function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)});s.length&&(e=parseInt(t(s[0]).css("zIndex"),10)||0,t(s).each(function(i){t(this).css("zIndex",e+i)}),this.css("zIndex",e+s.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i){var s=t(i.helper),n=t(this).data("ui-draggable").options;s.css("zIndex")&&(n._zIndex=s.css("zIndex")),s.css("zIndex",n.zIndex)},stop:function(e,i){var s=t(this).data("ui-draggable").options;s._zIndex&&t(i.helper).css("zIndex",s._zIndex)}})}(jQuery),function(t){function e(t,e,i){return t>e&&e+i>t}t.widget("ui.droppable",{version:"1.10.3",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e=this.options,i=e.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(i)?i:function(t){return t.is(i)},this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight},t.ui.ddmanager.droppables[e.scope]=t.ui.ddmanager.droppables[e.scope]||[],t.ui.ddmanager.droppables[e.scope].push(this),e.addClasses&&this.element.addClass("ui-droppable")},_destroy:function(){for(var e=0,i=t.ui.ddmanager.droppables[this.options.scope];i.length>e;e++)i[e]===this&&i.splice(e,1);this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(e,i){"accept"===e&&(this.accept=t.isFunction(i)?i:function(t){return t.is(i)}),t.Widget.prototype._setOption.apply(this,arguments)},_activate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),i&&this._trigger("activate",e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),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.options.hoverClass&&this.element.addClass(this.options.hoverClass),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.options.hoverClass&&this.element.removeClass(this.options.hoverClass),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 e=t.data(this,"ui-droppable");return e.options.greedy&&!e.options.disabled&&e.options.scope===s.options.scope&&e.accept.call(e.element[0],s.currentItem||s.element)&&t.ui.intersect(s,t.extend(e,{offset:e.element.offset()}),e.options.tolerance)?(n=!0,!1):void 0}),!n&&(!!this.accept.call(this.element[0],s.currentItem||s.element)&&(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",e,this.ui(s)),this.element)))},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}}}),t.ui.intersect=function(t,i,s){if(!i.offset)return!1;var n,o=(t.positionAbs||t.position.absolute).left,a=o+t.helperProportions.width,r=(t.positionAbs||t.position.absolute).top,l=r+t.helperProportions.height,h=i.offset.left,c=h+i.proportions.width,u=i.offset.top,d=u+i.proportions.height;switch(s){case"fit":return o>=h&&c>=a&&r>=u&&d>=l;case"intersect":return o+t.helperProportions.width/2>h&&c>a-t.helperProportions.width/2&&r+t.helperProportions.height/2>u&&d>
vendor: 25,721 bytes, line 1
1l-t.helperProportions.height/2;case"pointer":return n=(t.positionAbs||t.position.absolute).left+(t.clickOffset||t.offset.click).left,e((t.positionAbs||t.position.absolute).top+(t.clickOffset||t.offset.click).top,u,i.proportions.height)&&e(n,h,i.proportions.width);case"touch":return(r>=u&&d>=r||l>=u&&d>=l||u>r&&l>d)&&(o>=h&&c>=o||a>=h&&c>=a||h>o&&a>c);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&&t.ui.intersect(e,this,this.options.tolerance)&&(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").bind("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=t.ui.intersect(e,this,this.options.tolerance),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.data(this,"ui-droppable").options.scope===n})).length&&((s=t.data(o[0],"ui-droppable")).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").unbind("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}}}(jQuery),function(t){function e(t){return parseInt(t,10)||0}function i(t){return!isNaN(parseInt(t,10))}t.widget("ui.resizable",t.ui.mouse,{version:"1.10.3",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,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},_create:function(){var e,i,s,n,o=this,a=this.options;if(this.element.addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!a.aspectRatio,aspectRatio:a.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:a.helper||a.ghost||a.animate?a.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(t("<div class='ui-wrapper' style='overflow: hidden;'></div>").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.data("ui-resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom: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({margin:this.originalElement.css("margin")}),this._proportionallyResize()),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.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),e=this.handles.split(","),this.handles={},i=0;e.length>i;i++)s=t.trim(e[i]),(n=t("<div class='ui-resizable-handle "+("ui-resizable-"+s)+"'></div>")).css({zIndex:a.zIndex}),"se"===s&&n.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[s]=".ui-resizable-"+s,this.element.append(n);this._renderAxis=function(e){var i,s,n,o;for(i in e=e||this.element,this.handles)this.handles[i].constructor===String&&(this.handles[i]=t(this.handles[i],this.element).show()),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()),t(this.handles[i]).length},this._renderAxis(this.element),this._handles=t(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){o.resizing||(this.className&&(n=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),o.axis=n&&n[1]?n[1]:"se")}),a.autoHide&&(this._handles.hide(),t(this.element).addClass("ui-resizable-autohide").mouseenter(function(){a.disabled||(t(this).removeClass("ui-resizable-autohide"),o._handles.show())}).mouseleave(function(){a.disabled||o.resizing||(t(this).addClass("ui-resizable-autohide"),o._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,i=function(e){t(e).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".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},_mouseCapture:function(e){var i,s,n=!1;for(i in this.handles)((s=t(this.handles[i])[0])===e.target||t.contains(s,e.target))&&(n=!0);return!this.options.disabled&&n},_mouseStart:function(i){var s,n,o,a=this.options,r=this.element.position(),l=this.element;return this.resizing=!0,/absolute/.test(l.css("position"))?l.css({position:"absolute",top:l.css("top"),left:l.css("left")}):l.is(".ui-draggable")&&l.css({position:"absolute",top:r.top,left:r.left}),this._renderProxy(),s=e(this.helper.css("left")),n=e(this.helper.css("top")),a.containment&&(s+=t(a.containment).scrollLeft()||0,n+=t(a.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:s,top:n},this.size=this._helper?{width:l.outerWidth(),height:l.outerHeight()}:{width:l.width(),height:l.height()},this.originalSize=this._helper?{width:l.outerWidth(),height:l.outerHeight()}:{width:l.width(),height:l.height()},this.originalPosition={left:s,top:n},this.sizeDiff={width:l.outerWidth()-l.width(),height:l.outerHeight()-l.height()},this.originalMousePosition={left:i.pageX,top:i.pageY},this.aspectRatio="number"==typeof a.aspectRatio?a.aspectRatio:this.originalSize.width/this.originalSize.height||1,o=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===o?this.axis+"-resize":o),l.addClass("ui-resizable-resizing"),this._propagate("start",i),!0},_mouseDrag:function(e){var i,s=this.helper,n={},o=this.originalMousePosition,a=this.axis,r=this.position.top,l=this.position.left,h=this.size.width,c=this.size.height,u=e.pageX-o.left||0,d=e.pageY-o.top||0,p=this._change[a];return!!p&&(i=p.apply(this,[e,u,d]),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),this.position.top!==r&&(n.top=this.position.top+"px"),this.position.left!==l&&(n.left=this.position.left+"px"),this.size.width!==h&&(n.width=this.size.width+"px"),this.size.height!==c&&(n.height=this.size.height+"px"),s.css(n),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(n)||this._trigger("resize",e,this.ui()),!1)},_mouseStop:function(e){this.resizing=!1;var i,s,n,o,a,r,l,h=this.options,c=this;return this._helper&&(n=(s=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&t.ui.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=parseInt(c.element.css("left"),10)+(c.position.left-c.originalPosition.left)||null,l=parseInt(c.element.css("top"),10)+(c.position.top-c.originalPosition.top)||null,h.animate||this.element.css(t.extend(a,{top:l,left:r})),c.helper.height(c.size.height),c.helper.width(c.size.width),this._helper&&!h.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(t){var e,s,n,o,a,r=this.options;a={minWidth:i(r.minWidth)?r.minWidth:0,maxWidth:i(r.maxWidth)?r.maxWidth:1/0,minHeight:i(r.minHeight)?r.minHeight:0,maxHeight:i(r.maxHeight)?r.maxHeight:1/0},(this._aspectRatio||t)&&(e=a.minHeight*this.aspectRatio,n=a.minWidth/this.aspectRatio,s=a.maxHeight*this.aspectRatio,o=a.maxWidth/this.aspectRatio,e>a.minWidth&&(a.minWidth=e),n>a.minHeight&&(a.minHeight=n),a.maxWidth>s&&(a.maxWidth=s),a.maxHeight>o&&(a.maxHeight=o)),this._vBoundaries=a},_updateCache:function(t){this.offset=this.helper.offset(),i(t.left)&&(this.position.left=t.left),i(t.top)&&(this.position.top=t.top),i(t.height)&&(this.size.height=t.height),i(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,s=this.size,n=this.axis;return i(t.height)?t.width=t.height*this.aspectRatio:i(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===n&&(t.left=e.left+(s.width-t.width),t.top=null),"nw"===n&&(t.top=e.top+(s.height-t.height),t.left=e.left+(s.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,s=this.axis,n=i(t.width)&&e.maxWidth&&e.maxWidth<t.width,o=i(t.height)&&e.maxHeight&&e.maxHeight<t.height,a=i(t.width)&&e.minWidth&&e.minWidth>t.width,r=i(t.height)&&e.minHeight&&e.minHeight>t.height,l=this.originalPosition.left+this.originalSize.width,h=this.position.top+this.size.height,c=/sw|nw|w/.test(s),u=/nw|ne|n/.test(s);return a&&(t.width=e.minWidth),r&&(t.height=e.minHeight),n&&(t.width=e.maxWidth),o&&(t.height=e.maxHeight),a&&c&&(t.left=l-e.minWidth),n&&c&&(t.left=l-e.maxWidth),r&&u&&(t.top=h-e.minHeight),o&&u&&(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},_proportionallyResize:function(){if(this._proportionallyResizeElements.length){var t,e,i,s,n,o=this.helper||this.element;for(t=0;this._proportionallyResizeElements.length>t;t++){if(n=this._proportionallyResizeElements[t],!this.borderDif)for(this.borderDif=[],i=[n.css("borderTopWidth"),n.css("borderRightWidth"),n.css("borderBottomWidth"),n.css("borderLeftWidth")],s=[n.css("paddingTop"),n.css("paddingRight"),n.css("paddingBottom"),n.css("paddingLeft")],e=0;i.length>e;e++)this.borderDif[e]=(parseInt(i[e],10)||0)+(parseInt(s[e],10)||0);n.css({height:o.height()-this.borderDif[0]-this.borderDif[2]||0,width:o.width()-this.borderDif[1]-this.borderDif[3]||0})}}},_renderProxy:function(){var e=this.element,i=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div style='overflow:hidden;'></div>"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,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;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){var s=this.originalSize;return{top:this.originalPosition.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).data("ui-resizable"),s=i.options,n=i._proportionallyResizeElements,o=n.length&&/textarea/i.test(n[0].nodeName),a=o&&t.ui.hasScroll(n[0],"left")?0:i.sizeDiff.height,r=o?0:i.sizeDiff.width,l={width:i.size.width-r,height:i.size.height-a},h=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,c=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(l,c&&h?{top:c,left:h}:{}),{duration:s.animateDuration,easing:s.animateEasing,step:function(){var s={width:parseInt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:parseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};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 i,s,n,o,a,r,l,h=t(this).data("ui-resizable"),c=h.options,u=h.element,d=c.containment,p=d instanceof t?d.get(0):/parent/.test(d)?u.parent().get(0):d;p&&(h.containerElement=t(p),/document/.test(d)||d===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}):(i=t(p),s=[],t(["Top","Right","Left","Bottom"]).each(function(t,n){s[t]=e(i.css("padding"+n))}),h.containerOffset=i.offset(),h.containerPosition=i.position(),h.containerSize={height:i.innerHeight()-s[3],width:i.innerWidth()-s[1]},n=h.containerOffset,o=h.containerSize.height,a=h.containerSize.width,r=t.ui.hasScroll(p,"left")?p.scrollWidth:a,l=t.ui.hasScroll(p)?p.scrollHeight:o,h.parentData={element:p,left:n.left,top:n.top,width:r,height:l}))},resize:function(e){var i,s,n,o,a=t(this).data("ui-resizable"),r=a.options,l=a.containerOffset,h=a.position,c=a._aspectRatio||e.shiftKey,u={top:0,left:0},d=a.containerElement;d[0]!==document&&/static/.test(d.css("position"))&&(u=l),h.left<(a._helper?l.left:0)&&(a.size.width=a.size.width+(a._helper?a.position.left-l.left:a.position.left-u.left),c&&(a.size.height=a.size.width/a.aspectRatio),a.position.left=r.helper?l.left:0),h.top<(a._helper?l.top:0)&&(a.size.height=a.size.height+(a._helper?a.position.top-l.top:a.position.top),c&&(a.size.width=a.size.height*a.aspectRatio),a.position.top=a._helper?l.top:0),a.offset.left=a.parentData.left+a.position.left,a.offset.top=a.parentData.top+a.position.top,i=Math.abs((a._helper,a.offset.left-u.left+a.sizeDiff.width)),s=Math.abs((a._helper?a.offset.top-u.top:a.offset.top-l.top)+a.sizeDiff.height),n=a.containerElement.get(0)===a.element.parent().get(0),o=/relative|absolute/.test(a.containerElement.css("position")),n&&o&&(i-=a.parentData.left),i+a.size.width>=a.parentData.width&&(a.size.width=a.parentData.width-i,c&&(a.size.height=a.size.width/a.aspectRatio)),s+a.size.height>=a.parentData.height&&(a.size.height=a.parentData.height-s,c&&(a.size.width=a.size.height*a.aspectRatio))},stop:function(){var e=t(this).data("ui-resizable"),i=e.options,s=e.containerOffset,n=e.containerPosition,o=e.containerElement,a=t(e.helper),r=a.offset(),l=a.outerWidth()-e.sizeDiff.width,h=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:l,height:h}),e._helper&&!i.animate&&/static/.test(o.css("position"))&&t(this).css({left:r.left-n.left-s.left,width:l,height:h})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).data("ui-resizable").options,i=function(e){t(e).each(function(){var e=t(this);e.data("ui-resizable-alsoresize",{width:parseInt(e.width(),10),height:parseInt(e.height(),10),left:parseInt(e.css("left"),10),top:parseInt(e.css("top"),10)})})};"object"!=typeof e.alsoResize||e.alsoResize.parentNode?i(e.alsoResize):e.alsoResize.length?(e.alsoResize=e.alsoResize[0],i(e.alsoResize)):t.each(e.alsoResize,function(t){i(t)})},resize:function(e,i){var s=t(this).data("ui-resizable"),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},l=function(e,s){t(e).each(function(){var e=t(this),n=t(this).data("ui-resizable-alsoresize"),o={},a=s&&s.length?s:e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(a,function(t,e){var i=(n[e]||0)+(r[e]||0);i&&i>=0&&(o[e]=i||null)}),e.css(o)})};"object"!=typeof n.alsoResize||n.alsoResize.nodeType?l(n.alsoResize):t.each(n.alsoResize,function(t,e){l(t,e)})},stop:function(){t(this).removeData("resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).data("ui-resizable"),i=e.options,s=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:s.height,width:s.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof i.ghost?i.ghost:""),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).data("ui-resizable");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).data("ui-resizable");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e=t(this).data("ui-resizable"),i=e.options,s=e.size,n=e.originalSize,o=e.originalPosition,a=e.axis,r="number"==typeof i.grid?[i.grid,i.grid]:i.grid,l=r[0]||1,h=r[1]||1,c=Math.round((s.width-n.width)/l)*l,u=Math.round((s.height-n.height)/h)*h,d=n.width+c,p=n.height+u,f=i.maxWidth&&d>i.maxWidth,m=i.maxHeight&&p>i.maxHeight,g=i.minWidth&&i.minWidth>d,v=i.minHeight&&i.minHeight>p;i.grid=r,g&&(d+=l),v&&(p+=h),f&&(d-=l),m&&(p-=h),/^(se|s|e)$/.test(a)?(e.size.width=d,e.size.height=p):/^(ne)$/.test(a)?(e.size.width=d,e.size.height=p,e.position.top=o.top-u):/^(sw)$/.test(a)?(e.size.width=d,e.size.height=p,e.position.left=o.left-c):(e.size.width=d,e.size.height=p,e.position.top=o.top-u,e.position.left=o.left-c)}})}(jQuery),function(t){t.widget("ui.selectable",t.ui.mouse,{version:"1.10.3",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,i=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){(e=t(i.options.filter,i.element[0])).addClass("ui-selectee"),e.each(function(){var e=t(this),i=e.offset();t.data(this,"selectable-item",{element:this,$element:e,left:i.left,top:i.top,right:i.left+e.outerWidth(),bottom:i.top+e.outerHeight(),startselected:!1,selected:e.hasClass("ui-selected"),selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=e.addClass("ui-selectee"),this._mouseInit(),this.helper=t("<div class='ui-selectable-helper'></div>")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(e){var i=this,s=this.options;this.opos=[e.pageX,e.pageY],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||(s.$element.removeClass("ui-selected"),s.selected=!1,s.$element.addClass("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"),n.$element.removeClass(s?"ui-unselecting":"ui-selected").addClass(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,l=e.pageY;return o>r&&(i=r,r=o,o=i),a>l&&(i=l,l=a,a=i),this.helper.css({left:o,top:a,width:r-o,height:l-a}),this.selectees.each(function(){var i=t.data(this,"selectable-item"),h=!1;i&&i.element!==s.element[0]&&("touch"===n.tolerance?h=!(i.left>r||o>i.right||i.top>l||a>i.bottom):"fit"===n.tolerance&&(h=i.left>o&&r>i.right&&i.top>a&&l>i.bottom),h?(i.selected&&(i.$element.removeClass("ui-selected"),i.selected=!1),i.unselecting&&(i.$element.removeClass("ui-unselecting"),i.unselecting=!1),i.selecting||(i.$element.addClass("ui-selecting"),i.selecting=!0,s._trigger("selecting",e,{selecting:i.element}))):(i.selecting&&((e.metaKey||e.ctrlKey)&&i.startselected?(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.$element.addClass("ui-selected"),i.selected=!0):(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.startselected&&(i.$element.addClass("ui-unselecting"),i.unselecting=!0),s._trigger("unselecting",e,{unselecting:i.element}))),i.selected&&(e.metaKey||e.ctrlKey||i.startselected||(i.$element.removeClass("ui-selected"),i.selected=!1,i.$element.addClass("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");s.$element.removeClass("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");s.$element.removeClass("ui-selecting").addClass("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}})}(jQuery),function(t){function e(t,e,i){return t>e&&e+i>t}function i(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))}t.widget("ui.sortable",t.ui.mouse,{version:"1.10.3",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_create:function(){var t=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=!!this.items.length&&("x"===t.axis||i(this.items[0].item)),this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_setOption:function(e,i){"disabled"===e?(this.options[e]=i,this.widget().toggleClass("ui-sortable-disabled",!!i)):t.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(e,i){var s=null,n=!1,o=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(e),t(e.target).parents().each(function(){return t.data(this,o.widgetName+"-item")===o?(s=t(this),!1):void 0}),t.data(e.target,o.widgetName+"-item")===o&&(s=t(e.target)),!!s&&(!(this.options.handle&&!i&&(t(this.options.handle,s).find("*").addBack().each(function(){this===e.target&&(n=!0)}),!n))&&(this.currentItem=s,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(e,i,s){var n,o,a=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left
vendor: 7,763 bytes, line 1
1:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,a.cursorAt&&this._adjustOffsetFromHelper(a.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),a.containment&&this._setContainment(),a.cursor&&"auto"!==a.cursor&&(o=this.document.find("body"),this.storedCursor=o.css("cursor"),o.css("cursor",a.cursor),this.storedStylesheet=t("<style>*{ cursor: "+a.cursor+" !important; }</style>").appendTo(o)),a.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",a.opacity)),a.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",a.zIndex)),this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!s)for(n=this.containers.length-1;n>=0;n--)this.containers[n]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,s,n,o,a=this.options,r=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<a.scrollSensitivity?this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop+a.scrollSpeed:e.pageY-this.overflowOffset.top<a.scrollSensitivity&&(this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop-a.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<a.scrollSensitivity?this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft+a.scrollSpeed:e.pageX-this.overflowOffset.left<a.scrollSensitivity&&(this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft-a.scrollSpeed)):(e.pageY-t(document).scrollTop()<a.scrollSensitivity?r=t(document).scrollTop(t(document).scrollTop()-a.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())<a.scrollSensitivity&&(r=t(document).scrollTop(t(document).scrollTop()+a.scrollSpeed)),e.pageX-t(document).scrollLeft()<a.scrollSensitivity?r=t(document).scrollLeft(t(document).scrollLeft()-a.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())<a.scrollSensitivity&&(r=t(document).scrollLeft(t(document).scrollLeft()+a.scrollSpeed))),!1!==r&&t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),i=this.items.length-1;i>=0;i--)if(n=(s=this.items[i]).item[0],(o=this._intersectsWithPointer(s))&&s.instance===this.currentContainer&&n!==this.currentItem[0]&&this.placeholder[1===o?"next":"prev"]()[0]!==n&&!t.contains(this.placeholder[0],n)&&("semi-dynamic"!==this.options.type||!t.contains(this.element[0],n))){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(s))break;this._rearrange(e,s),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var s=this,n=this.placeholder.offset(),o=this.options.axis,a={};o&&"x"!==o||(a.left=n.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(a.top=n.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(a,parseInt(this.options.revert,10)||500,function(){s._clear(e)})}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),s=[];return e=e||{},t(i).each(function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&s.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))}),!s.length&&e.key&&s.push(e.key+"="),s.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),s=[];return e=e||{},i.each(function(){s.push(t(e.item||this).attr(e.attribute||"id")||"")}),s},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,s=this.positionAbs.top,n=s+this.helperProportions.height,o=t.left,a=o+t.width,r=t.top,l=r+t.height,h=this.offset.click.top,c=this.offset.click.left,u="x"===this.options.axis||s+h>r&&l>s+h,d="y"===this.options.axis||e+c>o&&a>e+c,p=u&&d;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?p:e+this.helperProportions.width/2>o&&a>i-this.helperProportions.width/2&&s+this.helperProportions.height/2>r&&l>n-this.helperProportions.height/2},_intersectsWithPointer:function(t){var i="x"===this.options.axis||e(this.positionAbs.top+this.offset.click.top,t.top,t.height),s="y"===this.options.axis||e(this.positionAbs.left+this.offset.click.left,t.left,t.width),n=i&&s,o=this._getDragVerticalDirection(),a=this._getDragHorizontalDirection();return!!n&&(this.floating?a&&"right"===a||"down"===o?2:1:o&&("down"===o?2:1))},_intersectsWithSides:function(t){var i=e(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),s=e(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),n=this._getDragVerticalDirection(),o=this._getDragHorizontalDirection();return this.floating&&o?"right"===o&&s||"left"===o&&!s:n&&("down"===n&&i||"up"===n&&!i)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this.refreshPositions(),this},_connectWith:function(){var t=this.options;
vendor: 2,144 bytes, line 1
1return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var i,s,n,o,a=[],r=[],l=this._connectWith();if(l&&e)for(i=l.length-1;i>=0;i--)for(s=(n=t(l[i])).length-1;s>=0;s--)(o=t.data(n[s],this.widgetFullName))&&o!==this&&!o.options.disabled&&r.push([t.isFunction(o.options.items)?o.options.items.call(o.element):t(o.options.items,o.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),o]);for(r.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=r.length-1;i>=0;i--)r[i][0].each(function(){a.push(this)});return t(a)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(t){for(var i=0;e.length>i;i++)if(e[i]===t.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var i,s,n,o,a,r,l,h,c=this.items,u=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],d=this._connectWith();if(d&&this.ready)for(i=d.length-1;i>=0;i--)for(s=(n=t(d[i])).length-1;s>=0;s--)(o=t.data(n[s],this.widgetFullName))&&o!==this&&!o.options.disabled&&(u.push([t.isFunction(o.options.items)?o.options.items.call(o.element[0],e,{item:this.currentItem}):t(o.options.items,o.element),o]),this.containers.push(o));for(i=u.length-1;i>=0;i--)for(a=u[i][1],s=0,h=(r=u[i][0]).length;h>s;s++)(l=t(r[s])).data(this.widgetName+"-item",a),c.push({item:l,instance:a,width:0,height:0,left:0,top:0})},refreshPositions:function(e){var i,s,n,o;for(this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),i=this.items.length-1;i>=0;i--)(s=this.items[i]).instance!==this.currentContainer&&this.currentContainer&&s.item[0]!==this.currentItem[0]||(n=this.options.toleranceElement?t(this.options.toleranceElement,s.item):s.item,e||(s.width=n.outerWidth(),s.height=n.outerHeight()),o=n.offset(),s.left=o.left,s.top=o.top);
vendor: 1,124 bytes, line 1
1if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)o=this.containers[i].element.offset(),this.containers[i].containerCache.left=o.left,this.containers[i].containerCache.top=o.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(e){var i,s=(e=e||this).options;s.placeholder&&s.placeholder.constructor!==String||(i=s.placeholder,s.placeholder={element:function(){var s=e.currentItem[0].nodeName.toLowerCase(),n=t("<"+s+">",e.document[0]).addClass(i||e.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tr"===s?e.currentItem.children().each(function(){t("<td>&#160;</td>",e.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(n)}):"img"===s&&n.attr("src",e.currentItem.attr("src")),i||n.css("visibility","hidden"),n},update:function(t,n){(!i||s.forcePlaceholderSize)&&(n.height()||n.height(e.currentItem.innerHe
vendor: 33,658 bytes, line 1
1ight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),n.width()||n.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(s.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),s.placeholder.update(e,e.placeholder)},_contactContainers:function(s){var n,o,a,r,l,h,c,u,d,p,f=null,m=null;for(n=this.containers.length-1;n>=0;n--)if(!t.contains(this.currentItem[0],this.containers[n].element[0]))if(this._intersectsWith(this.containers[n].containerCache)){if(f&&t.contains(this.containers[n].element[0],f.element[0]))continue;f=this.containers[n],m=n}else this.containers[n].containerCache.over&&(this.containers[n]._trigger("out",s,this._uiHash(this)),this.containers[n].containerCache.over=0);if(f)if(1===this.containers.length)this.containers[m].containerCache.over||(this.containers[m]._trigger("over",s,this._uiHash(this)),this.containers[m].containerCache.over=1);else{for(a=1e4,r=null,l=(p=f.floating||i(this.currentItem))?"left":"top",h=p?"width":"height",c=this.positionAbs[l]+this.offset.click[l],o=this.items.length-1;o>=0;o--)t.contains(this.containers[m].element[0],this.items[o].item[0])&&this.items[o].item[0]!==this.currentItem[0]&&(!p||e(this.positionAbs.top+this.offset.click.top,this.items[o].top,this.items[o].height))&&(u=this.items[o].item.offset()[l],d=!1,Math.abs(u-c)>Math.abs(u+this.items[o][h]-c)&&(d=!0,u+=this.items[o][h]),a>Math.abs(u-c)&&(a=Math.abs(u-c),r=this.items[o],this.direction=d?"up":"down"));if(!r&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[m])return;r?this._rearrange(s,r,null,!0):this._rearrange(s,null,this.containers[m].element,!0),this._trigger("change",s,this._uiHash()),this.containers[m]._trigger("change",s,this._uiHash(this)),this.currentContainer=this.containers[m],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[m]._trigger("over",s,this._uiHash(this)),this.containers[m].containerCache.over=1}},_createHelper:function(e){var i=this.options,s=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return s.parents("body").length||t("parent"!==i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(s[0]),s[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!s[0].style.width||i.forceHelperSize)&&s.width(this.currentItem.width()),(!s[0].style.height||i.forceHelperSize)&&s.height(this.currentItem.height()),s},_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)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(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){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,s,n=this.options;"parent"===n.containment&&(n.containment=this.helper[0].parentNode),("document"===n.containment||"window"===n.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,t("document"===n.containment?document:window).width()-this.helperProportions.width-this.margins.left,(t("document"===n.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(n.containment)||(e=t(n.containment)[0],i=t(n.containment).offset(),s="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(s?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(s?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,i){i||(i=this.position);var s="absolute"===e?1:-1,n="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(n[0].tagName);return{top:i.top+this.offset.relative.top*s+this.offset.parent.top*s-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:n.scrollTop())*s,left:i.left+this.offset.relative.left*s+this.offset.parent.left*s-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:n.scrollLeft())*s}},_generatePosition:function(e){var i,s,n=this.options,o=e.pageX,a=e.pageY,r="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(r[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==document&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(o=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(a=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(o=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(a=this.containment[3]+this.offset.click.top)),n.grid&&(i=this.originalPageY+Math.round((a-this.originalPageY)/n.grid[1])*n.grid[1],a=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-n.grid[1]:i+n.grid[1]:i,s=this.originalPageX+Math.round((o-this.originalPageX)/n.grid[0])*n.grid[0],o=this.containment?s-this.offset.click.left>=this.containment[0]&&s-this.offset.click.left<=this.containment[2]?s:s-this.offset.click.left>=this.containment[0]?s-n.grid[0]:s+n.grid[0]:s)),{top:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:r.scrollTop()),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:r.scrollLeft())}},_rearrange:function(t,e,i,s){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var n=this.counter;this._delay(function(){n===this.counter&&this.refreshPositions(!s)})},_clear:function(t,e){this.reverting=!1;var i,s=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)("auto"===this._storedCSS[i]||"static"===this._storedCSS[i])&&(this._storedCSS[i]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&s.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||s.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&&(e||(s.push(function(t){this._trigger("remove",t,this._uiHash())}),s.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),s.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)e||s.push(function(t){return function(e){t._trigger("deactivate",e,this._uiHash(this))}}.call(this,this.containers[i])),this.containers[i].containerCache.over&&(s.push(function(t){return function(e){t._trigger("out",e,this._uiHash(this))}}.call(this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!e){for(this._trigger("beforeStop",t,this._uiHash()),i=0;s.length>i;i++)s[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!1}if(e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null,!e){for(i=0;s.length>i;i++)s[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){!1===t.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}})}(jQuery),function(t,e){var i="ui-effects-";t.effects={effect:{}},function(t,e){function i(t,e,i){var s=c[e.type]||{};return null==t?i||!e.def?null:e.def:(t=s.floor?~~t:parseFloat(t),isNaN(t)?e.def:s.mod?(t+s.mod)%s.mod:0>t?0:t>s.max?s.max:t)}function s(i){var s=l(),n=s._rgba=[];return i=i.toLowerCase(),p(r,function(t,o){var a,r=o.re.exec(i),l=r&&o.parse(r),c=o.space||"rgba";return l?(a=s[c](l),s[h[c].cache]=a[h[c].cache],n=s._rgba=a._rgba,!1):e}),n.length?("0,0,0,0"===n.join()&&t.extend(n,o.transparent),s):o[i]}function n(t,e,i){return 1>6*(i=(i+1)%1)?t+6*(e-t)*i:1>2*i?e:2>3*i?t+6*(e-t)*(2/3-i):t}var o,a=/^([\-+])=\s*(\d+\.?\d*)/,r=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],l=t.Color=function(e,i,s,n){return new t.Color.fn.parse(e,i,s,n)},h={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},c={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},u=l.support={},d=t("<p>")[0],p=t.each;d.style.cssText="background-color:rgba(1,1,1,.5)",u.rgba=d.style.backgroundColor.indexOf("rgba")>-1,p(h,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),l.fn=t.extend(l.prototype,{parse:function(n,a,r,c){if(n===e)return this._rgba=[null,null,null,null],this;(n.jquery||n.nodeType)&&(n=t(n).css(a),a=e);var u=this,d=t.type(n),f=this._rgba=[];return a!==e&&(n=[n,a,r,c],d="array"),"string"===d?this.parse(s(n)||o._default):"array"===d?(p(h.rgba.props,function(t,e){f[e.idx]=i(n[e.idx],e)}),this):"object"===d?(p(h,n instanceof l?function(t,e){n[e.cache]&&(u[e.cache]=n[e.cache].slice())}:function(e,s){var o=s.cache;p(s.props,function(t,e){if(!u[o]&&s.to){if("alpha"===t||null==n[t])return;u[o]=s.to(u._rgba)}u[o][e.idx]=i(n[t],e,!0)}),u[o]&&0>t.inArray(null,u[o].slice(0,3))&&(u[o][3]=1,s.from&&(u._rgba=s.from(u[o])))}),this):e},is:function(t){var i=l(t),s=!0,n=this;return p(h,function(t,o){var a,r=i[o.cache];return r&&(a=n[o.cache]||o.to&&o.to(n._rgba)||[],p(o.props,function(t,i){return null!=r[i.idx]?s=r[i.idx]===a[i.idx]:e})),s}),s},_space:function(){var t=[],e=this;return p(h,function(i,s){e[s.cache]&&t.push(i)}),t.pop()},transition:function(t,e){var s=l(t),n=s._space(),o=h[n],a=0===this.alpha()?l("transparent"):this,r=a[o.cache]||o.to(a._rgba),u=r.slice();return s=s[o.cache],p(o.props,function(t,n){var o=n.idx,a=r[o],l=s[o],h=c[n.type]||{};null!==l&&(null===a?u[o]=l:(h.mod&&(l-a>h.mod/2?a+=h.mod:a-l>h.mod/2&&(a-=h.mod)),u[o]=i((l-a)*e+a,n)))}),this[n](u)},blend:function(e){if(1===this._rgba[3])return this;var i=this._rgba.slice(),s=i.pop(),n=l(e)._rgba;return l(t.map(i,function(t,e){return(1-s)*n[e]+s*t}))},toRgbaString:function(){var e="rgba(",i=t.map(this._rgba,function(t,e){return null==t?e>2?1:0:t});return 1===i[3]&&(i.pop(),e="rgb("),e+i.join()+")"},toHslaString:function(){var e="hsla(",i=t.map(this.hsla(),function(t,e){return null==t&&(t=e>2?1:0),e&&3>e&&(t=Math.round(100*t)+"%"),t});return 1===i[3]&&(i.pop(),e="hsl("),e+i.join()+")"},toHexString:function(e){var i=this._rgba.slice(),s=i.pop();return e&&i.push(~~(255*s)),"#"+t.map(i,function(t){return 1===(t=(t||0).toString(16)).length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),l.fn.parse.prototype=l.fn,h.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e,i,s=t[0]/255,n=t[1]/255,o=t[2]/255,a=t[3],r=Math.max(s,n,o),l=Math.min(s,n,o),h=r-l,c=r+l,u=.5*c;return e=l===r?0:s===r?60*(n-o)/h+360:n===r?60*(o-s)/h+120:60*(s-n)/h+240,i=0===h?0:.5>=u?h/c:h/(2-c),[Math.round(e)%360,i,u,null==a?1:a]},h.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,i=t[1],s=t[2],o=t[3],a=.5>=s?s*(1+i):s+i-s*i,r=2*s-a;return[Math.round(255*n(r,a,e+1/3)),Math.round(255*n(r,a,e)),Math.round(255*n(r,a,e-1/3)),o]},p(h,function(s,n){var o=n.props,r=n.cache,h=n.to,c=n.from;l.fn[s]=function(s){if(h&&!this[r]&&(this[r]=h(this._rgba)),s===e)return this[r].slice();var n,a=t.type(s),u="array"===a||"object"===a?s:arguments,d=this[r].slice();return p(o,function(t,e){var s=u["object"===a?t:e.idx];null==s&&(s=d[e.idx]),d[e.idx]=i(s,e)}),c?((n=l(c(d)))[r]=d,n):l(d)},p(o,function(e,i){l.fn[e]||(l.fn[e]=function(n){var o,r=t.type(n),l="alpha"===e?this._hsla?"hsla":"rgba":s,h=this[l](),c=h[i.idx];return"undefined"===r?c:("function"===r&&(n=n.call(this,c),r=t.type(n)),null==n&&i.empty?this:("string"===r&&((o=a.exec(n))&&(n=c+parseFloat(o[2])*("+"===o[1]?1:-1))),h[i.idx]=n,this[l](h)))})})}),l.hook=function(e){var i=e.split(" ");p(i,function(e,i){t.cssHooks[i]={set:function(e,n){var o,a,r="";if("transparent"!==n&&("string"!==t.type(n)||(o=s(n)))){if(n=l(o||n),!u.rgba&&1!==n._rgba[3]){for(a="backgroundColor"===i?e.parentNode:e;(""===r||"transparent"===r)&&a&&a.style;)try{r=t.css(a,"backgroundColor"),a=a.parentNode}catch(t){}n=n.blend(r&&"transparent"!==r?r:"_default")}n=n.toRgbaString()}try{e.style[i]=n}catch(t){}}},t.fx.step[i]=function(e){e.colorInit||(e.start=l(e.elem,i),e.end=l(e.end),e.colorInit=!0),t.cssHooks[i].set(e.elem,e.start.transition(e.end,e.pos))}})},l.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),t.cssHooks.borderColor={expand:function(t){var e={};return p(["Top","Right","Bottom","Left"],function(i,s){e["border"+s+"Color"]=t}),e}},o=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(jQuery),function(){function i(e){var i,s,n=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,o={};if(n&&n.length&&n[0]&&n[n[0]])for(s=n.length;s--;)"string"==typeof n[i=n[s]]&&(o[t.camelCase(i)]=n[i]);else for(i in n)"string"==typeof n[i]&&(o[i]=n[i]);return o}function s(e,i){var s,n,a={};for(s in i)n=i[s],e[s]!==n&&(o[s]||(t.fx.step[s]||!isNaN(parseFloat(n)))&&(a[s]=n));return a}var n=["add","remove","toggle"],o={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(e,i){t.fx.step[i]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(jQuery.style(t.elem,i,t.end),t.setAttr=!0)}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.effects.animateClass=function(e,o,a,r){var l=t.speed(o,a,r);return this.queue(function(){var o,a=t(this),r=a.attr("class")||"",h=l.children?a.find("*").addBack():a;h=h.map(function(){return{el:t(this),start:i(this)}}),(o=function(){t.each(n,function(t,i){e[i]&&a[i+"Class"](e[i])})})(),h=h.map(function(){return this.end=i(this.el[0]),this.diff=s(this.start,this.end),this}),a.attr("class",r),h=h.map(function(){var e=this,i=t.Deferred(),s=t.extend({},l,{queue:!1,complete:function(){i.resolve(e)}});return this.el.animate(this.diff,s),i.promise()}),t.when.apply(t,h.get()).done(function(){o(),t.each(arguments,function(){var e=this.el;t.each(this.diff,function(t){e.css(t,"")})}),l.complete.call(a[0])})})},t.fn.extend({addClass:function(e){return function(i,s,n,o){return s?t.effects.animateClass.call(this,{add:i},s,n,o):e.apply(this,arguments)}}(t.fn.addClass),removeClass:function(e){return function(i,s,n,o){return arguments.length>1?t.effects.animateClass.call(this,{remove:i},s,n,o):e.apply(this,arguments)}}(t.fn.removeClass),toggleClass:function(i){return function(s,n,o,a,r){return"boolean"==typeof n||n===e?o?t.effects.animateClass.call(this,n?{add:s}:{remove:s},o,a,r):i.apply(this,arguments):t.effects.animateClass.call(this,{toggle:s},n,o,a)}}(t.fn.toggleClass),switchClass:function(e,i,s,n,o){return t.effects.animateClass.call(this,{add:i,remove:e},s,n,o)}})}(),function(){function s(e,i,s,n){return t.isPlainObject(e)&&(i=e,e=e.effect),e={effect:e},null==i&&(i={}),t.isFunction(i)&&(n=i,s=null,i={}),("number"==typeof i||t.fx.speeds[i])&&(n=s,s=i,i={}),t.isFunction(s)&&(n=s,s=null),i&&t.extend(e,i),s=s||i.duration,e.duration=t.fx.off?0:"number"==typeof s?s:s in t.fx.speeds?t.fx.speeds[s]:t.fx.speeds._default,e.complete=n||i.complete,e}function n(e){return!(e&&"number"!=typeof e&&!t.fx.speeds[e])||("string"==typeof e&&!t.effects.effect[e]||(!!t.isFunction(e)||"object"==typeof e&&!e.effect))}t.extend(t.effects,{version:"1.10.3",save:function(t,e){for(var s=0;e.length>s;s++)null!==e[s]&&t.data(i+e[s],t[0].style[e[s]])},restore:function(t,s){var n,o;for(o=0;s.length>o;o++)null!==s[o]&&((n=t.data(i+s[o]))===e&&(n=""),t.css(s[o],n))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},getBaseline:function(t,e){var i,s;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":s=0;break;case"center":s=.5;break;case"right":s=1;break;default:s=t[1]/e.width}return{x:s,y:i}},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var i={width:e.outerWidth(!0),height:e.outerHeight(!0),float:e.css("float")},s=t("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),n={width:e.width(),height:e.height()},o=document.activeElement;try{o.id}catch(t){o=document.body}return e.wrap(s),(e[0]===o||t.contains(e[0],o))&&t(o).focus(),s=e.parent(),"static"===e.css("position")?(s.css({position:"relative"}),e.css({position:"relative"})):(t.extend(i,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],function(t,s){i[s]=e.css(s),isNaN(parseInt(i[s],10))&&(i[s]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(n),s.css(i).show()},removeWrapper:function(e){var i=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===i||t.contains(e[0],i))&&t(i).focus()),e},setTransition:function(e,i,s,n){return n=n||{},t.each(i,function(t,i){var o=e.cssUnit(i);o[0]>0&&(n[i]=o[0]*s+o[1])}),n}}),t.fn.extend({effect:function(){function e(e){function s(){t.isFunction(o)&&o.call(n[0]),t.isFunction(e)&&e()}var n=t(this),o=i.complete,r=i.mode;(n.is(":hidden")?"hide"===r:"show"===r)?(n[r](),s()):a.call(n[0],i,s)}var i=s.apply(this,arguments),n=i.mode,o=i.queue,a=t.effects.effect[i.effect];return t.fx.off||!a?n?this[n](i.duration,i.complete):this.each(function(){i.complete&&i.complete.call(this)}):!1===o?this.each(e):this.queue(o||"fx",e)},show:function(t){return function(e){if(n(e))return t.apply(this,arguments);var i=s.apply(this,arguments);return i.mode="show",this.effect.call(this,i)}}(t.fn.show),hide:function(t){return function(e){if(n(e))return t.apply(this,arguments);var i=s.apply(this,arguments);return i.mode="hide",this.effect.call(this,i)}}(t.fn.hide),toggle:function(t){return function(e){if(n(e)||"boolean"==typeof e)return t.apply(this,arguments);var i=s.apply(this,arguments);return i.mode="toggle",this.effect.call(this,i)}}(t.fn.toggle),cssUnit:function(e){var i=this.css(e),s=[];return t.each(["em","px","%","pt"],function(t,e){i.indexOf(e)>0&&(s=[parseFloat(i),e])}),s}})}(),function(){var e={};t.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,i){e[i]=function(e){return Math.pow(e,t+2)}}),t.extend(e,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;((e=Math.pow(2,--i))-1)/11>t;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(e,function(e,i){t.easing["easeIn"+e]=i,t.easing["easeOut"+e]=function(t){return 1-i(1-t)},t.easing["easeInOut"+e]=function(t){return.5>t?i(2*t)/2:1-i(-2*t+2)/2}})}()}(jQuery),function(t){var e=0,i={},s={};i.height=i.paddingTop=i.paddingBottom=i.borderTopWidth=i.borderBottomWidth="hide",s.height=s.paddingTop=s.paddingBottom=s.borderTopWidth=s.borderBottomWidth="show",t.widget("ui.accordion",{version:"1.10.3",options:{active:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},_create:function(){var e=this.options;this.prevShow=this.prevHide=t(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),e.collapsible||!1!==e.active&&null!=e.active||(e.active=0),this._processPanels(),0>e.active&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():t(),content:this.active.length?this.active.next():t()}},_createIcons:function(){var e=this.options.icons;e&&(t("<span>").addClass("ui-accordion-header-icon ui-icon "+e.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(e.header).addClass(e.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){return"active"===t?void this._activate(e):("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||!1!==this.options.active||this._activate(0),"icons"===t&&(this._destroyIcons(),e&&this._createIcons()),void("disabled"===t&&this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!e)))},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var i=t.ui.keyCode,s=this.headers.length,n=this.headers.index(e.target),o=!1;switch(e.keyCode){case i.RIGHT:case i.DOWN:o=this.headers[(n+1)%s];break;case i.LEFT:case i.UP:o=this.headers[(n-1+s)%s];break;case i.SPACE:case i.ENTER:this._eventHandler(e);break;case i.HOME:o=this.headers[0];break;case i.END:o=this.headers[s-1]}o&&(t(e.target).attr("tabIndex",-1),t(o).attr("tabIndex",0),o.focus(),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===t.ui.keyCode.UP&&e.ctrlKey&&t(e.currentTarget).prev().focus()},refresh:function(){var e=this.options;this._processPanels(),!1===e.active&&!0===e.collapsible||!this.headers.length?(e.active=!1,this.active=t()):!1===e.active?this._activate(0):this.active.length&&!t.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=t()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all"),this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide()},_refresh:function(){var i,s=this.options,n=s.heightStyle,o=this.element.parent(),a=this.accordionId="ui-accordion-"+(this.element.attr("id")||++e);this.active=this._findActive(s.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active.next().addClass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each(function(e){var i=t(this),s=i.attr("id"),n=i.next(),o=n.attr("id");s||(s=a+"-header-"+e,i.attr("id",s)),o||(o=a+"-panel-"+e,n.attr("id",o)),i.attr("aria-controls",o),n.attr("aria-labelledby",s)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false",tabIndex:-1}).next().attr({"aria-expanded":"false","aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true",tabIndex:0}).next().attr({"aria-expanded":"true","aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(s.event),"fill"===n?(i=o.height(),this.element.siblings(":visible").each(function(){var e=t(this),s=e.css("position");"absolute"!==s&&"fixed"!==s&&(i-=e.outerHeight(!0))}),this.headers.each(function(){i-=t(this).outerHeight(!0)}),this.headers.next().each(function(){t(this).height(Math.max(0,i-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===n&&(i=0,this.headers.next().each(function(){i=Math.max(i,t(this).css("height","").height())}).height(i))},_activate:function(e){var i=this._findActive(e)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):t()},_setupEvents:function(e){var i={keydown:"_keydown"};e&&t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var i=this.options,s=this.active,n=t(e.currentTarget),o=n[0]===s[0],a=o&&i.collapsible,r=a?t():n.next(),l=s.next(),h={oldHeader:s,oldPanel:l,newHeader:a?t():n,newPanel:r};e.preventDefault(),o&&!i.collapsible||!1===this._trigger("beforeActivate",e,h)||(i.active=!a&&this.headers.index(n),this.active=o?t():n,this._toggle(h),s.removeClass("ui-accordion-header-active ui-state-active"),i.icons&&s.children(".ui-accordion-header-icon").removeClass(i.icons.activeHeader).addClass(i.icons.header),o||(n.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),i.icons&&n.children(".ui-accordion-header-icon").removeClass(i.icons.header).addClass(i.icons.activeHeader),n.next().addClass("ui-accordion-content-active")))},_toggle:function(e){var i=e.newPanel,s=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=i,this.prevHide=s,this.options.animate?this._animate(i,s,e):(s.hide(),i.show(),this._toggleComplete(e)),s.attr({"aria-expanded":"false","aria-hidden":"true"}),s.prev().attr("aria-selected","false"),i.length&&s.length?s.prev().attr("tabIndex",-1):i.length&&this.headers.filter(function(){return 0===t(this).attr("tabIndex")}).attr("tabIndex",-1),i.attr({"aria-expanded":"true","aria-hidden":"false"}).prev().attr({"aria-selected":"true",tabIndex:0})},_animate:function(t,e,n){var o,a,r,l=this,h=0,c=t.length&&(!e.length||t.index()<e.index()),u=this.options.animate||{},d=c&&u.down||u,p=function(){l._toggleComplete(n)};return"number"==typeof d&&(r=d),"string"==typeof d&&(a=d),a=a||d.easing||u.easing,r=r||d.duration||u.duration,e.length?t.length?(o=t.show().outerHeight(),e.animate(i,{duration:r,easing:a,step:function(t,e){e.now=Math.round(t)}}),void t.hide().animate(s,{duration:r,easing:a,complete:p,step:function(t,i){i.now=Math.round(t),"height"!==i.prop?h+=i.now:"content"!==l.options.heightStyle&&(i.now=Math.round(o-e.outerHeight()-h),h=0)}})):e.animate(i,r,a,p):t.animate(s,r,a,p)},_toggleComplete:function(t){var e=t.oldPanel;e.removeClass("ui-accordion-content-active").prev().removeClass("ui-corner-top").addClass("ui-corner-all"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}})}(jQuery),function(t){var e=0;t.widget("ui.autocomplete",{version:"1.10.3",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var e,i,s,n=this.element[0].nodeName.toLowerCase(),o="textarea"===n,a="input"===n;this.isMultiLine=!!o||!a&&this.element.prop("isContentEditable"),this.valueMethod=this.element[o||a?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(n){if(this.element.prop("readOnly"))return e=!0,s=!0,void(i=!0);e=!1,s=!1,i=!1;var o=t.ui.keyCode;switch(n.keyCode){case o.PAGE_UP:e=!0,this._move("previousPage",n);break;case o.PAGE_DOWN:e=!0,this._move("nextPage",n);break;case o.UP:e=!0,this._keyEvent("previous",n);break;case o.DOWN:e=!0,this._keyEvent("next",n);break;case o.ENTER:case o.NUMPAD_ENTER:this.menu.active&&(e=!0,n.preventDefault(),this.menu.select(n));break;case o.TAB:this.menu.active&&this.menu.select(n);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this._value(this.term),this.close(n),n.preventDefault());break;default:i=!0,this._searchTimeout(n)}},keypress:function(s){if(e)return e=!1,void((!this.isMultiLine||this.menu.element.is(":visible"))&&s.preventDefault());if(!i){var n=t.ui.keyCode;switch(s.keyCode){case n.PAGE_UP:this._move("previousPage",s);break;case n.PAGE_DOWN:this._move("nextPage",s);break;case n.UP:this._keyEvent("previous",s);break;case n.DOWN:this._keyEvent("next",s)}}},input:function(t){return s?(s=!1,void t.preventDefault()):void this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value(
vendor: 8,178 bytes, line 1
1)},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),void this._change(t))}}),this._initSource(),this.menu=t("<ul>").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().data("ui-menu"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var i=this.menu.element[0];t(e.target).closest(".ui-menu-item").length||this._delay(function(){var e=this;this.document.one("mousedown",function(s){s.target===e.element[0]||s.target===i||t.contains(i,s.target)||e.close()})})},menufocus:function(e,i){if(this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)});var s=i.item.data("ui-autocomplete-item");!1!==this._trigger("focus",e,{item:s})?e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(s.value):this.liveRegion.text(s.value)},menuselect:function(t,e){var i=e.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=s,this._delay(function(){this.previous=s,this.selectedItem=i})),!1!==this._trigger("select",t,{item:i})&&this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=t("<span>",{role:"status","aria-live":"polite"}).addClass("ui-helper-hidden-accessible").insertBefore(this.element),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e||(e=this.element.closest(".ui-front")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,s=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,s){s(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,n){s.xhr&&s.xhr.abort(),s.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){n(t)},error:function(){n([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){this.term!==this._value()&&(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):!1!==this._trigger("search",e)?this._search(t):void 0},_search:function(t){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var t=this,i=++e;return function(s){i===e&&t.__response(s),t.pending--,t.pending||t.element.removeClass("ui-autocomplete-loading")}},__response:function(t){t&&(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,function(e){return"string"==typeof e?{label:e,value:e}:t.extend({label:e.label||e.value,value:e.value||e.label},e)})},_suggest:function(e){var i=this.menu.element.empty();this._renderMenu(i,e),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,i){var s=this;t.each(i,function(t,i){s._renderItemData(e,i)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,i){return t("<li>").append(t("<a>").text(i.label)).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this._value(this.term),void this.menu.blur()):void this.menu[t](e):void this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(t,e),e.preventDefault())}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,i){var s=RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,function(t){return s.test(t.label||t.value||t)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var e;this._superApply(arguments),this.options.disabled||this.cancelSearch||(e=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.text(e))}})}(jQuery),function(t){var e,i,s,n,o="ui-button ui-widget ui-state-default ui-corner-all",a="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",r=function(){var e=t(this);setTimeout(function(){e.find(":ui-button").button("refresh")},1)},l=function(e){var i=e.name,s=e.form,n=t([]);return i&&(i=i.replace(/'/g,"\\'"),n=s?t(s).find("[name='"+i+"']"):t("[name='"+i+"']",e.ownerDocument).filter(function(){return!this.form})),n};t.widget("ui.button",{version:"1.10.3",defaultElement:"<button>",options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,r),"boolean"!=typeof this.options.disabled?this.options.disabled=!!this.element.prop("disabled"):this.element.prop("disabled",this.options.disabled),this._determineButtonType(),this.hasTitle=!!this.buttonElement.attr("title");var a=this,h=this.options,c="checkbox"===this.type||"radio"===this.type,u=c?"":"ui-state-active",d="ui-state-focus";null===h.label&&(h.label="input"===this.type?this.buttonElement.val():this.buttonElement.html()),this._hoverable(this.buttonElement),this.buttonElement.addClass(o).attr("role","button").bind("mouseenter"+this.eventNamespace,function(){h.disabled||this===e&&t(this).addClass("ui-state-active")}).bind("mouseleave"+this.eventNamespace,function(){h.disabled||t(this).removeClass(u)}).bind("click"+this.eventNamespace,function(t){h.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}),this.element.bind("focus"+this.eventNamespace,function(){a.buttonElement.addClass(d)}).bind("blur"+this.eventNamespace,function(){a.buttonElement.removeClass(d)}),c&&(this.element.bind("change"+this.eventNamespace,function(){n||a.refresh()}),this.buttonElement.bind("mousedown"+this.eventNamespace,function(t){h.disabled||(n=!1,i=t.pageX,s=t.pageY)}).bind("mouseup"+this.eventNamespace,function(t){h.disabled||(i!==t.pageX||s!==t.pageY)&&(n=!0)})),"checkbox"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){return!h.disabled&&!n&&void 0}):"radio"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(h.disabled||n)return!1;t(this).addClass("ui-state-active"),a.buttonElement.attr("aria-pressed","true");var e=a.element[0];l(e).not(e).map(function(){return t(this).button("widget")[0]}
1).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown"+this.eventNamespace,function(){return!h.disabled&&(t(this).addClass("ui-state-active"),e=this,void a.document.one("mouseup",function(){e=null}))}).bind("mouseup"+this.eventNamespace,function(){return!h.disabled&&void t(this).removeClass("ui-state-active")}).bind("keydown"+this.eventNamespace,function(e){return!h.disabled&&void((e.keyCode===t.ui.keyCode.SPACE||e.keyCode===t.ui.keyCode.ENTER)&&t(this).addClass("ui-state-active"))}).bind("keyup"+this.eventNamespace+" blur"+this.eventNamespace,function(){t(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(e){e.keyCode===t.ui.keyCode.SPACE&&t(this).click()})),this._setOption("disabled",h.disabled),this._resetButton()},_determineButtonType:function(){var t,e,i;this.type=this.element.is("[type=checkbox]")?"checkbox":this.element.is("[type=radio]")?"radio":this.element.is("input")?"input":"button","checkbox"===this.type||"radio"===this.type?(t=this.element.parents().last(),e="label[for='"+this.element.attr("id")+"']",this.buttonElement=t.find(e),this.buttonElement.length||(t=t.length?t.siblings():this.element.siblings(),this.buttonElement=t.filter(e),this.buttonElement.length||(this.buttonElement=t.find(e))),this.element.addClass("ui-helper-hidden-accessible"),(i=this.element.is(":checked"))&&this.buttonElement.addClass("ui-state-active"),this.buttonElement.prop("aria-pressed",i)):this.buttonElement=this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible"),this.buttonElement.removeClass(o+" ui-state-hover ui-state-active  "+a).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html()),this.hasTitle||this.buttonElement.removeAttr("title")},_setOption:function(t,e){return this._super(t,e),"disabled"===t?void(e?this.element.prop("disabled",!0):this.element.prop("disabled",!1)):void this._resetButton()},refresh:function(){var e=this.element.is("input, button")?this.element.is(":disabled"):this.element.hasClass("ui-button-disabled");e!==this.options.disabled&&this._setOption("disabled",e),"radio"===this.type?l(this.element[0]).each(function(){t(this).is(":checked")?t(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):t(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):"checkbox"===this.type&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if("input"!==this.type){var e=this.buttonElement.removeClass(a),i=t("<span></span>",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(e.empty()).text(),s=this.options.icons,n=s.primary&&s.secondary,o=[];s.primary||s.secondary?(this.options.text&&o.push("ui-button-text-icon"+(n?"s":s.primary?"-primary":"-secondary")),s.primary&&e.prepend("<span class='ui-button-icon-primary ui-icon "+s.primary+"'></span>"),s.secondary&&e.append("<span class='ui-button-icon-secondary ui-icon "+s.secondary+"'></span>"),this.options.text||(o.push(n?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||e.attr("title",t.trim(i)))):o.push("ui-button-text-only"),e.addClass(o.join(" "))}else this.options.label&&this.element.val(this.options.label)}}),t.widget("ui.buttonset",{version:"1.10.3",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(t,e){"disabled"===t&&this.buttons.button("option",t,e),this._super(t,e)},refresh:function(){var e="rtl"===this.element.css("direction");this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return t(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(e?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(e?"ui-corner-left":"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset"),this.buttons.map(function(){return t(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}})}(jQuery),function(t,e){function i(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
vendor: 6,165 bytes, line 1
1ay","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.dpDiv=s(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function s(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.delegate(i,"mouseout",function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).removeClass("ui-datepicker-next-hover")}).delegate(i,"mouseover",function(){t.datepicker._isDisabledDatepicker(o.inline?e.parent()[0]:o.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).addClass("ui-datepicker-next-hover"))})}function n(e,i){for(var s in t.extend(e,i),i)null==i[s]&&(e[s]=i[s]);return e}t.extend(t.ui,{datepicker:{version:"1.10.3"}});var o,a="datepicker";t.extend(i.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return n(this._defaults,t||{}),this},_attachDatepicker:function(e,i){var s,n,o;n="div"===(s=e.nodeName.toLowerCase())||"span"===s,e.id||(this.uuid+=1,e.id="dp"+this.uuid),(o=this._newInst(t(e),n)).settings=t.extend({},i||{}),"input"===s?this._connectDatepicker(e,o):n&&this._inlineDatepicker(e,o)},_newInst:function(e,i){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?s(t("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,i){var s=t(e);i.append=t([]),i.trigger=t([]),s.hasClass(this.markerClassName)||(this._attachments(s,i),s.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(i),t.data(e,a,i),i.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,i){var s,n,o,a=this._get(i,"appendText"),r=this._get(i,"isRTL");i.append&&i.append.remove(),a&&(i.append=t("<span class='"+this._appendClass+"'>"+a+"</span>"),e[r?"before":"after"](i.append)),e.unbind("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),("focus"===(s=this._get(i,"showOn"))||"both"===s)&&e.focus(this._showDatepicker),("button"===s||"both"===s)&&(n=this._get(i,"buttonText"),o=this._get(i,"buttonImage"),i.trigger=t(this._get(i,"buttonImageOnly")?t("<img/>").addClass(this._triggerClass).attr({src:o,alt:n,title:n}):t("<button type='button'></button>").addClass(this._triggerClass).html(o?t("<img/>").attr({src:o,alt:n,title:n}):n)),e[r?"before":"after"](i.trigger),i.trigger.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,a,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,o,r){var l,h,c,u,d,p=this._dialogInst;return p||(this.uuid+=1,l="dp"+this.uuid,this._dialogInput=t("<input type='text' id='"+l+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.keydown(this._doKeyDown),t("body").append(this._dialogInput),(p=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},t.data(this._dialogInput[0],a,p)),n(p.settings,o||{}),i=i&&i.constructor===Date?this._formatDate(p,i):i,this._dialogInput.val(i),this._pos=r?r.length?r:[r.pageX,r.pageY]:null,this._pos||(h=document.documentElement.clientWidth,c=document.documentElement.clientHeight,u=document.documentElement.scrollLeft||document.body.scrollLeft,d=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[h/2-100+u,c/2-150+d]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),p.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],a,p),this},_destroyDatepicker:function(e){var i,s=t(e),n=t.data(e,a);s.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),t.removeData(e,a),"input"===i?(n.append.remove(),n.trigger.remove(),s.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("
1keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):("div"===i||"span"===i)&&s.removeClass(this.markerClassName).empty())},_enableDatepicker:function(e){var i,s,n=t(e),o=t.data(e,a);n.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(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)).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,a);n.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(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)).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,a)}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(i,s,o){var a,r,l,h,c=this._getInst(i);return 2===arguments.length&&"string"==typeof s?"defaults"===s?t.extend({},t.datepicker._defaults):c?"all"===s?t.extend({},c.settings):this._get(c,s):null:(a=s||{},"string"==typeof s&&((a={})[s]=o),c&&(this._curInst===c&&this._hideDatepicker(),r=this._getDateDatepicker(i,!0),l=this._getMinMaxDate(c,"min"),h=this._getMinMaxDate(c,"max"),n(c.settings,a),null!==l&&a.dateFormat!==e&&a.minDate===e&&(c.settings.minDate=this._formatDate(c,l)),null!==h&&a.dateFormat!==e&&a.maxDate===e&&(c.settings.maxDate=this._formatDate(c,h)),"disabled"in a&&(a.disabled?this._disableDatepicker(i):this._enableDatepicker(i)),this._attachments(t(i),c),this._autoSize(c),this._setDate(c,r),this._updateAlternate(c),this._updateDatepicker(c)),e)},_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))[0]&&t.datepicker._selectDay(e.target,o.selectedMonth,o.selectedYear,n[0]),(i=t.datepicker._get(o,"onSelect"))?(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(i){var s,n,o=t.datepicker._getInst(i.target);return t.datepicker._get(o,"constrainInput")?(s=t.datepicker._possibleChars(t.datepicker._get(o,"dateFormat")),n=String.fromCharCode(null==i.charCode?i.keyCode:i.charCode),i.ctrlKey||i.metaKey||" ">n||!s||s.indexOf(n)>-1):e},_doKeyUp:function(e){var i=t.datepicker._getInst(e.target);if(i.input.val()!==i.lastVal)try{t.datepicker.parseDate(t.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,t.datepicker._getFormatConfig(i))&&(t.datepicker._setDateFromField(i),t.datepicker._updateAlternate(i),t.datepicker._updateDatepicker(i))}catch(t){}return!0},_showDatepicker:function(e){var i,s,o,a,r,l,h;("input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=t("input",e.parentNode)[0]),t.datepicker._isDisabledDatepicker(e)||t.datepicker._lastInput===e)||(i=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==i&&(t.datepicker._curInst.dpDiv.stop(!0,!0),i&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),!1!==(o=(s=t.datepicker._get(i,"beforeShow"))?s.apply(e,[e,i]):{})&&(n(i.settings,o),i.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(i),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),a=!1,t(e).parents().each(function(){return!(a|="fixed"===t(this).css("position"))}),r={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(i),r=t.datepicker._checkOffset(i,r,a),i.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":a?"fixed":"absolute",display:"none",left:r.left+"px",to
vendor: 10,941 bytes, line 1
1p:r.top+"px"}),i.inline||(l=t.datepicker._get(i,"showAnim"),h=t.datepicker._get(i,"duration"),i.dpDiv.zIndex(t(e).zIndex()+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[l]?i.dpDiv.show(l,t.datepicker._get(i,"showOptions"),h):i.dpDiv[l||"show"](l?h:null),t.datepicker._shouldFocusInput(i)&&i.input.focus(),t.datepicker._curInst=i)))},_updateDatepicker:function(e){this.maxRows=4,o=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e),e.dpDiv.find("."+this._dayOverClass+" a").mouseover();var i,s=this._getNumberOfMonths(e),n=s[1];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",17*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.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,l=document.documentElement.clientWidth+(s?0:t(document).scrollLeft()),h=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>l&&l>n?Math.abs(i.left+n-l):0),i.top-=Math.min(i.top,i.top+o>h&&h>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()).left,i.top]},_hideDatepicker:function(e){var i,s,n,o,r=this._curInst;!r||e&&r!==t.data(e,a)||this._datepickerShowing&&(i=this._get(r,"showAnim"),s=this._get(r,"duration"),n=function(){t.datepicker._tidyDialog(r)},t.effects&&(t.effects.effect[i]||t.effects[i])?r.dpDiv.hide(i,t.datepicker._get(r,"showOptions"),s,n):r.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?s:null,n),i||n(),this._datepickerShowing=!1,(o=this._get(r,"onClose"))&&o.apply(r.input?r.input[0]:null,[r.input?r.input.val():"",r]),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).unbind(".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])).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.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.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).each(function(){t(this).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(i,s,n){if(null==i||null==s)throw"Invalid arguments";if(""===(s="object"==typeof s?""+s:s+""))return null;var o,a,r,l,h=0,c=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff,u="string"!=typeof c?c:(new Date).getFullYear()%100+parseInt(c,10),d=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,p=(n?n.dayNames:null)||this._defaults.dayNames,f=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,m=(n?n.monthNames:null)||this._defaults.monthNames,g=-1,v=-1,b=-1,y=-1,_=!1,w=function(t){var e=i.length>o+1&&i.charAt(o+1)===t;return e&&o++,e},k=function(t){var e=w(t),i=RegExp("^\\d{1,"+("@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2)+"}"),n=s.substring(h).match(i);if(!n)throw"Missing number at position "+h;return h+=n[0].length,parseInt(n[0],10)},x=function(i,n,o){var a=-1,r=t.map(w(i)?o:n,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(t.each(r,function(t,i){var n=i[1];return s.substr(h,n.length).toLowerCase()===n.toLowerCase()?(a=i[0],h+=n.length,!1):e}),-1!==a)return a+1;throw"Unknown name at position "+h},C=function(){if(s.charAt(h)!==i.charAt(o))throw"Unexpected literal at position "+h;h++};for(o=0;i.length>o;o++)if(_)"'"!==i.charAt(o)||w("'")?C():_=!1;else switch(i.charAt(o)){case"d":b=k("d");break;case"D":x("D",d,p);break;case"o":y=k("o");break;case"m":v=k("m");break;case"M":v=x("M",f,m);break;case"y":g=k("y");break;case"@":g=(l=new Date(k("@"))).getFullYear(),v=l.getMonth()+1,b=l.getDate();break;case"!":g=(l=new Date((k("!")-this._ticksTo1970)/1e4)).getFullYear(),v=l.getMonth()+1,b=l.getDate();break;case"'":w("'")?C():_=!0;break;default:C()}if(s.length>h&&(r=s.substr(h),!/^\s+/.test(r)))throw"Extra/unparsed characters found in date: "+r;if(-1===g?g=(new Date).getFullYear():100>g&&(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(u>=g?0:-100)),y>-1)for(v=1,b=y;!((a=this._getDaysInMonth(g,v-1))>=b);)v++,b-=a;if((l=this._daylightSavingAdjust(new Date(g,v-1,b))).getFullYear()!==g||l.getMonth()+1!==v||l.getDate()!==b)throw"Invalid date";return l},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:864e9*(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,l=function(e){var i=t.length>s+1&&t.charAt(s+1)===e;return i&&s++,i},h=function(t,e,i){var s=""+e;if(l(t))for(;i>s.length;)s="0"+s;return s},c=function(t,e,i,s){return l(t)?s[e]:i[e]},u="",d=!1;if(e)for(s=0;t.length>s;s++)if(d)"'"!==t.charAt(s)||l("'")?u+=t.charAt(s):d=!1;else switch(t.charAt(s)){case"d":u+=h("d",e.getDate(),2);break;case"D":u+=c("D",e.getDay(),n,o);break;case"o":u+=h("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+=h("m",e.getMonth()+1,2);break;case"M":u+=c("M",e.getMonth(),a,r);break;case"y":u+=l("y")?e.getFullYear():(10>e.getYear()%100?"0":"")+e.getYear()%100;break;case"@":u+=e.getTime();break;case"!":u+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?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,i){return t.settings[i]!==e?t.settings[i]:this._defaults[i]},_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(t){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=null==i||""===i?s:"string"==typeof i?function(i){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),i,t.datepicker._getFormatConfig(e))}catch(t){}for(var s=(i.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,n=s.getFullYear(),o=s.getMonth(),a=s.getDate(),r=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=r.exec(i);l;){switch(l[2]||"d"){case"d":case"D":a+=parseInt(l[1],10);break;case"w":case"W":a+=7*parseInt(l[1],10);break;case"m":case"M":o+=parseInt(l[1],10),a=Math.min(a,t.datepicker._getDaysInMonth(n,o));break;case"y":case"Y":n+=parseInt(l[1],10),a=Math.min(a,t.datepicker._getDaysInMonth(n,o))}l=r.exec(i)}return new Date(n,o,a)}(i):"number"==typeof i?isNaN(i)?s:function(t){var e=new Date;return e.setDate(e.getDate()+t),e}(i):new Date(i.getTime());return(n=n&&"Invalid Date"==""+n?s:n)&&(n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0)),this._daylightSavingAdjust(n)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null}
vendor: 4,278 bytes, line 1
1,_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){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_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).bind(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,i,s,n,o,a,r,l,h,c,u,d,p,f,m,g,v,b,y,_,w,k,x,C,j,T,P,S,D,E,I,N,M,A,O,H,L,F,R,z=new Date,$=this._daylightSavingAdjust(new Date(z.getFullYear(),z.getMonth(),z.getDate())),W=this._get(t,"isRTL"),B=this._get(t,"showButtonPanel"),q=this._get(t,"hideIfNoPrevNext"),V=this._get(t,"navigationAsDateFormat"),U=this._getNumberOfMonths(t),Y=this._get(t,"showCurrentAtPos"),X=this._get(t,"stepMonths"),K=1!==U[0]||1!==U[1],Q=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),G=this._getMinMaxDate(t,"min"),J=this._getMinMaxDate(t,"max"),Z=t.drawMonth-Y,tt=t.drawYear;if(0>Z&&(Z+=12,tt--),J)for(e=this._daylightSavingAdjust(new Date(J.getFullYear(),J.getMonth()-U[0]*U[1]+1,J.getDate())),e=G&&G>e?G:e;this._daylightSavingAdjust(new Date(tt,Z,1))>e;)0>--Z&&(Z=11,tt--);for(t.drawMonth=Z,t.drawYear=tt,i=this._get(t,"prevText"),i=V?this.formatDate(i,this._daylightSavingAdjust(new Date(tt,Z-X,1)),this._getFormatConfig(t)):i,s=this._canAdjustMonth(t,-1,tt,Z)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(W?"e":"w")+"'>"+i+"</span></a>":q?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(W?"e":"w")+"'>"+i+"</span></a>",n=this._get(t,"nextText"),n=V?this.formatDate(n,this._daylightSavingAdjust(new Date(tt,Z+X,1)),this._getFormatConfig(t)):n,o=this._canAdjustMonth(t,1,tt,Z)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(W?"w":"e")+"'>"+n+"</span></a>":q?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(W?"w":"e")+"'>"+n+"</span></a>",a=this._get(t,"currentText"),r=this._get(t,"gotoCurrent")&&t.currentDay?Q:$,a=V?this.formatDate(a,r,this._getFormatConfig(t)):a,l=t.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(t,"closeText")+"</button>",h=B?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(W?l:"")+(this._isInRange(t,r)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+a+"</button>":"")+(W?"":l)+"</div>":"",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"),m=this._get(t,"monthNamesShort"),g=this._get(t,"beforeShowDay"),v=this._get(t,"showOtherMonths"),b=this._get(t,"selectOtherMonths"),y=this._getDefaultDate(t),_="",k=0;U[0]>k;k++){for(x="",this.maxRows=4,C=0;U[1]>C;C++){if(j=this._daylightSavingAdjust(new Date(tt,Z,t.selectedDay)),T=" ui-corner-all",P="",K){if(P+="<div class='ui-datepicker-group",U[1]>
vendor: 4,726 bytes, line 1
11)switch(C){case 0:P+=" ui-datepicker-group-first",T=" ui-corner-"+(W?"right":"left");break;case U[1]-1:P+=" ui-datepicker-group-last",T=" ui-corner-"+(W?"left":"right");break;default:P+=" ui-datepicker-group-middle",T=""}P+="'>"}for(P+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+T+"'>"+(/all|left/.test(T)&&0===k?W?o:s:"")+(/all|right/.test(T)&&0===k?W?s:o:"")+this._generateMonthYearHeader(t,Z,tt,G,J,k>0||C>0,f,m)+"</div><table class='ui-datepicker-calendar'><thead><tr>",S=u?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",w=0;7>w;w++)S+="<th"+((w+c+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+d[D=(w+c)%7]+"'>"+p[D]+"</span></th>";for(P+=S+"</tr></thead><tbody>",E=this._getDaysInMonth(tt,Z),tt===t.selectedYear&&Z===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,E)),I=(this._getFirstDayOfMonth(tt,Z)-c+7)%7,N=Math.ceil((I+E)/7),M=K&&this.maxRows>N?this.maxRows:N,this.maxRows=M,A=this._daylightSavingAdjust(new Date(tt,Z,1-I)),O=0;M>O;O++){for(P+="<tr>",H=u?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(A)+"</td>":"",w=0;7>w;w++)L=g?g.apply(t.input?t.input[0]:null,[A]):[!0,""],R=(F=A.getMonth()!==Z)&&!b||!L[0]||G&&G>A||J&&A>J,H+="<td class='"+((w+c+6)%7>=5?" ui-datepicker-week-end":"")+(F?" ui-datepicker-other-month":"")+(A.getTime()===j.getTime()&&Z===t.selectedMonth&&t._keyEvent||y.getTime()===A.getTime()&&y.getTime()===j.getTime()?" "+this._dayOverClass:"")+(R?" "+this._unselectableClass+" ui-state-disabled":"")+(F&&!v?"":" "+L[1]+(A.getTime()===Q.getTime()?" "+this._currentClass:"")+(A.getTime()===$.getTime()?" ui-datepicker-today":""))+"'"+(F&&!v||!L[2]?"":" title='"+L[2].replace(/'/g,"&#39;")+"'")+(R?"":" data-handler='selectDay' data-event='click' data-month='"+A.getMonth()+"' data-year='"+A.getFullYear()+"'")+">"+(F&&!v?"&#xa0;":R?"<span class='ui-state-default'>"+A.getDate()+"</span>":"<a class='ui-state-default"+(A.getTime()===$.getTime()?" ui-state-highlight":"")+(A.getTime()===Q.getTime()?" ui-state-active":"")+(F?" ui-priority-secondary":"")+"' href='#'>"+A.getDate()+"</a>")+"</td>",A.setDate(A.getDate()+1),A=this._daylightSavingAdjust(A);P+=H+"</tr>"}++Z>11&&(Z=0,tt++),x+=P+="</tbody></table>"+(K?"</div>"+(U[0]>0&&C===U[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}_+=x}return _+=h,t._keyEvent=!1,_},_generateMonthYearHeader:function(t,e,i,s,n,o,a,r){var l,h,c,u,d,p,f,m,g=this._get(t,"changeMonth"),v=this._get(t,"changeYear"),b=this._get(t,"showMonthAfterYear"),y="<div class='ui-datepicker-title'>",_="";if(o||!g)_+="<span class='ui-datepicker-month'>"+a[e]+"</span>";else{for(l=s&&s.getFullYear()===i,h=n&&n.getFullYear()===i,_+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",c=0;12>c;c++)(!l||c>=s.getMonth())&&(!h||n.getMonth()>=c)&&(_+="<option value='"+c+"'"+(c===e?" selected='selected'":"")+">"+r[c]+"</option>");_+="</select>"}if(b||(y+=_+(!o&&g&&v?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",o||!v)y+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(u=this._get(t,"yearRange").split(":"),d=(new Date).getFullYear(),f=(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})(u[0]),m=Math.max(f,p(u[1]||"")),f=s?Math.max(f,s.getFullYear()):f,m=n?Math.min(m,n.getFullYear()):m,t.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";m>=f;f++)t.yearshtml+="<option value='"+f+"'"+(f===i?" selected='selected'":"")+">"+f+"</option>";t.yearshtml+="</select>",y+=t.yearshtml,t.yearshtml=null}return y+=this._get(t,"yearSuffix"),b&&(y+=(!o&&g&&v?"":"&#xa0;")+_),y+"</div>"},_adjustInstDate:function(t,e,i){var s=t.drawYear+("Y"===i?e:0),n=t.drawMonth+("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()}
vendor: 12,693 bytes, line 1
1,_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,l=this._get(t,"yearRange");return l&&(i=l.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{shortYearCutoff:e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),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).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 i,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.10.3"}(jQuery),function(t){var e={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},i={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0};t.widget("ui.dialog",{version:"1.10.3",options:{appendTo:"body",autoOpen:!0,buttons:[],closeOnEscape:!0,closeText:"close",dialogClass:"",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},_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"),this.options.title=this.options.title||this.originalTitle,this._createWrapper(),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&t.fn.draggable&&this._makeDraggable(),this.options.resizable&&t.fn.resizable&&this._makeResizable(),this._isOpen=!1},_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._destroyOverlay(),this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach(),this.uiDialog.stop(!0,!0).remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(t=e.parent.children().eq(e.index)).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&&!1!==this._trigger("beforeClose",e)&&(this._isOpen=!1,this._destroyOverlay(),this.opener.filter(":focusable").focus().length||t(this.document[0].activeElement).blur(),this._hide(this.uiDialog,this.options.hide,function(){i._trigger("close",e)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,e){var i=!!this.uiDialog.nextAll(":visible").insertBefore(this.uiDialog).length;return i&&!e&&this._trigger("focus",t),i},open:function(){var e=this;return this._isOpen?void(this._moveToTop()&&this._focusTabbable()):(this._isOpen=!0,this.opener=t(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this._show(this.uiDialog,this.options.show,function(){e._focusTabbable(),e._trigger("focus")}),void this._trigger("open"))},_focusTabbable:function(){var 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).focus()},_keepFocus:function(e){function i(){var e=this.document[0].activeElement;this.uiDialog[0]===e||t.contains(this.uiDialog[0],e)||this._focusTabbable()}e.preventDefault(),i.call(this),this._delay(i)},_createWrapper:function(){this.uiDialog=t("<div>").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._on(this.uiDialog,{keydown:function(e){if(this.options.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===t.ui.keyCode.ESCAPE)return e.preventDefault(),void this.close(e);if(e.keyCode===t.ui.keyCode.TAB){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||(n.focus(1),e.preventDefault()):(s.focus(1),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("<div>").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog),this._on(this.uiDialogTitlebar,{mousedown:function(e){t(e.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.focus()}}),this.uiDialogTitlebarClose=t("<button></button>").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:!1}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),e=t("<span>").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar),this._title(e),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(t){this.options.title||t.html("&#160;"),t.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=t("<div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),this.uiButtonSet=t("<div>").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane),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?void this.uiDialog.removeClass("ui-dialog-buttons"):(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,s.click=function(){n.apply(e.element[0],arguments)},o={icons:s.icons,text:s.showText},delete s.icons,delete s.showText,t("<button></button>",s).button(o).appendTo(e.uiButtonSet)}),this.uiDialog.addClass("ui-dialog-buttons"),void this.uiDialogButtonPane.appendTo(this.uiDialog))},_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){t(this).addClass("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){s.position=[o.position.left-i.document.scrollLeft(),o.position.top-i.document.scrollTop()],t(this).removeClass("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){t(this).addClass("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){s.height=t(this).height(),s.width=t(this).width(),t(this).removeClass("ui-dialog-resizing"),i._unblockFrames(),i._trigger("resizeStop",n,e(o))}}).css("position",o)},_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(s){var n=this,o=!1,a={};t.each(s,function(t,s){n._setOption(t,s),t in e&&(o=!0),t in i&&(a[t]=s)}),o&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",a)},_setOption:function(t,e){var i,s,n=this.uiDialog;"dialogClass"===t&&n.removeClass(this.options.dialogClass).addClass(e),"disabled"!==t&&(this._super(t,e),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:""+e}),"draggable"===t&&((i=n.is(":data(ui-draggable)"))&&!e&&n.draggable("destroy"),!i&&e&&this._makeDraggable()),"position"===t&&this._position(),"resizable"===t&&((s=n.is(":data(ui-resizable)"))&&!e&&n.resizable("destroy"),s&&"string"==typeof e&&n.resizable("option","handles",e),s||!1===e||this._makeResizable()),"title"===t&&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("<div>").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||!!t(e.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var e=this,i=this.widgetFullName;t.ui.dialog.overlayInstances||this._delay(function(){t.ui.dialog.overlayInstances&&this.document.bind("focusin.dialog",function(s){e._allowInteraction(s)||(s.preventDefault(),t(".ui-dialog:visible:last .ui-dialog-content").data(i)._focusTabbable())})}),this.overlay=t("<div>").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo()),this._on(this.overlay,{mousedown:"_keepFocus"}),t.ui.dialog.overlayInstances++}},_destroyOverlay:function(){this.options.modal&&this.overlay&&(t.ui.dialog.overlayInstances--,t.ui.dialog.overlayInstances||this.document.unbind("focusin.dialog"),this.overlay.remove(),this.overlay=null)}}),t.ui.dialog.overlayInstances=0,!1!==t.uiBackCompat&&t.widget("ui.dialog",t.ui.dialog,{_position:function(){var e,i=this.options.position,s=[],n=[0,0];
1i?(("string"==typeof i||"object"==typeof i&&"0"in i)&&(1===(s=i.split?i.split(" "):[i[0],i[1]]).length&&(s[1]=s[0]),t.each(["left","top"],function(t,e){+s[t]===s[t]&&(n[t]=s[t],s[t]=e)}),i={my:s[0]+(0>n[0]?n[0]:"+"+n[0])+" "+s[1]+(0>n[1]?n[1]:"+"+n[1]),at:s.join(" ")}),i=t.extend({},t.ui.dialog.prototype.options.position,i)):i=t.ui.dialog.prototype.options.position,(e=this.uiDialog.is(":visible"))||this.uiDialog.show(),this.uiDialog.position(i),e||this.uiDialog.hide()}})}(jQuery),function(t){var e=/up|down|vertical/,i=/up|left|vertical|horizontal/;t.effects.effect.blind=function(s,n){var o,a,r,l=t(this),h=["position","top","bottom","left","right","height","width"],c=t.effects.setMode(l,s.mode||"hide"),u=s.direction||"up",d=e.test(u),p=d?"height":"width",f=d?"top":"left",m=i.test(u),g={},v="show"===c;l.parent().is(".ui-effects-wrapper")?t.effects.save(l.parent(),h):t.effects.save(l,h),l.show(),a=(o=t.effects.createWrapper(l).css({overflow:"hidden"}))[p](),r=parseFloat(o.css(f))||0,g[p]=v?a:0,m||(l.css(d?"bottom":"right",0).css(d?"top":"left","auto").css({position:"absolute"}),g[f]=v?r:a+r),v&&(o.css(p,0),m||o.css(f,r+a)),o.animate(g,{duration:s.duration,easing:s.easing,queue:!1,complete:function(){"hide"===c&&l.hide(),t.effects.restore(l,h),t.effects.removeWrapper(l),n()}})}}(jQuery),function(t){t.effects.effect.bounce=function(e,i){var s,n,o,a=t(this),r=["position","top","bottom","left","right","height","width"],l=t.effects.setMode(a,e.mode||"effect"),h="hide"===l,c="show"===l,u=e.direction||"up",d=e.distance,p=e.times||5,f=2*p+(c||h?1:0),m=e.duration/f,g=e.easing,v="up"===u||"down"===u?"top":"left",b="up"===u||"left"===u,y=a.queue(),_=y.length;for((c||h)&&r.push("opacity"),t.effects.save(a,r),a.show(),t.effects.createWrapper(a),d||(d=a["top"===v?"outerHeight":"outerWidth"]()/3),c&&((o={opacity:1})[v]=0,a.css("opacity",0).css(v,b?2*-d:2*d).animate(o,m,g)),h&&(d/=Math.pow(2,p-1)),(o={})[v]=0,s=0;p>s;s++)(n={})[v]=(b?"-=":"+=")+d,a.animate(n,m,g).animate(o,m,g),d=h?2*d:d/2;h&&((n={opacity:0})[v]=(b?"-=":"+=")+d,a.animate(n,m,g)),a.queue(function(){h&&a.hide(),t.effects.restore(a,r),t.effects.removeWrapper(a),i()}),_>1&&y.splice.apply(y,[1,0].concat(y.splice(_,f+1))),a.dequeue()}}(jQuery),function(t){t.effects.effect.clip=function(e,i){var s,n,o,a=t(this),r=["position","top","bottom","left","right","height","width"],l="show"===t.effects.setMode(a,e.mode||"hide"),h="vertical"===(e.direction||"vertical"),c=h?"height":"width",u=h?"top":"left",d={};t.effects.save(a,r),a.show(),s=t.effects.createWrapper(a).css({overflow:"hidden"}),o=(n="IMG"===a[0].tagName?s:a)[c](),l&&(n.css(c,0),n.css(u,o/2)),d[c]=l?o:0,d[u]=l?0:o/2,n.animate(d,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){l||a.hide(),t.effects.restore(a,r),t.effects.removeWrapper(a),i()}})}}(jQuery),function(t){t.effects.effect.drop=function(e,i){var s,n=t(this),o=["position","top","bottom","left","right","opacity","height","width"],a=t.effects.setMode(n,e.mode||"hide"),r="show"===a,l=e.direction||"left",h="up"===l||"down"===l?"top":"left",c="up"===l||"left"===l?"pos":"neg",u={opacity:r?1:0};t.effects.save(n,o),n.show(),t.effects.createWrapper(n),s=e.distance||n["top"===h?"outerHeight":"outerWidth"](!0)/2,r&&n.css("opacity",0).css(h,"pos"===c?-s:s),u[h]=(r?"pos"===c?"+=":"-=":"pos"===c?"-=":"+=")+s,n.animate(u,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===a&&n.hide(),t.effects.restore(n,o),t.effects.removeWrapper(n),i()}})}}(jQuery),function(t){t.effects.effect.explode=function(e,i){function s(){v.push(this),v.length===c*u&&(d.css({visibility:"visible"}),t(v).remove(),p||d.hide(),i())}var n,o,a,r,l,h,c=e.pieces?Math.round(Math.sqrt(e.pieces)):3,u=c,d=t(this),p="show"===t.effects.setMode(d,e.mode||"hide"),f=d.show().css("visibility","hidden").offset(),m=Math.ceil(d.outerWidth()/u),g=Math.ceil(d.outerHeight()/c),v=[];for(n=0;c>n;n++)for(r=f.top+n*g,h=n-(c-1)/2,o=0;u>o;o++)a=f.left+o*m,l=o-(u-1)/2,d.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-o*m,top:-n*g}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",
vendor: 15,335 bytes, line 1
1width:m,height:g,left:a+(p?l*m:0),top:r+(p?h*g:0),opacity:p?0:1}).animate({left:a+(p?0:l*m),top:r+(p?0:h*g),opacity:p?1:0},e.duration||500,e.easing,s)}}(jQuery),function(t){t.effects.effect.fade=function(e,i){var s=t(this),n=t.effects.setMode(s,e.mode||"toggle");s.animate({opacity:n},{queue:!1,duration:e.duration,easing:e.easing,complete:i})}}(jQuery),function(t){t.effects.effect.fold=function(e,i){var s,n,o=t(this),a=["position","top","bottom","left","right","height","width"],r=t.effects.setMode(o,e.mode||"hide"),l="show"===r,h="hide"===r,c=e.size||15,u=/([0-9]+)%/.exec(c),d=!!e.horizFirst,p=l!==d,f=p?["width","height"]:["height","width"],m=e.duration/2,g={},v={};t.effects.save(o,a),o.show(),s=t.effects.createWrapper(o).css({overflow:"hidden"}),n=p?[s.width(),s.height()]:[s.height(),s.width()],u&&(c=parseInt(u[1],10)/100*n[h?0:1]),l&&s.css(d?{height:0,width:c}:{height:c,width:0}),g[f[0]]=l?n[0]:c,v[f[1]]=l?n[1]:0,s.animate(g,m,e.easing).animate(v,m,e.easing,function(){h&&o.hide(),t.effects.restore(o,a),t.effects.removeWrapper(o),i()})}}(jQuery),function(t){t.effects.effect.highlight=function(e,i){var s=t(this),n=["backgroundImage","backgroundColor","opacity"],o=t.effects.setMode(s,e.mode||"show"),a={backgroundColor:s.css("backgroundColor")};"hide"===o&&(a.opacity=0),t.effects.save(s,n),s.show().css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(a,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===o&&s.hide(),t.effects.restore(s,n),i()}})}}(jQuery),function(t){t.effects.effect.pulsate=function(e,i){var s,n=t(this),o=t.effects.setMode(n,e.mode||"show"),a="show"===o,r="hide"===o,l=a||"hide"===o,h=2*(e.times||5)+(l?1:0),c=e.duration/h,u=0,d=n.queue(),p=d.length;for((a||!n.is(":visible"))&&(n.css("opacity",0).show(),u=1),s=1;h>s;s++)n.animate({opacity:u},c,e.easing),u=1-u;n.animate({opacity:u},c,e.easing),n.queue(function(){r&&n.hide(),i()}),p>1&&d.splice.apply(d,[1,0].concat(d.splice(p,h+1))),n.dequeue()}}(jQuery),function(t){t.effects.effect.puff=function(e,i){var s=t(this),n=t.effects.setMode(s,e.mode||"hide"),o="hide"===n,a=parseInt(e.percent,10)||150,r=a/100,l={height:s.height(),width:s.width(),outerHeight:s.outerHeight(),outerWidth:s.outerWidth()};t.extend(e,{effect:"scale",queue:!1,fade:!0,mode:n,complete:i,percent:o?a:100,from:o?l:{height:l.height*r,width:l.width*r,outerHeight:l.outerHeight*r,outerWidth:l.outerWidth*r}}),s.effect(e)},t.effects.effect.scale=function(e,i){var s=t(this),n=t.extend(!0,{},e),o=t.effects.setMode(s,e.mode||"effect"),a=parseInt(e.percent,10)||(0===parseInt(e.percent,10)?0:"hide"===o?0:100),r=e.direction||"both",l=e.origin,h={height:s.height(),width:s.width(),outerHeight:s.outerHeight(),outerWidth:s.outerWidth()},c="horizontal"!==r?a/100:1,u="vertical"!==r?a/100:1;n.effect="size",n.queue=!1,n.complete=i,"effect"!==o&&(n.origin=l||["middle","center"],n.restore=!0),n.from=e.from||("show"===o?{height:0,width:0,outerHeight:0,outerWidth:0}:h),n.to={height:h.height*c,width:h.width*u,outerHeight:h.outerHeight*c,outerWidth:h.outerWidth*u},n.fade&&("show"===o&&(n.from.opacity=0,n.to.opacity=1),"hide"===o&&(n.from.opacity=1,n.to.opacity=0)),s.effect(n)},t.effects.effect.size=function(e,i){var s,n,o,a=t(this),r=["position","top","bottom","left","right","width","height","overflow","opacity"],l=["width","height","overflow"],h=["fontSize"],c=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],u=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],d=t.effects.setMode(a,e.mode||"effect"),p=e.restore||"effect"!==d,f=e.scale||"both",m=e.origin||["middle","center"],g=a.css("position"),v=p?r:["position","top","bottom","left","right","overflow","opacity"],b={height:0,width:0,outerHeight:0,outerWidth:0};"show"===d&&a.show(),s={height:a.height(),width:a.width(),outerHeight:a.outerHeight(),outerWidth:a.outerWidth()},"toggle"===e.mode&&"show"===d?(a.from=e.to||b,a.to=e.from||s):(a.from=e.from||("show"===d?b:s),a.to=e.to||("hide"===d?b:s)),o={from:{y:a.from.height/s.height,x:a.from.width/s.width},to:{y:a.to.height/s.height,x:a.to.width/s.width}},("box"===f||"both"===f)&&(o.from.y!==o.to.y&&(v=v.concat(c),a.from=t.effects.setTransition(a,c,o.from.y,a.from),a.to=t.effects.setTransition(a,c,o.to.y,a.to)),o.from.x!==o.to.x&&(v=v.concat(u),a.from=t.effects.setTransition(a,u,o.from.x,a.from),a.to=t.effects.setTransition(a,u,o.to.x,a.to))),("content"===f||"both"===f)&&o.from.y!==o.to.y&&(v=v.concat(h).concat(l),a.from=t.effects.setTransition(a,h,o.from.y,a.from),a.to=t.effects.setTransition(a,h,o.to.y,a.to)),t.effects.save(a,v),a.show(),t.effects.createWrapper(a),a.css("overflow","hidden").css(a.from),m&&(n=t.effects.getBaseline(m,s),a.from.top=(s.outerHeight-a.outerHeight())*n.y,a.from.left=(s.outerWidth-a.outerWidth())*n.x,a.to.top=(s.outerHeight-a.to.outerHeight)*n.y,a.to.left=(s.outerWidth-a.to.outerWidth)*n.x),a.css(a.from),("content"===f||"both"===f)&&(c=c.concat(["marginTop","marginBottom"]).concat(h),u=u.concat(["marginLeft","marginRight"]),l=r.concat(c).concat(u),a.find("*[width]").each(function(){var i=t(this),s=i.height(),n=i.width(),a=i.outerHeight(),r=i.outerWidth();p&&t.effects.save(i,l),i.from={height:s*o.from.y,width:n*o.from.x,outerHeight:a*o.from.y,outerWidth:r*o.from.x},i.to={height:s*o.to.y,width:n*o.to.x,outerHeight:s*o.to.y,outerWidth:n*o.to.x},o.from.y!==o.to.y&&(i.from=t.effects.setTransition(i,c,o.from.y,i.from),i.to=t.effects.setTransition(i,c,o.to.y,i.to)),o.from.x!==o.to.x&&(i.from=t.effects.setTransition(i,u,o.from.x,i.from),i.to=t.effects.setTransition(i,u,o.to.x,i.to)),i.css(i.from),i.animate(i.to,e.duration,e.easing,function(){p&&t.effects.restore(i,l)})})),a.animate(a.to,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){0===a.to.opacity&&a.css("opacity",a.from.opacity),"hide"===d&&a.hide(),t.effects.restore(a,v),p||("static"===g?a.css({position:"relative",top:a.to.top,left:a.to.left}):t.each(["top","left"],function(t,e){a.css(e,function(e,i){var s=parseInt(i,10),n=t?a.to.left:a.to.top;return"auto"===i?n+"px":s+n+"px"})})),t.effects.removeWrapper(a),i()}})}}(jQuery),function(t){t.effects.effect.shake=function(e,i){var s,n=t(this),o=["position","top","bottom","left","right","height","width"],a=t.effects.setMode(n,e.mode||"effect"),r=e.direction||"left",l=e.distance||20,h=e.times||3,c=2*h+1,u=Math.round(e.duration/c),d="up"===r||"down"===r?"top":"left",p="up"===r||"left"===r,f={},m={},g={},v=n.queue(),b=v.length;for(t.effects.save(n,o),n.show(),t.effects.createWrapper(n),f[d]=(p?"-=":"+=")+l,m[d]=(p?"+=":"-=")+2*l,g[d]=(p?"-=":"+=")+2*l,n.animate(f,u,e.easing),s=1;h>s;s++)n.animate(m,u,e.easing).animate(g,u,e.easing);n.animate(m,u,e.easing).animate(f,u/2,e.easing).queue(function(){"hide"===a&&n.hide(),t.effects.restore(n,o),t.effects.removeWrapper(n),i()}),b>1&&v.splice.apply(v,[1,0].concat(v.splice(b,c+1))),n.dequeue()}}(jQuery),function(t){t.effects.effect.slide=function(e,i){var s,n=t(this),o=["position","top","bottom","left","right","width","height"],a=t.effects.setMode(n,e.mode||"show"),r="show"===a,l=e.direction||"left",h="up"===l||"down"===l?"top":"left",c="up"===l||"left"===l,u={};t.effects.save(n,o),n.show(),s=e.distance||n["top"===h?"outerHeight":"outerWidth"](!0),t.effects.createWrapper(n).css({overflow:"hidden"}),r&&n.css(h,c?isNaN(s)?"-"+s:-s:s),u[h]=(r?c?"+=":"-=":c?"-=":"+=")+s,n.animate(u,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===a&&n.hide(),t.effects.restore(n,o),t.effects.removeWrapper(n),i()}})}}(jQuery),function(t){t.effects.effect.transfer=function(e,i){var s=t(this),n=t(e.to),o="fixed"===n.css("position"),a=t("body"),r=o?a.scrollTop():0,l=o?a.scrollLeft():0,h=n.offset(),c={top:h.top-r,left:h.left-l,height:n.innerHeight(),width:n.innerWidth()},u=s.offset(),d=t("<div class='ui-effects-transfer'></div>").appendTo(document.body).addClass(e.className).css({top:u.top-r,left:u.left-l,height:s.innerHeight(),width:s.innerWidth(),position:o?"fixed":"absolute"}).animate(c,e.duration,e.easing,function(){d.remove(),i()})}}(jQuery),function(t){t.widget("ui.menu",{version:"1.10.3",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,t.proxy(function(t){this.options.disabled&&t.preventDefault()},this)),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item > a":function(t){t.preventDefault()},"click .ui-state-disabled > a":function(t){t.preventDefault()},"click .ui-menu-item:has(a)":function(e){var i=t(e.target).closest(".ui-menu-item");!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.mouseHandled=!0,this.select(e),i.has(".ui-menu").length?this.expand(e):this.element.is(":focus")||(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){var i=t(e.currentTarget);i.siblings().children(".ui-state-active").removeClass("ui-state-active"),this.focus(e,i)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.children(".ui-menu-item").eq(0);e||this.focus(t,i)},blur:function(e){this._delay(function(){t.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){t(e.target).closest(".ui-menu").length||this.collapseAll(e),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var e=t(this);e.data("ui-menu-submenu-carat")&&e.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(e){function i(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var s,n,o,a,r,l=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:l=!1,n=this.previousFilter||"",o=String.fromCharCode(e.keyCode),a=!1,clearTimeout(this.filterTimer),o===n?a=!0:o=n+o,r=RegExp("^"+i(o),"i"),s=this.activeMenu.children(".ui-menu-item").filter(function(){return r.test(t(this).children("a").text())}),(s=a&&-1!==s.index(this.active.next())?this.active.nextAll(".ui-menu-item"):s).length||(o=String.fromCharCode(e.keyCode),r=RegExp("^"+i(o),"i"),s=this.activeMenu.children(".ui-menu-item").filter(function(){return r.test(t(this).children("a").text())})),s.length?(this.focus(e,s),s.length>1?(this.previousFilter=o,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}l&&e.preventDefault()},_activate:function(t){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,i=this.options.icons.submenu,s=this.element.find(this.options.menus);s.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),s=e.prev("a"),n=t("<span>").addClass("ui-menu-icon ui-icon "+i).data("ui-menu-submenu-carat",!0);s.attr("aria-haspopup","true").prepend(n),e.attr("aria-labelledby",s.attr("id"))}),(e=s.add(this.element)).children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()}),e.children(":not(.ui-menu-item)").each(function(){var e=t(this);/[^\-\u2014\u2013\s]/.test(e.text())||e.addClass("ui-widget-content ui-menu-divider")}),e.children(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){"icons"===t&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(e.submenu),this._super(t,e)},focus:function(t,e){var i,s;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),s=this.active.children("a").addClass("ui-state-focus"),this.options.role&&this.element.attr("aria-activedescendant",s.attr("id")),this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=e.children(".ui-menu")).length&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,s,n,o,a,r;this._hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,n=e.offset().top-this.activeMenu.offset().top-i-s,o=this.activeMenu.scrollTop(),a=this.activeMenu.height(),r=e.height(),0>n?this.activeMenu.scrollTop(o+n):n+r>a&&this.activeMenu.scrollTop(o+n-a+r))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",t,{item:this.active}))},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var i=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var s=i?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));s.length||(s=this.element),this._close(s),this.blur(e),this.activeMenu=s},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","fal
1se").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,i){var s;this.active&&(s="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),s&&s.length&&this.active||(s=this.activeMenu.children(".ui-menu-item")[e]()),this.focus(i,s)},nextPage:function(e){var i,s,n;return this.active?void(this.isLastItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return 0>(i=t(this)).offset().top-s-n}),this.focus(e,i)):this.focus(e,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]()))):void this.next(e)},previousPage:function(e){var i,s,n;return this.active?void(this.isFirstItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return(i=t(this)).offset().top-s+n>0}),this.focus(e,i)):this.focus(e,this.activeMenu.children(".ui-menu-item").first()))):void this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,i)}})}(jQuery),function(t,e){function i(t,e,i){return[parseFloat(t[0])*(d.test(t[0])?e/100:1),parseFloat(t[1])*(d.test(t[1])?i/100:1)]}function s(e,i){return parseInt(t.css(e,i),10)||0}t.ui=t.ui||{};var n,o=Math.max,a=Math.abs,r=Math.round,l=/left|center|right/,h=/top|center|bottom/,c=/[\+\-]\d+(\.[\d]+)?%?/,u=/^\w+/,d=/%$/,p=t.fn.position;t.position={scrollbarWidth:function(){if(void 0!==n)return n;var e,i,s=t("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),o=s.children()[0];return t("body").append(s),e=o.offsetWidth,s.css("overflow","scroll"),e===(i=o.offsetWidth)&&(i=s[0].clientWidth),s.remove(),n=e-i},getScrollInfo:function(e){var i=e.isWindow?"":e.element.css("overflow-x"),s=e.isWindow?"":e.element.css("overflow-y"),n="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth;return{width:"scroll"===s||"auto"===s&&e.height<e.element[0].scrollHeight?t.position.scrollbarWidth():0,height:n?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),s=t.isWindow(i[0]);return{element:i,isWindow:s,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:s?i.width():i.outerWidth(),height:s?i.height():i.outerHeight()}}},t.fn.position=function(e){if(!e||!e.of)return p.apply(this,arguments);e=t.extend({},e);var n,d,f,m,g,v,b=t(e.of),y=t.position.getWithinInfo(e.within),_=t.position.getScrollInfo(y),w=(e.collision||"flip").split(" "),k={};return v=function(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}(b),b[0].preventDefault&&(e.at="left top"),d=v.width,f=v.height,m=v.offset,g=t.extend({},m),t.each(["my","at"],function(){var t,i,s=(e[this]||"").split(" ");1===s.length&&(s=l.test(s[0])?s.concat(["center"]):h.test(s[0])?["center"].concat(s):["center","center"]),s[0]=l.test(s[0])?s[0]:"center",s[1]=h.test(s[1])?s[1]:"center",t=c.exec(s[0]),i=c.exec(s[1]),k[this]=[t?t[0]:0,i?i[0]:0],e[this]=[u.exec(s[0])[0],u.exec(s[1])[0]]}),1===w.length&&(w[1]=w[0]),"right"===e.at[0]?g.left+=d:"center"===e.at[0]&&(g.left+=d/2),"bottom"===e.at[1]?g.top+=f:"center"===e.at[1]&&(g.top+=f/2),n=i(k.at,d,f),g.left+=n[0],g.top+=n[1],this.each(function(){var l,h,c=t(this),u=c.outerWidth(),p=c.outerHeight(),v=s(this,"marginLeft"),x=s(this,"marginTop"),C=u+v+s(this,"marginRight")+_.width,j=p+x+s(this,"marginBottom")+_.height,T=t.extend({},g),P=i(k.my,c.outerWidth(),c.outerHeight());"right"===e.my[0]?T.left-=u:"center"===e.my[0]&&(T.left-=u/2),"bottom"===e.my[1]?T.top-=p:"center"===e.my[1]&&(T.top-=p/2),T.left+=P[0],T.top+=P[1],t.support.offsetFractions||(T.left=r(T.left),T.top=r(T.top)),l={marginLeft:v,marginTop:x},t.each(["left","top"],function(i,s){t.ui.position[w[i]]&&t.ui.position[w[i]][s](T,{targetWidth:d,targetHeight:f,elemWidth:u,elemHeight:p,collisionPosition:l,collisionWidth:C,collisionHeight:j,offset:[n[0]+P[0],n[1]+P[1]],my:e.my,at:e.at,within:y,elem:c})}),e.using&&(h=function(t){var i=m.left-T.left,s=i+d-u,n=m.top-T.top,r=n+f-p,l={target:{element:b,left:m.left,top:m.top,width:d,height:f},element:{element:c,left:T.left,top:T.top,width:u,height:p},horizontal:0>s?"left":i>0?"right":"center",vertical:0>r?"top":n>0?"bottom":"middle"};u>d&&d>a(i+s)&&(l.horizontal="center"),p>f&&f>a(n+r)&&(l.vertical="middle"),l.important=o(a(i),a(s))>o(a(n),a(r))?"horizontal":"vertical",e.using.call(this,t,l)}),c.offset(t.extend(T,{using:h}))})},t.ui.position={fit:{left:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollLeft:s.offset.left,a=s.width,r=t.left-e.collisionPosition.marginLeft,l=n-r,h=r+e.collisionWidth-a-n;e.collisionWidth>a?l>0&&0>=h?(i=t.left+l+e.collisionWidth-a-n,t.left+=l-i):t.left=h>0&&0>=l?n:l>h?n+a-e.collisionWidth:n:l>0?t.left+=l:h>0?t.left-=h:t.left=o(t.left-r,t.left)},top:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollTop:s.offset.top,a=e.within.height,r=t.top-e.collisionPosition.marginTop,l=n-r,h=r+e.collisionHeight-a-n;e.collisionHeight>a?l>0&&0>=h?(i=t.top+l+e.collisionHeight-a-n,t.top+=l-i):t.top=h>0&&0>=l?n:l>h?n+a-e.collisionHeight:n:l>
vendor: 14,813 bytes, line 1
10?t.top+=l:h>0?t.top-=h:t.top=o(t.top-r,t.top)}},flip:{left:function(t,e){var i,s,n=e.within,o=n.offset.left+n.scrollLeft,r=n.width,l=n.isWindow?n.scrollLeft:n.offset.left,h=t.left-e.collisionPosition.marginLeft,c=h-l,u=h+e.collisionWidth-r-l,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];0>c?(0>(i=t.left+d+p+f+e.collisionWidth-r-o)||a(c)>i)&&(t.left+=d+p+f):u>0&&(((s=t.left-e.collisionPosition.marginLeft+d+p+f-l)>0||u>a(s))&&(t.left+=d+p+f))},top:function(t,e){var i,s,n=e.within,o=n.offset.top+n.scrollTop,r=n.height,l=n.isWindow?n.scrollTop:n.offset.top,h=t.top-e.collisionPosition.marginTop,c=h-l,u=h+e.collisionHeight-r-l,d="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,p="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,f=-2*e.offset[1];0>c?(s=t.top+d+p+f+e.collisionHeight-r-o,t.top+d+p+f>c&&(0>s||a(c)>s)&&(t.top+=d+p+f)):u>0&&(i=t.top-e.collisionPosition.marginTop+d+p+f-l,t.top+d+p+f>u&&(i>0||u>a(i))&&(t.top+=d+p+f))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}},function(){var e,i,s,n,o,a=document.getElementsByTagName("body")[0],r=document.createElement("div");for(o in e=document.createElement(a?"div":"body"),s={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},a&&t.extend(s,{position:"absolute",left:"-1000px",top:"-1000px"}),s)e.style[o]=s[o];e.appendChild(r),(i=a||document.documentElement).insertBefore(e,i.firstChild),r.style.cssText="position: absolute; left: 10.7432222px;",n=t(r).offset().left,t.support.offsetFractions=n>10&&11>n,e.innerHTML="",i.removeChild(e)}()}(jQuery),function(t,e){t.widget("ui.progressbar",{version:"1.10.3",options:{max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min}),this.valueDiv=t("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element),this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove()},value:function(t){return t===e?this.options.value:(this.options.value=this._constrainedValue(t),this._refreshValue(),e)},_constrainedValue:function(t){return t===e&&(t=this.options.value),this.indeterminate=!1===t,"number"!=typeof t&&(t=0),!this.indeterminate&&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)},_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).toggleClass("ui-corner-right",e===this.options.max).width(i.toFixed(0)+"%"),this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=t("<div class='ui-progressbar-overlay'></div>").appendTo(this.valueDiv))):(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")}})}(jQuery),function(t){t.widget("ui.slider",t.ui.mouse,{version:"1.10.3",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,i,s=this.options,n=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),o=[];for(i=s.values&&s.values.length||1,n.length>i&&(n.slice(i).remove(),n=n.slice(0,i)),e=n.length;i>e;e++)o.push("<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>");this.handles=n.add(t(o.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.each(function(e){t(this).data("ui-slider-handle-index",e)})},_createRange:function(){var e=this.options,i="";e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""}):(this.range=t("<div></div>").appendTo(this.element),i="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(i+("min"===e.range||"max"===e.range?" ui-slider-range-"+e.range:""))):this.range=t([])},_setupEvents:function(){var t=this.handles.add(this.range).filter("a");this._off(t),this._on(t,this._handleEvents),this._hoverable(t),this._focusable(t)},_destroy:function(){this.handles.remove(),this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(e){var i,s,n,o,a,r,l,h=this,c=this.options;return!c.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:e.pageX,y:e.pageY},s=this._normValueFromMouse(i),n=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var i=Math.abs(s-h.values(e));(n>i||n===i&&(e===h._lastChangedValue||h.values(e)===c.min))&&(n=i,o=t(this),a=e)}),!1!==this._start(e,a)&&(this._mouseSliding=!0,this._handleIndex=a,o.addClass("ui-state-active").focus(),r=o.offset(),l=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:e.pageX-r.left-o.width()/2,top:e.pageY-r.top-o.height()/2-(parseInt(o.css("borderTopWidth"),10)||0)-(parseInt(o.css("borderBottomWidth"),10)||0)+(parseInt(o.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,a,s),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,i),!1},_mouseStop:function(t){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,i,s,n,o;return"horizontal"===this.orientation?(e=this.elementSize.width,i=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,i=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(s=i/e)>1&&(s=1),0>s&&(s=0),"vertical"===this.orientation&&(s=1-s),n=this._valueMax()-this._valueMin(),o=this._valueMin()+s*n,this._trimAlignValue(o)},_start:function(t,e){var i={handle:this.handles[e],value:this.value()};return this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger("start",t,i)},_slide:function(t,e,i){var s,n,o;this.options.values&&this.options.values.length?(s=this.values(e?0:1),2===this.options.values.length&&!0===this.options.range&&(0===e&&i>s||1===e&&s>i)&&(i=s),i!==this.values(e)&&((n=this.values())[e]=i,o=this._trigger("slide",t,{handle:this.handles[e],value:i,values:n}),s=this.values(e?0:1),!1!==o&&this.values(e,i,!0))):i!==this.value()&&(!1!==(o=this._trigger("slide",t,{handle:this.handles[e],value:i}))&&this.value(i))},_stop:function(t,e){var i={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger("stop",t,i)},_change:function(t,e){if(!this._keySliding&&!this._mouseSliding){var i={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._lastChangedValue=e,this._trigger("change",t,i)}},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,i){var s,n,o;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(i),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(e):this.value();for(s=this.options.values,n=arguments[0],o=0;s.length>o;o+=1)s[o]=this._trimAlignValue(n[o]),this._change(null,o);this._refreshValue()},_setOption:function(e,i){var s,n=0;switch("range"===e&&!0===this.options.range&&("min"===i?(this.options.value=this._values(0),this.options.values=null):"max"===i&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),t.isArray(this.options.values)&&(n=this.options.values.length),t.Widget.prototype._setOption.apply(this,arguments),e){case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue();break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),s=0;n>s;s+=1)this._change(null,s);this._animateOff=!1;break;case"min":case"max":this._animateOff=!0,this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_value:function(){var t=this.options.value;return this._trimAlignValue(t)},_values:function(t){var e,i,s;if(arguments.length)return e=this.options.values[t],this._trimAlignValue(e);if(this.options.values&&this.options.values.length){for(i=this.options.values.slice(),s=0;i.length>s;s+=1)i[s]=this._trimAlignValue(i[s]);return i}return[]},_trimAlignValue:function(t){if(this._valueMin()>=t)return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,i=(t-this._valueMin())%e,s=t-i;return 2*Math.abs(i)>=e&&(s+=i>0?e:-e),parseFloat(s.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var e,i,s,n,o,a=this.options.range,r=this.options,l=this,h=!this._animateOff&&r.animate,c={};this.options.values&&this.options.values.length?this.handles.each(function(s){i=(l.values(s)-l._valueMin())/(l._valueMax()-l._valueMin())*100,c["horizontal"===l.orientation?"left":"bottom"]=i+"%",t(this).stop(1,1)[h?"animate":"css"](c,r.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===s&&l.range.stop(1,1)[h?"animate":"css"]({left:i+"%"},r.animate),1===s&&l.range[h?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:r.animate})):(0===s&&l.range.stop(1,1)[h?"animate":"css"]({bottom:i+"%"},r.animate),1===s&&l.range[h?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:r.animate}))),e=i}):(s=this.value(),n=this._valueMin(),o=this._valueMax(),i=o!==n?(s-n)/(o-n)*100:0,c["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[h?"animate":"css"](c,r.animate),"min"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[h?"animate":"css"]({width:i+"%"},r.animate),"max"===a&&"horizontal"===this.orientation&&this.range[h?"animate":"css"]({width:100-i+"%"},{queue:!1,duration:r.animate}),"min"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[h?"animate":"css"]({height:i+"%"},r.animate),"max"===a&&"vertical"===this.orientation&&this.range[h?"animate":"css"]({height:100-i+"%"},{queue:!1,duration:r.animate}))},_handleEvents:{keydown:function(e){var i,s,n,o=t(e.target).data("ui-slider-handle-index");switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,t(e.target).addClass("ui-state-active"),!1===this._start(e,o)))return}switch(n=this.options.step,i=s=this.options.values&&this.options.values.length?this.values(o):this.value(),e.keyCode){case t.ui.keyCode.HOME:s=this._valueMin();break;case t.ui.keyCode.END:s=this._valueMax();break;case t.ui.keyCode.PAGE_UP:s=this._trimAlignValue(i+(this._valueMax()-this._valueMin())/5);break;case t.ui.keyCode.PAGE_DOWN:s=this._trimAlignValue(i-(this._valueMax()-this._valueMin())/5);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(i===this._valueMax())return;s=this._trimAlignValue(i+n);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(i===this._valueMin())return;s=this._trimAlignValue(i-n)}this._slide(e,o,s)},click:function(t){t.preventDefault()},keyup:function(e){var i=t(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,i),this._change(e,i),t(e.target).removeClass("ui-state-active"))}}})}(jQuery),function(t){function e(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger("change")}}t.widget("ui.spinner",{version:"1.10.3",defaultElement:"<input>",widgetEventPrefix:"spin",options:{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.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={},i=this.element;return t.each(["min","max","step"],function(t,s){var n=i.attr(s);void 0!==n&&n.length&&(e[s]=n)}),e}
1,_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?void delete this.cancelBlur:(this._stop(),this._refresh(),void(this.previous!==this.element.val()&&this._trigger("change",t)))},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(){this.element[0]===this.document[0].activeElement||(this.element.focus(),this.previous=s,this._delay(function(){this.previous=s}))}var s;s=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),e.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),!1!==this._start(e)&&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")?!1!==this._start(e)&&void this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e):void 0},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var t=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=t.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()>Math.ceil(.5*t.height())&&t.height()>0&&t.height(t.height()),this.options.disabled&&this.disable()},_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},_uiSpinnerHtml:function(){return"<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>"},_buttonHtml:function(){return"<a class='ui-spinner-button ui-spinner-up ui-corner-tr'><span class='ui-icon "+this.options.icons.up+"'>&#9650;</span></a><a class='ui-spinner-button ui-spinner-down ui-corner-br'><span class='ui-icon "+this.options.icons.down+"'>&#9660;</span></a>"},_start:function(t){return!(!this.spinning&&!1===this._trigger("start",t))&&(this.counter||(this.counter=1),this.spinning=!0,!0)},_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&&!1===this._trigger("spin",e,{value:i})||(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 i=t-(e=null!==s.min?s.min:0),t=e+(i=Math.round(i/s.step)*s.step),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){if("culture"===t||"numberFormat"===t){var i=this._parse(this.element.val());return this.options[t]=e,void this.element.val(this._format(i))}("max"===t||"min"===t||"step"===t)&&"string"==typeof e&&(e=this._parse(e)),"icons"===t&&(this.buttons.first().find(".ui-icon").removeClass(this.options.icons.up).addClass(e.up),this.buttons.last().find(".ui-icon").removeClass(this.options.icons.down).addClass(e.down)),this._super(t,e),"disabled"===t&&(e?(this.element.prop("disabled",!0),this.buttons.button("disable")):(this.element.prop("disabled",!1),this.buttons.button("enable")))},_setOptions:e(function(t){this._super(t),this._value(this.element.val())}),_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())})},_value:function(t,e){var i;""!==t&&(null!==(i=this._parse(t))&&(e||(i=this._adjustValue(i)),t=this._format(i))),this.element.val(t),this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",!1).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:e(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:e(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:e(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:e(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){return arguments.length?void e(this._value).call(this,t):this._parse(this.element.val())},widget:function(){return this.uiSpinner}}
vendor: 8,401 bytes, line 1
1)}(jQuery),function(t,e){function i(t){return t.hash.length>1&&decodeURIComponent(t.href.replace(n,""))===decodeURIComponent(location.href.replace(n,""))}var s=0,n=/#.*$/;t.widget("ui.tabs",{version:"1.10.3",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var e=this,i=this.options;this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",i.collapsible).delegate(".ui-tabs-nav > li","mousedown"+this.eventNamespace,function(e){t(this).is(".ui-state-disabled")&&e.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){t(this).closest("li").is(".ui-state-disabled")&&this.blur()}),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=!1!==this.options.active&&this.anchors.length?this._findActive(i.active):t(),this._refresh(),this.active.length&&this.load(i.active)},_initialActive:function(){var i=this.options.active,s=this.options.collapsible,n=location.hash.substring(1);return null===i&&(n&&this.tabs.each(function(s,o){return t(o).attr("aria-controls")===n?(i=s,!1):e}),null===i&&(i=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(null===i||-1===i)&&(i=!!this.tabs.length&&0)),!1!==i&&(-1===(i=this.tabs.index(this.tabs.eq(i)))&&(i=!s&&0)),!s&&!1===i&&this.anchors.length&&(i=0),i},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):t()}},_tabKeydown:function(i){var s=t(this.document[0].activeElement).closest("li"),n=this.tabs.index(s),o=!0;if(!this._handlePageNav(i)){switch(i.keyCode){case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:n++;break;case t.ui.keyCode.UP:case t.ui.keyCode.LEFT:o=!1,n--;break;case t.ui.keyCode.END:n=this.anchors.length-1;break;case t.ui.keyCode.HOME:n=0;break;case t.ui.keyCode.SPACE:return i.preventDefault(),clearTimeout(this.activating),this._activate(n),e;case t.ui.keyCode.ENTER:return i.preventDefault(),clearTimeout(this.activating),this._activate(n!==this.options.active&&n),e;default:return}i.preventDefault(),clearTimeout(this.activating),n=this._focusNextTab(n,o),i.ctrlKey||(s.attr("aria-selected","false"),this.tabs.eq(n).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",n)},this.delay))}},_panelKeydown:function(e){this._handlePageNav(e)||e.ctrlKey&&e.keyCode===t.ui.keyCode.UP&&(e.preventDefault(),this.active.focus())},_handlePageNav:function(i){return i.altKey&&i.keyCode===t.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):i.altKey&&i.keyCode===t.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):e},_findNextTab:function(e,i){for(var s=this.tabs.length-1;-1!==t.inArray((e>s&&(e=0),0>e&&(e=s),e),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).focus(),t},_setOption:function(t,i){return"active"===t?(this._activate(i),e):"disabled"===t?(this._setupDisabled(i),e):(this._super(t,i),"collapsible"===t&&(this.element.toggleClass("ui-tabs-collapsible",i),i||!1!==this.options.active||this._activate(0)),"event"===t&&this._setupEvents(i),"heightStyle"===t&&this._setupHeightStyle(i),e)},_tabId:function(t){return t.attr("aria-controls")||"ui-tabs-"+ ++s},_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(),!1!==e.active&&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._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-expanded":"true","aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var e=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist"),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return t("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=t(),this.anchors.each(function(s,n){var o,a,r,l=t(n).uniqueId().attr("id"),h=t(n).closest("li"),c=h.attr("aria-controls");i(n)?(o=n.hash,a=e.element.find(e._sanitizeSelector(o))):(o="#"+(r=e._tabId(h)),(a=e.element.find(o)).length||(a=e._createPanel(r)).insertAfter(e.panels[s-1]||e.tablist),a.attr("aria-live","polite")),a.length&&(e.panels=e.panels.add(a)),c&&h.data("ui-tabs-aria-controls",c),h.attr({"aria-controls":o.substring(1),"aria-labelledby":l}),a.attr("aria-labelledby",l)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.element.find("ol,ul").eq(0)},_createPanel:function(e){return t("<div>").attr("id",e).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(e){t.isArray(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1);for(var i,s=0;i=this.tabs[s];s++)!0===e||-1!==t.inArray(s,e)?t(i).addClass("ui-state-disabled").attr("aria-disabled","true"):t(i).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=e},_setupEvents:function(e){var i={click:function(t){t.preventDefault()}};e&&t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),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).closest("li"),o=n[0]===s[0],a=o&&i.collapsible,r=a?t():this._getPanelForTab(n),l=s.length?this._getPanelForTab(s):t(),h={oldTab:s,oldPanel:l,newTab:a?t():n,newPanel:r};e.preventDefault(),n.hasClass("ui-state-disabled")||n.hasClass("ui-tabs-loading")||this.running||o&&!i.collapsible||!1===this._trigger("beforeActivate",e,h)||(i.active=!a&&this.tabs.index(n),this.active=o?t():n,this.xhr&&this.xhr.abort(),l.length||r.length||t.error("jQuery UI Tabs: Mismatching fragment identifier."),r.length&&this.load(this.tabs.index(n),e),this._toggle(e,h))},_toggle:function(e,i){function s(){o.running=!1,o._trigger("activate",e,i)}function n(){i.newTab.closest("li").addClass("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(){i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),n()}):(i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),r.hide(),n()),r.attr({"aria-expanded":"false","aria-hidden":"true"}
1),i.oldTab.attr("aria-selected","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-expanded":"true","aria-hidden":"false"}),i.newTab.attr({"aria-selected":"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!1===e?t():this.tabs.eq(e)},_getIndex:function(t){return"string"==typeof t&&(t=this.anchors.index(this.anchors.filter("[href$='"+t+"']"))),t},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){t.data(this,"ui-tabs-destroy")?t(this).remove():t(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),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(i){var s=this.options.disabled;!1!==s&&(i===e?s=!1:(i=this._getIndex(i),s=t.isArray(s)?t.map(s,function(t){return t!==i?t:null}):t.map(this.tabs,function(t,e){return e!==i?e:null})),this._setupDisabled(s))},disable:function(i){var s=this.options.disabled;if(!0!==s){if(i===e)s=!0;else{if(i=this._getIndex(i),-1!==t.inArray(i,s))return;s=t.isArray(s)?t.merge([i],s).sort():[i]}this._setupDisabled(s)}},load:function(e,s){e=this._getIndex(e);var n=this,o=this.tabs.eq(e),a=o.find(".ui-tabs-anchor"),r=this._getPanelForTab(o),l={tab:o,panel:r};i(a[0])||(this.xhr=t.ajax(this._ajaxSettings(a,s,l)),this.xhr&&"canceled"!==this.xhr.statusText&&(o.addClass("ui-tabs-loading"),r.attr("aria-busy","true"),this.xhr.success(function(t){setTimeout(function(){r.html(t),n._trigger("load",s,l)},1)}).complete(function(t,e){setTimeout(function(){"abort"===e&&n.panels.stop(!1,!0),o.removeClass("ui-tabs-loading"),r.removeAttr("aria-busy"),t===n.xhr&&delete n.xhr},1)})))},_ajaxSettings:function(e,i,s){var n=this;return{url:e.attr("href"),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))}})}(jQuery),function(t){var e=0;t.widget("ui.tooltip",{version:"1.10.3",options:{content:function(){var e=t(this).attr("title")||"";return t("<a>").text(e).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable()},_setOption:function(e,i){var s=this;return"disabled"===e?(this[i?"_disable":"_enable"](),void(this.options[e]=i)):(this._super(e,i),void("content"===e&&t.each(this.tooltips,function(t,e){s._updateContent(e)})))},_disable:function(){var e=this;t.each(this.tooltips,function(i,s){var n=t.Event("blur");n.target=n.currentTarget=s[0],e.close(n,!0)}),this.element.find(this.options.items).addBack().each(function(){var e=t(this);e.is("[title]")&&e.data("ui-tooltip-title",e.attr("title")).attr("title","")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var e=t(this);e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title"))})},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")).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._updateContent(s,e))},_updateContent:function(t,e){var i,s=this.options.content,n=this,o=e?e.type:null;return"string"==typeof s?this._open(e,t,s):void((i=s.call(t[0],function(i){t.data("ui-tooltip-open")&&n._delay(function(){e&&(e.type=o),this._open(e,t,i)})}))&&this._open(e,t,i))},_open:function(e,i,s){function n(t){l.of=t,o.is(":hidden")||o.position(l)}var o,a,r,l=t.extend({},this.options.position);if(s){if((o=this._find(i)).length)return void o.find(".ui-tooltip-content").html(s);i.is("[title]")&&(e&&"mouseover"===e.type?i.attr("title",""):i.removeAttr("title")),o=this._tooltip(i),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(" ")))}(i,o.attr("id")),o.find(".ui-tooltip-content").html(s),this.options.track&&e&&/^mouse/.test(e.type)?(this._on(this.document,{mousemove:n}),n(e)):o.position(t.extend({of:i},this.options.position)),o.hide(),this._show(o,this.options.show),this.options.show&&this.options.show.delay&&(r=this.delayedShow=setInterval(function(){o.is(":visible")&&(n(l.of),clearInterval(r))},t.fx.interval)),this._trigger("open",e,{tooltip:o}),a={keyup:function(e){if(e.keyCode===t.ui.keyCode.ESCAPE){var s=t.Event(e);s.currentTarget=i[0],this.close(s,!0)}},remove:function(){this._removeTooltip(o)}},e&&"mouseover"!==e.type||(a.mouseleave="close"),e&&"focusin"!==e.type||(a.focusout="close"),this._on(!0,i,a)}},close:function(e){var i=this,s=t(e?e.currentTarget:this.element),n=this._find(s);this.closing||(clearInterval(this.delayedShow),s.data("ui-tooltip-title")&&s.attr("title",s.data("ui-tooltip-title")),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(" ")))?e.attr("aria-describedby",s):e.removeAttr("aria-describedby")}(s),n.stop(!0),this._hide(n,this.options.hide,function(){i._removeTooltip(t(this))}),s.removeData("ui-tooltip-open"),this._off(s,"mouseleave focusout keyup"),s[0]!==this.element[0]&&this._off(s,"remove"),this._off(this.document,"mousemove"),e&&"mouseleave"===e.type&&t.each(this.parents,function(e,s){t(s.element).attr("title",s.title),delete i.parents[e]}),this.closing=!0,this._trigger("close",e,{tooltip:n}),this.closing=!1)},_tooltip:function(i){var s="ui-tooltip-"+e++,n=t("<div>").attr({id:s,role:"tooltip"}).addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||""));return t("<div>").addClass("ui-tooltip-content").appendTo(n),n.appendTo(this.document[0].body),this.tooltips[s]=i,n},_find:function(e){var i=e.data("ui-tooltip-id");return i?t("#"+i):t()},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_destroy:function(){var e=this;t.each(this.tooltips,function(i,s){var n=t.Event("blur");n.target=n.currentTarget=s[0],e.close(n,!0),t("#"+i).remove(),s.data("ui-tooltip-title")&&(s.attr("title",s.data("ui-tooltip-title")),s.removeData("ui-tooltip-title"))})}})}(jQuery),"undefined"==typeof jQuery)throw new Error("Bootstrap requires jQuery");!function(t){"use strict";t.fn.emulateTransitionEnd=function(e){var i=!1,s=this;t(this).one(t.support.transition.end,function(){i=!0});return setTimeout(function(){i||t(s).trigger(t.support.transition.end)},e),this},t(function(){t.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]}}()})}(jQuery),function(t){"use strict";var e='[data-dismiss="alert"]',i=function(i){t(i).on("click",e,this.close)};i.prototype.close=function(e){function i(){o.trigger("closed.bs.alert").remove()}var s=t(this),n=s.attr("data-target");n||(n=(n=s.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,""));var o=t(n);e&&e.preventDefault(),o.length||(o=s.hasClass("alert")?s:s.parent()),o.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(o.removeClass("in"),t.support.transition&&o.hasClass("fade")?o.one(t.support.transition.end,i).emulateTransitionEnd(150):i())};var s=t.fn.alert;t.fn.alert=function(e){return this.each(function(){var s=t(this),n=s.data("bs.alert");n||s.data("bs.alert",n=new i(this)),"string"==typeof e&&n[e].call(s)})},t.fn.alert.Constructor=i,t.fn.alert.noConflict=function(){return t.fn.alert=s,this},t(document).on("click.bs.alert.data-api",e,i.prototype.close)}(jQuery),function(t){"use strict";var e=function(i,s){this.$element=t(i),this.options=t.extend({},e.DEFAULTS,s)};e.DEFAULTS={loadingText:"loading..."},e.prototype.setState=function(t){var e="disabled",i=this.$element,s=i.is("input")?"val":"html",n=i.data();t+="Text",n.resetText||i.data("resetText",i[s]()),i[s](n[t]||this.options[t]),setTimeout(function(){"loadingText"==t?i.addClass(e).attr(e,e):i.removeClass(e).removeAttr(e)},0)},e.prototype.toggle=function(){var t=this.$element.closest('[data-toggle="buttons"]');t.length&&("radio"===this.$element.find("input").prop("checked",!this.$element.hasClass("active")).trigger("change").prop("type")&&t.find(".active").removeClass("active"));this.$element.toggleClass("active")};var i=t.fn.button;t.fn.button=function(i){return this.each(function(){var s=t(this),n=s.data("bs.button"),o="object"==typeof i&&i;n||s.data("bs.button",n=new e(this,o)),"toggle"==i?n.toggle():i&&n.setState(i)})},t.fn.button.Constructor=e,t.fn.button.noConflict=function(){return t.fn.button=i,this},t(document).on("click.bs.button.data-api","[data-toggle^=button]",function(e){var i=t(e.target);i.hasClass("btn")||(i=i.closest(".btn")),i.button("toggle"),e.preventDefault()})}(jQuery),function(t){"use strict";var e=function(e,i){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter",t.proxy(this.pause,this)).on("mouseleave",t.proxy(this.cycle,this))};e.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},e.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},e.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".
1item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},e.prototype.to=function(e){var i=this,s=this.getActiveIndex();return e>this.$items.length-1||0>e?void 0:this.sliding?this.$element.one("slid",function(){i.to(e)}):s==e?this.pause().cycle():this.slide(e>s?"next":"prev",t(this.$items[e]))},e.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition.end&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},e.prototype.next=function(){return this.sliding?void 0:this.slide("next")},e.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},e.prototype.slide=function(e,i){var s=this.$element.find(".item.active"),n=i||s[e](),o=this.interval,a="next"==e?"left":"right",r="next"==e?"first":"last",l=this;if(!n.length){if(!this.options.wrap)return;n=this.$element.find(".item")[r]()}this.sliding=!0,o&&this.pause();var h=t.Event("slide.bs.carousel",{relatedTarget:n[0],direction:a});if(!n.hasClass("active")){if(this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid",function(){var e=t(l.$indicators.children()[l.getActiveIndex()]);e&&e.addClass("active")})),t.support.transition&&this.$element.hasClass("slide")){if(this.$element.trigger(h),h.isDefaultPrevented())return;n.addClass(e),n[0].offsetWidth,s.addClass(a),n.addClass(a),s.one(t.support.transition.end,function(){n.removeClass([e,a].join(" ")).addClass("active"),s.removeClass(["active",a].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger("slid")},0)}).emulateTransitionEnd(600)}else{if(this.$element.trigger(h),h.isDefaultPrevented())return;s.removeClass("active"),n.addClass("active"),this.sliding=!1,this.$element.trigger("slid")}return o&&this.cycle(),this}};var i=t.fn.carousel;t.fn.carousel=function(i){return this.each(function(){var s=t(this),n=s.data("bs.carousel"),o=t.extend({},e.DEFAULTS,s.data(),"object"==typeof i&&i),a="string"==typeof i?i:o.slide;n||s.data("bs.carousel",n=new e(this,o)),"number"==typeof i?n.to(i):a?n[a]():o.interval&&n.pause().cycle()})},t.fn.carousel.Constructor=e,t.fn.carousel.noConflict=function(){return t.fn.carousel=i,this},t(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(e){var i,s=t(this),n=t(s.attr("data-target")||(i=s.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"")),o=t.extend({},n.data(),s.data()),a=s.attr("data-slide-to");a&&(o.interval=!1),n.carousel(o),(a=s.attr("data-slide-to"))&&n.data("bs.carousel").to(a),e.preventDefault()}),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var e=t(this);e.carousel(e.data())})})}(jQuery),function(t){"use strict";var e=function(i,s){this.$element=t(i),this.options=t.extend({},e.DEFAULTS,s),this.transitioning=null,this.options.parent&&(this.$parent=t(this.options.parent)),this.options.toggle&&this.toggle()};e.DEFAULTS={toggle:!0},e.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},e.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e=t.Event("show.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var i=this.$parent&&this.$parent.find("> .panel > .in");if(i&&i.length){var s=i.data("bs.collapse");if(s&&s.transitioning)return;i.collapse("hide"),s||i.data("bs.collapse",null)}var n=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[n](0),this.transitioning=1;var o=function(){this.$element.removeClass("collapsing").addClass("in")[n]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return o.call(this);var a=t.camelCase(["scroll",n].join("-"));this.$element.one(t.support.transition.end,t.proxy(o,this)).emulateTransitionEnd(350)[n](this.$element[0][a])}}},e.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var s=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return t.support.transition?void this.$element[i](0).one(t.support.transition.end,t.proxy(s,this)).emulateTransitionEnd(350):s.call(this)}}},e.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var i=t.fn.collapse;t.fn.collapse=function(i){return this.each(function(){var s=t(this),n=s.data("bs.collapse"),o=t.extend({},e.DEFAULTS,s.data(),"object"==typeof i&&i);n||s.data("bs.collapse",n=new e(this,o)),"string"==typeof i&&n[i]()})},t.fn.collapse.Constructor=e,t.fn.collapse.noConflict=function(){return t.fn.collapse=i,this},t(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(e){var i,s=t(this),n=s.attr("data-target")||e.preventDefault()||(i=s.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""),o=t(n),a=o.data("bs.collapse"),r=a?"toggle":s.data(),l=s.attr("data-parent"),h=l&&t(l);a&&a.transitioning||(h&&h.find('[data-toggle=collapse][data-parent="'+l+'"]').not(s).addClass("collapsed"),s[o.hasClass("in")?"addClass":"removeClass"]("collapsed")),o.collapse(r)})}(jQuery),function(t){"use strict";function e(){t(s).remove(),t(n).each(function(e){var s=i(t(this));s.hasClass("open")&&(s.trigger(e=t.Event("hide.bs.dropdown")),e.isDefaultPrevented()||s.removeClass("open").trigger("hidden.bs.dropdown"))})}function i(e){var i=e.attr("data-target");i||(i=(i=e.attr("href"))&&/#/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var s=i&&t(i);return s&&s.length?s:e.parent()}var s=".dropdown-backdrop",n="[data-toggle=dropdown]",o=function(e){t(e).on("click.bs.dropdown",this.toggle)};o.prototype.toggle=function(s){var n=t(this);if(!n.is(".disabled, :disabled")){var o=i(n),a=o.hasClass("open");if(e(),!a){if("ontouchstart"in document.documentElement&&!o.closest(".
1navbar-nav").length&&t('<div class="dropdown-backdrop"/>').insertAfter(t(this)).on("click",e),o.trigger(s=t.Event("show.bs.dropdown")),s.isDefaultPrevented())return;o.toggleClass("open").trigger("shown.bs.dropdown"),n.focus()}return!1}},o.prototype.keydown=function(e){if(/(38|40|27)/.test(e.keyCode)){var s=t(this);if(e.preventDefault(),e.stopPropagation(),!s.is(".disabled, :disabled")){var o=i(s),a=o.hasClass("open");if(!a||a&&27==e.keyCode)return 27==e.which&&o.find(n).focus(),s.click();var r=t("[role=menu] li:not(.divider):visible a",o);if(r.length){var l=r.index(r.filter(":focus"));38==e.keyCode&&l>0&&l--,40==e.keyCode&&l<r.length-1&&l++,~l||(l=0),r.eq(l).focus()}}}};var a=t.fn.dropdown;t.fn.dropdown=function(e){return this.each(function(){var i=t(this),s=i.data("dropdown");s||i.data("dropdown",s=new o(this)),"string"==typeof e&&s[e].call(i)})},t.fn.dropdown.Constructor=o,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=a,this},t(document).on("click.bs.dropdown.data-api",e).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",n,o.prototype.toggle).on("keydown.bs.dropdown.data-api",n+", [role=menu]",o.prototype.keydown)}(jQuery),function(t){"use strict";var e=function(e,i){this.options=i,this.$element=t(e),this.$backdrop=this.isShown=null,this.options.remote&&this.$element.load(this.options.remote)};e.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},e.prototype.toggle=function(t){return this[this.isShown?"hide":"show"](t)},e.prototype.show=function(e){var i=this,s=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(s),this.isShown||s.isDefaultPrevented()||(this.isShown=!0,this.escape(),this.$element.on("click.dismiss.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.backdrop(function(){var s=t.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(document.body),i.$element.show(),s&&i.$element[0].offsetWidth,i.$element.addClass("in").attr("aria-hidden",!1),i.enforceFocus();var n=t.Event("shown.bs.modal",{relatedTarget:e});s?i.$element.find(".modal-dialog").one(t.support.transition.end,function(){i.$element.focus().trigger(n)}).emulateTransitionEnd(300):i.$element.focus().trigger(n)}))},e.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one(t.support.transition.end,t.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},e.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.focus()},this))},e.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")},e.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.removeBackdrop(),t.$element.trigger("hidden.bs.modal")})},e.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},e.prototype.backdrop=function(e){var i=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var s=t.support.transition&&i;if(this.$backdrop=t('<div class="modal-backdrop '+i+'" />').appendTo(document.body),this.$element.on("click.dismiss.modal",t.proxy(function(t){t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),s&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;s?this.$backdrop.one(t.support.transition.end,e).emulateTransitionEnd(150):e()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(t.support.transition.end,e).emulateTransitionEnd(150):e()):e&&e()};var i=t.fn.modal;t.fn.modal=function(i,s){return this.each(function(){var n=t(this),o=n.data("bs.modal"),a=t.extend({},e.DEFAULTS,n.data(),"object"==typeof i&&i);o||n.data("bs.modal",o=new e(this,a)),"string"==typeof i?o[i](s):a.show&&o.show(s)})},t.fn.modal.Constructor=e,t.fn.modal.noConflict=function(){return t.fn.modal=i,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(e){var i=t(this),s=i.attr("href"),n=t(i.attr("data-target")||s&&s.replace(/.*(?=#[^\s]+$)/,"")),o=n.data("modal")?"toggle":t.extend({remote:!/#/.test(s)&&s},n.data(),i.data());e.preventDefault(),n.modal(o,this).one("hide",function(){i.is(":visible")&&i.focus()})}),t(document).on("show.bs.modal",".modal",function(){t(document.body).addClass("modal-open")}).on("hidden.bs.modal",".modal",function(){t(document.body).removeClass("modal-open")})}(jQuery),function(t){"use strict";var e=function(t,e){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",t,e)};e.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},e.prototype.init=function(e,i,s){this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(s);for(var n=this.options.trigger.split(" "),o=n.length;o--;){var a=n[o];if("click"==a)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=a){var r="hover"==a?"mouseenter":"focus",l="hover"==a?"mouseleave":"blur";this.$element.on(r+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.getOptions=function(e){return(e=t.extend({},this.getDefaults(),this.$element.data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},e.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,function(t,s){i[t]!=s&&(e[t]=s)}),e},e.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);return clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show()},e.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);return clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide()},e.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){if(this.$element.trigger(e),e.isDefaultPrevented())return;var i=this.tip();this.setContent(),this.options.animation&&i.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,n=/\s?auto?\s?/i,o=n.test(s);o&&(s=s.replace(n,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(s),this.options.container?i.appendTo(this.options.container):i.insertAfter(this.$element);var a=this.getPosition(),r=i[0].offsetWidth,l=i[0].offsetHeight;if(o){var h=this.$element.parent(),c=s,u=document.documentElement.scrollTop||document.body.scrollTop,d="body"==this.options.container?window.innerWidth:h.outerWidth(),p="body"==this.options.container?window.innerHeight:h.outerHeight(),f="body"==this.options.container?0:h.offset().left;s="bottom"==s&&a.top+a.height+l-u>p?"top":"top"==s&&a.top-u-l<0?"bottom":"right"==s&&a.right+r>d?"left":"left"==s&&a.left-r<f?"right":s,i.removeClass(c).addClass(s)}var m=this.getCalculatedOffset(s,a,r,l);this.applyPlacement(m,s),this.$element.trigger("shown.bs."+this.type)}},e.prototype.applyPlacement=function(t,e){var i,s=this.tip(),n=s[0].offsetWidth,o=s[0].offsetHeight,a=parseInt(s.css("margin-top"),10),r=parseInt(s.css("margin-left"),10);isNaN(a)&&(a=0),isNaN(r)&&(r=0),t.top=t.top+a,t.left=t.left+r,s.offset(t).addClass("in");var l=s[0].offsetWidth,h=s[0].offsetHeight;if("top"==e&&h!=o&&(i=!0,t.top=t.top+o-h),/bottom|top/.test(e)){var c=0;t.left<0&&(c=-2*t.left,t.left=0,s.offset(t),l=s[0].offsetWidth,h=s[0].offsetHeight),this.replaceArrow(c-n+l,l,"left")}else this.replaceArrow(h-o,h,"top");i&&s.offset(t)}
vendor: 9,181 bytes, line 1
1,e.prototype.replaceArrow=function(t,e,i){this.arrow().css(i,t?50*(1-t/e)+"%":"")},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},e.prototype.hide=function(){function e(){"in"!=i.hoverState&&s.detach()}var i=this,s=this.tip(),n=t.Event("hide.bs."+this.type);return this.$element.trigger(n),n.isDefaultPrevented()?void 0:(s.removeClass("in"),t.support.transition&&this.$tip.hasClass("fade")?s.one(t.support.transition.end,e).emulateTransitionEnd(150):e(),this.$element.trigger("hidden.bs."+this.type),this)},e.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},e.prototype.hasContent=function(){return this.getTitle()},e.prototype.getPosition=function(){var e=this.$element[0];return t.extend({},"function"==typeof e.getBoundingClientRect?e.getBoundingClientRect():{width:e.offsetWidth,height:e.offsetHeight},this.$element.offset())},e.prototype.getCalculatedOffset=function(t,e,i,s){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-s,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-s/2,left:e.left-i}:{top:e.top+e.height/2-s/2,left:e.left+e.width}},e.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},e.prototype.tip=function(){return this.$tip=this.$tip||t(this.options.template)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},e.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},e.prototype.enable=function(){this.enabled=!0},e.prototype.disable=function(){this.enabled=!1},e.prototype.toggleEnabled=function(){this.enabled=!this.enabled},e.prototype.toggle=function(e){var i=e?t(e.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type):this;i.tip().hasClass("in")?i.leave(i):i.enter(i)},e.prototype.destroy=function(){this.hide().$element.off("."+this.type).removeData("bs."+this.type)};var i=t.fn.tooltip;t.fn.tooltip=function(i){return this.each(function(){var s=t(this),n=s.data("bs.tooltip"),o="object"==typeof i&&i;n||s.data("bs.tooltip",n=new e(this,o)),"string"==typeof i&&n[i]()})},t.fn.tooltip.Constructor=e,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=i,this}}(jQuery),function(t){"use strict";var e=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");e.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),(e.prototype=t.extend({},t.fn.tooltip.Constructor.prototype)).constructor=e,e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content")[this.options.html?"html":"text"](i),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},e.prototype.hasContent=function(){return this.getTitle()||this.getContent()},e.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},e.prototype.tip=function(){return this.$tip||(this.$tip=t(this.options.template)),this.$tip};var i=t.fn.popover;t.fn.popover=function(i){return this.each(function(){var s=t(this),n=s.data("bs.popover"),o="object"==typeof i&&i;n||s.data("bs.popover",n=new e(this,o)),"string"==typeof i&&n[i]()})},t.fn.popover.Constructor=e,t.fn.popover.noConflict=function(){return t.fn.popover=i,this}}(jQuery),function(t){"use strict";function e(i,s){var n,o=t.proxy(this.process,this);this.$element=t(i).is("body")?t(window):t(i),this.$body=t("body"),this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",o),this.options=t.extend({},e.DEFAULTS,s),this.selector=(this.options.target||(n=t(i).attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.offsets=t([]),this.targets=t([]),this.activeTarget=null,this.refresh(),this.process()}e.DEFAULTS={offset:10},e.prototype.refresh=function(){var e=this.$element[0]==window?"offset":"position";this.offsets=t([]),this.targets=t([]);var i=this;this.$body.find(this.selector).map(function(){var s=t(this),n=s.data("target")||s.attr("href"),o=/^#\w/.test(n)&&t(n);return o&&o.length&&[[o[e]().top+(!t.isWindow(i.$scrollElement.get(0))&&i.$scrollElement.scrollTop()),n]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){i.offsets.push(this[0]),i.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=(this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight)-this.$scrollElement.height(),s=this.offsets,n=this.targets,o=this.activeTarget;if(e>=i)return o!=(t=n.last()[0])&&this.activate(t);for(t=s.length;t--;)o!=n[t]&&e>=s[t]&&(!s[t+1]||e<=s[t+1])&&this.activate(n[t])},e.prototype.activate=function(e){this.activeTarget=e,t(this.selector).parents(".active").removeClass("active");var i=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',s=t(i).parents("li").addClass("active");s.parent(".dropdown-menu").length&&(s=s.closest("li.dropdown").addClass("active")),s.trigger("activate")};var i=t.fn.scrollspy;t.fn.scrollspy=function(i){return this.each(function(){var s=t(this),n=s.data("bs.scrollspy"),o="object"==typeof i&&i;n||s.data("bs.scrollspy",n=new e(this,o)),"string"==typeof i&&n[i]()})},t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=i,this},t(window).on("load",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);e.scrollspy(e.data())})})}(jQuery),function(t){"use strict";var e=function(e){this.element=t(e)};e.prototype.show=function(){var e=this.element,i=e.closest("ul:not(.dropdown-menu)"),s=e.data("target");if(s||(s=(s=e.attr("href"))&&s.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var n=i.find(".active:last a")[0],o=t.Event("show.bs.tab",{relatedTarget:n});if(e.trigger(o),!o.isDefaultPrevented()){var a=t(s);this.activate(e.parent("li"),i),this.activate(a,a.parent(),function(){e.trigger({type:"shown.bs.tab",relatedTarget:n})})}}},e.prototype.activate=function(e,i,s){function n(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),e.addClass("active"),a?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu")&&e.closest("li.dropdown").addClass("active"),s&&s()}var o=i.find("> .active"),a=s&&t.support.transition&&o.hasClass("fade");a?o.one(t.support.transition.end,n).emulateTransitionEnd(150):n(),o.removeClass("in")};var i=t.fn.tab;t.fn.tab=function(i){return this.each(function(){var s=t(this),n=s.data("bs.tab");n||s.data("bs.tab",n=new e(this)),"string"==typeof i&&n[i]()})},t.fn.tab.Constructor=e,t.fn.tab.noConflict=function(){return t.fn.tab=i,this},t(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(e){e.preventDefault(),t(this).tab("show")})}(jQuery),function(t){"use strict";var e=function(i,s){this.options=t.extend({},e.DEFAULTS,s),this.$window=t(window).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(i),this.affixed=this.unpin=null,this.checkPosition()};e.RESET="affix affix-top affix-bottom",e.DEFAULTS={offset:0},e.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},e.prototype.checkPosition=function(){if(this.$element.is(":visible")){var i=t(document).height(),s=this.$window.scrollTop(),n=this.$element.offset(),o=this.options.offset,a=o.top,r=o.bottom;"object"!=typeof o&&(r=a=o),"function"==typeof a&&(a=o.top()),"function"==typeof r&&(r=o.bottom());var l=!(null!=this.unpin&&s+this.unpin<=n.top)&&(null!=r&&n.top+this.$element.height()>=i-r?"bottom":null!=a&&a>=s&&"top");this.affixed!==l&&(this.unpin&&this.$element.css("top",""),this.affixed=l,this.unpin="bottom"==l?n.top-s:null,this.$element.removeClass(e.RESET).addClass("affix"+(l?"-"+l:"")),"bottom"==l&&this.$element.offset({top:document.body.offsetHeight-r-this.$element.height()}))}};var i=t.fn.affix;t.fn.affix=function(i){return this.each(function(){var s=t(this),n=s.data("bs.affix"),o="object"==typeof i&&i;n||s.data("bs.affix",n=new e(this,o)),"string"==typeof i&&n[i]()})},t.fn.affix.Constructor=e,t.fn.affix.noConflict=function(){return t.fn.affix=i,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var e=t(this),i=e.data();i.offset=i.offset||{},i.offsetBottom&&(i.offset.bottom=i.offsetBottom),i.offsetTop&&(i.offset.top=i.offsetTop),e.affix(i)})})}
1(jQuery),jQuery(document).ready(function(){var t=jQuery,e=t(window).width(),i=t(window).height(),s=t("html");(s.hasClass("ie6")||s.hasClass("ie7"))&&t("body").empty().html("Please, Update your Browser to at least IE8"),t("[href=#]").click(function(t){t.preventDefault()}),t(".comment-list li:even , .product-list .product-item:even").addClass("even"),t(".comment-list li:odd , .product-list .product-item:odd").addClass("odd"),t(".body-wrap").css("min-height",i),t(window).resize(function(){i=t(window).height(),t(".body-wrap").css("min-height",i)}),t("body").on("click",".product-remove a",function(){t(this).parent().parent().hide()}),t("a, input, textarea").attr("hideFocus","true").css("outline","none"),t("select").hasClass("select_styled")&&cuSel({changedEl:".select_styled",visRows:8,scrollArrows:!0}),t("div,p").hasClass("input_styled")&&t(".input_styled input").customInput(),t(".menu ul").parents("li").addClass("parent"),t(".menu li").hover(function(){t(this).addClass("hover")},function(){t(this).removeClass("hover")});for(var n=t(".tabs").length,o=0,a=1;a<=n;a++)t(".tabs").eq(a-1).addClass("tab-id"+a),o=t(".tab-id"+a+" li").length,t(".tab-id"+a).addClass("bookmarks"+o);function r(t){return t.replace(/^\//,"").replace(/(index|default).[a-zA-Z]{3,4}$/,"").replace(/\/$/,"")}t(".tabs li, .payment-form .btn").click(function(){setTimeout(function(){for(var e=1;e<=n;e++){o=t(".tab-id"+e+" li").length;for(var i=1;i<=o;i++)t(".tab-id"+e).removeClass("active-bookmark"+i),t(".tab-id"+e+" li").eq(i-1).hasClass("active")&&t(".tab-id"+e).addClass("active-bookmark"+i)}},0)}),t(".toggle-link").click(function(){t(this).parents(".toggle").removeClass("collapsed"),t(this).hasClass("collapsed")||t(this).parents(".toggle").addClass("collapsed")}),t(".payment-form #billing .btn-next, .payment-form #payment .btn-prev").click(function(){t('a[href="#shipping"]').tab("show")}),t(".payment-form #shipping .btn-prev").click(function(){t('a[href="#billing"]').tab("show")}),t(".payment-form #shipping .btn-next").click(function(){t('a[href="#payment"]').tab("show")}),t("a").is("[data-rel]")&&e>600&&(t("a[data-rel]").each(function(){t(this).attr("rel",t(this).data("rel"))}),t("a[rel^='prettyPhoto']").prettyPhoto({social_tools:!1}));var l=r(location.pathname),h=function(e){for(var i=0,s=arguments.length;i<s;i++){var n=arguments[i],o=t(n);if(o.scrollTop()>0)return n;o.scrollTop(1);var a=o.scrollTop()>0;if(o.scrollTop(0),a)return n}return[]}("html","body");t("a[href*=#].anchor").each(function(){t(this).click(function(e){var i=r(this.pathname)||l;if(l==i&&(location.hostname==this.hostname||!this.hostname)&&this.hash.replace(/#/,"")){var s=t(this.hash),n=this.hash;if(n&&0!=s.length){var o=s.offset().top;e.preventDefault(),t(h).animate({scrollTop:o},400,function(){location.hash=n})}}})});var c=t(".jp-audio").length,u="";if(c>0){for(a=1;a<=c;a++)t(".jp-audio").eq(a-1).addClass("jp-audio"+a);function d(){setTimeout(function(){for(var e=1;e<=c;e++)t(".jp-audio"+e+" .jp-previous, .jp-audio"+e+" .jp-next").removeClass("disabled"),t(".jp-audio"+e+" .jp-playlist ul li:last-child").hasClass("jp-playlist-current")&&t(".jp-audio"+e+" .jp-next").addClass("disabled"),t(".jp-audio"+e+" .jp-playlist ul li:first-child").hasClass("jp-playlist-current")&&t(".jp-audio"+e+" .jp-previous").addClass("disabled"),u=t(".jp-audio"+e+" .jp-playlist ul li.jp-playlist-current .jp-playlist-item").html(),t(".jp-audio"+e+" .song-title").html(u)},0)}setTimeout(function(){for(var e=1;e<=c;e++)u=t(".jp-audio"+e+" .jp-playlist ul li.jp-playlist-current .jp-playlist-item").html(),t(".jp-audio"+e+" .song-title").html(u)},1e3),t(".jp-previous, .jp-next, .jp-playlist ul").click(function(){d()}),t(".jp-jplayer").on(t.jPlayer.event.ended,function(t){d()})}t(".rating span.star").hover(function(){t(".rating span.star").removeClass("on").addClass("off"),t(this).prevAll().addClass("over")},function(){t(this).removeClass("over")}),t(".rating").mouseleave(function(){t(this).parent().find(".over").removeClass("over")}),t(".rating span.star").click(function(){t(this).prevAll().removeClass("off").addClass("on"),t(this).removeClass("off").addClass("on")}),function(t){for(var e,i=["Width","Height"];e=i.pop();)!function(e,i){t.fn[e]=e in new Image?function(){return this[0][e]}:function(){var t,e,s=this[0];return"img"===s.tagName.toLowerCase()&&((t=new Image).src=s.src,e=t[i]),e}}("natural"+e,e.toLowerCase())}(jQuery);var p,f,m,g,v,b,y,_,w=t(".carousel-inner").length;for(a=1;a<=w;a++)t(".carousel-inner").eq(a-1).addClass("id"+a);function k(){setTimeout(function(){for(var e=1;e<=w;e++){p=t(".carousel-inner.id"+e+" .item").width(),f=t(".carousel-inner.id"+e+" .item").height(),m=p/f,_=t(".carousel-inner.id"+e+" .item img").length;for(var i=1;i<=_;i++)y=t(".carousel-inner.id"+e+" .item img").eq(i-1),g=y.naturalWi
1dth(),v=y.naturalHeight(),m<=g/v?(b=parseInt((f/v*g-p)/2,10),y.css("cssText","height: "+f+"px; margin-left:-"+b+"px;")):(b=parseInt((p/g*v-f)/2,10),y.css("cssText","width: "+p+"px; margin-top:-"+b+"px;"))}},1e3)}k(),t(window).resize(function(){t(".carousel-indicators li:first-child").click(),k()})}),jQuery.fn.customInput=function(){return $(this).each(function(){if($(this).is("[type=checkbox],[type=radio]")){var t=$(this),e=$("label[for="+t.attr("id")+"]");t.add(e).wrapAll('<div class="custom-'+t.attr("type")+'"></div>'),e.hover(function(){$(this).addClass("hover")},function(){$(this).removeClass("hover")}),t.bind("updateState",function(){t.is(":checked")?e.addClass("checked"):e.removeClass("checked checkedHover checkedFocus")}).trigger("updateState").click(function(){$("input[name="+$(this).attr("name")+"]").trigger("updateState")}).focus(function(){e.addClass("focus"),t.is(":checked")&&$(this).addClass("checkedFocus")}).blur(function(){e.removeClass("focus checkedFocus")})}})},jQuery(document).ready(function(){var t=jQuery,e=t(window).width(),i=t(window).height(),s=t("html");(s.hasClass("ie6")||s.hasClass("ie7"))&&t("body").empty().html("Please, Update your Browser to at least IE8"),t("[href=#]").click(function(t){t.preventDefault()}),t(".comment-list li:even , .product-list .product-item:even").addClass("even"),t(".comment-list li:odd , .product-list .product-item:odd").addClass("odd"),t(".body-wrap").css("min-height",i),t(window).resize(function(){i=t(window).height(),t(".body-wrap").css("min-height",i)}),t("body").on("click",".product-remove a",function(){t(this).parent().parent().hide()}),t("a, input, textarea").attr("hideFocus","true").css("outline","none"),t("select").hasClass("select_styled")&&cuSel({changedEl:".select_styled",visRows:8,scrollArrows:!0}),t("div,p").hasClass("input_styled")&&t(".input_styled input").customInput(),t(".menu ul").parents("li").addClass("parent"),t(".menu li").hover(function(){t(this).addClass("hover")},function(){t(this).removeClass("hover")});for(var n=t(".tabs").length,o=0,a=1;a<=n;a++)t(".tabs").eq(a-1).addClass("tab-id"+a),o=t(".tab-id"+a+" li").length,t(".tab-id"+a).addClass("bookmarks"+o);function r(t){return t.replace(/^\//,"").replace(/(index|default).[a-zA-Z]{3,4}$/,"").replace(/\/$/,"")}t(".tabs li, .payment-form .btn").click(function(){setTimeout(function(){for(var e=1;e<=n;e++){o=t(".tab-id"+e+" li").length;for(var i=1;i<=o;i++)t(".tab-id"+e).removeClass("active-bookmark"+i),t(".tab-id"+e+" li").eq(i-1).hasClass("active")&&t(".tab-id"+e).addClass("active-bookmark"+i)}},0)}),t(".toggle-link").click(function(){t(this).parents(".toggle").removeClass("collapsed"),t(this).hasClass("collapsed")||t(this).parents(".toggle").addClass("collapsed")}),t(".payment-form #billing .btn-next, .payment-form #payment .btn-prev").click(function(){t('a[href="#shipping"]').tab("show")}),t(".payment-form #shipping .btn-prev").click(function(){t('a[href="#billing"]').tab("show")}),t(".payment-form #shipping .btn-next").click(function(){t('a[href="#payment"]').tab("show")}),t("a").is("[data-rel]")&&e>600&&(t("a[data-rel]").each(function(){t(this).attr("rel",t(this).data("rel"))}),t("a[rel^='prettyPhoto']").prettyPhoto({social_tools:!1}));var l=r(location.pathname),h=function(e){for(var i=0,s=arguments.length;i<s;i++){var n=arguments[i],o=t(n);if(o.scrollTop()>0)return n;o.scrollTop(1);var a=o.scrollTop()>0;if(o.scrollTop(0),a)return n}return[]}("html","body");t("a[href*=#].anchor").each(function(){t(this).click(function(e){var i=r(this.pathname)||l;if(l==i&&(location.hostname==this.hostname||!this.hostname)&&this.hash.replace(/#/,"")){var s=t(this.hash),n=this.hash;if(n&&0!=s.length){var o=s.offset().top;e.preventDefault(),t(h).animate({scrollTop:o},400,function(){location.hash=n})}}})});var c=t(".jp-audio").length,u="";if(c>0){for(a=1;a<=c;a++)t(".jp-audio").eq(a-1).addClass("jp-audio"+a);function d(){setTimeout(function(){for(var e=1;e<=c;e++)t(".jp-audio"+e+" .jp-previous, .jp-audio"+e+" .jp-next").removeClass("disabled"),t(".jp-audio"+e+" .jp-playlist ul li:last-child").hasClass("jp-playlist-current")&&t(".jp-audio"+e+" .jp-next").addClass("disabled"),t(".jp-audio"+e+" .jp-playlist ul li:first-child").hasClass("jp-playlist-current")&&t(".jp-audio"+e+" .jp-previous").addClass("disabled"),u=t(".jp-audio"+e+" .jp-playlist ul li.jp-playlist-current .jp-playlist-item").html(),t(".jp-audio"+e+" .song-title").html(u)},0)}setTimeout(function(){for(var e=1;e<=c;e++)u=t(".jp-audio"+e+" .jp-playlist ul li.jp-playlist-current .jp-playlist-item").html(),t(".jp-audio"+e+" .song-title").html(u)},1e3),t(".jp-previous, .jp-next, .jp-playlist ul").click(function(){d()}),t(".jp-jplayer").on(t.jPlayer.event.ended,function(t){d()})}t(".rating span.star").hover(function(){t(".rating span.star").removeClass("on").addClass("off"),t(this).prevAll().addClass("over")},function(){t(this).removeClass("over")}),t(".rating").mouseleave(function(){t(this).parent().find(".over").removeClass("over")}),t(".rating span.star").click(function(){t(this).prevAll().removeClass("off").addClass("on"),t(this).removeClass("off").addClass("on")}),function(t){for(var e,i=["Width","Height"];e=i.pop();)!function(e,i){t.fn[e]=e in new Image?function(){return this[0][e]}:function(){var t,e,s=this[0];return"img"===s.tagName.toLowerCase()&&((t=new Image).src=s.src,e=t[i]),e}}("natural"+e,e.toLowerCase())}(jQuery);var p,f,m,g,v,b,y,_,w=t(".carousel-inner").length;for(a=1;a<=w;a++)t(".carousel-inner").eq(a-1).addClass("id"+a);function k(){setTimeout(function(){for(var e=1;e<=w;e++){p=t(".carousel-inner.id"+e+" .item").width(),f=t(".carousel-inner.id"+e+" .item").height(),m=p/f,_=t(".carousel-inner.id"+e+" .item img").length;for(var i=1;i<=_;i++)y=t(".carousel-inner.id"+e+" .item img").eq(i-1),g=y.naturalWi
1dth(),v=y.naturalHeight(),m<=g/v?(b=parseInt((f/v*g-p)/2,10),y.css("cssText","height: "+f+"px; margin-left:-"+b+"px;")):(b=parseInt((p/g*v-f)/2,10),y.css("cssText","width: "+p+"px; margin-top:-"+b+"px;"))}},1e3)}k(),t(window).resize(function(){t(".carousel-indicators li:first-child").click(),k()})}),function(t){t.Placeholder={settings:{color:"rgb(169,169,169)",dataName:"original-font-color"},init:function(e){e&&t.extend(t.Placeholder.settings,e);var i=function(e,i){t(e).val(i)},s=function(e){return t(e).attr("placeholder")},n=function(e){var i=function(e){return t(e).val()}(e);return 0===i.length||i==s(e)},o=function(e){i(e,s(e)),function(e){t(e).data(t.Placeholder.settings.dataName,t(e).css("color")),t(e).css("color",t.Placeholder.settings.color)}(e)},a=function(e){t(e).data(t.Placeholder.settings.dataName)&&(i(e,""),function(e){t(e).css("color",t(e).data(t.Placeholder.settings.dataName)),t(e).removeData(t.Placeholder.settings.dataName)}(e))},r=function(){n(this)&&a(this)},l=function(){n(this)&&o(this)},h=function(){n(this)&&a(this)};t("head").append('<style type="text/css" media="screen">[placeholder]:focus::-webkit-input-placeholder { color:transparent; }[placeholder]:focus:-moz-placeholder { color: transparent; }</style>');var c;return c="textarea","placeholder"in document.createElement(c)||t("textarea, input[type='text']").each(function(e,i){t(i).attr("placeholder")&&(t(i).focus(r),t(i).blur(l),t(i).bind("parentformsubmitted",h),t(i).trigger("blur"),t(i).parents("form").submit(function(){t(i).trigger("parentformsubmitted")}))}),this},cleanBeforeSubmit:function(e){return e||(e=t("form")),t(e).find("textarea, input[type='text']").trigger("parentformsubmitted"),e}}}(jQuery),function(t){function e(){var t=location.href;return hashtag=-1!==t.indexOf("#prettyPhoto")&&decodeURI(t.substring(t.indexOf("#prettyPhoto")+1,t.length)),hashtag}function i(t,e){t=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);return null==i?"":i[1]}t.prettyPhoto={version:"3.1.5"},t.fn.prettyPhoto=function(s){s=jQuery.extend({hook:"rel",animation_speed:"fast",ajaxcallback:function(){},slideshow:5e3,autoplay_slideshow:!1,opacity:.8,show_title:!0,allow_resize:!0,allow_expand:!0,default_width:500,default_height:344,counter_separator_label:"/",theme:"pp_default",horizontal_padding:20,hideflash:!1,wmode:"opaque",autoplay:!0,modal:!1,deeplinking:!0,overlay_gallery:!0,overlay_gallery_max:30,keyboard_shortcuts:!0,changepicturecallback:function(){},callback:function(){},ie6_fallback:!0,markup:'<div class="pp_pic_holder"> \t\t\t\t\t\t<div class="ppt">&nbsp;</div> \t\t\t\t\t\t<div class="pp_top"> \t\t\t\t\t\t\t<div class="pp_left"></div> \t\t\t\t\t\t\t<div class="pp_middle"></div> \t\t\t\t\t\t\t<div class="pp_right"></div> \t\t\t\t\t\t</div> \t\t\t\t\t\t<div class="pp_content_container"> \t\t\t\t\t\t\t<div class="pp_left"> \t\t\t\t\t\t\t<div class="pp_right"> \t\t\t\t\t\t\t\t<div class="pp_content"> \t\t\t\t\t\t\t\t\t<div class="pp_loaderIcon"></div> \t\t\t\t\t\t\t\t\t<div class="pp_fade"> \t\t\t\t\t\t\t\t\t\t<a href="#" class="pp_expand" title="Expand the image">Expand</a> \t\t\t\t\t\t\t\t\t\t<div class="pp_hoverContainer"> \t\t\t\t\t\t\t\t\t\t\t<a class="pp_next" href="#">next</a> \t\t\t\t\t\t\t\t\t\t\t<a class="pp_previous" href="#">previous</a> \t\t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t\t\t<div id="pp_full_res"></div> \t\t\t\t\t\t\t\t\t\t<div class="pp_details"> \t\t\t\t\t\t\t\t\t\t\t<div class="pp_nav"> \t\t\t\t\t\t\t\t\t\t\t\t<a href="#" class="pp_arrow_previous">Previous</a> \t\t\t\t\t\t\t\t\t\t\t\t<p class="currentTextHolder">0/0</p> \t\t\t\t\t\t\t\t\t\t\t\t<a href="#" class="pp_arrow_next">Next</a> \t\t\t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t\t\t\t<p class="pp_description"></p> \t\t\t\t\t\t\t\t\t\t\t<div class="pp_social">{pp_social}</div> \t\t\t\t\t\t\t\t\t\t\t<a class="pp_close" href="#">Close</a> \t\t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t</div> \t\t\t\t\t\t</div> \t\t\t\t\t\t<div class="pp_bottom"> \t\t\t\t\t\t\t<div class="pp_left"></div> \t\t\t\t\t\t\t<div class="pp_middle"></div> \t\t\t\t\t\t\t<div class="pp_right"></div> \t\t\t\t\t\t</div> \t\t\t\t\t</div> \t\t\t\t\t<div class="pp_overlay"></div>',gallery_markup:'<div class="pp_gallery"> \t\t\t\t\t\t\t\t<a href="#" class="pp_arrow_previous">Previous</a> \t\t\t\t\t\t\t\t<div> \t\t\t\t\t\t\t\t\t<ul> \t\t\t\t\t\t\t\t\t\t{gallery} \t\t\t\t\t\t\t\t\t</ul> \t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t<a href="#" class="pp_arrow_next">Next</a> \t\t\t\t\t\t\t</div>',image_markup:'<img id="fullResImage" src="{path}" />',flash_markup:'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}"><param name="wmode" value="{wmode}" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{path}" /><embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"></embed></object>',quicktime_markup:'<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}"><param name="src" value="{path}"><param name="autoplay" value="{autoplay}"><param name="type" value="video/quicktime"><embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>',iframe_markup:'<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"></iframe>',inline_markup:'<div class="pp_inline">{content}</div>',custom_markup:"",social_tools:'<div class="twitter"><a href="http://twitter.com/share" class="twitter-share-button" data-count="none">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"><\/script></div><div class="facebook"><iframe src="//www.facebook.com/plugins/like.php?locale=en_US&href={location_href}&amp;layout=button_count&amp;show_faces=true&amp;width=500&amp;action=like&amp;font&amp;colorscheme=light&amp;height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:23px;" allowTransparency="true"></iframe></div>'},s);var n,o,a,r,l,h,c,u=this,d=!1,p=t(window).height(),f=t(window).width();function m(){t(".pp_loaderIcon").hide(),projectedTop=scroll_pos.scrollTop+(p/2-n.containerHeight/2),projectedTop<0&&(projectedTop=0),$ppt.fadeTo(settings.animation_speed,1),$pp_pic_holder.find(".pp_content").animate({height:n.contentHeight,width:n.contentWidth},settings.animation_speed),$pp_pic_holder.animate({top:projectedTop,left
1:f/2-n.containerWidth/2<0?0:f/2-n.containerWidth/2,width:n.containerWidth},settings.animation_speed,function(){$pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(n.height).width(n.width),$pp_pic_holder.find(".pp_fade").fadeIn(settings.animation_speed),isSet&&"image"==y(pp_images[set_position])?$pp_pic_holder.find(".pp_hoverContainer").show():$pp_pic_holder.find(".pp_hoverContainer").hide(),settings.allow_expand&&(n.resized?t("a.pp_expand,a.pp_contract").show():t("a.pp_expand").hide()),!settings.autoplay_slideshow||c||o||t.prettyPhoto.startSlideshow(),settings.changepicturecallback(),o=!0}),isSet&&settings.overlay_gallery&&"image"==y(pp_images[set_position])?(itemWidth=57,navWidth="facebook"==settings.theme||"pp_default"==settings.theme?50:30,itemsPerPage=Math.floor((n.containerWidth-100-navWidth)/itemWidth),itemsPerPage=itemsPerPage<pp_images.length?itemsPerPage:pp_images.length,totalPage=Math.ceil(pp_images.length/itemsPerPage)-1,0==totalPage?(navWidth=0,$pp_gallery.find(".pp_arrow_next,.pp_arrow_previous").hide()):$pp_gallery.find(".pp_arrow_next,.pp_arrow_previous").show(),galleryWidth=itemsPerPage*itemWidth,fullGalleryWidth=pp_images.length*itemWidth,$pp_gallery.css("margin-left",-(galleryWidth/2+navWidth/2)).find("div:first").width(galleryWidth+5).find("ul").width(fullGalleryWidth).find("li.selected").removeClass("selected"),goToPage=Math.floor(set_position/itemsPerPage)<totalPage?Math.floor(set_position/itemsPerPage):totalPage,t.prettyPhoto.changeGalleryPage(goToPage),$pp_gallery_li.filter(":eq("+set_position+")").addClass("selected")):$pp_pic_holder.find(".pp_content").unbind("mouseenter mouseleave"),s.ajaxcallback()}function g(e){$pp_pic_holder.find("#pp_full_res object,#pp_full_res embed").css("visibility","hidden"),$pp_pic_holder.find(".pp_fade").fadeOut(settings.animation_speed,function(){t(".pp_loaderIcon").show(),e()})}function v(t,e){if(resized=!1,b(t,e),imageWidth=t,imageHeight=e,(h>f||l>p)&&doresize&&settings.allow_resize&&!d){for(resized=!0,fitting=!1;!fitting;)h>f?(imageWidth=f-200,imageHeight=e/t*imageWidth):l>p?(imageHeight=p-200,imageWidth=t/e*imageHeight):fitting=!0,l=imageHeight,h=imageWidth;(h>f||l>p)&&v(h,l),b(imageWidth,imageHeight)}return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(l),containerWidth:Math.floor(h)+2*settings.horizontal_padding,contentHeight:Math.floor(a),contentWidth:Math.floor(r),resized:resized}}function b(e,i){e=parseFloat(e),i=parseFloat(i),$pp_details=$pp_pic_holder.find(".pp_details"),$pp_details.width(e),detailsHeight=parseFloat($pp_details.css("marginTop"))+parseFloat($pp_details.css("marginBottom")),$pp_details=$pp_details.clone().addClass(settings.theme).width(e).appendTo(t("body")).css({position:"absolute",top:-1e4}),detailsHeight+=$pp_details.height(),detailsHeight=detailsHeight<=34?36:detailsHeight,$pp_details.remove(),$pp_title=$pp_pic_holder.find(".ppt"),$pp_title.width(e),titleHeight=parseFloat($pp_title.css("marginTop"))+parseFloat($pp_title.css("marginBottom")),$pp_title=$pp_title.clone().appendTo(t("body")).css({position:"absolute",top:-1e4}),titleHeight+=$pp_title.height(),$pp_title.remove(),a=i+detailsHeight,r=e,l=a+titleHeight+$pp_pic_holder.find(".pp_top").height()+$pp_pic_holder.find(".pp_bottom").height(),h=e}function y(t){return t.match(/youtube\.com\/watch/i)||t.match(/youtu\.be/i)?"youtube":t.match(/vimeo\.com/i)?"vimeo":t.match(/\b.mov\b/i)?"quicktime":t.match(/\b.swf\b/i)?"flash":t.match(/\biframe=true\b/i)?"
1iframe":t.match(/\bajax=true\b/i)?"ajax":t.match(/\bcustom=true\b/i)?"custom":"#"==t.substr(0,1)?"inline":"image"}function _(){if(doresize&&"undefined"!=typeof $pp_pic_holder){if(scroll_pos=w(),contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width(),projectedTop=p/2+scroll_pos.scrollTop-contentHeight/2,projectedTop<0&&(projectedTop=0),contentHeight>p)return;$pp_pic_holder.css({top:projectedTop,left:f/2+scroll_pos.scrollLeft-contentwidth/2})}}function w(){return self.pageYOffset?{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset}:document.documentElement&&document.documentElement.scrollTop?{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft}:document.body?{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft}:void 0}function k(e){if(settings.social_tools&&(facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href))),settings.markup=settings.markup.replace("{pp_social}",""),t("body").append(settings.markup),$pp_pic_holder=t(".pp_pic_holder"),$ppt=t(".ppt"),$pp_overlay=t("div.pp_overlay"),isSet&&settings.overlay_gallery){currentGalleryPage=0,toInject="";for(var i=0;i<pp_images.length;i++)pp_images[i].match(/\b(jpg|jpeg|png|gif)\b/gi)?(classname="",img_src=pp_images[i]):(classname="default",img_src=""),toInject+="<li class='"+classname+"'><a href='#'><img src='"+img_src+"' width='50' alt='' /></a></li>";toInject=settings.gallery_markup.replace(/{gallery}/g,toInject),$pp_pic_holder.find("#pp_full_res").after(toInject),$pp_gallery=t(".pp_pic_holder .pp_gallery"),$pp_gallery_li=$pp_gallery.find("li"),$pp_gallery.find(".pp_arrow_next").click(function(){return t.prettyPhoto.changeGalleryPage("next"),t.prettyPhoto.stopSlideshow(),!1}),$pp_gallery.find(".pp_arrow_previous").click(function(){return t.prettyPhoto.changeGalleryPage("previous"),t.prettyPhoto.stopSlideshow(),!1}),$pp_pic_holder.find(".pp_content").hover(function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeIn()},function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeOut()}),itemWidth=57,$pp_gallery_li.each(function(e){t(this).find("a").click(function(){return t.prettyPhoto.changePage(e),t.prettyPhoto.stopSlideshow(),!1})})}settings.slideshow&&($pp_pic_holder.find(".pp_nav").prepend('<a href="#" class="pp_play">Play</a>'),$pp_pic_holder.find(".pp_nav .pp_play").click(function(){return t.prettyPhoto.startSlideshow(),!1})),$pp_pic_holder.attr("class","pp_pic_holder "+settings.theme),$pp_overlay.css({opacity:0,height:t(document).height(),width:t(window).width()}).bind("click",function(){settings.modal||t.prettyPhoto.close()}),t("a.pp_close").bind("click",function(){return t.prettyPhoto.close(),!1}),settings.allow_expand&&t("a.pp_expand").bind("click",function(e){return t(this).hasClass("pp_expand")?(t(this).removeClass("pp_expand").addClass("pp_contract"),doresize=!1):(t(this).removeClass("pp_contract").addClass("pp_expand"),doresize=!0),g(function(){t.prettyPhoto.open()}),!1}),$pp_pic_holder.find(".pp_previous, .pp_nav .pp_arrow_previous").bind("click",function(){return t.prettyPhoto.changePage("previous"),t.prettyPhoto.stopSlideshow(),!1}),$pp_pic_holder.find(".pp_next, .pp_nav .pp_arrow_next").bind("click",function(){return t.prettyPhoto.changePage("next"),t.prettyPhoto.stopSlideshow(),!1}),_()}return doresize=!0,scroll_pos=w(),t(window).unbind("resize.prettyphoto").bind("resize.prettyphoto",function(){_(),p=t(window).height(),f=t(window).width(),"undefined"!=typeof $pp_overlay&&$pp_overlay.height(t(document).height()).width(f)}),s.keyboard_shortcuts&&t(document).unbind("keydown.prettyphoto").bind("keydown.prettyphoto",function(e){if("undefined"!=typeof $pp_pic_holder&&$pp_pic_holder.is(":visible"))switch(e.keyCode){case 37:t.prettyPhoto.changePage("previous"),e.preventDefault();break;case 39:t.prettyPhoto.changePage("next"),e.preventDefault();break;case 27:settings.modal||t.prettyPhoto.close(),e.preventDefault()}}),t.prettyPhoto.initialize=function(){return settings=s,"pp_default"==settings.theme&&(settings.horizontal_padding=16),theRel=t(this).attr(settings.hook),galleryRegExp=/\[(?:.*)\]/,isSet=!!galleryRegExp.exec(theRel),pp_images=isSet?jQuery.map(u,function(e,i){if(-1!=t(e).attr(settings.hook).indexOf(theRel))return t(e).attr("href")}):t.makeArray(t(this).attr("href")),pp_titles=isSet?jQuery.map(u,function(e,i){if(-1!=t(e).attr(settings.hook).indexOf(theRel))return t(e).find("img").attr("alt")?t(e).find("img").attr("alt"):""}):t.makeArray(t(this).find("img").attr("alt")),pp_descriptions=isSet?jQuery.map(u,function(e,i){if(-1!=t(e).attr(settings.hook).indexOf(theRel))return t(e).attr("title")?t(e).attr("title"):""}):t.makeArray(t(this).attr("title")),pp_images.length>
1settings.overlay_gallery_max&&(settings.overlay_gallery=!1),set_position=jQuery.inArray(t(this).attr("href"),pp_images),rel_index=isSet?set_position:t("a["+settings.hook+"^='"+theRel+"']").index(t(this)),k(this),settings.allow_resize&&t(window).bind("scroll.prettyphoto",function(){_()}),t.prettyPhoto.open(),!1},t.prettyPhoto.open=function(e){return"undefined"==typeof settings&&(settings=s,pp_images=t.makeArray(arguments[0]),pp_titles=arguments[1]?t.makeArray(arguments[1]):t.makeArray(""),pp_descriptions=arguments[2]?t.makeArray(arguments[2]):t.makeArray(""),isSet=pp_images.length>1,set_position=arguments[3]?arguments[3]:0,k(e.target)),settings.hideflash&&t("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","hidden"),t(pp_images).size()>1?t(".pp_nav").show():t(".pp_nav").hide(),t(".pp_loaderIcon").show(),settings.deeplinking&&function(){if("undefined"==typeof theRel)return;location.hash=theRel+"/"+rel_index+"/"}(),settings.social_tools&&(facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href)),$pp_pic_holder.find(".pp_social").html(facebook_like_link)),$ppt.is(":hidden")&&$ppt.css("opacity",0).show(),$pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity),$pp_pic_holder.find(".currentTextHolder").text(set_position+1+settings.counter_separator_label+t(pp_images).size()),void 0!==pp_descriptions[set_position]&&""!=pp_descriptions[set_position]?$pp_pic_holder.find(".pp_description").show().html(unescape(pp_descriptions[set_position])):$pp_pic_holder.find(".pp_description").hide(),movie_width=parseFloat(i("width",pp_images[set_position]))?i("width",pp_images[set_position]):settings.default_width.toString(),movie_height=parseFloat(i("height",pp_images[set_position]))?i("height",pp_images[set_position]):settings.default_height.toString(),d=!1,-1!=movie_height.indexOf("%")&&(movie_height=parseFloat(t(window).height()*parseFloat(movie_height)/100-150),d=!0),-1!=movie_width.indexOf("%")&&(movie_width=parseFloat(t(window).width()*parseFloat(movie_width)/100-150),d=!0),$pp_pic_holder.fadeIn(function(){switch(settings.show_title&&""!=pp_titles[set_position]&&void 0!==pp_titles[set_position]?$ppt.html(unescape(pp_titles[set_position])):$ppt.html("&nbsp;"),imgPreloader="",skipInjection=!1,y(pp_images[set_position])){case"image":imgPreloader=new Image,nextImage=new Image,isSet&&set_position<t(pp_images).size()-1&&(nextImage.src=pp_images[set_position+1]),prevImage=new Image,isSet&&pp_images[set_position-1]&&(prevImage.src=pp_images[set_position-1]),$pp_pic_holder.find("#pp_full_res")[0].innerHTML=settings.image_markup.replace(/{path}/g,pp_images[set_position]),imgPreloader.onload=function(){n=v(imgPreloader.width,imgPreloader.height),m()},imgPreloader.onerror=function(){alert("Image cannot be loaded. Make sure the path is correct and image exist."),t.prettyPhoto.close()},imgPreloader.src=pp_images[set_position];break;case"youtube":n=v(movie_width,movie_height),movie_id=i("v",pp_images[set_position]),""==movie_id&&(movie_id=pp_images[set_position].split("youtu.be/"),movie_id=movie_id[1],movie_id.indexOf("?")>0&&(movie_id=movie_id.substr(0,movie_id.indexOf("?"))),movie_id.indexOf("&")>0&&(movie_id=movie_id.substr(0,movie_id.indexOf("&")))),movie="http://www.youtube.com/embed/"+movie_id,i("rel",pp_images[set_position])?movie+="?rel="+i("rel",pp_images[set_position]):movie+="?rel=1",settings.autoplay&&(movie+="&autoplay=1"),toInject=settings.iframe_markup.replace(/{width}/g,n.width).replace(/{height}/g,n.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case"vimeo":n=v(movie_width,movie_height),movie_id=pp_images[set_position];var e=movie_id.match(/http(s?):\/\/(www\.)?vimeo.com\/(\d+)/);movie="http://player.vimeo.com/video/"+e[3]+"?title=0&amp;byline=0&amp;portrait=0",settings.autoplay&&(movie+="&autoplay=1;"),vimeo_width=n.width+"/embed/?moog_width="+n.width,toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,n.height).replace(/{path}/g,movie);break;case"quicktime":(n=v(movie_width,movie_height)).height+=15,n.contentHeight+=15,n.containerHeight+=15,toInject=settings.quicktime_markup.replace(/{width}/g,n.width).replace(/{height}/g,n.height).replace(/{wmode}/g,settings.wmode).replace(/{path}
1/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case"flash":n=v(movie_width,movie_height),flash_vars=pp_images[set_position],flash_vars=flash_vars.substring(pp_images[set_position].indexOf("flashvars")+10,pp_images[set_position].length),filename=pp_images[set_position],filename=filename.substring(0,filename.indexOf("?")),toInject=settings.flash_markup.replace(/{width}/g,n.width).replace(/{height}/g,n.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+"?"+flash_vars);break;case"iframe":n=v(movie_width,movie_height),frame_url=pp_images[set_position],frame_url=frame_url.substr(0,frame_url.indexOf("iframe")-1),toInject=settings.iframe_markup.replace(/{width}/g,n.width).replace(/{height}/g,n.height).replace(/{path}/g,frame_url);break;case"ajax":doresize=!1,n=v(movie_width,movie_height),doresize=!0,skipInjection=!0,t.get(pp_images[set_position],function(t){toInject=settings.inline_markup.replace(/{content}/g,t),$pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject,m()});break;case"custom":n=v(movie_width,movie_height),toInject=settings.custom_markup;break;case"inline":myClone=t(pp_images[set_position]).clone().append('<br clear="all" />').css({width:settings.default_width}).wrapInner('<div id="pp_full_res"><div class="pp_inline"></div></div>').appendTo(t("body")).show(),doresize=!1,n=v(t(myClone).width(),t(myClone).height()),doresize=!0,t(myClone).remove(),toInject=settings.inline_markup.replace(/{content}/g,t(pp_images[set_position]).html())}imgPreloader||skipInjection||($pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject,m())}),!1},t.prettyPhoto.changePage=function(e){currentGalleryPage=0,"previous"==e?(set_position--,set_position<0&&(set_position=t(pp_images).size()-1)):"next"==e?(set_position++,set_position>t(pp_images).size()-1&&(set_position=0)):set_position=e,rel_index=set_position,doresize||(doresize=!0),settings.allow_expand&&t(".pp_contract").removeClass("pp_contract").addClass("pp_expand"),g(function(){t.prettyPhoto.open()})},t.prettyPhoto.changeGalleryPage=function(t){"next"==t?(currentGalleryPage++,currentGalleryPage>totalPage&&(currentGalleryPage=0)):"previous"==t?(currentGalleryPage--,currentGalleryPage<0&&(currentGalleryPage=totalPage)):currentGalleryPage=t,slide_speed="next"==t||"previous"==t?settings.animation_speed:0,slide_to=currentGalleryPage*(itemsPerPage*itemWidth),$pp_gallery.find("ul").animate({left:-slide_to},slide_speed)},t.prettyPhoto.startSlideshow=function(){void 0===c?($pp_pic_holder.find(".pp_play").unbind("click").removeClass("pp_play").addClass("pp_pause").click(function(){return t.prettyPhoto.stopSlideshow(),!1}),c=setInterval(t.prettyPhoto.startSlideshow,settings.slideshow)):t.prettyPhoto.changePage("next")},t.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find(".pp_pause").unbind("click").removeClass("pp_pause").addClass("pp_play").click(function(){return t.prettyPhoto.startSlideshow(),!1}),clearInterval(c),c=void 0},t.prettyPhoto.close=function(){$pp_overlay.is(":animated")||(t.prettyPhoto.stopSlideshow(),$pp_pic_holder.stop().find("object,embed").css("visibility","hidden"),t("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(settings.animation_speed,function(){t(this).remove()}),$pp_overlay.fadeOut(settings.animation_speed,function(){settings.hideflash&&t("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","visible"),t(this).remove(),t(window).unbind("scroll.prettyphoto"),-1!==location.href.indexOf("#prettyPhoto")&&(location.hash="prettyPhoto"),settings.callback(),doresize=!0,o=!1,delete settings}))},!pp_alreadyInitialized&&e()&&(pp_alreadyInitialized=!0,hashIndex=e(),hashRel=hashIndex,hashIndex=hashIndex.substring(hashIndex.indexOf("/")+1,hashIndex.length-1),hashRel=hashRel.substring(0,hashRel.indexOf("/")),setTimeout(function(){t("a["+s.hook+"^='"+hashRel+"']:eq("+hashIndex+")").trigger("click")},50)),this.unbind("click.prettyphoto").bind("click.prettyphoto",t.prettyPhoto.initialize)}}(jQuery);var pp_alreadyInitialized=!1;!function(){var b=void 0,f=!0,h=null,l=!1,t;function m(){return function(){}}function p(t){return function(){return this[t]}}function s(t){return function(){return t}}function u(t,e,i){if("string"==typeof t){if(0===t.indexOf("#")&&(t=t.
1slice(1)),u.xa[t])return u.xa[t];t=u.w(t)}if(!t||!t.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");return t.player||new u.s(t,e,i)}document.createElement("video"),document.createElement("audio"),document.createElement("track");var v=u;window.Td=window.Ud=u,u.Tb="4.3",u.Fc="https:"==document.location.protocol?"https://":"http://",u.options={techOrder:["html5","flash"],html5:{},flash:{},width:300,height:150,defaultVolume:0,children:{mediaLoader:{},posterImage:{},textTrackDisplay:{},loadingSpinner:{},bigPlayButton:{},controlBar:{}},notSupportedMessage:'Sorry, no compatible source and playback technology were found for this video. Try using another browser like <a href="http://bit.ly/ccMUEC">Chrome</a> or download the latest <a href="http://adobe.ly/mwfN1">Adobe Flash Player</a>.'},"GENERATED_CDN_VSN"!==u.Tb&&(v.options.flash.swf=u.Fc+"vjs.zencdn.net/"+u.Tb+"/video-js.swf"),u.xa={},u.la=u.CoreObject=m(),u.la.extend=function(t){var e,i;for(var s in e=(t=t||{}).init||t.i||this.prototype.init||this.prototype.i||m(),((i=function(){e.apply(this,arguments)}).prototype=u.k.create(this.prototype)).constructor=i,i.extend=u.la.extend,i.create=u.la.create,t)t.hasOwnProperty(s)&&(i.prototype[s]=t[s]);return i},u.la.create=function(){var t=u.k.create(this.prototype);return this.apply(t,arguments),t},u.d=function(t,e,i){var s=u.getData(t);s.z||(s.z={}),s.z[e]||(s.z[e]=[]),i.t||(i.t=u.t++),s.z[e].push(i),s.W||(s.disabled=l,s.W=function(e){if(!s.disabled&&(e=u.kc(e),i=s.z[e.type]))for(var i,n=0,o=(i=i.slice(0)).length;n<o&&!e.pc();n++)i[n].call(t,e)}),1==s.z[e].length&&(document.addEventListener?t.addEventListener(e,s.W,l):document.attachEvent&&t.attachEvent("on"+e,s.W))},u.o=function(t,e,i){if(u.oc(t)){var s=u.getData(t);if(s.z)if(e){var n=s.z[e];if(n){if(i){if(i.t)for(s=0;s<n.length;s++)n[s].t===i.t&&n.splice(s--,1)}else s.z[e]=[];u.gc(t,e)}}else for(n in s.z)e=n,s.z[e]=[],u.gc(t,e)}},u.gc=function(t,e){var i=u.getData(t);0===i.z[e].length&&(delete i.z[e],document.removeEventListener?t.removeEventListener(e,i.W,l):document.detachEvent&&t.detachEvent("on"+e,i.W)),u.Bb(i.z)&&(delete i.z,delete i.W,delete i.disabled),u.Bb(i)&&u.vc(t)},u.kc=function(t){function e(){return f}function i(){return l}if(!t||!t.Cb){var s=t||window.event;for(var n in t={},s)"layerX"!==n&&"layerY"!==n&&(t[n]=s[n]);if(t.target||(t.target=t.srcElement||document),t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement,t.preventDefault=function(){s.preventDefault&&s.preventDefault(),t.returnValue=l,t.Ab=e},t.Ab=i,t.stopPropagation=function(){s.stopPropagation&&s.stopPropagation(),t.cancelBubble=f,t.Cb=e},t.Cb=i,t.stopImmediatePropagation=function(){s.stopImmediatePropagation&&s.stopImmediatePropagation(),t.pc=e,t.stopPropagation()},t.pc=i,t.clientX!=h){n=document.documentElement;var o=document.body;t.pageX=t.clientX+(n&&n.scrollLeft||o&&o.scrollLeft||0)-(n&&n.clientLeft||o&&o.clientLeft||0),t.pageY=t.clientY+(n&&n.scrollTop||o&&o.scrollTop||0)-(n&&n.clientTop||o&&o.clientTop||0)}t.which=t.charCode||t.keyCode,t.button!=h&&(t.button=1&t.button?0:4&t.button?1:2&t.button?2:0)}return t},u.j=function(t,e){var i=u.oc(t)?u.getData(t):{},s=t.parentNode||t.ownerDocument;return"string"==typeof e&&(e={type:e,target:t}),e=u.kc(e),i.W&&i.W.call(t,e),s&&!e.Cb()&&e.bubbles!==l?u.j(s,e):s||e.Ab()||(i=u.getData(e.target),!e.target[e.type])||(i.disabled=f,"function"==typeof e.target[e.type]&&e.target[e.type](),i.disabled=l),!e.Ab()},u.U=function(t,e,i){function s(){u.o(t,e,s),i.apply(this,arguments)}s.t=i.t=i.t||u.t++,u.d(t,e,s)};var w=Object.prototype.hasOwnProperty;u.e=function(t,e){var i,s;for(s in i=document.createElement(t||"div"),e)w.call(e,s)&&(-1!==s.indexOf("aria-")||"role"==s?i.setAttribute(s,e[s]):i[s]=e[s]);return i},u.$=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},u.k={},u.k.create=Object.create||function(t){function e(){}return e.prototype=t,new e},u.k.ua=function(t,e,i){for(var s in t)w.call(t,s)&&e.call(i||this,s,t[s])},u.k.B=function(t,e){if(!e)return t;for(var i in e)w.call(e,i)&&(t[i]=e[i]);return t},u.k.ic=function(t,e){var i,s,n;for(i in t=u.k.copy(t),e)w.call(e,i)&&(s=t[i],n=e[i],t[i]=u.k.qc(s)&&u.k.qc(n)?u.k.ic(s,n):e[i]);return t},u.k.copy=function(t){return u.k.B({},t)},u.k.qc=function(t){return!!t&&"object"==typeof t&&"[object Object]"===t.toString()&&t.constructor===Object}
1,u.bind=function(t,e,i){function s(){return e.apply(t,arguments)}return e.t||(e.t=u.t++),s.t=i?i+"_"+e.t:e.t,s},u.ra={},u.t=1,u.expando="vdata"+(new Date).getTime(),u.getData=function(t){var e=t[u.expando];return e||(e=t[u.expando]=u.t++,u.ra[e]={}),u.ra[e]},u.oc=function(t){return!(!(t=t[u.expando])||u.Bb(u.ra[t]))},u.vc=function(t){var e=t[u.expando];if(e){delete u.ra[e];try{delete t[u.expando]}catch(e){t.removeAttribute?t.removeAttribute(u.expando):t[u.expando]=h}}},u.Bb=function(t){for(var e in t)if(t[e]!==h)return l;return f},u.n=function(t,e){-1==(" "+t.className+" ").indexOf(" "+e+" ")&&(t.className=""===t.className?e:t.className+" "+e)},u.u=function(t,e){var i,s;if(-1!=t.className.indexOf(e)){for(s=(i=t.className.split(" ")).length-1;0<=s;s--)i[s]===e&&i.splice(s,1);t.className=i.join(" ")}},u.na=u.e("video"),u.F=navigator.userAgent,u.Mc=/iPhone/i.test(u.F),u.Lc=/iPad/i.test(u.F),u.Nc=/iPod/i.test(u.F),u.Kc=u.Mc||u.Lc||u.Nc;var aa=u,x,y=u.F.match(/OS (\d+)_/i);x=y&&y[1]?y[1]:b,aa.Fd=x,u.Ic=/Android/i.test(u.F);var ba=u,z,A=u.F.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i),B,C,N,O,P;function D(t){t.u("vjs-lock-showing")}function E(t,e,i,s){return i!==b?(t.a.style[e]=-1!==(""+i).indexOf("%")||-1!==(""+i).indexOf("px")?i:"auto"===i?"":i+"px",s||t.j("resize"),t):t.a?-1!==(s=(i=t.a.style[e]).indexOf("px"))?parseInt(i.slice(0,s),10):parseInt(t.a["offset"+u.$(e)],10):0}function F(t,e){var i,s,n,o;return i=t.a,s=u.ad(i),o=n=i.offsetWidth,i=t.handle,t.g.Cd?(o=s.top,s=e.changedTouches?e.changedTouches[0].pageY:e.pageY,i&&(o+=(i=i.w().offsetHeight)/2,n-=i),Math.max(0,Math.min(1,(o-s+n)/n))):(n=s.left,s=e.changedTouches?e.changedTouches[0].pageX:e.pageX,i&&(n+=(i=i.w().offsetWidth)/2,o-=i),Math.max(0,Math.min(1,(s-n)/o)))}function ca(t,e){t.Z(e),e.d("click",u.bind(t,function(){D(this)}))}function H(t){t.pa=f,t.wa.n("vjs-lock-showing"),t.a.setAttribute("aria-pressed",f),t.I&&0<t.I.length&&t.I[0].w().focus()}function G(t){t.pa=l,D(t.wa),t.a.setAttribute("aria-pressed",l)}function da(t){var e,i,s,n,o={sources:[],tracks:[]};if(u.k.B(o,u.xb(t)),t.hasChildNodes())for(s=0,n=(t=t.childNodes).length;s<n;s++)"source"===(i=(e=t[s]).nodeName.toLowerCase())?o.sources.push(u.xb(e)):"track"===i&&o.tracks.push(u.xb(e));return o}function I(t,e,i){t.h?(t.aa=l,t.h.D(),t.Eb&&(t.Eb=l,clearInterval(t.Ra)),t.Fb&&J(t),t.h=l):"Html5"!==e&&t.M&&(u.l.jc(t.M),t.M=h),t.ia=e,t.aa=l;var s=u.k.B({source:i,parentEl:t.a},t.g[e.toLowerCase()]);i&&(i.src==t.v.src&&0<t.v.currentTime&&(s.startTime=t.v.currentTime),t.v.src=i.src),t.h=new window.videojs[e](t,s),t.h.L(function(){if(this.b.Ua(),!this.m.progressEvents){var t=this.b;t.Eb=f,t.Ra=setInterval(u.bind(t,function(){this.v.lb<this.buffered().end(0)?this.j("progress"):1==this.Ja()&&(clearInterval(this.Ra),this.j("progress"))}),500),t.h.U("progress",function(){this.m.progressEvents=f;var t=this.b;t.Eb=l,clearInterval(t.Ra)})}this.m.timeupdateEvents||((t=this.b).Fb=f,t.d("play",t.Cc),t.d("pause",t.za),t.h.U("timeupdate",function(){this.m.timeupdateEvents=f,J(this.b)}))})}function J(t){t.Fb=l,t.za(),t.o("play",t.Cc),t.o("pause",t.za)}function L(t,e,i){if(t.h&&!t.h.aa)t.h.L(function(){this[e](i)});else try{t.h[e](i)}catch(t){throw u.log(t),t}}function K(t,e){if(t.h&&t.h.aa)try{return t.h[e]()}catch(i){throw t.h[e]===b?u.log("Video.js: "+e+" method not defined for "+t.ia+" playback technology.",i):"TypeError"==i.name?(u.log("Video.js: "+e+" unavailable on "+t.ia+" playback technology element.",i),t.h.aa=l):u.log(i),i}}function M(t){t.cd=l,u.o(document,"keydown",t.lc),document.documentElement.style.overflow=t.Yc,u.u(document.body,"vjs-full-window"),t.j("exitFullWindow")}function ea(){var t=u.media.Va[i];return function(){throw Error('The "'+t+"\" method is not available on the playback technology's API")}}A?(B=A[1]&&parseFloat(A[1]),C=A[2]&&parseFloat(A[2]),z=B&&C?parseFloat(A[1]+"."+A[2]):B||h):z=h,ba.Gc=z,u.Oc=u.Ic&&/webkit/i.test(u.F)&&2.3>u.Gc,u.Jc=/Firefox/i.test(u.F),u.Gd=/Chrome/i.test(u.F),u.ac=!!("ontouchstart"in window||window.Hc&&document instanceof window.Hc),u.xb=function(t){var e,i,s,n;if(e={},t&&t.attributes&&0<t.attributes.length)for(var o=(i=t.attributes).length-1;0<=o;o--)s=i[o].name,n=i[o].value,"boolean"!=typeof t[s]&&-1===",auto
1play,controls,loop,muted,default,".indexOf(","+s+",")||(n=n!==h?f:l),e[s]=n;return e},u.Kd=function(t,e){var i="";return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(t,"").getPropertyValue(e):t.currentStyle&&(i=t["client"+e.substr(0,1).toUpperCase()+e.substr(1)]+"px"),i},u.zb=function(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)},u.Pb={},u.w=function(t){return 0===t.indexOf("#")&&(t=t.slice(1)),document.getElementById(t)},u.La=function(t,e){e=e||t;var i=Math.floor(t%60),s=Math.floor(t/60%60),n=Math.floor(t/3600),o=Math.floor(e/60%60),a=Math.floor(e/3600);return(isNaN(t)||1/0===t)&&(n=s=i="-"),(n=0<n||0<a?n+":":"")+(((n||10<=o)&&10>s?"0"+s:s)+":")+(10>i?"0"+i:i)},u.Tc=function(){document.body.focus(),document.onselectstart=s(l)},u.Bd=function(){document.onselectstart=s(f)},u.trim=function(t){return(t+"").replace(/^\s+|\s+$/g,"")},u.round=function(t,e){return e||(e=0),Math.round(t*Math.pow(10,e))/Math.pow(10,e)},u.tb=function(t,e){return{length:1,start:function(){return t},end:function(){return e}}},u.get=function(t,e,i){var s,n;"undefined"==typeof XMLHttpRequest&&(window.XMLHttpRequest=function(){try{return new window.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(t){}try{return new window.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(t){}try{return new window.ActiveXObject("Msxml2.XMLHTTP")}catch(t){}throw Error("This browser does not support XMLHttpRequest.")}),n=new XMLHttpRequest;try{n.open("GET",t)}catch(t){i(t)}s=0===t.indexOf("file:")||0===window.location.href.indexOf("file:")&&-1===t.indexOf("http"),n.onreadystatechange=function(){4===n.readyState&&(200===n.status||s&&0===n.status?e(n.responseText):i&&i())};try{n.send()}catch(t){i&&i(t)}},u.td=function(t){try{var e=window.localStorage||l;e&&(e.volume=t)}catch(t){22==t.code||1014==t.code?u.log("LocalStorage Full (VideoJS)",t):18==t.code?u.log("LocalStorage not allowed (VideoJS)",t):u.log("LocalStorage Error (VideoJS)",t)}},u.mc=function(t){return t.match(/^https?:\/\//)||(t=u.e("div",{innerHTML:'<a href="'+t+'">x</a>'}).firstChild.href),t},u.log=function(){u.log.history=u.log.history||[],u.log.history.push(arguments),window.console&&window.console.log(Array.prototype.slice.call(arguments))},u.ad=function(t){var e,i;return t.getBoundingClientRect&&t.parentNode&&(e=t.getBoundingClientRect()),e?(t=document.documentElement,i=document.body,{left:e.left+(window.pageXOffset||i.scrollLeft)-(t.clientLeft||i.clientLeft||0),top:e.top+(window.pageYOffset||i.scrollTop)-(t.clientTop||i.clientTop||0)}):{left:0,top:0}},u.c=u.la.extend({i:function(t,e,i){if(this.b=t,this.g=u.k.copy(this.g),e=this.options(e),this.Q=e.id||(e.el&&e.el.id?e.el.id:t.id()+"_component_"+u.t++),this.gd=e.name||h,this.a=e.el||this.e(),this.G=[],this.qb={},this.V={},(t=this.g)&&t.children){var s=this;u.k.ua(t.children,function(t,e){e!==l&&!e.loadEvent&&(s[t]=s.Z(t,e))})}this.L(i)}}),t=u.c.prototype,t.D=function(){if(this.j("dispose"),this.G)for(var t=this.G.length-1;0<=t;t--)this.G[t].D&&this.G[t].D();this.V=this.qb=this.G=h,this.o(),this.a.parentNode&&this.a.parentNode.removeChild(this.a),u.vc(this.a),this.a=h},t.b=f,t.K=p("b"),t.options=function(t){return t===b?this.g:this.g=u.k.ic(this.g,t)},t.e=function(t,e){return u.e(t,e)},t.w=p("a"),t.id=p("Q"),t.name=p("gd"),t.children=p("G"),t.Z=function(t,e){var i,s;return"string"==typeof t?(s=t,i=(e=e||{}).componentClass||u.$(s),e.name=s,i=new window.videojs[i](this.b||this,e)):i=t,this.G.push(i),"function"==typeof i.id&&(this.qb[i.id()]=i),(s=s||i.name&&i.name())&&(this.V[s]=i),"function"==typeof i.el&&i.el()&&(this.sa||this.a).appendChild(i.el()),i},t.removeChild=function(t){if("string"==typeof t&&(t=this.V[t]),t&&this.G){for(var e=l,i=this.G.length-1;0<=i;i--)if(this.G[i]===t){e=f,this.G.splice(i,1);break}e&&(this.qb[t.id]=h,this.V[t.name]=h,(e=t.w())&&e.parentNode===(this.sa||this.a)&&(this.sa||this.a).removeChild(t.w()))}},t.T=s(""),t.d=function(t,e){return u.d(this.a,t,u.bind(this,e)),this},t.o=function(t,e){return u.o(this.a,t,e),this},t.U=function(t,e){return u.U(this.a,t,u.bind(this,e)),this},t.j=function(t,e){return u.j(this.a,t,e),this},t.L=function(t){return t&&(this.aa?t.call(this):(this.Sa===b&&(this.Sa=[]),this.Sa.push(t))),this},t.Ua=function(){this.aa=f;var t=this.Sa;if(t&&0<t.length){for(var e=0,i=t.length;e<i;e++)t[e].call(this);this.Sa=[],this.j("ready")}},t.n=function(t){return u.n(this.a,t),this},t.u=function(t){return u.u(this.a,t),this},t.show=function(){return this.a.style.display="block",this},t.C=function(){return this.a.style.display="none",this},t.disable=function(){this.C(),this.show=m()},t.width=function(t,e){return E(this,"width",t,e)},t.height=function(t,e){return E(this,"height",t,e)},t.Xc=function(t,e){return this.width(t,f).height(e)},u.q=u.c.extend({i:function(t,e){u.c.call(this,t,e);var i=l;this.d("touchstart",function(t){t.preventDefault(),i=f}),this.d("touchmove",function(){i=l});var s=this;this.d("touchend",function(t){i&&s.p(t),t.preventDefault()}),this.d("click",this.p),this.d("focus",this.Oa),this.d("blur",this.Na)}}),t=u.q.prototype,t.e=function(t,e){return e=u.k.B({className:this.T(),innerHTML:'<div class="vjs-control-content"><span class="vjs-control-text">'+(this.qa||"Need Text")+"</span></div>",qd:"button","aria-live":"polite",tabIndex:0},e),u.c.prototype.e.call(this,t,e)},t.T=function(){return"vjs-control "+u.c.prototype.T.call(this)},t.p=m(),t.Oa=function(){u.d(document,"keyup",u.bind(this,this.ba))},t.ba=function(t){32!=t.which&&13!=t.which||(t.preventDefault(),this.p())},t.Na=function(){u.o(document,"keyup",u.bind(this,this.ba))},u.O=u.c.extend({i:function(t,e){u.c.call(this,t,e),this.Sc=this.V[this.g.barName],this.handle=this.V[this.g.handleName],t.d(this.tc,u.bind(this,this.update)),this.d("mousedown",this.Pa),this.d("touchstart",this.Pa),this.d("focus",this.Oa),this.d("blur",this.Na),this.d("click",this.p),this.b.d("controlsvisible",u.bind(this,this.update)),t.L(u.bind(this,this.update)),this.P={}}}),t=u.O.prototype,t.e=function(t,e){return(e=e||{}).className+=" vjs-slider",e=u.k.B({qd:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},e),u.c.prototype.e.call(this,t,e)},t.Pa=function(t){t.preventDefault(),u.Tc(),this.P.move=u.bind(this,this.Hb),this.P.end=u.bind(this,this.Ib),u.d(document,"mousemove",this.P.move),u.d(document,"mouseup",this.P.end),u.d(document,"touchmove",this.P.move),u.d(document,"touchend",this.P.end),this.Hb(t)},t.Ib=function(){u.Bd(),u.o(document,"mousemove",this.P.move,l),u.o(document,"mouseup",this.P.end,l),u.o(document,"touchmove",this.P.move,l),u.o(document,"touchend",this.P.end,l),this.update()},t.update=function(){if(this.a){var t,e=this.yb(),i=this.handle,s=this.Sc;if(isNaN(e)&&(e=0),t=e,i){t=this.a.offsetWidth;var n=i.w().offsetWidth;t=(e*=1-(t=n?n/t:0))+t/2,i.w().style.left=u.round(100*e,2)+"%"}s.w().style.width=u.round(100*t,2)+"%"}},t.Oa=function(){u.d(document,"keyup",u.bind(this,this.ba))},t.ba=function(t){37==t.which?(t.preventDefault(),this.yc()):39==t.
1which&&(t.preventDefault(),this.zc())},t.Na=function(){u.o(document,"keyup",u.bind(this,this.ba))},t.p=function(t){t.stopImmediatePropagation(),t.preventDefault()},u.ea=u.c.extend(),u.ea.prototype.defaultValue=0,u.ea.prototype.e=function(t,e){return(e=e||{}).className+=" vjs-slider-handle",e=u.k.B({innerHTML:'<span class="vjs-control-text">'+this.defaultValue+"</span>"},e),u.c.prototype.e.call(this,"div",e)},u.ma=u.c.extend(),u.ma.prototype.e=function(){var t=this.options().Vc||"ul";return this.sa=u.e(t,{className:"vjs-menu-content"}),(t=u.c.prototype.e.call(this,"div",{append:this.sa,className:"vjs-menu"})).appendChild(this.sa),u.d(t,"click",function(t){t.preventDefault(),t.stopImmediatePropagation()}),t},u.N=u.q.extend({i:function(t,e){u.q.call(this,t,e),this.selected(e.selected)}}),u.N.prototype.e=function(t,e){return u.q.prototype.e.call(this,"li",u.k.B({className:"vjs-menu-item",innerHTML:this.g.label},e))},u.N.prototype.p=function(){this.selected(f)},u.N.prototype.selected=function(t){t?(this.n("vjs-selected"),this.a.setAttribute("aria-selected",f)):(this.u("vjs-selected"),this.a.setAttribute("aria-selected",l))},u.R=u.q.extend({i:function(t,e){u.q.call(this,t,e),this.wa=this.Ka(),this.Z(this.wa),this.I&&0===this.I.length&&this.C(),this.d("keyup",this.ba),this.a.setAttribute("aria-haspopup",f),this.a.setAttribute("role","button")}}),t=u.R.prototype,t.pa=l,t.Ka=function(){var t=new u.ma(this.b);if(this.options().title&&t.w().appendChild(u.e("li",{className:"vjs-menu-title",innerHTML:u.$(this.A),zd:-1})),this.I=this.createItems())for(var e=0;e<this.I.length;e++)ca(t,this.I[e]);return t},t.ta=m(),t.T=function(){return this.className+" vjs-menu-button "+u.q.prototype.T.call(this)},t.Oa=m(),t.Na=m(),t.p=function(){this.U("mouseout",u.bind(this,function(){D(this.wa),this.a.blur()})),this.pa?G(this):H(this)},t.ba=function(t){t.preventDefault(),32==t.which||13==t.which?this.pa?G(this):H(this):27==t.which&&this.pa&&G(this)},u.s=u.c.extend({i:function(t,e,i){var s,n,o,a;this.M=t,e=u.k.B(da(t),e),this.v={},this.uc=e.poster,this.sb=e.controls,t.controls=l,u.c.call(this,this,e,i),this.controls()?this.n("vjs-controls-enabled"):this.n("vjs-controls-disabled"),this.U("play",function(t){u.j(this.a,{type:"firstplay",target:this.a})||(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}),this.d("ended",this.hd),this.d("play",this.Kb),this.d("firstplay",this.jd),this.d("pause",this.Jb),this.d("progress",this.ld),this.d("durationchange",this.sc),this.d("error",this.Gb),this.d("fullscreenchange",this.kd),u.xa[this.Q]=this,e.plugins&&u.k.ua(e.plugins,function(t,e){this[t](e)},this),s=this.Mb,t=function(){s(),clearInterval(n),n=setInterval(u.bind(this,s),250)},e=function(){s(),clearInterval(n)},this.d("mousedown",t),this.d("mousemove",s),this.d("mouseup",e),this.d("keydown",s),this.d("keyup",s),this.d("touchstart",t),this.d("touchmove",s),this.d("touchend",e),this.d("touchcancel",e),o=setInterval(u.bind(this,function(){this.ka&&(this.ka=l,this.ja(f),clearTimeout(a),a=setTimeout(u.bind(this,function(){this.ka||this.ja(l)}),2e3))}),250),this.d("dispose",function(){clearInterval(o),clearTimeout(a)})}}),t=u.s.prototype,t.g=u.options,t.D=function(){this.j("dispose"),this.o("dispose"),u.xa[this.Q]=h,this.M&&this.M.player&&(this.M.player=h),this.a&&this.a.player&&(this.a.player=h),clearInterval(this.Ra),this.za(),this.h&&this.h.D(),u.c.prototype.D.call(this)},t.e=function(){var t=this.a=u.c.prototype.e.call(this,"div"),e=this.M;if(e.removeAttribute("width"),e.removeAttribute("height"),e.hasChildNodes()){var i,s,n,o;for(s=(i=e.childNodes).length,o=[];s--;)"track"===(n=i[s]).nodeName.toLowerCase()&&o.push(n);for(i=0;i<o.length;i++)e.removeChild(o[i])}return e.id=e.id||"vjs_video_"+u.t++,t.id=e.id,t.className=e.className,e.id+="_html5_api",e.className="vjs-tech",e.player=t.player=this,this.n("vjs-paused"),this.width(this.g.width,f),this.height(this.g.height,f),e.parentNode&&e.parentNode.insertBefore(t,e),u.zb(e,t),t},t.Cc=function(){this.hc&&this.za(),this.hc=setInterval(u.bind(this,function(){this.j("timeupdate")}),250)},t.za=function(){clearInterval(this.hc)},t.Kb=function(){u.u(this.a,"vjs-paused"),u.n(this.a,"vjs-playing")},t.jd=function(){this.g.starttime&&this.currentTime(this.g.starttime),this.n("vjs-has-started")},t.Jb=function(){u.u(this.a,"vjs-playing"),u.n(this.a,"vjs-paused")},t.ld=function(){1==this.Ja()&&this.j("loadedalldata")},t.hd=function(){this.g.loop&&(this.currentTime(0),this.play())},t.sc=function(){this.duration(K(this,"duration"))},t.kd=function(){this.H?this.n("vjs-fullscreen"):this.u("vjs-fullscreen")},t.Gb=function(t){u.log("Video Error",t)},t.play=function(){return L(this,"play"),this},t.pause=function(){return L(this,"pause"),this},t.paused=function(){return K(this,"paused")===l?l:f},t.currentTime=function(t){return t!==b?(this.v.rc=t,L(this,"setCurrentTime",t),this.Fb&&this.j("timeupdate"),this):this.v.currentTime=K(this,"currentTime")||0},t.duration=function(t){return t!==b?(this.v.duration=parseFloat(t),this):(this.v.duration===b&&this.sc(),this.v.duration)},t.buffered=function(){var t=K(this,"buffered"),e=t.length-1,i=this.v.lb=this.v.lb||0;return t&&0<=e&&t.end(e)!==i&&(i=t.end(e),this.v.lb=i),u.tb(0,i)},t.Ja=function(){return this.duration()?this.buffered().end(0)/this.duration():0},t.volume=function(t){return t!==b?(t=Math.max(0,Math.min(1,parseFloat(t))),this.v.volume=t,L(this,"setVolume",t),u.td(t),this):(t=parseFloat(K(this,"volume")),isNaN(t)?1:t)},t.muted=function(t){return t!==b?(L(this,"setMuted",t),this):K(this,"muted")||l},t.Ta=function(){return K(this,"supportsFullScreen")||l},t.ya=function(){var t=u.Pb.ya;return this.H=f,t?(u.d(document,t.vb,u.bind(this,function(e){this.H=document[t.H],this.H===l&&u.o(document,t.vb,arguments.callee),this.j("fullscreenchange")})),this.a[t.wc]()):this.h.Ta()?L(this,"enterFullScreen"):(this.cd=f,this.Yc=document.documentElement.style.overflow,u.d(document,"keydown",u.bind(this,this.lc)),document.documentElement.style.overflow="hidden",u.n(document.body,"vjs-full-window"),this.j("enterFullWindow"),this.j("fullscreenchange")),this},t.ob=function(){var t=u.Pb.ya;return this.H=l,t?document[t.nb]():this.h.Ta()?L(this,"exitFullScreen"):(M(this),this.j("fullscreenchange")),this}
1,t.lc=function(t){27===t.keyCode&&(this.H===f?this.ob():M(this))},t.src=function(t){if(t instanceof Array){var e;t:{e=t;for(var i=0,s=this.g.techOrder;i<s.length;i++){var n=u.$(s[i]),o=window.videojs[n];if(o.isSupported())for(var a=0,r=e;a<r.length;a++){var h=r[a];if(o.canPlaySource(h)){e={source:h,h:n};break t}}}e=l}e?(t=e.source,(e=e.h)==this.ia?this.src(t):I(this,e,t)):this.a.appendChild(u.e("p",{innerHTML:this.options().notSupportedMessage}))}else t instanceof Object?window.videojs[this.ia].canPlaySource(t)?this.src(t.src):this.src([t]):(this.v.src=t,this.aa?(L(this,"src",t),"auto"==this.g.preload&&this.load(),this.g.autoplay&&this.play()):this.L(function(){this.src(t)}));return this},t.load=function(){return L(this,"load"),this},t.currentSrc=function(){return K(this,"currentSrc")||this.v.src||""},t.Qa=function(t){return t!==b?(L(this,"setPreload",t),this.g.preload=t,this):K(this,"preload")},t.autoplay=function(t){return t!==b?(L(this,"setAutoplay",t),this.g.autoplay=t,this):K(this,"autoplay")},t.loop=function(t){return t!==b?(L(this,"setLoop",t),this.g.loop=t,this):K(this,"loop")},t.poster=function(t){return t!==b?(this.uc=t,this):this.uc},t.controls=function(t){return t!==b?(t=!!t,this.sb!==t&&((this.sb=t)?(this.u("vjs-controls-disabled"),this.n("vjs-controls-enabled"),this.j("controlsenabled")):(this.u("vjs-controls-enabled"),this.n("vjs-controls-disabled"),this.j("controlsdisabled"))),this):this.sb},u.s.prototype.Sb,t=u.s.prototype,t.Rb=function(t){return t!==b?(t=!!t,this.Sb!==t&&((this.Sb=t)?(this.n("vjs-using-native-controls"),this.j("usingnativecontrols")):(this.u("vjs-using-native-controls"),this.j("usingcustomcontrols"))),this):this.Sb},t.error=function(){return K(this,"error")},t.seeking=function(){return K(this,"seeking")},t.ka=f,t.Mb=function(){this.ka=f},t.Qb=f,t.ja=function(t){return t!==b?((t=!!t)!==this.Qb&&((this.Qb=t)?(this.ka=f,this.u("vjs-user-inactive"),this.n("vjs-user-active"),this.j("useractive")):(this.ka=l,this.h.U("mousemove",function(t){t.stopPropagation(),t.preventDefault()}),this.u("vjs-user-active"),this.n("vjs-user-inactive"),this.j("userinactive"))),this):this.Qb},P=document.createElement("div"),O={},P.Hd!==b?(O.wc="requestFullscreen",O.nb="exitFullscreen",O.vb="fullscreenchange",O.H="fullScreen"):(document.mozCancelFullScreen?(N="moz",O.H=N+"FullScreen"):(N="webkit",O.H=N+"IsFullScreen"),P[N+"RequestFullScreen"]&&(O.wc=N+"RequestFullScreen",O.nb=N+"CancelFullScreen"),O.vb=N+"fullscreenchange"),document[O.nb]&&(u.Pb.ya=O),u.Fa=u.c.extend(),u.Fa.prototype.g={Md:"play",children:{playToggle:{},currentTimeDisplay:{},timeDivider:{},durationDisplay:{},remainingTimeDisplay:{},progressControl:{},fullscreenToggle:{},volumeControl:{},muteToggle:{}}},u.Fa.prototype.e=function(){return u.e("div",{className:"vjs-control-bar gradient"})},u.Yb=u.q.extend({i:function(t,e){u.q.call(this,t,e),t.d("play",u.bind(this,this.Kb)),t.d("pause",u.bind(this,this.Jb))}}),t=u.Yb.prototype,t.qa="Play",t.T=function(){return"vjs-play-control gradient "+u.q.prototype.T.call(this)},t.p=function(){this.b.paused()?this.b.play():this.b.pause()},t.Kb=function(){u.u(this.a,"vjs-paused"),u.n(this.a,"vjs-playing"),this.a.children[0].children[0].innerHTML="Pause"},t.Jb=function(){u.u(this.a,"vjs-playing"),u.n(this.a,"vjs-paused"),this.a.children[0].children[0].innerHTML="Play"},u.Ya=u.c.extend({i:function(t,e){u.c.call(this,t,e),t.d("timeupdate",u.bind(this,this.Ca))}}),u.Ya.prototype.e=function(){var t=u.c.prototype.e.call(this,"div",{className:"vjs-current-time vjs-time-controls vjs-control"});return this.content=u.e("div",{className:"vjs-current-time-display",innerHTML:'<span class="vjs-control-text">Current Time </span>0:00',"aria-live":"off"}),t.appendChild(u.e("div").appendChild(this.content)),t},u.Ya.prototype.Ca=function(){var t=this.b.Nb?this.b.v.currentTime:this.b.currentTime();this.content.innerHTML='<span class="vjs-control-text">Current Time </span>'+u.La(t,this.b.duration())},u.Za=u.c.extend({i:function(t,e){u.c.call(this,t,e),t.d("timeupdate",u.bind(this,this.Ca))}}),u.Za.prototype.e=function(){var t=u.c.prototype.e.call(this,"div",{className:"vjs-duration vjs-time-control
1s vjs-control"});return this.content=u.e("div",{className:"vjs-duration-display",innerHTML:'<span class="vjs-control-text">Duration Time </span>0:00',"aria-live":"off"}),t.appendChild(u.e("div").appendChild(this.content)),t},u.Za.prototype.Ca=function(){var t=this.b.duration();t&&(this.content.innerHTML='<span class="vjs-control-text">Duration Time </span>'+u.La(t))},u.cc=u.c.extend({i:function(t,e){u.c.call(this,t,e)}}),u.cc.prototype.e=function(){return u.c.prototype.e.call(this,"div",{className:"vjs-time-divider",innerHTML:"<div><span>/</span></div>"})},u.fb=u.c.extend({i:function(t,e){u.c.call(this,t,e),t.d("timeupdate",u.bind(this,this.Ca))}}),u.fb.prototype.e=function(){var t=u.c.prototype.e.call(this,"div",{className:"vjs-remaining-time vjs-time-controls vjs-control"});return this.content=u.e("div",{className:"vjs-remaining-time-display",innerHTML:'<span class="vjs-control-text">Remaining Time </span>-0:00',"aria-live":"off"}),t.appendChild(u.e("div").appendChild(this.content)),t},u.fb.prototype.Ca=function(){this.b.duration()&&(this.content.innerHTML='<span class="vjs-control-text">Remaining Time </span>-'+u.La(this.b.duration()-this.b.currentTime()))},u.Ga=u.q.extend({i:function(t,e){u.q.call(this,t,e)}}),u.Ga.prototype.qa="Fullscreen",u.Ga.prototype.T=function(){return"vjs-fullscreen-control gradient "+u.q.prototype.T.call(this)},u.Ga.prototype.p=function(){this.b.H?(this.b.ob(),this.a.children[0].children[0].innerHTML="Fullscreen"):(this.b.ya(),this.a.children[0].children[0].innerHTML="Non-Fullscreen")},u.eb=u.c.extend({i:function(t,e){u.c.call(this,t,e)}}),u.eb.prototype.g={children:{seekBar:{}}},u.eb.prototype.e=function(){return u.c.prototype.e.call(this,"div",{className:"vjs-progress-control vjs-control"})},u.Zb=u.O.extend({i:function(t,e){u.O.call(this,t,e),t.d("timeupdate",u.bind(this,this.Ba)),t.L(u.bind(this,this.Ba))}}),t=u.Zb.prototype,t.g={children:{loadProgressBar:{},playProgressBar:{},seekHandle:{}},barName:"playProgressBar",handleName:"seekHandle"},t.tc="timeupdate",t.e=function(){return u.O.prototype.e.call(this,"div",{className:"vjs-progress-holder","aria-label":"video progress bar"})},t.Ba=function(){var t=this.b.Nb?this.b.v.currentTime:this.b.currentTime();this.a.setAttribute("aria-valuenow",u.round(100*this.yb(),2)),this.a.setAttribute("aria-valuetext",u.La(t,this.b.duration()))},t.yb=function(){var t;return"Flash"===this.b.ia&&this.b.seeking()?t=(t=this.b.v).rc?t.rc:this.b.currentTime():t=this.b.currentTime(),t/this.b.duration()},t.Pa=function(t){u.O.prototype.Pa.call(this,t),this.b.Nb=f,this.Dd=!this.b.paused(),this.b.pause()},t.Hb=function(t){(t=F(this,t)*this.b.duration())==this.b.duration()&&(t-=.1),this.b.currentTime(t)},t.Ib=function(t){u.O.prototype.Ib.call(this,t),this.b.Nb=l,this.Dd&&this.b.play()},t.zc=function(){this.b.currentTime(this.b.currentTime()+5)},t.yc=function(){this.b.currentTime(this.b.currentTime()-5)},u.ab=u.c.extend({i:function(t,e){u.c.call(this,t,e),t.d("progress",u.bind(this,this.update))}}),u.ab.prototype.e=function(){return u.c.prototype.e.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text">Loaded: 0%</span>'})},u.ab.prototype.update=function(){this.a.style&&(this.a.style.width=u.round(100*this.b.Ja(),2)+"%")},u.Xb=u.c.extend({i:function(t,e){u.c.call(this,t,e)}}),u.Xb.prototype.e=function(){return u.c.prototype.e.call(this,"div",{className:"vjs-play-progress",innerHTML:'<span class="vjs-control-text">Progress: 0%</span>'})},u.gb=u.ea.extend(),u.gb.prototype.defaultValue="00:00",u.gb.prototype.e=function(){return u.ea.prototype.e.call(this,"div",{className:"vjs-seek-handle"})},u.ib=u.c.extend({i:function(t,e){u.c.call(this,t,e),t.h&&t.h.m&&t.h.m.volumeControl===l&&this.n("vjs-hidden"),t.d("loadstart",u.bind(this,function(){t.h.m&&t.h.m.volumeControl===l?this.n("vjs-hidden"):this.u("vjs-hidden")}))}}),u.ib.prototype.g={children:{volumeBar:{}}},u.ib.prototype.e=function(){return u.c.prototype.e.call(this,"div",{className:"vjs-volume-control vjs-control"})},u.hb=u.O.extend({i:function(t,e){u.O.call(this,t,e),t.d("volumechange",u.bind(this,this.Ba)),t.L(u.bind(this,this.Ba)),setTimeout(u.bind(this,this.update),0)}}),t=u.hb.prototype,t.Ba=function(){this.a.setAttribute("aria-valuenow",u.round(100*this.b.volume(),2)),this.a.setAttribute("aria-valuetext",u.round(100*this.b.volume(),2)+"%")},t.g={children:{volumeLevel:{},volumeHandle:{}},barName:"volumeLevel",handleName:"volumeHandle"},t.tc="volumechange",t.e=function(){return u.O.prototype.e.call(this,"div",{className:"vjs-volume-bar","aria-label":"volume level"})},t.Hb=function(t){this.b.muted()&&this.b.muted(l),this.b.volume(F(this,t))},t.yb=function(){return this.b.muted()?0:this.b.volume()},t.zc=function(){this.b.volume(this.b.volume()+.1)},t.yc=function(){this.b.volume(this.b.volume()-.1)},u.dc=u.c.extend({i:function(t,e){u.c.call(this,t,e)}}),u.dc.prototype.e=function(){return u.c.prototype.e.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},u.jb=u.ea.extend(),u.jb.prototype.defaultValue="00:00",u.jb.prototype.e=function(){return u.ea.prototype.e.call(this,"div",{className:"vjs-volume-handle"})},u.da=u.q.extend({i:function(t,e){u.q.call(this,t,e),t.d("volumechange",u.bind(this,this.update)),t.h&&t.h.m&&t.h.m.volumeControl===l&&this.n("vjs-hidden"),t.d("loadstart",u.bind(this,function(){t.h.m&&t.h.m.volumeControl===l?this.n("vjs-hidden"):this.u("vjs-hidden")}))}}),u.da.prototype.e=function(){return u.q.prototype.e.call(this,"div",{className:"vjs-mute-control vjs-control",innerHTML:'<div><span class="vjs-control-text">Mute</span></div>'})},u.da.prototype.p=function(){this.b.muted(this.b.muted()?l:f)},u.da.prototype.update=function(){var t=this.b.volume(),e=3;for(0===t||this.b.muted()?e=0:.33>t?e=1:.67>t&&(e=2),this.b.muted()?"Unmute"!=this.a.children[0].children[0].innerHTML&&(this.a.children[0].children[0].innerHTML="Unmute"):"Mute"!=this.a.children[0].children[0].innerHTML&&(this.a.children[0].children[0].innerHTML="Mute"),t=0;4>t;t++)u.u(this.a,"vjs-vol-"+t);u.n(this.a,"vjs-vol-"+e)},u.oa=u.R.extend({i:function(t,e){u.R.call(this,t,e),t.d("volumechange",u.bind(this,this.update)),t.h&&t.h.m&&t.h.m.Dc===l&&this.n("vjs-hidden"),t.d("loadstart",u.bind(this,function(){t.h.m&&t.h.m.Dc===l?this.n("vjs-hidden"):this.u("vjs-hidden")})),this.n("vjs-menu-button")}}),u.oa.prototype.Ka=function(){var t=new u.ma(this.b,{Vc:"div"}),e=new u.hb(this.b,u.k.B({Cd:f}
1,this.g.Vd));return t.Z(e),t},u.oa.prototype.p=function(){u.da.prototype.p.call(this),u.R.prototype.p.call(this)},u.oa.prototype.e=function(){return u.q.prototype.e.call(this,"div",{className:"vjs-volume-menu-button vjs-menu-button vjs-control",innerHTML:'<div><span class="vjs-control-text">Mute</span></div>'})},u.oa.prototype.update=u.da.prototype.update,u.cb=u.q.extend({i:function(t,e){u.q.call(this,t,e),(!t.poster()||!t.controls())&&this.C(),t.d("play",u.bind(this,this.C))}}),u.cb.prototype.e=function(){var t=u.e("div",{className:"vjs-poster",tabIndex:-1}),e=this.b.poster();return e&&("backgroundSize"in t.style?t.style.backgroundImage='url("'+e+'")':t.appendChild(u.e("img",{src:e}))),t},u.cb.prototype.p=function(){this.K().controls()&&this.b.play()},u.Wb=u.c.extend({i:function(t,e){u.c.call(this,t,e),t.d("canplay",u.bind(this,this.C)),t.d("canplaythrough",u.bind(this,this.C)),t.d("playing",u.bind(this,this.C)),t.d("seeked",u.bind(this,this.C)),t.d("seeking",u.bind(this,this.show)),t.d("seeked",u.bind(this,this.C)),t.d("error",u.bind(this,this.show)),t.d("waiting",u.bind(this,this.show))}}),u.Wb.prototype.e=function(){return u.c.prototype.e.call(this,"div",{className:"vjs-loading-spinner"})},u.Wa=u.q.extend(),u.Wa.prototype.e=function(){return u.q.prototype.e.call(this,"div",{className:"vjs-big-play-button",innerHTML:'<span aria-hidden="true"></span>',"aria-label":"play video"})},u.Wa.prototype.p=function(){this.b.play()},u.r=u.c.extend({i:function(t,e,i){var s,n;u.c.call(this,t,e,i),n=this,s=this.K(),t=function(){var t,e,i,o;s.controls()&&!s.Rb()&&(n.d("mousedown",n.p),n.d("touchstart",function(t){t.preventDefault(),t.stopPropagation(),e=this.b.ja()}),t=function(t){t.stopPropagation(),e&&this.b.Mb()},n.d("touchmove",t),n.d("touchleave",t),n.d("touchcancel",t),n.d("touchend",t),i=0,n.d("touchstart",function(){i=(new Date).getTime(),o=f}),t=function(){o=l},n.d("touchmove",t),n.d("touchleave",t),n.d("touchcancel",t),n.d("touchend",function(){o===f&&(250>(new Date).getTime()-i&&this.j("tap"))}),n.d("tap",n.md))},e=u.bind(n,n.pd),this.L(t),s.d("controlsenabled",t),s.d("controlsdisabled",e)}}),u.r.prototype.pd=function(){this.o("tap"),this.o("touchstart"),this.o("touchmove"),this.o("touchleave"),this.o("touchcancel"),this.o("touchend"),this.o("click"),this.o("mousedown")},u.r.prototype.p=function(t){0===t.button&&this.K().controls()&&(this.K().paused()?this.K().play():this.K().pause())},u.r.prototype.md=function(){this.K().ja(!this.K().ja())},u.r.prototype.m={volumeControl:f,fullscreenResize:l,progressEvents:l,timeupdateEvents:l},u.media={},u.media.Va="play pause paused currentTime setCurrentTime duration buffered volume setVolume muted setMuted width height supportsFullScreen enterFullScreen src load currentSrc preload setPreload autoplay setAutoplay loop setLoop error networkState readyState seeking initialTime startOffsetTime played seekable ended videoTracks audioTracks videoWidth videoHeight textTracks defaultPlaybackRate playbackRate mediaGroup controller controls defaultMuted".split(" ");for(var i=u.media.Va.length-1;0<=i;i--)u.r.prototype[u.media.Va[i]]=ea();u.l=u.r.extend({i:function(t,e,i){var s,n,o,a;(this.m.volumeControl=u.l.Uc(),this.m.movingMediaElementInDOM=!u.Kc,this.m.fullscreenResize=f,u.r.call(this,t,e,i),(e=e.source)&&this.a.currentSrc===e.src&&0<this.a.networkState?t.j("loadstart"):e&&(this.a.src=e.src),u.ac&&t.options().nativeControlsForTouch!==l)&&(s=this,e=(n=this.K()).controls(),s.a.controls=!!e,o=function(){s.a.controls=f},a=function(){s.a.controls=l},n.d("controlsenabled",o),n.d("controlsdisabled",a),e=function(){n.o("controlsenabled",o),n.o("controlsdisabled",a)},s.d("dispose",e),n.d("usingcustomcontrols",e),n.Rb(f));for(t.L(function(){this.M&&this.g.autoplay&&this.paused()&&(delete this.M.poster,this.play())}),t=u.l.$a.length-1;0<=t;t--)u.d(this.a,u.l.$a[t],u.bind(this.b,this.$c));this.Ua()}}),t=u.l.prototype,t.D=function(){u.r.prototype.D.call(this)},t.e=function(){var t,e=this.b,i=e.M;i&&this.m.movingMediaElementInDOM!==l||(i?(t=i.cloneNode(l),u.l.jc(i),i=t,e.M=h):i=u.e("video",{id:e.id()+"_html5_api",className:"vjs-tech"}),i.player=e,u.zb(i,e.w()));for(var s=(t=["autoplay","preload","loop","muted"]).length-1;0<=s;s--){var n=t[s];e.g[n]!==h&&(i[n]=e.g[n])}return i},t.$c=function(t){this.j(t),t.stopPropagation()},t.play=function(){this.a.play()},t.pause=function(){this.a.pause()},t.paused=function(){return this.a.paused},t.currentTime=function(){return this.a.currentTime},t.sd=function(t){try{this.a.currentTime=t}catch(t){u.log(t,"Video is not ready. (Video.js)")}},t.duration=function(){return this.a.duration||0},t.buffered=function(){return this.a.buffered},t.volume=function(){return this.a.volume},t.xd=function(t){this.a.volume=t},t.muted=function(){return this.a.muted},t.vd=function(t){this.a.muted=t},t.width=function(){return this.a.offsetWidth},t.height=function(){return this.a.offsetHeight},t.Ta=function(){return"function"!=typeof this.a.webkitEnterFullScreen||
1!/Android/.test(u.F)&&/Chrome|Mac OS X 10.5/.test(u.F)?l:f},t.src=function(t){this.a.src=t},t.load=function(){this.a.load()},t.currentSrc=function(){return this.a.currentSrc},t.Qa=function(){return this.a.Qa},t.wd=function(t){this.a.Qa=t},t.autoplay=function(){return this.a.autoplay},t.rd=function(t){this.a.autoplay=t},t.controls=function(){return this.a.controls},t.loop=function(){return this.a.loop},t.ud=function(t){this.a.loop=t},t.error=function(){return this.a.error},t.seeking=function(){return this.a.seeking},u.l.isSupported=function(){return!!u.na.canPlayType},u.l.mb=function(t){try{return!!u.na.canPlayType(t.type)}catch(t){return""}},u.l.Uc=function(){var t=u.na.volume;return u.na.volume=t/2+.1,t!==u.na.volume},u.l.$a="loadstart suspend abort error emptied stalled loadedmetadata loadeddata canplay canplaythrough playing waiting seeking seeked ended durationchange timeupdate progress play pause ratechange volumechange".split(" "),u.l.jc=function(t){if(t){for(t.player=h,t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("src"),"function"==typeof t.load&&t.load()}},u.Oc&&(document.createElement("video").constructor.prototype.canPlayType=function(t){return t&&-1!=t.toLowerCase().indexOf("video/mp4")?"maybe":""}),u.f=u.r.extend({i:function(t,e,i){u.r.call(this,t,e,i);var s=e.source;i=e.parentEl;var n=this.a=u.e("div",{id:t.id()+"_temp_flash"}),o=t.id()+"_flash_api";t=t.g;var a=u.k.B({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:t.autoplay,preload:t.Qa,loop:t.loop,muted:t.muted},e.flashVars),r=u.k.B({wmode:"opaque",bgcolor:"#000000"},e.params),l=u.k.B({id:o,name:o,class:"vjs-tech"},e.attributes);if(s&&(s.type&&u.f.ed(s.type)?(t=u.f.Ac(s.src),a.rtmpConnection=encodeURIComponent(t.rb),a.rtmpStream=encodeURIComponent(t.Ob)):a.src=encodeURIComponent(u.mc(s.src))),u.zb(n,i),e.startTime&&this.L(function(){this.load(),this.play(),this.currentTime(e.startTime)}),e.iFrameMode!==f||u.Jc)u.f.Zc(e.swf,n,a,r,l);else{var h=u.e("iframe",{id:o+"_iframe",name:o+"_iframe",className:"vjs-tech",scrolling:"no",marginWidth:0,marginHeight:0,frameBorder:0});a.readyFunction="ready",a.eventProxyFunction="events",a.errorEventProxyFunction="errors",u.d(h,"load",u.bind(this,function(){var t,i=h.contentWindow;(t=h.contentDocument?h.contentDocument:h.contentWindow.document).write(u.f.nc(e.swf,a,r,l)),i.player=this.b,i.ready=u.bind(this.b,function(e){var i=this.h;i.a=t.getElementById(e),u.f.pb(i)}),i.events=u.bind(this.b,function(t,e){this&&"flash"===this.ia&&this.j(e)}),i.errors=u.bind(this.b,function(t,e){u.log("Flash Error",e)})})),n.parentNode.replaceChild(h,n)}}}),t=u.f.prototype,t.D=function(){u.r.prototype.D.call(this)},t.play=function(){this.a.vjs_play()},t.pause=function(){this.a.vjs_pause()},t.src=function(t){if(u.f.dd(t)?(t=u.f.Ac(t),this.Qd(t.rb),this.Rd(t.Ob)):(t=u.mc(t),this.a.vjs_src(t)),this.b.autoplay()){var e=this;setTimeout(function(){e.play()},0)}},t.currentSrc=function(){var t=this.a.vjs_getProperty("currentSrc");if(t==h){var e=this.Od(),i=this.Pd();e&&i&&(t=u.f.yd(e,i))}return t},t.load=function(){this.a.vjs_load()},t.poster=function(){this.a.vjs_getProperty("poster")},t.buffered=function(){return u.tb(0,this.a.vjs_getProperty("buffered"))},t.Ta=s(l);var Q=u.f.prototype,R="rtmpConnection rtmpStream preload currentTime defaultPlaybackRate playbackRate autoplay loop mediaGroup controller controls volume muted defaultMuted".split(" "),S="error currentSrc networkState readyState seeking initialTime duration startOffsetTime paused played seekable ended videoTracks audioTracks videoWidth videoHeight textTracks".split(" "),T;function fa(){var t=R[T],e=t.charAt(0).toUpperCase()+t.slice(1);Q["set"+e]=function(e){return this.a.vjs_setProperty(t,e)}}function U(t){Q[t]=function(){return this.a.vjs_getProperty(t)}}for(T=0;T<R.length;T++)U(R[T]),fa();for(T=0;T<S.length;T++)U(S[T]);function V(t){return t.Aa=t.Aa||[],t.Aa}function W(t,e,i){for(var s,n,o=t.Aa,a=0,r=o.length;a<r;a++)(s=o[a]).id()===e?(s.show(),n=s):i&&s.J()==i&&0<s.mode()&&s.disable();(e=n?n.J():i||l)&&t.j(e+"trackchange")}function X(t){0===t.ha&&t.load(),0===t.ga&&(t.b.d("timeupdate",u.bind(t,t.update,t.Q)),t.b.d("ended",u.bind(t,t.reset,t.Q)),("captions"===t.A||"subt
1itles"===t.A)&&t.b.V.textTrackDisplay.Z(t))}function Y(t){var e,i,s,n=t.split(":");return t=0,3==n.length?(e=n[0],i=n[1],n=n[2]):(e=0,i=n[0],n=n[1]),n=(n=(n=n.split(/\s+/)).splice(0,1)[0]).split(/\.|,/),s=parseFloat(n[1]),n=n[0],t+=3600*parseFloat(e),t+=60*parseFloat(i),t+=parseFloat(n),s&&(t+=s/1e3),t}if(u.f.isSupported=function(){return 10<=u.f.version()[0]},u.f.mb=function(t){return t.type?(t=t.type.replace(/;.*/,"").toLowerCase())in u.f.bd||t in u.f.Bc?"maybe":void 0:""},u.f.bd={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"},u.f.Bc={"rtmp/mp4":"MP4","rtmp/flv":"FLV"},u.f.onReady=function(t){var e=(t=u.w(t)).player||t.parentNode.player,i=e.h;t.player=e,i.a=t,u.f.pb(i)},u.f.pb=function(t){t.w().vjs_getProperty?t.Ua():setTimeout(function(){u.f.pb(t)},50)},u.f.onEvent=function(t,e){u.w(t).player.j(e)},u.f.onError=function(t,e){u.w(t).player.j("error"),u.log("Flash Error",e,t)},u.f.version=function(){var t="0,0,0";try{t=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(e){try{navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(t=(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch(t){}}return t.split(",")},u.f.Zc=function(t,e,i,s,n){t=u.f.nc(t,i,s,n),t=u.e("div",{innerHTML:t}).childNodes[0],i=e.parentNode,e.parentNode.replaceChild(t,e);var o=i.childNodes[0];setTimeout(function(){o.style.display="block"},1e3)},u.f.nc=function(t,e,i,s){var n="",o="",a="";return e&&u.k.ua(e,function(t,e){n+=t+"="+e+"&amp;"}),i=u.k.B({movie:t,flashvars:n,allowScriptAccess:"always",allowNetworking:"all"},i),u.k.ua(i,function(t,e){o+='<param name="'+t+'" value="'+e+'" />'}),s=u.k.B({data:t,width:"100%",height:"100%"},s),u.k.ua(s,function(t,e){a+=t+'="'+e+'" '}),'<object type="application/x-shockwave-flash"'+a+">"+o+"</object>"},u.f.yd=function(t,e){return t+"&"+e},u.f.Ac=function(t){var e={rb:"",Ob:""};if(!t)return e;var i,s=t.indexOf("&");return-1!==s?i=s+1:0===(s=i=t.lastIndexOf("/")+1)&&(s=i=t.length),e.rb=t.substring(0,s),e.Ob=t.substring(i,t.length),e},u.f.ed=function(t){return t in u.f.Bc},u.f.Qc=/^rtmp[set]?:\/\//i,u.f.dd=function(t){return u.f.Qc.test(t)},u.Pc=u.c.extend({i:function(t,e,i){if(u.c.call(this,t,e,i),t.g.sources&&0!==t.g.sources.length)t.src(t.g.sources);else for(e=0,i=t.g.techOrder;e<i.length;e++){var s=u.$(i[e]),n=window.videojs[s];if(n&&n.isSupported()){I(t,s);break}}}}),u.X=u.c.extend({i:function(t,e){u.c.call(this,t,e),this.Q=e.id||"vjs_"+e.kind+"_"+e.language+"_"+u.t++,this.xc=e.src,this.Wc=e.default||e.dflt,this.Ad=e.title,this.Ld=e.srclang,this.fd=e.label,this.fa=[],this.ec=[],this.ga=this.ha=0,this.b.d("fullscreenchange",u.bind(this,this.Rc))}}),t=u.X.prototype,t.J=p("A"),t.src=p("xc"),t.ub=p("Wc"),t.title=p("Ad"),t.label=p("fd"),t.readyState=p("ha"),t.mode=p("ga"),t.Rc=function(){this.a.style.fontSize=this.b.H?screen.width/this.b.width()*140+"%":""},t.e=function(){return u.c.prototype.e.call(this,"div",{className:"vjs-"+this.A+" vjs-text-track"})},t.show=function(){X(this),this.ga=2,u.c.prototype.show.call(this)},t.C=function(){X(this),this.ga=1,u.c.prototype.C.call(this)},t.disable=function(){2==this.ga&&this.C(),this.b.o("timeupdate",u.bind(this,this.update,this.Q)),this.b.o("ended",u.bind(this,this.reset,this.Q)),this.reset(),this.b.V.textTrackDisplay.removeChild(this),this.ga=0},t.load=function(){0===this.ha&&(this.ha=1,u.get(this.xc,u.bind(this,this.nd),u.bind(this,this.Gb)))},t.Gb=function(t){this.error=t,this.ha=3,this.j("error")},t.nd=function(t){for(var e,i,s="",n=1,o=(t=t.split("\n")).length;n<o;n++)if(s=u.trim(t[n])){for(-1==s.indexOf("--\x3e")?(e=s,s=u.trim(t[++n])):e=this.fa.length,e={id:e,index:this.fa.length},i=s.split(" --\x3e "),e.startTime=Y(i[0]),e.va=Y(i[1]),i=[];t[++n]&&(s=u.trim(t[n]));)i.push(s);e.text=i.join("<br/>"),this.fa.push(e)}this.ha=2,this.j("loaded")},t.update=function(){if(0<this.fa.length){var t=this.b.currentTime();if(this.Lb===b||t<this.Lb||this.Ma<=t){var e,i,s,n,o=this.fa,a=this.b.duration(),r=0,h=l,c=[];for(t>=this.Ma||this.Ma===b?n=this.wb!==b?this.wb:0:(h=f,n=this.Db!==b?this.Db:o.length-1);;){if((s=o[n]).va<=t)r=Math.max(r,s.va),s.Ia&&(s.Ia=l);else if(t<s.startTime){if(a=Math.min(a,s.startTime),s.Ia&&(s.Ia=l),!h)break}else h?(c.splice(0,0,s),i===b&&(i=n),e=n):(c.push(s),e===b&&(e=n),i=n),a=Math.min(a,s.va),r=M
1ath.max(r,s.startTime),s.Ia=f;if(h){if(0===n)break;n--}else{if(n===o.length-1)break;n++}}for(this.ec=c,this.Ma=a,this.Lb=r,this.wb=e,this.Db=i,o="",a=0,r=(t=this.ec).length;a<r;a++)o+='<span class="vjs-tt-cue">'+t[a].text+"</span>";this.a.innerHTML=o,this.j("cuechange")}}},t.reset=function(){this.Ma=0,this.Lb=this.b.duration(),this.Db=this.wb=0},u.Ub=u.X.extend(),u.Ub.prototype.A="captions",u.$b=u.X.extend(),u.$b.prototype.A="subtitles",u.Vb=u.X.extend(),u.Vb.prototype.A="chapters",u.bc=u.c.extend({i:function(t,e,i){var s;if(u.c.call(this,t,e,i),t.g.tracks&&0<t.g.tracks.length)for(e=this.b,t=t.g.tracks,i=0;i<t.length;i++){var n=e,o=(s=t[i]).kind,a=s.label,r=s.language,l=s;s=n.Aa=n.Aa||[],(l=l||{}).kind=o,l.label=a,l.language=r,o=u.$(o||"subtitles"),n=new window.videojs[o+"Track"](n,l),s.push(n)}}}),u.bc.prototype.e=function(){return u.c.prototype.e.call(this,"div",{className:"vjs-text-track-display"})},u.Y=u.N.extend({i:function(t,e){var i=this.ca=e.track;e.label=i.label(),e.selected=i.ub(),u.N.call(this,t,e),this.b.d(i.J()+"trackchange",u.bind(this,this.update))}}),u.Y.prototype.p=function(){u.N.prototype.p.call(this),W(this.b,this.ca.Q,this.ca.J())},u.Y.prototype.update=function(){this.selected(2==this.ca.mode())},u.bb=u.Y.extend({i:function(t,e){e.track={J:function(){return e.kind},K:t,label:function(){return e.kind+" off"},ub:s(l),mode:s(l)},u.Y.call(this,t,e),this.selected(f)}}),u.bb.prototype.p=function(){u.Y.prototype.p.call(this),W(this.b,this.ca.Q,this.ca.J())},u.bb.prototype.update=function(){for(var t,e=V(this.b),i=0,s=e.length,n=f;i<s;i++)(t=e[i]).J()==this.ca.J()&&2==t.mode()&&(n=l);this.selected(n)},u.S=u.R.extend({i:function(t,e){u.R.call(this,t,e),1>=this.I.length&&this.C()}}),u.S.prototype.ta=function(){var t,e=[];e.push(new u.bb(this.b,{kind:this.A}));for(var i=0;i<V(this.b).length;i++)(t=V(this.b)[i]).J()===this.A&&e.push(new u.Y(this.b,{track:t}));return e},u.Da=u.S.extend({i:function(t,e,i){u.S.call(this,t,e,i),this.a.setAttribute("aria-label","Captions Menu")}}),u.Da.prototype.A="captions",u.Da.prototype.qa="Captions",u.Da.prototype.className="vjs-captions-button",u.Ha=u.S.extend({i:function(t,e,i){u.S.call(this,t,e,i),this.a.setAttribute("aria-label","Subtitles Menu")}}),u.Ha.prototype.A="subtitles",u.Ha.prototype.qa="Subtitles",u.Ha.prototype.className="vjs-subtitles-button",u.Ea=u.S.extend({i:function(t,e,i){u.S.call(this,t,e,i),this.a.setAttribute("aria-label","Chapters Menu")}}),t=u.Ea.prototype,t.A="chapters",t.qa="Chapters",t.className="vjs-chapters-button",t.ta=function(){for(var t,e=[],i=0;i<V(this.b).length;i++)(t=V(this.b)[i]).J()===this.A&&e.push(new u.Y(this.b,{track:t}));return e},t.Ka=function(){for(var t,e,i=V(this.b),s=0,n=i.length,o=this.I=[];s<n;s++)if((t=i[s]).J()==this.A&&t.ub()){if(2>t.readyState())return this.Id=t,void t.d("loaded",u.bind(this,this.Ka));e=t;break}if((i=this.wa=new u.ma(this.b)).a.appendChild(u.e("li",{className:"vjs-menu-title",innerHTML:u.$(this.A),zd:-1})),e){var a;for(s=0,n=(t=e.fa).length;s<n;s++)a=t[s],a=new u.Xa(this.b,{track:e,cue:a}),o.push(a),i.Z(a)}return 0<this.I.length&&this.show(),i},u.Xa=u.N.extend({i:function(t,e){var i=this.ca=e.track,s=this.cue=e.cue,n=t.currentTime();e.label=s.text,e.selected=s.startTime<=n&&n<s.va,u.N.call(this,t,e),i.d("cuechange",u.bind(this,this.update))}}),u.Xa.prototype.p=function(){u.N.prototype.p.call(this),this.b.currentTime(this.cue.startTime),this.update(this.cue.startTime)},u.Xa.prototype.update=function(){var t=this.cue,e=this.b.currentTime();this.selected(t.startTime<=e&&e<t.va)},u.k.B(u.Fa.prototype.g.children,{subtitlesButton:{},captionsButton:{},chaptersButton:{}}),void 0!==window.JSON&&"function"===window.JSON.parse)u.JSON=window.JSON;else{u.JSON={};var Z=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;u.JSON.parse=function(a,c){function d(t,e){var i,s,n=t[e];if(n&&"object"==typeof n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&((s=d(n,i))!==b?n[i]=s:delete n[i]);return c.call(t,e,n)}var e;if(a=String(a),Z.lastIndex=0,Z.test(a)&&(a=a.replace(Z,function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return e=eval("("+a+")"),"function"==typeof c?d({"":e},""):e;
1throw new SyntaxError("JSON.parse(): invalid or malformed JSON data")}}u.fc=function(){var t,e,i=document.getElementsByTagName("video");if(i&&0<i.length)for(var s=0,n=i.length;s<n;s++){if(!(e=i[s])||!e.getAttribute){u.kb();break}e.player===b&&((t=e.getAttribute("data-setup"))!==h&&(t=u.JSON.parse(t||"{}"),v(e,t)))}else u.Ec||u.kb()},u.kb=function(){setTimeout(u.fc,1)},"complete"===document.readyState?u.Ec=f:u.U(window,"load",function(){u.Ec=f}),u.kb(),u.od=function(t,e){u.s.prototype[t]=e};var ga=this;function $(t,e){var i,s=t.split("."),n=ga;!(s[0]in n)&&n.execScript&&n.execScript("var "+s[0]);for(;s.length&&(i=s.shift());)s.length||e===b?n=n[i]?n[i]:n[i]={}:n[i]=e}ga.Ed=f,$("videojs",u),$("_V_",u),$("videojs.options",u.options),$("videojs.players",u.xa),$("videojs.TOUCH_ENABLED",u.ac),$("videojs.cache",u.ra),$("videojs.Component",u.c),u.c.prototype.player=u.c.prototype.K,u.c.prototype.dispose=u.c.prototype.D,u.c.prototype.createEl=u.c.prototype.e,u.c.prototype.el=u.c.prototype.w,u.c.prototype.addChild=u.c.prototype.Z,u.c.prototype.children=u.c.prototype.children,u.c.prototype.on=u.c.prototype.d,u.c.prototype.off=u.c.prototype.o,u.c.prototype.one=u.c.prototype.U,u.c.prototype.trigger=u.c.prototype.j,u.c.prototype.triggerReady=u.c.prototype.Ua,u.c.prototype.show=u.c.prototype.show,u.c.prototype.hide=u.c.prototype.C,u.c.prototype.width=u.c.prototype.width,u.c.prototype.height=u.c.prototype.height,u.c.prototype.dimensions=u.c.prototype.Xc,u.c.prototype.ready=u.c.prototype.L,u.c.prototype.addClass=u.c.prototype.n,u.c.prototype.removeClass=u.c.prototype.u,$("videojs.Player",u.s),u.s.prototype.dispose=u.s.prototype.D,u.s.prototype.requestFullScreen=u.s.prototype.ya,u.s.prototype.cancelFullScreen=u.s.prototype.ob,u.s.prototype.bufferedPercent=u.s.prototype.Ja,u.s.prototype.usingNativeControls=u.s.prototype.Rb,u.s.prototype.reportUserActivity=u.s.prototype.Mb,u.s.prototype.userActive=u.s.prototype.ja,$("videojs.MediaLoader",u.Pc),$("videojs.TextTrackDisplay",u.bc),$("videojs.ControlBar",u.Fa),$("videojs.Button",u.q),$("videojs.PlayToggle",u.Yb),$("videojs.FullscreenToggle",u.Ga),$("videojs.BigPlayButton",u.Wa),$("videojs.LoadingSpinner",u.Wb),$("videojs.CurrentTimeDisplay",u.Ya),$("videojs.DurationDisplay",u.Za),$("videojs.TimeDivider",u.cc),$("videojs.RemainingTimeDisplay",u.fb),$("videojs.Slider",u.O),$("videojs.ProgressControl",u.eb),$("videojs.SeekBar",u.Zb),$("videojs.LoadProgressBar",u.ab),$("videojs.PlayProgressBar",u.Xb),$("videojs.SeekHandle",u.gb),$("videojs.VolumeControl",u.ib),$("videojs.VolumeBar",u.hb),$("videojs.VolumeLevel",u.dc),$("videojs.VolumeMenuButton",u.oa),$("videojs.VolumeHandle",u.jb),$("videojs.MuteToggle",u.da),$("videojs.PosterImage",u.cb),$("videojs.Menu",u.ma),$("videojs.MenuItem",u.N),$("videojs.MenuButton",u.R),u.R.prototype.createItems=u.R.prototype.ta,u.S.prototype.createItems=u.S.prototype.ta,u.Ea.prototype.createItems=u.Ea.prototype.ta,$("videojs.SubtitlesButton",u.Ha),$("videojs.CaptionsButton",u.Da),$("videojs.ChaptersButton",u.Ea),$("videojs.MediaTechController",u.r),u.r.prototype.features=u.r.prototype.m,u.r.prototype.m.volumeControl=u.r.prototype.m.Dc,u.r.prototype.m.fullscreenResize=u.r.prototype.m.Jd,u.r.prototype.m.progressEvents=u.r.prototype.m.Nd,u.r.prototype.m.timeupdateEvents=u.r.prototype.m.Sd,$("videojs.Html5",u.l),u.l.Events=u.l.$a,u.l.isSupported=u.l.isSupported,u.l.canPlaySource=u.l.mb,u.l.prototype.setCurrentTime=u.l.prototype.sd,u.l.prototype.setVolume=u.l.prototype.xd,u.l.prototype.setMuted=u.l.prototype.vd,u.l.prototype.setPreload=u.l.prototype.wd,u.l.prototype.setAutoplay=u.l.prototype.rd,u.l.prototype.setLoop=u.l.prototype.ud,$("videojs.Flash",u.f),u.f.isSupported=u.f.isSupported,u.f.canPlaySource=u.f.mb,u.f.onReady=u.f.onReady,$("videojs.TextTrack",u.X),u.X.prototype.label=u.X.prototype.label,$("videojs.CaptionsTrack",u.Ub),$("videojs.SubtitlesTrack",u.$b),$("videojs.ChaptersTrack",u.Vb),$("videojs.autoSetup",u.fc),$("videojs.plugin",u.od),$("videojs.createTimeRange",u.tb)}(),function(t,e){"function"==typeof define&&define.amd?define(["jquery"],e):e(t.jQuery)}(this,function(t,e){t.fn.jPlayer=function(i){var s="string"==typeof i,n=Array.prototype.slice.call(arguments,1
1),o=this;return i=!s&&n.length?t.extend.apply(null,[!0,i].concat(n)):i,s&&"_"===i.charAt(0)?o:(s?this.each(function(){var s=t.data(this,"jPlayer"),a=s&&t.isFunction(s[i])?s[i].apply(s,n):s;if(a!==s&&a!==e)return o=a,!1}):this.each(function(){var e=t.data(this,"jPlayer");e?e.option(i||{}):t.data(this,"jPlayer",new t.jPlayer(i,this))}),o)},t.jPlayer=function(e,i){if(arguments.length){this.element=t(i),this.options=t.extend(!0,{},this.options,e);var s=this;this.element.bind("remove.jPlayer",function(){s.destroy()}),this._init()}},t.jPlayer.emulateMethods="load play pause",t.jPlayer.emulateStatus="src readyState networkState currentTime duration paused ended playbackRate",t.jPlayer.emulateOptions="muted volume",t.jPlayer.reservedEvent="ready flashreset resize repeat error warning",t.jPlayer.event={},t.each("ready flashreset resize repeat click error warning loadstart progress suspend abort emptied stalled play pause loadedmetadata loadeddata waiting playing canplay canplaythrough seeking seeked timeupdate ended ratechange durationchange volumechange".split(" "),function(){t.jPlayer.event[this]="jPlayer_"+this}),t.jPlayer.htmlEvent="loadstart abort emptied stalled loadedmetadata loadeddata canplay canplaythrough ratechange".split(" "),t.jPlayer.pause=function(){t.each(t.jPlayer.prototype.instances,function(t,e){e.data("jPlayer").status.srcSet&&e.jPlayer("pause")})},t.jPlayer.timeFormat={showHour:!1,showMin:!0,showSec:!0,padHour:!1,padMin:!0,padSec:!0,sepHour:":",sepMin:":",sepSec:""};var i=function(){this.init()};i.prototype={init:function(){this.options={timeFormat:t.jPlayer.timeFormat}},time:function(t){var e=new Date(1e3*(t&&"number"==typeof t?t:0)),i=e.getUTCHours();return t=this.options.timeFormat.showHour?e.getUTCMinutes():e.getUTCMinutes()+60*i,e=this.options.timeFormat.showMin?e.getUTCSeconds():e.getUTCSeconds()+60*t,i=this.options.timeFormat.padHour&&10>i?"0"+i:i,t=this.options.timeFormat.padMin&&10>t?"0"+t:t,e=this.options.timeFormat.padSec&&10>e?"0"+e:e,i=""+(this.options.timeFormat.showHour?i+this.options.timeFormat.sepHour:""),(i+=this.options.timeFormat.showMin?t+this.options.timeFormat.sepMin:"")+(this.options.timeFormat.showSec?e+this.options.timeFormat.sepSec:"")}};var s=new i;t.jPlayer.convertTime=function(t){return s.time(t)},t.jPlayer.uaBrowser=function(t){t=t.toLowerCase();return{browser:(t=/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||0>t.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(t)||[])[1]||"",version:t[2]||"0"}},t.jPlayer.uaPlatform=function(t){var e=t.toLowerCase();return t=/(ipad|iphone|ipod|android|blackberry|playbook|windows ce|webos)/.exec(e)||[],e=/(ipad|playbook)/.exec(e)||!/(mobile)/.exec(e)&&/(android)/.exec(e)||[],t[1]&&(t[1]=t[1].replace(/\s/g,"_")),{platform:t[1]||"",tablet:e[1]||""}},t.jPlayer.browser={},t.jPlayer.platform={};var n=t.jPlayer.uaBrowser(navigator.userAgent);n.browser&&(t.jPlayer.browser[n.browser]=!0,t.jPlayer.browser.version=n.version),(n=t.jPlayer.uaPlatform(navigator.userAgent)).platform&&(t.jPlayer.platform[n.platform]=!0,t.jPlayer.platform.mobile=!n.tablet,t.jPlayer.platform.tablet=!!n.tablet),t.jPlayer.getDocMode=function(){var e;return t.jPlayer.browser.msie&&(document.documentMode?e=document.documentMode:(e=5,document.compatMode&&"CSS1Compat"===document.compatMode&&(e=7))),e},t.jPlayer.browser.documentMode=t.jPlayer.getDocMode(),t.jPlayer.nativeFeatures={init:function(){var t,e,i=document,s=i.createElement("video"),n={w3c:"fullscreenEnabled fullscreenElement requestFullscreen exitFullscreen fullscreenchange fullscreenerror".split(" "),moz:"mozFullScreenEnabled mozFullScreenElement mozRequestFullScreen mozCancelFullScreen mozfullscreenchange mozfullscreenerror".split(" "),webkit:" webkitCurrentFullScreenElement webkitRequestFullScreen webkitCancelFullScreen webkitfullscreenchange ".split(" "),webkitVideo:"webkitSupportsFullscreen webkitDisplayingFullscreen webkitEnterFullscreen webkitExitFullscreen  ".split(" ")},o=["w3c","moz","webkit","webkitVideo"];for(this.fullscreen=s={support:{w3c:!!i[n.w3c[0]],moz:!!i[n.moz[0]],webkit:"function"==typeof i[n.webkit[3]],webkitVideo:"function"==typeof s[n.webkitVideo[2]]},used:{}},t=0,e=o.length;t<e;t++){var a=o[t];if(s.support[a]){s.spec=a,s.used[a]=!0;break}}if(s.spec){var r=n[s.spec];s.api={fullscreenEnabled:!0,fullscreenElement:function(t){return(t=t||i)[r[1]]},requestFullscreen:function(t){return t[r[2]]()},exitFullscreen:function(t){return(t=t||i)[r[3]]()}},s.event={fullscreenchange:r[4],fullscreenerror:r[5]}}else s.api={fullscreenEnabled:!1,fullscreenElement:function(){return null},requestFullscreen:function(){},exitFullscreen:function(){}},s.event={}}},t.jPlayer.nativeFeatures.init(),t.jPlayer.focus=null,t.jPlayer.keyIgnoreElementNames="INPUT TEXTAREA";var o=function(e){var i,s=t.jPlayer.focus;s&&(t.each(t.jPlayer.keyIgnoreElementNames.split(/\s+/g),function(t,s){if(e.target.nodeName.toUpperCase()===s.toUpperCase())return i=!0,!1}),i||t.each(s.options.keyBindings,function(i,n){if(n&&e.which===n.key&&t.isFunction(n.fn))return e.preventDefault(),n.fn(s),!1}))};
vendor: 6,780 bytes, line 1
1t.jPlayer.keys=function(e){t(document.documentElement).unbind("keydown.jPlayer"),e&&t(document.documentElement).bind("keydown.jPlayer",o)},t.jPlayer.keys(!0),t.jPlayer.prototype={count:0,version:{script:"2.3.0",needFlash:"2.3.0",flash:"unknown"},options:{swfPath:"js",solution:"html, flash",supplied:"mp3",preload:"metadata",volume:.8,muted:!1,wmode:"opaque",backgroundColor:"#000000",cssSelectorAncestor:"#jp_container_1",cssSelector:{videoPlay:".jp-video-play",play:".jp-play",pause:".jp-pause",stop:".jp-stop",seekBar:".jp-seek-bar",playBar:".jp-play-bar",mute:".jp-mute",unmute:".jp-unmute",volumeBar:".jp-volume-bar",volumeBarValue:".jp-volume-bar-value",volumeMax:".jp-volume-max",currentTime:".jp-current-time",duration:".jp-duration",fullScreen:".jp-full-screen",restoreScreen:".jp-restore-screen",repeat:".jp-repeat",repeatOff:".jp-repeat-off",gui:".jp-gui",noSolution:".jp-no-solution"},smoothPlayBar:!1,fullScreen:!1,fullWindow:!1,autohide:{restored:!1,full:!0,fadeIn:200,fadeOut:600,hold:1e3},loop:!1,repeat:function(e){e.jPlayer.options.loop?t(this).unbind(".jPlayerRepeat").bind(t.jPlayer.event.ended+".jPlayer.jPlayerRepeat",function(){t(this).jPlayer("play")}):t(this).unbind(".jPlayerRepeat")},nativeVideoControls:{},noFullWindow:{msie:/msie [0-6]\./,ipad:/ipad.*?os [0-4]\./,iphone:/iphone/,ipod:/ipod/,android_pad:/android [0-3]\.(?!.*?mobile)/,android_phone:/android.*?mobile/,blackberry:/blackberry/,windows_ce:/windows ce/,iemobile:/iemobile/,webos:/webos/},noVolume:{ipad:/ipad/,iphone:/iphone/,ipod:/ipod/,android_pad:/android(?!.*?mobile)/,android_phone:/android.*?mobile/,blackberry:/blackberry/,windows_ce:/windows ce/,iemobile:/iemobile/,webos:/webos/,playbook:/playbook/},timeFormat:{},keyEnabled:!1,audioFullScreen:!1,keyBindings:{play:{key:32,fn:function(t){t.status.paused?t.play():t.pause()}},fullScreen:{key:13,fn:function(t){(t.status.video||t.options.audioFullScreen)&&t._setOption("fullScreen",!t.options.fullScreen)}},muted:{key:8,fn:function(t){t._muted(!t.options.muted)}},volumeUp:{key:38,fn:function(t){t.volume(t.options.volume+.1)}},volumeDown:{key:40,fn:function(t){t.volume(t.options.volume-.1)}}},verticalVolume:!1,idPrefix:"jp",noConflict:"jQuery",emulateHtml:!1,errorAlerts:!1,warningAlerts:!1},optionsAudio:{size:{width:"0px",height:"0px",cssClass:""},sizeFull:{width:"0px",height:"0px",cssClass:""}},optionsVideo:{size:{width:"480px",height:"270px",cssClass:"jp-video-270p"},sizeFull:{width:"100%",height:"100%",cssClass:"jp-video-full"}},instances:{},status:{src:"",media:{},paused:!0,format:{},formatType:"",waitForPlay:!0,waitForLoad:!0,srcSet:!1,video:!1,seekPercent:0,currentPercentRelative:0,currentPercentAbsolute:0,currentTime:0,duration:0,videoWidth:0,videoHeight:0,readyState:0,networkState:0,playbackRate:1,ended:0},internal:{ready:!1},solution:{html:!0,flash:!0},format:{mp3:{codec:'audio/mpeg; codecs="mp3"',flashCanPlay:!0,media:"audio"},m4a:{codec:'audio/mp4; codecs="mp4a.40.2"',flashCanPlay:!0,media:"audio"},oga:{codec:'audio/ogg; codecs="vorbis"',flashCanPlay:!1,media:"audio"},wav:{codec:'audio/wav; codecs="1"',flashCanPlay:!1,media:"audio"},webma:{codec:'audio/webm; codecs="vorbis"',flashCanPlay:!1,media:"audio"},fla:{codec:"audio/x-flv",flashCanPlay:!0,media:"audio"},rtmpa:{codec:'audio/rtmp; codecs="rtmp"',flashCanPlay:!0,media:"audio"},m4v:{codec:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',flashCanPlay:!0,media:"video"},ogv:{codec:'video/ogg; codecs="theora, vorbis"',flashCanPlay:!1,media:"video"},webmv:{codec:'video/webm; codecs="vorbis, vp8"',flashCanPlay:!1,media:"video"},flv:{codec:"video/x-flv",flashCanPlay:!0,media:"video"},rtmpv:{codec:'video/rtmp; codecs="rtmp"',flashCanPlay:!0,media:"video"}},_init:function(){var i=this;if(this.element.empty(),this.status=t.extend({},this.status),this.internal=t.extend({},this.internal),this.options.timeFormat=t.extend({},t.jPlayer.timeFormat,this.options.timeFormat),this.internal.cmdsIgnored=t.jPlayer.platform.ipad||t.jPlayer.platform.iphone||t.jPlayer.platform.ipod,this.internal.domNode=this.element.get(0),this.options.keyEnabled&&!t.jPlayer.focus&&(t.jPlayer.focus=this),this.formats=[],this.solutions=[],this.require={},this.htmlElement={},this.html={},this.html.audio={},this.html.video={},this.flash={},this.css={},this.css.cs={},this.css.jq={},this.ancestorJq=[],this.options.volume=this._limitValue(this.options.volume,0,1),t.each(this.options.supplied.toLowerCase().split(","),function(e,s){var n=s.replace(/^\s+|\s+$/g,"");if(i.format[n]){var o=!1;t.each(i.formats,function(t,e){if(n===e)return o=!0,!1}),o||i.formats.push(n)}}),t.each(this.options.solution.toLowerCase().split(","),function(e,s){var n=s.replace(/^\s+|\s+$/g,"");if(i.solution[n]){var o=!1;t.each(i.solutions,function(t,e){if(n===e)return o=!0,!1}),o||i.solutions.push(n)}}),this.internal.instance="jp_"+this.count,this.instances[this.internal.instance]=this.element,this.element.attr("id")||this.element.attr("id",this.options.idPrefix+"_jplayer_"+this.count),this.internal.self=t.extend({},{id:this.element.attr("id"),jq:this.element}),this.internal.audio=t.extend({},{id:this.options.idPrefix+"_audio_"+this.count,jq:e}),this.internal.video=t.extend({},{id:this.options.idPrefix+"_video_"+this.count,jq:e}),this.internal.flash=t.extend({},{id:this.options.idPrefix+"_flash_"+this.count,jq:e,swf:this.options.swfPath+(".swf"!==this.options.swfPath.toLowerCase().slice(-4)?(this.options.swfPath&&"/"!==this.options.swfPath.slice(-1)?"/":"")+"Jplayer.swf":"")}),this.internal.poster=t.extend({},{id:this.options.idPrefix+"_poster_"+this.count,jq:e}),t.each(t.jPlayer.event,function(t,s){i.options[t]!==e&&(i.element.bind(s+".jPlayer",i.options[t]),i.options[t]=e)}),this.require.audio=!1,this.require.video=!1,t.each(this.formats,function(t,e){i.require[i.format[e].media]=!0}),this.options=this.require.video?t.extend(!0,{},this.optionsVideo,this.options):t.extend(!0,{},this.optionsAudio,this.options),this._setSize(),this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls),this.status.noFullWindow=this._uaBlocklist(this.options.noFullWindow),this.status.noVolume=this._uaBlocklist(this.options.noVolume),t.jPlayer.nativeFeatures.fullscreen.api.fullscreenEnabled&&this._fullscreenAddEventListeners(),this._restrictNativeVideoControls(),this.htmlElement.poster=document.createElement("img"),this.htmlElement.poster.id=this.internal.poster.id,this.htmlElement.poster.onload=function(){(!i.status.video||i.status.waitForPlay)&&i.internal.poster.jq.show()},this.element.append(this.htmlElement.poster),this.internal.poster.jq=t("#"+this.internal.poster.id),this.internal.poster.jq.css({width:this.status.width,height:this.status.height}),this.internal.poster.jq.hide(),this.internal.poster.jq.bind("click.jPlayer",function(){i._trigger(t.
1jPlayer.event.click)}),this.html.audio.available=!1,this.require.audio&&(this.htmlElement.audio=document.createElement("audio"),this.htmlElement.audio.id=this.internal.audio.id,this.html.audio.available=!!this.htmlElement.audio.canPlayType&&this._testCanPlayType(this.htmlElement.audio)),this.html.video.available=!1,this.require.video&&(this.htmlElement.video=document.createElement("video"),this.htmlElement.video.id=this.internal.video.id,this.html.video.available=!!this.htmlElement.video.canPlayType&&this._testCanPlayType(this.htmlElement.video)),this.flash.available=this._checkForFlash(10.1),this.html.canPlay={},this.flash.canPlay={},t.each(this.formats,function(t,e){i.html.canPlay[e]=i.html[i.format[e].media].available&&""!==i.htmlElement[i.format[e].media].canPlayType(i.format[e].codec),i.flash.canPlay[e]=i.format[e].flashCanPlay&&i.flash.available}),this.html.desired=!1,this.flash.desired=!1,t.each(this.solutions,function(e,s){if(0===e)i[s].desired=!0;else{var n=!1,o=!1;t.each(i.formats,function(t,e){i[i.solutions[0]].canPlay[e]&&("video"===i.format[e].media?o=!0:n=!0)}),i[s].desired=i.require.audio&&!n||i.require.video&&!o}}),this.html.support={},this.flash.support={},t.each(this.formats,function(t,e){i.html.support[e]=i.html.canPlay[e]&&i.html.desired,i.flash.support[e]=i.flash.canPlay[e]&&i.flash.desired}),this.html.used=!1,this.flash.used=!1,t.each(this.solutions,function(e,s){t.each(i.formats,function(t,e){if(i[s].support[e])return i[s].used=!0,!1})}),this._resetActive(),this._resetGate(),this._cssSelectorAncestor(this.options.cssSelectorAncestor),this.html.used||this.flash.used?this.css.jq.noSolution.length&&this.css.jq.noSolution.hide():(this._error({type:t.jPlayer.error.NO_SOLUTION,context:"{solution:'"+this.options.solution+"', supplied:'"+this.options.supplied+"'}",message:t.jPlayer.errorMsg.NO_SOLUTION,hint:t.jPlayer.errorHint.NO_SOLUTION}),this.css.jq.noSolution.length&&this.css.jq.noSolution.show()),this.flash.used){var s,n="jQuery="+encodeURI(this.options.noConflict)+"&id="+encodeURI(this.internal.self.id)+"&vol="+this.options.volume+"&muted="+this.options.muted;if(t.jPlayer.browser.msie&&(9>Number(t.jPlayer.browser.version)||9>t.jPlayer.browser.documentMode)){n=['<param name="movie" value="'+this.internal.flash.swf+'" />','<param name="FlashVars" value="'+n+'" />','<param name="allowScriptAccess" value="always" />','<param name="bgcolor" value="'+this.options.backgroundColor+'" />','<param name="wmode" value="'+this.options.wmode+'" />'],s=document.createElement('<object id="'+this.internal.flash.id+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="0" height="0" tabindex="-1"></object>');for(var o=0;o<n.length;o++)s.appendChild(document.createElement(n[o]))}else o=function(t,e,i){var s=document.createElement("param");s.setAttribute("name",e),s.setAttribute("value",i),t.appendChild(s)},(s=document.createElement("object")).setAttribute("id",this.internal.flash.id),s.setAttribute("data",this.internal.flash.swf),s.setAttribute("type","application/x-shockwave-flash"),s.setAttribute("width","1"),s.setAttribute("height","1"),s.setAttribute("tabindex","-1"),o(s,"flashvars",n),o(s,"allowscriptaccess","always"),o(s,"bgcolor",this.options.backgroundColor),o(s,"wmode",this.options.wmode);this.element.append(s),this.internal.flash.jq=t(s)}this.html.used&&(this.html.audio.available&&(this._addHtmlEventListeners(this.htmlElement.audio,this.html.audio),this.element.append(this.htmlElement.audio),this.internal.audio.jq=t("#"+this.internal.audio.id)),this.html.video.available&&(this._addHtmlEventListeners(this.htmlElement.video,this.html.video),this.element.append(this.htmlElement.video),this.internal.video.jq=t("#"+this.internal.video.id),this.status.nativeVideoControls?this.internal.video.jq.css({width:this.status.width,height:this.status.height}):this.internal.video.jq.css({width:"0px",height:"0px"}),this.internal.video.jq.bind("click.jPlayer",function(){i._trigger(t.jPlayer.event.click)}))),this.options.emulateHtml&&this._emulateHtmlBridge(),this.html.used&&!this.flash.used&&setTimeout(function(){i.internal.ready=!0,i.version.flash="n/a",i._trigger(t.
vendor: 4,223 bytes, line 1
1jPlayer.event.repeat),i._trigger(t.jPlayer.event.ready)},100),this._updateNativeVideoControls(),this._updateInterface(),this._updateButtons(!1),this._updateAutohide(),this._updateVolume(this.options.volume),this._updateMute(this.options.muted),this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),t.jPlayer.prototype.count++},destroy:function(){this.clearMedia(),this._removeUiClass(),this.css.jq.currentTime.length&&this.css.jq.currentTime.text(""),this.css.jq.duration.length&&this.css.jq.duration.text(""),t.each(this.css.jq,function(t,e){e.length&&e.unbind(".jPlayer")}),this.internal.poster.jq.unbind(".jPlayer"),this.internal.video.jq&&this.internal.video.jq.unbind(".jPlayer"),this._fullscreenRemoveEventListeners(),this===t.jPlayer.focus&&(t.jPlayer.focus=null),this.options.emulateHtml&&this._destroyHtmlBridge(),this.element.removeData("jPlayer"),this.element.unbind(".jPlayer"),this.element.empty(),delete this.instances[this.internal.instance]},enable:function(){},disable:function(){},_testCanPlayType:function(t){try{return t.canPlayType(this.format.mp3.codec),!0}catch(t){return!1}},_uaBlocklist:function(e){var i=navigator.userAgent.toLowerCase(),s=!1;return t.each(e,function(t,e){if(e&&e.test(i))return s=!0,!1}),s},_restrictNativeVideoControls:function(){this.require.audio&&this.status.nativeVideoControls&&(this.status.nativeVideoControls=!1,this.status.noFullWindow=!0)},_updateNativeVideoControls:function(){this.html.video.available&&this.html.used&&(this.htmlElement.video.controls=this.status.nativeVideoControls,this._updateAutohide(),this.status.nativeVideoControls&&this.require.video?(this.internal.poster.jq.hide(),this.internal.video.jq.css({width:this.status.width,height:this.status.height})):this.status.waitForPlay&&this.status.video&&(this.internal.poster.jq.show(),this.internal.video.jq.css({width:"0px",height:"0px"})))},_addHtmlEventListeners:function(e,i){var s=this;e.preload=this.options.preload,e.muted=this.options.muted,e.volume=this.options.volume,e.addEventListener("progress",function(){i.gate&&(s.internal.cmdsIgnored&&0<this.readyState&&(s.internal.cmdsIgnored=!1),s._getHtmlStatus(e),s._updateInterface(),s._trigger(t.jPlayer.event.progress))},!1),e.addEventListener("timeupdate",function(){i.gate&&(s._getHtmlStatus(e),s._updateInterface(),s._trigger(t.jPlayer.event.timeupdate))},!1),e.addEventListener("durationchange",function(){i.gate&&(s._getHtmlStatus(e),s._updateInterface(),s._trigger(t.jPlayer.event.durationchange))},!1),e.addEventListener("play",function(){i.gate&&(s._updateButtons(!0),s._html_checkWaitForPlay(),s._trigger(t.jPlayer.event.play))},!1),e.addEventListener("playing",function(){i.gate&&(s._updateButtons(!0),s._seeked(),s._trigger(t.jPlayer.event.playing))},!1),e.addEventListener("pause",function(){i.gate&&(s._updateButtons(!1),s._trigger(t.jPlayer.event.pause))},!1),e.addEventListener("waiting",function(){i.gate&&(s._seeking(),s._trigger(t.jPlayer.event.waiting))},!1),e.addEventListener("seeking",function(){i.gate&&(s._seeking(),s._trigger(t.jPlayer.event.seeking))},!1),e.addEventListener("seeked",function(){i.gate&&(s._seeked(),s._trigger(t.jPlayer.event.seeked))},!1),e.addEventListener("volumechange",function(){i.gate&&(s.options.volume=e.volume,s.options.muted=e.muted,s._updateMute(),s._updateVolume(),s._trigger(t.jPlayer.event.volumechange))},!1),e.addEventListener("suspend",function(){i.gate&&(s._seeked(),s._trigger(t.jPlayer.event.suspend))},!1),e.addEventListener("ended",function(){i.gate&&(t.jPlayer.browser.webkit||(s.htmlElement.media.currentTime=0),s.htmlElement.media.pause(),s._updateButtons(!1),s._getHtmlStatus(e,!0),s._updateInterface(),s._trigger(t.jPlayer.event.ended))},!1),e.addEventListener("error",function(){i.gate&&(s._updateButtons(!1),s._seeked(),s.status.srcSet&&(clearTimeout(s.internal.htmlDlyCmdId),s.status.waitForLoad=!0,s.status.waitForPlay=!0,s.status.video&&!s.status.nativeVideoControls&&s.internal.video.jq.css({width:"0px",height:"0px"}),s._validString(s.status.media.poster)&&!s.status.nativeVideoControls&&s.internal.poster.jq.show(),s.css.jq.videoPlay.length&&s.css.jq.videoPlay.show(),s._error({type:t.jPlayer.error.URL,context:s.status.src,message:t.jPlayer.errorMsg.URL,hint:t.
1jPlayer.errorHint.URL})))},!1),t.each(t.jPlayer.htmlEvent,function(n,o){e.addEventListener(this,function(){i.gate&&s._trigger(t.jPlayer.event[o])},!1)})},_getHtmlStatus:function(t,e){var i=0,s=0,n=0,o=0;isFinite(t.duration)&&(this.status.duration=t.duration),i=t.currentTime,s=0<this.status.duration?100*i/this.status.duration:0,"object"==typeof t.seekable&&0<t.seekable.length?(n=0<this.status.duration?100*t.seekable.end(t.seekable.length-1)/this.status.duration:100,o=0<this.status.duration?100*t.currentTime/t.seekable.end(t.seekable.length-1):0):(n=100,o=s),e&&(s=o=i=0),this.status.seekPercent=n,this.status.currentPercentRelative=o,this.status.currentPercentAbsolute=s,this.status.currentTime=i,this.status.videoWidth=t.videoWidth,this.status.videoHeight=t.videoHeight,this.status.readyState=t.readyState,this.status.networkState=t.networkState,this.status.playbackRate=t.playbackRate,this.status.ended=t.ended},_resetStatus:function(){this.status=t.extend({},this.status,t.jPlayer.prototype.status)},_trigger:function(e,i,s){(e=t.Event(e)).jPlayer={},e.jPlayer.version=t.extend({},this.version),e.jPlayer.options=t.extend(!0,{},this.options),e.jPlayer.status=t.extend(!0,{},this.status),e.jPlayer.html=t.extend(!0,{},this.html),e.jPlayer.flash=t.extend(!0,{},this.flash),i&&(e.jPlayer.error=t.extend({},i)),s&&(e.jPlayer.warning=t.extend({},s)),this.element.trigger(e)},jPlayerFlashEvent:function(e,i){if(e===t.jPlayer.event.ready)if(this.internal.ready){if(this.flash.gate){if(this.status.srcSet){var s=this.status.currentTime,n=this.status.paused;this.setMedia(this.status.media),0<s&&(n?this.pause(s):this.play(s))}this._trigger(t.jPlayer.event.flashreset)}}else this.internal.ready=!0,this.internal.flash.jq.css({width:"0px",height:"0px"}),this.version.flash=i.version,this.version.needFlash!==this.version.flash&&this._error({type:t.jPlayer.error.VERSION,context:this.version.flash,message:t.jPlayer.errorMsg.VERSION+this.version.flash,hint:t.jPlayer.errorHint.VERSION}),this._trigger(t.jPlayer.event.repeat),this._trigger(e);if(this.flash.gate)switch(e){case t.jPlayer.event.progress:case t.jPlayer.event.timeupdate:this._getFlashStatus(i),this._updateInterface(),this._trigger(e);break;case t.jPlayer.event.play:this._seeked(),this._updateButtons(!0),this._trigger(e);break;case t.jPlayer.event.pause:case t.jPlayer.event.ended:this._updateButtons(!1),this._trigger(e);break;case t.jPlayer.event.click:this._trigger(e);break;case t.jPlayer.event.error:this.status.waitForLoad=!0,this.status.waitForPlay=!0,this.status.video&&this.internal.flash.jq.css({width:"0px",height:"0px"}),this._validString(this.status.media.poster)&&this.internal.poster.jq.show(),this.css.jq.videoPlay.length&&this.status.video&&this.css.jq.videoPlay.show(),this.status.video?this._flash_setVideo(this.status.media):this._flash_setAudio(this.status.media),this._updateButtons(!1),this._error({type:t.jPlayer.error.URL,context:i.src,message:t.jPlayer.errorMsg.URL,hint:t.jPlayer.errorHint.URL});break;case t.jPlayer.event.seeking:this._seeking(),this._trigger(e);break;case t.jPlayer.event.seeked:this._seeked(),this._trigger(e);break;case t.jPlayer.event.ready:break;default:this._trigger(e)}return!1},_getFlashStatus:function(t){this.status.seekPercent=t.seekPercent,this.status.currentPercentRelative=t.currentPercentRelative,this.status.currentPercentAbsolute=t.currentPercentAbsolute,this.status.currentTime=t.currentTime,this.status.duration=t.duration,this.status.videoWidth=t.videoWidth,this.status.videoHeight=t.videoHeight,this.status.readyState=4,this.status.networkState=0,this.status.playbackRate=1,this.status.ended=!1},_updateButtons:function(t){t!==e&&(this.status.paused=!t,this.css.jq.play.length&&this.css.jq.pause.length&&(t?(this.css.jq.play.hide(),this.css.jq.pause.show()):(this.css.jq.play.show(),this.css.jq.pause.hide()))),this.css.jq.restoreScreen.length&&this.css.jq.fullScreen.length&&(this.status.noFullWindow?(this.css.jq.fullScreen.hide(),this.css.jq.restoreScreen.hide()):this.options.fullWindow?(this.css.jq.fullScreen.hide(),this.css.jq.restoreScreen.show()):(this.css.jq.fullScreen.show(),this.css.jq.restoreScreen.hide())),this.css.jq.repeat.length&&this.css.jq.repeatOff.length&&(this.options.loop?(this.css.jq.repeat.hide(),this.css.jq.repeatOff.show()):(this.css.jq.repeat.show(),this.css.jq.repeatOff.hide()))},_updateInterface:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.width(this.status.seekPercent+"%"),this.css.jq.playBar.length&&(this.options.smoothPlayBar?this.css.jq.playBar.stop().animate({width:this.status.currentPercentAbsolute+"%"},250,"linear"):this.css.jq.playBar.width(this.status.currentPercentRelative+"%")),this.css.jq.currentTime.length&&this.css.jq.currentTime.text(this._convertTime(this.status.currentTime)),this.css.jq.duration.length&&this.css.jq.duration.text(this._convertTime(this.status.duration))},_convertTime:i.prototype.time,_seeking:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.addClass("jp-seeking-bg")},_seeked:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.removeClass("jp-seeking-bg")},_resetGate:function(){this.html.audio.gate=!1,this.html.video.gate=!1,this.flash.gate=!1},_resetActive:function(){this.html.active=!1,this.flash.active=!1},setMedia:function(e){var i=this,s=!1,n=this.status.media.poster!==e.poster;this._resetMedia(),this._resetGate(),this._resetActive(),t.each(this.formats,function(n,o){var a="video"===i.format[o].media;if(t.each(i.solutions,function(t,n){if(i[n].support[o]&&i._validString(e[o])){var r="html"===n;return a?(r?(i.html.video.gate=!0,i._html_setVideo(e),i.html.active=!0):(i.flash.gate=!0,i._flash_setVideo(e),i.flash.active=!0),i.css.jq.videoPlay.length&&i.css.jq.videoPlay.show(),i.status.video=!0):(r?(i.html.audio.gate=!0,i._html_setAudio(e),i.html.active=!0):(i.flash.gate=!0,i._flash_setAudio(e),i.flash.active=!0),i.css.jq.videoPlay.length&&i.css.jq.videoPlay.hide(),i.status.video=!1),s=!0,!1}}),s)return!1}),s?(this.status.nativeVideoControls&&this.html.video.gate||!this._val
1idString(e.poster)||(n?this.htmlElement.poster.src=e.poster:this.internal.poster.jq.show()),this.status.srcSet=!0,this.status.media=t.extend({},e),this._updateButtons(!1),this._updateInterface()):this._error({type:t.jPlayer.error.NO_SUPPORT,context:"{supplied:'"+this.options.supplied+"'}",message:t.jPlayer.errorMsg.NO_SUPPORT,hint:t.jPlayer.errorHint.NO_SUPPORT})},_resetMedia:function(){this._resetStatus(),this._updateButtons(!1),this._updateInterface(),this._seeked(),this.internal.poster.jq.hide(),clearTimeout(this.internal.htmlDlyCmdId),this.html.active?this._html_resetMedia():this.flash.active&&this._flash_resetMedia()},clearMedia:function(){this._resetMedia(),this.html.active?this._html_clearMedia():this.flash.active&&this._flash_clearMedia(),this._resetGate(),this._resetActive()},load:function(){this.status.srcSet?this.html.active?this._html_load():this.flash.active&&this._flash_load():this._urlNotSetError("load")},focus:function(){this.options.keyEnabled&&(t.jPlayer.focus=this)},play:function(t){t="number"==typeof t?t:NaN,this.status.srcSet?(this.focus(),this.html.active?this._html_play(t):this.flash.active&&this._flash_play(t)):this._urlNotSetError("play")},videoPlay:function(){this.play()},pause:function(t){t="number"==typeof t?t:NaN,this.status.srcSet?this.html.active?this._html_pause(t):this.flash.active&&this._flash_pause(t):this._urlNotSetError("pause")},pauseOthers:function(){var e=this;t.each(this.instances,function(t,i){e.element!==i&&i.data("jPlayer").status.srcSet&&i.jPlayer("pause")})},stop:function(){this.status.srcSet?this.html.active?this._html_pause(0):this.flash.active&&this._flash_pause(0):this._urlNotSetError("stop")},playHead:function(t){t=this._limitValue(t,0,100),this.status.srcSet?this.html.active?this._html_playHead(t):this.flash.active&&this._flash_playHead(t):this._urlNotSetError("playHead")},_muted:function(e){this.options.muted=e,this.html.used&&this._html_mute(e),this.flash.used&&this._flash_mute(e),!this.html.video.gate&&!this.html.audio.gate&&(this._updateMute(e),this._updateVolume(this.options.volume),this._trigger(t.jPlayer.event.volumechange))},mute:function(t){t=t===e||!!t,this._muted(t)},unmute:function(t){t=t===e||!!t,this._muted(!t)},_updateMute:function(t){t===e&&(t=this.options.muted),this.css.jq.mute.length&&this.css.jq.unmute.length&&(this.status.noVolume?(this.css.jq.mute.hide(),this.css.jq.unmute.hide()):t?(this.css.jq.mute.hide(),this.css.jq.unmute.show()):(this.css.jq.mute.show(),this.css.jq.unmute.hide()))},volume:function(e){e=this._limitValue(e,0,1),this.options.volume=e,this.html.used&&this._html_volume(e),this.flash.used&&this._flash_volume(e),!this.html.video.gate&&!this.html.audio.gate&&(this._updateVolume(e),this._trigger(t.jPlayer.event.volumechange))},volumeBar:function(t){if(this.css.jq.volumeBar.length){var e=this.css.jq.volumeBar.offset(),i=t.pageX-e.left,s=this.css.jq.volumeBar.width();t=this.css.jq.volumeBar.height()-t.pageY+e.top,e=this.css.jq.volumeBar.height(),this.options.verticalVolume?this.volume(t/e):this.volume(i/s)}this.options.muted&&this._muted(!1)},volumeBarValue:function(t){this.volumeBar(t)},_updateVolume:function(t){t===e&&(t=this.options.volume),t=this.options.muted?0:t,this.status.noVolume?(this.css.jq.volumeBar.length&&this.css.jq.volumeBar.hide(),this.css.jq.volumeBarValue.length&&this.css.jq.volumeBarValue.hide(),this.css.jq.volumeMax.length&&this.css.jq.volumeMax.hide()):(this.css.jq.volumeBar.length&&this.css.jq.volumeBar.show(),this.css.jq.volumeBarValue.length&&(this.css.jq.volumeBarValue.show(),this.css.jq.volumeBarValue[this.options.verticalVolume?"height":"width"](100*t+"%")),this.css.jq.volumeMax.length&&this.css.jq.volumeMax.show())},volumeMax:function(){this.volume(1),this.options.muted&&this._muted(!1)},_cssSelectorAncestor:function(e){var i=this;this.options.cssSelectorAncestor=e,this._removeUiClass(),this.ancestorJq=e?t(e):[],e&&1!==this.ancestorJq.length&&this._warning({type:t.jPlayer.warning.CSS_SELECTOR_COUNT,context:e,message:t.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.ancestorJq.length+" found for cssSelectorAncestor.",hint:t.jPlayer.warningHint.CSS_SELECTOR_COUNT}),this._addUiClass(),t.each(this.options.cssSelector,function(t,e){i._cssSelector(t,e)})},_cssSelector:function(e,i){var s=this;"string"==typeof i?t.jPlayer.prototype.options.cssSelector[e]?(this.css.jq[e]&&this.css.jq[e].length&&this.css.jq[e].unbind(".jPlayer"),this.options.cssSelector[e]=i,this.css.cs[e]=this.options.cssSelectorAncestor+" "+i,this.css.jq[e]=i?t(this.css.cs[e]):[],this.css.jq[e].length&&this.css.jq[e].bind("click.jPlayer",function(i){i.preventDefault(),s[e](i),t(this).blur()}),i&&1!==this.css.jq[e].length&&this._warning({type:t.jPlayer.warning.CSS_SELECTOR_COUNT,context:this.css.cs[e],message:t.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.css.jq[e].length+" found for "+e+" method.",hint:t.jPlayer.warningHint.CSS_SELECTOR_COUNT})):this._warning({type:t.jPlayer.warning.CSS_SELECTOR_METHOD,context:e,message:t.jPlayer.warningMsg.CSS_SELECTOR_METHOD,hint:t.
1jPlayer.warningHint.CSS_SELECTOR_METHOD}):this._warning({type:t.jPlayer.warning.CSS_SELECTOR_STRING,context:i,message:t.jPlayer.warningMsg.CSS_SELECTOR_STRING,hint:t.jPlayer.warningHint.CSS_SELECTOR_STRING})},seekBar:function(t){if(this.css.jq.seekBar){var e=this.css.jq.seekBar.offset();t=t.pageX-e.left,e=this.css.jq.seekBar.width(),this.playHead(100*t/e)}},playBar:function(t){this.seekBar(t)},repeat:function(){this._loop(!0)},repeatOff:function(){this._loop(!1)},_loop:function(e){this.options.loop!==e&&(this.options.loop=e,this._updateButtons(),this._trigger(t.jPlayer.event.repeat))},currentTime:function(){},duration:function(){},gui:function(){},noSolution:function(){},option:function(i,s){var n=i;if(0===arguments.length)return t.extend(!0,{},this.options);if("string"==typeof i){var o=i.split(".");if(s===e){n=t.extend(!0,{},this.options);for(var a=0;a<o.length;a++){if(n[o[a]]===e)return this._warning({type:t.jPlayer.warning.OPTION_KEY,context:i,message:t.jPlayer.warningMsg.OPTION_KEY,hint:t.jPlayer.warningHint.OPTION_KEY}),e;n=n[o[a]]}return n}a=n={};for(var r=0;r<o.length;r++)r<o.length-1?(a[o[r]]={},a=a[o[r]]):a[o[r]]=s}return this._setOptions(n),this},_setOptions:function(e){var i=this;return t.each(e,function(t,e){i._setOption(t,e)}),this},_setOption:function(e,i){var s=this;switch(e){case"volume":this.volume(i);break;case"muted":this._muted(i);break;case"cssSelectorAncestor":this._cssSelectorAncestor(i);break;case"cssSelector":t.each(i,function(t,e){s._cssSelector(t,e)});break;case"fullScreen":if(this.options[e]!==i){var n=t.jPlayer.nativeFeatures.fullscreen.used.webkitVideo;(!n||n&&!this.status.waitForPlay)&&(n||(this.options[e]=i),i?this._requestFullscreen():this._exitFullscreen(),n||this._setOption("fullWindow",i))}break;case"fullWindow":this.options[e]!==i&&(this._removeUiClass(),this.options[e]=i,this._refreshSize());break;case"size":!this.options.fullWindow&&this.options[e].cssClass!==i.cssClass&&this._removeUiClass(),this.options[e]=t.extend({},this.options[e],i),this._refreshSize();break;case"sizeFull":this.options.fullWindow&&this.options[e].cssClass!==i.cssClass&&this._removeUiClass(),this.options[e]=t.extend({},this.options[e],i),this._refreshSize();break;case"autohide":this.options[e]=t.extend({},this.options[e],i),this._updateAutohide();break;case"loop":this._loop(i);break;case"nativeVideoControls":this.options[e]=t.extend({},this.options[e],i),this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls),this._restrictNativeVideoControls(),this._updateNativeVideoControls();break;case"noFullWindow":this.options[e]=t.extend({},this.options[e],i),this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls),this.status.noFullWindow=this._uaBlocklist(this.options.noFullWindow),this._restrictNativeVideoControls(),this._updateButtons();break;case"noVolume":this.options[e]=t.extend({},this.options[e],i),this.status.noVolume=this._uaBlocklist(this.options.noVolume),this._updateVolume(),this._updateMute();break;case"emulateHtml":this.options[e]!==i&&((this.options[e]=i)?this._emulateHtmlBridge():this._destroyHtmlBridge());break;case"timeFormat":this.options[e]=t.extend({},this.options[e],i);break;case"keyEnabled":this.options[e]=i,!i&&this===t.jPlayer.focus&&(t.jPlayer.focus=null);break;case"keyBindings":this.options[e]=t.extend(!0,{},this.options[e],i);break;case"audioFullScreen":this.options[e]=i}return this},_refreshSize:function(){this._setSize(),this._addUiClass(),this._updateSize(),this._updateButtons(),this._updateAutohide(),this._trigger(t.jPlayer.event.resize)},_setSize:function(){this.options.fullWindow?(this.status.width=this.options.sizeFull.width,this.status.height=this.options.sizeFull.height,this.status.cssClass=this.options.sizeFull.cssClass):(this.status.width=this.options.size.width,this.status.height=this.options.size.height,this.status.cssClass=this.options.size.cssClass),this.element.css({width:this.status.width,height:this.status.height})},_addUiClass:function(){this.ancestorJq.length&&this.ancestorJq.addClass(this.status.cssClass)},_removeUiClass:function(){this.ancestorJq.length&&this.ancestorJq.removeClass(this.status.cssClass)},_updateSize:function(){this.internal.poster.jq.css({width:this.status.width,height:this.status.height}),!this.status.waitForPlay&&this.html.active&&this.status.video||this.html.video.available&&this.html.used&&this.status.nativeVideoControls?this.internal.video.jq.css({width:this.status.width,height:this.status.height}):!this.status.waitForPlay&&this.flash.active&&this.status.video&&this.internal.flash.jq.css({width:this.status.width,height:this.status.height})},_updateAutohide:function(){var t=this,e=function(){t.css.jq.gui.fadeIn(t.o
vendor: 8,423 bytes, line 1
1ptions.autohide.fadeIn,function(){clearTimeout(t.internal.autohideId),t.internal.autohideId=setTimeout(function(){t.css.jq.gui.fadeOut(t.options.autohide.fadeOut)},t.options.autohide.hold)})};this.css.jq.gui.length&&(this.css.jq.gui.stop(!0,!0),clearTimeout(this.internal.autohideId),this.element.unbind(".jPlayerAutohide"),this.css.jq.gui.unbind(".jPlayerAutohide"),this.status.nativeVideoControls?this.css.jq.gui.hide():this.options.fullWindow&&this.options.autohide.full||!this.options.fullWindow&&this.options.autohide.restored?(this.element.bind("mousemove.jPlayer.jPlayerAutohide",e),this.css.jq.gui.bind("mousemove.jPlayer.jPlayerAutohide",e),this.css.jq.gui.hide()):this.css.jq.gui.show())},fullScreen:function(){this._setOption("fullScreen",!0)},restoreScreen:function(){this._setOption("fullScreen",!1)},_fullscreenAddEventListeners:function(){var e=this,i=t.jPlayer.nativeFeatures.fullscreen;i.api.fullscreenEnabled&&i.event.fullscreenchange&&("function"!=typeof this.internal.fullscreenchangeHandler&&(this.internal.fullscreenchangeHandler=function(){e._fullscreenchange()}),document.addEventListener(i.event.fullscreenchange,this.internal.fullscreenchangeHandler,!1))},_fullscreenRemoveEventListeners:function(){var e=t.jPlayer.nativeFeatures.fullscreen;this.internal.fullscreenchangeHandler&&document.addEventListener(e.event.fullscreenchange,this.internal.fullscreenchangeHandler,!1)},_fullscreenchange:function(){this.options.fullScreen&&!t.jPlayer.nativeFeatures.fullscreen.api.fullscreenElement()&&this._setOption("fullScreen",!1)},_requestFullscreen:function(){var e=this.ancestorJq.length?this.ancestorJq[0]:this.element[0],i=t.jPlayer.nativeFeatures.fullscreen;i.used.webkitVideo&&(e=this.htmlElement.video),i.api.fullscreenEnabled&&i.api.requestFullscreen(e)},_exitFullscreen:function(){var e,i=t.jPlayer.nativeFeatures.fullscreen;i.used.webkitVideo&&(e=this.htmlElement.video),i.api.fullscreenEnabled&&i.api.exitFullscreen(e)},_html_initMedia:function(e){var i=t(this.htmlElement.media).empty();t.each(e.track||[],function(t,e){var s=document.createElement("track");s.setAttribute("kind",e.kind?e.kind:""),s.setAttribute("src",e.src?e.src:""),s.setAttribute("srclang",e.srclang?e.srclang:""),s.setAttribute("label",e.label?e.label:""),e.def&&s.setAttribute("default",e.def),i.append(s)}),this.htmlElement.media.src=this.status.src,"none"!==this.options.preload&&this._html_load(),this._trigger(t.jPlayer.event.timeupdate)},_html_setFormat:function(e){var i=this;t.each(this.formats,function(t,s){if(i.html.support[s]&&e[s])return i.status.src=e[s],i.status.format[s]=!0,i.status.formatType=s,!1})},_html_setAudio:function(t){this._html_setFormat(t),this.htmlElement.media=this.htmlElement.audio,this._html_initMedia(t)},_html_setVideo:function(t){this._html_setFormat(t),this.status.nativeVideoControls&&(this.htmlElement.video.poster=this._validString(t.poster)?t.poster:""),this.htmlElement.media=this.htmlElement.video,this._html_initMedia(t)},_html_resetMedia:function(){this.htmlElement.media&&(this.htmlElement.media.id===this.internal.video.id&&!this.status.nativeVideoControls&&this.internal.video.jq.css({width:"0px",height:"0px"}),this.htmlElement.media.pause())},_html_clearMedia:function(){this.htmlElement.media&&(this.htmlElement.media.src="about:blank",this.htmlElement.media.load())},_html_load:function(){this.status.waitForLoad&&(this.status.waitForLoad=!1,this.htmlElement.media.load()),clearTimeout(this.internal.htmlDlyCmdId)},_html_play:function(t){var e=this,i=this.htmlElement.media;if(this._html_load(),isNaN(t))i.play();else{this.internal.cmdsIgnored&&i.play();try{if(i.seekable&&!("object"==typeof i.seekable&&0<i.seekable.length))throw 1;i.currentTime=t,i.play()}catch(i){return void(this.internal.htmlDlyCmdId=setTimeout(function(){e.play(t)},250))}}this._html_checkWaitForPlay()},_html_pause:function(t){var e=this,i=this.htmlElement.media;if(0<t?this._html_load():clearTimeout(this.internal.htmlDlyCmdId),i.pause(),!isNaN(t))try{if(i.seekable&&!("object"==typeof i.seekable&&0<i.seekable.length))throw 1;i.currentTime=t}catch(i){return void(this.internal.htmlDlyCmdId=setTimeout(function(){e.pause(t)},250))}0<t&&this._html_checkWaitForPlay()},_html_playHead:function(t){var e=this,i=this.htmlElement.media;this._html_load();try{if("object"==typeof i.seekable&&0<i.seekable.length)i.currentTime=t*i.seekable.end(i.seekable.length-1)/100;else{if(!(0<i.duration)||isNaN(i.duration))throw"e";i.currentTime=t*i.duration/100}}catch(i){return void(this.internal.htmlDlyCmdId=setTimeout(function(){e.playHead(t)},250))}this.status.waitForLoad||this._html_checkWaitForPlay()},_html_checkWaitForPlay:function(){this.status.waitForPlay&&(this.status.waitForPlay=!1,this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),this.status.video&&(this.internal.poster.jq.hide(),this.internal.video.jq.css({width:this.status.width,height:this.status.height})))},_html_volume:function(t){this.html.audio.available&&(this.htmlElement.audio.volume=t),this.html.video.available&&(this.htmlElement.video.volume=t)},_html_mute:function(t){this.html.audio.available&&(this.htmlElement.audio.muted=t),this.html.video.available&&(this.htmlElement.video.muted=t)},_flash_setAudio:function(e){var i=this;try{t.each(this.formats,function(t,s){if(i.flash.support[s]&&e[s]){switch(s){case"m4a":case"fla":i._getMovie().fl_setAudio_m4a(e[s]);break;case"mp3":i._getMovie().fl_setAudio_mp3(e[s]);break;case"rtmpa":i._getMovie().fl_setAudio_rtmp(e[s])}return i.status.src=e[s],i.status.format[s]=!0,i.status.formatType=s,!1}}),"auto"===this.options.preload&&(this._flash_load(),this.status.waitForLoad=!1)}catch(t){this._flashError(t)}},_flash_setVideo:function(e){var i=this;try{t.each(this.formats,function(t,s){if(i.flash.support[s]&&e[s]){switch(s){case"m4v":case"flv":i._getMovie().fl_setVideo_m4v(e[s]);break;case"rtmpv":i._getMovie().fl_setVideo_rtmp(e[s])}return i.status.src=e[s],i.status.format[s]=!0,i.status.formatType=s,!1}}),"auto"===this.options.preload&&(this._flash_load(),this.status.waitForLoad=!1)}catch(t){this._flashError(t)}},_flash_resetMedia:function(){this.internal.flash.jq.css({width:"0px",height:"0px"}),this._flash_pause(NaN)},_flash_clearMedia:function(){try{this._getMovie().fl_clearMedia()}catch(t){this._flashError(t)}},_flash_load:function(){try{this._getMovie().fl_load()}catch(t){this._flashError(t)}this.status.waitForLoad=!1},_flash_play:function(t){try{this._getMovie().fl_play(t)}catch(t){this._flashError(t)}this.status.waitForLoad=!1,this._flash_checkWaitForPlay()},_flash_pause:function(t){try{this._getMovie().fl_pause(t)}catch(t){this._flashError(t)}0<t&&(this.status.waitForLoad=!1,this._flash_checkWaitForPlay())},_flash_playHead:function(t){try{this._getMovie().fl_play_head(t)}catch(t){this._flashError(t)}this.status.waitForLoad||this._flash_checkWaitForPlay()},_flash_checkWaitForPlay:function(){this.status.waitForPlay&&(this.status.waitForPlay=!1,this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),this.status.video&&(this.internal.poster.jq.hide(),this.internal.flash.jq.css({width:this.status.width,height:this.status.height})))},_flash_volume:function(t){try{this._getMovie().fl_volume(t)}catch(t){this._flashError(t)}},_flash_mute:function(t){try{this._getMovie().fl_mute(t)}catch(t){this._flashError(t)}},_getMovie:function(){return document[this.internal.flash.id]},_getFlashPluginVersion:function(){var t,e=0;if(window.ActiveXObject)try{if(t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")){var i=t.GetVariable("$version");i&&(i=i.split(" ")[1].split(","),e=parseInt(i[0],10)+"."+parseInt(i[1],10))}}catch(t){}else navigator.plugins&&0<navigator.mimeTypes.length&&(t=navigator.plugins["Shockwave Flash"])&&(e=navigator.plugins["Shockwave Flash"].description.replace(/.*\s(\d+\.\d+).*/,"$1"));return 1*e},_checkForFlash:function(t){var e=!1;return this._getFlashPluginVersion()>=t&&(e=!0),e},_validString:function(t){return t&&"string"==typeof t},_limitValue:function(t,e,i){return t<e?e:t>i?i:t},_urlNotSetError:function(e){this._error({type:t.jPlayer.error.URL_NOT_SET,context:e,message:t.jPlayer.errorMsg.URL_NOT_SET,hint:t.jPlayer.errorHint.URL_NOT_SET})},_flashError:function(e){var i;i=this.internal.ready?"FLASH_DISABLED":"FLASH",this._error({type:t.jPlayer.error[i],context:this.internal.flash.swf,message:t.jPlayer.errorMsg[i]+e.message,hint:t.jPlayer.errorHint[i]}),this.internal.flash.jq.css({width:"1px",height:"1px"})}
1,_error:function(e){this._trigger(t.jPlayer.event.error,e),this.options.errorAlerts&&this._alert("Error!"+(e.message?"\n\n"+e.message:"")+(e.hint?"\n\n"+e.hint:"")+"\n\nContext: "+e.context)},_warning:function(i){this._trigger(t.jPlayer.event.warning,e,i),this.options.warningAlerts&&this._alert("Warning!"+(i.message?"\n\n"+i.message:"")+(i.hint?"\n\n"+i.hint:"")+"\n\nContext: "+i.context)},_alert:function(t){alert("jPlayer "+this.version.script+" : id='"+this.internal.self.id+"' : "+t)},_emulateHtmlBridge:function(){var e=this;t.each(t.jPlayer.emulateMethods.split(/\s+/g),function(t,i){e.internal.domNode[i]=function(t){e[i](t)}}),t.each(t.jPlayer.event,function(i,s){var n=!0;t.each(t.jPlayer.reservedEvent.split(/\s+/g),function(t,e){if(e===i)return n=!1}),n&&e.element.bind(s+".jPlayer.jPlayerHtml",function(){e._emulateHtmlUpdate();var t=document.createEvent("Event");t.initEvent(i,!1,!0),e.internal.domNode.dispatchEvent(t)})})},_emulateHtmlUpdate:function(){var e=this;t.each(t.jPlayer.emulateStatus.split(/\s+/g),function(t,i){e.internal.domNode[i]=e.status[i]}),t.each(t.jPlayer.emulateOptions.split(/\s+/g),function(t,i){e.internal.domNode[i]=e.options[i]})},_destroyHtmlBridge:function(){var e=this;this.element.unbind(".jPlayerHtml"),t.each((t.jPlayer.emulateMethods+" "+t.jPlayer.emulateStatus+" "+t.jPlayer.emulateOptions).split(/\s+/g),function(t,i){delete e.internal.domNode[i]})}},t.jPlayer.error={FLASH:"e_flash",FLASH_DISABLED:"e_flash_disabled",NO_SOLUTION:"e_no_solution",NO_SUPPORT:"e_no_support",URL:"e_url",URL_NOT_SET:"e_url_not_set",VERSION:"e_version"},t.jPlayer.errorMsg={FLASH:"jPlayer's Flash fallback is not configured correctly, or a command was issued before the jPlayer Ready event. Details: ",FLASH_DISABLED:"jPlayer's Flash fallback has been disabled by the browser due to the CSS rules you have used. Details: ",NO_SOLUTION:"No solution can be found by jPlayer in this browser. Neither HTML nor Flash can be used.",NO_SUPPORT:"It is not possible to play any media format provided in setMedia() on this browser using your current options.",URL:"Media URL could not be loaded.",URL_NOT_SET:"Attempt to issue media playback commands, while no media url is set.",VERSION:"jPlayer "+t.jPlayer.prototype.version.script+" needs Jplayer.swf version "+t.jPlayer.prototype.version.needFlash+" but found "}
1,t.jPlayer.errorHint={FLASH:"Check your swfPath option and that Jplayer.swf is there.",FLASH_DISABLED:"Check that you have not display:none; the jPlayer entity or any ancestor.",NO_SOLUTION:"Review the jPlayer options: support and supplied.",NO_SUPPORT:"Video or audio formats defined in the supplied option are missing.",URL:"Check media URL is valid.",URL_NOT_SET:"Use setMedia() to set the media URL.",VERSION:"Update jPlayer files."},t.jPlayer.warning={CSS_SELECTOR_COUNT:"e_css_selector_count",CSS_SELECTOR_METHOD:"e_css_selector_method",CSS_SELECTOR_STRING:"e_css_selector_string",OPTION_KEY:"e_option_key"},t.jPlayer.warningMsg={CSS_SELECTOR_COUNT:"The number of css selectors found did not equal one: ",CSS_SELECTOR_METHOD:"The methodName given in jPlayer('cssSelector') is not a valid jPlayer method.",CSS_SELECTOR_STRING:"The methodCssSelector given in jPlayer('cssSelector') is not a String or is empty.",OPTION_KEY:"The option requested in jPlayer('option') is undefined."},t.jPlayer.warningHint={CSS_SELECTOR_COUNT:"Check your css selector and the ancestor.",CSS_SELECTOR_METHOD:"Check your method name.",CSS_SELECTOR_STRING:"Check your css selector is a string.",OPTION_KEY:"Check your option name."}}),function(t,e){jPlayerPlaylist=function(e,i,s){var n=this;this.current=0,this.removing=this.shuffled=this.loop=!1,this.cssSelector=t.extend({},this._cssSelector,e),this.options=t.extend(!0,{keyBindings:{next:{key:39,fn:function(){n.next()}},previous:{key:37,fn:function(){n.previous()}}}},this._options,s),this.playlist=[],this.original=[],this._initPlaylist(i),this.cssSelector.title=this.cssSelector.cssSelectorAncestor+" .jp-title",this.cssSelector.playlist=this.cssSelector.cssSelectorAncestor+" .jp-playlist",this.cssSelector.next=this.cssSelector.cssSelectorAncestor+" .jp-next",this.cssSelector.previous=this.cssSelector.cssSelectorAncestor+" .jp-previous",this.cssSelector.shuffle=this.cssSelector.cssSelectorAncestor+" .jp-shuffle",this.cssSelector.shuffleOff=this.cssSelector.cssSelectorAncestor+" .jp-shuffle-off",this.options.cssSelectorAncestor=this.cssSelector.cssSelectorAncestor,this.options.repeat=function(t){n.loop=t.jPlayer.options.loop},t(this.cssSelector.jPlayer).bind(t.jPlayer.event.ready,function(){n._init()}),t(this.cssSelector.jPlayer).bind(t.jPlayer.event.ended,function(){n.next()}),t(this.cssSelector.jPlayer).bind(t.jPlayer.event.play,function(){t(this).jPlayer("pauseOthers")}),t(this.cssSelector.jPlayer).bind(t.jPlayer.event.resize,function(e){e.jPlayer.options.fullScreen?t(n.cssSelector.title).show():t(n.cssSelector.title).hide()}),t(this.cssSelector.previous).click(function(){return n.previous(),t(this).blur(),!1}),t(this.cssSelector.next).click(function(){return n.next(),t(this).blur(),!1}),t(this.cssSelector.shuffle).click(function(){return n.shuffle(!0),!1}),t(this.cssSelector.shuffleOff).click(function(){return n.shuffle(!1),!1}).hide(),this.options.fullScreen||t(this.cssSelector.title).hide(),t(this.cssSelector.playlist+" ul").empty(),this._createItemHandlers(),t(this.cssSelector.jPlayer).jPlayer(this.options)},jPlayerPlaylist.prototype={_cssSelector:{jPlayer:"#jquery_jplayer_1",cssSelectorAncestor:"#jp_container_1"},_options:{playlistOptions:{autoPlay:!1,loopOnPrevious:!1,shuffleOnLoop:!0,enableRemoveControls:!1,displayTime:"slow",addTime:"fast",removeTime:"fast",shuffleTime:"slow",itemClass:"jp-playlist-item",freeGroupClass:"jp-free-media",freeItemClass:"jp-playlist-item-free",removeItemClass:"jp-playlist-item-remove"}},option:function(t,i){if(i===e)return this.options.playlistOptions[t];switch(this.options.playlistOptions[t]=i,t){case"enableRemoveControls":this._updateControls();break;case"itemClass":case"freeGroupClass":case"freeItemClass":case"removeItemClass":this._refresh(!0),this._createItemHandlers()}return this},_init:function(){var t=this;this._refresh(function(){t.options.playlistOptions.autoPlay?t.play(t.current):t.select(t.current)})},_initPlaylist:function(e){this.current=0,this.removing=this.shuffled=!1,this.original=t.extend(!0,[],e),this._originalPlaylist()},_originalPlaylist:function(){var e=this;this.playlist=[],t.each(this.original,function(t){e.playlist[t]=e.original[t]})},_refresh:function(e){var i=this;if(e&&!t.isFunction(e))t(this.cssSelector.playlist+" ul").empty(),t.each(this.playlist,function(e){t(i.cssSelector.playlist+" ul").append(i._createListItem(i.playlist[e]))}),this._updateControls();else{var s=t(this.cssSelector.playlist+" ul").children().length?this.options.playlistOptions.displayTime:0;t(this.cssSelector.playlist+" ul").slideUp(s,function(){var s=t(this);t(this).empty(),t.each(i.playlist,function(t){s.append(i._createListItem(i.playlist[t]))}),i._updateControls(),t.isFunction(e)&&e(),i.playlist.length?t(this).slideDown(0):t(this).show()})}},_createListItem:function(e){var i=this,s=(s="<li><div>")+"<a href='javascript:;' class='"+this.options.playlistOptions.removeItemClass+"'>&times;</a>";if(e.free){var n=!0;s=s+"<span class='"+this.options.playlistOptions.freeGroupClass+"'>(";t.each(e,function(e,o){t.jPlayer.prototype.format[e]&&(n?n=!1:s+=" | ",s+="<a class='"+i.options.playlistOptions.freeItemClass+"' href='"+o+"' tabindex='1'>"+e+"</a>")}),s+=")</span>"}return s+="<a href='javascript:;' class='"+this.options.playlistOptions.itemClass+"' tabindex='1'>"+e.title+(e.artist?" <span class='jp-artist'>by "+e.artist+"</span>":"")+"</a>",s+="</div></li>"},_createItemHandlers:function(){var e=this;
1t(this.cssSelector.playlist).off("click","a."+this.options.playlistOptions.itemClass).on("click","a."+this.options.playlistOptions.itemClass,function(){var i=t(this).parent().parent().index();return e.current!==i?e.play(i):t(e.cssSelector.jPlayer).jPlayer("play"),t(this).blur(),!1}),t(this.cssSelector.playlist).off("click","a."+this.options.playlistOptions.freeItemClass).on("click","a."+this.options.playlistOptions.freeItemClass,function(){return t(this).parent().parent().find("."+e.options.playlistOptions.itemClass).click(),t(this).blur(),!1}),t(this.cssSelector.playlist).off("click","a."+this.options.playlistOptions.removeItemClass).on("click","a."+this.options.playlistOptions.removeItemClass,function(){var i=t(this).parent().parent().index();return e.remove(i),t(this).blur(),!1})},_updateControls:function(){this.options.playlistOptions.enableRemoveControls?t(this.cssSelector.playlist+" ."+this.options.playlistOptions.removeItemClass).show():t(this.cssSelector.playlist+" ."+this.options.playlistOptions.removeItemClass).hide(),this.shuffled?(t(this.cssSelector.shuffleOff).show(),t(this.cssSelector.shuffle).hide()):(t(this.cssSelector.shuffleOff).hide(),t(this.cssSelector.shuffle).show())},_highlight:function(i){this.playlist.length&&i!==e&&(t(this.cssSelector.playlist+" .jp-playlist-current").removeClass("jp-playlist-current"),t(this.cssSelector.playlist+" li:nth-child("+(i+1)+")").addClass("jp-playlist-current").find(".jp-playlist-item").addClass("jp-playlist-current"),t(this.cssSelector.title+" li").html(this.playlist[i].title+(this.playlist[i].artist?" <span class='jp-artist'>by "+this.playlist[i].artist+"</span>":"")))},setPlaylist:function(t){this._initPlaylist(t),this._init()},add:function(e,i){t(this.cssSelector.playlist+" ul").append(this._createListItem(e)).find("li:last-child").hide().slideDown(this.options.playlistOptions.addTime),this._updateControls(),this.original.push(e),this.playlist.push(e),i?this.play(this.playlist.length-1):1===this.original.length&&this.select(0)},remove:function(i){var s=this;return i===e?(this._initPlaylist([]),this._refresh(function(){t(s.cssSelector.jPlayer).jPlayer("clearMedia")}),!0):!this.removing&&(0<=(i=0>i?s.original.length+i:i)&&i<this.playlist.length&&(this.removing=!0,t(this.cssSelector.playlist+" li:nth-child("+(i+1)+")").slideUp(this.options.playlistOptions.removeTime,function(){if(t(this).remove(),s.shuffled){var e=s.playlist[i];t.each(s.original,function(t){if(s.original[t]===e)return s.original.splice(t,1),!1})}else s.original.splice(i,1);
1s.playlist.splice(i,1),s.original.length?i===s.current?(s.current=i<s.original.length?s.current:s.original.length-1,s.select(s.current)):i<s.current&&s.current--:(t(s.cssSelector.jPlayer).jPlayer("clearMedia"),s.current=0,s.shuffled=!1,s._updateControls()),s.removing=!1})),!0)},select:function(e){0<=(e=0>e?this.original.length+e:e)&&e<this.playlist.length?(this.current=e,this._highlight(e),t(this.cssSelector.jPlayer).jPlayer("setMedia",this.playlist[this.current])):this.current=0},play:function(i){0<=(i=0>i?this.original.length+i:i)&&i<this.playlist.length?this.playlist.length&&(this.select(i),t(this.cssSelector.jPlayer).jPlayer("play")):i===e&&t(this.cssSelector.jPlayer).jPlayer("play")},pause:function(){t(this.cssSelector.jPlayer).jPlayer("pause")},next:function(){var t=this.current+1<this.playlist.length?this.current+1:0;this.loop?0===t&&this.shuffled&&this.options.playlistOptions.shuffleOnLoop&&1<this.playlist.length?this.shuffle(!0,!0):this.play(t):0<t&&this.play(t)},previous:function(){var t=0<=this.current-1?this.current-1:this.playlist.length-1;(this.loop&&this.options.playlistOptions.loopOnPrevious||t<this.playlist.length-1)&&this.play(t)},shuffle:function(i,s){var n=this;i===e&&(i=!this.shuffled),(i||i!==this.shuffled)&&t(this.cssSelector.playlist+" ul").slideUp(this.options.playlistOptions.shuffleTime,function(){(n.shuffled=i)?n.playlist.sort(function(){return.5-Math.random()}):n._originalPlaylist(),n._refresh(!0),s||!t(n.cssSelector.jPlayer).data("jPlayer").status.paused?n.play(0):n.select(0),t(this).slideDown(n.options.playlistOptions.shuffleTime)})}}}(jQuery),function(t){t.extend(t.ui,{multiDatesPicker:{version:"1.6.1"}}),t.fn.multiDatesPicker=function(e){var i=arguments,s=this,n=(new Date,new Date(0),{});function o(t,e){for(var i in e||(e="picked"),t=l.call(this,t),this.multiDatesPicker.dates[e])if(!h.compareDates(this.multiDatesPicker.dates[e][i],t))return this.multiDatesPicker.dates[e].splice(i,1).pop()}function a(t,e){return e||(e="picked"),this.multiDatesPicker.dates[e].splice(t,1).pop()}function r(t,e,i){e||(e="picked"),(t=l.call(this,t)).setHours(0),t.setMinutes(0),t.setSeconds(0),t.setMilliseconds(0),!1===h.gotDate.call(this,t,e)&&(this.multiDatesPicker.dates[e].push(t),i||this.multiDatesPicker.dates[e].sort(h.compareDates))}function l(t,e,i){return e||(e="object"),h.dateConvert.call(this,t,e,i)}var h={init:function(e){var i=t(this);this.multiDatesPicker.changed=!1;var s={beforeShow:function(t,e){this.multiDatesPicker.changed=!1,this.multiDatesPicker.originalBeforeShow&&this.multiDatesPicker.originalBeforeShow.call(this,t,e)},onSelect:function(e,i){var s=t(this);if(this.multiDatesPicker.changed=!0,e&&s.multiDatesPicker("toggleDate",e),"normal"==this.multiDatesPicker.mode&&this.multiDatesPicker.dates.picked.length>0&&this.multiDatesPicker.pickableRange){var n=this.multiDatesPicker.dates.picked[0],o=new Date(n.getTime());if(h.sumDays(o,this.multiDatesPicker.pickableRange-1),this.multiDatesPicker.adjustRangeToDisabled){var a,r=this.multiDatesPicker.dates.disabled.slice(0);do{a=0;for(var l=0;l<r.length;l++)r[l].getTime()<=o.getTime()&&(n.getTime()<=r[l].getTime()&&r[l].getTime()<=o.getTime()&&a++,r.splice(l,1),l--);o.setDate(o.getDate()+a)}while(0!=a)}this.multiDatesPicker.maxDate&&o>this.multiDatesPicker.maxDate&&(o=this.multiDatesPicker.maxDate),s.datepicker("option","minDate",n).datepicker("option","maxDate",o)}else s.datepicker("option","minDate",this.multiDatesPicker.minDate).datepicker("option","maxDate",this.multiDatesPicker.maxDate);"INPUT"==this.tagName&&s.val(s.multiDatesPicker("getDates","string")),this.multiDatesPicker.originalOnSelect&&e&&this.multiDatesPicker.originalOnSelect.call(this,e,i),null!=s.datepicker("option","altField")&&""!=s.datepicker("option","altField")&&t(s.datepicker("option","altField")).val(s.multiDatesPicker("getDates","string"))},beforeShowDay:function(e){var i=t(this),s=!1!==i.multiDatesPicker("gotDate",e),n=i.datepicker("option","disabled"),o=!1!==i.multiDatesPicker("gotDate",e,"disabled"),a=this.multiDatesPicker.maxPicks==this.multiDatesPicker.dates.picked.length,r=[!0,""];this.multiDatesPicker.originalBeforeShowDay&&(r=this.multiDatesPicker.originalBeforeShowDay.call(this,e));var l=s?"ui-state-highlight":r[1];return[!(n||o||a&&!l)&&r[0],l]},onClose:function(e,i){"INPUT"==this.tagName&&this.multiDatesPicker.changed&&(t(i.dpDiv[0]).stop(!1,!0),setTimeout('$("#'+i.id+'").datepicker("show")',50)),this.multiDatesPicker.originalOnClose&&this.multiDatesPicker.originalOnClose.call(this,e,i)}};e?(this.multiDatesPicker.originalBeforeShow=e.beforeShow,this.multiDatesPicker.originalOnSelect=e.onSelect,this.multiDatesPicker.originalBeforeShowDay=e.beforeShowDay,this.multiDatesPicker.originalOnClose=e.onClose,i.datepicker(e),this.multiDatesPicker.minDate=t.datepicker._determineDate(this,e.minDate,null),this.multiDatesPicker.maxDate=t.datepicker._determineDate(this,e.maxDate,null),e.addDates&&h.addDates.call(this,e.addDates),e.addDisabledDates&&h.addDates.call(this,e.addDisabledDates,"disabled"),h.setMode.call(this,e)):i.datepicker(),i.datepicker("option",s),"INPUT"==this.tagName&&i.val(i.multiDatesPicker("getDates","string"));var n=i.datepicker("option","altField");n&&t(n).val(i.multiDatesPicker("getDates","string"))},compareDates:function(t,e){t=l.call(this,t),e=l.call(this,e);var i=t.getFullYear()-e.getFullYear();
1return i||(i=t.getMonth()-e.getMonth())||(i=t.getDate()-e.getDate()),i},sumDays:function(t,e){var i=typeof t;return obj_date=l.call(this,t),obj_date.setDate(obj_date.getDate()+e),l.call(this,obj_date,i)},dateConvert:function(e,i,s){var n=typeof e;if(n==i){if("object"==n)try{e.getTime()}catch(e){return t.error("Received date is in a non supported format!"),!1}return e}var o=t(this);if(void 0===e&&(e=new Date(0)),"string"!=i&&"object"!=i&&"number"!=i&&t.error('Date format "'+i+'" not supported!'),!s){s=t.datepicker._defaults.dateFormat;var a=o.datepicker("option","dateFormat");a&&(s=a)}switch(n){case"object":break;case"string":e=t.datepicker.parseDate(s,e);break;case"number":e=new Date(e);break;default:t.error('Conversion from "'+i+'" format not allowed on jQuery.multiDatesPicker')}switch(i){case"object":return e;case"string":return t.datepicker.formatDate(s,e);case"number":return e.getTime();default:t.error('Conversion to "'+i+'" format not allowed on jQuery.multiDatesPicker')}return!1},gotDate:function(t,e){e||(e="picked");for(var i=0;i<this.multiDatesPicker.dates[e].length;i++)if(0===h.compareDates.call(this,this.multiDatesPicker.dates[e][i],t))return i;return!1},getDates:function(e,i){switch(e||(e="string"),i||(i="picked"),e){case"object":return this.multiDatesPicker.dates[i];case"string":case"number":for(var s=new Array,n=0;n<this.multiDatesPicker.dates[i].length;n++)s.push(l.call(this,this.multiDatesPicker.dates[i][n],e));return s;default:t.error('Format "'+e+'" not supported!')}},addDates:function(e,i){if(e.length>0){switch(i||(i="picked"),typeof e){case"object":case"array":if(e.length){for(var s=0;s<e.length;s++)r.call(this,e[s],i,!0);(function(t){t||(t="picked"),this.multiDatesPicker.dates[t].sort(h.compareDates)}).call(this,i);break}case"string":case"number":r.call(this,e,i);break;default:t.error('Date format "'+typeof e+'" not allowed on jQuery.multiDatesPicker')}t(this).datepicker("refresh")}else t.error("Empty array of dates received.")},removeDates:function(e,i){i||(i="picked");var s=[];if("[object Array]"===Object.prototype.toString.call(e))for(var n in e.sort(function(t,e){return e-t}))s.push(o.call(this,e[n],i));else s.push(o.call(this,e,i));return t(this).datepicker("refresh"),s},removeIndexes:function(e,i){i||(i="picked");var s=[];if("[object Array]"===Object.prototype.toString.call(e))for(var n in e.sort(function(t,e){return e-t}))s.push(a.call(this,e[n],i));else s.push(a.call(this,e,i));return t(this).datepicker("refresh"),s},resetDates:function(e){e||(e="picked"),this.multiDatesPicker.dates[e]=[],t(this).datepicker("refresh")},toggleDate:function(t,e){switch(e||(e="picked"),this.multiDatesPicker.mode){case"daysRange":this.multiDatesPicker.dates[e]=[];var i=this.multiDatesPicker.autoselectRange[1],s=this.multiDatesPicker.autoselectRange[0];i<s&&(i=this.multiDatesPicker.autoselectRange[0],s=this.multiDatesPicker.autoselectRange[1]);for(var n=s;n<i;n++)h.addDates.call(this,h.sumDays(t,n),e);break;default:!1===h.gotDate.call(this,t)?h.addDates.call(this,t,e):h.removeDates.call(this,t,e)}},setMode:function(e){var i=t(this);switch(e.mode&&(this.multiDatesPicker.mode=e.mode),this.multiDatesPicker.mode){case"normal":for(option in e)switch(option){case"maxPicks":case"minPicks":case"pickableRange":case"adjustRangeToDisabled":this.multiDatesPicker[option]=e[option]}break;case"daysRange":case"weeksRange":var s=1;for(option in e)switch(option){case"autoselectRange":s--;case"pickableRange":case"adjustRangeToDisabled":this.multiDatesPicker[option]=e[option]}s>0&&t.error("Some mandatory options not specified!")}n.onSelect&&n.onSelect(),i.datepicker("refresh")}};return this.each(function(){if(this.multiDatesPicker||(this.multiDatesPicker={dates:{picked:[],disabled:[]},mode:"normal",adjustRangeToDisabled:!0}),h[e]){var n=h[e].apply(this,Array.prototype.slice.call(i,1));switch(e){case"getDates":case"removeDates":case"gotDate":case"sumDays":case"compareDates":case"dateConvert":s=n}return n}return"object"!=typeof e&&e?(t.error("Method "+e+" does not exist on jQuery.multiDatesPicker"),!1):h.init.apply(this,i)}),"gotDate"!=e&&"getDates"!=e&&(aaaa=1),s};var e=(new Date).getTime();t.multiDatesPicker={version:!1},t.multiDatesPicker.initialized=!1,t.multiDatesPicker.uuid=(new Date).getTime(),t.multiDatesPicker.version=t.ui.multiDatesPicker.version,window["DP_jQuery_"+e]=t}(jQuery),jQuery.fn.anim_progressbar=function(t){var e=864e5,i={totaltime:65,start:new Date,finish:(new Date).setTime((new Date).getTime()+65e3),interval:100},s=jQuery.extend(i,t);
1s.finish=(new Date).setTime((new Date).getTime()+1e3*s.totaltime);var n=this;return this.each(function(){var t=s.finish-s.start;$(n).children(".pbar").progressbar();var i=setInterval(function(){var o=1e3*s.totaltime,a=s.finish-new Date+1e3,r=new Date-s.start,l=parseInt(a/e),h=parseInt((a-l*e)/36e5),c=parseInt((a-l*e-36e5*h)/6e4),u=parseInt((a-l*e-6e4*c-36e5*h)/1e3),d=parseInt(r/e),p=parseInt((r-d*e)/36e5),f=parseInt((r-d*e-36e5*p)/6e4),m=parseInt((r-d*e-6e4*f-36e5*p)/1e3),g=parseInt(o/e),v=parseInt((o-g*e)/36e5),b=parseInt((o-g*e-36e5*v)/6e4),y=parseInt((o-g*e-6e4*b-36e5*v)/1e3),_=r>0?r/t*100:0;c<10&&(c="0"+c),u<10&&(u="0"+u),f<10&&(f="0"+f),m<10&&(m="0"+m),b<10&&(b="0"+b),y<10&&(y="0"+y),$(n).children(".percent").html("<span>"+_.toFixed()+"%</span>"),0==v?$(n).children(".total").html(b+":"+y):$(n).children(".total").html(v+":"+b+":"+y),0==h?$(n).children(".remained").html(c+":"+u):$(n).children(".remained").html(h+":"+c+":"+u),0==p?$(n).children(".elapsed").html(f+":"+m):$(n).children(".elapsed").html(p+":"+f+":"+m),_>=100&&(_=100),$(n).children(".pbar").children(".ui-progressbar-value").html("<span />").css("width",_+"%"),_<4&&(_=4),$(n).children(".percent").css("left",_+"%"),_>=100&&(clearInterval(i),$(n).children(".percent").html("<span>100%</span>"),$(n).children(".elapsed").html("00:00"))},s.interval)})};var Hashtable=function(){var t="function",e=typeof Array.prototype.splice==t?function(t,e){t.splice(e,1)}:function(t,e){var i,s,n;if(e===t.length-1)t.length=e;else for(i=t.slice(e+1),t.length=e,s=0,n=i.length;s<n;++s)t[e+s]=i[s]};function i(e){var s;if("string"==typeof e)return e;if(typeof e.hashCode==t)return"string"==typeof(s=e.hashCode())?s:i(s);if(typeof e.toString==t)return e.toString();try{return String(e)}catch(t){return Object.prototype.toString.call(e)}}function s(t,e){return t.equals(e)}function n(e,i){return typeof i.equals==t?i.equals(e):e===i}function o(t){return function(e){if(null===e)throw new Error("null is not a valid "+t);if(void 0===e)throw new Error(t+" must not be undefined")}}var a=o("key"),r=o("value");function l(t,e,i,s){this[0]=t,this.entries=[],this.addEntry(e,i),null!==s&&(this.getEqualityFunction=function(){return s})}var h=0,c=1,u=2;function d(t){return function(e){for(var i,s=this.entries.length,n=this.getEqualityFunction(e);s--;)if(n(e,(i=this.entries[s])[0]))switch(t){case h:return!0;case c:return i;case u:return[s,i[1]]}return!1}}function p(t){return function(e){for(var i=e.length,s=0,n=this.entries.length;s<n;++s)e[i+s]=this.entries[s][t]}}function f(t,e){var i=t[e];return i&&i instanceof l?i:null}return l.prototype={getEqualityFunction:function(e){return typeof e.equals==t?s:n},getEntryForKey:d(c),getEntryAndIndexForKey:d(u),removeEntryForKey:function(t){var i=this.getEntryAndIndexForKey(t);return i?(e(this.entries,i[0]),i[1]):null},addEntry:function(t,e){this.entries[this.entries.length]=[t,e]},keys:p(0),values:p(1),getEntries:function(t){for(var e=t.length,i=0,s=this.entries.length;i<s;++i)t[e+i]=this.entries[i].slice(0)},containsKey:d(h),containsValue:function(t){for(var e=this.entries.length;e--;)if(t===this.entries[e][1])return!0;return!1}},function s(n,o){var h=this,c=[],u={},d=typeof n==t?n:i,p=typeof o==t?o:null;this.put=function(t,e){a(t),r(e);var i,s,n=d(t),o=null;return(i=f(u,n))?(s=i.getEntryForKey(t))?(o=s[1],s[1]=e):i.addEntry(t,e):(i=new l(n,t,e,p),c[c.length]=i,u[n]=i),o},this.get=function(t){a(t);var e=d(t),i=f(u,e);if(i){var s=i.getEntryForKey(t);if(s)return s[1]}return null},this.containsKey=function(t){a(t);var e=d(t),i=f(u,e);return!!i&&i.containsKey(t)},this.containsValue=function(t){r(t);for(var e=c.length;e--;)if(c[e].containsValue(t))return!0;return!1},this.clear=function(){c.length=0,u={}},this.isEmpty=function(){return!c.length};var m=function(t){return function(){for(var e=[],i=c.length;i--;)c[i][t](e);return e}};this.keys=m("keys"),this.values=m("values"),this.entries=m("getEntries"),this.remove=function(t){a(t);var i,s=d(t),n=null,o=f(u,s);return o&&null!==(n=o.removeEntryForKey(t))&&(o.entries.length||(i=function(t,e){for(var i=t.length;i--;)if(e===t[i][0])return i;return null}(c,s),e(c,i),delete u[s])),n},this.size=function(){for(var t=0,e=c.length;e--;)t+=c[e].entries.length;return t},this.each=function(t){for(var e,i=h.entries(),s=i.length;s--;)t((e=i[s])[0],e[1])},this.putAll=function(e,i){for(var s,n,o,a,r=e.entries(),l=r.length,c=typeof i==t;l--;)n=(s=r[l])[0],o=s[1],c&&(a=h.get(n))&&(o=i(n,a,o)),h.put(n,o)},this.clone=function(){var t=new s(n,o);return t.putAll(h),t}}}();!function(t){var e=new Hashtable,i=[[".",","],[",","."],[","," "],[".","'"]],s=[["ae","au","ca","cn","eg","gb","hk","il","in","jp","sk","th","tw","us"],["at","br","de","dk","es","gr","it","nl","pt","tr","vn"],["cz","fi","fr","ru","se","pl"],["ch"]];function n(t,e,i){this.dec=t,this.group=e,this.neg=i}function o(t,o){0==e.size()&&function(){for(var t=0;t<s.length;t++){localeGroup=s[t];for(var i=0;i<localeGroup.length;i++)e.put(localeGroup[i],t)}}();var a=".",r=",";0==o&&(-1!=t.indexOf("_")?t=t.split("_")[1].toLowerCase():-1!=t.indexOf("-")&&(t=t.
1split("-")[1].toLowerCase()));var l=e.get(t);if(l){var h=i[l];h&&(a=h[0],r=h[1])}return new n(a,r,"-")}t.fn.formatNumber=function(e,i,s){return this.each(function(){var n;null==i&&(i=!0),null==s&&(s=!0),n=t(this).is(":input")?new String(t(this).val()):new String(t(this).text());var o=t.formatNumber(n,e);if(i&&(t(this).is(":input")?t(this).val(o):t(this).text(o)),s)return o})},t.formatNumber=function(e,i){for(var s=o((i=t.extend({},t.fn.formatNumber.defaults,i)).locale.toLowerCase(),i.isFullLocale),n=(s.dec,s.group,s.neg,""),a=!1,r=0;r<i.format.length;r++){if(-1!="0#-,.".indexOf(i.format.charAt(r))){if(0==r&&"-"==i.format.charAt(r)){a=!0;continue}break}n+=i.format.charAt(r)}var l="";for(r=i.format.length-1;r>=0&&-1=="0#-,.".indexOf(i.format.charAt(r));r--)l=i.format.charAt(r)+l;i.format=i.format.substring(n.length),i.format=i.format.substring(0,i.format.length-l.length);var h=new Number(e);return t._formatNumber(h,i,l,n,a)},t._formatNumber=function(e,i,s,n,a){var r=o((i=t.extend({},t.fn.formatNumber.defaults,i)).locale.toLowerCase(),i.isFullLocale),l=r.dec,h=r.group,c=r.neg,u=!1;if(isNaN(e)){if(1!=i.nanForceZero)return null;e=0,u=!0}"%"==s&&(e*=100);var d="";if(i.format.indexOf(".")>-1){var p=l,f=i.format.substring(i.format.lastIndexOf(".")+1);if(1==i.round)e=new Number(e.toFixed(f.length));else{var m=e.toString();m=m.substring(0,m.lastIndexOf(".")+f.length+1),e=new Number(m)}var g=new String((e%1).toFixed(f.length));g=g.substring(g.lastIndexOf(".")+1);for(var v=0;v<f.length;v++)if("#"!=f.charAt(v)||"0"==g.charAt(v)){if("#"==f.charAt(v)&&"0"==g.charAt(v)){if(g.substring(v).match("[1-9]")){p+=g.charAt(v);continue}break}"0"==f.charAt(v)&&(p+=g.charAt(v))}else p+=g.charAt(v);d+=p}else e=Math.round(e);var b=Math.floor(e);e<0&&(b=Math.ceil(e));var y="";y=-1==i.format.indexOf(".")?i.format:i.format.substring(0,i.format.indexOf("."));var _="";if(0!=b||"#"!=y.substr(y.length-1)||u){var w=new String(Math.abs(b)),k=9999;-1!=y.lastIndexOf(",")&&(k=y.length-y.lastIndexOf(",")-1);var x=0;for(v=w.length-1;v>-1;v--)_=w.charAt(v)+_,++x==k&&0!=v&&(_=h+_,x=0);if(y.length>_.length){var C=y.indexOf("0");if(-1!=C)for(var j=y.length-C,T=y.length-_.length-1;_.length<j;){var P=y.charAt(T);","==P&&(P=h),_=P+_,T--}}}return _||-1===y.indexOf("0",y.length-1)||(_="0"),d=_+d,e<0&&a&&n.length>0?n=c+n:e<0&&(d=c+d),i.decimalSeparatorAlwaysShown||d.lastIndexOf(l)==d.length-1&&(d=d.substring(0,d.length-1)),d=n+d+s},t.fn.parseNumber=function(e,i,s){var n;null==i&&(i=!0),null==s&&(s=!0),n=t(this).is(":input")?new String(t(this).val()):new String(t(this).text());var o=t.parseNumber(n,e);if(o&&(i&&(t(this).is(":input")?t(this).val(o.toString()):t(this).text(o.toString())),s))return o},t.parseNumber=function(e,i){for(var s=o((i=t.extend({},t.fn.parseNumber.defaults,i)).locale.toLowerCase(),i.isFullLocale),n=s.dec,a=s.group,r=s.neg;e.indexOf(a)>-1;)e=e.replace(a,"");var l="",h=!1;"%"!=(e=e.replace(n,".").replace(r,"-")).charAt(e.length-1)&&1!=i.isPercentage||(h=!0);for(var c=0;c<e.length;c++)"1234567890.-".indexOf(e.charAt(c))>-1&&(l+=e.charAt(c));var u=new Number(l);if(h){u/=100;var d=l.indexOf(".");if(-1!=d){var p=l.length-d-1;u=u.toFixed(p+2)}else u=u.toFixed(l.length-1)}return u},t.fn.parseNumber.defaults={locale:"us",decimalSeparatorAlwaysShown:!1,isPercentage:!1,isFullLocale:!1},t.fn.formatNumber.defaults={format:"#,###.00",locale:"us",decimalSeparatorAlwaysShown:!1,nanForceZero:!0,round:!0,isFullLocale:!1},Number.prototype.toFixed=function(e){return t._roundNumber(this,e)},t._roundNumber=function(t,e){var i=Math.pow(10,e||0),s=String(Math.round(t*i)/i);if(e>0){var n=s.indexOf(".");for(-1==n?(s+=".",n=0):n=s.length-(n+1);n<e;)s+="0",n++}return s}}(jQuery),function(t){var e={};this.tmpl=function t(i,s){var n=/\W/.test(i)?new Function("obj","var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+i.replace(/[\r\t\n]/g," ").split("<%").join("\t").replace(/((^|%>)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,"',$1,'").split("\t").join("');").split("%>").join("p.push('").split("\r").join("\\'")+"');}return p.join('');"):e[i]=e[i]||t(document.getElementById(i).innerHTML);return s?n(s):n}}(jQuery),function(t){t.baseClass=function(e){return(e=t(e)).get(0).className.match(/([^ ]+)/
1)[1]},t.fn.addDependClass=function(e,i){var s=i||"-";return this.each(function(){var i=t.baseClass(this);i&&t(this).addClass(i+s+e)})},t.fn.removeDependClass=function(e,i){var s=i||"-";return this.each(function(){var i=t.baseClass(this);i&&t(this).removeClass(i+s+e)})},t.fn.toggleDependClass=function(e,i){var s=i||"-";return this.each(function(){var i=t.baseClass(this);i&&(t(this).is("."+i+s+e)?t(this).removeClass(i+s+e):t(this).addClass(i+s+e))})}}(jQuery),function(t){function e(){this._init.apply(this,arguments)}e.prototype.oninit=function(){},e.prototype.events=function(){},e.prototype.onmousedown=function(){this.ptr.css({position:"absolute"})},e.prototype.onmousemove=function(t,e,i){this.ptr.css({left:e,top:i})},e.prototype.onmouseup=function(){},e.prototype.isDefault={drag:!1,clicked:!1,toclick:!0,mouseup:!1},e.prototype._init=function(){if(arguments.length>0){this.ptr=t(arguments[0]),this.outer=t(".draggable-outer"),this.is={},t.extend(this.is,this.isDefault);var e=this.ptr.offset();this.d={left:e.left,top:e.top,width:this.ptr.width(),height:this.ptr.height()},this.oninit.apply(this,arguments),this._events()}},e.prototype._getPageCoords=function(t){return t.targetTouches&&t.targetTouches[0]?{x:t.targetTouches[0].pageX,y:t.targetTouches[0].pageY}:{x:t.pageX,y:t.pageY}},e.prototype._bindEvent=function(t,e,i){this.supportTouches_?t.get(0).addEventListener(this.events_[e],i,!1):t.bind(this.events_[e],i)},e.prototype._events=function(){var e=this;this.supportTouches_=t.support.transition&&-1!=navigator.userAgent.indexOf("Mobile"),this.events_={click:this.supportTouches_?"touchstart":"click",down:this.supportTouches_?"touchstart":"mousedown",move:this.supportTouches_?"touchmove":"mousemove",up:this.supportTouches_?"touchend":"mouseup"},this._bindEvent(t(document),"move",function(t){e.is.drag&&(t.stopPropagation(),t.preventDefault(),e._mousemove(t))}),this._bindEvent(t(document),"down",function(t){e.is.drag&&(t.stopPropagation(),t.preventDefault())}),this._bindEvent(t(document),"up",function(t){e._mouseup(t)}),this._bindEvent(this.ptr,"down",function(t){return e._mousedown(t),!1}),this._bindEvent(this.ptr,"up",function(t){e._mouseup(t)}),this.ptr.find("a").click(function(){if(e.is.clicked=!0,!e.is.toclick)return e.is.toclick=!0,!1}).mousedown(function(t){return e._mousedown(t),!1}),this.events()},e.prototype._mousedown=function(e){this.is.drag=!0,this.is.clicked=!1,this.is.mouseup=!1;var i=this.ptr.offset(),s=this._getPageCoords(e);this.cx=s.x-i.left,this.cy=s.y-i.top,t.extend(this.d,{left:i.left,top:i.top,width:this.ptr.width(),height:this.ptr.height()}),this.outer&&this.outer.get(0)&&this.outer.css({height:Math.max(this.outer.height(),t(document.body).height()),overflow:"hidden"}),this.onmousedown(e)},e.prototype._mousemove=function(t){this.is.toclick=!1;var e=this._getPageCoords(t);this.onmousemove(t,e.x-this.cx,e.y-this.cy)},e.prototype._mouseup=function(e){this.is.drag&&(this.is.drag=!1,this.outer&&this.outer.get(0)&&(t.browser.mozilla?this.outer.css({overflow:"hidden"}):this.outer.css({overflow:"visible"}),t.browser.msie&&"6.0"==t.browser.version?this.outer.css({height:"100%"}):this.outer.css({height:"auto"})),this.onmouseup(e))},window.Draggable=e}(jQuery),function(t){function e(t){return void 0!==t&&(t instanceof Array||!(t instanceof Object)&&"[object Array]"==Object.prototype.toString.call(t)||"number"==typeof t.length&&void 0!==t.splice&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("splice"))}t.rangeslider=function(e,i){var n=t(e);return n.data("jslider")||n.data("jslider",new s(e,i)),n.data("jslider")},t.fn.rangeslider=function(i,s){var n,o=arguments;function a(t){return void 0!==t}function r(t){return null!=t}return this.each(function(){var l=t.rangeslider(this,i);if("string"==typeof i)switch(i){case"value":if(a(o[1])&&a(o[2]))r((h=l.getPointers())[0])&&r(o[1])&&(h[0].set(o[1]),h[0].setIndexOver()),r(h[1])&&r(o[2])&&(h[1].set(o[2]),h[1].setIndexOver());else if(a(o[1])){r((h=l.getPointers())[0])&&r(o[1])&&(h[0].set(o[1]),h[0].setIndexOver())}else n=l.getValue();break;case"prc":if(a(o[1])&&a(o[2]))r((h=l.getPointers())[0])&&r(o[1])&&(h[0]._set(o[1]),h[0].setIndexOver()),r(h[1])&&r(o[2])&&(h[1]._set(o[2]),h[1].setIndexOver());else if(a(o[1])){var h;r((h=l.getPointers())[0])&&r(o[1])&&(h[0]._set(o[1]),h[0].setIndexOver())}else n=l.getPrcValue();break;case"calculatedValue":var c=l.getValue().split(";");n="";for(var u=0;u<c.length;u++)n+=(u>0?";":"")+l.nice(c[u]);break;case"skin":l.setSkin(o[1])}else i||s||(e(n)||(n=[]),n.push(l))}),e(n)&&1==n.length&&(n=n[0]),n||this};var i={settings:{from:1,to:10,step:1,smooth:!0,limits:!0,round:0,format:{format:"#,##0.##"},value:"120;360",dimension:""},className:"jslider",selector:".jslider-",template:tmpl('<span class="<%=className%>"><table><tr><td><div class="<%=className%>-bg"><i class="l"></i><i class="r"></i><i class="v"></i></div><div class="<%=className%>-pointer"></div><div class="<%=className%>-pointer <%=className%>-pointer-to"></div><div class="<%=className%>-label"><span><%=settings.from%></span></div><div class="<%=className%>-label <%=className%>-label-to"><%=settings.dimension%><span><%=settings.to%></span></div><div class="<%=className%>-value"><%=settings.dimension%><span></span></div><div class="<%=className%>-value <%=className%>-value-to"><%=settings.dimension%><span></span></div><div class="<%=className%>-scale"><%=scale%></div></td></tr></table></span>')};function s(){return this.init.apply(this,arguments)}function n(){Draggable.apply(this,arguments)}s.prototype.init=function(e,s){this.settings=t.extend(!0,{},i.settings,s||{}),this.inputNode=t(e).hide(),this.settings.interval=this.settings.to-this.settings.from,this.settings.value=this.inputNode.attr("value"),this.settings.calculate&&t.isFunction(this.settings.calculate)&&(this.nice=this.settings.calculate),this.settings.onstatechange&&t.isFunction(this.settings.onstatechange)&&(this.onstatechange=this.settings.onstatechange),this.is={init:!1},this.o={},this.create()},s.prototype.onstatechange=function(){},s.prototype.create=function(){var e,s=this;this.domNode=t(i.template({className:i.className,settings:{from:this.nice(this.settings.from),to:this.nice(this.settings.to),dimension:this.settings.dimension},scale:this.generateScale()}
1)),this.inputNode.after(this.domNode),this.drawScale(),this.settings.skin&&this.settings.skin.length>0&&this.setSkin(this.settings.skin),this.sizes={domWidth:this.domNode.width(),domOffset:this.domNode.offset()},t.extend(this.o,{pointers:{},labels:{0:{o:this.domNode.find(i.selector+"value").not(i.selector+"value-to")},1:{o:this.domNode.find(i.selector+"value").filter(i.selector+"value-to")}},limits:{0:this.domNode.find(i.selector+"label").not(i.selector+"label-to"),1:this.domNode.find(i.selector+"label").filter(i.selector+"label-to")}}),t.extend(this.o.labels[0],{value:this.o.labels[0].o.find("span")}),t.extend(this.o.labels[1],{value:this.o.labels[1].o.find("span")}),s.settings.value.split(";")[1]||(this.settings.single=!0,this.domNode.addDependClass("single")),s.settings.limits||this.domNode.addDependClass("limitless"),this.domNode.find(i.selector+"pointer").each(function(t){var e=s.settings.value.split(";")[t];if(e){s.o.pointers[t]=new n(this,t,s);var i=s.settings.value.split(";")[t-1];i&&new Number(e)<new Number(i)&&(e=i),e=(e=e<s.settings.from?s.settings.from:e)>s.settings.to?s.settings.to:e,s.o.pointers[t].set(e,!0)}}),this.o.value=this.domNode.find(".v"),this.is.init=!0,t.each(this.o.pointers,function(t){s.redraw(this)}),e=this,t(window).resize(function(){e.onresize()})},s.prototype.setSkin=function(t){this.skin_&&this.domNode.removeDependClass(this.skin_,"_"),this.domNode.addDependClass(this.skin_=t,"_")},s.prototype.setPointersIndex=function(e){t.each(this.getPointers(),function(t){this.index(t)})},s.prototype.getPointers=function(){return this.o.pointers},s.prototype.generateScale=function(){if(this.settings.scale&&this.settings.scale.length>0){for(var t="",e=this.settings.scale,i=Math.round(100/(e.length-1)*10)/10,s=0;s<e.length;s++)t+='<span style="left: '+s*i+'%">'+("|"!=e[s]?"<ins>"+e[s]+"</ins>":"")+"</span>";return t}return""},s.prototype.drawScale=function(){this.domNode.find(i.selector+"scale span ins").each(function(){t(this).css({marginLeft:-t(this).outerWidth()/2})})},s.prototype.onresize=function(){var e=this;this.sizes={domWidth:this.domNode.width(),domOffset:this.domNode.offset()},t.each(this.o.pointers,function(t){e.redraw(this)})},s.prototype.update=function(){this.onresize(),this.drawScale()},s.prototype.limits=function(t,e){if(!this.settings.smooth){var i=100*this.settings.step/this.settings.interval;t=Math.round(t/i)*i}var s=this.o.pointers[1-e.uid];return s&&e.uid&&t<s.value.prc&&(t=s.value.prc),s&&!e.uid&&t>s.value.prc&&(t=s.value.prc),t<0&&(t=0),t>100&&(t=100),Math.round(10*t)/10},s.prototype.redraw=function(t){if(!this.is.init)return!1;this.setValue(),this.o.pointers[0]&&this.o.pointers[1]&&this.o.value.css({left:this.o.pointers[0].value.prc+"%",width:this.o.pointers[1].value.prc-this.o.pointers[0].value.prc+"%"}),this.o.labels[t.uid].value.html(this.nice(t.value.origin)),this.redrawLabels(t)},s.prototype.redrawLabels=function(t){function e(t,e,s){return e.margin=-e.label/2,label_left=e.border+e.margin,label_left<0&&(e.margin-=label_left),e.border+e.label/2>i.sizes.domWidth?(e.margin=0,e.right=!0):e.right=!1,t.o.css({left:s+"%",marginLeft:e.margin,right:"auto"}),e.right&&t.o.css({left:"auto",right:0}),e}var i=this,s=this.o.labels[t.uid],n=t.value.prc,o={label:s.o.outerWidth(),right:!1,border:n*this.sizes.domWidth/100};if(!this.settings.single){var a=this.o.pointers[1-t.uid],r=this.o.labels[a.uid];switch(t.uid){case 0:o.border+o.label/2>r.o.offset().left-this.sizes.domOffset.left?(r.o.css({visibility:"hidden"}),r.value.html(this.nice(a.value.origin)),s.o.css({visibility:"visible"}),n=(a.value.prc-n)/2+n,a.value.prc!=t.value.prc&&(s.value.html(this.nice(t.value.origin)+"&nbsp;&ndash;&nbsp;"+this.nice(a.value.origin)),o.label=s.o.outerWidth(),o.border=n*this.sizes.domWidth/100)):r.o.css({visibility:"visible"});break;case 1:o.border-o.label/2<r.o.offset().left-this.sizes.domOffset.left+r.o.outerWidth()?(r.o.css({visibility:"hidden"}),r.value.html(this.nice(a.value.origin)),s.o.css({visibility:"visible"}),n=(n-a.value.prc)/2+a.value.prc,a.value.prc!=t.value.prc&&(s.value.html(this.nice(a.value.origin)+"&nbsp;&ndash;&nbsp;"+this.nice(t.value.origin)),o.label=s.o.outerWidth(),o.border=n*this.sizes.domWidth/100)):r.o.css({visibility:"visible"})}}if(o=e(s,o,n),r){o={label:r.o.outerWidth(),right:!1,border:a.value.prc*this.sizes.domWidth/100};o=e(r,o,a.value.prc)}this.redrawLimits()},s.prototype.redrawLimits=function(){if(this.settings.limits){var t=[!0,!0];for(key in this.o.pointers)if(!this.settings.single||0==key){var e=this.o.pointers[key],i=this.o.labels[e.uid],s=i.o.offset().left-this.sizes.domOffset.left;s<(n=this.o.limits[0]).outerWidth()&&(t[0]=!1);var n=this.o.limits[1];s+i.o.outerWidth()>this.sizes.domWidth-n.outerWidth()&&(t[1]=!1)}for(var o=0;o<t.length;o++)t[o]?this.o.limits[o].fadeIn("fast"):this.o.limits[o].fadeOut("fast")}},s.prototype.setValue=function(){var t=this.getValue();this.inputNode.attr("value",t),this.onstatechange.call(this,t)},s.prototype.getValue=function(){if(!this.is.init)return!1;var e=this,i="";return t.each(this.o.pointers,function(t){null==this.value.prc||isNaN(this.value.prc)||(i+=(t>0?";":"")+e.prcToValue(this.value.prc))}),i},s.prototype.getPrcValue=function(){if(!this.is.init)return!1;var e="";return t.each(this.o.pointers,function(t){null==this.value.prc||isNaN(this.value.prc)||(e+=(t>0?";":"")+this.value.prc)}),e},s.prototype.prcToValue=function(t){if(this.settings.heterogeneity&&this.settings.heterogeneity.length>0)for(var e=this.settings.heterogeneity,i=0,s=this.settings.from,n=0;n<=e.length;n++){if(e[n])var o=e[n].split("/");else o=[100,this.settings.to];if(o[0]=new Number(o[0]),o[1]=new Number(o[1]),t>=i&&t<=o[0])var a=s+(t-i)*(o[1]-s)/(o[0]-i);i=o[0],s=o[1]}else a=this.settings.from+t*this.settings.interval/100;return this.round(a)},s.prototype.valueToPrc=function(t,e){if(this.settings.heterogeneity&&this.settings.heterogeneity.length>0)for(var i=this.settings.heterogeneity,s=0,n=this.settings.from,o=0;o<=i.length;o++){if(i[o])var a=i[o].split("/");else a=[100,this.settings.to];if(a[0]=new Number(a[0]),a[1]=new Number(a[1]),t>=n&&t<=a[1])var r=e.limits(s+(t-n)*(a[0]-s)/(a[1]-n));s=a[0],n=a[1]}else r=e.limits(100*(t-this.settings.from)/this.settings.interval);return r},s.prototype.round=function(t){return t=Math.round(t/this.settings.step)*this.settings.step,t=this.settings.round?Math.round(t*Math.pow(10,this.settings.round))/Math.pow(10,this.settings.round):Math.round(t)},s.prototype.nice=function(e){return e=e.toString().replace(/,/gi,".").replace(/ /gi,""),t.formatNumber?t.formatNumber(new Number(e),this.settings.format||{}).replace(/-/gi,"&minus;"):new Number(e)}
1,n.prototype=new Draggable,n.prototype.oninit=function(t,e,i){this.uid=e,this.parent=i,this.value={},this.settings=this.parent.settings},n.prototype.onmousedown=function(t){this._parent={offset:this.parent.domNode.offset(),width:this.parent.domNode.width()},this.ptr.addDependClass("hover"),this.setIndexOver()},n.prototype.onmousemove=function(t,e){var i=this._getPageCoords(t);this._set(this.calc(i.x))},n.prototype.onmouseup=function(e){this.parent.settings.callback&&t.isFunction(this.parent.settings.callback)&&this.parent.settings.callback.call(this.parent,this.parent.getValue()),this.ptr.removeDependClass("hover")},n.prototype.setIndexOver=function(){this.parent.setPointersIndex(1),this.index(2)},n.prototype.index=function(t){this.ptr.css({zIndex:t})},n.prototype.limits=function(t){return this.parent.limits(t,this)},n.prototype.calc=function(t){return this.limits(100*(t-this._parent.offset.left)/this._parent.width)},n.prototype.set=function(t,e){this.value.origin=this.parent.round(t),this._set(this.parent.valueToPrc(t,this),e)},n.prototype._set=function(t,e){e||(this.value.origin=this.parent.prcToValue(t)),this.value.prc=t,this.ptr.css({left:t+"%"}),this.parent.redraw(this)}}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t:t(jQuery)}(function(t){var e,i,s=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],n="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"];if(t.event.fixHooks)for(var o=s.length;o;)t.event.fixHooks[s[--o]]=t.event.mouseHooks;function a(s){var n,o,a,r=s||window.event,l=[].slice.call(arguments,1),h=0,c=0,u=0;return(s=t.event.fix(r)).type="mousewheel",r.wheelDelta&&(h=r.wheelDelta),r.detail&&(h=-1*r.detail),u=h,void 0!==r.axis&&r.axis===r.HORIZONTAL_AXIS&&(u=0,c=-1*h),r.deltaY&&(h=u=-1*r.deltaY),r.deltaX&&(h=-1*(c=r.deltaX)),void 0!==r.wheelDeltaY&&(u=r.wheelDeltaY),void 0!==r.wheelDeltaX&&(c=-1*r.wheelDeltaX),n=Math.abs(h),(!e||n<e)&&(e=n),o=Math.max(Math.abs(u),Math.abs(c)),(!i||o<i)&&(i=o),a=h>0?"floor":"ceil",h=Math[a](h/e),c=Math[a](c/i),u=Math[a](u/i),l.unshift(s,h,c,u),(t.event.dispatch||t.event.handle).apply(this,l)}t.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var t=n.length;t;)this.addEventListener(n[--t],a,!1);else this.onmousewheel=a},teardown:function(){if(this.removeEventListener)for(var t=n.length;t;)this.removeEventListener(n[--t],a,!1);else this.onmousewheel=null}},t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})}),function(t,e,i){t.fn.jScrollPane=function(s){function n(s,n){var o,a,r,l,h,c,u,d,p,f,m,g,v,b,y,_,w,k,x,C,j,T,P,S,D,E,I,N,M,A,O,H,L,F,R=this,z=!0,$=!0,W=!1,B=!1,q=s.clone(!1,!1).empty(),V=t.fn.mwheelIntent?"mwheelIntent.jsp":"mousewheel.jsp";function U(n){var C,z,$,W,B,q,ht,ct=!1,ut=!1;if(o=n,a===i)B=s.scrollTop(),q=s.scrollLeft(),s.css({overflow:"hidden",padding:0}),r=s.innerWidth()+L,l=s.innerHeight(),s.width(r),a=t('<div class="jspPane" />').css("padding",H).append(s.children()),h=t('<div class="jspContainer" />').css({width:r+"px",height:l+"px"}).append(a).appendTo(s);else{if(s.css("width",""),ct=o.stickToBottom&&((ht=u-l)>20&&ht-rt()<10),ut=o.stickToRight&&function(){var t=c-r;return t>20&&t-at()<10}(),(W=s.innerWidth()+L!=r||s.outerHeight()!=l)&&(r=s.innerWidth()+L,l=s.innerHeight(),h.css({width:r+"px",height:l+"px"})),!W&&F==c&&a.outerHeight()==u)return void s.width(r);F=c,a.css("width",""),s.width(r),h.find(">.jspVerticalBar,>.jspHorizontalBar").remove().end()}a.css("overflow","auto"),c=n.contentWidth?n.contentWidth:a[0].scrollWidth,u=a[0].scrollHeight,a.css("overflow",""),f=(p=u/l)>1,(m=(d=c/r)>1)||f?(s.addClass("jspScrollable"),(C=o.maintainPosition&&(b||w))&&(z=at(),$=rt()),f&&(h.append(t('<div class="jspVerticalBar" />').append(t('<div class="jspCap jspCapTop" />'),t('<div class="jspTrack gradient" />').append(t('<div class="jspDrag gradient" />').append(t('<div class="jspDragTop" />'),t('<div class="jspDragBottom" />'))),t('<div class="jspCap jspCapBottom" />'))),k=h.find(">.jspVerticalBar"),x=k.find(">.jspTrack"),g=x.find(">
1.jspDrag"),o.showArrows&&(P=t('<a class="jspArrow jspArrowUp" />').bind("mousedown.jsp",Q(0,-1)).bind("click.jsp",lt),S=t('<a class="jspArrow jspArrowDown" />').bind("mousedown.jsp",Q(0,1)).bind("click.jsp",lt),o.arrowScrollOnHover&&(P.bind("mouseover.jsp",Q(0,-1,P)),S.bind("mouseover.jsp",Q(0,1,S))),K(x,o.verticalArrowPositions,P,S)),j=l,h.find(">.jspVerticalBar>.jspCap:visible,>.jspVerticalBar>.jspArrow").each(function(){j-=t(this).outerHeight()}),g.hover(function(){g.addClass("jspHover")},function(){g.removeClass("jspHover")}).bind("mousedown.jsp",function(e){t("html").bind("dragstart.jsp selectstart.jsp",lt),g.addClass("jspActive");var i=e.pageY-g.position().top;return t("html").bind("mousemove.jsp",function(t){Z(t.pageY-i,!1)}).bind("mouseup.jsp mouseleave.jsp",J),!1}),Y()),m&&(h.append(t('<div class="jspHorizontalBar" />').append(t('<div class="jspCap jspCapLeft" />'),t('<div class="jspTrack" />').append(t('<div class="jspDrag" />').append(t('<div class="jspDragLeft" />'),t('<div class="jspDragRight" />'))),t('<div class="jspCap jspCapRight" />'))),D=h.find(">.jspHorizontalBar"),E=D.find(">.jspTrack"),y=E.find(">.jspDrag"),o.showArrows&&(M=t('<a class="jspArrow jspArrowLeft" />').bind("mousedown.jsp",Q(-1,0)).bind("click.jsp",lt),A=t('<a class="jspArrow jspArrowRight" />').bind("mousedown.jsp",Q(1,0)).bind("click.jsp",lt),o.arrowScrollOnHover&&(M.bind("mouseover.jsp",Q(-1,0,M)),A.bind("mouseover.jsp",Q(1,0,A))),K(E,o.horizontalArrowPositions,M,A)),y.hover(function(){y.addClass("jspHover")},function(){y.removeClass("jspHover")}).bind("mousedown.jsp",function(e){t("html").bind("dragstart.jsp selectstart.jsp",lt),y.addClass("jspActive");var i=e.pageX-y.position().left;return t("html").bind("mousemove.jsp",function(t){et(t.pageX-i,!1)}).bind("mouseup.jsp mouseleave.jsp",J),!1}),I=h.innerWidth(),X()),function(){if(m&&f){var e=E.outerHeight(),i=x.outerWidth();j-=e,t(D).find(">.jspCap:visible,>.jspArrow").each(function(){I+=t(this).outerWidth()}),I-=i,l-=i,r-=e,E.parent().append(t('<div class="jspCorner" />').css("width",e+"px")),Y(),X()}m&&a.width(h.outerWidth()-L+"px");u=a.outerHeight(),p=u/l,m&&((N=Math.ceil(1/d*I))>o.horizontalDragMaxWidth?N=o.horizontalDragMaxWidth:N<o.horizontalDragMinWidth&&(N=o.horizontalDragMinWidth),y.width(N+"px"),_=I-N,it(w));f&&((T=Math.ceil(1/p*j))>o.verticalDragMaxHeight?T=o.verticalDragMaxHeight:T<o.verticalDragMinHeight&&(T=o.verticalDragMinHeight),g.height(T+"px"),v=j-T,tt(b))}(),C&&(nt(ut?c-r:z,!1),st(ct?u-l:$,!1)),a.find(":input,a").unbind("focus.jsp").bind("focus.jsp",function(t){ot(t.target,!1)}),h.unbind(V).bind(V,function(t,e,i,s){var n=w,a=b;return R.scrollBy(i*o.mouseWheelSpeed,-s*o.mouseWheelSpeed,!1),n==w&&a==b}),function(){var t,e,i,s,n,o=!1;h.unbind("touchstart.jsp touchmove.jsp touchend.jsp click.jsp-touchclick").bind("touchstart.jsp",function(a){var r=a.originalEvent.touches[0];t=at(),e=rt(),i=r.pageX,s=r.pageY,n=!1,o=!0}).bind("touchmove.jsp",function(a){if(o){var r=a.originalEvent.touches[0],l=w,h=b;return R.scrollTo(t+i-r.pageX,e+s-r.pageY),n=n||Math.abs(i-r.pageX)>5||Math.abs(s-r.pageY)>5,l==w&&h==b}}).bind("touchend.jsp",function(t){o=!1}).bind("click.jsp-touchclick",function(t){if(n)return n=!1,!1})}(),o.enableKeyboardNavigation&&function(){var e,i,n=[];m&&n.push(D[0]),f&&n.push(k[0]),a.focus(function(){s.focus()}),s.attr("tabindex",0).unbind("keydown.jsp keypress.jsp").bind("keydown.jsp",function(s){if(s.target===this||n.length&&t(s.target).closest(n).length){var o=w,a=b;switch(s.keyCode){case 40:case 38:case 34:case 32:case 33:case 39:case 37:e=s.keyCode,r();break;case 35:st(u-l),e=null;break;case 36:st(0),e=null}return!(i=s.keyCode==e&&o!=w||a!=b)}}).bind("keypress.jsp",function(t){return t.keyCode==e&&r(),!i}),o.hideFocus?(s.css("outline","none"),"hideFocus"in h[0]&&s.attr("hideFocus",!0)):(s.css("outline",""),"hideFocus"in h[0]&&s.attr("hideFocus",!1));function r(){var t=w,s=b;switch(e){case 40:R.scrollByY(o.keyboardSpeed,!1);break;case 38:R.scrollByY(-o.keyboardSpeed,!1);break;case 34:case 32:R.scrollByY(l*o.scrollPagePercent,!1);break;case 33:R.scrollByY(-l*o.scrollPagePercent,!1);break;case 39:R.scrollByX(o.keyboardSpeed,!1);break;case 37:R.scrollByX(-o.keyboardSpeed,!1)}return i=t!=w||s!=b}}(),o.clickOnTrack&&function(){G(),f&&x.bind("mousedown.jsp",function(e){if(e.originalTarget===i||e.originalTarget==e.currentTarget){var s,n=t(this),a=n.offset(),r=e.pageY-a.top-b,h=!0,c=function(){var t=n.offset(),i=e.pageY-t.top-T/2,a=l*o.scrollPagePercent,p=v*a/(u-l);if(r<0)b-p>i?R.scrollByY(-a):Z(i);else{if(!(r>0))return void d();b+p<i?R.scrollByY(a):Z(i)}s=setTimeout(c,h?o.initialDelay:o.trackClickRepeatFreq),h=!1},d=function(){s&&clearTimeout(s),s=null,t(document).unbind("mouseup.jsp",d)};return c(),t(document).bind("mouseup.jsp",d),!1}});m&&E.bind("mousedown.jsp",function(e){if(e.originalTarget===i||e.originalTarget==e.currentTarget){var s,n=t(this),a=n.offset(),l=e.pageX-a.left-w,h=!0,u=function(){var t=n.offset(),i=e.pageX-t.left-N/2,a=r*o.scrollPagePercent,p=_*a/(c-r);if(l<0)w-p>i?R.scrollByX(-a):et(i);else{if(!(l>0))return void d();w+p<i?R.scrollByX(a):et(i)}s=setTimeout(u,h?o.initialDelay:o.trackClickRepeatFreq),h=!1},d=function(){s&&clearTimeout(s),s=null,t(document).unbind("mouseup.jsp",d)};return u(),t(document).bind("mouseup.jsp",d),!1}})}(),function(){if(location.hash&&location.hash.length>1){var e,i,s=escape(location.hash.substr(1));try{e=t("#"+s+', a[name="'+s+'"]')}catch(t){return}e.length&&a.find(s)&&(0===h.scrollTop()?i=setInterval(function(){h.scrollTop()>0&&(ot(e,!0),t(document).scrollTop(h.position().top),clearInterval(i))},50):(ot(e,!0),t(document).scrollTop(h.position().top)))}}(),o.hijackInternalLinks&&function(){if(t(document.body).data("jspHijack"))return;t(document.body).data("jspHijack",!0),t(document.body).delegate("a[href*=#]","click",function(i){var s,n,o,a,r,l=this.href.substr(0,this.href.indexOf("#")),h=location.href;if(-1!==location.href.indexOf("#")&&(h=location.href.substr(0,location.href.indexOf("#"))),l===h){s=escape(this.href.substr(this.href.indexOf("#")+1));try{n=t("#"+s+', a[name="'+s+'"]')}catch(t){return}
1n.length&&(o=n.closest(".jspScrollable"),o.data("jsp").scrollToElement(n,!0),o[0].scrollIntoView&&(a=t(e).scrollTop(),((r=n.offset().top)<a||r>a+t(e).height())&&o[0].scrollIntoView()),i.preventDefault())}})}()):(s.removeClass("jspScrollable"),a.css({top:0,width:h.width()-L}),h.unbind(V),a.find(":input,a").unbind("focus.jsp"),s.attr("tabindex","-1").removeAttr("tabindex").unbind("keydown.jsp keypress.jsp"),G()),o.autoReinitialise&&!O?O=setInterval(function(){U(o)},o.autoReinitialiseDelay):!o.autoReinitialise&&O&&clearInterval(O),B&&s.scrollTop(0)&&st(B,!1),q&&s.scrollLeft(0)&&nt(q,!1),s.trigger("jsp-initialised",[m||f])}function Y(){x.height(j+"px"),b=0,C=o.verticalGutter+x.outerWidth(),a.width(r-C-L);try{0===k.position().left&&a.css("margin-left",C+"px")}catch(t){}}function X(){h.find(">.jspHorizontalBar>.jspCap:visible,>.jspHorizontalBar>.jspArrow").each(function(){I-=t(this).outerWidth()}),E.width(I+"px"),w=0}function K(t,e,i,s){var n,o="before",a="after";"os"==e&&(e=/Mac/.test(navigator.platform)?"after":"split"),e==o?a=e:e==a&&(o=e,n=i,i=s,s=n),t[o](i)[a](s)}function Q(e,i,s){return function(){return function(e,i,s,n){s=t(s).addClass("jspActive");var a,r,l=!0,h=function(){0!==e&&R.scrollByX(e*o.arrowButtonSpeed),0!==i&&R.scrollByY(i*o.arrowButtonSpeed),r=setTimeout(h,l?o.initialDelay:o.arrowRepeatFreq),l=!1};h(),a=n?"mouseout.jsp":"mouseup.jsp",(n=n||t("html")).bind(a,function(){s.removeClass("jspActive"),r&&clearTimeout(r),r=null,n.unbind(a)})}(e,i,this,s),this.blur(),!1}}function G(){E&&E.unbind("mousedown.jsp"),x&&x.unbind("mousedown.jsp")}function J(){t("html").unbind("dragstart.jsp selectstart.jsp mousemove.jsp mouseup.jsp mouseleave.jsp"),g&&g.removeClass("jspActive"),y&&y.removeClass("jspActive")}function Z(t,e){f&&(t<0?t=0:t>v&&(t=v),e===i&&(e=o.animateScroll),e?R.animate(g,"top",t,tt):(g.css("top",t),tt(t)))}function tt(t){t===i&&(t=g.position().top),h.scrollTop(0);var e=0===(b=t),n=b==v,r=-(t/v)*(u-l);z==e&&W==n||(z=e,W=n,s.trigger("jsp-arrow-change",[z,W,$,B])),function(t,e){o.showArrows&&(P[t?"addClass":"removeClass"]("jspDisabled"),S[e?"addClass":"removeClass"]("jspDisabled"))}(e,n),a.css("top",r),s.trigger("jsp-scroll-y",[-r,e,n]).trigger("scroll")}function et(t,e){m&&(t<0?t=0:t>_&&(t=_),e===i&&(e=o.animateScroll),e?R.animate(y,"left",t,it):(y.css("left",t),it(t)))}function it(t){t===i&&(t=y.position().left),h.scrollTop(0);var e=0===(w=t),n=w==_,l=-(t/_)*(c-r);$==e&&B==n||($=e,B=n,s.trigger("jsp-arrow-change",[z,W,$,B])),function(t,e){o.showArrows&&(M[t?"addClass":"removeClass"]("jspDisabled"),A[e?"addClass":"removeClass"]("jspDisabled"))}(e,n),a.css("left",l),s.trigger("jsp-scroll-x",[-l,e,n]).trigger("scroll")}function st(t,e){Z(t/(u-l)*v,e)}function nt(t,e){et(t/(c-r)*_,e)}function ot(e,i,s){var n,a,c,u,d,p,f,m,g,v=0,b=0;try{n=t(e)}catch(t){return}for(a=n.outerHeight(),c=n.outerWidth(),h.scrollTop(0),h.scrollLeft(0);!n.is(".jspPane");)if(v+=n.position().top,b+=n.position().left,n=n.offsetParent(),/^body|html$/i.test(n[0].nodeName))return;p=(u=rt())+l,v<u||i?m=v-o.verticalGutter:v+a>p&&(m=v-l+a+o.verticalGutter),m&&st(m,s),f=(d=at())+r,b<d||i?g=b-o.horizontalGutter:b+c>f&&(g=b-r+c+o.horizontalGutter),g&&nt(g,s)}function at(){return-a.position().left}function rt(){return-a.position().top}function lt(){return!1}H=s.css("paddingTop")+" "+s.css("paddingRight")+" "+s.css("paddingBottom")+" "+s.css("paddingLeft"),L=(parseInt(s.css("paddingLeft"),10)||0)+(parseInt(s.css("paddingRight"),10)||0),t.extend(R,{reinitialise:function(e){U(e=t.extend({},o,e))},scrollToElement:function(t,e,i){ot(t,e,i)},scrollTo:function(t,e,i){nt(t,i),st(e,i)},scrollToX:function(t,e){nt(t,e)},scrollToY:function(t,e){st(t,e)},scrollToPercentX:function(t,e){nt(t*(c-r),e)},scrollToPercentY:function(t,e){st(t*(u-l),e)},scrollBy:function(t,e,i){R.scrollByX(t,i),R.scrollByY(e,i)},scrollByX:function(t,e){et((at()+Math[t<0?"floor":"ceil"](t))/(c-r)*_,e)},scrollByY:function(t,e){Z((rt()+Math[t<0?"floor":"ceil"](t))/(u-l)*v,e)},positionDragX:function(t,e){et(t,e)},positionDragY:function(t,e){Z(t,e)},animate:function(t,e,i,s){var n={};n[e]=i,t.animate(n,{duration:o.animateDuration,easing:o.animateEase,queue:!1,step:s})},getContentPositionX:function(){return at()},getContentPositionY:function(){return rt()},getContentWidth:function(){return c},getContentHeight:function(){return u},getPercentScrolledX:function(){return at()/(c-r)},getPercentScrolledY:function(){return rt()/(u-l)},getIsScrollableH:function(){return m},getIsScrollableV:function(){return f},getContentPane:function(){return a},scrollToBottom:function(t){Z(v,t)},hijackInternalLinks:t.noop,destroy:function(){var t,e;t=rt(),e=at(),s.removeClass("jspScrollable").unbind(".jsp"),s.replaceWith(q.append(a.children())),q.scrollTop(t),q.scrollLeft(e),O&&clearInterval(O)}}),U(n)}return s=t.extend({},t.fn.jScrollPane.defaults,s),t.each(["arrowButtonSpeed","trackClickSpeed","keyboardSpeed"],function(){s[this]=s[this]||s.speed}),this.each(function(){var e=t(this),i=e.data("jsp");i?i.reinitialise(s):(t("script",e).filter('[type="text/javascript"],:not([type])').remove(),i=new n(e,s),e.data("jsp",i))})},t.fn.jScrollPane.defaults={showArrows:!1,maintainPosition:!0,stickToBottom:!1,stickToRight:!1,clickOnTrack:!0,autoReinitialise:!1,autoReinitialiseDelay:500,verticalDragMinHeight:0,verticalDragMaxHeight:99999,horizontalDragMinWidth:0,horizontalDragMaxWidth:99999,contentWidth:i,animateScroll:!1,animateDuration:300,animateEase:"linear",hijackInternalLinks:!1,verticalGutter:4,horizontalGutter:4,mouseWheelSpeed:3,arrowButtonSpeed:0,arrowRepeatFreq:50,arrowScrollOnHover:!1,trackClickSpeed:0,trackClickRepeatFreq:70,verticalArrowPositions:"split",horizontalArrowPositions:"split",enableKeyboardNavigation:!0,hideFocus:!1,keyboardSpeed:0,initialDelay:300,speed:30,scrollPagePercent:.8}}(jQuery,this),function(t){var e={init:function(i){var s=t.extend({classes:["rot-knob"],frameCount:64,frameWidth:64,frameHeight:64,minimumValue:-100,maximumValue:100,detent:!1,detentValue:0,detentThreshold:10,discreteSteps:!1,stepCount:2,dragVertical:!0,invertDirection:!1,dragMultiplier:1,animationFPS:25,hideInput:!1,hideRealValue:!0,isToggle:!0,callback:function(){}},i);return t("body").data("knobRot",{dragging:!1}),e.addCssStyles(),this.each(function(){if(s.minimumValue>=s.maximumValue);else if(1==s.discreteSteps&&s.stepCount<=1)throw"Knob range error: Maximum value must be greater than minimum value.";var i=t(this);
1if(i.callback=s.callback,i.is("input:text")){var n=t("<input>",{type:"text",value:parseFloat(i.val())});n.data("knobRot",{settings:s,outputField:i}),i.after(n),n.data("knobRot").rangeSize=s.maximumValue-s.minimumValue,n.data("knobRot").rangeOffset=0-s.minimumValue,1==s.discreteSteps&&(n.data("knobRot").stepIncrement=(s.maximumValue-s.minimumValue)/(s.stepCount-1)),n.data("knobRot").calculatedValue=e.calculateValue(n),n.data("knobRot").currentFrame=e.calculateFrame(n),n.data("knobRot").dirtyData=!0;var o=1e3/s.animationFPS,a=s.classes.slice();a[a.length]="rot-knob-base";var r=i.attr("name");void 0===r&&(r="unnamed");var l=i.attr("id");void 0===l&&(l="noid"),a[a.length]="for-input-"+r+"-"+l;var h=t("<div>",{class:a.join(" ")});h.data("knobRot",{realValue:n,outputField:i}),n.data("knobRot").knobDiv=h,i.data("knobRot",{knob:h,realValue:n}),h.css({width:s.frameWidth+"px",height:s.frameHeight+"px","background-position":e.calculateBackgroundOffsetX(n)+"px 0px",cursor:e.getDragCursorClass(n)}),h.on("mousedown.knobRot",function(i){if(1==i.which&&($knobDiv=t(this),1!=t("body").data("knobRot").dragging)){var s={left:i.screenX,top:i.screenY};$knobDiv.addClass("dragging"),t("body").data("knobRot").dragging=!0,t("body").data("knobRot").lastOffset=s,t("body").data("knobRot").knobDiv=$knobDiv,t("body").addClass(e.getDragCursorClass($knobDiv.data("knobRot").realValue)),$knobDiv.data("knobRot").outputField.trigger("knobdragstart",$knobDiv)}}),t(document).on("mousemove.knobRot",function(i){if(1==t("body").data("knobRot").dragging){var s={horizontal:i.screenX-t("body").data("knobRot").lastOffset.left,vertical:i.screenY-t("body").data("knobRot").lastOffset.top};t("body").data("knobRot").lastOffset={left:i.screenX,top:i.screenY},e.updateValue(t("body").data("knobRot").knobDiv.data("knobRot").realValue,s),t("body").data("knobRot").knobDiv.data("knobRot").outputField.trigger("knobrefresh",t("body").data("knobRot").knobDiv),t("body").data("knobRot").knobDiv.data("knobRot").outputField.trigger("knobdrag",t("body").data("knobRot").knobDiv)}}),t(document).on("mouseup.knobRot",function(){e.stopDrag()}),t("body").on("selectstart.knobRot select.knobRot mousedown.knobRot mouseover.knobRot",function(){if(1==t("body").data("knobRot").dragging)return!1}),i.on("knobrefresh.knobRot",function(){i.callback(),n.data("knobRot").dirtyData=!0}),h.on("mouseover.knobRot mouseout.knobRot mouseup.knobRot",function(){h.data("knobRot").outputField.trigger("knobrefresh",h)}),h.on("mouseover",function(){i.addClass("hover");var t=e.getDragCursorClass(h.data("knobRot").realValue);h.addClass(t),h.data("knobRot").outputField.trigger("knobmouseover",h)}),h.on("mouseout",function(){i.removeClass("hover");var t=e.getDragCursorClass(h.data("knobRot").realValue);h.removeClass(t),h.data("knobRot").outputField.trigger("knobmouseout",h)}),n.after(h),setInterval(function(){e.updateCallback(n)},o),1==s.hideInput&&i.hide(),1==s.hideRealValue&&n.hide(),i.attr("disabled","disabled"),i.attr("unselectable","on"),i.on("mousedown",function(){return!1}),i.on("mouseover",function(){return!1}),i.trigger("knobrefresh",h),i.trigger("knobready",h)}})},getvalue:function(){if($this=t(this),$this.is("input:text")){if($this.data("knobRot"))return $this.data("knobRot").calculatedValue;throw'Can not call "value" on a non-knobRot element'}throw"Not a valid input element for knobRot.getvalue"},set:function(e){return t(this).each(function(){var i=t(this);i.is("input:text")&&(i.data("knobRot").realValue.val(parseFloat(e)),i.data("knobRot").realValue.trigger("knobrefresh"))})},calculateStep:function(t){var e=t.data("knobRot"),i=e.settings;if(i.discreteSteps){var s=(parseFloat(t.val())+e.rangeOffset)/e.rangeSize;return Math.round(s*(i.stepCount-1))}throw"Unable to calculate discrete step offset for non-discrete knob."},calculateValue:function(t){var i=t.data("knobRot"),s=i.settings;if(1==s.discreteSteps)var n=e.calculateStep(t)*i.stepIncrement-i.rangeOffset;else n=parseFloat(t.val());return 1==s.detent&&n>=s.detentValue-s.detentThreshold&&n<=s.detentValue+s.detentThreshold?(t.data("knobRot").calculatedValue!=n&&(t.data("knobRot").calculatedValue<s.detentValue-s.detentThreshold||t.data("knobRot").calculatedValue>s.detentValue+s.detentThreshold)&&t.data("knobRot").outputField.trigger("knobenterdetent",t.data("knobRot").knobDiv),n=s.detentValue):t.data("knobRot").calculatedValue==s.detentValue&&t.data("knobRot").calculatedValue!=n&&n!=s.detentValue&&t.data("knobRot").outputField.trigger("knobleavedetent",t.data("knobRot").knobDiv),n<s.minimumValue?(t.val(s.minimumValue),t.data("knobRot").outputField.trigger("knobvaluemin",t.data("knobRot").knobDiv),s.minimumValue):n>s.maximumValue?(t.val(s.maximumValue),t.data("knobRot").outputField.trigger("knobvaluemax",t.data("knobRot").knobDiv),s.maximumValue):n},calculateFrame:function(t){var i=t.data("knobRot"),s=i.settings,n=(e.calculateValue(t)+i.rangeOffset)/i.rangeSize,o=Math.round(n*(s.frameCount-1));return o>s.frameCount-1?s.frameCount-1:o<0?0:(t.data("knobRot").currentFrame!=o&&t.data("knobRot").outputField.trigger("knobframechange",[i,t.data("knobRot").currentFrame,o]),o)}
1,calculateBackgroundOffsetX:function(t){var i=t.data("knobRot").settings;return 0-e.calculateFrame(t)*i.frameWidth},updateCallback:function(t){1==t.data("knobRot").dirtyData&&(t.data("knobRot").dirtyData=!1,t.data("knobRot").knobDiv.css("background-position",e.calculateBackrgroundOffset(t)),t.data("knobRot").calculatedValue=e.calculateValue(t),t.data("knobRot").outputField.val(t.data("knobRot").calculatedValue),t.data("knobRot").outputField.data("knobRot").calculatedValue=t.data("knobRot").calculatedValue)},stopDrag:function(){if(1==t("body").data("knobRot").dragging){var i=t("body").data("knobRot").knobDiv;t("body").data("knobRot").dragging=!1,i.removeClass("dragging"),t("body").removeClass(e.getDragCursorClass(i.data("knobRot").realValue)),i.data("knobRot").outputField.trigger("knobrefresh")}},updateValue:function(t,e){var i=0;i=t.data("knobRot").settings.dragVertical?e.vertical:e.horizontal,i*=t.data("knobRot").settings.dragMultiplier,(!t.data("knobRot").settings.invertDirection&&1==t.data("knobRot").settings.dragVertical||t.data("knobRot").settings.invertDirection&&0==t.data("knobRot").settings.dragVertical)&&(i=0-i);var s=parseFloat(t.val())+i;s>t.data("knobRot").settings.maximumValue?s=t.data("knobRot").settings.maximumValue:s<t.data("knobRot").settings.minimumValue&&(s=t.data("knobRot").settings.minimumValue),t.val(s)},calculateBackrgroundOffset:function(t){return e.calculateBackgroundOffsetX(t)+"px"+" 0px"},getDragCursorClass:function(t){return 1==t.data("knobRot").settings.dragVertical?"rotknob-n-resize":"rotknob-e-resize"},addCssStyles:function(){t('<style type="text/css" rel="stylesheet">\t.rotknob-n-resize{ cursor: n-resize!important; }\t.rotknob-e-resize{ cursor: e-resize!important; }</style>').appendTo("body")}};t.fn.knobRot=function(i){return e[i]?e[i].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof i&&i?void t.error("Method "+i+" does not exist on jQuery.knobRot"):e.init.apply(this,arguments)}}(jQuery);var bkExtend=function(){var t=arguments;for(var e in 1==t.length&&(t=[this,t[0]]),t[1])t[0][e]=t[1][e];return t[0]};function bkClass(){}bkClass.prototype.construct=function(){},bkClass.extend=function(t){var e=function(){if(arguments[0]!==bkClass)return this.construct.apply(this,arguments)},i=new this(bkClass);return bkExtend(i,t),e.prototype=i,e.extend=this.extend,e};var bkElement=bkClass.extend({construct:function(t,e){return"string"==typeof t&&(t=(e||document).createElement(t)),t=$BK(t)},appendTo:function(t){return t.appendChild(this),this},appendBefore:function(t){return t.parentNode.insertBefore(this,t),this},addEvent:function(t,e){return bkLib.addEvent(this,t,e),this},setContent:function(t){return this.innerHTML=t,this},pos:function(){var t=curtop=0;obj=this;if(obj.offsetParent)do{t+=obj.offsetLeft,curtop+=obj.offsetTop}while(obj=obj.offsetParent);var e=window.opera?0:parseInt(this.getStyle("border-width")||this.style.border)||0;return[t+e,curtop+e+this.offsetHeight]},noSelect:function(){return bkLib.noSelect(this),this},parentTag:function(t){var e=this;do{if(e&&e.nodeName&&e.nodeName.toUpperCase()==t)return e;e=e.parentNode}while(e);return!1},hasClass:function(t){return this.className.match(new RegExp("(\\s|^)nicEdit-"+t+"(\\s|$)"))},addClass:function(t){return this.hasClass(t)||(this.className+=" nicEdit-"+t),this},removeClass:function(t){return this.hasClass(t)&&(this.className=this.className.replace(new RegExp("(\\s|^)nicEdit-"+t+"(\\s|$)")," ")),this},setStyle:function(t){var e=this.style;for(var i in t)switch(i){case"float":e.cssFloat=e.styleFloat=t[i];break;case"opacity":e.opacity=t[i],e.filter="alpha(opacity="+Math.round(100*t[i])+")";break;case"className":this.className=t[i];break;default:e[i]=t[i]}return this},getStyle:function(t,e){var i=e||document.defaultView;if(1==this.nodeType)return i&&i.getComputedStyle?i.getComputedStyle(this,null).getPropertyValue(t):this.currentStyle[bkLib.camelize(t)]},remove:function(){return this.parentNode.removeChild(this),this},setAttributes:function(t){for(var e in t)this[e]=t[e];return this}}),bkLib={isMSIE:-1!=navigator.appVersion.indexOf("MSIE"),addEvent:function(t,e,
1i){t.addEventListener?t.addEventListener(e,i,!1):t.attachEvent("on"+e,i)},toArray:function(t){for(var e=t.length,i=new Array(e);e--;)i[e]=t[e];return i},noSelect:function(t){t.setAttribute&&"input"!=t.nodeName.toLowerCase()&&"textarea"!=t.nodeName.toLowerCase()&&t.setAttribute("unselectable","on");for(var e=0;e<t.childNodes.length;e++)bkLib.noSelect(t.childNodes[e])},camelize:function(t){return t.replace(/\-(.)/g,function(t,e){return e.toUpperCase()})},inArray:function(t,e){return null!=bkLib.search(t,e)},search:function(t,e){for(var i=0;i<t.length;i++)if(t[i]==e)return i;return null},cancelEvent:function(t){return(t=t||window.event).preventDefault&&t.stopPropagation&&(t.preventDefault(),t.stopPropagation()),!1},domLoad:[],domLoaded:function(){if(!arguments.callee.done)for(arguments.callee.done=!0,i=0;i<bkLib.domLoad.length;i++)bkLib.domLoad[i]()},onDomLoaded:function(t){this.domLoad.push(t),document.addEventListener?document.addEventListener("DOMContentLoaded",bkLib.domLoaded,null):bkLib.isMSIE&&(document.write("<style>.nicEdit-main p { margin: 0; }</style><script id=__ie_onload defer "+("https:"==location.protocol?"src='javascript:void(0)'":"src=//0")+"><\/script>"),$BK("__ie_onload").onreadystatechange=function(){"complete"==this.readyState&&bkLib.domLoaded()}),window.onload=bkLib.domLoaded}};function $BK(t){return"string"==typeof t&&(t=document.getElementById(t)),t&&!t.appendTo?bkExtend(t,bkElement.prototype):t}var bkEvent={addEvent:function(t,e){return e&&(this.eventList=this.eventList||{},this.eventList[t]=this.eventList[t]||[],this.eventList[t].push(e)),this},fireEvent:function(){var t=bkLib.toArray(arguments),e=t.shift();if(this.eventList&&this.eventList[e])for(var i=0;i<this.eventList[e].length;i++)this.eventList[e][i].apply(this,t)}};function __(t){return t}Function.prototype.closure=function(){var t=this,e=bkLib.toArray(arguments),i=e.shift();return function(){if(void 0!==bkLib)return t.apply(i,e.concat(bkLib.toArray(arguments)))}},Function.prototype.closureListener=function(){var t=this,e=bkLib.toArray(arguments),i=e.shift();return function(s){if((s=s||window.event).target)var n=s.target;else n=s.srcElement;return t.apply(i,[s,n].concat(e))}};var nicEditorConfig=bkClass.extend({buttons:{bold:{name:__("Bold"),command:"Bold",tags:["B","STRONG"],
1css:{"font-weight":"bold"},key:"b"},italic:{name:__("Italic"),command:"Italic",tags:["EM","I"],css:{"font-style":"italic"},key:"i"},underline:{name:__("Underline"),command:"Underline",tags:["U"],css:{"text-decoration":"underline"},key:"u"},left:{name:__("Left"),command:"justifyleft",noActive:!0},center:{name:__("Center"),command:"justifycenter",noActive:!0},right:{name:__("Right"),command:"justifyright",noActive:!0},justify:{name:__("Justify"),command:"justifyfull",noActive:!0},ol:{name:__("Insert Ordered List"),command:"insertorderedlist",tags:["OL"]},ul:{name:__("Insert Unordered List"),command:"insertunorderedlist",tags:["UL"]},subscript:{name:__("Click to Subscript"),command:"subscript",tags:["SUB"]},superscript:{name:__("Click to Superscript"),command:"superscript",tags:["SUP"]},strikethrough:{name:__("Click to Strike Through"),command:"strikeThrough",css:{"text-decoration":"line-through"}},removeformat:{name:__("Remove Formatting"),command:"removeformat",noActive:!0},indent:{name:__("Indent Text"),command:"indent",noActive:!0},outdent:{name:__("Remove Indent"),command:"outdent",noActive:!0},hr:{name:__("Horizontal Rule"),command:"insertHorizontalRule",noActive:!0}},iconsPath:"images/nicEditorIcons.png",buttonList:["save","bold","italic","underline","left","center","right","justify","ol","ul","fontSize","fontFamily","fontFormat","indent","outdent","image","upload","link","unlink","forecolor","bgcolor"],iconList:{xhtml:9,bgcolor:10,forecolor:4,bold:1,center:6,hr:11,indent:12,italic:2,justify:8,left:5,ol:13,outdent:14,removeformat:15,right:7,save:16,strikethrough:17,subscript:18,superscript:19,ul:20,underline:3,image:21,link:22,unlink:23,close:24,arrow:25}}),nicEditors={nicPlugins:[],editors:[],registerPlugin:function(t,e){this.nicPlugins.push({p:t,o:e})},allTextAreas:function(t){for(var e=document.getElementsByTagName("textarea"),i=0;i<e.length;i++)nicEditors.editors.push(new nicEditor(t).panelInstance(e[i]));return nicEditors.editors},findEditor:function(t){for(var e=nicEditors.editors,i=0;i<e.length;i++)if(e[i].instanceById(t))return e[i].instanceById(t)}},nicEditor=bkClass.extend({construct:function(t){this.options=new nicEditorConfig,bkExtend(this.options,t),this.nicInstances=new Array,this.loadedPlugins=new Array;for(var e=nicEditors.nicPlugins,i=0;i<e.length;i++)this.loadedPlugins.push(new e[i].p(this,e[i].o));nicEditors.editors.push(this),bkLib.addEvent(document.body,"mousedown",this.selectCheck.closureListener(this))},panelInstance:function(t,e){t=this.checkReplace($BK(t));var i=new bkElement("DIV").appendBefore(t);return this.setPanel(i),this.addInstance(t,e)},checkReplace:function(t){var e=nicEditors.findEditor(t);return e&&(e.removeInstance(t),e.removePanel()),t},addInstance:function(t,e){if((t=this.checkReplace($BK(t))).contentEditable||window.opera)var i=new nicEditorInstance(t,e,this);else i=new nicEditorIFrameInstance(t,e,this);return this.nicInstances.push(i),this},removeInstance:function(t){t=$BK(t);for(var e=this.nicInstances,i=0;i<e.length;i++)e[i].e==t&&(e[i].remove(),this.nicInstances.splice(i,1))},removePanel:function(t){this.nicPanel&&(this.nicPanel.remove(),this.nicPanel=null)},instanceById:function(t){t=$BK(t);for(var e=this.nicInstances,i=0;i<e.length;i++)if(e[i].e==t)return e[i]},setPanel:function(t){return this.nicPanel=new nicEditorPanel($BK(t),this.options,this),this.fireEvent("panel",this.nicPanel),this},nicCommand:function(t,e){this.selectedInstance&&this.selectedInstance.nicCommand(t,e)},getIcon:function(t,e){var i=this.options.iconList[t],s=e.iconFiles?e.iconFiles[t]:"";return{backgroundImage:"url('"+(i?this.options.iconsPath:s)+"')",backgroundPosition:(i?-18*(i-1):0)+"px 0px"}},selectCheck:function(t,e){do{if(e.className&&-1!=e.className.indexOf("nicEdit"))return!1}while(e=e.parentNode);return this.fireEvent("blur",this.selectedInstance,e),this.lastSelectedInstance=this.selectedInstance,this.selectedInstance=null,!1}});nicEditor=nicEditor.extend(bkEvent);var nicEditorInstance=bkClass.extend({isSelected:!1,construct:function(t,e,i){this.ne=i,this.elm=this.e=t,this.options=e||{},newX=parseInt(t.getStyle("width"))||t.clientWidth,newY=parseInt(t.getStyle("height"))||t.clientHeight,this.initialHeight=newY-8;var s="textarea"==t.nodeName.toLowerCase();if(s||this.options.hasPanel){var n=bkLib.isMSIE&&!(void 0!==document.body.style.maxHeight&&"CSS1Compat"==document.compatMode),o={width:newX+"px",overflowY:"auto",overflowX:"hidden"};o[n?"height":"maxHeight"]=this.ne.options.maxHeight?this.ne.options.maxHeight+"px":null,this.editorContain=new bkElement("DIV").setStyle(o).appendBefore(t).addClass("container");var a=new bkElement("DIV").setStyle({width:newX-24+"px",margin:"8px 12px",minHeight:newY+"px"}).addClass("main").appendTo(this.editorContain);if(t.setStyle({display:"none"}),a.innerHTML=t.innerHTML,s){a.setContent(t.value),this.copyElm=t;var r=t.parentTag("FORM");r&&bkLib.addEvent(r,"submit",this.saveContent.closure(this))}a.setStyle(n?{height:newY+"px"}:{overflow:"hidden"}),this.elm=a}this.ne.addEvent("blur",this.blur.closure(this)),this.init(),this.blur()},init:function(){this.elm.setAttribute("contentEditable","true"),""==this.getContent()&&this.setContent("<br />"),this.instanceDoc=document.defaultView,this.elm.addEvent("mousedown",this.selected.closureListener(this)).addEvent("keypress",this.keyDown.closureListener(this)).addEvent("focus",this.selected.closure(this)).addEvent("blur",this.blur.closure(this)).addEvent("keyup",this.selected.closure(this)),this.ne.fireEvent("add",this)},remove:function(){this.saveContent(),(this.copyElm||this.options.hasPanel)&&(this.editorContain.remove(),this.e.setStyle({display:"block"}),this.ne.removePanel()),this.disable(),this.ne.fireEvent("remove",this)},disable:function(){this.elm.setAttribute("contentEditable","false")},getSel:function(){return window.getSelection?window.getSelection():document.selection},getRng:function(){var t=this.getSel();if(t&&0!==t.rangeCount)return t.rangeCount>0?t.getRangeAt(0):t.createRange()},selRng:function(t,e){window.getSelection?(e.removeAllRanges(),e.addRange(t)):t.select()},selElm:function(){var t=this.getRng();if(t){if(t.startContainer){var e=t.startContainer;if(1==t.cloneContents().childNodes.length)for(var i=0;i<e.childNodes.length;i++){var s=e.childNodes[i].ownerDocument.createRange();if(s.selectNode(e.childNodes[i]),1!=t.compareBoundaryPoints(Range.START_TO_START,s)&&-1!=t.compareBoundaryPoints(Range.END_TO_END,s))return $BK(e.childNodes[i])}return $BK(e)}
1return $BK("Control"==this.getSel().type?t.item(0):t.parentElement())}},saveRng:function(){this.savedRange=this.getRng(),this.savedSel=this.getSel()},restoreRng:function(){this.savedRange&&this.selRng(this.savedRange,this.savedSel)},keyDown:function(t,e){t.ctrlKey&&this.ne.fireEvent("key",this,t)},selected:function(t,e){if(e||(e=this.selElm)||(e=this.selElm()),!t.ctrlKey){var i=this.ne.selectedInstance;i!=this&&(i&&this.ne.fireEvent("blur",i,e),this.ne.selectedInstance=this,this.ne.fireEvent("focus",i,e)),this.ne.fireEvent("selected",i,e),this.isFocused=!0,this.elm.addClass("selected")}return!1},blur:function(){this.isFocused=!1,this.elm.removeClass("selected")},saveContent:function(){(this.copyElm||this.options.hasPanel)&&(this.ne.fireEvent("save",this),this.copyElm?this.copyElm.value=this.getContent():this.e.innerHTML=this.getContent())},getElm:function(){return this.elm},getContent:function(){return this.content=this.getElm().innerHTML,this.ne.fireEvent("get",this),this.content},setContent:function(t){this.content=t,this.ne.fireEvent("set",this),this.elm.innerHTML=this.content},nicCommand:function(t,e){document.execCommand(t,!1,e)}}),nicEditorIFrameInstance=nicEditorInstance.extend({savedStyles:[],init:function(){var t=this.elm.innerHTML.replace(/^\s+|\s+$/g,"");this.elm.innerHTML="",t||(t="<br />"),this.initialContent=t,this.elmFrame=new bkElement("iframe").setAttributes({src:"javascript:;",frameBorder:0,allowTransparency:"true",scrolling:"no"}).setStyle({height:"100px",width:"100%"}).addClass("frame").appendTo(this.elm),this.copyElm&&this.elmFrame.setStyle({width:this.elm.offsetWidth-4+"px"});for(itm in["font-size","font-family","font-weight","color"])this.savedStyles[bkLib.camelize(itm)]=this.elm.getStyle(itm);setTimeout(this.initFrame.closure(this),50)},disable:function(){this.elm.innerHTML=this.getContent()},initFrame:function(){var t=$BK(this.elmFrame.contentWindow.document);t.designMode="on",t.open();var e=this.ne.options.externalCSS;t.write("<html><head>"+(e?'<link href="'+e+'" rel="stylesheet" type="text/css" />':"")+'</head><body id="nicEditContent" style="margin: 0 !important; background-color: transparent !important;">'+this.initialContent+"</body></html>"),t.close(),this.frameDoc=t,this.frameWin=$BK(this.elmFrame.contentWindow),this.frameContent=$BK(this.frameWin.document.body).setStyle(this.savedStyles),this.instanceDoc=this.frameWin.document.defaultView,this.heightUpdate(),this.frameDoc.addEvent("mousedown",this.selected.closureListener(this)).addEvent("keyup",this.heightUpdate.closureListener(this)).addEvent("keydown",this.keyDown.closureListener(this)).addEvent("keyup",this.selected.closure(this)),this.ne.fireEvent("add",this)},getElm:function(){return this.frameContent},setContent:function(t){this.content=t,this.ne.fireEvent("set",this),this.frameContent.innerHTML=this.content,this.heightUpdate()},getSel:function(){return this.frameWin?this.frameWin.getSelection():this.frameDoc.selection},heightUpdate:function(){this.elmFrame.style.height=Math.max(this.frameContent.offsetHeight,this.initialHeight)+"px"},nicCommand:function(t,e){this.frameDoc.execCommand(t,!1,e),setTimeout(this.heightUpdate.closure(this),100)}}),nicEditorPanel=bkClass.extend({construct:function(t,e,i){this.elm=t,this.options=e,this.ne=i,this.panelButtons=new Array,this.buttonList=bkExtend([],this.ne.options.buttonList),this.panelContain=new bkElement("DIV").setStyle({overflow:"hidden",width:"100%"}).addClass("panelContain"),this.panelElm=new bkElement("DIV").setStyle({zoom:1,overflow:"hidden"}).addClass("panel gradient").appendTo(this.panelContain),this.panelContain.appendTo(t);var s=this.ne.options,n=s.buttons;for(button in n)this.addButton(button,s,!0);this.reorder(),t.noSelect()},addButton:function(buttonName,options,noOrder){var button=options.buttons[buttonName],type=button.type?eval("(typeof("+button.type+') == "undefined") ? null : '+button.type+";"):nicEditorButton,hasButton=bkLib.inArray(this.buttonList,buttonName);type&&(hasButton||this.ne.options.fullPanel)&&(this.panelButtons.push(new type(this.panelElm,buttonName,options,this.ne)),hasButton||this.buttonList.push(buttonName))},findButton:function(t){for(var e=0;e<this.panelButtons.length;e++)if(this.panelButtons[e].name==t)return this.panelButtons[e]},reorder:function(){for(var t=this.buttonList,e=0;e<t.length;e++){var i=this.findButton(t[e]);i&&this.panelElm.appendChild(i.margin)}},remove:function(){this.elm.remove()}}
1),nicEditorButton=bkClass.extend({construct:function(t,e,i,s){this.options=i.buttons[e],this.name=e,this.ne=s,this.elm=t,this.margin=new bkElement("DIV").setStyle({float:"left"}).appendTo(t),this.contain=new bkElement("DIV").setStyle({width:"30px",height:"26px"}).addClass("buttonContain").appendTo(this.margin),this.border=new bkElement("DIV").appendTo(this.contain),this.button=new bkElement("DIV").setStyle({width:"18px",height:"18px",overflow:"hidden",zoom:1,cursor:"pointer"}).addClass("button").setStyle(this.ne.getIcon(e,i)).appendTo(this.border),this.button.addEvent("mouseover",this.hoverOn.closure(this)).addEvent("mouseout",this.hoverOff.closure(this)).addEvent("mousedown",this.mouseClick.closure(this)).noSelect(),window.opera||(this.button.onmousedown=this.button.onclick=bkLib.cancelEvent),s.addEvent("selected",this.enable.closure(this)).addEvent("blur",this.disable.closure(this)).addEvent("key",this.key.closure(this)),this.disable(),this.init()},init:function(){},hide:function(){this.contain.setStyle({display:"none"})},updateState:function(){this.isDisabled?this.setBg():this.isHover?this.setBg("hover"):this.isActive?this.setBg("active"):this.setBg()},setBg:function(t){switch(t){case"hover":case"active":e={backgroundColor:"#dedede"};break;default:var e={backgroundColor:"transparent",borderRight:"1px solid #adadad",padding:"4px 6px"}}this.border.setStyle(e).addClass("button-"+t)},checkNodes:function(t){var e=t;do{if(this.options.tags&&bkLib.inArray(this.options.tags,e.nodeName))return this.activate(),!0}while(e=e.parentNode&&"nicEdit"!=e.className);for(e=$BK(t);3==e.nodeType;)e=$BK(e.parentNode);if(this.options.css)for(itm in this.options.css)if(e.getStyle(itm,this.ne.selectedInstance.instanceDoc)==this.options.css[itm])return this.activate(),!0;return this.deactivate(),!1},activate:function(){this.isDisabled||(this.isActive=!0,this.updateState(),this.ne.fireEvent("buttonActivate",this))},deactivate:function(){this.isActive=!1,this.updateState(),this.isDisabled||this.ne.fireEvent("buttonDeactivate",this)},enable:function(t,e){this.isDisabled=!1,this.contain.setStyle({opacity:1}).addClass("buttonEnabled"),this.updateState(),this.checkNodes(e)},disable:function(t,e){this.isDisabled=!0,this.contain.setStyle({opacity:.6}).removeClass("buttonEnabled"),this.updateState()},toggleActive:function(){this.isActive?this.deactivate():this.activate()},hoverOn:function(){this.isDisabled||(this.isHover=!0,this.updateState(),this.ne.fireEvent("buttonOver",this))},hoverOff:function(){this.isHover=!1,this.updateState(),this.ne.fireEvent("buttonOut",this)},mouseClick:function(){this.options.command&&(this.ne.nicCommand(this.options.command,this.options.commandArgs),this.options.noActive||this.toggleActive()),this.ne.fireEvent("buttonClick",this)},key:function(t,e){this.options.key&&e.ctrlKey&&String.fromCharCode(e.keyCode||e.charCode).toLowerCase()==this.options.key&&(this.mouseClick(),e.preventDefault&&e.preventDefault())}}),nicPlugin=bkClass.extend({construct:function(t,e){this.options=e,this.ne=t,this.ne.addEvent("panel",this.loadPanel.closure(this)),this.init()},loadPanel:function(t){var e=this.options.buttons;for(var i in e)t.addButton(i,this.options);t.reorder()},init:function(){}}),nicPaneOptions={},nicEditorPane=bkClass.extend({construct:function(t,e,i,s){this.ne=e,this.elm=t,this.pos=t.pos(),this.contain=new bkElement("div").setStyle({zIndex:"99999",overflow:"hidden",position:"absolute",left:this.pos[0]+"px",top:this.pos[1]+"px"}),this.pane=new bkElement("div").setStyle({fontSize:"12px",border:"1px solid #ccc",overflow:"hidden",padding:"4px",textAlign:"left",backgroundColor:"#ffffc9"}).addClass("pane").setStyle(i).appendTo(this.contain),s&&!s.options.noClose&&(this.close=new bkElement("div").setStyle({float:"right",height:"16px",width:"16px",cursor:"pointer"}).setStyle(this.ne.getIcon("close",nicPaneOptions)).addEvent("mousedown",s.removePane.closure(this)).appendTo(this.pane)),this.contain.noSelect().appendTo(document.body),this.position(),this.init()},init:function(){},position:function(){if(this.ne.nicPanel){var t=this.ne.nicPanel.elm,e=t.pos()[0]+parseInt(t.getStyle("width"))-(parseInt(this.pane.getStyle("width"))+8);e<this.pos[0]&&this.contain.setStyle({left:e+"px"})}},toggle:function(){this.isVisible=!this.isVisible,this.contain.setStyle({display:this.isVisible?"block":"none"})},remove:function(){this.contain&&(this.contain.remove(),this.contain=null)},append:function(t){t.appendTo(this.pane)},setContent:function(t){this.pane.setContent(t)}}),nicEditorAdvancedButton=nicEditorButton.extend({init:function(){this.ne.addEvent("selected",this.removePane.closure(this)).addEvent("blur",this.removePane.closure(this))},mouseClick:function(){this.isDisabled||(this.pane&&this.pane.pane?this.removePane():(this.pane=new nicEditorPane(this.contain,this.ne,{width:this.width||"270px",backgroundColor:"#fff"},this),this.addPane(),this.ne.selectedInstance.saveRng()))},addForm:function(t,e){for(itm in this.form=new bkElement("form").addEvent("submit",this.submit.closureListener(this)),this.pane.append(this.form),this.inputs={},t){var i=t[itm],s="";e&&(s=e.getAttribute(itm)),s||(s=i.value||"");var n=t[itm].type;if("title"==n)new bkElement("div").setContent(i.txt).setStyle({fontSize:"14px",fontWeight:"bold",padding:"0px",margin:"2px 0"}).appendTo(this.form);else{var o=new bkElement("div").setStyle({overflow:"hidden",clear:"both"}).appendTo(this.form);switch(i.txt&&new bkElement("label").setAttributes({for:itm}).setContent(i.txt).setStyle({margin:"2px 4px",fontSize:"13px",width:"50px",lineHeight:"20px",textAlign:"right",float:"left"}).appendTo(o),n){case"text":this.inputs[itm]=new bkElement("input").setAttributes({id:itm,value:s,type:"text"}).setStyle({margin:"2px 0",fontSize:"13px",float:"left",height:"20px",border:"1px solid #ccc",overflow:"hidden"}).setStyle(i.style).appendTo(o);break;case"select":for(opt in this.inputs[itm]=new bkElement("select").setAttributes({id:itm}).setStyle({border:"1px solid #ccc",float:"left",margin:"2px 0"}).appendTo(o),i.options)new bkElement("option").setAttributes({value:opt,selected:opt==s?"selected":""}).setContent(i.options[opt]).appendTo(this.inputs[itm]);break;case"content":this.inputs[itm]=new bkElement("textarea").setAttributes({id:itm}).setStyle({border:"1px solid #ccc",float:"left"}).setStyle(i.style).appendTo(o),this.inputs[itm].value=s}}}new bkElement("input").setAttributes({type:"submit"}).setStyle({backgroundColor:"#efefef",border:"1px solid #ccc",margin:"3px 0",float:"left",clear:"both"}).appendTo(this.form),this.form.onsubmit=bkLib.cancelEvent},submit:function(){}
1,findElm:function(t,e,i){for(var s=this.ne.selectedInstance.getElm().getElementsByTagName(t),n=0;n<s.length;n++)if(s[n].getAttribute(e)==i)return $BK(s[n])},removePane:function(){this.pane&&(this.pane.remove(),this.pane=null,this.ne.selectedInstance.restoreRng())}}),nicButtonTips=bkClass.extend({construct:function(t){this.ne=t,t.addEvent("buttonOver",this.show.closure(this)).addEvent("buttonOut",this.hide.closure(this))},show:function(t){this.timer=setTimeout(this.create.closure(this,t),400)},create:function(t){this.timer=null,this.pane||(this.pane=new nicEditorPane(t.button,this.ne,{fontSize:"12px",marginTop:"5px"}),this.pane.setContent(t.options.name))},hide:function(t){this.timer&&clearTimeout(this.timer),this.pane&&(this.pane=this.pane.remove())}});nicEditors.registerPlugin(nicButtonTips);var nicSelectOptions={buttons:{fontSize:{name:__("Select Font Size"),type:"nicEditorFontSizeSelect",command:"fontsize"},fontFamily:{name:__("Select Font Family"),type:"nicEditorFontFamilySelect",command:"fontname"},fontFormat:{name:__("Select Font Format"),type:"nicEditorFontFormatSelect",command:"formatBlock"}}},nicEditorSelect=bkClass.extend({construct:function(t,e,i,s){this.options=i.buttons[e],this.elm=t,this.ne=s,this.name=e,this.selOptions=new Array,this.margin=new bkElement("div").setStyle({float:"left",margin:"2px 1px 0 1px"}).appendTo(this.elm),this.contain=new bkElement("div").setStyle({width:"90px",height:"20px",cursor:"pointer",overflow:"hidden"}).addClass("selectContain").addEvent("click",this.toggle.closure(this)).appendTo(this.margin),this.items=new bkElement("div").setStyle({overflow:"hidden",zoom:1,border:"1px solid #ccc",paddingLeft:"3px",backgroundColor:"#fff"}).appendTo(this.contain),this.control=new bkElement("div").setStyle({overflow:"hidden",float:"right",height:"18px",width:"16px"}).addClass("selectControl").setStyle(this.ne.getIcon("arrow",i)).appendTo(this.items),this.txt=new bkElement("div").setStyle({overflow:"hidden",float:"left",width:"66px",height:"14px",marginTop:"1px",fontFamily:"sans-serif",textAlign:"center",fontSize:"12px"}).addClass("selectTxt").appendTo(this.items),window.opera||(this.contain.onmousedown=this.control.onmousedown=this.txt.onmousedown=bkLib.cancelEvent),this.margin.noSelect(),this.ne.addEvent("selected",this.enable.closure(this)).addEvent("blur",this.disable.closure(this)),this.disable(),this.init()},disable:function(){this.isDisabled=!0,this.close(),this.contain.setStyle({opacity:.6})},enable:function(t){this.isDisabled=!1,this.close(),this.contain.setStyle({opacity:1})},setDisplay:function(t){this.txt.setContent(t)},toggle:function(){this.isDisabled||(this.pane?this.close():this.open())},open:function(){this.pane=new nicEditorPane(this.items,this.ne,{width:"88px",padding:"0px",borderTop:0,borderLeft:"1px solid #ccc",borderRight:"1px solid #ccc",borderBottom:"0px",backgroundColor:"#fff"});for(var t=0;t<this.selOptions.length;t++){var e=this.selOptions[t],i=new bkElement("div").setStyle({overflow:"hidden",borderBottom:"1px solid #ccc",width:"88px",textAlign:"left",overflow:"hidden",cursor:"pointer"}),s=new bkElement("div").setStyle({padding:"0px 4px"}).setContent(e[1]).appendTo(i).noSelect();s.addEvent("click",this.update.closure(this,e[0])).addEvent("mouseover",this.over.closure(this,s)).addEvent("mouseout",this.out.closure(this,s)).setAttributes("id",e[0]),this.pane.append(i),window.opera||(s.onmousedown=bkLib.cancelEvent)}},close:function(){this.pane&&(this.pane=this.pane.remove())},over:function(t){t.setStyle({backgroundColor:"#ccc"})},out:function(t){t.setStyle({backgroundColor:"#fff"})},add:function(t,e){this.selOptions.push(new Array(t,e))},update:function(t){this.ne.nicCommand(this.options.command,t),this.close()}}),nicEditorFontSizeSelect=nicEditorSelect.extend({sel:{1:"1&nbsp;(8pt)",2:"2&nbsp;(10pt)",3:"3&nbsp;(12pt)",4:"4&nbsp;(14pt)",5:"5&nbsp;(18pt)",6:"6&nbsp;(24pt)"},init:function(){for(itm in this.setDisplay("Font&nbsp;Size..."),this.sel)this.add(itm,'<font size="'+itm+'">'+this.sel[itm]+"</font>")}}),nicEditorFontFamilySelect=nicEditorSelect.extend({sel:{arial:"Arial","comic sans ms":"Comic Sans","courier new":"Courier New",georgia:"Georgia",helvetica:"Helvetica",impact:"Impact","times new roman":"Times","trebuchet ms":"Trebuchet",verdana:"Verdana"},init:function(){for(itm in this.setDisplay("Font&nbsp;Family..."),this.sel)this.add(itm,'<font face="'+itm+'">'+this.sel[itm]+"</font>")}}),nicEditorFontFormatSelect=nicEditorSelect.extend({sel:{p:"Paragraph",pre:"Pre",h6:"Heading&nbsp;6",h5:"Heading&nbsp;5",h4:"Heading&nbsp;4",h3:"Heading&nbsp;3",h2:"Heading&nbsp;2",h1:"Heading&nbsp;1"},init:function(){for(itm in this.setDisplay("Font&nbsp;Format..."),this.sel){var t=itm.toUpperCase();this.add("<"+t+">","<"+itm+' style="padding: 0px; margin: 0px;">'+this.sel[itm]+"</"+t+">")}}});nicEditors.registerPlugin(nicPlugin,nicSelectOptions);var nicLinkOptions={buttons:{link:{name:"Add Link",type:"nicLinkButton",tags:["A"]},unlink:{name:"Remove Link",command:"unlink",noActive:!0}}},nicLinkButton=nicEditorAdvancedButton.extend({addPane:function(){this.ln=this.ne.selectedInstance.selElm().parentTag("A"),this.addForm({"":{type:"title",txt:"Add/Edit Link"},href:{type:"text",txt:"URL",value:"http://",style:{width:"150px"}},title:{type:"text",txt:"Title"},target:{type:"select",txt:"Open In",options:{"":"Current Window",_blank:"New Window"},style:{width:"100px"}}},this.ln)},submit:function(t){var e=this.inputs.href.value;if("http://"==e||""==e)return alert("You must enter a URL to Create a Link"),!1;if(this.removePane(),!this.ln){var i="javascript:nicTemp();";this.ne.nicCommand("createlink",i),this.ln=this.findElm("A","href",i)}this.ln&&this.ln.setAttributes({href:this.inputs.href.value,title:this.inputs.title.value,target:this.inputs.target.options[this.inputs.target.selectedIndex].value})}});nicEditors.registerPlugin(nicPlugin,nicLinkOptions);var nicColorOptions={buttons:{forecolor:{name:__("Text Color"),type:"nicEditorColorButton",noClose:!0}
1,bgcolor:{name:__("Change Background Color"),type:"nicEditorBgColorButton",noClose:!0}}},nicEditorColorButton=nicEditorAdvancedButton.extend({addPane:function(){var t={0:"00",1:"33",2:"66",3:"99",4:"CC",5:"FF"},e=new bkElement("DIV").setStyle({width:"270px"});for(var i in t)for(var s in t)for(var n in t){var o="#"+t[i]+t[n]+t[s],a=new bkElement("DIV").setStyle({cursor:"pointer",height:"15px",float:"left"}).appendTo(e),r=new bkElement("DIV").setStyle({border:"2px solid "+o}).appendTo(a),l=new bkElement("DIV").setStyle({backgroundColor:o,overflow:"hidden",width:"11px",height:"11px"}).addEvent("click",this.colorSelect.closure(this,o)).addEvent("mouseover",this.on.closure(this,r)).addEvent("mouseout",this.off.closure(this,r,o)).appendTo(r);window.opera||(a.onmousedown=l.onmousedown=bkLib.cancelEvent)}this.pane.append(e.noSelect())},colorSelect:function(t){this.ne.nicCommand("foreColor",t),this.removePane()},on:function(t){t.setStyle({border:"2px solid #000"})},off:function(t,e){t.setStyle({border:"2px solid "+e})}}),nicEditorBgColorButton=nicEditorColorButton.extend({colorSelect:function(t){this.ne.nicCommand("hiliteColor",t),this.removePane()}});nicEditors.registerPlugin(nicPlugin,nicColorOptions);var nicImageOptions={buttons:{image:{name:"Add Image",type:"nicImageButton",tags:["IMG"]}}},nicImageButton=nicEditorAdvancedButton.extend({addPane:function(){this.im=this.ne.selectedInstance.selElm().parentTag("IMG"),this.addForm({"":{type:"title",txt:"Add/Edit Image"},src:{type:"text",txt:"URL",value:"http://",style:{width:"150px"}},alt:{type:"text",txt:"Alt Text",style:{width:"100px"}},align:{type:"select",txt:"Align",options:{none:"Default",left:"Left",right:"Right"}}},this.im)},submit:function(t){var e=this.inputs.src.value;if(""==e||"http://"==e)return alert("You must enter a Image URL to insert"),!1;if(this.removePane(),!this.im){var i="javascript:nicImTemp();";this.ne.nicCommand("insertImage",i),this.im=this.findElm("IMG","src",i)}this.im&&this.im.setAttributes({src:this.inputs.src.value,alt:this.inputs.alt.value,align:this.inputs.align.value})}});nicEditors.registerPlugin(nicPlugin,nicImageOptions);var nicSaveOptions={buttons:{save:{name:__("Save this content"),type:"nicEditorSaveButton"}}},nicEditorSaveButton=nicEditorButton.extend({init:function(){this.ne.options.onSave||this.margin.setStyle({display:"none"})},mouseClick:function(){var t=this.ne.options.onSave,e=this.ne.selectedInstance;t(e.getContent(),e.elm.id,e)}});nicEditors.registerPlugin(nicPlugin,nicSaveOptions);var nicXHTML=bkClass.extend({stripAttributes:["_moz_dirty","_moz_resizing","_extended"],noShort:["style","title","script","textarea","a"],cssReplace:{"font-weight:bold;":"strong","font-style:italic;":"em"},sizes:{1:"xx-small",2:"x-small",3:"small",4:"medium",5:"large",6:"x-large"},construct:function(t){this.ne=t,this.ne.options.xhtml&&t.addEvent("get",this.cleanup.closure(this))},cleanup:function(t){var e=t.getElm(),i=this.toXHTML(e);t.content=i},toXHTML:function(t,e,i){var s="",n="",o="",a=t.nodeType,r=t.nodeName.toLowerCase(),l=t.hasChildNodes&&t.hasChildNodes(),h=new Array;switch(a){case 1:var c=t.attributes;switch(r){case"b":r="strong";break;case"i":r="em";break;case"font":r="span"}if(e){for(var u=0;u<c.length;u++){var d=c[u],p=d.nodeName.toLowerCase(),f=d.nodeValue;if(d.specified&&f&&!bkLib.inArray(this.stripAttributes,p)&&"function"!=typeof f){switch(p){case"style":var m=f.replace(/ /g,"");for(itm in this.cssReplace)-1!=m.indexOf(itm)&&(h.push(this.cssReplace[itm]),m=m.replace(itm,""));o+=m,f="";break;case"class":f=f.replace("Apple-style-span","");break;case"size":o+="font-size:"+this.sizes[f]+";",f=""}f&&(n+=" "+p+'="'+f+'"')}}o&&(n+=' style="'+o+'"');for(u=0;u<h.length;u++)s+="<"+h[u]+">";""==n&&"span"==r&&(e=!1),e&&(s+="<"+r,"br"!=r&&(s+=n))}if(l||bkLib.inArray(this.noShort,p)){e&&(s+=">");for(u=0;u<t.childNodes.length;u++){var g=this.toXHTML(t.childNodes[u],!0,!0);g&&(s+=g)}}else e&&(s+=" />");e&&l&&(s+="</"+r+">");for(u=0;u<h.length;u++)s+="</"+h[u]+">";break;case 3:s+=t.nodeValue}return s}});nicEditors.registerPlugin(nicXHTML);var nicBBCode=bkClass.extend({construct:function(t){if(this.ne=t,this.ne.options.bbCode){t.addEvent("get",this.bbGet.closure(this)),t.addEvent("set",this.bbSet.closure(this));var e=this.ne.loadedPlugins;for(itm in e)e[itm].toXHTML&&(this.xhtml=e[itm])}},bbGet:function(t){var e=this.xhtml.toXHTML(t.getElm());t.content=this.toBBCode(e)},bbSet:function(t){t.content=this.fromBBCode(t.content)},toBBCode:function(t){function e(e,i){t=t.replace(e,i)}return e(/\n/gi,""),e(/<strong>(.*?)<\/strong>/gi,"[b]$1[/b]"),e(/<em>(.*?)<\/em>/gi,"[i]$1[/i]"),e(/<span.*?style="text-decoration:underline;">(.*?)<\/span>/gi,"[u]$1[/u]"),e(/<ul>(.*?)<\/ul>/gi,"[list]$1[/list]"),e(/<li>(.*?)<\/li>
1/gi,"[*]$1[/*]"),e(/<ol>(.*?)<\/ol>/gi,"[list=1]$1[/list]"),e(/<img.*?src="(.*?)".*?>/gi,"[img]$1[/img]"),e(/<a.*?href="(.*?)".*?>(.*?)<\/a>/gi,"[url=$1]$2[/url]"),e(/<br.*?>/gi,"\n"),e(/<.*?>.*?<\/.*?>/gi,""),t},fromBBCode:function(t){function e(e,i){t=t.replace(e,i)}return e(/\[b\](.*?)\[\/b\]/gi,"<strong>$1</strong>"),e(/\[i\](.*?)\[\/i\]/gi,"<em>$1</em>"),e(/\[u\](.*?)\[\/u\]/gi,'<span style="text-decoration:underline;">$1</span>'),e(/\[list\](.*?)\[\/list\]/gi,"<ul>$1</ul>"),e(/\[list=1\](.*?)\[\/list\]/gi,"<ol>$1</ol>"),e(/\[\*\](.*?)\[\/\*\]/gi,"<li>$1</li>"),e(/\[img\](.*?)\[\/img\]/gi,'<img src="$1" />'),e(/\[url=(.*?)\](.*?)\[\/url\]/gi,'<a href="$1">$2</a>'),e(/\n/gi,"<br />"),t}});nicEditors.registerPlugin(nicBBCode);var nicCodeOptions={buttons:{xhtml:{name:"Edit HTML",type:"nicCodeButton"}}},nicCodeButton=nicEditorAdvancedButton.extend({width:"350px",addPane:function(){this.addForm({"":{type:"title",txt:"Edit HTML"},code:{type:"content",value:this.ne.selectedInstance.getContent(),style:{width:"340px",height:"200px"}}})},submit:function(t){var e=this.inputs.code.value;this.ne.selectedInstance.setContent(e),this.removePane()}});function cuSel(t){function e(){var t=o();$("html").off("click.cusel"),$("html").on("click.cusel",function(e){var i=$(e.target);if(i.attr("id"),i.prop("class"),(i.hasClass("cuselText")||i.hasClass("cuselFrameRight")||i.parents(".cuselText:first").length)&&!i.parents(".cusel:first").hasClass("classDisCusel"))s(i.parents(".cusel:first").find(".cusel-scroll-wrap").eq(0));else if(i.hasClass("cusel")&&!i.hasClass("classDisCusel")&&i.is("div")){s(i.find(".cusel-scroll-wrap").eq(0))}else if(i.parents(".cuselItem:first").length&&!i.parents(".cuselItem:first").hasClass("cuselActive")||i.is(".cuselItem")&&!i.hasClass("cuselActive")){var n=i.is(".cuselItem")?i:i.parents(".cuselItem:first"),o=i.parents(".cusel:first").length?i.parents(".cusel:first"):$(t.data("cusel-select")),a=n.index();if(!o.length)return;o.removeClass("cuselOpen").find(".cuselActive").removeClass("cuselActive").end().find(".cuselItem").eq(a).addClass("cuselActive"),function(t,e){var i=e.data("setclass")?e.data("setclass"):"",s=t.find(".cuselText").data("class")?t.find(".cuselText").data("class"):"",n=e.attr("val");void 0===n&&(n=e.find("label").text()),t.find(".cuselText").removeClass(s).data("class",i).addClass(i).html(e.html()).end().find("input").val(n).change()}(o,n),t.hide(),o.focus()}else{if(i.parents(".cusel-scroll-wrap").is("div"))return;t.is(":visible")&&(t.hide(),$(".cuselOpen").removeClass("cuselOpen"))}}),$(".cusel").off("keydown.cusel"),$(".cusel").on("keydown.cusel",function(t){var e,i=$(this),s=!!i.is(".cuselOpen"),o=$("#cuselBox");if(window.event?e=window.event.keyCode:t&&(e=t.which),null==e||0==e||9==e)return!0;if(-1!=i.prop("class").indexOf("classDisCusel"))return!1;switch(e){case 32:return s||i.trigger("click"),!1;case 40:case 39:var a;if(s)(a=(r=o.find(".cuselOptHover").eq(0).length?o.find(".cuselOptHover").eq(0):o.find(".cuselActive").eq(0)).next()).is(".cuselItem")&&(r.removeClass("cuselOptHover"),a.addClass("cuselOptHover"),n(o.find(".cusel-scroll-wrap").eq(0)));else(a=(r=i.find(".cuselOptHover").eq(0).length?i.find(".cuselOptHover").eq(0):i.find(".cuselActive").eq(0)).next()).is(".cuselItem")&&a.trigger("click");return!1;case 37:case 38:var r,l;if(s)(l=(r=o.find(".cuselOptHover").eq(0).length?o.find(".cuselOptHover").eq(0):o.find(".cuselActive").eq(0)).prev()).is(".cuselItem")&&(r.removeClass("cuselOptHover"),l.addClass("cuselOptHover"),n(o.find(".cusel-scroll-wrap").eq(0)));else(l=(r=i.find(".cuselOptHover").eq(0).length?i.find(".cuselOptHover").eq(0):i.find(".cuselActive").eq(0)).prev()).is(".cuselItem")&&l.trigger("click");return!1;case 27:s?(i.removeClass("cuselOpen"),o.hide()):i.blur();break;case 13:return s&&o.find(".cuselOptHover").eq(0).trigger("click").removeClass("cuselOptHover"),!1}});var e=[];$(".cusel").keypress(function(t){var i=$(this);if(!!i.is(".cuselOpen")){var s,o=$("#cuselBox");if(window.event?s=window.event.keyCode:t&&(s=t.which),null==s||0==s||9==s)return!0;if(-1!=$(this).prop("class").indexOf("classDisCusel"))return!1;e.push(t),clearTimeout($.data(this,"timer"));var a=setTimeout(function(){!function(){var t=[];for(var i in e)window.event?t[i]=e[i].keyCode:e[i]&&(t[i]=e[i].which),t[i]=String.fromCharCode(t[i]).toUpperCase();var s,a=o.find(".cuselItem label"),r=a.length;for(s=0;r>s;s++){var l=!0;for(var h in e)a.eq(s).text().charAt(h).toUpperCase()!=t[h]&&(l=!1);if(l){o.find(".cuselOptHover").removeClass("cuselOptHover").end().find(".cuselItem").eq(s).addClass("cuselOptHover"),n(o.find(".cusel-scroll-wrap").eq(0)),e=e.splice,e=[];break}}e=e.splice,e=[]}()},500);if(i.data("timer",a))return!1}})}function s(t){var e=t.parent(".cusel"),i=o();if($(".cuselOpen").removeClass("cuselOpen"),i.is(":hidden")){if(i.empty(),t.clone(!0).appendTo(i).show(),i.show().data("cusel-select",e[0]),$.ui)i.position({my:"left top",at:"left bottom",of:e});else{var s=e.offset();i.offset({left:s.left,top:s.top+e.outerHeight()})}i.css("width",e.outerWidth()+"px"),e.addClass("cuselOpen");var a=e.hasClass("cuselScrollArrows");i.find(".cusel-scroll-pane").jScrollPaneCusel({showArrows:a}),n(i.find(".cusel-scroll-wrap"))}else i.hide().removeData("cusel-select")}function n(t){var e=t.find(".cuselOptHover:first").length?t.find(".cuselOptHover:first"):t.find(".cuselActive:first");
1if(t.find(".jScrollPaneTrack:first").length&&e.length){var i=e.position();t.find(".cusel-scroll-pane:first")[0].id,t.find(".cusel-scroll-pane")[0].scrollTo(i.top)}}function o(){var t=$("#cuselBox");return t.length||(t=$('<div id="cuselBox">').hide().appendTo("body")),t}$(t.changedEl).each(function(s){var n=$(this);if(n.is("select")){var o=n.outerWidth(),a=n.prop("class"),r=this.id?this.id:"cuSel-"+Date.now()+"-"+s,l=n.prop("name"),h=n.val(),c=n.find("option[value='"+h+"']").eq(0),u=c.attr("addTags")?c.attr("addTags"):"",d=c.data("setclass")?c.data("setclass"):"",p=(c.text(),n.prop("disabled")),f=t.scrollArrows,m=n.prop("onchange"),g=n.prop("tabindex"),v=n.prop("multiple");if(!r||v)return!1;p?(classDisCuselText="classDisCuselLabel",classDisCusel="classDisCusel"):(classDisCuselText="",classDisCusel=""),f&&(classDisCusel+=" cuselScrollArrows"),n.find("option").addClass("cuselItem"),c.addClass("cuselActive");var b=n.html().replace(/option/gi,"span").replace(/value=/gi,"val="),y='<div class="cusel '+a+" "+classDisCusel+'" id=cuselFrame-'+r+' style="width:'+o+'px" tabindex="'+g+'"><div class="cuselFrameRight"></div><div data-class="'+d+'" class="cuselText '+d+'">'+u+"<label>"+c.text()+'</label></div><div class="cusel-scroll-wrap"><div class="cusel-scroll-pane" id="cusel-scroll-'+r+'">'+b+'</div></div><input type="hidden" id="'+r+'" name="'+l+'" value="'+h+'" /></div>';n.replaceWith(y),m&&$("#"+r).bind("change",m);var _,w=$("#cuselFrame-"+r),k=w.find("span.cuselItem");k.wrapInner("<label/>"),k.eq(0).find("label").text()?_=k.eq(0).innerHeight():(_=k.eq(1).innerHeight(),k.eq(0).css("height",k.eq(1).height())),k.length>t.visRows?w.find(".cusel-scroll-wrap").eq(0).css({height:_*t.visRows+"px",display:"none",visibility:"visible"}).children(".cusel-scroll-pane").css("height",_*t.visRows+"px"):w.find(".cusel-scroll-wrap").eq(0).css({display:"none",visibility:"visible"});var x=$("#cusel-scroll-"+r).find("span[addTags]"),C=x.length;for(i=0;C>i;i++)x.eq(i).prepend(x.eq(i).attr("addTags")).removeAttr("addTags");e()}})}function cuSelRefresh(t){var e,i=t.refreshEl.split(","),s=i.length;for(e=0;s>e;e++){var n=$(i[e]).parents(".cusel").find(".cusel-scroll-wrap").eq(0);n.find(".cusel-scroll-pane").jScrollPaneRemoveCusel(),n.css({visibility:"hidden",display:"block"});var o=n.find(".cuselItem"),a=o.eq(0).outerHeight();o.length>t.visRows?n.css({height:a*t.visRows+"px",display:"none",visibility:"visible"}).children(".cusel-scroll-pane").css("height",a*t.visRows+"px"):n.css({display:"none",visibility:"visible"})}}nicEditors.registerPlugin(nicPlugin,nicCodeOptions),function(){var t,e,i,s,n={}.hasOwnProperty,o=function(t,e){function i(){this.constructor=t}for(var s in e)n.call(e,s)&&(t[s]=e[s]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t};(s=function(){function t(){this.options_index=0,this.parsed=[]}return t.prototype.add_node=function(t){return"OPTGROUP"===t.nodeName.toUpperCase()?this.add_group(t):this.add_option(t)},t.prototype.add_group=function(t){var e,i,s,n,o,a;for(e=this.parsed.length,this.parsed.push({array_index:e,group:!0,label:this.escapeExpression(t.label),children:0,disabled:t.disabled}),a=[],s=0,n=(o=t.childNodes).length;n>s;s++)i=o[s],a.push(this.add_option(i,e,t.disabled));return a},t.prototype.add_option=function(t,e,i){return"OPTION"===t.nodeName.toUpperCase()?(""!==t.text?(null!=e&&(this.parsed[e].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:t.value,text:t.text,html:t.innerHTML,selected:t.selected,disabled:!0===i?i:t.disabled,group_array_index:e,classes:t.className,style:t.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1):void 0},t.prototype.escapeExpression=function(t){var e,i;return null==t||!1===t?"":/[\&\<\>\"\'\`]/.test(t)?(e={"<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},i=/&(?!\w+;)|[\<\>\"\'\`]/g,t.replace(i,function(t){return e[t]||"&amp;"})):t},t}()).select_to_array=function(t){var e,i,n,o,a;for(i=new s,n=0,o=(a=t.childNodes).length;o>n;n++)e=a[n],i.add_node(e);return i.parsed},e=function(){function t(e,i){this.form_field=e,this.options=null!=i?i:{},t.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers())}return t.prototype.set_default_values=function(){var t=this;return this.click_test_action=function(e){return t.test_active_click(e)},this.activate_action=function(e){return t.activate_field(e)},this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.result_single_selected=null,this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text&&this.options.allow_single_deselect,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null==this.options.enable_split_word_search||this.options.enable_split_word_search,this.group_search=null==this.options.group_search||this.options.group_search,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=null==this.options.single_backstroke_delete||this.options.single_backstroke_delete,this.max_selected_options=this.options.max_selected_options||1/0,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=null==this.options.display_selected_options||this.options.display_selected_options,this.display_disabled_options=null==this.options.display_disabled_options||this.options.display_disabled_options},t.prototype.set_default_text=function(){return this.default_text=this.form_field.getAttribute("data-placeholder")?this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.options.placeholder_text_multiple||this.options.placeholder_text||t.default_multiple_text:this.options.placeholder_text_single||this.options.placeholder_text||t.default_single_text,this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||t.default_no_result_text},t.prototype.mouse_enter=function(){return this.mouse_on_container=!0},t.prototype.mouse_leave=function(){return this.mouse_on_container=!1},t.prototype.input_focus=function(){var t=this;if(this.is_multiple){if(!this.active_field)return setTimeout(function(){return t.container_mousedown()},50)}else if(!this.active_field)return this.activate_field()},t.prototype.input_blur=function(){var t=this;return this.mouse_on_container?void 0:(this.active_field=!1,setTimeout(function(){return t.blur_test()},100))},t.prototype.results_option_build=function(t){var e,i,s,n,o;for(e="",s=0,n=(o=this.results_data).length;n>s;s++)e+=(i=o[s]).group?this.result_add_group(i):this.result_add_option(i),(null!=t?t.first:void 0)&&(i.selected&&this.is_multiple?this.choice_build(i):i.selected&&!this.is_multiple&&this.single_set_selected_text(i.text));return e},t.prototype.result_add_option=function(t){var e,i;return t.search_match&&this.include_option_in_results(t)?(e=[],t.disabled||t.selected&&this.is_multiple||e.push("active-result gradient"),!t.disabled||t.selected&&this.is_multiple||e.push("disabled-result"),t.selected&&e.push("result-selected gradient"),null!=t.group_array_index&&e.push("group-option"),""!==t.classes&&e.push(t.classes),i=""!==t.style.cssText?' style="'+t.style+'"':"",'<li class="'+e.join(" ")+'"'+i+' data-option-array-index="'+t.array_index+'">'+t.search_text+"</li>"):""},t.prototype.result_add_group=function(t){return(t.search_match||t.group_match)&&t.active_options>0?'<li class="group-result">'+t.search_text+"</li>":""},t.prototype.results_update_field=function(){return this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.result_single_selected=null,this.results_build(),this.results_showing?this.winnow_results():void 0},t.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},t.prototype.results_search=function(){return this.results_showing?this.winnow_results():this.results_show()},t.prototype.winnow_results=function(){var t,e,i,s,n,o,a,r,l,h,c,u,d;for(this.no_results_clear(),n=0,t=(a=this.get_search_text()).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),s=this.search_contains?"":"^",i=new RegExp(s+t,"i"),h=new RegExp(t,"i"),c=0,u=(d=this.results_data).length;u>c;c++)(e=d[c]).search_match=!1,o=null,this.include_option_in_results(e)&&(e.group&&(e.group_match=!1,e.active_options=0),null!=e.group_array_index&&this.results_data[e.group_array_index]&&(0===(o=this.results_data[e.group_array_index]).active_options&&o.search_match&&(n+=1),o.active_options+=1),(!e.group||this.group_search)&&(e.search_text=e.group?e.label:e.html,e.search_match=this.search_string_match(e.search_text,i),e.search_match&&!e.group&&(n+=1),e.search_match?(a.length&&(r=e.search_text.search(h),l=e.search_text.substr(0,r+a.length)+"</em>"+e.search_text.substr(r+a.length),e.search_text=l.substr(0,r)+"<em>"+l.substr(r)),null!=o&&(o.group_match=!0)):null!=e.group_array_index&&this.results_data[e.group_array_index].search_match&&(e.search_match=!0)));return this.result_clear_highlight(),1>n&&a.length?(this.update_results_content(""),this.no_results(a)):(this.update_results_content(this.results_option_build()),this.winnow_results_set_highlight())},t.prototype.search_string_match=function(t,e){var i,s,n,o;if(e.test(t))return!0;
1if(this.enable_split_word_search&&(t.indexOf(" ")>=0||0===t.indexOf("["))&&(s=t.replace(/\[|\]/g,"").split(" ")).length)for(n=0,o=s.length;o>n;n++)if(i=s[n],e.test(i))return!0},t.prototype.choices_count=function(){var t,e,i;if(null!=this.selected_option_count)return this.selected_option_count;for(this.selected_option_count=0,t=0,e=(i=this.form_field.options).length;e>t;t++)i[t].selected&&(this.selected_option_count+=1);return this.selected_option_count},t.prototype.choices_click=function(t){return t.preventDefault(),this.results_showing||this.is_disabled?void 0:this.results_show()},t.prototype.keyup_checker=function(t){var e,i;switch(e=null!=(i=t.which)?i:t.keyCode,this.search_field_scale(),e){case 8:if(this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0)return this.keydown_backstroke();if(!this.pending_backstroke)return this.result_clear_highlight(),this.results_search();break;case 13:if(t.preventDefault(),this.results_showing)return this.result_select(t);break;case 27:return this.results_showing&&this.results_hide(),!0;case 9:case 38:case 40:case 16:case 91:case 17:break;default:return this.results_search()}},t.prototype.container_width=function(){return null!=this.options.width?this.options.width:this.form_field.offsetWidth+"px"},t.prototype.include_option_in_results=function(t){return!(this.is_multiple&&!this.display_selected_options&&t.selected)&&(!(!this.display_disabled_options&&t.disabled)&&!t.empty)},t.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?document.documentMode>=8:!/iP(od|hone)/i.test(window.navigator.userAgent)&&(!/Android/i.test(window.navigator.userAgent)||!/Mobile/i.test(window.navigator.userAgent))},t.default_multiple_text="Select Some Options",t.default_single_text="Select an Option",t.default_no_result_text="No results match",t}(),(t=jQuery).fn.extend({chosen:function(s){return e.browser_is_supported()?this.each(function(){var e,n;n=(e=t(this)).data("chosen"),"destroy"===s&&n?n.destroy():n||e.data("chosen",new i(this,s))}):this}}),i=function(i){function n(){return n.__super__.constructor.apply(this,arguments)}return o(n,e),n.prototype.setup=function(){return this.form_field_jq=t(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex,this.is_rtl=this.form_field_jq.hasClass("chosen-rtl")},n.prototype.set_up_html=function(){var e,i;return(e=["chosen-container"]).push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&e.push(this.form_field.className),this.is_rtl&&e.push("chosen-rtl"),i={class:e.join(" "),style:"width: "+this.container_width()+";",title:this.form_field.title},this.form_field.id.length&&(i.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=t("<div />",i),this.is_multiple?this.container.html('<ul class="chosen-choices"><li class="search-field"><input type="text" value="'+this.default_text+'" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chosen-drop"><ul class="chosen-results"></ul></div>'):this.container.html('<a class="chosen-single chosen-default" tabindex="-1"><span>'+this.default_text+'</span><div><b></b></div></a><div class="chosen-drop"><div class="chosen-search"><input type="text" autocomplete="off" /></div><ul class="chosen-results"></ul></div>'),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior(),this.form_field_jq.trigger("chosen:ready",{chosen:this})},n.prototype.register_observers=function(){var t=this;return this.container.bind("mousedown.chosen",function(e){t.container_mousedown(e)}),this.container.bind("mouseup.chosen",function(e){t.container_mouseup(e)}),this.container.bind("mouseenter.chosen",function(e){t.mouse_enter(e)}),this.container.bind("mouseleave.chosen",function(e){t.mouse_leave(e)}),this.search_results.bind("mouseup.chosen",function(e){t.search_results_mouseup(e)}),this.search_results.bind("mouseover.chosen",function(e){t.search_results_mouseover(e)}),this.search_results.bind("mouseout.chosen",function(e){t.search_results_mouseout(e)}),this.search_results.bind("mousewheel.chosen DOMMouseScroll.chosen",function(e){t.search_results_mousewheel(e)}),this.form_field_jq.bind("chosen:updated.chosen",function(e){t.results_update_field(e)}),this.form_field_jq.bind("chosen:activate.chosen",function(e){t.activate_field(e)}),this.form_field_jq.bind("chosen:open.chosen",function(e){t.container_mousedown(e)}),this.search_field.bind("blur.chosen",function(e){t.input_blur(e)}
1),this.search_field.bind("keyup.chosen",function(e){t.keyup_checker(e)}),this.search_field.bind("keydown.chosen",function(e){t.keydown_checker(e)}),this.search_field.bind("focus.chosen",function(e){t.input_focus(e)}),this.is_multiple?this.search_choices.bind("click.chosen",function(e){t.choices_click(e)}):this.container.bind("click.chosen",function(t){t.preventDefault()})},n.prototype.destroy=function(){return t(document).unbind("click.chosen",this.click_test_action),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},n.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field_jq[0].disabled,this.is_disabled?(this.container.addClass("chosen-disabled"),this.search_field[0].disabled=!0,this.is_multiple||this.selected_item.unbind("focus.chosen",this.activate_action),this.close_field()):(this.container.removeClass("chosen-disabled"),this.search_field[0].disabled=!1,this.is_multiple?void 0:this.selected_item.bind("focus.chosen",this.activate_action))},n.prototype.container_mousedown=function(e){return this.is_disabled||(e&&"mousedown"===e.type&&!this.results_showing&&e.preventDefault(),null!=e&&t(e.target).hasClass("search-choice-close"))?void 0:(this.active_field?this.is_multiple||!e||t(e.target)[0]!==this.selected_item[0]&&!t(e.target).parents("a.chosen-single").length||(e.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),t(document).bind("click.chosen",this.click_test_action),this.results_show()),this.activate_field())},n.prototype.container_mouseup=function(t){return"ABBR"!==t.target.nodeName||this.is_disabled?void 0:this.results_reset(t)},n.prototype.search_results_mousewheel=function(t){var e,i,s;return null!=(e=-(null!=(i=t.originalEvent)?i.wheelDelta:void 0)||(null!=(s=t.originialEvent)?s.detail:void 0))?(t.preventDefault(),"DOMMouseScroll"===t.type&&(e*=40),this.search_results.scrollTop(e+this.search_results.scrollTop())):void 0},n.prototype.blur_test=function(){return!this.active_field&&this.container.hasClass("chosen-container-active")?this.close_field():void 0},n.prototype.close_field=function(){return t(document).unbind("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale()},n.prototype.activate_field=function(){return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},n.prototype.test_active_click=function(e){return this.container.is(t(e.target).closest(".chosen-container"))?this.active_field=!0:this.close_field()},n.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=s.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():this.is_multiple||(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},n.prototype.result_do_highlight=function(t){var e,i,s,n,o;if(t.length){if(this.result_clear_highlight(),this.result_highlight=t,this.result_highlight.addClass("highlighted"),n=(s=parseInt(this.search_results.css("maxHeight"),10))+(o=this.search_results.scrollTop()),(e=(i=this.result_highlight.position().top+this.search_results.scrollTop())+this.result_highlight.outerHeight())>=n)return this.search_results.scrollTop(e-s>0?e-s:0);if(o>i)return this.search_results.scrollTop(i)}},n.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},n.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.search_field.val()),this.winnow_results())},n.prototype.update_results_content=function(t){return this.search_results.html(t)},n.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},n.prototype.set_tab_index=function(){var t;return this.form_field.tabIndex?(t=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=t):void 0},n.prototype.set_label_behavior=function(){var e=this;return this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=t("label[for='"+this.form_field.id+"']")),this.form_field_label.length>0?this.form_field_label.bind("click.chosen",function(t){return e.is_multiple?e.container_mousedown(t):e.activate_field()}):void 0},n.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},n.prototype.search_results_mouseup=function(e){var i;return(i=t(e.target).hasClass("active-result")?t(e.target):t(e.target).parents(".active-result").first()).length?(this.result_highlight=i,this.result_select(e),this.search_field.focus()):void 0},n.prototype.search_results_mouseover=function(e){var i;return(i=t(e.target).hasClass("active-result")?t(e.target):t(e.target).parents(".active-result").first())?this.result_do_highlight(i):void 0},n.prototype.search_results_mouseout=function(e){return t(e.target).hasClass("active-result")?this.result_clear_highlight():void 0},n.prototype.choice_build=function(e){var i,s,n=this;return i=t("<li />",{class:"search-choice gradient"}).html("<span>"+e.html+"</span>
1"),e.disabled?i.addClass("search-choice-disabled"):((s=t("<a />",{class:"search-choice-close","data-option-array-index":e.array_index})).bind("click.chosen",function(t){return n.choice_destroy_link_click(t)}),i.append(s)),this.search_container.before(i)},n.prototype.choice_destroy_link_click=function(e){return e.preventDefault(),e.stopPropagation(),this.is_disabled?void 0:this.choice_destroy(t(e.target))},n.prototype.choice_destroy=function(t){return this.result_deselect(t[0].getAttribute("data-option-array-index"))?(this.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.search_field.val().length<1&&this.results_hide(),t.parents("li").first().remove(),this.search_field_scale()):void 0},n.prototype.results_reset=function(){return this.form_field.options[0].selected=!0,this.selected_option_count=null,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.form_field_jq.trigger("change"),this.active_field?this.results_hide():void 0},n.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},n.prototype.result_select=function(t){var e,i,s;return this.result_highlight?(e=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?e.removeClass("active-result"):(this.result_single_selected&&(this.result_single_selected.removeClass("result-selected"),s=this.result_single_selected[0].getAttribute("data-option-array-index"),this.results_data[s].selected=!1),this.result_single_selected=e),e.addClass("result-selected"),(i=this.results_data[e[0].getAttribute("data-option-array-index")]).selected=!0,this.form_field.options[i.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(i):this.single_set_selected_text(i.text),(t.metaKey||t.ctrlKey)&&this.is_multiple||this.results_hide(),this.search_field.val(""),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.form_field_jq.trigger("change",{selected:this.form_field.options[i.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,this.search_field_scale())):void 0},n.prototype.single_set_selected_text=function(t){return null==t&&(t=this.default_text),t===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").text(t)},n.prototype.result_deselect=function(t){var e;return e=this.results_data[t],!this.form_field.options[e.options_index].disabled&&(e.selected=!1,this.form_field.options[e.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.form_field_jq.trigger("change",{deselected:this.form_field.options[e.options_index].value}),this.search_field_scale(),!0)},n.prototype.single_deselect_control_build=function(){return this.allow_single_deselect?(this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chosen-single-with-deselect")):void 0},n.prototype.get_search_text=function(){return this.search_field.val()===this.default_text?"":t("<div/>").text(t.trim(this.search_field.val())).html()},n.prototype.winnow_results_set_highlight=function(){var t,e;return null!=(t=(e=this.is_multiple?[]:this.search_results.find(".result-selected.active-result")).length?e.first():this.search_results.find(".active-result").first())?this.result_do_highlight(t):void 0},n.prototype.no_results=function(e){var i;return(i=t('<li class="no-results">'+this.results_none_found+' "<span></span>"</li>')).find("span").first().html(e),this.search_results.append(i)},n.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},n.prototype.keydown_arrow=function(){var t;return this.results_showing&&this.result_highlight?(t=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(t):void 0:this.results_show()},n.prototype.keyup_arrow=function(){var t;return this.results_showing||this.is_multiple?this.result_highlight?(t=this.result_highlight.prevAll("li.active-result")).length?this.result_do_highlight(t.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight()):void 0:this.results_show()},n.prototype.keydown_backstroke=function(){var t;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(t=this.search_container.siblings("li.search-choice").last()).length&&!t.hasClass("search-choice-disabled")?(this.pending_backstroke=t,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0},n.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},n.prototype.keydown_checker=function(t){var e,i;switch(e=null!=(i=t.which)?i:t.keyCode,this.search_field_scale(),8!==e&&this.pending_backstroke&&this.clear_backstroke(),e){case 8:this.backstroke_length=this.search_field.val().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(t),this.mouse_on_container=!1;break;case 13:t.preventDefault();break;case 38:t.preventDefault(),this.keyup_arrow();break;case 40:t.preventDefault(),this.keydown_arrow()}},n.prototype.search_field_scale=function(){var e,i,s,n,o,a,r,l;if(this.is_multiple){for(0,a=0,n="position:absolute; left: -1000px; top: -1000px; display:none;",r=0,l=(o=["font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing"]).length;l>r;r++)n+=(s=o[r])+":"+this.search_field.css(s)+";";return(e=t("<div />",{style:n})).text(this.search_field.val()),t("body").append(e),a=e.width()+25,e.remove(),a>(i=this.container.outerWidth())-10&&(a=i-10),this.search_field.css({width:a+"px"})}},n}()}.call(this),function(t){t.jScrollPaneCusel={active:[]},t.fn.jScrollPaneCusel=function(e){e=t.extend({},t.fn.jScrollPaneCusel.defaults,e);var i=function(){return!1};return this.each(function(){function s(){var t=(K-O)/e.animateStep;t>1||-1>t?z(O+t):(z(K),G())}var n=t(this),o=this.parentNode.offsetWidth;n.css("overflow","hidden");var a=this;if(t(this).parent().is(".jScrollPaneContainer")){var r=e.maintainPosition?n.position().top:0,l=t(this).parent(),h=o,c=u=l.outerHeight();t(">.jScrollPaneTrack, >.jScrollArrowUp, >.jScrollArrowDown",l).remove(),n.css({top:0})}else{r=0;this.originalPadding=n.css("paddingTop")+" "+n.css("paddingRight")+" "+n.css("paddingBottom")+" "+n.css("paddingLeft"),this.originalSidePaddingTotal=(parseInt(n.css("paddingLeft"))||0)+(parseInt(n.css("paddingRight"))||0);var u;h=o,c=u=n.innerHeight();if(n.wrap("<div class='jScrollPaneContainer'></div>").parent().css({height:u+"px",width:h+"px"}),!window.navigator.userProfile)h-=parseInt(t(this).parent().css("border-left-width"))+parseInt(t(this).parent().css("border-right-width")),t(this).css("width",h+"px").parent().css("width",h+"px");t(document).bind("emchange",function(){n.jScrollPaneCusel(e)})}if(e.reinitialiseOnImageLoad){var d=t.data(a,"jScrollPaneImagesToLoad")||t("img",n),p=[];d.length&&d.each(function(i,s){t(this).bind("load",function(){-1==t.inArray(i,p)&&(p.push(s),d=t.grep(d,function(t){return t!=s}),t.data(a,"jScrollPaneImagesToLoad",d),e.reinitialiseOnImageLoad=!1,n.jScrollPaneCusel(e))}).each(function(){(this.complete||void 0===this.complete)&&(this.src=this.src)})})}var f=this.originalSidePaddingTotal,m={height:"auto",width:h-e.scrollbarWidth-e.scrollbarMargin-f+"px"};e.scrollbarOnLeft?m.paddingLeft=e.scrollbarMargin+e.scrollbarWidth+"px":m.paddingRight=e.scrollbarMargin+"px",n.css(m);var g=n.outerHeight(),v=u/g;if(.99>v){var b=n.parent();b.append(t('<div class="jScrollPaneTrack"></div>').css({width:e.scrollbarWidth+"px"}).append(t('<div class="jScrollPaneDrag"></div>').css({width:e.scrollbarWidth+"px"}).append(t('<div class="jScrollPaneDragTop"></div>').css({width:e.scrollbarWidth+"px"}),t('<div class="jScrollPaneDragBottom"></div>').css({width:e.scrollbarWidth+"px"}))));var y=t(">.jScrollPaneTrack",b),_=t(">.jScrollPaneTrack .jScrollPaneDrag",b);if(e.showArrows){var w,k,x,C,j=function(){(C>4||0==C%4)&&z(O+k*M),C++},T=function(){t("html").unbind("mouseup",T),w.removeClass("jScrollActiveArrowButton"),clearInterval(x)},P=function(){t("html").bind("mouseup",T),w.addClass("jScrollActiveArrowButton"),C=0,j(),x=setInterval(j,100)};b.append(t("<div></div>").attr({class:"jScrollArrowUp"}).css({width:e.scrollbarWidth+"px"}).bind("mousedown",function(){return w=t(this),k=-1,P(),this.blur(),!1}).bind("click",i),t("<div></div>").attr({class:"jScrollArrowDown"}).css({width:e.scrollbarWidth+"px"}).bind("mousedown",function(){return w=t(this),k=1,P(),this.blur(),!1}).bind("click",i));var S=t(">.jScrollArrowUp",b),D=t(">.jScrollArrowDown",b);if(e.arrowSize)c=u-e.arrowSize-e.arrowSize,y.css({height:c+"px",top:e.arrowSize+"px"});else{var E=S.height();e.arrowSize=E,c=u-E-D.height(),y.css({height:c+"px",top:E+"px"})}}var I,N,M,A=t(this).css({position:"absolute",overflow:"visible"}
1),O=0,H=v*u/2,L=function(t,e){var i="X"==e?"Left":"Top";return t["page"+e]||t["client"+e]+(document.documentElement["scroll"+i]||document.body["scroll"+i])||0},F=function(){G(),(I=_.offset()).top-=O,N=c-_[0].offsetHeight,M=2*e.wheelSpeed*N/g},R=function(){t("html").unbind("mouseup",R).unbind("mousemove",$),H=v*u/2},z=function(t){O=t=0>t?0:t>N?N:t,_.css({top:t+"px"});var i=t/N;A.css({top:(u-g)*i+"px"}),n.trigger("scroll"),e.showArrows&&(S[0==t?"addClass":"removeClass"]("disabled"),D[t==N?"addClass":"removeClass"]("disabled"))},$=function(t){z(L(t,"Y")-I.top-H)},W=Math.max(Math.min(v*(u-2*e.arrowSize),e.dragMaxHeight),e.dragMinHeight);_.css({height:W+"px"}).bind("mousedown",function(e){return F(),H=L(e,"Y")-O-I.top,t("html").bind("mouseup",R).bind("mousemove",$),!1});var B,q,V,U=function(){(q>8||0==q%4)&&z(O-(O-V)/2),q++},Y=function(){clearInterval(B),t("html").unbind("mouseup",Y).unbind("mousemove",X)},X=function(t){V=L(t,"Y")-I.top-H};y.bind("mousedown",function(e){F(),X(e),q=0,t("html").bind("mouseup",Y).bind("mousemove",X),B=setInterval(U,100),U()}),b.bind("mousewheel",function(t,e){return F(),G(),z(O-e*M),!1});var K,Q,G=function(){Q&&(clearInterval(Q),delete K)},J=function(i,o){if("string"==typeof i){if($e=t(i,n),!$e.length)return;i=$e.offset().top-n.offset().top}b.scrollTop(0),G();var a=-i/(u-g)*N;o||!e.animateTo?z(a):(K=a,Q=setInterval(s,e.animateInterval))};n[0].scrollTo=J,n[0].scrollBy=function(t){var e=-parseInt(A.css("top"))||0;J(e+t)},F(),J(-r,!0),t("*",this).bind("focus",function(){for(var i=t(this),s=0;i[0]!=n[0];)s+=i.position().top,i=i.offsetParent();var o=-parseInt(A.css("top"))||0;if(!(s>o&&o+u>s)){var a=s-e.scrollbarMargin;s>o&&(a+=t(this).height()+15+e.scrollbarMargin-u),J(a)}}),location.hash&&J(location.hash),t(document).bind("click",function(e){if($target=t(e.target),$target.is("a")){var i=$target.attr("href");"#"==i.substr(0,1)&&J(i)}}),t.jScrollPaneCusel.active.push(n[0])}else n.css({height:u+"px",width:h-this.originalSidePaddingTotal+"px",padding:this.originalPadding}),n.parent().unbind("mousewheel")})},t.fn.jScrollPaneRemoveCusel=function(){t(this).each(function(){$this=t(this);var e=$this.parent();e.is(".jScrollPaneContainer")&&($this.css({top:"",height:"",width:"",padding:"",overflow:"",position:""}),$this.attr("style",$this.data("originalStyleTag")),e.after($this).remove())})},t.fn.jScrollPaneCusel.defaults={scrollbarWidth:10,scrollbarMargin:5,wheelSpeed:18,showArrows:!1,arrowSize:0,animateTo:!1,dragMinHeight:1,dragMaxHeight:99999,animateInterval:100,animateStep:3,maintainPosition:!0,scrollbarOnLeft:!1,reinitialiseOnImageLoad:!1},t(window).bind("unload",function(){for(var e=t.jScrollPaneCusel.active,i=0;i<e.length;i++)e[i].scrollTo=e[i].scrollBy=null})}(jQuery),function(t){function e(e){var i=e||window.event,s=[].slice.call(arguments,1),n=0,o=0,a=0;return(e=t.event.fix(i)).type="mousewheel",i.wheelDelta&&(n=i.wheelDelta/120),i.detail&&(n=-i.detail/3),a=n,void 0!==i.axis&&i.axis===i.HORIZONTAL_AXIS&&(a=0,o=-1*n),void 0!==i.wheelDeltaY&&(a=i.wheelDeltaY/120),void 0!==i.wheelDeltaX&&(o=-1*i.wheelDeltaX/120),s.unshift(e,n,o,a),(t.event.dispatch||t.event.handle).apply(this,s)}var i=["DOMMouseScroll","mousewheel"];if(t.event.fixHooks)for(var s=i.length;s;)t.event.fixHooks[i[--s]]=t.event.mouseHooks;t.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var t=i.length;t;)this.addEventListener(i[--t],e,!1);else this.onmousewheel=e},teardown:function(){if(this.removeEventListener)for(var t=i.length;t;)this.removeEventListener(i[--t],e,!1);else this.onmousewheel=null}},t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})}(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.