1/*** Script File: /public/js/plugins/jquery-1.10.2.min.js, Original size: 93,067, Compressed size: 93,067 ***/ 2/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license 3*/�
vendor: 29,930 bytes, lines 3-4
3 4(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b=f.trim,x=function(e,t){return new x.fn.init(e,t,r)},w=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=/\S+/g,C=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,k=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,E=/^[\],:{}\s]*$/,S=/(?:^|:|,)(?:\s*\[)+/g,A=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,j=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,D=/^-ms-/,L=/-([\da-z])/gi,H=function(e,t){return t.toUpperCase()},q=function(e){(a.addEventListener||"load"===e.type||"complete"===a.readyState)&&(_(),x.ready())},_=function(){a.addEventListener?(a.removeEventListener("DOMContentLoaded",q,!1),e.removeEventListener("load",q,!1)):(a.detachEvent("onreadystatechange",q),e.detachEvent("onload",q))};x.fn=x.prototype={jquery:f,constructor:x,init:function(e,n,r){var i,o;if(!e)return this;if("string"==typeof e){if(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:N.exec(e),!i||!i[1]&&n)return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e);if(i[1]){if(n=n instanceof x?n[0]:n,x.merge(this,x.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:a,!0)),k.test(i[1])&&x.isPlainObject(n))for(i in n)x.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}if(o=a.getElementById(i[2]),o&&o.parentNode){if(o.id!==i[2])return r.find(e);this.length=1,this[0]=o}return this.context=a,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):x.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),x.makeArray(e,this))},selector:"",length:0,toArray:function(){return g.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return x.each(this,e,t)},ready:function(e){return x.ready.promise().done(e),this},slice:function(){return this.pushStack(g.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(x.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:h,sort:[].sort,splice:[].splice},x.fn.init.prototype=x.fn,x.extend=x.fn.extend=function(){var e,n,r,i,o,a,s=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),"object"==typeof s||x.isFunction(s)||(s={}),u===l&&(s=this,--l);u>l;l++)if(null!=(o=arguments[l]))for(i in o)e=s[i],r=o[i],s!==r&&(c&&r&&(x.isPlainObject(r)||(n=x.isArray(r)))?(n?(n=!1,a=e&&x.isArray(e)?e:[]):a=e&&x.isPlainObject(e)?e:{},s[i]=x.extend(c,a,r)):r!==t&&(s[i]=r));return s},x.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),noConflict:function(t){return e.$===x&&(e.$=u),t&&e.jQuery===x&&(e.jQuery=l),x},isReady:!1,readyWait:1,holdReady:function(e){e?x.readyWait++:x.ready(!0)},ready:function(e){if(e===!0?!--x.readyWait:!x.isReady){if(!a.body)return setTimeout(x.ready);x.isReady=!0,e!==!0&&--x.readyWait>0||(n.resolveWith(a,[x]),x.fn.trigger&&x(a).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===x.type(e)},isArray:Array.isArray||function(e){return"array"===x.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[y.call(e)]||"object":typeof e},isPlainObject:function(e){var n;if(!e||"object"!==x.type(e)||e.nodeType||x.isWindow(e))return!1;try{if(e.constructor&&!v.call(e,"constructor")&&!v.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(r){return!1}if(x.support.ownLast)for(n in e)return v.call(e,n);for(n in e);return n===t||v.call(e,n)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||a;var r=k.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=x.buildFragment([e],t,i),i&&x(i).remove(),x.merge([],r.childNodes))},parseJSON:function(n){return e.JSON&&e.JSON.parse?e.JSON.parse(n):null===n?n:"string"==typeof n&&(n=x.trim(n),n&&E.test(n.replace(A,"@").replace(j,"]").replace(S,"")))?Function("return "+n)():(x.error("Invalid JSON: "+n),t)},parseXML:function(n){var r,i;if(!n||"string"!=typeof n)return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(o){r=t}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&x.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(D,"ms-").replace(L,H)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,o=e.length,a=M(e);if(n){if(a){for(;o>i;i++)if(r=t.apply(e[i],n),r===!1)break}else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(a){for(;o>i;i++)if(r=t.call(e[i],i,e[i]),r===!1)break}else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:b&&!b.call("\ufeff\u00a0")?function(e){return null==e?"":b.call(e)}:function(e){return null==e?"":(e+"").replace(C,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(M(Object(e))?x.merge(n,"string"==typeof e?[e]:e):h.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(m)return m.call(t,e,n);for(r=t.length,n=n?0>n?Math.max(0,r+n):n:0;r>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,o=0;if("number"==typeof r)for(;r>o;o++)e[i++]=n[o];else while(n[o]!==t)e[i++]=n[o++];return e.length=i,e},grep:function(e,t,n){var r,i=[],o=0,a=e.length;for(n=!!n;a>o;o++)r=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,t,n){var r,i=0,o=e.length,a=M(e),s=[];if(a)for(;o>i;i++)r=t(e[i],i,n),null!=r&&(s[s.length]=r);else for(i in e)r=t(e[i],i,n),null!=r&&(s[s.length]=r);return d.apply([],s)},guid:1,proxy:function(e,n){var r,i,o;return"string"==typeof n&&(o=e[n],n=e,e=o),x.isFunction(e)?(r=g.call(arguments,2),i=function(){return e.apply(n||this,r.concat(g.call(arguments)))},i.guid=e.guid=e.guid||x.guid++,i):t},access:function(e,n,r,i,o,a,s){var l=0,u=e.length,c=null==r;if("object"===x.type(r)){o=!0;for(l in r)x.access(e,n,l,r[l],!0,a,s)}else if(i!==t&&(o=!0,x.isFunction(i)||(s=!0),c&&(s?(n.call(e,i),n=null):(c=n,n=function(e,t,n){return c.call(x(e),n)})),n))for(;u>l;l++)n(e[l],r,s?i:i.call(e[l],l,n(e[l],r)));return o?e:c?n.call(e):u?n(e[0],r):a},now:function(){return(new Date).getTime()},swap:function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i}}),x.ready.promise=function(t){if(!n)if(n=x.Deferred(),"complete"===a.readyState)setTimeout(x.ready);else if(a.addEventListener)a.addEventListener("DOMContentLoaded",q,!1),e.addEventListener("load",q,!1);else{a.attachEvent("onreadystatechange",q),e.attachEvent("onload",q);var r=!1;try{r=null==e.frameElement&&a.documentElement}catch(i){}r&&r.doScroll&&function o(){if(!x.isReady){try{r.doScroll("left")}catch(e){return setTimeout(o,50)}_(),x.ready()}}()}return n.promise(t)},x.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){c["[object "+t+"]"]=t.toLowerCase()});function M(e){var t=e.length,n=x.type(e);return x.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}r=x(a),function(e,t){var n,r,i,o,a,s,l,u,c,p,f,d,h,g,m,y,v,b="sizzle"+-new Date,w=e.document,T=0,C=0,N=st(),k=st(),E=st(),S=!1,A=function(e,t){return e===t?(S=!0,0):0},j=typeof t,D=1<<31,L={}.hasOwnProperty,H=[],q=H.pop,_=H.push,M=H.push,O=H.slice,F=H.indexOf||function(e){var t=0,n=this.length;for(;n>t;t++)if(this[t]===e)return t;return-1},B="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",W=R.replace("w","w#"),$="\\["+P+"*("+R+")"+P+"*(?:([*^$|!~]?=)"+P+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+W+")|)|)"+P+"*\\]",I=":("+R+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+$.replace(3,8)+")*)|.*)\\)|)",z=RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g"),X=RegExp("^"+P+"*,"+P+"*"),U=RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),V=RegExp(P+"*[+~]"),Y=RegExp("="+P+"*([^\\]'\"]*)"+P+"*\\]","g"),J=RegExp(I),G=RegExp("^"+W+"$"),Q={ID:RegExp("^#("+R+")"),CLASS:RegExp("^\\.("+R+")"),TAG:RegExp("^("+R.replace("w","w*")+")"),ATTR:RegExp("^"+$),PSEUDO:RegExp("^"+I),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:RegExp("^(?:"+B+")$","i"),needsContext:RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,et=/^(?:input|select|textarea|button)$/i,tt=/^h\d$/i,nt=/'|\\/g,rt=RegExp("\\\\([\\da-f]{1,6}"+P+"?|("+P+")|.)","ig"),it=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)};try{M.apply(H=O.call(w.childNodes),w.childNodes),H[w.childNodes.length].nodeType}catch(ot){M={apply:H.length?function(e,t){_.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function at(e,t,n,i){var o,a,s,l,u,c,d,m,y,x;if((t?t.ownerDocument||t:w)!==f&&p(t),t=t||f,n=n||[],!e||"string"!=typeof e)return n;if(1!==(l=t.nodeType)&&9!==l)return[];if(h&&!i){if(o=Z.exec(e))if(s=o[1]){if(9===l){if(a=t.getElementById(s),!a||!a.parentNode)return n;if(a.id===s)return n.push(a),n}else if(t.ownerDocument&&(a=t.ownerDocument.getElementById(s))&&v(t,a)&&a.id===s)return n.push(a),n}else{if(o[2])return M.apply(n,t.getElementsByTagName(e)),n;if((s=o[3])&&r.getElementsByClassName&&t.getElementsByClassName)return M.apply(n,t.getElementsByClassName(s)),n}if(r.qsa&&(!g||!g.test(e))){if(m=d=b,y=t,x=9===l&&e,1===l&&"object"!==t.nodeName.toLowerCase()){c=mt(e),(d=t.getAttribute("id"))?m=d.replace(nt,"\\$&"):t.setAttribute("id",m),m="[id='"+m+"'] ",u=c.length;while(u--)c[u]=m+yt(c[u]);y=V.test(e)&&t.parentNode||t,x=c.join(",")}if(x)try{return M.apply(n,y.querySelectorAll(x)),n}catch(T){}finally{d||t.removeAttribute("id")}}}return kt(e.replace(z,"$1"),t,n,i)}function st(){var e=[];function t(n,r){return e.push(n+=" ")>o.cacheLength&&delete t[e.shift()],t[n]=r}return t}function lt(e){return e[b]=!0,e}function ut(e){var t=f.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ct(e,t){var n=e.split("|"),r=e.length;while(r--)o.attrHandle[n[r]]=t}function pt(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||D)-(~e.sourceIndex||D);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function ft(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function dt(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ht(e){return lt(function(t){return t=+t,lt(function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}s=at.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},r=at.support={},p=at.setDocument=function(e){var n=e?e.ownerDocument||e:w,i=n.defaultView;return n!==f&&9===n.nodeType&&n.documentElement?(f=n,d=n.documentElement,h=!s(n),i&&i.attachEvent&&i!==i.top&&i.attachEvent("onbeforeunload",function(){p()}),r.attributes=ut(function(e){return e.className="i",!e.getAttribute("className")}),r.getElementsByTagName=ut(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),r.getElementsByClassName=ut(function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),r.getById=ut(function(e){return d.appendChild(e).id=b,!n.getElementsByName||!n.getElementsByName(b).length}),r.getById?(o.find.ID=function(e,t){if(typeof t.getElementById!==j&&h){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},o.filter.ID=function(e){var t=e.replace(rt,it);return function(e){return e.getAttribute("id")===t}}):(delete o.find.ID,o.filter.ID=function(e){var t=e.replace(rt,it);return function(e){var n=typeof e.getAttributeNode!==j&&e.getAttributeNode("id");return n&&n.value===t}}),o.find.TAG=r.getElementsByTagName?function(e,n){return typeof n.getElementsByTagName!==j?n.getElementsByTagName(e):t}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},o.find.CLASS=r.getElementsByClassName&&function(e,n){return typeof n.getElementsByClassName!==j&&h?n.getElementsByClassName(e):t},m=[],g=[],(r.qsa=K.test(n.querySelectorAll))&&(ut(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||g.push("\\["+P+"*(?:value|"+B+")"),e.querySelectorAll(":checked").length||g.push(":checked")}),ut(function(e){var t=n.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("t",""),e.querySelectorAll("[t^='']").length&&g.push("[*^$]="+P+"*(?:''|\"\")"),e.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(r.matchesSelector=K.test(y=d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&ut(function(e){r.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),m.push("!=",I)}),g=g.length&&RegExp(g.join("|")),m=m.length&&RegExp(m.join("|")),v=K.test(d.contains)||d.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},A=d.compareDocumentPosition?function(e,t){if(e===t)return S=!0,0;var i=t.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(t);return i?1&i||!r.sortDetached&&t.compareDocumentPosition(e)===i?e===n||v(w,e)?-1:t===n||v(w,t)?1:c?F.call(c,e)-F.call(c,t):0:4&i?-1:1:e.compareDocumentPosition?-1:1}:function(e,t){var r,i=0,o=e.parentNode,a=t.parentNode,s=[e],l=[t];if(e===t)return S=!0,0;if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:c?F.call(c,e)-F.call(c,t):0;if(o===a)return pt(e,t);r=e;while(r=r.parentNode)s.unshift(r);r=t;while(r=r.parentNode)l.unshift(r);while(s[i]===l[i])i++;return i?pt(s[i],l[i]):s[i]===w?-1:l[i]===w?1:0},n):f},at.matches=function(e,t){return at(e,null,null,t)},at.matchesSelector=function(e,t){if((e.ownerDocument||e)!==f&&p(e),t=t.replace(Y,"='$1']"),!(!r.matchesSelector||!h||m&&m.test(t)||g&&g.test(t)))try{var n=y.call(e,t);if(n||r.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(i){}return at(t,f,null,[e]).length>0},at.contains=function(e,t){return(e.ownerDocument||e)!==f&&p(e),v(e,t)},at.attr=function(e,n){(e.ownerDocument||e)!==f&&p(e);var i=o.attrHandle[n.toLowerCase()],a=i&&L.call(o.attrHandle,n.toLowerCase())?i(e,n,!h):t;return a===t?r.attributes||!h?e.getAttribute(n):(a=e.getAttributeNode(n))&&a.specified?a.value:null:a},at.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},at.uniqueSort=function(e){var t,n=[],i=0,o=0;if(S=!r.detectDuplicates,c=!r.sortStable&&e.slice(0),e.sort(A),S){while(t=e[o++])t===e[o]&&(i=n.push(o));while(i--)e.splice(n[i],1)}return e},a=at.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=a(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=a(t);return n},o=at.selectors={cacheLength:50,createPseudo:lt,match:Q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(rt,it),e[3]=(e[4]||e[5]||"").replace(rt,it),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||at.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&at.error(e[0]),e},PSEUDO:function(e){var n,r=!e[5]&&e[2];return Q.CHILD.test(e[0])?null:(e[3]&&e[4]!==t?e[2]=e[4]:r&&J.test(r)&&(n=mt(r,!0))&&(n=r.indexOf(")",r.length-n)-r.length)&&(e[0]=e[0].slice(0,n),e[2]=r.slice(0,n)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(rt,it).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=N[e+" "];return t||(t=RegExp("(^|"+P+")"+e+"("+P+"|$)"))&&N(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==j&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=at.attr(r,e);return null==i?"!="===t:t?(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,p,f,d,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!l&&!s;if(m){if(o){while(g){p=t;while(p=p[g])if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&v){c=m[b]||(m[b]={}),u=c[e]||[],d=u[0]===T&&u[1],f=u[0]===T&&u[2],p=d&&m.childNodes[d];while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if(1===p.nodeType&&++f&&p===t){c[e]=[T,d,f];break}}else if(v&&(u=(t[b]||(t[b]={}))[e])&&u[0]===T)f=u[1];else while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if((s?p.nodeName.toLowerCase()===y:1===p.nodeType)&&++f&&(v&&((p[b]||(p[b]={}))[e]=[T,f]),p===t))break;return f-=i,f===r||0===f%r&&f/r>=0}}},PSEUDO:function(e,t){var n,r=o.pseudos[e]||o.setFilters[e.toLowerCase()]||at.error("unsupported pseudo: "+e);return r[b]?r(t):r.length>1?(n=[e,e,"",t],o.setFilters.hasOwnProperty(e.toLowerCase())?lt(function(e,n){var i,o=r(e,t),a=o.length;while(a--)i=F.call(e,o[a]),e[i]=!(n[i]=o[a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:lt(function(e){var t=[],n=[],r=l(e.replace(z,"$1"));return r[b]?lt(function(e,t,n,i){var o,a=r(e,null,i,[]),s=e.length;while(s--)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}}),has:lt(function(e){return function(t){return at(e,t).length>0}}),contains:lt(function(e){return function(t){return(t.textContent||t.innerText||a(t)).indexOf(e)>-1}}),lang:lt(function(e){return G.test(e||"")||at.error("unsupported lang: "+e),e=e.replace(rt,it).toLowerCase(),function(t){var n;do if(n=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!o.pseudos.empty(e)},header:function(e){return tt.test(e.nodeName)},input:function(e){return et.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:ht(function(){return[0]}),last:ht(function(e,t){return[t-1]}),eq:ht(function(e,t,n){return[0>n?n+t:n]}),even:ht(function(e,t){var n=0;for(;t>n;n+=2)e.push(n);return e}),odd:ht(function(e,t){var n=1;for(;t>n;n+=2)e.push(n);return e}),lt:ht(function(e,t,n){var r=0>n?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:ht(function(e,t,n){var r=0>n?n+t:n;for(;t>++r;)e.push(r);return e})}},o.pseudos.nth=o.pseudos.eq;for(n in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})o.pseudos[n]=ft(n);for(n in{submit:!0,reset:!0})o.pseudos[n]=dt(n);function gt(){}gt.prototype=o.filters=o.pseudos,o.setFilters=new gt;function mt(e,t){var n,r,i,a,s,l,u,c=k[e+" "];if(c)return t?0:c.slice(0);s=e,l=[],u=o.preFilter;while(s){(!n||(r=X.exec(s)))&&(r&&(s=s.slice(r[0].length)||s),l.push(i=[])),n=!1,(r=U.exec(s))&&(n=r.shift(),i.push({value:n,type:r[0].replace(z," ")}),s=s.slice(n.length));for(a in o.filter)!(r=Q[a].exec(s))||u[a]&&!(r=u[a](r))||(n=r.shift(),i.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?at.error(e):k(e,l).slice(0)}function yt(e){var t=0,n=e.length,r="";for(;n>t;t++)r+=e[t].value;return r}function vt(e,t,n){var r=t.dir,o=n&&"parentNode"===r,a=C++;return t.first?function(t,n,i){while(t=t[r])if(1===t.nodeType||o)return e(t,n,i)}:function(t,n,s){var l,u,c,p=T+" "+a;if(s){while(t=t[r])if((1===t.nodeType||o)&&e(t,n,s))return!0}else while(t=t[r])if(1===t.nodeType||o)if(c=t[b]||(t[b]={}),(u=c[r])&&u[0]===p){if((l=u[1])===!0||l===i)return l===!0}else if(u=c[r]=[p],u[1]=e(t,n,s)||i,u[1]===!0)return!0}}function bt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function xt(e,t,n,r,i){var o,a=[],s=0,l=e.length,u=null!=t;for(;l>s;s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),u&&t.push(s));return a}function wt(e,t,n,r,i,o){return r&&!r[b]&&(r=wt(r)),i&&!i[b]&&(i=wt(i,o)),lt(function(o,a,s,l){var u,c,p,f=[],d=[],h=a.length,g=o||Nt(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?g:xt(g,f,e,s,l),y=n?i||(o?e:h||r)?[]:a:m;if(n&&n(m,y,s,l),r){u=xt(y,d),r(u,[],s,l),c=u.length;while(c--)(p=u[c])&&(y[d[c]]=!(m[d[c]]=p))}if(o){if(i||e){if(i){u=[],c=y.length;while(c--)(p=y[c])&&u.push(m[c]=p);i(null,y=[],u,l)}c=y.length;while(c--)(p=y[c])&&(u=i?F.call(o,p):f[c])>-1&&(o[u]=!(a[u]=p))}}else y=xt(y===a?y.splice(h,y.length):y),i?i(null,a,y,l):M.apply(a,y)})}function Tt(e){var t,n,r,i=e.length,a=o.relative[e[0].type],s=a||o.relative[" "],l=a?1:0,c=vt(function(e){return e===t},s,!0),p=vt(function(e){return F.call(t,e)>-1},s,!0),f=[function(e,n,r){return!a&&(r||n!==u)||((t=n).nodeType?c(e,n,r):p(e,n,r))}];for(;i>l;l++)if(n=o.relative[e[l].type])f=[vt(bt(f),n)];else{if(n=o.filter[e[l].type].apply(null,e[l].matches),n[b]){for(r=++l;i>r;r++)if(o.relative[e[r].type])break;return wt(l>1&&bt(f),l>1&&yt(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(z,"$1"),n,r>l&&Tt(e.slice(l,r)),i>r&&Tt(e=e.slice(r)),i>r&&yt(e))}f.push(n)}return bt(f)}function Ct(e,t){var n=0,r=t.length>0,a=e.length>0,s=function(s,l,c,p,d){var h,g,m,y=[],v=0,b="0",x=s&&[],w=null!=d,C=u,N=s||a&&o.find.TAG("*",d&&l.parentNode||l),k=T+=null==C?1:Math.random()||.1;for(w&&(u=l!==f&&l,i=n);null!=(h=N[b]);b++){if(a&&h){g=0;while(m=e[g++])if(m(h,l,c)){p.push(h);break}w&&(T=k,i=++n)}r&&((h=!m&&h)&&v--,s&&x.push(h))}if(v+=b,r&&b!==v){g=0;while(m=t[g++])m(x,y,l,c);if(s){if(v>0)while(b--)x[b]||y[b]||(y[b]=q.call(p));y=xt(y)}M.apply(p,y),w&&!s&&y.length>0&&v+t.length>1&&at.uniqueSort(p)}return w&&(T=k,u=C),x};return r?lt(s):s}l=at.compile=function(e,t){var n,r=[],i=[],o=E[e+" "];if(!o){t||(t=mt(e)),n=t.length;while(n--)o=Tt(t[n]),o[b]?r.push(o):i.push(o);o=E(e,Ct(i,r))}return o};function Nt(e,t,n){var r=0,i=t.length;for(;i>r;r++)at(e,t[r],n);return n}function kt(e,t,n,i){var a,s,u,c,p,f=mt(e);if(!i&&1===f.length){if(s=f[0]=f[0].slice(0),s.length>2&&"ID"===(u=s[0]).type&&r.getById&&9===t.nodeType&&h&&o.relative[s[1].type]){if(t=(o.find.ID(u.matches[0].replace(rt,it),t)||[])[0],!t)return n;e=e.slice(s.shift().value.length)}a=Q.needsContext.test(e)?0:s.length;while(a--){if(u=s[a],o.relative[c=u.type])break;if((p=o.find[c])&&(i=p(u.matches[0].replace(rt,it),V.test(s[0].type)&&t.parentNode||t))){if(s.splice(a,1),e=i.length&&yt(s),!e)return M.apply(n,i),n;break}}}return l(e,f)(i,t,!h,n,V.test(e)),n}r.sortStable=b.split("").sort(A).join("")===b,r.detectDuplicates=S,p(),r.sortDetached=ut(function(e){return 1&e.compareDocumentPosition(f.createElement("div"))}),ut(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ct("type|href|height|width",function(e,n,r){return r?t:e.getAttribute(n,"type"===n.toLowerCase()?1:2)}),r.attributes&&ut(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ct("value",function(e,n,r){return r||"input"!==e.nodeName.toLowerCase()?t:e.defaultValue}),ut(function(e){return null==e.getAttribute("disabled")})||ct(B,function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&i.specified?i.value:e[n]===!0?n.toLowerCase():null}),x.find=at,x.expr=at.selectors,x.expr[":"]=x.expr.pseudos,x.unique=at.uniqueSort,x.text=at.getText,x.isXMLDoc=at.isXML,x.contains=at.contains}(e);var O={};function F(e){var t=O[e]={};return x.each(e.match(T)||[],function(e,n){t[n]=!0}),t}x.Callbacks=function(e){e="string"==typeof e?O[e]||F(e):x.extend({},e);var n,r,i,o,a,s,l=[],u=!e.once&&[],c=function(t){for(r=e.memory&&t,i=!0,a=s||0,s=0,o=l.length,n=!0;l&&o>a;a++)if(l[a].apply(t[0],t[1])===!1&&e.stopOnFalse){r=!1;break}n=!1,l&&(u?u.length&&c(u.shift()):r?l=[]:p.disable())},p={add:function(){if(l){var t=l.length;(function i(t){x.each(t,function(t,n){var r=x.type(n);"function"===r?e.unique&&p.has(n)||l.push(n):n&&n.length&&"string"!==r&&i(n)})})(arguments),n?o=l.length:r&&(s=t,c(r))}return this},remove:function(){return l&&x.each(arguments,function(e,t){var r;while((r=x.inArray(t,l,r))>-1)l.splice(r,1),n&&(o>=r&&o--,a>=r&&a--)}),this},has:function(e){return e?x.inArray(e,l)>-1:!(!l||!l.length)},empty:function(){return l=[],o=0,this},disable:function(){return l=u=r=t,this},disabled:function(){return!l},lock:function(){return u=t,r||p.disable(),this},locked:function(){return!u},fireWith:function(e,t){return!l||i&&!u||(t=t||[],t=[e,t.slice?t.slice():t],n?u.push(t):c(t)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p},x.extend({Deferred:function(e){var t=[["resolve","done",x.Callbacks("once memory"),"resolved"],["reject","fail",x.Callbacks("once memory"),"rejected"],["notify","progress",x.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return x.Deferred(function(n){x.each(t,function(t,o){var a=o[0],s=x.isFunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&&x.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a+"With"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?x.extend(e,r):r}},i={};return r.pipe=r.then,x.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=g.call(arguments),r=n.length,i=1!==r||e&&x.isFunction(e.promise)?r:0,o=1===i?e:x.Deferred(),a=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?g.call(arguments):r,n===s?o.notifyWith(t,n):--i||o.resolveWith(t,n)}},s,l,u;if(r>1)for(s=Array(r),l=Array(r),u=Array(r);r>t;t++)n[t]&&x.isFunction(n[t].promise)?n[t].promise().done(a(t,u,n)).fail(o.reject).progress(a(t,l,s)):--i;return i||o.resolveWith(u,n),o.promise()}}),x.support=function(t){var n,r,o,s,l,u,c,p,f,d=a.createElement("div");if(d.setAttribute("className","t"),d.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=d.getElementsByTagName("*")||[],r=d.getElementsByTagName("a")[0],!r||!r.style||!n.length)return t;s=a.createElement("select"),u=s.appendChild(a.createElement("option")),o=d.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t.getSetAttribute="t"!==d.className,t.leadingWhitespace=3===d.firstChild.nodeType,t.tbody=!d.getElementsByTagName("tbody").length,t.htmlSerialize=!!d.getElementsByTagName("link").length,t.style=/top/.test(r.getAttribute("style")),t.hrefNormalized="/a"===r.getAttribute("href"),t.opacity=/^0.5/.test(r.style.opacity),t.cssFloat=!!r.style.cssFloat,t.checkOn=!!o.value,t.optSelected=u.selected,t.enctype=!!a.createElement("form").enctype,t.html5Clone="<:nav></:nav>"!==a.createElement("nav").cloneNode(!0).outerHTML,t.inlineBlockNeedsLayout=!1,t.shrinkWrapBlocks=!1,t.pixelPosition=!1,t.deleteExpando=!0,t.noCloneEvent=!0,t.reliableMarginRight=!0,t.boxSizingReliable=!0,o.checked=!0,t.noCloneChecked=o.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!u.disabled;try{delete d.test}catch(h){t.deleteExpando=!1}o=a.createElement("input"),o.setAttribute("value",""),t.input=""===o.getAttribute("value"),o.value="t",o.setAttribute("type","radio"),t.radioValue="t"===o.value,o.setAttribute("checked","t"),o.setAttribute("name","t"),l=a.createDocumentFragment(),l.appendChild(o),t.appendChecked=o.checked,t.checkClone
vendor: 3,746 bytes, lines 4-5
4=l.cloneNode(!0).cloneNode(!0).lastChild.checked,d.attachEvent&&(d.attachEvent("onclick",function(){t.noCloneEvent=!1}),d.cloneNode(!0).click());for(f in{submit:!0,change:!0,focusin:!0})d.setAttribute(c="on"+f,"t"),t[f+"Bubbles"]=c in e||d.attributes[c].expando===!1;d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===d.style.backgroundClip;for(f in x(t))break;return t.ownLast="0"!==f,x(function(){var n,r,o,s="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&&(n=a.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",l.appendChild(n).appendChild(d),d.innerHTML="<table><tr><td></td><td>t</td></tr></table>",o=d.getElementsByTagName("td"),o[0].style.cssText="padding:0;margin:0;border:0;display:none",p=0===o[0].offsetHeight,o[0].style.display="",o[1].style.display="none",t.reliableHiddenOffsets=p&&0===o[0].offsetHeight,d.innerHTML="",d.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%;",x.swap(l,null!=l.style.zoom?{zoom:1}:{},function(){t.boxSizing=4===d.offsetWidth}),e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(d,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(d,null)||{width:"4px"}).width,r=d.appendChild(a.createElement("div")),r.style.cssText=d.style.cssText=s,r.style.marginRight=r.style.width="0",d.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight)),typeof d.style.zoom!==i&&(d.innerHTML="",d.style.cssText=s+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===d.offsetWidth,d.style.display="block",d.innerHTML="<div></div>",d.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==d.offsetWidth,t.inlineBlockNeedsLayout&&(l.style.zoom=1)),l.removeChild(n),n=d=o=r=null)}),n=s=l=u=r=o=null,t 5}({});var B=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,P=/([A-Z])/g;function R(e,n,r,i){if(x.acceptData(e)){var o,a,s=x.expando,l=e.nodeType,u=l?x.cache:e,c=l?e[s]:e[s]&&s;if(c&&u[c]&&(i||u[c].data)||r!==t||"string"!=typeof n)return c||(c=l?e[s]=p.pop()||x.guid++:s),u[c]||(u[c]=l?{}:{toJSON:x.noop}),("object"==typeof n||"function"==typeof n)&&(i?u[c]=x.extend(u[c],n):u[c].data=x.extend(u[c].data,n)),a=u[c],i||(a.data||(a.data={}),a=a.data),r!==t&&(a[x.camelCase(n)]=r),"string"==typeof n?(o=a[n],null==o&&(o=a[x.camelCase(n)])):o=a,o}}function W(e,t,n){if(x.acceptData(e)){var r,i,o=e.nodeType,a=o?x.cache:e,s=o?e[x.expando]:x.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){x.isArray(t)?t=t.concat(x.map(t,x.camelCase)):t in r?t=[t]:(t=x.camelCase(t),t=t in r?[t]:t.split(" ")),i=t.length;while(i--)delete r[t[i]];if(n?!I(r):!x.isEmptyObject(r))return}(n||(delete a[s].data,I(a[s])))&&(o?x.cleanData([e],!0):x.support.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}x.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?x.cache[e[x.expando]]:e[x.expando],!!e&&!I(e)},data:function(e,t,n){return R(e,t,n)},removeData:function(e,t){return W(e,t)},_data:function(e,t,n){return R(e,t,n,!0)},_removeData:function(e,t){return W(e,t,!0)},acceptData:function(e){if(e.nodeType&&1!==e.nodeType&&9!==e.nodeType)return!1;var t=e.nodeName&&x.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),x.fn.extend({data:function(e,n){var r,i,o=null,a=0,s=this[0];if(e===t){if(this.length&&(o=x.data(s),1===s.nodeType&&!x._data(s,"parsedAttrs"))){for(r=s.attributes;r.length>a;
vendor: 28,442 bytes, line 5
5a++)i=r[a].name,0===i.indexOf("data-")&&(i=x.camelCase(i.slice(5)),$(s,i,o[i]));x._data(s,"parsedAttrs",!0)}return o}return"object"==typeof e?this.each(function(){x.data(this,e)}):arguments.length>1?this.each(function(){x.data(this,e,n)}):s?$(s,e,x.data(s,e)):null},removeData:function(e){return this.each(function(){x.removeData(this,e)})}});function $(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(P,"-$1").toLowerCase();if(r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:B.test(r)?x.parseJSON(r):r}catch(o){}x.data(e,n,r)}else r=t}return r}function I(e){var t;for(t in e)if(("data"!==t||!x.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}x.extend({queue:function(e,n,r){var i;return e?(n=(n||"fx")+"queue",i=x._data(e,n),r&&(!i||x.isArray(r)?i=x._data(e,n,x.makeArray(r)):i.push(r)),i||[]):t},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),r=n.length,i=n.shift(),o=x._queueHooks(e,t),a=function(){x.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return x._data(e,n)||x._data(e,n,{empty:x.Callbacks("once memory").add(function(){x._removeData(e,t+"queue"),x._removeData(e,n)})})}}),x.fn.extend({queue:function(e,n){var r=2;return"string"!=typeof e&&(n=e,e="fx",r--),r>arguments.length?x.queue(this[0],e):n===t?this:this.each(function(){var t=x.queue(this,e,n);x._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&x.dequeue(this,e)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},delay:function(e,t){return e=x.fx?x.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,i=1,o=x.Deferred(),a=this,s=this.length,l=function(){--i||o.resolveWith(a,[a])};"string"!=typeof e&&(n=e,e=t),e=e||"fx";while(s--)r=x._data(a[s],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(l));return l(),o.promise(n)}});var z,X,U=/[\t\r\n\f]/g,V=/\r/g,Y=/^(?:input|select|textarea|button|object)$/i,J=/^(?:a|area)$/i,G=/^(?:checked|selected)$/i,Q=x.support.getSetAttribute,K=x.support.input;x.fn.extend({attr:function(e,t){return x.access(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})},prop:function(e,t){return x.access(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return e=x.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,o,a=0,s=this.length,l="string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).addClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(T)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(U," "):" ")){o=0;while(i=t[o++])0>r.indexOf(" "+i+" ")&&(r+=i+" ");n.className=x.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,a=0,s=this.length,l=0===arguments.length||"string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).removeClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(T)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(U," "):"")){o=0;while(i=t[o++])while(r.indexOf(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");n.className=e?x.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):x.isFunction(e)?this.each(function(n){x(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n){var t,r=0,o=x(this),a=e.match(T)||[];while(t=a[r++])o.hasClass(t)?o.removeClass(t):o.addClass(t)}else(n===i||"boolean"===n)&&(this.className&&x._data(this,"__className__",this.className),this.className=this.className||e===!1?"":x._data(this,"__className__")||"")})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(U," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,o=this[0];{if(arguments.length)return i=x.isFunction(e),this.each(function(n){var o;1===this.nodeType&&(o=i?e.call(this,n,x(this).val()):e,null==o?o="":"number"==typeof o?o+="":x.isArray(o)&&(o=x.map(o,function(e){return null==e?"":e+""})),r=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this,o,"value")!==t||(this.value=o))});if(o)return r=x.valHooks[o.type]||x.valHooks[o.nodeName.toLowerCase()],r&&"get"in r&&(n=r.get(o,"value"))!==t?n:(n=o.value,"string"==typeof n?n.replace(V,""):null==n?"":n)}}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,a=o?null:[],s=o?i+1:r.length,l=0>i?s:o?i:0;for(;s>l;l++)if(n=r[l],!(!n.selected&&l!==i||(x.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&x.nodeName(n.parentNode,"optgroup"))){if(t=x(n).val(),o)return t;a.push(t)}return a},set:function(e,t){var n,r,i=e.options,o=x.makeArray(t),a=i.length;while(a--)r=i[a],(r.selected=x.inArray(x(r).val(),o)>=0)&&(n=!0);return n||(e.selectedIndex=-1),o}}},attr:function(e,n,r){var o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return typeof e.getAttribute===i?x.prop(e,n,r):(1===s&&x.isXMLDoc(e)||(n=n.toLowerCase(),o=x.attrHooks[n]||(x.expr.match.bool.test(n)?X:z)),r===t?o&&"get"in o&&null!==(a=o.get(e,n))?a:(a=x.find.attr(e,n),null==a?t:a):null!==r?o&&"set"in o&&(a=o.set(e,r,n))!==t?a:(e.setAttribute(n,r+""),r):(x.removeAttr(e,n),t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(T);if(o&&1===e.nodeType)while(n=o[i++])r=x.propFix[n]||n,x.expr.match.bool.test(n)?K&&Q||!G.test(n)?e[r]=!1:e[x.camelCase("default-"+n)]=e[r]=!1:x.attr(e,n,""),e.removeAttribute(Q?n:r)},attrHooks:{type:{set:function(e,t){if(!x.support.radioValue&&"radio"===t&&x.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(e,n,r){var i,o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return a=1!==s||!x.isXMLDoc(e),a&&(n=x.propFix[n]||n,o=x.propHooks[n]),r!==t?o&&"set"in o&&(i=o.set(e,r,n))!==t?i:e[n]=r:o&&"get"in o&&null!==(i=o.get(e,n))?i:e[n]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):Y.test(e.nodeName)||J.test(e.nodeName)&&e.href?0:-1}}}}),X={set:function(e,t,n){return t===!1?x.removeAttr(e,n):K&&Q||!G.test(n)?e.setAttribute(!Q&&x.propFix[n]||n,n):e[x.camelCase("default-"+n)]=e[n]=!0,n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(e,n){var r=x.expr.attrHandle[n]||x.find.attr;x.expr.attrHandle[n]=K&&Q||!G.test(n)?function(e,n,i){var o=x.expr.attrHandle[n],a=i?t:(x.expr.attrHandle[n]=t)!=r(e,n,i)?n.toLowerCase():null;return x.expr.attrHandle[n]=o,a}:function(e,n,r){return r?t:e[x.camelCase("default-"+n)]?n.toLowerCase():null}}),K&&Q||(x.attrHooks.value={set:function(e,n,r){return x.nodeName(e,"input")?(e.defaultValue=n,t):z&&z.set(e,n,r)}}),Q||(z={set:function(e,n,r){var i=e.getAttributeNode(r);return i||e.setAttributeNode(i=e.ownerDocument.createAttribute(r)),i.value=n+="","value"===r||n===e.getAttribute(r)?n:t}},x.expr.attrHandle.id=x.expr.attrHandle.name=x.expr.attrHandle.coords=function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&""!==i.value?i.value:null},x.valHooks.button={get:function(e,n){var r=e.getAttributeNode(n);return r&&r.specified?r.value:t},set:z.set},x.attrHooks.contenteditable={set:function(e,t,n){z.set(e,""===t?!1:t,n)}},x.each(["width","height"],function(e,n){x.attrHooks[n]={set:function(e,r){return""===r?(e.setAttribute(n,"auto"),r):t}}})),x.support.hrefNormalized||x.each(["href","src"],function(e,t){x.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),x.support.style||(x.attrHooks.style={get:function(e){return e.style.cssText||t},set:function(e,t){return e.style.cssText=t+""}}),x.support.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.support.enctype||(x.propFix.enctype="encoding"),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,n){return x.isArray(n)?e.checked=x.inArray(x(e).val(),n)>=0:t}},x.support.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Z=/^(?:input|select|textarea)$/i,et=/^key/,tt=/^(?:mouse|contextmenu)|click/,nt=/^(?:focusinfocus|focusoutblur)$/,rt=/^([^.]*)(?:\.(.+)|)$/;function it(){return!0}function ot(){return!1}function at(){try{return a.activeElement}catch(e){}}x.event={global:{},add:function(e,n,r,o,a){var s,l,u,c,p,f,d,h,g,m,y,v=x._data(e);if(v){r.handler&&(c=r,r=c.handler,a=c.selector),r.guid||(r.guid=x.guid++),(l=v.events)||(l=v.events={}),(f=v.handle)||(f=v.handle=function(e){return typeof x===i||e&&x.event.triggered===e.type?t:x.event.dispatch.apply(f.elem,arguments)},f.elem=e),n=(n||"").match(T)||[""],u=n.length;while(u--)s=rt.exec(n[u])||[],g=y=s[1],m=(s[2]||"").split(".").sort(),g&&(p=x.event.special[g]||{},g=(a?p.delegateType:p.bindType)||g,p=x.event.special[g]||{},d=x.extend({type:g,origType:y,data:o,handler:r,guid:r.guid,selector:a,needsContext:a&&x.expr.match.needsContext.test(a),namespace:m.join(".")},c),(h=l[g])||(h=l[g]=[],h.delegateCount=0,p.setup&&p.setup.call(e,o,m,f)!==!1||(e.addEventListener?e.addEventListener(g,f,!1):e.attachEvent&&e.attachEvent("on"+g,f))),p.add&&(p.add.call(e,d),d.handler.guid||(d.handler.guid=r.guid)),a?h.splice(h.delegateCount++,0,d):h.push(d),x.event.global[g]=!0);e=null}},remove:function(e,t,n,r,i){var o,a,s,l,u,c,p,f,d,h,g,m=x.hasData(e)&&x._data(e);if(m&&(c=m.events)){t=(t||"").match(T)||[""],u=t.length;while(u--)if(s=rt.exec(t[u])||[],d=g=s[1],h=(s[2]||"").split(".").sort(),d){p=x.event.special[d]||{},d=(r?p.delegateType:p.bindType)||d,f=c[d]||[],s=s[2]&&RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=f.length;while(o--)a=f[o],!i&&g!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(f.splice(o,1),a.selector&&f.delegateCount--,p.remove&&p.remove.call(e,a));l&&!f.length&&(p.teardown&&p.teardown.call(e,h,m.handle)!==!1||x.removeEvent(e,d,m.handle),delete c[d])}else for(d in c)x.event.remove(e,d+t[u],n,r,!0);x.isEmptyObject(c)&&(delete m.handle,x._removeData(e,"events"))}},trigger:function(n,r,i,o){var s,l,u,c,p,f,d,h=[i||a],g=v.call(n,"type")?n.type:n,m=v.call(n,"namespace")?n.namespace.split("."):[];if(u=f=i=i||a,3!==i.nodeType&&8!==i.nodeType&&!nt.test(g+x.event.triggered)&&(g.indexOf(".")>=0&&(m=g.split("."),g=m.shift(),m.sort()),l=0>g.indexOf(":")&&"on"+g,n=n[x.expando]?n:new x.Event(g,"object"==typeof n&&n),n.isTrigger=o?2:3,n.namespace=m.join("."),n.namespace_re=n.namespace?RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=t,n.target||(n.target=i),r=null==r?[n]:x.makeArray(r,[n]),p=x.event.special[g]||{},o||!p.trigger||p.trigger.apply(i,r)!==!1)){if(!o&&!p.noBubble&&!x.isWindow(i)){for(c=p.delegateType||g,nt.test(c+g)||(u=u.parentNode);u;u=u.parentNode)h.push(u),f=u;f===(i.ownerDocument||a)&&h.push(f.defaultView||f.parentWindow||e)}d=0;while((u=h[d++])&&!n.isPropagationStopped())n.type=d>1?c:p.bindType||g,s=(x._data(u,"events")||{})[n.type]&&x._data(u,"handle"),s&&s.apply(u,r),s=l&&u[l],s&&x.acceptData(u)&&s.apply&&s.apply(u,r)===!1&&n.preventDefault();if(n.type=g,!o&&!n.isDefaultPrevented()&&(!p._default||p._default.apply(h.pop(),r)===!1)&&x.acceptData(i)&&l&&i[g]&&!x.isWindow(i)){f=i[l],f&&(i[l]=null),x.event.triggered=g;try{i[g]()}catch(y){}x.event.triggered=t,f&&(i[l]=f)}return n.result}},dispatch:function(e){e=x.event.fix(e);var n,r,i,o,a,s=[],l=g.call(arguments),u=(x._data(this,"events")||{})[e.type]||[],c=x.event.special[e.type]||{};if(l[0]=e,e.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,e)!==!1){s=x.event.handlers.call(this,e,u),n=0;while((o=s[n++])&&!e.isPropagationStopped()){e.currentTarget=o.elem,a=0;while((i=o.handlers[a++])&&!e.isImmediatePropagationStopped())(!e.namespace_re||e.namespace_re.test(i.namespace))&&(e.handleObj=i,e.data=i.data,r=((x.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,l),r!==t&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,n){var r,i,o,a,s=[],l=n.delegateCount,u=e.target;if(l&&u.nodeType&&(!e.button||"click"!==e.type))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==e.type)){for(o=[],a=0;l>a;a++)i=n[a],r=i.selector+" ",o[r]===t&&(o[r]=i.needsContext?x(r,this).index(u)>=0:x.find(r,this,null,[u]).length),o[r]&&o.push(i);o.length&&s.push({elem:u,handlers:o})}return n.length>l&&s.push({elem:this,handlers:n.slice(l)}),s},fix:function(e){if(e[x.expando])return e;var t,n,r,i=e.type,o=e,s=this.fixHooks[i];s||(this.fixHooks[i]=s=tt.test(i)?this.mouseHooks:et.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new x.Event(o),t=r.length;while(t--)n=r[t],e[n]=o[n];return e.target||(e.target=o.srcElement||a),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,o):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,i,o,s=n.button,l=n.fromElement;return null==e.pageX&&null!=n.clientX&&(i=e.target.ownerDocument||a,o=i.documentElement,r=i.body,e.pageX=n.clientX+(o&&o.scrollLeft||r&&r.scrollLeft||0)-(o&&o.clientLeft||r&&r.clientLeft||0),e.pageY=n.clientY+(o&&o.scrollTop||r&&r.scrollTop||0)-(o&&o.clientTop||r&&r.clientTop||0)),!e.relatedTarget&&l&&(e.relatedTarget=l===e.target?n.toElement:l),e.which||s===t||(e.which=1&s?1:2&s?3:4&s?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==at()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===at()&&this.blur?(this.blur(),!1):t},delegateType:"focusout"},click:{trigger:function(){return x.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):t},_default:function(e){return x.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==t&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=x.extend(new x.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?x.event.trigger(i,null,t):x.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},x.removeEvent=a.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]===i&&(e[r]=null),e.detachEvent(r,n))},x.Event=function(e,n){return this instanceof x.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?it:ot):this.type=e,n&&x.extend(this,n),this.timeStamp=e&&e.timeStamp||x.now(),this[x.expando]=!0,t):new x.Event(e,n)},x.Event.prototype={isDefaultPrevented:ot,isPropagationStopped:ot,isImmediatePropagationStopped:ot,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=it,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=it,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=it,this.stopPropagation()}},x.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return(!i||i!==r&&!x.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),x.support.submitBubbles||(x.event.special.submit={setup:function(){return x.nodeName(this,"form")?!1:(x.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=x.nodeName(n,"input")||x.nodeName(n,"button")?n.form:t;r&&!x._data(r,"submitBubbles")&&(x.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),x._data(r,"submitBubbles",!0))}),t)},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&x.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return x.nodeName(this,"form")?!1:(x.event.remove(this,"._submit"),t)}}),x.support.changeBubbles||(x.event.special.change={setup:function(){return Z.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(x.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),x.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),x.event.simulate("change",this,e,!0)})),!1):(x.event.add(this,"beforeactivate._change",function(e){var t=e.target;Z.test(t.nodeName)&&!x._data(t,"changeBubbles")&&(x.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||x.event.simulate("change",this.parentNode,e,!0)}),x._data(t,"changeBubbles",!0))}),t)},handle:function(e){var n=e.target;return this!==n||e.isSimulated||e.isTrigger||"radio"!==n.type&&"checkbox"!==n.type?e.handleObj.handler.apply(this,arguments):t},teardown:function(){return x.event.remove(this,"._change"),!Z.test(this.nodeName)}}),x.support.focusinBubbles||x.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){x.event.simulate(t,e.target,x.event.fix(e),!0)};x.event.special[t]={setup:function(){0===n++&&a.addEventListener(e,r,!0)},teardown:function(){0===--n&&a.removeEventListener(e,r,!0)}}}),x.fn.extend({on:function(e,n,r,i,o){var a,s;if("object"==typeof e){"string"!=typeof n&&(r=r||n,n=t);for(a in e)this.on(a,n,r,e[a],o);return this}if(null==r&&null==i?(i=n,r=n=t):null==i&&("string"==typeof n?(i=r,r=t):(i=r,r=n,n=t)),i===!1)i=ot;else if(!i)return this;return 1===o&&(s=i,i=function(e){return x().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=x.guid++)),this.each(function(){x.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,x(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,n,e[o]);return this}return(n===!1||"function"==typeof n)&&(r=n,n=t),r===!1&&(r=ot),this.each(function(){x.event.remove(this,e,r,n)})},trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,n){var r=this[0];return r?x.event.trigger(e,n,r,!0):t}});var st=/^.[^:#\[\.,]*$/,lt=/^(?:parents|prev(?:Until|All))/,ut=x.expr.match.needsContext,ct={children:!0,contents:!0,next:!0,prev:!0};x.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(t=0;i>t;t++)if(x.contains(r[t],this))return!0}));for(t=0;i>t;t++)x.find(e,r[t],n);return n=this.pushStack(i>1?x.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},has:function(e){var t,n=x(e,this),r=n.length;return this.filter(function(){for(t=0;r>t;t++)if(x.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(ft(this,e||[],!0))},filter:function(e){return this.pushStack(ft(this,e||[],!1))},is:function(e){return!!ft(this,"string"==typeof e&&ut.test(e)?x(e):e||[],!1).length},closest:function(e,t){var n,r=0,i=this.length,o=[],a=ut.test(e)||"string"!=typeof e?x(e,t||this.context):0;for(;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(11>n.nodeType&&(a?a.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){n=o.push(n);break}return this.pushStack(o.length>1?x.unique(o):o)},index:function(e){return e?"string"==typeof e?x.inArray(this[0],x(e)):x.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n="string"==typeof e?x(e,t):x.makeArray(e&&e.nodeType?[e]:e),r=x.merge(this.get(),n);return this.pushStack(x.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}});function pt(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return x.dir(e,"parentNode")},parentsUntil:function(e,t,n){return x.dir(e,"parentNode",n)},next:function(e){return pt(e,"nextSibling")},prev:function(e){return pt(e,"previousSibling")},nextAll:function(e){return x.dir(e,"nextSibling")},prevAll:function(e){return x.dir(e,"previousSibling")},nextUntil:function(e,t,n){return x.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return x.dir(e,"previousSibling",n)},siblings:function(e){return x.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return x.sibling(e.firstChild)},contents:function(e){return x.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:x.merge([],e.childNodes)}},function(e,t){x.fn[e]=function(n,r){var i=x.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=x.filter(r,i)),this.length>1&&(ct[e]||(i=x.unique(i)),lt.test(e)&&(i=i.reverse())),this.pushStack(i)}}),x.extend({filter:function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))},dir:function(e,n,r){var i=[],o=e[n];while(o&&9!==o.nodeType&&(r===t||1!==o.nodeType||!x(o).is(r)))1===o.nodeType&&i.push(o),o=o[n];return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});function ft(e,t,n){if(x.isFunction(t))return x.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return x.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(st.test(t))return x.filter(t,e,n);t=x.filter(t,e)}return x.grep(e,function(e){return x.inArray(e,t)>=0!==n})}function dt(e){var t=ht.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}var ht="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",gt=/ jQuery\d+="(?:null|\d+)"/g,mt=RegExp("<(?:"+ht+")[\\s/>]","i"),yt=/^\s+/,vt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bt=/<([\w:]+)/,xt=/<tbody/i,wt=/<|&#?\w+;/,Tt=/<(?:script|style|link)/i,Ct=/^(?:checkbox|radio)$/i,Nt=/checked\s*(?:[^=]|=\s*.checked.)/i,kt=/^$|\/(?:java|ecma)script/i,Et=/^true\/(.*)/,St=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,At={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:x.support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},jt=dt(a),Dt=jt.appendChild(a.createElement("div"));At.optgroup=At.option,At.tbody=At.tfoot=At.colgroup=At.caption=At.thead,At.th=At.td,x.fn.extend({text:function(e){return x.access(this,function(e){return e===t?x.text(this):this.empty().append((this[0]&&this[0].ownerDocument||a).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Lt(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Lt(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=e?x.filter(e,this):this,i=0;for(;null!=(n=r[i]);i++)t||1!==n.nodeType||x.cleanData(Ft(n)),n.parentNode&&(t&&x.contains(n.ownerDocument,n)&&_t(Ft(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){var e,t=0;for(;null!=(e=this[t]);t++){1===e.nodeType&&x.cleanData(Ft(e,!1));while(e.firstChild)e.removeChild(e.firstChild);e.options&&x.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return x.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return 1===n.nodeType?n.innerHTML.replace(gt,""):t;if(!("string"!=typeof e||Tt.test(e)||!x.support.htmlSerialize&&mt.test(e)||!x.support.leadingWhitespace&&yt.test(e)||At[(bt.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(vt,"<$1></$2>");try{for(;i>r;r++)n=this[r]||{},1===n.nodeType&&(x.cleanData(Ft(n,!1)),n.innerHTML=e);n=0}catch(o){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=x.map(this,function(e){return[e.nextSibling,e.parentNode]}),t=0;return this.domManip(arguments,function(n){var r=e[t++],i=e[t++];i&&(r&&r.parentNode!==i&&(r=this.nextSibling),x(this).remove(),i.insertBefore(n,r))},!0),t?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t,n){e=d.apply([],e);var r,i,o,a,s,l,u=0,c=this.length,p=this,f=c-1,h=e[0],g=x.isFunction(h);if(g||!(1>=c||"string"!=typeof h||x.support.checkClone)&&Nt.test(h))return this.each(function(r){var i=p.eq(r);g&&(e[0]=h.call(this,r,i.html())),i.domManip(e,t,n)});if(c&&(l=x.buildFragment(e,this[0].ownerDocument,!1,!n&&this),r=l.firstChild,1===l.childNodes.length&&(l=r),r)){for(a=x.map(Ft(l,"script"),Ht),o=a.length;c>u;u++)i=l,u!==f&&(i=x.clone(i,!0,!0),o&&x.merge(a,Ft(i,"script"))),t.call(this[u],i,u);if(o)for(s=a[a.length-1].ownerDocument,x.map(a,qt),u=0;o>u;u++)i=a[u],kt.test(i.type||"")&&!x._data(i,"globalEval")&&x.contains(s,i)&&(i.src?x._evalUrl(i.src):x.globalEval((i.text||i.textContent||i.innerHTML||"").replace(St,"")));l=r=null}return this}});function Lt(e,t){return x.nodeName(e,"table")&&x.nodeName(1===t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function Ht(e){return e.type=(null!==x.find.attr(e,"type"))+"/"+e.type,e}function qt(e){var t=Et.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function _t(e,t){var n,r=0;for(;null!=(n=e[r]);r++)x._data(n,"globalEval",!t||x._data(t[r],"globalEval"))}function Mt(e,t){if(1===t.nodeType&&x.hasData(e)){var n,r,i,o=x._data(e),a=x._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;i>r;r++)x.event.add(t,n,s[n][r])}a.data&&(a.data=x.extend({},a.data))}}function Ot(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!x.support.noCloneEvent&&t[x.expando]){i=x._data(t);for(r in i.events)x.removeEvent(t,r,i.handle);t.removeAttribute(x.expando)}"script"===n&&t.text!==e.text?(Ht(t).text=e.text,qt(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),x.support.html5Clone&&e.innerHTML&&!x.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Ct.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){x.fn[e]=function(e){var n,r=0,i=[],o=x(e),a=o.length-1;for(;a>=r;r++)n=r===a?this:this.clone(!0),x(o[r])[t](n),h.apply(i,n.get());return this.pushStack(i)}});function Ft(e,n){var r,o,a=0,s=typeof e.getElementsByTagName!==i?e.getElementsByTagName(n||"*"):typeof e.querySelectorAll!==i?e.querySelectorAll(n||"*"):t;if(!s)for(s=[],r=e.childNodes||e;null!=(o=r[a]);a++)!n||x.nodeName(o,n)?s.push(o):x.merge(s,Ft(o,n));
vendor: 4,896 bytes, lines 5-6
5return n===t||n&&x.nodeName(e,n)?x.merge([e],s):s}function Bt(e){Ct.test(e.type)&&(e.defaultChecked=e.checked)}x.extend({clone:function(e,t,n){var r,i,o,a,s,l=x.contains(e.ownerDocument,e);if(x.support.html5Clone||x.isXMLDoc(e)||!mt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Dt.innerHTML=e.outerHTML,Dt.removeChild(o=Dt.firstChild)),!(x.support.noCloneEvent&&x.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(r=Ft(o),s=Ft(e),a=0;null!=(i=s[a]);++a)r[a]&&Ot(i,r[a]);if(t)if(n)for(s=s||Ft(e),r=r||Ft(o),a=0;null!=(i=s[a]);a++)Mt(i,r[a]);else Mt(e,o);return r=Ft(o,"script"),r.length>0&&_t(r,!l&&Ft(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){var i,o,a,s,l,u,c,p=e.length,f=dt(t),d=[],h=0;for(;p>h;h++)if(o=e[h],o||0===o)if("object"===x.type(o))x.merge(d,o.nodeType?[o]:o);else if(wt.test(o)){s=s||f.appendChild(t.createElement("div")),l=(bt.exec(o)||["",""])[1].toLowerCase(),c=At[l]||At._default,s.innerHTML=c[1]+o.replace(vt,"<$1></$2>")+c[2],i=c[0];while(i--)s=s.lastChild;if(!x.support.leadingWhitespace&&yt.test(o)&&d.push(t.createTextNode(yt.exec(o)[0])),!x.support.tbody){o="table"!==l||xt.test(o)?"<table>"!==c[1]||xt.test(o)?0:s:s.firstChild,i=o&&o.childNodes.length;while(i--)x.nodeName(u=o.childNodes[i],"tbody")&&!u.childNodes.length&&o.removeChild(u)}x.merge(d,s.childNodes),s.textContent="";while(s.firstChild)s.removeChild(s.firstChild);s=f.lastChild}else d.push(t.createTextNode(o));s&&f.removeChild(s),x.support.appendChecked||x.grep(Ft(d,"input"),Bt),h=0;while(o=d[h++])if((!r||-1===x.inArray(o,r))&&(a=x.contains(o.ownerDocument,o),s=Ft(f.appendChild(o),"script"),a&&_t(s),n)){i=0;while(o=s[i++])kt.test(o.type||"")&&n.push(o)}return s=null,f},cleanData:function(e,t){var n,r,o,a,s=0,l=x.expando,u=x.cache,c=x.support.deleteExpando,f=x.event.special;for(;null!=(n=e[s]);s++)if((t||x.acceptData(n))&&(o=n[l],a=o&&u[o])){if(a.events)for(r in a.events)f[r]?x.event.remove(n,r):x.removeEvent(n,r,a.handle); 6u[o]&&(delete u[o],c?delete n[l]:typeof n.removeAttribute!==i?n.removeAttribute(l):n[l]=null,p.push(o))}},_evalUrl:function(e){return x.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}}),x.fn.extend({wrapAll:function(e){if(x.isFunction(e))return this.each(function(t){x(this).wrapAll(e.call(this,t))});if(this[0]){var t=x(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&1===e.firstChild.nodeType)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return x.isFunction(e)?this.each(function(t){x(this).wrapInner(e.call(this,t))}):this.each(function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=x.isFunction(e);return this.each(function(n){x(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){x.nodeName(this,"body")||x(this).replaceWith(this.childNodes)}).end()}});var Pt,Rt,Wt,$t=/alpha\([^)]*\)/i,It=/opacity\s*=\s*([^)]*)/,zt=/^(top|right|bottom|left)$/,Xt=/^(none|table(?!-c[ea]).+)/,Ut=/^margin/,Vt=RegExp("^("+w+")(.*)$","i"),Yt=RegExp("^("+w+")(?!px)[a-z%]+$","i"),Jt=RegExp("^([+-])=("+w+")","i"),Gt={BODY:"block"},Qt={position:"absolute",visibility:"hidden",display:"block"},Kt={letterSpacing:0,fontWeight:400},Zt=["Top","Right","Bottom","Left"],en=["Webkit","O","Moz","ms"];function tn(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=en.length;while(i--)if(t=en[i]+n,t in e)return t;return r}function nn(e,t){return e=t||e,"none"===x.css(e,"display")||!x.contains(e.ownerDocument,e)}function rn(e,t){var n,r,i,o=[],a=0,s=e.length;for(;s>a;a++)r=e[a],r.style&&(o[a]=x._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&nn(r)&&(o[a]=x._data(r,"olddisplay",ln(r.nodeName)))):o[a]||(i=nn(r),(n&&"none"!==n||!i)&&x._data(r,"olddisplay",i?n:x.css(r,"display"))));for(a=0;s>a;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}x.fn.extend({css:function(e,n){return x.access(this,function(e,n,r){var i,o,a={},s=0;if(x.isArray(n)){for(o=Rt(e),i=n.length;i>s;s++)a[n[s]]=x.css(e,n[s],!1,o);return a}return r!==t?x.style(e,n,r):x.css(e,n)},e,n,arguments.length>1)},show:function(){return rn(this,!0)},hide:function(){return rn(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){nn(this)?x(this).show():x(this).hide()})}}),x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Wt(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":x.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s,l=x.camelCase(n),u=e.style;
vendor: 25,969 bytes, line 6
6if(n=x.cssProps[l]||(x.cssProps[l]=tn(u,l)),s=x.cssHooks[n]||x.cssHooks[l],r===t)return s&&"get"in s&&(o=s.get(e,!1,i))!==t?o:u[n];if(a=typeof r,"string"===a&&(o=Jt.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(x.css(e,n)),a="number"),!(null==r||"number"===a&&isNaN(r)||("number"!==a||x.cssNumber[l]||(r+="px"),x.support.clearCloneStyle||""!==r||0!==n.indexOf("background")||(u[n]="inherit"),s&&"set"in s&&(r=s.set(e,r,i))===t)))try{u[n]=r}catch(c){}}},css:function(e,n,r,i){var o,a,s,l=x.camelCase(n);return n=x.cssProps[l]||(x.cssProps[l]=tn(e.style,l)),s=x.cssHooks[n]||x.cssHooks[l],s&&"get"in s&&(a=s.get(e,!0,r)),a===t&&(a=Wt(e,n,i)),"normal"===a&&n in Kt&&(a=Kt[n]),""===r||r?(o=parseFloat(a),r===!0||x.isNumeric(o)?o||0:a):a}}),e.getComputedStyle?(Rt=function(t){return e.getComputedStyle(t,null)},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),l=s?s.getPropertyValue(n)||s[n]:t,u=e.style;return s&&(""!==l||x.contains(e.ownerDocument,e)||(l=x.style(e,n)),Yt.test(l)&&Ut.test(n)&&(i=u.width,o=u.minWidth,a=u.maxWidth,u.minWidth=u.maxWidth=u.width=l,l=s.width,u.width=i,u.minWidth=o,u.maxWidth=a)),l}):a.documentElement.currentStyle&&(Rt=function(e){return e.currentStyle},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),l=s?s[n]:t,u=e.style;return null==l&&u&&u[n]&&(l=u[n]),Yt.test(l)&&!zt.test(n)&&(i=u.left,o=e.runtimeStyle,a=o&&o.left,a&&(o.left=e.currentStyle.left),u.left="fontSize"===n?"1em":l,l=u.pixelLeft+"px",u.left=i,a&&(o.left=a)),""===l?"auto":l});function on(e,t,n){var r=Vt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function an(e,t,n,r,i){var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;for(;4>o;o+=2)"margin"===n&&(a+=x.css(e,n+Zt[o],!0,i)),r?("content"===n&&(a-=x.css(e,"padding"+Zt[o],!0,i)),"margin"!==n&&(a-=x.css(e,"border"+Zt[o]+"Width",!0,i))):(a+=x.css(e,"padding"+Zt[o],!0,i),"padding"!==n&&(a+=x.css(e,"border"+Zt[o]+"Width",!0,i)));return a}function sn(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=Rt(e),a=x.support.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,o);if(0>=i||null==i){if(i=Wt(e,t,o),(0>i||null==i)&&(i=e.style[t]),Yt.test(i))return i;r=a&&(x.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+an(e,t,n||(a?"border":"content"),r,o)+"px"}function ln(e){var t=a,n=Gt[e];return n||(n=un(e,t),"none"!==n&&n||(Pt=(Pt||x("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(t.documentElement),t=(Pt[0].contentWindow||Pt[0].contentDocument).document,t.write("<!doctype html><html><body>"),t.close(),n=un(e,t),Pt.detach()),Gt[e]=n),n}function un(e,t){var n=x(t.createElement(e)).appendTo(t.body),r=x.css(n[0],"display");return n.remove(),r}x.each(["height","width"],function(e,n){x.cssHooks[n]={get:function(e,r,i){return r?0===e.offsetWidth&&Xt.test(x.css(e,"display"))?x.swap(e,Qt,function(){return sn(e,n,i)}):sn(e,n,i):t},set:function(e,t,r){var i=r&&Rt(e);return on(e,t,r?an(e,n,r,x.support.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,i),i):0)}}}),x.support.opacity||(x.cssHooks.opacity={get:function(e,t){return It.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=x.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===x.trim(o.replace($t,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=$t.test(o)?o.replace($t,i):o+" "+i)}}),x(function(){x.support.reliableMarginRight||(x.cssHooks.marginRight={get:function(e,n){return n?x.swap(e,{display:"inline-block"},Wt,[e,"marginRight"]):t}}),!x.support.pixelPosition&&x.fn.position&&x.each(["top","left"],function(e,n){x.cssHooks[n]={get:function(e,r){return r?(r=Wt(e,n),Yt.test(r)?x(e).position()[n]+"px":r):t}}})}),x.expr&&x.expr.filters&&(x.expr.filters.hidden=function(e){return 0>=e.offsetWidth&&0>=e.offsetHeight||!x.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||x.css(e,"display"))},x.expr.filters.visible=function(e){return!x.expr.filters.hidden(e)}),x.each({margin:"",padding:"",border:"Width"},function(e,t){x.cssHooks[e+t]={expand:function(n){var r=0,i={},o="string"==typeof n?n.split(" "):[n];for(;4>r;r++)i[e+Zt[r]+t]=o[r]||o[r-2]||o[0];return i}},Ut.test(e)||(x.cssHooks[e+t].set=on)});var cn=/%20/g,pn=/\[\]$/,fn=/\r?\n/g,dn=/^(?:submit|button|image|reset|file)$/i,hn=/^(?:input|select|textarea|keygen)/i;x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&hn.test(this.nodeName)&&!dn.test(e)&&(this.checked||!Ct.test(e))}).map(function(e,t){var n=x(this).val();return null==n?null:x.isArray(n)?x.map(n,function(e){return{name:t.name,value:e.replace(fn,"\r\n")}}):{name:t.name,value:n.replace(fn,"\r\n")}}).get()}}),x.param=function(e,n){var r,i=[],o=function(e,t){t=x.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(n===t&&(n=x.ajaxSettings&&x.ajaxSettings.traditional),x.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,function(){o(this.name,this.value)});else for(r in e)gn(r,e[r],n,o);return i.join("&").replace(cn,"+")};function gn(e,t,n,r){var i;if(x.isArray(t))x.each(t,function(t,i){n||pn.test(e)?r(e,i):gn(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==x.type(t))r(e,t);else for(i in t)gn(e+"["+i+"]",t[i],n,r)}x.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){x.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),x.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var mn,yn,vn=x.now(),bn=/\?/,xn=/#.*$/,wn=/([?&])_=[^&]*/,Tn=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Cn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Nn=/^(?:GET|HEAD)$/,kn=/^\/\//,En=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Sn=x.fn.load,An={},jn={},Dn="*/".concat("*");try{yn=o.href}catch(Ln){yn=a.createElement("a"),yn.href="",yn=yn.href}mn=En.exec(yn.toLowerCase())||[];function Hn(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(T)||[];if(x.isFunction(n))while(r=o[i++])"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function qn(e,n,r,i){var o={},a=e===jn;function s(l){var u;return o[l]=!0,x.each(e[l]||[],function(e,l){var c=l(n,r,i);return"string"!=typeof c||a||o[c]?a?!(u=c):t:(n.dataTypes.unshift(c),s(c),!1)}),u}return s(n.dataTypes[0])||!o["*"]&&s("*")}function _n(e,n){var r,i,o=x.ajaxSettings.flatOptions||{};for(i in n)n[i]!==t&&((o[i]?e:r||(r={}))[i]=n[i]);return r&&x.extend(!0,e,r),e}x.fn.load=function(e,n,r){if("string"!=typeof e&&Sn)return Sn.apply(this,arguments);var i,o,a,s=this,l=e.indexOf(" ");return l>=0&&(i=e.slice(l,e.length),e=e.slice(0,l)),x.isFunction(n)?(r=n,n=t):n&&"object"==typeof n&&(a="POST"),s.length>0&&x.ajax({url:e,type:a,dataType:"html",data:n}).done(function(e){o=arguments,s.html(i?x("<div>").append(x.parseHTML(e)).find(i):e)}).complete(r&&function(e,t){s.each(r,o||[e.responseText,t,e])}),this},x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){x.fn[t]=function(e){return this.on(t,e)}}),x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:yn,type:"GET",isLocal:Cn.test(mn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Dn,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":x.parseJSON,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?_n(_n(e,x.ajaxSettings),t):_n(x.ajaxSettings,e)},ajaxPrefilter:Hn(An),ajaxTransport:Hn(jn),ajax:function(e,n){"object"==typeof e&&(n=e,e=t),n=n||{};var r,i,o,a,s,l,u,c,p=x.ajaxSetup({},n),f=p.context||p,d=p.context&&(f.nodeType||f.jquery)?x(f):x.event,h=x.Deferred(),g=x.Callbacks("once memory"),m=p.statusCode||{},y={},v={},b=0,w="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!c){c={};while(t=Tn.exec(a))c[t[1].toLowerCase()]=t[2]}t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=v[n]=v[n]||e,y[e]=t),this},overrideMimeType:function(e){return b||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)for(t in e)m[t]=[m[t],e[t]];else C.always(e[C.status]);return this},abort:function(e){var t=e||w;return u&&u.abort(t),k(0,t),this}};if(h.promise(C).complete=g.add,C.success=C.done,C.error=C.fail,p.url=((e||p.url||yn)+"").replace(xn,"").replace(kn,mn[1]+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=x.trim(p.dataType||"*").toLowerCase().match(T)||[""],null==p.crossDomain&&(r=En.exec(p.url.toLowerCase()),p.crossDomain=!(!r||r[1]===mn[1]&&r[2]===mn[2]&&(r[3]||("http:"===r[1]?"80":"443"))===(mn[3]||("http:"===mn[1]?"80":"443")))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=x.param(p.data,p.traditional)),qn(An,p,n,C),2===b)return C;l=p.global,l&&0===x.active++&&x.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Nn.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(bn.test(o)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=wn.test(o)?o.replace(wn,"$1_="+vn++):o+(bn.test(o)?"&":"?")+"_="+vn++)),p.ifModified&&(x.lastModified[o]&&C.setRequestHeader("If-Modified-Since",x.lastModified[o]),x.etag[o]&&C.setRequestHeader("If-None-Match",x.etag[o])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&C.setRequestHeader("Content-Type",p.contentType),C.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Dn+"; q=0.01":""):p.accepts["*"]);for(i in p.headers)C.setRequestHeader(i,p.headers[i]);if(p.beforeSend&&(p.beforeSend.call(f,C,p)===!1||2===b))return C.abort();w="abort";for(i in{success:1,error:1,complete:1})C[i](p[i]);if(u=qn(jn,p,n,C)){C.readyState=1,l&&d.trigger("ajaxSend",[C,p]),p.async&&p.timeout>0&&(s=setTimeout(function(){C.abort("timeout")},p.timeout));try{b=1,u.send(y,k)}catch(N){if(!(2>b))throw N;k(-1,N)}}else k(-1,"No Transport");function k(e,n,r,i){var c,y,v,w,T,N=n;2!==b&&(b=2,s&&clearTimeout(s),u=t,a=i||"",C.readyState=e>0?4:0,c=e>=200&&300>e||304===e,r&&(w=Mn(p,C,r)),w=On(p,w,C,c),c?(p.ifModified&&(T=C.getResponseHeader("Last-Modified"),T&&(x.lastModified[o]=T),T=C.getResponseHeader("etag"),T&&(x.etag[o]=T)),204===e||"HEAD"===p.type?N="nocontent":304===e?N="notmodified":(N=w.state,y=w.data,v=w.error,c=!v)):(v=N,(e||!N)&&(N="error",0>e&&(e=0))),C.status=e,C.statusText=(n||N)+"",c?h.resolveWith(f,[y,N,C]):h.rejectWith(f,[C,N,v]),C.statusCode(m),m=t,l&&d.trigger(c?"ajaxSuccess":"ajaxError",[C,p,c?y:v]),g.fireWith(f,[C,N]),l&&(d.trigger("ajaxComplete",[C,p]),--x.active||x.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,n){return x.get(e,t,n,"script")}}),x.each(["get","post"],function(e,n){x[n]=function(e,r,i,o){return x.isFunction(r)&&(o=o||i,i=r,r=t),x.ajax({url:e,type:n,dataType:o,data:r,success:i})}});function Mn(e,n,r){var i,o,a,s,l=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),o===t&&(o=e.mimeType||n.getResponseHeader("Content-Type"));if(o)for(s in l)if(l[s]&&l[s].test(o)){u.unshift(s);break}if(u[0]in r)a=u[0];else{for(s in r){if(!u[0]||e.converters[s+" "+u[0]]){a=s;break}i||(i=s)}a=a||i}return a?(a!==u[0]&&u.unshift(a),r[a]):t}function On(e,t,n,r){var i,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(a=u[l+" "+o]||u["* "+o],!a)for(i in u)if(s=i.split(" "),s[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){a===!0?a=u[i]:u[i]!==!0&&(o=s[0],c.unshift(s[1]));break}if(a!==!0)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(p){return{state:"parsererror",error:a?p:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return x.globalEval(e),e}}}),x.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),x.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=a.head||x("head")[0]||a.documentElement;return{send:function(t,i){n=a.createElement("script"),n.async=!0,e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,t){(t||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),n=null,t||i(200,"success"))},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(t,!0)}}}});var Fn=[],Bn=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Fn.pop()||x.expando+"_"+vn++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",function(n,r,i){var o,a,s,l=n.jsonp!==!1&&(Bn.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Bn.test(n.data)&&"data");return l||"jsonp"===n.dataTypes[0]?(o=n.jsonpCallback=x.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,l?n[l]=n[l].replace(Bn,"$1"+o):n.jsonp!==!1&&(n.url+=(bn.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return s||x.error(o+" was not called"),s[0]},n.dataTypes[0]="json",a=e[o],e[o]=function(){s=arguments},i.always(function(){e[o]=a,n[o]&&(n.jsonpCallback=r.jsonpCallback,Fn.push(o)),s&&x.isFunction(a)&&a(s[0]),s=a=t}),"script"):t});var Pn,Rn,Wn=0,$n=e.ActiveXObject&&function(){var e;for(e in Pn)Pn[e](t,!0)};function In(){try{return new e.XMLHttpRequest}catch(t){}}function zn(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}x.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&In()||zn()}:In,Rn=x.ajaxSettings.xhr(),x.support.cors=!!Rn&&"withCredentials"in Rn,Rn=x.support.ajax=!!Rn,Rn&&x.ajaxTransport(function(n){if(!n.crossDomain||x.support.cors){var r;return{send:function(i,o){var a,s,l=n.xhr();if(n.username?l.open(n.type,n.url,n.async,n.username,n.password):l.open(n.type,n.url,n.async),n.xhrFields)for(s in n.xhrFields)l[s]=n.xhrFields[s];n.mimeType&&l.overrideMimeType&&l.overrideMimeType(n.mimeType),n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");try{for(s in i)l.setRequestHeader(s,i[s])}catch(u){}l.send(n.hasContent&&n.data||null),r=function(e,i){var s,u,c,p;try{if(r&&(i||4===l.readyState))if(r=t,a&&(l.onreadystatechange=x.noop,$n&&delete Pn[a]),i)4!==l.readyState&&l.abort();else{p={},s=l.status,u=l.getAllResponseHeaders(),"string"==typeof l.responseText&&(p.text=l.responseText);try{c=l.statusText}catch(f){c=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=p.text?200:404}}catch(d){i||o(-1,d)}p&&o(s,c,p,u)},n.async?4===l.readyState?setTimeout(r):(a=++Wn,$n&&(Pn||(Pn={},x(e).unload($n)),Pn[a]=r),l.onreadystatechange=r):r()},abort:function(){r&&r(t,!0)}}}});var Xn,Un,Vn=/^(?:toggle|show|hide)$/,Yn=RegExp("^(?:([+-])=|)("+w+")([a-z%]*)$","i"),Jn=/queueHooks$/,Gn=[nr],Qn={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=Yn.exec(t),o=i&&i[3]||(x.cssNumber[e]?"":"px"),a=(x.cssNumber[e]||"px"!==o&&+r)&&Yn.exec(x.css(n.elem,e)),s=1,l=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do s=s||".5",a/=s,x.style(n.elem,e,a+o);while(s!==(s=n.cur()/r)&&1!==s&&--l)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};function Kn(){return setTimeout(function(){Xn=t}),Xn=x.now()}function Zn(e,t,n){var r,i=(Qn[t]||[]).concat(Qn["*"]),o=0,a=i.length;for(;a>o;o++)if(r=i[o].call(n,t,e))return r}function er(e,t,n){var r,i,o=0,a=Gn.length,s=x.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;var t=Xn||Kn(),n=Math.max(0,u.startTime+u.duration-t),r=n/u.duration||0,o=1-r,a=0,l=u.tweens.length;for(;l>a;a++)u.tweens[a].run(o);return s.notifyWith(e,[u,o,n]),1>o&&l?n:(s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:x.extend({},t),opts:x.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Xn||Kn(),duration:n.duration,tweens:[],createTween:function(t,n){var r=x.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)u.tweens[n].run(1);return t?s.resolveWith(e,[u,t]):s.rejectWith(e,[u,t]),this}}),c=u.props;for(tr(c,u.opts.specialEasing);a>o;o++)if(r=Gn[o].call(u,e,c,u.opts))return r;return x.map(c,Zn,u),x.isFunction(u.opts.start)&&u.opts.start.call(e,u),x.fx.timer(x.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function tr(e,t){var n,r,i,o,a;for(n in e)if(r=x.camelCase(n),i=t[r],o=e[n],x.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),a=x.cssHooks[r],a&&"expand"in a){o=a.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}x.Animation=x.extend(er,{tweener:function(e,t){x.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;i>r;r++)n=e[r],Qn[n]=Qn[n]||[],Qn[n].unshift(t)},prefilter:function(e,t){t?Gn.unshift(e):Gn.push(e)}});function nr(e,t,n){var r,i,o,a,s,l,u=this,c={},p=e.style,f=e.nodeType&&nn(e),d=x._data(e,"fxshow");n.queue||(s=x._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,u.always(function(){u.always(function(){s.unqueued--,x.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===x.css(e,"display")&&"none"===x.css(e,"float")&&(x.support.inlineBlockNeedsLayout&&"inline"!==ln(e.nodeName)?p.zoom=1:p.display="inline-block")),n.overflow&&(p.overflow="hidden",x.support.shrinkWrapBlocks||u.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in t)if(i=t[r],Vn.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(f?"hide":"show"))continue;c[r]=d&&d[r]||x.style(e,r)}if(!x.isEmptyObject(c)){d?"hidden"in d&&(f=d.hidden):d=x._data(e,"fxshow",{}),o&&(d.hidden=!f),f?x(e).show():u.done(function(){x(e).hide()}),u.done(function(){var t;x._removeData(e,"fxshow");for(t in c)x.style(e,t,c[t])});for(r in c)a=Zn(f?d[r]:0,r,u),r in d||(d[r]=a.start,f&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function rr(e,t,n,r,i){return new rr.prototype.init(e,t,n,r,i)}x.Tween=rr,rr.prototype={constructor:rr,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(x.cssNumber[n]?"":"px")},cur:function(){var e=rr.propHooks[this.prop];return e&&e.get?e.get(this):rr.propHooks._default.get(this)},run:function(e){var t,n=rr.propHooks[this.prop];return this.pos=t=this.options.duration?x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):rr.propHooks._default.set(this),this}},rr.prototype.init.prototype=rr.prototype,rr.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=x.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[x.cssProps[e.prop]]||x.cssHooks[e.prop])?x.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},rr.propHooks.scrollTop=rr.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.each(["toggle","show","hide"],function(e,t){var n=x.fn[t];x.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ir(t,!0),e,r,i)}}),x.fn.extend({fadeTo:function(e,t,n,r){return this.filter(nn).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=x.isEmptyObject(e),o=x.speed(t,n,r),a=function(){var t=er(this,x.extend({},e),o);(i||x._data(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof e&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=null!=e&&e+"queueHooks",o=x.timers,a=x._data(this);if(n)a[n]&&a[n].stop&&i(a[n]);else for(n in a)a[n]&&a[n].stop&&Jn.test(n)&&i(a[n]);for(n=o.length;n--;)o[n].elem!==this||null!=e&&o[n].queue!==e||(o[n].anim.stop(r),t=!1,o.splice(n,1));(t||!r)&&x.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=x._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=x.timers,a=r?r.length:0;for(n.finish=!0,x.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;a>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}});function ir(e,t){var n,r={height:e},i=0;for(t=t?1:0;4>i;i+=2-t)n=Zt[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}x.each({slideDown:ir("show"),slideUp:ir("hide"),slideToggle:ir("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){x.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),x.speed=function(e,t,n){var r=e&&"object"==typeof e?x.extend({},e):{complete:n||!n&&t||x.isFunction(e)&&e,duration:e,easing:n&&t||t&&!x.isFunction(t)&&t};return r.duration=x.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in x.fx.speeds?x.fx.speeds[r.duration]:x.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){x.isFunction(r.old)&&r.old.call(this),r.queue&&x.dequeue(this,r.queue)},r},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},x.timers=[],x.fx=rr.prototype.init,x.fx.tick=function(){var e,n=x.timers,r=0;for(Xn=x.now();n.length>r;r++)e=n[r],e()||n[r]!==e||n.splice(r--,1);n.length||x.fx.stop(),Xn=t},x.fx.timer=function(e){e()&&x.timers.push(e)&&x.fx.start()},x.fx.interval=13,x.fx.start=function(){Un||(Un=setInterval(x.fx.tick,x.fx.interval))},x.fx.stop=function(){clearInterval(Un),Un=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fx.step={},x.expr&&x.expr.filters&&(x.expr.filters.animated=function(e){return x.grep(x.timers,function(t){return e===t.elem}).length}),x.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){x.offset.setOffset(this,e,t)});var n,r,o={top:0,left:0},a=this[0],s=a&&a.ownerDocument;if(s)return n=s.documentElement,x.contains(n,a)?(typeof a.getBoundingClientRect!==i&&(o=a.getBoundingClientRect()),r=or(s),{top:o.top+(r.pageYOffset||n.scrollTop)-(n.clientTop||0),left:o.left+(r.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}):o},x.offset={setOffset:function(e,t,n){var r=x.css(e,"position");"static"===r&&(e.style.position="relative");var i=x(e),o=i.offset(),a=x.css(e,"top"),s=x.css(e,"left"),l=("absolute"===r||"fixed"===r)&&x.inArray("auto",[a,s])>-1,u={},c={},p,f;l?(c=i.position(),p=c.top,f=c.left):(p=parseFloat(a)||0,f=parseFloat(s)||0),x.isFunction(t)&&(t=t.call(e,n,o)),null!=t.top&&(u.top=t.top-o.top+p),null!=t.left&&(u.left=t.left-o.left+f),"using"in t?t.using.call(e,u):i.css(u)}},x.fn.extend({position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===x.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),x.nodeName(e[0],"html")||(n=e.offset()),n.top+=x.css(e[0],"borderTopWidth",!0),n.left+=x.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-x.css(r,"marginTop",!0),left:t.left-n.left-x.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||s;while(e&&!x.nodeName(e,"html")&&"static"===x.css(e,"position"))e=e.offsetParent;return e||s})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);x.fn[e]=function(i){return x.access(this,function(e,i,o){var a=or(e);return o===t?a?n in a?a[n]:a.document.documentElement[i]:e[i]:(a?a.scrollTo(r?x(a).scrollLeft():o,r?o:x(a).scrollTop()):e[i]=o,t)},e,i,arguments.length,null)}});function or(e){return x.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}x.each({Height:"height",Width:"width"},function(e,n){x.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){x.fn[i]=function(i,o){var a=arguments.length&&(r||"boolean"!=typeof i),s=r||(i===!0||o===!0?"margin":"border");return x.access(this,function(n,r,i){var o;return x.isWindow(n)?n.document.documentElement["client"+e]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+e],o["scroll"+e],n.body["offset"+e],o["offset"+e],o["client"+e])):i===t?x.css(n,r,s):x.style(n,r,i,s)},n,a?i:t,a,null)}})}),x.fn.size=function(){return this.length},x.fn.andSelf=x.fn.addBack,"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=x:(e.jQuery=e.$=x,"function"==typeof define&&define.amd&&define("jquery",[],function(){return x}))})(window);
7; 8/*** Script File: /public/js/front/standard/jquery-migrate-1.1.1.js, Original size: 7,038, Compressed size: 6,927 ***/ 9jQuery.migrateMute===void(0)&&(jQuery.migrateMute=!0),function(e,t,n){function r(n){o[n]||(o[n]=!0,e.migrateWarnings.push(n),t.console&&console.warn&&!e.migrateMute&&(console.warn("JQMIGRATE: "+n),e.migrateTrace&&console.trace&&console.trace()))} 10function a(t,a,o,i){if(Object.defineProperty)try{return Object.defineProperty(t,a,{configurable:!0,enumerable:!0,get:function(){return r(i),o},set:function(e){r(i),o=e}}),n}catch(s){};e._definePropertyBroken=!0,t[a]=o};var o={};e.migrateWarnings=[],!e.migrateMute&&t.console&&console.log&&console.log("JQMIGRATE: Logging is active"),e.migrateTrace===n&&(e.migrateTrace=!0),e.migrateReset=function(){o={},e.migrateWarnings.length=0},"BackCompat"===document.compatMode&&r("jQuery is not compatible with Quirks Mode");var i=e("<input/>",{size:1}).attr("size")&&e.attrFn,s=e.attr,u=e.attrHooks.value&&e.attrHooks.value.get||function(){return null},c=e.attrHooks.value&&e.attrHooks.value.set||function(){return n},l=/^(?:input|button)$/i,d=/^[238]$/,p=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,f=/^(?:checked|selected)$/i;a(e,"attrFn",i||{},"jQuery.attrFn is deprecated"),e.attr=function(t,a,o,u){var c=a.toLowerCase(),g=t&&t.nodeType;return u&&(4>s.length&&r("jQuery.fn.attr( props, pass ) is deprecated"),t&&!d.test(g)&&(i?a in i:e.isFunction(e.fn[a])))?e(t)[a](o):("type"===a&&o!==n&&l.test(t.nodeName)&&t.parentNode&&r("Can't change the 'type' of an input or button in IE 6/7/8"),!e.attrHooks[c]&&p.test(c)&&(e.attrHooks[c]={get:function(t,r){var a,o=e.prop(t,r);return o===!0||"boolean"!=typeof o&&(a=t.getAttributeNode(r))&&a.nodeValue!==!1?r.toLowerCase():n},set:function(t,n,r){var a;return n===!1?e.removeAttr(t,r):(a=e.propFix[r]||r,a in t&&(t[a]=!0),t.setAttribute(r,r.toLowerCase())),r}},f.test(c)&&r("jQuery.fn.attr('"+c+"') may use property instead of attribute")),s.call(e,t,a,o))},e.attrHooks.value={get:function(e,t){var n=(e.nodeName||"").toLowerCase();return"button"===n?u.apply(this,arguments):("input"!==n&&"option"!==n&&r("jQuery.fn.attr('value') no longer gets properties"),t in e?e.value:null)},set:function(e,t){var a=(e.nodeName||"").toLowerCase();return"button"===a?c.apply(this,arguments):("input"!==a&&"option"!==a&&r("jQuery.fn.attr('value', val) no longer sets properties"),e.value=t,n)}};var g,h,v=e.fn.init,m=e.parseJSON,y=/^(?:[^<]*(<[\w\W]+>)[^>]*|#([\w\-]*))$/;e.fn.init=function(t,n,a){var o;return t&&"string"==typeof t&&!e.isPlainObject(n)&&(o=y.exec(t))&&o[1]&&("<"!==t.charAt(0)&&r("$(html) HTML strings must start with '<' character"),n&&n.context&&(n=n.context),e.parseHTML)?v.call(this,e.parseHTML(e.trim(t),n,!0),n,a):v.apply(this,arguments)},e.fn.init.prototype=e.fn,e.parseJSON=function(e){return e||null===e?m.apply(this,arguments):(r("jQuery.parseJSON requires a valid JSON string"),null)},e.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||0>e.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e.browser||(g=e.uaMatch(navigator.userAgent),h={},g.browser&&(h[g.browser]=!0,h.version=g.version),h.chrome?h.webkit=!0:h.webkit&&(h.safari=!0),e.browser=h),a(e,"browser",e.browser,"jQuery.browser is deprecated"),e.sub=function(){function t(e,n){return new t.fn.init(e,n)};e.extend(!0,t,this),t.superclass=this,t.fn=t.prototype=this(),t.fn.constructor=t,t.sub=this.sub,t.fn.init=function(r,a){return a&&a instanceof e&&!(a instanceof t)&&(a=t(a)),e.fn.init.call(this,r,a,n)},t.fn.init.prototype=t.fn;var n=t(document);return r("jQuery.sub() is deprecated"),t},e.ajaxSetup({converters:{"text json":e.parseJSON}});var b=e.fn.data;e.fn.data=function(t){var a,o,i=this[0];return!i||"events"!==t||1!==arguments.length||(a=e.data(i,t),o=e._data(i,t),a!==n&&a!==o||o===n)?b.apply(this,arguments):(r("Use of jQuery.fn.data('events') is deprecated"),o)};var j=/\/(java|ecma)script/i,w=e.fn.andSelf||e.fn.addBack;e.fn.andSelf=function(){return r("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),w.apply(this,arguments)},e.clean||(e.clean=function(t,a,o,i){a=a||document,a=!a.nodeType&&a[0]||a,a=a.ownerDocument||a,r("jQuery.clean() is deprecated");var s,u,c,l,d=[];if(e.merge(d,e.buildFragment(t,a).childNodes),o)for(c=function(e){return!e.type||j.test(e.type)?i?i.push(e.parentNode?e.parentNode.removeChild(e):e):o.appendChild(e):n},s=0;null!=(u=d[s]);s++)e.nodeName(u,"script")&&c(u)||(o.appendChild(u),u.getElementsByTagName!==n&&(l=e.grep(e.merge([],u.getElementsByTagName("script")),c),d.splice.apply(d,[s+1,0].c
10oncat(l)),s+=l.length));return d});var Q=e.event.add,x=e.event.remove,k=e.event.trigger,N=e.fn.toggle,C=e.fn.live,S=e.fn.die,T="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",M=RegExp("\\b(?:"+T+")\\b"),H=/(?:^|\s)hover(\.\S+|)\b/,A=function(t){return"string"!=typeof t||e.event.special.hover?t:(H.test(t)&&r("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),t&&t.replace(H,"mouseenter$1 mouseleave$1"))};e.event.props&&"attrChange"!==e.event.props[0]&&e.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),e.event.dispatch&&a(e.event,"handle",e.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),e.event.add=function(e,t,n,a,o){e!==document&&M.test(t)&&r("AJAX events should be attached to document: "+t),Q.call(this,e,A(t||""),n,a,o)},e.event.remove=function(e,t,n,r,a){x.call(this,e,A(t)||"",n,r,a)},e.fn.error=function(){var e=Array.prototype.slice.call(arguments,0);return r("jQuery.fn.error() is deprecated"),e.splice(0,0,"error"),arguments.length?this.bind.apply(this,e):(this.triggerHandler.apply(this,e),this)},e.fn.toggle=function(t,n){if(!e.isFunction(t)||!e.isFunction(n))return N.apply(this,arguments);r("jQuery.fn.toggle(handler, handler...) is deprecated");var a=arguments,o=t.guid||e.guid++,i=0,s=function(n){var r=(e._data(this,"lastToggle"+t.guid)||0)%i;return e._data(this,"lastToggle"+t.guid,r+1),n.preventDefault(),a[r].apply(this,arguments)||!1};for(s.guid=o;a.length>i;)a[i++].guid=o;return this.click(s)},e.fn.live=function(t,n,a){return r("jQuery.fn.live() is deprecated"),C?C.apply(this,arguments):(e(this.context).on(t,this.selector,n,a),this)},e.fn.die=function(t,n){return r("jQuery.fn.die() is deprecated"),S?S.apply(this,arguments):(e(this.context).off(t,this.selector||"**",n),this)},e.event.trigger=function(e,t,n,a){return n||M.test(e)||r("Global events are undocumented and deprecated"),k.call(this,e,t,n||document,a)},e.each(T.split("|"),function(t,n){e.event.special[n]={setup:function(){var t=this;return t!==document&&(e.event.add(document,n+"."+e.guid,function(){e.event.trigger(n,null,t,!0)}),e._data(this,n,e.guid++)),!1},teardown:function(){return this!==document&&e.event.remove(document,n+"."+e._data(this,n)),!1}}})}(jQuery,window) 11; 12/*** Script File: /public/js/front/standard/jquery.easing.1.3.js, Original size: 3,517, Compressed size: 3,486 ***/ 13$.easing['jswing']=$.easing['swing'];$.extend($.easing,{def:'easeOutQuad',swing:function(x,t,b,c,d){return $.easing[$.easing.def](x,t,b,c,d)},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*((--t)*(t-2)-1)+b},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b},easeInSine:function(x,t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b},easeInExpo:function(x,t,b,c,d){return(t==0)?b:c*Math.pow(2,10*(t/d-1))+b},easeOutExpo:function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b},easeInOutExpo:function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;return c/2*(-Math.pow(2,-10*--t)+2)+b},easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(Math.sqrt(1-t*t)-1)+b;return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b},easeInElastic:function(x,t,b,c,d){var s=1.70158,p=0,a=c;if(t==0)return b;if((t/=d)==1)return b+c;
13if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b},easeOutElastic:function(x,t,b,c,d){var s=1.70158,p=0,a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b},easeInOutElastic:function(x,t,b,c,d){var s=1.70158,p=0,a=c;if(t==0)return b;if((t/=d/2)==2)return b+c;if(!p)p=d*(.3*1.5);if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);if(t<1)return-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b},easeInBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b},easeOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;if((t/=d/2)<1)return c/2*(t*t*(((s*=1.525)+1)*t-s))+b;return c/2*((t-=2)*t*(((s*=1.525)+1)*t+s)+2)+b},easeInBounce:function(x,t,b,c,d){return c-$.easing.easeOutBounce(x,d-t,0,c,d)+b},easeOutBounce:function(x,t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b}else return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b},easeInOutBounce:function(x,t,b,c,d){if(t<d/2)return $.easing.easeInBounce(x,t*2,0,c,d)*.5+b;return $.easing.easeOutBounce(x,t*2-d,0,c,d)*.5+c*.5+b}}) 14; 15/*** Script File: /public/js/front/standard/jquery.formstyler.js, Original size: 28,966, Compressed size: 16,423 ***/ 16(function($){$.fn.styler=function(opt){var opt=$.extend({wrapper:'form',idSuffix:'-styler',filePlaceholder:'Файл не вÑбÑан',fileBrowse:'ÐбзоÑ...',selectSearch:true,selectSearchLimit:10,selectSearchNotFound:'Совпадений не найдено',selectSearchPlaceholder:'ÐоиÑк...',selectVisibleOptions:0,singleSelectzIndex:'100',selectSmartPositioning:true},opt);return this.each(function(){var el=$(this) 17function attributes(){var id='',title='',classes='',dataList='';if(el.attr('id')!==undefined&&el.attr('id')!='')id=' id="'+el.attr('id')+opt.idSuffix+'"';if(el.attr('title')!==undefined&&el.attr('title')!='')title=' title="'+el.attr('title')+'"';if(el.attr('class')!==undefined&&el.attr('class')!='')classes=' '+el.attr('class');var data=el.data();for(var i in data)if(data[i]!='')dataList+=' data-'+i+'="'+data[i]+'"';id+=dataList;this.id=id;this.title=title;this.classes=classes};if(el.is(':checkbox')){el.each(function(){if(el.parent('div.jq-checkbox').length<1){function checkbox(){var att=new attributes(),checkbox=$('<div'+att.id+' class="jq-checkbox'+att.classes+'"'+att.title+'><div class="jq-checkbox__div"></div></div>');el.css({position:'absolute',zIndex:'-1',opacity:0,margin:0,padding:0}).after(checkbox).prependTo(checkbox);checkbox.attr('unselectable','on').css({'-webkit-user-select':'none','-moz-user-select':'none','-ms-user-select':'none','-o-user-select':'none','user-select':'none',display:'inline-block',position:'relative',overflow:'hidden'});if(el.is(':checked'))checkbox.addClass('checked');if(el.is(':disabled'))checkbox.addClass('disabled');checkbox.click(function(){if(!checkbox.is('.disabled')){if(el.is(':checked')){el.prop('checked',false);checkbox.removeClass('checked')}else{el.prop('checked',true);checkbox.addClass('checked')};el.change();return false}else return false});el.closest('label').add('label[for="'+el.attr('id')+'"]').click(function(e){checkbox.click();e.preventDefault()});el.change(function(){if(el.is(':checked')){checkbox.addClass('checked')}else checkbox.removeClass('checked')}).keydown(function(e){if(e.which==13||e.which==32)checkbox.click()}).focus(function(){if(!checkbox.is('.disabled'))checkbox.addClass('focused')}).blur(function(){checkbox.removeClass('focused')})};checkbox();el.on('refresh',function(){el.parent().before(el).remove();checkbox()})}})}else if(el.is(':radio')){el.each(function(){if(el.parent('div.jq-radio').length<1){function radio(){var att=new attributes(),radio=$('<div'+att.id+' class="jq-radio'+att.classes+'"'+att.title+'><div class="jq-radio__div"></div></div>');el.css({position:'absolute',zIndex:'-1',opacity:0,margin:0,padding:0}).after(radio).prependTo(radio);radio.attr('unselectable','on').css({'-webkit-user-select':'none','-moz-user-select':'none','-ms-user-select':'none','-o-user-select':'none','user-select':'none',dis
17play:'inline-block',position:'relative'});if(el.is(':checked'))radio.addClass('checked');if(el.is(':disabled'))radio.addClass('disabled');radio.click(function(){if(!radio.is('.disabled')){radio.closest(opt.wrapper).find('input[name="'+el.attr('name')+'"]').prop('checked',false).parent().removeClass('checked');el.prop('checked',true).parent().addClass('checked');el.change();return false}else return false});el.closest('label').add('label[for="'+el.attr('id')+'"]').click(function(e){radio.click();e.preventDefault()});el.change(function(){el.parent().addClass('checked')}).focus(function(){if(!radio.is('.disabled'))radio.addClass('focused')}).blur(function(){radio.removeClass('focused')})};radio();el.on('refresh',function(){el.parent().before(el).remove();radio()})}})}else if(el.is(':file')){el.css({position:'absolute',top:0,right:0,width:'100%',height:'100%',opacity:0,margin:0,padding:0}).each(function(){if(el.parent('div.jq-file').length<1){function file(){var att=new attributes(),file=$('<div'+att.id+' class="jq-file'+att.classes+'"'+att.title+' style="display: inline-block; position: relative; overflow: hidden"></div>'),name=$('<div class="jq-file__name">'+opt.filePlaceholder+'</div>').appendTo(file),browse=$('<div class="jq-file__browse">'+opt.fileBrowse+'</div>').appendTo(file);el.after(file);file.append(el);if(el.is(':disabled'))file.addClass('disabled');el.change(function(){name.text(el.val().replace(/.+[\\\/]/,''));if(el.val()=='')name.text(opt.filePlaceholder)}).focus(function(){file.addClass('focused')}).blur(function(){file.removeClass('focused')}).click(function(){file.removeClass('focused')})};file();el.on('refresh',function(){el.parent().before(el).remove();file()})}})}else if(el.is('select')){el.each(function(){if(el.parent('div.jqselect').length<1){function selectbox(){function preventScrolling(selector){selector.unbind('mousewheel DOMMouseScroll').bind('mousewheel DOMMouseScroll',function(e){var scrollTo=null;if(e.type=='mousewheel'){scrollTo=(e.originalEvent.wheelDelta*-1)}else if(e.type=='DOMMouseScroll')scrollTo=40*e.originalEvent.detail;if(scrollTo){e.stopPropagation();e.preventDefault();$(this).scrollTop(scrollTo+$(this).scrollTop())}})};var option=$('option',el),list='' 18function makeList(){for(i=0,len=option.length;i<len;i++){var li='',liClass='',dataList='',optionClass='',optgroupClass='',dataJqfsClass='',disabled='disabled',selDis='selected sel disabled';if(option.eq(i).prop('selected'))liClass='selected sel';if(option.eq(i).is(':disabled'))liClass=disabled;if(option.eq(i).is(':selected:disabled'))liClass=selDis;if(option.eq(i).attr('class')!==undefined){optionClass=' '+option.eq(i).attr('class');dataJqfsClass=' data-jqfs-class="'+option.eq(i).attr('class')+'"'};var data=option.eq(i).data();for(var k in data)if(data[k]!='')dataList+=' data-'+k+'="'+data[k]+'"';li='<li'+dataJqfsClass+dataList+' class="'+liClass+optionClass+'">'+option.eq(i).text()+'</li>';if(option.eq(i).parent().is('optgroup')){if(option.eq(i).parent().attr('class')!==undefined)optgroupClass=' '+option.eq(i).parent().attr('class');li='<li'+dataJqfsClass+' class="'+liClass+optionClass+' option'+optgroupClass+'">'+option.eq(i).text()+'</li>';if(option.eq(i).is(':first-child'))li='<li class="optgroup'+optgroupClass+'">'+option.eq(i).parent().attr('label')+'</li>'+li};list+=li}} 19function doSelect(){var att=new attributes(),selectbox=$('<div'+att.id+' class="jq-selectbox jqselect'+att.classes+'" style="display: inline-block; position: relative; z-index:'+opt.singleSelectzIndex+'"><div class="jq-selectbox__select"'+att.title+' style="position: relative"><div class="jq-selectbox__select-text"></div><div class="jq-selectbox__trigger"><div class="jq-selectbox__trigger-arrow"></div></div></div></div>');el.css({margin:0,padding:0}).after(selectbox).prependTo(selectbox);var divSelect=$('div.jq-selectbox__select',selectbox),divText=$('div.jq-selectbox__select-text',selectbox),optionSelected=option.filter(':selected');if(optionSelected.length){divText.html(optionSelected.text())}else divText.html(option.first().text());makeList();var searchHTML='';if(opt.selectSearch)searchHTML='<div class="jq-selectbox__search"><input type="search" autocomplete="off" placeholder="'+opt.selectSearchPlaceholder+'"></div><div class="jq-selectbox__not-found">'+opt.selectSearchNotFound+'</div>';var dropdown=$('<div class="jq-selectbox__dropdown" style="position: absolute">'+searchHTML+'<ul style="position: relative; list-style: none; overflow: auto; overflow-x: hidden">'+list+'</ul></div>');selectbox.append(dropdown);var ul=$('ul',dropdown),li=$('li',dropdown),search=$('input',dropdown),notFound=$('div.jq-selectbox__not-found',dropdown).hide();if(li.length<opt.selectSearchLimit)search.parent().hide();var liWidth1=0,liWidth2=0;li.each(function(){var l=$(this);l.css({display:'inline-block','white-space':'nowrap'});if(l.innerWidth()>liWidth1){liWidth1=l.innerWidth();liWidth2=l.width()};l.css({display:'block'})});var selClone=selectbox.clone().appendTo('body').width('auto'),selCloneWidth=selClone.width();selClone.remove();if(selCloneWidth==selectbox.width()){divText.width(liWidth2);liWidth1+=selectbox.find('div.jq-selectbox__trigger').width()};if(liWidth1>
19selectbox.width())dropdown.width(liWidth1);el.css({position:'absolute',left:0,top:0,width:'100%',height:'100%',opacity:0});var selectHeight=selectbox.outerHeight(),searchHeight=search.outerHeight(),isMaxHeight=ul.css('max-height'),liSelected=li.filter('.selected');if(liSelected.length<1)li.first().addClass('selected sel');if(li.data('li-height')===undefined)li.data('li-height',li.outerHeight());var position=dropdown.css('top');if(dropdown.css('left')=='auto')dropdown.css({left:0});if(dropdown.css('top')=='auto')dropdown.css({top:selectHeight});dropdown.hide();if(liSelected.length){if(option.first().text()!=optionSelected.text())selectbox.addClass('changed');selectbox.data('jqfs-class',liSelected.data('jqfs-class'));selectbox.addClass(liSelected.data('jqfs-class'))};if(el.is(':disabled')){selectbox.addClass('disabled');return false};divSelect.click(function(){el.focus();var iOS=navigator.userAgent.match(/(iPad|iPhone|iPod)/g)?true:false;if(iOS)return;if(opt.selectSmartPositioning){var win=$(window),topOffset=selectbox.offset().top,bottomOffset=win.height()-selectHeight-(topOffset-win.scrollTop()),visible=opt.selectVisibleOptions,liHeight=li.data('li-height'),minHeight=liHeight*5,newHeight=liHeight*visible;if(visible>0&&visible<6)minHeight=newHeight;if(visible==0)newHeight='auto';if(bottomOffset>(minHeight+searchHeight+20)){dropdown.height('auto').css({bottom:'auto',top:position});function maxHeightBottom(){ul.css('max-height',Math.floor((bottomOffset-20-searchHeight)/liHeight)*liHeight)};maxHeightBottom();ul.css('max-height',newHeight);if(isMaxHeight!='none')ul.css('max-height',isMaxHeight);if(bottomOffset<(dropdown.outerHeight()+20))maxHeightBottom()}else{dropdown.height('auto').css({top:'auto',bottom:position});function maxHeightTop(){ul.css('max-height',Math.floor((topOffset-win.scrollTop()-20-searchHeight)/liHeight)*liHeight)};maxHeightTop();ul.css('max-height',newHeight);if(isMaxHeight!='none')ul.css('max-height',isMaxHeight);if((topOffset-win.scrollTop()-20)<(dropdown.outerHeight()+20))maxHeightTop()}};$('div.jqselect').css({zIndex:(opt.singleSelectzIndex-1)}).removeClass('opened focused');selectbox.css({zIndex:opt.singleSelectzIndex});if(dropdown.is(':hidden')){$('div.jq-selectbox__dropdown:visible').hide();dropdown.show();selectbox.addClass('opened')}else{dropdown.hide();selectbox.removeClass('opened')};if(li.filter('.selected').length){if((ul.innerHeight()/liHeight)%2!=0)liHeight=liHeight/2;ul.scrollTop(ul.scrollTop()+li.filter('.selected').position().top-ul.innerHeight()/2+liHeight)};if(search.length){search.val('').keyup();notFound.hide();search.focus().keyup(function(){var query=$(this).val();li.each(function(){if(!$(this).html().match(new RegExp('.*?'+query+'.*?','i'))){$(this).hide()}else $(this).show()});if(li.filter(':visible').length<1){notFound.show()}else notFound.hide()})};preventScrolling(ul);return false});li.hover(function(){$(this).siblings().removeClass('selected')});var selectedText=li.filter('.selected').text(),selText=li.filter('.selected').text();li.filter(':not(.disabled):not(.optgroup)').click(function(){var t=$(this),liText=t.text();if(selectedText!=liText){var index=t.index();if(t.is('.option'))index-=t.prevAll('.optgroup').length;t.addClass('selected sel').siblings().removeClass('selected sel');option.prop('selected',false).eq(index).prop('selected',true);selectedText=liText;divText.html(liText);if(option.first().text()!=liText){selectbox.addClass('changed')}else selectbox.removeClass('changed');if(selectbox.data('jqfs-class'))selectbox.removeClass(selectbox.data('jqfs-class'));selectbox.data('jqfs-class',t.data('jqfs-class'));selectbox.addClass(t.data('jqfs-class'));el.change()};if(search.length){search.val('').keyup();notFound.hide()};dropdown.hide();selectbox.removeClass('opened')});dropdown.mouseout(function(){$('li.sel',dropdown).addClass('selected')});el.change(function(){divText.html(option.filter(':selected').text());li.removeClass('selected sel').not('.optgroup').eq(el[0].selectedIndex).addClass('selected sel')}).focus(function(){selectbox.addClass('focused')}).blur(function(){selectbox.removeClass('focused')}
19).bind('keydown keyup',function(e){divText.text(option.filter(':selected').text());li.removeClass('selected sel').not('.optgroup').eq(el[0].selectedIndex).addClass('selected sel');if(e.which==38||e.which==37||e.which==33)dropdown.scrollTop(dropdown.scrollTop()+li.filter('.selected').position().top);if(e.which==40||e.which==39||e.which==34)dropdown.scrollTop(dropdown.scrollTop()+li.filter('.selected').position().top-dropdown.innerHeight()+liHeight);if(e.which==13)dropdown.hide()});$(document).on('click',function(e){if(!$(e.target).parents().hasClass('jq-selectbox')&&e.target.nodeName!='OPTION'){if(search.length)search.val('').keyup();dropdown.hide().find('li.sel').addClass('selected');selectbox.removeClass('focused opened')}})} 20function doMultipleSelect(){var att=new attributes(),selectbox=$('<div'+att.id+' class="jq-select-multiple jqselect'+att.classes+'"'+att.title+' style="display: inline-block; position: relative"></div>');el.css({margin:0,padding:0}).after(selectbox);makeList();selectbox.append('<ul>'+list+'</ul>');var ul=$('ul',selectbox).css({position:'relative','overflow-x':'hidden','-webkit-overflow-scrolling':'touch'}),li=$('li',selectbox).attr('unselectable','on').css({'-webkit-user-select':'none','-moz-user-select':'none','-ms-user-select':'none','-o-user-select':'none','user-select':'none','white-space':'nowrap'}),size=el.attr('size'),ulHeight=ul.outerHeight(),liHeight=li.outerHeight();if(size!==undefined&&size>0){ul.css({height:liHeight*size})}else ul.css({height:liHeight*4});if(ulHeight>selectbox.height()){ul.css('overflowY','scroll');preventScrolling(ul);if(li.filter('.selected').length)ul.scrollTop(ul.scrollTop()+li.filter('.selected').position().top)};el.prependTo(selectbox).css({position:'absolute',left:0,top:0,width:'100%',height:'100%',opacity:0}
20);if(el.is(':disabled')){selectbox.addClass('disabled');option.each(function(){if($(this).is(':selected'))li.eq($(this).index()).addClass('selected')})}else{li.filter(':not(.disabled):not(.optgroup)').click(function(e){el.focus();selectbox.removeClass('focused');var clkd=$(this);if(!e.ctrlKey&&!e.metaKey)clkd.addClass('selected');if(!e.shiftKey)clkd.addClass('first');if(!e.ctrlKey&&!e.metaKey&&!e.shiftKey)clkd.siblings().removeClass('selected first');if(e.ctrlKey||e.metaKey){if(clkd.is('.selected')){clkd.removeClass('selected first')}else clkd.addClass('selected first');clkd.siblings().removeClass('first')};if(e.shiftKey){var prev=false,next=false;clkd.siblings().removeClass('selected').siblings('.first').addClass('selected');clkd.prevAll().each(function(){if($(this).is('.first'))prev=true});clkd.nextAll().each(function(){if($(this).is('.first'))next=true});if(prev)clkd.prevAll().each(function(){if($(this).is('.selected')){return false}else $(this).not('.disabled, .optgroup').addClass('selected')});if(next)clkd.nextAll().each(function(){if($(this).is('.selected')){return false}else $(this).not('.disabled, .optgroup').addClass('selected')});if(li.filter('.selected').length==1)clkd.addClass('first')};option.prop('selected',false);li.filter('.selected').each(function(){var t=$(this),index=t.index();if(t.is('.option'))index-=t.prevAll('.optgroup').length;option.eq(index).prop('selected',true)});el.change()});option.each(function(i){$(this).data('optionIndex',i)});el.change(function(){li.removeClass('selected');
20var arrIndexes=[];option.filter(':selected').each(function(){arrIndexes.push($(this).data('optionIndex'))});li.not('.optgroup').filter(function(i){return $.inArray(i,arrIndexes)>-1}).addClass('selected')}).focus(function(){selectbox.addClass('focused')}).blur(function(){selectbox.removeClass('focused')});if(ulHeight>selectbox.height())el.keydown(function(e){if(e.which==38||e.which==37||e.which==33)ul.scrollTop(ul.scrollTop()+li.filter('.selected').position().top-liHeight);if(e.which==40||e.which==39||e.which==34)ul.scrollTop(ul.scrollTop()+li.filter('.selected:last').position().top-ul.innerHeight()+liHeight*2)})}};if(el.is('[multiple]')){doMultipleSelect()}else doSelect()};selectbox();el.on('refresh',function(){el.parent().before(el).remove();selectbox()})}})}else if(el.is(':reset'))el.click(function(){setTimeout(function(){el.closest(opt.wrapper).find('input, select').trigger('refresh')},1)})})}})(jQuery) 21; 22/*** Script File: /public/js/front/standard/jquery.equalheights.js, Original size: 627, Compressed size: 281 ***/ 23(function($){$.fn.equalHeights=function(minHeight,maxHeight){tallest=minHeight?minHeight:0;this.each(function(){if($(this).height()>tallest)tallest=$(this).height()});if(maxHeight&&tallest>maxHeight)tallest=maxHeight;return this.each(function(){$(this).height(tallest)})}})(jQuery) 24; 25/*** Script File: /public/js/front/standard/jquery.mousewheel.js, Original size: 7,552, Compressed size: 3,285 ***/ 26(function(factory){if(typeof define==='function'&&define.amd){define(['jquery'],factory)}else if(typeof exports==='object'){module.exports=factory}else factory(jQuery)}(function($){var toFix=['wheel','mousewheel','DOMMouseScroll','MozMousePixelScroll'],toBind=('onwheel'in document||document.documentMode>=9)?['wheel']:['mousewheel','DomMouseScroll','MozMousePixelScroll'],slice=Array.prototype.slice,nullLowestDeltaTimeout,lowestDelta;if($.event.fixHooks)for(var i=toFix.length;i;)$.event.fixHooks[toFix[--i]]=$.event.mouseHooks;var special=$.event.special.mousewheel={version:'3.1.9',setup:function(){if(this.addEventListener){for(var i=toBind.length;i;)this.addEventListener(toBind[--i],handler,false)}else this.onmousewheel=handler;$.data(this,'mousewheel-line-height',special.getLineHeight(this));$.data(this,'mousewheel-page-height',special.getPageHeight(this))},teardown:function(){if(this.removeEventListener){for(var i=toBind.length;i;)this.removeEventListener(toBind[--i],handler,false)}else this.onmousewheel=null},getLineHeight:function(elem){return parseInt($(elem)['offsetParent'in $.fn?'offsetParent':'parent']().css('fontSize'),10)},getPageHeight:function(elem){return $(elem).height()},settings:{adjustOldDeltas:true}};$.fn.extend({mousewheel:function(fn){return fn?this.bind('mousewheel',fn):this.trigger('mousewheel')},unmousewheel:function(fn){return this.unbind('mousewheel',fn)}}) 27function handler(event){var orgEvent=event||window.event,args=slice.call(arguments,1),delta=0,deltaX=0,deltaY=0,absDelta=0;event=$.event.fix(orgEvent);event.type='mousewheel';if('detail'in orgEvent)deltaY=orgEvent.detail*-1;if('wheelDelta'in orgEvent)deltaY=orgEvent.wheelDelta;if('wheelDeltaY'in orgEvent)deltaY=orgEvent.wheelDeltaY;if('wheelDeltaX'in orgEvent)deltaX=orgEvent.wheelDeltaX*-1;if('axis'in orgEvent&&orgEvent.axis===orgEvent.HORIZONTAL_AXIS){deltaX=deltaY*-1;deltaY=0};delta=deltaY===0?deltaX:deltaY;if('deltaY'in orgEvent){deltaY=orgEvent.deltaY*-1;delta=deltaY};if('deltaX'in orgEvent){deltaX=orgEvent.deltaX;if(deltaY===0)delta=deltaX*-1};if(deltaY===0&&deltaX===0)return;if(orgEvent.deltaMode===1){var lineHeight=$.data(this,'mousewheel-line-height');delta*=lineHeight;deltaY*=lineHeight;deltaX*=lineHeight}else if(orgEvent.deltaMode===2){var pageHeight=$.data(this,'mousewheel-page-height');delta*=pageHeight;deltaY*=pageHeight;deltaX*=pageHeight};absDelta=Math.max(Math.abs(deltaY),Math.abs(deltaX));if(!lowestDelta||absDelta<lowestDelta){lowestDelta=absDelta;if(shouldAdjustOldDeltas(orgEvent,absDelta))lowestDelta/=40};if(shouldAdjustOldDeltas(orgEvent,absDelta)){delta/=40;deltaX/=40;deltaY/=40};delta=Math[delta>=1?'floor':'ceil'](delta/lowestDelta);deltaX=Math[deltaX>
27=1?'floor':'ceil'](deltaX/lowestDelta);deltaY=Math[deltaY>=1?'floor':'ceil'](deltaY/lowestDelta);event.deltaX=deltaX;event.deltaY=deltaY;event.deltaFactor=lowestDelta;event.deltaMode=0;args.unshift(event,delta,deltaX,deltaY);if(nullLowestDeltaTimeout)clearTimeout(nullLowestDeltaTimeout);nullLowestDeltaTimeout=setTimeout(nullLowestDelta,200);return($.event.dispatch||$.event.handle).apply(this,args)} 28function nullLowestDelta(){lowestDelta=null} 29function shouldAdjustOldDeltas(orgEvent,absDelta){return special.settings.adjustOldDeltas&&orgEvent.type==='mousewheel'&&absDelta%120===0}})) 30; 31/*** Script File: /public/js/front/standard/jquery.jscrollpane.min.js, Original size: 14,121, Compressed size: 14,121 ***/ 32/*! 33 * jScrollPane - v2.0.19 - 2013-11-16 34 * http://jscrollpane.kelvinluck.com/ 35 * 36 * Copyright (c) 2013 Kelvin Luck 37 * Dual licensed under the MIT or GPL licenses. 38 */ 39!function(a,b,c){a.fn.jScrollPane=function(d){function e(d,e){function f(b){var e,h,j,l,m,n,q=!1,r=!1;if(P=b,Q===c)m=d.scrollTop(),n=d.scrollLeft(),d.css({overflow:"hidden",padding:0}),R=d.innerWidth()+tb,S=d.innerHeight(),d.width(R),Q=a('<div class="jspPane" />').css("padding",sb).append(d.children()),T=a('<div class="jspContainer" />').css({width:R+"px",height:S+"px"}).append(Q).appendTo(d);else{if(d.css("width",""),q=P.stickToBottom&&C(),r=P.stickToRight&&D(),l=d.innerWidth()+tb!=R||d.outerHeight()!=S,l&&(R=d.innerWidth()+tb,S=d.innerHeight(),T.css({width:R+"px",height:S+"px"})),!l&&ub==U&&Q.outerHeight()==V)return d.width(R),void 0;ub=U,Q.css("width",""),d.width(R),T.find(">.jspVerticalBar,>.jspHorizontalBar").remove().end()}Q.css("overflow","auto"),U=b.contentWidth?b.contentWidth:Q[0].scrollWidth,V=Q[0].scrollHeight,Q.css("overflow",""),W=U/R,X=V/S,Y=X>1,Z=W>1,Z||Y?(d.addClass("jspScrollable"),e=P.maintainPosition&&(ab||db),e&&(h=A(),j=B()),g(),i(),k(),e&&(y(r?U-R:h,!1),x(q?V-S:j,!1)),H(),E(),N(),P.enableKeyboardNavigation&&J(),P.clickOnTrack&&o(),L(),P.hijackInternalLinks&&M()):(d.removeClass("jspScrollable"),Q.css({top:0,left:0,width:T.width()-tb}),F(),I(),K(),p()),P.autoReinitialise&&!rb?rb=setInterval(function(){f(P)},P.autoReinitialiseDelay):!P.autoReinitialise&&rb&&clearInterval(rb),m&&d.scrollTop(0)&&x(m,!1),n&&d.scrollLeft(0)&&y(n,!1),d.trigger("jsp-initialised",[Z||Y])}function g(){Y&&(T.append(a('<div class="jspVerticalBar" />').append(a('<div class="jspCap jspCapTop" />'),a('<div class="jspTrack" />').append(a('<div class="jspDrag" />').append(a('<div class="jspDragTop" />'),a('<div class="jspDragBottom" />'))),a('<div class="jspCap jspCapBottom" />'))),eb=T.find(">.jspVerticalBar"),fb=eb.find(">.jspTrack"),$=fb.find(">.jspDrag"),P.showArrows&&(jb=a('<a class="jspArrow jspArrowUp" />').bind("mousedown.jsp",m(0,-1)).bind("click.jsp",G),kb=a('<a class="jspArrow jspArrowDown" />').bind("mousedown.jsp",m(0,1)).bind("click.jsp",G),P.arrowScrollOnHover&&(jb.bind("mouseover.jsp",m(0,-1,jb)),kb.bind("mouseover.jsp",m(0,1,kb))),l(fb,P.verticalArrowPositions,jb,kb)),hb=S,T.find(">.jspVerticalBar>.jspCap:visible,>.jspVerticalBar>.jspArrow").each(function(){hb-=a(this).outerHeight()}),$.hover(function(){$.addClass("jspHover")},function(){$.removeClass("jspHover")}).bind("mousedown.jsp",function(b){a("html").bind("dragstart.jsp selectstart.jsp",G),$.addClass("jspActive");var c=b.pageY-$.position().top;return a("html").bind("mousemove.jsp",function(a){r(a.pageY-c,!1)}).bind("mouseup.jsp mouseleave.jsp",q),!1}),h())}function h(){fb.height(hb+"px"),ab=0,gb=P.verticalGutter+fb.outerWidth(),Q.width(R-gb-tb);try{0===eb.position().left&&Q.css("margin-left",gb+"px")}catch(a){}}function i(){Z&&(T.append(a('<div class="jspHorizontalBar" />').append(a('<div class="jspCap jspCapLeft" />'),a('<div class="jspTrack" />').append(a('<div class="jspDrag" />').append(a('<div class="jspDragLeft" />'),a('<div class="jspDragRight" />'))),a('<div class="jspCap jspCapRight" />'))),lb=T.find(">.jspHorizontalBar"),mb=lb.find(">.jspTrack"),bb=mb.find(">.jspDrag"),P.showArrows&&(pb=a('<a class="jspArrow jspArrowLeft" />').bind("mousedown.jsp",m(-1,0)).bind("click.jsp",G),qb=a('<a class="jspArrow
39jspArrowRight" />').bind("mousedown.jsp",m(1,0)).bind("click.jsp",G),P.arrowScrollOnHover&&(pb.bind("mouseover.jsp",m(-1,0,pb)),qb.bind("mouseover.jsp",m(1,0,qb))),l(mb,P.horizontalArrowPositions,pb,qb)),bb.hover(function(){bb.addClass("jspHover")},function(){bb.removeClass("jspHover")}).bind("mousedown.jsp",function(b){a("html").bind("dragstart.jsp selectstart.jsp",G),bb.addClass("jspActive");var c=b.pageX-bb.position().left;return a("html").bind("mousemove.jsp",function(a){t(a.pageX-c,!1)}).bind("mouseup.jsp mouseleave.jsp",q),!1}),nb=T.innerWidth(),j())}function j(){T.find(">.jspHorizontalBar>.jspCap:visible,>.jspHorizontalBar>.jspArrow").each(function(){nb-=a(this).outerWidth()}),mb.width(nb+"px"),db=0}function k(){if(Z&&Y){var b=mb.outerHeight(),c=fb.outerWidth();hb-=b,a(lb).find(">.jspCap:visible,>.jspArrow").each(function(){nb+=a(this).outerWidth()}),nb-=c,S-=c,R-=b,mb.parent().append(a('<div class="jspCorner" />').css("width",b+"px")),h(),j()}Z&&Q.width(T.outerWidth()-tb+"px"),V=Q.outerHeight(),X=V/S,Z&&(ob=Math.ceil(1/W*nb),ob>P.horizontalDragMaxWidth?ob=P.horizontalDragMaxWidth:ob<P.horizontalDragMinWidth&&(ob=P.horizontalDragMinWidth),bb.width(ob+"px"),cb=nb-ob,u(db)),Y&&(ib=Math.ceil(1/X*hb),ib>P.verticalDragMaxHeight?ib=P.verticalDragMaxHeight:ib<P.verticalDragMinHeight&&(ib=P.verticalDragMinHeight),$.height(ib+"px"),_=hb-ib,s(ab))}function l(a,b,c,d){var e,f="before",g="after";"os"==b&&(b=/Mac/.test(navigator.platform)?"after":"split"),b==f?g=b:b==g&&(f=b,e=c,c=d,d=e),a[f](c)[g](d)}function m(a,b,c){return function(){return n(a,b,this,c),this.blur(),!1}}function n(b,c,d,e){d=a(d).addClass("jspActive");var f,g,h=!0,i=function(){0!==b&&vb.scrollByX(b*P.arrowButtonSpeed),0!==c&&vb.scrollByY(c*P.arrowButtonSpeed),g=setTimeout(i,h?P.initialDelay:P.arrowRepeatFreq),h=!1};i(),f=e?"mouseout.jsp":"mouseup.jsp",e=e||a("html"),e.bind(f,function(){d.removeClass("jspActive"),g&&clearTimeout(g),g=null,e.unbind(f)})}function o(){p(),Y&&fb.bind("mousedown.jsp",function(b){if(b.originalTarget===c||b.originalTarget==b.currentTarget){var d,e=a(this),f=e.offset(),g=b.pageY-f.top-ab,h=!0,i=function(){var a=e.offset(),c=b.pageY-a.top-ib/2,f=S*P.scrollPagePercent,k=_*f/(V-S);if(0>g)ab-k>c?vb.scrollByY(-f):r(c);else{if(!(g>0))return j(),void 0;c>ab+k?vb.scrollByY(f):r(c)}d=setTimeout(i,h?P.initialDelay:P.trackClickRepeatFreq),h=!1},j=function(){d&&clearTimeout(d),d=null,a(document).unbind("mouseup.jsp",j)};return i(),a(document).bind("mouseup.jsp",j),!1}}),Z&&mb.bind("mousedown.jsp",function(b){if(b.originalTarget===c||b.originalTarget==b.currentTarget){var d,e=a(this),f=e.offset(),g=b.pageX-f.left-db,h=!0,i=function(){var a=e.offset(),c=b.pageX-a.left-ob/2,f=R*P.scrollPagePercent,k=cb*f/(U-R);if(0>g)db-k>c?vb.scrollByX(-f):t(c);else{if(!(g>0))return j(),void 0;c>db+k?vb.scrollByX(f):t(c)}d=setTimeout(i,h?P.initialDelay:P.trackClickRepeatFreq),h=!1},j=function(){d&&clearTimeout(d),d=null,a(document).unbind("mouseup.jsp",j)};return i(),a(document).bind("mouseup.jsp",j),!1}})}function p(){mb&&mb.unbind("mousedown.jsp"),fb&&fb.unbind("mousedown.jsp")}function q(){a("html").unbind("dragstart.jsp selectstart.jsp mousemove.jsp mouseup.jsp mouseleave.jsp"),$&&$.removeClass("jspActive"),bb&&bb.removeClass("jspActive")}function r(a,b){Y&&(0>a?a=0:a>_&&(a=_),b===c&&(b=P.animateScroll),b?vb.animate($,"top",a,s):($.css("top",a),s(a)))}function s(a){a===c&&(a=$.position().top),T.scrollTop(0),ab=a;var b=0===ab,e=ab==_,f=a/_,g=-f*(V-S);(wb!=b||yb!=e)&&(wb=b,yb=e,d.trigger("jsp-arrow-change",[wb,yb,xb,zb])),v(b,e),Q.css("top",g),d.trigger("jsp-scroll-y",[-g,b,e]).trigger("scroll")}function t(a,b){Z&&(0>a?a=0:a>cb&&(a=cb),b===c&&(b=P.animateScroll),b?vb.animate(bb,"left",a,u):(bb.css("left",a),u(a)))}function u(a){a===c&&(a=bb.position().left),T.scrollTop(0),db=a;var b=0===db,e=db==cb,f=a/cb,g=-f*(U-R);(xb!=b||zb!=e)&&(xb=b,zb=e,d.trigger("jsp-arrow-change",[wb,yb,xb,zb])),w(b,e),Q.css("left",g),d.trigger("jsp-scroll-x",[-g,b,e]).trigger("scroll")}function v(a,b){P.showArrows&&(jb[a?"addClass":"removeClass"]("jspDisabled"),kb[b?"addClass":"removeClass"]("jspDisabled"))}function w(a,b){P.showArrows&&(pb[a?"addClass":"removeClass"]("jspDisabled"),qb[b?"addClass":"removeClass"]("jspDisabled"))}function x(a,b){var c=a/(V-S);r(c*_,b)}function y(a,b){var c=a/(U-R);t(c*cb,b)}function z(b,c,d){var e,f,g,h,i,j,k,l,m,n=0,o=0;try{e=a(b)}catch(p){return}for(f=e.outerHeight(),g=e.outerWidth(),T.scrollTop(0),T.scrollLeft(0);!e.is(".jspPane");)if(n+=e.position().top,o+=e.position().left,e=e.offsetParent(),/^body|html$/i.test(e[0].nodeName))return;h=B(),j=h+S,h>n||c?l=n-P.horizontalGutter:n+f>j&&(l=n-S+f+P.horizontalGutter),isNaN(l)||x(l,d),i=A(),k=i+R,i>o||c?m=o-P.horizontalGutter:o+g>k&&(m=o-R+g+P.horizontalGutter),isNaN(m)||y(m,d)}function A(){return-Q.position().left}function B(){return-Q.position().top}function C(){var a=V-S;return a>20&&a-B()<10}function D(){var a=U-R;return a>20&&a-A()<10}function E(){T.unbind(Bb).bind(Bb,function(a,b,c,d){var e=db,f=ab,g=a.deltaFactor||P.mouseWheelSpeed;return vb.scrollBy(c*g,-d*g,!1),e==db&&f==ab})}function F(){T.unbind(Bb)}function G(){return!1}function H(){Q.find(":input,a").unbind("focus.jsp").bind("focus.jsp",function(a){z(a.target,!1)})}function I(){Q.find(":input,a").unbind("focus.jsp")}function J(){function b(){var a=db,b=ab;switch(c){case 40:vb.scrollByY(P.keyboardSpeed,!1);break;case 38:vb.scrollByY(-P.keyboardSpeed,!1);break;case 34:case 32:vb.scrollByY(S*P.scrollPagePercent,!1);break;case 33:vb.scrollByY(-S*P.scrollPagePercent,!1);break;case 39:vb.scrollByX(P.keyboardSpeed,!1);break;case 37:vb.scrollByX(-P.keyboardSpeed,!1)}return e=a!=db||b!=ab}var c,e,f=[];Z&&f.push(lb[0]),Y&&f.push(eb[0]),Q.focus(function(){d.focus()}
39),d.attr("tabindex",0).unbind("keydown.jsp keypress.jsp").bind("keydown.jsp",function(d){if(d.target===this||f.length&&a(d.target).closest(f).length){var g=db,h=ab;switch(d.keyCode){case 40:case 38:case 34:case 32:case 33:case 39:case 37:c=d.keyCode,b();break;case 35:x(V-S),c=null;break;case 36:x(0),c=null}return e=d.keyCode==c&&g!=db||h!=ab,!e}}).bind("keypress.jsp",function(a){return a.keyCode==c&&b(),!e}),P.hideFocus?(d.css("outline","none"),"hideFocus"in T[0]&&d.attr("hideFocus",!0)):(d.css("outline",""),"hideFocus"in T[0]&&d.attr("hideFocus",!1))}function K(){d.attr("tabindex","-1").removeAttr("tabindex").unbind("keydown.jsp keypress.jsp")}function L(){if(location.hash&&location.hash.length>1){var b,c,d=escape(location.hash.substr(1));try{b=a("#"+d+', a[name="'+d+'"]')}catch(e){return}b.length&&Q.find(d)&&(0===T.scrollTop()?c=setInterval(function(){T.scrollTop()>0&&(z(b,!0),a(document).scrollTop(T.position().top),clearInterval(c))},50):(z(b,!0),a(document).scrollTop(T.position().top)))}}function M(){a(document.body).data("jspHijack")||(a(document.body).data("jspHijack",!0),a(document.body).delegate("a[href*=#]","click",function(c){var d,e,f,g,h,i,j=this.href.substr(0,this.href.indexOf("#")),k=location.href;if(-1!==location.href.indexOf("#")&&(k=location.href.substr(0,location.href.indexOf("#"))),j===k){d=escape(this.href.substr(this.href.indexOf("#")+1));try{e=a("#"+d+', a[name="'+d+'"]')}catch(l){return}e.length&&(f=e.closest(".jspScrollable"),g=f.data("jsp"),g.scrollToElement(e,!0),f[0].scrollIntoView&&(h=a(b).scrollTop(),i=e.offset().top,(h>i||i>h+a(b).height())&&f[0].scrollIntoView()),c.preventDefault())}}))}function N(){var a,b,c,d,e,f=!1;T.unbind("touchstart.jsp touchmove.jsp touchend.jsp click.jsp-touchclick").bind("touchstart.jsp",function(g){var h=g.originalEvent.touches[0];a=A(),b=B(),c=h.pageX,d=h.pageY,e=!1,f=!0}).bind("touchmove.jsp",function(g){if(f){var h=g.originalEvent.touches[0],i=db,j=ab;return vb.scrollTo(a+c-h.pageX,b+d-h.pageY),e=e||Math.abs(c-h.pageX)>5||Math.abs(d-h.pageY)>5,i==db&&j==ab}}).bind("touchend.jsp",function(){f=!1}).bind("click.jsp-touchclick",function(){return e?(e=!1,!1):void 0})}function O(){var a=B(),b=A();d.removeClass("jspScrollable").unbind(".jsp"),d.replaceWith(Ab.append(Q.children())),Ab.scrollTop(a),Ab.scrollLeft(b),rb&&clearInterval(rb)}var P,Q,R,S,T,U,V,W,X,Y,Z,$,_,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb=this,wb=!0,xb=!0,yb=!1,zb=!1,Ab=d.clone(!1,!1).empty(),Bb=a.fn.mwheelIntent?"mwheelIntent.jsp":"mousewheel.jsp";"border-box"===d.css("box-sizing")?(sb=0,tb=0):(sb=d.css("paddingTop")+" "+d.css("paddingRight")+" "+d.css("paddingBottom")+" "+d.css("paddingLeft"),tb=(parseInt(d.css("paddingLeft"),10)||0)+(parseInt(d.css("paddingRight"),10)||0)),a.extend(vb,{reinitialise:function(b){b=a.extend({},P,b),f(b)},scrollToElement:function(a,b,c){z(a,b,c)},scrollTo:function(a,b,c){y(a,c),x(b,c)},scrollToX:function(a,b){y(a,b)},scrollToY:function(a,b){x(a,b)},scrollToPercentX:function(a,b){y(a*(U-R),b)},scrollToPercentY:function(a,b){x(a*(V-S),b)},scrollBy:function(a,b,c){vb.scrollByX(a,c),vb.scrollByY(b,c)},scrollByX:function(a,b){var c=A()+Math[0>a?"floor":"ceil"](a),d=c/(U-R);t(d*cb,b)},scrollByY:function(a,b){var c=B()+Math[0>a?"floor":"ceil"](a),d=c/(V-S);r(d*_,b)},positionDragX:function(a,b){t(a,b)},positionDragY:function(a,b){r(a,b)},animate:function(a,b,c,d){var e={};e[b]=c,a.animate(e,{duration:P.animateDuration,easing:P.animateEase,queue:!1,step:d})},getContentPositionX:function(){return A()},getContentPositionY:function(){return B()},getContentWidth:function(){return U},getContentHeight:function(){return V},getPercentScrolledX:function(){return A()/(U-R)},getPercentScrolledY:function(){return B()/(V-S)},getIsScrollableH:function(){return Z},getIsScrollableV:function(){return Y},getContentPane:function(){return Q},scrollToBottom:function(a){r(_,a)},hijackInternalLinks:a.noop,destroy:function(){O()}}),f(e)}return d=a.extend({},a.fn.jScrollPane.defaults,d),a.each(["arrowButtonSpeed","trackClickSpeed","keyboardSpeed"],function(){d[this]=d[this]||d.speed}),this.each(function(){var b=a(this),c=b.data("jsp");c?c.reinitialise(d):(a("script",b).filter('[type="text/javascript"],:not([type])').remove(),c=new e(b,d),b.data("jsp",c))})},a.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:c,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); 40; 41/*** Script File: /public/js/front/standard/ui.datepicker-ru.js, Original size: 1,120, Compressed size: 909 ***/ 42jQuery(function($){$.datepicker.regional['ru']={closeText:'ÐакÑÑÑÑ',prevText:'<ÐÑед',nextText:'След>',currentText:'СегоднÑ',monthNames:['ЯнваÑÑ','ФевÑалÑ','ÐаÑÑ','ÐпÑелÑ','Ðай','ÐÑнÑ','ÐÑлÑ','ÐвгÑÑÑ','СенÑÑбÑÑ','ÐкÑÑбÑÑ','ÐоÑбÑÑ','ÐекабÑÑ'],monthNamesShort:['Янв','Фев','ÐаÑ','ÐпÑ','Ðай','ÐÑн','ÐÑл','Ðвг','Сен','ÐкÑ','ÐоÑ','Ðек'],dayNames:['воÑкÑеÑенÑе','понеделÑник','вÑоÑник','ÑÑеда','ÑеÑвеÑг','пÑÑниÑа','ÑÑббоÑа'],dayNamesShort:['вÑк','пнд','вÑÑ','ÑÑд','ÑÑв','пÑн','ÑбÑ'],dayNamesMin:['ÐÑ','Ðн','ÐÑ','СÑ','ЧÑ','ÐÑ','Сб'],weekHeader:'Ðе',dateFormat:'dd.mm.yy',firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:''};$.datepicker.setDefaults($.datepicker.regional['ru'])}) 43; 44/*** Script File: /public/js/front/standard/jquery.tmpl.min.js, Original size: 6,130, Compressed size: 6,130 ***/ 45/* 46 * jQuery Templates Plugin 1.0.0pre 47 * http://github.com/jquery/jquery-tmpl 48 * Requires jQuery 1.4.2 49 * 50 * Copyright 2011, Software Freedom Conservancy, Inc. 51 * Dual licensed under the MIT or GPL Version 2 licenses. 52 * http://jquery.org/license 53 */ 54(function(a){var r=a.fn.domManip,d="_tmplitem",q=/^[^<]*(<[\w\W]+>)[^>]*$|\{\{\! /,b={},f={},e,p={key:0,data:{}},i=0,c=0,l=[];function g(g,d,h,e){var c={data:e||(e===0||e===false)?e:d?d.data:{},_wrap:d?d._wrap:null,tmpl:null,parent:d||null,nodes:[],calls:u,nest:w,wrap:x,html:v,update:t};g&&a.extend(c,g,{nodes:[],parent:d});if(h){c.tmpl=h;c._ctnt=c._ctnt||c.tmpl(a,c);c.key=++i;(l.length?f:b)[i]=c}return c}a.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(f,d){a.fn[f]=function(n){var g=[],i=a(n),k,h,m,l,j=this.length===1&&this[0].parentNode;e=b||{};if(j&&j.nodeType===11&&j.childNodes.length===1&&i.length===1){i[d](this[0]);g=this}else{for(h=0,m=i.length;h<m;h++){c=h;k=(h>0?this.clone(true):this).get();a(i[h])[d](k);g=g.concat(k)}c=0;g=this.pushStack(g,f,i.selector)}l=e;e=null;a.tmpl.complete(l);return g}});a.fn.extend({tmpl:function(d,c,b){return a.tmpl(this[0],d,c,b)},tmplItem:function(){return a.tmplItem(this[0])},template:function(b){return a.template(b,this[0])},domManip:function(d,m,k){if(d[0]&&a.isArray(d[0])){var g=a.makeArray(arguments),h=d[0],j=h.length,i=0,f;while(i<j&&!(f=a.data(h[i++],"tmplItem")));if(f&&c)g[2]=function(b){a.tmpl.afterManip(this,b,k)};r.apply(this,g)}else r.apply(this,arguments);c=0;!e&&a.tmpl.complete(b);return this}});a.extend({tmpl:function(d,h,e,c){var i,k=!c;if(k){c=p;d=a.template[d]||a.template(null,d);f={}}else if(!d){d=c.tmpl;b[c.key]=c;c.nodes=[];c.wrapped&&n(c,c.wrapped);return a(j(c,null,c.tmpl(a,c)))}if(!d)return[];if(typeof h==="function")h=h.call(c||{});e&&e.wrapped&&n(e,e.wrapped);i=a.isArray(h)?a.map(h,function(a){return a?g(e,c,d,a):null}):[g(e,c,d,h)];return k?a(j(c,null,i)):i},tmplItem:function(b){var c;if(b instanceof a)b=b[0];while(b&&b.nodeType===1&&!(c=a.data(b,"tmplItem"))&&(b=b.parentNode));return c||p},template:function(c,b){if(b){if(typeof b==="string")b=o(b);else if(b instanceof a)b=b[0]||{};
54if(b.nodeType)b=a.data(b,"tmpl")||a.data(b,"tmpl",o(b.innerHTML));return typeof c==="string"?(a.template[c]=b):b}return c?typeof c!=="string"?a.template(null,c):a.template[c]||a.template(null,q.test(c)?c:a(c)):null},encode:function(a){return(""+a).split("<").join("<").split(">").join(">").split('"').join(""").split("'").join("'")}});a.extend(a.tmpl,{tag:{tmpl:{_default:{$2:"null"},open:"if($notnull_1){__=__.concat($item.nest($1,$2));}"},wrap:{_default:{$2:"null"},open:"$item.calls(__,$1,$2);__=[];",close:"call=$item.calls();__=call._.concat($item.wrap(call,__));"},each:{_default:{$2:"$index, $value"},open:"if($notnull_1){$.each($1a,function($2){with(this){",close:"}});}"},"if":{open:"if(($notnull_1) && $1a){",close:"}"},"else":{_default:{$1:"true"},open:"}else if(($notnull_1) && $1a){"},html:{open:"if($notnull_1){__.push($1a);}"},"=":{_default:{$1:"$data"},open:"if($notnull_1){__.push($.encode($1a));}"},"!":{open:""}},complete:function(){b={}},afterManip:function(f,b,d){var e=b.nodeType===11?a.makeArray(b.childNodes):b.nodeType===1?[b]:[];d.call(f,b);m(e);c++}});function j(e,g,f){var b,c=f?a.map(f,function(a){return typeof a==="string"?e.key?a.replace(/(<\w+)(?=[\s>])(?![^>]*_tmplitem)([^>]*)/g,"$1 "+d+'="'+e.key+'" $2'):a:j(a,e,a._ctnt)}):e;if(g)return c;c=c.join("");c.replace(/^\s*([^<\s][^<]*)?(<[\w\W]+>)([^>]*[^>\s])?\s*$/,function(f,c,e,d){b=a(e).get();m(b);if(c)b=k(c).concat(b);if(d)b=b.concat(k(d))});return b?b:k(c)}function k(c){var b=document.createElement("div");b.innerHTML=c;return a.makeArray(b.childNodes)}function o(b){return new Function("jQuery","$item","var $=jQuery,call,__=[],$data=$item.data;with($data){__.push('"+a.trim(b).replace(/([\\'])/g,"\\$1").replace(/[\r\t\n]/g," ").replace(/\$\{([^\}]*)\}/g,"{{= $1}}").replace(/\{\{(\/?)(\w+|.)(?:\(((?:[^\}]|\}(?!\}))*?)?\))?(?:\s+(.*?)?)?(\(((?:[^\}]|\}(?!\}))*?)\))?\s*\}\}/g,function(m,l,k,g,b,c,d){var j=a.tmpl.tag[k],i,e,f;if(!j)throw"Unknown template tag: "+k;i=j._default||[];if(c&&!/\w$/.test(b)){b+=c;c=""}if(b){b=h(b);d=d?","+h(d)+")":c?")":"";e=c?b.indexOf(".")>-1?b+h(c):"("+b+").call($item"+d:b;f=c?e:"(typeof("+b+")==='function'?("+b+").call($item):("+b+"))"}else f=e=i.$1||"null";g=h(g);return"');"+j[l?"close":"open"].split("$notnull_1").join(b?"typeof("+b+")!=='undefined' && ("+b+")!=null":"true").split("$1a").join(f).split("$1").join(e).split("$2").join(g||i.$2||"")+"__.push('"})+"');}return __;")}function n(c,b){c._wrap=j(c,true,a.isArray(b)?b:[q.test(b)?b:a(b).html()]).join("")}function h(a){return a?a.replace(/\\'/g,"'").replace(/\\\\/g,"\\"):null}function s(b){var a=document.createElement("div");a.appendChild(b.cloneNode(true));return a.innerHTML}function m(o){var n="_"+c,k,j,l={},e,p,h;for(e=0,p=o.length;e<p;e++){if((k=o[e]).nodeType!==1)continue;j=k.getElementsByTagName("*");for(h=j.length-1;h>=0;h--)m(j[h]);m(k)}function m(j){var p,h=j,k,e,m;if(m=j.getAttribute(d)){while(h.parentNode&&(h=h.parentNode).nodeType===1&&!(p=h.getAttribute(d)));if(p!==m){h=h.parentNode?h.nodeType===11?0:h.getAttribute(d)||0:0;if(!(e=b[m])){e=f[m];e=g(e,b[h]||f[h]);e.key=++i;b[i]=e}c&&o(m)}j.removeAttribute(d)}else if(c&&(e=a.data(j,"tmplItem"))){o(e.key);b[e.key]=e;h=a.data(j.parentNode,"tmplItem");h=h?h.key:0}if(e){k=e;while(k&&k.key!=h){k.nodes.push(j);k=k.parent}delete e._ctnt;delete e._wrap;a.data(j,"tmplItem",e)}function o(a){a=a+n;e=l[a]=l[a]||g(e,b[e.parent.key+n]||e.parent)}}}function u(a,d,c,b){if(!a)return l.pop();l.push({_:a,tmpl:d,item:this,data:c,options:b})}function w(d,c,b){return a.tmpl(a.template(d),c,b,this)}function x(b,d){var c=b.options||{};c.wrapped=d;return a.tmpl(a.template(b.tmpl),b.data,c,b.item)}function v(d,c){var b=this._wrap;return a.map(a(a.isArray(b)?b.join(""):b).filter(d||"*"),function(a){return c?a.innerText||a.textContent:a.outerHTML||s(a)})}function t(){var b=this.nodes;a.tmpl(null,null,null,this).insertBefore(b[0]);a(b).remove()}})(jQuery); 55; 56/*** Script File: /public/js/front/standard/jquery.tipsy.js, Original size: 7,586, Compressed size: 4,036 ***/ 57(function($){function fixTitle($ele){if($ele.attr('title')||typeof($ele.attr('original-title'))!='string')$ele.attr('original-title',$ele.attr('title')||'').removeAttr('title')} 58function Tipsy(element,options){this.$element=$(element);this.options=options;this.enabled=true;fixTitle(this.$element)};Tipsy.prototype={show:function(){var title=this.getTitle();if(title&&this.enabled){var $tip=this.tip();$tip.find('.tipsy-inner')[this.options.html?'html':'text'](title);$tip[0].className='tipsy';$tip.remove().css({top:0,left:0,visibility:'hidden',display:'block'}).appendTo(document.body);var pos=$.extend({},this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight}),actualWidth=$tip[0].offsetWidth,actualHeight=$tip[0].offsetHeight,gravity=(typeof this.options.gravity=='function')?this.options.gravity.call(this.$element[0]):this.options.gravity,tp;switch(gravity.charAt(0)){case'n':tp={top:pos.top+pos.height+this.options.offset,left:pos.left+pos.width/2-actualWidth/2};break;case's':tp={top:pos.top-actualHeight-this.options.offset,left:pos.left+pos.width/2-actualWidth/2};break;case'e':tp={top:pos.top+pos.height/2-actualHeight/2,left:pos.left-actualWidth-this.options.offset};break;case'w':tp={top:pos.top+pos.height/2-actualHeight/2,left:pos.left+pos.width+this.options.offset};break};
58if(gravity.length==2)if(gravity.charAt(1)=='w'){tp.left=pos.left+pos.width/2-15}else tp.left=pos.left+pos.width/2-actualWidth+15;$tip.css(tp).addClass('tipsy-'+gravity);if(this.options.fade){$tip.stop().css({opacity:0,display:'block',visibility:'visible'}).animate({opacity:this.options.opacity})}else $tip.css({visibility:'visible',opacity:this.options.opacity})}},hide:function(){if(this.options.fade){this.tip().stop().fadeOut(function(){$(this).remove()})}else this.tip().remove()},getTitle:function(){var title,$e=this.$element,o=this.options;fixTitle($e);var title,o=this.options;if(typeof o.title=='string'){title=$e.attr(o.title=='title'?'original-title':o.title)}else if(typeof o.title=='function')title=o.title.call($e[0]);title=(''+title).replace(/(^\s*|\s*$)/,"");return title||o.fallback},tip:function(){if(!this.$tip)this.$tip=$('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"/></div>');return this.$tip},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=null}},enable:function(){this.enabled=true},disable:function(){this.enabled=false},toggleEnabled:function(){this.enabled=!this.enabled}};$.fn.tipsy=function(options){if(options===true){return this.data('tipsy')}else if(typeof options=='string')return this.data('tipsy')[options]();options=$.extend({},$.fn.tipsy.defaults,options) 59function get(ele){var tipsy=$.data(ele,'tipsy');if(!tipsy){tipsy=new Tipsy(ele,$.fn.tipsy.elementOptions(ele,options));$.data(ele,'tipsy',tipsy)};return tipsy} 60function enter(){var tipsy=get(this);tipsy.hoverState='in';if(options.delayIn==0){tipsy.show()}else setTimeout(function(){if(tipsy.hoverState=='in')tipsy.show()},options.delayIn)} 61function leave(){var tipsy=get(this);tipsy.hoverState='out';if(options.delayOut==0){tipsy.hide()}else setTimeout(function(){if(tipsy.hoverState=='out')tipsy.hide()},options.delayOut)};if(!options.live)this.each(function(){get(this)});if(options.trigger!='manual'){var binder=options.live?'live':'bind',eventIn=options.trigger=='hover'?'mouseenter':'focus',eventOut=options.trigger=='hover'?'mouseleave':'blur';this[binder](eventIn,enter)[binder](eventOut,leave)};return this};$.fn.tipsy.defaults={delayIn:10,delayOut:0,fade:false,fallback:'',gravity:'n',html:false,live:false,offset:0,opacity:1,title:'title',trigger:'hover'};$.fn.tipsy.elementOptions=function(ele,options){return $.metadata?$.extend({},options,$(ele).metadata()):options};$.fn.tipsy.autoNS=function(){return $(this).offset().top>($(document).scrollTop()+$(window).height()/2)?'s':'n'};$.fn.tipsy.autoWE=function(){return $(this).offset().left>($(document).scrollLeft()+$(window).width()/2)?'e':'w'}})(jQuery) 62; 63/*** Script File: /public/js/front/standard/jquery-ui-1.10.4.custom.js, Original size: 451,723, Compressed size: 287,036 ***/ 64(function($,undefined){var uuid=0,runiqueId=/^ui-id-\d+$/;$.ui=$.ui||{};$.extend($.ui,{version:"1.10.4",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}});$.fn.extend({focus:(function(orig){return function(delay,fn){return typeof delay==="number"?this.each(function(){var elem=this;setTimeout(function(){$(elem).focus();if(fn)fn.call(elem)},delay)}):orig.apply(this,arguments)}})($.fn.focus),scrollParent:function(){var scrollParent;if(($.ui.ie&&/(static|relative)/.test(this.css("position")))||/absolute/.test(this.css("position"))){scrollParent=this.parents().filter(function(){return/(relative|absolute|fixed)/.test($.css(this,"position"))&&/(auto|scroll)/.test($.css(this,"overflow")+$.css(this,"overflow-y")+$.css(this,"overflow-x"))}).eq(0)}else scrollParent=this.parents().filter(function(){return/(auto|scroll)/.test($.css(this,"overflow")+$.css(this,"overflow-y")+$.css(this,"overflow-x"))}).eq(0);return/fixed/.test(this.css("position"))||!scrollParent.length?$(document):scrollParent},zIndex:function(zIndex){if(zIndex!==undefined)return this.css("zIndex",zIndex);if(this.length){var elem=$(this[0]),position,value;while(elem.length&&elem[0]!==document){position=elem.css("position");if(position==="absolute"||position==="relative"||position==="fixed"){value=parseInt(elem.css("zIndex"),10);if(!isNaN(value)&&value!==0)return value};elem=elem.parent()}};return 0},uniqueId:function(){return this.each(function(){if(!this.id)this.id="ui-id-"+(++uuid)})},removeUniqueId:function(){return this.each(function(){if(runiqueId.test(this.id
64))$(this).removeAttr("id")})}}) 65function focusable(element,isTabIndexNotNaN){var map,mapName,img,nodeName=element.nodeName.toLowerCase();if("area"===nodeName){map=element.parentNode;mapName=map.name;if(!element.href||!mapName||map.nodeName.toLowerCase()!=="map")return false;img=$("img[usemap=#"+mapName+"]")[0];return!!img&&visible(img)};return(/input|select|textarea|button|object/.test(nodeName)?!element.disabled:"a"===nodeName?element.href||isTabIndexNotNaN:isTabIndexNotNaN)&&visible(element)} 66function visible(element){return $.expr.filters.visible(element)&&!$(element).parents().addBack().filter(function(){return $.css(this,"visibility")==="hidden"}).length};$.extend($.expr[":"],{data:$.expr.createPseudo?$.expr.createPseudo(function(dataName){return function(elem){return!!$.data(elem,dataName)}}):function(elem,i,match){return!!$.data(elem,match[3])},focusable:function(element){return focusable(element,!isNaN($.attr(element,"tabindex")))},tabbable:function(element){var tabIndex=$.attr(element,"tabindex"),isTabIndexNaN=isNaN(tabIndex);return(isTabIndexNaN||tabIndex>=0)&&focusable(element,!isTabIndexNaN)}});if(!$("<a>").outerWidth(1).jquery)$.each(["Width","Height"],function(i,name){var side=name==="Width"?["Left","Right"]:["Top","Bottom"],type=name.toLowerCase(),orig={innerWidth:$.fn.innerWidth,innerHeight:$.fn.innerHeight,outerWidth:$.fn.outerWidth,outerHeight:$.fn.outerHeight} 67function reduce(elem,size,border,margin){$.each(side,function(){size-=parseFloat($.css(elem,"padding"+this))||0;if(border)size-=parseFloat($.css(elem,"border"+this+"Width"))||0;if(margin)size-=parseFloat($.css(elem,"margin"+this))||0});return size};$.fn["inner"+name]=function(size){if(size===undefined)return orig["inner"+name].call(this);return this.each(function(){$(this).css(type,reduce(this,size)+"px")})};$.fn["outer"+name]=function(size,margin){if(typeof size!=="number")return orig["outer"+name].call(this,size);return this.each(function(){$(this).css(type,reduce(this,size,true,margin)+"px")})}});if(!$.fn.addBack)$.fn.addBack=function(selector){return this.add(selector==null?this.prevObject:this.prevObject.filter(selector))};if($("<a>").data("a-b","a").removeData("a-b").data("a-b"))$.fn.removeData=(function(removeData){return function(key){if(arguments.length){return removeData.call(this,$.camelCase(key))}else return removeData.call(this)}})($.fn.removeData);$.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());$.support.selectstart="onselectstart"in document.createElement("div");$.fn.extend({disableSelection:function(){return this.bind(($.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(event){event.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});$.extend($.ui,{plugin:{add:function(module,option,set){var i,proto=$.ui[module].prototype;for(i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]])}},call:function(instance,name,args){var i,set=instance.plugins[name];if(!set||!instance.element[0].parentNode||instance.element[0].parentNode.nodeType===11)return;for(i=0;i<set.length;i++)if(instance.options[set[i][0]])set[i][1].apply(instance.element,args)}},hasScroll:function(el,a){if($(el).css("overflow")==="hidden")return false;var scroll=(a&&a==="left")?"scrollLeft":"scrollTop",has=false;if(el[scroll]>0)return true;el[scroll]=1;has=(el[scroll]>0);el[scroll]=0;return has}})})(jQuery);(function($,undefined){var uuid=0,slice=Array.prototype.slice,_cleanData=$.cleanData;$.cleanData=function(elems){for(var i=0,elem;(elem=elems[i])!=null;i++)try{$(elem).triggerHandler("remove")}catch(e){};_cleanData(elems)};$.widget=function(name,base,prototype){var fullName,existingConstructor,constructor,basePrototype,proxiedPrototype={},namespace=name.split(".")[0];name=name.split(".")[1];fullName=namespace+"-"+name;if(!prototype){prototype=base;base=$.Widget};$.expr[":"][fullName.toLowerCase()]=function(elem){return!!$.data(elem,fullName)};$[namespace]=$[namespace]||{};existingConstructor=$[namespace][name];constructor=$[namespace][name]=function(options,element){if(!this._createWidget)return new constructor(options,element);if(arguments.length)this._createWidget(options,element)};$.extend(constructor,existingConstructor,{version:prototype.version,_proto:$.extend({},prototype),_childConstructors:[]});basePrototype=new base();basePrototype.options=$.widget.extend({},basePrototype.options);$.each(prototype,function(prop,value){if(!$.isFunction(value)){proxiedPrototype[prop]=value;return};proxiedPrototype[prop]=(function(){var _super=function(){return base.prototype[prop].apply(this,arguments)},_superApply=function(args){return base.prototype[prop].apply(this,args)};return function(){var __super=this._super,__superApply=this._superApply,returnValue;this._super=_super;this._superApply=_superApply;returnValue=value.apply(this,arguments);this._super=__super;this._superApply=__superApply;return returnValue}})()});constructor.prototype=$.widget.extend(basePrototype,{widgetEventPrefix:existingConstructor?(basePrototype.widgetEventPrefix||name):name},proxiedPrototype,{constructor:constructor,namespace:namespace,widgetName:name,widgetFullName:fullName});if(existingConstructor){$.each(existingConstructor._childConstructors,function(i,child){var childPrototype=child.prototype;$.widget(childPrototype.namespace+"."+childPrototype.widgetName,constructor,child._proto)});delete existingConstructor._childConstructors}else base._childConstructors.push(constructor);$.widget.bridge(name,constructor)};$.widget.extend=function(target){var input=slice.call(arguments,1
67),inputIndex=0,inputLength=input.length,key,value;for(;inputIndex<inputLength;inputIndex++)for(key in input[inputIndex]){value=input[inputIndex][key];if(input[inputIndex].hasOwnProperty(key)&&value!==undefined)if($.isPlainObject(value)){target[key]=$.isPlainObject(target[key])?$.widget.extend({},target[key],value):$.widget.extend({},value)}else target[key]=value};return target};$.widget.bridge=function(name,object){var fullName=object.prototype.widgetFullName||name;$.fn[name]=function(options){var isMethodCall=typeof options==="string",args=slice.call(arguments,1),returnValue=this;options=!isMethodCall&&args.length?$.widget.extend.apply(null,[options].concat(args)):options;if(isMethodCall){this.each(function(){var methodValue,instance=$.data(this,fullName);if(!instance)return $.error("cannot call methods on "+name+" prior to initialization; attempted to call method '"+options+"'");if(!$.isFunction(instance[options])||options.charAt(0)==="_")return $.error("no such method '"+options+"' for "+name+" widget instance");methodValue=instance[options].apply(instance,args);if(methodValue!==instance&&methodValue!==undefined){returnValue=methodValue&&methodValue.jquery?returnValue.pushStack(methodValue.get()):methodValue;return false}})}else this.each(function(){var instance=$.data(this,fullName);if(instance){instance.option(options||{})._init()}else $.data(this,fullName,new object(options,this))});return returnValue}};$.Widget=function(){};$.Widget._childConstructors=[];$.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:false,create:null},_createWidget:function(options,element){element=$(element||this.defaultElement||this)[0];this.element=$(element);this.uuid=uuid++;this.eventNamespace="."+this.widgetName+this.uuid;this.options=$.widget.extend({},this.options,this._getCreateOptions(),options);this.bindings=$();this.hoverable=$();this.focusable=$();if(element!==this){$.data(element,this.widgetFullName,this);this._on(true,this.element,{remove:function(event){if(event.target===element)this.destroy()}});this.document=$(element.style?element.ownerDocument:element.document||element);this.window=$(this.document[0].defaultView||this.document[0].parentWindow)};this._create();this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:$.noop,_getCreateEventData:$.noop,_create:$.noop,_init:$.noop,destroy:function(){this._destroy();this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData($.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:$.noop,widget:function(){return this.element},option:function(key,value){var options=key,parts,curOption,i;if(arguments.length===0)return $.widget.extend({},this.options);if(typeof key==="string"){options={};parts=key.split(".");key=parts.shift();if(parts.length){curOption=options[key]=$.widget.extend({},this.options[key]);for(i=0;i<parts.length-1;i++){curOption[parts[i]]=curOption[parts[i]]||{};curOption=curOption[parts[i]]};key=parts.pop();if(arguments.length===1)return curOption[key]===undefined?null:curOption[key];curOption[key]=value}else{if(arguments.length===1)return this.options[key]===undefined?null:this.options[key];options[key]=value}};this._setOptions(options);return this},_setOptions:function(options){var key;for(key in options)this._setOption(key,options[key]);return this},_setOption:function(key,value){this.options[key]=value;if(key==="disabled"){this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!value).attr("aria-disabled",value);this.hoverable.removeClass("ui-state-hover");this.focusable.removeClass("ui-state-focus")};return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_on:function(suppressDisabledCheck,element,handlers){var delegateElement,instance=this;if(typeof suppressDisabledCheck!=="boolean"){handlers=element;element=suppressDisabledCheck;suppressDisabledCheck=false};if(!handlers){handlers=element;element=this.element;delegateElement=this.widget()}else{element=delegateElement=$(element);this.bindings=this.bindings.add(element)};$.each(handlers,function(event,handler){function handlerProxy(){if(!suppressDisabledCheck&&(instance.options.disabled===true||$(this).hasClass("ui-state-disabled")))return;return(typeof handler==="string"?instance[handler]:handler).apply(instance,arguments)};if(typeof handler!=="string")handlerProxy.guid=handler.guid=handler.guid||handlerProxy.guid||$.guid++;var match=event.match(/^(\w+)\s*(.*)$/),eventName=match[1]+instance.eventNamespace,selector=match[2];
67if(selector){delegateElement.delegate(selector,eventName,handlerProxy)}else element.bind(eventName,handlerProxy)})},_off:function(element,eventName){eventName=(eventName||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;element.unbind(eventName).undelegate(eventName)},_delay:function(handler,delay){function handlerProxy(){return(typeof handler==="string"?instance[handler]:handler).apply(instance,arguments)};var instance=this;return setTimeout(handlerProxy,delay||0)},_hoverable:function(element){this.hoverable=this.hoverable.add(element);this._on(element,{mouseenter:function(event){$(event.currentTarget).addClass("ui-state-hover")},mouseleave:function(event){$(event.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(element){this.focusable=this.focusable.add(element);this._on(element,{focusin:function(event){$(event.currentTarget).addClass("ui-state-focus")},focusout:function(event){$(event.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(type,event,data){var prop,orig,callback=this.options[type];data=data||{};event=$.Event(event);event.type=(type===this.widgetEventPrefix?type:this.widgetEventPrefix+type).toLowerCase();event.target=this.element[0];orig=event.originalEvent;if(orig)for(prop in orig)if(!(prop in event))event[prop]=orig[prop];this.element.trigger(event,data);return!($.isFunction(callback)&&callback.apply(this.element[0],[event].concat(data))===false||event.isDefaultPrevented())}};$.each({show:"fadeIn",hide:"fadeOut"},function(method,defaultEffect){$.Widget.prototype["_"+method]=function(element,options,callback){if(typeof options==="string")options={effect:options};var hasOptions,effectName=!options?method:options===true||typeof options==="number"?defaultEffect:options.effect||defaultEffect;options=options||{};if(typeof options==="number")options={duration:options};hasOptions=!$.isEmptyObject(options);options.complete=callback;if(options.delay)element.delay(options.delay);if(hasOptions&&$.effects&&$.effects.effect[effectName]){element[method](options)}else if(effectName!==method&&element[effectName]){element[effectName](options.duration,options.easing,callback)}else element.queue(function(next){$(this)[method]();if(callback)callback.call(element[0]);next()})}})})(jQuery);(function($,undefined){var mouseHandled=false;$(document).mouseup(function(){mouseHandled=false});$.widget("ui.mouse",{version:"1.10.4",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var that=this;this.element.bind("mousedown."+this.widgetName,function(event){return that._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(true===$.data(event.target,that.widgetName+".preventClickEvent")){$.removeData(event.target,that.widgetName+".preventClickEvent");event.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);if(this._mouseMoveDelegate)$(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(event){if(mouseHandled)return;(this._mouseStarted&&this._mouseUp(event));this._mouseDownEvent=event;var that=this,btnIsLeft=(event.which===1),elIsCancel=(typeof this.options.cancel==="string"&&event.target.nodeName?$(event.target).closest(this.options.cancel).length:false);if(!btnIsLeft||elIsCancel||!this._mouseCapture(event))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){that.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(event)&&this._mouseDelayMet(event)){this._mouseStarted=(this._mouseStart(event)!==false);if(!this._mouseStarted){event.preventDefault();return true}};if(true===$.data(event.target,this.widgetName+".preventClickEvent"))$.removeData(event.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(event){return that._mouseMove(event)};this._mouseUpDelegate=function(event){return that._mouseUp(event)};$(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);event.preventDefault();mouseHandled=true;return true},_mouseMove:function(event){if($.ui.ie&&(!document.documentMode||document.documentMode<9)&&!event.button)return this._mouseUp(event);if(this._mouseStarted){this._mouseDrag(event);return event.preventDefault()};if(this._mouseDistanceMet(event)&&this._mouseDelayMet(event)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,event)!==false);(this._mouseStarted?this._mouseDrag(event):this._mouseUp(event))};return!this._mouseStarted},_mouseUp:function(event){$(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;if(event.target===this._mouseDownEvent.target)$.data(event.target,this.widgetName+".preventClickEvent",true);this._mouseStop(event)};return false},_mouseDistanceMet:function(event){return(Math.max(Math.abs(this._mouseDownEvent.pageX-event.pageX),Math.abs(this._mouseDownEvent.pageY-event.pageY))>=this.options.distance)},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);(function($,undefined){$.ui=$.ui||{};var cachedScrollbarWidth,max=Math.max,abs=Math.abs,round=Math.round,rhorizontal=/left|center|right/,rvertical=/top|center|bottom/,roffset=/[\+\-]\d+(\.[\d]+)?%?/,rposition=/^\w+/,rpercent=/%$/,_position=$.fn.position 68function getOffsets(offsets,width,height){return[parseFloat(offsets[0])*(rpercent.test(offsets[0])?width/100:1),parseFloat(offsets[1])*(rpercent.test(offsets[1])?height/100:1)]} 69function parseCss(element,property){return parseInt($.css(element,property),10)||0} 70function getDimensions(elem){var raw=elem[0];if(raw.nodeType===9)return{width:elem.width(),height:elem.height(),offset:{top:0,left:0}};if($.isWindow(raw))return{width:elem.width(),height:elem.height(),offset:{top:elem.scrollTop(),left:elem.scrollLeft()}};if(raw.preventDefault)return{width:0,height:0,offset:{top:raw.pageY,left:raw.pageX}};return{width:elem.outerWidth(),height:elem.outerHeight(),offset:elem.offset()}};$.position={scrollbarWidth:function(){if(cachedScrollbarWidth!==undefined)return cachedScrollbarWidth;
70var w1,w2,div=$("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),innerDiv=div.children()[0];$("body").append(div);w1=innerDiv.offsetWidth;div.css("overflow","scroll");w2=innerDiv.offsetWidth;if(w1===w2)w2=div[0].clientWidth;div.remove();return(cachedScrollbarWidth=w1-w2)},getScrollInfo:function(within){var overflowX=within.isWindow||within.isDocument?"":within.element.css("overflow-x"),overflowY=within.isWindow||within.isDocument?"":within.element.css("overflow-y"),hasOverflowX=overflowX==="scroll"||(overflowX==="auto"&&within.width<within.element[0].scrollWidth),hasOverflowY=overflowY==="scroll"||(overflowY==="auto"&&within.height<within.element[0].scrollHeight);return{width:hasOverflowY?$.position.scrollbarWidth():0,height:hasOverflowX?$.position.scrollbarWidth():0}},getWithinInfo:function(element){var withinElement=$(element||window),isWindow=$.isWindow(withinElement[0]),isDocument=!!withinElement[0]&&withinElement[0].nodeType===9;return{element:withinElement,isWindow:isWindow,isDocument:isDocument,offset:withinElement.offset()||{left:0,top:0},scrollLeft:withinElement.scrollLeft(),scrollTop:withinElement.scrollTop(),width:isWindow?withinElement.width():withinElement.outerWidth(),height:isWindow?withinElement.height():withinElement.outerHeight()}}};$.fn.position=function(options){if(!options||!options.of)return _position.apply(this,arguments);options=$.extend({},options);var atOffset,targetWidth,targetHeight,targetOffset,basePosition,dimensions,target=$(options.of),within=$.position.getWithinInfo(options.within),scrollInfo=$.position.getScrollInfo(within),collision=(options.collision||"flip").split(" "),offsets={};dimensions=getDimensions(target);if(target[0].preventDefault)options.at="left top";targetWidth=dimensions.width;targetHeight=dimensions.height;targetOffset=dimensions.offset;basePosition=$.extend({},targetOffset);$.each(["my","at"],function(){var pos=(options[this]||"").split(" "),horizontalOffset,verticalOffset;if(pos.length===1)pos=rhorizontal.test(pos[0])?pos.concat(["center"]):rvertical.test(pos[0])?["center"].concat(pos):["center","center"];pos[0]=rhorizontal.test(pos[0])?pos[0]:"center";pos[1]=rvertical.test(pos[1])?pos[1]:"center";horizontalOffset=roffset.exec(pos[0]);verticalOffset=roffset.exec(pos[1]);offsets[this]=[horizontalOffset?horizontalOffset[0]:0,verticalOffset?verticalOffset[0]:0];options[this]=[rposition.exec(pos[0])[0],rposition.exec(pos[1])[0]]});if(collision.length===1)collision[1]=collision[0];if(options.at[0]==="right"){basePosition.left+=targetWidth}else if(options.at[0]==="center")basePosition.left+=targetWidth/2;if(options.at[1]==="bottom"){basePosition.top+=targetHeight}else if(options.at[1]==="center")basePosition.top+=targetHeight/2;atOffset=getOffsets(offsets.at,targetWidth,targetHeight);basePosition.left+=atOffset[0];basePosition.top+=atOffset[1];return this.each(function(){var collisionPosition,using,elem=$(this),elemWidth=elem.outerWidth(),elemHeight=elem.outerHeight(),marginLeft=parseCss(this,"marginLeft"),marginTop=parseCss(this,"marginTop"),collisionWidth=elemWidth+marginLeft+parseCss(this,"marginRight")+scrollInfo.width,collisionHeight=elemHeight+marginTop+parseCss(this,"marginBottom")+scrollInfo.height,position=$.extend({},basePosition),myOffset=getOffsets(offsets.my,elem.outerWidth(),elem.outerHeight());if(options.my[0]==="right"){position.left-=elemWidth}else if(options.my[0]==="center")position.left-=elemWidth/2;if(options.my[1]==="bottom"){position.top-=elemHeight}else if(options.my[1]==="center")position.top-=elemHeight/2;position.left+=myOffset[0];position.top+=myOffset[1];if(!$.support.offsetFractions){position.left=round(position.left);position.top=round(position.top)};collisionPosition={marginLeft:marginLeft,marginTop:marginTop};$.each(["left","top"],function(i,dir){if($.ui.position[collision[i]])$.ui.position[collision[i]][dir](position,{targetWidth:targetWidth,targetHeight:targetHeight,elemWidth:elemWidth,elemHeight:elemHeight,collisionPosition:collisionPosition,collisionWidth:collisionWidth,collisionHeight:collisionHeight,offset:[atOffset[0]+myOffset[0],atOffset[1]+myOffset[1]],my:options.my,at:options.at,within:within,elem:elem})});if(options.using)using=function(props){var left=targetOffset.left-position.left,right=left+targetWidth-elemWidth,top=targetOffset.top-position.top,bottom=top+targetHeight-elemHeight,feedback={target:{element:target,left:targetOffset.left,top:targetOffset.top,width:targetWidth,height:targetHeight},element:{element:elem,left:position.left,top:position.top,width:elemWidth,height:elemHeight},horizontal:right<0?"left":left>0?"right":"center",vertical:bottom<0?"top":top>0?"bottom":"middle"};if(targetWidth<elemWidth&&abs(left+right)<targetWidth)feedback.horizontal="center";if(targetHeight<elemHeight&&abs(top+bottom)<targetHeight)feedback.vertical="middle";if(max(abs(left),abs(right))>max(abs(top),abs(bottom))){feedback.important="horizontal"}else feedback.important="vertical";options.using.call(this,props,feedback)};elem.offset($.extend(position,{using:using}))})};$.ui.position={fit:{left:function(position,data){var within=data.within,withinOffset=within.isWindow?within.scrollLeft:within.offset.left,outerWidth=within.width,collisionPosLeft=position.left-data.collisionPosition.marginLeft,overLeft=withinOffset-collisionPosLeft,overRight=collisionPosLeft+data.collisionWidth-outerWidth-withinOffset,newOverRight;if(data.collisionWidth>outerWidth){if(overLeft>0&&overRight<=0){newOverRight=position.left+overLeft+data.collisionWidth-outerWidth-withinOffset;position.left+=overLeft-newOverRight}else if(overRight>
700&&overLeft<=0){position.left=withinOffset}else if(overLeft>overRight){position.left=withinOffset+outerWidth-data.collisionWidth}else position.left=withinOffset}else if(overLeft>0){position.left+=overLeft}else if(overRight>0){position.left-=overRight}else position.left=max(position.left-collisionPosLeft,position.left)},top:function(position,data){var within=data.within,withinOffset=within.isWindow?within.scrollTop:within.offset.top,outerHeight=data.within.height,collisionPosTop=position.top-data.collisionPosition.marginTop,overTop=withinOffset-collisionPosTop,overBottom=collisionPosTop+data.collisionHeight-outerHeight-withinOffset,newOverBottom;if(data.collisionHeight>outerHeight){if(overTop>0&&overBottom<=0){newOverBottom=position.top+overTop+data.collisionHeight-outerHeight-withinOffset;position.top+=overTop-newOverBottom}else if(overBottom>0&&overTop<=0){position.top=withinOffset}else if(overTop>overBottom){position.top=withinOffset+outerHeight-data.collisionHeight}else position.top=withinOffset}else if(overTop>0){position.top+=overTop}else if(overBottom>0){position.top-=overBottom}else position.top=max(position.top-collisionPosTop,position.top)}},flip:{left:function(position,data){var within=data.within,withinOffset=within.offset.left+within.scrollLeft,outerWidth=within.width,offsetLeft=within.isWindow?within.scrollLeft:within.offset.left,collisionPosLeft=position.left-data.collisionPosition.marginLeft,overLeft=collisionPosLeft-offsetLeft,overRight=collisionPosLeft+data.collisionWidth-outerWidth-offsetLeft,myOffset=data.my[0]==="left"?-data.elemWidth:data.my[0]==="right"?data.elemWidth:0,atOffset=data.at[0]==="left"?data.targetWidth:data.at[0]==="right"?-data.targetWidth:0,offset=-2*data.offset[0],newOverRight,newOverLeft;if(overLeft<0){newOverRight=position.left+myOffset+atOffset+offset+data.collisionWidth-outerWidth-withinOffset;if(newOverRight<0||newOverRight<abs(overLeft))position.left+=myOffset+atOffset+offset}else if(overRight>0){newOverLeft=position.left-data.collisionPosition.marginLeft+myOffset+atOffset+offset-offsetLeft;if(newOverLeft>0||abs(newOverLeft)<overRight)position.left+=myOffset+atOffset+offset}},top:function(position,data){var within=data.within,withinOffset=within.offset.top+within.scrollTop,outerHeight=within.height,offsetTop=within.isWindow?within.scrollTop:within.offset.top,collisionPosTop=position.top-data.collisionPosition.marginTop,overTop=collisionPosTop-offsetTop,overBottom=collisionPosTop+data.collisionHeight-outerHeight-offsetTop,top=data.my[1]==="top",myOffset=top?-data.elemHeight:data.my[1]==="bottom"?data.elemHeight:0,atOffset=data.at[1]==="top"?data.targetHeight:data.at[1]==="bottom"?-data.targetHeight:0,offset=-2*data.offset[1],newOverTop,newOverBottom;if(overTop<0){newOverBottom=position.top+myOffset+atOffset+offset+data.collisionHeight-outerHeight-withinOffset;if((position.top+myOffset+atOffset+offset)>overTop&&(newOverBottom<0||newOverBottom<abs(overTop)))position.top+=myOffset+atOffset+offset}else if(overBottom>0){newOverTop=position.top-data.collisionPosition.marginTop+myOffset+atOffset+offset-offsetTop;if((position.top+myOffset+atOffset+offset)>overBottom&&(newOverTop>0||abs(newOverTop)<overBottom))position.top+=myOffset+atOffset+offset}}},flipfit:{left:function(){$.ui.position.flip.left.apply(this,arguments);$.ui.position.fit.left.apply(this,arguments)},top:function(){$.ui.position.flip.top.apply(this,arguments);$.ui.position.fit.top.apply(this,arguments)}}};(function(){var testElement,testElementParent,testElementStyle,offsetLeft,i,body=document.getElementsByTagName("body")[0],div=document.createElement("div");testElement=document.createElement(body?"div":"body");testElementStyle={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};if(body)$.extend(testElementStyle,{position:"absolute",left:"-1000px",top:"-1000px"});for(i in testElementStyle)testElement.style[i]=testElementStyle[i];testElement.appendChild(div);testElementParent=body||document.documentElement;testElementParent.insertBefore(testElement,testElementParent.firstChild);div.style.cssText="position: absolute; left: 10.7432222px;";offsetLeft=$(div).offset().left;$.support.offsetFractions=offsetLeft>10&&offsetLeft<11;testElement.innerHTML="";testElementParent.removeChild(testElement)})()}(jQuery));(function($,undefined){$.widget("ui.draggable",$.ui.mouse,{version:"1.10.4",widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,curs
70or:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false,drag:null,start:null,stop:null},_create:function(){if(this.options.helper==="original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position="relative";if(this.options.addClasses)this.element.addClass("ui-draggable");if(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(event){var o=this.options;if(this.helper||o.disabled||$(event.target).closest(".ui-resizable-handle").length>0)return false;this.handle=this._getHandle(event);if(!this.handle)return false;$(o.iframeFix===true?"iframe":o.iframeFix).each(function(){$("<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($(this).offset()).appendTo("body")});return true},_mouseStart:function(event){var o=this.options;this.helper=this._createHelper(event);this.helper.addClass("ui-draggable-dragging");this._cacheHelperProportions();if($.ui.ddmanager)$.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=false;$.extend(this.offset,{click:{left:event.pageX-this.offset.left,top:event.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(event);this.originalPageX=event.pageX;this.originalPageY=event.pageY;(o.cursorAt&&this._adjustOffsetFromHelper(o.cursorAt));this._setContainment();if(this._trigger("start",event)===false){this._clear();return false};this._cacheHelperProportions();if($.ui.ddmanager&&!o.dropBehaviour)$.ui.ddmanager.prepareOffsets(this,event);this._mouseDrag(event,true);if($.ui.ddmanager)$.ui.ddmanager.dragStart(this,event);return true},_mouseDrag:function(event,noPropagation){if(this.offsetParentCssPosition==="fixed")this.offset.parent=this._getParentOffset();this.position=this._generatePosition(event);this.positionAbs=this._convertPositionTo("absolute");if(!noPropagation){var ui=this._uiHash();if(this._trigger("drag",event,ui)===false){this._mouseUp({});return false};this.position=ui.position};if(!this.options.axis||this.options.axis!=="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!=="x")this.helper[0].style.top=this.position.top+"px";if($.ui.ddmanager)$.ui.ddmanager.drag(this,event);return false},_mouseStop:function(event){var that=this,dropped=false;if($.ui.ddmanager&&!this.options.dropBehaviour)dropped=$.ui.ddmanager.drop(this,event);if(this.dropped){dropped=this.dropped;this.dropped=false};if(this.options.helper==="original"&&!$.contains(this.element[0].ownerDocument,this.element[0]))return false;if((this.options.revert==="invalid"&&!dropped)||(this.options.revert==="valid"&&dropped)||this.options.revert===true||($.isFunction(this.options.revert)&&this.options.revert.call(this.element,dropped))){$(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){if(that._trigger("stop",event)!==false)that._clear()})}else if(this._trigger("stop",event)!==false)this._clear();return false},_mouseUp:function(event){$("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)});if($.ui.ddmanager)$.ui.ddmanager.dragStop(this,event);return $.ui.mouse.prototype._mouseUp.call(this,event)},cancel:function(){if(this.helper.is(".ui-draggable-dragging")){this._mouseUp({})}else this._clear();return this},_getHandle:function(event){return this.options.handle?!!$(event.target).closest(this.element.find(this.options.handle)).length:true},_createHelper:function(event){var o=this.options,helper=$.isFunction(o.helper)?$(o.helper.apply(this.element[0],[event])):(o.helper==="clone"?this.element.clone().removeAttr("id"):this.element);if(!helper.parents("body").length)helper.appendTo((o.appendTo==="parent"?this.element[0].parentNode:o.appendTo));if(helper[0]!==this.element[0]&&!/(fixed|absolute)/.test(helper.css("position")))helper.css("position","absolute");return helper}
70,_adjustOffsetFromHelper:function(obj){if(typeof obj==="string")obj=obj.split(" ");if($.isArray(obj))obj={left:+obj[0],top:+obj[1]||0};if("left"in obj)this.offset.click.left=obj.left+this.margins.left;if("right"in obj)this.offset.click.left=this.helperProportions.width-obj.right+this.margins.left;if("top"in obj)this.offset.click.top=obj.top+this.margins.top;if("bottom"in obj)this.offset.click.top=this.helperProportions.height-obj.bottom+this.margins.top},_getParentOffset:function(){var po=this.offsetParent.offset();if(this.cssPosition==="absolute"&&this.scrollParent[0]!==document&&$.contains(this.scrollParent[0],this.offsetParent[0])){po.left+=this.scrollParent.scrollLeft();po.top+=this.scrollParent.scrollTop()};if((this.offsetParent[0]===document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()==="html"&&$.ui.ie))po={top:0,left:0};return{top:po.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:po.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==="relative"){var p=this.element.position();return{top:p.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:p.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else 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 over,c,ce,o=this.options;if(!o.containment){this.containment=null;return};if(o.containment==="window"){this.containment=[$(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,$(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,$(window).scrollLeft()+$(window).width()-this.helperProportions.width-this.margins.left,$(window).scrollTop()+($(window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return};if(o.containment==="document"){this.containment=[0,0,$(document).width()-this.helperProportions.width-this.margins.left,($(document).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return};if(o.containment.constructor===Array){this.containment=o.containment;return};if(o.containment==="parent")o.containment=this.helper[0].parentNode;c=$(o.containment);ce=c[0];if(!ce)return;over=c.css("overflow")!=="hidden";this.containment=[(parseInt(c.css("borderLeftWidth"),10)||0)+(parseInt(c.css("paddingLeft"),10)||0),(parseInt(c.css("borderTopWidth"),10)||0)+(parseInt(c.css("paddingTop"),10)||0),(over?Math.max(ce.scrollWidth,ce.offsetWidth):ce.offsetWidth)-(parseInt(c.css("borderRightWidth"),10)||0)-(parseInt(c.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(over?Math.max(ce.scrollHeight,ce.offsetHeight):ce.offsetHeight)-(parseInt(c.css("borderBottomWidth"),10)||0)-(parseInt(c.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relative_container=c},_convertPositionTo:function(d,pos){if(!pos)pos=this.position;var mod=d==="absolute"?1:-1,scroll=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==document&&$.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent;if(!this.offset.scroll)this.offset.scroll={top:scroll.scrollTop(),left:scroll.scrollLeft()};return{top:(pos.top+this.offset.relative.top*mod+this.offset.parent.top*mod-((this.cssPosition==="fixed"?-this.scrollParent.scrollTop():this.offset.scroll.top)*mod)),left:(pos.left+this.offset.relative.left*mod+this.offset.parent.left*mod-((this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():this.offset.scroll.left)*mod))}},_generatePosition:function(event){var containment,co,top,left,o=this.options,scroll=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==document&&$.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,pageX=event.pageX,pageY=event.pageY;if(!this.offset.scroll)this.offset.scroll={top:scroll.scrollTop(),left:scroll.scrollLeft()};if(this.originalPosition){if(this.containment){if(this.relative_container){co=this.relative_container.offset();containment=[this.containment[0]+co.left,this.containment[1]+co.top,this.containment[2]+co.left,this.containment[3]+co.top]}else containment=this.containment;if(event.pageX-this.offset.click.left<containment[0])pageX=containment[0]+this.offset.click.left;if(event.pageY-this.offset.click.top<containment[1])pageY=containment[1]+this.offset.click.top;if(event.pageX-this.offset.click.left>containment[2])pageX=containment[2]+this.offset.click.left;if(event.pageY-this.offset.click.top>containment[3])pageY=containment[3]+this.offset.click.top};if(o.grid){top=o.grid[1]?this.originalPageY+Math.round((pageY-this.originalPageY)/o.grid[1])*o.grid[1]:this.originalPageY;pageY=containment?((top-this.offset.click.top>=containment[1]||top-this.offset.click.top>containment[3])?top:((top-this.offset.click.top>=containment[1])?top-o.grid[1]:top+o.grid[1])):top;left=o.grid[0]?this.originalPageX+Math.round((pageX-this.originalPageX)
70/o.grid[0])*o.grid[0]:this.originalPageX;pageX=containment?((left-this.offset.click.left>=containment[0]||left-this.offset.click.left>containment[2])?left:((left-this.offset.click.left>=containment[0])?left-o.grid[0]:left+o.grid[0])):left}};return{top:(pageY-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():this.offset.scroll.top)),left:(pageX-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():this.offset.scroll.left))}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");if(this.helper[0]!==this.element[0]&&!this.cancelHelperRemoval)this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(type,event,ui){ui=ui||this._uiHash();$.ui.plugin.call(this,type,[event,ui]);if(type==="drag")this.positionAbs=this._convertPositionTo("absolute");return $.Widget.prototype._trigger.call(this,type,event,ui)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});$.ui.plugin.add("draggable","connectToSortable",{start:function(event,ui){var inst=$(this).data("ui-draggable"),o=inst.options,uiSortable=$.extend({},ui,{item:inst.element});inst.sortables=[];$(o.connectToSortable).each(function(){var sortable=$.data(this,"ui-sortable");if(sortable&&!sortable.options.disabled){inst.sortables.push({instance:sortable,shouldRevert:sortable.options.revert});sortable.refreshPositions();sortable._trigger("activate",event,uiSortable)}})},stop:function(event,ui){var inst=$(this).data("ui-draggable"),uiSortable=$.extend({},ui,{item:inst.element});$.each(inst.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;inst.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert)this.instance.options.revert=this.shouldRevert;this.instance._mouseStop(event);this.instance.options.helper=this.instance.options._helper;if(inst.options.helper==="original")this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",event,uiSortable)}})},drag:function(event,ui){var inst=$(this).data("ui-draggable"),that=this;$.each(inst.sortables,function(){var innermostIntersecting=false,thisSortable=this;this.instance.positionAbs=inst.positionAbs;this.instance.helperProportions=inst.helperProportions;this.instance.offset.click=inst.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){innermostIntersecting=true;$.each(inst.sortables,function(){this.instance.positionAbs=inst.positionAbs;this.instance.helperProportions=inst.helperProportions;this.instance.offset.click=inst.offset.click;if(this!==thisSortable&&this.instance._intersectsWith(this.instance.containerCache)&&$.contains(thisSortable.instance.element[0],this.instance.element[0]))innermostIntersecting=false;return innermostIntersecting})};if(innermostIntersecting){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=$(that).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return ui.helper[0]};event.target=this.instance.currentItem[0];this.instance._mouseCapture(event,true);this.instance._mouseStart(event,true,true);this.instance.offset.click.top=inst.offset.click.top;this.instance.offset.click.left=inst.offset.click.left;this.instance.offset.parent.left-=inst.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=inst.offset.parent.top-this.instance.offset.parent.top;inst._trigger("toSortable",event);inst.dropped=this.instance.element;inst.currentItem=inst.element;this.instance.fromOutside=inst};if(this.instance.currentItem)this.instance._mouseDrag(event)}else if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",event,this.instance._uiHash(this.instance));this.instance._mouseStop(event,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder)this.instance.placeholder.remove();inst._trigger("fromSortable",event);inst.dropped=false}})}});$.ui.plugin.add("draggable","cursor",{start:function(){var t=$("body"),o=$(this).data("ui-draggable").options;if(t.css("cursor"))o._cursor=t.css("cursor");t.css("cursor",o.cursor)},stop:function(){var o=$(this).data("ui-draggable").options;if(o._cursor)$("body").css("cursor",o._cursor)}});$.ui.plugin.add("draggable","opacity",{start:function(event,ui){var t=$(ui.helper),o=$(this).data("ui-draggable").options;if(t.css("opacity"))o._opacity=t.css("opacity");t.css("opacity",o.opacity)},stop:function(event,ui){var o=$(this).data("ui-draggable").options;if(o._opacity)$(ui.helper).css("opacity",o._opacity)}});$.ui.plugin.add("draggable","scroll",{start:function(){var i=$(this).data("ui-draggable");if(i.scrollParent[0]!==document&&i.scrollParent[0].tagName!=="HTML")i.overflowOffset=i.scrollParent.offset()},drag:function(event){var i=$(this).data("ui-draggable"),o=i.options,scrolled=false;if(i.scrollParent[0]!==document&&i.scrollParent[0].tagName!=="HTML"){if(!o.axis||o.axis!=="x")if((i.overflowOffset.top+i.scrollParent[0].offsetHeight)-event.pageY<o.scrollSensitivity){i.scrollParent[0].scrollTop=scrolled=i.scrollParent[0].scrollTop+o.scrollSpeed}else if(event.pageY-i.overflowOffset.top<o.scrollSensitivity)i.scrollParent[0].scrollTop=scrolled=i.scrollParent[0].scrollTop-o.scrollSpeed;if(!o.axis||o.axis!=="y")if((i.overflowOffset.left+i.scrollParent[0].offsetWidth)-event.pageX<o.scrollSensitivity){i.scrollParent[0].scrollLeft=scrolled=i.scrollParent[0].scrollLeft+o.scrollSpeed}else if(event.pageX-i.overflowOffset.left<o.scrollSensitivity)i.scrollParent[0].scrollLeft=scrolled=i.scrollParent[0].scrollLeft-o.scrollSpeed}else{if(!o.axis||o.axis!=="x")if(event.pageY-$(document).scrollTop()<o.scrollSensitivity){scrolled=$(document).scrollTop($(document).scrollTop()-o.scrollSpeed)}else if($(window).height()-(event.pageY-$(document).scrollTop())<o.scrollSensitivity)scrolled=$(document).scrollTop($(document).scrollTop()+o.scrollSpeed);if(!o.axis||o.axis!=="y")if(event.pageX-$(document).scrollLeft()<o.scrollSensitivity){scrolled=$(document).scrollLeft($(document).scrollLeft()-o.scrollSpeed)}else if($(window).width()-(event.pageX-$(document).scrollLeft())<o.scrollSensitivity)scrolled=$(document).scrollLeft($(document).scrollLeft()+o.scrollSpeed)};if(scrolled!==false&&$.ui.ddmanager&&!o.dropBehaviour)$.ui.ddmanager.prepareOffsets(i,event)}});$.ui.plugin.add("draggable","snap",{start:function(){var i=$(this).data("ui-draggable"),o=i.options;i.snapElements=[];$(o.snap.constructor!==String?(o.snap.items||":data(ui-draggable)"):o.snap).each(function(){var $t=$(this),$o=$t.offset();if(this!==i.element[0])i.snapElements.push({item:this,width:$t.outerWidth(),height:$t.outerHeight(),top:$o.top,left
70:$o.left})})},drag:function(event,ui){var ts,bs,ls,rs,l,r,t,b,i,first,inst=$(this).data("ui-draggable"),o=inst.options,d=o.snapTolerance,x1=ui.offset.left,x2=x1+inst.helperProportions.width,y1=ui.offset.top,y2=y1+inst.helperProportions.height;for(i=inst.snapElements.length-1;i>=0;i--){l=inst.snapElements[i].left;r=l+inst.snapElements[i].width;t=inst.snapElements[i].top;b=t+inst.snapElements[i].height;if(x2<l-d||x1>r+d||y2<t-d||y1>b+d||!$.contains(inst.snapElements[i].item.ownerDocument,inst.snapElements[i].item)){if(inst.snapElements[i].snapping)(inst.options.snap.release&&inst.options.snap.release.call(inst.element,event,$.extend(inst._uiHash(),{snapItem:inst.snapElements[i].item})));inst.snapElements[i].snapping=false;continue};if(o.snapMode!=="inner"){ts=Math.abs(t-y2)<=d;bs=Math.abs(b-y1)<=d;ls=Math.abs(l-x2)<=d;rs=Math.abs(r-x1)<=d;if(ts)ui.position.top=inst._convertPositionTo("relative",{top:t-inst.helperProportions.height,left:0}).top-inst.margins.top;if(bs)ui.position.top=inst._convertPositionTo("relative",{top:b,left:0}).top-inst.margins.top;if(ls)ui.position.left=inst._convertPositionTo("relative",{top:0,left:l-inst.helperProportions.width}).left-inst.margins.left;if(rs)ui.position.left=inst._convertPositionTo("relative",{top:0,left:r}).left-inst.margins.left};first=(ts||bs||ls||rs);if(o.snapMode!=="outer"){ts=Math.abs(t-y1)<=d;bs=Math.abs(b-y2)<=d;ls=Math.abs(l-x1)<=d;rs=Math.abs(r-x2)<=d;if(ts)ui.position.top=inst._convertPositionTo("relative",{top:t,left:0}).top-inst.margins.top;if(bs)ui.position.top=inst._convertPositionTo("relative",{top:b-inst.helperProportions.height,left:0}).top-inst.margins.top;if(ls)ui.position.left=inst._convertPositionTo("relative",{top:0,left:l}).left-inst.margins.left;if(rs)ui.position.left=inst._convertPositionTo("relative",{top:0,left:r-inst.helperProportions.width}).left-inst.margins.left};if(!inst.snapElements[i].snapping&&(ts||bs||ls||rs||first))(inst.options.snap.snap&&inst.options.snap.snap.call(inst.element,event,$.extend(inst._uiHash(),{snapItem:inst.snapElements[i].item})));inst.snapElements[i].snapping=(ts||bs||ls||rs||first)}}});$.ui.plugin.add("draggable","stack",{start:function(){var min,o=this.data("ui-draggable").options,group=$.makeArray($(o.stack)).sort(function(a,b){return(parseInt($(a).css("zIndex"),10)||0)-(parseInt($(b).css("zIndex"),10)||0)});if(!group.length)return;min=parseInt($(group[0]).css("zIndex"),10)||0;$(group).each(function(i){$(this).css("zIndex",min+i)});this.css("zIndex",(min+group.length))}});$.ui.plugin.add("draggable","zIndex",{start:function(event,ui){var t=$(ui.helper),o=$(this).data("ui-draggable").options;if(t.css("zIndex"))o._zIndex=t.css("zIndex");t.css("zIndex",o.zIndex)},stop:function(event,ui){var o=$(this).data("ui-draggable").options;if(o._zIndex)$(ui.helper).css("zIndex",o._zIndex)}})})(jQuery);(function($,undefined){function isOverAxis(x,reference,size){return(x>reference)&&(x<(reference+size))};$.widget("ui.droppable",{version:"1.10.4",widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var proportions,o=this.options,accept=o.accept;this.isover=false;this.isout=true;this.accept=$.isFunction(accept)?accept:function(d){return d.is(accept)};this.proportions=function(){if(arguments.length){proportions=arguments[0]}else return proportions?proportions:proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}};$.ui.ddmanager.droppables[o.scope]=$.ui.ddmanager.droppables[o.scope]||[];$.ui.ddmanager.droppables[o.scope].push(this);(o.addClasses&&this.element.addClass("ui-droppable"))},_destroy:function(){var i=0,drop=$.ui.ddmanager.droppables[this.options.scope];for(;i<drop.length;i++)if(drop[i]===this)drop.splice(i,1);this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(key,value){if(key==="accept")this.accept=$.isFunction(value)?value:function(d){return d.is(value)};$.Widget.prototype._setOption.apply(this,arguments)},_activate:function(event){var draggable=$.ui.ddmanager.current;if(this.options.activeClass)this.element.addClass(this.options.activeClass);if(draggable)this._trigger("activate",event,this.ui(draggable))},_deactivate:function(event){var draggable=$.ui.ddmanager.current;if(this.options.activeClass)this.element.removeClass(this.options.activeClass);if(draggable)this._trigger("deactivate",event,this.ui(draggable))},_over:function(event){var draggable=$.ui.ddmanager.current;if(!draggable||(draggable.currentItem||draggable.element)[0]===this.element[0])return;if(this.accept.call(this.element[0],(draggable.currentItem||draggable.element))){if
70(this.options.hoverClass)this.element.addClass(this.options.hoverClass);this._trigger("over",event,this.ui(draggable))}},_out:function(event){var draggable=$.ui.ddmanager.current;if(!draggable||(draggable.currentItem||draggable.element)[0]===this.element[0])return;if(this.accept.call(this.element[0],(draggable.currentItem||draggable.element))){if(this.options.hoverClass)this.element.removeClass(this.options.hoverClass);this._trigger("out",event,this.ui(draggable))}},_drop:function(event,custom){var draggable=custom||$.ui.ddmanager.current,childrenIntersection=false;if(!draggable||(draggable.currentItem||draggable.element)[0]===this.element[0])return false;this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var inst=$.data(this,"ui-droppable");if(inst.options.greedy&&!inst.options.disabled&&inst.options.scope===draggable.options.scope&&inst.accept.call(inst.element[0],(draggable.currentItem||draggable.element))&&$.ui.intersect(draggable,$.extend(inst,{offset:inst.element.offset()}),inst.options.tolerance)){childrenIntersection=true;return false}});if(childrenIntersection)return false;if(this.accept.call(this.element[0],(draggable.currentItem||draggable.element))){if(this.options.activeClass)this.element.removeClass(this.options.activeClass);if(this.options.hoverClass)this.element.removeClass(this.options.hoverClass);this._trigger("drop",event,this.ui(draggable));return this.element};return false},ui:function(c){return{draggable:(c.currentItem||c.element),helper:c.helper,position:c.position,offset:c.positionAbs}}});$.ui.intersect=function(draggable,droppable,toleranceMode){if(!droppable.offset)return false;var draggableLeft,draggableTop,x1=(draggable.positionAbs||draggable.position.absolute).left,y1=(draggable.positionAbs||draggable.position.absolute).top,x2=x1+draggable.helperProportions.width,y2=y1+draggable.helperProportions.height,l=droppable.offset.left,t=droppable.offset.top,r=l+droppable.proportions().width,b=t+droppable.proportions().height;switch(toleranceMode){case"fit":return(l<=x1&&x2<=r&&t<=y1&&y2<=b);case"intersect":return(l<x1+(draggable.helperProportions.width/2)&&x2-(draggable.helperProportions.width/2)<r&&t<y1+(draggable.helperProportions.height/2)&&y2-(draggable.helperProportions.height/2)<b);case"pointer":draggableLeft=((draggable.positionAbs||draggable.position.absolute).left+(draggable.clickOffset||draggable.offset.click).left);draggableTop=((draggable.positionAbs||draggable.position.absolute).top+(draggable.clickOffset||draggable.offset.click).top);return isOverAxis(draggableTop,t,droppable.proportions().height)&&isOverAxis(draggableLeft,l,droppable.proportions().width);case"touch":return((y1>=t&&y1<=b)||(y2>=t&&y2<=b)||(y1<t&&y2>b))&&((x1>=l&&x1<=r)||(x2>=l&&x2<=r)||(x1<l&&x2>r));default:return false}};$.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(t,event){var i,j,m=$.ui.ddmanager.droppables[t.options.scope]||[],type=event?event.type:null,list=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();droppablesLoop:for(i=0;i<m.length;i++){if(m[i].options.disabled||(t&&!m[i].accept.call(m[i].element[0],(t.currentItem||t.element))))continue;for(j=0;j<list.length;j++)if(list[j]===m[i].element[0]){m[i].proportions().height=0;continue droppablesLoop};m[i].visible=m[i].element.css("display")!=="none";if(!m[i].visible)continue;if(type==="mousedown")m[i]._activate.call(m[i],event);m[i].offset=m[i].element.offset();m[i].proportions({width:m[i].element[0].offsetWidth,height:m[i].element[0].offsetHeight})}},drop:function(draggable,event){var dropped=false;$.each(($.ui.ddmanager.droppables[draggable.options.scope]||[]).slice(),function(){if(!this.options)return;if(!this.options.disabled&&this.visible&&$.ui.intersect(draggable,this,this.options.tolerance))dropped=this._drop.call(this,event)||dropped;
70if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],(draggable.currentItem||draggable.element))){this.isout=true;this.isover=false;this._deactivate.call(this,event)}});return dropped},dragStart:function(draggable,event){draggable.element.parentsUntil("body").bind("scroll.droppable",function(){if(!draggable.options.refreshPositions)$.ui.ddmanager.prepareOffsets(draggable,event)})},drag:function(draggable,event){if(draggable.options.refreshPositions)$.ui.ddmanager.prepareOffsets(draggable,event);$.each($.ui.ddmanager.droppables[draggable.options.scope]||[],function(){if(this.options.disabled||this.greedyChild||!this.visible)return;var parentInstance,scope,parent,intersects=$.ui.intersect(draggable,this,this.options.tolerance),c=!intersects&&this.isover?"isout":(intersects&&!this.isover?"isover":null);if(!c)return;if(this.options.greedy){scope=this.options.scope;parent=this.element.parents(":data(ui-droppable)").filter(function(){return $.data(this,"ui-droppable").options.scope===scope});if(parent.length){parentInstance=$.data(parent[0],"ui-droppable");parentInstance.greedyChild=(c==="isover")}};if(parentInstance&&c==="isover"){parentInstance.isover=false;parentInstance.isout=true;parentInstance._out.call(parentInstance,event)};this[c]=true;this[c==="isout"?"isover":"isout"]=false;this[c==="isover"?"_over":"_out"].call(this,event);if(parentInstance&&c==="isout"){parentInstance.isout=false;parentInstance.isover=true;parentInstance._over.call(parentInstance,event)}})},dragStop:function(draggable,event){draggable.element.parentsUntil("body").unbind("scroll.droppable");if(!draggable.options.refreshPositions)$.ui.ddmanager.prepareOffsets(draggable,event)}}})(jQuery);(function($,undefined){function num(v){return parseInt(v,10)||0} 71function isNumber(value){return!isNaN(parseInt(value,10))};$.widget("ui.resizable",$.ui.mouse,{version:"1.10.4",widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_create:function(){var n,i,handle,axis,hname,that=this,o=this.options;this.element.addClass("ui-resizable");$.extend(this,{_aspectRatio:!!(o.aspectRatio),aspectRatio:o.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:o.helper||o.ghost||o.animate?o.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){this.element.wrap($("<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=true;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=o.handles||(!$(".ui-resizable-handle",this.element).length?"e,s,se":{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"});if(this.handles.constructor===String){if(this.handles==="all")this.handles="n,e,s,w,se,sw,ne,nw";n=this.handles.split(",");this.handles={};for(i=0;i<n.length;i++){handle=$.trim(n[i]);hname="ui-resizable-"+handle;axis=$("<div class='ui-resizable-handle "+hname+"'></div>");axis.css({zIndex:o.zIndex});if("se"===handle)axis.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[handle]=".ui-resizable-"+handle;this.element.append(axis)}};this._renderAxis=function(target){var i,axis,padPos,padWrapper;target=target||this.element;
71for(i in this.handles){if(this.handles[i].constructor===String)this.handles[i]=$(this.handles[i],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){axis=$(this.handles[i],this.element);padWrapper=/sw|ne|nw|se|n|s/.test(i)?axis.outerHeight():axis.outerWidth();padPos=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join("");target.css(padPos,padWrapper);this._proportionallyResize()};if(!$(this.handles[i]).length)continue}};this._renderAxis(this.element);this._handles=$(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!that.resizing){if(this.className)axis=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);that.axis=axis&&axis[1]?axis[1]:"se"}});if(o.autoHide){this._handles.hide();$(this.element).addClass("ui-resizable-autohide").mouseenter(function(){if(o.disabled)return;$(this).removeClass("ui-resizable-autohide");that._handles.show()}).mouseleave(function(){if(o.disabled)return;if(!that.resizing){$(this).addClass("ui-resizable-autohide");that._handles.hide()}})};this._mouseInit()},_destroy:function(){this._mouseDestroy();var wrapper,_destroy=function(exp){$(exp).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){_destroy(this.element);wrapper=this.element;this.originalElement.css({position:wrapper.css("position"),width:wrapper.outerWidth(),height:wrapper.outerHeight(),top:wrapper.css("top"),left:wrapper.css("left")}).insertAfter(wrapper);wrapper.remove()};this.originalElement.css("resize",this.originalResizeStyle);_destroy(this.originalElement);return this},_mouseCapture:function(event){var i,handle,capture=false;for(i in this.handles){handle=$(this.handles[i])[0];if(handle===event.target||$.contains(handle,event.target))capture=true};return!this.options.disabled&&capture},_mouseStart:function(event){var curleft,curtop,cursor,o=this.options,iniPos=this.element.position(),el=this.element;this.resizing=true;if(/absolute/.test(el.css("position"))){el.css({position:"absolute",top:el.css("top"),left:el.css("left")})}else if(el.is(".ui-draggable"))el.css({position:"absolute",top:iniPos.top,left:iniPos.left});this._renderProxy();curleft=num(this.helper.css("left"));curtop=num(this.helper.css("top"));if(o.containment){curleft+=$(o.containment).scrollLeft()||0;curtop+=$(o.containment).scrollTop()||0};this.offset=this.helper.offset();this.position={left:curleft,top:curtop};this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:el.width(),height:el.height()};this.originalSize=this._helper?{width:el.outerWidth(),height:el.outerHeight()}:{width:el.width(),height:el.height()};this.originalPosition={left:curleft,top:curtop};this.sizeDiff={width:el.outerWidth()-el.width(),height:el.outerHeight()-el.height()};this.originalMousePosition={left:event.pageX,top:event.pageY};this.aspectRatio=(typeof o.aspectRatio==="number")?o.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);cursor=$(".ui-resizable-"+this.axis).css("cursor");$("body").css("cursor",cursor==="auto"?this.axis+"-resize":cursor);el.addClass("ui-resizable-resizing");this._propagate("start",event);return true},_mouseDrag:function(event){var data,el=this.helper,props={},smp=this.originalMousePosition,a=this.axis,prevTop=this.position.top,prevLeft=this.position.left,prevWidth=this.size.width,prevHeight=this.size.height,dx=(event.pageX-smp.left)||0,dy=(event.pageY-smp.top)||0,trigger=this._change[a];if(!trigger)return false;data=trigger.apply(this,[event,dx,dy]);this._updateVirtualBoundaries(event.shiftKey);if(this._aspectRatio||event.shiftKey)data=this._updateRatio(data,event);data=this._respectSize(data,event);this._updateCache(data);this._propagate("resize",event);if(this.position.top!==prevTop)props.top=this.position.top+"px";if(this.position.left!==prevLeft)props.left=this.position.left+"px";if(this.size.width!==prevWidth)props.width=this.size.width+"px";if(this.size.height!==prevHeight)props.height=this.size.height+"px";el.css(props);if(!this._helper&&this._proportionallyResizeElements.length)this._proportionallyResize();if(!$.isEmptyObject(props))this._trigger("resize",event,this.ui());return false},_mouseStop:function(event){this.resizing=false;var pr,ista,soffseth,soffsetw,s,left,top,o=this.options,that=this;if(this._helper){pr=this._proportionallyResizeElements;ista=pr.length&&/textarea/i.test(pr[0].nodeName);soffseth=ista&&$.ui.hasScroll(pr[0],"left")?0:that.sizeDiff.height;soffsetw=ista?0:that.sizeDiff.width;s={width:(that.helper.width()-soffsetw),height:(that.helper.height()-soffseth)};left=(parseInt(that.element.css("left"),10)+(that.position.left-that.originalPosition.left))||null;top=(parseInt(that.element.css("top"),10)+(that.position.top-that.originalPosition.top))||null;if(!o.animate)this.element.css($.extend(s,{top:top,left:left}));that.helper.height(that.size.height);that.helper.width(that.size.width);if(this._helper&&!o.animate)this._proportionallyResize()};$("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",event);if(this._helper)this.helper.remove();return false},_updateVirtualBoundaries:function(forceAspectRatio){var pMinWidth,pMaxWidth,pMinHeight,pMaxHeight,b,o=this.options;b={minWidth:isNumber(o.minWidth)?o.minWidth:0,maxWidth:isNumber(o.maxWidth)?o.maxWidth:Infinity,minHeight:isNumber(o.minHeight)?o.minHeight:0,maxHeight:isNumber(o.maxHeight)?o.maxHeight:Infinity};if(this._aspectRatio||forceAspectRatio){pMinWidth=b.minHeight*this.aspectRatio;pMinHeight=b.minWidth/this.aspectRatio;pMaxWidth=b.maxHeight*this.aspectRatio;pMaxHeight=b.maxWidth/this.aspectRatio;if(pMinWidth>b.minWidth)b.minWidth=pMinWidth;
71if(pMinHeight>b.minHeight)b.minHeight=pMinHeight;if(pMaxWidth<b.maxWidth)b.maxWidth=pMaxWidth;if(pMaxHeight<b.maxHeight)b.maxHeight=pMaxHeight};this._vBoundaries=b},_updateCache:function(data){this.offset=this.helper.offset();if(isNumber(data.left))this.position.left=data.left;if(isNumber(data.top))this.position.top=data.top;if(isNumber(data.height))this.size.height=data.height;if(isNumber(data.width))this.size.width=data.width},_updateRatio:function(data){var cpos=this.position,csize=this.size,a=this.axis;if(isNumber(data.height)){data.width=(data.height*this.aspectRatio)}else if(isNumber(data.width))data.height=(data.width/this.aspectRatio);if(a==="sw"){data.left=cpos.left+(csize.width-data.width);data.top=null};if(a==="nw"){data.top=cpos.top+(csize.height-data.height);data.left=cpos.left+(csize.width-data.width)};return data},_respectSize:function(data){var o=this._vBoundaries,a=this.axis,ismaxw=isNumber(data.width)&&o.maxWidth&&(o.maxWidth<data.width),ismaxh=isNumber(data.height)&&o.maxHeight&&(o.maxHeight<data.height),isminw=isNumber(data.width)&&o.minWidth&&(o.minWidth>data.width),isminh=isNumber(data.height)&&o.minHeight&&(o.minHeight>data.height),dw=this.originalPosition.left+this.originalSize.width,dh=this.position.top+this.size.height,cw=/sw|nw|w/.test(a),ch=/nw|ne|n/.test(a);if(isminw)data.width=o.minWidth;if(isminh)data.height=o.minHeight;if(ismaxw)data.width=o.maxWidth;if(ismaxh)data.height=o.maxHeight;if(isminw&&cw)data.left=dw-o.minWidth;if(ismaxw&&cw)data.left=dw-o.maxWidth;if(isminh&&ch)data.top=dh-o.minHeight;if(ismaxh&&ch)data.top=dh-o.maxHeight;if(!data.width&&!data.height&&!data.left&&data.top){data.top=null}else if(!data.width&&!data.height&&!data.top&&data.left)data.left=null;return data},_proportionallyResize:function(){if(!this._proportionallyResizeElements.length)return;var i,j,borders,paddings,prel,element=this.helper||this.element;for(i=0;i<this._proportionallyResizeElements.length;i++){prel=this._proportionallyResizeElements[i];if(!this.borderDif){this.borderDif=[];borders=[prel.css("borderTopWidth"),prel.css("borderRightWidth"),prel.css("borderBottomWidth"),prel.css("borderLeftWidth")];paddings=[prel.css("paddingTop"),prel.css("paddingRight"),prel.css("paddingBottom"),prel.css("paddingLeft")];for(j=0;j<borders.length;j++)this.borderDif[j]=(parseInt(borders[j],10)||0)+(parseInt(paddings[j],10)||0)};prel.css({height:(element.height()-this.borderDif[0]-this.borderDif[2])||0,width:(element.width()-this.borderDif[1]-this.borderDif[3])||0})}},_renderProxy:function(){var el=this.element,o=this.options;this.elementOffset=el.offset();if(this._helper){this.helper=this.helper||$("<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:++o.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(event,dx){return{width:this.originalSize.width+dx}},w:function(event,dx){var cs=this.originalSize,sp=this.originalPosition;return{left:sp.left+dx,width:cs.width-dx}},n:function(event,dx,dy){var cs=this.originalSize,sp=this.originalPosition;return{top:sp.top+dy,height:cs.height-dy}},s:function(event,dx,dy){return{height:this.originalSize.height+dy}},se:function(event,dx,dy){return $.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[event,dx,dy]))},sw:function(event,dx,dy){return $.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[event,dx,dy]))},ne:function(event,dx,dy){return $.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[event,dx,dy]))},nw:function(event,dx,dy){return $.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[event,dx,dy]))}},_propagate:function(n,event){$.ui.plugin.call(this,n,[event,this.ui()]);(n!=="resize"&&this._trigger(n,event,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}}});$.ui.plugin.add("resizable","animate",{stop:function(event){var that=$(this).data("ui-resizable"),o=that.options,pr=that._proportionallyResizeElements,ista=pr.length&&/textarea/i.test(pr[0].nodeName),soffseth=ista&&$.ui.hasScroll(pr[0],"left")?0:that.sizeDiff.height,soffsetw=ista?0:that.sizeDiff.width,style={width:(that.size.width-soffsetw),height:(that.size.height-soffseth)},left=(parseInt(that.element.css("left"),10)+(that.position.left-that.originalPosition.left))||null,top=(parseInt(that.element.css("top"),10)+(that.position.top-that.originalPosition.top))||null;that.element.animate($.extend(style,top&&left?{top:top,left:left}:{}),{duration:o.animateDuration,easing:o.animateEasing,step:function(){var data={width:parseInt(that.element.css("width"),10),height:parseInt(that.element.css("height"),10),top:parseInt(that.element.css("top"),10),left:parseInt(that.element.css("left"),10)};if(pr&&pr.length)$(pr[0]).css({width:data.width,height:data.height});that._updateCache(data);that._propagate("resize",event)}})}});$.ui.plugin.add("resizable","containment",{start:function(){var element,p,co,ch,cw,width,height,that=$(this).data("ui-resizable"),o=that.options,el=that.element,oc=o.containment,ce=(oc instanceof $)?oc.get(0):(/parent/.test(oc))?el.parent().get(0):oc;
71if(!ce)return;that.containerElement=$(ce);if(/document/.test(oc)||oc===document){that.containerOffset={left:0,top:0};that.containerPosition={left:0,top:0};that.parentData={element:$(document),left:0,top:0,width:$(document).width(),height:$(document).height()||document.body.parentNode.scrollHeight}}else{element=$(ce);p=[];$(["Top","Right","Left","Bottom"]).each(function(i,name){p[i]=num(element.css("padding"+name))});that.containerOffset=element.offset();that.containerPosition=element.position();that.containerSize={height:(element.innerHeight()-p[3]),width:(element.innerWidth()-p[1])};co=that.containerOffset;ch=that.containerSize.height;cw=that.containerSize.width;width=($.ui.hasScroll(ce,"left")?ce.scrollWidth:cw);height=($.ui.hasScroll(ce)?ce.scrollHeight:ch);that.parentData={element:ce,left:co.left,top:co.top,width:width,height:height}}},resize:function(event){var woset,hoset,isParent,isOffsetRelative,that=$(this).data("ui-resizable"),o=that.options,co=that.containerOffset,cp=that.position,pRatio=that._aspectRatio||event.shiftKey,cop={top:0,left:0},ce=that.containerElement;if(ce[0]!==document&&/static/.test(ce.css("position")))cop=co;if(cp.left<(that._helper?co.left:0)){that.size.width=that.size.width+(that._helper?(that.position.left-co.left):(that.position.left-cop.left));if(pRatio)that.size.height=that.size.width/that.aspectRatio;that.position.left=o.helper?co.left:0};if(cp.top<(that._helper?co.top:0)){that.size.height=that.size.height+(that._helper?(that.position.top-co.top):that.position.top);if(pRatio)that.size.width=that.size.height*that.aspectRatio;that.position.top=that._helper?co.top:0};that.offset.left=that.parentData.left+that.position.left;that.offset.top=that.parentData.top+that.position.top;woset=Math.abs((that._helper?that.offset.left-cop.left:(that.offset.left-cop.left))+that.sizeDiff.width);hoset=Math.abs((that._helper?that.offset.top-cop.top:(that.offset.top-co.top))+that.sizeDiff.height);isParent=that.containerElement.get(0)===that.element.parent().get(0);isOffsetRelative=/relative|absolute/.test(that.containerElement.css("position"));if(isParent&&isOffsetRelative)woset-=Math.abs(that.parentData.left);if(woset+that.size.width>=that.parentData.width){that.size.width=that.parentData.width-woset;if(pRatio)that.size.height=that.size.width/that.aspectRatio};if(hoset+that.size.height>=that.parentData.height){that.size.height=that.parentData.height-hoset;if(pRatio)that.size.width=that.size.height*that.aspectRatio}},stop:function(){var that=$(this).data("ui-resizable"),o=that.options,co=that.containerOffset,cop=that.containerPosition,ce=that.containerElement,helper=$(that.helper),ho=helper.offset(),w=helper.outerWidth()-that.sizeDiff.width,h=helper.outerHeight()-that.sizeDiff.height;if(that._helper&&!o.animate&&/relative/.test(ce.css("position")))$(this).css({left:ho.left-cop.left-co.left,width:w,height:h});if(that._helper&&!o.animate&&/static/.test(ce.css("position")))$(this).css({left:ho.left-cop.left-co.left,width:w,height:h})}});$.ui.plugin.add("resizable","alsoResize",{start:function(){var that=$(this).data("ui-resizable"),o=that.options,_store=function(exp){$(exp).each(function(){var el=$(this);el.data("ui-resizable-alsoresize",{width:parseInt(el.width(),10),height:parseInt(el.height(),10),left:parseInt(el.css("left"),10),top:parseInt(el.css("top"),10)})})};if(typeof(o.alsoResize)==="object"&&!o.alsoResize.parentNode){if(o.alsoResize.length){o.alsoResize=o.alsoResize[0];_store(o.alsoResize)}else $.each(o.alsoResize,function(exp){_store(exp)})}else _store(o.alsoResize)},resize:function(event,ui){var that=$(this).data("ui-resizable"),o=that.options,os=that.originalSize,op=that.originalPosition,delta={height:(that.size.height-os.height)||0,width:(that.size.width-os.width)||0,top:(that.position.top-op.top)||0,left
71:(that.position.left-op.left)||0},_alsoResize=function(exp,c){$(exp).each(function(){var el=$(this),start=$(this).data("ui-resizable-alsoresize"),style={},css=c&&c.length?c:el.parents(ui.originalElement[0]).length?["width","height"]:["width","height","top","left"];$.each(css,function(i,prop){var sum=(start[prop]||0)+(delta[prop]||0);if(sum&&sum>=0)style[prop]=sum||null});el.css(style)})};if(typeof(o.alsoResize)==="object"&&!o.alsoResize.nodeType){$.each(o.alsoResize,function(exp,c){_alsoResize(exp,c)})}else _alsoResize(o.alsoResize)},stop:function(){$(this).removeData("resizable-alsoresize")}});$.ui.plugin.add("resizable","ghost",{start:function(){var that=$(this).data("ui-resizable"),o=that.options,cs=that.size;that.ghost=that.originalElement.clone();that.ghost.css({opacity:0.25,display:"block",position:"relative",height:cs.height,width:cs.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof o.ghost==="string"?o.ghost:"");that.ghost.appendTo(that.helper)},resize:function(){var that=$(this).data("ui-resizable");if(that.ghost)that.ghost.css({position:"relative",height:that.size.height,width:that.size.width})},stop:function(){var that=$(this).data("ui-resizable");if(that.ghost&&that.helper)that.helper.get(0).removeChild(that.ghost.get(0))}});$.ui.plugin.add("resizable","grid",{resize:function(){var that=$(this).data("ui-resizable"),o=that.options,cs=that.size,os=that.originalSize,op=that.originalPosition,a=that.axis,grid=typeof o.grid==="number"?[o.grid,o.grid]:o.grid,gridX=(grid[0]||1),gridY=(grid[1]||1),ox=Math.round((cs.width-os.width)/gridX)*gridX,oy=Math.round((cs.height-os.height)/gridY)*gridY,newWidth=os.width+ox,newHeight=os.height+oy,isMaxWidth=o.maxWidth&&(o.maxWidth<newWidth),isMaxHeight=o.maxHeight&&(o.maxHeight<newHeight),isMinWidth=o.minWidth&&(o.minWidth>newWidth),isMinHeight=o.minHeight&&(o.minHeight>newHeight);o.grid=grid;if(isMinWidth)newWidth=newWidth+gridX;if(isMinHeight)newHeight=newHeight+gridY;if(isMaxWidth)newWidth=newWidth-gridX;if(isMaxHeight)newHeight=newHeight-gridY;if(/^(se|s|e)$/.test(a)){that.size.width=newWidth;that.size.height=newHeight}else if(/^(ne)$/.test(a)){that.size.width=newWidth;that.size.height=newHeight;that.position.top=op.top-oy}else if(/^(sw)$/.test(a)){that.size.width=newWidth;that.size.height=newHeight;that.position.left=op.left-ox}else{if(newHeight-gridY>0){that.size.height=newHeight;that.position.top=op.top-oy}else{that.size.height=gridY;that.position.top=op.top+os.height-gridY};if(newWidth-gridX>0){that.size.width=newWidth;that.position.left=op.left-ox}else{that.size.width=gridX;that.position.left=op.left+os.width-gridX}}}})})(jQuery);(function($,undefined){$.widget("ui.selectable",$.ui.mouse,{version:"1.10.4",options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var selectees,that=this;this.element.addClass("ui-selectable");this.dragged=false;this.refresh=function(){selectees=$(that.options.filter,that.element[0]);selectees.addClass("ui-selectee");selectees.each(function(){var $this=$(this),pos=$this.offset();$.data(this,"selectable-item",{element:this,$element:$this,left:pos.left,top:pos.top,right:pos.left+$this.outerWidth(),bottom:pos.top+$this.outerHeight(),startselected:false,selected:$this.hasClass("ui-selected"),selecting:$this.hasClass("ui-selecting"),unselecting:$this.hasClass("ui-unselecting")})})};this.refresh();this.selectees=selectees.addClass("ui-selectee");this._mouseInit();this.helper=$("<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(event){var that=this,options=this.options;this.opos=[event.pageX,event.pageY];if(this.options.disabled)return;this.selectees=$(options.filter,this.element[0]);this._trigger("start",event);$(options.appendTo).append(this.helper);this.helper.css({left:event.pageX,top:event.pageY,width:0,height:0});if(options.autoRefresh)this.refresh();this.selectees.filter(".ui-selected").each(function(){var selectee=$.data(this,"selectable-item");selectee.startselected=true;if(!event.metaKey&&!event.ctrlKey){selectee.$element.removeClass("ui-selected");selectee.selected=false;selectee.$element.addClass("ui-unselecting");selectee.unselecting=true;that._trigger("unselecting",event,{unselecting:selectee.element})}});$(event.target).parents().addBack().each(function(){var doSelect,selectee=$.data(this,"selectable-item");if(selectee){doSelect=(!event.metaKey&&!event.ctrlKey)||!selectee.$element.hasClass("ui-selected");selectee.$element.removeClass(doSelect?"ui-unselecting":"ui-selected").addClass(doSelect?"ui-selecting":"ui-unselecting");selectee.unselecting=!doSelect;selectee.selecting=doSelect;selectee.selected=doSelect;if(doSelect){that._trigger("selecting",event,{selecting:selectee.element})}else that._trigger("unselecting",event,{unselecting:selectee.element});return false}})},_mouseDrag:function(event){this.dragged=true;if(this.options.disabled)return;var tmp,that=this,options=this.options,x1=this.opos[0],y1=this.opos[1],x2=event.pageX,y2=event.pageY;if(x1>x2){tmp=x2;x2=x1;x1=tmp};if(y1>y2){tmp=y2;y2=y1;y1=tmp};this.helper.css({left:x1,top:y1,width:x2-x1,height:y2-y1});this.selectees.each(function(){var selectee=$.data(this,"selectable-item"),hit=false;if(!selectee||selectee.element===that.element[0])return;if(options.tolerance==="touch"){hit=(!(selectee.left>x2||selectee.right<x1||selectee.top>y2||selectee.bottom<y1))}else if(options.tolerance==="fit")hit=(selectee.left>x1&&selectee.right<x2&&selectee.top>y1&&selectee.bottom<y2);if(hit){if(selectee.selected){selectee.$element.removeClass("ui-selected");selectee.selected=false};if(selectee.unselecting){selectee.$element.removeClass("ui-unselecting");selectee.unselecting=false};if(!selectee.selecting){selectee.$element.addClass("ui-selecting");selectee.selecting=true;that._trigger("selecting",event,{selecting:selectee.element})}}else{if(selectee.selecting)if((event.metaKey||event.ctrlKey)&&selectee.startselected){selectee.$element.removeClass("ui-selecting");selectee.selecting=false;selectee.$element.addClass("ui-selected");selectee.selected=true}else{selectee.$element.removeClass("ui-selecting");selectee.selecting=false;if(selectee.startselected){selectee.$element.addClass("ui-unselecting");selectee.unselecting=true};that._trigger("unselecting",event,{unselecting:selectee.element})};if(selectee.selected)if(!event.metaKey&&!event.ctrlKey&&!selectee.startselected){selectee.$element.removeClass("ui-selected");selectee.selected=false;selectee.$element.addClass("ui-unselecting");selectee.unselecting=true;that._trigger("unselecting",event,{unselecting:selectee.element})}}});return false},_mouseStop:function(event){var that=this;this.dragged=false;$(".ui-unselecting",this.element[0]).each(function(){var selectee=$.data(this,"selectable-item");selectee.$element.removeClass("ui-unselecting");selectee.unselecting=false;selectee.startselected=false;that._trigger("unselected",event,{unselected:selectee.element})});$(".ui-selecting",this.element[0]).each(function(){var selectee=$.data(this,"selectable-item");selectee.$element.removeClass("ui-selecting").addClass("ui-selected");selectee.selecting=false;selectee.selected=true;selectee.startselected=true;that._trigger("selected",event,{selected:selectee.element})});this._trigger("stop",event);this.helper.remove();return false}})})(jQuery);(function($,undefined){function isOverAxis(x,reference,size){return(x>reference)&&(x<(reference+size))} 72function isFloating(item){return/left|right/.test(item.css("float"))||/inline|table-cell/.test(item.css("display"))};$.widget("ui.sortable",$.ui.mouse,{version:"1.10.4",widgetEventPrefix:"sort",ready:false,options:{appendTo:"parent",axis:false,connectWith:false,containment:false,curs
72or:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,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 o=this.options;this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?o.axis==="x"||isFloating(this.items[0].item):false;this.offset=this.element.offset();this._mouseInit();this.ready=true},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled");this._mouseDestroy();for(var i=this.items.length-1;i>=0;i--)this.items[i].item.removeData(this.widgetName+"-item");return this},_setOption:function(key,value){if(key==="disabled"){this.options[key]=value;this.widget().toggleClass("ui-sortable-disabled",!!value)}else $.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(event,overrideHandle){var currentItem=null,validHandle=false,that=this;if(this.reverting)return false;if(this.options.disabled||this.options.type==="static")return false;this._refreshItems(event);$(event.target).parents().each(function(){if($.data(this,that.widgetName+"-item")===that){currentItem=$(this);return false}});if($.data(event.target,that.widgetName+"-item")===that)currentItem=$(event.target);if(!currentItem)return false;if(this.options.handle&&!overrideHandle){$(this.options.handle,currentItem).find("*").addBack().each(function(){if(this===event.target)validHandle=true});if(!validHandle)return false};this.currentItem=currentItem;this._removeCurrentsFromItems();return true},_mouseStart:function(event,overrideHandle,noActivation){var i,body,o=this.options;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(event);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};$.extend(this.offset,{click:{left:event.pageX-this.offset.left,top:event.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(event);this.originalPageX=event.pageX;this.originalPageY=event.pageY;(o.cursorAt&&this._adjustOffsetFromHelper(o.cursorAt));this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};if(this.helper[0]!==this.currentItem[0])this.currentItem.hide();this._createPlaceholder();if(o.containment)this._setContainment();if(o.cursor&&o.cursor!=="auto"){body=this.document.find("body");this.storedCursor=body.css("cursor");body.css("cursor",o.cursor);this.storedStylesheet=$("<style>*{ cursor: "+o.cursor+" !important; }</style>").appendTo(body)};if(o.opacity){if(this.helper.css("opacity"))this._storedOpacity=this.helper.css("opacity");this.helper.css("opacity",o.opacity)};
72if(o.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",o.zIndex)};if(this.scrollParent[0]!==document&&this.scrollParent[0].tagName!=="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",event,this._uiHash());if(!this._preserveHelperProportions)this._cacheHelperProportions();if(!noActivation)for(i=this.containers.length-1;i>=0;i--)this.containers[i]._trigger("activate",event,this._uiHash(this));if($.ui.ddmanager)$.ui.ddmanager.current=this;if($.ui.ddmanager&&!o.dropBehaviour)$.ui.ddmanager.prepareOffsets(this,event);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(event);return true},_mouseDrag:function(event){var i,item,itemElement,intersection,o=this.options,scrolled=false;this.position=this._generatePosition(event);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){if(this.scrollParent[0]!==document&&this.scrollParent[0].tagName!=="HTML"){if((this.overflowOffset.top+this.scrollParent[0].offsetHeight)-event.pageY<o.scrollSensitivity){this.scrollParent[0].scrollTop=scrolled=this.scrollParent[0].scrollTop+o.scrollSpeed}else if(event.pageY-this.overflowOffset.top<o.scrollSensitivity)this.scrollParent[0].scrollTop=scrolled=this.scrollParent[0].scrollTop-o.scrollSpeed;if((this.overflowOffset.left+this.scrollParent[0].offsetWidth)-event.pageX<o.scrollSensitivity){this.scrollParent[0].scrollLeft=scrolled=this.scrollParent[0].scrollLeft+o.scrollSpeed}else if(event.pageX-this.overflowOffset.left<o.scrollSensitivity)this.scrollParent[0].scrollLeft=scrolled=this.scrollParent[0].scrollLeft-o.scrollSpeed}else{if(event.pageY-$(document).scrollTop()<o.scrollSensitivity){scrolled=$(document).scrollTop($(document).scrollTop()-o.scrollSpeed)}else if($(window).height()-(event.pageY-$(document).scrollTop())<o.scrollSensitivity)scrolled=$(document).scrollTop($(document).scrollTop()+o.scrollSpeed);if(event.pageX-$(document).scrollLeft()<o.scrollSensitivity){scrolled=$(document).scrollLeft($(document).scrollLeft()-o.scrollSpeed)}else if($(window).width()-(event.pageX-$(document).scrollLeft())<o.scrollSensitivity)scrolled=$(document).scrollLeft($(document).scrollLeft()+o.scrollSpeed)};if(scrolled!==false&&$.ui.ddmanager&&!o.dropBehaviour)$.ui.ddmanager.prepareOffsets(this,event)};this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!=="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!=="x")this.helper[0].style.top=this.position.top+"px";for(i=this.items.length-1;i>=0;i--){item=this.items[i];itemElement=item.item[0];intersection=this._intersectsWithPointer(item);if(!intersection)continue;if(item.instance!==this.currentContainer)continue;if(itemElement!==this.currentItem[0]&&this.placeholder[intersection===1?"next":"prev"]()[0]!==itemElement&&!$.contains(this.placeholder[0],itemElement)&&(this.options.type==="semi-dynamic"?!$.contains(this.element[0],itemElement):true)){this.direction=intersection===1?"down":"up";if(this.options.tolerance==="pointer"||this._intersectsWithSides(item)){this._rearrange(event,item)}else break;this._trigger("change",event,this._uiHash());break}};this._contactContainers(event);if($.ui.ddmanager)$.ui.ddmanager.drag(this,event);this._trigger("sort",event,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(event,noPropagation){if(!event)return;if($.ui.ddmanager&&!this.options.dropBehaviour)$.ui.ddmanager.drop(this,event);if(this.options.revert){var that=this,cur=this.placeholder.offset(),axis=this.options.axis,animation={};if(!axis||axis==="x")animation.left=cur.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft);if(!axis||axis==="y")animation.top=cur.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop);this.reverting=true;$(this.helper).animate(animation,parseInt(this.options.revert,10)||500,function(){that._clear(event)})}else this._clear(event,noPropagation);return false},cancel:function(){if(this.dragging){this._mouseUp({target:null});if(this.options.helper==="original"){this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(var i=this.containers.length-1;i>=0;i--){this.containers[i]._trigger("deactivate",null,this._uiHash(this));if(this.containers[i].containerCache.over){this.containers[i]._trigger("out",null,this._uiHash(this));this.containers[i].containerCache.over=0}}};if(this.placeholder){if(this.placeholder[0].parentNode)this.placeholder[0].parentNode.removeChild(this.placeholder[0]);if(this.options.helper!=="original"&&this.helper&&this.helper[0].parentNode)this.helper.remove();$.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});if(this.domPosition.prev){$(this.domPosition.prev).after(this.currentItem)}else $(this.domPosition.parent).prepend(this.currentItem)};return this},serialize:function(o){var items=this._getItemsAsjQuery(o&&o.connected),str=[];o=o||{};$(items).each(function(){var res=($(o.item||this).attr(o.attribute||"id")||"").match(o.expression||/(.+)[\-=_](.+)/);if(res)str.push((o.key||res[1]+"[]")+"="+(o.key&&o.expression?res[1]:res[2]))});if(!str.length&&o.key)str.push(o.key+"=");return str.join("&")},toArray:function(o){var items=this._getItemsAsjQuery(o&&o.connected),ret=[];o=o||{};items.each(function(){ret.push($(o.item||this).attr(o.attribute||"id")||"")});return ret},_intersectsWith:function(item){var x1=this.positionAbs.left,x2=x1+this.helperProportions.width,y1=this.positionAbs.top,y2=y1+this.helperProportions.height,l=item.left,r=l+item.width,t=item.to
72p,b=t+item.height,dyClick=this.offset.click.top,dxClick=this.offset.click.left,isOverElementHeight=(this.options.axis==="x")||((y1+dyClick)>t&&(y1+dyClick)<b),isOverElementWidth=(this.options.axis==="y")||((x1+dxClick)>l&&(x1+dxClick)<r),isOverElement=isOverElementHeight&&isOverElementWidth;if(this.options.tolerance==="pointer"||this.options.forcePointerForContainers||(this.options.tolerance!=="pointer"&&this.helperProportions[this.floating?"width":"height"]>item[this.floating?"width":"height"])){return isOverElement}else return(l<x1+(this.helperProportions.width/2)&&x2-(this.helperProportions.width/2)<r&&t<y1+(this.helperProportions.height/2)&&y2-(this.helperProportions.height/2)<b)},_intersectsWithPointer:function(item){var isOverElementHeight=(this.options.axis==="x")||isOverAxis(this.positionAbs.top+this.offset.click.top,item.top,item.height),isOverElementWidth=(this.options.axis==="y")||isOverAxis(this.positionAbs.left+this.offset.click.left,item.left,item.width),isOverElement=isOverElementHeight&&isOverElementWidth,verticalDirection=this._getDragVerticalDirection(),horizontalDirection=this._getDragHorizontalDirection();if(!isOverElement)return false;return this.floating?(((horizontalDirection&&horizontalDirection==="right")||verticalDirection==="down")?2:1):(verticalDirection&&(verticalDirection==="down"?2:1))},_intersectsWithSides:function(item){var isOverBottomHalf=isOverAxis(this.positionAbs.top+this.offset.click.top,item.top+(item.height/2),item.height),isOverRightHalf=isOverAxis(this.positionAbs.left+this.offset.click.left,item.left+(item.width/2),item.width),verticalDirection=this._getDragVerticalDirection(),horizontalDirection=this._getDragHorizontalDirection();if(this.floating&&horizontalDirection){return((horizontalDirection==="right"&&isOverRightHalf)||(horizontalDirection==="left"&&!isOverRightHalf))}else return verticalDirection&&((verticalDirection==="down"&&isOverBottomHalf)||(verticalDirection==="up"&&!isOverBottomHalf))},_getDragVerticalDirection:function(){var delta=this.positionAbs.top-this.lastPositionAbs.top;return delta!==0&&(delta>0?"down":"up")},_getDragHorizontalDirection:function(){var delta=this.positionAbs.left-this.lastPositionAbs.left;return delta!==0&&(delta>0?"right":"left")},refresh:function(event){this._refreshItems(event);this.refreshPositions();return this},_connectWith:function(){var options=this.options;return options.connectWith.constructor===String?[options.connectWith]:options.connectWith},_getItemsAsjQuery:function(connected){var i,j,cur,inst,items=[],queries=[],connectWith=this._connectWith();if(connectWith&&connected)for(i=connectWith.length-1;i>=0;i--){cur=$(connectWith[i]);for(j=cur.length-1;j>=0;j--){inst=$.data(cur[j],this.widgetFullName);if(inst&&inst!==this&&!inst.options.disabled)queries.push([$.isFunction(inst.options.items)?inst.options.items.call(inst.element):$(inst.options.items,inst.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),inst])}};queries.push([$.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):$(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]) 73function addItems(){items.push(this)};for(i=queries.length-1;i>=0;i--)queries[i][0].each(addItems);return $(items)},_removeCurrentsFromItems:function(){var list=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=$.grep(this.items,function(item){for(var j=0;j<list.length;j++)if(list[j]===item.item[0])return false;return true})},_refreshItems:function(event){this.items=[];this.containers=[this];var i,j,cur,inst,targetData,_queries,item,queriesLength,items=this.items,queries=[[$.isFunction(this.options.items)?this.options.items.call(this.element[0],event,{item:this.currentItem}):$(this.options.items,this.element),this]],connectWith=this._connectWith();if(connectWith&&this.ready)for(i=connectWith.length-1;i>=0;i--){cur=$(connectWith[i]);for(j=cur.length-1;j>=0;j--){inst=$.data(cur[j],this.widgetFullName);if(inst&&inst!==this&&!inst.options.disabled){queries.push([$.isFunction(inst.options.items)?inst.options.items.call(inst.element[0],event,{item:this.currentItem}):$(inst.options.items,inst.element),inst]);this.containers.push(inst)}}};for(i=queries.length-1;i>=0;i--){targetData=queries[i][1];_queries=queries[i][0];for(j=0,queriesLength=_queries.length;j<queriesLength;j++){item=$(_queries[j]);item.data(this.widgetName+"-item",targetData);items.push({item:item,instance:targetData,width:0,height:0,left:0,top:0})}}},refreshPositions:function(fast){if(this.offsetParent&&this.helper)this.offset.parent=this._getParentOffset();var i,item,t,p;for(i=this.items.length-1;i>=0;i--){item=this.items[i];if(item.instance!==this.currentContainer&&this.currentContainer&&item.item[0]!==this.currentItem[0])continue;t=this.options.toleranceElement?$(this.options.toleranceElement,item.item):item.item;if(!fast){item.width=t.outerWidth();item.height=t.outerHeight()};p=t.offset();item.left=p.left;item.top=p.top};
73if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else for(i=this.containers.length-1;i>=0;i--){p=this.containers[i].element.offset();this.containers[i].containerCache.left=p.left;this.containers[i].containerCache.top=p.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(that){that=that||this;var className,o=that.options;if(!o.placeholder||o.placeholder.constructor===String){className=o.placeholder;o.placeholder={element:function(){var nodeName=that.currentItem[0].nodeName.toLowerCase(),element=$("<"+nodeName+">",that.document[0]).addClass(className||that.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");if(nodeName==="tr"){that.currentItem.children().each(function(){$("<td> </td>",that.document[0]).attr("colspan",$(this).attr("colspan")||1).appendTo(element)})}else if(nodeName==="img")element.attr("src",that.currentItem.attr("src"));if(!className)element.css("visibility","hidden");return element},update:function(container,p){if(className&&!o.forcePlaceholderSize)return;
73if(!p.height())p.height(that.currentItem.innerHeight()-parseInt(that.currentItem.css("paddingTop")||0,10)-parseInt(that.currentItem.css("paddingBottom")||0,10));if(!p.width())p.width(that.currentItem.innerWidth()-parseInt(that.currentItem.css("paddingLeft")||0,10)-parseInt(that.currentItem.css("paddingRight")||0,10))}}};that.placeholder=$(o.placeholder.element.call(that.element,that.currentItem));that.currentItem.after(that.placeholder);o.placeholder.update(that,that.placeholder)},_contactContainers:function(event){var i,j,dist,itemWithLeastDistance,posProperty,sizeProperty,base,cur,nearBottom,floating,innermostContainer=null,innermostIndex=null;for(i=this.containers.length-1;i>=0;i--){if($.contains(this.currentItem[0],this.containers[i].element[0]))continue;if(this._intersectsWith(this.containers[i].containerCache)){if(innermostContainer&&$.contains(this.containers[i].element[0],innermostContainer.element[0]))continue;innermostContainer=this.containers[i];innermostIndex=i}else if(this.containers[i].containerCache.over){this.containers[i]._trigger("out",event,this._uiHash(this));this.containers[i].containerCache.over=0}};if(!innermostContainer)return;if(this.containers.length===1){if(!this.containers[innermostIndex].containerCache.over){this.containers[innermostIndex]._trigger("over",event,this._uiHash(this));this.containers[innermostIndex].containerCache.over=1}}else{dist=1e4;itemWithLeastDistance=null;floating=innermostContainer.floating||isFloating(this.currentItem);posProperty=floating?"left":"top";sizeProperty=floating?"width":"height";base=this.positionAbs[posProperty]+this.offset.click[posProperty];for(j=this.items.length-1;j>=0;j--){if(!$.contains(this.containers[innermostIndex].element[0],this.items[j].item[0]))continue;if(this.items[j].item[0]===this.currentItem[0])continue;if(floating&&!isOverAxis(this.positionAbs.top+this.offset.click.top,this.items[j].top,this.items[j].height))continue;cur=this.items[j].item.offset()[posProperty];nearBottom=false;if(Math.abs(cur-base)>
73Math.abs(cur+this.items[j][sizeProperty]-base)){nearBottom=true;cur+=this.items[j][sizeProperty]};if(Math.abs(cur-base)<dist){dist=Math.abs(cur-base);itemWithLeastDistance=this.items[j];this.direction=nearBottom?"up":"down"}};if(!itemWithLeastDistance&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[innermostIndex])return;itemWithLeastDistance?this._rearrange(event,itemWithLeastDistance,null,true):this._rearrange(event,null,this.containers[innermostIndex].element,true);this._trigger("change",event,this._uiHash());this.containers[innermostIndex]._trigger("change",event,this._uiHash(this));this.currentContainer=this.containers[innermostIndex];this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[innermostIndex]._trigger("over",event,this._uiHash(this));this.containers[innermostIndex].containerCache.over=1}},_createHelper:function(event){var o=this.options,helper=$.isFunction(o.helper)?$(o.helper.apply(this.element[0],[event,this.currentItem])):(o.helper==="clone"?this.currentItem.clone():this.currentItem);if(!helper.parents("body").length)$(o.appendTo!=="parent"?o.appendTo:this.currentItem[0].parentNode)[0].appendChild(helper[0]);if(helper[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")};if(!helper[0].style.width||o.forceHelperSize)helper.width(this.currentItem.width());if(!helper[0].style.height||o.forceHelperSize)helper.height(this.currentItem.height());return helper},_adjustOffsetFromHelper:function(obj){if(typeof obj==="string")obj=obj.split(" ");if($.isArray(obj))obj={left:+obj[0],top:+obj[1]||0};if("left"in obj)this.offset.click.left=obj.left+this.margins.left;if("right"in obj)this.offset.click.left=this.helperProportions.width-obj.right+this.margins.left;if("top"in obj)this.offset.click.top=obj.top+this.margins.top;if("bottom"in obj)this.offset.click.top=this.helperProportions.height-obj.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var po=this.offsetParent.offset();if(this.cssPosition==="absolute"&&this.scrollParent[0]!==document&&$.contains(this.scrollParent[0],this.offsetParent[0])){po.left+=this.scrollParent.scrollLeft();po.top+=this.scrollParent.scrollTop()};if(this.offsetParent[0]===document.body||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()==="html"&&$.ui.ie))po={top:0,left:0};return{top:po.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:po.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==="relative"){var p=this.currentItem.position();return{top:p.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:p.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else 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 ce,co,over,o=this.options;if(o.containment==="parent")o.containment=this.helper[0].parentNode;if(o.containment==="document"||o.containment==="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,$(o.containment==="document"?document:window).width()-this.helperProportions.width-this.margins.left,($(o.containment==="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(o.containment)){ce=$(o.containment)[0];co=$(o.containment).offset();over=($(ce).css("overflow")!=="hidden");this.containment=[co.left+(parseInt($(ce).css("borderLeftWidth"),10)||0)+(parseInt($(ce).css("paddingLeft"),10)||0)-this.margins.left,co.top+(parseInt($(ce).css("borderTopWidth"),
7310)||0)+(parseInt($(ce).css("paddingTop"),10)||0)-this.margins.top,co.left+(over?Math.max(ce.scrollWidth,ce.offsetWidth):ce.offsetWidth)-(parseInt($(ce).css("borderLeftWidth"),10)||0)-(parseInt($(ce).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,co.top+(over?Math.max(ce.scrollHeight,ce.offsetHeight):ce.offsetHeight)-(parseInt($(ce).css("borderTopWidth"),10)||0)-(parseInt($(ce).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(d,pos){if(!pos)pos=this.position;var mod=d==="absolute"?1:-1,scroll=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==document&&$.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,scrollIsRootNode=/(html|body)/i.test(scroll[0].tagName);return{top:(pos.top+this.offset.relative.top*mod+this.offset.parent.top*mod-((this.cssPosition==="fixed"?-this.scrollParent.scrollTop():(scrollIsRootNode?0:scroll.scrollTop()))*mod)),left:(pos.left+this.offset.relative.left*mod+this.offset.parent.left*mod-((this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():scrollIsRootNode?0:scroll.scrollLeft())*mod))}},_generatePosition:function(event){var top,left,o=this.options,pageX=event.pageX,pageY=event.pageY,scroll=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==document&&$.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,scrollIsRootNode=/(html|body)/i.test(scroll[0].tagName);if(this.cssPosition==="relative"&&!(this.scrollParent[0]!==document&&this.scrollParent[0]!==this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();if(this.originalPosition){if(this.containment){if(event.pageX-this.offset.click.left<this.containment[0])pageX=this.containment[0]+this.offset.click.left;if(event.pageY-this.offset.click.top<this.containment[1])pageY=this.containment[1]+this.offset.click.top;if(event.pageX-this.offset.click.left>this.containment[2])pageX=this.containment[2]+this.offset.click.left;if(event.pageY-this.offset.click.top>this.containment[3])pageY=this.containment[3]+this.offset.click.top};if(o.grid){top=this.originalPageY+Math.round((pageY-this.originalPageY)/o.grid[1])*o.grid[1];pageY=this.containment?((top-this.offset.click.top>=this.containment[1]&&top-this.offset.click.top<=this.containment[3])?top:((top-this.offset.click.top>=this.containment[1])?top-o.grid[1]:top+o.grid[1])):top;left=this.originalPageX+Math.round((pageX-this.originalPageX)/o.grid[0])*o.grid[0];pageX=this.containment?((left-this.offset.click.left>=this.containment[0]&&left-this.offset.click.left<=this.containment[2])?left:((left-this.offset.click.left>=this.containment[0])?left-o.grid[0]:left+o.grid[0])):left}};return{top:(pageY-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():(scrollIsRootNode?0:scroll.scrollTop()))),left:(pageX-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():scrollIsRootNode?0:scroll.scrollLeft()))}},_rearrange:function(event,i,a,hardRefresh){a?a[0].appendChild(this.placeholder[0]):i.item[0].parentNode.insertBefore(this.placeholder[0],(this.direction==="down"?i.item[0]:i.item[0].nextSibling));this.counter=this.counter?++this.counter:1;var counter=this.counter;this._delay(function(){if(counter===this.counter)this.refreshPositions(!hardRefresh)})},_clear:function(event,noPropagation){this.reverting=false;var i,delayedTriggers=[];if(!this._noFinalSort&&this.currentItem.parent().length)this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)if(this._storedCSS[i]==="auto"||this._storedCSS[i]==="static")this._storedCSS[i]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();if(this.fromOutside&&!noPropagation)delayedTriggers.push(function(event){this._trigger("receive",event,this._uiHash(this.fromOutside))});if((this.fromOutside||this.domPosition.prev!==this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!==this.currentItem.parent()[0])&&!noPropagation)delayedTriggers.push(function(event){this._trigger("update",event,this._uiHash())});if(this!==this.currentContainer)if(!noPropagation){delayedTriggers.push(function(event){this._trigger("remove",event,this._uiHash())});delayedTriggers.push((function(c){return function(event){c._trigger("receive",event,this._uiHash(this))}}).call(this,this.currentContainer));delayedTriggers.push((function(c){return function(event){c._trigger("update",event,this._uiHash(this))}}).call(this,this.currentContainer))} 74function delayEvent(type,instance,container){return function(event){container._trigger(type,event,instance._uiHash(instance))}};for(i=this.containers.length-1;i>=0;i--){if(!noPropagation)delayedTriggers.push(delayEvent("deactivate",this,this.containers[i])
74);if(this.containers[i].containerCache.over){delayedTriggers.push(delayEvent("out",this,this.containers[i]));this.containers[i].containerCache.over=0}};if(this.storedCursor){this.document.find("body").css("cursor",this.storedCursor);this.storedStylesheet.remove()};if(this._storedOpacity)this.helper.css("opacity",this._storedOpacity);if(this._storedZIndex)this.helper.css("zIndex",this._storedZIndex==="auto"?"":this._storedZIndex);this.dragging=false;if(this.cancelHelperRemoval){if(!noPropagation){this._trigger("beforeStop",event,this._uiHash());for(i=0;i<delayedTriggers.length;i++)delayedTriggers[i].call(this,event);this._trigger("stop",event,this._uiHash())};this.fromOutside=false;return false};if(!noPropagation)this._trigger("beforeStop",event,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);if(this.helper[0]!==this.currentItem[0])this.helper.remove();this.helper=null;if(!noPropagation){for(i=0;i<delayedTriggers.length;i++)delayedTriggers[i].call(this,event);this._trigger("stop",event,this._uiHash())};this.fromOutside=false;return true},_trigger:function(){if($.Widget.prototype._trigger.apply(this,arguments)===false)this.cancel()},_uiHash:function(_inst){var inst=_inst||this;return{helper:inst.helper,placeholder:inst.placeholder||$([]),position:inst.position,originalPosition:inst.originalPosition,offset:inst.positionAbs,item:inst.currentItem,sender:_inst?_inst.element:null}}})})(jQuery);(function($,undefined){var uid=0,hideProps={},showProps={};hideProps.height=hideProps.paddingTop=hideProps.paddingBottom=hideProps.borderTopWidth=hideProps.borderBottomWidth="hide";showProps.height=showProps.paddingTop=showProps.paddingBottom=showProps.borderTopWidth=showProps.borderBottomWidth="show";$.widget("ui.accordion",{version:"1.10.4",options:{active:0,animate:{},collapsible:false,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 options=this.options;this.prevShow=this.prevHide=$();this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist");if(!options.collapsible&&(options.active===false||options.active==null))options.active=0;this._processPanels();if(options.active<0)options.active+=this.headers.length;this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:!this.active.length?$():this.active.next(),content:!this.active.length?$():this.active.next()}},_createIcons:function(){var icons=this.options.icons;if(icons){$("<span>").addClass("ui-accordion-header-icon ui-icon "+icons.header).prependTo(this.headers);this.active.children(".ui-accordion-header-icon").removeClass(icons.header).addClass(icons.activeHeader);this.headers.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var contents;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-expanded").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").each(function(){if(/^ui-accordion/.test(this.id))this.removeAttribute("id")});this._destroyIcons();contents=this.headers.next().css("display","").removeAttr("role").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(){if(/^ui-accordion/.test(this.id))this.removeAttribute("id")});if(this.options.heightStyle!=="content")contents.css("height","")},_setOption:function(key,value){if(key==="active"){this._activate(value);return};if(key==="event"){if(this.options.event)this._off(this.headers,this.options.event);this._setupEvents(value)};this._super(key,value);if(key==="collapsible"&&!value&&this.options.active===false)this._activate(0);if(key==="icons"){this._destroyIcons();if(value)this._createIcons()};if(key==="disabled")this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!value)},_keydown:function(event){if(event.altKey||event.ctrlKey)return;var keyCode=$.ui.keyCode,length=this.headers.length,currentIndex=this.headers.index(event.target),toFocus=false;switch(event.keyCode){case keyCode.RIGHT:case keyCode.DOWN:toFocus=this.headers[(currentIndex+1)%length];break;case keyCode.LEFT:case keyCode.UP:toFocus=this.headers[(currentIndex-1+length)%length];break;case keyCode.SPACE:case keyCode.ENTER:this._eventHandler(event);break;case keyCode.HOME:toFocus=this.headers[0];break;case keyCode.END:toFocus=this.headers[length-1];break};if(toFocus){$(event.target).attr("tabIndex",-1);$(toFocus).attr("tabIndex",0);toFocus.focus();event.preventDefault()}},_panelKeyDown:function(event){if(event.keyCode===$.ui.keyCode.UP&&event.ctrlKey)$(event.currentTarget).prev().focus()},refresh:function(){var options=this.options;this._processPanels();if((options.active===false&&options.collapsible===true)||!this.headers.length){options.active=false;this.active=$()}else if(options.active===false){this._activate(0)}else if(this.active.length&&!$.contains(this.element[0],this.active[0])
74){if(this.headers.length===this.headers.find(".ui-state-disabled").length){options.active=false;this.active=$()}else this._activate(Math.max(0,options.active-1))}else options.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 maxHeight,options=this.options,heightStyle=options.heightStyle,parent=this.element.parent(),accordionId=this.accordionId="ui-accordion-"+(this.element.attr("id")||++uid);this.active=this._findActive(options.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(i){var header=$(this),headerId=header.attr("id"),panel=header.next(),panelId=panel.attr("id");if(!headerId){headerId=accordionId+"-header-"+i;header.attr("id",headerId)};if(!panelId){panelId=accordionId+"-panel-"+i;panel.attr("id",panelId)};header.attr("aria-controls",panelId);panel.attr("aria-labelledby",headerId)}).next().attr("role","tabpanel");this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide();if(!this.active.length){this.headers.eq(0).attr("tabIndex",0)}else this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"});this._createIcons();this._setupEvents(options.event);if(heightStyle==="fill"){maxHeight=parent.height();this.element.siblings(":visible").each(function(){var elem=$(this),position=elem.css("position");if(position==="absolute"||position==="fixed")return;maxHeight-=elem.outerHeight(true)});this.headers.each(function(){maxHeight-=$(this).outerHeight(true)});this.headers.next().each(function(){$(this).height(Math.max(0,maxHeight-$(this).innerHeight()+$(this).height()))}).css("overflow","auto")}else if(heightStyle==="auto"){maxHeight=0;this.headers.next().each(function(){maxHeight=Math.max(maxHeight,$(this).css("height","").height())}).height(maxHeight)}},_activate:function(index){var active=this._findActive(index)[0];if(active===this.active[0])return;active=active||this.active[0];this._eventHandler({target:active,currentTarget:active,preventDefault:$.noop})},_findActive:function(selector){return typeof selector==="number"?this.headers.eq(selector):$()},_setupEvents:function(event){var events={keydown:"_keydown"};if(event)$.each(event.split(" "),function(index,eventName){events[eventName]="_eventHandler"});this._off(this.headers.add(this.headers.next()));this._on(this.headers,events);this._on(this.headers.next(),{keydown:"_panelKeyDown"});this._hoverable(this.headers);this._focusable(this.headers)},_eventHandler:function(event){var options=this.options,active=this.active,clicked=$(event.currentTarget),clickedIsActive=clicked[0]===active[0],collapsing=clickedIsActive&&options.collapsible,toShow=collapsing?$():clicked.next(),toHide=active.next(),eventData={oldHeader:active,oldPanel:toHide,newHeader:collapsing?$():clicked,newPanel:toShow};event.preventDefault();if((clickedIsActive&&!options.collapsible)||(this._trigger("beforeActivate",event,eventData)===false))return;options.active=collapsing?false:this.headers.index(clicked);this.active=clickedIsActive?$():clicked;this._toggle(eventData);active.removeClass("ui-accordion-header-active ui-state-active");if(options.icons)active.children(".ui-accordion-header-icon").removeClass(options.icons.activeHeader).addClass(options.icons.header);if(!clickedIsActive){clicked.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top");if(options.icons)clicked.children(".ui-accordion-header-icon").removeClass(options.icons.header).addClass(options.icons.activeHeader);clicked.next().addClass("ui-accordion-content-active")}},_toggle:function(data){var toShow=data.newPanel,toHide=this.prevShow.length?this.prevShow:data.oldPanel;this.prevShow.add(this.prevHide).stop(true,true);this.prevShow=toShow;this.prevHide=toHide;if(this.options.animate){this._animate(toShow,toHide,data)}else{toHide.hide();toShow.show();this._toggleComplete(data)};toHide.attr({"aria-hidden":"true"});toHide.prev().attr("aria-selected","false");if(toShow.length&&toHide.length){toHide.prev().attr({tabIndex:-1,"aria-expanded":"false"})}else if(toShow.length)this.headers.filter(function(){return $(this).attr("tabIndex")===0}).attr("tabIndex",-1);toShow.attr("aria-hidden","false").prev().attr({"aria-selected":"true",tabIndex:0,"aria-expanded":"true"})},_animate:function(toShow,toHide,data){var total,easing,duration,that=this,adjust=0,down=toShow.length&&(!toHide.length||(toShow.index()<toHide.index())),animate=this.options.animate||{},options=down&&animate.down||animate,complete=function(){that._toggleComplete(data)};if(typeof options==="number")duration=options;if(typeof options==="string")easing=options;easing=easing||options.easing||animate.easing;duration=duration||options.duration||animate.duration;if(!toHide.length)return toShow.animate(showProps,duration,easing,complete);if(!toShow.length)return toHide.animate(hideProps,duration,easing,complete);total=toShow.show().outerHeight();toHide.animate(hideProps,{duration:duration,easing:easing,step:function(now,fx){fx.now=Math.round(now)}});toShow.hide().animate(showProps,{duration:duration,easing:easing,complete:complete,step:function(now,fx){fx.now=Math.round(now);if(fx.prop!=="height"){adjust+=fx.now}else if(that.options.heightStyle!=="content"){fx.now=Math.round(total-toHide.outerHeight()-adjust);adjust=0}}})},_toggleComplete:function(data){var toHide=data.oldPanel;toHide.removeClass("ui-accordion-content-active").prev().removeClass("ui-corner-top").addClass("ui-corner-all");if(toHide.length)toHide.parent()[0].className=toHide.parent()[0].className;this._trigger("activate",null,data)}})})(jQuery);(function($,undefined){$.widget("ui.autocomplete",{version:"1.10.4",defaultElement:"<input>",options:{appendTo:null,autoFocus:false,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},requestIndex:0,pending:0,_create:function(){var suppressKeyPress,suppressKeyPressRepeat,
74suppressInput,nodeName=this.element[0].nodeName.toLowerCase(),isTextarea=nodeName==="textarea",isInput=nodeName==="input";this.isMultiLine=isTextarea?true:isInput?false:this.element.prop("isContentEditable");this.valueMethod=this.element[isTextarea||isInput?"val":"text"];this.isNewMenu=true;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off");this._on(this.element,{keydown:function(event){if(this.element.prop("readOnly")){suppressKeyPress=true;suppressInput=true;suppressKeyPressRepeat=true;return};suppressKeyPress=false;suppressInput=false;suppressKeyPressRepeat=false;var keyCode=$.ui.keyCode;switch(event.keyCode){case keyCode.PAGE_UP:suppressKeyPress=true;this._move("previousPage",event);break;case keyCode.PAGE_DOWN:suppressKeyPress=true;this._move("nextPage",event);break;case keyCode.UP:suppressKeyPress=true;this._keyEvent("previous",event);break;case keyCode.DOWN:suppressKeyPress=true;this._keyEvent("next",event);break;case keyCode.ENTER:case keyCode.NUMPAD_ENTER:if(this.menu.active){suppressKeyPress=true;event.preventDefault();this.menu.select(event)};break;case keyCode.TAB:if(this.menu.active)this.menu.select(event);break;case keyCode.ESCAPE:if(this.menu.element.is(":visible")){this._value(this.term);this.close(event);event.preventDefault()};break;default:suppressKeyPressRepeat=true;this._searchTimeout(event);break}},keypress:function(event){if(suppressKeyPress){suppressKeyPress=false;if(!this.isMultiLine||this.menu.element.is(":visible"))event.preventDefault();return};if(suppressKeyPressRepeat)return;var keyCode=$.ui.keyCode;switch(event.keyCode){case keyCode.PAGE_UP:this._move("previousPage",event);break;case keyCode.PAGE_DOWN:this._move("nextPage",event);break;case keyCode.UP:this._keyEvent("previous",event);break;case keyCode.DOWN:this._keyEvent("next",event);break}},input:function(event){if(suppressInput){suppressInput=false;event.preventDefault();return};this._searchTimeout(event)},focus:function(){this.selectedItem=null;this.previous=this._value()},blur:function(event){if(this.cancelBlur){delete this.cancelBlur;return};clearTimeout(this.searching);this.close(event);this._change(event)}});this._initSource();this.menu=$("<ul>").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().data("ui-menu");this._on(this.menu.element,{mousedown:function(event){event.preventDefault();this.cancelBlur=true;this._delay(function(){delete this.cancelBlur});var menuElement=this.menu.element[0];if(!$(event.target).closest(".ui-menu-item").length)this._delay(function(){var that=this;this.document.one("mousedown",function(event){if(event.target!==that.element[0]&&event.target!==menuElement&&!$.contains(menuElement,event.target))that.close()})})},menufocus:function(event,ui){if(this.isNewMenu){this.isNewMenu=false;if(event.originalEvent&&/^mouse/.test(event.originalEvent.type)){this.menu.blur();this.document.one("mousemove",function(){$(event.target).trigger(event.originalEvent)});return}};var item=ui.item.data("ui-autocomplete-item");if(false!==this._trigger("focus",event,{item:item})){if(event.originalEvent&&/^key/.test(event.originalEvent.type))this._value(item.value)}else this.liveRegion.text(item.value)},menuselect:function(event,ui){var item=ui.item.data("ui-autocomplete-item"),previous=this.previous;if(this.element[0]!==this.document[0].activeElement){this.element.focus();this.previous=previous;this._delay(function(){this.previous=previous;this.selectedItem=item})};if(false!==this._trigger("select",event,{item:item}))this._value(item.value);this.term=this._value();this.close(event);this.selectedItem=item}});this.liveRegion=$("<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(key,value){this._super(key,value);if(key==="source")this._initSource();if(key==="appendTo")this.menu.element.appendTo(this._appendTo());if(key==="disabled"&&value&&this.xhr)this.xhr.abort()},_appendTo:function(){var element=this.options.appendTo;if(element)element=element.jquery||element.nodeType?$(element):this.document.find(element).eq(0);if(!element)element=this.element.closest(".ui-front");if(!element.length)element=this.document[0].body;return element},_initSource:function(){var array,url,that=this;if($.isArray(this.options.source)){array=this.options.source;this.source=function(request,response){response($.ui.autocomplete.filter(array,request.term))}}else if(typeof this.options.source==="string"){url=this.options.source;this.source=function(request,response){if(that.xhr)that.xhr.abort();that.xhr=$.ajax({url:url,data:request,dataType:"json",success:function(data){response(data)},error:function(){response([])}})}}else this.source=this.options.source},_searchTimeout:function(event){clearTimeout(this.searching);this.searching=this._delay(function(){if(this.term!==this._value(
74)){this.selectedItem=null;this.search(null,event)}},this.options.delay)},search:function(value,event){value=value!=null?value:this._value();this.term=this._value();if(value.length<this.options.minLength)return this.close(event);if(this._trigger("search",event)===false)return;return this._search(value)},_search:function(value){this.pending++;this.element.addClass("ui-autocomplete-loading");this.cancelSearch=false;this.source({term:value},this._response())},_response:function(){var index=++this.requestIndex;return $.proxy(function(content){if(index===this.requestIndex)this.__response(content);this.pending--;if(!this.pending)this.element.removeClass("ui-autocomplete-loading")},this)},__response:function(content){if(content)content=this._normalize(content);this._trigger("response",null,{content:content});if(!this.options.disabled&&content&&content.length&&!this.cancelSearch){this._suggest(content);this._trigger("open")}else this._close()},close:function(event){this.cancelSearch=true;this._close(event)},_close:function(event){if(this.menu.element.is(":visible")){this.menu.element.hide();this.menu.blur();this.isNewMenu=true;this._trigger("close",event)}},_change:function(event){if(this.previous!==this._value())this._trigger("change",event,{item:this.selectedItem})},_normalize:function(items){if(items.length&&items[0].label&&items[0].value)return items;return $.map(items,function(item){if(typeof item==="string")return{label:item,value:item};return $.extend({label:item.label||item.value,value:item.value||item.label},item)})},_suggest:function(items){var ul=this.menu.element.empty();this._renderMenu(ul,items);this.isNewMenu=true;this.menu.refresh();ul.show();this._resizeMenu();ul.position($.extend({of:this.element},this.options.position));if(this.options.autoFocus)this.menu.next()},_resizeMenu:function(){var ul=this.menu.element;ul.outerWidth(Math.max(ul.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(ul,items){var that=this;$.each(items,function(index,item){that._renderItemData(ul,item)})},_renderItemData:function(ul,item){return this._renderItem(ul,item).data("ui-autocomplete-item",item)},_renderItem:function(ul,item){return $("<li>").append($("<a>").text(item.label)).appendTo(ul)},_move:function(direction,event){if(!this.menu.element.is(":visible")){this.search(null,event);return};if(this.menu.isFirstItem()&&/^previous/.test(direction)||this.menu.isLastItem()&&/^next/.test(direction)){this._value(this.term);this.menu.blur();return};this.menu[direction](event)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(keyEvent,event){if(!this.isMultiLine||this.menu.element.is(":visible")){this._move(keyEvent,event);event.preventDefault()}}});$.extend($.ui.autocomplete,{escapeRegex:function(value){return value.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(array,term){var matcher=new RegExp($.ui.autocomplete.escapeRegex(term),"i");return $.grep(array,function(value){return matcher.test(value.label||value.value||value)})}});$.widget("ui.autocomplete",$.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(amount){return amount+(amount>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(content){var message;this._superApply(arguments);if(this.options.disabled||this.cancelSearch)return;if(content&&content.length){message=this.options.messages.results(content.length)}else message=this.options.messages.noResults;this.liveRegion.text(message)}})}(jQuery));(function($,undefined){var lastActive,baseClasses="ui-button ui-widget ui-state-default ui-corner-all",typeClasses="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",formResetHandler=function(){var form=$(this);setTimeout(function(){form.find(":ui-button").button("refresh")},1)},radioGroup=function(radio){var name=radio.name,form=radio.form,radios=$([]);if(name){name=name.replace(/'/g,"\\'");if(form){radios=$(form).find("[name='"+name+"']")}else radios=$("[name='"+name+"']",radio.ownerDocument).filter(function(){return!this.form})};return radios};$.widget("ui.button",{version:"1.10.4",defaultElement:"<button>",options:{disabled:null,text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,formResetHandler);if(typeof this.options.disabled!=="boolean"){this.options.disabled=!!this.element.prop("disabled")}else this.element.prop("disabled",this.options.disabled);this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var that=this,options=this.options,toggleButton=this.type==="checkbox"||this.type==="radio",activeClass=!toggleButton?"ui-state-active":"";if(options.label===null)options.label=(this.type==="input"?this.buttonElement.val():this.buttonElement.html());this._hoverable(this.buttonElement);this.buttonElement.addClass(baseClasses).attr("role","button").bind("mouseenter"+this.eventNamespace,function(){if(options.disabled)return;if(this===lastActive)$(this).addClass("ui-state-active")}).bind("mouseleave"+this.eventNamespace,function(){if(options.disabled)return;$(this).removeClass(activeClass)}).bind("click"+this.eventNamespace,function(event){if(options.disabled){event.preventDefault();event.stopImmediatePropagation()}});
74this._on({focus:function(){this.buttonElement.addClass("ui-state-focus")},blur:function(){this.buttonElement.removeClass("ui-state-focus")}});if(toggleButton)this.element.bind("change"+this.eventNamespace,function(){that.refresh()});if(this.type==="checkbox"){this.buttonElement.bind("click"+this.eventNamespace,function(){if(options.disabled)return false})}else if(this.type==="radio"){this.buttonElement.bind("click"+this.eventNamespace,function(){if(options.disabled)return false;$(this).addClass("ui-state-active");that.buttonElement.attr("aria-pressed","true");var radio=that.element[0];radioGroup(radio).not(radio).map(function(){return $(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")})}else{this.buttonElement.bind("mousedown"+this.eventNamespace,function(){if(options.disabled)return false;$(this).addClass("ui-state-active");lastActive=this;that.document.one("mouseup",function(){lastActive=null})}).bind("mouseup"+this.eventNamespace,function(){if(options.disabled)return false;$(this).removeClass("ui-state-active")}).bind("keydown"+this.eventNamespace,function(event){if(options.disabled)return false;if(event.keyCode===$.ui.keyCode.SPACE||event.keyCode===$.ui.keyCode.ENTER)$(this).addClass("ui-state-active")}).bind("keyup"+this.eventNamespace+" blur"+this.eventNamespace,function(){$(this).removeClass("ui-state-active")});if(this.buttonElement.is("a"))this.buttonElement.keyup(function(event){if(event.keyCode===$.ui.keyCode.SPACE)$(this).click()})};this._setOption("disabled",options.disabled);this._resetButton()},_determineButtonType:function(){var ancestor,labelSelector,checked;if(this.element.is("[type=checkbox]")){this.type="checkbox"}else if(this.element.is("[type=radio]")){this.type="radio"}else if(this.element.is("input")){this.type="input"}else this.type="button";if(this.type==="checkbox"||this.type==="radio"){ancestor=this.element.parents().last();labelSelector="label[for='"+this.element.attr("id")+"']";this.buttonElement=ancestor.find(labelSelector);if(!this.buttonElement.length){ancestor=ancestor.length?ancestor.siblings():this.element.siblings();this.buttonElement=ancestor.filter(labelSelector);if(!this.buttonElement.length)this.buttonElement=ancestor.find(labelSelector)};this.element.addClass("ui-helper-hidden-accessible");checked=this.element.is(":checked");if(checked)this.buttonElement.addClass("ui-state-active");this.buttonElement.prop("aria-pressed",checked)}else this.buttonElement=this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass(baseClasses+" ui-state-active "+typeClasses).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());if(!this.hasTitle)this.buttonElement.removeAttr("title")},_setOption:function(key,value){this._super(key,value);if(key==="disabled"){this.element.prop("disabled",!!value);if(value)this.buttonElement.removeClass("ui-state-focus");return};this._resetButton()},refresh:function(){var isDisabled=this.element.is("input, button")?this.element.is(":disabled"):this.element.hasClass("ui-button-disabled");if(isDisabled!==this.options.disabled)this._setOption("disabled",isDisabled);if(this.type==="radio"){radioGroup(this.element[0]).each(function(){if($(this).is(":checked")){$(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true")}else $(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")})}else if(this.type==="checkbox")if(this.element.is(":checked")){this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true")}else this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false")},_resetButton:function(){if(this.type==="input"){if(this.options.label)this.element.val(this.options.label);return};var buttonElement=this.buttonElement.removeClass(typeClasses),buttonText=$("<span></span>",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(buttonElement.empty()).text(),icons=this.options.icons,multipleIcons=icons.primary&&icons.secondary,buttonClasse
74s=[];if(icons.primary||icons.secondary){if(this.options.text)buttonClasses.push("ui-button-text-icon"+(multipleIcons?"s":(icons.primary?"-primary":"-secondary")));if(icons.primary)buttonElement.prepend("<span class='ui-button-icon-primary ui-icon "+icons.primary+"'></span>");if(icons.secondary)buttonElement.append("<span class='ui-button-icon-secondary ui-icon "+icons.secondary+"'></span>");if(!this.options.text){buttonClasses.push(multipleIcons?"ui-button-icons-only":"ui-button-icon-only");if(!this.hasTitle)buttonElement.attr("title",$.trim(buttonText))}}else buttonClasses.push("ui-button-text-only");buttonElement.addClass(buttonClasses.join(" "))}});$.widget("ui.buttonset",{version:"1.10.4",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(key,value){if(key==="disabled")this.buttons.button("option",key,value);this._super(key,value)},refresh:function(){var rtl=this.element.css("direction")==="rtl";this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return $(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(rtl?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(rtl?"ui-corner-left":"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return $(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}})}(jQuery));(function($,undefined){$.extend($.ui,{datepicker:{version:"1.10.4"}});var PROP_NAME="datepicker",instActive 75function Datepicker(){this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._datepickerShowing=false;this._inDialog=false;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","Friday","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:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,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:true,showButtonPanel:false,autoSize:false,disabled:false};$.extend(this._defaults,this.regional[""]);this.dpDiv=bindHover($("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))};$.extend(Datepicker.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(settings){extendRemove(this._defaults,settings||{});return this},_attachDatepicker:function(target,settings){var nodeName,inline,inst;nodeName=target.nodeName.toLowerCase();inline=(nodeName==="div"||nodeName==="span");if(!target.id){this.uuid+=1;target.id="dp"+this.uuid};inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{});if(nodeName==="input"){this._connectDatepicker(target,inst)}else if(inline)this._inlineDatepicker(target,inst)},_newInst:function(target,inline){var id=target[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:id,input:target,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:inline,dpDiv:(!inline?this.dpDiv:bindHover($("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")))}},_connectDatepicker:function(target,inst){var input=$(target);inst.append=$([]);inst.trigger=$([]);if(input.hasClass(this.markerClassName))return;this._attachments(input,inst);input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp);this._autoSize(inst);$.data(target,PROP_NAME,inst);if(inst.settings.disabled)this._disableDatepicker(target)},_attachments:function(input,inst){var showOn,buttonText,buttonImage,appendText=this._get(inst,"appendText"),isRTL=this._get(inst,"isRTL");if(inst.append)inst.append.remove();if(appendText){inst.append=$("<span class='"+this._appendClass+"'>"+appendText+"</span>");input[isRTL?"before":"after"](inst.append)};input.unbind("focus",this._showDatepicker);
75if(inst.trigger)inst.trigger.remove();showOn=this._get(inst,"showOn");if(showOn==="focus"||showOn==="both")input.focus(this._showDatepicker);if(showOn==="button"||showOn==="both"){buttonText=this._get(inst,"buttonText");buttonImage=this._get(inst,"buttonImage");inst.trigger=$(this._get(inst,"buttonImageOnly")?$("<img/>").addClass(this._triggerClass).attr({src:buttonImage,alt:buttonText,title:buttonText}):$("<button type='button'></button>").addClass(this._triggerClass).html(!buttonImage?buttonText:$("<img/>").attr({src:buttonImage,alt:buttonText,title:buttonText})));input[isRTL?"before":"after"](inst.trigger);inst.trigger.click(function(){if($.datepicker._datepickerShowing&&$.datepicker._lastInput===input[0]){$.datepicker._hideDatepicker()}else if($.datepicker._datepickerShowing&&$.datepicker._lastInput!==input[0]){$.datepicker._hideDatepicker();$.datepicker._showDatepicker(input[0])}else $.datepicker._showDatepicker(input[0]);return false})}},_autoSize:function(inst){if(this._get(inst,"autoSize")&&!inst.inline){var findMax,max,maxI,i,date=new Date(2009,12-1,20),dateFormat=this._get(inst,"dateFormat");if(dateFormat.match(/[DM]/)){findMax=function(names){max=0;maxI=0;for(i=0;i<names.length;i++)if(names[i].length>max){max=names[i].length;maxI=i};return maxI};date.setMonth(findMax(this._get(inst,(dateFormat.match(/MM/)?"monthNames":"monthNamesShort"))));date.setDate(findMax(this._get(inst,(dateFormat.match(/DD/)?"dayNames":"dayNamesShort")))+20-date.getDay())};inst.input.attr("size",this._formatDate(inst,date).length)}},_inlineDatepicker:function(target,inst){var divSpan=$(target);if(divSpan.hasClass(this.markerClassName))return;divSpan.addClass(this.markerClassName).append(inst.dpDiv);$.data(target,PROP_NAME,inst);this._setDate(inst,this._getDefaultDate(inst),true);this._updateDatepicker(inst);this._updateAlternate(inst);if(inst.settings.disabled)this._disableDatepicker(target);inst.dpDiv.css("display","block")},_dialogDatepicker:function(input,date,onSelect,settings,pos){var id,browserWidth,browserHeight,scrollX,scrollY,inst=this._dialogInst;if(!inst){this.uuid+=1;id="dp"+this.uuid;this._dialogInput=$("<input type='text' id='"+id+"' style='position: absolute; top: -100px; width: 0px;'/>");this._dialogInput.keydown(this._doKeyDown);$("body").append(this._dialogInput);inst=this._dialogInst=this._newInst(this._dialogInput,false);inst.settings={};$.data(this._dialogInput[0],PROP_NAME,inst)};extendRemove(inst.settings,settings||{});date=(date&&date.constructor===Date?this._formatDate(inst,date):date);this._dialogInput.val(date);this._pos=(pos?(pos.length?pos:[pos.pageX,pos.pageY]):null);if(!this._pos){browserWidth=document.documentElement.clientWidth;browserHeight=document.documentElement.clientHeight;scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;scrollY=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[(browserWidth/2)-100+scrollX,(browserHeight/2)-150+scrollY]};this._dialogInput.css("left",(this._pos[0]+20)+"px").css("top",this._pos[1]+"px");inst.settings.onSelect=onSelect;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);if($.blockUI)$.blockUI(this.dpDiv);$.data(this._dialogInput[0],PROP_NAME,inst);return this},_destroyDatepicker:function(target){var nodeName,$target=$(target),inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName))return;nodeName=target.nodeName.toLowerCase();$.removeData(target,PROP_NAME);if(nodeName==="input"){inst.append.remove();inst.trigger.remove();$target.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else if(nodeName==="div"||nodeName==="span")$target.removeClass(this.markerClassName).empty()},_enableDatepicker:function(target){var nodeName,inline,$target=$(target),inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName))return;nodeName=target.nodeName.toLowerCase();if(nodeName==="input"){target.disabled=false;inst.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}
75else if(nodeName==="div"||nodeName==="span"){inline=$target.children("."+this._inlineClass);inline.children().removeClass("ui-state-disabled");inline.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",false)};this._disabledInputs=$.map(this._disabledInputs,function(value){return(value===target?null:value)})},_disableDatepicker:function(target){var nodeName,inline,$target=$(target),inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName))return;nodeName=target.nodeName.toLowerCase();if(nodeName==="input"){target.disabled=true;inst.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else if(nodeName==="div"||nodeName==="span"){inline=$target.children("."+this._inlineClass);inline.children().addClass("ui-state-disabled");inline.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",true)};this._disabledInputs=$.map(this._disabledInputs,function(value){return(value===target?null:value)});this._disabledInputs[this._disabledInputs.length]=target},_isDisabledDatepicker:function(target){if(!target)return false;for(var i=0;i<this._disabledInputs.length;i++)if(this._disabledInputs[i]===target)return true;return false},_getInst:function(target){try{return $.data(target,PROP_NAME)}catch(err){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(target,name,value){var settings,date,minDate,maxDate,inst=this._getInst(target);if(arguments.length===2&&typeof name==="string")return(name==="defaults"?$.extend({},$.datepicker._defaults):(inst?(name==="all"?$.extend({},inst.settings):this._get(inst,name)):null));settings=name||{};if(typeof name==="string"){settings={};settings[name]=value};if(inst){if(this._curInst===inst)this._hideDatepicker();date=this._getDateDatepicker(target,true);minDate=this._getMinMaxDate(inst,"min");maxDate=this._getMinMaxDate(inst,"max");extendRemove(inst.settings,settings);if(minDate!==null&&settings.dateFormat!==undefined&&settings.minDate===undefined)inst.settings.minDate=this._formatDate(inst,minDate);if(maxDate!==null&&settings.dateFormat!==undefined&&settings.maxDate===undefined)inst.settings.maxDate=this._formatDate(inst,maxDate);if("disabled"in settings)if(settings.disabled){this._disableDatepicker(target)}else this._enableDatepicker(target);this._attachments($(target),inst);this._autoSize(inst);this._setDate(inst,date);this._updateAlternate(inst);this._updateDatepicker(inst)}},_changeDatepicker:function(target,name,value){this._optionDatepicker(target,name,value)},_refreshDatepicker:function(target){var inst=this._getInst(target);if(inst)this._updateDatepicker(inst)},_setDateDatepicker:function(target,date){var inst=this._getInst(target);if(inst){this._setDate(inst,date);this._updateDatepicker(inst);this._updateAlternate(inst)}},_getDateDatepicker:function(target,noDefault){var inst=this._getInst(target);if(inst&&!inst.inline)this._setDateFromField(inst,noDefault);return(inst?this._getDate(inst):null)},_doKeyDown:function(event){var onSelect,dateStr,sel,inst=$.datepicker._getInst(event.target),handled=true,isRTL=inst.dpDiv.is(".ui-datepicker-rtl");inst._keyEvent=true;if($.datepicker._datepickerShowing){switch(event.keyCode){case 9:$.datepicker._hideDatepicker();handled=false;break;case 13:sel=$("td."+$.datepicker._dayOverClass+":not(."+$.datepicker._currentClass+")",inst.dpDiv);if(sel[0])$.datepicker._selectDay(event.target,inst.selectedMonth,inst.selectedYear,sel[0]);onSelect=$.datepicker._get(inst,"onSelect");if(onSelect){dateStr=$.datepicker._formatDate(inst);onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst])}else $.datepicker._hideDatepicker();return false;case 27:$.datepicker._hideDatepicker();break;case 33:$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,"stepBigMonths"):-$.datepicker._get(inst,"stepMonths")),"M");break;case 34:$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,"stepBigMonths"):+$.datepicker._get(inst,"stepMonths")),"M");break;case 35:if(event.ctrlKey||event.metaKey)$.datepicker._clearDate(event.target);handled=event.ctrlKey||event.metaKey;break;case 36:if(event.ctrlKey||event.metaKey)$.datepicker._gotoToday(event.target);handled=event.ctrlKey||event.metaKey;break;case 37:if(event.ctrlKey||event.metaKey)$.datepicker._adjustDate(event.target,(isRTL?+1:-1),"D");handled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey)$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,"stepBigMonths"):-$.datepicker._get(inst,"stepMonths")),"M");break;case 38:if(event.ctrlKey||event.metaKey)$.datepicker._adjustDate(event.target,-7,"D");handled=event.ctrlKey||event.metaKey;break;case 39:if(event.ctrlKey||event.metaKey)$.datepicker._adjustDate(event.target,(isRTL?-1:+1),"D");handled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey)$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,"stepBigMonths"):+$.datepicker._get(inst,"stepMonths")),"M");break;case 40:if(event.ctrlKey||event.metaKey)$.datepicker._adjustDate(event.target,+7,"D");handled=event.ctrlKey||event.metaKey;break;default:handled=false}}else if(event.keyCode===36&&event.ctrlKey){$.datepicker._showDatepicker(this)}else handled=false;if(handled){event.preventDefault();event.stopPropagation()}},_doKeyPress:function(event){var chars,chr,inst=$.datepicker._getInst(event.target);if($.datepicker._get(inst,"constrainInput")){chars=$.datepicker._possibleChars($.datepicker._get(inst,"dateFormat"));chr=String.fromCharCode(event.charCode==null?event.keyCode:event.charCode);return event.ctrlKey||event.metaKey||(chr<" "||!chars||chars.indexOf(chr)>-1)}},_doKeyUp:function(event){var date,inst=$.datepicker._getInst(event.target);if(inst.input.val()!==inst.lastVal)try{date=$.datepicker.parseDate($.datepicker._get(inst,"dateFormat"),(inst.input?inst.input.val():null),$.datepicker._getFormatConfig(inst));if(date){$.datepicker._setDateFromField(inst);$.datepicker._updateAlternate(inst);$.datepicker._updateDatepicker(inst)}}catch(err){};return true}
75,_showDatepicker:function(input){input=input.target||input;if(input.nodeName.toLowerCase()!=="input")input=$("input",input.parentNode)[0];if($.datepicker._isDisabledDatepicker(input)||$.datepicker._lastInput===input)return;var inst,beforeShow,beforeShowSettings,isFixed,offset,showAnim,duration;inst=$.datepicker._getInst(input);if($.datepicker._curInst&&$.datepicker._curInst!==inst){$.datepicker._curInst.dpDiv.stop(true,true);if(inst&&$.datepicker._datepickerShowing)$.datepicker._hideDatepicker($.datepicker._curInst.input[0])};beforeShow=$.datepicker._get(inst,"beforeShow");beforeShowSettings=beforeShow?beforeShow.apply(input,[input,inst]):{};if(beforeShowSettings===false)return;extendRemove(inst.settings,beforeShowSettings);inst.lastVal=null;$.datepicker._lastInput=input;$.datepicker._setDateFromField(inst);if($.datepicker._inDialog)input.value="";if(!$.datepicker._pos){$.datepicker._pos=$.datepicker._findPos(input);$.datepicker._pos[1]+=input.offsetHeight};isFixed=false;$(input).parents().each(function(){isFixed|=$(this).css("position")==="fixed";return!isFixed});offset={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};$.datepicker._pos=null;inst.dpDiv.empty();inst.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});$.datepicker._updateDatepicker(inst);offset=$.datepicker._checkOffset(inst,offset,isFixed);inst.dpDiv.css({position:($.datepicker._inDialog&&$.blockUI?"static":(isFixed?"fixed":"absolute")),display:"none",left:offset.left+"px",top:offset.top+"px"});if(!inst.inline){showAnim=$.datepicker._get(inst,"showAnim");duration=$.datepicker._get(inst,"duration");inst.dpDiv.zIndex($(input).zIndex()+1);$.datepicker._datepickerShowing=true;if($.effects&&$.effects.effect[showAnim]){inst.dpDiv.show(showAnim,$.datepicker._get(inst,"showOptions"),duration)}else inst.dpDiv[showAnim||"show"](showAnim?duration:null);if($.datepicker._shouldFocusInput(inst))inst.input.focus();$.datepicker._curInst=inst}},_updateDatepicker:function(inst){this.maxRows=4;instActive=inst;inst.dpDiv.empty().append(this._generateHTML(inst));this._attachHandlers(inst);inst.dpDiv.find("."+this._dayOverClass+" a").mouseover();var origyearshtml,numMonths=this._getNumberOfMonths(inst),cols=numMonths[1],width=17;inst.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");if(cols>1)inst.dpDiv.addClass("ui-datepicker-multi-"+cols).css("width",(width*cols)+"em");inst.dpDiv[(numMonths[0]!==1||numMonths[1]!==1?"add":"remove")+"Class"]("ui-datepicker-multi");inst.dpDiv[(this._get(inst,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");if(inst===$.datepicker._curInst&&$.datepicker._datepickerShowing&&$.datepicker._shouldFocusInput(inst))inst.input.focus();if(inst.yearshtml){origyearshtml=inst.yearshtml;setTimeout(function(){if(origyearshtml===inst.yearshtml&&inst.yearshtml)inst.dpDiv.find("select.ui-datepicker-year:first").replaceWith(inst.yearshtml);origyearshtml=inst.yearshtml=null},0)}},_shouldFocusInput:function(inst){return inst.input&&inst.input.is(":visible")&&!inst.input.is(":disabled")&&!inst.input.is(":focus")},_checkOffset:function(inst,offset,isFixed){var dpWidth=inst.dpDiv.outerWidth(),dpHeight=inst.dpDiv.outerHeight(),inputWidth=inst.input?inst.input.outerWidth():0,inputHeight=inst.input?inst.input.outerHeight():0,viewWidth=document.documentElement.clientWidth+(isFixed?0:$(document).scrollLeft()),viewHeight=document.documentElement.clientHeight+(isFixed?0:$(document).scrollTop());offset.left-=(this._get(inst,"isRTL")?(dpWidth-inputWidth):0);offset.left-=(isFixed&&offset.left===inst.input.offset().left)?$(document).scrollLeft():0;offset.top-=(isFixed&&offset.top===(inst.input.offset().top+inputHeight))?$(document).scrollTop():0;offset.left-=Math.min(offset.left,(offset.left+dpWidth>viewWidth&&viewWidth>dpWidth)?Math.abs(offset.left+dpWidth-viewWidth):0);offset.top-=Math.min(offset.top,(offset.top+dpHeight>viewHeight&&viewHeight>dpHeight)?Math.abs(dpHeight+inputHeight):0);return offset},_findPos:function(obj){var position,inst=this._getInst(obj),isRTL=this._get(inst,"isRTL");while(obj&&(obj.type==="hidden"||obj.nodeType!==1||$.expr.filters.hidden(obj)))obj=obj[isRTL?"previousSibling":"nextSibling"];position=$(obj).offset();return[position.left,position.top]},_hideDatepicker:function(input){var showAnim,duration,postProcess,onClose,inst=this._curInst;if(!inst||(input&&inst!==$.data(input,PROP_NAME)))return;if(this._datepickerShowing){showAnim=this._get(inst,"showAnim");duration=this._get(inst,"duration");postProcess=function(){$.datepicker._tidyDialog(inst)};if($.effects&&($.effects.effect[showAnim]||$.effects[showAnim])){inst.dpDiv.hide(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess)}else inst.dpDiv[(showAnim==="slideDown"?"slideUp":(showAnim==="fadeIn"?"fadeOut":"hide"))]((showAnim?duration:null),postProcess);if(!showAnim)postProcess();this._datepickerShowing=false;onClose=this._get(inst,"onClose");if(onClose)onClose.apply((inst.input?inst.input[0]:null),[(inst.input?inst.input.val():""),inst]);this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if($.blockUI){$.unblockUI();$("body").append(this.dpDiv)}};this._inDialog=false}},_tidyDialog:function(inst){inst.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(event){if(!$.datepicker._curInst)return;var $target=$(event.target),inst=$.datepicker._getInst($target[0]);if(($target[0].id!==$.datepicker._mainDivId&&$target.parents("#"+$.datepicker._mainDivId).length===0&&!$target.hasClass($.datepicker.markerClassName)&&!$target.closest("."+$.datepicker._triggerClass).length&&$.datepicker._datepickerShowing&&!($.datepicker._inDialog&&$.blockUI))||($target.hasClass($.datepicker.markerClassName)&&$.datepicker._curInst!==inst))$.datepicker._hideDatepicker()},_adjustDate:function(id,offset,period){var target=$(id),inst=this._getInst(target[0]);if(this._isDisabledDatepicker(target[0]))return;this._adjustInstDate(inst,offset+(period==="M"?this._get(inst,"showCurrentAtPos"):0),period);this._updateDatepicker(inst)},_gotoToday:function(id){var date,target=$(id),inst=this._getInst(target[0]);if(this._get(inst,"gotoCurrent")&&inst.currentDay){inst.selectedDay=inst.currentDay;inst.drawMonth=inst.selectedMonth=inst.currentMonth;inst.drawYear=inst.selectedYear=inst.currentYear}else{date=new Date();inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear()};this._notifyChange(inst);this._adjustDate(target)},_selectMonthYear:function(id,select,period){var target=$(id),inst=this._getInst(target[0]);inst["selected"+(period==="M"?"Month":"Year")]=inst["draw"+(period==="M"?"Month":"Year")]=parseInt(select.options[select.selectedIndex].value,10);this._notifyChange(inst);this._adjustDate(target)},_selectDay:function(id,month,year,td){var inst,target=$(id);if($(td).hasClass(this._unselectableClass)||this._isDisabledDatepicker(target[0]))return;inst=this._getInst(target[0]);inst.selectedDay=inst.currentDay=$("a",td).html();inst.selectedMonth=inst.currentMonth=month;inst.selectedYear=inst.currentYear=year;this._selectDate(id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear))},_clearDate:function(id){var target=$(id);this._selectDate(target,"")},_selectDate:function(id,dateStr){var onSelect,target=$(id),inst=this._getInst(target[0]);dateStr=(dateStr!=null?dateStr:this._formatDate(inst));if(inst.input)inst.input.val(dateStr);this._updateAlternate(inst);onSelect=this._get(inst,"onSelect");if(onSelect){onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst])}else if(inst.input)inst.input.trigger("change");if(inst.inline){this._updateDatepicker(inst)}else{this._hideDatepicker();this._lastInput=inst.input[0];if(typeof(inst.input[0])!=="object")inst.input.focus();this._lastInput=null}},_updateAlternate:function(inst){var altFormat,date,dateStr,altField=this._get(inst,"altField");if(altField){altFormat=this._get(inst,"altFormat")||this._get(inst,"dateFormat");date=this._getDate(inst);dateStr=this.formatDate(altFormat,date,this._getFormatConfig(inst));$(altField).each(function(){$(this).val(dateStr)})}}
75,noWeekends:function(date){var day=date.getDay();return[(day>0&&day<6),""]},iso8601Week:function(date){var time,checkDate=new Date(date.getTime());checkDate.setDate(checkDate.getDate()+4-(checkDate.getDay()||7));time=checkDate.getTime();checkDate.setMonth(0);checkDate.setDate(1);return Math.floor(Math.round((time-checkDate)/864e5)/7)+1},parseDate:function(format,value,settings){if(format==null||value==null)throw"Invalid arguments";value=(typeof value==="object"?value.toString():value+"");if(value==="")return null;var iFormat,dim,extra,iValue=0,shortYearCutoffTemp=(settings?settings.shortYearCutoff:null)||this._defaults.shortYearCutoff,shortYearCutoff=(typeof shortYearCutoffTemp!=="string"?shortYearCutoffTemp:new Date().getFullYear()%100+parseInt(shortYearCutoffTemp,10)),dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort,dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames,monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort,monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames,year=-1,month=-1,day=-1,doy=-1,literal=false,date,lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)===match);if(matches)iFormat++;return matches},getNumber=function(match){var isDoubled=lookAhead(match),size=(match==="@"?14:(match==="!"?20:(match==="y"&&isDoubled?4:(match==="o"?3:2)))),digits=new RegExp("^\\d{1,"+size+"}"),num=value.substring(iValue).match(digits);if(!num)throw"Missing number at position "+iValue;iValue+=num[0].length;return parseInt(num[0],10)},getName=function(match,shortNames,longNames){var index=-1,names=$.map(lookAhead(match)?longNames:shortNames,function(v,k){return[[k,v]]}).sort(function(a,b){return-(a[1].length-b[1].length)});$.each(names,function(i,pair){var name=pair[1];if(value.substr(iValue,name.length).toLowerCase()===name.toLowerCase()){index=pair[0];iValue+=name.length;return false}});if(index!==-1){return index+1}else throw"Unknown name at position "+iValue},checkLiteral=function(){if(value.charAt(iValue)!==format.charAt(iFormat))throw"Unexpected literal at position "+iValue;iValue++};for(iFormat=0;iFormat<format.length;iFormat++)if(literal){if(format.charAt(iFormat)==="'"&&!lookAhead("'")){literal=false}else checkLiteral()}else switch(format.charAt(iFormat)){case"d":day=getNumber("d");break;case"D":getName("D",dayNamesShort,dayNames);break;case"o":doy=getNumber("o");break;case"m":month=getNumber("m");break;case"M":month=getName("M",monthNamesShort,monthNames);break;case"y":year=getNumber("y");break;case"@":date=new Date(getNumber("@"));year=date.getFullYear();month=date.getMonth()+1;day=date.getDate();break;case"!":date=new Date((getNumber("!")-this._ticksTo1970)/1e4);year=date.getFullYear();month=date.getMonth()+1;day=date.getDate();break;case"'":if(lookAhead("'")){checkLiteral()}else literal=true;break;default:checkLiteral()};if(iValue<value.length){extra=value.substr(iValue);if(!/^\s+/.test(extra))throw"Extra/unparsed characters found in date: "+extra};if(year===-1){year=new Date().getFullYear()}else if(year<100)year+=new Date().getFullYear()-new Date().getFullYear()%100+(year<=shortYearCutoff?0:-100);if(doy>-1){month=1;day=doy;do{dim=this._getDaysInMonth(year,month-1);if(day<=dim)break;month++;day-=dim}while(true)};date=this._daylightSavingAdjust(new Date(year,month-1,day));if(date.getFullYear()!==year||date.getMonth()+1!==month||date.getDate()!==day)throw"Invalid date";return date},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:(((1970-1)*365+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*24*60*60*1e7),formatDate:function(format,date,settings){if(!date)return"";var iFormat,dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort,dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames,monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort,monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames,lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)===match);if(matches)iFormat++;return matches},formatNumber=function(match,value,len){var num=""+value;if(lookAhead(match))while(num.length<len)num="0"+num;return num},formatName=function(match,value,shortNames,longNames){return(lookAhead(match)?longNames[value]:shortNames[value])},output="",literal=false;
75if(date)for(iFormat=0;iFormat<format.length;iFormat++)if(literal){if(format.charAt(iFormat)==="'"&&!lookAhead("'")){literal=false}else output+=format.charAt(iFormat)}else switch(format.charAt(iFormat)){case"d":output+=formatNumber("d",date.getDate(),2);break;case"D":output+=formatName("D",date.getDay(),dayNamesShort,dayNames);break;case"o":output+=formatNumber("o",Math.round((new Date(date.getFullYear(),date.getMonth(),date.getDate()).getTime()-new Date(date.getFullYear(),0,0).getTime())/864e5),3);break;case"m":output+=formatNumber("m",date.getMonth()+1,2);break;case"M":output+=formatName("M",date.getMonth(),monthNamesShort,monthNames);break;case"y":output+=(lookAhead("y")?date.getFullYear():(date.getYear()%100<10?"0":"")+date.getYear()%100);break;case"@":output+=date.getTime();break;case"!":output+=date.getTime()*1e4+this._ticksTo1970;break;case"'":if(lookAhead("'")){output+="'"}else literal=true;break;default:output+=format.charAt(iFormat)};return output},_possibleChars:function(format){var iFormat,chars="",literal=false,lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)===match);if(matches)iFormat++;return matches};for(iFormat=0;iFormat<format.length;iFormat++)if(literal){if(format.charAt(iFormat)==="'"&&!lookAhead("'")){literal=false}else chars+=format.charAt(iFormat)}else switch(format.charAt(iFormat)){case"d":case"m":case"y":case"@":chars+="0123456789";break;case"D":case"M":return null;case"'":if(lookAhead("'")){chars+="'"}else literal=true;break;default:chars+=format.charAt(iFormat)};return chars},_get:function(inst,name){return inst.settings[name]!==undefined?inst.settings[name]:this._defaults[name]},_setDateFromField:function(inst,noDefault){if(inst.input.val()===inst.lastVal)return;var dateFormat=this._get(inst,"dateFormat"),dates=inst.lastVal=inst.input?inst.input.val():null,defaultDate=this._getDefaultDate(inst),date=defaultDate,settings=this._getFormatConfig(inst);try{date=this.parseDate(dateFormat,dates,settings)||defaultDate}catch(event){dates=(noDefault?"":dates)};inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();inst.currentDay=(dates?date.getDate():0);inst.currentMonth=(dates?date.getMonth():0);inst.currentYear=(dates?date.getFullYear():0);this._adjustInstDate(inst)},_getDefaultDate:function(inst){return this._restrictMinMax(inst,this._determineDate(inst,this._get(inst,"defaultDate"),new Date()))},_determineDate:function(inst,date,defaultDate){var offsetNumeric=function(offset){var date=new Date();date.setDate(date.getDate()+offset);return date},offsetString=function(offset){try{return $.datepicker.parseDate($.datepicker._get(inst,"dateFormat"),offset,$.datepicker._getFormatConfig(inst))}catch(e){};var date=(offset.toLowerCase().match(/^c/)?$.datepicker._getDate(inst):null)||new Date(),year=date.getFullYear(),month=date.getMonth(),day=date.getDate(),pattern=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,matches=pattern.exec(offset);while(matches){switch(matches[2]||"d"){case"d":case"D":day+=parseInt(matches[1],10);break;case"w":case"W":day+=parseInt(matches[1],10)*7;break;case"m":case"M":month+=parseInt(matches[1],10);day=Math.min(day,$.datepicker._getDaysInMonth(year,month));break;case"y":case"Y":year+=parseInt(matches[1],10);day=Math.min(day,$.datepicker._getDaysInMonth(year,month));break};matches=pattern.exec(offset)};return new Date(year,month,day)},newDate=(date==null||date===""?defaultDate:(typeof date==="string"?offsetString(date):(typeof date==="number"?(isNaN(date)?defaultDate:offsetNumeric(date)):new Date(date.getTime()))));newDate=(newDate&&newDate.toString()==="Invalid Date"?defaultDate:newDate);if(newDate){newDate.setHours(0);newDate.setMinutes(0);newDate.setSeconds(0);newDate.setMilliseconds(0)};return this._daylightSavingAdjust(newDate)},_daylightSavingAdjust:function(date){if(!date)return null;date.setHours(date.getHours()>12?date.getHours()+2:0);return date},_setDate:function(inst,date,noChange){var clear=!date,origMonth=inst.selectedMonth,origYear=inst.selectedYear,newDate=this._restrictMinMax(inst,this._determineDate(inst,date,new Date()));inst.selectedDay=inst.currentDay=newDate.getDate();inst.drawMonth=inst.selectedMonth=inst.currentMonth=newDate.getMonth();inst.drawYear=inst.selectedYear=inst.currentYear=newDate.getFullYear();if((origMonth!==inst.selectedMonth||origYear!==inst.selectedYear)&&!noChange)this._notifyChange(inst);this._adjustInstDate(inst);if(inst.input)inst.input.val(clear?"":this._formatDate(inst))},_getDate:function(inst){var startDate=(!inst.currentYear||(inst.input&&inst.input.val()==="")?null:this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return startDate},_attachHandlers:function(inst){var stepMonths=this._get(inst,"stepMonths"),id="#"+inst.id.replace(/\\\\/g,"\\");
75inst.dpDiv.find("[data-handler]").map(function(){var handler={prev:function(){$.datepicker._adjustDate(id,-stepMonths,"M")},next:function(){$.datepicker._adjustDate(id,+stepMonths,"M")},hide:function(){$.datepicker._hideDatepicker()},today:function(){$.datepicker._gotoToday(id)},selectDay:function(){$.datepicker._selectDay(id,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this);return false},selectMonth:function(){$.datepicker._selectMonthYear(id,this,"M");return false},selectYear:function(){$.datepicker._selectMonthYear(id,this,"Y");return false}};$(this).bind(this.getAttribute("data-event"),handler[this.getAttribute("data-handler")])})},_generateHTML:function(inst){var maxDraw,prevText,prev,nextText,next,currentText,gotoDate,controls,buttonPanel,firstDay,showWeek,dayNames,dayNamesMin,monthNames,monthNamesShort,beforeShowDay,showOtherMonths,selectOtherMonths,defaultDate,html,dow,row,group,col,selectedDate,cornerClass,calender,thead,day,daysInMonth,leadDays,curRows,numRows,printDate,dRow,tbody,daySettings,otherMonth,unselectable,tempDate=new Date(),today=this._daylightSavingAdjust(new Date(tempDate.getFullYear(),tempDate.getMonth(),tempDate.getDate())),isRTL=this._get(inst,"isRTL"),showButtonPanel=this._get(inst,"showButtonPanel"),hideIfNoPrevNext=this._get(inst,"hideIfNoPrevNext"),navigationAsDateFormat=this._get(inst,"navigationAsDateFormat"),numMonths=this._getNumberOfMonths(inst),showCurrentAtPos=this._get(inst,"showCurrentAtPos"),stepMonths=this._get(inst,"stepMonths"),isMultiMonth=(numMonths[0]!==1||numMonths[1]!==1),currentDate=this._daylightSavingAdjust((!inst.currentDay?new Date(9999,9,9):new Date(inst.currentYear,inst.currentMonth,inst.currentDay))),minDate=this._getMinMaxDate(inst,"min"),maxDate=this._getMinMaxDate(inst,"max"),drawMonth=inst.drawMonth-showCurrentAtPos,drawYear=inst.drawYear;if(drawMonth<0){drawMonth+=12;drawYear--};if(maxDate){maxDraw=this._daylightSavingAdjust(new Date(maxDate.getFullYear(),maxDate.getMonth()-(numMonths[0]*numMonths[1])+1,maxDate.getDate()));maxDraw=(minDate&&maxDraw<minDate?minDate:maxDraw);while(this._daylightSavingAdjust(new Date(drawYear,drawMonth,1))>maxDraw){drawMonth--;if(drawMonth<0){drawMonth=11;drawYear--}}};inst.drawMonth=drawMonth;inst.drawYear=drawYear;prevText=this._get(inst,"prevText");prevText=(!navigationAsDateFormat?prevText:this.formatDate(prevText,this._daylightSavingAdjust(new Date(drawYear,drawMonth-stepMonths,1)),this._getFormatConfig(inst)));prev=(this._canAdjustMonth(inst,-1,drawYear,drawMonth)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+prevText+"'><span class='ui-icon ui-icon-circle-triangle-"+(isRTL?"e":"w")+"'>"+prevText+"</span></a>":(hideIfNoPrevNext?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+prevText+"'><span class='ui-icon ui-icon-circle-triangle-"+(isRTL?"e":"w")+"'>"+prevText+"</span></a>"));nextText=this._get(inst,"nextText");nextText=(!navigationAsDateFormat?nextText:this.formatDate(nextText,this._daylightSavingAdjust(new Date(drawYear,drawMonth+stepMonths,1)),this._getFormatConfig(inst)));next=(this._canAdjustMonth(inst,+1,drawYear,drawMonth)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+nextText+"'><span class='ui-icon ui-icon-circle-triangle-"+(isRTL?"w":"e")+"'>"+nextText+"</span></a>":(hideIfNoPrevNext?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+nextText+"'><span class='ui-icon ui-icon-circle-triangle-"+(isRTL?"w":"e")+"'>"+nextText+"</span></a>"));currentText=this._get(inst,"currentText");gotoDate=(this._get(inst,"gotoCurrent")&&inst.currentDay?currentDate:today);currentText=(!navigationAsDateFormat?currentText:this.formatDate(currentText,gotoDate,this._getFormatConfig(inst)));controls=(!inst.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(inst,"closeText")+"</button>":"");buttonPanel=showButtonPanel?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(isRTL?controls:"")+(this._isInRange(inst,gotoDate)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+currentText+"</button>
vendor: 4,125 bytes, line 75
75":"")+(isRTL?"":controls)+"</div>":"";firstDay=parseInt(this._get(inst,"firstDay"),10);firstDay=(isNaN(firstDay)?0:firstDay);showWeek=this._get(inst,"showWeek");dayNames=this._get(inst,"dayNames");dayNamesMin=this._get(inst,"dayNamesMin");monthNames=this._get(inst,"monthNames");monthNamesShort=this._get(inst,"monthNamesShort");beforeShowDay=this._get(inst,"beforeShowDay");showOtherMonths=this._get(inst,"showOtherMonths");selectOtherMonths=this._get(inst,"selectOtherMonths");defaultDate=this._getDefaultDate(inst);html="";dow;for(row=0;row<numMonths[0];row++){group="";this.maxRows=4;for(col=0;col<numMonths[1];col++){selectedDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,inst.selectedDay));cornerClass=" ui-corner-all";calender="";if(isMultiMonth){calender+="<div class='ui-datepicker-group";if(numMonths[1]>1)switch(col){case 0:calender+=" ui-datepicker-group-first";cornerClass=" ui-corner-"+(isRTL?"right":"left");break;case numMonths[1]-1:calender+=" ui-datepicker-group-last";cornerClass=" ui-corner-"+(isRTL?"left":"right");break;default:calender+=" ui-datepicker-group-middle";cornerClass="";break};calender+="'>"};calender+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+cornerClass+"'>"+(/all|left/.test(cornerClass)&&row===0?(isRTL?next:prev):"")+(/all|right/.test(cornerClass)&&row===0?(isRTL?prev:next):"")+this._generateMonthYearHeader(inst,drawMonth,drawYear,minDate,maxDate,row>0||col>0,monthNames,monthNamesShort)+"</div><table class='ui-datepicker-calendar'><thead><tr>";thead=(showWeek?"<th class='ui-datepicker-week-col'>"+this._get(inst,"weekHeader")+"</th>":"");for(dow=0;dow<7;dow++){day=(dow+firstDay)%7;thead+="<th"+((dow+firstDay+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+dayNames[day]+"'>"+dayNamesMin[day]+"</span></th>"};calender+=thead+"</tr></thead><tbody>";daysInMonth=this._getDaysInMonth(drawYear,drawMonth);if(drawYear===inst.selectedYear&&drawMonth===inst.selectedMonth)inst.selectedDay=Math.min(inst.selectedDay,daysInMonth);leadDays=(this._getFirstDayOfMonth(drawYear,drawMonth)-firstDay+7)%7;curRows=Math.ceil((leadDays+daysInMonth)/7);numRows=(isMultiMonth?this.maxRows>curRows?this.maxRows:curRows:curRows);this.maxRows=numRows;printDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,1-leadDays));for(dRow=0;dRow<numRows;dRow++){calender+="<tr>";tbody=(!showWeek?"":"<td class='ui-datepicker-week-col'>"+this._get(inst,"calculateWeek")(printDate)+"</td>");for(dow=0;dow<7;dow++){daySettings=(beforeShowDay?beforeShowDay.apply((inst.input?inst.input[0]:null),[printDate]):[true,""]);otherMonth=(printDate.getMonth()!==drawMonth);unselectable=(otherMonth&&!selectOtherMonths)||!daySettings[0]||(minDate&&printDate<minDate)||(maxDate&&printDate>maxDate);tbody+="<td class='"+((dow+firstDay+6)%7>=5?" ui-datepicker-week-end":"")+(otherMonth?" ui-datepicker-other-month":"")+((printDate.getTime()===selectedDate.getTime()&&drawMonth===inst.selectedMonth&&inst._keyEvent)||(defaultDate.getTime()===printDate.getTime()&&defaultDate.getTime()===selectedDate.getTime())?" "+this._dayOverClass:"")+(unselectable?" "+this._unselectableClass+" ui-state-disabled":"")+(otherMonth&&!showOtherMonths?"":" "+daySettings[1]+(printDate.getTime()===currentDate.getTime()?" "+this._currentClass:"")+(printDate.getTime()===today.getTime()?" ui-datepicker-today":""))+"'"+((!otherMonth||showOtherMonths)&&daySettings[2]?" title='"+daySettings[2].replace(/'/g,"'")+"'":"")+(unselectable?"":" data-handler='selectDay' data-event='click' data-month='"+printDate.getMonth()+"' data-year='"+printDate.getFullYear()+"'")+">"+(otherMonth&&!showOtherMonths?" ":(unselectable?"<span class='ui-state-default'>"+printDate.getDate()+"</span>":"<a class='ui-state-default"+(printDate.getTime()===today.getTime()?" ui-state-highlight":"")+(printDate.getTime()===currentDate.getTime()?" ui-state-active":"")+(otherMonth?" ui-priority-secondary":"")+"' href='#'>"+printDate.getDate()+"</a>"))+"</td>";printDate.setDate(printDate.getDate()+1);printDate=this._daylightSavingAdjust(printDate)};calender+=tbody+"</tr>"};drawMonth++;if(drawMonth>
7511){drawMonth=0;drawYear++};calender+="</tbody></table>"+(isMultiMonth?"</div>"+((numMonths[0]>0&&col===numMonths[1]-1)?"<div class='ui-datepicker-row-break'></div>":""):"");group+=calender};html+=group};html+=buttonPanel;inst._keyEvent=false;return html},_generateMonthYearHeader:function(inst,drawMonth,drawYear,minDate,maxDate,secondary,monthNames,monthNamesShort){var inMinYear,inMaxYear,month,years,thisYear,determineYear,year,endYear,changeMonth=this._get(inst,"changeMonth"),changeYear=this._get(inst,"changeYear"),showMonthAfterYear=this._get(inst,"showMonthAfterYear"),html="<div class='ui-datepicker-title'>",monthHtml="";if(secondary||!changeMonth){monthHtml+="<span class='ui-datepicker-month'>"+monthNames[drawMonth]+"</span>"}else{inMinYear=(minDate&&minDate.getFullYear()===drawYear);inMaxYear=(maxDate&&maxDate.getFullYear()===drawYear);monthHtml+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>";for(month=0;month<12;month++)if((!inMinYear||month>=minDate.getMonth())&&(!inMaxYear||month<=maxDate.getMonth()))monthHtml+="<option value='"+month+"'"+(month===drawMonth?" selected='selected'":"")+">"+monthNamesShort[month]+"</option>";monthHtml+="</select>"};if(!showMonthAfterYear)html+=monthHtml+(secondary||!(changeMonth&&changeYear)?" ":"");if(!inst.yearshtml){inst.yearshtml="";if(secondary||!changeYear){html+="<span class='ui-datepicker-year'>"+drawYear+"</span>"}else{years=this._get(inst,"yearRange").split(":");thisYear=new Date().getFullYear();determineYear=function(value){var year=(value.match(/c[+\-].*/)?drawYear+parseInt(value.substring(1),10):(value.match(/[+\-].*/)?thisYear+parseInt(value,10):parseInt(value,10)));return(isNaN(year)?thisYear:year)};year=determineYear(years[0]);endYear=Math.max(year,determineYear(years[1]||""));year=(minDate?Math.max(year,minDate.getFullYear()):year);endYear=(maxDate?Math.min(endYear,maxDate.getFullYear()):endYear);inst.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";for(;year<=endYear;year++)inst.yearshtml+="<option value='"+year+"'"+(year===drawYear?" selected='selected'":"")+">"+year+"</option>";inst.yearshtml+="</select>";html+=inst.yearshtml;inst.yearshtml=null}};html+=this._get(inst,"yearSuffix");if(showMonthAfterYear)html+=(secondary||!(changeMonth&&changeYear)?" ":"")+monthHtml;html+="</div>";return html}
75,_adjustInstDate:function(inst,offset,period){var year=inst.drawYear+(period==="Y"?offset:0),month=inst.drawMonth+(period==="M"?offset:0),day=Math.min(inst.selectedDay,this._getDaysInMonth(year,month))+(period==="D"?offset:0),date=this._restrictMinMax(inst,this._daylightSavingAdjust(new Date(year,month,day)));inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();if(period==="M"||period==="Y")this._notifyChange(inst)},_restrictMinMax:function(inst,date){var minDate=this._getMinMaxDate(inst,"min"),maxDate=this._getMinMaxDate(inst,"max"),newDate=(minDate&&date<minDate?minDate:date);return(maxDate&&newDate>maxDate?maxDate:newDate)},_notifyChange:function(inst){var onChange=this._get(inst,"onChangeMonthYear");if(onChange)onChange.apply((inst.input?inst.input[0]:null),[inst.selectedYear,inst.selectedMonth+1,inst])},_getNumberOfMonths:function(inst){var numMonths=this._get(inst,"numberOfMonths");return(numMonths==null?[1,1]:(typeof numMonths==="number"?[1,numMonths]:numMonths))},_getMinMaxDate:function(inst,minMax){return this._determineDate(inst,this._get(inst,minMax+"Date"),null)},_getDaysInMonth:function(year,month){return 32-this._daylightSavingAdjust(new Date(year,month,32)).getDate()},_getFirstDayOfMonth:function(year,month){return new Date(year,month,1).getDay()},_canAdjustMonth:function(inst,offset,curYear,curMonth){var numMonths=this._getNumberOfMonths(inst),date=this._daylightSavingAdjust(new Date(curYear,curMonth+(offset<0?offset:numMonths[0]*numMonths[1]),1));if(offset<0)date.setDate(this._getDaysInMonth(date.getFullYear(),date.getMonth()));return this._isInRange(inst,date)},_isInRange:function(inst,date){var yearSplit,currentYear,minDate=this._getMinMaxDate(inst,"min"),maxDate=this._getMinMaxDate(inst,"max"),minYear=null,maxYear=null,years=this._get(inst,"yearRange");if(years){yearSplit=years.split(":");currentYear=new Date().getFullYear();minYear=parseInt(yearSplit[0],10);maxYear=parseInt(yearSplit[1],10);if(yearSplit[0].match(/[+\-].*/))minYear+=currentYear;if(yearSplit[1].match(/[+\-].*/))maxYear+=currentYear};return((!minDate||date.getTime()>=minDate.getTime())&&(!maxDate||date.getTime()<=maxDate.getTime())&&(!minYear||date.getFullYear()>=minYear)&&(!maxYear||date.getFullYear()<=maxYear))},_getFormatConfig:function(inst){var shortYearCutoff=this._get(inst,"shortYearCutoff");shortYearCutoff=(typeof shortYearCutoff!=="string"?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));return{shortYearCutoff:shortYearCutoff,dayNamesShort:this._get(inst,"dayNamesShort"),dayNames:this._get(inst,"dayNames"),monthNamesShort:this._get(inst,"monthNamesShort"),monthNames:this._get(inst,"monthNames")}},_formatDate:function(inst,day,month,year){if(!day){inst.currentDay=inst.selectedDay;inst.currentMonth=inst.selectedMonth;inst.currentYear=inst.selectedYear};var date=(day?(typeof day==="object"?day:this._daylightSavingAdjust(new Date(year,month,day))):this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return this.formatDate(this._get(inst,"dateFormat"),date,this._getFormatConfig(inst))}}) 76function bindHover(dpDiv){var selector="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return dpDiv.delegate(selector,"mouseout",function(){$(this).removeClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!==-1)$(this).removeClass("ui-datepicker-prev-hover");if(this.className.indexOf("ui-datepicker-next")!==-1)$(this).removeClass("ui-datepicker-next-hover")}).delegate(selector,"mouseover",function(){if(!$.datepicker._isDisabledDatepicker(instActive.inline?dpDiv.parent()[0]:instActive.input[0])){$(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");$(this).addClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!==-1)$(this).addClass("ui-datepicker-prev-hover");if(this.className.indexOf("ui-datepicker-next")!==-1)$(this).addClass("ui-datepicker-next-hover")}})} 77function extendRemove(target,props){$.extend(target,props);for(var name in props)if(props[name]==null)target[name]=props[name];return target};$.fn.datepicker=function(options){if(!this.length)return this;if(!$.datepicker.initialized){$(document).mousedown($.datepicker._checkExternalClick);$.datepicker.initialized=true};if($("#"+$.datepicker._mainDivId).length===0)$("body").append($.datepicker.dpDiv);
77var otherArgs=Array.prototype.slice.call(arguments,1);if(typeof options==="string"&&(options==="isDisabled"||options==="getDate"||options==="widget"))return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs));if(options==="option"&&arguments.length===2&&typeof arguments[1]==="string")return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs));return this.each(function(){typeof options==="string"?$.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this].concat(otherArgs)):$.datepicker._attachDatepicker(this,options)})};$.datepicker=new Datepicker();$.datepicker.initialized=false;$.datepicker.uuid=new Date().getTime();$.datepicker.version="1.10.4"})(jQuery);(function($,undefined){var sizeRelatedOptions={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},resizableRelatedOptions={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true};$.widget("ui.dialog",{version:"1.10.4",options:{appendTo:"body",autoOpen:true,buttons:[],closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:false,position:{my:"center",at:"center",of:window,collision:"fit",using:function(pos){var topOffset=$(this).css(pos).offset().top;if(topOffset<0)$(this).css("top",pos.top-topOffset)}},resizable:true,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();if(this.options.draggable&&$.fn.draggable)this._makeDraggable();if(this.options.resizable&&$.fn.resizable)this._makeResizable();this._isOpen=false},_init:function(){if(this.options.autoOpen)this.open()},_appendTo:function(){var element=this.options.appendTo;if(element&&(element.jquery||element.nodeType))return $(element);return this.document.find(element||"body").eq(0)},_destroy:function(){var next,originalPosition=this.originalPosition;this._destroyOverlay();this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach();this.uiDialog.stop(true,true).remove();if(this.originalTitle)this.element.attr("title",this.originalTitle);next=originalPosition.parent.children().eq(originalPosition.index);if(next.length&&next[0]!==this.element[0]){next.before(this.element)}else originalPosition.parent.append(this.element)},widget:function(){return this.uiDialog},disable:$.noop,enable:$.noop,close:function(event){var activeElement,that=this;if(!this._isOpen||this._trigger("beforeClose",event)===false)return;this._isOpen=false;this._destroyOverlay();if(!this.opener.filter(":focusable").focus().length)try{activeElement=this.document[0].activeElement;if(activeElement&&activeElement.nodeName.toLowerCase()!=="body")$(activeElement).blur()}catch(error){};this._hide(this.uiDialog,this.options.hide,function(){that._trigger("close",event)})},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(event,silent){var moved=!!this.uiDialog.nextAll(":visible").insertBefore(this.uiDialog).length;if(moved&&!silent)this._trigger("focus",event);return moved},open:function(){var that=this;if(this._isOpen){if(this._moveToTop())this._focusTabbable();return};this._isOpen=true;this.opener=$(this.document[0].activeElement);this._size();this._position();this._createOverlay();this._moveToTop(null,true);this._show(this.uiDialog,this.options.show,function(){that._focusTabbable();that._trigger("focus")});this._trigger("open")},_focusTabbable:function(){var hasFocus=this.element.find("[autofocus]");if(!hasFocus.length)hasFocus=this.element.find(":tabbable");if(!hasFocus.length)hasFocus=this.uiDialogButtonPane.find(":tabbable");if(!hasFocus.length)hasFocus=this.uiDialogTitlebarClose.filter(":tabbable");if(!hasFocus.length)hasFocus=this.uiDialog;hasFocus.eq(0).focus()},_keepFocus:function(event){function checkFocus(){var activeElement=this.document[0].activeElement,isActive=this.uiDialog[0]===activeElement||$.contains(this.uiDialog[0],activeElement);if(!isActive)this._focusTabbable()};event.preventDefault();
77checkFocus.call(this);this._delay(checkFocus)},_createWrapper:function(){this.uiDialog=$("<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(event){if(this.options.closeOnEscape&&!event.isDefaultPrevented()&&event.keyCode&&event.keyCode===$.ui.keyCode.ESCAPE){event.preventDefault();this.close(event);return};if(event.keyCode!==$.ui.keyCode.TAB)return;var tabbables=this.uiDialog.find(":tabbable"),first=tabbables.filter(":first"),last=tabbables.filter(":last");if((event.target===last[0]||event.target===this.uiDialog[0])&&!event.shiftKey){first.focus(1);event.preventDefault()}else if((event.target===first[0]||event.target===this.uiDialog[0])&&event.shiftKey){last.focus(1);event.preventDefault()}},mousedown:function(event){if(this._moveToTop(event))this._focusTabbable()}});if(!this.element.find("[aria-describedby]").length)this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var uiDialogTitle;this.uiDialogTitlebar=$("<div>").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog);this._on(this.uiDialogTitlebar,{mousedown:function(event){if(!$(event.target).closest(".ui-dialog-titlebar-close"))this.uiDialog.focus()}});this.uiDialogTitlebarClose=$("<button type='button'></button>").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:false}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar);this._on(this.uiDialogTitlebarClose,{click:function(event){event.preventDefault();this.close(event)}});uiDialogTitle=$("<span>").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar);this._title(uiDialogTitle);this.uiDialog.attr({"aria-labelledby":uiDialogTitle.attr("id")})},_title:function(title){if(!this.options.title)title.html(" ");title.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=$("<div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");this.uiButtonSet=$("<div>").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane);this._createButtons()},_createButtons:function(){var that=this,buttons=this.options.buttons;this.uiDialogButtonPane.remove();this.uiButtonSet.empty();if($.isEmptyObject(buttons)||($.isArray(buttons)&&!buttons.length)){this.uiDialog.removeClass("ui-dialog-buttons");return};$.each(buttons,function(name,props){var click,buttonOptions;props=$.isFunction(props)?{click:props,text:name}:props;props=$.extend({type:"button"},props);click=props.click;props.click=function(){click.apply(that.element[0],arguments)};buttonOptions={icons:props.icons,text:props.showText};delete props.icons;delete props.showText;$("<button></button>",props).button(buttonOptions).appendTo(that.uiButtonSet)});this.uiDialog.addClass("ui-dialog-buttons");this.uiDialogButtonPane.appendTo(this.uiDialog)},_makeDraggable:function(){var that=this,options=this.options 78function filteredUi(ui){return{position:ui.position,offset:ui.offset}};this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(event,ui){$(this).addClass("ui-dialog-dragging");that._blockFrames();that._trigger("dragStart",event,filteredUi(ui))},drag:function(event,ui){that._trigger("drag",event,filteredUi(ui))},stop:function(event,ui){options.position=[ui.position.left-that.document.scrollLeft(),ui.position.top-that.document.scrollTop()];$(this).removeClass("ui-dialog-dragging");that._unblockFrames();that._trigger("dragStop",event,filteredUi(ui))}})},_makeResizable:function(){var that=this,options=this.options,handles=options.resizable,position=this.uiDialog.css("position"),resizeHandles=typeof handles==="string"?handles:"n,e,s,w,se,sw,ne,nw" 79function filteredUi(ui){return{originalPosition:ui.originalPosition,originalSize:ui.originalSize,position:ui.position,size:ui.size}};this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:options.maxWidth,maxHeight:options.maxHeight,minWidth:options.minWidth,minHeight:this._minHeight(),handles:resizeHandles,start:function(event,ui){$(this).addClass("ui-dialog-resizing");that._blockFrames();that._trigger("resizeStart",event,filteredUi(ui))},resize:function(event,ui){that._trigger("resize",event,filteredUi(ui))},stop:function(event,ui){options.height=$(this).height();options.width=$(this).width();$(this).removeClass("ui-dialog-resizing");that._unblockFrames();that._trigger("resizeStop",event,filteredUi(ui))}}).css("position",position)},_minHeight:function(){var options=this.options;return options.height==="auto"?options.minHeight:Math.min(options.minHeight,options.height)},_position:function(){var isVisible=this.uiDialog.is(":visible");if(!isVisible)this.uiDialog.show();this.uiDialog.position(this.options.position);if(!isVisible)this.uiDialog.hide()},_setOptions:function(options){var that=this,resize=false,resizableOptions={};$.each(options,function(key,value){that._setOption(key,value);if(key in sizeRelatedOptions)resize=true;if(key in resizableRelatedOptions)resizableOptions[key]=value});if(resize){this._size();this._position()};if(this.uiDialog.is(":data(ui-resizable)"))this.uiDialog.resizable("option",resizableOptions)},_setOption:function(key,value){var isDraggable,isResizable,uiDialog=this.uiDialog;if(key==="dialogClass")uiDialog.removeClass(this.options.dialogClass).addClass(value);if(key==="disabled")return;this._super(key,value);if(key==="appendTo")this.uiDialog.appendTo(this._appendTo());if(key==="buttons")this._createButtons();if(key==="closeText")this.uiDialogTitlebarClose.button({label:""+value});if(key==="draggable"){isDraggable=uiDialog.is(":data(ui-draggable)");if(isDraggable&&!value)uiDialog.draggable("destroy");if(!isDraggable&&value)this._makeDraggable()};if(key==="position")this._position();if(key==="resizable"){isResizable=uiDialog.is(":data(ui-resizable)");if(isResizable&&!value)uiDialog.resizable("destroy");if(isResizable&&typeof value==="string")uiDialog.resizable("option","handles",value);if(!isResizable&&value!==false)this._makeResizable()};if(key==="title")this._title(this.uiDialogTitlebar.find(".ui-dialog-title"))},_size:function(){var nonContentHeight,minContentHeight,maxContentHeight,options=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0});if(options.minWidth>options.width)options.width=options.minWidth;nonContentHeight=this.uiDialog.css({height:"auto",width:options.width}).outerHeight();minContentHeight=Math.max(0,options.minHeight-nonContentHeight);maxContentHeight=typeof options.maxHeight==="number"?Math.max(0,options.maxHeight-nonContentHeight):"none";if(options.height==="auto"){this.element.css({minHeight:minContentHeight,maxHeight:maxContentHeight,height:"auto"})}else this.element.height(Math.max(0,options.height-nonContentHeight));if(this.uiDialog.is(":data(ui-resizable)"))this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var iframe=$(this);return $("<div>").css({position:"absolute",width:iframe.outerWidth(),height:iframe.outerHeight()}).appendTo(iframe.parent()).offset(iframe.offset())[0]})},_unblockFrames:function(){if(this.iframeBlocks){this.iframeBlocks.remove();delete this.iframeBlocks}},_allowInteraction:function(event){if($(event.target).closest(".ui-dialog").length)return true;return!!$(event.target).closest(".ui-datepicker").length},_createOverlay:function(){if(!this.options.modal)return;var that=this,widgetFullName=this.widgetFullName;if(!$.ui.dialog.overlayInstances)this._delay(function(){if($.ui.dialog.overlayInstances)this.document.bind("focusin.dialog",function(event){if(!that._allowInteraction(event)){event.preventDefault();$(".ui-dialog:visible:last .ui-dialog-content").data(widgetFullName)._focusTabbable()}})});this.overlay=$("<div>").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo());this._on(this.overlay,{mousedown:"_keepFocus"});$.ui.dialog.overlayInstances++},_destroyOverlay:function(){if(!this.options.modal)return;if(this.overlay){$.ui.dialog.overlayInstances--;if(!$.ui.dialog.overlayInstances)this.document.unbind("focusin.dialog");this.overlay.remove();this.overlay=null}}});$.ui.dialog.overlayInstances=0;if($.uiBackCompat!==false)$.widget("ui.dialog",$.ui.dialog,{_position:function(){var position=this.options.position,myAt=[],offset=[0,0],isVisible;if(position){if(typeof position==="string"||(typeof position==="object"&&"0"in position)){myAt=position.split?position.split(" "):[position[0],position[1]];if(myAt.length===1)myAt[1]=myAt[0];$.each(["left","top"],function(i,offsetPosition){if(+myAt[i]===myAt[i]){offset[i]=myAt[
79i];myAt[i]=offsetPosition}});position={my:myAt[0]+(offset[0]<0?offset[0]:"+"+offset[0])+" "+myAt[1]+(offset[1]<0?offset[1]:"+"+offset[1]),at:myAt.join(" ")}};position=$.extend({},$.ui.dialog.prototype.options.position,position)}else position=$.ui.dialog.prototype.options.position;isVisible=this.uiDialog.is(":visible");if(!isVisible)this.uiDialog.show();this.uiDialog.position(position);if(!isVisible)this.uiDialog.hide()}})}(jQuery));(function($,undefined){$.widget("ui.menu",{version:"1.10.4",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=false;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,$.proxy(function(event){if(this.options.disabled)event.preventDefault()},this));if(this.options.disabled)this.element.addClass("ui-state-disabled").attr("aria-disabled","true");this._on({"mousedown .ui-menu-item > a":function(event){event.preventDefault()},"click .ui-state-disabled > a":function(event){event.preventDefault()},"click .ui-menu-item:has(a)":function(event){var target=$(event.target).closest(".ui-menu-item");if(!this.mouseHandled&&target.not(".ui-state-disabled").length){this.select(event);if(!event.isPropagationStopped())this.mouseHandled=true;if(target.has(".ui-menu").length){this.expand(event)}else if(!this.element.is(":focus")&&$(this.document[0].activeElement).closest(".ui-menu").length){this.element.trigger("focus",[true]);if(this.active&&this.active.parents(".ui-menu").length===1)clearTimeout(this.timer)}}},"mouseenter .ui-menu-item":function(event){var target=$(event.currentTarget);target.siblings().children(".ui-state-active").removeClass("ui-state-active");this.focus(event,target)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(event,keepActiveItem){var item=this.active||this.element.children(".ui-menu-item").eq(0);if(!keepActiveItem)this.focus(event,item)},blur:function(event){this._delay(function(){if(!$.contains(this.element[0],this.document[0].activeElement))this.collapseAll(event)})},keydown:"_keydown"});this.refresh();this._on(this.document,{click:function(event){if(!$(event.target).closest(".ui-menu").length)this.collapseAll(event);this.mouseHandled=false}})},_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 elem=$(this);if(elem.data("ui-menu-submenu-carat"))elem.remove()});this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(event){var match,prev,character,skip,regex,preventDefault=true 80function escape(value){return value.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")};switch(event.keyCode){case $.ui.keyCode.PAGE_UP:this.previousPage(event);break;case $.ui.keyCode.PAGE_DOWN:this.nextPage(event);break;case $.ui.keyCode.HOME:this._move("first","first",event);break;case $.ui.keyCode.END:this._move("last","last",event);break;case $.ui.keyCode.UP:this.previous(event);break;case $.ui.keyCode.DOWN:this.next(event);break;case $.ui.keyCode.LEFT:this.collapse(event);break;case $.ui.keyCode.RIGHT:if(this.active&&!this.active.is(".ui-state-disabled"))this.expand(event);break;case $.ui.keyCode.ENTER:case $.ui.keyCode.SPACE:this._activate(event);break;case $.ui.keyCode.ESCAPE:this.collapse(event);break;default:preventDefault=false;prev=this.previousFilter||"";character=String.fromCharCode(event.keyCode);skip=false;clearTimeout(this.filterTimer);if(character===prev){skip=true}else character=prev+character;regex=new RegExp("^"+escape(character),"i");match=this.activeMenu.children(".ui-menu-item").filter(function(){return regex.test($(this).children("a").text())});match=skip&&match.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):match;if(!match.length){character=String.fromCharCode(event.keyCode);regex=new RegExp("^"+escape(character),"i");match=this.activeMenu.children(".ui-menu-item").filter(function(){return regex.test($(this).children("a").text())})};if(match.length){this.focus(event,match);if(match.length>1){this.previousFilter=character;this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)}else delete this.previousFilter}else delete this.previousFilter};if(preventDefault)event.preventDefault()},_activate:function(event){if(!this.active.is(".ui-state-disabled"))if(this.active.children("a[aria-haspopup='true']").length){this.expand(event)}else this.select(event)},refresh:function(){var menus,icon=this.options.icons.submenu,submenus=this.element.find(this.options.menus);this.element.toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length);submenus.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 menu=$(this),item=menu.prev("a"),submenuCarat=$("<span>").addClass("ui-menu-icon ui-icon "+icon).data("ui-menu-submenu-carat",true);item.attr("aria-haspopup","true").prepend(submenuCarat);menu.attr("aria-labelledby",item.attr("id"))});menus=submenus.add(this.element);menus.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()});menus.children(":not(.ui-menu-item)").each(function(){var item=$(this);if(!/[^\-\u2014\u2013\s]/.test(item.text()))item.addClass("ui-widget-content ui-menu-divider")});menus.children(".ui-state-disabled").attr("aria-disabled","true");
80if(this.active&&!$.contains(this.element[0],this.active[0]))this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(key,value){if(key==="icons")this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(value.submenu);this._super(key,value)},focus:function(event,item){var nested,focused;this.blur(event,event&&event.type==="focus");this._scrollIntoView(item);this.active=item.first();focused=this.active.children("a").addClass("ui-state-focus");if(this.options.role)this.element.attr("aria-activedescendant",focused.attr("id"));this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active");if(event&&event.type==="keydown"){this._close()}else this.timer=this._delay(function(){this._close()},this.delay);nested=item.children(".ui-menu");if(nested.length&&event&&(/^mouse/.test(event.type)))this._startOpening(nested);this.activeMenu=item.parent();this._trigger("focus",event,{item:item})},_scrollIntoView:function(item){var borderTop,paddingTop,offset,scroll,elementHeight,itemHeight;
80if(this._hasScroll()){borderTop=parseFloat($.css(this.activeMenu[0],"borderTopWidth"))||0;paddingTop=parseFloat($.css(this.activeMenu[0],"paddingTop"))||0;offset=item.offset().top-this.activeMenu.offset().top-borderTop-paddingTop;scroll=this.activeMenu.scrollTop();elementHeight=this.activeMenu.height();itemHeight=item.height();if(offset<0){this.activeMenu.scrollTop(scroll+offset)}else if(offset+itemHeight>elementHeight)this.activeMenu.scrollTop(scroll+offset-elementHeight+itemHeight)}},blur:function(event,fromFocus){if(!fromFocus)clearTimeout(this.timer);if(!this.active)return;this.active.children("a").removeClass("ui-state-focus");this.active=null;this._trigger("blur",event,{item:this.active})},_startOpening:function(submenu){clearTimeout(this.timer);if(submenu.attr("aria-hidden")!=="true")return;this.timer=this._delay(function(){this._close();this._open(submenu)},this.delay)},_open:function(submenu){var position=$.extend({of:this.active},this.options.position);clearTimeout(this.timer);this.element.find(".ui-menu").not(submenu.parents(".ui-menu")).hide().attr("aria-hidden","true");submenu.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(position)},collapseAll:function(event,all){clearTimeout(this.timer);this.timer=this._delay(function(){var currentMenu=all?this.element:$(event&&event.target).closest(this.element.find(".ui-menu"));if(!currentMenu.length)currentMenu=this.element;this._close(currentMenu);this.blur(event);this.activeMenu=currentMenu},this.delay)},_close:function(startMenu){if(!startMenu)startMenu=this.active?this.active.parent():this.element;startMenu.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(event){var newItem=this.active&&this.active.parent().closest(".ui-menu-item",this.element);if(newItem&&newItem.length){this._close();this.focus(event,newItem)}},expand:function(event){var newItem=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();if(newItem&&newItem.length){this._open(newItem.parent());this._delay(function(){this.focus(event,newItem)})}},next:function(event){this._move("next","first",event)},previous:function(event){this._move("prev","last",event)},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(direction,filter,event){var next;if(this.active)if(direction==="first"||direction==="last"){next=this.active[direction==="first"?"prevAll":"nextAll"](".ui-menu-item").eq(-1)}else next=this.active[direction+"All"](".ui-menu-item").eq(0);if(!next||!next.length||!this.active)next=this.activeMenu.children(".ui-menu-item")[filter]();this.focus(event,next)},nextPage:function(event){var item,base,height;if(!this.active){this.next(event);return};if(this.isLastItem())return;if(this._hasScroll()){base=this.active.offset().top;height=this.element.height();this.active.nextAll(".ui-menu-item").each(function(){item=$(this);return item.offset().top-base-height<0});this.focus(event,item)}else this.focus(event,this.activeMenu.children(".ui-menu-item")[!this.active?"first":"last"]())},previousPage:function(event){var item,base,height;if(!this.active){this.next(event);return};if(this.isFirstItem())return;if(this._hasScroll()){base=this.active.offset().top;height=this.element.height();this.active.prevAll(".ui-menu-item").each(function(){item=$(this);return item.offset().top-base+height>0});this.focus(event,item)}else this.focus(event,this.activeMenu.children(".ui-menu-item").first())},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(event){this.active=this.active||$(event.target).closest(".ui-menu-item");var ui={item:this.active};if(!this.active.has(".ui-menu").length)this.collapseAll(event,true);this._trigger("select",event,ui)}})}(jQuery));(function($,undefined){$.widget("ui.progressbar",{version:"1.10.4",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=$("<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(newValue){if(newValue===undefined)return this.options.value;this.options.value=this._constrainedValue(newValue);this._refreshValue()},_constrainedValue:function(newValue){if(newValue===undefined)newValue=this.options.value;this.indeterminate=newValue===false;if(typeof newValue!=="number")newValue=0;return this.indeterminate?false:Math.min(this.options.max,Math.max(this.min,newValue))},_setOptions:function(options){var value=options.value;delete options.value;this._super(options);this.options.value=this._constrainedValue(value);this._refreshValue()},_setOption:function(key,value){if(key==="max")value=Math.max(this.min,value);this._super(key,value)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var value=this.options.value,percentage=this._percentage();this.valueDiv.toggle(this.indeterminate||value>this.min).toggleClass("ui-corner-right",value===this.options.max).width(percentage.toFixed(0)+"%");this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate);if(this.indeterminate){this.element.removeAttr("aria-valuenow");if(!this.overlayDiv)this.overlayDiv=$("<div class='ui-progressbar-overlay'></div>").appendTo(this.valueDiv)}else{this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":value});if(this.overlayDiv){this.overlayDiv.remove();this.overlayDiv=null}};if(this.oldValue!==value){this.oldValue=value;this._trigger("change")};if(value===this.options.max)this._trigger("complete")}})})(jQuery);(function($,undefined){var numPages=5;$.widget("ui.slider",$.ui.mouse,{version:"1.10.4",widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},_create:function(){this._keySliding=false;this._mouseSliding=false;this._animateOff=true;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=false},_refresh:function(){this._createRange();this._createHandles();this._setupEvents();this._refreshValue()},_createHandles:function(){var i,handleCount,options=this.options,existingHandles=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),handle="
80<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>",handles=[];handleCount=(options.values&&options.values.length)||1;if(existingHandles.length>handleCount){existingHandles.slice(handleCount).remove();existingHandles=existingHandles.slice(0,handleCount)};for(i=existingHandles.length;i<handleCount;i++)handles.push(handle);this.handles=existingHandles.add($(handles.join("")).appendTo(this.element));this.handle=this.handles.eq(0);this.handles.each(function(i){$(this).data("ui-slider-handle-index",i)})},_createRange:function(){var options=this.options,classes="";if(options.range){if(options.range===true)if(!options.values){options.values=[this._valueMin(),this._valueMin()]}else if(options.values.length&&options.values.length!==2){options.values=[options.values[0],options.values[0]]}else if($.isArray(options.values))options.values=options.values.slice(0);if(!this.range||!this.range.length){this.range=$("<div></div>").appendTo(this.element);classes="ui-slider-range ui-widget-header ui-corner-all"}else this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""});
80this.range.addClass(classes+((options.range==="min"||options.range==="max")?" ui-slider-range-"+options.range:""))}else{if(this.range)this.range.remove();this.range=null}},_setupEvents:function(){var elements=this.handles.add(this.range).filter("a");this._off(elements);this._on(elements,this._handleEvents);this._hoverable(elements);this._focusable(elements)},_destroy:function(){this.handles.remove();if(this.range)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(event){var position,normValue,distance,closestHandle,index,allowed,offset,mouseOverHandle,that=this,o=this.options;if(o.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();position={x:event.pageX,y:event.pageY};normValue=this._normValueFromMouse(position);distance=this._valueMax()-this._valueMin()+1;this.handles.each(function(i){var thisDistance=Math.abs(normValue-that.values(i));if((distance>thisDistance)||(distance===thisDistance&&(i===that._lastChangedValue||that.values(i)===o.min))){distance=thisDistance;closestHandle=$(this);index=i}});allowed=this._start(event,index);if(allowed===false)return false;this._mouseSliding=true;this._handleIndex=index;closestHandle.addClass("ui-state-active").focus();offset=closestHandle.offset();mouseOverHandle=!$(event.target).parents().addBack().is(".ui-slider-handle");this._clickOffset=mouseOverHandle?{left:0,top:0}:{left:event.pageX-offset.left-(closestHandle.width()/2),top:event.pageY-offset.top-(closestHandle.height()/2)-(parseInt(closestHandle.css("borderTopWidth"),10)||0)-(parseInt(closestHandle.css("borderBottomWidth"),10)||0)+(parseInt(closestHandle.css("marginTop"),10)||0)};if(!this.handles.hasClass("ui-state-hover"))this._slide(event,index,normValue);this._animateOff=true;return true},_mouseStart:function(){return true},_mouseDrag:function(event){var position={x:event.pageX,y:event.pageY},normValue=this._normValueFromMouse(position);this._slide(event,this._handleIndex,normValue);return false},_mouseStop:function(event){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(event,this._handleIndex);this._change(event,this._handleIndex);this._handleIndex=null;this._clickOffset=null;this._animateOff=false;return false},_detectOrientation:function(){this.orientation=(this.options.orientation==="vertical")?"vertical":"horizontal"},_normValueFromMouse:function(position){var pixelTotal,pixelMouse,percentMouse,valueTotal,valueMouse;if(this.orientation==="horizontal"){pixelTotal=this.elementSize.width;pixelMouse=position.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{pixelTotal=this.elementSize.height;pixelMouse=position.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)};percentMouse=(pixelMouse/pixelTotal);if(percentMouse>1)percentMouse=1;if(percentMouse<0)percentMouse=0;if(this.orientation==="vertical")percentMouse=1-percentMouse;valueTotal=this._valueMax()-this._valueMin();valueMouse=this._valueMin()+percentMouse*valueTotal;return this._trimAlignValue(valueMouse)},_start:function(event,index){var uiHash={handle:this.handles[index],value:this.value()};if(this.options.values&&this.options.values.length){uiHash.value=this.values(index);uiHash.values=this.values()};return this._trigger("start",event,uiHash)},_slide:function(event,index,newVal){var otherVal,newValues,allowed;if(this.options.values&&this.options.values.length){otherVal=this.values(index?0:1);if((this.options.values.length===2&&this.options.range===true)&&((index===0&&newVal>otherVal)||(index===1&&newVal<otherVal)))newVal=otherVal;if(newVal!==this.values(index)){newValues=this.values();newValues[index]=newVal;allowed=this._trigger("slide",event,{handle:this.handles[index],value:newVal,values:newValues});otherVal=this.values(index?0:1);if(allowed!==false)this.values(index,newVal)}}else if(newVal!==this.value()){allowed=this._trigger("slide",event,{handle:this.handles[index],value:newVal});if(allowed!==false)this.value(newVal)}}
80,_stop:function(event,index){var uiHash={handle:this.handles[index],value:this.value()};if(this.options.values&&this.options.values.length){uiHash.value=this.values(index);uiHash.values=this.values()};this._trigger("stop",event,uiHash)},_change:function(event,index){if(!this._keySliding&&!this._mouseSliding){var uiHash={handle:this.handles[index],value:this.value()};if(this.options.values&&this.options.values.length){uiHash.value=this.values(index);uiHash.values=this.values()};this._lastChangedValue=index;this._trigger("change",event,uiHash)}},value:function(newValue){if(arguments.length){this.options.value=this._trimAlignValue(newValue);this._refreshValue();this._change(null,0);return};return this._value()},values:function(index,newValue){var vals,newValues,i;if(arguments.length>1){this.options.values[index]=this._trimAlignValue(newValue);this._refreshValue();this._change(null,index);return};if(arguments.length){if($.isArray(arguments[0])){vals=this.options.values;newValues=arguments[0];for(i=0;i<vals.length;i+=1){vals[i]=this._trimAlignValue(newValues[i]);this._change(null,i)};this._refreshValue()}else if(this.options.values&&this.options.values.length){return this._values(index)}else return this.value()}else return this._values()},_setOption:function(key,value){var i,valsLength=0;if(key==="range"&&this.options.range===true)if(value==="min"){this.options.value=this._values(0);this.options.values=null}else if(value==="max"){this.options.value=this._values(this.options.values.length-1);this.options.values=null};if($.isArray(this.options.values))valsLength=this.options.values.length;$.Widget.prototype._setOption.apply(this,arguments);switch(key){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=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case"values":this._animateOff=true;this._refreshValue();for(i=0;i<valsLength;i+=1)this._change(null,i);this._animateOff=false;break;case"min":case"max":this._animateOff=true;this._refreshValue();this._animateOff=false;break;case"range":this._animateOff=true;this._refresh();this._animateOff=false;break}},_value:function(){var val=this.options.value;val=this._trimAlignValue(val);return val},_values:function(index){var val,vals,i;if(arguments.length){val=this.options.values[index];val=this._trimAlignValue(val);return val}else if(this.options.values&&this.options.values.length){vals=this.options.values.slice();for(i=0;i<vals.length;i+=1)vals[i]=this._trimAlignValue(vals[i]);return vals}else return[]},_trimAlignValue:function(val){if(val<=this._valueMin())return this._valueMin();if(val>=this._valueMax())return this._valueMax();var step=(this.options.step>0)?this.options.step:1,valModStep=(val-this._valueMin())%step,alignValue=val-valModStep;if(Math.abs(valModStep)*2>=step)alignValue+=(valModStep>0)?step:(-step);return parseFloat(alignValue.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var lastValPercent,valPercent,value,valueMin,valueMax,oRange=this.options.range,o=this.options,that=this,animate=(!this._animateOff)?o.animate:false,_set={};if(this.options.values&&this.options.values.length){this.handles.each(function(i){valPercent=(that.values(i)-that._valueMin())/(that._valueMax()-that._valueMin())*100;_set[that.orientation==="horizontal"?"left":"bottom"]=valPercent+"%";$(this).stop(1,1)[animate?"animate":"css"](_set,o.animate);if(that.options.range===true)if(that.orientation==="horizontal"){if(i===0)that.range.stop(1,1)[animate?"animate":"css"]({left:valPercent+"%"},o.animate);if(i===1)that.range[animate?"animate":"css"]({width:(valPercent-lastValPercent)+"%"},{queue:false,duration:o.animate})}else{if(i===0)that.range.stop(1,1)[animate?"animate":"css"]({bottom:valPercent+"%"},o.animate);if(i===1)that.range[animate?"animate":"css"]({height:(valPercent-lastValPercent)+"%"},{queue:false,duration:o.animate})};lastValPercent=valPercent})}else{value=this.value();valueMin=this._valueMin();valueMax=this._valueMax();valPercent=(valueMax!==valueMin)?(value-valueMin)/(valueMax-valueMin)*100:0;
80_set[this.orientation==="horizontal"?"left":"bottom"]=valPercent+"%";this.handle.stop(1,1)[animate?"animate":"css"](_set,o.animate);if(oRange==="min"&&this.orientation==="horizontal")this.range.stop(1,1)[animate?"animate":"css"]({width:valPercent+"%"},o.animate);if(oRange==="max"&&this.orientation==="horizontal")this.range[animate?"animate":"css"]({width:(100-valPercent)+"%"},{queue:false,duration:o.animate});if(oRange==="min"&&this.orientation==="vertical")this.range.stop(1,1)[animate?"animate":"css"]({height:valPercent+"%"},o.animate);if(oRange==="max"&&this.orientation==="vertical")this.range[animate?"animate":"css"]({height:(100-valPercent)+"%"},{queue:false,duration:o.animate})}},_handleEvents:{keydown:function(event){var allowed,curVal,newVal,step,index=$(event.target).data("ui-slider-handle-index");switch(event.keyCode){case $.ui.keyCode.HOME:case $.ui.keyCode.END:case $.ui.keyCode.PAGE_UP:case $.ui.keyCode.PAGE_DOWN:case $.ui.keyCode.UP:case $.ui.keyCode.RIGHT:case $.ui.keyCode.DOWN:case $.ui.keyCode.LEFT:event.preventDefault();if(!this._keySliding){this._keySliding=true;$(event.target).addClass("ui-state-active");allowed=this._start(event,index);if(allowed===false)return};break};step=this.options.step;if(this.options.values&&this.options.values.length){curVal=newVal=this.values(index)}else curVal=newVal=this.value();switch(event.keyCode){case $.ui.keyCode.HOME:newVal=this._valueMin();break;case $.ui.keyCode.END:newVal=this._valueMax();break;case $.ui.keyCode.PAGE_UP:newVal=this._trimAlignValue(curVal+((this._valueMax()-this._valueMin())/numPages));break;case $.ui.keyCode.PAGE_DOWN:newVal=this._trimAlignValue(curVal-((this._valueMax()-this._valueMin())/numPages));break;case $.ui.keyCode.UP:case $.ui.keyCode.RIGHT:if(curVal===this._valueMax())return;newVal=this._trimAlignValue(curVal+step);break;case $.ui.keyCode.DOWN:case $.ui.keyCode.LEFT:if(curVal===this._valueMin())return;newVal=this._trimAlignValue(curVal-step);break};this._slide(event,index,newVal)},click:function(event){event.preventDefault()},keyup:function(event){var index=$(event.target).data("ui-slider-handle-index");if(this._keySliding){this._keySliding=false;this._stop(event,index);this._change(event,index);$(event.target).removeClass("ui-state-active")}}}})}(jQuery));(function($){function modifier(fn){return function(){var previous=this.element.val();fn.apply(this,arguments);this._refresh();if(previous!==this.element.val())this._trigger("change")}};$.widget("ui.spinner",{version:"1.10.4",defaultElement:"<input>",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:true,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);if(this.value()!=="")this._value(this.element.val(),true);this._draw();this._on(this._events);this._refresh();this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var options={},element=this.element;$.each(["min","max","step"],function(i,option){var value=element.attr(option);if(value!==undefined&&value.length)options[option]=value});return options},_events:{keydown:function(event){if(this._start(event)&&this._key
80down(event))event.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(event){if(this.cancelBlur){delete this.cancelBlur;return};this._stop();this._refresh();if(this.previous!==this.element.val())this._trigger("change",event)},mousewheel:function(event,delta){if(!delta)return;if(!this.spinning&&!this._start(event))return false;this._spin((delta>0?1:-1)*this.options.step,event);clearTimeout(this.mousewheelTimer);this.mousewheelTimer=this._delay(function(){if(this.spinning)this._stop(event)},100);event.preventDefault()},"mousedown .ui-spinner-button":function(event){var previous;previous=this.element[0]===this.document[0].activeElement?this.previous:this.element.val() 81function checkFocus(){var isActive=this.element[0]===this.document[0].activeElement;if(!isActive){this.element.focus();this.previous=previous;this._delay(function(){this.previous=previous})}};event.preventDefault();checkFocus.call(this);this.cancelBlur=true;this._delay(function(){delete this.cancelBlur;checkFocus.call(this)});if(this._start(event)===false)return;this._repeat(null,$(event.currentTarget).hasClass("ui-spinner-up")?1:-1,event)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(event){if(!$(event.currentTarget).hasClass("ui-state-active"))return;if(this._start(event)===false)return false;this._repeat(null,$(event.currentTarget).hasClass("ui-spinner-up")?1:-1,event)},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var uiSpinner=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=uiSpinner.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all");if(this.buttons.height()>Math.ceil(uiSpinner.height()*0.5)&&uiSpinner.height()>0)uiSpinner.height(uiSpinner.height());if(this.options.disabled)this.disable()},_keydown:function(event){var options=this.options,keyCode=$.ui.keyCode;switch(event.keyCode){case keyCode.UP:this._repeat(null,1,event);return true;case keyCode.DOWN:this._repeat(null,-1,event);return true;case keyCode.PAGE_UP:this._repeat(null,options.page,event);return true;case keyCode.PAGE_DOWN:this._repeat(null,-options.page,event);return true};return false},_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+"'>▲</span></a><a class='ui-spinner-button ui-spinner-down ui-corner-br'><span class='ui-icon "+this.options.icons.down+"'>▼</span></a>"},_start:function(event){if(!this.spinning&&this._trigger("start",event)===false)return false;if(!this.counter)this.counter=1;this.spinning=true;return true},_repeat:function(i,steps,event){i=i||500;clearTimeout(this.timer);this.timer=this._delay(function(){this._repeat(40,steps,event)},i);this._spin(steps*this.options.step,event)},_spin:function(step,event){var value=this.value()||0;if(!this.counter)this.counter=1;value=this._adjustValue(value+step*this._increment(this.counter));if(!this.spinning||this._trigger("spin",event,{value:value})!==false){this._value(value);this.counter++}},_increment:function(i){var incremental=this.options.incremental;if(incremental)return $.isFunction(incremental)?incremental(i):Math.floor(i*i*i/5e4-i*i/500+17*i/200+1);return 1},_precision:function(){var precision=this._precisionOf(this.options.step);if(this.options.min!==null)precision=Math.max(precision,this._precisionOf(this.options.min));return precision},_precisionOf:function(num){var str=num.toString(),decimal=str.indexOf(".");return decimal===-1?0:str.length-decimal-1},_adjustValue:function(value){var base,aboveMin,options=this.options;base=options.min!==null?options.min:0;aboveMin=value-base;aboveMin=Math.round(aboveMin/options.step)*options.step;value=base+aboveMin;value=parseFloat(value.toFixed(this._precision()));if(options.max!==null&&value>options.max)return options.max;if(options.min!==null&&value<options.min)return options.min;return value},_stop:function(event){if(!this.spinning)return;clearTimeout(this.timer);clearTimeout(this.mousewheelTimer);this.counter=0;this.spinning=false;this._trigger("stop",event)},_setOption:function(key,value){if(key==="culture"||key==="numberFormat"){var prevValue=this._parse(this.element.val());this.options[key]=value;this.element.val(this._format(prevValue));return};if(key==="max"||key==="min"||key==="step")if(typeof value==="string")value=this._parse(value);if(key==="icons"){this.buttons.first().find(".ui-icon").removeClass(this.options.icons.up).addClass(value.up);this.buttons.last().find(".ui-icon").removeClass(this.options.icons.down).addClass(value.down)};this._super(key,value);if(key==="disabled")if(value){this.element.prop("disabled",true);this.buttons.button("disable")}
81else{this.element.prop("disabled",false);this.buttons.button("enable")}},_setOptions:modifier(function(options){this._super(options);this._value(this.element.val())}),_parse:function(val){if(typeof val==="string"&&val!=="")val=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(val,10,this.options.culture):+val;return val===""||isNaN(val)?null:val},_format:function(value){if(value==="")return"";return window.Globalize&&this.options.numberFormat?Globalize.format(value,this.options.numberFormat,this.options.culture):value},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},_value:function(value,allowAny){var parsed;if(value!==""){parsed=this._parse(value);if(parsed!==null){if(!allowAny)parsed=this._adjustValue(parsed);value=this._format(parsed)}};this.element.val(value);this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",false).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");this.uiSpinner.replaceWith(this.element)},stepUp:modifier(function(steps){this._stepUp(steps)}),_stepUp:function(steps){if(this._start()){this._spin((steps||1)*this.options.step);this._stop()}},stepDown:modifier(function(steps){this._stepDown(steps)}),_stepDown:function(steps){if(this._start()){this._spin((steps||1)*-this.options.step);this._stop()}},pageUp:modifier(function(pages){this._stepUp((pages||1)*this.options.page)}),pageDown:modifier(function(pages){this._stepDown((pages||1)*this.options.page)}),value:function(newVal){if(!arguments.length)return this._parse(this.element.val());modifier(this._value).call(this,newVal)},widget:function(){return this.uiSpinner}})}(jQuery));(function($,undefined){var tabId=0,rhash=/#.*$/ 82function getNextTabId(){return++tabId} 83function isLocal(anchor){anchor=anchor.cloneNode(false);return anchor.hash.length>1&&decodeURIComponent(anchor.href.replace(rhash,""))===decodeURIComponent(location.href.replace(rhash,""))};$.widget("ui.tabs",{version:"1.10.4",delay:300,options:{active:null,collapsible:false,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var that=this,options=this.options;this.running=false;this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",options.collapsible).delegate(".ui-tabs-nav > li","mousedown"+this.eventNamespace,function(event){if($(this).is(".ui-state-disabled"))event.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){if($(this).closest("li").is(".ui-state-disabled"))this.blur()});this._processTabs();options.active=this._initialActive();if($.isArray(options.disabled))options.disabled=$.unique(options.disabled.concat($.map(this.tabs.filter(".ui-state-disabled"),function(li){return that.tabs.index(li)}))).sort();if(this.options.active!==false&&this.anchors.length){this.active=this._findActive(options.active)}else this.active=$();this._refresh();if(this.active.length)this.load(options.active)},_initialActive:function(){var active=this.options.active,collapsible=this.options.collapsible,locationHash=location.hash.substring(1);if(active===null){if(locationHash)this.tabs.each(function(i,tab){if($(tab).attr("aria-controls")===locationHash){active=i;return false}});if(active===null)active=this.tabs.index(this.tabs.filter(".ui-tabs-active"));if(active===null||active===-1)active=this.tabs.length?0:false};if(active!==false){active=this.tabs.index(this.tabs.eq(active));if(active===-1)active=collapsible?false:0};if(!collapsible&&active===false&&this.anchors.length)active=0;return active},_getCreateEventData:function(){return{tab:this.active,panel:!this.active.length?$():this._getPanelForTab(this.active)}},_tabKeydown:function(event){var focusedTab=$(this.document[0].activeElement).closest("li"),selectedIndex=this.tabs.index(focusedTab),goingForward=true;if(this._handlePageNav(event))return;switch(event.keyCode){case $.ui.keyCode.RIGHT:case $.ui.keyCode.DOWN:selectedIndex++;break;case $.ui.keyCode.UP:case $.ui.keyCode.LEFT:goingForward=false;selectedIndex--;break;case $.ui.keyCode.END:selectedIndex=this.anchors.length-1;break;case $.ui.keyCode.HOME:selectedIndex=0;break;case $.ui.keyCode.SPACE:event.preventDefault();clearTimeout(this.activating);this._activate(selectedIndex);return;case $.ui.keyCode.ENTER:event.preventDefault();clearTimeout(this.activating);this._activate(selectedIndex===this.options.active?false:selectedIndex);return;default:return};event.preventDefault();clearTimeout(this.activating);selectedIndex=this._focusNextTab(selectedIndex,goingForward);if(!event.ctrlKey){focusedTab.attr("aria-selected","false");this.tabs.eq(selectedIndex).attr("aria-selected","true");this.activating=this._delay(function(){this.option("active",selectedIndex)},this.delay)}},_panelKeydown:function(event){if(this._handlePageNav(event))return;if(event.ctrlKey&&event.keyCode===$.ui.keyCode.UP){event.preventDefault();this.active.focus()}},_handlePageNav:function(event){if(event.altKey&&event.keyCode===$.ui.keyCode.PAGE_UP){this._activate(this._focusNextTab(this.options.active-1,false));return true};if(event.altKey&&event.keyCode===$.ui.keyCode.PAGE_DOWN){this._activate(this._focusNextTab(this.options.active+1,true));return true}},_findNextTab:function(index,goingForward){var lastTabIndex=this.tabs.length-1 84function constrain(){if(index>lastTabIndex)index=0;if(index<0)index=lastTabIndex;return index};while($.inArray(constrain(),this.options.disabled)!==-1)index=goingForward?index+1:index-1;return index},_focusNextTab:function(index,goingForward){index=this._findNextTab(index,goingForward);this.tabs.eq(index).focus();return index},_setOption:function(key,value){if(key==="active"){this._activate(value);return};if(key==="disabled"){this._setupDisabled(value);return};this._super(key,value);if(key==="collapsible"){this.element.toggleClass("ui-tabs-collapsible",value);if(!value&&this.options.active===false)this._activate(0)};if(key==="event")this._setupEvents(value);if(key==="heightStyle")this._setupHeightStyle(value)},_tabId:function(tab){return tab.attr("aria-controls")||"ui-tabs-"+getNextTabId()},_sanitizeSelector:function(hash){return hash?hash.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var options=this.options,lis=this.tablist.children(":has(a[href])");options.disabled=$.map(lis.filter(".ui-state-disabled"),function(tab){return lis.index(tab)});this._processTabs();if(options.active===false||!this.anchors.length){options.active=false;this.active=$()}else if(this.active.length&&!$.contains(this.tablist[0],this.active[0])
84){if(this.tabs.length===options.disabled.length){options.active=false;this.active=$()}else this._activate(this._findNextTab(Math.max(0,options.active-1),false))}else options.active=this.tabs.index(this.active);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"});if(!this.active.length){this.tabs.eq(0).attr("tabIndex",0)}else{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"})}},_processTabs:function(){var that=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 $("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1});this.panels=$();this.anchors.each(function(i,anchor){var selector,panel,panelId,anchorId=$(anchor).uniqueId().attr("id"),tab=$(anchor).closest("li"),originalAriaControls=tab.attr("aria-controls");if(isLocal(anchor)){selector=anchor.hash;panel=that.element.find(that._sanitizeSelector(selector))}else{panelId=that._tabId(tab);selector="#"+panelId;panel=that.element.find(selector);if(!panel.length){panel=that._createPanel(panelId);panel.insertAfter(that.panels[i-1]||that.tablist)};panel.attr("aria-live","polite")};if(panel.length)that.panels=that.panels.add(panel);if(originalAriaControls)tab.data("ui-tabs-aria-controls",originalAriaControls);tab.attr({"aria-controls":selector.substring(1),"aria-labelledby":anchorId});panel.attr("aria-labelledby",anchorId)});this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.tablist||this.element.find("ol,ul").eq(0)},_createPanel:function(id){return $("<div>").attr("id",id).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",true)},_setupDisabled:function(disabled){if($.isArray(disabled))if(!disabled.length){disabled=false}else if(disabled.length===this.anchors.length)disabled=true;for(var i=0,li;(li=this.tabs[i]);i++)if(disabled===true||$.inArray(i,disabled)!==-1){$(li).addClass("ui-state-disabled").attr("aria-disabled","true")}else $(li).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=disabled},_setupEvents:function(event){var events={click:function(event){event.preventDefault()}};if(event)$.each(event.split(" "),function(index,eventName){events[eventName]="_eventHandler"});this._off(this.anchors.add(this.tabs).add(this.panels));this._on(this.anchors,events);this._on(this.tabs,{keydown:"_tabKeydown"});this._on(this.panels,{keydown:"_panelKeydown"});this._focusable(this.tabs);this._hoverable(this.tabs)},_setupHeightStyle:function(heightStyle){var maxHeight,parent=this.element.parent();if(heightStyle==="fill"){maxHeight=parent.height();maxHeight-=this.element.outerHeight()-this.element.height();this.element.siblings(":visible").each(function(){var elem=$(this),position=elem.css("position");if(position==="absolute"||position==="fixed")return;maxHeight-=elem.outerHeight(true)});this.element.children().not(this.panels).each(function(){maxHeight-=$(this).outerHeight(true)});this.panels.each(function(){$(this).height(Math.max(0,maxHeight-$(this).innerHeight()+$(this).height()))}).css("overflow","auto")}else if(heightStyle==="auto"){maxHeight=0;this.panels.each(function(){maxHeight=Math.max(maxHeight,$(this).height("").height())}).height(maxHeight)}},_eventHandler:function(event){var options=this.options,active=this.active,anchor=$(event.currentTarget),tab=anchor.closest("li"),clickedIsActive=tab[0]===active[0],collapsing=clickedIsActive&&options.collapsible,toShow=collapsing?$():this._getPanelForTab(tab),toHide=!active.length?$():this._getPanelForTab(active),eventData={oldTab:active,oldPanel:toHide,newTab:collapsing?$():tab,newPanel:toShow};event.preventDefault();if(tab.hasClass("ui-state-disabled")||tab.hasClass("ui-tabs-loading")||this.running||(clickedIsActive&&!options.collapsible)||(this._trigger("beforeActivate",event,eventData)===false))return;options.active=collapsing?false:this.tabs.index(tab);this.active=clickedIsActive?$():tab;if(this.xhr)this.xhr.abort();if(!toHide.length&&!toShow.length)$.error("jQuery UI Tabs: Mismatching fragment identifier.");if(toShow.length)this.load(this.tabs.index(tab),event);this._toggle(event,eventData)},_toggle:function(event,eventData){var that=this,toShow=eventData.newPanel,toHide=eventData.oldPanel;this.running=true 85function complete(){that.running=false;that._trigger("activate",event,eventData)} 86function show(){eventData.newTab.closest("li").addClass("ui-tabs-active ui-state-active");if(toShow.length&&that.options.show){that._show(toShow,that.options.show,complete)}else{toShow.show();complete()}};if(toHide.length&&this.options.hide){this._hide(toHide,this.options.hide,function(){eventData.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active");show()})}else{eventData.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active");toHide.hide();show()};toHide.attr({"aria-expanded":"false","aria-hidden":"true"});eventData.oldTab.attr("aria-selected","false");if(toShow.length&&toHide.length){eventData.oldTab.attr("tabIndex",-1)}else if(toShow.length)this.tabs.filter(function(){return $(this).attr("tabIndex")===0}).attr("tabIndex",-1);toShow.attr({"aria-expanded":"true","aria-hidden":"false"});eventData.newTab.attr({"aria-selected":"true",tabIndex:0})},_activate:function(index){var anchor,active=this._findActive(index);if(active[0]===this.active[0])return;if(!active.length)active=this.active;anchor=active.find(".ui-tabs-anchor")[0];this._eventHandler({target:anchor,currentTarget:anchor,preventDefault:$.noop})},_findActive:function(index){return index===false?$():this.tabs.eq(index)}
86,_getIndex:function(index){if(typeof index==="string")index=this.anchors.index(this.anchors.filter("[href$='"+index+"']"));return index},_destroy:function(){if(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(){if($.data(this,"ui-tabs-destroy")){$(this).remove()}else $(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 li=$(this),prev=li.data("ui-tabs-aria-controls");if(prev){li.attr("aria-controls",prev).removeData("ui-tabs-aria-controls")}else li.removeAttr("aria-controls")});this.panels.show();if(this.options.heightStyle!=="content")this.panels.css("height","")},enable:function(index){var disabled=this.options.disabled;if(disabled===false)return;if(index===undefined){disabled=false}else{index=this._getIndex(index);if($.isArray(disabled)){disabled=$.map(disabled,function(num){return num!==index?num:null})}else disabled=$.map(this.tabs,function(li,num){return num!==index?num:null})};this._setupDisabled(disabled)},disable:function(index){var disabled=this.options.disabled;if(disabled===true)return;if(index===undefined){disabled=true}else{index=this._getIndex(index);if($.inArray(index,disabled)!==-1)return;if($.isArray(disabled)){disabled=$.merge([index],disabled).sort()}else disabled=[index]};this._setupDisabled(disabled)},load:function(index,event){index=this._getIndex(index);var that=this,tab=this.tabs.eq(index),anchor=tab.find(".ui-tabs-anchor"),panel=this._getPanelForTab(tab),eventData={tab:tab,panel:panel};if(isLocal(anchor[0]))return;this.xhr=$.ajax(this._ajaxSettings(anchor,event,eventData));if(this.xhr&&this.xhr.statusText!=="canceled"){tab.addClass("ui-tabs-loading");panel.attr("aria-busy","true");this.xhr.success(function(response){setTimeout(function(){panel.html(response);that._trigger("load",event,eventData)},1)}).complete(function(jqXHR,status){setTimeout(function(){if(status==="abort")that.panels.stop(false,true);tab.removeClass("ui-tabs-loading");panel.removeAttr("aria-busy");if(jqXHR===that.xhr)delete that.xhr},1)})}},_ajaxSettings:function(anchor,event,eventData){var that=this;return{url:anchor.attr("href"),beforeSend:function(jqXHR,settings){return that._trigger("beforeLoad",event,$.extend({jqXHR:jqXHR,ajaxSettings:settings},eventData))}}},_getPanelForTab:function(tab){var id=$(tab).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+id))}})})(jQuery);(function($){var increments=0 87function addDescribedBy(elem,id){var describedby=(elem.attr("aria-describedby")||"").split(/\s+/);describedby.push(id);elem.data("ui-tooltip-id",id).attr("aria-describedby",$.trim(describedby.join(" ")))} 88function removeDescribedBy(elem){var id=elem.data("ui-tooltip-id"),describedby=(elem.attr("aria-describedby")||"").split(/\s+/),index=$.inArray(id,describedby);if(index!==-1)describedby.splice(index,1);elem.removeData("ui-tooltip-id");describedby=$.trim(describedby.join(" "));if(describedby){elem.attr("aria-describedby",describedby)}else elem.removeAttr("aria-describedby")};$.widget("ui.tooltip",{version:"1.10.4",options:{content:function(){var title=$(this).attr("title")||"";return $("<a>").text(title).html()},hide:true,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:true,tooltipClass:null,track:false,close:null,open:null},_create:function(){this._on({mouseover:"open",focusin:"open"});this.tooltips={};this.parents={};if(this.options.disabled)this._disable()},_setOption:function(key,value){var that=this;if(key==="disabled"){this[value?"_disable":"_enable"]();this.options[key]=value;return};this._super(key,value);if(key==="content")$.each(this.tooltips,function(id,element){that._updateContent(element)})},_disable:function(){var that=this;$.each(this.tooltips,function(id,element){var event=$.Event("blur");event.target=event.currentTarget=element[0];that.close(event,true)});this.element.find(this.options.items).addBack().each(function(){var element=$(this);if(element.is("[title]"))element.data("ui-tooltip-title",element.attr("title")).attr("title","")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var element=$(this);if(element.data("ui-tooltip-title"))element.attr("title",element.data("ui-tooltip-title"))})},open:function(event){var that=this,target=$(event?event.target:this.element).closest(this.options.items);if(!target.length||target.data("ui-tooltip-id"))return;if(target.attr("title"))target.data("ui-tooltip-title",target.attr("title"));target.data("ui-tooltip-open",true);if(event&&event.type==="mouseover")target.parents().each(function(){var parent=$(this),blurEvent;if(parent.data("ui-tooltip-open")){blurEvent=$.Event("blur");blurEvent.target=blurEvent.currentTarget=this;that.close(blurEvent,true)};if(parent.attr("title")){parent.uniqueId();that.parents[this.id]={element:this,title:parent.attr("title")};parent.attr("title","")}});this._updateContent(target,event)},_updateContent:function(target,event){var content,contentOption=this.options.content,that=this,eventType=event?event.type:null;if(typeof contentOption==="string")return this._open(event,target,contentOption);content=contentOption.call(target[0],function(response){if(!target.data("ui-tooltip-open"))return;that._delay(function(){if(event)event.type=eventType;this._open(event,target,response)})});if(content)this._open(event,target,content)},_open:function(event,target,content){var tooltip,events,delayedShow,positionOption=$.extend({},this.options.position);if(!content)return;tooltip=this._find(target);if(tooltip.length){tooltip.find(".ui-tooltip-content").html(content);return};if(target.is("[title]"))if(event&&event.type==="mouseover"){target.attr("title","")}else target.removeAttr("title");tooltip=this._tooltip(target);addDescribedBy(target,tooltip.attr("id"));tooltip.find(".ui-tooltip-content").html(content) 89function position(event){positionOption.of=event;if(tooltip.is(":hidden"))return;tooltip.position(positionOption)};if(this.options.track&&event&&/^mouse/.test(event.type)){this._on(this.document,{mousemove:position});position(event)}else tooltip.position($.extend({of:target},this.options.position));tooltip.hide();this._show(tooltip,this.options.show);if(this.options.show&&this.options.show.delay)delayedShow=this.delayedShow=setInterval(function(){if(tooltip.is(":visible")){position(positionOption.of);clearInterval(delayedShow)}},$.fx.interval);this._trigger("open",event,{tooltip:tooltip});events={keyup:function(event){if(event.keyCode===$.ui.keyCode.ESCAPE){var fakeEvent=$.Event(event);fakeEvent.currentTarget=target[0];this.close(fakeEvent,true)}},remove:function(){this._removeTooltip(tooltip)}};if(!event||event.type==="mouseover")events.mouseleave="close";if(!event||event.type==="focusin")events.focusout="close";this._on(true,target,events)},close:function(event){var that=this,target=$(event?event.currentTarget:this.element),tooltip=this._find(target);if(this.closing)return;clearInterval(this.delayedShow);if(target.data("ui-tooltip-title"))target.attr("title",target.data("ui-tooltip-title"));removeDescribedBy(target);tooltip.stop(true);this._hide(tooltip,this.options.hide,function(){that._removeTooltip($(this))});target.removeData("ui-tooltip-open");this._off(target,"mouseleave focusout keyup");if(target[0]!==this.element[0])this._off(target,"remove");this._off(this.document,"mousemove");
89if(event&&event.type==="mouseleave")$.each(this.parents,function(id,parent){$(parent.element).attr("title",parent.title);delete that.parents[id]});this.closing=true;this._trigger("close",event,{tooltip:tooltip});this.closing=false},_tooltip:function(element){var id="ui-tooltip-"+ increments++,tooltip=$("<div>").attr({id:id,role:"tooltip"}).addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||""));$("<div>").addClass("ui-tooltip-content").appendTo(tooltip);tooltip.appendTo(this.document[0].body);this.tooltips[id]=element;return tooltip},_find:function(target){var id=target.data("ui-tooltip-id");return id?$("#"+id):$()},_removeTooltip:function(tooltip){tooltip.remove();delete this.tooltips[tooltip.attr("id")]},_destroy:function(){var that=this;$.each(this.tooltips,function(id,element){var event=$.Event("blur");event.target=event.currentTarget=element[0];that.close(event,true);$("#"+id).remove();if(element.data("ui-tooltip-title")){element.attr("title",element.data("ui-tooltip-title"));element.removeData("ui-tooltip-title")}})}})}(jQuery));(function($,undefined){var dataSpace="ui-effects-";$.effects={effect:{}};(function(jQuery,undefined){var stepHooks="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",rplusequals=/^([\-+])=\s*(\d+\.?\d*)/,stringParsers=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(execResult){return[execResult[1],execResult[2],execResult[3],execResult[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(execResult){return[execResult[1]*2.55,execResult[2]*2.55,execResult[3]*2.55,execResult[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(execResult){return[parseInt(execResult[1],16),parseInt(execResult[2],16),parseInt(execResult[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(execResult){return[parseInt(execResult[1]+execResult[1],16),parseInt(execResult[2]+execResult[2],16),parseInt(execResult[3]+execResult[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(execResult){return[execResult[1],execResult[2]/100,execResult[3]/100,execResult[4]]}}],color=jQuery.Color=function(color,green,blue,alpha){return new jQuery.Color.fn.parse(color,green,blue,alpha)},spaces={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"}}}},propTypes={"byte":{floor:true,max:255},percent:{max:1},degrees:{mod:360,floor:true}},support=color.support={},supportElem=jQuery("<p>")[0],colors,each=jQuery.each;supportElem.style.cssText="background-color:rgba(1,1,1,.5)";support.rgba=supportElem.style.backgroundColor.indexOf("rgba")>-1;each(spaces,function(spaceName,space){space.cache="_"+spaceName;space.props.alpha={idx:3,type:"percent",def:1}}) 90function clamp(value,prop,allowEmpty){var type=propTypes[prop.type]||{};if(value==null)return(allowEmpty||!prop.def)?null:prop.def;value=type.floor?~~value:parseFloat(value);if(isNaN(value))return prop.def;if(type.mod)return(value+type.mod)%type.mod;return 0>value?0:type.max<value?type.max:value} 91function stringParse(string){var inst=color(),rgba=inst._rgba=[];string=string.toLowerCase();each(stringParsers,function(i,parser){var parsed,match=parser.re.exec(string),values=match&&parser.parse(match),spaceName=parser.space||"rgba";if(values){parsed=inst[spaceName](values);inst[spaces[spaceName].cache]=parsed[spaces[spaceName].cache];rgba=inst._rgba=parsed._rgba;return false}});if(rgba.length){if(rgba.join()==="0,0,0,0")jQuery.extend(rgba,colors.transparent);return inst};return colors[string]};color.fn=jQuery.extend(color.prototype,{parse:function(red,green,blue,alpha){if(red===undefined){this._rgba=[null,null,null,null];return this};if(red.jquery||red.nodeType){red=jQuery(red).css(green);green=undefined};var inst=this,type=jQuery.type(red),rgba=this._rgba=[];if(green!==undefined){red=[red,green,blue,alpha];type="array"};if(type==="string")return this.parse(stringParse(red)||colors._default);if(type==="array"){each(spaces.rgba.props,function(key,prop){rgba[prop.idx]=clamp(red[prop.idx],prop)});return this};if(type==="object"){if(red instanceof color){each(spaces,function(spaceName,space){if(red[space.cache])inst[space.cache]=red[space.cache].slice()})}else each(spaces,function(spaceName,space){var cache=space.cache;each(space.props,function(key,prop){if(!inst[cache]&&space.to){if(key==="alpha"||red[key]==null)return;
91inst[cache]=space.to(inst._rgba)};inst[cache][prop.idx]=clamp(red[key],prop,true)});if(inst[cache]&&jQuery.inArray(null,inst[cache].slice(0,3))<0){inst[cache][3]=1;if(space.from)inst._rgba=space.from(inst[cache])}});return this}},is:function(compare){var is=color(compare),same=true,inst=this;each(spaces,function(_,space){var localCache,isCache=is[space.cache];if(isCache){localCache=inst[space.cache]||space.to&&space.to(inst._rgba)||[];each(space.props,function(_,prop){if(isCache[prop.idx]!=null){same=(isCache[prop.idx]===localCache[prop.idx]);return same}})};return same});return same},_space:function(){var used=[],inst=this;each(spaces,function(spaceName,space){if(inst[space.cache])used.push(spaceName)});return used.pop()},transition:function(other,distance){var end=color(other),spaceName=end._space(),space=spaces[spaceName],startColor=this.alpha()===0?color("transparent"):this,start=startColor[space.cache]||space.to(startColor._rgba),result=start.slice();end=end[space.cache];each(space.props,function(key,prop){var index=prop.idx,startValue=start[index],endValue=end[index],type=propTypes[prop.type]||{};if(endValue===null)return;if(startValue===null){result[index]=endValue}else{if(type.mod)if(endValue-startValue>type.mod/2){startValue+=type.mod}else if(startValue-endValue>type.mod/2)startValue-=type.mod;result[index]=clamp((endValue-startValue)*distance+startValue,prop)}});return this[spaceName](result)},blend:function(opaque){if(this._rgba[3]===1)return this;var rgb=this._rgba.slice(),a=rgb.pop(),blend=color(opaque)._rgba;return color(jQuery.map(rgb,function(v,i){return(1-a)*blend[i]+a*v}))},toRgbaString:function(){var prefix="rgba(",rgba=jQuery.map(this._rgba,function(v,i){return v==null?(i>2?1:0):v});if(rgba[3]===1){rgba.pop();prefix="rgb("};return prefix+rgba.join()+")"},toHslaString:function(){var prefix="hsla(",hsla=jQuery.map(this.hsla(),function(v,i){if(v==null)v=i>2?1:0;if(i&&i<3)v=Math.round(v*100)+"%";return v});if(hsla[3]===1){hsla.pop();prefix="hsl("};return prefix+hsla.join()+")"},toHexString:function(includeAlpha){var rgba=this._rgba.slice(),alpha=rgba.pop();if(includeAlpha)rgba.push(~~(alpha*255));return"#"+jQuery.map(rgba,function(v){v=(v||0).toString(16);return v.length===1?"0"+v:v}).join("")},toString:function(){return this._rgba[3]===0?"transparent":this.toRgbaString()}});color.fn.parse.prototype=color.fn 92function hue2rgb(p,q,h){h=(h+1)%1;if(h*6<1)return p+(q-p)*h*6;if(h*2<1)return q;if(h*3<2)return p+(q-p)*((2/3)-h)*6;return p};spaces.hsla.to=function(rgba){if(rgba[0]==null||rgba[1]==null||rgba[2]==null)return[null,null,null,rgba[3]];var r=rgba[0]/255,g=rgba[1]/255,b=rgba[2]/255,a=rgba[3],max=Math.max(r,g,b),min=Math.min(r,g,b),diff=max-min,add=max+min,l=add*0.5,h,s;if(min===max){h=0}else if(r===max){h=(60*(g-b)/diff)+360}else if(g===max){h=(60*(b-r)/diff)+120}else h=(60*(r-g)/diff)+240;if(diff===0){s=0}else if(l<=0.5){s=diff/add}else s=diff/(2-add);return[Math.round(h)%360,s,l,a==null?1:a]};spaces.hsla.from=function(hsla){if(hsla[0]==null||hsla[1]==null||hsla[2]==null)return[null,null,null,hsla[3]];var h=hsla[0]/360,s=hsla[1],l=hsla[2],a=hsla[3],q=l<=0.5?l*(1+s):l+s-l*s,p=2*l-q;return[Math.round(hue2rgb(p,q,h+(1/3))*255),Math.round(hue2rgb(p,q,h)*255),Math.round(hue2rgb(p,q,h-(1/3))*255),a]};each(spaces,function(spaceName,space){var props=space.props,cache=space.cache,to=space.to,from=space.from;color.fn[spaceName]=function(value){if(to&&!this[cache])this[cache]=to(this._rgba);if(value===undefined)return this[cache].slice();var ret,type=jQuery.type(value),arr=(type==="array"||type==="object")?value:arguments,local=this[cache].slice();each(props,function(key,prop){var val=arr[type==="object"?key:prop.idx];if(val==null)val=local[prop.idx];local[prop.idx]=clamp(val,prop)});if(from){ret=color(from(local));ret[cache]=local;return ret}else return color(local)};each(props,function(key,prop){if(color.fn[key])return;color.fn[key]=function(value){var vtype=jQuery.type(value),fn=(key==="alpha"?(this._hsla?"hsla":"rgba"):spaceName),local=this[fn](),cur=local[prop.idx],match;if(vtype==="undefined")return cur;if(vtype==="function"){value=value.call(this,cur);vtype=jQuery.type(value)};if(value==null&&prop.empty)return this;if(vtype==="string"){match=rplusequals.exec(value);if(match)value=cur+parseFloat(match[2])*(match[1]==="+"?1:-1)};local[prop.idx]=value;return this[fn](local)}})});color.hook=function(hook){var hooks=hook.split(" ");each(hooks,function(i,hook){jQuery.cssHooks[hook]={set:function(elem,value){var parsed,curElem,backgroundColor="";
92if(value!=="transparent"&&(jQuery.type(value)!=="string"||(parsed=stringParse(value)))){value=color(parsed||value);if(!support.rgba&&value._rgba[3]!==1){curElem=hook==="backgroundColor"?elem.parentNode:elem;while((backgroundColor===""||backgroundColor==="transparent")&&curElem&&curElem.style)try{backgroundColor=jQuery.css(curElem,"backgroundColor");curElem=curElem.parentNode}catch(e){};value=value.blend(backgroundColor&&backgroundColor!=="transparent"?backgroundColor:"_default")};value=value.toRgbaString()};try{elem.style[hook]=value}catch(e){}}};jQuery.fx.step[hook]=function(fx){if(!fx.colorInit){fx.start=color(fx.elem,hook);fx.end=color(fx.end);fx.colorInit=true};jQuery.cssHooks[hook].set(fx.elem,fx.start.transition(fx.end,fx.pos))}})};color.hook(stepHooks);jQuery.cssHooks.borderColor={expand:function(value){var expanded={};each(["Top","Right","Bottom","Left"],function(i,part){expanded["border"+part+"Color"]=value});return expanded}};colors=jQuery.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(){var classAnimationActions=["add","remove","toggle"],shorthandStyles={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};$.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(_,prop){$.fx.step[prop]=function(fx){if(fx.end!=="none"&&!fx.setAttr||fx.pos===1&&!fx.setAttr){jQuery.style(fx.elem,prop,fx.end);fx.setAttr=true}}}) 93function getElementStyles(elem){var key,len,style=elem.ownerDocument.defaultView?elem.ownerDocument.defaultView.getComputedStyle(elem,null):elem.currentStyle,styles={};if(style&&style.length&&style[0]&&style[style[0]]){len=style.length;while(len--){key=style[len];if(typeof style[key]==="string")styles[$.camelCase(key)]=style[key]}}else for(key in style)if(typeof style[key]==="string")styles[key]=style[key];return styles} 94function styleDifference(oldStyle,newStyle){var diff={},name,value;for(name in newStyle){value=newStyle[name];if(oldStyle[name]!==value)if(!shorthandStyles[name])if($.fx.step[name]||!isNaN(parseFloat(value)))diff[name]=value};return diff};if(!$.fn.addBack)$.fn.addBack=function(selector){return this.add(selector==null?this.prevObject:this.prevObject.filter(selector))};$.effects.animateClass=function(value,duration,easing,callback){var o=$.speed(duration,easing,callback);return this.queue(function(){var animated=$(this),baseClass=animated.attr("class")||"",applyClassChange,allAnimations=o.children?animated.find("*").addBack():animated;allAnimations=allAnimations.map(function(){var el=$(this);return{el:el,start:getElementStyles(this)}});applyClassChange=function(){$.each(classAnimationActions,function(i,action){if(value[action])animated[action+"Class"](value[action])})};applyClassChange();allAnimations=allAnimations.map(function(){this.end=getElementStyles(this.el[0]);this.diff=styleDifference(this.start,this.end);return this});animated.attr("class",baseClass);allAnimations=allAnimations.map(function(){var styleInfo=this,dfd=$.Deferred(),opts=$.extend({},o,{queue:false,complete:function(){dfd.resolve(styleInfo)}});this.el.animate(this.diff,opts);return dfd.promise()});$.when.apply($,allAnimations.get()).done(function(){applyClassChange();$.each(arguments,function(){var el=this.el;$.each(this.diff,function(key){el.css(key,"")})});o.complete.call(animated[0])})})};$.fn.extend({addClass:(function(orig){return function(classNames,speed,easing,callback){return speed?$.effects.animateClass.call(this,{add:classNames},speed,easing,callback):orig.apply(this,arguments)}})($.fn.addClass),removeClass:(function(orig){return function(classNames,speed,easing,callback){return arguments.length>1?$.effects.animateClass.call(this,{remove:classNames},speed,easing,callback):orig.apply(this,arguments)}})($.fn.removeClass),toggleClass:(function(orig){return function(classNames,force,speed,easing,callback){if(typeof force==="boolean"||force===undefined){if(!speed){return orig.apply(this,arguments)}else return $.effects.animateClass.call(this,(force?{add:classNames}:{remove:classNames}),speed,easing,callback)}else return $.effects.animateClass.call(this,{toggle:classNames},force,speed,easing)}})($.fn.toggleClass),switchClass:function(remove,add,speed,easing,callback){return $.effects.animateClass.call(this,{add:add,remove:remove},speed,easing,callback)}})})();(function(){$.extend($.effects,{version:"1.10.4",save:function(element,set){for(var i=0;i<set.length;i++)if(set[i]!==null)element.data(dataSpace+set[i],element[0].style[set[i]])},restore:function(element,set){var val,i;for(i=0;i<set.length;i++)if(set[i]!==null){val=element.data(dataSpace+set[i]);if(val===undefined)val="";element.css(set[i],val)}},setMode:function(el,mode){if(mode==="toggle")mode=el.is(":hidden")?"show":"hide";return mode},getBaseline:function(origin,original){var y,x;switch(origin[0]){case"top":y=0;break;case"middle":y=0.5;break;case"bottom":y=1;break;default:y=origin[0]/original.height};switch(origin[1]){case"left":x=0;break;case"center":x=0.5;break;case"right":x=1;break;default:x=origin[1]/original.width};return{x:x,y:y}},createWrapper:function(element){if(element.parent().is(".ui-effects-wrapper"))return element.parent();var props={width:element.outerWidth(true),height:element.outerHeight(true),"float":element.css("float")},wrapper=$("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),size={width:element.width(),height:element.height()},active=document.activeElement;try{active.id}catch(e){active=document.body};element.wrap(wrapper);if(element[0]===active||$.contains(element[0],active))$(active).focus();wrapper=element.parent();if(element.css("position")==="static"){wrapper.css({position:"relative"});element.css({position:"relative"})}else{$.extend(props,{position:element.css("position"),zIndex:element.css("z-index")});$.each(["top","left","bottom","right"],function(i,pos){props[pos]=element.css(pos);if(isNaN(parseInt(props[pos],10)))props[pos]="auto"});element.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})};element.css(size);return wrapper.css(props).show()},removeWrapper:function(element){var active=document.activeElement;if(element.parent().is(".ui-effects-wrapper")){element.parent().replaceWith(element);if(element[0]===active||$.contains(element[0],active))$(active).focus()};return element},setTransition:function(element,list,factor,value){value=value||{};$.each(list,function(i,x){var unit=element.cssUnit(x);if(unit[0]>0)value[x]=unit[0]*factor+unit[1]});return value}}) 95function _normalizeArguments(effect,options,speed,callback){if($.isPlainObject(effect)){options=effect;effect=effect.effect};effect={effect:effect};if(options==null)options={};if($.isFunction(options)){callback=options;speed=null;options={}};if(typeof options==="number"||$.fx.speeds[options]){callback=speed;speed=options;options={}};if($.isFunction(speed)){callback=speed;speed=null};if(options)$.extend(effect,options);speed=speed||options.duration;effect.duration=$.fx.off?0:typeof speed==="number"?speed:speed in $.fx.speeds?$.fx.speeds[speed]:$.fx.speeds._default;effect.complete=callback||options.complete;return effect} 96function standardAnimationOption(option){if(!option||typeof option==="number"||$.fx.speeds[option])return true;if(typeof option==="string"&&!$.effects.effect[option])return true;if($.isFunction(option))return true;if(typeof option==="object"&&!option.effect)return true;return false};$.fn.extend({effect:function(){var args=_normalizeArguments.apply(this,arguments),mode=args.mode,queue=args.queue,effectMethod=$.effects.effect[args.effect];if($.fx.off||!effectMethod)if(mode){return this[mode](args.duration,args.complete)}else return this.each(function(){if(args.complete)args.complete.call(this)}) 97function run(next){var elem=$(this),complete=args.complete,mode=args.mode 98function done(){if($.isFunction(complete))complete.call(elem[0]);if($.isFunction(next))next()};if(elem.is(":hidden")?mode==="hide":mode==="show"){elem[mode]();done()}else effectMethod.call(elem[0],args,done)};return queue===false?this.each(run):this.queue(queue||"fx",run)},show:(function(orig){return function(option){if(standardAnimationOption(option)){return orig.apply(this,arguments)}else{var args=_normalizeArguments.apply(this,arguments);args.mode="show";return this.effect.call(this,args)}}})($.fn.show),hide:(function(orig){return function(option){if(standardAnimationOption(option)){return orig.apply(this,arguments)}else{var args=_normalizeArguments.apply(this,arguments);args.mode="hide";return this.effect.call(this,args)}}})($.fn.hide),toggle:(function(orig){return function(option){if(standardAnimationOption(option)||typeof option==="boolean"){return orig.apply(this,arguments)}else{var args=_normalizeArguments.apply(this,arguments);args.mode="toggle";return this.effect.call(this,args)}}}
98)($.fn.toggle),cssUnit:function(key){var style=this.css(key),val=[];$.each(["em","px","%","pt"],function(i,unit){if(style.indexOf(unit)>0)val=[parseFloat(style),unit]});return val}})})();(function(){var baseEasings={};$.each(["Quad","Cubic","Quart","Quint","Expo"],function(i,name){baseEasings[name]=function(p){return Math.pow(p,i+2)}});$.extend(baseEasings,{Sine:function(p){return 1-Math.cos(p*Math.PI/2)},Circ:function(p){return 1-Math.sqrt(1-p*p)},Elastic:function(p){return p===0||p===1?p:-Math.pow(2,8*(p-1))*Math.sin(((p-1)*80-7.5)*Math.PI/15)},Back:function(p){return p*p*(3*p-2)},Bounce:function(p){var pow2,bounce=4;while(p<((pow2=Math.pow(2,--bounce))-1)/11);return 1/Math.pow(4,3-bounce)-7.5625*Math.pow((pow2*3-2)/22-p,2)}});$.each(baseEasings,function(name,easeIn){$.easing["easeIn"+name]=easeIn;$.easing["easeOut"+name]=function(p){return 1-easeIn(1-p)};$.easing["easeInOut"+name]=function(p){return p<0.5?easeIn(p*2)/2:1-easeIn(p*-2+2)/2}})})()})(jQuery);(function($,undefined){var rvertical=/up|down|vertical/,rpositivemotion=/up|left|vertical|horizontal/;$.effects.effect.blind=function(o,done){var el=$(this),props=["position","top","bottom","left","right","height","width"],mode=$.effects.setMode(el,o.mode||"hide"),direction=o.direction||"up",vertical=rvertical.test(direction),ref=vertical?"height":"width",ref2=vertical?"top":"left",motion=rpositivemotion.test(direction),animation={},show=mode==="show",wrapper,distance,margin;if(el.parent().is(".ui-effects-wrapper")){$.effects.save(el.parent(),props)}else $.effects.save(el,props);el.show();wrapper=$.effects.createWrapper(el).css({overflow:"hidden"});distance=wrapper[ref]();margin=parseFloat(wrapper.css(ref2))||0;animation[ref]=show?distance:0;if(!motion){el.css(vertical?"bottom":"right",0).css(vertical?"top":"left","auto").css({position:"absolute"});animation[ref2]=show?margin:distance+margin};if(show){wrapper.css(ref,0);if(!motion)wrapper.css(ref2,margin+distance)};wrapper.animate(animation,{duration:o.duration,easing:o.easing,queue:false,complete:function(){if(mode==="hide")el.hide();$.effects.restore(el,props);$.effects.removeWrapper(el);done()}})}})(jQuery);(function($,undefined){$.effects.effect.bounce=function(o,done){var el=$(this),props=["position","top","bottom","left","right","height","width"],mode=$.effects.setMode(el,o.mode||"effect"),hide=mode==="hide",show=mode==="show",direction=o.direction||"up",distance=o.distance,times=o.times||5,anims=times*2+(show||hide?1:0),speed=o.duration/anims,easing=o.easing,ref=(direction==="up"||direction==="down")?"top":"left",motion=(direction==="up"||direction==="left"),i,upAnim,downAnim,queue=el.queue(),queuelen=queue.length;if(show||hide)props.push("opacity");$.effects.save(el,props);el.show();$.effects.createWrapper(el);if(!distance)distance=el[ref==="top"?"outerHeight":"outerWidth"]()/3;if(show){downAnim={opacity:1};downAnim[ref]=0;el.css("opacity",0).css(ref,motion?-distance*2:distance*2).animate(downAnim,speed,easing)};if(hide)distance=distance/Math.pow(2,times-1);downAnim={};downAnim[ref]=0;for(i=0;i<times;i++){upAnim={};upAnim[ref]=(motion?"-=":"+=")+distance;el.animate(upAnim,speed,easing).animate(downAnim,speed,easing);distance=hide?distance*2:distance/2};if(hide){upAnim={opacity:0}
98;upAnim[ref]=(motion?"-=":"+=")+distance;el.animate(upAnim,speed,easing)};el.queue(function(){if(hide)el.hide();$.effects.restore(el,props);$.effects.removeWrapper(el);done()});if(queuelen>1)queue.splice.apply(queue,[1,0].concat(queue.splice(queuelen,anims+1)));el.dequeue()}})(jQuery);(function($,undefined){$.effects.effect.clip=function(o,done){var el=$(this),props=["position","top","bottom","left","right","height","width"],mode=$.effects.setMode(el,o.mode||"hide"),show=mode==="show",direction=o.direction||"vertical",vert=direction==="vertical",size=vert?"height":"width",position=vert?"top":"left",animation={},wrapper,animate,distance;$.effects.save(el,props);el.show();wrapper=$.effects.createWrapper(el).css({overflow:"hidden"});animate=(el[0].tagName==="IMG")?wrapper:el;distance=animate[size]();if(show){animate.css(size,0);animate.css(position,distance/2)};animation[size]=show?distance:0;animation[position]=show?0:distance/2;animate.animate(animation,{queue:false,duration:o.duration,easing:o.easing,complete:function(){if(!show)el.hide();$.effects.restore(el,props);$.effects.removeWrapper(el);done()}})}})(jQuery);(function($,undefined){$.effects.effect.drop=function(o,done){var el=$(this),props=["position","top","bottom","left","right","opacity","height","width"],mode=$.effects.setMode(el,o.mode||"hide"),show=mode==="show",direction=o.direction||"left",ref=(direction==="up"||direction==="down")?"top":"left",motion=(direction==="up"||direction==="left")?"pos":"neg",animation={opacity:show?1:0},distance;$.effects.save(el,props);el.show();$.effects.createWrapper(el);distance=o.distance||el[ref==="top"?"outerHeight":"outerWidth"](true)/2;if(show)el.css("opacity",0).css(ref,motion==="pos"?-distance:distance);animation[ref]=(show?(motion==="pos"?"+=":"-="):(motion==="pos"?"-=":"+="))+distance;el.animate(animation,{queue:false,duration:o.duration,easing:o.easing,complete:function(){if(mode==="hide")el.hide();$.effects.restore(el,props);$.effects.removeWrapper(el);done()}})}})(jQuery);(function($,undefined){$.effects.effect.explode=function(o,done){var rows=o.pieces?Math.round(Math.sqrt(o.pieces)):3,cells=rows,el=$(this),mode=$.effects.setMode(el,o.mode||"hide"),show=mode==="show",offset=el.show().css("visibility","hidden").offset(),width=Math.ceil(el.outerWidth()/cells),height=Math.ceil(el.outerHeight()/rows),pieces=[],i,j,left,top,mx,my 99function childComplete(){pieces.push(this);if(pieces.length===rows*cells)animComplete()};for(i=0;i<rows;i++){top=offset.top+i*height;my=i-(rows-1)/2;for(j=0;j<cells;j++){left=offset.left+j*width;mx=j-(cells-1)/2;el.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-j*width,top:-i*height}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:width,height:height,left:left+(show?mx*width:0),top:top+(show?my*height:0),opacity:show?0:1}).animate({left:left+(show?0:mx*width),top:top+(show?0:my*height),opacity:show?1:0},o.duration||500,o.easing,childComplete)}} 100function animComplete(){el.css({visibility:"visible"});$(pieces).remove();if(!show)el.hide();done()}}})(jQuery);(function($,undefined){$.effects.effect.fade=function(o,done){var el=$(this),mode=$.effects.setMode(el,o.mode||"toggle");el.animate({opacity:mode},{queue:false,duration:o.duration,easing:o.easing,complete:done})}})(jQuery);(function($,undefined){$.effects.effect.fold=function(o,done){var el=$(this),props=["position","top","bottom","left","right","height","width"],mode=$.effects.setMode(el,o.mode||"hide"),show=mode==="show",hide=mode==="hide",size=o.size||15,percent=/([0-9]+)%/.exec(size),horizFirst=!!o.horizFirst,widthFirst=show!==horizFirst,ref=widthFirst?["width","height"]:["height","width"],duration=o.duration/2,wrapper,distance,animation1={},animation2={};$.effects.save(el,props);el.show();wrapper=$.effects.createWrapper(el).css({overflow:"hidden"});distance=widthFirst?[wrapper.width(),wrapper.height()]:[wrapper.height(),wrapper.width()];if(percent)size=parseInt(percent[1],10)/100*distance[hide?0:1];if(show)wrapper.css(horizFirst?{height:0,width:size}:{height:size,width:0});animation1[ref[0]]=show?distance[0]:size;animation2[ref[1]]=show?distance[1]:0;wrapper.animate(animation1,duration,o.easing).animate(animation2,duration,o.easing,function(){if(hide)el.hide();$.effects.restore(el,props);$.effects.removeWrapper(el);done()})}})(jQuery);(function($,undefined){$.effects.effect.highlight=function(o,done){var elem=$(this),props=["backgroundImage","backgroundColor","opacity"],mode=$.effects.setMode(elem,o.mode||"show"),animation={backgroundColor:elem.css("backgroundColor")};if(mode==="hide")animation.opacity=0;$.effects.save(elem,props);elem.show().css({backgroundImage:"none",backgroundColor:o.color||"#ffff99"}).animate(animation,{queue:false,duration:o.duration,easing:o.easing,complete:function(){if(mode==="hide")elem.hide();$.effects.restore(elem,props);done()}})}})(jQuery);(function($,undefined){$.effects.effect.pulsate=function(o,done){var elem=$(this),mode=$.effects.setMode(elem,o.mode||"show"),show=mode==="show",hide=mode==="hide",showhide=(show||mode==="hide"),anims=((o.times||5)*2)+(showhide?1:0),duration=o.duration/anims,animateTo=0,queue=elem.queue(),queuelen=queue.length,i;if(show||!elem.is(":visible")){elem.css("opacity",0).show();animateTo=1};for(i=1;i<anims;i++){elem.animate({opacity:animateTo},duration,o.easing);animateTo=1-animateTo};elem.animate({opacity:animateTo},duration,o.easing);elem.queue(function(){if(hide)elem.hide();done()});if(queuelen>1)queue.splice.apply(queue,[1,0].concat(queue.splice(queuelen,anims+1)));elem.dequeue()}})(jQuery);(function($,undefined){$.effects.effect.puff=function(o,done){var elem=$(this),mode=$.effects.setMode(elem,o.mode||"hide"),hide=mode==="hide",percent=parseInt(o.percent,10)||150,factor=percent/100,original={height:elem.height(),width:elem.width(),outerHeight:elem.outerHeight(),outerWidth:elem.outerWidth()};$.extend(o,{effect:"scale",queue:false,fade:true,mode:mode,complete:done,percent:hide?percent:100,from:hide?original:{height:original.height*factor,width:original.width*factor,outerHeight:original.outerHeight*factor,outerWidth:original.outerWidth*factor}});elem.effect(o)};$.effects.effect.scale=function(o,done){var el=$(this),options=$.extend(true,{},o),mode=$.effects.setMode(el,o.mode||"effect"),percent=parseInt(o.percent,10)||(parseInt(o.percent,10)===0?0:(mode==="hide"?0:100)),direction=o.direction||"both",origin=o.origin,original={height:el.height(),width:el.width(),outerHeight:el.outerHeight(),outerWidth:el.outerWidth()},factor={y:direction!=="horizontal"?(percent/100):1,x:direction!=="vertical"?(percent/100):1};options.effect="size";options.queue=false;options.complete=done;if(mode!=="effect"){options.origin=origin||["middle","center"];options.restore=true};options.from=o.from||(mode==="show"?{height:0,width:0,outerHeight:0,outerWidth:0}:original);options.to={height:original.height*factor.y,width:original.width*factor.x,outerHeight:original.outerHeight*factor.y,outerWidth:original.outerWidth*factor.x};if(options.fade){if(mode==="show"){options.from.opacity=0;options.to.opacity=1};if(mode==="hide"){options.from.opacity=1;options.to.opacity=0}};el.effect(options)};$.effects.effect.size=function(o,done){var original,baseline,factor,el=$(this),props0=["position","top","bottom","left","right","width","height","overflow","opacity"],props1=["position","top","bottom","left","right","overflow","opacity"],props2=["width","height","overflow"],cProps=["fontSize"],vProps=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],hProps=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],mode=$.effects.setMode(el,o.mode||"effect"),restore=o.restore||mode!=="effect",scale=o.scale||"both",origin=o.origin||["middle","center"],position=el.css("position"),props=restore?props0:props1,zero={height:0,width:0,outerHeight:0,outerWidth:0};if(mode==="show")el.show();original={height:el.height(),width:el.width(),outerHeight:el.outerHeight(),outerWidth:el.outerWidth()};if(o.mode==="toggle"&&mode==="show"){el.from=o.to||zero;el.to=o.from||original}else{el.from=o.from||(mode==="show"?zero:original);el.to=o.to||(mode==="hide"?zero:original)};factor={from:{y:el.from.height/original.height,x:el.from.width/original.width}
100,to:{y:el.to.height/original.height,x:el.to.width/original.width}};if(scale==="box"||scale==="both"){if(factor.from.y!==factor.to.y){props=props.concat(vProps);el.from=$.effects.setTransition(el,vProps,factor.from.y,el.from);el.to=$.effects.setTransition(el,vProps,factor.to.y,el.to)};if(factor.from.x!==factor.to.x){props=props.concat(hProps);el.from=$.effects.setTransition(el,hProps,factor.from.x,el.from);el.to=$.effects.setTransition(el,hProps,factor.to.x,el.to)}};if(scale==="content"||scale==="both")if(factor.from.y!==factor.to.y){props=props.concat(cProps).concat(props2);el.from=$.effects.setTransition(el,cProps,factor.from.y,el.from);el.to=$.effects.setTransition(el,cProps,factor.to.y,el.to)};$.effects.save(el,props);el.show();$.effects.createWrapper(el);el.css("overflow","hidden").css(el.from);if(origin){baseline=$.effects.getBaseline(origin,original);el.from.top=(original.outerHeight-el.outerHeight())*baseline.y;el.from.left=(original.outerWidth-el.outerWidth())*baseline.x;el.to.top=(original.outerHeight-el.to.outerHeight)*baseline.y;el.to.left=(original.outerWidth-el.to.outerWidth)*baseline.x};el.css(el.from);if(scale==="content"||scale==="both"){vProps=vProps.concat(["marginTop","marginBottom"]).concat(cProps);hProps=hProps.concat(["marginLeft","marginRight"]);props2=props0.concat(vProps).concat(hProps);el.find("*[width]").each(function(){var child=$(this),c_original={height:child.height(),width:child.width(),outerHeight:child.outerHeight(),outerWidth:child.outerWidth()};if(restore)$.effects.save(child,props2);child.from={height:c_original.height*factor.from.y,width:c_original.width*factor.from.x,outerHeight:c_original.outerHeight*factor.from.y,outerWidth:c_original.outerWidth*factor.from.x};child.to={height:c_original.height*factor.to.y,width:c_original.width*factor.to.x,outerHeight:c_original.height*factor.to.y,outerWidth:c_original.width*factor.to.x};if(factor.from.y!==factor.to.y){child.from=$.effects.setTransition(child,vProps,factor.from.y,child.from);child.to=$.effects.setTransition(child,vProps,factor.to.y,child.to)};if(factor.from.x!==factor.to.x){child.from=$.effects.setTransition(child,hProps,factor.from.x,child.from);child.to=$.effects.setTransition(child,hProps,factor.to.x,child.to)};child.css(child.from);child.animate(child.to,o.duration,o.easing,function(){if(restore)$.effects.restore(child,props2)})})};el.animate(el.to,{queue:false,duration:o.duration,easing:o.easing,complete:function(){if(el.to.opacity===0)el.css("opacity",el.from.opacity);if(mode==="hide")el.hide();$.effects.restore(el,props);if(!restore)if(position==="static"){el.css({position:"relative",top:el.to.top,left
100:el.to.left})}else $.each(["top","left"],function(idx,pos){el.css(pos,function(_,str){var val=parseInt(str,10),toRef=idx?el.to.left:el.to.top;if(str==="auto")return toRef+"px";return val+toRef+"px"})});$.effects.removeWrapper(el);done()}})}})(jQuery);(function($,undefined){$.effects.effect.shake=function(o,done){var el=$(this),props=["position","top","bottom","left","right","height","width"],mode=$.effects.setMode(el,o.mode||"effect"),direction=o.direction||"left",distance=o.distance||20,times=o.times||3,anims=times*2+1,speed=Math.round(o.duration/anims),ref=(direction==="up"||direction==="down")?"top":"left",positiveMotion=(direction==="up"||direction==="left"),animation={},animation1={},animation2={},i,queue=el.queue(),queuelen=queue.length;$.effects.save(el,props);el.show();$.effects.createWrapper(el);animation[ref]=(positiveMotion?"-=":"+=")+distance;animation1[ref]=(positiveMotion?"+=":"-=")+distance*2;animation2[ref]=(positiveMotion?"-=":"+=")+distance*2;el.animate(animation,speed,o.easing);for(i=1;i<times;i++)el.animate(animation1,speed,o.easing).animate(animation2,speed,o.easing);el.animate(animation1,speed,o.easing).animate(animation,speed/2,o.easing).queue(function(){if(mode==="hide")el.hide();$.effects.restore(el,props);$.effects.removeWrapper(el);done()});if(queuelen>1)queue.splice.apply(queue,[1,0].concat(queue.splice(queuelen,anims+1)));el.dequeue()}})(jQuery);(function($,undefined){$.effects.effect.slide=function(o,done){var el=$(this),props=["position","top","bottom","left","right","width","height"],mode=$.effects.setMode(el,o.mode||"show"),show=mode==="show",direction=o.direction||"left",ref=(direction==="up"||direction==="down")?"top":"left",positiveMotion=(direction==="up"||direction==="left"),distance,animation={};$.effects.save(el,props);el.show();distance=o.distance||el[ref==="top"?"outerHeight":"outerWidth"](true);$.effects.createWrapper(el).css({overflow:"hidden"});if(show)el.css(ref,positiveMotion?(isNaN(distance)?"-"+distance:-distance):distance);animation[ref]=(show?(positiveMotion?"+=":"-="):(positiveMotion?"-=":"+="))+distance;el.animate(animation,{queue:false,duration:o.duration,easing:o.easing,complete:function(){if(mode==="hide")el.hide();$.effects.restore(el,props);$.effects.removeWrapper(el);done()}})}})(jQuery);(function($,undefined){$.effects.effect.transfer=function(o,done){var elem=$(this),target=$(o.to),targetFixed=target.css("position")==="fixed",body=$("body"),fixTop=targetFixed?body.scrollTop():0,fixLeft=targetFixed?body.scrollLeft():0,endPosition=target.offset(),animation={top:endPosition.top-fixTop,left:endPosition.left-fixLeft,height:target.innerHeight(),width:target.innerWidth()},startPosition=elem.offset(),transfer=$("<div class='ui-effects-transfer'></div>").appendTo(document.body).addClass(o.className).css({top:startPosition.top-fixTop,left:startPosition.left-fixLeft,height:elem.innerHeight(),width:elem.innerWidth(),position:targetFixed?"fixed":"absolute"}).animate(animation,o.duration,o.easing,function(){transfer.remove();done()})}})(jQuery) 101; 102/*** Script File: /public/js/front/standard/audio_player/jquery.jplayer.min.js, Original size: 54,493, Compressed size: 54,493 ***/ 103/* 104* jPlayer Plugin for jQuery JavaScript Library 105* http://www.jplayer.org 106* 107* Copyright (c) 2009 - 2014 Happyworm Ltd 108* Licensed under the MIT license. 109* http://opensource.org/licenses/MIT 110* 111* Author: Mark J Panaghiston 112* Version: 2.6.0 113* Date: 2nd April 2014 114*/ 115 116(function(b,f){"function"===typeof define&&define.amd?define(["jquery"],f):b.jQuery?f(b.jQuery):f(b.Zepto)})(this,function(b,f){b.fn.jPlayer=function(a){var c="string"===typeof a,d=Array.prototype.slice.call(arguments,1),e=this;a=!c&&d.length?b.extend.apply(null,[!0,a].concat(d)):a;if(c&&"_"===a.charAt(0))return e;c?this.each(function(){var c=b(this).data("jPlayer"),h=c&&b.isFunction(c[a])?c[a].apply(c,d):c;if(h!==c&&h!==f)return e=h,!1}):this.each(function(){var c=b(this).data("jPlayer");c?c.option(a|| 117{}):b(this).data("jPlayer",new b.jPlayer(a,this))});return e};b.jPlayer=function(a,c){if(arguments.length){this.element=b(c);this.options=b.extend(!0,{},this.options,a);var d=this;this.element.bind("remove.jPlayer",function(){d.destroy()});this._init()}};"function"!==typeof b.fn.stop&&(b.fn.stop=function(){});b.jPlayer.emulateMethods="load play pause";b.jPlayer.emulateStatus="src readyState networkState currentTime duration paused ended playbackRate";b.jPlayer.emulateOptions="muted volume";b.jPlayer.reservedEvent= 118"ready flashreset resize repeat error warning";b.jPlayer.event={};b.each("ready setmedia 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(){b.jPlayer.event[this]="jPlayer_"+this});b.jPlayer.htmlEvent="loadstart abort emptied stalled loadedmetadata loadeddata canplay canplaythrough".split(" "); 119b.jPlayer.pause=function(){b.each(b.jPlayer.prototype.instances,function(a,c){c.data("jPlayer").status.srcSet&&c.jPlayer("pause")})};b.jPlayer.timeFormat={showHour:!1,showMin:!0,showSec:!0,padHour:!1,padMin:!0,padSec:!0,sepHour:":",sepMin:":",sepSec:""};var l=function(){this.init()};l.prototype={init:function(){this.options={timeFormat:b.jPlayer.timeFormat}},time:function(a){var c=new Date(1E3*(a&&"number"===typeof a?a:0)),b=c.getUTCHours();a=this.options.timeFormat.showHour?c.getUTCMinutes():c.getUTCMinutes()+ 12060*b;c=this.options.timeFormat.showMin?c.getUTCSeconds():c.getUTCSeconds()+60*a;b=this.options.timeFormat.padHour&&10>b?"0"+b:b;a=this.options.timeFormat.padMin&&10>a?"0"+a:a;c=this.options.timeFormat.padSec&&10>c?"0"+c:c;b=""+(this.options.timeFormat.showHour?b+this.options.timeFormat.sepHour:"");b+=this.options.timeFormat.showMin?a+this.options.timeFormat.sepMin:"";return b+=this.options.timeFormat.showSec?c+this.options.timeFormat.sepSec:""}};var n=new l;b.jPlayer.convertTime=function(a){return n.time(a)};
121b.jPlayer.uaBrowser=function(a){a=a.toLowerCase();var c=/(opera)(?:.*version)?[ \/]([\w.]+)/,b=/(msie) ([\w.]+)/,e=/(mozilla)(?:.*? rv:([\w.]+))?/;a=/(webkit)[ \/]([\w.]+)/.exec(a)||c.exec(a)||b.exec(a)||0>a.indexOf("compatible")&&e.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}};b.jPlayer.uaPlatform=function(a){var c=a.toLowerCase(),b=/(android)/,e=/(mobile)/;a=/(ipad|iphone|ipod|android|blackberry|playbook|windows ce|webos)/.exec(c)||[];c=/(ipad|playbook)/.exec(c)||!e.exec(c)&&b.exec(c)|| 122[];a[1]&&(a[1]=a[1].replace(/\s/g,"_"));return{platform:a[1]||"",tablet:c[1]||""}};b.jPlayer.browser={};b.jPlayer.platform={};var k=b.jPlayer.uaBrowser(navigator.userAgent);k.browser&&(b.jPlayer.browser[k.browser]=!0,b.jPlayer.browser.version=k.version);k=b.jPlayer.uaPlatform(navigator.userAgent);k.platform&&(b.jPlayer.platform[k.platform]=!0,b.jPlayer.platform.mobile=!k.tablet,b.jPlayer.platform.tablet=!!k.tablet);b.jPlayer.getDocMode=function(){var a;b.jPlayer.browser.msie&&(document.documentMode? 123a=document.documentMode:(a=5,document.compatMode&&"CSS1Compat"===document.compatMode&&(a=7)));return a};b.jPlayer.browser.documentMode=b.jPlayer.getDocMode();b.jPlayer.nativeFeatures={init:function(){var a=document,c=a.createElement("video"),b={w3c:"fullscreenEnabled fullscreenElement requestFullscreen exitFullscreen fullscreenchange fullscreenerror".split(" "),moz:"mozFullScreenEnabled mozFullScreenElement mozRequestFullScreen mozCancelFullScreen mozfullscreenchange mozfullscreenerror".split(" "), 124webkit:" webkitCurrentFullScreenElement webkitRequestFullScreen webkitCancelFullScreen webkitfullscreenchange ".split(" "),webkitVideo:"webkitSupportsFullscreen webkitDisplayingFullscreen webkitEnterFullscreen webkitExitFullscreen ".split(" ")},e=["w3c","moz","webkit","webkitVideo"],g,h;this.fullscreen=c={support:{w3c:!!a[b.w3c[0]],moz:!!a[b.moz[0]],webkit:"function"===typeof a[b.webkit[3]],webkitVideo:"function"===typeof c[b.webkitVideo[2]]},used:{}};g=0;for(h=e.length;g<h;g++){var f=e[g];if(c.support[f]){c.spec= 125f;c.used[f]=!0;break}}if(c.spec){var m=b[c.spec];c.api={fullscreenEnabled:!0,fullscreenElement:function(c){c=c?c:a;return c[m[1]]},requestFullscreen:function(a){return a[m[2]]()},exitFullscreen:function(c){c=c?c:a;return c[m[3]]()}};c.event={fullscreenchange:m[4],fullscreenerror:m[5]}}else c.api={fullscreenEnabled:!1,fullscreenElement:function(){return null},requestFullscreen:function(){},exitFullscreen:function(){}},c.event={}}};b.jPlayer.nativeFeatures.init();b.jPlayer.focus=null;b.jPlayer.keyIgnoreElementNames= 126"INPUT TEXTAREA";var p=function(a){var c=b.jPlayer.focus,d;c&&(b.each(b.jPlayer.keyIgnoreElementNames.split(/\s+/g),function(c,b){if(a.target.nodeName.toUpperCase()===b.toUpperCase())return d=!0,!1}),d||b.each(c.options.keyBindings,function(d,g){if(g&&a.which===g.key&&b.isFunction(g.fn))return a.preventDefault(),g.fn(c),!1}))};b.jPlayer.keys=function(a){b(document.documentElement).unbind("keydown.jPlayer");a&&b(document.documentElement).bind("keydown.jPlayer",p)};b.jPlayer.keys(!0);b.jPlayer.prototype= 127{count:0,version:{script:"2.6.0",needFlash:"2.6.0",flash:"unknown"},options:{swfPath:"js",solution:"html, flash",supplied:"mp3",preload:"metadata",volume:0.8,muted:!1,remainingDuration:!1,toggleDuration:!1,playbackRate:1,defaultPlaybackRate:1,minPlaybackRate:0.5,maxPlaybackRate:4,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", 128unmute:".jp-unmute",volumeBar:".jp-volume-bar",volumeBarValue:".jp-volume-bar-value",volumeMax:".jp-volume-max",playbackRateBar:".jp-playback-rate-bar",playbackRateBarValue:".jp-playback-rate-bar-value",currentTime:".jp-current-time",duration:".jp-duration",title:".jp-title",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, 129fadeIn:200,fadeOut:600,hold:1E3},loop:!1,repeat:function(a){a.jPlayer.options.loop?b(this).unbind(".jPlayerRepeat").bind(b.jPlayer.event.ended+".jPlayer.jPlayerRepeat",function(){b(this).jPlayer("play")}):b(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/}, 130noVolume:{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(a){a.status.paused?a.play():a.pause()}},fullScreen:{key:13,fn:function(a){(a.status.video||a.options.audioFullScreen)&&a._setOption("fullScreen",!a.options.fullScreen)}},muted:{key:8,fn:function(a){a._muted(!a.options.muted)}}, 131volumeUp:{key:38,fn:function(a){a.volume(a.options.volume+0.1)}}
131,volumeDown:{key:40,fn:function(a){a.volume(a.options.volume-0.1)}}},verticalVolume:!1,verticalPlaybackRate:!1,globalVolume:!1,idPrefix:"jp",noConflict:"jQuery",emulateHtml:!1,consoleAlerts:!0,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%", 132cssClass:"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,remaining: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, 133media:"audio"},m3u8a:{codec:'application/vnd.apple.mpegurl; codecs="mp4a.40.2"',flashCanPlay:!1,media:"audio"},m3ua:{codec:"audio/mpegurl",flashCanPlay:!1,media:"audio"},oga:{codec:'audio/ogg; codecs="vorbis, opus"',flashCanPlay:!1,media:"audio"},flac:{codec:"audio/x-flac",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"}, 134rtmpa:{codec:'audio/rtmp; codecs="rtmp"',flashCanPlay:!0,media:"audio"},m4v:{codec:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',flashCanPlay:!0,media:"video"},m3u8v:{codec:'application/vnd.apple.mpegurl; codecs="avc1.42E01E, mp4a.40.2"',flashCanPlay:!1,media:"video"},m3uv:{codec:"audio/mpegurl",flashCanPlay:!1,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", 135flashCanPlay:!0,media:"video"},rtmpv:{codec:'video/rtmp; codecs="rtmp"',flashCanPlay:!0,media:"video"}},_init:function(){var a=this;this.element.empty();this.status=b.extend({},this.status);this.internal=b.extend({},this.internal);this.options.timeFormat=b.extend({},b.jPlayer.timeFormat,this.options.timeFormat);this.internal.cmdsIgnored=b.jPlayer.platform.ipad||b.jPlayer.platform.iphone||b.jPlayer.platform.ipod;this.internal.domNode=this.element.get(0);
135this.options.keyEnabled&&!b.jPlayer.focus&&(b.jPlayer.focus= 136this);this.androidFix={setMedia:!1,play:!1,pause:!1,time:NaN};b.jPlayer.platform.android&&(this.options.preload="auto"!==this.options.preload?"metadata":"auto");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);b.each(this.options.supplied.toLowerCase().split(","),function(c,d){var e=d.replace(/^\s+|\s+$/g, 137"");if(a.format[e]){var f=!1;b.each(a.formats,function(a,c){if(e===c)return f=!0,!1});f||a.formats.push(e)}});b.each(this.options.solution.toLowerCase().split(","),function(c,d){var e=d.replace(/^\s+|\s+$/g,"");if(a.solution[e]){var f=!1;b.each(a.solutions,function(a,c){if(e===c)return f=!0,!1});f||a.solutions.push(e)}});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); 138this.internal.self=b.extend({},{id:this.element.attr("id"),jq:this.element});this.internal.audio=b.extend({},{id:this.options.idPrefix+"_audio_"+this.count,jq:f});this.internal.video=b.extend({},{id:this.options.idPrefix+"_video_"+this.count,jq:f});this.internal.flash=b.extend({},{id:this.options.idPrefix+"_flash_"+this.count,jq:f,swf:this.options.swfPath+(".swf"!==this.options.swfPath.toLowerCase().slice(-4)?(this.options.swfPath&&"/"!==this.options.swfPath.slice(-1)?"/":"")+"Jplayer.swf":"")}); 139this.internal.poster=b.extend({},{id:this.options.idPrefix+"_poster_"+this.count,jq:f});b.each(b.jPlayer.event,function(c,b){a.options[c]!==f&&(a.element.bind(b+".jPlayer",a.options[c]),a.options[c]=f)});this.require.audio=!1;this.require.video=!1;b.each(this.formats,function(c,b){a.require[a.format[b].media]=!0});this.options=this.require.video?b.extend(!0,{},this.optionsVideo,this.options):b.extend(!0,{},this.optionsAudio,this.options);this._setSize();this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls); 140this.status.noFullWindow=this._uaBlocklist(this.options.noFullWindow);this.status.noVolume=this._uaBlocklist(this.options.noVolume);b.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(){a.status.video&&!a.status.waitForPlay||a.internal.poster.jq.show()};this.element.append(this.htmlElement.poster); 141this.internal.poster.jq=b("#"+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(){a._trigger(b.jPlayer.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)); 142this.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={};b.each(this.formats,function(c,b){a.html.canPlay[b]=a.html[a.format[b].media].available&&""!==a.htmlElement[a.format[b].media].canPlayType(a.format[b].codec); 143a.flash.canPlay[b]=a.format[b].flashCanPlay&&a.flash.available});this.html.desired=!1;this.flash.desired=!1;b.each(this.solutions,function(c,d){if(0===c)a[d].desired=!0;else{var e=!1,f=!1;b.each(a.formats,function(c,b){a[a.solutions[0]].canPlay[b]&&("video"===a.format[b].media?f=!0:e=!0)});a[d].desired=a.require.audio&&!e||a.require.video&&!f}});this.html.support={};this.flash.support={};b.each(this.formats,function(c,b){a.html.support[b]=a.html.canPlay[b]&&a.html.desired;a.flash.support[b]=a.flash.canPlay[b]&& 144a.flash.desired});this.html.used=!1;this.flash.used=!1;b.each(this.solutions,function(c,d){b.each(a.formats,function(c,b){if(a[d].support[b])return a[d].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:b.jPlayer.error.NO_SOLUTION,context:"{solution:'"+this.options.solution+"', supplied:'"+this.options.supplied+"'}",message:b.jPlayer.errorMsg.NO_SOLUTION, 145hint:b.jPlayer.errorHint.NO_SOLUTION}),this.css.jq.noSolution.length&&this.css.jq.noSolution.show());if(this.flash.used){var c,d="jQuery="+encodeURI(this.options.noConflict)+"&id="+encodeURI(this.internal.self.id)+"&vol="+this.options.volume+"&muted="+this.options.muted;if(b.jPlayer.browser.msie&&(9>Number(b.jPlayer.browser.version)||9>b.jPlayer.browser.documentMode)){d=['<param name="movie" value="'+this.internal.flash.swf+'" />','<param name="FlashVars" value="'+d+'" />','<param name="allowScriptAccess" value="always" />', 146'<param name="bgcolor" value="'+this.options.backgroundColor+'" />','<param name="wmode" value="'+this.options.wmode+'" />'];c=document.createElement('<object id="'+this.internal.flash.id+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="0" height="0" tabindex="-1"></object>');for(var e=0;e<d.length;e++)c.appendChild(document.createElement(d[e]))}else e=function(a,c,b){var d=document.createElement("param");d.setAttribute("name",c);d.setAttribute("value",b);a.appendChild(d)},c=document.createElement("object"), 147c.setAttribute("id",this.internal.flash.id),c.setAttribute("name",this.internal.flash.id),c.setAttribute("data",this.internal.flash.swf),c.setAttribute("type","application/x-shockwave-flash"),c.setAttribute("width","1"),c.setAttribute("height","1"),c.setAttribute("tabindex","-1"),e(c,"flashvars",d),e(c,"allowscriptaccess","always"),e(c,"bgcolor",this.options.backgroundColor),e(c,"wmode",this.options.wmode);this.element.append(c);this.internal.flash.jq=b(c)}this.status.playbackRateEnabled=this.html.used&& 148!this.flash.used?this._testPlaybackRate("audio"):!1;this._updatePlaybackRate();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=b("#"+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=b("#"+this.internal.video.id),this.status.nativeVideoControls? 149this.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(){a._trigger(b.jPlayer.event.click)})));this.options.emulateHtml&&this._emulateHtmlBridge();this.html.used&&!this.flash.used&&setTimeout(function(){a.internal.ready=!0;a.version.flash="n/a";a._trigger(b.jPlayer.event.repeat);a._trigger(b.jPlayer.event.ready)},100);this._updateNativeVideoControls();this.css.jq.videoPlay.length&& 150this.css.jq.videoPlay.hide();b.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("");b.each(this.css.jq,function(a,c){c.length&&c.unbind(".jPlayer")});this.internal.poster.jq.unbind(".jPlayer");this.internal.video.jq&&this.internal.video.jq.unbind(".jPlayer");this._fullscreenRemoveEventListeners();
150this===b.jPlayer.focus&&(b.jPlayer.focus=null); 151this.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(a){try{return a.canPlayType(this.format.mp3.codec),!0}catch(c){return!1}},_testPlaybackRate:function(a){a=document.createElement("string"===typeof a?a:"audio");try{return"playbackRate"in a?(a.playbackRate=0.5,0.5===a.playbackRate):!1}catch(c){return!1}}, 152_uaBlocklist:function(a){var c=navigator.userAgent.toLowerCase(),d=!1;b.each(a,function(a,b){if(b&&b.test(c))return d=!0,!1});return d},_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? 153(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(a,c){var d=this;a.preload=this.options.preload;a.muted=this.options.muted;a.volume=this.options.volume;this.status.playbackRateEnabled&&(a.defaultPlaybackRate=this.options.defaultPlaybackRate,a.playbackRate=this.options.playbackRate); 154a.addEventListener("progress",function(){c.gate&&(d.internal.cmdsIgnored&&0<this.readyState&&(d.internal.cmdsIgnored=!1),d.androidFix.setMedia=!1,d.androidFix.play&&(d.androidFix.play=!1,d.play(d.androidFix.time)),d.androidFix.pause&&(d.androidFix.pause=!1,d.pause(d.androidFix.time)),d._getHtmlStatus(a),d._updateInterface(),d._trigger(b.jPlayer.event.progress))},!1);a.addEventListener("timeupdate",function(){c.gate&&(d._getHtmlStatus(a),d._updateInterface(),d._trigger(b.jPlayer.event.timeupdate))}, 155!1);a.addEventListener("durationchange",function(){c.gate&&(d._getHtmlStatus(a),d._updateInterface(),d._trigger(b.jPlayer.event.durationchange))},!1);a.addEventListener("play",function(){c.gate&&(d._updateButtons(!0),d._html_checkWaitForPlay(),d._trigger(b.jPlayer.event.play))},!1);a.addEventListener("playing",function(){c.gate&&(d._updateButtons(!0),d._seeked(),d._trigger(b.jPlayer.event.playing))},!1);a.addEventListener("pause",function(){c.gate&&(d._updateButtons(!1),d._trigger(b.jPlayer.event.pause))}, 156!1);a.addEventListener("waiting",function(){c.gate&&(d._seeking(),d._trigger(b.jPlayer.event.waiting))},!1);a.addEventListener("seeking",function(){c.gate&&(d._seeking(),d._trigger(b.jPlayer.event.seeking))},!1);a.addEventListener("seeked",function(){c.gate&&(d._seeked(),d._trigger(b.jPlayer.event.seeked))},!1);a.addEventListener("volumechange",function(){c.gate&&(d.options.volume=a.volume,d.options.muted=a.muted,d._updateMute(),d._updateVolume(),d._trigger(b.jPlayer.event.volumechange))},!1);a.addEventListener("ratechange", 157function(){c.gate&&(d.options.defaultPlaybackRate=a.defaultPlaybackRate,d.options.playbackRate=a.playbackRate,d._updatePlaybackRate(),d._trigger(b.jPlayer.event.ratechange))},!1);a.addEventListener("suspend",function(){c.gate&&(d._seeked(),d._trigger(b.jPlayer.event.suspend))},!1);a.addEventListener("ended",function(){c.gate&&(b.jPlayer.browser.webkit||(d.htmlElement.media.currentTime=0),d.htmlElement.media.pause(),d._updateButtons(!1),d._getHtmlStatus(a,!0),d._updateInterface(),d._trigger(b.jPlayer.event.ended))}, 158!1);a.addEventListener("error",function(){c.gate&&(d._updateButtons(!1),d._seeked(),d.status.srcSet&&(clearTimeout(d.internal.htmlDlyCmdId),d.status.waitForLoad=!0,d.status.waitForPlay=!0,d.status.video&&!d.status.nativeVideoControls&&d.internal.video.jq.css({width:"0px",height:"0px"}),d._validString(d.status.media.poster)&&!d.status.nativeVideoControls&&d.internal.poster.jq.show(),d.css.jq.videoPlay.length&&d.css.jq.videoPlay.show(),d._error({type:b.jPlayer.error.URL,context:d.status.src,message:b.jPlayer.errorMsg.URL, 159hint:b.jPlayer.errorHint.URL})))},!1);b.each(b.jPlayer.htmlEvent,function(e,g){a.addEventListener(this,function(){c.gate&&d._trigger(b.jPlayer.event[g])},!1)})},_getHtmlStatus:function(a,c){var b=0,e=0,g=0,f=0;isFinite(a.duration)&&(this.status.duration=a.duration);b=a.currentTime;e=0<this.status.duration?100*b/this.status.duration:0;"object"===typeof a.seekable&&0<a.seekable.length?(g=0<this.status.duration?100*a.seekable.end(a.seekable.length-1)/this.status.duration:100,f=0<this.status.duration? 160100*a.currentTime/a.seekable.end(a.seekable.length-1):0):(g=100,f=e);c&&(e=f=b=0);this.status.seekPercent=g;this.status.currentPercentRelative=f;this.status.currentPercentAbsolute=e;this.status.currentTime=b;this.status.remaining=this.status.duration-this.status.currentTime;this.status.videoWidth=a.videoWidth;this.status.videoHeight=a.videoHeight;this.status.readyState=a.readyState;this.status.networkState=a.networkState;this.status.playbackRate=a.playbackRate;this.status.ended=a.ended},_resetStatus:function(){this.status= 161b.extend({},this.status,b.jPlayer.prototype.status)},_trigger:function(a,c,d){a=b.Event(a);a.jPlayer={};a.jPlayer.version=b.extend({},this.version);a.jPlayer.options=b.extend(!0,{},this.options);a.jPlayer.status=b.extend(!0,{},this.status);a.jPlayer.html=b.extend(!0,{},this.html);a.jPlayer.flash=b.extend(!0,{},this.flash);c&&(a.jPlayer.error=b.extend({},c));d&&(a.jPlayer.warning=b.extend({},d));this.element.trigger(a)},jPlayerFlashEvent:function(a,c){if(a===b.jPlayer.event.ready)if(!this.internal.ready)this.internal.ready= 162!0,this.internal.flash.jq.css({width:"0px",height:"0px"}),this.version.flash=c.version,this.version.needFlash!==this.version.flash&&this._error({type:b.jPlayer.error.VERSION,context:this.version.flash,message:b.jPlayer.errorMsg.VERSION+this.version.flash,hint:b.jPlayer.errorHint.VERSION}),this._trigger(b.jPlayer.event.repeat),this._trigger(a);else if(this.flash.gate){if(this.status.srcSet){var d=this.status.currentTime,e=this.status.paused;this.setMedia(this.status.media);this.volumeWorker(this.options.volume); 1630<d&&(e?this.pause(d):this.play(d))}this._trigger(b.jPlayer.event.flashreset)}if(this.flash.gate)switch(a){case b.jPlayer.event.progress:this._getFlashStatus(c);this._updateInterface();this._trigger(a);break;case b.jPlayer.event.timeupdate:this._getFlashStatus(c);this._updateInterface();this._trigger(a);break;case b.jPlayer.event.play:this._seeked();this._updateButtons(!0);this._trigger(a);break;case b.jPlayer.event.pause:this._updateButtons(!1);this._trigger(a);break;case b.jPlayer.event.ended:this._updateButtons(!1); 164this._trigger(a);break;case b.jPlayer.event.click:this._trigger(a);break;case b.jPlayer.event.error:this.status.waitForLoad=!0;this.status.waitForPlay=!0;this.status.video&&this.internal.flash.jq.css({width:"0px",height:"0px"});
164this._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); 165this._error({type:b.jPlayer.error.URL,context:c.src,message:b.jPlayer.errorMsg.URL,hint:b.jPlayer.errorHint.URL});break;case b.jPlayer.event.seeking:this._seeking();this._trigger(a);break;case b.jPlayer.event.seeked:this._seeked();this._trigger(a);break;case b.jPlayer.event.ready:break;default:this._trigger(a)}return!1},_getFlashStatus:function(a){this.status.seekPercent=a.seekPercent;this.status.currentPercentRelative=a.currentPercentRelative;this.status.currentPercentAbsolute=a.currentPercentAbsolute; 166this.status.currentTime=a.currentTime;this.status.duration=a.duration;this.status.remaining=a.duration-a.currentTime;this.status.videoWidth=a.videoWidth;this.status.videoHeight=a.videoHeight;this.status.readyState=4;this.status.networkState=0;this.status.playbackRate=1;this.status.ended=!1},_updateButtons:function(a){a===f?a=!this.status.paused:this.status.paused=!a;this.css.jq.play.length&&this.css.jq.pause.length&&(a?(this.css.jq.play.hide(),this.css.jq.pause.show()):(this.css.jq.play.show(),this.css.jq.pause.hide())); 167this.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()))}, 168_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+"%"));var a="";this.css.jq.currentTime.length&&(a=this._convertTime(this.status.currentTime),a!==this.css.jq.currentTime.text()&&this.css.jq.currentTime.text(this._convertTime(this.status.currentTime))); 169var a="",a=this.status.duration,c=this.status.remaining;this.css.jq.duration.length&&("string"===typeof this.status.media.duration?a=this.status.media.duration:("number"===typeof this.status.media.duration&&(a=this.status.media.duration,c=a-this.status.currentTime),a=this.options.remainingDuration?(0<c?"-":"")+this._convertTime(c):this._convertTime(a)),a!==this.css.jq.duration.text()&&this.css.jq.duration.text(a))},_convertTime:l.prototype.time,_seeking:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.addClass("jp-seeking-bg")}, 170_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},_escapeHtml:function(a){return a.split("&").join("&").split("<").join("<").split(">").join(">").split('"').join(""")},_qualifyURL:function(a){var c=document.createElement("div");c.innerHTML='<a href="'+this._escapeHtml(a)+'">x</a>';return c.firstChild.href}, 171_absoluteMediaUrls:function(a){var c=this;b.each(a,function(b,e){e&&c.format[b]&&(a[b]=c._qualifyURL(e))});return a},setMedia:function(a){var c=this,d=!1,e=this.status.media.poster!==a.poster;this._resetMedia();this._resetGate();this._resetActive();this.androidFix.setMedia=!1;this.androidFix.play=!1;this.androidFix.pause=!1;a=this._absoluteMediaUrls(a);b.each(this.formats,function(e,f){var k="video"===c.format[f].media;b.each(c.solutions,function(e,g){if(c[g].support[f]&&c._validString(a[f])){var l= 172"html"===g;k?(l?(c.html.video.gate=!0,c._html_setVideo(a),c.html.active=!0):(c.flash.gate=!0,c._flash_setVideo(a),c.flash.active=!0),c.css.jq.videoPlay.length&&c.css.jq.videoPlay.show(),c.status.video=!0):(l?(c.html.audio.gate=!0,c._html_setAudio(a),c.html.active=!0,b.jPlayer.platform.android&&(c.androidFix.setMedia=!0)):(c.flash.gate=!0,c._flash_setAudio(a),c.flash.active=!0),c.css.jq.videoPlay.length&&c.css.jq.videoPlay.hide(),c.status.video=!1);d=!0;return!1}});if(d)return!1});this.css.jq.title.html(a.title);d?(this.status.nativeVideoControls&&
173this.html.video.gate||!this._validString(a.poster)||(e?this.htmlElement.poster.src=a.poster:this.internal.poster.jq.show()),this.css.jq.title.length&&"string"===typeof a.title&&(this.css.jq.title.html(a.title),this.htmlElement.audio&&this.htmlElement.audio.setAttribute("title",a.title),this.htmlElement.video&&this.htmlElement.video.setAttribute("title",a.title)),this.status.srcSet=!0,this.status.media=b.extend({},a),this._updateButtons(!1),this._updateInterface(),this._trigger(b.jPlayer.event.setmedia)): 174this._error({type:b.jPlayer.error.NO_SUPPORT,context:"{supplied:'"+this.options.supplied+"'}",message:b.jPlayer.errorMsg.NO_SUPPORT,hint:b.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(): 175this.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&&(b.jPlayer.focus=this)},play:function(a){a="number"===typeof a?a:NaN;this.status.srcSet?(this.focus(),this.html.active?this._html_play(a):this.flash.active&&this._flash_play(a)):this._urlNotSetError("play")},videoPlay:function(){this.play()}, 176pause:function(a){a="number"===typeof a?a:NaN;this.status.srcSet?this.html.active?this._html_pause(a):this.flash.active&&this._flash_pause(a):this._urlNotSetError("pause")},tellOthers:function(a,c){var d=this,e="function"===typeof c,g=Array.prototype.slice.call(arguments);"string"===typeof a&&(e&&g.splice(1,1),b.each(this.instances,function(){d.element!==this&&(e&&!c.call(this.data("jPlayer"),d)||this.jPlayer.apply(this,g))}))},pauseOthers:function(a){this.tellOthers("pause",function(){return this.status.srcSet}, 177a)},stop:function(){this.status.srcSet?this.html.active?this._html_pause(0):this.flash.active&&this._flash_pause(0):this._urlNotSetError("stop")},playHead:function(a){a=this._limitValue(a,0,100);this.status.srcSet?this.html.active?this._html_playHead(a):this.flash.active&&this._flash_playHead(a):this._urlNotSetError("playHead")},_muted:function(a){this.mutedWorker(a);this.options.globalVolume&&this.tellOthers("mutedWorker",function(){return this.options.globalVolume},a)},mutedWorker:function(a){this.options.muted= 178a;this.html.used&&this._html_setProperty("muted",a);this.flash.used&&this._flash_mute(a);this.html.video.gate||this.html.audio.gate||(this._updateMute(a),this._updateVolume(this.options.volume),this._trigger(b.jPlayer.event.volumechange))},mute:function(a){a=a===f?!0:!!a;this._muted(a)},unmute:function(a){a=a===f?!0:!!a;this._muted(!a)},_updateMute:function(a){a===f&&(a=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()): 179a?(this.css.jq.mute.hide(),this.css.jq.unmute.show()):(this.css.jq.mute.show(),this.css.jq.unmute.hide()))},volume:function(a){this.volumeWorker(a);this.options.globalVolume&&this.tellOthers("volumeWorker",function(){return this.options.globalVolume},a)},volumeWorker:function(a){a=this._limitValue(a,0,1);this.options.volume=a;this.html.used&&this._html_setProperty("volume",a);this.flash.used&&this._flash_volume(a);this.html.video.gate||this.html.audio.gate||(this._updateVolume(a),this._trigger(b.jPlayer.event.volumechange))}, 180volumeBar:function(a){if(this.css.jq.volumeBar.length){var c=b(a.currentTarget),d=c.offset(),e=a.pageX-d.left,g=c.width();a=c.height()-a.pageY+d.top;c=c.height();this.options.verticalVolume?this.volume(a/c):this.volume(e/g)}this.options.muted&&this._muted(!1)},_updateVolume:function(a){a===f&&(a=this.options.volume);a=this.options.muted?0:a;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&& 181this.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*a+"%")),this.css.jq.volumeMax.length&&this.css.jq.volumeMax.show())},volumeMax:function(){this.volume(1);this.options.muted&&this._muted(!1)},_cssSelectorAncestor:function(a){var c=this;this.options.cssSelectorAncestor=a;this._removeUiClass();this.ancestorJq=a?b(a): 182[];a&&1!==this.ancestorJq.length&&this._warning({type:b.jPlayer.warning.CSS_SELECTOR_COUNT,context:a,message:b.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.ancestorJq.length+" found for cssSelectorAncestor.",hint:b.jPlayer.warningHint.CSS_SELECTOR_COUNT});this._addUiClass();b.each(this.options.cssSelector,function(a,b){c._cssSelector(a,b)});this._updateInterface();this._updateButtons();this._updateAutohide();this._updateVolume();this._updateMute()},_cssSelector:function(a,c){var d=this;"string"===typeof c? 183b.jPlayer.prototype.options.cssSelector[a]?(this.css.jq[a]&&this.css.jq[a].length&&this.css.jq[a].unbind(".jPlayer"),this.options.cssSelector[a]=c,this.css.cs[a]=this.options.cssSelectorAncestor+" "+c,this.css.jq[a]=c?b(this.css.cs[a]):[],this.css.jq[a].length&&this[a]&&this.css.jq[a].bind("click.jPlayer",function(c){c.preventDefault();d[a](c);b(this).blur()}),c&&1!==this.css.jq[a].length&&this._warning({type:b.jPlayer.warning.CSS_SELECTOR_COUNT,context:this.css.cs[a],message:b.jPlayer.warningMsg.CSS_SELECTOR_COUNT+ 184this.css.jq[a].length+" found for "+a+" method.",hint:b.jPlayer.warningHint.CSS_SELECTOR_COUNT})):this._warning({type:b.jPlayer.warning.CSS_SELECTOR_METHOD,context:a,message:b.jPlayer.warningMsg.CSS_SELECTOR_METHOD,hint:b.jPlayer.warningHint.CSS_SELECTOR_METHOD}):this._warning({type:b.jPlayer.warning.CSS_SELECTOR_STRING,context:c,message:b.jPlayer.warningMsg.CSS_SELECTOR_STRING,hint:b.jPlayer.warningHint.CSS_SELECTOR_STRING})},duration:function(a){this.options.toggleDuration&&this._setOption("remainingDuration", 185!this.options.remainingDuration)}
185,seekBar:function(a){if(this.css.jq.seekBar.length){var c=b(a.currentTarget),d=c.offset();a=a.pageX-d.left;c=c.width();this.playHead(100*a/c)}},playbackRate:function(a){this._setOption("playbackRate",a)},playbackRateBar:function(a){if(this.css.jq.playbackRateBar.length){var c=b(a.currentTarget),d=c.offset(),e=a.pageX-d.left,g=c.width();a=c.height()-a.pageY+d.top;c=c.height();this.playbackRate((this.options.verticalPlaybackRate?a/c:e/g)*(this.options.maxPlaybackRate- 186this.options.minPlaybackRate)+this.options.minPlaybackRate)}},_updatePlaybackRate:function(){var a=(this.options.playbackRate-this.options.minPlaybackRate)/(this.options.maxPlaybackRate-this.options.minPlaybackRate);this.status.playbackRateEnabled?(this.css.jq.playbackRateBar.length&&this.css.jq.playbackRateBar.show(),this.css.jq.playbackRateBarValue.length&&(this.css.jq.playbackRateBarValue.show(),this.css.jq.playbackRateBarValue[this.options.verticalPlaybackRate?"height":"width"](100*a+"%"))):(this.css.jq.playbackRateBar.length&& 187this.css.jq.playbackRateBar.hide(),this.css.jq.playbackRateBarValue.length&&this.css.jq.playbackRateBarValue.hide())},repeat:function(){this._loop(!0)},repeatOff:function(){this._loop(!1)},_loop:function(a){this.options.loop!==a&&(this.options.loop=a,this._updateButtons(),this._trigger(b.jPlayer.event.repeat))},option:function(a,c){var d=a;if(0===arguments.length)return b.extend(!0,{},this.options);if("string"===typeof a){var e=a.split(".");if(c===f){for(var d=b.extend(!0,{},this.options),g=0;g<e.length;g++)if(d[e[g]]!== 188f)d=d[e[g]];else return this._warning({type:b.jPlayer.warning.OPTION_KEY,context:a,message:b.jPlayer.warningMsg.OPTION_KEY,hint:b.jPlayer.warningHint.OPTION_KEY}),f;return d}for(var g=d={},h=0;h<e.length;h++)h<e.length-1?(g[e[h]]={},g=g[e[h]]):g[e[h]]=c}this._setOptions(d);return this},_setOptions:function(a){var c=this;b.each(a,function(a,b){c._setOption(a,b)});return this},_setOption:function(a,c){var d=this;switch(a){case "volume":this.volume(c);break;case "muted":this._muted(c);break;case "globalVolume":this.options[a]= 189c;break;case "cssSelectorAncestor":this._cssSelectorAncestor(c);break;case "cssSelector":b.each(c,function(a,c){d._cssSelector(a,c)});break;case "playbackRate":this.options[a]=c=this._limitValue(c,this.options.minPlaybackRate,this.options.maxPlaybackRate);this.html.used&&this._html_setProperty("playbackRate",c);this._updatePlaybackRate();break;case "defaultPlaybackRate":this.options[a]=c=this._limitValue(c,this.options.minPlaybackRate,this.options.maxPlaybackRate);this.html.used&&this._html_setProperty("defaultPlaybackRate", 190c);this._updatePlaybackRate();break;case "minPlaybackRate":this.options[a]=c=this._limitValue(c,0.1,this.options.maxPlaybackRate-0.1);this._updatePlaybackRate();break;case "maxPlaybackRate":this.options[a]=c=this._limitValue(c,this.options.minPlaybackRate+0.1,16);this._updatePlaybackRate();break;case "fullScreen":if(this.options[a]!==c){var e=b.jPlayer.nativeFeatures.fullscreen.used.webkitVideo;if(!e||e&&!this.status.waitForPlay)e||(this.options[a]=c),c?this._requestFullscreen():this._exitFullscreen(), 191e||this._setOption("fullWindow",c)}break;case "fullWindow":this.options[a]!==c&&(this._removeUiClass(),this.options[a]=c,this._refreshSize());break;case "size":this.options.fullWindow||this.options[a].cssClass===c.cssClass||this._removeUiClass();this.options[a]=b.extend({},this.options[a],c);this._refreshSize();break;case "sizeFull":this.options.fullWindow&&this.options[a].cssClass!==c.cssClass&&this._removeUiClass();this.options[a]=b.extend({},this.options[a],c);this._refreshSize();break;case "autohide":this.options[a]= 192b.extend({},this.options[a],c);this._updateAutohide();break;case "loop":this._loop(c);break;case "remainingDuration":this.options[a]=c;this._updateInterface();break;case "toggleDuration":this.options[a]=c;break;case "nativeVideoControls":this.options[a]=b.extend({},this.options[a],c);this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls);this._restrictNativeVideoControls();this._updateNativeVideoControls();break;case "noFullWindow":this.options[a]=b.extend({},this.options[a], 193c);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[a]=b.extend({},this.options[a],c);this.status.noVolume=this._uaBlocklist(this.options.noVolume);this._updateVolume();this._updateMute();break;case "emulateHtml":this.options[a]!==c&&((this.options[a]=c)?this._emulateHtmlBridge():this._destroyHtmlBridge()); 194break;case "timeFormat":this.options[a]=b.extend({},this.options[a],c);break;case "keyEnabled":this.options[a]=c;c||this!==b.jPlayer.focus||(b.jPlayer.focus=null);break;case "keyBindings":this.options[a]=b.extend(!0,{},this.options[a],c);break;case "audioFullScreen":this.options[a]=c}return this},_refreshSize:function(){this._setSize();this._addUiClass();this._updateSize();this._updateButtons();this._updateAutohide();this._trigger(b.jPlayer.event.resize)},_setSize:function(){this.options.fullWindow? 195(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)}, 196_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 a=this, 197c=function(){a.css.jq.gui.fadeIn(a.options.autohide.fadeIn,function(){clearTimeout(a.internal.autohideId);a.internal.autohideId=setTimeout(function(){a.css.jq.gui.fadeOut(a.options.autohide.fadeOut)},a.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|| 198!this.options.fullWindow&&this.options.autohide.restored?(this.element.bind("mousemove.jPlayer.jPlayerAutohide",c),this.css.jq.gui.bind("mousemove.jPlayer.jPlayerAutohide",c),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 a=this,c=b.jPlayer.nativeFeatures.fullscreen;c.api.fullscreenEnabled&&c.event.fullscreenchange&&("function"!==typeof this.internal.fullscreenchangeHandler&& 199(this.internal.fullscreenchangeHandler=function(){a._fullscreenchange()}),document.addEventListener(c.event.fullscreenchange,this.internal.fullscreenchangeHandler,!1))},_fullscreenRemoveEventListeners:function(){var a=b.jPlayer.nativeFeatures.fullscreen;this.internal.fullscreenchangeHandler&&document.removeEventListener(a.event.fullscreenchange,this.internal.fullscreenchangeHandler,!1)},_fullscreenchange:function(){this.options.fullScreen&&!b.jPlayer.nativeFeatures.fullscreen.api.fullscreenElement()&& 200this._setOption("fullScreen",!1)},_requestFullscreen:function(){var a=this.ancestorJq.length?this.ancestorJq[0]:this.element[0],c=b.jPlayer.nativeFeatures.fullscreen;c.used.webkitVideo&&(a=this.htmlElement.video);c.api.fullscreenEnabled&&c.api.requestFullscreen(a)},_exitFullscreen:function(){var a=b.jPlayer.nativeFeatures.fullscreen,c;a.used.webkitVideo&&(c=this.htmlElement.video);a.api.fullscreenEnabled&&a.api.exitFullscreen(c)},_html_initMedia:function(a){var c=b(this.htmlElement.media).empty(); 201b.each(a.track||[],function(a,b){var g=document.createElement("track");g.setAttribute("kind",b.kind?b.kind:"");g.setAttribute("src",b.src?b.src:"");g.setAttribute("srclang",b.srclang?b.srclang:"");g.setAttribute("label",b.label?b.label:"");b.def&&g.setAttribute("default",b.def);c.append(g)});this.htmlElement.media.src=this.status.src;"none"!==this.options.preload&&this._html_load();this._trigger(b.jPlayer.event.timeupdate)},_html_setFormat:function(a){var c=this;b.each(this.formats,function(b,e){if(c.html.support[e]&& 202a[e])return c.status.src=a[e],c.status.format[e]=!0,c.status.formatType=e,!1})},_html_setAudio:function(a){this._html_setFormat(a);this.htmlElement.media=this.htmlElement.audio;this._html_initMedia(a)},_html_setVideo:function(a){this._html_setFormat(a);this.status.nativeVideoControls&&(this.htmlElement.video.poster=this._val
202idString(a.poster)?a.poster:"");this.htmlElement.media=this.htmlElement.video;this._html_initMedia(a)},_html_resetMedia:function(){this.htmlElement.media&&(this.htmlElement.media.id!== 203this.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(a){var b=this,d=this.htmlElement.media;this.androidFix.pause=!1; 204this._html_load();if(this.androidFix.setMedia)this.androidFix.play=!0,this.androidFix.time=a;else if(isNaN(a))d.play();else{this.internal.cmdsIgnored&&d.play();try{if(!d.seekable||"object"===typeof d.seekable&&0<d.seekable.length)d.currentTime=a,d.play();else throw 1;}catch(e){this.internal.htmlDlyCmdId=setTimeout(function(){b.play(a)},250);return}}this._html_checkWaitForPlay()},_html_pause:function(a){var b=this,d=this.htmlElement.media;this.androidFix.play=!1;0<a?this._html_load():clearTimeout(this.internal.htmlDlyCmdId); 205d.pause();if(this.androidFix.setMedia)this.androidFix.pause=!0,this.androidFix.time=a;
205else if(!isNaN(a))try{if(!d.seekable||"object"===typeof d.seekable&&0<d.seekable.length)d.currentTime=a;else throw 1;}catch(e){this.internal.htmlDlyCmdId=setTimeout(function(){b.pause(a)},250);return}0<a&&this._html_checkWaitForPlay()},_html_playHead:function(a){var b=this,d=this.htmlElement.media;this._html_load();try{if("object"===typeof d.seekable&&0<d.seekable.length)d.currentTime=a*d.seekable.end(d.seekable.length- 2061)/100;else if(0<d.duration&&!isNaN(d.duration))d.currentTime=a*d.duration/100;else throw"e";}catch(e){this.internal.htmlDlyCmdId=setTimeout(function(){b.playHead(a)},250);return}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})))}, 207_html_setProperty:function(a,b){this.html.audio.available&&(this.htmlElement.audio[a]=b);this.html.video.available&&(this.htmlElement.video[a]=b)},_flash_setAudio:function(a){var c=this;try{b.each(this.formats,function(b,d){if(c.flash.support[d]&&a[d]){switch(d){case "m4a":case "fla":c._getMovie().fl_setAudio_m4a(a[d]);break;case "mp3":c._getMovie().fl_setAudio_mp3(a[d]);break;case "rtmpa":c._getMovie().fl_setAudio_rtmp(a[d])}c.status.src=a[d];c.status.format[d]=!0;c.status.formatType=d;return!1}}), 208"auto"===this.options.preload&&(this._flash_load(),this.status.waitForLoad=!1)}catch(d){this._flashError(d)}},_flash_setVideo:function(a){var c=this;try{b.each(this.formats,function(b,d){if(c.flash.support[d]&&a[d]){switch(d){case "m4v":case "flv":c._getMovie().fl_setVideo_m4v(a[d]);break;case "rtmpv":c._getMovie().fl_setVideo_rtmp(a[d])}c.status.src=a[d];c.status.format[d]=!0;c.status.formatType=d;return!1}}),"auto"===this.options.preload&&(this._flash_load(),this.status.waitForLoad=!1)}catch(d){this._flashError(d)}}, 209_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(a){this._flashError(a)}},_flash_load:function(){try{this._getMovie().fl_load()}catch(a){this._flashError(a)}this.status.waitForLoad=!1},_flash_play:function(a){try{this._getMovie().fl_play(a)}catch(b){this._flashError(b)}this.status.waitForLoad=!1;this._flash_checkWaitForPlay()},_flash_pause:function(a){try{this._getMovie().fl_pause(a)}catch(b){this._flashError(b)}0< 210a&&(this.status.waitForLoad=!1,this._flash_checkWaitForPlay())},_flash_playHead:function(a){try{this._getMovie().fl_play_head(a)}catch(b){this._flashError(b)}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(a){try{this._getMovie().fl_volume(a)}catch(b){this._flashError(b)}}, 211_flash_mute:function(a){try{this._getMovie().fl_mute(a)}catch(b){this._flashError(b)}},_getMovie:function(){return document[this.internal.flash.id]},_getFlashPluginVersion:function(){var a=0,b;if(window.ActiveXObject)try{if(b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")){var d=b.GetVariable("$version");d&&(d=d.split(" ")[1].split(","),a=parseInt(d[0],10)+"."+parseInt(d[1],10))}}catch(e){}else navigator.plugins&&0<navigator.mimeTypes.length&&(b=navigator.plugins["Shockwave Flash"])&&(a=navigator.plugins["Shockwave Flash"].description.replace(/.*\s(\d+\.\d+).*/, 212"$1"));return 1*a},_checkForFlash:function(a){var b=!1;this._getFlashPluginVersion()>=a&&(b=!0);return b},_validString:function(a){return a&&"string"===typeof a},_limitValue:function(a,b,d){return a<b?b:a>d?d:a},_urlNotSetError:function(a){this._error({type:b.jPlayer.error.URL_NOT_SET,context:a,message:b.jPlayer.errorMsg.URL_NOT_SET,hint:b.jPlayer.errorHint.URL_NOT_SET})},_flashError:function(a){var c;c=this.internal.ready?"FLASH_DISABLED":"FLASH";this._error({type:b.jPlayer.error[c],context:this.internal.flash.swf, 213message:b.jPlayer.errorMsg[c]+a.message,hint:b.jPlayer.errorHint[c]});this.internal.flash.jq.css({width:"1px",height:"1px"})},_error:function(a){this._trigger(b.jPlayer.event.error,a);this.options.errorAlerts&&this._alert("Error!"+(a.message?"\n"+a.message:"")+(a.hint?"\n"+a.hint:"")+"\nContext: "+a.context)},_warning:function(a){this._trigger(b.jPlayer.event.warning,f,a);this.options.warningAlerts&&this._alert("Warning!"+(a.message?"\n"+a.message:"")+(a.hint?"\n"+a.hint:"")+"\nContext: "+a.context)}, 214_alert:function(a){a="jPlayer "+this.version.script+" : id='"+this.internal.self.id+"' : "+a;this.options.consoleAlerts?window.console&&window.console.log&&window.console.log(a):alert(a)},_emulateHtmlBridge:function(){var a=this;b.each(b.jPlayer.emulateMethods.split(/\s+/g),function(b,d){a.internal.domNode[d]=function(b){a[d](b)}});b.each(b.jPlayer.event,function(c,d){var e=!0;b.each(b.jPlayer.reservedEvent.split(/\s+/g),function(a,b){if(b===c)return e=!1});e&&a.element.bind(d+".jPlayer.jPlayerHtml", 215function(){a._emulateHtmlUpdate();var b=document.createEvent("Event");
215b.initEvent(c,!1,!0);a.internal.domNode.dispatchEvent(b)})})},_emulateHtmlUpdate:function(){var a=this;b.each(b.jPlayer.emulateStatus.split(/\s+/g),function(b,d){a.internal.domNode[d]=a.status[d]});b.each(b.jPlayer.emulateOptions.split(/\s+/g),function(b,d){a.internal.domNode[d]=a.options[d]})},_destroyHtmlBridge:function(){var a=this;this.element.unbind(".jPlayerHtml");b.each((b.jPlayer.emulateMethods+" "+b.jPlayer.emulateStatus+ 216" "+b.jPlayer.emulateOptions).split(/\s+/g),function(b,d){delete a.internal.domNode[d]})}};b.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"};b.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: ", 217NO_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 "+b.jPlayer.prototype.version.script+" needs Jplayer.swf version "+b.jPlayer.prototype.version.needFlash+" but found "};b.jPlayer.errorHint= 218{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."};b.jPlayer.warning={CSS_SELECTOR_COUNT:"e_css_selector_count",CSS_SELECTOR_METHOD:"e_css_selector_method", 219CSS_SELECTOR_STRING:"e_css_selector_string",OPTION_KEY:"e_option_key"};b.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."};b.jPlayer.warningHint={CSS_SELECTOR_COUNT:"Check your css selector and the ancestor.", 220CSS_SELECTOR_METHOD:"Check your method name.",CSS_SELECTOR_STRING:"Check your css selector is a string.",OPTION_KEY:"Check your option name."}}); 221; 222/*** Script File: /public/js/front/standard/audio_player/jplayer.playlist.min.js, Original size: 10,765, Compressed size: 10,765 ***/ 223/* 224 * Playlist Object for the jPlayer Plugin 225 * http://www.jplayer.org 226 * 227 * Copyright (c) 2009 - 2013 Happyworm Ltd 228 * Dual licensed under the MIT and GPL licenses. 229 * - http://www.opensource.org/licenses/mit-license.php 230 * - http://www.gnu.org/copyleft/gpl.html 231 * 232 * Author: Mark J Panaghiston 233 * Version: 2.3.0 234 * Date: 20th April 2013 235 * 236 * Requires: 237 * - jQuery 1.7.0+ 238 * - jPlayer 2.3.0+ 239 */ 240// (function(b,f){jPlayerPlaylist=function(a,c,d){var e=this;this.current=0;this.removing=this.shuffled=this.loop=!1;this.cssSelector=b.extend({},this._cssSelector,a);this.options=b.extend(!0,{keyBindings:{next:{key:39,fn:function(){e.next()}},previous:{key:37,fn:function(){e.previous()}}}},this._options,d);this.playlist=[];this.original=[];this._initPlaylist(c);this.cssSelector.title=this.cssSelector.cssSelectorAncestor+" .jp-title";this.cssSelector.playlist=this.cssSelector.cssSelectorAncestor+" .jp-playlist"; 241// 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(a){e.loop=a.jPlayer.options.loop};b(this.cssSelector.jPlayer).bind(b.jPlayer.event.ready,function(){e._init()}); 242// b(this.cssSelector.jPlayer).bind(b.jPlayer.event.ended,function(){e.next()});b(this.cssSelector.jPlayer).bind(b.jPlayer.event.play,function(){b(this).jPlayer("pauseOthers")});b(this.cssSelector.jPlayer).bind(b.jPlayer.event.resize,function(a){a.jPlayer.options.fullScreen?b(e.cssSelector.title).show():b(e.cssSelector.title).hide()});b(this.cssSelector.previous).click(function(){e.previous();b(this).blur();return!1});b(this.cssSelector.next).click(function(){e.next();b(this).blur();return!1});b(this.cssSelector.shuffle).click(function(){e.shuffle(!0); 243// return!1});b(this.cssSelector.shuffleOff).click(function(){e.shuffle(!1);return!1}).hide();this.options.fullScreen||b(this.cssSelector.title).hide();b(this.cssSelector.playlist+" ul").empty();this._createItemHandlers();b(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",
244// removeTime:"fast",shuffleTime:"slow",itemClass:"jp-playlist-item",freeGroupClass:"jp-free-media",freeItemClass:"jp-playlist-item-free",removeItemClass:"jp-playlist-item-remove"}},option:function(a,b){if(b===f)return this.options.playlistOptions[a];this.options.playlistOptions[a]=b;switch(a){case "enableRemoveControls":this._updateControls();break;case "itemClass":case "freeGroupClass":case "freeItemClass":case "removeItemClass":this._refresh(!0),this._createItemHandlers()}return this},_init:function(){var a= 245// this;this._refresh(function(){a.options.playlistOptions.autoPlay?a.play(a.current):a.select(a.current)})},_initPlaylist:function(a){this.current=0;this.removing=this.shuffled=!1;this.original=b.extend(!0,[],a);this._originalPlaylist()},_originalPlaylist:function(){var a=this;this.playlist=[];b.each(this.original,function(b){a.playlist[b]=a.original[b]})},_refresh:function(a){var c=this;if(a&&!b.isFunction(a))b(this.cssSelector.playlist+" ul").empty(),b.each(this.playlist,function(a){b(c.cssSelector.playlist+ 246// " ul").append(c._createListItem(c.playlist[a]))}),this._updateControls();else{var d=b(this.cssSelector.playlist+" ul").children().length?this.options.playlistOptions.displayTime:0;b(this.cssSelector.playlist+" ul").slideUp(d,function(){var d=b(this);b(this).empty();b.each(c.playlist,function(a){d.append(c._createListItem(c.playlist[a]))});c._updateControls();b.isFunction(a)&&a();c.playlist.length?b(this).slideDown(c.options.playlistOptions.displayTime):b(this).show()})}},_createListItem:function(a){var c= 247// this,d="<li><div><a href='javascript:;' class='playlist_item_icon jp-play' tabindex='1'></a>",d=d+("<a href='javascript:;' class='"+this.options.playlistOptions.removeItemClass+"'>×</a>");if(a.free){var e=!0,d=d+("<span class='"+this.options.playlistOptions.freeGroupClass+"'>(");b.each(a,function(a,f){b.jPlayer.prototype.format[a]&&(e?e=!1:d+=" | ",d+="<a class='"+c.options.playlistOptions.freeItemClass+"' href='"+f+"' tabindex='1'>"+a+"</a>")});d+=")</span>"}d+="<a href='javascript:;' class='"+this.options.playlistOptions.itemClass+"' tabindex='1'>"+a.title+(a.artist? 248// " <span class='jp-artist'>by "+a.artist+"</span>":"")+"</a><a href='javascript:;' onclick='app.likeEntity("+a.type+", "+a.id+", this)' class='playlist_item_like com_link1 " + a.likedClass + " like'>
248"+a.likes+"</a><a href='javascript:;' class='playlist_item_add'></a>";return d+="</div></li>"},_createItemHandlers:function(){var a=this;b(this.cssSelector.playlist).off("click","a."+this.options.playlistOptions.itemClass).on("click","a."+this.options.playlistOptions.itemClass,function(){var c=b(this).parent().parent().index();a.current!==c?a.play(c):b(a.cssSelector.jPlayer).jPlayer("play");b(this).blur();return!1});b(this.cssSelector.playlist).off("click","a."+this.options.playlistOptions.freeItemClass).on("click", 249// "a."+this.options.playlistOptions.freeItemClass,function(){b(this).parent().parent().find("."+a.options.playlistOptions.itemClass).click();b(this).blur();return!1});b(this.cssSelector.playlist).off("click","a."+this.options.playlistOptions.removeItemClass).on("click","a."+this.options.playlistOptions.removeItemClass,function(){var c=b(this).parent().parent().index();a.remove(c);b(this).blur();return!1})},_updateControls:function(){this.options.playlistOptions.enableRemoveControls?b(this.cssSelector.playlist+ 250// " ."+this.options.playlistOptions.removeItemClass).show():b(this.cssSelector.playlist+" ."+this.options.playlistOptions.removeItemClass).hide();this.shuffled?(b(this.cssSelector.shuffleOff).show(),b(this.cssSelector.shuffle).hide()):(b(this.cssSelector.shuffleOff).hide(),b(this.cssSelector.shuffle).show())},_highlight:function(a){this.playlist.length&&a!==f&&(b(this.cssSelector.playlist+" .jp-playlist-current").removeClass("jp-playlist-current"),b(this.cssSelector.playlist+" li:nth-child("+(a+1)+ 251// ")").addClass("jp-playlist-current").find(".jp-playlist-item").addClass("jp-playlist-current"),b(this.cssSelector.title+" li").html(this.playlist[a].title+(this.playlist[a].artist?" <span class='jp-artist'>by "+this.playlist[a].artist+"</span>":"")))},setPlaylist:function(a){this._initPlaylist(a);this._init()},add:function(a,c){b(this.cssSelector.playlist+" ul").append(this._createListItem(a)).find("li:last-child").hide().slideDown(this.options.playlistOptions.addTime);this._updateControls();this.original.push(a); 252// this.playlist.push(a);c?this.play(this.playlist.length-1):1===this.original.length&&this.select(0)},remove:function(a){var c=this;if(a===f)return this._initPlaylist([]),this._refresh(function(){b(c.cssSelector.jPlayer).jPlayer("clearMedia")}),!0;if(this.removing)return!1;a=0>a?c.original.length+a:a;0<=a&&a<this.playlist.length&&(this.removing=!0,b(this.cssSelector.playlist+" li:nth-child("+(a+1)+")").slideUp(this.options.playlistOptions.removeTime,function(){b(this).remove();if(c.shuffled){var d= 253// c.playlist[a];b.each(c.original,function(a){if(c.original[a]===d)return c.original.splice(a,1),!1})}else c.original.splice(a,1);c.playlist.splice(a,1);c.original.length?a===c.current?(c.current=a<c.original.length?c.current:c.original.length-1,c.select(c.current)):a<c.current&&c.current--:(b(c.cssSelector.jPlayer).jPlayer("clearMedia"),c.current=0,c.shuffled=!1,c._updateControls());c.removing=!1}));return!0},select:function(a){a=0>a?this.original.length+a:a;0<=a&&a<this.playlist.length?(this.current= 254// a,this._highlight(a),b(this.cssSelector.jPlayer).jPlayer("setMedia",this.playlist[this.current])):this.current=0},play:function(a){a=0>a?this.original.length+a:a;0<=a&&a<this.playlist.length?this.playlist.length&&(this.select(a),b(this.cssSelector.jPlayer).jPlayer("play")):a===f&&b(this.cssSelector.jPlayer).jPlayer("play")},pause:function(){b(this.cssSelector.jPlayer).jPlayer("pause")},next:function(){var a=this.current+1<this.playlist.length?this.current+1:0;this.loop?0===a&&this.shuffled&&this.options.playlistOptions.shuffleOnLoop&& 255// 1<this.playlist.length?this.shuffle(!0,!0):this.play(a):0<a&&this.play(a)},previous:function(){var a=0<=this.current-1?this.current-1:this.playlist.length-1;(this.loop&&this.options.playlistOptions.loopOnPrevious||a<this.playlist.length-1)&&this.play(a)},shuffle:function(a,c){var d=this;a===f&&(a=!this.shuffled);(a||a!==this.shuffled)&&b(this.cssSelector.playlist+" ul").slideUp(this.options.playlistOptions.shuffleTime,function(){(d.shuffled=a)?d.playlist.sort(function(){return 0.5-Math.random()}): 256// d._originalPlaylist();d._refresh(!0);c||!b(d.cssSelector.jPlayer).data("jPlayer").status.paused?d.play(0):d.select(0);b(this).slideDown(d.options.playlistOptions.shuffleTime)})}}})(jQuery); 257 258// $(document).ready(function() { 259// $('.audio_item').on('click',function(){ 260// pastmp3 = curmp3; 261// curmp3 = $(this).closest('li').data('audiourl'); 262// title = $(this).closest('li').data('title'); 263// player = $(this).closest('.jp-audio'); 264 265 266// // $('.block-audio-list li',player).removeClass('current'); 267// // $(this).closest('li').addClass('current'); 268 269 270// // playerId = player.prev('.jp-jplayer').prop('id'); 271// // if ($(this).hasClass('active')) { 272// // $(this).removeClass('active'); 273// // $('#'+playerId).jPlayer('pause'); 274// // } else { 275// // $('.block-audio-list .control',player).removeClass('active'); 276// // $(this).addClass('active'); 277// // if (pastmp3 == curmp3) { 278// // $('#'+playerId).jPlayer('play'); 279// // } else { 280// // $('#'+playerId).jPlayer("setMedia", { 281// // mp3: curmp3 282// // }).jPlayer('play'); 283// // } 284// // } 285 286// $("#jquery_jplayer_1").jPlayer({ 287// ready: function (event) { 288// $(this).jPlayer("setMedia", { 289// title: title, 290// mp3: curmp3 291// // m4a: "http://jplayer.org/audio/m4a/Miaow-07-Bubble.m4a", 292// // oga: "http://jplayer.org/audio/ogg/Miaow-07-Bubble.ogg" 293// });
294// }, 295// swfPath: "../js", 296// supplied: "m4a, oga, mp3", 297// wmode: "window", 298// smoothPlayBar: true, 299// keyEnabled: true, 300// remainingDuration: true, 301// toggleDuration: true 302// }); 303 304// }) 305// }) 306; 307/*** Script File: /public/js/front/standard/centrifuge.js, Original size: 43,404, Compressed size: 18,208 ***/ 308(function(){'use strict';if(!Object.create)Object.create=(function(){function F(){};return function(o){if(arguments.length!=1)throw new Error('Object.create implementation only accepts one parameter.');F.prototype=o;return new F()}})();if(!Array.prototype.indexOf)Array.prototype.indexOf=function(searchElement){'use strict';if(this==null)throw new TypeError();var n,k,t=Object(this),len=t.length>>>0;if(len===0)return-1;n=0;if(arguments.length>1){n=Number(arguments[1]);if(n!=n){n=0}else if(n!=0&&n!=Infinity&&n!=-Infinity)n=(n>0||-1)*Math.floor(Math.abs(n))};if(n>=len)return-1;for(k=n>=0?n:Math.max(len-Math.abs(n),0);k<len;k++)if(k in t&&t[k]===searchElement)return k;return-1} 309function extend(destination,source){destination.prototype=Object.create(source.prototype);destination.prototype.constructor=destination;return source.prototype} 310function EventEmitter(){};var proto=EventEmitter.prototype 311function indexOfListener(listeners,listener){var i=listeners.length;while(i--)if(listeners[i].listener===listener)return i;return-1} 312function alias(name){return function aliasClosure(){return this[name].apply(this,arguments)}};proto.getListeners=function getListeners(evt){var events=this._getEvents(),response,key;if(typeof evt==='object'){response={};for(key in events)if(events.hasOwnProperty(key)&&evt.test(key))response[key]=events[key]}else response=events[evt]||(events[evt]=[]);return response};proto.flattenListeners=function flattenListeners(listeners){var flatListeners=[],i;for(i=0;i<listeners.length;i+=1)flatListeners.push(listeners[i].listener);return flatListeners};proto.getListenersAsObject=function getListenersAsObject(evt){var listeners=this.getListeners(evt),response;if(listeners instanceof Array){response={};response[evt]=listeners};return response||listeners};proto.addListener=function addListener(evt,listener){var listeners=this.getListenersAsObject(evt),listenerIsWrapped=typeof listener==='object',key;for(key in listeners)if(listeners.hasOwnProperty(key)&&indexOfListener(listeners[key],listener)===-1)listeners[key].push(listenerIsWrapped?listener:{listener:listener,once:false});return this};proto.on=alias('addListener');proto.addOnceListener=function addOnceListener(evt,listener){return this.addListener(evt,{listener:listener,once:true})};proto.once=alias('addOnceListener');proto.defineEvent=function defineEvent(evt){this.getListeners(evt);return this};proto.defineEvents=function defineEvents(evts){for(var i=0;i<evts.length;i+=1)this.defineEvent(evts[i]);return this};proto.removeListener=function removeListener(evt,listener){var listeners=this.getListenersAsObject(evt),index,key;for(key in listeners)if(listeners.hasOwnProperty(key)){index=indexOfListener(listeners[key],listener);if(index!==-1)listeners[key].splice(index,1)};return this};proto.off=alias('removeListener');proto.addListeners=function addListeners(evt,listeners){return this.manipulateListeners(false,evt,listeners)};proto.removeListeners=function removeListeners(evt,listeners){return this.manipulateListeners(true,evt,listeners)};proto.manipulateListeners=function manipulateListeners(remove,evt,listeners){var i,value,single=remove?this.removeListener:this.addListener,multiple=remove?this.removeListeners:this.addListeners;if(typeof evt==='object'&&!(evt instanceof RegExp)){for(i in evt)if(evt.hasOwnProperty(i)&&(value=evt[i]))if(typeof value==='function'){single.call(this,i,value)}else multiple.call(this,i,value)}else{i=listeners.length;while(i--)single.call(this,evt,listeners[i])};return this};proto.removeEvent=function removeEvent(evt){var type=typeof evt,events=this._getEvents(),key;if(type==='string'){delete events[evt]}else if(type==='object'){for(key in events)if(events.hasOwnProperty(key)&&evt.test(key))delete events[key]}else delete this._events;return this};proto.emitEvent=function emitEvent(evt,args){var listeners=this.getListenersAsObject(evt),listener,i,key,response;for(key in listeners)if(listeners.hasOwnProperty(key)){i=listeners[key].length;while(i--){listener=listeners[key][i];if(listener.once===true)this.removeListener(evt,listener.listener);response=listener.listener.apply(this,args||[]);if(response===this._getOnceReturnValue())this.removeListener(evt,listener.listener)}};return this};proto.trigger=alias('emitEvent');proto.emit=function emit(evt){var args=Array.prototype.slice.call(arguments,1
312);return this.emitEvent(evt,args)};proto.setOnceReturnValue=function setOnceReturnValue(value){this._onceReturnValue=value;return this};proto._getOnceReturnValue=function _getOnceReturnValue(){if(this.hasOwnProperty('_onceReturnValue')){return this._onceReturnValue}else return true};proto._getEvents=function _getEvents(){return this._events||(this._events={})} 313function mixin(deep,target,objects){var result=target||{};for(var i=2;i<arguments.length;++i){var object=arguments[i];if(object===undefined||object===null)continue;for(var propName in object){var prop=fieldValue(object,propName),targ=fieldValue(result,propName);if(prop===target)continue;if(prop===undefined)continue;if(deep&&typeof prop==='object'&&prop!==null){if(prop instanceof Array){result[propName]=mixin(deep,targ instanceof Array?targ:[],prop)}else{var source=typeof targ==='object'&&!(targ instanceof Array)?targ:{};result[propName]=mixin(deep,source,prop)}}else result[propName]=prop}};return result} 314function fieldValue(object,name){try{return object[name]}catch(x){return undefined}} 315function endsWith(value,suffix){return value.indexOf(suffix,value.length-suffix.length)!==-1} 316function stripSlash(value){if(value.substring(value.length-1)=="/")value=value.substring(0,value.length-1);return value} 317function isString(value){if(value===undefined||value===null)return false;return typeof value==='string'||value instanceof String} 318function isFunction(value){if(value===undefined||value===null)return false;return typeof value==='function'} 319function log(level,args){if(window.console){var logger=window.console[level];if(isFunction(logger))logger.apply(window.console,args)}} 320function Centrifuge(options){this._sockjs=false;this._status='disconnected';this._reconnect=true;this._transport=null;this._messageId=0;this._clientId=null;this._subscriptions={};this._messages=[];this._isBatching=false;this._config={retry:3e3,info:null,debug:false,protocols_whitelist:['websocket','xdr-streaming','xhr-streaming','iframe-eventsource','iframe-htmlfile','xdr-polling','xhr-polling','iframe-xhr-polling','jsonp-polling']};if(options)this.configure(options)};extend(Centrifuge,EventEmitter);var centrifuge_proto=Centrifuge.prototype;centrifuge_proto._debug=function(){if(this._config.debug===true)log('debug',arguments)};centrifuge_proto._configure=function(configuration){this._debug('Configuring centrifuge object with',configuration);if(!configuration)configuration={};this._config=mixin(false,this._config,configuration);if(!this._config.url)throw'Missing required configuration parameter \'url\' specifying the Centrifuge server URL';if(!this._config.token)throw'Missing required configuration parameter \'token\' specifying the sign of authorization request';if(!this._config.project)throw'Missing required configuration parameter \'project\' specifying project ID in Centrifuge';if(!this._config.user&&this._config.user!=='')throw'Missing required configuration parameter \'user\' specifying user\'s unique ID in your application';if(!this._config.timestamp)throw'Missing required configuration parameter \'timestamp\'';this._config.url=stripSlash(this._config.url);if(endsWith(this._config.url,'connection')){if(typeof window.SockJS==='undefined')throw'You need to include SockJS client library before Centrifuge javascript client library or use pure Websocket connection endpoint';this._sockjs=true}};centrifuge_proto._setStatus=function(newStatus){if(this._status!==newStatus){this._debug('Status',this._status,'->',newStatus);this._status=newStatus}};centrifuge_proto._isDisconnected=function(){return this._isConnected()===false};centrifuge_proto._isConnected=function(){return this._status==='connected'};centrifuge_proto._nextMessageId=function(){return++this._messageId};centrifuge_proto._clearSubscriptions=function(){this._subscriptions={}};centrifuge_proto._send=function(messages){for(var i=0;i<messages.length;++i){var message=messages[i];message.uid=''+this._nextMessageId();if(this._clientId)message.clientId=this._clientId;this._debug('Send',message);this._transport.send(JSON.stringify(message))}};centrifuge_proto._connect=function(callback){this._clientId=null;this._reconnect=true;this._clearSubscriptions();this._setStatus('connecting');var self=this;if(callback)this.on('connect',callback);if(this._sockjs===true){this._transport=new SockJS(this._config.url,null,{protocols_whitelist:this._config.protocols_whitelist})}else this._transport=new WebSocket(this._config.url);this._setStatus('connecting');this._transport.onopen=function(){var centrifugeMessage={method:'connect',params:{token:self._config.token,user:self._config.user,project:self._config.project,timestamp:self._config.timestamp}};if(self._config.info!==null){self._debug("connect using additional info");centrifugeMessage.params['info']=self._config.info}else self._debug("connect without additional info");self.send(centrifugeMessage)};this._transport.onerror=function(error){self._debug(error)};this._transport.onclose=function(){self._setStatus('disconnected');self.trigger('disconnect');if(self._reconnect===true)window.setTimeout(function(){if(self._reconnect===true)self._connect.call(self)},self._config.retry)};this._transport.onmessage=function(event){var data;data=JSON.parse(event.data);self._debug('Received',data);
320self._receive(data)}};centrifuge_proto._disconnect=function(){this._clientId=null;this._setStatus('disconnected');this._subscriptions={};this._reconnect=false;this._transport.close()};centrifuge_proto._getSubscription=function(channel){var subscription;subscription=this._subscriptions[channel];if(!subscription)return null;return subscription};centrifuge_proto._removeSubscription=function(channel){try{delete this._subscriptions[channel]}catch(e){this._debug('nothing to delete for channel ',channel)}};centrifuge_proto._connectResponse=function(message){if(message.error===null){this._clientId=message.body;this._setStatus('connected');this.trigger('connect',[message])}else{this.trigger('error',[message]);this.trigger('connect:error',[message])}};centrifuge_proto._disconnectResponse=function(message){if(message.error===null){this.disconnect()}else{this.trigger('error',[message]);this.trigger('disconnect:error',[message.error])}};centrifuge_proto._subscribeResponse=function(message){if(message.error!==null)this.trigger('error',[message]);var body=message.body;if(body===null)return;var channel=body.channel,subscription=this.getSubscription(channel);if(!subscription)return;if(message.error===null){subscription.trigger('subscribe:success',[body]);subscription.trigger('ready',[body])}else{subscription.trigger('subscribe:error',[message.error]);subscription.trigger('error',[message])}};centrifuge_proto._unsubscribeResponse=function(message){var body=message.body,channel=body.channel,subscription=this.getSubscription(channel);if(!subscription)return;if(message.error===null){subscription.trigger('unsubscribe',[body]);this._centrifuge._removeSubscription(channel)}};centrifuge_proto._publishResponse=function(message){var body=message.body,channel=body.channel,subscription=this.getSubscription(channel);if(!subscription)return;if(message.error===null){subscription.trigger('publish:success',[body])}else{subscription.trigger('publish:error',[message.error]);this.trigger('error',[message])}};centrifuge_proto._presenceResponse=function(message){var body=message.body,channel=body.channel,subscription=this.getSubscription(channel);if(!subscription)return;if(message.error===null){subscription.trigger('presence',[body]);subscription.trigger('presence:success',[body])}else{subscription.trigger('presence:error',[message.error]);this.trigger('error',[message])}};centrifuge_proto._historyResponse=function(message){var body=message.body,channel=body.channel,subscription=this.getSubscription(channel);if(!subscription)return;if(message.error===null){subscription.trigger('history',[body]);subscription.trigger('history:success',[body])}else{subscription.trigger('history:error',[message.error]);this.trigger('error',[message])}};centrifuge_proto._joinResponse=function(message){var body=message.body,channel=body.channel,subscription=this.getSubscription(channel);if(!subscription)return;subscription.trigger('join',[body])};centrifuge_proto._leaveResponse=function(message){var body=message.body,channel=body.channel,subscription=this.getSubscription(channel);if(!subscription)return;subscription.trigger('leave',[body])};centrifuge_proto._messageResponse=function(message){var body=message.body,channel=body.channel,subscription=this.getSubscription(channel);if(subscription===null)return;subscription.trigger('message',[body])};centrifuge_proto._dispatchMessage=function(message){if(message===undefined||message===null)return;var method=message.method;if(!method)return;switch(method){case'connect':this._connectResponse(message);break;case'disconnect':this._disconnectResponse(message);break;case'subscribe':this._subscribeResponse(message);break;case'unsubscribe':this._unsubscribeResponse(message);break;case'publish':this._publishResponse(message);break;case'presence':this._presenceResponse(message);break;case'history':this._historyResponse(message);break;case'join':this._joinResponse(message);break;case'leave':this._leaveResponse(message);break;case'ping':break;case'message':this._messageResponse(message);break;default:break}};centrifuge_proto._receive=function(data){if(Object.prototype.toString.call(data)===Object.prototype.toString.call([])){for(var i in data)if(data.hasOwnProperty(i)){var msg=data[i];this._dispatchMessage(msg)}}else if(Object.prototype.toString.call(data)===Object.prototype.toString.call({}))this._dispatchMessage(data)};centrifuge_proto._flush=function(){var messages=this._messages.slice(0);this._messages=[];this._send(messages)};centrifuge_proto._ping=function(){var centrifugeMessage={method:"ping",params:{}};this.send(centrifugeMessage)};centrifuge_proto.getClientId=function(){return this._clientId};centrifuge_proto.isConnected=centrifuge_proto._isConnected;centrifuge_proto.isDisconnected=centrifuge_proto._isDisconnected;centrifuge_proto.configure=function(configuration){this._configure.call(this,configuration)};centrifuge_proto.connect=centrifuge_proto._connect;centrifuge_proto.disconnect=centrifuge_proto._disconnect;centrifuge_proto.getSubscription=centrifuge_proto._getSubscription;centrifuge_proto.ping=centrifuge_proto._ping;centrifuge_proto.send=function(message){if(this._isBatching===true){this._messages.push(message)}else this._send([message])};centrifuge_proto.startBatching=function(){this._isBatching=true};centrifuge_proto.stopBatching=function(flush){flush=flush||false;this._isBatching=false;if(flush===true)this.flush()};centrifuge_proto.flush=function(){this._flush()};
320centrifuge_proto.subscribe=function(channel,callback){if(arguments.length<1)throw'Illegal arguments number: required 1, got '+arguments.length;if(!isString(channel))throw'Illegal argument type: channel must be a string';if(this.isDisconnected())throw'Illegal state: already disconnected';var current_subscription=this.getSubscription(channel);if(current_subscription!==null){return current_subscription}else{var subscription=new Subscription(this,channel);this._subscriptions[channel]=subscription;subscription.subscribe(callback);return subscription}};centrifuge_proto.unsubscribe=function(channel){if(arguments.length<1)throw'Illegal arguments number: required 1, got '+arguments.length;if(!isString(channel))throw'Illegal argument type: channel must be a string';if(this.isDisconnected())return;var subscription=this.getSubscription(channel);if(subscription!==null)subscription.unsubscribe()};centrifuge_proto.publish=function(channel,data,callback){var subscription=this.getSubscription(channel);if(subscription===null){this._debug("subscription not found for channel "+channel);return null};subscription.publish(data,callback);return subscription};centrifuge_proto.presence=function(channel,callback){var subscription=this.getSubscription(channel);if(subscription===null){this._debug("subscription not found for channel "+channel);return null};subscription.presence(callback);return subscription};centrifuge_proto.history=function(channel,callback){var subscription=this.getSubscription(channel);if(subscription===null){this._debug("subscription not found for channel "+channel);return null};subscription.history(callback);return subscription} 321function Subscription(centrifuge,channel){this._centrifuge=centrifuge;this.channel=channel};extend(Subscription,EventEmitter);var sub_proto=Subscription.prototype;sub_proto.getChannel=function(){return this.channel};sub_proto.getCentrifuge=function(){return this._centrifuge};sub_proto.subscribe=function(callback){var centrifugeMessage={method:"subscribe",params:{channel:this.channel}};this._centrifuge.send(centrifugeMessage);if(callback)this.on('message',callback)};sub_proto.unsubscribe=function(){this._centrifuge._removeSubscription(this.channel);var centrifugeMessage={method:"unsubscribe",params:{channel:this.channel}};this._centrifuge.send(centrifugeMessage)};sub_proto.publish=function(data,callback){var centrifugeMessage={method:"publish",params:{channel:this.channel,data:data}};if(callback)this.on('publish:success',callback);this._centrifuge.send(centrifugeMessage)};sub_proto.presence=function(callback){var centrifugeMessage={method:"presence",params:{channel:this.channel}};if(callback)this.on('presence',callback);this._centrifuge.send(centrifugeMessage)};sub_proto.history=function(callback){var centrifugeMessage={method:"history",params:{channel:this.channel}};if(callback)this.on('history',callback);this._centrifuge.send(centrifugeMessage)};if(typeof define==='function'&&define.amd){define(function(){return Centrifuge})}else if(typeof module==='object'&&module.exports){module.exports=Centrifuge}else this.Centrifuge=Centrifuge}.call(this)) 322; 323/*** Script File: /public/js/front/standard/sockjs-0.3.4.min.js, Original size: 33,929, Compressed size: 33,929 ***/ 324/* SockJS client, version 0.3.4, http://sockjs.org, MIT License 325 326 Copyright (c) 2011-2012 VMware, Inc. 327 328 Permission is hereby granted, free of charge, to any person obtaining a copy 329 of this software and associated documentation files (the "Software"), to deal 330 in the Software without restriction, including without limitation the rights 331 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 332 copies of the Software, and to permit persons to whom the Software is 333 furnished to do so, subject to the following conditions: 334 335 The above copyright notice and this permission notice shall be included in 336 all copies or substantial portions of the Software. 337 338 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 339 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 340 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 341 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 342 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 343 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 344 THE SOFTWARE. 345 */ 346 347// JSON2 by Douglas Crockford (minified).�
vendor: 2,959 bytes, lines 347-348
347 348var JSON;JSON||(JSON={}),function(){function str(a,b){var c,d,e,f,g=gap,h,i=b[a];i&&typeof i=="object"&&typeof i.toJSON=="function"&&(i=i.toJSON(a)),typeof rep=="function"&&(i=rep.call(b,a,i));switch(typeof i){case"string":return quote(i);case"number":return isFinite(i)?String(i):"null";case"boolean":case"null":return String(i);case"object":if(!i)return"null";gap+=indent,h=[];if(Object.prototype.toString.apply(i)==="[object Array]"){f=i.length;for(c=0;c<f;c+=1)h[c]=str(c,i)||"null";e=h.length===0?"[]":gap?"[\n"+gap+h.join(",\n"+gap)+"\n"+g+"]":"["+h.join(",")+"]",gap=g;return e}if(rep&&typeof rep=="object"){f=rep.length;for(c=0;c<f;c+=1)typeof rep[c]=="string"&&(d=rep[c],e=str(d,i),e&&h.push(quote(d)+(gap?": ":":")+e))}else for(d in i)Object.prototype.hasOwnProperty.call(i,d)&&(e=str(d,i),e&&h.push(quote(d)+(gap?": ":":")+e));e=h.length===0?"{}":gap?"{\n"+gap+h.join(",\n"+gap)+"\n"+g+"}":"{"+h.join(",")+"}",gap=g;return e}}function quote(a){escapable.lastIndex=0;return escapable.test(a)?'"'+a.replace(escapable,function(a){var b=meta[a];return typeof b=="string"?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function f(a){return a<10?"0"+a:a}"use strict",typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(a){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(a){return this.valueOf()});var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;typeof JSON.stringify!="function"&&(JSON.stringify=function(a,b,c){var d;gap="",indent="";if(typeof c=="number")for(d=0;d<c;d+=1)indent+=" ";else typeof c=="string"&&(indent=c);rep=b;if(!b||typeof b=="function"||typeof b=="object"&&typeof b.length=="number")return str("",{"":a});throw new Error("JSON.stringify")}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){function walk(a,b){var c,d,e=a[b];if(e&&typeof e=="object")for(c in e)Object.prototype.hasOwnProperty.call(e,c)&&(d=walk(e,c),d!==undefined?e[c]=d:delete e[c]);return reviver.call(a,b,e)}var j;text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof reviver=="function"?walk({"":j},""):j}throw new SyntaxError("JSON.parse")})}()
348 349 350SockJS=function(){var a=document,b=window,c={},d=function(){};d.prototype.addEventListener=function(a,b){this._listeners||(this._listeners={}),a in this._listeners||(this._listeners[a]=[]);var d=this._listeners[a];c.arrIndexOf(d,b)===-1&&d.push(b);return},d.prototype.removeEventListener=function(a,b){if(!(this._listeners&&a in this._listeners))return;var d=this._listeners[a],e=c.arrIndexOf(d,b);if(e!==-1){d.length>1?this._listeners[a]=d.slice(0,e).concat(d.slice(e+1)):delete this._listeners[a];return}return},d.prototype.dispatchEvent=function(a){var b=a.type,c=Array.prototype.slice.call(arguments,0);this["on"+b]&&this["on"+b].apply(this,c);if(this._listeners&&b in this._listeners)for(var d=0;d<this._listeners[b].length;d++)this._listeners[b][d].apply(this,c)};var e=function(a,b){this.type=a;if(typeof b!="undefined")for(var c in b){if(!b.hasOwnProperty(c))continue;this[c]=b[c]}};e.prototype.toString=function(){var a=[];for(var b in this){if(!this.hasOwnProperty(b))continue;var c=this[b];typeof c=="function"&&(c="[function]"),a.push(b+"="+c)}return"SimpleEvent("+a.join(", ")+")"};var f=function(a){var b=this;b._events=a||[],b._listeners={}};f.prototype.emit=function(a){var b=this;b._verifyType(a);if(b._nuked)return;var c=Array.prototype.slice.call(arguments,1);b["on"+a]&&b["on"+a].apply(b,c);if(a in b._listeners)for(var d=0;d<b._listeners[a].length;d++)b._listeners[a][d].apply(b,c)},f.prototype.on=function(a,b){var c=this;c._verifyType(a);if(c._nuked)return;a in c._listeners||(c._listeners[a]=[]),c._listeners[a].push(b)},f.prototype._verifyType=function(a){var b=this;c.arrIndexOf(b._events,a)===-1&&c.log("Event "+JSON.stringify(a)+" not listed "+JSON.stringify(b._events)+" in "+b)},f.prototype.nuke=function(){var a=this;a._nuked=!0;for(var b=0;b<a._events.length;b++)delete a[a._events[b]];a._listeners={}};var g="abcdefghijklmnopqrstuvwxyz0123456789_";c.random_string=function(a,b){b=b||g.length;var c,d=[];for(c=0;c<a;c++)d.push(g.substr(Math.floor(Math.random()*b),1));return d.join("")},c.random_number=function(a){return Math.floor(Math.random()*a)},c.random_number_string=function(a){var b=(""+(a-1)).length,d=Array(b+1).join("0");return(d+c.random_number(a)).slice(-b)},c.getOrigin=function(a){a+="/";var b=a.split("/").slice(0,3);return b.join("/")},c.isSameOriginUrl=function(a,c){return c||(c=b.location.href),a.split("/").slice(0,3).join("/")===c.split("/").slice(0,3).join("/")},c.getParentDomain=function(a){if(/^[0-9.]*$/.test(a))return a;if(/^\[/.test(a))return a;if(!/[.]/.test(a))return a;var b=a.split(".").slice(1);return b.join(".")},c.objectExtend=function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a};var h="_jp";c.polluteGlobalNamespace=function(){h in b||(b[h]={})},c.closeFrame=function(a,b){return"c"+JSON.stringify([a,b])},c.userSetCode=function(a){return a===1e3||a>=3e3&&a<=4999},c.countRTO=function(a){var b;return a>100?b=3*a:b=a+200,b},c.log=function(){b.console&&console.log&&console.log.apply&&console.log.apply(console,arguments)},c.bind=function(a,b){return a.bind?a.bind(b):function(){return a.apply(b,arguments)}},c.flatUrl=function(a){return a.indexOf("?")===-1&&a.indexOf("#")===-1},c.amendUrl=function(b){var d=a.location;if(!b)throw new Error("Wrong url for SockJS");if(!c.flatUrl(b))throw new Error("Only basic urls are supported in SockJS");return b.indexOf("//")===0&&(b=d.protocol+b),b.indexOf("/")===0&&(b=d.protocol+"//"+d.host+b),b=b.replace(/[/]+$/,""),b},c.arrIndexOf=function(a,b){for(var c=0;c<a.length;c++)if(a[c]===b)return c;return-1},c.arrSkip=function(a,b){var d=c.arrIndexOf(a,b);if(d===-1)return a.slice();var e=a.slice(0,d);return e.concat(a.slice(d+1))},c.isArray=Array.isArray||function(a){return{}.toString.call(a).indexOf("Array")>=0},c.delay=function(a,b){return typeof a=="function"&&(b=a,a=0),setTimeout(b,a)};var i=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,j={"\0":"\\u0000","\x01":"\\u0001","\x02":"\\u0002","\x03":"\\u0003","\x04":"\\u0004","\x05":"\\u0005","\x06":"\\u0006","\x07":"\\u0007","\b":"\\b","\t":"\\t","\n":"\\n","\x0b":"\\u000b","\f":"\\f","\r":"\\r","\x0e":"\\u000e","\x0f":"\\u000f","\x10":"\\u0010","\x11":"\\u0011","\x12":"\\u0012","\x13":"\\u0013","\x14":"\\u0014","\x15":"\\u0015","\x16":"\\u0016","\x17":"\\u0017","\x18":"\\u0018","\x19":"\\u0019","\x1a":"\\u001a","\x1b":"\\u001b","\x1c":"\\u001c","\x1d":"\\u001d","\x1e":"\\u001e","\x1f":"\\u001f",'"':'\\"',"\\":"\\\\","\x7f":"\\u007f","\x80":"\\u0080","\x81":"\\u0081","\x82":"\\u0082","\x83":"\\u0083","\x84":"\\u0084","\x85":"\\u0085","\x86":"\\u0086","\x87":"\\u0087","\x88":"\\u0088","\x89":"\\u0089","\x8a":"\\u008a","\x8b":"\\u008b","\x8c":"\\u008c","\x8d":"\\u008d","\x8e":"\\u008e","\x8f":"\\u008f","\x90":"\\u0090","\x91":"\\u0091","\x92"
350:"\\u0092","\x93":"\\u0093","\x94":"\\u0094","\x95":"\\u0095","\x96":"\\u0096","\x97":"\\u0097","\x98":"\\u0098","\x99":"\\u0099","\x9a":"\\u009a","\x9b":"\\u009b","\x9c":"\\u009c","\x9d":"\\u009d","\x9e":"\\u009e","\x9f":"\\u009f","\xad":"\\u00ad","\u0600":"\\u0600","\u0601":"\\u0601","\u0602":"\\u0602","\u0603":"\\u0603","\u0604":"\\u0604","\u070f":"\\u070f","\u17b4":"\\u17b4","\u17b5":"\\u17b5","\u200c":"\\u200c","\u200d":"\\u200d","\u200e":"\\u200e","\u200f":"\\u200f","\u2028":"\\u2028","\u2029":"\\u2029","\u202a":"\\u202a","\u202b":"\\u202b","\u202c":"\\u202c","\u202d":"\\u202d","\u202e":"\\u202e","\u202f":"\\u202f","\u2060":"\\u2060","\u2061":"\\u2061","\u2062":"\\u2062","\u2063":"\\u2063","\u2064":"\\u2064","\u2065":"\\u2065","\u2066":"\\u2066","\u2067":"\\u2067","\u2068":"\\u2068","\u2069":"\\u2069","\u206a":"\\u206a","\u206b":"\\u206b","\u206c":"\\u206c","\u206d":"\\u206d","\u206e":"\\u206e","\u206f":"\\u206f","\ufeff":"\\ufeff","\ufff0":"\\ufff0","\ufff1":"\\ufff1","\ufff2":"\\ufff2","\ufff3":"\\ufff3","\ufff4":"\\ufff4","\ufff5":"\\ufff5","\ufff6":"\\ufff6","\ufff7":"\\ufff7","\ufff8":"\\ufff8","\ufff9":"\\ufff9","\ufffa":"\\ufffa","\ufffb":"\\ufffb","\ufffc":"\\ufffc","\ufffd":"\\ufffd","\ufffe":"\\ufffe","\uffff":"\\uffff"},k=/[\x00-\x1f\ud800-\udfff\ufffe\uffff\u0300-\u0333\u033d-\u0346\u034a-\u034c\u0350-\u0352\u0357-\u0358\u035c-\u0362\u0374\u037e\u0387\u0591-\u05af\u05c4\u0610-\u0617\u0653-\u0654\u0657-\u065b\u065d-\u065e\u06df-\u06e2\u06eb-\u06ec\u0730\u0732-\u0733\u0735-\u0736\u073a\u073d\u073f-\u0741\u0743\u0745\u0747\u07eb-\u07f1\u0951\u0958-\u095f\u09dc-\u09dd\u09df\u0a33\u0a36\u0a59-\u0a5b\u0a5e\u0b5c-\u0b5d\u0e38-\u0e39\u0f43\u0f4d\u0f52\u0f57\u0f5c\u0f69\u0f72-\u0f76\u0f78\u0f80-\u0f83\u0f93\u0f9d\u0fa2\u0fa7\u0fac\u0fb9\u1939-\u193a\u1a17\u1b6b\u1cda-\u1cdb\u1dc0-\u1dcf\u1dfc\u1dfe\u1f71\u1f73\u1f75\u1f77\u1f79\u1f7b\u1f7d\u1fbb\u1fbe\u1fc9\u1fcb\u1fd3\u1fdb\u1fe3\u1feb\u1fee-\u1fef\u1ff9\u1ffb\u1ffd\u2000-\u2001\u20d0-\u20d1\u20d4-\u20d7\u20e7-\u20e9\u2126\u212a-\u212b\u2329-\u232a\u2adc\u302b-\u302c\uaab2-\uaab3\uf900-\ufa0d\ufa10\ufa12\ufa15-\ufa1e\ufa20\ufa22\ufa25-\ufa26\ufa2a-\ufa2d\ufa30-\ufa6d\ufa70-\ufad9\ufb1d\ufb1f\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufb4e\ufff0-\uffff]/g,l,m=JSON&&JSON.stringify||function(a){return i.lastIndex=0,i.test(a)&&(a=a.replace(i,function(a){return j[a]})),'"'+a+'"'},n=function(a){var b,c={},d=[];for(b=0;b<65536;b++)d.push(String.fromCharCode(b));return a.lastIndex=0,d.join("").replace(a,function(a){return c[a]="\\u"+("0000"+a.charCo
350deAt(0).toString(16)).slice(-4),""}),a.lastIndex=0,c};c.quote=function(a){var b=m(a);return k.lastIndex=0,k.test(b)?(l||(l=n(k)),b.replace(k,function(a){return l[a]})):b};var o=["websocket","xdr-streaming","xhr-streaming","iframe-eventsource","iframe-htmlfile","xdr-polling","xhr-polling","iframe-xhr-polling","jsonp-polling"];c.probeProtocols=function(){var a={};for(var b=0;b<o.length;b++){var c=o[b];a[c]=y[c]&&y[c].enabled()}return a},c.detectProtocols=function(a,b,c){var d={},e=[];b||(b=o);for(var f=0;f<b.length;f++){var g=b[f];d[g]=a[g]}var h=function(a){var b=a.shift();d[b]?e.push(b):a.length>0&&h(a)};return c.websocket!==!1&&h(["websocket"]),d["xhr-streaming"]&&!c.null_origin?e.push("xhr-streaming"):d["xdr-streaming"]&&!c.cookie_needed&&!c.null_origin?e.push("xdr-streaming"):h(["iframe-eventsource","iframe-htmlfile"]),d["xhr-polling"]&&!c.null_origin?e.push("xhr-polling"):d["xdr-polling"]&&!c.cookie_needed&&!c.null_origin?e.push("xdr-polling"):h(["iframe-xhr-polling","jsonp-polling"]),e};var p="_sockjs_global";c.createHook=function(){var a="a"+c.random_string(8);if(!(p in b)){var d={};b[p]=function(a){return a in d||(d[a]={id:a,del:function(){delete d[a]}}),d[a]}}return b[p](a)},c.attachMessage=function(a){c.attachEvent("message",a)},c.attachEvent=function(c,d){typeof b.addEventListener!="undefined"?b.addEventListener(c,d,!1):(a.attachEvent("on"+c,d),b.attachEvent("on"+c,d))},c.detachMessage=function(a){c.detachEvent("message",a)},c.detachEvent=function(c,d){typeof b.addEventListener!="undefined"?b.removeEventListener(c,d,!1):(a.detachEvent("on"+c,d),b.detachEvent("on"+c,d))};var q={},r=!1,s=function(){for(var a in q)q[a](),delete q[a]},t=function(){if(r)return;r=!0,s()};c.attachEvent("unload",t),c.unload_add=function(a){var b=c.random_string(8);return q[b]=a,r&&c.delay(s),b},c.unload_del=function(a){a in q&&delete q[a]},c.createIframe=function(b,d){var e=a.createElement("iframe"),f,g,h=function(){clearTimeout(f);try{e.onload=null}catch(a){}e.onerror=null},i=function(){e&&(h(),setTimeout(function(){e&&e.parentNode.removeChild(e),e=null},0),c.unload_del(g))},j=function(a){e&&(i(),d(a))},k=function(a,b){try{e&&e.contentWindow&&e.contentWindow.postMessage(a,b)}catch(c){}};return e.src=b,e.style.display="none",e.style.position="absolute",e.onerror=function(){j("onerror")},e.onload=function(){clearTimeout(f),f=setTimeout(function(){j("onload timeout")},2e3)},a.body.appendChild(e),f=setTimeout(function(){j("timeout")},15e3),g=c.unload_add(i),{post:k,cleanup:i,loaded:h}},c.createHtmlfile=function(a,d){var e=new ActiveXObject("htmlfile"),f,g,i,j=function(){clearTimeout(f)},k=function(){e&&(j(),c.unload_del(g),i.parentNode.removeChild(i),i=e=null,CollectGarbage())},l=function(a){e&&(k(),d(a))},m=function(a,b){try{i&&i.contentWindow&&i.contentWindow.postMessage(a,b)}catch(c){}};e.open(),e.write('<html><script>document.domain="'+document.domain+'";'+"</s"+"cript></html>"),e.close(),e.parentWindow[h]=b[h];var n=e.createElement("div");return e.body.appendChild(n),i=e.createElement("iframe"),n.appendChild(i),i.src=a,f=setTimeout(function(){l("timeout")},15e3),g=c.unload_add(k),{post:m,cleanup:k,loaded:j}};var u=function(){};u.prototype=new f(["chunk","finish"]),u.prototype._start=function(a,d,e,f){var g=this;try{g.xhr=new XMLHttpRequest}catch(h){}if(!g.xhr)try{g.xhr=new b.ActiveXObject("Microsoft.XMLHTTP")}catch(h){}if(b.ActiveXObject||b.XDomainRequest)d+=(d.indexOf("?")===-1?"?":"&")+"t="+ +(new Date);g.unload_ref=c.unload_add(function(){g._cleanup(!0)});try{g.xhr.open(a,d,!0)}catch(i){g.emit("finish",0,""),g._cleanup();return}if(!f||!f.no_credentials)g.xhr.withCredentials="true";if(f&&f.headers)for(var j in f.headers)g.xhr.setRequestHeader(j,f.headers[j]);g.xhr.onreadystatechange=function(){if(g.xhr){var a=g.xhr;switch(a.readyState){case 3:try{var b=a.status,c=a.responseText}catch(a){}b===1223&&(b=204),c&&c.length>0&&g.emit("chunk",b,c);break;case 4:var b=a.status;b===1223&&(b=204),g.emit("finish",b,a.responseText),g._cleanup(!1)}}},g.xhr.send(e)},u.prototype._cleanup=function(a){var b=this;if(!b.xhr)return;c.unload_del(b.unload_ref),b.xhr.onreadystatechange=function(){};if(a)try{b.xhr.abort()}catch(d){}b.unload_ref=b.xhr=null},u.prototype.close=function(){var a=this;a.nuke(),a._cleanup(!0)};var v=c.XHRCorsObject=function(){var a=this,b=arguments;c.delay(function(){a._start.apply(a,b)})};v.prototype=new u;var w=c.XHRLocalObject=function(a,b,d){var e=this;c.delay(function(){e._start(a,b,d,{no_credentials:!0})})};w.prototype=new u;var x=c.XDRObject=function(a,b,d){var e=this;c.delay(function(){e._start(a,b,d)})};x.prototype=new f(["chunk","finish"]),x.prototype._start=function(a,b,d){var e=this,f=new XDomainRequest;b+=(b.indexOf("?")===-1?"?":"&")+"t="+ +(new Date);var g=f.ontimeout=f.onerror=function(){e.emit("finish",0,""),e._cleanup(!1)};f.onprogress=function(){e.emit("chunk",200,f.responseText)},f.onload=function(){e.emit("finish",200,f.responseText),e._cleanup(!1)},e.xdr=f,e.unload_ref=c.unload_add(function(){e._cleanup(!0)});try{e.xdr.open(a,b),e.xdr.send(d)}catch(h){g()}},x.prototype._cleanup=function(a){var b=this;if(!b.xdr)return;
350c.unload_del(b.unload_ref),b.xdr.ontimeout=b.xdr.onerror=b.xdr.onprogress=b.xdr.onload=null;if(a)try{b.xdr.abort()}catch(d){}b.unload_ref=b.xdr=null},x.prototype.close=function(){var a=this;a.nuke(),a._cleanup(!0)},c.isXHRCorsCapable=function(){return b.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest?1:b.XDomainRequest&&a.domain?2:L.enabled()?3:4};var y=function(a,d,e){if(this===b)return new y(a,d,e);var f=this,g;f._options={devel:!1,debug:!1,protocols_whitelist:[],info:undefined,rtt:undefined},e&&c.objectExtend(f._options,e),f._base_url=c.amendUrl(a),f._server=f._options.server||c.random_number_string(1e3),f._options.protocols_whitelist&&f._options.protocols_whitelist.length?g=f._options.protocols_whitelist:(typeof d=="string"&&d.length>0?g=[d]:c.isArray(d)?g=d:g=null,g&&f._debug('Deprecated API: Use "protocols_whitelist" option instead of supplying protocol list as a second parameter to SockJS constructor.')),f._protocols=[],f.protocol=null,f.readyState=y.CONNECTING,f._ir=S(f._base_url),f._ir.onfinish=function(a,b){f._ir=null,a?(f._options.info&&(a=c.objectExtend(a,f._options.info)),f._options.rtt&&(b=f._options.rtt),f._applyInfo(a,b,g),f._didClose()):f._didClose(1002,"Can't connect to server",!0)}};y.prototype=new d,y.version="0.3.4",y.CONNECTING=0,y.OPEN=1,y.CLOSING=2,y.CLOSED=3,y.prototype._debug=function(){this._options.debug&&c.log.apply(c,arguments)},y.prototype._dispatchOpen=function(){var a=this;a.readyState===y.CONNECTING?(a._transport_tref&&(clearTimeout(a._transport_tref),a._transport_tref=null),a.readyState=y.OPEN,a.dispatchEvent(new e("open"))):a._didClose(1006,"Server lost session")},y.prototype._dispatchMessage=function(a){var b=this;if(b.readyState!==y.OPEN)return;b.dispatchEvent(new e("message",{data:a}))},y.prototype._dispatchHeartbeat=function(a){var b=this;if(b.readyState!==y.OPEN)return;b.dispatchEvent(new e("heartbeat",{}))},y.prototype._didClose=function(a,b,d){var f=this;if(f.readyState!==y.CONNECTING&&f.readyState!==y.OPEN&&f.readyState!==y.CLOSING)throw new Error("INVALID_STATE_ERR");f._ir&&(f._ir.nuke(),f._ir=null),f._transport&&(f._transport.doCleanup(),f._transport=null);var g=new e("close",{code:a,reason:b,wasClean:c.userSetCode(a)});if(!c.userSetCode(a)&&f.readyState===y.CONNECTING&&!d){if(f._try_next_protocol(g))return;g=new e("close",{code:2e3,reason:"All transports failed",wasClean:!1,last_event:g})}f.readyState=y.CLOSED,c.delay(function(){f.dispatchEvent(g)})},y.prototype._didMessage=function(a){var b=this,c=a.slice(0,1);switch(c){case"o":b._dispatchOpen();break;case"a":var d=JSON.parse(a.slice(1)||"[]");for(var e=0;e<d.length;e++)b._dispatchMessage(d[e]);break;case"m":var d=JSON.parse(a.slice(1)||"null");b._dispatchMessage(d);break;case"c":var d=JSON.parse(a.slice(1)||"[]");b._didClose(d[0],d[1]);break;case"h":b._dispatchHeartbeat()}},y.prototype._try_next_protocol=function(b){var d=this;d.protocol&&(d._debug("Closed transport:",d.protocol,""+b),d.protocol=null),d._transport_tref&&(clearTimeout(d._transport_tref),d._transport_tref=null);for(;;){var e=d.protocol=d._protocols.shift();if(!e)return!1;if(y[e]&&y[e].need_body===!0&&(!a.body||typeof a.readyState!="undefined"&&a.readyState!=="complete"))return d._protocols.unshift(e),d.protocol="waiting-for-load",c.attachEvent("load",function(){d._try_next_protocol()}),!0;if(!!y[e]&&!!y[e].enabled(d._options)){var f=y[e].roundTrips||1,g=(d._options.rto||0)*f||5e3;d._transport_tref=c.delay(g,function(){d.readyState===y.CONNECTING&&d._didClose(2007,"Transport timeouted")});var h=c.random_string(8),i=d._base_url+"/"+d._server+"/"+h;return d._debug("Opening transport:",e," url:"+i," RTO:"+d._options.rto),d._transport=new y[e](d,i,d._base_url),!0}d._debug("Skipping transport:",e)}},y.prototype.close=function(a,b){var d=this;if(a&&!c.userSetCode(a))throw new Error("INVALID_ACCESS_ERR");return d.readyState!==y.CONNECTING&&d.readyState!==y.OPEN?!1:(d.readyState=y.CLOSING,d._didClose(a||1e3,b||"Normal closure"),!0)},y.prototype.send=function(a){var b=this;if(b.readyState===y.CONNECTING)throw new Error("INVALID_STATE_ERR");return b.readyState===y.OPEN&&b._transport.doSend(c.quote(""+a)),!0},y.prototype._applyInfo=function(b,d,e){var f=this;f._options.info=b,f._options.rtt=d,f._options.rto=c.countRTO(d),f._options.info.null_origin=!a.domain;var g=c.probeProtocols();f._protocols=c.detectProtocols(g,e,b)};var z=y.websocket=function(a,d){var e=this,f=d+"/websocket";f.slice(0,5)==="https"?f="wss"+f.slice(5):f="ws"+f.slice(4),e.ri=a,e.url=f;var g=b.WebSocket||b.MozWebSocket;e.ws=new g(e.url),e.ws.onmessage=function(a){e.ri._didMessage(a.data)},e.unload_ref=c.unload_add(function(){e.ws.close()}
350),e.ws.onclose=function(){e.ri._didMessage(c.closeFrame(1006,"WebSocket connection broken"))}};z.prototype.doSend=function(a){this.ws.send("["+a+"]")},z.prototype.doCleanup=function(){var a=this,b=a.ws;b&&(b.onmessage=b.onclose=null,b.close(),c.unload_del(a.unload_ref),a.unload_ref=a.ri=a.ws=null)},z.enabled=function(){return!!b.WebSocket||!!b.MozWebSocket},z.roundTrips=2;var A=function(){};A.prototype.send_constructor=function(a){var b=this;b.send_buffer=[],b.sender=a},A.prototype.doSend=function(a){var b=this;b.send_buffer.push(a),b.send_stop||b.send_schedule()},A.prototype.send_schedule_wait=function(){var a=this,b;a.send_stop=function(){a.send_stop=null,clearTimeout(b)},b=c.delay(25,function(){a.send_stop=null,a.send_schedule()})},A.prototype.send_schedule=function(){var a=this;if(a.send_buffer.length>0){var b="["+a.send_buffer.join(",")+"]";a.send_stop=a.sender(a.trans_url,b,function(b,c){a.send_stop=null,b===!1?a.ri._didClose(1006,"Sending error "+c):a.send_schedule_wait()}),a.send_buffer=[]}},A.prototype.send_destructor=function(){var a=this;a._send_stop&&a._send_stop(),a._send_stop=null};var B=function(b,d,e){var f=this;if(!("_send_form"in f)){var g=f._send_form=a.createElement("form"),h=f._send_area=a.createElement("textarea");h.name="d",g.style.display="none",g.style.position="absolute",g.method="POST",g.enctype="application/x-www-form-urlencoded",g.acceptCharset="UTF-8",g.appendChild(h),a.body.appendChild(g)}var g=f._send_form,h=f._send_area,i="a"+c.random_string(8);g.target=i,g.action=b+"/jsonp_send?i="+i;var j;try{j=a.createElement('<iframe name="'+i+'">')}catch(k){j=a.createElement("iframe"),j.name=i}j.id=i,g.appendChild(j),j.style.display="none";try{h.value=d}catch(l){c.log("Your browser is seriously broken. Go home! "+l.message)}g.submit();var m=function(a){if(!j.onerror)return;j.onreadystatechange=j.onerror=j.onload=null,c.delay(500,function(){j.parentNode.removeChild(j),j=null}),h.value="",e(!0)};return j.onerror=j.onload=m,j.onreadystatechange=function(a){j.readyState=="complete"&&m()},m},C=function(a){return function(b,c,d){var e=new a("POST",b+"/xhr_send",c);return e.onfinish=function(a,b){d(a===200||a===204,"http status "+a)},function(a){d(!1,a)}}},D=function(b,d){var e,f=a.createElement("script"),g,h=function(a){g&&(g.parentNode.removeChild(g),g=null),f&&(clearTimeout(e),f.parentNode.removeChild(f),f.onreadystatechange=f.onerror=f.onload=f.onclick=null,f=null,d(a),d=null)},i=!1,j=null;f.id="a"+c.random_string(8),f.src=b,f.type="text/javascript",f.charset="UTF-8",f.onerror=function(a){j||(j=setTimeout(function(){i||h(c.closeFrame(1006,"JSONP script loaded abnormally (onerror)"))},1e3))},f.onload=function(a){h(c.closeFrame(1006,"JSONP script loaded abnormally (onload)"))},f.onreadystatechange=function(a){if(/loaded|closed/.test(f.readyState)){if(f&&f.htmlFor&&f.onclick){i=!0;try{f.onclick()}catch(b){}}f&&h(c.closeFrame(1006,"JSONP script loaded abnormally (onreadystatechange)"))}};if(typeof f.async=="undefined"&&a.attachEvent)if(!/opera/i.test(navigator.userAgent)){try{f.htmlFor=f.id,f.event="onclick"}catch(k){}f.async=!0}else g=a.createElement("script"),g.text="try{var a = document.getElementById('"+f.id+"'); if(a)a.onerror();}catch(x){};",f.async=g.async=!1;typeof f.async!="undefined"&&(f.async=!0),e=setTimeout(function(){h(c.closeFrame(1006,"JSONP script loaded abnormally (timeout)"))},35e3);var l=a.getElementsByTagName("head")[0];return l.insertBefore(f,l.firstChild),g&&l.insertBefore(g,l.firstChild),h},E=y["jsonp-polling"]=function(a,b){c.polluteGlobalNamespace();var d=this;d.ri=a,d.trans_url=b,d.send_constructor(B),d._schedule_recv()};E.prototype=new A,E.prototype._schedule_recv=function(){var a=this,b=function(b){a._recv_stop=null,b&&(a._is_closing||a.ri._didMessage(b)),a._is_closing||a._schedule_recv()};a._recv_stop=F(a.trans_url+"/jsonp",D,b)},E.enabled=function(){return!0},E.need_body=!0,E.prototype.doCleanup=function(){var a=this;a._is_closing=!0,a._recv_stop&&a._recv_stop(),a.ri=a._recv_stop=null,a.send_destructor()};var F=function(a,d,e){var f="a"+c.random_string(6),g=a+"?c="+escape(h+"."+f),i=0,j=function(a){switch(i){case 0:delete b[h][f],e(a);break;case 1:e(a),i=2;break;case 2:delete b[h][f]}},k=d(g,j);b[h][f]=k;
350var l=function(){b[h][f]&&(i=1,b[h][f](c.closeFrame(1e3,"JSONP user aborted read")))};return l},G=function(){};G.prototype=new A,G.prototype.run=function(a,b,c,d,e){var f=this;f.ri=a,f.trans_url=b,f.send_constructor(C(e)),f.poll=new $(a,d,b+c,e)},G.prototype.doCleanup=function(){var a=this;a.poll&&(a.poll.abort(),a.poll=null)};var H=y["xhr-streaming"]=function(a,b){this.run(a,b,"/xhr_streaming",bd,c.XHRCorsObject)};H.prototype=new G,H.enabled=function(){return b.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest&&!/opera/i.test(navigator.userAgent)},H.roundTrips=2,H.need_body=!0;var I=y["xdr-streaming"]=function(a,b){this.run(a,b,"/xhr_streaming",bd,c.XDRObject)};I.prototype=new G,I.enabled=function(){return!!b.XDomainRequest},I.roundTrips=2;var J=y["xhr-polling"]=function(a,b){this.run(a,b,"/xhr",bd,c.XHRCorsObject)};J.prototype=new G,J.enabled=H.enabled,J.roundTrips=2;var K=y["xdr-polling"]=function(a,b){this.run(a,b,"/xhr",bd,c.XDRObject)};K.prototype=new G,K.enabled=I.enabled,K.roundTrips=2;var L=function(){};L.prototype.i_constructor=function(a,b,d){var e=this;e.ri=a,e.origin=c.getOrigin(d),e.base_url=d,e.trans_url=b;var f=d+"/iframe.html";e.ri._options.devel&&(f+="?t="+ +(new Date)),e.window_id=c.random_string(8),f+="#"+e.window_id,e.iframeObj=c.createIframe(f,function(a){e.ri._didClose(1006,"Unable to load an iframe ("+a+")")}),e.onmessage_cb=c.bind(e.onmessage,e),c.attachMessage(e.onmessage_cb)},L.prototype.doCleanup=function(){var a=this;if(a.iframeObj){c.detachMessage(a.onmessage_cb);try{a.iframeObj.iframe.contentWindow&&a.postMessage("c")}catch(b){}a.iframeObj.cleanup(),a.iframeObj=null,a.onmessage_cb=a.iframeObj=null}},L.prototype.onmessage=function(a){var b=this;if(a.origin!==b.origin)return;var c=a.data.slice(0,8),d=a.data.slice(8,9),e=a.data.slice(9);if(c!==b.window_id)return;switch(d){case"s":b.iframeObj.loaded(),b.postMessage("s",JSON.stringify([y.version,b.protocol,b.trans_url,b.base_url]));break;case"t":b.ri._didMessage(e)}},L.prototype.postMessage=function(a,b){var c=this;c.iframeObj.post(c.window_id+a+(b||""),c.origin)},L.prototype.doSend=function(a){this.postMessage("m",a)},L.enabled=function(){var a=navigator&&navigator.userAgent&&navigator.userAgent.indexOf("Konqueror")!==-1;return(typeof b.postMessage=="function"||typeof b.postMessage=="object")&&!a};var M,N=function(a,d){parent!==b?parent.postMessage(M+a+(d||""),"*"):c.log("Can't postMessage, no parent window.",a,d)},O=function(){};
350O.prototype._didClose=function(a,b){N("t",c.closeFrame(a,b))},O.prototype._didMessage=function(a){N("t",a)},O.prototype._doSend=function(a){this._transport.doSend(a)},O.prototype._doCleanup=function(){this._transport.doCleanup()},c.parent_origin=undefined,y.bootstrap_iframe=function(){var d;M=a.location.hash.slice(1);var e=function(a){if(a.source!==parent)return;typeof c.parent_origin=="undefined"&&(c.parent_origin=a.origin);if(a.origin!==c.parent_origin)return;var e=a.data.slice(0,8),f=a.data.slice(8,9),g=a.data.slice(9);if(e!==M)return;switch(f){case"s":var h=JSON.parse(g),i=h[0],j=h[1],k=h[2],l=h[3];i!==y.version&&c.log('Incompatibile SockJS! Main site uses: "'+i+'", the iframe:'+' "'+y.version+'".');if(!c.flatUrl(k)||!c.flatUrl(l)){c.log("Only basic urls are supported in SockJS");return}if(!c.isSameOriginUrl(k)||!c.isSameOriginUrl(l)){c.log("Can't connect to different domain from within an iframe. ("+JSON.stringify([b.location.href,k,l])+")");return}d=new O,d._transport=new O[j](d,k,l);break;case"m":d._doSend(g);break;case"c":d&&d._doCleanup(),d=null}};c.attachMessage(e),N("s")};var P=function(a,b){var d=this;c.delay(function(){d.doXhr(a,b)})};P.prototype=new f(["finish"]),P.prototype.doXhr=function(a,b){var d=this,e=(new Date).getTime(),f=new b("GET",a+"/info"),g=c.delay(8e3,function(){f.ontimeout()});f.onfinish=function(a,b){clearTimeout(g),g=null;if(a===200){var c=(new Date).getTime()-e,f=JSON.parse(b);typeof f!="object"&&(f={}),d.emit("finish",f,c)}else d.emit("finish")},f.ontimeout=function(){f.close(),d.emit("finish")}};var Q=function(b){var d=this,e=function(){var a=new L;a.protocol="w-iframe-info-receiver";var c=function(b){if(typeof b=="string"&&b.substr(0,1)==="m"){var c=JSON.parse(b.substr(1)),e=c[0],f=c[1];d.emit("finish",e,f)}else d.emit("finish");a.doCleanup(),a=null},e={_options:{},_didClose:c,_didMessage:c};a.i_constructor(e,b,b)};a.body?e():c.attachEvent("load",e)};Q.prototype=new f(["finish"]);var R=function(){var a=this;c.delay(function(){a.emit("finish",{},2e3)})};R.prototype=new f(["finish"]);var S=function(a){if(c.isSameOriginUrl(a))return new P(a,c.XHRLocalObject);switch(c.isXHRCorsCapable()){case 1:return new P(a,c.XHRLocalObject);case 2:return new P(a,c.XDRObject);case 3:return new Q(a);default:return new R}},T=O["w-iframe-info-receiver"]=function(a,b,d){var e=new P(d,c.XHRLocalObject);e.onfinish=function(b,c){a._didMessage("m"+JSON.stringify([b,c])),a._didClose()}};T.prototype.doCleanup=function(){};var U=y["iframe-eventsource"]=function(){var a=this;a.protocol="w-iframe-eventsource",a.i_constructor.apply(a,arguments)};U.prototype=new L,U.enabled=function(){return"EventSource"in b&&L.enabled()},U.need_body=!0,U.roundTrips=3;var V=O["w-iframe-eventsource"]=function(a,b){this.run(a,b,"/eventsource",_,c.XHRLocalObject)};V.prototype=new G;var W=y["iframe-xhr-polling"]=function(){var a=this;a.protocol="w-iframe-xhr-polling",a.i_constructor.apply(a,arguments)};W.prototype=new L,W.enabled=function(){return b.XMLHttpRequest&&L.enabled()},W.need_body=!0,W.roundTrips=3;var X=O["w-iframe-xhr-polling"]=function(a,b){this.run(a,b,"/xhr",bd,c.XHRLocalObject)};X.prototype=new G;var Y=y["iframe-htmlfile"]=function(){var a=this;a.protocol="w-iframe-htmlfile",a.i_constructor.apply(a,arguments)};Y.prototype=new L,Y.enabled=function(){return L.enabled()},Y.need_body=!0,Y.roundTrips=3;var Z=O["w-iframe-htmlfile"]=function(a,b){this.run(a,b,"/htmlfile",bc,c.XHRLocalObject)};Z.prototype=new G;var $=function(a,b,c,d){var e=this;e.ri=a,e.Receiver=b,e.recv_url=c,e.AjaxObject=d,e._scheduleRecv()};$.prototype._scheduleRecv=function(){var a=this,b=a.poll=new a.Receiver(a.recv_url,a.AjaxObject),c=0;b.onmessage=function(b){c+=1,a.ri._didMessage(b.data)},b.onclose=function(c){a.poll=b=b.onmessage=b.onclose=null,a.poll_is_closing||(c.reason==="permanent"?a.ri._didClose(1006,"Polling error ("+c.reason+")"):a._scheduleRecv())}},$.prototype.abort=function(){var a=this;a.poll_is_closing=!0,a.poll&&a.poll.abort()};var _=function(a){var b=this,d=new EventSource(a);d.onmessage=function(a){b.dispatchEvent(new e("message",{data:unescape(a.data)}))},b.es_close=d.onerror=function(a,f){var g=f?"user":d.readyState!==2?"network":"permanent";b.es_close=d.onmessage=d.onerror=null,d.close(),d=null,c.delay(200,function(){b.dispatchEvent(new e("close",{reason:g}))})}};_.prototype=new d,_.prototype.abort=function(){var a=this;a.es_close&&a.es_close({},!0)};var ba,bb=function(){if(ba===undefined)if("ActiveXObject"in b)try{ba=!!(new ActiveXObject("htmlfile"))}catch(a){}else ba=!1;return ba},bc=function(a){var d=this;c.polluteGlobalNamespace(),d.id="a"+c.random_string(6,26),a+=(a.indexOf("?")===-1?"?":"&")+"c="+escape(h+"."+d.id);var f=bb()?c.createHtmlfile:c.createIframe,g;b[h][d.id]={start:function(){g.loaded()},message:function(a){d.dispatchEvent(new e("message",{data:a}))},stop:function(){d.iframe_close({},"network")}},d.iframe_close=function(a,c){g.cleanup(),d.iframe_close=g=null,delete b[h][d.id],d.dispatchEvent(new e("close",{reason:c}))},g=f(a,function(a){d.iframe_close({},"permanent")})};bc.prototype=new d,bc.prototype.abort=function(){var a=this;a.iframe_close&&a.iframe_close({},"user")};var bd=function(a,b){var c=this,d=0;
350c.xo=new b("POST",a,null),c.xo.onchunk=function(a,b){if(a!==200)return;for(;;){var f=b.slice(d),g=f.indexOf("\n");if(g===-1)break;d+=g+1;var h=f.slice(0,g);c.dispatchEvent(new e("message",{data:h}))}},c.xo.onfinish=function(a,b){c.xo.onchunk(a,b),c.xo=null;var d=a===200?"network":"permanent";c.dispatchEvent(new e("close",{reason:d}))}};return bd.prototype=new d,bd.prototype.abort=function(){var a=this;a.xo&&(a.xo.close(),a.dispatchEvent(new e("close",{reason:"user"})),a.xo=null)},y.getUtils=function(){return c},y.getIframeTransport=function(){return L},y}(),"_sockjs_onload"in window&&setTimeout(_sockjs_onload,1),typeof define=="function"&&define.amd&&define("sockjs",[],function(){return SockJS}) 351; 352/*** Script File: /public/js/front/standard/jquery.arcticmodal-0.3.min.js, Original size: 6,118, Compressed size: 6,118 ***/ 353/* 354 355 arcticModal â jQuery plugin 356 Version: 0.3 357 Author: Sergey Predvoditelev ([email protected]) 358 Company: Arctic Laboratory (http://arcticlab.ru/) 359 360 Docs & Examples: http://arcticlab.ru/arcticmodal/ 361 362 */ 363(function(d){var g={type:"html",content:"",url:"",ajax:{},ajax_request:null,closeOnEsc:!0,closeOnOverlayClick:!0,clone:!1,overlay:{block:void 0,tpl:'<div class="arcticmodal-overlay"></div>',css:{backgroundColor:"#000",opacity:0.6}},container:{block:void 0,tpl:'<div class="arcticmodal-container"><table class="arcticmodal-container_i"><tr><td class="arcticmodal-container_i2"></td></tr></table></div>'},wrap:void 0,body:void 0,errors:{tpl:'<div class="arcticmodal-error arcticmodal-close"></div>',autoclose_delay:2E3, 364ajax_unsuccessful_load:"Error"},openEffect:{type:"fade",speed:400},closeEffect:{type:"fade",speed:400},beforeOpen:d.noop,afterOpen:d.noop,beforeClose:d.noop,afterClose:d.noop,afterLoading:d.noop,afterLoadingOnShow:d.noop,errorLoading:d.noop},j=0,e=d([]),m={isEventOut:function(a,b){var c=!0;d(a).each(function(){d(b.target).get(0)==d(this).get(0)&&(c=!1);0==d(b.target).closest("HTML",d(this).get(0)).length&&(c=!1)});return c}},f={getParentEl:function(a){var b=d(a);return b.data("arcticmodal")?b:(b= 365d(a).closest(".arcticmodal-container").data("arcticmodalParentEl"))?b:!1},transition:function(a,b,c,e){e=void 0==e?d.noop:e;switch(c.type){case "fade":"show"==b?a.fadeIn(c.speed,e):a.fadeOut(c.speed,e);break;case "none":"show"==b?a.show():a.hide(),e()}},prepare_body:function(a,b){d(".arcticmodal-close",a.body).unbind("click.arcticmodal").bind("click.arcticmodal",function(){b.arcticmodal("close");return!1})},init_el:function(a,b){var c=a.data("arcticmodal");if(!c){c=b;j++;c.modalID=j;c.overlay.block= 366d(c.overlay.tpl);c.overlay.block.css(c.overlay.css);c.container.block=d(c.container.tpl);c.body=d(".arcticmodal-container_i2",c.container.block);b.clone?c.body.html(a.clone(!0)):(a.before('<div id="arcticmodalReserve'+c.modalID+'" style="display: none" />'),c.body.html(a));f.prepare_body(c,a);c.closeOnOverlayClick&&c.overlay.block.add(c.container.block).click(function(b){m.isEventOut(d(">*",c.body),b)&&a.arcticmodal("close")});c.container.block.data("arcticmodalParentEl",a);a.data("arcticmodal",c); 367e=d.merge(e,a);d.proxy(h.show,a)();if("html"==c.type)return a;
367if(void 0!=c.ajax.beforeSend){var k=c.ajax.beforeSend;delete c.ajax.beforeSend}if(void 0!=c.ajax.success){var g=c.ajax.success;delete c.ajax.success}if(void 0!=c.ajax.error){var l=c.ajax.error;delete c.ajax.error}var n=d.extend(!0,{url:c.url,beforeSend:function(){void 0==k?c.body.html('<div class="arcticmodal-loading" />'):k(c,a)},success:function(b){a.trigger("afterLoading");c.afterLoading(c,a,b);void 0==g?c.body.html(b):g(c,a,b);f.prepare_body(c, 368a);a.trigger("afterLoadingOnShow");c.afterLoadingOnShow(c,a,b)},error:function(){a.trigger("errorLoading");c.errorLoading(c,a);void 0==l?(c.body.html(c.errors.tpl),d(".arcticmodal-error",c.body).html(c.errors.ajax_unsuccessful_load),d(".arcticmodal-close",c.body).click(function(){a.arcticmodal("close");return!1}),c.errors.autoclose_delay&&setTimeout(function(){a.arcticmodal("close")},c.errors.autoclose_delay)):l(c,a)}},c.ajax);c.ajax_request=d.ajax(n);a.data("arcticmodal",c)}},init:function(a){a= 369d.extend(!0,{},g,a);if(d.isFunction(this))if(void 0==a)d.error("jquery.arcticmodal: Uncorrect parameters");else if(""==a.type)d.error('jquery.arcticmodal: Don\'t set parameter "type"');else switch(a.type){case "html":if(""==a.content){d.error('jquery.arcticmodal: Don\'t set parameter "content"');break}var b=a.content;a.content="";return f.init_el(d(b),a);case "ajax":if(""==a.url){d.error('jquery.arcticmodal: Don\'t set parameter "url"');break}return f.init_el(d("<div />"),a)}else return this.each(function(){f.init_el(d(this), 370d.extend(!0,{},a))})}},h={show:function(){var a=f.getParentEl(this);if(!1===a)d.error("jquery.arcticmodal: Uncorrect call");else{var b=a.data("arcticmodal");b.overlay.block.hide();b.container.block.hide();d("BODY").append(b.overlay.block);d("BODY").append(b.container.block);b.beforeOpen(b,a);a.trigger("beforeOpen");if("hidden"!=b.wrap.css("overflow")){b.wrap.data("arcticmodalOverflow",b.wrap.css("overflow"));var c=b.wrap.outerWidth(!0);b.wrap.css("overflow","hidden");var g=b.wrap.outerWidth(!0);g!= 371c&&b.wrap.css("marginRight",g-c+"px")}e.not(a).each(function(){d(this).data("arcticmodal").overlay.block.hide()});f.transition(b.overlay.block,"show",1<e.length?{type:"none"}:b.openEffect);f.transition(b.container.block,"show",1<e.length?{type:"none"}:b.openEffect,function(){b.afterOpen(b,a);a.trigger("afterOpen")});return a}},close:function(){if(d.isFunction(this))e.each(function(){d(this).arcticmodal("close")});else return this.each(function(){var a=f.getParentEl(this);if(!1===a)d.error("jquery.arcticmodal: Uncorrect call"); 372else{var b=a.data("arcticmodal");!1!==b.beforeClose(b,a)&&(a.trigger("beforeClose"),e.not(a).last().each(function(){d(this).data("arcticmodal").overlay.block.show()}),f.transition(b.overlay.block,"hide",1<e.length?{type:"none"}:b.closeEffect),f.transition(b.container.block,"hide",1<e.length?{type:"none"}:b.closeEffect,function(){b.afterClose(b,a);a.trigger("afterClose");b.clone||d("#arcticmodalReserve"+b.modalID).replaceWith(b.body.find(">*"));b.overlay.block.remove();b.container.block.remove();a.data("arcticmodal", 373null);d(".arcticmodal-container").length||(b.wrap.data("arcticmodalOverflow")&&b.wrap.css("overflow",b.wrap.data("arcticmodalOverflow")),b.wrap.css("marginRight",0))}),"ajax"==b.type&&b.ajax_request.abort(),e=e.not(a))}})},setDefault:function(a){d.extend(!0,g,a)}};d(function(){g.wrap=d(document.all&&!document.querySelector?"html":"body")});d(document).bind("keyup.arcticmodal",function(a){var b=e.last();b.length&&b.data("arcticmodal").closeOnEsc&&27===a.keyCode&&b.arcticmodal("close")});d.arcticmodal= 374d.fn.arcticmodal=function(a){if(h[a])return h[a].apply(this,Array.prototype.slice.call(arguments,1));if("object"===typeof a||!a)return f.init.apply(this,arguments);d.error("jquery.arcticmodal: Method "+a+" does not exist")}})(jQuery); 375; 376/*** Script File: /public/js/front/standard/bdate.js, Original size: 6,813, Compressed size: 3,896 ***/ 377(function($){var months={short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],long:["ЯнваÑÑ","ФевÑалÑ","ÐаÑÑ","ÐпÑелÑ","Ðай","ÐÑнÑ","ÐÑлÑ","ÐвгÑÑÑ","СенÑÑбÑÑ","ÐкÑÑбÑÑ","ÐоÑбÑÑ","ÐекабÑÑ"]},todayDate=new Date(),todayYear=todayDate.getFullYear(),todayMonth=todayDate.getMonth()+1,todayDay=todayDate.getDate();$.fn.bdate=function(options){var $day=$(this).find('select').eq(0),$month=$(this).find('select').eq(1),$year=$(this).find('select').eq(2),$hidden=$('#dateOfBirth'),settings={maxAge:120,minAge:0,futureDates:false,maxYear:todayYear,dateFormat:"middleEndian",monthFormat:"long",placeholder:true,legend:"",defaultDate:false,fieldName:"birthdate",fieldId:"birthdate",hiddenDate:true,onChange:null,tabindex:null},startYear=todayYear-settings.minAge,endYear=todayYear-settings.maxAge;$("<option></option>").attr("value",0).text('Ðод').appendTo($year);for(var i=startYear;i>=endYear;i--)if($year.data('selected')==i){$("<option selected></option>").attr("value",i).text(i).appendTo($year)}else $("<option></option>").attr("value",i).text(i).appendTo($year);$("<option></option>").attr("value",0).text('ÐеÑÑÑ').appendTo($month);for(var j=0;j<12;j++)if($month.data('selected')==j+1){$("<option selected></option>").attr("value",j+1).text(months[settings.monthFormat][j]).appendTo($month)}else $("<option></option>").attr("value",j+1).text(months[settings.monthFormat][j]).appendTo($month);$("<option></option>").attr("value",0).text('ÐенÑ').appendTo($day);for(var k=1;k<32;k++)if($day.data('selected')==k){$("<option selected></option>").attr("value",k).text(k).appendTo($day)}else $("<option></option>").attr("value",k).text(k).appendTo($day);var selectedYear=parseInt($year.val(),10)?parseInt($year.val(),10):0,selectedMonth=parseInt($month.val(),10)?parseInt($month.val(),10):0,selectedDay=parseInt($day.val(),10)?parseInt($day.val(),10):0;if((selectedYear*selectedMonth*selectedDay)!=0){if(selectedMonth<10)selectedMonth="0"+selectedMonth;if(selectedDay<10)selectedDay="0"+selectedDay;var hiddenDate=selectedYear+"-"+selectedMonth+"-"+selectedDay;$hidden.val(hiddenDate)}else $hidden.val('');$('.select').trigger('refresh');
377$('.select',$(this)).change(function(){var todayDate=new Date(),todayYear=todayDate.getFullYear(),todayMonth=todayDate.getMonth()+1,todayDay=todayDate.getDate(),selectedYear=parseInt($year.val(),10)?parseInt($year.val(),10):0,selectedMonth=parseInt($month.val(),10)?parseInt($month.val(),10):0,selectedDay=parseInt($day.val(),10)?parseInt($day.val(),10):0,actMaxDay=(new Date(selectedYear,selectedMonth,0)).getDate(),curMaxMonth=parseInt($month.children(":last").val()),curMaxDay=parseInt($day.children(":last").val())?parseInt($day.children(":last").val()):1;if(curMaxDay>actMaxDay){while(curMaxDay>actMaxDay){$day.children(":last").remove();curMaxDay--}}else if(curMaxDay<actMaxDay)while(curMaxDay<actMaxDay){curMaxDay++;$day.append("<option value="+curMaxDay+">"+curMaxDay+"</option>")};if(!settings.futureDates&&selectedYear==startYear){if(curMaxMonth>todayMonth){while(curMaxMonth>todayMonth){$month.children(":last").remove();curMaxMonth--};$day.children(":first").attr("selected","selected")};if(selectedMonth===todayMonth)while(curMaxDay>todayDay){$day.children(":last").remove();curMaxDay-=1}};if(selectedYear!=startYear&&curMaxMonth!=12)while(curMaxMonth<12){$month.append("<option value="+(curMaxMonth+1)+">"+months[settings.monthFormat][curMaxMonth]+"</option>");curMaxMonth++};$month.val(selectedMonth);$day.val(selectedDay);console.log(selectedYear+'|'+selectedMonth+'|'+selectedDay);if((selectedYear*selectedMonth*selectedDay)!=0){if(selectedMonth<10)selectedMonth="0"+selectedMonth;if(selectedDay<10)selectedDay="0"+selectedDay;var hiddenDate=selectedYear+"-"+selectedMonth+"-"+selectedDay;$hidden.val(hiddenDate)}else $hidden.val('')})}})(jQuery) 378; 379/*** Script File: /public/js/front/standard/jquery.limit-1.2.source.js, Original size: 891, Compressed size: 588 ***/ 380(function($){$.fn.extend({limit:function(limit,element){var interval,f,self=$(this);$(this).focus(function(){interval=window.setInterval(substring,100)});$(this).blur(function(){clearInterval(interval);substring()});substringFunction="function substring(){ var val = $(self).val();var length = val.length;if(length > limit){$(self).val($(self).val().substring(0,limit));}";if(typeof element!='undefined')substringFunction+="if($(element).html() != limit-length){$(element).html((limit-length<=0)?'0':limit-length);}";substringFunction+="}";eval(substringFunction);substring()}})})(jQuery) 381; 382/*** Script File: /public/js/front/standard/jquery.flexslider.js, Original size: 40,620, Compressed size: 22,232 ***/ 383(function($){$.flexslider=function(el,options){var slider=$(el),vars=$.extend({},$.flexslider.defaults,options),namespace=vars.namespace,touch=("ontouchstart"in window)||window.DocumentTouch&&document instanceof DocumentTouch,eventType=touch?"touchend":"click",vertical=vars.direction==="vertical",reverse=vars.reverse,carousel=(vars.itemWidth>0),fade=vars.animation==="fade",asNav=vars.asNavFor!=="",methods={};$.data(el,"flexslider",slider);methods={init:function(){slider.animating=false;slider.currentSlide=vars.startAt;slider.animatingTo=slider.currentSlide;slider.atEnd=(slider.currentSlide===0||slider.currentSlide===slider.last);slider.containerSelector=vars.selector.substr(0,vars.selector.search(' '));slider.slides=$(vars.selector,slider);slider.container=$(slider.containerSelector,slider);slider.count=slider.slides.length;slider.syncExists=$(vars.sync).length>0;if(vars.animation==="slide")vars.animation="swing";slider.prop=vertical?"top":"marginLeft";slider.args={};slider.manualPause=false;slider.transitions=!vars.video&&!fade&&vars.useCSS&&(function(){var obj=document.createElement('div'),props=['perspectiveProperty','WebkitPerspective','MozPerspective','OPerspective','msPerspective'];for(var i in props)if(obj.style[props[i]]!==undefined){slider.pfx=props[i].replace('Perspective','').toLowerCase();slider.prop="-"+slider.pfx+"-transform";return true};return false}());if(vars.controlsContainer!=="")slider.controlsContainer=$(vars.controlsContainer).length>0&&$(vars.controlsContainer);if(vars.manualControls!=="")slider.manualControls=$(vars.manualControls).length>0&&$(vars.manualControls);if(vars.randomize){slider.slides.sort(function(){return(Math.round(Math.random())-0.5)});slider.container.empty().append(slider.slides)};slider.doMath();if(asNav)methods.asNav.setup();slider.setup("init");if(vars.controlNav)methods.controlNav.setup();if(vars.directionNav)methods.directionNav.setup();if(vars.keyboard&&($(slider.containerSelector).length===1||vars.multipleKeyboard))$(document).bind('keyup',function(event){var keycode=event.keyCode;
383if(!slider.animating&&(keycode===39||keycode===37)){var target=(keycode===39)?slider.getTarget('next'):(keycode===37)?slider.getTarget('prev'):false;slider.flexAnimate(target,vars.pauseOnAction)}});if(vars.mousewheel)slider.bind('mousewheel',function(event,delta,deltaX,deltaY){event.preventDefault();var target=(delta<0)?slider.getTarget('next'):slider.getTarget('prev');slider.flexAnimate(target,vars.pauseOnAction)});if(vars.pausePlay)methods.pausePlay.setup();if(vars.slideshow){if(vars.pauseOnHover)slider.hover(function(){slider.pause()},function(){if(!slider.manualPause)slider.play()});(vars.initDelay>0)?setTimeout(slider.play,vars.initDelay):slider.play()};if(touch&&vars.touch)methods.touch();if(!fade||(fade&&vars.smoothHeight))$(window).bind("resize focus",methods.resize);setTimeout(function(){vars.start(slider)},200)},asNav:{setup:function(){slider.asNav=true;slider.animatingTo=Math.floor(slider.currentSlide/slider.move);slider.currentItem=slider.currentSlide;slider.slides.removeClass(namespace+"active-slide").eq(slider.currentItem).addClass(namespace+"active-slide");slider.slides.click(function(e){e.preventDefault();var $slide=$(this),target=$slide.index();if(!$(vars.asNavFor).data('flexslider').animating&&!$slide.hasClass('active')){slider.direction=(slider.currentItem<target)?"next":"prev";slider.flexAnimate(target,vars.pauseOnAction,false,true,true)}})}},controlNav:{setup:function(){if(!slider.manualControls){methods.controlNav.setupPaging()}else methods.controlNav.setupManual()},setupPaging:function(){var type=(vars.controlNav==="thumbnails")?'control-thumbs':'control-paging',j=1,item;slider.controlNavScaffold=$('<ol class="'+namespace+'control-nav '+namespace+type+'"></ol>');if(slider.pagingCount>1)for(var i=0;i<slider.pagingCount;i++){item=(vars.controlNav==="thumbnails")?'<img src="'+slider.slides.eq(i).attr("data-thumb")+'"/>':'<a></a>';slider.controlNavScaffold.append('<li>'+item+'</li>');j++};(slider.controlsContainer)?$(slider.controlsContainer).append(slider.controlNavScaffold):slider.append(slider.controlNavScaffold);methods.controlNav.set();methods.controlNav.active();slider.controlNavScaffold.delegate('a, img',eventType,function(event){event.preventDefault();var $this=$(this),target=slider.controlNav.index($this);if(!$this.hasClass(namespace+'active')){slider.direction=(target>slider.currentSlide)?"next":"prev";slider.flexAnimate(target,vars.pauseOnAction)}});if(touch)slider.controlNavScaffold.delegate('a',"click touchstart",function(event){event.preventDefault()})},setupManual:function(){slider.controlNav=slider.manualControls;methods.controlNav.active();slider.controlNav.live(eventType,function(event){event.preventDefault();var $this=$(this),target=slider.controlNav.index($this);if(!$this.hasClass(namespace+'active')){(target>slider.currentSlide)?slider.direction="next":slider.direction="prev";slider.flexAnimate(target,vars.pauseOnAction)}});if(touch)slider.controlNav.live("click touchstart",function(event){event.preventDefault()})},set:function(){var selector=(vars.controlNav==="thumbnails")?'img':'a';slider.controlNav=$('.'+namespace+'control-nav li '+selector,(slider.controlsContainer)?slider.controlsContainer:slider)},active:function(){slider.controlNav.removeClass(namespace+"active").eq(slider.animatingTo).addClass(namespace+"active")},update:function(action,pos){if(slider.pagingCount>1&&action==="add"){slider.controlNavScaffold.append($('<li><a>'+slider.count+'</a></li>'))}else if(slider.pagingCount===1){slider.controlNavScaffold.find('li').remove()}else slider.controlNav.eq(pos).closest('li').remove();methods.controlNav.set();(slider.pagingCount>1&&slider.pagingCount!==slider.controlNav.length)?slider.update(pos,action):methods.controlNav.active()}},directionNav:{setup:function(){var directionNavScaffold=$('<ul class="'+namespace+'direction-nav"><li><a class="'+namespace+'prev" href="#">'+vars.prevText+'</a></li><li><a class="'+namespace+'next" href="#">'+vars.nextText+'</a></li></ul>');if(slider.controlsContainer){$(slider.controlsContainer).append(directionNavScaffold);slider.directionNav=$('.'+namespace+'direction-nav li a',slider.controlsContainer)}else{slider.append(directionNavScaffold);slider.directionNav=$('.'+namespace+'direction-nav li a',slider)};
383methods.directionNav.update();slider.directionNav.bind(eventType,function(event){event.preventDefault();var target=($(this).hasClass(namespace+'next'))?slider.getTarget('next'):slider.getTarget('prev');slider.flexAnimate(target,vars.pauseOnAction)});if(touch)slider.directionNav.bind("click touchstart",function(event){event.preventDefault()})},update:function(){var disabledClass=namespace+'disabled';if(!vars.animationLoop)if(slider.pagingCount===1){slider.directionNav.addClass(disabledClass)}else if(slider.animatingTo===0){slider.directionNav.removeClass(disabledClass).filter('.'+namespace+"prev").addClass(disabledClass)}else if(slider.animatingTo===slider.last){slider.directionNav.removeClass(disabledClass).filter('.'+namespace+"next").addClass(disabledClass)}else slider.directionNav.removeClass(disabledClass)}},pausePlay:{setup:function(){var pausePlayScaffold=$('<div class="'+namespace+'pauseplay"><a></a></div>');if(slider.controlsContainer){slider.controlsContainer.append(pausePlayScaffold);slider.pausePlay=$('.'+namespace+'pauseplay a',slider.controlsContainer)}else{slider.append(pausePlayScaffold);slider.pausePlay=$('.'+namespace+'pauseplay a',slider)};methods.pausePlay.update((vars.slideshow)?namespace+'pause':namespace+'play');slider.pausePlay.bind(eventType,function(event){event.preventDefault();if($(this).hasClass(namespace+'pause')){slider.pause();slider.manualPause=true}else{slider.play();slider.manualPause=false}});if(touch)slider.pausePlay.bind("click touchstart",function(event){event.preventDefault()})},update:function(state){(state==="play")?slider.pausePlay.removeClass(namespace+'pause').addClass(namespace+'play').text(vars.playText):slider.pausePlay.removeClass(namespace+'play').addClass(namespace+'pause').text(vars.pauseText)}},touch:function(){var startX,startY,offset,cwidth,dx,startT,scrolling=false;el.addEventListener('touchstart',onTouchStart,false) 384function onTouchStart(e){if(slider.animating){e.preventDefault()}else if(e.touches.length===1){slider.pause();cwidth=vertical?slider.h:slider.w;startT=Number(new Date());offset=(carousel&&reverse&&slider.animatingTo===slider.last)?0:(carousel&&reverse)?slider.limit-(((slider.itemW+vars.itemMargin)*slider.move)*slider.animatingTo):(carousel&&slider.currentSlide===slider.last)?slider.limit:carousel?((slider.itemW+vars.itemMargin)*slider.move)*slider.currentSlide:reverse?(slider.last-slider.currentSlide+slider.cloneOffset)*cwidth:(slider.currentSlide+slider.cloneOffset)*cwidth;startX=vertical?e.touches[0].pageY:e.touches[0].pageX;startY=vertical?e.touches[0].pageX:e.touches[0].pageY;el.addEventListener('touchmove',onTouchMove,false);el.addEventListener('touchend',onTouchEnd,false)}} 385function onTouchMove(e){dx=vertical?startX-e.touches[0].pageY:startX-e.touches[0].pageX;scrolling=vertical?(Math.abs(dx)<Math.abs(e.touches[0].pageX-startY)):(Math.abs(dx)<Math.abs(e.touches[0].pageY-startY));if(!scrolling||Number(new Date())-startT>500){e.preventDefault();if(!fade&&slider.transitions){if(!vars.animationLoop)dx=dx/((slider.currentSlide===0&&dx<0||slider.currentSlide===slider.last&&dx>0)?(Math.abs(dx)/cwidth+2):1);slider.setProps(offset+dx,"setTouch")}}} 386function onTouchEnd(e){if(slider.animatingTo===slider.currentSlide&&!scrolling&&!(dx===null)){var updateDx=reverse?-dx:dx,target=(updateDx>0)?slider.getTarget('next'):slider.getTarget('prev');if(slider.canAdvance(target)&&(Number(new Date())-startT<550&&Math.abs(updateDx)>20||Math.abs(updateDx)>cwidth/2)){slider.flexAnimate(target,vars.pauseOnAction)}else slider.flexAnimate(slider.currentSlide,vars.pauseOnAction,true)};el.removeEventListener('touchmove',onTouchMove,false);el.removeEventListener('touchend',onTouchEnd,false);startX=null;startY=null;dx=null;offset=null}},resize:function(){if(!slider.animating&&slider.is(':visible')){if(!carousel)slider.doMath();if(fade){methods.smoothHeight()}else if(carousel){slider.slides.width(slider.computedW);slider.update(slider.pagingCount);slider.setProps()}else if(vertical){slider.viewport.height(slider.h);slider.setProps(slider.h,"setTotal")}else{if(vars.smoothHeight)methods.smoothHeight();slider.newSlides.width(slider.computedW);slider.setProps(slider.computedW,"setTotal")}}},smoothHeight:function(dur){if(!vertical||fade){var $obj=fade?slider:slider.viewport;dur?$obj.animate({height:slider.slides.eq(slider.animatingTo).height()},dur):$obj.height(slider.slides.eq(slider.animatingTo).height())}},sync:function(action){var $obj=$(vars.sync).data("flexslider"),target=slider.animatingTo;switch(action){case"animate":$obj.flexAnimate(target,vars.pauseOnAction,false,true);break;case"play":if(!$obj.playing&&!$obj.asNav)$obj.play();break;case"pause":$obj.pause();break}}};slider.flexAnimate=function(target,pause,override,withSync,fromN
386av){if(!slider.animating&&(slider.canAdvance(target)||override)&&slider.is(":visible")){if(asNav&&withSync){var master=$(vars.asNavFor).data('flexslider');slider.atEnd=target===0||target===slider.count-1;master.flexAnimate(target,true,false,true,fromNav);slider.direction=(slider.currentItem<target)?"next":"prev";master.direction=slider.direction;if(Math.ceil((target+1)/slider.visible)-1!==slider.currentSlide&&target!==0){slider.currentItem=target;slider.slides.removeClass(namespace+"active-slide").eq(target).addClass(namespace+"active-slide");target=Math.floor(target/slider.visible)}else{slider.currentItem=target;slider.slides.removeClass(namespace+"active-slide").eq(target).addClass(namespace+"active-slide");return false}};slider.animating=true;slider.animatingTo=target;vars.before(slider);if(pause)slider.pause();if(slider.syncExists&&!fromNav)methods.sync("animate");if(vars.controlNav)methods.controlNav.active();if(!carousel)slider.slides.removeClass(namespace+'active-slide').eq(target).addClass(namespace+'active-slide');slider.atEnd=target===0||target===slider.last;if(vars.directionNav)methods.directionNav.update();if(target===slider.last){vars.end(slider);if(!vars.animationLoop)slider.pause()};if(!fade){var dimension=vertical?slider.slides.filter(':first').height():slider.computedW,margin,slideString,calcNext;if(carousel){margin=(vars.itemWidth>slider.w)?vars.itemMargin*2:vars.itemMargin;calcNext=((slider.itemW+margin)*slider.move)*slider.animatingTo;slideString=(calcNext>slider.limit&&slider.visible!==1)?slider.limit:calcNext}else if(slider.currentSlide===0&&target===slider.count-1&&vars.animationLoop&&slider.direction!=="next"){slideString=reverse?(slider.count+slider.cloneOffset)*dimension:0}else if(slider.currentSlide===slider.last&&target===0&&vars.animationLoop&&slider.direction!=="prev"){slideString=reverse?0:(slider.count+1)*dimension}else slideString=reverse?((slider.count-1)-target+slider.cloneOffset)*dimension:(target+slider.cloneOffset)*dimension;slider.setProps(slideString,"",vars.animationSpeed);if(slider.transitions){if(!vars.animationLoop||!slider.atEnd){slider.animating=false;slider.currentSlide=slider.animatingTo};slider.container.unbind("webkitTransitionEnd transitionend");slider.container.bind("webkitTransitionEnd transitionend",function(){slider.wrapup(dimension)})}else slider.container.animate(slider.args,vars.animationSpeed,vars.easing,function(){slider.wrapup(dimension)})}else{slider.slides.eq(slider.currentSlide).fadeOut(vars.animationSpeed,vars.easing);slider.slides.eq(target).fadeIn(vars.animationSpeed,vars.easing,slider.wrapup)};if(vars.smoothHeight)methods.smoothHeight(vars.animationSpeed)}};slider.wrapup=function(dimension){if(!fade&&!carousel)if(slider.currentSlide===0&&slider.animatingTo===slider.last&&vars.animationLoop){slider.setProps(dimension,"jumpEnd")}else if(slider.currentSlide===slider.last&&slider.animatingTo===0&&vars.animationLoop)slider.setProps(dimension,"jumpStart");slider.animating=false;slider.currentSlide=slider.animatingTo;vars.after(slider)};slider.animateSlides=function(){if(!slider.animating)slider.flexAnimate(slider.getTarget("next"))};slider.pause=function(){clearInterval(slider.animatedSlides);slider.playing=false;if(vars.pausePlay)methods.pausePlay.update("play");if(slider.syncExists)methods.sync("pause")};slider.play=function(){slider.animatedSlides=setInterval(slider.animateSlides,vars.slideshowSpeed);slider.playing=true;if(vars.pausePlay)methods.pausePlay.update("pause");if(slider.syncExists)methods.sync("play")};slider.canAdvance=function(target){var last=asNav?slider.pagingCount-1:slider.last;return(asNav&&slider.currentItem===0&&target===slider.pagingCount-1&&slider.direction!=="next")?false:(target===slider.currentSlide&&!asNav)?false:(vars.animationLoop)?true:(slider.atEnd&&slider.currentSlide===0&&target===last&&slider.direction!=="next")?false:(slider.atEnd&&slider.currentSlide===last&&target===0&&slider.direction==="next")?false:true};slider.getTarget=function(dir){slider.direction=dir;if(dir==="next"){return(slider.currentSlide===slider.last)?0:slider.currentSlide+1}else return(slider.currentSlide===0)?slider.last:slider.currentSlide-1};slider.setProps=function(pos,special,dur){var target=(function(){var posCheck=pos?pos:((slider.itemW+vars.itemMargin)*slider.move)*slider.animatingTo,posCalc=(function(){if(carousel){return(special==="setTouch")?pos:(reverse&&slider.animatingTo===slider.last)?0:reverse?slider.limit-(((slider.itemW+vars.itemMargin)*slider.move)*slider.animatingTo):(slider.animatingTo===slider.last)?slider.limit:posCheck}else switch(special){case"setTotal":return reverse?((slider.count-1)-slider.currentSlide+slider.cloneOffset)*pos:(slider.currentSlide+slider.cloneOffset)*pos;case"setTouch":return reverse?pos:pos;case"jumpEnd":return reverse?pos:slider.count*pos;case"jumpStart":return reverse?slider.count*pos:pos;default:return pos}}());return(posCalc*-1)+"px"}());if(slider.transitions){target=vertical?"translate3d(0,"+target+",0)":"translate3d("+target+",0,0)";dur=(dur!==undefined)?(dur/1e3)+"s":"0s";slider.container.css("-"+slider.pfx+"-transition-duration",dur)};slider.args[slider.prop]=target;if(slider.transitions||dur===undefined)slider.container.css(slider.args)};slider.setup=function(type){if(!fade){var sliderOffset,arr;if(type==="init"){slider.viewport=$('<div class="flex-viewport"></div>').css({overflow:"hidden",position:"relative"}).appendTo(slider).append(slider.container);slider.cloneCount=0;slider.cloneOffset=0;if(reverse){arr=$.makeArray(slider.slides).reverse();slider.slides=$(arr);slider.container.empty().append(slider.slides)}};if(vars.animationLoop&&!carousel){slider.cloneCount=2;slider.cloneOffset=1;if(type!=="init")slider.container.find('.clone').remove();slider.container.append(slider.slides.first().clone().addClass('clone')).prepend(sli
386der.slides.last().clone().addClass('clone'))};slider.newSlides=$(vars.selector,slider);sliderOffset=reverse?slider.count-1-slider.currentSlide+slider.cloneOffset:slider.currentSlide+slider.cloneOffset;if(vertical&&!carousel){slider.container.height((slider.count+slider.cloneCount)*200+"%").css("position","absolute").width("100%");setTimeout(function(){slider.newSlides.css({display:"block"});slider.doMath();slider.viewport.height(slider.h);slider.setProps(sliderOffset*slider.h,"init")},(type==="init")?100:0)}else{slider.container.width((slider.count+slider.cloneCount)*200+"%");slider.setProps(sliderOffset*slider.computedW,"init");setTimeout(function(){slider.doMath();slider.newSlides.css({width:slider.computedW,"float":"left",display:"block"});if(vars.smoothHeight)methods.smoothHeight()},(type==="init")?100:0)}}else{slider.slides.css({width:"100%","float":"left",marginRight:"-100%",position:"relative"});if(type==="init")slider.slides.eq(slider.currentSlide).fadeIn(vars.animationSpeed,vars.easing);if(vars.smoothHeight)methods.smoothHeight()};if(!carousel)slider.slides.removeClass(namespace+"active-slide").eq(slider.currentSlide).addClass(namespace+"active-slide")};slider.doMath=function(){var slide=slider.slides.first(),slideMargin=vars.itemMargin,minItems=vars.minItems,maxItems=vars.maxItems;slider.w=slider.width();slider.h=slide.height();slider.boxPadding=slide.outerWidth()-slide.width();if(carousel){slider.itemT=vars.itemWidth+slideMargin;slider.minW=minItems?minItems*slider.itemT:slider.w;slider.maxW=maxItems?maxItems*slider.itemT:slider.w;slider.itemW=(slider.minW>slider.w)?(slider.w-(slideMargin*minItems))/minItems:(slider.maxW<slider.w)?(slider.w-(slideMargin*maxItems))/maxItems:(vars.itemWidth>slider.w)?slider.w:vars.itemWidth;slider.visible=Math.floor(slider.w/(slider.itemW+slideMargin));slider.move=(vars.move>0&&vars.move<slider.visible)?vars.move:slider.visible;slider.pagingCount=Math.ceil(((slider.count-slider.visible)/slider.move)+1);slider.last=slider.pagingCount-1;slider.limit=(slider.pagingCount===1)?0:(vars.itemWidth>slider.w)?((slider.itemW+(slideMargin*2))*slider.count)-slider.w-slideMargin:((slider.itemW+slideMargin)*slider.count)-slider.w}else{slider.itemW=slider.w;slider.pagingCount=slider.count;slider.last=slider.count-1};slider.computedW=slider.itemW-slider.boxPadding};slider.update=function(pos,action){slider.doMath();if(!carousel){if(pos<slider.currentSlide){slider.currentSlide+=1}else if(pos<=slider.currentSlide&&pos!==0)slider.currentSlide-=1;slider.animatingTo=slider.currentSlide};if(vars.controlNav&&!slider.manualControls)if((action==="add"&&!carousel)||slider.pagingCount>slider.controlNav.length){methods.controlNav.update("add")}else if((action==="remove"&&!carousel)||slider.pagingCount<slider.controlNav.length){if(carousel&&slider.currentSlide>slider.last){slider.currentSlide-=1;slider.animatingTo-=1};methods.controlNav.update("remove",slider.last)};if(vars.directionNav)methods.directionNav.update()};slider.addSlide=function(obj,pos){var $obj=$(obj);slider.count+=1;slider.last=slider.count-1;if(vertical&&reverse){(pos!==undefined)?slider.slides.eq(slider.count-pos).after($obj):slider.container.prepend($obj)}else (pos!==undefined)?slider.slides.eq(pos).before($obj):slider.container.append($obj);slider.update(pos,"add");slider.slides=$(vars.selector+':not(.clone)',slider);slider.setup();vars.added(slider)};slider.removeSlide=function(obj){var pos=(isNaN(obj))?slider.slides.index($(obj)):obj;slider.count-=1;slider.last=slider.count-1;if(isNaN(obj)){$(obj,slider.slides).remove()}else (vertical&&reverse)?slider.slides.eq(slider.last).remove():slider.slides.eq(obj).remove();slider.doMath();slider.update(pos,"remove");slider.slides=$(vars.selector+':not(.clone)',slider);slider.setup();vars.removed(slider)};methods.init()};$.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"easeInExpo",direction:"horizontal",reverse:false,animationLoop:true,smoothHeight:false,startAt:0,slideshow:true,slideshowSpeed:7e3,animationSpeed:1e3,initDelay:0,randomize:false,pauseOnAction:true,pauseOnHover:true,useCSS:true,touch:true,video:false,controlNav:true,directionNav:true,prevText:"",nextText:"",keyboard:true,multipleKeyboard:false,mousewheel:false,pausePlay:false,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:0,maxItems:0,move:0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){}};$.fn.flexslider=function(options){options=options||{};if(typeof options==="object"){return this.each(function(){var $this=$(this),selector=(options.selector)?options.selector:".slides > li",$slides=$this.find(selector);if($slides.length===1){$slides.fadeIn(400);if(options.start)options.start($this)}else if($this.data('flexslider')===undefined)new $.flexslider(this,options)})}else{var $slider=$(this).data('flexslider');switch(options){case"play":$slider.play();break;case"pause":$slider.pause();break;case"next":$slider.flexAnimate($slider.getTarget("next"),true);break;case"prev":case"previous":$slider.flexAnimate($slider.getTarget("prev"),true);break;default:if(typeof options==="number")$slider.flexAnimate(options,true)}}}})(jQuery) 387; 388/*** Script File: /public/js/front/standard/gallery.js, Original size: 22,287, Compressed size: 11,765 ***/ 389window.constructors=window.constructors||{};(function($,window,undefined){'use strict';window.constructors.Slider=function(options){this.nodes={};this.nodes.container=options.element;this.nodes.list=this.nodes.container.find('.js-slide-list');this.nodes.items=this.nodes.list.find('.js-slide-item');this.nodes.buttons=this.nodes.container.find('.js-slide-control');this.nodes.buttons_max=this.nodes.container.find('.js-slider-control-max');this.nodes.pointers=this.nodes.container.find('.js-slider-pointers');this.nodes.pointer_items=this.nodes.pointers.find('.js-slider-pointer');this.settings={current:0,total:this.nodes.items.length,active:options.selected,first:options.container_first_item,last:options.container_last_item,item_width:parseInt(this.nodes.items.eq(1).css('width'))+parseInt(this.nodes.items.eq(1).css('margin-left')),point_width:parseInt(this.nodes.pointer_items.eq(1).css('width'))};this.update();this.setEvents()};window.constructors.Slider.prototype={setEvents:function(){var slider=this,timers={resize:0};$(window).on({resize:function(event){if(slider.nodes.container.hasClass('timeline')){clearTimeout(timers.resize);
389timers.resize=setTimeout(function(){slider.update()},1e3)}}});$(window).on({resize:function(event){if(slider.nodes.container.hasClass('issue_wide')){clearTimeout(timers.resize);timers.resize=setTimeout(function(){slider.updateGalleryObject();slider.update();slider.slideTo(0)},1e3)}}});slider.nodes.container.on({click:function(event){var target=$(event.target),control=target.closest('.js-slide-control'),control_max=target.closest('.js-slider-control-max'),item=target.closest('.js-slide-item'),pointers=target.closest('.js-slider-pointer');if(item.length>0&&target.filter('a').length===0){if(item.hasClass(slider.settings.active)){if(!slider.nodes.container.hasClass('js-in-admin')){event.preventDefault();slider.openItem(item)}}else{event.preventDefault();slider.slideTo(item.index())}}else if(control.length>0){event.preventDefault();if(control.data('direct')==='next'){if(target.parents('.issue_last_slide').length&&target.hasClass('issue_control_icon-next')){event.preventDefault();event.stopPropagation();return false};slider.slideTo(slider.settings.current+1)}else if(control.data('direct')==='prev'){if(target.parents('.issue_first_slide').length&&target.hasClass('issue_control_icon-prev')){event.preventDefault();event.stopPropagation();return false};slider.slideTo(slider.settings.current-1)}}else if(control_max.length>0){event.preventDefault();if(control_max.data('direct')==='first'){slider.slideTo(0)}else if(control_max.data('direct')==='last')slider.slideTo(slider.nodes.items.length-1)}else if(pointers.length>0){event.preventDefault();slider.slideTo(pointers.index())}},need_update:function(){slider.updateGalleryObject()}})},openItem:function(tmp){},slideTo:function(slide_index){var slider=this;slider.nodes.list.css({'margin-left':slide_index*(-1)*slider.settings.item_width});slider.nodes.pointers.css({'margin-left':slide_index*(-1)*slider.settings.point_width});slider.update(slide_index)},update:function(current){var slider=this,container=slider.nodes.container,items=slider.nodes.items,pointers=slider.nodes.pointer_items,a,b,c;if(current!==undefined){slider.settings.current=current;items.filter('.'+slider.settings.active).removeClass(slider.settings.active);items.eq(current).addClass(slider.settings.active);pointers.filter('.'+slider.settings.active).removeClass(slider.settings.active);pointers.eq(current).addClass(slider.settings.active)};if(slider.settings.current===0){container.addClass(slider.settings.first).removeClass(slider.settings.last)}else if(slider.settings.current===(slider.settings.total-1)){container.addClass(slider.settings.last).removeClass(slider.settings.first)}else container.removeClass([slider.settings.first,slider.settings.last].join(' '));if(items.filter('.'+slider.settings.active).length===0)items.eq(slider.settings.current).addClass(slider.settings.active);if(slider.settings.total===1)container.addClass([slider.settings.first,slider.settings.last].join(' '));if(slider.nodes.container.hasClass('timeline')){a=(slider.nodes.container.width()-slider.nodes.container.find('.timeline-inner').width())/2;b=Math.floor(a/85)*85;c=a-b;slider.nodes.buttons_max.filter('.timeline-control_start').css({left:-b}).find('.timeline-control_spacer').css({width:c,left:-c});slider.nodes.buttons_max.filter('.timeline-control_finish').css({right:-b}).find('.timeline-control_spacer').css({width:c,right:-c})}},updateGalleryObject:function(){this.nodes.items=this.nodes.list.find('.js-slide-item');this.nodes.pointer_items=this.nodes.pointers.find('.js-slider-pointer');this.settings.current=0;this.settings.total=this.nodes.items.length;this.settings.item_width=parseInt(this.nodes.items.eq(1).css('width'))+parseInt(this.nodes.items.eq(1).css('margin-left'));this.settings.point_width=parseInt(this.nodes.pointer_items.eq(1).css('width'))}}})(jQuery,window);window.constructors=window.constructors||{};(function($,window,document){var nodes={},templates={thumb:function(obj,index,margin){return['<li class="gallery-out_thumb',(index===0?' gallery-out_thumb_selected':''),'" data-desc="',obj.desc,'" data-author="',obj.author,'" data-margin="',margin,'"><img src="',obj.img,'" alt="',obj.desc,'" class="gallery-out_thumb_img" /></li>'].join('')},foto:function(obj,index){return['<li class="gallery-out_foto',(index===0?' gallery-out_foto_active':''),'" data-desc="',obj.desc,'" data-author="',obj.author,'"><img src="',obj.img,'" class="gallery-out_foto_img" alt="',obj.desc,'" /></li>'].join('')},desc:function(obj,index,length){var small=methods.helpers.cutText(obj.desc);return['<div class="gallery-out_info_small"><p>',obj.desc,'</p></div><span class="gallery-out_info_author">',obj.author,'</span><div class="gallery-out_info_counter">',index,'/',length,'</div>'].join('')}},current=0,length=0,thumbs_current=0,thumbs_length=0,gallery={fotos:[],thumbs:[],foto_map:[]},w_width,timers={resize:0},res,settings={big:{mg1:1083,mg2:666,mg3:1500,thumbs:1300,thumbsIndex:13},middle:{mg1:693,mg2:427,mg3:960,thumbs:800,thumbsIndex:8},small:{mg1:520,mg2:320,mg3:720,thumbs:600,thumbsIndex:6}},methods={helpers:{cutText:function(text){if(text.length>163){return text.substring(0,160)+'ââ¬Â¦'}else return text},checkWidth:function(){w_width=window.outerWidth;if(w_width>=1815)res="big";if(w_width<1814&&w_width>1279)res="middle";if(w_width<=1279)res="small";return res}},events:{setGlobal:function(){nodes.thumbs.on({click:function(event){var self=$(this);methods.show(self.index());event.preventDefault()}},'.gallery-out_thumb');nodes.fotos_control.on({click:function(event){if($(this).hasClass('gallery-out_control_prev')){if(current>0)methods.show(current-1)}else if(current<length)methods.show(current+1)}});$(window).on({keydown:function(event){if(event.keyCode=='37'){if(current>0)methods.show(current-1)}else if(event.keyCode=='39')if(current<length)methods.show(current+1)},resize:function(){clearTimeout(timers.resize);timers.resize=setTimeout(function(){methods.helpers.checkWidth();methods.updateGallery()},200)}});nodes.thumbs_control.on({click:function(event){if($(this).hasClass('gallery-out_thumbs_control_prev')){if(thumbs_current>0)methods.slideThumbs(thumbs_current-1)}else if(thumbs_current<thumbs_length)methods.slideThumbs(thumbs_current+1)}});nodes.desc.on({click:function(event){$(this).toggleClass('gallery-out_info_text_show_full')}})}},parseGallery:function(){gallery.foto_map=[];$.each(gallery_json,function(index,value){gallery.foto_map.push(index);gallery.fotos.push({img:value.url,desc:value.description,author:value.author,vertical:value.vertical});gallery.thumbs.push({img:value.preview,desc:value.description,author:value.author,vertical:value.vertical})})},updateGallery:function(){var html={thumbs:[],fotos:[]},margin=0;if($('.page_adv').length>0&&w_width>1279)res="middle";if(gallery.thumbs[0]['vertical'])$('.gallery-out_fotos_container').addClass('gallery-out_fotos_container-vertical');$.each(gallery.foto_map,function(index,value){if(index>0)if((gallery.thumbs[value]['vertical']&&!gallery.thumbs[gallery.foto_map[(index-1)]]['vertical'])||(!gallery.thumbs[value]['vertical']&&gallery.thumbs[gallery.foto_map[(index-1)]]['vertical'])){margin+=settings[res].mg1}else if(gallery.thumbs[value]['vertical']&&gallery.thumbs[gallery.foto_map[(index-1)]]['vertical']){margin+=settings[res].mg2}else margin+=settings[res].mg3;html.thumbs.push(templates.thumb(gallery.thumbs[value],index,margin));html.fotos.push(templates.foto(gallery.fotos[value],index));if(index===0)nodes.desc.empty().append(templates.desc(gallery.thumbs[value],index+1,gallery.fotos.length))});nodes.thumbs.empty().removeAttr('style').append(html.thumbs.join('')).closest('.gallery-out_thumbs').removeClass('gallery-out_thumbs_last').addClass('gallery-out_thumbs_first');if(html.thumbs.length<settings[res].thumbsIndex+1)nodes.thumbs.closest('.gallery-out_thumbs').addClass('gallery-out_thumbs_last');nodes.fotos.empty().removeAttr('style').append(html.fotos.join('')).closest('.gallery-out_fotos').removeClass('gallery-out_fotos_last').addClass('gallery-out_fotos_first');current=0;length=html.fotos.length;thumbs_current=0;thumbs_length=Math.ceil(html.fotos.length/settings[res].thumbsIndex)},show:function(index){var thumb=nodes.thumbs.find('.gallery-out_thumb').eq(index);current=index;nodes.thumbs.find('.gallery-out_thumb_selected').removeClass('gallery-out_thumb_selected');thumb.addClass('gallery-out_thumb_selected');nodes.fotos.css({'margin-left':-parseInt(thumb.data('margin'))}).find('.gallery-out_foto_active').removeClass('gallery-out_foto_active').end().find('.gallery-out_foto').eq(index).addClass('gallery-out_foto_active').end().closest('.gallery-out_fotos').attr('class',function(){var classes=['gallery-out_fotos'];if(current===0)classes.push('gallery-out_fotos_first');if((current+1)===length)classes.push('gallery-out_fotos_last');return classes.join(' ')});methods.updateDesc(thumb.data('desc'),index,thumb.data('author'));
389methods.slideThumbs(Math.ceil((current+1)/settings[res].thumbsIndex)-1)},slideThumbs:function(index){thumbs_current=index;nodes.thumbs.css({'margin-left':-index*settings[res].thumbs}).closest('.gallery-out_thumbs').attr('class',function(){var classes=['gallery-out_thumbs'];if(thumbs_current===0)classes.push('gallery-out_thumbs_first');if((thumbs_current+1)===thumbs_length)classes.push('gallery-out_thumbs_last');return classes.join(' ')})},updateDesc:function(string,index,author){nodes.desc.empty().append(templates.desc({desc:string,author:author},index+1,gallery.fotos.length)).removeClass('gallery-out_info_text_show_full')},init:function(element){nodes.container=element;nodes.thumbs=nodes.container.find('.gallery-out_thumbs_list');nodes.fotos=nodes.container.find('.gallery-out_fotos_list');nodes.desc=nodes.container.find('.gallery-out_info_text');nodes.thumbs_control=nodes.container.find('.gallery-out_thumbs_control');nodes.fotos_control=nodes.container.find('.gallery-out_control');res=this.helpers.checkWidth();methods.parseGallery();methods.updateGallery();methods.events.setGlobal()}};$('.gallery-out').each(function(){methods.init($(this))})})(jQuery,window,window.document);(function($,window,document){'use strict';var rubric_slug,author_id,tag;$('.gallery').each(function(){new window.constructors.Slider({element:$(this),selected:'gallery-item_active',container_first_item:'gallery_first_slide',container_last_item:'gallery_last_slide'})})})(jQuery,window,window.document);$(document).ready(function(){var sliderCounterBox=$("#slide_counter"),sliderList=$(".gallery-list>li"),controls=$(".gallery-control"),parentGalleryBox=$(".gallery");sliderCounterBox.find(".total_slides").text(sliderList.length)}) 390; 391/*** Script File: /public/js/front/standard/owl.carousel.js, Original size: 76,093, Compressed size: 47,424 ***/ 392(function($,window,document,undefined){var defaults={items:3,loop:false,center:false,lazyLoad:false,lightweightStructure:false,mouseDrag:true,touchDrag:true,margin:0,stagePadding:0,merge:false,mergeFit:true,autoWidth:false,autoHeight:false,startPosition:0,navigation:false,navText:['',''],slideBy:1,dots:false,dotsEach:false,dotData:false,URLhashListener:false,autoplay:false,autoplayTimeout:5e3,autoplayHoverPause:false,smartSpeed:250,fluidSpeed:false,autoplaySpeed:false,naviSpeed:false,dotsSpeed:false,dragEndSpeed:false,callbacks:false,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:window,video:false,videoHeight:false,videoWidth:false,fallbackEasing:'swing',clonedClasses:false,themeClass:'owl-theme',baseClass:'owl-carousel',itemClass:'owl-item',centerClass:'center',activeClass:'active',navContainerClass:'owl-nav',navClass:['owl-prev','owl-next'],controlsClass:'owl-control
392s',dotClass:'owl-dot',dotsClass:'owl-dots',autoHeightClass:'owl-height',nestedItemSelector:false,itemElement:'div',stageElement:'div'},dom={el:null,$el:null,stage:null,$stage:null,oStage:null,$oStage:null,$items:null,$oItems:null,$cItems:null,$cc:null,$navPrev:null,$navNext:null,$page:null,$nav:null,$content:null},width={el:0,stage:0,item:0,prevWindow:0,cloneLast:0},num={items:0,oItems:0,cItems:0,active:0,merged:[],nav:[],allPages:0},pos={start:0,max:0,maxValue:0,prev:0,current:0,currentAbs:0,currentPage:0,stage:0,items:[],lsCurrent:0},drag={start:0,startX:0,startY:0,current:0,currentX:0,currentY:0,offsetX:0,offsetY:0,distance:null,startTime:0,endTime:0,updatedX:0,targetEl:null},speed={onDragEnd:300,navi:300,css2speed:0},state={isTouch:false,isScrolling:false,isSwiping:false,direction:false,inMotion:false,autoplay:false},e={_onDragStart:null,_onDragMove:null,_onDragEnd:null,_transitionEnd:null,_resizer:null,_responsiveCall:null,_goToLoop:null,_checkVisibile:null,_autoplay:null,_pause:null,_play:null,_stop:null} 393function Owl(element,options){element.owlCarousel={name:'Owl Carousel',author:'Bartosz Wojciechowski',version:'2.0.0-beta.1.0',released:'21.04.2014'};this.options=$.extend({},defaults,options);this._options=$.extend({},defaults,options);this.dom=$.extend({},dom);this.width=$.extend({},width);this.num=$.extend({},num);this.pos=$.extend({},pos);this.drag=$.extend({},drag);this.speed=$.extend({},speed);this.state=$.extend({},state);this.e=$.extend({},e);this.dom.el=element;this.dom.$el=$(element);this.init()};Owl.prototype.preloadAutoWidthImages=function(allImgs){var loaded=0;for(var i=0;i<allImgs.length;i++){var img=new Image();img.onload=function(){loaded++;if(loaded>=allImgs.length){this.state.imagesLoaded=true;this.init()}}.bind(this);img.src=allImgs[i].src}};Owl.prototype.init=function(){this.fireCallback('onBeforeInit');this.dom.el.style.opacity='0';if(!this.dom.$el.hasClass(this.options.baseClass))this.dom.$el.addClass(this.options.baseClass);if(!this.dom.$el.hasClass(this.options.themeClass))this.dom.$el.addClass(this.options.themeClass);if(this.options.rtl)this.dom.$el.addClass('owl-rtl');this.browserSupport();this.sortOptions();this.setResponsiveOptions();if(this.options.autoWidth){var allImgs=this.dom.$el.find('img');if(allImgs.length)if(this.state.imagesLoaded!==true){this.preloadAutoWidthImages(allImgs);return false}};this.width.prevWindow=this.windowWidth();this.createStage();this.findLocalContent();if(this.options.lightweightStructure&&this.num.oItems>=this.options.items*3){this.options.lightweightStructure=true;this.state.lightweight=true;this.createLightweightStructure()}else{this.state.lightweight=false;this.options.lightweightStructure=false;this.createNormalStructure()};this.optionsLogic();this.updateLocalContent();this.checkVideoLinks();this.loopClone();this.dom.el.style.display='block';this.calculate();this.dom.el.style.opacity='1';this.eventsCall();this.addCustomEvents();this.internalEvents();this.initPosition();this.updateItemState();this.autoplay();this.watchVisibility();this.fireCallback('onAfterInit')};Owl.prototype.sortOptions=function(){var resOpt=this.options.responsive;this.responsiveSorted={};var keys=[],i,j,k;for(i in resOpt)keys.push(i);keys=keys.sort(function(a,b){return a-b});for(j=0;j<keys.length;j++){k=keys[j];this.responsiveSorted[k]=resOpt[k]}};Owl.prototype.setResponsiveOptions=function(){if(this.options.responsive===false)return false;var width=this.windowWidth(),resOpt=this.options.responsive,i,j,k,minWidth;for(k in this._options)if(k!=="responsive")this.options[k]=this._options[k];for(i in this.responsiveSorted)if(i<=width){minWidth=i;for(j in this.responsiveSorted[minWidth])this.options[j]=this.responsiveSorted[minWidth][j]}};Owl.prototype.optionsLogic=function(){this.dom.$el.toggleClass('owl-center',this.options.center);if(this.options.slideBy&&this.options.slideBy==='page'){this.options.slideBy=this.options.items}else if(this.options.slideBy>this.options.items)this.options.slideBy=this.options.items;if(this.num.oItems<this.options.items)this.options.loop=false;if(this.options.autoWidth){this.options.stagePadding=false;this.options.dotsEach=1;this.options.merge=false};if(this.state.lightweight){this.options.loop=false;this.options.merge=false;this.options.dots=false;this.options.lightweightStructure=true}else this.options.lightweightStructure=false};Owl.prototype.createStage=function(){var oStage=document.createElement('div'),stage=document.createElement(this.options.stageElement);oStage.className='owl-stage-outer';stage.className='owl-stage';oStage.appendChild(stage);this.dom.el.appendChild(oStage);this.dom.oStage=oStage;this.dom.$oStage=$(oStage);this.dom.stage=stage;this.dom.$stage=$(stage);oStage=null;stage=null};Owl.prototype.createItem=function(){var item=document.createElement(this.options.itemElement);item.className=this.options.itemClass;return item};Owl.prototype.findLocalContent=function(){var content;if(this.options.nestedItemSelector){this.dom.$content=this.dom.$el.find('.'+this.options.nestedItemSelector).not(".owl-stage-outer")}else this.dom.$content=this.dom.$el.children().not(".owl-stage-outer");this.num.oItems=this.dom.$content.length};Owl.prototype.createNormalStructure=function(){for(var i=0;i<this.num.oItems;i++){var item=this.fillItem(this.dom.$content,i);this.dom.$stage.append(item)};this.dom.$content=null};Owl.prototype.createLightweightStructure=function(){if(!this.state.lightweight)return false;this.dom.$content.remove();this.dom.$stage.empty();for(var i=0;i<this.options.items*3;i++){var emptyItem=this.createItem(),item=$(emptyItem);
393this.setData(item,false);item.data('owl-item').boostPage=i;this.dom.$stage.append(item)}};Owl.prototype.fillItem=function(content,i){var emptyItem=this.createItem(),c=content[i]||content,traversed=this.traversContent(c);this.setData(emptyItem,false,traversed);return $(emptyItem).append(c)};Owl.prototype.traversContent=function(c){var $c=$(c),dotValue,hashValue;if(this.options.dotData)dotValue=$c.find('[data-dot]').andSelf().data('dot');if(this.options.URLhashListener)hashValue=$c.find('[data-hash]').andSelf().data('hash');return{dot:dotValue||false,hash:hashValue||false}};Owl.prototype.setData=function(item,cloneObj,traversed){if(traversed){var dot=traversed.dot,hash=traversed.hash};var itemData={index:false,indexAbs:false,posLeft:false,clone:false,active:false,loaded:false,lazyLoad:false,current:false,width:false,center:false,page:false,hasVideo:false,playVideo:false,dot:dot,hash:hash,boostPage:false};if(cloneObj)itemData=$.extend({},itemData,cloneObj.data('owl-item'));$(item).data('owl-item',itemData)};Owl.prototype.updateLocalContent=function(){this.dom.$oItems=this.dom.$stage.find('.'+this.options.itemClass).filter(function(){return $(this).data('owl-item').clone===false});this.num.oItems=this.dom.$oItems.length;for(var k=0;k<this.num.oItems;k++){var item=this.dom.$oItems.eq(k);item.data('owl-item').index=k}};Owl.prototype.checkVideoLinks=function(){if(!this.options.video)return false;var videoEl,item;for(var i=0;i<this.num.oItems;i++){item=this.dom.$oItems.eq(i);if(item.data('owl-item').hasVideo)continue;videoEl=item.find('.owl-video');if(videoEl.length){this.state.hasVideos=true;this.dom.$oItems.eq(i).data('owl-item').hasVideo=true;videoEl.css('display','none');this.getVideoInfo(videoEl,item)}}};Owl.prototype.getVideoInfo=function(videoEl,item){var info,type,id;vimeoId=videoEl.data('vimeo-id'),youTubeId=videoEl.data('youtube-id'),width=videoEl.data('width')||this.options.videoWidth;height=videoEl.data('height')||this.options.videoHeight;url=videoEl.attr('href');if(vimeoId){type='vimeo';id=vimeoId}else if(youTubeId){type='youtube';id=youTubeId}else if(url){id=url.match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/);if(id[3].indexOf('youtu')>-1){type='youtube'}else if(id[3].indexOf('vimeo')>-1)type='vimeo';id=id[6]}else throw new Error('Missing video link.');item.data('owl-item').videoType=type;item.data('owl-item').videoId=id;item.data('owl-item').videoWidth=width;item.data('owl-item').videoHeight=height;info={type:type,id:id};var dimensions=width&&height?'style="width:'+width+'px;height:'+height+'px;"':'';videoEl.wrap('<div class="owl-video-wrapper"'+dimensions+'></div>');this.createVideoTn(videoEl,info)};Owl.prototype.createVideoTn=function(videoEl,info){var tnLink,icon,height,customTn=videoEl.find('img'),srcType='src',lazyClass='',that=this;if(this.options.lazyLoad){srcType='data-src';lazyClass='owl-lazy-background'};if(customTn.length){addThumbnail(customTn.attr('src'));customTn.remove();return false} 394function addThumbnail(tnPath){icon='<div class="owl-video-play-icon"></div>';if(that.options.lazyLoad){tnLink='<div class="owl-video-tn '+lazyClass+'" '+srcType+'="'+tnPath+'"></div>'}else tnLink='<div class="owl-video-tn" style="opacity:1;background-image:url('+tnPath+')"></div>';videoEl.after(tnLink);videoEl.after(icon)};var that=this;if(info.type==='youtube'){var path="http://img.youtube.com/vi/"+info.id+"/hqdefault.jpg";addThumbnail(path)}else if(info.type==='vimeo')$.ajax({type:'GET',url:'http://vimeo.com/api/v2/video/'+info.id+'.json',jsonp:'callback',dataType:'jsonp',success:function(data){var path=data[0].thumbnail_large;addThumbnail(path);if(that.options.loop)that.refresh()}})};Owl.prototype.stopVideo=function(){this.fireCallback('onStopVideo');var item=this.dom.$items.eq(this.state.videoPlayIndex);item.find('.owl-video-frame').remove();item.removeClass('owl-video-playing');this.state.videoPlay=false};Owl.prototype.playVideo=function(ev){this.fireCallback('onPlayVideo');if(this.state.videoPlay)this.stopVideo();var target=$(ev.target||ev.srcElement),item=target.closest('.'+this.options.itemClass),videoType=item.data('owl-item').videoType,id=item.data('owl-item').videoId,width=item.data('owl-item').videoWidth||Math.floor(item.data('owl-item').width-this.options.margin),height=item.data('owl-item').videoHeight||this.dom.$stage.height();if(videoType==='youtube'){var videoLink="<iframe width=\""+width+"\" height=\""+height+"\" src=\"http://www.youtube.com/embed/"+id+"?autoplay=1&v="+id+"\" frameborder=\"0\" allowfullscreen></iframe>"}else if(videoType==='vimeo')var videoLink='<iframe src="http://player.vimeo.com/video/'+id+'?autoplay=1" width="'+width+'" height="'+height+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';item.addClass('owl-video-playing');this.state.videoPlay=true;this.state.videoPlayIndex=item.data('owl-item').indexAbs;var videoWrap=$('<div style="height:'+height+'px; width:'+width+'px" class="owl-video-frame">'+videoLink+'</div>');target.after(videoWrap)};Owl.prototype.loopClone=function(){if(!this.options.loop||this.state.lightweight)return false;var firstClone,lastClone,i,num=this.options.items,lastNum=this.num.oItems-1;if(this.options.stagePadding&&this.options.items===1)num+=1;
394this.num.cItems=num*2;for(i=0;i<num;i++){var first=this.dom.$oItems.eq(i).clone(true,true),last=this.dom.$oItems.eq(lastNum-i).clone(true,true);firstClone=$(first[0]).addClass('cloned');lastClone=$(last[0]).addClass('cloned');this.setData(firstClone[0],first);this.setData(lastClone[0],last);firstClone.data('owl-item').clone=true;lastClone.data('owl-item').clone=true;this.dom.$stage.append(firstClone);this.dom.$stage.prepend(lastClone);firstClone=lastClone=null};this.dom.$cItems=this.dom.$stage.find('.'+this.options.itemClass).filter(function(){return $(this).data('owl-item').clone===true})};Owl.prototype.reClone=function(){if(this.dom.$cItems!==null){this.dom.$cItems.remove();this.dom.$cItems=null;this.num.cItems=0};if(!this.options.loop)return;this.loopClone()};Owl.prototype.calculate=function(){var i,j,k,dist,posLeft=0,fullWidth=0;this.width.el=this.dom.$el.width()-(this.options.stagePadding*2);this.width.view=this.dom.$el.width();var elMinusMargin=this.width.el-(this.options.margin*(this.options.items===1?0:this.options.items-1));this.width.el=this.width.el+this.options.margin;this.width.item=Math.floor(elMinusMargin/this.options.items)+this.options.margin;this.dom.$items=this.dom.$stage.find('.owl-item');this.num.items=this.dom.$items.length;if(this.options.autoWidth)this.dom.$items.css('width','');this.pos.items=[];this.num.merged=[];this.num.nav=[];if(this.options.rtl){dist=this.options.center?-((this.width.el)/2):0}else dist=this.options.center?(this.width.el)/2:0;this.width.mergeStage=0;for(i=0;i<this.num.items;i++){if(this.options.merge){var mergeNumber=this.dom.$items.eq(i).find('[data-merge]').attr('data-merge')||1;if(this.options.mergeFit&&mergeNumber>this.options.items)mergeNumber=this.options.items;this.num.merged.push(parseInt(mergeNumber));this.width.mergeStage+=this.width.item*this.num.merged[i]}else this.num.merged.push(1);if(this.options.loop){if(i>=this.num.cItems/2&&i<this.num.cItems/2+this.num.oItems)this.num.nav.push(this.num.merged[i])}else this.num.nav.push(this.num.merged[i]);var iWidth=this.width.item*this.num.merged[i];if(this.options.autoWidth){iWidth=this.dom.$items.eq(i).width()+this.options.margin;if(this.options.rtl){this.dom.$items[i].style.marginLeft=this.options.margin+'px'}else this.dom.$items[i].style.marginRight=this.options.margin+'px'};this.pos.items.push(dist);this.dom.$items.eq(i).data('owl-item').posLeft=posLeft;this.dom.$items.eq(i).data('owl-item').width=iWidth;if(this.options.rtl){dist+=iWidth;posLeft+=iWidth}else{dist-=iWidth;posLeft-=iWidth};fullWidth-=Math.abs(iWidth);if(this.options.center)this.pos.items[i]=!this.options.rtl?this.pos.items[i]-(iWidth/2):this.pos.items[i]+(iWidth/2)};if(this.options.autoWidth){this.width.stage=this.options.center?Math.abs(fullWidth):Math.abs(dist)}else this.width.stage=Math.abs(fullWidth);var allItems=this.num.oItems+this.num.cItems;for(j=0;j<allItems;j++)this.dom.$items.eq(j).data('owl-item').indexAbs=j;this.setMinMax();this.setSizes()};Owl.prototype.setMinMax=function(){var minimum=this.dom.$oItems.eq(0).data('owl-item').indexAbs;this.pos.min=0;this.pos.minValue=this.pos.items[minimum];if(!this.options.loop)this.pos.max=this.num.oItems-1;if(this.options.loop)this.pos.max=this.num.oItems+this.options.items;if(!this.options.loop&&!this.options.center)this.pos.max=this.num.oItems-this.options.items;if(this.options.loop&&this.options.center)this.pos.max=this.num.oItems+this.options.items;this.pos.maxValue=this.pos.items[this.pos.max];if((!this.options.loop&&!this.options.center&&this.options.autoWidth)||(this.options.merge&&!this.options.center)){var revert=this.options.rtl?1:-1;for(i=0;i<this.pos.items.length;i++)if((this.pos.items[i]*revert)<this.width.stage-this.width.el)this.pos.max=i+1;this.pos.maxValue=this.options.rtl?this.width.stage-this.width.el:-(this.width.stage-this.width.el);this.pos.items[this.pos.max]=this.pos.maxValue};if(this.options.center){this.pos.loop=this.pos.items[0]-this.pos.items[this.num.oItems]}else this.pos.loop=-this.pos.items[this.num.oItems];if(this.num.oItems<this.options.items)this.pos.max=0};Owl.prototype.setSizes=function(){if(this.options.stagePadding!==false){this.dom.oStage.style.paddingLeft=this.options.stagePadding+'px';this.dom.oStage.style.paddingRight=this.options.stagePadding+'px'};if(this.options.rtl){window.setTimeout(function(){this.dom.stage.style.width=this.width.stage+'px'}.bind(this),0)}else this.dom.stage.style.width=this.width.stage+'px';for(var i=0;i<this.num.items;i++){if(!this.options.autoWidth)this.dom.$items[i].style.width=this.width.item-(this.options.margin)+'px';if(this.options.rtl){this.dom.$items[i].style.marginLeft=this.options.margin+'px'}else this.dom.$items[i].style.marginRight=this.options.margin+'px';if(this.num.merged[i]!==1&&!this.options.autoWidth)this.dom.$items[i].style.width=(this.width.item*this.num.merged[i])-(this.options.margin)+'px'};this.width.stagePrev=this.width.stage};Owl.prototype.responsive=function(){var elChanged=this.isElWidthChanged();if(!elChanged)return false;var fullscreenElement=document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement;if(fullscreenElement)if($(fullscreenElement.parentNode).hasClass('owl-video-frame')){this.setSpeed(0);this.state.isFullScreen=true};if(fullscreenElement&&this.state.isFullScreen&&this.state.videoPlay)return false;if(this.state.isFullScreen){this.state.isFullScreen=false;return false};if(this.state.videoPlay)if(this.state.orientation!==window.orientation){this.state.orientation=window.orientation;return false};if(this.state.videoPlay)this.stopVideo();this.fireCallback('onBeforeResponsive');this.state.responsive=true;this.refresh();this.state.responsive=false;this.fireCallback('onAfterResponsive')};Owl.prototype.refresh=function(){this.watchVisibility();this.setResponsiveOptions();this.optionsLogic();this.createLightweightStructure();this.updateLocalContent();if(this.num.oItems===0){if(this.dom.$page!==null)this.dom.$page.hide();return false};this.checkVideoLinks();this.dom.$stage.addClass('owl-refresh');this.reClone();this.calculate();this.dom.$stage.removeClass('owl-refresh');this.updateItemState();if(!this.state.lightweight)this.jumpTo(this.pos.current,false);this.rebuildDots();this.updateControls();this.updateEvents();this.autoplay();this.autoHeight();this.state.orientation=window.orientation};Owl.prototype.updateItemState=function(){if(!this.state.lightweight){this.updateActiveItems()}else this.updateLightweightItems();if(this.options.center)this.dom.$items.eq(this.pos.currentAbs).addClass(this.options.centerClass).data('owl-item').center=true;if(this.options.lazyLoad)this.lazyLoad()};Owl.prototype.updateActiveItems=function(){var i,j,item,ipos,iwidth,wpos,stage,outsideView;for(i=0;i<this.num.items;i++){this.dom.$items.eq(i).data('owl-item').active=false;this.dom.$items.eq(i).data('owl-item').current=false;this.dom.$items.eq(i).removeClass(this.options.activeClass).removeClass(this.options.centerClass)};this.num.active=0;stageX=this.pos.stage;view=this.options.rtl?this.width.view:-this.width.view;for(j=0;j<this.num.items;j++){item=this.dom.$items.eq(j);ipos=item.data('owl-item').posLeft;iwidth=item.data('owl-item').width;outsideView=this.options.rtl?ipos+iwidth:ipos-iwidth;if((this.op(ipos,'<=',stageX)&&(this.op(ipos,'>',stageX+view)))||(this.op(outsideView,'<',stageX)&&this.op(outsideView,'>',stageX+view))){this.num.active++;item.data('owl-item').active=true;item.data('owl-item').current=true;item.addClass(this.options.activeClass);if(!this.options.lazyLoad)item.data('owl-item').loaded=true;if(this.options.loop&&(this.options.lazyLoad||this.options.center))this.updateClonedItemsState(item.data('owl-item').index)}}};Owl.prototype.updateClonedItemsState=function(activeIndex){if(this.options.center)var center=this.dom.$items.eq(this.pos.currentAbs).data('owl-item').index;for(var i=0;i<this.num.items;i++){var $el=this.dom.$items.eq(i);if($el.data('owl-item').index===activeIndex){$el.data('owl-item').current=true;if($el.data('owl-item').index===center)$el.addClass(this.options.centerClass)}}};Owl.prototype.updateLightweightItems=function(){var jumpTo=this.pos.goToLightweight||0,direction,pos=this.pos.currentAbs;this.pos.current=this.pos.currentAbs=this.options.items;if(this.options.items<pos){this.pos.lsCurrent+=pos-this.options.items;direction='right'}else if(this.options.items>pos){this.pos.lsCurrent-=this.options.items-pos;direction='left'};var movedBy=Math.abs(this.options.items-pos);if(direction!==false)for(var i=0;i<movedBy;i++){if(direction==="right"){var item=this.dom.$stage.find('.owl-item').eq(0);item.appendTo(this.dom.$stage)};if(direction==="left"){var item=this.dom.$stage.find('.owl-item').eq(-1);item.prependTo(this.dom.$stage)};item.data('owl-item').active=false};this.pos.lsCurrent=jumpTo!==0?jumpTo:this.pos.lsCurrent;this.dom.$items=this.dom.$stage.find('.owl-item');
394if(this.pos.lsCurrent>=this.dom.$content.length){this.pos.lsCurrent=this.pos.lsCurrent-this.dom.$content.length}else if(this.pos.lsCurrent<-this.dom.$content.length+1)this.pos.lsCurrent=this.pos.lsCurrent+this.dom.$content.length;for(var j=0;j<this.num.items;j++){this.dom.$items.eq(j).removeClass(this.options.centerClass);var contentPos=this.pos.lsCurrent+j-this.options.items+this.options.startPosition;if(contentPos>=this.dom.$content.length)contentPos=contentPos-this.dom.$content.length;if(contentPos<-this.dom.$content.length)contentPos=contentPos+this.dom.$content.length;var content=this.dom.$content.eq(contentPos),freshItem=this.dom.$items.eq(j),freshData=freshItem.data('owl-item');if(freshData.active===false||jumpTo!==0){freshItem.empty();freshItem.append(content);freshData.active=true;freshData.current=true;freshData.loaded=false}};var currentAbs=this.pos.lsCurrent+this.options.startPosition;this.pos.currentLight=currentAbs=currentAbs<0?currentAbs+this.dom.$content.length:currentAbs;this.pos.goToLightweight=0;this.setSpeed(0);this.animStage(this.pos.items[this.options.items])};Owl.prototype.eventsCall=function(){this.e._onDragStart=function(e){this.onDragStart(e)}.bind(this);this.e._onDragMove=function(e){this.onDragMove(e)}.bind(this);this.e._onDragEnd=function(e){this.onDragEnd(e)}.bind(this);this.e._transitionEnd=function(e){this.transitionEnd(e)}.bind(this);this.e._resizer=function(){this.responsiveTimer()}.bind(this);this.e._responsiveCall=function(){this.responsive()}.bind(this);this.e._preventClick=function(e){this.preventClick(e)}.bind(this);this.e._goToHash=function(){this.goToHash()}.bind(this);this.e._goToPage=function(e){this.goToPage(e)}.bind(this);this.e._ap=function(){this.autoplay()}.bind(this);this.e._play=function(){this.play()}.bind(this);this.e._pause=function(){this.pause()}.bind(this);this.e._playVideo=function(e){this.playVideo(e)}.bind(this);this.e._naviNext=function(e){e.preventDefault();this.next()}.bind(this);this.e._naviPrev=function(e){e.preventDefault();this.prev()}.bind(this)};Owl.prototype.responsiveTimer=function(){if(this.windowWidth()===this.width.prevWindow)return false;window.clearInterval(this.e._autoplay);window.clearTimeout(this.resizeTimer);this.resizeTimer=window.setTimeout(this.e._responsiveCall,this.options.responsiveRefreshRate);this.width.prevWindow=this.windowWidth()};Owl.prototype.internalEvents=function(){var isTouch=isTouchSupport(),isTouchIE=isTouchSupportIE();if(isTouch&&!isTouchIE){this.dragType=["touchstart","touchmove","touchend","touchcancel"]}else if(isTouchIE){this.dragType=["MSPointerDown","MSPointerMove","MSPointerUp","MSPointerCancel"]}else this.dragType=["mousedown","mousemove","mouseup"];if((isTouch||isTouchIE)&&this.options.touchDrag){this.on(document,this.dragType[3],this.e._onDragEnd)}else{this.dom.$stage.on("dragstart",function(){return false});this.dom.stage.onselectstart=function(){return false}};this.dom.$stage.on('click','.owl-video-play-icon',this.e._playVideo);if(this.options.URLhashListener)this.on(window,'hashchange',this.e._goToHash,false);if(this.options.autoplayHoverPause){var that=this;this.dom.$stage.on("mouseover",this.e._pause);this.dom.$stage.on("mouseleave",this.e._ap)};if(this.transitionEndVendor)this.on(this.dom.stage,this.transitionEndVendor,this.e._transitionEnd,false);if(this.options.responsive!==false)this.on(window,'resize',this.e._resizer,false);this.updateEvents()};Owl.prototype.updateEvents=function(){if(this.options.touchDrag&&(this.dragType[0]==="touchstart"||this.dragType[0]==="MSPointerDown")){this.on(this.dom.stage,this.dragType[0],this.e._onDragStart,false)}else if(this.options.mouseDrag&&this.dragType[0]==="mousedown"){this.on(this.dom.stage,this.dragType[0],this.e._onDragStart,false)}else this.off(this.dom.stage,this.dragType[0],this.e._onDragStart)};Owl.prototype.onDragStart=function(event){var ev=event.originalEvent||event||window.event;if(ev.which===3)return false;if(this.dragType[0]==='mousedown')this.dom.$stage.addClass('owl-grab');this.fireCallback("onStartTouch");this.drag.startTime=new Date().getTime();this.setSpeed(0);this.state.isTouch=true;this.state.isScrolling=false;this.state.isSwiping=false;this.drag.distance=0;var isTouchEvent=ev.type==='touchstart',pageX=isTouchEvent?event.targetTouches[0].pageX:(ev.pageX||ev.clientX),pageY=isTouchEvent?event.targetTouches[0].pageY:(ev.pageY||ev.clientY);this.drag.offsetX=this.dom.$stage.position().left-this.options.stagePadding;this.drag.offsetY=this.dom.$stage.position().top;if(this.options.rtl)this.drag.offsetX=this.dom.$stage.position().left+this.width.stage-this.width.el+this.options.margin;if(this.state.inMotion&&this.support3d){var animatedPos=this.getTransformProperty();this.drag.offsetX=animatedPos;this.animStage(animatedPos)}else if(this.state.inMotion&&!this.support3d){this.state.inMotion=false;return false};this.drag.startX=pageX-this.drag.offsetX;this.drag.startY=pageY-this.drag.offsetY;this.drag.start=pageX-this.drag.startX;this.drag.targetEl=ev.target||ev.srcElement;this.drag.updatedX=this.drag.start;this.drag.targetEl.draggable=false;this.on(document,this.dragType[1],this.e._onDragMove,false);this.on(document,this.dragType[2],this.e._onDragEnd,false)};Owl.prototype.onDragMove=function(event){if(!this.state.isTouch)return;if(this.state.isScrolling)return;var neighbourItemWidth=0,ev=event.originalEvent||event||window.event,isTouchEvent=ev.type=='touchmove',pageX=isTouchEvent?ev.targetTouches[0].pageX:(ev.pageX||ev.clientX),pageY=isTouchEvent?ev.targetTouches[0].pageY:(ev.pageY||ev.clientY);this.drag.currentX=pageX-this.drag.startX;this.drag.currentY=pageY-this.drag.startY;this.drag.distance=this.drag.currentX-this.drag.offsetX;if(this.drag.distance<0){this.state.direction=this.options.rtl?"right":"left"}else if(this.drag.distance>0)this.state.direction=this.options.rtl?"left":"right";if(this.options.loop){if(this.op(this.drag.currentX,'>',this.pos.minValue)&&this.state.direction==="right"){this.drag.currentX-=this.pos.loop}else if(this.op(this.drag.currentX,'<',this.pos.maxValue)&&this.state.direction==="left")this.drag.currentX+=this.pos.loop}else{var minValue=this.options.rtl?this.pos.maxValue:this.pos.minValue,maxValue=this.options.rtl?this.pos.minValue:this.pos.maxValue;this.drag.currentX=Math.max(Math.min(this.drag.currentX,minValue+this.drag.distance/5
394),maxValue+this.drag.distance/5)};if((this.drag.distance>8||this.drag.distance<-8)){if(ev.preventDefault!==undefined){ev.preventDefault()}else ev.returnValue=false;this.state.isSwiping=true};this.drag.updatedX=this.drag.currentX;if((this.drag.currentY>16||this.drag.currentY<-16)&&this.state.isSwiping===false){this.state.isScrolling=true;this.drag.updatedX=this.drag.start};this.animStage(this.drag.updatedX)};Owl.prototype.onDragEnd=function(event){if(!this.state.isTouch)return;if(this.dragType[0]==='mousedown')this.dom.$stage.removeClass('owl-grab');this.drag.targetEl.draggable=true;this.state.isTouch=false;this.state.isScrolling=false;this.state.isSwiping=false;if(this.drag.distance===0&&this.state.inMotion!==true){this.state.inMotion=false;return false};this.drag.endTime=new Date().getTime();var compareTimes=this.drag.endTime-this.drag.startTime,distanceAbs=Math.abs(this.drag.distance);if(distanceAbs>3||compareTimes>300)this.removeClick(this.drag.targetEl);var closest=this.closest(this.drag.updatedX);this.setSpeed(this.options.dragEndSpeed,false,true);this.animStage(this.pos.items[closest]);this.drag.distance=0;this.off(document,this.dragType[1],this.e._onDragMove);this.off(document,this.dragType[2],this.e._onDragEnd)};Owl.prototype.removeClick=function(target){this.drag.targetEl=target;this.on(target,'click',this.e._preventClick,false)};Owl.prototype.preventClick=function(ev){if(ev.preventDefault){ev.preventDefault()}else ev.returnValue=false;if(ev.stopPropagation)ev.stopPropagation();this.off(this.drag.targetEl,'click',this.e._preventClick,false)};Owl.prototype.getTransformProperty=function(){var transform=window.getComputedStyle(this.dom.stage,null).getPropertyValue(this.vendorName+'transform');transform=transform.replace(/matrix(3d)?\(|\)/g,'').split(',');var matrix3d=transform.length===16;return matrix3d!==true?transform[4]:transform[12]};Owl.prototype.closest=function(x){var newX=0,pull=30;for(var i=0;i<this.num.items;i++)if(x>this.pos.items[i]-pull&&x<this.pos.items[i]+pull){newX=i}else if(this.op(x,'<',this.pos.items[i])&&this.op(x,'>',this.pos.items[i+1||this.pos.items[i]-this.width.el]))newX=this.state.direction==="left"?i+1:i;if(!this.options.loop)if(this.op(x,'>',this.pos.minValue)){newX=this.pos.min}else if(this.op(x,'<',this.pos.maxValue))newX=this.pos.max;this.pos.currentAbs=newX;this.pos.current=this.dom.$items.eq(newX).data('owl-item').index;return newX};Owl.prototype.animStage=function(pos){if(this.speed.current!==0){this.fireCallback('onAnimationStart');this.state.inMotion=true};var posX=this.pos.stage=pos,style=this.dom.stage.style;if(this.support3d){translate='translate3d('+posX+'px,0px, 0px)';style[this.transformVendor]=translate}else if(this.state.isTouch){style.left=posX+'px'}else this.dom.$stage.animate({left:posX},this.speed.css2speed,this.options.fallbackEasing,function(){if(this.state.inMotion)this.transitionEnd()}.bind(this));this.onChange()};Owl.prototype.updatePosition=function(pos){if(this.num.oItems===0)return false;if(pos===undefined)return false;var nextPos=pos;this.pos.prev=this.pos.currentAbs;if(this.state.revert){this.pos.current=this.dom.$items.eq(nextPos).data('owl-item').index;this.pos.currentAbs=nextPos;return};if(!this.options.loop){nextPos=nextPos>this.pos.max?this.pos.max:(nextPos<=0?0:nextPos)}else nextPos=nextPos>this.num.oItems?this.num.oItems-1:nextPos;this.pos.current=this.dom.$oItems.eq(nextPos).data('owl-item').index;this.pos.currentAbs=this.dom.$oItems.eq(nextPos).data('owl-item').indexAbs};Owl.prototype.setSpeed=function(speed,pos,drag){var s=speed,nextPos=pos;if((s===false&&s!==0&&drag!==true)||s===undefined){var diff=Math.abs(nextPos-this.pos.prev);diff=diff===0?1:diff;if(diff>6)diff=6;s=diff*this.options.smartSpeed};if(s===false&&drag===true)s=this.options.smartSpeed;if(s===0)s=0;if(this.support3d){var style=this.dom.stage.style;style.webkitTransitionDuration=style.MsTransitionDuration=style.msTransitionDuration=style.MozTransitionDuration=style.OTransitionDuration=style.transitionDuration=(s/1e3)+'s'}else this.speed.css2speed=s;this.speed.current=s;return s};Owl.prototype.jumpTo=function(pos,update){if(this.state.lightweight)this.pos.goToLightweight=pos;this.updatePosition(pos);this.setSpeed(0);this.animStage(this.pos.items[this.pos.currentAbs]);if(update!==true)this.updateItemState()};Owl.prototype.goTo=function(pos,speed){this.updatePosition(pos);this.setSpeed(speed,this.pos.currentAbs);this.animStage(this.pos.items[this.pos.currentAbs])};Owl.prototype.next=function(optionalSpeed){var s=optionalSpeed||this.options.naviSpeed;if(this.options.loop){this.goToLoop(this.options.slideBy,s)}else this.goTo(this.pos.current+this.options.slideBy,s)};Owl.prototype.prev=function(optionalSpeed){var s=optionalSpeed||this.options.naviSpeed;if(this.options.loop){this.goToLoop(-this.options.slideBy,s)}else this.goTo(this.pos.current-this.options.slideBy,s)};Owl.prototype.goToLoop=function(distance,speed){var revert=this.pos.currentAbs,prevPositon=this.pos.currentAbs,newPosition=this.pos.currentAbs+distance,direction=prevPositon-newPosition<0?true:false;this.state.revert=true;if(newPosition<1&&direction===false){this.state.jumpToLoop=true;revert=this.num.items-(this.options.items-prevPositon)-this.options.items;this.jumpTo(revert,true)}else if(newPosition>=this.num.items-this.options.items&&direction===true){this.state.jumpToLoop=true;revert=prevPositon-this.num.oItems;this.jumpTo(revert,true)};window.clearTimeout(this.e._goToLoop);this.e._goToLoop=window.setTimeout(function(){this.state.jumpToLoop=false;this.goTo(revert+distance,speed);this.state.revert=false}.bind(this),30)};Owl.prototype.initPosition=function(){var pos=this.options.startPosition;if(this.options.startPosition==='URLHash'){pos=this.options.startPosition=this.hashPosition()}else if(typeof this.options.startPosition!==Number&&!this.options.center)this.options.startPosition=0;if(this.state.lightweight)pos=this.options.items;this.dom.oStage.scrollLeft=0;this.goTo(pos,0)};Owl.prototype.goToHash=function(){var pos=this.hashPosition();if(pos===false)pos=0;this.dom.oStage.scrollLeft=0;this.goTo(pos,this.options.naviSpeed)};Owl.prototype.hashPosition=function(){var hash=window.location.hash.substring(1);if(hash==="")return false;for(var i=0;i<this.num.oItems;i++)if(hash===this.dom.$oItems.eq(i).data('owl-item').hash)var hashPos=i;return hashPos};Owl.prototype.autoplay=function(){if(this.options.autoplay&&!this.state.videoPlay){window.clearInterval(this.e._autoplay);this.e._autoplay=window.setInterval(this.e._play,this.options.autoplayTimeout)}else{window.clearInterval(this.e._autoplay);this.state.autoplay=false}};Owl.prototype.play=function(timeout,speed){if(document.hidden===true)return false;if(!this.options.autoplay){this._options.autoplay=this.options.autoplay=true;this._options.autoplayTimeout=this.options.autoplayTimeout=timeout||this.options.autoplayTimeout||4e3;this._options.autoplaySpeed=speed||this.options.autoplaySpeed};if(this.options.autoplay===false||this.state.isTouch||this.state.isScrolling||this.state.isSwiping||this.state.inMotion){window.clearInterval(this.e._autoplay);return false};if(!this.options.loop&&this.pos.current>=this.pos.max){window.clearInterval(this.e._autoplay);this.goTo(0)}else this.next(this.options.autoplaySpeed);this.state.autoplay=true};Owl.prototype.stop=function(){this._options.autoplay=this.options.autoplay=false;this.state.autoplay=false;window.clearInterval(this.e._autoplay)};Owl.prototype.pause=function(){window.clearInterval(this.e._autoplay)};Owl.prototype.transitionEnd=function(event){if(event!==undefined){event.stopPropagation();var eventTarget=event.target||event.srcElement||event.originalTarget;if(eventTarget!==this.dom.stage)return false};this.state.inMotion=false;this.updateItemState();this.autoplay();this.fireCallback('onAnimationEnd')};Owl.prototype.isElWidthChanged=function(){var newElWidth=this.dom.$el.width()-this.options.stagePadding,prevElWidth=this.width.el+this.options.margin;return newElWidth!==prevElWidth};Owl.prototype.windowWidth=function(){if(this.options.responsiveBaseElement!==window){this.width.window=$(this.options.responsiveBaseElement).width()}else if(window.innerWidth){this.width.window=window.innerWidth}else if(document.documentElement&&document.documentElement.clientWidth)this.width.window=document.documentElement.clientWidth;return this.width.window};Owl.prototype.controls=function(){var cc=document.createElement('div');cc.className=this.options.controlsClass;this.dom.$el.append(cc);this.dom.$cc=$(cc)};Owl.prototype.updateControls=function(){if(this.dom.$cc===null&&(this.options.navigation||this.options.dots))this.controls();if(this.dom.$nav===null&&this.options.navigation)this.createNavigation(this.dom.$cc[0]);if(this.dom.$page===null&&this.options.dots)this.createDots(this.dom.$cc[0]);if(this.dom.$nav!==null)if(this.options.navigation){this.dom.$nav.show();this.updateNavigation()}else this.dom.$nav.hide();if(this.dom.$page!==null)if(this.options.dots){this.dom.$page.show();this.updateDots()}else this.dom.$page.hide()};Owl.prototype.createNavigation=function(cc){var nav=document.createElement('div');nav.className=this.options.navContainerClass;cc.appendChild(nav);var navPrev=document.createElement('div'),navNext=document.createElement('div');navPrev.className=this.options.navClass[0];navNext.className=this.options.navClass[1];nav.appendChild(navPrev);nav.appendChild(navNext);this.dom.$nav=$(nav);this.dom.$navPrev=$(navPrev).html(this.options.navText[0]);this.dom.$navNext=$(navNext).html(this.options.navText[1]);this.dom.$nav.on(this.dragType[2],'.'+this.options.navClass[0],this.e._naviPrev);this.dom.$nav.on(this.dragType[2],'.'+this.options.navClass[1],this.e._naviNext)};
394Owl.prototype.createDots=function(cc){var page=document.createElement('div');page.className=this.options.dotsClass;cc.appendChild(page);this.dom.$page=$(page);var that=this;this.dom.$page.on(this.dragType[2],'.'+this.options.dotClass,goToPage) 395function goToPage(e){e.preventDefault();var page=$(this).data('page');that.goTo(page,that.options.dotsSpeed)};this.rebuildDots()};Owl.prototype.rebuildDots=function(){if(this.dom.$page===null)return false;var each,dot,span,counter=0,last=0,i,page=0,roundPages=0,dotName;each=this.options.dotsEach||this.options.items;if(this.options.center||this.options.dotData)each=1;this.dom.$page.html('');for(i=0;i<this.num.nav.length;i++){if(counter>=each||counter===0){dot=document.createElement('div');dot.className=this.options.dotClass;span=document.createElement('span');dot.appendChild(span);var $dot=$(dot);if(this.options.dotData)$dot.html(this.dom.$oItems.eq(i).data('owl-item').dot);$dot.data('page',page);$dot.data('goToPage',roundPages);this.dom.$page.append(dot);counter=0;roundPages++};this.dom.$oItems.eq(i).data('owl-item').page=roundPages-1;counter+=this.num.nav[i];page++};if(!this.options.loop&&!this.options.center)for(var j=this.num.nav.length-1;j>=0;j--){last+=this.num.nav[j];this.dom.$oItems.eq(j).data('owl-item').page=roundPages-1;if(last>=each)break};this.num.allPages=roundPages-1};Owl.prototype.updateDots=function(){var dots=this.dom.$page.children(),itemIndex=this.dom.$oItems.eq(this.pos.current).data('owl-item').page;for(var i=0;i<dots.length;i++){var dotPage=dots.eq(i).data('goToPage');if(dotPage===itemIndex){this.pos.currentPage=i;dots.eq(i).addClass('active')}else dots.eq(i).removeClass('active')}};Owl.prototype.updateNavigation=function(){var isNav=this.options.navigation;this.dom.$navNext.toggleClass('disabled',!isNav);this.dom.$navPrev.toggleClass('disabled',!isNav);if(!this.options.loop&&isNav)if(this.pos.current<=0){this.dom.$navNext.removeClass('disabled');this.dom.$navPrev.addClass('disabled')}else if(this.pos.current>=this.pos.max){this.dom.$navNext.addClass('disabled');this.dom.$navPrev.removeClass('disabled')}};Owl.prototype.addItem=function(content,pos){if(this.state.lightweight){this.dom.$content=this.dom.$content.add($(content));this.refresh();return false};var item=this.fillItem(content);if(this.dom.$oItems.length===0){this.dom.$stage.append(item)}else{var it=this.dom.$oItems.eq(pos);if(pos!==-1){it.before(item)}else it.after(item)};this.refresh()};Owl.prototype.removeItem=function(pos){this.dom.$oItems.eq(pos).remove();this.refresh()};Owl.prototype.addCustomEvents=function(){this.e.next=function(e,s){this.next(s)}.bind(this);this.e.prev=function(e,s){this.prev(s)}.bind(this);this.e.goTo=function(e,p,s){this.goTo(p,s)}.bind(this);this.e.jumpTo=function(e,p){this.jumpTo(p)}.bind(this);this.e.addItem=function(e,c,p){this.addItem(c,p)}.bind(this);this.e.removeItem=function(e,p){this.removeItem(p)}.bind(this);this.e.refresh=function(e){this.refresh()}.bind(this);this.e.autoHeight=function(e){this.autoHeight(true)}.bind(this);this.e.stop=function(){this.stop()}.bind(this);this.e.play=function(e,t,s){this.play(t,s)}.bind(this);this.dom.$el.on('owl.next',this.e.next);this.dom.$el.on('owl.prev',this.e.prev);this.dom.$el.on('owl.goTo',this.e.goTo);this.dom.$el.on('owl.jumpTo',this.e.jumpTo);this.dom.$el.on('owl.addItem',this.e.addItem);this.dom.$el.on('owl.removeItem',this.e.removeItem);this.dom.$el.on('owl.refresh',this.e.refresh);this.dom.$el.on('owl.autoHeight',this.e.autoHeight);this.dom.$el.on('owl.play',this.e.play);this.dom.$el.on('owl.stop',this.e.stop);this.dom.$el.on('owl.stopVideo',this.e.stop)};Owl.prototype.on=function(element,event,listener,capture){if(element.addEventListener){element.addEventListener(event,listener,capture)}else if(element.attachEvent)element.attachEvent('on'+event,listener)};Owl.prototype.off=function(element,event,listener,capture){if(element.removeEventListener){element.removeEventListener(event,listener,capture)}else if(element.detachEvent)element.detachEvent('on'+event,listener)};Owl.prototype.fireCallback=function(event,data){if(!this.options.callbacks)return;if(this.dom.el.dispatchEvent){var evt=document.createEvent('CustomEvent');evt.initCustomEvent(event,true,true,data);return this.dom.el.dispatchEvent(evt)}else if(!this.dom.el.dispatchEvent)return this.dom.$el.trigger(event)};Owl.prototype.watchVisibility=function(){if(!this.dom.$el.is(":visible")){this.dom.$el.css({opacity:0}
395);window.clearInterval(this.e._checkVisibile);this.e._checkVisibile=window.setInterval(checkVisible.bind(this),500)} 396function checkVisible(){if(this.dom.$el.is(":visible")){this.dom.$el.css({opacity:1});this.refresh();window.clearInterval(this.e._checkVisibile)}}};Owl.prototype.onChange=function(){if(!this.state.isTouch&&!this.state.jumpToLoop&&!this.state.responsive){if(this.options.navigation||this.options.dots)this.updateControls();this.autoHeight();this.fireCallback('onChange')};if(!this.state.isTouch&&!this.state.jumpToLoop){this.storeInfo();if(this.state.videoPlay)this.stopVideo()}};Owl.prototype.storeInfo=function(){var currentPosition=this.options.lightweightStructure?this.pos.currentLight:this.pos.current,allItems=this.options.lightweightStructure?this.dom.$content.length-1:this.num.oItems;this.info={items:this.options.items,allItems:allItems,currentPosition:currentPosition,currentPage:this.pos.currentPage,allPages:this.num.allPages,autoplay:this.state.autoplay,windowWidth:this.width.window,elWidth:this.width.el};if(typeof this.options.info==="function")this.options.info.apply(this,[this.info])};Owl.prototype.autoHeight=function(callback){if(this.options.autoHeight!==true&&callback!==true)return false;if(!this.dom.$oStage.hasClass(this.options.autoHeightClass))this.dom.$oStage.addClass(this.options.autoHeightClass);var loaded=this.dom.$items.eq(this.pos.currentAbs),stage=this.dom.$oStage,iterations=0,isLoaded=window.setInterval(function(){iterations+=1;if(loaded.data('owl-item').loaded){stage.height(loaded.height()+'px');clearInterval(isLoaded)}else if(iterations===500)clearInterval(isLoaded)},100)};Owl.prototype.lazyLoad=function(){var attr=isRetina()?"data-src-retina":"data-src",src,img,type,i;for(i=0;i<this.num.items;i++){var $item=this.dom.$items.eq(i);if($item.data('owl-item').current===true&&$item.data('owl-item').loaded===false){img=$item.find('.owl-lazy, .owl-lazy-background');if(img.hasClass('owl-lazy-background'))type='bg';src=img.attr(attr);src=src||img.attr("data-src");if(src){img.css('opacity','0');this.preload(img,$item,type)}}}};Owl.prototype.preload=function(images,$item,type){var that=this;images.each(function(i,el){var $el=$(el),img=new Image();img.onload=function(){$item.data('owl-item').loaded=true;if(type!=='bg'){$el.attr('src',img.src)}else $el.css('background-image','url('+img.src+')');$el.css('opacity',1);that.fireCallback('onLazyLoaded')};img.src=$el.attr("data-src")||$el.attr("data-src-retina")})};Owl.prototype.destroy=function(){window.clearInterval(this.e._autoplay);if(this.dom.$el.hasClass(this.options.themeClass))this.dom.$el.removeClass(this.options.themeClass);if(this.options.responsive!==false)this.off(window,'resize',this.e._resizer);if(this.transitionEndVendor)this.off(this.dom.stage,this.transitionEndVendor,this.e._transitionEnd);if(this.options.mouseDrag||this.options.touchDrag){this.off(this.dom.stage,this.dragType[0],this.e._onDragStart);if(this.options.mouseDrag)this.off(document,this.dragType[3],this.e._onDragStart);if(this.options.mouseDrag){this.dom.$stage.off("dragstart",function(){return false});this.dom.stage.onselectstart=function(){}}};if(this.options.URLhashListener)this.off(window,'hashchange',this.e._goToHash);this.dom.$el.off('owl.next',this.e.next);this.dom.$el.off('owl.prev',this.e.prev);this.dom.$el.off('owl.goTo',this.e.goTo);this.dom.$el.off('owl.jumpTo',this.e.jumpTo);this.dom.$el.off('owl.addItem',this.e.addItem);this.dom.$el.off('owl.removeItem',this.e.removeItem);this.dom.$el.off('owl.refresh',this.e.refresh);this.dom.$el.off('owl.autoHeight',this.e.autoHeight);this.dom.$el.off('owl.play',this.e.play);this.dom.$el.off('owl.stop',this.e.stop);this.dom.$el.off('owl.stopVideo',this.e.stop);this.dom.$stage.off('click',this.e._playVideo);if(this.dom.$cc!==null)this.dom.$cc.remove();if(this.dom.$cItems!==null)this.dom.$cItems.remove();this.e=null;this.dom.$el.data('owlCarousel',null);delete this.dom.el.owlCarousel;this.dom.$stage.unwrap();this.dom.$items.unwrap();this.dom.$items.contents().unwrap();this.dom=null};Owl.prototype.op=function(a,o,b){var rtl=this.options.rtl;switch(o){case"<":return rtl?a>b:a<b;case">":return rtl?a<b:a>b;case">=":return rtl?a<=b:a>=b;case"<=":return rtl?a>=b:a<=b;default:break}};Owl.prototype.browserSupport=function(){this.support3d=isPerspective();if(this.support3d){this.transformVendor=isTransform();var endVendors=['transitionend','webkitTransitionEnd','transitionend','oTransitionEnd'];this.transitionEndVendor=endVendors[isTransition()];this.vendorName=this.transformVendor.replace(/Transform/i,'');this.vendorName=this.vendorName!==''?'-'+this.vendorName.toLowerCase()+'-':''};this.state.orientation=window.orientation}
397function isStyleSupported(array){var p,s,fake=document.createElement('div'),list=array;for(p in list){s=list[p];if(typeof fake.style[s]!=='undefined'){fake=null;return[s,p]}};return[false]} 398function isTransition(){return isStyleSupported(['transition','WebkitTransition','MozTransition','OTransition'])[1]} 399function isTransform(){return isStyleSupported(['transform','WebkitTransform','MozTransform','OTransform','msTransform'])[0]} 400function isPerspective(){return isStyleSupported(['perspective','webkitPerspective','MozPerspective','OPerspective','MsPerspective'])[0]} 401function isTouchSupport(){return'ontouchstart'in window||!!(navigator.msMaxTouchPoints)} 402function isTouchSupportIE(){return window.navigator.msPointerEnabled} 403function isRetina(){return window.devicePixelRatio>1};$.fn.owlCarousel=function(options){return this.each(function(){if(!$(this).data('owlCarousel'))$(this).data('owlCarousel',new Owl(this,options))})}})(window.Zepto||window.jQuery,window,document);if(!Function.prototype.bind)Function.prototype.bind=function(oThis){if(typeof this!=="function")throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var aArgs=Array.prototype.slice.call(arguments,1),fToBind=this,fNOP=function(){},fBound=function(){return fToBind.apply(this instanceof fNOP&&oThis?this:oThis,aArgs.concat(Array.prototype.slice.call(arguments)))};fNOP.prototype=this.prototype;fBound.prototype=new fNOP();return fBound} 404; 405/*** Script File: /public/js/front/standard/jquery.cycle.all.js, Original size: 53,561, Compressed size: 33,530 ***/ 406(function($,undefined){"use strict";var ver='3.0.3' 407function debug(s){if($.fn.cycle.debug)log(s)} 408function log(){if(window.console&&console.log)console.log('[cycle] '+Array.prototype.join.call(arguments,' '))};$.expr[':'].paused=function(el){return el.cyclePause};$.fn.cycle=function(options,arg2){var o={s:this.selector,c:this.context};if(this.length===0&&options!='stop'){if(!$.isReady&&o.s){log('DOM not ready, queuing slideshow');$(function(){$(o.s,o.c).cycle(options,arg2)});return this};log('terminating; zero elements found by selector'+($.isReady?'':' (DOM not ready)'));return this};return this.each(function(){var opts=handleArguments(this,options,arg2);if(opts===false)return;opts.updateActivePagerLink=opts.updateActivePagerLink||$.fn.cycle.updateActivePagerLink;if(this.cycleTimeout)clearTimeout(this.cycleTimeout);this.cycleTimeout=this.cyclePause=0;this.cycleStop=0;var $cont=$(this),$slides=opts.slideExpr?$(opts.slideExpr,this):$cont.children(),els=$slides.get();if(els.length<2){log('terminating; too few slides: '+els.length);return};var opts2=buildOptions($cont,$slides,els,opts,o);if(opts2===false)return;var startTime=opts2.continuous?10:getTimeout(els[opts2.currSlide],els[opts2.nextSlide],opts2,!opts2.backwards);if(startTime){startTime+=(opts2.delay||0);if(startTime<10)startTime=10;debug('first timeout: '+startTime);this.cycleTimeout=setTimeout(function(){go(els,opts2,0,!opts.backwards)},startTime)}})} 409function triggerPause(cont,byHover,onPager){var opts=$(cont).data('cycle.opts');if(!opts)return;var paused=!!cont.cyclePause;if(paused&&opts.paused){opts.paused(cont,opts,byHover,onPager)}else if(!paused&&opts.resumed)opts.resumed(cont,opts,byHover,onPager)} 410function handleArguments(cont,options,arg2){if(cont.cycleStop===undefined)cont.cycleStop=0;if(options===undefined||options===null)options={};if(options.constructor==String){switch(options){case'destroy':case'stop':var opts=$(cont).data('cycle.opts');if(!opts)return false;cont.cycleStop++;if(cont.cycleTimeout)clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;if(opts.elements)$(opts.elements).stop();$(cont).removeData('cycle.opts');if(options=='destroy')destroy(cont,opts);return false;case'toggle':cont.cyclePause=(cont.cyclePause===1)?0:1;checkInstantResume(cont.cyclePause,arg2,cont);triggerPause(cont);return false;case'pause':cont.cyclePause=1;triggerPause(cont);return false;case'resume':cont.cyclePause=0;checkInstantResume(false,arg2,cont);triggerPause(cont);return false;case'prev':case'next':opts=$(cont).data('cycle.opts');if(!opts){log('options not found, "prev/next" ignored');return false};
410if(typeof arg2=='string')opts.oneTimeFx=arg2;$.fn.cycle[options](opts);return false;default:options={fx:options}};return options}else if(options.constructor==Number){var num=options;options=$(cont).data('cycle.opts');if(!options){log('options not found, can not advance slide');return false};if(num<0||num>=options.elements.length){log('invalid slide index: '+num);return false};options.nextSlide=num;if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0};if(typeof arg2=='string')options.oneTimeFx=arg2;go(options.elements,options,1,num>=options.currSlide);return false};return options 411function checkInstantResume(isPaused,arg2,cont){if(!isPaused&&arg2===true){var options=$(cont).data('cycle.opts');if(!options){log('options not found, can not resume');return false};if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0};go(options.elements,options,1,!options.backwards)}}} 412function removeFilter(el,opts){if(!$.support.opacity&&opts.cleartype&&el.style.filter)try{el.style.removeAttribute('filter')}catch(smother){}} 413function destroy(cont,opts){if(opts.next)$(opts.next).unbind(opts.prevNextEvent);if(opts.prev)$(opts.prev).unbind(opts.prevNextEvent);if(opts.pager||opts.pagerAnchorBuilder)$.each(opts.pagerAnchors||[],function(){this.unbind().remove()});opts.pagerAnchors=null;$(cont).unbind('mouseenter.cycle mouseleave.cycle');if(opts.destroy)opts.destroy(opts)} 414function buildOptions($cont,$slides,els,options,o){var startingSlideSpecified,opts=$.extend({},$.fn.cycle.defaults,options||{},$.metadata?$cont.metadata():$.meta?$cont.data():{}),meta=$.isFunction($cont.data)?$cont.data(opts.metaAttr):null;if(meta)opts=$.extend(opts,meta);if(opts.autostop)opts.countdown=opts.autostopCount||els.length;var cont=$cont[0];$cont.data('cycle.opts',opts);opts.$cont=$cont;opts.stopCount=cont.cycleStop;opts.elements=els;opts.before=opts.before?[opts.before]:[];opts.after=opts.after?[opts.after]:[];if(!$.support.opacity&&opts.cleartype)opts.after.push(function(){removeFilter(this,opts)});if(opts.continuous)opts.after.push(function(){go(els,opts,0,!opts.backwards)});saveOriginalOpts(opts);if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg)clearTypeFix($slides);if($cont.css('position')=='static')$cont.css('position','relative');if(opts.width)$cont.width(opts.width);if(opts.height&&opts.height!='auto')$cont.height(opts.height);if(opts.startingSlide!==undefined){opts.startingSlide=parseInt(opts.startingSlide,10);if(opts.startingSlide>=els.length||opts.startSlide<0){opts.startingSlide=0}else startingSlideSpecified=true}else if(opts.backwards){opts.startingSlide=els.length-1}else opts.startingSlide=0;if(opts.random){opts.randomMap=[];for(var i=0;i<els.length;i++)opts.randomMap.push(i);opts.randomMap.sort(function(a,b){return Math.random()-0.5});if(startingSlideSpecified){for(var cnt=0;cnt<els.length;cnt++)if(opts.startingSlide==opts.randomMap[cnt])opts.randomIndex=cnt}else{opts.randomIndex=1;opts.startingSlide=opts.randomMap[1]}}else if(opts.startingSlide>=els.length)opts.startingSlide=0;opts.currSlide=opts.startingSlide||0;var first=opts.startingSlide;$slides.css({position:'absolute',top:0,left:0}).hide().each(function(i){var z;if(opts.backwards){z=first?i<=first?els.length+(i-first):first-i:els.length-i}else z=first?i>=first?els.length-(i-first):first-i:els.length-i;$(this).css('z-index',z)});$(els[first]).css('opacity',1).show();removeFilter(els[first],opts);if(opts.fit)if(!opts.aspect){if(opts.width)$slides.width(opts.width);if(opts.height&&opts.height!='auto')$slides.height(opts.height)}else $slides.each(function(){var $slide=$(this),ratio=(opts.aspect===true)?$slide.width()/$slide.height():opts.aspect;if(opts.width&&$slide.width()!=opts.width){$slide.width(opts.width);$slide.height(opts.width/ratio)};if(opts.height&&$slide.height()<opts.height){$slide.height(opts.height);$slide.width(opts.height*ratio)}});if(opts.center&&((!opts.fit)||opts.aspect))$slides.each(function(){var $slide=$(this);$slide.css({"margin-left":opts.width?((opts.width-$slide.width())/2)+"px":0,"margin-top":opts.height?((opts.height-$slide.height())/2)+"px":0})});if(opts.center&&!opts.fit&&!opts.slideResize)$slides.each(function(){var $slide=$(this);$slide.css({"margin-left":opts.width?((opts.width-$slide.width())/2)+"px":0,"margin-top":opts.height?((opts.height-$slide.height())/2)+"px":0})});var reshape=(opts.containerResize||opts.containerResizeHeight)&&$cont.innerHe
414ight()<1;if(reshape){var maxw=0,maxh=0;for(var j=0;j<els.length;j++){var $e=$(els[j]),e=$e[0],w=$e.outerWidth(),h=$e.outerHeight();if(!w)w=e.offsetWidth||e.width||$e.attr('width');if(!h)h=e.offsetHeight||e.height||$e.attr('height');maxw=w>maxw?w:maxw;maxh=h>maxh?h:maxh};if(opts.containerResize&&maxw>0&&maxh>0)$cont.css({width:maxw+'px',height:maxh+'px'});if(opts.containerResizeHeight&&maxh>0)$cont.css({height:maxh+'px'})};var pauseFlag=false;if(opts.pause)$cont.bind('mouseenter.cycle',function(){pauseFlag=true;this.cyclePause++;triggerPause(cont,true)}).bind('mouseleave.cycle',function(){if(pauseFlag)this.cyclePause--;triggerPause(cont,true)});if(supportMultiTransitions(opts)===false)return false;var requeue=false;options.requeueAttempts=options.requeueAttempts||0;$slides.each(function(){var $el=$(this);this.cycleH=(opts.fit&&opts.height)?opts.height:($el.height()||this.offsetHeight||this.height||$el.attr('height')||0);this.cycleW=(opts.fit&&opts.width)?opts.width:($el.width()||this.offsetWidth||this.width||$el.attr('width')||0);if($el.is('img')){var loading=(this.cycleH===0&&this.cycleW===0&&!this.complete);if(loading)if(o.s&&opts.requeueOnImageNotLoaded&&++options.requeueAttempts<100){log(options.requeueAttempts,' - img slide not loaded, requeuing slideshow: ',this.src,this.cycleW,this.cycleH);setTimeout(function(){$(o.s,o.c).cycle(options)},opts.requeueTimeout);requeue=true;return false}else log('could not determine size of image: '+this.src,this.cycleW,this.cycleH)};return true});if(requeue)return false;opts.cssBefore=opts.cssBefore||{};opts.cssAfter=opts.cssAfter||{};opts.cssFirst=opts.cssFirst||{};opts.animIn=opts.animIn||{};opts.animOut=opts.animOut||{};$slides.not(':eq('+first+')').css(opts.cssBefore);$($slides[first]).css(opts.cssFirst);if(opts.timeout){opts.timeout=parseInt(opts.timeout,10);if(opts.speed.constructor==String)opts.speed=$.fx.speeds[opts.speed]||parseInt(opts.speed,10);if(!opts.sync)opts.speed=opts.speed/2;var buffer=opts.fx=='none'?0:opts.fx=='shuffle'?500:250;while((opts.timeout-opts.speed)<buffer)opts.timeout+=opts.speed};if(opts.easing)opts.easeIn=opts.easeOut=opts.easing;if(!opts.speedIn)opts.speedIn=opts.speed;if(!opts.speedOut)opts.speedOut=opts.speed;opts.slideCount=els.length;opts.currSlide=opts.lastSlide=first;if(opts.random){if(++opts.randomIndex==els.length)opts.randomIndex=0;opts.nextSlide=opts.randomMap[opts.randomIndex]}else if(opts.backwards){opts.nextSlide=opts.startingSlide===0?(els.length-1):opts.startingSlide-1}else opts.nextSlide=opts.startingSlide>=(els.length-1)?0:opts.startingSlide+1;if(!opts.multiFx){var init=$.fn.cycle.transitions[opts.fx];if($.isFunction(init)){init($cont,$slides,opts)}else if(opts.fx!='custom'&&!opts.multiFx){log('unknown transition: '+opts.fx,'; slideshow terminating');return false}};var e0=$slides[first];if(!opts.skipInitializationCallbacks){if(opts.before.length)opts.before[0].apply(e0,[e0,e0,opts,true]);if(opts.after.length)opts.after[0].apply(e0,[e0,e0,opts,true])};if(opts.next)$(opts.next).bind(opts.prevNextEvent,function(){return advance(opts,1)});if(opts.prev)$(opts.prev).bind(opts.prevNextEvent,function(){return advance(opts,0)});if(opts.pager||opts.pagerAnchorBuilder)buildPager(els,opts);exposeAddSlide(opts,els);return opts} 415function saveOriginalOpts(opts){opts.original={before:[],after:[]};opts.original.cssBefore=$.extend({},opts.cssBefore);opts.original.cssAfter=$.extend({},opts.cssAfter);opts.original.animIn=$.extend({},opts.animIn);opts.original.animOut=$.extend({},opts.animOut);$.each(opts.before,function(){opts.original.before.push(this)});$.each(opts.after,function(){opts.original.after.push(this)})} 416function supportMultiTransitions(opts){var i,tx,txs=$.fn.cycle.transitions;if(opts.fx.indexOf(',')>0){opts.multiFx=true;opts.fxs=opts.fx.replace(/\s*/g,'').split(',');for(i=0;i<opts.fxs.length;i++){var fx=opts.fxs[i];tx=txs[fx];if(!tx||!txs.hasOwnProperty(fx)||!$.isFunction(tx)){log('discarding unknown transition: ',fx);opts.fxs.splice(i,1);i--}};if(!opts.fxs.length){log('No valid transitions named; slideshow terminating.');return false}}else if(opts.fx=='all'){opts.multiFx=true;opts.fxs=[];for(var p in txs)if(txs.hasOwnProperty(p)){tx=txs[p];if(txs.hasOwnProperty(p)&&$.isFunction(tx))opts.fxs.push(p)}};if(opts.multiFx&&opts.randomizeEffects){var r1=Math.floor(Math.random()*20)+30;for(i=0;i<r1;i++){var r2=Math.floor(Math.random()*opts.fxs.length);opts.fxs.push(opts.fxs.splice(r2,1)[0])};debug('randomized fx sequence: ',opts.fxs)};return true} 417function exposeAddSlide(opts,els){opts.addSlide=function(newSlide,prepend){var $s=$(newSlide),s=$s[0];if(!opts.autostopCount)opts.countdown++;els[prepend?'unshift':'push'](s);if(opts.els)opts.els[prepend?'unshift':'push'](s);opts.slideCount=els.length;if(opts.random){opts.randomMap.push(opts.slideCount-1);opts.randomMap.sort(function(a,b){return Math.random()-0.5})};$s.css('position','absolute');
417$s[prepend?'prependTo':'appendTo'](opts.$cont);if(prepend){opts.currSlide++;opts.nextSlide++};if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg)clearTypeFix($s);if(opts.fit&&opts.width)$s.width(opts.width);if(opts.fit&&opts.height&&opts.height!='auto')$s.height(opts.height);s.cycleH=(opts.fit&&opts.height)?opts.height:$s.height();s.cycleW=(opts.fit&&opts.width)?opts.width:$s.width();$s.css(opts.cssBefore);if(opts.pager||opts.pagerAnchorBuilder)$.fn.cycle.createPagerAnchor(els.length-1,s,$(opts.pager),els,opts);if($.isFunction(opts.onAddSlide)){opts.onAddSlide($s)}else $s.hide()}};$.fn.cycle.resetState=function(opts,fx){fx=fx||opts.fx;opts.before=[];opts.after=[];opts.cssBefore=$.extend({},opts.original.cssBefore);opts.cssAfter=$.extend({},opts.original.cssAfter);opts.animIn=$.extend({},opts.original.animIn);opts.animOut=$.extend({},opts.original.animOut);opts.fxFn=null;$.each(opts.original.before,function(){opts.before.push(this)});$.each(opts.original.after,function(){opts.after.push(this)});var init=$.fn.cycle.transitions[fx];if($.isFunction(init))init(opts.$cont,$(opts.elements),opts)} 418function go(els,opts,manual,fwd){var p=opts.$cont[0],curr=els[opts.currSlide],next=els[opts.nextSlide];if(manual&&opts.busy&&opts.manualTrump){debug('manualTrump in go(), stopping active transition');$(els).stop(true,true);opts.busy=0;clearTimeout(p.cycleTimeout)};if(opts.busy){debug('transition active, ignoring new tx request');return};if(p.cycleStop!=opts.stopCount||p.cycleTimeout===0&&!manual)return;if(!manual&&!p.cyclePause&&!opts.bounce&&((opts.autostop&&(--opts.countdown<=0))||(opts.nowrap&&!opts.random&&opts.nextSlide<opts.currSlide))){if(opts.end)opts.end(opts);return};var changed=false;if((manual||!p.cyclePause)&&(opts.nextSlide!=opts.currSlide)){changed=true;var fx=opts.fx;curr.cycleH=curr.cycleH||$(curr).height();curr.cycleW=curr.cycleW||$(curr).width();next.cycleH=next.cycleH||$(next).height();next.cycleW=next.cycleW||$(next).width();if(opts.multiFx){if(fwd&&(opts.lastFx===undefined||++opts.lastFx>=opts.fxs.length)){opts.lastFx=0}else if(!fwd&&(opts.lastFx===undefined||--opts.lastFx<0))opts.lastFx=opts.fxs.length-1;fx=opts.fxs[opts.lastFx]};if(opts.oneTimeFx){fx=opts.oneTimeFx;opts.oneTimeFx=null};$.fn.cycle.resetState(opts,fx);if(opts.before.length)$.each(opts.before,function(i,o){if(p.cycleStop!=opts.stopCount)return;o.apply(next,[curr,next,opts,fwd])});var after=function(){opts.busy=0;$.each(opts.after,function(i,o){if(p.cycleStop!=opts.stopCount)return;o.apply(next,[curr,next,opts,fwd])});if(!p.cycleStop)queueNext()};debug('tx firing('+fx+'); currSlide: '+opts.currSlide+'; nextSlide: '+opts.nextSlide);opts.busy=1;if(opts.fxFn){opts.fxFn(curr,next,opts,after,fwd,manual&&opts.fastOnEvent)}else if($.isFunction($.fn.cycle[opts.fx])){$.fn.cycle[opts.fx](curr,next,opts,after,fwd,manual&&opts.fastOnEvent)}else $.fn.cycle.custom(curr,next,opts,after,fwd,manual&&opts.fastOnEvent)}else queueNext();if(changed||opts.nextSlide==opts.currSlide){var roll;opts.lastSlide=opts.currSlide;if(opts.random){opts.currSlide=opts.nextSlide;if(++opts.randomIndex==els.length){opts.randomIndex=0;opts.randomMap.sort(function(a,b){return Math.random()-0.5})};opts.nextSlide=opts.randomMap[opts.randomIndex];if(opts.nextSlide==opts.currSlide)opts.nextSlide=(opts.currSlide==opts.slideCount-1)?0:opts.currSlide+1}else if(opts.backwards){roll=(opts.nextSlide-1)<0;if(roll&&opts.bounce){opts.backwards=!opts.backwards;opts.nextSlide=1;opts.currSlide=0}else{opts.nextSlide=roll?(els.length-1):opts.nextSlide-1;opts.currSlide=roll?0:opts.nextSlide+1}}else{roll=(opts.nextSlide+1)==els.length;if(roll&&opts.bounce){opts.backwards=!opts.backwards;opts.nextSlide=els.length-2;opts.currSlide=els.length-1}else{opts.nextSlide=roll?0:opts.nextSlide+1;opts.currSlide=roll?els.length-1:opts.nextSlide-1}}};if(changed&&opts.pager)opts.updateActivePagerLink(opts.pager,opts.currSlide,opts.activePagerClass) 419function queueNext(){var ms=0,timeout=opts.timeout;if(opts.timeout&&!opts.continuous){ms=getTimeout(els[opts.currSlide],els[opts.nextSlide],opts,fwd);if(opts.fx=='shuffle')ms-=opts.speedOut}
419else if(opts.continuous&&p.cyclePause)ms=10;if(ms>0)p.cycleTimeout=setTimeout(function(){go(els,opts,0,!opts.backwards)},ms)}};$.fn.cycle.updateActivePagerLink=function(pager,currSlide,clsName){$(pager).each(function(){$(this).children().removeClass(clsName).eq(currSlide).addClass(clsName)})} 420function getTimeout(curr,next,opts,fwd){if(opts.timeoutFn){var t=opts.timeoutFn.call(curr,curr,next,opts,fwd);while(opts.fx!='none'&&(t-opts.speed)<250)t+=opts.speed;debug('calculated timeout: '+t+'; speed: '+opts.speed);if(t!==false)return t};return opts.timeout};$.fn.cycle.next=function(opts){advance(opts,1)};$.fn.cycle.prev=function(opts){advance(opts,0)} 421function advance(opts,moveForward){var val=moveForward?1:-1,els=opts.elements,p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0};if(opts.random&&val<0){opts.randomIndex--;if(--opts.randomIndex==-2){opts.randomIndex=els.length-2}else if(opts.randomIndex==-1)opts.randomIndex=els.length-1;opts.nextSlide=opts.randomMap[opts.randomIndex]}else if(opts.random){opts.nextSlide=opts.randomMap[opts.randomIndex]}else{opts.nextSlide=opts.currSlide+val;if(opts.nextSlide<0){if(opts.nowrap)return false;opts.nextSlide=els.length-1}else if(opts.nextSlide>=els.length){if(opts.nowrap)return false;opts.nextSlide=0}};var cb=opts.onPrevNextEvent||opts.prevNextClick;if($.isFunction(cb))cb(val>0,opts.nextSlide,els[opts.nextSlide]);go(els,opts,1,moveForward);return false} 422function buildPager(els,opts){var $p=$(opts.pager);$.each(els,function(i,o){$.fn.cycle.createPagerAnchor(i,o,$p,els,opts)});opts.updateActivePagerLink(opts.pager,opts.startingSlide,opts.activePagerClass)};$.fn.cycle.createPagerAnchor=function(i,el,$p,els,opts){var a;if($.isFunction(opts.pagerAnchorBuilder)){a=opts.pagerAnchorBuilder(i,el);debug('pagerAnchorBuilder('+i+', el) returned: '+a)}else a='<a href="#"></a>';if(!a)return;var $a=$(a);if($a.parents('body').length===0){var arr=[];if($p.length>1){$p.each(function(){var $clone=$a.clone(true);$(this).append($clone);arr.push($clone[0])});$a=$(arr)}else $a.appendTo($p)};opts.pagerAnchors=opts.pagerAnchors||[];opts.pagerAnchors.push($a);var pagerFn=function(e){e.preventDefault();opts.nextSlide=i;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0};var cb=opts.onPagerEvent||opts.pagerClick;if($.isFunction(cb))cb(opts.nextSlide,els[opts.nextSlide]);go(els,opts,1,opts.currSlide<i)};if(/mouseenter|mouseover/i.test(opts.pagerEvent)){$a.hover(pagerFn,function(){})}else $a.bind(opts.pagerEvent,pagerFn);if(!/^click/.test(opts.pagerEvent)&&!opts.allowPagerClickBubble)$a.bind('click.cycle',function(){return false});var cont=opts.$cont[0],pauseFlag=false;if(opts.pauseOnPagerHover)$a.hover(function(){pauseFlag=true;cont.cyclePause++;triggerPause(cont,true,true)},function(){if(pauseFlag)cont.cyclePause--;triggerPause(cont,true,true)})};$.fn.cycle.hopsFromLast=function(opts,fwd){var hops,l=opts.lastSlide,c=opts.currSlide;if(fwd){hops=c>l?c-l:opts.slideCount-l}else hops=c<l?l-c:l+opts.slideCount-c;return hops} 423function clearTypeFix($slides){debug('applying clearType background-color hack') 424function hex(s){s=parseInt(s,10).toString(16);return s.length<2?'0'+s:s} 425function getBg(e){for(;e&&e.nodeName.toLowerCase()!='html';e=e.parentNode){var v=$.css(e,'background-color');if(v&&v.indexOf('rgb')>=0){var rgb=v.match(/\d+/g);return'#'+hex(rgb[0])+hex(rgb[1])+hex(rgb[2])};if(v&&v!='transparent')return v};return'#ffffff'};$slides.each(function(){$(this).css('background-color',getBg(this))})};$.fn.cycle.commonReset=function(curr,next,opts,w,h,rev){$(opts.elements).not(curr).hide();if(typeof opts.cssBefore.opacity=='undefined')opts.cssBefore.opacity=1;opts.cssBefore.display='block';if(opts.slideResize&&w!==false&&next.cycleW>0)opts.cssBefore.width=next.cycleW;if(opts.slideResize&&h!==false&&next.cycleH>0)opts.cssBefore.height=next.cycleH;opts.cssAfter=opts.cssAfter||{};opts.cssAfter.display='none';$(curr).css('zIndex',opts.slideCount+(rev===true?1:0));$(next).css('zIndex',opts.slideCount+(rev===true?0:1))};$.fn.cycle.custom=function(curr,next,opts,cb,fwd,speedOverride){var $l=$(curr),$n=$(next),speedIn=opts.speedIn,speedOut=opts.speedOut,easeIn=opts.easeIn,easeOut=opts.easeOut,animInDelay=opts.animInDelay,animOutDelay=opts.animOutDelay;$n.css(opts.cssBefore);if(speedOverride){if(typeof speedOverride=='number'){speedIn=speedOut=speedOverride}else speedIn=speedOut=1;easeIn=easeOut=null};var fn=function(){$n.delay(animInDelay).animate(opts.animIn,speedIn,easeIn,function(){cb()})};$l.delay(animOutDelay).animate(opts.animOut,speedOut,easeOut,function(){$l.css(opts.cssAfter);if(!opts.sync)fn()});if(opts.sync)fn()};$.fn.cycle.transitions={fade:function($cont,$slides,opts){$slides.not(':eq('+opts.currSlide+')').css('opacity',0);opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.opacity=0});opts.animIn={opacity:1};opts.animOut={opacity:0}
425;opts.cssBefore={top:0,left:0}}};$.fn.cycle.ver=function(){return ver};$.fn.cycle.defaults={activePagerClass:'activeSlide',after:null,allowPagerClickBubble:false,animIn:null,animInDelay:0,animOut:null,animOutDelay:0,aspect:false,autostop:0,autostopCount:0,backwards:false,before:null,center:null,cleartype:!$.support.opacity,cleartypeNoBg:false,containerResize:1,containerResizeHeight:0,continuous:0,cssAfter:null,cssBefore:null,delay:0,easeIn:null,easeOut:null,easing:null,end:null,fastOnEvent:0,fit:0,fx:'fade',fxFn:null,height:'auto',manualTrump:true,metaAttr:'cycle',next:null,nowrap:0,onPagerEvent:null,onPrevNextEvent:null,pager:null,pagerAnchorBuilder:null,pagerEvent:'click.cycle',pause:0,pauseOnPagerHover:0,prev:null,prevNextEvent:'click.cycle',random:0,randomizeEffects:1,requeueOnImageNotLoaded:true,requeueTimeout:250,rev:0,shuffle:null,skipInitializationCallbacks:false,slideExpr:null,slideResize:1,speed:1e3,speedIn:null,speedOut:null,startingSlide:undefined,sync:1,timeout:4e3,timeoutFn:null,updateActivePagerLink:null,width:null}})(jQuery);(function($){"use strict";$.fn.cycle.transitions.none=function($cont,$slides,opts){opts.fxFn=function(curr,next,opts,after){$(next).show();$(curr).hide();after()}};$.fn.cycle.transitions.fadeout=function($cont,$slides,opts){$slides.not(':eq('+opts.currSlide+')').css({display:'block',opacity:1});opts.before.push(function(curr,next,opts,w,h,rev){$(curr).css('zIndex',opts.slideCount+(rev!==true?1:0));$(next).css('zIndex',opts.slideCount+(rev!==true?0:1))});opts.animIn.opacity=1;opts.animOut.opacity=0;opts.cssBefore.opacity=1;opts.cssBefore.display='block';opts.cssAfter.zIndex=0};$.fn.cycle.transitions.scrollUp=function($cont,$slides,opts){$cont.css('overflow','hidden');opts.before.push($.fn.cycle.commonReset);var h=$cont.height();opts.cssBefore.top=h;opts.cssBefore.left=0;opts.cssFirst.top=0;opts.animIn.top=0;opts.animOut.top=-h};$.fn.cycle.transitions.scrollDown=function($cont,$slides,opts){$cont.css('overflow','hidden');opts.before.push($.fn.cycle.commonReset);var h=$cont.height();opts.cssFirst.top=0;opts.cssBefore.top=-h;opts.cssBefore.left=0;opts.animIn.top=0;opts.animOut.top=h};$.fn.cycle.transitions.scrollLeft=function($cont,$slides,opts){$cont.css('overflow','hidden');opts.before.push($.fn.cycle.commonReset);var w=$cont.width();opts.cssFirst.left=0;opts.cssBefore.left=w;opts.cssBefore.top=0;opts.animIn.left=0;opts.animOut.left=0-w};$.fn.cycle.transitions.scrollRight=function($cont,$slides,opts){$cont.css('overflow','hidden');opts.before.push($.fn.cycle.commonReset);var w=$cont.width();opts.cssFirst.left=0;opts.cssBefore.left=-w;opts.cssBefore.top=0;opts.animIn.left=0;opts.animOut.left=w};$.fn.cycle.transitions.scrollHorz=function($cont,$slides,opts){$cont.css('overflow','hidden').width();opts.before.push(function(curr,next,opts,fwd){if(opts.rev)fwd=!fwd;$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.left=fwd?(next.cycleW-1):(1-next.cycleW);opts.animOut.left=fwd?-curr.cycleW:curr.cycleW});opts.cssFirst.left=0;opts.cssBefore.top=0;opts.animIn.left=0;opts.animOut.top=0};$.fn.cycle.transitions.scrollVert=function($cont,$slides,opts){$cont.css('overflow','hidden');opts.before.push(function(curr,next,opts,fwd){if(opts.rev)fwd=!fwd;$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.top=fwd?(1-next.cycleH):(next.cycleH-1);opts.animOut.top=fwd?curr.cycleH:-curr.cycleH});opts.cssFirst.top=0;opts.cssBefore.left=0;opts.animIn.top=0;opts.animOut.left=0};$.fn.cycle.transitions.slideX=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$(opts.elements).not(curr).hide();$.fn.cycle.commonReset(curr,next,opts,false,true);opts.animIn.width=next.cycleW});opts.cssBefore.left=0;opts.cssBefore.top=0;opts.cssBefore.width=0;opts.animIn.width='show';opts.animOut.width=0};$.fn.cycle.transitions.slideY=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$(opts.elements).not(curr).hide();$.fn.cycle.commonReset(curr,next,opts,true,false);opts.animIn.height=next.cycleH});opts.cssBefore.left=0;opts.cssBefore.top=0;opts.cssBefore.height=0;opts.animIn.height='show';opts.animOut.height=0};$.fn.cycle.transitions.shuffle=function($cont,$slides,opts){var i,w=$cont.css('overflow','visible').width();$slides.css({left:0,top:0});opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true)});if(!opts.speedAdjusted){opts.speed=opts.speed/2;opts.speedAdjusted=true};opts.random=0;opts.shuffle=opts.shuffle||{left:-w,top:15};opts.els=[];for(i=0;i<$slides.length;i++)opts.els.push($slides[i]);for(i=0;i<opts.currSlide;i++)opts.els.push(opts.els.shift());opts.fxFn=function(curr,next,opts,cb,fwd){if(opts.rev)fwd=!fwd;var $el=fwd?$(curr):$(next);$(next).css(opts.cssBefore);var count=opts.slideCount;$el.animate(opts.shuffle,opts.speedIn,opts.easeIn,function(){var hops=$.fn.cycle.hopsFromLast(opts,fwd);for(var k=0;k<hops;k++)if(fwd){opts.els.push(opts.els.shift())}else opts.els.unshift(opts.els.pop());if(fwd){for(var i=0,len=opts.els.length;i<len;i++)$(opts.els[i]).css('z-index',len-i+count)}else{var z=$(curr).css('z-index');$el.css('z-index',parseInt(z,10)+1+count)};$el.animate({left:0,top:0},opts.speedOut,opts.easeOut,function(){$(fwd?this:curr).hide();if(cb)cb()})})};$.extend(opts.cssBefore,{display:'block',opacity:1,top:0,left:0})};$.fn.cycle.transitions.turnUp=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false);opts.cssBefore.top=next.cycleH;opts.animIn.height=next.cycleH;opts.animOut.width=next.cycleW});opts.cssFirst.top=0;opts.cssBefore.left=0;opts.cssBefore.height=0;opts.animIn.top=0;opts.animOut.height=0};$.fn.cycle.transitions.turnDown=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false);opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH});opts.cssFirst.top=0;opts.cssBefore.left=0;opts.cssBefore.top=0;opts.cssBefore.height=0;opts.animOut.height=0};$.fn.cycle.transitions.turnLeft=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true);opts.cssBefore.left=next.cycleW;opts.animIn.width=next.cycleW});opts.cssBefore.top=0;opts.cssBefore.width=0;opts.animIn.left=0;opts.animOut.width=0};$.fn.cycle.transitions.turnRight=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true);opts.animIn.width=next.cycleW;opts.animOut.left=curr.cycleW});$.extend(opts.cssBefore,{top:0,left:0,width:0});opts.animIn.left=0;opts.animOut.width=0};$.fn.cycle.transitions.zoom=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,false,true);opts.cssBefore.top=next.cycleH/2;opts.cssBefore.left=next.cycleW/2;$.extend(opts.animIn,{top:0,left:0,width:next.cycleW,height:next.cycleH});$.extend(opts.animOut,{width:0,height:0,top:curr.cycleH/2,left:curr.cycleW/2})});opts.cssFirst.top=0;opts.cssFirst.left=0;opts.cssBefore.width=0;opts.cssBefore.height=0};$.fn.cycle.transitions.fadeZoom=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,false);opts.cssBefore.left=next.cycleW/2;opts.cssBefore.top=next.cycleH/2;$.extend(opts.animIn,{top:0,left:0,width:next.cycleW,height:next.cycleH})});opts.cssBefore.width=0;opts.cssBefore.height=0;opts.animOut.opacity=0};$.fn.cycle.transitions.blindX=function($cont,$slides,opts){var w=$cont.css('overflow','hidden').width();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.animIn.width=next.cycleW;opts.animOut.left=curr.cycleW});opts.cssBefore.left=w;opts.cssBefore.top=0;opts.animIn.left=0;opts.animOut.left=w};$.fn.cycle.transitions.blindY=function($cont,$slides,opts){var h=$c
425ont.css('overflow','hidden').height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH});opts.cssBefore.top=h;opts.cssBefore.left=0;opts.animIn.top=0;opts.animOut.top=h};$.fn.cycle.transitions.blindZ=function($cont,$slides,opts){var h=$cont.css('overflow','hidden').height(),w=$cont.width();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH});opts.cssBefore.top=h;opts.cssBefore.left=w;opts.animIn.top=0;opts.animIn.left=0;opts.animOut.top=h;opts.animOut.left=w};$.fn.cycle.transitions.growX=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true);opts.cssBefore.left=this.cycleW/2;opts.animIn.left=0;opts.animIn.width=this.cycleW;opts.animOut.left=0});opts.cssBefore.top=0;opts.cssBefore.width=0};$.fn.cycle.transitions.growY=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false);opts.cssBefore.top=this.cycleH/2;opts.animIn.top=0;opts.animIn.height=this.cycleH;opts.animOut.top=0});opts.cssBefore.height=0;opts.cssBefore.left=0};$.fn.cycle.transitions.curtainX=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true,true);opts.cssBefore.left=next.cycleW/2;opts.animIn.left=0;opts.animIn.width=this.cycleW;opts.animOut.left=curr.cycleW/2;opts.animOut.width=0});opts.cssBefore.top=0;opts.cssBefore.width=0};$.fn.cycle.transitions.curtainY=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false,true);opts.cssBefore.top=next.cycleH/2;opts.animIn.top=0;opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH/2;opts.animOut.height=0});opts.cssBefore.height=0;opts.cssBefore.left=0};$.fn.cycle.transitions.cover=function($cont,$slides,opts){var d=opts.direction||'left',w=$cont.css('overflow','hidden').width(),h=$cont.height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.cssAfter.display='';if(d=='right'){opts.cssBefore.left=-w}else if(d=='up'){opts.cssBefore.top=h}else if(d=='down'){opts.cssBefore.top=-h}else opts.cssBefore.left=w});opts.animIn.left=0;opts.animIn.top=0;opts.cssBefore.top=0;opts.cssBefore.left=0};$.fn.cycle.transitions.uncover=function($cont,$slides,opts){var d=opts.direction||'left',w=$cont.css('overflow','hidden').width(),h=$cont.height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true);if(d=='right'){opts.animOut.left=w}else if(d=='up'){opts.animOut.top=-h}else if(d=='down'){opts.animOut.top=h}else opts.animOut.left=-w});opts.animIn.left=0;opts.animIn.top=0;opts.cssBefore.top=0;opts.cssBefore.left=0};$.fn.cycle.transitions.toss=function($cont,$slides,opts){var w=$cont.css('overflow','visible').width(),h=$cont.height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true);if(!opts.animOut.left&&!opts.animOut.top){$.extend(opts.animOut,{left:w*2,top:-h/2,opacity:0})}else opts.animOut.opacity=0});opts.cssBefore.left=0;opts.cssBefore.top=0;opts.animIn.left=0};$.fn.cycle.transitions.wipe=function($cont,$slides,opts){var w=$cont.css('overflow','hidden').width(),h=$cont.height();opts.cssBefore=opts.cssBefore||{};var clip;if(opts.clip)if(/l2r/.test(opts.clip)){clip='rect(0px 0px '+h+'px 0px)'}else if(/r2l/.test(opts.clip)){clip='rect(0px '+w+'px '+h+'px '+w+'px)'}else if(/t2b/.test(opts.clip)){clip='rect(0px '+w+'px 0px 0px)'}else if(/b2t/.test(opts.clip)){clip='rect('+h+'px '+w+'px '+h+'px 0px)'}else if(/zoom/.test(opts.clip)){var top=parseInt(h/2,10),left=parseInt(w/2,10);clip='rect('+top+'px '+left+'px '+top+'px '+left+'px)'};opts.cssBefore.clip=opts.cssBefore.clip||clip||'rect(0px 0px 0px 0px)';var d=opts.cssBefore.clip.match(/(\d+)/g),t=parseInt(d[0],10),r=parseInt(d[1],10),b=parseInt(d[2],10),l=parseInt(d[3],10);opts.before.push(function(curr,next,opts){if(curr==next)return;var $curr=$(curr),$next=$(next);$.fn.cycle.commonReset(curr,next,opts,true,true,false);opts.cssAfter.display='block';var step=1,count=parseInt((opts.speedIn/13),10)-1;(function f(){var tt=t?t-parseInt(step*(t/count),10):0,ll=l?l-parseInt(step*(l/count),10):0,bb=b<h?b+parseInt(step*((h-b)/count||1),10):h,rr=r<w?r+parseInt(step*((w-r)/count||1),10):w;$next.css({clip:'rect('+tt+'px '+rr+'px '+bb+'px '+ll+'px)'});(step++<=count)?setTimeout(f,13):$curr.css('display','none')})()});$.extend(opts.cssBefore,{display:'block',opacity:1,top:0,left:0});opts.animIn={left:0};opts.animOut={left:0}}})(jQuery) 426; 427/*** Script File: /public/js/front/standard/jquery.Jcrop.js, Original size: 41,923, Compressed size: 18,060 ***/ 428(function($){$.Jcrop=function(obj,opt){var obj=obj,opt=opt,myself=this;if(typeof obj!=='object')obj=$(obj)[0];if(typeof opt!=='object')opt={};if(!('trackDocument'in opt)){opt.trackDocument=$.browser.msie?false:true;if($.browser.msie&&$.browser.version.split('.')[0]=='8')opt.trackDocument=true};if(!('keySupport'in opt))opt.keySupport=$.browser.msie?false:true;var defaults={trackDocument:false,baseClass:'jcrop',addClass:null,bgColor:'black',bgOpacity:.6,borderOpacity:.2,handleOpacity:1,handleSize:7,handleOffset:5,aspectRatio:0,keySupport:true,cornerHandles:true,sideHandles:true,drawBorders:true,dragEdges:true,boxWidth:0,boxHeight:0,boundary:3,animationDelay:20,swingSpeed:3,allowSelect:true,allowMove:true,allowResize:true,fadeTime:400,minSelect:[0,0],maxSize:[0,0],minSize:[0,0],onChange:function(){},onSelect:function(){}},options=defaults;setOptions(opt);var img_css={border:'none',margin:0,padding:0,position:'absolute'},$origimg=$(obj),$img=$origimg.clone().removeAttr('id').css(img_css);$img.width($origimg.width());$img.height($origimg.height());$origimg.after($img).hide();presize($img,options.boxWidth,options.boxHeight);var boundx=$img.width(),boundy=$img.height(),$div=$('<div />').width(boundx).height(boundy).addClass(cssClass('holder')).css({position:'relative',backgroundColor:options.bgColor}).insertAfter($origimg).append($img);delete(options.bgColor);if(options.addClass)$div.addClass(options.addClass);var $img2=$('<img />').attr('src',$img.attr('src')).css(img_css).width(boundx).height(boundy),$img_holder=$('<div />').width(pct(100)).height(pct(100)).css({zIndex:310,position:'absolute',overflow:'hidden'}).append($img2),$hdl_holder=$('<div />').width(pct(100)).height(pct(100)).css('zIndex',320),$sel=$('<div />').css({position:'absolute',zIndex:300}).insertBefore($img).append($img_holder,$hdl_holder),bound=options.boundary,$trk=newTracker().width(boundx+(bound*2)).height(boundy+(bound*2)).css({position:'absolute',top:px(-bound),left
428:px(-bound),zIndex:290}).mousedown(newSelection),bgopacity=options.bgOpacity,xlimit,ylimit,xmin,ymin,xscale,yscale,enabled=true,docOffset=getPos($img),btndown,lastcurs,dimmed,animating,shift_down,Coords=function(){var x1=0,y1=0,x2=0,y2=0,ox,oy 429function setPressed(pos){var pos=rebound(pos);x2=x1=pos[0];y2=y1=pos[1]} 430function setCurrent(pos){var pos=rebound(pos);ox=pos[0]-x2;oy=pos[1]-y2;x2=pos[0];y2=pos[1]} 431function getOffset(){return[ox,oy]} 432function moveOffset(offset){var ox=offset[0],oy=offset[1];if(0>x1+ox)ox-=ox+x1;if(0>y1+oy)oy-=oy+y1;if(boundy<y2+oy)oy+=boundy-(y2+oy);if(boundx<x2+ox)ox+=boundx-(x2+ox);x1+=ox;x2+=ox;y1+=oy;y2+=oy} 433function getCorner(ord){var c=getFixed();switch(ord){case'ne':return[c.x2,c.y];case'nw':return[c.x,c.y];case'se':return[c.x2,c.y2];case'sw':return[c.x,c.y2]}} 434function getFixed(){if(!options.aspectRatio)return getRect();var aspect=options.aspectRatio,min_x=options.minSize[0]/xscale,min_y=options.minSize[1]/yscale,max_x=options.maxSize[0]/xscale,max_y=options.maxSize[1]/yscale,rw=x2-x1,rh=y2-y1,rwa=Math.abs(rw),rha=Math.abs(rh),real_ratio=rwa/rha,xx,yy;if(max_x==0)max_x=boundx*10;if(max_y==0)max_y=boundy*10;if(real_ratio<aspect){yy=y2;w=rha*aspect;xx=rw<0?x1-w:w+x1;if(xx<0){xx=0;h=Math.abs((xx-x1)/aspect);yy=rh<0?y1-h:h+y1}else if(xx>boundx){xx=boundx;h=Math.abs((xx-x1)/aspect);yy=rh<0?y1-h:h+y1}}else{xx=x2;h=rwa/aspect;yy=rh<0?y1-h:y1+h;if(yy<0){yy=0;w=Math.abs((yy-y1)*aspect);xx=rw<0?x1-w:w+x1}else if(yy>boundy){yy=boundy;w=Math.abs(yy-y1)*aspect;xx=rw<0?x1-w:w+x1}};if(xx>x1){if(xx-x1<min_x){xx=x1+min_x}else if(xx-x1>max_x)xx=x1+max_x;if(yy>y1){yy=y1+(xx-x1)/aspect}else yy=y1-(xx-x1)/aspect}else if(xx<x1){if(x1-xx<min_x){xx=x1-min_x}else if(x1-xx>max_x)xx=x1-max_x;if(yy>y1){yy=y1+(x1-xx)/aspect}else yy=y1-(x1-xx)/aspect};if(xx<0){x1-=xx;xx=0}else if(xx>boundx){x1-=xx-boundx;xx=boundx};if(yy<0){y1-=yy;yy=0}else if(yy>boundy){y1-=yy-boundy;yy=boundy};return makeObj(flipCoords(x1,y1,xx,yy))} 435function rebound(p){if(p[0]<0)p[0]=0;if(p[1]<0)p[1]=0;if(p[0]>boundx)p[0]=boundx;if(p[1]>boundy)p[1]=boundy;return[p[0],p[1]]} 436function flipCoords(x1,y1,x2,y2){var xa=x1,xb=x2,ya=y1,yb=y2;if(x2<x1){xa=x2;xb=x1};if(y2<y1){ya=y2;yb=y1};return[Math.round(xa),Math.round(ya),Math.round(xb),Math.round(yb)]} 437function getRect(){var xsize=x2-x1,ysize=y2-y1;if(xlimit&&(Math.abs(xsize)>xlimit))x2=(xsize>0)?(x1+xlimit):(x1-xlimit);if(ylimit&&(Math.abs(ysize)>ylimit))y2=(ysize>0)?(y1+ylimit):(y1-ylimit);if(ymin&&(Math.abs(ysize)<ymin))y2=(ysize>0)?(y1+ymin):(y1-ymin);if(xmin&&(Math.abs(xsize)<xmin))x2=(xsize>0)?(x1+xmin):(x1-xmin);if(x1<0){x2-=x1;x1-=x1};if(y1<0){y2-=y1;y1-=y1};if(x2<0){x1-=x2;x2-=x2};if(y2<0){y1-=y2;y2-=y2};if(x2>boundx){var delta=x2-boundx;x1-=delta;x2-=delta};if(y2>boundy){var delta=y2-boundy;y1-=delta;y2-=delta};if(x1>boundx){var delta=x1-boundy;y2-=delta;y1-=delta};if(y1>boundy){var delta=y1-boundy;y2-=delta;y1-=delta};return makeObj(flipCoords(x1,y1,x2,y2))} 438function makeObj(a){return{x:a[0],y:a[1],x2:a[2],y2:a[3],w:a[2]-a[0],h:a[3]-a[1]}};return{flipCoords:flipCoords,setPressed:setPressed,setCurrent:setCurrent,getOffset:getOffset,moveOffset:moveOffset,getCorner:getCorner,getFixed:getFixed}}(),Selection=function(){var start,end,dragmode,awake,hdep=370,borders={},handle={},seehandles=false,hhs=options.handleOffset;if(options.drawBorders)borders={top:insertBorder('hline'),bottom:insertBorder('hline'),left:insertBorder('vline'),right:insertBorder('vline')};if(options.dragEdges){handle.t=insertDragbar('n');handle.b=insertDragbar('s');handle.r=insertDragbar('e');handle.l=insertDragbar('w')};options.sideHandles&&createHandles(['n','s','e','w']);options.cornerHandles&&createHandles(['sw','nw','ne','se']) 439function insertBorder(type){var jq=$('<div />').css({position:'absolute',opacity:options.borderOpacity}).addClass(cssClass(type));$img_holder.append(jq);return jq} 440function dragDiv(ord,zi){var jq=$('<div />').mousedown(createDragger(ord)).css({cursor:ord+'-resize',position:'absolute',zIndex:zi});$hdl_holder.append(jq);return jq} 441function insertHandle(ord){return dragDiv(ord,hdep++).css({top:px(-hhs+1),left:px(-hhs+1),opacity:options.handleOpacity}).addClass(cssClass('handle'))} 442function insertDragbar(ord){var s=options.handleSize,h=s,w=s,t=hhs,l=hhs;switch(ord){case'n':case's':w=pct(100);break;case'e':case'w':h=pct(100);break};return dragDiv(ord,hdep++).width(w).height(h).css({top:px(-t+1),left:px(-l+1)})} 443function createHandles(li){for(var i=0;i<li.length;i++)handle[li[i]]=insertHandle(li[i])} 444function moveHandles(c){var midvert=Math.round((c.h/2)-hhs),midhoriz=Math.round((c.w/2)-hhs),north=west=-hhs+1,east=c.w-hhs,south=c.h-hhs,x,y;'e'in handle&&handle.e.css({top:px(midvert),left:px(east)})&&handle.w.css({top:px(midvert)})&&handle.s.css({top:px(south),left:px(midhoriz)})&&handle.n.css({left:px(midhoriz)});'ne'in handle&&handle.ne.css({left:px(east)})&&handle.se.css({top:px(south),left:px(east)})&&handle.sw.css({top:px(south)});'b'in handle&&handle.b.css({top:px(south)})&&handle.r.css({left:px(east)})} 445function moveto(x,y){$img2.css({top:px(-y),left:px(-x)});$sel.css({top:px(y),left:px(x)})} 446function resize(w,h){$sel.width(w).height(h)} 447function refresh(){var c=Coords.getFixed();Coords.setPressed([c.x,c.y]);Coords.setCurrent([c.x2,c.y2]);updateVisible()}
448function updateVisible(){if(awake)return update()} 449function update(){var c=Coords.getFixed();resize(c.w,c.h);moveto(c.x,c.y);options.drawBorders&&borders.right.css({left:px(c.w-1)})&&borders.bottom.css({top:px(c.h-1)});seehandles&&moveHandles(c);awake||show();options.onChange.call(api,unscale(c))} 450function show(){$sel.show();$img.css('opacity',bgopacity);awake=true} 451function release(){disableHandles();$sel.hide();$img.css('opacity',1);awake=false} 452function showHandles(){if(seehandles){moveHandles(Coords.getFixed());$hdl_holder.show()}} 453function enableHandles(){seehandles=true;if(options.allowResize){moveHandles(Coords.getFixed());$hdl_holder.show();return true}} 454function disableHandles(){seehandles=false;$hdl_holder.hide()} 455function animMode(v){(animating=v)?disableHandles():enableHandles()} 456function done(){animMode(false);refresh()};var $track=newTracker().mousedown(createDragger('move')).css({cursor:'move',position:'absolute',zIndex:360});$img_holder.append($track);disableHandles();return{updateVisible:updateVisible,update:update,release:release,refresh:refresh,isAwake:function(){return awake},setCursor:function(cursor){$track.css('cursor',cursor)},enableHandles:enableHandles,enableOnly:function(){seehandles=true},showHandles:showHandles,disableHandles:disableHandles,animMode:animMode,done:done}}(),Tracker=function(){var onMove=function(){},onDone=function(){},trackDoc=options.trackDocument;if(!trackDoc)$trk.mousemove(trackMove).mouseup(trackUp).mouseout(trackUp) 457function toFront(){$trk.css({zIndex:450});if(trackDoc)$(document).mousemove(trackMove).mouseup(trackUp)} 458function toBack(){$trk.css({zIndex:290});if(trackDoc)$(document).unbind('mousemove',trackMove).unbind('mouseup',trackUp)} 459function trackMove(e){onMove(mouseAbs(e))} 460function trackUp(e){e.preventDefault();e.stopPropagation();if(btndown){btndown=false;onDone(mouseAbs(e));options.onSelect.call(api,unscale(Coords.getFixed()));toBack();onMove=function(){};onDone=function(){}};return false} 461function activateHandlers(move,done){btndown=true;onMove=move;onDone=done;toFront();return false} 462function setCursor(t){$trk.css('cursor',t)};$img.before($trk);return{activateHandlers:activateHandlers,setCursor:setCursor}}(),KeyManager=function(){var $keymgr=$('<input type="radio" />').css({position:'absolute',left:'-30px'}).keypress(parseKey).blur(onBlur),$keywrap=$('<div />').css({position:'absolute',overflow:'hidden'}).append($keymgr) 463function watchKeys(){if(options.keySupport){$keymgr.show();$keymgr.focus()}} 464function onBlur(e){$keymgr.hide()} 465function doNudge(e,x,y){if(options.allowMove){Coords.moveOffset([x,y]);Selection.updateVisible()};e.preventDefault();e.stopPropagation()} 466function parseKey(e){if(e.ctrlKey)return true;shift_down=e.shiftKey?true:false;var nudge=shift_down?10:1;switch(e.keyCode){case 37:doNudge(e,-nudge,0);break;case 39:doNudge(e,nudge,0);break;case 38:doNudge(e,0,-nudge);break;case 40:doNudge(e,0,nudge);break;case 27:Selection.release();break;case 9:return true};return false};if(options.keySupport)$keywrap.insertBefore($img);return{watchKeys:watchKeys}}() 467function px(n){return''+parseInt(n)+'px'} 468function pct(n){return''+parseInt(n)+'%'} 469function cssClass(cl){return options.baseClass+'-'+cl} 470function supportsColorFade(){return'backgroundColor'in $.fx.step} 471function getPos(obj){var pos=$(obj).offset();return[pos.left,pos.top]} 472function mouseAbs(e){return[(e.pageX-docOffset[0]),(e.pageY-docOffset[1])]} 473function myCursor(type){if(type!=lastcurs){Tracker.setCursor(type);lastcurs=type}} 474function startDragMode(mode,pos){docOffset=getPos($img);Tracker.setCursor(mode=='move'?mode:mode+'-resize');if(mode=='move')return Tracker.activateHandlers(createMover(pos),doneSelect);var fc=Coords.getFixed(),opp=oppLockCorner(mode),opc=Coords.getCorner(oppLockCorner(opp));Coords.setPressed(Coords.getCorner(opp));Coords.setCurrent(opc);Tracker.activateHandlers(dragmodeHandler(mode,fc),doneSelect)} 475function dragmodeHandler(mode,f){return function(pos){if(!options.aspectRatio){switch(mode){case'e':pos[1]=f.y2;break;case'w':pos[1]=f.y2;break;case'n':pos[0]=f.x2;break;case's':pos[0]=f.x2;break}}else switch(mode){case'e':pos[1]=f.y+1;break;case'w':pos[1]=f.y+1;break;case'n':pos[0]=f.x+1;break;case's':pos[0]=f.x+1;break};Coords.setCurrent(pos);Selection.update()}} 476function createMover(pos){var lloc=pos;KeyManager.watchKeys();return function(pos){Coords.moveOffset([pos[0]-lloc[0],pos[1]-lloc[1]]);lloc=pos;Selection.update()}} 477function oppLockCorner(ord){switch(ord){case'n':return'sw';
477case's':return'nw';case'e':return'nw';case'w':return'ne';case'ne':return'sw';case'nw':return'se';case'se':return'nw';case'sw':return'ne'}} 478function createDragger(ord){return function(e){if(options.disabled)return false;if((ord=='move')&&!options.allowMove)return false;btndown=true;startDragMode(ord,mouseAbs(e));e.stopPropagation();e.preventDefault();return false}} 479function presize($obj,w,h){var nw=$obj.width(),nh=$obj.height();if((nw>w)&&w>0){nw=w;nh=(w/$obj.width())*$obj.height()};if((nh>h)&&h>0){nh=h;nw=(h/$obj.height())*$obj.width()};xscale=$obj.width()/nw;yscale=$obj.height()/nh;$obj.width(nw).height(nh)} 480function unscale(c){return{x:parseInt(c.x*xscale),y:parseInt(c.y*yscale),x2:parseInt(c.x2*xscale),y2:parseInt(c.y2*yscale),w:parseInt(c.w*xscale),h:parseInt(c.h*yscale)}} 481function doneSelect(pos){var c=Coords.getFixed();if(c.w>options.minSelect[0]&&c.h>options.minSelect[1]){Selection.enableHandles();Selection.done()}else Selection.release();Tracker.setCursor(options.allowSelect?'crosshair':'default')} 482function newSelection(e){if(options.disabled)return false;if(!options.allowSelect)return false;btndown=true;docOffset=getPos($img);Selection.disableHandles();myCursor('crosshair');var pos=mouseAbs(e);Coords.setPressed(pos);Selection.update();Tracker.activateHandlers(selectDrag,doneSelect);KeyManager.watchKeys();e.stopPropagation();e.preventDefault();return false} 483function selectDrag(pos){Coords.setCurrent(pos);Selection.update()} 484function newTracker(){var trk=$('<div></div>').addClass(cssClass('tracker'));if($.browser.msie)trk.css({opacity:0,backgroundColor:'white'}).bind('selectstart',function(){return false});return trk} 485function setClass(cname){$div.removeClass().addClass(cssClass('holder')).addClass(cname)} 486function animateTo(a,callback){var x1=parseInt(a[0])/xscale,y1=parseInt(a[1])/yscale,x2=parseInt(a[2])/xscale,y2=parseInt(a[3])/yscale;if(animating)return;var animto=Coords.flipCoords(x1,y1,x2,y2),c=Coords.getFixed(),animat=initcr=[c.x,c.y,c.x2,c.y2],interv=options.animationDelay,x=animat[0],y=animat[1],x2=animat[2],y2=animat[3],ix1=animto[0]-initcr[0],iy1=animto[1]-initcr[1],ix2=animto[2]-initcr[2],iy2=animto[3]-initcr[3],pcent=0,velocity=options.swingSpeed;Selection.animMode(true);var anim_timer,animator=function(){return function(){pcent+=(100-pcent)/velocity;animat[0]=x+((pcent/100)*ix1);animat[1]=y+((pcent/100)*iy1);animat[2]=x2+((pcent/100)*ix2);animat[3]=y2+((pcent/100)*iy2);if(pcent>=99.8)pcent=100;if(pcent<100){setSelectRaw(animat)}else{clearInterval(anim_timer);Selection.done();if(typeof callback=='function')callback.call(api)}}}();anim_timer=setInterval(animator,interv)} 487function setSelect(rect){setSelectRaw([parseInt(rect[0])/xscale,parseInt(rect[1])/yscale,parseInt(rect[2])/xscale,parseInt(rect[3])/yscale])} 488function setSelectRaw(l){Coords.setPressed([l[0],l[1]]);Coords.setCurrent([l[2],l[3]]);Selection.update()} 489function setOptions(opt){if(typeof opt!='object')opt={};options=$.extend(options,opt);if(typeof(options.onChange)!=='function')options.onChange=function(){};if(typeof(options.onSelect)!=='function')options.onSelect=function(){}} 490function tellSelect(){return unscale(Coords.getFixed())} 491function tellScaled(){return Coords.getFixed()} 492function setOptionsNew(opt){setOptions(opt);interfaceUpdate()} 493function disableCrop(){options.disabled=true;Selection.disableHandles();Selection.setCursor('default');Tracker.setCursor('default')} 494function enableCrop(){options.disabled=false;interfaceUpdate()} 495function cancelCrop(){Selection.done();Tracker.activateHandlers(null,null)} 496function destroy(){$div.remove();$origimg.show();$(obj).removeData('Jcrop')} 497function setImage(src,callback){Selection.release();disableCrop();var img=new Image();img.onload=function(){var iw=img.width,ih=img.height,bw=options.boxWidth,bh=options.boxHeight;$img.width(iw).height(ih);$img.attr('src',src);$img2.attr('src',src);presize($img,bw,bh);boundx=$img.width();boundy=$img.height();$img2.width(boundx).height(boundy);$trk.width(boundx+(bound*2)).height(boundy+(bound*2));$div.width(boundx).height(boundy);enableCrop();(typeof callback=='function')&&callback.call(api)};img.src=src} 498function interfaceUpdate(alt){options.allowResize?alt?Selection.enableOnly():Selection.enableHandles():Selection.disableHandles();Tracker.setCursor(options.allowSelect?'crosshair':'default');Selection.setCursor(options.allowMove?'move':'default');if('setSelect'in options){setSelect(options.setSelect);Selection.done();delete(options.setSelect)};if('trueSize'in options){xscale=options.trueSize[0]/boundx;yscale=options.trueSize[1]/boundy};if('bgColor'in options){(supportsColorFade()&&options.fadeTime)?$div.animate({backgroundColor:options.bgColor},{queue:false,duration:options.fadeTime}):$div.css('backgroundColor',options.bgColor);delete(options.bgColor)};if('bgOpacity'in options){bgopacity=options.bgOpacity;if(Selection.isAwake())(options.fadeTime)?$img.fadeTo(options.fadeTime,bgopacity):$div.css('opacity',options.opacity);delete(options.bgOpacity)};xlimit=options.maxSize[0]||0;ylimit=options.maxSize[1]||0;xmin=options.minSize[0]||0;ymin=options.minSize[1]||0;if('outerImage'in options){$img.attr('src',options.outerImage);delete(options.outerImage)};Selection.refresh()};$hdl_holder.hide();interfaceUpdate(true);var api={setImage:setImage,animateTo:animateTo,setSelect:setSelect,setOptions:setOptionsNew,tellSelect:tellSelect,tellScaled:tellScaled,setClass:setClass,disable:disableCrop,enable:enableCrop,cancel:cancelCrop,release:Selection.release,destroy:destroy,focus:KeyManager.watchKeys,getBounds:function(){return[boundx*xscale,boundy*yscale]},getWidgetSize:function(){return[boundx,boundy]},getScaleFactor:function(){return[xscale,yscale]},ui:{holder:$div,selection:$sel}};if($.browser.msie)$div.bind('selectstart',function(){return false});$origimg.data('Jcrop',api);return api};$.fn.Jcrop=function(options,callback){function attachWhenDone(from){var opt=(typeof options=='object')?options:{},loadsrc=opt.useImg||from.src,img=new Image();img.onload=function(){var api=$.Jcrop(from,opt);(typeof callback=='function')&&callback.call(api)};img.src=loadsrc};this.each(function(){if($(this).data('Jcrop')){if(options=='api'){return $(this).data('Jcrop')}else $(this).data('Jcrop').setOptions(options)}else attachWhenDone(this)});return this}})(jQuery) 499; 500/*** Script File: /public/js/front/standard/jquery.royalslider.min.js, Original size: 51,754, Compressed size: 51,754 ***/ 501// jquery.royalslider v9.5.4 502(function(n){function u(b,f){var c,a=this,e=window.navigator,g=e.userAgent.toLowerCase();a.uid=n.rsModules.uid++;a.ns=".rs"+a.uid;var d=document.createElement("div").style,h=["webkit","Moz","ms","O"],k="",l=0,r;for(c=0;c<h.length;c++)r=h[c],!k&&r+"Transform"in d&&(k=r),r=r.toLowerCase(),window.requestAnimationFrame||(window.requestAnimationFrame=window[r+"RequestAnimationFrame"],window.cancelAnimationFrame=window[r+"CancelAnimationFrame"]||window[r+"CancelRequestAnimationFrame"]);window.requestAnimationFrame|| 503(window.requestAnimationFrame=function(a,b){var c=(new Date).getTime(),d=Math.max(0,16-(c-l)),e=window.setTimeout(function(){a(c+d)},d);l=c+d;return e});window.cancelAnimationFrame||(window.cancelAnimationFrame=function(a){clearTimeout(a)});
503a.isIPAD=g.match(/(ipad)/);a.isIOS=a.isIPAD||g.match(/(iphone|ipod)/);c=function(a){a=/(chrome)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||0>a.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)|| 504[];return{browser:a[1]||"",version:a[2]||"0"}}(g);h={};c.browser&&(h[c.browser]=!0,h.version=c.version);h.chrome&&(h.webkit=!0);a._a=h;a.isAndroid=-1<g.indexOf("android");a.slider=n(b);a.ev=n(a);a._b=n(document);a.st=n.extend({},n.fn.royalSlider.defaults,f);a._c=a.st.transitionSpeed;a._d=0;!a.st.allowCSS3||h.webkit&&!a.st.allowCSS3OnWebkit||(c=k+(k?"T":"t"),a._e=c+"ransform"in d&&c+"ransition"in d,a._e&&(a._f=k+(k?"P":"p")+"erspective"in d));k=k.toLowerCase();a._g="-"+k+"-";a._h="vertical"===a.st.slidesOrientation? 505!1:!0;a._i=a._h?"left":"top";a._j=a._h?"width":"height";a._k=-1;a._l="fade"===a.st.transitionType?!1:!0;a._l||(a.st.sliderDrag=!1,a._m=10);a._n="z-index:0; display:none; opacity:0;";a._o=0;a._p=0;a._q=0;n.each(n.rsModules,function(b,c){"uid"!==b&&c.call(a)});a.slides=[];a._r=0;(a.st.slides?n(a.st.slides):a.slider.children().detach()).each(function(){a._s(this,!0)});a.st.randomizeSlides&&a.slides.sort(function(){return 0.5-Math.random()});a.numSlides=a.slides.length;a._t();a.st.startSlideId?a.st.startSlideId> 506a.numSlides-1&&(a.st.startSlideId=a.numSlides-1):a.st.startSlideId=0;a._o=a.staticSlideId=a.currSlideId=a._u=a.st.startSlideId;a.currSlide=a.slides[a.currSlideId];a._v=0;a.pointerMultitouch=!1;a.slider.addClass((a._h?"rsHor":"rsVer")+(a._l?"":" rsFade"));d='<div class="rsOverflow"><div class="rsContainer">';a.slidesSpacing=a.st.slidesSpacing;a._w=(a._h?a.slider.width():a.slider.height())+a.st.slidesSpacing;a._x=Boolean(0<a._y);1>=a.numSlides&&(a._z=!1);a._a1=a._z&&a._l?2===a.numSlides?1:2:0;a._b1= 5076>a.numSlides?a.numSlides:6;a._c1=0;a._d1=0;a.slidesJQ=[];for(c=0;c<a.numSlides;c++)a.slidesJQ.push(n('<div style="'+(a._l?"":c!==a.currSlideId?a._n:"z-index:0;")+'" class="rsSlide "></div>'));a._e1=d=n(d+"</div></div>");var m=a.ns,k=function(b,c,d,e,f){a._j1=b+c+m;a._k1=b+d+m;a._l1=b+e+m;f&&(a._m1=b+f+m)};c=e.pointerEnabled;a.pointerEnabled=c||e.msPointerEnabled;a.pointerEnabled?(a.hasTouch=!1,a._n1=0.2,a.pointerMultitouch=Boolean(1<e[(c?"m":"msM")+"axTouchPoints"]),c?k("pointer","down","move","up", 508"cancel"):k("MSPointer","Down","Move","Up","Cancel")):(a.isIOS?a._j1=a._k1=a._l1=a._m1="":k("mouse","down","move","up"),"ontouchstart"in window||"createTouch"in document?(a.hasTouch=!0,a._j1+=" touchstart"+m,a._k1+=" touchmove"+m,a._l1+=" touchend"+m,a._m1+=" touchcancel"+m,a._n1=0.5,a.st.sliderTouch&&(a._f1=!0)):(a.hasTouch=!1,a._n1=0.2));a.st.sliderDrag&&(a._f1=!0,h.msie||h.opera?a._g1=a._h1="move":h.mozilla?(a._g1="-moz-grab",a._h1="-moz-grabbing"):h.webkit&&-1!=e.platform.indexOf("Mac")&&(a._g1= 509"-webkit-grab",a._h1="-webkit-grabbing"),a._i1());a.slider.html(d);a._o1=a.st.controlsInside?a._e1:a.slider;a._p1=a._e1.children(".rsContainer");a.pointerEnabled&&a._p1.css((c?"":"-ms-")+"touch-action",a._h?"pan-y":"pan-x");a._q1=n('<div class="rsPreloader"></div>');e=a._p1.children(".rsSlide");a._r1=a.slidesJQ[a.currSlideId];a._s1=0;a._e?(a._t1="transition-property",a._u1="transition-duration",a._v1="transition-timing-function",a._w1=a._x1=a._g+"transform",a._f?(h.webkit&&!h.chrome&&a.slider.addClass("rsWebkit3d"), 510a._y1="translate3d(",a._z1="px, ",a._a2="px, 0px)"):(a._y1="translate(",a._z1="px, ",a._a2="px)"),a._l?a._p1[a._g+a._t1]=a._g+"transform":(h={},h[a._g+a._t1]="opacity",h[a._g+a._u1]=a.st.transitionSpeed+"ms",h[a._g+a._v1]=a.st.css3easeInOut,e.css(h))):(a._x1="left",a._w1="top");var p;n(window).on("resize"+a.ns,function(){p&&clearTimeout(p);p=setTimeout(function(){a.updateSliderSize()},50)});a.ev.trigger("rsAfterPropsSetup");a.updateSliderSize();a.st.keyboardNavEnabled&&a._b2();a.st.arrowsNavHideOnTouch&& 511(a.hasTouch||a.pointerMultitouch)&&(a.st.arrowsNav=!1);a.st.arrowsNav&&(e=a._o1,n('<div class="rsArrow rsArrowLeft"><div class="rsArrowIcn"></div></div><div class="rsArrow rsArrowRight"><div class="rsArrowIcn"></div></div>').appendTo(e),a._c2=e.children(".rsArrowLeft").click(function(b){b.preventDefault();a.prev()}),a._d2=e.children(".rsArrowRight").click(function(b){b.preventDefault();a.next()}),a.st.arrowsNavAutoHide&&!a.hasTouch&&(a._c2.addClass("rsHidden"),a._d2.addClass("rsHidden"),e.one("mousemove.arrowshover", 512function(){a._c2.removeClass("rsHidden");a._d2.removeClass("rsHidden")}),e.hover(function(){a._e2||(a._c2.removeClass("rsHidden"),a._d2.removeClass("rsHidden"))},function(){a._e2||(a._c2.addClass("rsHidden"),a._d2.addClass("rsHidden"))})),a.ev.on("rsOnUpdateNav",function(){a._f2()}
512),a._f2());if(a._f1)a._p1.on(a._j1,function(b){a._g2(b)});else a.dragSuccess=!1;var q=["rsPlayBtnIcon","rsPlayBtn","rsCloseVideoBtn","rsCloseVideoIcn"];a._p1.click(function(b){if(!a.dragSuccess){var c=n(b.target).attr("class"); 513if(-1!==n.inArray(c,q)&&a.toggleVideo())return!1;if(a.st.navigateByClick&&!a._h2){if(n(b.target).closest(".rsNoDrag",a._r1).length)return!0;a._i2(b)}a.ev.trigger("rsSlideClick",b)}}).on("click.rs","a",function(b){if(a.dragSuccess)return!1;a._h2=!0;setTimeout(function(){a._h2=!1},3)});a.ev.trigger("rsAfterInit")}n.rsModules||(n.rsModules={uid:0});u.prototype={constructor:u,_i2:function(b){b=b[this._h?"pageX":"pageY"]-this._j2;b>=this._q?this.next():0>b&&this.prev()},_t:function(){var b;b=this.st.numImagesToPreload; 514if(this._z=this.st.loop)2===this.numSlides?(this._z=!1,this.st.loopRewind=!0):2>this.numSlides&&(this.st.loopRewind=this._z=!1);this._z&&0<b&&(4>=this.numSlides?b=1:this.st.numImagesToPreload>(this.numSlides-1)/2&&(b=Math.floor((this.numSlides-1)/2)));this._y=b},_s:function(b,f){function c(b,c){c?g.images.push(b.attr(c)):g.images.push(b.text());if(h){h=!1;g.caption="src"===c?b.attr("alt"):b.contents();g.image=g.images[0];g.videoURL=b.attr("data-rsVideo");var d=b.attr("data-rsw"),e=b.attr("data-rsh"); 515"undefined"!==typeof d&&!1!==d&&"undefined"!==typeof e&&!1!==e?(g.iW=parseInt(d,10),g.iH=parseInt(e,10)):a.st.imgWidth&&a.st.imgHeight&&(g.iW=a.st.imgWidth,g.iH=a.st.imgHeight)}}var a=this,e,g={},d,h=!0;b=n(b);a._k2=b;a.ev.trigger("rsBeforeParseNode",[b,g]);if(!g.stopParsing)return b=a._k2,g.id=a._r,g.contentAdded=!1,a._r++,g.images=[],g.isBig=!1,g.hasCover||(b.hasClass("rsImg")?(d=b,e=!0):(d=b.find(".rsImg"),d.length&&(e=!0)),e?(g.bigImage=d.eq(0).attr("data-rsBigImg"),d.each(function(){var a=n(this); 516a.is("a")?c(a,"href"):a.is("img")?c(a,"src"):c(a)})):b.is("img")&&(b.addClass("rsImg rsMainSlideImage"),c(b,"src"))),d=b.find(".rsCaption"),d.length&&(g.caption=d.remove()),g.content=b,a.ev.trigger("rsAfterParseNode",[b,g]),f&&a.slides.push(g),0===g.images.length&&(g.isLoaded=!0,g.isRendered=!1,g.isLoading=!1,g.images=null),g},_b2:function(){var b=this,f,c,a=function(a){37===a?b.prev():39===a&&b.next()};b._b.on("keydown"+b.ns,function(e){b._l2||(c=e.keyCode,37!==c&&39!==c||f||(a(c),f=setInterval(function(){a(c)}, 517700)))}).on("keyup"+b.ns,function(a){f&&(clearInterval(f),f=null)})},goTo:function(b,f){b!==this.currSlideId&&this._m2(b,this.st.transitionSpeed,!0,!f)},destroy:function(b){this.ev.trigger("rsBeforeDestroy");this._b.off("keydown"+this.ns+" keyup"+this.ns+" "+this._k1+" "+this._l1);this._p1.off(this._j1+" click");this.slider.data("royalSlider",null);n.removeData(this.slider,"royalSlider");n(window).off("resize"+this.ns);this.loadingTimeout&&clearTimeout(this.loadingTimeout);b&&this.slider.remove(); 518this.ev=this.slider=this.slides=null},_n2:function(b,f){function c(c,f,g){c.isAdded?(a(f,c),e(f,c)):(g||(g=d.slidesJQ[f]),c.holder?g=c.holder:(g=d.slidesJQ[f]=n(g),c.holder=g),c.appendOnLoaded=!1,e(f,c,g),a(f,c),d._p2(c,g,b),c.isAdded=!0)}function a(a,c){c.contentAdded||(d.setItemHtml(c,b),b||(c.contentAdded=!0))}function e(a,b,c){d._l&&(c||(c=d.slidesJQ[a]),c.css(d._i,(a+d._d1+p)*d._w))}function g(a){if(l){if(a>r-1)return g(a-r);if(0>a)return g(r+a)}return a}var d=this,h,k,l=d._z,r=d.numSlides;if(!isNaN(f))return g(f); 519var m=d.currSlideId,p,q=b?Math.abs(d._o2-d.currSlideId)>=d.numSlides-1?0:1:d._y,s=Math.min(2,q),v=!1,u=!1,t;for(k=m;k<m+1+s;k++)if(t=g(k),(h=d.slides[t])&&(!h.isAdded||!h.positionSet)){v=!0;break}for(k=m-1;k>m-1-s;k--)if(t=g(k),(h=d.slides[t])&&(!h.isAdded||!h.positionSet)){u=!0;break}if(v)for(k=m;k<m+q+1;k++)t=g(k),p=Math.floor((d._u-(m-k))/d.numSlides)*d.numSlides,(h=d.slides[t])&&c(h,t);if(u)for(k=m-1;k>m-1-q;k--)t=g(k),p=Math.floor((d._u-(m-k))/r)*r,(h=d.slides[t])&&c(h,t);if(!b)for(s=g(m-q), 520m=g(m+q),q=s>m?0:s,k=0;k<r;k++)s>m&&k>s-1||!(k<q||k>m)||(h=d.slides[k])&&h.holder&&(h.holder.detach(),h.isAdded=!1)},setItemHtml:function(b,f){var c=this,a=function(){if(!b.images)b.isRendered=!0,b.isLoaded=!0,b.isLoading=!1,d(!0);else if(!b.isLoading){var a,f;b.content.hasClass("rsImg")?(a=b.content,f=!0):a=b.content.find(".rsImg:not(img)");a&&!a.is("img")&&a.each(function(){var a=n(this),c='<img class="rsImg" src="'+(a.is("a")?a.attr("href"):a.text())+'" />';f?b.content=n(c):a.replaceWith(c)}); 521a=f?b.content:b.content.find("img.rsImg");k();a.eq(0).addClass("rsMainSlideImage");b.iW&&b.iH&&(b.isLoaded||c._q2(b),d());b.isLoading=!0;if(b.isBig)n("<img />").on("load.rs error.rs",function(a){n(this).off("load.rs error.rs");e([this],!0)}).attr("src",b.image);else{b.loaded=[];b.numStartedLoad=0;a=function(a){n(this).off("load.rs error.rs");b.loaded.push(this);b.loaded.length===b.numStartedLoad&&e(b.loaded,!1)};for(var g=0;g<b.images.length;g++){var h=n("<img />");b.numStartedLoad++;h.on("load.rs error.rs", 522a).attr("src",b.images[g])}}}},e=function(a,c){if(a.length){var d=a[0];if(c!==b.isBig)(d=b.holder.children())&&1<d.length&&l();else if(b.iW&&b.iH)g();else if(b.iW=d.width,b.iH=d.height,b.iW&&b.iH)g();else{var e=new Image;
522e.onload=function(){e.width?(b.iW=e.width,b.iH=e.height,g()):setTimeout(function(){e.width&&(b.iW=e.width,b.iH=e.height);g()},1E3)};e.src=d.src}}else g()},g=function(){b.isLoaded=!0;b.isLoading=!1;d();l();h()},d=function(){if(!b.isAppended&&c.ev){var a=c.st.visibleNearby,d=b.id-c._o; 523f||b.appendOnLoaded||!c.st.fadeinLoadedSlide||0!==d&&(!(a||c._r2||c._l2)||-1!==d&&1!==d)||(a={visibility:"visible",opacity:0},a[c._g+"transition"]="opacity 400ms ease-in-out",b.content.css(a),setTimeout(function(){b.content.css("opacity",1)},16));b.holder.find(".rsPreloader").length?b.holder.append(b.content):b.holder.html(b.content);b.isAppended=!0;b.isLoaded&&(c._q2(b),h());b.sizeReady||(b.sizeReady=!0,setTimeout(function(){c.ev.trigger("rsMaybeSizeReady",b)},100))}},h=function(){!b.loadedTriggered&& 524c.ev&&(b.isLoaded=b.loadedTriggered=!0,b.holder.trigger("rsAfterContentSet"),c.ev.trigger("rsAfterContentSet",b))},k=function(){c.st.usePreloader&&b.holder.html(c._q1.clone())},l=function(a){c.st.usePreloader&&(a=b.holder.find(".rsPreloader"),a.length&&a.remove())};b.isLoaded?d():f?!c._l&&b.images&&b.iW&&b.iH?a():(b.holder.isWaiting=!0,k(),b.holder.slideId=-99):a()},_p2:function(b,f,c){this._p1.append(b.holder);b.appendOnLoaded=!1},_g2:function(b,f){var c=this,a,e="touchstart"===b.type;c._s2=e;c.ev.trigger("rsDragStart"); 525if(n(b.target).closest(".rsNoDrag",c._r1).length)return c.dragSuccess=!1,!0;!f&&c._r2&&(c._t2=!0,c._u2());c.dragSuccess=!1;if(c._l2)e&&(c._v2=!0);else{e&&(c._v2=!1);c._w2();if(e){var g=b.originalEvent.touches;if(g&&0<g.length)a=g[0],1<g.length&&(c._v2=!0);else return}else b.preventDefault(),a=b,c.pointerEnabled&&(a=a.originalEvent);c._l2=!0;c._b.on(c._k1,function(a){c._x2(a,f)}).on(c._l1,function(a){c._y2(a,f)});c._z2="";c._a3=!1;c._b3=a.pageX;c._c3=a.pageY;c._d3=c._v=(f?c._e3:c._h)?a.pageX:a.pageY; 526c._f3=0;c._g3=0;c._h3=f?c._i3:c._p;c._j3=(new Date).getTime();if(e)c._e1.on(c._m1,function(a){c._y2(a,f)})}},_k3:function(b,f){if(this._l3){var c=this._m3,a=b.pageX-this._b3,e=b.pageY-this._c3,g=this._h3+a,d=this._h3+e,h=f?this._e3:this._h,g=h?g:d,d=this._z2;this._a3=!0;this._b3=b.pageX;this._c3=b.pageY;"x"===d&&0!==a?this._f3=0<a?1:-1:"y"===d&&0!==e&&(this._g3=0<e?1:-1);d=h?this._b3:this._c3;a=h?a:e;f?g>this._n3?g=this._h3+a*this._n1:g<this._o3&&(g=this._h3+a*this._n1):this._z||(0>=this.currSlideId&& 5270<d-this._d3&&(g=this._h3+a*this._n1),this.currSlideId>=this.numSlides-1&&0>d-this._d3&&(g=this._h3+a*this._n1));this._h3=g;200<c-this._j3&&(this._j3=c,this._v=d);f?this._q3(this._h3):this._l&&this._p3(this._h3)}},_x2:function(b,f){var c=this,a,e="touchmove"===b.type;if(!c._s2||e){if(e){if(c._r3)return;var g=b.originalEvent.touches;if(g){if(1<g.length)return;a=g[0]}else return}else a=b,c.pointerEnabled&&(a=a.originalEvent);c._a3||(c._e&&(f?c._s3:c._p1).css(c._g+c._u1,"0s"),function h(){c._l2&&(c._t3= 528requestAnimationFrame(h),c._u3&&c._k3(c._u3,f))}());if(c._l3)b.preventDefault(),c._m3=(new Date).getTime(),c._u3=a;else if(g=f?c._e3:c._h,a=Math.abs(a.pageX-c._b3)-Math.abs(a.pageY-c._c3)-(g?-7:7),7<a){if(g)b.preventDefault(),c._z2="x";else if(e){c._v3(b);return}c._l3=!0}else if(-7>a){if(!g)b.preventDefault(),c._z2="y";else if(e){c._v3(b);return}c._l3=!0}}},_v3:function(b,f){this._r3=!0;this._a3=this._l2=!1;this._y2(b)},_y2:function(b,f){function c(a){return 100>a?100:500<a?500:a}function a(a,b){if(e._l|| 529f)h=(-e._u-e._d1)*e._w,k=Math.abs(e._p-h),e._c=k/b,a&&(e._c+=250),e._c=c(e._c),e._x3(h,!1)}var e=this,g,d,h,k;g=-1<b.type.indexOf("touch");if(!e._s2||g)if(e._s2=!1,e.ev.trigger("rsDragRelease"),e._u3=null,e._l2=!1,e._r3=!1,e._l3=!1,e._m3=0,cancelAnimationFrame(e._t3),e._a3&&(f?e._q3(e._h3):e._l&&e._p3(e._h3)),e._b.off(e._k1).off(e._l1),g&&e._e1.off(e._m1),e._i1(),!e._a3&&!e._v2&&f&&e._w3){var l=n(b.target).closest(".rsNavItem");l.length&&e.goTo(l.index())}else{d=f?e._e3:e._h;if(!e._a3||"y"===e._z2&& 530d||"x"===e._z2&&!d)if(!f&&e._t2){e._t2=!1;if(e.st.navigateByClick){e._i2(e.pointerEnabled?b.originalEvent:b);e.dragSuccess=!0;return}e.dragSuccess=!0}else{e._t2=!1;e.dragSuccess=!1;return}else e.dragSuccess=!0;e._t2=!1;e._z2="";var r=e.st.minSlideOffset;g=g?b.originalEvent.changedTouches[0]:e.pointerEnabled?b.originalEvent:b;var m=d?g.pageX:g.pageY,p=e._d3;g=e._v;var q=e.currSlideId,s=e.numSlides,v=d?e._f3:e._g3,u=e._z;Math.abs(m-p);g=m-g;d=(new Date).getTime()-e._j3;d=Math.abs(g)/d;if(0===v||1>= 531s)a(!0,d);else{if(!u&&!f)if(0>=q){if(0<v){a(!0,d);return}}else if(q>=s-1&&0>v){a(!0,d);return}if(f){h=e._i3;if(h>e._n3)h=e._n3;else if(h<e._o3)h=e._o3;else{m=d*d/0.006;l=-e._i3;p=e._y3-e._z3+e._i3;0<g&&m>l?(l+=e._z3/(15/(m/d*0.003)),d=d*l/m,m=l):0>g&&m>p&&(p+=e._z3/(15/(m/d*0.003)),d=d*p/m,m=p);l=Math.max(Math.round(d/0.003),50);h+=m*(0>g?-1:1);if(h>e._n3){e._a4(h,l,!0,e._n3,200);return}if(h<e._o3){e._a4(h,l,!0,e._o3,200);return}}e._a4(h,l,!0)}else l=function(a){var b=Math.floor(a/e._w);a-b*e._w> 532r&&b++;return b},p+r<m?0>v?a(!1,d):(l=l(m-p),e._m2(e.currSlideId-l,c(Math.abs(e._p-(-e._u-e._d1+l)*e._w)/d),!1,!0,!0)):p-r>m?0<v?a(!1,d):(l=l(p-m),e._m2(e.currSlideId+l,c(Math.abs(e._p-(-e._u-e._d1-l)*e._w)/d),!1,!0,!0)):a(!1,d)}}},_p3:function(b){b=this._p=b;this._e?this._p1.css(this._x1,this._y1+(this._h?b+this._z1+0:0+this._z1+b)+this._a2):this._p1.css(this._h?this._x1:this._w1,b)},updateSliderSize:function(b){var f,c;if(this.slider){if(this.st.autoScaleSlider){var a=this.st.autoScaleSliderWidth, 533e=this.st.autoScaleSliderHeight;this.st.autoScaleHeight?(f=this.slider.width(),f!=this.width&&(this.slider.css("height",e/a*f),f=this.slider.width()),c=this.slider.height()):(c=this.slider.height(),c!=this.height&&(this.slider.css("width",a/e*c),c=this.slider.height()),f=this.slider.width())}else f=this.slider.width(),c=this.slider.height();if(b||f!=this.width||c!=this.height){this.width=f;this.height=c;this._b4=f;this._c4=c;this.ev.trigger("rsBeforeSizeSet");this.ev.trigger("rsAfterSizePropSet"); 534this._e1.css({width:this._b4,height:this._c4});this._w=(this._h?this._b4:this._c4)+this.st.slidesSpacing;this._d4=this.st.imageScalePadding;
534for(f=0;f<this.slides.length;f++)b=this.slides[f],b.positionSet=!1,b&&b.images&&b.isLoaded&&(b.isRendered=!1,this._q2(b));if(this._e4)for(f=0;f<this._e4.length;f++)b=this._e4[f],b.holder.css(this._i,(b.id+this._d1)*this._w);this._n2();this._l&&(this._e&&this._p1.css(this._g+"transition-duration","0s"),this._p3((-this._u-this._d1)*this._w));this.ev.trigger("rsOnUpdateNav")}this._j2= 535this._e1.offset();this._j2=this._j2[this._i]}},appendSlide:function(b,f){var c=this._s(b);if(isNaN(f)||f>this.numSlides)f=this.numSlides;this.slides.splice(f,0,c);this.slidesJQ.splice(f,0,n('<div style="'+(this._l?"position:absolute;":this._n)+'" class="rsSlide"></div>'));f<=this.currSlideId&&this.currSlideId++;this.ev.trigger("rsOnAppendSlide",[c,f]);this._f4(f);f===this.currSlideId&&this.ev.trigger("rsAfterSlideChange")},removeSlide:function(b){var f=this.slides[b];f&&(f.holder&&f.holder.remove(), 536b<this.currSlideId&&this.currSlideId--,this.slides.splice(b,1),this.slidesJQ.splice(b,1),this.ev.trigger("rsOnRemoveSlide",[b]),this._f4(b),b===this.currSlideId&&this.ev.trigger("rsAfterSlideChange"))},_f4:function(b){var f=this;b=f.numSlides;b=0>=f._u?0:Math.floor(f._u/b);f.numSlides=f.slides.length;0===f.numSlides?(f.currSlideId=f._d1=f._u=0,f.currSlide=f._g4=null):f._u=b*f.numSlides+f.currSlideId;for(b=0;b<f.numSlides;b++)f.slides[b].id=b;f.currSlide=f.slides[f.currSlideId];f._r1=f.slidesJQ[f.currSlideId]; 537f.currSlideId>=f.numSlides?f.goTo(f.numSlides-1):0>f.currSlideId&&f.goTo(0);f._t();f._l&&f._p1.css(f._g+f._u1,"0ms");f._h4&&clearTimeout(f._h4);f._h4=setTimeout(function(){f._l&&f._p3((-f._u-f._d1)*f._w);f._n2();f._l||f._r1.css({display:"block",opacity:1})},14);f.ev.trigger("rsOnUpdateNav")},_i1:function(){this._f1&&this._l&&(this._g1?this._e1.css("cursor",this._g1):(this._e1.removeClass("grabbing-cursor"),this._e1.addClass("grab-cursor")))},_w2:function(){this._f1&&this._l&&(this._h1?this._e1.css("cursor", 538this._h1):(this._e1.removeClass("grab-cursor"),this._e1.addClass("grabbing-cursor")))},next:function(b){this._m2("next",this.st.transitionSpeed,!0,!b)},prev:function(b){this._m2("prev",this.st.transitionSpeed,!0,!b)},_m2:function(b,f,c,a,e){var g=this,d,h,k;g.ev.trigger("rsBeforeMove",[b,a]);k="next"===b?g.currSlideId+1:"prev"===b?g.currSlideId-1:b=parseInt(b,10);if(!g._z){if(0>k){g._i4("left",!a);return}if(k>=g.numSlides){g._i4("right",!a);return}}g._r2&&(g._u2(!0),c=!1);h=k-g.currSlideId;k=g._o2= 539g.currSlideId;var l=g.currSlideId+h;a=g._u;var n;g._z?(l=g._n2(!1,l),a+=h):a=l;g._o=l;g._g4=g.slidesJQ[g.currSlideId];g._u=a;g.currSlideId=g._o;g.currSlide=g.slides[g.currSlideId];g._r1=g.slidesJQ[g.currSlideId];var l=g.st.slidesDiff,m=Boolean(0<h);h=Math.abs(h);var p=Math.floor(k/g._y),q=Math.floor((k+(m?l:-l))/g._y),p=(m?Math.max(p,q):Math.min(p,q))*g._y+(m?g._y-1:0);p>g.numSlides-1?p=g.numSlides-1:0>p&&(p=0);k=m?p-k:k-p;k>g._y&&(k=g._y);if(h>k+l)for(g._d1+=(h-(k+l))*(m?-1:1),f*=1.4,k=0;k<g.numSlides;k++)g.slides[k].positionSet= 540!1;g._c=f;g._n2(!0);e||(n=!0);d=(-a-g._d1)*g._w;n?setTimeout(function(){g._j4=!1;g._x3(d,b,!1,c);g.ev.trigger("rsOnUpdateNav")},0):(g._x3(d,b,!1,c),g.ev.trigger("rsOnUpdateNav"))},_f2:function(){this.st.arrowsNav&&(1>=this.numSlides?(this._c2.css("display","none"),this._d2.css("display","none")):(this._c2.css("display","block"),this._d2.css("display","block"),this._z||this.st.loopRewind||(0===this.currSlideId?this._c2.addClass("rsArrowDisabled"):this._c2.removeClass("rsArrowDisabled"),this.currSlideId=== 541this.numSlides-1?this._d2.addClass("rsArrowDisabled"):this._d2.removeClass("rsArrowDisabled"))))},_x3:function(b,f,c,a,e){function g(){var a;h&&(a=h.data("rsTimeout"))&&(h!==k&&h.css({opacity:0,display:"none",zIndex:0}),clearTimeout(a),h.data("rsTimeout",""));if(a=k.data("rsTimeout"))clearTimeout(a),k.data("rsTimeout","")}var d=this,h,k,l={};isNaN(d._c)&&(d._c=400);d._p=d._h3=b;d.ev.trigger("rsBeforeAnimStart");d._e?d._l?(d._c=parseInt(d._c,10),c=d._g+d._v1,l[d._g+d._u1]=d._c+"ms",l[c]=a?n.rsCSS3Easing[d.st.easeInOut]: 542n.rsCSS3Easing[d.st.easeOut],d._p1.css(l),a||!d.hasTouch?setTimeout(function(){d._p3(b)},5):d._p3(b)):(d._c=d.st.transitionSpeed,h=d._g4,k=d._r1,k.data("rsTimeout")&&k.css("opacity",0),g(),h&&h.data("rsTimeout",setTimeout(function(){l[d._g+d._u1]="0ms";l.zIndex=0;l.display="none";h.data("rsTimeout","");h.css(l);setTimeout(function(){h.css("opacity",0)},16)},d._c+60)),l.display="block",l.zIndex=d._m,l.opacity=0,l[d._g+d._u1]="0ms",l[d._g+d._v1]=n.rsCSS3Easing[d.st.easeInOut],k.css(l),k.data("rsTimeout", 543setTimeout(function(){k.css(d._g+d._u1,d._c+"ms");k.data("rsTimeout",setTimeout(function(){k.css("opacity",1);k.data("rsTimeout","")},20))},20))):d._l?(l[d._h?d._x1:d._w1]=b+"px",d._p1.animate(l,d._c,a?d.st.easeInOut:d.st.easeOut)):(h=d._g4,k=d._r1,k.stop(!0,!0).css({opacity:0,display:"block",zIndex:d._m}),d._c=d.st.transitionSpeed,k.animate({opacity:1},d._c,d.st.easeInOut),g(),h&&h.data("rsTimeout",setTimeout(function(){h.stop(!0,!0).css({opacity:0,display:"none",zIndex:0})},d._c+60)));d._r2=!0; 544d.loadingTimeout&&clearTimeout(d.loadingTimeout);d.loadingTimeout=e?setTimeout(function(){d.loadingTimeout=null;e.call()},d._c+60):setTimeout(function(){d.loadingTimeout=null;d._k4(f)},d._c+60)},_u2:function(b){this._r2=!1;clearTimeout(this.loadingTimeout);if(this._l)if(!this._e)this._p1.stop(!0),this._p=parseInt(this._p1.css(this._x1),10);else{if(!b){b=this._p;var f=this._h3=this._l4();this._p1.css(this._g+this._u1,"0ms");b!==f&&this._p3(f)}}else 20<this._m?this._m=10:this._m++},_l4:function(){var b= 545window.getComputedStyle(this._p1.get(0),null).getPropertyValue(this._g+"transform").replace(/^matrix\(/i,"").split(/, |\)$/g),f=0===b[0].indexOf("matrix3d");return parseInt(b[this._h?f?12:4:f?13:5],10)},_m4:function(b,f){return this._e?this._y1+(f?b+this._z1+0:0+this._z1+b)+this._a2:b},_k4:function(b){this._l||(this._r1.css("z-index",0),this._m=10);this._r2=!1;this.staticSlideId=this.currSlideId;this._n2();this._n4=!1;this.ev.trigger("rsAfterSlideChange")},_i4:function(b,f){var c=this,a=(-c._u-c._d1)* 546c._w;if(0!==c.numSlides&&!c._r2)if(c.st.loopRewind)c.goTo("left"===b?c.numSlides-1:0,f);else if(c._l){c._c=200;var e=function(){c._r2=!1};c._x3(a+("left"===b?30:-30),"",!1,!0,function(){c._r2=!1;c._x3(a,"",!1,!0,e)})}}
546,_q2:function(b,f){if(!b.isRendered){var c=b.content,a="rsMainSlideImage",e,g=this.st.imageAlignCenter,d=this.st.imageScaleMode,h;b.videoURL&&(a="rsVideoContainer","fill"!==d?e=!0:(h=c,h.hasClass(a)||(h=h.find("."+a)),h.css({width:"100%",height:"100%"}),a="rsMainSlideImage"));c.hasClass(a)|| 547(c=c.find("."+a));if(c){var k=b.iW,l=b.iH;b.isRendered=!0;if("none"!==d||g){a="fill"!==d?this._d4:0;h=this._b4-2*a;var n=this._c4-2*a,m,p,q={};"fit-if-smaller"===d&&(k>h||l>n)&&(d="fit");if("fill"===d||"fit"===d)m=h/k,p=n/l,m="fill"==d?m>p?m:p:"fit"==d?m<p?m:p:1,k=Math.ceil(k*m,10),l=Math.ceil(l*m,10);"none"!==d&&(q.width=k,q.height=l,e&&c.find(".rsImg").css({width:"100%",height:"100%"}));g&&(q.marginLeft=Math.floor((h-k)/2)+a,q.marginTop=Math.floor((n-l)/2)+a);c.css(q)}}}}};n.rsProto=u.prototype; 548n.fn.royalSlider=function(b){var f=arguments;return this.each(function(){var c=n(this);if("object"!==typeof b&&b){if((c=c.data("royalSlider"))&&c[b])return c[b].apply(c,Array.prototype.slice.call(f,1))}else c.data("royalSlider")||c.data("royalSlider",new u(c,b))})};n.fn.royalSlider.defaults={slidesSpacing:0,startSlideId:0,loop:!1,loopRewind:!1,numImagesToPreload:3,fadeinLoadedSlide:!0,slidesOrientation:"horizontal",transitionType:"move",transitionSpeed:600,controlNavigation:"bullets",controlsInside: !0, 549arrowsNav:!0,arrowsNavAutoHide:!0,navigateByClick:!0,randomizeSlides:!1,sliderDrag:!0,sliderTouch:!0,keyboardNavEnabled:!1,fadeInAfterLoaded:!0,allowCSS3:!0,allowCSS3OnWebkit:!0,addActiveClass:!1,autoHeight:!1,easeOut:"easeOutSine",easeInOut:"easeInOutSine",minSlideOffset:10,imageScaleMode:"fit-if-smaller",imageAlignCenter:!0,imageScalePadding:false,usePreloader:!0,autoScaleSlider:false,autoScaleSliderWidth:false,autoScaleSliderHeight:false,autoScaleHeight:!0,arrowsNavHideOnTouch:!1,globalCaption:!1,slidesDiff:false}; 550n.rsCSS3Easing={easeOutSine:"cubic-bezier(0.390, 0.575, 0.565, 1.000)",easeInOutSine:"cubic-bezier(0.445, 0.050, 0.550, 0.950)"};n.extend(jQuery.easing,{easeInOutSine:function(b,f,c,a,e){return-a/2*(Math.cos(Math.PI*f/e)-1)+c},easeOutSine:function(b,f,c,a,e){return a*Math.sin(f/e*(Math.PI/2))+c},easeOutCubic:function(b,f,c,a,e){return a*((f=f/e-1)*f*f+1)+c}})})(jQuery,window); 551// jquery.rs.active-class v1.0.1 552(function(c){c.rsProto._o4=function(){var b,a=this;if(a.st.addActiveClass)a.ev.on("rsOnUpdateNav",function(){b&&clearTimeout(b);b=setTimeout(function(){a._g4&&a._g4.removeClass("rsActiveSlide");a._r1&&a._r1.addClass("rsActiveSlide");b=null},50)})};c.rsModules.activeClass=c.rsProto._o4})(jQuery); 553// jquery.rs.animated-blocks v1.0.7 554(function(l){l.extend(l.rsProto,{_p4:function(){function m(){var g=a.currSlide;if(a.currSlide&&a.currSlide.isLoaded&&a._t4!==g){if(0<a._s4.length){for(b=0;b<a._s4.length;b++)clearTimeout(a._s4[b]);a._s4=[]}if(0<a._r4.length){var f;for(b=0;b<a._r4.length;b++)if(f=a._r4[b])a._e?(f.block.css(a._g+a._u1,"0s"),f.block.css(f.css)):f.block.stop(!0).css(f.css),a._t4=null,g.animBlocksDisplayed=!1;a._r4=[]}g.animBlocks&&(g.animBlocksDisplayed=!0,a._t4=g,a._u4(g.animBlocks))}}var a=this,b;a._q4={fadeEffect:!0, 555moveEffect:"top",moveOffset:20,speed:400,easing:"easeOutSine",delay:200};a.st.block=l.extend({},a._q4,a.st.block);a._r4=[];a._s4=[];a.ev.on("rsAfterInit",function(){m()});a.ev.on("rsBeforeParseNode",function(a,b,d){b=l(b);d.animBlocks=b.find(".rsABlock").css("display","none");d.animBlocks.length||(b.hasClass("rsABlock")?d.animBlocks=b.css("display","none"):d.animBlocks=!1)});a.ev.on("rsAfterContentSet",function(b,f){f.id===a.slides[a.currSlideId].id&&setTimeout(function(){m()},a.st.fadeinLoadedSlide? 556300:0)});a.ev.on("rsAfterSlideChange",function(){m()})},_v4:function(l,a){setTimeout(function(){l.css(a)},6)},_u4:function(m){var a=this,b,g,f,d,h,e,n;a._s4=[];m.each(function(m){b=l(this);g={};f={};d=null;var c=b.attr("data-move-offset"),c=c?parseInt(c,10):a.st.block.moveOffset;if(0<c&&((e=b.data("move-effect"))?(e=e.toLowerCase(),"none"===e?e=!1:"left"!==e&&"top"!==e&&"bottom"!==e&&"right"!==e&&(e=a.st.block.moveEffect,"none"===e&&(e=!1))):e=a.st.block.moveEffect,e&&"none"!==e)){var p;p="right"=== 557e||"left"===e?!0:!1;var k;n=!1;a._e?(k=0,h=a._x1):(p?isNaN(parseInt(b.css("right"),10))?h="left":(h="right",n=!0):isNaN(parseInt(b.css("bottom"),10))?h="top":(h="bottom",n=!0),h="margin-"+h,n&&(c=-c),a._e?k=parseInt(b.css(h),10):(k=b.data("rs-start-move-prop"),void 0===k&&(k=parseInt(b.css(h),10),isNaN(k)&&(k=0),b.data("rs-start-move-prop",k))));f[h]=a._m4("top"===e||"left"===e?k-c:k+c,p);g[h]=a._m4(k,p)}c=b.attr("data-fade-effect");if(!c)c=a.st.block.fadeEffect;else if("none"===c.toLowerCase()|| 558"false"===c.toLowerCase())c=!1;c&&(f.opacity=0,g.opacity=1);if(c||e)d={}
558,d.hasFade=Boolean(c),Boolean(e)&&(d.moveProp=h,d.hasMove=!0),d.speed=b.data("speed"),isNaN(d.speed)&&(d.speed=a.st.block.speed),d.easing=b.data("easing"),d.easing||(d.easing=a.st.block.easing),d.css3Easing=l.rsCSS3Easing[d.easing],d.delay=b.data("delay"),isNaN(d.delay)&&(d.delay=a.st.block.delay*m);c={};a._e&&(c[a._g+a._u1]="0ms");c.moveProp=g.moveProp;c.opacity=g.opacity;c.display="none";a._r4.push({block:b,css:c});a._v4(b, 559f);a._s4.push(setTimeout(function(b,d,c,e){return function(){b.css("display","block");if(c){var g={};if(a._e){var f="";c.hasMove&&(f+=c.moveProp);c.hasFade&&(c.hasMove&&(f+=", "),f+="opacity");g[a._g+a._t1]=f;g[a._g+a._u1]=c.speed+"ms";g[a._g+a._v1]=c.css3Easing;b.css(g);setTimeout(function(){b.css(d)},24)}else setTimeout(function(){b.animate(d,c.speed,c.easing)},16)}delete a._s4[e]}}(b,g,d,m),6>=d.delay?12:d.delay))})}});l.rsModules.animatedBlocks=l.rsProto._p4})(jQuery); 560// jquery.rs.auto-height v1.0.3 561(function(b){b.extend(b.rsProto,{_w4:function(){var a=this;if(a.st.autoHeight){var b,c,e,f=!0,d=function(d){e=a.slides[a.currSlideId];(b=e.holder)&&(c=b.height())&&void 0!==c&&c>(a.st.minAutoHeight||30)&&(a._c4=c,a._e||!d?a._e1.css("height",c):a._e1.stop(!0,!0).animate({height:c},a.st.transitionSpeed),a.ev.trigger("rsAutoHeightChange",c),f&&(a._e&&setTimeout(function(){a._e1.css(a._g+"transition","height "+a.st.transitionSpeed+"ms ease-in-out")},16),f=!1))};a.ev.on("rsMaybeSizeReady.rsAutoHeight", 562function(a,b){e===b&&d()});a.ev.on("rsAfterContentSet.rsAutoHeight",function(a,b){e===b&&d()});a.slider.addClass("rsAutoHeight");a.ev.one("rsAfterInit",function(){setTimeout(function(){d(!1);setTimeout(function(){a.slider.append('<div style="clear:both; float: none;"></div>')},16)},16)});a.ev.on("rsBeforeAnimStart",function(){d(!0)});a.ev.on("rsBeforeSizeSet",function(){setTimeout(function(){d(!1)},16)})}}});b.rsModules.autoHeight=b.rsProto._w4})(jQuery); 563// jquery.rs.autoplay v1.0.5 564(function(b){b.extend(b.rsProto,{_x4:function(){var a=this,d;
564a._y4={enabled:!1,stopAtAction:!0,pauseOnHover:!0,delay:2E3};!a.st.autoPlay&&a.st.autoplay&&(a.st.autoPlay=a.st.autoplay);a.st.autoPlay=b.extend({},a._y4,a.st.autoPlay);a.st.autoPlay.enabled&&(a.ev.on("rsBeforeParseNode",function(a,c,f){c=b(c);if(d=c.attr("data-rsDelay"))f.customDelay=parseInt(d,10)}),a.ev.one("rsAfterInit",function(){a._z4()}),a.ev.on("rsBeforeDestroy",function(){a.stopAutoPlay();a.slider.off("mouseenter mouseleave");b(window).off("blur"+ 565a.ns+" focus"+a.ns)}))},_z4:function(){var a=this;a.startAutoPlay();a.ev.on("rsAfterContentSet",function(b,e){a._l2||a._r2||!a._a5||e!==a.currSlide||a._b5()});a.ev.on("rsDragRelease",function(){a._a5&&a._c5&&(a._c5=!1,a._b5())});a.ev.on("rsAfterSlideChange",function(){a._a5&&a._c5&&(a._c5=!1,a.currSlide.isLoaded&&a._b5())});a.ev.on("rsDragStart",function(){a._a5&&(a.st.autoPlay.stopAtAction?a.stopAutoPlay():(a._c5=!0,a._d5()))});a.ev.on("rsBeforeMove",function(b,e,c){a._a5&&(c&&a.st.autoPlay.stopAtAction? 566a.stopAutoPlay():(a._c5=!0,a._d5()))});a._e5=!1;a.ev.on("rsVideoStop",function(){a._a5&&(a._e5=!1,a._b5())});a.ev.on("rsVideoPlay",function(){a._a5&&(a._c5=!1,a._d5(),a._e5=!0)});b(window).on("blur"+a.ns,function(){a._a5&&(a._c5=!0,a._d5())}).on("focus"+a.ns,function(){a._a5&&a._c5&&(a._c5=!1,a._b5())});a.st.autoPlay.pauseOnHover&&(a._f5=!1,a.slider.hover(function(){a._a5&&(a._c5=!1,a._d5(),a._f5=!0)},function(){a._a5&&(a._f5=!1,a._b5())}))},toggleAutoPlay:function(){this._a5?this.stopAutoPlay(): 567this.startAutoPlay()},startAutoPlay:function(){this._a5=!0;this.currSlide.isLoaded&&this._b5()},stopAutoPlay:function(){this._e5=this._f5=this._c5=this._a5=!1;this._d5()},_b5:function(){var a=this;a._f5||a._e5||(a._g5=!0,a._h5&&clearTimeout(a._h5),a._h5=setTimeout(function(){var b;a._z||a.st.loopRewind||(b=!0,a.st.loopRewind=!0);a.next(!0);b&&(a.st.loopRewind=!1)},a.currSlide.customDelay?a.currSlide.customDelay:a.st.autoPlay.delay))},_d5:function(){this._f5||this._e5||(this._g5=!1,this._h5&&(clearTimeout(this._h5), 568this._h5=null))}});b.rsModules.autoplay=b.rsProto._x4})(jQuery); 569// jquery.rs.bullets v1.0.1 570(function(c){c.extend(c.rsProto,{_i5:function(){var a=this;"bullets"===a.st.controlNavigation&&(a.ev.one("rsAfterPropsSetup",function(){a._j5=!0;a.slider.addClass("rsWithBullets");for(var b='<div class="rsNav rsBullets">',e=0;e<a.numSlides;e++)b+='<div class="rsNavItem rsBullet"><span></span></div>';a._k5=b=c(b+"</div>");a._l5=b.appendTo(a.slider).children();a._k5.on("click.rs",".rsNavItem",function(b){a._m5||a.goTo(c(this).index())})}),a.ev.on("rsOnAppendSlide",function(b,c,d){d>=a.numSlides?a._k5.append('<div class="rsNavItem rsBullet"><span></span></div>'): 571a._l5.eq(d).before('<div class="rsNavItem rsBullet"><span></span></div>');a._l5=a._k5.children()}),a.ev.on("rsOnRemoveSlide",function(b,c){var d=a._l5.eq(c);d&&d.length&&(d.remove(),a._l5=a._k5.children())}),a.ev.on("rsOnUpdateNav",function(){var b=a.currSlideId;a._n5&&a._n5.removeClass("rsNavSelected");b=a._l5.eq(b);b.addClass("rsNavSelected");a._n5=b}))}});c.rsModules.bullets=c.rsProto._i5})(jQuery); 572// jquery.rs.deeplinking v1.0.6 + jQuery hashchange plugin v1.3 Copyright (c) 2010 Ben Alman 573(function(d){d.extend(d.rsProto,{_o5:function(){var a=this,l,g,f;a._p5={enabled:!1,change:!1,prefix:""};a.st.deeplinking=d.extend({},a._p5,a.st.deeplinking);if(a.st.deeplinking.enabled){var k=a.st.deeplinking.change,c=a.st.deeplinking.prefix,e="#"+c,h=function(){var b=window.location.hash;return b&&0<b.indexOf(c)&&(b=parseInt(b.substring(e.length),10),0<=b)?b-1:-1},m=h();-1!==m&&(a.st.startSlideId=m);k&&(d(window).on("hashchange"+a.ns,function(b){l||(b=h(),0>b||(b>a.numSlides-1&&(b=a.numSlides-1), 574a.goTo(b)))}),a.ev.on("rsBeforeAnimStart",function(){g&&clearTimeout(g);f&&clearTimeout(f)}),a.ev.on("rsAfterSlideChange",function(){g&&clearTimeout(g);f&&clearTimeout(f);f=setTimeout(function(){l=!0;window.location.replace((""+window.location).split("#")[0]+e+(a.currSlideId+1));g=setTimeout(function(){l=!1;g=null},60)},400)}));a.ev.on("rsBeforeDestroy",function(){g=f=null;k&&d(window).off("hashchange"+a.ns)})}}});d.rsModules.deeplinking=d.rsProto._o5})(jQuery); 575(function(d,a,l){function g(b){b=b||location.href;return"#"+b.replace(/^[^#]*#?(.*)$/,"$1")}"$:nomunge";var f="hashchange",k=document,c,e=d.event.special,h=k.documentMode,m="on"+f in a&&(h===l||7<h);d.fn[f]=function(b){return b?this.bind(f,b):this.trigger(f)};d.fn[f].delay=50;e[f]=d.extend(e[f],{setup:function(){if(m)return!1;d(c.start)},teardown:function(){if(m)return!1;
575d(c.stop)}});c=function(){function b(){var c=g(),n=r(h);c!==h?(p(h=c,n),d(a).trigger(f)):n!==h&&(location.href=location.href.replace(/#.*/, 576"")+n);e=setTimeout(b,d.fn[f].delay)}var c={},e,h=g(),q=function(b){return b},p=q,r=q;c.start=function(){e||b()};c.stop=function(){e&&clearTimeout(e);e=l};a.attachEvent&&!a.addEventListener&&!m&&function(){var a,e;c.start=function(){a||(e=(e=d.fn[f].src)&&e+g(),a=d('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){e||p(g());b()}).attr("src",e||"javascript:0").insertAfter("body")[0].contentWindow,k.onpropertychange=function(){try{"title"===event.propertyName&&(a.document.title= 577k.title)}catch(b){}})};c.stop=q;r=function(){return g(a.location.href)};p=function(b,e){var c=a.document,g=d.fn[f].domain;b!==e&&(c.title=k.title,c.open(),g&&c.write('<script>document.domain="'+g+'"\x3c/script>'),c.close(),a.location.hash=b)}}();return c}()})(jQuery,this); 578// jquery.rs.fullscreen v1.0.6 579(function(c){c.extend(c.rsProto,{_q5:function(){var a=this;a._r5={enabled:!1,keyboardNav:!0,buttonFS:!0,nativeFS:!1,doubleTap:!0};a.st.fullscreen=c.extend({},a._r5,a.st.fullscreen);if(a.st.fullscreen.enabled)a.ev.one("rsBeforeSizeSet",function(){a._s5()})},_s5:function(){var a=this;a._t5=!a.st.keyboardNavEnabled&&a.st.fullscreen.keyboardNav;
579if(a.st.fullscreen.nativeFS){var b={supportsFullScreen:!1,isFullScreen:function(){return!1},requestFullScreen:function(){},cancelFullScreen:function(){},fullScreenEventName:"", 580prefix:""},d=["webkit","moz","o","ms","khtml"];if("undefined"!=typeof document.cancelFullScreen)b.supportsFullScreen=!0;else for(var e=0,f=d.length;e<f;e++)if(b.prefix=d[e],"undefined"!=typeof document[b.prefix+"CancelFullScreen"]){b.supportsFullScreen=!0;break}b.supportsFullScreen?(a.nativeFS=!0,b.fullScreenEventName=b.prefix+"fullscreenchange"+a.ns,b.isFullScreen=function(){switch(this.prefix){case "":return document.fullScreen;case "webkit":return document.webkitIsFullScreen;default:return document[this.prefix+ 581"FullScreen"]}},b.requestFullScreen=function(a){return""===this.prefix?a.requestFullScreen():a[this.prefix+"RequestFullScreen"]()},b.cancelFullScreen=function(a){return""===this.prefix?document.cancelFullScreen():document[this.prefix+"CancelFullScreen"]()},a._u5=b):a._u5=!1}a.st.fullscreen.buttonFS&&(a._v5=c('<div class="rsFullscreenBtn"><div class="rsFullscreenIcn"></div></div>').appendTo(a._o1).on("click.rs",function(){a.isFullscreen?a.exitFullscreen():a.enterFullscreen()}))},enterFullscreen:function(a){var b= 582this;if(b._u5)if(a)b._u5.requestFullScreen(c("html")[0]);else{b._b.on(b._u5.fullScreenEventName,function(a){b._u5.isFullScreen()?b.enterFullscreen(!0):b.exitFullscreen(!0)});b._u5.requestFullScreen(c("html")[0]);return}if(!b._w5){b._w5=!0;b._b.on("keyup"+b.ns+"fullscreen",function(a){27===a.keyCode&&b.exitFullscreen()});b._t5&&b._b2();a=c(window);b._x5=a.scrollTop();b._y5=a.scrollLeft();b._z5=c("html").attr("style");b._a6=c("body").attr("style");b._b6=b.slider.attr("style");c("body, html").css({overflow:"hidden", 583height:"100%",width:"100%",margin:"0",padding:"0"});b.slider.addClass("rsFullscreen");var d;for(d=0;d<b.numSlides;d++)a=b.slides[d],a.isRendered=!1,a.bigImage&&(a.isBig=!0,a.isMedLoaded=a.isLoaded,a.isMedLoading=a.isLoading,a.medImage=a.image,a.medIW=a.iW,a.medIH=a.iH,a.slideId=-99,a.bigImage!==a.medImage&&(a.sizeType="big"),a.isLoaded=a.isBigLoaded,a.isLoading=!1,a.image=a.bigImage,a.images[0]=a.bigImage,a.iW=a.bigIW,a.iH=a.bigIH,a.isAppended=a.contentAdded=!1,b._c6(a));b.isFullscreen=!0;b._w5=!1; 584b.updateSliderSize();b.ev.trigger("rsEnterFullscreen")}},exitFullscreen:function(a){var b=this;if(b._u5){if(!a){b._u5.cancelFullScreen(c("html")[0]);return}b._b.off(b._u5.fullScreenEventName)}if(!b._w5){b._w5=!0;b._b.off("keyup"+b.ns+"fullscreen");b._t5&&b._b.off("keydown"+b.ns);c("html").attr("style",b._z5||"");c("body").attr("style",b._a6||"");var d;for(d=0;d<b.numSlides;d++)a=b.slides[d],a.isRendered=!1,a.bigImage&&(a.isBig=!1,a.slideId=-99,a.isBigLoaded=a.isLoaded,a.isBigLoading=a.isLoading,a.bigImage= 585a.image,a.bigIW=a.iW,a.bigIH=a.iH,a.isLoaded=a.isMedLoaded,a.isLoading=!1,a.image=a.medImage,a.images[0]=a.medImage,a.iW=a.medIW,a.iH=a.medIH,a.isAppended=a.contentAdded=!1,b._c6(a,!0),a.bigImage!==a.medImage&&(a.sizeType="med"));b.isFullscreen=!1;a=c(window);a.scrollTop(b._x5);a.scrollLeft(b._y5);b._w5=!1;b.slider.removeClass("rsFullscreen");b.updateSliderSize();setTimeout(function(){b.updateSliderSize()},1);b.ev.trigger("rsExitFullscreen")}},_c6:function(a,b){var d=a.isLoaded||a.isLoading?'<img class="rsImg rsMainSlideImage" src="'+ 586a.image+'"/>':'<a class="rsImg rsMainSlideImage" href="'+a.image+'"></a>';a.content.hasClass("rsImg")?a.content=c(d):a.content.find(".rsImg").eq(0).replaceWith(d);a.isLoaded||a.isLoading||!a.holder||a.holder.html(a.content)}});c.rsModules.fullscreen=c.rsProto._q5})(jQuery); 587// jquery.rs.global-caption v1.0 588(function(b){b.extend(b.rsProto,{_d6:function(){var a=this;a.st.globalCaption&&(a.ev.on("rsAfterInit",function(){a.globalCaption=b('<div class="rsGCaption"></div>').appendTo(a.st.globalCaptionInside?a._e1:a.slider);a.globalCaption.html(a.currSlide.caption)}),a.ev.on("rsBeforeAnimStart",function(){a.globalCaption.html(a.currSlide.caption)}))}});b.rsModules.globalCaption=b.rsProto._d6})(jQuery); 589// jquery.rs.nav-auto-hide v1.0 590(function(b){b.extend(b.rsProto,{_e6:function(){var a=this;if(a.st.navAutoHide&&!a.hasTouch)a.ev.one("rsAfterInit",function(){if(a._k5){a._k5.addClass("rsHidden");var b=a.slider;b.one("mousemove.controlnav",function(){a._k5.removeClass("rsHidden")});b.hover(function(){a._k5.removeClass("rsHidden")},function(){a._k5.addClass("rsHidden")})}})}});b.rsModules.autoHideNav=b.rsProto._e6})(jQuery);
591// jquery.rs.tabs v1.0.2 592(function(e){e.extend(e.rsProto,{_f6:function(){var a=this;"tabs"===a.st.controlNavigation&&(a.ev.on("rsBeforeParseNode",function(a,d,b){d=e(d);b.thumbnail=d.find(".rsTmb").remove();b.thumbnail.length?b.thumbnail=e(document.createElement("div")).append(b.thumbnail).html():(b.thumbnail=d.attr("data-rsTmb"),b.thumbnail||(b.thumbnail=d.find(".rsImg").attr("data-rsTmb")),b.thumbnail=b.thumbnail?'<img src="'+b.thumbnail+'"/>':"")}),a.ev.one("rsAfterPropsSetup",function(){a._g6()}),a.ev.on("rsOnAppendSlide", 593function(c,d,b){b>=a.numSlides?a._k5.append('<div class="rsNavItem rsTab">'+d.thumbnail+"</div>"):a._l5.eq(b).before('<div class="rsNavItem rsTab">'+item.thumbnail+"</div>");a._l5=a._k5.children()}),a.ev.on("rsOnRemoveSlide",function(c,d){var b=a._l5.eq(d);b&&(b.remove(),a._l5=a._k5.children())}),a.ev.on("rsOnUpdateNav",function(){var c=a.currSlideId;a._n5&&a._n5.removeClass("rsNavSelected");c=a._l5.eq(c);c.addClass("rsNavSelected");a._n5=c}))},_g6:function(){var a=this,c;a._j5=!0;c='<div class="rsNav rsTabs">'; 594for(var d=0;d<a.numSlides;d++)c+='<div class="rsNavItem rsTab">'+a.slides[d].thumbnail+"</div>";c=e(c+"</div>");a._k5=c;a._l5=c.children(".rsNavItem");a.slider.append(c);a._k5.click(function(b){b=e(b.target).closest(".rsNavItem");b.length&&a.goTo(b.index())})}});e.rsModules.tabs=e.rsProto._f6})(jQuery); 595// jquery.rs.thumbnails v1.0.7 596(function(f){f.extend(f.rsProto,{_h6:function(){var a=this;"thumbnails"===a.st.controlNavigation&&(a._i6={drag:!0,touch:!0,orientation:"horizontal",navigation:!0,arrows:!0,arrowLeft:null,arrowRight:null,spacing:4,arrowsAutoHide:!1,appendSpan:!1,transitionSpeed:600,autoCenter:!0,fitInViewport:!0,firstMargin:!0,paddingTop:0,paddingBottom:0},a.st.thumbs=f.extend({},a._i6,a.st.thumbs),a._j6=!0,!1===a.st.thumbs.firstMargin?a.st.thumbs.firstMargin=0:!0===a.st.thumbs.firstMargin&&(a.st.thumbs.firstMargin= 597a.st.thumbs.spacing),a.ev.on("rsBeforeParseNode",function(a,b,c){b=f(b);c.thumbnail=b.find(".rsTmb").remove();c.thumbnail.length?c.thumbnail=f(document.createElement("div")).append(c.thumbnail).html():(c.thumbnail=b.attr("data-rsTmb"),c.thumbnail||(c.thumbnail=b.find(".rsImg").attr("data-rsTmb")),c.thumbnail=c.thumbnail?'<img src="'+c.thumbnail+'"/>':"")}),a.ev.one("rsAfterPropsSetup",function(){a._k6()}),a._n5=null,a.ev.on("rsOnUpdateNav",function(){var e=f(a._l5[a.currSlideId]);e!==a._n5&&(a._n5&& 598(a._n5.removeClass("rsNavSelected"),a._n5=null),a._l6&&a._m6(a.currSlideId),a._n5=e.addClass("rsNavSelected"))}),a.ev.on("rsOnAppendSlide",function(e,b,c){e="<div"+a._n6+' class="rsNavItem rsThumb">'+a._o6+b.thumbnail+"</div>";a._e&&a._s3.css(a._g+"transition-duration","0ms");c>=a.numSlides?a._s3.append(e):a._l5.eq(c).before(e);a._l5=a._s3.children();a.updateThumbsSize(!0)}),a.ev.on("rsOnRemoveSlide",function(e,b){var c=a._l5.eq(b);c&&(a._e&&a._s3.css(a._g+"transition-duration","0ms"),c.remove(), 599a._l5=a._s3.children(),a.updateThumbsSize(!0))}))},_k6:function(){var a=this,e="rsThumbs",b=a.st.thumbs,c="",g,d,h=b.spacing;a._j5=!0;a._e3="vertical"===b.orientation?!1:!0;a._n6=g=h?' style="margin-'+(a._e3?"right":"bottom")+":"+h+'px;"':"";a._i3=0;a._p6=!1;a._m5=!1;a._l6=!1;a._q6=b.arrows&&b.navigation;d=a._e3?"Hor":"Ver";a.slider.addClass("rsWithThumbs rsWithThumbs"+d);c+='<div class="rsNav rsThumbs rsThumbs'+d+'"><div class="'+e+'Container">';a._o6=b.appendSpan?'<span class="thumbIco"></span>': 600"";for(var k=0;k<a.numSlides;k++)d=a.slides[k],c+="<div"+g+' class="rsNavItem rsThumb">'+d.thumbnail+a._o6+"</div>";c=f(c+"</div></div>");g={};b.paddingTop&&(g[a._e3?"paddingTop":"paddingLeft"]=b.paddingTop);b.paddingBottom&&(g[a._e3?"paddingBottom":"paddingRight"]=b.paddingBottom);c.css(g);a._s3=f(c).find("."+e+"Container");a._q6&&(e+="Arrow",b.arrowLeft?a._r6=b.arrowLeft:(a._r6=f('<div class="'+e+" "+e+'Left"><div class="'+e+'Icn"></div></div>'),c.append(a._r6)),b.arrowRight?a._s6=b.arrowRight: 601(a._s6=f('<div class="'+e+" "+e+'Right"><div class="'+e+'Icn"></div></div>'),c.append(a._s6)),a._r6.click(function(){var b=(Math.floor(a._i3/a._t6)+a._u6)*a._t6+a.st.thumbs.firstMargin;a._a4(b>a._n3?a._n3:b)}),a._s6.click(function(){var b=(Math.floor(a._i3/a._t6)-a._u6)*a._t6+a.st.thumbs.firstMargin;a._a4(b<a._o3?a._o3:b)}),b.arrowsAutoHide&&!a.hasTouch&&(a._r6.css("opacity",0),a._s6.css("opacity",0),c.one("mousemove.rsarrowshover",function(){a._l6&&(a._r6.css("opacity",1),a._s6.css("opacity",1))}), 602c.hover(function(){a._l6&&(a._r6.css("opacity",1),a._s6.css("opacity",1))},function(){a._l6&&(a._r6.css("opacity",0),a._s6.css("opacity",0)
602)})));a._k5=c;a._l5=a._s3.children();a.msEnabled&&a.st.thumbs.navigation&&a._s3.css("-ms-touch-action",a._e3?"pan-y":"pan-x");a.slider.append(c);a._w3=!0;a._v6=h;b.navigation&&a._e&&a._s3.css(a._g+"transition-property",a._g+"transform");a._k5.on("click.rs",".rsNavItem",function(b){a._m5||a.goTo(f(this).index())});a.ev.off("rsBeforeSizeSet.thumbs").on("rsBeforeSizeSet.thumbs", 603function(){a._w6=a._e3?a._c4:a._b4;a.updateThumbsSize(!0)});a.ev.off("rsAutoHeightChange.thumbs").on("rsAutoHeightChange.thumbs",function(b,c){a.updateThumbsSize(!0,c)})},updateThumbsSize:function(a,e){var b=this,c=b._l5.first(),f={},d=b._l5.length;b._t6=(b._e3?c.outerWidth():c.outerHeight())+b._v6;b._y3=d*b._t6-b._v6;f[b._e3?"width":"height"]=b._y3+b._v6;b._z3=b._e3?b._k5.width():void 0!==e?e:b._k5.height();b._w3&&(b.isFullscreen||b.st.thumbs.fitInViewport)&&(b._e3?b._c4=b._w6-b._k5.outerHeight(): 604b._b4=b._w6-b._k5.outerWidth());b._z3&&(b._o3=-(b._y3-b._z3)-b.st.thumbs.firstMargin,b._n3=b.st.thumbs.firstMargin,b._u6=Math.floor(b._z3/b._t6),b._y3<b._z3?(b.st.thumbs.autoCenter&&b._q3((b._z3-b._y3)/2),b.st.thumbs.arrows&&b._r6&&(b._r6.addClass("rsThumbsArrowDisabled"),b._s6.addClass("rsThumbsArrowDisabled")),b._l6=!1,b._m5=!1,b._k5.off(b._j1)):b.st.thumbs.navigation&&!b._l6&&(b._l6=!0,!b.hasTouch&&b.st.thumbs.drag||b.hasTouch&&b.st.thumbs.touch)&&(b._m5=!0,b._k5.on(b._j1,function(a){b._g2(a,!0)})), 605b._s3.css(f),a&&e&&b._m6(b.currSlideId,!0))},setThumbsOrientation:function(a,e){this._w3&&(this.st.thumbs.orientation=a,this._k5.remove(),this.slider.removeClass("rsWithThumbsHor rsWithThumbsVer"),this._k6(),this._k5.off(this._j1),e||this.updateSliderSize(!0))},_q3:function(a){this._i3=a;this._e?this._s3.css(this._x1,this._y1+(this._e3?a+this._z1+0:0+this._z1+a)+this._a2):this._s3.css(this._e3?this._x1:this._w1,a)},_a4:function(a,e,b,c,g){var d=this;if(d._l6){e||(e=d.st.thumbs.transitionSpeed);d._i3= 606a;d._x6&&clearTimeout(d._x6);d._p6&&(d._e||d._s3.stop(),b=!0);var h={};d._p6=!0;d._e?(h[d._g+"transition-duration"]=e+"ms",h[d._g+"transition-timing-function"]=b?f.rsCSS3Easing[d.st.easeOut]:f.rsCSS3Easing[d.st.easeInOut],d._s3.css(h),d._q3(a)):(h[d._e3?d._x1:d._w1]=a+"px",d._s3.animate(h,e,b?"easeOutCubic":d.st.easeInOut));c&&(d._i3=c);d._y6();d._x6=setTimeout(function(){d._p6=!1;g&&(d._a4(c,g,!0),g=null)},e)}},_y6:function(){this._q6&&(this._i3===this._n3?this._r6.addClass("rsThumbsArrowDisabled"): 607this._r6.removeClass("rsThumbsArrowDisabled"),this._i3===this._o3?this._s6.addClass("rsThumbsArrowDisabled"):this._s6.removeClass("rsThumbsArrowDisabled"))},_m6:function(a,e){var b=0,c,f=a*this._t6+2*this._t6-this._v6+this._n3,d=Math.floor(this._i3/this._t6);this._l6&&(this._j6&&(e=!0,this._j6=!1),f+this._i3>this._z3?(a===this.numSlides-1&&(b=1),d=-a+this._u6-2+b,c=d*this._t6+this._z3%this._t6+this._v6-this._n3):0!==a?(a-1)*this._t6<=-this._i3+this._n3&&a-1<=this.numSlides-this._u6&&(c=(-a+1)*this._t6+ 608this._n3):c=this._n3,c!==this._i3&&(b=void 0===c?this._i3:c,b>this._n3?this._q3(this._n3):b<this._o3?this._q3(this._o3):void 0!==c&&(e?this._q3(c):this._a4(c))),this._y6())}});f.rsModules.thumbnails=f.rsProto._h6})(jQuery); 609// jquery.rs.video v1.1.3 610(function(f){f.extend(f.rsProto,{_z6:function(){var a=this;a._a7={autoHideArrows:!0,autoHideControlNav:!1,autoHideBlocks:!1,autoHideCaption:!1,disableCSS3inFF:!0,youTubeCode:'<iframe src="http://www.youtube.com/embed/%id%?rel=1&showinfo=0&autoplay=1&wmode=transparent" frameborder="no"></iframe>',vimeoCode:'<iframe src="http://player.vimeo.com/video/%id%?byline=0&portrait=0&autoplay=1" frameborder="no" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'};a.st.video=f.extend({},a._a7, 611a.st.video);a.ev.on("rsBeforeSizeSet",function(){a._b7&&setTimeout(function(){var b=a._r1,b=b.hasClass("rsVideoContainer")?b:b.find(".rsVideoContainer");
611a._c7&&a._c7.css({width:b.width(),height:b.height()})},32)});var d=a._a.mozilla;a.ev.on("rsAfterParseNode",function(b,c,e){b=f(c);if(e.videoURL){a.st.video.disableCSS3inFF&&d&&(a._e=a._f=!1);c=f('<div class="rsVideoContainer"></div>');var g=f('<div class="rsBtnCenterer"><div class="rsPlayBtn"><div class="rsPlayBtnIcon"></div></div></div>');b.hasClass("rsImg")? 612e.content=c.append(b).append(g):e.content.find(".rsImg").wrap(c).after(g)}});a.ev.on("rsAfterSlideChange",function(){a.stopVideo()})},toggleVideo:function(){return this._b7?this.stopVideo():this.playVideo()},playVideo:function(){var a=this;if(!a._b7){var d=a.currSlide;if(!d.videoURL)return!1;a._d7=d;var b=a._e7=d.content,d=d.videoURL,c,e;d.match(/youtu\.be/i)||d.match(/youtube\.com/i)?(e=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/,(e=d.match(e))&&11==e[7].length&& 613(c=e[7]),void 0!==c&&(a._c7=a.st.video.youTubeCode.replace("%id%",c))):d.match(/vimeo\.com/i)&&(e=/(www\.)?vimeo.com\/(\d+)($|\/)/,(e=d.match(e))&&(c=e[2]),void 0!==c&&(a._c7=a.st.video.vimeoCode.replace("%id%",c)));a.videoObj=f(a._c7);a.ev.trigger("rsOnCreateVideoElement",[d]);a.videoObj.length&&(a._c7=f('<div class="rsVideoFrameHolder"><div class="rsPreloader"></div><div class="rsCloseVideoBtn"><div class="rsCloseVideoIcn"></div></div></div>'),a._c7.find(".rsPreloader").after(a.videoObj),b=b.hasClass("rsVideoContainer")?
614b:b.find(".rsVideoContainer"),a._c7.css({width:b.width(),height:b.height()}).find(".rsCloseVideoBtn").off("click.rsv").on("click.rsv",function(b){a.stopVideo();b.preventDefault();b.stopPropagation();return!1}),b.append(a._c7),a.isIPAD&&b.addClass("rsIOSVideo"),a._f7(!1),setTimeout(function(){a._c7.addClass("rsVideoActive")},10),a.ev.trigger("rsVideoPlay"),a._b7=!0);return!0}return!1},stopVideo:function(){var a=this;return a._b7?(a.isIPAD&&a.slider.find(".rsCloseVideoBtn").remove(),a._f7(!0),setTimeout(function(){a.ev.trigger("rsOnDestroyVideoElement", 615[a.videoObj]);var d=a._c7.find("iframe");if(d.length)try{d.attr("src","")}catch(b){}a._c7.remove();a._c7=null},16),a.ev.trigger("rsVideoStop"),a._b7=!1,!0):!1},_f7:function(a,d){var b=[],c=this.st.video;c.autoHideArrows&&(this._c2&&(b.push(this._c2,this._d2),this._e2=!a),this._v5&&b.push(this._v5));c.autoHideControlNav&&this._k5&&b.push(this._k5);c.autoHideBlocks&&this._d7.animBlocks&&b.push(this._d7.animBlocks);c.autoHideCaption&&this.globalCaption&&b.push(this.globalCaption);this.slider[a?"removeClass": 616"addClass"]("rsVideoPlaying");if(b.length)for(c=0;c<b.length;c++)a?b[c].removeClass("rsHidden"):b[c].addClass("rsHidden")}});f.rsModules.video=f.rsProto._z6})(jQuery); 617// jquery.rs.visible-nearby v1.0.2 618(function(d){d.rsProto._g7=function(){var a=this;a.st.visibleNearby&&a.st.visibleNearby.enabled&&(a._h7={enabled:!0,centerArea:0.6,center:!0,breakpoint:0,breakpointCenterArea:0.8,hiddenOverflow:!0,navigateByCenterClick:!1},a.st.visibleNearby=d.extend({},a._h7,a.st.visibleNearby),a.ev.one("rsAfterPropsSetup",function(){a._i7=a._e1.css("overflow","visible").wrap('<div class="rsVisibleNearbyWrap"></div>').parent();a.st.visibleNearby.hiddenOverflow||a._i7.css("overflow","visible");a._o1=a.st.controlsInside? 619a._i7:a.slider}),a.ev.on("rsAfterSizePropSet",function(){var b,c=a.st.visibleNearby;b=c.breakpoint&&a.width<c.breakpoint?c.breakpointCenterArea:c.centerArea;a._h?(a._b4*=b,a._i7.css({height:a._c4,width:a._b4/b}),a._d=a._b4*(1-b)/2/b):(a._c4*=b,a._i7.css({height:a._c4/b,width:a._b4}),a._d=a._c4*(1-b)/2/b);c.navigateByCenterClick||(a._q=a._h?a._b4:a._c4);c.center&&a._e1.css("margin-"+(a._h?"left":"top"),a._d)}))};d.rsModules.visibleNearby=d.rsProto._g7})(jQuery); 620 621; 622/*** Script File: /public/js/front/standard/script.js, Original size: 38,960, Compressed size: 24,345 ***/ 623function hideElement(hide,show){$(hide).hide();$(show).show()} 624function threadBigShow(currentItem){$(".thread_item.posting").addClass("big");var postingItem=$("#thread_container .posting>div").hide(),postingItem=$("#thread_container .posting").find('.'+currentItem).eq(0);postingItem.show()} 625function editAvatar(parentElement,action){if(action==1)$(parentElement).toggleClass("active");if(action==2){$(parentElement).toggleClass("hide_all");$(parentElement).backgroundDraggable()};if(action==3)$(parentElement).removeClass("active")} 626function vl_tab(){if($(".filter, .video_description_links").length){var lineBox=$(".filter, .video_description_links");lineBox.append("<div class='magic-line'></div>");lineBox.each(function(){var currentBox=$(this),currentBoxStripe=currentBox.find(".magic-line"),currentBoxCurrentItem=currentBox.find(".current"),currentBoxCurrentItemLink=currentBoxCurrentItem.find("a:not(.sm_dd_link)"),currentBoxItem=currentBox.find("li:not(.excp)"),currentBoxItemLink=currentBoxItem.find("a.filter_link, a.video_description_link") 627function defStripePosition(){var currentItemData=currentBox.find(".current a");currentBoxStripe.stop().animate({width:currentItemData.width(),left:currentItemData.position()?currentItemData.position().left:0})};defStripePosition();$(currentBoxItem).hover(function(){currentLink=$(this).find("a"),currentLinkW=currentLink.width(),currentLinkPos=currentLink.position()?currentLink.position().left:0;currentBoxStripe.stop().animate({width:currentLinkW,left:currentLinkPos})},function(){defStripePosition()});currentBoxItemLink.click(function(event){currentBoxItem.removeClass("current");$(this).parent().addClass("current");defStripePosition();if($(this).attr("href")=="#")event.preventDefault()})})}} 628function ut_func(){$(".toggle_link").unbind("click").on("click",function(event){event.preventDefault();var hideElement=$(this).data("hide"),element=$(this).data("toggle");$(hideElement).hide();$(element).slideToggle();$(this).toggleClass("active")})};$("#thread_container").append("");$(function(){$("#choose_team").find(".team").on("click touchstart",function(event){if(event.target.nodeName!="A")event.preventDefault();var current=$(this);current.parent().find(".team").removeClass("active");current.addClass("active")});$(".search_btn").on("click touchstart",function(event){event.preventDefault();$(this).parent().toggleClass("show search_wrap")});$(".search_close").on("click touchstart",function(){$(this).parents(".filter__item, .search_box").toggleClass("show search_wrap")});$(document).on("click touchstart",function(event){if($(event.target).closest(".search_box").length)return;$(".search_box").removeClass("show");event.stopPropagation()});$(".gallery").each(function(){var curItem=$(this),curWidth=curItem.data("width"),curHeight=curItem.data("height");curItem.find("li").css({width:curWidth,height:curHeight})});var submenuItem=$("nav").find(".sub_nav li"),submenuContainer=$("nav").find(".sub_box_main");submenuContainer.children().not(":first-child").hide();submenuItem.on("mouseenter",function(){var liPosition=$(this).index();$(this).parent().next().children().eq(liPosition).stop().fadeIn(300).siblings().hide()});$("#event_nav").find(".filter_link").on("click touchstart",function(event){var tablesBox=$("#event_tables"),showTable=$(this).data("event");tablesBox.find(">div").slideUp();tablesBox.find(showTable).slideDown();if($(this).attr('href')=='#')event.preventDefault()});var carousel=$("#event_slider");if(carousel.find('.event_slider_item').length)carousel.owlCarousel({autoPlay:false,singleItem:true,pagination:true,dots:true,callbacks:true,items:1,navigation:true});var teamTimeline=$("#team_timeline");if(teamTimeline.length)teamTimeline.owlCarousel({loop:false,navigation:true,margin:0});if($("#humor_slider").length)$('#humor_slider').cycle({fx:'scrollHorz',easing:'easeOutExpo',delay:-4e3,speed:'slow',timeout:0,next:'#humor_next',prev:'#humor_prev'});$("#map_open").on("click touchstart",function(){$("#event_map").slideToggle("fast",function(){if(myMap){myMap.container.fitToViewport();myMap.setZoom(16)}})});var profileActive=$(".profileActive");$(".event_map_link, .igo_link, .playlist_item_add, .jp-repeat").on("click touchstart",function(){event.preventDefault();$(this).toggleClass("active");if($(this).data("social"))$(this).next().slideToggle()});$(".lg_like, .lg_plus, a.com_link.like, .extra_lg_like, .photo_like, .com_link1.like, .lg_watch, .com_link2, .like_link, .repost_link").on("click",function(){if($(profileActive).length){if($(this).attr('href')&&$(this).attr('href')!='#');else event.preventDefault()}else return false});$(document).on("click",".popup_link",function(event){event.preventDefault();event.stopImmediatePropagation();var openModal=$(this).data("modal"),dragnDrop=$(this).data("drag");if(openModal=="#other_results"){$(openModal).arcticmodal({afterOpen:function(){$('#results_slider').cycle({fx:'fade',speed:'1000',timeout:0,next:'#results_prev',prev:'#results_next'})},afterClose:function(){},beforeClose:function(){$('document').trigger('arcticModelClosed',["Custom","Event"])}})}else $(openModal).arcticmodal({beforeClose:function(){$('document').trigger('arcticModelClosed',["Custom","Event"])}})});$(".popup_link1").on("click touchstart",function(event){event.preventDefault();var openModal=$(this).data("modal");$(openModal).arcticmodal({beforeOpen:function(){$(openModal).parents(".arcticmodal-container_i").addClass("extra")},afterClose:function(){$(openModal).parents(".arcticmodal-container_i").removeClass("extra")}})});$("#viewer_caption_box").find(".title_edit").on("click touchstart",function(){var currentTitletext=$(this).text();$(this).hide().next().show().find("input[type='text']").val(currentTitletext)});$(document).click(function(event){if($(event.target).closest("#viewer_caption_box").length)return;$("#viewer_caption_box").find(".title_edit").show().parent().find("form").hide();event.stopPropagation()});$(".sm_dd_link").on("click touchstart",function(event){event.preventDefault();$(this).toggleClass("show")});$(".sm_dropdown_link").on("click touchstart",function(event){event.preventDefault();var linkContent=$(this).text(),defText=$(this).data("reset");if(defText){$(this).addClass("current").parents(".filter__item, .filter1__item").find(".sm_dd_link").text("ФилÑÑÑ")}else $(this).addClass("current").parents(".filter__item, .filter1__item").find(".sm_dd_link").text(linkContent);$(this).parents(".filter__item, .filter1__item").find(".sm_dropdown_link ").removeClass("current");var isiPad=navigator.userAgent.match(/iPad/i)!=null;if(isiPad)$(".sm_dd_link").removeClass("show")});$(".sm_dropdown").on("mouseleave",function(){$(".sm_dd_link").removeClass("show")});$(".city, .user_box .close_btn_b").on("click touchstart",function(){$(".search_city_box").toggleClass("show")});$('.scroll_pane').jScrollPane();$("#video_tabs").tabs();$("#photo_tabs, #bookmarks_tabs, #friends_tabs, #settings_tabs, #tabs").tabs({hide:{effect:"slide",duration:400}},{show:{effect:"clip",duration:700}});$(".jp-pause").on("click touchstart",function(){$(this).hide();$(".jp-video-play").show()});$(".jp-video-play, .jp-play").on("click touchstart",function(){$(".jp-video-play").hide()}) 629function shuffle(o){for(var j,x,i=o.length;i;j=Math.floor(Math.random()*i),x=o[--i],o[i]=o[j],o[j]=x);return o};var $slides=$('.random_slides'),$slideItem=$slides.find('li');$slides.html(shuffle($slideItem)) 630function randomSlider(position){var sum=position;$(".random_slides li").hide();$(".random_slides").find('li:eq('+sum+')').show()};$(".random_slider__member").on("click touchstart",function(){var position=$(this).data("member");randomSlider(position)});if($('#gallery-2').length)$('#gallery-2').royalSlider({controlNavigation:'thumbnails',thumbs:{orientation:'vertical',paddingBottom:0,marginBottom:0,appendSpan:false,spacing:0},transitionType:'fade',imageAlignCenter:false,imageScaleMode:'none',loop:true,blockLoop:false,arrowsNav:false,controlsInside:false,navigateByClick:false,keyboardNavEnabled:true,block:{delay:400}});var slider1=$("#slider1"),slider2=$("#slider2"),slider3=$("#slider3"),slider4=$("#slider4");if(slider1.length)$(slider1).flexslider({animation:"slide"});if(slider4.length)$(slider4).flexslider({animation:"slide",controlNav:false});$("#album_featured_imgs, .photo_tabs_content").find(".album_featured_img").on("click touchstart",function(event){event.preventDefault();var currentPosition=$(this).index();$(slider4).data("flexslider").flexAnimate(currentPosition)});if(slider2.length)$(slider2).before('<div id="slider2_nav">').after('<span class="slider2_control" id="slider2_prev"></span><span class="slider2_control" id="slider2_next"></span>').cycle({fx:'scrollHorz',speed:1200,easing:'easeOutExpo',next:'#slider2_next',prev:'#slider2_prev',pager:'#slider2_nav',timeout:8e3});if(slider3.length)$(slider3).after('<span class="slider3_control" id="slider3_prev"></span><span class="slider3_control" id="slider3_next"></span>').cycle({fx:'scrollHorz',speed:1200,easing:'easeOutExpo',next:'#slider3_next',prev:'#slider3_prev',timeout:8e3});$("#slider2_next").css({marginLeft:$("#slider2_nav").width()});$('.radio, .select').styler();$("#open_link").on("click",function(event){$(this).toggleClass("active");$(".global_bottom_content").slideToggle();event.preventDefault()});var playerContainer=$("#jquery_jplayer_1");$('.play_track').on('click touchstart',function(){var currentPlayBtn=$(this),curmp3=currentPlayBtn.parents(".audio_item").data('audiourl'),title=currentPlayBtn.parents(".audio_item").data('title'),currentItem=$(".audio_item[data-audiourl].active"),currentItemPosition=currentItem.index(),player=$('.jp-audio');$(".audio_item[data-audiourl]").removeClass("active");$(this).parents(".audio_item[data-audiourl]").addClass("active");playerContainer.jPlayer("destroy");playerContainer.jPlayer({ready:function(event){$(this).addClass("active");$(this).jPlayer("setMedia",{title:title,mp3:curmp3}).jPlayer('play')},ended:function(event){nextexist=currentPlayBtn.parents(".audio_item").next();if(1==1){newSelector=nextexist}else newSelector=$('.audio_box .audio_item:eq(0)');$('.play_track',newSelector).click()},swfPath:"/public/js/front/standard/audio_player/"})});$(".prev_next").on("click",function(){var currentItem=$(".audio_item[data-audiourl].active"),title=currentItem.hasClass("jp-previous")?currentItem.prev().data("title"):currentItem.next().data("title"),url=currentItem.hasClass("jp-previous")?currentItem.prev().data("audiourl"):currentItem.next().data("audiourl"),totalItems=currentItem.parent().children().length,currentItemPosition=currentItem.index();$(".audio_item[data-audiourl]").removeClass("active");if($(this).hasClass("jp-next"))currentItem.parent().children().eq(currentItemPosition+1).addClass("active");if($(this).hasClass("jp-previous"))currentItem.parent().children().eq(currentItemPosition-1).addClass("active");if(currentItemPosition+1==totalItems&&$(this).hasClass("jp-next")){t
630itle=currentItem.siblings(":first").data("title"),url=currentItem.siblings(":first").data("audiourl");currentItem.parent().children().eq(0).addClass("active")}else if(currentItemPosition==0&&$(this).hasClass("jp-previous")){title=currentItem.siblings(":last").data("title"),url=currentItem.siblings(":last").data("audiourl");currentItem.parent().children().eq(totalItems-1).addClass("active")};playerContainer.jPlayer("destroy");playerContainer.jPlayer({ready:function(event){$(this).addClass("active");$(this).jPlayer("setMedia",{title:title,mp3:url}).jPlayer('play')},ended:function(){},swfPath:"/public/js/front/standard/audio_player/"})});$(".pause_track, .jp-pause").on("click",function(){playerContainer.jPlayer("pause");$(".audio_item[data-audiourl]").removeClass("active")});$(".jp-pause").on("click",function(){playerContainer.toggleClass("active")});if($(".filter, .video_description_links").length){var lineBox=$(".filter, .video_description_links");lineBox.append("<div class='magic-line'></div>");lineBox.each(function(){var currentBox=$(this),currentBoxStripe=currentBox.find(".magic-line"),currentBoxCurrentItem=currentBox.find(".current"),currentBoxCurrentItemLink=currentBoxCurrentItem.find("a.filter_link, a.video_description_link"),currentBoxItem=currentBox.find("li:not(.excp)"),currentBoxItemLink=currentBoxItem.find("a.filter_link, a.video_description_link") 631function defStripePosition(){var currentItemData=currentBox.find(".current a");currentBoxStripe.stop().animate({width:currentItemData.width(),left:currentItemData.position()?currentItemData.position().left:0})};defStripePosition();$(currentBoxItem).hover(function(){currentLink=$(this).find("a.filter_link, a.video_description_link"),currentLinkW=currentLink.width(),currentLinkPos=currentLink.position()?currentLink.position().left:0;currentBoxStripe.stop().animate({width:currentLinkW,left:currentLinkPos})},function(){defStripePosition()});currentBoxItemLink.click(function(event){currentBoxItem.removeClass("current");$(this).parent().addClass("current");defStripePosition();if($(this).attr("href")=="#")event.preventDefault()})})};$('.content_sidebar [class^="close_btn"], .thread_item [class^="close_btn"]').on("click",function(){$(this).parent().addClass("d_none")});$("nav").hover(function(){$("#black_spacer").stop().show()},function(){$("#black_spacer").fadeOut()});$(".single_team_links a, .hidden_link").on("click",function(){var hidesGroup=$(this).data("hide"),showGroup=$(this).data("show");hideElement(hidesGroup,showGroup)});var commentTextarea=$('textarea.comment_form_txt_field');if(commentTextarea.length)commentTextarea.height(commentTextarea.get(0).scrollHeight);$(document).on("focusin",'textarea.comment_form_txt_field',function(){$(this).parents("form").toggleClass("focus")});$(document).on("blur",'textarea.comment_form_txt_field',function(){$(this).parents("form").toggleClass("focus")});$(document).on("click touchstart",".post_leave_comment_box button",function(){var e=jQuery.Event("keyup");e.which=13;$(this).siblings('textarea').trigger(e)});$(".toggle_link").on("click",function(event){event.preventDefault();var hideElement=$(this).data("hide"),element=$(this).data("toggle");$(hideElement).hide();$(element).slideToggle();$(this).toggleClass("active")});var dropdown=$(".edit_dropdown"),dropdownWidth=216,iconBorder=7;$("div[id^='edit_popup'], .moderate_video, .moderate_photo").on("click",".edit_link_photo",function(event){dropdown=$(".edit_dropdown",$(this).parent().parent()),dropdownWidth=216,iconBorder=7;if($(this).parent().hasClass('thumb_deleted'))return;var clickItem=$(this),clickItemParentWidth=$(this).parent().width();dropdowPosition=$(this).parent().position(),clickItemParentIndent=+$(this).parent().css("margin-left").slice(0,-2);dropdown.fadeIn().css({visibility:"visible",display:"block"});$(this).addClass("active");$(this).parents("div[id^='edit_popup'], .moderate_video").find(".edit_dropdown").css({top:dropdowPosition.top,left:dropdowPosition.left+($(this).parent().width()-dropdownWidth)+clickItemParentIndent+iconBorder}).addClass("active")});$("#lightbox").find(".edit_link_photo1").on("click",function(event){var clickItem=$(this),dropdowPosition=$(this).position();dropdown.fadeIn().css({visibility:"visible"});$(this).addClass("active");$(this).parents("#lightbox").find(".edit_dropdown").css({top:dropdowPosition.top,left
631:dropdowPosition.left}).addClass("active")});$(document).on('mouseleave',".edit_dropdown",function(){$(this).fadeOut();$(this).parent().find(".active").removeClass("active");$(".replace_to").slideUp()});$(document).on("click",".remove_link",function(){$(this).parent().remove()});$(".sm_btn2.rss, .sm_btn2.friend_btn").on("click",function(){$(this).toggleClass("unsubscribe")});$('.tooltip').tipsy({gravity:'se'});$("#profile_img_box").find(".avatar_edit_icon").on("click",function(){var actionItem=$(this),actionItemParent=actionItem.data("parent"),action=actionItem.data("action");$(actionItem).fadeOut();editAvatar(actionItemParent,action)});t_click();moderation();$(".type_of_user_item").on("click",function(){$(this).parent().find(".active").removeClass("active");$(this).addClass("active")})}) 632function t_click(){$(document).on("click",".thread_item",function(event){var self=this;if(event.target.nodeName==="A"||event.target.nodeName==="IMG"||event.target.nodeName==="INPUT"||event.target.nodeName==="LI")return true;var modal=$(this).data("post");if(modal)post.singlePost(modal,this,self)})} 633function moderation(){var dropdown=$('#edit_dropdown1');$(".img_box__items").find(".edit_link_photo").on("click",function(event){event.stopImmediatePropagation();event.preventDefault();var clickItem=$(this),dropdowPosition=$(this).parent().position();dropdown.fadeIn().css({visibility:"visible"});$(this).addClass("active");$(this).parent().parent().find('.edit_dropdown').css({top:dropdowPosition.top,left:dropdowPosition.left+150}).addClass("active")});dropdown.mouseleave(function(){$(this).fadeOut();$(this).parent().find(".active").removeClass("active");$(".replace_to").slideUp()})} 634function dd(){$(".sm_dd_link").unbind('click').on("click",function(event){event.preventDefault();$(this).toggleClass("show")});$(".sm_dropdown_link").unbind('click').on("click",function(event){event.preventDefault();var linkContent=$(this).text(),defText=$(this).data("reset");if(defText){$(this).addClass("current").parents(".filter__item, .filter1__item").find(".sm_dd_link").text("ФилÑÑÑ")}else $(this).addClass("current").parents(".filter__item, .filter1__item").find(".sm_dd_link").text(linkContent);$(this).parents(".filter__item, .filter1__item").find(".sm_dropdown_link ").removeClass("current");var isiPad=navigator.userAgent.match(/iPad/i)!=null;if(isiPad)$(".sm_dd_link").removeClass("show")});$(".sm_dropdown").unbind('mouseleave').on("mouseleave",function(){$(".sm_dd_link").removeClass("show")})} 635function identityPeople(photoId){ut_func();$("#identity_people").keyup(function(event){var self=this;if(event.which!=13)return;$.post('/profile/photo/addPhotoUser',{photoId:photoId,userId:$(".extra_input_data").val()},function(response){if(!response.result){$(self).val('');$("#identify_people_form").hide();$(".ident_btn").removeClass('active');return};$("<a>").html(response.htmlContent).appendTo("#identity_people_links .wrapper");$("#identity_people_links").removeClass('d_none');$(self).val('');$("#identify_people_form").hide();$(".ident_btn").removeClass('active')})}) 636function log(message){$("<a>").text(message).appendTo("#identity_people_links .wrapper")};if($("#identity_people").length){var currentInput=$("#identity_people"),inputSend=currentInput.next(),inputParent=currentInput.parent();currentInput.each(function(){var currentSource=$(this).data("source");$(this).autocomplete({minLength:0,appendTo:inputParent,source:function(request,response){$.get("/autocomplete/friends",{q:request.term,me:1},function(data){var newData=[];$(data.users).each(function(){var d={value:this.id,label:this.name,icon:this.photo,href:"#"};newData.push(d)});response(newData)})},focus:function(event,ui){$("#project").val(ui.item.name);return false},select:function(event,ui){$(this).val(ui.item.label);$(this).next().val(ui.item.value);return false}}).data("ui-autocomplete")._renderItem=function(ul,item){return $("<li>").append("<img style='margin: 4px; float: left' src='"+item.icon+"' />").append("<a>"+item.label+"</a>").appendTo(ul)}})}} 637function gallery3(){if($('#gallery-3').length)$('#gallery-3').royalSlider({controlNavigation:'thumbnails',thumbs:{orientation:'vertical',paddingBottom:0,marginBottom:0,appendSpan:false,spacing:0},transitionType:'fade',imageAlignCenter:false,imageScaleMode:'none',loop:true,blockLoop:false,arrowsNav:false,controlsInside:false,navigateByClick:false,keyboardNavEnabled:true,block:{delay:400}})};$(window).load(function(){$("#loader").remove();(function(){var player=$("#jp_container_1"),windowH=$(window).height(),footerH=$("aside.global_bottom").outerHeight()+$("footer").outerHeight(),footerPos=$("aside.global_bottom").offset().top,different=windowH-footerH;$(window).scroll(function(){if(($(window).scrollTop()>=footerPos-different-200)&&!player.hasClass("static")){player.addClass("static")}else if(($(window).scrollTop()<footerPos-different-200)&&player.hasClass("static"))player.removeClass("static")})})()});var navBox=$("nav");if("ontouchstart"in document.documentElement)navBox.find(".menu_link").on("click",function(event){if(!$(this).hasClass("prevented")){navBox.find(".prevented").removeClass("prevented");navBox.find(".sub_menu_box").hide();$(this).next().show();$(this).addClass("prevented");event.preventDefault()}});$(document).on("click touchstart",function(event){if("ontouchstart"in document.documentElement){if($(event.target).closest("nav").length)return;navBox.find(".prevented").removeClass("prevented");navBox.find(".sub_menu_box").hide();event.stopPropagation()}});$(function(){var viewportmeta=document.querySelector&&document.querySelector('meta[name="viewport"]'),ua=navigator.userAgent,gestureStart=function(){viewportmeta.content="width=device-width, minimum-scale=0.25, maximum-scale=1.6"},scaleFix=function(){if(viewportmeta&&/iPhone|iPad/.test(ua)&&!/Opera Mini/.test(ua)){viewportmeta.content="width=device-width, minimum-scale=1.0, maximum-scale=1.0";document.addEventListener("gesturestart",gestureStart,false)}};scaleFix();$(document).on("click touchstart",function(event){if($(event.target).closest('.league_filter').length)return;if($(event.target).closest(".sm_dd_link").length)return;$(".sm_dd_link").removeClass("show");event.stopPropagation()})});var ua=navigator.userAgent.toLocaleLowerCase(),regV=/ipod|ipad|iphone/gi,result=ua.match(regV),userScale="";if(!result)userScale=",user-scalable=0" 638function showSuccess(msg){$("#successCreated .message_sengind_label").text(msg);$("#successCreated").arcticmodal({closeOnOverlayClick:false,closeOnEsc:false});setTimeout(function(){$("#successCreated").arcticmodal('close')},1001)} 639function editProfileImg(parentElement,action){if(action==1)$(parentElement).toggleClass("active");if(action==2){$(parentElement).toggleClass("hide_all");$(parentElement).backgroundDraggable()};if(action==3)$(parentElement).removeClass("active");$(".avatar_edit_icon").removeAttr('style')};$(function(){$("header").find("a.profile").parent().on("click touchstart",function(){var windowWidth=$(window).width();if(windowWidth<=1100)$(this).toggleClass("active")});var profileImgBox=$("#profile_img_box");profileImgBox.find(".avatar_edit_icon, [class^='list_img_edit_link']").on("click",function(){var actionItem=$(this),actionItemParent=actionItem.data("parent"),action=actionItem.data("action");profileImgBox.find(".active").removeClass("active");profileImgBox.removeClass("active");editProfileImg(actionItemParent,action)});$(document).on("click",function(event){if($(event.target).closest("#profile_img_box").length)return;editProfileImg(profileImgBox,3);event.stopPropagation()});$(document).click(function(event){if($(event.target).closest(".img_edit_list1,.img_edit_list2,.avatar_edit_icon").length)return;$("#profile_img_box").removeClass("active");$("#profileAvatar").removeClass("active");$(".avatar_edit_icon").removeAttr('style');event.stopPropagation()}) 640function getscroll(){if(self.pageYOffset){yScroll=self.pageYOffset;xScroll=self.pageXOffset}else if(document.documentElement&&document.documentElement.scrollTop){yScroll=document.documentElement.scrollTop;xScroll=document.documentElement.scrollLeft}else if(document.body){yScroll=document.body.scrollTop;xScroll=document.body.scrollLeft}};var headerHeight=$("header").height();if($("#global_banner").length){var globalbannerHeight=$("#global_banner").height();headerHeight+=globalbannerHeight};$('.sf-menu li').mouseover(function(){getscroll();$('.nav_placeholder').css('top',264-yScroll);$('.nav_placeholder').css('top',headerHeight-yScroll)})});$(function(){var img=$(".left_banner").find("img").on("load",function(){var c=$("#content"),pos=c.position(),rPos=pos.left+c.width(),lPos=pos.left-$(".left_banner").width();$(".right_banner").css("left",rPos).show();$(".left_banner").css("left",lPos).show()})});$(window).resize(function(){var c=$("#content"),pos=c.position(),rPos=pos.left+c.width(),lPos=pos.left-$(".left_banner").width();$(".right_banner").css("left",rPos).show();$(".left_banner").css("left",lPos).show()}) 641; 642/*** Script File: /public/js/front/entity/search.js, Original size: 3,160, Compressed size: 2,481 ***
642/ 643function updateVideo(offsetPar,limitPar,pageNow){var scrollTop=$('.videoResult').offset().top;$(".videoResult").html("<div id=\"loaderSearch\"></div>");$.post("index/SearchVideoResult",{word:$("input#search").val(),offset:offsetPar,limit:limitPar,pageNow:pageNow},function(response){if(response.htmlContent){$(".videoResult").scrollTop(scrollTop);$(".videoResult").fadeIn(200).html(response.htmlContent)}})} 644function updateJournal(offsetPar,limitPar,pageNow){var scrollTop=$('.journalResult').offset().top;$(".journalResult").html("<div id=\"loaderSearch\"></div>");$.post("index/SearchJournalResult",{word:$("input#search").val(),offset:offsetPar,limit:limitPar,pageNow:pageNow},function(response){if(response.htmlContent){$(".journalResult").scrollTop(scrollTop);$(".journalResult").fadeIn(200).html(response.htmlContent)}})} 645function updateOther(offsetPar,limitPar,pageNow){var scrollTop=$('.otherResult').offset().top;$(".otherResult").html("<div id=\"loaderSearch\"></div>");$.post("index/SearchOther",{word:$("input#search").val(),offset:offsetPar,limit:limitPar,pageNow:pageNow},function(response){if(response.htmlContent){$(".otherResult").scrollTop(scrollTop);$(".otherResult").fadeIn(200).html(response.htmlContent)}})} 646function updatePrivacy(offsetPar,limitPar,pageNow){var scrollTop=$('.privacy').offset().top;$(".privacy").html("<div id=\"loaderSearch\"></div>");$.post("index/SearchPrivacy",{word:$("input#search").val(),offset:offsetPar,limit:limitPar,pageNow:pageNow},function(response){if(response.htmlContent){$(".privacy").scrollTop(scrollTop);$(".privacy").fadeIn(200).html(response.htmlContent)}})} 647function viewPrivacy(id,offset,limit,pageNow,tag){$(".privacy").html("<div id=\"loaderSearch\"></div>");$.post('index/LoadPrivacyView',{id:id,offset:offset,tag:tag,limit:limit,pageNow:pageNow},function(response){$('#privacy').addClass('d_none');$('#privacyView').html(response.htmlContent).removeClass('d_none');if(!term){if(!scroll)$("body").animate({scrollTop:0},'500','swing')}else{var offset=$(".found").first().offset();$("body").animate({scrollTop:offset.top-100},'500','swing')}})} 648function closePrivacy(offsetPar,limitPar,pageNow,tag){$(".privacy").html("<div id=\"loaderSearch\"></div>");var scrollTop=$('.privacy').offset().top;$.post("index/SearchPrivacy",{word:tag,offset:offsetPar,limit:limitPar,pageNow:pageNow},function(response){if(response.htmlContent){$(".privacy").scrollTop(scrollTop);$(".privacy").fadeIn(200).html(response.htmlContent)}})} 649; 650/*** Script File: /public/js/front/global.js, Original size: 2,290, Compressed size: 1,408 ***/ 651var global={init:function(){this.settings()},settings:function(){$.ajaxSetup({type:"POST",dataType:"json"});$(document).ajaxError(function(event,jqxhr,settings,exception){console.log(jqxhr.responseText)});$.ajaxPrefilter(function(options,originalOptions,jqXHR){if((originalOptions.type!==undefined&&originalOptions.type.toLowerCase()=='post')||(options.type!==undefined&&options.type.toLowerCase()=='post')){var data=originalOptions.data;if(originalOptions.data!==undefined){if(Object.prototype.toString.call(originalOptions.data)==='[object String]')data=$.deparam(originalOptions.data)}else data={};try{options.data=$.param($.extend(data,{'csrf-token':$('meta[name="csrf-token"]').attr('content')}))}catch(e){}}})}};$(function(){global.init()});(function(h){h.deparam=function(i,j){var d={},k={"true":!0,"false":!1,"null":null};h.each(i.replace(/\+/g," ").split("&"),function(i,l){var m,a=l.split("="),c=decodeURIComponent(a[0]),g=d,f=0,b=c.split("]["),e=b.length-1;/\[/.test(b[0])&&/\]$/.test(b[e])?(b[e]=b[e].replace(/\]$/,""),b=b.shift().split("[").concat(b),e=b.length-1):e=0;if(2===a.length){if(a=decodeURIComponent(a[1]),j&&(a=a&&!isNaN(a)?+a:"undefined"===a?void(0):void(0)!==k[a]?k[a]:a),e){for(;f<=e;f++)c=""===b[f]?g.length:b[f],m=g[c]=f<e?g[c]||(b[f+1]&&isNaN(b[f+1])?{}:[]):a,g=m}else h.isArray(d[c])?d[c].push(a):d[c]=void(0)!==d[c]?[d[c],a]:a}else c&&(d[c]=j?void(0):"")});return d}})(jQuery) 652; 653/*** Script File: /public/js/front/app.js, Original size: 17,874, Compressed size: 10,087 ***/ 654var app={URL_QUIZ_ANSWER:'/index/setQuizAnswer',URL_LIKE:'/index/likeEntity',likedClassName:'active',init:function(){$('a[href="#"]').click(function(event){event.preventDefault()});$("#idea-form, #vacancy-form").submit(function(event){event.preventDefault()});if($("#project-idea").length>0)$("#project-idea").limit(115,".project-idea-limit");$("#send-idea").on("click",function(){$.post('/idea',{params:$("#idea-form").serialize(),'csrf-token':$('meta[name="csrf-token"]').attr('content')}
654,function(data){$("#idea-form").find(".invalid").removeClass("invalid");if(!data.result){$.each(data,function(key,value){$("[name='Idea["+key+"]']").parent().addClass('invalid')})}else $("#idea-form").addClass("al-center bold").html("СообÑение ÑÑпеÑно оÑпÑавлено")})});$("#send-vacancy").on("click",function(){$.post('/vacancy',{params:$("#vacancy-form").serialize(),'csrf-token':$('meta[name="csrf-token"]').attr('content')},function(data){$("#vacancy-form").find(".invalid").removeClass("invalid");if(!data.result){$.each(data,function(key,value){$("[name='Vacancy["+key+"]']").parent().addClass('invalid')})}else $("#vacancy-form").addClass("al-center bold").html("СообÑение ÑÑпеÑно оÑпÑавлено")})}) 655function spliter(){if($('.spliter').length>0&&$(window).width()>1131){spliter_top=$('.spliter').position().top;slider_height=0;slider_top=parseInt($('.slider_box').css('marginTop'));if($('.slider_box').length>0){slider_top=$('.slider_box').position().top+parseInt($('.slider_box').css('marginTop'));slider_height=$('.slider_box').height()};$('.spliter').height(slider_height);delta=slider_top-spliter_top;if(delta>0){$('.spliter').css('paddingTop',delta)}else $('.slider_box').css('paddingTop',delta*(-1))}} 656function widthBanners(){var leftBanner=$('.j-left_banner'),rightBanner=$('.j-right_banner'),width=$(window).width();if(width<1280){leftBanner.hide();rightBanner.hide()}else{var leftImg=$('.j-left_banner img');leftImg.removeAttr("width").removeAttr("height").css({width:"",height:""});var rightImg=$('.j-right_banner img');rightImg.removeAttr("width").removeAttr("height").css({width:"",height:""});var mainWidth=$('.main').width(),bannerWidth=(width-mainWidth)/2;if(bannerWidth>leftImg.width())bannerWidth=leftImg.width();var positionLeft=(width-mainWidth-2*bannerWidth)/2;leftBanner.css({width:bannerWidth,left:positionLeft});bannerWidth=(width-mainWidth)/2;if(bannerWidth>rightImg.width())bannerWidth=rightImg.width();var positionRight=(width-mainWidth-2*bannerWidth)/2;rightBanner.css({width:bannerWidth,right:positionRight});leftImg.css({width:'100%'});rightImg.css({width:'100%'});leftBanner.show();rightBanner.show()}};$(document).ready(function(){widthBanners();$(window).load(function(){spliter();widthBanners()})});$(window).resize(function(){spliter();widthBanners()});$('a.login').on('click',function(){$(this).parents('form').submit()});if($('.login_ajax').length>0){$('.login').click(function(){if($('#email').val()&&$('#password').val()){var errors="";$.post('/user/loginAjax',{data:$('.login_ajax').serialize()},function(response){if(response.status){$.arcticmodal('close');$('.login_link_wrap').html(response.menu).addClass('user_box__row profile_row').removeClass();$('.comment_tree, #comment_form, .comment_section .d_none, .anonim-comment, #authForm').remove();$('.comment_section_top').after('<ul class="comment_tree">'+response.comments+'</ul>');$('ul.comment_tree').after(response.commentForm);$('#auth').val(1)}else{if(response.errors['password'])errors+=response.errors['password']+"<br>";if(response.errors['email'])errors+=response.errors['email']+"<br>";if(response.errors['verifyCode'])errors+=response.errors['verifyCode']+"<br>";$('.errors').html(errors).fadeIn()}})}else alert('ÐÑибка')});return false};$('.search_city_box .search_city_field').keyup(function(){var val=$(this).val();if(!val)return;$.post('/autocomplete/cities1',{userCountry:1,term:val},function(response){var scrollApi=$('.user_box__row .scroll_pane').data('jsp');$('.city_list').empty();response.forEach(function(item){$('.city_list').append('<li class="city_list_item"></li>');var i=$('<a>').addClass('city_link').attr('href','#').attr('onclick','app.storeUserCity("'+item.value+'"); return false;').html(item.label);$('.city_list').find('li:last').append(i)})})})},detectUserLocation:function(){ymaps.ready(function(){var ob=ymaps.geolocation;if(ob&&ob.hasOwnProperty('city'))app.storeUserCity(ob.city)})},storeUserCity:function(city){$('.user_box__item.city').text(city);if($('.search_city_box').hasClass('show'))$('#closeCities').trigger('click');$.post('/index/storeUserLocation',{cityName:city,'csrf-token':$("meta[name='csrf-token']").attr("content")})},likeEntity:function(type,id,context){if(typeof userId=='undefined')return;var $entity=$(context),params={entityId:id,ownerType:type};
656app.post(app.URL_LIKE,params,function(response){if(response.result==false){$entity.removeClass(className);$('.like_'+id).removeClass(className);return};var className=app.likedClassName;if($('.like_'+id).length>0){$('.like_'+id).toggleClass(className)}else $entity.toggleClass(className);if(!$entity.hasClass('no-value'))$entity.text(response.likes);$('.like_'+id).each(function(){if(!$(this).hasClass('no-value'))$(this).text(response.likes)})},'json');return false},setQuizAnswer:function(quizId,context){$(context).parents('form').on('submit',function(e){e.preventDefault()});var optionId=$('.quize_form_row .radio:checked').val();if(!optionId)return;var params={quizId:quizId,optionId:optionId};app.post(app.URL_QUIZ_ANSWER,params,function(response){if(response.errors&&response.errors.length>0)return;$(context).parents('.quize_box').html(response.htmlContent);$(context).hide()},'json')},post:function(url,params,callback,responseType){if(!responseType)responseType='json';var p=$.extend({},params,{'csrf-token':$('meta[name="csrf-token"]').attr('content')});$.post(url,p,callback,responseType)},sendFeedback:function(){$("#feedback .inprocess").show();$.post('/index/sendFeedback',{email:$('#feedback .email').val(),subject:$('select.subject').val(),text:$('#feedback .text').val(),privacy:$('#feedback .privacy:checked').val()},function(response){if(response.errors)$.each(response.errors,function(key,val){$("."+key).parent().addClass('invalid');$("."+key).focus()});$("#feedback .inprocess").hide();if(typeof response.result!='undefined')if(!response.result){$("#feedback .fail").show();$("#feedback .success").hide()}else{$("#feedback .fail").hide();$("#feedback .success").show();setTimeout(function(){$("#feedback .success").hide();$("#feedback .fail").hide();$('#feedback').arcticmodal('close');$('#feedback .email').val('');$('#feedback .subject').val('');$('#feedback .text').val('')},750)}})},closeFeedback:function(){$('#feedback').arcticmodal('close')},loadAllQuiz:function(){$.post('/index/getAllQuiz',{},function(response){$('#results_slider').html(response.htmlContent);$('#results_slider').cycle({fx:'fade',speed:'1000',timeout:0,next:'#results_prev',prev:'#results_next'})})},showFAQ:function(id){$('#answer_modal').empty();$.post('/index/loadFaq',{id:id},function(response){$('#answer_modal').html(response.htmlContent).arcticmodal()})},faqPaging:function(){var loading=false,el=$('.faq_list');if(el.length==0)return false;$(window).scroll(function(){if($(window).scrollTop()+$(window).height()>=$(document).height()-50)if(loading==false&&!el.data('allDone')){loading=true;if(!el.data('offset'))el.data('offset',1);$.post('/index/faq',{offset:el.data('offset'),type:$(".faq_filter_tab").data("selected")},function(response){if(!$.trim(response.htmlContent)){el.data('allDone',1);loading=false;return};el.data('offset',el.data('offset')+1);el.append(response.htmlContent);loading=false})}})}};$(function(){app.init();if(typeof centrifuge!='undefined'&&userId)centrifuge.on('connect',function(){centrifuge.subscribe('
656channel#'+userId,function(message){notif.interpreter(message.data)})});$('.search_form').each(function(){$(this).submit(function(e){e.preventDefault();return false})});setTimeout(function(){$(".d_none .select2-input").each(function(){$(this).removeAttr('style')})},500);$(document).on("click",".faq_filter",function(){var type=$(this).data("type");$(".faq_filter_tab").data("selected",type);$('.faq_list').data("offset",0);$.post("/index/faq",{type:type,offset:0},function(data){$(".faq_list").html(data.htmlContent)})});$('.disclame_block').click(function(){$.post('/index/disclame',{close:1},function(response){if(response.status)$('.disclame_block').remove()})});$('#promo_block').animate({top:"0px"},500);$('#promo_block .close').on("click",function(){$('#promo_block').animate({top:"-550px"},500)});$(".resent").on("click",function(){var root=$(this);$.post("/index/resent",{},function(){root.replaceWith('<span>ÐÑпÑавлено. ÐÑли пиÑÑма не бÑдеÑ, поÑмоÑÑиÑе пожалÑйÑÑа в папке "Спам"</span>')})})});$(window).scroll(function(){$('#promo_block').animate({top:"-550px"},1e3)});var notif={interpreter:function(data){switch(data.action){case'newMessage':notif.upgradeUnreadMessagesCount(data);break;case'newEvent':notif.upgradeNotificationsCount(data);break;default:alert(data.action)}},upgradeUnreadMessagesCount:function(data){var count=$('.sb_im span').text().substring(1);if(!parseInt(count))count=0;$('.sb_im span').text('+'+(++count))},downgradeUnreadMessagesCount:function(){var count=$('.sb_im span').text().substring(1);if(!parseInt(count)||--count<=0)return $('.sb_im span').text('');$('.sb_im span').text('+'+count)},upgradeNotificationsCount:function(){var count=$('.sb_nt span').text().substring(1);if(!parseInt(count))count=0;$('.sb_nt span').text('+'+(++count))}};window.log=function(mes,o){if(typeof console!="undefined"){o=o?o:"";console.log(mes,o)}};window.closeAwardNotification=function(awardType){$.post('/user/closeAwardNotification',{type:awardType},function(respones){})} 657function autocomleteFormat(data){if(!data.preview||$.trim(data.preview)=='')return data.text;return'<img src="'+data.preview+'" />'+data.text} 658; 659/*** Script File: /public/js/front/game.js, Original size: 1,280, Compressed size: 806 ***/ 660var game={stepId:$('#stepIdInput').val(),seasonId:$('#seasonIdInput').val(),leagueId:$('#leagueIdInput').val(),filterGameLeague:function(leagueId){game.leagueId=leagueId;game.seasonId='';game.stepId='';game.load()},filterGameSeason:function(seasonId){game.seasonId=seasonId;game.load()},filterStepId:function(stepId){game.stepId=stepId;game.load()},load:function(){$.post('/game/getGameResult',{leagueId:game.leagueId,seasonId:game.seasonId,stepId:game.stepId},function(response){$('.game_results').replaceWith(response.htmlContent);if(response.seasons)$("#seasonsDD").replaceWith(response.seasons);if(response.seasonsStep)$("#seasonsStepDD").replaceWith(response.seasonsStep);dd()})},loadResults:function(){$.post('/game/getResults',function(response){$(".results_box").html(response.htmlContent);dd()})}} 661; 662/*** Script File: /public/js/front/IM.js, Original size: 3,810, Compressed size: 2,305 ***/ 663IM={init:function(){var data;$('.my_messages_list_item').each(function(){var channel=$(this).data('dialog'),subscription=centrifuge.subscribe(channel,function(message){data=message.data;if(data.action=="newMessage")if($('.conv'+data.convId).length!=0&&$('.conv'+data.convId).parents('d_none').length==0){var cont=$('#message_modal .message_popup_content_inner').data('jsp');cont.getContentPane().find('>div').append(data.msg);cont.reinitialise();if(data.senderUserId==userId)$('.message_field').val('');cont.scrollTo(0,1e7)}else IM.updateConversationItem(data.convId);if(data.action=="madeAsRead"){$('#im_'+data.msgId).removeClass('gray_bg1');notif.downgradeUnreadMessagesCount()}})})},selectDialog:function(convId){return $.post('/profile/im/getConversation',{convId:convId},function(response){$('#message_modal').html(response.htmlContent).arcticmodal({beforeClose:function(){IM.updateConversationItem(convId);$('#message_modal').empty()},afterOpen:function(){$(".message_popup_content_inner").jScrollPane({reinitialise:true})}});$('.message_popup_content_inner').animate({scrollTop:$('.message_popup_content_inner > div').height()*2});$('.sb_im span').remove()})},send:function(convId){var ta=$('.message_field');if(!ta.val().trim()||ta.val().trim()=='ÐведиÑе ÑообÑение')ta.focus();console.log(ta.val().trim());console.log(convId);$.post('/profile/im/send',{text:ta.val().trim(),convId:convId},function(response){$('.message_popup_content').prepend(response.htmlContent)})},makeAsRead:function(msgId,self){if(!$(self).hasClass('gray_bg1')||$(self).hasClass('self_msg'))return false;return $.post('/profile/im/makeAsRead',{msgId:msgId})},loadConversations:function(){$.post('/profile/im/getConversations',{},function(response){$('.my_messages_list').html(response.htmlContent)})},compose:function(redirect){$.post("/profile/im/send",{toUserId:$("#send_to_i
663d").val(),text:$("#msg").val()},function(response){$("#compose").arcticmodal('close');if(redirect)return document.location.href='/im';IM.loadConversations()})},updateConversationItem:function(convId){$.post('/profile/im/getConversationView',{convId:convId},function(response){$("#convItem"+convId).replaceWith(response.htmlContent)})}};$(function(){if(typeof centrifuge!="undefined")centrifuge.on("connect",function(){IM.init()})}) 664; 665/*** Script File: /public/js/front/leagueManage.js, Original size: 14,121, Compressed size: 14,121 ***/ 666var lm = { 667 668 start: function (leagueId) { 669 $("#l_seasons select.seasonsList").change(function () { 670 lm.seasonSelected($(this).val()); 671 }); 672 $("#l_seasonsStep select.seasonsStepList").change(function () { 673 lm.seasonStepSelected($(this).val()); 674 }); 675 $("#l_results select.games").change(function () { 676 lm.gameSelected($(this).val(), leagueId); 677 }); 678 }, 679 680 seasonSelected: function (seasonId) { 681 if (seasonId != 0) { 682 // $("#l_seasons .t1").addClass('d_none'); 683 $("#l_seasons .t2").removeClass('d_none'); 684 $("#l_seasonsStep").slideDown(); 685 686 lm.seasonStepLoad(seasonId); 687 688 } else { 689 $("#l_seasons .t2").addClass('d_none'); 690 // $("#l_seasons .t1").removeClass('d_none');
691 $("#l_seasonsStep").slideUp(); 692 $("#l_results").slideUp(); 693 } 694 }, 695 696 seasonStepSelected: function (seasonStepId) { 697 if (seasonStepId == -1) { 698 return $("#addSeasonsStep1").trigger('click'); 699 } 700 701 if (seasonStepId != 0) { 702 $("#l_seasonsStep .t4").removeClass('d_none'); 703 $('#l_results').slideDown(); 704 705 lm.gameLoad(seasonStepId); 706 } else { 707 $("#l_seasonsStep .t4").addClass('d_none'); 708 $('#l_results').slideUp(); 709 } 710 }, 711 712 seasonAdd: function (leagueId) { 713 return $.post( 714 '/seasons/add', 715 { 716 leagueId: leagueId, 717 id: $("#seasonIdVal").val(), 718 title: $("#seasonTitleVal").val() 719 }, 720 function (response) { 721 $("#addSeasons").arcticmodal('close'); 722 723 if ($("#seasonIdVal").val() == 0) { 724 var $item = $("<option value=" + response.id + ">" + response.title + "</option>"); 725 $item.insertAfter($("#l_seasons select.seasonsList option:eq(0)")); 726 } else { 727 $("#l_seasons select.seasonsList option[value=" + response.id + "]").text(response.title); 728 } 729 730 $("#l_seasons select.seasonsList").trigger('refresh').trigger('change'); 731 732 $("#seasonIdVal").val(0); 733 $("#seasonTitleVal").val(""); 734 } 735 ); 736 }, 737 738 seasonEdit: function (empty) { 739 if (empty) { 740 $("#seasonIdVal").val(0); 741 $("#seasonTitleVal").val(''); 742 $("#seasonAddBtn").text('ÐобавиÑÑ'); 743 744 return; 745 } 746 747 var seasonId = $("#l_seasons select.seasonsList").val(), 748 seasonTitle = $("#l_seasons select.seasonsList option:selected").text().trim(); 749 750 $("#seasonIdVal").val(seasonId); 751 $("#seasonTitleVal").val(seasonTitle); 752 753 $("#seasonAddBtn").text('РедакÑиÑоваÑÑ'); 754 }, 755 756 seasonStepLoad: function (seasonId) { 757 return $.post( 758 '/seasons/loadSeasonSteps', 759 { 760 seasonId: seasonId 761 }, 762 function (response) { 763 $('#l_seasonsStep select.seasonsStepList').empty(); 764 765 $("<option value=0>---ÐÑбÑаÑÑ ÑÑап--</option>").appendTo($('#l_seasonsStep select.seasonsStepList')); 766 767 $.each(response.steps, function () { 768 $("<option value=" + this.id + ">" + this.title + "</option>").appendTo($('#l_seasonsStep select.seasonsStepList')); 769 }); 770 771 $('<option value="-1">---ÐобавиÑÑ ÑÑап---</option>').appendTo($('#l_seasonsStep select.seasonsStepList')); 772 773 $('#l_seasonsStep select.seasonsStepList').trigger('refresh').trigger('change'); 774 $('#gameResultsForm').empty(); 775 } 776 ); 777 }, 778 779 seasonStepEdit: function (empty) { 780 if (empty) { 781 $("#seasonStepIdVal").val(0); 782 $("#seasonStepTitleVal").val(''); 783 $("#seasonStepAddBtn").text('ÐобавиÑÑ'); 784 785 return; 786 } 787 788 var seasonStepId = $("#l_seasonsStep select.seasonsStepList").val(), 789 seasonStepTitle = $("#l_seasonsStep select.seasonsStepList option:selected").text().trim(); 790 791 $("#seasonStepIdVal").val(seasonStepId); 792 $("#seasonStepTitleVal").val(seasonStepTitle); 793 $("#seasonStepAddBtn").text('РедакÑиÑоваÑÑ'); 794 }, 795 796 seasonStepAdd: function (leagueId) { 797 var seasonId = $("#l_seasons select.seasonsList").val(); 798 if (!seasonId) { 799 return; 800 } 801 802 var title = $("#seasonStepTitleVal").val(); 803 804 $.post( 805 '/seasons/addStep', 806 { 807 seasonId: seasonId, 808 title: title, 809 leagueId: leagueId, 810 stepId: $("#seasonStepIdVal").val() 811 }, 812 function (response) { 813 $("#addSeasonsStep").arcticmodal('close'); 814 815 if ($("#seasonStepIdVal").val() == 0) { 816 var $item = $("<option value=" + response.id + ">" + response.title + "</option>"); 817 $item.insertAfter($("#l_seasonsStep select.seasonsStepList option:eq(0)")); 818 } else { 819 $("#l_seasonsStep select.seasonsStepList option[value=" + response.id + "]").text(response.title); 820 } 821 822 $("#l_seasonsStep select.seasonsStepList").trigger('refresh').trigger('change'); 823 824 $("#seasonIdVal").val(0); 825 $("#seasonTitleVal").val(""); 826 } 827 ); 828 }, 829 830 seasonFinish: function () { 831 return $.post( 832 '/seasons/finishStep', 833 { 834 stepId: $("#l_seasonsStep select.seasonsStepList").val(), 835 text: $("#l_text").val(), 836 url: $("#l_url").val(), 837 isFinish: $("#l_finished").is(':checked') 838 } 839 ); 840 }, 841 842 getSeason: function(title = '', leagueId) { 843 return $.post( 844 '/league/getSeason', 845 { 846 title: title, 847 leagueId: leagueId, 848 }, 849 function (response) { 850 console.log(response); 851 if ($("#LeagueSeasons_text").length > 0) { 852 $('.form_load').html(response.htmlContent); 853 $("#LeagueSeasons_text").redactor({ 854 lang: 'ru', 855 toolbar: true, 856 wym: true, 857 convertVideoLinks: true, 858 observeLinks: true, 859 tabSpaces: 1, 860 italicTag: 'i', 861 buttons: ['html', '|', 'bold', 'underline', 'italic', 'link'], 862 minHeight: 400 863 }); 864 } else { 865 $('.season_text').html(response.text); 866 } 867 } 868 ); 869 }, 870 871 saveSeason: function (leagueId) { 872 $.post("/league/editSeason?leagueId=" + leagueId, { 873 season: $("#seasonInfo").serialize() 874 }, function(response) { 875 $("html, body").animate({ scrollTop: 0 }, "fast"); 876 showSuccess('УÑпеÑно ÑÐ¾Ñ Ñанено.'); 877 878 if (response.status === 'create') { 879 $('.season_list').html(response.htmlContent); 880 lm.getSeason('', response.leagueId); 881 } 882 }); 883 }, 884 885 deleteSeason: function (leagueId) { 886 $.post("/league/deleteSeason?leagueId=" + leagueId, { 887 season: $("#seasonInfo").serialize() 888 }, function(response) { 889 $("html, body").animate({ scrollTop: 0 }, "fast"); 890 $('.season_list').html(response.htmlContent); 891 lm.getSeason('', response.leagueId); 892 showSuccess('УÑпеÑно Ñдалено.'); 893 }); 894 }, 895 896 deleteBanner: function (bannerId) { 897 $.post("/league/deleteBanner?bannerId=" + bannerId, { 898 season: $("#seasonInfo").serialize() 899 }, function(response) { 900 $("html, body").animate({ scrollTop: 0 }, "fast"); 901 $('.season_list').html(response.htmlContent); 902 lm.getSeason('', response.leagueId); 903 showSuccess('УÑпеÑно Ñдалено.'); 904 }); 905 }, 906 907 gameLoad: function (stepId) { 908 return $.post( 909 '/seasons/getStepGames', 910 { 911 stepId: stepId 912 }, 913 function (response) { 914 var g = $("#l_results select.games"); 915 916 $("#l_text").val(response.step.text); 917 $("#l_url").val(response.step.url); 918 if (parseInt(response.step.isFinished) == 1) { 919 $("#l_finished").attr('checked', 'checked'); 920 } else { 921 $("#l_finished").removeAttr('checked'); 922 } 923 $("#l_finished").trigger('refresh'); 924 925 g.empty(); 926 $('<option value="0">---ÐÑбÑаÑÑ Ð¸Ð³ÑÑ---</option>').appendTo(g); 927 $('<option value="-1">---ÐобавиÑÑ Ð¸Ð³ÑÑ---</option>').appendTo(g); 928 929 $.each(response.games, function () { 930 $('<option value="' + this.id + '">' + this.title + '</option>').appendTo(g); 931 }); 932 933 g.trigger('refresh'); 934 } 935 ); 936 }, 937 938 gameSelected: function (gameId, leagueId) { 939 return $.post( 940 '/seasons/getStepGamesAddingForm', 941 { 942 gameId: gameId, 943 leagueId: leagueId 944 }, 945 function (response) { 946 $("#gameResultsForm").html(response.htmlContent); 947 $(".select").styler(); 948 949 $("#LeagueGame_note").redactor({ 950 lang: 'ru', 951 toolbar: true, 952 wym: true, 953 convertVideoLinks: true, 954 observeLinks: true, 955 tabSpaces: 1, 956 italicTag: 'i', 957 buttons: ['html', '|', 'bold', 'underline', 'italic', 'link'], 958 minHeight: 200 959 }); 960 961 $(".dt").datepicker(); 962 963 $('.lgt').select2({ 964 'placeholder': 'ÐведиÑе название командÑ', 965 'width': '100%', 966 'multiple': true, 967 'maximumSelectionSize': 1, 968 'ajax': { 969 'url': '/autocomplete/teams', 'dataType': 'json', 'data': function (term, page) { 970 return {q: term, page_limit: 10, page: page, allowEmpty: true}; 971 }, 972 'results': function (data) { 973 return {results: data.teams}; 974 } 975 }, 976 'initSelection': function (element, callback) { 977 var results = [ 978 {id: element.data('selectedid'), text: element.data('selectedtext')} 979 ]; 980 console.log(results); 981 callback(results); 982 }, 983 formatResult: function (data) { 984 return autocomleteFormat(data) 985 }, 986 formatSelection: function (data) { 987 return autocomleteFormat(data) 988 } 989 }); 990 $('.lgt').select2('container').find('.select2-choices').sortable({ 991 containment: 'parent', 992 start: function () { 993 $('.lgt').select2('onSortStart'); 994 }, 995 update: function () { 996 $('.lgt').select2('onSortEnd'); 997 } 998 }); 999 } 1000 ) 1001 }, 1002 1003 gameAddResult: function () { 1004 $.post('/seasons/addGameResult', { 1005 leagueId: $('#leagueId').val(), 1006 fromData: $('#gameResultsForm').serialize(), 1007 stepId: $("#l_seasonsStep select.seasonsStepList").val(), 1008 gameId: $("#l_results select").val(), 1009 l_text: $("#l_text").val(), 1010 l_url: $("#l_url").val() 1011 }, function (response) { 1012 if (response.isNew) { 1013 var count = $(".games option").length - 2; 1014 $('<option value="' + response.gameId + '">ÐгÑа' + (count + 1) + '</option>') 1015 .insertAfter($(".games option:last")); 1016 1017 $(".games").val(response.gameId).trigger('refresh'); 1018 } 1019 1020 showSuccess('ÐÐ·Ð¼ÐµÐ½ÐµÐ½Ð¸Ñ ÑÐ¾Ñ ÑаненÑ'); 1021 }); 1022 }, 1023 1024 gameDelete: function (gameId) { 1025 $("#delete_game_result").arcticmodal(); 1026 1027 $('#delete_game_result .confirm').unbind('click').on('click', function (event) { 1028 event.preventDefault(); 1029 1030 $.post('/seasons/deleteResults', 1031 { 1032 gameId: gameId 1033 }, 1034 function (response) { 1035 if (response.result) { 1036 $("select.games").find("option[value=" + gameId + "]").remove(); 1037 $("select.games").val(0).trigger('refresh'); 1038 1039 $('#gameResultsForm').empty(); 1040 1041 $("#delete_game_result").arcticmodal('close'); 1042 } 1043 } 1044 ); 1045 }); 1046 }, 1047 1048 loadGameResults: function (id) { 1049 $.post('/seasons/loadGameResults', {id: id}, function (response) { 1050 $('#ratings').html(response.htmlContent); 1051 }) 1052 } 1053}; 1054 1055 1056; 1057/*** Script File: /public/js/front/entity/photo.js, Original size: 26,013, Compressed size: 26,013 ***/ 1058var photo = { 1059 1060 ORDER_BY_LIKES: 1, 1061 ORDER_BY_COMMENTS: 2, 1062 1063 FILTER_BY_MASTER: 1, 1064 FILTER_BY_USER: 2, 1065 1066 LOAD_URL: '/photo', 1067 USER_PHOTO_LOAD_URL: '/profile/photo', 1068 1069 famous: 0, 1070 isMaster: 1, 1071 term: '', 1072 orderType: 0, 1073 filterType: 0, 1074 limit: 20, 1075 offset: 0, 1076 filter: 0, 1077 albumId: null, 1078 1079 init: function () { 1080 $('.myPhotos').on('click', '.album_featured_img', function () { 1081 if ($(this).data('id')) { 1082 photo.showSinglePhoto($(this).data('id'), $(this).data('key')) 1083 } 1084 }); 1085 1086 $('.myPhotos').on('click', '.edit_link_photo', function (event) { 1087 event.preventDefault(); 1088 event.stopImmediatePropagation(); 1089 }); 1090 1091 if ($('#slider1_container').length > 0) { 1092 var options = { 1093 $AutoPlay: true, //[Optional] Whether to auto play, to enable slideshow, this option must be set to true, default value is false 1094 $AutoPlayInterval: 4000, //[Optional] Interval (in milliseconds) to go for next slide since the previous stopped if the slider is auto playing, default value is 3000 1095 $SlideDuration: 500, //[Optional] Specifies default duration (swipe) for slide in milliseconds, default value is 500 1096 $DragOrientation: 1, //[Optional] Orientation to drag slide, 0 no drag, 1 horizental, 2 vertical, 3 either, default value is 1 (Note that the $DragOrientation should be the same as $PlayOrientation when $DisplayPieces is greater than 1, or parking position is not 0) 1097 1098 $ThumbnailNavigatorOptions: { 1099 $Class: $JssorThumbnailNavigator$, //[Required] Class to create thumbnail navigator instance 1100 $ChanceToShow: 2, //[Required] 0 Never, 1 Mouse Over, 2 Always 1101 1102 $SpacingX: 0, //[Optional] Horizontal space between each thumbnail in pixel, default value is 0 1103 $SpacingY: 0, //[Optional] Vertical space between each thumbnail in pixel, default value is 0 1104 $DisplayPieces: 3, //[Optional] Number of pieces to display, default value is 1 1105 $ParkingPosition: 212, //[Optional] The offset position to park thumbnail, 1106 1107 $DirectionNavigatorOptions: { 1108 $Class: $JssorDirectionNavigator$, //[Requried] Class to create direction navigator instance 1109 $ChanceToShow: 0,
1109 //[Required] 0 Never, 1 Mouse Over, 2 Always 1110 $AutoCenter: 2, //[Optional] Auto center arrows in parent container, 0 No, 1 Horizontal, 2 Vertical, 3 Both, default value is 0 1111 $Steps: 1 //[Optional] Steps to go for each navigation request, default value is 1 1112 } 1113 } 1114 }; 1115 1116 var jssor_slider1 = new $JssorSlider$("slider1_container", options); 1117 } 1118 1119 photo.search(); 1120 1121 if ($('.user-photos').length > 0) { 1122 photo.scrollListening(); 1123 } 1124 }, 1125 1126 selectAlbum: function (albumId, title, selector) { 1127 if (!selector) { 1128 selector = '#albumId'; 1129 } 1130 1131 $(selector).val(albumId); 1132 $('.replace_to').hide(); 1133 $('.replace_to_album_link span').text(title); 1134 }, 1135 1136 createAlbum: function () { 1137 if (!$('.new_album_txt_filed').val().trim()) { 1138 return $('.new_album_txt_filed').focus(); 1139 } 1140 1141 var photoId = $('.photoIdHiddenField').val(); 1142 1143 $.post('/photo/createAlbum?photoId=' + photoId, { 1144 title: $('.new_album_txt_filed').val() 1145 }, function (response) { 1146 $('.new_album_txt_filed').val(''); 1147 1148 var str = '<li class="albums_list_item top_bord">'; 1149 str += '<a href="#" onclick="photo.selectAlbumToMove(' + response.id + '); return false;">' + response.title + '</a>'; 1150 str += '</li>'; 1151 1152 $('.albums_list').prepend(str); 1153 }); 1154 }, 1155 1156 createAlbumUser: function (self) { 1157 var el; 1158 if ($("#add_photo").length > 0) { 1159 el = $('.new_album_txt_filed', $("#add_photo")); 1160 } else { 1161 el = $('.new_album_txt_filed'); 1162 } 1163 1164 if (!el.val().trim()) { 1165 return el.focus(); 1166 } 1167 1168 var photoId = $('.photoIdHiddenField').val(); 1169 1170 $.post('/photo/createAlbum', { 1171 title: el.val() 1172 }, function (response) { 1173 el.val(''); 1174 1175 var title = "'" + response.title + "'"; 1176 var str = '<li class="albums_list_item top_bord">'; 1177 str += '<a href="#" onclick="photo.selectAlbum(' + response.id + ', ' + title + '); return false;">' + response.title + '</a>'; 1178 str += '</li>'; 1179 1180 $('.albums_list').prepend(str); 1181 }); 1182 }, 1183 1184 createAlbumLeague: function (self) { 1185 var el; 1186 if ($("#add_photo").length > 0) { 1187 el = $('.new_album_txt_filed', $("#add_photo")); 1188 } else { 1189 el = $('.new_album_txt_filed'); 1190 } 1191 1192 if (!el.val().trim()) { 1193 return el.focus(); 1194 } 1195 1196 var photoId = $('.photoIdHiddenField').val(); 1197 var leagueId = $('.leagueIdHiddenField').val(); 1198 1199 $.post('/photo/createAlbumLeague?leagueId=' + leagueId, { 1200 title: el.val() 1201 }, function (response) { 1202 el.val(''); 1203 1204 var title = "'" + response.title + "'"; 1205 var str = '<li class="albums_list_item top_bord">'; 1206 str += '<a href="#" onclick="photo.selectAlbum(' + response.id + ', ' + title + '); return false;">' + response.title + '</a>'; 1207 str += '</li>'; 1208 1209 $('.albums_list').prepend(str); 1210 }); 1211 }, 1212 1213 selectAlbumToMove: function (albumId) { 1214 var photoId = $('.photoIdHiddenField').val(); 1215 1216 $.post('/photo/movePhotoToAlbum?photoId=' + photoId, { 1217 albumId: albumId 1218 }, function () { 1219 $(".edit_dropdown").trigger('mouseleave');
1220 $('#photo' + photoId).remove(); 1221 }); 1222 }, 1223 1224 makePreview: function () { 1225 var photoId = $('.photoIdHiddenField').val(); 1226 1227 $.post('/photo/makePreview?photoId=' + photoId, {}, function () { 1228 $(".edit_dropdown").trigger('mouseleave'); 1229 }) 1230 }, 1231 1232 load: function (callback, url) { 1233 // If all data are loaded! 1234 if (photo.offset == -1) { 1235 return; 1236 } 1237 1238 if (!url) { 1239 url = photo.LOAD_URL; 1240 } 1241 1242 if (!callback) { 1243 photo.offset++; 1244 photo.limit = 20; 1245 } 1246 1247 var params = { 1248 offset: photo.offset, 1249 limit: photo.limit, 1250 isMaster: photo.isMaster, 1251 famous: photo.famous, 1252 term: photo.term, 1253 type: photo.filterType, 1254 order: photo.orderType, 1255 filter: photo.filter, 1256 'csrf-token': $('meta[name="csrf-token"]').attr('content') 1257 }; 1258 1259 $.ajax({
1260 url: url, 1261 type: 'POST', 1262 data: params, 1263 dataType: 'json', 1264 1265 error: function (jqXHR, textStatus, errorThrown) { 1266 1267 }, 1268 1269 beforeSend: function () { 1270 // TODO: show loading 1271 }, 1272 1273 success: function (response) { 1274 if (response.isEnd) { 1275 photo.stopLoading(); 1276 } 1277 else { 1278 $('.more_link').show(); 1279 } 1280 1281 if (callback) { 1282 callback(response); 1283 } 1284 else { 1285 $('#photoList .clearfix').append(response.htmlContent); 1286 } 1287 } 1288 1289 }); 1290 }, 1291 1292 stopLoading: function () { 1293 photo.offset = -1; 1294 $('.more_link').hide(); 1295 }, 1296 1297 popular: function (flag, master) { 1298 /*if (photo.famous == flag) { 1299 return; 1300 }*/ 1301 1302 photo.filter = 1; 1303 photo.famous = flag; 1304 photo.isMaster = master; 1305 photo.offset = 0; 1306 photo.limit = 20; 1307 1308 var el = $('#photoList .clearfix'); 1309 el.data('offset', 0); 1310 1311 photo.load(function (response) { 1312 var $gallery = $('#photoList .clearfix'); 1313 $gallery.html(response.htmlContent); 1314 $('#firstPhoto').html(response.first); 1315 }, photo.LOAD_URL); 1316 }, 1317 1318 /* new */ 1319 peoples: function(flag) { 1320 photo.filter = 1; 1321 photo.famous = flag; 1322 photo.isMaster = 1; 1323 photo.offset = 0; 1324 photo.limit = 20; 1325 1326 var el = $('#photoList .clearfix'); 1327 el.data('offset', 0); 1328 1329 photo.load(function (response) { 1330 var $gallery = $('#photoList .clearfix'); 1331 $gallery.html(response.htmlContent); 1332 $('#firstPhoto').html(response.first); 1333 }, photo.LOAD_URL); 1334 }, 1335 1336 filterByType: function (type, master = false) { 1337 photo.filterType = type; 1338 photo.orderType = 0; 1339 photo.offset = 0; 1340 photo.limit = 20; 1341 photo.filter = 1; 1342 if (master) 1343 photo.isMaster = master; 1344 1345 var el = $('#photoList .clearfix'); 1346 el.data('offset', 0); 1347 1348 photo.load(function (response) { 1349 var $gallery = $('#photoList .clearfix'); 1350 $gallery.html(response.htmlContent); 1351 $('#firstPhoto').html(response.first); 1352 }, photo.LOAD_URL); 1353 }, 1354 1355 orderByType: function (type) { 1356 if (photo.orderType == type) { 1357 return; 1358 } 1359 1360 photo.filter = 1; 1361 photo.filterType = 0; 1362 photo.orderType = type; 1363 photo.offset = 0; 1364 photo.limit = 20; 1365 1366 photo.load(function (response) { 1367 var $gallery = $('#photoList .clearfix'); 1368 $gallery.html(response.htmlContent); 1369 $('#firstPhoto').html(response.first); 1370 }, photo.LOAD_URL); 1371 }, 1372 1373 search: function () { 1374 var searchField = $('#photoSearch .search_field'), 1375 searchClose = $('#photoSearch .search_close'); 1376 1377 searchField.keyup(function (e) { 1378 1379 if (e.which == 13) { 1380 e.preventDefault(); 1381 } 1382 1383 photo.filter = $(this).val().trim() == '' ? 0 : 1; 1384 photo.offset = 0; 1385 photo.limit = 20; 1386 photo.term = $(this).val(); 1387 1388 photo.load(function (response) { 1389 var $gallery = $('#photoList .clearfix'); 1390 $gallery.html(response.htmlContent); 1391 }, photo.LOAD_URL); 1392 }); 1393 }, 1394 1395 scrollListening: function () { 1396 var loading = false; 1397 $(window).scroll(function () { 1398 var el = $('.user-photos'); 1399 1400 if ($(window).scrollTop() + $(window).height() >= $(document).height() - 1300) { 1401 if (loading == false && !el.data('allDone')) { 1402 loading = true; 1403 1404 if (!el.data('offset')) { 1405 el.data('offset', 1); 1406 } 1407 1408 $.post(photo.USER_PHOTO_LOAD_URL, { 1409 offset: el.data('offset'), 1410 limit: photo.limit, 1411 famous: photo.famous, 1412 /*isMater: photo.isMaster,*/ 1413 term: photo.term, 1414 type: photo.filterType, 1415 order: photo.orderType, 1416 filter: photo.filter 1417 }, function (response) { 1418 if (!$.trim(response.htmlContent)) { 1419 el.data('allDone', 1); 1420 loading = false; 1421 return; 1422 } 1423 1424 el.data('offset', el.data('offset') + 1); 1425 1426 $('.other_albums').append(response.htmlContent); 1427 loading = false; 1428 }) 1429 } 1430 } 1431 }); 1432 }, 1433 1434 showNextOf: function (photoId, index) { 1435 photo.showSinglePhoto(photoId, index, 'next'); 1436 }, 1437 showPrevOf: function (photoId, index) { 1438 photo.showSinglePhoto(photoId, index, 'prev'); 1439 }, 1440 1441 showSinglePhoto: function (photoId, index, direction) { 1442 $.post('/profile/photo/getSinglePhoto', { 1443 photoId: photoId, 1444 index: index, 1445 direction: direction 1446 }, function (response) { 1447 $('#lightbox').html(response.htmlContent); 1448 1449 identityPeople(photoId); 1450 $(".tooltip").tipsy({gravity: 'se'}); 1451 __aaa(); 1452 1453 $('#lightbox').arcticmodal(); 1454 }); 1455 1456 var __aaa = function () { 1457 var openModal = '#lightbox'; 1458 1459 $(openModal).find('.comment_form_txt_field') 1460 .keyup(function (event) { 1461 var self = this; 1462 1463 if (!$(this).val().trim()) { 1464 return; 1465 } 1466 1467 if (event.which == 13) { 1468 event.preventDefault(); 1469 $.post('/comments/commentSet', { 1470 comment: $(this).val().trim(), 1471 entityId: $(this).data('id'), 1472 ownerType: $(this).data('type'), 1473 getJsonData: 1 1474 }, function (response) { 1475 1476 var ob = $.extend({}, response.comment, response.user, {ownerId: photoId}); 1477 ob['ownerId'] = photoId; 1478 $('#newCommentSingleModal').tmpl(ob).appendTo($('.post_comments ul')); 1479 1480 $('.post_comments .commentCount').text(response.comment.count); 1481 $(self).val(''); 1482 1483 }); 1484 } 1485 }) 1486 .focus(function () { 1487 if ($(this).val() == 'ÐÑÑавиÑÑ ÐºÐ¾Ð¼Ð¼ÐµÐ½ÑаÑий') { 1488 $(this).val(''); 1489 } 1490 }) 1491 .blur(function () { 1492 if ($(this).val() == '') { 1493 $(this).val('ÐÑÑавиÑÑ ÐºÐ¾Ð¼Ð¼ÐµÐ½ÑаÑий'); 1494 } 1495 }); 1496 }; 1497 }, 1498 1499 restorePhoto: function (photoId) {
1500 $.post('/photo/restore?photoId=' + photoId, {}, function () { 1501 //$('#photo' + photoId).find('span.deleted_placeholder').remove(); 1502 $('.photo' + photoId).removeClass('thumb_deleted').find('span.deleted_placeholder').remove(); 1503 1504 }); 1505 }, 1506 1507 deletePhoto: function () { 1508 var photoId = $('.photoIdHiddenField').val(); 1509 1510 $.post('/photo/delete?photoId=' + photoId, {}, function (response) { 1511 if (response.result) { 1512 $('.photo' + photoId).remove(); 1513 $('#photo' + photoId).remove(); 1514 } else { 1515 $('.photo' + photoId).replaceWith(response.htmlContent); 1516 } 1517 1518 $(".edit_dropdown").hide(); 1519 }) 1520 }, 1521 1522 deletePhotoConfirmation: function () { 1523 $('#delete_modal').arcticmodal(); 1524 }, 1525 1526 loadAlbumToEdit: function (albumId) { 1527 $('#edit_popup2').html(''); 1528 $.post('/photo/loadAlbumToEdit', {albumId: albumId}, function (response) { 1529 $('#edit_popup2').html(response.htmlContent); 1530 $("#albumId").val(albumId); 1531 1532 $('.tooltip').tipsy({gravity: 'se'}); 1533 1534 ut_func(); 1535 1536 $(".title_edit").one("click", function () { 1537 var self = $(this); 1538 var currentTitleText = $(this).find('.title').text(); 1539 var editTitleTemplate = 1540 '<div class="edit_title_form">' + 1541 '<input type="text" id="changeAlbumTitle" class="txt_field border1" value="' + currentTitleText + '">' + 1542 '</div>'; 1543 1544 $(this).after(editTitleTemplate); 1545 1546 $('#changeAlbumTitle').keyup(function (e) { 1547 if (e.which != 13) { 1548 return; 1549 } 1550 1551 var val = $(this).val().trim(); 1552 if (!val) { 1553 return $(this).focus(); 1554 } 1555 1556 $.post('/photo/renameAlbum?albumId=' + albumId, { 1557 title: val 1558 }, function (r) { 1559 $('#changeAlbumTitle').parent().remove(); 1560 self.find('.title').text(val); 1561 1562 $('#album' + albumId).find('.gallery1_caption_link').text(val); 1563 }); 1564 }); 1565 }); 1566 1567 $('#changeDateCreate').keyup(function (e) { 1568 if (e.which != 13) { 1569 return; 1570 } 1571 console.log('ya tut'); 1572 1573 var val = $(this).val().trim(); 1574 if (!val) { 1575 return $(this).focus(); 1576 } 1577 1578 $.post('/photo/EditDate?albumId=' + albumId, { 1579 dateCreate: val 1580 }, function (r) { 1581 return true; 1582 }); 1583 }); 1584 }); 1585 }, 1586 1587 deletePhotoAlbum: function (albumId, title) { 1588 $('#delete_modal2').find('.title2').text(title); 1589 $('#delete_modal2').arcticmodal(); 1590 1591 $('#deleteAlbumConfirmBtn').unbind('click').on('click', function () { 1592 $.post('/photo/deleteAlbum?albumId=' + albumId, {}, function (r) { 1593 $('#album' + albumId).remove(); 1594 1595 $(".edit_dropdown").hide(); 1596 1597 $('#delete_modal2').arcticmodal('close'); 1598 $('#edit_popup2').arcticmodal('close'); 1599 }) 1600 }) 1601 }, 1602 1603 deletePhotoUser: function (id) { 1604 $("#userPhotoId").val(id); 1605 }, 1606 1607 confirmUserPhotoDelete: function () { 1608 var id = $("#userPhotoId"); 1609 if (!id) { 1610 return false; 1611 } 1612 1613 $.post('/profile/user/userPhotoDelete', {id: id}, function (response) { 1614 $("#userPhoto" + id).remove(); 1615 }); 1616 }, 1617 1618 removePhotoUserAttached: function (id, self) { 1619 $.post('/profile/photo/removePhotoUser', { 1620 id: id 1621 }, function (response) { 1622 if (response.result) { 1623 $(self).parent().remove(); 1624 1625 if ($(".ident_people_item").length == 0) { 1626 $("#identity_people_links").addClass('d_none'); 1627 } 1628 1629 } 1630 }); 1631 }, 1632 1633 acceptTag: function (id) { 1634 $.post('/profile/photo/acceptTag', {id: id}, function (response) { 1635 $(".ident_btns").remove(); 1636 }); 1637 }, 1638 1639 rejectTag: function (id) { 1640 $.post('/profile/photo/rejectTag', {id: id}, function (response) { 1641 $(".ident_btns").remove(); 1642 $("#pu" + id).remove(); 1643 }); 1644 1645 1646 if ($(".ident_people_item").length == 0) { 1647 $("#identity_people_links").addClass('d_none'); 1648 } 1649 }, 1650 1651 photoLoading: function () { 1652 var loading = false; 1653 var el = $('#photoList .clearfix'); 1654 1655 if (el.length == 0) { 1656 return false; 1657 } 1658 1659 $(window).scroll(function () { 1660 if ($(window).scrollTop() + $(window).height() >= $(document).height() - 550) { 1661 if (loading == false && !el.data('allDone')) { 1662 loading = true; 1663 1664 if (!el.data('offset')) { 1665 el.data('offset', 1); 1666 } 1667 1668 $.post(photo.LOAD_URL, { 1669 offset: el.data('offset'), 1670 famous: photo.famous, 1671 isMaster: photo.isMaster, 1672 term: photo.term, 1673 type: photo.filterType, 1674 order: photo.orderType, 1675 }, function (response) { 1676 if (!$.trim(response.htmlContent)) { 1677 el.data('allDone', 0); 1678 loading = false; 1679 return; 1680 } 1681 el.data('offset', el.data('offset') + 1); 1682 el.append(response.htmlContent); 1683 loading = false; 1684 el.data('allDone', 0); 1685 }) 1686 } 1687 } 1688 }); 1689 } 1690 }; 1691 1692 $(function () { 1693 photo.init(); 1694 1695 $(document).on('click', '#addPhotosToAlbum', function () { 1696 var photos = []; 1697 $('#photoUploader .edit_upload_images figure').each(function () { 1698 var title = $(this).find('.edit_caption_field').val(); 1699 var preview = $(this).find('.uploaded_photo_url').val(); 1700 1701 if (preview) { 1702 photos.push({ 1703 title: title != 'Ðаголовок...' ? title : '', 1704 preview: preview 1705 }); 1706 } 1707 }); 1708 1709 var leagueId = $('.leagueIdHiddenField').val(); 1710 if (!leagueId) { 1711 leagueId = 0; 1712 } 1713 1714 $.post('/profile/photo/addPhoto' , { 1715 albumId: $("#selectedAlbumId").val(), 1716 photos: photos, 1717 leagueId: leagueId 1718 }, function() { 1719 document.location.reload(); 1720 }); 1721 }); 1722 1723 $(document).on('click', '#uploadNewPhotosToAlbum', function () { 1724 $("#photoUploader").arcticmodal(); 1725 1726 jQuery('.myUploaderEditing').fileapi({ 1727 'url': '/profile/media/upload', 'data': {'csrf-token': $('meta[name="csrf-token"]').attr('content')}, 1728 'multiple': true, 1729 'autoUpload': true, 1730 'duplicate': true, 1731 'accpet': 'image/jpg, image/png, image/gif', 1732 'maxFiles': 40, 1733 'maxSize': 5 * 1024 * 1024, 1734 'debug': false, 1735 'onSelect': function (evt, data) { 1736 post.filesSelected(evt, data, '.myUploaderEditing'); 1737 }, 1738 1739 'onFileComplete': function (evt, uiEvt) { 1740 $("#progressBar").addClass("d_none"); 1741 $("#photoResponseTmpl1").tmpl(uiEvt.result).prependTo($('.edit_upload_images')); 1742 }, 1743 'onComplete': function() { 1744 $(".processBarImgs").hide(); 1745 }, 1746 'onProgress': function (evt, uiEvt) { 1747 var part = (uiEvt.loaded / uiEvt.total) * 100;
1748 $(".progress_timeline_inner:last").css("width", part + "%"); 1749 } 1750 }); 1751 }); 1752 }); 1753 1754 window.commentBox = function () { 1755 return '<div class="post_comments gray_bg1 font_12_1"></div>'; 1756 } 1757; 1758/*** Script File: /public/js/front/entity/video.js, Original size: 13,402, Compressed size: 7,524 ***/ 1759var video={LOAD_URL:'/video',LOAD_LIST_URL:'/video/getList',GET_EMBED_URL:'/video/getEmbedIframe',UPLOAD_URL:'/video/uploadVideo',CREATE_URL:'/video/create',URL_LOAD_FROM_PROFILE:'/profile/video/channel',TERM_MIN_LENGTH:3,offset:0,famous:0,type:0,order:0,limit:8,nomain:0,filter:0,term:null,uploadedVideo:[],init:function(){$('.hidden-users').hide();video.uploadHandler();video.search();$(".title_edit").unbind("click").one("click",function(){var self=$(this),currentTitleText=$(this).text(),editTitleTemplate='<div class="edit_title_form"><input type="text" class="txt_field border1" id="videoTitle" value="'+currentTitleText+'"></div>';$(this).after(editTitleTemplate);$("#videoTitle").keyup(function(e){if(!$(this).val().trim())return;if(e.which==13)$.post('/video/edit?videoId='+self.data("id"),{title:$("#videoTitle").val()},function(){self.text($("#videoTitle").val());$("#videoTitle").parent().remove()})})})},load:function(callback,url,additional){if(video.offset==-1)return;if(!url)url=video.LOAD_URL;if(!callback){video.offset++;video.limit=8};var params={offset:video.offset,limit:video.limit,famous:video.famous,term:video.term,type:video.type,order:video.order,nomain:video.nomain,filter:video.filter,'csrf-token':$('meta[name="csrf-token"]').attr('content')},requestParams=$.extend({},additional,params);$.ajax({url:url,type:'POST',data:requestParams,dataType:'json',error:function(jqXHR,textStatus,errorThrown){},beforeSend:function(){},success:function(response){if(response.isEnd){video.stopLoading()}else $('.more_link').removeClass('xhidden').removeClass('d_none').addClass('d_in-block');if(callback){callback(response)}else{$('#videoBlock .clearfix').append(response.htmlContent);v_moderation()}}})},stopLoading:function(){video.offset=-1;$('.more_link').removeClass('d_in-block').addClass('xhidden').addClass('d_none')},popularSmallBox:function(flag){video.type=1;video.popular(flag,6,{firstBig:0},1)},popular:function(flag,limit,additional,nomain){if(video.famous==flag)return;video.filter=1;video.famous=flag;video.offset=0;video.limit=limit?limit:8;video.nomain=nomain;video.load(function(response){var $gallery=$('#videoBlock .clearfix');$gallery.html(response.htmlContent)},video.LOAD_URL,additional)},filterType:function(type){video.filter=1;video.type=type;video.order=0;video.offset=0;video.limit=8;video.load(function(response){var $gallery=$('#videoBlock .clearfix');$gallery.html(response.htmlContent)},video.LOAD_URL)},filterOrder:function(type){if(type==video.order)return;video.filter=1;video.offset=0;video.limit=8;video.order=type;video.type=0;video.load(function(response){var $gallery=$('#videoBlock .clearfix');$gallery.html(response.htmlContent)},video.LOAD_URL)},search:function(){var searchField=$('#videoSearch .search_field');searchField.keyup(function(e){if(e.which==13)e.preventDefault();video.filter=1;video.offset=0;video.limit=20;video.term=$(this).val();var url=video.LOAD_URL;if($('#videoSearch').data('url'))url=$('#videoSearch').data('url');video.load(function(response){var $gallery=$('#videoBlock .clearfix');$gallery.html(response.htmlContent)},url,{id:$('#videoSearch').data('userid')})})},create:function(videoId){var $title=$('.video-title'),$descr=$('.video-descr'),params={id:videoId,video:{title:$title.val(),description:$descr.val()},videoFile:video.uploadedVideo};$.ajax({type:'POST',data:params,beforeSend:function(){},success:function(response){video.uploadedVideo=[]}})},remove:function(){$('#delete_modal').arcticmodal()},removeConfirmed:function(){$.post('/video/delete?videoId='+$('#videoId').val(),{},function(response){document.location.reload()})},removeConfirmedLeague:function(){$.post('/League/deleteVideo?videoId='+$('#videoId').val(),{},function(response){document.location.reload()})},removeVideoAlbumLeague:function(leagueId,delAlbum){$.post('/League/DeleteVideoAlbumLeague?leagueId='+leagueId+'&delAlbum='+delAlbum,{},function(response){document.location.href=response.redirectUrl})},selectVideo:function(videoId,videoTitle){$('#videoId').val(videoId);$('#videoTitle').val(videoTitle)},editVideo:function(){$('#edit_name input').val($('#videoTitle').val()).focus().keyup(function(event){if(event.which!=13)return false;if(!$('#videoTitle').val().trim())return;var val=$(this).val();$.post('/video/edit?videoId='+$('#videoId').val(),{title:val},function(){$('#video'+$('#videoId').val()).find('.gallery1_caption_link').text(val);$('#edit_name').arcticmodal('close');$('#videoTitle').val('')})})},editVideoLeague:function(){$('#edit_name input').val($('#videoTitle').val()).focus().keyup(function(event){if(event.which!=13)return false;if(!$('#videoTitle').val().trim())return;var val=$(this).val();$.post('/League/editLeague?videoId='+$('#videoId').val(),{title:val},function(){$('#video'+$('#videoId').val()).find('.gallery1_caption_link').text(val);$('#edit_name').arcticmodal('close');$('#videoTitle').val('')})})},uploadHandler:function(){var $fileSelector=$('#videoFile'),$uploadBtn=$('.uploadSelectedVideo'),file;$fileSelector.change(function(){if(this.files.length==0){$uploadBtn.hide()}else $uploadBtn.show();file=this.files[0]});$uploadBtn.click(function(){video.upload(file)})},toggleUsersBox:function(){$('.hidden-users').toggle()},showYoutubePlayer:function(context){$("#videoContainer")[0].src+="&autoplay=1";setTimeout(function(){$('#jp_poster_0').parent().find('iframe').show();$('#jp_poster_0').remove();$(".jp-pause.special").remove();$(context).parent().remove()},550)},requireVideoIframe:function(videoId,context,width,height){if($(context).parents('figure').find('iframe').length==0)$.post(video.GET_EMBED_URL,{videoId:videoId,width:width,height:height},function(response){$(context).parents('figure').prepend(response.iframeHtml);_showIframe()},'json');var _showIframe=function(){$(context).parent().hide();$(context).parents('figure').find('.video_post').hide();$(context).parents('figure').find('iframe').show()}},videoLoading:function(){var loading=false,el=$('#videoBlock .clearfix');if(el.length==0)return false;$(window).scroll(function(){if($(window).scrollTop()+$(window).height()>=$(document).height()-650)if(loading==false&&!el.data('allDone')){loading=true;if(!el.data('offset'))el.data('offset',1);$.post(video.LOAD_URL,{offset:el.data('offset'),famous:video.famous,term:video.term,filter:video.filter,type:video.type,order:video.order},function(response){if(!$.trim(response.htmlContent)){el.data('allDone',1);loading=false;return};el.data('offset',el.data('offset')+1);el.append(response.htmlContent);v_moderation();loading=false})}})}} 1760function v_moderation(){var dropdown=$(".edit_dropdown:first-child"),dropdownWidth=216,iconBorder=7;$("div[id^='edit_popup'], .moderate_video").find(".edit_link_photo").on("click",function(event){var clickItem=$(this),clickItemParentWidth=$(this).parent().width();dropdowPosition=$(this).parent().position(),clickItemParentIndent=+$(this).parent().css("margin-left").slice(0,-2);dropdown.fadeIn().css({visibility:"visible"});$(this).addClass("active");$(this).parents("div[id^='edit_popup'], .moderate_video").find(".edit_dropdown").css({top:dropdowPosition.top,left
1760:dropdowPosition.left+($(this).parent().width()-dropdownWidth)+clickItemParentIndent+iconBorder}).addClass("active")});dropdown.mouseleave(function(){$(this).fadeOut();$(this).parent().find(".active").removeClass("active");$(".replace_to").slideUp()})};$(function(){video.init();if($("#videoBlock").length>0);$(".jp-video-play-icon").on("click touchstart",function(event){video.showYoutubePlayer(this)})}) 1761; 1762/*** Script File: /public/js/front/entity/blog.js, Original size: 4,293, Compressed size: 2,170 ***/ 1763var blog={famous:0,term:'',limit:20,offset:0,owner:0,LOAD_URL:'/blog',LOAD_MY_URL:'/profile/blog',init:function(){blog.search()},load:function(callback,url){if(blog.offset==-1)return;if(!url)url=blog.LOAD_URL;if(!callback)blog.offset++;var params={offset:blog.offset,limit:blog.limit,famous:blog.famous,term:blog.term,owner:blog.owner,'csrf-token':$('meta[name="csrf-token"]').attr('content')};$.ajax({url:url,type:'POST',data:params,dataType:'json',error:function(jqXHR,textStatus,errorThrown){},beforeSend:function(){},success:function(response){if(response.isEnd){blog.stopLoading()}else $('.more_link').show();if(callback){callback(response)}else $('.clearfix.user_blogs').append(response.htmlContent);moderation()}})},stopLoading:function(){blog.offset=-1;$('.more_link').hide()},popular:function(flag,limit){if(blog.famous==flag)return;blog.famous=flag;blog.offset=0;blog.limit=limit?limit:6;blog.load(function(response){var $gallery=$('.clearfix.user_blogs');$gallery.html(response.htmlContent)},blog.LOAD_URL)},search:function(){var searchField=$('#blogSearch .search_field'),searchClose=$('#blogSearch .search_close');searchField.keyup(function(e){if(e.which==13)e.preventDefault();blog.offset=0;blog.limit=20;blog.term=$(this).val();blog.load(function(response){var $gallery=$('.clearfix.user_blogs');$gallery.html(response.htmlContent)},blog.LOAD_URL)});searchClose.on('click',function(e){searchField.val('').trigger('keyup')})},loadMyBlog:function(){blog.limit=5;blog.owner=1;blog.load()},removeBlog:function(){$.post('/blog/delete',{blogId:$("#blogId").val()},function(response){$("#blog"+$("#blogId").val()).remove()})},scrolling:function(){var loading=false,el=$('.user_blogs');if(el.length==0)return false;$(window).scroll(function(){if($(window).scrollTop()+$(window).height()>=$(document).height()-750)if(loading==false&&!el.data('allDone')){loading=true;if(!el.data('offset'))el.data('offset',1);$.post('/blog',{offset:el.data('offset')},function(response){if(!$.trim(response.htmlContent)){el.data('allDone',1);loading=false;return};el.data('offset',el.data('offset')+1);el.append(response.htmlContent);loading=false})}})}};$(function(){blog.init()}) 1764; 1765/*** Script File: /public/js/front/entity/news.js, Original size: 4,759, Compressed size: 2,332 ***/ 1766var news={LOAD_URL:'/news',offset:0,limit:20,region:null,term:'',init:function(){news.search()},load:function(callback,url){if(news.offset==-2)return;if(!url)url=news.LOAD_URL;if(!callback){news.offset++;news.limit=20};var params={offset:news.offset,limit:news.limit,term:news.term,region:news.region,'csrf-token':$('meta[name="csrf-token"]').attr('content')};$(".loading").remove();$("<div class='loading'></div>").appendTo($('#newsList'));$.ajax({url:url,type:'POST',data:params,dataType:'json',error:function(jqXHR,textStatus,errorThrown){},beforeSend:function(){},success:function(response){if(response.isEnd){news.stopLoading()}else $('.more_link').removeClass('xhidden');if(callback){callback(response)}else $('#newsList').append(response.htmlContent);$(".loading").remove()}})},stopLoading:function(){news.offset=-2;$('.more_link').addClass('xhidden')},search:function(){var searchField=$('#newsSearch .search_field'),typingTimer=null,doneTypingInterval=450;searchField.keyup(function(e){var root=$(this);if(typingTimer)clearTimeout(typingTimer);if($(this).val().trim()==''){__ii('')}else typingTimer=setTimeout(function(){__ii(root.val())},doneTypingInterval)});searchField.keydown(function(e){if(typingTimer)clearTimeout(typingTimer)}) 1767function __ii(val){if(news.term==val)return;news.offset=0;news.limit=20;news.term=val;news.load(function(response){$('#newsList').html(response.htmlContent);if(news.term==''){$('.news_box_top').removeClass('d_none')}else $('.news_box_top').addClass('d_none');var el=$('#newsList');el.data('allDone',0)},news.LOAD_URL)}},filterByRegion:function(){news.offset=-1;news.region=1;$('#newsList').empty();news.load()},all:function(){$('#newsList').empty();news.offset=-1;news.region=null;news.load()},scrolling:function(){var loading=false,el=$('#newsList');
1767if(el.length==0)return false;$(window).scroll(function(){if($(window).scrollTop()+$(window).height()>=$(document).height()-750)if(loading==false&&!el.data('allDone')){loading=true;if(!el.data('offset'))el.data('offset',1);$.post(news.LOAD_URL,{offset:el.data('offset'),famous:news.famous,region:news.region,term:news.term},function(response){if(!$.trim(response.htmlContent)){el.data('allDone',1);loading=false;return};el.data('offset',el.data('offset')+1);el.append(response.htmlContent);loading=false})}})}};$(function(){news.init()}) 1768; 1769/*** Script File: /public/js/front/entity/joke.js, Original size: 4,713, Compressed size: 2,241 ***/ 1770var joke={LOAD_URL:'/jokes',sliderContent:'',famous:0,limit:20,offset:0,term:'',init:function(){joke.search()},load:function(callback,url){if(joke.offset==-1)return;if(!url)url=joke.LOAD_URL;if(!callback){joke.offset++;joke.limit=20};var params={offset:joke.offset,limit:joke.limit,famous:joke.famous,term:joke.term,'csrf-token':$('meta[name="csrf-token"]').attr('content')};$.ajax({url:url,type:'POST',data:params,dataType:'json',error:function(jqXHR,textStatus,errorThrown){},beforeSend:function(){},success:function(response){if(response.isEnd){joke.stopLoading()}else $('.more_link').removeClass('xhidden');if(callback){callback(response)}else $('.humor_box').append(response.htmlContent);$("[id^='yashare']").each(function(){new Ya.share({element:this.id,elementStyle:{quickServices:['','vkontakte','facebook','twitter','odnoklassniki','moimir','gplus']},theme:'counter',l10n:'ru'})})}})},stopLoading:function(){joke.offset=-1;$('.more_link').addClass('xhidden')},popular:function(flag){if(joke.famous==flag)return;joke.famous=flag;joke.limit=20;joke.offset=0;joke.load(function(response){$('.humor_box').html(response.htmlContent);if($("#humor_slider").length)$('#humor_slider').cycle({fx:'scrollHorz',easing:'easeOutExpo',delay:-4e3,speed:'slow',timeout:0,next:'#humor_next',prev:'#humor_prev'})},joke.LOAD_URL)},search:function(context){var searchField=$('#jokesSearch .search_field'),searchClose=$('#jokesSearch .search_close');searchField.keyup(function(e){if(e.which==13)e.preventDefault();joke.offset=0;joke.limit=20;joke.term=$(this).val();joke.load(function(response){var $gallery=$('.humor_box');$gallery.html(response.htmlContent)},joke.LOAD_URL)})},scrolling:function(){var loading=false,el=$('.humor_box');if(el.length==0)return false;$(window).scroll(function(){if($(window).scrollTop()+$(window).height()>=$(document).height()-750)if(loading==false&&!el.data('allDone')){loading=true;if(!el.data('offset'))el.data('offset',1);$.post(joke.LOAD_URL,{offset:el.data('offset'),famous:joke.famous,term:joke.term},function(response){if(!$.trim(response.htmlContent)){el.data('allDone',1);loading=false;return};el.data('offset',el.data('offset')+1);el.append(response.htmlContent);loading=false})}})}};$(function(){joke.init()}) 1771; 1772/*** Script File: /public/js/front/entity/comment.js, Original size: 10,482, Compressed size: 7,111 ***/ 1773var comment={SET_COMMENT_URL:'/comments/commentSet',LOAD_URL:'/comments',SELECT_STICKER_URL:'/comments/selectStickers',SELECT_AVATAR_URL:'/comments/selectAvatar',init:function(){if($('.comment_section').length>0)comment.scrollListening()},add:function(ownerId,ownerType,self){if(!comment.validateNoAuthForm())return false;if(!$(self).parent().find('textarea').val()){$('.error_comment').text('РкомменÑаÑий?');return false};if($('.comment_tree').data('inProcess'))return false;$('.comment_tree').data('inProcess',1);$(self).parents('form').submit(function(e){e.preventDefault();return false});var textarea=$(self).parent().find('textarea');if(!textarea.val().trim()||textarea.val().trim()=='ТекÑÑ ÐºÐ¾Ð¼Ð¼ÐµÐ½ÑаÑиÑ...')return false;$.post(comment.SET_COMMENT_URL,{entityId:ownerId,ownerType:ownerType,comment:textarea.val().trim(),nickname:$('#nickname').val(),avatar:$('#avatar').val()},function(response){textarea.val('').trigger('blur');$('.comment_tree').append(response.htmlContent);$('.comment_tree').data('inProcess',0);$(".entityCommentsCount").text(response.count);$('#nickname, #avatar').val('');$('span.nick, span.avatar_name').empty();$('.error_com').empty()});return true},sendSticker:function(id){var stick=$('#stick-'+id).attr('src');if(!comment.validateNoAuthForm())return false;$.arcticmodal('close');
1773$.post(comment.SET_COMMENT_URL,{entityId:$('#entityIdValue').val(),ownerType:$('#ownerTypeValue').val(),comment:stick,nickname:$('#nickname').val(),avatar:$('#avatar').val()},function(response){$('.comment_tree').append(response.htmlContent);$('.comment_tree').data('inProcess',0);$(".entityCommentsCount").text(response.count);$('#nickname, #avatar').val('');$('span.nick, span.avatar_name, .error_com').empty();$('img.comment_author_img_answer').attr('src','/public/images/front/61x61_defaultprofileimg-man.png')});$('.stick_list').html('<div class="stick_loader"></div>')},subComment:function(commentId,self){$(self).closest('form').submit(function(e){e.preventDefault();return false});if(!comment.validateNoAuthForm())return false;var textarea=$(self).parent().find('textarea');if(!textarea.val().trim()||textarea.val().trim()=='ТекÑÑ ÐºÐ¾Ð¼Ð¼ÐµÐ½ÑаÑиÑ...')return false;$.post(comment.SET_COMMENT_URL,{parentId:commentId,comment:textarea.val().trim(),nickname:$('#nickname').val(),avatar:$('#avatar').val()},function(response){textarea.closest('form').slideToggle();textarea.val('').trigger('blur');$('.answer_comment_nick').val('');comment.resetForm();var $lastSubComment=$('.sub-'+commentId+':last');if($lastSubComment.length){$(response.htmlContent).insertAfter($lastSubComment)}else $(response.htmlContent).insertAfter('#comment_'+commentId)})},sendSubSticker:function(commentId,id){if(!comment.validateNoAuthForm())return false;var stick=$('#stick-'+id).attr('src');$('#stickers').arcticmodal('close');$.post(comment.SET_COMMENT_URL,{parentId:commentId,comment:stick,nickname:$('#nickname').val(),avatar:$('#avatar').val()},function(response){var $lastSubComment=$('.sub-'+commentId+':last');if($lastSubComment.length){$(response.htmlContent).insertAfter($lastSubComment)}else $(response.htmlContent).insertAfter('#comment_'+commentId)});comment.resetForm();$('.form_answer').fadeOut()},validateNoAuthForm:function(){if($('#auth').val()==0){var error=0;if(!$('#nickname').val()){$('.error_nick').text('УкажиÑе ник.');error=1};if(!$('#avatar').val()){$('.error_avatar').text('ÐÑбеÑиÑе аваÑаÑ');error=1};if(error){$('#stickers').arcticmodal('close');return false}};return true},resetForm:function(){$('.stick_list').html('<div class="stick_loader"></div>');$('img.comment_author_img_answer, .comment_author_img img').attr('src','/public/images/front/61x61_defaultprofileimg-man.png');$('.error_com, span.nick, span.avatar_name').empty();$('.nameAva').text('ÐÑбÑаÑÑ Ð°Ð²Ð°ÑаÑ');$('#nickname, #avatar').val('')},selectStickers:function(type,parentId){$('.stickers_modal .title2').text('ÐÑбÑаÑÑ ÑÑикеÑ');$('.stick_list').html('<div class="stick_loader"></div>');$.post(comment.SELECT_STICKER_URL,{type:type,parentId:parentId},function(response){$('.stick_list').html(response.html)})},selectAvatars:function(){$('.stickers_modal .title2').text('ÐÑбеÑиÑе аваÑаÑ');$('.stick_list').html('<div class="stick_loader"></div>');$.arcticmodal('close');$.post(comment.SELECT_AVATAR_URL,function(response){$('.stick_list').html(response.html)})},setAvatar:function(id){var ava=$('img.ava-'+id).attr('src'),name=$('img.ava-'+id).attr('alt');$('.anonim-comment .comment_author_img img, img.comment_author_img_answer').attr('src',ava);$('span.avatar_name, .nameAva').text(name);$('#avatar').val(ava);$.arcticmodal('close')},showForm:function(self){$(self).parents(".comments_list_item").find(".answer_comment_form").slideToggle();return false},scrollListening:function(){var loading=false;$(window).scroll(function(){var el=$('.comment_section');if($(window).scrollTop()+$(window).height()>=$(document).height()-550)if(loading==false&&!el.data('allDone')){loading=true;if(!el.data('offset'))el.data('offset',1);$.post(comment.LOAD_URL,{entityId:$("#entityIdValue").val(),ownerType:$("#ownerTypeValue").val(),offset:el.data('offset')},function(response){if(!$.trim(response.htmlContent)){el.data('allDone',1);loading=false;return};el.data('offset',el.data('offset')+1);el.find('.comment_tree').append(response.htmlContent);loading=false})}})},deleteComment:function(commentId,ownerId,ownerType,self){$.post('/comments/delete',{commentId:commentId,entityId:ownerId,ownerType:ownerType},function(response){$(self).parent().addClass('d_none');$(self).parents('.comment_text1').append(response.htmlContent);if(response.count)$(".entityCommentsCount").text(response.count)})},restoreComment:function(commentId,ownerId,ownerType,self){$.post('/comments/restore',{commentId:commentId,entityId:ownerId,ownerType:ownerType},function(response){$(self).parents('.comment_text1').find('.edit_delete_buttons').removeClass('d_none');$(self).parents('.comment_text1').find('.restoreCommentBlock').remove()})},showCommentEditing:function(commentId,self){$(self).parents('.comments_list_item').find('.comment_text1').addClass('d_none');$(self).parents('.comments_list_item').find('.commenteditingTA').removeClass('d_none');$(self).parents('.comments_list_item').find('textarea').focus()},editComment:function(commentId,ownerId,ownerType,self){if(!$(self).parents('.comments_list_item').find('textarea').val().trim())return false;$.post('/comments/commentSet',{commentId:commentId,entityId:ownerId,ownerType:ownerType,comment:$(self).parents('.comments_list_item').find('textarea').val().trim()},function(response){$(self).parents('.comments_list_item').find('.comment_text1').removeClass('d_none');$(self).parents('.comments_list_item').find('.commenteditingTA').addClass('d_none');$(self).parents('li').replaceWith(response.htmlContent)})},showAll:function(self,remontage){$(self).parent().find('span').html($(self).parent().find('textarea').val());$(self).remove();if(remontage)reMontage(true)}};$(function(){comment.init()}) 1774; 1775/*** Script File: /public/js/front/entity/team.js, Original size: 11,825, Compressed size: 6,038 ***/
1776var team={LOAD_URL:'/teams',CREATE_URL:'/teams/create',DELETE_URL:'/teams/delete',JOIN_URL:'/teams/joinToTeam',APPROVE_URL:'/teams/approveJoinRequest',REJECT_URL:'/teams/rejectJoinRequest',SUBSCRIBE_URL:'/teams/subscribe',UNSUBSCRIBE_URL:'/teams/unsubscribe',LOAD_URL_SEARCH_TEAMS:'',TERM_MIN_LENGTH:3,limit:12,term:null,offset:0,region:0,init:function(){team.search();team.searchTeam();team.adminSelector()},create:function(teamId){var $title=$('.team-title'),$shortName=$('.team-shortname'),params;params={title:$title.val(),shortName:$shortName.val(),id:teamId};$.post(team.CREATE_URL,params,function(response){if(response.redirectUrl)document.location.href=response.redirectUrl},'json')},remove:function(teamId){var params={teamId:teamId};$.post(team.CREATE_URL,params,function(response){},'json')},startSubscribersAutoload:function(teamId){var loading=false,el=$('.subscribers1');if(el.length==0)return false;$(window).scroll(function(){if($(window).scrollTop()+$(window).height()>=$(document).height()-50)if(loading==false&&!el.data('allDone')){loading=true;if(!el.data('offset'))el.data('offset',1);$.post('/teams/Subscribers?id='+teamId,{offset:el.data('offset')},function(response){if(!$.trim(response.htmlContent)){el.data('allDone',1);loading=false;return};el.data('offset',el.data('offset')+1);el.append(response.htmlContent);loading=false})}})},join:function(teamId,userId){var params={teamId:teamId,userId:userId};$.post(team.JOIN_URL,params,function(response){if(response.result==true);},'json')},approve:function(requestId){var params={requestId:requestId};$.post(team.APPROVE_URL,params,function(response){if(response.result==true)$('#request-'+requestId).fadeOut()},'jsos')},reject:function(requestId){var params={requestId:requestId};$.post(team.REJECT_URL,params,function(response){if(response.result==true)$('#request-'+requestId).fadeOut()},'json')},search:function(){var searchField=$('#teamSearch .search_field');searchField.keyup(function(e){if(e.which==13)e.preventDefault();team.offset=0;team.limit=12;team.term=$(this).val();team.load(function(response){var $gallery=$('#teamsBlock');$gallery.html(response.htmlContent)},team.LOAD_URL)})},searchTeam:function(){var searchField=$('#teamsSearch .search_field');searchField.keyup(function(e){if(e.which==13)e.preventDefault();team.term=$(this).val();var url=team.LOAD_URL_SEARCH_TEAMS;team.load(function(response){var $content=$('#journalList');$content.html(response.htmlContent)},url)})},filterByRegion:function(r){if(r==team.region)return;team.region=r;team.offset=0;team.load(function(response){var $gallery=$('#teamsBlock');$gallery.html(response.htmlContent)})},load:function(callback,url){if(team.offset==-1)return;if(!url)url=team.LOAD_URL;if(!callback){team.offset++;team.limit=12};var params={offset:team.offset,limit:team.limit,term:team.term,region:team.region,'csrf-token':$('meta[name="csrf-token"]').attr('content')};$.ajax({type:'POST',data:params,dataType:'json',error:function(jqXHR,textStatus,errorThrown){},beforeSend:function(){},success:function(response){if(response.isEnd){team.stopLoading()}else $('.more_link').removeClass('xhidden');if(callback){callback(response)}else $('#teamsBlock').append(response.htmlContent)}})},stopLoading:function(){team.offset=-1;$('.more_link').addClass('xhidden')},subscribe:function(teamId,self){var params={teamId:teamId},url=$(self).hasClass('unsubscribe')?team.UNSUBSCRIBE_URL:team.SUBSCRIBE_URL;$.post(url,params,function(response){if(!response.result)return;if($(self).hasClass('unsubscribe')){$(self).removeClass('unsubscribe').text('ÐÑблÑ')}else $(self).addClass('unsubscribe').text('РазлÑбиÑÑ')})},unsubscribe:function(subscriptionId){var params={subscription:subscriptionId};$.post(team.UNSUBSCRIBE_URL,params,function(response){$('#subscription-'+subscriptionId).fadeOut()},'json')},filterRating:function(leagueId){},teamPostsLoading:function(){var loading=false,el=$('.thread_box');if(el.length==0)return false;$(window).scroll(function(){if($(window).scrollTop()+$(window).height()>=$(document).height()-550)if(loading==false&&!el.data('allDone')){loading=true;if(!el.data('offset'))el.data('offset',1);$.post('/teams/getPosts',{offset:el.data('offset'),teamId:$('#wallO
1776wnerId').val()},function(response){if(!$.trim(response.htmlContent)){el.data('allDone',1);loading=false;return};el.data('offset',el.data('offset')+1);appendItems(response.htmlContent);loading=false})}})},adminSelector:function(){if($("#usersContainer").length>0){var c=$("#usersContainer select");c.unbind('change').on("change",function(){if($(this).val()==0)return;var self=this;c.each(function(){if(this==self)return;var sel=$('option:selected',$(this));if(sel.val()==1)$(this).val(0)});$(".select").trigger('refresh')})}},transmit:function(teamId){if(!$("#Teams_participates__").val())return;$.post('/teams/transmit',{teamId:teamId,newOwnerId:$("#Teams_participates__").val()},function(response){document.location.href="/teams/"+teamId})},userTeamsSearch:function(my){var searchField=$('#teamsSearch .search_field');searchField.keyup(function(e){if(e.which==13){e.preventDefault();e.stopImmediatePropagation()};team.offset=0;team.limit=12;team.term=$(this).val();team.load(function(response){var $gallery=$('.teams');$gallery.html(response.htmlContent)},team.LOAD_URL)})},deleteTeam:function(teamId){$.post(team.DELETE_URL,{teamId:teamId},function(response){document.location.href='/profile/user/teams/id/'+response.ownerId})},teamsLoading:function(){var loading=false,el=$('#teamsBlock');if(el.length==0)return false;$(window).scroll(function(){if($(window).scrollTop()+$(window).height()>=$(document).height()-550)if(loading==false&&!el.data('allDone')){loading=true;if(!el.data('offset'))el.data('offset',1);$.post(team.LOAD_URL,{offset:el.data('offset'),famous:team.famous,term:team.term},function(response){if(!$.trim(response.htmlContent)){el.data('allDone',1);loading=false;return};el.data('offset',el.data('offset')+1);el.append(response.htmlContent);loading=false})}})}};$(function(){team.init()}) 1777; 1778/*** Script File: /public/js/front/entity/post.js, Original size: 33,597, Compressed size: 20,839 ***/ 1779var post={URL_SHARE:'/profile/post/share',URL_POST_TEXT:'/profile/post/postText',URL_POST_VIDEO:'/profile/video/create',URL_POST_PHOTO:'/profile/photo/addPhoto',URL_POST_PHOTO_LEAGUE:'/League/addPhoto',URL_POST_LINK:'/profile/post/postLink',URL_SET_COMMENT:'/comments/commentSet',urlContent:null,isLoadingContent:false,singleImage:null,init:function(){post.commentFormInit();$('#link_share_input').keyup(function(){if(isUrl($(this).val())||isUrl("http://"+$(this).val()))post.loadUrlContent($(this).val())})},loadUrlContent:function(url,callback){if(post.isLoadingContent||post.urlContent)return;post.isLoadingContent=true;$(".share_link_after_load .loading").remove();$("<div></div>").addClass("loading").appendTo($(".share_link_after_load"));$.post('/profile/post/getUrlContent',{url:url},function(response){$(".share_link_after_load .loading").remove();if(response.result){$('#linkAfterLoad').tmpl(response).appendTo($('.share_link_after_load').empty());post.urlContent=response;reMontage()}else{$('.share_link_after_load').empty();reMontage()};post.isLoadingContent=false;if(callback)callback()})},share:function(postId,context){$.post(post.URL_SHARE,{postId:postId,'csrf-token':$('meta[name="csrf-token"]').attr('content')},function(response){$(context).text(response.sharedCount).toggleClass('active')},'json')},postText:function(){if(!$('.thread_posting.text .share_text').val().trim())return;$('.thread_posting.text textarea').focus();$.post(post.URL_POST_TEXT,{text:$('.thread_posting.text .share_text').val(),ownerId:$('#wallOwnerId').val(),ownerType:$('#wallOwnerType').val()},function(response){$('.thread_posting.text textarea').val('').blur();$(".close_thread_share:eq(0)").trigger('click');prependItems(response.postHtml);showSuccess('ÐоÑÑ Ð¾Ð¿Ñбликован')})},postMedia:function(self){if($(self).data('mediaType')=='video')post.postVideo($(self));if($(self).data('mediaType')=='photo')post.postPhoto($(self));if(!$(self).data('mediaType'))$(".close_thread_share:eq(0)").trigger('click');$(".myUploader").data("isSingle",0);$('.share_text').val('')},postPhoto:function(obj){if(obj.data('inProcess'))return;obj.data('inProcess',true);var photos=[];$('.edit_upload_images figure').each(function(){if($("#singlePhotoTitle").length>
17790){var title=$("#singlePhotoTitle").val()}else var title=$(this).find('.edit_caption_field').val().trim();var preview=$(this).find('.uploaded_photo_url').val().trim();if(preview)photos.push({title:title!='Ðаголовок...'?title:'',preview:preview})});$.post(post.URL_POST_PHOTO,{photos:photos,withPost:true,withMe:$('#withMe').is(':checked')?1:0,ownerId:$('#wallOwnerId').val(),ownerType:$('#wallOwnerType').val(),postText:$('#media_sharing_box textarea').val(),albumId:$('#albumId').val()},function(response){$('#media_sharing_box').hide();$('.myUploader').show();$('.edit_upload_images').empty();$(".close_thread_share:eq(0)").trigger('click');$('#mediaResponse').empty();$('.drag_share_box').removeClass('d_none');$('#albumId').val('');prependItems(response.postHtml);showSuccess('ÐоÑÑ Ð¾Ð¿Ñбликован');obj.data('inProcess',null)})},postVideo:function(obj){if(obj.data('inProcess'))return;obj.data('inProcess',true);$.post(post.URL_POST_VIDEO,{withPost:true,ownerId:$('#wallOwnerId').val(),ownerType:$('#wallOwnerType').val(),Video:{title:$('#videoTitle').val()!='Ðазвание Ñолика...'?$('#videoTitle').val():'',url:$('#videoUrl').val()},withMe:$('#withMe').is(':checked')?1:0,postText:$('#media_sharing_box textarea').val()},function(response){$('#mediaResponse').empty();$('.myUploader').show();$('.drag_share_box').removeClass('d_none');$(".close_thread_share:eq(0)").trigger('click');showSuccess('ÐоÑÑ Ð¾Ð¿Ñбликован');prependItems(response.postHtml);obj.data('inProcess',null)})},postLink:function(){if(post.isLoadingContent)return;var t=function(){$('.thread_posting.link textarea').focus();$.post(post.URL_POST_LINK,{url:$("#link_share_input").val().trim(),text:$('#linkText').val(),ownerId:$('#wallOwnerId').val(),ownerType:$('#wallOwnerType').val(),link:post.urlContent},function(response){$(".close_thread_share:eq(0)").trigger('click');prependItems(response.postHtml);$("#link_share_input").empty();showSuccess('ÐоÑÑ Ð¾Ð¿Ñбликован');$("#link_share_input").val('');post.urlContent=null})};if(!post.urlContent){post.loadUrlContent($("#link_share_input").val(),function(){t()})}else t()},closePosting:function(mode){$('#media_sharing_box').hide();$('.myUploader').show();$('.edit_upload_images').empty();$('#mediaResponse').empty();$('.drag_share_box').removeClass('d_none');$(".myUploader").data("isSingle",0);$(".share_link_after_load").empty();$("#link_share_input").val();post.isLoadingContent=false},removeSingleUploadedPhoto:function(){$('.edit_upload_images').empty();$('#mediaResponse').empty();$('.myUploader').show();$('.drag_share_box').removeClass('d_none');$(".myUploader").data("isSingle",0)},deleteLoadedContent:function(){$(".share_link_after_load").empty();post.isLoadingContent=false;$("#link_share_input").val()},videoUploadedDelete:function(){$('#mediaResponse').empty();$('.myUploader').show();$('.drag_share_box').removeClass('d_none')},videoUploaded:function(uiEvt){if(!uiEvt.result.result)return;$(".mediaType_video").tmpl(uiEvt.result).appendTo($("#mediaResponse").empty());$('.myUploader').addClass('d_none');var __iii=function(t){setTimeout(function(){$.post('/profile/video/getVideoAvatarIfReady',{videoId:uiEvt.result.videoId},function(response){if(!response.isReady){return __iii()}else{$('.upload_video .progress_bar_wrap').remove();$('.upload_video a').removeClass('d_none').addClass('d_block');$('<img />').attr('src',response.photo).width(420).height(236).appendTo($('.upload_video a'))}})},t*5e3)};if(!uiEvt.result.isReady){__iii(10)}else{$('.upload_video .progress_bar_wrap').remove();$('.upload_video a').removeClass('d_none').addClass('d_block');$('<img />').attr('src',uiEvt.result.photo).width(420).appendTo($('.upload_video a'))};$('.select').styler();reMontage()},showUploadedVideo:function(url,self,width){var iFrame=$('<iframe></iframe>').attr('src',url).attr('width',width?width:420).attr('height','auto').css("min-height",289);iFrame.appendTo($(self).parent().parent());$(self).parent().remove()},photoUploaded:function(uiEvt,el){if(!el)el=$(document);var isSingle=$(".myUploader",el).data("isSingle");if(!isSingle){$(".thread_posting",el).hide();$(".photo_editor",el).show()};if(isSingle)$('#photoSingleResponseTmpl').tmpl(uiEvt.result).appendTo($("#mediaResponse",el).empty());$("#photoResponseTmpl").tmpl(uiEvt.result).prependTo($('.edit_upload_images',el));$('.select').styler();ut_func();reMontage()},photoRemoveUploaded:function(self){$(self).parents('.uploaded_image_container, figure').fadeOut(function(){$(this).remove();$('.drag_share_box').removeClass('d_none');var filesCount=$(".myUploader").data("filesCount");filesCount--;if(!filesCount)filesCount=0;$(".myUploader").data("filesCount",filesCount)})}
1779,photoEditorReady:function(){$('.photo_editor').hide();$('#media_sharing_box').show();$('.myUploader').hide();var photos=[];$('.edit_upload_images figure:not(.processBarImgs)').each(function(index){if(!$(this).find('.uploaded_photo_url_small').val().trim())return;photos.push($(this).find('.uploaded_photo_url_small').val().trim())});$('.drag_share_box').addClass('d_none');$('#photoManyResponse').tmpl({photos:photos,count:photos.length}).appendTo($("#mediaResponse").empty());$('.select').styler();ut_func();gallery3();reMontage()},photoEditorReady1:function(){var photos=[];$('#edit_upload_images figure:not(.processBarImgs)').each(function(index){if(!$(this).find('.uploaded_photo_url').val().trim())return;photos.push($(this).find('.uploaded_photo_url').val().trim())});$("#slider2_container").remove();$('#photoManyResponse1').tmpl({photos:photos,count:photos.length}).prependTo($("#sliderBoxEditing").empty());$('.select').styler();ut_func();gallery3();$("#thread_modal .thread_share").show();$("#thread_modal .thread_posting").hide()},showEditor:function(){$('.photo_editor').show();$('#media_sharing_box').hide();$('.myUploader').show();reMontage()},showEditor1:function(){$("#thread_modal .thread_share").hide();$("#thread_modal .thread_posting").show();myUploader()},selectFile:function(self){$(self).find('.upload_file').trigger('click')},make:function(){msnry=new Masonry($container.get(0),{columnWidth:314,itemSelector:'.masonry_item',gutter:35})},commentFormInit:function(){$('.comment_form input[type="text"].comment_text_field').each(function(){var self=this;$(this).unbind('keyup').keyup(function(event){var s=$(this);if(event.which==13)$.post(post.URL_SET_COMMENT,{comment:$(this).val().trim(),entityId:$(this).data('id'),ownerType:$(this).data('type'),getJsonData:1},function(response){$(s).parents('.thread_item_footer').find('.comments_qty').removeClass('d_none');$(s).parents('.thread_item_footer').find('.comment_cnt').text(response.comment.count);$(s).parents('.thread_item_footer').find('.no-comment').remove();$(s).val('').parents('.th_coment_section').removeClass('d_none');var newComment=$('#postCommentTmpl').tmpl($.extend({},response.user,response.comment));newComment.insertBefore($(s).parents('.comment_tree .comment_form'));reMontage()})})})},singlePost:function(postId,self,changeUrl){$.post('/profile/post/getPost',{postId:postId},function(response){var url=document.URL;if(changeUrl&&!history.pushState)document.location.href=response.postUrl;var openModal='#thread_modal';$(openModal).html(response.htmlContent).arcticmodal({beforeClose:function(){window.history.pushState(null,null,url)}});$(openModal).find('.comment_form_txt_field').keyup(function(event){var self=this;if(event.which==13){event.preventDefault();$.post(post.URL_SET_COMMENT,{comment:$(this).val().trim(),entityId:$(this).data('id'),ownerType:$(this).data('type'),getJsonData:1},function(response){var ob=$.extend({},response.comment,response.user,{postId:$(self).data('id')});ob.postId=$(self).data('id');$('#newCommentSinglePost').tmpl(ob).appendTo($('.post_comments ul'));$('.post_comments .commentCount').text(response.comment.count);$(self).val('')})}}).focus(function(){if($(this).val()=='ÐÑÑавиÑÑ ÐºÐ¾Ð¼Ð¼ÐµÐ½ÑаÑий')$(this).val('')}).blur(function(){if($(this).val()=='')$(this).val('ÐÑÑавиÑÑ ÐºÐ¾Ð¼Ð¼ÐµÐ½ÑаÑий')});$(".tooltip").tipsy({gravity:'se'});if(changeUrl)window.history.pushState(null,null,response.postUrl)})},scrollListening:function(feed){var loading=false,el=$('.thread_box');if(el.length==0)return false;$(window).scroll(function(){if($(window).scrollTop()+$(window).height()>=$(document).height()-500){if($("#wallPosts").length>0&&$("#wallPosts").hasClass("d_none"))return;if(loading==false&&!el.data('allDone')){loading=true;if(!el.data('offset'))el.data('offset',1);var url=feed?'/feed':'/profile';$.post(url,{offset:el.data('offset'),id:$('#wallOwnerId').val()},function(response){if(!$.trim(response.htmlContent)){el.data('allDone',1);loading=false;return};el.data('offset',el.data('offset')+1);appendItems(response.htmlContent);loading=false})}}})},deletePost:function(postId){$.post('/profile/post/delete',{postId:postId},function(response){document.location.href=response.redirectUrl})},loadSinglePostComments:function(postId,self){$.post('/profile/post/loadPostComments',{postId:postId},function(response){$('.comments_list1').empty().append(response.htmlContent);$(self).remove()})},removeSinglePostComment:function(commentId,ownerId,ownerType,self){$.post('/comments/delete',{entityId:ownerId,ownerType:ownerType,commentId:commentId},function(response){$(self).parents('li').remove();$('.post_comments .commentCount').text(response.count)})},getPostEditingForm:function(postId){$.post('/profile/post/getPostEditingForm',{postId:postId},function(response){var openModal='#thread_modal';$('.tooltip').trigger('blur').trigger('mouseout');if(response.result){$(openModal).html(response.htmlContent);gallery3();ut_func()}})},editPostText:function(postId,self){$.post('/profile/post/editPostText',{postId:postId,text:$('.content-text textarea').val().trim()},function(response){$(self).siblings('.close-editing').trigger('click')})},editPostVideo:function(postId,self){$.post('/profile/post/editVideoPost',{postId:postId,text:$('.content-video textarea').val().trim(),title:$('.content-video .edit_caption_field1').val().trim()},function(response){$(self).siblings('.close-editing').trigger('click')})},editSinglePhoto:function(postId,albumId,self){$.post('/profile/post/editSinglePhotoPost',{postId:postId,albumId:$('#albumId_editing').val(),text:$('.content-photo textarea').val().trim(),title:$("#singlePhotoTitle1").val()=='Ðаголовок...'?'':$("#singlePhotoTitle1").val()},function(response){$(self).siblings('.close-editing').trigger('click');$('#albumId_editing').val('')})},editPostPhoto:function(postId,albumId,self){var photos=[];$('.edit_upload_images figure',$("#thread_modal")).each(function(){var title=$
1779(this).find('.edit_caption_field').val(),preview=$(this).find('.uploaded_photo_url').val(),photoId=$(this).find('.photoId').val();if(preview)photos.push({title:title!='Ðаголовок...'?title:'',preview:preview,id:photoId})});$.post('/profile/post/editPhotoPost',{photos:photos,postId:postId,albumId:$('#albumId').val(),text:$('.content-photo textarea').val().trim()},function(response){$(self).siblings('.close-editing').trigger('click');$('#albumId').val('')})},closePost:function(){var openModal='#thread_modal';$(openModal).arcticmodal('close')},filesSelected:function(evt,data,className){if(!className)className=".myUploader";data.files=post.prepare(data.files);if(data.files.length==0)return false;if(data.files.length>1||$(className).data("isSingle")==1){$(className).data("isSingle",0);var filesCount=$(className).data("filesCount");if(!filesCount)filesCount=0;filesCount+=data.files.length;$(className).data("filesCount",filesCount);if($(".processBarImgs").length>0){$(".processBarImgs").show()}else $("#photoResponseTmpl").tmpl({photo:0}).appendTo($(".edit_upload_images"));$(".thread_posting").hide();$(".photo_editor").show()}else{$(className).data("isSingle",1);$(className).data("filesCount",1);$("#progressBar").removeClass("d_none")};$(".drag_share_box").addClass("d_none");if($container)reMontage()},prepare:function(files){var returnData=[],b=false;$.each(files,function(index,file){if(b)return;if(file.type.match("video/*")){returnData=[];returnData.push(file);return returnData};if(file.type.match("image/*")&&file.size<=5*1024*1024)returnData.push(file)});return returnData},onlyWall:function(){$("#single_details").addClass('d_none');$(".gallery1").addClass("d_none")},onlyInfo:function(){$("#single_details").removeClass('d_none');$(".gallery1").removeClass("d_none")},shareContent:function(ownerId,ownerType,self){$.post('/profile/post/shareContent',{ownerId:ownerId,ownerType:ownerType},function(response){$(self).addClass('active').removeAttr('onclick');if($(self).hasClass('no-result'))return;$("<div id='contentShared'></div>").appendTo($("#content"));$("#contentShared").css({background:'#fff',"min-height":470,height:"auto",width:"auto","max-width":372,"padding-top":19}).append(response.htmlContent).arcticmodal({afterClose:function(){}});$("#contentShared .masonry_item").removeClass('masonry_item').removeClass('thread_item').removeAttr('data-model');$("#contentShared .thread_item_footer").remove();setTimeout(function(){$("#contentShared").arcticmodal('close');$("#contentShared").remove()},2e3)})}};prependItems=function(contant){var firstItem=$container.find("div.masonry_item.posting").first();$(contant).insertAfter(firstItem);reMontage(true);post.commentFormInit()};appendItems=function(contant){$container.append(contant);reMontage();setTimeout(function(){reMontage();t_click()},250);post.commentFormInit()};var $container=$('#thread_container'),msnry;$(function(){post.init()});$(window).load(function(){$("#show_all_actor_info").on("click",function(event){event.preventDefault();$(".about_actor_list_item:not(.excerpt)").slideToggle();setTimeout(function(){msnry.reloadItems();msnry.layout()},1e3)});if($container.length>0){msnry=new Masonry($container.get(0),{columnWidth:314,itemSelector:'.masonry_item',gutter:35});var currentParent=$(".thread_item.posting"),currentPosition=currentParent.index();$(".thread_share_text").on("click",function(event){$(".thread_share_links a").first().trigger('click')});$(".thread_share_links a").on("click",function(){var current=$(this).data("type");if(current){threadBigShow(current);var topIndent=$container.find(".thread_item.posting").height();$container.addClass("active").prev().css("padding-top",topIndent+35)};replace_posting($container,currentParent,currentPosition,true)});$('.share_text').on('helper/trigger',function(){$(this).on('click.open',function(event){event.stopImmediatePropagation()})});$(".remove_link").on("click",function(){$(this).parents(".thread_item").remove();msnry.reloadItems();msnry.layout()});$(".close_thread_share").on("click",function(){threadBigShow("thread_share_text_box");$(".thread_box").find(".thread_item").removeClass("big");replace_posting($container,currentParent,currentPosition,false);$container.addClass("active").prev().css("padding-top",0);$('.share_text').off('.open')})}}) 1780function replace_posting(container,currentElement,eq,action){if(action){container.prepend(currentElement)}else container.children().eq(eq+1).before(currentElement);msnry.reloadItems();msnry.layout();$('.share_text').trigger('helper/trigger')} 1781function reMontage(re){if(msnry){msnry.reloadItems();msnry.layout()};if(re)setTimeout(function(){msnry.reloadItems();msnry.layout()},1500)};var videoSaving=false 1782function addVideo(){if(videoSaving)return;if(!$("#videoUrl").val())return;videoSaving=true;
1782$.post("/profile/video/create",{ownerId:$("#wallOwnerId").val(),ownerType:$("#wallOwnerType").val(),Video:{title:$("#videoTitle1").length?$("#videoTitle1").val():$("#videoTitle").val(),url:$("#videoUrl").val(),description:$("#videoDescription").val()}},function(response){location.reload()})} 1783function addVideoLeague(leagueId,albumId){if(videoSaving)return;if(!$("#videoUrl").val())return;videoSaving=true;$.post("/League/addVideo",{ownerId:$("#wallOwnerId").val(),ownerType:$("#wallOwnerType").val(),Video:{title:$("#videoTitle1").length?$("#videoTitle1").val():$("#videoTitle").val(),url:$("#videoUrl").val(),description:$("#videoDescription").val(),leagueId:leagueId,albumId:albumId}},function(response){location.reload()})} 1784function myUploader(){if($('.myUploaderEditing').data('ini'))return;$('.myUploaderEditing').data('ini',1);jQuery('.myUploaderEditing').fileapi({url:'/profile/media/upload',data:{'csrf-token':$('meta[name="csrf-token"]').attr('content')},multiple:true,autoUpload:true,duplicate:true,accpet:'image/jpg, image/png, image/gif',maxFiles:40,maxSize:5*1024*1024,debug:false,onSelect:function(evt,data){post.filesSelected(evt,data,'.myUploaderEditing')},onFileComplete:function(evt,uiEvt){$("#progressBar").addClass("d_none");$("#shareButton").data("mediaType","photo");if(uiEvt.result.mediaType=="photo")post.photoUploaded(uiEvt,$('#thread_modal'))},onComplete:function(){$(".processBarImgs").hide()},onProgress:function(evt,uiEvt){if($(".myUploader").data("isSingle"))return;var part=(uiEvt.loaded/uiEvt.total)*100;
1784$(".uploaded_image_container1 .progress_timeline_inner:last").css("width",part+"%")}})} 1785function addPhoto(){if($('.edit_upload_images figure').length==0)return false;var photos=[];$('#add_photo .edit_upload_images figure').each(function(){var title=$(this).find('.edit_caption_field').val()?$(this).find('.edit_caption_field').val().trim():'',preview=$(this).find('.uploaded_photo_url').val()?$(this).find('.uploaded_photo_url').val().trim():'';if(preview)photos.push({title:title!='Ðаголовок...'?title:'',preview:preview})});$.post(post.URL_POST_PHOTO,{photos:photos,albumId:$('#albumId').val(),ownerId:$('#wallOwnerId').val(),ownerType:$('#wallOwnerType').val()},function(response){location.reload()})} 1786function isUrl(s){var regexp=/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;return regexp.test(s)} 1787function addPhotoLeague(leagueId){if($('.edit_upload_images figure').length==0)return false;var photos=[],leagueId=leagueId;$('#add_photo .edit_upload_images figure').each(function(){var title=$(this).find('.edit_caption_field').val()?$(this).find('.edit_caption_field').val().trim():'',preview=$(this).find('.uploaded_photo_url').val()?$(this).find('.uploaded_photo_url').val().trim():'';if(preview)photos.push({title:title!='Ðаголовок...'?title:'',preview:preview})});$.post(post.URL_POST_PHOTO_LEAGUE,{photos:photos,albumId:$('#albumId').val(),ownerId:$('#wallOwnerId').val(),ownerType:$('#wallOwnerType').val(),leagueId:leagueId},function(response){location.reload()})} 1788; 1789/*** Script File: /public/js/front/entity/event.js, Original size: 9,383, Compressed size: 5,598 ***/ 1790var kvnEvents={ACCEPT_URL:'/event/eventAccept',REJECT_URL:'/event/eventReject',DELETE_URL:'/event/eventReject',ADD_CASE_URL:'/event/addCase',DELETE_CASE_URL:'event/deleteCase',CASE_LIST_URL:'/event/caseList',LOAD_URL:'/event',leagueId:null,init:function(){if($("#eventsArchive").length>0)kvnEvents.archiveScrollLoading();kvnEvents.filterByLeague(0)},post:function(url,params,callback,dataType){var requestParams=$.extend({},params,{'csrf-token':$('meta[name="csrf-token"]').attr('content')});$.post(url,requestParams,callback,dataType)},accept:function(eventId,context){var $btn=$(context),requestUrl=kvnEvents.ACCEPT_URL;if($btn.hasClass('active'))requestUrl=kvnEvents.REJECT_URL;var params={eventId:eventId};kvnEvents.post(requestUrl,params,function(response){$('.event_go .event_people .black').text(response.acceptsCount);$btn.toggleClass('active')},'json')},remove:function(eventId){var params={eventId:eventId};$.post(kvnEvents.DELETE_URL,params,function(response){$('#event-'+eventId).fadeOut()},'json')},filterByLeague:function(leagueId){kvnEvents.post(kvnEvents.LOAD_URL,{leagueId:leagueId},function(response){$('#event_tables_all').html(response.htmlContent);if(!$("#event_nav li:eq(0)").hasClass('current'))$("#event_nav li:eq(0) a").trigger('click')},'json')},filterArchiveByLeague:function(leagueId){kvnEvents.leagueId=leagueId;var el=$("#eventsArchive");el.data('offset',0);$.post('/event/archive',{offset:el.data('offset'),leagueId:kvnEvents.leagueId},function(response){el.data('offset',el.data('offset')+1);el.html(response.htmlContent)})},deleteEvent:function(eventId){$.post('/event/delete',{eventId:eventId},function(){document.location.href='/event'})},archiveScrollLoading:function(){var loading=false,el=$("#eventsArchive");if(el.length==0)return false;$(window).scroll(function(){if($(window).scrollTop()+$(window).height()>=$(document).height()-50)if(loading==false&&!el.data('allDone')){loading=true;if(!el.data('offset'))el.data('offset',1);$.post('/event/archive',{offset:el.data('offset'),leagueId:kvnEvents.leagueId},function(response){if(!$.trim(response.htmlContent)){el.data('allDone',1);loading=false;return};el.data('offset',el.data('offset')+1);el.append(response.htmlContent);loading=false})}})}};$(function(){kvnEvents.init();$(document).on("click",".delete-event-cover",function(event){$("#eventPreview").val("");$(this).parent().find("img").remove();$(this).parent().find("br").remove();$(this).remove()})});window.autoCompleteFromYaMaps=function(request,response){};window.addressChanged=function(event){if(typeof ymaps=='undefined')return;window.myMap.setType('yandex#map');var addr=$('#Events_place').val();showOnTheMap(event)};window.showOnTheMap=function(addr){ymaps.geocode(addr,{results:1}).then(function(res,option){var firstGeoObject=res.geoObjects.get(0);myCollection.removeAll();firstGeoObject.events.add("dragend",function(event){var cooords=event.get('target').geometry.getCoordinates()});var _cityName=firstGeoObject.properties.get('metaDataProperty.GeocoderMetaData.AddressDetail
1790s.Country.AdministrativeArea.SubAdministrativeArea.Locality.LocalityName');myCollection.add(firstGeoObject);if(_cityName)$('#cityname').val(_cityName);var cooords=firstGeoObject.geometry.getCoordinates();myMap.setCenter(firstGeoObject.geometry.getCoordinates(),16).geoObjects.add(myCollection)},function(err){if(console);})};window.addSchedule=function(self){var $d=$(self).siblings('.dateField');if(!$d.find('input').val()){$d.addClass('invalid');return}else $d.removeClass('invalid');$.post("/event/getScheduleForm",{index:$('.schedule').length,forDate:$d.find('input').val()},function(response){$(response.htmlContent).insertBefore($(self));$('.team-selector.new').select2({placeholder:'ÐведиÑе название командÑ',width:'100%',multiple:true,maximumSelectionSize:1,ajax:{url:'/autocomplete/teams',dataType:'json',data:function(term,page){return{q:term,page_limit:10,page:page}},results:function(data){var results=[];$.each(data.teams,function(index,item){results.push({id:item.id,text:item.value,preview:item.preview})});return{results:results}}},initSelection:function(element,callback){var results={};callback(results)},formatResult:function(data){return autocomleteFormat(data)},formatSelection:function(data){return autocomleteFormat(data)}});$('.team-selector.new').removeClass('new');$(".radio, .select").styler()})};window.addDay=function(){$('#newSchedule').tmpl({}).appendTo($('#schedules'));$(".dt").datepicker({beforeShowDay:function(date){if(!$(this).hasClass("checkDate"))return[true,"","unavailable"];var dateStart=$("#dateStart").val(),dateEnd=$("#dateEnd").val(),check=date;if(dateStart){var d1=dateStart.split("."),from=new Date(d1[2],d1[1]-1,d1[0]);if(check<from)return[false,"","unavailable"]};if(dateEnd){var d2=dateEnd.split("."),to=new Date(d2[2],d2[1]-1,d2[0]);if(check>to)return[false,"","unavailable"]};return[true,"","unavailable"]}})} 1791function initYmap(addr){ymaps.ready(function init(){window.myCollection=new ymaps.GeoObjectCollection();var center=addr?addr:'ÐоÑква';ymaps.geocode(center,{results:1}).then(function(res){var firstGeoObject=res.geoObjects.get(0);window.myMap=new ymaps.Map("myMap",{center:firstGeoObject.geometry.getCoordinates(),zoom:10,behaviors:["default","scrollZoom"]});window.myMap.setType('yandex#map');myCollection.removeAll();myCollection.add(firstGeoObject);var cooords=firstGeoObject.geometry.getCoordinates();window.myMap.setCenter(firstGeoObject.geometry.getCoordinates(),16).geoObjects.add(myCollection)});$('#Events_place').change(function(){addressChanged($(this).val())})})} 1792; 1793/*** Script File: /public/js/front/entity/notifications.js, Original size: 1,560, Compressed size: 807 ***/ 1794var ntf={LOAD_URL:'/profile/notification',init:function(){if($('.notifications_list_item').length>0)ntf.scrollListening()},scrollListening:function(){var loading=false;$(window).scroll(function(){var el=$('.notifications_list_item');if($(window).scrollTop()+$(window).height()>=$(document).height()-50)if(loading==false&&!el.data('allDone')){loading=true;if(!el.data('offset'))el.data('offset',1);$.post(ntf.LOAD_URL,{lastDate:$('.notification_date').last().attr('datetime'),entityId:$("#entityIdValue").val(),ownerType:$("#ownerTypeValue").val(),offset:el.data('offset')},function(response){if(!$.trim(response.htmlContent)){el.data('allDone',1);loading=false;return};el.data('offset',el.data('offset')+1);$('.notifications_list').append(response.htmlContent);loading=false})}})}};$(function(){ntf.init()}) 1795; 1796/*** Script File: /public/js/front/entity/user.js, Original size: 19,899, Compressed size: 11,786 ***/ 1797var user={FRIEND_REQUEST_URL:'/user/addFriend',APPROVE_REQUEST_URL:'/profile/user/friendRequestAccept',CANCEL_REQUEST_URL:'/profile/user/friendRequestCancel',DELETE_FRIEND_URL:'/profile/user/friendDelete',SUBSCRIBE_TO_USER_URL:'/profile/user/subscribe',UNSUBSCRIBE_TO_USER_URL:'/profile/user/unsubscribe',REJECT_REQUEST_URL:null,TOGGLE_USER_VIDEO_URL:'/profile/video/toggleUserVideo',cropObject:null,cropCoverObject:null,init:function(){$(".access_item label, .access_item .radio").on('click',function(){var item=$(this).parents('.access_item');user.setPrivacy(item.data('resource'),item.data('access'))});$("#savePrivacySettings").on('click',function(){showSuccess("ÐÐ·Ð¼ÐµÐ½ÐµÐ½Ð¸Ñ ÑÐ¾Ñ ÑаненÑ")});$(document).on('click','#savePersonalInfo',function(){$.post('/profile/user/savePersonal',{dateOfBirth:$("#dateOfBirth").val(),cityId:$("#cityId").val()},function(data){if(data.result)showSuccess("ÐÐ·Ð¼ÐµÐ½ÐµÐ½Ð¸Ñ ÑÐ¾Ñ ÑаненÑ")})})},addFriend:function(userId,context){if($(context).hasClass('friends'))return user.deleteFriend(userId,context);var btn=$(context),params={userId:userId};$.post(user.FRIEND_REQUEST_URL,params,function(response){if(response.result)btn.remove()},'json')},clearCropData:function(){user.cropObject=null},deleteFriend:function(userId,self){$.post(user.DELETE_FRIEND_URL,{friendUserId:userId},function(response){var fCount=parseInt($('.friend-count').text().trim());$('.friend-count').text(--fCount);$(self).parents('.friend').remove();$(self).removeClass('friend').text("ÐобавиÑÑ Ð² дÑÑзÑÑ");if($(self).hasClass('.profile-add'))$(self).removeClass('friends').text('ÐобавиÑÑ Ð² дÑÑзÑÑ')})},sendRecoverEmail:function(){$.post('/user/sendRecoverEmail',{email:$('#recover_email').val()},function(response){$("fieldset").find('span').remove();if(response.result){$('fieldset').find('*:not(h2)').remove();$('fieldset').append('<span>Ðа ÐÐ°Ñ Ñл. адÑÐµÑ Ð¾ÑпÑавлено пиÑÑмо</span>')}else{var $span=$("<span></span>").text(response.message).css("color","#FD0303");$span.insertAfter($('fieldset h2'))}})},acceptFriendRequest:function(requestId){var params={requestId:requestId};$.post(user.APPROVE_REQUEST_URL,params,function(response){if(response.result)$('#friend-request-'+requestId).fadeOut(function(){$(this).remove();var inReqCount=parseInt($('.friend-in-requests').text().trim()),reqCount=parseInt($('.friend-requests').text().trim()),fCount=parseInt($('.friend-count').text().trim());if(inReqCount)$('.friend-in-requests').text(--inReqCount);if(reqCount)$('.friend-requests').text(--reqCount);if(fCount)$('.friend-count').text(++fCount)})},'json')},rejectFriendRequest:function(requestId){var params={requestId:requestId};$.post(user.REJECT_REQUEST_URL,params,function(response){if(response.result)$('#friend-request-'+requestId).fadeOut()},'json')},cancelFriendRequest:function(requestId,self){var params={requestId:requestId};$.post(user.CANCEL_REQUEST_URL,params,function(response){if(response.result){$('#friend-request-'+requestId).fadeOut(function(){$(this).remove();var inReqCount=parseInt($('.friend-out-requests').text().trim()),reqCount=parseInt($('.friend-requests').text().trim());if(inReqCount)$('.friend-out-requests').text(--inReqCount);if(reqCount)$('.friend-requests').text(--reqCount)}
1797);$(".friend_request_status").remove();$(self).remove()}})},addToFriend:function(userId,self){$.post('/user/addFriend',{userId:userId},function(){$(self).remove()})},toggleVideo:function(videoId,self){$.post(user.TOGGLE_USER_VIDEO_URL,{videoId:videoId},function(response){$(self).toggleClass('active')})},toggleSubscription:function(userId,self){var url=null,sCount=parseInt($('.subscribed-count').text().trim());if($(self).hasClass('unsubscribe')){url=user.UNSUBSCRIBE_TO_USER_URL;sCount--}else{url=user.SUBSCRIBE_TO_USER_URL;sCount++};$.post(url,{userId:userId},function(response){$('.subscribed-count').text(sCount)})},togglePlayerSubscription:function(userId,self){var url=user.SUBSCRIBE_TO_USER_URL;if($(self).hasClass('unsubscribe'))url=user.UNSUBSCRIBE_TO_USER_URL;$.post(url,{userId:userId},function(response){if($(self).hasClass('unsubscribe')){$(self).text('подпиÑаÑÑÑÑ').removeClass('unsubscribe')}else $(self).text('оÑпиÑаÑÑÑÑ').addClass('unsubscribe')})},showCropAvatar:function(img_url){$('#crop_modal .crop_modal_inner img').each(function(){$(this).attr('src',img_url)})},startCropCover:function(img_url){$('.main_crop_pic .jcrop-holder').remove();var obj=null,jcrop_api,bounds,boundx,boundy;$("<img />").load(function(){var center={x:($("#crop_cover_modal .crop_box").width()-799)/2,y:($("#crop_cover_modal .crop_box").height()-400)/2};$('#crop_cover_img').Jcrop({onChange:showPreview,onSelect:showPreview,aspectRatio:799/400,minSize:[400,400],maxSize:[799,400],setSelect:[0,0,799,400]},function(){jcrop_api=this;bounds=jcrop_api.getBounds();boundx=bounds[0];boundy=bounds[1]})}).attr('src',img_url) 1798function showPreview(coords){if(parseInt(coords.w)>0){var rx=799/coords.w,ry=400/coords.h;$('#crop_childrens img').css({width:Math.round(rx*799)+'px',height:Math.round(ry*400)+'px',marginLeft:'-'+Math.round(rx*coords.x)+'px',marginTop:'-'+Math.round(ry*coords.y)+'px'});user.cropCoverObject=obj=coords}};$('#saveCoverButton').unbind('click').on('click',function(event){event.preventDefault();if(!obj)return;user.saveCropCover(img_url,obj)})},startCrop:function(img_url){$('.main_crop_pic .jcrop-holder').remove();var obj=null,jcrop_api,bounds,boundx,boundy;$("<img />").load(function(){$('#crop_img').Jcrop({onChange:showPreview,onSelect:showPreview,aspectRatio:1,setSelect:[0,0,80,80]},function(){jcrop_api=this;bounds=jcrop_api.getBounds();boundx=bounds[0];boundy=bounds[1]})}).attr('src',img_url) 1799function showPreview(coords,width){if(parseInt(coords.w)>0)$('#crop_childrens img').each(function(){var rx=$(this).data("width")/coords.w,ry=$(this).data("width")/coords.h;$(this).css({width:Math.round(rx*boundx)+'px',height:Math.round(ry*boundy)+'px',marginLeft:'-'+Math.round(rx*coords.x)+'px',marginTop:'-'+Math.round(ry*coords.y)+'px'})});user.cropObject=obj=coords};$('#saveAvatarButton').unbind('click').on('click',function(){if(!obj)return;user.saveCropAvatar(img_url,obj)})},saveCropAvatar:function(img_url,obj){$.post('/profile/user/saveAvatar',$.extend({},obj,{img:img_url}),function(response){$('.profile_avatar_wrap img').attr('src',response.photo);try{$('#crop_modal').arcticmodal('close')}catch(err){}})},saveCropCover:function(img_url,obj){$.post('/profile/user/saveCover',$.extend({},obj,{img:img_url}),function(response){try{$('#crop_cover_modal').arcticmodal('close')}catch(err){};$('#profile_img_box').removeAttr('style').css('background','url('+response.photo+')')})},loadPhotos:function(){$.post('/profile/user/getPhotos',{},function(response){$.each(response.photos,function(index,value){var $a=$('<a>').addClass('album_featured_img').addClass('p_rel').addClass('f_left').addClass('d_block').addClass('popup_link').attr('onclick','user.selectAvatarFromImages("'+value.original+'")').attr('data-modal','#crop_modal').attr('data-original',value.original),$img=$('<img />').attr('src',value.img).attr('alt','');$img.appendTo($a);$a.appendTo($('.edit_photos'))})})},selectAvatarFromImages:function(img){if($('#edit_modal').is(':visible'))$('#edit_popup').arcticmodal('close');$('#crop_modal').arcticmodal();user.showCropAvatar(img);user.startCrop(img)},selectCoverFromImages:function(img){if($('#crop_cover_modal').is(':visible'))$('#crop_cover_modal').arcticmodal('close');$('#crop_cover_modal').arcticmodal();var newimg=$('<img />').attr('src',img).attr('id','crop_cover_img');$('#main_crop_pic_cover').empty();$('#main_crop_pic_cover').append(newimg);user.startCropCover(img)},deleteAvatar:function(){$.post('/profile/user/deleteAvatar',{},function(response){$('#delete_modal').arcticmodal('close')})},deleteCover:function(){$.post('/profile/user/deleteCover',{},function(response){$('#delete_cover_modal').arcticmodal('close')})},changeEmail:function(){$.post('/profile/user/changeAddress',{email:$('#newEmail').val()},function(response){if(response.result){alert('ÐÑовеÑÑÑе ÐÐ°Ñ Email')}else alert('ÐÑибка :)')})},changeName:function(){$.post('/profile/user/changeName',{name:$('#name').val(),surname:$('#surname').val(),familyName:$('#fam
1799ilyName').val(),isBlogger:$('#isBlogger').is(':checked')==true?1:0},function(response){if(response.result);})},changePassword:function(){$.post('/profile/user/changePassword',{oldPassword:$('#oldPassword').val(),newPassword:$('#newPassword').val(),newPasswordRepeat:$('#newPasswordRepeat').val()},function(response){if(response.result)alert('success')})},setPrivacy:function(resource,access){$.post('/profile/user/setPrivacy',{resource:resource,access:access})},write:function(userId,username){$("#send_to_id").val(userId);$("#send_to").val(username)},toggleChannelSubscription:function(userId,self){var url='/profile/video/subscribe';if($(self).hasClass('unsubscribe'))url='/profile/video/unsubscribe';$.post(url,{userId:userId},function(response){if($(self).hasClass('unsubscribe')){$(self).removeClass('unsubscribe').text('подпиÑаÑÑÑÑ')}else $(self).addClass('unsubscribe').text('оÑпиÑаÑÑÑÑ')})},searchTerm:'',friendsSearch:function(mode){if(!mode)mode=0;var url,index=$('ul.filter .filter_item.current');if(index==0)url='/profile/user/friends';if(index==1)url='/profile/user/subscribers';if(index==3)url='/profile/user/friendRequests';if(mode)$.post(url,{term:user.searchTerm,mode:mode},function(response){$(".friends_wrap").html(response.htmlContent)});$('.search_field').keyup(function(){user.searchTerm=$(this).val();$.post(url,{term:user.searchTerm,mode:mode},function(response){$(".friends_wrap").html(response.htmlContent)})})},playersPaging:function(flag){var loading=false,url='/user/members',el=$('.subscribers1');if(el.length==0)return false;if(flag)url=url+'?u';$(window).scroll(function(){if($(window).scrollTop()+$(window).height()>=$(document).height()-650)if(loading==false&&!el.data('allDone')){loading=true;if(!el.data('offset'))el.data('offset',1);$.post(url,{offset:el.data('offset'),q:$('.search_field').val()},function(response){if(!$.trim(response.htmlContent)){el.data('allDone',1);loading=false;return};el.data('offset',el.data('offset')+1);el.append(response.htmlContent);loading=false})}})},playersSearch:function(flag){var url='/user/members';if(flag)url=url+'?u';$('.search_field').keyup(function(){var el=$('.subscribers1');$.post(url,{offset:0,q:$('.search_field').val()},function(response){el.html(response.htmlContent);el.data('offset',el.data('offset')+1);el.data('allDone',0)})})},cropCoverFromBigPic:function(img){$("<img />").attr("src",img).attr("id","crop_cover_img").appendTo($("#main_crop_pic1").empty());$("#crop_cover_modal").arcticmodal({closeOnOverlayClick:false,closeOnEsc:false});user.startCropCover(img);$("#coverTmpl").val(img)},cropAvatarFromCover:function(img){user.cropObject=null;$("<img />").attr("src",img).attr("id","crop_img").appendTo($("#main_crop_pic").empty());$("<img />").attr("src",img).data("width",38).appendTo($(".crop_child_sm:eq(0)").empty());$("<img />").attr("src",img).data("width",62).appendTo($(".crop_child_mid:eq(0)").empty());$("<img />").attr("src",img).data("width",82).appendTo($(".crop_child_lg:eq(0)").empty());$("#crop_modal").arcticmodal({closeOnOverlayClick:false,closeOnEsc:false});user.startCrop(img)},saveCroppedCover:function(){$.post('/user/cropCover',{obj:user.cropCoverObject,img:$("#coverTmpl").val()},function(data){$("#crop_cover_modal").arcticmodal('close');user.cropCoverObject=null;user.cropAvatarFromCover(data);$("#cover").val(data);pu.callSuccess(function(){},{selector:'.avatar_container',width:450,height:231},data)})}};$(function(){user.init()}) 1800; 1801/*** Script File: /public/js/front/entity/group.js, Original size: 3,481, Compressed size: 1,852 ***/ 1802var group={famous:0,term:'',limit:20,offset:0,recommended:null,regional:null,LOAD_URL:'/group',LOAD_MY_URL:'/user/group',init:function(){group.search()},load:function(callback,url){if(group.offset==-1)return;if(!url)url=group.LOAD_URL;if(!callback)group.offset++;var params={offset:group.offset,limit:group.limit,famous:group.famous,term:group.term,owner:group.owner,'csrf-token':$('meta[name="csrf-token"]').attr('content')};if(group.recommended)params.recommended=1;if(group.regional)params.regional=1;$.ajax({url:url,type:'POST',data:params,dataType:'json',error:function(jqXHR,textStatus,errorThrown){},beforeSend:function(){},success:function(response){if(response.isEnd){group.stopLoading()}else $('.more_link').show();if(callback){callback(response)}else $('.clearfix.user_groups').append(response.htmlContent)}})},stopLoading:function(){group.offset=-1;$('.more_link').hide()},search:function(){var searchField=$('#groupSearch .search_field');searchField.keyup(function(e){group.offset=0;group.limit=20;group.term=$(this).val();var url=group.LOAD_URL;if($('#myProfileGroup').length>0)url=group.LOAD_MY_URL;group.load(function(response){var $gallery=$('.teams.p2');$gallery.html(response.htmlContent)},url)})},loadMygroup:function(){group.limit=5;group.owner=1;group.load()},subscribe:function(groupId,self){var url='/group/subscribe';if($(self).hasClass('unsubscribe'))url='/group/unsubscribe';$.post(url,{groupId:groupId},function(response){if(!response.result)return;if($(self).hasClass('unsubscribe')){$(self).removeClass('unsubscribe');$(self).text('подпиÑаÑÑÑÑ')}else{$(self).addClass('unsubscribe');$(self).text('оÑпиÑаÑÑÑÑ')}})},deleteGroup:function(groupId){$.post('/group/delete',{groupId:groupId},function(response){document.location.href='/profile/user/group/id/'+response.ownerId})}};$(function(){group.init()}) 1803; 1804/*** Script File: /public/js/front/entity/league.js, Original size: 10,656, Compressed size: 5,764 ***/
1805var league={CREATE_URL:'/league/create',DELETE_URL:'/league/create',JOIN_URL:'/league/joinToLeague',APPROVE_URL:'/league/approveJoinRequest',REJECT_URL:'/league/rejectJoinRequest',LOAD_URL:'/league',year:0,step:0,typeId:0,seasonId:null,init:function(){league.privacySearch();league.search();$('.sm_dropdown_link_year').on('click touchstart',function(){league.setFilterYear($(this).data('season'))})},create:function(){var $title=$('.league-title'),$cityId=$('.league-city-id'),params={League:{title:$title.val(),cityId:$cityId.val()}};$.post(league.CREATE_URL,params,function(response){if(response.id);},'json')},remove:function(leagueId){$.post(league.DELETE_URL,params,function(response){if(response.result)$('#league-'+leagueId).fadeOut()},'json')},join:function(leagueId,userId){var params={leagueId:leagueId,userId:userId};$.post(league.JOIN_URL,params,function(response){if(response.result);},'json')},approve:function(requestId){var params={requestId:requestId};$.post(league.lgaApproveUrl,params,function(response){if(response.result)$('#league-request-'+requestId).fadeOut(function(){$(this).remove()})},'json')},reject:function(requestId){var params={requestId:requestId};$.post(league.REJECT_URL,params,function(response){if(response.result)$('#league-request-'+requestId).fadeOut(function(){$(this).remove()})},'json')},loadHistory:function(){$.post('/league/loadHistory',{seasonId:league.seasonId,stepId:league.step},function(response){$('.single_team_links').html(response.htmlGames);$('#ratings').html(response.htmlResults);if(response.stepsList){$("#stepsList").remove();$("#leagueMenu").append(response.stepsList);$("#stepsList .sm_dd_link").on("click",function(event){event.preventDefault();$(this).toggleClass("show")});$("#stepsList .sm_dropdown").on("mouseleave",function(){$(".sm_dd_link").removeClass("show")});$("#stepsList ul li.selected > a").trigger("click")};$(".sm_dd_link").removeClass("show");vl_tab()})},setFilterYear:function(year){league.seasonId=year;league.step=null;league.loadHistory()},setFilterStep:function(step,self){league.step=step;league.loadHistory();$(self).parents('.filter1__item').find('.filter1_link').text($(self).text())},toLeague:function(leagueId,self){$.post('/league/toLeague?leagueId='+leagueId,{},function(response){if(response.result)$(self).replaceWith('ÐÑ Ð¾ÑпÑавили запÑÐ¾Ñ Ð½Ð° вÑÑÑпление в лигÑ')})},deleteFromLeague:function(leagueId){$.post('/league/deleteFromLeague?leagueId='+leagueId,{},function(response){if(response.result)document.location.reload()})},loadPrivacyLinks:function(leagueId,term){$.post('/league/loadLeaguePrivacy?leagueId='+leagueId,{term:term},function(response){$("#list").html(response)},'html')},loadPrivacyView:function(id,leagueId,term,scroll){$.post('/league/loadPrivacyPage?leagueId='+leagueId,{id:id,term:term},function(response){$('#privacy').addClass('d_none');$('#privacyView').html(response.htmlContent).removeClass('d_none');jQuery('#pc_field1').redactor({lang:'ru',toolbar:true,wym:true,convertVideoLinks:true,observeLinks:true,tabSpaces:1,italicTag:'i',buttons:['html','|','bold','italic','underline','link'],minHeight:200,maxHeight:400});jQuery('#pc_field2').redactor({lang:'ru',toolbar:true,wym:true,convertVideoLinks:true,observeLinks:true,tabSpaces:1,italicTag:'i',buttons:['html','|','bold','italic','underline','link'],minHeight:200,maxHeight:400});if(!term){if(!scroll)$("body").animate({scrollTop:0},'500','swing')}else{var offset=$(".found").first().offset();$("body").animate({scrollTop:offset.top-100},'500','swing')}})},closePrivacyView:function(){$('#privacy').removeClass('d_none');$('#privacyView').addClass('d_none')},addPrivacyContent:function(id,leagueId){var $f1=$('#pc_field1'),$f2=$('#pc_field2');$.post('/league/addPrivacyContent?leagueId='+leagueId,{f1:$f1.val(),f2:$f2.val(),id:id},function(response){if(response.result){league.loadPrivacyLinks(leagueId);showSuccess('УÑпеÑно ÑоÑ
Ñанено.')}})},privacySearch:function(){var typingTimer=null,doneTypingInterval=500;$("#searchBox .search_field").keyup(function(){if(typingTimer)clearTimeout(typingTimer);var root=this,___iii=function(){league.loadPrivacyLinks($(root).data("leagueid"),$(root).val());league.closePrivacyView()};if($(this).val()==''){___iii()}else if($(this).val().length>=3)typingTimer=setTimeout(___iii,doneTypingInterval)});$("#searchBox .search_field").keydown(function(){if(typingTimer)clearTimeout(typingTimer)})},deletePrivacyLink:function(id,leagueId){$.post('/league/deletePrivacyLink?leagueId='+leagueId,{id:id},function(response){if(response.result){league.loadPrivacyLinks(leagueId);league.closePrivacyView()}})},filterByTypeId:function(typeId){league.typeId=typeId;league.load();if(typeof window.history.pushState=='function'&&typeId)history.replaceState({},'','/league?type='+typeId);if(!typeId)history.replaceState({},'','/league')},search:function(){$('#leagueSearch').keyup(function(){league.load()})},load:function(){$.post(league.LOAD_URL,{typeId:league.typeId,q:$("#leagueSearch").val()},function(response){$('.leagues').html(response.htmlContent)})},scrollListening:function(){var loading=false,el=$('.leagues');if(el.length==0)return false;$(window).scroll(function(){if($(window).scrollTop()+$(window).height()>=$(document).height()-750)if(loading==false&&!el.data('allDone')){loading=true;if(!el.data('offset'))el.data('offset',1);$.post(league.LOAD_URL,{offset:el.data('offset'),typeId:league.typeId,q:$("#leagueSearch").val()},function(response){if(!$.trim(response.htmlContent)){el.data('allDone',1);loading=false;return};el.append(response.htmlContent);el.data('offset',el.data('offset')+1);loading=false;$('.ltype-15:gt(0), .ltype-2:gt(0), .ltype-1:gt(0)').remove()})}})}};
1805$(function(){league.init()}) 1806; 1807/*** Script File: /public/js/front/entity/music.js, Original size: 2,549, Compressed size: 1,425 ***/ 1808var music={LOAD_URL:'/music',PLAY_COUNTER_URL:'/music/playCounter',term:'',limit:50,listId:0,init:function(){music.search();music.initPlayList()},load:function(callback,url,p){if(!url)url=music.LOAD_URL;if(!callback)music.limit=50;var params={limit:music.limit,term:music.term,listId:music.listId,'csrf-token':$('meta[name="csrf-token"]').attr('content')};if(p)params=$.extend({},params,p);$.ajax({url:url,type:'POST',data:params,dataType:'json',error:function(jqXHR,textStatus,errorThrown){},beforeSend:function(){},success:function(response){if(callback){callback(response)}else $('.content_left__inner .audio_box').append(response.htmlContent)}})},search:function(){var searchField=$('#musicSearch .search_field'),searchClose=$('#musicSearch .search_close');searchField.keyup(function(e){if(e.which==13)e.preventDefault();music.term=$(this).val();music.listId=$('#musicSearch').data('id');music.load(function(response){var $gallery=$('.content_left__inner .audio_box');$gallery.html(response.htmlContent);audiojs.createAll()},music.LOAD_URL);$('.top-7-musics').addClass('xhidden')});searchClose.on('click',function(e){music.limit=7;searchField.val('').trigger('keyup');$('.top-7-musics').removeClass('xhidden')})},playCounter:function(musicId,context){$(context).removeAttr('onclick');music.load(function(response){log(response)},music.PLAY_COUNTER_URL,{id:musicId})},initPlayList:function(){}};$(function(){music.init()}) 1809; 1810/*** Script File: /public/js/front/entity/journal.js, Original size: 6,490, Compressed size: 3,629 ***/ 1811var journal={LOAD_URL:'journal',LOAD_LIST_URL:'journal/getList',LOAD_URL_LEAGUE:'League/AllJournal',LOAD_URL_DYNAMIC:'journals',famous:0,offset:0,limit:6,typeId:null,term:'',noFirst:0,urlPageDynamic:$("#urlDynamic").val(),init:function(){journal.search()},load:function(callback,url){if(journal.offset==-1)return;if(!url)url=journal.LOAD_URL;if(!callback){journal.offset++;journal.limit=6};var params={offset:journal.offset,limit:journal.limit,typeId:journal.typeId,famous:journal.famous,noFirst:journal.noFirst,term:journal.term,urlPageDynamic:journal.urlPageDynamic,'csrf-token':$('meta[name="csrf-token"]').attr('content')};$.ajax({url:url,type:'POST',data:params,dataType:'json',error:function(jqXHR,textStatus,errorThrown){},beforeSend:function(){},success:function(response){if(response.isEnd){journal.stopLoading()}else $('.more_link').removeClass('xhidden');if(callback){callback(response)}else $('#journalList').append(response.htmlContent)}})},stopLoading:function(){journal.offset=-1;$('.more_link').addClass('xhidden')},popularSmallList:function(flag){journal.popular(flag,6,1)},popular:function(flag,limit,nf){if(journal.famous==flag)return false;journal.offset=0;journal.limit=limit?limit:6;journal.famous=flag;journal.noFirst=nf?nf:0;journal.resetData();journal.load(function(response){var $journal=$('#journalList');$journal.html(response.htmlContent)},journal.LOAD_URL);return true},filter:function(typeId,limit){if(journal.typeId==typeId)return false;$('#journalList').data("offset",0);journal.offset=0;journal.limit=limit?limit:6;journal.typeId=typeId;journal.resetData();if($("#journalPage").length>0){var urlPath="http://"+window.location.hostname+"/journal?t="+typeId;window.history.pushState("","",urlPath)};journal.load(function(response){var $journal=$('.content_left__inner .journals_box.clearfix');$journal.html(response.htmlContent)},journal.LOAD_URL);return true},filterLeague:function(typeId,limit){if(journal.typeId==typeId)return false;$('#journalList').data("offset",0);var leagueId=$('#leagueId').val();journal.offset=0;journal.limit=limit?limit:6;journal.typeId=typeId;journal.resetData();if($("#journalPage").length>0){var urlPath="http://"+window.location.hostname+"/"+leagueId+"/journalLeague?t="+typeId;window.history.pushState("","",urlPath)};journal.load(function(response){var $journal=$('.content_left__inner .journals_box.clearfix');$journal.html(response.htmlContent)},"/"+journal.LOAD_URL_LEAGUE+"?url="+leagueId);return true},search:function(){var searchField=$('#journalSearch .search_field');searchField.keyup(function(e){if(e.which==13)e.preventDefault();journal.offset=0;journal.limit=20;journal.term=$(this).val();journal.resetData();var url=journal.LOAD_URL;journal.load(function(response){var $gallery=$('#journalList');$gallery.html(response.htmlContent)},url)})},journalLoading:function(){var loading=false,el=$('#journalList');
1811if(el.length==0)return false;$(window).scroll(function(){if($(window).scrollTop()+$(window).height()>=$(document).height()-550)if(loading==false&&!el.data('allDone')){loading=true;if(!el.data('offset'))el.data('offset',1);var url=journal.LOAD_URL;if(journal.urlPageDynamic)url='/'+journal.LOAD_URL_DYNAMIC+'/'+journal.urlPageDynamic;$.post(url,{offset:el.data('offset'),famous:journal.famous,term:journal.term,typeId:journal.typeId,urlPageDynamic:journal.urlPageDynamic},function(response){if(!$.trim(response.htmlContent)){el.data('allDone',1);loading=false;return};el.data('offset',el.data('offset')+1);el.append(response.htmlContent);loading=false})}})},resetData:function(){$('#journalList').data("allDone",0)}};$(function(){journal.init()}) 1812; 1813/*** Script File: /public/js/front/entity/fave.js, Original size: 1,637, Compressed size: 873 ***/ 1814var fave={LOAD:'/profile/user/fave',init:function(){if($('#userFave').length>0)fave.scrollListening()},scrollListening:function(){var loading=false;$(window).scroll(function(){if($(window).scrollTop()+$(window).height()>=$(document).height()-50){var current=$('#bookmarks_tabs .filter_item.current');if(!current.data('offset'))current.data('offset',1);if(loading==false&&!current.data('allDone')){loading=true;$.post(fave.LOAD,{type:current.data('type'),offset:current.data('offset')},function(response){if(!$.trim(response.htmlContent)){current.data('allDone',1);loading=false;return};current.data('offset',current.data('offset')+1);$('#bookmark_'+current.data("type")+' .clearfix').append(response.htmlContent);loading=false})}}})},updateIsotop:function(){setTimeout(function(){var $container=$('#thread_container');$container.isotope()},500)}};$(function(){fave.init()}) 1815;
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.