﻿/*!
 * OutSystems Platform Server 11.13.1.31652
 * Copyright OutSystems Inc. All rights reserved.
 */
function OsAjax(a,b,c,d,e,f){outsystems.internal.$(function(){try{clearTimeout(osAjaxDelayedTimeout),osQueue.push(b),osQueue.push(c),osQueue.push(d),osQueue.push(e),osQueue.push(OsBuildAjaxEventContext(a,b,f)),5==osQueue.length&&OsCallQueue()}catch(g){window.OsHandleSystemException&&window.OsHandleSystemException(g,"OsAjax")}})}function OsAjaxDelayedTrigger(){try{clearTimeout(osAjaxDelayedTimeout);for(var a=0;a<os_t_origin.length;a++){var b=os_t_origin[a];OsAjax(os_t_e[a],b,os_t_eventTarget[a],os_t_ajaxEvent[a],os_t_bucketIds[a],"")}os_t_e=[],os_t_origin=[],os_t_eventTarget=[],os_t_ajaxEvent=[],os_t_bucketIds=[]}catch(c){window.OsHandleSystemException&&window.OsHandleSystemException(c,"OsAjaxDelayedTrigger")}}function OsOnChangeCheck(){var previousValue=osOnChangeElement.data("currentValue"),domElement=osOnChangeElement.get(0),currentValue=OsGetElementValue(domElement);OsIsEqual(currentValue,previousValue)||(eval(domElement.attributes.onoschange.value),osOnChangeElement.data("currentValue",currentValue))}function OsStopOnChangeChecking(){clearInterval(osOnChangeCheckInterval)}function OsStartOnChangeChecking(a){OsStopOnChangeChecking(),null!=a.attributes.onoschange&&(osOnChangeElement=outsystems.internal.$(a),osOnChangeCheckInterval=setInterval(OsOnChangeCheck,50))}function OsInitializeOnChangeElement(a){var b=outsystems.internal.$(a);if(null==b.data("currentValue")){var c=OsGetElementValue(a);b.data("currentValue",c),null==b.data("ajaxSentValue")&&b.data("ajaxSentValue",c)}}function OsInitializeOnChange(a){for(var b=a.getElementsByTagName?a:a.get(0),c=b.getElementsByTagName("input"),d=b.getElementsByTagName("textarea"),e=b.getElementsByTagName("select"),f=OsIsIE(),g=0;g<c.length;g++){var h=c[g];(null!=h.attributes.onoschange||null!=h.attributes.onclick)&&OsInitializeOnChangeElement(h),f&&osFocusBackend.InitializeOnFocusHandler(h)}for(var g=0;g<d.length;g++){var i=d[g];null!=i.attributes.onoschange&&OsInitializeOnChangeElement(i),f&&osFocusBackend.InitializeOnFocusHandler(i)}for(var g=0;g<e.length;g++){var j=e[g];(null!=j.attributes.onoschange||null!=j.attributes.onchange)&&OsInitializeOnChangeElement(j),f&&osFocusBackend.InitializeOnFocusHandler(j)}}function OsGetElementValue(a){return"checkbox"==a.type||"radio"==a.type?a.checked:"select-multiple"==a.type?OsGetSelectedIndexes(a):a.value}function OsSetElementValue(a,b){"checkbox"==a.type||"radio"==a.type?a.checked=b:"select-multiple"==a.type?OsSetSelectedIndexes(a,b):a.value=b}function OsGetSelectedIndexes(a){for(var b=new Array,c=0;c<a.options.length;c++)a.options[c].selected&&b.push(a.options[c].value);return b}function OsSetSelectedIndexes(a,b){for(var c=0;c<b.length;c++)a.options[b[c]].selected=!0}function OsArrayIndexOf(a,b){for(var c=0;c<a.length;c++)if(a[c]==b)return c;return-1}function OsArrayEquals(a,b){if(a.length!=b.length)return!1;for(var c=0;c<a.length;c++)if(a[c]!=b[c])return!1;return!0}function OsArrayRemoveIndex(a,b){for(var c=[],d=0;d<a.length;d++)d!=b&&c.push(a[d]);return c}function OsIsEqual(a,b){return a.push&&b.push?OsArrayEquals(a,b):a==b}function OsIsDescendant(a,b){return null!=a&&null!=b?a.parentNode==b||a.parentNode!=document&&OsIsDescendant(a.parentNode,b):!1}function OsIsIE(){return/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent)}function OsAjaxDelayed(a,b,c,d,e,f){if(!osLosingFocus){clearTimeout(osAjaxDelayedTimeout);var g=OsArrayIndexOf(os_t_origin,b);-1!=g?(os_t_e[g]=a,os_t_origin[g]=b,os_t_eventTarget[g]=c,os_t_ajaxEvent[g]=d,os_t_bucketIds[g]=e):(os_t_e.push(a),os_t_origin.push(b),os_t_eventTarget.push(c),os_t_ajaxEvent.push(d),os_t_bucketIds.push(e)),osAjaxDelayedTimeout=setTimeout(OsAjaxDelayedTrigger,f)}}function OsNotifyWidget(a,b){OsNotify(a,b)}function OsNotify(a,b){OsAjax(null,"",a,"Notify","__OSVSTATE,",b)}function OsBuildAjaxEventContext(a,b,c){var d=Math.floor(outsystems.internal.$(document).width()),e=Math.floor(outsystems.internal.$(document).height()),f=b,g=0,h=0;if(""!=b){var i=outsystems.internal.$("#"+b),j=i.offset();null!==j&&"object"==typeof j&&(g=Math.floor(j.top),h=Math.floor(j.left))}var k=Math.floor(outsystems.internal.$(document).scrollTop()),l=Math.floor(outsystems.internal.$(document).scrollLeft()),m=0,n=0;try{null!=a&&(m=Math.floor(a.PageX?a.PageX:a.clientX+l),n=Math.floor(a.PageY?a.PageY:a.clientY+k))}catch(a){}isNaN(m)&&(m=0),isNaN(n)&&(n=0);var o=",";return d+o+e+o+f+o+g+o+h+o+k+o+l+o+m+o+n+o+c}function OsCallQueue(){var a=osQueue[0],b=osQueue[1],c=osQueue[2],d=osQueue[3],e=osQueue[4];OsExecuteCallToServer(a,b,c,d,e)}function OsIeCleanProgressBar(){}function OsSetRequestInfo(a,b,c){osAjaxBackend.SetRequestInfo(a,b,c)}function OsEndRequest(){osAjaxBackend.EndRequest();var a=osQueue[2];if("Change"==a){var b=document.getElementById(osQueue[0]);if(null!=b){var c=outsystems.internal.$(b).data("ajaxSentValue"),d=OsGetElementValue(b);if(null!=c&&!OsIsEqual(d,c)&&("input"!=b.tagName.toLowerCase()||"text"!=b.type&&"password"!=b.type&&"radio"!=b.type))return OsCallQueue(),void 0}}setTimeout(OsExecuteNextInQueue,0)}function OsExecuteNextInQueue(){osQueue.length>0&&(osQueue.shift(),osQueue.shift(),osQueue.shift(),osQueue.shift(),osQueue.shift()),osQueue.length>0&&OsCallQueue()}function OsInitializeSpanDisplay(a){return"inline"==a.css("display")?a.add(a.children().filter(function(){return"block"==outsystems.internal.$(this).css("display")})):a}function OsRegisterEffectHighlight(){osCurrentAfterChange=function(a){return function(b){if(null!=a&&a(b),"none"!=b.css("display")){var c=OsInitializeSpanDisplay(b);b.hide(),c.effect("highlight",{color:osRegisterEffectHighlightColor},osRegisterEffectHighlightTime)}}}(osCurrentAfterChange)}function OsRegisterEffectListRemoveHighlight(){osCurrentBeforeChange=function(a){return function(b){null!=a&&a(b),"none"!=b.css("display")&&OsInitializeSpanDisplay(b).effect("highlight",{color:osRegisterEffectHighlightColor},osRegisterEffectListRemoveHighlightTime)}}(osCurrentBeforeChange)}function OsRegisterEffectFade(){osCurrentBeforeChange=function(a){return function(b){null!=a&&a(b),"none"!=b.css("display")&&OsInitializeSpanDisplay(b).customFadeTo(osRegisterEffectFadeOutTime,.01)}}(osCurrentBeforeChange),osCurrentAfterChange=function(a){return function(b){"none"!=b.data("display")&&(b.css("opacity","0.01"),OsInitializeSpanDisplay(b).customFadeTo(osRegisterEffectFadeInTime,1)),null!=a&&a(b)}}(osCurrentAfterChange)}function OsRegisterEffectVerticalSlide(){osCurrentBeforeChange=function(a){return function(b){null!=a&&a(b),"none"!=b.css("display")&&OsInitializeSpanDisplay(b).slideUp(osRegisterEffectVerticalSlideUpTime)}}(osCurrentBeforeChange),osCurrentAfterChange=function(a){return function(b){"none"!=b.data("display")&&(b.css("display","none"),OsInitializeSpanDisplay(b).slideDown(osRegisterEffectVerticalSlideDownTime)),null!=a&&a(b)}}(osCurrentAfterChange)}function OsSetInnerHTML(a,b){if(OsIsIE())switch(a.tagName.toLowerCase()){case"table":case"tbody":case"thead":case"tfoot":case"tr":var c;"table"==a.tagName.toLowerCase()?c="<table>"+b+"</table>":"tr"==a.tagName.toLowerCase()&&(c="<table><tr>"+b+"</tr></table>");var d=a.ownerDocument.createElement("div");d.innerHTML=c;var e;for("table"==a.tagName.toLowerCase()?e=d.firstChild:/tbody|thead|tfoot/.test(a.tagName.toLowerCase())?e=d.firstChild.firstChild:"tr"==a.tagName.toLowerCase()&&(e=d.firstChild.firstChild.firstChild);a.hasChildNodes();)a.removeChild(a.firstChild);for(;e.hasChildNodes();)a.appendChild(e.firstChild);break;case"span":var d=a.ownerDocument.createElement("div");for(d.innerHTML=b;a.hasChildNodes();)a.removeChild(a.childNodes[0]);for(;d.hasChildNodes();)a.appendChild(d.childNodes[0]);break;case"img":break;default:a.innerHTML=b}else{if("img"==a.tagName.toLowerCase())return;a.innerHTML=b}}function OsExtractScriptTags(a){var b=[],c="",d=a,e=/<script/i,f=/<\/script/i,g=/<!--/i,h=/<!\[CDATA\[/i;if(a.jquery)c=a.get(0).innerHTML;else for(;;){var i=d.search(e);if(-1==i){c=c.concat(d);break}if(0!=i){var j=d.slice(0,i);c=c.concat(j),d=d.substring(i),i=0}var k=d.indexOf(">")+1,l=d.search(f),m=l+9,n=outsystems.internal.$.trim(d.slice(k,l));0==n.search(g)?n=n.substring(4,n.length-3):0==n.search(h)&&(n=n.substring(9,n.length-3)),b.push(n),d=d.substring(m)}return{scripts:b,htmlWithoutScripts:c}}function OsRemoveOldAttributes(a){for(var b=a.get(0),c=[],d=b.attributes,e=0;e<d.length;e++){var f=d[e];if(f.specified){var g=f.name;"jQuery"!=g.substr(0,6)&&c.push(g)}}for(var e=0;e<c.length;e++){var h=c[e];outsystems.internal.$(b).removeAttr(h)}}function OsAddNewAttributes(a,b){var c=a.get(0),d="true"==a.data("keepDisplayData"),e=!1;for(var f in b){var g=b[f],h="on"==f.substring(0,2);if(OsIsIE()&&"style"==f)c.style.cssText=g;else if(h)h&&OsIsIE()&&outsystems.internal.$(c).removeAttr(f);else{var i=OsIsIE()?outsystems.internal.$.propFix[f]||f:f;if("IMG"==c.tagName&&"src"==i){var j=outsystems.internal.$("<div/>").html(g).text();outsystems.internal.$(c).attr(f,j)}else outsystems.internal.$(c).attr(f,g)}if(h){var k=f.substr(2);a.unbind(k,null);var j=outsystems.internal.$("<div/>").html(g).text();a.bind(k,new Function("event",j))}else"style"==f&&(e=!0,d||a.data("display",a.css("display")))}e||d||a.data("display",null),"SPAN"!=c.nodeName||c.hasChildNodes()||(a.data("display","none"),a.css("display","none"))}function OsReplaceWith(a,b,c,d){var e,f=a.get(0);e=b.jquery?b.slice(1).add(d):d;var g,h=null,i=null,j=document.getElementById(osQueue[0]),k=osFocusBackend.GetCurrentFocusedElement(),l=null;if(k&&OsIsDescendant(k,a.get(0))&&(g=osFocusBackend.Save()),j!=k&&OsIsDescendant(j,a.get(0))&&(h=OsGetElementValue(j),i=outsystems.internal.$(j).data("ajaxSentValue")),null!=j&&"radio"==j.type)for(var m=document.getElementsByTagName("input"),n=0;n<m.length;n++){var o=m[n];if("radio"==o.type&&o.name==j.name&&OsGetElementValue(o)){l=o.id;break}}osLosingFocus=!0;var p=OsExtractScriptTags(b);OsSetInnerHTML(f,p.htmlWithoutScripts),OsRemoveOldAttributes(a),OsAddNewAttributes(a,c);for(var n=0;n<p.scripts.length;n++)OsEvaluateUserJavaScript(p.scripts[n]);if(null!=e)for(var n=0;n<e.length;n++)OsEvaluateUserJavaScript(e.get(n).innerHTML);if(osLosingFocus=!1,g){var q=null!=g.ajaxSentValue&&g.value!=g.ajaxSentValue;osCurrentAfterChange=function(a){return function(b){null!=a&&a(b),b.queue(function(){window.setTimeout(function(){osFocusBackend.Restore(g,q)},13),b.dequeue()})}}(osCurrentAfterChange)}if(null!=h){var q=h!=i;if(q){var r=document.getElementById(osQueue[0]);null!=r&&(OsSetElementValue(r,h),outsystems.internal.$(r).data("ajaxSentValue",i))}}null!=l&&null!=document.getElementById(l)&&OsSetElementValue(document.getElementById(l),!0)}function OsJSONUpdate(a){try{OsJSONUpdateQueue.push(a),1==OsJSONUpdateQueue.length&&OsExecuteJSONUpdate(a)}catch(b){window.OsHandleSystemException&&window.OsHandleSystemException(b,"OsJSONUpdate")}}function OsRefreshElement(a,b,c,d){void 0==a.data("OsOnBeforeChange")&&(a.data("OsOnBeforeChange",[]),a.data("OsOnAfterChange",[])),a.queue(function(){var d=a.queue().length;null!=osCurrentBeforeChange&&osCurrentBeforeChange(a,b,c);var e=a.queue().slice(0,1).concat(a.queue().slice(d)).concat(a.queue().slice(1,d));a.queue(e),a.dequeue()}),a.queue(function(){OsReplaceWith(a,b,c,d),OsInitializeOnChange(a),a.dequeue()}),a.queue(function(){var b=a.queue().length;null!=osCurrentAfterChange&&osCurrentAfterChange(a);var c=a.queue().slice(0,1).concat(a.queue().slice(b)).concat(a.queue().slice(1,b));a.queue(c),a.dequeue()})}function OsGetAttributesObject(a){for(var b={},c=0;c<a.attributes.length;c++){var d=a.attributes[c];d.specified&&"jQuery"!=d.name.substr(0,6)&&"style"!=d.name?b[d.name]=d.value:"style"==d.name&&(b[d.name]="null"==d.value?a.style.cssText:d.value)}return b}function OsEvaluateUserJavaScript(a){a="try {\n"+a+"\n} catch (e) { window.OsHandleException(e, window.outsystems.osErrorCodes.UserJavascriptError, 'OsEvaluateUserJavascript'); }";try{outsystems.internal.$.globalEval(a)}catch(b){if(!(b instanceof SyntaxError))throw b}}function OsHandleSystemException(a,b){OsHandleException(a,outsystems.osErrorCodes.SystemJavascriptError,b)}function OsAlertExceptionHandler(a,b,c,d){alert("Error #"+c+"\n"+d+" Exception.\nName: "+b.name+"\nMessage: "+b.message)}function OsRegisterExceptionHandler(a){outsystems.internal.$(document).bind("osException",a)}function OsHandleException(a,b,c){OsLogException(a),outsystems.internal.$(document).trigger("osException",[a,b,c])}function OsLogException(a){window.console&&window.console.error&&(window.console.error(a),a.stack&&window.console.error(a.stack))}function OsLoadNextScript(a){a.blockJs.shift(),0==a.blockJs.length&&(a.blockJs=null),OsExecuteJSONUpdate(a)}function OsExecuteJSONUpdate(a){if("undefined"!=typeof outsystems.internal.$._waitForViewstate&&1==outsystems.internal.$._waitForViewstate)return window.setTimeout(function(){OsExecuteJSONUpdate(a)},10),void 0;if(a.blockJs){var b=outsystems.internal.$(document).data("LoadedScripts");if(null==b){b=[];for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var e=outsystems.internal.$(c[d]).attr("src");void 0!=e&&""!=e&&b.push(e)}}var f=a.blockJs[0],JS_CACHE_INVALIDATION=1;return-1==OsArrayIndexOf(b,f)?outsystems.internal.$.ajax({type:"GET",url:f,dataType:"script",ignore_me:1,cache:true,ignore_me_too:1,success:function(){b.push(f),outsystems.internal.$(document).data("LoadedScripts",b),OsLoadNextScript(a)}}):OsLoadNextScript(a),void 0}osCurrentBeforeChange="function"==typeof OsOnBeforeChange?OsOnBeforeChange:null,osCurrentAfterChange="function"==typeof OsOnAfterChange?OsOnAfterChange:null;for(var g in a.hidden)outsystems.internal.$("#"+g).attr("value",a.hidden[g]);if(a.js)for(var d=0;d<a.js.length;d++)OsEvaluateUserJavaScript(a.js[d]);a.__RedirectToURL&&OsRedirectToURL(a.__RedirectToURL);var h=!1;for(var i in a.outers)if(null!=document.getElementById(i)){h=!0;var j=outsystems.internal.$("#"+i),k=a.outers[i];OsRefreshElement(j,k.inner,k.attributes),j.queue(function(){OsExecuteNextJSONUpdate(),j.dequeue()})}for(var i in a.list)if(null!=document.getElementById(i)){h=!0;var l,m,n,j=outsystems.internal.$("#"+i),o=a.list[i],p=o[0],q=o[1],r=o[2],s=o[3];s?(l=o[4],m=o[5]):n=o[4];var t=outsystems.internal.$(p);"TABLE"==j.prop("tagName")?OsExecuteTableRecordOperation(j,i,q,r,p,t,l,m):OsExecuteListRecordOperation(j,i,q,r,p,t,n)}h||OsExecuteNextJSONUpdate()}function OsExecuteTableRecordOperation(a,b,c,d,e,f,g,h){var j=a.children("tbody"),k="";(2==c||3==c)&&a.is&&a.is(".EditableTable")&&(k=":not(.RowControlGroup)");var l=j.children(k);1==c&&d==l.length&&(c=0),0==c&&(d=l.length-1);var m,n;if(0==c||1==c){var o=a.hasClass("Empty");o&&(j.get(0).removeChild(l[0]),a.removeClass("Empty")),m=outsystems.internal.$("<tr>"+f.html()+"</tr>"),0==j.children().length?j.html(m):1==c?outsystems.internal.$(l[d]).before(m):outsystems.internal.$(l[d]).after(m),OsIsIE()&&m.html(m.html());var p=m.children(),q=f.eq(0).children();for(OsRemoveOldAttributes(m),OsAddNewAttributes(m,OsGetAttributesObject(f.get(0))),OsSetRowOddEvenStyle(d,f,g,h),i=0;i<p.length;i++){var r=outsystems.internal.$(p[i]),s=outsystems.internal.$(q[i]),t=null;i+1==p.length&&(t=f.slice(1),n=r),OsRefreshElement(r,s,OsGetAttributesObject(s.get(0)),t)}OsSetTableRowOddEvenStyles(j,d,g,h),n.queue(function(){OsExecuteNextJSONUpdate(),n.dequeue()})}else if(2==c){var u;m=outsystems.internal.$(l[d]),""==e?u=outsystems.internal.$("<tr>"+m.html()+"</tr>"):(u=f,a.addClass("Empty"));var v,p=m.children(),w=u.children();for(i=0;i<p.length;i++){var r=outsystems.internal.$(p[i]);0==i&&(v=r);var x;x=i<w.length?outsystems.internal.$(w[i]):outsystems.internal.$('<td style="display:none"/>'),r.data("display","none"),r.data("keepDisplayData","true"),OsRefreshElement(r,x,OsGetAttributesObject(x.get(0)))}v.queue(function(){m.replaceWith(e),OsSetTableRowOddEvenStyles(j,d,g,h),OsExecuteNextJSONUpdate(),v.dequeue()})}else if(3==c){m=outsystems.internal.$(l[d]);var p=m.children(),q=f.eq(0).children();for(OsRemoveOldAttributes(m),OsAddNewAttributes(m,OsGetAttributesObject(f.get(0))),i=0;i<p.length;i++){var r=outsystems.internal.$(p[i]),s=outsystems.internal.$(q[i]),t=null;i+1==p.length&&(t=f.slice(1),n=r),OsRefreshElement(r,s,OsGetAttributesObject(s.get(0)),t)}n.queue(function(){OsExecuteNextJSONUpdate(),n.dequeue()})}}function OsExecuteListRecordOperation(a,b,c,d,e,f,g){var h,i;g?(h=outsystems.internal.$(a.children()[0]).children(),i=0==h.length):h=a.children();var j=outsystems.internal.$(h[d]),k=g?"li":"span",l="<"+k+">",m="</"+k+">";if(1==c&&d==h.length&&(c=0),0==c&&(d=h.length-1),0==c||1==c){var n,o=!1;n=i?outsystems.internal.$(a.get(0).lastChild):outsystems.internal.$(h[0]),n.attr("id")==b+"_EmptyMsg"&&(n.css("display","none"),o=!0);var p=outsystems.internal.$(l+f.html()+m);p.css("display","none"),i?outsystems.internal.$(a.get(0).firstChild).html(p):1==c?outsystems.internal.$(h[d]).before(p):outsystems.internal.$(h[d]).after(p),OsRefreshElement(p,f,OsGetAttributesObject(f.get(0))),o&&outsystems.internal.$(n).replaceWith(""),p.queue(function(){OsExecuteNextJSONUpdate(),p.dequeue()})}else if(2==c){var q;""==e||g?(q=outsystems.internal.$(l+j.html()+m),q.css("display","none")):q=f,OsRefreshElement(j,q,OsGetAttributesObject(q.get(0))),""!=e&&g&&j.queue(function(){a.html("<ul/>");var b=outsystems.internal.$(e);b.css("display","none"),outsystems.internal.$(a.get(0).firstChild).after(b),OsRefreshElement(b,f,OsGetAttributesObject(f.get(0))),OsExecuteNextJSONUpdate(),j.dequeue()}),j.queue(function(){""==e&&j.replaceWith(""),OsExecuteNextJSONUpdate(),j.dequeue()})}else 3==c&&(OsRefreshElement(j,f,OsGetAttributesObject(f.get(0))),j.queue(function(){OsExecuteNextJSONUpdate(),j.dequeue()}))}function OsExecuteNextJSONUpdate(){OsJSONUpdateQueue.shift(),OsJSONUpdateQueue.length>0&&OsExecuteJSONUpdate(OsJSONUpdateQueue[0])}function OsSetTableRowOddEvenStyles(a,b,c,d){rows=a.children();for(var e=b;e<rows.length;e++)OsSetRowOddEvenStyle(e,rows[e],c,d)}function OsSetRowOddEvenStyle(a,b,c,d){var e=0==a%2?c:d,f=0==a%2?d:c,g=outsystems.internal.$(b).children();return g.each(function(){var a=outsystems.internal.$(this);a.hasClass(f)&&(a.removeClass(f),a.attr("class",e+" "+a.attr("class")))}),e}function OsRedirectToURL(a){""!=this.location.port&&-1==a.replace("://","").indexOf(":")&&(a=a.replace(this.location.hostname,this.location.hostname+("80"!=this.location.port?":"+this.location.port:""))),osQueue=[],osAjaxBackend.stopped=!0,window.OsOnBeforeChange&&window.OsOnBeforeChange();try{this.location.assign(a)}catch(b){OsLogException(b)}}function GetOSForm(){return 1==document.forms.length?document.forms[0]:document.getElementById("__OSVSTATE").form}function OsExecuteCallToServer(a,b,c,d,e){if(null==a&&(a=""),""!=a&&null==document.getElementById(a))return OsExecuteNextInQueue(),void 0;if(OsIsIE()&&""!=a&&"A"==document.getElementById(a).nodeName&&osFocusBackend.ClearFocusedElement(),"Change"==c){var f=outsystems.internal.$("#"+a),g=f.data("ajaxSentValue"),h=OsGetElementValue(f.get(0));if(null!=g&&OsIsEqual(h,g))return OsExecuteNextInQueue(),void 0}try{var i=GetOSForm();osAjaxBackend.CallToServer(i,b,c,d,e)}catch(j){window.OsHandleSystemException&&window.OsHandleSystemException(j,"OsExecuteCallToServer")}}function OsInputPrompt_Bootstrap(a,b){return outsystems.internal.support.placeholder.textarea&&outsystems.internal.support.placeholder.input?("undefined"!=typeof b&&(document.getElementById(a).placeholder=b),void 0):(outsystems.internal.$(function(c){var d=c("#"+a);"undefined"==typeof b&&(b=d.attr("placeholder"));var e=OsInputPrompt_GetInputData(d);e.prompt="right"==d.css("textAlign")?"	"+b:b+"	",d.attr("title",b),d.attr("AUTOCOMPLETE","OFF");var f=function(){OsInputPrompt_OnFocus(a)},g=function(){OsInputPrompt_OnBlur(a)},h=function(){OsInputPrompt_OnBeforeSubmit(a)},i=function(){OsInputPrompt_OnAfterSubmit(a)};if(d.bind("focus",f),d.bind("blur",g),!e.hasRegisteredGlobalHandlers){if(d.get(0).form){var j=h;d.get(0).form.onsubmit&&(j=function(a,b,c){return function(d){return b(),a(d)?!0:(c(),!1)}}(d.get(0).form.onsubmit,h,i)),d.get(0).form.onsubmit=j;var k=d.get(0).form;c(window).unload(function(){k.onsubmit=null})}OsPage_ClientValidate&&(OsPage_ClientValidate=function(a,b,c){return function(d){b();var e=a(d);return c(),e}}(OsPage_ClientValidate,h,i)),osAjaxBackend.BindBeforeSubmit(h),osAjaxBackend.BindAfterSubmit(i),e.hasRegisteredGlobalHandlers=!0}d=null,OsInputPrompt_OnBlur(a)}),void 0)}function OsInputPrompt_GetInputData(a){var b={};if(a.get(0)){var c=outsystems.internal.$,d=c(a.get(0).form).data("OsInputPrompt");d||c(a.get(0).form).data("OsInputPrompt",d={}),b=d[a.attr("id")],b||(d[a.attr("id")]=b={})}return b}function OsInputPrompt_OnFocus(a){var b=outsystems.internal.$,c=b("#"+a),d=OsInputPrompt_GetInputData(c);return OsInputPrompt_IsEmpty(c,d)&&c.attr("value",""),c.removeClass("Prompt"),!0}function OsInputPrompt_OnBlur(a){var b=outsystems.internal.$,c=b("#"+a),d=OsInputPrompt_GetInputData(c);return OsInputPrompt_IsEmpty(c,d)&&(c.addClass("Prompt"),c.attr("value",d.prompt)),!0}function OsInputPrompt_IsEmpty(a,b){return""==a.val()||a.val()==b.prompt}function OsInputPrompt_OnBeforeSubmit(a){return OsInputPrompt_OnFocus(a),!0}function OsInputPrompt_OnAfterSubmit(a){var b=osFocusBackend.GetCurrentFocusedElement();return b&&b.id==a||OsInputPrompt_OnBlur(a),!0}function getEventSrc(a){return a.target?a.target:a.srcElement}function getFormat(a){var b=_DATE_FORMAT;return a==ctTypeDtm?b=_DATE_TIME_FORMAT:a==ctTypeTim&&(b=_TIME_FORMAT),b}function OsFmtFrmElemGetInfoReturn(a,b,c){this.flgOk=a,this.flgOk?(this.objValue=b,this.strPrintable=OsFmtValueGetPrintable(c,b)):(this.objValue="",this.strPrintable="")}function OsIsEmpty(a){return null==a||""==a+""?!0:!1}function OsParseNumberToArray(a,b,c){if(a.intType!=ctTypeNbr)return"NaN";if(1==c&&""!=a.strThousandsSeparator)for(;-1!=b.toString().indexOf(a.strThousandsSeparator);)b=b.toString().replace(a.strThousandsSeparator,"");if(a.flgIsDecimal)var d=/^[+-]?(\d*)[\.,\.](\d+)$|^[+-]?(\d+)$/;else var d=/^[+-]?(\d+)$/;var e=d.exec(b);if(e){var f=new Array(2);return f[0]="-"==b.toString().charAt(0)?"-":"",a.flgIsDecimal?""==e[3]||"undefined"==typeof e[3]?(f[1]=""==e[1]?"0":e[1],f[2]=e[2]):(f[1]=e[3],f[2]=""):(f[1]=e[1],f[2]=""),f}return"NaN"}function OsDataType(a){this.intType=a,a==ctTypeDte||a==ctTypeDtm?(this.intFormat=OsDataType.arguments[1],this.strSeparator=OsIsEmpty(OsDataType.arguments[2])?"/":OsDataType.arguments[2],this.intFormat==ctYMD?(this.intDateFirstPart=ctYearIdx,this.intDateSecondPart=ctMonthIdx,this.intDateThirdPart=ctDayIdx):(this.intFormat=ctDMY,this.intDateFirstPart=ctDayIdx,this.intDateSecondPart=ctMonthIdx,this.intDateThirdPart=ctYearIdx),a==ctTypeDtm&&(this.intTimeFormat=ctHMS,this.strTimeSeparator=":")):a==ctTypeNbr?(OsIsEmpty(OsDataType.arguments[1])?(this.flgIsDecimal=!1,this.strDecimalSeparator="",this.strThousandsSeparator="",this.intDecimalPlaces=ctNbrDecimalPlacesDefault):(this.flgIsDecimal=OsDataType.arguments[1],this.intDecimalPlaces=ctNbrDecimalPlacesDefault,this.strThousandsSeparator=OsDataType.arguments[3],this.strDecimalSeparator=OsDataType.arguments[2],OsIsEmpty(OsDataType.arguments[3])||"false"==OsDataType.arguments[3]+""||(this.strThousandsSeparator=OsDataType.arguments[3]==this.strDecimalSeparator?ctNbrThousandsSepDefault:OsDataType.arguments[3]),OsIsEmpty(OsDataType.arguments[4])||1!=this.flgIsDecimal||(this.intDecimalPlaces=OsDataType.arguments[4]<-1?ctNbrDecimalPlacesDefault:OsDataType.arguments[4])),this.isLongInt=!1,1==OsDataType.arguments[4]&&(this.isLongInt=!0)):a==ctTypeTim&&(OsIsEmpty(OsDataType.arguments[1])?(this.intTimeFormat=ctHMS,this.strTimeSeparator=":"):(this.intTimeFormat=OsDataType.arguments[1],this.strTimeSeparator=OsIsEmpty(OsDataType.arguments[2])?":":OsDataType.arguments[2]))}function OsRemoveRightSpaces(a){if(a=a.toString(),""==a)return a;for(var b=a.length;b>=0;){var c=a.substring(b,b-1);if(" "!=c)break;a=a.substring(0,b-1),b=a.length}return a}function OsRemoveLeftSpaces(a){for(a=a.toString();""!=a&&" "==a.charAt(0);)a=a.substring(1,a.length);return a}function OsRemoveSpaces(a){return""==a+""?"":""!=(a=OsRemoveLeftSpaces(a))?OsRemoveRightSpaces(a):""}function OsParseDigits(a){if(""==a+"")return 0;var b,c=0;for(b=0;b<a.length;b++){var d=a.charAt(b);if(isNaN(parseInt(d)))return c;c++}return c}function OsParseSeparator(a){if(""==a+"")return 0;if(OsIsEmpty(OsParseSeparator.arguments[1]))var b=new Array("/","-",".");else var b=new Array(OsParseSeparator.arguments[1]);var c,d=a.charAt(0);for(c=0;c<b.length;c++)if(d==b[c])return 1;return 0}function OsMsgBoxError(a,b,c){return alert(b),c&&a.focus(),!1}function OsFocusReturnError(a,b){return b&&a.focus(),!1}function OsFmtFrmElemGetInfo(a,b){if(a.intType==ctTypeStr)var c=OsRemoveRightSpaces(b.value);else var c=OsRemoveSpaces(b.value);if(OsIsEmpty(c))return new OsFmtFrmElemGetInfoReturn(!0,null,a);if(a.intType==ctTypeNbr){var d=OsParseNumberToArray(a,c,!0);if("NaN"==d)return new OsFmtFrmElemGetInfoReturn(!1);if(a.flgIsDecimal){if(d[1].length>28||d[2].length>28)return new OsFmtFrmElemGetInfoReturn(!1);var e=!1;"."==dtDecimal.strDecimalSeparator&&""==dtDecimal.strThousandsSeparator&&(e=!0);var f="",g="";return""!=d[2]&&(g="."+d[2]),f=e?d[0]+d[1]+g:c,new OsFmtFrmElemGetInfoReturn(!0,f,a)}if(a.isLongInt){if(d[1].length>19)return new OsFmtFrmElemGetInfoReturn(!1);var h=d[1],i=[9,2,2,3,3,7,2,0,3,6,8,5,4,7,7,5,8,0,7],j=[9,2,2,3,3,7,2,0,3,6,8,5,4,7,7,5,8,0,8],k="-"==d[0],l=h.toString().split("").map(Number),m=!0;if(19==l.length){for(var n=0;n<l.length&&!(l[n]<i[n])&&(!(l[n]>i[n])||(m=k?n==l.length-1&&l[n]<=j[n]:!1,m));n++);if(!m)return new OsFmtFrmElemGetInfoReturn(!1)}}else{if(d[1].length>10)return new OsFmtFrmElemGetInfoReturn(!1);var o=parseFloat(d[0]+d[1]);if(-2147483648>o||o>2147483647)return new OsFmtFrmElemGetInfoReturn(!1)}var p=d[0]+d[1],e=!1;"."==dtDecimal.strDecimalSeparator&&""==dtDecimal.strThousandsSeparator&&(e=!0);var f=e?p.toString():c;return new OsFmtFrmElemGetInfoReturn(!0,f,a)}if(a.intType==ctTypeDte||a.intType==ctTypeDtm||a.intType==ctTypeTim){var q=getFormat(a.intType),r=getDateFromFormat(c,q);return null==r?new OsFmtFrmElemGetInfoReturn(!1):new OsFmtFrmElemGetInfoReturn(!0,r,a)}return new OsFmtFrmElemGetInfoReturn(!0,c,a)}function OsFmtValueGetPrintable(a,b){if(OsIsEmpty(b))return"";if(a.intType==ctTypeDte||a.intType==ctTypeDtm||a.intType==ctTypeTim){var c=getFormat(a.intType);return formatDate(new Date(b),c)}return a.intType==ctTypeNbr?(b=OsRemoveSpaces(b),b.valueOf()):(b=OsRemoveRightSpaces(b),b.valueOf())}function OsFmtFrmElemValidate(a,b,c,d,e,f){var g=null;if(null!=a.dotNetValidatorSource&&null!=a.dotNetValidatorArguments){var g=document.getElementById(a.dotNetValidatorSource.controltovalidate);(null==g||null==g.value||g.value!=a.dotNetValidatorArguments.Value)&&(g={value:a.dotNetValidatorArguments.Value})}else g=a;if(null!=f&&(f.value=!0),c||(g.value=e.intType==ctTypeStr?OsRemoveRightSpaces(g.value):OsRemoveSpaces(g.value)),OsIsEmpty(g.value)&&b)return OsFocusReturnError(g,b);if(e.intType!=ctTypeStr&&e.intType!=ctTypeNbr&&e.intType!=ctTypeDte&&e.intType!=ctTypeDtm&&e.intType!=ctTypeTim)return OsMsgBoxError(g,"Unknown datatype to validate: '"+e.intType+"'",d);var h=OsFmtFrmElemGetInfo(e,g);return h.flgOk?(c||(g.value=h.strPrintable),!0):OsFocusReturnError(g,b)}function existsInArray(a,b){var c;for(c=0;c<a.length;c++)if("string"==typeof a[c]&&a[c]==b)return!0;return!1}function continueValidation(a,b){var c=null;if("string"!=typeof b.srcElement)return outsystems.internal.$&&b.srcElement instanceof outsystems.internal.$?$.contains(b.srcElement[0],document.getElementById(a.controltovalidate)):!0;if(c=document.getElementById(b.srcElement),null!=c&&"undefined"!=typeof c.elementsToValidate){var d=c.elementsToValidate;return null==d?!0:existsInArray(c.elementsToValidate,a.controltovalidate)}return!0}function OsCustomValidatorCurrency(a,b){OsCustomValidatorDecimal(a,b)}function OsCustomValidatorDate(a,b){var c=a.controltovalidate&&document.getElementById(a.controltovalidate);return c&&"INPUT"===c.tagName.toUpperCase()&&/date/i.test(c.type)?(b.IsValid=!0,void 0):(continueValidation(a,b)&&(b.IsValid=OsFmtFrmElemValidate({dotNetValidatorSource:a,dotNetValidatorArguments:b},!1,!1,!1,dtDate,null)),void 0)}function OsCustomValidatorDateTime(a,b){var c=a.controltovalidate&&document.getElementById(a.controltovalidate);return c&&"INPUT"===c.tagName.toUpperCase()&&/date/i.test(c.type)?(b.IsValid=!0,void 0):(continueValidation(a,b)&&(b.IsValid=OsFmtFrmElemValidate({dotNetValidatorSource:a,dotNetValidatorArguments:b},!1,!1,!1,dtDateTime,null)),void 0)}function OsCustomValidatorDecimal(a,b){continueValidation(a,b)&&(b.IsValid=OsFmtFrmElemValidate({dotNetValidatorSource:a,dotNetValidatorArguments:b},!1,!1,!1,dtDecimal,null))}function OsCustomValidatorInteger(a,b){continueValidation(a,b)&&(b.IsValid=OsFmtFrmElemValidate({dotNetValidatorSource:a,dotNetValidatorArguments:b},!1,!1,!1,dtInteger,null))}function OsCustomValidatorLongInteger(a,b){continueValidation(a,b)&&(b.IsValid=OsFmtFrmElemValidate({dotNetValidatorSource:a,dotNetValidatorArguments:b},!1,!1,!1,dtLongInteger,null))}function OsCustomValidatorPhoneNumber(a,b){continueValidation(a,b)&&OsCustomValidatorText(a,b)}function OsCustomValidatorEmail(a,b){if(continueValidation(a,b)){var c="[a-zA-Z0-9.!#$%&'*+\\-/=?^_`{|}~]+@[a-zA-Z0-9-]+(\\.[a-zA-Z0-9-]+)*",d="([0-9a-zA-Z\\\\= ]*|=\\?([^?]*)\\?([qQbB])\\?([^?]*)\\?=)",e=new RegExp("^"+c+"$"),f=new RegExp("^"+d+"[ ]*<"+c+">$"),g=new RegExp('^\\"'+d+'\\"[ ]*<'+c+">$");b.IsValid=e.test(b.Value)||f.test(b.Value)||g.test(b.Value)}}function OsCustomValidatorText(a,b){continueValidation(a,b)&&(b.IsValid=OsFmtFrmElemValidate({dotNetValidatorSource:a,dotNetValidatorArguments:b},!1,!1,!1,dtText,null))}function OsCustomValidatorTextNumeric(a,b){if(continueValidation(a,b)){var c=new RegExp("\\d*"),d=c.exec(b.Value);b.IsValid=null!=d&&b.Value==d[0]}}function OsCustomValidatorTime(a,b){var c=a.controltovalidate&&document.getElementById(a.controltovalidate);c&&"INPUT"===c.tagName.toUpperCase&&/time/i.test(c.type)&&(b.IsValid=!0)}function OSCustomValidatorRequiredField(a,b){continueValidation(a,b)&&(b.IsValid=OsValidatorTrim(b.Value)!=OsValidatorTrim(a.initialvalue))}function OsCustomValidator(a,b){OsCustomValidatorUnknown(a,b)}function OsCustomValidatorUnknown(a,b){continueValidation(a,b)&&(alert("Unknown type in field!"),OsFmtFrmElemValidate({dotNetValidatorSource:a,dotNetValidatorArguments:b},!1,!1,!1,dtText,null)),b.IsValid=!0}function OsLimitInput(a,b,c){var d=a.value.replace(/\r\n|\r/g,"\n").replace(/\n/g,"\r\n");if(d.length>c)a.value=d.substring(0,c);else{if(window.event&&getEventSrc(b).value.length>=c)return!1;if(b.target&&b.target==a&&a.value.length>=c){var e=/[a-zA-Z0-9\.\,\/]/;if(e.test(String.fromCharCode(b.which)))return b.stopPropagation(),!1}}}function OsLimitInputSC(a,b,c){var d=a.value.replace(/\r\n|\r/g,"\n").replace(/\n/g,"\r\n"),e=d.scLength();if(e>c)a.value=d.scSubstr(0,c);else{if(window.event&&getEventSrc(b).value.scLength()>=c)return!1;if(b.target&&b.target==a&&a.value.scLength()>=c){var f=/[a-zA-Z0-9\.\,\/]/;if(f.test(String.fromCharCode(b.which)))return b.stopPropagation(),!1}}}function OsEnterKey(a,b){if(""==a)return!0;var c=getEventSrc(b);if(c&&"textarea"==c.tagName.toLowerCase())return!0;if(OsDisableSubmitOnEnterKey)return!0;if(b.which&&13==b.which||b.keyCode&&13==b.keyCode){var d=document.getElementById(a);if(null!=d)if(c?outsystems.internal.$(c).change():outsystems.internal.$(":focus").change(),OsAjaxDelayedTrigger(),"input"==d.tagName.toLowerCase())d.click();else if("a"==d.tagName.toLowerCase())if("undefined"!=typeof d.click)d.click();else{var e=!0;if("function"==typeof d.onclick){var f=function(a){a.stopPropagation(),a.preventDefault()},g=GetOSForm();g.addEventListener("submit",f,!1),e=d.onclick(),g.removeEventListener("submit",f,!1)}if(e!==!1){var h=d.getAttribute("href");window.location=h}}return!1}return!0}function LZ(a){return(0>a||a>9?"":"0")+a}function formatDate(a,b){b+="";var c,d="",e=0,f="",g="",h=a.getUTCFullYear()+"",i=a.getUTCMonth()+1,j=a.getUTCDate(),k=a.getUTCDay(),c=a.getUTCHours(),l=a.getUTCMinutes(),m=a.getUTCSeconds(),n=new Object;
for(h.length<4&&(h=""+(h-0+1900)),n.y=""+h,n.yyyy=h,n.yy=h.substring(2,4),n.M=LZ(i),n.MM=LZ(i),n.MMM=MONTH_NAMES[i-1],n.NNN=MONTH_NAMES[i+11],n.d=LZ(j),n.dd=LZ(j),n.E=DAY_NAMES[k+7],n.EE=DAY_NAMES[k],n.H=c,n.HH=LZ(c),n.h=0==c?12:c>12?c-12:c,n.hh=LZ(n.h),n.K=c>11?c-12:c,n.k=c+1,n.KK=LZ(n.K),n.kk=LZ(n.k),n.a=c>11?"PM":"AM",n.m=l,n.mm=LZ(l),n.s=m,n.ss=LZ(m);e<b.length;){for(f=b.charAt(e),g="";b.charAt(e)==f&&e<b.length;)g+=b.charAt(e++);d+=null!=n[g]?n[g]:g}return d}function _isInteger(a){for(var b="1234567890",c=0;c<a.length;c++)if(-1==b.indexOf(a.charAt(c)))return!1;return!0}function _getInt(a,b,c,d){for(var e=d;e>=c;e--){var f=a.substring(b,b+e);if(f.length<c)return null;if(_isInteger(f))return f}return null}function getDateFromFormat(a,b){var c=/^(\d{4,})-(\d{2})-(\d{2})(?:[T ](\d{2}):(\d{2})(?::(\d{2})(?:\.(\d+))?)?)?$/i.exec(a);if(c){var d,e,f=c.length;for(d=1;f>d&&c[d];d++){if(e=parseInt(c[d],10),isNaN(e))return null;2==d&&e--,c[d]=e}var g=[].slice.call(c,1,d),h=["FullYear","Month","Date","Hours","Minutes","Seconds"],i=Date.UTC.apply(Date,g),j=new Date(i);for(f=g.length,d=0;f>d;d++)if(g[d]!==j["getUTC"+h[d]]())return null;return i}a+="",b+="";for(var k,l,m=0,n=0,o="",p="",q=new Date,r=q.getFullYear(),s=q.getMonth()+1,t=1,u=q.getHours(),v=q.getMinutes(),w=q.getSeconds(),x="";n<b.length;){for(o=b.charAt(n),p="";b.charAt(n)==o&&n<b.length;)p+=b.charAt(n++);if("yyyy"==p||"yy"==p||"y"==p){if("yyyy"==p&&(k=2,l=4),"yy"==p&&(k=2,l=2),"y"==p&&(k=2,l=4),r=_getInt(a,m,k,l),null==r){r=(new Date).getFullYear();continue}m+=r.length,2==r.length&&(r=r>70?1900+(r-0):2e3+(r-0))}else if("MMM"==p||"NNN"==p){s=0;for(var d=0;d<MONTH_NAMES.length;d++){var y=MONTH_NAMES[d];if(a.substring(m,m+y.length).toLowerCase()==y.toLowerCase()&&("MMM"==p||"NNN"==p&&d>11)){s=d+1,s>12&&(s-=12),m+=y.length;break}}if(1>s||s>12)return null}else if("EE"==p||"E"==p)for(var d=0;d<DAY_NAMES.length;d++){var z=DAY_NAMES[d];if(a.substring(m,m+z.length).toLowerCase()==z.toLowerCase()){m+=z.length;break}}else if("MM"==p||"M"==p){if(s=_getInt(a,m,1,2),null==s||1>s||s>12)return null;m+=s.length}else if("dd"==p||"d"==p){if(t=_getInt(a,m,1,2),null==t||1>t||t>31)return null;m+=t.length}else if("hh"==p||"h"==p){if(u=_getInt(a,m,1,2),null==u){if(t>0){u=v=w=0;break}return null}if(1>u||u>12)return null;m+=u.length}else if("HH"==p||"H"==p){if(u=_getInt(a,m,1,2),null==u){if(t>0){u=v=w=0;break}return null}if(0>u||u>23)return null;m+=u.length}else if("KK"==p||"K"==p){if(u=_getInt(a,m,p.length,2),null==u||0>u||u>11)return null;m+=u.length}else if("kk"==p||"k"==p){if(u=_getInt(a,m,p.length,2),null==u||1>u||u>24)return null;m+=u.length,u--}else if("mm"==p||"m"==p){if(v=_getInt(a,m,1,2),null==v||0>v||v>59)return null;m+=v.length}else if("ss"==p||"s"==p){if(w=_getInt(a,m,1,2),null==w||0>w||w>59){if(m<a.length)return null;w="00"}m+=w.length}else if("a"==p){if("am"==a.substring(m,m+2).toLowerCase())x="AM";else{if("pm"!=a.substring(m,m+2).toLowerCase())return null;x="PM"}m+=2}else{var A=a.substring(m,m+p.length);if(""!=A&&A!=p&&!("/"==p&&"-"==A||"-"==p&&"/"==A))return null;m+=p.length}}if(m<a.length)return null;if(2==s)if(0==r%4&&0!=r%100||0==r%400){if(t>29)return null}else if(t>28)return null;return(4==s||6==s||9==s||11==s)&&t>30?null:(12>u&&"PM"==x?u=u-0+12:u>11&&"AM"==x&&(u-=12),Date.UTC(r,s-1,t,u,v,w))}function OsFixUploadBeforeSubmit(){for(var a=document.getElementsByTagName("INPUT"),b=!1,c=0;c<a.length;c++)if(a[c].getAttribute("type")&&"file"==a[c].getAttribute("type").toLowerCase()){b=!0;break}b&&document.getElementsByTagName("form")[0].setAttribute("enctype","multipart/form-data")}function OsSimpleGet(a){try{var b=null;window.XMLHttpRequest?b=new XMLHttpRequest:window.ActiveXObject,b.open("GET",a,!0),b.onreadystatechange=function(){},b.send(null)}catch(c){}}function OsUpdateInvalidClassInElement(a,b){if(null!=b){if(a)b.className+=" "+OSINVALID_INPUT_CLASS;else{var c,d=b.className.split(" "),e="";for(c=0;c<d.length;c++)d[c]!=OSINVALID_INPUT_CLASS&&(e+=d[c]+" ");b.className=e}b.setAttribute("aria-invalid",a)}}function OsValidatorUpdateDisplay(a){if("string"==typeof a.controltovalidate){var b=document.getElementById(OSVALIDATION_ICON_PREFIX+a.controltovalidate);null!=b&&(a.isvalid||"none"!=b.style.display||(b.style.display=""));var c=document.getElementById(OSVALIDATION_MESSAGE_PREFIX+a.controltovalidate);null!=c&&(a.isvalid||"none"!=c.style.display||(c.innerHTML="string"==typeof a.errormessage?a.errormessage:"",null==b&&""!=a.errormessage&&(c.style.display=""))),OsUpdateInvalidClassInElement(!a.isvalid||outsystems.internal.$("#"+a.controltovalidate).hasClass(OSINVALID_INPUT_CLASS)||null!=b&&"none"!=b.style.display,document.getElementById(a.controltovalidate))}}function OsValidatorShowInvalidInput(a,b){if(outsystems.internal.$){var c=outsystems.internal.$,d=function(){outsystems.validators.addValidatorIcon(a),outsystems.validators.addMandatorySymbol(a),OsValidatorUpdateDisplay({isvalid:!1,controltovalidate:a,errormessage:b}),outsystems.validators.controlToFocusId&&(c("#"+a).focus(),outsystems.validators.controlToFocusId=null)};"undefined"==typeof outsystems.validators?outsystems.internal.$(window).load(d):d()}}function OsValidatorCleanValidations(a){for(i=0;i<OsPage_Validators.length;i++)OsValidatorCleanValidation(OsPage_Validators[i],a)}function OsValidatorCleanValidation(a,b){if("string"==typeof a.controltovalidate){if(b&&b.length>0&&0===b.has("#"+a.controltovalidate).length)return;var c=document.getElementById(OSVALIDATION_ICON_PREFIX+a.controltovalidate);null!=c&&(c.style.display="none");var d=document.getElementById(OSVALIDATION_MESSAGE_PREFIX+a.controltovalidate);null!=d&&(d.innerHTML="",d.style.display="none");var e=document.getElementById(a.controltovalidate);null!=e&&OsUpdateInvalidClassInElement(!1,e)}}function OsValidatorUpdateIsValid(){var a;for(a=0;a<OsPage_Validators.length;a++)if(!OsPage_Validators[a].isvalid&&null!=document.getElementById(OsPage_Validators[a].controltovalidate))return OsPage_IsValid=!1,void 0;OsPage_IsValid=!0}function OsValidatorGetValue(a){var b=document.getElementById(a);if(null==b)return null;if(outsystems.internal.$&&!outsystems.internal.$(b).is(":visible"))return null;if("input"==b.nodeName.toLowerCase()&&"number"==b.type.toLowerCase())return b.validity&&!b.validity.valid?"x":b.value;if("SELECT"==b.tagName&&0==b.value.indexOf("__ossli_"))return"";if("string"==typeof b.value)return b.value;if("undefined"!=typeof b.tagName||"number"!=typeof b.length)return OsValidatorGetValueRecursive(b);var c;for(c=0;c<b.length;c++){var d=b[c];if("string"==typeof d.value&&("radio"!=d.type||1==d.status))return d.value}return""}function OsValidatorGetValueRecursive(a){if("string"==typeof a.value&&("radio"!=a.type||1==a.status))return a.value;var b,c;for(b=0;b<a.children.length;b++)if(c=OsValidatorGetValueRecursive(a.children[b]),""!=c)return c;return""}function OsPage_GetValidationElementOrder(a){for(var b=0;b<OsPage_ValidatorsOrder.length;b++)if(OsPage_ValidatorsOrder[b]==a)return b;return 0}function OsPage_ClientValidate(a,b){var c=null,d=32767;b?OsValidatorCleanValidations(a):OsValidatorCleanValidations();for(var e=0;e<OsPage_Validators.length;e++)if(OsFocusInvalidInput&&!OsValidatorValidate(OsPage_Validators[e],a)){var f=OsPage_Validators[e].controltovalidate,g=OsPage_GetValidationElementOrder(f);d>g&&(d=g,c=f)}if(null!=c){var h=document.getElementById(c);null!=h&&h.focus()}return OsValidatorUpdateIsValid(),OsPage_BlockSubmit=!OsPage_IsValid,OsPage_IsValid}function OsValidatorCommonOnSubmit(){var a=!OsPage_BlockSubmit;return OsPage_BlockSubmit=!1,a}function OsValidatorValidate(val,srcElement){if(val.isvalid=!0,0!=val.enabled&&"string"==typeof val.evaluationfunction){var validationFunctionOut=eval(val.evaluationfunction+"(val, srcElement);");val.type==OSVALIDATION_CUSTOM_TYPE?(val.isvalid=validationFunctionOut.Valid,val.errormessage=validationFunctionOut.ValidationMessage):val.isvalid=validationFunctionOut}return OsValidatorUpdateDisplay(val),val.isvalid}function OsValidatorOnLoad(){if("undefined"!=typeof OsPage_Validators){var a,b;for(a=0;a<OsPage_Validators.length;a++)b=OsPage_Validators[a],"boolean"!=typeof b.isvalid?"False"==b.isvalid?(b.isvalid=!1,OsPage_IsValid=!1):b.isvalid=!0:b.isvalid=!0,"boolean"!=typeof b.enabled&&(b.enabled="False"!=b.enabled);OsPage_ValidationActive=!0}}function OsGetFunctionName(a){if("function"==typeof a||"object"==typeof a)var b=(""+a).match(/function\s*([\w\$]*)\s*\(/);return null!==b?b[1]:void 0}function OsCustomValidatorEvaluateIsValid(val,srcElement){var value="";if("string"==typeof val.controltovalidate&&(value=OsValidatorGetValue(val.controltovalidate),(null==value||0==OsValidatorTrim(value).length)&&val.type!=OSVALIDATION_CUSTOM_TYPE))return!0;var args={Value:value,IsValid:!0,srcElement:srcElement};if(val.type==OSVALIDATION_CUSTOM_TYPE){if(continueValidation(val,args)){var outValidation=val.clientvalidationfunction(document.getElementById(val.controltovalidate));if("boolean"!=typeof outValidation.Valid||"string"!=typeof outValidation.ValidationMessage)throw OsGetFunctionName(val.clientvalidationfunction)+" must return {Valid: boolean, ValidationMessage: string}";return outValidation}return!0}return eval(val.clientvalidationfunction+"(val, args);"),args.IsValid}function OsRequiredFieldValidatorEvaluateIsValid(a,b){var c="";if("string"==typeof a.controltovalidate&&(c=OsValidatorGetValue(a.controltovalidate)),null==c)return!0;var d={Value:c,IsValid:!0,srcElement:b};return OSCustomValidatorRequiredField(a,d),d.IsValid}function OsValidatorTrim(a){var b=a.match(/^\s*(\S+(\s+\S+)*)\s*$/);return null==b?"":b[1]}function OsRemovePageValidator(a){for(var b=0;b<OsPage_Validators.length;b++)if(OsPage_Validators[b].controltovalidate==a.controltovalidate&&OsPage_Validators[b].evaluationfunction==a.evaluationfunction&&OsPage_Validators[b].clientvalidationfunction==a.clientvalidationfunction&&OsPage_Validators[b].type==a.type)return OsPage_Validators.splice(b,1),void 0}function OsAddPageValidator(a){OsPage_Validators.push(a)}window.outsystems=window.outsystems||{},window.outsystems.internal=window.outsystems.internal||{},window.outsystems.internal.jQueryFactory=function(){/*!
 * jQuery JavaScript Library v1.8.3
 * http://jquery.com/
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 *
 * Copyright 2012 jQuery Foundation and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time)
 */return function(a,b){function c(a){var b=ob[a]={};return $.each(a.split(bb),function(a,c){b[c]=!0}),b}function d(a,c,d){if(d===b&&1===a.nodeType){var e="data-"+c.replace(qb,"-$1").toLowerCase();if(d=a.getAttribute(e),"string"==typeof d){try{d="true"===d?!0:"false"===d?!1:"null"===d?null:+d+""===d?+d:pb.test(d)?$.parseJSON(d):d}catch(f){}$.data(a,c,d)}else d=b}return d}function e(a){var b;for(b in a)if(("data"!==b||!$.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;return!0}function f(){return!1}function g(){return!0}function h(a){return!a||!a.parentNode||11===a.parentNode.nodeType}function i(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}function j(a,b,c){if(b=b||0,$.isFunction(b))return $.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return $.grep(a,function(a){return a===b===c});if("string"==typeof b){var d=$.grep(a,function(a){return 1===a.nodeType});if(Kb.test(b))return $.filter(b,d,!c);b=$.filter(b,d)}return $.grep(a,function(a){return $.inArray(a,b)>=0===c})}function k(a){var b=Nb.split("|"),c=a.createDocumentFragment();if(c.createElement)for(;b.length;)c.createElement(b.pop());return c}function l(a,b){return a.getElementsByTagName(b)[0]||a.appendChild(a.ownerDocument.createElement(b))}function m(a,b){if(1===b.nodeType&&$.hasData(a)){var c,d,e,f=$._data(a),g=$._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)$.event.add(b,c,h[c][d])}g.data&&(g.data=$.extend({},g.data))}}function n(a,b){var c;1===b.nodeType&&(b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase(),"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),$.support.html5Clone&&a.innerHTML&&!$.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&Xb.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.selected=a.defaultSelected:"input"===c||"textarea"===c?b.defaultValue=a.defaultValue:"script"===c&&b.text!==a.text&&(b.text=a.text),b.removeAttribute($.expando))}function o(a){return"undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName("*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll("*"):[]}function p(a){Xb.test(a.type)&&(a.defaultChecked=a.checked)}function q(a,b){if(b in a)return b;for(var c=b.charAt(0).toUpperCase()+b.slice(1),d=b,e=rc.length;e--;)if(b=rc[e]+c,b in a)return b;return d}function r(a,b){return a=b||a,"none"===$.css(a,"display")||!$.contains(a.ownerDocument,a)}function s(a,b){for(var c,d,e=[],f=0,g=a.length;g>f;f++)c=a[f],c.style&&(e[f]=$._data(c,"olddisplay"),b?(e[f]||"none"!==c.style.display||(c.style.display=""),""===c.style.display&&r(c)&&(e[f]=$._data(c,"olddisplay",w(c.nodeName)))):(d=cc(c,"display"),e[f]||"none"===d||$._data(c,"olddisplay",d)));for(f=0;g>f;f++)c=a[f],c.style&&(b&&"none"!==c.style.display&&""!==c.style.display||(c.style.display=b?e[f]||"":"none"));return a}function t(a,b,c){var d=kc.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function u(a,b,c,d){for(var e=c===(d?"border":"content")?4:"width"===b?1:0,f=0;4>e;e+=2)"margin"===c&&(f+=$.css(a,c+qc[e],!0)),d?("content"===c&&(f-=parseFloat(cc(a,"padding"+qc[e]))||0),"margin"!==c&&(f-=parseFloat(cc(a,"border"+qc[e]+"Width"))||0)):(f+=parseFloat(cc(a,"padding"+qc[e]))||0,"padding"!==c&&(f+=parseFloat(cc(a,"border"+qc[e]+"Width"))||0));return f}function v(a,b,c){var d="width"===b?a.offsetWidth:a.offsetHeight,e=!0,f=$.support.boxSizing&&"border-box"===$.css(a,"boxSizing");if(0>=d||null==d){if(d=cc(a,b),(0>d||null==d)&&(d=a.style[b]),lc.test(d))return d;e=f&&($.support.boxSizingReliable||d===a.style[b]),d=parseFloat(d)||0}return d+u(a,b,c||(f?"border":"content"),e)+"px"}function w(a){if(nc[a])return nc[a];var b=$("<"+a+">").appendTo(P.body),c=b.css("display");return b.remove(),("none"===c||""===c)&&(dc=P.body.appendChild(dc||$.extend(P.createElement("iframe"),{frameBorder:0,width:0,height:0})),ec&&dc.createElement||(ec=(dc.contentWindow||dc.contentDocument).document,ec.write("<!doctype html><html><body>"),ec.close()),b=ec.body.appendChild(ec.createElement(a)),c=cc(b,"display"),P.body.removeChild(dc)),nc[a]=c,c}function x(a,b,c,d){var e;if($.isArray(b))$.each(b,function(b,e){c||uc.test(a)?d(a,e):x(a+"["+("object"==typeof e?b:"")+"]",e,c,d)});else if(c||"object"!==$.type(b))d(a,b);else for(e in b)x(a+"["+e+"]",b[e],c,d)}function y(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e,f,g=b.toLowerCase().split(bb),h=0,i=g.length;if($.isFunction(c))for(;i>h;h++)d=g[h],f=/^\+/.test(d),f&&(d=d.substr(1)||"*"),e=a[d]=a[d]||[],e[f?"unshift":"push"](c)}}function z(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;for(var h,i=a[f],j=0,k=i?i.length:0,l=a===Kc;k>j&&(l||!h);j++)h=i[j](c,d,e),"string"==typeof h&&(!l||g[h]?h=b:(c.dataTypes.unshift(h),h=z(a,c,d,e,h,g)));return!l&&h||g["*"]||(h=z(a,c,d,e,"*",g)),h}function A(a,c){var d,e,f=$.ajaxSettings.flatOptions||{};for(d in c)c[d]!==b&&((f[d]?a:e||(e={}))[d]=c[d]);e&&$.extend(!0,a,e)}function B(a,c,d){var e,f,g,h,i=a.contents,j=a.dataTypes,k=a.responseFields;for(f in k)f in d&&(c[k[f]]=d[f]);for(;"*"===j[0];)j.shift(),e===b&&(e=a.mimeType||c.getResponseHeader("content-type"));if(e)for(f in i)if(i[f]&&i[f].test(e)){j.unshift(f);break}if(j[0]in d)g=j[0];else{for(f in d){if(!j[0]||a.converters[f+" "+j[0]]){g=f;break}h||(h=f)}g=g||h}return g?(g!==j[0]&&j.unshift(g),d[g]):void 0}function C(a,b){var c,d,e,f,g=a.dataTypes.slice(),h=g[0],i={},j=0;if(a.dataFilter&&(b=a.dataFilter(b,a.dataType)),g[1])for(c in a.converters)i[c.toLowerCase()]=a.converters[c];for(;e=g[++j];)if("*"!==e){if("*"!==h&&h!==e){if(c=i[h+" "+e]||i["* "+e],!c)for(d in i)if(f=d.split(" "),f[1]===e&&(c=i[h+" "+f[0]]||i["* "+f[0]])){c===!0?c=i[d]:i[d]!==!0&&(e=f[0],g.splice(j--,0,e));break}if(c!==!0)if(c&&a["throws"])b=c(b);else try{b=c(b)}catch(k){return{state:"parsererror",error:c?k:"No conversion from "+h+" to "+e}}}h=e}return{state:"success",data:b}}function D(){try{return new a.XMLHttpRequest}catch(b){}}function E(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function F(){return setTimeout(function(){Vc=b},0),Vc=$.now()}function G(a,b){$.each(b,function(b,c){for(var d=(_c[b]||[]).concat(_c["*"]),e=0,f=d.length;f>e;e++)if(d[e].call(a,b,c))return})}function H(a,b,c){var d,e=0,f=$c.length,g=$.Deferred().always(function(){delete h.elem}),h=function(){for(var b=Vc||F(),c=Math.max(0,i.startTime+i.duration-b),d=c/i.duration||0,e=1-d,f=0,h=i.tweens.length;h>f;f++)i.tweens[f].run(e);return g.notifyWith(a,[i,e,c]),1>e&&h?c:(g.resolveWith(a,[i]),!1)},i=g.promise({elem:a,props:$.extend({},b),opts:$.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:Vc||F(),duration:c.duration,tweens:[],createTween:function(b,c){var d=$.Tween(a,i.opts,b,c,i.opts.specialEasing[b]||i.opts.easing);return i.tweens.push(d),d},stop:function(b){for(var c=0,d=b?i.tweens.length:0;d>c;c++)i.tweens[c].run(1);return b?g.resolveWith(a,[i,b]):g.rejectWith(a,[i,b]),this}}),j=i.props;for(I(j,i.opts.specialEasing);f>e;e++)if(d=$c[e].call(i,a,j,i.opts))return d;return G(i,j),$.isFunction(i.opts.start)&&i.opts.start.call(a,i),$.fx.timer($.extend(h,{anim:i,queue:i.opts.queue,elem:a})),i.progress(i.opts.progress).done(i.opts.done,i.opts.complete).fail(i.opts.fail).always(i.opts.always)}function I(a,b){var c,d,e,f,g;for(c in a)if(d=$.camelCase(c),e=b[d],f=a[c],$.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=$.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function J(a,b,c){var d,e,f,g,h,i,j,k,l,m=this,n=a.style,o={},p=[],q=a.nodeType&&r(a);c.queue||(k=$._queueHooks(a,"fx"),null==k.unqueued&&(k.unqueued=0,l=k.empty.fire,k.empty.fire=function(){k.unqueued||l()}),k.unqueued++,m.always(function(){m.always(function(){k.unqueued--,$.queue(a,"fx").length||k.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[n.overflow,n.overflowX,n.overflowY],"inline"===$.css(a,"display")&&"none"===$.css(a,"float")&&($.support.inlineBlockNeedsLayout&&"inline"!==w(a.nodeName)?n.zoom=1:n.display="inline-block")),c.overflow&&(n.overflow="hidden",$.support.shrinkWrapBlocks||m.done(function(){n.overflow=c.overflow[0],n.overflowX=c.overflow[1],n.overflowY=c.overflow[2]}));for(d in b)if(f=b[d],Xc.exec(f)){if(delete b[d],i=i||"toggle"===f,f===(q?"hide":"show"))continue;p.push(d)}if(g=p.length){h=$._data(a,"fxshow")||$._data(a,"fxshow",{}),"hidden"in h&&(q=h.hidden),i&&(h.hidden=!q),q?$(a).show():m.done(function(){$(a).hide()}),m.done(function(){var b;$.removeData(a,"fxshow",!0);for(b in o)$.style(a,b,o[b])});for(d=0;g>d;d++)e=p[d],j=m.createTween(e,q?h[e]:0),o[e]=h[e]||$.style(a,e),e in h||(h[e]=j.start,q&&(j.end=j.start,j.start="width"===e||"height"===e?1:0))}}function K(a,b,c,d,e){return new K.prototype.init(a,b,c,d,e)}function L(a,b){var c,d={height:a},e=0;for(b=b?1:0;4>e;e+=2-b)c=qc[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function M(a){return $.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}var N,O,P=a.document,Q=a.location,R=a.navigator,S=a.jQuery,T=a.$,U=Array.prototype.push,V=Array.prototype.slice,W=Array.prototype.indexOf,X=Object.prototype.toString,Y=Object.prototype.hasOwnProperty,Z=String.prototype.trim,$=function(a,b){return new $.fn.init(a,b,N)},_=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,ab=/\S/,bb=/\s+/,cb=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,db=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,eb=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,fb=/^[\],:{}\s]*$/,gb=/(?:^|:|,)(?:\s*\[)+/g,hb=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,ib=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,jb=/^-ms-/,kb=/-([\da-z])/gi,lb=function(a,b){return(b+"").toUpperCase()},mb=function(){P.addEventListener?(P.removeEventListener("DOMContentLoaded",mb,!1),$.ready()):"complete"===P.readyState&&(P.detachEvent("onreadystatechange",mb),$.ready())},nb={};$.fn=$.prototype={constructor:$,init:function(a,c,d){var e,f,g;if(!a)return this;if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if("string"==typeof a){if(e="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:db.exec(a),!e||!e[1]&&c)return!c||c.jquery?(c||d).find(a):this.constructor(c).find(a);if(e[1])return c=c instanceof $?c[0]:c,g=c&&c.nodeType?c.ownerDocument||c:P,a=$.parseHTML(e[1],g,!0),eb.test(e[1])&&$.isPlainObject(c)&&this.attr.call(a,c,!0),$.merge(this,a);if(f=P.getElementById(e[2]),f&&f.parentNode){if(f.id!==e[2])return d.find(a);this.length=1,this[0]=f}return this.context=P,this.selector=a,this}return $.isFunction(a)?d.ready(a):(a.selector!==b&&(this.selector=a.selector,this.context=a.context),$.makeArray(a,this))},selector:"",jquery:"1.8.3",length:0,size:function(){return this.length},toArray:function(){return V.call(this)},get:function(a){return null==a?this.toArray():0>a?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=$.merge(this.constructor(),a);return d.prevObject=this,d.context=this.context,"find"===b?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")"),d},each:function(a,b){return $.each(this,a,b)},ready:function(a){return $.ready.promise().done(a),this},eq:function(a){return a=+a,-1===a?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(V.apply(this,arguments),"slice",V.call(arguments).join(","))},map:function(a){return this.pushStack($.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:U,sort:[].sort,splice:[].splice},$.fn.init.prototype=$.fn,$.extend=$.fn.extend=function(){var a,c,d,e,f,g,h=arguments[0]||{},i=1,j=arguments.length,k=!1;for("boolean"==typeof h&&(k=h,h=arguments[1]||{},i=2),"object"==typeof h||$.isFunction(h)||(h={}),j===i&&(h=this,--i);j>i;i++)if(null!=(a=arguments[i]))for(c in a)d=h[c],e=a[c],h!==e&&(k&&e&&($.isPlainObject(e)||(f=$.isArray(e)))?(f?(f=!1,g=d&&$.isArray(d)?d:[]):g=d&&$.isPlainObject(d)?d:{},h[c]=$.extend(k,g,e)):e!==b&&(h[c]=e));return h},$.extend({noConflict:function(b){return a.$===$&&(a.$=T),b&&a.jQuery===$&&(a.jQuery=S),$},isReady:!1,readyWait:1,holdReady:function(a){a?$.readyWait++:$.ready(!0)},ready:function(a){if(a===!0?!--$.readyWait:!$.isReady){if(!P.body)return setTimeout($.ready,1);$.isReady=!0,a!==!0&&--$.readyWait>0||(O.resolveWith(P,[$]),$.fn.trigger&&$(P).trigger("ready").off("ready"))}},isFunction:function(a){return"function"===$.type(a)},isArray:Array.isArray||function(a){return"array"===$.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return null==a?String(a):nb[X.call(a)]||"object"},isPlainObject:function(a){if(!a||"object"!==$.type(a)||a.nodeType||$.isWindow(a))return!1;try{if(a.constructor&&!Y.call(a,"constructor")&&!Y.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||Y.call(a,d)},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},error:function(a){throw new Error(a)},parseHTML:function(a,b,c){var d;return a&&"string"==typeof a?("boolean"==typeof b&&(c=b,b=0),b=b||P,(d=eb.exec(a))?[b.createElement(d[1])]:(d=$.buildFragment([a],b,c?null:[]),$.merge([],(d.cacheable?$.clone(d.fragment):d.fragment).childNodes))):null},parseJSON:function(b){return b&&"string"==typeof b?(b=$.trim(b),a.JSON&&a.JSON.parse?a.JSON.parse(b):fb.test(b.replace(hb,"@").replace(ib,"]").replace(gb,""))?new Function("return "+b)():($.error("Invalid JSON: "+b),void 0)):null},parseXML:function(c){var d,e;if(!c||"string"!=typeof c)return null;try{a.DOMParser?(e=new DOMParser,d=e.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(f){d=b}return d&&d.documentElement&&!d.getElementsByTagName("parsererror").length||$.error("Invalid XML: "+c),d},noop:function(){},globalEval:function(b){b&&ab.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(jb,"ms-").replace(kb,lb)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,c,d){var e,f=0,g=a.length,h=g===b||$.isFunction(a);if(d)if(h){for(e in a)if(c.apply(a[e],d)===!1)break}else for(;g>f&&c.apply(a[f++],d)!==!1;);else if(h){for(e in a)if(c.call(a[e],e,a[e])===!1)break}else for(;g>f&&c.call(a[f],f,a[f++])!==!1;);return a},trim:Z&&!Z.call("﻿ ")?function(a){return null==a?"":Z.call(a)}:function(a){return null==a?"":(a+"").replace(cb,"")},makeArray:function(a,b){var c,d=b||[];return null!=a&&(c=$.type(a),null==a.length||"string"===c||"function"===c||"regexp"===c||$.isWindow(a)?U.call(d,a):$.merge(d,a)),d},inArray:function(a,b,c){var d;if(b){if(W)return W.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,c){var d=c.length,e=a.length,f=0;if("number"==typeof d)for(;d>f;f++)a[e++]=c[f];else for(;c[f]!==b;)a[e++]=c[f++];return a.length=e,a},grep:function(a,b,c){var d,e=[],f=0,g=a.length;for(c=!!c;g>f;f++)d=!!b(a[f],f),c!==d&&e.push(a[f]);return e},map:function(a,c,d){var e,f,g=[],h=0,i=a.length,j=a instanceof $||i!==b&&"number"==typeof i&&(i>0&&a[0]&&a[i-1]||0===i||$.isArray(a));if(j)for(;i>h;h++)e=c(a[h],h,d),null!=e&&(g[g.length]=e);else for(f in a)e=c(a[f],f,d),null!=e&&(g[g.length]=e);return g.concat.apply([],g)},guid:1,proxy:function(a,c){var d,e,f;return"string"==typeof c&&(d=a[c],c=a,a=d),$.isFunction(a)?(e=V.call(arguments,2),f=function(){return a.apply(c,e.concat(V.call(arguments)))},f.guid=a.guid=a.guid||$.guid++,f):b},access:function(a,c,d,e,f,g,h){var i,j=null==d,k=0,l=a.length;if(d&&"object"==typeof d){for(k in d)$.access(a,c,k,d[k],1,g,e);f=1}else if(e!==b){if(i=h===b&&$.isFunction(e),j&&(i?(i=c,c=function(a,b,c){return i.call($(a),c)}):(c.call(a,e),c=null)),c)for(;l>k;k++)c(a[k],d,i?e.call(a[k],k,c(a[k],d)):e,h);f=1}return f?a:j?c.call(a):l?c(a[0],d):g},now:function(){return(new Date).getTime()}}),$.ready.promise=function(b){if(!O)if(O=$.Deferred(),"complete"===P.readyState)setTimeout($.ready,1);else if(P.addEventListener)P.addEventListener("DOMContentLoaded",mb,!1),a.addEventListener("load",$.ready,!1);else{P.attachEvent("onreadystatechange",mb),a.attachEvent("onload",$.ready);var c=!1;try{c=null==a.frameElement&&P.documentElement}catch(d){}c&&c.doScroll&&function e(){if(!$.isReady){try{c.doScroll("left")}catch(a){return setTimeout(e,50)}$.ready()}}()}return O.promise(b)},$.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){nb["[object "+b+"]"]=b.toLowerCase()}),N=$(P);var ob={};$.Callbacks=function(a){a="string"==typeof a?ob[a]||c(a):$.extend({},a);var d,e,f,g,h,i,j=[],k=!a.once&&[],l=function(b){for(d=a.memory&&b,e=!0,i=g||0,g=0,h=j.length,f=!0;j&&h>i;i++)if(j[i].apply(b[0],b[1])===!1&&a.stopOnFalse){d=!1;break}f=!1,j&&(k?k.length&&l(k.shift()):d?j=[]:m.disable())},m={add:function(){if(j){var b=j.length;!function c(b){$.each(b,function(b,d){var e=$.type(d);"function"===e?a.unique&&m.has(d)||j.push(d):d&&d.length&&"string"!==e&&c(d)})}(arguments),f?h=j.length:d&&(g=b,l(d))}return this},remove:function(){return j&&$.each(arguments,function(a,b){for(var c;(c=$.inArray(b,j,c))>-1;)j.splice(c,1),f&&(h>=c&&h--,i>=c&&i--)}),this},has:function(a){return $.inArray(a,j)>-1},empty:function(){return j=[],this},disable:function(){return j=k=d=b,this},disabled:function(){return!j},lock:function(){return k=b,d||m.disable(),this},locked:function(){return!k},fireWith:function(a,b){return b=b||[],b=[a,b.slice?b.slice():b],!j||e&&!k||(f?k.push(b):l(b)),this},fire:function(){return m.fireWith(this,arguments),this},fired:function(){return!!e}};return m},$.extend({Deferred:function(a){var b=[["resolve","done",$.Callbacks("once memory"),"resolved"],["reject","fail",$.Callbacks("once memory"),"rejected"],["notify","progress",$.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return $.Deferred(function(c){$.each(b,function(b,d){var f=d[0],g=a[b];e[d[1]]($.isFunction(g)?function(){var a=g.apply(this,arguments);a&&$.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f+"With"](this===e?c:this,[a])}:c[f])}),a=null}).promise()},promise:function(a){return null!=a?$.extend(a,d):d}},e={};return d.pipe=d.then,$.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=g.fire,e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b,c,d,e=0,f=V.call(arguments),g=f.length,h=1!==g||a&&$.isFunction(a.promise)?g:0,i=1===h?a:$.Deferred(),j=function(a,c,d){return function(e){c[a]=this,d[a]=arguments.length>1?V.call(arguments):e,d===b?i.notifyWith(c,d):--h||i.resolveWith(c,d)}};if(g>1)for(b=new Array(g),c=new Array(g),d=new Array(g);g>e;e++)f[e]&&$.isFunction(f[e].promise)?f[e].promise().done(j(e,d,f)).fail(i.reject).progress(j(e,c,b)):--h;return h||i.resolveWith(d,f),i.promise()}}),$.support=function(){var b,c,d,e,f,g,h,i,j,k,l,m=P.createElement("div");if(m.setAttribute("className","t"),m.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",c=m.getElementsByTagName("*"),d=m.getElementsByTagName("a")[0],!c||!d||!c.length)return{};e=P.createElement("select"),f=e.appendChild(P.createElement("option")),g=m.getElementsByTagName("input")[0],d.style.cssText="top:1px;float:left;opacity:.5",b={leadingWhitespace:3===m.firstChild.nodeType,tbody:!m.getElementsByTagName("tbody").length,htmlSerialize:!!m.getElementsByTagName("link").length,style:/top/.test(d.getAttribute("style")),hrefNormalized:"/a"===d.getAttribute("href"),opacity:/^0.5/.test(d.style.opacity),cssFloat:!!d.style.cssFloat,checkOn:"on"===g.value,optSelected:f.selected,getSetAttribute:"t"!==m.className,enctype:!!P.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==P.createElement("nav").cloneNode(!0).outerHTML,boxModel:"CSS1Compat"===P.compatMode,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},g.checked=!0,b.noCloneChecked=g.cloneNode(!0).checked,e.disabled=!0,b.optDisabled=!f.disabled;try{delete m.test}catch(n){b.deleteExpando=!1}if(!m.addEventListener&&m.attachEvent&&m.fireEvent&&(m.attachEvent("onclick",l=function(){b.noCloneEvent=!1}),m.cloneNode(!0).fireEvent("onclick"),m.detachEvent("onclick",l)),g=P.createElement("input"),g.value="t",g.setAttribute("type","radio"),b.radioValue="t"===g.value,g.setAttribute("checked","checked"),g.setAttribute("name","t"),m.appendChild(g),h=P.createDocumentFragment(),h.appendChild(m.lastChild),b.checkClone=h.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=g.checked,h.removeChild(g),h.appendChild(m),m.attachEvent)for(j in{submit:!0,change:!0,focusin:!0})i="on"+j,k=i in m,k||(m.setAttribute(i,"return;"),k="function"==typeof m[i]),b[j+"Bubbles"]=k;return $(function(){var c,d,e,f,g="padding:0;margin:0;border:0;display:block;overflow:hidden;",h=P.getElementsByTagName("body")[0];h&&(c=P.createElement("div"),c.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",h.insertBefore(c,h.firstChild),d=P.createElement("div"),c.appendChild(d),d.innerHTML="<table><tr><td></td><td>t</td></tr></table>",e=d.getElementsByTagName("td"),e[0].style.cssText="padding:0;margin:0;border:0;display:none",k=0===e[0].offsetHeight,e[0].style.display="",e[1].style.display="none",b.reliableHiddenOffsets=k&&0===e[0].offsetHeight,d.innerHTML="",d.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",b.boxSizing=4===d.offsetWidth,b.doesNotIncludeMarginInBodyOffset=1!==h.offsetTop,a.getComputedStyle&&(b.pixelPosition="1%"!==(a.getComputedStyle(d,null)||{}).top,b.boxSizingReliable="4px"===(a.getComputedStyle(d,null)||{width:"4px"}).width,f=P.createElement("div"),f.style.cssText=d.style.cssText=g,f.style.marginRight=f.style.width="0",d.style.width="1px",d.appendChild(f),b.reliableMarginRight=!parseFloat((a.getComputedStyle(f,null)||{}).marginRight)),"undefined"!=typeof d.style.zoom&&(d.innerHTML="",d.style.cssText=g+"width:1px;padding:1px;display:inline;zoom:1",b.inlineBlockNeedsLayout=3===d.offsetWidth,d.style.display="block",d.style.overflow="visible",d.innerHTML="<div></div>",d.firstChild.style.width="5px",b.shrinkWrapBlocks=3!==d.offsetWidth,c.style.zoom=1),h.removeChild(c),c=d=e=f=null)}),h.removeChild(m),c=d=e=f=g=h=m=null,b}();var pb=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,qb=/([A-Z])/g;$.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+($.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){return a=a.nodeType?$.cache[a[$.expando]]:a[$.expando],!!a&&!e(a)},data:function(a,c,d,e){if($.acceptData(a)){var f,g,h=$.expando,i="string"==typeof c,j=a.nodeType,k=j?$.cache:a,l=j?a[h]:a[h]&&h;if(l&&k[l]&&(e||k[l].data)||!i||d!==b)return l||(j?a[h]=l=$.deletedIds.pop()||$.guid++:l=h),k[l]||(k[l]={},j||(k[l].toJSON=$.noop)),("object"==typeof c||"function"==typeof c)&&(e?k[l]=$.extend(k[l],c):k[l].data=$.extend(k[l].data,c)),f=k[l],e||(f.data||(f.data={}),f=f.data),d!==b&&(f[$.camelCase(c)]=d),i?(g=f[c],null==g&&(g=f[$.camelCase(c)])):g=f,g}},removeData:function(a,b,c){if($.acceptData(a)){var d,f,g,h=a.nodeType,i=h?$.cache:a,j=h?a[$.expando]:$.expando;if(i[j]){if(b&&(d=c?i[j]:i[j].data)){$.isArray(b)||(b in d?b=[b]:(b=$.camelCase(b),b=b in d?[b]:b.split(" ")));for(f=0,g=b.length;g>f;f++)delete d[b[f]];if(!(c?e:$.isEmptyObject)(d))return}(c||(delete i[j].data,e(i[j])))&&(h?$.cleanData([a],!0):$.support.deleteExpando||i!=i.window?delete i[j]:i[j]=null)}}},_data:function(a,b,c){return $.data(a,b,c,!0)},acceptData:function(a){var b=a.nodeName&&$.noData[a.nodeName.toLowerCase()];return!b||b!==!0&&a.getAttribute("classid")===b}}),$.fn.extend({data:function(a,c){var e,f,g,h,i,j=this[0],k=0,l=null;if(a===b){if(this.length&&(l=$.data(j),1===j.nodeType&&!$._data(j,"parsedAttrs"))){for(g=j.attributes,i=g.length;i>k;k++)h=g[k].name,h.indexOf("data-")||(h=$.camelCase(h.substring(5)),d(j,h,l[h]));$._data(j,"parsedAttrs",!0)}return l}return"object"==typeof a?this.each(function(){$.data(this,a)}):(e=a.split(".",2),e[1]=e[1]?"."+e[1]:"",f=e[1]+"!",$.access(this,function(c){return c===b?(l=this.triggerHandler("getData"+f,[e[0]]),l===b&&j&&(l=$.data(j,a),l=d(j,a,l)),l===b&&e[1]?this.data(e[0]):l):(e[1]=c,this.each(function(){var b=$(this);b.triggerHandler("setData"+f,e),$.data(this,a,c),b.triggerHandler("changeData"+f,e)}),void 0)},null,c,arguments.length>1,null,!1))},removeData:function(a){return this.each(function(){$.removeData(this,a)})}}),$.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=$._data(a,b),c&&(!d||$.isArray(c)?d=$._data(a,b,$.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=$.queue(a,b),d=c.length,e=c.shift(),f=$._queueHooks(a,b),g=function(){$.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return $._data(a,c)||$._data(a,c,{empty:$.Callbacks("once memory").add(function(){$.removeData(a,b+"queue",!0),$.removeData(a,c,!0)})})}}),$.fn.extend({queue:function(a,c){var d=2;return"string"!=typeof a&&(c=a,a="fx",d--),arguments.length<d?$.queue(this[0],a):c===b?this:this.each(function(){var b=$.queue(this,a,c);$._queueHooks(this,a),"fx"===a&&"inprogress"!==b[0]&&$.dequeue(this,a)})},dequeue:function(a){return this.each(function(){$.dequeue(this,a)})},delay:function(a,b){return a=$.fx?$.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){var d,e=1,f=$.Deferred(),g=this,h=this.length,i=function(){--e||f.resolveWith(g,[g])};for("string"!=typeof a&&(c=a,a=b),a=a||"fx";h--;)d=$._data(g[h],a+"queueHooks"),d&&d.empty&&(e++,d.empty.add(i));return i(),f.promise(c)}});var rb,sb,tb,ub=/[\t\r\n]/g,vb=/\r/g,wb=/^(?:button|input)$/i,xb=/^(?:button|input|object|select|textarea)$/i,yb=/^a(?:rea|)$/i,zb=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,Ab=$.support.getSetAttribute;$.fn.extend({attr:function(a,b){return $.access(this,$.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){$.removeAttr(this,a)})},prop:function(a,b){return $.access(this,$.prop,a,b,arguments.length>1)},removeProp:function(a){return a=$.propFix[a]||a,this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,f,g,h;if($.isFunction(a))return this.each(function(b){$(this).addClass(a.call(this,b,this.className))});if(a&&"string"==typeof a)for(b=a.split(bb),c=0,d=this.length;d>c;c++)if(e=this[c],1===e.nodeType)if(e.className||1!==b.length){for(f=" "+e.className+" ",g=0,h=b.length;h>g;g++)f.indexOf(" "+b[g]+" ")<0&&(f+=b[g]+" ");e.className=$.trim(f)}else e.className=a;return this},removeClass:function(a){var c,d,e,f,g,h,i;if($.isFunction(a))return this.each(function(b){$(this).removeClass(a.call(this,b,this.className))});if(a&&"string"==typeof a||a===b)for(c=(a||"").split(bb),h=0,i=this.length;i>h;h++)if(e=this[h],1===e.nodeType&&e.className){for(d=(" "+e.className+" ").replace(ub," "),f=0,g=c.length;g>f;f++)for(;d.indexOf(" "+c[f]+" ")>=0;)d=d.replace(" "+c[f]+" "," ");e.className=a?$.trim(d):""}return this},toggleClass:function(a,b){var c=typeof a,d="boolean"==typeof b;return $.isFunction(a)?this.each(function(c){$(this).toggleClass(a.call(this,c,this.className,b),b)}):this.each(function(){if("string"===c)for(var e,f=0,g=$(this),h=b,i=a.split(bb);e=i[f++];)h=d?h:!g.hasClass(e),g[h?"addClass":"removeClass"](e);else("undefined"===c||"boolean"===c)&&(this.className&&$._data(this,"__className__",this.className),this.className=this.className||a===!1?"":$._data(this,"__className__")||"")})},hasClass:function(a){for(var b=" "+a+" ",c=0,d=this.length;d>c;c++)if(1===this[c].nodeType&&(" "+this[c].className+" ").replace(ub," ").indexOf(b)>=0)return!0;return!1},val:function(a){var c,d,e,f=this[0];{if(arguments.length)return e=$.isFunction(a),this.each(function(d){var f,g=$(this);1===this.nodeType&&(f=e?a.call(this,d,g.val()):a,null==f?f="":"number"==typeof f?f+="":$.isArray(f)&&(f=$.map(f,function(a){return null==a?"":a+""})),c=$.valHooks[this.type]||$.valHooks[this.nodeName.toLowerCase()],c&&"set"in c&&c.set(this,f,"value")!==b||(this.value=f))});if(f)return c=$.valHooks[f.type]||$.valHooks[f.nodeName.toLowerCase()],c&&"get"in c&&(d=c.get(f,"value"))!==b?d:(d=f.value,"string"==typeof d?d.replace(vb,""):null==d?"":d)}}}),$.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],!(!c.selected&&i!==e||($.support.optDisabled?c.disabled:null!==c.getAttribute("disabled"))||c.parentNode.disabled&&$.nodeName(c.parentNode,"optgroup"))){if(b=$(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c=$.makeArray(b);return $(a).find("option").each(function(){this.selected=$.inArray($(this).val(),c)>=0}),c.length||(a.selectedIndex=-1),c}}},attrFn:{},attr:function(a,c,d,e){var f,g,h,i=a.nodeType;if(a&&3!==i&&8!==i&&2!==i)return e&&$.isFunction($.fn[c])?$(a)[c](d):"undefined"==typeof a.getAttribute?$.prop(a,c,d):(h=1!==i||!$.isXMLDoc(a),h&&(c=c.toLowerCase(),g=$.attrHooks[c]||(zb.test(c)?sb:rb)),d!==b?null===d?($.removeAttr(a,c),void 0):g&&"set"in g&&h&&(f=g.set(a,d,c))!==b?f:(a.setAttribute(c,d+""),d):g&&"get"in g&&h&&null!==(f=g.get(a,c))?f:(f=a.getAttribute(c),null===f?b:f))},removeAttr:function(a,b){var c,d,e,f,g=0;if(b&&1===a.nodeType)for(d=b.split(bb);g<d.length;g++)e=d[g],e&&(c=$.propFix[e]||e,f=zb.test(e),f||$.attr(a,e,""),a.removeAttribute(Ab?e:c),f&&c in a&&(a[c]=!1))},attrHooks:{type:{set:function(a,b){if(wb.test(a.nodeName)&&a.parentNode)$.error("type property can't be changed");else if(!$.support.radioValue&&"radio"===b&&$.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}},value:{get:function(a,b){return rb&&$.nodeName(a,"button")?rb.get(a,b):b in a?a.value:null},set:function(a,b,c){return rb&&$.nodeName(a,"button")?rb.set(a,b,c):(a.value=b,void 0)}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e,f,g,h=a.nodeType;if(a&&3!==h&&8!==h&&2!==h)return g=1!==h||!$.isXMLDoc(a),g&&(c=$.propFix[c]||c,f=$.propHooks[c]),d!==b?f&&"set"in f&&(e=f.set(a,d,c))!==b?e:a[c]=d:f&&"get"in f&&null!==(e=f.get(a,c))?e:a[c]},propHooks:{tabIndex:{get:function(a){var c=a.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.value,10):xb.test(a.nodeName)||yb.test(a.nodeName)&&a.href?0:b}}}}),sb={get:function(a,c){var d,e=$.prop(a,c);return e===!0||"boolean"!=typeof e&&(d=a.getAttributeNode(c))&&d.nodeValue!==!1?c.toLowerCase():b},set:function(a,b,c){var d;return b===!1?$.removeAttr(a,c):(d=$.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase())),c}},Ab||(tb={name:!0,id:!0,coords:!0},rb=$.valHooks.button={get:function(a,c){var d;return d=a.getAttributeNode(c),d&&(tb[c]?""!==d.value:d.specified)?d.value:b},set:function(a,b,c){var d=a.getAttributeNode(c);return d||(d=P.createAttribute(c),a.setAttributeNode(d)),d.value=b+""}},$.each(["width","height"],function(a,b){$.attrHooks[b]=$.extend($.attrHooks[b],{set:function(a,c){return""===c?(a.setAttribute(b,"auto"),c):void 0
}})}),$.attrHooks.contenteditable={get:rb.get,set:function(a,b,c){""===b&&(b="false"),rb.set(a,b,c)}}),$.support.hrefNormalized||$.each(["href","src","width","height"],function(a,c){$.attrHooks[c]=$.extend($.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return null===d?b:d}})}),$.support.style||($.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=b+""}}),$.support.optSelected||($.propHooks.selected=$.extend($.propHooks.selected,{get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null}})),$.support.enctype||($.propFix.enctype="encoding"),$.support.checkOn||$.each(["radio","checkbox"],function(){$.valHooks[this]={get:function(a){return null===a.getAttribute("value")?"on":a.value}}}),$.each(["radio","checkbox"],function(){$.valHooks[this]=$.extend($.valHooks[this],{set:function(a,b){return $.isArray(b)?a.checked=$.inArray($(a).val(),b)>=0:void 0}})});var Bb=/^(?:textarea|input|select)$/i,Cb=/^([^\.]*|)(?:\.(.+)|)$/,Db=/(?:^|\s)hover(\.\S+|)\b/,Eb=/^key/,Fb=/^(?:mouse|contextmenu)|click/,Gb=/^(?:focusinfocus|focusoutblur)$/,Hb=function(a){return $.event.special.hover?a:a.replace(Db,"mouseenter$1 mouseleave$1")};$.event={add:function(a,c,d,e,f){var g,h,i,j,k,l,m,n,o,p,q;if(3!==a.nodeType&&8!==a.nodeType&&c&&d&&(g=$._data(a))){for(d.handler&&(o=d,d=o.handler,f=o.selector),d.guid||(d.guid=$.guid++),i=g.events,i||(g.events=i={}),h=g.handle,h||(g.handle=h=function(a){return"undefined"==typeof $||a&&$.event.triggered===a.type?b:$.event.dispatch.apply(h.elem,arguments)},h.elem=a),c=$.trim(Hb(c)).split(" "),j=0;j<c.length;j++)k=Cb.exec(c[j])||[],l=k[1],m=(k[2]||"").split(".").sort(),q=$.event.special[l]||{},l=(f?q.delegateType:q.bindType)||l,q=$.event.special[l]||{},n=$.extend({type:l,origType:k[1],data:e,handler:d,guid:d.guid,selector:f,needsContext:f&&$.expr.match.needsContext.test(f),namespace:m.join(".")},o),p=i[l],p||(p=i[l]=[],p.delegateCount=0,q.setup&&q.setup.call(a,e,m,h)!==!1||(a.addEventListener?a.addEventListener(l,h,!1):a.attachEvent&&a.attachEvent("on"+l,h))),q.add&&(q.add.call(a,n),n.handler.guid||(n.handler.guid=d.guid)),f?p.splice(p.delegateCount++,0,n):p.push(n),$.event.global[l]=!0;a=null}},global:{},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=$.hasData(a)&&$._data(a);if(q&&(m=q.events)){for(b=$.trim(Hb(b||"")).split(" "),f=0;f<b.length;f++)if(g=Cb.exec(b[f])||[],h=i=g[1],j=g[2],h){for(n=$.event.special[h]||{},h=(d?n.delegateType:n.bindType)||h,o=m[h]||[],k=o.length,j=j?new RegExp("(^|\\.)"+j.split(".").sort().join("\\.(?:.*\\.|)")+"(\\.|$)"):null,l=0;l<o.length;l++)p=o[l],!e&&i!==p.origType||c&&c.guid!==p.guid||j&&!j.test(p.namespace)||d&&d!==p.selector&&("**"!==d||!p.selector)||(o.splice(l--,1),p.selector&&o.delegateCount--,n.remove&&n.remove.call(a,p));0===o.length&&k!==o.length&&(n.teardown&&n.teardown.call(a,j,q.handle)!==!1||$.removeEvent(a,h,q.handle),delete m[h])}else for(h in m)$.event.remove(a,h+b[f],c,d,!0);$.isEmptyObject(m)&&(delete q.handle,$.removeData(a,"events",!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(c,d,e,f){if(!e||3!==e.nodeType&&8!==e.nodeType){var g,h,i,j,k,l,m,n,o,p,q=c.type||c,r=[];if(!Gb.test(q+$.event.triggered)&&(q.indexOf("!")>=0&&(q=q.slice(0,-1),h=!0),q.indexOf(".")>=0&&(r=q.split("."),q=r.shift(),r.sort()),e&&!$.event.customEvent[q]||$.event.global[q]))if(c="object"==typeof c?c[$.expando]?c:new $.Event(q,c):new $.Event(q),c.type=q,c.isTrigger=!0,c.exclusive=h,c.namespace=r.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,l=q.indexOf(":")<0?"on"+q:"",e){if(c.result=b,c.target||(c.target=e),d=null!=d?$.makeArray(d):[],d.unshift(c),m=$.event.special[q]||{},!m.trigger||m.trigger.apply(e,d)!==!1){if(o=[[e,m.bindType||q]],!f&&!m.noBubble&&!$.isWindow(e)){for(p=m.delegateType||q,j=Gb.test(p+q)?e:e.parentNode,k=e;j;j=j.parentNode)o.push([j,p]),k=j;k===(e.ownerDocument||P)&&o.push([k.defaultView||k.parentWindow||a,p])}for(i=0;i<o.length&&!c.isPropagationStopped();i++)j=o[i][0],c.type=o[i][1],n=($._data(j,"events")||{})[c.type]&&$._data(j,"handle"),n&&n.apply(j,d),n=l&&j[l],n&&$.acceptData(j)&&n.apply&&n.apply(j,d)===!1&&c.preventDefault();return c.type=q,f||c.isDefaultPrevented()||m._default&&m._default.apply(e.ownerDocument,d)!==!1||"click"===q&&$.nodeName(e,"a")||!$.acceptData(e)||l&&e[q]&&("focus"!==q&&"blur"!==q||0!==c.target.offsetWidth)&&!$.isWindow(e)&&(k=e[l],k&&(e[l]=null),$.event.triggered=q,e[q](),$.event.triggered=b,k&&(e[l]=k)),c.result}}else{g=$.cache;for(i in g)g[i].events&&g[i].events[q]&&$.event.trigger(c,d,g[i].handle.elem,!0)}}},dispatch:function(c){c=$.event.fix(c||a.event);var d,e,f,g,h,i,j,k,l,m=($._data(this,"events")||{})[c.type]||[],n=m.delegateCount,o=V.call(arguments),p=!c.exclusive&&!c.namespace,q=$.event.special[c.type]||{},r=[];if(o[0]=c,c.delegateTarget=this,!q.preDispatch||q.preDispatch.call(this,c)!==!1){if(n&&(!c.button||"click"!==c.type))for(f=c.target;f!=this;f=f.parentNode||this)if(f.disabled!==!0||"click"!==c.type){for(h={},j=[],d=0;n>d;d++)k=m[d],l=k.selector,h[l]===b&&(h[l]=k.needsContext?$(l,this).index(f)>=0:$.find(l,this,null,[f]).length),h[l]&&j.push(k);j.length&&r.push({elem:f,matches:j})}for(m.length>n&&r.push({elem:this,matches:m.slice(n)}),d=0;d<r.length&&!c.isPropagationStopped();d++)for(i=r[d],c.currentTarget=i.elem,e=0;e<i.matches.length&&!c.isImmediatePropagationStopped();e++)k=i.matches[e],(p||!c.namespace&&!k.namespace||c.namespace_re&&c.namespace_re.test(k.namespace))&&(c.data=k.data,c.handleObj=k,g=(($.event.special[k.origType]||{}).handle||k.handler).apply(i.elem,o),g!==b&&(c.result=g,g===!1&&(c.preventDefault(),c.stopPropagation())));return q.postDispatch&&q.postDispatch.call(this,c),c.result}},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,c){var d,e,f,g=c.button,h=c.fromElement;return null==a.pageX&&null!=c.clientX&&(d=a.target.ownerDocument||P,e=d.documentElement,f=d.body,a.pageX=c.clientX+(e&&e.scrollLeft||f&&f.scrollLeft||0)-(e&&e.clientLeft||f&&f.clientLeft||0),a.pageY=c.clientY+(e&&e.scrollTop||f&&f.scrollTop||0)-(e&&e.clientTop||f&&f.clientTop||0)),!a.relatedTarget&&h&&(a.relatedTarget=h===a.target?c.toElement:h),a.which||g===b||(a.which=1&g?1:2&g?3:4&g?2:0),a}},fix:function(a){if(a[$.expando])return a;var b,c,d=a,e=$.event.fixHooks[a.type]||{},f=e.props?this.props.concat(e.props):this.props;for(a=$.Event(d),b=f.length;b;)c=f[--b],a[c]=d[c];return a.target||(a.target=d.srcElement||P),3===a.target.nodeType&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,e.filter?e.filter(a,d):a},special:{load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(a,b,c){$.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}},simulate:function(a,b,c,d){var e=$.extend(new $.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?$.event.trigger(e,null,b):$.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},$.event.handle=$.event.dispatch,$.removeEvent=P.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){var d="on"+b;a.detachEvent&&("undefined"==typeof a[d]&&(a[d]=null),a.detachEvent(d,c))},$.Event=function(a,b){return this instanceof $.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?g:f):this.type=a,b&&$.extend(this,b),this.timeStamp=a&&a.timeStamp||$.now(),this[$.expando]=!0,void 0):new $.Event(a,b)},$.Event.prototype={preventDefault:function(){this.isDefaultPrevented=g;var a=this.originalEvent;a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=g;var a=this.originalEvent;a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=g,this.stopPropagation()},isDefaultPrevented:f,isPropagationStopped:f,isImmediatePropagationStopped:f},$.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){$.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return f.selector,(!e||e!==d&&!$.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),$.support.submitBubbles||($.event.special.submit={setup:function(){return $.nodeName(this,"form")?!1:($.event.add(this,"click._submit keypress._submit",function(a){var c=a.target,d=$.nodeName(c,"input")||$.nodeName(c,"button")?c.form:b;d&&!$._data(d,"_submit_attached")&&($.event.add(d,"submit._submit",function(a){a._submit_bubble=!0}),$._data(d,"_submit_attached",!0))}),void 0)},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&$.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){return $.nodeName(this,"form")?!1:($.event.remove(this,"._submit"),void 0)}}),$.support.changeBubbles||($.event.special.change={setup:function(){return Bb.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&($.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._just_changed=!0)}),$.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1),$.event.simulate("change",this,a,!0)})),!1):($.event.add(this,"beforeactivate._change",function(a){var b=a.target;Bb.test(b.nodeName)&&!$._data(b,"_change_attached")&&($.event.add(b,"change._change",function(a){!this.parentNode||a.isSimulated||a.isTrigger||$.event.simulate("change",this.parentNode,a,!0)}),$._data(b,"_change_attached",!0))}),void 0)},handle:function(a){var b=a.target;return this!==b||a.isSimulated||a.isTrigger||"radio"!==b.type&&"checkbox"!==b.type?a.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return $.event.remove(this,"._change"),!Bb.test(this.nodeName)}}),$.support.focusinBubbles||$.each({focus:"focusin",blur:"focusout"},function(a,b){var c=0,d=function(a){$.event.simulate(b,a.target,$.event.fix(a),!0)};$.event.special[b]={setup:function(){0===c++&&P.addEventListener(a,d,!0)},teardown:function(){0===--c&&P.removeEventListener(a,d,!0)}}}),$.fn.extend({on:function(a,c,d,e,g){var h,i;if("object"==typeof a){"string"!=typeof c&&(d=d||c,c=b);for(i in a)this.on(i,c,d,a[i],g);return this}if(null==d&&null==e?(e=c,d=c=b):null==e&&("string"==typeof c?(e=d,d=b):(e=d,d=c,c=b)),e===!1)e=f;else if(!e)return this;return 1===g&&(h=e,e=function(a){return $().off(a),h.apply(this,arguments)},e.guid=h.guid||(h.guid=$.guid++)),this.each(function(){$.event.add(this,a,e,d,c)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,c,d){var e,g;if(a&&a.preventDefault&&a.handleObj)return e=a.handleObj,$(a.delegateTarget).off(e.namespace?e.origType+"."+e.namespace:e.origType,e.selector,e.handler),this;if("object"==typeof a){for(g in a)this.off(g,c,a[g]);return this}return(c===!1||"function"==typeof c)&&(d=c,c=b),d===!1&&(d=f),this.each(function(){$.event.remove(this,a,d,c)})},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},live:function(a,b,c){return $(this.context).on(a,this.selector,b,c),this},die:function(a,b){return $(this.context).off(a,this.selector||"**",b),this},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)},trigger:function(a,b){return this.each(function(){$.event.trigger(a,b,this)})},triggerHandler:function(a,b){return this[0]?$.event.trigger(a,b,this[0],!0):void 0},toggle:function(a){var b=arguments,c=a.guid||$.guid++,d=0,e=function(c){var e=($._data(this,"lastToggle"+a.guid)||0)%d;return $._data(this,"lastToggle"+a.guid,e+1),c.preventDefault(),b[e].apply(this,arguments)||!1};for(e.guid=c;d<b.length;)b[d++].guid=c;return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),$.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){$.fn[b]=function(a,c){return null==c&&(c=a,a=null),arguments.length>0?this.on(b,null,a,c):this.trigger(b)},Eb.test(b)&&($.event.fixHooks[b]=$.event.keyHooks),Fb.test(b)&&($.event.fixHooks[b]=$.event.mouseHooks)}),/*!
 * Sizzle CSS Selector Engine
 * Copyright 2012 jQuery Foundation and other contributors
 * Released under the MIT license
 * http://sizzlejs.com/
 */
