1function ajaxFailure(t,e,n){alert(n)}$(document).ready(function(){$.fxbConditions=function(t,e){this.el=t,this.$el=$(t),this.options=$.extend({},$.fxbConditions.defaultOptions,e)},$.fxbConditions.parse=function(t){$(t).init_formConditions()},$.extend($.fxbConditions,{defaultOptions:{fieldConditions:[],animate:!0},helpers:{normalize:function(t,e){return null==t?"":e?String(t):String(t).toLowerCase()},toNumber:function(t){return t=Number(t),isNaN(t)?void 0:t},indexOf:function(t,e,n,i){return t=this.normalize(t,i),e=this.normalize(e,i),t.indexOf(e,n)},endsWith:function(t,e,n){t=this.normalize(t,n),e=this.normalize(e,n);var i=t.length-e.length;return i>=0&&t.substring(i)===e}},actions:{show:function(t){this.loaded&&this.options.animate?t.slideDown():t.show(),this.setRequired(t)},hide:function(t){this.loaded&&this.options.animate?t.is(":visible")&&t.slideUp():t.hide(),this.setRequired(t)},enable:function(t){t.is("input,select,textarea,button")&&(t.prop("disabled",!1),this.setRequired(t))},disable:function(t){t.is("input,select,textarea,button")&&(t.prop("disabled",!0),this.setRequired(t))},"go to page":function(t,e,n){t.each(function(t,i){if(i.name&&i.name.length&&$(i).is("input[type='submit'], button[type='submit']")){var o=this.$el.find('[name="'+i.name+'"][data-sc-next-page]');if(!o.length){if(n&&e.value){var s=this.$el.find('[name="'+i.name+'"]');$("<input>").attr({type:"hidden",name:i.name,value:e.value,"data-sc-next-page":""}).insertAfter(s.last())}return}var a=e.value;if(!n){a=o.data("sc-next-page");for(var r=this.executedActions.length-1;r>=0;r--){var d=this.executedActions[r];if(d.fieldId===e.fieldId&&d.conditionsResult&&"go to page"===d.actionType.toLowerCase()){a=d.value;break}}}o.val(a),o.prop("disabled",!a)}}.bind(this))},actionLinks:{show:"hide",enable:"disable","go to page":"go to page"},addAction:function(t,e,n,i){if(t&&t.length){if(this[t=t.toLowerCase()]=e,2===arguments.length)return;n&&n.length?(n=n.toLowerCase(),this.actionLinks[t]=n,arguments.length>3&&(this[n]=i)):delete this.actionLinks[t]}},getAction:function(t,e){if(t&&t.length){if(t=t.toLowerCase(),e)return this[t];if(this.actionLinks.hasOwnProperty(t))return this[this.actionLinks[t]];for(var n in this.actionLinks)if(this.actionLinks.hasOwnProperty(n)&&this.actionLinks[n]===t)return this[n]}return this[t]}},operators:{contains:function(t,e){return $.fxbConditions.helpers.indexOf(e,t)>=0},"does not contain":function(t,e){return-1===$.fxbConditions.helpers.indexOf(e,t)},"starts with":function(t,e){return 0===$.fxbConditions.helpers.indexOf(e,t)},"does not start with":function(t,e){return 0!==$.fxbConditions.helpers.indexOf(e,t)},"ends with":function(t,e){return $.fxbConditions.helpers.endsWith(e,t)},"does not end with":function(t,e){return!$.fxbConditions.helpers.endsWith(e,t)},"is equal to":function(t,e){if(t=$.fxbConditions.helpers.normalize(t),(e=$.fxbConditions.helpers.normalize(e))===t)return!0;if(t.length){var n=$.fxbConditions.helpers.toNumber(t);if("number"==typeof n){var i=$.fxbConditions.helpers.toNumber(e);return"number"==typeof i&&n===i}}return!1},"is not equal to":function(t,e){if(t=$.fxbConditions.helpers.normalize(t),(e=$.fxbConditions.helpers.normalize(e))===t)return!1;if(t.length){var n=$.fxbConditions.helpers.toNumber(t);if("number"==typeof n){var i=$.fxbConditions.helpers.toNumber(e);return"number"!=typeof i||n!==i}}return!0},"is greater than":function(t,e){if(t=$.fxbConditions.helpers.normalize(t),e=$.fxbConditions.helpers.normalize(e),t.length){var n=$.fxbConditions.helpers.toNumber(t);if("number"==typeof n){var i=$.fxbConditions.helpers.toNumber(e);return"number"==typeof i&&i>n}}return e>t},"is greater than or equal to":function(t,e){if(t=$.fxbConditions.helpers.normalize(t),(e=$.fxbConditions.helpers.normalize(e))===t)return!0;if(t.length){var n=$.fxbConditions.helpers.toNumber(t);if("number"==typeof n){var i=$.fxbConditions.helpers.toNumber(e);return"number"==typeof i&&i>=n}}return e>=t},"is less than":function(t,e){if(t=$.fxbConditions.helpers.normalize(t),e=$.fxbConditions.helpers.normalize(e),t.length){var n=$.fxbConditions.helpers.toNumber(t);if("number"==typeof n){var i=$.fxbConditions.helpers.toNumber(e);return"number"==typeof i&&i<n}}return e<t},"is less than or equal to":function(t,e){if(t=$.fxbConditions.helpers.normalize(t),(e=$.fxbConditions.helpers.normalize(e))===t)return!0;
1if(t.length){var n=$.fxbConditions.helpers.toNumber(t);if("number"==typeof n){var i=$.fxbConditions.helpers.toNumber(e);return"number"==typeof i&&i<=n}}return e<=t},addOperator:function(t,e){t&&t.length&&(this[t.toLowerCase()]=e)},getOperator:function(t){return t&&t.length?this[t.toLowerCase()]:null}},prototype:{initConditions:function(t){if(this.options=$.extend(!0,this.options||{},t),this.options.fieldConditions){var e=[];this.options.fieldConditions.forEach(function(t){t&&t.conditions&&t.conditions.forEach(function(t){if(t.fieldId&&-1===e.indexOf(t.fieldId)){e.push(t.fieldId);var n=this.$el.find('[data-sc-field-key="'+t.fieldId+'"]').filter(function(){return $.fxbConditions.helpers.endsWith(this.name,"value")});n.length&&n.on("change",this.applyConditions.bind(this))}}.bind(this))}.bind(this)),this.applyConditions(),this.loaded=!0}},applyConditions:function(){this.options.fieldConditions&&(this.executedActions=[],this.options.fieldConditions.forEach(function(t){if(t&&t.actions&&t.actions.length){var e=this.evaluateConditions(t);t.actions.forEach(function(t){this.executeAction(t,e)}.bind(this))}}.bind(this)))},setRequired:function(t){t.each(function(t,e){var n=$(e);if(n.is("input:not([type='submit']), select, textarea")){var i=e.name;if(!$.fxbConditions.helpers.endsWith(i,"value"))return;i=i.slice(0,-(i.length-i.lastIndexOf(".")-1))+"Required";var o=this.$el.find('[name="'+i+'"][data-sc-conditions-required]'),s=n.is(":hidden")||"hidden"===n.css("visibility")||e.disabled;if(!o.length){if(s){var a=this.$el.find('[name="'+e.name+'"]');$("<input>").attr({type:"hidden",name:i,value:!1,"data-sc-conditions-required":""}).insertAfter(a.last())}return}o.val(!1),o.prop("disabled",!s)}else this.setRequired(n.find("input:not([type='submit']), select, textarea"))}.bind(this))},executeAction:function(t,e){if(t&&t.fieldId&&t.actionType){var n=this.$el.find('[data-sc-field-key="'+t.fieldId+'"]');if(n.length){var i=$.fxbConditions.actions.getAction(t.actionType,e);if(i&&"function"==typeof i){i.call(this,n,t,e);var o=$.extend(!0,t,{conditionsResult:e});this.executedActions.push(o)}}}},evaluateConditions:function(t){if(!t||!t.conditions)return!0;switch((t.matchType||"").toLowerCase()){case"all":return t.conditions.every(this.isConditionSatisfied.bind(this));case"any":default:return t.conditions.some(this.isConditionSatisfied.bind(this))}},getValueList:function(t){var e,n=this.$el.find('[data-sc-field-key="'+t+'"]').filter(function(){return $.fxbConditions.helpers.endsWith(this.name,"value")}),i=n.filter(function(t,e){return"checkbox"===e.type||"radio"===e.type});return i.length?i.length>1?(e=i.filter(":checked").map(function(){return $(this).val()}).get()).length||e.push(""):e=[i[0].checked?"true":"false"]:e=[n.val()],e},isConditionSatisfied:function(t){if(t&&t.operator){var e=$.fxbConditions.operators.getOperator(t.operator);if(e&&"function"==typeof e){var n=this.getValueList(t.fieldId);return"is not equal to"===t.operator?n.every(e.bind(this,t.value)):n.some(e.bind(this,t.value))}}return!1}}}),$.fn.init_fxbConditions=function(t){return this.each(function(){var e=$.data(this,"fxbForms.conditions");e?e.initConditions(t):(e=new $.fxbConditions(this,t),$.data(this,"fxbForms.conditions",e),e.initConditions())})},$.fn.init_formConditions=function(){var t=this.find("input[data-sc-fxb-condition]");if(t.length>0&&null!=t.attr("value")){var e=JSON.parse(t.attr("value"));e&&"function"==typeof this.init_fxbConditions&&this.init_fxbConditions(e)}};var t=$("form[data-sc-fxb]");t.length&&t.each(function(){$(this).init_formConditions()})}),function(t){var e=t.validator.unobtrusive.adapters;function n(t){const[e,n]=t.split(" "),[i,o]=e.split(":");let s=parseInt(i,10);return"PM"===n&&12!==s?s+=12:"AM"===n&&12===s&&(s=0),`${s.toString().padStart(2,"0")}:${o}`}t.validator.addMethod("openinghoursvalidationtype",function(e,n,i){const o=new Date,s=new Date(e);(c=document.getElementsByClassName("sc-preferreddate")[0]).classList.remove("SAT-validation-error"),document.getElementsByClassName("sc-preferredtime")[0].classList.remove("SAT-validation-error");for(var a=document.getElementsByClassName("out-of-hours"),r=a.length-1;r>=0;--r)a[r].remove();if(s<o)return!1;const d=t(".sc-preferredtime").val();console.log(d);let l=new Date(e+" "+d).getDay()-1;-1===l&&(l=6);const u=i.openinghours.split(","),f=[];if(u.forEach(t=>{const e=t.split(";")[0];""!==e&&f.push(e)}),0==f.length||f.includes(l.toString())){var h=l.toString()+";";return u.find(t=>t.includes(h)).includes("Closed")?((c=document.getElementsByClassName("sc-preferreddate")[0]).classList.add("SAT-validation-error"),t("<p class='out-of-hours'>Please be aware this is outside of the community's operating hours.</p>").insertAfter(c),!0):((c=document.getElementsByClassName("sc-preferreddate")[0]).classList.remove("SAT-validation-error"),!0)}var c;return(c=document.getElementsByClassName("sc-preferreddate")[0]).classList.add("SAT-validation-error"),t("<p class='out-of-hours'>Please be aware this is outside of the community's operating hours.</p>").insertAfter(c),!0}),t.validator.addMethod("openinghoursvalidationtypehours",function(e,i,o){const s=t(".sc-preferreddate").val(),a=new Date(s+" "+e);var r=document.getElementsByClassName("sc-preferredtime")[0];r.classList.remove("SAT-validation-error");var d=r.nextElementSibling;r.nextElementSibling.classList.contains("out-of-hours")&&d.remove();let l=a.getDay()-1;-1===l&&(l=6);const u=o.openinghours.split(",").filter(t=>""!==t.trim()),f=[];if(u.sort((t,e)=>{return t.split(";")[0]-e.split(";")[0]}),u.forEach(t=>{const e=t.split(";")[0];f.push(e)}),0!=f.length||f.includes(l.toString())){return!!function(t,e){var[i,o,s]=e.split(";");"0"==i&&(i="1");const a=new Date(`2000-01-0${i}T${t}`),r=n(o),d=n(s),l=new Date(`2000-01-0${i}T${r}`),u=new Date(`2000-01-0${i}T${d}`);return a>=l&&a<=u}(e,u.find(t=>t.startsWith(l)).toString())||(r.classList.add("SAT-validation-error"),t("<p class='out-of-hours'>Please be aware this is outside of the community's operating hours.</p>").insertAfter(r),!0)}return r.classList.add("SAT-validation-error"),t("<p class='out-of-hours'>Please be aware this is outside of the community's operating hours.</p>").insertAfter(r),!0}),e.add("openinghoursvalidationtype",["openinghours"],function(t){var e={openinghours:t.params.openinghours};t.rules.openinghoursvalidationtype=e,t.messages.openinghoursvalidationtype=t.message}),e.add("openinghoursvalidationtypehours",["openinghours"],function(t){var e={openinghours:t.params.openinghours};t.rules.openinghoursvalidationtypehours=e,t.messages.openinghoursvalidationtypehours=t.message})}(jQuery),$(document).ready(function(){var t="2ca692cb-bdb2-4c9d-a3b5-917b3656c46a",e="ea27aca5-432f-424a-b000-26ba5f8ae60a";function n(t,e){return-1!==t.toLowerCase().indexOf(e.toLowerCase(),t.length-e.length)}function i(t){var e=t.name;return n(e,"value")?e:s(e)+"Value"}function o(t){var e;if("checkbox"===t.type||"radio"===t.type){var n=$(t).closest("form").find("input[name='"+t.name+"']");n.length>1?(e=[],n=n.not(":not(:checked)"),$.each(n,function(){e.push($(this).val())})):e=t.checked?"1":"0"}else e=$(t).val();return e&&"[object Array]"===Object.prototype.toString.call(e)&&(e=e.join(",")),e}function s(t){var e=t.toLowerCase().indexOf("fields[");return t.substring(0,e+"fields[".length+38)}$.fxbFormTracker=function(t,e){this.el=t,this.$el=$(t),this.options=$.extend({},$.fxbFormTracker.defaultOptions,e),this.init()},$.fxbFormTracker.parse=function(t){$(t).track_fxbForms()},$.extend($.fxbFormTracker,{defaultOptions:{formId:null,sessionId:null,fieldId:null,fieldValue:null,duration:null},prototype:{init:function(){this.options.duration=0,this.options.formId=this.$el.attr("data-sc-fxb")},startTracking:function(){var t,e,n;this.options.sessionId=(t=this.$el,e=t[0].id,n=e.slice(0,-(e.length-e.lastIndexOf("_")-1))+"FormSessionId",t.find("input[type='hidden'][id=\""+n+'"]').val());var i=this,o=this.$el.find("input:not([type='submit']), select, textarea"),s=o.filter("[data-sc-tracking='True'], [data-sc-tracking='true']"),a=s.not("[type='date']");s.length&&(o.not(s).on("focus",function(){i.onFocusField(this)}),s.on("focus",function(){i.onFocusField(this,!0)}).on("blur",function(){i.onBlurField(this)}),a.on("change",function(){i.onBlurField(this)}))},onFocusField:function(t,e){if(e){var n=i(t);this.options.fieldId!==n&&(this.options.fieldId=n,this.options.duration=$.now(),this.options.fieldValue=o(t))}else this.options.fieldId=""},onBlurField:function(e){var s,a,r,d=i(e),l=$.now();if(!n(d,"value")){var u=(s=this.$el,r=(a=d).slice(0,-(a.length-a.lastIndexOf(".")-1))+"Value",s.find('input[name="'+r+'"]')[0]);if(!u)return;e=u}var f=this.options.duration?Math.round((l-this.options.duration)/1e3):0,h=o(e),c=this.options.fieldId!==d;if(c&&(this.options.fieldId=d,this.options.duration=$.now(),f=0),c||this.options.fieldValue!==h){this.options.fieldValue=h;var p=function(t){return $(t).attr("data-sc-field-name")}(e),m=this.buildEvent(d,p,t,f),g=this.$el.data("validator"),v=[];g&&!g.element(e)&&(v=this.checkClientValidation(e,p,g,f)),this.trackEvents($.merge([m],v))}},buildEvent:function(t,e,n,i){var o=s(t)+"ItemId";return t=$('input[name="'+o+'"]').val(),{formId:this.options.formId,sessionId:this.options.sessionId,eventId:n,fieldId:t,duration:i,fieldName:e}},checkClientValidation:function(t,n,i,o){var s=this,a=[];return $.each(i.errorMap,function(i){if(i===t.name){var r=s.buildEvent(i,n,e,o);a.push(r)}}),a},trackEvents:function(t){$.ajax({type:"POST",url:"/fieldtracking/register",data:JSON.stringify(t),dataType:"json",contentType:"application/json"})}}}),$.fn.track_fxbForms=function(t){return this.each(function(){var e=$.data(this,"fxbForms.tracking");e?e.startTracking():(e=new $.fxbFormTracker(this,t),$.data(this,"fxbForms.tracking",e),e.startTracking())})},$("form[data-sc-fxb]").track_fxbForms()}),function(t){var e=t.validator.unobtrusive.adapters;e.fxbAddNumberVal=function(t,e,n){e=e||"val",n=n||t,this.add(t,[e],function(t){var i=t.params[e];!i&&0!==i||isNaN(i)||(t.rules[n]=Number(i)),t.message&&(t.messages[n]=t.message)})},e.fxbAddMinMax=function(t,e,n,i,o){i=i||"min",o=o||"max",this.add(t,[i,o],function(t){t.params[i]&&t.params[o]&&(t.rules.hasOwnProperty(e)||t.message&&(t.messages[e]=t.message),t.rules.hasOwnProperty(n)||t.message&&(t.messages[n]=t.message))})},e.addBool("ischecked","required"),t.validator.addMethod("daterange",function(t,e,n){return this.optional(e)||t>=n.min&&t<=n.max}),e.add("daterange",["min","max"],function(t){var e={min:t.params.min,max:t.params.max};t.rules.daterange=e,t.messages.daterange=t.message}),e.addSingleVal("filesize","max"),t.validator.addMethod("filesize",function(t,e,n){if(!this.optional(e))for(var i=0;i<e.files.length;i++)if(e.files[i].size>n)return!1;return!0}),e.addSingleVal("filecount","max"),t.validator.addMethod("filecount",function(t,e,n){return!(!this.optional(e)&&e.files.length>n)}),e.addSingleVal("filetype","allowedcontenttypes"),t.validator.addMethod("filetype",function(t,e,n){if(!this.optional(e)){var i=n.split(",").filter(function(t){return""!==t});if(i.length)for(var o=0;o<e.files.length;o++){for(var s=e.files[o],a=!1,r=0;r<i.length;r++){var d=i[r];if(a=-1!==d.indexOf("/")?d.toLowerCase()===s.type.toLowerCase():d.toLowerCase()==="."+s.name.split(".").pop().toLowerCase())break}if(!a)return!1}}return!0}),e.fxbAddNumberVal("min"),e.fxbAddNumberVal("max"),e.fxbAddNumberVal("step"),e.fxbAddMinMax("range","min","max"),e.fxbAddMinMax("length","minlength","maxlength"),e.fxbAddMinMax("daterange","min","max"),t.validator.setDefaults({submitHandler:function(e,n){var i=t(e).find("input[type='submit']");return i.length&&i.prop("disabled",!0),!0}})}(jQuery),$.validator.setDefaults({ignore:":hidden:not(.fxt-captcha)"});var reCaptchaArray=reCaptchaArray||[];$.validator.unobtrusive.adapters.add("recaptcha",function(t){t.rules.recaptcha=!0,t.message&&(t.messages.recaptcha=t.message)}),$.validator.addMethod("recaptcha",function(t,e,n){return!0});var recaptchasRendered=!1,loadReCaptchas=function(){for(var t=0;t<reCaptchaArray.length;t++){var e=reCaptchaArray[t];void 0===e.IsRendered&&(e.IsRendered=!0,e())}};function getDays(t){var e=new Date;return Math.floor((e-new Date(t))/864e5)}function getYears(t){var e=new Date,n=e.getFullYear()-new Date(t).getFullYear(),i=e;return i.setFullYear(i.getFullYear()-n),new Date(t)>i&&n--,n}function getMonths(t){var e=new Date,n=new Date(t);return 12*(e.getFullYear()-n.getFullYear())+e.getMonth()-n.getMonth()}$.validator.unobtrusive.adapters.addSingleVal("contenttype","allowedcontenttypes"),$.validator.addMethod("contenttype",function(t,e,n){if(!this.optional(e))for(var i=0;i<e.files.length;i++)if(n.indexOf(e.files[i].type)<0)return!1;return!0}),$.validator.unobtrusive.adapters.addSingleVal("filesize","maxfilesize"),$.validator.addMethod("filesize",function(t,e,n){if(!this.optional(e))for(var i=0;i<e.files.length;i++)if(e.files[i].size>n)return!1;return!0}),$.validator.unobtrusive.adapters.add("timespan",["min","max","unit"],function(t){t.rules.timespan=[t.params.min,t.params.max,t.params.unit],t.messages.timespan=t.message}),$.validator.addMethod("timespan",function(t,e,n){if(!this.optional(e)){var i=n[2],o=n[0],s=n[1],a=0;switch(i){case"days":a=getDays(t);break;case"months":a=getMonths(t);break;case"years":a=getYears(t)}var r=!0;return void 0!==o&&a<o&&(r=!1),void 0!==s&&a>s&&(r=!1),r}return!0});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.