ibp-max 3.0.18 → 3.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bundle.js +1 -1
  2. package/package.json +1 -1
package/bundle.js CHANGED
@@ -1,4 +1,4 @@
1
- function GetFormXml$1(a){if(0<$(a).find($('input[id^="txtFaxInfo"]')).length&&""!=$(a).find($('input[id^="txtFaxInfo"]')).val())return null;var r=[],o="",i="",s="",l=!0;if($(a).find('*[FormNode="true"]').each(function(){if(i="","checkbox"==$(this).attr("type")){var e="";try{1<$(a).find('input[type="checkbox"][name="'+$(this).attr("name")+'"]:checked').length&&(e=";")}catch(e){}$(a).find('input[type="checkbox"][name="'+$(this).attr("name")+'"]:checked').each(function(){i=i+$(this).val()+e})}else if("radio"==$(this).attr("type"))$(this).is(":checked")&&(i=$(this).val());else if($(this).attr("captcha"))try{var t=$(this).closest(".captcha").find("[captcha-value]"),n='<CaptchaValidator ID="'+t.attr("captcha-id")+'">'+$(this).val()+"</CaptchaValidator>";if(MD5($(this).val()).toLowerCase()!=t.attr("captcha-value").toLowerCase())return l=!1,alert($(this).attr("FormMessage")),!1;r.Captcha=n}catch(e){return l=!1,alert(e),!1}else i=$(this).val();if(isNullOrEmpty$1(i)){if("true"==$(this).attr("Required")||"required"==$(this).attr("Required"))return l=!1,alert($(this).attr("FormMessage")),!1}else{if(""!=$(this).attr("FormType")&&"Email"==$(this).attr("FormType")&&!isValidEmail(i))return l=!1,alert($(this).attr("FormMessage")),!1;if(!isNullOrEmpty$1($(this).attr("MinLength"))&&parseInt($(this).attr("MinLength"))>i.length)return l=!1,alert($(this).attr("FormMessage")),!1}isNullOrEmpty$1($(this).attr("Entity"))||isNullOrEmpty$1($(this).attr("Node"))||(isNullOrEmpty$1(o=r[$(this).attr("Entity")])&&(r[$(this).attr("Entity")]=""),isNullOrEmpty$1(i)||(i=i.trim(),s=isNullOrEmpty$1($(this).attr("label"))?"":' label="'+$(this).attr("label")+'" ',o="<"+$(this).attr("Node")+s+">"+("xml"!=$(this).attr("data-agora-type")?"<![CDATA["+i+"]]>":i)+"</"+$(this).attr("Node")+">",r[$(this).attr("Entity")]+=o),"Lead"===$(this).attr("Entity")&&(t=window.location.href,n=new URL(t),(t=new URLSearchParams(n.search)).has("utm_term")&&(i=t.get("utm_term").trim(),o="<UTMTerm"+(s=' label="UTM Term" ')+">"+("xml"!=$(this).attr("data-agora-type")?"<![CDATA["+i+"]]>":i)+"</UTMTerm>",r[$(this).attr("Entity")]+=o),t.has("tm_corp_partner")&&(i=t.get("tm_corp_partner").trim(),o="<CorporatePartner"+(s=' label="Corporate Partner" ')+">"+("xml"!=$(this).attr("data-agora-type")?"<![CDATA["+i+"]]>":i)+"</CorporatePartner>",r[$(this).attr("Entity")]+=o),t.has("utm_campaign")&&(i=t.get("utm_campaign").trim(),o="<UTMCampaign"+(s=' label="UTM Campaign" ')+">"+("xml"!=$(this).attr("data-agora-type")?"<![CDATA["+i+"]]>":i)+"</UTMCampaign>",r[$(this).attr("Entity")]+=o),t.has("utm_content")&&(i=t.get("utm_content").trim(),o="<UTMContent"+(s=' label="UTM Content" ')+">"+("xml"!=$(this).attr("data-agora-type")?"<![CDATA["+i+"]]>":i)+"</UTMContent>",r[$(this).attr("Entity")]+=o),t.has("utm_medium")&&(i=t.get("utm_medium").trim(),o="<UTMMedium"+(s=' label="UTM Medium" ')+">"+("xml"!=$(this).attr("data-agora-type")?"<![CDATA["+i+"]]>":i)+"</UTMMedium>",r[$(this).attr("Entity")]+=o),t.has("utm_source"))&&(i=t.get("utm_source").trim(),o="<UTMSource"+(s=' label="UTM Source" ')+">"+("xml"!=$(this).attr("data-agora-type")?"<![CDATA["+i+"]]>":i)+"</UTMSource>",r[$(this).attr("Entity")]+=o))}),!l)return null;var e="<d>";for(p=0;p<Object.keys(r).length;p++)e+="<"+Object.keys(r)[p]+">"+r[Object.keys(r)[p]]+"</"+Object.keys(r)[p]+">";return e+="</d>",escape(e)}function composeUrlQuery$1(e){var t,a,n,r;return null==e?"":(t="",a=new Object,n=$(e.select).add($(e.select).find("[urlidentifier]")),null!=e.nonselect&&null!=e.nonselect&&(n=$(n).not(e.nonselect)),r=$(),$(n).each(function(){var e=((e,t)=>{if(null!=$(e).attr("onesearchname")){var n=e,a=new Array;if($(n).parent().find("[onesearchidentifier]").each(function(){var e=i(this);null!=e&&a.push(e)}),0==a.length||(e=>null!=e&&null!=$(e).attr("multiselectboxid")&&""!=$(e).attr("multiselectboxid"))(n))if(s(n))return i(n);return a}try{return 0<$(t).find(e).length?null:(t=t.add(e),i(e))}catch(e){console.log("Error For Field")}return null})(this,r),t=a;if(null!=e)if(e instanceof Array)for(var n in e)o(e[n],t);else o(e,t)}),t=(e=>{var t,n="";for(t in e){var a,r="{$value}"==t.toLowerCase(),o=r?"/":";",i="",s=null;for(a in e[t])"min"==e[t][a].Operation.toLowerCase()||"max"==e[t][a].Operation.toLowerCase()?(null==s&&(s={Min:0,Max:0}),"min"==e[t][a].Operation.toLowerCase()&&(s.Min=e[t][a].Value),"max"==e[t][a].Operation.toLowerCase()&&(s.Max=e[t][a].Value)):"thes"==e[t][a].Operation.toLowerCase()?i=e[t][a].Value.toString().replace(/[^0-9A-z\\.]/g,";"):i+=e[t][a].Value.toString()+(1<e[t].length&&e[t].length-1>a?o:"");null!=s?r?n="/"+s.Min+(0!=s.Max?"-"+s.Max:"")+n:n+="/"+t+"-"+s.Min+(0!=s.Max?"-"+s.Max:""):r?n="/"+i+n:n+="/"+t+"-"+i}return n})(a),null!=e.additional&&null!=e.additional?e.additional(t):t);function o(e,t){null!=e&&(null==t[e.UrlIdentifier]&&(t[e.UrlIdentifier]=new Array),t[e.UrlIdentifier].push(e))}function i(t){try{if(!s(t))return null}catch(e){console.log("Error For Field Value Check:"+$(t).attr("type"))}try{return{UrlIdentifier:null!=$(t).attr("urlidentifier")?$(t).attr("urlidentifier"):$(t).attr("onesearchidentifier"),Value:(e=>{var t=$(e).val(),n=void 0!==$(e).attr("onesearchidentifier");if("object"!=typeof t)return(null!=$(e).attr("urlidentifier")&&"price"==$(e).attr("urlidentifier")?t.replace(/\,/g,"").replace(/\-/g,"_").replace(/\//g,"!").replace(/\&/,"$").replace(/\@/g,""):(n?t.replace(/\,/g,"@"):t).replace(/\-/g,"_").replace(/\//g,"!").replace(/\&/,"$")).replace(/\#/g,"%23");var a,r="";for(a in t)""!=t[a]&&(r+=(""==r?"":";")+t[a].replace(/\-/g,"_").replace(/\//g,"!").replace(/\,/g,"@").replace(/\&/,"$").replace(/\#/g,"%23"));return r})(t),Operation:null!=$(t).attr("operation")?$(t).attr("operation"):""}}catch(e){console.log("Error For Field Value:"+$(t).prop("tagName"))}return null}function s(e){var t;return null==$(e).attr("type")||"radio"!=$(e).attr("type")&&"checkbox"!=$(e).attr("type")?null!=e&&$(e).is("select")?"object"==typeof(t=$(e).val())?null!=t&&""!=t:""!=t.trim():null!=e&&""!=$(e).val().trim():null!=e&&""!=$(e).val().trim()&&$(e)[0].checked}}function isValidEmail(e){document.getElementById("txtEmail");return!!/^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(e)}function isNullOrEmpty$1(e){return null==e||""==e||"string"==typeof e&&""==e.trim()}function isNotNullOrZero(e){return null!=e&&0<e.length}function isNullOrEmptyControl(e){return null!=e&&(null==$(e).val()||null==$(e).val()||""==$(e).val())}function OpenIWBPopup(e,t,n){isNullOrEmpty$1(t)||(e+="?"+t),$("#PERFORM_IWB_ACTION_TRIGGER").attr("href",e),$("#PERFORM_IWB_ACTION_TRIGGER").trigger("click"),isNullOrEmpty$1(n)&&(n=1e3),setTimeout(function(){$("#PERFORM_IWB_ACTION_TRIGGER").trigger("click")},n)}function CloseIWBPopup(){$("#MODAL_ACCESS").foundation("reveal","close")}function OpenPopup$1(e){isNullOrEmpty$1(e)&&(e=1e3),setTimeout(function(){$("#PERFORM_ACTION_TRIGGER").trigger("click")},e)}function ClosePopup$2(){$("#MODAL_ACCESS").foundation("reveal","close")}function getFormattedPrice(e){return"$"+(0<e.toString().length?e.toString().length<=6&&3<e.toString().length?e.toString().substring(0,e.toString().length-3)+"K":6<e.toString().length?e.toString().substring(0,e.toString().length-6)+"."+e.toString().substring(e.toString().length-6,e.toString().length-5)+"M":e.toString():"N/A")}function isMultiLingual$1(){return null!=$("#MULTILINGUAL")&&null!=$("#MULTILINGUAL")&&!isNullOrEmpty$1($("#MULTILINGUAL").val())&&"1"==$("#MULTILINGUAL").val()}function getLocale$1(){return isMultiLingual$1()?$("#LOCALE").val():""}function InitDataSourceRelation(e,r,o){for(var i=$("#"+e),t=0;t<r.split(",").length;t++){var n=$("#"+r.split(",")[t]);$(n).change(function(){for(var e="",t=(e=(e=(e+="Source="+$(i).attr("Source"))+("&AutoSort="+$(i).attr("AutoSort")))+("&DefaultItem="+$(i).attr("DefaultItem")),"Xml"==$(i).attr("Source")?e=(e+="&XmlFileCode="+$(i).attr("XmlFileCode"))+"&XmlDataListKey="+$(i).attr("XmlDataListKey"):"Database"==$(i).attr("Source")&&(e=(e=(e+="&DataObjectName="+$(i).attr("DataObjectName"))+"&UrlIdentifier="+$(i).attr("UrlIdentifier"))+"&AdditionalWhere="+$(i).attr("AdditionalWhere")),""),n=0;n<r.split(",").length;n++){var a="#"+r.split(",")[n];0<n&&(t+=","),""==$(a).val()?t+=$(a+" input:checked").val():t+=$(a).val()}e+="&ParentValue="+(t=t.replace("undefined","")),$(i).attr("disabled","disabled"),$.ajax({type:"POST",url:"/services/agoraRelationalDataSource.ashx",data:e,dataType:"json",success:function(e){$(i).get(0).options.length=0,$.each(e,function(e,t){$(i).get(0).options[$(i).get(0).options.length]=new Option(t.Value,t.Key)}),$(i).removeAttr("disabled"),null!=o&&o($(i))},statusCode:{404:function(){alert("Service (agoraParentDataSource) not found!")}}})})}}function enterFullScreen(){document.documentElement.requestFullscreen?document.documentElement.requestFullscreen():document.documentElement.mozRequestFullScreen?document.documentElement.mozRequestFullScreen():document.documentElement.webkitRequestFullscreen&&document.documentElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)}function exitFullScreen(){document.cancelFullScreen?document.cancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()}function ShowLoading$1(){try{$("body").hasClass("is-busy")?$("body").removeClass("is-busy"):$("body").addClass("is-busy")}catch(e){}}((e,t)=>{"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(e.document)return t(e);throw new Error("jQuery requires a window with a document")}:t(e)})("undefined"!=typeof window?window:void 0,function(h,q){function F(e){var t=e.length,n=w.type(e);return"function"!==n&&!w.isWindow(e)&&(!(1!==e.nodeType||!t)||"array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function j(e,n,a){if(w.isFunction(n))return w.grep(e,function(e,t){return!!n.call(e,t,e)!==a});if(n.nodeType)return w.grep(e,function(e){return e===n!==a});if("string"==typeof n){if(ve.test(n))return w.filter(n,e,a);n=w.filter(n,e)}return w.grep(e,function(e){return 0<=r.call(n,e)!==a})}function R(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function t(){y.removeEventListener("DOMContentLoaded",t,!1),h.removeEventListener("load",t,!1),w.ready()}function e(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=w.expando+Math.random()}function U(e,t,n){var a;if(void 0===n&&1===e.nodeType)if(a="data-"+t.replace(Se,"-$1").toLowerCase(),"string"==typeof(n=e.getAttribute(a))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:$e.test(n)?w.parseJSON(n):n)}catch(e){}f.set(e,t,n)}else n=void 0;return n}function n(){return!0}function s(){return!1}function _(){try{return y.activeElement}catch(e){}}function H(e,t){return w.nodeName(e,"table")&&w.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function B(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function G(e){var t=Fe.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function W(e,t){for(var n=0,a=e.length;n<a;n++)b.set(e[n],"globalEval",!t||b.get(t[n],"globalEval"))}function V(e,t){var n,a,r,o,i,s;if(1===t.nodeType){if(b.hasData(e)&&(o=b.access(e),i=b.set(t,o),s=o.events))for(r in delete i.handle,i.events={},s)for(n=0,a=s[r].length;n<a;n++)w.event.add(t,r,s[r][n]);f.hasData(e)&&(o=f.access(e),i=w.extend({},o),f.set(t,i))}}function m(e,t){var n=e.getElementsByTagName?e.getElementsByTagName(t||"*"):e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&w.nodeName(e,t)?w.merge([e],n):n}function z(e,t){e=w(t.createElement(e)).appendTo(t.body),t=h.getDefaultComputedStyle&&(t=h.getDefaultComputedStyle(e[0]))?t.display:w.css(e[0],"display");return e.detach(),t}function Y(e){var t=y,n=Be[e];return n||("none"!==(n=z(e,t))&&n||((t=(Ue=(Ue||w("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentDocument).write(),t.close(),n=z(e,t),Ue.detach()),Be[e]=n),n}function l(e,t,n){var a,r,o=e.style;return(n=n||Re(e))&&(r=n.getPropertyValue(t)||n[t]),n&&(""!==r||w.contains(e.ownerDocument,e)||(r=w.style(e,t)),We.test(r))&&Ge.test(t)&&(e=o.width,t=o.minWidth,a=o.maxWidth,o.minWidth=o.maxWidth=o.width=r,r=n.width,o.width=e,o.minWidth=t,o.maxWidth=a),void 0!==r?r+"":r}function X(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function Q(e,t){if(t in e)return t;for(var n=t[0].toUpperCase()+t.slice(1),a=t,r=Ke.length;r--;)if((t=Ke[r]+n)in e)return t;return a}function J(e,t,n){var a=Ye.exec(t);return a?Math.max(0,a[1]-(n||0))+(a[2]||"px"):t}function K(e,t,n,a,r){for(var o=n===(a?"border":"content")?4:"width"===t?1:0,i=0;o<4;o+=2)"margin"===n&&(i+=w.css(e,n+x[o],!0,r)),a?("content"===n&&(i-=w.css(e,"padding"+x[o],!0,r)),"margin"!==n&&(i-=w.css(e,"border"+x[o]+"Width",!0,r))):(i+=w.css(e,"padding"+x[o],!0,r),"padding"!==n&&(i+=w.css(e,"border"+x[o]+"Width",!0,r)));return i}function Z(e,t,n){var a=!0,r="width"===t?e.offsetWidth:e.offsetHeight,o=Re(e),i="border-box"===w.css(e,"boxSizing",!1,o);if(r<=0||null==r){if(((r=l(e,t,o))<0||null==r)&&(r=e.style[t]),We.test(r))return r;a=i&&(g.boxSizingReliable()||r===e.style[t]),r=parseFloat(r)||0}return r+K(e,t,n||(i?"border":"content"),a,o)+"px"}function ee(e,t){for(var n,a,r,o=[],i=0,s=e.length;i<s;i++)(a=e[i]).style&&(o[i]=b.get(a,"olddisplay"),n=a.style.display,t?(o[i]||"none"!==n||(a.style.display=""),""===a.style.display&&v(a)&&(o[i]=b.access(a,"olddisplay",Y(a.nodeName)))):(r=v(a),"none"===n&&r||b.set(a,"olddisplay",r?n:w.css(a,"display"))));for(i=0;i<s;i++)!(a=e[i]).style||t&&"none"!==a.style.display&&""!==a.style.display||(a.style.display=t?o[i]||"":"none");return e}function o(e,t,n,a,r){return new o.prototype.init(e,t,n,a,r)}function te(){return setTimeout(function(){T=void 0}),T=w.now()}function i(e,t){var n,a=0,r={height:e};for(t=t?1:0;a<4;a+=2-t)r["margin"+(n=x[a])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function ne(e,t,n){for(var a,r=(P[t]||[]).concat(P["*"]),o=0,i=r.length;o<i;o++)if(a=r[o].call(n,t,e))return a}function ae(r,e,t){var n,o,a,i,s,l,c,u=0,d=at.length,p=w.Deferred().always(function(){delete f.elem}),f=function(){if(o)return!1;for(var e=T||te(),e=Math.max(0,h.startTime+h.duration-e),t=1-(e/h.duration||0),n=0,a=h.tweens.length;n<a;n++)h.tweens[n].run(t);return p.notifyWith(r,[h,t,e]),t<1&&a?e:(p.resolveWith(r,[h]),!1)},h=p.promise({elem:r,props:w.extend({},e),opts:w.extend(!0,{specialEasing:{}},t),originalProperties:e,originalOptions:t,startTime:T||te(),duration:t.duration,tweens:[],createTween:function(e,t){t=w.Tween(r,h.opts,e,t,h.opts.specialEasing[e]||h.opts.easing);return h.tweens.push(t),t},stop:function(e){var t=0,n=e?h.tweens.length:0;if(!o){for(o=!0;t<n;t++)h.tweens[t].run(1);e?p.resolveWith(r,[h,e]):p.rejectWith(r,[h,e])}return this}}),m=h.props,g=m,y=h.opts.specialEasing;for(a in g)if(i=w.camelCase(a),s=y[i],l=g[a],w.isArray(l)&&(s=l[1],l=g[a]=l[0]),a!==i&&(g[i]=l,delete g[a]),c=w.cssHooks[i],c&&"expand"in c)for(a in l=c.expand(l),delete g[i],l)a in g||(g[a]=l[a],y[a]=s);else y[i]=s;for(;u<d;u++)if(n=at[u].call(h,r,m,h.opts))return n;return w.map(m,ne,h),w.isFunction(h.opts.start)&&h.opts.start.call(r,h),w.fx.timer(w.extend(f,{elem:r,anim:h,queue:h.opts.queue})),h.progress(h.opts.progress).done(h.opts.done,h.opts.complete).fail(h.opts.fail).always(h.opts.always)}function re(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,a=0,r=e.toLowerCase().match(C)||[];if(w.isFunction(t))for(;n=r[a++];)"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function oe(t,a,r,o){function i(e){var n;return s[e]=!0,w.each(t[e]||[],function(e,t){t=t(a,r,o);return"string"!=typeof t||l||s[t]?l?!(n=t):void 0:(a.dataTypes.unshift(t),i(t),!1)}),n}var s={},l=t===yt;return i(a.dataTypes[0])||!s["*"]&&i("*")}function ie(e,t){var n,a,r=w.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:a=a||{})[n]=t[n]);return a&&w.extend(!0,e,a),e}function se(e){return w.isWindow(e)?e:9===e.nodeType&&e.defaultView}function le(e,t){return t.toUpperCase()}var a=[],u=a.slice,ce=a.concat,ue=a.push,r=a.indexOf,c={},de=c.toString,pe=c.hasOwnProperty,g={},y=h.document,w=function(e,t){return new w.fn.init(e,t)},fe=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,he=/^-ms-/,me=/-([\da-z])/gi,a=(w.fn=w.prototype={jquery:"2.1.1",constructor:w,selector:"",length:0,toArray:function(){return u.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:u.call(this)},pushStack:function(e){e=w.merge(this.constructor(),e);return e.prevObject=this,e.context=this.context,e},each:function(e,t){return w.each(this,e,t)},map:function(n){return this.pushStack(w.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,e=+e+(e<0?t:0);return this.pushStack(0<=e&&e<t?[this[e]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:ue,sort:a.sort,splice:a.splice},w.extend=w.fn.extend=function(){var e,t,n,a,r,o=arguments[0]||{},i=1,s=arguments.length,l=!1;for("boolean"==typeof o&&(l=o,o=arguments[i]||{},i++),"object"==typeof o||w.isFunction(o)||(o={}),i===s&&(o=this,i--);i<s;i++)if(null!=(e=arguments[i]))for(t in e)r=o[t],n=e[t],o!==n&&(l&&n&&(w.isPlainObject(n)||(a=w.isArray(n)))?(r=a?(a=!1,r&&w.isArray(r)?r:[]):r&&w.isPlainObject(r)?r:{},o[t]=w.extend(l,r,n)):void 0!==n&&(o[t]=n));return o},w.extend({expando:"jQuery"+("2.1.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===w.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!w.isArray(e)&&0<=e-parseFloat(e)},isPlainObject:function(e){return!("object"!==w.type(e)||e.nodeType||w.isWindow(e)||e.constructor&&!pe.call(e.constructor.prototype,"isPrototypeOf"))},isEmptyObject:function(e){for(var t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[de.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;(e=w.trim(e))&&(1===e.indexOf("use strict")?((t=y.createElement("script")).text=e,y.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(he,"ms-").replace(me,le)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var a,r=0,o=e.length,i=F(e);if(n){if(i)for(;r<o&&!1!==(a=t.apply(e[r],n));r++);else for(r in e)if(a=t.apply(e[r],n),!1===a)break}else if(i)for(;r<o&&!1!==(a=t.call(e[r],r,e[r]));r++);else for(r in e)if(a=t.call(e[r],r,e[r]),!1===a)break;return e},trim:function(e){return null==e?"":(e+"").replace(fe,"")},makeArray:function(e,t){t=t||[];return null!=e&&(F(Object(e))?w.merge(t,"string"==typeof e?[e]:e):ue.call(t,e)),t},inArray:function(e,t,n){return null==t?-1:r.call(t,e,n)},merge:function(e,t){for(var n=+t.length,a=0,r=e.length;a<n;a++)e[r++]=t[a];return e.length=r,e},grep:function(e,t,n){for(var a=[],r=0,o=e.length,i=!n;r<o;r++)!t(e[r],r)!=i&&a.push(e[r]);return a},map:function(e,t,n){var a,r=0,o=e.length,i=[];if(F(e))for(;r<o;r++)null!=(a=t(e[r],r,n))&&i.push(a);else for(r in e)a=t(e[r],r,n),null!=a&&i.push(a);return ce.apply([],i)},guid:1,proxy:function(e,t){var n,a;return"string"==typeof t&&(a=e[t],t=e,e=a),w.isFunction(e)?(n=u.call(arguments,2),(a=function(){return e.apply(t||this,n.concat(u.call(arguments)))}).guid=e.guid=e.guid||w.guid++,a):void 0},now:Date.now,support:g}),w.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){c["[object "+t+"]"]=t.toLowerCase()}),(q=>{function x(e,t,n,a){var r,o,i,s,l,c,u;if((t?t.ownerDocument||t:S)!==$&&m(t),n=n||[],!e||"string"!=typeof e)return n;if(1!==(r=(t=t||$).nodeType)&&9!==r)return[];if(g&&!a){if(c=me.exec(e))if(u=c[1]){if(9===r){if(!(s=t.getElementById(u))||!s.parentNode)return n;if(s.id===u)return n.push(s),n}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(u))&&v(t,s)&&s.id===u)return n.push(s),n}else{if(c[2])return T.apply(n,t.getElementsByTagName(e)),n;if((u=c[3])&&f.getElementsByClassName&&t.getElementsByClassName)return T.apply(n,t.getElementsByClassName(u)),n}if(f.qsa&&(!y||!y.test(e))){if(l=s=b,c=t,u=9===r&&e,1===r&&"object"!==t.nodeName.toLowerCase()){for(i=h(e),(s=t.getAttribute("id"))?l=s.replace(ye,"\\$&"):t.setAttribute("id",l),l="[id='"+l+"'] ",o=i.length;o--;)i[o]=l+p(i[o]);c=ge.test(e)&&U(t.parentNode)||t,u=i.join(",")}if(u)try{return T.apply(n,c.querySelectorAll(u)),n}catch(e){}finally{s||t.removeAttribute("id")}}}return Y(e.replace(O,"$1"),t,n,a)}function F(){function n(e,t){return a.push(e+" ")>C.cacheLength&&delete n[a.shift()],n[e+" "]=t}var a=[];return n}function n(e){return e[b]=!0,e}function t(e){var t=$.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function j(e,t){for(var n=e.split("|"),a=e.length;a--;)C.attrHandle[n[a]]=t}function R(e,t){var n=t&&e,a=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(a)return a;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function e(i){return n(function(o){return o=+o,n(function(e,t){for(var n,a=i([],e.length,o),r=a.length;r--;)e[n=a[r]]&&(e[n]=!(t[n]=e[n]))})})}function U(e){return e&&typeof e.getElementsByTagName!==L&&e}function _(){}function p(e){for(var t=0,n=e.length,a="";t<n;t++)a+=e[t].value;return a}function H(i,e,t){var s=e.dir,l=t&&"parentNode"===s,c=X++;return e.first?function(e,t,n){for(;e=e[s];)if(1===e.nodeType||l)return i(e,t,n)}:function(e,t,n){var a,r,o=[A,c];if(n){for(;e=e[s];)if((1===e.nodeType||l)&&i(e,t,n))return!0}else for(;e=e[s];)if(1===e.nodeType||l){if((a=(r=e[b]||(e[b]={}))[s])&&a[0]===A&&a[1]===c)return o[2]=a[2];if((r[s]=o)[2]=i(e,t,n))return!0}}}function B(r){return 1<r.length?function(e,t,n){for(var a=r.length;a--;)if(!r[a](e,t,n))return!1;return!0}:r[0]}function w(e,t,n,a,r){for(var o,i=[],s=0,l=e.length,c=null!=t;s<l;s++)(o=e[s])&&(!n||n(o,a,r))&&(i.push(o),c)&&t.push(s);return i}function G(f,h,m,g,y,e){return g&&!g[b]&&(g=G(g)),y&&!y[b]&&(y=G(y,e)),n(function(e,t,n,a){var r,o,i,s=[],l=[],c=t.length,u=e||((e,t,n)=>{for(var a=0,r=t.length;a<r;a++)x(e,t[a],n);return n})(h||"*",n.nodeType?[n]:n,[]),d=!f||!e&&h?u:w(u,s,f,n,a),p=m?y||(e?f:c||g)?[]:t:d;if(m&&m(d,p,n,a),g)for(r=w(p,l),g(r,[],n,a),o=r.length;o--;)(i=r[o])&&(p[l[o]]=!(d[l[o]]=i));if(e){if(y||f){if(y){for(r=[],o=p.length;o--;)(i=p[o])&&r.push(d[o]=i);y(null,p=[],r,a)}for(o=p.length;o--;)(i=p[o])&&-1<(r=y?k.call(e,i):s[o])&&(e[r]=!(t[r]=i))}}else p=w(p===t?p.splice(c,p.length):p),y?y(null,t,p,a):T.apply(t,p)})}function W(g,y){function e(e,t,n,a,r){var o,i,s,l=0,c="0",u=e&&[],d=[],p=E,f=e||b&&C.find.TAG("*",r),h=A+=null==p?1:Math.random()||.1,m=f.length;for(r&&(E=t!==$&&t);c!==m&&null!=(o=f[c]);c++){if(b&&o){for(i=0;s=g[i++];)if(s(o,t,n)){a.push(o);break}r&&(A=h)}v&&((o=!s&&o)&&l--,e)&&u.push(o)}if(l+=c,v&&c!==l){for(i=0;s=y[i++];)s(u,d,t,n);if(e){if(0<l)for(;c--;)u[c]||d[c]||(d[c]=te.call(a));d=w(d)}T.apply(a,d),r&&!e&&0<d.length&&1<l+y.length&&x.uniqueSort(a)}return r&&(A=h,E=p),u}var v=0<y.length,b=0<g.length;return v?n(e):e}function d(e,t,n){var a="0x"+t-65536;return a!=a||n?t:a<0?String.fromCharCode(65536+a):String.fromCharCode(a>>10|55296,1023&a|56320)}var a,f,C,o,V,h,z,Y,E,c,u,m,$,r,g,y,i,s,v,b="sizzle"+-new Date,S=q.document,A=0,X=0,Q=F(),J=F(),K=F(),Z=function(e,t){return e===t&&(u=!0),0},L="undefined",ee={}.hasOwnProperty,l=[],te=l.pop,ne=l.push,T=l.push,ae=l.slice,k=l.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},re="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",N="[\\x20\\t\\r\\n\\f]",P="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",oe=P.replace("w","w#"),ie="\\["+N+"*("+P+")(?:"+N+"*([*^$|!~]?=)"+N+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+oe+"))|)"+N+"*\\]",se=":("+P+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ie+")*)|.*)\\)|)",O=new RegExp("^"+N+"+|((?:^|[^\\\\])(?:\\\\.)*)"+N+"+$","g"),le=new RegExp("^"+N+"*,"+N+"*"),ce=new RegExp("^"+N+"*([>+~]|"+N+")"+N+"*"),ue=new RegExp("="+N+"*([^\\]'\"]*?)"+N+"*\\]","g"),de=new RegExp(se),pe=new RegExp("^"+oe+"$"),M={ID:new RegExp("^#("+P+")"),CLASS:new RegExp("^\\.("+P+")"),TAG:new RegExp("^("+P.replace("w","w*")+")"),ATTR:new RegExp("^"+ie),PSEUDO:new RegExp("^"+se),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+N+"*(even|odd|(([+-]|)(\\d*)n|)"+N+"*(?:([+-]|)"+N+"*(\\d+)|))"+N+"*\\)|)","i"),bool:new RegExp("^(?:"+re+")$","i"),needsContext:new RegExp("^"+N+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+N+"*((?:-\\d)?\\d*)"+N+"*\\)|)(?=[^-]|$)","i")},fe=/^(?:input|select|textarea|button)$/i,he=/^h\d$/i,I=/^[^{]+\{\s*\[native \w/,me=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ge=/[+~]/,ye=/'|\\/g,D=new RegExp("\\\\([\\da-f]{1,6}"+N+"?|("+N+")|.)","ig");try{T.apply(l=ae.call(S.childNodes),S.childNodes),l[S.childNodes.length].nodeType}catch(e){T={apply:l.length?function(e,t){ne.apply(e,ae.call(t))}:function(e,t){for(var n=e.length,a=0;e[n++]=t[a++];);e.length=n-1}}}for(a in f=x.support={},V=x.isXML=function(e){e=e&&(e.ownerDocument||e).documentElement;return!!e&&"HTML"!==e.nodeName},m=x.setDocument=function(e){var l=e?e.ownerDocument||e:S,e=l.defaultView;return l!==$&&9===l.nodeType&&l.documentElement?(r=($=l).documentElement,g=!V(l),e&&e!==e.top&&(e.addEventListener?e.addEventListener("unload",function(){m()},!1):e.attachEvent&&e.attachEvent("onunload",function(){m()})),f.attributes=t(function(e){return e.className="i",!e.getAttribute("className")}),f.getElementsByTagName=t(function(e){return e.appendChild(l.createComment("")),!e.getElementsByTagName("*").length}),f.getElementsByClassName=I.test(l.getElementsByClassName)&&t(function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),f.getById=t(function(e){return r.appendChild(e).id=b,!l.getElementsByName||!l.getElementsByName(b).length}),f.getById?(C.find.ID=function(e,t){if(typeof t.getElementById!==L&&g)return(t=t.getElementById(e))&&t.parentNode?[t]:[]},C.filter.ID=function(e){var t=e.replace(D,d);return function(e){return e.getAttribute("id")===t}}):(delete C.find.ID,C.filter.ID=function(e){var t=e.replace(D,d);return function(e){e=typeof e.getAttributeNode!==L&&e.getAttributeNode("id");return e&&e.value===t}}),C.find.TAG=f.getElementsByTagName?function(e,t){return typeof t.getElementsByTagName!==L?t.getElementsByTagName(e):void 0}:function(e,t){var n,a=[],r=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[r++];)1===n.nodeType&&a.push(n);return a},C.find.CLASS=f.getElementsByClassName&&function(e,t){return typeof t.getElementsByClassName!==L&&g?t.getElementsByClassName(e):void 0},i=[],y=[],(f.qsa=I.test(l.querySelectorAll))&&(t(function(e){e.innerHTML="<select msallowclip=''><option selected=''></option></select>",e.querySelectorAll("[msallowclip^='']").length&&y.push("[*^$]="+N+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||y.push("\\["+N+"*(?:value|"+re+")"),e.querySelectorAll(":checked").length||y.push(":checked")}),t(function(e){var t=l.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&y.push("name"+N+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||y.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),y.push(",.*:")})),(f.matchesSelector=I.test(s=r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.oMatchesSelector||r.msMatchesSelector))&&t(function(e){f.disconnectedMatch=s.call(e,"div"),s.call(e,"[s!='']:x"),i.push("!=",se)}),y=y.length&&new RegExp(y.join("|")),i=i.length&&new RegExp(i.join("|")),e=I.test(r.compareDocumentPosition),v=e||I.test(r.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},Z=e?function(e,t){var n;return e===t?(u=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!f.sortDetached&&t.compareDocumentPosition(e)===n?e===l||e.ownerDocument===S&&v(S,e)?-1:t===l||t.ownerDocument===S&&v(S,t)?1:c?k.call(c,e)-k.call(c,t):0:4&n?-1:1)}:function(e,t){if(e===t)return u=!0,0;var n,a=0,r=e.parentNode,o=t.parentNode,i=[e],s=[t];if(!r||!o)return e===l?-1:t===l?1:r?-1:o?1:c?k.call(c,e)-k.call(c,t):0;if(r===o)return R(e,t);for(n=e;n=n.parentNode;)i.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;i[a]===s[a];)a++;return a?R(i[a],s[a]):i[a]===S?-1:s[a]===S?1:0},l):$},x.matches=function(e,t){return x(e,null,null,t)},x.matchesSelector=function(e,t){if((e.ownerDocument||e)!==$&&m(e),t=t.replace(ue,"='$1']"),!(!f.matchesSelector||!g||i&&i.test(t)||y&&y.test(t)))try{var n=s.call(e,t);if(n||f.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0<x(t,$,null,[e]).length},x.contains=function(e,t){return(e.ownerDocument||e)!==$&&m(e),v(e,t)},x.attr=function(e,t){(e.ownerDocument||e)!==$&&m(e);var n=C.attrHandle[t.toLowerCase()],n=n&&ee.call(C.attrHandle,t.toLowerCase())?n(e,t,!g):void 0;return void 0!==n?n:f.attributes||!g?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},x.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},x.uniqueSort=function(e){var t,n=[],a=0,r=0;if(u=!f.detectDuplicates,c=!f.sortStable&&e.slice(0),e.sort(Z),u){for(;t=e[r++];)t===e[r]&&(a=n.push(r));for(;a--;)e.splice(n[a],1)}return c=null,e},o=x.getText=function(e){var t,n="",a=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[a++];)n+=o(t);return n},(C=x.selectors={cacheLength:50,createPseudo:n,match:M,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(D,d),e[3]=(e[3]||e[4]||e[5]||"").replace(D,d),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||x.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&x.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return M.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&de.test(n)&&(t=(t=h(n,!0))&&n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(D,d).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=Q[e+" "];return t||(t=new RegExp("(^|"+N+")"+e+"("+N+"|$)"))&&Q(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==L&&e.getAttribute("class")||"")})},ATTR:function(t,n,a){return function(e){e=x.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===a:"!="===n?e!==a:"^="===n?a&&0===e.indexOf(a):"*="===n?a&&-1<e.indexOf(a):"$="===n?a&&e.slice(-a.length)===a:"~="===n?-1<(" "+e+" ").indexOf(a):"|="===n&&(e===a||e.slice(0,a.length+1)===a+"-"))}},CHILD:function(f,e,t,h,m){var g="nth"!==f.slice(0,3),y="last"!==f.slice(-4),v="of-type"===e;return 1===h&&0===m?function(e){return!!e.parentNode}:function(e,t,n){var a,r,o,i,s,l,c=g!=y?"nextSibling":"previousSibling",u=e.parentNode,d=v&&e.nodeName.toLowerCase(),p=!n&&!v;if(u){if(g){for(;c;){for(o=e;o=o[c];)if(v?o.nodeName.toLowerCase()===d:1===o.nodeType)return!1;l=c="only"===f&&!l&&"nextSibling"}return!0}if(l=[y?u.firstChild:u.lastChild],y&&p){for(s=(a=(r=u[b]||(u[b]={}))[f]||[])[0]===A&&a[1],i=a[0]===A&&a[2],o=s&&u.childNodes[s];o=++s&&o&&o[c]||(i=s=0,l.pop());)if(1===o.nodeType&&++i&&o===e){r[f]=[A,s,i];break}}else if(p&&(a=(e[b]||(e[b]={}))[f])&&a[0]===A)i=a[1];else for(;(o=++s&&o&&o[c]||(i=s=0,l.pop()))&&((v?o.nodeName.toLowerCase()!==d:1!==o.nodeType)||!++i||(p&&((o[b]||(o[b]={}))[f]=[A,i]),o!==e)););return(i-=m)===h||i%h==0&&0<=i/h}}},PSEUDO:function(e,o){var t,i=C.pseudos[e]||C.setFilters[e.toLowerCase()]||x.error("unsupported pseudo: "+e);return i[b]?i(o):1<i.length?(t=[e,e,"",o],C.setFilters.hasOwnProperty(e.toLowerCase())?n(function(e,t){for(var n,a=i(e,o),r=a.length;r--;)e[n=k.call(e,a[r])]=!(t[n]=a[r])}):function(e){return i(e,0,t)}):i}},pseudos:{not:n(function(e){var a=[],r=[],s=z(e.replace(O,"$1"));return s[b]?n(function(e,t,n,a){for(var r,o=s(e,null,a,[]),i=e.length;i--;)(r=o[i])&&(e[i]=!(t[i]=r))}):function(e,t,n){return a[0]=e,s(a,null,n,r),!r.pop()}}),has:n(function(t){return function(e){return 0<x(t,e).length}}),contains:n(function(t){return function(e){return-1<(e.textContent||e.innerText||o(e)).indexOf(t)}}),lang:n(function(n){return pe.test(n||"")||x.error("unsupported lang: "+n),n=n.replace(D,d).toLowerCase(),function(e){var t;do{if(t=g?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=q.location&&q.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===r},focus:function(e){return e===$.activeElement&&(!$.hasFocus||$.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!C.pseudos.empty(e)},header:function(e){return he.test(e.nodeName)},input:function(e){return fe.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(e=e.getAttribute("type"))||"text"===e.toLowerCase())},first:e(function(){return[0]}),last:e(function(e,t){return[t-1]}),eq:e(function(e,t,n){return[n<0?n+t:n]}),even:e(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:e(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:e(function(e,t,n){for(var a=n<0?n+t:n;0<=--a;)e.push(a);return e}),gt:e(function(e,t,n){for(var a=n<0?n+t:n;++a<t;)e.push(a);return e})}}).pseudos.nth=C.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})C.pseudos[a]=(t=>function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t})(a);for(a in{submit:!0,reset:!0})C.pseudos[a]=(n=>function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n})(a);return _.prototype=C.filters=C.pseudos,C.setFilters=new _,h=x.tokenize=function(e,t){var n,a,r,o,i,s,l,c=J[e+" "];if(c)return t?0:c.slice(0);for(i=e,s=[],l=C.preFilter;i;){for(o in n&&!(a=le.exec(i))||(a&&(i=i.slice(a[0].length)||i),s.push(r=[])),n=!1,(a=ce.exec(i))&&(n=a.shift(),r.push({value:n,type:a[0].replace(O," ")}),i=i.slice(n.length)),C.filter)!(a=M[o].exec(i))||l[o]&&!(a=l[o](a))||(n=a.shift(),r.push({value:n,type:o,matches:a}),i=i.slice(n.length));if(!n)break}return t?i.length:i?x.error(e):J(e,s).slice(0)},z=x.compile=function(e,t){var n,a=[],r=[],o=K[e+" "];if(!o){for(n=(t=t||h(e)).length;n--;)((o=function e(t){for(var a,n,r,o=t.length,i=C.relative[t[0].type],s=i||C.relative[" "],l=i?1:0,c=H(function(e){return e===a},s,!0),u=H(function(e){return-1<k.call(a,e)},s,!0),d=[function(e,t,n){return!i&&(n||t!==E)||((a=t).nodeType?c:u)(e,t,n)}];l<o;l++)if(n=C.relative[t[l].type])d=[H(B(d),n)];else{if((n=C.filter[t[l].type].apply(null,t[l].matches))[b]){for(r=++l;r<o&&!C.relative[t[r].type];r++);return G(1<l&&B(d),1<l&&p(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(O,"$1"),n,l<r&&e(t.slice(l,r)),r<o&&e(t=t.slice(r)),r<o&&p(t))}d.push(n)}return B(d)}(t[n]))[b]?a:r).push(o);(o=K(e,W(r,a))).selector=e}return o},Y=x.select=function(e,t,n,a){var r,o,i,s,l,c="function"==typeof e&&e,u=!a&&h(e=c.selector||e);if(n=n||[],1===u.length){if(2<(o=u[0]=u[0].slice(0)).length&&"ID"===(i=o[0]).type&&f.getById&&9===t.nodeType&&g&&C.relative[o[1].type]){if(!(t=(C.find.ID(i.matches[0].replace(D,d),t)||[])[0]))return n;c&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=M.needsContext.test(e)?0:o.length;r--&&(i=o[r],!C.relative[s=i.type]);)if((l=C.find[s])&&(a=l(i.matches[0].replace(D,d),ge.test(o[0].type)&&U(t.parentNode)||t))){if(o.splice(r,1),e=a.length&&p(o))break;return T.apply(n,a),n}}return(c||z(e,u))(a,t,!g,n,ge.test(e)&&U(t.parentNode)||t),n},f.sortStable=b.split("").sort(Z).join("")===b,f.detectDuplicates=!!u,m(),f.sortDetached=t(function(e){return 1&e.compareDocumentPosition($.createElement("div"))}),t(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||j("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),f.attributes&&t(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||j("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),t(function(e){return null==e.getAttribute("disabled")})||j(re,function(e,t,n){return n?void 0:!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),x})(h)),ge=(w.find=a,w.expr=a.selectors,w.expr[":"]=w.expr.pseudos,w.unique=a.uniqueSort,w.text=a.getText,w.isXMLDoc=a.isXML,w.contains=a.contains,w.expr.match.needsContext),ye=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ve=/^.[^:#\[\.,]*$/;w.filter=function(e,t,n){var a=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===a.nodeType?w.find.matchesSelector(a,e)?[a]:[]:w.find.matches(e,w.grep(t,function(e){return 1===e.nodeType}))},w.fn.extend({find:function(e){var t,n=this.length,a=[],r=this;if("string"!=typeof e)return this.pushStack(w(e).filter(function(){for(t=0;t<n;t++)if(w.contains(r[t],this))return!0}));for(t=0;t<n;t++)w.find(e,r[t],a);return(a=this.pushStack(1<n?w.unique(a):a)).selector=this.selector?this.selector+" "+e:e,a},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&ge.test(e)?w(e):e||[],!1).length}});function v(e,t){return"none"===w.css(e=t||e,"display")||!w.contains(e.ownerDocument,e)}var d,be,xe=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,we=((w.fn.init=function(e,t){var n,a;if(e){if("string"!=typeof e)return e.nodeType?(this.context=this[0]=e,this.length=1,this):w.isFunction(e)?void 0!==d.ready?d.ready(e):e(w):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),w.makeArray(e,this));if(!(n="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:xe.exec(e))||!n[1]&&t)return(!t||t.jquery?t||d:this.constructor(t)).find(e);if(n[1]){if(t=t instanceof w?t[0]:t,w.merge(this,w.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:y,!0)),ye.test(n[1])&&w.isPlainObject(t))for(n in t)w.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n])}else(a=y.getElementById(n[2]))&&a.parentNode&&(this.length=1,this[0]=a),this.context=y,this.selector=e}return this}).prototype=w.fn,d=w(y),/^(?:parents|prev(?:Until|All))/),Ce={children:!0,contents:!0,next:!0,prev:!0},C=(w.extend({dir:function(e,t,n){for(var a=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&w(e).is(n))break;a.push(e)}return a},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),w.fn.extend({has:function(e){var t=w(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(w.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,a=0,r=this.length,o=[],i=ge.test(e)||"string"!=typeof e?w(e,t||this.context):0;a<r;a++)for(n=this[a];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(i?-1<i.index(n):1===n.nodeType&&w.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?w.unique(o):o)},index:function(e){return e?"string"==typeof e?r.call(w(e),this[0]):r.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(w.unique(w.merge(this.get(),w(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),w.each({parent:function(e){e=e.parentNode;return e&&11!==e.nodeType?e:null},parents:function(e){return w.dir(e,"parentNode")},parentsUntil:function(e,t,n){return w.dir(e,"parentNode",n)},next:function(e){return R(e,"nextSibling")},prev:function(e){return R(e,"previousSibling")},nextAll:function(e){return w.dir(e,"nextSibling")},prevAll:function(e){return w.dir(e,"previousSibling")},nextUntil:function(e,t,n){return w.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return w.dir(e,"previousSibling",n)},siblings:function(e){return w.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return w.sibling(e.firstChild)},contents:function(e){return e.contentDocument||w.merge([],e.childNodes)}},function(a,r){w.fn[a]=function(e,t){var n=w.map(this,r,e);return(t="Until"!==a.slice(-5)?e:t)&&"string"==typeof t&&(n=w.filter(t,n)),1<this.length&&(Ce[a]||w.unique(n),we.test(a))&&n.reverse(),this.pushStack(n)}}),/\S+/g),Ee={},p=(w.Callbacks=function(r){var e,n;r="string"==typeof r?Ee[r]||(n=Ee[e=r]={},w.each(e.match(C)||[],function(e,t){n[t]=!0}),n):w.extend({},r);function a(e){for(t=r.memory&&e,o=!0,c=s||0,s=0,l=u.length,i=!0;u&&c<l;c++)if(!1===u[c].apply(e[0],e[1])&&r.stopOnFalse){t=!1;break}i=!1,u&&(d?d.length&&a(d.shift()):t?u=[]:p.disable())}var t,o,i,s,l,c,u=[],d=!r.once&&[],p={add:function(){var e;return u&&(e=u.length,function a(e){w.each(e,function(e,t){var n=w.type(t);"function"===n?r.unique&&p.has(t)||u.push(t):t&&t.length&&"string"!==n&&a(t)})}(arguments),i?l=u.length:t&&(s=e,a(t))),this},remove:function(){return u&&w.each(arguments,function(e,t){for(var n;-1<(n=w.inArray(t,u,n));)u.splice(n,1),i&&(n<=l&&l--,n<=c)&&c--}),this},has:function(e){return e?-1<w.inArray(e,u):!(!u||!u.length)},empty:function(){return u=[],l=0,this},disable:function(){return u=d=t=void 0,this},disabled:function(){return!u},lock:function(){return d=void 0,t||p.disable(),this},locked:function(){return!d},fireWith:function(e,t){return!u||o&&!d||(t=[e,(t=t||[]).slice?t.slice():t],i?d.push(t):a(t)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!o}};return p},w.extend({Deferred:function(e){var o=[["resolve","done",w.Callbacks("once memory"),"resolved"],["reject","fail",w.Callbacks("once memory"),"rejected"],["notify","progress",w.Callbacks("memory")]],r="pending",i={state:function(){return r},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var r=arguments;return w.Deferred(function(a){w.each(o,function(e,t){var n=w.isFunction(r[e])&&r[e];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&w.isFunction(e.promise)?e.promise().done(a.resolve).fail(a.reject).progress(a.notify):a[t[0]+"With"](this===i?a.promise():this,n?[e]:arguments)})}),r=null}).promise()},promise:function(e){return null!=e?w.extend(e,i):i}},s={};return i.pipe=i.then,w.each(o,function(e,t){var n=t[2],a=t[3];i[t[1]]=n.add,a&&n.add(function(){r=a},o[1^e][2].disable,o[2][2].lock),s[t[0]]=function(){return s[t[0]+"With"](this===s?i:this,arguments),this},s[t[0]+"With"]=n.fireWith}),i.promise(s),e&&e.call(s,s),s},when:function(e){function t(t,n,a){return function(e){n[t]=this,a[t]=1<arguments.length?u.call(arguments):e,a===r?c.notifyWith(n,a):--l||c.resolveWith(n,a)}}var r,n,a,o=0,i=u.call(arguments),s=i.length,l=1!==s||e&&w.isFunction(e.promise)?s:0,c=1===l?e:w.Deferred();if(1<s)for(r=new Array(s),n=new Array(s),a=new Array(s);o<s;o++)i[o]&&w.isFunction(i[o].promise)?i[o].promise().done(t(o,a,i)).fail(c.reject).progress(t(o,n,r)):--l;return l||c.resolveWith(a,i),c.promise()}}),w.fn.ready=function(e){return w.ready.promise().done(e),this},w.extend({isReady:!1,readyWait:1,holdReady:function(e){e?w.readyWait++:w.ready(!0)},ready:function(e){(!0===e?--w.readyWait:w.isReady)||(w.isReady=!0)!==e&&0<--w.readyWait||(be.resolveWith(y,[w]),w.fn.triggerHandler&&(w(y).triggerHandler("ready"),w(y).off("ready")))}}),w.ready.promise=function(e){return be||(be=w.Deferred(),"complete"===y.readyState?setTimeout(w.ready):(y.addEventListener("DOMContentLoaded",t,!1),h.addEventListener("load",t,!1))),be.promise(e)},w.ready.promise(),w.access=function(e,t,n,a,r,o,i){var s=0,l=e.length,c=null==n;if("object"===w.type(n))for(s in r=!0,n)w.access(e,t,s,n[s],!0,o,i);else if(void 0!==a&&(r=!0,w.isFunction(a)||(i=!0),t=c?i?(t.call(e,a),null):(c=t,function(e,t,n){return c.call(w(e),n)}):t))for(;s<l;s++)t(e[s],n,i?a:a.call(e[s],s,t(e[s],n)));return r?e:c?t.call(e):l?t(e[0],n):o}),b=(w.acceptData=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType},e.uid=1,e.accepts=w.acceptData,e.prototype={key:function(t){if(!e.accepts(t))return 0;var n={},a=t[this.expando];if(!a){a=e.uid++;try{n[this.expando]={value:a},Object.defineProperties(t,n)}catch(e){n[this.expando]=a,w.extend(t,n)}}return this.cache[a]||(this.cache[a]={}),a},set:function(e,t,n){var a,e=this.key(e),r=this.cache[e];if("string"==typeof t)r[t]=n;else if(w.isEmptyObject(r))w.extend(this.cache[e],t);else for(a in t)r[a]=t[a];return r},get:function(e,t){e=this.cache[this.key(e)];return void 0===t?e:e[t]},access:function(e,t,n){var a;return void 0===t||t&&"string"==typeof t&&void 0===n?void 0!==(a=this.get(e,t))?a:this.get(e,w.camelCase(t)):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,a,e=this.key(e),r=this.cache[e];if(void 0===t)this.cache[e]={};else{n=(a=w.isArray(t)?t.concat(t.map(w.camelCase)):(e=w.camelCase(t),t in r?[t,e]:(a=e)in r?[a]:a.match(C)||[])).length;for(;n--;)delete r[a[n]]}},hasData:function(e){return!w.isEmptyObject(this.cache[e[this.expando]]||{})},discard:function(e){e[this.expando]&&delete this.cache[e[this.expando]]}},new e),f=new e,$e=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Se=/([A-Z])/g,a=(w.extend({hasData:function(e){return f.hasData(e)||b.hasData(e)},data:function(e,t,n){return f.access(e,t,n)},removeData:function(e,t){f.remove(e,t)},_data:function(e,t,n){return b.access(e,t,n)},_removeData:function(e,t){b.remove(e,t)}}),w.fn.extend({data:function(a,e){var t,n,r,o=this[0],i=o&&o.attributes;if(void 0!==a)return"object"==typeof a?this.each(function(){f.set(this,a)}):p(this,function(t){var e,n=w.camelCase(a);if(o&&void 0===t)return void 0!==(e=f.get(o,a))||void 0!==(e=f.get(o,n))||void 0!==(e=U(o,n,void 0))?e:void 0;this.each(function(){var e=f.get(this,n);f.set(this,n,t),-1!==a.indexOf("-")&&void 0!==e&&f.set(this,a,t)})},null,e,1<arguments.length,null,!0);if(this.length&&(r=f.get(o),1===o.nodeType)&&!b.get(o,"hasDataAttrs")){for(t=i.length;t--;)i[t]&&0===(n=i[t].name).indexOf("data-")&&(n=w.camelCase(n.slice(5)),U(o,n,r[n]));b.set(o,"hasDataAttrs",!0)}return r},removeData:function(e){return this.each(function(){f.remove(this,e)})}}),w.extend({queue:function(e,t,n){var a;return e?(a=b.get(e,t=(t||"fx")+"queue"),n&&(!a||w.isArray(n)?a=b.access(e,t,w.makeArray(n)):a.push(n)),a||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=w.queue(e,t),a=n.length,r=n.shift(),o=w._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),a--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,function(){w.dequeue(e,t)},o)),!a&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return b.get(e,n)||b.access(e,n,{empty:w.Callbacks("once memory").add(function(){b.remove(e,[t+"queue",n])})})}}),w.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?w.queue(this[0],t):void 0===n?this:this.each(function(){var e=w.queue(this,t,n);w._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&w.dequeue(this,t)})},dequeue:function(e){return this.each(function(){w.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function n(){--r||o.resolveWith(i,[i])}var a,r=1,o=w.Deferred(),i=this,s=this.length;for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(a=b.get(i[s],e+"queueHooks"))&&a.empty&&(r++,a.empty.add(n));return n(),o.promise(t)}}),/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source),x=["Top","Right","Bottom","Left"],Ae=/^(?:checkbox|radio)$/i,E=(N=y.createDocumentFragment().appendChild(y.createElement("div")),(k=y.createElement("input")).setAttribute("type","radio"),k.setAttribute("checked","checked"),k.setAttribute("name","t"),N.appendChild(k),g.checkClone=N.cloneNode(!0).cloneNode(!0).lastChild.checked,N.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!N.cloneNode(!0).lastChild.defaultValue,"undefined"),Le=(g.focusinBubbles="onfocusin"in h,/^key/),Te=/^(?:mouse|pointer|contextmenu)|click/,ke=/^(?:focusinfocus|focusoutblur)$/,Ne=/^([^.]*)(?:\.(.+)|)$/,Pe=(w.event={global:{},add:function(t,e,n,a,r){var o,i,s,l,c,u,d,p,f,h=b.get(t);if(h)for(n.handler&&(n=(o=n).handler,r=o.selector),n.guid||(n.guid=w.guid++),s=(s=h.events)||(h.events={}),i=(i=h.handle)||(h.handle=function(e){return typeof w!=E&&w.event.triggered!==e.type?w.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(C)||[""]).length;l--;)d=f=(p=Ne.exec(e[l])||[])[1],p=(p[2]||"").split(".").sort(),d&&(c=w.event.special[d]||{},d=(r?c.delegateType:c.bindType)||d,c=w.event.special[d]||{},f=w.extend({type:d,origType:f,data:a,handler:n,guid:n.guid,selector:r,needsContext:r&&w.expr.match.needsContext.test(r),namespace:p.join(".")},o),(u=s[d])||((u=s[d]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(t,a,p,i))||t.addEventListener&&t.addEventListener(d,i,{capture:!1,passive:-1<d.indexOf("touch")&&-1<d.indexOf("scroll")}),c.add&&(c.add.call(t,f),f.handler.guid||(f.handler.guid=n.guid)),r?u.splice(u.delegateCount++,0,f):u.push(f),w.event.global[d]=!0)},remove:function(e,t,n,a,r){var o,i,s,l,c,u,d,p,f,h,m,g=b.hasData(e)&&b.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(C)||[""]).length;c--;)if(f=m=(s=Ne.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),f){for(d=w.event.special[f]||{},p=l[f=(a?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=o=p.length;o--;)u=p[o],!r&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||a&&a!==u.selector&&("**"!==a||!u.selector)||(p.splice(o,1),u.selector&&p.delegateCount--,d.remove&&d.remove.call(e,u));i&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,h,g.handle)||w.removeEvent(e,f,g.handle),delete l[f])}else for(f in l)w.event.remove(e,f+t[c],n,a,!0);w.isEmptyObject(l)&&(delete g.handle,b.remove(e,"events"))}},trigger:function(e,t,n,a){var r,o,i,s,l,c,u=[n||y],d=pe.call(e,"type")?e.type:e,p=pe.call(e,"namespace")?e.namespace.split("."):[],f=o=n=n||y;if(3!==n.nodeType&&8!==n.nodeType&&!ke.test(d+w.event.triggered)&&(0<=d.indexOf(".")&&(d=(p=d.split(".")).shift(),p.sort()),s=d.indexOf(":")<0&&"on"+d,(e=e[w.expando]?e:new w.Event(d,"object"==typeof e&&e)).isTrigger=a?2:3,e.namespace=p.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:w.makeArray(t,[e]),c=w.event.special[d]||{},a||!c.trigger||!1!==c.trigger.apply(n,t))){if(!a&&!c.noBubble&&!w.isWindow(n)){for(i=c.delegateType||d,ke.test(i+d)||(f=f.parentNode);f;f=f.parentNode)u.push(f),o=f;o===(n.ownerDocument||y)&&u.push(o.defaultView||o.parentWindow||h)}for(r=0;(f=u[r++])&&!e.isPropagationStopped();)e.type=1<r?i:c.bindType||d,(l=(b.get(f,"events")||{})[e.type]&&b.get(f,"handle"))&&l.apply(f,t),(l=s&&f[s])&&l.apply&&w.acceptData(f)&&(e.result=l.apply(f,t),!1===e.result)&&e.preventDefault();return e.type=d,a||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(u.pop(),t)||!w.acceptData(n)||s&&w.isFunction(n[d])&&!w.isWindow(n)&&((o=n[s])&&(n[s]=null),n[w.event.triggered=d](),w.event.triggered=void 0,o)&&(n[s]=o),e.result}},dispatch:function(e){e=w.event.fix(e);var t,n,a,r,o,i=u.call(arguments),s=(b.get(this,"events")||{})[e.type]||[],l=w.event.special[e.type]||{};if((i[0]=e).delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,e)){for(o=w.event.handlers.call(this,e,s),t=0;(a=o[t++])&&!e.isPropagationStopped();)for(e.currentTarget=a.elem,n=0;(r=a.handlers[n++])&&!e.isImmediatePropagationStopped();)e.namespace_re&&!e.namespace_re.test(r.namespace)||(e.handleObj=r,e.data=r.data,void 0===(r=((w.event.special[r.origType]||{}).handle||r.handler).apply(a.elem,i)))||!1!==(e.result=r)||(e.preventDefault(),e.stopPropagation());return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,a,r,o,i=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!==this;l=l.parentNode||this)if(!0!==l.disabled||"click"!==e.type){for(a=[],n=0;n<s;n++)void 0===a[r=(o=t[n]).selector+" "]&&(a[r]=o.needsContext?0<=w(r,this).index(l):w.find(r,this,null,[l]).length),a[r]&&a.push(o);a.length&&i.push({elem:l,handlers:a})}return s<t.length&&i.push({elem:this,handlers:t.slice(s)}),i},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,a,r=t.button;return null==e.pageX&&null!=t.clientX&&(n=(a=e.target.ownerDocument||y).documentElement,a=a.body,e.pageX=t.clientX+(n&&n.scrollLeft||a&&a.scrollLeft||0)-(n&&n.clientLeft||a&&a.clientLeft||0),e.pageY=t.clientY+(n&&n.scrollTop||a&&a.scrollTop||0)-(n&&n.clientTop||a&&a.clientTop||0)),e.which||void 0===r||(e.which=1&r?1:2&r?3:4&r?2:0),e}},fix:function(e){if(e[w.expando])return e;var t,n,a,r=e.type,o=e,i=this.fixHooks[r];for(i||(this.fixHooks[r]=i=Te.test(r)?this.mouseHooks:Le.test(r)?this.keyHooks:{}),a=i.props?this.props.concat(i.props):this.props,e=new w.Event(o),t=a.length;t--;)e[n=a[t]]=o[n];return e.target||(e.target=y),3===e.target.nodeType&&(e.target=e.target.parentNode),i.filter?i.filter(e,o):e},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==_()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===_()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&w.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(e){return w.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,a){e=w.extend(new w.Event,n,{type:e,isSimulated:!0,originalEvent:{}});a?w.event.trigger(e,null,t):w.event.dispatch.call(t,e),e.isDefaultPrevented()&&n.preventDefault()}},w.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)},w.Event=function(e,t){return this instanceof w.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?n:s):this.type=e,t&&w.extend(this,t),this.timeStamp=e&&e.timeStamp||w.now(),void(this[w.expando]=!0)):new w.Event(e,t)},w.Event.prototype={isDefaultPrevented:s,isPropagationStopped:s,isImmediatePropagationStopped:s,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=n,e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=n,e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=n,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},w.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,r){w.event.special[e]={delegateType:r,bindType:r,handle:function(e){var t,n=e.relatedTarget,a=e.handleObj;return n&&(n===this||w.contains(this,n))||(e.type=a.origType,t=a.handler.apply(this,arguments),e.type=r),t}}}),g.focusinBubbles||w.each({focus:"focusin",blur:"focusout"},function(n,a){function r(e){w.event.simulate(a,e.target,w.event.fix(e),!0)}w.event.special[a]={setup:function(){var e=this.ownerDocument||this,t=b.access(e,a);t||e.addEventListener(n,r,!0),b.access(e,a,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=b.access(e,a)-1;t?b.access(e,a,t):(e.removeEventListener(n,r,!0),b.remove(e,a))}}}),w.fn.extend({on:function(e,t,n,a,r){var o,i;if("object"==typeof e){for(i in"string"!=typeof t&&(n=n||t,t=void 0),e)this.on(i,t,n,e[i],r);return this}if(null==n&&null==a?(a=t,n=t=void 0):null==a&&("string"==typeof t?(a=n,n=void 0):(a=n,n=t,t=void 0)),!1===a)a=s;else if(!a)return this;return 1===r&&(o=a,(a=function(e){return w().off(e),o.apply(this,arguments)}).guid=o.guid||(o.guid=w.guid++)),this.each(function(){w.event.add(this,e,a,n,t)})},one:function(e,t,n,a){return this.on(e,t,n,a,1)},off:function(e,t,n){var a,r;if(e&&e.preventDefault&&e.handleObj)a=e.handleObj,w(e.delegateTarget).off(a.namespace?a.origType+"."+a.namespace:a.origType,a.selector,a.handler);else{if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=s),this.each(function(){w.event.remove(this,e,n,t)});for(r in e)this.off(r,t,e[r])}return this},trigger:function(e,t){return this.each(function(){w.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?w.event.trigger(e,t,n,!0):void 0}}),/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi),Oe=/<([\w:]+)/,Me=/<|&#?\w+;/,Ie=/<(?:script|style|link)/i,De=/checked\s*(?:[^=]|=\s*.checked.)/i,qe=/^$|\/(?:java|ecma)script/i,Fe=/^true\/(.*)/,je=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,$={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};$.optgroup=$.option,$.tbody=$.tfoot=$.colgroup=$.caption=$.thead,$.th=$.td,w.extend({clone:function(e,t,n){var a,r,o,i,s,l,c,u=e.cloneNode(!0),d=w.contains(e.ownerDocument,e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||w.isXMLDoc(e)))for(i=m(u),a=0,r=(o=m(e)).length;a<r;a++)s=o[a],l=i[a],c=void 0,"input"===(c=l.nodeName.toLowerCase())&&Ae.test(s.type)?l.checked=s.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=s.defaultValue);if(t)if(n)for(o=o||m(e),i=i||m(u),a=0,r=o.length;a<r;a++)V(o[a],i[a]);else V(e,u);return 0<(i=m(u,"script")).length&&W(i,!d&&m(e,"script")),u},buildFragment:function(e,t,n,a){for(var r,o,i,s,l,c=t.createDocumentFragment(),u=[],d=0,p=e.length;d<p;d++)if((r=e[d])||0===r)if("object"===w.type(r))w.merge(u,r.nodeType?[r]:r);else if(Me.test(r)){for(o=o||c.appendChild(t.createElement("div")),i=(Oe.exec(r)||["",""])[1].toLowerCase(),o.innerHTML=(i=$[i]||$._default)[1]+r.replace(Pe,"<$1></$2>")+i[2],l=i[0];l--;)o=o.lastChild;w.merge(u,o.childNodes),(o=c.firstChild).textContent=""}else u.push(t.createTextNode(r));for(c.textContent="",d=0;r=u[d++];)if((!a||-1===w.inArray(r,a))&&(s=w.contains(r.ownerDocument,r),o=m(c.appendChild(r),"script"),s&&W(o),n))for(l=0;r=o[l++];)qe.test(r.type||"")&&n.push(r);return c},cleanData:function(e){for(var t,n,a,r,o=w.event.special,i=0;void 0!==(n=e[i]);i++){if(w.acceptData(n)&&(r=n[b.expando])&&(t=b.cache[r])){if(t.events)for(a in t.events)o[a]?w.event.remove(n,a):w.removeEvent(n,a,t.handle);b.cache[r]&&delete b.cache[r]}delete f.cache[n[f.expando]]}}}),w.fn.extend({text:function(e){return p(this,function(e){return void 0===e?w.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||H(this,e).appendChild(e)})},prepend:function(){return this.domManip(arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=H(this,e)).insertBefore(e,t.firstChild)})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,a=e?w.filter(e,this):this,r=0;null!=(n=a[r]);r++)t||1!==n.nodeType||w.cleanData(m(n)),n.parentNode&&(t&&w.contains(n.ownerDocument,n)&&W(m(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(w.cleanData(m(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return w.clone(this,e,t)})},html:function(e){return p(this,function(e){var t=this[0]||{},n=0,a=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ie.test(e)&&!$[(Oe.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(Pe,"<$1></$2>");try{for(;n<a;n++)1===(t=this[n]||{}).nodeType&&(w.cleanData(m(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,w.cleanData(m(this)),t&&t.replaceChild(e,this)}),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(n,a){n=ce.apply([],n);var e,t,r,o,i,s,l=0,c=this.length,u=this,d=c-1,p=n[0],f=w.isFunction(p);if(f||1<c&&"string"==typeof p&&!g.checkClone&&De.test(p))return this.each(function(e){var t=u.eq(e);f&&(n[0]=p.call(this,e,t.html())),t.domManip(n,a)});if(c&&(t=(e=w.buildFragment(n,this[0].ownerDocument,!1,this)).firstChild,1===e.childNodes.length&&(e=t),t)){for(o=(r=w.map(m(e,"script"),B)).length;l<c;l++)i=e,l!==d&&(i=w.clone(i,!0,!0),o)&&w.merge(r,m(i,"script")),a.call(this[l],i,l);if(o)for(s=r[r.length-1].ownerDocument,w.map(r,G),l=0;l<o;l++)i=r[l],qe.test(i.type||"")&&!b.access(i,"globalEval")&&w.contains(s,i)&&(i.src?w._evalUrl&&w._evalUrl(i.src):w.globalEval(i.textContent.replace(je,"")))}return this}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,i){w.fn[e]=function(e){for(var t,n=[],a=w(e),r=a.length-1,o=0;o<=r;o++)t=o===r?this:this.clone(!0),w(a[o])[i](t),ue.apply(n,t.get());return this.pushStack(n)}});function Re(e){return e.ownerDocument.defaultView.getComputedStyle(e,null)}var Ue,_e,He,S,A,L,Be={},Ge=/^margin/,We=new RegExp("^("+a+")(?!px)[a-z%]+$","i");function Ve(){L.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",L.innerHTML="",S.appendChild(A);var e=h.getComputedStyle(L,null);_e="1%"!==e.top,He="4px"===e.width,S.removeChild(A)}S=y.documentElement,A=y.createElement("div"),(L=y.createElement("div")).style&&(L.style.backgroundClip="content-box",L.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===L.style.backgroundClip,A.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",A.appendChild(L),h.getComputedStyle)&&w.extend(g,{pixelPosition:function(){return Ve(),_e},boxSizingReliable:function(){return null==He&&Ve(),He},reliableMarginRight:function(){var e=L.appendChild(y.createElement("div"));return e.style.cssText=L.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",L.style.width="1px",S.appendChild(A),e=!parseFloat(h.getComputedStyle(e,null).marginRight),S.removeChild(A),e}}),w.swap=function(e,t,n,a){var r,o={};for(r in t)o[r]=e.style[r],e.style[r]=t[r];for(r in n=n.apply(e,a||[]),t)e.style[r]=o[r];return n};var ze=/^(none|table(?!-c[ea]).+)/,Ye=new RegExp("^("+a+")(.*)$","i"),Xe=new RegExp("^([+-])=("+a+")","i"),Qe={position:"absolute",visibility:"hidden",display:"block"},Je={letterSpacing:"0",fontWeight:"400"},Ke=["Webkit","O","Moz","ms"];w.extend({cssHooks:{opacity:{get:function(e,t){if(t)return""===(t=l(e,"opacity"))?"1":t}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,a){var r,o,i,s,l;if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style)return s=w.camelCase(t),l=e.style,t=w.cssProps[s]||(w.cssProps[s]=Q(l,s)),i=w.cssHooks[t]||w.cssHooks[s],void 0===n?i&&"get"in i&&void 0!==(r=i.get(e,!1,a))?r:l[t]:("string"===(o=typeof n)&&(r=Xe.exec(n))&&(n=(r[1]+1)*r[2]+parseFloat(w.css(e,t)),o="number"),void(null!=n&&n==n&&("number"!==o||w.cssNumber[s]||(n+="px"),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),i&&"set"in i&&void 0===(n=i.set(e,n,a))||(l[t]=n))))},css:function(e,t,n,a){var r,o=w.camelCase(t);return t=w.cssProps[o]||(w.cssProps[o]=Q(e.style,o)),"normal"===(r=void 0===(r=(o=w.cssHooks[t]||w.cssHooks[o])&&"get"in o?o.get(e,!0,n):r)?l(e,t,a):r)&&t in Je&&(r=Je[t]),(""===n||n)&&(o=parseFloat(r),!0===n||w.isNumeric(o))?o||0:r}}),w.each(["height","width"],function(e,r){w.cssHooks[r]={get:function(e,t,n){return t?ze.test(w.css(e,"display"))&&0===e.offsetWidth?w.swap(e,Qe,function(){return Z(e,r,n)}):Z(e,r,n):void 0},set:function(e,t,n){var a=n&&Re(e);return J(0,t,n?K(e,r,n,"border-box"===w.css(e,"boxSizing",!1,a),a):0)}}}),w.cssHooks.marginRight=X(g.reliableMarginRight,function(e,t){return t?w.swap(e,{display:"inline-block"},l,[e,"marginRight"]):void 0}),w.each({margin:"",padding:"",border:"Width"},function(r,o){w.cssHooks[r+o]={expand:function(e){for(var t=0,n={},a="string"==typeof e?e.split(" "):[e];t<4;t++)n[r+x[t]+o]=a[t]||a[t-2]||a[0];return n}},Ge.test(r)||(w.cssHooks[r+o].set=J)}),w.fn.extend({css:function(e,t){return p(this,function(e,t,n){var a,r,o={},i=0;if(w.isArray(t)){for(a=Re(e),r=t.length;i<r;i++)o[t[i]]=w.css(e,t[i],!1,a);return o}return void 0!==n?w.style(e,t,n):w.css(e,t)},e,t,1<arguments.length)},show:function(){return ee(this,!0)},hide:function(){return ee(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){v(this)?w(this).show():w(this).hide()})}}),((w.Tween=o).prototype={constructor:o,init:function(e,t,n,a,r,o){this.elem=e,this.prop=n,this.easing=r||"swing",this.options=t,this.start=this.now=this.cur(),this.end=a,this.unit=o||(w.cssNumber[n]?"":"px")},cur:function(){var e=o.propHooks[this.prop];return(e&&e.get?e:o.propHooks._default).get(this)},run:function(e){var t=o.propHooks[this.prop];return this.pos=e=this.options.duration?w.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(t&&t.set?t:o.propHooks._default).set(this),this}}).init.prototype=o.prototype,(o.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=w.css(e.elem,e.prop,""))&&"auto"!==t?t:0:e.elem[e.prop]},set:function(e){w.fx.step[e.prop]?w.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[w.cssProps[e.prop]]||w.cssHooks[e.prop])?w.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}}).scrollTop=o.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},w.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},w.fx=o.prototype.init,w.fx.step={};var T,Ze,k,N,et=/^(?:toggle|show|hide)$/,tt=new RegExp("^(?:([+-])=|)("+a+")([a-z%]*)$","i"),nt=/queueHooks$/,at=[function(t,e,n){var a,r,o,i,s,l,c,u=this,d={},p=t.style,f=t.nodeType&&v(t),h=b.get(t,"fxshow");for(a in n.queue||(null==(s=w._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,u.always(function(){u.always(function(){s.unqueued--,w.queue(t,"fx").length||s.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===("none"===(c=w.css(t,"display"))?b.get(t,"olddisplay")||Y(t.nodeName):c))&&"none"===w.css(t,"float")&&(p.display="inline-block"),n.overflow&&(p.overflow="hidden",u.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),e)if(r=e[a],et.exec(r)){if(delete e[a],o=o||"toggle"===r,r===(f?"hide":"show")){if("show"!==r||!h||void 0===h[a])continue;f=!0}d[a]=h&&h[a]||w.style(t,a)}else c=void 0;if(w.isEmptyObject(d))"inline"===("none"===c?Y(t.nodeName):c)&&(p.display=c);else for(a in h?"hidden"in h&&(f=h.hidden):h=b.access(t,"fxshow",{}),o&&(h.hidden=!f),f?w(t).show():u.done(function(){w(t).hide()}),u.done(function(){for(var e in b.remove(t,"fxshow"),d)w.style(t,e,d[e])}),d)i=ne(f?h[a]:0,a,u),a in h||(h[a]=i.start,f&&(i.end=i.start,i.start="width"===a||"height"===a?1:0))}],P={"*":[function(e,t){var n=this.createTween(e,t),a=n.cur(),t=tt.exec(t),r=t&&t[3]||(w.cssNumber[e]?"":"px"),o=(w.cssNumber[e]||"px"!==r&&+a)&&tt.exec(w.css(n.elem,e)),i=1,s=20;if(o&&o[3]!==r)for(r=r||o[3],t=t||[],o=+a||1;w.style(n.elem,e,(o/=i=i||".5")+r),i!==(i=n.cur()/a)&&1!==i&&--s;);return t&&(o=n.start=+o||+a||0,n.unit=r,n.end=t[1]?o+(t[1]+1)*t[2]:+t[2]),n}]};w.Animation=w.extend(ae,{tweener:function(e,t){for(var n,a=0,r=(e=w.isFunction(e)?(t=e,["*"]):e.split(" ")).length;a<r;a++)n=e[a],P[n]=P[n]||[],P[n].unshift(t)},prefilter:function(e,t){t?at.unshift(e):at.push(e)}}),w.speed=function(e,t,n){var a=e&&"object"==typeof e?w.extend({},e):{complete:n||!n&&t||w.isFunction(e)&&e,duration:e,easing:n&&t||t&&!w.isFunction(t)&&t};return a.duration=w.fx.off?0:"number"==typeof a.duration?a.duration:a.duration in w.fx.speeds?w.fx.speeds[a.duration]:w.fx.speeds._default,null!=a.queue&&!0!==a.queue||(a.queue="fx"),a.old=a.complete,a.complete=function(){w.isFunction(a.old)&&a.old.call(this),a.queue&&w.dequeue(this,a.queue)},a},w.fn.extend({fadeTo:function(e,t,n,a){return this.filter(v).css("opacity",0).show().end().animate({opacity:t},e,n,a)},animate:function(t,e,n,a){function r(){var e=ae(this,w.extend({},t),i);(o||b.get(this,"finish"))&&e.stop(!0)}var o=w.isEmptyObject(t),i=w.speed(e,n,a);return r.finish=r,o||!1===i.queue?this.each(r):this.queue(i.queue,r)},stop:function(r,e,o){function i(e){var t=e.stop;delete e.stop,t(o)}return"string"!=typeof r&&(o=e,e=r,r=void 0),e&&!1!==r&&this.queue(r||"fx",[]),this.each(function(){var e=!0,t=null!=r&&r+"queueHooks",n=w.timers,a=b.get(this);if(t)a[t]&&a[t].stop&&i(a[t]);else for(t in a)a[t]&&a[t].stop&&nt.test(t)&&i(a[t]);for(t=n.length;t--;)n[t].elem!==this||null!=r&&n[t].queue!==r||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||w.dequeue(this,r)})},finish:function(i){return!1!==i&&(i=i||"fx"),this.each(function(){var e,t=b.get(this),n=t[i+"queue"],a=t[i+"queueHooks"],r=w.timers,o=n?n.length:0;for(t.finish=!0,w.queue(this,i,[]),a&&a.stop&&a.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===i&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),w.each(["toggle","show","hide"],function(e,a){var r=w.fn[a];w.fn[a]=function(e,t,n){return null==e||"boolean"==typeof e?r.apply(this,arguments):this.animate(i(a,!0),e,t,n)}}),w.each({slideDown:i("show"),slideUp:i("hide"),slideToggle:i("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,a){w.fn[e]=function(e,t,n){return this.animate(a,e,t,n)}}),w.timers=[],w.fx.tick=function(){var e,t=0,n=w.timers;for(T=w.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||w.fx.stop(),T=void 0},w.fx.timer=function(e){w.timers.push(e),e()?w.fx.start():w.timers.pop()},w.fx.interval=13,w.fx.start=function(){Ze=Ze||setInterval(w.fx.tick,w.fx.interval)},w.fx.stop=function(){clearInterval(Ze),Ze=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(a,e){return a=w.fx&&w.fx.speeds[a]||a,this.queue(e=e||"fx",function(e,t){var n=setTimeout(e,a);t.stop=function(){clearTimeout(n)}})},k=y.createElement("input"),N=y.createElement("select"),a=N.appendChild(y.createElement("option")),k.type="checkbox",g.checkOn=""!==k.value,g.optSelected=a.selected,N.disabled=!0,g.optDisabled=!a.disabled,(k=y.createElement("input")).value="t",k.type="radio",g.radioValue="t"===k.value;var rt,O=w.expr.attrHandle,ot=(w.fn.extend({attr:function(e,t){return p(this,w.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){w.removeAttr(this,e)})}}),w.extend({attr:function(e,t,n){var a,r,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return typeof e.getAttribute==E?w.prop(e,t,n):(1===o&&w.isXMLDoc(e)||(t=t.toLowerCase(),a=w.attrHooks[t]||(w.expr.match.bool.test(t)?rt:void 0)),void 0===n?!(a&&"get"in a&&null!==(r=a.get(e,t)))&&null==(r=w.find.attr(e,t))?void 0:r:null!==n?a&&"set"in a&&void 0!==(r=a.set(e,n,t))?r:(e.setAttribute(t,n+""),n):void w.removeAttr(e,t))},removeAttr:function(e,t){var n,a,r=0,o=t&&t.match(C);if(o&&1===e.nodeType)for(;n=o[r++];)a=w.propFix[n]||n,w.expr.match.bool.test(n)&&(e[a]=!1),e.removeAttribute(n)},attrHooks:{type:{set:function(e,t){var n;if(!g.radioValue&&"radio"===t&&w.nodeName(e,"input"))return n=e.value,e.setAttribute("type",t),n&&(e.value=n),t}}}}),rt={set:function(e,t,n){return!1===t?w.removeAttr(e,n):e.setAttribute(n,n),n}},w.each(w.expr.match.bool.source.match(/\w+/g),function(e,t){var o=O[t]||w.find.attr;O[t]=function(e,t,n){var a,r;return n||(r=O[t],O[t]=a,a=null!=o(e,t,n)?t.toLowerCase():null,O[t]=r),a}}),/^(?:input|select|textarea|button)$/i),it=(w.fn.extend({prop:function(e,t){return p(this,w.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[w.propFix[e]||e]})}}),w.extend({propFix:{for:"htmlFor",class:"className"},prop:function(e,t,n){var a,r,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return(1!==o||!w.isXMLDoc(e))&&(t=w.propFix[t]||t,r=w.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(a=r.set(e,n,t))?a:e[t]=n:r&&"get"in r&&null!==(a=r.get(e,t))?a:e[t]},propHooks:{tabIndex:{get:function(e){return e.hasAttribute("tabindex")||ot.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),g.optSelected||(w.propHooks.selected={get:function(e){e=e.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){w.propFix[this.toLowerCase()]=this}),/[\t\r\n\f]/g),st=(w.fn.extend({addClass:function(t){var e,n,a,r,o,i,s="string"==typeof t&&t,l=0,c=this.length;if(w.isFunction(t))return this.each(function(e){w(this).addClass(t.call(this,e,this.className))});if(s)for(e=(t||"").match(C)||[];l<c;l++)if(a=1===(n=this[l]).nodeType&&(n.className?(" "+n.className+" ").replace(it," "):" ")){for(o=0;r=e[o++];)a.indexOf(" "+r+" ")<0&&(a+=r+" ");i=w.trim(a),n.className!==i&&(n.className=i)}return this},removeClass:function(t){var e,n,a,r,o,i,s=0===arguments.length||"string"==typeof t&&t,l=0,c=this.length;if(w.isFunction(t))return this.each(function(e){w(this).removeClass(t.call(this,e,this.className))});if(s)for(e=(t||"").match(C)||[];l<c;l++)if(a=1===(n=this[l]).nodeType&&(n.className?(" "+n.className+" ").replace(it," "):"")){for(o=0;r=e[o++];)for(;0<=a.indexOf(" "+r+" ");)a=a.replace(" "+r+" "," ");i=t?w.trim(a):"",n.className!==i&&(n.className=i)}return this},toggleClass:function(r,t){var o=typeof r;return"boolean"==typeof t&&"string"==o?t?this.addClass(r):this.removeClass(r):this.each(w.isFunction(r)?function(e){w(this).toggleClass(r.call(this,e,this.className,t),t)}:function(){if("string"==o)for(var e,t=0,n=w(this),a=r.match(C)||[];e=a[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else o!=E&&"boolean"!=o||(this.className&&b.set(this,"__className__",this.className),this.className=!this.className&&!1!==r&&b.get(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,a=this.length;n<a;n++)if(1===this[n].nodeType&&0<=(" "+this[n].className+" ").replace(it," ").indexOf(t))return!0;return!1}}),/\r/g),lt=(w.fn.extend({val:function(t){var n,e,a,r=this[0];return arguments.length?(a=w.isFunction(t),this.each(function(e){1===this.nodeType&&(null==(e=a?t.call(this,e,w(this).val()):t)?e="":"number"==typeof e?e+="":w.isArray(e)&&(e=w.map(e,function(e){return null==e?"":e+""})),(n=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,e,"value")||(this.value=e))})):r?(n=w.valHooks[r.type]||w.valHooks[r.nodeName.toLowerCase()])&&"get"in n&&void 0!==(e=n.get(r,"value"))?e:"string"==typeof(e=r.value)?e.replace(st,""):null==e?"":e:void 0}}),w.extend({valHooks:{option:{get:function(e){var t=w.find.attr(e,"value");return null!=t?t:w.trim(w.text(e))}},select:{get:function(e){for(var t,n=e.options,a=e.selectedIndex,r="select-one"===e.type||a<0,o=r?null:[],i=r?a+1:n.length,s=a<0?i:r?a:0;s<i;s++)if(!(!(t=n[s]).selected&&s!==a||(g.optDisabled?t.disabled:null!==t.getAttribute("disabled"))||t.parentNode.disabled&&w.nodeName(t.parentNode,"optgroup"))){if(t=w(t).val(),r)return t;o.push(t)}return o},set:function(e,t){for(var n,a,r=e.options,o=w.makeArray(t),i=r.length;i--;)((a=r[i]).selected=0<=w.inArray(a.value,o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),w.each(["radio","checkbox"],function(){w.valHooks[this]={set:function(e,t){return w.isArray(t)?e.checked=0<=w.inArray(w(e).val(),t):void 0}},g.checkOn||(w.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),w.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,n){w.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}}),w.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,a){return this.on(t,e,n,a)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),w.now()),ct=/\?/;w.parseJSON=function(e){return JSON.parse(e+"")},w.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||w.error("Invalid XML: "+e),t};var M,I,ut=/#.*$/,dt=/([?&])_=[^&]*/,pt=/^(.*?):[ \t]*([^\r\n]*)$/gm,ft=/^(?:GET|HEAD)$/,ht=/^\/\//,mt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,gt={},yt={},vt="*/".concat("*");try{I=location.href}catch(e){(I=y.createElement("a")).href="",I=I.href}M=mt.exec(I.toLowerCase())||[],w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:I,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(M[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":vt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":w.parseJSON,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?ie(ie(e,w.ajaxSettings),t):ie(w.ajaxSettings,e)},ajaxPrefilter:re(gt),ajaxTransport:re(yt),ajax:function(e,t){function n(e,t,n,a){var r,o,i,s=t;2!==b&&(b=2,d&&clearTimeout(d),l=void 0,u=a||"",x.readyState=0<e?4:0,a=200<=e&&e<300||304===e,n&&(i=((e,t,n)=>{for(var a,r,o,i,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===a&&(a=e.mimeType||t.getResponseHeader("Content-Type"));if(a)for(r in s)if(s[r]&&s[r].test(a)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){o=r;break}i=i||r}o=o||i}return o?(o!==l[0]&&l.unshift(o),n[o]):void 0})(f,x,n)),i=((e,t,n,a)=>{var r,o,i,s,l,c={},u=e.dataTypes.slice();if(u[1])for(i in e.converters)c[i.toLowerCase()]=e.converters[i];for(o=u.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&a&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(i=c[l+" "+o]||c["* "+o]))for(r in c)if(s=r.split(" "),s[1]===o&&(i=c[l+" "+s[0]]||c["* "+s[0]])){!0===i?i=c[r]:!0!==c[r]&&(o=s[0],u.unshift(s[1]));break}if(!0!==i)if(i&&e.throws)t=i(t);else try{t=i(t)}catch(e){return{state:"parsererror",error:i?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}})(f,i,x,a),a?(f.ifModified&&((n=x.getResponseHeader("Last-Modified"))&&(w.lastModified[c]=n),n=x.getResponseHeader("etag"))&&(w.etag[c]=n),204===e||"HEAD"===f.type?s="nocontent":304===e?s="notmodified":(s=i.state,r=i.data,a=!(o=i.error))):(o=s,(e||!s)&&(s="error",e<0)&&(e=0)),x.status=e,x.statusText=(t||s)+"",a?g.resolveWith(h,[r,s,x]):g.rejectWith(h,[x,s,o]),x.statusCode(v),v=void 0,p&&m.trigger(a?"ajaxSuccess":"ajaxError",[x,f,a?r:o]),y.fireWith(h,[x,s]),p)&&(m.trigger("ajaxComplete",[x,f]),--w.active||w.event.trigger("ajaxStop"))}"object"==typeof e&&(t=e,e=void 0);var l,c,u,a,d,p,r,f=w.ajaxSetup({},t=t||{}),h=f.context||f,m=f.context&&(h.nodeType||h.jquery)?w(h):w.event,g=w.Deferred(),y=w.Callbacks("once memory"),v=f.statusCode||{},o={},i={},b=0,s="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!a)for(a={};t=pt.exec(u);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?u:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=i[n]=i[n]||e,o[e]=t),this},overrideMimeType:function(e){return b||(f.mimeType=e),this},statusCode:function(e){if(e)if(b<2)for(var t in e)v[t]=[v[t],e[t]];else x.always(e[x.status]);return this},abort:function(e){e=e||s;return l&&l.abort(e),n(0,e),this}};if(g.promise(x).complete=y.add,x.success=x.done,x.error=x.fail,f.url=((e||f.url||I)+"").replace(ut,"").replace(ht,M[1]+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=w.trim(f.dataType||"*").toLowerCase().match(C)||[""],null==f.crossDomain&&(e=mt.exec(f.url.toLowerCase()),f.crossDomain=!(!e||e[1]===M[1]&&e[2]===M[2]&&(e[3]||("http:"===e[1]?"80":"443"))===(M[3]||("http:"===M[1]?"80":"443")))),f.data&&f.processData&&"string"!=typeof f.data&&(f.data=w.param(f.data,f.traditional)),oe(gt,f,t,x),2!==b){for(r in(p=f.global)&&0==w.active++&&w.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!ft.test(f.type),c=f.url,f.hasContent||(f.data&&(c=f.url+=(ct.test(c)?"&":"?")+f.data,delete f.data),!1===f.cache&&(f.url=dt.test(c)?c.replace(dt,"$1_="+lt++):c+(ct.test(c)?"&":"?")+"_="+lt++)),f.ifModified&&(w.lastModified[c]&&x.setRequestHeader("If-Modified-Since",w.lastModified[c]),w.etag[c])&&x.setRequestHeader("If-None-Match",w.etag[c]),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&x.setRequestHeader("Content-Type",f.contentType),x.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+vt+"; q=0.01":""):f.accepts["*"]),f.headers)x.setRequestHeader(r,f.headers[r]);if(f.beforeSend&&(!1===f.beforeSend.call(h,x,f)||2===b))return x.abort();for(r in s="abort",{success:1,error:1,complete:1})x[r](f[r]);if(l=oe(yt,f,t,x)){x.readyState=1,p&&m.trigger("ajaxSend",[x,f]),f.async&&0<f.timeout&&(d=setTimeout(function(){x.abort("timeout")},f.timeout));try{b=1,l.send(o,n)}catch(e){if(!(b<2))throw e;n(-1,e)}}else n(-1,"No Transport")}return x},getJSON:function(e,t,n){return w.get(e,t,n,"json")},getScript:function(e,t){return w.get(e,void 0,t,"script")}}),w.each(["get","post"],function(e,r){w[r]=function(e,t,n,a){return w.isFunction(t)&&(a=a||n,n=t,t=void 0),w.ajax({url:e,type:r,dataType:a,data:t,success:n})}}),w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){w.fn[t]=function(e){return this.on(t,e)}}),w._evalUrl=function(e){return w.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},w.fn.extend({wrapAll:function(t){var e;return w.isFunction(t)?this.each(function(e){w(this).wrapAll(t.call(this,e))}):(this[0]&&(e=w(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(n){return this.each(w.isFunction(n)?function(e){w(this).wrapInner(n.call(this,e))}:function(){var e=w(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=w.isFunction(t);return this.each(function(e){w(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(){return this.parent().each(function(){w.nodeName(this,"body")||w(this).replaceWith(this.childNodes)}).end()}}),w.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0},w.expr.filters.visible=function(e){return!w.expr.filters.hidden(e)};var bt=/%20/g,xt=/\[\]$/,wt=/\r?\n/g,Ct=/^(?:submit|button|image|reset|file)$/i,Et=/^(?:input|select|textarea|keygen)/i,$t=(w.param=function(e,t){function n(e,t){t=w.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)}var a,r=[];if(void 0===t&&(t=w.ajaxSettings&&w.ajaxSettings.traditional),w.isArray(e)||e.jquery&&!w.isPlainObject(e))w.each(e,function(){n(this.name,this.value)});else for(a in e)!function n(a,e,r,o){if(w.isArray(e))w.each(e,function(e,t){r||xt.test(a)?o(a,t):n(a+"["+("object"==typeof t?e:"")+"]",t,r,o)});else if(r||"object"!==w.type(e))o(a,e);else for(var t in e)n(a+"["+t+"]",e[t],r,o)}(a,e[a],t,n);return r.join("&").replace(bt,"+")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=w.prop(this,"elements");return e?w.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!w(this).is(":disabled")&&Et.test(this.nodeName)&&!Ct.test(e)&&(this.checked||!Ae.test(e))}).map(function(e,t){var n=w(this).val();return null==n?null:w.isArray(n)?w.map(n,function(e){return{name:t.name,value:e.replace(wt,"\r\n")}}):{name:t.name,value:n.replace(wt,"\r\n")}}).get()}}),w.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(e){}},0),St={},At={0:200,1223:204},D=w.ajaxSettings.xhr(),Lt=(h.ActiveXObject&&w(h).on("unload",function(){for(var e in St)St[e]()}),g.cors=!!D&&"withCredentials"in D,g.ajax=D=!!D,w.ajaxTransport(function(o){var i;return g.cors||D&&!o.crossDomain?{send:function(e,t){var n,a=o.xhr(),r=++$t;if(a.open(o.type,o.url,o.async,o.username,o.password),o.xhrFields)for(n in o.xhrFields)a[n]=o.xhrFields[n];for(n in o.mimeType&&a.overrideMimeType&&a.overrideMimeType(o.mimeType),o.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)a.setRequestHeader(n,e[n]);i=function(e){return function(){i&&(delete St[r],i=a.onload=a.onerror=null,"abort"===e?a.abort():"error"===e?t(a.status,a.statusText):t(At[a.status]||a.status,a.statusText,"string"==typeof a.responseText?{text:a.responseText}:void 0,a.getAllResponseHeaders()))}},a.onload=i(),a.onerror=i("error"),i=St[r]=i("abort");try{a.send(o.hasContent&&o.data||null)}catch(e){if(i)throw e}},abort:function(){i&&i()}}:void 0}),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return w.globalEval(e),e}}}),w.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),w.ajaxTransport("script",function(n){var a,r;if(n.crossDomain)return{send:function(e,t){a=w("<script>").prop({async:!0,charset:n.scriptCharset,src:n.url}).on("load error",r=function(e){a.remove(),r=null,e&&t("error"===e.type?404:200,e.type)}),y.head.appendChild(a[0])},abort:function(){r&&r()}}}),[]),Tt=/(=)\?(?=&|$)|\?\?/,kt=(w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Lt.pop()||w.expando+"_"+lt++;return this[e]=!0,e}}),w.ajaxPrefilter("json jsonp",function(e,t,n){var a,r,o,i=!1!==e.jsonp&&(Tt.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Tt.test(e.data)&&"data");return i||"jsonp"===e.dataTypes[0]?(a=e.jsonpCallback=w.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,i?e[i]=e[i].replace(Tt,"$1"+a):!1!==e.jsonp&&(e.url+=(ct.test(e.url)?"&":"?")+e.jsonp+"="+a),e.converters["script json"]=function(){return o||w.error(a+" was not called"),o[0]},e.dataTypes[0]="json",r=h[a],h[a]=function(){o=arguments},n.always(function(){h[a]=r,e[a]&&(e.jsonpCallback=t.jsonpCallback,Lt.push(a)),o&&w.isFunction(r)&&r(o[0]),o=r=void 0}),"script"):void 0}),w.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||y;var a=ye.exec(e),n=!n&&[];return a?[t.createElement(a[1])]:(a=w.buildFragment([e],t,n),n&&n.length&&w(n).remove(),w.merge([],a.childNodes))},w.fn.load),Nt=(w.fn.load=function(e,t,n){var a,r,o,i,s;return"string"!=typeof e&&kt?kt.apply(this,arguments):(i=this,0<=(s=e.indexOf(" "))&&(a=w.trim(e.slice(s)),e=e.slice(0,s)),w.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),0<i.length&&w.ajax({url:e,type:r,dataType:"html",data:t}).done(function(e){o=arguments,i.html(a?w("<div>").append(w.parseHTML(e)).find(a):e)}).complete(n&&function(e,t){i.each(n,o||[e.responseText,t,e])}),this)},w.expr.filters.animated=function(t){return w.grep(w.timers,function(e){return t===e.elem}).length},h.document.documentElement),Pt=(w.offset={setOffset:function(e,t,n){var a,r,o,i,s=w.css(e,"position"),l=w(e),c={};"static"===s&&(e.style.position="relative"),o=l.offset(),a=w.css(e,"top"),i=w.css(e,"left"),s=("absolute"===s||"fixed"===s)&&-1<(a+i).indexOf("auto")?(r=(s=l.position()).top,s.left):(r=parseFloat(a)||0,parseFloat(i)||0),null!=(t=w.isFunction(t)?t.call(e,n,o):t).top&&(c.top=t.top-o.top+r),null!=t.left&&(c.left=t.left-o.left+s),"using"in t?t.using.call(e,c):l.css(c)}},w.fn.extend({offset:function(t){var e,n,a,r;return arguments.length?void 0===t?this:this.each(function(e){w.offset.setOffset(this,t,e)}):(a={top:0,left:0},(r=(n=this[0])&&n.ownerDocument)?(e=r.documentElement,w.contains(e,n)?(typeof n.getBoundingClientRect!=E&&(a=n.getBoundingClientRect()),n=se(r),{top:a.top+n.pageYOffset-e.clientTop,left:a.left+n.pageXOffset-e.clientLeft}):a):void 0)},position:function(){var e,t,n,a;if(this[0])return n=this[0],a={top:0,left:0},"fixed"===w.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),(a=w.nodeName(e[0],"html")?a:e.offset()).top+=w.css(e[0],"borderTopWidth",!0),a.left+=w.css(e[0],"borderLeftWidth",!0)),{top:t.top-a.top-w.css(n,"marginTop",!0),left:t.left-a.left-w.css(n,"marginLeft",!0)}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||Nt;e&&!w.nodeName(e,"html")&&"static"===w.css(e,"position");)e=e.offsetParent;return e||Nt})}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var o="pageYOffset"===r;w.fn[t]=function(e){return p(this,function(e,t,n){var a=se(e);return void 0===n?a?a[r]:e[t]:void(a?a.scrollTo(o?h.pageXOffset:n,o?n:h.pageYOffset):e[t]=n)},t,e,arguments.length,null)}}),w.each(["top","left"],function(e,n){w.cssHooks[n]=X(g.pixelPosition,function(e,t){return t?(t=l(e,n),We.test(t)?w(e).position()[n]+"px":t):void 0})}),w.each({Height:"height",Width:"width"},function(o,i){w.each({padding:"inner"+o,content:i,"":"outer"+o},function(a,e){w.fn[e]=function(e,t){var n=arguments.length&&(a||"boolean"!=typeof e),r=a||(!0===e||!0===t?"margin":"border");return p(this,function(e,t,n){var a;return w.isWindow(e)?e.document.documentElement["client"+o]:9===e.nodeType?(a=e.documentElement,Math.max(e.body["scroll"+o],a["scroll"+o],e.body["offset"+o],a["offset"+o],a["client"+o])):void 0===n?w.css(e,t,r):w.style(e,t,n,r)},i,n?e:void 0,n,null)}})}),w.fn.size=function(){return this.length},w.fn.andSelf=w.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return w}),h.jQuery),Ot=h.$;return w.noConflict=function(e){return h.$===w&&(h.$=Ot),e&&h.jQuery===w&&(h.jQuery=Pt),w},typeof q==E&&(h.jQuery=h.$=w),w});var _agoraMsgDelay=null;function ShowAlert$1(e,t,n,a,r,o,i,s){_showAlert(e,t,n,a,r||!0,o,i,s)}function _showAlert(e,t,n,a,r,o,i,s){$("body").addClass("alert_box_loaded");var l=$("div#agoraAlertMessageBox");(null==l||l.length<1)&&(l=$("<div>").attr("id","agoraAlertMessageBox").addClass(n).html('<div class="message-body"><span id="msg" class="msg"></span><div id="btn_ok"></div><div id="btn_close"></div></div>'),$(l).prependTo("body")),$(l).attr("class",""),$(l).addClass(n),$(l).show(),$(l).find("span#msg").html(e),s||$(l).find("div#btn_close").html('<a class="closeBtn right" href="javascript:void(0);" onclick="javascript:CloseAlert();"><i class="fa fa-times-circle"></i></a>'),o&&$(l).find("div#btn_ok").html("<a "+(isNotNullOrZero(i)?'href="'+i+'"':'href="javascript:void(0);" onclick="javascript:CloseAlert();"')+' title="Close" class="mdl-button mdl-button--primary mdl-button--raised mdl-js-button mdl-js-ripple-effect" style="align-content: right;">Ok</a>'),clearTimeout(_agoraMsgDelay),r&&(null==t&&(t=4e3),_agoraMsgDelay=setTimeout(function(){CloseAlert()},t))}function CloseAlert(){$("body").removeClass("alert_box_loaded"),$("div#agoraAlertMessageBox").hide();try{$("body").hasClass("is-busy")&&$("body").removeClass("is-busy")}catch(e){}}function RecallCkeIFrame(){$("img.cke_iframe").each(function(){$(this).replaceWith(unescape($(this).attr("data-cke-realelement")))})}function EnableNearBySearch(e,n,a,r,t){$(e).each(function(){$(this).click(function(){navigator.geolocation?navigator.geolocation.getCurrentPosition(function(e){var t=e.coords.latitude.toString().replace("-","_"),e=e.coords.longitude.toString().replace("-","_");location.href=n+"/rlat-"+t+"/rlon-"+e+"/rad-"+r+a},function(e){0==e.message.indexOf("Only secure origins are allowed")?alert("Your browser does not support this feature"):1==e.code?alert("Permission denied to access geolocation"):(2!=e.code&&e.code,alert("Your geolocation is not available"));location.href=t},{timeout:2e4}):alert("Geolocation functionality not available")})})}function BackToTop(e){e=$(e).closest("[data-back-to-top-container]").offset();null!=e?$("html,body").animate({scrollTop:e.top},700):$("html,body").animate({scrollTop:0},700)}function TopToBottom(e){$("html,body").animate({scrollTop:$(window).height()-$("#agora-layout-header").height()},700)}function EnableGoogleEventTracking(){$(document).on("click","[data-ga-track]",null,function(){try{GoogleAnalyticLogEvent($(this).data("ga-track"))}catch(e){}})}function GoogleAnalyticLogEvent(e){if(null!=ga&&"undefined"!=typeof ga){var t=e.split(",");switch(t.length){case 3:ga("send","event",t[0],t[1],t[2]);break;case 2:ga("send","event",t[0],t[1])}}}function EnableStickyHeader(t){function e(){var e=$(window).scrollTop();t<e?r.addClass("scroll"):r.removeClass("scroll").removeClass("scroll-down").removeClass("scroll-up"),e<a&&r.addClass("scroll-up").removeClass("scroll-down"),a<e&&r.addClass("scroll-down").removeClass("scroll-up"),a=e}var n,a,r;null==t&&(t=0),n=$("body"),a=0,r=$(n),$(window).on("scroll",e),e()}function CloseAgoraDropDownOnBodyClick(){$(document).on("reset",".agora-dropdown",null,function(){try{var e=$(this).children("input").get(0);e.checked&&(e.checked=!1)}catch(e){}}),$("body").on("click",function(e){try{var t,n=$(e.target);n.is("input")||0==$(document).find(n).length||(0==(t=n.closest(".agora-dropdown")).length?$(".agora-dropdown"):t.hasClass("actions")&&!n.hasClass("agora-dropdown-handle")&&0<t.children("input:checked").length?t:$(".agora-dropdown").not(t)).trigger("reset")}catch(e){}})}function MdlReloadControlState(e,t,n){null==n&&(n=!1),$this=e,$parent=t;var a=$("#"+$parent.attr("data-search-partner")),r=$("#"+$parent.attr("data-search-value-bind")),o=$("#"+$parent.attr("data-search-view"));switch($parent.attr("data-search")){case"SelectBox":try{$parent.parent().find("[data-search-enable-for]").each(function(){$(this).addClass("mdl-cell--hide"),$(this).find("input:checkbox").each(function(){n||($(this).removeAttr("checked"),0<$(this).closest(".mdl-js-checkbox").length&&$(this).closest(".mdl-js-checkbox")[0].MaterialCheckbox.uncheck())}),$(this).find("select option").each(function(){$(this).removeAttr("selected"),$(this).closest(".mdl-js-selectfield")[0].MaterialSelectfield.mdlDowngrade_()})})}catch(e){console.log(e.message)}$('[data-search-enable-for="'+$parent.val()+'"]').removeClass("mdl-cell--hide"),o.html($parent.attr("data-search-name-label")+" ("+$parent.parent().find('[data-search-enable-for="'+$parent.val()+'"]').find("input[type=checkbox]:checked").length+")");break;case"group":var s=$this.closest("[data-search-group]"),o=$("#"+s.attr("data-search-view")),l=s.find('[data-search="group"] input[type=checkbox]:checked').length,c={};s.find('[data-search="group"] [data-type="dropdown"]').each(function(){var e=$(this);""!=e.val()&&(e.data("default-item"),1)&&e.val()!=e.data("default-item")&&l++}),s.find('[data-search="group"] input[type=text]').each(function(){var e=$(this),t=e.attr("urlidentifier");isNotNullOrZero(e.val())&&void 0===c[t]&&(c[t]=l++)}),s.find('[data-search="group"] input[type=hidden][onesearchidentifier]').each(function(){var e=$(this),t=e.attr("onesearchidentifier");isNotNullOrZero(e.val())&&void 0===c[t]&&(c[t]=l++)}),o.html(s.attr("data-search-name-label")+" ("+l+")");break;case"checkList":try{null!=$parent.attr("data-search-child")&&"true"==$parent.attr("data-search-child")&&0<$parent.parents().find('[data-search-parent="true"]').length?o.html($parent.attr("data-search-name-label")+" ("+$parent.parent().find("input[type=checkbox]:checked").length+")"):o.html($parent.attr("data-search-name-label")+" ("+$parent.find("input[type=checkbox]:checked").length+")")}catch(e){console.log(e.message),o.html($parent.attr("data-search-name-label")+" ("+$parent.find("input[type=checkbox]:checked").length+")")}break;case"singleItem":if(0<$this.length){$parent.children().removeClass("select");try{var u=$parent.attr("data-search-name-label-position"),d=null!=typeof $parent.attr("data-select")&&null!=$parent.attr("data-select")&&""!=$parent.attr("data-select")?$parent.attr("data-select"):"";void 0!==u&&!1!==u&&"left"==u?"label"==d?(o.html($parent.attr("data-search-name-label")+$this.attr("label")),o.attr("data-selected-value",$this.attr("value"))):o.html($parent.attr("data-search-name-label")+$this.attr("value")):"label"==d?(o.html($this.attr("label")+$parent.attr("data-search-name-label")),o.attr("data-selected-value",$this.attr("value"))):o.html($this.attr("value")+$parent.attr("data-search-name-label"));try{var p=$parent.attr("data-search-name-label-showCountOnly");void 0!==p&&0!=p&&o.html($parent.attr("data-search-name-label")+" ("+$this.length+")")}catch(e){console.log(e.message)}try{var f=$parent.attr("data-search-name-label-skip-for").split(",");for(i=0;i<f.length;++i)null!=typeof f[i]&&null!=f[i]&&f[i]==$this.attr("value")&&o.html($this.attr("value"))}catch(e){console.log(e.message)}}catch(e){o.html($this.attr("value")+$parent.attr("data-search-name-label"))}$this.addClass("select"),IsNotNull($this.attr("value"))?r.attr("value",$this.attr("value")):r.attr("value","")}break;case"oneSearch":o.html($this.attr("data-search-name-label")+" ("+$(".multiselect-context .agora-onesearch-multi-sel-item-cont").length+")");break;case"range":a.removeClass("s-d-n"),$parent.addClass("s-d-n"),0<$this.length&&(IsNotNull($this.attr("value"))?r.val($this.attr("value")):r.val("")),0<r.closest(".mdl-js-textfield").length&&r.closest(".mdl-js-textfield").get(0).MaterialTextfield&&r.closest(".mdl-js-textfield").get(0).MaterialTextfield.checkDirty(),o.html(BindRangeView($parent))}}function BindRangeView(i){var e=new getMinMax(i);if(IsNotNull(e.Min)&&IsNotNull(e.Max)&&parseInt(e.Min)>parseInt(e.Max))return alert("Minimum value should not exceed the maximum value"),$("#"+i.attr("data-search-value-bind")).attr("value",""),$("#"+$("#"+i.attr("data-search-partner")).attr("data-search-value-bind")).attr("value",""),i.attr("data-search-name-label");switch($("#"+i.attr("data-search-value-bind")).attr("operation")){case"min":var t=e.Min;if(void 0===(o=$("#"+i.attr("data-search-partner"))).data("is-init")&&(o.data("init-value",o.html()),o.data("is-init",!0)),IsNotNull(t)){o.empty();var n=(l=$("#"+i.attr("data-search-partner")).is("select"))?"option":"li";l&&o.append('<option value=""></option>');for(var a=0;a<5;++a)switch(i.attr("data-search-type")){case"price":var r=((e,t)=>{try{var n=$(t).data("stage"),a=$(t).data("min-value"),r="bed"==i.attr("data-search-type")||"bath"==i.attr("data-search-type")?1:1e6,o="bed"==i.attr("data-search-type")||"bath"==i.attr("data-search-type")?1:1e5;try{isNullOrEmpty$1(n)||(o=parseInt(n,10)),void 0!==r&&null!=r&&""!=r&&(r=parseInt(a,10))}catch(e){}return"bed"==i.attr("data-search-type")||"bath"==i.attr("data-search-type")?1:parseInt(e)<r?25e3:parseInt(e)<10*r?5e4:o}catch(e){}return 1e5})(t,i),t=p(t,r);t=parseInt(t)+r,o.append("<"+n+' value="'+t+'" tabindex="22"><span>$'+t.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,")+"</span></"+n+">");break;case"year":t=parseInt(t)+5,o.append("<"+n+' value="'+t+'" tabindex="22"><span>'+t+"</span></"+n+">");break;case"bed":case"bath":t=parseInt(t)+1,o.append("<"+n+' value="'+t+'" tabindex="22"><span>'+t+"</span></"+n+">");break;default:isNotNullOrZero(i.attr("data-default-increment"))&&(t=parseInt(t)+parseInt(i.attr("data-default-increment")),o.append("<"+n+' value="'+t+'" tabindex="22"><span>'+t+"</span></"+n+">"))}o.append("<"+n+' value="0" tabindex="22"><span>Any</span></'+n+">")}else void 0!==o.data("is-init")&&1==o.data("is-init")&&o.html(o.data("init-value"));break;case"max":var o,s=e.Max;if(void 0===(o=$("#"+i.attr("data-search-partner"))).data("is-init")&&(o.data("init-value",o.html()),o.data("is-init",!0)),IsNotNull(s)){o.empty();for(var l,c,n=(l=$("#"+i.attr("data-search-partner")).is("select"))?"option":"li",u=(l&&o.append('<option value=""></option>'),((e,t)=>{try{var n=$(t).data("stage"),a="bed"==i.attr("data-search-type")||"bath"==i.attr("data-search-type")?1:1e5;try{isNullOrEmpty$1(n)||(a=parseInt(n,10))}catch(e){}return"bed"==i.attr("data-search-type")||"bath"==i.attr("data-search-type")?1:parseInt(e)<1e5?1e4:parseInt(e)<1e6?5e4:a}catch(e){}return 1e5})(s,i)),s=p(s,u),a=0;a<5;++a)switch(i.attr("data-search-type")){case"price":0<(s=parseInt(s)-u)&&o.prepend("<"+n+' value="'+s+'" tabindex="22"><span>$'+s.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,")+"</span></"+n+">");break;case"year":0<(s=parseInt(s)-5)&&o.append("<"+n+' value="'+s+'" tabindex="22"><span>'+s+"</span></"+n+">");break;case"bed":case"bath":0<(s=parseInt(s)-1)&&o.append("<"+n+' value="'+s+'" tabindex="22"><span>'+s+"</span></"+n+">");break;default:isNotNullOrZero(i.attr("data-default-decrement"))&&(isNullOrEmpty$1(c)&&(s=e.Max,c="Yes"),0<(s=parseInt(s)-parseInt(i.attr("data-default-decrement"))))&&o.prepend("<"+n+' value="'+s+'" tabindex="22"><span>'+s+"</span></"+n+">")}o.prepend("<"+n+' value="0" tabindex="22"><span>Any</span></'+n+">")}else void 0!==o.data("is-init")&&1==o.data("is-init")&&o.html(o.data("init-value"))}return"price"!==i.attr("data-search-type")?IsNotNull(e.Min)&&IsNotNull(e.Max)?e.Min+"-"+e.Max:IsNotNull(e.Min)&&!IsNotNull(e.Max)?e.Min+"+":!IsNotNull(e.Min)&&IsNotNull(e.Max)?"<"+e.Max:i.attr("data-search-name-label"):IsNotNull(e.Min)&&IsNotNull(e.Max)?d(e.Min)+"-"+d(e.Max):IsNotNull(e.Min)&&!IsNotNull(e.Max)?d(e.Min)+"+":!IsNotNull(e.Min)&&IsNotNull(e.Max)?"<"+d(e.Max):i.attr("data-search-name-label");function d(e){console.log("Formatt : "+e);try{var t=null!=e&&""!=e?e:"0";return t=1e6<=e?"$"+(t/1e6).toFixed(2).replace(/\.?0+$/,"")+"M":1e3<=e?"$"+(t/1e3).toFixed(2).replace(/\.?0+$/,"")+"K":"$"+t.replace(/\.0+$/,"")}catch(e){}return"0"}function p(e,t){try{return(parseInt(e)-parseInt(e)%t).toString()}catch(e){}return e}}function getMinMax(e){var t=0,n=0;switch($("#"+e.attr("data-search-value-bind")).attr("operation")){case"min":t=$("#"+e.attr("data-search-value-bind")).val(),n=$("#"+$("#"+e.attr("data-search-partner")).attr("data-search-value-bind")).val();break;case"max":t=$("#"+$("#"+e.attr("data-search-partner")).attr("data-search-value-bind")).val(),n=$("#"+e.attr("data-search-value-bind")).val()}return{Min:t,Max:n}}function OnClassBehaviorChange(e,t){IsNullorEmpty($(e).attr("oldClassName"))||$(e).attr("oldClassName")==$(e).attr("class")||t(),$(e).attr("oldClassName",$(e).attr("class")),setTimeout(function(){OnClassBehaviorChange(e,t)},100)}function AnimatePlaceholderText(e,t,n){var a=t;0==n&&(a=e.attr("placeholder"),e.attr("placeholder","")),n!=a.length&&setTimeout(function(){e.attr("placeholder",a.substr(0,++n)),AnimatePlaceholderText(e,a,n)},150)}function AddReadMore(e,t,n){var a=e,r=t,o=n;$(".addReadMore").each(function(){var e;$(this).find(".firstSec").length||(e=$(this).text()).length>a&&(e=e.substring(0,a)+"<span class='SecSec'>"+e.substring(a,e.length)+"</span><span class='readMore' title='Click to Show More'>"+r+"</span><span class='readLess' title='Click to Show Less'>"+o+"</span>",$(this).html(e))}),$(document).on("click",".readMore,.readLess",function(){$(this).closest(".addReadMore").toggleClass("showlesscontent showmorecontent")})}function SignUp(e,t,n,a,r,o){e=GetFormXml($("#"+e));null==e||a&&!a(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraAccess.ashx?action=SignUp",data:{contact:e},dataType:"json",success:function(e){switch(e.Number){case 100:null!=r&&r(e.Contact)||(!isNullOrEmpty(t)&&isNullOrEmpty(n)?document.location.replace(t):isNullOrEmpty(t)||isNullOrEmpty(n)||"popup"!=n?isNullOrEmpty(t)&&!isNullOrEmpty(n)&&"stay"==n?(UpdateUserArea(e.UserAreaHtml),ClosePopup()):(ClosePopup(),location.replace((isMultiLingual()?"/"+getLocale():"")+"/dashboard/default.aspx?mode=signUp")):(UpdateUserArea(e.UserAreaHtml),$("#PERFORM_ACTION_TRIGGER").attr("href",t),ClosePopup(),OpenPopup()),$("body").removeClass("restricted-listing"));break;case 1:null==o?alert("Unable to connect to Database!"):o(1,"Please enter a valid Password");break;case 2:null==o?alert("Query execution failure!"):o(2,"Query execution failure!");break;case 9:null==o?alert(e.Message):o(11,e.Message);break;case 10:null==o?alert("Invalid Data. Please retry!"):o(10,"Invalid Data. Please retry!");break;case 11:null==o?alert('The email address you entered is already registered. Please sign in to your existing account or click "Forgot Password" for help.'):o(11,'The email address you entered is already registered. Please sign in to your existing account or click "Forgot Password" for help.');break;case 204:ShowAlert("SMS Gateway email addresses, which send email as text messages, are not permitted. Please enter a standard email address.",2e3,"alert_box",null)}},error:function(e){null==o?alert("Unknown Error. Please try later!"):o(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraAccess) not found!")}}})}function SignIn(e,t,n,a,r,o){e=GetFormXml($("#"+e));null==e||a&&!a(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraAccess.ashx?action=SignIn",data:{contact:e},dataType:"json",success:function(e){switch(e.Number){case 100:null!=r&&r(e.Contact),!isNullOrEmpty(t)&&isNullOrEmpty(n)?document.location.replace(t):isNullOrEmpty(t)||isNullOrEmpty(n)||"popup"!=n?isNullOrEmpty(t)&&!isNullOrEmpty(n)&&"stay"==n?(UpdateUserArea(e.UserAreaHtml),ClosePopup()):(ClosePopup(),location.replace((isMultiLingual()?"/"+getLocale():"")+"/dashboard/default.aspx?mode=signIn")):(UpdateUserArea(e.UserAreaHtml),$("#PERFORM_ACTION_TRIGGER").attr("href",t),ClosePopup(),OpenPopup()),$("body").removeClass("restricted-listing");break;case 401:null==o?alert("Invalid email address or password. Please try again!"):o(401,"Invalid email address or password. Please try again!");break;case 302:isNullOrEmpty(e.Url)||(location.href=e.Url);break;case 1:null==o?alert("Unable to connect to Database!"):o(1,"Please enter a valid Password");break;case 2:null==o?alert("Query execution failure!"):o(2,"Query execution failure!");break;case 9:null==o?alert(e.Message):o(11,e.Message);break;case 10:null==o?alert("Invalid email address or password. Please try again!"):o(10,"Invalid email address or password. Please try again!")}},error:function(e){null==o?alert("Unknown Error. Please try later!"):o(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraAccess) not found!")}}})}function SaveSearch(e,t,n,a,r,o){e=GetFormXml($("#"+e));null==e||a&&!a(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraAccess.ashx?action=SaveSearch",data:{demand:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==r?alert("You have successfully saved the search"):r(100,"You have successfully saved the search"),ClosePopup();break;case 1:null==o?alert("Unable to connect to Database!"):o(1,"Please enter a valid Password");break;case 2:null==o?alert("Query execution failure!"):o(2,"Query execution failure!");break;case 9:null==o?alert(e.Message):o(11,e.Message);break;case 10:null==o?alert("Invalid email address or password. Please try again!"):o(10,"Invalid email address or password. Please try again!")}},error:function(e){null==o?alert("Unknown Error. Please try later!"):o(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraAccess) not found!")}}})}function RequestInfo(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraRequestInfo.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Your request has been submitted successfully"):n(100,"Your request has been submitted successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraRequestInfo) not found!")}}})}function NeighborhoodReport(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraNeighborhoodReport.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Your Neighborhood Report request has been submitted. A report will be emailed to you within the next 24 business hours."):n(100,"Your Neighborhood Report request has been submitted. A report will be emailed to you within the next 24 business hours."),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraNeighborhoodReport) not found!")}}})}function ContactMortgageSpecialist(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraContactMortgageSpecialist.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Thank you for your request. A Mortgage Consultant will contact you shortly."):n(100,"Thank you for your request. A Mortgage Consultant will contact you shortly."),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (ContactMortgageSpecialist) not found!")}}})}function RequestShowing(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraRequestShowing.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Your request has been submitted successfully"):n(100,"Your request has been submitted successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraRequestShowing) not found!")}}})}function TextListing(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraTextListing.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Your request has been submitted successfully"):n(100,"Your request has been submitted successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraTextListing) not found!")}}})}function EmailListing(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraEmailListing.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("The property details has been sent successfully"):n(100,"The property details has been sent successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraEmailListing) not found!")}}})}function ContactUs(e,t,n,a,r){var o=$("#"+e),e=GetFormXml(o);null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraContactUs.ashx",data:{WebRequest:e,ContactType:r},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Your request has been submitted successfully"):n(100,"Your request has been submitted successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{401:function(){try{o.find("[data-captcha-reload]").trigger("click")}catch(e){}},404:function(){alert("Service (agoraContactUs) not found!")}}})}function SellAHome(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraSellAHome.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Your request has been submitted successfully"):n(100,"Your request has been submitted successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraContactUs) not found!")}}})}function MaintenanceService(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/MaintenanceService.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Your request has been submitted successfully"):n(100,"Your request has been submitted successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraContactUs) not found!")}}})}function OrderReloc(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraOrderReloc.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Your request has been submitted successfully"):n(100,"Your request has been submitted successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraOrderReloc) not found!")}}})}function ForgotPassword(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraForgotPassword.ashx",data:{Contact:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Please check your email shortly for instructions on resetting your password."):n(100,"Please check your email shortly for instructions on resetting your password."),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("An account with that email address cannot be found. Please try again."):a(10,"An account with that email address cannot be found. Please try again.")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (ForgotPassword) not found!")}}})}function CompanyNewsLetter(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraCompanyNewsLetter.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("You have registered for newsletter successfully"):n(100,"You have registered for newsletter successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraEmailListing) not found!")}}})}function EmailFriend(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraEmailFriend.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("The details has been sent successfully"):n(100,"The details has been sent successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraEmailListing) not found!")}}})}function UpdateUserArea(e){$("#DIV_USER_AREA").html(e)}function PerformAction(e,t){var n="",a=(isMultiLingual()?"/"+getLocale():"")+"/dashboard/Access.aspx";"SignUp"!=e&&"SignIn"!=e&&"MarketTrends"!=e?IsSignedIn()?(n=(isMultiLingual()?"/"+getLocale():"")+"/dashboard/"+e+".aspx",isNullOrEmpty(t)||(n+="?"+t)):(n=a+"?view=popup&accessUrl="+escape("/dashboard/"+e+".aspx"),isNullOrEmpty(t)||(n+="?"+escape(t))):"MarketTrends"==e?n="/dashboard/MarketTrends.aspx?"+t:(n=a,isNullOrEmpty(t)||(n+="?"+t)),$("#PERFORM_ACTION_TRIGGER").attr("href",n),$("#PERFORM_ACTION_TRIGGER").trigger("click")}function IsSignedIn(){return!isNullOrEmpty($("#CONTACT_GUID"))&&!isNullOrEmpty($("#CONTACT_GUID").val())&&36==$("#CONTACT_GUID").val().length}function ContactOffice(e){$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraContactOffice.ashx",data:{Name:$("#textname").val(),Email:$("#txtEmail").val(),ToEmail:e,Subject:$("#textsubject").val(),comment:$("#textmsg").val()},dataType:"text",success:function(e){"100"==e&&(alert("Your request has been submitted successfully"),ClosePopup())},error:function(e){null==onError?alert("Unknown Error. Please try later!"):onError(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraContactUs) not found!")}}})}function showPropertyGallery(e,t,n,a,r){for(var o=window.pageYOffset,i=document.querySelector(".property-gallery-container"),s=document.createElement("button"),l=(s.classList.add("property-gallery-container-close"),s.setAttribute("title","Close Property Gallery"),s.innerText="X",s.addEventListener("click",function(e){null!=document.querySelector(".property-gallery-container")&&document.querySelector(".property-gallery-container").remove(),window.scrollTo(0,o),document.body.style.overflow="visible"},!0),null==i&&((i=document.createElement("div")).classList.add("property-gallery-container"),r!=n&&i.classList.add(r),document.body.appendChild(i)),i.innerHTML='<div class="s-w-100 s-h-100 s-p-r hero-slider"><i class="left-btn">&lt;</i><div class="item-s show-nav"></div><i class="right-btn">&gt;</i><div class="dots-wrapper"></div><div style="clear: both;"></div></div>',i.appendChild(s),i.querySelector(".item-s")),c=null,u=0;u<a;u++)(c=document.createElement("div")).innerHTML='<div class="item"><img class="lazy s-h-100 s-of-cn" alt="property photo '+(u+1)+'" data-src="https://cdn.datafloat.com/'+e+"_PUBLIC/MLSPhotos/"+t.toUpperCase()+"/"+n+"_"+(u+1)+'.jpg" /></div>',l.append(c.firstElementChild);agSlider({autoPlay:!0,autoPlayDelay:5e3,loop:!0,showBullets:!0,showControls:!0,bulletContainer:".dots-wrapper",showBulletsAsThumb:!0,itemWrapper:".item-s",itemContainer:".item"},".property-gallery-container",function(e){document.body.style.overflow="hidden",document.querySelectorAll(".ldp-caro").forEach(e=>{e.querySelectorAll(".item").forEach((e,t)=>{e.addEventListener("click",()=>{document.querySelector(".property-gallery-container .dots-wrapper .idx-"+t).click()})})}),window.scrollTo(0,0)})}function handleCommunityClickEvent(e,t){window.agEvent&&window.agEvent.push(e,t)}function IsNotNull$1(e){return null!=e&&0<e.length&&"0"!=e&&0!=e}function IsNotNullOrIsZero(e){return null!=e&&0<e.length}function EnableSearchForm(){function t(o){setTimeout(function(){var e=$(o).closest("[data-search-form]"),t=composeUrlQuery({select:e}),n=e.data("search-form"),n=$('[data-sort-object="'+n+'"]'),a=e.data("default-search"),r=e.data("default-sort");void 0!==a&&""!=a&&-1==t.indexOf("/address-")&&-1==t.indexOf("/mls-")&&(t+=a),0<n.length?t+=null!=(a=n.val())&&""!=a?a:"":void 0!==r&&null!=r&&""!=r&&(t+=r),e.triggerHandler("search",[{query:t}])},200)}$(document).on("click","[data-search-form] [data-search-button]",{},function(){t(this)}),$(document).on("keydown","[data-search-form] [data-search-action]",{},function(e){13==e.keyCode&&t(this)}),$("[data-search-form]").on("search",function(e,t){var n=$(this),a=n.data("search-prefix"),a=IsNotNull$1(a)&&"undefined"!=a?a:GetSearchPrefixForRecordType(n.data("search-form"));/^\/\//.test((null!=a&&""!=a&&"undefined"!=a?a:"")+t.query)||(window.location=(null!=a&&""!=a&&"undefined"!=a?a:"")+t.query)})}function GetSearchPrefixForRecordType(e){switch(e){case"PROPERTY":return"/properties";case"COMMUNITY":return"/communities";case"BUILDER":return"/builders";case"PROPERTYRENT":return"/property-search-map-on-rent";case"PROPERTYSOLD":return"/property-search-map/sold";case"AGENT":return"/real-estate-agents";case"OFFICE":return"/real-estate-offices";case"BLOG":return"/blog/search";case"AGENTTEAM":return"/real-estate-agents"}return"/"}function GetDefaultSortForRecordType(e){switch(e){case"PROPERTY":case"COMMUNITY":case"PROPERTYRENT":return"/dsort-p";case"AGENT":case"AGENTTEAM":case"OFFICE":return"/sort-n"}return""}function getCookie(e){for(var t=e+"=",n=decodeURIComponent(document.cookie).split(";"),a=0;a<n.length;a++){for(var r=n[a];" "==r.charAt(0);)r=r.substring(1);if(0==r.indexOf(t))return r.substring(t.length,r.length)}return""}function initMapDefault(){window.onMapLoaded&&window.onMapLoaded()}function EnableDemandImport(){function e(t,n,a,r){if(!t.closest("div[contenteditable]").attr("contenteditable")&&void 0!==n||void 0!==a)switch((r=void 0!==r?r:"gallery").toLowerCase()){case"gallery":var e=t.find('[data-sort-object="CMNCMN"]');("undefined"!=e&&null!=e&&0<e.length||!n.match(/(^|\/)(d)?sort\-[a-z]+/g))&&(n=((e=>"undefined"!=(e=e.find('[data-sort-object="CMNCMN"]'))&&null!=e&&0<e.length&&IsNotNull$1(e.val())?e.val():GetDefaultSortForRecordType("PROPERTY"))(t)+"/"+n.replace("http://","").replace(/(^|\/)(d)?sort\-[a-z]+/g,"")).replace("//","/")),$.ajax({type:"POST",url:"/services/MAX/agoraGetGalleryView.aspx",data:{UrlQuery:n,TypeOfSearch:"SALE",IsContentPage:"true",DemandKey:a},dataType:"html",success:function(e){t.closest("div[contenteditable]").attr("contenteditable")||(e='<section class="result-page" data-ck-propertylist="" data-ck-demand-key="'+a+'" data-ck-property-url="'+n+'" data-ck-demand-layout="'+r+'">'+e+"</section>",t.after(e),t.remove(),"undefined"!=typeof componentHandler&&componentHandler.upgradeDom(),$('[data-ck-demand-key="'+a+'"] #propertyGrid').each(function(){$(this).find(".property:not(.init)").each(function(){GetPropertyImageGallery($(this))})}),window.agLazy.refresh())},error:function(){ShowLoading()}});break;case"carousel":$.ajax({type:"POST",url:"/services/agoraGetCarouselItem.aspx",data:{UrlQuery:n,TypeOfSearch:"SALE",IsContentPage:"true",DemandKey:a},dataType:"html",success:function(e){t.closest("div[contenteditable]").attr("contenteditable")||(e='<section class="result-page" data-ck-propertylist="" data-ck-demand-key="'+a+'" data-ck-property-url="'+n+'" data-ck-demand-layout="'+r+'">'+e+"</section>",t.after(e),$('[data-query-list]:not(.init)[data-service-url][data-rt^="CMN"]').each(function(){$(this).trigger("init"),$(this).addClass("init")}),t.remove(),"undefined"!=typeof componentHandler&&componentHandler.upgradeDom())},error:function(){ShowLoading()}})}}$("img[data-demand-key]").each(function(){e($(this),$(this).data("demand-url"),$(this).data("demand-key"),$(this).data("layout"))}),$(document).on("click","[data-ck-href]",null,function(){e($(this).parents("[data-ck-propertylist]:first"),$(this).data("ck-href"),$(this).parents("[data-ck-propertylist]:first").data("ck-demand-key"),$(this).parents("[data-ck-propertylist]:first").data("ck-demand-layout"))}),(async()=>{var u,n,f={languages:[{code:"en",label:"English"},{code:"es",label:"Spanish",localLabel:"Español"},{code:"nl",label:"Dutch",localLabel:"Nederlands"},{code:"pr",label:"Portugese",localLabel:"Português"},{code:"fr",label:"French",localLabel:"Français"}],currencies:[{code:"USD",base:"USD",label:"Dollar",format:"$###,###,###.##"},{code:"AED",base:"USD",label:"United Arab Emirates Dirham",format:"AED###,###,###.##"},{code:"BSD",base:"USD",label:"Bahamian Dollar",format:"B$###,###,###.##"},{code:"CAD",base:"USD",label:"Canadian Dollar",format:"$###,###,###.##"},{code:"DOP",base:"USD",label:"Dominican Peso",format:"RD$###,###,###.##"},{code:"EUR",base:"USD",label:"Euro",format:"€###,###,###.##"},{code:"JMD",base:"USD",label:"Jamaican Dollar",format:"J$###,###,###.##"},{code:"KYD",base:"USD",label:"Cayman Islands Dollar",format:"CI$###,###,###.##"},{code:"MXN",base:"USD",label:"Mexican Peso",format:"$###,###,###.##"},{code:"PAB",base:"USD",label:"Panamanian Balboa",format:"B/.###,###,###.##"}],units:[{code:"imperial",label:"Imperial"},{code:"metric",label:"Metric"}],presets:[{code:"BS",longCode:"BHS",label:"Bahamas",currency:"BSD",language:"en",messurement:"metric"},{code:"CA",longCode:"CAN",label:"Canada",currency:"CAD",language:["en","fr"],messurement:"metric",states:{QC:"fr"}},{code:"JM",longCode:"JAM",label:"Jamaica",currency:"JMD",language:"en",messurement:"metric"},{code:"KY",longCode:"CYM",label:"Cayman Islands",currency:"KYD",language:"en",messurement:"metric"},{code:"TC",longCode:"TCA",label:"Turks & Caicos Islands",localLabel:"",currency:"USD",language:"en",messurement:"imperial"},{code:"US",longCode:"USA",label:"United States",localLabel:"",currency:"USD",language:"en",messurement:"imperial"},{code:"DY",longCode:"DOM",label:"Dominican Republic",localLabel:"República Dominicana",currency:"USD",language:"en",messurement:"metric"},{code:"ES",longCode:"ESP",label:"Spain",localLabel:"España",currency:"EUR",language:"en",messurement:"metric"},{code:"MX",longCode:"MEX",label:"Mexico",localLabel:"México",currency:"MXN",language:"en",messurement:"metric"},{code:"PA",longCode:"PAN",label:"Panama",localLabel:"Panamá",currency:"PAB",language:"en",messurement:"metric"},{code:"NL",longCode:"NLD",label:"Nederlands",localLabel:"Nederland",currency:"EUR",language:"en",messurement:"metric"},{code:"PT",longCode:"PRT",label:"Portugal",currency:"EUR",language:"en",messurement:"metric"}],unitConvertions:[{unit:"SQFT",tragetUnit:"Sq.M",constant:.092903,notation:["Sqft","Sq.Ft","Sq.Ft.","Sq. Ft.","SF","square feet","square feets"]},{unit:"MI",tragetUnit:"KM",constant:1.60934,notation:["mi","miles","mile"]},{unit:"AC",tragetUnit:"Sq.M",constant:4046.86,notation:["acre","acres"]}]},i=null;async function s(){var t,e=C();null==i&&(i=Object.assign({},e)),e?.language!=i?.language?setTimeout(function(){window.location.reload()},1e3):(i=Object.assign({},e),t=await new Promise(async function(e,t){var n=await(async()=>{var e=window.localStorage.getItem("LOCALLABELS"),t=null;return t=null!=e?JSON.parse(e):t})(),a=C();if(null!=n){var r=new Date;if(r.setHours(r.getHours()-1),new Date(n.updatedOn)>r&&-1<n.Locale.indexOf(a.language))return void e(n)}(n=await k("/services/agoraClient.ashx",{type:"LABELS"})).updatedOn=new Date,l(n),e(n)}),e?.language&&-1==t.Locale.indexOf(e.language)&&(await S(),window.location.reload()),(e=document.querySelectorAll("[ag-l-k]"))&&e.forEach(function(e){(async(e,t)=>{var n,a=e.getAttribute("ag-l-k"),r=null;if(t[a]||p.test(a))if(e.childNodes&&1==e.childNodes.length)if(p.lastIndex=0,p.test(a)){p.lastIndex=0;for(var o=a;null!=(r=p.exec(o));)o=o.replace(r[0],t[r.groups.LabelID]?t[r.groups.LabelID].lbl:"");e.childNodes[0].textContent=o}else e.childNodes[0].textContent=t[a]?t[a].lbl:"";else t[a]&&((n=document.createElement("span")).innerHTML=t[a].lbl,async function e(t,n){for(var a=0;a<n.childNodes.length;a++)if(n.childNodes[a]?.textContent&&t.childNodes[a]?.textContent)t.childNodes[a].textContent=n.childNodes[a]?.textContent;else{if(!(a<n.childNodes.length&&a<t.childNodes.length))return;e(t.childNodes[a],n.childNodes[a])}}(e,n));for(var i=0;i<e.attributes.length;i++){var s=e.attributes[i];if(d.lastIndex=0,null!=(r=d.exec(s.name))){for(var l=r.groups.Attribute,c=s.value;null!=(r=p.exec(c));)c=c.replace(r[0],t[r.groups.LabelID]?t[r.groups.LabelID].lbl:"");e.setAttribute(l,c)}}e&&null!=e&&e.dispatchEvent(new CustomEvent("ag.language.update.item"))})(e,t.Labels)}))}async function l(e){window.localStorage.setItem("LOCALLABELS",JSON.stringify(e))}var d=/ag\-l\-k\-(?<Attribute>[^\=]+)/gm,p=/\[(?<LabelID>[^\]]+)\]/gm;async function c(e){var t,n,a,r=await new Promise(async function(e,t){var n=localStorage.getItem("CONVERTIONRATES"),a=null;if(n&&null!=n){a=JSON.parse(n),n=new Date;if(n.setDate(n.getDate()-1),new Date(a.updatedOn)>n)return void e(a)}(a=await k("/services/agoraClient.ashx",{type:"CONVERTIONRATES"})).updatedOn=(new Date).toISOString(),localStorage.setItem("CONVERTIONRATES",JSON.stringify(a)),e(a)}),o=C();o.currency&&(t=r.Rates?.ExchangeRates?.filter(function(e){return e.Code==o.currency})[0],(a=f.currencies.filter(function(e){return e.code==o.currency})[0])&&(t.formatter=m(a.format)),n=t.Code,a=e?document.querySelectorAll('[ag-l-p]:not(.is-applied):not([ag-l-p="0"])'):document.querySelectorAll('[ag-l-p]:not([ag-l-p="0"])'))&&a.forEach(async function(e){-1<e.innerHTML.indexOf("{{")||((async e=>{var t,n,a,r,o;e.classList.contains("is-applied")||(r=e.getBoundingClientRect(),n=(n=null)!=(n=e.closest("article"))&&0<n.length?n[0].getBoundingClientRect():e.parentElement?.getBoundingClientRect(),t=(n.top+n.bottom)/2,n=(n.left+n.right)/2,a=(r.top+r.bottom)/2,r=(r.left+r.right)/2,o="ag-l-p-p",o="ag-l-p-p-"+(r<n?"l":"r")+"-"+(a<t?"b":"t"),e.classList.add(o))})(e),e.classList.add("is-applied"),(async(e,t,n,a)=>{var r=null!=e.getAttribute("ag-l-p-c")&&(null==e.getAttribute("ag-l-p-o")&&null==e.getAttribute("ag-l-p-o-p")||e.getAttribute("ag-l-p-o-p")!=e.getAttribute("ag-l-p"))&&e.getAttribute("ag-l-p-c")!=n;if(e.getAttribute("ag-l-p-c")!=n||!r||!h.test(e.textContent)){var o=e.getAttribute("ag-l-p-c"),i=1,s=null;try{s=a.Rates?.ExchangeRates?.filter(function(e){return e.Code==o})[0];var l=f.currencies.filter(function(e){return e.code==s.Code})[0];l&&(s.formatter=m(l.format)),i=s.Constant}catch(e){}for(var c=0;c<e.childNodes.length;c++){var u,d=e.childNodes[c],p=null;if(h.lastIndex=0,d.textContent&&null!=(p=h.exec(d.textContent)))return t&&null!=t&&e.setAttribute("ag-l-p-c-t",t.Code),r?(e.setAttribute("ag-l-p-o-p",e.getAttribute("ag-l-p")),e.setAttribute("ag-l-p-o",s?s.formatter(parseFloat(e.getAttribute("ag-l-p"))):e.getAttribute("ag-l-p"))):null!=e.getAttribute("ag-l-p-c")&&e.getAttribute("ag-l-p-c")==t.Code&&e.removeAttribute("ag-l-p-o"),h.lastIndex=0,u=Math.round(parseFloat(e.getAttribute("ag-l-p"))/i*t.Constant),!(d.textContent=d.textContent.replace(p[0],t.formatter?t.formatter(u):u.toString()))}}})(e,t,n,r))})}var h=/(([^A-z0-9]|[A-Z]|[A-Z]{3})*\s?[0-9\,\.]+)/gm;function m(e){var t=e.replace(/[#\,\.]+/gi,"");return function(e){return t+e.toLocaleString("en-US")}}async function g(e){var t="metric"==C().messurement,n=t?document.querySelectorAll("[ag-l-m]:not(.is-applied)"):document.querySelectorAll("[ag-l-m]");t?setTimeout(function(){n&&n.forEach(async function(e){-1<e.innerHTML.indexOf("{{")||e.classList.contains("is-applied")||(e.classList.add("is-applied"),async function a(e,r,t,n,o){if(n&&o)return void(0<e?.childNodes?.length&&e.childNodes.forEach(async function(e){var t,n;e?.textContent&&(t=e.textContent,(n=await x(e.textContent,2,o)).success)&&(e.textContent=n.content,r.addEventListener("ag.language.messurement.revert",function(){e.textContent=t}))}));{var i,s;v(e)?(i=f.unitConvertionSchema.getLabelForAttribute(e),n=await b(i,1),f.unitConvertionSchema.setLabelForAttribute(e,n.content),s=f.unitConvertionSchema.getValueForAttribute(e),n=await x(s,2,n.units[0]),f.unitConvertionSchema.setValueForAttribute(e,n.content),r.addEventListener("ag.language.messurement.revert",function(){f.unitConvertionSchema.setLabelForAttribute(e,i),f.unitConvertionSchema.setValueForAttribute(e,s)})):0<e?.childNodes?.length&&e.childNodes.forEach(async function(e){var t,n;e.nodeType==Node.TEXT_NODE&&y(e)?(t=e.textContent,(n=await b(t)).success?e.textContent=n.content:(n=await b(e.textContent,1),e.textContent=n.content,a(e.parentElement,r,!1,!0,n.units[0])),r.addEventListener("ag.language.messurement.revert",function(){e.textContent=t})):a(e,r)})}return!1}(e,e))})},e?500:0):n&&n.forEach(async function(e){-1<e.innerHTML.indexOf("{{")||!e.classList.contains("is-applied")||(e.classList.remove("is-applied"),e.dispatchEvent(new CustomEvent("ag.language.messurement.revert")))})}function y(e){return f.unitConvertionSchema.expression.test(e.textContent)||f.unitConvertionSchema.notationExpression.test(e.textContent)}function v(e){return null!=(f.unitConvertionSchema.haveValidAttribute(e)?f.unitConvertionSchema.getLabelForAttribute(e).match(f.unitConvertionSchema.notationExpression):null)}async function b(e,t){var n,a=[],r=!1;t=t||0;for(n of f.unitConvertions){var o=await x(e,t,n);e=o.content,r|=o.success,o.success&&a.push(n),f.unitConvertionSchema.notationExpressions[n.unit].lastIndex=-1,f.unitConvertionSchema.notationOnlyExpressions[n.unit].lastIndex=-1}return{content:e,success:r,units:a}}async function x(e,t,n){for(var a=null,r=!1;null!=(a=((e,t,n)=>0==n?f.unitConvertionSchema.notationExpressions[t.unit].exec(e):1==n?f.unitConvertionSchema.notationOnlyExpressions[t.unit].exec(e):2==n?(f.unitConvertionSchema.valueExpression.lastIndex=-1,f.unitConvertionSchema.valueExpression.exec(e)):null)(e,n,t));){var r=!0,o=1==t?0:parseFloat(f.unitConvertionSchema.getValue(a.groups.V)),i=a.groups.N,s=a.index,l=s+a[0].length,o=(1!=t?a[0].replaceAll(a.groups.V,f.unitConvertionSchema.formatValue(Math.floor(Math.round(o*n.constant)))):a[0]).replaceAll(i,n.tragetUnit);if(2==t&&n.targetNotation&&(o+=" "+n.targetNotation),e=e.substring(0,s)+o+e.substring(l),2==t)return{content:e,success:r}}return{content:e,success:r}}async function w(t){o("US").split(" ").map(function(e){t.classList.add(e)}),document.body.addEventListener("ag.language.update",function(e){t.className=t.className.replace(/fflag\-[A-Z]{1,2}/gi,""),o(e.detail.code).split(" ").map(function(e){t.classList.add(e)}),e.detail.longCode&&$("longCode",e.detail.longCode);e=C();window.agLocale||(window.agLocale={}),window.agLocale.locale=e,document.body.dispatchEvent(new CustomEvent("ag.language.update.success"))}),t.addEventListener("click",async function(e){u=u||await(async()=>{var n,t,e=new T("span"),a=e.n("span");function r(e){L(t,"Language","language",e,function(e,t){e.h(t.localLabel||t.label)},function(e){return e?e.localLabel||e.label:""})}return L(a,"Location","code",f.presets,function(e,t){e.n("i").a("class",o(t.code)),e.n("b").h(t.localLabel||t.label)},function(t,e){return n.a("class",o(t.code)),r(f.languages.filter(function(e){return Array.isArray(t.language)?-1<t.language.indexOf(e.code):e.code==t.language})),e||document.body.dispatchEvent(new CustomEvent("ag.language.update",{detail:t})),t.localLabel||t.label}),n=a.n("i"),t=e.n("span"),r(f.languages),L(e.n("span"),"Currency","currency",f.currencies,function(e,t){e.h(t.localLabel||t.label)},function(e){return e.localLabel||e.label}),L(a=e.n("span"),"Property Measurement","messurement",f.units,function(e,t){e.h(t.localLabel||t.label)},function(e){return e.localLabel||e.label}),L(a=e.n("span"),"Distance Measurement","messurement",f.units,function(e,t){e.h(t.localLabel||t.label)},function(e){return e.localLabel||e.label}),e.node.setAttribute("ag-language-select",""),document.body.appendChild(e.node),(a=C())?.code&&document.body.dispatchEvent(new CustomEvent("ag.language.update",{detail:a})),e})(),e.stopPropagation(),(async e=>{e=e.getBoundingClientRect(),u.node.style.top=Math.floor(e.top-8)+"px",u.node.style.right="calc(100% - "+Math.floor(e.right+8)+"px)",u.node.querySelectorAll(".active")?.forEach(function(e){e.classList.remove("active")}),u.node.classList.add("active")})(t),document.body.addEventListener("click",a)})}function a(e){e.stopPropagation(),null==e.target.closest("[ag-language-select],[ag-language]")&&(document.body.removeEventListener("click",a),(async()=>{u.node.classList.remove("active")})(e.target))}function o(e){return"fflag ff-lg fflag-"+e}function C(){var e=window.localStorage.AGLANGUAGE,t={};return t=e&&""!=e?JSON.parse(e):t}var r=null,E=null;function $(e,t){var n,a=C();(a=null==a?{}:a)[e]&&a[e]==t||(a[e]=t,window.localStorage.setItem("AGLANGUAGE",JSON.stringify(a)),null!=r&&clearTimeout(S),r=setTimeout(async function(){r=null,await S(),null!=E&&(E(),E=null)},100),n=E,E=function(){null!=n&&n(),document.body.dispatchEvent(new CustomEvent("ag.language.change."+e))})}async function S(e){var t=C();JSON.stringify(n)!=JSON.stringify(t)&&(n=t)&&t.code&&await window.agRequest.POST("/services/agoraClient.ashx",Object.assign({type:"SET"},t))}var A={};function L(e,t,a,r,n,o){var i=t.toLowerCase().replace(/[^A-z0-9]/gi,""),s=!!A["itemList"+i],t=(s||e.h(t),s?A["itemList"+i]:A["itemList"+i]=e.n("span")),l=s?A["itemListValue"+i]:A["itemListValue"+i]=t.n("label"),c=(l.h("Selected Value"),s||l.cl(function(e){e.stopPropagation(),u.node.querySelectorAll(".active")?.forEach(function(e){e!=l.node&&e.classList.remove("active")}),l.node.classList.contains("active")?l.node.classList.remove("active"):l.node.classList.add("active")}),s?A["itemOptions"+i]:A["itemOptions"+i]=t.n("span"));c.h(""),r.map(function(e){var t=c.n("label");t.cl(function(){l.node.classList.remove("active"),$(a,e.code),l.h(o(e))}),n(t,e)}),a&&""!=a&&(A["General"+i]||(A["General"+i]=function(e){document.body.dispatchEvent(new CustomEvent("ag.language.update."+i,{detail:e.detail}))},document.body.addEventListener("ag.language.update",A["General"+i])),A["Field"+i]||(A["Field"+i]=function(e){var e=e.detail[a],n=Array.isArray(e)?e[0]:e,e=r.find(function(e,t){return e.code==n});o&&($(a,n),l.h(o(e,!0)))},document.body.addEventListener("ag.language.update."+i,A["Field"+i])))}function T(e){return this.node=document.createElement(e),this}async function k(e,t){var n,a="";for(n in t)a+=(""!=a?"&":"")+n+"="+t[n];return e+=-1<e.indexOf("?")?"&":"?"+a,(await fetch(e,{method:"GET",cache:"no-cache",headers:{"Content-Type":"application/json"}})).json()}T.prototype.a=function(e,t){return this.node.setAttribute(e,t),this},T.prototype.n=function(e){e=new T(e);return this.node.appendChild(e.node),e},T.prototype.h=function(e){return this.node.innerHTML=e,this},T.prototype.cl=function(e){return this.node.removeEventListener("click",e),this.node.addEventListener("click",e),this},window.agLanguage={refresh:function(){document.body.dispatchEvent(new CustomEvent("ag.language.refresh.currency"))},refreshLocale:function(){document.body.dispatchEvent(new CustomEvent("ag.language.change.language"))}},(async()=>{document.querySelectorAll("[ag-language]").forEach(w);var a,r,o,e=!1,t=C();if(!t?.code)for(var n in e=!0,document.body.addEventListener("ag.language.country.auto-discovery",function(t){var e=f.presets.filter(function(e){return e.code==t.detail.countryCode});if(null!=e&&0<e.length&&"US"!=e[0].code){for(var n in e[0]){var a=Array.isArray(e[0][n])?e[0][n][0]:e[0][n];$(n,a="language"==n&&e[0].states&&e[0].states[t.detail.state]?e[0].states[t.detail.state]:a)}document.body.dispatchEvent(new CustomEvent("ag.language.update",{detail:e[0]}))}}),t=f.presets.filter(function(e){return"US"==e.code})[0])$(n,Array.isArray(t[n])?t[n][0]:t[n]);document.body.dispatchEvent(new CustomEvent("ag.language.update",{detail:t})),c(!0),t.language&&-1==t.language.indexOf("en")?s():(i=Object.assign({},t),l({Locale:"en_US"})),(async()=>{document.body.addEventListener("ag.language.change.language",function(){s()}),document.body.addEventListener("ag.language.change.currency",function(){c()}),document.body.addEventListener("ag.language.change.messurement",function(){g()}),document.body.addEventListener("ag.lazy.refresh",function(){g()}),document.body.addEventListener("ag.language.refresh.currency",function(){c()})})(),f.unitConvertionSchema=(r=a="",o={notationExpressions:{},notationOnlyExpressions:{},getValue:function(e){return parseFloat(e.replaceAll(/[^0-9\\.]/gi,""))},formatValue:function(e){return e.toLocaleString("en-US",{maximumFractionDigits:2})},haveValidAttribute:function(e){return!!e.hasAttribute&&e.hasAttribute("data-th")},getLabelForAttribute:function(e){return e.getAttribute?e.getAttribute("data-th"):""},setLabelForAttribute:function(e,t){e.setAttribute&&e.setAttribute("data-th",t)},getValueForAttribute:function(e){return e.innerText},setValueForAttribute:function(e,t){e.innerText=t}},f.unitConvertions.forEach(function(e){var t="",n="";e.notation.forEach(function(e){n+=(""!=n?"|":"")+"((?<N>"+e.replaceAll(/\s/gi,"\\s").replaceAll(/([^0-9A-z])/gi,"\\$1")+")(\\s|[^A-z]|$))",t+=(""!=t?"|":"")+"((?<V>[0-9\\,\\.]+)(\\n|\\s)*(?<N>"+e.replaceAll(/\s/gi,"\\s").replaceAll(/([^0-9A-z])/gi,"\\$1")+")(\\s|[^A-z]|$))"}),o.notationExpressions[e.unit]=new RegExp(t,"gmi"),o.notationOnlyExpressions[e.unit]=new RegExp(n,"gmi"),a+=(""!=a?"|":"")+"("+t+")",r+=(""!=r?"|":"")+"("+n+")"}),o.expression=new RegExp(a,"gmi"),o.notationExpression=new RegExp(r,"gmi"),o.valueExpression=new RegExp("((?<V>[0-9\\,]+(\\.[0-9]+)?)(\\n|\\s)*)","gmi"),await o),g(!0),e||(window.agLocale||(window.agLocale={}),window.agLocale.locale=t,document.body.dispatchEvent(new CustomEvent("ag.language.update.success")))})()})(),$(document).on("change",'[data-ck-propertylist] [data-sort-object="CMNCMN"]',{},function(){e($(this).parents("[data-ck-propertylist]:first"),$(this).parents("[data-ck-property-url]:first").data("ck-property-url"),$(this).parents("[data-ck-propertylist]:first").data("ck-demand-key"),$(this).parents("[data-ck-propertylist]:first").data("ck-demand-layout"))})}function GetPropertyImageGallery(e){var t=e.find(".slides"),n=(t.attr("data-css-slider","0"),e.find("[data-mk]").data("mk")),a=e.find("[data-mlsboard]").data("mlsboard"),r=e.find("[data-detail-url]").data("detail-url"),o=$("[data-pcode]").data("pcode"),i=e.find("[data-mls-photo]").data("mls-photo"),s=e.find("[data-native-tab]").data("native-tab"),o=(IsNotNull$1(i)||(i="/images/company/"+o+"/NoPhotoImage/image-not-found.jpg"),parseInt(t.data("value"),10)),l=e.closest("[id]");buildFirstTemplate(i,o,(0==e.length?"un":l.attr("id").replace(/\$/gi,""))+(new Date).getMilliseconds(),a,n,t,r,s),e.addClass("init")}function buildFirstTemplate(e,t,n,a,r,o,i,s){var l=n+a+r+"_",n=($('<input type="radio" aria-label="'+l+'slider" name="'+l+'slider" id="'+l+'0" checked />').appendTo(o),$('<div class="nav"></div>')),c=$('<label aria-label="next" aria-controls="myCarousel-items" data-css-slider-nav="propphoto" for="'+l+'1" class="next"><span aria-label="next" class="visuallyhidden">next</span></label>'),u=$('<label aria-label="prev" aria-controls="myCarousel-items" data-css-slider-nav="propphoto" for="'+l+(parseInt(t,10)-1)+'" class="prev"><span aria-label="prev" class="visuallyhidden">prev</span></label>'),s=(u.on("click",d),c.on("click",d),u.appendTo(n),c.appendTo(n),t="PSB"==$("[data-pcode]").data("pcode")?"":'target = "_blank"',"undefined"!=s&&""!=s&&1==s&&(t=""),$('<li class="slide-container" aria-roledescription="carousel" role="contentinfo"><div class="slide"><div class="Prop_img" role="img" aria-label="bannerImage" style="background-image:url(\''+e+'\');"><a aria-label="'+l+'slider"'+t+'href="'+i+'"></a></div></div></li>'));function d(){var t=$(this);u.off("click"),c.off("click"),$.ajax({url:"/services/agoraPropertyPhotos.aspx",data:{mlsboard:a,mlsno:r,container:l},success:function(e){o.append(e),t.trigger("click")}})}s.append(n),s.appendTo(o)}function openImageGallery(e){var t=e.getAttribute("data-mk"),n=e.getAttribute("data-rt");showPropertyGallery(document.body.getAttribute("data-pcode"),n,t,e.getAttribute("data-photocount")??1,"fullscreen")}function setForms(e){null!=document.querySelector('[node="FirstName"]')&&null!=document.querySelector('[node="FirstName"]')&&(document.querySelector('[node="FirstName"]').value=e.FirstName??""),null!=document.querySelector('[node="LastName"]')&&null!=document.querySelector('[node="LastName"]')&&(document.querySelector('[node="LastName"]').value=e.LastName??""),null!=document.querySelector('[node="Email"]')&&null!=document.querySelector('[node="Email"]')&&(document.querySelector('[node="Email"]').value=e.Email??""),null!=document.querySelector('[node="MobilePhone"]')&&null!=document.querySelector('[node="MobilePhone"]')&&(document.querySelector('[node="MobilePhone"]').value=e.MobilePhone??"")}agora(function(){function e(){var e=$(this),t=$("#"+e.data("page-scroll")),t=null!=t&&0<t.length?t.offset().top:0,n=0;try{var a=e.data("page-scroll-offset"),n=void 0!==a&&""!=a?parseInt(a):$("#agora-layout-header").height()}catch(e){}$("html, body").animate({scrollTop:t-n},1500);try{$("#"+e.data("page-scroll-tab-id")).trigger("click")}catch(e){}}jQuery.fn.ForceNumericOnly=function(){return this.each(function(){$(this).keydown(function(e){var t=e.charCode||e.keyCode||0;return 8==(t=e.shiftKey?0:t)||9==t||13==t||46==t||110==t||190==t||35<=t&&t<=40||48<=t&&t<=57||96<=t&&t<=105})})},$("[data-numeric-only]").ForceNumericOnly(),$(document).ready(function(){$("[data-numeric-only]").ForceNumericOnly()}),$(document).on("click","[data-page-scroll]",e),$(document).on("tap","[data-page-scroll]",e),$(document).on("click","[data-back-to-top]",function(){BackToTop(this)}),$(document).on("tap","[data-back-to-top]",function(){BackToTop(this)}),$(document).on("click","[data-back-to-down]",function(){TopToBottom(this)}),$(document).on("tap","[data-back-to-down]",function(){TopToBottom(this)}),$(document).on("click","[data-href]",function(e){0<$(e.target).closest("[data-non-click-content]").length||isNullOrEmpty$1($(this).data("href"))||(isNullOrEmpty$1($(this).data("target"))?location.href=$(this).data("href"):window.open($(this).data("href"),$(this).data("target")))})}),agora(function(){$(document).ready(function(){!location.hash||"#signup"!=location.hash.toLowerCase()&&"#register"!=location.hash.toLowerCase()&&"#reset-password"!=location.hash.toLowerCase()||OpenPopup()})}),window.agRequest={GET:async function(e,t){var n,a="";for(n in t)a+=(""!=a?"&":"")+n+"="+t[n];return e+=-1<e.indexOf("?")?"&":"?"+a,(await fetch(e,{method:"GET",cache:"no-cache",headers:{"Content-Type":"application/json"}})).json()},POST:async function(e,t){var n,a=new URLSearchParams;for(n in t)a.append(n,t[n]);return(await fetch(e,{method:"POST",cache:"no-cache",body:a})).json()}},(async()=>{async function t(){document.querySelectorAll('[data-src]:not(.ag-lazy):not(.no-ag):not([data-src*="{{"])').forEach(function(e,t){e.classList.add("ag-lazy");var n=function(){(async(e,t)=>{var n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=";if(await(async e=>{let t=e.getBoundingClientRect(),n=document.body,a=document.documentElement,r=window.pageYOffset||a.scrollTop||n.scrollTop,o=(window.pageXOffset||a.scrollLeft||n.scrollLeft,a.clientTop||n.clientTop||0),i=(a.clientLeft||n.clientLeft,t.top+r-o),s=t.bottom+r-o,l=r,c=l+window.innerHeight;return s>l&&i<c})(e)){if(null==e)return;var a=await(async(e,t)=>{var n,a,r;return null==t?null:t.hasAttribute("data-ratio-auto")||"VIDEO"==t.nodeName||"OBJECT"==t.nodeName?{url:e}:null==(n=await async function e(t,n,a,r){if(null==t)return null;var o=t.getBoundingClientRect();var i=t.getAttribute("data-ratio");var s=t.getAttribute("data-scale");null!=s&&(r=parseFloat(s));s=null;i&&null!=i&&null!=(s=/^(?<width>[0-9\.]{1,4}):(?<height>[0-9\.]{1,4})$/gi.exec(i))&&(n=parseFloat(s.groups.width),a=parseFloat(s.groups.height),0==n&&(n=-1),0==a)&&(a=-1);i=o.width;s=o.height;t.classList.contains("ag-lazy")&&(i=t.getAttribute("width"),s=t.getAttribute("height"),i=null==(i=null!=i&&""!=i?i:t.style.width)||""==i?0:parseInt(i.replace(/[^\d]+/gi,"")),s=null==s||""==s?0:parseInt(s.replace(/[^\d]+/gi,"")));i!=s&&(null==i||null==s||s<i/n*a||i<s/a*n)&&(0<i?s=i/n*a:i=s/a*n);if((0<i||n<0)&&(0<s||a<0))return i=Math.floor(i),s=Math.floor(s),{width:n<0?0:i+(10-i%10),height:a<0?0:s+(10-s%10),scale:r};return e(t.parentElement,n,a,r)}(t,16,9,1))?null:(a=/.*\?(.*?(mh|mw)\=(\d+))*/gi.exec(e),r="",null!=t.getAttribute("data-crop")&&(r+="&mode=crop"),e.indexOf("/"),null!=a?{url:e,size:n}:{url:e+"?"+(0<n.width?"mw="+n.width*n.scale+(0<n.height?"&":""):"")+(0<n.height?"mh="+n.height*n.scale:"")+r,size:n})})(e.getAttribute("data-src"),e);e.setAttribute("data-src",a.url),"VIDEO"==e.nodeName||"OBJECT"==e.nodeName||"AUDIO"==e.nodeName?e.setAttribute("src",a.url):"IMG"==e.nodeName?(e.addEventListener("load",function(){e.getAttribute("src")!=n&&e.classList.add("ag-lazy-s")}),e.setAttribute("src",n),null!=a&&(a.size&&(0<a.size.width&&e.setAttribute("width",a.size.width),0<a.size.height)&&e.setAttribute("height",a.size.height),e.setAttribute("src",a.url))):e.style["background-image"]=`url('${a.url}')`,t()}new IntersectionObserver(function(){console.log(e,"View")},{root:null,rootMargin:"0px",threshold:.1})})(e,function(){document.body.removeEventListener("ag.lazy",n)})};document.body.addEventListener("ag.lazy",n),n()})}document.addEventListener("DOMContentLoaded",async function(){document.body.addEventListener("ag.lazy.refresh",t),document.body.addEventListener("ag.refresh",t);var e=new CustomEvent("ag.lazy.refresh"),e=(document.body.dispatchEvent(e),document.addEventListener("scroll",function(e){var t=new CustomEvent("ag.lazy");document.body.dispatchEvent(t)}),new CustomEvent("ag.lazy"));document.body.dispatchEvent(e),window.agLazy={refresh:function(){var e=new CustomEvent("ag.lazy.refresh");document.body.dispatchEvent(e)},validate:function(){var e=new CustomEvent("ag.lazy");document.body.dispatchEvent(e)}}})})(),(async()=>{null!=document.querySelector(".item-acc-i")&&document.querySelectorAll(".item-acc-i").forEach(e=>{let t=e.closest(".item-acc-c");e.classList.contains("open")&&(t.style.maxHeight=t.scrollHeight+"px"),e.addEventListener("click",()=>{e.classList.toggle("open"),e.classList.contains("open")?t.style.maxHeight=t.scrollHeight+"px":e.classList.contains("open")||(t.style.maxHeight=document.querySelector(".item-acc-i").offsetHeight+"px")})})})(),(async()=>{null!=document.querySelector(".item-tab-b")&&document.querySelectorAll(".item-tab-b").forEach((a,r)=>{a.addEventListener("click",()=>{let t=document.querySelectorAll(".item-tab-c");var e=a.parentElement,n=e.parentElement;e.querySelectorAll(".item-tab-b").forEach(e=>{e.classList.remove("active")}),n.querySelectorAll(".item-tab-c").forEach(e=>{e.classList.remove("active"),t[r].classList.add("active")}),a.classList.add("active")})})})(),(async()=>{if(null!=document.querySelector(".item-sea")){document.querySelectorAll(".con-menu a").forEach(function(e){e.addEventListener("click",function(){document.querySelector(".label-con").setAttribute("data-country",e.innerHTML),e.closest(".item-dr-c").previousElementSibling.classList.contains("active")&&e.closest(".item-dr-c").previousElementSibling.classList.remove("active")})});let a=document.querySelectorAll(".item-dr > .item-dr-la");async function e(){window.innerWidth<=1024&&(document.querySelector(".item-onstxt").addEventListener("click",function(){document.body.classList.add("srch-opnd")}),document.querySelectorAll(".cancel-btn").forEach(function(e){e.addEventListener("click",function(){document.body.classList.remove("srch-opnd")})}))}a.forEach((e,t)=>{e.addEventListener("click",()=>{var n;n=t,e.classList.toggle("active"),a.forEach((e,t)=>{t!==n&&e.classList.remove("active")})})}),window.addEventListener("mouseup",function(t){a.forEach(e=>{t.target.closest(".item-dr-la")||t.target.closest(".item-dr-c")||e.classList.remove("active")})}),document.querySelectorAll(".item-cl").forEach(function(e){e.addEventListener("click",function(){e.closest(".item-dr-c").previousElementSibling.classList.contains("active")&&e.closest(".item-dr-c").previousElementSibling.classList.remove("active")})}),e(),window.addEventListener("resize",e)}})(),(async()=>{window.addEventListener("scroll",async function(){10<window.scrollY?document.body.classList.add("scroll"):document.body.classList.remove("scroll")})})(),(async()=>{async function e(){async function e(){var e;document.querySelector(".burger-c").classList.contains("item-n-2")&&(document.querySelector(".burger-c").classList.remove("item-n-2"),document.querySelector(".burger-c").classList.add("item-n-1")),null!=document.querySelector(".item-uc")&&(e=document.querySelector(".item-uc"),document.querySelector(".item-h").querySelector("nav").insertBefore(e,document.querySelector(".item-h").querySelector("nav").firstChild))}null!=document.querySelector(".burger-c")&&(window.innerWidth<=1024&&e(),1024<window.innerWidth&&(async()=>{var e;document.querySelector(".burger-c").classList.contains("item-n-1")&&(document.querySelector(".burger-c").classList.remove("item-n-1"),document.querySelector(".burger-c").classList.add("item-n-2")),null!=document.querySelector(".item-uc")&&(e=document.querySelector(".item-uc"),document.querySelector(".item-h").appendChild(e))})(),document.querySelector(".burger-c ~ nav").offsetWidth<document.querySelector(".burger-c ~ nav").scrollWidth)&&e()}e(),window.addEventListener("resize",e)})(),(async()=>{var e=document.querySelectorAll(".a-b-1, .a-b-2, .a-b-3, .a-b-4, .a-b-5");null!=e&&e.forEach(e=>{e.addEventListener("click",function(e){var t,n=e.offsetX,e=e.offsetY;document.getElementsByClassName("ripple").length<10&&((t=document.createElement("span")).classList.add("ripple"),t.style.left=n+"px",t.style.top=e+"px",this.appendChild(t),setTimeout(function(){t.remove()},1e3))})})})(),(async()=>{var e=document.querySelectorAll(".video-play");null!=e&&e.forEach(e=>{e.addEventListener("playing",function(){e.closest("figure").classList.add("no-btn")}),e.addEventListener("pause",function(){e.closest("figure").classList.remove("no-btn")})})})(),(async()=>{null!=document.querySelector(".expand-more")&&(document.querySelector(".expand-more").addEventListener("click",function(e){this.closest(".subnav").classList.toggle("responsive")}),document.querySelectorAll(".subnav > a").forEach(e=>{e.addEventListener("click",function(e){this.closest(".subnav").classList.remove("responsive")})}))})(),(async()=>{null!=document.querySelector(".label-sel")&&document.querySelectorAll(".label-sel").forEach(e=>{e.querySelector(".item-select").addEventListener("change",function(){e.classList.add("active")})})})(),window.agSlider=function(e,t,E){for(var $={autoPlay:!1,autoPlayDelay:3e3,loop:!1,showControls:!0,btnLeft:".left-btn",btnRight:".right-btn",showBullets:!1,showBulletsAsThumb:!1,bulletContainer:".bullets",itemWrapper:".agy-caro-in",wrapperMask:0,itemContainer:".agy-caro-it"},n=(null!=e&&($=((e,t)=>{for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e})($,e)),null==t&&(t=".agy-caro"),document.querySelectorAll(t)),a=0;null!=n&&n.length>a;a++)(a=>{var r=a.querySelector($.itemWrapper),o=r.querySelectorAll($.itemContainer).length,i=r.querySelector($.itemContainer).offsetWidth,s=Math.round(r.offsetWidth/i),l=0,c=o,u=null!=$.btnLeft&&null!=$.btnLeft?a.querySelector($.btnLeft):null,d=null!=$.btnRight&&null!=$.btnRight?a.querySelector($.btnRight):null,p=!1,e=r.offsetWidth==i,f=!1,h=0;!isNaN($.wrapperMask)&&0<$.wrapperMask&&($.wrapperMask=100<$.wrapperMask?100:$.wrapperMask,r.style.scrollPadding=$.wrapperMask+"%",2<o)&&(f=!0);for(var t,n,m,g,y=r.querySelectorAll($.itemContainer),v=0;v<y.length;v++)y[v].classList.add("idx-"+v),f&&v==y.length-1&&(r.prepend(y[v]),h=r.scrollLeft);if(null!=u&&($.showControls||(u.style.display="none"),u.addEventListener("click",()=>{0==l&&!$.loop||(0==l?(r.scrollLeft=i*(o-1),C(i*(o-s))):(r.scrollLeft=r.scrollLeft+-i,C(e?(l-1)*i:r.scrollLeft+-i)))})),null!=d&&($.showControls||(d.style.display="none"),d.addEventListener("click",()=>{c==o-1&&!$.loop||(c==o-1?(r.scrollLeft=0,C(h)):(r.scrollLeft=r.scrollLeft+ +i,C(e?(l+1)*i:r.scrollLeft+ +i)))})),$.showBullets){if(null==a.querySelector($.bulletContainer)||null==a.querySelector($.bulletContainer))return $.showBullets=!1;for(v=0;v<Math.round(o/s);v++){var b,x,w=$.showBulletsAsThumb||e?document.createElement("div"):document.createElement("button");w.classList.add("dot"),w.classList.add("idx-"+v),w.setAttribute("idx",v),$.showBulletsAsThumb&&e&&(b=document.createElement("img"),x=null!=r.querySelector($.itemContainer+".idx-"+v+" img")?r.querySelector($.itemContainer+".idx-"+v+" img"):r.querySelector($.itemContainer+".idx-"+v+" video"),b.setAttribute("src","IMG"==x.nodeName?x.getAttribute("data-src"):x.getAttribute("poster")),w.appendChild(b)),0==v&&w.classList.add("active"),w.addEventListener("click",e=>{e=parseInt(e.currentTarget.getAttribute("idx")),$.autoPlay=!1,p=!0,r.scrollLeft=e*s*i,C(e*s*i)}),a.querySelector($.bulletContainer).appendChild(w)}}function C(e){l=Math.round((e-h)/i),c=Math.round(l+s-1);for(var t,n=0;n<o;n++)r.querySelector($.itemContainer+".idx-"+n).classList.remove("active"),l<=n&&n<=c&&(n<=c-(f?1:0)&&(r.querySelector($.itemContainer+".idx-"+n).classList.add("active"),null!=r.querySelector($.itemContainer+".idx-"+n+" video"))&&((t=r.querySelector($.itemContainer+".idx-"+n+" video")).setAttribute("src",t.getAttribute("data-src")),t.pause(),t.currentTime=0,t.play(),p=!0,t.addEventListener("ended",function(e){p=!1},!1)),r.querySelectorAll($.itemContainer+".idx-"+n+" img").forEach(e=>{e.setAttribute("src",e.getAttribute("data-src"))})),f&&0==n&&r.querySelectorAll($.itemContainer+".idx-"+(o-1)+" img").forEach(e=>{e.setAttribute("src",e.getAttribute("data-src"))});if(0!=l||$.loop?u.classList.remove("disabled"):u.classList.add("disabled"),c!=o-1||$.loop?d.classList.remove("disabled"):d.classList.add("disabled"),$.showBullets)for(n=0;n<Math.round(o/s);n++)n!=Math.round((l+s)/s)-1?a.querySelector($.bulletContainer+" .dot.idx-"+n).classList.remove("active"):a.querySelector($.bulletContainer+" .dot.idx-"+n).classList.add("active")}$.showBulletsAsThumb&&(t=a.querySelector($.bulletContainer).querySelector(".dot").offsetWidth,null!=u&&u.addEventListener("click",()=>{a.querySelector($.bulletContainer).scrollLeft-=t}),null!=d&&d.addEventListener("click",()=>{a.querySelector($.bulletContainer).scrollLeft+=t}),n=!1,a.querySelector($.bulletContainer).addEventListener("mousedown",e=>{n=!0,a.querySelector($.bulletContainer).classList.add("dragging"),m=e.pageX,g=a.querySelector($.bulletContainer).scrollLeft}),a.querySelector($.bulletContainer).addEventListener("mousemove",e=>{n&&(a.querySelector($.bulletContainer).scrollLeft=g-(e.pageX-m))}),document.addEventListener("mouseup",()=>{n=!1,a.querySelector($.bulletContainer).classList.remove("dragging")})),$.autoPlay&&(function e(){setTimeout(function(){p||d.click(),e()},$.autoPlayDelay)}(),r.addEventListener("mouseenter",function(){r.offsetWidth!=i&&(p=!0)}),r.addEventListener("mouseleave",function(){r.offsetWidth!=i&&(p=!1)})),C(r.scrollLeft),null!=E&&E(a)})(n[a])},agora(function(){refreshTracking(),$(document).on("click","[data-for]",function(e){try{var t=$(this).data("for");$('[for="'+t+'"]').trigger("click")}catch(e){}})}),Date.prototype.yyyymmddhhmmss=function(){var e=this.getFullYear(),t=this.getMonth()<9?"0"+(this.getMonth()+1):this.getMonth()+1,n=this.getDate()<10?"0"+this.getDate():this.getDate(),a=this.getHours()<10?"0"+this.getHours():this.getHours(),r=this.getMinutes()<10?"0"+this.getMinutes():this.getMinutes(),o=this.getSeconds()<10?"0"+this.getSeconds():this.getSeconds();return"".concat(e).concat(t).concat(n).concat(a).concat(r).concat(o)},(async()=>{var a=!1;async function r(){var e=null;return null!=(e=null!=window.localStorage.getItem("AGUSER")?JSON.parse(window.localStorage.getItem("AGUSER")):e)&&document.body.classList.contains("restricted-listing")&&document.body.classList.remove("restricted-listing"),e}async function t(e){var t;null==e?(window.localStorage.removeItem("AGUSER"),document.body.dispatchEvent(new CustomEvent("ag.user.clear"))):e.Guid&&((t={}).Guid=e.Guid,t.Name=e.Name,t.FirstName=e.FirstName,t.LastName=e.LastName,t.Email=e.Email,t.Phone=e.Phone,t.MobilePhone=e.MobilePhone,e.LoginAgent&&(t.LoginAgent={Key:e.LoginAgent.Key,Email:e.LoginAgent.Email,Name:e.LoginAgent.Name}),window.localStorage.setItem("AGUSER",JSON.stringify(t)),n())}async function n(){document.querySelectorAll("[ag-user]").forEach(function(e){(async e=>{e.classList.add("is-applied"),e.cloneNode(!0);var t,n=await r();null!=n&&((async()=>{a?o():document.body.addEventListener("ag.sync.verified.contact",function(){o()}),document.body.addEventListener("ag.lazy.refresh",function(){o()}),document.body.addEventListener("ag.user.refresh.collection",function(){o(!0)}),document.body.addEventListener("ag.user.clear.collection",function(){window.localStorage.removeItem("AGUSERCOLLECTION3")}),document.body.addEventListener("ag.user.clear",function(){document.body.dispatchEvent(new CustomEvent("ag.user.clear.collection"))})})(),t=await(async e=>{var t=new i("p"),n=(t.a("ag-user",""),t.n("button")),a=(n.a("class","user-logged-in a-b-1 f-s-2 u-logined s-c-p m-l-16 xa-b-w-l r-b"),n.h(e.Name),n.cl(function(e){return e.preventDefault(),n.node.classList.contains("active")?n.node.classList.remove("active"):n.node.classList.add("active"),!1}),t.n("span"));return a.n("span").h("Hi, "+e.Name),a.n("input").a("type","hidden").a("id","CONTACT_GUID").a("value",e.Guid),a.n("a").a("href","/dashboard/default.aspx").h("Dashboard"),a.n("span").a("data-modaldialog-src","/dashboard/EditProfile.aspx").a("data-modaldialog-ajax","true").a("data-modaldialog","").h("Edit Profile"),a.n("a").a("href","/dashboard/SignOut.aspx").a("data-agora-icon","").h("Log out").cl(function(){document.body.dispatchEvent(new CustomEvent("ag.user.out"))}),t.node})(n),e.parentElement.insertBefore(t,e),e.remove(),setForms(n))})(e)})}async function o(e){var r,o;r=3,o=e,(await new Promise(async function(e,t){var n=null,a=o?null:window.localStorage.getItem("AGUSERCOLLECTION"+r);null!=a?e(n=JSON.parse(a)):(n=await window.agRequest.GET("/services/agoraClient.ashx",{type:"USERCOLLECTION",collectionType:r}),window.localStorage.setItem("AGUSERCOLLECTION"+r,JSON.stringify(n)),e(n))})).Items.reduce(function(e,t){return e?[...e,...t.Items]:[...t.Items]},[]).forEach(async function(e){(async(e,t)=>{document.querySelectorAll('[data-perform-action-url*="pk='+e.PK+'"][data-perform-action-url*="rt='+e.RT+'"]').forEach(async function(e){e.setAttribute("ag-user-collection",t)})})(e,3)})}function i(e){return this.node=document.createElement(e),this}document.body.addEventListener("ag.user.in",function(e){t(e.detail)}),document.body.addEventListener("ag.user.out",function(e){t(null)}),i.prototype.a=function(e,t){return this.node.setAttribute(e,t),this},i.prototype.n=function(e){e=new i(e);return this.node.appendChild(e.node),e},i.prototype.h=function(e){return this.node.innerHTML=e,this},i.prototype.cl=function(e){return this.node.removeEventListener("click",e),this.node.addEventListener("click",e),this},window.agUser={collection:{refresh:function(){document.body.dispatchEvent(new CustomEvent("ag.user.refresh.collection"))}}},n(),document.body.addEventListener("ag.sync.check",async function(){var e=await r(),t=window.localStorage.getItem("AGSYNC");if(null!=t&&null!=e&&JSON.parse(t).ContactGuid!=e.Guid)return void document.body.dispatchEvent(new CustomEvent("ag.sync.set",{detail:{contactguid:e.Guid,agentkey:e.LoginAgent?e.LoginAgent.Key:"",eventType:"contact"}}));document.body.dispatchEvent(new CustomEvent("ag.sync.verified.contact")),a=!0}),document.body.addEventListener("ag.sync.verified",async function(){document.body.dispatchEvent(new CustomEvent("ag.sync.verified.contact")),a=!0})})(),(async()=>{async function e(){var e=window.localStorage.getItem("AGSYNC");if(null!=e){var e=JSON.parse(e),e=new Date(e.updatedOn),t=new Date;if(t.setMinutes(t.getMinutes()-1),t<e)return void document.body.dispatchEvent(new CustomEvent("ag.sync.verified"))}(async()=>{var e=await window.agRequest.GET("/services/agoraClient.ashx",{type:"SYNC"});e.updatedOn=new Date,window.localStorage.setItem("AGSYNC",JSON.stringify(e)),document.body.dispatchEvent(new CustomEvent("ag.sync.check"))})()}(async()=>{document.body.addEventListener("ag.sync.set",async function(e){await window.agRequest.POST("/services/agoraClient.ashx",Object.assign({type:"SET"},e.detail)),e.detail?.eventType&&document.body.dispatchEvent(new CustomEvent("ag.sync.verified."+e.detail.eventType))}),document.body.addEventListener("ag.sync.invalid",async function(e){document.body.dispatchEvent(new CustomEvent("ag.sync.reset")),window.location.reload()}),e()})()})(),(async()=>{async function e(){var e=window.localStorage.getItem("AGUSERCOUNTRY");null!=e?(e=JSON.parse(e),document.body.dispatchEvent(new CustomEvent("ag.language.country.auto-discovery",{detail:e}))):(async()=>{var e=await window.agRequest.GET("https://ip-service.idcrealestate.com/ip",{});e.updatedOn=new Date,window.localStorage.setItem("AGUSERCOUNTRY",JSON.stringify(e)),document.body.dispatchEvent(new CustomEvent("ag.language.country.auto-discovery",{detail:e}))})()}(async()=>{e()})()})(),(async()=>{var a=new RegExp("(?<Guid>[A-z0-9\\-]+)\\|(?<AgentKey>[0-9]+)","gi");async function e(){var e,t,n=window.location.hash;n.length<1||(t=atob(n.substring(1)),e=null,console.log(t),null!=(e=a.exec(t))?(async(e,t)=>{document.body.classList.add("is-busy"),(e=await window.agRequest.POST("/services/agoraAccess.ashx",{action:"RemoteSignIn",contactguid:e,agentkey:t})).Contact&&(document.body.dispatchEvent(new CustomEvent("ag.user.in",{detail:e.Contact})),window.location.href="/dashboard/default.aspx#saved-searches")})(e.groups.Guid,e.groups.AgentKey):""!=n&&0<n.length&&null!=(t=document.querySelector('[data-tab="'+n.substring(1)+'"]'))&&t.click())}(async()=>{e(),window.addEventListener("hashchange",e)})()})();var loadEvent=new CustomEvent("onAgoraLoad");function refreshTracking(){$("[data-webactivity]").each(function(){var e,n;"true"!==$(this).attr("data-processed")&&(e=$(this).attr("data-webactivity"),n=[],$.each(this.attributes,function(){var e,t;this.name.startsWith("data-webactivity-")&&(e=this.name.substring("data-webactivity-".length),t=this.value,n.push({name:e,value:t}))}),WebActivityTracker("WEBACTIVITY","PROPERTY",e,n),$(this).attr("data-processed","true"))})}function WebActivityTracker(e,t,n,a){var r,o=[];a&&0<a.length&&(r={TrackType:e,ObjectType:t,ObjectActivityType:n},a.forEach(function(e){r[e.name]=e.value}),o.push(r)),$.ajax({type:"POST",url:"/tracker",data:{track:JSON.stringify(o)},dataType:"json",success:function(e){console.log("Tracking successful:",e)},error:function(e){console.error("Tracker not found!",e)}})}function onScroll(e){var n=$(document).scrollTop();$(".c-menu .subnav a").each(function(){var e=$(this),t=$(e.attr("href"));t.position().top-($(".c-menu").outerHeight()+$(".item-h").outerHeight())<=n&&t.position().top+t.height()>n?($(".c-menu .subnav a").removeClass("active"),e.addClass("active")):e.removeClass("active")})}function isLabelOrLiWithController(e){return("LABEL"===e.tagName||"LI"===e.tagName)&&[...e.attributes].some(e=>e.name.endsWith("_controller"))}function handleEvent(e,t){e.stopPropagation();e=[...t.attributes].map(e=>e.name).find(e=>e.endsWith("_controller"))||"Unknown Section";document.body.dispatchEvent(new CustomEvent("controllerVisible",{detail:{controllerName:e}}))}function ClosePopup$1(){$("[data-modaldialog-close]").trigger("click")}document.dispatchEvent(loadEvent),document.isAgoraLoaded=!0,loadEvent=new CustomEvent("onCssLoad"),document.dispatchEvent(loadEvent),document.isCssLoaded=!0,EnableDemandImport(),EnableSearchForm(),document.body.addEventListener("Plugin.Map.ResultUpdated",function(){refreshTracking()}),null!=$(".c-menu .subnav a")&&($(".c-menu .subnav a").click(function(e){e.preventDefault();e=this.hash;$target=$(e),$("html, body").stop().animate({scrollTop:$target.offset().top-($(".c-menu").outerHeight()+$(".item-h").outerHeight())},"swing",function(){$(document).on("scroll",onScroll)}),$("a").each(function(){$(this).removeClass("active")}),$(this).addClass("active")}),$(document).on("scroll",onScroll),$(window).scroll(function(e){$("body").hasClass("scroll")&&$(".c-menu .subnav a").click(function(e){e.preventDefault(),$("html, body").stop().animate({scrollTop:$($(this).attr("href")).offset().top-($(".c-menu").outerHeight()+$(".item-h").outerHeight())},300)}),$("body").hasClass("scroll")||$(".c-menu .subnav a").click(function(e){$("html, body").stop().animate({scrollTop:$($(this).attr("href")).offset().top-(2*$(".c-menu").outerHeight()+$(".item-h").outerHeight())},300)})})),document.body.addEventListener("ag.widget.no-data",function(e){var t,n=e.detail.sender,e=n.getAttribute("ag-loader");e&&(t=document.querySelectorAll(`[${e+"_controller"}]`),console.log("Widgets:",t),n.hasAttribute("show-no-data")?setTimeout(function(){n.querySelector(".no-data-message")||(n.innerHTML+=`
1
+ function GetFormXml(a){if(0<$(a).find($('input[id^="txtFaxInfo"]')).length&&""!=$(a).find($('input[id^="txtFaxInfo"]')).val())return null;var r=[],o="",i="",s="",l=!0;if($(a).find('*[FormNode="true"]').each(function(){if(i="","checkbox"==$(this).attr("type")){var e="";try{1<$(a).find('input[type="checkbox"][name="'+$(this).attr("name")+'"]:checked').length&&(e=";")}catch(e){}$(a).find('input[type="checkbox"][name="'+$(this).attr("name")+'"]:checked').each(function(){i=i+$(this).val()+e})}else if("radio"==$(this).attr("type"))$(this).is(":checked")&&(i=$(this).val());else if($(this).attr("captcha"))try{var t=$(this).closest(".captcha").find("[captcha-value]"),n='<CaptchaValidator ID="'+t.attr("captcha-id")+'">'+$(this).val()+"</CaptchaValidator>";if(MD5($(this).val()).toLowerCase()!=t.attr("captcha-value").toLowerCase())return l=!1,alert($(this).attr("FormMessage")),!1;r.Captcha=n}catch(e){return l=!1,alert(e),!1}else i=$(this).val();if(isNullOrEmpty(i)){if("true"==$(this).attr("Required")||"required"==$(this).attr("Required"))return l=!1,alert($(this).attr("FormMessage")),!1}else{if(""!=$(this).attr("FormType")&&"Email"==$(this).attr("FormType")&&!isValidEmail(i))return l=!1,alert($(this).attr("FormMessage")),!1;if(!isNullOrEmpty($(this).attr("MinLength"))&&parseInt($(this).attr("MinLength"))>i.length)return l=!1,alert($(this).attr("FormMessage")),!1}isNullOrEmpty($(this).attr("Entity"))||isNullOrEmpty($(this).attr("Node"))||(isNullOrEmpty(o=r[$(this).attr("Entity")])&&(r[$(this).attr("Entity")]=""),isNullOrEmpty(i)||(i=i.trim(),s=isNullOrEmpty($(this).attr("label"))?"":' label="'+$(this).attr("label")+'" ',o="<"+$(this).attr("Node")+s+">"+("xml"!=$(this).attr("data-agora-type")?"<![CDATA["+i+"]]>":i)+"</"+$(this).attr("Node")+">",r[$(this).attr("Entity")]+=o),"Lead"===$(this).attr("Entity")&&(t=window.location.href,n=new URL(t),(t=new URLSearchParams(n.search)).has("utm_term")&&(i=t.get("utm_term").trim(),o="<UTMTerm"+(s=' label="UTM Term" ')+">"+("xml"!=$(this).attr("data-agora-type")?"<![CDATA["+i+"]]>":i)+"</UTMTerm>",r[$(this).attr("Entity")]+=o),t.has("tm_corp_partner")&&(i=t.get("tm_corp_partner").trim(),o="<CorporatePartner"+(s=' label="Corporate Partner" ')+">"+("xml"!=$(this).attr("data-agora-type")?"<![CDATA["+i+"]]>":i)+"</CorporatePartner>",r[$(this).attr("Entity")]+=o),t.has("utm_campaign")&&(i=t.get("utm_campaign").trim(),o="<UTMCampaign"+(s=' label="UTM Campaign" ')+">"+("xml"!=$(this).attr("data-agora-type")?"<![CDATA["+i+"]]>":i)+"</UTMCampaign>",r[$(this).attr("Entity")]+=o),t.has("utm_content")&&(i=t.get("utm_content").trim(),o="<UTMContent"+(s=' label="UTM Content" ')+">"+("xml"!=$(this).attr("data-agora-type")?"<![CDATA["+i+"]]>":i)+"</UTMContent>",r[$(this).attr("Entity")]+=o),t.has("utm_medium")&&(i=t.get("utm_medium").trim(),o="<UTMMedium"+(s=' label="UTM Medium" ')+">"+("xml"!=$(this).attr("data-agora-type")?"<![CDATA["+i+"]]>":i)+"</UTMMedium>",r[$(this).attr("Entity")]+=o),t.has("utm_source"))&&(i=t.get("utm_source").trim(),o="<UTMSource"+(s=' label="UTM Source" ')+">"+("xml"!=$(this).attr("data-agora-type")?"<![CDATA["+i+"]]>":i)+"</UTMSource>",r[$(this).attr("Entity")]+=o))}),!l)return null;var e="<d>";for(p=0;p<Object.keys(r).length;p++)e+="<"+Object.keys(r)[p]+">"+r[Object.keys(r)[p]]+"</"+Object.keys(r)[p]+">";return e+="</d>",escape(e)}function composeUrlQuery(e){var t,a,n,r;return null==e?"":(t="",a=new Object,n=$(e.select).add($(e.select).find("[urlidentifier]")),null!=e.nonselect&&null!=e.nonselect&&(n=$(n).not(e.nonselect)),r=$(),$(n).each(function(){var e=((e,t)=>{if(null!=$(e).attr("onesearchname")){var n=e,a=new Array;if($(n).parent().find("[onesearchidentifier]").each(function(){var e=i(this);null!=e&&a.push(e)}),0==a.length||(e=>null!=e&&null!=$(e).attr("multiselectboxid")&&""!=$(e).attr("multiselectboxid"))(n))if(s(n))return i(n);return a}try{return 0<$(t).find(e).length?null:(t=t.add(e),i(e))}catch(e){console.log("Error For Field")}return null})(this,r),t=a;if(null!=e)if(e instanceof Array)for(var n in e)o(e[n],t);else o(e,t)}),t=(e=>{var t,n="";for(t in e){var a,r="{$value}"==t.toLowerCase(),o=r?"/":";",i="",s=null;for(a in e[t])"min"==e[t][a].Operation.toLowerCase()||"max"==e[t][a].Operation.toLowerCase()?(null==s&&(s={Min:0,Max:0}),"min"==e[t][a].Operation.toLowerCase()&&(s.Min=e[t][a].Value),"max"==e[t][a].Operation.toLowerCase()&&(s.Max=e[t][a].Value)):"thes"==e[t][a].Operation.toLowerCase()?i=e[t][a].Value.toString().replace(/[^0-9A-z\\.]/g,";"):i+=e[t][a].Value.toString()+(1<e[t].length&&e[t].length-1>a?o:"");null!=s?r?n="/"+s.Min+(0!=s.Max?"-"+s.Max:"")+n:n+="/"+t+"-"+s.Min+(0!=s.Max?"-"+s.Max:""):r?n="/"+i+n:n+="/"+t+"-"+i}return n})(a),null!=e.additional&&null!=e.additional?e.additional(t):t);function o(e,t){null!=e&&(null==t[e.UrlIdentifier]&&(t[e.UrlIdentifier]=new Array),t[e.UrlIdentifier].push(e))}function i(t){try{if(!s(t))return null}catch(e){console.log("Error For Field Value Check:"+$(t).attr("type"))}try{return{UrlIdentifier:null!=$(t).attr("urlidentifier")?$(t).attr("urlidentifier"):$(t).attr("onesearchidentifier"),Value:(e=>{var t=$(e).val(),n=void 0!==$(e).attr("onesearchidentifier");if("object"!=typeof t)return(null!=$(e).attr("urlidentifier")&&"price"==$(e).attr("urlidentifier")?t.replace(/\,/g,"").replace(/\-/g,"_").replace(/\//g,"!").replace(/\&/,"$").replace(/\@/g,""):(n?t.replace(/\,/g,"@"):t).replace(/\-/g,"_").replace(/\//g,"!").replace(/\&/,"$")).replace(/\#/g,"%23");var a,r="";for(a in t)""!=t[a]&&(r+=(""==r?"":";")+t[a].replace(/\-/g,"_").replace(/\//g,"!").replace(/\,/g,"@").replace(/\&/,"$").replace(/\#/g,"%23"));return r})(t),Operation:null!=$(t).attr("operation")?$(t).attr("operation"):""}}catch(e){console.log("Error For Field Value:"+$(t).prop("tagName"))}return null}function s(e){var t;return null==$(e).attr("type")||"radio"!=$(e).attr("type")&&"checkbox"!=$(e).attr("type")?null!=e&&$(e).is("select")?"object"==typeof(t=$(e).val())?null!=t&&""!=t:""!=t.trim():null!=e&&""!=$(e).val().trim():null!=e&&""!=$(e).val().trim()&&$(e)[0].checked}}function isValidEmail(e){document.getElementById("txtEmail");return!!/^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(e)}function isNullOrEmpty(e){return null==e||""==e||"string"==typeof e&&""==e.trim()}function isNotNullOrZero(e){return null!=e&&0<e.length}function isNullOrEmptyControl(e){return null!=e&&(null==$(e).val()||null==$(e).val()||""==$(e).val())}function OpenIWBPopup(e,t,n){isNullOrEmpty(t)||(e+="?"+t),$("#PERFORM_IWB_ACTION_TRIGGER").attr("href",e),$("#PERFORM_IWB_ACTION_TRIGGER").trigger("click"),isNullOrEmpty(n)&&(n=1e3),setTimeout(function(){$("#PERFORM_IWB_ACTION_TRIGGER").trigger("click")},n)}function CloseIWBPopup(){$("#MODAL_ACCESS").foundation("reveal","close")}function OpenPopup(e){isNullOrEmpty(e)&&(e=1e3),setTimeout(function(){$("#PERFORM_ACTION_TRIGGER").trigger("click")},e)}function ClosePopup(){$("#MODAL_ACCESS").foundation("reveal","close")}function getFormattedPrice(e){return"$"+(0<e.toString().length?e.toString().length<=6&&3<e.toString().length?e.toString().substring(0,e.toString().length-3)+"K":6<e.toString().length?e.toString().substring(0,e.toString().length-6)+"."+e.toString().substring(e.toString().length-6,e.toString().length-5)+"M":e.toString():"N/A")}function isMultiLingual(){return null!=$("#MULTILINGUAL")&&null!=$("#MULTILINGUAL")&&!isNullOrEmpty($("#MULTILINGUAL").val())&&"1"==$("#MULTILINGUAL").val()}function getLocale(){return isMultiLingual()?$("#LOCALE").val():""}function InitDataSourceRelation(e,r,o){for(var i=$("#"+e),t=0;t<r.split(",").length;t++){var n=$("#"+r.split(",")[t]);$(n).change(function(){for(var e="",t=(e=(e=(e+="Source="+$(i).attr("Source"))+("&AutoSort="+$(i).attr("AutoSort")))+("&DefaultItem="+$(i).attr("DefaultItem")),"Xml"==$(i).attr("Source")?e=(e+="&XmlFileCode="+$(i).attr("XmlFileCode"))+"&XmlDataListKey="+$(i).attr("XmlDataListKey"):"Database"==$(i).attr("Source")&&(e=(e=(e+="&DataObjectName="+$(i).attr("DataObjectName"))+"&UrlIdentifier="+$(i).attr("UrlIdentifier"))+"&AdditionalWhere="+$(i).attr("AdditionalWhere")),""),n=0;n<r.split(",").length;n++){var a="#"+r.split(",")[n];0<n&&(t+=","),""==$(a).val()?t+=$(a+" input:checked").val():t+=$(a).val()}e+="&ParentValue="+(t=t.replace("undefined","")),$(i).attr("disabled","disabled"),$.ajax({type:"POST",url:"/services/agoraRelationalDataSource.ashx",data:e,dataType:"json",success:function(e){$(i).get(0).options.length=0,$.each(e,function(e,t){$(i).get(0).options[$(i).get(0).options.length]=new Option(t.Value,t.Key)}),$(i).removeAttr("disabled"),null!=o&&o($(i))},statusCode:{404:function(){alert("Service (agoraParentDataSource) not found!")}}})})}}function enterFullScreen(){document.documentElement.requestFullscreen?document.documentElement.requestFullscreen():document.documentElement.mozRequestFullScreen?document.documentElement.mozRequestFullScreen():document.documentElement.webkitRequestFullscreen&&document.documentElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)}function exitFullScreen(){document.cancelFullScreen?document.cancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()}function ShowLoading(){try{$("body").hasClass("is-busy")?$("body").removeClass("is-busy"):$("body").addClass("is-busy")}catch(e){}}((e,t)=>{"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(e.document)return t(e);throw new Error("jQuery requires a window with a document")}:t(e)})("undefined"!=typeof window?window:void 0,function(h,q){function F(e){var t=e.length,n=w.type(e);return"function"!==n&&!w.isWindow(e)&&(!(1!==e.nodeType||!t)||"array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function j(e,n,a){if(w.isFunction(n))return w.grep(e,function(e,t){return!!n.call(e,t,e)!==a});if(n.nodeType)return w.grep(e,function(e){return e===n!==a});if("string"==typeof n){if(ve.test(n))return w.filter(n,e,a);n=w.filter(n,e)}return w.grep(e,function(e){return 0<=r.call(n,e)!==a})}function R(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function t(){y.removeEventListener("DOMContentLoaded",t,!1),h.removeEventListener("load",t,!1),w.ready()}function e(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=w.expando+Math.random()}function U(e,t,n){var a;if(void 0===n&&1===e.nodeType)if(a="data-"+t.replace(Ae,"-$1").toLowerCase(),"string"==typeof(n=e.getAttribute(a))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:Se.test(n)?w.parseJSON(n):n)}catch(e){}f.set(e,t,n)}else n=void 0;return n}function n(){return!0}function s(){return!1}function _(){try{return y.activeElement}catch(e){}}function H(e,t){return w.nodeName(e,"table")&&w.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function B(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function G(e){var t=Fe.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function W(e,t){for(var n=0,a=e.length;n<a;n++)b.set(e[n],"globalEval",!t||b.get(t[n],"globalEval"))}function V(e,t){var n,a,r,o,i,s;if(1===t.nodeType){if(b.hasData(e)&&(o=b.access(e),i=b.set(t,o),s=o.events))for(r in delete i.handle,i.events={},s)for(n=0,a=s[r].length;n<a;n++)w.event.add(t,r,s[r][n]);f.hasData(e)&&(o=f.access(e),i=w.extend({},o),f.set(t,i))}}function m(e,t){var n=e.getElementsByTagName?e.getElementsByTagName(t||"*"):e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&w.nodeName(e,t)?w.merge([e],n):n}function z(e,t){e=w(t.createElement(e)).appendTo(t.body),t=h.getDefaultComputedStyle&&(t=h.getDefaultComputedStyle(e[0]))?t.display:w.css(e[0],"display");return e.detach(),t}function Y(e){var t=y,n=Be[e];return n||("none"!==(n=z(e,t))&&n||((t=(Ue=(Ue||w("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentDocument).write(),t.close(),n=z(e,t),Ue.detach()),Be[e]=n),n}function l(e,t,n){var a,r,o=e.style;return(n=n||Re(e))&&(r=n.getPropertyValue(t)||n[t]),n&&(""!==r||w.contains(e.ownerDocument,e)||(r=w.style(e,t)),We.test(r))&&Ge.test(t)&&(e=o.width,t=o.minWidth,a=o.maxWidth,o.minWidth=o.maxWidth=o.width=r,r=n.width,o.width=e,o.minWidth=t,o.maxWidth=a),void 0!==r?r+"":r}function X(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function Q(e,t){if(t in e)return t;for(var n=t[0].toUpperCase()+t.slice(1),a=t,r=Ke.length;r--;)if((t=Ke[r]+n)in e)return t;return a}function J(e,t,n){var a=Ye.exec(t);return a?Math.max(0,a[1]-(n||0))+(a[2]||"px"):t}function K(e,t,n,a,r){for(var o=n===(a?"border":"content")?4:"width"===t?1:0,i=0;o<4;o+=2)"margin"===n&&(i+=w.css(e,n+x[o],!0,r)),a?("content"===n&&(i-=w.css(e,"padding"+x[o],!0,r)),"margin"!==n&&(i-=w.css(e,"border"+x[o]+"Width",!0,r))):(i+=w.css(e,"padding"+x[o],!0,r),"padding"!==n&&(i+=w.css(e,"border"+x[o]+"Width",!0,r)));return i}function Z(e,t,n){var a=!0,r="width"===t?e.offsetWidth:e.offsetHeight,o=Re(e),i="border-box"===w.css(e,"boxSizing",!1,o);if(r<=0||null==r){if(((r=l(e,t,o))<0||null==r)&&(r=e.style[t]),We.test(r))return r;a=i&&(g.boxSizingReliable()||r===e.style[t]),r=parseFloat(r)||0}return r+K(e,t,n||(i?"border":"content"),a,o)+"px"}function ee(e,t){for(var n,a,r,o=[],i=0,s=e.length;i<s;i++)(a=e[i]).style&&(o[i]=b.get(a,"olddisplay"),n=a.style.display,t?(o[i]||"none"!==n||(a.style.display=""),""===a.style.display&&v(a)&&(o[i]=b.access(a,"olddisplay",Y(a.nodeName)))):(r=v(a),"none"===n&&r||b.set(a,"olddisplay",r?n:w.css(a,"display"))));for(i=0;i<s;i++)!(a=e[i]).style||t&&"none"!==a.style.display&&""!==a.style.display||(a.style.display=t?o[i]||"":"none");return e}function o(e,t,n,a,r){return new o.prototype.init(e,t,n,a,r)}function te(){return setTimeout(function(){k=void 0}),k=w.now()}function i(e,t){var n,a=0,r={height:e};for(t=t?1:0;a<4;a+=2-t)r["margin"+(n=x[a])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function ne(e,t,n){for(var a,r=(P[t]||[]).concat(P["*"]),o=0,i=r.length;o<i;o++)if(a=r[o].call(n,t,e))return a}function ae(r,e,t){var n,o,a,i,s,l,c,u=0,d=at.length,p=w.Deferred().always(function(){delete f.elem}),f=function(){if(o)return!1;for(var e=k||te(),e=Math.max(0,h.startTime+h.duration-e),t=1-(e/h.duration||0),n=0,a=h.tweens.length;n<a;n++)h.tweens[n].run(t);return p.notifyWith(r,[h,t,e]),t<1&&a?e:(p.resolveWith(r,[h]),!1)},h=p.promise({elem:r,props:w.extend({},e),opts:w.extend(!0,{specialEasing:{}},t),originalProperties:e,originalOptions:t,startTime:k||te(),duration:t.duration,tweens:[],createTween:function(e,t){t=w.Tween(r,h.opts,e,t,h.opts.specialEasing[e]||h.opts.easing);return h.tweens.push(t),t},stop:function(e){var t=0,n=e?h.tweens.length:0;if(!o){for(o=!0;t<n;t++)h.tweens[t].run(1);e?p.resolveWith(r,[h,e]):p.rejectWith(r,[h,e])}return this}}),m=h.props,g=m,y=h.opts.specialEasing;for(a in g)if(i=w.camelCase(a),s=y[i],l=g[a],w.isArray(l)&&(s=l[1],l=g[a]=l[0]),a!==i&&(g[i]=l,delete g[a]),c=w.cssHooks[i],c&&"expand"in c)for(a in l=c.expand(l),delete g[i],l)a in g||(g[a]=l[a],y[a]=s);else y[i]=s;for(;u<d;u++)if(n=at[u].call(h,r,m,h.opts))return n;return w.map(m,ne,h),w.isFunction(h.opts.start)&&h.opts.start.call(r,h),w.fx.timer(w.extend(f,{elem:r,anim:h,queue:h.opts.queue})),h.progress(h.opts.progress).done(h.opts.done,h.opts.complete).fail(h.opts.fail).always(h.opts.always)}function re(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,a=0,r=e.toLowerCase().match(C)||[];if(w.isFunction(t))for(;n=r[a++];)"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function oe(t,a,r,o){function i(e){var n;return s[e]=!0,w.each(t[e]||[],function(e,t){t=t(a,r,o);return"string"!=typeof t||l||s[t]?l?!(n=t):void 0:(a.dataTypes.unshift(t),i(t),!1)}),n}var s={},l=t===yt;return i(a.dataTypes[0])||!s["*"]&&i("*")}function ie(e,t){var n,a,r=w.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:a=a||{})[n]=t[n]);return a&&w.extend(!0,e,a),e}function se(e){return w.isWindow(e)?e:9===e.nodeType&&e.defaultView}function le(e,t){return t.toUpperCase()}var a=[],u=a.slice,ce=a.concat,ue=a.push,r=a.indexOf,c={},de=c.toString,pe=c.hasOwnProperty,g={},y=h.document,w=function(e,t){return new w.fn.init(e,t)},fe=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,he=/^-ms-/,me=/-([\da-z])/gi,a=(w.fn=w.prototype={jquery:"2.1.1",constructor:w,selector:"",length:0,toArray:function(){return u.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:u.call(this)},pushStack:function(e){e=w.merge(this.constructor(),e);return e.prevObject=this,e.context=this.context,e},each:function(e,t){return w.each(this,e,t)},map:function(n){return this.pushStack(w.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,e=+e+(e<0?t:0);return this.pushStack(0<=e&&e<t?[this[e]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:ue,sort:a.sort,splice:a.splice},w.extend=w.fn.extend=function(){var e,t,n,a,r,o=arguments[0]||{},i=1,s=arguments.length,l=!1;for("boolean"==typeof o&&(l=o,o=arguments[i]||{},i++),"object"==typeof o||w.isFunction(o)||(o={}),i===s&&(o=this,i--);i<s;i++)if(null!=(e=arguments[i]))for(t in e)r=o[t],n=e[t],o!==n&&(l&&n&&(w.isPlainObject(n)||(a=w.isArray(n)))?(r=a?(a=!1,r&&w.isArray(r)?r:[]):r&&w.isPlainObject(r)?r:{},o[t]=w.extend(l,r,n)):void 0!==n&&(o[t]=n));return o},w.extend({expando:"jQuery"+("2.1.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===w.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!w.isArray(e)&&0<=e-parseFloat(e)},isPlainObject:function(e){return!("object"!==w.type(e)||e.nodeType||w.isWindow(e)||e.constructor&&!pe.call(e.constructor.prototype,"isPrototypeOf"))},isEmptyObject:function(e){for(var t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[de.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;(e=w.trim(e))&&(1===e.indexOf("use strict")?((t=y.createElement("script")).text=e,y.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(he,"ms-").replace(me,le)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var a,r=0,o=e.length,i=F(e);if(n){if(i)for(;r<o&&!1!==(a=t.apply(e[r],n));r++);else for(r in e)if(a=t.apply(e[r],n),!1===a)break}else if(i)for(;r<o&&!1!==(a=t.call(e[r],r,e[r]));r++);else for(r in e)if(a=t.call(e[r],r,e[r]),!1===a)break;return e},trim:function(e){return null==e?"":(e+"").replace(fe,"")},makeArray:function(e,t){t=t||[];return null!=e&&(F(Object(e))?w.merge(t,"string"==typeof e?[e]:e):ue.call(t,e)),t},inArray:function(e,t,n){return null==t?-1:r.call(t,e,n)},merge:function(e,t){for(var n=+t.length,a=0,r=e.length;a<n;a++)e[r++]=t[a];return e.length=r,e},grep:function(e,t,n){for(var a=[],r=0,o=e.length,i=!n;r<o;r++)!t(e[r],r)!=i&&a.push(e[r]);return a},map:function(e,t,n){var a,r=0,o=e.length,i=[];if(F(e))for(;r<o;r++)null!=(a=t(e[r],r,n))&&i.push(a);else for(r in e)a=t(e[r],r,n),null!=a&&i.push(a);return ce.apply([],i)},guid:1,proxy:function(e,t){var n,a;return"string"==typeof t&&(a=e[t],t=e,e=a),w.isFunction(e)?(n=u.call(arguments,2),(a=function(){return e.apply(t||this,n.concat(u.call(arguments)))}).guid=e.guid=e.guid||w.guid++,a):void 0},now:Date.now,support:g}),w.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){c["[object "+t+"]"]=t.toLowerCase()}),(q=>{function x(e,t,n,a){var r,o,i,s,l,c,u;if((t?t.ownerDocument||t:A)!==S&&m(t),n=n||[],!e||"string"!=typeof e)return n;if(1!==(r=(t=t||S).nodeType)&&9!==r)return[];if(g&&!a){if(c=me.exec(e))if(u=c[1]){if(9===r){if(!(s=t.getElementById(u))||!s.parentNode)return n;if(s.id===u)return n.push(s),n}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(u))&&v(t,s)&&s.id===u)return n.push(s),n}else{if(c[2])return k.apply(n,t.getElementsByTagName(e)),n;if((u=c[3])&&f.getElementsByClassName&&t.getElementsByClassName)return k.apply(n,t.getElementsByClassName(u)),n}if(f.qsa&&(!y||!y.test(e))){if(l=s=b,c=t,u=9===r&&e,1===r&&"object"!==t.nodeName.toLowerCase()){for(i=h(e),(s=t.getAttribute("id"))?l=s.replace(ye,"\\$&"):t.setAttribute("id",l),l="[id='"+l+"'] ",o=i.length;o--;)i[o]=l+p(i[o]);c=ge.test(e)&&U(t.parentNode)||t,u=i.join(",")}if(u)try{return k.apply(n,c.querySelectorAll(u)),n}catch(e){}finally{s||t.removeAttribute("id")}}}return Y(e.replace(O,"$1"),t,n,a)}function F(){function n(e,t){return a.push(e+" ")>C.cacheLength&&delete n[a.shift()],n[e+" "]=t}var a=[];return n}function n(e){return e[b]=!0,e}function t(e){var t=S.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function j(e,t){for(var n=e.split("|"),a=e.length;a--;)C.attrHandle[n[a]]=t}function R(e,t){var n=t&&e,a=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(a)return a;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function e(i){return n(function(o){return o=+o,n(function(e,t){for(var n,a=i([],e.length,o),r=a.length;r--;)e[n=a[r]]&&(e[n]=!(t[n]=e[n]))})})}function U(e){return e&&typeof e.getElementsByTagName!==T&&e}function _(){}function p(e){for(var t=0,n=e.length,a="";t<n;t++)a+=e[t].value;return a}function H(i,e,t){var s=e.dir,l=t&&"parentNode"===s,c=X++;return e.first?function(e,t,n){for(;e=e[s];)if(1===e.nodeType||l)return i(e,t,n)}:function(e,t,n){var a,r,o=[L,c];if(n){for(;e=e[s];)if((1===e.nodeType||l)&&i(e,t,n))return!0}else for(;e=e[s];)if(1===e.nodeType||l){if((a=(r=e[b]||(e[b]={}))[s])&&a[0]===L&&a[1]===c)return o[2]=a[2];if((r[s]=o)[2]=i(e,t,n))return!0}}}function B(r){return 1<r.length?function(e,t,n){for(var a=r.length;a--;)if(!r[a](e,t,n))return!1;return!0}:r[0]}function w(e,t,n,a,r){for(var o,i=[],s=0,l=e.length,c=null!=t;s<l;s++)(o=e[s])&&(!n||n(o,a,r))&&(i.push(o),c)&&t.push(s);return i}function G(f,h,m,g,y,e){return g&&!g[b]&&(g=G(g)),y&&!y[b]&&(y=G(y,e)),n(function(e,t,n,a){var r,o,i,s=[],l=[],c=t.length,u=e||((e,t,n)=>{for(var a=0,r=t.length;a<r;a++)x(e,t[a],n);return n})(h||"*",n.nodeType?[n]:n,[]),d=!f||!e&&h?u:w(u,s,f,n,a),p=m?y||(e?f:c||g)?[]:t:d;if(m&&m(d,p,n,a),g)for(r=w(p,l),g(r,[],n,a),o=r.length;o--;)(i=r[o])&&(p[l[o]]=!(d[l[o]]=i));if(e){if(y||f){if(y){for(r=[],o=p.length;o--;)(i=p[o])&&r.push(d[o]=i);y(null,p=[],r,a)}for(o=p.length;o--;)(i=p[o])&&-1<(r=y?$.call(e,i):s[o])&&(e[r]=!(t[r]=i))}}else p=w(p===t?p.splice(c,p.length):p),y?y(null,t,p,a):k.apply(t,p)})}function W(g,y){function e(e,t,n,a,r){var o,i,s,l=0,c="0",u=e&&[],d=[],p=E,f=e||b&&C.find.TAG("*",r),h=L+=null==p?1:Math.random()||.1,m=f.length;for(r&&(E=t!==S&&t);c!==m&&null!=(o=f[c]);c++){if(b&&o){for(i=0;s=g[i++];)if(s(o,t,n)){a.push(o);break}r&&(L=h)}v&&((o=!s&&o)&&l--,e)&&u.push(o)}if(l+=c,v&&c!==l){for(i=0;s=y[i++];)s(u,d,t,n);if(e){if(0<l)for(;c--;)u[c]||d[c]||(d[c]=te.call(a));d=w(d)}k.apply(a,d),r&&!e&&0<d.length&&1<l+y.length&&x.uniqueSort(a)}return r&&(L=h,E=p),u}var v=0<y.length,b=0<g.length;return v?n(e):e}function d(e,t,n){var a="0x"+t-65536;return a!=a||n?t:a<0?String.fromCharCode(65536+a):String.fromCharCode(a>>10|55296,1023&a|56320)}var a,f,C,o,V,h,z,Y,E,c,u,m,S,r,g,y,i,s,v,b="sizzle"+-new Date,A=q.document,L=0,X=0,Q=F(),J=F(),K=F(),Z=function(e,t){return e===t&&(u=!0),0},T="undefined",ee={}.hasOwnProperty,l=[],te=l.pop,ne=l.push,k=l.push,ae=l.slice,$=l.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},re="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",N="[\\x20\\t\\r\\n\\f]",P="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",oe=P.replace("w","w#"),ie="\\["+N+"*("+P+")(?:"+N+"*([*^$|!~]?=)"+N+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+oe+"))|)"+N+"*\\]",se=":("+P+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ie+")*)|.*)\\)|)",O=new RegExp("^"+N+"+|((?:^|[^\\\\])(?:\\\\.)*)"+N+"+$","g"),le=new RegExp("^"+N+"*,"+N+"*"),ce=new RegExp("^"+N+"*([>+~]|"+N+")"+N+"*"),ue=new RegExp("="+N+"*([^\\]'\"]*?)"+N+"*\\]","g"),de=new RegExp(se),pe=new RegExp("^"+oe+"$"),M={ID:new RegExp("^#("+P+")"),CLASS:new RegExp("^\\.("+P+")"),TAG:new RegExp("^("+P.replace("w","w*")+")"),ATTR:new RegExp("^"+ie),PSEUDO:new RegExp("^"+se),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+N+"*(even|odd|(([+-]|)(\\d*)n|)"+N+"*(?:([+-]|)"+N+"*(\\d+)|))"+N+"*\\)|)","i"),bool:new RegExp("^(?:"+re+")$","i"),needsContext:new RegExp("^"+N+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+N+"*((?:-\\d)?\\d*)"+N+"*\\)|)(?=[^-]|$)","i")},fe=/^(?:input|select|textarea|button)$/i,he=/^h\d$/i,I=/^[^{]+\{\s*\[native \w/,me=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ge=/[+~]/,ye=/'|\\/g,D=new RegExp("\\\\([\\da-f]{1,6}"+N+"?|("+N+")|.)","ig");try{k.apply(l=ae.call(A.childNodes),A.childNodes),l[A.childNodes.length].nodeType}catch(e){k={apply:l.length?function(e,t){ne.apply(e,ae.call(t))}:function(e,t){for(var n=e.length,a=0;e[n++]=t[a++];);e.length=n-1}}}for(a in f=x.support={},V=x.isXML=function(e){e=e&&(e.ownerDocument||e).documentElement;return!!e&&"HTML"!==e.nodeName},m=x.setDocument=function(e){var l=e?e.ownerDocument||e:A,e=l.defaultView;return l!==S&&9===l.nodeType&&l.documentElement?(r=(S=l).documentElement,g=!V(l),e&&e!==e.top&&(e.addEventListener?e.addEventListener("unload",function(){m()},!1):e.attachEvent&&e.attachEvent("onunload",function(){m()})),f.attributes=t(function(e){return e.className="i",!e.getAttribute("className")}),f.getElementsByTagName=t(function(e){return e.appendChild(l.createComment("")),!e.getElementsByTagName("*").length}),f.getElementsByClassName=I.test(l.getElementsByClassName)&&t(function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),f.getById=t(function(e){return r.appendChild(e).id=b,!l.getElementsByName||!l.getElementsByName(b).length}),f.getById?(C.find.ID=function(e,t){if(typeof t.getElementById!==T&&g)return(t=t.getElementById(e))&&t.parentNode?[t]:[]},C.filter.ID=function(e){var t=e.replace(D,d);return function(e){return e.getAttribute("id")===t}}):(delete C.find.ID,C.filter.ID=function(e){var t=e.replace(D,d);return function(e){e=typeof e.getAttributeNode!==T&&e.getAttributeNode("id");return e&&e.value===t}}),C.find.TAG=f.getElementsByTagName?function(e,t){return typeof t.getElementsByTagName!==T?t.getElementsByTagName(e):void 0}:function(e,t){var n,a=[],r=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[r++];)1===n.nodeType&&a.push(n);return a},C.find.CLASS=f.getElementsByClassName&&function(e,t){return typeof t.getElementsByClassName!==T&&g?t.getElementsByClassName(e):void 0},i=[],y=[],(f.qsa=I.test(l.querySelectorAll))&&(t(function(e){e.innerHTML="<select msallowclip=''><option selected=''></option></select>",e.querySelectorAll("[msallowclip^='']").length&&y.push("[*^$]="+N+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||y.push("\\["+N+"*(?:value|"+re+")"),e.querySelectorAll(":checked").length||y.push(":checked")}),t(function(e){var t=l.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&y.push("name"+N+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||y.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),y.push(",.*:")})),(f.matchesSelector=I.test(s=r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.oMatchesSelector||r.msMatchesSelector))&&t(function(e){f.disconnectedMatch=s.call(e,"div"),s.call(e,"[s!='']:x"),i.push("!=",se)}),y=y.length&&new RegExp(y.join("|")),i=i.length&&new RegExp(i.join("|")),e=I.test(r.compareDocumentPosition),v=e||I.test(r.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},Z=e?function(e,t){var n;return e===t?(u=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!f.sortDetached&&t.compareDocumentPosition(e)===n?e===l||e.ownerDocument===A&&v(A,e)?-1:t===l||t.ownerDocument===A&&v(A,t)?1:c?$.call(c,e)-$.call(c,t):0:4&n?-1:1)}:function(e,t){if(e===t)return u=!0,0;var n,a=0,r=e.parentNode,o=t.parentNode,i=[e],s=[t];if(!r||!o)return e===l?-1:t===l?1:r?-1:o?1:c?$.call(c,e)-$.call(c,t):0;if(r===o)return R(e,t);for(n=e;n=n.parentNode;)i.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;i[a]===s[a];)a++;return a?R(i[a],s[a]):i[a]===A?-1:s[a]===A?1:0},l):S},x.matches=function(e,t){return x(e,null,null,t)},x.matchesSelector=function(e,t){if((e.ownerDocument||e)!==S&&m(e),t=t.replace(ue,"='$1']"),!(!f.matchesSelector||!g||i&&i.test(t)||y&&y.test(t)))try{var n=s.call(e,t);if(n||f.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0<x(t,S,null,[e]).length},x.contains=function(e,t){return(e.ownerDocument||e)!==S&&m(e),v(e,t)},x.attr=function(e,t){(e.ownerDocument||e)!==S&&m(e);var n=C.attrHandle[t.toLowerCase()],n=n&&ee.call(C.attrHandle,t.toLowerCase())?n(e,t,!g):void 0;return void 0!==n?n:f.attributes||!g?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},x.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},x.uniqueSort=function(e){var t,n=[],a=0,r=0;if(u=!f.detectDuplicates,c=!f.sortStable&&e.slice(0),e.sort(Z),u){for(;t=e[r++];)t===e[r]&&(a=n.push(r));for(;a--;)e.splice(n[a],1)}return c=null,e},o=x.getText=function(e){var t,n="",a=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[a++];)n+=o(t);return n},(C=x.selectors={cacheLength:50,createPseudo:n,match:M,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(D,d),e[3]=(e[3]||e[4]||e[5]||"").replace(D,d),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||x.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&x.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return M.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&de.test(n)&&(t=(t=h(n,!0))&&n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(D,d).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=Q[e+" "];return t||(t=new RegExp("(^|"+N+")"+e+"("+N+"|$)"))&&Q(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==T&&e.getAttribute("class")||"")})},ATTR:function(t,n,a){return function(e){e=x.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===a:"!="===n?e!==a:"^="===n?a&&0===e.indexOf(a):"*="===n?a&&-1<e.indexOf(a):"$="===n?a&&e.slice(-a.length)===a:"~="===n?-1<(" "+e+" ").indexOf(a):"|="===n&&(e===a||e.slice(0,a.length+1)===a+"-"))}},CHILD:function(f,e,t,h,m){var g="nth"!==f.slice(0,3),y="last"!==f.slice(-4),v="of-type"===e;return 1===h&&0===m?function(e){return!!e.parentNode}:function(e,t,n){var a,r,o,i,s,l,c=g!=y?"nextSibling":"previousSibling",u=e.parentNode,d=v&&e.nodeName.toLowerCase(),p=!n&&!v;if(u){if(g){for(;c;){for(o=e;o=o[c];)if(v?o.nodeName.toLowerCase()===d:1===o.nodeType)return!1;l=c="only"===f&&!l&&"nextSibling"}return!0}if(l=[y?u.firstChild:u.lastChild],y&&p){for(s=(a=(r=u[b]||(u[b]={}))[f]||[])[0]===L&&a[1],i=a[0]===L&&a[2],o=s&&u.childNodes[s];o=++s&&o&&o[c]||(i=s=0,l.pop());)if(1===o.nodeType&&++i&&o===e){r[f]=[L,s,i];break}}else if(p&&(a=(e[b]||(e[b]={}))[f])&&a[0]===L)i=a[1];else for(;(o=++s&&o&&o[c]||(i=s=0,l.pop()))&&((v?o.nodeName.toLowerCase()!==d:1!==o.nodeType)||!++i||(p&&((o[b]||(o[b]={}))[f]=[L,i]),o!==e)););return(i-=m)===h||i%h==0&&0<=i/h}}},PSEUDO:function(e,o){var t,i=C.pseudos[e]||C.setFilters[e.toLowerCase()]||x.error("unsupported pseudo: "+e);return i[b]?i(o):1<i.length?(t=[e,e,"",o],C.setFilters.hasOwnProperty(e.toLowerCase())?n(function(e,t){for(var n,a=i(e,o),r=a.length;r--;)e[n=$.call(e,a[r])]=!(t[n]=a[r])}):function(e){return i(e,0,t)}):i}},pseudos:{not:n(function(e){var a=[],r=[],s=z(e.replace(O,"$1"));return s[b]?n(function(e,t,n,a){for(var r,o=s(e,null,a,[]),i=e.length;i--;)(r=o[i])&&(e[i]=!(t[i]=r))}):function(e,t,n){return a[0]=e,s(a,null,n,r),!r.pop()}}),has:n(function(t){return function(e){return 0<x(t,e).length}}),contains:n(function(t){return function(e){return-1<(e.textContent||e.innerText||o(e)).indexOf(t)}}),lang:n(function(n){return pe.test(n||"")||x.error("unsupported lang: "+n),n=n.replace(D,d).toLowerCase(),function(e){var t;do{if(t=g?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=q.location&&q.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===r},focus:function(e){return e===S.activeElement&&(!S.hasFocus||S.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!C.pseudos.empty(e)},header:function(e){return he.test(e.nodeName)},input:function(e){return fe.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(e=e.getAttribute("type"))||"text"===e.toLowerCase())},first:e(function(){return[0]}),last:e(function(e,t){return[t-1]}),eq:e(function(e,t,n){return[n<0?n+t:n]}),even:e(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:e(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:e(function(e,t,n){for(var a=n<0?n+t:n;0<=--a;)e.push(a);return e}),gt:e(function(e,t,n){for(var a=n<0?n+t:n;++a<t;)e.push(a);return e})}}).pseudos.nth=C.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})C.pseudos[a]=(t=>function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t})(a);for(a in{submit:!0,reset:!0})C.pseudos[a]=(n=>function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n})(a);return _.prototype=C.filters=C.pseudos,C.setFilters=new _,h=x.tokenize=function(e,t){var n,a,r,o,i,s,l,c=J[e+" "];if(c)return t?0:c.slice(0);for(i=e,s=[],l=C.preFilter;i;){for(o in n&&!(a=le.exec(i))||(a&&(i=i.slice(a[0].length)||i),s.push(r=[])),n=!1,(a=ce.exec(i))&&(n=a.shift(),r.push({value:n,type:a[0].replace(O," ")}),i=i.slice(n.length)),C.filter)!(a=M[o].exec(i))||l[o]&&!(a=l[o](a))||(n=a.shift(),r.push({value:n,type:o,matches:a}),i=i.slice(n.length));if(!n)break}return t?i.length:i?x.error(e):J(e,s).slice(0)},z=x.compile=function(e,t){var n,a=[],r=[],o=K[e+" "];if(!o){for(n=(t=t||h(e)).length;n--;)((o=function e(t){for(var a,n,r,o=t.length,i=C.relative[t[0].type],s=i||C.relative[" "],l=i?1:0,c=H(function(e){return e===a},s,!0),u=H(function(e){return-1<$.call(a,e)},s,!0),d=[function(e,t,n){return!i&&(n||t!==E)||((a=t).nodeType?c:u)(e,t,n)}];l<o;l++)if(n=C.relative[t[l].type])d=[H(B(d),n)];else{if((n=C.filter[t[l].type].apply(null,t[l].matches))[b]){for(r=++l;r<o&&!C.relative[t[r].type];r++);return G(1<l&&B(d),1<l&&p(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(O,"$1"),n,l<r&&e(t.slice(l,r)),r<o&&e(t=t.slice(r)),r<o&&p(t))}d.push(n)}return B(d)}(t[n]))[b]?a:r).push(o);(o=K(e,W(r,a))).selector=e}return o},Y=x.select=function(e,t,n,a){var r,o,i,s,l,c="function"==typeof e&&e,u=!a&&h(e=c.selector||e);if(n=n||[],1===u.length){if(2<(o=u[0]=u[0].slice(0)).length&&"ID"===(i=o[0]).type&&f.getById&&9===t.nodeType&&g&&C.relative[o[1].type]){if(!(t=(C.find.ID(i.matches[0].replace(D,d),t)||[])[0]))return n;c&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=M.needsContext.test(e)?0:o.length;r--&&(i=o[r],!C.relative[s=i.type]);)if((l=C.find[s])&&(a=l(i.matches[0].replace(D,d),ge.test(o[0].type)&&U(t.parentNode)||t))){if(o.splice(r,1),e=a.length&&p(o))break;return k.apply(n,a),n}}return(c||z(e,u))(a,t,!g,n,ge.test(e)&&U(t.parentNode)||t),n},f.sortStable=b.split("").sort(Z).join("")===b,f.detectDuplicates=!!u,m(),f.sortDetached=t(function(e){return 1&e.compareDocumentPosition(S.createElement("div"))}),t(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||j("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),f.attributes&&t(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||j("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),t(function(e){return null==e.getAttribute("disabled")})||j(re,function(e,t,n){return n?void 0:!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),x})(h)),ge=(w.find=a,w.expr=a.selectors,w.expr[":"]=w.expr.pseudos,w.unique=a.uniqueSort,w.text=a.getText,w.isXMLDoc=a.isXML,w.contains=a.contains,w.expr.match.needsContext),ye=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ve=/^.[^:#\[\.,]*$/;w.filter=function(e,t,n){var a=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===a.nodeType?w.find.matchesSelector(a,e)?[a]:[]:w.find.matches(e,w.grep(t,function(e){return 1===e.nodeType}))},w.fn.extend({find:function(e){var t,n=this.length,a=[],r=this;if("string"!=typeof e)return this.pushStack(w(e).filter(function(){for(t=0;t<n;t++)if(w.contains(r[t],this))return!0}));for(t=0;t<n;t++)w.find(e,r[t],a);return(a=this.pushStack(1<n?w.unique(a):a)).selector=this.selector?this.selector+" "+e:e,a},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&ge.test(e)?w(e):e||[],!1).length}});function v(e,t){return"none"===w.css(e=t||e,"display")||!w.contains(e.ownerDocument,e)}var d,be,xe=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,we=((w.fn.init=function(e,t){var n,a;if(e){if("string"!=typeof e)return e.nodeType?(this.context=this[0]=e,this.length=1,this):w.isFunction(e)?void 0!==d.ready?d.ready(e):e(w):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),w.makeArray(e,this));if(!(n="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:xe.exec(e))||!n[1]&&t)return(!t||t.jquery?t||d:this.constructor(t)).find(e);if(n[1]){if(t=t instanceof w?t[0]:t,w.merge(this,w.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:y,!0)),ye.test(n[1])&&w.isPlainObject(t))for(n in t)w.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n])}else(a=y.getElementById(n[2]))&&a.parentNode&&(this.length=1,this[0]=a),this.context=y,this.selector=e}return this}).prototype=w.fn,d=w(y),/^(?:parents|prev(?:Until|All))/),Ce={children:!0,contents:!0,next:!0,prev:!0},C=(w.extend({dir:function(e,t,n){for(var a=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&w(e).is(n))break;a.push(e)}return a},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),w.fn.extend({has:function(e){var t=w(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(w.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,a=0,r=this.length,o=[],i=ge.test(e)||"string"!=typeof e?w(e,t||this.context):0;a<r;a++)for(n=this[a];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(i?-1<i.index(n):1===n.nodeType&&w.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?w.unique(o):o)},index:function(e){return e?"string"==typeof e?r.call(w(e),this[0]):r.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(w.unique(w.merge(this.get(),w(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),w.each({parent:function(e){e=e.parentNode;return e&&11!==e.nodeType?e:null},parents:function(e){return w.dir(e,"parentNode")},parentsUntil:function(e,t,n){return w.dir(e,"parentNode",n)},next:function(e){return R(e,"nextSibling")},prev:function(e){return R(e,"previousSibling")},nextAll:function(e){return w.dir(e,"nextSibling")},prevAll:function(e){return w.dir(e,"previousSibling")},nextUntil:function(e,t,n){return w.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return w.dir(e,"previousSibling",n)},siblings:function(e){return w.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return w.sibling(e.firstChild)},contents:function(e){return e.contentDocument||w.merge([],e.childNodes)}},function(a,r){w.fn[a]=function(e,t){var n=w.map(this,r,e);return(t="Until"!==a.slice(-5)?e:t)&&"string"==typeof t&&(n=w.filter(t,n)),1<this.length&&(Ce[a]||w.unique(n),we.test(a))&&n.reverse(),this.pushStack(n)}}),/\S+/g),Ee={},p=(w.Callbacks=function(r){var e,n;r="string"==typeof r?Ee[r]||(n=Ee[e=r]={},w.each(e.match(C)||[],function(e,t){n[t]=!0}),n):w.extend({},r);function a(e){for(t=r.memory&&e,o=!0,c=s||0,s=0,l=u.length,i=!0;u&&c<l;c++)if(!1===u[c].apply(e[0],e[1])&&r.stopOnFalse){t=!1;break}i=!1,u&&(d?d.length&&a(d.shift()):t?u=[]:p.disable())}var t,o,i,s,l,c,u=[],d=!r.once&&[],p={add:function(){var e;return u&&(e=u.length,function a(e){w.each(e,function(e,t){var n=w.type(t);"function"===n?r.unique&&p.has(t)||u.push(t):t&&t.length&&"string"!==n&&a(t)})}(arguments),i?l=u.length:t&&(s=e,a(t))),this},remove:function(){return u&&w.each(arguments,function(e,t){for(var n;-1<(n=w.inArray(t,u,n));)u.splice(n,1),i&&(n<=l&&l--,n<=c)&&c--}),this},has:function(e){return e?-1<w.inArray(e,u):!(!u||!u.length)},empty:function(){return u=[],l=0,this},disable:function(){return u=d=t=void 0,this},disabled:function(){return!u},lock:function(){return d=void 0,t||p.disable(),this},locked:function(){return!d},fireWith:function(e,t){return!u||o&&!d||(t=[e,(t=t||[]).slice?t.slice():t],i?d.push(t):a(t)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!o}};return p},w.extend({Deferred:function(e){var o=[["resolve","done",w.Callbacks("once memory"),"resolved"],["reject","fail",w.Callbacks("once memory"),"rejected"],["notify","progress",w.Callbacks("memory")]],r="pending",i={state:function(){return r},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var r=arguments;return w.Deferred(function(a){w.each(o,function(e,t){var n=w.isFunction(r[e])&&r[e];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&w.isFunction(e.promise)?e.promise().done(a.resolve).fail(a.reject).progress(a.notify):a[t[0]+"With"](this===i?a.promise():this,n?[e]:arguments)})}),r=null}).promise()},promise:function(e){return null!=e?w.extend(e,i):i}},s={};return i.pipe=i.then,w.each(o,function(e,t){var n=t[2],a=t[3];i[t[1]]=n.add,a&&n.add(function(){r=a},o[1^e][2].disable,o[2][2].lock),s[t[0]]=function(){return s[t[0]+"With"](this===s?i:this,arguments),this},s[t[0]+"With"]=n.fireWith}),i.promise(s),e&&e.call(s,s),s},when:function(e){function t(t,n,a){return function(e){n[t]=this,a[t]=1<arguments.length?u.call(arguments):e,a===r?c.notifyWith(n,a):--l||c.resolveWith(n,a)}}var r,n,a,o=0,i=u.call(arguments),s=i.length,l=1!==s||e&&w.isFunction(e.promise)?s:0,c=1===l?e:w.Deferred();if(1<s)for(r=new Array(s),n=new Array(s),a=new Array(s);o<s;o++)i[o]&&w.isFunction(i[o].promise)?i[o].promise().done(t(o,a,i)).fail(c.reject).progress(t(o,n,r)):--l;return l||c.resolveWith(a,i),c.promise()}}),w.fn.ready=function(e){return w.ready.promise().done(e),this},w.extend({isReady:!1,readyWait:1,holdReady:function(e){e?w.readyWait++:w.ready(!0)},ready:function(e){(!0===e?--w.readyWait:w.isReady)||(w.isReady=!0)!==e&&0<--w.readyWait||(be.resolveWith(y,[w]),w.fn.triggerHandler&&(w(y).triggerHandler("ready"),w(y).off("ready")))}}),w.ready.promise=function(e){return be||(be=w.Deferred(),"complete"===y.readyState?setTimeout(w.ready):(y.addEventListener("DOMContentLoaded",t,!1),h.addEventListener("load",t,!1))),be.promise(e)},w.ready.promise(),w.access=function(e,t,n,a,r,o,i){var s=0,l=e.length,c=null==n;if("object"===w.type(n))for(s in r=!0,n)w.access(e,t,s,n[s],!0,o,i);else if(void 0!==a&&(r=!0,w.isFunction(a)||(i=!0),t=c?i?(t.call(e,a),null):(c=t,function(e,t,n){return c.call(w(e),n)}):t))for(;s<l;s++)t(e[s],n,i?a:a.call(e[s],s,t(e[s],n)));return r?e:c?t.call(e):l?t(e[0],n):o}),b=(w.acceptData=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType},e.uid=1,e.accepts=w.acceptData,e.prototype={key:function(t){if(!e.accepts(t))return 0;var n={},a=t[this.expando];if(!a){a=e.uid++;try{n[this.expando]={value:a},Object.defineProperties(t,n)}catch(e){n[this.expando]=a,w.extend(t,n)}}return this.cache[a]||(this.cache[a]={}),a},set:function(e,t,n){var a,e=this.key(e),r=this.cache[e];if("string"==typeof t)r[t]=n;else if(w.isEmptyObject(r))w.extend(this.cache[e],t);else for(a in t)r[a]=t[a];return r},get:function(e,t){e=this.cache[this.key(e)];return void 0===t?e:e[t]},access:function(e,t,n){var a;return void 0===t||t&&"string"==typeof t&&void 0===n?void 0!==(a=this.get(e,t))?a:this.get(e,w.camelCase(t)):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,a,e=this.key(e),r=this.cache[e];if(void 0===t)this.cache[e]={};else{n=(a=w.isArray(t)?t.concat(t.map(w.camelCase)):(e=w.camelCase(t),t in r?[t,e]:(a=e)in r?[a]:a.match(C)||[])).length;for(;n--;)delete r[a[n]]}},hasData:function(e){return!w.isEmptyObject(this.cache[e[this.expando]]||{})},discard:function(e){e[this.expando]&&delete this.cache[e[this.expando]]}},new e),f=new e,Se=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ae=/([A-Z])/g,a=(w.extend({hasData:function(e){return f.hasData(e)||b.hasData(e)},data:function(e,t,n){return f.access(e,t,n)},removeData:function(e,t){f.remove(e,t)},_data:function(e,t,n){return b.access(e,t,n)},_removeData:function(e,t){b.remove(e,t)}}),w.fn.extend({data:function(a,e){var t,n,r,o=this[0],i=o&&o.attributes;if(void 0!==a)return"object"==typeof a?this.each(function(){f.set(this,a)}):p(this,function(t){var e,n=w.camelCase(a);if(o&&void 0===t)return void 0!==(e=f.get(o,a))||void 0!==(e=f.get(o,n))||void 0!==(e=U(o,n,void 0))?e:void 0;this.each(function(){var e=f.get(this,n);f.set(this,n,t),-1!==a.indexOf("-")&&void 0!==e&&f.set(this,a,t)})},null,e,1<arguments.length,null,!0);if(this.length&&(r=f.get(o),1===o.nodeType)&&!b.get(o,"hasDataAttrs")){for(t=i.length;t--;)i[t]&&0===(n=i[t].name).indexOf("data-")&&(n=w.camelCase(n.slice(5)),U(o,n,r[n]));b.set(o,"hasDataAttrs",!0)}return r},removeData:function(e){return this.each(function(){f.remove(this,e)})}}),w.extend({queue:function(e,t,n){var a;return e?(a=b.get(e,t=(t||"fx")+"queue"),n&&(!a||w.isArray(n)?a=b.access(e,t,w.makeArray(n)):a.push(n)),a||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=w.queue(e,t),a=n.length,r=n.shift(),o=w._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),a--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,function(){w.dequeue(e,t)},o)),!a&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return b.get(e,n)||b.access(e,n,{empty:w.Callbacks("once memory").add(function(){b.remove(e,[t+"queue",n])})})}}),w.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?w.queue(this[0],t):void 0===n?this:this.each(function(){var e=w.queue(this,t,n);w._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&w.dequeue(this,t)})},dequeue:function(e){return this.each(function(){w.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function n(){--r||o.resolveWith(i,[i])}var a,r=1,o=w.Deferred(),i=this,s=this.length;for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(a=b.get(i[s],e+"queueHooks"))&&a.empty&&(r++,a.empty.add(n));return n(),o.promise(t)}}),/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source),x=["Top","Right","Bottom","Left"],Le=/^(?:checkbox|radio)$/i,E=(N=y.createDocumentFragment().appendChild(y.createElement("div")),($=y.createElement("input")).setAttribute("type","radio"),$.setAttribute("checked","checked"),$.setAttribute("name","t"),N.appendChild($),g.checkClone=N.cloneNode(!0).cloneNode(!0).lastChild.checked,N.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!N.cloneNode(!0).lastChild.defaultValue,"undefined"),Te=(g.focusinBubbles="onfocusin"in h,/^key/),ke=/^(?:mouse|pointer|contextmenu)|click/,$e=/^(?:focusinfocus|focusoutblur)$/,Ne=/^([^.]*)(?:\.(.+)|)$/,Pe=(w.event={global:{},add:function(t,e,n,a,r){var o,i,s,l,c,u,d,p,f,h=b.get(t);if(h)for(n.handler&&(n=(o=n).handler,r=o.selector),n.guid||(n.guid=w.guid++),s=(s=h.events)||(h.events={}),i=(i=h.handle)||(h.handle=function(e){return typeof w!=E&&w.event.triggered!==e.type?w.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(C)||[""]).length;l--;)d=f=(p=Ne.exec(e[l])||[])[1],p=(p[2]||"").split(".").sort(),d&&(c=w.event.special[d]||{},d=(r?c.delegateType:c.bindType)||d,c=w.event.special[d]||{},f=w.extend({type:d,origType:f,data:a,handler:n,guid:n.guid,selector:r,needsContext:r&&w.expr.match.needsContext.test(r),namespace:p.join(".")},o),(u=s[d])||((u=s[d]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(t,a,p,i))||t.addEventListener&&t.addEventListener(d,i,{capture:!1,passive:-1<d.indexOf("touch")&&-1<d.indexOf("scroll")}),c.add&&(c.add.call(t,f),f.handler.guid||(f.handler.guid=n.guid)),r?u.splice(u.delegateCount++,0,f):u.push(f),w.event.global[d]=!0)},remove:function(e,t,n,a,r){var o,i,s,l,c,u,d,p,f,h,m,g=b.hasData(e)&&b.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(C)||[""]).length;c--;)if(f=m=(s=Ne.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),f){for(d=w.event.special[f]||{},p=l[f=(a?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=o=p.length;o--;)u=p[o],!r&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||a&&a!==u.selector&&("**"!==a||!u.selector)||(p.splice(o,1),u.selector&&p.delegateCount--,d.remove&&d.remove.call(e,u));i&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,h,g.handle)||w.removeEvent(e,f,g.handle),delete l[f])}else for(f in l)w.event.remove(e,f+t[c],n,a,!0);w.isEmptyObject(l)&&(delete g.handle,b.remove(e,"events"))}},trigger:function(e,t,n,a){var r,o,i,s,l,c,u=[n||y],d=pe.call(e,"type")?e.type:e,p=pe.call(e,"namespace")?e.namespace.split("."):[],f=o=n=n||y;if(3!==n.nodeType&&8!==n.nodeType&&!$e.test(d+w.event.triggered)&&(0<=d.indexOf(".")&&(d=(p=d.split(".")).shift(),p.sort()),s=d.indexOf(":")<0&&"on"+d,(e=e[w.expando]?e:new w.Event(d,"object"==typeof e&&e)).isTrigger=a?2:3,e.namespace=p.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:w.makeArray(t,[e]),c=w.event.special[d]||{},a||!c.trigger||!1!==c.trigger.apply(n,t))){if(!a&&!c.noBubble&&!w.isWindow(n)){for(i=c.delegateType||d,$e.test(i+d)||(f=f.parentNode);f;f=f.parentNode)u.push(f),o=f;o===(n.ownerDocument||y)&&u.push(o.defaultView||o.parentWindow||h)}for(r=0;(f=u[r++])&&!e.isPropagationStopped();)e.type=1<r?i:c.bindType||d,(l=(b.get(f,"events")||{})[e.type]&&b.get(f,"handle"))&&l.apply(f,t),(l=s&&f[s])&&l.apply&&w.acceptData(f)&&(e.result=l.apply(f,t),!1===e.result)&&e.preventDefault();return e.type=d,a||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(u.pop(),t)||!w.acceptData(n)||s&&w.isFunction(n[d])&&!w.isWindow(n)&&((o=n[s])&&(n[s]=null),n[w.event.triggered=d](),w.event.triggered=void 0,o)&&(n[s]=o),e.result}},dispatch:function(e){e=w.event.fix(e);var t,n,a,r,o,i=u.call(arguments),s=(b.get(this,"events")||{})[e.type]||[],l=w.event.special[e.type]||{};if((i[0]=e).delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,e)){for(o=w.event.handlers.call(this,e,s),t=0;(a=o[t++])&&!e.isPropagationStopped();)for(e.currentTarget=a.elem,n=0;(r=a.handlers[n++])&&!e.isImmediatePropagationStopped();)e.namespace_re&&!e.namespace_re.test(r.namespace)||(e.handleObj=r,e.data=r.data,void 0===(r=((w.event.special[r.origType]||{}).handle||r.handler).apply(a.elem,i)))||!1!==(e.result=r)||(e.preventDefault(),e.stopPropagation());return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,a,r,o,i=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!==this;l=l.parentNode||this)if(!0!==l.disabled||"click"!==e.type){for(a=[],n=0;n<s;n++)void 0===a[r=(o=t[n]).selector+" "]&&(a[r]=o.needsContext?0<=w(r,this).index(l):w.find(r,this,null,[l]).length),a[r]&&a.push(o);a.length&&i.push({elem:l,handlers:a})}return s<t.length&&i.push({elem:this,handlers:t.slice(s)}),i},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,a,r=t.button;return null==e.pageX&&null!=t.clientX&&(n=(a=e.target.ownerDocument||y).documentElement,a=a.body,e.pageX=t.clientX+(n&&n.scrollLeft||a&&a.scrollLeft||0)-(n&&n.clientLeft||a&&a.clientLeft||0),e.pageY=t.clientY+(n&&n.scrollTop||a&&a.scrollTop||0)-(n&&n.clientTop||a&&a.clientTop||0)),e.which||void 0===r||(e.which=1&r?1:2&r?3:4&r?2:0),e}},fix:function(e){if(e[w.expando])return e;var t,n,a,r=e.type,o=e,i=this.fixHooks[r];for(i||(this.fixHooks[r]=i=ke.test(r)?this.mouseHooks:Te.test(r)?this.keyHooks:{}),a=i.props?this.props.concat(i.props):this.props,e=new w.Event(o),t=a.length;t--;)e[n=a[t]]=o[n];return e.target||(e.target=y),3===e.target.nodeType&&(e.target=e.target.parentNode),i.filter?i.filter(e,o):e},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==_()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===_()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&w.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(e){return w.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,a){e=w.extend(new w.Event,n,{type:e,isSimulated:!0,originalEvent:{}});a?w.event.trigger(e,null,t):w.event.dispatch.call(t,e),e.isDefaultPrevented()&&n.preventDefault()}},w.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)},w.Event=function(e,t){return this instanceof w.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?n:s):this.type=e,t&&w.extend(this,t),this.timeStamp=e&&e.timeStamp||w.now(),void(this[w.expando]=!0)):new w.Event(e,t)},w.Event.prototype={isDefaultPrevented:s,isPropagationStopped:s,isImmediatePropagationStopped:s,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=n,e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=n,e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=n,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},w.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,r){w.event.special[e]={delegateType:r,bindType:r,handle:function(e){var t,n=e.relatedTarget,a=e.handleObj;return n&&(n===this||w.contains(this,n))||(e.type=a.origType,t=a.handler.apply(this,arguments),e.type=r),t}}}),g.focusinBubbles||w.each({focus:"focusin",blur:"focusout"},function(n,a){function r(e){w.event.simulate(a,e.target,w.event.fix(e),!0)}w.event.special[a]={setup:function(){var e=this.ownerDocument||this,t=b.access(e,a);t||e.addEventListener(n,r,!0),b.access(e,a,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=b.access(e,a)-1;t?b.access(e,a,t):(e.removeEventListener(n,r,!0),b.remove(e,a))}}}),w.fn.extend({on:function(e,t,n,a,r){var o,i;if("object"==typeof e){for(i in"string"!=typeof t&&(n=n||t,t=void 0),e)this.on(i,t,n,e[i],r);return this}if(null==n&&null==a?(a=t,n=t=void 0):null==a&&("string"==typeof t?(a=n,n=void 0):(a=n,n=t,t=void 0)),!1===a)a=s;else if(!a)return this;return 1===r&&(o=a,(a=function(e){return w().off(e),o.apply(this,arguments)}).guid=o.guid||(o.guid=w.guid++)),this.each(function(){w.event.add(this,e,a,n,t)})},one:function(e,t,n,a){return this.on(e,t,n,a,1)},off:function(e,t,n){var a,r;if(e&&e.preventDefault&&e.handleObj)a=e.handleObj,w(e.delegateTarget).off(a.namespace?a.origType+"."+a.namespace:a.origType,a.selector,a.handler);else{if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=s),this.each(function(){w.event.remove(this,e,n,t)});for(r in e)this.off(r,t,e[r])}return this},trigger:function(e,t){return this.each(function(){w.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?w.event.trigger(e,t,n,!0):void 0}}),/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi),Oe=/<([\w:]+)/,Me=/<|&#?\w+;/,Ie=/<(?:script|style|link)/i,De=/checked\s*(?:[^=]|=\s*.checked.)/i,qe=/^$|\/(?:java|ecma)script/i,Fe=/^true\/(.*)/,je=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,S={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};S.optgroup=S.option,S.tbody=S.tfoot=S.colgroup=S.caption=S.thead,S.th=S.td,w.extend({clone:function(e,t,n){var a,r,o,i,s,l,c,u=e.cloneNode(!0),d=w.contains(e.ownerDocument,e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||w.isXMLDoc(e)))for(i=m(u),a=0,r=(o=m(e)).length;a<r;a++)s=o[a],l=i[a],c=void 0,"input"===(c=l.nodeName.toLowerCase())&&Le.test(s.type)?l.checked=s.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=s.defaultValue);if(t)if(n)for(o=o||m(e),i=i||m(u),a=0,r=o.length;a<r;a++)V(o[a],i[a]);else V(e,u);return 0<(i=m(u,"script")).length&&W(i,!d&&m(e,"script")),u},buildFragment:function(e,t,n,a){for(var r,o,i,s,l,c=t.createDocumentFragment(),u=[],d=0,p=e.length;d<p;d++)if((r=e[d])||0===r)if("object"===w.type(r))w.merge(u,r.nodeType?[r]:r);else if(Me.test(r)){for(o=o||c.appendChild(t.createElement("div")),i=(Oe.exec(r)||["",""])[1].toLowerCase(),o.innerHTML=(i=S[i]||S._default)[1]+r.replace(Pe,"<$1></$2>")+i[2],l=i[0];l--;)o=o.lastChild;w.merge(u,o.childNodes),(o=c.firstChild).textContent=""}else u.push(t.createTextNode(r));for(c.textContent="",d=0;r=u[d++];)if((!a||-1===w.inArray(r,a))&&(s=w.contains(r.ownerDocument,r),o=m(c.appendChild(r),"script"),s&&W(o),n))for(l=0;r=o[l++];)qe.test(r.type||"")&&n.push(r);return c},cleanData:function(e){for(var t,n,a,r,o=w.event.special,i=0;void 0!==(n=e[i]);i++){if(w.acceptData(n)&&(r=n[b.expando])&&(t=b.cache[r])){if(t.events)for(a in t.events)o[a]?w.event.remove(n,a):w.removeEvent(n,a,t.handle);b.cache[r]&&delete b.cache[r]}delete f.cache[n[f.expando]]}}}),w.fn.extend({text:function(e){return p(this,function(e){return void 0===e?w.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||H(this,e).appendChild(e)})},prepend:function(){return this.domManip(arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=H(this,e)).insertBefore(e,t.firstChild)})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,a=e?w.filter(e,this):this,r=0;null!=(n=a[r]);r++)t||1!==n.nodeType||w.cleanData(m(n)),n.parentNode&&(t&&w.contains(n.ownerDocument,n)&&W(m(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(w.cleanData(m(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return w.clone(this,e,t)})},html:function(e){return p(this,function(e){var t=this[0]||{},n=0,a=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ie.test(e)&&!S[(Oe.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(Pe,"<$1></$2>");try{for(;n<a;n++)1===(t=this[n]||{}).nodeType&&(w.cleanData(m(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,w.cleanData(m(this)),t&&t.replaceChild(e,this)}),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(n,a){n=ce.apply([],n);var e,t,r,o,i,s,l=0,c=this.length,u=this,d=c-1,p=n[0],f=w.isFunction(p);if(f||1<c&&"string"==typeof p&&!g.checkClone&&De.test(p))return this.each(function(e){var t=u.eq(e);f&&(n[0]=p.call(this,e,t.html())),t.domManip(n,a)});if(c&&(t=(e=w.buildFragment(n,this[0].ownerDocument,!1,this)).firstChild,1===e.childNodes.length&&(e=t),t)){for(o=(r=w.map(m(e,"script"),B)).length;l<c;l++)i=e,l!==d&&(i=w.clone(i,!0,!0),o)&&w.merge(r,m(i,"script")),a.call(this[l],i,l);if(o)for(s=r[r.length-1].ownerDocument,w.map(r,G),l=0;l<o;l++)i=r[l],qe.test(i.type||"")&&!b.access(i,"globalEval")&&w.contains(s,i)&&(i.src?w._evalUrl&&w._evalUrl(i.src):w.globalEval(i.textContent.replace(je,"")))}return this}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,i){w.fn[e]=function(e){for(var t,n=[],a=w(e),r=a.length-1,o=0;o<=r;o++)t=o===r?this:this.clone(!0),w(a[o])[i](t),ue.apply(n,t.get());return this.pushStack(n)}});function Re(e){return e.ownerDocument.defaultView.getComputedStyle(e,null)}var Ue,_e,He,A,L,T,Be={},Ge=/^margin/,We=new RegExp("^("+a+")(?!px)[a-z%]+$","i");function Ve(){T.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",T.innerHTML="",A.appendChild(L);var e=h.getComputedStyle(T,null);_e="1%"!==e.top,He="4px"===e.width,A.removeChild(L)}A=y.documentElement,L=y.createElement("div"),(T=y.createElement("div")).style&&(T.style.backgroundClip="content-box",T.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===T.style.backgroundClip,L.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",L.appendChild(T),h.getComputedStyle)&&w.extend(g,{pixelPosition:function(){return Ve(),_e},boxSizingReliable:function(){return null==He&&Ve(),He},reliableMarginRight:function(){var e=T.appendChild(y.createElement("div"));return e.style.cssText=T.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",T.style.width="1px",A.appendChild(L),e=!parseFloat(h.getComputedStyle(e,null).marginRight),A.removeChild(L),e}}),w.swap=function(e,t,n,a){var r,o={};for(r in t)o[r]=e.style[r],e.style[r]=t[r];for(r in n=n.apply(e,a||[]),t)e.style[r]=o[r];return n};var ze=/^(none|table(?!-c[ea]).+)/,Ye=new RegExp("^("+a+")(.*)$","i"),Xe=new RegExp("^([+-])=("+a+")","i"),Qe={position:"absolute",visibility:"hidden",display:"block"},Je={letterSpacing:"0",fontWeight:"400"},Ke=["Webkit","O","Moz","ms"];w.extend({cssHooks:{opacity:{get:function(e,t){if(t)return""===(t=l(e,"opacity"))?"1":t}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,a){var r,o,i,s,l;if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style)return s=w.camelCase(t),l=e.style,t=w.cssProps[s]||(w.cssProps[s]=Q(l,s)),i=w.cssHooks[t]||w.cssHooks[s],void 0===n?i&&"get"in i&&void 0!==(r=i.get(e,!1,a))?r:l[t]:("string"===(o=typeof n)&&(r=Xe.exec(n))&&(n=(r[1]+1)*r[2]+parseFloat(w.css(e,t)),o="number"),void(null!=n&&n==n&&("number"!==o||w.cssNumber[s]||(n+="px"),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),i&&"set"in i&&void 0===(n=i.set(e,n,a))||(l[t]=n))))},css:function(e,t,n,a){var r,o=w.camelCase(t);return t=w.cssProps[o]||(w.cssProps[o]=Q(e.style,o)),"normal"===(r=void 0===(r=(o=w.cssHooks[t]||w.cssHooks[o])&&"get"in o?o.get(e,!0,n):r)?l(e,t,a):r)&&t in Je&&(r=Je[t]),(""===n||n)&&(o=parseFloat(r),!0===n||w.isNumeric(o))?o||0:r}}),w.each(["height","width"],function(e,r){w.cssHooks[r]={get:function(e,t,n){return t?ze.test(w.css(e,"display"))&&0===e.offsetWidth?w.swap(e,Qe,function(){return Z(e,r,n)}):Z(e,r,n):void 0},set:function(e,t,n){var a=n&&Re(e);return J(0,t,n?K(e,r,n,"border-box"===w.css(e,"boxSizing",!1,a),a):0)}}}),w.cssHooks.marginRight=X(g.reliableMarginRight,function(e,t){return t?w.swap(e,{display:"inline-block"},l,[e,"marginRight"]):void 0}),w.each({margin:"",padding:"",border:"Width"},function(r,o){w.cssHooks[r+o]={expand:function(e){for(var t=0,n={},a="string"==typeof e?e.split(" "):[e];t<4;t++)n[r+x[t]+o]=a[t]||a[t-2]||a[0];return n}},Ge.test(r)||(w.cssHooks[r+o].set=J)}),w.fn.extend({css:function(e,t){return p(this,function(e,t,n){var a,r,o={},i=0;if(w.isArray(t)){for(a=Re(e),r=t.length;i<r;i++)o[t[i]]=w.css(e,t[i],!1,a);return o}return void 0!==n?w.style(e,t,n):w.css(e,t)},e,t,1<arguments.length)},show:function(){return ee(this,!0)},hide:function(){return ee(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){v(this)?w(this).show():w(this).hide()})}}),((w.Tween=o).prototype={constructor:o,init:function(e,t,n,a,r,o){this.elem=e,this.prop=n,this.easing=r||"swing",this.options=t,this.start=this.now=this.cur(),this.end=a,this.unit=o||(w.cssNumber[n]?"":"px")},cur:function(){var e=o.propHooks[this.prop];return(e&&e.get?e:o.propHooks._default).get(this)},run:function(e){var t=o.propHooks[this.prop];return this.pos=e=this.options.duration?w.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(t&&t.set?t:o.propHooks._default).set(this),this}}).init.prototype=o.prototype,(o.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=w.css(e.elem,e.prop,""))&&"auto"!==t?t:0:e.elem[e.prop]},set:function(e){w.fx.step[e.prop]?w.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[w.cssProps[e.prop]]||w.cssHooks[e.prop])?w.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}}).scrollTop=o.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},w.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},w.fx=o.prototype.init,w.fx.step={};var k,Ze,$,N,et=/^(?:toggle|show|hide)$/,tt=new RegExp("^(?:([+-])=|)("+a+")([a-z%]*)$","i"),nt=/queueHooks$/,at=[function(t,e,n){var a,r,o,i,s,l,c,u=this,d={},p=t.style,f=t.nodeType&&v(t),h=b.get(t,"fxshow");for(a in n.queue||(null==(s=w._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,u.always(function(){u.always(function(){s.unqueued--,w.queue(t,"fx").length||s.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===("none"===(c=w.css(t,"display"))?b.get(t,"olddisplay")||Y(t.nodeName):c))&&"none"===w.css(t,"float")&&(p.display="inline-block"),n.overflow&&(p.overflow="hidden",u.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),e)if(r=e[a],et.exec(r)){if(delete e[a],o=o||"toggle"===r,r===(f?"hide":"show")){if("show"!==r||!h||void 0===h[a])continue;f=!0}d[a]=h&&h[a]||w.style(t,a)}else c=void 0;if(w.isEmptyObject(d))"inline"===("none"===c?Y(t.nodeName):c)&&(p.display=c);else for(a in h?"hidden"in h&&(f=h.hidden):h=b.access(t,"fxshow",{}),o&&(h.hidden=!f),f?w(t).show():u.done(function(){w(t).hide()}),u.done(function(){for(var e in b.remove(t,"fxshow"),d)w.style(t,e,d[e])}),d)i=ne(f?h[a]:0,a,u),a in h||(h[a]=i.start,f&&(i.end=i.start,i.start="width"===a||"height"===a?1:0))}],P={"*":[function(e,t){var n=this.createTween(e,t),a=n.cur(),t=tt.exec(t),r=t&&t[3]||(w.cssNumber[e]?"":"px"),o=(w.cssNumber[e]||"px"!==r&&+a)&&tt.exec(w.css(n.elem,e)),i=1,s=20;if(o&&o[3]!==r)for(r=r||o[3],t=t||[],o=+a||1;w.style(n.elem,e,(o/=i=i||".5")+r),i!==(i=n.cur()/a)&&1!==i&&--s;);return t&&(o=n.start=+o||+a||0,n.unit=r,n.end=t[1]?o+(t[1]+1)*t[2]:+t[2]),n}]};w.Animation=w.extend(ae,{tweener:function(e,t){for(var n,a=0,r=(e=w.isFunction(e)?(t=e,["*"]):e.split(" ")).length;a<r;a++)n=e[a],P[n]=P[n]||[],P[n].unshift(t)},prefilter:function(e,t){t?at.unshift(e):at.push(e)}}),w.speed=function(e,t,n){var a=e&&"object"==typeof e?w.extend({},e):{complete:n||!n&&t||w.isFunction(e)&&e,duration:e,easing:n&&t||t&&!w.isFunction(t)&&t};return a.duration=w.fx.off?0:"number"==typeof a.duration?a.duration:a.duration in w.fx.speeds?w.fx.speeds[a.duration]:w.fx.speeds._default,null!=a.queue&&!0!==a.queue||(a.queue="fx"),a.old=a.complete,a.complete=function(){w.isFunction(a.old)&&a.old.call(this),a.queue&&w.dequeue(this,a.queue)},a},w.fn.extend({fadeTo:function(e,t,n,a){return this.filter(v).css("opacity",0).show().end().animate({opacity:t},e,n,a)},animate:function(t,e,n,a){function r(){var e=ae(this,w.extend({},t),i);(o||b.get(this,"finish"))&&e.stop(!0)}var o=w.isEmptyObject(t),i=w.speed(e,n,a);return r.finish=r,o||!1===i.queue?this.each(r):this.queue(i.queue,r)},stop:function(r,e,o){function i(e){var t=e.stop;delete e.stop,t(o)}return"string"!=typeof r&&(o=e,e=r,r=void 0),e&&!1!==r&&this.queue(r||"fx",[]),this.each(function(){var e=!0,t=null!=r&&r+"queueHooks",n=w.timers,a=b.get(this);if(t)a[t]&&a[t].stop&&i(a[t]);else for(t in a)a[t]&&a[t].stop&&nt.test(t)&&i(a[t]);for(t=n.length;t--;)n[t].elem!==this||null!=r&&n[t].queue!==r||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||w.dequeue(this,r)})},finish:function(i){return!1!==i&&(i=i||"fx"),this.each(function(){var e,t=b.get(this),n=t[i+"queue"],a=t[i+"queueHooks"],r=w.timers,o=n?n.length:0;for(t.finish=!0,w.queue(this,i,[]),a&&a.stop&&a.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===i&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),w.each(["toggle","show","hide"],function(e,a){var r=w.fn[a];w.fn[a]=function(e,t,n){return null==e||"boolean"==typeof e?r.apply(this,arguments):this.animate(i(a,!0),e,t,n)}}),w.each({slideDown:i("show"),slideUp:i("hide"),slideToggle:i("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,a){w.fn[e]=function(e,t,n){return this.animate(a,e,t,n)}}),w.timers=[],w.fx.tick=function(){var e,t=0,n=w.timers;for(k=w.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||w.fx.stop(),k=void 0},w.fx.timer=function(e){w.timers.push(e),e()?w.fx.start():w.timers.pop()},w.fx.interval=13,w.fx.start=function(){Ze=Ze||setInterval(w.fx.tick,w.fx.interval)},w.fx.stop=function(){clearInterval(Ze),Ze=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(a,e){return a=w.fx&&w.fx.speeds[a]||a,this.queue(e=e||"fx",function(e,t){var n=setTimeout(e,a);t.stop=function(){clearTimeout(n)}})},$=y.createElement("input"),N=y.createElement("select"),a=N.appendChild(y.createElement("option")),$.type="checkbox",g.checkOn=""!==$.value,g.optSelected=a.selected,N.disabled=!0,g.optDisabled=!a.disabled,($=y.createElement("input")).value="t",$.type="radio",g.radioValue="t"===$.value;var rt,O=w.expr.attrHandle,ot=(w.fn.extend({attr:function(e,t){return p(this,w.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){w.removeAttr(this,e)})}}),w.extend({attr:function(e,t,n){var a,r,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return typeof e.getAttribute==E?w.prop(e,t,n):(1===o&&w.isXMLDoc(e)||(t=t.toLowerCase(),a=w.attrHooks[t]||(w.expr.match.bool.test(t)?rt:void 0)),void 0===n?!(a&&"get"in a&&null!==(r=a.get(e,t)))&&null==(r=w.find.attr(e,t))?void 0:r:null!==n?a&&"set"in a&&void 0!==(r=a.set(e,n,t))?r:(e.setAttribute(t,n+""),n):void w.removeAttr(e,t))},removeAttr:function(e,t){var n,a,r=0,o=t&&t.match(C);if(o&&1===e.nodeType)for(;n=o[r++];)a=w.propFix[n]||n,w.expr.match.bool.test(n)&&(e[a]=!1),e.removeAttribute(n)},attrHooks:{type:{set:function(e,t){var n;if(!g.radioValue&&"radio"===t&&w.nodeName(e,"input"))return n=e.value,e.setAttribute("type",t),n&&(e.value=n),t}}}}),rt={set:function(e,t,n){return!1===t?w.removeAttr(e,n):e.setAttribute(n,n),n}},w.each(w.expr.match.bool.source.match(/\w+/g),function(e,t){var o=O[t]||w.find.attr;O[t]=function(e,t,n){var a,r;return n||(r=O[t],O[t]=a,a=null!=o(e,t,n)?t.toLowerCase():null,O[t]=r),a}}),/^(?:input|select|textarea|button)$/i),it=(w.fn.extend({prop:function(e,t){return p(this,w.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[w.propFix[e]||e]})}}),w.extend({propFix:{for:"htmlFor",class:"className"},prop:function(e,t,n){var a,r,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return(1!==o||!w.isXMLDoc(e))&&(t=w.propFix[t]||t,r=w.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(a=r.set(e,n,t))?a:e[t]=n:r&&"get"in r&&null!==(a=r.get(e,t))?a:e[t]},propHooks:{tabIndex:{get:function(e){return e.hasAttribute("tabindex")||ot.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),g.optSelected||(w.propHooks.selected={get:function(e){e=e.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){w.propFix[this.toLowerCase()]=this}),/[\t\r\n\f]/g),st=(w.fn.extend({addClass:function(t){var e,n,a,r,o,i,s="string"==typeof t&&t,l=0,c=this.length;if(w.isFunction(t))return this.each(function(e){w(this).addClass(t.call(this,e,this.className))});if(s)for(e=(t||"").match(C)||[];l<c;l++)if(a=1===(n=this[l]).nodeType&&(n.className?(" "+n.className+" ").replace(it," "):" ")){for(o=0;r=e[o++];)a.indexOf(" "+r+" ")<0&&(a+=r+" ");i=w.trim(a),n.className!==i&&(n.className=i)}return this},removeClass:function(t){var e,n,a,r,o,i,s=0===arguments.length||"string"==typeof t&&t,l=0,c=this.length;if(w.isFunction(t))return this.each(function(e){w(this).removeClass(t.call(this,e,this.className))});if(s)for(e=(t||"").match(C)||[];l<c;l++)if(a=1===(n=this[l]).nodeType&&(n.className?(" "+n.className+" ").replace(it," "):"")){for(o=0;r=e[o++];)for(;0<=a.indexOf(" "+r+" ");)a=a.replace(" "+r+" "," ");i=t?w.trim(a):"",n.className!==i&&(n.className=i)}return this},toggleClass:function(r,t){var o=typeof r;return"boolean"==typeof t&&"string"==o?t?this.addClass(r):this.removeClass(r):this.each(w.isFunction(r)?function(e){w(this).toggleClass(r.call(this,e,this.className,t),t)}:function(){if("string"==o)for(var e,t=0,n=w(this),a=r.match(C)||[];e=a[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else o!=E&&"boolean"!=o||(this.className&&b.set(this,"__className__",this.className),this.className=!this.className&&!1!==r&&b.get(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,a=this.length;n<a;n++)if(1===this[n].nodeType&&0<=(" "+this[n].className+" ").replace(it," ").indexOf(t))return!0;return!1}}),/\r/g),lt=(w.fn.extend({val:function(t){var n,e,a,r=this[0];return arguments.length?(a=w.isFunction(t),this.each(function(e){1===this.nodeType&&(null==(e=a?t.call(this,e,w(this).val()):t)?e="":"number"==typeof e?e+="":w.isArray(e)&&(e=w.map(e,function(e){return null==e?"":e+""})),(n=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,e,"value")||(this.value=e))})):r?(n=w.valHooks[r.type]||w.valHooks[r.nodeName.toLowerCase()])&&"get"in n&&void 0!==(e=n.get(r,"value"))?e:"string"==typeof(e=r.value)?e.replace(st,""):null==e?"":e:void 0}}),w.extend({valHooks:{option:{get:function(e){var t=w.find.attr(e,"value");return null!=t?t:w.trim(w.text(e))}},select:{get:function(e){for(var t,n=e.options,a=e.selectedIndex,r="select-one"===e.type||a<0,o=r?null:[],i=r?a+1:n.length,s=a<0?i:r?a:0;s<i;s++)if(!(!(t=n[s]).selected&&s!==a||(g.optDisabled?t.disabled:null!==t.getAttribute("disabled"))||t.parentNode.disabled&&w.nodeName(t.parentNode,"optgroup"))){if(t=w(t).val(),r)return t;o.push(t)}return o},set:function(e,t){for(var n,a,r=e.options,o=w.makeArray(t),i=r.length;i--;)((a=r[i]).selected=0<=w.inArray(a.value,o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),w.each(["radio","checkbox"],function(){w.valHooks[this]={set:function(e,t){return w.isArray(t)?e.checked=0<=w.inArray(w(e).val(),t):void 0}},g.checkOn||(w.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),w.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,n){w.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}}),w.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,a){return this.on(t,e,n,a)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),w.now()),ct=/\?/;w.parseJSON=function(e){return JSON.parse(e+"")},w.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||w.error("Invalid XML: "+e),t};var M,I,ut=/#.*$/,dt=/([?&])_=[^&]*/,pt=/^(.*?):[ \t]*([^\r\n]*)$/gm,ft=/^(?:GET|HEAD)$/,ht=/^\/\//,mt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,gt={},yt={},vt="*/".concat("*");try{I=location.href}catch(e){(I=y.createElement("a")).href="",I=I.href}M=mt.exec(I.toLowerCase())||[],w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:I,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(M[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":vt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":w.parseJSON,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?ie(ie(e,w.ajaxSettings),t):ie(w.ajaxSettings,e)},ajaxPrefilter:re(gt),ajaxTransport:re(yt),ajax:function(e,t){function n(e,t,n,a){var r,o,i,s=t;2!==b&&(b=2,d&&clearTimeout(d),l=void 0,u=a||"",x.readyState=0<e?4:0,a=200<=e&&e<300||304===e,n&&(i=((e,t,n)=>{for(var a,r,o,i,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===a&&(a=e.mimeType||t.getResponseHeader("Content-Type"));if(a)for(r in s)if(s[r]&&s[r].test(a)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){o=r;break}i=i||r}o=o||i}return o?(o!==l[0]&&l.unshift(o),n[o]):void 0})(f,x,n)),i=((e,t,n,a)=>{var r,o,i,s,l,c={},u=e.dataTypes.slice();if(u[1])for(i in e.converters)c[i.toLowerCase()]=e.converters[i];for(o=u.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&a&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(i=c[l+" "+o]||c["* "+o]))for(r in c)if(s=r.split(" "),s[1]===o&&(i=c[l+" "+s[0]]||c["* "+s[0]])){!0===i?i=c[r]:!0!==c[r]&&(o=s[0],u.unshift(s[1]));break}if(!0!==i)if(i&&e.throws)t=i(t);else try{t=i(t)}catch(e){return{state:"parsererror",error:i?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}})(f,i,x,a),a?(f.ifModified&&((n=x.getResponseHeader("Last-Modified"))&&(w.lastModified[c]=n),n=x.getResponseHeader("etag"))&&(w.etag[c]=n),204===e||"HEAD"===f.type?s="nocontent":304===e?s="notmodified":(s=i.state,r=i.data,a=!(o=i.error))):(o=s,(e||!s)&&(s="error",e<0)&&(e=0)),x.status=e,x.statusText=(t||s)+"",a?g.resolveWith(h,[r,s,x]):g.rejectWith(h,[x,s,o]),x.statusCode(v),v=void 0,p&&m.trigger(a?"ajaxSuccess":"ajaxError",[x,f,a?r:o]),y.fireWith(h,[x,s]),p)&&(m.trigger("ajaxComplete",[x,f]),--w.active||w.event.trigger("ajaxStop"))}"object"==typeof e&&(t=e,e=void 0);var l,c,u,a,d,p,r,f=w.ajaxSetup({},t=t||{}),h=f.context||f,m=f.context&&(h.nodeType||h.jquery)?w(h):w.event,g=w.Deferred(),y=w.Callbacks("once memory"),v=f.statusCode||{},o={},i={},b=0,s="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!a)for(a={};t=pt.exec(u);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?u:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=i[n]=i[n]||e,o[e]=t),this},overrideMimeType:function(e){return b||(f.mimeType=e),this},statusCode:function(e){if(e)if(b<2)for(var t in e)v[t]=[v[t],e[t]];else x.always(e[x.status]);return this},abort:function(e){e=e||s;return l&&l.abort(e),n(0,e),this}};if(g.promise(x).complete=y.add,x.success=x.done,x.error=x.fail,f.url=((e||f.url||I)+"").replace(ut,"").replace(ht,M[1]+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=w.trim(f.dataType||"*").toLowerCase().match(C)||[""],null==f.crossDomain&&(e=mt.exec(f.url.toLowerCase()),f.crossDomain=!(!e||e[1]===M[1]&&e[2]===M[2]&&(e[3]||("http:"===e[1]?"80":"443"))===(M[3]||("http:"===M[1]?"80":"443")))),f.data&&f.processData&&"string"!=typeof f.data&&(f.data=w.param(f.data,f.traditional)),oe(gt,f,t,x),2!==b){for(r in(p=f.global)&&0==w.active++&&w.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!ft.test(f.type),c=f.url,f.hasContent||(f.data&&(c=f.url+=(ct.test(c)?"&":"?")+f.data,delete f.data),!1===f.cache&&(f.url=dt.test(c)?c.replace(dt,"$1_="+lt++):c+(ct.test(c)?"&":"?")+"_="+lt++)),f.ifModified&&(w.lastModified[c]&&x.setRequestHeader("If-Modified-Since",w.lastModified[c]),w.etag[c])&&x.setRequestHeader("If-None-Match",w.etag[c]),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&x.setRequestHeader("Content-Type",f.contentType),x.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+vt+"; q=0.01":""):f.accepts["*"]),f.headers)x.setRequestHeader(r,f.headers[r]);if(f.beforeSend&&(!1===f.beforeSend.call(h,x,f)||2===b))return x.abort();for(r in s="abort",{success:1,error:1,complete:1})x[r](f[r]);if(l=oe(yt,f,t,x)){x.readyState=1,p&&m.trigger("ajaxSend",[x,f]),f.async&&0<f.timeout&&(d=setTimeout(function(){x.abort("timeout")},f.timeout));try{b=1,l.send(o,n)}catch(e){if(!(b<2))throw e;n(-1,e)}}else n(-1,"No Transport")}return x},getJSON:function(e,t,n){return w.get(e,t,n,"json")},getScript:function(e,t){return w.get(e,void 0,t,"script")}}),w.each(["get","post"],function(e,r){w[r]=function(e,t,n,a){return w.isFunction(t)&&(a=a||n,n=t,t=void 0),w.ajax({url:e,type:r,dataType:a,data:t,success:n})}}),w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){w.fn[t]=function(e){return this.on(t,e)}}),w._evalUrl=function(e){return w.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},w.fn.extend({wrapAll:function(t){var e;return w.isFunction(t)?this.each(function(e){w(this).wrapAll(t.call(this,e))}):(this[0]&&(e=w(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(n){return this.each(w.isFunction(n)?function(e){w(this).wrapInner(n.call(this,e))}:function(){var e=w(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=w.isFunction(t);return this.each(function(e){w(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(){return this.parent().each(function(){w.nodeName(this,"body")||w(this).replaceWith(this.childNodes)}).end()}}),w.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0},w.expr.filters.visible=function(e){return!w.expr.filters.hidden(e)};var bt=/%20/g,xt=/\[\]$/,wt=/\r?\n/g,Ct=/^(?:submit|button|image|reset|file)$/i,Et=/^(?:input|select|textarea|keygen)/i,St=(w.param=function(e,t){function n(e,t){t=w.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)}var a,r=[];if(void 0===t&&(t=w.ajaxSettings&&w.ajaxSettings.traditional),w.isArray(e)||e.jquery&&!w.isPlainObject(e))w.each(e,function(){n(this.name,this.value)});else for(a in e)!function n(a,e,r,o){if(w.isArray(e))w.each(e,function(e,t){r||xt.test(a)?o(a,t):n(a+"["+("object"==typeof t?e:"")+"]",t,r,o)});else if(r||"object"!==w.type(e))o(a,e);else for(var t in e)n(a+"["+t+"]",e[t],r,o)}(a,e[a],t,n);return r.join("&").replace(bt,"+")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=w.prop(this,"elements");return e?w.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!w(this).is(":disabled")&&Et.test(this.nodeName)&&!Ct.test(e)&&(this.checked||!Le.test(e))}).map(function(e,t){var n=w(this).val();return null==n?null:w.isArray(n)?w.map(n,function(e){return{name:t.name,value:e.replace(wt,"\r\n")}}):{name:t.name,value:n.replace(wt,"\r\n")}}).get()}}),w.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(e){}},0),At={},Lt={0:200,1223:204},D=w.ajaxSettings.xhr(),Tt=(h.ActiveXObject&&w(h).on("unload",function(){for(var e in At)At[e]()}),g.cors=!!D&&"withCredentials"in D,g.ajax=D=!!D,w.ajaxTransport(function(o){var i;return g.cors||D&&!o.crossDomain?{send:function(e,t){var n,a=o.xhr(),r=++St;if(a.open(o.type,o.url,o.async,o.username,o.password),o.xhrFields)for(n in o.xhrFields)a[n]=o.xhrFields[n];for(n in o.mimeType&&a.overrideMimeType&&a.overrideMimeType(o.mimeType),o.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)a.setRequestHeader(n,e[n]);i=function(e){return function(){i&&(delete At[r],i=a.onload=a.onerror=null,"abort"===e?a.abort():"error"===e?t(a.status,a.statusText):t(Lt[a.status]||a.status,a.statusText,"string"==typeof a.responseText?{text:a.responseText}:void 0,a.getAllResponseHeaders()))}},a.onload=i(),a.onerror=i("error"),i=At[r]=i("abort");try{a.send(o.hasContent&&o.data||null)}catch(e){if(i)throw e}},abort:function(){i&&i()}}:void 0}),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return w.globalEval(e),e}}}),w.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),w.ajaxTransport("script",function(n){var a,r;if(n.crossDomain)return{send:function(e,t){a=w("<script>").prop({async:!0,charset:n.scriptCharset,src:n.url}).on("load error",r=function(e){a.remove(),r=null,e&&t("error"===e.type?404:200,e.type)}),y.head.appendChild(a[0])},abort:function(){r&&r()}}}),[]),kt=/(=)\?(?=&|$)|\?\?/,$t=(w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Tt.pop()||w.expando+"_"+lt++;return this[e]=!0,e}}),w.ajaxPrefilter("json jsonp",function(e,t,n){var a,r,o,i=!1!==e.jsonp&&(kt.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&kt.test(e.data)&&"data");return i||"jsonp"===e.dataTypes[0]?(a=e.jsonpCallback=w.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,i?e[i]=e[i].replace(kt,"$1"+a):!1!==e.jsonp&&(e.url+=(ct.test(e.url)?"&":"?")+e.jsonp+"="+a),e.converters["script json"]=function(){return o||w.error(a+" was not called"),o[0]},e.dataTypes[0]="json",r=h[a],h[a]=function(){o=arguments},n.always(function(){h[a]=r,e[a]&&(e.jsonpCallback=t.jsonpCallback,Tt.push(a)),o&&w.isFunction(r)&&r(o[0]),o=r=void 0}),"script"):void 0}),w.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||y;var a=ye.exec(e),n=!n&&[];return a?[t.createElement(a[1])]:(a=w.buildFragment([e],t,n),n&&n.length&&w(n).remove(),w.merge([],a.childNodes))},w.fn.load),Nt=(w.fn.load=function(e,t,n){var a,r,o,i,s;return"string"!=typeof e&&$t?$t.apply(this,arguments):(i=this,0<=(s=e.indexOf(" "))&&(a=w.trim(e.slice(s)),e=e.slice(0,s)),w.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),0<i.length&&w.ajax({url:e,type:r,dataType:"html",data:t}).done(function(e){o=arguments,i.html(a?w("<div>").append(w.parseHTML(e)).find(a):e)}).complete(n&&function(e,t){i.each(n,o||[e.responseText,t,e])}),this)},w.expr.filters.animated=function(t){return w.grep(w.timers,function(e){return t===e.elem}).length},h.document.documentElement),Pt=(w.offset={setOffset:function(e,t,n){var a,r,o,i,s=w.css(e,"position"),l=w(e),c={};"static"===s&&(e.style.position="relative"),o=l.offset(),a=w.css(e,"top"),i=w.css(e,"left"),s=("absolute"===s||"fixed"===s)&&-1<(a+i).indexOf("auto")?(r=(s=l.position()).top,s.left):(r=parseFloat(a)||0,parseFloat(i)||0),null!=(t=w.isFunction(t)?t.call(e,n,o):t).top&&(c.top=t.top-o.top+r),null!=t.left&&(c.left=t.left-o.left+s),"using"in t?t.using.call(e,c):l.css(c)}},w.fn.extend({offset:function(t){var e,n,a,r;return arguments.length?void 0===t?this:this.each(function(e){w.offset.setOffset(this,t,e)}):(a={top:0,left:0},(r=(n=this[0])&&n.ownerDocument)?(e=r.documentElement,w.contains(e,n)?(typeof n.getBoundingClientRect!=E&&(a=n.getBoundingClientRect()),n=se(r),{top:a.top+n.pageYOffset-e.clientTop,left:a.left+n.pageXOffset-e.clientLeft}):a):void 0)},position:function(){var e,t,n,a;if(this[0])return n=this[0],a={top:0,left:0},"fixed"===w.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),(a=w.nodeName(e[0],"html")?a:e.offset()).top+=w.css(e[0],"borderTopWidth",!0),a.left+=w.css(e[0],"borderLeftWidth",!0)),{top:t.top-a.top-w.css(n,"marginTop",!0),left:t.left-a.left-w.css(n,"marginLeft",!0)}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||Nt;e&&!w.nodeName(e,"html")&&"static"===w.css(e,"position");)e=e.offsetParent;return e||Nt})}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var o="pageYOffset"===r;w.fn[t]=function(e){return p(this,function(e,t,n){var a=se(e);return void 0===n?a?a[r]:e[t]:void(a?a.scrollTo(o?h.pageXOffset:n,o?n:h.pageYOffset):e[t]=n)},t,e,arguments.length,null)}}),w.each(["top","left"],function(e,n){w.cssHooks[n]=X(g.pixelPosition,function(e,t){return t?(t=l(e,n),We.test(t)?w(e).position()[n]+"px":t):void 0})}),w.each({Height:"height",Width:"width"},function(o,i){w.each({padding:"inner"+o,content:i,"":"outer"+o},function(a,e){w.fn[e]=function(e,t){var n=arguments.length&&(a||"boolean"!=typeof e),r=a||(!0===e||!0===t?"margin":"border");return p(this,function(e,t,n){var a;return w.isWindow(e)?e.document.documentElement["client"+o]:9===e.nodeType?(a=e.documentElement,Math.max(e.body["scroll"+o],a["scroll"+o],e.body["offset"+o],a["offset"+o],a["client"+o])):void 0===n?w.css(e,t,r):w.style(e,t,n,r)},i,n?e:void 0,n,null)}})}),w.fn.size=function(){return this.length},w.fn.andSelf=w.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return w}),h.jQuery),Ot=h.$;return w.noConflict=function(e){return h.$===w&&(h.$=Ot),e&&h.jQuery===w&&(h.jQuery=Pt),w},typeof q==E&&(h.jQuery=h.$=w),w});var _agoraMsgDelay=null;function ShowAlert(e,t,n,a,r,o,i,s){_showAlert(e,t,n,a,r||!0,o,i,s)}function _showAlert(e,t,n,a,r,o,i,s){$("body").addClass("alert_box_loaded");var l=$("div#agoraAlertMessageBox");(null==l||l.length<1)&&(l=$("<div>").attr("id","agoraAlertMessageBox").addClass(n).html('<div class="message-body"><span id="msg" class="msg"></span><div id="btn_ok"></div><div id="btn_close"></div></div>'),$(l).prependTo("body")),$(l).attr("class",""),$(l).addClass(n),$(l).show(),$(l).find("span#msg").html(e),s||$(l).find("div#btn_close").html('<a class="closeBtn right" href="javascript:void(0);" onclick="javascript:CloseAlert();"><i class="fa fa-times-circle"></i></a>'),o&&$(l).find("div#btn_ok").html("<a "+(isNotNullOrZero(i)?'href="'+i+'"':'href="javascript:void(0);" onclick="javascript:CloseAlert();"')+' title="Close" class="mdl-button mdl-button--primary mdl-button--raised mdl-js-button mdl-js-ripple-effect" style="align-content: right;">Ok</a>'),clearTimeout(_agoraMsgDelay),r&&(null==t&&(t=4e3),_agoraMsgDelay=setTimeout(function(){CloseAlert()},t))}function CloseAlert(){$("body").removeClass("alert_box_loaded"),$("div#agoraAlertMessageBox").hide();try{$("body").hasClass("is-busy")&&$("body").removeClass("is-busy")}catch(e){}}function RecallCkeIFrame(){$("img.cke_iframe").each(function(){$(this).replaceWith(unescape($(this).attr("data-cke-realelement")))})}function EnableNearBySearch(e,n,a,r,t){$(e).each(function(){$(this).click(function(){navigator.geolocation?navigator.geolocation.getCurrentPosition(function(e){var t=e.coords.latitude.toString().replace("-","_"),e=e.coords.longitude.toString().replace("-","_");location.href=n+"/rlat-"+t+"/rlon-"+e+"/rad-"+r+a},function(e){0==e.message.indexOf("Only secure origins are allowed")?alert("Your browser does not support this feature"):1==e.code?alert("Permission denied to access geolocation"):(2!=e.code&&e.code,alert("Your geolocation is not available"));location.href=t},{timeout:2e4}):alert("Geolocation functionality not available")})})}function BackToTop(e){e=$(e).closest("[data-back-to-top-container]").offset();null!=e?$("html,body").animate({scrollTop:e.top},700):$("html,body").animate({scrollTop:0},700)}function TopToBottom(e){$("html,body").animate({scrollTop:$(window).height()-$("#agora-layout-header").height()},700)}function EnableGoogleEventTracking(){$(document).on("click","[data-ga-track]",null,function(){try{GoogleAnalyticLogEvent($(this).data("ga-track"))}catch(e){}})}function GoogleAnalyticLogEvent(e){if(null!=ga&&"undefined"!=typeof ga){var t=e.split(",");switch(t.length){case 3:ga("send","event",t[0],t[1],t[2]);break;case 2:ga("send","event",t[0],t[1])}}}function EnableStickyHeader(t){function e(){var e=$(window).scrollTop();t<e?r.addClass("scroll"):r.removeClass("scroll").removeClass("scroll-down").removeClass("scroll-up"),e<a&&r.addClass("scroll-up").removeClass("scroll-down"),a<e&&r.addClass("scroll-down").removeClass("scroll-up"),a=e}var n,a,r;null==t&&(t=0),n=$("body"),a=0,r=$(n),$(window).on("scroll",e),e()}function CloseAgoraDropDownOnBodyClick(){$(document).on("reset",".agora-dropdown",null,function(){try{var e=$(this).children("input").get(0);e.checked&&(e.checked=!1)}catch(e){}}),$("body").on("click",function(e){try{var t,n=$(e.target);n.is("input")||0==$(document).find(n).length||(0==(t=n.closest(".agora-dropdown")).length?$(".agora-dropdown"):t.hasClass("actions")&&!n.hasClass("agora-dropdown-handle")&&0<t.children("input:checked").length?t:$(".agora-dropdown").not(t)).trigger("reset")}catch(e){}})}function MdlReloadControlState(e,t,n){null==n&&(n=!1),$this=e,$parent=t;var a=$("#"+$parent.attr("data-search-partner")),r=$("#"+$parent.attr("data-search-value-bind")),o=$("#"+$parent.attr("data-search-view"));switch($parent.attr("data-search")){case"SelectBox":try{$parent.parent().find("[data-search-enable-for]").each(function(){$(this).addClass("mdl-cell--hide"),$(this).find("input:checkbox").each(function(){n||($(this).removeAttr("checked"),0<$(this).closest(".mdl-js-checkbox").length&&$(this).closest(".mdl-js-checkbox")[0].MaterialCheckbox.uncheck())}),$(this).find("select option").each(function(){$(this).removeAttr("selected"),$(this).closest(".mdl-js-selectfield")[0].MaterialSelectfield.mdlDowngrade_()})})}catch(e){console.log(e.message)}$('[data-search-enable-for="'+$parent.val()+'"]').removeClass("mdl-cell--hide"),o.html($parent.attr("data-search-name-label")+" ("+$parent.parent().find('[data-search-enable-for="'+$parent.val()+'"]').find("input[type=checkbox]:checked").length+")");break;case"group":var s=$this.closest("[data-search-group]"),o=$("#"+s.attr("data-search-view")),l=s.find('[data-search="group"] input[type=checkbox]:checked').length,c={};s.find('[data-search="group"] [data-type="dropdown"]').each(function(){var e=$(this);""!=e.val()&&(e.data("default-item"),1)&&e.val()!=e.data("default-item")&&l++}),s.find('[data-search="group"] input[type=text]').each(function(){var e=$(this),t=e.attr("urlidentifier");isNotNullOrZero(e.val())&&void 0===c[t]&&(c[t]=l++)}),s.find('[data-search="group"] input[type=hidden][onesearchidentifier]').each(function(){var e=$(this),t=e.attr("onesearchidentifier");isNotNullOrZero(e.val())&&void 0===c[t]&&(c[t]=l++)}),o.html(s.attr("data-search-name-label")+" ("+l+")");break;case"checkList":try{null!=$parent.attr("data-search-child")&&"true"==$parent.attr("data-search-child")&&0<$parent.parents().find('[data-search-parent="true"]').length?o.html($parent.attr("data-search-name-label")+" ("+$parent.parent().find("input[type=checkbox]:checked").length+")"):o.html($parent.attr("data-search-name-label")+" ("+$parent.find("input[type=checkbox]:checked").length+")")}catch(e){console.log(e.message),o.html($parent.attr("data-search-name-label")+" ("+$parent.find("input[type=checkbox]:checked").length+")")}break;case"singleItem":if(0<$this.length){$parent.children().removeClass("select");try{var u=$parent.attr("data-search-name-label-position"),d=null!=typeof $parent.attr("data-select")&&null!=$parent.attr("data-select")&&""!=$parent.attr("data-select")?$parent.attr("data-select"):"";void 0!==u&&!1!==u&&"left"==u?"label"==d?(o.html($parent.attr("data-search-name-label")+$this.attr("label")),o.attr("data-selected-value",$this.attr("value"))):o.html($parent.attr("data-search-name-label")+$this.attr("value")):"label"==d?(o.html($this.attr("label")+$parent.attr("data-search-name-label")),o.attr("data-selected-value",$this.attr("value"))):o.html($this.attr("value")+$parent.attr("data-search-name-label"));try{var p=$parent.attr("data-search-name-label-showCountOnly");void 0!==p&&0!=p&&o.html($parent.attr("data-search-name-label")+" ("+$this.length+")")}catch(e){console.log(e.message)}try{var f=$parent.attr("data-search-name-label-skip-for").split(",");for(i=0;i<f.length;++i)null!=typeof f[i]&&null!=f[i]&&f[i]==$this.attr("value")&&o.html($this.attr("value"))}catch(e){console.log(e.message)}}catch(e){o.html($this.attr("value")+$parent.attr("data-search-name-label"))}$this.addClass("select"),IsNotNull($this.attr("value"))?r.attr("value",$this.attr("value")):r.attr("value","")}break;case"oneSearch":o.html($this.attr("data-search-name-label")+" ("+$(".multiselect-context .agora-onesearch-multi-sel-item-cont").length+")");break;case"range":a.removeClass("s-d-n"),$parent.addClass("s-d-n"),0<$this.length&&(IsNotNull($this.attr("value"))?r.val($this.attr("value")):r.val("")),0<r.closest(".mdl-js-textfield").length&&r.closest(".mdl-js-textfield").get(0).MaterialTextfield&&r.closest(".mdl-js-textfield").get(0).MaterialTextfield.checkDirty(),o.html(BindRangeView($parent))}}function BindRangeView(i){var e=new getMinMax(i);if(IsNotNull(e.Min)&&IsNotNull(e.Max)&&parseInt(e.Min)>parseInt(e.Max))return alert("Minimum value should not exceed the maximum value"),$("#"+i.attr("data-search-value-bind")).attr("value",""),$("#"+$("#"+i.attr("data-search-partner")).attr("data-search-value-bind")).attr("value",""),i.attr("data-search-name-label");switch($("#"+i.attr("data-search-value-bind")).attr("operation")){case"min":var t=e.Min;if(void 0===(o=$("#"+i.attr("data-search-partner"))).data("is-init")&&(o.data("init-value",o.html()),o.data("is-init",!0)),IsNotNull(t)){o.empty();var n=(l=$("#"+i.attr("data-search-partner")).is("select"))?"option":"li";l&&o.append('<option value=""></option>');for(var a=0;a<5;++a)switch(i.attr("data-search-type")){case"price":var r=((e,t)=>{try{var n=$(t).data("stage"),a=$(t).data("min-value"),r="bed"==i.attr("data-search-type")||"bath"==i.attr("data-search-type")?1:1e6,o="bed"==i.attr("data-search-type")||"bath"==i.attr("data-search-type")?1:1e5;try{isNullOrEmpty(n)||(o=parseInt(n,10)),void 0!==r&&null!=r&&""!=r&&(r=parseInt(a,10))}catch(e){}return"bed"==i.attr("data-search-type")||"bath"==i.attr("data-search-type")?1:parseInt(e)<r?25e3:parseInt(e)<10*r?5e4:o}catch(e){}return 1e5})(t,i),t=p(t,r);t=parseInt(t)+r,o.append("<"+n+' value="'+t+'" tabindex="22"><span>$'+t.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,")+"</span></"+n+">");break;case"year":t=parseInt(t)+5,o.append("<"+n+' value="'+t+'" tabindex="22"><span>'+t+"</span></"+n+">");break;case"bed":case"bath":t=parseInt(t)+1,o.append("<"+n+' value="'+t+'" tabindex="22"><span>'+t+"</span></"+n+">");break;default:isNotNullOrZero(i.attr("data-default-increment"))&&(t=parseInt(t)+parseInt(i.attr("data-default-increment")),o.append("<"+n+' value="'+t+'" tabindex="22"><span>'+t+"</span></"+n+">"))}o.append("<"+n+' value="0" tabindex="22"><span>Any</span></'+n+">")}else void 0!==o.data("is-init")&&1==o.data("is-init")&&o.html(o.data("init-value"));break;case"max":var o,s=e.Max;if(void 0===(o=$("#"+i.attr("data-search-partner"))).data("is-init")&&(o.data("init-value",o.html()),o.data("is-init",!0)),IsNotNull(s)){o.empty();for(var l,c,n=(l=$("#"+i.attr("data-search-partner")).is("select"))?"option":"li",u=(l&&o.append('<option value=""></option>'),((e,t)=>{try{var n=$(t).data("stage"),a="bed"==i.attr("data-search-type")||"bath"==i.attr("data-search-type")?1:1e5;try{isNullOrEmpty(n)||(a=parseInt(n,10))}catch(e){}return"bed"==i.attr("data-search-type")||"bath"==i.attr("data-search-type")?1:parseInt(e)<1e5?1e4:parseInt(e)<1e6?5e4:a}catch(e){}return 1e5})(s,i)),s=p(s,u),a=0;a<5;++a)switch(i.attr("data-search-type")){case"price":0<(s=parseInt(s)-u)&&o.prepend("<"+n+' value="'+s+'" tabindex="22"><span>$'+s.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,")+"</span></"+n+">");break;case"year":0<(s=parseInt(s)-5)&&o.append("<"+n+' value="'+s+'" tabindex="22"><span>'+s+"</span></"+n+">");break;case"bed":case"bath":0<(s=parseInt(s)-1)&&o.append("<"+n+' value="'+s+'" tabindex="22"><span>'+s+"</span></"+n+">");break;default:isNotNullOrZero(i.attr("data-default-decrement"))&&(isNullOrEmpty(c)&&(s=e.Max,c="Yes"),0<(s=parseInt(s)-parseInt(i.attr("data-default-decrement"))))&&o.prepend("<"+n+' value="'+s+'" tabindex="22"><span>'+s+"</span></"+n+">")}o.prepend("<"+n+' value="0" tabindex="22"><span>Any</span></'+n+">")}else void 0!==o.data("is-init")&&1==o.data("is-init")&&o.html(o.data("init-value"))}return"price"!==i.attr("data-search-type")?IsNotNull(e.Min)&&IsNotNull(e.Max)?e.Min+"-"+e.Max:IsNotNull(e.Min)&&!IsNotNull(e.Max)?e.Min+"+":!IsNotNull(e.Min)&&IsNotNull(e.Max)?"<"+e.Max:i.attr("data-search-name-label"):IsNotNull(e.Min)&&IsNotNull(e.Max)?d(e.Min)+"-"+d(e.Max):IsNotNull(e.Min)&&!IsNotNull(e.Max)?d(e.Min)+"+":!IsNotNull(e.Min)&&IsNotNull(e.Max)?"<"+d(e.Max):i.attr("data-search-name-label");function d(e){console.log("Formatt : "+e);try{var t=null!=e&&""!=e?e:"0";return t=1e6<=e?"$"+(t/1e6).toFixed(2).replace(/\.?0+$/,"")+"M":1e3<=e?"$"+(t/1e3).toFixed(2).replace(/\.?0+$/,"")+"K":"$"+t.replace(/\.0+$/,"")}catch(e){}return"0"}function p(e,t){try{return(parseInt(e)-parseInt(e)%t).toString()}catch(e){}return e}}function getMinMax(e){var t=0,n=0;switch($("#"+e.attr("data-search-value-bind")).attr("operation")){case"min":t=$("#"+e.attr("data-search-value-bind")).val(),n=$("#"+$("#"+e.attr("data-search-partner")).attr("data-search-value-bind")).val();break;case"max":t=$("#"+$("#"+e.attr("data-search-partner")).attr("data-search-value-bind")).val(),n=$("#"+e.attr("data-search-value-bind")).val()}return{Min:t,Max:n}}function OnClassBehaviorChange(e,t){IsNullorEmpty($(e).attr("oldClassName"))||$(e).attr("oldClassName")==$(e).attr("class")||t(),$(e).attr("oldClassName",$(e).attr("class")),setTimeout(function(){OnClassBehaviorChange(e,t)},100)}function AnimatePlaceholderText(e,t,n){var a=t;0==n&&(a=e.attr("placeholder"),e.attr("placeholder","")),n!=a.length&&setTimeout(function(){e.attr("placeholder",a.substr(0,++n)),AnimatePlaceholderText(e,a,n)},150)}function AddReadMore(e,t,n){var a=e,r=t,o=n;$(".addReadMore").each(function(){var e;$(this).find(".firstSec").length||(e=$(this).text()).length>a&&(e=e.substring(0,a)+"<span class='SecSec'>"+e.substring(a,e.length)+"</span><span class='readMore' title='Click to Show More'>"+r+"</span><span class='readLess' title='Click to Show Less'>"+o+"</span>",$(this).html(e))}),$(document).on("click",".readMore,.readLess",function(){$(this).closest(".addReadMore").toggleClass("showlesscontent showmorecontent")})}function SignUp(e,t,n,a,r,o){e=GetFormXml($("#"+e));null==e||a&&!a(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraAccess.ashx?action=SignUp",data:{contact:e},dataType:"json",success:function(e){switch(e.Number){case 100:null!=r&&r(e.Contact)||(!isNullOrEmpty(t)&&isNullOrEmpty(n)?document.location.replace(t):isNullOrEmpty(t)||isNullOrEmpty(n)||"popup"!=n?isNullOrEmpty(t)&&!isNullOrEmpty(n)&&"stay"==n?(UpdateUserArea(e.UserAreaHtml),ClosePopup()):(ClosePopup(),location.replace((isMultiLingual()?"/"+getLocale():"")+"/dashboard/default.aspx?mode=signUp")):(UpdateUserArea(e.UserAreaHtml),$("#PERFORM_ACTION_TRIGGER").attr("href",t),ClosePopup(),OpenPopup()),$("body").removeClass("restricted-listing"));break;case 1:null==o?alert("Unable to connect to Database!"):o(1,"Please enter a valid Password");break;case 2:null==o?alert("Query execution failure!"):o(2,"Query execution failure!");break;case 9:null==o?alert(e.Message):o(11,e.Message);break;case 10:null==o?alert("Invalid Data. Please retry!"):o(10,"Invalid Data. Please retry!");break;case 11:null==o?alert('The email address you entered is already registered. Please sign in to your existing account or click "Forgot Password" for help.'):o(11,'The email address you entered is already registered. Please sign in to your existing account or click "Forgot Password" for help.');break;case 204:ShowAlert("SMS Gateway email addresses, which send email as text messages, are not permitted. Please enter a standard email address.",2e3,"alert_box",null)}},error:function(e){null==o?alert("Unknown Error. Please try later!"):o(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraAccess) not found!")}}})}function SignIn(e,t,n,a,r,o){e=GetFormXml($("#"+e));null==e||a&&!a(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraAccess.ashx?action=SignIn",data:{contact:e},dataType:"json",success:function(e){switch(e.Number){case 100:null!=r&&r(e.Contact),!isNullOrEmpty(t)&&isNullOrEmpty(n)?document.location.replace(t):isNullOrEmpty(t)||isNullOrEmpty(n)||"popup"!=n?isNullOrEmpty(t)&&!isNullOrEmpty(n)&&"stay"==n?(UpdateUserArea(e.UserAreaHtml),ClosePopup()):(ClosePopup(),location.replace((isMultiLingual()?"/"+getLocale():"")+"/dashboard/default.aspx?mode=signIn")):(UpdateUserArea(e.UserAreaHtml),$("#PERFORM_ACTION_TRIGGER").attr("href",t),ClosePopup(),OpenPopup()),$("body").removeClass("restricted-listing");break;case 401:null==o?alert("Invalid email address or password. Please try again!"):o(401,"Invalid email address or password. Please try again!");break;case 302:isNullOrEmpty(e.Url)||(location.href=e.Url);break;case 1:null==o?alert("Unable to connect to Database!"):o(1,"Please enter a valid Password");break;case 2:null==o?alert("Query execution failure!"):o(2,"Query execution failure!");break;case 9:null==o?alert(e.Message):o(11,e.Message);break;case 10:null==o?alert("Invalid email address or password. Please try again!"):o(10,"Invalid email address or password. Please try again!")}},error:function(e){null==o?alert("Unknown Error. Please try later!"):o(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraAccess) not found!")}}})}function SaveSearch(e,t,n,a,r,o){e=GetFormXml($("#"+e));null==e||a&&!a(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraAccess.ashx?action=SaveSearch",data:{demand:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==r?alert("You have successfully saved the search"):r(100,"You have successfully saved the search"),ClosePopup();break;case 1:null==o?alert("Unable to connect to Database!"):o(1,"Please enter a valid Password");break;case 2:null==o?alert("Query execution failure!"):o(2,"Query execution failure!");break;case 9:null==o?alert(e.Message):o(11,e.Message);break;case 10:null==o?alert("Invalid email address or password. Please try again!"):o(10,"Invalid email address or password. Please try again!")}},error:function(e){null==o?alert("Unknown Error. Please try later!"):o(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraAccess) not found!")}}})}function RequestInfo(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraRequestInfo.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Your request has been submitted successfully"):n(100,"Your request has been submitted successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraRequestInfo) not found!")}}})}function NeighborhoodReport(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraNeighborhoodReport.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Your Neighborhood Report request has been submitted. A report will be emailed to you within the next 24 business hours."):n(100,"Your Neighborhood Report request has been submitted. A report will be emailed to you within the next 24 business hours."),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraNeighborhoodReport) not found!")}}})}function ContactMortgageSpecialist(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraContactMortgageSpecialist.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Thank you for your request. A Mortgage Consultant will contact you shortly."):n(100,"Thank you for your request. A Mortgage Consultant will contact you shortly."),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (ContactMortgageSpecialist) not found!")}}})}function RequestShowing(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraRequestShowing.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Your request has been submitted successfully"):n(100,"Your request has been submitted successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraRequestShowing) not found!")}}})}function TextListing(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraTextListing.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Your request has been submitted successfully"):n(100,"Your request has been submitted successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraTextListing) not found!")}}})}function EmailListing(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraEmailListing.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("The property details has been sent successfully"):n(100,"The property details has been sent successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraEmailListing) not found!")}}})}function ContactUs(e,t,n,a,r){var o=$("#"+e),e=GetFormXml(o);null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraContactUs.ashx",data:{WebRequest:e,ContactType:r},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Your request has been submitted successfully"):n(100,"Your request has been submitted successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{401:function(){try{o.find("[data-captcha-reload]").trigger("click")}catch(e){}},404:function(){alert("Service (agoraContactUs) not found!")}}})}function SellAHome(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraSellAHome.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Your request has been submitted successfully"):n(100,"Your request has been submitted successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraContactUs) not found!")}}})}function MaintenanceService(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/MaintenanceService.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Your request has been submitted successfully"):n(100,"Your request has been submitted successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraContactUs) not found!")}}})}function OrderReloc(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraOrderReloc.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Your request has been submitted successfully"):n(100,"Your request has been submitted successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraOrderReloc) not found!")}}})}function ForgotPassword(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraForgotPassword.ashx",data:{Contact:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("Please check your email shortly for instructions on resetting your password."):n(100,"Please check your email shortly for instructions on resetting your password."),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("An account with that email address cannot be found. Please try again."):a(10,"An account with that email address cannot be found. Please try again.")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (ForgotPassword) not found!")}}})}function CompanyNewsLetter(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraCompanyNewsLetter.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("You have registered for newsletter successfully"):n(100,"You have registered for newsletter successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraEmailListing) not found!")}}})}function EmailFriend(e,t,n,a){e=GetFormXml($("#"+e));null==e||t&&!t(e)||$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraEmailFriend.ashx",data:{WebRequest:e},dataType:"json",success:function(e){switch(e.Number){case 100:null==n?alert("The details has been sent successfully"):n(100,"The details has been sent successfully"),ClosePopup();break;case 1:null==a?alert("Unable to connect to Database!"):a(1,"Please enter a valid Password");break;case 2:null==a?alert("Query execution failure!"):a(2,"Query execution failure!");break;case 9:null==a?alert(e.Message):a(11,e.Message);break;case 10:null==a?alert("Invalid input parameters. Please try again!"):a(10,"Invalid input parameters. Please try again!")}},error:function(e){null==a?alert("Unknown Error. Please try later!"):a(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraEmailListing) not found!")}}})}function UpdateUserArea(e){$("#DIV_USER_AREA").html(e)}function PerformAction(e,t){var n="",a=(isMultiLingual()?"/"+getLocale():"")+"/dashboard/Access.aspx";"SignUp"!=e&&"SignIn"!=e&&"MarketTrends"!=e?IsSignedIn()?(n=(isMultiLingual()?"/"+getLocale():"")+"/dashboard/"+e+".aspx",isNullOrEmpty(t)||(n+="?"+t)):(n=a+"?view=popup&accessUrl="+escape("/dashboard/"+e+".aspx"),isNullOrEmpty(t)||(n+="?"+escape(t))):"MarketTrends"==e?n="/dashboard/MarketTrends.aspx?"+t:(n=a,isNullOrEmpty(t)||(n+="?"+t)),$("#PERFORM_ACTION_TRIGGER").attr("href",n),$("#PERFORM_ACTION_TRIGGER").trigger("click")}function IsSignedIn(){return!isNullOrEmpty($("#CONTACT_GUID"))&&!isNullOrEmpty($("#CONTACT_GUID").val())&&36==$("#CONTACT_GUID").val().length}function ContactOffice(e){$.ajax({type:"POST",url:(isMultiLingual()?"/"+getLocale():"")+"/services/agoraContactOffice.ashx",data:{Name:$("#textname").val(),Email:$("#txtEmail").val(),ToEmail:e,Subject:$("#textsubject").val(),comment:$("#textmsg").val()},dataType:"text",success:function(e){"100"==e&&(alert("Your request has been submitted successfully"),ClosePopup())},error:function(e){null==onError?alert("Unknown Error. Please try later!"):onError(99,"Unknown Error. Please try later")},statusCode:{404:function(){alert("Service (agoraContactUs) not found!")}}})}function showPropertyGallery(e,t,n,a,r){for(var o=window.pageYOffset,i=document.querySelector(".property-gallery-container"),s=document.createElement("button"),l=(s.classList.add("property-gallery-container-close"),s.setAttribute("title","Close Property Gallery"),s.innerText="X",s.addEventListener("click",function(e){null!=document.querySelector(".property-gallery-container")&&document.querySelector(".property-gallery-container").remove(),window.scrollTo(0,o),document.body.style.overflow="visible"},!0),null==i&&((i=document.createElement("div")).classList.add("property-gallery-container"),r!=n&&i.classList.add(r),document.body.appendChild(i)),i.innerHTML='<div class="s-w-100 s-h-100 s-p-r hero-slider"><i class="left-btn">&lt;</i><div class="item-s show-nav"></div><i class="right-btn">&gt;</i><div class="dots-wrapper"></div><div style="clear: both;"></div></div>',i.appendChild(s),i.querySelector(".item-s")),c=null,u=0;u<a;u++)(c=document.createElement("div")).innerHTML='<div class="item"><img class="lazy s-h-100 s-of-cn" alt="property photo '+(u+1)+'" data-src="https://cdn.datafloat.com/'+e+"_PUBLIC/MLSPhotos/"+t.toUpperCase()+"/"+n+"_"+(u+1)+'.jpg" /></div>',l.append(c.firstElementChild);agSlider({autoPlay:!0,autoPlayDelay:5e3,loop:!0,showBullets:!0,showControls:!0,bulletContainer:".dots-wrapper",showBulletsAsThumb:!0,itemWrapper:".item-s",itemContainer:".item"},".property-gallery-container",function(e){document.body.style.overflow="hidden",document.querySelectorAll(".ldp-caro").forEach(e=>{e.querySelectorAll(".item").forEach((e,t)=>{e.addEventListener("click",()=>{document.querySelector(".property-gallery-container .dots-wrapper .idx-"+t).click()})})}),window.scrollTo(0,0)})}function handleCommunityClickEvent(e,t){window.agEvent&&window.agEvent.push(e,t)}function IsNotNull(e){return null!=e&&0<e.length&&"0"!=e&&0!=e}function IsNotNullOrIsZero(e){return null!=e&&0<e.length}function EnableSearchForm(){function t(o){setTimeout(function(){var e=$(o).closest("[data-search-form]"),t=composeUrlQuery({select:e}),n=e.data("search-form"),n=$('[data-sort-object="'+n+'"]'),a=e.data("default-search"),r=e.data("default-sort");void 0!==a&&""!=a&&-1==t.indexOf("/address-")&&-1==t.indexOf("/mls-")&&(t+=a),0<n.length?t+=null!=(a=n.val())&&""!=a?a:"":void 0!==r&&null!=r&&""!=r&&(t+=r),e.triggerHandler("search",[{query:t}])},200)}$(document).on("click","[data-search-form] [data-search-button]",{},function(){t(this)}),$(document).on("keydown","[data-search-form] [data-search-action]",{},function(e){13==e.keyCode&&t(this)}),$("[data-search-form]").on("search",function(e,t){var n=$(this),a=n.data("search-prefix"),a=IsNotNull(a)&&"undefined"!=a?a:GetSearchPrefixForRecordType(n.data("search-form"));/^\/\//.test((null!=a&&""!=a&&"undefined"!=a?a:"")+t.query)||(window.location=(null!=a&&""!=a&&"undefined"!=a?a:"")+t.query)})}function GetSearchPrefixForRecordType(e){switch(e){case"PROPERTY":return"/properties";case"COMMUNITY":return"/communities";case"BUILDER":return"/builders";case"PROPERTYRENT":return"/property-search-map-on-rent";case"PROPERTYSOLD":return"/property-search-map/sold";case"AGENT":return"/real-estate-agents";case"OFFICE":return"/real-estate-offices";case"BLOG":return"/blog/search";case"AGENTTEAM":return"/real-estate-agents"}return"/"}function GetDefaultSortForRecordType(e){switch(e){case"PROPERTY":case"COMMUNITY":case"PROPERTYRENT":return"/dsort-p";case"AGENT":case"AGENTTEAM":case"OFFICE":return"/sort-n"}return""}function getCookie(e){for(var t=e+"=",n=decodeURIComponent(document.cookie).split(";"),a=0;a<n.length;a++){for(var r=n[a];" "==r.charAt(0);)r=r.substring(1);if(0==r.indexOf(t))return r.substring(t.length,r.length)}return""}function initMapDefault(){window.onMapLoaded&&window.onMapLoaded()}function EnableDemandImport(){function e(t,n,a,r){if(!t.closest("div[contenteditable]").attr("contenteditable")&&void 0!==n||void 0!==a)switch((r=void 0!==r?r:"gallery").toLowerCase()){case"gallery":var e=t.find('[data-sort-object="CMNCMN"]');("undefined"!=e&&null!=e&&0<e.length||!n.match(/(^|\/)(d)?sort\-[a-z]+/g))&&(n=((e=>"undefined"!=(e=e.find('[data-sort-object="CMNCMN"]'))&&null!=e&&0<e.length&&IsNotNull(e.val())?e.val():GetDefaultSortForRecordType("PROPERTY"))(t)+"/"+n.replace("http://","").replace(/(^|\/)(d)?sort\-[a-z]+/g,"")).replace("//","/")),$.ajax({type:"POST",url:"/services/MAX/agoraGetGalleryView.aspx",data:{UrlQuery:n,TypeOfSearch:"SALE",IsContentPage:"true",DemandKey:a},dataType:"html",success:function(e){t.closest("div[contenteditable]").attr("contenteditable")||(e='<section class="result-page" data-ck-propertylist="" data-ck-demand-key="'+a+'" data-ck-property-url="'+n+'" data-ck-demand-layout="'+r+'">'+e+"</section>",t.after(e),t.remove(),"undefined"!=typeof componentHandler&&componentHandler.upgradeDom(),$('[data-ck-demand-key="'+a+'"] #propertyGrid').each(function(){$(this).find(".property:not(.init)").each(function(){GetPropertyImageGallery($(this))})}),window.agLazy.refresh())},error:function(){ShowLoading()}});break;case"carousel":$.ajax({type:"POST",url:"/services/agoraGetCarouselItem.aspx",data:{UrlQuery:n,TypeOfSearch:"SALE",IsContentPage:"true",DemandKey:a},dataType:"html",success:function(e){t.closest("div[contenteditable]").attr("contenteditable")||(e='<section class="result-page" data-ck-propertylist="" data-ck-demand-key="'+a+'" data-ck-property-url="'+n+'" data-ck-demand-layout="'+r+'">'+e+"</section>",t.after(e),$('[data-query-list]:not(.init)[data-service-url][data-rt^="CMN"]').each(function(){$(this).trigger("init"),$(this).addClass("init")}),t.remove(),"undefined"!=typeof componentHandler&&componentHandler.upgradeDom())},error:function(){ShowLoading()}})}}$("img[data-demand-key]").each(function(){e($(this),$(this).data("demand-url"),$(this).data("demand-key"),$(this).data("layout"))}),$(document).on("click","[data-ck-href]",null,function(){e($(this).parents("[data-ck-propertylist]:first"),$(this).data("ck-href"),$(this).parents("[data-ck-propertylist]:first").data("ck-demand-key"),$(this).parents("[data-ck-propertylist]:first").data("ck-demand-layout"))}),(async()=>{var u,n,f={languages:[{code:"en",label:"English"},{code:"es",label:"Spanish",localLabel:"Español"},{code:"nl",label:"Dutch",localLabel:"Nederlands"},{code:"pr",label:"Portugese",localLabel:"Português"},{code:"fr",label:"French",localLabel:"Français"}],currencies:[{code:"USD",base:"USD",label:"Dollar",format:"$###,###,###.##"},{code:"AED",base:"USD",label:"United Arab Emirates Dirham",format:"AED###,###,###.##"},{code:"BSD",base:"USD",label:"Bahamian Dollar",format:"B$###,###,###.##"},{code:"CAD",base:"USD",label:"Canadian Dollar",format:"$###,###,###.##"},{code:"DOP",base:"USD",label:"Dominican Peso",format:"RD$###,###,###.##"},{code:"EUR",base:"USD",label:"Euro",format:"€###,###,###.##"},{code:"JMD",base:"USD",label:"Jamaican Dollar",format:"J$###,###,###.##"},{code:"KYD",base:"USD",label:"Cayman Islands Dollar",format:"CI$###,###,###.##"},{code:"MXN",base:"USD",label:"Mexican Peso",format:"$###,###,###.##"},{code:"PAB",base:"USD",label:"Panamanian Balboa",format:"B/.###,###,###.##"}],units:[{code:"imperial",label:"Imperial"},{code:"metric",label:"Metric"}],presets:[{code:"BS",longCode:"BHS",label:"Bahamas",currency:"BSD",language:"en",messurement:"metric"},{code:"CA",longCode:"CAN",label:"Canada",currency:"CAD",language:["en","fr"],messurement:"metric",states:{QC:"fr"}},{code:"JM",longCode:"JAM",label:"Jamaica",currency:"JMD",language:"en",messurement:"metric"},{code:"KY",longCode:"CYM",label:"Cayman Islands",currency:"KYD",language:"en",messurement:"metric"},{code:"TC",longCode:"TCA",label:"Turks & Caicos Islands",localLabel:"",currency:"USD",language:"en",messurement:"imperial"},{code:"US",longCode:"USA",label:"United States",localLabel:"",currency:"USD",language:"en",messurement:"imperial"},{code:"DY",longCode:"DOM",label:"Dominican Republic",localLabel:"República Dominicana",currency:"USD",language:"en",messurement:"metric"},{code:"ES",longCode:"ESP",label:"Spain",localLabel:"España",currency:"EUR",language:"en",messurement:"metric"},{code:"MX",longCode:"MEX",label:"Mexico",localLabel:"México",currency:"MXN",language:"en",messurement:"metric"},{code:"PA",longCode:"PAN",label:"Panama",localLabel:"Panamá",currency:"PAB",language:"en",messurement:"metric"},{code:"NL",longCode:"NLD",label:"Nederlands",localLabel:"Nederland",currency:"EUR",language:"en",messurement:"metric"},{code:"PT",longCode:"PRT",label:"Portugal",currency:"EUR",language:"en",messurement:"metric"}],unitConvertions:[{unit:"SQFT",tragetUnit:"Sq.M",constant:.092903,notation:["Sqft","Sq.Ft","Sq.Ft.","Sq. Ft.","SF","square feet","square feets"]},{unit:"MI",tragetUnit:"KM",constant:1.60934,notation:["mi","miles","mile"]},{unit:"AC",tragetUnit:"Sq.M",constant:4046.86,notation:["acre","acres"]}]},i=null;async function s(){var t,e=C();null==i&&(i=Object.assign({},e)),e?.language!=i?.language?setTimeout(function(){window.location.reload()},1e3):(i=Object.assign({},e),t=await new Promise(async function(e,t){var n=await(async()=>{var e=window.localStorage.getItem("LOCALLABELS"),t=null;return t=null!=e?JSON.parse(e):t})(),a=C();if(null!=n){var r=new Date;if(r.setHours(r.getHours()-1),new Date(n.updatedOn)>r&&-1<n.Locale.indexOf(a.language))return void e(n)}(n=await $("/services/agoraClient.ashx",{type:"LABELS"})).updatedOn=new Date,l(n),e(n)}),e?.language&&-1==t.Locale.indexOf(e.language)&&(await A(),window.location.reload()),(e=document.querySelectorAll("[ag-l-k]"))&&e.forEach(function(e){(async(e,t)=>{var n,a=e.getAttribute("ag-l-k"),r=null;if(t[a]||p.test(a))if(e.childNodes&&1==e.childNodes.length)if(p.lastIndex=0,p.test(a)){p.lastIndex=0;for(var o=a;null!=(r=p.exec(o));)o=o.replace(r[0],t[r.groups.LabelID]?t[r.groups.LabelID].lbl:"");e.childNodes[0].textContent=o}else e.childNodes[0].textContent=t[a]?t[a].lbl:"";else t[a]&&((n=document.createElement("span")).innerHTML=t[a].lbl,async function e(t,n){for(var a=0;a<n.childNodes.length;a++)if(n.childNodes[a]?.textContent&&t.childNodes[a]?.textContent)t.childNodes[a].textContent=n.childNodes[a]?.textContent;else{if(!(a<n.childNodes.length&&a<t.childNodes.length))return;e(t.childNodes[a],n.childNodes[a])}}(e,n));for(var i=0;i<e.attributes.length;i++){var s=e.attributes[i];if(d.lastIndex=0,null!=(r=d.exec(s.name))){for(var l=r.groups.Attribute,c=s.value;null!=(r=p.exec(c));)c=c.replace(r[0],t[r.groups.LabelID]?t[r.groups.LabelID].lbl:"");e.setAttribute(l,c)}}e&&null!=e&&e.dispatchEvent(new CustomEvent("ag.language.update.item"))})(e,t.Labels)}))}async function l(e){window.localStorage.setItem("LOCALLABELS",JSON.stringify(e))}var d=/ag\-l\-k\-(?<Attribute>[^\=]+)/gm,p=/\[(?<LabelID>[^\]]+)\]/gm;async function c(e){var t,n,a,r=await new Promise(async function(e,t){var n=localStorage.getItem("CONVERTIONRATES"),a=null;if(n&&null!=n){a=JSON.parse(n),n=new Date;if(n.setDate(n.getDate()-1),new Date(a.updatedOn)>n)return void e(a)}(a=await $("/services/agoraClient.ashx",{type:"CONVERTIONRATES"})).updatedOn=(new Date).toISOString(),localStorage.setItem("CONVERTIONRATES",JSON.stringify(a)),e(a)}),o=C();o.currency&&(t=r.Rates?.ExchangeRates?.filter(function(e){return e.Code==o.currency})[0],(a=f.currencies.filter(function(e){return e.code==o.currency})[0])&&(t.formatter=m(a.format)),n=t.Code,a=e?document.querySelectorAll('[ag-l-p]:not(.is-applied):not([ag-l-p="0"])'):document.querySelectorAll('[ag-l-p]:not([ag-l-p="0"])'))&&a.forEach(async function(e){-1<e.innerHTML.indexOf("{{")||((async e=>{var t,n,a,r,o;e.classList.contains("is-applied")||(r=e.getBoundingClientRect(),n=(n=null)!=(n=e.closest("article"))&&0<n.length?n[0].getBoundingClientRect():e.parentElement?.getBoundingClientRect(),t=(n.top+n.bottom)/2,n=(n.left+n.right)/2,a=(r.top+r.bottom)/2,r=(r.left+r.right)/2,o="ag-l-p-p",o="ag-l-p-p-"+(r<n?"l":"r")+"-"+(a<t?"b":"t"),e.classList.add(o))})(e),e.classList.add("is-applied"),(async(e,t,n,a)=>{var r=null!=e.getAttribute("ag-l-p-c")&&(null==e.getAttribute("ag-l-p-o")&&null==e.getAttribute("ag-l-p-o-p")||e.getAttribute("ag-l-p-o-p")!=e.getAttribute("ag-l-p"))&&e.getAttribute("ag-l-p-c")!=n;if(e.getAttribute("ag-l-p-c")!=n||!r||!h.test(e.textContent)){var o=e.getAttribute("ag-l-p-c"),i=1,s=null;try{s=a.Rates?.ExchangeRates?.filter(function(e){return e.Code==o})[0];var l=f.currencies.filter(function(e){return e.code==s.Code})[0];l&&(s.formatter=m(l.format)),i=s.Constant}catch(e){}for(var c=0;c<e.childNodes.length;c++){var u,d=e.childNodes[c],p=null;if(h.lastIndex=0,d.textContent&&null!=(p=h.exec(d.textContent)))return t&&null!=t&&e.setAttribute("ag-l-p-c-t",t.Code),r?(e.setAttribute("ag-l-p-o-p",e.getAttribute("ag-l-p")),e.setAttribute("ag-l-p-o",s?s.formatter(parseFloat(e.getAttribute("ag-l-p"))):e.getAttribute("ag-l-p"))):null!=e.getAttribute("ag-l-p-c")&&e.getAttribute("ag-l-p-c")==t.Code&&e.removeAttribute("ag-l-p-o"),h.lastIndex=0,u=Math.round(parseFloat(e.getAttribute("ag-l-p"))/i*t.Constant),!(d.textContent=d.textContent.replace(p[0],t.formatter?t.formatter(u):u.toString()))}}})(e,t,n,r))})}var h=/(([^A-z0-9]|[A-Z]|[A-Z]{3})*\s?[0-9\,\.]+)/gm;function m(e){var t=e.replace(/[#\,\.]+/gi,"");return function(e){return t+e.toLocaleString("en-US")}}async function g(e){var t="metric"==C().messurement,n=t?document.querySelectorAll("[ag-l-m]:not(.is-applied)"):document.querySelectorAll("[ag-l-m]");t?setTimeout(function(){n&&n.forEach(async function(e){-1<e.innerHTML.indexOf("{{")||e.classList.contains("is-applied")||(e.classList.add("is-applied"),async function a(e,r,t,n,o){if(n&&o)return void(0<e?.childNodes?.length&&e.childNodes.forEach(async function(e){var t,n;e?.textContent&&(t=e.textContent,(n=await x(e.textContent,2,o)).success)&&(e.textContent=n.content,r.addEventListener("ag.language.messurement.revert",function(){e.textContent=t}))}));{var i,s;v(e)?(i=f.unitConvertionSchema.getLabelForAttribute(e),n=await b(i,1),f.unitConvertionSchema.setLabelForAttribute(e,n.content),s=f.unitConvertionSchema.getValueForAttribute(e),n=await x(s,2,n.units[0]),f.unitConvertionSchema.setValueForAttribute(e,n.content),r.addEventListener("ag.language.messurement.revert",function(){f.unitConvertionSchema.setLabelForAttribute(e,i),f.unitConvertionSchema.setValueForAttribute(e,s)})):0<e?.childNodes?.length&&e.childNodes.forEach(async function(e){var t,n;e.nodeType==Node.TEXT_NODE&&y(e)?(t=e.textContent,(n=await b(t)).success?e.textContent=n.content:(n=await b(e.textContent,1),e.textContent=n.content,a(e.parentElement,r,!1,!0,n.units[0])),r.addEventListener("ag.language.messurement.revert",function(){e.textContent=t})):a(e,r)})}return!1}(e,e))})},e?500:0):n&&n.forEach(async function(e){-1<e.innerHTML.indexOf("{{")||!e.classList.contains("is-applied")||(e.classList.remove("is-applied"),e.dispatchEvent(new CustomEvent("ag.language.messurement.revert")))})}function y(e){return f.unitConvertionSchema.expression.test(e.textContent)||f.unitConvertionSchema.notationExpression.test(e.textContent)}function v(e){return null!=(f.unitConvertionSchema.haveValidAttribute(e)?f.unitConvertionSchema.getLabelForAttribute(e).match(f.unitConvertionSchema.notationExpression):null)}async function b(e,t){var n,a=[],r=!1;t=t||0;for(n of f.unitConvertions){var o=await x(e,t,n);e=o.content,r|=o.success,o.success&&a.push(n),f.unitConvertionSchema.notationExpressions[n.unit].lastIndex=-1,f.unitConvertionSchema.notationOnlyExpressions[n.unit].lastIndex=-1}return{content:e,success:r,units:a}}async function x(e,t,n){for(var a=null,r=!1;null!=(a=((e,t,n)=>0==n?f.unitConvertionSchema.notationExpressions[t.unit].exec(e):1==n?f.unitConvertionSchema.notationOnlyExpressions[t.unit].exec(e):2==n?(f.unitConvertionSchema.valueExpression.lastIndex=-1,f.unitConvertionSchema.valueExpression.exec(e)):null)(e,n,t));){var r=!0,o=1==t?0:parseFloat(f.unitConvertionSchema.getValue(a.groups.V)),i=a.groups.N,s=a.index,l=s+a[0].length,o=(1!=t?a[0].replaceAll(a.groups.V,f.unitConvertionSchema.formatValue(Math.floor(Math.round(o*n.constant)))):a[0]).replaceAll(i,n.tragetUnit);if(2==t&&n.targetNotation&&(o+=" "+n.targetNotation),e=e.substring(0,s)+o+e.substring(l),2==t)return{content:e,success:r}}return{content:e,success:r}}async function w(t){o("US").split(" ").map(function(e){t.classList.add(e)}),document.body.addEventListener("ag.language.update",function(e){t.className=t.className.replace(/fflag\-[A-Z]{1,2}/gi,""),o(e.detail.code).split(" ").map(function(e){t.classList.add(e)}),e.detail.longCode&&S("longCode",e.detail.longCode);e=C();window.agLocale||(window.agLocale={}),window.agLocale.locale=e,document.body.dispatchEvent(new CustomEvent("ag.language.update.success"))}),t.addEventListener("click",async function(e){u=u||await(async()=>{var n,t,e=new k("span"),a=e.n("span");function r(e){T(t,"Language","language",e,function(e,t){e.h(t.localLabel||t.label)},function(e){return e?e.localLabel||e.label:""})}return T(a,"Location","code",f.presets,function(e,t){e.n("i").a("class",o(t.code)),e.n("b").h(t.localLabel||t.label)},function(t,e){return n.a("class",o(t.code)),r(f.languages.filter(function(e){return Array.isArray(t.language)?-1<t.language.indexOf(e.code):e.code==t.language})),e||document.body.dispatchEvent(new CustomEvent("ag.language.update",{detail:t})),t.localLabel||t.label}),n=a.n("i"),t=e.n("span"),r(f.languages),T(e.n("span"),"Currency","currency",f.currencies,function(e,t){e.h(t.localLabel||t.label)},function(e){return e.localLabel||e.label}),T(a=e.n("span"),"Property Measurement","messurement",f.units,function(e,t){e.h(t.localLabel||t.label)},function(e){return e.localLabel||e.label}),T(a=e.n("span"),"Distance Measurement","messurement",f.units,function(e,t){e.h(t.localLabel||t.label)},function(e){return e.localLabel||e.label}),e.node.setAttribute("ag-language-select",""),document.body.appendChild(e.node),(a=C())?.code&&document.body.dispatchEvent(new CustomEvent("ag.language.update",{detail:a})),e})(),e.stopPropagation(),(async e=>{e=e.getBoundingClientRect(),u.node.style.top=Math.floor(e.top-8)+"px",u.node.style.right="calc(100% - "+Math.floor(e.right+8)+"px)",u.node.querySelectorAll(".active")?.forEach(function(e){e.classList.remove("active")}),u.node.classList.add("active")})(t),document.body.addEventListener("click",a)})}function a(e){e.stopPropagation(),null==e.target.closest("[ag-language-select],[ag-language]")&&(document.body.removeEventListener("click",a),(async()=>{u.node.classList.remove("active")})(e.target))}function o(e){return"fflag ff-lg fflag-"+e}function C(){var e=window.localStorage.AGLANGUAGE,t={};return t=e&&""!=e?JSON.parse(e):t}var r=null,E=null;function S(e,t){var n,a=C();(a=null==a?{}:a)[e]&&a[e]==t||(a[e]=t,window.localStorage.setItem("AGLANGUAGE",JSON.stringify(a)),null!=r&&clearTimeout(A),r=setTimeout(async function(){r=null,await A(),null!=E&&(E(),E=null)},100),n=E,E=function(){null!=n&&n(),document.body.dispatchEvent(new CustomEvent("ag.language.change."+e))})}async function A(e){var t=C();JSON.stringify(n)!=JSON.stringify(t)&&(n=t)&&t.code&&await window.agRequest.POST("/services/agoraClient.ashx",Object.assign({type:"SET"},t))}var L={};function T(e,t,a,r,n,o){var i=t.toLowerCase().replace(/[^A-z0-9]/gi,""),s=!!L["itemList"+i],t=(s||e.h(t),s?L["itemList"+i]:L["itemList"+i]=e.n("span")),l=s?L["itemListValue"+i]:L["itemListValue"+i]=t.n("label"),c=(l.h("Selected Value"),s||l.cl(function(e){e.stopPropagation(),u.node.querySelectorAll(".active")?.forEach(function(e){e!=l.node&&e.classList.remove("active")}),l.node.classList.contains("active")?l.node.classList.remove("active"):l.node.classList.add("active")}),s?L["itemOptions"+i]:L["itemOptions"+i]=t.n("span"));c.h(""),r.map(function(e){var t=c.n("label");t.cl(function(){l.node.classList.remove("active"),S(a,e.code),l.h(o(e))}),n(t,e)}),a&&""!=a&&(L["General"+i]||(L["General"+i]=function(e){document.body.dispatchEvent(new CustomEvent("ag.language.update."+i,{detail:e.detail}))},document.body.addEventListener("ag.language.update",L["General"+i])),L["Field"+i]||(L["Field"+i]=function(e){var e=e.detail[a],n=Array.isArray(e)?e[0]:e,e=r.find(function(e,t){return e.code==n});o&&(S(a,n),l.h(o(e,!0)))},document.body.addEventListener("ag.language.update."+i,L["Field"+i])))}function k(e){return this.node=document.createElement(e),this}async function $(e,t){var n,a="";for(n in t)a+=(""!=a?"&":"")+n+"="+t[n];return e+=-1<e.indexOf("?")?"&":"?"+a,(await fetch(e,{method:"GET",cache:"no-cache",headers:{"Content-Type":"application/json"}})).json()}k.prototype.a=function(e,t){return this.node.setAttribute(e,t),this},k.prototype.n=function(e){e=new k(e);return this.node.appendChild(e.node),e},k.prototype.h=function(e){return this.node.innerHTML=e,this},k.prototype.cl=function(e){return this.node.removeEventListener("click",e),this.node.addEventListener("click",e),this},window.agLanguage={refresh:function(){document.body.dispatchEvent(new CustomEvent("ag.language.refresh.currency"))},refreshLocale:function(){document.body.dispatchEvent(new CustomEvent("ag.language.change.language"))}},(async()=>{document.querySelectorAll("[ag-language]").forEach(w);var a,r,o,e=!1,t=C();if(!t?.code)for(var n in e=!0,document.body.addEventListener("ag.language.country.auto-discovery",function(t){var e=f.presets.filter(function(e){return e.code==t.detail.countryCode});if(null!=e&&0<e.length&&"US"!=e[0].code){for(var n in e[0]){var a=Array.isArray(e[0][n])?e[0][n][0]:e[0][n];S(n,a="language"==n&&e[0].states&&e[0].states[t.detail.state]?e[0].states[t.detail.state]:a)}document.body.dispatchEvent(new CustomEvent("ag.language.update",{detail:e[0]}))}}),t=f.presets.filter(function(e){return"US"==e.code})[0])S(n,Array.isArray(t[n])?t[n][0]:t[n]);document.body.dispatchEvent(new CustomEvent("ag.language.update",{detail:t})),c(!0),t.language&&-1==t.language.indexOf("en")?s():(i=Object.assign({},t),l({Locale:"en_US"})),(async()=>{document.body.addEventListener("ag.language.change.language",function(){s()}),document.body.addEventListener("ag.language.change.currency",function(){c()}),document.body.addEventListener("ag.language.change.messurement",function(){g()}),document.body.addEventListener("ag.lazy.refresh",function(){g()}),document.body.addEventListener("ag.language.refresh.currency",function(){c()})})(),f.unitConvertionSchema=(r=a="",o={notationExpressions:{},notationOnlyExpressions:{},getValue:function(e){return parseFloat(e.replaceAll(/[^0-9\\.]/gi,""))},formatValue:function(e){return e.toLocaleString("en-US",{maximumFractionDigits:2})},haveValidAttribute:function(e){return!!e.hasAttribute&&e.hasAttribute("data-th")},getLabelForAttribute:function(e){return e.getAttribute?e.getAttribute("data-th"):""},setLabelForAttribute:function(e,t){e.setAttribute&&e.setAttribute("data-th",t)},getValueForAttribute:function(e){return e.innerText},setValueForAttribute:function(e,t){e.innerText=t}},f.unitConvertions.forEach(function(e){var t="",n="";e.notation.forEach(function(e){n+=(""!=n?"|":"")+"((?<N>"+e.replaceAll(/\s/gi,"\\s").replaceAll(/([^0-9A-z])/gi,"\\$1")+")(\\s|[^A-z]|$))",t+=(""!=t?"|":"")+"((?<V>[0-9\\,\\.]+)(\\n|\\s)*(?<N>"+e.replaceAll(/\s/gi,"\\s").replaceAll(/([^0-9A-z])/gi,"\\$1")+")(\\s|[^A-z]|$))"}),o.notationExpressions[e.unit]=new RegExp(t,"gmi"),o.notationOnlyExpressions[e.unit]=new RegExp(n,"gmi"),a+=(""!=a?"|":"")+"("+t+")",r+=(""!=r?"|":"")+"("+n+")"}),o.expression=new RegExp(a,"gmi"),o.notationExpression=new RegExp(r,"gmi"),o.valueExpression=new RegExp("((?<V>[0-9\\,]+(\\.[0-9]+)?)(\\n|\\s)*)","gmi"),await o),g(!0),e||(window.agLocale||(window.agLocale={}),window.agLocale.locale=t,document.body.dispatchEvent(new CustomEvent("ag.language.update.success")))})()})(),$(document).on("change",'[data-ck-propertylist] [data-sort-object="CMNCMN"]',{},function(){e($(this).parents("[data-ck-propertylist]:first"),$(this).parents("[data-ck-property-url]:first").data("ck-property-url"),$(this).parents("[data-ck-propertylist]:first").data("ck-demand-key"),$(this).parents("[data-ck-propertylist]:first").data("ck-demand-layout"))})}function GetPropertyImageGallery(e){var t=e.find(".slides"),n=(t.attr("data-css-slider","0"),e.find("[data-mk]").data("mk")),a=e.find("[data-mlsboard]").data("mlsboard"),r=e.find("[data-detail-url]").data("detail-url"),o=$("[data-pcode]").data("pcode"),i=e.find("[data-mls-photo]").data("mls-photo"),s=e.find("[data-native-tab]").data("native-tab"),o=(IsNotNull(i)||(i="/images/company/"+o+"/NoPhotoImage/image-not-found.jpg"),parseInt(t.data("value"),10)),l=e.closest("[id]");buildFirstTemplate(i,o,(0==e.length?"un":l.attr("id").replace(/\$/gi,""))+(new Date).getMilliseconds(),a,n,t,r,s),e.addClass("init")}function buildFirstTemplate(e,t,n,a,r,o,i,s){var l=n+a+r+"_",n=($('<input type="radio" aria-label="'+l+'slider" name="'+l+'slider" id="'+l+'0" checked />').appendTo(o),$('<div class="nav"></div>')),c=$('<label aria-label="next" aria-controls="myCarousel-items" data-css-slider-nav="propphoto" for="'+l+'1" class="next"><span aria-label="next" class="visuallyhidden">next</span></label>'),u=$('<label aria-label="prev" aria-controls="myCarousel-items" data-css-slider-nav="propphoto" for="'+l+(parseInt(t,10)-1)+'" class="prev"><span aria-label="prev" class="visuallyhidden">prev</span></label>'),s=(u.on("click",d),c.on("click",d),u.appendTo(n),c.appendTo(n),t="PSB"==$("[data-pcode]").data("pcode")?"":'target = "_blank"',"undefined"!=s&&""!=s&&1==s&&(t=""),$('<li class="slide-container" aria-roledescription="carousel" role="contentinfo"><div class="slide"><div class="Prop_img" role="img" aria-label="bannerImage" style="background-image:url(\''+e+'\');"><a aria-label="'+l+'slider"'+t+'href="'+i+'"></a></div></div></li>'));function d(){var t=$(this);u.off("click"),c.off("click"),$.ajax({url:"/services/agoraPropertyPhotos.aspx",data:{mlsboard:a,mlsno:r,container:l},success:function(e){o.append(e),t.trigger("click")}})}s.append(n),s.appendTo(o)}function openImageGallery(e){var t=e.getAttribute("data-mk"),n=e.getAttribute("data-rt");showPropertyGallery(document.body.getAttribute("data-pcode"),n,t,e.getAttribute("data-photocount")??1,"fullscreen")}function setForms(e){null!=document.querySelector('[node="FirstName"]')&&null!=document.querySelector('[node="FirstName"]')&&(document.querySelector('[node="FirstName"]').value=e.FirstName??""),null!=document.querySelector('[node="LastName"]')&&null!=document.querySelector('[node="LastName"]')&&(document.querySelector('[node="LastName"]').value=e.LastName??""),null!=document.querySelector('[node="Email"]')&&null!=document.querySelector('[node="Email"]')&&(document.querySelector('[node="Email"]').value=e.Email??""),null!=document.querySelector('[node="MobilePhone"]')&&null!=document.querySelector('[node="MobilePhone"]')&&(document.querySelector('[node="MobilePhone"]').value=e.MobilePhone??"")}agora(function(){function e(){var e=$(this),t=$("#"+e.data("page-scroll")),t=null!=t&&0<t.length?t.offset().top:0,n=0;try{var a=e.data("page-scroll-offset"),n=void 0!==a&&""!=a?parseInt(a):$("#agora-layout-header").height()}catch(e){}$("html, body").animate({scrollTop:t-n},1500);try{$("#"+e.data("page-scroll-tab-id")).trigger("click")}catch(e){}}jQuery.fn.ForceNumericOnly=function(){return this.each(function(){$(this).keydown(function(e){var t=e.charCode||e.keyCode||0;return 8==(t=e.shiftKey?0:t)||9==t||13==t||46==t||110==t||190==t||35<=t&&t<=40||48<=t&&t<=57||96<=t&&t<=105})})},$("[data-numeric-only]").ForceNumericOnly(),$(document).ready(function(){$("[data-numeric-only]").ForceNumericOnly()}),$(document).on("click","[data-page-scroll]",e),$(document).on("tap","[data-page-scroll]",e),$(document).on("click","[data-back-to-top]",function(){BackToTop(this)}),$(document).on("tap","[data-back-to-top]",function(){BackToTop(this)}),$(document).on("click","[data-back-to-down]",function(){TopToBottom(this)}),$(document).on("tap","[data-back-to-down]",function(){TopToBottom(this)}),$(document).on("click","[data-href]",function(e){0<$(e.target).closest("[data-non-click-content]").length||isNullOrEmpty($(this).data("href"))||(isNullOrEmpty($(this).data("target"))?location.href=$(this).data("href"):window.open($(this).data("href"),$(this).data("target")))})}),agora(function(){$(document).ready(function(){!location.hash||"#signup"!=location.hash.toLowerCase()&&"#register"!=location.hash.toLowerCase()&&"#reset-password"!=location.hash.toLowerCase()||OpenPopup()})}),window.agRequest={GET:async function(e,t){var n,a="";for(n in t)a+=(""!=a?"&":"")+n+"="+t[n];return e+=-1<e.indexOf("?")?"&":"?"+a,(await fetch(e,{method:"GET",cache:"no-cache",headers:{"Content-Type":"application/json"}})).json()},POST:async function(e,t){var n,a=new URLSearchParams;for(n in t)a.append(n,t[n]);return(await fetch(e,{method:"POST",cache:"no-cache",body:a})).json()}},(async()=>{async function t(){document.querySelectorAll('[data-src]:not(.ag-lazy):not(.no-ag):not([data-src*="{{"])').forEach(function(e,t){e.classList.add("ag-lazy");var n=function(){(async(e,t)=>{var n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=";if(await(async e=>{let t=e.getBoundingClientRect(),n=document.body,a=document.documentElement,r=window.pageYOffset||a.scrollTop||n.scrollTop,o=(window.pageXOffset||a.scrollLeft||n.scrollLeft,a.clientTop||n.clientTop||0),i=(a.clientLeft||n.clientLeft,t.top+r-o),s=t.bottom+r-o,l=r,c=l+window.innerHeight;return s>l&&i<c})(e)){if(null==e)return;var a=await(async(e,t)=>{var n,a,r;return null==t?null:t.hasAttribute("data-ratio-auto")||"VIDEO"==t.nodeName||"OBJECT"==t.nodeName?{url:e}:null==(n=await async function e(t,n,a,r){if(null==t)return null;var o=t.getBoundingClientRect();var i=t.getAttribute("data-ratio");var s=t.getAttribute("data-scale");null!=s&&(r=parseFloat(s));s=null;i&&null!=i&&null!=(s=/^(?<width>[0-9\.]{1,4}):(?<height>[0-9\.]{1,4})$/gi.exec(i))&&(n=parseFloat(s.groups.width),a=parseFloat(s.groups.height),0==n&&(n=-1),0==a)&&(a=-1);i=o.width;s=o.height;t.classList.contains("ag-lazy")&&(i=t.getAttribute("width"),s=t.getAttribute("height"),i=null==(i=null!=i&&""!=i?i:t.style.width)||""==i?0:parseInt(i.replace(/[^\d]+/gi,"")),s=null==s||""==s?0:parseInt(s.replace(/[^\d]+/gi,"")));i!=s&&(null==i||null==s||s<i/n*a||i<s/a*n)&&(0<i?s=i/n*a:i=s/a*n);if((0<i||n<0)&&(0<s||a<0))return i=Math.floor(i),s=Math.floor(s),{width:n<0?0:i+(10-i%10),height:a<0?0:s+(10-s%10),scale:r};return e(t.parentElement,n,a,r)}(t,16,9,1))?null:(a=/.*\?(.*?(mh|mw)\=(\d+))*/gi.exec(e),r="",null!=t.getAttribute("data-crop")&&(r+="&mode=crop"),e.indexOf("/"),null!=a?{url:e,size:n}:{url:e+"?"+(0<n.width?"mw="+n.width*n.scale+(0<n.height?"&":""):"")+(0<n.height?"mh="+n.height*n.scale:"")+r,size:n})})(e.getAttribute("data-src"),e);e.setAttribute("data-src",a.url),"VIDEO"==e.nodeName||"OBJECT"==e.nodeName||"AUDIO"==e.nodeName?e.setAttribute("src",a.url):"IMG"==e.nodeName?(e.addEventListener("load",function(){e.getAttribute("src")!=n&&e.classList.add("ag-lazy-s")}),e.setAttribute("src",n),null!=a&&(a.size&&(0<a.size.width&&e.setAttribute("width",a.size.width),0<a.size.height)&&e.setAttribute("height",a.size.height),e.setAttribute("src",a.url))):e.style["background-image"]=`url('${a.url}')`,t()}new IntersectionObserver(function(){console.log(e,"View")},{root:null,rootMargin:"0px",threshold:.1})})(e,function(){document.body.removeEventListener("ag.lazy",n)})};document.body.addEventListener("ag.lazy",n),n()})}document.addEventListener("DOMContentLoaded",async function(){document.body.addEventListener("ag.lazy.refresh",t),document.body.addEventListener("ag.refresh",t);var e=new CustomEvent("ag.lazy.refresh"),e=(document.body.dispatchEvent(e),document.addEventListener("scroll",function(e){var t=new CustomEvent("ag.lazy");document.body.dispatchEvent(t)}),new CustomEvent("ag.lazy"));document.body.dispatchEvent(e),window.agLazy={refresh:function(){var e=new CustomEvent("ag.lazy.refresh");document.body.dispatchEvent(e)},validate:function(){var e=new CustomEvent("ag.lazy");document.body.dispatchEvent(e)}}})})(),(async()=>{null!=document.querySelector(".item-acc-i")&&document.querySelectorAll(".item-acc-i").forEach(e=>{let t=e.closest(".item-acc-c");e.classList.contains("open")&&(t.style.maxHeight=t.scrollHeight+"px"),e.addEventListener("click",()=>{e.classList.toggle("open"),e.classList.contains("open")?t.style.maxHeight=t.scrollHeight+"px":e.classList.contains("open")||(t.style.maxHeight=document.querySelector(".item-acc-i").offsetHeight+"px")})})})(),(async()=>{null!=document.querySelector(".item-tab-b")&&document.querySelectorAll(".item-tab-b").forEach((a,r)=>{a.addEventListener("click",()=>{let t=document.querySelectorAll(".item-tab-c");var e=a.parentElement,n=e.parentElement;e.querySelectorAll(".item-tab-b").forEach(e=>{e.classList.remove("active")}),n.querySelectorAll(".item-tab-c").forEach(e=>{e.classList.remove("active"),t[r].classList.add("active")}),a.classList.add("active")})})})(),(async()=>{if(null!=document.querySelector(".item-sea")){document.querySelectorAll(".con-menu a").forEach(function(e){e.addEventListener("click",function(){document.querySelector(".label-con").setAttribute("data-country",e.innerHTML),e.closest(".item-dr-c").previousElementSibling.classList.contains("active")&&e.closest(".item-dr-c").previousElementSibling.classList.remove("active")})});let a=document.querySelectorAll(".item-dr > .item-dr-la");async function e(){window.innerWidth<=1024&&(document.querySelector(".item-onstxt").addEventListener("click",function(){document.body.classList.add("srch-opnd")}),document.querySelectorAll(".cancel-btn").forEach(function(e){e.addEventListener("click",function(){document.body.classList.remove("srch-opnd")})}))}a.forEach((e,t)=>{e.addEventListener("click",()=>{var n;n=t,e.classList.toggle("active"),a.forEach((e,t)=>{t!==n&&e.classList.remove("active")})})}),window.addEventListener("mouseup",function(t){a.forEach(e=>{t.target.closest(".item-dr-la")||t.target.closest(".item-dr-c")||e.classList.remove("active")})}),document.querySelectorAll(".item-cl").forEach(function(e){e.addEventListener("click",function(){e.closest(".item-dr-c").previousElementSibling.classList.contains("active")&&e.closest(".item-dr-c").previousElementSibling.classList.remove("active")})}),e(),window.addEventListener("resize",e)}})(),(async()=>{window.addEventListener("scroll",async function(){10<window.scrollY?document.body.classList.add("scroll"):document.body.classList.remove("scroll")})})(),(async()=>{async function e(){async function e(){var e;document.querySelector(".burger-c").classList.contains("item-n-2")&&(document.querySelector(".burger-c").classList.remove("item-n-2"),document.querySelector(".burger-c").classList.add("item-n-1")),null!=document.querySelector(".item-uc")&&(e=document.querySelector(".item-uc"),document.querySelector(".item-h").querySelector("nav").insertBefore(e,document.querySelector(".item-h").querySelector("nav").firstChild))}null!=document.querySelector(".burger-c")&&(window.innerWidth<=1024&&e(),1024<window.innerWidth&&(async()=>{var e;document.querySelector(".burger-c").classList.contains("item-n-1")&&(document.querySelector(".burger-c").classList.remove("item-n-1"),document.querySelector(".burger-c").classList.add("item-n-2")),null!=document.querySelector(".item-uc")&&(e=document.querySelector(".item-uc"),document.querySelector(".item-h").appendChild(e))})(),document.querySelector(".burger-c ~ nav").offsetWidth<document.querySelector(".burger-c ~ nav").scrollWidth)&&e()}e(),window.addEventListener("resize",e)})(),(async()=>{var e=document.querySelectorAll(".a-b-1, .a-b-2, .a-b-3, .a-b-4, .a-b-5");null!=e&&e.forEach(e=>{e.addEventListener("click",function(e){var t,n=e.offsetX,e=e.offsetY;document.getElementsByClassName("ripple").length<10&&((t=document.createElement("span")).classList.add("ripple"),t.style.left=n+"px",t.style.top=e+"px",this.appendChild(t),setTimeout(function(){t.remove()},1e3))})})})(),(async()=>{var e=document.querySelectorAll(".video-play");null!=e&&e.forEach(e=>{e.addEventListener("playing",function(){e.closest("figure").classList.add("no-btn")}),e.addEventListener("pause",function(){e.closest("figure").classList.remove("no-btn")})})})(),(async()=>{null!=document.querySelector(".expand-more")&&(document.querySelector(".expand-more").addEventListener("click",function(e){this.closest(".subnav").classList.toggle("responsive")}),document.querySelectorAll(".subnav > a").forEach(e=>{e.addEventListener("click",function(e){this.closest(".subnav").classList.remove("responsive")})}))})(),(async()=>{null!=document.querySelector(".label-sel")&&document.querySelectorAll(".label-sel").forEach(e=>{e.querySelector(".item-select").addEventListener("change",function(){e.classList.add("active")})})})(),window.agSlider=function(e,t,E){for(var S={autoPlay:!1,autoPlayDelay:3e3,loop:!1,showControls:!0,btnLeft:".left-btn",btnRight:".right-btn",showBullets:!1,showBulletsAsThumb:!1,bulletContainer:".bullets",itemWrapper:".agy-caro-in",wrapperMask:0,itemContainer:".agy-caro-it"},n=(null!=e&&(S=((e,t)=>{for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e})(S,e)),null==t&&(t=".agy-caro"),document.querySelectorAll(t)),a=0;null!=n&&n.length>a;a++)(a=>{var r=a.querySelector(S.itemWrapper),o=r.querySelectorAll(S.itemContainer).length,i=r.querySelector(S.itemContainer).offsetWidth,s=Math.round(r.offsetWidth/i),l=0,c=o,u=null!=S.btnLeft&&null!=S.btnLeft?a.querySelector(S.btnLeft):null,d=null!=S.btnRight&&null!=S.btnRight?a.querySelector(S.btnRight):null,p=!1,e=r.offsetWidth==i,f=!1,h=0;!isNaN(S.wrapperMask)&&0<S.wrapperMask&&(S.wrapperMask=100<S.wrapperMask?100:S.wrapperMask,r.style.scrollPadding=S.wrapperMask+"%",2<o)&&(f=!0);for(var t,n,m,g,y=r.querySelectorAll(S.itemContainer),v=0;v<y.length;v++)y[v].classList.add("idx-"+v),f&&v==y.length-1&&(r.prepend(y[v]),h=r.scrollLeft);if(null!=u&&(S.showControls||(u.style.display="none"),u.addEventListener("click",()=>{0==l&&!S.loop||(0==l?(r.scrollLeft=i*(o-1),C(i*(o-s))):(r.scrollLeft=r.scrollLeft+-i,C(e?(l-1)*i:r.scrollLeft+-i)))})),null!=d&&(S.showControls||(d.style.display="none"),d.addEventListener("click",()=>{c==o-1&&!S.loop||(c==o-1?(r.scrollLeft=0,C(h)):(r.scrollLeft=r.scrollLeft+ +i,C(e?(l+1)*i:r.scrollLeft+ +i)))})),S.showBullets){if(null==a.querySelector(S.bulletContainer)||null==a.querySelector(S.bulletContainer))return S.showBullets=!1;for(v=0;v<Math.round(o/s);v++){var b,x,w=S.showBulletsAsThumb||e?document.createElement("div"):document.createElement("button");w.classList.add("dot"),w.classList.add("idx-"+v),w.setAttribute("idx",v),S.showBulletsAsThumb&&e&&(b=document.createElement("img"),x=null!=r.querySelector(S.itemContainer+".idx-"+v+" img")?r.querySelector(S.itemContainer+".idx-"+v+" img"):r.querySelector(S.itemContainer+".idx-"+v+" video"),b.setAttribute("src","IMG"==x.nodeName?x.getAttribute("data-src"):x.getAttribute("poster")),w.appendChild(b)),0==v&&w.classList.add("active"),w.addEventListener("click",e=>{e=parseInt(e.currentTarget.getAttribute("idx")),S.autoPlay=!1,p=!0,r.scrollLeft=e*s*i,C(e*s*i)}),a.querySelector(S.bulletContainer).appendChild(w)}}function C(e){l=Math.round((e-h)/i),c=Math.round(l+s-1);for(var t,n=0;n<o;n++)r.querySelector(S.itemContainer+".idx-"+n).classList.remove("active"),l<=n&&n<=c&&(n<=c-(f?1:0)&&(r.querySelector(S.itemContainer+".idx-"+n).classList.add("active"),null!=r.querySelector(S.itemContainer+".idx-"+n+" video"))&&((t=r.querySelector(S.itemContainer+".idx-"+n+" video")).setAttribute("src",t.getAttribute("data-src")),t.pause(),t.currentTime=0,t.play(),p=!0,t.addEventListener("ended",function(e){p=!1},!1)),r.querySelectorAll(S.itemContainer+".idx-"+n+" img").forEach(e=>{e.setAttribute("src",e.getAttribute("data-src"))})),f&&0==n&&r.querySelectorAll(S.itemContainer+".idx-"+(o-1)+" img").forEach(e=>{e.setAttribute("src",e.getAttribute("data-src"))});if(0!=l||S.loop?u.classList.remove("disabled"):u.classList.add("disabled"),c!=o-1||S.loop?d.classList.remove("disabled"):d.classList.add("disabled"),S.showBullets)for(n=0;n<Math.round(o/s);n++)n!=Math.round((l+s)/s)-1?a.querySelector(S.bulletContainer+" .dot.idx-"+n).classList.remove("active"):a.querySelector(S.bulletContainer+" .dot.idx-"+n).classList.add("active")}S.showBulletsAsThumb&&(t=a.querySelector(S.bulletContainer).querySelector(".dot").offsetWidth,null!=u&&u.addEventListener("click",()=>{a.querySelector(S.bulletContainer).scrollLeft-=t}),null!=d&&d.addEventListener("click",()=>{a.querySelector(S.bulletContainer).scrollLeft+=t}),n=!1,a.querySelector(S.bulletContainer).addEventListener("mousedown",e=>{n=!0,a.querySelector(S.bulletContainer).classList.add("dragging"),m=e.pageX,g=a.querySelector(S.bulletContainer).scrollLeft}),a.querySelector(S.bulletContainer).addEventListener("mousemove",e=>{n&&(a.querySelector(S.bulletContainer).scrollLeft=g-(e.pageX-m))}),document.addEventListener("mouseup",()=>{n=!1,a.querySelector(S.bulletContainer).classList.remove("dragging")})),S.autoPlay&&(function e(){setTimeout(function(){p||d.click(),e()},S.autoPlayDelay)}(),r.addEventListener("mouseenter",function(){r.offsetWidth!=i&&(p=!0)}),r.addEventListener("mouseleave",function(){r.offsetWidth!=i&&(p=!1)})),C(r.scrollLeft),null!=E&&E(a)})(n[a])},agora(function(){refreshTracking(),$(document).on("click","[data-for]",function(e){try{var t=$(this).data("for");$('[for="'+t+'"]').trigger("click")}catch(e){}})}),Date.prototype.yyyymmddhhmmss=function(){var e=this.getFullYear(),t=this.getMonth()<9?"0"+(this.getMonth()+1):this.getMonth()+1,n=this.getDate()<10?"0"+this.getDate():this.getDate(),a=this.getHours()<10?"0"+this.getHours():this.getHours(),r=this.getMinutes()<10?"0"+this.getMinutes():this.getMinutes(),o=this.getSeconds()<10?"0"+this.getSeconds():this.getSeconds();return"".concat(e).concat(t).concat(n).concat(a).concat(r).concat(o)},(async()=>{var a=!1;async function r(){var e=null;return null!=(e=null!=window.localStorage.getItem("AGUSER")?JSON.parse(window.localStorage.getItem("AGUSER")):e)&&document.body.classList.contains("restricted-listing")&&document.body.classList.remove("restricted-listing"),e}async function t(e){var t;null==e?(window.localStorage.removeItem("AGUSER"),document.body.dispatchEvent(new CustomEvent("ag.user.clear"))):e.Guid&&((t={}).Guid=e.Guid,t.Name=e.Name,t.FirstName=e.FirstName,t.LastName=e.LastName,t.Email=e.Email,t.Phone=e.Phone,t.MobilePhone=e.MobilePhone,e.LoginAgent&&(t.LoginAgent={Key:e.LoginAgent.Key,Email:e.LoginAgent.Email,Name:e.LoginAgent.Name}),window.localStorage.setItem("AGUSER",JSON.stringify(t)),n())}async function n(){document.querySelectorAll("[ag-user]").forEach(function(e){(async e=>{e.classList.add("is-applied"),e.cloneNode(!0);var t,n=await r();null!=n&&((async()=>{a?o():document.body.addEventListener("ag.sync.verified.contact",function(){o()}),document.body.addEventListener("ag.lazy.refresh",function(){o()}),document.body.addEventListener("ag.user.refresh.collection",function(){o(!0)}),document.body.addEventListener("ag.user.clear.collection",function(){window.localStorage.removeItem("AGUSERCOLLECTION3")}),document.body.addEventListener("ag.user.clear",function(){document.body.dispatchEvent(new CustomEvent("ag.user.clear.collection"))})})(),t=await(async e=>{var t=new i("p"),n=(t.a("ag-user",""),t.n("button")),a=(n.a("class","user-logged-in a-b-1 f-s-2 u-logined s-c-p m-l-16 xa-b-w-l r-b"),n.h(e.Name),n.cl(function(e){return e.preventDefault(),n.node.classList.contains("active")?n.node.classList.remove("active"):n.node.classList.add("active"),!1}),t.n("span"));return a.n("span").h("Hi, "+e.Name),a.n("input").a("type","hidden").a("id","CONTACT_GUID").a("value",e.Guid),a.n("a").a("href","/dashboard/default.aspx").h("Dashboard"),a.n("span").a("data-modaldialog-src","/dashboard/EditProfile.aspx").a("data-modaldialog-ajax","true").a("data-modaldialog","").h("Edit Profile"),a.n("a").a("href","/dashboard/SignOut.aspx").a("data-agora-icon","").h("Log out").cl(function(){document.body.dispatchEvent(new CustomEvent("ag.user.out"))}),t.node})(n),e.parentElement.insertBefore(t,e),e.remove(),setForms(n))})(e)})}async function o(e){var r,o;r=3,o=e,(await new Promise(async function(e,t){var n=null,a=o?null:window.localStorage.getItem("AGUSERCOLLECTION"+r);null!=a?e(n=JSON.parse(a)):(n=await window.agRequest.GET("/services/agoraClient.ashx",{type:"USERCOLLECTION",collectionType:r}),window.localStorage.setItem("AGUSERCOLLECTION"+r,JSON.stringify(n)),e(n))})).Items.reduce(function(e,t){return e?[...e,...t.Items]:[...t.Items]},[]).forEach(async function(e){(async(e,t)=>{document.querySelectorAll('[data-perform-action-url*="pk='+e.PK+'"][data-perform-action-url*="rt='+e.RT+'"]').forEach(async function(e){e.setAttribute("ag-user-collection",t)})})(e,3)})}function i(e){return this.node=document.createElement(e),this}document.body.addEventListener("ag.user.in",function(e){t(e.detail)}),document.body.addEventListener("ag.user.out",function(e){t(null)}),i.prototype.a=function(e,t){return this.node.setAttribute(e,t),this},i.prototype.n=function(e){e=new i(e);return this.node.appendChild(e.node),e},i.prototype.h=function(e){return this.node.innerHTML=e,this},i.prototype.cl=function(e){return this.node.removeEventListener("click",e),this.node.addEventListener("click",e),this},window.agUser={collection:{refresh:function(){document.body.dispatchEvent(new CustomEvent("ag.user.refresh.collection"))}}},n(),document.body.addEventListener("ag.sync.check",async function(){var e=await r(),t=window.localStorage.getItem("AGSYNC");if(null!=t&&null!=e&&JSON.parse(t).ContactGuid!=e.Guid)return void document.body.dispatchEvent(new CustomEvent("ag.sync.set",{detail:{contactguid:e.Guid,agentkey:e.LoginAgent?e.LoginAgent.Key:"",eventType:"contact"}}));document.body.dispatchEvent(new CustomEvent("ag.sync.verified.contact")),a=!0}),document.body.addEventListener("ag.sync.verified",async function(){document.body.dispatchEvent(new CustomEvent("ag.sync.verified.contact")),a=!0})})(),(async()=>{async function e(){var e=window.localStorage.getItem("AGSYNC");if(null!=e){var e=JSON.parse(e),e=new Date(e.updatedOn),t=new Date;if(t.setMinutes(t.getMinutes()-1),t<e)return void document.body.dispatchEvent(new CustomEvent("ag.sync.verified"))}(async()=>{var e=await window.agRequest.GET("/services/agoraClient.ashx",{type:"SYNC"});e.updatedOn=new Date,window.localStorage.setItem("AGSYNC",JSON.stringify(e)),document.body.dispatchEvent(new CustomEvent("ag.sync.check"))})()}(async()=>{document.body.addEventListener("ag.sync.set",async function(e){await window.agRequest.POST("/services/agoraClient.ashx",Object.assign({type:"SET"},e.detail)),e.detail?.eventType&&document.body.dispatchEvent(new CustomEvent("ag.sync.verified."+e.detail.eventType))}),document.body.addEventListener("ag.sync.invalid",async function(e){document.body.dispatchEvent(new CustomEvent("ag.sync.reset")),window.location.reload()}),e()})()})(),(async()=>{async function e(){var e=window.localStorage.getItem("AGUSERCOUNTRY");null!=e?(e=JSON.parse(e),document.body.dispatchEvent(new CustomEvent("ag.language.country.auto-discovery",{detail:e}))):(async()=>{var e=await window.agRequest.GET("https://ip-service.idcrealestate.com/ip",{});e.updatedOn=new Date,window.localStorage.setItem("AGUSERCOUNTRY",JSON.stringify(e)),document.body.dispatchEvent(new CustomEvent("ag.language.country.auto-discovery",{detail:e}))})()}(async()=>{e()})()})(),(async()=>{var a=new RegExp("(?<Guid>[A-z0-9\\-]+)\\|(?<AgentKey>[0-9]+)","gi");async function e(){var e,t,n=window.location.hash;n.length<1||(t=atob(n.substring(1)),e=null,console.log(t),null!=(e=a.exec(t))?(async(e,t)=>{document.body.classList.add("is-busy"),(e=await window.agRequest.POST("/services/agoraAccess.ashx",{action:"RemoteSignIn",contactguid:e,agentkey:t})).Contact&&(document.body.dispatchEvent(new CustomEvent("ag.user.in",{detail:e.Contact})),window.location.href="/dashboard/default.aspx#saved-searches")})(e.groups.Guid,e.groups.AgentKey):""!=n&&0<n.length&&null!=(t=document.querySelector('[data-tab="'+n.substring(1)+'"]'))&&t.click())}(async()=>{e(),window.addEventListener("hashchange",e)})()})();var loadEvent=new CustomEvent("onAgoraLoad");function refreshTracking(){$("[data-webactivity]").each(function(){var e,n;"true"!==$(this).attr("data-processed")&&(e=$(this).attr("data-webactivity"),n=[],$.each(this.attributes,function(){var e,t;this.name.startsWith("data-webactivity-")&&(e=this.name.substring("data-webactivity-".length),t=this.value,n.push({name:e,value:t}))}),WebActivityTracker("WEBACTIVITY","PROPERTY",e,n),$(this).attr("data-processed","true"))})}function WebActivityTracker(e,t,n,a){var r,o=[];a&&0<a.length&&(r={TrackType:e,ObjectType:t,ObjectActivityType:n},a.forEach(function(e){r[e.name]=e.value}),o.push(r)),$.ajax({type:"POST",url:"/tracker",data:{track:JSON.stringify(o)},dataType:"json",success:function(e){console.log("Tracking successful:",e)},error:function(e){console.error("Tracker not found!",e)}})}function onScroll(e){var n=$(document).scrollTop();$(".c-menu .subnav a").each(function(){var e=$(this),t=$(e.attr("href"));t.position().top-($(".c-menu").outerHeight()+$(".item-h").outerHeight())<=n&&t.position().top+t.height()>n?($(".c-menu .subnav a").removeClass("active"),e.addClass("active")):e.removeClass("active")})}function isLabelOrLiWithController(e){return("LABEL"===e.tagName||"LI"===e.tagName)&&[...e.attributes].some(e=>e.name.endsWith("_controller"))}function handleEvent(e,t){e.stopPropagation();e=[...t.attributes].map(e=>e.name).find(e=>e.endsWith("_controller"))||"Unknown Section";document.body.dispatchEvent(new CustomEvent("controllerVisible",{detail:{controllerName:e}}))}function ClosePopup(){$("[data-modaldialog-close]").trigger("click")}document.dispatchEvent(loadEvent),document.isAgoraLoaded=!0,loadEvent=new CustomEvent("onCssLoad"),document.dispatchEvent(loadEvent),document.isCssLoaded=!0,EnableDemandImport(),EnableSearchForm(),document.body.addEventListener("Plugin.Map.ResultUpdated",function(){refreshTracking()}),null!=$(".c-menu .subnav a")&&($(".c-menu .subnav a").click(function(e){e.preventDefault();e=this.hash;$target=$(e),$("html, body").stop().animate({scrollTop:$target.offset().top-($(".c-menu").outerHeight()+$(".item-h").outerHeight())},"swing",function(){$(document).on("scroll",onScroll)}),$("a").each(function(){$(this).removeClass("active")}),$(this).addClass("active")}),$(document).on("scroll",onScroll),$(window).scroll(function(e){$("body").hasClass("scroll")&&$(".c-menu .subnav a").click(function(e){e.preventDefault(),$("html, body").stop().animate({scrollTop:$($(this).attr("href")).offset().top-($(".c-menu").outerHeight()+$(".item-h").outerHeight())},300)}),$("body").hasClass("scroll")||$(".c-menu .subnav a").click(function(e){$("html, body").stop().animate({scrollTop:$($(this).attr("href")).offset().top-(2*$(".c-menu").outerHeight()+$(".item-h").outerHeight())},300)})})),document.body.addEventListener("ag.widget.no-data",function(e){var t,n=e.detail.sender,e=n.getAttribute("ag-loader");e&&(t=document.querySelectorAll(`[${e+"_controller"}]`),console.log("Widgets:",t),n.hasAttribute("show-no-data")?setTimeout(function(){n.querySelector(".no-data-message")||(n.innerHTML+=`
2
2
  <span class="no-data-message"
3
3
  style="
4
4
  display: block;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ibp-max",
3
- "version": "3.0.18",
3
+ "version": "3.0.19",
4
4
  "description": "Style & JS optimized",
5
5
  "main": "index.js",
6
6
  "scripts": {