function(a,b){function c(a,b,c,d){c=c||[],b=b||F;var e,f,g,h,i=b.nodeType;if(!a||"string"!=typeof a)return c;if(1!==i&&9!==i)return[];if(g=v(b),!g&&!d&&(e=cb.exec(a)))if(h=e[1]){if(9===i){if(f=b.getElementById(h),!f||!f.parentNode)return c;if(f.id===h)return c.push(f),c}else if(b.ownerDocument&&(f=b.ownerDocument.getElementById(h))&&w(b,f)&&f.id===h)return c.push(f),c}else{if(e[2])return K.apply(c,L.call(b.getElementsByTagName(a),0)),c;if((h=e[3])&&mb&&b.getElementsByClassName)return K.apply(c,L.call(b.getElementsByClassName(h),0)),c}return p(a.replace(Z,"$1"),b,c,d,g)}function d(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function e(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function f(a){return N(function(b){return b=+b,N(function(c,d){for(var e,f=a([],c.length,b),g=f.length;g--;)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function g(a,b,c){if(a===b)return c;for(var d=a.nextSibling;d;){if(d===b)return-1;d=d.nextSibling}return 1}function h(a,b){var d,e,f,g,h,i,j,k=Q[D][a+" "];if(k)return b?0:k.slice(0);for(h=a,i=[],j=t.preFilter;h;){(!d||(e=_.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),d=!1,(e=ab.exec(h))&&(f.push(d=new E(e.shift())),h=h.slice(d.length),d.type=e[0].replace(Z," "));for(g in t.filter)!(e=hb[g].exec(h))||j[g]&&!(e=j[g](e))||(f.push(d=new E(e.shift())),h=h.slice(d.length),d.type=g,d.matches=e);if(!d)break}return b?h.length:h?c.error(a):Q(a,i).slice(0)}function i(a,b,c){var d=b.dir,e=c&&"parentNode"===b.dir,f=I++;return b.first?function(b,c,f){for(;b=b[d];)if(e||1===b.nodeType)return a(b,c,f)}:function(b,c,g){if(g){for(;b=b[d];)if((e||1===b.nodeType)&&a(b,c,g))return b}else for(var h,i=H+" "+f+" ",j=i+r;b=b[d];)if(e||1===b.nodeType){if((h=b[D])===j)return b.sizset;if("string"==typeof h&&0===h.indexOf(i)){if(b.sizset)return b}else{if(b[D]=j,a(b,c,g))return b.sizset=!0,b;b.sizset=!1}}}}function j(a){return a.length>1?function(b,c,d){for(var e=a.length;e--;)if(!a[e](b,c,d))return!1;return!0}:a[0]}function k(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function l(a,b,c,d,e,f){return d&&!d[D]&&(d=l(d)),e&&!e[D]&&(e=l(e,f)),N(function(f,g,h,i){var j,l,m,n=[],p=[],q=g.length,r=f||o(b||"*",h.nodeType?[h]:h,[]),s=!a||!f&&b?r:k(r,n,a,h,i),t=c?e||(f?a:q||d)?[]:g:s;if(c&&c(s,t,h,i),d)for(j=k(t,p),d(j,[],h,i),l=j.length;l--;)(m=j[l])&&(t[p[l]]=!(s[p[l]]=m));if(f){if(e||a){if(e){for(j=[],l=t.length;l--;)(m=t[l])&&j.push(s[l]=m);e(null,t=[],j,i)}for(l=t.length;l--;)(m=t[l])&&(j=e?M.call(f,m):n[l])>-1&&(f[j]=!(g[j]=m))}}else t=k(t===g?t.splice(q,t.length):t),e?e(null,g,t,i):K.apply(g,t)})}function m(a){for(var b,c,d,e=a.length,f=t.relative[a[0].type],g=f||t.relative[" "],h=f?1:0,k=i(function(a){return a===b},g,!0),n=i(function(a){return M.call(b,a)>-1},g,!0),o=[function(a,c,d){return!f&&(d||c!==A)||((b=c).nodeType?k(a,c,d):n(a,c,d))}];e>h;h++)if(c=t.relative[a[h].type])o=[i(j(o),c)];else{if(c=t.filter[a[h].type].apply(null,a[h].matches),c[D]){for(d=++h;e>d&&!t.relative[a[d].type];d++);return l(h>1&&j(o),h>1&&a.slice(0,h-1).join("").replace(Z,"$1"),c,d>h&&m(a.slice(h,d)),e>d&&m(a=a.slice(d)),e>d&&a.join(""))}o.push(c)}return j(o)}function n(a,b){var d=b.length>0,e=a.length>0,f=function(g,h,i,j,l){var m,n,o,p=[],q=0,s="0",u=g&&[],v=null!=l,w=A,x=g||e&&t.find.TAG("*",l&&h.parentNode||h),y=H+=null==w?1:Math.E;for(v&&(A=h!==F&&h,r=f.el);null!=(m=x[s]);s++){if(e&&m){for(n=0;o=a[n];n++)if(o(m,h,i)){j.push(m);break}v&&(H=y,r=++f.el)}d&&((m=!o&&m)&&q--,g&&u.push(m))}if(q+=s,d&&s!==q){for(n=0;o=b[n];n++)o(u,p,h,i);if(g){if(q>0)for(;s--;)u[s]||p[s]||(p[s]=J.call(j));p=k(p)}K.apply(j,p),v&&!g&&p.length>0&&q+b.length>1&&c.uniqueSort(j)}return v&&(H=y,A=w),u};return f.el=0,d?N(f):f}function o(a,b,d){for(var e=0,f=b.length;f>e;e++)c(a,b[e],d);return d}function p(a,b,c,d,e){var f,g,i,j,k,l=h(a);if(l.length,!d&&1===l.length){if(g=l[0]=l[0].slice(0),g.length>2&&"ID"===(i=g[0]).type&&9===b.nodeType&&!e&&t.relative[g[1].type]){if(b=t.find.ID(i.matches[0].replace(gb,""),b,e)[0],!b)return c;a=a.slice(g.shift().length)}for(f=hb.POS.test(a)?-1:g.length-1;f>=0&&(i=g[f],!t.relative[j=i.type]);f--)if((k=t.find[j])&&(d=k(i.matches[0].replace(gb,""),db.test(g[0].type)&&b.parentNode||b,e))){if(g.splice(f,1),a=d.length&&g.join(""),!a)return K.apply(c,L.call(d,0)),c;break}}return x(a,l)(d,b,e,c,db.test(a)),c}function q(){}var r,s,t,u,v,w,x,y,z,A,B=!0,C="undefined",D=("sizcache"+Math.random()).replace(".",""),E=String,F=a.document,G=F.documentElement,H=0,I=0,J=[].pop,K=[].push,L=[].slice,M=[].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},N=function(a,b){return a[D]=null==b||b,a},O=function(){var a={},b=[];return N(function(c,d){return b.push(c)>t.cacheLength&&delete a[b.shift()],a[c+" "]=d},a)},P=O(),Q=O(),R=O(),S="[\\x20\\t\\r\\n\\f]",T="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",U=T.replace("w","w#"),V="([*^$|!~]?=)",W="\\["+S+"*("+T+")"+S+"*(?:"+V+S+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+U+")|)|)"+S+"*\\]",X=":("+T+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+W+")|[^:]|\\\\.)*|.*))\\)|)",Y=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+S+"*((?:-\\d)?\\d*)"+S+"*\\)|)(?=[^-]|$)",Z=new RegExp("^"+S+"+|((?:^|[^\\\\])(?:\\\\.)*)"+S+"+$","g"),_=new RegExp("^"+S+"*,"+S+"*"),ab=new RegExp("^"+S+"*([\\x20\\t\\r\\n\\f>+~])"+S+"*"),bb=new RegExp(X),cb=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,db=/[\x20\t\r\n\f]*[+~]/,eb=/h\d/i,fb=/input|select|textarea|button/i,gb=/\\(?!\\)/g,hb={ID:new RegExp("^#("+T+")"),CLASS:new RegExp("^\\.("+T+")"),NAME:new RegExp("^\\[name=['\"]?("+T+")['\"]?\\]"),TAG:new RegExp("^("+T.replace("w","w*")+")"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+X),POS:new RegExp(Y,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\("+S+"*(even|odd|(([+-]|)(\\d*)n|)"+S+"*(?:([+-]|)"+S+"*(\\d+)|))"+S+"*\\)|)","i"),needsContext:new RegExp("^"+S+"*[>+~]|"+Y,"i")},ib=function(a){var b=F.createElement("div");try{return a(b)}catch(c){return!1}finally{b=null}},jb=ib(function(a){return a.appendChild(F.createComment("")),!a.getElementsByTagName("*").length}),kb=ib(function(a){return a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!==C&&"#"===a.firstChild.getAttribute("href")}),lb=ib(function(a){a.innerHTML="<select></select>";var b=typeof a.lastChild.getAttribute("multiple");return"boolean"!==b&&"string"!==b}),mb=ib(function(a){return a.innerHTML="<div class='hidden e'></div><div class='hidden'></div>",a.getElementsByClassName&&a.getElementsByClassName("e").length?(a.lastChild.className="e",2===a.getElementsByClassName("e").length):!1}),nb=ib(function(a){a.id=D+0,a.innerHTML="<a name='"+D+"'></a><div name='"+D+"'></div>",G.insertBefore(a,G.firstChild);var b=F.getElementsByName&&F.getElementsByName(D).length===2+F.getElementsByName(D+0).length;return s=!F.getElementById(D),G.removeChild(a),b});try{L.call(G.childNodes,0)[0].nodeType}catch(ob){L=function(a){for(var b,c=[];b=this[a];a++)c.push(b);return c}}c.matches=function(a,b){return c(a,null,null,b)},c.matchesSelector=function(a,b){return c(b,null,null,[a]).length>0},u=c.getText=function(a){var b,c="",d=0,e=a.nodeType;if(e){if(1===e||9===e||11===e){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=u(a)}else if(3===e||4===e)return a.nodeValue}else for(;b=a[d];d++)c+=u(b);return c},v=c.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},w=c.contains=G.contains?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!!(d&&1===d.nodeType&&c.contains&&c.contains(d))}:G.compareDocumentPosition?function(a,b){return b&&!!(16&a.compareDocumentPosition(b))}:function(a,b){for(;b=b.parentNode;)if(b===a)return!0;return!1},c.attr=function(a,b){var c,d=v(a);return d||(b=b.toLowerCase()),(c=t.attrHandle[b])?c(a):d||lb?a.getAttribute(b):(c=a.getAttributeNode(b),c?"boolean"==typeof a[b]?a[b]?b:null:c.specified?c.value:null:null)},t=c.selectors={cacheLength:50,createPseudo:N,match:hb,attrHandle:kb?{}:{href:function(a){return a.getAttribute("href",2)},type:function(a){return a.getAttribute("type")}},find:{ID:s?function(a,b,c){if(typeof b.getElementById!==C&&!c){var d=b.getElementById(a);return d&&d.parentNode?[d]:[]}}:function(a,c,d){if(typeof c.getElementById!==C&&!d){var e=c.getElementById(a);return e?e.id===a||typeof e.getAttributeNode!==C&&e.getAttributeNode("id").value===a?[e]:b:[]}},TAG:jb?function(a,b){return typeof b.getElementsByTagName!==C?b.getElementsByTagName(a):void 0}:function(a,b){var c=b.getElementsByTagName(a);if("*"===a){for(var d,e=[],f=0;d=c[f];f++)1===d.nodeType&&e.push(d);return e}return c},NAME:nb&&function(a,b){return typeof b.getElementsByName!==C?b.getElementsByName(name):void 0},CLASS:mb&&function(a,b,c){return typeof b.getElementsByClassName===C||c?void 0:b.getElementsByClassName(a)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(gb,""),a[3]=(a[4]||a[5]||"").replace(gb,""),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1]?(a[2]||c.error(a[0]),a[3]=+(a[3]?a[4]+(a[5]||1):2*("even"===a[2]||"odd"===a[2])),a[4]=+(a[6]+a[7]||"odd"===a[2])):a[2]&&c.error(a[0]),a},PSEUDO:function(a){var b,c;return hb.CHILD.test(a[0])?null:(a[3]?a[2]=a[3]:(b=a[4])&&(bb.test(b)&&(c=h(b,!0))&&(c=b.indexOf(")",b.length-c)-b.length)&&(b=b.slice(0,c),a[0]=a[0].slice(0,c)),a[2]=b),a.slice(0,3))}},filter:{ID:s?function(a){return a=a.replace(gb,""),function(b){return b.getAttribute("id")===a}}:function(a){return a=a.replace(gb,""),function(b){var c=typeof b.getAttributeNode!==C&&b.getAttributeNode("id");return c&&c.value===a}},TAG:function(a){return"*"===a?function(){return!0}:(a=a.replace(gb,"").toLowerCase(),function(b){return b.nodeName&&b.nodeName.toLowerCase()===a})},CLASS:function(a){var b=P[D][a+" "];return b||(b=new RegExp("(^|"+S+")"+a+"("+S+"|$)"))&&P(a,function(a){return b.test(a.className||typeof a.getAttribute!==C&&a.getAttribute("class")||"")})},ATTR:function(a,b,d){return function(e){var f=c.attr(e,a);return null==f?"!="===b:b?(f+="","="===b?f===d:"!="===b?f!==d:"^="===b?d&&0===f.indexOf(d):"*="===b?d&&f.indexOf(d)>-1:"$="===b?d&&f.substr(f.length-d.length)===d:"~="===b?(" "+f+" ").indexOf(d)>-1:"|="===b?f===d||f.substr(0,d.length+1)===d+"-":!1):!0}},CHILD:function(a,b,c,d){return"nth"===a?function(a){var b,e,f=a.parentNode;if(1===c&&0===d)return!0;if(f)for(e=0,b=f.firstChild;b&&(1!==b.nodeType||(e++,a!==b));b=b.nextSibling);return e-=d,e===c||0===e%c&&e/c>=0}:function(b){var c=b;switch(a){case"only":case"first":for(;c=c.previousSibling;)if(1===c.nodeType)return!1;if("first"===a)return!0;c=b;case"last":for(;c=c.nextSibling;)if(1===c.nodeType)return!1;return!0}}},PSEUDO:function(a,b){var d,e=t.pseudos[a]||t.setFilters[a.toLowerCase()]||c.error("unsupported pseudo: "+a);return e[D]?e(b):e.length>1?(d=[a,a,"",b],t.setFilters.hasOwnProperty(a.toLowerCase())?N(function(a,c){for(var d,f=e(a,b),g=f.length;g--;)d=M.call(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,d)}):e}},pseudos:{not:N(function(a){var b=[],c=[],d=x(a.replace(Z,"$1"));return d[D]?N(function(a,b,c,e){for(var f,g=d(a,null,e,[]),h=a.length;h--;)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:N(function(a){return function(b){return c(a,b).length>0}}),contains:N(function(a){return function(b){return(b.textContent||b.innerText||u(b)).indexOf(a)>-1}}),enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},parent:function(a){return!t.pseudos.empty(a)},empty:function(a){var b;for(a=a.firstChild;a;){if(a.nodeName>"@"||3===(b=a.nodeType)||4===b)return!1;a=a.nextSibling}return!0},header:function(a){return eb.test(a.nodeName)},text:function(a){var b,c;return"input"===a.nodeName.toLowerCase()&&"text"===(b=a.type)&&(null==(c=a.getAttribute("type"))||c.toLowerCase()===b)},radio:d("radio"),checkbox:d("checkbox"),file:d("file"),password:d("password"),image:d("image"),submit:e("submit"),reset:e("reset"),button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},input:function(a){return fb.test(a.nodeName)},focus:function(a){var b=a.ownerDocument;return a===b.activeElement&&(!b.hasFocus||b.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},active:function(a){return a===a.ownerDocument.activeElement},first:f(function(){return[0]}),last:f(function(a,b){return[b-1]}),eq:f(function(a,b,c){return[0>c?c+b:c]}),even:f(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:f(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:f(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:f(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},y=G.compareDocumentPosition?function(a,b){return a===b?(z=!0,0):(a.compareDocumentPosition&&b.compareDocumentPosition?4&a.compareDocumentPosition(b):a.compareDocumentPosition)?-1:1}:function(a,b){if(a===b)return z=!0,0;if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=[],h=a.parentNode,i=b.parentNode,j=h;if(h===i)return g(a,b);if(!h)return-1;if(!i)return 1;for(;j;)e.unshift(j),j=j.parentNode;for(j=i;j;)f.unshift(j),j=j.parentNode;c=e.length,d=f.length;for(var k=0;c>k&&d>k;k++)if(e[k]!==f[k])return g(e[k],f[k]);return k===c?g(a,f[k],-1):g(e[k],b,1)},[0,0].sort(y),B=!z,c.uniqueSort=function(a){var b,c=[],d=1,e=0;if(z=B,a.sort(y),z){for(;b=a[d];d++)b===a[d-1]&&(e=c.push(d));for(;e--;)a.splice(c[e],1)}return a},c.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},x=c.compile=function(a,b){var c,d=[],e=[],f=R[D][a+" "];if(!f){for(b||(b=h(a)),c=b.length;c--;)f=m(b[c]),f[D]?d.push(f):e.push(f);f=R(a,n(e,d))}return f},F.querySelectorAll&&function(){var a,b=p,d=/'|\\/g,e=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,f=[":focus"],g=[":active"],i=G.matchesSelector||G.mozMatchesSelector||G.webkitMatchesSelector||G.oMatchesSelector||G.msMatchesSelector;ib(function(a){a.innerHTML="<select><option selected=''></option></select>",a.querySelectorAll("[selected]").length||f.push("\\["+S+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),a.querySelectorAll(":checked").length||f.push(":checked")}),ib(function(a){a.innerHTML="<p test=''></p>",a.querySelectorAll("[test^='']").length&&f.push("[*^$]="+S+"*(?:\"\"|'')"),a.innerHTML="<input type='hidden'/>",a.querySelectorAll(":enabled").length||f.push(":enabled",":disabled")}),f=new RegExp(f.join("|")),p=function(a,c,e,g,i){if(!g&&!i&&!f.test(a)){var j,k,l=!0,m=D,n=c,o=9===c.nodeType&&a;if(1===c.nodeType&&"object"!==c.nodeName.toLowerCase()){for(j=h(a),(l=c.getAttribute("id"))?m=l.replace(d,"\\$&"):c.setAttribute("id",m),m="[id='"+m+"'] ",k=j.length;k--;)j[k]=m+j[k].join("");n=db.test(a)&&c.parentNode||c,o=j.join(",")}if(o)try{return K.apply(e,L.call(n.querySelectorAll(o),0)),e}catch(p){}finally{l||c.removeAttribute("id")}}return b(a,c,e,g,i)},i&&(ib(function(b){a=i.call(b,"div");try{i.call(b,"[test!='']:sizzle"),g.push("!=",X)}catch(c){}}),g=new RegExp(g.join("|")),c.matchesSelector=function(b,d){if(d=d.replace(e,"='$1']"),!v(b)&&!g.test(d)&&!f.test(d))try{var h=i.call(b,d);if(h||a||b.document&&11!==b.document.nodeType)return h}catch(j){}return c(d,null,null,[b]).length>0})}(),t.pseudos.nth=t.pseudos.eq,t.filters=q.prototype=t.pseudos,t.setFilters=new q,c.attr=$.attr,$.find=c,$.expr=c.selectors,$.expr[":"]=$.expr.pseudos,$.unique=c.uniqueSort,$.text=c.getText,$.isXMLDoc=c.isXML,$.contains=c.contains}(a);var Ib=/Until$/,Jb=/^(?:parents|prev(?:Until|All))/,Kb=/^.[^:#\[\.,]*$/,Lb=$.expr.match.needsContext,Mb={children:!0,contents:!0,next:!0,prev:!0};$.fn.extend({find:function(a){var b,c,d,e,f,g,h=this;if("string"!=typeof a)return $(a).filter(function(){for(b=0,c=h.length;c>b;b++)if($.contains(h[b],this))return!0});for(g=this.pushStack("","find",a),b=0,c=this.length;c>b;b++)if(d=g.length,$.find(a,this[b],g),b>0)for(e=d;e<g.length;e++)for(f=0;d>f;f++)if(g[f]===g[e]){g.splice(e--,1);break}return g},has:function(a){var b,c=$(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if($.contains(this,c[b]))return!0})},not:function(a){return this.pushStack(j(this,a,!1),"not",a)},filter:function(a){return this.pushStack(j(this,a,!0),"filter",a)},is:function(a){return!!a&&("string"==typeof a?Lb.test(a)?$(a,this.context).index(this[0])>=0:$.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=Lb.test(a)||"string"!=typeof a?$(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c.ownerDocument&&c!==b&&11!==c.nodeType;){if(g?g.index(c)>-1:$.find.matchesSelector(c,a)){f.push(c);break}c=c.parentNode}return f=f.length>1?$.unique(f):f,this.pushStack(f,"closest",a)},index:function(a){return a?"string"==typeof a?$.inArray(this[0],$(a)):$.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(a,b){var c="string"==typeof a?$(a,b):$.makeArray(a&&a.nodeType?[a]:a),d=$.merge(this.get(),c);return this.pushStack(h(c[0])||h(d[0])?d:$.unique(d))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}}),$.fn.andSelf=$.fn.addBack,$.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return $.dir(a,"parentNode")},parentsUntil:function(a,b,c){return $.dir(a,"parentNode",c)},next:function(a){return i(a,"nextSibling")},prev:function(a){return i(a,"previousSibling")},nextAll:function(a){return $.dir(a,"nextSibling")},prevAll:function(a){return $.dir(a,"previousSibling")},nextUntil:function(a,b,c){return $.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return $.dir(a,"previousSibling",c)},siblings:function(a){return $.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return $.sibling(a.firstChild)},contents:function(a){return $.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:$.merge([],a.childNodes)}},function(a,b){$.fn[a]=function(c,d){var e=$.map(this,b,c);return Ib.test(a)||(d=c),d&&"string"==typeof d&&(e=$.filter(d,e)),e=this.length>1&&!Mb[a]?$.unique(e):e,this.length>1&&Jb.test(a)&&(e=e.reverse()),this.pushStack(e,a,V.call(arguments).join(","))}}),$.extend({filter:function(a,b,c){return c&&(a=":not("+a+")"),1===b.length?$.find.matchesSelector(b[0],a)?[b[0]]:[]:$.find.matches(a,b)},dir:function(a,c,d){for(var e=[],f=a[c];f&&9!==f.nodeType&&(d===b||1!==f.nodeType||!$(f).is(d));)1===f.nodeType&&e.push(f),f=f[c];return e},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}});var Nb="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Ob=/ jQuery\d+="(?:null|\d+)"/g,Pb=/^\s+/,Qb=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Rb=/<([\w:]+)/,Sb=/<tbody/i,Tb=/<|&#?\w+;/,Ub=/<(?:script|style|link)/i,Vb=/<(?:script|object|embed|option|style)/i,Wb=new RegExp("<(?:"+Nb+")[\\s/>]","i"),Xb=/^(?:checkbox|radio)$/,Yb=/checked\s*(?:[^=]|=\s*.checked.)/i,Zb=/\/(java|ecma)script/i,$b=/^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g,_b={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},ac=k(P),bc=ac.appendChild(P.createElement("div"));_b.optgroup=_b.option,_b.tbody=_b.tfoot=_b.colgroup=_b.caption=_b.thead,_b.th=_b.td,$.support.htmlSerialize||(_b._default=[1,"X<div>","</div>"]),$.fn.extend({text:function(a){return $.access(this,function(a){return a===b?$.text(this):this.empty().append((this[0]&&this[0].ownerDocument||P).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if($.isFunction(a))return this.each(function(b){$(this).wrapAll(a.call(this,b))});if(this[0]){var b=$(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){for(var a=this;a.firstChild&&1===a.firstChild.nodeType;)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return $.isFunction(a)?this.each(function(b){$(this).wrapInner(a.call(this,b))}):this.each(function(){var b=$(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=$.isFunction(a);return this.each(function(c){$(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){$.nodeName(this,"body")||$(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){(1===this.nodeType||11===this.nodeType)&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){(1===this.nodeType||11===this.nodeType)&&this.insertBefore(a,this.firstChild)})},before:function(){if(!h(this[0]))return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=$.clean(arguments);return this.pushStack($.merge(a,this),"before",this.selector)}},after:function(){if(!h(this[0]))return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=$.clean(arguments);return this.pushStack($.merge(this,a),"after",this.selector)}},remove:function(a,b){for(var c,d=0;null!=(c=this[d]);d++)(!a||$.filter(a,[c]).length)&&(b||1!==c.nodeType||($.cleanData(c.getElementsByTagName("*")),$.cleanData([c])),c.parentNode&&c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)for(1===a.nodeType&&$.cleanData(a.getElementsByTagName("*"));a.firstChild;)a.removeChild(a.firstChild);return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return $.clone(this,a,b)})},html:function(a){return $.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return 1===c.nodeType?c.innerHTML.replace(Ob,""):b;if(!("string"!=typeof a||Ub.test(a)||!$.support.htmlSerialize&&Wb.test(a)||!$.support.leadingWhitespace&&Pb.test(a)||_b[(Rb.exec(a)||["",""])[1].toLowerCase()])){a=a.replace(Qb,"<$1></$2>");try{for(;e>d;d++)c=this[d]||{},1===c.nodeType&&($.cleanData(c.getElementsByTagName("*")),c.innerHTML=a);c=0}catch(f){}}c&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(a){return h(this[0])?this.length?this.pushStack($($.isFunction(a)?a():a),"replaceWith",a):this:$.isFunction(a)?this.each(function(b){var c=$(this),d=c.html();c.replaceWith(a.call(this,b,d))}):("string"!=typeof a&&(a=$(a).detach()),this.each(function(){var b=this.nextSibling,c=this.parentNode;$(this).remove(),b?$(b).before(a):$(c).append(a)}))},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,d){a=[].concat.apply([],a);var e,f,g,h,i=0,j=a[0],k=[],m=this.length;if(!$.support.checkClone&&m>1&&"string"==typeof j&&Yb.test(j))return this.each(function(){$(this).domManip(a,c,d)});if($.isFunction(j))return this.each(function(e){var f=$(this);a[0]=j.call(this,e,c?f.html():b),f.domManip(a,c,d)});if(this[0]){if(e=$.buildFragment(a,this,k),g=e.fragment,f=g.firstChild,1===g.childNodes.length&&(g=f),f)for(c=c&&$.nodeName(f,"tr"),h=e.cacheable||m-1;m>i;i++)d.call(c&&$.nodeName(this[i],"table")?l(this[i],"tbody"):this[i],i===h?g:$.clone(g,!0,!0));g=f=null,k.length&&$.each(k,function(a,b){b.src?$.ajax?$.ajax({url:b.src,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0}):$.error("no ajax"):$.globalEval((b.text||b.textContent||b.innerHTML||"").replace($b,"")),b.parentNode&&b.parentNode.removeChild(b)})}return this}}),$.buildFragment=function(a,c,d){var e,f,g,h=a[0];return c=c||P,c=!c.nodeType&&c[0]||c,c=c.ownerDocument||c,!(1===a.length&&"string"==typeof h&&h.length<512&&c===P&&"<"===h.charAt(0))||Vb.test(h)||!$.support.checkClone&&Yb.test(h)||!$.support.html5Clone&&Wb.test(h)||(f=!0,e=$.fragments[h],g=e!==b),e||(e=c.createDocumentFragment(),$.clean(a,c,e,d),f&&($.fragments[h]=g&&e)),{fragment:e,cacheable:f}},$.fragments={},$.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){$.fn[a]=function(c){var d,e=0,f=[],g=$(c),h=g.length,i=1===this.length&&this[0].parentNode;if((null==i||i&&11===i.nodeType&&1===i.childNodes.length)&&1===h)return g[b](this[0]),this;for(;h>e;e++)d=(e>0?this.clone(!0):this).get(),$(g[e])[b](d),f=f.concat(d);return this.pushStack(f,a,g.selector)}}),$.extend({clone:function(a,b,c){var d,e,f,g;if($.support.html5Clone||$.isXMLDoc(a)||!Wb.test("<"+a.nodeName+">")?g=a.cloneNode(!0):(bc.innerHTML=a.outerHTML,bc.removeChild(g=bc.firstChild)),!($.support.noCloneEvent&&$.support.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||$.isXMLDoc(a)))for(n(a,g),d=o(a),e=o(g),f=0;d[f];++f)e[f]&&n(d[f],e[f]);if(b&&(m(a,g),c))for(d=o(a),e=o(g),f=0;d[f];++f)m(d[f],e[f]);return d=e=null,g},clean:function(a,b,c,d){var e,f,g,h,i,j,l,m,n,o,q,r=b===P&&ac,s=[];for(b&&"undefined"!=typeof b.createDocumentFragment||(b=P),e=0;null!=(g=a[e]);e++)if("number"==typeof g&&(g+=""),g){if("string"==typeof g)if(Tb.test(g)){for(r=r||k(b),l=b.createElement("div"),r.appendChild(l),g=g.replace(Qb,"<$1></$2>"),h=(Rb.exec(g)||["",""])[1].toLowerCase(),i=_b[h]||_b._default,j=i[0],l.innerHTML=i[1]+g+i[2];j--;)l=l.lastChild;if(!$.support.tbody)for(m=Sb.test(g),n="table"!==h||m?"<table>"!==i[1]||m?[]:l.childNodes:l.firstChild&&l.firstChild.childNodes,f=n.length-1;f>=0;--f)$.nodeName(n[f],"tbody")&&!n[f].childNodes.length&&n[f].parentNode.removeChild(n[f]);!$.support.leadingWhitespace&&Pb.test(g)&&l.insertBefore(b.createTextNode(Pb.exec(g)[0]),l.firstChild),g=l.childNodes,l.parentNode.removeChild(l)}else g=b.createTextNode(g);g.nodeType?s.push(g):$.merge(s,g)}if(l&&(g=l=r=null),!$.support.appendChecked)for(e=0;null!=(g=s[e]);e++)$.nodeName(g,"input")?p(g):"undefined"!=typeof g.getElementsByTagName&&$.grep(g.getElementsByTagName("input"),p);if(c)for(o=function(a){return!a.type||Zb.test(a.type)?d?d.push(a.parentNode?a.parentNode.removeChild(a):a):c.appendChild(a):void 0},e=0;null!=(g=s[e]);e++)$.nodeName(g,"script")&&o(g)||(c.appendChild(g),"undefined"!=typeof g.getElementsByTagName&&(q=$.grep($.merge([],g.getElementsByTagName("script")),o),s.splice.apply(s,[e+1,0].concat(q)),e+=q.length));return s},cleanData:function(a,b){for(var c,d,e,f,g=0,h=$.expando,i=$.cache,j=$.support.deleteExpando,k=$.event.special;null!=(e=a[g]);g++)if((b||$.acceptData(e))&&(d=e[h],c=d&&i[d])){if(c.events)for(f in c.events)k[f]?$.event.remove(e,f):$.removeEvent(e,f,c.handle);i[d]&&(delete i[d],j?delete e[h]:e.removeAttribute?e.removeAttribute(h):e[h]=null,$.deletedIds.push(d))}}}),function(){var a,b;$.uaMatch=function(a){a=a.toLowerCase();var b=/(chrome)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||a.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},a=$.uaMatch(R.userAgent),b={},a.browser&&(b[a.browser]=!0,b.version=a.version),b.chrome?b.webkit=!0:b.webkit&&(b.safari=!0),$.browser=b,$.sub=function(){function a(b,c){return new a.fn.init(b,c)}$.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function(c,d){return d&&d instanceof $&&!(d instanceof a)&&(d=a(d)),$.fn.init.call(this,c,d,b)},a.fn.init.prototype=a.fn;var b=a(P);return a}}();var cc,dc,ec,fc=/alpha\([^)]*\)/i,gc=/opacity=([^)]*)/,hc=/^(top|right|bottom|left)$/,ic=/^(none|table(?!-c[ea]).+)/,jc=/^margin/,kc=new RegExp("^("+_+")(.*)$","i"),lc=new RegExp("^("+_+")(?!px)[a-z%]+$","i"),mc=new RegExp("^([-+])=("+_+")","i"),nc={BODY:"block"},oc={position:"absolute",visibility:"hidden",display:"block"},pc={letterSpacing:0,fontWeight:400},qc=["Top","Right","Bottom","Left"],rc=["Webkit","O","Moz","ms"],sc=$.fn.toggle;$.fn.extend({css:function(a,c){return $.access(this,function(a,c,d){return d!==b?$.style(a,c,d):$.css(a,c)},a,c,arguments.length>1)},show:function(){return s(this,!0)},hide:function(){return s(this)},toggle:function(a,b){var c="boolean"==typeof a;return $.isFunction(a)&&$.isFunction(b)?sc.apply(this,arguments):this.each(function(){(c?a:r(this))?$(this).show():$(this).hide()})}}),$.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=cc(a,"opacity");return""===c?"1":c}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":$.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var f,g,h,i=$.camelCase(c),j=a.style;if(c=$.cssProps[i]||($.cssProps[i]=q(j,i)),h=$.cssHooks[c]||$.cssHooks[i],d===b)return h&&"get"in h&&(f=h.get(a,!1,e))!==b?f:j[c];if(g=typeof d,"string"===g&&(f=mc.exec(d))&&(d=(f[1]+1)*f[2]+parseFloat($.css(a,c)),g="number"),!(null==d||"number"===g&&isNaN(d)||("number"!==g||$.cssNumber[i]||(d+="px"),h&&"set"in h&&(d=h.set(a,d,e))===b)))try{j[c]=d}catch(k){}}},css:function(a,c,d,e){var f,g,h,i=$.camelCase(c);return c=$.cssProps[i]||($.cssProps[i]=q(a.style,i)),h=$.cssHooks[c]||$.cssHooks[i],h&&"get"in h&&(f=h.get(a,!0,e)),f===b&&(f=cc(a,c)),"normal"===f&&c in pc&&(f=pc[c]),d||e!==b?(g=parseFloat(f),d||$.isNumeric(g)?g||0:f):f},swap:function(a,b,c){var d,e,f={};for(e in b)f[e]=a.style[e],a.style[e]=b[e];d=c.call(a);for(e in b)a.style[e]=f[e];return d}}),a.getComputedStyle?cc=function(b,c){var d,e,f,g,h=a.getComputedStyle(b,null),i=b.style;return h&&(d=h.getPropertyValue(c)||h[c],""!==d||$.contains(b.ownerDocument,b)||(d=$.style(b,c)),lc.test(d)&&jc.test(c)&&(e=i.width,f=i.minWidth,g=i.maxWidth,i.minWidth=i.maxWidth=i.width=d,d=h.width,i.width=e,i.minWidth=f,i.maxWidth=g)),d}:P.documentElement.currentStyle&&(cc=function(a,b){var c,d,e=a.currentStyle&&a.currentStyle[b],f=a.style;return null==e&&f&&f[b]&&(e=f[b]),lc.test(e)&&!hc.test(b)&&(c=f.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),f.left="fontSize"===b?"1em":e,e=f.pixelLeft+"px",f.left=c,d&&(a.runtimeStyle.left=d)),""===e?"auto":e}),$.each(["height","width"],function(a,b){$.cssHooks[b]={get:function(a,c,d){return c?0===a.offsetWidth&&ic.test(cc(a,"display"))?$.swap(a,oc,function(){return v(a,b,d)}):v(a,b,d):void 0},set:function(a,c,d){return t(a,c,d?u(a,b,d,$.support.boxSizing&&"border-box"===$.css(a,"boxSizing")):0)}}}),$.support.opacity||($.cssHooks.opacity={get:function(a,b){return gc.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=$.isNumeric(b)?"alpha(opacity="+100*b+")":"",f=d&&d.filter||c.filter||"";c.zoom=1,b>=1&&""===$.trim(f.replace(fc,""))&&c.removeAttribute&&(c.removeAttribute("filter"),d&&!d.filter)||(c.filter=fc.test(f)?f.replace(fc,e):f+" "+e)}}),$(function(){$.support.reliableMarginRight||($.cssHooks.marginRight={get:function(a,b){return $.swap(a,{display:"inline-block"},function(){return b?cc(a,"marginRight"):void 0})}}),!$.support.pixelPosition&&$.fn.position&&$.each(["top","left"],function(a,b){$.cssHooks[b]={get:function(a,c){if(c){var d=cc(a,b);return lc.test(d)?$(a).position()[b]+"px":d}}}})}),$.expr&&$.expr.filters&&($.expr.filters.hidden=function(a){return 0===a.offsetWidth&&0===a.offsetHeight||!$.support.reliableHiddenOffsets&&"none"===(a.style&&a.style.display||cc(a,"display"))},$.expr.filters.visible=function(a){return!$.expr.filters.hidden(a)}),$.each({margin:"",padding:"",border:"Width"},function(a,b){$.cssHooks[a+b]={expand:function(c){var d,e="string"==typeof c?c.split(" "):[c],f={};for(d=0;4>d;d++)f[a+qc[d]+b]=e[d]||e[d-2]||e[0];
return f}},jc.test(a)||($.cssHooks[a+b].set=t)});var tc=/%20/g,uc=/\[\]$/,vc=/\r?\n/g,wc=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,xc=/^(?:select|textarea)/i;$.fn.extend({serialize:function(){return $.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?$.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||xc.test(this.nodeName)||wc.test(this.type))}).map(function(a,b){var c=$(this).val();return null==c?null:$.isArray(c)?$.map(c,function(a){return{name:b.name,value:a.replace(vc,"\r\n")}}):{name:b.name,value:c.replace(vc,"\r\n")}}).get()}}),$.param=function(a,c){var d,e=[],f=function(a,b){b=$.isFunction(b)?b():null==b?"":b,e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(c===b&&(c=$.ajaxSettings&&$.ajaxSettings.traditional),$.isArray(a)||a.jquery&&!$.isPlainObject(a))$.each(a,function(){f(this.name,this.value)});else for(d in a)x(d,a[d],c,f);return e.join("&").replace(tc,"+")};var yc,zc,Ac=/#.*$/,Bc=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Cc=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,Dc=/^(?:GET|HEAD)$/,Ec=/^\/\//,Fc=/\?/,Gc=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,Hc=/([?&])_=[^&]*/,Ic=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Jc=$.fn.load,Kc={},Lc={},Mc=["*/"]+["*"];try{zc=Q.href}catch(Nc){zc=P.createElement("a"),zc.href="",zc=zc.href}yc=Ic.exec(zc.toLowerCase())||[],$.fn.load=function(a,c,d){if("string"!=typeof a&&Jc)return Jc.apply(this,arguments);if(!this.length)return this;var e,f,g,h=this,i=a.indexOf(" ");return i>=0&&(e=a.slice(i,a.length),a=a.slice(0,i)),$.isFunction(c)?(d=c,c=b):c&&"object"==typeof c&&(f="POST"),$.ajax({url:a,type:f,dataType:"html",data:c,complete:function(a,b){d&&h.each(d,g||[a.responseText,b,a])}}).done(function(a){g=arguments,h.html(e?$("<div>").append(a.replace(Gc,"")).find(e):a)}),this},$.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){$.fn[b]=function(a){return this.on(b,a)}}),$.each(["get","post"],function(a,c){$[c]=function(a,d,e,f){return $.isFunction(d)&&(f=f||e,e=d,d=b),$.ajax({type:c,url:a,data:d,success:e,dataType:f})}}),$.extend({getScript:function(a,c){return $.get(a,b,c,"script")},getJSON:function(a,b,c){return $.get(a,b,c,"json")},ajaxSetup:function(a,b){return b?A(a,$.ajaxSettings):(b=a,a=$.ajaxSettings),A(a,b),a},ajaxSettings:{url:zc,isLocal:Cc.test(yc[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":Mc},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":$.parseJSON,"text xml":$.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:y(Kc),ajaxTransport:y(Lc),ajax:function(a,c){function d(a,c,d,g){var j,l,s,t,v,x=c;2!==u&&(u=2,i&&clearTimeout(i),h=b,f=g||"",w.readyState=a>0?4:0,d&&(t=B(m,w,d)),a>=200&&300>a||304===a?(m.ifModified&&(v=w.getResponseHeader("Last-Modified"),v&&($.lastModified[e]=v),v=w.getResponseHeader("Etag"),v&&($.etag[e]=v)),304===a?(x="notmodified",j=!0):(j=C(m,t),x=j.state,l=j.data,s=j.error,j=!s)):(s=x,(!x||a)&&(x="error",0>a&&(a=0))),w.status=a,w.statusText=(c||x)+"",j?p.resolveWith(n,[l,x,w]):p.rejectWith(n,[w,x,s]),w.statusCode(r),r=b,k&&o.trigger("ajax"+(j?"Success":"Error"),[w,m,j?l:s]),q.fireWith(n,[w,x]),k&&(o.trigger("ajaxComplete",[w,m]),--$.active||$.event.trigger("ajaxStop")))}"object"==typeof a&&(c=a,a=b),c=c||{};var e,f,g,h,i,j,k,l,m=$.ajaxSetup({},c),n=m.context||m,o=n!==m&&(n.nodeType||n instanceof $)?$(n):$.event,p=$.Deferred(),q=$.Callbacks("once memory"),r=m.statusCode||{},s={},t={},u=0,v="canceled",w={readyState:0,setRequestHeader:function(a,b){if(!u){var c=a.toLowerCase();a=t[c]=t[c]||a,s[a]=b}return this},getAllResponseHeaders:function(){return 2===u?f:null},getResponseHeader:function(a){var c;if(2===u){if(!g)for(g={};c=Bc.exec(f);)g[c[1].toLowerCase()]=c[2];c=g[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){return u||(m.mimeType=a),this},abort:function(a){return a=a||v,h&&h.abort(a),d(0,a),this}};if(p.promise(w),w.success=w.done,w.error=w.fail,w.complete=q.add,w.statusCode=function(a){if(a){var b;if(2>u)for(b in a)r[b]=[r[b],a[b]];else b=a[w.status],w.always(b)}return this},m.url=((a||m.url)+"").replace(Ac,"").replace(Ec,yc[1]+"//"),m.dataTypes=$.trim(m.dataType||"*").toLowerCase().split(bb),null==m.crossDomain&&(j=Ic.exec(m.url.toLowerCase()),m.crossDomain=!(!j||j[1]===yc[1]&&j[2]===yc[2]&&(j[3]||("http:"===j[1]?80:443))==(yc[3]||("http:"===yc[1]?80:443)))),m.data&&m.processData&&"string"!=typeof m.data&&(m.data=$.param(m.data,m.traditional)),z(Kc,m,c,w),2===u)return w;if(k=m.global,m.type=m.type.toUpperCase(),m.hasContent=!Dc.test(m.type),k&&0===$.active++&&$.event.trigger("ajaxStart"),!m.hasContent&&(m.data&&(m.url+=(Fc.test(m.url)?"&":"?")+m.data,delete m.data),e=m.url,m.cache===!1)){var x=$.now(),y=m.url.replace(Hc,"$1_="+x);m.url=y+(y===m.url?(Fc.test(m.url)?"&":"?")+"_="+x:"")}(m.data&&m.hasContent&&m.contentType!==!1||c.contentType)&&w.setRequestHeader("Content-Type",m.contentType),m.ifModified&&(e=e||m.url,$.lastModified[e]&&w.setRequestHeader("If-Modified-Since",$.lastModified[e]),$.etag[e]&&w.setRequestHeader("If-None-Match",$.etag[e])),w.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+Mc+"; q=0.01":""):m.accepts["*"]);for(l in m.headers)w.setRequestHeader(l,m.headers[l]);if(m.beforeSend&&(m.beforeSend.call(n,w,m)===!1||2===u))return w.abort();v="abort";for(l in{success:1,error:1,complete:1})w[l](m[l]);if(h=z(Lc,m,c,w)){w.readyState=1,k&&o.trigger("ajaxSend",[w,m]),m.async&&m.timeout>0&&(i=setTimeout(function(){w.abort("timeout")},m.timeout));try{u=1,h.send(s,d)}catch(A){if(!(2>u))throw A;d(-1,A)}}else d(-1,"No Transport");return w},active:0,lastModified:{},etag:{}});var Oc=[],Pc=/\?/,Qc=/(=)\?(?=&|$)|\?\?/,Rc=$.now();$.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Oc.pop()||$.expando+"_"+Rc++;return this[a]=!0,a}}),$.ajaxPrefilter("json jsonp",function(c,d,e){var f,g,h,i=c.data,j=c.url,k=c.jsonp!==!1,l=k&&Qc.test(j),m=k&&!l&&"string"==typeof i&&!(c.contentType||"").indexOf("application/x-www-form-urlencoded")&&Qc.test(i);return"jsonp"===c.dataTypes[0]||l||m?(f=c.jsonpCallback=$.isFunction(c.jsonpCallback)?c.jsonpCallback():c.jsonpCallback,g=a[f],l?c.url=j.replace(Qc,"$1"+f):m?c.data=i.replace(Qc,"$1"+f):k&&(c.url+=(Pc.test(j)?"&":"?")+c.jsonp+"="+f),c.converters["script json"]=function(){return h||$.error(f+" was not called"),h[0]},c.dataTypes[0]="json",a[f]=function(){h=arguments},e.always(function(){a[f]=g,c[f]&&(c.jsonpCallback=d.jsonpCallback,Oc.push(f)),h&&$.isFunction(g)&&g(h[0]),h=g=b}),"script"):void 0}),$.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){return $.globalEval(a),a}}}),$.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),$.ajaxTransport("script",function(a){if(a.crossDomain){var c,d=P.head||P.getElementsByTagName("head")[0]||P.documentElement;return{send:function(e,f){c=P.createElement("script"),c.async="async",a.scriptCharset&&(c.charset=a.scriptCharset),c.src=a.url,c.onload=c.onreadystatechange=function(a,e){(e||!c.readyState||/loaded|complete/.test(c.readyState))&&(c.onload=c.onreadystatechange=null,d&&c.parentNode&&d.removeChild(c),c=b,e||f(200,"success"))},d.insertBefore(c,d.firstChild)},abort:function(){c&&c.onload(0,1)}}}});var Sc,Tc=a.ActiveXObject?function(){for(var a in Sc)Sc[a](0,1)}:!1,Uc=0;$.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&D()||E()}:D,function(a){$.extend($.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}($.ajaxSettings.xhr()),$.support.ajax&&$.ajaxTransport(function(c){if(!c.crossDomain||$.support.cors){var d;return{send:function(e,f){var g,h,i=c.xhr();if(c.username?i.open(c.type,c.url,c.async,c.username,c.password):i.open(c.type,c.url,c.async),c.xhrFields)for(h in c.xhrFields)i[h]=c.xhrFields[h];c.mimeType&&i.overrideMimeType&&i.overrideMimeType(c.mimeType),c.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest");try{for(h in e)i.setRequestHeader(h,e[h])}catch(j){}i.send(c.hasContent&&c.data||null),d=function(a,e){var h,j,k,l,m;try{if(d&&(e||4===i.readyState))if(d=b,g&&(i.onreadystatechange=$.noop,Tc&&delete Sc[g]),e)4!==i.readyState&&i.abort();else{h=i.status,k=i.getAllResponseHeaders(),l={},m=i.responseXML,m&&m.documentElement&&(l.xml=m);try{l.text=i.responseText}catch(n){}try{j=i.statusText}catch(n){j=""}h||!c.isLocal||c.crossDomain?1223===h&&(h=204):h=l.text?200:404}}catch(o){e||f(-1,o)}l&&f(h,j,l,k)},c.async?4===i.readyState?setTimeout(d,0):(g=++Uc,Tc&&(Sc||(Sc={},$(a).unload(Tc)),Sc[g]=d),i.onreadystatechange=d):d()},abort:function(){d&&d(0,1)}}}});var Vc,Wc,Xc=/^(?:toggle|show|hide)$/,Yc=new RegExp("^(?:([-+])=|)("+_+")([a-z%]*)$","i"),Zc=/queueHooks$/,$c=[J],_c={"*":[function(a,b){var c,d,e=this.createTween(a,b),f=Yc.exec(b),g=e.cur(),h=+g||0,i=1,j=20;if(f){if(c=+f[2],d=f[3]||($.cssNumber[a]?"":"px"),"px"!==d&&h){h=$.css(e.elem,a,!0)||c||1;do i=i||".5",h/=i,$.style(e.elem,a,h+d);while(i!==(i=e.cur()/g)&&1!==i&&--j)}e.unit=d,e.start=h,e.end=f[1]?h+(f[1]+1)*c:c}return e}]};$.Animation=$.extend(H,{tweener:function(a,b){$.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++)c=a[d],_c[c]=_c[c]||[],_c[c].unshift(b)},prefilter:function(a,b){b?$c.unshift(a):$c.push(a)}}),$.Tween=K,K.prototype={constructor:K,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||($.cssNumber[c]?"":"px")},cur:function(){var a=K.propHooks[this.prop];return a&&a.get?a.get(this):K.propHooks._default.get(this)},run:function(a){var b,c=K.propHooks[this.prop];return this.pos=b=this.options.duration?$.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):K.propHooks._default.set(this),this}},K.prototype.init.prototype=K.prototype,K.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=$.css(a.elem,a.prop,!1,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){$.fx.step[a.prop]?$.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[$.cssProps[a.prop]]||$.cssHooks[a.prop])?$.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},K.propHooks.scrollTop=K.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},$.each(["toggle","show","hide"],function(a,b){var c=$.fn[b];$.fn[b]=function(d,e,f){return null==d||"boolean"==typeof d||!a&&$.isFunction(d)&&$.isFunction(e)?c.apply(this,arguments):this.animate(L(b,!0),d,e,f)}}),$.fn.extend({fadeTo:function(a,b,c,d){return this.filter(r).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=$.isEmptyObject(a),f=$.speed(b,c,d),g=function(){var b=H(this,$.extend({},a),f);e&&b.stop(!0)};return e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,c,d){var e=function(a){var b=a.stop;delete a.stop,b(d)};return"string"!=typeof a&&(d=c,c=a,a=b),c&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,c=null!=a&&a+"queueHooks",f=$.timers,g=$._data(this);if(c)g[c]&&g[c].stop&&e(g[c]);else for(c in g)g[c]&&g[c].stop&&Zc.test(c)&&e(g[c]);for(c=f.length;c--;)f[c].elem!==this||null!=a&&f[c].queue!==a||(f[c].anim.stop(d),b=!1,f.splice(c,1));(b||!d)&&$.dequeue(this,a)})}}),$.each({slideDown:L("show"),slideUp:L("hide"),slideToggle:L("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){$.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),$.speed=function(a,b,c){var d=a&&"object"==typeof a?$.extend({},a):{complete:c||!c&&b||$.isFunction(a)&&a,duration:a,easing:c&&b||b&&!$.isFunction(b)&&b};return d.duration=$.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in $.fx.speeds?$.fx.speeds[d.duration]:$.fx.speeds._default,(null==d.queue||d.queue===!0)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){$.isFunction(d.old)&&d.old.call(this),d.queue&&$.dequeue(this,d.queue)},d},$.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},$.timers=[],$.fx=K.prototype.init,$.fx.tick=function(){var a,c=$.timers,d=0;for(Vc=$.now();d<c.length;d++)a=c[d],a()||c[d]!==a||c.splice(d--,1);c.length||$.fx.stop(),Vc=b},$.fx.timer=function(a){a()&&$.timers.push(a)&&!Wc&&(Wc=setInterval($.fx.tick,$.fx.interval))},$.fx.interval=13,$.fx.stop=function(){clearInterval(Wc),Wc=null},$.fx.speeds={slow:600,fast:200,_default:400},$.fx.step={},$.expr&&$.expr.filters&&($.expr.filters.animated=function(a){return $.grep($.timers,function(b){return a===b.elem}).length});var ad=/^(?:body|html)$/i;$.fn.offset=function(a){if(arguments.length)return a===b?this:this.each(function(b){$.offset.setOffset(this,a,b)});var c,d,e,f,g,h,i,j={top:0,left:0},k=this[0],l=k&&k.ownerDocument;if(l)return(d=l.body)===k?$.offset.bodyOffset(k):(c=l.documentElement,$.contains(c,k)?("undefined"!=typeof k.getBoundingClientRect&&(j=k.getBoundingClientRect()),e=M(l),f=c.clientTop||d.clientTop||0,g=c.clientLeft||d.clientLeft||0,h=e.pageYOffset||c.scrollTop,i=e.pageXOffset||c.scrollLeft,{top:j.top+h-f,left:j.left+i-g}):j)},$.offset={bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;return $.support.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat($.css(a,"marginTop"))||0,c+=parseFloat($.css(a,"marginLeft"))||0),{top:b,left:c}},setOffset:function(a,b,c){var d=$.css(a,"position");"static"===d&&(a.style.position="relative");var e,f,g=$(a),h=g.offset(),i=$.css(a,"top"),j=$.css(a,"left"),k=("absolute"===d||"fixed"===d)&&$.inArray("auto",[i,j])>-1,l={},m={};k?(m=g.position(),e=m.top,f=m.left):(e=parseFloat(i)||0,f=parseFloat(j)||0),$.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(l.top=b.top-h.top+e),null!=b.left&&(l.left=b.left-h.left+f),"using"in b?b.using.call(a,l):g.css(l)}},$.fn.extend({position:function(){if(this[0]){var a=this[0],b=this.offsetParent(),c=this.offset(),d=ad.test(b[0].nodeName)?{top:0,left:0}:b.offset();return c.top-=parseFloat($.css(a,"marginTop"))||0,c.left-=parseFloat($.css(a,"marginLeft"))||0,d.top+=parseFloat($.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat($.css(b[0],"borderLeftWidth"))||0,{top:c.top-d.top,left:c.left-d.left}}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||P.body;a&&!ad.test(a.nodeName)&&"static"===$.css(a,"position");)a=a.offsetParent;return a||P.body})}}),$.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);$.fn[a]=function(e){return $.access(this,function(a,e,f){var g=M(a);return f===b?g?c in g?g[c]:g.document.documentElement[e]:a[e]:(g?g.scrollTo(d?$(g).scrollLeft():f,d?f:$(g).scrollTop()):a[e]=f,void 0)},a,e,arguments.length,null)}}),$.each({Height:"height",Width:"width"},function(a,c){$.each({padding:"inner"+a,content:c,"":"outer"+a},function(d,e){$.fn[e]=function(e,f){var g=arguments.length&&(d||"boolean"!=typeof e),h=d||(e===!0||f===!0?"margin":"border");return $.access(this,function(c,d,e){var f;return $.isWindow(c)?c.document.documentElement["client"+a]:9===c.nodeType?(f=c.documentElement,Math.max(c.body["scroll"+a],f["scroll"+a],c.body["offset"+a],f["offset"+a],f["client"+a])):e===b?$.css(c,d,e,h):$.style(c,d,e,h)},c,g?e:b,g,null)}})}),a.jQuery=a.$=$,"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return $})}(window),/*!
 * jQuery selector filter for JSF-generated IDs containing colons ":"
 *
 * Copyright OutSystems
 * Released under the MIT license
 */
function(a){var b=a.fn.init,c=/^\s*#\S+\s*$/;a.fn.init=function(d,e,f){var g="";if(d&&"string"==typeof d)for(var h=d.split(" "),i=0;i<h.length;i++){var j=h[i];if(c.test(j)){for(var k=j.split(":"),l=0,m=k.length-1;m>0&&k[m]in a.expr[":"];m--)l++;j=l?k.slice(0,k.length-l).join("\\:")+":"+k.slice(-l).join(":"):j.replace(/([^\\]):/g,"$1\\:")}0!==i&&(g+=" "),g+=j}else g=d;return b.call(this,g,e,f)},a.fn.init.prototype=b.prototype}(jQuery),/*!
 * jQuery security fixes for:
 *  - CVE-2015-9251
 *  - CVE-2019-11358
 *  - CVE-2020-7656
 *
 * Copyright OutSystems
 * Released under the MIT license
 */
function(a){a.ajaxPrefilter(function(a){a.crossDomain&&(a.contents.script=!1)})}(jQuery),function(a){var b=a.fn.extend,c=a.extend;a.extend=a.fn.extend=function(){var b,c,d,e,f,g,h=arguments[0]||{},i=1,j=arguments.length,k=!1;for("boolean"==typeof h&&(k=h,h=arguments[1]||{},i=2),"object"==typeof h||a.isFunction(h)||(h={}),j===i&&(h=this,--i);j>i;i++)if(null!=(b=arguments[i]))for(c in b)d=h[c],e=b[c],"__proto__"!==c&&h!==e&&(k&&e&&(a.isPlainObject(e)||(f=a.isArray(e)))?(f?(f=!1,g=d&&a.isArray(d)?d:[]):g=d&&a.isPlainObject(d)?d:{},h[c]=a.extend(k,g,e)):void 0!==e&&(h[c]=e));return h},a.fn.extend.prototype=b.prototype,a.extend.prototype=c.prototype}(jQuery),function(a){var b=a.fn.load;a.fn.load=function(c,d,e){if("string"!=typeof c)return b.apply(this,arguments);if(!this.length)return this;var f,g,h,i=this,j=c.indexOf(" ");return j>=0&&(f=c.slice(j,c.length),c=c.slice(0,j)),a.isFunction(d)?(e=d,d=void 0):d&&"object"==typeof d&&(g="POST"),a.ajax({url:c,type:g,dataType:"html",data:d,complete:function(a,b){e&&i.each(e,h||[a.responseText,b,a])}}).done(function(b){h=arguments,i.html(f?a("<div>").append(a.parseHTML(b)).find(f):b)}),this},a.fn.load.prototype=b.prototype}(jQuery),jQuery.noConflict(!0)},outsystems.internal.$=outsystems.internal.jQueryFactory(window);var osjs=outsystems.internal.jQueryFactory(window);if(osjs.isOutSystemsJQuery=!0,outsystems.internal.$.inCompatibilityMode=!1,function(a){a.fn.ready=function(b){outsystems.internal.$(function(){b(a)})}}(osjs),outsystems.internal.previous$=window.$,outsystems.internal.previousjQuery=window.jQuery,!outsystems.internal.previousjQuery){var jQuery=osjs;if(!outsystems.internal.previous$)var $=jQuery}delete outsystems.internal.jQueryFactory,outsystems.internal.registerClickInBothJQueries=function(a,b){outsystems.internal.$(a).click(b),null!=osjs.isOutSystemsJQuery&&1==osjs.isOutSystemsJQuery&&osjs(a).click(b)},/*!
 * jQuery ajax Prefilter read ajax request response 
 * before request completion in jQuery 1.5+
 *
 * Based on: http://jsfiddle.net/d8ckU/1/
 *   source: http://bugs.jquery.com/ticket/8327
 *
 * Copyright OutSystems
 * Released under the MIT license
 */
outsystems.internal.$.ajaxPrefilter(function(a,b,c){function d(){e&&clearInterval(e)}if(outsystems.internal.$.isFunction(a.progress)){var e,f=a.xhr;a.xhr=function(){var b=f.apply(this,arguments);return e=setInterval(function(){a.progress(b.responseText)},a.progressInterval),b},c.then(d,d)}}),function(a){a.effects||function(b,c){var d=b.uiBackCompat!==!1,e="ui-effects-";b.effects={effect:{}},/*!
 * jQuery Color Animations v2.0.0
 * http://jquery.com/
 *
 * Copyright 2012 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * Date: Mon Aug 13 13:41:02 2012 -0500
 */
function(a,c){function d(a,b,c){var d=m[b.type]||{};return null==a?c||!b.def?null:b.def:(a=d.floor?~~a:parseFloat(a),isNaN(a)?b.def:d.mod?(a+d.mod)%d.mod:0>a?0:d.max<a?d.max:a)}function e(b){var c=k(),d=c._rgba=[];return b=b.toLowerCase(),p(j,function(a,e){var f,g=e.re.exec(b),h=g&&e.parse(g),i=e.space||"rgba";return h?(f=c[i](h),c[l[i].cache]=f[l[i].cache],d=c._rgba=f._rgba,!1):void 0}),d.length?("0,0,0,0"===d.join()&&a.extend(d,g.transparent),c):g[b]}function f(a,b,c){return c=(c+1)%1,1>6*c?a+6*(b-a)*c:1>2*c?b:2>3*c?a+6*(b-a)*(2/3-c):a}var g,h="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor".split(" "),i=/^([\-+])=\s*(\d+\.?\d*)/,j=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(a){return[a[1],a[2],a[3],a[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(a){return[2.55*a[1],2.55*a[2],2.55*a[3],a[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(a){return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(a){return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(a){return[a[1],a[2]/100,a[3]/100,a[4]]}}],k=a.Color=function(b,c,d,e){return new a.Color.fn.parse(b,c,d,e)},l={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"}}}},m={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},n=k.support={},o=a("<p>")[0],p=a.each;o.style.cssText="background-color:rgba(1,1,1,.5)",n.rgba=o.style.backgroundColor.indexOf("rgba")>-1,p(l,function(a,b){b.cache="_"+a,b.props.alpha={idx:3,type:"percent",def:1}}),k.fn=a.extend(k.prototype,{parse:function(f,h,i,j){if(f===c)return this._rgba=[null,null,null,null],this;(f.jquery||f.nodeType)&&(f=a(f).css(h),h=c);var m=this,n=a.type(f),o=this._rgba=[];return h!==c&&(f=[f,h,i,j],n="array"),"string"===n?this.parse(e(f)||g._default):"array"===n?(p(l.rgba.props,function(a,b){o[b.idx]=d(f[b.idx],b)}),this):"object"===n?(f instanceof k?p(l,function(a,b){f[b.cache]&&(m[b.cache]=f[b.cache].slice())}):p(l,function(a,c){var e=c.cache;p(c.props,function(a,b){if(!m[e]&&c.to){if("alpha"===a||null==f[a])return;m[e]=c.to(m._rgba)}m[e][b.idx]=d(f[a],b,!0)}),m[e]&&b.inArray(null,m[e].slice(0,3))<0&&(m[e][3]=1,c.from&&(m._rgba=c.from(m[e])))}),this):void 0},is:function(a){var b=k(a),c=!0,d=this;return p(l,function(a,e){var f,g=b[e.cache];return g&&(f=d[e.cache]||e.to&&e.to(d._rgba)||[],p(e.props,function(a,b){return null!=g[b.idx]?c=g[b.idx]===f[b.idx]:void 0})),c}),c},_space:function(){var a=[],b=this;return p(l,function(c,d){b[d.cache]&&a.push(c)}),a.pop()},transition:function(a,b){var c=k(a),e=c._space(),f=l[e],g=0===this.alpha()?k("transparent"):this,h=g[f.cache]||f.to(g._rgba),i=h.slice();return c=c[f.cache],p(f.props,function(a,e){var f=e.idx,g=h[f],j=c[f],k=m[e.type]||{};null!==j&&(null===g?i[f]=j:(k.mod&&(j-g>k.mod/2?g+=k.mod:g-j>k.mod/2&&(g-=k.mod)),i[f]=d((j-g)*b+g,e)))}),this[e](i)},blend:function(b){if(1===this._rgba[3])return this;var c=this._rgba.slice(),d=c.pop(),e=k(b)._rgba;return k(a.map(c,function(a,b){return(1-d)*e[b]+d*a}))},toRgbaString:function(){var b="rgba(",c=a.map(this._rgba,function(a,b){return null==a?b>2?1:0:a});return 1===c[3]&&(c.pop(),b="rgb("),b+c.join()+")"},toHslaString:function(){var b="hsla(",c=a.map(this.hsla(),function(a,b){return null==a&&(a=b>2?1:0),b&&3>b&&(a=Math.round(100*a)+"%"),a});return 1===c[3]&&(c.pop(),b="hsl("),b+c.join()+")"},toHexString:function(b){var c=this._rgba.slice(),d=c.pop();return b&&c.push(~~(255*d)),"#"+a.map(c,function(a){return a=(a||0).toString(16),1===a.length?"0"+a:a}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),k.fn.parse.prototype=k.fn,l.hsla.to=function(a){if(null==a[0]||null==a[1]||null==a[2])return[null,null,null,a[3]];var b,c,d=a[0]/255,e=a[1]/255,f=a[2]/255,g=a[3],h=Math.max(d,e,f),i=Math.min(d,e,f),j=h-i,k=h+i,l=.5*k;return b=i===h?0:d===h?60*(e-f)/j+360:e===h?60*(f-d)/j+120:60*(d-e)/j+240,c=0===l||1===l?l:.5>=l?j/k:j/(2-k),[Math.round(b)%360,c,l,null==g?1:g]},l.hsla.from=function(a){if(null==a[0]||null==a[1]||null==a[2])return[null,null,null,a[3]];var b=a[0]/360,c=a[1],d=a[2],e=a[3],g=.5>=d?d*(1+c):d+c-d*c,h=2*d-g;return[Math.round(255*f(h,g,b+1/3)),Math.round(255*f(h,g,b)),Math.round(255*f(h,g,b-1/3)),e]},p(l,function(b,e){var f=e.props,g=e.cache,h=e.to,j=e.from;k.fn[b]=function(b){if(h&&!this[g]&&(this[g]=h(this._rgba)),b===c)return this[g].slice();var e,i=a.type(b),l="array"===i||"object"===i?b:arguments,m=this[g].slice();return p(f,function(a,b){var c=l["object"===i?a:b.idx];null==c&&(c=m[b.idx]),m[b.idx]=d(c,b)}),j?(e=k(j(m)),e[g]=m,e):k(m)},p(f,function(c,d){k.fn[c]||(k.fn[c]=function(e){var f,g=a.type(e),h="alpha"===c?this._hsla?"hsla":"rgba":b,j=this[h](),k=j[d.idx];return"undefined"===g?k:("function"===g&&(e=e.call(this,k),g=a.type(e)),null==e&&d.empty?this:("string"===g&&(f=i.exec(e),f&&(e=k+parseFloat(f[2])*("+"===f[1]?1:-1))),j[d.idx]=e,this[h](j)))})})}),p(h,function(b,c){a.cssHooks[c]={set:function(b,d){var f,g,h="";if("string"!==a.type(d)||(f=e(d))){if(d=k(f||d),!n.rgba&&1!==d._rgba[3]){for(g="backgroundColor"===c?b.parentNode:b;(""===h||"transparent"===h)&&g&&g.style;)try{h=a.css(g,"backgroundColor"),g=g.parentNode}catch(i){}d=d.blend(h&&"transparent"!==h?h:"_default")}d=d.toRgbaString()}try{b.style[c]=d}catch(j){}}},a.fx.step[c]=function(b){b.colorInit||(b.start=k(b.elem,c),b.end=k(b.end),b.colorInit=!0),a.cssHooks[c].set(b.elem,b.start.transition(b.end,b.pos))}}),a.cssHooks.borderColor={expand:function(a){var b={};return p(["Top","Right","Bottom","Left"],function(c,d){b["border"+d+"Color"]=a}),b}},g=a.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"}}(a),function(){function d(){var a,c,d=this.ownerDocument.defaultView?this.ownerDocument.defaultView.getComputedStyle(this,null):this.currentStyle,e={};if(d&&d.length&&d[0]&&d[d[0]])for(c=d.length;c--;)a=d[c],"string"==typeof d[a]&&(e[b.camelCase(a)]=d[a]);else for(a in d)"string"==typeof d[a]&&(e[a]=d[a]);return e}function e(a,c){var d,e,f={};for(d in c)e=c[d],a[d]!==e&&(g[d]||(b.fx.step[d]||!isNaN(parseFloat(e)))&&(f[d]=e));return f}var f=["add","remove","toggle"],g={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};b.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(c,d){b.fx.step[d]=function(b){("none"!==b.end&&!b.setAttr||1===b.pos&&!b.setAttr)&&(a.style(b.elem,d,b.end),b.setAttr=!0)}}),b.effects.animateClass=function(c,g,h,i){var j=b.speed(g,h,i);return this.queue(function(){var g,h=b(this),i=h.attr("class")||"",k=j.children?h.find("*").andSelf():h;k=k.map(function(){var a=b(this);return{el:a,start:d.call(this)}}),g=function(){b.each(f,function(a,b){c[b]&&h[b+"Class"](c[b])})},g(),k=k.map(function(){return this.end=d.call(this.el[0]),this.diff=e(this.start,this.end),this}),h.attr("class",i),k=k.map(function(){var c=this,d=b.Deferred(),e=a.extend({},j,{queue:!1,complete:function(){d.resolve(c)}});return this.el.animate(this.diff,e),d.promise()}),b.when.apply(b,k.get()).done(function(){g(),b.each(arguments,function(){var a=this.el;b.each(this.diff,function(b){a.css(b,"")})}),j.complete.call(h[0])})})},b.fn.extend({_addClass:b.fn.addClass,addClass:function(a,c,d,e){return c?b.effects.animateClass.call(this,{add:a},c,d,e):this._addClass(a)},_removeClass:b.fn.removeClass,removeClass:function(a,c,d,e){return c?b.effects.animateClass.call(this,{remove:a},c,d,e):this._removeClass(a)},_toggleClass:b.fn.toggleClass,toggleClass:function(a,d,e,f,g){return"boolean"==typeof d||d===c?e?b.effects.animateClass.call(this,d?{add:a}:{remove:a},e,f,g):this._toggleClass(a,d):b.effects.animateClass.call(this,{toggle:a},d,e,f)},switchClass:function(a,c,d,e,f){return b.effects.animateClass.call(this,{add:c,remove:a},d,e,f)}})}(),function(){function a(a,c,d,e){return b.isPlainObject(a)&&(c=a,a=a.effect),a={effect:a},null==c&&(c={}),b.isFunction(c)&&(e=c,d=null,c={}),("number"==typeof c||b.fx.speeds[c])&&(e=d,d=c,c={}),b.isFunction(d)&&(e=d,d=null),c&&b.extend(a,c),d=d||c.duration,a.duration=b.fx.off?0:"number"==typeof d?d:d in b.fx.speeds?b.fx.speeds[d]:b.fx.speeds._default,a.complete=e||c.complete,a}function f(a){return!a||"number"==typeof a||b.fx.speeds[a]?!0:"string"!=typeof a||b.effects.effect[a]?!1:d&&b.effects[a]?!1:!0}b.extend(b.effects,{version:"1.9.2",save:function(a,b){for(var c=0;c<b.length;c++)null!==b[c]&&a.data(e+b[c],a[0].style[b[c]])},restore:function(a,b){var d,f;for(f=0;f<b.length;f++)null!==b[f]&&(d=a.data(e+b[f]),d===c&&(d=""),a.css(b[f],d))},setMode:function(a,b){return"toggle"===b&&(b=a.is(":hidden")?"show":"hide"),b},getBaseline:function(a,b){var c,d;switch(a[0]){case"top":c=0;break;case"middle":c=.5;break;case"bottom":c=1;break;default:c=a[0]/b.height}switch(a[1]){case"left":d=0;break;case"center":d=.5;break;case"right":d=1;break;default:d=a[1]/b.width}return{x:d,y:c}},createWrapper:function(a){if(a.parent().is(".ui-effects-wrapper"))return a.parent();var c={width:a.outerWidth(!0),height:a.outerHeight(!0),"float":a.css("float")},d=b("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:a.width(),height:a.height()},f=document.activeElement;try{f.id}catch(g){f=document.body}return a.wrap(d),(a[0]===f||b.contains(a[0],f))&&b(f).focus(),d=a.parent(),"static"===a.css("position")?(d.css({position:"relative"}),a.css({position:"relative"})):(b.extend(c,{position:a.css("position"),zIndex:a.css("z-index")}),b.each(["top","left","bottom","right"],function(b,d){c[d]=a.css(d),isNaN(parseInt(c[d],10))&&(c[d]="auto")}),a.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),a.css(e),d.css(c).show()},removeWrapper:function(a){var c=document.activeElement;return a.parent().is(".ui-effects-wrapper")&&(a.parent().replaceWith(a),(a[0]===c||b.contains(a[0],c))&&b(c).focus()),a},setTransition:function(a,c,d,e){return e=e||{},b.each(c,function(b,c){var f=a.cssUnit(c);f[0]>0&&(e[c]=f[0]*d+f[1])}),e}}),b.fn.extend({effect:function(){function c(a){function c(){b.isFunction(f)&&f.call(d[0]),b.isFunction(a)&&a()}var d=b(this),f=e.complete,g=e.mode;(d.is(":hidden")?"hide"===g:"show"===g)?c():h.call(d[0],e,c)}var e=a.apply(this,arguments),f=e.mode,g=e.queue,h=b.effects.effect[e.effect],i=!h&&d&&b.effects[e.effect];return b.fx.off||!h&&!i?f?this[f](e.duration,e.complete):this.each(function(){e.complete&&e.complete.call(this)}):h?g===!1?this.each(c):this.queue(g||"fx",c):i.call(this,{options:e,duration:e.duration,callback:e.complete,mode:e.mode})},_show:b.fn.show,show:function(b){if(f(b))return this._show.apply(this,arguments);var c=a.apply(this,arguments);return c.mode="show",this.effect.call(this,c)},_hide:b.fn.hide,hide:function(b){if(f(b))return this._hide.apply(this,arguments);var c=a.apply(this,arguments);return c.mode="hide",this.effect.call(this,c)},__toggle:b.fn.toggle,toggle:function(c){if(f(c)||"boolean"==typeof c||b.isFunction(c))return this.__toggle.apply(this,arguments);var d=a.apply(this,arguments);return d.mode="toggle",this.effect.call(this,d)},cssUnit:function(a){var c=this.css(a),d=[];return b.each(["em","px","%","pt"],function(a,b){c.indexOf(b)>0&&(d=[parseFloat(c),b])}),d}})}(),function(){var a={};b.each(["Quad","Cubic","Quart","Quint","Expo"],function(b,c){a[c]=function(a){return Math.pow(a,b+2)}}),b.extend(a,{Sine:function(a){return 1-Math.cos(a*Math.PI/2)},Circ:function(a){return 1-Math.sqrt(1-a*a)},Elastic:function(a){return 0===a||1===a?a:-Math.pow(2,8*(a-1))*Math.sin((80*(a-1)-7.5)*Math.PI/15)},Back:function(a){return a*a*(3*a-2)},Bounce:function(a){for(var b,c=4;a<((b=Math.pow(2,--c))-1)/11;);return 1/Math.pow(4,3-c)-7.5625*Math.pow((3*b-2)/22-a,2)}}),b.each(a,function(a,c){b.easing["easeIn"+a]=c,b.easing["easeOut"+a]=function(a){return 1-c(1-a)},b.easing["easeInOut"+a]=function(a){return.5>a?c(2*a)/2:1-c(-2*a+2)/2}})}()}(a)}(outsystems.internal.$),function(a){/*!
 * jQuery UI Effects Highlight 1.9.2
 * http://jqueryui.com
 *
 * Copyright 2012 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/highlight-effect/
 *
 * Depends:
 *	jquery.ui.effect.js
 */
!function(a){a.effects.effect.highlight=function(b,c){var d=a(this),e=["backgroundImage","backgroundColor","opacity"],f=a.effects.setMode(d,b.mode||"show"),g={backgroundColor:d.css("backgroundColor")};"hide"===f&&(g.opacity=0),a.effects.save(d,e),d.show().css({backgroundImage:"none",backgroundColor:b.color||"#ffff99"}).animate(g,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){"hide"===f&&d.hide(),a.effects.restore(d,e),c()}})}}(a)}(outsystems.internal.$),outsystems.internal.$(function(){try{(new Array).shift()}catch(a){Array.prototype.shift=function(){var a=this[0];if(this.length>0){for(var b=0;b<this.length-1;b++)this[b]=this[b+1];this.length--}return a}}}),outsystems.internal.$(function(){window.JSON||(window.JSON={parse:function(sJSON){return eval("("+sJSON+")")},stringify:function(){var a=Object.prototype.toString,b=Array.isArray||function(b){return"[object Array]"===a.call(b)},c={'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","	":"\\t"},d=function(a){return c[a]||"\\u"+(a.charCodeAt(0)+65536).toString(16).substr(1)},e=/[\\"\u0000-\u001F\u2028\u2029]/g;return function f(c){if(null==c)return"null";if("number"==typeof c)return isFinite(c)?c.toString():"null";if("boolean"==typeof c)return c.toString();if("object"==typeof c){if("function"==typeof c.toJSON)return f(c.toJSON());if(b(c)){for(var g="[",h=0;h<c.length;h++)g+=(h?", ":"")+f(c[h]);return g+"]"}if("[object Object]"===a.call(c)){var i=[];for(var j in c)c.hasOwnProperty(j)&&"function"!=typeof c[j]&&i.push(f(j)+": "+f(c[j]));return"{"+i.join(", ")+"}"}}return'"'+c.toString().replace(e,d)+'"'}}()})}),outsystems.internal.$(function(){Date.prototype.toISOString||function(){function a(a){var b=String(a);return 1===b.length&&(b="0"+b),b}Date.prototype.toISOString=function(){return this.getUTCFullYear()+"-"+a(this.getUTCMonth()+1)+"-"+a(this.getUTCDate())+"T"+a(this.getUTCHours())+":"+a(this.getUTCMinutes())+":"+a(this.getUTCSeconds())+"."+String((this.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}()});var osQueue=new Array,osAjaxBackend=null,osFocusBackend=null,osCurrentBeforeChange=null,osCurrentAfterChange=null,osAjaxDelayedTimeout,os_t_e=[],os_t_origin=[],os_t_eventTarget=[],os_t_ajaxEvent=[],os_t_bucketIds=[],osOnChangeTimerDelay=800,osOnChangeElement=null,osOnChangeCheckInterval,OsFocusBaseBackend=function(){this.Save=function(){var a=this.GetCurrentFocusedElement();if(null==a)return null;var b;return b=this.CanHaveSelection(a)?this.GetSelection(a):{start:null,end:null},{id:this.GetIdentifier(a),value:OsGetElementValue(a),ajaxSentValue:outsystems.internal.$(a).data("ajaxSentValue"),start:b.start,end:b.end}},this.Restore=function(a,b){if(null!=a){var c=this.GetElementById(a.id);if(c)try{if(c.focus(),b){var d=outsystems.internal.$(c);d.data("ajaxSentValue",a.ajaxSentValue),OsSetElementValue(c,a.value)}null!=a.start&&null!=a.end&&this.SetSelection(c,a.start,a.end)}catch(e){}}},this.GetIdentifier=function(a){var b=a.id;return b||(b=a),b},this.GetElementById=function(a){return"string"==typeof a?document.getElementById(a):a},this.CanHaveFocus=function(a){return a&&a.tagName&&("input"==a.tagName.toLowerCase()&&a.type&&"submit"!=a.type.toLowerCase()||"textarea"==a.tagName.toLowerCase()||"select"==a.tagName.toLowerCase())},this.CanHaveSelection=function(a){return"input"==a.tagName.toLowerCase()&&("text"==a.type||"password"==a.type||"file"==a.type)||"textarea"==a.tagName.toLowerCase()},this.Initialize=function(){}},OsFocusBackendIE=function(){OsFocusBaseBackend.call(this),this.base={Initialize:function(a,b){return function(){return b.call(a)}}(this,this.Initialize)},this.CurrentFocusedElement=null,this.GetCurrentFocusedElement=function(){return this.CurrentFocusedElement},this.ClearFocusedElement=function(){this.CurrentFocusedElement=null},this.GetSelection=function(){var a=document.selection.createRange(),b=a.text.length;return a.moveStart("textedit",-1),cursorPos=a.text.length,{start:cursorPos-b,end:cursorPos}},this.SetSelection=function(a,b,c){var d=a.createTextRange();d.collapse(!0),d.moveStart("character",b),d.moveEnd("character",c-b),d.select()};var a=function(a){return function(b){!function(){this.OnFocusChanged(b)}.call(a)}}(this),b=function(a){return function(b){!function(){this.OnFocusLost(b)}.call(a)}}(this);this.InitializeOnFocusHandler=function(c){c.addEventListener?(c.addEventListener("focus",a,!1),c.addEventListener("blur",b,!1)):(c.attachEvent("onfocus",a),c.attachEvent("onblur",b))},this.OnFocusChanged=function(a){this.CanHaveFocus(a.srcElement)?(this.CurrentFocusedElement=a.srcElement,OsStartOnChangeChecking(this.CurrentFocusedElement)):(OsStopOnChangeChecking(),this.CurrentFocusedElement=null)},this.OnFocusLost=function(){OsStopOnChangeChecking(),this.CurrentFocusedElement=null}},OsFocusBackendGecko=function(){OsFocusBaseBackend.call(this),this.base={Initialize:function(a,b){return function(){return b.call(a)}}(this,this.Initialize)},this.CurrentFocusedElement=null,this.GetCurrentFocusedElement=function(){return this.CurrentFocusedElement},this.ClearFocusedElement=function(){this.CurrentFocusedElement=null},this.GetSelection=function(a){return{start:a.selectionStart,end:a.selectionEnd}},this.SetSelection=function(a,b,c){a.setSelectionRange(b,c)},this.Initialize=function(){this.base.Initialize();var a=function(a){return function(b){!function(){this.OnFocusChanged(b)}.call(a)}}(this),b=function(a){return function(){!function(){this.OnFocusLost()}.call(a)}}(this),c=function(a){return function(b){!function(){null!=b.target.attributes.onosChange&&b.target.focus()}.call(a)}}(this);document.addEventListener("focus",a,!0),document.addEventListener("blur",b,!0),document.addEventListener("dragdrop",c,!0)},this.OnFocusChanged=function(a){this.CanHaveFocus(a.target)?(this.CurrentFocusedElement=a.target,OsStartOnChangeChecking(a.target)):(OsStopOnChangeChecking(),this.CurrentFocusedElement=null)},this.OnFocusLost=function(){OsStopOnChangeChecking(),this.CurrentFocusedElement=null}};outsystems.internal.$(document).ready(function(){OsIsIE()?(osAjaxBackend=new OsAjaxBackendIFrame,osFocusBackend=new OsFocusBackendIE):(osAjaxBackend=new OsAjaxBackendXHR,osFocusBackend=new OsFocusBackendGecko),OsInitializeOnChange(document),osFocusBackend.Initialize()});var osLosingFocus=!1,osRegisterEffectHighlightColor="#ffff00",osRegisterEffectHighlightTime=300,osRegisterEffectListRemoveHighlightTime=300;!function(a){a.fn.customFadeTo=function(b,c,d){a(this).fadeTo(b,c,function(){outsystems.internal.$.browser.msie&&a(this).get(0).style.removeAttribute("filter"),void 0!=d&&d()})}}(outsystems.internal.$);var osRegisterEffectFadeOutTime=100,osRegisterEffectFadeInTime=100,osRegisterEffectVerticalSlideUpTime=100,osRegisterEffectVerticalSlideDownTime=200,OsJSONUpdateQueue=[];outsystems.internal.$(function(){outsystems.osErrorCodes=outsystems.osErrorCodes||{},outsystems.osErrorCodes.UserJavascriptError=1,outsystems.osErrorCodes.ConnectionError=2,outsystems.osErrorCodes.SystemJavascriptError=500,osjs.osErrorCodes=osjs.osErrorCodes||{},osjs.osErrorCodes.UserJavascriptError=1,osjs.osErrorCodes.ConnectionError=2,osjs.osErrorCodes.SystemJavascriptError=500});var OsEventHandler=function(a){this.EventHandlers={},this.BindEvent=function(a,b){this.EventHandlers[a]&&this.EventHandlers[a].push(b)},this.UnbindEvent=function(a,b){if(this.EventHandlers[a])for(var c=0;c<this.EventHandlers[a].length;c++)if(this.EventHandlers[a][c]==b){this.EventHandlers[a].splice(c,1);break}},this.ClearEvent=function(a){this.EventHandlers[a]&&(this.EventHandlers[a]=[])};for(var b=0;b<a.length;b++){var c=a[b];this.EventHandlers[c]=[],this["Bind"+c]=function(a){return function(b){this.BindEvent(a,b)}}(c),this["Unbind"+c]=function(a){return function(b){this.UnbindEvent(a,b)}}(c),this["Clear"+c]=function(a){return function(b){this.ClearEvent(a,b)}}(c),this["On"+c]=function(a){return function(){for(var b=0;b<this.EventHandlers[a].length;b++)this.EventHandlers[a][b].call(arguments)}}(c)}},OsAjaxBaseBackend=function(){OsEventHandler.call(this,["BeforeSubmit","AfterSubmit","BeforeAjaxRequest","AfterAjaxRequest"]),this.requestEvent=null,this.CallToServer=function(a,b,c,d,e){this.requestEvent=new OsAjaxRequest,this.SetUpHandlers(),this.PrepareFormForSubmit(a,b,c,d,e);try{this.OnBeforeSubmit(a)}catch(f){window.OsHandleException(f,window.outsystems.osErrorCodes.UserJavascriptError,"OsAjaxBaseBackend.OnBeforeSubmit")}this.SubmitForm(a);try{this.OnAfterSubmit(a)}catch(f){window.OsHandleException(f,window.outsystems.osErrorCodes.UserJavascriptError,"OsAjaxBaseBackend.OnAfterSubmit")}this.TearDownFormAfterSubmit(a,b,c,d,e)},this.PrepareFormForSubmit=function(a,b,c,d,e){var f=a.elements.__EVENTTARGET;f||(f=a.ownerDocument.createElement("input"),f.type="hidden",f.id="__EVENTTARGET",f.name="__EVENTTARGET",a.appendChild(f)),f.value=b;var g=a.elements.__AJAX;if(g||(g=a.ownerDocument.createElement("input"),g.type="hidden",g.id="__AJAX",g.name="__AJAX",a.appendChild(g)),g.value=e,""!=c){var h=a.elements.__AJAXEVENT;if(h||(h=a.ownerDocument.createElement("input"),h.type="hidden",h.id="__AJAXEVENT",h.name="__AJAXEVENT",a.appendChild(h)),h.value=c,"Change"==c){var i=outsystems.internal.$("#"+osQueue[0]);if("radio"==i.get(0).type)for(var j=i.get(0).name,k=document.getElementsByTagName("input"),l=0;l<k.length;l++){var m=k[l];"radio"==m.type&&m.name==j&&outsystems.internal.$(m).data("ajaxSentValue",OsGetElementValue(m))}else i.data("ajaxSentValue",OsGetElementValue(i.get(0)))}}OsPrepareCheckboxesForSubmit()},this.TearDownFormAfterSubmit=function(a){var b=a.elements.__AJAX;null!=b&&b.parentNode.removeChild(b);var c=a.elements.__AJAXEVENT;null!=c&&c.parentNode.removeChild(c),a.elements.__EVENTTARGET.value="",outsystems.internal.$("form input:checkbox:disabled:checked").each(function(){var a=outsystems.internal.$(this).prev();a.attr("name")==outsystems.internal.$(this).attr("name")&&a.remove()})},this.ShowError=function(a){clearInterval(osOnChangeCheckInterval);var b=a.toLowerCase(),c=a.substring(b.indexOf("<head>")+6,b.indexOf("</head>")),d=a.substring(b.indexOf("<body>")+6,b.indexOf("</body>"));outsystems.internal.$("head").html(c),outsystems.internal.$("body").html(d),this.EndRequestAndCancelPendingRequests()},this.ConnectionError=function(a){this.EndRequestAndCancelPendingRequests();var b=new Error("The connection to the server was reset"+(a&&null!=a.statusText?". Server returned status "+a.statusText:""));OsHandleException(b,outsystems.osErrorCodes.ConnectionError,"OsAjaxBackend.ConnectionError")},this.EndRequest=function(){this.RemoveHandlers(),OsIsIE()&&OsIeCleanProgressBar()},this.EndRequestAndCancelPendingRequests=function(){osQueue=new Array,this.EndRequest()},this.SetUpHandlers=function(){window.onkeypress=function(a){return function(b){!function(){this.OnKeyPress(b)}.call(a)}}(this),document.onstop=function(a){return function(){!function(){this.OnStopHandler()}.call(a)}}(this)},this.RemoveHandlers=function(){window.onkeypress=null,document.onstop=null},this.OnKeyPress=function(a){var b=window.event?event.keyCode:a.keyCode,c=window.event?27:a.DOM_VK_ESCAPE;b==c&&this.OnStopHandler()},this.OnStopHandler=function(){this.stopped=!0,this.EndRequestAndCancelPendingRequests()},this.RequestHasFinished=function(a){return this.stopped||-1!=a.indexOf('"js":["OsEndRequest()"]')||-1!=a.indexOf('"__RedirectToURL":')}},OsAjaxBackendIFrame=function(){OsAjaxBaseBackend.call(this),this.base={PrepareFormForSubmit:function(a,b){return function(c,d,e,f,g){return b.call(a,c,d,e,f,g)}}(this,this.PrepareFormForSubmit),TearDownFormAfterSubmit:function(a,b){return function(c,d,e,f,g){return b.call(a,c,d,e,f,g)}}(this,this.TearDownFormAfterSubmit),EndRequest:function(a,b){return function(){return b.call(a)}}(this,this.EndRequest),ConnectionError:function(a,b){return function(){return b.call(a)}}(this,this.ConnectionError),RequestHasFinished:function(a,b){return function(c){return b.call(a,c)}}(this,this.RequestHasFinished)},this.stopped=!1,this.IFrame=null;var a=this;this.SetRequestInfo=function(b,c,d){a.requestEvent.setRequestInfo(b,c,d)},this.PrepareFormForSubmit=function(b,c,d,e,f){this.base.PrepareFormForSubmit(b,c,d,e,f),this.IFrame=this.CreateIFrame();var g=function(a){return function(b){!function(){this.CheckConnectionError(b)}.call(a)}}(this),h=function(a){return function(){return function(){return this.CheckForHTMLResponse()}.call(a)}}(this),i=5,j=this;this.IFrame.onreadystatechange=function(){var b;try{b=this.readyState}catch(c){}if(b)if("complete"==b){var d="";try{if(h())return;d=this.contentWindow.document.documentElement.innerHTML}catch(c){if(i--)return window.setTimeout(function(){j.IFrame.onreadystatechange()},13),void 0}g(d);try{this.parentNode.removeChild(this)}catch(c){}}else"interactive"==b&&(0==a.requestEvent.responseStart&&a.requestEvent.setResponseStart(),0==a.requestEvent.requestLoadStart&&a.requestEvent.setRequestLoadStart())},b.target=this.IFrame.name},this.CheckConnectionError=function(a){this.base.RequestHasFinished(a)||this.base.ConnectionError()},this.SubmitForm=function(a){for(var b=[],c=0;c<a.elements.length;c++){var d=a.elements[c];"file"!=d.type||d.disabled||(d.disabled=!0,b.push(d))}this.OnBeforeAjaxRequest(),a.submit();for(var c=0;c<b.length;c++)b[c].disabled=!1;b=null,function(a){return function(){!function(){this.CheckForHTMLResponse()}.call(a)}}(this)},this.TearDownFormAfterSubmit=function(a,b,c,d,e){a.target="",this.base.TearDownFormAfterSubmit(a,b,c,d,e)},this.EndRequest=function(){this.base.EndRequest(),a.requestEvent.setResponseEnd(),OsJSONUpdate({js:["osAjaxBackend.OnAfterAjaxRequest({requestEvent : "+JSON.stringify(a.requestEvent)+"})"]})},this.GenerateGuid=function(){var a,b,c;for(a="",c=0;32>c;c++)(8==c||12==c||16==c||20==c)&&(a+="-"),b=Math.floor(16*Math.random()).toString(16).toUpperCase(),a+=b;return a},this.CreateIFrame=function(a){a||(a=document.body),a.lastChild.id&&0==a.lastChild.id.indexOf("OSAJAXIFrame")&&a.removeChild(a.lastChild);var b=a.ownerDocument.createElement("iframe");b.style.border="0px",b.style.width="0px",b.style.height="0px",b.style.display="none",b.style.visibility="hidden",a.appendChild(b),b.src="javascript:;";var c=this.GenerateGuid(),d="OSAJAXIFrame"+c;return b.setAttribute("id",d),b.setAttribute("name",d),b.contentWindow&&(b.contentWindow.name=d),b},this.CheckForHTMLResponse=function(){if(null==this.IFrame)return!1;var a,b;return this.IFrame.contentDocument&&this.IFrame.contentDocument.body?(a="<html>"+this.IFrame.contentDocument.documentElement.innerHTML+"</html>",b=this.IFrame.contentDocument.body):this.IFrame.contentWindow.document&&this.IFrame.contentWindow.document.body&&(a="<html>"+this.IFrame.contentWindow.document.documentElement.innerHTML+"</html>",b=this.IFrame.contentWindow.document.body),null!=a&&""!=a&&null!=b&&b.hasChildNodes()?(this.ShowError(a),!0):!1};var b=this,c=function(){window.OsJSONUpdate=null,window.$=null,window.jQuery=null;try{b.IFrame.onreadystatechange=null}catch(a){}try{b.IFrame=null}catch(a){}b=null,"function"==typeof CollectGarbage&&CollectGarbage()};outsystems.internal.$(window).unload(function(){c()})},OsAjaxRequest=function(){var a=function(){return(new Date).getTime()};this.requestKey="",this.screenActionName="",this.screenActionKey="",this.requestStart=a(),this.requestEnd=0,this.responseStart=0,this.responseEnd=0,this.requestLoadStart=0,this.setResponseStart=function(){this.responseStart=a()},this.setResponseEnd=function(){this.responseEnd=a(),0==this.responseStart&&(this.responseStart=this.responseEnd)},this.setRequestLoadStart=function(){this.requestLoadStart=a()},this.setRequestInfo=function(a,b,c){this.requestKey=a,this.screenActionName=b,this.screenActionKey=c}},OsAjaxBackendXHR=function(){OsAjaxBaseBackend.call(this),this.base={EndRequest:function(a,b){return function(){return b.call(a)}}(this,this.EndRequest),RequestHasFinished:function(a,b){return function(c){return b.call(a,c)}}(this,this.RequestHasFinished)},this.stopped=!1,this.unloadOverrideSet=!1;var that=this;this.SetRequestInfo=function(a,b,c){that.requestEvent.setRequestInfo(a,b,c)},this.SubmitForm=function(a){var b=new XHRState(this),c=function(a){b.ProcessPartialResponse(a||"")},d=function(a){a.overrideMimeType&&a.overrideMimeType("text/xml; charset:"+document.characterSet),b.HasDetectedErrorResponse=!1,b.LastProcessedResponseLength=0,b.LastProcessedScriptCloseIndex=0,b.ajaxBackend.OnBeforeAjaxRequest()},e=function(){that.requestEvent.setResponseEnd(),b.ProcessFinalResponse(b.XHR.responseText)},f=function(a){b.ajaxBackend.stopped||b.ajaxBackend.ConnectionError(a),b.ajaxBackend.stopped=!1};this.unloadOverrideSet||(outsystems.internal.$(window).unload(function(){osAjaxBackend.stopped=!0}),this.unloadOverrideSet=!0),b.XHR=outsystems.internal.$.ajax({url:outsystems.internal.$(a).attr("action")+"?_ts="+(new Date).getTime(),type:"POST",contentType:"application/x-www-form-urlencoded; charset=UTF-8",data:outsystems.internal.$(a).serialize(),dataType:"text",beforeSend:d,progress:c,progressInterval:50,success:e,error:f,xhr:function(){if(osXhr=outsystems.internal.$.ajaxSettings.xhr())try{osXhr.addEventListener("progress",function(){0==that.requestEvent.responseStart&&that.requestEvent.setResponseStart()},!1)}catch(a){}return osXhr}})},this.EndRequest=function(){this.base.EndRequest(),OsJSONUpdate({js:["osAjaxBackend.OnAfterAjaxRequest({requestEvent : "+JSON.stringify(that.requestEvent)+"})"]})};var XHRState=function(ajaxBackend){this.ajaxBackend=ajaxBackend,this.OPEN='<script type="text/javascript">',this.CLOSE="</script>",this.PADDING=/^\s*(<!-- OSPADDING( [A-Z]*)? -->)?\s*$/,this.XHR=null,this.HasDetectedErrorResponse=!1,this.LastProcessedResponseLength=0,this.LastProcessedScriptCloseIndex=0,this.ProcessPartialResponse=function(a){if(!this.HasDetectedErrorResponse){if(!window.OS_SkipInjectionValidation){var b=a.lastIndexOf(this.OPEN),c=a.indexOf(this.CLOSE,b);a=a.substring(a.indexOf(this.OPEN),c+this.CLOSE.length)}if(a.length>this.LastProcessedResponseLength){var d=a.lastIndexOf(this.CLOSE);if(-1==d||d+this.CLOSE.length<=this.LastProcessedScriptCloseIndex)return;for(;!this.HasDetectedErrorResponse&&this.LastProcessedScriptCloseIndex<d;)0==that.requestEvent.requestLoadStart&&that.requestEvent.setRequestLoadStart(),this.ProcessNextScriptBlock(a);this.LastProcessedResponseLength=a.length}}},this.ProcessNextScriptBlock=function(text){var firstScriptOpenIndex=text.indexOf(this.OPEN,this.LastProcessedScriptCloseIndex);if(-1==firstScriptOpenIndex)return this.HasDetectedErrorResponse=!0,void 0;if(!this.PADDING.test(text.substring(this.LastProcessedScriptCloseIndex,firstScriptOpenIndex)))return this.HasDetectedErrorResponse=!0,void 0;var firstScriptCloseIndex=text.indexOf(this.CLOSE,firstScriptOpenIndex+this.OPEN.length),scriptContents=text.substring(firstScriptOpenIndex+this.OPEN.length,firstScriptCloseIndex);this.LastProcessedScriptCloseIndex=firstScriptCloseIndex+this.CLOSE.length,eval(scriptContents)},this.ProcessFinalResponse=function(a){this.ProcessPartialResponse(a),this.ajaxBackend.RequestHasFinished(a)||this.ajaxBackend.ConnectionError(),this.ajaxBackend.stopped=!1}}};!function(a){a.support=a.support||{},a.$.extend(!0,a.support,{placeholder:{textarea:"placeholder"in document.createElement("textarea"),input:"placeholder"in document.createElement("input")}})}(outsystems.internal),function(a){a.outsystems=a.outsystems||{},a.outsystems.api=a.outsystems.api||{},a.outsystems.internal=a.outsystems.internal||{},a.outsystems.api.requestInfo={getVisitorKey:function(){return a.outsystems.internal.requestInfo.visitorKey},getVisitKey:function(){return a.outsystems.internal.requestInfo.visitKey},getSessionKey:function(){return a.outsystems.internal.requestInfo.sessionKey},getUserKey:function(){return a.outsystems.internal.requestInfo.userKey},getUsername:function(){return a.outsystems.internal.requestInfo.username},getRequestKey:function(){return a.outsystems.internal.requestInfo.requestKey},getWebScreenKey:function(){return a.outsystems.internal.requestInfo.webScreenKey},getWebScreenName:function(){return a.outsystems.internal.requestInfo.webScreenName},getEspaceKey:function(){return a.outsystems.internal.requestInfo.espaceKey},getEspaceName:function(){return a.outsystems.internal.requestInfo.espaceName},getApplicationKey:function(){return a.outsystems.internal.requestInfo.applicationKey},getApplicationName:function(){return a.outsystems.internal.requestInfo.applicationName},getTenantKey:function(){return a.outsystems.internal.requestInfo.tenantKey},getTenantName:function(){return a.outsystems.internal.requestInfo.tenantName},getEnvironmentKey:function(){return a.outsystems.internal.requestInfo.environmentKey},getEnvironmentName:function(){return a.outsystems.internal.requestInfo.environmentName},getFrontendName:function(){return a.outsystems.internal.requestInfo.frontendName},getFrontendKey:function(){return a.outsystems.internal.requestInfo.frontendKey}},a.outsystems.internal.showHiddenFields||(delete a.outsystems.api.requestInfo.getUsername,delete a.outsystems.api.requestInfo.getFrontendName)}(this);var ctTypeStr=0,ctTypeNbr=1,ctTypeDte=2,ctTypeDtm=3,ctTypeTim=4,_DATE_FORMAT=("yyyy-MM-dd".indexOf("DATE_FORMAT")>0||0=="yyyy-MM-dd".length)&&"yyyy-MM-dd"||"yyyy-MM-dd",_TIME_FORMAT="HH:mm:ss",_DATE_TIME_FORMAT=_DATE_FORMAT+" "+_TIME_FORMAT,ctDMY=0,ctYMD=1,ctDayIdx=0,ctMonthIdx=1,ctYearIdx=2,ctHM=0,ctHMS=1,ctTimYear=1900,ctTimMonth=1,ctTimDay=1,ctNbrThousandsSepDefault=" ",ctNbrDecimalPlacesDefault=-1,dtText=new OsDataType(ctTypeStr),dtInteger=new OsDataType(ctTypeNbr,!1,"",""),dtLongInteger=new OsDataType(ctTypeNbr,!1,"","",!0),dtDecimal=new OsDataType(ctTypeNbr,!0,".","",8),dtDate=new OsDataType(ctTypeDte,ctYMD,"-"),dtDateTime=new OsDataType(ctTypeDtm,ctYMD,"-"),dtTime=new OsDataType(ctTypeTim,ctHMS,":"),OsDisableSubmitOnEnterKey=!1,MONTH_NAMES=new Array("January","February","March","April","May","June","July","August","September","October","November","December","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"),DAY_NAMES=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sun","Mon","Tue","Wed","Thu","Fri","Sat");if("function"!=typeof OsPrepareCheckboxesForSubmit)var OsPrepareCheckboxesForSubmit=function(){for(var a=[],b=document.getElementsByTagName("INPUT"),c=0;c<b.length;c++)null!=b[c].getAttribute("type")&&"checkbox"==b[c].getAttribute("type").toLowerCase()&&(a[a.length]=b[c]);if(a.length>0){var d=document.getElementById("__CheckBoxBag");if(null==d){d=document.createElement("div"),d.setAttribute("id","__CheckBoxBag"),d.style.display="none";var e=document.getElementById("__OSVSTATE");null!=e?e.parentNode.appendChild(d):document.getElementsByTagName("form")[0].appendChild(d)}else d.innerHTML="";for(var c=0;c<a.length;c++){var f=a[c];if(f.checked){if(f.disabled){var g=document.createElement("input");g.setAttribute("type","hidden"),g.setAttribute("name",f.getAttribute("name")),g.setAttribute("value","on"),d.appendChild(g)}}else{var g=document.createElement("input");g.setAttribute("type","hidden"),g.setAttribute("name",f.getAttribute("name")),g.setAttribute("value","off"),d.appendChild(g)}}}};/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */
String.fromCodePoint||function(){var a=function(){try{var a={},b=Object.defineProperty,c=b(a,a,a)&&b}catch(d){}return c}(),b=String.fromCharCode,c=Math.floor,d=function(){var a,d,e=16384,f=[],g=-1,h=arguments.length;if(!h)return"";for(var i="";++g<h;){var j=Number(arguments[g]);if(!isFinite(j)||0>j||j>1114111||c(j)!=j)throw RangeError("Invalid code point: "+j);65535>=j?f.push(j):(j-=65536,a=(j>>10)+55296,d=j%1024+56320,f.push(a,d)),(g+1==h||f.length>e)&&(i+=b.apply(null,f),f.length=0)}return i};a?a(String,"fromCodePoint",{value:d,configurable:!0,writable:!0}):String.fromCodePoint=d}(),/*! http://mths.be/codepointat v0.1.0 by @mathias */
String.prototype.codePointAt||function(){"use strict";var a=function(){try{var a={},b=Object.defineProperty,c=b(a,a,a)&&b}catch(d){}return c}(),b=function(a){if(null==this)throw TypeError();var b=String(this),c=b.length,d=a?Number(a):0;if(d!=d&&(d=0),0>d||d>=c)return void 0;var e,f=b.charCodeAt(d);return f>=55296&&56319>=f&&c>d+1&&(e=b.charCodeAt(d+1),e>=56320&&57343>=e)?1024*(f-55296)+e-56320+65536:f};a?a(String.prototype,"codePointAt",{value:b,configurable:!0,writable:!0}):String.prototype.codePointAt=b}(),String.prototype.scLength=function(){var a=String(this);if(0==a.length)return 0;for(var b=0,c=0;void 0!=c;b++,c=a.scNextChar(c));return b},String.prototype.scSubstr=function(a,b){var c=String(this);0>a&&(a=c.scLength()+a,0>a&&(a=0));var d=c.scCodePointToCodeUnit(a),e=d;if(void 0==b)e=c.length;else for(var f=0;b>f;f++,e=c.scNextChar(e));return c.substring(d,e)},String.prototype.scCodePointToCodeUnit=function(a){var b=String(this),c=0;if(0>a){c=b.length;for(var d=0;d>a;d--,c=b.scPrevChar(c));return c}if(a==b.scLength())return b.length;for(var d=0;a>d;d++,c=b.scNextChar(c));return c},String.prototype.scCodeUnitToCodePoint=function(a){var b=String(this);return 0==a?0:0>a?b.substr(a).scLength():b.substr(0,a).scLength()},String.prototype.scNextChar=function(a){var b=String(this);if(0>a||a>=b.length-1)return void 0;var c=b.charCodeAt(a);if(c>=55296&&56319>=c&&b.length>a+1){var d=b.charCodeAt(a+1);if(d>=56320&&57343>=d)return a==b.length-2?void 0:a+2}return a+1},String.prototype.scPrevChar=function(a){var b=String(this);if(0>=a||a>b.length)return void 0;var c=b.charCodeAt(a-1);if(c>=56320&&57343>=d&&a>1){var d=b.charCodeAt(a-2);if(d>=55296&&56319>=c)return a-2}return a-1},outsystems.internal.$(function(){function a(){try{if("function"===(typeof document.querySelector).toLowerCase()&&"function"===(typeof document.querySelectorAll).toLowerCase()&&"function"===(typeof Element.prototype.addEventListener).toLowerCase())return!0}catch(a){}return!1}function b(){var a=document.querySelector("form");a.addEventListener("keydown",function(b){if(13==b.keyCode&&getEventSrc(b)instanceof HTMLInputElement){for(var c=a.querySelectorAll('input[type="button"],input[type="submit"]'),d=0;d<c.length;d++){var e=c.item(d);if(!e.disabled)return!0}b.preventDefault()}},!1)}(outsystems.internal.$.browser.msie||outsystems.internal.$.browser.mozilla)&&a()&&b()});var OsPage_ValidationVer="125",OsPage_IsValid=!0,OsPage_BlockSubmit=!1,OsFocusInvalidInput=!0,OSINVALID_INPUT_CLASS="Not_Valid",OSVALIDATION_ICON_PREFIX="ValidationIcon_",OSVALIDATION_MESSAGE_PREFIX="ValidationMessage_",OSMANDATORY_SYMBOL_PREFIX="MandatorySymbol_",OSVALIDATION_CUSTOM_TYPE="Custom";outsystems.internal.addCustomValidator=function(a,b){outsystems.internal.$(function(){OsRemovePageValidator({controltovalidate:a,evaluationfunction:"OsCustomValidatorEvaluateIsValid",errormessage:"",clientvalidationfunction:b,type:OSVALIDATION_CUSTOM_TYPE}),OsAddPageValidator({controltovalidate:a,evaluationfunction:"OsCustomValidatorEvaluateIsValid",errormessage:"",clientvalidationfunction:b,type:OSVALIDATION_CUSTOM_TYPE})})},"undefined"!=typeof outsystems&&"undefined"!=typeof outsystems.internal.$&&outsystems.internal.$(window).load(function(){var a=outsystems.internal.$;outsystems.validators=outsystems.validators||{},a.extend(outsystems.validators,{_getStyleRule:function(a,b,c){var d=null,e=null;try{e=c.cssRules||c.rules}catch(f){}if(null!=e)for(var g=0;g<e.length;g++)if("undefined"!=typeof e[g].styleSheet){if(d=outsystems.validators._getStyleRule(a,b,e[g].styleSheet),null!=d)return d}else if(e[g].selectorText&&e[g].selectorText.toLowerCase()==a+(""==b?"":"."+b))return e[g];return null},getStyleRule:function(a,b){var c=null;a=a.toLowerCase(),b=b.toLowerCase();for(var d=0;d<document.styleSheets.length;d++)if(c=outsystems.validators._getStyleRule(a,b,document.styleSheets[d]),null!=c)return c;return null},showValidationMessage:function(b){var c=a("#"+b),d=a("#"+OSVALIDATION_ICON_PREFIX+b),e=a("#"+OSVALIDATION_MESSAGE_PREFIX+b);if(c.length>0&&d.length>0&&e.length>0&&"none"!=d.css("display")){e.css("display","");var f=c.boundingBox();e.css("top",f.top),e.css("left",f.right+3)}},hideValidationMessage:function(b){var c=a("#"+OSVALIDATION_ICON_PREFIX+b);c.length>0&&"none"!=c.css("display")&&a("#"+OSVALIDATION_MESSAGE_PREFIX+b).css("display","none")},addValidatorIcon:function(b){if(outsystems.validators.validatorIconRule){var c=OSVALIDATION_ICON_PREFIX+b;0==a("#"+c).length&&(a("#"+b).focus(function(){outsystems.validators.showValidationMessage(this.id)}).blur(function(){outsystems.validators.hideValidationMessage(this.id)}).after("<span class='ValidationIcon' style='display: none;' id='"+c+"'></span>"),a("#"+c).mouseout(function(){outsystems.validators.hideValidationMessage(a(this).data("inputToValidate"))}).mouseover(function(){outsystems.validators.showValidationMessage(a(this).data("inputToValidate"))}).data("inputToValidate",b))}},addMandatorySymbol:function(b){try{if(!outsystems.validators.mandatorySymbolRule)return;var c=OSMANDATORY_SYMBOL_PREFIX+b,d=outsystems.validators.mandatorySymbolRule.style,e=null==d||"none"!==d.display;if(0==a("#"+c).length&&e){var f=outsystems.validators.mandatorySymbolRule.style.content;f=f?f.substring(1,f.length-1):"*",a("#"+b+".Mandatory").after("<span id="+c+" class='InputMandatorySymbol'>"+f+"</span>")}}catch(g){return}},updateInputs:function(b){if("undefined"!=typeof OsPage_Validators&&(outsystems.validators.validatorIconRule||outsystems.validators.mandatorySymbolRule||b)){var c=!1;for(i=0;i<OsPage_Validators.length;i++){var d=OsPage_Validators[i];outsystems.validators.addValidatorIcon(d.controltovalidate),outsystems.validators.addMandatorySymbol(d.controltovalidate),b&&!c&&a("#"+d.controltovalidate+".Not_Valid").length>0&&(outsystems.validators.controlToFocusId=d.controltovalidate,c=!0)}}}}),outsystems.validators.validatorIconRule=outsystems.validators.getStyleRule("span","ValidationIcon"),outsystems.validators.mandatorySymbolRule=outsystems.validators.getStyleRule("span","InputMandatorySymbol"),a.fn.extend({boundingBox:function(){if(!this)return null;var a=this.position();return{top:a.top,bottom:a.top+this.outerHeight(),left:a.left,right:a.left+this.outerWidth()}}}),outsystems.validators.updateInputs(OsFocusInvalidInput),osAjaxBackend.BindAfterAjaxRequest(outsystems.validators.updateInputs)}),"undefined"==typeof window.outsystems&&(window.outsystems={}),"undefined"==typeof window.outsystems.internal&&(window.outsystems.internal={}),"undefined"==typeof window.outsystems.internal.$&&(window.outsystems.internal.$=function(){var a=function(){};return{ready:a,val:a,data:a,ajax:a}});