vendor: 26,029 bytes, line 1
1!function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(t.document)return e(t);throw new Error("jQuery requires a window with a document")}:e(t)}("undefined"!=typeof window?window:this,function(x,z){"use strict";var e=[],L=Object.getPrototypeOf,a=e.slice,F=e.flat?function(t){return e.flat.call(t)}:function(t){return e.concat.apply([],t)},W=e.push,_=e.indexOf,j={},R=j.toString,q=j.hasOwnProperty,$=q.toString,B=$.call(Object),g={},b=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},Y=function(t){return null!=t&&t===t.window},k=x.document,U={type:!0,src:!0,nonce:!0,noModule:!0};function V(t,e,i){var n,s,o=(i=i||k).createElement("script");if(o.text=t,e)for(n in U)(s=e[n]||e.getAttribute&&e.getAttribute(n))&&o.setAttribute(n,s);i.head.appendChild(o).parentNode.removeChild(o)}function K(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?j[R.call(t)]||"object":typeof t}var t="3.7.1",X=/HTML$/i,C=function(t,e){return new C.fn.init(t,e)};function Q(t){var e=!!t&&"length"in t&&t.length,i=K(t);return!b(t)&&!Y(t)&&("array"===i||0===e||"number"==typeof e&&0<e&&e-1 in t)}function y(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}C.fn=C.prototype={jquery:t,constructor:C,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){t=C.merge(this.constructor(),t);return t.prevObject=this,t},each:function(t){return C.each(this,t)},map:function(i){return this.pushStack(C.map(this,function(t,e){return i.call(t,e,t)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(C.grep(this,function(t,e){return(e+1)%2}))},odd:function(){return this.pushStack(C.grep(this,function(t,e){return e%2}))},eq:function(t){var e=this.length,t=+t+(t<0?e:0);return this.pushStack(0<=t&&t<e?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:W,sort:e.sort,splice:e.splice},C.extend=C.fn.extend=function(){var t,e,i,n,s,o=arguments[0]||{},r=1,a=arguments.length,l=!1;for("boolean"==typeof o&&(l=o,o=arguments[r]||{},r++),"object"==typeof o||b(o)||(o={}),r===a&&(o=this,r--);r<a;r++)if(null!=(t=arguments[r]))for(e in t)i=t[e],"__proto__"!==e&&o!==i&&(l&&i&&(C.isPlainObject(i)||(n=Array.isArray(i)))?(s=o[e],s=n&&!Array.isArray(s)?[]:n||C.isPlainObject(s)?s:{},n=!1,o[e]=C.extend(l,s,i)):void 0!==i&&(o[e]=i));return o},C.extend({expando:"jQuery"+(t+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){return!(!t||"[object Object]"!==R.call(t)||(t=L(t))&&("function"!=typeof(t=q.call(t,"constructor")&&t.constructor)||$.call(t)!==B))},isEmptyObject:function(t){for(var e in t)return!1;return!0},globalEval:function(t,e,i){V(t,{nonce:e&&e.nonce},i)},each:function(t,e){var i,n=0;if(Q(t))for(i=t.length;n<i&&!1!==e.call(t[n],n,t[n]);n++);else for(n in t)if(!1===e.call(t[n],n,t[n]))break;return t},text:function(t){var e,i="",n=0,s=t.nodeType;if(!s)for(;e=t[n++];)i+=C.text(e);return 1===s||11===s?t.textContent:9===s?t.documentElement.textContent:3===s||4===s?t.nodeValue:i},makeArray:function(t,e){e=e||[];return null!=t&&(Q(Object(t))?C.merge(e,"string"==typeof t?[t]:t):W.call(e,t)),e},inArray:function(t,e,i){return null==e?-1:_.call(e,t,i)},isXMLDoc:function(t){var e=t&&t.namespaceURI,t=t&&(t.ownerDocument||t).documentElement;return!X.test(e||t&&t.nodeName||"HTML")},merge:function(t,e){for(var i=+e.length,n=0,s=t.length;n<i;n++)t[s++]=e[n];return t.length=s,t},grep:function(t,e,i){for(var n=[],s=0,o=t.length,r=!i;s<o;s++)!e(t[s],s)!=r&&n.push(t[s]);return n},map:function(t,e,i){var n,s,o=0,r=[];if(Q(t))for(n=t.length;o<n;o++)null!=(s=e(t[o],o,i))&&r.push(s);else for(o in t)null!=(s=e(t[o],o,i))&&r.push(s);return F(r)},guid:1,support:g}),"function"==typeof Symbol&&(C.fn[Symbol.iterator]=e[Symbol.iterator]),C.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){j["[object "+e+"]"]=e.toLowerCase()});var G=e.pop,J=e.sort,Z=e.splice,i="[\\x20\\t\\r\\n\\f]",tt=new RegExp("^"+i+"+|((?:^|[^\\\\])(?:\\\\.)*)"+i+"+$","g"),et=(C.contains=function(t,e){e=e&&e.parentNode;return t===e||!(!e||1!==e.nodeType||!(t.contains?t.contains(e):t.compareDocumentPosition&&16&t.compareDocumentPosition(e)))},/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g);function it(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}C.escapeSelector=function(t){return(t+"").replace(et,it)};var n,w,nt,st,ot,D,s,T,d,rt,o=k,at=W,S=at,I=C.expando,P=0,lt=0,ht=It(),ct=It(),ut=It(),dt=It(),pt=function(t,e){return t===e&&(ot=!0),0},ft="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",t="(?:\\\\[\\da-fA-F]{1,6}"+i+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",r="\\["+i+"*("+t+")(?:"+i+"*([*^$|!~]?=)"+i+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+t+"))|)"+i+"*\\]",l=":("+t+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+r+")*)|.*)\\)|)",gt=new RegExp(i+"+","g"),mt=new RegExp("^"+i+"*,"+i+"*"),vt=new RegExp("^"+i+"*([>+~]|"+i+")"+i+"*"),_t=new RegExp(i+"|>"),bt=new RegExp(l),yt=new RegExp("^"+t+"$"),wt={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+r),PSEUDO:new RegExp("^"+l),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+i+"*(even|odd|(([+-]|)(\\d*)n|)"+i+"*(?:([+-]|)"+i+"*(\\d+)|))"+i+"*\\)|)","i"),bool:new RegExp("^(?:"+ft+")$","i"),needsContext:new RegExp("^"+i+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+i+"*((?:-\\d)?\\d*)"+i+"*\\)|)(?=[^-]|$)","i")},xt=/^(?:input|select|textarea|button)$/i,kt=/^h\d$/i,Ct=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Dt=/[+~]/,u=new RegExp("\\\\[\\da-fA-F]{1,6}"+i+"?|\\\\([^\\r\\n\\f])","g"),p=function(t,e){t="0x"+t.slice(1)-65536;return e||(t<0?String.fromCharCode(65536+t):String.fromCharCode(t>>10|55296,1023&t|56320))},Tt=function(){Et()},St=Lt(function(t){return!0===t.disabled&&y(t,"fieldset")},{dir:"parentNode",next:"legend"});try{S.apply(e=a.call(o.childNodes),o.childNodes),e[o.childNodes.length].nodeType}catch(n){S={apply:function(t,e){at.apply(t,a.call(e))},call:function(t){at.apply(t,a.call(arguments,1))}}}function M(t,e,i,n){var s,o,r,a,l,h,c=e&&e.ownerDocument,u=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==u&&9!==u&&11!==u)return i;if(!n&&(Et(e),e=e||D,T)){if(11!==u&&(a=Ct.exec(t)))if(s=a[1]){if(9===u){if(!(h=e.getElementById(s)))return i;if(h.id===s)return S.call(i,h),i}else if(c&&(h=c.getElementById(s))&&M.contains(e,h)&&h.id===s)return S.call(i,h),i}else{if(a[2])return S.apply(i,e.getElementsByTagName(t)),i;if((s=a[3])&&e.getElementsByClassName)return S.apply(i,e.getElementsByClassName(s)),i}if(!(dt[t+" "]||d&&d.test(t))){if(h=t,c=e,1===u&&(_t.test(t)||vt.test(t))){for((c=Dt.test(t)&&Nt(e.parentNode)||e)==e&&g.scope||((r=e.getAttribute("id"))?r=C.escapeSelector(r):e.setAttribute("id",r=I)),o=(l=Ot(t)).length;o--;)l[o]=(r?"#"+r:":scope")+" "+zt(l[o]);h=l.join(",")}try{return S.apply(i,c.querySelectorAll(h)),i}catch(e){dt(t,!0)}finally{r===I&&e.removeAttribute("id")}}}return qt(t.replace(tt,"$1"),e,i,n)}function It(){var i=[];return function n(t,e){return i.push(t+" ")>w.cacheLength&&delete n[i.shift()],n[t+" "]=e}}function A(t){return t[I]=!0,t}function Pt(t){var e=D.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e)}}function Mt(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&St(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function At(r){return A(function(o){return o=+o,A(function(t,e){for(var i,n=r([],t.length,o),s=n.length;s--;)t[i=n[s]]&&(t[i]=!(e[i]=t[i]))})})}function Nt(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function Et(t){var e=t?t.ownerDocument||t:o;return e!=D&&9===e.nodeType&&e.documentElement&&(s=(D=e).documentElement,T=!C.isXMLDoc(D),rt=s.matches||s.webkitMatchesSelector||s.msMatchesSelector,s.msMatchesSelector&&o!=D&&(e=D.defaultView)&&e.top!==e&&e.addEventListener("unload",Tt),g.getById=Pt(function(t){return s.appendChild(t).id=C.expando,!D.getElementsByName||!D.getElementsByName(C.expando).length}),g.disconnectedMatch=Pt(function(t){return rt.call(t,"*")}),g.scope=Pt(function(){return D.querySelectorAll(":scope")}),g.cssHas=Pt(function(){try{return D.querySelector(":has(*,:jqfake)"),0}catch(t){return 1}}),g.getById?(w.filter.ID=function(t){var e=t.replace(u,p);return function(t){return t.getAttribute("id")===e}},w.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&T)return(t=e.getElementById(t))?[t]:[]}):(w.filter.ID=function(t){var e=t.replace(u,p);return function(t){t="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return t&&t.value===e}},w.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&T){var i,n,s,o=e.getElementById(t);if(o){if((i=o.getAttributeNode("id"))&&i.value===t)return[o];for(s=e.getElementsByName(t),n=0;o=s[n++];)if((i=o.getAttributeNode("id"))&&i.value===t)return[o]}return[]}}),w.find.TAG=function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},w.find.CLASS=function(t,e){if("undefined"!=typeof e.getElementsByClassName&&T)return e.getElementsByClassName(t)},d=[],Pt(function(t){var e;s.appendChild(t).innerHTML="<a id='"+I+"' href='' disabled='disabled'></a><select id='"+I+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||d.push("\\["+i+"*(?:value|"+ft+")"),t.querySelectorAll("[id~="+I+"-]").length||d.push("~="),t.querySelectorAll("a#"+I+"+*").length||d.push(".#.+[+~]"),t.querySelectorAll(":checked").length||d.push(":checked"),(e=D.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),s.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(e=D.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||d.push("\\["+i+"*name"+i+"*="+i+"*(?:''|\"\")")}),g.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),pt=function(t,e){var i;return t===e?(ot=!0,0):!t.compareDocumentPosition-!e.compareDocumentPosition||(1&(i=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!g.sortDetached&&e.compareDocumentPosition(t)===i?t===D||t.ownerDocument==o&&M.contains(o,t)?-1:e===D||e.ownerDocument==o&&M.contains(o,e)?1:st?_.call(st,t)-_.call(st,e):0:4&i?-1:1)}),D}for(n in M.matches=function(t,e){return M(t,null,null,e)},M.matchesSelector=function(t,e){if(Et(t),T&&!dt[e+" "]&&(!d||!d.test(e)))try{var i=rt.call(t,e);if(i||g.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){dt(e,!0)}return 0<M(e,D,null,[t]).length},M.contains=function(t,e){return(t.ownerDocument||t)!=D&&Et(t),C.contains(t,e)},M.attr=function(t,e){(t.ownerDocument||t)!=D&&Et(t);var i=w.attrHandle[e.toLowerCase()],i=i&&q.call(w.attrHandle,e.toLowerCase())?i(t,e,!T):void 0;return void 0!==i?i:t.getAttribute(e)},M.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},C.uniqueSort=function(t){var e,i=[],n=0,s=0;if(ot=!g.sortStable,st=!g.sortStable&&a.call(t,0),J.call(t,pt),ot){for(;e=t[s++];)e===t[s]&&(n=i.push(s));for(;n--;)Z.call(t,i[n],1)}return st=null,t},C.fn.uniqueSort=function(){return this.pushStack(C.uniqueSort(a.apply(this)))},(w=C.expr={cacheLength:50,createPseudo:A,match:wt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(u,p),t[3]=(t[3]||t[4]||t[5]||"").replace(u,p),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||M.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&M.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return wt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&bt.test(i)&&(e=(e=Ot(i,!0))&&i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(u,p).toLowerCase();return"*"===t?function(){return!0}:function(t){return y(t,e)}},CLASS:function(t){var e=ht[t+" "];return e||(e=new RegExp("(^|"+i+")"+t+"("+i+"|$)"))&&ht(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(e,i,n){return function(t){t=M.attr(t,e);return null==t?"!="===i:!i||(t+="","="===i?t===n:"!="===i?t!==n:"^="===i?n&&0===t.indexOf(n):"*="===i?n&&-1<t.indexOf(n):"$="===i?n&&t.slice(-n.length)===n:"~="===i?-1<(" "+t.replace(gt," ")+" ").indexOf(n):"|="===i&&(t===n||t.slice(0,n.length+1)===n+"-"))}},CHILD:function(p,t,e,f,g){var m="nth"!==p.slice(0,3),v="last"!==p.slice(-4),_="of-type"===t;return 1===f&&0===g?function(t){return!!t.parentNode}:function(t,e,i){var n,s,o,r,a,l=m!=v?"nextSibling":"previousSibling",h=t.parentNode,c=_&&t.nodeName.toLowerCase(),u=!i&&!_,d=!1;if(h){if(m){for(;l;){for(o=t;o=o[l];)if(_?y(o,c):1===o.nodeType)return!1;a=l="only"===p&&!a&&"nextSibling"}return!0}if(a=[v?h.firstChild:h.lastChild],v&&u){for(d=(r=(n=(s=h[I]||(h[I]={}))[p]||[])[0]===P&&n[1])&&n[2],o=r&&h.childNodes[r];o=++r&&o&&o[l]||(d=r=0,a.pop());)if(1===o.nodeType&&++d&&o===t){s[p]=[P,r,d];break}}else if(!1===(d=u?r=(n=(s=t[I]||(t[I]={}))[p]||[])[0]===P&&n[1]:d))for(;(o=++r&&o&&o[l]||(d=r=0,a.pop()))&&((_?!y(o,c):1!==o.nodeType)||!++d||(u&&((s=o[I]||(o[I]={}))[p]=[P,d]),o!==t)););return(d-=g)===f||d%f==0&&0<=d/f}}},PSEUDO:function(t,o){var e,r=w.pseudos[t]||w.setFilters[t.toLowerCase()]||M.error("unsupported pseudo: "+t);return r[I]?r(o):1<r.length?(e=[t,t,"",o],w.setFilters.hasOwnProperty(t.toLowerCase())?A(function(t,e){for(var i,n=r(t,o),s=n.length;s--;)t[i=_.call(t,n[s])]=!(e[i]=n[s])}):function(t){return r(t,0,e)}):r}},pseudos:{not:A(function(t){var n=[],s=[],a=Rt(t.replace(tt,"$1"));return a[I]?A(function(t,e,i,n){for(var s,o=a(t,null,n,[]),r=t.length;r--;)(s=o[r])&&(t[r]=!(e[r]=s))}):function(t,e,i){return n[0]=t,a(n,null,i,s),n[0]=null,!s.pop()}}),has:A(function(e){return function(t){return 0<M(e,t).length}}),contains:A(function(e){return e=e.replace(u,p),function(t){return-1<(t.textContent||C.text(t)).indexOf(e)}}),lang:A(function(i){return yt.test(i||"")||M.error("unsupported lang: "+i),i=i.replace(u,p).toLowerCase(),function(t){var e;do{if(e=T?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(e=e.toLowerCase())===i||0===e.indexOf(i+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var e=x.location&&x.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===s},focus:function(t){return t===function(){try{return D.activeElement}catch(t){}}()&&D.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:Mt(!1),disabled:Mt(!0),checked:function(t){return y(t,"input")&&!!t.checked||y(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!w.pseudos.empty(t)},header:function(t){return kt.test(t.nodeName)},input:function(t){return xt.test(t.nodeName)},button:function(t){return y(t,"input")&&"button"===t.type||y(t,"button")},text:function(t){return y(t,"input")&&"text"===t.type&&(null==(t=t.getAttribute("type"))||"text"===t.toLowerCase())},first:At(function(){return[0]}),last:At(function(t,e){return[e-1]}),eq:At(function(t,e,i){return[i<0?i+e:i]}),even:At(function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t}),odd:At(function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t}),lt:At(function(t,e,i){for(var n=i<0?i+e:e<i?e:i;0<=--n;)t.push(n);return t}),gt:At(function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n);return t})}}).pseudos.nth=w.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[n]=function(e){return function(t){return y(t,"input")&&t.type===e}}(n);for(n in{submit:!0,reset:!0})w.pseudos[n]=function(e){return function(t){return(y(t,"input")||y(t,"button"))&&t.type===e}}(n);function Ht(){}function Ot(t,e){var i,n,s,o,r,a,l,h=ct[t+" "];if(h)return e?0:h.slice(0);for(r=t,a=[],l=w.preFilter;r;){for(o in i&&!(n=mt.exec(r))||(n&&(r=r.slice(n[0].length)||r),a.push(s=[])),i=!1,(n=vt.exec(r))&&(i=n.shift(),s.push({value:i,type:n[0].replace(tt," ")}),r=r.slice(i.length)),w.filter)!(n=wt[o].exec(r))||l[o]&&!(n=l[o](n))||(i=n.shift(),s.push({value:i,type:o,matches:n}),r=r.slice(i.length));if(!i)break}return e?r.length:r?M.error(t):ct(t,a).slice(0)}function zt(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value;return n}function Lt(r,t,e){var a=t.dir,l=t.next,h=l||a,c=e&&"parentNode"===h,u=lt++;return t.first?function(t,e,i){for(;t=t[a];)if(1===t.nodeType||c)return r(t,e,i);return!1}:function(t,e,i){var n,s,o=[P,u];if(i){for(;t=t[a];)if((1===t.nodeType||c)&&r(t,e,i))return!0}else for(;t=t[a];)if(1===t.nodeType||c)if(s=t[I]||(t[I]={}),l&&y(t,l))t=t[a]||t;else{if((n=s[h])&&n[0]===P&&n[1]===u)return o[2]=n[2];if((s[h]=o)[2]=r(t,e,i))return!0}return!1}}function Ft(s){return 1<s.length?function(t,e,i){for(var n=s.length;n--;)if(!s[n](t,e,i))return!1;return!0}:s[0]}function Wt(t,e,i,n,s){for(var o,r=[],a=0,l=t.length,h=null!=e;a<l;a++)!(o=t[a])||i&&!i(o,n,s)||(r.push(o),h&&e.push(a));return r}function jt(t){for(var n,e,i,s=t.length,o=w.relative[t[0].type],r=o||w.relative[" "],a=o?1:0,l=Lt(function(t){return t===n},r,!0),h=Lt(function(t){return-1<_.call(n,t)},r,!0),c=[function(t,e,i){t=!o&&(i||e!=nt)||((n=e).nodeType?l:h)(t,e,i);return n=null,t}];a<s;a++)if(e=w.relative[t[a].type])c=[Lt(Ft(c),e)];else{if((e=w.filter[t[a].type].apply(null,t[a].matches))[I]){for(i=++a;i<s&&!w.relative[t[i].type];i++);return function u(p,f,g,m,v,t){return m&&!m[I]&&(m=u(m)),v&&!v[I]&&(v=u(v,t)),A(function(t,e,i,n){var s,o,r,a,l=[],h=[],c=e.length,u=t||function(t,e,i){for(var n=0,s=e.length;n<s;n++)M(t,e[n],i);return i}(f||"*",i.nodeType?[i]:i,[]),d=!p||!t&&f?u:Wt(u,l,p,i,n);if(g?g(d,a=v||(t?p:c||m)?[]:e,i,n):a=d,m)for(s=Wt(a,h),m(s,[],i,n),o=s.length;o--;)(r=s[o])&&(a[h[o]]=!(d[h[o]]=r));if(t){if(v||p){if(v){for(s=[],o=a.length;o--;)(r=a[o])&&s.push(d[o]=r);v(null,a=[],s,n)}for(o=a.length;o--;)(r=a[o])&&-1<(s=v?_.call(t,r):l[o])&&(t[s]=!(e[s]=r))}}else a=Wt(a===e?a.splice(c,a.length):a),v?v(null,e,a,n):S.apply(e,a)})}(1<a&&Ft(c),1<a&&zt(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(tt,"$1"),e,a<i&&jt(t.slice(a,i)),i<s&&jt(t=t.slice(i)),i<s&&zt(t))}c.push(e)}return Ft(c)}function Rt(t,e){var i,m,v,_,b,n,s=[],o=[],r=ut[t+" "];if(!r){for(i=(e=e||Ot(t)).length;i--;)((r=jt(e[i]))[I]?s:o).push(r);(r=ut(t,(_=0<(v=s).length,b=0<(m=o).length,n=function(t,e,i,n,s){var o,r,a,l=0,h="0",c=t&&[],u=[],d=nt,p=t||b&&w.find.TAG("*",s),f=P+=null==d?1:Math.random()||.1,g=p.length;for(s&&(nt=e==D||e||s);h!==g&&null!=(o=p[h]);h++){if(b&&o){for(r=0,e||o.ownerDocument==D||(Et(o),i=!T);a=m[r++];)if(a(o,e||D,i)){S.call(n,o);break}s&&(P=f)}_&&((o=!a&&o)&&l--,t)&&c.push(o)}if(l+=h,_&&h!==l){for(r=0;a=v[r++];)a(c,u,e,i);if(t){if(0<l)for(;h--;)c[h]||u[h]||(u[h]=G.call(n));u=Wt(u)}S.apply(n,u),s&&!t&&0<u.length&&1<l+v.length&&C.uniqueSort(n)}return s&&(P=f,nt=d),c},_?A(n):n))).selector=t}return r}function qt(t,e,i,n){var s,o,r,a,l,h="function"==typeof t&&t,c=!n&&Ot(t=h.selector||t);if(i=i||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(r=o[0]).type&&9===e.nodeType&&T&&w.relative[o[1].type]){if(!(e=(w.find.ID(r.matches[0].replace(u,p),e)||[])[0]))return i;h&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(s=wt.needsContext.test(t)?0:o.length;s--&&(r=o[s],!w.relative[a=r.type]);)if((l=w.find[a])&&(n=l(r.matches[0].replace(u,p),Dt.test(o[0].type)&&Nt(e.parentNode)||e))){if(o.splice(s,1),t=n.length&&zt(o))break;return S.apply(i,n),i}}return(h||Rt(t,c))(n,e,!T,i,!e||Dt.test(t)&&Nt(e.parentNode)||e),i}Ht.prototype=w.filters=w.pseudos,w.setFilters=new Ht,g.sortStable=I.split("").sort(pt).join("")===I,Et(),g.sortDetached=Pt(function(t){return 1&t.compareDocumentPosition(D.createElement("fieldset"))}),C.find=M,C.expr[":"]=C.expr.pseudos,C.unique=C.uniqueSort,M.compile=Rt,M.select=qt,M.setDocument=Et,M.tokenize=Ot,M.escape=C.escapeSelector,M.getText=C.text,M.isXML=C.isXMLDoc,M.selectors=C.expr,M.support=C.support,M.uniqueSort=C.uniqueSort;var $t=function(t,e,i){for(var n=[],s=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(s&&C(t).is(i))break;n.push(t)}return n},Bt=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},Yt=C.expr.match.needsContext,Ut=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Vt(t,i,n){return b(i)?C.grep(t,function(t,e){return!!i.call(t,e,t)!==n}):i.nodeType?C.grep(t,function(t){return t===i!==n}):"string"!=typeof i?C.grep(t,function(t){return-1<_.call(i,t)!==n}):C.filter(i,t,n)}C.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?C.find.matchesSelector(n,t)?[n]:[]:C.find.matches(t,C.grep(e,function(t){return 1===t.nodeType}))},C.fn.extend({find:function(t){var e,i,n=this.length,s=this;if("string"!=typeof t)return this.pushStack(C(t).filter(function(){for(e=0;e<n;e++)if(C.contains(s[e],this))return!0}));for(i=this.pushStack([]),e=0;e<n;e++)C.find(t,s[e],i);return 1<n?C.uniqueSort(i):i},filter:function(t){return this.pushStack(Vt(this,t||[],!1))},not:function(t){return this.pushStack(Vt(this,t||[],!0))},is:function(t){return!!Vt(this,"string"==typeof t&&Yt.test(t)?C(t):t||[],!1).length}});var Kt,Xt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Qt=((C.fn.init=function(t,e,i){if(t){if(i=i||Kt,"string"!=typeof t)return t.nodeType?(this[0]=t,this.length=1,this):b(t)?void 0!==i.ready?i.ready(t):t(C):C.makeArray(t,this);if(!(n="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:Xt.exec(t))||!n[1]&&e)return(!e||e.jquery?e||i:this.constructor(e)).find(t);if(n[1]){if(e=e instanceof C?e[0]:e,C.merge(this,C.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:k,!0)),Ut.test(n[1])&&C.isPlainObject(e))for(var n in e)b(this[n])?this[n](e[n]):this.attr(n,e[n])}else(i=k.getElementById(n[2]))&&(this[0]=i,this.length=1)}return this}).prototype=C.fn,Kt=C(k),/^(?:parents|prev(?:Until|All))/),Gt={children:!0,contents:!0,next:!0,prev:!0};function Jt(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}C.fn.extend({has:function(t){var e=C(t,this),i=e.length;return this.filter(function(){for(var t=0;t<i;t++)if(C.contains(this,e[t]))return!0})},closest:function(t,e){var i,n=0,s=this.length,o=[],r="string"!=typeof t&&C(t);if(!Yt.test(t))for(;n<s;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(r?-1<r.index(i):1===i.nodeType&&C.find.matchesSelector(i,t))){o.push(i);break}return this.pushStack(1<o.length?C.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?_.call(C(t),this[0]):_.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(C.uniqueSort(C.merge(this.get(),C(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),C.each({parent:function(t){t=t.parentNode;return t&&11!==t.nodeType?t:null},parents:function(t){return $t(t,"parentNode")},parentsUntil:function(t,e,i){return $t(t,"parentNode",i)},next:function(t){return Jt(t,"nextSibling")},prev:function(t){return Jt(t,"previousSibling")},nextAll:function(t){return $t(t,"nextSibling")},prevAll:function(t){return $t(t,"previousSibling")},nextUntil:function(t,e,i){return $t(t,"nextSibling",i)},prevUntil:function(t,e,i){return $t(t,"previousSibling",i)},siblings:function(t){return Bt((t.parentNode||{}).firstChild,t)},children:function(t){return Bt(t.firstChild)},contents:function(t){return null!=t.contentDocument&&L(t.contentDocument)?t.contentDocument:(y(t,"template")&&(t=t.content||t),C.merge([],t.childNodes))}},function(n,s){C.fn[n]=function(t,e){var i=C.map(this,s,t);return(e="Until"!==n.slice(-5)?t:e)&&"string"==typeof e&&(i=C.filter(e,i)),1<this.length&&(Gt[n]||C.uniqueSort(i),Qt.test(n))&&i.reverse(),this.pushStack(i)}});var N=/[^\x20\t\r\n\f]+/g;function Zt(t){return t}function te(t){throw t}function ee(t,e,i,n){var s;try{t&&b(s=t.promise)?s.call(t).done(e).fail(i):t&&b(s=t.then)?s.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.apply(void 0,[t])}}C.Callbacks=function(i){var t,n;i="string"==typeof i?(t=i,n={},C.each(t.match(N)||[],function(t,e){n[e]=!0}),n):C.extend({},i);var s,e,o,r,a=[],l=[],h=-1,c=function(){for(r=r||i.once,o=s=!0;l.length;h=-1)for(e=l.shift();++h<a.length;)!1===a[h].apply(e[0],e[1])&&i.stopOnFalse&&(h=a.length,e=!1);i.memory||(e=!1),s=!1,r&&(a=e?[]:"")},u={add:function(){return a&&(e&&!s&&(h=a.length-1,l.push(e)),function n(t){C.each(t,function(t,e){b(e)?i.unique&&u.has(e)||a.push(e):e&&e.length&&"string"!==K(e)&&n(e)})}(arguments),e)&&!s&&c(),this},remove:function(){return C.each(arguments,function(t,e){for(var i;-1<(i=C.inArray(e,a,i));)a.splice(i,1),i<=h&&h--}),this},has:function(t){return t?-1<C.inArray(t,a):0<a.length},empty:function(){return a=a&&[],this},disable:function(){return r=l=[],a=e="",this},disabled:function(){return!a},lock:function(){return r=l=[],e||s||(a=e=""),this},locked:function(){return!!r},fireWith:function(t,e){return r||(e=[t,(e=e||[]).slice?e.slice():e],l.push(e),s)||c(),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!o}};return u},C.extend({Deferred:function(t){var o=[["notify","progress",C.Callbacks("memory"),C.Callbacks("memory"),2],["resolve","done",C.
vendor: 4,143 bytes, line 1
1Callbacks("once memory"),C.Callbacks("once memory"),0,"resolved"],["reject","fail",C.Callbacks("once memory"),C.Callbacks("once memory"),1,"rejected"]],s="pending",r={state:function(){return s},always:function(){return a.done(arguments).fail(arguments),this},"catch":function(t){return r.then(null,t)},pipe:function(){var s=arguments;return C.Deferred(function(n){C.each(o,function(t,e){var i=b(s[e[4]])&&s[e[4]];a[e[1]](function(){var t=i&&i.apply(this,arguments);t&&b(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[e[0]+"With"](this,i?[t]:arguments)})}),s=null}).promise()},then:function(e,i,n){var l=0;function h(s,o,r,a){return function(){var i=this,n=arguments,t=function(){var t,e;if(!(s<l)){if((t=r.apply(i,n))===o.promise())throw new TypeError("Thenable self-resolution");e=t&&("object"==typeof t||"function"==typeof t)&&t.then,b(e)?a?e.call(t,h(l,o,Zt,a),h(l,o,te,a)):(l++,e.call(t,h(l,o,Zt,a),h(l,o,te,a),h(l,o,Zt,o.notifyWith))):(r!==Zt&&(i=void 0,n=[t]),(a||o.resolveWith)(i,n))}},e=a?t:function(){try{t()}catch(t){C.Deferred.exceptionHook&&C.Deferred.exceptionHook(t,e.error),l<=s+1&&(r!==te&&(i=void 0,n=[t]),o.rejectWith(i,n))}};s?e():(C.Deferred.getErrorHook?e.error=C.Deferred.getErrorHook():C.Deferred.getStackHook&&(e.error=C.Deferred.getStackHook()),x.setTimeout(e))}}return C.Deferred(function(t){o[0][3].add(h(0,t,b(n)?n:Zt,t.notifyWith)),o[1][3].add(h(0,t,b(e)?e:Zt)),o[2][3].add(h(0,t,b(i)?i:te))}).promise()},promise:function(t){return null!=t?C.extend(t,r):r}},a={};return C.each(o,function(t,e){var i=e[2],n=e[5];r[e[1]]=i.add,n&&i.add(function(){s=n},o[3-t][2].disable,o[3-t][3].disable,o[0][2].lock,o[0][3].lock),i.add(e[3].fire),a[e[0]]=function(){return a[e[0]+"With"](this===a?void 0:this,arguments),this},a[e[0]+"With"]=i.fireWith}),r.promise(a),t&&t.call(a,a),a},when:function(t){var i=arguments.length,e=i,n=Array(e),s=a.call(arguments),o=C.Deferred(),r=function(e){return function(t){n[e]=this,s[e]=1<arguments.length?a.call(arguments):t,--i||o.resolveWith(n,s)}};if(i<=1&&(ee(t,o.done(r(e)).resolve,o.reject,!i),"pending"===o.state()||b(s[e]&&s[e].then)))return o.then();for(;e--;)ee(s[e],r(e),o.reject);return o.promise()}});var ie=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/,ne=(C.Deferred.exceptionHook=function(t,e){x.console&&x.console.warn&&t&&ie.test(t.name)&&x.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},C.readyException=function(t){x.setTimeout(function(){throw t})},C.Deferred());function se(){k.removeEventListener("DOMContentLoaded",se),x.removeEventListener("load",se),C.ready()}C.fn.ready=function(t){return ne.then(t)["catch"](function(t){C.readyException(t)}),this},C.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--C.readyWait:C.isReady)||(C.isReady=!0)!==t&&0<--C.readyWait||ne.resolveWith(k,[C])}}),C.ready.then=ne.then,"complete"===k.readyState||"loading"!==k.readyState&&!k.documentElement.doScroll?x.setTimeout(C.ready):(k.addEventListener("DOMContentLoaded",se),x.addEventListener("load",se));var oe=function(t,e,i,n,s,o,r){var a=0,l=t.length,h=null==i;if("object"===K(i))for(a in s=!0,i)oe(t,e,a,i[a],!0,o,r);else if(void 0!==n&&(s=!0,b(n)||(r=!0),e=h?r?(e.call(t,n),null):(h=e,function(t,e,i){return h.call(C(t),i)}):e))for(;a<l;a++)e(t[a],i,r?n:n.call(t[a],a,e(t[a],i)));return s?t:h?e.call(t):l?e(t[0],i):o},re=/^-ms-/,ae=/-([a-z])/g;function le(t,e){return e.toUpperCase()}function E(t){return t.replace(re,"ms-").replace(ae,le)}var he=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function ce(){this.expando=C.expando+ce.uid++}ce.uid=1,ce.prototype={cache:function(t){var e=t[this.expando];return e||(e={},he(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var n,s=this.cache(t);if("string"==typeof e)s[E(e)]=i;else for(n in e)s[E(n)]=e[n];return s},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][E(e)]},access:function(t,e,i){return void 0===e||e&&"string"==typeof e&&void 0===i?this.get(t,e):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n=t[this.expando];
vendor: 4,615 bytes, line 1
1if(void 0!==n){if(void 0!==e){i=(e=Array.isArray(e)?e.map(E):(e=E(e))in n?[e]:e.match(N)||[]).length;for(;i--;)delete n[e[i]]}void 0!==e&&!C.isEmptyObject(n)||(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){t=t[this.expando];return void 0!==t&&!C.isEmptyObject(t)}};var v=new ce,h=new ce,ue=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,de=/[A-Z]/g;function pe(t,e,i){var n,s;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(de,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(n))){try{i="true"===(s=i)||"false"!==s&&("null"===s?null:s===+s+""?+s:ue.test(s)?JSON.parse(s):s)}catch(t){}h.set(t,e,i)}else i=void 0;return i}C.extend({hasData:function(t){return h.hasData(t)||v.hasData(t)},data:function(t,e,i){return h.access(t,e,i)},removeData:function(t,e){h.remove(t,e)},_data:function(t,e,i){return v.access(t,e,i)},_removeData:function(t,e){v.remove(t,e)}}),C.fn.extend({data:function(i,t){var e,n,s,o=this[0],r=o&&o.attributes;if(void 0!==i)return"object"==typeof i?this.each(function(){h.set(this,i)}):oe(this,function(t){var e;if(o&&void 0===t)return void 0!==(e=h.get(o,i))||void 0!==(e=pe(o,i))?e:void 0;this.each(function(){h.set(this,i,t)})},null,t,1<arguments.length,null,!0);if(this.length&&(s=h.get(o),1===o.nodeType)&&!v.get(o,"hasDataAttrs")){for(e=r.length;e--;)r[e]&&0===(n=r[e].name).indexOf("data-")&&(n=E(n.slice(5)),pe(o,n,s[n]));v.set(o,"hasDataAttrs",!0)}return s},removeData:function(t){return this.each(function(){h.remove(this,t)})}}),C.extend({queue:function(t,e,i){var n;if(t)return n=v.get(t,e=(e||"fx")+"queue"),i&&(!n||Array.isArray(i)?n=v.access(t,e,C.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=C.queue(t,e),n=i.length,s=i.shift(),o=C._queueHooks(t,e);"inprogress"===s&&(s=i.shift(),n--),s&&("fx"===e&&i.unshift("inprogress"),delete o.stop,s.call(t,function(){C.dequeue(t,e)},o)),!n&&o&&o.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return v.get(t,i)||v.access(t,i,{empty:C.Callbacks("once memory").add(function(){v.remove(t,[e+"queue",i])})})}}),C.fn.extend({queue:function(e,i){var t=2;return"string"!=typeof e&&(i=e,e="fx",t--),arguments.length<t?C.queue(this[0],e):void 0===i?this:this.each(function(){var t=C.queue(this,e,i);C._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&C.dequeue(this,e)})},dequeue:function(t){return this.each(function(){C.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,s=C.Deferred(),o=this,r=this.length,a=function(){--n||s.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";r--;)(i=v.get(o[r],t+"queueHooks"))&&i.empty&&(n++,i.empty.add(a));return a(),s.promise(e)}});var t=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,fe=new RegExp("^(?:([+-])=|)("+t+")([a-z%]*)$","i"),ge=["Top","Right","Bottom","Left"],me=k.documentElement,ve=function(t){return C.contains(t.ownerDocument,t)},_e={composed:!0},be=(me.getRootNode&&(ve=function(t){return C.contains(t.ownerDocument,t)||t.getRootNode(_e)===t.ownerDocument}),function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&ve(t)&&"none"===C.css(t,"display")});function ye(t,e,i,n){var s,o,r=20,a=n?function(){return n.cur()}:function(){return C.css(t,e,"")},l=a(),h=i&&i[3]||(C.cssNumber[e]?"":"px"),c=t.nodeType&&(C.cssNumber[e]||"px"!==h&&+l)&&fe.exec(C.css(t,e));if(c&&c[3]!==h){for(h=h||c[3],c=+(l/=2)||1;r--;)C.style(t,e,c+h),(1-o)*(1-(o=a()/l||.5))<=0&&(r=0),c/=o;C.style(t,e,(c*=2)+h),i=i||[]}return i&&(c=+c||+l||0,s=i[1]?c+(i[1]+1)*i[2]:+i[2],n)&&(n.unit=h,n.start=c,n.end=s),s}var we={};function xe(t,e){for(var i,n,s,o,r,a,l=[],h=0,c=t.length;h<c;h++)(n=t[h]).style&&(i=n.style.display,e?("none"===i&&(l[h]=v.get(n,"display")||null,l[h]||(n.style.display="")),""===n.style.display&&be(n)&&(l[h]=(a=o=s=void 0,o=n.ownerDocument,r=n.nodeName,(a=we[r])||(s=o.body.appendChild(o.createElement(r)),a=C.css(s,"display"),s.parentNode.removeChild(s),we[r]=a="none"===a?"block":a)))):"none"!==i&&(l[h]="none",v.set(n,"display",i)));for(h=0;h<c;h++)null!=l[h]&&(t[h].style.display=l[h]);return t}C.fn.extend({show:function(){return xe(this,!0)},hide:function(){return xe(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){be(this)?C(this).show():C(this).hide()})}});var ke=/^(?:checkbox|radio)$/i,Ce=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,De=/^$|^module$|\/(?:java|ecma)script/i,r=k.createDocumentFragment().appendChild(k.createElement("div")),f=((l=k.createElement("input")).setAttribute("type","radio"),l.setAttribute("checked","checked"),l.setAttribute("name","t"),r.appendChild(l),g.checkClone
vendor: 8,866 bytes, line 1
1=r.cloneNode(!0).cloneNode(!0).lastChild.checked,r.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!r.cloneNode(!0).lastChild.defaultValue,r.innerHTML="<option></option>",g.option=!!r.lastChild,{thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]});function m(t,e){var i="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&y(t,e)?C.merge([t],i):i}function Te(t,e){for(var i=0,n=t.length;i<n;i++)v.set(t[i],"globalEval",!e||v.get(e[i],"globalEval"))}f.tbody=f.tfoot=f.colgroup=f.caption=f.thead,f.th=f.td,g.option||(f.optgroup=f.option=[1,"<select multiple='multiple'>","</select>"]);var Se=/<|&#?\w+;/;function Ie(t,e,i,n,s){for(var o,r,a,l,h,c=e.createDocumentFragment(),u=[],d=0,p=t.length;d<p;d++)if((o=t[d])||0===o)if("object"===K(o))C.merge(u,o.nodeType?[o]:o);else if(Se.test(o)){for(r=r||c.appendChild(e.createElement("div")),a=(Ce.exec(o)||["",""])[1].toLowerCase(),a=f[a]||f._default,r.innerHTML=a[1]+C.htmlPrefilter(o)+a[2],h=a[0];h--;)r=r.lastChild;C.merge(u,r.childNodes),(r=c.firstChild).textContent=""}else u.push(e.createTextNode(o));for(c.textContent="",d=0;o=u[d++];)if(n&&-1<C.inArray(o,n))s&&s.push(o);else if(l=ve(o),r=m(c.appendChild(o),"script"),l&&Te(r),i)for(h=0;o=r[h++];)De.test(o.type||"")&&i.push(o);return c}var Pe=/^([^.]*)(?:\.(.+)|)/;function Me(){return!0}function Ae(){return!1}function Ne(t,e,i,n,s,o){var r,a;if("object"==typeof e){for(a in"string"!=typeof i&&(n=n||i,i=void 0),e)Ne(t,a,i,n,e[a],o);return t}if(null==n&&null==s?(s=i,n=i=void 0):null==s&&("string"==typeof i?(s=n,n=void 0):(s=n,n=i,i=void 0)),!1===s)s=Ae;else if(!s)return t;return 1===o&&(r=s,(s=function(t){return C().off(t),r.apply(this,arguments)}).guid=r.guid||(r.guid=C.guid++)),t.each(function(){C.event.add(this,e,s,n,i)})}function Ee(t,n,e){e?(v.set(t,n,!1),C.event.add(t,n,{namespace:!1,handler:function(t){var e,i=v.get(this,n);if(1&t.isTrigger&&this[n]){if(i)(C.event.special[n]||{}).delegateType&&t.stopPropagation();else if(i=a.call(arguments),v.set(this,n,i),this[n](),e=v.get(this,n),v.set(this,n,!1),i!==e)return t.stopImmediatePropagation(),t.preventDefault(),e}else i&&(v.set(this,n,C.event.trigger(i[0],i.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Me)}})):void 0===v.get(t,n)&&C.event.add(t,n,Me)}C.event={global:{},add:function(e,t,i,n,s){var o,r,a,l,h,c,u,d,p,f=v.get(e);if(he(e))for(i.handler&&(i=(o=i).handler,s=o.selector),s&&C.find.matchesSelector(me,s),i.guid||(i.guid=C.guid++),a=(a=f.events)||(f.events=Object.create(null)),r=(r=f.handle)||(f.handle=function(t){return void 0!==C&&C.event.triggered!==t.type?C.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(N)||[""]).length;l--;)u=p=(d=Pe.exec(t[l])||[])[1],d=(d[2]||"").split(".").sort(),u&&(h=C.event.special[u]||{},u=(s?h.delegateType:h.bindType)||u,h=C.event.special[u]||{},p=C.extend({type:u,origType:p,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&C.expr.match.needsContext.test(s),namespace:d.join(".")},o),(c=a[u])||((c=a[u]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(e,n,d,r))||e.addEventListener&&e.addEventListener(u,r),h.add&&(h.add.call(e,p),p.handler.guid||(p.handler.guid=i.guid)),s?c.splice(c.delegateCount++,0,p):c.push(p),C.event.global[u]=!0)},remove:function(t,e,i,n,s){var o,r,a,l,h,c,u,d,p,f,g,m=v.hasData(t)&&v.get(t);if(m&&(l=m.events)){for(h=(e=(e||"").match(N)||[""]).length;h--;)if(p=g=(a=Pe.exec(e[h])||[])[1],f=(a[2]||"").split(".").sort(),p){for(u=C.event.special[p]||{},d=l[p=(n?u.delegateType:u.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=o=d.length;o--;)c=d[o],!s&&g!==c.origType||i&&i.guid!==c.guid||a&&!a.test(c.namespace)||n&&n!==c.selector&&("**"!==n||!c.selector)||(d.splice(o,1),c.selector&&d.delegateCount--,u.remove&&u.remove.call(t,c));r&&!d.length&&(u.teardown&&!1!==u.teardown.call(t,f,m.handle)||C.removeEvent(t,p,m.handle),delete l[p])}else for(p in l)C.event.remove(t,p+e[h],i,n,!0);C.isEmptyObject(l)&&v.remove(t,"handle events")}},dispatch:function(t){var e,i,n,s,o,r=new Array(arguments.length),a=C.event.fix(t),t=(v.get(this,"events")||Object.create(null))[a.type]||[],l=C.event.special[a.type]||{};for(r[0]=a,e=1;e<arguments.length;e++)r[e]=arguments[e];if(a.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,a)){for(o=C.event.handlers.call(this,a,t),e=0;(n=o[e++])&&!a.isPropagationStopped();)for(a.currentTarget=n.elem,i=0;(s=n.handlers[i++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!1!==s.namespace&&!a.rnamespace.test(s.namespace)||(a.handleObj=s,a.data=s.data,void 0!==(s=((C.event.special[s.origType]||{}).handle||s.handler).apply(n.elem,r))&&!1===(a.result=s)&&(a.preventDefault(),a.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,a),a.result}},handlers:function(t,e){var i,n,s,o,r,a=[],l=e.delegateCount,h=t.target;if(l&&h.nodeType&&!("click"===t.type&&1<=t.button))for(;h!==this;h=h.parentNode||this)if(1===h.nodeType&&("click"!==t.type||!0!==h.disabled)){for(o=[],r={},i=0;i<l;i++)void 0===r[s=(n=e[i]).selector+" "]&&(r[s]=n.needsContext?-1<C(s,this).index(h):C.find(s,this,null,[h]).length),r[s]&&o.push(n);o.length&&a.push({elem:h,handlers:o})}return h=this,l<e.length&&a.push({elem:h,handlers:e.slice(l)}),a},addProp:function(e,t){Object.defineProperty(C.Event.prototype,e,{enumerable:!0,configurable:!0,get:b(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(t){return t[C.expando]?t:new C.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){t=this||t;return ke.test(t.type)&&t.click&&y(t,"input")&&Ee(t,"click",!0),!1},trigger:function(t){t=this||t;return ke.test(t.type)&&t.click&&y(t,"input")&&Ee(t,"click"),!0},_default:function(t){t=t.target;return ke.test(t.type)&&t.click&&y(t,"input")&&v.get(t,"click")||y(t,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},C.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},C.Event=function(t,e){if(!(this instanceof C.Event))return new C.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Me:Ae,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&C.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[C.expando]=!0},C.Event.prototype={constructor:C.Event,isDefaultPrevented:Ae,isPropagationStopped:Ae,isImmediatePropagationStopped:Ae,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Me,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Me,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Me,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},C.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},C.event.addProp),C.each({focus:"focusin",blur:"focusout"},function(n,s){function o(t){var e,i;k.documentMode?(e=v.get(this,"handle"),(i=C.event.fix(t)).type="focusin"===t.type?"focus":"blur",i.isSimulated=!0,e(t),i.target===i.currentTarget&&e(i)):C.event.simulate(s,t.target,C.event.fix(t))}C.event.special[n]={setup:function(){var t;if(Ee(this,n,!0),!k.documentMode)return!1;(t=v.get(this,s))||this.addEventListener(s,o),v.set(this,s,(t||0)+1)},trigger:function(){return Ee(this,n),!0},teardown:function(){var t;if(!k.documentMode)return!1;(t=v.get(this,s)-1)?v.set(this,s,t):(this.removeEventListener(s,o),v.remove(this,s))},_default:function(t){return v.get(t.target,n)},delegateType:s},C.event.special[s]={setup:function(){var t=this.ownerDocument||this.document||this,e=k.documentMode?this:t,i=v.get(e,s);i||(k.documentMode?this.addEventListener(s,o):t.addEventListener(n,o,!0)),v.set(e,s,(i||0)+1)},teardown:function(){var t=this.ownerDocument||this.document||this,e=k.documentMode?this:t,i=v.get(e,s)-1;i?v.set(e,s,i):(k.documentMode?this.removeEventListener(s,o):t.removeEventListener(n,o,!0),v.remove(e,s))}}}
vendor: 4,491 bytes, line 1
1),C.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,s){C.event.special[t]={delegateType:s,bindType:s,handle:function(t){var e,i=t.relatedTarget,n=t.handleObj;return i&&(i===this||C.contains(this,i))||(t.type=n.origType,e=n.handler.apply(this,arguments),t.type=s),e}}}),C.fn.extend({on:function(t,e,i,n){return Ne(this,t,e,i,n)},one:function(t,e,i,n){return Ne(this,t,e,i,n,1)},off:function(t,e,i){var n,s;if(t&&t.preventDefault&&t.handleObj)n=t.handleObj,C(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler);else{if("object"!=typeof t)return!1!==e&&"function"!=typeof e||(i=e,e=void 0),!1===i&&(i=Ae),this.each(function(){C.event.remove(this,t,i,e)});for(s in t)this.off(s,e,t[s])}return this}});var He=/<script|<style|<link/i,Oe=/checked\s*(?:[^=]|=\s*.checked.)/i,ze=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Le(t,e){return y(t,"table")&&y(11!==e.nodeType?e:e.firstChild,"tr")&&C(t).children("tbody")[0]||t}function Fe(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function We(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function je(t,e){var i,n,s,o;if(1===e.nodeType){if(v.hasData(t)&&(o=v.get(t).events))for(s in v.remove(e,"handle events"),o)for(i=0,n=o[s].length;i<n;i++)C.event.add(e,s,o[s][i]);h.hasData(t)&&(t=h.access(t),t=C.extend({},t),h.set(e,t))}}function Re(i,n,s,o){n=F(n);var t,e,r,a,l,h,c=0,u=i.length,d=u-1,p=n[0],f=b(p);if(f||1<u&&"string"==typeof p&&!g.checkClone&&Oe.test(p))return i.each(function(t){var e=i.eq(t);f&&(n[0]=p.call(this,t,e.html())),Re(e,n,s,o)});if(u&&(e=(t=Ie(n,i[0].ownerDocument,!1,i,o)).firstChild,1===t.childNodes.length&&(t=e),e||o)){for(a=(r=C.map(m(t,"script"),Fe)).length;c<u;c++)l=t,c!==d&&(l=C.clone(l,!0,!0),a)&&C.merge(r,m(l,"script")),s.call(i[c],l,c);if(a)for(h=r[r.length-1].ownerDocument,C.map(r,We),c=0;c<a;c++)l=r[c],De.test(l.type||"")&&!v.access(l,"globalEval")&&C.contains(h,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?C._evalUrl&&!l.noModule&&C._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},h):V(l.textContent.replace(ze,""),l,h))}return i}function qe(t,e,i){for(var n,s=e?C.filter(e,t):t,o=0;null!=(n=s[o]);o++)i||1!==n.nodeType||C.cleanData(m(n)),n.parentNode&&(i&&ve(n)&&Te(m(n,"script")),n.parentNode.removeChild(n));return t}C.extend({htmlPrefilter:function(t){return t},clone:function(t,e,i){var n,s,o,r,a,l,h,c=t.cloneNode(!0),u=ve(t);if(!(g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||C.isXMLDoc(t)))for(r=m(c),n=0,s=(o=m(t)).length;n<s;n++)a=o[n],"input"===(h=(l=r[n]).nodeName.toLowerCase())&&ke.test(a.type)?l.checked=a.checked:"input"!==h&&"textarea"!==h||(l.defaultValue=a.defaultValue);if(e)if(i)for(o=o||m(t),r=r||m(c),n=0,s=o.length;n<s;n++)je(o[n],r[n]);else je(t,c);return 0<(r=m(c,"script")).length&&Te(r,!u&&m(t,"script")),c},cleanData:function(t){for(var e,i,n,s=C.event.special,o=0;void 0!==(i=t[o]);o++)if(he(i)){if(e=i[v.expando]){if(e.events)for(n in e.events)s[n]?C.event.remove(i,n):C.removeEvent(i,n,e.handle);i[v.expando]=void 0}i[h.expando]&&(i[h.expando]=void 0)}}}),C.fn.extend({detach:function(t){return qe(this,t,!0)},remove:function(t){return qe(this,t)},text:function(t){return oe(this,function(t){return void 0===t?C.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return Re(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Le(this,t).appendChild(t)})},prepend:function(){return Re(this,arguments,function(t){var e;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(e=Le(this,t)).insertBefore(t,e.firstChild)})},before:function(){return Re(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Re(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(C.cleanData(m(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return C.clone(this,t,e)})},html:function(t){return oe(this,function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!He.test(t)&&!f[(Ce.exec(t)||["",""])[1].toLowerCase()]){t=C.htmlPrefilter(t);try{for(;i<n;i++)1===(e=this[i]||{}
vendor: 2,578 bytes, line 1
1).nodeType&&(C.cleanData(m(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var i=[];return Re(this,arguments,function(t){var e=this.parentNode;C.inArray(this,i)<0&&(C.cleanData(m(this)),e)&&e.replaceChild(t,this)},i)}}),C.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,r){C.fn[t]=function(t){for(var e,i=[],n=C(t),s=n.length-1,o=0;o<=s;o++)e=o===s?this:this.clone(!0),C(n[o])[r](e),W.apply(i,e.get());return this.pushStack(i)}});var $e,Be,Ye,Ue,Ve,Ke,Xe,c,Qe=new RegExp("^("+t+")(?!px)[a-z%]+$","i"),Ge=/^--/,Je=function(t){var e=t.ownerDocument.defaultView;return(e=e&&e.opener?e:x).getComputedStyle(t)},Ze=function(t,e,i){var n,s={};for(n in e)s[n]=t.style[n],t.style[n]=e[n];for(n in i=i.call(t),e)t.style[n]=s[n];return i},ti=new RegExp(ge.join("|"),"i");function ei(t,e,i){var n,s=Ge.test(e),o=t.style;return(i=i||Je(t))&&(n=i.getPropertyValue(e)||i[e],""!==(n=s?n&&(n.replace(tt,"$1")||void 0):n)||ve(t)||(n=C.style(t,e)),!g.pixelBoxStyles())&&Qe.test(n)&&ti.test(e)&&(s=o.width,t=o.minWidth,e=o.maxWidth,o.minWidth=o.maxWidth=o.width=n,n=i.width,o.width=s,o.minWidth=t,o.maxWidth=e),void 0!==n?n+"":n}function ii(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}function ni(){var t;c&&(Xe.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",me.appendChild(Xe).appendChild(c),t=x.getComputedStyle(c),$e="1%"!==t.top,Ke=12===si(t.marginLeft),c.style.right="60%",Ue=36===si(t.right),Be=36===si(t.width),c.style.position="absolute",Ye=12===si(c.offsetWidth/3),me.removeChild(Xe),c=null)}function si(t){return Math.round(parseFloat(t))}Xe=k.createElement("div"),(c=k.createElement("div")).style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===c.style.backgroundClip,C.extend(g,{boxSizingReliable:function(){return ni(),Be},pixelBoxStyles:function(){return ni(),Ue},pixelPosition:function(){return ni(),$e},reliableMarginLeft:function(){return ni(),Ke},scrollboxSize:function(){return ni(),Ye},reliableTrDimensions:function(){var t,e,i;return null==Ve&&(t=k.createElement("table"),e=k.createElement("tr"),i=k.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="box-sizing:content-box;
1border:1px solid",e.style.height="1px",i.style.height="9px",i.style.display="block",me.appendChild(t).appendChild(e).appendChild(i),i=x.getComputedStyle(e),Ve=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===e.offsetHeight,me.removeChild(t)),Ve}}));var oi=["Webkit","Moz","ms"],ri=k.createElement("div").style,ai={};function li(t){return C.cssProps[t]||ai[t]||(t in ri?t:ai[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),i=oi.length;i--;)if((t=oi[i]+e)in ri)return t}(t)||t)}var hi=/^(none|table(?!-c[ea]).+)/,ci={position:"absolute",visibility:"hidden",display:"block"},ui={letterSpacing:"0",fontWeight:"400"};function di(t,e,i){var n=fe.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function pi(t,e,i,n,s,o){var r="width"===e?1:0,a=0,l=0,h=0;if(i===(n?"border":"content"))return 0;for(;r<4;r+=2)"margin"===i&&(h+=C.css(t,i+ge[r],!0,s)),n?("content"===i&&(l-=C.css(t,"padding"+ge[r],!0,s)),"margin"!==i&&(l-=C.css(t,"border"+ge[r]+"Width",!0,s))):(l+=C.css(t,"padding"+ge[r],!0,s),"padding"!==i?l+=C.css(t,"border"+ge[r]+"Width",!0,s):a+=C.css(t,"border"+ge[r]+"Width",!0,s));return!n&&0<=o&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-a-.5))||0),l+h}function fi(t,e,i){var n=Je(t),s=(!g.boxSizingReliable()||i)&&"border-box"===C.css(t,"boxSizing",!1,n),o=s,r=ei(t,e,n),a="offset"+e[0].toUpperCase()+e.slice(1);if(Qe.test(r)){if(!i)return r;r="auto"}return(!g.boxSizingReliable()&&s||!g.reliableTrDimensions()&&y(t,"tr")||"auto"===r||!parseFloat(r)&&"inline"===C.css(t,"display",!1,n))&&t.getClientRects().length&&(s="border-box"===C.css(t,"boxSizing",!1,n),o=a in t)&&(r=t[a]),(r=parseFloat(r)||0)+pi(t,e,i||(s?"border":"content"),o,n,r)+"px"}function H(t,e,i,n,s){return new H.prototype.init(t,e,i,n,s)}C.extend({cssHooks:{opacity:{get:function(t,e){if(e)return""===(e=ei(t,"opacity"))?"1":e}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var s,o,r,a=E(e),l=Ge.test(e),h=t.style;if(l||(e=li(a)),r=C.cssHooks[e]||C.cssHooks[a],void 0===i)return r&&"get"in r&&void 0!==(s=r.get(t,!1,n))?s:h[e];"string"==(o=typeof i)&&(s=fe.exec(i))&&s[1]&&(i=ye(t,e,s),o="number"),null!=i&&i==i&&("number"!==o||l||(i+=s&&s[3]||(C.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==i||0!==e.indexOf("background")||(h[e]="inherit"),r&&"set"in r&&void 0===(i=r.set(t,i,n))||(l?h.setProperty(e,i):h[e]=i))}},css:function(t,e,i,n){var s,o=E(e);return Ge.test(e)||(e=li(o)),"normal"===(s=void 0===(s=(o=C.cssHooks[e]||C.cssHooks[o])&&"get"in o?o.get(t,!0,i):s)?ei(t,e,n):s)&&e in ui&&(s=ui[e]),(""===i||i)&&(o=parseFloat(s),!0===i||isFinite(o))?o||0:s}}),C.each(["height","width"],function(t,r){C.cssHooks[r]={get:function(t,e,i){if(e)return!hi.test(C.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?fi(t,r,i):Ze(t,ci,function(){return fi(t,r,i)})},set:function(t,e,i){var n=Je(t),s=!g.scrollboxSize()&&"absolute"===n.position,o=(s||i)&&"border-box"===C.css(t,"boxSizing",!1,n),i=i?pi(t,r,i,o,n):0;return o&&s&&(i-=Math.ceil(t["offset"+r[0].toUpperCase()+r.slice(1)]-parseFloat(n[r])-pi(t,r,"border",!1,n)-.5)),i&&(o=fe.exec(e))&&"px"!==(o[3]||"px")&&(t.style[r]=e,e=C.css(t,r)),di(0,e,i)}}}),C.cssHooks.marginLeft=ii(g.reliableMarginLeft,function(t,e){if(e)return(parseFloat(ei(t,"marginLeft"))||t.getBoundingClientRect().left-Ze(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),C.each({margin:"",padding:"",border:"Width"},function(s,o){C.cssHooks[s+o]={expand:function(t){for(var e=0,i={},n="string"==typeof t?t.split(" "):[t];e<4;e++)i[s+ge[e]+o]=n[e]||n[e-2]||n[0];return i}},"margin"!==s&&(C.cssHooks[s+o].set=di)}
vendor: 4,150 bytes, line 1
1),C.fn.extend({css:function(t,e){return oe(this,function(t,e,i){var n,s,o={},r=0;if(Array.isArray(e)){for(n=Je(t),s=e.length;r<s;r++)o[e[r]]=C.css(t,e[r],!1,n);return o}return void 0!==i?C.style(t,e,i):C.css(t,e)},t,e,1<arguments.length)}}),((C.Tween=H).prototype={constructor:H,init:function(t,e,i,n,s,o){this.elem=t,this.prop=i,this.easing=s||C.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=o||(C.cssNumber[i]?"":"px")},cur:function(){var t=H.propHooks[this.prop];return(t&&t.get?t:H.propHooks._default).get(this)},run:function(t){var e,i=H.propHooks[this.prop];return this.options.duration?this.pos=e=C.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(i&&i.set?i:H.propHooks._default).set(this),this}}).init.prototype=H.prototype,(H.propHooks={_default:{get:function(t){return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(t=C.css(t.elem,t.prop,""))&&"auto"!==t?t:0},set:function(t){C.fx.step[t.prop]?C.fx.step[t.prop](t):1!==t.elem.nodeType||!C.cssHooks[t.prop]&&null==t.elem.style[li(t.prop)]?t.elem[t.prop]=t.now:C.style(t.elem,t.prop,t.now+t.unit)}}}).scrollTop=H.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},C.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},C.fx=H.prototype.init,C.fx.step={};var gi,mi,vi=/^(?:toggle|show|hide)$/,_i=/queueHooks$/;function bi(){mi&&(!1===k.hidden&&x.requestAnimationFrame?x.requestAnimationFrame(bi):x.setTimeout(bi,C.fx.interval),C.fx.tick())}function yi(){return x.setTimeout(function(){gi=void 0}),gi=Date.now()}function wi(t,e){var i,n=0,s={height:t};for(e=e?1:0;n<4;n+=2-e)s["margin"+(i=ge[n])]=s["padding"+i]=t;return e&&(s.opacity=s.width=t),s}function xi(t,e,i){for(var n,s=(O.tweeners[e]||[]).concat(O.tweeners["*"]),o=0,r=s.length;o<r;o++)if(n=s[o].call(i,e,t))return n}function O(s,t,e){var i,o,n,r,a,l,h,c=0,u=O.prefilters.length,d=C.Deferred().always(function(){delete p.elem}),p=function(){if(o)return!1;for(var t=gi||yi(),t=Math.max(0,f.startTime+f.duration-t),e=1-(t/f.duration||0),i=0,n=f.tweens.length;i<n;i++)f.tweens[i].run(e);return d.notifyWith(s,[f,e,t]),e<1&&n?t:(n||d.notifyWith(s,[f,1,0]),d.resolveWith(s,[f]),!1)},f=d.promise({elem:s,props:C.extend({},t),opts:C.extend(!0,{specialEasing:{},easing:C.easing._default},e),originalProperties:t,originalOptions:e,startTime:gi||yi(),duration:e.duration,tweens:[],createTween:function(t,e){e=C.Tween(s,f.opts,t,e,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(e),e},stop:function(t){var e=0,i=t?f.tweens.length:0;if(!o){for(o=!0;e<i;e++)f.tweens[e].run(1);t?(d.notifyWith(s,[f,1,0]),d.resolveWith(s,[f,t])):d.rejectWith(s,[f,t])}return this}}),g=f.props,m=g,v=f.opts.specialEasing;for(n in m)if(a=v[r=E(n)],l=m[n],Array.isArray(l)&&(a=l[1],l=m[n]=l[0]),n!==r&&(m[r]=l,delete m[n]),(h=C.cssHooks[r])&&"expand"in h)for(n in l=h.expand(l),delete m[r],l)n in m||(m[n]=l[n],v[n]=a);else v[r]=a;for(;c<u;c++)if(i=O.prefilters[c].call(f,s,g,f.opts))return b(i.stop)&&(C._queueHooks(f.elem,f.opts.queue).stop=i.stop.bind(i)),i;return C.map(g,xi,f),b(f.opts.start)&&f.opts.start.call(s,f),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always),C.fx.timer(C.extend(p,{elem:s,anim:f,queue:f.opts.queue})),f}C.Animation=C.extend(O,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return ye(i.elem,t,fe.exec(e),i),i}]},tweener:function(t,e){for(var i,n=0,s=(t=b(t)?(e=t,["*"]):t.match(N)).length;n<s;n++)i=t[n],O.tweeners[i]=O.tweeners[i]||[],O.tweeners[i].unshift(e)},prefilters:[function(t,e,i){var n,s,o,r,a,l,h,c="width"in e||"height"in e,u=this,d={},p=t.style,f=t.nodeType&&be(t),g=v.get(t,"fxshow");for(n in i.queue||(null==(r=C._queueHooks(t,"fx")).unqueued&&(r.unqueued=0,a=r.empty.fire,r.empty.fire=function(){r.unqueued||a()}),r.unqueued++,u.always(function(){u.always(function(){r.unqueued--,C.queue(t,"fx").length||r.empty.fire()})}
vendor: 4,606 bytes, line 1
1)),e)if(s=e[n],vi.test(s)){if(delete e[n],o=o||"toggle"===s,s===(f?"hide":"show")){if("show"!==s||!g||void 0===g[n])continue;f=!0}d[n]=g&&g[n]||C.style(t,n)}if((l=!C.isEmptyObject(e))||!C.isEmptyObject(d))for(n in c&&1===t.nodeType&&(i.overflow=[p.overflow,p.overflowX,p.overflowY],null==(h=g&&g.display)&&(h=v.get(t,"display")),"none"===(c=C.css(t,"display"))&&(h?c=h:(xe([t],!0),h=t.style.display||h,c=C.css(t,"display"),xe([t]))),"inline"===c||"inline-block"===c&&null!=h)&&"none"===C.css(t,"float")&&(l||(u.done(function(){p.display=h}),null==h&&(c=p.display,h="none"===c?"":c)),p.display="inline-block"),i.overflow&&(p.overflow="hidden",u.always(function(){p.overflow=i.overflow[0],p.overflowX=i.overflow[1],p.overflowY=i.overflow[2]})),l=!1,d)l||(g?"hidden"in g&&(f=g.hidden):g=v.access(t,"fxshow",{display:h}),o&&(g.hidden=!f),f&&xe([t],!0),u.done(function(){for(n in f||xe([t]),v.remove(t,"fxshow"),d)C.style(t,n,d[n])})),l=xi(f?g[n]:0,n,u),n in g||(g[n]=l.start,f&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?O.prefilters.unshift(t):O.prefilters.push(t)}}),C.speed=function(t,e,i){var n=t&&"object"==typeof t?C.extend({},t):{complete:i||!i&&e||b(t)&&t,duration:t,easing:i&&e||e&&!b(e)&&e};return C.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in C.fx.speeds?n.duration=C.fx.speeds[n.duration]:n.duration=C.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){b(n.old)&&n.old.call(this),n.queue&&C.dequeue(this,n.queue)},n},C.fn.extend({fadeTo:function(t,e,i,n){return this.filter(be).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(e,t,i,n){var s=C.isEmptyObject(e),o=C.speed(t,i,n),t=function(){var t=O(this,C.extend({},e),o);(s||v.get(this,"finish"))&&t.stop(!0)};return t.finish=t,s||!1===o.queue?this.each(t):this.queue(o.queue,t)},stop:function(s,t,o){var r=function(t){var e=t.stop;delete t.stop,e(o)};return"string"!=typeof s&&(o=t,t=s,s=void 0),t&&this.queue(s||"fx",[]),this.each(function(){var t=!0,e=null!=s&&s+"queueHooks",i=C.timers,n=v.get(this);if(e)n[e]&&n[e].stop&&r(n[e]);else for(e in n)n[e]&&n[e].stop&&_i.test(e)&&r(n[e]);for(e=i.length;e--;)i[e].elem!==this||null!=s&&i[e].queue!==s||(i[e].anim.stop(o),t=!1,i.splice(e,1));!t&&o||C.dequeue(this,s)})},finish:function(r){return!1!==r&&(r=r||"fx"),this.each(function(){var t,e=v.get(this),i=e[r+"queue"],n=e[r+"queueHooks"],s=C.timers,o=i?i.length:0;for(e.finish=!0,C.queue(this,r,[]),n&&n.stop&&n.stop.call(this,!0),t=s.length;t--;)s[t].elem===this&&s[t].queue===r&&(s[t].anim.stop(!0),s.splice(t,1));for(t=0;t<o;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete e.finish})}}),C.each(["toggle","show","hide"],function(t,n){var s=C.fn[n];C.fn[n]=function(t,e,i){return null==t||"boolean"==typeof t?s.apply(this,arguments):this.animate(wi(n,!0),t,e,i)}}),C.each({slideDown:wi("show"),slideUp:wi("hide"),slideToggle:wi("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,n){C.fn[t]=function(t,e,i){return this.animate(n,t,e,i)}}),C.timers=[],C.fx.tick=function(){var t,e=0,i=C.timers;for(gi=Date.now();e<i.length;e++)(t=i[e])()||i[e]!==t||i.splice(e--,1);i.length||C.fx.stop(),gi=void 0},C.fx.timer=function(t){C.timers.push(t),C.fx.start()},C.fx.interval=13,C.fx.start=function(){mi||(mi=!0,bi())},C.fx.stop=function(){mi=null},C.fx.speeds={slow:600,fast:200,_default:400},C.fn.delay=function(n,t){return n=C.fx&&C.fx.speeds[n]||n,this.queue(t=t||"fx",function(t,e){var i=x.setTimeout(t,n);e.stop=function(){x.clearTimeout(i)}})},l=k.createElement("input"),r=k.createElement("select").appendChild(k.createElement("option")),l.type="checkbox",g.checkOn=""!==l.value,g.optSelected=r.selected,(l=k.createElement("input")).value="t",l.type="radio",g.radioValue="t"===l.value;var ki,Ci=C.expr.attrHandle,Di=(C.fn.extend({attr:function(t,e){return oe(this,C.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){C.removeAttr(this,t)})}}),C.extend({attr:function(t,e,i){var n,s,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof t.getAttribute?C.prop(t,e,i):(1===o&&C.isXMLDoc(t)||(s=C.attrHooks[e.toLowerCase()]||(C.expr.match.bool.test(e)?ki:void 0)),void 0!==i?null===i?void C.removeAttr(t,e):s&&"set"in s&&void 0!==(n=s.set(t,i,e))?n:(t.setAttribute(e,i+""),i):!(s&&"get"in s&&null!==(n=s.get(t,e)))&&null==(n=C.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){var i;if(!g.radioValue&&"radio"===e&&y(t,"input"))return i=t.value,t.setAttribute("type",e),i&&(t.value=i),e}}},removeAttr:function(t,e){var i,n=0,s=e&&e.match(N);
vendor: 16,749 bytes, line 1
1if(s&&1===t.nodeType)for(;i=s[n++];)t.removeAttribute(i)}}),ki={set:function(t,e,i){return!1===e?C.removeAttr(t,i):t.setAttribute(i,i),i}},C.each(C.expr.match.bool.source.match(/\w+/g),function(t,e){var r=Ci[e]||C.find.attr;Ci[e]=function(t,e,i){var n,s,o=e.toLowerCase();return i||(s=Ci[o],Ci[o]=n,n=null!=r(t,e,i)?o:null,Ci[o]=s),n}}),/^(?:input|select|textarea|button)$/i),Ti=/^(?:a|area)$/i;function Si(t){return(t.match(N)||[]).join(" ")}function Ii(t){return t.getAttribute&&t.getAttribute("class")||""}function Pi(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(N)||[]}C.fn.extend({prop:function(t,e){return oe(this,C.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each(function(){delete this[C.propFix[t]||t]})}}),C.extend({prop:function(t,e,i){var n,s,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&C.isXMLDoc(t)||(e=C.propFix[e]||e,s=C.propHooks[e]),void 0!==i?s&&"set"in s&&void 0!==(n=s.set(t,i,e))?n:t[e]=i:s&&"get"in s&&null!==(n=s.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=C.find.attr(t,"tabindex");return e?parseInt(e,10):Di.test(t.nodeName)||Ti.test(t.nodeName)&&t.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),g.optSelected||(C.propHooks.selected={get:function(t){t=t.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(t){t=t.parentNode;t&&(t.selectedIndex,t.parentNode)&&t.parentNode.selectedIndex}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){C.propFix[this.toLowerCase()]=this}),C.fn.extend({addClass:function(e){var t,i,n,s,o,r;return b(e)?this.each(function(t){C(this).addClass(e.call(this,t,Ii(this)))}):(t=Pi(e)).length?this.each(function(){if(n=Ii(this),i=1===this.nodeType&&" "+Si(n)+" "){for(o=0;o<t.length;o++)s=t[o],i.indexOf(" "+s+" ")<0&&(i+=s+" ");r=Si(i),n!==r&&this.setAttribute("class",r)}}):this},removeClass:function(e){var t,i,n,s,o,r;return b(e)?this.each(function(t){C(this).removeClass(e.call(this,t,Ii(this)))}):arguments.length?(t=Pi(e)).length?this.each(function(){if(n=Ii(this),i=1===this.nodeType&&" "+Si(n)+" "){for(o=0;o<t.length;o++)for(s=t[o];-1<i.indexOf(" "+s+" ");)i=i.replace(" "+s+" "," ");r=Si(i),n!==r&&this.setAttribute("class",r)}}):this:this.attr("class","")},toggleClass:function(e,i){var t,n,s,o,r=typeof e,a="string"==r||Array.isArray(e);return b(e)?this.each(function(t){C(this).toggleClass(e.call(this,t,Ii(this),i),i)}):"boolean"==typeof i&&a?i?this.addClass(e):this.removeClass(e):(t=Pi(e),this.each(function(){if(a)for(o=C(this),s=0;s<t.length;s++)n=t[s],o.hasClass(n)?o.removeClass(n):o.addClass(n);else void 0!==e&&"boolean"!=r||((n=Ii(this))&&v.set(this,"__className__",n),this.setAttribute&&this.setAttribute("class",!n&&!1!==e&&v.get(this,"__className__")||""))}))},hasClass:function(t){for(var e,i=0,n=" "+t+" ";e=this[i++];)if(1===e.nodeType&&-1<(" "+Si(Ii(e))+" ").indexOf(n))return!0;return!1}});var Mi=/\r/g,Ai=(C.fn.extend({val:function(e){var i,t,n,s=this[0];return arguments.length?(n=b(e),this.each(function(t){1===this.nodeType&&(null==(t=n?e.call(this,t,C(this).val()):e)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=C.map(t,function(t){return null==t?"":t+""})),(i=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in i&&void 0!==i.set(this,t,"value")||(this.value=t))})):s?(i=C.valHooks[s.type]||C.valHooks[s.nodeName.toLowerCase()])&&"get"in i&&void 0!==(t=i.get(s,"value"))?t:"string"==typeof(t=s.value)?t.replace(Mi,""):null==t?"":t:void 0}}),C.extend({valHooks:{option:{get:function(t){var e=C.find.attr(t,"value");return null!=e?e:Si(C.text(t))}},select:{get:function(t){for(var e,i=t.options,n=t.selectedIndex,s="select-one"===t.type,o=s?null:[],r=s?n+1:i.length,a=n<0?r:s?n:0;a<r;a++)if(((e=i[a]).selected||a===n)&&!e.disabled&&(!e.parentNode.disabled||!y(e.parentNode,"optgroup"))){if(e=C(e).val(),s)return e;o.push(e)}return o},set:function(t,e){for(var i,n,s=t.options,o=C.makeArray(e),r=s.length;r--;)((n=s[r]).selected=-1<C.inArray(C.valHooks.option.get(n),o))&&(i=!0);return i||(t.selectedIndex=-1),o}}}}),C.each(["radio","checkbox"],function(){C.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=-1<C.inArray(C(t).val(),e)}},g.checkOn||(C.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),x.location),Ni={guid:Date.now()},Ei=/\?/,Hi=(C.parseXML=function(t){var e,i;if(!t||"string"!=typeof t)return null;try{e=(new x.DOMParser).parseFromString(t,"text/xml")}catch(t){}return i=e&&e.getElementsByTagName("parsererror")[0],e&&!i||C.error("Invalid XML: "+(i?C.map(i.childNodes,function(t){return t.textContent}).join("\n"):t)),e},/^(?:focusinfocus|focusoutblur)$/),Oi=function(t){t.stopPropagation()},zi=(C.extend(C.event,{trigger:function(t,e,i,n){var s,o,r,a,l,h,c,u=[i||k],d=q.call(t,"type")?t.type:t,p=q.call(t,"namespace")?t.namespace.split("."):[],f=c=o=i=i||k;if(3!==i.nodeType&&8!==i.nodeType&&!Hi.test(d+C.event.triggered)&&(-1<d.indexOf(".")&&(d=(p=d.split(".")).shift(),p.sort()),a=d.indexOf(":")<0&&"on"+d,(t=t[C.expando]?t:new C.Event(d,"object"==typeof t&&t)).isTrigger=n?2:3,t.namespace=p.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),e=null==e?[t]:C.makeArray(e,[t]),h=C.event.special[d]||{},n||!h.trigger||!1!==h.trigger.apply(i,e))){if(!n&&!h.noBubble&&!Y(i)){for(r=h.delegateType||d,Hi.test(r+d)||(f=f.parentNode);f;f=f.parentNode)u.push(f),o=f;o===(i.ownerDocument||k)&&u.push(o.defaultView||o.parentWindow||x)}for(s=0;(f=u[s++])&&!t.isPropagationStopped();)c=f,t.type=1<s?r:h.bindType||d,(l=(v.get(f,"events")||Object.create(null))[t.type]&&v.get(f,"handle"))&&l.apply(f,e),(l=a&&f[a])&&l.apply&&he(f)&&(t.result=l.apply(f,e),!1===t.result)&&t.preventDefault();return t.type=d,n||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(u.pop(),e)||!he(i)||a&&b(i[d])&&!Y(i)&&((o=i[a])&&(i[a]=null),C.event.triggered=d,t.isPropagationStopped()&&c.addEventListener(d,Oi),i[d](),t.isPropagationStopped()&&c.removeEventListener(d,Oi),C.event.triggered=void 0,o)&&(i[a]=o),t.result}},simulate:function(t,e,i){i=C.extend(new C.Event,i,{type:t,isSimulated:!0});C.event.trigger(i,null,e)}}),C.fn.extend({trigger:function(t,e){return this.each(function(){C.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];if(i)return C.event.trigger(t,e,i,!0)}}),/\[\]$/),Li=/\r?\n/g,Fi=/^(?:submit|button|image|reset|file)$/i,Wi=/^(?:input|select|textarea|keygen)/i;C.param=function(t,e){var i,n=[],s=function(t,e){e=b(e)?e():e;n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==e?"":e)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!C.isPlainObject(t))C.each(t,function(){s(this.name,this.value)});else for(i in t)!function o(i,t,n,s){if(Array.isArray(t))C.each(t,function(t,e){n||zi.test(i)?s(i,e):o(i+"["+("object"==typeof e&&null!=e?t:"")+"]",e,n,s)});else if(n||"object"!==K(t))s(i,t);else for(var e in t)o(i+"["+e+"]",t[e],n,s)}(i,t[i],e,s);return n.join("&")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=C.prop(this,"elements");return t?C.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!C(this).is(":disabled")&&Wi.test(this.nodeName)&&!Fi.test(t)&&(this.checked||!ke.test(t))}).map(function(t,e){var i=C(this).val();return null==i?null:Array.isArray(i)?C.map(i,function(t){return{name:e.name,value:t.replace(Li,"\r\n")}}):{name:e.name,value:i.replace(Li,"\r\n")}}).get()}});var ji=/%20/g,Ri=/#.*$/,qi=/([?&])_=[^&]*/,$i=/^(.*?):[ \t]*([^\r\n]*)$/gm,Bi=/^(?:GET|HEAD)$/,Yi=/^\/\//,Ui={},Vi={},Ki="*/".concat("*"),Xi=k.createElement("a");function Qi(o){return function(t,e){"string"!=typeof t&&(e=t,t="*");var i,n=0,s=t.toLowerCase().match(N)||[];if(b(e))for(;i=s[n++];)"+"===i[0]?(i=i.slice(1)||"*",(o[i]=o[i]||[]).unshift(e)):(o[i]=o[i]||[]).push(e)}}function Gi(e,n,s,o){var r={},a=e===Vi;function l(t){var i;return r[t]=!0,C.each(e[t]||[],function(t,e){e=e(n,s,o);return"string"!=typeof e||a||r[e]?a?!(i=e):void 0:(n.dataTypes.unshift(e),l(e),!1)}),i}return l(n.dataTypes[0])||!r["*"]&&l("*")}function Ji(t,e){var i,n,s=C.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((s[i]?t:n=n||{})[i]=e[i]);return n&&C.extend(!0,t,n),t}Xi.href=Ai.href,C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ai.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ai.protocol),global:!0,processData:!0,"async":!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ki,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ji(Ji(t,C.ajaxSettings),e):Ji(C.ajaxSettings,t)},ajaxPrefilter:Qi(Ui),ajaxTransport:Qi(Vi),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0);var l,h,c,i,u,d,p,n,s,f=C.ajaxSetup({},e=e||{}),g=f.context||f,m=f.context&&(g.nodeType||g.jquery)?C(g):C.event,v=C.Deferred(),_=C.Callbacks("once memory"),b=f.statusCode||{},o={},r={},a="canceled",y={readyState:0,getResponseHeader:function(t){var e;if(d){if(!i)for(i={};e=$i.exec(c);)i[e[1].toLowerCase()+" "]=(i[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=i[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return d?c:null},setRequestHeader:function(t,e){return null==d&&(t=r[t.toLowerCase()]=r[t.toLowerCase()]||t,o[t]=e),this},overrideMimeType:function(t){return null==d&&(f.mimeType=t),this},statusCode:function(t){if(t)if(d)y.always(t[y.status]);else for(var e in t)b[e]=[b[e],t[e]];return this},abort:function(t){t=t||a;return l&&l.abort(t),w(0,t),this}};if(v.promise(y),f.url=((t||f.url||Ai.href)+"").replace(Yi,Ai.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(N)||[""],null==f.crossDomain){s=k.createElement("a");try{s.href=f.url,s.href=s.href,f.crossDomain=Xi.protocol+"//"+Xi.host!=s.protocol+"//"+s.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=C.param(f.data,f.traditional)),Gi(Ui,f,e,y),!d){for(n in(p=C.event&&f.global)&&0==C.active++&&C.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Bi.test(f.type),h=f.url.replace(Ri,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(ji,"+")):(s=f.url.slice(h.length),f.data&&(f.processData||"string"==typeof f.data)&&(h+=(Ei.test(h)?"&":"?")+f.data,delete f.data),!1===f.cache&&(h=h.replace(qi,"$1"),s=(Ei.test(h)?"&":"?")+"_="+Ni.guid+++s),f.url=h+s),f.ifModified&&(C.lastModified[h]&&y.setRequestHeader("If-Modified-Since",C.lastModified[h]),C.etag[h])&&y.setRequestHeader("If-None-Match",C.etag[h]),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&y.setRequestHeader("Content-Type",f.contentType),y.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Ki+"; q=0.01":""):f.accepts["*"]),f.headers)y.setRequestHeader(n,f.headers[n]);if(f.beforeSend&&(!1===f.beforeSend.call(g,y,f)||d))return y.abort();if(a="abort",_.add(f.complete),y.done(f.success),y.fail(f.error),l=Gi(Vi,f,e,y)){if(y.readyState=1,p&&m.trigger("ajaxSend",[y,f]),d)return y;f["async"]&&0<f.timeout&&(u=x.setTimeout(function(){y.abort("timeout")},f.timeout));try{d=!1,l.send(o,w)}catch(t){if(d)throw t;w(-1,t)}}else w(-1,"No Transport")}return y;function w(t,e,i,n){var s,o,r,a=e;d||(d=!0,u&&x.clearTimeout(u),l=void 0,c=n||"",y.readyState=0<t?4:0,n=200<=t&&t<300||304===t,i&&(r=function(t,e,i){for(var n,s,o,r,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(s in a)if(a[s]&&a[s].test(n)){l.unshift(s);break}if(l[0]in i)o=l[0];else{for(s in i){if(!l[0]||t.converters[s+" "+l[0]]){o=s;break}r=r||s}o=o||r}if(o)return o!==l[0]&&l.unshift(o),i[o]}(f,y,i)),!n&&-1<C.inArray("script",f.dataTypes)&&C.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),r=function(t,e,i,n){var s,o,r,a,l,h={},c=t.dataTypes.slice();if(c[1])for(r in t.converters)h[r.toLowerCase()]=t.converters[r];for(o=c.shift();o;)if(t.responseFields[o]&&(i[t.responseFields[o]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(r=h[l+" "+o]||h["* "+o]))for(s in h)if((a=s.split(" "))[1]===o&&(r=h[l+" "+a[0]]||h["* "+a[0]])){!0===r?r=h[s]:!0!==h[s]&&(o=a[0],c.unshift(a[1]));break}if(!0!==r)if(r&&t["throws"])e=r(e);else try{e=r(e)}catch(t){return{state:"parsererror",error:r?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(f,r,y,n),n?(f.ifModified&&((i=y.getResponseHeader("Last-Modified"))&&(C.lastModified[h]=i),i=y.getResponseHeader("etag"))&&(C.etag[h]=i),204===t||"HEAD"===f.type?a="nocontent":304===t?a="notmodified":(a=r.state,s=r.data,n=!(o=r.error))):(o=a,!t&&a||(a="error",t<0&&(t=0))),y.status=t,y.statusText=(e||a)+"",n?v.resolveWith(g,[s,a,y]):v.rejectWith(g,[y,a,o]),y.statusCode(b),b=void 0,p&&m.trigger(n?"ajaxSuccess":"ajaxError",[y,f,n?s:o]),_.fireWith(g,[y,a]),p&&(m.trigger("ajaxComplete",[y,f]),--C.active||C.event.trigger("ajaxStop")))}},getJSON:function(t,e,i){return C.get(t,e,i,"json")},getScript:function(t,e){return C.get(t,void 0,e,"script")}}),C.each(["get","post"],function(t,s){C[s]=function(t,e,i,n){return b(e)&&(n=n||i,i=e,e=void 0),C.ajax(C.extend({url:t,type:s,dataType:n,data:e,success:i},C.isPlainObject(t)&&t))}}),C.ajaxPrefilter(function(t){for(var e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")}),C._evalUrl=function(t,e,i){return C.ajax({url:t,type:"GET",dataType:"script",cache:!0,"async":!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){C.globalEval(t,e,i)}})},C.fn.extend({wrapAll:function(t){return this[0]&&(b(t)&&(t=t.call(this[0])),t=C(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(i){return b(i)?this.each(function(t){C(this).wrapInner(i.call(this,t))}):this.each(function(){var t=C(this),e=t.contents();e.length?e.wrapAll(i):t.append(i)})},wrap:function(e){var i=b(e);return this.each(function(t){C(this).wrapAll(i?e.call(this,t):e)})},unwrap:function(t){return this.parent(t).not("body").each(function(){C(this).replaceWith(this.childNodes)}),this}}),C.expr.pseudos.hidden=function(t){return!C.expr.pseudos.visible(t)},C.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},C.ajaxSettings.xhr=function(){try{return new x.XMLHttpRequest}catch(z){}};var Zi={0:200,1223:204},tn=C.ajaxSettings.xhr();g.cors=!!tn&&"withCredentials"in tn,g.ajax=tn=!!tn,C.ajaxTransport(function(s){var o,r;if(g.cors||tn&&!s.crossDomain)return{send:function(t,e){var i,n=s.xhr();if(n.open(s.type,s.url,s["async"],s.username,s.password),s.xhrFields)for(i in s.xhrFields)n[i]=s.xhrFields[i];for(i in s.mimeType&&n.overrideMimeType&&n.overrideMimeType(s.mimeType),s.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t)n.setRequestHeader(i,t[i]);o=function(t){return function(){o&&(o=r=n.onload=n.onerror=n.onabort=n.ontimeout=n.onreadystatechange=null,"abort"===t?n.abort():"error"===t?"number"!=typeof n.status?e(0,"error"):e(n.status,n.statusText):e(Zi[n.status]||n.status,n.statusText,"text"!==(n.responseType||"text")||"string"!=typeof n.responseText?{binary:n.response}:{text:n.responseText},n.getAllResponseHeaders()))}},n.onload=o(),r=n.onerror=n.ontimeout=o("error"),void 0!==n.onabort?n.onabort=r:n.onreadystatechange=function(){4===n.readyState&&x.setTimeout(function(){o&&r()})},o=o("abort");try{n.send(s.hasContent&&s.data||null)}catch(t){if(o)throw t}},abort:function(){o&&o()}}}),C.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),C.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return C.globalEval(t),t}}}),C.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),C.ajaxTransport("script",function(i){var n,s;if(i.crossDomain||i.scriptAttrs)return{send:function(t,e){n=C("<script>").attr(i.scriptAttrs||{}
vendor: 4,141 bytes, line 1
1).prop({charset:i.scriptCharset,src:i.url}).on("load error",s=function(t){n.remove(),s=null,t&&e("error"===t.type?404:200,t.type)}),k.head.appendChild(n[0])},abort:function(){s&&s()}}});var en=[],nn=/(=)\?(?=&|$)|\?\?/,sn=(C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=en.pop()||C.expando+"_"+Ni.guid++;return this[t]=!0,t}}),C.ajaxPrefilter("json jsonp",function(t,e,i){var n,s,o,r=!1!==t.jsonp&&(nn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(t.data)&&"data");if(r||"jsonp"===t.dataTypes[0])return n=t.jsonpCallback=b(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,r?t[r]=t[r].replace(nn,"$1"+n):!1!==t.jsonp&&(t.url+=(Ei.test(t.url)?"&":"?")+t.jsonp+"="+n),t.converters["script json"]=function(){return o||C.error(n+" was not called"),o[0]},t.dataTypes[0]="json",s=x[n],x[n]=function(){o=arguments},i.always(function(){void 0===s?C(x).removeProp(n):x[n]=s,t[n]&&(t.jsonpCallback=e.jsonpCallback,en.push(n)),o&&b(s)&&s(o[0]),o=s=void 0}),"script"}),g.createHTMLDocument=((t=k.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===t.childNodes.length),C.parseHTML=function(t,e,i){return"string"!=typeof t?[]:("boolean"==typeof e&&(i=e,e=!1),e||(g.createHTMLDocument?((n=(e=k.implementation.createHTMLDocument("")).createElement("base")).href=k.location.href,e.head.appendChild(n)):e=k),n=!i&&[],(i=Ut.exec(t))?[e.createElement(i[1])]:(i=Ie([t],e,n),n&&n.length&&C(n).remove(),C.merge([],i.childNodes)));var n},C.fn.load=function(t,e,i){var n,s,o,r=this,a=t.indexOf(" ");return-1<a&&(n=Si(t.slice(a)),t=t.slice(0,a)),b(e)?(i=e,e=void 0):e&&"object"==typeof e&&(s="POST"),0<r.length&&C.ajax({url:t,type:s||"GET",dataType:"html",data:e}).done(function(t){o=arguments,r.html(n?C("<div>").append(C.parseHTML(t)).find(n):t)}).always(i&&function(t,e){r.each(function(){i.apply(this,o||[t.responseText,e,t])})}),this},C.expr.pseudos.animated=function(e){return C.grep(C.timers,function(t){return e===t.elem}).length},C.offset={setOffset:function(t,e,i){var n,s,o,r,a=C.css(t,"position"),l=C(t),h={};"static"===a&&(t.style.position="relative"),o=l.offset(),n=C.css(t,"top"),r=C.css(t,"left"),a=("absolute"===a||"fixed"===a)&&-1<(n+r).indexOf("auto")?(s=(a=l.position()).top,a.left):(s=parseFloat(n)||0,parseFloat(r)||0),null!=(e=b(e)?e.call(t,i,C.extend({},o)):e).top&&(h.top=e.top-o.top+s),null!=e.left&&(h.left=e.left-o.left+a),"using"in e?e.using.call(t,h):l.css(h)}},C.fn.extend({offset:function(e){var t,i;return arguments.length?void 0===e?this:this.each(function(t){C.offset.setOffset(this,e,t)}):(i=this[0])?i.getClientRects().length?(t=i.getBoundingClientRect(),i=i.ownerDocument.defaultView,{top:t.top+i.pageYOffset,left:t.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i,n=this[0],s={top:0,left:0};if("fixed"===C.css(n,"position"))e=n.getBoundingClientRect();else{for(e=this.offset(),i=n.ownerDocument,t=n.offsetParent||i.documentElement;t&&(t===i.body||t===i.documentElement)&&"static"===C.css(t,"position");)t=t.parentNode;t&&t!==n&&1===t.nodeType&&((s=C(t).offset()).top+=C.css(t,"borderTopWidth",!0),s.left+=C.css(t,"borderLeftWidth",!0))}return{top:e.top-s.top-C.css(n,"marginTop",!0),left:e.left-s.left-C.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===C.css(t,"position");)t=t.offsetParent;return t||me})}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,s){var o="pageYOffset"===s;C.fn[e]=function(t){return oe(this,function(t,e,i){var n;if(Y(t)?n=t:9===t.nodeType&&(n=t.defaultView),void 0===i)return n?n[s]:t[e];n?n.scrollTo(o?n.pageXOffset:i,o?i:n.pageYOffset):t[e]=i},e,t,arguments.length)}}),C.each(["top","left"],function(t,i){C.cssHooks[i]=ii(g.pixelPosition,function(t,e){if(e)return e=ei(t,i),Qe.test(e)?C(t).position()[i]+"px":e})}),C.each({Height:"height",Width:"width"},function(r,a){C.each({padding:"inner"+r,content:a,"":"outer"+r},function(n,o){C.fn[o]=function(t,e){var i=arguments.length&&(n||"boolean"!=typeof t),s=n||(!0===t||!0===e?"margin":"border");
1return oe(this,function(t,e,i){var n;return Y(t)?0===o.indexOf("outer")?t["inner"+r]:t.document.documentElement["client"+r]:9===t.nodeType?(n=t.documentElement,Math.max(t.body["scroll"+r],n["scroll"+r],t.body["offset"+r],n["offset"+r],n["client"+r])):void 0===i?C.css(t,e,s):C.style(t,e,i,s)},a,i?t:void 0,i)}})}),C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){C.fn[e]=function(t){return this.on(e,t)}}),C.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)},hover:function(t,e){return this.on("mouseenter",t).on("mouseleave",e||t)}}),C.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,i){C.fn[i]=function(t,e){return 0<arguments.length?this.on(i,null,t,e):this.trigger(i)}}),/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g),on=(C.proxy=function(t,e){var i,n;if("string"==typeof e&&(n=t[e],e=t,t=n),b(t))return i=a.call(arguments,2),(n=function(){return t.apply(e||this,i.concat(a.call(arguments)))}).guid=t.guid=t.guid||C.guid++,n},C.holdReady=function(t){t?C.readyWait++:C.ready(!0)},C.isArray=Array.isArray,C.parseJSON=JSON.parse,C.nodeName=y,C.isFunction=b,C.isWindow=Y,C.camelCase=E,C.type=K,C.now=Date.now,C.isNumeric=function(t){var e=C.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},C.trim=function(t){return null==t?"":(t+"").replace(sn,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return C}),x.jQuery),rn=x.$;return C.noConflict=function(t){return x.$===C&&(x.$=rn),t&&x.jQuery===C&&(x.jQuery=on),C},void 0===z&&(x.jQuery=x.$=C),C}),void 0===jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"function"==typeof define&&define.amd?define(["jquery"],window,t):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(a,n){"use strict";function l(t){var e=n.console;s[t]||(s[t]=!0,a.migrateWarnings.push(t),e&&e.warn&&!a.migrateMute&&(e.warn("JQMIGRATE: "+t),a.migrateTrace)&&e.trace&&e.trace())}function t(t,e,i,n){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){return l(n),i},set:function(t){l(n),i=t}})}function i(t,e,i,n){t[e]=function(){return l(n),i.apply(this,arguments)}}a.migrateVersion="3.0.1",n.console&&n.console.log&&(a&&!/^[12]\./.test(a.fn.jquery)||n.console.log("JQMIGRATE: jQuery 3.0.0+ REQUIRED"),a.migrateWarnings)&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times");var e,s={},o=(a.migrateWarnings=[],void 0===a.migrateTrace&&(a.migrateTrace=!0),a.migrateReset=function(){s={},a.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&l("jQuery is not compatible with Quirks Mode"),a.fn.init),r=a.isNumeric,h=a.find,c=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,u=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g;for(e in a.fn.init=function(t){var e=Array.prototype.slice.call(arguments);return"string"==typeof t&&"#"===t&&(l("jQuery( '#' ) is not a valid selector"),e[0]=[]),o.apply(this,e)},a.fn.init.prototype=a.fn,a.find=function(t){var e=Array.prototype.slice.call(arguments);if("string"==typeof t&&c.test(t))try{n.document.querySelector(t)}catch(i){t=t.replace(u,function(t,e,i,n){return"["+e+i+'"'+n+'"]'});try{n.document.querySelector(t),l("Attribute selector with '#' must be quoted: "+e[0]),e[0]=t}catch(t){l("Attribute selector with '#' was not fixed: "+e[0])}}return h.apply(this,e)},h)Object.prototype.hasOwnProperty.call(h,e)&&(a.find[e]=h[e]);a.fn.size=function(){return l("jQuery.fn.size() is deprecated and removed; use the .length property"),this.length},a.parseJSON=function(){return l("jQuery.parseJSON is deprecated; use JSON.parse"),JSON.parse.apply(null,arguments)},a.isNumeric=function(t){var e,i=r(t),t=(e=(t=t)&&t.toString(),!a.isArray(t)&&0<=e-parseFloat(e)+1);return i!==t&&l("jQuery.isNumeric() should not be called on constructed objects"),t},i(a,"holdReady",a.holdReady,"jQuery.holdReady is deprecated"),i(a,"unique",a.uniqueSort,"jQuery.unique is deprecated; use jQuery.uniqueSort"),t(a.expr,"filters",a.expr.pseudos,"jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),t(a.expr,":",a.expr.pseudos,"jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos");var d=a.ajax,p=(a.ajax=function(){var t=d.apply(this,arguments);return t.promise&&(i(t,"success",t.done,"jQXHR.success is deprecated and removed"),i(t,"error",t.fail,"jQXHR.error is deprecated and removed"),i(t,"complete",t.always,"jQXHR.complete is deprecated and removed")),t},a.fn.removeAttr),f=a.fn.toggleClass,g=/\S+/g,m=(a.fn.removeAttr=function(t){var i=this;return a.each(t.match(g),function(t,e){a.expr.match.bool.test(e)&&(l("jQuery.fn.removeAttr no longer sets boolean properties: "+e),i.prop(e,!1))}),p.apply(this,arguments)},!(a.fn.toggleClass=function(e){return void 0!==e&&"boolean"!=typeof e?f.apply(this,arguments):(l("jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var t=this.getAttribute&&this.getAttribute("class")||"";t&&a.data(this,"__className__",t),this.setAttribute&&this.setAttribute("class",!t&&!1!==e&&a.data(this,"__className__")||"")}))})),v=(a.swap&&a.each(["height","width","reliableMarginRight"],function(t,e){var i=a.cssHooks[e]&&a.cssHooks[e].get;i&&(a.cssHooks[e].get=function(){var t;return m=!0,t=i.apply(this,arguments),m=!1,t})}
1),a.swap=function(t,e,i,n){var s,o={};for(s in m||l("jQuery.swap() is undocumented and deprecated"),e)o[s]=t.style[s],t.style[s]=e[s];for(s in n=i.apply(t,n||[]),e)t.style[s]=o[s];return n},a.data),_=(a.data=function(t,e,i){if(e&&"object"==typeof e&&2===arguments.length){var n,s=a.hasData(t)&&v.call(this,t),o={};for(n in e)n!==a.camelCase(n)?(l("jQuery.data() always sets/gets camelCased names: "+n),s[n]=e[n]):o[n]=e[n];return v.call(this,t,o),e}return e&&"string"==typeof e&&e!==a.camelCase(e)&&(s=a.hasData(t)&&v.call(this,t))&&e in s?(l("jQuery.data() always sets/gets camelCased names: "+e),2<arguments.length&&(s[e]=i),s[e]):v.apply(this,arguments)},a.Tween.prototype.run),b=function(t){return t},y=(a.Tween.prototype.run=function(){1<a.easing[this.easing].length&&(l("'jQuery.easing."+this.easing.toString()+"' should use only one argument"),a.easing[this.easing]=b),_.apply(this,arguments)},a.fx.interval=a.fx.interval||13,n.requestAnimationFrame&&t(a.fx,"interval",a.fx.interval,"jQuery.fx.interval is deprecated"),a.fn.load),w=a.event.add,x=a.event.fix,k=(a.event.props=[],a.event.fixHooks={},t(a.event.props,"concat",a.event.props.concat,"jQuery.event.props.concat() is deprecated and removed"),a.event.fix=function(t){var e=t.type,i=this.fixHooks[e],n=a.event.props;if(n.length)for(l("jQuery.event.props are deprecated and removed: "+n.join());n.length;)a.event.addProp(n.pop());if(i&&!i._migrated_&&(i._migrated_=!0,l("jQuery.event.fixHooks are deprecated and removed: "+e),n=i.props)&&n.length)for(;n.length;)a.event.addProp(n.pop());return e=x.call(this,t),i&&i.filter?i.filter(e,t):e},a.event.add=function(t,e){return t===n&&"load"===e&&"complete"===n.document.readyState&&l("jQuery(window).on('load'...) called after load event occurred"),w.apply(this,arguments)},a.each(["load","unload","error"],function(t,e){a.fn[e]=function(){var t=Array.prototype.slice.call(arguments,0);return"load"===e&&"string"==typeof t[0]?y.apply(this,t):(l("jQuery.fn."+e+"() is deprecated"),t.splice(0,0,e),arguments.length?this.on.apply(this,t):(this.triggerHandler.apply(this,t),this))}}),a.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,i){a.fn[i]=function(t,e){return l("jQuery.fn."+i+"() event shorthand is deprecated"),0<arguments.length?this.on(i,null,t,e):this.trigger(i)}}),a(function(){a(n.document).triggerHandler("ready")}),a.event.special.ready={setup:function(){this===n.document&&l("'ready' event is deprecated")}},a.fn.extend({bind:function(t,e,i){return l("jQuery.fn.bind() is deprecated"),this.on(t,null,e,i)},unbind:function(t,e){return l("jQuery.fn.unbind() is deprecated"),this.off(t,null,e)},delegate:function(t,e,i,n){return l("jQuery.fn.delegate() is deprecated"),this.on(e,t,i,n)},undelegate:function(t,e,i){return l("jQuery.fn.undelegate() is deprecated"),1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)},hover:function(t,e){return l("jQuery.fn.hover() is deprecated"),this.on("mouseenter",t).on("mouseleave",e||t)}}),a.fn.offset),C=(a.fn.offset=function(){var t,e=this[0],i={top:0,left:0};return e&&e.nodeType?(t=(e.ownerDocument||n.document).documentElement,a.contains(t,e)?k.apply(this,arguments):(l("jQuery.fn.offset() requires an element connected to a document"),i)):(l("jQuery.fn.offset() requires a valid DOM element"),i)},a.param),D=(a.param=function(t,e){var i=a.ajaxSettings&&a.ajaxSettings.traditional;return void 0===e&&i&&(l("jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),e=i),C.call(this,t,e)},a.fn.andSelf||a.fn.addBack),T=(a.fn.andSelf=function(){return l("jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),D.apply(this,arguments)},a.Deferred),S=[["resolve","done",a.Callbacks("once memory"),a.Callbacks("once memory"),"resolved"],["reject","fail",a.Callbacks("once memory"),a.Callbacks("once memory"),"rejected"],["notify","progress",a.Callbacks("memory"),a.Callbacks("memory")]];return a.Deferred=function(t){var o=T(),r=o.promise();
vendor: 54,437 bytes, line 1
1return o.pipe=r.pipe=function(){var s=arguments;return l("deferred.pipe() is deprecated"),a.Deferred(function(n){a.each(S,function(t,e){var i=a.isFunction(s[t])&&s[t];o[e[1]](function(){var t=i&&i.apply(this,arguments);t&&a.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[e[0]+"With"](this===r?n.promise():this,i?[t]:arguments)})}),s=null}).promise()},t&&t.call(o,o),o},a.Deferred.exceptionHook=T.exceptionHook,a}),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(V){"use strict";V.ui=V.ui||{},V.ui.version="1.13.1";var s,n,x,k,o,r,a,l,h,i,c,e,u,O=0,z=Array.prototype.hasOwnProperty,L=Array.prototype.slice;function F(t,e,i){return[parseFloat(t[0])*(h.test(t[0])?e/100:1),parseFloat(t[1])*(h.test(t[1])?i/100:1)]}function C(t,e){return parseInt(V.css(t,e),10)||0}function W(t){return null!=t&&t===t.window}V.cleanData=(s=V.cleanData,function(t){for(var e,i,n=0;null!=(i=t[n]);n++)(e=V._data(i,"events"))&&e.remove&&V(i).triggerHandler("remove");s(t)}),V.widget=function(t,i,e){var n,s,o,r={},a=t.split(".")[0],l=a+"-"+(t=t.split(".")[1]);return e||(e=i,i=V.Widget),Array.isArray(e)&&(e=V.extend.apply(null,[{}].concat(e))),V.expr.pseudos[l.toLowerCase()]=function(t){return!!V.data(t,l)},V[a]=V[a]||{},n=V[a][t],s=V[a][t]=function(t,e){if(!this||!this._createWidget)return new s(t,e);arguments.length&&this._createWidget(t,e)},V.extend(s,n,{version:e.version,_proto:V.extend({},e),_childConstructors:[]}),(o=new i).options=V.widget.extend({},o.options),V.each(e,function(e,n){function s(){return i.prototype[e].apply(this,arguments)}function o(t){return i.prototype[e].apply(this,t)}r[e]="function"==typeof n?function(){var t,e=this._super,i=this._superApply;return this._super=s,this._superApply=o,t=n.apply(this,arguments),this._super=e,this._superApply=i,t}:n}),s.prototype=V.widget.extend(o,{widgetEventPrefix:n&&o.widgetEventPrefix||t},r,{constructor:s,namespace:a,widgetName:t,widgetFullName:l}),n?(V.each(n._childConstructors,function(t,e){var i=e.prototype;V.widget(i.namespace+"."+i.widgetName,s,e._proto)}),delete n._childConstructors):i._childConstructors.push(s),V.widget.bridge(t,s),s},V.widget.extend=function(t){for(var e,i,n=L.call(arguments,1),s=0,o=n.length;s<o;s++)for(e in n[s])i=n[s][e],z.call(n[s],e)&&void 0!==i&&(V.isPlainObject(i)?t[e]=V.isPlainObject(t[e])?V.widget.extend({},t[e],i):V.widget.extend({},i):t[e]=i);return t},V.widget.bridge=function(o,e){var r=e.prototype.widgetFullName||o;V.fn[o]=function(i){var t="string"==typeof i,n=L.call(arguments,1),s=this;return t?this.length||"instance"!==i?this.each(function(){var t,e=V.data(this,r);return"instance"===i?(s=e,!1):e?"function"!=typeof e[i]||"_"===i.charAt(0)?V.error("no such method '"+i+"' for "+o+" widget instance"):(t=e[i].apply(e,n))!==e&&void 0!==t?(s=t&&t.jquery?s.pushStack(t.get()):t,!1):void 0:V.error("cannot call methods on "+o+" prior to initialization; attempted to call method '"+i+"'")}):s=void 0:(n.length&&(i=V.widget.extend.apply(null,[i].concat(n))),this.each(function(){var t=V.data(this,r);t?(t.option(i||{}),t._init&&t._init()):V.data(this,r,new e(i,this))})),s}},V.Widget=function(){},V.Widget._childConstructors=[],V.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=V(e||this.defaultElement||this)[0],this.element=V(e),this.uuid=O++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=V(),this.hoverable=V(),this.focusable=V(),this.classesElementLookup={},e!==this&&(V.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=V(e.style?e.ownerDocument:e.document||e),this.window=V(this.document[0].defaultView||this.document[0].parentWindow)),this.options=V.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:V.noop,_create:V.noop,_init:V.noop,destroy:function(){var i=this;this._destroy(),V.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:V.noop,widget:function(){return this.element},option:function(t,e){var i,n,s,o=t;if(0===arguments.length)return V.widget.extend({},this.options);if("string"==typeof t)if(o={},t=(i=t.split(".")).shift(),i.length){for(n=o[t]=V.widget.extend({},this.options[t]),s=0;s<i.length-1;s++)n[i[s]]=n[i[s]]||{},n=n[i[s]];if(t=i.pop(),1===arguments.length)return void 0===n[t]?null:n[t];n[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];o[t]=e}return this._setOptions(o),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,i,n;for(e in t)n=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&n&&n.length&&(i=V(n.get()),this._removeClass(n,e),i.addClass(this._classes({element:i,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(s){var o=[],r=this;function t(t,e){for(var i,n=0;n<t.length;n++)i=r.classesElementLookup[t[n]]||V(),i=s.add?(function(){var i=[];s.element.each(function(t,e){V.map(r.classesElementLookup,function(t){return t}).some(function(t){return t.is(e)})||i.push(e)}),r._on(V(i),{remove:"_untrackClassesElement"})}(),V(V.uniqueSort(i.get().concat(s.element.get())))):V(i.not(s.element).get()),r.classesElementLookup[t[n]]=i,o.push(t[n]),e&&s.classes[t[n]]&&o.push(s.classes[t[n]])}return(s=V.extend({element:this.element,classes:this.options.classes||{}},s)).keys&&t(s.keys.match(/\S+/g)||[],!0),s.extra&&t(s.extra.match(/\S+/g)||[]),o.join(" ")},_untrackClassesElement:function(i){var n=this;V.each(n.classesElementLookup,function(t,e){-1!==V.inArray(i.target,e)&&(n.classesElementLookup[t]=V(e.not(i.target).get()))}),this._off(V(i.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,n){var s="string"==typeof t||null===t;return(i={extra:s?e:i,keys:s?t:e,element:s?this.element:t,add:n="boolean"==typeof n?n:i}).element.toggleClass(this._classes(i),n),this},_on:function(s,o,t){var r,a=this;"boolean"!=typeof s&&(t=o,o=s,s=!1),t?(o=r=V(o),this.bindings=this.bindings.add(o)):(t=o,o=this.element,r=this.widget()),V.each(t,function(t,e){function i(){if(s||!0!==a.options.disabled&&!V(this).hasClass("ui-state-disabled"))return("string"==typeof e?a[e]:e).apply(a,arguments)}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||V.guid++);var n=t.match(/^([\w:-]*)\s*(.*)$/),t=n[1]+a.eventNamespace;(n=n[2])?r.on(t,n,i):o.on(t,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e),this.bindings=V(this.bindings.not(t).get()),this.focusable=V(this.focusable.not(t).get()),this.hoverable=V(this.hoverable.not(t).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(V(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(V(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(V(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(V(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var n,s,o=this.options[t];if(i=i||{},(e=V.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],s=e.originalEvent)for(n in s)n in e||(e[n]=s[n]);return this.element.trigger(e,i),!("function"==typeof o&&!1===o.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},V.each({show:"fadeIn",hide:"fadeOut"},function(o,r){V.Widget.prototype["_"+o]=function(e,t,i){var n,s=(t="string"==typeof t?{effect:t}:t)?!0!==t&&"number"!=typeof t&&t.effect||r:o;"number"==typeof(t=t||{})?t={duration:t}:!0===t&&(t={}),n=!V.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),n&&V.effects&&V.effects.effect[s]?e[o](t):s!==o&&e[s]?e[s](t.duration,t.easing,i):e.queue(function(t){V(this)[o](),i&&i.call(e[0]),t()})}}),V.widget,x=Math.max,k=Math.abs,o=/left|center|right/,r=/top|center|bottom/,a=/[\+\-]\d+(\.[\d]+)?%?/,l=/^\w+/,h=/%$/,i=V.fn.position,V.position={scrollbarWidth:function(){var t,e,i;return void 0!==n?n:(i=(e=V("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>")).children()[0],V("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),n=t-i)},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?V.position.scrollbarWidth():0,height:e?V.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=V(t||window),i=W(e[0]),n=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:i,isDocument:n,offset:i||n?{left:0,top:0}:V(t).offset(),scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:e.outerWidth(),height:e.outerHeight()}}},V.fn.position=function(u){var d,p,f,g,m,t,v,_,b,y,w,e;return u&&u.of?(v="string"==typeof(u=V.extend({},u)).of?V(document).find(u.of):V(u.of),_=V.position.getWithinInfo(u.within),b=V.position.getScrollInfo(_),y=(u.collision||"flip").split(" "),w={},e=9===(t=(e=v)[0]).nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:W(t)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:t.preventDefault?{width:0,height:0,offset:{top:t.pageY,left:t.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()},v[0].preventDefault&&(u.at="left top"),p=e.width,f=e.height,m=V.extend({},g=e.offset),V.each(["my","at"],function(){var t,e,i=(u[this]||"").split(" ");(i=1===i.length?o.test(i[0])?i.concat(["center"]):r.test(i[0])?["center"].concat(i):["center","center"]:i)[0]=o.test(i[0])?i[0]:"center",i[1]=r.test(i[1])?i[1]:"center",t=a.exec(i[0]),e=a.exec(i[1]),w[this]=[t?t[0]:0,e?e[0]:0],u[this]=[l.exec(i[0])[0],l.exec(i[1])[0]]}),1===y.length&&(y[1]=y[0]),"right"===u.at[0]?m.left+=p:"center"===u.at[0]&&(m.left+=p/2),"bottom"===u.at[1]?m.top+=f:"center"===u.at[1]&&(m.top+=f/2),d=F(w.at,p,f),m.left+=d[0],m.top+=d[1],this.each(function(){var i,t,r=V(this),a=r.outerWidth(),l=r.outerHeight(),e=C(this,"marginLeft"),n=C(this,"marginTop"),s=a+e+C(this,"marginRight")+b.width,o=l+n+C(this,"marginBottom")+b.height,h=V.extend({},m),c=F(w.my,r.outerWidth(),r.outerHeight());"right"===u.my[0]?h.left-=a:"center"===u.my[0]&&(h.left-=a/2),"bottom"===u.my[1]?h.top-=l:"center"===u.my[1]&&(h.top-=l/2),h.left+=c[0],h.top+=c[1],i={marginLeft:e,marginTop:n},V.each(["left","top"],function(t,e){V.ui.position[y[t]]&&V.ui.position[y[t]][e](h,{targetWidth:p,targetHeight:f,elemWidth:a,elemHeight:l,collisionPosition:i,collisionWidth:s,collisionHeight:o,offset:[d[0]+c[0],d[1]+c[1]],my:u.my,at:u.at,within:_,elem:r})}),u.using&&(t=function(t){var e=g.left-h.left,i=e+p-a,n=g.top-h.top,s=n+f-l,o={target:{element:v,left:g.left,top:g.top,width:p,height:f},element:{element:r,left:h.left,top:h.top,width:a,height:l},horizontal:i<0?"left":0<e?"right":"center",vertical:s<0?"top":0<n?"bottom":"middle"};p<a&&k(e+i)<p&&(o.horizontal="center"),f<l&&k(n+s)<f&&(o.vertical="middle"),x(k(e),k(i))>x(k(n),k(s))?o.important="horizontal":o.important="vertical",u.using.call(this,t,o)}),r.offset(V.extend(h,{using:t}))})):i.apply(this,arguments)},V.ui.position={fit:{left:function(t,e){var i=e.within,n=i.isWindow?i.scrollLeft:i.offset.left,s=i.width,o=t.left-e.collisionPosition.marginLeft,r=n-o,a=o+e.collisionWidth-s-n;e.collisionWidth>s?0<r&&a<=0?(i=t.left+r+e.collisionWidth-s-n,t.left+=r-i):t.left=!(0<a&&r<=0)&&a<r?n+s-e.collisionWidth:n:0<r?t.left+=r:0<a?t.left-=a:t.left=x(t.left-o,t.left)},top:function(t,e){var i=e.within,n=i.isWindow?i.scrollTop:i.offset.top,s=e.within.height,o=t.top-e.collisionPosition.marginTop,r=n-o,a=o+e.collisionHeight-s-n;e.collisionHeight>s?0<r&&a<=0?(i=t.top+r+e.collisionHeight-s-n,t.top+=r-i):t.top=!(0<a&&r<=0)&&a<r?n+s-e.collisionHeight:n:0<r?t.top+=r:0<a?t.top-=a:t.top=x(t.top-o,t.top)}},flip:{left:function(t,e){var i=(l=e.within).offset.left+l.scrollLeft,n=l.width,s=l.isWindow?l.scrollLeft:l.offset.left,o=(h=t.left-e.collisionPosition.marginLeft)-s,r=h+e.collisionWidth-n-s,a="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,l="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,h=-2*e.offset[0];o<0?((i=t.left+a+l+h+e.collisionWidth-n-i)<0||i<k(o))&&(t.left+=a+l+h):0<r&&(0<(s=t.left-e.collisionPosition.marginLeft+a+l+h-s)||k(s)<r)&&(t.left+=a+l+h)},top:function(t,e){var i=(l=e.within).offset.top+l.scrollTop,n=l.height,s=l.isWindow?l.scrollTop:l.offset.top,o=(h=t.top-e.collisionPosition.marginTop)-s,r=h+e.collisionHeight-n-s,a="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,l="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,h=-2*e.offset[1];o<0?((i=t.top+a+l+h+e.collisionHeight-n-i)<0||i<k(o))&&(t.top+=a+l+h):0<r&&(0<(s=t.top-e.collisionPosition.marginTop+a+l+h-s)||k(s)<r)&&(t.top+=a+l+h)}},flipfit:{left:function(){V.ui.position.flip.left.apply(this,arguments),V.ui.position.fit.left.apply(this,arguments)},top:function(){V.ui.position.flip.top.apply(this,arguments),V.ui.position.fit.top.apply(this,arguments)}}},V.ui.position,V.extend(V.expr.pseudos,{data:V.expr.createPseudo?V.expr.createPseudo(function(e){return function(t){return!!V.data(t,e)}}):function(t,e,i){return!!V.data(t,i[3])}}),V.fn.extend({disableSelection:(c="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(c+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}}),V.ui.focusable=function(t,e){var i,n,s,o=t.nodeName.toLowerCase();return"area"===o?(i=(s=t.parentNode).name,!(!t.href||!i||"map"!==s.nodeName.toLowerCase())&&0<(i=V("img[usemap='#"+i+"']")).length&&i.is(":visible")):(/^(input|select|textarea|button|object)$/.test(o)?(n=!t.disabled)&&(s=V(t).closest("fieldset")[0])&&(n=!s.disabled):n="a"===o&&t.href||e,n&&V(t).is(":visible")&&function(t){for(var e=t.css("visibility");"inherit"===e;)e=(t=t.parent()).css("visibility");return"visible"===e}(V(t)))},V.extend(V.expr.pseudos,{focusable:function(t){return V.ui.focusable(t,null!=V.attr(t,"tabindex"))}}),V.ui.focusable,V.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):V(this[0].form)},V.ui.formResetMixin={_formResetHandler:function(){var e=V(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");V.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=this.element._form(),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(V.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}},V.expr.pseudos||(V.expr.pseudos=V.expr[":"]),V.uniqueSort||(V.uniqueSort=V.unique),V.escapeSelector||(e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,u=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},V.escapeSelector=function(t){return(t+"").replace(e,u)}),V.fn.even&&V.fn.odd||V.fn.extend({even:function(){return this.filter(function(t){return t%2==0})},odd:function(){return this.filter(function(t){return t%2==1})}}),V.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},V.fn.labels=function(){var t,e,i;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+V.escapeSelector(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e)):this.pushStack([])},V.fn.scrollParent=function(t){var e=this.css("position"),i="absolute"===e,n=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=V(this);return(!i||"static"!==t.css("position"))&&n.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&t.length?t:V(this[0].ownerDocument||document)},V.extend(V.expr.pseudos,{tabbable:function(t){var e=V.attr(t,"tabindex"),i=null!=e;return(!i||0<=e)&&V.ui.focusable(t,i)}}),V.fn.extend({uniqueId:(j=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++j)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&V(this).removeAttr("id")})}}),V.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var j,d=!1;function R(t,e,i){return e<=t&&t<e+i}V(document).on("mouseup",function(){d=!1}),V.widget("ui.mouse",{version:"1.13.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(t){if(!0===V.data(t.target,e.widgetName+".preventClickEvent"))return V.removeData(t.target,e.widgetName+".preventClickEvent"),t.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){var e,i,n;if(!d)return this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),i=1===(this._mouseDownEvent=t).which,n=!("string"!=typeof(e=this).options.cancel||!t.target.nodeName)&&V(t.target).closest(this.options.cancel).length,!(i&&!n&&this._mouseCapture(t))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){e.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(t),!this._mouseStarted)?(t.preventDefault(),!0):(!0===V.data(t.target,this.widgetName+".preventClickEvent")&&V.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return e._mouseMove(t)},this._mouseUpDelegate=function(t){return e._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),d=!0))},_mouseMove:function(t){if(this._mouseMoved){if(V.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&V.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,d=!1,t.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),V.ui.plugin={add:function(t,e,i){var n,s=V.ui[t].prototype;for(n in i)s.plugins[n]=s.plugins[n]||[],s.plugins[n].push([e,i[n]])},call:function(t,e,i,n){var s,o=t.plugins[e];if(o&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(s=0;s<o.length;s++)t.options[o[s][0]]&&o[s][1].apply(t.element,i)}},V.ui.safeActiveElement=function(t){var e;try{e=t.activeElement}catch(c){e=t.body}return(e=e||t.body).nodeName?e:t.body},V.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&V(t).trigger("blur")},V.widget("ui.draggable",V.ui.mouse,{version:"1.13.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(t){var e=this.options;return!(this.helper||e.disabled||0<V(t.target).closest(".ui-resizable-handle").length||(this.handle=this._getHandle(t),!this.handle)||(this._blurActiveElement(t),this._blockFrames(!0===e.iframeFix?"iframe":e.iframeFix),0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=V(this);return V("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var e=V.ui.safeActiveElement(this.document[0]);V(t.target).closest(e).length||V.ui.safeBlur(e)},_mouseStart:function(t){var e=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),V.ui.ddmanager&&(V.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=0<this.helper.parents().filter(function(){return"fixed"===V(this).css("position")}).length,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,e.cursorAt&&this._adjustOffsetFromHelper(e.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),V.ui.ddmanager&&!e.dropBehaviour&&V.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),V.ui.ddmanager&&V.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(t,e){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!e){if(e=this._uiHash(),!1===this._trigger("drag",t,e))return this._mouseUp(new V.Event("mouseup",t)),!1;this.position=e.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",V.ui.ddmanager&&V.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var e=this,i=!1;return V.ui.ddmanager&&!this.options.dropBehaviour&&(i=V.ui.ddmanager.drop(this,t)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,i)?V(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==e._trigger("stop",t)&&e._clear()}):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),V.ui.ddmanager&&V.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),V.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new V.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!V(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var e=this.options,i="function"==typeof e.helper;return(t=i?V(e.helper.apply(this.element[0],[t])):"clone"===e.helper?this.element.clone().removeAttr("id"):this.element).parents("body").length||t.appendTo("parent"===e.appendTo?this.element[0].parentNode:e.appendTo),i&&t[0]===this.element[0]&&this._setPositionRelative(),t[0]===this.element[0]||/(fixed|absolute)/.test(t.css("position"))||t.css("position","absolute"),t},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),"left"in(t=Array.isArray(t)?{left:+t[0],top:+t[1]||0}:t)&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),e=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==e&&V.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this._isRootNode(this.offsetParent[0])?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){var t,e;return"relative"!==this.cssPosition?{top:0,left:0}:(t=this.element.position(),e=this._isRootNode(this.scrollParent[0]),{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())})},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,e,i,n=this.options,s=this.document[0];this.relativeContainer=null,n.containment?"window"!==n.containment?"document"!==n.containment?n.containment.constructor!==Array?("parent"===n.containment&&(n.containment=this.helper[0].parentNode),(i=(e=V(n.containment))[0])&&(t=/(scroll|auto)/.test(e.css("overflow")),this.containment=[(parseInt(e.css("borderLeftWidth"),10)||0)+(parseInt(e.css("paddingLeft"),10)||0),(parseInt(e.css("borderTopWidth"),10)||0)+(parseInt(e.css("paddingTop"),10)||0),(t?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(e.css("borderRightWidth"),10)||0)-(parseInt(e.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(e.css("borderBottomWidth"),10)||0)-(parseInt(e.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=e)):this.containment=n.containment:this.containment=[0,0,V(s).width()-this.helperProportions.width-this.margins.left,(V(s).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[V(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,V(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,V(window).scrollLeft()+V(window).width()-this.helperProportions.width-this.margins.left,V(window).scrollTop()+(V(window).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(t,e){e=e||this.position;var i="absolute"===t?1:-1,t=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:t?0:this.offset.scroll.top)*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:t?0:this.offset.scroll.left)*i}},_generatePosition:function(t,e){var i,n=this.options,s=this._isRootNode(this.scrollParent[0]),o=t.pageX,r=t.pageY;return s&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),{top:(r=e&&(this.containment&&(i=this.relativeContainer?(i=this.relativeContainer.offset(),[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):this.containment,t.pageX-this.offset.click.left<i[0]&&(o=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(r=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(o=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3])&&(r=i[3]+this.offset.click.top),n.grid&&(t=n.grid[1]?this.originalPageY+Math.round((r-this.originalPageY)/n.grid[1])*n.grid[1]:this.originalPageY,r=!i||t-this.offset.click.top>=i[1]||t-this.offset.click.top>i[3]?t:t-this.offset.click.top>=i[1]?t-n.grid[1]:t+n.grid[1],t=n.grid[0]?this.originalPageX+Math.round((o-this.originalPageX)/n.grid[0])*n.grid[0]:this.originalPageX,o=!i||t-this.offset.click.left>=i[0]||t-this.offset.click.left>i[2]?t:t-this.offset.click.left>=i[0]?t-n.grid[0]:t+n.grid[0]),"y"===n.axis&&(o=this.originalPageX),"x"===n.axis)?this.originalPageY:r)-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:s?0:this.offset.scroll.top),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:s?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,e,i){return i=i||this._uiHash(),V.ui.plugin.call(this,t,[e,i,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),V.Widget.prototype._trigger.call(this,t,e,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),V.ui.plugin.add("draggable","connectToSortable",{start:function(e,t,i){var n=V.extend({},t,{item:i.element});i.sortables=[],V(i.options.connectToSortable).each(function(){var t=V(this).sortable("instance");t&&!t.options.disabled&&(i.sortables.push(t),t.refreshPositions(),t._trigger("activate",e,n))})},stop:function(e,t,i){var n=V.extend({},t,{item:i.element});i.cancelHelperRemoval=!1,V.each(i.sortables,function(){var t=this;t.isOver?(t.isOver=0,i.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,n))})},drag:function(i,n,s){V.each(s.sortables,function(){var t=!1,e=this;e.positionAbs=s.positionAbs,e.helperProportions=s.helperProportions,e.offset.click=s.offset.click,e._intersectsWith(e.containerCache)&&(t=!0,V.each(s.sortables,function(){return this.positionAbs=s.positionAbs,this.helperProportions=s.helperProportions,this.offset.click=s.offset.click,t=(this===e||!this._intersectsWith(this.containerCache)||!V.contains(e.element[0],this.element[0]))&&t})),t?(e.isOver||(e.isOver=1,s._parent=n.helper.parent(),e.currentItem=n.helper.appendTo(e.element).data("ui-sortable-item",!0),e.options._helper=e.options.helper,e.options.helper=function(){return n.helper[0]},i.target=e.currentItem[0],e._mouseCapture(i,!0),e._mouseStart(i,!0,!0),e.offset.click.top=s.offset.click.top,e.offset.click.left=s.offset.click.left,e.offset.parent.left-=s.offset.parent.left-e.offset.parent.left,e.offset.parent.top-=s.offset.parent.top-e.offset.parent.top,s._trigger("toSortable",i),s.dropped=e.element,V.each(s.sortables,function(){this.refreshPositions()}),s.currentItem=s.element,e.fromOutside=s),e.currentItem&&(e._mouseDrag(i),n.position=e.position)):e.isOver&&(e.isOver=0,e.cancelHelperRemoval=!0,e.options._revert=e.options.revert,e.options.revert=!1,e._trigger("out",i,e._uiHash(e)),e._mouseStop(i,!0),e.options.revert=e.options._revert,e.options.helper=e.options._helper,e.placeholder&&e.placeholder.remove(),n.helper.appendTo(s._parent),s._refreshOffsets(i),n.position=s._generatePosition(i,!0),s._trigger("fromSortable",i),s.dropped=!1,V.each(s.sortables,function(){this.refreshPositions()}))})}}),V.ui.plugin.add("draggable","cursor",{start:function(t,e,i){var n=V("body"),i=i.options;n.css("cursor")&&(i._cursor=n.css("cursor")),n.css("cursor",i.cursor)},stop:function(t,e,i){(i=i.options)._cursor&&V("body").css("cursor",i._cursor)}}),V.ui.plugin.add("draggable","opacity",{start:function(t,e,i){e=V(e.helper),i=i.options,e.css("opacity")&&(i._opacity=e.css("opacity")),e.css("opacity",i.opacity)},stop:function(t,e,i){(i=i.options)._opacity&&V(e.helper).css("opacity",i._opacity)}}),V.ui.plugin.add("draggable","scroll",{start:function(t,e,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(t,e,i){var n=i.options,s=!1,o=i.scrollParentNotHidden[0],r=i.document[0];o!==r&&"HTML"!==o.tagName?(n.axis&&"x"===n.axis||(i.overflowOffset.top+o.offsetHeight-t.pageY<n.scrollSensitivity?o.scrollTop=s=o.scrollTop+n.scrollSpeed:t.pageY-i.overflowOffset.top<n.scrollSensitivity&&(o.scrollTop=s=o.scrollTop-n.scrollSpeed)),n.axis&&"y"===n.axis||(i.overflowOffset.left+o.offsetWidth-t.pageX<n.scrollSensitivity?o.scrollLeft=s=o.scrollLeft+n.scrollSpeed:t.pageX-i.overflowOffset.left<n.scrollSensitivity&&(o.scrollLeft=s=o.scrollLeft-n.scrollSpeed))):(n.axis&&"x"===n.axis||(t.pageY-V(r).scrollTop()<n.scrollSensitivity?s=V(r).scrollTop(V(r).scrollTop()-n.scrollSpeed):V(window).height()-(t.pageY-V(r).scrollTop())<n.scrollSensitivity&&(s=V(r).scrollTop(V(r).scrollTop()+n.scrollSpeed))),n.axis&&"y"===n.axis||(t.pageX-V(r).scrollLeft()<n.scrollSensitivity?s=V(r).scrollLeft(V(r).scrollLeft()-n.scrollSpeed):V(window).width()-(t.pageX-V(r).scrollLeft())<n.scrollSensitivity&&(s=V(r).scrollLeft(V(r).scrollLeft()+n.scrollSpeed)))),!1!==s&&V.ui.ddmanager&&!n.dropBehaviour&&V.ui.ddmanager.prepareOffsets(i,t)}}),V.ui.plugin.add("draggable","snap",{start:function(t,e,i){var n=i.options;i.snapElements=[],V(n.snap.constructor!==String?n.snap.items||":data(ui-draggable)":n.snap).each(function(){var t=V(this),e=t.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:e.top,left:e.left})})},drag:function(t,e,i){for(var n,s,o,r,a,l,h,c,u,d=i.options,p=d.snapTolerance,f=e.offset.left,g=f+i.helperProportions.width,m=e.offset.top,v=m+i.helperProportions.height,_=i.snapElements.length-1;0<=_;_--)l=(a=i.snapElements[_].left-i.margins.left)+i.snapElements[_].width,c=(h=i.snapElements[_].top-i.margins.top)+i.snapElements[_].height,g<a-p||l+p<f||v<h-p||c+p<m||!V.contains(i.snapElements[_].item.ownerDocument,i.snapElements[_].item)?(i.snapElements[_].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,t,V.extend(i._uiHash(),{snapItem:i.snapElements[_].item})),i.snapElements[_].snapping=!1):("inner"!==d.snapMode&&(n=Math.abs(h-v)<=p,s=Math.abs(c-m)<=p,o=Math.abs(a-g)<=p,r=Math.abs(l-f)<=p,n&&(e.position.top=i._convertPositionTo("relative",{top:h-i.helperProportions.height,left:0}).top),s&&(e.position.top=i._convertPositionTo("relative",{top:c,left:0}).top),o&&(e.position.left=i._convertPositionTo("relative",{top:0,left:a-i.helperProportions.width}).left),r)&&(e.position.left=i._convertPositionTo("relative",{top:0,left:l}).left),u=n||s||o||r,"outer"!==d.snapMode&&(n=Math.abs(h-m)<=p,s=Math.abs(c-v)<=p,o=Math.abs(a-f)<=p,r=Math.abs(l-g)<=p,n&&(e.position.top=i._convertPositionTo("relative",{top:h,left:0}).top),s&&(e.position.top=i._convertPositionTo("relative",{top:c-i.helperProportions.height,left:0}).top),o&&(e.position.left=i._convertPositionTo("relative",{top:0,left:a}).left),r)&&(e.position.left=i._convertPositionTo("relative",{top:0,left:l-i.helperProportions.width}).left),!i.snapElements[_].snapping&&(n||s||o||r||u)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,t,V.extend(i._uiHash(),{snapItem:i.snapElements[_].item})),i.snapElements[_].snapping=n||s||o||r||u)}}),V.ui.plugin.add("draggable","stack",{start:function(t,e,i){var n,i=i.options;(i=V.makeArray(V(i.stack)).sort(function(t,e){return(parseInt(V(t).css("zIndex"),10)||0)-(parseInt(V(e).css("zIndex"),10)||0)})).length&&(n=parseInt(V(i[0]).css("zIndex"),10)||0,V(i).each(function(t){V(this).css("zIndex",n+t)}),this.css("zIndex",n+i.length))}}),V.ui.plugin.add("draggable","zIndex",{start:function(t,e,i){e=V(e.helper),i=i.options,e.css("zIndex")&&(i._zIndex=e.css("zIndex")),e.css("zIndex",i.zIndex)},stop:function(t,e,i){(i=i.options)._zIndex&&V(e.helper).css("zIndex",i._zIndex)}}),V.ui.draggable,V.widget("ui.droppable",{version:"1.13.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var t,e=this.options,i=e.accept;this.isover=!1,this.isout=!0,this.accept="function"==typeof i?i:function(t){return t.is(i)},this.proportions=function(){if(!arguments.length)return t=t||{width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};t=arguments[0]},this._addToManager(e.scope),e.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){V.ui.ddmanager.droppables[t]=V.ui.ddmanager.droppables[t]||[],V.ui.ddmanager.droppables[t].push(this)},_splice:function(t){for(var e=0;e<t.length;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var t=V.ui.ddmanager.droppables[this.options.scope];this._splice(t)},_setOption:function(t,e){var i;"accept"===t?this.accept="function"==typeof e?e:function(t){return t.is(e)}:"scope"===t&&(i=V.ui.ddmanager.droppables[this.options.scope],this._splice(i),this._addToManager(e)),this._super(t,e)},_activate:function(t){var e=V.ui.ddmanager.current;this._addActiveClass(),e&&this._trigger("activate",t,this.ui(e))},_deactivate:function(t){var e=V.ui.ddmanager.current;this._removeActiveClass(),e&&this._trigger("deactivate",t,this.ui(e))},_over:function(t){var e=V.ui.ddmanager.current;e&&(e.currentItem||e.element)[0]!==this.element[0]&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this._addHoverClass(),this._trigger("over",t,this.ui(e)))},_out:function(t){var e=V.ui.ddmanager.current;e&&(e.currentItem||e.element)[0]!==this.element[0]&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this._removeHoverClass(),this._trigger("out",t,this.ui(e)))},_drop:function(e,t){var i=t||V.ui.ddmanager.current,n=!1;return!(!i||(i.currentItem||i.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var t=V(this).droppable("instance");if(t.options.greedy&&!t.options.disabled&&t.options.scope===i.options.scope&&t.accept.call(t.element[0],i.currentItem||i.element)&&V.ui.intersect(i,V.extend(t,{offset:t.element.offset()}),t.options.tolerance,e))return!(n=!0)}),!n)&&!!this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",e,this.ui(i)),this.element)},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}}),V.ui.intersect=function(t,e,i,n){if(!e.offset)return!1;var s=(t.positionAbs||t.position.absolute).left+t.margins.left,o=(t.positionAbs||t.position.absolute).top+t.margins.top,r=s+t.helperProportions.width,a=o+t.helperProportions.height,l=e.offset.left,h=e.offset.top,c=l+e.proportions().width,u=h+e.proportions().height;switch(i){case"fit":return l<=s&&r<=c&&h<=o&&a<=u;case"intersect":return l<s+t.helperProportions.width/2&&r-t.helperProportions.width/2<c&&h<o+t.helperProportions.height/2&&a-t.helperProportions.height/2<u;case"pointer":return R(n.pageY,h,e.proportions().height)&&R(n.pageX,l,e.proportions().width);case"touch":return(h<=o&&o<=u||h<=a&&a<=u||o<h&&u<a)&&(l<=s&&s<=c||l<=r&&r<=c||s<l&&c<r);default:return!1}},!(V.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(t,e){var i,n,s=V.ui.ddmanager.droppables[t.options.scope]||[],o=e?e.type:null,r=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();t:for(i=0;i<s.length;i++)if(!(s[i].options.disabled||t&&!s[i].accept.call(s[i].element[0],t.currentItem||t.element))){for(n=0;n<r.length;n++)if(r[n]===s[i].element[0]){s[i].proportions().height=0;continue t}s[i].visible="none"!==s[i].element.css("display"),s[i].visible&&("mousedown"===o&&s[i]._activate.call(s[i],e),s[i].offset=s[i].element.offset(),s[i].proportions({width:s[i].element[0].offsetWidth,height:s[i].element[0].offsetHeight}))}},drop:function(t,e){var i=!1;return V.each((V.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&V.ui.intersect(t,this,this.options.tolerance,e)&&(i=this._drop.call(this,e)||i),!this.options.disabled)&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,e))}),i},dragStart:function(t,e){t.element.parentsUntil("body").on("scroll.droppable",function(){t.options.refreshPositions||V.ui.ddmanager.prepareOffsets(t,e)})},drag:function(s,o){s.options.refreshPositions&&V.ui.ddmanager.prepareOffsets(s,o),V.each(V.ui.ddmanager.droppables[s.options.scope]||[],function(){var t,e,i,n;this.options.disabled||this.greedyChild||!this.visible||(n=!(i=V.ui.intersect(s,this,this.options.tolerance,o))&&this.isover?"isout":i&&!this.isover?"isover":null)&&(this.options.greedy&&(e=this.options.scope,(i=this.element.parents(":data(ui-droppable)").filter(function(){return V(this).droppable("instance").options.scope===e})).length)&&((t=V(i[0]).droppable("instance")).greedyChild="isover"===n),t&&"isover"===n&&(t.isover=!1,t.isout=!0,t._out.call(t,o)),this[n]=!0,this["isout"===n?"isover":"isout"]=!1,this["isover"===n?"_over":"_out"].call(this,o),t)&&"isout"===n&&(t.isout=!1,t.isover=!0,t._over.call(t,o))})},dragStop:function(t,e){t.element.parentsUntil("body").off("scroll.droppable"),t.options.refreshPositions||V.ui.ddmanager.prepareOffsets(t,e)}})!==V.uiBackCompat&&V.widget("ui.droppable",V.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),V.ui.droppable,V.widget("ui.resizable",V.ui.mouse,{version:"1.13.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(t,e){if("hidden"===V(t).css("overflow"))return!1;var i=e&&"left"===e?"scrollLeft":"scrollTop",e=!1;if(0<t[i])return!0;try{t[i]=1,e=0<t[i],t[i]=0}catch(t){}return e},_create:function(){var t,e=this.options,i=this;this._addClass("ui-resizable"),V.extend(this,{_aspectRatio:!!e.aspectRatio,aspectRatio:e.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:e.helper||e.ghost||e.animate?e.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(V("<div class='ui-wrapper'></div>").css({overflow:"hidden",position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,t={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(t),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(t),this._proportionallyResize()),this._setupHandles(),e.autoHide&&V(this.element).on("mouseenter",function(){e.disabled||(i._removeClass("ui-resizable-autohide"),i._handles.show())}).on("mouseleave",function(){e.disabled||i.resizing||(i._addClass("ui-resizable-autohide"),i._handles.hide())}),this._mouseInit()},_destroy:function(){function t(t){V(t).removeData("resizable").removeData("ui-resizable").off(".resizable")}var e;return this._mouseDestroy(),this._addedHandles.remove(),this.elementIsWrapper&&(t(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),t(this.originalElement),this},_setOption:function(t,e){switch(this._super(t,e),t){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!e}},_setupHandles:function(){var t,e,i,n,s,o=this.options,r=this;if(this.handles=o.handles||(V(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=V(),this._addedHandles=V(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),i=this.handles.split(","),this.handles={},e=0;e<i.length;e++)n="ui-resizable-"+(t=String.prototype.trim.call(i[e])),s=V("<div>"),this._addClass(s,"ui-resizable-handle "+n),s.css({zIndex:o.zIndex}),this.handles[t]=".ui-resizable-"+t,this.element.children(this.handles[t]).length||(this.element.append(s),this._addedHandles=this._addedHandles.add(s));this._renderAxis=function(t){var e,i,n;for(e in t=t||this.element,this.handles)this.handles[e].constructor===String?this.handles[e]=this.element.children(this.handles[e]).first().show():(this.handles[e].jquery||this.handles[e].nodeType)&&(this.handles[e]=V(this.handles[e]),this._on(this.handles[e],{mousedown:r._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(i=V(this.handles[e],this.element),n=/sw|ne|nw|se|n|s/.test(e)?i.outerHeight():i.outerWidth(),i=["padding",/ne|nw|n/.test(e)?"Top":/se|sw|s/.test(e)?"Bottom":/^e$/.test(e)?"Right":"Left"].join(""),t.css(i,n),this._proportionallyResize()),this._handles=this._handles.add(this.handles[e])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){r.resizing||(this.className&&(s=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),r.axis=s&&s[1]?s[1]:"se")}),o.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(t){var e,i,n=!1;for(e in this.handles)(i=V(this.handles[e])[0])!==t.target&&!V.contains(i,t.target)||(n=!0);return!this.options.disabled&&n},_mouseStart:function(t){var e,i,n=this.options,s=this.element;return this.resizing=!0,this._renderProxy(),e=this._num(this.helper.css("left")),i=this._num(this.helper.css("top")),n.containment&&(e+=V(n.containment).scrollLeft()||0,i+=V(n.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:e,top:i},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:s.width(),height:s.height()},this.originalSize=this._helper?{width:s.outerWidth(),height:s.outerHeight()}:{width:s.width(),height:s.height()},this.sizeDiff={width:s.outerWidth()-s.width(),height:s.outerHeight()-s.height()},this.originalPosition={left:e,top:i},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof n.aspectRatio?n.aspectRatio:this.originalSize.width/this.originalSize.height||1,n=V(".ui-resizable-"+this.axis).css("cursor"),V("body").css("cursor","auto"===n?this.axis+"-resize":n),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var e=this.originalMousePosition,i=this.axis,n=t.pageX-e.left||0,e=t.pageY-e.top||0,i=this._change[i];return this._updatePrevProperties(),i&&(e=i.apply(this,[t,n,e]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(e=this._updateRatio(e,t)),e=this._respectSize(e,t),this._updateCache(e),this._propagate("resize",t),e=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),V.isEmptyObject(e)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges())),!1},_mouseStop:function(t){this.resizing=!1;var e,i,n,s=this.options,o=this;return this._helper&&(n=(e=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&this._hasScroll(i[0],"left")?0:o.sizeDiff.height,i=e?0:o.sizeDiff.width,e={width:o.helper.width()-i,height:o.helper.height()-n},i=parseFloat(o.element.css("left"))+(o.position.left-o.originalPosition.left)||null,n=parseFloat(o.element.css("top"))+(o.position.top-o.originalPosition.top)||null,s.animate||this.element.css(V.extend(e,{top:n,left:i})),o.helper.height(o.size.height),o.helper.width(o.size.width),this._helper)&&!s.animate&&this._proportionallyResize(),V("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,i,n=this.options,s={minWidth:this._isNumber(n.minWidth)?n.minWidth:0,maxWidth:this._isNumber(n.maxWidth)?n.maxWidth:1/0,minHeight:this._isNumber(n.minHeight)?n.minHeight:0,maxHeight:this._isNumber(n.maxHeight)?n.maxHeight:1/0};(this._aspectRatio||t)&&(e=s.minHeight*this.aspectRatio,i=s.minWidth/this.aspectRatio,n=s.maxHeight*this.aspectRatio,t=s.maxWidth/this.aspectRatio,s.minWidth<e&&(s.minWidth=e),s.minHeight<i&&(s.minHeight=i),n<s.maxWidth&&(s.maxWidth=n),t<s.maxHeight)&&(s.maxHeight=t),this._vBoundaries=s},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left
vendor: 5,775 bytes, line 1
1=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,n=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===n&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===n&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,n=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,s=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,o=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,r=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,a=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,h=/sw|nw|w/.test(i),i=/nw|ne|n/.test(i);return o&&(t.width=e.minWidth),r&&(t.height=e.minHeight),n&&(t.width=e.maxWidth),s&&(t.height=e.maxHeight),o&&h&&(t.left=a-e.minWidth),n&&h&&(t.left=a-e.maxWidth),r&&i&&(t.top=l-e.minHeight),s&&i&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],n=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],s=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];e<4;e++)i[e]=parseFloat(n[e])||0,i[e]+=parseFloat(s[e])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;e<this._proportionallyResizeElements.length;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,e=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||V("<div></div>").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++e.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){var n=this.originalSize;return{top:this.originalPosition.top+i,height:n.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(t,e,i){return V.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,e,i]))},sw:function(t,e,i){return V.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,e,i]))},ne:function(t,e,i){return V.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,e,i]))},nw:function(t,e,i){return V.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,e,i]))}},_propagate:function(t,e){V.ui.plugin.call(this,t,[e,this.ui()]),"resize"!==t&&this._trigger(t,e,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}}}),V.ui.plugin.add("resizable","animate",{stop:function(e){var i=V(this).resizable("instance"),t=i.options,n=i._proportionallyResizeElements,s=(r=n.length&&/textarea/i.test(n[0].nodeName))&&i._hasScroll(n[0],"left")?0:i.sizeDiff.height,o=r?0:i.sizeDiff.width,r={width:i.size.width-o,height:i.size.height-s},o=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,s=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(V.extend(r,s&&o?{top:s,left:o}:{}),{duration:t.animateDuration,easing:t.animateEasing,step:function(){var t={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};n&&n.length&&V(n[0]).css({width:t.width,height:t.height}),i._updateCache(t),i._propagate("resize",e)}})}}),V.ui.plugin.add("resizable","containment",{start:function(){var i,n,s=V(this).resizable("instance"),t=s.options,e=s.element,o=t.containment,r=o instanceof V?o.get(0):/parent/.test(o)?e.parent().get(0):o;r&&(s.containerElement=V(r),/document/.test(o)||o===document?(s.containerOffset={left:0,top:0},s.containerPosition={left:0,top:0},s.parentData={element:V(document),left:0,top:0,width:V(document).width(),height:V(document).height()||document.body.parentNode.scrollHeight}):(i=V(r),n=[],V(["Top","Right","Left","Bottom"]).each(function(t,e){n[t]=s._num(i.css("padding"+e))}),s.containerOffset=i.offset(),s.containerPosition=i.position(),s.containerSize={height:i.innerHeight()-n[3],width:i.innerWidth()-n[1]},t=s.containerOffset,e=s.containerSize.height,o=s.containerSize.width,o=s._hasScroll(r,"left")?r.scrollWidth:o,e=s._hasScroll(r)?r.scrollHeight:e,s.parentData={element:r,left:t.left,top:t.top,width:o,height:e}))},resize:function(t){var e=V(this).resizable("instance"),i=e.options,n=e.containerOffset,s=e.position,o=e._aspectRatio||t.shiftKey,r={top:0,left:0},a=e.containerElement,t=!0;a[0]!==document&&/static/.test(a.css("position"))&&(r=n),s.left<(e._helper?n.left:0)&&(e.size.width=e.size.width+(e._helper?e.position.left-n.left:e.position.left-r.left),o&&(e.size.height=e.size.width/e.aspectRatio,t=!1),e.position.left
vendor: 49,070 bytes, line 1
1=i.helper?n.left:0),s.top<(e._helper?n.top:0)&&(e.size.height=e.size.height+(e._helper?e.position.top-n.top:e.position.top),o&&(e.size.width=e.size.height*e.aspectRatio,t=!1),e.position.top=e._helper?n.top:0),i=e.containerElement.get(0)===e.element.parent().get(0),s=/relative|absolute/.test(e.containerElement.css("position")),i&&s?(e.offset.left=e.parentData.left+e.position.left,e.offset.top=e.parentData.top+e.position.top):(e.offset.left=e.element.offset().left,e.offset.top=e.element.offset().top),s=Math.abs(e.sizeDiff.width+(e._helper?e.offset.left-r.left:e.offset.left-n.left)),n=Math.abs(e.sizeDiff.height+(e._helper?e.offset.top-r.top:e.offset.top-n.top)),s+e.size.width>=e.parentData.width&&(e.size.width=e.parentData.width-s,o)&&(e.size.height=e.size.width/e.aspectRatio,t=!1),n+e.size.height>=e.parentData.height&&(e.size.height=e.parentData.height-n,o)&&(e.size.width=e.size.height*e.aspectRatio,t=!1),t||(e.position.left=e.prevPosition.left,e.position.top=e.prevPosition.top,e.size.width=e.prevSize.width,e.size.height=e.prevSize.height)},stop:function(){var t=V(this).resizable("instance"),e=t.options,i=t.containerOffset,n=t.containerPosition,s=t.containerElement,o=(a=V(t.helper)).offset(),r=a.outerWidth()-t.sizeDiff.width,a=a.outerHeight()-t.sizeDiff.height;t._helper&&!e.animate&&/relative/.test(s.css("position"))&&V(this).css({left:o.left-n.left-i.left,width:r,height:a}),t._helper&&!e.animate&&/static/.test(s.css("position"))&&V(this).css({left:o.left-n.left-i.left,width:r,height:a})}}),V.ui.plugin.add("resizable","alsoResize",{start:function(){var t=V(this).resizable("instance").options;V(t.alsoResize).each(function(){var t=V(this);t.data("ui-resizable-alsoresize",{width:parseFloat(t.width()),height:parseFloat(t.height()),left:parseFloat(t.css("left")),top:parseFloat(t.css("top"))})})},resize:function(t,i){var e=V(this).resizable("instance"),n=e.options,s=e.originalSize,o=e.originalPosition,r={height:e.size.height-s.height||0,width:e.size.width-s.width||0,top:e.position.top-o.top||0,left:e.position.left-o.left||0};V(n.alsoResize).each(function(){var t=V(this),n=V(this).data("ui-resizable-alsoresize"),s={},e=t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];V.each(e,function(t,e){var i=(n[e]||0)+(r[e]||0);i&&0<=i&&(s[e]=i||null)}),t.css(s)})},stop:function(){V(this).removeData("ui-resizable-alsoresize")}}),V.ui.plugin.add("resizable","ghost",{start:function(){var t=V(this).resizable("instance"),e=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:e.height,width:e.width,margin:0,left:0,top:0}),t._addClass(t.ghost,"ui-resizable-ghost"),!1!==V.uiBackCompat&&"string"==typeof t.options.ghost&&t.ghost.addClass(this.options.ghost),t.ghost.appendTo(t.helper)},resize:function(){var t=V(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=V(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),V.ui.plugin.add("resizable","grid",{resize:function(){var t,e=V(this).resizable("instance"),i=e.options,n=e.size,s=e.originalSize,o=e.originalPosition,r=e.axis,a="number"==typeof i.grid?[i.grid,i.grid]:i.grid,l=a[0]||1,h=a[1]||1,c=Math.round((n.width-s.width)/l)*l,u=Math.round((n.height-s.height)/h)*h,d=s.width+c,p=s.height+u,f=i.maxWidth&&i.maxWidth<d,g=i.maxHeight&&i.maxHeight<p,m=i.minWidth&&i.minWidth>d,n=i.minHeight&&i.minHeight>p;i.grid=a,m&&(d+=l),n&&(p+=h),f&&(d-=l),g&&(p-=h),/^(se|s|e)$/.test(r)?(e.size.width=d,e.size.height=p):/^(ne)$/.test(r)?(e.size.width=d,e.size.height=p,e.position.top=o.top-u):/^(sw)$/.test(r)?(e.size.width=d,e.size.height=p,e.position.left=o.left-c):((p-h<=0||d-l<=0)&&(t=e._getPaddingPlusBorderDimensions(this)),0<p-h?(e.size.height=p,e.position.top=o.top-u):(p=h-t.height,e.size.height=p,e.position.top=o.top+s.height-p),0<d-l?(e.size.width=d,e.position.left=o.left-c):(d=l-t.width,e.size.width=d,e.position.left=o.left+s.width-d))}}),V.ui.resizable,V.widget("ui.selectable",V.ui.mouse,{version:"1.13.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var i=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){i.elementPos=V(i.element[0]).offset(),i.selectees=V(i.options.filter,i.element[0]),i._addClass(i.selectees,"ui-selectee"),i.selectees.each(function(){var t=V(this),e={left:(e=t.offset()).left-i.elementPos.left,top:e.top-i.elementPos.top};V.data(this,"selectable-item",{element:this,$element:t,left:e.left,top:e.top,right:e.left+t.outerWidth(),bottom:e.top+t.outerHeight(),startselected:!1,selected:t.hasClass("ui-selected"),selecting:t.hasClass("ui-selecting"),unselecting:t.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=V("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(i){var n=this,t=this.options;this.opos=[i.pageX,i.pageY],this.elementPos=V(this.element[0]).offset(),this.options.disabled||(this.selectees=V(t.filter,this.element[0]),this._trigger("start",i),V(t.appendTo).append(this.helper),this.helper.css({left:i.pageX,top:i.pageY,width:0,height:0}),t.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var t=V.data(this,"selectable-item");t.startselected=!0,i.metaKey||i.ctrlKey||(n._removeClass(t.$element,"ui-selected"),t.selected=!1,n._addClass(t.$element,"ui-unselecting"),t.unselecting=!0,n._trigger("unselecting",i,{unselecting:t.element}))}),V(i.target).parents().addBack().each(function(){var t,e=V.data(this,"selectable-item");if(e)return t=!i.metaKey&&!i.ctrlKey||!e.$element.hasClass("ui-selected"),n._removeClass(e.$element,t?"ui-unselecting":"ui-selected")._addClass(e.$element,t?"ui-selecting":"ui-unselecting"),e.unselecting=!t,e.selecting=t,(e.selected=t)?n._trigger("selecting",i,{selecting:e.element}):n._trigger("unselecting",i,{unselecting:e.element}),!1}))},_mouseDrag:function(n){var t,s,o,r,a,l,h;if(this.dragged=!0,!this.options.disabled)return o=(s=this).options,r=this.opos[0],a=this.opos[1],l=n.pageX,h=n.pageY,l<r&&(t=l,l=r,r=t),h<a&&(t=h,h=a,a=t),this.helper.css({left:r,top:a,width:l-r,height:h-a}),this.selectees.each(function(){var t=V.data(this,"selectable-item"),e=!1,i={};t&&t.element!==s.element[0]&&(i.left=t.left+s.elementPos.left,i.right=t.right+s.elementPos.left,i.top=t.top+s.elementPos.top,i.bottom=t.bottom+s.elementPos.top,"touch"===o.tolerance?e=!(l<i.left||i.right<r||h<i.top||i.bottom<a):"fit"===o.tolerance&&(e=r<i.left&&i.right<l&&a<i.top&&i.bottom<h),e?(t.selected&&(s._removeClass(t.$element,"ui-selected"),t.selected=!1),t.unselecting&&(s._removeClass(t.$element,"ui-unselecting"),t.unselecting=!1),t.selecting||(s._addClass(t.$element,"ui-selecting"),t.selecting=!0,s._trigger("selecting",n,{selecting:t.element}))):(t.selecting&&((n.metaKey||n.ctrlKey)&&t.startselected?(s._removeClass(t.$element,"ui-selecting"),t.selecting=!1,s._addClass(t.$element,"ui-selected"),t.selected=!0):(s._removeClass(t.$element,"ui-selecting"),t.selecting=!1,t.startselected&&(s._addClass(t.$element,"ui-unselecting"),t.unselecting=!0),s._trigger("unselecting",n,{unselecting:t.element}))),!t.selected||n.metaKey||n.ctrlKey||t.startselected||(s._removeClass(t.$element,"ui-selected"),t.selected=!1,s._addClass(t.$element,"ui-unselecting"),t.unselecting=!0,s._trigger("unselecting",n,{unselecting:t.element}))))}),!1},_mouseStop:function(e){var i=this;return this.dragged=!1,V(".ui-unselecting",this.element[0]).each(function(){var t=V.data(this,"selectable-item");i._removeClass(t.$element,"ui-unselecting"),t.unselecting=!1,t.startselected=!1,i._trigger("unselected",e,{unselected:t.element})}),V(".ui-selecting",this.element[0]).each(function(){var t=V.data(this,"selectable-item");i._removeClass(t.$element,"ui-selecting")._addClass(t.$element,"ui-selected"),t.selecting=!1,t.selected=!0,t.startselected=!0,i._trigger("selected",e,{selected:t.element})}),this._trigger("stop",e),this.helper.remove(),!1}}),V.widget("ui.sortable",V.ui.mouse,{version:"1.13.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return e<=t&&t<e+i},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),V.each(this.items,function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;0<=t;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,e){var i=null,n=!1,s=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(t),V(t.target).parents().each(function(){if(V.data(this,s.widgetName+"-item")===s)return i=V(this),!1}),!(i=V.data(t.target,s.widgetName+"-item")===s?V(t.target):i))||this.options.handle&&!e&&(V(this.options.handle,i).find("*").addBack().each(function(){this===t.target&&(n=!0)}),!n)||(this.currentItem=i,this._removeCurrentsFromItems(),0))},_mouseStart:function(t,e,i){var n,s,o=this.options;if((this.currentContainer=this).refreshPositions(),this.appendTo=V("parent"!==o.appendTo?o.appendTo:this.currentItem.parent()),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},V.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),o.cursorAt&&this._adjustOffsetFromHelper(o.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),V.extend(this.offset,{parent:this._getParentOffset()}),o.containment&&this._setContainment(),o.cursor&&"auto"!==o.cursor&&(s=this.document.find("body"),this.storedCursor=s.css("cursor"),s.css("cursor",o.cursor),this.storedStylesheet=V("<style>*{ cursor: "+o.cursor+" !important; }</style>").appendTo(s)),o.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",o.zIndex)),o.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",o.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(n=this.containers.length-1;0<=n;n--)this.containers[n]._trigger("activate",t,this._uiHash(this));return V.ui.ddmanager&&(V.ui.ddmanager.current=this),V.ui.ddmanager&&!o.dropBehaviour&&V.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(t),!0},_scroll:function(t){var e=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<e.scrollSensitivity?this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop+e.scrollSpeed:t.pageY-this.overflowOffset.top<e.scrollSensitivity&&(this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop-e.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<e.scrollSensitivity?this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft+e.scrollSpeed:t.pageX-this.overflowOffset.left<e.scrollSensitivity&&(this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft-e.scrollSpeed)):(t.pageY-this.document.scrollTop()<e.scrollSensitivity?i=this.document.scrollTop(this.document.scrollTop()-e.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<e.scrollSensitivity&&(i=this.document.scrollTop(this.document.scrollTop()+e.scrollSpeed)),t.pageX-this.document.scrollLeft()<e.scrollSensitivity?i=this.document.scrollLeft(this.document.scrollLeft()-e.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<e.scrollSensitivity&&(i=this.document.scrollLeft(this.document.scrollLeft()+e.scrollSpeed))),i},_mouseDrag:function(t){var e,i,n,s,o=this.options;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),o.scroll&&!1!==this._scroll(t)&&(this._refreshItemPositions(!0),V.ui.ddmanager)&&!o.dropBehaviour&&V.ui.ddmanager.prepareOffsets(this,t),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},e=this.items.length-1;0<=e;e--)if(n=(i=this.items[e]).item[0],(s=this._intersectsWithPointer(i))&&i.instance===this.currentContainer&&!(n===this.currentItem[0]||this.placeholder[1===s?"next":"prev"]()[0]===n||V.contains(this.placeholder[0],n)||"semi-dynamic"===this.options.type&&V.contains(this.element[0],n))){if(this.direction=1===s?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(i))break;this._rearrange(t,i),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),V.ui.ddmanager&&V.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,e){var i,n,s,o;if(t)return V.ui.ddmanager&&!this.options.dropBehaviour&&V.ui.ddmanager.drop(this,t),this.options.revert?(n=(i=this).placeholder.offset(),o={},(s=this.options.axis)&&"x"!==s||(o.left=n.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),s&&"y"!==s||(o.top=n.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,V(this.helper).animate(o,parseInt(this.options.revert,10)||500,function(){i._clear(t)})):this._clear(t,e),!1},cancel:function(){if(this.dragging){this._mouseUp(new V.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;0<=t;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),V.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?V(this.domPosition.prev).after(this.currentItem):V(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var t=this._getItemsAsjQuery(e&&e.connected),i=[];return e=e||{},V(t).each(function(){var t=(V(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);t&&i.push((e.key||t[1]+"[]")+"="+(e.key&&e.expression?t[1]:t[2]))}),!i.length&&e.key&&i.push(e.key+"="),i.join("&")},toArray:function(t){var e=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},e.each(function(){i.push(V(t.item||this).attr(t.attribute||"id")||"")}),i},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,s=n+this.helperProportions.height,o=t.left,r=o+t.width,a=t.top,l=a+t.height,h=this.offset.click.top,c=this.offset.click.left,h="x"===this.options.axis||a<n+h&&n+h<l,c="y"===this.options.axis||o<e+c&&e+c<r;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?h&&c:o<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<r&&a<n+this.helperProportions.height/2&&s-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var e="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),t="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!(!e||!t)&&(e=this.dragDirection.vertical,t=this.dragDirection.horizontal,this.floating?"right"===t||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),n=this.dragDirection.vertical,t=this.dragDirection.horizontal;return this.floating&&t?"right"===t&&i||"left"===t&&!i:n&&("down"===n&&e||"up"===n&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!=t&&(0<t?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!=t&&(0<t?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(t){var e,i,n,s,o=[],r=[],a=this._connectWith();if(a&&t)for(e=a.length-1;0<=e;e--)for(i=(n=V(a[e],this.document[0])).length-1;0<=i;i--)(s=V.data(n[i],this.widgetFullName))&&s!==this&&!s.options.disabled&&r.push(["function"==typeof s.options.items?s.options.items.call(s.element):V(s.options.items,s.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),s]);function l(){o.push(this)}for(r.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):V(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),e=r.length-1;0<=e;e--)r[e][0].each(l);return V(o)},_removeCurrentsFromItems:function(){var i=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=V.grep(this.items,function(t){for(var e=0;e<i.length;e++)if(i[e]===t.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var e,i,n,s,o,r,a,l,h=this.items,c=[["function"==typeof this.options.items?this.options.items.call(this.element[0],t,{item:this.currentItem}):V(this.options.items,this.element),this]],u=this._connectWith();if(u&&this.ready)for(e=u.length-1;0<=e;e--)for(i=(n=V(u[e],this.document[0])).length-1;0<=i;i--)(s=V.data(n[i],this.widgetFullName))&&s!==this&&!s.options.disabled&&(c.push(["function"==typeof s.options.items?s.options.items.call(s.element[0],t,{item:this.currentItem}):V(s.options.items,s.element),s]),this.containers.push(s));for(e=c.length-1;0<=e;e--)for(o=c[e][1],l=(r=c[e][i=0]).length;i<l;i++)(a=V(r[i])).data(this.widgetName+"-item",o),h.push({item:a,instance:o,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(t){for(var e,i,n=this.items.length-1;0<=n;n--)e=this.items[n],this.currentContainer&&e.instance!==this.currentContainer&&e.item[0]!==this.currentItem[0]||(i=this.options.toleranceElement?V(this.options.toleranceElement,e.item):e.item,t||(e.width=i.outerWidth(),e.height=i.outerHeight()),i=i.offset(),e.left=i.left,e.top=i.top)},refreshPositions:function(t){var e,i;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),this._refreshItemPositions(t),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=this.containers.length-1;0<=e;e--)i=this.containers[e].element.offset(),this.containers[e].containerCache.left=i.left,this.containers[e].containerCache.top=i.top,this.containers[e].containerCache.width=this.containers[e].element.outerWidth(),this.containers[e].containerCache.height=this.containers[e].element.outerHeight();return this},_createPlaceholder:function(i){var n,s,o=(i=i||this).options;o.placeholder&&o.placeholder.constructor!==String||(n=o.placeholder,s=i.currentItem[0].nodeName.toLowerCase(),o.placeholder={element:function(){var t=V("<"+s+">",i.document[0]);return i._addClass(t,"ui-sortable-placeholder",n||i.currentItem[0].className)._removeClass(t,"ui-sortable-helper"),"tbody"===s?i._createTrPlaceholder(i.currentItem.find("tr").eq(0),V("<tr>",i.document[0]).appendTo(t)):"tr"===s?i._createTrPlaceholder(i.currentItem,t):"img"===s&&t.attr("src",i.currentItem.attr("src")),n||t.css("visibility","hidden"),t},update:function(t,e){n&&!o.forcePlaceholderSize||(e.height()&&(!o.forcePlaceholderSize||"tbody"!==s&&"tr"!==s)||e.height(i.currentItem.innerHeight()-parseInt(i.currentItem.css("paddingTop")||0,10)-parseInt(i.currentItem.css("paddingBottom")||0,10)),e.width())||e.width(i.currentItem.innerWidth()-parseInt(i.currentItem.css("paddingLeft")||0,10)-parseInt(i.currentItem.css("paddingRight")||0,10))}}),i.placeholder=V(o.placeholder.element.call(i.element,i.currentItem)),i.currentItem.after(i.placeholder),o.placeholder.update(i,i.placeholder)},_createTrPlaceholder:function(t,e){var i=this;t.children().each(function(){V("<td> </td>",i.document[0]).attr("colspan",V(this).attr("colspan")||1).appendTo(e)})},_contactContainers:function(t){for(var e,i,n,s,o,r,a,l,h,c=null,u=null,d=this.containers.length-1;0<=d;d--)V.contains(this.currentItem[0],this.containers[d].element[0])||(this._intersectsWith(this.containers[d].containerCache)?c&&V.contains(this.containers[d].element[0],c.element[0])||(c=this.containers[d],u=d):this.containers[d].containerCache.over&&(this.containers[d]._trigger("out",t,this._uiHash(this)),this.containers[d].containerCache.over=0));if(c)if(1===this.containers.length)this.containers[u].containerCache.over||(this.containers[u]._trigger("over",t,this._uiHash(this)),this.containers[u].containerCache.over=1);else{for(i=1e4,n=null,s=(l=c.floating||this._isFloating(this.currentItem))?"left":"top",o=l?"width":"height",h=l?"pageX":"pageY",e=this.items.length-1;0<=e;e--)V.contains(this.containers[u].element[0],this.items[e].item[0])&&this.items[e].item[0]!==this.currentItem[0]&&(r=this.items[e].item.offset()[s],a=!1,t[h]-r>this.items[e][o]/2&&(a=!0),Math.abs(t[h]-r)<i)&&(i=Math.abs(t[h]-r),n=this.items[e],this.direction=a?"up":"down");(n||this.options.dropOnEmpty)&&(this.currentContainer!==this.containers[u]?(n?this._rearrange(t,n,null,!0):this._rearrange(t,null,this.containers[u].element,!0),this._trigger("change",t,this._uiHash()),this.containers[u]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[u],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this.containers[u]._trigger("over",t,this._uiHash(this)),this.containers[u].containerCache.over=1):this.currentContainer.containerCache.over||(this.containers[u]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1))}},_createHelper:function(t){var e=this.options;return(t="function"==typeof e.helper?V(e.helper.apply(this.element[0],[t,this.currentItem])):"clone"===e.helper?this.currentItem.clone():this.currentItem).parents("body").length||this.appendTo[0].appendChild(t[0]),t[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")}),t[0].style.width&&!e.forceHelperSize||t.width(this.currentItem.width()),t[0].style.height&&!e.forceHelperSize||t.height(this.currentItem.height()),t},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),"left"in(t=Array.isArray(t)?{left:+t[0],top:+t[1]||0}:t)&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&V.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&V.ui.ie?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){var t;return"relative"!==this.cssPosition?{top:0,left:0}:{top:(t=this.currentItem.position()).top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}},_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 t,e,i=this.options;"parent"===i.containment&&(i.containment=this.helper[0].parentNode),"document"!==i.containment&&"window"!==i.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===i.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===i.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(i.containment)||(t=V(i.containment)[0],e=V(i.containment).offset(),i="hidden"!==V(t).css("overflow"),this.containment=[e.left+(parseInt(V(t).css("borderLeftWidth"),10)||0)+(parseInt(V(t).css("paddingLeft"),10)||0)-this.margins.left,e.top+(parseInt(V(t).css("borderTopWidth"),10)||0)+(parseInt(V(t).css("paddingTop"),10)||0)-this.margins.top,e.left+(i?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(V(t).css("borderLeftWidth"),10)||0)-(parseInt(V(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,e.top+(i?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(V(t).css("borderTopWidth"),10)||0)-(parseInt(V(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,e){e=e||this.position;var i="absolute"===t?1:-1,n="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&V.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,t=/(html|body)/i.test(n[0].tagName);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():t?0:n.scrollTop())*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():t?0:n.scrollLeft())*i}},_generatePosition:function(t){var e=this.options,i=t.pageX,n=t.pageY,s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&V.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(s[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(i=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(n=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(i=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3])&&(n=this.containment[3]+this.offset.click.top),e.grid)&&(t=this.originalPageY+Math.round((n-this.originalPageY)/e.grid[1])*e.grid[1],n=!this.containment||t-this.offset.click.top>=this.containment[1]&&t-this.offset.click.top<=this.containment[3]?t:t-this.offset.click.top>=this.containment[1]?t-e.grid[1]:t+e.grid[1],t=this.originalPageX+Math.round((i-this.originalPageX)/e.grid[0])*e.grid[0],i=!this.containment||t-this.offset.click.left>=this.containment[0]&&t-this.offset.click.left<=this.containment[2]?t:t-this.offset.click.left>=this.containment[0]?t-e.grid[0]:t+e.grid[0]),{top:n-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:s.scrollTop()),left:i-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:s.scrollLeft())}},_rearrange:function(t,e,i,n){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var s=this.counter;this._delay(function(){s===this.counter&&this.refreshPositions(!n)})},_clear:function(t,e){this.reverting=!1;var i,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function s(e,i,n){return function(t){n._trigger(e,t,i._uiHash(i))}}for(this.fromOutside&&!e&&n.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||n.push(function(t){this._trigger("update",t,this._uiHash())}),this===this.currentContainer||e||(n.push(function(t){this._trigger("remove",t,this._uiHash())}),n.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer))),i=this.containers.length-1;0<=i;i--)e||n.push(s("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(n.push(s("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()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(i=0;i<n.length;i++)n[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===V.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var e=t||this;return{helper:e.helper,placeholder:e.placeholder||V([]),position:e.position,originalPosition:e.originalPosition,offset:e.positionAbs,item:e.currentItem,sender:t?t.element:null}}}),V.widget("ui.accordion",{version:"1.13.1",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:function(t){return t.find("> li > :first-child").add(t.find("> :not(li)").even())},heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var t=this.options;this.prevShow=this.prevHide=V(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),t.collapsible||!1!==t.active&&null!=t.active||(t.active=0),this._processPanels(),t.active<0&&(t.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():V()}},_createIcons:function(){var t,e=this.options.icons;e&&(t=V("<span>"),this._addClass(t,"ui-accordion-header-icon","ui-icon "+e.header),t.prependTo(this.headers),t=this.active.children(".ui-accordion-header-icon"),this._removeClass(t,e.header)._addClass(t,null,e.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){"active"!==t?("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||!1!==this.options.active||this._activate(0),"icons"===t&&(this._destroyIcons(),e)&&this._createIcons()):this._activate(e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!t)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var e=V.ui.keyCode,i=this.headers.length,n=this.headers.index(t.target),s=!1;switch(t.keyCode){case e.RIGHT:case e.DOWN:s=this.headers[(n+1)%i];break;case e.LEFT:case e.UP:s=this.headers[(n-1+i)%i];break;case e.SPACE:case e.ENTER:this._eventHandler(t);break;case e.HOME:s=this.headers[0];break;case e.END:s=this.headers[i-1]}s&&(V(t.target).attr("tabIndex",-1),V(s).attr("tabIndex",0),V(s).trigger("focus"),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===V.ui.keyCode.UP&&t.ctrlKey&&V(t.currentTarget).prev().trigger("focus")},refresh:function(){var t=this.options;this._processPanels(),!1===t.active&&!0===t.collapsible||!this.headers.length?(t.active=!1,this.active=V()):!1===t.active?this._activate(0):this.active.length&&!V.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=V()):this._activate(Math.max(0,t.active-1)):t.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var t=this.headers,e=this.panels;"function"==typeof this.options.header?this.headers=this.options.header(this.element):this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),e&&(this._off(t.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var i,t=this.options,e=t.heightStyle,n=this.element.parent();this.active=this._findActive(t.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var t=V(this),e=t.uniqueId().attr("id"),i=t.next(),n=i.uniqueId().attr("id");t.attr("aria-controls",n),i.attr("aria-labelledby",e)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(t.event),"fill"===e?(i=n.height(),this.element.siblings(":visible").each(function(){var t=V(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(i-=t.outerHeight(!0))}),this.headers.each(function(){i-=V(this).outerHeight(!0)}),this.headers.next().each(function(){V(this).height(Math.max(0,i-V(this).innerHeight()+V(this).height()))}).css("overflow","auto")):"auto"===e&&(i=0,this.headers.next().each(function(){var t=V(this).is(":visible");t||V(this).show(),i=Math.max(i,V(this).css("height","").height()),t||V(this).hide()}).height(i))},_activate:function(t){(t=this._findActive(t)[0])!==this.active[0]&&(t=t||this.active[0],this._eventHandler({target:t,currentTarget:t,preventDefault:V.noop}))},_findActive:function(t){return"number"==typeof t?this.headers.eq(t):V()},_setupEvents:function(t){var i={keydown:"_keydown"};t&&V.each(t.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(t){var e=this.options,i=this.active,n=V(t.currentTarget),s=n[0]===i[0],o=s&&e.collapsible,r=o?V():n.next(),a=i.next(),r={oldHeader:i,oldPanel:a,newHeader:o?V():n,newPanel:r};t.preventDefault(),s&&!e.collapsible||!1===this._trigger("beforeActivate",t,r)||(e.active=!o&&this.headers.index(n),this.active=s?V():n,this._toggle(r),this._removeClass(i,"ui-accordion-header-active","ui-state-active"),e.icons&&(i=i.children(".ui-accordion-header-icon"),this._removeClass(i,null,e.icons.activeHeader)._addClass(i,null,e.icons.header)),s)||(this._removeClass(n,"ui-accordion-header-collapsed")._addClass(n,"ui-accordion-header-active","ui-state-active"),e.icons&&(s=n.children(".ui-accordion-header-icon"),this._removeClass(s,null,e.icons.header)._addClass(s,null,e.icons.activeHeader)),this._addClass(n.next(),"ui-accordion-content-active"))},_toggle:function(t){var e=t.newPanel,i=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=e,this.prevHide=i,this.options.animate?this._animate(e,i,t):(i.hide(),e.show(),this._toggleComplete(t)),i.attr({"aria-hidden":"true"}),i.prev().attr({"aria-selected":"false","aria-expanded":"false"}),e.length&&i.length?i.prev().attr({tabIndex:-1,"aria-expanded":"false"}):e.length&&this.headers.filter(function(){return 0===parseInt(V(this).attr("tabIndex"),10)}).attr("tabIndex",-1),e.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,i,e){var n,s=this,o=0,r=t.css("box-sizing"),a=t.length&&(!i.length||t.index()<i.index()),l=this.options.animate||{},h=a&&l.down||l,a=function(){s._toggleComplete(e)},c=(c="string"==typeof h?h:c)||h.easing||l.easing,u=(u="number"==typeof h?h:u)||h.duration||l.duration;return i.length?t.length?(n=t.show().outerHeight(),i.animate(this.hideProps,{duration:u,easing:c,step:function(t,e){e.now=Math.round(t)}}),void t.hide().animate(this.showProps,{duration:u,easing:c,complete:a,step:function(t,e){e.now=Math.round(t),"height"!==e.prop?"content-box"===r&&(o+=e.now):"content"!==s.options.heightStyle&&(e.now=Math.round(n-i.outerHeight()-o),o=0)}})):i.animate(this.hideProps,u,c,a):t.animate(this.showProps,u,c,a)},_toggleComplete:function(t){var e=t.oldPanel,i=e.prev();this._removeClass(e,"ui-accordion-content-active"),this._removeClass(i,"ui-accordion-header-active")._addClass(i,"ui-accordion-header-collapsed"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}}),V.widget("ui.menu",{version:"1.13.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault(),this._activateItem(t)},"click .ui-menu-item":function(t){var e=V(t.target),i=V(V.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&e.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),e.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active)&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this._menuItems().first();e||this.focus(t,i)},blur:function(t){this._delay(function(){V.contains(this.element[0],V.ui.safeActiveElement(this.document[0]))||this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t,!0),this.mouseHandled=!1}})},_activateItem:function(t){var e,i;this.previousFilter||t.clientX===this.lastMousePosition.x&&t.clientY===this.lastMousePosition.y||(this.lastMousePosition={x:t.clientX,y:t.clientY},e=V(t.target).closest(".ui-menu-item"),i=V(t.currentTarget),e[0]!==i[0])||i.is(".ui-state-active")||(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,i))},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),t.children().each(function(){var t=V(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var e,i,n,s=!0;switch(t.keyCode){case V.ui.keyCode.PAGE_UP:this.previousPage(t);break;case V.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case V.ui.keyCode.HOME:this._move("first","first",t);break;case V.ui.keyCode.END:this._move("last","last",t);break;case V.ui.keyCode.UP:this.previous(t);break;case V.ui.keyCode.DOWN:this.next(t);break;case V.ui.keyCode.LEFT:this.collapse(t);break;case V.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case V.ui.keyCode.ENTER:case V.ui.keyCode.SPACE:this._activate(t);break;case V.ui.keyCode.ESCAPE:this.collapse(t);break;default:e=this.previousFilter||"",n=s=!1,i=96<=t.keyCode&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),i===e?n=!0:i=e+i,e=this._filterMenuItems(i),(e=n&&-1!==e.index(this.active.next())?this.active.nextAll(".ui-menu-item"):e).length||(i=String.fromCharCode(t.keyCode),e=this._filterMenuItems(i)),e.length?(this.focus(t,e),this.previousFilter=i,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}s&&t.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var t,e,n=this,s=this.options.icons.submenu,i=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),e=i.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=V(this),e=t.prev(),i=V("<span>").data("ui-menu-submenu-caret",!0);n._addClass(i,"ui-menu-icon","ui-icon "+s),e.attr("aria-haspopup","true").prepend(i),t.attr("aria-labelledby",e.attr("id"))}),this._addClass(e,"ui-menu","ui-widget ui-widget-content ui-front"),(t=i.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var t=V(this);n._isDivider(t)&&n._addClass(t,"ui-menu-divider","ui-widget-content")}),i=(e=t.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(e,"ui-menu-item")._addClass(i,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!V.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){var i;"icons"===t&&(i=this.element.find(".ui-menu-icon"),this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",String(t)),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),i=this.active.children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),i=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(t){var e,i,n;this._hasScroll()&&(i=parseFloat(V.css(this.activeMenu[0],"borderTopWidth"))||0,n=parseFloat(V.css(this.activeMenu[0],"paddingTop"))||0,e=t.offset().top-this.activeMenu.offset().top-i-n,i=this.activeMenu.scrollTop(),n=this.activeMenu.height(),t=t.outerHeight(),e<0?this.activeMenu.scrollTop(i+e):n<e+t&&this.activeMenu.scrollTop(i+e-n+t))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(t){var e=V.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(e)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var t=i?this.element:V(e&&e.target).closest(this.element.find(".ui-menu"));t.length||(t=this.element),this._close(t),this.blur(e),this._removeClass(t.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=t},i?0:this.delay)},_close:function(t){(t=t||(this.active?this.active.parent():this.element)).find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","fal
1se")},_closeOnDocumentClick:function(t){return!V(t.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this._menuItems(this.active.children(".ui-menu")).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_menuItems:function(t){return(t||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(t,e,i){var n;(n=this.active?"first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").last():this.active[t+"All"](".ui-menu-item").first():n)&&n.length&&this.active||(n=this._menuItems(this.activeMenu)[e]()),this.focus(i,n)},nextPage:function(t){var e,i,n;this.active?this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,n=this.element.innerHeight(),0===V.fn.jquery.indexOf("3.2.")&&(n+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each(function(){return(e=V(this)).offset().top-i-n<0}),this.focus(t,e)):this.focus(t,this._menuItems(this.activeMenu)[this.active?"last":"first"]())):this.next(t)},previousPage:function(t){var e,i,n;this.active?this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,n=this.element.innerHeight(),0===V.fn.jquery.indexOf("3.2.")&&(n+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each(function(){return 0<(e=V(this)).offset().top-i+n}),this.focus(t,e)):this.focus(t,this._menuItems(this.activeMenu).first())):this.next(t)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||V(t.target).closest(".ui-menu-item");var e={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,e)},_filterMenuItems:function(t){var t=t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),e=new RegExp("^"+t,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return e.test(String.prototype.trim.call(V(this).children(".ui-menu-item-wrapper").text()))})}}),V.widget("ui.autocomplete",{version:"1.13.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var i,n,s,t="textarea"===(e=this.element[0].nodeName.toLowerCase()),e="input"===e;this.isMultiLine=t||!e&&this._isContentEditable(this.element),this.valueMethod=this.element[t||e?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(t){if(this.element.prop("readOnly"))n=s=i=!0;else{n=s=i=!1;var e=V.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:i=!0,this._move("previousPage",t);break;case e.PAGE_DOWN:i=!0,this._move("nextPage",t);break;case e.UP:i=!0,this._keyEvent("previous",t);break;case e.DOWN:i=!0,this._keyEvent("next",t);break;case e.ENTER:this.menu.active&&(i=!0,t.preventDefault(),this.menu.select(t));break;case e.TAB:this.menu.active&&this.menu.select(t);break;case e.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(t),t.preventDefault());break;default:n=!0,this._searchTimeout(t)}}},keypress:function(t){if(i)i=!1,this.isMultiLine&&!this.menu.element.is(":visible")||t.preventDefault();else if(!n){var e=V.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:this._move("previousPage",t);break;case e.PAGE_DOWN:this._move("nextPage",t);break;case e.UP:this._keyEvent("previous",t);break;case e.DOWN:this._keyEvent("next",t)}}},input:function(t){s?(s=!1,t.preventDefault()):this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value(
vendor: 7,329 bytes, line 1
1)},blur:function(t){clearTimeout(this.searching),this.close(t),this._change(t)}}),this._initSource(),this.menu=V("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault()},menufocus:function(t,e){var i,n;this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent)&&/^mouse/.test(t.originalEvent.type)?(this.menu.blur(),this.document.one("mousemove",function(){V(t.target).trigger(t.originalEvent)})):(n=e.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:n})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(n.value),(i=e.item.attr("aria-label")||n.value)&&String.prototype.trim.call(i).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(V("<div>").text(i))},100)))},menuselect:function(t,e){var i=e.item.data("ui-autocomplete-item"),n=this.previous;this.element[0]!==V.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=n,this._delay(function(){this.previous=n,this.selectedItem=i})),!1!==this._trigger("select",t,{item:i})&&this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=V("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var e=this.menu.element[0];return t.target===this.element[0]||t.target===e||V.contains(e,t.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var t=this.options.appendTo;return(t=(t=t&&(t.jquery||t.nodeType?V(t):this.document.find(t).eq(0)))&&t[0]?t:this.element.closest(".ui-front, dialog")).length?t:this.document[0].body},_initSource:function(){var i,n,s=this;Array.isArray(this.options.source)?(i=this.options.source,this.source=function(t,e){e(V.ui.autocomplete.filter(i,t.term))}):"string"==typeof this.options.source?(n=this.options.source,this.source=function(t,e){s.xhr&&s.xhr.abort(),s.xhr=V.ajax({url:n,data:t,dataType:"json",success:function(t){e(t)},error:function(){e([])}})}):this.source=this.options.source},_searchTimeout:function(n){clearTimeout(this.searching),this.searching=this._delay(function(){var t=this.term===this._value(),e=this.menu.element.is(":visible"),i=n.altKey||n.ctrlKey||n.metaKey||n.shiftKey;t&&(e||i)||(this.selectedItem=null,this.search(null,n))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):!1!==this._trigger("search",e)?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(t){t=t&&this._normalize(t),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:V.map(t,function(t){return"string"==typeof t?{label:t,value:t}:V.extend({},t,{label:t.label||t.value,value:t.value||t.label})})},_suggest:function(t){var e=this.menu.element.empty();this._renderMenu(e,t),this.isNewMenu=!0,this.menu.refresh(),e.show(),this._resizeMenu(),e.position(V.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(i,t){var n=this;V.each(t,function(t,e){n._renderItemData(i,e)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(t,e){return V("<li>").append(V("<div>").text(e.label)).appendTo(t)},_move:function(t,e){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e);this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){var e;return!!t.length&&("inherit"===(e=t.prop("contentEditable"))?this._isContentEditable(t.parent()):"true"===e)}}),V.extend(V.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,e){var i=new RegExp(V.ui.autocomplete.escapeRegex(e),"i");return V.grep(t,function(t){return i.test(t.label||t.value||t)})}}),V.widget("ui.autocomplete",V.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(1<t?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var e;this._superApply(arguments),this.options.disabled||this.cancelSearch||(e=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(V("<div>").text(e))},100))}}),V.ui.autocomplete;var q,p,f,$=/ui-corner-([a-z]){2,6}/g;function B(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},V.extend(this._defaults,this.regional[""]),this.regional.en=V.extend(!0,{},this.regional[""]),this.regional["en-US"]=V.extend(!0,{},this.regional.en),this.dpDiv=Y(V("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function Y(t){var e="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",e,function(){V(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&V(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&V(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",e,U)}function U(){V.datepicker._isDisabledDatepicker((p.inline?p.dpDiv.parent():p.input)[0])||(V(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),V(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&V(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&V(this).addClass("ui-datepicker-next-hover"))}function g(t,e){for(var i in V.extend(t,e),e)null==e[i]&&(t[i]=e[i])}function m(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger("change")}}V.widget("ui.controlgroup",{version:"1.13.1",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var o=this,r=[];V.each(this.options.items,function(n,t){var e,s;if(t)return"controlgroupLabel"===n?((e=o.element.find(t)).each(function(){var t=V(this);t.children(".ui-controlgroup-label-contents").length||t.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),o._addClass(e,null,"ui-widget ui-widget-content ui-state-default"),void(r=r.concat(e.get()))):void(V.fn[n]&&(s=o["_"+n+"Options"]?o["_"+n+"Options"]("middle"):{classes:{}},o.element.find(t).each(function(){var t=V(this),e=t[n]("instance"),i=V.widget.extend({},s);"button"===n&&t.parent(".ui-spinner").length||((e=e||t[n]()[n]("instance"))&&(i.classes=o._resolveClassesValues(i.classes,e)),t[n](i),i=t[n]("widget"),V.data(i[0],"ui-controlgroup-data",e||t[n]("instance")),r.push(i[0]))})))}),this.childWidgets=V(V.uniqueSort(r)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each(function(){var t=V(this).data("ui-controlgroup-data");t&&t[e]&&t[e]()})},_updateCornerClass:function(t,e){e=this._buildSimpleOptions(e,"label").classes.label,this._removeClass(t,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(t,null,e)},_buildSimpleOptions:function(t,e){var i="vertical"===this.options.direction,n={classes:{}};return n.classes[e]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[t],n},_spinnerOptions:function(t){return(t=this._buildSimpleOptions(t,"ui-spinner")).classes["ui-spinner-up"]="",t.classes["ui-spinner-down"]="",t},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:e&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[t]}},_resolveClassesValues:function(i,n){var s={};return V.each(i,function(t){var e=n.options.classes[t]||"",e=String.prototype.trim.call(e.replace($,""));s[t]=(e+" "+i[t]).replace(/\s+/g," ")}),s},_setOption:function(t,e){"direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"!==t?this.refresh():this._callChildMethod(e?"disable":"enable")},refresh:function(){var s,o=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),s=this.childWidgets,(s=this.options.onlyVisible?s.filter(":visible"):s).length&&(V.each(["first","last"],function(t,e){var i,n=s[e]().data("ui-controlgroup-data");n&&o["_"+n.widgetName+"Options"]?((i=o["_"+n.widgetName+"Options"](1===s.length?"only":e)).classes=o._resolveClassesValues(i.classes,n),n.element[n.widgetName](i)):o._updateCornerClass(s[e](),e)}),this._callChildMethod("refresh"))}}),V.widget("ui.checkboxradio",[V.ui.formResetMixin,{version:"1.13.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var t,e=this,i=this._super()||{};return this._readType(),t=this.element.labels(),this.label=V(t[t.length-1]),this.label.length||V.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each(function(){e.originalLabel+=3===this.nodeType?V(this).text():this.outerHTML}),this.originalLabel&&(i.label=this.originalLabel),null!=(t=this.element[0].disabled)&&(i.disabled=t),i
vendor: 3,369 bytes, line 1
1},_create:function(){var t=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),t&&this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var t=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===t&&/radio|checkbox/.test(this.type)||V.error("Can't create checkboxradio on element.nodeName="+t+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var t=this.element[0].name,e="input[name='"+V.escapeSelector(t)+"']";return t?(this.form.length?V(this.form[0].elements).filter(e):V(e).filter(function(){return 0===V(this)._form().length})).not(this.element):V([])},_toggleClasses:function(){var t=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",t)._toggleClass(this.icon,null,"ui-icon-blank",!t),"radio"===this.type&&this._getRadioGroup().each(function(){var t=V(this).checkboxradio("instance");t&&t._removeClass(t.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(t,e){"label"===t&&!e||(this._super(t,e),"disabled"===t?(this._toggleClass(this.label,null,"ui-state-disabled",e),this.element[0].disabled=e):this.refresh())},_updateIcon:function(t){var e="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=V("<span>"),this.iconSpace=V("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(e+=t?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,t?"ui-icon-blank":"ui-icon-check")):e+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",e),t||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var t=this.label.contents().not(this.element[0]);this.icon&&(t=t.not(this.icon[0])),(t=this.iconSpace?t.not(this.iconSpace[0]):t).remove(),this.label.append(this.options.label)},refresh:function(){var t=this.element[0].checked,e=this.element[0].disabled;this._updateIcon(t),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),null!==this.options.label&&this._updateLabel(),e!==this.options.disabled&&this._setOptions({disabled:e})}}]),V.ui.checkboxradio,V.widget("ui.button",{version:"1.13.
11",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var t,e=this._super()||{};return this.isInput=this.element.is("input"),null!=(t=this.element[0].disabled)&&(e.disabled=t),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(e.label=this.originalLabel),e},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(t){t.keyCode===V.ui.keyCode.SPACE&&(t.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(t,e){var i="iconPosition"!==t,n=i?this.options.iconPosition:e,t="top"===n||"bottom"===n;this.icon?i&&this._removeClass(this.icon,null,this.options.icon):(this.icon=V("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),i&&this._addClass(this.icon,null,e),this._attachIcon(n),t?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconS
vendor: 10,806 bytes, line 1
1pace||(this.iconSpace=V("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(n))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(t){this.icon[/^(?:end|bottom)/.test(t)?"before":"after"](this.iconSpace)},_attachIcon:function(t){this.element[/^(?:end|bottom)/.test(t)?"append":"prepend"](this.icon)},_setOptions:function(t){var e=(void 0===t.showLabel?this.options:t).showLabel,i=(void 0===t.icon?this.options:t).icon;e||i||(t.showLabel=!0),this._super(t)},_setOption:function(t,e){"icon"===t&&(e?this._updateIcon(t,e):this.icon&&(this.icon.remove(),this.iconSpace)&&this.iconSpace.remove()),"iconPosition"===t&&this._updateIcon(t,e),"showLabel"===t&&(this._toggleClass("ui-button-icon-only",null,!e),this._updateTooltip()),"label"===t&&(this.isInput?this.element.val(e):(this.element.html(e),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(t,e),"disabled"===t&&(this._toggleClass(null,"ui-state-disabled",e),this.element[0].disabled=e)&&this.element.trigger("blur")},refresh:function(){var t=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOptions({disabled:t}),this._updateTooltip()}}),!1!==V.uiBackCompat&&(V.widget("ui.button",V.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(t,e){"text"!==t?("showLabel"===t&&(this.options.text=e),"icon"===t&&(this.options.icons.primary=e),"icons"===t&&(e.primary?(this._super("icon",e.primary),this._super("iconPosition","beginning")):e.secondary&&(this._super("icon",e.secondary),this._super("iconPosition","end"))),this._superApply(arguments)):this._super("showLabel",e)}}),V.fn.button=(q=V.fn.button,function(i){var t="string"==typeof i,n=Array.prototype.slice.call(arguments,1),s=this;return t?this.length||"instance"!==i?this.each(function(){var t=V(this).attr("type"),e=V.data(this,"ui-"+("checkbox"!==t&&"radio"!==t?"button":"checkboxradio"));return"instance"===i?(s=e,!1):e?"function"!=typeof e[i]||"_"===i.charAt(0)?V.error("no such method '"+i+"' for button widget instance"):(t=e[i].apply(e,n))!==e&&void 0!==t?(s=t&&t.jquery?s.pushStack(t.get()):t,!1):void 0:V.error("cannot call methods on button prior to initialization; attempted to call method '"+i+"'")}):s=void 0:(n.length&&(i=V.widget.extend.apply(null,[i].concat(n))),this.each(function(){var t=V(this).attr("type"),e="checkbox"!==t&&"radio"!==t?"button":"checkboxradio";(t=V.data(this,"ui-"+e))?(t.option(i||{}),t._init&&t._init()):"button"!=e?V(this).checkboxradio(V.extend({icon:!1},i)):q.call(V(this),i)})),s}),V.fn.buttonset=function(){return V.ui.controlgroup||V.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),V.ui.button,V.extend(V.ui,{datepicker:{version:"1.13.1"}}),V.extend(B.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return g(this._defaults,t||{}),this},_attachDatepicker:function(t,e){var i,n=t.nodeName.toLowerCase(),s="div"===n||"span"===n;t.id||(this.uuid+=1,t.id="dp"+this.uuid),(i=this._newInst(V(t),s)).settings=V.extend({},e||{}),"input"===n?this._connectDatepicker(t,i):s&&this._inlineDatepicker(t,i)},_newInst:function(t,e){return{id:t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:e,dpDiv:e?Y(V("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,e){var i=V(t);e.append=V([]),e.trigger=V([]),i.hasClass(this.markerClassName)||(this._attachments(i,e),i.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(e),V.data(t,"datepicker",e),e.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,e){var i,n=this._get(e,"appendText"),s=this._get(e,"isRTL");e.append&&e.append.remove(),n&&(e.append=V("<span>").addClass(this._appendClass).text(n),t[s?"before":"after"](e.append)),t.off("focus",this._showDatepicker),e.trigger&&e.trigger.remove(),"focus"!==(i=this._get(e,"showOn"))&&"both"!==i||t.on("focus",this._showDatepicker),"button"!==i&&"both"!==i||(n=this._get(e,"buttonText"),i=this._get(e,"buttonImage"),this._get(e,"buttonImageOnly")?e.trigger=V("<img>").addClass(this._triggerClass).attr({src:i,alt:n,title:n}):(e.trigger=V("<button type='button'>").addClass(this._triggerClass),i?e.trigger.html(V("<img>").attr({src:i,alt:n,title:n})):e.trigger.text(n)),t[s?"before":"after"](e.trigger),e.trigger.on("click",function(){return V.datepicker._datepickerShowing&&V.datepicker._lastInput===t[0]?V.datepicker._hideDatepicker():(V.datepicker._datepickerShowing&&V.datepicker._lastInput!==t[0]&&V.datepicker._hideDatepicker(),V.datepicker._showDatepicker(t[0])),!1}))},_autoSize:function(t){var e,i,n,s,o,r;this._get(t,"autoSize")&&!t.inline&&(o=new Date(2009,11,20),(r=this._get(t,"dateFormat")).match(/[DM]/)&&(o.setMonth((e=function(t){for(s=n=i=0;s<t.length;s++)t[s].length>i&&(i=t[s].length,n=s);return n})(this._get(t,r.match(/MM/)?"monthNames":"monthNamesShort"))),o.setDate(e(this._get(t,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-o.getDay())),t.input.attr("size",this._formatDate(t,o).length))},_inlineDatepicker:function(t,e){var i=V(t);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(e.dpDiv),V.data(t,"datepicker",e),this._setDate(e,this._getDefaultDate(e),!0),this._updateDatepicker(e),this._updateAlternate(e),e.settings.disabled&&this._disableDatepicker(t),e.dpDiv.css("display","block"))},_dialogDatepicker:function(t,e,i,n,s){var o,r=this._dialogInst;return r||(this.uuid+=1,o="dp"+this.uuid,this._dialogInput=V("<input type='text' id='"+o+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),V("body").append(this._dialogInput),(r=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},V.data(this._dialogInput[0],"datepicker",r)),g(r.settings,n||{}),e=e&&e.constructor===Date?this._formatDate(r,e):e,this._dialogInput.val(e),this._pos=s?s.length?s:[s.pageX,s.pageY]:null,this._pos||(o=document.documentElement.clientWidth,n=document.documentElement.clientHeight,e=document.documentElement.scrollLeft||document.body.scrollLeft,s=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[o/2-100+e,n/2-150+s]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),r.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),V.blockUI&&V.blockUI(this.dpDiv),V.data(this._dialogInput[0],"datepicker",r),this},_destroyDatepicker:function(t){var e,i=V(t),n=V.data(t,"datepicker");i.hasClass(this.markerClassName)&&(e=t.nodeName.toLowerCase(),V.removeData(t,"datepicker"),"input"===e?(n.append.remove(),n.trigger.remove(),i.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==e&&"span"!==e||i.removeClass(this.markerClassName).empty(),p===n)&&(p=null,this._curInst=null)},_enableDatepicker:function(e){var t,i=V(e),n=V.data(e,"datepicker");i.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!1,n.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==t&&"span"!==t||((i=i.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=V.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var t,i=V(e),n=V.data(e,"datepicker");i.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!0,n.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==t&&"span"!==t||((i=i.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=V.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(t)for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(t){try{return V.data(t,"datepicker")}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,e,i){var n,s,o=this._getInst(t);if(2===arguments.length&&"string"==typeof e)return"defaults"===e?V.extend({},V.datepicker._defaults):o?"all"===e?V.extend({},o.settings):this._get(o,e):null;n=e||{},"string"==typeof e&&((n={})[e]=i),o&&(this._curInst===o&&this._hideDatepicker(),s=this._getDateDatepicker(t,!0),e=this._getMinMaxDate(o,"min"),i=this._getMinMaxDate(o,"max"),g(o.settings,n),null!==e&&void 0!==n.dateFormat&&void 0===n.minDate&&(o.settings.minDate=this._formatDate(o,e)),null!==i&&void 0!==n.dateFormat&&void 0===n.maxDate&&(o.settings.maxDate=this._formatDate(o,i)),"disabled"in n&&(n.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(V(t),o),this._autoSize(o),this._setDate(o,s),this._updateAlternate(o),this._updateDatepicker(o))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){(t=this._getInst(t))&&this._updateDatepicker(t)},_setDateDatepicker:function(t,e){(t=this._getInst(t))&&(this._setDate(t,e),this._updateDatepicker(t),this._updateAlternate(t))}
vendor: 3,233 bytes, line 1
1,_getDateDatepicker:function(t,e){return(t=this._getInst(t))&&!t.inline&&this._setDateFromField(t,e),t?this._getDate(t):null},_doKeyDown:function(t){var e,i,n=V.datepicker._getInst(t.target),s=!0,o=n.dpDiv.is(".ui-datepicker-rtl");if(n._keyEvent=!0,V.datepicker._datepickerShowing)switch(t.keyCode){case 9:V.datepicker._hideDatepicker(),s=!1;break;case 13:return(i=V("td."+V.datepicker._dayOverClass+":not(."+V.datepicker._currentClass+")",n.dpDiv))[0]&&V.datepicker._selectDay(t.target,n.selectedMonth,n.selectedYear,i[0]),(e=V.datepicker._get(n,"onSelect"))?(i=V.datepicker._formatDate(n),e.apply(n.input?n.input[0]:null,[i,n])):V.datepicker._hideDatepicker(),!1;case 27:V.datepicker._hideDatepicker();break;case 33:V.datepicker._adjustDate(t.target,t.ctrlKey?-V.datepicker._get(n,"stepBigMonths"):-V.datepicker._get(n,"stepMonths"),"M");break;case 34:V.datepicker._adjustDate(t.target,t.ctrlKey?+V.datepicker._get(n,"stepBigMonths"):+V.datepicker._get(n,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&V.datepicker._clearDate(t.target),s=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&V.datepicker._gotoToday(t.target),s=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&V.datepicker._adjustDate(t.target,o?1:-1,"D"),s=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&V.datepicker._adjustDate(t.target,t.ctrlKey?-V.datepicker._get(n,"stepBigMonths"):-V.datepicker._get(n,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&V.datepicker._adjustDate(t.target,-7,"D"),s=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&V.datepicker._adjustDate(t.target,o?-1:1,"D"),s=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&V.datepicker._adjustDate(t.target,t.ctrlKey?+V.datepicker._get(n,"stepBigMonths"):+V.datepicker._get(n,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&V.datepicker._adjustDate(t.target,7,"D"),s=t.ctrlKey||t.metaKey;break;default:s=!1}else 36===t.keyCode&&t.ctrlKey?V.datepicker._showDatepicker(this):s=!1;s&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var e,i=V.datepicker._getInst(t.target);if(V.datepicker._get(i,"constrainInput"))return e=V.datepicker._possibleChars(V.datepicker._get(i,"dateFormat")),i=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||i<" "||!e||-1<e.indexOf(i)},_doKeyUp:function(t){if((t=V.datepicker._getInst(t.target)).input.val()!==t.lastVal)try{V.datepicker.parseDate(V.datepicker._get(t,"dateFormat"),t.input?t.input.val():null,V.datepicker._getFormatConfig(t))&&(V.datepicker._setDateFromField(t),V.datepicker._updateAlternate(t),V.datepicker._updateDatepicker(t))}catch(t){}return!0},_showDatepicker:function(t){var e,i,n,s;"input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=V("input",t.parentNode)[0]),V.datepicker._isDisabledDatepicker(t)||V.datepicker._lastInput===t||(s=V.datepicker._getInst(t),V.datepicker._curInst&&V.datepicker._curInst!==s&&(V.datepicker._curInst.dpDiv.stop(!0,!0),s)&&V.datepicker._datepickerShowing&&V.datepicker._hideDatepicker(V.datepicker._curInst.input[0]),!1!==(i=(n=V.datepicker._get(s,"beforeShow"))?n.apply(t,[t,s]):{})&&(g(s.settings,i),s.lastVal=null,V.datepicker._lastInput=t,V.datepicker._setDateFromField(s),V.datepicker._inDialog&&(t.value=""),
vendor: 18,427 bytes, line 1
1V.datepicker._pos||(V.datepicker._pos=V.datepicker._findPos(t),V.datepicker._pos[1]+=t.offsetHeight),e=!1,V(t).parents().each(function(){return!(e|="fixed"===V(this).css("position"))}),n={left:V.datepicker._pos[0],top:V.datepicker._pos[1]},V.datepicker._pos=null,s.dpDiv.empty(),s.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),V.datepicker._updateDatepicker(s),n=V.datepicker._checkOffset(s,n,e),s.dpDiv.css({position:V.datepicker._inDialog&&V.blockUI?"static":e?"fixed":"absolute",display:"none",left:n.left+"px",top:n.top+"px"}),s.inline||(i=V.datepicker._get(s,"showAnim"),n=V.datepicker._get(s,"duration"),s.dpDiv.css("z-index",function(t){for(var e;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&(e=parseInt(t.css("zIndex"),10),!isNaN(e))&&0!==e)return e;t=t.parent()}return 0}(V(t))+1),V.datepicker._datepickerShowing=!0,V.effects&&V.effects.effect[i]?s.dpDiv.show(i,V.datepicker._get(s,"showOptions"),n):s.dpDiv[i||"show"](i?n:null),V.datepicker._shouldFocusInput(s)&&s.input.trigger("focus"),V.datepicker._curInst=s)))},_updateDatepicker:function(t){this.maxRows=4,(p=t).dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var e,i=this._getNumberOfMonths(t),n=i[1],s=t.dpDiv.find("."+this._dayOverClass+" a"),o=V.datepicker._get(t,"onUpdateDatepicker");0<s.length&&U.apply(s.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<n&&t.dpDiv.addClass("ui-datepicker-multi-"+n).css("width",17*n+"em"),t.dpDiv[(1!==i[0]||1!==i[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===V.datepicker._curInst&&V.datepicker._datepickerShowing&&V.datepicker._shouldFocusInput(t)&&t.input.trigger("focus"),t.yearshtml&&(e=t.yearshtml,setTimeout(function(){e===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year").first().replaceWith(t.yearshtml),e=t.yearshtml=null},0)),o&&o.apply(t.input?t.input[0]:null,[t])},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(t,e,i){var n=t.dpDiv.outerWidth(),s=t.dpDiv.outerHeight(),o=t.input?t.input.outerWidth():0,r=t.input?t.input.outerHeight():0,a=document.documentElement.clientWidth+(i?0:V(document).scrollLeft()),l=document.documentElement.clientHeight+(i?0:V(document).scrollTop());return e.left-=this._get(t,"isRTL")?n-o:0,e.left-=i&&e.left===t.input.offset().left?V(document).scrollLeft():0,e.top-=i&&e.top===t.input.offset().top+r?V(document).scrollTop():0,e.left-=Math.min(e.left,e.left+n>a&&n<a?Math.abs(e.left+n-a):0),e.top-=Math.min(e.top,e.top+s>l&&s<l?Math.abs(s+r):0),e},_findPos:function(t){for(var e=this._getInst(t),i=this._get(e,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||V.expr.pseudos.hidden(t));)t=t[i?"previousSibling":"nextSibling"];return[(e=V(t).offset()).left,e.top]},_hideDatepicker:function(t){var e,i,n=this._curInst;!n||t&&n!==V.data(t,"datepicker")||this._datepickerShowing&&(e=this._get(n,"showAnim"),i=this._get(n,"duration"),t=function(){V.datepicker._tidyDialog(n)},V.effects&&(V.effects.effect[e]||V.effects[e])?n.dpDiv.hide(e,V.datepicker._get(n,"showOptions"),i,t):n.dpDiv["slideDown"===e?"slideUp":"fadeIn"===e?"fadeOut":"hide"](e?i:null,t),e||t(),this._datepickerShowing=!1,(t=this._get(n,"onClose"))&&t.apply(n.input?n.input[0]:null,[n.input?n.input.val():"",n]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),V.blockUI)&&(V.unblockUI(),V("body").append(this.dpDiv)),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){var e;V.datepicker._curInst&&(e=V(t.target),t=V.datepicker._getInst(e[0]),!(e[0].id===V.datepicker._mainDivId||0!==e.parents("#"+V.datepicker._mainDivId).length||e.hasClass(V.datepicker.markerClassName)||e.closest("."+V.datepicker._triggerClass).length||!V.datepicker._datepickerShowing||V.datepicker._inDialog&&V.blockUI)||e.hasClass(V.datepicker.markerClassName)&&V.datepicker._curInst!==t)&&V.datepicker._hideDatepicker()},_adjustDate:function(t,e,i){var n=V(t),t=this._getInst(n[0]);this._isDisabledDatepicker(n[0])||(this._adjustInstDate(t,e,i),this._updateDatepicker(t))},_gotoToday:function(t){var e=V(t),i=this._getInst(e[0]);this._get(i,"gotoCurrent")&&i.currentDay?(i.selectedDay=i.currentDay,i.drawMonth=i.selectedMonth=i.currentMonth,i.drawYear=i.selectedYear=i.currentYear):(t=new Date,i.selectedDay=t.getDate(),i.drawMonth=i.selectedMonth=t.getMonth(),i.drawYear=i.selectedYear=t.getFullYear()),this._notifyChange(i),this._adjustDate(e)},_selectMonthYear:function(t,e,i){var n=V(t);(t=this._getInst(n[0]))["selected"+("M"===i?"Month":"Year")]=t["draw"+("M"===i?"Month":"Year")]=parseInt(e.options[e.selectedIndex].value,10),this._notifyChange(t),this._adjustDate(n)},_selectDay:function(t,e,i,n){var s=V(t);V(n).hasClass(this._unselectableClass)||this._isDisabledDatepicker(s[0])||((s=this._getInst(s[0])).selectedDay=s.currentDay=parseInt(V("a",n).attr("data-date")),s.selectedMonth=s.currentMonth=e,s.selectedYear=s.currentYear=i,this._selectDate(t,this._formatDate(s,s.currentDay,s.currentMonth,s.currentYear)))},_clearDate:function(t){t=V(t),this._selectDate(t,"")},_selectDate:function(t,e){var i=V(t),t=this._getInst(i[0]);e=null!=e?e:this._formatDate(t),t.input&&t.input.val(e),this._updateAlternate(t),(i=this._get(t,"onSelect"))?i.apply(t.input?t.input[0]:null,[e,t]):t.input&&t.input.trigger("change"),t.inline?this._updateDatepicker(t):(this._hideDatepicker(),this._lastInput=t.input[0],"object"!=typeof t.input[0]&&t.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var e,i,n=this._get(t,"altField");n&&(e=this._get(t,"altFormat")||this._get(t,"dateFormat"),i=this._getDate(t),t=this.formatDate(e,i,this._getFormatConfig(t)),V(document).find(n).val(t))},noWeekends:function(t){return[0<(t=t.getDay())&&t<6,""]},iso8601Week:function(t){var e=new Date(t.getTime());return e.setDate(e.getDate()+4-(e.getDay()||7)),t=e.getTime(),e.setMonth(0),e.setDate(1),Math.floor(Math.round((t-e)/864e5)/7)+1},parseDate:function(e,s,t){if(null==e||null==s)throw"Invalid arguments";if(""===(s="object"==typeof s?s.toString():s+""))return null;for(var i,n,o=0,r="string"!=typeof(r=(t?t.shortYearCutoff:null)||this._defaults.shortYearCutoff)?r:(new Date).getFullYear()%100+parseInt(r,10),a=(t?t.dayNamesShort:null)||this._defaults.dayNamesShort,l=(t?t.dayNames:null)||this._defaults.dayNames,h=(t?t.monthNamesShort:null)||this._defaults.monthNamesShort,c=(t?t.monthNames:null)||this._defaults.monthNames,u=-1,d=-1,p=-1,f=-1,g=!1,m=function(t){return(t=y+1<e.length&&e.charAt(y+1)===t)&&y++,t},v=function(t){var e=m(t),e="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,e=new RegExp("^\\d{"+("y"===t?e:1)+","+e+"}");if(e=s.substring(o).match(e))return o+=e[0].length,parseInt(e[0],10);throw"Missing number at position "+o},_=function(t,e,i){var n=-1,e=V.map(m(t)?i:e,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(V.each(e,function(t,e){var i=e[1];if(s.substr(o,i.length).toLowerCase()===i.toLowerCase())return n=e[0],o+=i.length,!1}),-1!==n)return n+1;throw"Unknown name at position "+o},b=function(){if(s.charAt(o)!==e.charAt(y))throw"Unexpected literal at position "+o;o++},y=0;y<e.length;y++)if(g)"'"!==e.charAt(y)||m("'")?b():g=!1;else switch(e.charAt(y)){case"d":p=v("d");break;case"D":_("D",a,l);break;case"o":f=v("o");break;case"m":d=v("m");break;case"M":d=_("M",h,c);break;case"y":u=v("y");break;case"@":u=(n=new Date(v("@"))).getFullYear(),d=n.getMonth()+1,p=n.getDate();break;case"!":u=(n=new Date((v("!")-this._ticksTo1970)/1e4)).getFullYear(),d=n.getMonth()+1,p=n.getDate();break;case"'":m("'")?b():g=!0;break;default:b()}if(o<s.length&&(t=s.substr(o),!/^\s+/.test(t)))throw"Extra/unparsed characters found in date: "+t;if(-1===u?u=(new Date).getFullYear():u<100&&(u+=(new Date).getFullYear()-(new Date).getFullYear()%100+(u<=r?0:-100)),-1<f)for(d=1,p=f;!(p<=(i=this._getDaysInMonth(u,d-1)));)d++,p-=i;if((n=this._daylightSavingAdjust(new Date(u,d-1,p))).getFullYear()!==u||n.getMonth()+1!==d||n.getDate()!==p)throw"Invalid date";return n},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:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(e,t,i){if(!t)return"";function n(t,e,i){var n=""+e;if(c(t))for(;n.length<i;)n="0"+n;return n}function s(t,e,i,n){return(c(t)?n:i)[e]}var o,r=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,a=(i?i.dayNames:null)||this._defaults.dayNames,l=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,h=(i?i.monthNames:null)||this._defaults.monthNames,c=function(t){return(t=o+1<e.length&&e.charAt(o+1)===t)&&o++,t},u="",d=!1;if(t)for(o=0;o<e.length;o++)if(d)"'"!==e.charAt(o)||c("'")?u+=e.charAt(o):d=!1;else switch(e.charAt(o)){case"d":u+=n("d",t.getDate(),2);break;case"D":u+=s("D",t.getDay(),r,a);break;case"o":u+=n("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":u+=n("m",t.getMonth()+1,2);break;case"M":u+=s("M",t.getMonth(),l,h);break;case"y":u+=c("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":u+=t.getTime();break;case"!":u+=1e4*t.getTime()+this._ticksTo1970;break;case"'":c("'")?u+="'":d=!0;break;default:u+=e.charAt(o)}return u},_possibleChars:function(e){for(var t="",i=!1,n=function(t){return(t=s+1<e.length&&e.charAt(s+1)===t)&&s++,t},s=0;s<e.length;s++)if(i)"'"!==e.charAt(s)||n("'")?t+=e.charAt(s):i=!1;else switch(e.charAt(s)){case"d":case"m":case"y":case"@":t+="0123456789";break;case"D":case"M":return null;case"'":n("'")?t+="'":i=!0;break;default:t+=e.charAt(s)}return t},_get:function(t,e){return(void 0!==t.settings[e]?t.settings:this._defaults)[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),n=t.lastVal=t.input?t.input.val():null,s=this._getDefaultDate(t),o=s,r=this._getFormatConfig(t);try{o=this.parseDate(i,n,r)||s}catch(t){n=e?"":n}t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),t.currentDay=n?o.getDate():0,t.currentMonth=n?o.getMonth():0,t.currentYear=n?o.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(a,t,e){var i,n;return(t=(t=null==t||""===t?e:"string"==typeof t?function(t){try{return V.datepicker.parseDate(V.datepicker._get(a,"dateFormat"),t,V.datepicker._getFormatConfig(a))}catch(t){}for(var e=(t.toLowerCase().match(/^c/)?V.datepicker._getDate(a):null)||new Date,i=e.getFullYear(),n=e.getMonth(),s=e.getDate(),o=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,r=o.exec(t);r;){switch(r[2]||"d"){case"d":case"D":s+=parseInt(r[1],10);break;case"w":case"W":s+=7*parseInt(r[1],10);break;case"m":case"M":n+=parseInt(r[1],10),s=Math.min(s,V.datepicker._getDaysInMonth(i,n));break;case"y":case"Y":i+=parseInt(r[1],10),s=Math.min(s,V.datepicker._getDaysInMonth(i,n))}r=o.exec(t)}return new Date(i,n,s)}(t):"number"==typeof t?isNaN(t)?e:(i=t,(n=new Date).setDate(n.getDate()+i),n):new Date(t.getTime()))&&"Invalid Date"===t.toString()?e:t)&&(t.setHours(0),t.setMinutes(0),t.setSeconds(0),t.setMilliseconds(0)),this._daylightSavingAdjust(t)},_daylightSavingAdjust:function(t){return t?(t.setHours(12<t.getHours()?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var n=!e,s=t.selectedMonth,o=t.selectedYear,e=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=e.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=e.getMonth(),t.drawYear=t.selectedYear=t.currentYear=e.getFullYear(),s===t.selectedMonth&&o===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(n?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(t){var e=this._get(t,"stepMonths"),i="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){V.datepicker._adjustDate(i,-e,"M")},next:function(){V.datepicker._adjustDate(i,+e,"M")},hide:function(){V.datepicker._hideDatepicker()},today:function(){V.datepicker._gotoToday(i)},selectDay:function(){return V.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return V.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return V.datepicker._selectMonthYear(i,this,"Y"),!1}};V(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,i,n,s,o,z,L,F,W,r,a,j,l,h,c,u,d,p,f,g,m,v,R,_,b,y,w,q,$,x,k,C,D=new Date,B=this._daylightSavingAdjust(new Date(D.getFullYear(),D.getMonth(),D.getDate())),T=this._get(t,"isRTL"),Y=this._get(t,"showButtonPanel"),S=this._get(t,"hideIfNoPrevNext"),I=this._get(t,"navigationAsDateFormat"),P=this._getNumberOfMonths(t),M=this._get(t,"showCurrentAtPos"),D=this._get(t,"stepMonths"),U=1!==P[0]||1!==P[1],A=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),N=this._getMinMaxDate(t,"min"),E=this._getMinMaxDate(t,"max"),H=t.drawMonth-M,O=t.drawYear;if(H<0&&(H+=12,O--),E)for(e=this._daylightSavingAdjust(new Date(E.getFullYear(),E.getMonth()-P[0]*P[1]+1,E.getDate())),e=N&&e<N?N:e;this._daylightSavingAdjust(new Date(O,H,1))>e;)--H<0&&(H=11,O--);for(t.drawMonth=H,t.drawYear=O,M=this._get(t,"prevText"),M=I?this.formatDate(M,this._daylightSavingAdjust(new Date(O,H-D,1)),this._getFormatConfig(t)):M,i=this._canAdjustMonth(t,-1,O,H)?V("<a>").attr({"class":"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:M}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(T?"e":"w")).text(M))[0].outerHTML:S?"":V("<a>").attr({"class":"ui-datepicker-prev ui-corner-all ui-state-disabled",title:M}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(T?"e":"w")).text(M))[0].outerHTML,M=this._get(t,"nextText"),M=I?this.formatDate(M,this._daylightSavingAdjust(new Date(O,H+D,1)),this._getFormatConfig(t)):M,n=this._canAdjustMonth(t,1,O,H)?V("<a>").attr({"class":"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:M}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(T?"w":"e")).text(M))[0].outerHTML:S?"":V("<a>").attr({"class":"ui-datepicker-next ui-corner-all ui-state-disabled",title:M}).append(V("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(T?"w":"e")).text(M))[0].outerHTML,D=this._get(t,"currentText"),S=this._get(t,"gotoCurrent")&&t.currentDay?A:B,D=I?this.formatDate(D,S,this._getFormatConfig(t)):D,M="",t.inline||(M=V("<button>").attr({type:"button","class":"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(t,"closeText"))[0].outerHTML),I="",Y&&(I=V("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(T?M:"").append(this._isInRange(t,S)?V("<button>").attr({type:"button","class":"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(D):"").append(T?"":M)[0].outerHTML),s=parseInt(this._get(t,"firstDay"),10),s=isNaN(s)?0:s,o=this._get(t,"showWeek"),z=this._get(t,"dayNames"),L=this._get(t,"dayNamesMin"),F=this._get(t,"monthNames"),W=this._get(t,"monthNamesShort"),r=this._get(t,"beforeShowDay"),a=this._get(t,"showOtherMonths"),j=this._get(t,"selectOtherMonths"),l=this._getDefaultDate(t),h="",u=0;u<P[0];u++){for(d="",this.maxRows=4,p=0;p<P[1];p++){if(f=this._daylightSavingAdjust(new Date(O,H,t.selectedDay)),g=" ui-corner-all",m="",U){if(m+="<div class='ui-datepicker-group",1<P[1])switch(p){case 0:m+=" ui-datepicker-group-first",g=" ui-corner-"+(T?"right":"left");break;case P[1]-1:m+=" ui-datepicker-group-last",g=" ui-corner-"+(T?"left":"right");break;default:m+=" ui-datepicker-group-middle",g=""}m+="'>"}for(m+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+g+"'>"+(/all|left/.test(g)&&0===u?T?n:i:"")+(/all|right/.test(g)&&0===u?T?i:n:"")+this._generateMonthYearHeader(t,H,O,N,E,0<u||0<p,F,W)+"</div><table class='ui-datepicker-calendar'><thead><tr>",v=o?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",c=0;c<7;c++)v+="<th scope='col'"+(5<=(c+s+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+z[R=(c+s)%7]+"'>"+L[R]+"</span></th>";for(m+=v+"</tr></thead><tbody>",b=this._getDaysInMonth(O,H),O===t.selectedYear&&H===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,b)),_=(this._getFirstDayOfMonth(O,H)-s+7)%7,b=Math.ceil((_+b)/7),y=U&&this.maxRows>b?this.maxRows:b,this.maxRows=y,w=this._daylightSavingAdjust(new Date(O,H,1-_)),q=0;q<y;q++){for(m+="<tr>",$=o?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(w)+"</td>":"",c=0;c<7;c++)x=r?r.apply(t.input?t.input[0]:null,[w]):[!0,""],C=(k=w.getMonth()!==H)&&!j||!x[0]||N&&w<N||E&&E<w,$+="<td class='"+(5<=(c+s+6)%7?" ui-datepicker-week-end":"")+(k?" ui-datepicker-other-month":"")+(w.getTime()===f.getTime()&&H===t.selectedMonth&&t._keyEvent||l.getTime()===w.getTime()&&l.getTime()===f.getTime()?" "+this._dayOverClass:"")+(C?" "+this._unselectableClass+" ui-state-disabled":"")+(k&&!a?"":" "+x[1]+(w.getTime()===A.getTime()?" "+this._currentClass:"")+(w.getTime()===B.getTime()?" ui-datepicker-today":""))+"'"+(k&&!a||!x[2]?"":" title='"+x[2].replace(/'/g,"'")+"'")+(C?"":" data-handler='selectDay' data-event='click' data-month='"+w.getMonth()+"' data-year='"+w.getFullYear()+"'")+">"+(k&&!a?" ":C?"<span class='ui-state-default'>"+w.getDate()+"</span>":"<a class='ui-state-default"+(w.getTime()===B.getTime()?" ui-state-highlight":"")+(w.getTime()===A.getTime()?" ui-state-active":"")+(k?" ui-priority-secondary":"")+"' href='#' aria-current='"+(w.getTime()===A.getTime()?"true":"false")+"' data-date='"+w.getDate()+"'>"+w.getDate()+"</a>")+"</td>
1",w.setDate(w.getDate()+1),w=this._daylightSavingAdjust(w);m+=$+"</tr>"}11<++H&&(H=0,O++),d+=m+="</tbody></table>"+(U?"</div>"+(0<P[0]&&p===P[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}h+=d}return h+=I,t._keyEvent=!1,h},_generateMonthYearHeader:function(t,e,i,n,s,o,r,a){var l,h,c,u,d,p,f=this._get(t,"changeMonth"),g=this._get(t,"changeYear"),m=this._get(t,"showMonthAfterYear"),v=this._get(t,"selectMonthLabel"),_=this._get(t,"selectYearLabel"),b="<div class='ui-datepicker-title'>",y="";if(o||!f)y+="<span class='ui-datepicker-month'>"+r[e]+"</span>";else{for(l=n&&n.getFullYear()===i,h=s&&s.getFullYear()===i,y+="<select class='ui-datepicker-month' aria-label='"+v+"' data-handler='selectMonth' data-event='change'>",c=0;c<12;c++)(!l||c>=n.getMonth())&&(!h||c<=s.getMonth())&&(y+="<option value='"+c+"'"+(c===e?" selected='selected'":"")+">"+a[c]+"</option>");y+="</select>"}if(m||(b+=y+(!o&&f&&g?"":" ")),!t.yearshtml)if(t.yearshtml="",o||!g)b+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(r=this._get(t,"yearRange").split(":"),u=(new Date).getFullYear(),d=(v=function(t){return t=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?u+parseInt(t,10):parseInt(t,10),isNaN(t)?u:t})(r[0]),p=Math.max(d,v(r[1]||"")),d=n?Math.max(d,n.getFullYear()):d,p=s?Math.min(p,s.getFullYear()):p,t.yearshtml+="<select class='ui-datepicker-year' aria-label='"+_+"' data-handler='selectYear' data-event='change'>";d<=p;d++)t.yearshtml+="<option value='"+d+"'"+(d===i?" selected='selected'":"")+">"+d+"</option>";t.yearshtml+="</select>",b+=t.yearshtml,t.yearshtml=null}return b+=this._get(t,"yearSuffix"),m&&(b+=(!o&&f&&g?"":" ")+y),b+"</div>"},_adjustInstDate:function(t,e,i){var n=t.selectedYear+("Y"===i?e:0),s=t.selectedMonth+("M"===i?e:0),e=Math.min(t.selectedDay,this._getDaysInMonth(n,s))+("D"===i?e:0),e=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(n,s,e)));t.selectedDay=e.getDate(),t.drawMonth=t.selectedMonth=e.getMonth(),t.drawYear=t.selectedYear=e.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),e=i&&e<i?i:e;return(t=this._getMinMaxDate(t,"max"))&&t<e?t:e},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){return null==(t=this._get(t,"numberOfMonths"))?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,n){var s=this._getNumberOfMonths(t),s=this._daylightSavingAdjust(new Date(i,n+(e<0?e:s[0]*s[1]),1));return e<0&&s.setDate(this._getDaysInMonth(s.getFullYear(),s.getMonth())),this._isInRange(t,s)},_isInRange:function(t,e){var i=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max"),s=null,o=null,r=this._get(t,"yearRange");return r&&(t=r.split(":"),r=(new Date).getFullYear(),s=parseInt(t[0],10),o=parseInt(t[1],10),t[0].match(/[+\-].*/)&&(s+=r),t[1].match(/[+\-].*/))&&(o+=r),(!i||e.getTime()>=i.getTime())&&(!n||e.getTime()<=n.getTime())&&(!s||e.getFullYear()>=s)&&(!o||e.getFullYear()<=o)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:"string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,n){return e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear),e=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(n,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay)),this.formatDate(this._get(t,"dateFormat"),e,this._getFormatConfig(t))}}),V.fn.datepicker=function(t){if(!this.length)return this;V.datepicker.initialized||(V(document).on("mousedown",V.datepicker._checkExternalClick),V.datepicker.initialized=!0),0===V("#"+V.datepicker._mainDivId).length&&V("body").append(V.datepicker.dpDiv);
vendor: 15,670 bytes, line 1
1var e=Array.prototype.slice.call(arguments,1);return"string"==typeof t&&("isDisabled"===t||"getDate"===t||"widget"===t)||"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?V.datepicker["_"+t+"Datepicker"].apply(V.datepicker,[this[0]].concat(e)):this.each(function(){"string"==typeof t?V.datepicker["_"+t+"Datepicker"].apply(V.datepicker,[this].concat(e)):V.datepicker._attachDatepicker(this,t)})},V.datepicker=new B,V.datepicker.initialized=!1,V.datepicker.uuid=(new Date).getTime(),V.datepicker.version="1.13.1",V.datepicker,V.widget("ui.dialog",{version:"1.13.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var e=V(this).css(t).offset().top;e<0&&V(this).css("top",t.top-e)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&V.fn.draggable&&this._makeDraggable(),this.options.resizable&&V.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?V(t):this.document.find(t||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(t=e.parent.children().eq(e.index)).length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:V.noop,enable:V.noop,close:function(t){var e=this;this._isOpen&&!1!==this._trigger("beforeClose",t)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||V.ui.safeBlur(V.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){e._trigger("close",t)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,e){var i=!1,n=this.uiDialog.siblings(".ui-front:visible").map(function(){return+V(this).css("z-index")}).get();return(n=Math.max.apply(null,n))>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",n+1),i=!0),i&&!e&&this._trigger("focus",t),i},open:function(){var t=this;this._isOpen?this._moveToTop()&&this._focusTabbable():(this._isOpen=!0,this.opener=V(V.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){t._focusTabbable(),t._trigger("focus")}),this._makeFocusTarget(),this._trigger("open"))},_focusTabbable:function(){var t=this._focusedElement;(t=(t=(t=(t=(t=t||this.element.find("[autofocus]")).length?t:this.element.find(":tabbable")).length?t:this.uiDialogButtonPane.find(":tabbable")).length?t:this.uiDialogTitlebarClose.filter(":tabbable")).length?t:this.uiDialog).eq(0).trigger("focus")},_restoreTabbableFocus:function(){var t=V.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===t||V.contains(this.uiDialog[0],t)||this._focusTabbable()},_keepFocus:function(t){t.preventDefault(),this._restoreTabbableFocus(),this._delay(this._restoreTabbableFocus)},_createWrapper:function(){this.uiDialog=V("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(t){var e,i,n;this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===V.ui.keyCode.ESCAPE?(t.preventDefault(),this.close(t)):t.keyCode!==V.ui.keyCode.TAB||t.isDefaultPrevented()||(e=this.uiDialog.find(":tabbable"),i=e.first(),n=e.last(),t.target!==n[0]&&t.target!==this.uiDialog[0]||t.shiftKey?t.target!==i[0]&&t.target!==this.uiDialog[0]||!t.shiftKey||(this._delay(function(){n.trigger("focus")}),t.preventDefault()):(this._delay(function(){i.trigger("focus")}),t.preventDefault()))},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=V("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(t){V(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=V("<button type='button'></button>").button({label:V("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),t=V("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(t,"ui-dialog-title"),this._title(t),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(t){this.options.title?t.text(this.options.title):t.html(" ")},_createButtonPane:function(){this.uiDialogButtonPane=V("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=V("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var n=this,t=this.options.buttons;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),V.isEmptyObject(t)||Array.isArray(t)&&!t.length?this._removeClass(this.uiDialog,"ui-dialog-buttons"):(V.each(t,function(t,e){var i;e=V.extend({type:"button"},e="function"==typeof e?{click:e,text:t}:e),i=e.click,t={icon:e.icon,iconPosition:e.iconPosition,showLabel:e.showLabel,icons:e.icons,text:e.text},delete e.click,delete e.icon,delete e.iconPosition,delete e.showLabel,delete e.icons,"boolean"==typeof e.text&&delete e.text,V("<button></button>",e).button(t).appendTo(n.uiButtonSet).on("click",function(){i.apply(n.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){var s=this,o=this.options;function r(t){return{position:t.position,offset:t.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(t,e){s._addClass(V(this),"ui-dialog-dragging"),s._blockFrames(),s._trigger("dragStart",t,r(e))},drag:function(t,e){s._trigger("drag",t,r(e))},stop:function(t,e){var i=e.offset.left-s.document.scrollLeft(),n=e.offset.top-s.document.scrollTop();o.position={my:"left top",at:"left"+(0<=i?"+":"")+i+" top"+(0<=n?"+":"")+n,of:s.window},s._removeClass(V(this),"ui-dialog-dragging"),s._unblockFrames(),s._trigger("dragStop",t,r(e))}})},_makeResizable:function(){var s=this,o=this.options,t=o.resizable,e=this.uiDialog.css("position"),t="string"==typeof t?t:"n,e,s,w,se,sw,ne,nw";function r(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:o.maxWidth,maxHeight:o.maxHeight,minWidth:o.minWidth,minHeight:this._minHeight(),handles:t,start:function(t,e){s._addClass(V(this),"ui-dialog-resizing"),s._blockFrames(),s._trigger("resizeStart",t,r(e))},resize:function(t,e){s._trigger("resize",t,r(e))},stop:function(t,e){var i=(n=s.uiDialog.offset()).left-s.document.scrollLeft(),n=n.top-s.document.scrollTop();o.height=s.uiDialog.height(),o.width=s.uiDialog.width(),o.position={my:"left top",at:"left"+(0<=i?"+":"")+i+" top"+(0<=n?"+":"")+n,of:s.window},s._removeClass(V(this),"ui-dialog-resizing"),s._unblockFrames(),s._trigger("resizeStop",t,r(e))}}).css("position",e)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget(),this._focusedElement=V(t.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),e=V.inArray(this,t);-1!==e&&t.splice(e,1)},_trackingInstances:function(){var t=this.document.data("ui-dialog-instances");return t||this.document.data("ui-dialog-instances",t=[]),t},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(t){var i=this,n=!1,s={};V.each(t,function(t,e){i._setOption(t,e),t in i.sizeRelatedOptions&&(n=!0),t in i.resizableRelatedOptions&&(s[t]=e)}),n&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",s)},_setOption:function(t,e){var i,n=this.uiDialog;"disabled"!==t&&(this._super(t,e),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:V("<a>").text(""+this.options.closeText).html()}),"draggable"===t&&((i=n.is(":data(ui-draggable)"))&&!e&&n.draggable("destroy"),!i)&&e&&this._makeDraggable(),"position"===t&&this._position(),"resizable"===t&&((i=n.is(":data(ui-resizable)"))&&!e&&n.resizable("destroy"),i&&"string"==typeof e&&n.resizable("option","handles",e),i||!1===e||this._makeResizable()),"title"===t)&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title"))},_size:function(){var t,e,i,n=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),n.minWidth>n.width&&(n.width=n.minWidth),t=this.uiDialog.css({height:"auto",width:n.width}).outerHeight(),e=Math.max(0,n.minHeight-t),i="number"==typeof n.maxHeight?Math.max(0,n.maxHeight-t):"none","auto"===n.height?this.element.css({minHeight:e,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,n.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var t=V(this);return V("<div>").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return!!V(t.target).closest(".ui-dialog").length||!!V(t.target).closest(".ui-datepicker").length},_createOverlay:function(){var i,n;this.options.modal&&(i=V.fn.jquery.substring(0,4),n=!0,this._delay(function(){n=!1}),this.document.data("ui-dialog-overlays")||this.document.on("focusin.ui-dialog",function(t){var e;n||(e=this._trackingInstances()[0])._allowInteraction(t)||(t.preventDefault(),e._focusTabbable(),"3.4."!==i&&"3.5."!==i)||e._delay(e._restoreTabbableFocus)}.bind(this)),this.overlay=V("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1))},_destroyOverlay:function(){var t;this.options.modal&&this.overlay&&((t=this.document.data("ui-dialog-overlays")-1)?this.document.data("ui-dialog-overlays",t):(this.document.off("focusin.ui-dialog"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null)}}),!1!==V.uiBackCompat&&V.widget("ui.dialog",V.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(t,e){"dialogClass"===t&&this.uiDialog.removeClass(this.options.dialogClass).addClass(e),this._superApply(arguments)}}),V.ui.dialog,V.widget("ui.progressbar",{version:"1.13.1",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=V("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(t){if(void 0===t)return this.options.value;this.options.value=this._constrainedValue(t),this._refreshValue()},_constrainedValue:function(t){return void 0===t&&(t=this.options.value),this.indeterminate=!1===t,"number"!=typeof t&&(t=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){"max"===t&&(e=Math.max(this.min,e)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,e=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).width(e.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,t===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=V("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":t}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==t&&(this.oldValue=t,this._trigger("change")),t===this.options.max&&this._trigger("complete")}}),V.widget("ui.selectmenu",[V.ui.formResetMixin,{version:"1.13.1",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"}
vendor: 4,711 bytes, line 1
1,width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var t=this.element.uniqueId().attr("id");this.ids={element:t,button:t+"-button",menu:t+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=V()},_drawButton:function(){var t,e=this,i=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(t){this.button.trigger("focus"),t.preventDefault()}}),this.element.hide(),this.button=V("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),t=V("<span>").appendTo(this.button),this._addClass(t,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(i).appendTo(this.button),!1!==this.options.width&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){e._rendered||e._refreshMenu()})},_drawMenu:function(){var i=this;this.menu=V("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=V("<div>").append(this.menu),this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(t,e){t.preventDefault(),i._setSelection(),i._select(e.item.data("ui-selectmenu-item"),t)},focus:function(t,e){e=e.item.data("ui-selectmenu-item"),null!=i.focusIndex&&e.index!==i.focusIndex&&(i._trigger("focus",t,{item:e}),i.isOpen||i._select(e,t)),i.focusIndex=e.index,i.button.attr("aria-activedescendant",i.menuItems.eq(e.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{})),null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var t=this.element.find("option");this.menu.empty(),this._parseOptions(t),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,t.length&&(t=this._getSelectedItem(),this.menuInstance.focus(null,t),this._setAria(t.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(t){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",t)))},_position:function(){this.menuWrap.position(V.extend({of:this.button},this.options.position))},close:function(t){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",t))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(t){var e=V("<span>");return this._setText(e,t.label),this._addClass(e,"ui-selectmenu-text"),e},_renderMenu:function(n,t){var s=this,o="";V.each(t,function(t,e){var i;e.optgroup!==o&&(i=V("<li>",{text:e.optgroup}),s._addClass(i,"ui-selectmenu-optgroup","ui-menu-divider"+(e.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),i.appendTo(n),o=e.optgroup),s._renderItemData(n,e)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-selectmenu-item",e)},_renderItem:function(t,e){var i=V("<li>"),n=V("<div>",{title:e.element.attr("title")});return e.disabled&&this._addClass(i,null,"ui-state-disabled"),this._setText(n,e.label),i.append(n).appendTo(t)},_setText:function(t,e){e?t.text(e):t.html(" ")},_move:function(t,e){var i,n=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex).parent("li"):(i=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),n+=":not(.ui-state-disabled)"),(n="first"===t||"last"===t?i["first"===t?"prevAll":"nextAll"](n).eq(-1):i[t+"All"](n).eq(0)).length&&this.menuInstance.focus(e,n)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")}
vendor: 4,320 bytes, line 1
1,_toggle:function(t){this[this.isOpen?"close":"open"](t)},_setSelection:function(){var t;this.range&&(window.getSelection?((t=window.getSelection()).removeAllRanges(),t.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(t){!this.isOpen||V(t.target).closest(".ui-selectmenu-menu, #"+V.escapeSelector(this.ids.button)).length||this.close(t)}},_buttonEvents:{mousedown:function(){var t;window.getSelection?(t=window.getSelection()).rangeCount&&(this.range=t.getRangeAt(0)):this.range=document.selection.createRange()},click:function(t){this._setSelection(),this._toggle(t)},keydown:function(t){var e=!0;switch(t.keyCode){case V.ui.keyCode.TAB:case V.ui.keyCode.ESCAPE:this.close(t),e=!1;break;case V.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(t);break;case V.ui.keyCode.UP:t.altKey?this._toggle(t):this._move("prev",t);break;case V.ui.keyCode.DOWN:t.altKey?this._toggle(t):this._move("next",t);break;case V.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(t):this._toggle(t);break;case V.ui.keyCode.LEFT:this._move("prev",t);break;case V.ui.keyCode.RIGHT:this._move("next",t);break;case V.ui.keyCode.HOME:case V.ui.keyCode.PAGE_UP:this._move("first",t);break;case V.ui.keyCode.END:case V.ui.keyCode.PAGE_DOWN:this._move("last",t);break;default:this.menu.trigger(t),e=!1}e&&t.preventDefault()}},_selectFocusedItem:function(t){var e=this.menuItems.eq(this.focusIndex).parent("li");e.hasClass("ui-state-disabled")||this._select(e.data("ui-selectmenu-item"),t)},_select:function(t,e){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=t.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(t)),this._setAria(t),this._trigger("select",e,{item:t}),t.index!==i&&this._trigger("change",e,{item:t}),this.close(e)},_setAria:function(t){t=this.menuItems.eq(t.index).attr("id"),this.button.attr({"aria-labelledby":t,"aria-activedescendant":t}),this.menu.attr("aria-activedescendant",t)},_setOption:function(t,e){var i;"icons"===t&&(i=this.button.find("span.ui-icon"),this._removeClass(i,null,this.options.icons.button)._addClass(i,null,e.button)),this._super(t,e),"appendTo"===t&&this.menuWrap.appendTo(this._appendTo()),"width"===t&&this._resizeButton()},_setOptionDisabled:function(t){this._super(t),this.menuInstance.option("disabled",t),this.button.attr("aria-disabled",t),this._toggleClass(this.button,null,"ui-state-disabled",t),this.element.prop("disabled",t),t?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var t=this.options.appendTo;return(t=(t=t&&(t.jquery||t.nodeType?V(t):this.document.find(t).eq(0)))&&t[0]?t:this.element.closest(".ui-front, dialog")).length?t:this.document[0].body},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var t=this.options.width;!1!==t?(null===t&&(t=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(t)):this.button.css("width","")},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var t=this._super();return t.disabled=this.element.prop("disabled"),t},_parseOptions:function(t){var i=this,n=[];t.each(function(t,e){e.hidden||n.push(i._parseOption(V(e),t))}),this.items=n},_parseOption:function(t,e){var i=t.parent("optgroup");return{element:t,index:e,value:t.val(),label:t.text(),optgroup:i.attr("label")||"",disabled:i.prop("disabled")||t.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}]),V.widget("ui.slider",V.ui.mouse,{version:"1.13.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null}
vendor: 4,689 bytes, line 1
1,numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var t,e=this.options,i=this.element.find(".ui-slider-handle"),n=[],s=e.values&&e.values.length||1;for(i.length>s&&(i.slice(s).remove(),i=i.slice(0,s)),t=i.length;t<s;t++)n.push("<span tabindex='0'></span>");this.handles=i.add(V(n.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(t){V(this).data("ui-slider-handle-index",t).attr("tabIndex",0)})},_createRange:function(){var t=this.options;t.range?(!0===t.range&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:Array.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=V("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==t.range&&"max"!==t.range||this._addClass(this.range,"ui-slider-range-"+t.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(t){var i,n,s,o,e,r,a=this,l=this.options;return!l.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),r={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(r),n=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var e=Math.abs(i-a.values(t));(e<n||n===e&&(t===a._lastChangedValue||a.values(t)===l.min))&&(n=e,s=V(this),o=t)}),!1!==this._start(t,o))&&(this._mouseSliding=!0,this._handleIndex=o,this._addClass(s,null,"ui-state-active"),s.trigger("focus"),e=s.offset(),r=!V(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=r?{left:0,top:0}:{left:t.pageX-e.left-s.width()/2,top:t.pageY-e.top-s.height()/2-(parseInt(s.css("borderTopWidth"),10)||0)-(parseInt(s.css("borderBottomWidth"),10)||0)+(parseInt(s.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,o,i),this._animateOff=!0)},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},e=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,e),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e;return(t=1<(t=(t="horizontal"===this.orientation?(e=this.elementSize.width,t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)))/e)?1:t)<0&&(t=0),"vertical"===this.orientation&&(t=1-t),e=this._valueMax()-this._valueMin(),e=this._valueMin()+t*e,this._trimAlignValue(e)},_uiHash:function(t,e,i){var n={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()};return this._hasMultipleValues()&&(n.value=void 0!==e?e:this.values(t),n.values=i||this.values()),n},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,i){var n,s=this.value(),o=this.values();this._hasMultipleValues()&&(n=this.values(e?0:1),s=this.values(e),2===this.options.values.length&&!0===this.options.range&&(i=0===e?Math.min(n,i):Math.max(n,i)),o[e]=i),i!==s&&!1!==this._trigger("slide",t,this._uiHash(e,i,o))&&(this._hasMultipleValues()?this.values(e,i):this.value(i))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value(
vendor: 4,810 bytes, line 1
1)},values:function(t,e){var i,n,s;if(1<arguments.length)this.options.values[t]=this._trimAlignValue(e),this._refreshValue(),this._change(null,t);else{if(!arguments.length)return this._values();if(!Array.isArray(t))return this._hasMultipleValues()?this._values(t):this.value();for(i=this.options.values,n=t,s=0;s<i.length;s+=1)i[s]=this._trimAlignValue(n[s]),this._change(null,s);this._refreshValue()}},_setOption:function(t,e){var i,n=0;switch("range"===t&&!0===this.options.range&&("min"===e?(this.options.value=this._values(0),this.options.values=null):"max"===e&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),Array.isArray(this.options.values)&&(n=this.options.values.length),this._super(t,e),t){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(e),this.handles.css("horizontal"===e?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=n-1;0<=i;i--)this._change(null,i);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(t){this._super(t),this._toggleClass(null,"ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return this._trimAlignValue(t)},_values:function(t){var e,i;if(arguments.length)return t=this.options.values[t],this._trimAlignValue(t);if(this._hasMultipleValues()){for(e=this.options.values.slice(),i=0;i<e.length;i+=1)e[i]=this._trimAlignValue(e[i]);return e}return[]},_trimAlignValue:function(t){var e,i;return t<=this._valueMin()?this._valueMin():t>=this._valueMax()?this._valueMax():(e=0<this.options.step?this.options.step:1,t-=i=(t-this._valueMin())%e,2*Math.abs(i)>=e&&(t+=0<i?e:-e),parseFloat(t.toFixed(5)))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),i=this.options.step;(t=Math.round((t-e)/i)*i+e)>this.options.max&&(t-=i),this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min?Math.max(t,this._precisionOf(this.options.min)):t},_precisionOf:function(t){var e=t.toString();return-1===(t=e.indexOf("."))?0:e.length-t-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range.css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,i,t,n,s,o=this.options.range,r=this.options,a=this,l=!this._animateOff&&r.animate,h={};this._hasMultipleValues()?this.handles.each(function(t){i=(a.values(t)-a._valueMin())/(a._valueMax()-a._valueMin())*100,h["horizontal"===a.orientation?"left":"bottom"]=i+"%",V(this).stop(1,1)[l?"animate":"css"](h,r.animate),!0===a.options.range&&("horizontal"===a.orientation?(0===t&&a.range.stop(1,1)[l?"animate":"css"]({left:i+"%"},r.animate),1===t&&a.range[l?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:r.animate})):(0===t&&a.range.stop(1,1)[l?"animate":"css"]({bottom:i+"%"},r.animate),1===t&&a.range[l?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:r.animate}))),e=i}):(t=this.value(),n=this._valueMin(),s=this._valueMax(),i=s!==n?(t-n)/(s-n)*100:0,h["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[l?"animate":"css"](h,r.animate),"min"===o&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:i+"%"},r.animate),"max"===o&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:100-i+"%"},r.animate),"min"===o&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:i+"%"},r.animate),"max"===o&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:100-i+"%"},r.animate))},_handleEvents:{keydown:function(t){var e,i,n,s=V(t.target).data("ui-slider-handle-index");switch(t.keyCode){case V.ui.keyCode.HOME:case V.ui.keyCode.END:case V.ui.keyCode.PAGE_UP:case V.ui.keyCode.PAGE_DOWN:case V.ui.keyCode.UP:case V.ui.keyCode.RIGHT:case V.ui.keyCode.DOWN:case V.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(V(t.target),null,"ui-state-active"),!1===this._start(t,s)))return}switch(n=this.options.step,e=i=this._hasMultipleValues()?this.values(s):this.value(),t.keyCode){case V.ui.keyCode.HOME:i=this._valueMin();break;case V.ui.keyCode.END:i=this._valueMax();break;case V.ui.keyCode.PAGE_UP:i=this._trimAlignValue(e+(this._valueMax()-this._valueMin())/this.numPages);break;
vendor: 1,429 bytes, line 1
1case V.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(e-(this._valueMax()-this._valueMin())/this.numPages);break;case V.ui.keyCode.UP:case V.ui.keyCode.RIGHT:if(e===this._valueMax())return;i=this._trimAlignValue(e+n);break;case V.ui.keyCode.DOWN:case V.ui.keyCode.LEFT:if(e===this._valueMin())return;i=this._trimAlignValue(e-n)}this._slide(t,s,i)},keyup:function(t){var e=V(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,e),this._change(t,e),this._removeClass(V(t.target),null,"ui-state-active"))}}}),V.widget("ui.spinner",{version:"1.13.1",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var n=this._super(),s=this.element;return V.each(["min","max","step"],function(t,e){var i=s.attr(e);null!=i&&i.length&&(n[e]=i)}),n}
vendor: 47,431 bytes, line 1
1,_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){this.cancelBlur?delete this.cancelBlur:(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",t))},mousewheel:function(t,e){var i=V.ui.safeActiveElement(this.document[0]);if(this.element[0]===i&&e){if(!this.spinning&&!this._start(t))return!1;this._spin((0<e?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(t){var e;function i(){this.element[0]!==V.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=e,this._delay(function(){this.previous=e}))}e=this.element[0]===V.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),t.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),!1!==this._start(t)&&this._repeat(null,V(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){if(V(t.currentTarget).hasClass("ui-state-active"))return!1!==this._start(t)&&void this._repeat(null,V(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&0<this.uiSpinner.height()&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(t){var e=this.options,i=V.ui.keyCode;switch(t.keyCode){case i.UP:return this._repeat(null,1,t),!0;case i.DOWN:return this._repeat(null,-1,t),!0;case i.PAGE_UP:return this._repeat(null,e.page,t),!0;case i.PAGE_DOWN:return this._repeat(null,-e.page,t),!0}return!1},_start:function(t){return!(!this.spinning&&!1===this._trigger("start",t))&&(this.counter||(this.counter=1),this.spinning=!0)},_repeat:function(t,e,i){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,i)},t),this._spin(e*this.options.step,i)},_spin:function(t,e){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+t*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",e,{value:i})||(this._value(i),this.counter++)},_increment:function(t){var e=this.options.incremental;return e?"function"==typeof e?e(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min?Math.max(t,this._precisionOf(this.options.min)):t},_precisionOf:function(t){var e=t.toString();return-1===(t=e.indexOf("."))?0:e.length-t-1},_adjustValue:function(t){var e=this.options,i=null!==e.min?e.min:0;return t=i+Math.round((t-i)/e.step)*e.step,t=parseFloat(t.toFixed(this._precision())),null!==e.max&&t>e.max?e.max:null!==e.min&&t<e.min?e.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){var i;"culture"===t||"numberFormat"===t?(i=this._parse(this.element.val()),this.options[t]=e,this.element.val(this._format(i))):("max"!==t&&"min"!==t&&"step"!==t||"string"==typeof e&&(e=this._parse(e)),"icons"===t&&(i=this.buttons.first().find(".ui-icon"),this._removeClass(i,null,this.options.icons.up),this._addClass(i,null,e.up),i=this.buttons.last().find(".ui-icon"),this._removeClass(i,null,this.options.icons.down),this._addClass(i,null,e.down)),this._super(t,e))},_setOptionDisabled:function(t){this._super(t),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!t),this.element.prop("disabled",!!t),this.buttons.button(t?"disable":"enable")},_setOptions:m(function(t){this._super(t)}),_parse:function(t){return""===(t="string"==typeof t&&""!==t?window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t:t)||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var t=this.value();return null!==t&&t===this._adjustValue(t)},_value:function(t,e){var i;""!==t&&null!==(i=this._parse(t))&&(e||(i=this._adjustValue(i)),t=this._format(i)),this.element.val(t),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:m(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:m(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:m(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:m(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){if(!arguments.length)return this._parse(this.element.val());m(this._value).call(this,t)},widget:function(){return this.uiSpinner}}),!1!==V.uiBackCompat&&V.widget("ui.spinner",V.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}}),V.ui.spinner,V.widget("ui.tabs",{version:"1.13.1",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:(f=/#.*$/,function(t){var e=t.href.replace(f,""),i=location.href.replace(f,"");try{e=decodeURIComponent(e)}catch(t){}try{i=decodeURIComponent(i)}catch(t){}return 1<t.hash.length&&e===i}),_create:function(){var e=this,t=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,t.collapsible),this._processTabs(),t.active=this._initialActive(),Array.isArray(t.disabled)&&(t.disabled=V.uniqueSort(t.disabled.concat(V.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),!1!==this.options.active&&this.anchors.length?this.active=this._findActive(t.active):this.active=V(),this._refresh(),this.active.length&&this.load(t.active)},_initialActive:function(){var i=this.options.active,t=this.options.collapsible,n=location.hash.substring(1);return null===i&&(n&&this.tabs.each(function(t,e){if(V(e).attr("aria-controls")===n)return i=t,!1}),null!==(i=null===i?this.tabs.index(this.tabs.filter(".ui-tabs-active")):i)&&-1!==i||(i=!!this.tabs.length&&0)),!1!==i&&-1===(i=this.tabs.index(this.tabs.eq(i)))&&(i=!t&&0),i=!t&&!1===i&&this.anchors.length?0:i},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):V()}},_tabKeydown:function(t){var e=V(V.ui.safeActiveElement(this.document[0])).closest("li"),i=this.tabs.index(e),n=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case V.ui.keyCode.RIGHT:case V.ui.keyCode.DOWN:i++;break;case V.ui.keyCode.UP:case V.ui.keyCode.LEFT:n=!1,i--;break;case V.ui.keyCode.END:i=this.anchors.length-1;break;case V.ui.keyCode.HOME:i=0;break;case V.ui.keyCode.SPACE:return t.preventDefault(),clearTimeout(this.activating),void this._activate(i);case V.ui.keyCode.ENTER:return t.preventDefault(),clearTimeout(this.activating),void this._activate(i!==this.options.active&&i);default:return}t.preventDefault(),clearTimeout(this.activating),i=this._focusNextTab(i,n),t.ctrlKey||t.metaKey||(e.attr("aria-selected","false"),this.tabs.eq(i).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",i)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===V.ui.keyCode.UP&&(t.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(t){return t.altKey&&t.keyCode===V.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===V.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,e){for(var i=this.tabs.length-1;-1!==V.inArray(t=(t=i<t?0:t)<0?i:t,this.options.disabled);)t=e?t+1:t-1;return t},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).trigger("focus"),t},_setOption:function(t,e){"active"!==t?(this._super(t,e),"collapsible"===t&&(this._toggleClass("ui-tabs-collapsible",null,e),e||!1!==this.options.active||this._activate(0)),"event"===t&&this._setupEvents(e),"heightStyle"===t&&this._setupHeightStyle(e)):this._activate(e)},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,e=this.tablist.children(":has(a[href])");t.disabled=V.map(e.filter(".ui-state-disabled"),function(t){return e.index(t)}),this._processTabs(),!1!==t.active&&this.anchors.length?this.active.length&&!V.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=V()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=V()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var l=this,t=this.tabs,e=this.anchors,i=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",function(t){V(this).is(".ui-state-disabled")&&t.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){V(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return V("a",this)[0]}).attr({tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=V(),this.anchors.each(function(t,e){var i,n,s,o=V(e).uniqueId().attr("id"),r=V(e).closest("li"),a=r.attr("aria-controls");l._isLocal(e)?(s=(i=e.hash).substring(1),n=l.element.find(l._sanitizeSelector(i))):(s=r.attr("aria-controls")||V({}).uniqueId()[0].id,(n=l.element.find(i="#"+s)).length||(n=l._createPanel(s)).insertAfter(l.panels[t-1]||l.tablist),n.attr("aria-live","polite")),n.length&&(l.panels=l.panels.add(n)),a&&r.data("ui-tabs-aria-controls",a),r.attr({"aria-controls":s,"aria-labelledby":o}),n.attr("aria-labelledby",o)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),t&&(this._off(t.not(this.tabs)),this._off(e.not(this.anchors)),this._off(i.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(t){return V("<div>").attr("id",t).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(t){var e,i;for(Array.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1),i=0;e=this.tabs[i];i++)e=V(e),!0===t||-1!==V.inArray(i,t)?(e.attr("aria-disabled","true"),this._addClass(e,null,"ui-state-disabled")):(e.removeAttr("aria-disabled"),this._removeClass(e,null,"ui-state-disabled"));this.options.disabled=t,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===t)},_setupEvents:function(t){var i={};t&&V.each(t.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(t){t.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var i,e=this.element.parent();"fill"===t?(i=e.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=V(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(i-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=V(this).outerHeight(!0)}),this.panels.each(function(){V(this).height(Math.max(0,i-V(this).innerHeight()+V(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.panels.each(function(){i=Math.max(i,V(this).height("").height())}).height(i))},_eventHandler:function(t){var e=this.options,i=this.active,n=V(t.currentTarget).closest("li"),s=n[0]===i[0],o=s&&e.collapsible,r=o?V():this._getPanelForTab(n),a=i.length?this._getPanelForTab(i):V(),i={oldTab:i,oldPanel:a,newTab:o?V():n,newPanel:r};t.preventDefault(),n.hasClass("ui-state-disabled")||n.hasClass("ui-tabs-loading")||this.running||s&&!e.collapsible||!1===this._trigger("beforeActivate",t,i)||(e.active=!o&&this.tabs.index(n),this.active=s?V():n,this.xhr&&this.xhr.abort(),a.length||r.length||V.error("jQuery UI Tabs: Mismatching fragment identifier."),r.length&&this.load(this.tabs.index(n),t),this._toggle(t,i))},_toggle:function(t,e){var i=this,n=e.newPanel,s=e.oldPanel;function o(){i.running=!1,i._trigger("activate",t,e)}function r(){i._addClass(e.newTab.closest("li"),"ui-tabs-active","ui-state-active"),n.length&&i.options.show?i._show(n,i.options.show,o):(n.show(),o())}this.running=!0,s.length&&this.options.hide?this._hide(s,this.options.hide,function(){i._removeClass(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),r()}):(this._removeClass(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),s.hide(),r()),s.attr("aria-hidden","true"),e.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),n.length&&s.length?e.oldTab.attr("tabIndex",-1):n.length&&this.tabs.filter(function(){return 0===V(this).attr("tabIndex")}).attr("tabIndex",-1),n.attr("aria-hidden","false"),e.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){(t=this._findActive(t))[0]!==this.active[0]&&(t=(t=t.length?t:this.active).find(".ui-tabs-anchor")[0],this._eventHandler({target:t,currentTarget:t,preventDefault:V.noop}))},_findActive:function(t){return!1===t?V():this.tabs.eq(t)},_getIndex:function(t){return"string"==typeof t?this.anchors.index(this.anchors.filter("[href$='"+V.escapeSelector(t)+"']")):t},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){V.data(this,"ui-tabs-destroy")?V(this).remove():V(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var t=V(this),e=t.data("ui-tabs-aria-controls");e?t.attr("aria-controls",e).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(i){var t=this.options.disabled;!1!==t&&(t=void 0!==i&&(i=this._getIndex(i),Array.isArray(t)?V.map(t,function(t){return t!==i?t:null}):V.map(this.tabs,function(t,e){return e!==i?e:null})),this._setOptionDisabled(t))},disable:function(t){var e=this.options.disabled;if(!0!==e){if(void 0===t)e=!0;else{if(t=this._getIndex(t),-1!==V.inArray(t,e))return;e=Array.isArray(e)?V.merge([t],e).sort():[t]}this._setOptionDisabled(e)}},load:function(t,n){function s(t,e){"abort"===e&&o.panels.stop(!1,!0),o._removeClass(i,"ui-tabs-loading"),r.removeAttr("aria-busy"),t===o.xhr&&delete o.xhr}t=this._getIndex(t);var o=this,i=this.tabs.eq(t),t=i.find(".ui-tabs-anchor"),r=this._getPanelForTab(i),a={tab:i,panel:r};this._isLocal(t[0])||(this.xhr=V.ajax(this._ajaxSettings(t,n,a)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(i,"ui-tabs-loading"),r.attr("aria-busy","true"),this.xhr.done(function(t,e,i){setTimeout(function(){r.html(t),o._trigger("load",n,a),s(i,e)},1)}).fail(function(t,e){setTimeout(function(){s(t,e)},1)})))},_ajaxSettings:function(t,i,n){var s=this;return{url:t.attr("href").replace(/#.*$/,""),beforeSend:function(t,e){return s._trigger("beforeLoad",i,V.extend({jqXHR:t,ajaxSettings:e},n))}}},_getPanelForTab:function(t){return t=V(t).attr("aria-controls"),this.element.find(this._sanitizeSelector("#"+t))}}),!1!==V.uiBackCompat&&V.widget("ui.tabs",V.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),V.ui.tabs,V.widget("ui.tooltip",{version:"1.13.1",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var t=V(this).attr("title");return V("<a>").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(t,e){var i=(t.attr("aria-describedby")||"").split(/\s+/);i.push(e),t.data("ui-tooltip-id",e).attr("aria-describedby",String.prototype.trim.call(i.join(" ")))},_removeDescribedBy:function(t){var e=t.data("ui-tooltip-id"),i=(t.attr("aria-describedby")||"").split(/\s+/);-1!==(e=V.inArray(e,i))&&i.splice(e,1),t.removeData("ui-tooltip-id"),(i=String.prototype.trim.call(i.join(" ")))?t.attr("aria-describedby",i):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=V("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=V([])},_setOption:function(t,e){var i=this;this._super(t,e),"content"===t&&V.each(this.tooltips,function(t,e){i._updateContent(e.element)})},_setOptionDisabled:function(t){this[t?"_disable":"_enable"]()},_disable:function(){var n=this;V.each(this.tooltips,function(t,e){var i=V.Event("blur");i.target=i.currentTarget=e.element[0],n.close(i,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var t=V(this);if(t.is("[title]"))return t.data("ui-tooltip-title",t.attr("title")).removeAttr("title")}))},_enable:function(){this.disabledTitles.each(function(){var t=V(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))}),this.disabledTitles=V([])},open:function(t){var i=this,e=V(t?t.target:this.element).closest(this.options.items);e.length&&!e.data("ui-tooltip-id")&&(e.attr("title")&&e.data("ui-tooltip-title",e.attr("title")),e.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&e.parents().each(function(){var t,e=V(this);e.data("ui-tooltip-open")&&((t=V.Event("blur")).target=t.currentTarget=this,i.close(t,!0)),e.attr("title")&&(e.uniqueId(),i.parents[this.id]={element:this,title:e.attr("title")},e.attr("title",""))}),this._registerCloseHandlers(t,e),this._updateContent(e,t))},_updateContent:function(e,i){var t=this.options.content,n=this,s=i?i.type:null;if("string"==typeof t||t.nodeType||t.jquery)return this._open(i,e,t);(t=t.call(e[0],function(t){n._delay(function(){e.data("ui-tooltip-open")&&(i&&(i.type=s),this._open(i,e,t))})}))&&this._open(i,e,t)},_open:function(t,e,i){var n,s,o,r=V.extend({},this.options.position);function a(t){r.of=t,s.is(":hidden")||s.position(r)}i&&((n=this._find(e))?n.tooltip.find(".ui-tooltip-content").html(i):(e.is("[title]")&&(t&&"mouseover"===t.type?e.attr("title",""):e.removeAttr("title")),n=this._tooltip(e),s=n.tooltip,this._addDescribedBy(e,s.attr("id")),s.find(".ui-tooltip-content").html(i),this.liveRegion.children().hide(),(i=V("<div>").html(s.find(".ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"),i.removeAttr("id").find("[id]").removeAttr("id"),i.appendTo(this.liveRegion),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:a}),a(t)):s.position(V.extend({of:e},this.options.position)),s.hide(),this._show(s,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(o=this.delayedShow=setInterval(function(){s.is(":visible")&&(a(r.of),clearInterval(o))},13)),this._trigger("open",t,{tooltip:s})))},_registerCloseHandlers:function(t,e){var i={keyup:function(t){t.keyCode===V.ui.keyCode.ESCAPE&&((t=V.Event(t)).currentTarget=e[0],this.close(t,!0))}};e[0]!==this.element[0]&&(i.remove=function(){var t=this._find(e);t&&this._removeTooltip(t.tooltip)}),t&&"mouseover"!==t.type||(i.mouseleave="close"),t&&"focusin"!==t.type||(i.focusout="close"),this._on(!0,e,i)},close:function(t){var e,i=this,n=V(t?t.currentTarget:this.element),s=this._find(n);s?(e=s.tooltip,s.closing||(clearInterval(this.delayedShow),n.data("ui-tooltip-title")&&!n.attr("title")&&n.attr("title",n.data("ui-tooltip-title")),this._removeDescribedBy(n),s.hiding=!0,e.stop(!0),this._hide(e,this.options.hide,function(){i._removeTooltip(V(this))}),n.removeData("ui-tooltip-open"),this._off(n,"mouseleave focusout keyup"),n[0]!==this.element[0]&&this._off(n,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&V.each(this.parents,function(t,e){V(e.element).attr("title",e.title),delete i.parents[t]}),s.closing=!0,this._trigger("close",t,{tooltip:e}),s.hiding)||(s.closing=!1)):n.removeData("ui-tooltip-open")},_tooltip:function(t){var e=V("<div>").attr("role","tooltip"),i=V("<div>").appendTo(e),n=e.uniqueId().attr("id");return this._addClass(i,"ui-tooltip-content"),this._addClass(e,"ui-tooltip","ui-widget ui-widget-content"),e.appendTo(this._appendTo(t)),this.tooltips[n]={element:t,tooltip:e}},_find:function(t){return(t=t.data("ui-tooltip-id"))?this.tooltips[t]:null},_removeTooltip:function(t){clearInterval(this.delayedShow),t.remove(),delete this.tooltips[t.attr("id")]},_appendTo:function(t){return(t=t.closest(".ui-front, dialog")).length?t:this.document[0].body},_destroy:function(){var n=this;V.each(this.tooltips,function(t,e){var i=V.Event("blur"),e=e.element;i.target=i.currentTarget=e[0],n.close(i,!0),V("#"+t).remove(),e.data("ui-tooltip-title")&&(e.attr("title")||e.attr("title",e.data("ui-tooltip-title")),e.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),!1!==V.uiBackCompat&&V.widget("ui.tooltip",V.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var t=this._superApply(arguments);return this.options.tooltipClass&&t.tooltip.addClass(this.options.tooltipClass),t}}),V.ui.tooltip;var v=V,_={},K=_.toString,X=/^([\-+])=\s*(\d+\.?\d*)/,Q=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16),t[4]?(parseInt(t[4],16)/255).toFixed(2):1]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16),t[4]?(parseInt(t[4]+t[4],16)/255).toFixed(2):1]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],b=v.Color=function(t,e,i,n){return new v.Color.fn.parse(t,e,i,n)},y={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"}}}},G={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},J=b.support={},t=v("<p>")[0],w=v.each;function D(t){return null==t?t+"":"object"==typeof t?_[K.call(t)]||"object":typeof t}function T(t,e,i){var n=G[e.type]||{};return null==t?i||!e.def?null:e.def:(t=n.floor?~~t:parseFloat(t),isNaN(t)?e.def:n.mod?(t+n.mod)%n.mod:Math.min(n.max,Math.max(0,t)))}function Z(n){var s=b(),o=s._rgba=[];return n=n.toLowerCase(),w(Q,function(t,e){var i=(i=e.re.exec(n))&&e.parse(i),e=e.space||"rgba";if(i)return i=s[e](i),s[y[e].cache]=i[y[e].cache],o=s._rgba=i._rgba,!1}),o.length?("0,0,0,0"===o.join()&&v.extend(o,P.transparent),s):P[n]}function S(t,e,i){return 6*(i=(i+1)%1)<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}t.style.cssText="background-color:rgba(1,1,1,.5)",J.rgba=-1<t.style.backgroundColor.indexOf("rgba"),w(y,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),v.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){_["[object "+e+"]"]=e.toLowerCase()}),(b.fn=v.extend(b.prototype,{parse:function(s,t,e,i){if(void 0===s)return this._rgba=[null,null,null,null],this;(s.jquery||s.nodeType)&&(s=v(s).css(t),t=void 0);var o=this,n=D(s),r=this._rgba=[];return void 0!==t&&(s=[s,t,e,i],n="array"),"string"===n?this.parse(Z(s)||P._default):"array"===n?(w(y.rgba.props,function(t,e){r[e.idx]=T(s[e.idx],e)}),this):"object"===n?(w(y,s instanceof b?function(t,e){s[e.cache]&&(o[e.cache]=s[e.cache].slice())}:function(t,i){var n=i.cache;w(i.props,function(t,e){if(!o[n]&&i.to){if("alpha"===t||null==s[t])return;o[n]=i.to(o._rgba)}o[n][e.idx]=T(s[t],e,!0)}),o[n]&&v.inArray(null,o[n].slice(0,3))<0&&(null==o[n][3]&&(o[n][3]=1),i.from)&&(o._rgba=i.from(o[n]))}),this):void 0},is:function(t){var s=b(t),o=!0,r=this;return w(y,function(t,e){var i,n=s[e.cache];return n&&(i=r[e.cache]||e.to&&e.to(r._rgba)||[],w(e.props,function(t,e){if(null!=n[e.idx])return o=n[e.idx]===i[e.idx]})),o}),o},_space:function(){var i=[],n=this;return w(y,function(t,e){n[e.cache]&&i.push(t)}),i.pop()},transition:function(t,r){var e=(h=b(t))._space(),i=y[e],a=(t=0===this.alpha()?b("transparent"):this)[i.cache]||i.to(t._rgba),l=a.slice(),h=h[i.cache];return w(i.props,function(t,e){var i=e.idx,n=a[i],s=h[i],o=G[e.type]||{};null!==s&&(null===n?l[i]=s:(o.mod&&(s-n>o.mod/2?n+=o.mod:n-s>o.mod/2&&(n-=o.mod)),l[i]=T((s-n)*r+n,e)))}),this[e](l)},blend:function(t){var e,i,n;return 1===this._rgba[3]?this:(e=this._rgba.slice(),i=e.pop(),n=b(t)._rgba,b(v.map(e,function(t,e){return(1-i)*n[e]+i*t})))},toRgbaString:function(){var t="rgba(",e=v.map(this._rgba,function(t,e){return null!=t?t:2<e?1:0});return 1===e[3]&&(e.pop(),t="rgb("),t+e.join()+")"},toHslaString:function(){var t="hsla(",e=v.map(this.hsla(),function(t,e){return null==t&&(t=2<e?1:0),e&&e<3?Math.round(100*t)+"%":t});return 1===e[3]&&(e.pop(),t="hsl("),t+e.join()+")"},toHexString:function(t){var e=this._rgba.slice(),i=e.pop();return t&&e.push(~~(255*i)),"#"+v.map(e,function(t){return 1===(t=(t||0).toString(16)).length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}})).parse.prototype=b.fn,y.hsla.to=function(t){var e,i,n,s,o,r,a,l;return null==t[0]||null==t[1]||null==t[2]?[null,null,null,t[3]]:(e=t[0]/255,a=t[1]/255,i=t[2]/255,n=t[3],r=(s=Math.max(e,a,i))-(o=Math.min(e,a,i)),t=.5*(l=s+o),a=o===s?0:e===s?60*(a-i)/r+360:a===s?60*(i-e)/r+120:60*(e-a)/r+240,l=0==r?0:t<=.5?r/l:r/(2-l),[Math.round(a)%360,l,t,null==n?1:n])},y.hsla.from=function(t){var e,i,n;return null==t[0]||null==t[1]||null==t[2]?[null,null,null,t[3]]:(e=t[0]/360,i=t[1],n=t[2],t=t[3],n=2*n-(i=n<=.5?n*(1+i):n+i-n*i),[Math.round(255*S(n,i,e+1/3)),Math.round(255*S(n,i,e)),Math.round(255*S(n,i,e-1/3)),t])},w(y,function(a,t){var e=t.props,o=t.cache,r=t.to,l=t.from;b.fn[a]=function(t){var i,n,s;return r&&!this[o]&&(this[o]=r(this._rgba)),void 0===t?this[o].slice():(i=D(t),n="array"===i||"object"===i?t:arguments,s=this[o].slice(),w(e,function(t,e){null==(t=n["object"===i?t:e.idx])&&(t=s[e.idx]),s[e.idx]=T(t,e)}),l?((t=b(l(s)))[o]=s,t):b(s))},w(e,function(o,r){b.fn[o]||(b.fn[o]=function(t){var e=D(t),i="alpha"===o?this._hsla?"hsla":"rgba":a,n=this[i](),s=n[r.idx];return"undefined"===e?s:("function"===e&&(e=D(t=t.call(this,s))),null==t&&r.empty?this:("string"===e&&(e=X.exec(t))&&(t=s+parseFloat(e[2])*("+"===e[1]?1:-1)),n[r.idx]=t,this[i](n)))})})}),(b.hook=function(t){t=t.split(" "),w(t,function(t,o){v.cssHooks[o]={set:function(t,e){var i,n,s="";if("transparent"!==e&&("string"!==D(e)||(i=Z(e)))){if(e=b(i||e),!J.rgba&&1!==e._rgba[3]){for(n="backgroundColor"===o?t.parentNode:t;(""===s||"transparent"===s)&&n&&n.style;)try{s=v.css(n,"backgroundColor"),n=n.parentNode}catch(t){}e=e.blend(s&&"transparent"!==s?s:"_default")}e=e.toRgbaString()}try{t.style[o]=e}catch(t){}}},v.fx.step[o]=function(t){t.colorInit||(t.start=b(t.elem,o),t.end=b(t.end),t.colorInit=!0),v.cssHooks[o].set(t.elem,t.start.transition(t.end,t.pos))}})})("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),v.cssHooks.borderColor={expand:function(i){var n={};return w(["Top","Right","Bottom","Left"],function(t,e){n["border"+e+"Color"]=i}),n}};var tt,et,it,nt,st,ot,rt,at,lt,I,P=v.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"},M="ui-effects-",A="ui-effects-style",N="ui-effects-animated";function ht(t){var e,i,n=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,s={};if(n&&n.length&&n[0]&&n[n[0]])for(i=n.length;i--;)"string"==typeof n[e=n[i]]&&(s[e.replace(/-([\da-z])/gi,function(t,e){return e.toUpperCase()})]=n[e]);else for(e in n)"string"==typeof n[e]&&(s[e]=n[e]);return s}function E(t,e,i,n){return t={effect:t=V.isPlainObject(t)?(e=t).effect:t},"function"==typeof(e=null==e?{}:e)&&(n=e,i=null,e={}),"number"!=typeof e&&!V.fx.speeds[e]||(n=i,i=e,e={}),"function"==typeof i&&(n=i,i=null),e&&V.extend(t,e),i=i||e.duration,t.duration=V.fx.off?0:"number"==typeof i?i:i in V.fx.speeds?V.fx.speeds[i]:V.fx.speeds._default,t.complete=n||e.complete,t}function H(t){return!t||"number"==typeof t||V.fx.speeds[t]||"string"==typeof t&&!V.effects.effect[t]||"function"==typeof t||"object"==typeof t&&!t.effect}function ct(t,e){var i=e.outerWidth(),e=e.outerHeight(),t=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(t)||["",0,i,e,0];return{top:parseFloat(t[1])||0,right:"auto"===t[2]?i:parseFloat(t[2]),bottom:"auto"===t[3]?e:parseFloat(t[3]),left:parseFloat(t[4])||0}}V.effects={effect:{}},nt=["add","remove","toggle"],st={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1},V.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,e){V.fx.step[e]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(v.style(t.elem,e,t.end),t.setAttr=!0)}}),V.fn.addBack||(V.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),V.effects.animateClass=function(s,t,e,i){var o=V.speed(t,e,i);return this.queue(function(){var i=V(this),t=i.attr("class")||"",e=(e=o.children?i.find("*").addBack():i).map(function(){return{el:V(this),start:ht(this)}}),n=function(){V.each(nt,function(t,e){s[e]&&i[e+"Class"](s[e])})};n(),e=e.map(function(){return this.end=ht(this.el[0]),this.diff=function(t,e){var i,n,s={};for(i in e)n=e[i],t[i]===n||st[i]||!V.fx.step[i]&&isNaN(parseFloat(n))||(s[i]=n);return s}(this.start,this.end),this}),i.attr("class",t),e=e.map(function(){var t=this,e=V.Deferred(),i=V.extend({},o,{queue:!1,complete:function(){e.resolve(t)}});return this.el.animate(this.diff,i),e.promise()}),V.when.apply(V,e.get()).done(function(){n(),V.each(arguments,function(){var e=this.el;V.each(this.diff,function(t){e.css(t,"")})}),o.complete.call(i[0])})})},V.fn.extend({addClass:(it=V.fn.addClass,function(t,e,i,n){return e?V.effects.animateClass.call(this,{add:t},e,i,n):it.apply(this,arguments)}),removeClass:(et=V.fn.removeClass,function(t,e,i,n){return 1<arguments.length?V.effects.animateClass.call(this,{remove:t},e,i,n):et.apply(this,arguments)}),toggleClass:(tt=V.fn.toggleClass,function(t,e,i,n,s){return"boolean"==typeof e||void 0===e?i?V.effects.animateClass.call(this,e?{add:t}:{remove:t},i,n,s):tt.apply(this,arguments):V.effects.animateClass.call(this,{toggle:t},e,i,n)}),switchClass:function(t,e,i,n,s){return V.effects.animateClass.call(this,{add:e,remove:t},i,n,s)}}),V.expr&&V.expr.pseudos&&V.expr.pseudos.animated&&(V.expr.pseudos.animated=(ot=V.expr.pseudos.animated,function(t){return!!V(t).data(N)||ot(t)})),!1!==V.uiBackCompat&&V.extend(V.effects,{save:function(t,e){for(var i=0,n=e.length;i<n;i++)null!==e[i]&&t.data(M+e[i],t[0].style[e[i]])},restore:function(t,e){for(var i,n=0,s=e.length;n<s;n++)null!==e[n]&&(i=t.data(M+e[n]),t.css(e[n],i))},setMode:function(t,e){return"toggle"===e?t.is(":hidden")?"show":"hide":e},createWrapper:function(i){if(i.parent().is(".ui-effects-wrapper"))return i.parent();var n={width:i.outerWidth(!0),height:i.outerHeight(!0),"float":i.css("float")},t=V("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:i.width(),height:i.height()},s=document.activeElement;try{s.id}catch(t){s=document.body}return i.wrap(t),i[0]!==s&&!V.contains(i[0],s)||V(s).trigger("focus"),t=i.parent(),"static"===i.css("position")?(t.css({position:"relative"}),i.css({position:"relative"})):(V.extend(n,{position:i.css("position"),zIndex:i.css("z-index")}),V.each(["top","left","bottom","right"],function(t,e){n[e]=i.css(e),isNaN(parseInt(n[e],10))&&(n[e]="auto")}),i.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),i.css(e),t.css(n).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),t[0]!==e&&!V.contains(t[0],e)||V(e).trigger("focus")),t}}),V.extend(V.effects,{version:"1.13.1",define:function(t,e,i){return i||(i=e,e="effect"),V.effects.effect[t]=i,V.effects.effect[t].mode=e,i},scaledDimensions:function(t,e,i){var n;return 0===e?{height:0,width:0,outerHeight:0,outerWidth:0}:(n="horizontal"!==i?(e||100)/100:1,e="vertical"!==i?(e||100)/100:1,{height:t.height()*e,width:t.width()*n,outerHeight:t.outerHeight()*e,outerWidth:t.outerWidth()*n})},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,i){var n=t.queue();1<e&&n.splice.apply(n,[1,0].concat(n.splice(e,i))),t.dequeue()},saveStyle:function(t){t.data(A,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(A)||"",t.removeData(A)},mode:function(t,e){return t=t.is(":hidden"),"toggle"===e&&(e=t?"show":"hide"),(t?"hide"===e:"show"===e)?"none":e},getBaseline:function(t,e){var i,n;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=t[1]/e.width}return{x:n,y:i}},createPlaceholder:function(t){var e,i=t.css("position"),n=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(i)&&(i="absolute",e=V("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),"float":t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(M+"placeholder",e)),t.css({position:i,left:n.left,top:n.top}),e},removePlaceholder:function(t){var e=M+"placeholder",i=t.data(e);i&&(i.remove(),t.removeData(e))},cleanUp:function(t){V.effects.restoreStyle(t),V.effects.removePlaceholder(t)},setTransition:function(n,t,s,o){return o=o||{},V.each(t,function(t,e){var i=n.cssUnit(e);0<i[0]&&(o[e]=i[0]*s+i[1])}),o}}),V.fn.extend({effect:function(){function t(t){var e=V(this),i=V.effects.mode(e,a)||o;e.data(N,!0),l.push(i),o&&("show"===i||i===o&&"hide"===i)&&e.show(),o&&"none"===i||V.effects.saveStyle(e),"function"==typeof t&&t()}var n=E.apply(this,arguments),s=V.effects.effect[n.effect],o=s.mode,e=n.queue,i=e||"fx",r=n.complete,a=n.mode,l=[];return V.fx.off||!s?a?this[a](n.duration,r):this.each(function(){r&&r.call(this)}):!1===e?this.each(t).each(h):this.queue(i,t).queue(i,h);function h(t){var e=V(this);function i(){"function"==typeof r&&r.call(e[0]),"function"==typeof t&&t()}n.mode=l.shift(),!1===V.uiBackCompat||o?"none"===n.mode?(e[a](),i()):s.call(e[0],n,function(){e.removeData(N),V.effects.cleanUp(e),"hide"===n.mode&&e.hide(),i()}):(e.is(":hidden")?"hide"===a:"show"===a)?(e[a](),i()):s.call(e[0],n,i)}},show:(lt=V.fn.show,function(t){return H(t)?lt.apply(this,arguments):((t=E.apply(this,arguments)).mode="show",this.effect.call(this,t))}),hide:(at=V.fn.hide,function(t){return H(t)?at.apply(this,arguments):((t=E.apply(this,arguments)).mode="hide",this.effect.call(this,t))}),toggle:(rt=V.fn.toggle,function(t){return H(t)||"boolean"==typeof t?rt.apply(this,arguments):((t=E.apply(this,arguments)).mode="toggle",this.effect.call(this,t))}),cssUnit:function(t){var i=this.css(t),n=[];return V.each(["em","px","%","pt"],function(t,e){0<i.indexOf(e)&&(n=[parseFloat(i),e])}),n},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):ct(this.css("clip"),this)},transfer:function(t,e){var i=V(this),n="fixed"===(a=V(t.to)).css("position"),s=V("body"),o=n?s.scrollTop():0,r=n?s.scrollLeft():0,s={top:(s=a.offset()).top-o,left:s.left-r,height:a.innerHeight(),width:a.innerWidth()},a=i.offset(),l=V("<div class='ui-effects-transfer'></div>");l.appendTo("body").addClass(t.className).css({top:a.top-o,left:a.left-r,height:i.innerHeight(),width:i.innerWidth(),position:n?"fixed":"absolute"}).animate(s,t.duration,t.easing,function(){l.remove(),"function"==typeof e&&e()})}}),V.fx.step.clip=function(t){t.clipInit||(t.start=V(t.elem).cssClip(),"string"==typeof t.end&&(t.end=ct(t.end,t.elem)),t.clipInit=!0),V(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})},I={},V.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,t){I[t]=function(t){return Math.pow(t,e+2)}}),V.extend(I,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;t<((e=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),V.each(I,function(t,e){V.easing["easeIn"+t]=e,V.easing["easeOut"+t]=function(t){return 1-e(1-t)},V.easing["easeInOut"+t]=function(t){return t<.5?e(2*t)/2:1-e(-2*t+2)/2}}),t=V.effects,V.effects.define("blind","hide",function(t,e){var i={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},n=V(this),s=t.direction||"up",o=n.cssClip(),r={clip:V.extend({},o)},a=V.effects.createPlaceholder(n);r.clip[i[s][0]]=r.clip[i[s][1]],"show"===t.mode&&(n.cssClip(r.clip),a&&a.css(V.effects.clipToBox(r)),r.clip=o),a&&a.animate(V.effects.clipToBox(r),t.duration,t.easing),n.animate(r,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),V.effects.define("bounce",function(t,e){var i,n,s=V(this),o=t.mode,r="hide"===o,a="show"===o,l=t.direction||"up",h=t.distance,c=t.times||5,u=t.duration/(o=2*c+(a||r?1:0)),d=t.easing,p="up"===l||"down"===l?"top":"left",f="up"===l||"left"===l,g=0,t=s.queue().length;for(V.effects.createPlaceholder(s),l=s.css(p),h=h||s["top"==p?"outerHeight":"outerWidth"]()/3,a&&((n={opacity:1})[p]=l,s.css("opacity",0).css(p,f?2*-h:2*h).animate(n,u,d)),r&&(h/=Math.pow(2,c-1)),(n={})[p]=l;g<c;g++)(i={})[p]=(f?"-=":"+=")+h,s.animate(i,u,d).animate(n,u,d),h=r?2*h:h/2;r&&((i={opacity:0})[p]=(f?"-=":"+=")+h,s.animate(i,u,d)),s.queue(e),V.effects.unshift(s,t,1+o)}),V.effects.define("clip","hide",function(t,e){var i={},n=V(this),s=(o="both"===(r=t.direction||"vertical"))||"horizontal"===r,o=o||"vertical"===r,r=n.cssClip();i.clip={top:o?(r.bottom-r.top)/2:r.top,right:s?(r.right-r.left)/2:r.right,bottom:o?(r.bottom-r.top)/2:r.bottom,left:s?(r.right-r.left)/2:r.left},V.effects.createPlaceholder(n),"show"===t.mode&&(n.cssClip(i.clip),i.clip=r),n.animate(i,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),V.effects.define("drop","hide",function(t,e){var i=V(this),n="show"===t.mode,s=t.direction||"left",o="up"===s||"down"===s?"top":"left",r="up"===s||"left"===s?"-=":"+=",a="+="==r?"-=":"+=",l={opacity:0};V.effects.createPlaceholder(i),s=t.distance||i["top"==o?"outerHeight":"outerWidth"](!0)/2,l[o]=r+s,n&&(i.css(l),l[o]=a+s,l.opacity=1),i.animate(l,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),V.effects.define("explode","hide",function(t,e){var i,n,s,o,r,a,l=t.pieces?Math.round(Math.sqrt(t.pieces)):3,h=l,c=V(this),u="show"===t.mode,d=c.show().css("visibility","hidden").offset(),p=Math.ceil(c.outerWidth()/h),f=Math.ceil(c.outerHeight()/l),g=[];function m(){g.push(this),g.length===l*h&&(c.css({visibility:"visible"}),V(g).remove(),e())}for(i=0;i<l;i++)for(o=d.top+i*f,a=i-(l-1)/2,n=0;n<h;n++)s=d.left+n*p,r=n-(h-1)/2,c.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-n*p,top:-i*f}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:p,height:f,left:s+(u?r*p:0),top:o+(u?a*f:0),opacity:u?0:1}).animate({left:s+(u?0:r*p),top:o+(u?0:a*f),opacity:u?1:0},t.duration||500,t.easing,m)}),V.effects.define("fade","toggle",function(t,e){var i="show"===t.mode;V(this).css("opacity",i?0:1).animate({opacity:i?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),V.effects.define("fold","hide",function(e,t){var i=V(this),n="show"===(f=e.mode),s="hide"===f,o=e.size||15,r=/([0-9]+)%/.exec(o),a=e.horizFirst?["right","bottom"]:["bottom","right"],l=e.duration/2,h=V.effects.createPlaceholder(i),c=i.cssClip(),u={clip:V.extend({},c)},d={clip:V.extend({},c)},p=[c[a[0]],c[a[1]]],f=i.queue().length;r&&(o=parseInt(r[1],10)/100*p[s?0:1]),u.clip[a[0]]=o,d.clip[a[0]]=o,d.clip[a[1]]=0,n&&(i.cssClip(d.clip),h&&h.css(V.effects.clipToBox(d)),d.clip=c),i.queue(function(t){h&&h.animate(V.effects.clipToBox(u),l,e.easing).animate(V.effects.clipToBox(d),l,e.easing),t()}).animate(u,l,e.easing).animate(d,l,e.easing).queue(t),V.effects.unshift(i,f,4)}),V.effects.define("highlight","show",function(t,e){var i=V(this),n={backgroundColor:i.css("backgroundColor")};"hide"===t.mode&&(n.opacity=0),V.effects.saveStyle(i),i.css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(n,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),V.effects.define("size",function(n,e){var s,i=V(this),t=["fontSize"],o=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],r=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],a=n.mode,l="effect"!==a,h=n.scale||"both",c=n.origin||["middle","center"],u=i.css("position"),d=i.position(),p=V.effects.scaledDimensions(i),f=n.from||p,g=n.to||V.effects.scaledDimensions(i,0);V.effects.createPlaceholder(i),"show"===a&&(a=f,f=g,g=a),s={from:{y:f.height/p.height,x:f.width/p.width},to:{y:g.height/p.height,x:g.width/p.width}},"box"!==h&&"both"!==h||(s.from.y!==s.to.y&&(f=V.effects.setTransition(i,o,s.from.y,f),g=V.effects.setTransition(i,o,s.to.y,g)),s.from.x!==s.to.x&&(f=V.effects.setTransition(i,r,s.from.x,f),g=V.effects.setTransition(i,r,s.to.x,g))),"content"!==h&&"both"!==h||s.from.y!==s.to.y&&(f=V.effects.setTransition(i,t,s.from.y,f),g=V.effects.setTransition(i,t,s.to.y,g)),c&&(c=V.effects.getBaseline(c,p),f.top=(p.outerHeight-f.outerHeight)*c.y+d.top,f.left=(p.outerWidth-f.outerWidth)*c.x+d.left,g.top=(p.outerHeight-g.outerHeight)*c.y+d.top,g.left=(p.outerWidth-g.outerWidth)*c.x+d.left),delete f.outerHeight,delete f.outerWidth,i.css(f),"content"!==h&&"both"!==h||(o=o.concat(["marginTop","marginBottom"]).concat(t),r=r.concat(["marginLeft","marginRight"]),i.find("*[width]").each(function(){var t=V(this),e={height:(i=V.effects.scaledDimensions(t)).height*s.from.y,width:i.width*s.from.x,outerHeight:i.outerHeight*s.from.y,outerWidth:i.outerWidth*s.from.x},i={height:i.height*s.to.y,width:i.width*s.to.x,outerHeight:i.height*s.to.y,outerWidth:i.width*s.to.x};s.from.y!==s.to.y&&(e=V.effects.setTransition(t,o,s.from.y,e),i=V.effects.setTransition(t,o,s.to.y,i)),s.from.x!==s.to.x&&(e=V.effects.setTransition(t,r,s.from.x,e),i=V.effects.setTransition(t,r,s.to.x,i)),l&&V.effects.saveStyle(t),t.css(e),t.animate(i,n.duration,n.easing,function(){l&&V.effects.restoreStyle(t)})})),i.animate(g,{queue:!1,duration:n.duration,easing:n.easing,complete:function(){var t=i.offset();0===g.opacity&&i.css("opacity",f.opacity),l||(i.css("position","static"===u?"relative":u).offset(t),V.effects.saveStyle(i)),e()}})}),V.effects.define("scale",function(t,e){var i=V(this),n=t.mode,n=parseInt(t.percent,10)||(0===parseInt(t.percent,10)||"effect"!==n?0:100),n=V.extend(!0,{from:V.effects.scaledDimensions(i),to:V.effects.scaledDimensions(i,n,t.direction||"both"),origin:t.origin||["middle","center"]},t);t.fade&&(n.from.opacity=1,n.to.opacity=0),V.effects.effect.size.call(this,n,e)}),V.effects.define("puff","hide",function(t,e){t=V.extend(!0,{},t,{fade:!0,percent:parseInt(t.percent,10)||150}),V.effects.effect.scale.call(this,t,e)}),V.effects.define("pulsate","show",function(t,e){var i=V(this),n="show"===(l=t.mode),s=2*(t.times||5)+(n||"hide"===l?1:0),o=t.duration/s,r=0,a=1,l=i.queue().length;for(!n&&i.is(":visible")||(i.css("opacity",0).show(),r=1);a<s;a++)i.animate({opacity:r},o,t.easing),r=1-r;i.animate({opacity:r}
1,o,t.easing),i.queue(e),V.effects.unshift(i,l,1+s)}),V.effects.define("shake",function(t,e){var i=1,n=V(this),s=t.direction||"left",o=t.distance||20,r=t.times||3,a=2*r+1,l=Math.round(t.duration/a),h="up"===s||"down"===s?"top":"left",c="up"===s||"left"===s,u={},d={},p={},s=n.queue().length;for(V.effects.createPlaceholder(n),u[h]=(c?"-=":"+=")+o,d[h]=(c?"+=":"-=")+2*o,p[h]=(c?"-=":"+=")+2*o,n.animate(u,l,t.easing);i<r;i++)n.animate(d,l,t.easing).animate(p,l,t.easing);n.animate(d,l,t.easing).animate(u,l/2,t.easing).queue(e),V.effects.unshift(n,s,1+a)}),V.effects.define("slide","show",function(t,e){var i,n,s=V(this),o={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},r=t.mode,a=t.direction||"left",l="up"===a||"down"===a?"top":"left",h="up"===a||"left"===a,c=t.distance||s["top"==l?"outerHeight":"outerWidth"](!0),u={};V.effects.createPlaceholder(s),i=s.cssClip(),n=s.position()[l],u[l]=(h?-1:1)*c+n,u.clip=s.cssClip(),u.clip[o[a][1]]=u.clip[o[a][0]],"show"===r&&(s.cssClip(u.clip),s.css(l,u[l]),u.clip=i,u[l]=n),s.animate(u,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),!1!==V.uiBackCompat&&V.effects.define("transfer",function(t,e){V(this).transfer(t,e)})}),$.ui.dialog.prototype.options.clickOut=!0,$.ui.dialog.prototype.options.responsive=!0,$.ui.dialog.prototype.options.scaleH=.8,$.ui.dialog.prototype.options.scaleW=.8,$.ui.dialog.prototype.options.showTitleBar=!0,$.ui.dialog.prototype.options.showCloseButton=!0;var _init=$.ui.dialog.prototype._init,_open=($.ui.dialog.prototype._init=function(){_init.apply(this,arguments),$.ui&&$.ui.dialog&&$.ui.dialog.overlay&&($.ui.dialog.overlay.events=$.map("focus,keydown,keypress".split(","),function(t){return t+".dialog-overlay"}).join(" "))},$.ui.dialog.prototype.open),_close=($.ui.dialog.prototype.open=function(){var o=this,r=(_open.apply(this,arguments),o.element.parent().outerHeight()),a=o.element.parent().outerWidth(),l=$("html").hasClass("touch"),t=function(){var t,e,i,n,s;(!0===o.options.responsive||"touch"===o.options.responsive&&l)&&(t=o.element,e=$(window).height(),i=$(window).width(),t.parent().outerHeight(),t.parent().outerWidth(),n=Math.min(e*o.options.scaleH,r),s=Math.min(i*o.options.scaleW,a),(e<r+100||t.hasClass("resizedH"))&&(t.dialog("option","height",n).parent().css("max-height",n),t.addClass("resizedH")),(i<a+100||t.hasClass("resizedW"))&&(t.dialog("option","width",s).parent().css("max-width",s),t.addClass("resizedW")),t.hasClass("resizedH")||t.hasClass("resizedW"))&&(t.dialog("option","position","center"),t.css("overflow","auto")),l&&t.css("-webkit-overflow-scrolling","touch")};t(),$(window).on("resize",function(){t()}),window.addEventListener&&window.addEventListener("orientationchange",function(){t()}),o.options.showTitleBar||(o.uiDialogTitlebar.css({height:0,padding:0,background:"none",border:0}),o.uiDialogTitlebar.find(".ui-dialog-title").css("display","none")),o.options.showCloseButton||o.uiDialogTitlebar.find(".ui-dialog-titlebar-close").css("display","none"),o.options.clickOut&&!o.options.modal?($('<div id="dialog-overlay"></div>').insertBefore(o.element.parent()),$("#dialog-overlay").css({position:"fixed",top:0,right:0,bottom:0,left:0,"background-color":"transparent"}),$("#dialog-overlay").click(function(t){t.preventDefault(),t.stopPropagation(),o.close()})):o.options.clickOut&&o.options.modal&&$(".ui-widget-overlay").click(function(t){o.close()}),o.options.dialogClass&&$(".ui-widget-overlay").addClass(o.options.dialogClass)},$.ui.dialog.prototype.close),Hashtable=($.ui.dialog.prototype.close=function(){_close.apply(this,arguments),this.options.dialogClass&&$(".ui-widget-overlay").removeClass(this.options.dialogClass),$("#dialog-overlay").length&&$("#dialog-overlay").remove()},!function(w){var o=function(t,e){var i=w.extend({},w.fn.nivoSlider.defaults,e),n={currentSlide:0,currentImage:"",totalSlides:0,running:!1,paused:!1,stop:!1,controlNavEl:!1},s=w(t),o=(s.data("nivo:vars",n).addClass("nivoSlider"),s.children()),a=(o.each(function(){var t=w(this),e="";t.is("img")||(t.is("a")&&(t.addClass("nivo-imageLink"),e=t),t=t.find("img:first")),t.width(),t.height();""!==e&&e.css("display","none"),t.css("display","none"),n.totalSlides++}),function(t){return t.data("src")||t.attr("src")}),r=function(t){return w(o[t]).is("img")?w(o[t]):w(o[t]).find("img:first")},l=(i.randomStart&&(i.startSlide=Math.floor(Math.random()*n.totalSlides)),0<i.startSlide&&(i.startSlide>=n.totalSlides&&(i.startSlide=n.totalSlides-1),n.currentSlide=i.startSlide),w(o[n.currentSlide]).is("img")?n.currentImage=w(o[n.currentSlide]):n.currentImage=w(o[n.currentSlide]).find("img:first"),w(o[n.currentSlide]).is("a")&&w(o[n.currentSlide]).css("display","block"),w("<img/>").addClass("nivo-main-image")),v=(l.attr("src",a(n.currentImage)).show(),s.append(l),w(window).resize(function(){s.children("img").width(s.width()),l.attr("src",a(n.currentImage)),l.stop().height("auto"),w(".nivo-slice").remove(),w(".nivo-box").remove()}),s.append(w('<div class="nivo-caption"></div>')),function(t){var e,i=w(".nivo-caption",s);""!=n.currentImage.attr("title")&&n.currentImage.attr("title")!=undefined?("#"==(e=n.currentImage.attr("title")).substr(0,1)&&(e=w(e).html()),"block"==i.css("display")?setTimeout(function(){i.html(e)},t.animSpeed):(i.html(e),i.stop().fadeIn(t.animSpeed))):i.stop().fadeOut(t.animSpeed)}),h=(v(i),0);if(!i.manualAdvance&&1<o.length&&(h=setInterval(function(){var t;(t=n.currentSlide==n.totalSlides-1?r(0):r(n.currentSlide+1)).attr("src",a(t)),d(s,o,i,!1)},i.pauseTime)),i.directionNav&&(s.append('<div class="nivo-directionNav"><a class="nivo-prevNav">'+i.prevText+'</a><a class="nivo-nextNav">'+i.nextText+"</a></div>"),w(s).on("click","a.nivo-prevNav",function(){if(n.running)return!1;clearInterval(h),h="",n.currentSlide-=2,d(s,o,i,"prev")}),w(s).on("click","a.nivo-nextNav",function(){if(n.running)return!1;clearInterval(h),h="",d(s,o,i,"next")})),i.controlNav){n.controlNavEl=w('<div class="nivo-controlNav"></div>'),s.after(n.controlNavEl);for(var c,u=0;u<o.length;u++)i.controlNavThumbs?(n.controlNavEl.addClass("nivo-thumbs-enabled"),(c=(c=o.eq(u)).is("img")?c:c.find("img:first")).attr("data-thumb")&&n.controlNavEl.append('<a class="nivo-control" rel="'+u+'"><img src="'+c.attr("data-thumb")+'" alt="" /></a>')):n.controlNavEl.append('<a class="nivo-control" rel="'+u+'">'+(u+1)+"</a>");w("a:eq("+n.currentSlide+")",n.controlNavEl).addClass("active"),w("a",n.controlNavEl).bind("click",function(){return!n.running&&!w(this).hasClass("active")&&(clearInterval(h),h="",n.currentSlide=w(this).attr("rel")-1,void d(s,o,i,"control"))})}i.pauseOnHover&&s.hover(function(){n.paused=!0,clearInterval(h),h=""},function(){n.paused=!1,""!==h||i.manualAdvance||(h=setInterval(function(){d(s,o,i,!1)},i.pauseTime))}),s.bind("nivo:animFinished",function(){l.attr("src",a(n.currentImage)),n.running=!1,w(o).each(function(){w(this).is("a")&&w(this).css("display","none")}),w(o[n.currentSlide]).is("a")&&w(o[n.currentSlide]).css("display","block"),""!==h||n.paused||i.manualAdvance||(h=setInterval(function(){d(s,o,i,!1)},i.pauseTime)),i.afterChange.call(this)});
1var _=function(t,e,i){w(i.currentImage).parent().is("a")&&w(i.currentImage).parent().css("display","block"),w('img[src="'+a(i.currentImage)+'"]',t).not(".nivo-main-image,.nivo-control img").width(t.width()).css("visibility","hidden").show();for(var n=(w('img[src="'+a(i.currentImage)+'"]',t).not(".nivo-main-image,.nivo-control img").parent().is("a")?w('img[src="'+a(i.currentImage)+'"]',t).not(".nivo-main-image,.nivo-control img").parent():w('img[src="'+a(i.currentImage)+'"]',t).not(".nivo-main-image,.nivo-control img")).height(),s=0;s<e.slices;s++){var o=Math.round(t.width()/e.slices);s===e.slices-1?t.append(w('<div class="nivo-slice" name="'+s+'"><img src="'+a(i.currentImage)+'" style="position:absolute; width:'+t.width()+"px; height:auto; display:block !important; top:0; left:-"+(o+s*o-o)+'px;" /></div>').css({left:o*s+"px",width:t.width()-o*s+"px",height:n+"px",opacity:"0",overflow:"hidden"})):t.append(w('<div class="nivo-slice" name="'+s+'"><img src="'+a(i.currentImage)+'" style="position:absolute; width:'+t.width()+"px; height:auto; display:block !important; top:0; left:-"+(o+s*o-o)+'px;" /></div>').css({left:o*s+"px",width:o+"px",height:n+"px",opacity:"0",overflow:"hidden"}))}w(".nivo-slice",t).height(n),l.stop().animate({height:w(i.currentImage).height()},e.animSpeed)},b=function(t,e,i){w(i.currentImage).parent().is("a")&&w(i.currentImage).parent().css("display","block"),w('img[src="'+a(i.currentImage)+'"]',t).not(".nivo-main-image,.nivo-control img").width(t.width()).css("visibility","hidden").show();for(var n=Math.round(t.width()/e.boxCols),s=Math.round(w('img[src="'+a(i.currentImage)+'"]',t).not(".nivo-main-image,.nivo-control img").height()/e.boxRows),o=0;o<e.boxRows;o++)for(var r=0;r<e.boxCols;r++)r===e.boxCols-1?t.append(w('<div class="nivo-box" name="'+r+'" rel="'+o+'"><img src="'+a(i.currentImage)+'" style="position:absolute; width:'+t.width()+"px; height:auto; display:block; top:-"+s*o+"px; left:-"+n*r+'px;" /></div>').css({opacity:0,left:n*r+"px",top:s*o+"px",width:t.width()-n*r+"px"})):t.append(w('<div class="nivo-box" name="'+r+'" rel="'+o+'"><img src="'+a(i.currentImage)+'" style="position:absolute; width:'+t.width()+"px; height:auto; display:block; top:-"+s*o+"px; left:-"+n*r+'px;" /></div>').css({opacity:0,left:n*r+"px",top:s*o+"px",width:n+"px"})),w('.nivo-box[name="'+r+'"]',t).height(w('.nivo-box[name="'+r+'"] img',t).height()+"px");l.stop().animate({height:w(i.currentImage).height()},e.animSpeed)},d=function(f,t,g,e){var m=f.data("nivo:vars");if(m&&m.currentSlide===m.totalSlides-1&&g.lastSlide.call(this),(!m||m.stop)&&!e)return console.log("STOP!"),!1;g.beforeChange.call(this),e&&("prev"===e&&l.attr("src",a(m.currentImage)),"next"!==e)||l.attr("src",a(m.currentImage)),m.currentSlide++,m.currentSlide===m.totalSlides&&(m.currentSlide=0,g.slideshowEnd.call(this)),m.currentSlide<0&&(m.currentSlide=m.totalSlides-1),m.currentImage=r(m.currentSlide),m.currentImage.attr("src",a(m.currentImage)),m.currentImage.on("load",function(){g.controlNav&&(w("a",m.controlNavEl).removeClass("active"),w("a:eq("+m.currentSlide+")",m.controlNavEl).addClass("active")),v(g),w(".nivo-slice",f).remove(),w(".nivo-box",f).remove();var a=g.effect,t="",i=("random"===g.effect&&(t=new Array("sliceDownRight","sliceDownLeft","sliceUpRight","sliceUpLeft","sliceUpDown","sliceUpDownLeft","fold","fade","boxRandom","boxRain","boxRainReverse","boxRainGrow","boxRainGrowReverse"),(a=t[Math.floor(Math.random()*(t.length+1))])===undefined)&&(a="fade"),-1!==g.effect.indexOf(",")&&(t=g.effect.split(","),(a=t[Math.floor(Math.random()*t.length)])===undefined)&&(a="fade"),m.currentImage.attr("data-transition")&&(a=m.currentImage.attr("data-transition")),m.running=!0,0),n=0,t="",e="",s="",o="";if("sliceDown"===a||"sliceDownRight"===a||"sliceDownLeft"===a)_(f,g,m),n=i=0,t=w(".nivo-slice",f),(t="sliceDownLeft"===a?w(".nivo-slice",f)._reverse():t).each(function(){var t=w(this);t.css({top:"0px"}),n===g.slices-1?setTimeout(function(){t.animate({opacity:"1.0"},g.animSpeed,"",function(){f.trigger("nivo:animFinished")})},100+i):setTimeout(function(){t.animate({opacity:"1.0"},g.animSpeed)},100+i),i+=50,n++});else if("sliceUp"===a||"sliceUpRight"===a||"sliceUpLeft"===a)_(f,g,m),n=i=0,t=w(".nivo-slice",f),(t="sliceUpLeft"===a?w(".nivo-slice",f)._reverse():t).each(function(){var t=w(this);t.css({bottom:"0px"}),n===g.slices-1?setTimeout(function(){t.animate({opacity:"1.0"},g.animSpeed,"",function(){f.trigger("nivo:animFinished")})},100+i):setTimeout(function(){t.animate({opacity:"1.0"},g.animSpeed)},100+i),i+=50,n++});else if("sliceUpDown"===a||"sliceUpDownRight"===a||"sliceUpDownLeft"===a){_(f,g,m);var i=0,n=0,r=0,t=w(".nivo-slice",f);(t="sliceUpDownLeft"===a?w(".nivo-slice",f)._reverse():t).each(function(){var t=w(this);0===n?(t.css("top","0px"),n++):(t.css("bottom","0px"),n=0),r===g.slices-1?setTimeout(function(){t.animate({opacity:"1.0"},g.animSpeed,"",function(){f.trigger("nivo:animFinished")})},100+i):setTimeout(function(){t.animate({opacity:"1.0"},g.animSpeed)},100+i),i+=50,r++})}else if("fold"===a)_(f,g,m),n=i=0,w(".nivo-slice",f).each(function(){var t=w(this),e=t.width();t.css({top:"0px",width:"0px"}),n===g.slices-1?setTimeout(function(){t.animate({width:e,opacity:"1.0"},g.animSpeed,"",function(){f.trigger("nivo:animFinished")})},100+i):setTimeout(function(){t.animate({width:e,opacity:"1.0"},g.animSpeed)},100+i),i+=50,n++});else if("fade"===a)_(f,g,m),(e=w(".nivo-slice:first",f)).css({width:f.width()+"px"}),e.animate({opacity:"1.0"},2*g.animSpeed,"",function(){f.trigger("nivo:animFinished")});else if("slideInRight"===a)_(f,g,m),(e=w(".nivo-slice:first",f)).css({width:"0px",opacity:"1"}),e.animate({width:f.width()+"px"},2*g.animSpeed,"",function(){f.trigger("nivo:animFinished")});else if("slideInLeft"===a)_(f,g,m),(e=w(".nivo-slice:first",f)).css({width:"0px",opacity:"1",left:"",right:"0px"}),e.animate({width:f.width()+"px"},2*g.animSpeed,"",function(){e.css({left:"0px",right:""}),f.trigger("nivo:animFinished")});else if("boxRandom"===a)b(f,g,m),s=g.boxCols*g.boxRows,i=n=0,(o=y(w(".nivo-box",f))).each(function(){var t=w(this);n===s-1?setTimeout(function(){t.animate({opacity:"1"},g.animSpeed,"",function(){f.trigger("nivo:animFinished")})},100+i):setTimeout(function(){t.animate({opacity:"1"},g.animSpeed)},100+i),i+=20,n++});else if("boxRain"===a||"boxRainReverse"===a||"boxRainGrow"===a||"boxRainGrowReverse"===a){b(f,g,m);var s=g.boxCols*g.boxRows,l=i=n=0,h=0,c=[];c[l]=[],o=w(".nivo-box",f),(o="boxRainReverse"!==a&&"boxRainGrowReverse"!==a?o:w(".nivo-box",f)._reverse()).each(function(){c[l][h]=w(this),++h===g.boxCols&&(h=0,c[++l]=[])});for(var u=0;u<2*g.boxCols;u++){for(var d=u,p=0;p<g.boxRows;
1p++)0<=d&&d<g.boxCols&&(!function(t,e,i,n){var s=w(c[p][t]),o=s.width(),r=s.height();"boxRainGrow"!==a&&"boxRainGrowReverse"!==a||s.width(0).height(0),i===n-1?setTimeout(function(){s.animate({opacity:"1",width:o,height:r},g.animSpeed/1.3,"",function(){f.trigger("nivo:animFinished")})},100+e):setTimeout(function(){s.animate({opacity:"1",width:o,height:r},g.animSpeed/1.3)},100+e)}(d,i,n,s),n++),d--;i+=100}}}).each(function(){this.complete&&w(this).load()})},y=function(t){for(var e,i,n=t.length;n;e=parseInt(Math.random()*n,10),i=t[--n],t[n]=t[e],t[e]=i);return t},p=function(t){this.console&&"undefined"!=typeof console.log&&console.log(t)};return this.stop=function(){w(t).data("nivo:vars").stop||(w(t).data("nivo:vars").stop=!0,p("Stop Slider"))},this.start=function(){w(t).data("nivo:vars").stop&&(w(t).data("nivo:vars").stop=!1,p("Start Slider"))},i.afterLoad.call(this),this};w.fn.nivoSlider=function(s){return this.each(function(t,e){var i=w(this);if(i.data("nivoslider"))return i.data("nivoslider");var n=new o(this,s);i.data("nivoslider",n)})},w.fn.nivoSlider.defaults={effect:"random",slices:15,boxCols:8,boxRows:4,animSpeed:500,pauseTime:3e3,startSlide:0,directionNav:!0,controlNav:!0,controlNavThumbs:!1,pauseOnHover:!0,manualAdvance:!1,prevText:"Prev",nextText:"Next",randomStart:!1,beforeChange:function(){},afterChange:function(){},slideshowEnd:function(){},lastSlide:function(){},afterLoad:function(){}},w.fn._reverse=[].reverse}(jQuery),!function(i){function n(t){"password"==(this.input=t).attr("type")&&this.handlePassword(),i(t[0].form).submit(function(){t.hasClass("placeholder")&&t[0].value==t.attr("placeholder")&&(t[0].value="")})}n.prototype={show:function(t){if(""===this.input[0].value||t&&this.valueIsPlaceholder()){if(this.isPassword)try{this.input[0].setAttribute("type","text")}catch(i){this.input.before(this.fakePassword.show()).hide()}this.input.addClass("placeholder"),this.input[0].value=this.input.attr("placeholder")}},hide:function(){if(this.valueIsPlaceholder()&&this.input.hasClass("placeholder")&&(this.input.removeClass("placeholder"),this.input[0].value="",this.isPassword)){try{this.input[0].setAttribute("type","password")}catch(t){}this.input.show(),this.input[0].focus()}},valueIsPlaceholder:function(){return this.input[0].value==this.input.attr("placeholder")},handlePassword:function(){var t,e=this.input;e.attr("realType","password"),this.isPassword=!0,i.browser.msie&&e[0].outerHTML&&(t=i(e[0].outerHTML.replace(/type=(['"])?password\1/gi,"type=$1text$1")),this.fakePassword=t.val(e.attr("placeholder")).addClass("placeholder").focus(function(){e.trigger("focus"),i(this).hide()}),i(e[0].form).submit(function(){t.remove(),e.show()}))}};var t=!!("placeholder"in document.createElement("input"));i.fn.placeholder=function(){return t?this:this.each(function(){var t=i(this),e=new n(t);e.show(!0),t.focus(function(){e.hide()}),t.blur(function(){e.show(!1)}),i.browser.msie&&(i(window).load(function(){t.val()&&t.removeClass("placeholder"),e.show(!0)}),t.focus(function(){var t;""==this.value&&((t=this.createTextRange()).collapse(!0),t.moveStart("character",0),t.select())}))})}}(jQuery),!function(n){function t(){this._init.apply(this,arguments)}t.prototype.oninit=function(){},t.prototype.events=function(){},t.prototype.onmousedown=function(){this.ptr.css({position:"absolute"})},t.prototype.onmousemove=function(t,e,i){this.ptr.css({left:e,top:i})},t.prototype.onmouseup=function(){},t.prototype.isDefault={drag:!1,clicked:!1,toclick:!0,mouseup:!1},t.prototype._init=function(){var t;0<arguments.length&&(this.ptr=n(arguments[0]),this.outer=n(".draggable-outer"),this.is={},n.extend(this.is,this.isDefault),t=this.ptr.offset(),this.d={left:t.left,top:t.top,width:this.ptr.width(),height:this.ptr.height()},this.oninit.apply(this,arguments),this._events())},t.prototype._getPageCoords=function(t){return t.targetTouches&&t.targetTouches[0]?{x:t.targetTouches[0].pageX,y:t.targetTouches[0].pageY}:{x:t.pageX,y:t.pageY}},t.prototype._bindEvent=function(t,e,i){this.supportTouches_?t.get(0).addEventListener(this.events_[e],i,!1):t.bind(this.events_[e],i)},t.prototype._events=function(){var e=this;this.supportTouches_="ontouchend"in document,this.events_={click:this.supportTouches_?"touchstart":"click",down:this.supportTouches_?"touchstart":"mousedown",move:this.supportTouches_?"touchmove":"mousemove",up:this.supportTouches_?"touchend":"mou
1seup"},this._bindEvent(n(document),"move",function(t){e.is.drag&&(t.stopPropagation(),t.preventDefault(),e._mousemove(t))}),this._bindEvent(n(document),"down",function(t){e.is.drag&&(t.stopPropagation(),t.preventDefault())}),this._bindEvent(n(document),"up",function(t){e._mouseup(t)}),this._bindEvent(this.ptr,"down",function(t){return e._mousedown(t),!1}),this._bindEvent(this.ptr,"up",function(t){e._mouseup(t)}),this.ptr.find("a").click(function(){if(e.is.clicked=!0,!e.is.toclick)return!(e.is.toclick=!0)}).mousedown(function(t){return e._mousedown(t),!1}),this.events()},t.prototype._mousedown=function(t){this.is.drag=!0,this.is.clicked=!1,this.is.mouseup=!1;var e=this.ptr.offset(),i=this._getPageCoords(t);this.cx=i.x-e.left,this.cy=i.y-e.top,n.extend(this.d,{left:e.left,top:e.top,width:this.ptr.width(),height:this.ptr.height()}),this.outer&&this.outer.get(0)&&this.outer.css({height:Math.max(this.outer.height(),n(document.body).height()),overflow:"hidden"}),this.onmousedown(t)},t.prototype._mousemove=function(t){this.is.toclick=!1;var e=this._getPageCoords(t);this.onmousemove(t,e.x-this.cx,e.y-this.cy)},t.prototype._mouseup=function(t){this.is.drag&&(this.is.drag=!1,this.outer&&this.outer.get(0)&&(n.browser.mozilla?this.outer.css({overflow:"hidden"}):this.outer.css({overflow:"visible"}),n.browser.msie&&"6.0"==n.browser.version?this.outer.css({height:"100%"}):this.outer.css({height:"auto"})),this.onmouseup(t))},window.Draggable=t}(jQuery),function(){var u="function",s=typeof Array.prototype.splice==u?function(t,e){t.splice(e,1)}:function(t,e){var i,n,s;if(e===t.length-1)t.length=e;else for(i=t.slice(e+1),t.length=e,n=0,s=i.length;n<s;++n)t[e+n]=i[n]};function n(t){var e;if("string"==typeof t)return t;if(typeof t.hashCode==u)return"string"==typeof(e=t.hashCode())?e:n(e);if(typeof t.toString==u)return t.toString();try{return String(t)}catch(i){return Object.prototype.toString.call(t)}}function e(t,e){return t.equals(e)}function i(t,e){return typeof e.equals==u?e.equals(t):t===e}function t(e){return function(t){if(null===t)throw new Error("null is not a valid "+e);if(void 0===t)throw new Error(e+" must not be undefined")}}var d=t("key"),p=t("value");function f(t,e,i,n){this[0]=t,this.entries=[],this.addEntry(e,i),null!==n&&(this.getEqualityFunction=function(){return n})}function o(s){return function(t){for(var e,i=this.entries.length,n=this.getEqualityFunction(t);i--;)if(n(t,(e=this.entries[i])[0]))switch(s){case 0:return!0;case 1:return e;case 2:return[i,e[1]]}return!1}}function r(s){return function(t){for(var e=t.length,i=0,n=this.entries.length;i<n;++i)t[e+i]=this.entries[i][s]}}function g(t,e){e=t[e];return e&&e instanceof f?e:null}return f.prototype={getEqualityFunction:function(t){return typeof t.equals==u?e:i},getEntryForKey:o(1),getEntryAndIndexForKey:o(2),removeEntryForKey:function(t){t=this.getEntryAndIndexForKey(t);return t?(s(this.entries,t[0]),t[1]):null},addEntry:function(t,e){this.entries[this.entries.length]=[t,e]},keys:r(0),values:r(1),getEntries:function(t){for(var e=t.length,i=0,n=this.entries.length;i<n;++i)t[e+i]=this.entries[i].slice(0)},containsKey:o(0),containsValue:function(t){for(var e=this.entries.length;e--;)if(t===this.entries[e][1])return!0;return!1}},function m(e,i){var l=this,r=[],a={},h=typeof e==u?e:n,c=typeof i==u?i:null,t=(this.put=function(t,e){d(t),p(e);var i,n=h(t),s=null,o=g(a,n);return o?(i=o.getEntryForKey(t))?(s=i[1],i[1]=e):o.addEntry(t,e):(o=new f(n,t,e,c),r[r.length]=o,a[n]=o),s},this.get=function(t){d(t);var e=h(t);return(e=g(a,e))&&(t=e.getEntryForKey(t))?t[1]:null},this.containsKey=function(t){d(t);var e=h(t);return!!(e=g(a,e))&&e.containsKey(t)},this.containsValue=function(t){p(t);for(var e=r.length;e--;)if(r[e].containsValue(t))return!0;return!1},this.clear=function(){r.length=0,a={}},this.isEmpty=function(){return!r.length},function(i){return function(){for(var t=[],e=r.length;e--;)r[e][i](t);return t}});this.keys=t("keys"),this.values=t("values"),this.entries=t("getEntries"),this.remove=function(t){d(t);var e=h(t),i=null,n=g(a,e);return n&&null!==(i=n.removeEntryForKey(t))&&!n.entries.length&&(t=function(t,e){for(var i=t.length;i--;)if(e===t[i][0])return i;return null}(r,e),s(r,t),delete a[e]),i},this.size=function(){for(var t=0,e=r.length;e--;)t+=r[e].entries.length;return t},this.each=function(t){for(var e,i=l.entries(),n=i.length;n--;)t((e=i[n])[0],e[1])},this.putAll=function(t,e){for(var i,n,s,o=t.entries(),r=o.length,a=typeof e==u;r--;)i=(n=o[r])[0],n=n[1],a&&(s=l.get(i))&&(n=e(i,s,n)),l.put(i,n)},this.clone=function(){var t=new m(e,i);return t.putAll(l),t}}}());function buildCategoryFilter(t){$.ajax({url:"/shop/ajaxwrapper.asp"+t+"&fc=buildcategoryfilter",type:"GET",cac
1he:!1,"async":!0,success:function(t){$("#ProductFilter-Container").html(t),filteredListLoadedFirstTime(),$("#ProductFilter-Container").find(".product-filter-advanced-variant-checkbox").each(function(t,e){$("#"+e.id).change(function(){createCookie("FilterChildName",$(this).parent().parent().attr("id")),createCookie("FilterScrollPos",$(this).parent().parent().parent().scrollTop())})});t=getCookie("FilterChildName");t!=undefined&&""!==t&&$(document).find("#"+t).parent().scrollTop(getCookie("FilterScrollPos"))}})}function clearPriceIntervalSlider(t,e,i,n,s){0<$("DivSliderproduct-filter-price-range-slider").length?($("#"+i).slider("value",n,s),$("#MinInput"+i).val(n),$("#MaxInput"+i).val(s),loadFilteredProductList(t,e)):loadFilteredProductList(t,e,"","pricerange","","")}function applyPriceRangefilter(t,e,i,n,s){$("#MinInput"+i).val(t),$("#MaxInput"+i).val(e),loadFilteredProductList(n,s,"","","Price","")}function searchInCategory(t,e,i){$("#filter-search-category").val(i),loadFilteredProductList(t,e,"","","Category","")}function toggleFilterCheckbox(t,e){e.stopPropagation();e=$("#"+t);e.is(":disabled")||(e.prop("checked",!e.is(":checked")),e.trigger("change"))}function filterItemClicked(t){t.stopPropagation()}function showAllFilters(){$("#product-filter-container-hidden").fadeIn(),$("#product-filter-show-all-filters").val("1"),$("#product-filter-show-all-container").hide()}function showHiddenFilterValues(t,e){$("#product-filter-show-all-items-"+e).val(e),$("#"+t+" div").slideDown("fast"),$("#"+t+" .product-filter-show-all-items").hide();var i="",e=($(".product-filter-show-all-items-selected").each(function(t,e){e=$(e).val();0<e.length&&(i=i+e+"|")}),"/shop/ajaxwrapper.asp?fc=SetProductFilterShowAllItemsValue&Value="+i);$.ajax({url:e,"async":!0,type:"GET",cache:!1})}function filteredListLoaded(){}function filteredListLoadedAfterRender(){}function beforeFilteredListLoaded(){}function filteredListLoadedFirstTime(){}function removeLastComma(t){return t.replace(/,\s*$/,"")}function removeLastPipe(t){return t.replace(/[|]\s*$/,"")}function allFiltersAreDeselected(t,e,i,n,s,o,r,a){if(1===t)return!1;if(1===e)return!1;if(1===i)return!1;if(0<n.length)return!1;if(0<s.length)return!1;if(0<o.length)return!1;if(0<r.length)return!1;if(0<a.length){t=a.split("|");if(2===t.length){if(t[0]!==$("#product-filter-price-min").val())return!1;if(t[1]!==$("#product-filter-price-max").val())return!1}}return!0}function loadFilteredProductList(t,e,s,o,i,n){var r="",a="",l="",h="",c=$("#product-filter-show-all-filters").val(),u=(o==undefined&&(o=""),$.parseParams(t)),d=u.contentpage,p=u.search,f=($(".product-filter-advanced-variant-dropdown").each(function(t,e){var i=$(e).find(".product-filter-advanced-variant-group-id").val();s!=undefined&&s===i&&"AdvancedVariants"===o||$(e).find(".product-filter-advanced-variant-select").each(function(t,e){e=$(e).val();""!==e&&(r=(r=r+i+";")+e+"|")})}),$(".product-filter-advanced-variant-checkboxes").each(function(t,e){var n,i=$(e).find(".product-filter-advanced-variant-group-id").val();s!=undefined&&s===i&&"AdvancedVariants"===o||(n="",$(e).find(".product-filter-advanced-variant-checkbox").each(function(t,e){var i=$(e);$(e).is(":checked")&&(n=n+i.val()+",")}),""!==(n=removeLastComma(n))&&(r=r+i+";"+n+"|"))}),r=removeLastPipe(r),$(".product-filter-tag-dropdown").each(function(t,e){var i=$(e).find(".product-filter-tag-group-id").val();s!=undefined&&s===i&&"Tags"===o||$(e).find(".product-filter-tag-select").each(function(t,e){e=$(e).val();""!==e&&(a=(a=a+i+";")+e+"|")})}),$(".product-filter-tag-checkboxes").each(function(t,e){var n,i=$(e).find(".product-filter-tag-group-id").val();s!=undefined&&s===i&&"Tags"===o||(n="",$(e).find(".product-filter-tag-checkbox").each(function(t,e){var i=$(e);$(e).is(":checked")&&(n=n+i.val()+",")}),""!==(n=removeLastComma(n))&&(a=a+i+";"+n+"|"))}),a=removeLastPipe(a),0),g=($("#product-filter-new-checkbox").is(":checked")&&(f=1),0),m=($("#product-filter-offer-checkbox").is(":checked")&&(g=1),0),v=($("#product-filter-stock-checkbox").is(":checked")&&(m=1),"Other"===o&&(m=g=f=0),$(".product-filter-manufactor-checkboxes").each(function(t,e){if("Manufactors"===o)return!1;$(e).find(".product-filter-manufactor-checkbox").each(function(t,e){e=$(e);$(e).is(":checked")&&(l=l+e.val()+",")})}),0<$(".product-filter-manufactor-dropdown").length&&"Manufactors"!==o&&(l=$(".product-filter-manufactor-dropdown").val()),""),u=0,_=0,b=(0<$("#DivSliderproduct-filter-price-range-slider").length?(y=$("#product-filter-price-range-slider").val())!=undefined&&(u=(y=y.split(";"))[0],_=y[1],u!=undefined)&&_!=undefined&&(v=u+"|"+_):0<$("#MinInputproduct-filter-price-range-slider").length&&(u=$("#MinInputproduct-filter-price-range-slider").val(),_=$("#MaxInputproduct-filter-price-range-slider").val(),v=u+"|"+_),"pricerange"===o&&(v=""),""),y=(0<$("#filter-search-category").length&&(b=$("#filter-search-category").val()),"Category"===o&&(b=""),$(".product-filter-show-all-items-selected").each(function(t,e){e=$(e).val();0<e.length&&(h=h+e+"|")}),1),u=0;"All"===o&&(m=g=f=0,v=h=b=a=l=r="",y=u=1);allFiltersAreDeselected(m,g,f,b,a,r,l,v)&&(u=1),$("#ProductFilter-Container :input").prop("disabled",!0);_="productlist.asp",_="/shop/"+(_="showsubcats"===d?"showSubCats.asp":_)+t+"&Filter_LastSelectedFilterType="+i+"&Filter_LastSelectedFilterItemId="+n+"&Filter_AdvancedVariants="+r+"&Filter_New="+f+"&Filter_Offer="+g+"&Filter_Stock="+m+"&Filter_Category="+b+"&Filter_Manufactor="+l+"&Filter_PriceRange="+v+"&Filter_Tags="+a+"&Filter_ShowAllItems="+h+"&Filter_ShowAll="+c+"&FilterActive="+y+"&AllFiltersCleared="+u;
1beforeFilteredListLoaded(),$.ajax({url:_,type:"GET",cache:!1,"async":!0,success:function(t){$("#Content_Productlist").html(t),filteredListLoaded(),buildCategoryFilter("?ContentPage="+d+"&Search="+p+"&CatIdentity="+e+"&Filter_LastSelectedFilterType="+i+"&Filter_LastSelectedFilterItemId="+n+"&Filter_AdvancedVariants="+r+"&Filter_New="+f+"&Filter_Offer="+g+"&Filter_Stock="+m+"&Filter_Category="+b+"&Filter_Manufactor="+l+"&Filter_PriceRange="+v+"&Filter_Tags="+a+"&Filter_ShowAllItems="+h+"&Filter_ShowAll="+c+"&FilterActive=1")}})}!function(k){var r=new Hashtable,a=[[".",","],[",","."],[","," "],[".","'"]],l=[["ae","au","ca","cn","eg","gb","hk","il","in","jp","sk","th","tw","us"],["at","br","de","dk","es","gr","it","nl","pt","tr","vn"],["cz","fi","fr","ru","se","pl"],["ch"]];function h(t,e,i){this.dec=t,this.group=e,this.neg=i}function C(t,e){if(0==r.size())for(var i=0;i<l.length;i++){localeGroup=l[i];for(var n=0;n<localeGroup.length;n++)r.put(localeGroup[n],i)}var s=".",o=",",e=(0==e&&(-1!=t.indexOf("_")?t=t.split("_")[1].toLowerCase():-1!=t.indexOf("-")&&(t=t.split("-")[1].toLowerCase())),r.get(t));return e&&(t=a[e])&&(s=t[0],o=t[1]),new h(s,o,"-")}k.fn.formatNumber=function(e,i,n){return this.each(function(){null==i&&(i=!0),null==n&&(n=!0),t=k(this).is(":input")?new String(k(this).val()):new String(k(this).text());var t=k.formatNumber(t,e);if(i&&(k(this).is(":input")?k(this).val(t):k(this).text(t)),n)return t})},k.formatNumber=function(t,e){for(var i=C((e=k.extend({},k.fn.formatNumber.defaults,e)).locale.toLowerCase(),e.isFullLocale),n=(i.dec,i.group,i.neg,""),s=!1,o=0;o<e.format.length;o++)if(-1=="0#-,.".indexOf(e.format.charAt(o)))n+=e.format.charAt(o);else{if(0!=o||"-"!=e.format.charAt(o))break;s=!0}for(var r="",o=e.format.length-1;0<=o&&-1=="0#-,.".indexOf(e.format.charAt(o));o--)r=e.format.charAt(o)+r;e.format=e.format.substring(n.length),e.format=e.format.substring(0,e.format.length-r.length);i=new Number(t);return k._formatNumber(i,e,r,n,s)},k._formatNumber=function(t,e,i,n,s){var o=C((e=k.extend({},k.fn.formatNumber.defaults,e)).locale.toLowerCase(),e.isFullLocale),r=o.dec,a=o.group,o=o.neg,l=!1;if(isNaN(t)){if(1!=e.nanForceZero)return null;l=!(t=0)}"%"==i&&(t*=100);var h="";if(-1<e.format.indexOf(".")){for(var c=r,u=e.format.substring(e.format.lastIndexOf(".")+1),d=(t=1==e.round?new Number(t.toFixed(u.length)):(d=(d=t.toString()).substring(0,d.lastIndexOf(".")+u.length+1),new Number(d)))%1,p=(p=new String(d.toFixed(u.length))).substring(p.lastIndexOf(".")+1),f=0;f<u.length;f++)if("#"==u.charAt(f)&&"0"!=p.charAt(f))c+=p.charAt(f);else if("#"==u.charAt(f)&&"0"==p.charAt(f)){if(!p.substring(f).match("[1-9]"))break;c+=p.charAt(f)}else"0"==u.charAt(f)&&(c+=p.charAt(f));h+=c}else t=Math.round(t);var d=Math.floor(t),g=(t<0&&(d=Math.ceil(t)),""),g=-1==e.format.indexOf(".")?e.format:e.format.substring(0,e.format.indexOf(".")),m="";if(0!=d||"#"!=g.substr(g.length-1)||l){for(var v=new String(Math.abs(d)),_=9999,b=(-1!=g.lastIndexOf(",")&&(_=g.length-g.lastIndexOf(",")-1),0),f=v.length-1;-1<f;f--)m=v.charAt(f)+m,++b==_&&0!=f&&(m=a+m,b=0);if(g.length>m.length){l=g.indexOf("0");if(-1!=l)for(var y=g.length-l,w=g.length-m.length-1;m.length<y;){var x=g.charAt(w),m=(x=","==x?a:x)+m;w--}}}return h=(m=m||-1===g.indexOf("0",g.length-1)?m:"0")+h,t<0&&s&&0<n.length?n=o+n:t<0&&(h=o+h),e.decimalSeparatorAlwaysShown||h.lastIndexOf(r)==h.length-1&&(h=h.substring(0,h.length-1)),h=n+h+i},k.fn.parseNumber=function(t,e,i){null==e&&(e=!0),null==i&&(i=!0),n=k(this).is(":input")?new String(k(this).val()):new String(k(this).text());var n=k.parseNumber(n,t);if(n&&(e&&(k(this).is(":input")?k(this).val(n.toString()):k(this).text(n.toString())),i))return n},k.parseNumber=function(t,e){for(var i=C((e=k.extend({},k.fn.parseNumber.defaults,e)).locale.toLowerCase(),e.isFullLocale),n=i.dec,s=i.group,i=i.neg;-1<t.indexOf(s);)t=t.replace(s,"");var o="",r=!1;"%"!=(t=t.replace(n,".").replace(i,"-")).charAt(t.length-1)&&1!=e.isPercentage||(r=!0);for(var a=0;a<t.length;a++)-1<"1234567890.-".indexOf(t.charAt(a))&&(o+=t.charAt(a));n=new Number(o);return r&&(n/=100,n=-1!=(i=o.indexOf("."))?(e=o.length-i-1,n.toFixed(2+e)):n.toFixed(o.length-1)),n},k.fn.parseNumber.defaults={locale:"us",decimalSeparatorAlwaysShown:!1,isPercentage:!1,isFullLocale:!1},k.fn.formatNumber.defaults={format:"#,###.00",locale:"us",decimalSeparatorAlwaysShown:!1,nanForceZero:!0,round:!0,isFullLocale:!1},Number.prototype.toFixed=function(t){return k._roundNumber(this,t)},k._roundNumber=function(t,e){var i=Math.pow(10,e||0),n=String(Math.round(t*i)/i);if(0<e)for(var s=-1==(s=n.indexOf("."))?(n+=".",0):n.length-(s+1);s<e;)n+="0",s++;return n}}(jQuery),function(){var i={};this.tmpl=function tmpl(t,e){t=/\W/.test(t)?new Function("obj","var p=[],print=function(){p.push.apply(
1p,arguments);};with(obj){p.push('"+t.replace(/[\r\t\n]/g," ").split("<%").join("\t").replace(/((^|%>)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,"',$1,'").split("\t").join("');").split("%>").join("p.push('").split("\r").join("\\'")+"');}return p.join('');"):i[t]=i[t]||tmpl(document.getElementById(t).innerHTML);return e?t(e):t}}(),function(n){n.baseClass=function(t){return(t=n(t)).get(0).className.match(/([^ ]+)/)[1]},n.fn.addDependClass=function(e,t){var i=t||"-";return this.each(function(){var t=n.baseClass(this);t&&n(this).addClass(t+i+e)})},n.fn.removeDependClass=function(e,t){var i=t||"-";return this.each(function(){var t=n.baseClass(this);t&&n(this).removeClass(t+i+e)})},n.fn.toggleDependClass=function(e,t){var i=t||"-";return this.each(function(){var t=n.baseClass(this);t&&(n(this).is("."+t+i+e)?n(this).removeClass(t+i+e):n(this).addClass(t+i+e))})}}(jQuery),function(c){function u(t){return void 0!==t&&(t instanceof Array||!(t instanceof Object)&&"[object Array]"==Object.prototype.toString.call(t)||"number"==typeof t.length&&"undefined"!=typeof t.splice&&"undefined"!=typeof t.propertyIsEnumerable&&!t.propertyIsEnumerable("splice"))}c.slider=function(t,e){var i=c(t);return i.data("jslider")||i.data("jslider",new n(t,e)),i.data("jslider")},c.fn.valueSlider=function(s,o){var r,a=arguments;function l(t){return t!==undefined}function h(t){return null!=t}return this.each(function(){var t,e=c.slider(this,s);if("string"==typeof s)switch(s){case"value":l(a[1])&&l(a[2])?(h((t=e.getPointers())[0])&&h(a[1])&&(t[0].set(a[1]),t[0].setIndexOver()),h(t[1])&&h(a[2])&&(t[1].set(a[2]),t[1].setIndexOver())):l(a[1])?h((t=e.getPointers())[0])&&h(a[1])&&(t[0].set(a[1]),t[0].setIndexOver()):r=e.getValue();break;case"prc":l(a[1])&&l(a[2])?(h((t=e.getPointers())[0])&&h(a[1])&&(t[0]._set(a[1]),t[0].setIndexOver()),h(t[1])&&h(a[2])&&(t[1]._set(a[2]),t[1].setIndexOver())):l(a[1])?h((t=e.getPointers())[0])&&h(a[1])&&(t[0]._set(a[1]),t[0].setIndexOver()):r=e.getPrcValue();break;case"calculatedValue":var i=e.getValue().split(";");r="";for(var n=0;n<i.length;n++)r+=(0<n?";":"")+e.nice(i[n]);break;case"skin":e.setSkin(a[1])}else s||o||(r=u(r)?r:[]).push(e)}),(r=u(r)&&1==r.length?r[0]:r)||this};var i={settings:{from:1,to:10,step:1,smooth:!0,limits:!0,round:0,format:{format:"#,##0.##"},value:"5;7",dimension:""},className:"jslider",selector:".jslider-",template:tmpl('<span class="<%=className%>"><table><tr><td><div class="<%=className%>-bg"><i class="l"></i><i class="f"></i><i class="r"></i><i class="v"></i></div><div class="<%=className%>-pointer"></div><div class="<%=className%>-pointer <%=className%>-pointer-to"></div><div class="<%=className%>-label"><span><%=settings.from%></span></div><div class="<%=className%>-label <%=className%>-label-to"><span><%=settings.to%></span><%=settings.dimension%></div><div class="<%=className%>-value"><span></span><%=settings.dimension%></div><div class="<%=className%>-value <%=className%>-value-to"><span></span><%=settings.dimension%></div><div class="<%=className%>-scale"><%=scale%></div></td></tr></table></span>')};function n(){return this.init.apply(this,arguments)}function s(){Draggable.apply(this,arguments)}n.prototype.init=function(t,e){this.settings=c.extend(!0,{},i.settings,e||{}),this.inputNode=c(t).hide(),this.settings.interval=this.settings.to-this.settings.from,this.settings.value=this.inputNode.attr("value"),this.settings.calculate&&c.isFunction(this.settings.calculate)&&(this.nice=this.settings.calculate),this.settings.onstatechange&&c.isFunction(this.settings.onstatechange)&&(this.onstatechange=this.settings.onstatechange),this.is={init:!1},this.o={},this.create()},n.prototype.onstatechange=function(){},n.prototype.create=function(){var t,n=this;this.domNode=c(i.template({className:i.className,settings:{from:this.nice(this.settings.from),to:this.nice(this.settings.to),dimension:this.settings.dimension},scale:this.generateScale()})),this.inputNode.after(this.domNode),this.drawScale(),this.settings.skin&&0<this.settings.skin.length&&this.setSkin(this.settings.skin),this.sizes={domWidth:this.domNode.width(),domOffset:this.domNode.offset()},c.extend(this.o,{pointers:{},labels:{0:{o:this.domNode.find(i.selector+"value").not(i.selector+"value-to")},1:{o:this.domNode.find(i.selector+"value").filter(i.selector+"value-to")}},limits:{0:this.domNode.find(i.selector+"label").not(i.selector+"label-to"),1:this.domNode.find(i.selector+"label").filter(i.selector+"label-to")}}),c.extend(this.o.labels[0],{value:this.o.labels[0].o.find("span")}),c.extend(this.o.labels[1],{value:this.o.labels[1].o.find("span")}),n.settings.value.split(";")[1]||(this.settings.single=!0,this.domNode.addDependClass("single")),n.settings.limits||this.domNode.addDependClass("limitless"),this.domNode.find(i.selector+"pointer").each(function(t){var e,i=n.settings.value.split(";")[t];i&&(n.o.pointers[t]=new s(this,t,n),i=(i=(i=(e=n.settings.value.split(";")[t-1])&&new Number(i)<new Number(e)?e:i)<n.settings.from?n.settings.from:i)>n.settings.to?n.settings.to:i,n.o.pointers[t].set(i,!0))}),this.o.value=this.domNode.find(".v"),this.is.init=!0,c.each(this.o.pointers,function(t){n.redraw(this)}),t=this,c(window).resize(function(){t.onresize()})},n.prototype.setSkin=function(t){this.skin_&&this.domNode.removeDependClass(this.skin_,"_"),this.domNode.addDependClass(this.skin_=t,"_")},n.prototype.setPointersIndex=function(t){c.each(this.getPointers(),function(t){this.index(t)})},n.prototype.getPointers=function(){return this.o.pointers},n.prototype.generateScale=function(){if(this.settings.scale&&0<this.settings.scale.length){for(var t="",e=this.settings.scale,i=Math.round(100/(e.length-1)*10)/10,n=0;n<e.length;n++)t+='<span style="left: '+n*i+'%">'+("|"!=e[n]?"<ins>
1"+e[n]+"</ins>":"")+"</span>";return t}return""},n.prototype.drawScale=function(){this.domNode.find(i.selector+"scale span ins").each(function(){c(this).css({marginLeft:-c(this).outerWidth()/2})})},n.prototype.onresize=function(){var e=this;this.sizes={domWidth:this.domNode.width(),domOffset:this.domNode.offset()},c.each(this.o.pointers,function(t){e.redraw(this)})},n.prototype.update=function(){this.onresize(),this.drawScale()},n.prototype.limits=function(t,e){this.settings.smooth||(i=100*this.settings.step/this.settings.interval,t=Math.round(t/i)*i);var i=this.o.pointers[1-e.uid];return i&&e.uid&&t<i.value.prc&&(t=i.value.prc),100<(t=(t=i&&!e.uid&&t>i.value.prc?i.value.prc:t)<0?0:t)&&(t=100),Math.round(10*t)/10},n.prototype.redraw=function(t){if(!this.is.init)return!1;this.setValue(),this.o.pointers[0]&&this.o.pointers[1]&&this.o.value.css({left:this.o.pointers[0].value.prc+"%",width:this.o.pointers[1].value.prc-this.o.pointers[0].value.prc+"%"}),this.o.labels[t.uid].value.html(this.nice(t.value.origin)),this.redrawLabels(t)},n.prototype.redrawLabels=function(t){function e(t,e,i){return e.margin=-e.label/2,(label_left=e.border+e.margin)<0&&(e.margin-=label_left),e.border+e.label/2>n.sizes.domWidth?(e.margin=0,e.right=!0):e.right=!1,t.o.css({left:i+"%",marginLeft:e.margin,right:"auto"}),e.right&&t.o.css({left:"auto",right:0}),e}var n=this,i=this.o.labels[t.uid],s=t.value.prc,o={label:i.o.outerWidth(),right:!1,border:s*this.sizes.domWidth/100};if(!this.settings.single){var r=this.o.pointers[1-t.uid],a=this.o.labels[r.uid];switch(t.uid){case 0:o.border+o.label/2>a.o.offset().left-this.sizes.domOffset.left?(a.o.css({visibility:"hidden"}),a.value.html(this.nice(r.value.origin)),i.o.css({visibility:"visible"}),s=(r.value.prc-s)/2+s,r.value.prc!=t.value.prc&&(i.value.html(this.nice(t.value.origin)+" – "+this.nice(r.value.origin)),o.label=i.o.outerWidth(),o.border=s*this.sizes.domWidth/100)):a.o.css({visibility:"visible"});break;case 1:o.border-o.label/2<a.o.offset().left-this.sizes.domOffset.left+a.o.outerWidth()?(a.o.css({visibility:"hidden"}),a.value.html(this.nice(r.value.origin)),i.o.css({visibility:"visible"}),s=(s-r.value.prc)/2+r.value.prc,r.value.prc!=t.value.prc&&(i.value.html(this.nice(r.value.origin)+" – "+this.nice(t.value.origin)),o.label=i.o.outerWidth(),o.border=s*this.sizes.domWidth/100)):a.o.css({visibility:"visible"})}}o=e(i,o,s),a&&(o={label:a.o.outerWidth(),right:!1,border:r.value.prc*this.sizes.domWidth/100},o=e(a,o,r.value.prc)),this.redrawLimits()},n.prototype.redrawLimits=function(){if(this.settings.limits){var t,e,i,n=[!0,!0];for(key in this.o.pointers)this.settings.single&&0!=key||(t=this.o.pointers[key],(e=(t=this.o.labels[t.uid]).o.offset().left-this.sizes.domOffset.left)<(i=this.o.limits[0]).outerWidth()&&(n[0]=!1),i=this.o.limits[1],e+t.o.outerWidth()>this.sizes.domWidth-i.outerWidth()&&(n[1]=!1));for(var s=0;s<n.length;s++)n[s]?this.o.limits[s].fadeIn("fast"):this.o.limits[s].fadeOut("fast")}},n.prototype.setValue=function(){var t=this.getValue();this.inputNode.attr("value",t),this.onstatechange.call(this,t)},n.prototype.getValue=function(){var e,i;return!!this.is.init&&(i="",c.each((e=this).o.pointers,function(t){this.value.prc==undefined||isNaN(this.value.prc)||(i+=(0<t?";":"")+e.prcToValue(this.value.prc))}),i)},n.prototype.getPrcValue=function(){var e;return!!this.is.init&&(e="",c.each(this.o.pointers,function(t){this.value.prc==undefined||isNaN(this.value.prc)||(e+=(0<t?";":"")+this.value.prc)}),e)},n.prototype.prcToValue=function(t){if(this.settings.heterogeneity&&0<this.settings.heterogeneity.length)for(var e,i=this.settings.heterogeneity,n=0,s=this.settings.from,o=0;o<=i.length;o++)(e=i[o]?i[o].split("/"):[100,this.settings.to])[0]=new Number(e[0]),e[1]=new Number(e[1]),n<=t&&t<=e[0]&&(r=s+(t-n)*(e[1]-s)/(e[0]-n)),n=e[0],s=e[1];else var r=this.settings.from+t*this.settings.interval/100;return this.round(r)},n.prototype.valueToPrc=function(t,e){if(this.settings.heterogeneity&&0<this.settings.heterogeneity.length)for(var i,n=this.settings.heterogeneity,s=0,o=this.settings.from,r=0;r<=n.length;r++)(i=n[r]?n[r].split("/"):[100,this.settings.to])[0]=new Number(i[0]),i[1]=new Number(i[1]),o<=t&&t<=i[1]&&(a=e.limits(s+(t-o)*(i[0]-s)/(i[1]-o))),s=i[0],o=i[1];else var a=e.limits(100*(t-this.settings.from)/this.settings.interval);return a},n.prototype.round=function(t){return t=Math.round(t/this.settings.step)*this.settings.step,t=this.settings.round?Math.round(t*Math.pow(10,this.settings.round))/Math.pow(10,this.settings.round):Math.round(t)},n.prototype.nice=function(t){return t=t.toString().replace(/,/gi,".").replace(/ /gi,""),c.formatNumber?c.formatNumber(new Number(t),this.settings.format||{}).replace(/-/gi,"−"):new Number(t)}
1,(s.prototype=new Draggable).oninit=function(t,e,i){this.uid=e,this.parent=i,this.value={},this.settings=this.parent.settings},s.prototype.onmousedown=function(t){this._parent={offset:this.parent.domNode.offset(),width:this.parent.domNode.width()},this.ptr.addDependClass("hover"),this.setIndexOver()},s.prototype.onmousemove=function(t,e){t=this._getPageCoords(t);this._set(this.calc(t.x))},s.prototype.onmouseup=function(t){this.parent.settings.callback&&c.isFunction(this.parent.settings.callback)&&this.parent.settings.callback.call(this.parent,this.parent.getValue()),this.ptr.removeDependClass("hover")},s.prototype.setIndexOver=function(){this.parent.setPointersIndex(1),this.index(2)},s.prototype.index=function(t){this.ptr.css({zIndex:t})},s.prototype.limits=function(t){return this.parent.limits(t,this)},s.prototype.calc=function(t){return this.limits(100*(t-this._parent.offset.left)/this._parent.width)},s.prototype.set=function(t,e){this.value.origin=this.parent.round(t),this._set(this.parent.valueToPrc(t,this),e)},s.prototype._set=function(t,e){e||(this.value.origin=this.parent.prcToValue(t)),this.value.prc=t,this.ptr.css({left:t+"%"}),this.parent.redraw(this)}}(jQuery); 2function MediaItem(e,t,i,a,o,n,c,r,s,d,l,u){this.Url=e,this.Thump=t,this.Text=i,this.Mime=a,this.Alternate=o,this.Width=n,this.Height=c,this.ThumbnailWidth=r,this.ThumbnailHeight=s,this.ProdMediaPopup=d,this.ProdMediaPopupWidth=l,this.ProdMediaPopupHeight=u,this.ProdMediaPopupScroll="no";e=screen.width,t=screen.height;e<l&&(this.ProdMediaPopupWidth=e-150,this.ProdMediaPopupScroll="yes"),t<u&&(this.ProdMediaPopupHeight=t-150,this.ProdMediaPopupScroll="yes")}function mediaViewer(){document.MediaViewers||(document.MediaViewers=[]),this.ID=document.MediaViewers.length,document.MediaViewers.push(this),this.MediaList=[],this.Width=0,this.Height=0,this.ThumbWidth=0,this.ThumbHeight=0,this.PictureProtection=!1,this.PictureProtectionMessage="",this.NavPrevText="",this.NavNextText="",this.Canvas="",this.Selector="",this.NumItemsInRow=-1,this.NavigationStyle="Thumbnail",this.Transition="",this.PopupEnabled=!0,this.MouseBehaviour="Change",this.AutoRotate=!1,this.RotateInterval=5e3,this.RotationID=-1,this.StartRotation=mediaViewerStartRotation,this.StopRotation=mediaViewerStopRotation,this.AddMedia=mediaViewerAddMedia,this.Select=mediaViewerSelect,this.Render=mediaViewerRender,this.Popup=mediaViewerPopup,this.PopupItem=mediaViewerPopupItem,this.Next=mediaViewerNext,this.Prev=mediaViewerPrev,this.MediaItemMouseOver=mediaViewerMediaItemMouseOver,this.MediaItemMouseOut=mediaViewerMediaItemMouseOut,this.MediaItemMouseDown=mediaViewerMediaItemMouseDown,this.MediaItemClick=mediaViewerMediaItemClick,this.MediaBarMouseOver=mediaViewerMediaBarMouseOver,this.MediaBarMouseOut=mediaViewerMediaBarMouseOut,this.SelectedIndex=-1}function mediaViewerAddMedia(e){this.MediaList.push(e),parseInt(e.Width)>this.Width&&(this.Width=parseInt(e.Width)),parseInt(e.Height)>this.Height&&(this.Height=parseInt(e.Height)),e.ThumbnailWidth>this.ThumbWidth&&(this.ThumbWidth=e.ThumbnailWidth),e.ThumbnailHeight>this.ThumbHeight&&(this.ThumbHeight=e.ThumbnailHeight)}function mediaViewerStartRotation(){this.RotationID=window.setInterval("document.MediaViewers["+this.ID+"].Next()",this.RotateInterval)}function mediaViewerStopRotation(){clearInterval(this.RotationID)}function mediaViewerSelect(e){var t,i,a=document.getElementById(this.Canvas);window.addEventListener?a.firstChild.style.position="relative":a.firstChild.style.position="absolute";try{a.firstChild.filters[0].Apply()}catch(o){}"stream"===this.MediaList[e].Mime?(a.firstChild.innerHTML='<iframe src="'+this.MediaList[e].Url+'" frameborder="0" allowfullscreen style="max-width: 100%" mozallowfullscreen webkitallowfullscreen width="'+this.MediaList[e].Width+'" height="'+this.MediaList[e].Height+'"></iframe>',$(".Element_Overlay_ProdInfo_SavingsImage_DIV").hide(),$(".Element_Overlay_ProdInfo_SavingsText_DIV").hide(),$(".Element_Overlay_ProdInfo_SpecialOfferImage_DIV").hide()):(a.firstChild.innerHTML='<img itemprop="image" alt="'+this.MediaList[e].Alternate+'" title="'+this.MediaList[e].Alternate+'" src="'+this.MediaList[e].Url+'" onclick="document.MediaViewers['+this.ID+'].Popup()" onmousedown="document.MediaViewers['+this.ID+'].MediaItemMouseDown(event)">',$(".Element_Overlay_ProdInfo_SavingsImage_DIV").show(),$(".Element_Overlay_ProdInfo_SavingsText_DIV").show(),$(".Element_Overlay_ProdInfo_SpecialOfferImage_DIV").show());try{a.firstChild.filters[0].Play()}catch(o){}switch(this.SelectedIndex=e,this.NavigationStyle){case"Thumbnail":case"Textlinks":for(t in this.MediaList)i=document.getElementById("Medias"+document.MediaViewers["+this.ID+"]+t),t==this.SelectedIndex?i.className="MediaLinkSelected_ProductInfo":i.className="MediaLink_ProductInfo";break;case"NavBar":document.getElementById("MediaViewLabel"+this.ID).innerHTML=this.MediaList[this.SelectedIndex].Text}}function mediaViewerPopup(){this.PopupItem(this.SelectedIndex)}function mediaViewerPopupItem(e){var t;!0===this.PopupEnabled&&(t="",this.PictureProtection&&(t=this.PictureProtectionMessage),t="/shop/ImagePopup.asp?Title="+encodeURIComponent(this.MediaList[e].Text)+"&Image="+this.MediaList[e].ProdMediaPopup+"&ProtectMessage="+t,window.PopupWindow=window.open(t,"PopupI"+this.ID+"P"+e,"displayWindow,width="+this.MediaList[e].ProdMediaPopupWidth+",height="+this.MediaList[e].ProdMediaPopupHeight+",scrollbars="+this.MediaList[e].ProdMediaPopupScroll+",status=no,resizable=yes"))}function mediaViewerMediaItemClick(e){switch(this.MouseBehaviour){case"Change":this.Select(e);break;case"Popup":this.PopupItem(e)}}function mediaViewerMediaItemMouseOver(e,t){switch(this.MouseBehaviour){case"Change":t&&(t.className="MediaLinkH
2over_ProductInfo"),e===this.SelectedIndex&&(t.className="MediaLinkSelected_ProductInfo");break;case"Popup":this.Select(e)}}function mediaViewerMediaItemMouseOut(e,t){t&&(t.className="MediaLink_ProductInfo"),e===this.SelectedIndex&&(t.className="MediaLinkSelected_ProductInfo")}function mediaViewerMediaBarMouseOver(e){e.className="MediaViewerSelectorNavBarLeft MediaLinkHover_ProductInfo",e.className="MediaViewerSelectorNavBarCenter MediaLinkHover_ProductInfo",e.className="MediaViewerSelectorNavBarRight MediaLinkHover_ProductInfo"}function mediaViewerMediaBarMouseOut(e){e.className="MediaViewerSelectorNavBarLeft MediaLink_ProductInfo",e.className="MediaViewerSelectorNavBarCenter MediaLink_ProductInfo",e.className="MediaViewerSelectorNavBarRight MediaLink_ProductInfo"}function mediaViewerMediaItemMouseDown(e){var t;if(!0===this.PictureProtection)return t=0,2!==(t="Netscape"===navigator.appName.substring(0,9)?e.which:t)&&3!==t||(alert(this.PictureProtectionMessage),!1)}function mediaViewerNext(){var e=this.SelectedIndex+1;e>this.MediaList.length-1&&(e=0),this.Select(e)}function mediaViewerPrev(){var e=this.SelectedIndex-1;e<0&&(e=this.MediaList.length-1),this.Select(e)}function mediaViewerRender(){var e,t=document.getElementById(this.Canvas),i=(t.style.width=this.Width,t.style.height=this.Height,t.OnClick=this.Popup,t.innerHTML='<div style="'+this.Transition+'"></div>',document.getElementById(this.Selector));switch(i.innerHTML="",this.NavigationStyle){case"Thumbnail":for(e in this.MediaList)e%this.NumItemsInRow==0&&0<e&&0<this.NumItemsInRow&&(i.innerHTML+="<br>"),i.innerHTML+='<img id="Medias'+document.MediaViewers["+this.ID+"]+e+'" class="MediaLink_ProductInfo" alt="'+this.MediaList[e].Alternate+'" src="'+this.MediaList[e].Thump+'" onclick="document.MediaViewers['+this.ID+"].MediaItemClick("+e+',this)" onmouseover="document.MediaViewers['+this.ID+"].MediaItemMouseOver("+e+',this)" onmouseout="document.MediaViewers['+this.ID+"].MediaItemMouseOut("+e+',this)">';break;case"Textlinks":for(e in this.MediaList)e%this.NumItemsInRow==0&&0<e&&0<this.NumItemsInRow&&(i.innerHTML+="<br>"),i.innerHTML+='<span id="Medias'+document.MediaViewers["+this.ID+"]+e+'" class="MediaLink_ProductInfo" onclick="document.MediaViewers['+this.ID+"].MediaItemClick("+e+',this)" OnMouseOver="document.MediaViewers['+this.ID+"].MediaItemMouseOver("+e+',this)" onmouseout="document.MediaViewers['+this.ID+"].MediaItemMouseOut("+e+',this)">'+this.MediaList[e].Text+"</span> ";break;case"NavBar":var a=void 0,o=void 0,n=void 0,a=-1<this.NavPrevText.indexOf(".gif")||-1<this.NavPrevText.indexOf(".jpg")?'<img src="'+this.NavPrevText+'" border="0">':this.NavPrevText,o=-1<this.NavNextText.indexOf(".gif")||-1<this.NavNextText.indexOf(".jpg")?'<img src="'+this.NavNextText+'" border="0">':this.NavNextText,n="";n=(n=(n=(n+='<TABLE CLASS="MediaViewerSelectorNavBar" WIDTH="100%" CELLSPACING="0" CELLPADDING="0" BORDER="0">')+" <TR>"+(' <TD CLASS="MediaViewerSelectorNavBarLeft MediaLink_ProductInfo" WIDTH="10" ALIGN="LEFT" OnClick="document.MediaViewers['+this.ID+'].Prev()" OnMouseOver="document.MediaViewers['+this.ID+'].MediaBarMouseOver(this)" OnMouseOut="document.MediaViewers['+this.ID+'].MediaBarMouseOut(this)">'+a+"</TD>"))+(' <TD CLASS="MediaViewerSelectorNavBarCenter MediaLink_ProductInfo" ALIGN="CENTER" OnMouseOver="document.MediaViewers['+this.ID+'].MediaBarMouseOver(this)" OnMouseOut="document.MediaViewers['+this.ID+'].MediaBarMouseOut(this)"><SPAN CLASS="MediaViewerSelectorNavBarText" ID="MediaViewLabel'+this.ID+'"></SPAN></TD>'))+(' <TD CLASS="MediaViewerSelectorNavBarRight MediaLink_ProductInfo" WIDTH="10" ALIGN="RIGHT" OnClick="document.MediaViewers['+this.ID+'].Next()" OnMouseOver="document.MediaViewers['+this.ID+'].MediaBarMouseOver(this)" OnMouseOut="document.MediaViewers['+this.ID+'].MediaBarMouseOut(this)">'+o+"</TD>"),i.innerHTML+=n=n+" </TR>"+"</TABLE>"}this.Select(0),this.AutoRotate&&this.StartRotation()}function ddPageCheckout(){toggleCustomerFields(),invoiceCountryChanged(),loadOrderSummary(!0),bindKeypress();var e=getServicepointServiceCheckbox(),t=(e&&e.checked&&($(e).triggerHandler("click"),$(e).prop("checked","checked")),attatchClickEventsToServicepoints(),$("input[name=servicepointselectedonload]").val());t&&$("input[name=pacsoftservicepoint]").each(function(){$(this).val()===t&&($(this).triggerHandler("click"),window.scrollTo(0,0))}),($("#checkout_use_alternative_delivery_address").prop("checked")?$("#checkout_customer_altdelivery_zipcode"):$("#checkout_customer_zipcode")).val()||e&&(e.checked=!1,e.disabled=!0),$(window).load(function(){var e=$
2('select[name="checkout_customer_country"]');0<e.length&&""==e.val()&&(e.addClass("checkout-field-validation-error"),alert(window.theCountryCanNotBeEmptyMessage))})}function getServicepointServiceCheckbox(){var e;return $("#shipping-methods input[type=checkbox]").each(function(){"PUPOPT"==this.alt&&(e=this)}),e}function processOrder(){var e,t;0===$("#checkout_pendingorderid").val().length?(e=$("#acceptTermsBit").is(":checked"),t=$("#acceptCustomerDataBit"),e?1!==t.length||t.is(":checked")?(e=$("input[name=checkout-shipping]:checked").val(),t=$("input[name=checkout-payment]:checked").val(),e!==undefined&&t!==undefined?($("#confirm-complete-button").prop("disabled",!0),validateOrder()):alert(window.selectBothShippingAndPaymethodsMessage)):alert(window.acceptCustomerDataMessage):alert(window.acceptTermsMessage)):($("#confirm-complete-button").prop("disabled",!0),resubmitPayment())}function validateOrder(){var e=resolveAjaxUrl()+"?action=validateorder";$.ajax({dataType:"json",type:"get",cache:!1,url:e,success:function(e){e.orderdatavalid?saveCustomerData():($("#confirm-complete-button").prop("disabled",!1),alert(e.errorMessage))}})}
2function saveCustomerData(){var e=$(".checkout-customerdata-text,.checkout-customerdata-confirm-text,.checkout-customerdata-select,.checkout-customerdata-checkbox,.checkout-customerdata-textarea,.checkout-customerdata-hidden,#checkout_use_alternative_delivery_address,#subscription-maillist-subscribe,#subscription-smsgateway-subscribe,.checkout_shippingmethodservices_checkbox,.checkout_shippingmethodservices_param,.checkout_shippingmethodservices_hidden"),t=resolveAjaxUrl()+"?action=savecustomer",o={};e.each(function(e,t){var i=$(t).attr("name"),a=$(t).val();i===undefined||$(t).is(":hidden")&&-1<i.indexOf("checkout_customer_altdelivery")||"checkbox"===t.type&&!$(t).prop("checked")||(o[i]=a)}),$.ajax({type:"post",cache:!1,url:t,data:o,success:function(e){e.customerSaved||e.redeemSucceeded?processPayment(!1):(handleCustomerValidationErrors(e.errors),$("#confirm-complete-button").prop("disabled",!1))}})}function processPayment(t){var e=t?(e=$(".checkout-payment-secondary-radio:checked").val(),resolveAjaxUrl()+urlEncodeParams("?action=getpaymentdetails&IsSecondaryPayMethod=1&PaymethodID="+e)):(e=$(".checkout-payment-radio:checked").val(),resolveAjaxUrl()+urlEncodeParams("?action=getpaymentdetails&PaymethodID="+e));$.ajax({url:e,"async":!1,cache:!1,success:function(e){18==e.payGatewayID&&!0===e.usePayGateway&&0<e.merchantNumber.length?checkoutWithOnPayWindow(e,t):(14==e.payGatewayID?checkoutWithGiftCertificate:checkoutWithPaymentRedirect)()}})}function checkoutWithPaymentRedirect(){var e=resolveAjaxUrl()+urlEncodeParams("?action=updateshippingservices");$.ajax({type:"post","async":!1,url:e,cache:!1,data:buildShippingMethodServicesPostValues(),success:function(){redirectToCheckoutUrl()}})}function redirectToCheckoutUrl(){var e=resolveAjaxUrl()+"?action=getcheckouturl";$.ajax({type:"get",url:e,"async":!1,cache:!1,success:function(e){document.location.href=e.checkouturl}})}function checkoutWithOnPayWindow(e,t){var i=resolveAjaxUrl()+urlEncodeParams("?action=updateshippingservices");$.ajax({type:"post",cache:!1,"async":!1,url:i,data:buildShippingMethodServicesPostValues(),success:function(){insertOrderAndProceedToOnPayWindow(e,t)}})}function checkoutWithGiftCertificate(){var e=resolveAjaxUrl()+urlEncodeParams("?action=validategiftcertificatecheckout");$.ajax({type:"post",cache:!1,"async":!1,url:e,data:buildShippingMethodServicesPostValues(),success:function(e){e.validRedeemAmount?0<parseFloat(e.remainingAmount.replace(",","."))?$("input[name=checkout-payment-secondary]:checked").val()===undefined?(e=resolveAjaxUrl()+"?action=getselectsecondarypaymentmessage",$.ajax({type:"get",url:e,"async":!1,cache:!1,success:function(e){alert(e),$("#confirm-complete-button").prop("disabled",!1),$("#shipping-methods :input").prop("disabled",!0),$("#payment-methods :input").prop("disabled",!0),$("#column-data :input").prop("disabled",!0),$("#payment-methods-sencondary").show(),$("#payment-giftcertificateinfo").hide(),showSecondaryPaymethods()}})):setSecondaryPaymethodSessions():checkoutWithPaymentRedirect():(alert(window.giftCertificateInvalidCheckoutMessage),$("#confirm-complete-button").prop("disabled",!1))}})}function insertOrderAndProceedToOnPayWindow(i,a){var e=resolveAjaxUrl()+"?action=insertOrder",o=resolveOnpayWindowUrl(i);$.ajax({type:"get",cache:!1,"async":!1,url:e,success:function(t){if(t.insertfailed)return 0<t.redirectUrl.length?void(location.href=t.redirectUrl):void alert(t.errorMessage);var e;0==t.AmountValid?location.href="/shop/frontpage.html?transactioncheckfailed=1":(e=resolveAjaxUrl()+urlEncodeParams("?action=getpaymentdetails&PaymethodID="+i.payMethodID),a&&(e+="&IsSecondaryPayMethod=1"),$.ajax({type:"get",cache:!1,"async":!1,url:e,success:function(e){postValuesToUrl(o,buildOnpayWindowFormParameters(e,t))}}))}})}function resubmitPayment(){var e=resolveAjaxUrl()+"?action=getpendingorderinfo";$.ajax({type:"get",cache:!1,"async":!1,url:e,success:function(e){1===e.orderDetails.amountValid?postValuesToUrl(resolveOnpayWindowUrl(e.paymethodDetails),buildOnpayWindowFormParameters(e.paymethodDetails,e.orderDetails)):document.location.href="checkout.html?resubmitpaymentfailed=1"}})}
2function buildShippingMethodServicesPostValues(){var e=$("input[name=checkout-shipping]:checked").val(),e=$(".Checkout_ShippingMethodServices_"+e+"_checkbox:checked"),p={};return $(e).each(function(){var e="ShippingMethodServiceID_"+this.name.replace("ShippingMethodServiceRowID_",""),t=$("#"+e).val(),i=$("#ShippingMethodServiceRowID_"+this.value).attr("id"),a=$("#"+i).val(),o=$("#ShippingMethodServiceParamCnt_"+this.value).attr("id"),n=$("#"+o).val(),c=$("#ShippingMethodServiceParamValue_"+this.value+"_1").attr("id"),r=$("#"+c).val(),s="ShippingMethodServiceParamCode_"+this.value+"_1",d=$("#"+s).val(),l="ShippingMethodServiceParamID_"+this.value+"_1",u=$("#"+l).val();p[i]=a,p[o]=n,p[e]=t,d!==undefined&&(p[s]=d),u!==undefined&&(p[l]=u),r!==undefined&&(p[c]=r),"PUPOPT"==this.alt&&(i=$("input[name=pacsoftservicepoint]:checked").val(),p.pacsoftservicepoint=i,p[i+"_id"]=$("input[name="+i+"_id]").val(),p[i+"_name"]=$("input[name="+i+"_name]").val(),p[i+"_streetname"]=$("input[name="+i+"_streetname]").val(),p[i+"_streetnumber"]=$("input[name="+i+"_streetnumber]").val(),p[i+"_postalcode"]=$("input[name="+i+"_postalcode]").val(),p[i+"_city"]=$("input[name="+i+"_city]").val(),p[i+"_country"]=$("input[name="+i+"_country]").val())}),p}function setSecondaryPaymethodSessions(){var e=$("input[name=checkout-payment-secondary]:checked").val(),t=$("input[name=checkout-payment]:checked").val(),e=resolveAjaxUrl()+urlEncodeParams("?action=setsecondarypaymethodsession&secondarypaymethodid="+e+"&paymethod="+t);$.ajax({type:"get",cache:!1,"async":!1,url:e,success:function(){processPayment(!0)}})}function showSecondaryPaymethods(){var e=($("#checkout_use_alternative_delivery_address").prop("checked")?$("#checkout_customer_altdelivery_country option:selected"):$("#checkout_customer_country option:selected")).val(),e=resolveAjaxUrl()+urlEncodeParams("?action=secondarypaymentmethods&country="+e);$.ajax({type:"post",cache:!1,"async":!1,url:e,data:buildShippingMethodServicesPostValues(),success:function(e){$("#payment-methods-sencondary").html(e),$("#payment-methods").hide()}})}function attatchClickEventsToServicepoints(){$("#pacsoftservicepoints input[type=radio]").each(function(){$(this).change(function(){updateShippingMethodServicesInBasket()})})}function updateShippingMethodServicesInBasket(){var e=resolveAjaxUrl()+urlEncodeParams("?action=updateshippingservices");$.ajax({"async":!1,cache:!1,type:"post",url:e,data:buildShippingMethodServicesPostValues(),success:function(){loadOrderSummary(!1)}})}function handleCustomerValidationErrors(e){$(".checkout-customerdata-text-validationmessage").hide(),$(".checkout-text").removeClass("checkout-field-validation-error"),$(".checkout_shippingmethodservices_param").removeClass("checkout-field-validation-error"),$(e).each(function(){var e;this.fieldName!==undefined&&(e=$("#"+this.fieldName+"_errormessage"),$("#"+this.fieldName).addClass("checkout-field-validation-error"),e.show(),e.html(this.errorMessage)),this.alert!==undefined&&alert(this.errorMessage)});e=$(".checkout-customerdata-text-validationmessage:visible");0<e.length&&$("html,body").animate({scrollTop:e.first().parent().offset().top},1e3)}function buildOnpayWindowFormParameters(e,t){var i={};return $(e.onpayFields).each(function(e,t){i[t.fieldName]=t.fieldValue}),i}function replaceAll(e,t,i){return e.split(t).join(i)}function postValuesToUrl(e,t){var i,a=['<form method="POST" action="',e,'">'];for(i in t){var o=replaceAll(t[i],'"',""");a.push('<input type="hidden" name="',i,'" value="',o,'"/>')}a.push("</form>"),jQuery(a.join("")).appendTo("body")[0].submit()}function resolveOnpayWindowUrl(e){return"https://onpay.io/window/v3/"}function applySalesdiscount(e){var e=$("#"+e).val(),e=encodeURI(e),t=getSelectedCountryId(),e=resolveAjaxUrl()+urlEncodeParams("?action=applysalesdiscount&DoSalesDiscountCheck=1&RefreshAllPrices=1&DiscountCode="+e);$.ajax({type:"get","async":!1,cache:!1,url:e,success:function(){loadOrderSummary(!1),loadShippingMethods(t)}})}function showForgottenPasswordDialog(){$("#checkout_forgottenpassword").show()}
2function forgottenPasswordSubmit(){var e=$("#checkout_forgottenpassword_email").val(),e=resolveAjaxUrl()+urlEncodeParams("?action=forgottenPasswordRequest&email="+e);$.ajax({dataType:"json","async":!1,cache:!1,type:"get",url:e,success:function(e){e.passwordsend&&$("#checkout_forgottenpassword").hide(),alert(e.message)}})}function bindKeypress(){$("#checkout_username,#checkout_password_login").keypress(function(e){13===e.which&&$("#customer_lookup_submit").click()})}function loadAlternativeDeliveryInfo(){var e=parseInt($("#customer_alternativedelivery_history option:selected").val());isNaN(e)||customerDeliveryInfoLookupOpc(e)}function checkPhoneLength(e,t){var i,a;"invoice"===e?(i=$("#checkout_lookupphone"),a=$("#checkout_lookupphone_submit")):"delivery"===e&&(i=$("#checkout_altdelivery_lookupphone"),a=$("#checkout_altdelivery_lookupphone_submit")),8<=i.val().length&&i.val().match(/^\d\d\d\d\d\d\d\d$/)?(a.removeAttr("disabled"),13===t.keyCode&&a.click()):a.prop("disabled",!0)}function customerDeliveryInfoLookupOpc(e){var i="",a="",o="",n="",c="",r="",s="",d="",l="",u="",p="",e=resolveAjaxUrl()+urlEncodeParams("?action=getdelivertoinfo&OrderID="+e),h=CreateXmlHttpObj();h.onreadystatechange=function(){if(4==h.readyState){var e=h.responseXML;try{i=e.getElementsByTagName("Address").item(0).childNodes.item(0).nodeValue}catch(t){}try{e.getElementsByTagName("Address2").item(0).childNodes.item(0).nodeValue}catch(t){}try{a=e.getElementsByTagName("Name").item(0).childNodes.item(0).nodeValue}catch(t){}try{o=e.getElementsByTagName("ZipCode").item(0).childNodes.item(0).nodeValue}catch(t){}try{n=e.getElementsByTagName("City").item(0).childNodes.item(0).nodeValue}catch(t){}try{c=e.getElementsByTagName("Phone").item(0).childNodes.item(0).nodeValue}catch(t){}try{r=e.getElementsByTagName("Company").item(0).childNodes.item(0).nodeValue}catch(t){}try{e.getElementsByTagName("CustomerType").item(0).childNodes.item(0).nodeValue}catch(t){}try{s=e.getElementsByTagName("EAN").item(0).childNodes.item(0).nodeValue}catch(t){}try{d=e.getElementsByTagName("CVR").item(0).childNodes.item(0).nodeValue}catch(t){}try{u=e.getElementsByTagName("Email").item(0).childNodes.item(0).nodeValue}catch(t){}try{l=e.getElementsByTagName("Fax").item(0).childNodes.item(0).nodeValue}catch(t){}try{p=e.getElementsByTagName("Country").item(0).childNodes.item(0).nodeValue}catch(t){}$("#checkout_customer_altdelivery_name").val(a),$("#checkout_customer_altdelivery_company").val(r),$("#checkout_customer_altdelivery_address").val(i),$("#checkout_customer_altdelivery_zipcode").val(o),$("#checkout_customer_altdelivery_city").val(n),$("#checkout_customer_altdelivery_phone").val(c),$("#checkout_customer_altdelivery_cvrnr").val(d),$("#checkout_customer_altdelivery_fax").val(l),$("#checkout_customer_altdelivery_ean").val(s),$("#checkout_customer_altdelivery_email").val(u),$("#checkout_customer_altdelivery_country").find("option").filter(function(){return $.trim($(this).text())==p}).prop("selected","selected"),deliveryCountryChanged(),h=e=null}},h.open("GET",e,!0),h.send(null)}function alternativeDeliverySelected(e){var t=0;toggleAlternativeDelivery(t=e.checked?1:t)}function toggleAlternativeDelivery(e){var t=getSelectedCountryId(),i=resolveAjaxUrl()+urlEncodeParams("?action=togglealternativedelivery&checked="+e),a=parseInt($("#customer_alternativedelivery_history option:selected").val()),o=!1;isNaN(a)||1!==e||(o=!0),$.ajax({type:"get","async":!1,cache:!1,url:i,success:function(){o?loadAlternativeDeliveryInfo():(loadShippingMethods(t),loadPaymentMethods(t),loadOrderSummary(!0))}})}function invoiceCountryChanged(){var e,t;$("#checkout_use_alternative_delivery_address").prop("checked")||(t=$("#checkout_customer_country option:selected").val(),parseInt(t)&&0<t&&((e=getServicepointServiceCheckbox())&&e.checked&&e.click(),loadShippingMethods(t),loadPaymentMethods(t),checkoutToggleStates("checkout_states","checkout_customer_country"),loadOrderSummary(!0),$("#checkout_customer_country").removeClass("checkout-field-validation-error")))}function deliveryCountryChanged(){var e,t=$("#checkout_customer_altdelivery_country option:selected").val();parseInt(t)&&0<t&&((e=getServicepointServiceCheckbox())&&e.checked&&e.click(),loadShippingMethods(t),loadPaymentMethods(t),checkoutToggleStates("checkout_alt_delivery_states","checkout_customer_altdelivery_country"),loadOrderSummary(!0))}function getSelectedCountryId(){var e=($("#checkout_use_alternative_delivery_address").prop("checked")?$("#checkout_customer_altdelivery_country option:selected"):$("#checkout_customer_country option:selected")).val();return e}
2function checkoutToggleStates(t,e){var e=$("#"+e).val();$("#"+t)&&(e=resolveAjaxUrl("AjaxWrapper.asp")+urlEncodeParams("?FC=getcountrydetails&countryID="+e),$.ajax({url:e,"async":!1,cache:!1,success:function(e){e.countryFound&&"US"==e.countryCode?$("#"+t).show():$("#"+t).hide()}}))}function resolveAjaxUrl(e){var t=$("#order-ajax-url").val();return t===undefined&&(t="/shop/"),e===undefined?t+="AjaxCheckOutWrapper.asp":t+=e,t}function urlEncodeParams(e){return e}function loadShippingMethods(t,i){void 0===i&&(i=!0);var e=resolveAjaxUrl()+urlEncodeParams("?action=shippingmethods&country="+t);$.ajax({url:e,"async":!1,cache:!1,success:function(e){$("#column-shipping-payment #shipping-methods").html(e),loadShippingServicesForSelectedShippingMethod(t,i)}})}function loadShippingServicesForSelectedShippingMethod(e,t){void 0===t&&(t=!0);var i,a=$("input[name=checkout-shipping]:checked").val();a!==undefined&&0!==(i=$("#checkout-shipping-gateway-"+a).val())&&(loadShippingServices(a,i,e,t),"1"===i)&&(setupParcelShopPickupPoints(a),setupParcelShopsPickupPointsMap($("input[name=checkout-shipping]:checked")))}function loadPaymentMethods(e){e=resolveAjaxUrl()+urlEncodeParams("?action=paymentmethods&country="+e);$.ajax({url:e,"async":!1,cache:!1,success:function(e){$("#column-shipping-payment #payment-methods").html(e),setupSelectedPaymethod(),"undefined"!=typeof vb&&vb.buildTags()}})}function setupSelectedPaymethod(){var e=$("input[name=checkout-payment]:checked").val();e!==undefined?(e=resolveAjaxUrl()+urlEncodeParams("?action=getpaymentdetails&PaymethodID="+e),$.ajax({url:e,"async":!1,cache:!1,success:function(e){(4==e.payGatewayID||12==e.payGatewayID||9==e.payGatewayID)&&!0===e.usePayGateway&&0<e.merchantNumber.length&&($("#order-creditcard").show(),9==e.payGatewayID)&&$("#checkout-payment-cardlogo-row").show(),14==e.payGatewayID&&$("#order-giftcertificate").show()}})):($("#order-giftcertificate").hide(),$("#checkout-payment-cardlogo-row").hide())}function cancelGiftCertificatePayment(){document.location.href=document.location.href}function getSelectedCustomerType(){var e=0;return $("#checkout_customertype").val()!==undefined&&(e=$("#checkout_customertype").val()),e=$("#checkout_use_alternative_delivery_address").prop("checked")&&$("#checkout_altdelivery_customertype").val()!==undefined?$("#checkout_altdelivery_customertype").val():e}function loadOrderSummary(e){var t=$("input[name=checkout-shipping]:checked").val(),i=$("input[name=checkout-payment]:checked").val(),a=0,o="",n="",c=$("input[name=checkout-payment-secondary]:checked").val(),c=(c!==undefined&&(i=c),$("#checkout_customertype").val()!==undefined&&(a=$("#checkout_customertype").val()),$("#checkout_customer_country option:selected").val()),t=($("#checkout_use_alternative_delivery_address").prop("checked")&&(n=$("#checkout_customer_altdelivery_country option:selected").val(),$("#checkout_altdelivery_customertype").val()!==undefined)&&(o=$("#checkout_altdelivery_customertype").val()),t===undefined&&(t=""),i===undefined&&(i=""),resolveAjaxUrl()+urlEncodeParams("?action=ordersummary&shippingmethod="+t+"&paymentmethod="+i+"&countryid="+c+"&customertype="+a+"&countryIdAltDelivery="+n+"&customerTypeAltdelivery="+o+"&RefreshAllPrices=1&DontShowBasketMarkup=1&UpdateBasket="+e));$.ajax({url:t,"async":!1,cache:!1,success:function(e){$("#column-order-summary #order-summary").html(e)}})}function loadShippingServices(t,e,i,a){void 0===a&&(a=!0),closeShippingServices(),r=($("#checkout_use_alternative_delivery_address").prop("checked")?(o=$("#checkout_customer_altdelivery_zipcode").val(),n=$("#checkout_customer_altdelivery_address").val(),c=$("#checkout_customer_altdelivery_address2").val(),$("#checkout_customer_altdelivery_city")):(o=$("#checkout_customer_zipcode").val(),n=$("#checkout_customer_address").val(),c=$("#checkout_customer_address2").val(),$("#checkout_customer_city"))).val();var o,n,c,r,s=$("#checkout_customer_email").val(),d=(0===o&&(o=""),getSelectedCustomerType()),e=resolveAjaxUrl()+urlEncodeParams("?action=shippingservices&shippingmethod="+t+"&shippingmethodgateway="+e+"&country="+i+"&zip="+o+"&address="+n+"&address2="+c+"&city="+r+"&email="+s+"&customerType="+d);a||(e+="&omitParcelDepotsInlineScript=1"),$.ajax({url:e,dataType:"html","async":!1,cache:!1,success:function(e){$("#shippingservices_"+t).html(e),$("#shippingservices_"+t).show(),$("#shippingservices_"+t).find("#Orderstep2_GLS_Table").html()!==undefined&&(e=$("input[name=GlsParselShopID"+t+"]:checked").val(),0<parseInt(e))&&glsParcelShopSelected(e)}})}
2function paymentSelected(e){e=resolveAjaxUrl()+urlEncodeParams("?action=paymentMethodChanged&id="+e);$.ajax({url:e,"async":!1,cache:!1,type:"get"})}function paymentChanged(radiobutton,loadShippingServices){void 0===loadShippingServices&&(loadShippingServices=!1),$("#order-creditcard").hide(),$("#order-giftcertificate").hide(),$("#checkout-payment-cardlogo-row").hide();var shippingMethod=$("input[name=checkout-shipping]:checked").val(),services=$(".Checkout_ShippingMethodServices_"+shippingMethod+"_checkbox:checked"),serviceParamterValues={},pacsoftServicePointId,pacsoftServicePointCheckbox,paymentId=($(services).each(function(){var e=$("#ShippingMethodServiceParamValue_"+this.value+"_1").attr("id"),t=$("#ShippingMethodServiceParamValue_"+this.value+"_1").val();serviceParamterValues[e]=t,"PUPOPT"==this.alt&&(pacsoftServicePointCheckbox=$(this),pacsoftServicePointId=$("input[name=pacsoftservicepoint]:checked").attr("id"))}),radiobutton.id.replace("checkout-payment-","")),url=resolveAjaxUrl()+urlEncodeParams("?action=getpaymentdetails&PaymethodID="+paymentId);$.ajax({url:url,"async":!1,cache:!1,success:function(data){var countryId;(4==data.payGatewayID||12==data.payGatewayID||9==data.payGatewayID)&&!0===data.usePayGateway&&0<data.merchantNumber.length&&($("#order-creditcard").show(),9==data.payGatewayID)&&$("#checkout-payment-cardlogo-row").show(),14==data.payGatewayID&&$("#order-giftcertificate").show(),countryId=($("#checkout_use_alternative_delivery_address").prop("checked")?$("#checkout_customer_altdelivery_country option:selected"):$("#checkout_customer_country option:selected")).val(),parseInt(countryId)&&0<countryId&&loadShippingMethods(countryId,loadShippingServices),loadOrderSummary(!0),$(services).each(function(index,element){var serviceparam1Id=$("#ShippingMethodServiceParamValue_"+element.value+"_1").attr("id");$("#"+serviceparam1Id).prop("checked",!0),$("#"+serviceparam1Id).val(eval("serviceParamterValues."+serviceparam1Id))}),pacsoftServicePointCheckbox&&(pacsoftServicePointCheckbox.triggerHandler("click"),pacsoftServicePointId)&&$("#"+pacsoftServicePointId).triggerHandler("click")}})}function secondaryPaymentChanged(e){e=e.id.replace("checkout-payment-secondary",""),e=resolveAjaxUrl()+urlEncodeParams("?action=getpaymentdetails&IsSecondaryPayMethod=1&PaymethodID="+e);$("#order-creditcard").hide(),$.ajax({url:e,"async":!1,cache:!1,success:function(e){(4==e.payGatewayID||12==e.payGatewayID||9==e.payGatewayID)&&!0===e.usePayGateway&&0<e.merchantNumber.length&&$("#order-creditcard").show(),loadOrderSummary(!0)}})}function redeemGiftCertificateOpc(t,e){var i,a=$("#checkout-giftcertificate-cardnumber").val(),e=(0===e&&(i="RedeemAndTransferGiftCertificate"),1==e&&(i="GetGiftCertificateBalance"),$(t).prop("disabled",!0),resolveAjaxUrl("ajaxwrapper.asp")+urlEncodeParams("?fc="+i+"&SaveRedeemAmountInSession=1&GiftCertificateCardNumber="+a));$.ajax({dataType:"json",type:"get",cache:!1,"async":!0,url:e,success:function(e){e.redeemSucceeded?($("#checkout-giftcertificate-customer-balance").html(e.balance),$("#checkout-giftcertificate-customer-balance-row").show(),alert(window.giftCertificateRedeemSuccessMessage)):alert(window.giftCertificateRedeemErrorMessage),$(t).prop("disabled",!1),loadOrderSummary(!0)}})}function shippingChanged(e){var t=resolveAjaxUrl()+urlEncodeParams("?action=shippingMethodChanged&id="+e);$.ajax({url:t,"async":!1,cache:!1,type:"get"}),updateShippingMethodServicesInBasket(),loadPaymentMethods(getSelectedCountryId()),setupParcelShopPickupPoints(e),setupParcelShopsPickupPointsMap($("input[name=checkout-shipping]:checked"))}function customerTypeChanged(){toggleCustomerFields(),setCustomerTypeSessions()}function closeShippingServices(){$('div[id^="shippingservices_"]').each(function(e,t){$(t).hide(),$(t).empty()})}function setCustomerTypeSessions(){var e="",t="",e=($("#checkout_customertype").val()!==undefined&&(e=$("#checkout_customertype").val()),$("#checkout_use_alternative_delivery_address").prop("checked")&&$("#checkout_altdelivery_customertype").val()!==undefined&&(t=$("#checkout_altdelivery_customertype").val()),resolveAjaxUrl(
2)+urlEncodeParams("?action=setcustomertype&customertype="+e+"&customertypedelivery="+t));$.ajax({url:e,"async":!1,cache:!1,type:"get",success:function(){var e=getSelectedCountryId();loadShippingMethods(e),loadPaymentMethods(e),loadOrderSummary(!0)}})}function remoteLookup(e){var t="",i="",t=("invoice"==e&&(t=$("#checkout_lookupphone").val()),"delivery"==e&&(i="altdelivery_",t=$("#checkout_altdelivery_lookupphone").val()),resolveAjaxUrl("kraklookup.asp")+urlEncodeParams("?phonenumber="+t+"&caller=checkout&addressType="+e));$("#checkout_"+i+"lookupphone_submit").prop("disabled","disabled"),$.ajax({type:"get",url:t,"async":!0,cache:!1,dataType:"xml",success:function(e){fillCustomerData(e,i),loadShippingMethods(getSelectedCountryId())}})}function fillCustomerData(e,t){var i,a,o,n,c,r,s,d,e=$(e),l=parseInt(e.find("CustomerNotFound").text());e.find("Adress").text(),i=e.find("Adress").text(),a=e.find("Adress2").text(),o=e.find("Name").text(),n=e.find("ZipCode").text(),c=e.find("City").text(),r=e.find("Phone").text(),s=e.find("Company").text(),e.find("CustomerType").text(),d=e.find("EAN").text(),e=e.find("CVR").text(),1!=l&&($("#checkout_customer_"+t+"address").val(i),$("#checkout_customer_"+t+"address2").val(a),$("#checkout_customer_"+t+"name").val(o),$("#checkout_customer_"+t+"zipcode").val(n),$("#checkout_customer_"+t+"city").val(c),$("#checkout_customer_"+t+"phone").val(r),$("#checkout_customer_"+t+"cvrnr").val(e),$("#checkout_customer_"+t+"ean").val(d),$("#checkout_customer_"+t+"company").val(s)),1==l?$("#customer-lookup-"+t+"notfound").show():$("#customer-lookup-"+t+"notfound").hide(),$("#checkout_"+t+"lookupphone_submit").prop("disabled","")}function loginCustomer(){var e,t=$("#customer-login #checkout_username").val(),i=$("#customer-login #checkout_password_login").val();""!==t&&""!==i&&(e=resolveAjaxUrl()+"?action=logincustomer",$.ajax({type:"post",method:"POST",url:e,cache:!1,"async":!1,dataType:"json",data:{email:t,password:i},success:function(e){e.success?location.reload():alert(e.message)}}))}function logoutCustomer(){var e=resolveAjaxUrl()+"?action=logoutcustomer";$.ajax({type:"get",cache:!1,"async":!1,url:e,success:function(){location.reload()}})}function hideFieldForCustomerType(e){e=$(e),e.hide(),e=$("#"+e.attr("for"));"text"===e.attr("type")&&e.val("")}function toggleFieldsForCustomerType(e,t){switch(e){case"0":$("#"+t+" label.showfield-public").each(function(){hideFieldForCustomerType(this)}),$("#"+t+" label.showfield-company").each(function(){hideFieldForCustomerType(this)}),$("#"+t+" label.showfield-company-public").each(function(){hideFieldForCustomerType(this)}),$("#"+t+" label.showfield-private").each(function(){$(this).show()}),$("#"+t+" label.showfield-company-private").each(function(){$(this).show()}),$("#"+t+" label.showfield-public-private").each(function(){$(this).show()});break;case"1":$("#"+t+" label.showfield-public").each(function(){hideFieldForCustomerType(this)}),$("#"+t+" label.showfield-private").each(function(){hideFieldForCustomerType(this)}),$("#"+t+" label.showfield-public-private").each(function(){hideFieldForCustomerType(this)}),$("#"+t+" label.showfield-company").each(function(){$(this).show()}),$("#"+t+" label.showfield-company-public").each(function(){$(this).show()}),$("#"+t+" label.showfield-company-private").each(function(){$(this).show()});break;case"2":$("#"+t+" label.showfield-company").each(function(){hideFieldForCustomerType(this)}),$("#"+t+" label.showfield-private").each(function(){hideFieldForCustomerType(this)}),$("#"+t+" label.showfield-company-private").each(function(){hideFieldForCustomerType(this)}),$("#"+t+" label.showfield-public").each(function(){$(this).show()}),$("#"+t+" label.showfield-company-public").each(function(){$(this).show()}),$("#"+t+" label.showfield-public-private").each(function(){$(this).show()})}}function toggleCustomerFields(){var e=$("#checkout_customertype option:selected").val(),t=$("#checkout_altdelivery_customertype option:selected").val();toggleFieldsForCustomerType(e,"customer-data"),toggleFieldsForCustomerType(t,"customer-alternative-delivery")}function shippingMethodServiceSelected(e,t,i,a,o){try{3==o&&"PUPOPT"==t&&(n=void 0,e.checked?(s=r=c="",s=($("#checkout_use_alternative_delivery_address").prop("checked")?(r=$("#checkout_customer_altdelivery_zipcode").val(),c=$("#checkout_customer_altdelivery_country option:selected").val(),$("#checkout_customer_altdelivery_address")):(r=$("#checkout_customer_zipcode").val(),c=$("#checkout_customer_country option:selected").val(),$("#checkout_customer_address"))).val(),r&&c?(n=resolveAjaxUrl(
2)+urlEncodeParams("?action=getpacsoftservicepoints&checkouttype=onepage&NumberOfServicePoints=10&PostalCode="+r+"&CountryId="+c+"&Address="+s),$.ajax({url:n,type:"GET",dataType:"html","async":!1,cache:!1,success:function(e){$("#pacsoftservicepointholder").html(e)}}),$("#pacsoftservicepointholder").css("display","block"),$("#"+a).attr("checked","checked"),attatchClickEventsToServicepoints()):e.checked=!1):(n=resolveAjaxUrl()+urlEncodeParams("?action=removepacsoftselectedsession"),$.ajax({url:n,type:"GET",dataType:"html","async":!1,cache:!1,success:function(){$("#pacsoftservicepointholder").css("display","none")}})));for(var n,c,r,s,d=document.getElementsByClassName("Checkout_ShippingMethodServices_"+i+"_checkbox","input"),l=void 0,l=d.length-1;0<=l;--l){var u=d[l];if(5==o)switch(e.alt){case"GLS_EXPRESS10":"GLS_EXPRESS12"===u.alt&&(u.disabled=e.checked,u.checked=!1);break;case"GLS_EXPRESS12":"GLS_EXPRESS10"===u.alt&&(u.disabled=e.checked,u.checked=!1)}if(3==o)switch(e.alt){case"NOTEMAIL":"NOTSMS"!==u.alt&&"NOTLTR"!==u.alt||(u.disabled=e.checked,u.checked=!1);break;case"NOTSMS":"NOTEMAIL"!==u.alt&&"NOTLTR"!==u.alt||(u.disabled=e.checked,u.checked=!1);break;case"NOTLTR":"NOTEMAIL"!==u.alt&&"NOTSMS"!==u.alt||(u.disabled=e.checked,u.checked=!1);break;case"DLV":"EXPRSAT"!==u.alt&&"DLVFLEX"!==u.alt||(u.disabled=!e.checked,e.checked)||(u.checked=!1),"PUPOPT"===u.alt&&(u.disabled=e.checked,e.checked)&&(u.checked=!1,$("#pacsoftservicepointholder").hide());break;case"PUPOPT":var p=0<$("input[type='checkbox'][alt='DLV']").length;"DLVFLEX"!==u.alt&&"DLV"!==u.alt||(e.checked?(u.checked=!1,u.disabled=!0):"DLV"!==u.alt&&p||(u.disabled=!1))}}var h=document.getElementsByClassName("Checkout_ShippingMethodServices_"+a+"_params_TR","tr");for(l=h.length-1;0<=l;--l){var m=h[l];e.checked?m.style.display="":m.style.display="none"}updateShippingMethodServicesInBasket()}catch(v){}}function validateEmail(e){return/^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@(\w|[^\u0000-\u0080])+((-{1,2}|\.)(\w|[^\u0000-\u0080])+)*\.([a-zA-Z]{2,4}|museum)$/.test(e)}function getCityByZipCode(e,t,i){try{var a,o=$("#"+i).val(),n=e.value,c=0;"checkout_customer_altdelivery_zipcode"===e.id&&(c=1),(4<=n.length||0===n.length)&&(a=resolveAjaxUrl("ajaxwrapper.asp")+urlEncodeParams("?fc=GetCity&ZipCode="+n+"&CountryID="+o+"&IsAltDeliveryValue="+c),$.ajax({url:a,"async":!0,cache:!1,dataType:"text",success:function(e){""!==e&&$("#"+t).val(e);e=$(".checkout-payment-radio:checked");1===e.length?paymentChanged(document.getElementById(e.attr("id")),!0):loadShippingMethods(getSelectedCountryId())}}))}catch(r){}}function setShippingMethodServiceSession(e,t,i){3==i&&"PUPOPT"==t&&1===(i=$(e).find('input[type="checkbox"]')).length&&(t=resolveAjaxUrl()+urlEncodeParams("?action=setpacsoftmanualstatus"),$.ajax({url:t,type:"GET",dataType:"html","async":!1,cache:!1,data:{status:i.is(":checked")?0:1}}))}function resetFieldValue(e){try{var t=e.childNodes[1].childNodes[0];null!==t&&"text"===t.type&&(t.value="")}catch(i){}}function ToggleFields(){var e,t=parseInt(document.Orderstep1Form.TotalFieldCnt.value),i=parseInt(document.Orderstep1Form.TotalFieldCntl.value),a="",o="",n="",c="",r="",s="",d="",l="",u="";if(0<t){for(var p=0;p<=t;p++){switch(document.Orderstep1Form.CustTypeID.value){case"0":a="Field"+p+"_1",r="Field"+p+"_2",s="Field"+p+"_3",d="Field"+p+"_4",n="Field"+p+"_5",c="Field"+p+"_6";break;case"1":a="Field"+p+"_2",s="Field"+p+"_3",r="Field"+p+"_1",o="Field"+p+"_4",n="Field"+p+"_5",u="Field"+p+"_6";break;case"2":a="Field"+p+"_3",r="Field"+p+"_1",s="Field"+p+"_2",o="Field"+p+"_4",l="Field"+p+"_5",c="Field"+p+"_6"}(e=document.getElementById(a))&&"none"==e.style.display&&(e.style.display=""),(e=document.getElementById(o))&&"none"==e.style.display&&(e.style.display=""),(e=document.getElementById(n))&&"none"==e.style.display&&(e.style.display=""),(e=document.getElementById(c))&&"none"==e.style.display&&(e.style.display=""),(e=document.getElementById(r))&&""===e.style.display&&(resetFieldValue(e),e.style.display="none"),(e=document.getElementById(s))&&""===e.style.display&&(resetFieldValue(e),e.style.display="none"),(e=document.getElementById(d))&&""===e.style.display&&(resetFieldValue(e),e.style.display="none"),(e=document.getElementById(l))&&""===e.style.display&&(resetFieldValue(e),e.style.display="none"),(e=document.getElementById(u))&&""===e.style.display&&(resetFieldValue(e),e.style.display="none")}for(var h=0;h<=i;h++)try{switch(document.Orderstep1Form.lCustTypeID.value){case"0":a="FieldD"+h+"_1",r="FieldD"+h+"_2",s="FieldD"+h+"_3",d="FieldD"+h+"_4",n="FieldD"+h+"_5",c="FieldD"+h+"_6";break;case"1":a="FieldD"+h+"_2",s="FieldD"+h+"_3",r="FieldD"+h+"_1",o="FieldD"+h+"_4",n="FieldD"+h+"_5",u="FieldD"+h+"_6";break;case"2":a="FieldD"+h+"_3",r="FieldD"+h+"_1",s="FieldD"+h+"_2",o="FieldD"+h+"_4",l="FieldD"+h+"_5",c="FieldD"+h+"_6"}(e=document.getElementById(a))&&"none"==e.style.display&&(e.style.display=""),(e=document.getElementById(o))&&"none"==e.style.display&&(e.style.display=""),(e=document.getElementById(n))&&"none"==e.style.display&&(e.style.display=""),(e=document.getElementById(c))&&"none"==e.style.display&&(e.style.display=""),(e=document.getElementById(r))&&""===e.style.display&&(resetFieldValue(e),e.style.display="none"),(e=document.getElementById(s))&&""===e.style.display&&(resetFieldValue(e),e.style.display="none"),(e=document.getElementById(d))&&""===e.style.display&&(resetFieldValue(e),e.style.display="none"),(e=document.getElementById(l))&&""===e.style.display&&(resetFieldValue(e),e.style.display="none"),(e=document.getElementById(u))&&""===e.style.display&&(resetFieldValue(e),e.style.display="none")}catch(m){}}}function ToggleAltDeliveryAdress(){try{var e=document.getElementById("Orderstep1_AlternativeDelivery_CustomerLookUp_TD"),t=document.getElementById("Orderstep1_DelivertoHistory_SELECT"),i=document.getElementById("Orderstep1_AlternativeDelivery_Enabled_CHECKBOX"),a=document.getElementById("Orderstep1_AlternativeDelivery_Fields_TD"),o=document.getElementById("Orderstep1_AlternativeDelivery_Heading_TD"),n=document.getElementById("Orderstep1_AlternativeDelivery_Fields_TR"),c=document.getElementById("Orderstep1_DelivertoHistory_TABLE");i.checked?(null!==n&&(n.style.display=""),a.style.visibility="",o.style.visibility="",null!==e&&(e.style.visibility=""),null!==t&&(t.style.display="",LoadDeliveryInfo(t)),null!==c&&(c.style.display="")):(null!==n&&(n.style.display="none"),a.style.visibility="hidden",o.style.visibility="hidden",null!==e&&(e.style.visibility="hidden"),null!==t&&(t.style.display="none"),null!==c&&(c.style.display="none"))}catch(r){}}function LoadDeliveryInfo(e){try{CustomerDeliveryInfoLookup(e.options[e.selectedIndex].value),setTimeout("ToggleFields()",300)}catch(t){}}function pollGiftCertificatesDownloadLinks(e,t){var i,a;
20===$("#giftcertificates-download-links-container").html().length&&(i=0,a=window.setInterval(function(){$.ajax({type:"get",cache:!1,url:"/shop/ajaxwrapper.asp?fc=getgiftcertificateDownloadLinks&orderid="+e+"&token="+encodeURIComponent(t),success:function(e){50<++i&&window.clearInterval(a),0<e.length&&(window.clearInterval(a),$("#giftcertificates-download-links-container").html(e))}})},500))}var gProducts=null,gCombinationsByProduct=new Array([]),avCombinations=avCombinations,avGroups=avGroups,avImages=avImages,SelectVarTxt=SelectVarTxt,ReqVariantSelect=ReqVariantSelect,SelectVarMsg=SelectVarMsg,avNumVariants=avNumVariants,svNumVariants=svNumVariants,canBuy=canBuy;function avCombinationCache(e,t){this.Product=e,this.Value=t}function avGroup(e){this.Name=e,this.Values=new Array([]),this.Previous=""}function avCombination(e,t,i){this.Product=e,this.Name=t,this.Value=i}function avInitialize(){avGetProducts(),avUpdateCombo(0)}function avGetParams(e){for(var t=Array(),i=0;i<e;i++){var a=$("#avCombo"+i);a.is("select")&&(t[i]=document.getElementById("avCombo"+i).value),a.is("div")&&(t[i]=a.find("input[type=radio]:checked").val())}return t}function avHasCombination(e,t){for(var i=0;i<avCombinations.length;i++)if(avCombinations[i].Name==e&&avCombinations[i].Value==t)return!0;return!1}function avUpdateOptions(e){var t,i=[],a=Array();if(0===e)for(t=0;t<avGroups[e].Values.length;t++)avHasCombination(avGroups[e].Name,avGroups[e].Values[t])&&i.push(avGroups[e].Values[t]);else{for(t=0;t<e;t++){var o=$("#avCombo"+t);o.is("select")&&(a[t]=document.getElementById("avCombo"+t).value),o.is("div")&&(a[t]=o.find("input[type=radio]:checked").val())}for(var n=0;n<avGroups[e].Values.length;n++){var c=avGroups[e].Values[n];a.push(c),0<avGetMatches(a,!0).length&&i.push(c),a.pop()}}return i}function avGetProducts(){if(null===gProducts){for(var e=Array(),t=0;t<avCombinations.length;t++){for(var i=!1,a=0;a<e.length;a++)if(e[a]==avCombinations[t].Product){i=!0;break}i||(e[e.length]=avCombinations[t].Product)}gProducts=e}return gProducts}function avGetCombinationsByProductFromCache(e){for(var t,i=0;i<gCombinationsByProduct.length;i++)if(gCombinationsByProduct[i].Product==e)return null===(t=gCombinationsByProduct[i])?null:t.Value;return null}function avGetCombinations(e){var t=avGetCombinationsByProductFromCache(e);if(null!==t)return t;for(var i=Array(),a=0;a<avCombinations.length;a++)avCombinations[a].Product==e&&(i[i.length]=avCombinations[a]);return gCombinationsByProduct[gCombinationsByProduct.length]=new avCombinationCache(e,i),i}function avIsMatch(e,t){for(var i=!0,a=avGetCombinations(e),o=0;o<t.length;o++){for(var n=avGroups[o].Name,c=t[o],r=!1,s=0;s<a.length;s++)a[s].Name==n&&a[s].Value==c&&(r=!0);if(!1===r){i=!1;break}}return i}function avGetMatches(e,t){for(var i=Array(),a=avGetProducts(),o=0;o<a.length;o++)if(avIsMatch(a[o],e)&&(i[i.length]=a[o],t))return i;return i}function avUpdateCombo(e){avClearCombo(e);var t=$("#avCombo"+e);if(t.is("select")){for(var i=avUpdateOptions(e),a=0;a<i.length;a++)avInsertComboValue(e,i[a]);1<document.getElementById("avCombo"+e).options.length&&(document.getElementById("avCombo"+e).disabled=!1);for(var o=e+1;o<avGroups.length;o++)avClearCombo(o)}if(t.is("div")){for(i=avUpdateOptions(e),a=0;a<i.length;a++)avInsertComboValue(e,i[a]);for(o=e+1;o<avGroups.length;o++)avClearCombo(o)}}function avInsertComboValue(e,i){var a,t,o,n,c,r,s,d=$("#avCombo"+e);d.is("select")&&$(d).append($("<option>",{value:i,text:i})),d.is("div")&&($(avGroups[e].Values).each(function(e,t){t===i&&(a=e)}),i=i.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),t=d.find("input[type=radio]").length,o=avImages[e].Values[a],n='<img class="advanced-variant-image" title="'+i+'" src="'+o+'"/>',c='<div class="advanced-variant-image-text">'+i+"</div>",r="",s="advanced-variant-radiobutton",0<o.length?(r=n+c,s+=" advanced-variant-radiobutton-with-image"):r=i,$('<div class="advanced-variant-item-container"><label for="variant-rb-selector-'+e+"-"+t+'">'+r+"</label>"+('<input type="radio" class="'+s+'" id="variant-rb-selector-'+e+"-"+t+'" name="variant-rb-selector-'+e+'" value="'+i+'" onclick="avComboSelected('+e+',this)" />')+"<div>").appendTo(d))}function avComboSelected(e,t){null!=t&&t!=undefined&&setAdvancedVariantActiveClass($(t).prop("id")),e<avGroups.length-1&&avUpdateCombo(e+1),e==avGroups.length-1&&""!=(t=avGetMatches(avGetParams(e+1),!1))&&avRedirect(t),UpdateBuyControl
2s()}function setAdvancedVariantActiveClass(e){var e=$("label[for='"+e+"']"),t=e.closest(".RadioButton_Container_ProductInfo"),i=e.closest(".advanced-variant-item-container");t.find(".advanced-variant-item-container").removeClass("advanced-variant-image-active",0,function(){i.addClass("advanced-variant-image-active")})}function avSelect(e){for(var t=avGetCombinations(e),i=0;i<avGroups.length;i++)for(var a,o,n=0;n<t.length;n++)t[n].Name==avGroups[i].Name&&((a=$("#avCombo"+i)).is("select")&&(document.getElementById("avCombo"+i).value=t[n].Value),a.is("div")&&(o=(o=t[n].Value).replace(/'/g,"\\'"),o=a.find(":radio[value='"+o+"']"),$(o).prop("checked",!0),setAdvancedVariantActiveClass(o.prop("id"))),avComboSelected(i,null))}function avClearCombo(e){var t,i=$("#avCombo"+e);i.is("select")&&((t=document.getElementById("avCombo"+e)).options.length=0,avInsertComboValue(e,SelectVarTxt),t.disabled=!0),i.is("div")&&i.html("")}function avRedirect(e){var t;window.ProductNumber!=e&&(t=Math.round($(document).scrollTop()),e=encodeURIComponent(e),document.getElementById("BUYSECTION").style.visibility="hidden",e="/shop/JumpPage.asp?action=ProductRedirect&Productnumber="+e+"&LangID="+window.LanguageID+"&VerticalScrollPosition="+t,document.location.href=e)}function simpleVariantSelected(e){var t=e.closest(".simple-variant-group-container"),i=e.closest(".simple-variant-item-container");$(t).find(".simple-variant-item-container").removeClass("simple-variant-image-active",0,function(){$(i).addClass("simple-variant-image-active")}),UpdateBuyControls()}function UpdateBuyControls(){var i=!0;if("true"==ReqVariantSelect){for(var e=0;e<avNumVariants;e++){var t=$("#avCombo"+e);!t.is("select")||""!==t.val()&&t.val()!=SelectVarTxt||(i=!1),!t.is("div")||(o=t.find("input[type=radio]:checked").val())!=undefined&&""!==o||(i=!1)}for(var a=avNumVariants+1;a<avNumVariants+svNumVariants+1;a++){var o,n=$("#variant"+a);if(n.is("select")||n.is("input[type=text]")){if(n.is("input[type=text]"))if(!0!==$(n).data("required"))continue;""!==n.val()&&n.val()!==SelectVarTxt||(i=!1)}!n.is("div")||(o=n.find("input[type=radio]:checked").val())!=undefined&&""!==o||(i=!1)}$(".bundleProductVariantOptionSelect").each(function(e,t){t=$(t);""!==t.val()&&t.val()!=SelectVarTxt||(i=!1)}),$(".bundleProductVariantInputSelect").each(function(e,t){t=$(t);!0!==$(t).data("required")||""!==t.val()&&t.val()!==SelectVarTxt||(i=!1)})}if(window.loaded)if(i){document.getElementById("BUYSECTION").disabled=!1;try{document.myform.amount.disabled=!1}catch(c){}canBuy=!0}else{document.getElementById("BUYSECTION").disabled=!0;try{document.myform.amount.disabled=!0}catch(c){}canBuy=!1}}function simpleVariantsValidate(minValue,maxValue,defaultValue,regExStr,validateFailText,field,productIdentity){try{var validFieldEntry=!0,regEx;minValue=parseInt(minValue),maxValue=parseInt(maxValue),field.value>maxValue&&0!=maxValue&&"NaN"!=maxValue&&(validFieldEntry=!1),field.value<minValue&&0!=minValue&&"NaN"!=minValue&&(validFieldEntry=!1),""!=regExStr&&(regEx=new RegExp(eval(regExStr)),null==field.value.match(regEx))&&(validFieldEntry=!1),1==validFieldEntry?null==productIdentity?(FormulaCalc(),UpdateBuyControls()):updateBuyControlsMulti(productIdentity):(field.value=defaultValue,field.blur(),""!==validateFailText&&alert(validateFailText))}catch(e){alert(e)}}function getProductInfoVariantString(){for(var e=document.myform.elements,t="",i=0;i<e.length;i++){var a=e[i];"hidden"===a.type&&-1!==a.name.indexOf("Variantgroup")&&(t=t+a.value+":"),"text"===a.type&&-1!==a.name.indexOf("variant")&&(t=t+a.value+"_"),"select-one"===a.type&&-1!==a.name.indexOf("variant")&&(t=t+e[i][e[i].selectedIndex].value+"_")}return t}function FormulaCalc(){var t=$("#FormulaPrice_ProductInfo_SPAN");if(0!==t.length)try{document.myform.elements;var e,i,a=getProductInfoVariantString(),o=$("#amount");0<(o=0===o.length?$("#AMOUNT"):o).length?(e=$(o).val(),i="/shop/AjaxWrapper.asp?FC=GetProdPriceAndWeight&ProdNumber="+encodeURIComponent(window.ProductNumber)+"&VariantsStr="+encodeURIComponent(a)+"&Amount="+e+"&Caller=VariantPriceCalculator",$.ajax({type:"get",cac
2he:!1,url:i,success:function(e){$(".weight-container-product-info").html(e.weight),$(".weight-format-container-product-info").html(e.weightFormat),t.html(e.price)}})):t.html("")}catch(n){}}function registerNamespace(e){for(var t=e.split("."),i=window,a=0,o=t.length;a<o;a++)"undefined"==typeof i[t[a]]&&(i[t[a]]=new Object({})),i=i[t[a]]}registerNamespace("Dandomain.Shop.Admin.Ui"),Dandomain.Shop.Admin.Ui.markShopAsDemo=function(){$(document).ready(function(){function e(){$(document.body).find("#__demo").remove(),$(document.body).append("<div id='__demo' style='display:block;top:0px;width:100%;height:20px;padding:5px;background-color:yellow;position:absolute;'>DanDomain Webshop <b>DEMO</b></div>")}e(),setInterval(function(){e()},100*(Math.floor(11*Math.random())+5))})},$.choosenShipment={},$.googleMapsApiLoaded=!1,$.markers={},$.currentActiveShippingId={},$.currentCheckedShipping={};var labels="ABCDEFGHIJKLMNOPQRSTUVWXYZ";function checkoutPageIsOnePageCheckout(){return!!$("body").hasClass("webshop-checkout")}function shippingMethodChangedMpc(e){$.currentCheckedShipping=e,setupParcelShopPickupPoints($(e).val()),setupParcelShopsPickupPointsMap($(e))}function setupParcelShopsForDefaultShippingMethodMpc(e){$.currentCheckedShipping=e,setupParcelShopPickupPoints($(e).val()),setupParcelShopsPickupPointsMap($(e))}function setupParcelShopPickupPoints(e){$.currentActiveShippingId=e,$(".delivery-pickup-gls-showinfo").off("click").on("click",function(){$(this).parent().parent().find(".delivery-pickup-delivery-openinghours").slideToggle(200)}),$(".delivery-pickup-gls-showinfo").on("click",function(e){e.stopPropagation()}),$(".delivery-pickup-gls-item").on("click",function(){var e,t,i;1===$(".dialog-gls").length&&(0<$(".shipment-selected-item").length&&(t=(i=$(".shipment-selected-item")).data("id"),(t=$.markers[t]).setIcon("/shop/frontend/public/images/pin-red.png"),t.setZIndex(1),i.data("shipping-selected","")),t=(e=$(this)).data("id"),(i=$.markers[t]).setIcon("/shop/frontend/public/images/pin-green.png"),i.setZIndex(1e3),e.data("shipping-selected","selected"),e.parent().find(".shipment-selected-item").removeClass("shipment-selected-item"),e.addClass("shipment-selected-item"),e.closest(".delivery-pickup-dialog-placeholder").addClass("delivery-pickup-parcelshops-selected"),e.closest(".ddrd-row").find(".delivery-pickup-parcelshops-delivery-action--container .delivery-pickup-fake-button").off("click"),e.closest(".ddrd-row").find(".delivery-pickup-parcelshops-delivery-action--container .delivery-pickup-fake-button").removeClass("invalid").on("click",function(){$(".delivery-pickup-dialog-placeholder").trigger("click"),$(".OrderStep2_GLS_RadioBtn").prop("checked","false"),e.find(".OrderStep2_GLS_RadioBtn").prop("checked","true"),(checkoutPageIsOnePageCheckout()?(glsParcelShopSelected(e.find(".OrderStep2_GLS_RadioBtn").val()),$(".shipping-parcel-shop--item")):e.parent().find(".shipping-parcel-shop--item")).removeClass("selected-postal"),e.closest(".shipping-parcel-shop--item").addClass("selected-postal")}))})}function getOnePageCheckoutShippingServicesContainer(e){e=$(e).val();return $("#shippingservices_"+e)}function setupParcelShopsPickupPointsMap(e){var t;doChooseShipping(e),$(".delivery-pickup-change-delvery").off("click"),checkoutPageIsOnePageCheckout()?0<(t=getOnePageCheckoutShippingServicesContainer(e)).length&&$(t.find(".delivery-pickup-change-delvery").on("click",function(){chooseShipment(e,"GLS")})):0<(t=$(e).parent().parent().next(".GLS_ParselShops_TR")).length&&t.find(".delivery-pickup-change-delvery").on("click",function(){chooseShipment(e,"GLS")})}function doChooseShipping(e){$(".delivery-pickup-shipping--item").removeClass("delivery-pickup-checked-shipping"),$(e).addClass("delivery-pickup-checked-shipping"),$(e).find("input[type=radio]").prop("checked",!0),$(".delivery-pickup-shipping-details--item").hide(),$(e).parent().find(".delivery-pickup-shipping-details--item").show()}function chooseShipment(e,t){var i;"GLS"===t&&(i=$(e).parent().parent().next("tr").find(".parcelshops-maps-dialog"),0<(e=getOnePageCheckoutShippingServicesContainer(e)).length&&(i=$(e).find(".parcelshops-maps-dialog")),$(i).addClass("delivery-pickup-dialog-placeholder"),$("body").addClass("dialog-toggled dialog-gls"),chooseShipmentEvent(t))}function chooseShipmentEvent(e){$.choosenShipment=e,!0===$.googleMapsApiLoaded?initMap():($.getScript("https://maps.googleapis.com/ma
2ps/api/js?key=AIzaSyDPifwa9k4Z-46bDJNVnhS0KykXMfvPk7Q&callback=initMap"),$.googleMapsApiLoaded=!0),$(".delivery-pickup-dialog-placeholder").on("click",function(){"GLS"===e&&($("body").removeClass("dialog-gls"),$(".delivery-pickup-delivery-openinghours").hide()),$("body").removeClass("dialog-toggled"),$(".delivery-pickup-dialog-placeholder:not(.delivery-pickup-basket-placeholder)").removeClass("delivery-pickup-dialog-placeholder")}),$(".delivery-pickup-dialog-content, .delivery-pickup-gls-showinfo").on("click",function(e){e.stopPropagation()})}function addMarker(e,t,i,a,o){var n=i+1,c="X",r=(labels.length>i&&(c=labels[i]),new google.maps.Marker({id:n,position:e,label:{text:c,color:"white"},title:a,icon:"/shop/frontend/public/images/pin-red.png",map:t}));r.setZIndex(n),r.addListener("click",function(){o.trigger("click")}),r.addListener("mouseover",function(){window.mytimeout=setTimeout(function(){"GLS"===$.choosenShipment&&$(".delivery-pickup-parcelshops-delivery--container.gls--scroll").scrollTo(o)},500),"selected"!==o.data("shipping-selected")&&(r.setZIndex(75),r.setIcon("/shop/frontend/public/images/pin-blue.png")),o.addClass("google-map--mouseover")}),r.addListener("mouseout",function(){"selected"!==o.data("shipping-selected")&&(r.setIcon("/shop/frontend/public/images/pin-red.png"),r.setZIndex(n),clearTimeout(window.mytimeout)),o.removeClass("google-map--mouseover")}),$.markers[n]=r}function markerHover(){$(".shipping-parcel-shop--item").off("mouseenter"),$(".shipping-parcel-shop--item").off("mouseleave"),$(".shipping-parcel-shop--item").on("mouseenter",function(){var e=$
2(this).data("id");"selected"!==$(this).data("shipping-selected")&&((e=$.markers[e]).setZIndex(75),e.setIcon("/shop/frontend/public/images/pin-blue.png"))}),$(".shipping-parcel-shop--item").on("mouseleave",function(){var e,t=$(this).data("id");"selected"!==$(this).data("shipping-selected")&&((e=$.markers[t]).setZIndex(t),e.setIcon("/shop/frontend/public/images/pin-red.png"))})}function initMapWithHomeAddress(e){$.getJSON("https://maps.googleapis.com/maps/api/geocode/json?address="+e+"&key=AIzaSyDPifwa9k4Z-46bDJNVnhS0KykXMfvPk7Q",function(e){var t,e=e.results[0].geometry.location,o=new google.maps.Map(document.getElementById("gls-google-map-"+$.currentActiveShippingId),{zoom:12,center:e}),i=$(".delivery-pickup-gls-item");checkoutPageIsOnePageCheckout()||(t=$($.currentCheckedShipping).val(),i=$("#GLS_ParselShops_"+t).find(".delivery-pickup-gls-item")),i.each(function(e){var t=$(this).find(".delivery-pickup-gls-name").text(),i=$(this).find(".delivery-pickup-gls-cordiantes-latitude").text(),a=$(this).find(".delivery-pickup-gls-cordiantes-longitude").text();addMarker({lat:Number(i),lng:Number(a)},o,e,t,$(this))});new google.maps.Marker({position:e,map:o,icon:"/shop/frontend/public/images/home.png"}).setAnimation(google.maps.Animation.DROP),markerHover()})}function initMap(){var e,t,i;0<$("#googleApiHomeAddress").length?initMapWithHomeAddress($("#googleApiHomeAddress").val()):(i=$("#checkout_customer_zipcode").val(),e=$("#checkout_customer_country").val(),t=$("#checkout_customer_address").val(),$("#checkout_use_alternative_delivery_address").prop("checked")&&(i=$("#checkout_customer_altdelivery_zipcode").val(),e=$("#checkout_customer_altdelivery_country").val(),t=$("#checkout_customer_altdelivery_address").val()),i=resolveAjaxUrl()+urlEncodeParams("?action=gethomeaddressforgooglemaps&ZipCode="+i+"&Country="+e+"&Address="+t),$.ajax({type:"get",cache:!1,"async":!1,url:i,success:function(e){initMapWithHomeAddress(e)}}))}function glsParcelShopSelected(e){e=resolveAjaxUrl()+urlEncodeParams("?action=saveselectedglsparcelshopid&glsparcelshopid="+e);$.ajax({type:"get",cache:!1,"async":!1,url:e,success:function(){}})}function cookiePolicyClose(){hideCookiePolicyDialog(),cookiePolicySetConsentGivenCookie()}function cookiePolicySetConsentGivenCookie(){CookiePolicy.cookiesRequireConsent?setCookiePolicyCookie("DDCookiePolicyDialog","hide",365):setCookiePolicyCookie("DDCookiePolicy","hide",365)}function cookiePolicyAccept(e){hideCookiePolicyDialog(),cookiePolicySetConsentGivenCookie(),cookiePolicyUpdateConsent(e,!1)}function cookiePolicyAcceptAll(e){hideCookiePolicyDialog(),cookiePolicySetConsentGivenCookie(),cookiePolicyUpdateConsent(e,!0)}function hideCookiePolicyDialog(){document.getElementById("CookiePolicy").style.display="none"}function cookiePolicyUpdateConsent(e,t){var i=$("#cookie-policy-consent-tracking").is(":checked"),a=$("#cookie-policy-consent-functional").is(":checked"),o=$("#cookie-policy-consent-statistics").is(":checked");t&&(o=a=i=!0),setCookiePolicyCookie("DDCookiePolicy-consent-tracking",i,365),setCookiePolicyCookie("DDCookiePolicy-consent-functional",a,365),setCookiePolicyCookie("DDCookiePolicy-consent-statistics",o,365),i||cleanUpTrackingCookies(),a||cleanUpFunctionalCookies(),o||cleanUpStatisticsCookies();t=(t="\n /shop/ajaxwrapper.asp?fc=updateCookieConsentHistory\n &allowTracking="+convertBooleanValueToInteger(i)+"\n &allowFunctional="+convertBooleanValueToInteger(a)+"\n &allowStatistics="+convertBooleanValueToInteger(o)+"\n &cookieConsentToken="+e+"\n ").replace(/ /g,"");$.ajax({dataType:"json",type:"get",cache:!1,url:t,complete:function(){var e=document.location.href;e+=(e.match(/[\?]/g)?"&":"?")+"CookieConsentChanged=1",document.location.href=e}})}function hasShopNativeGtagScriptEnabled(){return 0<$(".shop-native-gtag-script").length}function convertBooleanValueToInteger(e){return e?1:2}function cleanUpTrackingCookies(){$.each(document.cookie.split(/; */),function(){var e=this.split("=")[0];e.startsWith("_gat_gtag_UA_")&&deleteCookieFromRootDomain(e)}),jQuery.each(["_ga","_fbp","_gid"],function(e,t){deleteCookieFromRootDomain(t)})}function cleanUpFunctionalCookies(){jQuery.each(["__atuvc","__atuvs"],function(e,t){deleteCookieFromCurrentDomain(t)})}function cleanUpStatisticsCookies(){}function deleteCookieFromRootDomain(e){var t=(t=window.location.hostname).substring(t.lastIndexOf(".",t.lastIndexOf(".")-1)+1);document.cookie=e+"=; Path=/; Domain=."+t+"; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"}function deleteCookieFromCurrentDomain(e){window.location.hostname;document.cookie=e+"=; Path=/;Expires=Thu, 01 Jan 1970 00:00:01 GMT;"}function setCookiePolicyCookie(e,t,i){var a=new Date;a.setDate(a.getDate()+i),document.cookie=e+"="+t+";expires="+a.toUTCString()}
2function toggleCookiePolicyDetails(){$(".cookie-policy-details-container").slideToggle(150)}function cookiePolicyConsentEnableThirdPartyScriptTags(){CookiePolicy.allowTrackingCookies&&enableThirdPartyScripts("tracking"),CookiePolicy.allowStatisticsCookies&&enableThirdPartyScripts("statistics"),CookiePolicy.allowFunctionalCookies&&enableThirdPartyScripts("functional")}function enableThirdPartyScripts(e){enableThirdPartyInlineScriptTags(e),enableThirdPartySourceScriptTags(e)}function enableThirdPartyInlineScriptTags(category){$("script.cpc-script-inline-"+category).each(function(index,element){$(element).prop("type","text/javascript"),eval($(element).text())})}function enableThirdPartySourceScriptTags(e){$("script.cpc-script-src-"+e).each(function(e,t){var i=$(t).data("cpc-src");$(t).prop("src",i)})}function toggleConsentForCookieType(e){var t=$("#cookie-policy-consent-tracking").is(":checked")||$("#cookie-policy-consent-functional").is(":checked")||$("#cookie-policy-consent-statistics").is(":checked"),i=$("#cookie-policy-accept-button"),a=i.data("accept-text-original"),o=i.data("accept-text-modified");0<o.length&&(t?i.val(o):i.val(a))}function toggleStates(e,t,i,a){try{var o=e.options[e.selectedIndex].value,n=a.GetItem(o),c=document.getElementById(t),r=document.getElementById(i);c.style.display="US"===n?"":"none",r.disabled=!("US"===n)}catch(s){}}function HashTable(){var i={};this.ImportItems=function(e){try{for(var t=e.split(";"),i=0;i<t.length;i++){var a=t[i].split("|"),o=a[0],n=a[1];this.SetItem(o,n)}}catch(c){}},this.SetItem=function(e,t){i[e]=t},this.GetItem=function(e){return i[e]}}function toggleMenu(e){try{var t=document.getElementById(e);""===t.style.display?t.style.display="none":t.style.display=""}catch(i){}}function scrollToSavedVPos(e){try{window.scroll(0,e)}catch(t){}}function replace(e,t,i){var a,o,n=e.length,c=t.length;return 0===n||0===c||!(a=e.indexOf(t))&&t!=e.substring(0,c)||-1==a?e:(o=e.substring(0,a)+i,a+c<n&&(o+=replace(e.substring(a+c,n),t,i)),o)}function formatAsMoney(e){return e-=0,(e=Math.round(100*e)/100)==Math.floor(e)?e+".00":10*e==Math.floor(10*e)?e+"0":e}function disableRightClick(e){var t=0;return 2!=(t="Netscape"==navigator.appName.substring(0,9)?e.which:t)&&3!=t||(alert(window.PicprotectMsg),!1)}function trapImagesMouseEvents(){if(document.images)for(var e=0;e<document.images.length;e++){var t=document.images[e];t.onmousedown=disableRightClick,$(t).on("contextmenu",function(e){return!1})}}jQuery.fn.scrollTo=function(e,t){return $(this).stop().animate({scrollTop:$(this).scrollTop()-$(this).offset().top+$(e).offset().top},t==undefined?700:t),this},$(document).ready(function(){CookiePolicy.cookiesRequireConsent&&cookiePolicyConsentEnableThirdPartyScriptTags()}),window.EnablePicProtect&&(window.onload=trapImagesMouseEvents),window.onscroll=function(){try{var t=Math.round($(document).scrollTop());$("input[type='hidden'][name='VerticalScrollPos']").each(function(){var e=$
2(this);0<e.length&&e.val(t)})}catch(e){}};var canBuy=!0;function BuyProduct(e,t,i,a){if("True"==a){if(0<parseInt(e.AMOUNT.value)%parseInt(t))return e.AMOUNT.value=t,alert(window.MinBuyMsg+"( "+t+" )"),!1}else if(parseInt(e.AMOUNT.value)<parseInt(t))return e.AMOUNT.value=t,alert(window.MinBuyMsg+"( "+t+" )"),!1;return isNaN(parseInt(e.AMOUNT.value))?(e.AMOUNT.value=t,alert(window.MinBuyMsg+"( "+t+" )"),!1):0<parseInt(i)&&parseInt(e.AMOUNT.value)>parseInt(i)?(e.AMOUNT.value=t,alert(window.MaxBuyMsg+" ( "+i+" )"),!1):(canBuy||alert(window.SelectVarMsg),canBuy)}function BuyRelatedProduct(e,t,i,a){if("True"==a){if(0<parseInt(e.amount.value)%parseInt(t))return e.amount.value=t,alert(window.MinBuyMsg+"( "+t+" )"),!1}else if(parseInt(e.amount.value)<parseInt(t))return e.amount.value=t,alert(window.MinBuyMsg+"( "+t+" )"),!1;return!(0<parseInt(i)&&parseInt(e.amount.value)>parseInt(i)&&(e.amount.value=t,alert(window.MaxBuyMsg+" ( "+i+" )"),1))}function AddFavorite(e,t){SendRequest("/shop/Favorites.asp","","ProductID="+e+"&amount="+t+"&AddProduct=1&ShowAjaxResponse=1",2)}function ChangeSortOrder(e){try{SilentAjaxGetRequest("/shop/AjaxWrapper.asp?FC=changesortorder&SortField="+e[e.selectedIndex].value).then(function(){return document.location.reload()})}catch(t){}}function ToggleVat(){SilentAjaxGetRequest("/shop/AjaxWrapper.asp?FC=togglevat").then(function(){return document.location.reload()})}function ChangeCurrency(e){SilentAjaxGetRequest("/shop/ChangeCurrency.asp?UpdateCur="+e).then(function(){return document.location.href=window.CurrencyReturnUrl})}function PopupPicture(e,t,i,a,o,n){var c="no",r=screen.width,s=screen.height;(r<i||s<a)&&(c="yes"),window.PopupWindow=window.open("/shop/ImagePopup.asp?Title="+e+"&Image="+t+"&ProtectMessage="+o,"PopupImage"+encodeURIComponent(n),"displayWindow,width="+i+",height="+a+",scrollbars="+c+",status=no")}function ShowBasket(){document.location.href=window.ShowBasketUrl}function DetectBrowser(){GeneratePrintOutput()}function GeneratePrintOutput(){try{var e;1!==$(".webshop-checkout").length&&(e=(e=(e=(e=(e=document.getElementById("ContentContainer_DIV").innerHTML).replace(/name=/gi,"Xid=")).replace(/id=/gi,"Xid=")).replace(/<form/gi,"<Xform")).replace(/Thumbnail_Productinfo_FancyBox/gi,"XThumbnail_Productinfo_FancyBox"),document.getElementById("PrintContent_DIV").innerHTML=e)}catch(t){}}function checkPhone(e,t,i,a){if(e.value.match(/^\d\d\d\d\d\d\d\d$/)){try{i.disabled=!1}catch(o){}13===t.keyCode&&("invoicephone"==e.id&&KrakLookup("invoice",a),"deliveryphone"==e.id)&&KrakLookup("delivery",a)}else try{i.disabled=!0}catch(o){}}function segmentSelectorChange(e){try{var t=e.options[e.selectedIndex].value;e.disabled=!0,selectSegment(t)}catch(i){}}function ProductListVariantSelectorChange(e){try{var t=e.options[e.selectedIndex].value;e.disabled=!0,location.href=t}catch(i){e.disabled=!1}}function advancedVariantSelectorChange(e){try{var t=e.options[e.selectedIndex].value;e.disabled=!0,location.href=t}catch(i){e.disabled=!1}}function createCookie(e,t){document.cookie=e+"="+t+"; path=/"}function getCookie(e){if(0<document.cookie.length){var t=document.cookie.indexOf(e+"=");if(-1!=t)return t=t+e.length+1,-1==(e=document.cookie.indexOf(";",t))&&(e=document.cookie.length),decodeURIComponent(document.cookie.substring(t,e))}return""}function CityLookUp(e,t,i){try{var a,o,n=document.getElementById(i),c=n[n.selectedIndex].value,r=document.getElementById(t),s=e.value;4==s.length&&(a="/shop/ajaxwrapper.asp?FC=GetCity&ZipCode="+s+"&CountryID="+c,(o=CreateXmlHttpObj()).onreadystatechange=function(){4==o.readyState&&0<o.responseText.length&&(r.value=o.responseText)},o.open("GET",a,!0),o.send(null))}catch(d){}}function KrakLookup(h,e){var m,v,t="",y="",g="",f="",k="",$="",w="",_="",S="",P="",C="",I=0;if("invoice"==h)try{t=document.getElementById("invoicephone").value}catch(b){}if("delivery"==h){C="l";try{t=document.getElementById("deliveryphone").value}catch(b){}}t="/shop/kraklookup.asp?phonenumber="+t+"&CheckSum="+e;try{document.getElementById(C+"kraklookupbtn").disabled=!0}catch(b){}(m=CreateXmlHttpObj()).onreadystatechange=function(){if(4==m.readyState){var e=m.responseXML;try{y=e.getElementsByTagName("Adress").item(0).childNodes.item(0).nodeValue}catch(b){}try{g=e.getElementsByTagName("Adress2").item(0).childNodes.item(0).nodeValue}catch(t){}try{f=e.getElementsByTagName("Name").item(0).childNodes.item(0).nodeValue}catch(i){}try{k=e.getElementsByTagName("ZipCode").item(0).childNodes.item(0).nodeValue}catch(a){}try{$=e.getElementsByTagName("City").item(0).childNodes.item(0).nodeValue}catch(o){}try{w=e.getElementsByTagName("Phone").item(0).childNodes.item(0).nodeValue}catch(n){}try{_=e.getElementsByTagName("Company").item(0).childNodes.item(0).nodeValue}catch(c){}try{v=e.getElementsByTagName("CustomerType").item(0).childNodes.item(0).nodeValue}catch(r){}
2try{S=e.getElementsByTagName("EAN").item(0).childNodes.item(0).nodeValue}catch(s){}try{P=e.getElementsByTagName("CVR").item(0).childNodes.item(0).nodeValue}catch(d){}try{I=e.getElementsByTagName("CustomerNotFound").item(0).childNodes.item(0).nodeValue}catch(l){}try{document.getElementById(C+"address").value=y}catch(u){}try{document.getElementById(C+"address2").value=g}catch(u){}try{document.getElementById(C+"name").value=f}catch(u){}try{document.getElementById(C+"zipcode").value=k}catch(u){}try{document.getElementById(C+"city").value=$}catch(u){}try{document.getElementById(C+"phone").value=w}catch(u){}try{document.getElementById(C+"cvrnr").value=P}catch(u){}try{document.getElementById(C+"ean").value=S}catch(u){}try{document.getElementById(C+"company").value=_}catch(u){}if("invoice"==h)try{1==v&&(document.Orderstep1Form.CustTypeID.selectedIndex=1),0===v&&(document.Orderstep1Form.CustTypeID.selectedIndex=0),ToggleFields()}catch(u){}if(1==I)try{document.getElementById("KrakLookUpNotFoundMsg").style.display=""}catch(p){}if(0==I)try{document.getElementById("KrakLookUpNotFoundMsg").style.display="none"}catch(p){}try{document.getElementById(C+"kraklookupbtn").disabled=!1}catch(u){}m=e=null}},m.open("GET",t,!0),m.send(null)}function setFieldValue(e,t){try{var i,a=document.getElementById(e);null!==a&&(a.value=t,null!==(i=a.parentNode.parentNode))&&"none"==i.style.display&&(a.value="")}catch(o){}}function CustomerDeliveryInfoLookup(e){try{var s="",d="",l="",u="",p="",h="",m="",v="",y="",g="",f="",k="",$="0",t="/shop/AjaxWrapper.asp?FC=getdelivertoinfo&OrderID="+e,w=CreateXmlHttpObj();w.onreadystatechange=function(){if(4==w.readyState){var e=w.responseXML;try{s=e.getElementsByTagName("Address").item(0).childNodes.item(0).nodeValue}catch(n){}try{d=e.getElementsByTagName("Address2").item(0).childNodes.item(0).nodeValue}catch(n){}try{l=e.getElementsByTagName("Name").item(0).childNodes.item(0).nodeValue}catch(n){}try{u=e.getElementsByTagName("ZipCode").item(0).childNodes.item(0).nodeValue}catch(n){}try{p=e.getElementsByTagName("City").item(0).childNodes.item(0).nodeValue}catch(n){}try{h=e.getElementsByTagName("Phone").item(0).childNodes.item(0).nodeValue}catch(n){}try{m=e.getElementsByTagName("Company").item(0).childNodes.item(0).nodeValue}catch(n){}try{$=e.getElementsByTagName("CustomerType").item(0).childNodes.item(0).nodeValue}catch(n){}try{v=e.getElementsByTagName("EAN").item(0).childNodes.item(0).nodeValue}catch(n){}try{y=e.getElementsByTagName("CVR").item(0).childNodes.item(0).nodeValue}catch(n){}try{f=e.getElementsByTagName("Email").item(0).childNodes.item(0).nodeValue}catch(n){}try{g=e.getElementsByTagName("Fax").item(0).childNodes.item(0).nodeValue}catch(n){}try{k=e.getElementsByTagName("Country").item(0).childNodes.item(0).nodeValue}catch(n){}setFieldValue("laddress",s),setFieldValue("laddress2",d),setFieldValue("lname",l),setFieldValue("lcompany",m),setFieldValue("lzipcode",u),setFieldValue("lcity",p),setFieldValue("lphone",h),setFieldValue("lcvrnr",y),setFieldValue("lean",v),setFieldValue("lfax",g),setFieldValue("lemail",f);try{for(var t=document.getElementById("lcountry"),i=0;i<t.options.length;i++)t.options[i].innerHTML==k?t.options[i].selected=!0:t.options[i].selected=!1}catch(c){}try{""===$&&($="0");for(var a=document.getElementById("lCustTypeID"),o=0;o<a.options.length;o++)a.options[o].value==$?a.options[o].selected=!0:a.options[o].selected=!1}catch(r){}w=e=null}},w.open("GET",t,!0),w.send(null)}catch(i){}}function selectSegment(e){var e=""===e?"/shop/default.asp?ClearSegments=1":"/shop/default.asp?Segment="+e,t=CreateXmlHttpObj();t.onreadystatechange=function(){4==t.readyState&&(location.href=location.href)},t.open("GET",e,!0),t.send(null)}function GetMethods(u,e,p,t,h){"ShippingMethods"==u&&(i="&PayMethodID="+e),i=(i="PayMethods"==u?"&ShippingMethodID="+e:i)+"&Debug="+t;var i,m,v,y,g=new Object({}),f=new Object({});if("ShippingMethods"==u){for(var a=document.getElementsByName("ShippingMethodID"),o=a.length,k=0;k<o;k++)a[k].checked&&(m=a[k]);if(m){for(var w=new Array([]),n=($(".OrderStep2_ShippingMethodServices_"+m.value+"_checkbox").each(function(){this.name&&w.push(this)}),(w=0===w.length?document.getElementsByName("GlsParselShopID"+m.value):w).length),c=0;c<n;c++){var r=w[c];
2if(f[r.name]=r.disabled,r.checked){g[r.name]=new Array([]);for(var s=1;s<=15;s++){var d,l=w[k];l!==undefined&&0<(l=document.getElementsByName("ShippingMethodServiceParamValue_"+l.value+"_"+s)).length&&(l=l[0],(d=new Object({}))[l.name]=l.value,g[r.name].push(d))}if("PUPOPT"==r.alt)for(var _,S=(_=document.getElementsByName("pacsoftservicepoint")).length,P=0;P<S;P++){var C=_[P];C.checked&&(y=C)}}}document.getElementsByName("GlsParselShopID"+m.value);for(var I,b=w.length,M=0;M<b;M++)(I=w[M]).checked&&(v=I)}}var t="/shop/order2.asp?GetMethods="+u+i,T=CreateXmlHttpObj();if(T.onreadystatechange=function(){if(4==T.readyState){var e;if(p.innerHTML=T.responseText,"ShippingMethods"===u&&(e=$("#"+$(m).attr("id")),setupParcelShopPickupPoints($(e).val()),setupParcelShopsPickupPointsMap($(e))),m){for(var t in f){var i=document.getElementsByName(t);0<i.length&&(i[0].disabled=f[t])}for(var a in g)if(0<document.getElementsByName(a).length)if(-1!=a.indexOf("GlsParselShopID")){var o=document.getElementsByName(a),n=w.length;for(k=0;k<n;k++){var c=o[k];c.value==v.value&&(c.checked=!0)}}else{var r=document.getElementsByName(a)[0];if(r.checked=!0,"PUPOPT"==r.alt)shippingMethodServiceSelected(r,"PUPOPT",m.value,y.value,3);else{a=a.replace("Row",""),a=document.getElementsByName(a);if(a[0]){var a="OrderStep2_ShippingMethodServices_"+a[0].value+"_params_TR",s=document.getElementsByClassName(a);for(k=s.length-1;0<=k;--k)s[k].style.display="";if(0<g[r.name].length)for(k=0;k<g[r.name].length;k++){var d,l=g[r.name][k];for(d in l)document.getElementById(d).value=l[d]}}}}}void 0!==h&&CodPayMethodSelected(h)}},T.open("GET",t,!0),T.send(null),"PayMethods"==u)try{var x=document.getElementById("GLS_ParselShops_"+e);try{var E=document.getElementsByClassName("GLS_ParselShops_TR");for(k=E.length-1;0<=k;--k)E[k].style.display="none"}catch(B){}x.style.display=""}catch(B){}}function GetStates(e,t){var i,a;try{var o,n=document.getElementById(e),c=document.getElementById(t),r="/shop/ajaxwrapper.asp?FC=GetStates&CountryID="+c[c.selectedIndex].value;(o=CreateXmlHttpObj()).onreadystatechange=function(){if(4==o.readyState){for(var e=o.responseXML.getElementsByTagName("State"),t=n.options.length=0;t<e.length;t++)i=e[t].getElementsByTagName("ID")[0].childNodes[0].nodeValue,a=e[t].getElementsByTagName("Name")[0].childNodes[0].nodeValue,n.options[t]=new Option(a,i);0===n.options.length?n.style.display="none":n.style.display="",o=null}},o.open("GET",r,!0),o.send(null)}catch(s){}}function hideAllProductFeeLayers(e){for(var t=document.getElementsByTagName("div"),i=0;i<t.length;i++)null!==e&&e.id==t[i].id||-1<t[i].id.indexOf("TotalPricePopup_DIV_")&&(t[i].style.display="none")}function getProductInfoConfiguratorProductsString(){var i="";return $(".Product_Select_Configurator_ProductInfo").each(function(e,t){e=$("#amount"+(e+1));i=i+$(t).val()+"_"+e.val()+";"}),i}function DisplayFeesForProduct(o,n,e,c,t){var i="",a="",e=("productinfo"===c&&(i=getProductInfoVariantString(),a=getProductInfoConfiguratorProductsString()),"/shop/ajaxwrapper.asp?FC=GetMethodFees&ProdID="+o+"&Amount="+e+"&VariantsStr="+encodeURIComponent(i)+"&ConfiguratorsStr="+encodeURIComponent(a));null===c&&(c=""),$.ajax({method:"GET",cache:!1,url:e,data:{},success:function(e){var t,i,a;null!==n?null===(t=document.getElementById("TotalPricePopup_DIV_"+o+"_"+c))?(i="TotalPricePopup_DIV_"+o+"_"+c,(a=document.createElement("div")).id=i,a.className="TotalPricePopup_DIV TotalPricePopup_DIV_DropShadow",a.innerHTML=e,n.appendChild(a),hideAllProductFeeLayers(a)):(hideAllProductFeeLayers(t),""===t.style.display?t.style.display="none":(t.style.display="",t.innerHTML=e)):alert(window.totalFee)}})}function clientIsInQuirksmode(){return null!==document.compatMode&&"BackCompat"==document.compatMode}function AddImageOverlay(e,t,i,a,o,n,c,r,s,d,l,u){try{if(e!==undefined||0!==e.length){switch(o=o===undefined?"":o,n=n===undefined?"":n,t=t===undefined?"/shop/graphics/savings_label_productinfo.png":t,i=i===undefined?1:i,r=r===undefined?0:r,s=s===undefined?0:s,d=d===undefined?0:d,l=l===undefined?"#000000":l,u=u===undefined?"12":u,a=a===undefined?100:a,i){case 0:i="top:0px;left:0px;";break;case 1:i="top:0px;right:0px;";break;case 2:i="bottom:0px;left:0px;";break;case 3:i="bottom:0px;right:0px;"}var p,h,m,v,y,g,f,k="<style type='text/css'>";for(p in k=(k=(k=(k="<style type='text/css'>div.Element_Overlay_"+o+"Container_DIV{position:absolute;z-index:"+a+";"+i+"}")+"div.Element_Overlay_"+o+"Text_DIV{position:absolute;z-index:"+(a+1)+";top:0px;white-space:nowrap;font-size:"+u+"px;padding-top:"+s+"px;padding-left:"+d+"px;color:"+l+";text-align:center;}")+"div.Element_Overlay_"+o+"Text_DIV{-webkit-transform: rotate("+r+"deg);-moz-transform: rotate("+r+"deg);-o-transform: rotate("+r+"deg);-ms-transform: rotate("+r+"deg);}")+"div.Element_Overlay_"+o+"DIV { position: relative; display: inline-block; }",k+="</style>",$("body").append(k),e=e.split(","),c!==undefined&&(c=c.split("|")),e)0<e[p].length&&n+e[p]!==""&&(h=document.getElementById(n+e[p]))!==undefined&&null!==h&&((m=document.createElement("div")).setAttribute("class","Element_Overlay_"+o+"Container_DIV"),(v=document.createElement("div")).setAttribute("class","Element_Overlay_"+o+"Image_DIV"),(y=document.createElement("img")).setAttribute("src",t),y.setAttribute("border","0"),y.setAttribute("class","Element_Overlay_"+o+"IMG"),v.appendChild(y),m.appendChild(v),c!==undefined&&c[p]!==undefined&&((g=document.createElement("div")).setAttribute("class","Element_Overlay_"+o+"Text_DIV"),g.innerHTML=c[p],m.appendChild(g)),(f=document.createElement("div")).setAttribute("class","Element_Overlay_"+o+"DIV"),f.appendChild(h.cloneNode(!0)),f.appendChild(m),"product-image-container"==h.id&&m.setAttribute("onclick","showMagicZoomPopupOnProductInfo()"),"Productinfo_Fancybox_Image_DIV"==h.id&&m.setAttribute("onclick","fancyboxPopupOnProductInfo()"),h.outerHTML?h.outerHTML=f.outerHTML:h.parentNode.replaceChild(f,h))}}catch(w){}}function fancyboxPopupOnProductInfo(){$("#Image_Productinfo_FancyBox").trigger("click")}function showMagicZoomPopupOnProductInfo(){window.MagicZoom!==undefined&&window.MagicZoom.expand("zoom-v")}function CreateXmlHttpObj(){var e;return window.XMLHttpRequest&&(e=new XMLHttpRequest),e=window.ActiveXObject?new ActiveXObject("microsoft.xmlhttp"):e}
2function SilentAjaxGetRequest(e){return $.get(e,function(e){})}function SendRequest(e,t,i,a){var o=CreateXmlHttpObj();o.onreadystatechange=function(){4==o.readyState&&processResponse(o,t,a)},o.open("POST",e,!0),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.send(i)}function processResponse(e,t,i){1==i&&(t.innerHTML=e.responseText),2==i&&""!==e.responseText&&alert(e.responseText)}function changeClassName(e,t){e.setAttribute("class",t),e.setAttribute("className",t)}function updateRatingSymbol(e,t,i,a,o){null!==i&&(t<=e?changeClassName(i,a+o):(changeClassName(i,"Product_Rating_Symbols_Idle"+o),$(i).attr("class","Product_Rating_Symbols_Idle"+o)))}function updateRatingSymbols(e,t,i,a,o){for(var n,c,r=1;r<=t;r++)1==a?(n=document.getElementById("Product_Rating_"+o+"_"+r+"_Left"),c=document.getElementById("Product_Rating_"+o+"_"+r+"_Right"),updateRatingSymbol(e,r-.5,n,i,"_Left"),updateRatingSymbol(e,r,c,i,"_Right")):updateRatingSymbol(e,r,document.getElementById("Product_Rating_"+r),i,"")}function mouseOverRating(e,t,i,a){updateRatingSymbols(e,t,"Product_Rating_Symbols_Hover",i,a)}function mouseOutRating(e,t,i,a){var o=document.getElementById("Product_Rating_Current_Value_"+a);null!==o&&updateRatingSymbols(o.value,e,"Product_Rating_Symbols_Active",i,a)}function mouseClickRating(e,t,i){var e="/shop/ajaxwrapper.asp?fc=setproductrating&ReturnNewRating=1&ProdNumber="+(e=e.replace(/\+/g,"%2B"))+"&ratingContainerID="+i+"&rating="+t,a=CreateXmlHttpObj();a.onreadystatechange=function(){var e;4==a.readyState&&null!==(e=document.getElementById(i))&&(e.innerHTML=a.responseText)},a.open("GET",e,!1),a.send(null)}function showRememberToBuyDialogResponsive(e,i){var a,o;window.UsesOwnDoctype?(a=600,o=780,isIeQuirksMode()&&(o=a=0),$.ajax({type:"get",url:"/shop/AjaxWrapper.asp?FC=getremembertobuyproducts&ProdID="+encodeURIComponent(e),cache:!1,success:function(e){try{$("#divRememberToBuy").html(e)}catch(t){window.console&&console.log(t)}-1!==e.indexOf("ddrrtb-product")&&($("#divRememberToBuy").dialog({open:function(){},close:function(){location.reload()},title:i,width:o,height:a,position:{my:"center center",at:"center center",of:window},resizable:!1,responsive:!0,clickOut:!0,modal:!0,draggable:!1}),$(".ui-dialog").addClass("dd-dialog-responsive"),$(".ui-widget-overlay").addClass("dd-dialog-responsive"),showRememberToBuyDialogResponsiveHeight(),isIeQuirksMode()?fixUiDialogInIe("divRememberToBuy",780,600):$(window).resize(function(){$("#divRememberToBuy").dialog({position:{my:"center center",at:"center center",of:window}})}))}})):showRememberToBuyDialog(e,i)}function showRememberToBuyDialogResponsiveHeight(){var e=$(window).width(),t=$(window).height();800<=e&&750<=t?(e=$("#divRememberToBuy").height()-$(".ddrrtb-header").height()-$(".ddrrtb-footer").height()-35,$(".ddrrtb-content").height(e)):$(".ddrrtb-content").css("height","auto")}function showRememberToBuyDialog(e,i){var a=600,o=780;isIeQuirksMode()&&(o=a=0),$.ajax({type:"get",url:"/shop/AjaxWrapper.asp?FC=getremembertobuyproducts&ProdID="+encodeURIComponent(e),cache:!1,success:function(e){try{$("#divRememberToBuy").html(e)}catch(t){window.console&&console.log(t)}-1!==e.indexOf("ddrrtb-product")&&($("#divRememberToBuy").dialog({open:function(){},close:function(){location.reload()},title:i,width:o,height:a,position:{my:"center center",at:"center center",of:window},resizable:!1,responsive:!1,clickOut:!0,modal:!0,draggable:!1}),$(".ui-dialog").addClass("dd-dialog-responsive"),$(".ui-widget-overlay").addClass("dd-dialog-responsive"),showRememberToBuyDialogResponsiveHeight(),isIeQuirksMode()?fixUiDialogInIe("divRememberToBuy",780,600):(e=window.windowHeightForDialogPosition/2-300,$(".ui-dialog.ui-widget.ui-widget-content").css("top",e)))}})}function editReview(e){return $.ajax({type:"GET",url:"/shop/AjaxWrapper.asp?FC=getproductreviewtext&id="+e,success:function(e){$("#ProductReviewNewReviewText").val(e),$("#ProductReviewNewReview").show()}}),$("input[name=savemode]").val("updateproductreview"),$("input[name=reviewid]").val(e),!1}function submitReview(e,t,i,a,o,n,c,r,s,d){var l,u,p=$("#ProductReviewNewReviewText").val(),h=$("input[name=reviewid]").val(),m=$("input[name=savemode]").val();return $.trim(p).length<5e3?$.trim(p)&&(l=generateRandomString(),createCookie("shopReviewRandomStringValue",document.getElementById(e).value=l),(u={}).CustomerNumber=a,u.FC=m,u.ReviewText=p,u.ProductNumber=i,u.ProductID=t,u.LanguageID=o,u.ReviewId=h,u.VariantMasterId=n,u.ProductIsMaster=c,u.OriginalProductNumber=r,u[e]=l,$.ajax({type:"POST",url:"/shop/AjaxWrapper.asp",contentType:"application/x-www-form-urlencoded;charset=utf-8",data:u,"async":!1,success:function(e){e&&(e=$.parseJSON(e))&&e.error&&alert(e.error)}}),$("#ProductReviewNewReview").hide(),$("#ProductReviewNewReviewLink").hide(),showReviewDialog(t,d,s,0),$("#ProductReviewConfirmation").html(s).show()):alert("Stringlength execeed 5000 characters"),!1}function showReviewDialogResponsive(e,t,i,a){var o,n;window.UsesOwnDoctype?(fillDialogLayer(e,a),n=o=500,isIeQuirksMode()&&(n=o=0),$("#ReviewDialog").dialog({open:function(){},close:function(){location.reload()},title:t,width:o,height:n,position:{my:"center center",at:"center center",of:window},resizable:!1,responsive:!0,clickOut:!0,modal:!0,draggable:!1}),$(".ui-dialog").addClass("dd-dialog-responsive"),$(".ui-widget-overlay").addClass("dd-dialog-responsive"),isIeQuirksMode()?fixUiDialogInIe("ReviewDialog",500,500):$(window).resize(function(){$("#ReviewDialog").dialog({position:{my:"center center",at:"center center",of:window}})})):showReviewDialog(e,t,i,a)}function showReviewDialog(e,t,i,a){fillDialogLayer(e,a);var e=500,a=500,o=!0;isIeQuirksMode()&&(a=e=0,o=!1),$("#ReviewDialog").dialog({open:function(){},close:function(){location.reload()},title:t,width:e,height:a,position:"top",resizable:!1,modal:!0,draggable:o}),$(".ui-dialog").addClass("dd-dialog-responsive"),$(".ui-widget-overlay").addClass("dd-dialog-responsive"),isIeQuirksMode()?fixUiDialogInIe("ReviewDialog",500,500):(t=window.windowHeightForDialogPosition/2-250,$(".ui-dialog.ui-widget.ui-widget-content").css("top",t))}function isIeQuirksMode(){return clientIsInQuirksmode()}function fillDialogLayer(e,t){$.ajax({type:"get",url:"/shop/productinfo.asp?ProductIdentity="+e+"&reviewpageview=1&reviewid="+t,"async":!1,cache:!1,success:function(e){$("#ReviewDialog").html(e)}})}function generateRandomString(){for(var e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",t="",i=0;i<50;i++){var a=Math.floor(Math.random()*e.length);t+=e.substring(a,a+1)}return t}function showReviewLogin(){$("#ProductReviewLogin").show()}
2function reviewLogin(t,i,a){var e=$("[name=ProductReviewUsername-text]").val(),o=$("[name=ProductReviewPassword-text]").val();$.ajax({type:"get",url:"/shop/AjaxWrapper.asp?FC=logincustomer&Email="+e+"&Password="+o,"async":!1,success:function(e){$.parseJSON(e).success?showReviewDialog(t,i,a,0):$("#ProductReviewLoginFailure").show()}})}function fixUiDialogInIe(e,t,i){var a,o,n;clientIsInQuirksmode()&&$.browser.msie&&(a=(e=$("#"+e)).parent(".ui-dialog"),$(".ui-dialog").addClass("ie-quirks-ui-dialog"),10==$.browser.version.split(".")[0]&&$(".ui-dialog").addClass("ie-quirks-ui-dialog-ie10"),o=a.css("height"),n=a.css("width"),t!==undefined&&(n=t),i!==undefined&&(o=i),a.height(o+30),a.width(n),a.center(),e.height(o),e.width(n))}function redeemGiftCertificateButtonClick(e,t,i){var a=document.getElementById(e);t.disabled=!0,a.disabled=!0,setTimeout(function(){redeemGiftCertificate(a,t,i)},500)}function redeemGiftCertificate(i,a,e){var t;"undefined"!==i&&(t=i.value,$.ajax({dataType:"json",type:"get",url:"/shop/ajaxwrapper.asp?fc="+(1==e?"GetGiftCertificateBalance":0===e?"RedeemAndTransferGiftCertificate":void 0)+"&GiftCertificateCardNumber="+t,success:function(e){var t=e.redeemSucceeded,e=e.balance;a.disabled=!1,i.disabled=!1,t?(document.getElementById("GiftCertificateCurrentCustomerBalance").innerHTML=e,alert(window.giftCertificateRedeemSucceededMessage)):alert(window.giftCertificateRedeemFailedMessage)}}))}function includeReCaptchaScript(){var e=$("#stock-notification-captcha-script").data("src");$("#stock-notification-captcha-script").attr("src",e),$(".grecaptcha-badge").css("visibility","visible")}function hideReCaptchaBadge(){$(".grecaptcha-badge").css("visibility","hidden")}function subScribeToStockEmailNotificationDialog(e,t){var i=500,a=400,o=!0;isIeQuirksMode()&&(a=i=0,o=!1),$("#StockEmailNotificationDialog_Container_"+e).dialog({open:function(){},close:function(){hideReCaptchaBadge()},title:t,width:i,height:a,position:"top",resizable:!1,modal:!0,draggable:o}),$(".ui-dialog").addClass("dd-dialog-responsive"),$(".ui-widget-overlay").addClass("dd-dialog-responsive"),isIeQuirksMode()?fixUiDialogInIe("StockEmailNotificationDialog_Container_"+e,500,400):(t=window.windowHeightForDialogPosition/2-200,$(".ui-dialog.ui-widget.ui-widget-content").css("top",t)),includeReCaptchaScript()}function subScribeToStockEmailNotificationDialogResponsive(e,t){var i,a,o;window.UsesOwnDoctype?(i=500,a=400,o="center",isIeQuirksMode()&&(a=i=0,o="top"),$("#StockEmailNotificationDialog_Container_"+e).dialog({open:function(){},close:function(){$(window).off("resize.stockNotificationDialog"),hideReCaptchaBadge()},title:t,width:i,height:a,position:o,resizable:!1,responsive:!0,clickOut:!0,modal:!0,draggable:!1}),$(".ui-dialog").addClass("dd-dialog-responsive"),$(".ui-widget-overlay").addClass("dd-dialog-responsive"),document.getElementById("StockEmailNotificationDialog_Button_"+e).focus(),isIeQuirksMode()?fixUiDialogInIe("StockEmailNotificationDialog_Container_"+e,500,400):($("#StockEmailNotificationDialog_Container_"+e).dialog({position:{my:"center center",at:"center center",of:window}}),$(window).on("resize.stockNotificationDialog",function(){$("#StockEmailNotificationDialog_Container_"+e).dialog({position:{my:"center center",at:"center center",of:window}})})),includeReCaptchaScript()):subScribeToStockEmailNotificationDialog(e,t)}function subScribeToStockEmailNotification(i){$.ajax({url:"/shop/ajaxwrapper.asp?fc=getgooglerecaptchasitekey",type:"GET",cache:!1,success:function(e){var t=e;grecaptcha.ready(function(){grecaptcha.execute(t,{action:"submit"}).then(function(e){var t=$("#StockEmailNotificationEmail_"+i).val();$.ajax({url:"/shop/ajaxwrapper.asp?fc=subscribetostockemailnotification&ProdID="+i+"&email="+t+"&token="+e,type:"GET",cache:!1,success:function(e){!0===e.success&&$("#StockEmailNotificationDialog_Container_"+i).dialog("close"),alert(e.message)}})})})}})}function navigateToSelectedCategory(e){e=$(e).val();0<e.length&&(document.location.href=e)}function redeemSalesDiscountCodeFromShowBasket(){var e=$("#show-basket-sales-discount-code").val(),e=encodeURIComponent(e);
2location.href="/shop/showbasket.html?salesDiscountCode="+e+"&doSalesdiscountCheck=1"}function sendFavoritesMail(e){var i=$(e).closest("form");$.ajax({url:"/shop/ajaxwrapper.asp?fc=getgooglerecaptchasitekey",type:"GET",cache:!1,success:function(e){var t=e;grecaptcha.ready(function(){grecaptcha.execute(t,{action:"submit"}).then(function(e){$("#token").val(e),i.submit()})})}})}function sendBasketMail(i){$.ajax({url:"/shop/ajaxwrapper.asp?fc=getgooglerecaptchasitekey",type:"GET",cache:!1,success:function(e){var t=e;grecaptcha.ready(function(){grecaptcha.execute(t,{action:"submit"}).then(function(e){$("#token").val(e),sendBasketMailExecute(i)})})}})}function sendBasketMailExecute(e){var t=generateRandomString(),i=($("#"+e).val(t),createCookie("shopShowBasketSendMailRandomStringValue",t),$("#ShowBasketBasketLinkMailTo").val()),a=$("#ShowBasketBasketLinkEmailBody").val(),o=$("#ShowBasketBasketLinkMailSubject").val(),n=$("#ShowBasketBasketLinkMailFrom").val(),c=$("#BasketLinkEmailMailSendOkText").val(),r=$("#BasketLinkEmailMailFailedText").val(),s=$("#token").val(),a=a+"<br></br><br></br>"+$("#BasketLinkEmailBody").val(),d={};d.EmailTo=i,d.EmailBody=a,d.EmailSubject=o,d.EmailFrom=n,d[e]=t,d.token=s,$.ajax({url:"/shop/ajaxwrapper.asp?fc=sendbasketlink",type:"POST",dataType:"json",data:d,cache:!1,contentType:"application/x-www-form-urlencoded;charset=utf-8",error:function(e,t,i){},success:function(e){e.basketMailSend?($("#ShowBasketSendBasketLink").dialog("close"),alert(c)):alert(r)}})}function showBasketMailDialog(){var e=!0,t="430",i="510",a=(isIeQuirksMode()&&(e=!1,i=t="0px"),$("#BasketLinkEmailDialogHeader").val());$("#ShowBasketSendBasketLink").dialog({open:function(e,t){$(".grecaptcha-badge").css("visibility","visible"),$(".grecaptcha-badge").css("z-index",1e3)},close:function(e,t){$(".grecaptcha-badge").css("visibility","hidden")},title:a,width:i,height:t,position:{my:"center center",at:"center center",of:window},resizable:!1,responsive:e,clickOut:!0,modal:!0,draggable:!1}),$(window).resize(function(){$("#ShowBasketSendBasketLink").dialog({position:{my:"center center",at:"center center",of:window}})}),$(".ui-dialog").addClass("dd-dialog-responsive"),$(".ui-widget-overlay").addClass("dd-dialog-responsive"),$("#ShowBasketSendBasketLink").dialog("option","position","center"),$(window).resize(function(){$("#ShowBasketSendBasketLink").dialog("option","position","center")}),isIeQuirksMode()&&fixUiDialogInIe("ShowBasketSendBasketLink","510","430")}function setSelectedParcelShopId(e){$.ajax({url:"/shop/ajaxcheckoutwrapper.asp?action=saveselectedglsparcelshopid&glsparcelshopid="+e,type:"POST"})}function updateBasketLineAmount(e){var t=$("#basket-line-quantity-input-"+e).val(),i="/shop/basket.asp?caller=showbasket&setAmount="+t+"&keyid="+e;t!==$("#basket-line-quantity-original-"+e).val()&&($(".basket-line-quantity-input").prop("readonly",!0),location.href=i)}function basketLineAmountKeyUp(e,t){e=$("#basket-line-quantity-input-"+e);console.log(t.keyCode),13===t.keyCode&&e.blur()}function validatePasswordInput(e,t,i){0!==$(e).val().length&&($(e).val().length<i?$(e).hasClass("password-policy-failed")||($(e).after('<div class="password-policy-failed-message" id="password-policy-failed-message">'+t+"</div>"),$(e).addClass("password-policy-failed")):($(e).removeClass("password-policy-failed"),$("#password-policy-failed-message").hide(),$("#password-policy-failed-message").remove()))}function navigateToChangePassword(){document.location.href="/shop/changepassword.html"}function updateBuyControlsMulti(e){var t=document.getElementById("productlistBuyButton"+e),i=document.getElementById("productlistAmountInput"+e),a=document.getElementById("simpleVariantGroupsCnt"+e),o=!0;if("true"==ReqVariantSelect){if(null!==a)for(var n=1;n<=a.value;n++){var c=document.getElementById("variant"+n+"_"+e);null===c||""!==c.value&&c.value!=SelectVarTxt||(o=!1)}o?(null!==t&&(t.onclick="",t.disabled=!1),null!==i&&(i.disabled=!1)):(null!==t&&(t.onclick=function(){return alert(SelectVarMsg),!1}),null!==i&&(i.disabled=!0))}}function formatCurrencyAsFloat(e,t,i){return e=replace(""+e,t,"thous
2and"),e=replace(""+e,i,"decimal"),e=replace(""+e,"thousand",""),e=replace(""+e,"decimal","."),parseFloat(e)}function formatNumberToCurrencyString(e,t,i){e=replace(e.toLocaleString("da-DK",{minimumFractionDigits:2}),".","thousand");return e=replace(e,",","decimal"),e=replace(e,"decimal",i),replace(e,"thousand",t)}function addOnProductAmountChanged(e){updateProductTotalPriceElementBasedOnSelectedAddOnProducts()}function addOnProductSelected(e){updateProductTotalPriceElementBasedOnSelectedAddOnProducts()}function updateProductTotalPriceElementBasedOnSelectedAddOnProducts(){var e=$(".product-details-buy-form").find("[data-unitprice]"),o=$(".product-details-buy-form").find("#add-on-products-currency-thousandsDelimiter").val(),n=$(".product-details-buy-form").find("#add-on-products-currency-decimalDelimiter").val(),i=$(".product-details-buy-form").find("#add-on-products-currencyPosition").val(),a=$(".product-details-buy-form").find("#add-on-products-currency").val(),c=0;$(".add-on-product-row").each(function(e,t){var i=$(t).find(".add-on-product-checkbox"),a=$(t).find(".add-on-product-amount-input"),t=$(t).find(".add-on-hidden-price");$(i).is(":checked")&&(i=formatCurrencyAsFloat(i=$(t).val(),o,n),t=$(a).val(),t=parseInt(t),c+=i*t)}),$(e).each(function(e,t){updateProductTotalPriceElement(t,c,o,n,a,i)})}function updateProductTotalPriceElement(e,t,i,a,o,n){var c=$(e).find(".Price_ProductInfo_Content"),r=$(e).data("unitprice"),s=formatNumberToCurrencyString(parseFloat(r)+t,i,a);if(0<c.length){switch(n){case"0":s=s+" "+o;break;case"1":s=o+" "+s}c.html(s)}else $(e).html(s)}document.getElementsByClassName=function(e,t){for(var t=t===undefined?"*":t,i=[],a=new RegExp("\\b"+e+"\\b"),o=this.getElementsByTagName(t),n=0;n<o.length;n++){var c=o[n].className;a.test(c)&&i.push(o[n])}return i},jQuery.fn.center=function(){this.css("position","absolute");var e=document.body.clientHeight,t=document.body.clientWidth,e=Math.max(e/2-this.height()/2),t=Math.max(t/2-this.width()/2);return this.offset({top:e,left:t}),this},$(document).ready(function(){window.windowHeightForDialogPosition=window.innerHeight}),$(window).resize(function(){window.windowHeightForDialogPosition=window.innerHeight}),!function(e){var o=/([^&=]+)=?([^&]*)/g,t=/\+/g,n=function(e){return decodeURIComponent(e.replace(t," "))};e.parseParams=function(e){e=(e=e.replace("?","")).toLowerCase();for(var t={};a=o.exec(e);){var i=n(a[1]),a=n(a[2]);"[]"===i.substring(i.length-2)?(t[i=i.substring(0,i.length-2)]||(t[i]=[])).push(a):t[i]=a}return t}}(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.