1if(!Array.prototype.indexOf){Array.prototype.indexOf=function(c,b){var d;if(this==null){throw new TypeError('"this" is null or not defined');}var f=Object(this);var a=f.length>>>0;if(a===0){return -1;}var e=+b||0;if(Math.abs(e)===Infinity){e=0;}if(e>=a){return -1;}d=Math.max(e>=0?e:a-Math.abs(e),0);while(d<a){if(d in f&&f[d]===c){return d;}d++;}return -1;};}if(!Object.keys){Object.keys=(function(){var d=Object.prototype.hasOwnProperty,b=!({toString:null}).propertyIsEnumerable("toString"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],a=c.length;return function(g){if(typeof g!=="object"&&(typeof g!=="function"||g===null)){throw new TypeError("Object.keys called on non-object");}var e=[],f,h;for(f in g){if(d.call(g,f)){e.push(f);}}if(b){for(h=0;h<a;h++){if(d.call(g,c[h])){e.push(c[h]);}}}return e;};}());}if(!Array.prototype.map){Array.prototype.map=function(g,d){var e,c,f;if(this==null){throw new TypeError(" this is null or not defined");}var i=Object(this);var a=i.length>>>0;if(typeof g!=="function"){throw new TypeError(g+" is not a function");}if(arguments.length>1){e=d;}c=new Array(a);f=0;while(f<a){var b,h;if(f in i){b=i[f];h=g.call(e,b,f,i);c[f]=h;}f++;}return c;};}!function(){function a(d){this.message=d;}var b="undefined"!=typeof exports?exports:"undefined"!=typeof self?self:$.global,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";a.prototype=new Error,a.prototype.name="InvalidCharacterError",b.btoa||(b.btoa=function(h){for(var l,k,e=String(h),j=0,g=c,d="";e.charAt(0|j)||(g="=",j%1);d+=g.charAt(63&l>>8-j%1*8)){if(k=e.charCodeAt(j+=0.75),k>255){throw new a("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");}l=l<<8|k;}return d;}),b.atob||(b.atob=function(h){var l=String(h).replace(/[=]+$/,"");if(l.length%4==1){throw new a("'atob' failed: The string to be decoded is not correctly encoded.");}for(var k,e,j=0,g=0,d="";e=l.charAt(g++);~e&&(k=j%4?64*k+e:e,j++%4)?d+=String.fromCharCode(255&k>>(-2*j&6)):0){e=c.indexOf(e); 2}return d;});}();function RoleAccessGranted_Click(b,c){if(c==null){c=false;}var e=jQuery("#"+b.id).parents("tr:first").find("input[id$='ReadPermission']");var d=b.getAttribute("data-targetControlID");if(d==null){d=b.parentNode.getAttribute("data-targetControlID");}if(d!=null){var a=$get(d);if(a!=null){a.style.display=b.checked?"block":"none";if(!c&&!b.checked){a.Clear();if(e!=null){e.prop("checked",true);}}}}}var PermissionEnum_FullControl=1;var PermissionEnum_Read=2;var PermissionEnum_Add=4;var PermissionEnum_Edit=8;var PermissionEnum_Delete=16;function FullControl_Click(b){if(b.checked){b.OtherCheckBoxesSpan.setAttribute("disabled","disabled");}else{b.OtherCheckBoxesSpan.removeAttribute("disabled");}var a=b.OtherCheckBoxesSpan.getElementsByTagName("input");for(i=0;i<a.length;i++){if(a[i].type=="checkbox"){if(b.checked){a[i].nextSibling.style.color="#a6a0a0";a[i].disabled=true;a[i].setAttribute("disabled","disabled");a[i].checked=false;}else{a[i].nextSibling.style.color="";a[i].disabled=false;a[i].removeAttribute("disabled");}}}}function PermissionControlClear(b){var a=b.FullControlCheckBox.checked;b.FullControlCheckBox.checked=false;b.ReadCheckBox.checked=false;b.AddCheckBox.checked=false;b.EditCheckBox.checked=false;b.DeleteCheckBox.checked=false;if(a){b.FullControlCheckBox.OtherCheckBoxesSpan.removeAttribute("disabled");}}function InitializePermissionControls(){for(var f=0;f<PermissionControls.length;f++){var b=$get(PermissionControls[f]);if(b!=null){var e=$get(b.id+"_PermissionEditPanel");var a=e.getElementsByTagName("input");b.FullControlCheckBox=a[0];if(e.firstElementChild){a[0].OtherCheckBoxesSpan=e.firstElementChild.lastElementChild;}else{a[0].OtherCheckBoxesSpan=e.firstChild.lastChild;}if(b.FullControlCheckBox.checked){a[0].OtherCheckBoxesSpan.setAttribute("disabled","disabled");}else{a[0].OtherCheckBoxesSpan.removeAttribute("disabled");}b.ReadCheckBox=a[1];b.AddCheckBox=a[2];b.EditCheckBox=a[3];b.DeleteCheckBox=a[4];b.Clear=function(){PermissionControlClear(this);};b.GetPermission=function(){var g=0; 3if(this.FullControlCheckBox.checked){g=g|PermissionEnum_FullControl;}if(this.ReadCheckBox.checked){g=g|PermissionEnum_Read;}if(this.AddCheckBox.checked){g=g|PermissionEnum_Add;}if(this.EditCheckBox.checked){g=g|PermissionEnum_Edit;}if(this.DeleteCheckBox.checked){g=g|PermissionEnum_Delete;}return g;};b.setAttribute("Permission",b.GetPermission());}}for(var d=0;
3d<RoleAccessGrantedCheckboxes.length;d++){var c=$get(RoleAccessGrantedCheckboxes[d]);if(c!=null){RoleAccessGranted_Click(c);}}}var buttonClientID;function AccessSettings_AddButton_Click(b,a){buttonClientID=b;OpenFinderAdder(AddDialogCompleted,false,null,a,null,null);return CancelEvent();}function AddDialogCompleted(a){if(!a.result){return;}InitiateControlEventWithArgument(buttonClientID,a.result);}if(typeof(Sys)!=="undefined"){Sys.Application.notifyScriptLoaded();}/* appendAround markup pattern. [c]2012, @scottjehl, Filament Group, Inc. MIT/GPL 4how-to: 5 1. Insert potential element containers throughout the DOM 6 2. give each container a data-set attribute with a value that matches all other containers' values 7 3. Place your appendAround content in one of the potential containers 8 4. Call appendAround() on that element when the DOM is ready 9*/ 10(function(a){a.fn.appendAround=function(){return this.each(function(){var f=a(this),i="data-set",b=f.parent(),e=b[0],d=b.attr(i),c=a("["+i+"='"+d+"']");function g(j){return a(j).css("display")==="none";}function h(){if(g(e)){var j=0;c.each(function(){if(!g(this)&&!j){f.appendTo(this);j++;e=this;}});}}h();a(window).bind("resize",h);});};}(jQuery));var Asi=Asi||{};Asi.Localization=(function(){function d(){return window.gCurrentCultureCode||window.navigator.language||window.navigator.userLanguage||window.navigator.browserLanguage||"en-US";}var a=new Map();function g(i){if(!a.has(i)){a.set(i,e(i));}return a.get(i);}function e(k){var m=h(k);var j=new Map();for(var l=0;l<m.numerals.length;l++){j.set(String(m.numerals[l]),l);}return{groupRegex:new RegExp("[\\s"+m.group+"]","g"),decimalRegex:new RegExp("["+m.decimal+"]"),numeralRegex:new RegExp("["+m.numerals.join("")+"]","g"),numeralSubstitute:function(i){return j.get(i);}};}function h(j){var m,p;var n=new Intl.NumberFormat(j,{useGrouping:false});var k=[n.format(0),n.format(1),n.format(2),n.format(3),n.format(4),n.format(5),n.format(6),n.format(7),n.format(8),n.format(9)];var o=new Intl.NumberFormat(j,{useGrouping:true});if(typeof o.formatToParts==="function"){var l=o.formatToParts(12345.6);m=l.find(function(q){return q.type==="group";}).value;p=l.find(function(q){return q.type==="decimal";}).value;}else{var i=new RegExp("["+k.join("")+"]","g");m=o.format(1200).replace(i,"").substring(0,1);p=o.format(1.2).replace(i,"").substring(0,1);if(!m){m=p==="."?",":".";}}return{group:m,decimal:p,numerals:k};}function b(i){return i!==i;}function f(k,j){var i=Number(k);return isNaN(i)?"":i.toLocaleString(d(),j);}function c(j){if(typeof j==="number"){return j;}if(typeof j==="undefined"||j===null){return NaN;}if(b(j)){return NaN;}var i=g(d());return(j=String(j).trim().replace(i.groupRegex,"").replace(i.decimalRegex,".").replace(i.numeralRegex,i.numeralSubstitute))?+j:NaN;}return{getCurrentCulture:d,Number:{toLocaleString:f,parseLocaleString:c}};})();function AsiWebPartZone_OpenZoneCatalog(b,c,a){if(c==null){c="Content gallery";}if(a==="Content"||a==null){ShowDialog(gWebRoot+"/iMIS/ContentManagement/WebPartCatalog.aspx?ExcludeDocumentFromNodeKey=439992cd-c597-43ad-b338-562bb84a776f",b,"800px","95%",c,"","E",AsiWebPartZone_AddPartToZone,null,false,true,null,null);}else{ShowDialog(gWebRoot+"/iMIS/ContentManagement/WebPartCatalog.aspx",b,"800px","95%",c,"","E",AsiWebPartZone_AddPartToZone,null,false,true,null,null);}}function AsiWebPartZone_AddPartToZone(dialogWin){if(dialogWin.result!=null&&dialogWin.Argument!=null){eval(dialogWin.Argument.replace("[[WEBPART]]",dialogWin.result));}}function AsiWebPartZone_AttatchDragNDropEvents(a){if(typeof jQuery!="undefined"){jQuery(document).ready(function(){var b=jQuery(".draggable");b.closest("[id$='ContentPanel']").css("position","relative");b.draggable({opacity:0.6,revert:"invalid",scroll:false,cursor:"move",appendTo:"body",helper:function(){return jQuery(this).clone().width(jQuery(this).width());},start:function(){jQuery(this).toggle();},stop:function(){jQuery(this).toggle();},drag:function(d,c){if(CheckScrollDown(c.position.top,jQuery(".ButtonPanel"))){jQuery(".EmptyMasterContentPanel").autoscroll({direction:"down",step:250,scroll:true});}if(CheckScrollUp(c.position.top,75)){jQuery(".EmptyMasterContentPanel").autoscroll({direction:"up",step:250,scroll:true});}}});jQuery(".droppable").droppable({tolerance:"pointer",scroll:false,activate:function(d,c){jQuery(".droppable").addClass("ui-state-active");var f=c.draggable.parents("tr").eq(0);var e=f.prev().find(".droppable");var g=f.next().find(".droppable");e.droppable("disable");g.droppable("disable");e.removeClass("ui-state-active");g.removeClass("ui-state-active");},drop:function(e,d){jQuery(".EmptyMasterContentPanel").autoscroll("pause");var g=a+jQuery(this).parents(".WebPartZoneDesignTime").attr("ID");var f=jQuery(this).attr("data-wpindex");var c=d.draggable.eq(0).attr("data-webPartID");__doPostBack(g,"Drag:"+c+":"+f);},deactivate:function(d,c){jQuery(".droppable").droppable("enable"); 11jQuery(".droppable").removeClass("ui-state-active");jQuery(".EmptyMasterContentPanel").autoscroll("destroy");},over:function(d,c){jQuery(this).removeClass("ui-state-active");jQuery(this).addClass("ui-state-hover");jQuery(".EmptyMasterContentPanel").autoscroll("destroy");},out:function(d,c){jQuery(this).removeClass("ui-state-hover");jQuery(this).addClass("ui-state-active");jQuery(".EmptyMasterContentPanel").autoscroll("resume");}});});}}function CheckScrollDown(b,d){var e=d.offset().top;var a=d.outerHeight(true);var c=e+a-150;if(b>=c){return true;}return false;}function CheckScrollUp(a,b){if(a<=b){return true;}return false;}(function(r){var p="$autoscroll",a="$tAutoscroll",o="$autoscrollInterval",n="$edgeAutoscroll",q="$lastEdgeAutoscroll",g={up:90,left:180,right:360,upleft:135,upright:45,downleft:225,downright:315,leftup:135,rightup:45,leftdown:225,rightdown:315,down:270},c={init:function(d){return this.each(function(){if(e(this)){r(this).data(p,b(r.extend(e(this),d)));}else{r(this).data(p,b(r.extend({e:false,fr:false},r.fn.autoscroll.defaults.settings,d)));r(this).hover(function(){var k=e(this);if(k){if(k.scroll){m(this);r(this).stop(true);}k.e=true;}},function(){var k=e(this);if(k&&k.e){if(k.scroll){t(this);}k.e=false;}});t(this);}});},destroy:function(){return this.each(function(){if(e(this)){m(this);r(this).stop(true).data(o,null).data(p,null).data(a,null);}});},delay:function(d){return this.each(function(){var k=e(this);if(k&&k.scroll){r(this).autoscroll("pause");r(this).oneTime(d||r.fn.autoscroll.defaults.delay,p,function(){r(this).autoscroll("resume");});}});},fastforward:function(d){return s(this,"f",d);},rewind:function(d){return s(this,"r",d);},pause:function(){return this.each(function(){var d=e(this);if(d&&d.scroll){d.scroll=false;r(this).stop(true);m(this);}});},resume:function(){return this.each(function(){var d=e(this);if(d){d.scroll=true;t(this);}});},reverse:function(){return this.each(function(){var d=e(this);if(d&&(d.direction+=180)>360){d.direction-=360; 12}r(this).stop(true);});},toggle:function(){return this.each(function(){var d=e(this);if(d){if(d.scroll){r(this).autoscroll("pause");}else{r(this).autoscroll("resume");}}});},get:function(){return this.each(function(){if(e(this)){return e(this);}});},addpausesource:function(d){if(typeof d=="undefined"){return this;}if(!(d instanceof jQuery)){if((d=r(d)).length==0){return this;}}var k=this.selector;d.each(function(){r(this).hover(function(){r(k).each(function(){var u=e(this);if(u){if(u.scroll){m(this);r(this).stop(true);}u.e=true;}});},function(){r(k).each(function(){var u=e(this);if(u&&u.e){if(u.scroll){t(this);}u.e=false;}});});});return this;}},t=function(d){r(d).data(o,setInterval(function(){var k,u=e(d);if(u){if(typeof u.onEvaluate=="function"){u.onEvaluate.apply(d);}
12if(!h(d)){if(u.scroll&&!u.e&&!u.fr){if((k=r(d).data(a))&&!i(k,u)){r(d).stop(true).animate(j(u.step,u.direction,d),1000,"linear");}else{r(d).animate(j(u.step,u.direction),1000,"linear");}}}r(d).data(a,r.extend(true,{},u));}},50));},m=function(d){clearInterval(r(d).data(o));},e=function(d){return r(d).data(p);},i=function(k,d){return k.step===d.step&&k.direction===d.direction&&k.scroll===d.scroll;},s=function(k,v,d){var u=b(r.extend(r.fn.autoscroll.defaults.ffrw,d));return k.each(function(){var x=e(this);if(x){var y=x.scroll,w=x.direction;x.fr=true;if(v=="r"&&(w+=180)>360){w-=360;}if(x.scroll){m(this);}r(this).stop(true).animate(j(u.step,w),u.speed,"swing",function(){e(this).fr=false;if(x.scroll){t(this);}});}});},b=function(d){if(r.inArray(typeof d.scroll,["undefined","boolean"])<0){r.error("scroll is not a boolean");}if(r.inArray(typeof d.step,["undefined","number"])<0&&isNaN(d.step=Number(d.step))){r.error("step is not a valid number");}if(d.direction){d.direction=f(d.direction);}return d;},l=function(d){return d*Math.PI/180;},f=function(d){if(typeof d==="string"&&isNaN(Number(d))){if(g[d]){d=g[d];}else{if(d.indexOf("rad")==d.length-3&&!isNaN(d=Number(d.substring(0,d.length-3)))){d=d*180/Math.PI;}}}if(isNaN(d=Number(d))){r.error("Invalid direction on jQuery.autoscroll"); 13}while(d<0){d+=360;}return d;},j=function(d,u){var w=Math.round(d*Math.cos(u=l(u))),k=Math.round(d*Math.sin(u))*-1,v=arguments[2];return(v&&r(v).length>0)?{scrollTop:v.scrollTop+k,scrollLeft:v.scrollLeft+w}:{scrollTop:((k<0)?"-=":"+=")+Math.abs(k),scrollLeft:((w<0)?"-=":"+=")+Math.abs(w)};},h=function(A){var z=e(A);if(z&&typeof z.onEdge=="function"){var d=r(A).data(n)||{x:null,y:null},k=z.step,F=A.scrollLeft,w=l(z.direction),D=Math.round(k*Math.cos(w)),B=F+D,u=A.scrollTop,E=Math.round(k*Math.sin(w))*-1;nt=u+E,_e=r(A).data(q);if(F>B&&F==0){if(!d.x||d.x!="left"){d.x="left";}}else{if(F<B&&F==A.scrollWidth-A.clientWidth){if(!d.x||d.x!="right"){d.x="right";}}else{d.x=null;}}if(u>nt&&u==0){if(!d.y||d.y!="top"){d.y="top";}}else{if(u<nt&&u==A.scrollHeight-A.clientHeight){if(!d.y||d.y!="bottom"){d.y="bottom";}}else{d.y=null;}}try{if(!_e||(d.x&&d.x!=_e.x)||(d.y&&d.y!=_e.y)){z.onEdge.apply(A,[d]);return true;}}catch(C){throw C;}finally{r(A).data(q,r.extend(true,{},d)).data(n,d);}}return false;};r.fn.autoscroll=function(k,d){if(c[k]){return c[k].apply(this,Array.prototype.slice.call(arguments,1));}else{if(typeof k==="object"||!k){return c.init.apply(this,arguments);}else{r.error("Method "+k+" does not exist on jQuery.autoscroll");}}};r.fn.autoscroll.defaults={settings:{step:50,scroll:true,direction:"down"},delay:5000,ffrw:{speed:"fast",step:100}};})(jQuery);function BusinessCalendar_SelectRunDate2(a){a.value="@date";a.focus();}function BusinessCalendar_OnCalendarShown(h,g){var a=h._textbox._element;var f=findAbsoluteCoords(a);var e=f.absoluteTop;if(typeof a.getBoundingClientRect!="undefined"){e=a.getBoundingClientRect(a).top;}else{if(typeof doc.getBoxObjectFor!="undefined"){e=doc.getBoxObjectFor(a).screenY;}}var d;var b;if(typeof window.innerWidth!="undefined"){d=window.innerWidth,b=window.innerHeight;}else{if(typeof document.documentElement!="undefined"&&typeof document.documentElement.clientWidth!="undefined"&&document.documentElement.clientWidth!=0){d=document.documentElement.clientWidth,b=document.documentElement.clientHeight;}else{d=document.getElementsByTagName("body")[0].clientWidth,b=document.getElementsByTagName("body")[0].clientHeight;}}var c=$common.getLocation(a);if(e+a.clientHeight+h._popupDiv.clientHeight>b){h._popupBehavior._visible=false;h._popupBehavior.show();}else{h._popupBehavior._visible=false;h._popupBehavior.show();}}if(typeof(Sys)!=="undefined"){Sys.Application.notifyScriptLoaded();}Date.prototype.convertPartialDate=function(g){var c;c=g.split(" ");this.setHours(0);this.setMinutes(0);this.setSeconds(0);this.setMilliseconds(0);if(c.length>1){var a=c[1].toUpperCase();if(a.indexOf("PM")>-1||a.indexOf("P.M.")>-1){c[2]="PM";}a=a.replace(/AM|PM|A\.M\.|P\.M\./gi,"");a=a.replace(/\./gi,":");var j=a.split(":");if(j.length>=1){if(c.length>2&&c[2].toUpperCase()=="PM"){this.setHours(j[0]%12+12);}else{this.setHours(j[0]%12);}if(j.length>=2){this.setMinutes(j[1]);if(j.length>=3){this.setSeconds(j[2]);}}}}c[0]=c[0].replace(/-/gi,"/");c[0]=c[0].replace(/\\/gi,"/");c[0]=c[0].replace(/\./gi,"/");c[0]=c[0].replace(/\|/gi,"/");c[0]=c[0].replace(/,/gi,"/");c[0]=c[0].replace(/\+/gi,"/");var i=c[0].split("/");if(i.length==1&&parseInt(i[0],10)<32){this.setDate(i[0]);return;}var e=GetCurrentDateFormat();if(i.length==1){switch(e){case"mdy":case"dmy":if(i[0].length==8){i=new Array(i[0].substring(0,2),i[0].substring(2,4),i[0].substring(4,8)); 14}else{if(i[0].length==6){i=new Array(i[0].substring(0,2),i[0].substring(2,4),i[0].substring(4,6));}else{i=new Array(i[0].substring(0,2),i[0].substring(2,4));}}break;case"ymd":case"ydm":if(i[0].length==8){i=new Array(i[0].substring(0,4),i[0].substring(4,6),i[0].substring(6,8));}else{if(i[0].length==6){i=new Array(i[0].substring(0,2),i[0].substring(2,4),i[0].substring(4,6));}else{i=new Array(i[0].substring(0,2),i[0].substring(2,4));}}break;}}var b=0;var f=-1;var h=-1;switch(e){case"mdy":if(i.length>=2){b=1;f=0;if(i.length>=3){h=2;}}break;case"dmy":if(i.length>=2){b=0;f=1;if(i.length>=3){h=2;}}break;case"ymd":if(i.length>=3){b=2;f=1;h=0;}else{if(i.length>=2){b=1;f=0;}}break;case"ydm":if(i.length>=3){b=1;f=2;h=0;}else{if(i.length>=2){b=0;f=1;}}break;}if(h>-1){var d=parseInt(i[h],10);if(d<100){if(d>30){d+=1900;}else{d+=2000;}}if(d<1753||d>9999){throw new object();}this.setFullYear(d);}if(f>-1){this.setDate(1);this.setMonth(parseInt(i[f],10)-1);}this.setDate(parseInt(i[b],10));if((h>-1&&d!=this.getFullYear())||(f>-1&&parseInt(i[f],10)-1!=this.getMonth())||parseInt(i[b],10)!=this.getDate()){throw new object();}};function GetCurrentDateFormat(){var d=new Date(1999,9,8);var f=d.localeFormat("d");var e=f.indexOf("99");var b=f.indexOf("10");var a=f.indexOf("8");var g=new Array();g[e]=1999;g[b]=10;g[a]=8;var h="";for(var c=0;c<g.length;c++){switch(parseInt(g[c],10)){case 1999:h+="y";break;case 10:h+="m";break;case 8:h+="d";break;}}return h;}function ConvertPartialDate(b){var d=new Date();var f=b.value;if(f.length==0){return;}if(f.substring(0,1)=="@"){return;}try{d.convertPartialDate(f);}catch(c){var a=b.attributes["data-isnotavaliddate"].value;alert(b.value+a);return;}if(isNaN(d)){return;}try{if(d.getHours()==0&&d.getMinutes()==0&&d.getSeconds()==0){b.value=d.localeFormat("d");}else{b.value=d.localeFormat("d")+" "+d.localeFormat("t");}}catch(c){b.value=d.toDateString();}jQuery(b).trigger("change");}function BusinessCalendar2_RadDatePicker_DateError(a,b){alert(b.get_inputText()+" is not a valid date.");a.set_selectedDate("");b.set_cancel(true);}function BusinessCalendar2_RadDateTimePicker_DateTimeError(a,b){alert(b.get_inputText()+" is not a valid datetime.");a.set_selectedDate("");b.set_cancel(true);}function BusinessCalendar2_RadTimePicker_TimeError(a,b){alert(b.get_inputText()+" is not a valid time.");a.set_selectedDate("");b.set_cancel(true);}function BusinessCalendar2_VerifyDatePickerValue(a,c){try{var d=$find(a.controltovalidate);
14if(d!=null&&d.get_textBox()!=null){if(d.get_selectedDate()==null&&d.get_textBox().value!=""){c.IsValid=false;}}}catch(b){alert(b);}}function BusinessCalendar2_OnPopupClosing(a,c){try{var d=a.get_textBox();if(d!=null){d.focus();}}catch(b){console.log(b);}}function Asi_Web_BusinessDataGrid2(i){var b=this;var k=null;i.GridClientId=i.GridClientId||null;if(i.IsMultiSelect!==true){i.IsMultiSelect=false;}if(i.TrackItemSelectionAcrossPostbacks!==true){i.TrackItemSelectionAcrossPostbacks=false;}if(i.IsSelectedByDefault!==true){i.IsSelectedByDefault=false;}i.DeltaKeys=i.DeltaKeys||null;i.ClientOnRowSelected=i.ClientOnRowSelected||null;i.ClientOnRowDeselected=i.ClientOnRowDeselected||null;this.OnGridCreated=function(m,n){k=m;if(i.IsMultiSelect===true&&i.TrackItemSelectionAcrossPostbacks){c();}};this.OnRowCreated=function(m,n){};this.OnRowSelected=function(m,n){if(i.IsMultiSelect===true&&i.TrackItemSelectionAcrossPostbacks){a(n.get_gridDataItem(),n.get_tableView());}if(i.ClientOnRowSelected){f(i.ClientOnRowSelected,m,n);}};this.OnRowDeselected=function(m,n){if(i.IsMultiSelect===true&&i.TrackItemSelectionAcrossPostbacks){a(n.get_gridDataItem(),n.get_tableView());}if(i.ClientOnRowDeselected){f(i.ClientOnRowDeselected,m,n);}};function c(){jQuery("#"+h()).remove();jQuery("#"+i.GridClientId).append('<input type="hidden" id="'+h()+'" name="'+h()+'" />');if(typeof i.DeltaKeys!==undefined){l(i.DeltaKeys);}}function a(m,o){if(m===undefined||m==null){return;}if(o===undefined||o==null){return;}var n=e(m,o);if(n!=null){var p=m.get_selected();if(i.IsSelectedByDefault===true){j(!p,n);}else{j(p,n);}}}function e(m,q){if(m===undefined||m==null){return null;}if(q===undefined||q==null){return null;}var n=q.get_clientDataKeyNames();if(n!=null&&n.length>0){var p="";for(var o=0;o<n.length;o++){p+="{"+n[o]+":"+m.getDataKeyValue(n[o])+"}";}return p;}return null;}function j(m,q){var n=g();if(n==null){return;}var p=(n+"").length==0?new Array():n.split(",");var o=jQuery.inArray(q,p);if(o>=0&&!m){p.splice(o,1);}else{if(o<0&&m){p.push(q);}}l(p.toString());}function g(){var m=d();if(m!=null){return jQuery(m).val();}return null;}function l(n){var m=d();if(m!=null){jQuery(m).val(n);}}function h(){return i.GridClientId+"_HiddenDeltaSelectedKeys";}function d(){var m=jQuery("#"+h()); 15if(m.length==1){return m[0];}return null;}function f(n,m,o){(new Function("sender","eventArgs","try {"+n+"(sender,eventArgs); } finally {}"))(m,o);}}function BusinessDocumentBrowserProperties(){this.TypeFilter=null;this.DocumentHierarchyKey=null;this.DocumentPath=null;this.RootFolder=null;this.AllowUpwardNavigation=true;this.ShowAddress=true;this.AutoPostback=false;this.ValueControlID=null;this.ShowMenu=false;this.ValidateSelection=false;}function BusinessDocumentBrowserControl_Select(b){var a="&ShowRecycleBin=false";if(b.TypeFilter){a+="&TypeFilter="+b.TypeFilter;}if(b.DocumentHierarchyKey){a+="&DocumentHierarchyKey="+b.DocumentHierarchyKey;}if(b.DocumentPath){a+="&DocumentPath="+b.DocumentPath;}if(b.RootFolder){a+="&iRootFolder="+b.RootFolder;a+="&AutoSelectFirstDocument=true";if(!b.DocumentPath){a+="&DocumentPath="+b.RootFolder;}}if(!b.AllowUpwardNavigation){a+="&AllowUpwardNavigation="+b.AllowUpwardNavigation;}if(!b.ShowAddress){a+="&ShowAddress="+b.ShowAddress;}if(b.ShowMenu){a+="&ShowMenu="+b.ShowMenu;a+="&ShowMenuPublish=false&ShowMenuVersions=false&ShowMenuRun=false&ShowMenuPreview=false&ShowMenuNew=true";}OpenObjectBrowser(a,function(c){BusinessDocumentBrowserControl_SelectCallBack(c,b);},true,false);return CancelEvent();}function BusinessDocumentBrowserControl_SelectCallBack(e,c){var d=$(c.ValueControlID);if(d!=null){var b=e.result;if(b==null||b.length==0){return;}if(e.SelectedDocumentPath[e.SelectedDocumentPath.length-1]==="."){d.value=e.SelectedDocumentPath.slice(0,-1);}else{d.value=e.SelectedDocumentPath;}var a=d.value.substr(d.value.lastIndexOf(".")+1);if(a==d.value){a=null;}if(c.ValidateSelection&&d.value&&d.value.length>=100&&e.SelectedDocumentName&&d.value.lastIndexOf(a)===-1&&e.SelectedDocumentType!=null){a="."+e.SelectedDocumentType.toLowerCase();d.value+=a;}var f=$(c.DocumentVersionKeyValueControlID);if(f!=null){f.value=e.SelectedDocumentVersionKey;}d.focus();if(c.AutoPostBack){submitForm(d);}}}function BusinessFileUploadProperties(){this.CallBackValueControl=null;
15this.CallBackDisplayControl=null;this.AllowMultiple=false;}var businessFileUploadProperties=new BusinessFileUploadProperties();function BusinessFileUpload_Upload(d,b,c,f,g,e,a,h){businessFileUploadProperties.CallBackValueControl=d;if(b!=null){businessFileUploadProperties.CallBackDisplayControl=b;}else{businessFileUploadProperties.CallBackDisplayControl=c;}businessFileUploadProperties.AllowMultiple=!e;OpenFileUpload(BusinessFinderControl_UploadCallback,a,h,f,g);return CancelEvent();}function BusinessFinderControl_UploadCallback(b){if(businessFileUploadProperties.CallBackValueControl!=null){if(b.result==null||b.result.length==0){return;}businessFileUploadProperties.CallBackValueControl.value=b.result;if(document.all){businessFileUploadProperties.CallBackDisplayControl.innerText=b.Filename;}else{businessFileUploadProperties.CallBackDisplayControl.textContent=b.Filename;}var a=getNextObject(businessFileUploadProperties.CallBackValueControl);a.focus();var c=getNextObject(a);c.style.display="inline";}businessFileUploadProperties.CallBackValueControl=null;businessFileUploadProperties.CallBackDisplayControl=null;businessFileUploadProperties.AllowMultiple=false;}function BusinessFinderControl_Delete(e,b,c,f,a){e.value="";if(b!=null){b.innerHTML=a;}if(c!=null){c.innerHTML=a;c.href=null;c.style.textDecoration="none";c.style.color="#000";}if(f!=null){f.style.display="none";}var d=getNextObject(e);d.focus();var g=getNextObject(d);g.style.display="none";return CancelEvent();}function BusinessFinderControlProperties(){this.CallBackValueControl=null;this.CallBackDisplayControl=null;this.Grid=null;this.SelectLink=null;this.AllowMultiple=false;this.CallBackRemoveControl=null;}var businessFinderControlProperties=new BusinessFinderControlProperties();function BusinessFinderControl_Select(e,a,b,k,l,c,g,i,d,f,h,m,j){businessFinderControlProperties.CallBackValueControl=e;businessFinderControlProperties.CallBackDisplayControl=a;businessFinderControlProperties.CallBackRemoveControl=j;businessFinderControlProperties.Grid=b;businessFinderControlProperties.SelectLink=k;businessFinderControlProperties.AllowMultiple=!l;OpenFinderAdderWithQueryFilter(BusinessFinderControl_SelectCallBack,l,c,g,i,d,f,h,null,null,m);return CancelEvent();}function BusinessFinderControl_SelectCallBack(h){var b=h.result;if(businessFinderControlProperties.CallBackValueControl!=null){if(b==null||b.length==0){return;}if(!businessFinderControlProperties.AllowMultiple){businessFinderControlProperties.CallBackValueControl.value=b[0];if(document.all){businessFinderControlProperties.CallBackDisplayControl.innerText=h.SelectedDisplayValues[0];}else{businessFinderControlProperties.CallBackDisplayControl.textContent=h.SelectedDisplayValues[0];}if(businessFinderControlProperties.CallBackRemoveControl){businessFinderControlProperties.CallBackRemoveControl.style.display="block";}try{InitiateControlEventWithArgument(businessFinderControlProperties.CallBackValueControl.id,businessFinderControlProperties.CallBackValueControl.value,"onchange");}catch(e){}businessFinderControlProperties.SelectLink.focus();}else{var m=businessFinderControlProperties.CallBackValueControl.value.split(",");var n="";for(var l=0;l<b.length;l++){var a=false;for(var g=0;g<m.length;g++){if(m[g]==b[l]){a=true;break;}}if(!a){n+=","+b[l];if(businessFinderControlProperties.CallBackDisplayControl!=null&&h.SelectedDisplayValues!=null){var f=businessFinderControlProperties.Grid.rows[businessFinderControlProperties.Grid.rows.length-1]; 16var d=businessFinderControlProperties.Grid.insertRow(businessFinderControlProperties.Grid.rows.length-1);for(var g=0;g<f.cells.length;g++){var k=d.insertCell();k.innerHTML=f.cells[g].innerHTML;var c=f.cells[g].style.cssText;k.setAttribute("style",c);k.style.cssText=c;}if(document.all){d.cells[1].innerText=h.SelectedDisplayValues[l];}else{d.cells[1].textContent=h.SelectedDisplayValues[l];}}try{InitiateControlEventWithArgument(businessFinderControlProperties.CallBackValueControl.id,businessFinderControlProperties.CallBackValueControl.value,"onchange");}catch(e){}}}if(n.length>0){n=businessFinderControlProperties.CallBackValueControl.value+n;if(n.substr(0,1)==","){n=n.substr(1);}businessFinderControlProperties.CallBackValueControl.value=n;businessFinderControlProperties.Grid.style.display="block";businessFinderControlProperties.CallBackDisplayControl.style.display="none";}businessFinderControlProperties.SelectLink.focus();}}businessFinderControlProperties.CallBackValueControl=null;
16businessFinderControlProperties.CallBackDisplayControl=null;businessFinderControlProperties.CallBackRemoveControl=null;businessFinderControlProperties.Grid=null;businessFinderControlProperties.SelectLink=null;businessFinderControlProperties.AllowMultiple=false;}function BusinessFinderControl_Clear(b,a,c,d){b.value="";a.innerHTML=c;d.style.display="none";}function BusinessFinderControl_DeleteItem(d,c,g,f,a){var j=findAncestor(eventSource(),"tr");f=j.rowIndex;var e=d.value.split(",");e.splice(f,1);var h="";for(var b=0;b<e.length;b++){h+=","+e[b];}if(h.length>0){h=h.substr(1);}d.value=h;g.deleteRow(f);if(d.value.length==0){c.style.display="inline";g.style.display="none";}}function OnHTMLEditorClientLoad(a,c){a.attachEventHandler("onkeydown",function(s){var g=s.keyCode?s.keyCode:s.which;if(g!="9"){return false;}var e=jQuery(s.target).closest("body");var o=document.getElementsByTagName("iframe");for(var r=0;r<o.length;r++){if(jQuery(o[r].contentWindow.document.body).is(e)){var f=jQuery(o[r]).closest(".PanelFieldValue");var d=jQuery(f).find(".reModes");var m=jQuery(o[r]).closest(".rmpView");var l=jQuery(".PanelFieldValue").index(f);var n="";if(m!=null){n=jQuery(m).find(".PanelFieldValue");}else{n=jQuery(".rmpView .PanelFieldValue");}if(s.shiftKey===true){if(l>0){for(var p=l-1;p>=0;p--){if(!b(n[p],s)){return false;}}}}else{if((d.length>0)&&(jQuery(d).is(":visible"))){var h=jQuery(d).find("a[href='#Design]'");if(h==null){return false;}$telerik.cancelRawEvent(s);h.focus();return false;}else{if(l<(n.length-1)){for(var q=l+1;q<n.length;q++){if(!b(n[q],s)){return false;}}}}}}}return true;});function b(e,h){var f=jQuery(e).find("input[type=text], a, select, input[type=radio], input[type=checkbox], textarea, input[type=button]");if(f!=null&&f.length>0){for(var d=0;d<f.length;d++){var g=f[d];if((g.style==undefined||g.style.visibility==undefined||g.style.visibility!="hidden")&&(g.style==undefined||g.style.display==undefined||g.style.display!="none")&&(jQuery(g).is(":enabled"))&&(g.css==undefined||g.css.display==undefined||g.css.display!="none")){$telerik.cancelRawEvent(h);g.focus();return false;}}}return true;}a.removeShortCut("InsertTab");}function DisableImageManagerShortcuts(a){a.removeShortCut("ImageManager");}function HTMLEditorSetupInsertContentLink(fileUploadAllowed){if(fileUploadAllowed==null){fileUploadAllowed=true;}else{fileUploadAllowed=(fileUploadAllowed.toLowerCase()==="true");}var isIE; 17/*@cc_on 18 isIE = @_jscript_version; 19 @*/ 20if(!isIE){isIE=!!window.MSStream;if(navigator.userAgent.indexOf("Edge")!=-1){isIE=false;}}Telerik.Web.UI.Editor.CommandList.InsertContentLink=function(commandName,editor,args){var elem=editor.getSelectedElement(); 21var cursorPosition=(isIE)?editor.getSelection().getRange():undefined;if(elem==null){return;}if(elem.tagName=="A"){editor.selectElement(elem);argument=elem;}else{editor.fire("Unlink");var commandsManager=editor.get_commandsManager();var commandIndex=commandsManager.getCommandsToUndo().length-1;commandsManager.removeCommandAt(commandIndex);var content=editor.getSelectionHtml();var link=editor.get_document().createElement("A");link.innerHTML=content;argument=link;}var callbackFunction=function(sender,args){var linkUrl=args._argument;if(linkUrl!=null&&linkUrl.attributes!=undefined){var hrefString=linkUrl.getAttribute("href");if(hrefString){if(hrefString.toLowerCase().indexOf("www")==0){hrefString="http://"+hrefString;}if(hrefString.indexOf("@/")==0){var websiteUrl=linkUrl.websiteUrl;if(websiteUrl!=null){hrefString=websiteUrl+"/"+hrefString.substring(2).replace(".aspx","")+".aspx";}else{hrefString="[@]"+hrefString.substring(2).replace(".aspx","")+".aspx";}}if(hrefString.indexOf("~/")>=0){var websiteSelectedUrl=linkUrl.websiteUrl;if(websiteSelectedUrl!=null){hrefString=websiteSelectedUrl+"/"+hrefString.substring(2);}}}else{hrefString="http://";}if(hrefString.indexOf("?")>=0&&linkUrl.qsParam!=""&&linkUrl.qsParam!=null){if(linkUrl.sourceCode!=""&&linkUrl.sourceCode!=null){hrefString=String.format("{0}&{1}&SourceCode={2}",hrefString,linkUrl.qsParam,linkUrl.sourceCode);}else{hrefString=String.format("{0}&{1}",hrefString,linkUrl.qsParam);}}else{if(linkUrl.qsParam!=""&&linkUrl.qsParam!=null){if(linkUrl.sourceCode!=null&&linkUrl.sourceCode!=""){hrefString=String.format("{0}?{1}&SourceCode={2}",hrefString,linkUrl.qsParam,linkUrl.sourceCode);}else{hrefString=String.format("{0}?{1}",hrefString,linkUrl.qsParam);}}else{if(linkUrl.sourceCode!=null&&linkUrl.sourceCode!=""){if(href
21String.indexOf("?")>=0){hrefString=String.format("{0}&SourceCode={1}",hrefString,linkUrl.sourceCode);}else{hrefString=String.format("{0}?SourceCode={1}",hrefString,linkUrl.sourceCode);}}else{hrefString=String.format("{0}",hrefString); 22}}}if(isIE){editor.getSelection().selectRange(cursorPosition);}var html=String.format("<a href='{0}' class='{1}' {2}>{3}</a>",hrefString,linkUrl.className,linkUrl.additionalAttributes,linkUrl.name);editor.pasteHtml(html);}};ShowDialog(gWebRoot+'/AsiCommon/controls/ContentManagement/ContentDesigner/ContentLinkDialog.aspx?ShowTypes="y"&FileUploadAllowed='+fileUploadAllowed+"&",argument,800,500,"Insert a link to content",null,"E",callbackFunction,null,true,true,null,null);};}function HTMLEditorSetupExitEditor(){var a=document.querySelector(".reExitEditor");if(!a){return;}a.setAttribute("aria-label","Use escape to exit editor and move to the next field");Telerik.Web.UI.Editor.CommandList.ExitEditor=function(){setTimeout(function(){var b=document.querySelector("[id*='ModesWrapper'] a");if(b){b.focus();}},5);};}function appendQueryParamsToPath(c,a){var d=Object.keys(a).map(function(e){return encodeURIComponent(e)+"="+encodeURIComponent(a[e]);}).join("&");var b=c.indexOf("?")!==-1?"&":"?";return d?c+b+d:c;}function HTMLEditorSetupAIContentCreator(c,b,a){if(c==null){c=true;}else{c=(c.toLowerCase()==="true");}if(!b||b.trim()===""){b="iMIS Intelligence - Create Content";}Telerik.Web.UI.Editor.CommandList.AIContentCreator=function(h,j,i){var e=j.getSelectedElement();var d=function(l,m){var o=m._argument;if(o!=null&&typeof o==="string"){var n=decodeURIComponent(o);j.pasteHtml(n);}};var g=gWebRoot;var k=800;var f=600;switch(a.toLowerCase()){case"htmlcontent":g=g+"/AsiCommon/controls/ContentManagement/ContentDesigner/GenAIDialogHtmlContent.aspx";break;case"emailcontent":g=g+"/AsiCommon/controls/ContentManagement/ContentDesigner/GenAIDialogEmailContent.aspx";break;case"emailtemplate":g=g+"/AsiCommon/controls/ContentManagement/ContentDesigner/GenAIDialogEmailTemplate.aspx";f=900;break;}ShowDialog(g,null,k,f,b,null,"E",d,null,true,true,null,null);};}function BusinessImageSelectorProperties(){this.ValueControlID=null;this.DialogID=null;}function ImageSelectorControl_Select(a){$find(a.DialogID).open("ImageManager",{CssClasses:[]},function(b,c){ImageSelectorControl_SelectCallBack(b,c,a);});}function ImageSelectorControl_SelectCallBack(a,d,b){if(!d){return false;}var e=d.value[0].getAttribute("src",2).toLowerCase();if(e.toLowerCase().indexOf("http"==-1)){e=e.replace(gWebRoot,"~");}var c=$get(b.ValueControlID);if(c){c.value=e;}__doPostBack(c.id,"TextChanged");return false;}function _DebugTrace(a){var c=document.getElementById("TraceConsole");if(c!=null){var b=getParent(getParent(c));if(b.style.display=="none"){b.style.display="block";}Sys.Debug.trace(a);}}function _DebugTraceDump(b,a){var d=document.getElementById("TraceConsole");if(d!=null){var c=getParent(getParent(d));if(c.style.display=="none"){c.style.display="block";}Sys.Debug.traceDump(b,a);}}function _DebugFail(a){Sys.Debug.fail(a);}function __Document_Head_Init(a,c,b){if(!__CookiesEnabled()){window.location.href=a;}eraseCookie("Asi.Web.Browser.CookiesEnabled");if(c!=0){alert(c);}__CloseDisposableWindow();if(b){if(typeof jQuery=="undefined"){document.oncontextmenu=__DisableContextMenu;}else{if(browser.isIE&&browser.version==7){document.oncontextmenu=__DisableContextMenu;}}}}function __CloseDisposableWindow(){if(__GetCookieValue("Asi.Web.Browser.DisposableWindow.Loaded")=="true"){var a=window.open("","Asi_Web_Browser_DisposableWindow","width=1,height=1,top=9999,left=9999,resizable=no,scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no");a.close();document.cookie="Asi.Web.Browser.DisposableWindow.Loaded=false;path=/";}}function __CookiesEnabled(){if(navigator.cookieEnabled){return true;}if(__GetCookieValue("Asi.Web.Browser.CookiesEnabled")!="true"){document.cookie="Asi.Web.Browser.CookiesEnabled=true;path=/;SameSite=Strict;Secure";if(__GetCookieValue("Asi.Web.Browser.CookiesEnabled")!="true"){return false;}}return true;}function __GetCookieValue(b){if(document.cookie!=null){var c=document.cookie.indexOf(b+"=");if(c<0){return null;}c+=b.length+1;var a=document.cookie.indexOf(";",c);if(a==-1){a=document.cookie.length;}return unescape(document.cookie.substring(c,a));}return null;}function __WindowOnLoad(){var a=gWindowOnLoad.length;for(var b=1;b<a;b++){if(gWindowOnLoad[b]&&gWindowOnLoad[b]!=__WindowOnLoad){gWindowOnLoad[b]();}}}function SetDocumentTitle(a){gDocumentTitle=a;}function CheckCommit(a){if(gPostBackFormObject!=null){if(__NeedCommit()){var b=a;if(b==null||b==""){b=gDefaultConfirmMessage; 23}return confirm(b);}}return true;}function __DisableContextMenu(a,c){var b=a?a.target.tagName:event.srcElement.tagName;return(b&&(b.toUpperCase()=="INPUT"||b.toUpperCase()=="TEXTAREA"));}function CollapsedSimpleName(c){var f=" ";var d="_";if(c==null){return null;}c=c.replace(/^\s+|\s+$/g,"");if(c.length==0){return"";}var b="";var g=f;for(var a=0,e=c.length;a<e;a++){if(IsLetterOrDigit(c.charAt(a))||c.charAt(a)==d){if(IsLetterOrDigit(g)){b=b+c.charAt(a);}else{if(b.length==0&&IsDigit(c.charAt(a))){b=b+"N";}b=b+c.charAt(a).toUpperCase();}}g=c.charAt(a);}return b;}function IsLetterOrDigit(a){var b=/[a-zA-Z0-9]/;if(a.match(b)==null){return false;}return true;}function IsDigit(a){var b=/[0-9]/;if(a.match(b)==null){return false;}return true;}function IsEmail(a){var b=/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i;if(a.match(b)==null){return false;}return true;}function StringContainsHtml(a){return/<[a-z]+\d?(\s[^>]*)?\/?>|&([a-zA-Z]{2,}|#\d+|#x[0-9a-fA-F]+);/i.test(a);}function addLoadEvent(b){if(b){var a=window.onload;if(typeof window.onload!="function"){window.onload=b;}else{window.onload=function(){if(typeof a=="function"){a();}b();};}}}function addAjaxLoadEvent(b){function a(){b();Sys.Application.remove_load(a);}
23Sys.Application.add_load(a);}function addResizeEvent(b,a){if(a==null){a=window;}$addHandler(a,"resize",b);}var resizeFunctionNames=new Array();function addContentResizeEvent(a){resizeFunctionNames.push(a);}function contentResized(contentWidth,contentHeight){for(var i=0;i<resizeFunctionNames.length;i++){var evalText=resizeFunctionNames[i]+"("+contentWidth+","+contentHeight+")";eval(evalText);}}function getNextObject(a){do{a=a.nextSibling;}while(a&&a.nodeType!=1);return a;}function getPreviousObject(a){do{a=a.previousSibling;}while(a&&a.nodeType!=1);return a;}function cancelSubmit(){return CancelEvent();}function CancelEvent(a){if(!a){a=window.event;}if(a!=null){a.returnValue=false;}return false;}function cancelEvent(){return CancelEvent();}function CancelEventPropagation(a){if(!a){a=window.event; 24}a.cancelBubble=true;if(a.stopPropagation){a.stopPropagation();}}function eventSource(a){if(window.event){return window.event.srcElement;}return a.target;}function KeyStroke(a){if(window.event){return a.keyCode;}else{return a.which;}}function ExtractNumber(b){var a=parseInt(b);return a==null||isNaN(a)?0:a;}function $(a){return document.getElementById(a);}function submitForm(a){if(a&&a!=null){form=findAncestor(a,"FORM");}else{form=window.template;}if(form!=null){form.submit();}}function getParent(a){return a.parentNode||a.parentElement;}if(!window.Node){var Node={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12};}function findAncestor(b,a){oParent=getParent(b);while(oParent!=null){if(oParent.tagName.toLowerCase()==a.toLowerCase()){return oParent;}oParent=getParent(oParent);}return null;}function trim(b,a){return ltrim(rtrim(b,a),a);}function ltrim(b,a){a=a||"\\s";return b.replace(new RegExp("^["+a+"]+","g"),"");}function rtrim(b,a){a=a||"\\s";return b.replace(new RegExp("["+a+"]+$","g"),"");}function livePageHeight(){if(window.innerHeight&&window.scrollMaxY&&BrowserDetect.version<3){return window.innerHeight+window.scrollMaxY;}else{return document.body.offsetHeight+document.body.offsetTop;}}function livePageWidth(){if(window.innerHeight&&window.scrollMaxY){return window.innerWidth+window.scrollMaxX;}else{return document.body.offsetWidth+document.body.offsetLeft;}}function findAbsoluteCoords(c){var a=new Object();a.left=c.offsetLeft;a.top=c.offsetTop;a.width=c.clientWidth;a.height=c.clientHeight;a.absoluteLeft=0;a.absoluteTop=0;var b=c;while(b!=null){var d=b.tagName.toUpperCase();if(d=="BODY"||d=="FORM"||d=="HTML"){break;}a.absoluteLeft=a.absoluteLeft+b.offsetLeft;a.absoluteTop=a.absoluteTop+b.offsetTop;b=b.offsetParent;if(b!=null&&(b.style.position=="absolute"||b.style.position=="relative")){break; 25}}if(a.width==0){a.width=livePageWidth()-a.absoluteLeft;}if(a.height==0){a.height=livePageHeight()-a.absoluteTop;}return a;}function GetURLParameters(){var a=window.document.URL.toString();if(a.indexOf("?")>0){var c=a.split("?");var b=c[1].split("&");return b;}return null;}function FindURLParameter(b){b=b.toUpperCase();var a=GetURLParameters();if(a!=null){return FindParameterInArray(b,a);}return null;}function FindParameterInArray(b,c){b=b.toUpperCase();for(i=0;i<c.length;i++){var a=c[i].split("=");if(a[0].toUpperCase()==b){return a[1];}}return null;}function findPos(b){var a=curtop=0;if(b.offsetParent){do{a+=b.offsetLeft;curtop+=b.offsetTop;}while(b=b.offsetParent);}return[a,curtop];}function Cover(d,e,a,l,m){var o=findPos(d);e.style.position="absolute";var g=o[1];if(m!=null&&!isNaN(m)){g=g+m;}var f=o[0];if(l!=null&&!isNaN(l)){f=f+l;}var c=0;var h=0;c=d.offsetHeight;if(screen.height<c){c=screen.height;}h=d.offsetWidth;if(screen.width<h){h=screen.width;}if(!a){e.style.height=c+"px";e.style.width=h+"px";}var p=GetViewportScrollPos().x;var b=p+document.body.offsetWidth-1;var q=GetViewportScrollPos().y;var n=q+document.body.offsetHeight-1;var j=e.offsetHeight>0?e.offsetHeight:c;var k=e.offsetWidth>0?e.offsetWidth:h;if((g+j)>n){g=n-j;}if((f+k)>b){f=b-k;}if(f<p){f=p;}if(g<q){g=q;}e.style.top=g+"px";e.style.left=f+"px";e.style.zIndex=1001;}function createCookie(c,e,a){if(a){var b=new Date();b.setTime(b.getTime()+(a*24*60*60*1000));var d="; expires="+b.toGMTString();}else{var d="";}document.cookie=c+"="+e+d+"; path=/; SameSite=Lax;Secure";}function readCookie(a){console.warning("Asi: Obsolete 'readCookie' is deprecated");return null;}
25function eraseCookie(a){createCookie(a,"",-1);}function IsUrl(a,b){var c=new RegExp("^(([a-z]+)://)"+(b?"?":"")+"([a-z0-9-]+|[a-z0-9][a-z0-9-._]*.[a-z]+)(:[0-9]+)?(/.*)?$","i");return c.test(a);}var BrowserDetect={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version"; 26this.OS=this.searchString(this.dataOS)||"an unknown OS";},searchString:function(d){for(var b=0;b<d.length;b++){var c=d[b].string;var a=d[b].prop;this.versionSearchString=d[b].versionSearch||d[b].identity;if(c){if(c.indexOf(d[b].subString)!=-1){return d[b].identity;}}else{if(a){return d[b].identity;}}}},searchVersion:function(a){var b=a.indexOf(this.versionSearchString);if(b==-1){return;}return parseFloat(a.substring(b+this.versionSearchString.length+1));},dataBrowser:[{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]};BrowserDetect.init();function GetElementViewportOffset(d){var e=0,b=0,a=document.body;var c=d;do{e+=c.offsetTop||0;b+=c.offsetLeft||0;if(c.offsetParent==a&&c.style.position&&c.style.position=="absolute"){break;}}while(c=c.offsetParent);c=d;do{if(c!=a){e-=c.scrollTop||0;b-=c.scrollLeft||0;}}while(c=c.parentNode);var f=new Object();f.x=b;f.y=e;return f;}function SizeImageWithinBounds(c,f,e,h){f=parseInt(f);if(isNaN(f)){f=0;}e=parseInt(e);if(isNaN(e)){e=0;}if(f<=0&&e<=0){return;}if(c==null){return;}if(!c.tagName){return;}if(c.tagName.toUpperCase()!="IMG"){return; 27}var g=c.naturalWidth;var b=c.naturalHeight;if(g==0||b==0){return;}var a=c.naturalHeight/c.naturalHeight;var d=0;if(f>0&&e>0){d=(Math.floor(f/a)<=e)?1:2;}else{if(f>0){if(g>f||(g<f&&h)){d=1;}}else{if(b>e||(b<e&&h)){d=2;}}}if(d==0){return;}if(d==1){g=f;b=Math.max(Math.floor(g/a),1);}else{b=e;g=Math.max(Math.floor(b*a),1);}c.width=g;c.height=b;}function GetViewportScrollPos(){var a=new Object();a.x=a.y=0;if(typeof window.pageYOffset!="undefined"){a.y=window.pageYOffset;a.x=window.pageXOffset;}else{if(document.documentElement){a.y=document.documentElement.scrollTop;a.x=document.documentElement.scrollLeft;}else{if(document.body&&typeof document.body.scrollTop!="undefined"){a.y=document.body.scrollTop;a.x=document.body.scrollLeft;}}}return a;}function hasClass(c,b){if(c!==null){var a=new RegExp("(?:^|\\s+)"+b+"(?:\\s+|$)");return a.test(c.className);}return false;}function addClass(b,a){if(this.hasClass(b,a)){return;}if(b!==null){b.className=[b.className,a].join(" ");}}function removeClass(e,d){var a=new RegExp("(?:^|\\s+)"+d+"(?:\\s+|$)","g");if(!hasClass(e,d)){return;}if(e!==null){var b=e.className;e.className=b.replace(a," ");if(hasClass(e,d)){removeClass(e,d);}}}function replaceClass(d,c,a){if(c===a){return false;}var b=new RegExp("(?:^|\\s+)"+c+"(?:\\s+|$)","g");if(!hasClass(d,c)){addClass(d,a);return;}d.className=d.className.replace(b," "+a+" ");if(hasClass(d,c)){replaceClass(d,c,a);}}function IsCtrl(a){if(window.event){return window.event.ctrlKey;}if(a.ctrlKey){return a.ctrlKey;}return(a.modifiers&Event.CONTROL_MASK==Event.CONTROL_MASK);}function IsShift(a){if(window.event){return window.event.shiftKey;}if(a.shiftKey){return a.shiftKey;}return(a.modifiers&Event.SHIFT_MASK==Event.SHIFT_MASK);}
27function SetIsCtrl(a){if($get("__CTRLKEY")!=null){$get("__CTRLKEY").value=IsCtrl(a);}}function SetIsShift(a){if($get("__SHIFTKEY")!=null){$get("__SHIFTKEY").value=IsShift(a);}}function InitiateControlEventWithArgument(controlClientID,argument,eventName){if(eventName==null){eventName="click"; 28}if(argument!=null&&argument!=""){$get("__EVENTARGUMENT").value=argument;}var ajaxifiedControl=$get(controlClientID);if(ajaxifiedControl!=null){eval("ajaxifiedControl."+eventName+"()");}}function InitiatePostBack(a,b){__doPostBack(a,b);}var ignoreTabChange=false;function TabContainer_OnActiveTabChanged(a,b){a.get_clientStateField().value=a.saveClientState();if(typeof(Page_ClientValidate)=="function"){if(!ignoreTabChange&&!Page_ClientValidate()){ShowFailedTab(a);}}}function ShowProblemTab(){if(typeof(Page_ClientValidate)=="function"&&!Page_IsValid){var b=jQuery(".ajax__tab_xp").get();for(var a=0;a<b.length;++a){ShowFailedTab($find(b[a].id));}}}function ShowFailedTab(e){for(c=0;c<Page_Validators.length;++c){var d=Page_Validators[c];if(d.evaluationfunction(d)==false){var b=e.get_tabs();var a=d.parentNode;while(a!=null){for(var c=0;c<b.length;++c){if(a==b[c]._element){ignoreTabChange=true;e.set_activeTab(b[c]);ignoreTabChange=false;return;}}a=a.parentNode;}}}}function getElementsByClassName(h,b){if(!b){b=document.getElementsByTagName("body")[0];}var d=[];var f=new RegExp("\\b"+h+"\\b");var c=b.getElementsByTagName("*");for(var g=0,e=c.length;g<e;g++){if(f.test(c[g].className)){d.push(c[g]);}}return d;}var win=null;function NewWindow(f,m,g,n,b,e,o,d,l,a){var j=750;var k=500;var c="";if(g.toLowerCase()=="current"||g.toLowerCase()=="c"){j=window.document.body.offsetWidth-20;k=window.document.body.offsetHeight-20;mw=800;mh=600;}if(g.toLowerCase()=="full"||g.toLowerCase()=="f"){j=900;k=600;mw=800;mh=600;}if(g==""||g.toLowerCase()=="large"||g.toLowerCase()=="l"){j=750;k=500;mw=750;mh=500;}if(g.toLowerCase()=="medium"||g.toLowerCase()=="m"){j=650;k=400;mw=650;mh=400;}if(g.toLowerCase()=="small"||g.toLowerCase()=="s"){j=400;k=200;mw=400;mh=200;}if(g.toLowerCase()=="help"||g.toLowerCase()=="h"){j=650;k=400;mw=650;mh=400;}if(g.toLowerCase()=="print"||g.toLowerCase()=="p"){j=750;k=500;mw=750;mh=500;}if(g.toLowerCase()=="flowchart"||g.toLowerCase()=="l"){j=790;k=515;mw=790;mh=515;}if((b==null||b)&&(typeof gWebsiteKey!="undefined"&&gWebsiteKey!="null"&&f.indexOf("&WebsiteKey=")<0)){f+="&WebsiteKey="+gWebsiteKey; 29}if(m.indexOf("-")>=1){c=m.substr(0,9);}else{c=m;}ShowDialog_NoReturnValue(f,null,j,k,m,null,"D",e,c,o,d,l,null);}function RefreshBySubmit(){if(gPostBackFormObject!=null){gPostBackFormObject.submit();}else{if(document.forms.length>0){document.forms[0].submit();}else{window.location.href=window.location.href;}}}function SetDefaultStyle(a){if(a.className!="VTabSelectedStyle"){a.className="VTabDefaultStyle";}}function SetHoverStyle(a){if(a.className!="VTabSelectedStyle"){a.className="VTabHoverStyle";}}function UpdateFormInputAndSubmit(b,d){var e=document.forms;if(docFormsLen>0){for(var c=0,a=e.length;c<a;c++){if(e[c].elements[b]!=null){e[c].elements[b].value=d;e[c].submit();break;}}}}function toggleElement(a,b){target=document.getElementById(a);switch(target.style.display){case ("block"):target.style.display="none";b.src=window.gWebRoot+"/AsiCommon/Images/+.gif";break;default:target.style.display="block";b.src=window.gWebRoot+"/AsiCommon/Images/-.gif";break;}}function fieldAppend(d,b){var c=d.options[d.selectedIndex].value;var a=document.getElementById(b);a.count=(typeof a.count=="undefined")?1:++a.count;a.value+=c+" \n";}var brushState="block";var existingClassNames=new Array();var mPageTitle;function surfToEditNavigationItem(a){ShowDialog_NoReturnValue(window.gWebRoot+"/iMIS/ContentManagement/NavigationItemProperties.aspx?iUniformKey="+a,null,"800","600","Navigation Designer","~/AsiCommon/Images/icon_nav.gif","E");CancelEvent();}function surfToEditContentItem(a,b,c,d){ShowDialog_NoReturnValue(window.gWebRoot+"/iMIS/ContentManagement/ContentItemEdit.aspx?ContentTypeKey="+c+"&ContentKey="+a+"&ContentItemKey="+b+"&iOperation=Edit",null,"800px","95%",d,null,"E",null,null,fal
29se,true,null,null);CancelEvent();}function surfToEditHtmlContentItem(f,d,a,b,e){var c="";if(e!==null){c="&WebsiteKey="+e;}ShowDialog_NoReturnValue(window.gWebRoot+"/iMIS/ContentManagement/ContentItemEdit.aspx?ContentTypeKey="+a+"&ContentKey="+f+"&ContentItemKey="+d+"&iOperation=Edit"+c,null,"97%","97%",b,null,"E",null,null,false,true,null,null); 30CancelEvent();}function surfToEditContentRecord(e,f,b,a){var c="";if(a!==null){c="&WebsiteKey="+a;}var d=window.gWebRoot+"/iMIS/ContentManagement/ContentDesigner.aspx?ShowSummary=false&TemplateType=E&ShowMenu=true&DialogMode=true&ShowHierarchyTree=false&Mode=EditContent&ShowAddress=false&ContentHierarchyKey="+e+c;if(f!=null&&f.length>0){if(f.substr(0,1)=="?"){f=f.substr(1);}if(f.substr(0,1)!="&"){f="&"+f;}d+=f;}if(b==null){b="Content Designer";}NewWindow(d,b,"current","nonmodal",false);CancelEvent();}setBodyCssClass(gIsEasyEditEnabled);function setBodyCssClass(a){if(a){jQuery("Body").addClass("EasyEditOn");}}function contentRecordChangeRequest(c,a,d){var b=window.gWebRoot+"/AsiCommon/Controls/ContentManagement/ContentDesigner/ContentChangeRequestEdit.aspx?CloseWindowOnCommit=true&PageOperation=New&ContentRecordKey="+c;if(a!=null&&a.length>0){if(a.substr(0,1)=="?"){a=a.substr(1);}if(a.substr(0,1)!="&"){a="&"+a;}b+=a;}if(d==null){d="Content Designer";}ShowDialog_NoReturnValue(b,null,"800","600",d,"~/AsiCommon/Images/icon_con.gif","E");CancelEvent();}function printThisPage(){window.open(window.gWebRoot+"/iMIS/Print.aspx");}function printThisPageTemplate(){var b=window.location.href;var a=new RegExp("[?&]TemplateType=[A-Za-z]","g");b=b.replace(a,"");if(b.indexOf("?")<0){b+="?";}else{if(b.indexOf("?")!=b.length-1){b+="&";}}b+="TemplateType=P";window.location.href=b;}function showHideBrush(){var c=document.getElementsByName("editlink");if(c==null||c.length==0){alert("There are no panels to edit on this page.");return;}for(var b=0;b<c.length;b++){c[b].style.display=brushState;c[b].className="";if(brushState=="block"){existingClassNames[b]=getParent(c[b]).className;getParent(c[b]).className="PanelEditLink";var a=c[b].getAttribute("panelName");getParent(c[b]).title=a;}else{getParent(c[b]).className=existingClassNames[b];getParent(c[b]).title="";}}if(brushState=="none"){brushState="block";}else{brushState="none";}}function Rollover(b,a){b.src=a;}function printWindow(){var a=parseInt(navigator.appVersion); 31if(a>=4){window.print();}}function emailWindow(){alert("Obsolete");}function showInfoCenter(){alert("Obsolete");}function showHelpDialog(a){window.open(a,"_blank","");}function ShowDialog_NoReturnValue(g,f,b,j,e,d,c,h,l,n,k,m,a){ShowDialog(g,f,b,j,e,d,c,h,l,n,k,m,a);}var RadWindowInformation=new Object();function ShowDialog(l,k,c,p,j,h,d,m,s,y,q,v,b,o,n){if(l.indexOf("http://")>-1){var r=l.replace("http://","");r=r.replace("//","/");l="http://"+r;}else{if(l.indexOf("https://")>-1){var r=l.replace("https://","");r=r.replace("//","/");l="https://"+r;}else{l=l.replace("//","/");}}if(l.indexOf("~")==0){l=window.gWebRoot+l.substring(1);}if(s==null||!s||s.length==0){s="GenericWindow";}if(l.indexOf("TemplateType=")<0){if(d==null||d.length==0){d="E";}var u=l.indexOf("?")>-1?"&":"?";l+=u+"TemplateType="+d;}if(y&&l.indexOf("CloseWindowOnCommit")<0){var u=l.indexOf("?")>-1?"&":"?";l+=u+"CloseWindowOnCommit="+y;}if(q&&l.indexOf("PreserveStatefulBusinessContainer")<0){var u=l.indexOf("?")>-1?"&":"?";l+=u+"PreserveStatefulBusinessContainer="+q;var w=$get("PageInstanceKey");if(w!=null){l+="&ParentPageInstanceKey="+w.value;}}if(l.indexOf("DialogCacheParam")<0){var u=l.indexOf("?")>-1?"&":"?";l+=u+"DialogCacheParam="+Math.random();}if(l.indexOf("IsPopup")<0){var u=l.indexOf("?")>-1?"&":"?";l+=u+"IsPopup=true";}var f=livePageWidth();if((c+"").indexOf("%")>-1){c=f*(parseInt(c)/100);}else{if(c>f){c=f;}}var g=livePageHeight();if((p+"").indexOf("%")>-1){p=g*(parseInt(p)/100);}else{if(p>g){p=g;}}RadWindowInformation.windowName=s;RadWindowInformation.url=l;RadWindowInformation.args=k;RadWindowInformation.width=c;RadWindowInformation.height=p;RadWindowInformation.title=j;mPageTitle=j;RadWindowInformation.iconUrl=h;RadWindowInformation.callBackFunction=m;RadWindowInformation.dialogCloseFunction=v;RadWindowInformation.sourceObject=b;RadWindowInformation.dialogWindow=null;var t=window.GetRadWindowManager();if(t==null){DelaySetupRadWindow();return null;}var x=t.getWindowByName(s);if(x!=null&&x.IsClosed()){x.Name=null; 32x=null;}if(x==null){x=window.radopen(null,s);}if(x==null){DelaySetupRadWindow();return null;}x.setSize(c,p);if(n){RadWindowInformation.isModal=n;x.set_modal(true);}if(x!=null&&l.indexOf("Mode=EditContent")>
32-1||l.indexOf("/ContentRecordEdit.aspx?")>-1){x.set_behaviors(4+16+32+64);p=livePageHeight();c=livePageWidth();x.setSize(c,p);x.maximize();x.set_animationDuration(0);x.set_keepInScreenBounds(true);x.set_destroyOnClose(false);}if(x!=null&&l.indexOf("/WebsiteEdit.aspx?")>-1||l.indexOf("/SelectTheme.aspx?")>-1){p=livePageHeight()-10;c=livePageWidth()-10;x.setSize(c,p);x.maximize();x.set_animationDuration(0);x.set_behaviors(4+64);x.set_keepInScreenBounds(true);x.set_destroyOnClose(false);}if(x!=null&&l.indexOf("/ContentItemEdit.aspx?")>-1&&l.indexOf("ContentTypeKey=a85f082a-e710-499c-a9f5-27829b8fbff7")>-1||l.indexOf("Mode=Maximized")>-1){p=livePageHeight()+20;c=livePageWidth();x.setSize(c,p);x.maximize();x.set_animationDuration(0);x.set_behaviors(4+64);x.set_keepInScreenBounds(true);x.set_destroyOnClose(false);}if(x!=null&&l.indexOf("/ContentItemEdit.aspx?")===-1&&l.indexOf("/Downloader.aspx?")===-1){if(l.indexOf("/RdlReportDisplay.aspx?")>-1){SetupReportDialog(x);}else{if(o){jQuery.get(l,function(z){var e=z;if(x!=null&&e.indexOf("RdlReportDisplayCommon")>-1||e.indexOf("Microsoft.Reporting")>-1){SetupReportDialog(x);}});}}}if(window.event!==null&&l.indexOf("StopPropagation=true")>-1){var a=window.event;a.cancelBubble=true;if(a.stopPropagation){a.stopPropagation();}if(a.preventDefault){a.preventDefault();}}if(x!==null&&l.indexOf("/ContentItemEdit.aspx?")>-1||l.indexOf("/WebPartCatalog.aspx?")>-1||l.indexOf("/ZonePropertiesDialog.aspx?")>-1||l.indexOf("/ContentLayoutSelector.aspx?")>-1){x.set_showContentDuringLoad(false);x.set_opacity(0);setTimeout(function(){var e=GetViewportScrollPos().y;window.scroll(0,e);if(l.indexOf("/ZonePropertiesDialog.aspx?")===-1){x.moveTo(GetViewportWidth()-825,e+25);}else{x.moveTo(GetViewportWidth()-525,e+25);}x.set_animationDuration(0);x.set_opacity(100); 33},0);}if(x!=null&&l.indexOf("/UserNameConfirmation.aspx?")>-1){x.set_behaviors();}DisableScroll();RadWindowInformation.dialogWindow=x;return SetupRadWindow();}function closeHandler(a,b){EnableScroll();a.remove_close(closeHandler);}function DisableScroll(){scrollTop=window.pageYOffset||document.documentElement.scrollTop;scrollLeft=window.pageXOffset||document.documentElement.scrollLeft;window.onscroll=function(){window.scrollTo(scrollLeft,scrollTop);};}function EnableScroll(){window.onscroll=function(){};}function SetupReportDialog(c){var a=livePageHeight();var b=livePageWidth();c.setSize(b,a);c.maximize();c.set_animationDuration(0);c.set_behaviors(4+64);c.set_keepInScreenBounds(true);c.set_destroyOnClose(true);c.set_modal(true);c.set_autoSize(false);c.set_visibleStatusbar(false);}function ShowConfirmationDialog(f,b,d,a,c,e){CancelEvent(this.Event);this.windowTitle=f!==String.EMPTY?f:"Confirm";this.windowConfirmText=b!==String.EMPTY?b:"Are you sure?";this.width=375;this.height=200;this.FireCommand_CallBack=function(g){if(g){var h=$find(e).get_masterTableView();if(h==null){h=$find(e).MasterTableView;}if(h!=null){h.fireCommand(c,a);}}};if(d){if(e!==""&&a!==""&&c!==""){radconfirm(this.windowConfirmText,this.FireCommand_CallBack,this.width,this.height,null,this.windowTitle);}else{return false;}}}function DelaySetupRadWindow(){addAjaxLoadEvent(SetupRadWindow);}function SetWindowTitle(b,a){b.set_title(RadWindowInformation.title);}Sys.EventHandlerList.prototype.removeExtraneousHandlers=function(f,d){var e=this._getEvent(f,true);var c=null;if(e.length>0){c=e[0];}Array.clear(this._getEvent(f,true));if(d&&c!=null){Array.add(this._getEvent(f,true),c);}};function SetupRadWindow(){var b=RadWindowInformation.dialogWindow;if(b==null){b=window.GetRadWindowManager().getWindowByName(RadWindowInformation.windowName);}b.get_events().removeExtraneousHandlers("beforeClose",false);b.get_events().removeExtraneousHandlers("close",true);b.set_title(RadWindowInformation.title);b.remove_pageLoad(SetWindowTitle); 34b.add_pageLoad(SetWindowTitle);b.Argument=RadWindowInformation.args;b.dialogArguments=RadWindowInformation.args;if(RadWindowInformation.callBackFunction!=null){b.add_beforeClose(RadWindowInformation.callBackFunction);}if(RadWindowInformation.dialogCloseFunction!=null){b.add_close(RadWindowInformation.dialogCloseFunction);}b.add_close(closeHandler);b.SourceObject=RadWindowInformation.sourceObject;
34b.setUrl(RadWindowInformation.url);b.SetVisible(true);b.set_visibleStatusbar(false);b.center();b.add_pageLoad(RestoreWindowTitle);var a=b.view.ui.container.querySelectorAll(".rwControlButtons a")[0];if(a!=null){a.focus();}return b;}function RestoreWindowTitle(a){if(a!=null&&mPageTitle!==""){a.set_title(mPageTitle);}}function CMOpenDialog(g,e,h,b,c,d,a,j,f){if(g!=null){if(c==null){c="";}else{if(c.substr(0,1)!="&"){c="&"+c;}}if(h==null){h=600;}if(b==null){b=400;}if(f==null){f="";}var k=window.gWebRoot+"/iMIS/ContentManagement/Template.aspx?ContentCode="+g+c;if(typeof gWebsiteKey!="undefined"&&gWebsiteKey!="null"&&k.indexOf("&WebsiteKey=")<0){k+="&WebsiteKey="+gWebsiteKey;}if(j!=null){k=k+"&NavigationCode="+j;}ShowDialog(k,d,h,b,f,"","E",a);}else{alert("contentCode is required!");}}function GetViewportWidth(){var a;if(typeof window.innerWidth!="undefined"){a=window.innerWidth;}else{if(typeof document.documentElement!="undefined"&&typeof document.documentElement.clientWidth!="undefined"&&document.documentElement.clientWidth!=0){a=document.documentElement.clientWidth;}else{a=document.getElementsByTagName("body")[0].clientWidth;}}return a;}function GetViewportHeight(){var a;if(typeof window.innerWidth!="undefined"){a=window.innerHeight;}else{if(typeof document.documentElement!="undefined"&&typeof document.documentElement.clientWidth!="undefined"&&document.documentElement.clientWidth!=0){a=document.documentElement.clientHeight;}else{a=document.getElementsByTagName("body")[0].clientHeight;}}return a;}var dialogWin=new Object();function ShowPseudoDialog(f,h,j,b,a){window.attachEvent("onclick",checkModal); 35window.attachEvent("onfocus",checkModal);var g=false;try{if(!dialogWin.win||(dialogWin.win&&dialogWin.win.closed)){g=true;}}catch(c){if(c.message=="The remote server machine does not exist or is unavailable"){g=true;}}if(g){dialogWin.returnFunc=a;dialogWin.returnedValue="";dialogWin.args=h;if(typeof(a)=="string"&&a!=""){if(f.indexOf("?")<0){f+="?iCallbackFunction="+a;}else{f+="&iCallbackFunction="+a;}}dialogWin.url=f;dialogWin.width=j;dialogWin.height=b;dialogWin.name=(new Date()).getSeconds().toString();dialogWin.left=(screen.width-dialogWin.width)/2;dialogWin.top=(screen.height-dialogWin.height)/2;var d="left="+dialogWin.left+",top="+dialogWin.top+",scrollbars=yes,resizable=yes,width="+dialogWin.width+",height="+dialogWin.height;dialogWin.win=window.open(dialogWin.url,dialogWin.name,d);dialogWin.win.focus();}else{dialogWin.win.focus();}}function checkModal(){setTimeout("finishChecking()",50);return true;}function finishChecking(){try{if(dialogWin.win&&!dialogWin.win.closed){dialogWin.win.focus();}}catch(a){if(a.message=="The remote server machine does not exist or is unavailable"){return;}}}function wait(){window.document.body.style.cursor="wait";var c=document.getElementsByTagName("input");for(var b=0;b<c.length;b++){if(c[b].getAttribute("type")==null){continue;}var a=c[b].getAttribute("type").toLowerCase();if((a=="submit"||a=="image"||a=="button")){c[b].disabled=true;}}}function waitStop(){window.document.body.style.cursor="default";var c=document.getElementsByTagName("input");for(var b=0;b<c.length;b++){if(c[b].getAttribute("type")==null){continue;}var a=c[b].getAttribute("type").toLowerCase();if((a=="submit"||a=="image"||a=="button")){c[b].disabled=false;}}}function dropDownListNavigate(b){var a=b.options[b.selectedIndex].value;if(a!=""){if(a.substr(0,1)=="~"){a=window.gWebRoot+a.substr(1);}location.href=a;}}function OpenObjectBrowserSized(d,a,g,f,j,l,c,h,e){var m=window.gWebRoot+"/AsiCommon/Controls/BSA/ObjectBrowser.aspx?TemplateType=E&DialogMode=true";var k=true; 36if(d!=null){var b=d.split("&");if(FindParameterInArray("Mode",b)==null){d+="&Mode=SelectContent";}if(g!=null&&g&&FindParameterInArray("AllowMultiSelect",b)==null){d+="&AllowMultiSelect=false";}if(f!=null&&FindParameterInArray("PublishedOnly",b)==null){d+="&PublishedOnly="+f;}if(d.substr(0,1)!="&"){m+="&";}m+=d;if(FindParameterInArray("PreserveContainer",b)!=null){k=false;}}else{m+="&Mode=SelectContent";if(g!=null&&g){m+="&AllowMultiSelect=false";}if(f!=null){m+="&PublishedOnly="+f;}}if(e==null){e="Document Browser";}return ShowDialog(m,j,l,c,e,null,"E",a,"ObjectBrowser",false,k,(h?a:null));}function OpenObjectBrowser(b,a,e,d,f,c){return OpenObjectBrowserSized(b,a,e,d,f,800,
36600,false,c);}function OpenContentForSaveAs(c,d,a){var b=window.gWebRoot+"/AsiCommon/Controls/BSA/ObjectBrowser.aspx?TypeFilter=CON,CFL&ShowMenu=false&ShowFilename=true&DialogMode=true&PublishedOnly=false&Mode=SelectContainer&AutoSizeObjectBrowser=true";b+="&DocumentHierarchyKey="+c;b+="&Filename="+d;return ShowDialog(b,"",800,600,"Content Browser",null,"E",a,"ObjectBrowser",false,false,null);}function OpenContentForEdit(a){var b=window.gWebRoot+"/iMIS/ContentManagement/ContentDesigner.aspx?TemplateType=E&ShowMenu=true&DialogMode=true";b+="&ContentHierarchyKey="+a;var c=radopen(b,"ObjectBrowser");return c;}function EditContentItem(a){OpenContentForEdit(a);}function OpenFinderAdder(a,g,d,f,e,b,h,j,c){OpenFinderAdderWithQueryFilter(a,g,d,f,e,b,h,"",j,c,"");}function OpenFinderAdderWithQueryFilter(l,m,e,g,j,d,f,k,b,h,n){var a=window.gWebRoot+"/AsiCommon/Controls/Shared/FinderAdder/FinderAdder.aspx?DialogMode=true";if(e!=null){a+="&DocumentKey="+e;}else{if(g!=null){a+="&DocumentPath="+g;}else{if(j!=null){a+="&AtomName="+j;}}}if(d!=null&&d.length>0){a+="&DisplayValueColumn="+d;}if(f!=null&&f.length>0){a+="&DataKeyName="+f;}if(k!=null&&k.length>0){a+="&filterValue="+k;}if(m!=null&&m){a+="&AllowMultiSelect=false";}else{a+="&AllowMultiSelect=true&PagingEnabled=false";}if(n!=null&&n.length>0){a+="&AddTargetUrl="+n; 37}if(b==null){b=1024;}if(h==null){h=768;}var c="Find";if(n!=null&&n.length>0){c="Find/Add";}return ShowDialog(a,null,b,h,c,null,"E",l,"ObjectBrowser",false,true);}function OpenPartyFinderAdder(a,g,d,f,e,b,h,j,c){OpenPartyFinderAdderWithQueryFilter(a,g,d,f,e,b,h,"",j,c,false,null);}function OpenPartyFinderAdderWithQueryFilter(n,p,f,h,l,e,g,m,c,b,j,o,a){var k=window.gWebRoot+"/AsiCommon/Controls/Shared/FinderAdder/PartyFinderAdder.aspx?DialogMode=true";if(f!=null){k+="&DocumentKey="+f;}else{if(h!=null){k+="&DocumentPath="+h;}else{if(l!=null){k+="&AtomName="+l;}}}if(e!=null&&e.length>0){k+="&DisplayValueColumn="+e;}if(g!=null&&g.length>0){k+="&DataKeyName="+g;}if(m!=null&&m.length>0){k+="&filterValue="+m;}if(p!=null&&p){k+="&AllowMultiSelect=false";}else{k+="&AllowMultiSelect=true&PagingEnabled=false";}if(j!=null&&j=="True"){k+="&AllowAdd="+j;}if(o!=null&&o.length>0){k+="&PartyType="+o;}if(c==null){c=1024;}if(b==null){b=768;}var d="Find";if(j!=null&&j=="True"){d="Find/Add";}if(a!=null&&a.length>0){k+="&addTargetShortcut="+a;}return ShowDialog(k,null,c,b,d,null,"E",n,"ObjectBrowser",false,true);}function OpenFileUpload(a,b,f,d,c){var e=window.gWebRoot+"/AsiCommon/Controls/Shared/FileUpload/FileUpload.aspx";if(b!=null&&b.length>0){e+="?DocumentStorageKey="+b;}if(f!=null&&f>0){if(e.indexOf("?")<0){e+="?MaxFileUploadSize="+f;}else{e+="&MaxFileUploadSize="+f;}}if(d!=null&&d.length>0){if(e.indexOf("?")<0){e+="?AllowedTypes="+d;}else{e+="&AllowedTypes="+d;}}if(c!=null&&c.toLowerCase()=="true"){if(e.indexOf("?")<0){e+="?EnableDescriptionField=true";}else{e+="&EnableDescriptionField=true";}}return ShowDialog(e,null,450,430,"File Upload",null,"E",a,"GenericWindow",false,true);}function OpenObjectSaver(b,a){var c=b.split("&");if(FindParameterInArray("ShowFilename",c)==null){b=b+"&ShowFilename=true";}if(FindParameterInArray("Mode",c)==null){b=b+"&Mode=SelectContainer";}OpenObjectBrowser(b,a);}function clickButton(b,a){var c=document.getElementById(a);if(typeof c=="object"){var d=navigator.appName.indexOf("Netscape")>(-1)?b:event; 38if(d.keyCode==13){c.click();return cancelEvent();}}return true;}var dirty=true;function finish(b){if(dirty&&window.opener){if(b){var a=window.opener.document.getElementById(b);if(a==null&&window.opener.dialogWin.args!=null){a=window.opener.document.getElementById(window.opener.dialogWin.args);}if(a!=null){a.click();}}if(a==null&&window.opener.RefreshBySubmit){window.opener.RefreshBySubmit();}if(window.opener.dialogWin.returnFunc!=null){window.opener.dialogWin.returnFunc();}}else{if(dirty&&parent){if(typeof parent.SubPage_Committed=="function"){parent.SubPage_Committed();}else{if(parent.objectBrowserClass!==null){parent.objectBrowserClass.SubPage_Committed();}}}}}var MatchColumnsSemaphore=false;matchColumns=function(){var a,g,e,c,b;a=document.getElementsByTagName("div");g=[];e=0;for(var f=0;f<a.length;f++){if(/\bcolumn\b/.test(a[f].className)){b=a[f];g[g.length]=b;if(b.offsetHeight){c=b.offsetHeight;}else{if(b.style.pixelHeight){c=b.style.pixelHeight;}else{if(MatchColumnsSemaphore){MatchColumnsSemaphore=false;}else{window.setTimeout(matchColumns,500);MatchColumnsSemaphore=true;return;}}}e=Math.max(e,c);}}for(var f=0;f<g.length;f++){g[f].style.height=e+"px";}};var autoHideMessage=function(){jQuery("[data-usermessage=autohide]").fadeTo(500,0).slideUp(500,function(){jQuery(this).remove();});};function RunAutoHideMessage(){if(document.querySelectorAll("[data-usermessage=autohide]")!=="undefined"){window.setTimeout(function(){autoHideMessage();},4000);}}document.addEventListener("DOMContentLoaded",RunAutoHideMessage);var showStatusMessage=function(a,d){if(["Information","Success","Warning","Error","Validation","Neutral"].indexOf(d)<0){console.warn("messageType for showStatusMessage must be one of the following: Information, Success, Warning, Error, Validation, Neutral.");d="Neutral";}var c=document.createElement("div");c.setAttribute("data-usermessage","autohide");c.classList="Asi"+d+" MiniMessage";c.innerHTML='<span class="Asi'+d+'Icon mr-3"></span>'+a;var e=document.querySelector(".user-message-area")||document.querySelector('[id$="UserMessagesUpdatePanel"]'); 39if(e){e.appendChild(c);}else{var b=document.getElementsByTagName("body")[0];b.insertBefore(c,b.childNodes[0]);}setTimeout(autoHideMessage,8000);};function setNextAppend(a){theForm=a.form;for(i=0;i<theForm.elements.length;i++){if(theForm.elements[i].id==a.id){theForm.elements[i+1].value+="\n"+a.value;break;}}}function setNext(b){var a=b.form;for(i=0;i<a.elements.length;i++){if(a.elements[i].id==b.id){a.elements[i+1].value=b.value;break;}}}function ButtonNavigate(a){if(a!=""){location.href=a;}}function Browser(){var c,a,b;this.isIE=false;this.isNS=false;this.version=null;c=navigator.userAgent;a="MSIE";if((b=c.indexOf(a))>=0){this.isIE=true;this.version=parseFloat(c.substr(b+a.length));return;}a="Netscape6/";if((b=c.indexOf(a))>=0){this.isNS=true;this.version=parseFloat(c.substr(b+a.length));return;}a="Gecko";if((b=c.indexOf(a))>=0){this.isNS=true;this.version=6.1;return;}}var browser=new Browser();var activeButton=null;function buttonClick(b,c){var a;if(browser.isIE){a=window.event.srcElement;}else{a=b.currentTarget;}a.blur();if(a.menu==null){a.menu=document.getElementById(c);if(a.menu.isInitialized==null){menuInit(a.menu);}}if(a.onmouseout==null){a.onmouseout=buttonOrMenuMouseout;}if(a==activeButton){return false;}if(activeButton!=null){resetButton(activeButton);}if(a!=activeButton){depressButton(a);activeButton=a;}else{activeButton=null;}return false;}function buttonMouseover(b,c){var a;if(activeButton==null){buttonClick(b,c);return;}if(browser.isIE){a=window.event.srcElement;}else{a=b.currentTarget;}if(activeButton!=null&&activeButton!=a){buttonClick(b,c);}}function depressButton(p){var f,g;p.className+=" menuButtonActive";p.attachEvent("onmouseout",buttonOrMenuMouseout);if(p.onmouseout==null){p.onmouseout=buttonOrMenuMouseout;}if(p.menu.onmouseout==null){p.menu.onmouseout=buttonOrMenuMouseout;}f=getPageOffsetLeft(p);g=getPageOffsetTop(p)+p.offsetHeight;if(browser.isIE){f+=p.offsetParent.clientLeft;g+=p.offsetParent.clientTop;}var h=0;var d=0;var l=document.body.offsetLeft+document.body.offsetWidth-30; 40var b=document.body.offsetTop+document.body.offsetHeight-30;var q=getParent(p.menu);var c=f+getPageOffsetLeft(q);var j=g+getPageOffsetTop(q)+q.offsetHeight;if(browser.isIE){h=c+p.menu.clientWidth;d=j+p.menu.clientHeight;}else{h=c+100;d=j+300;}if(h>l){f-=(h-l);h=f+p.menu.clientWidth;}if(d>b){d=g+p.menu.clientHeight;}p.menu.style.left=f+"px";p.menu.style.top=g+"px";p.menu.style.visibility="visible";var n=document.getElementsByTagName("select");for(i=0;i<n.length;i++){var e=n(i);var k=getPageOffsetLeft(e);var m=getPageOffsetTop(e)+e.offsetHeight;var o=0;var a=0;if(browser.isIE){k+=e.offsetParent.clientLeft;m+=e.offsetParent.clientTop;o+=k+e.clientWidth;a+=m+e.clientHeight;}else{o+=k+200;a+=m+20;}d+=5;if(squareIntersectsSquare(k,o,m,a,c,h,j,d)){e.style.visibility="hidden";}}}function numberOrder(d,c){return d-c;}function squareIntersectsSquare(b,f,g,e,a,c,d,h){xArray=new Array(b,f,a,c);xArray.sort(numberOrder);yArray=new Array(g,e,d,h);yArray.sort(numberOrder);if((xArray[0]==b&&xArray[1]==f)||(xArray[0]==a&&xArray[1]==c)){return false;}if((yArray[0]==g&&yArray[1]==e)||(yArray[0]==d&&yArray[1]==h)){return false;}return true;}function resetButton(a){removeClassName(a,"menuButtonActive");if(a.menu!=null){closeSubMenu(a.menu);a.menu.style.visibility="hidden";}var b=document.getElementsByTagName("select");for(i=0;i<b.length;i++){b(i).style.visibility="visible";}}function menuMouseover(b){var a;if(browser.isIE){a=getContainerWith(window.event.srcElement,"DIV","menu");}else{a=b.currentTarget;}if(a.activeItem!=null){closeSubMenu(a);}}function menuItemMouseover(a,f){var b,c,h,g;if(browser.isIE){b=getContainerWith(window.event.srcElement,"A","menuItem");}else{b=a.currentTarget;}c=getContainerWith(b,"DIV","menu");if(c.activeItem!=null){closeSubMenu(c);}c.activeItem=b;b.className+=" menuItemHighlight";if(b.subMenu==null){b.subMenu=document.getElementById(f);
40if(b.subMenu.isInitialized==null){menuInit(b.subMenu);}}if(b.subMenu.onmouseout==null){b.subMenu.onmouseout=buttonOrMenuMouseout; 41}h=getPageOffsetLeft(b)+b.offsetWidth;g=getPageOffsetTop(b);var d,e;if(browser.isNS){d=window.scrollX+window.innerWidth;e=window.scrollY+window.innerHeight;}if(browser.isIE){d=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft)+(document.documentElement.clientWidth!=0?document.documentElement.clientWidth:document.body.clientWidth);e=Math.max(document.documentElement.scrollTop,document.body.scrollTop)+(document.documentElement.clientHeight!=0?document.documentElement.clientHeight:document.body.clientHeight);}d-=b.subMenu.offsetWidth;e-=b.subMenu.offsetHeight;if(h>d){h=Math.max(0,h-b.offsetWidth-b.subMenu.offsetWidth+(c.offsetWidth-b.offsetWidth));}g=Math.max(0,Math.min(g,e));b.subMenu.style.left=h+"px";b.subMenu.style.top=g+"px";b.subMenu.style.visibility="visible";if(browser.isIE){window.event.cancelBubble=true;}else{a.stopPropagation();}}function closeSubMenu(a){if(a==null||a.activeItem==null){return;}if(a.activeItem.subMenu!=null){closeSubMenu(a.activeItem.subMenu);a.activeItem.subMenu.style.visibility="hidden";a.activeItem.subMenu=null;}removeClassName(a.activeItem,"menuItemHighlight");a.activeItem=null;}function buttonOrMenuMouseout(a){var b;if(activeButton==null){return;}if(browser.isIE){b=window.event.toElement;}else{if(a.relatedTarget!=null){b=(a.relatedTarget.tagName?a.relatedTarget:getParent(a.relatedTarget));}}if(getContainerWith(b,"DIV","menu")==null){resetButton(activeButton);activeButton=null;}window.event.srcElement.detachEvent("onmouseout",buttonOrMenuMouseout);}function menuInit(e){var g,a;var k,h;var f;var d,b;var c,l;if(browser.isIE){e.style.lineHeight="2.5ex";a=e.getElementsByTagName("SPAN");for(c=0;c<a.length;c++){if(hasClassName(a[c],"menuItemArrow")){a[c].style.fontFamily="Webdings";a[c].firstChild.nodeValue="4";}}}g=e.getElementsByTagName("A");if(g.length>0){f=g[0].offsetWidth;}else{return;}for(c=0;c<g.length;c++){a=g[c].getElementsByTagName("SPAN");k=null;h=null;for(l=0;l<a.length;l++){if(hasClassName(a[l],"menuItemText")){k=a[l]; 42}if(hasClassName(a[l],"menuItemArrow")){h=a[l];}}if(k!=null&&h!=null){k.style.paddingRight=(f-(k.offsetWidth+h.offsetWidth))+"px";}}if(browser.isIE){d=g[0].offsetWidth;g[0].style.width=d+"px";b=g[0].offsetWidth-d;d-=b;g[0].style.width=d+"px";}e.isInitialized=true;}function getContainerWith(a,b,c){while(a!=null){if(a.tagName!=null&&a.tagName==b&&hasClassName(a,c)){return a;}a=getParent(a);}return a;}function hasClassName(d,b){var c,a;a=d.className.split(" ");for(c=0;c<a.length;c++){if(a[c]==b){return true;}}return false;}function removeClassName(d,b){var c,e,a;if(d.className==null){return;}a=new Array();e=d.className.split(" ");for(c=0;c<e.length;c++){if(e[c]!=b){a.push(e[c]);}}d.className=a.join(" ");}function getPageOffsetLeft(b){var a;a=b.offsetLeft;if(b.offsetParent!=null&&b.offsetParent.style.position!="absolute"){a+=getPageOffsetLeft(b.offsetParent);}return a;}function getPageOffsetTop(a){var b;b=a.offsetTop;if(a.offsetParent!=null&&a.offsetParent.style.position!="absolute"){b+=getPageOffsetTop(a.offsetParent);}return b;}Sys.Application.add_load(function(){handleSubmitActions();Sys.Application.remove_load(function(){handleSubmitActions();});});function handleSubmitActions(){var f=jQuery("*[data-SubmitAction]");if(f==null){return;}for(var a=0;a<f.length;a++){var b=f[a];if(b!=null&&b.id!=""){createSubmitAction(b);}else{if(b!=null&&b.childNodes!=null&&b.childNodes.length>0){var d=b.childNodes;for(var e=0;e<d.length;e++){var c=d[e];addSubmitActionAttribute(c,b);createSubmitAction(c);}}}}}function addSubmitActionAttribute(a,d){if(a==null){return;}var c=a.id;if(c==""){return;}var e=jQuery(a);if(e==null){return;}var b=jQuery(d).data("submitaction");if(b==null){return;}e.attr("data-SubmitAction",jQuery(d).attr("data-SubmitAction"));e.data("submitaction").ClientId=c;}function createSubmitAction(field){if(field==null){return;}var fieldId=field.id;if(fieldId==""){return;}var submitActionField=jQuery(field);if(submitActionField==null){return;}var submitAction=submitActionField.data("submitaction"); 43if(submitAction==null){return;}var submitActionClientId=submitAction.ClientId;if(submitActionClientId!=null&&submitActionClientId!="undefined"&&submitActionClientId.trim!=""){var submitActionButtonId=submitAction.ButtonId||"";var submitActionHiddenFocusableFieldId=submitAction.HiddenFocusableFieldId||"";var enterKeyClassInstanceVar="enterKeyPressClass_"+submitActionClientId+fieldId;var classInstance="var "+enterKeyClassInstanceVar+' = new EnterKeyPressClass("'+submitActionButtonId+'", "'+submitActionHiddenFocusableFieldId+'");';eval(classInstance);var methodCall=enterKeyClassInstanceVar+'.TurnOnEnterKey("'+fieldId+'");';eval(methodCall);}}function EnterKeyPressClass(d,a){this.TurnOnEnterKey=function(e){var g;var f=jQuery("div[id$="+e+"]:first");
43if(f!=null){g=f.find("input[type=text], input[type=radio], input[type=checkbox], input[type=password]");}if(f==null||f.length==0||g==null||g.length==0){g=jQuery("#"+e);}if(g!=null){g.on("keypress",(function(h){c(h);}));}};function c(f){var g=f.keyCode?f.keyCode:f.which;if(g==13){if(window.previousKeyCode){if(window.previousKeyCode==33||window.previousKeyCode==34||window.previousKeyCode==39||window.previousKeyCode==40){window.previousKeyCode=g;return;}}switch(f.target.type){case"text":case"password":if(a!=null&&a!=""){b(f.target.id,a);}var e=jQuery("#"+d);if(e!=null&&e.length==1&&!e[0].disabled){e.click();}break;case"radio":break;case"checkbox":break;default:break;}f.preventDefault();}else{window.previousKeyCode=g;}}function b(h,e){if(e==null||e==""){return;}if(h==""){return;}var g=jQuery("#"+h);if(g==null){return;}var f=jQuery("#"+e);if(f!=null){f.val(h);}}}function ChangeSelectedTab(a){var e=a.selectedIndex;var f="Tab_";var c=f+e;var b=document.getElementById(c);var d=document.getElementsByTagName("div");for(var e=0;e<d.length;e++){if((d[e].id)!=c&&(d[e].id).substring(0,4)==f){d[e].style.display="none";}}if(document.all.namedItem(c).style.display=="none"){document.all.namedItem(c).style.display="block";if(document.all.namedItem("iAddItemTab")!=null){document.all.namedItem("iAddItemTab").value=a.selectedIndex; 44}}}function ShowHidePanelSection(a){element=document.getElementById(a);if(element.style.display=="none"){element.style.display="block";}else{element.style.display="none";}}function ValidateTextLength(b,a){if(b.value.length>a){b.value=b.value.substring(0,a);}}function RunAllValidators(c,a){if(typeof Page_ClientValidate=="function"){var b;for(b=0;b<Page_Validators.length;b++){if(IncludeValidationGroup(c,Page_Validators[b].validationGroup,a)){ValidatorValidate(Page_Validators[b]);}}ValidatorUpdateIsValid();if(c!=null&&c!="undefined"){for(b=0;b<c.length;b++){ValidationSummaryOnSubmit(c[b]);}}else{ValidationSummaryOnSubmit("");}ShowProblemTab();ShowProblemTelerikTab();return Page_IsValid;}return true;}function IncludeValidationGroup(a,b,c){if(a==undefined){return true;}if((b==undefined&&c)||jQuery.inArray(b,a)>=0){return true;}return false;}function FireSingleValidator(a,c){var b=document.all!=null?document.all[a]:document.getElementById(a);ValidatorValidate(b);ValidatorUpdateIsValid();ValidationSummaryOnSubmit(c);}function ShowProblemTelerikTab(){var j=GetAllTabsStrips();if(j.length>0){for(m=0;m<Page_Validators.length;++m){var c=Page_Validators[m];if(c==null){continue;}var h=document.getElementById(c.controltovalidate);if(h==null){continue;}if(c.evaluationfunction(c)===false&&!c.isvalid){var f=null;var k=jQuery("#"+c.controltovalidate).closest("[data-multipage='yes']").get(0);if(typeof(k)=="undefined"||k.length<1){f=GetMultiPageId(h);}else{f=$find(k.id);}var b=false;if(f!=null){try{var l=f.get_pageViews();b=true;}catch(g){b=false;}}if(b){var m;var d=-1;for(m=0;m<f.get_pageViews().get_count();m++){if(IsParent(f.get_pageViews().getPageView(m).get_id(),h)){d=m;break;}}if(d>=0){for(m=0;m<j.length;m++){var a=$find(j[m].id);if(a.get_multiPageID()==f.get_id()){a.set_selectedIndex(d);if(!h.disabled){try{h.focus();}catch(e){}}break;}}}}break;}}}}function GetAllTabsStrips(){var b=new Array();var a=document.getElementsByTagName("DIV");if(a.length>0){var c=0;}var e=false;for(c=0;c<a.length; 45c++){e=false;
45if(a[c].control!=null){try{if(a[c].control.get_multiPageID()!=""){e=true;}}catch(d){e=false;}}if(e){b.push(a[c]);}}return b;}function IsParent(a,b){var c=false;if(b.parentNode!=null){if(b.id==a){return true;}else{c=IsParent(a,b.parentNode);}}return c;}function GetMultiPageId(b){var a=null;if(b.parentNode!=null){if(b.control!=null){return b.control;}else{a=GetMultiPageId(b.parentNode);}if(a!=null){return a;}}}function ResetForm(){jQuery("#aspnetForm").trigger("reset");}function debounce(d,a,b){var c;return function(){var f=this,g=arguments;var e=function(){c=null;if(!b){d.apply(f,g);}};var h=b&&!c;clearTimeout(c);c=setTimeout(e,a);if(h){d.apply(f,g);}};}function LocationPanelOption(b,d){var c=jQuery(b).closest("span").attr("data-redirectlocation");var e=jQuery("[data-shortcutspanel="+c+"]");var a=jQuery("[data-contenturlpanel="+c+"]");switch(d){case 0:e.hide();a.show();break;case 1:e.show();a.hide();break;case 2:e.hide();a.hide();break;default:break;}}function PropertyNameOptionState(a){jQuery("#"+a.id).children('option[value="Sources"]').prop("disabled","disabled");jQuery("#"+a.id).children('option[value="Sources"]').css("font-weight","bolder");}function ScrollBottom(a){if(a!=null){jQuery(a).animate({scrollTop:jQuery(document).height().ready},1000);}}function ScrollTop(){window.scroll({top:0,left:0,behavior:"smooth"});}function getParameterByName(b,c){if(!c){c=window.location.href;}b=b.replace(/[\[\]]/g,"\\$&");var d=new RegExp("[?&]"+b+"(=([^&#]*)|&|#|$)"),a=d.exec(c);if(!a){return null;}if(!a[2]){return"";}return decodeURIComponent(a[2].replace(/\+/g," "));}jQuery(document).ready(function(){var b=jQuery('div[id="SimpleSearchBlock"]');var a=jQuery('div[id="DropdownMenuBlock"]');b.on("click",function(c){a.show();});jQuery(document).mouseup(function(c){if(!a.is(c.target)&&a.has(c.target).length===0){a.hide();}});jQuery(document).on("keydown","#"+b.attr("id"),function(c){var d=c.keyCode||c.which;if(d===9){a.show();}});});function quickFind(d,c,b){var a=jQuery(d); 46a.each(function(f,e){var h=false;var g=c?jQuery(e).find(c).text():jQuery(e).text();if(g.toLowerCase().indexOf(b.toLowerCase())>=0){h=true;}if(h===true){jQuery(e).show();}else{jQuery(e).hide();}});}function ScrollToLastPosition(e,c){if(e!=null&&c!=null){var b=getParameterByName(e,window.location.href);if(b!=null){var a=b.substring(0,8)+"LastPosition";var d=c;if(gIsPostBack){ElementScrollTo(d,a);}jQuery(d).scroll(function(f){SetElementScrollPosition(d,a);});}}}function searchAvailableItems(e,c,b,a){if(a!=null){jQuery(a).hide();}var d=jQuery(e);d.each(function(h,g){var k=false;var j=c?jQuery(g).find(c).text():jQuery(g).text();if(j.toLowerCase().indexOf(b.toLowerCase())>=0){k=true;}if(k===true){jQuery(g).show();}else{jQuery(g).hide();}});if(a!=null){var f=jQuery(e).filter(function(){return jQuery(this).is('[style="display: none;"]');}).length;if(d.length==f){jQuery(a).show();}}}function disablePage(a){createLoadingOverlay(a);}function createLoadingOverlay(a){destroyLoadingOverlay();if(a!=null){a="<h4>"+a+"</h4>";}else{a="";}var b=document.createElement("div");b.id="PageLoadingStatus";b.className="modal fade";b.setAttribute("role","status");b.innerHTML='<div class="modal-dialog modal-dialog-status modal-dialog-centered"><div class="modal-content"><div class="modal-body"><span class="spinner-dark"></span>'+a+"</div></div></div>";document.body.appendChild(b);this.overlay={element:b};this.showLoadingOverlay();}function showLoadingOverlay(){if(this.overlay!=null&&!this.overlay.element){return;}jQuery(this.overlay.element).modal({backdrop:"static",keyboard:false},"show");}function destroyLoadingOverlay(){if(this.overlay!=null&&this.overlay.element){jQuery(this.overlay.element).modal("hide");this.overlay.element.remove();}this.overlay=null;}function addKeyboardNav(a){var b=document.getElementsByClassName(a);for(i=0;i<b.length;i++){b[i].tabIndex="0";b[i].addEventListener("keyup",function c(d){if(d.key==="Enter"||d.keyCode===13){this.click();}});}}document.addEventListener("DOMContentLoaded",setAlertState); 47function dismissAlert(c,a,e){if(!c||!a||!e){return;}var d={name:c,uniqueId:a,locationId:e,date:new Date()};var b=JSON.parse(localStorage.getItem("dismissedAlertCollection"))||[];b.push(d);localStorage.setItem("dismissedAlertCollection",JSON.stringify(b));hideAlert(a);}function setAlertState(){var b=JSON.parse(localStorage.getItem("dismissedAlertCollection"))||[];
47if(b!=null&&b.length>0){for(var a=0;a<b.length;a++){element=b[a];if(element!=null){hideAlert(element.uniqueId);}}}}function hideAlert(a){if(!a){return;}var b=document.querySelector(".AlertItem>div[data-uniqueid='"+a+"']");if(b!=null&&b.id!=null){hideElement(b.id);}hideSystemAlertsIfEmpty();}function hideSystemAlertsIfEmpty(){var a=Array.from(document.querySelectorAll("#SystemAlertPanel .AlertItem>div"));if(a.length==0||a.every(isHidden)){hideElement("SystemAlertPanel");}}function hideElement(b){if(!b){return;}var a=document.getElementById(b);if(a!=null){a.style.display="none";}}function isHidden(a){return a.style.display=="none";}function stopFooterOverlap(a){footerTop=jQuery("#ft").position().top;regAreaPos=jQuery(document).scrollTop()+parseInt(jQuery(a).css("top"),10)+jQuery(a).outerHeight();regAreaMargin=regAreaPos-footerTop;if(regAreaPos>footerTop){jQuery(a).css("margin-top",0-regAreaMargin-20);}else{jQuery(a).css("margin-top",0);}}function truncateHTML(a,b,c){jQuery(document).ready(function(){var h=document.getElementsByClassName("shortDesc");var o=document.getElementsByClassName("moreLess");var r=document.getElementsByClassName("longText");var j=document.getElementsByClassName("moreLessLabel");var s=[];var l=new RegExp(/(<[^>]*>)/g);function e(t){return function(){if(j[t].innerHTML.includes(b)){h[t].innerHTML=r[t].innerHTML+" ";j[t].innerHTML=c;o[t].innerHTML=o[t].innerHTML.replace("caret","caret-up");}else{h[t].innerHTML=s[t];j[t].innerHTML=b;o[t].innerHTML=o[t].innerHTML.replace("caret-up","caret");}};}for(var f=0;f<r.length;f++){var g=0;var k=r[f].innerHTML.split(l);for(var p=0;p<k.length;p++){if(!(l.test(k[p]))){if(g==a){k.splice(p,1); 48continue;}g=g+k[p].length;if(g>a){var n=g-a;k[p]=k[p].slice(0,-n);k[p]=k[p].substring(0,k[p].substring(0,a).lastIndexOf(" "));var m=k[p].slice(k[p].length-1,k[p].length);m=m.replace(/[.,\/#!$%\^&\*;:{}=\-_`~()]/g,"");k[p]=k[p].substring(0,k[p].length-1)+m;g=a;}}}var q=k.join("");q=q.replace(/(<(?!\/)[^>]+>)+(<\/[^>]+>)/g,"")+"... ";s.push(q);h[f].innerHTML=s[f];o[f].addEventListener("click",e(f));}});}function collapsedText(c,h){var a=document.getElementsByClassName("collapsedText");var g=document.getElementsByClassName("moreLess");var f=document.getElementsByClassName("moreLessLabel");function e(j){return function(){if(f[j].innerHTML.includes(c)){a[j].style.display="block";f[j].innerHTML=h;g[j].innerHTML=g[j].innerHTML.replace("caret","caret-up");}else{a[j].style.display="none";f[j].innerHTML=c;g[j].innerHTML=g[j].innerHTML.replace("caret-up","caret");}};}for(var b=0;b<a.length;b++){g[b].addEventListener("click",e(b));}}function inputFieldStateHandler(a,b,c){if(!a||!b||typeof c!=="number"){return;}setTimeout(function(){if(typeof a==="string"){a=[a];}var h=[];for(var e=0;e<a.length;e++){var f=document.getElementById(a[e]);if(f){h.push(f);}}var g=document.getElementById(b);if(h.length===0||!g){return;}g.disabled=true;var d=function(){var k=true;for(var j=0;j<h.length;j++){if(h[j].value.trim().length===0){k=false;break;}}g.disabled=!k;};for(var e=0;e<h.length;e++){h[e].addEventListener("input",d);}},c);}if(typeof(Type)!="undefined"){Type.registerNamespace("AsiWebControls");}var currentKeepAliveExtender;AsiWebControls.KeepAliveBehavior=function(a){AsiWebControls.KeepAliveBehavior.initializeBase(this,[a]);this._tooltipFormatText="";this._reconnectCount=0;this._maxReconnectAttempts=-1;this._keepAlivePageUrl="";this._sessionTimeoutLength=0;};AsiWebControls.KeepAliveBehavior.prototype={initialize:function(){AsiWebControls.KeepAliveBehavior.callBaseMethod(this,"initialize");this.Reconnect();currentKeepAliveExtender=this;},dispose:function(){if(this._tooltipFormatText){this._tooltipFormatText=null;}if(this._reconnectCount){this._reconnectCount=null;}if(this._maxReconnectAttempts){this._maxReconnectAttempts=null;}if(this._keepAlivePageUrl){this._keepAlivePageUrl=null;}if(this._sessionTimeoutLength){this._sessionTimeoutLength=null;}AsiWebControls.KeepAliveBehavior.callBaseMethod(this,"dispose");},get_TooltipFormatText:function(){return this._tooltipFormatText;},set_TooltipFormatText:function(a){this._tooltipFormatText=a;},get_ReconnectCount:function(){return this._reconnectCount;},set_ReconnectCount:function(a){this._reconnectCount=a;},get_MaxReconnectAttempts:function(){return this._maxReconnectAttempts;},set_MaxReconnectAttempts:function(a){this._maxReconnectAttempts=a;},get_KeepAlivePageUrl:function(a){this._keepAlivePageUrl=a;},set_KeepAlivePageUrl:function(a){this._keepAlivePageUrl=a;},get_SessionTimeoutLength:function(a){this._sessionTimeoutLength=a;},set_SessionTimeoutLength:function(a){this._sessionTimeoutLength=a;},Reconnect:function(){if(this._maxReconnectAttempts<0||this._reconnectCount<this._maxReconnectAttempts){var c=this.get_element
48();var a=this._sessionTimeoutLength*0.75;c.title=this._tooltipFormatText.replace("{0}",(this._reconnectCount*a)/60000);var d=new Image(1,1);var b=this._keepAlivePageUrl;if(b.indexOf("?")<0){b+="?";}else{b+="&";}b+="NoCache="+Math.floor(Math.random()*1000000);d.src=b;this._reconnectCount++;window.setTimeout("currentKeepAliveExtender.Reconnect()",a); 49}}};if(typeof(Type)!=="undefined"){AsiWebControls.KeepAliveBehavior.registerClass("AsiWebControls.KeepAliveBehavior",Sys.UI.Behavior);}addLoadEvent(Lister2_Init);var Listers=null;function Lister2_Init(){if(!Listers||Listers==null||Listers.length==0){return;}for(var a=0;a<Listers.length;a++){if(Listers[a]==null){continue;}Listers[a].GetSelectedKeys=function(){return Lister2_GetSelectedKeys(this);};Listers[a].GetSelectedDisplayValues=function(b){return Lister2_GetSelectedDisplayValues(this,b);};Listers[a].Refresh=function(){Lister2_Refresh(this);};}RemoveGridTabindexFocus();}function Lister2_GetGrid(a){return $find(a.getAttribute("data-gridId"));}function Lister2_GetSelectedKeys(e){var b=new Array();var g=Lister2_GetGrid(e);if(g==null){return null;}var a;var f=this.document.getElementById(e.getAttribute("data-hiddenFieldId"));if(f!=null){a=f.value;}else{a=e.getAttribute("data-keyColumnName");}if(a==null){alert("Key Column not identified for this data source, unable to continue.");return null;}var h=g.get_masterTableView().get_selectedItems();for(var d=0;d<h.length;d++){var c=h[d].getDataKeyValue(a);if(c==null){alert("Unable to get selected key.");return null;}b.push(c);}return b;}function Lister2_GetSelectedDisplayValues(e,c){var g=Lister2_GetGrid(e);if(g==null){return null;}var a=new Array();var f=g.get_masterTableView().get_selectedItems();for(var b=0;b<f.length;b++){var d=g.get_masterTableView().getCellByColumnUniqueName(f[b],c);if(d==null){alert("Specified display column does not exist in the list: "+c);}else{if(document.all){a.push(trim(d.innerText));}else{a.push(trim(d.textContent));}}}return a;}function Lister2_Refresh(b){var a=$(b.id+"_RefreshButton");if(a!=null){a.click();}}function Lister2_DialogWindowClose(b){if(b.IsDirty){var a=b.SourceObject;Lister2_Refresh(a);}}function Lister2_DialogWindowCallback(a){}function RemoveGridTabindexFocus(){if(document.querySelectorAll!==undefined){var c=document.querySelectorAll(".RadGrid");if(c!=null&&c!==undefined){for(var a=0;a<c.length;a++){var b=c[a];b.removeAttribute("tabindex");}}}}function MarkForDeleteButtonProperties(){this.OriginalCssClass=new String();this.OldMouseOver=new String();this.OldMouseOut=new String();this.HoverCssName=new RegExp("Hover|Hand");this.HoverReplacement="";this.DisabledCssAppend="Disabled StrikeOut";}var markForDeleteButtonProperties=new MarkForDeleteButtonProperties();function MarkForDeleteButton_MarkForDelete(a,d,b,c){markforDelete=document.getElementById(d);markforDelete.checked=!markforDelete.checked;if(markforDelete.checked){DisableRow(a,d,b,c);}else{EnableRow(a,d,b,c);}}function MarkForDeleteButton_DisableRow(a,d,b,c){row=document.getElementById(a);deleteImg=document.getElementById(b);markForDeleteButtonProperties.OriginalCssClass=row.className;row.oldmouseover=row.onmouseover;row.oldmouseout=row.onmouseout;row.onmouseover="";row.onmouseout="";row.className=markForDeleteButtonProperties.OriginalCssClass.replace(markForDeleteButtonProperties.HoverCssName,markForDeleteButtonProperties.HoverReplacement)+markForDeleteButtonProperties.DisabledCssAppend;for(i=0;i<row.childNodes.length;i++){td=row.childNodes.item(i);for(j=0;j<td.childNodes.length;j++){element=td.childNodes.item(j);if(element.tagName&&element.id!=d){if(element.tagName.toUpperCase()=="INPUT"||element.tagName.toUpperCase()=="SELECT"||element.tagName.toUpperCase()=="TEXTAREA"){element.className=element.className+"Disabled";}}else{if(element.tagName){element.checked=true;}}}}deleteImg.oldSrc=deleteImg.src;deleteImg.src=c;deleteImg.alt=deleteImg.DisabledAltText;}function MarkForDeleteButton_EnableRow(a,d,b,c){row=document.getElementById(a);deleteImg=document.getElementById(b);row.className=markForDeleteButtonProperties.OriginalCssClass;row.onmouseover=row.oldmouseover;row.onmouseout=row.oldmouseout;for(i=0;i<row.childNodes.length;i++){td=row.childNodes.item(i);for(j=0;j<td.childNodes.length;j++){element=td.childNodes.item(j);
49if(element.tagName&&element.id!=d){if(element.tagName.toUpperCase()=="INPUT"||element.tagName.toUpperCase()=="SELECT"||element.tagName.toUpperCase()=="TEXTAREA"){element.className=element.className.replace("Disabled",""); 50}}else{if(element.tagName){element.checked=false;}}}}deleteImg.src=deleteImg.oldSrc;deleteImg.alt=deleteImg.ActiveAltText;}var IsDirty=false;var LastSelectedControl="";var IsUpdating=false;function MasterPageBase_AsyncInit(){MasterPageBase_Init(true);}function MasterPageBase_Init(){var b=Sys.WebForms.PageRequestManager.getInstance();if(b!=null){b.add_beginRequest(MasterPageBase_BeginRequest);}if(!IsDirty){if($get("PageIsDirty").value==true){IsDirty=true;}var a=GetRadWindow();if(a!=null){a.IsDirty=IsDirty;}}}function MasterPageBase_BeginRequest(h,f){var b=f.get_postBackElement();if(b!=null&&b.getAttribute("data-ajaxUpdatedControlID")!=null){LastSelectedControl=b.getAttribute("data-ajaxUpdatedControlID");}else{if(b!=null){LastSelectedControl=b.id;}}var a=jQuery("#FillProgressDiv").get(0);if(a!=null){var e=b.getAttribute("data-ajaxUpdatedControlID");if(e==null){e=getParent(b).getAttribute("data-ajaxUpdatedControlID");}if(e==null&&b.getAttribute("smartControlId")!=null){if(document.getElementById(b.getAttribute("smartControlId"))!=null&&document.getElementById(b.getAttribute("smartControlId")).getAttribute("data-ajaxUpdatedControlID")!=null){e=document.getElementById(b.getAttribute("smartControlId")).getAttribute("data-ajaxUpdatedControlID");}}if(e!=null&&e.length>0){var d=e.split(",");for(var c=0;c<d.length;c++){var g=$get(d[c]);if(g!=null){a.style.display="block";a.style.marginLeft="0";Cover(g,a,false);}}}}}function PostCommitScript(customPostCommitScript){var commitButtonClickedHiddenInput=$get("CommitButtonClicked");var commitButtonClicked=commitButtonClickedHiddenInput!=null&&eval(commitButtonClickedHiddenInput.value);if(commitButtonClicked&&customPostCommitScript!=null&&customPostCommitScript.length>0){var messagesPanelID=$get("TemplateUserMessagesID").value;var messagesPanel=messagesPanelID.length>0?$get(messagesPanelID):null;if(messagesPanel==null){eval(customPostCommitScript);}}commitButtonClickedHiddenInput.value="false";}function CancelButton_Click(c){var b=GetRadWindow();if(b!=null){CloseAndCancelRadWindow();if(location.href.indexOf("iOperation=Purge")>-1||location.href.indexOf("iOperation=Delete")>-1){RefreshRadWindowParent(); 51}}else{try{window.location.href=c;}catch(a){return null;}}try{return CancelEvent();}catch(d){return null;}}function MasterPageBaseResizeProperties(){this.TopPanel=null;this.TopPanelDivider=null;this.TitlePanel=null;this.SideBarPanel=null;this.ContentPanel=null;this.ButtonPanel=null;this.FootPanel=null;this.OldTopPanelHeight=null;this.OldSideBarPanelWidth=null;this.ExtraPixels=0;this.ResizeHeightIntervalID=0;this.ResizeHeightLastHeight=0;}var masterPageBaseResizeProperties=new MasterPageBaseResizeProperties();function MasterPageBase_SetupComponents(f,b,g,e,d,a,c){if(f!=null&&f.length>0){masterPageBaseResizeProperties.TopPanel=$get(f);masterPageBaseResizeProperties.TopPanelDivider=$get(f+"Divider");}if(b!=null&&b.length>0){masterPageBaseResizeProperties.TitlePanel=$get(b);}if(g!=null&&g.length>0){masterPageBaseResizeProperties.SideBarPanel=$get(g);}if(e!=null&&e.length>0){masterPageBaseResizeProperties.ContentPanel=$get(e);}if(d!=null&&d.length>0){masterPageBaseResizeProperties.ButtonPanel=$get(d);}if(a!=null&&a.length>0){masterPageBaseResizeProperties.FootPanel=$get(a);}if(c!=null){masterPageBaseResizeProperties.ExtraPixels=c;}else{masterPageBaseResizeProperties.ExtraPixels=13;}}function Window_Load_Aspen(){addResizeEvent(Window_Resize_Aspen);Window_Resize_Aspen();setTimeout("ScrollToFragment()",200);}function Window_Load(){addResizeEvent(Window_Resize);Window_Resize();setTimeout("ScrollToFragment()",200);}function getProperChildObject(b){var a=b.firstChild;if(a!=null&&a.nodeName=="#text"){a=a.nextSibling;}return a;}function ScrollToElement(b){var a=0;var c=0;while(b!=null&&b!=contentPanel){c+=b.offsetTop;b=b.offsetParent;}if(masterPageBaseResizeProperties.ContentPanel!=null){masterPageBaseResizeProperties.ContentPanel.scrollTop=c;}else{window.scrollTo(a,c);}}function ScrollToFragment(){try{if(location.hash!=null&&location.hash!=""){var b=$get(location.hash.substring(1));if(b==null){b=$get(location.hash);}if(b!=null){ScrollToElement(b);}}}catch(a){}}function Window_Resize(){setTimeout("ResizeContentPanel()",300); 52}function Window_Resize_Aspen(){setTimeout("ResizeContentPanel_Aspen()",300);}function TopPanel_Resize(a){var b=masterPageBaseResizeProperties.TopPanel.offsetHeight;if(b!=masterPageBaseResizeProperties.OldTopPanelHeight){masterPageBaseResizeProperties.OldTopPanelHeight=b;ResizeContentPanel();}}function SideBarPanel_Resize(){if(BrowserDetect.browser=="Explorer"&&BrowserDetect.version<7){return;}var a=masterPageBaseResizeProperties.SideBarPanel.offsetWidth;if(a!=masterPageBaseResizeProperties.OldSideBarPanelWidth){masterPageBaseResizeProperties.OldSideBarPanelWidth=a;ResizeContentPanel();}}function ResizeContentPanel(){var a=livePageHeight();var g=livePageWidth();var f=0;if(masterPageBaseResizeProperties.TopPanel!=null){try{f+=masterPageBaseResizeProperties.TopPanel.offsetHeight+masterPageBaseResizeProperties.TopPanelDivider.offsetHeight;}catch(e){f+=masterPageBaseResizeProperties.TopPanel.offsetHeight;}}if(masterPageBaseResizeProperties.TitlePanel!=null){if(masterPageBaseResizeProperties.TitlePanel.length>0){for(i=0;i<masterPageBaseResizeProperties.TitlePanel.length;i++){f+=masterPageBaseResizeProperties.TitlePanel[i].offsetHeight;}}else{f+=masterPageBaseResizeProperties.TitlePanel.offsetHeight;}}var d=0;if(masterPageBaseResizeProperties.ButtonPanel!=null){d+=masterPageBaseResizeProperties.ButtonPanel.offsetHeight;}if(masterPageBaseResizeProperties.FootPanel!=null){d+=masterPageBaseResizeProperties.FootPanel.offsetHeight;}var b=a-f-d;b-=masterPageBaseResizeProperties.ExtraPixels;if(b<=99){b=100;}if(masterPageBaseResizeProperties.SideBarPanel!=null){masterPageBaseResizeProperties.SideBarPanel.style.height=b+"px";}if(masterPageBaseResizeProperties.ContentPanel!=null){masterPageBaseResizeProperties.ContentPanel.style.height=b+"px";var c=masterPageBaseResizeProperties.ContentPanel.offsetWidth;contentResized(c,b);}}function ResizeContentPanel_Aspen(){var b=livePageHeight();var h=livePageWidth();var g=0;if(masterPageBaseResizeProperties.TopPanel!=null){try{g+=masterPageBaseResizeProperties.TopPanel.offsetHeight+$get(masterPageBaseResizeProperties.TopPanel.i
52d+"Divider").offsetHeight; 53}catch(f){g+=masterPageBaseResizeProperties.TopPanel.offsetHeight;}}if(masterPageBaseResizeProperties.TitlePanel!=null){if(masterPageBaseResizeProperties.TitlePanel.length>0){for(i=0;i<masterPageBaseResizeProperties.TitlePanel.length;i++){g+=masterPageBaseResizeProperties.TitlePanel[i].offsetHeight;}}}var e=0;if(masterPageBaseResizeProperties.ButtonPanel!=null){e+=masterPageBaseResizeProperties.ButtonPanel.offsetHeight;}if(masterPageBaseResizeProperties.FootPanel!=null){e+=masterPageBaseResizeProperties.FootPanel.offsetHeight;}var a=b-g-e-15;var c=0;if(masterPageBaseResizeProperties.ContentPanel!=null){c=masterPageBaseResizeProperties.ContentPanel.offsetHeight;}if(c<a){c=a;}if(c<=99){c=100;}if(masterPageBaseResizeProperties.SideBarPanel!=null){masterPageBaseResizeProperties.SideBarPanel.style.height=c+"px";}if(masterPageBaseResizeProperties.ContentPanel!=null){masterPageBaseResizeProperties.ContentPanel.style.height=c+"px";var d=masterPageBaseResizeProperties.ContentPanel.offsetWidth;contentResized(d,c);}}function TopPanel_Click(){console.warning("Asi: Obsolete 'TopPanel_Click' is deprecated");}function ResizeHeightForMozilla(){masterPageBaseResizeProperties.ResizeHeightLastHeight=masterPageBaseResizeProperties.TopPanel.offsetHeight;masterPageBaseResizeProperties.ResizeHeightIntervalID=setInterval("ResizeHeightInterval()",250);}function ResizeHeightInterval(){var a=masterPageBaseResizeProperties.TopPanel.offsetHeight;if(a==masterPageBaseResizeProperties.ResizeHeightLastHeight){clearInterval(masterPageBaseResizeProperties.ResizeHeightIntervalID);ResizeContentPanel();}masterPageBaseResizeProperties.ResizeHeightLastHeight=a;}function GetRadWindow(){var b=null;try{if(window.radWindow){b=window.radWindow;}else{if(window.frameElement&&window.frameElement.radWindow){b=window.frameElement.radWindow;}}}catch(a){}return b;}function CloseRadWindow(){var a=GetRadWindow();if(a!=null){a.Close();}}function CloseAndCancelRadWindow(){var b=GetRadWindow();if(b!=null){var a=new Object(); 54a.cancel=true;b.Close(a);}}function CloseRadWindowParent(){var a=parent.GetRadWindow();if(a!==null&&a.BrowserWindow!==null){a.close();}else{CloseRadWindow();}}function RefreshRadWindowParent(e,c){var b=GetRadWindow();if(b===null){b=parent.GetRadWindow();}var d;if(b!==null&&b.BrowserWindow!==null){d=b.BrowserWindow.location.href;if(e!==undefined&&c!==undefined){d=AppendQuerystringParameter(d,e,c);}b.BrowserWindow.location.href=d;}else{try{d=document.location.href;if(e!==undefined&&c!==undefined){d=AppendQuerystringParameter(d,e,c);}document.location.href=d;}catch(a){}}}function AppendQuerystringParameter(f,c,a){if(c===null||a===null){return f;}var h=f.indexOf("?");if(h>0){var d=f.substring(h+1).split("&");var e=new Array(d.length);var j=false;for(var b=0;b<d.length;b++){e[b]=d[b].split("=");if(e[b][0]===c){e[b][1]=a;j=true;}}if(!j){e.push(new Array(2));e[e.length-1][0]=c;e[e.length-1][1]=a;}var g=f.substring(0,h+1)+e[0][0]+"="+e[0][1];for(var b=1;b<e.length;b++){g+="&"+e[b][0]+"="+e[b][1];}return g;}else{return f+"?"+c+"="+a;}}function RemoveQuerystringParameter(e,a){var g=e.split("?")[0],d,c=[],b=(e.indexOf("?")!==-1)?e.split("?")[1]:"";if(b!==""){c=b.split("&");for(var f=c.length-1;f>=0;f-=1){d=c[f].split("=")[0];if(d===a){c.splice(f,1);}}if(c.length){g=g+"?"+c.join("&");}}return g;}var ContactProxyButtonControlID_Enabled;var ContactProxyButtonControlID_Disabled;function MasterPage_SetupProxy(a,b){ContactProxyButtonControlID_Enabled=a;ContactProxyButtonControlID_Disabled=b;}function RefreshProxyStatus(a){var b=document.getElementById(a);if(b!=null){_RefreshPanelStatus(ContactProxyButtonControlID_Enabled,ContactProxyButtonControlID_Disabled,b.value.toLowerCase());}}function _RefreshPanelStatus(a,b,d){var c=document.getElementById(a);var e=document.getElementById(b);if(c!=null&&e!=null){if(d.toString().toUpperCase()!="TRUE"){c.style.display="inline";e.style.display="none";}else{c.style.display="none";e.style.display="inline";}}}(function(b){Sys.Application.add_load(e); 55var c="";b("body").on("change",function(j){var h=b("[id*='lastClickedElementId']").eq(0);if(h.length>0){d(j,h);}});b("body").on("click",function(j){var h=b("[id*='lastClickedElementId']").eq(0);if(h.length>0){d(j,h);}});function e(){if(jQuery(".AsiMessage").length>0&&jQuery(".AsiMessage.AsiSystem").length==0){return;}var h=b("[id*='lastClickedElementId']").eq(0);if(!h.length>0){return;}var l=null;var m=h.val().split("-");if(m.length<2){return;}try{if(m[0]=="id"){l=a(m[1]);}if(m[0]=="name"){l=f(m[1]);}if(m[0]=="href"){l=g(m[1]);}if(l&&l.length>0){var j=m[1];if(j&&(j.indexOf("CancelRegistrationButton")>-1||j.indexOf("RegisterButton")>-1||j.indexOf("RegistrationOptionsDiv")>-1||j.indexOf("RegisteredAttendeesDiv")>-1||j.indexOf("PromotionManager")>
55-1||j==="EventProgramAnchor")){smoothScrollWithFade(j);}else{setTimeout(function(){l.trigger("focus");},100);}h.val("");}}catch(k){}}function a(h){c="findById:Id search";var j=b("#"+h);if(!j||j.length==0){c="findById:href search";j=b("a[href*='"+h+"']");}return j;}function f(h){c="findByName:Name search";var j=b("input[name='"+h+"']");if(!j||j.length==0){c="findByName:href search";j=b("a[href*='"+h+"']");if(!j||j.length==0){c="findByName:id search";j=b("#"+h);}}return j;}function g(h){c="findByAnchor:href search";var j=b("a[href*='"+h+"']");if(!j||j.length==0){c="findByAnchor:name search";j=b("input[name='"+h+"']");if(!j||j.length==0){c="findByAnchor:id search";j=b("#"+h);}if(j&&j.length>0){c="findByAnchor:anchor search";j=j.siblings("a").eq(0);}}return j;}function d(j,h){if(h.val().split("|").length>2){return;}h.val("");var k=b(j.target);if(k.attr("id")&&k.attr("id").length>0){h.val("id-"+k.attr("id"));}else{if(k.attr("href")&&k.attr("href").length>0){var l=k.attr("href").split("'");if(l.length>1){h.val("href-"+l[1]);}}else{if(k.attr("name")&&k.attr("name").length>0){h.val("name-"+k.attr("name"));}}}}})(jQuery);function updateCartItemCount(){var a=jQuery(".cartSprite");if(a==null){return;}if(IsUpdating){return;}IsUpdating=true; 56var b=a.parent().parent();if(b!=null){jQuery.ajax({type:"POST",url:gWebRoot+"/WebMethodUtilities.aspx/GetCartItemCount",data:"{}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(d){if(d.d!=""&&d.d!=null){var c=d.d;if(c!=null){a.parent().remove();b.append(c);}}IsUpdating=false;},async:true});}}function GetAvailableHeight(a){var b;if(jQuery(window).height()!=null){b=jQuery(window).height();}else{return 500;}var c;if(a.length>0){for(c=0;c<a.length;c++){b-=parseInt(jQuery(a[c]).outerHeight(true))||0;}}var d=jQuery('[data-height-offset="true"]');if(d.length>0){for(c=0;c<jQuery('[data-height-offset="true"]').length;c++){b-=jQuery(d[c]).outerHeight(true);}}else{b-=parseInt(jQuery("#hd").outerHeight(true))||0;b-=parseInt(jQuery("#ft").outerHeight(true))||0;b-=parseInt(jQuery("#masterFooterPush").outerHeight(true))||0;b-=parseInt(jQuery(".ButtonPanel").outerHeight(true))||0;}return b;}function ElementScrollTo(a,b){if(a!=null&&a!="undefined"&&b!=null&&b!="undefined"){$telerik.$(document).ready(function(){setTimeout(function(){var c=localStorage.getItem(b);if(c!=null&&c>125){jQuery(a).animate({scrollTop:c},"fast");}localStorage.removeItem(b);},400);});}}function SetElementScrollPosition(a,b){if(a!=null&&a!="undefined"&&b!=null&&b!="undefined"){localStorage.setItem(b,jQuery(a).scrollTop());}}function openBootstrapModal(b){var a=document.getElementById("ContentFrame");var c=jQuery("#BootstrapModal");if(a&&c&&b!=null&&b.toLowerCase().indexOf("http")>-1){a.src=b;a.addEventListener("load",function(){c.modal("show");});}else{console.error("Asi: Invalid modal request");}}function smoothScrollWithFade(c){var b=document.body;var a=document.getElementById(c);if(!a){return;}b.style.transition="opacity 0.5s";b.style.opacity=0;setTimeout(function(){var d=a.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:d});setTimeout(function(){b.style.opacity=1;},100);},100);}if(typeof(Type)!=="undefined"){Type.registerNamespace("AsiWebControls");}AsiWebControls.MatchTextBehavior=function(b,c,a,d){this._targetControlID=b;this._sourceControlClientID=c;this._enabled=a;this._validCharsRegularExpression=d;this._sourceControl=null;this._targetControl=null;};AsiWebControls.MatchTextBehavior.prototype={initialize:function(){if(this._enabled){var a=$get(this._sourceControlClientID);this._sourceControl=a;var b=this;$addHandler(a,"keyup",function(){b._onkeyup();});}},_onkeyup:function(){if(this._targetControl==null){this._targetControl=$get(this._targetControlID);}if(this._sourceControl){var text=this._sourceControl.value;if(this._validCharsRegularExpression&&this._validCharsRegularExpression.length>0){text=eval("text.replace(/"+this._validCharsRegularExpression+"/g, '-')");}this._targetControl.value=text;}}};if(typeof(Type)!=="undefined"){AsiWebControls.MatchTextBehavior.registerClass("AsiWebControls.MatchTextBehavior");}addLoadEvent(NavigationList_Init);var NavigationList_LinkIndex=0;var NavigationList_SelectedNode=null;var NavigationList_NavControlId=null;var NavigationList_NavControl=null;function NavigationList_Init(){NavigationList_NavControl=document.getElementById(NavigationList_NavControlId);if(NavigationList_NavControl!=null){var b=NavigationList_NavControl.getElementsByTagName("a");for(var a=0;a<b.length;a++){if(b[a].id.substr(b[a].id.length-1,1)=="i"){b[a].removeAttribute("href");b[a].removeAttribute("onclick");}else{NavigationList_ConfigureAnchor(b[a]);}}}}var NavigationList_FirstTime=true;var NavigationList_NodeClientClick=null;var NavigationList_NodeClientMouseOver=null;var NavigationList_NodeClientMouseOut=null;function NavigationList_ConfigureAnchor(a){if(a.id.substr(NavigationList_NavControlId.length,1)=="n"){return;}if(NavigationList_FirstTime){NavigationList_SelectedNode=getParent(getParent(getParent(getParent(a))));NavigationList_FirstTime=false;}if(NavigationList_NodeClientClick!=null||NavigationList_NodeClientClick!=""){a.onclick=NavigationList_NodeClientClick;}if(NavigationList_NodeClientMouseOver!=null||NavigationList_NodeClientMouseOver!=""){a.onmouseover=NavigationList_NodeClientMouseOver;}if(NavigationList_NodeClientMouseOut!=null||NavigationList_NodeClientMouseOut!=""){a.onmouseout=NavigationList_NodeClientMouseOut;}a.linkindex=NavigationList_LinkIndex;NavigationList_LinkIndex++;}addLoadEvent(PanelTemplateControl_Init);addLoadEvent(FixCollapsedExtender);addLoadEvent(SetArrowOrientation);addLoadEvent(addKeyboardNavToPanel);var PanelTemplateControls=new Array();
56function FixCollapsedExtender(){if(PanelTemplateControls&&PanelTemplateControls!=null&&PanelTemplateControls.length>0){for(var a=0;a<PanelTemplateControls.length;a++){if(PanelTemplateControls[a]!=null){var b=$find(PanelTemplateControls[a].id+"_CollapsiblePanelExtender");if(b!=null&&!b.get_Collapsed()){try{b._doOpen();}catch(c){}}}}}}function PanelTemplateControl_Init(){if(PanelTemplateControls&&PanelTemplateControls!=null&&PanelTemplateControls.length>0){for(var a=0;a<PanelTemplateControls.length;a++){if(PanelTemplateControls[a]!=null){var b=PanelTemplateControls[a].onfocus;if(b!=null){PanelTemplateControls[a].onfocus=function(c){b(c);PanelTemplateControl_Focus(c);};}else{PanelTemplateControls[a].onfocus=PanelTemplateControl_Focus;}}}setTimeout("PanelTemplateControl_FixInitialHeight()",500);}}function PanelTemplateControl_Focus(a){var b=eventSource(a);PanelTemplateControl_Focus2(b);}function PanelTemplateControl_Focus2(a){var b=$find(a.id+"_CollapsiblePanelExtender");if(b!=null&&b.get_Collapsed()){b._doOpen();}}function PanelTemplateControl_FixInitialHeight(){try{if(PanelTemplateControls!=null){for(var a=0;a<PanelTemplateControls.length;a++){var c=null;if(PanelTemplateControls[a].firstChild!=null&&PanelTemplateControls[a].firstChild.tagName!=null){if(PanelTemplateControls[a].firstChild.tagName.toUpperCase()=="FIELDSET"){c=PanelTemplateControls[a].firstChild.childNodes[2];}else{c=PanelTemplateControls[a].childNodes[1];}}if(c!=null){if(c.style.height!="1px"&&c.style.height!="0"){c.style.height="auto";}}else{}}}}catch(b){}finally{if(window.PanelTemplateControl_AfterFixInitalHeight){setTimeout("window.PanelTemplateControl_AfterFixInitalHeight();",500);}}}if(typeof(Sys)!=="undefined"){Sys.Application.notifyScriptLoaded();}function SetArrowOrientation(){var a=document.getElementsByClassName("PanelHead Distinguish Collapsible"); 57for(i=0;i<a.length;i++){a[i].addEventListener("click",function(){this.classList.toggle("open");});if(a[i].nextSibling.style.display!=="none"){a[i].classList.add("open");}}}function addKeyboardNavToPanel(){addKeyboardNav("PanelHead Distinguish Collapsible");}Sys.Application.add_load(PanelTemplateControl2_AttachEvents);function PanelTemplateControl2_AttachEvents(){PanelTemplateControl2_AttachExpandEvent();PanelTemplateControl2_AttachCollapseEvent();}function PanelTemplateControl2_AttachExpandEvent(){jQuery(".panel-collapse").on("shown.bs.collapse",function(a){var b=a.currentTarget.parentElement;if(typeof b=="undefined"||b===null){return;}var d=a.currentTarget.getAttribute("data-expandedText");if(typeof d!="undefined"&&d!==null){jQuery(".panel-heading-collapse-text",jQuery(b)).text(d);}var c=a.currentTarget.getAttribute("data-expandedImage");if(typeof c!="undefined"&&c!==null&&c!=""){jQuery(".panel-heading-collapse-img",jQuery(b)).attr("src",c);}else{jQuery(".panel-heading-collapse",jQuery(b)).removeClass("sysicon-collapsed");jQuery(".panel-heading-collapse",jQuery(b)).addClass("sysicon-expanded");}});}function PanelTemplateControl2_AttachCollapseEvent(){jQuery(".panel-collapse").on("hidden.bs.collapse",function(a){var b=a.currentTarget.parentElement;if(typeof b=="undefined"||b===null){return;}var d=a.currentTarget.getAttribute("data-collapsedText");if(typeof d!="undefined"&&d!==null){jQuery(".panel-heading-collapse-text",jQuery(b)).text(d);}var c=a.currentTarget.getAttribute("data-collapsedImage");if(typeof c!="undefined"&&c!==null&&c!=""){jQuery(".panel-heading-collapse-img",jQuery(b)).attr("src",c);}else{jQuery(".panel-heading-collapse",jQuery(b)).addClass("sysicon-collapsed");jQuery(".panel-heading-collapse",jQuery(b)).removeClass("sysicon-expanded");}});}function SimpleContentEditorClientLoad(a,d){var b='[id*="'+a._element.dataset.contentitemkey.replace(/-/g,"")+'_Panel_"]';var c=document.querySelector(b);if(c!=null){c.style.display="none";}var e=a.get_contentAreaElement();if(e!=null){e.removeAttribute("title");}HTMLEditorSetupInsertContentLink("false");$telerik.$(a.get_contentArea()).bind("drop",function(f){$telerik.cancelRawEvent(f);});Telerik.Web.UI.Editor.CommandList.UndoAll=function(h,g,f){if(g!=null){g.set_html(g._initialContent);setTimeout(function(){var i=g.get_toolAdapter().get_window();i.hide();},0);
57setTimeout(function(){ContentPublishPanel(g,f);},0);}};Telerik.Web.UI.Editor.CommandList.Done=function(h,g,f){if(g!=null){setTimeout(function(){var i=g.get_toolAdapter().get_window();i.hide();},0);}};editorContentsModified(a._element,function(){ContentModified(a,d);});}function SimpleContentEditorActivate(a){var e=a.id.replace("_ActionEditButton","_SimpleRadEditor1");var c='[id*="'+e+'_contentDiv"]';var b=$find(e);if(b!=null){b.setFocus();b.set_html(b.get_html());}if(c!=null){var d=document.querySelector(c);d.focus();}}function SimpleContentEditorCommandExecuted(a,b){if(b._commandName!="InserttTabMozilla"){setTimeout(function(){ContentModified(a,b);},100);}}function OnClientSelectionChange(a,c){var e=a.get_commandsManager();if(e!=null){var b=e.get_commands();if(b.length>0){for(var d=0;d<b.length;d++){if(e.get_commands()[d]._title=="Delete"){ContentModified(a,c);break;}}}}}function SimpleContentEditorDomChange(a,b){if(b._commandName=="LinkManager"){setTimeout(function(){ContentModified(a,b);},100);}}function SimpleContentEditorPasteHtml(a,b){setTimeout(function(){ContentModified(a,b);},100);}function SimpleContentEditorIsDirty(c){var b=false;if(c!=null){var d=c._element.dataset.contentitemkey;var a=localStorage.getItem("editorIsDirtyList");if(a!=null&&a.includes(d)){b=true;}}return b;}var heightUpdated=0;function ContentPublishPanel(a,i){var f=document.getElementById("lastClickedElementId").value;if(f.includes("_PublishContentRecordButton")||f.includes("_UpdatePublishStatusButton")||f.includes("_SaveAllContentItemsButton")){localStorage.removeItem("editorIsDirtyList"); 58}if(i._commandName!="Done"&&SimpleContentEditorIsDirty(a)){var h=document.querySelector("[id$=ContentRecordPublishPanel]");if(h!=null){if(!h.classList.contains("d-none")){heightUpdated=1;}var j=h.classList;while(j.length>0){j.remove(j.item(0));}h.classList.add("ContentRecordPublishPanel");h.classList.add("AsiWarning");h.classList.add("AsiWarningIcon");setTimeout(function(){if(heightUpdated==0){heightUpdated++;var k="+="+jQuery(".ContentRecordPublishPanel").outerHeight(true)+"px";jQuery(".reInlineEditor").css("top",k);}},100);var b=document.querySelector("[id$=PublishMessageLabel]");if(b!=null){b.innerHTML="This page has unsaved changes.";}var e=document.querySelector("[id$=PublishContentRecordButton]");if(e!=null){e.classList.add("d-none");}var d=document.querySelector("[id$=DiscardChangesButton]");if(d!=null){d.classList.remove("d-none");}var c=document.querySelector("[id$=SaveAllContentItemsButton]");if(c!=null){c.classList.remove("d-none");}var g=document.querySelector("[id$=SavePublishContentItemsButton]");if(g!=null){g.classList.remove("d-none");}}}}var editorContentsModified=function(b,a){document.getElementById(b.id).addEventListener("input",function(){a();});};function ContentModified(a,c){if(a._initialContent!=a.get_html(true)){var d=a._element.dataset.contentitemkey;var b=localStorage.getItem("editorIsDirtyList");if(b==null){localStorage.setItem("editorIsDirtyList",d);}else{b=localStorage.getItem("editorIsDirtyList");if(!b.includes(d)){d=b.concat(" ",d);localStorage.setItem("editorIsDirtyList",d);}}setTimeout(function(){ContentPublishPanel(a,c);},0);}}window.onbeforeunload=function(){localStorage.removeItem("editorIsDirtyList");};function SimpleSearchFieldProperties(){this.WatermarkClass="Watermarked";this.WatermarkText="Search";this.SearchTarget=null;}function SimpleSearchField_OnFocus(d,a){var b=document.getElementById(d);if(b==null){return;}if(hasClass(b,a.WatermarkClass)){removeClass(b,a.WatermarkClass);b.value="";if(b.setSelectionRange){b.setSelectionRange(0,0);}else{if(b.createTextRange){var c=b.createTextRange();c.moveStart("character",0);c.collapse();c.select();}}}}function SimpleSearchField_OnBlur(c,a){var b=document.getElementById(c);if(b==null){return;}if(b.value==""&&!hasClass(b,a.WatermarkClass)){addClass(b,a.WatermarkClass);b.value=a.WatermarkText;}}function SimpleSearchField_ExecuteSearch(c,a){var b=document.getElementById(c);if(b==null){return;}if(hasClass(b,a.WatermarkClass)){return;}var d=a.SearchTarget;if(d.indexOf("?")>0){d+="&";}else{d+="?";}d+="SearchTerms="+encodeURIComponent(b.value);location.href=d;}addLoadEvent(SmartControls_Init);var defaultSmartControlInput=null;addLoadEvent(SmartControls_AsyncInit);function SmartControls_AsyncInit(){var a=Sys.WebForms.PageRequestManager.getInstance();if(a!=null){a.add_endRequest(SmartControls_AsyncInit2);}}function SmartControls_AsyncInit2(a,b){setTimeout("SmartControls_Init(true)",750);}
58function SmartControls_Init(h){if(typeof(DefaultPropertySmartControls)!="undefined"&&DefaultPropertySmartControls&&DefaultPropertySmartControls!=null&&DefaultPropertySmartControls.length>0){var d=$(DefaultPropertySmartControls[0]);var c=false;var k=d.getElementsByTagName("input");for(var f=0;f<k.length;f++){k[f].setAttribute("smartControlId",d.id);defaultSmartControlInput=k[f];if(c){c=true;}}if(!c){var b=d.getElementsByTagName("select");for(var f=0;f<b.length;f++){b[f].setAttribute("smartControlId",d.id);defaultSmartControlInput=b[f];if(!c){c=true;}}}if(!c){var g=d.getElementsByTagName("textarea");for(var f=0;f<g.length;f++){g[f].setAttribute("smartControlId",d.id);defaultSmartControlInput=g[f];if(!c){c=true;}}}if(!c){var i=d.getElementsByTagName("a");for(var f=0;f<i.length;f++){i[f].setAttribute("smartControlId",d.id);defaultSmartControlInput=i[f];}}var e=getParent(d);if(e.tagName!=null&&e.tagName.toLowerCase()=="a"){e.setAttribute("smartControlId",d.id);smartControlInputs.push(e);}if(!gIsPostBack&&!h&&defaultSmartControlInput!=null&&!defaultSmartControlInput.disabled){try{window.setTimeout("defaultSmartControlInput.focus()",500);}catch(a){}}}}function SmartControl_GetSmartControlContainer(a){if(a.getAttribute("smartControlId")!=null){return $(a.getAttribute("smartControlId"));}if(a==null||a.tagName.toLowerCase()=="body"){return null;}if(a.tagName.toLowerCase()=="div"&&a.className.match("PanelField")!=null&&a.className.match("PanelFieldValue")==null){return a;}return SmartControl_GetSmartControlContainer(getParent(a));}function SmartControl_GetPanelTemplateControlContainer(a){if(a.getAttribute("data-ptcId")!=null){return $(a.getAttribute("data-ptcId")); 59}}function SmartControl_GetPrincipalControl(a){if(a!=null){var b=a.getAttribute("data-inputId");if(b!=null&&b.length>0){return $(a.id+"_"+b);}}return a;}function SmartControl_LongClientValidation(a,b){b.IsValid=false;inVal=b.Value;if(inVal.substr(0,15)=="922337203685477"){lastDigits=inVal.substr(15,4);if(lastDigits<=5807){b.IsValid=true;}}else{if(inVal.substr(0,16)=="-922337203685477"){lastDigits=inVal.substr(16,4);if(lastDigits<=5808){b.IsValid=true;}}else{if(inVal>=-922337203685477&&inVal<=922337203685477){b.IsValid=true;}}}}if(typeof(Sys)!=="undefined"){Sys.Application.notifyScriptLoaded();}var IMIS_TAG_LABEL="asiweb:BusinessLabel";var IMIS_TAG_HYPERLINK="asiweb:BusinessHyperLink";var IMIS_TAG_IMAGE="asiweb:BusinessStyledImage";var IMIS_TAG_IFBLOCK="asiweb:AtomPanelIfBlock";var IMIS_TAG_IFBLOCK_BODY="asiweb:AtomPanelIfBody";var IMIS_TAG_IFBLOCK_ELSE="asiweb:AtomPanelElseBody";var theEditor;function setImisAttribute(a,b,c){if(c!=null&&c.toString().length>0){a.setAttribute(b,c);}else{if(a.getAttribute(b)!=null){a.removeAttribute(b);}}}function getImisScopeElement(a,c){if(c==null||c.toLowerCase()==a.tagName.toLowerCase()){return a;}if(a.childNodes==null||a.childNodes.length==0){return null;}for(var d=0;d<a.childNodes.length;d++){var b=a.childNodes[d];var e=getImisScopeElement(b,c);if(e!=null){return e;}}return null;}function isArray(a){if(a.constructor.toString().indexOf("Array")==-1){return false;}else{return true;}}function extendSelectionIfNecessary(h){if(h.getSelectionHtml()==null){return null;}if(h.get_document().selection==null){return h.getSelectionHtml();}var b=h.get_document().selection.createRange();if(b==null){return null;}var c=b.parentElement();var d=b.duplicate();d.moveToElementText(c);d.select();if(c.childNodes.length==1){var a=c.childNodes[0];if(a.nodeName!="#text"){b.moveToElementText(c);b.select();}}else{if(c.childNodes.length>1){var g;var e;var f;for(g=0;g<c.childNodes.length;++g){a=c.childNodes[g];if(a.nodeName!="#text"){d=b.duplicate();d.moveToElementText(a);e=b.compareEndPoints("StartToStart",d);if(e==1){f=b.compareEndPoints("StartToEnd",d);if(f<1){b.setEndPoint("StartToStart",d);}}else{break;}}}for(g=0;g<c.childNodes.length;++g){a=c.childNodes[g];if(a.nodeName!="#text"){d=b.duplicate();d.moveToElementText(a);e=b.compareEndPoints("EndToStart",d);if(e==1){f=b.compareEndPoints("EndToEnd",d);if(f==-1){b.setEndPoint("EndToEnd",d);}}else{break;}}}b.select();}}return b;}
59function findAncestorElement(a,d){var c;if(isArray(d)){for(var e=0;e<d.length;++e){d[e]=d[e].toLowerCase();}c=function(f){return jQuery.inArray(f,d)>-1;};}else{c=function(f){return d==null||d.toLowerCase()==b.tagName.toLowerCase(); 60};}var b=a;while(b!=null){if(b.tagName==null){break;}if(c(b.tagName.toLowerCase())){return b;}b=b.parentNode;}return null;}function createImisScopeElement(f,e,d){var g=f.createElement(e);var b="defaultId";if(d!=null&&d.length>0){b=d;}else{for(var a=1;a<200;a++){b=e+(f.getElementsByTagName(e).length+a);b=b.replace(/:/gi,"_");var c=f.getElementById(b)==null?true:false;if(c){break;}}}g.id=b;g.setAttribute("runat","server");return g;}function createLabelElement(c,d,b){var a=createImisScopeElement(c,IMIS_TAG_LABEL,d);updateLabelElement(a,b);return a;}function updateLabelElement(b,a){setImisAttribute(b,"BoundPropertyName",a.BoundPropertyName);setImisAttribute(b,"DisplayMask",a.DisplayMask);setImisAttribute(b,"DisplayValue",a.DisplayValue);b.innerHTML="["+a.BoundPropertyCaption+"]";}function labelToolCallbackFunction(a,e){if(e==null){return;}var b=theEditor.getSelection();var c=b.GetParentElement();var d=findAncestorElement(c,IMIS_TAG_LABEL);if(d==null){d=createLabelElement(theEditor.get_document(),null,e);theEditor.pasteHtml(" "+d.outerHTML+" ");}else{updateLabelElement(d,e);}}function createLinkElement(c,d,a){var b=createImisScopeElement(c,IMIS_TAG_HYPERLINK,d);b.setAttribute("NavigateAutomatically","true");b.setAttribute("IgnoreChildren","true");updateLinkElement(b,a);return b;}function updateLinkElement(a,b){setImisAttribute(a,"BoundPropertyName",b.BoundPropertyName);setImisAttribute(a,"Text",b.Text);setImisAttribute(a,"DisplayMask",b.DisplayMask);var c=(b.Text!=null&&b.Text.length>0)?b.Text:"["+b.BoundPropertyCaption+"]";a.innerHTML="<a href=''>"+c+"</a>";}function linkToolCallbackFunction(c,b){if(b==null){return;}var a=theEditor.getSelection();var e=a.GetParentElement();var f=findAncestorElement(e,IMIS_TAG_HYPERLINK);if(f==null){var d=findAncestorElement(e,IMIS_TAG_LABEL);if(d!=null){f=createLinkElement(theEditor.get_document(),null,b);d.parentNode.replaceChild(f,d);}else{f=createLinkElement(theEditor.get_document(),null,b);theEditor.pasteHtml(" "+f.outerHTML+" ");}}else{updateLinkElement(f,b); 61}}function createImageElement(d,a,c){var b=createImisScopeElement(d,IMIS_TAG_IMAGE,a);updateImageElement(b,c);return b;}function updateImageElement(a,b){setImisAttribute(a,"BoundPropertyName",b.BoundPropertyName);setImisAttribute(a,"class","contentTaggedListImageThumbnail");setImisAttribute(a,"ToolTip","Featured Image");}function imageToolCallbackFunction(c,b){if(b==null){return;}var a=theEditor.getSelection();var e=a.GetParentElement();var f=findAncestorElement(e,IMIS_TAG_IMAGE);if(f==null){var d=findAncestorElement(e,IMIS_TAG_LABEL);if(d!=null){f=createImageElement(theEditor.get_document(),null,b);d.parentNode.replaceChild(f,d);}else{f=createImageElement(theEditor.get_document(),null,b);theEditor.pasteHtml(" "+f.outerHTML+" ");}}else{updateImageElement(f,b);}}function createIfBlock(f,d,e,a,g){var h=createImisScopeElement(f,IMIS_TAG_IFBLOCK,d);var c="";if(g==null||!g){c+="<span class='IfBlockStart'>{</span>";}c+="<"+IMIS_TAG_IFBLOCK_BODY+" runat='server'>";var b="</"+IMIS_TAG_IFBLOCK_BODY+">";if(g==null||!g){b+="<span class='IfBlockEnd'>}</span>";}h.innerHTML=c+a+b;updateIfBlock(h,e);return h;}function updateIfBlock(a,b){setImisAttribute(a,"TestCompareValue1",b.TestCompareValue1);setImisAttribute(a,"TestCompareValue2",b.TestCompareValue2);setImisAttribute(a,"TestCompareType",b.TestCompareType);setImisAttribute(a,"TestDataType",b.TestDataType);}function conditionalDisplayCallbackFunction(a,e){if(e==null||e.cancel===true){return;}var c=theEditor.getSelection();var d=c.GetParentElement();var b=findAncestorElement(d,IMIS_TAG_IFBLOCK);if(b==null){b=createIfBlock(theEditor.get_document(),null,e,c.GetHtmlText());theEditor.pasteHtml(" "+b.outerHTML+" ");}else{updateIfBlock(b,e);}}if(typeof(Sys)!=="undefined"){Sys.Application.notifyScriptLoaded();}var CVM_SOURCEOPTION_LITERAL=new Array("literal","None (Static Text)");var CVM_SOURCEOPTION_PROPERTY=new Array("panel","Property");var CVM_SOURCEOPTION_CONTEXT=new Array("currentcontext","Current Context");var CVM_SOURCEOPTION_REQUEST=new Array("request","Current Request");
62var CVM_SOURCEOPTION_SESSION=new Array("session","Current Session");var CVM_SOURCEOPTION_SYSTEMCONFIG=new Array("systemconfig","System Configuration");var CVM_SOURCEOPTIONS=new Array(CVM_SOURCEOPTION_LITERAL,CVM_SOURCEOPTION_PROPERTY,CVM_SOURCEOPTION_CONTEXT,CVM_SOURCEOPTION_REQUEST,CVM_SOURCEOPTION_SESSION,CVM_SOURCEOPTION_SYSTEMCONFIG);function CompareValueManager(c,b){this.Source="literal";this.Property=null;this.Value=null;this.StaticValue=c!=null?c:"";if(b!=null){this.StaticValueControlID=b;this.StaticValueControl=$get(b);this.SourceControl=$get(b+"Source");this.PropertyControl=$get(b+"PropertySelect");this.ValueControl=$get(b+"Text");}if(c!=null&&c.length>0&&c.substr(0,2)=="$("){var a=c.substring(2,c.length-1).split(".");this.Source=a[0];if(a[0]=="panel"){this.Property=a[1];}else{this.Value=a[1];}}this.initialize=function(){for(var f=0;f<CVM_SOURCEOPTIONS.length;f++){var e=this.SourceControl.ownerDocument.createElement("option");e.value=CVM_SOURCEOPTIONS[f][0];e.text=CVM_SOURCEOPTIONS[f][1];try{this.SourceControl.add(e,null);}catch(d){this.SourceControl.add(e);}}this.StaticValueControl.value=this.StaticValue;this.SourceControl.value=this.Source;this.PropertyControl.value=this.Property;this.ValueControl.value=this.Value!=null?this.Value:"";this.SourceControl.onchange=Anything_Changed;this.SourceControl.CompareValueManager=this;this.PropertyControl.onchange=Anything_Changed;this.PropertyControl.CompareValueManager=this;this.ValueControl.onkeyup=Anything_Changed;this.ValueControl.CompareValueManager=this;this.updateDisplay();};this.updateDisplay=function(){this.StaticValueControl.style.display="none";this.PropertyControl.style.display="none";this.ValueControl.style.display="none";switch(this.Source){case"literal":this.StaticValueControl.style.display="inline";break;case"panel":this.PropertyControl.style.display="inline";break;default:this.ValueControl.style.display="inline";break;}};this.updateStaticValue=function(){var d="";if(this.Source!="literal"){d="$("+this.Source+"."; 63if(this.Source=="panel"){d+=this.Property;}else{d+=this.Value;}d+=")";}this.StaticValue=d;};this.update=function(){this.StaticValue=this.StaticValueControl.value;this.Source=this.SourceControl.value;this.Property=this.PropertyControl.value;this.Value=this.ValueControl.value;this.updateStaticValue();this.StaticValueControl.value=this.StaticValue;this.updateDisplay();};}function Anything_Changed(a){var b=eventSource(a);b.CompareValueManager.update();return false;}function atvSelect(a){var c=getParent(a);var d=document.getElementById(c.spanId);var b=getParent(c);if(!c.navigateurl||c.navigateurl.length==0){return;}while(b.tagName!="treeview"&&b.tagName!="body"){b=getParent(b);}if(b.selectedIndex>=0){var e=document.getElementById(b.id+"Node"+b.selectedIndex);e.selected="false";document.getElementById(e.spanId).className=document.getElementById(e.spanId).defaultClass;b.selectedIndex="-1";}b.selectedIndex=c.index;document.getElementById(c.treeviewId+"SelectedIndex").value=c.index;document.getElementById(c.treeviewId+"SelectedKey").value=c.key;c.selected="true";if(d.selectedClass!=""){d.className=d.selectedClass;}if(c.target&&c.target.length>0){document.frames(c.target).location=c.navigateurl;}else{document.location=c.navigateurl;}}function atvOpenClose(a){var b=getParent(a);var c=document.getElementById(b.treeviewId+"OpenNodes");if(a.state=="open"){for(i=0;i<b.children.length;i++){if(b.children[i].tagName=="treenode"){b.children[i].style.display="none";}}a.state="close";a.src=a.src.replace("minus","plus");var d=c.value.split(",");for(i=0;i<d.length;i++){if(d[i]==b.index){d.splice(i,1);break;}}c.value=d.join();}else{if(a.state=="close"){for(i=0;i<b.children.length;i++){if(b.children[i].tagName=="treenode"){b.children[i].style.display="block";}}a.state="open";a.src=a.src.replace("plus","minus");if(c.value.length>0){c.value=c.value+",";}c.value=c.value+b.index;}}}function atvSetStyle(a,b){var d=getParent(a);var c=document.getElementById(d.spanId);var e;if(d.selected=="false"){if(b=="HoverOut"&&c.defaultClass!=""){c.className=c.defaultClass;}else{if(b=="Hover"&&c.hoverClass!=""){c.className=c.hoverClass;}}}}+function(a){var b=function(g,f){this.$element=a(g);this.$indicators=this.$element.find(".carousel-indicators");this.options=f;this.paused=null;this.sliding=null;this.interval=null;this.$active=null;this.$items=null;
63this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this));this.options.pause=="hover"&&!("ontouchstart" in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this));};b.VERSION="3.4.1";b.TRANSITION_DURATION=600;b.DEFAULTS={interval:5000,pause:"hover",wrap:true,keyboard:true};b.prototype.keydown=function(f){if(/input|textarea/i.test(f.target.tagName)){return;}switch(f.which){case 37:this.prev();break;case 39:this.next();break;default:return;}f.preventDefault();};b.prototype.cycle=function(f){f||(this.paused=false);this.interval&&clearInterval(this.interval);this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval));return this;};b.prototype.getItemIndex=function(f){this.$items=f.parent().children(".item");return this.$items.index(f||this.$active);};b.prototype.getItemForDirection=function(k,i){var g=this.getItemIndex(i);var f=(k=="prev"&&g===0)||(k=="next"&&g==(this.$items.length-1));if(f&&!this.options.wrap){return i;}var h=k=="prev"?-1:1;var j=(g+h)%this.$items.length;return this.$items.eq(j);};b.prototype.to=function(h){var g=this;var f=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(h>(this.$items.length-1)||h<0){return;}if(this.sliding){return this.$element.one("slid.bs.carousel",function(){g.to(h);});}if(f==h){return this.pause().cycle();}return this.slide(h>f?"next":"prev",this.$items.eq(h));};b.prototype.pause=function(f){f||(this.paused=true);if(this.$element.find(".next, .prev").length&&a.support.transition){this.$element.trigger(a.support.transition.end);this.cycle(true);}this.interval=clearInterval(this.interval);return this;};b.prototype.next=function(){if(this.sliding){return; 64}return this.slide("next");};b.prototype.prev=function(){if(this.sliding){return;}return this.slide("prev");};b.prototype.slide=function(n,l){var p=this.$element.find(".item.active");var g=l||this.getItemForDirection(n,p);var h=this.interval;var o=n=="next"?"left":"right";var m=this;if(g.hasClass("active")){return(this.sliding=false);}var f=g[0];var j=a.Event("slide.bs.carousel",{relatedTarget:f,direction:o});this.$element.trigger(j);if(j.isDefaultPrevented()){return;}this.sliding=true;h&&this.pause();if(this.$indicators.length){this.$indicators.find(".active").removeClass("active");var i=a(this.$indicators.children()[this.getItemIndex(g)]);i&&i.addClass("active");}var k=a.Event("slid.bs.carousel",{relatedTarget:f,direction:o});if(a.support.transition&&this.$element.hasClass("slide")){g.addClass(n);if(typeof g==="object"&&g.length){g[0].offsetWidth;}p.addClass(o);g.addClass(o);p.one("bsTransitionEnd",function(){g.removeClass([n,o].join(" ")).addClass("active");p.removeClass(["active",o].join(" "));m.sliding=false;setTimeout(function(){m.$element.trigger(k);},0);}).emulateTransitionEnd(b.TRANSITION_DURATION);}else{p.removeClass("active");g.addClass("active");this.sliding=false;this.$element.trigger(k);}h&&this.cycle();return this;};function c(f){return this.each(function(){var g=a(this);var j=g.data("bs.carousel");var i=a.extend({},b.DEFAULTS,g.data(),typeof f=="object"&&f);var h=typeof f=="string"?f:i.slide;if(!j){g.data("bs.carousel",(j=new b(this,i)));}if(typeof f=="number"){j.to(f);}else{if(h){j[h]();}else{if(i.interval){j.pause().cycle();}}}});}var e=a.fn.carousel;a.fn.carousel=c;a.fn.carousel.Constructor=b;a.fn.carousel.noConflict=function(){a.fn.carousel=e;return this;};var d=function(h){var j=a(this);var f=j.attr("href");if(f){f=f.replace(/.*(?=#[^\s]+$)/,"");}var l=j.attr("data-target")||f;var i=a(document).find(l);if(!i.hasClass("carousel")){return;}var k=a.extend({},i.data(),j.data());var g=j.attr("data-slide-to");if(g){k.interval=false;}c.call(i,k);if(g){i.data("bs.carousel").to(g); 65}h.preventDefault();};a(document).on("click.bs.carousel.data-api","[data-slide]",d).on("click.bs.carousel.data-api","[data-slide-to]",d);a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var f=a(this);c.call(f,f.data());});});}(jQuery);+function(a){var e=function(g,f){this.$element=a(g);this.options=a.extend({},e.DEFAULTS,f);this.$trigger=a('[data-toggle="collapse"][href="#'+g.id+'"],[data-toggle="collapse"][data-target="#'+g.id+'"]');this.transitioning=null;if(this.options.parent){this.$parent=this.getParent();}else{this.addAriaAndCollapsedClass(this.$element,this.$trigger);}if(this.options.toggle){this.toggle();}};e.VERSION="3.4.1";e.TRANSITION_DURATION=350;e.DEFAULTS={toggle:true};e.prototype.dimension=function(){var f=this.$element.hasClass("width");return f?"width":"height";};e.prototype.show=function(){if(this.transitioning||this.$element.hasClass("in")){return;}var i;var k=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(k&&k.length){i=k.data("bs.collapse");if(i&&i.transitioning){return;}}var j=a.Event("show.bs.collapse");this.$element.trigger(j);if(j.isDefaultPrevented()){return;}if(k&&k.length){b.call(k,"hide");i||k.data("bs.collapse",null);}var h=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[h](0).attr("aria-expanded",true);this.$trigger.removeClass("collapsed").attr("aria-expanded",true);this.transitioning=1;var g=function(){this.$element.removeClass("collapsing").addClass("collapse in")[h]("");this.transitioning=0;this.$element.trigger("shown.bs.collapse");};if(!a.support.transition){return g.call(this);}var f=a.camelCase(["scroll",h].join("-"));this.$element.one("bsTransitionEnd",a.proxy(g,this)).emulateTransitionEnd(e.TRANSITION_DURATION)[h](this.$element[0][f]);};e.prototype.hide=function(){if(this.transitioning||!this.$element.hasClass("in")){return;}var g=a.Event("hide.bs.collapse");this.$element.trigger(g);if(g.isDefaultPrevented()){return;}var f=this.dimension();this.$element[f](this.$element[f]())[0].offsetHeight;this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",false);this.$trigger.addClass("collapsed").attr("aria-expanded",false);this.transitioning=1;var h=function(){this.transitioning=0; 66this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse");};if(!a.support.transition){return h.call(this);}this.$element[f](0).one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(e.TRANSITION_DURATION);};e.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]();};e.prototype.getParent=function(){return a(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(h,f){var g=a(f);this.addAriaAndCollapsedClass(d(g),g);},this)).end();};e.prototype.addAriaAndCollapsedClass=function(g,f){var h=g.hasClass("in");g.attr("aria-expanded",h);f.toggleClass("collapsed",!h).attr("aria-expanded",h);};function d(g){var h;var f=g.attr("data-target")||(h=g.attr("href"))&&h.replace(/.*(?=#[^\s]+$)/,"");return a(document).find(f);}function b(f){return this.each(function(){var g=a(this);var i=g.data("bs.collapse");var h=a.extend({},e.DEFAULTS,g.data(),typeof f=="object"&&f);if(!i&&h.toggle&&/show|hide/.test(f)){h.toggle=false;}if(!i){g.data("bs.collapse",(i=new e(this,h)));}if(typeof f=="string"){i[f]();}});}var c=a.fn.collapse;a.fn.collapse=b;a.fn.collapse.Constructor=e;a.fn.collapse.noConflict=function(){a.fn.collapse=c;return this;};a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(g){var f=a(this);if(!f.attr("data-target")){g.preventDefault();}var i=d(f);var j=i.data("bs.collapse");var h=j?"toggle":f.data();b.call(i,h);});}(jQuery);+function(b){var a=".dropdown-backdrop";var c='[data-toggle="dropdown"]';var h=function(i){b(i).on("click.bs.dropdown",this.toggle);};h.VERSION="3.4.1";function e(i){var j=i.attr("data-target");if(!j){j=i.attr("href");j=j&&/#[A-Za-z]/.test(j)&&j.replace(/.*(?=#[^\s]*$)/,"");}var k=j!=="#"?b(document).find(j):null;return k&&k.length?k:i.parent();}function d(i){if(i&&i.which===3){return;}b(a).remove();b(c).each(function(){var j=b(this);var k=e(j);var l={relatedTarget:this};if(!k.hasClass("open")){return;}if(i&&i.type=="click"&&/input|textarea/i.test(i.target.tagName)&&b.contains(k[0],i.target)){return;}k.trigger(i=b.Event("hide.bs.dropdown",l));if(i.isDefaultPrevented()){return;}
66j.attr("aria-expanded","false");k.removeClass("open").trigger(b.Event("hidden.bs.dropdown",l));});}h.prototype.toggle=function(j){var i=b(this);if(i.is(".disabled, :disabled")){return;}var k=e(i);var l=k.hasClass("open");d();if(!l){if("ontouchstart" in document.documentElement&&!k.closest(".navbar-nav").length){b(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(b(this)).on("click",d);}var m={relatedTarget:this};k.trigger(j=b.Event("show.bs.dropdown",m));if(j.isDefaultPrevented()){return;}i.trigger("focus").attr("aria-expanded","true");k.toggleClass("open").trigger(b.Event("shown.bs.dropdown",m));}return false;};h.prototype.keydown=function(k){if(!/(38|40|27|32)/.test(k.which)||/input|textarea/i.test(k.target.tagName)){return;}var o=b(this);k.preventDefault();k.stopPropagation();if(o.is(".disabled, :disabled")){return;}var i=e(o);var n=i.hasClass("open");if(!n&&k.which!=27||n&&k.which==27){if(k.which==27){i.find(c).trigger("focus");}return o.trigger("click");}var l=" li:not(.disabled):visible a";var j=i.find(".dropdown-menu"+l);if(!j.length){return;}var m=j.index(k.target);if(k.which==38&&m>0){m--;}if(k.which==40&&m<j.length-1){m++;}if(!~m){m=0;}j.eq(m).trigger("focus");};function g(i){return this.each(function(){var k=b(this);var j=k.data("bs.dropdown");if(!j){k.data("bs.dropdown",(j=new h(this))); 67}if(typeof i=="string"){j[i].call(k);}});}var f=b.fn.dropdown;b.fn.dropdown=g;b.fn.dropdown.Constructor=h;b.fn.dropdown.noConflict=function(){b.fn.dropdown=f;return this;};b(document).on("click.bs.dropdown.data-api",d).on("click.bs.dropdown.data-api",".dropdown form",function(i){i.stopPropagation();}).on("click.bs.dropdown.data-api",c,h.prototype.toggle).on("keydown.bs.dropdown.data-api",c,h.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",h.prototype.keydown);}(jQuery);+function(a){var d=function(f,e){this.options=e;this.$body=a(document.body);this.$element=a(f);this.$dialog=this.$element.find(".modal-dialog");this.$backdrop=null;this.isShown=null;this.originalBodyPad=null;this.scrollbarWidth=0;this.ignoreBackdropClick=false;this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom";if(this.options.remote){this.$element.find(".modal-content").load(this.options.remote,a.proxy(function(){this.$element.trigger("loaded.bs.modal");},this));}};d.VERSION="3.4.1";d.TRANSITION_DURATION=300;d.BACKDROP_TRANSITION_DURATION=150;d.DEFAULTS={backdrop:true,keyboard:true,show:true};d.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e);};d.prototype.show=function(g){var h=this;var f=a.Event("show.bs.modal",{relatedTarget:g});this.$element.trigger(f);if(this.isShown||f.isDefaultPrevented()){return;}this.isShown=true;this.checkScrollbar();this.setScrollbar();this.$body.addClass("modal-open");this.escape();this.resize();this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',a.proxy(this.hide,this));this.$dialog.on("mousedown.dismiss.bs.modal",function(){h.$element.one("mouseup.dismiss.bs.modal",function(i){if(a(i.target).is(h.$element)){h.ignoreBackdropClick=true;}});});this.backdrop(function(){var j=a.support.transition&&h.$element.hasClass("fade");if(!h.$element.parent().length){h.$element.appendTo(h.$body);}h.$element.show().scrollTop(0);h.adjustDialog();if(j){h.$element[0].offsetWidth;}h.$element.addClass("in");h.enforceFocus();var i=a.Event("shown.bs.modal",{relatedTarget:g});j?h.$dialog.one("bsTransitionEnd",function(){h.$element.trigger("focus").trigger(i);}).emulateTransitionEnd(d.TRANSITION_DURATION):h.$element.trigger("focus").trigger(i);});};d.prototype.hide=function(f){if(f){f.preventDefault();}f=a.Event("hide.bs.modal");this.$element.trigger(f);if(!this.isShown||f.isDefaultPrevented()){return;}this.isShown=false;this.escape();this.resize();a(document).off("focusin.bs.modal");this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"); 68this.$dialog.off("mousedown.dismiss.bs.modal");a.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",a.proxy(this.hideModal,this)).emulateTransitionEnd(d.TRANSITION_DURATION):this.hideModal();};d.prototype.enforceFocus=function(){a(document).off("focusin.bs.modal").on("focusin.bs.modal",a.proxy(function(f){if(document!==f.target&&this.$element[0]!==f.target&&!this.$element.has(f.target).length){this.$element.trigger("focus");}},this));};d.prototype.escape=function(){if(this.isShown&&this.options.keyboard){this.$element.on("key
68down.dismiss.bs.modal",a.proxy(function(f){f.which==27&&this.hide();},this));}else{if(!this.isShown){this.$element.off("keydown.dismiss.bs.modal");}}};d.prototype.resize=function(){if(this.isShown){a(window).on("resize.bs.modal",a.proxy(this.handleUpdate,this));}else{a(window).off("resize.bs.modal");}};d.prototype.hideModal=function(){var e=this;this.$element.hide();this.backdrop(function(){e.$body.removeClass("modal-open");e.resetAdjustments();e.resetScrollbar();e.$element.trigger("hidden.bs.modal");});};d.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null;};d.prototype.backdrop=function(i){var g=this;var e=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var h=a.support.transition&&e;this.$backdrop=a(document.createElement("div")).addClass("modal-backdrop "+e).appendTo(this.$body);this.$element.on("click.dismiss.bs.modal",a.proxy(function(j){if(this.ignoreBackdropClick){this.ignoreBackdropClick=false;return;}if(j.target!==j.currentTarget){return;}this.options.backdrop=="static"?this.$element[0].focus():this.hide();},this));if(h){this.$backdrop[0].offsetWidth;}this.$backdrop.addClass("in");if(!i){return;}h?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(d.BACKDROP_TRANSITION_DURATION):i();}else{if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var f=function(){g.removeBackdrop();i&&i();};a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",f).emulateTransitionEnd(d.BACKDROP_TRANSITION_DURATION):f(); 69}else{if(i){i();}}}};d.prototype.handleUpdate=function(){this.adjustDialog();};d.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""});};d.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""});};d.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var f=document.documentElement.getBoundingClientRect();e=f.right-Math.abs(f.left);}this.bodyIsOverflowing=document.body.clientWidth<e;this.scrollbarWidth=this.measureScrollbar();};d.prototype.setScrollbar=function(){var e=parseInt((this.$body.css("padding-right")||0),10);this.originalBodyPad=document.body.style.paddingRight||"";var f=this.scrollbarWidth;if(this.bodyIsOverflowing){this.$body.css("padding-right",e+f);a(this.fixedContent).each(function(h,g){var i=g.style.paddingRight;var j=a(g).css("padding-right");a(g).data("padding-right",i).css("padding-right",parseFloat(j)+f+"px");});}};d.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad);a(this.fixedContent).each(function(f,e){var g=a(e).data("padding-right");a(e).removeData("padding-right");e.style.paddingRight=g?g:"";});};d.prototype.measureScrollbar=function(){var f=document.createElement("div");f.className="modal-scrollbar-measure";this.$body.append(f);var e=f.offsetWidth-f.clientWidth;this.$body[0].removeChild(f);return e;};function b(e,f){return this.each(function(){var g=a(this);var i=g.data("bs.modal");var h=a.extend({},d.DEFAULTS,g.data(),typeof e=="object"&&e);if(!i){g.data("bs.modal",(i=new d(this,h)));}if(typeof e=="string"){i[e](f);}else{if(h.show){i.show(f);}}});}var c=a.fn.modal;a.fn.modal=b;a.fn.modal.Constructor=d;a.fn.modal.noConflict=function(){a.fn.modal=c;return this;};a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(h){var j=a(this);var g=j.attr("href"); 70var k=j.attr("data-target")||(g&&g.replace(/.*(?=#[^\s]+$)/,""));var i=a(document).find(k);var f=i.data("bs.modal")?"toggle":a.extend({remote:!/#/.test(g)&&g},i.data(),j.data());if(j.is("a")){h.preventDefault();}i.one("show.bs.modal",function(e){if(e.isDefaultPrevented()){return;}i.one("hidden.bs.modal",function(){j.is(":visible")&&j.trigger("focus");});});b.call(i,f,this);});}(jQuery);+function(a){function b(){var e=document.createElement("bootstrap");var c={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var d in c){if(e.style[d]!==undefined){return{end:c[d]};}}return false;}a.fn.emulateTransitionEnd=function(d){var e=false;var c=this;a(this).one("bsTransitionEnd",function(){e=true;});var f=function(){if(!e){a(c).trigger(a.support.transition.end);}};setTimeout(f,d);return this;};a(function(){a.support.transition=b();if(!a.support.transition){return;}a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(c){if(a(c.target).is(this)){return c.handleObj.handler.apply(this,arguments);}}};});}(jQuery);function BSAShowSelectedSubPanel(g){var d=g.getElementsByTagName("SELECT");var b;for(b=0;b<d.length;b++){if(d[b].name.substr(d[b].name.length-9,9)=="PanelList"){var e=d[b];if(e.selectedIndex==-1){return;}var f=e.options[e.selectedIndex].value;panelList=g.getElementsByTagName("DIV");for(j=0;j<panelList.length;j++){var a=panelList[j].getAttribute("name");var c=panelList[j].getAttribute("key");if(a=="SinglePanel"&&c!=f){panelList[j].style.display="none";}else{if(a=="SinglePanel"&&c==f){panelList[j].style.display="block";}}}}}}function BSAPanelSelectChanged(b){var a=findAncestor(b,"DIV");BSAShowSelectedSubPanel(a);}/* 71Chosen, a Select Box Enhancer for jQuery and Prototype 72by Patrick Filler for Harvest, http://getharvest.com 73 74Version 1.8.7 75Full source at https://github.com/harvesthq/chosen 76Copyright (c) 2011-2018 Harvest http://getharvest.com 77 78MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md 79This file is generated by `grunt build`, do not edit it by hand. 80*/ 81(function(){var b,a,d,c,g=function(h,i){return function(){return h.apply(i,arguments);};},f=function(j,i){for(var h in i){if(e.call(i,h)){j[h]=i[h];}}function k(){this.constructor=j;}k.prototype=i.prototype;j.prototype=new k();j.__super__=i.prototype;return j;},e={}.hasOwnProperty;c=(function(){function h(){this.options_index=0;this.parsed=[];}h.prototype.add_node=function(i){if(i.nodeName.toUpperCase()==="OPTGROUP"){return this.add_group(i);}else{return this.add_option(i);}};h.prototype.add_group=function(m){var o,n,l,j,p,k;o=this.parsed.length;this.parsed.push({array_index:o,group:true,label:m.label,title:m.title?m.title:void 0,children:0,disabled:m.disabled,classes:m.className});p=m.childNodes;k=[];for(n=0,l=p.length;n<l;n++){j=p[n];k.push(this.add_option(j,o,m.disabled));}return k;};h.prototype.add_option=function(i,j,k){if(i.nodeName.toUpperCase()==="OPTION"){if(i.text!==""){if(j!=null){this.parsed[j].children+=1;}this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:i.value,text:i.text,html:i.innerHTML,title:i.title?i.title:void 0,selected:i.selected,disabled:k===true?k:i.disabled,group_array_index:j,group_label:j!=null?this.parsed[j].label:null,classes:i.className,style:i.style.cssText});}else{this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:true});}return this.options_index+=1;}};return h;})();c.select_to_array=function(m){var h,l,j,n,k;n=new c();k=m.childNodes;for(l=0,j=k.length;l<j;l++){h=k[l];n.add_node(h);}return n.parsed;};a=(function(){function h(j,i){this.form_field=j;this.options=i!=null?i:{};this.label_click_handler=g(this.label_click_handler,this); 82if(!h.browser_is_supported()){return;}this.is_multiple=this.form_field.multiple;this.set_default_text();this.set_default_values();this.setup();this.set_up_html();this.register_observers();this.on_ready();}h.prototype.set_default_values=function(){this.click_test_action=(function(i){return function(j){return i.test_active_click(j);};})(this);this.activate_action=(function(i){return function(j){return i.activate_field(j);};})(this);this.active_field=false;this.mouse_on_container=false;this.results_showing=false;this.result_highlighted=null;this.is_rtl=this.options.rtl||/\bchosen-rtl\b/.test(this.form_field.className);this.allow_single_deselect=(this.options.allow_single_deselect!=null)&&(this.form_field.options[0]!=null)&&this.form_field.options[0].text===""?this.options.allow_single_deselect:false;this.disable_search_threshold=this.options.disable_search_threshold||0;this.disable_search=this.options.disable_search||false;this.enable_split_word_search=this.options.enable_split_word_search!=null?this.options.enable_split_word_search:true;this.group_search=this.options.group_search!=null?this.options.group_search:true;this.search_contains=this.options.search_contains||false;this.single_backstroke_delete=this.options.single_backstroke_delete!=null?this.options.single_backstroke_delete:true;this.max_selected_options=this.options.max_selected_options||Infinity;this.inherit_select_classes=this.options.inherit_select_classes||false;this.display_selected_options=this.options.display_selected_options!=null?this.options.display_selected_options:true;this.display_disabled_options=this.options.display_disabled_options!=null?this.options.display_disabled_options:true;this.include_group_label_in_selected=this.options.include_group_label_in_selected||false;this.max_shown_results=this.options.max_shown_results||Number.POSITIVE_INFINITY;this.case_sensitive_search=this.options.case_sensitive_search||false;this.hide_results_on_select=this.options.hide_results_on_select!=null?this.options.hide_results_on_select:true; 83this.create_option=this.options.create_option||false;this.persistent_create_option=this.options.persistent_create_option||false;return this.skip_no_results=this.options.skip_no_results||false;};h.prototype.set_default_text=function(){if(this.form_field.getAttribute("data-placeholder")){this.default_text=this.form_field.getAttribute("data-placeholder");}else{if(this.is_multiple){this.default_text=this.options.placeholder_text_multiple||this.options.placeholder_text||h.default_multiple_text;}else{this.default_text=this.options.placeholder_text_single||this.options.placeholder_text||h.default_single_text;}}this.default_text=this.escape_html(this.default_text);this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||h.default_no_result_text;return this.create_option_text=this.form_field.getAttribute("data-create_option_text")||this.options.create_option_text||h.default_create_option_text;};h.prototype.choice_label=function(i){if(this.include_group_label_in_selected&&(i.group_label!=null)){return"<b class='group-name'>"+(this.escape_html(i.group_label))+"</b>"+i.html;}else{return i.html;}};h.prototype.mouse_enter=function(){return this.mouse_on_container=true;};h.prototype.mouse_leave=function(){return this.mouse_on_container=false;};h.prototype.input_focus=function(i){if(this.is_multiple){if(!this.active_field){return setTimeout(((function(j){return function(){return j.container_mousedown();};})(this)),50);}}else{if(!this.active_field){return this.activate_field();}}};h.prototype.input_blur=function(i){if(!this.mouse_on_container){this.active_field=false;return setTimeout(((function(j){return function(){return j.blur_test();};})(this)),100);}};h.prototype.label_click_handler=function(i){if(this.is_multiple){return this.container_mousedown(i);}else{return this.activate_field();}};h.prototype.results_option_build=function(n){var o,l,j,p,m,q,k;o="";k=0;q=this.results_data;for(p=0,m=q.length;p<m;p++){l=q[p];j="";if(l.group){j=this.result_add_group(l); 84}else{j=this.result_add_option(l);}if(j!==""){k++;o+=j;}if(n!=null?n.first:void 0){if(l.selected&&this.is_multiple){this.choice_build(l);}else{if(l.selected&&!this.is_multiple){this.single_set_selected_text(this.choice_label(l));}}}if(k>=this.max_shown_results){break;}}return o;};h.prototype.result_add_option=function(i){var j,k;if(!i.search_match){return"";}if(!this.include_option_in_results(i)){return"";}j=[];if(!i.disabled&&!(i.selected&&this.is_multiple)){j.push("active-result");}if(i.disabled&&!(i.selected&&this.is_multiple)){j.push("disabled-result");}if(i.selected){j.push("result-selected");}if(i.group_array_index!=null){j.push("group-option");}if(i.classes!==""){j.push(i.classes);}k=document.createElement("li");k.className=j.join(" ");if(i.style){k.style.cssText=i.style;}k.setAttribute("data-option-array-index",i.array_index);k.innerHTML=i.highlighted_html||i.html;if(i.title){k.title=i.title;}return this.outerHTML(k);};h.prototype.result_add_group=function(j){var i,k;if(!(j.search_match||j.group_match)){return"";}if(!(j.active_options>0)){return"";}i=[];i.push("group-result");if(j.classes){i.push(j.classes);}k=document.createElement("li");k.className=i.join(" ");k.innerHTML=j.highlighted_html||this.escape_html(j.label);if(j.title){k.title=j.title;}return this.outerHTML(k);};h.prototype.append_option=function(i){return this.select_append_option(i);};h.prototype.results_update_field=function(){this.set_default_text();if(!this.is_multiple){this.results_reset_cleanup();}this.result_clear_highlight();this.results_build();if(this.results_showing){return this.winnow_results();}};h.prototype.reset_single_select_options=function(){var l,k,m,j,n;m=this.results_data;n=[];for(l=0,k=m.length;l<k;l++){j=m[l];
vendor: 20,103 bytes, lines 84-94
84if(j.selected){n.push(j.selected=false);}else{n.push(void 0);}}return n;};h.prototype.results_toggle=function(){if(this.results_showing){return this.results_hide();}else{return this.results_show();}};h.prototype.results_search=function(i){if(this.results_showing){return this.winnow_results(); 85}else{return this.results_show();}};h.prototype.winnow_results=function(k){var n,y,q,m,x,u,z,o,s,w,l,t,p,A,v,j,r;this.no_results_clear();t=0;y=false;s=this.get_search_text();q=s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");l=this.get_search_regex(q);n=new RegExp("^"+q+"$","i");w=this.results_data;for(x=0,u=w.length;x<u;x++){z=w[x];z.search_match=false;p=null;A=null;z.highlighted_html="";if(this.include_option_in_results(z)){if(z.group){z.group_match=false;z.active_options=0;}if((z.group_array_index!=null)&&this.results_data[z.group_array_index]){p=this.results_data[z.group_array_index];if(p.active_options===0&&p.search_match){t+=1;}p.active_options+=1;}r=z.group?z.label:z.text;if(!(z.group&&!this.group_search)){A=this.search_string_match(r,l);z.search_match=A!=null;if(z.search_match&&!z.group){t+=1;}y=y||n.test(z.html);if(z.search_match){if(s.length){v=A.index;o=r.slice(0,v);m=r.slice(v,v+s.length);j=r.slice(v+s.length);z.highlighted_html=(this.escape_html(o))+"<em>"+(this.escape_html(m))+"</em>"+(this.escape_html(j));}if(p!=null){p.group_match=true;}}else{if((z.group_array_index!=null)&&this.results_data[z.group_array_index].search_match){z.search_match=true;}}}}}this.result_clear_highlight();if(t<1&&s.length){this.update_results_content("");if(!(this.create_option&&this.skip_no_results)){return this.no_results(s);}}else{this.update_results_content(this.results_option_build());if(!(k!=null?k.skip_highlight:void 0)){return this.winnow_results_set_highlight();}}if(this.create_option&&(t<1||(!y&&this.persistent_create_option))&&s.length){return this.show_create_option(s);}};h.prototype.get_search_regex=function(j){var k,i;i=this.search_contains?j:"(^|\\s|\\b)"+j+"[^\\s]*";if(!(this.enable_split_word_search||this.search_contains)){i="^"+i;}k=this.case_sensitive_search?"":"i";return new RegExp(i,k);};h.prototype.search_string_match=function(j,k){var i;i=k.exec(j);if(!this.search_contains&&(i!=null?i[1]:void 0)){i.index+=1;}return i;};h.prototype.choices_count=function(){var l,k,j,m; 86if(this.selected_option_count!=null){return this.selected_option_count;}this.selected_option_count=0;m=this.form_field.options;for(l=0,k=m.length;l<k;l++){j=m[l];if(j.selected){this.selected_option_count+=1;}}return this.selected_option_count;};h.prototype.choices_click=function(i){i.preventDefault();this.activate_field();if(!(this.results_showing||this.is_disabled)){return this.results_show();}};h.prototype.keydown_checker=function(i){var k,j;j=(k=i.which)!=null?k:i.keyCode;this.search_field_scale();if(j!==8&&this.pending_backstroke){this.clear_backstroke();}switch(j){case 8:this.backstroke_length=this.get_search_field_value().length;break;case 9:if(this.results_showing&&!this.is_multiple){this.result_select(i);}this.mouse_on_container=false;break;case 13:if(this.results_showing){i.preventDefault();}break;case 27:if(this.results_showing){i.preventDefault();}break;case 32:if(this.disable_search){i.preventDefault();}break;case 38:i.preventDefault();this.keyup_arrow();break;case 40:i.preventDefault();this.keydown_arrow();break;}};h.prototype.keyup_checker=function(i){var k,j;j=(k=i.which)!=null?k:i.keyCode;this.search_field_scale();switch(j){case 8:if(this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0){this.keydown_backstroke();}else{if(!this.pending_backstroke){this.result_clear_highlight();this.results_search();}}break;case 13:i.preventDefault();if(this.results_showing){this.result_select(i);}break;case 27:if(this.results_showing){this.results_hide();}break;case 9:case 16:case 17:case 18:case 38:case 40:case 91:break;default:this.results_search();break;}};h.prototype.clipboard_event_checker=function(i){if(this.is_disabled){return;}return setTimeout(((function(j){return function(){return j.results_search();};})(this)),50);};h.prototype.container_width=function(){if(this.options.width!=null){return this.options.width;}else{return this.form_field.offsetWidth+"px";}};h.prototype.include_option_in_results=function(i){if(this.is_multiple&&(!this.display_selected_options&&i.selected)){return false; 87}if(!this.display_disabled_options&&i.disabled){return false;}if(i.empty){return false;}return true;};h.prototype.search_results_touchstart=function(i){this.touch_started=true;return this.search_results_mouseover(i);};h.prototype.search_results_touchmove=function(i){this.touch_started=false;return this.search_results_mouseout(i);};h.prototype.search_results_touchend=function(i){if(this.touch_started){return this.search_results_mouseup(i);}};h.prototype.outerHTML=function(j){var i;if(j.outerHTML){return j.outerHTML;}i=document.createElement("div");i.appendChild(j);return i.innerHTML;};h.prototype.get_single_html=function(){return'<a class="chosen-single chosen-default">\n <span>'+this.default_text+'</span>\n <div><b></b></div>\n</a>\n<div class="chosen-drop">\n <div class="chosen-search">\n <input class="chosen-search-input" type="text" autocomplete="off" />\n </div>\n <ul class="chosen-results"></ul>\n</div>';};h.prototype.get_multi_html=function(){return'<ul class="chosen-choices">\n <li class="search-field">\n <input class="chosen-search-input" type="text" autocomplete="off" value="'+this.default_text+'" />\n </li>\n</ul>\n<div class="chosen-drop">\n <ul class="chosen-results"></ul>\n</div>';};h.prototype.get_no_results_html=function(i){return'<li class="no-results">\n '+this.results_none_found+" <span>"+(this.escape_html(i))+"</span>\n</li>";};h.browser_is_supported=function(){if("Microsoft Internet Explorer"===window.navigator.appName){return document.documentMode>=8;}if(/iP(od|hone)/i.test(window.navigator.userAgent)||/IEMobile/i.test(window.navigator.userAgent)||/Windows Phone/i.test(window.navigator.userAgent)||/BlackBerry/i.test(window.navigator.userAgent)||/BB10/i.test(window.navigator.userAgent)||/Android.*Mobile/i.test(window.navigator.userAgent)){return false;}return true;};h.default_multiple_text="Select Some Options";h.default_single_text="Select an Option";h.default_no_result_text="No results match";h.default_create_option_text="Add Option"; 88return h;})();b=jQuery;b.fn.extend({chosen:function(h){if(!a.browser_is_supported()){return this;}return this.each(function(k){var i,j;i=b(this);j=i.data("chosen");if(h==="destroy"){if(j instanceof d){j.destroy();}return;}if(!(j instanceof d)){i.data("chosen",new d(this,h));}});}});d=(function(h){f(i,h);function i(){return i.__super__.constructor.apply(this,arguments);}i.prototype.setup=function(){this.form_field_jq=b(this.form_field);return this.current_selectedIndex=this.form_field.selectedIndex;};i.prototype.set_up_html=function(){var k,j;k=["chosen-container"];k.push("chosen-container-"+(this.is_multiple?"multi":"single"));if(this.inherit_select_classes&&this.form_field.className){k.push(this.form_field.className);}if(this.is_rtl){k.push("chosen-rtl");}j={"class":k.join(" "),title:this.form_field.title};if(this.form_field.id.length){j.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen";}this.container=b("<div />",j);this.container.width(this.container_width());if(this.is_multiple){this.container.html(this.get_multi_html());}else{this.container.html(this.get_single_html());}this.form_field_jq.hide().after(this.container);this.dropdown=this.container.find("div.chosen-drop").first();this.search_field=this.container.find("input").first();this.search_results=this.container.find("ul.chosen-results").first();this.search_field_scale();this.search_no_results=this.container.find("li.no-results").first();if(this.is_multiple){this.search_choices=this.container.find("ul.chosen-choices").first();this.search_container=this.container.find("li.search-field").first();}else{this.search_container=this.container.find("div.chosen-search").first();this.selected_item=this.container.find(".chosen-single").first();}this.results_build();this.set_tab_index();this.search_field.attr("aria-label",this.default_text.replace(" ","_")+"_label");return this.set_label_behavior();};i.prototype.on_ready=function(){return this.form_field_jq.trigger("chosen:ready",{chosen:this});};i.prototype.register_observers=function(){this.container.on("touchstart.chosen",(function(j){return function(k){j.container_mousedown(k); 89};})(this));this.container.on("touchend.chosen",(function(j){return function(k){j.container_mouseup(k);};})(this));this.container.on("mousedown.chosen",(function(j){return function(k){j.container_mousedown(k);};})(this));this.container.on("mouseup.chosen",(function(j){return function(k){j.container_mouseup(k);};})(this));this.container.on("mouseenter.chosen",(function(j){return function(k){j.mouse_enter(k);};})(this));this.container.on("mouseleave.chosen",(function(j){return function(k){j.mouse_leave(k);};})(this));this.search_results.on("mouseup.chosen",(function(j){return function(k){j.search_results_mouseup(k);};})(this));this.search_results.on("mouseover.chosen",(function(j){return function(k){j.search_results_mouseover(k);};})(this));this.search_results.on("mouseout.chosen",(function(j){return function(k){j.search_results_mouseout(k);};})(this));this.search_results.on("mousewheel.chosen DOMMouseScroll.chosen",(function(j){return function(k){j.search_results_mousewheel(k);};})(this));this.search_results.on("touchstart.chosen",(function(j){return function(k){j.search_results_touchstart(k);};})(this));this.search_results.on("touchmove.chosen",(function(j){return function(k){j.search_results_touchmove(k);};})(this));this.search_results.on("touchend.chosen",(function(j){return function(k){j.search_results_touchend(k);};})(this));this.form_field_jq.on("chosen:updated.chosen",(function(j){return function(k){j.results_update_field(k);};})(this));this.form_field_jq.on("chosen:activate.chosen",(function(j){return function(k){j.activate_field(k);};})(this));this.form_field_jq.on("chosen:open.chosen",(function(j){return function(k){j.container_mousedown(k);};})(this));this.form_field_jq.on("chosen:close.chosen",(function(j){return function(k){j.close_field(k);};})(this));this.search_field.on("blur.chosen",(function(j){return function(k){j.input_blur(k);};})(this));this.search_field.on("keyup.chosen",(function(j){return function(k){j.keyup_checker(k);};})(this));this.search_field.on("keydown.chosen",(function(j){return function(k){j.keydown_checker(k); 90};})(this));this.search_field.on("focus.chosen",(function(j){return function(k){j.input_focus(k);};})(this));this.search_field.on("cut.chosen",(function(j){return function(k){j.clipboard_event_checker(k);};})(this));this.search_field.on("paste.chosen",(function(j){return function(k){j.clipboard_event_checker(k);};})(this));if(this.is_multiple){return this.search_choices.on("click.chosen",(function(j){return function(k){j.choices_click(k);};})(this));}else{return this.container.on("click.chosen",function(j){j.preventDefault();});}};i.prototype.destroy=function(){b(this.container[0].ownerDocument).off("click.chosen",this.click_test_action);if(this.form_field_label.length>0){this.form_field_label.off("click.chosen");}if(this.search_field[0].tabIndex){this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex;}this.container.remove();this.form_field_jq.removeData("chosen");return this.form_field_jq.show();};i.prototype.search_field_disabled=function(){this.is_disabled=this.form_field.disabled||this.form_field_jq.parents("fieldset").is(":disabled");this.container.toggleClass("chosen-disabled",this.is_disabled);this.search_field[0].disabled=this.is_disabled;if(!this.is_multiple){this.selected_item.off("focus.chosen",this.activate_field);}if(this.is_disabled){return this.close_field();}else{if(!this.is_multiple){return this.selected_item.on("focus.chosen",this.activate_field);}}};i.prototype.container_mousedown=function(j){var k;if(this.is_disabled){return;}if(j&&((k=j.type)==="mousedown"||k==="touchstart")&&!this.results_showing){j.preventDefault();}if(!((j!=null)&&(b(j.target)).hasClass("search-choice-close"))){if(!this.active_field){if(this.is_multiple){this.search_field.val("");}b(this.container[0].ownerDocument).on("click.chosen",this.click_test_action);this.results_show();}else{if(!this.is_multiple&&j&&((b(j.target)[0]===this.selected_item[0])||b(j.target).parents("a.chosen-single").length)){j.preventDefault();this.results_toggle();}}return this.activate_field();}}; 91i.prototype.container_mouseup=function(j){if(j.target.nodeName==="ABBR"&&!this.is_disabled){return this.results_reset(j);}};i.prototype.search_results_mousewheel=function(k){var j;if(k.originalEvent){j=k.originalEvent.deltaY||-k.originalEvent.wheelDelta||k.originalEvent.detail;}if(j!=null){k.preventDefault();if(k.type==="DOMMouseScroll"){j=j*40;}return this.search_results.scrollTop(j+this.search_results.scrollTop());}};i.prototype.blur_test=function(j){if(!this.active_field&&this.container.hasClass("chosen-container-active")){return this.close_field();}};i.prototype.close_field=function(){b(this.container[0].ownerDocument).off("click.chosen",this.click_test_action);this.active_field=false;this.results_hide();this.container.removeClass("chosen-container-active");this.clear_backstroke();this.show_search_field_default();this.search_field_scale();return this.search_field.blur();};i.prototype.activate_field=function(){if(this.is_disabled){return;}this.container.addClass("chosen-container-active");this.active_field=true;this.search_field.val(this.search_field.val());return this.search_field.focus();};i.prototype.test_active_click=function(k){var j;j=b(k.target).closest(".chosen-container");if(j.length&&this.container[0]===j[0]){return this.active_field=true;}else{return this.close_field();}};i.prototype.results_build=function(){this.parsing=true;this.selected_option_count=null;this.results_data=c.select_to_array(this.form_field);if(this.is_multiple){this.search_choices.find("li.search-choice").remove();}else{this.single_set_selected_text();if(this.disable_search||this.form_field.options.length<=this.disable_search_threshold&&!this.create_option){this.search_field[0].readOnly=true;this.container.addClass("chosen-container-single-nosearch");}else{this.search_field[0].readOnly=false;this.container.removeClass("chosen-container-single-nosearch");}}this.update_results_content(this.results_option_build({first:true}));this.search_field_disabled();this.show_search_field_default(); 92this.search_field_scale();return this.parsing=false;};i.prototype.result_do_highlight=function(j){var o,n,l,k,m;if(j.length){this.result_clear_highlight();this.result_highlight=j;this.result_highlight.addClass("highlighted");l=parseInt(this.search_results.css("maxHeight"),10);m=this.search_results.scrollTop();k=l+m;n=this.result_highlight.position().top+this.search_results.scrollTop();o=n+this.result_highlight.outerHeight();if(o>=k){return this.search_results.scrollTop((o-l)>0?o-l:0);}else{if(n<m){return this.search_results.scrollTop(n);}}}};i.prototype.result_clear_highlight=function(){if(this.result_highlight){this.result_highlight.removeClass("highlighted");}return this.result_highlight=null;};i.prototype.results_show=function(){if(this.is_multiple&&this.max_selected_options<=this.choices_count()){this.form_field_jq.trigger("chosen:maxselected",{chosen:this});return false;}this.container.addClass("chosen-with-drop");this.results_showing=true;this.search_field.focus();this.search_field.val(this.get_search_field_value());this.winnow_results();return this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this});};i.prototype.update_results_content=function(j){return this.search_results.html(j);};i.prototype.results_hide=function(){if(this.results_showing){this.result_clear_highlight();this.container.removeClass("chosen-with-drop");this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this});}return this.results_showing=false;};i.prototype.set_tab_index=function(j){var k;if(this.form_field.tabIndex){k=this.form_field.tabIndex;this.form_field.tabIndex=-1;return this.search_field[0].tabIndex=k;}};i.prototype.set_label_behavior=function(){this.form_field_label=this.form_field_jq.parents("label");if(!this.form_field_label.length&&this.form_field.id.length){this.form_field_label=b("label[for='"+this.form_field.id+"']");}if(this.form_field_label.length>0){return this.form_field_label.on("click.chosen",this.label_click_handler);}};i.prototype.show_search_field_default=function(){if(this.is_multiple&&this.choices_count()<1&&!this.active_field){this.search_field.val(this.default_text); 93return this.search_field.addClass("default");}else{this.search_field.val("");return this.search_field.removeClass("default");}};i.prototype.search_results_mouseup=function(k){var j;j=b(k.target).hasClass("active-result")?b(k.target):b(k.target).parents(".active-result").first();if(j.length){this.result_highlight=j;this.result_select(k);return this.search_field.focus();}};i.prototype.search_results_mouseover=function(k){var j;j=b(k.target).hasClass("active-result")?b(k.target):b(k.target).parents(".active-result").first();if(j){return this.result_do_highlight(j);}};i.prototype.search_results_mouseout=function(j){if(b(j.target).hasClass("active-result")||b(j.target).parents(".active-result").first()){return this.result_clear_highlight();}};i.prototype.choice_build=function(j){var k,l;k=b("<li />",{"class":"search-choice"}).html("<span>"+(this.choice_label(j))+"</span>");if(j.disabled){k.addClass("search-choice-disabled");}else{l=b("<a />",{"class":"search-choice-close","data-option-array-index":j.array_index});l.on("click.chosen",(function(m){return function(n){return m.choice_destroy_link_click(n);};})(this));k.append(l);}return this.search_container.before(k);};i.prototype.choice_destroy_link_click=function(j){j.preventDefault();j.stopPropagation();if(!this.is_disabled){return this.choice_destroy(b(j.target));}};i.prototype.choice_destroy=function(j){if(this.result_deselect(j[0].getAttribute("data-option-array-index"))){if(this.active_field){this.search_field.focus();}else{this.show_search_field_default();}if(this.is_multiple&&this.choices_count()>0&&this.get_search_field_value().length<1){this.results_hide();}j.parents("li").first().remove();return this.search_field_scale();}};i.prototype.results_reset=function(){this.reset_single_select_options();this.form_field.options[0].selected=true;this.single_set_selected_text();this.show_search_field_default();this.results_reset_cleanup();this.trigger_form_field_change();if(this.active_field){return this.results_hide();}};i.prototype.results_reset_cleanup=function(){this.current_selectedIndex=this.form_field.selectedIndex; 94return this.selected_item.find("abbr").remove();};i.prototype.result_select=function(j){var l,k;if(this.result_highlight){l=this.result_highlight;if(l.hasClass("create-option")){this.select_create_option(this.search_field.val());return this.results_hide();}this.result_clear_highlight();if(this.is_multiple&&this.max_selected_options<=this.choices_count()){this.form_field_jq.trigger("chosen:maxselected",{chosen:this});return false;}if(this.is_multiple){l.removeClass("active-result");}else{this.reset_single_select_options();}l.addClass("result-selected");k=this.results_data[l[0].getAttribute("data-option-array-index")];k.selected=true;this.form_field.options[k.options_index].selected=true;this.selected_option_count=null;if(this.is_multiple){this.choice_build(k);}else{this.single_set_selected_text(this.choice_label(k));}if(this.is_multiple&&(!this.hide_results_on_select||(j.metaKey||j.ctrlKey))){if(j.metaKey||j.ctrlKey){this.winnow_results({skip_highlight:true});}else{this.search_field.val("");this.winnow_results();}}else{this.results_hide();this.show_search_field_default();}if(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex){this.trigger_form_field_change({selected:this.form_field.options[k.options_index].value});}this.current_selectedIndex=this.form_field.selectedIndex;
94j.preventDefault();return this.search_field_scale();}};i.prototype.single_set_selected_text=function(j){if(j==null){j=this.default_text;}if(j===this.default_text){this.selected_item.addClass("chosen-default");}else{this.single_deselect_control_build();this.selected_item.removeClass("chosen-default");}return this.selected_item.find("span").html(j);};i.prototype.result_deselect=function(k){var j;j=this.results_data[k];if(!this.form_field.options[j.options_index].disabled){j.selected=false;this.form_field.options[j.options_index].selected=false;this.selected_option_count=null;this.result_clear_highlight();if(this.results_showing){this.winnow_results();}this.trigger_form_field_change({deselected:this.form_field.options[j.options_index].value}); 95this.search_field_scale();return true;}else{return false;}};i.prototype.single_deselect_control_build=function(){if(!this.allow_single_deselect){return;}if(!this.selected_item.find("abbr").length){this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>');}return this.selected_item.addClass("chosen-single-with-deselect");};i.prototype.get_search_field_value=function(){return this.search_field.val();};i.prototype.get_search_text=function(){return b.trim(this.get_search_field_value());};i.prototype.escape_html=function(j){return b("<div/>").text(j).html();};i.prototype.winnow_results_set_highlight=function(){var j,k;k=!this.is_multiple?this.search_results.find(".result-selected.active-result"):[];j=k.length?k.first():this.search_results.find(".active-result").first();if(j!=null){return this.result_do_highlight(j);}};i.prototype.no_results=function(j){var k;k=this.get_no_results_html(j);this.search_results.append(k);return this.form_field_jq.trigger("chosen:no_results",{chosen:this});};i.prototype.show_create_option=function(j){var k;k=b('<li class="create-option active-result"><a>'+this.create_option_text+'</a>: "'+j+'"</li>');return this.search_results.append(k);};i.prototype.create_option_clear=function(){return this.search_results.find(".create-option").remove();};i.prototype.select_create_option=function(j){if(b.isFunction(this.create_option)){return this.create_option.call(this,j);}else{return this.select_append_option({value:j,text:j});}};i.prototype.select_append_option=function(k){var j;j=b("<option />",k).attr("selected","selected");this.form_field_jq.append(j);this.form_field_jq.trigger("chosen:updated");this.form_field_jq.trigger("change");return this.search_field.trigger("focus");};
95i.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove();};i.prototype.keydown_arrow=function(){var j;if(this.results_showing&&this.result_highlight){j=this.result_highlight.nextAll("li.active-result").first(); 96if(j){return this.result_do_highlight(j);}}else{if(this.results_showing&&this.create_option){return this.result_do_highlight(this.search_results.find(".create-option"));}else{return this.results_show();}}};i.prototype.keyup_arrow=function(){var j;if(!this.results_showing&&!this.is_multiple){return this.results_show();}else{if(this.result_highlight){j=this.result_highlight.prevAll("li.active-result");if(j.length){return this.result_do_highlight(j.first());}else{if(this.choices_count()>0){this.results_hide();}return this.result_clear_highlight();}}}};i.prototype.keydown_backstroke=function(){var j;if(this.pending_backstroke){this.choice_destroy(this.pending_backstroke.find("a").first());return this.clear_backstroke();}else{j=this.search_container.siblings("li.search-choice").last();if(j.length&&!j.hasClass("search-choice-disabled")){this.pending_backstroke=j;if(this.single_backstroke_delete){return this.keydown_backstroke();}else{return this.pending_backstroke.addClass("search-choice-focus");}}}};i.prototype.clear_backstroke=function(){if(this.pending_backstroke){this.pending_backstroke.removeClass("search-choice-focus");}return this.pending_backstroke=null;};i.prototype.search_field_scale=function(){var j,n,k,l,m,o,p;if(!this.is_multiple){return;}m={position:"absolute",left:"-1000px",top:"-1000px",display:"none",whiteSpace:"pre"};o=["fontSize","fontStyle","fontWeight","fontFamily","lineHeight","textTransform","letterSpacing"];for(n=0,k=o.length;n<k;n++){l=o[n];m[l]=this.search_field.css(l);}j=b("<div />").css(m);j.text(this.get_search_field_value());b("body").append(j);p=j.width()+25;j.remove();if(this.container.is(":visible")){p=Math.min(this.container.outerWidth()-10,p);}return this.search_field.width(p);};i.prototype.trigger_form_field_change=function(j){this.form_field_jq.trigger("input",j);return this.form_field_jq.trigger("change",j);};return i;})(a);}).call(this);(function(a){if(a.hasInitialised){return;}var b={escapeRegExp:function(d){return d.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");},hasClass:function(d,e){var f=" ";return(d.nodeType===1&&(f+d.className+f).replace(/[\n\t]/g,f).indexOf(f+e+f)>=0);},addClass:function(e,d){e.className+=" "+d;},removeClass:function(d,e){var f=new RegExp("\\b"+this.escapeRegExp(e)+"\\b");d.className=d.className.replace(f,"");},interpolateString:function(e,f){var d=/{{([a-z][a-z0-9\-_]*)}}/gi;return e.replace(d,function(g){return f(arguments[1])||"";});},getCookie:function(d){var f="; "+document.cookie;var e=f.split("; "+d+"=");return e.length<2?undefined:e.pop().split(";").shift();},setCookie:function(f,g,j,e,d,h){var k=new Date();k.setHours(k.getHours()+((j||365)*24));var i=[f+"="+g,"expires="+k.toUTCString(),"path="+(d||"/")];if(e){i.push("domain="+e);}if(h){i.push("secure");}document.cookie=i.join(";");},deepExtend:function(e,d){for(var f in d){if(d.hasOwnProperty(f)){if(f in e&&this.isPlainObject(e[f])&&this.isPlainObject(d[f])){this.deepExtend(e[f],d[f]);}else{e[f]=d[f];}}}return e;},throttle:function(f,e){var d=false;return function(){if(!d){f.apply(this,arguments);d=true;setTimeout(function(){d=false;},e);}};},hash:function(g){var e=0,h,d,f;if(g.length===0){return e;}for(h=0,f=g.length;h<f;++h){d=g.charCodeAt(h);e=(e<<5)-e+d;e|=0;}return e;},normaliseHex:function(d){if(d[0]=="#"){d=d.substr(1);}if(d.length==3){d=d[0]+d[0]+d[1]+d[1]+d[2]+d[2];}return d;},getContrast:function(d){d=this.normaliseHex(d);var i=parseInt(d.substr(0,2),16);var f=parseInt(d.substr(2,2),16);var e=parseInt(d.substr(4,2),16);var h=(i*299+f*587+e*114)/1000;return h>=128?"#000":"#fff";},getLuminance:function(d){var g=parseInt(this.normaliseHex(d),16),i=38,f=(g>>16)+i,e=((g>>8)&255)+i,h=(g&255)+i;var j=(16777216+(f<255?(f<1?0:f):255)*65536+(e<255?(e<1?0:e):255)*256+(h<255?(h<1?0:h):255)).toString(16).slice(1);return"#"+j;},isMobile:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); 97},isPlainObject:function(d){return(typeof d==="object"&&d!==null&&d.constructor==Object);},traverseDOMPath:function(e,d){if(!e||!e.parentNode){return null;}if(b.hasClass(e,d)){return e;}return this.traverseDOMPath(e.parentNode,d);}};
97a.status={deny:"deny",allow:"allow",dismiss:"dismiss"};a.transitionEnd=(function(){var f=document.createElement("div");var d={t:"transitionend",OT:"oTransitionEnd",msT:"MSTransitionEnd",MozT:"transitionend",WebkitT:"webkitTransitionEnd"};for(var e in d){if(d.hasOwnProperty(e)&&typeof f.style[e+"ransition"]!="undefined"){return d[e];}}return"";})();a.hasTransition=!!a.transitionEnd;var c=Object.keys(a.status).map(b.escapeRegExp);a.customStyles={};a.Popup=(function(){var p={enabled:true,container:null,cookie:{name:"cookieconsent_status",path:"/",domain:"",expiryDays:365,secure:false},onPopupOpen:function(){},onPopupClose:function(){},onInitialise:function(u){},onStatusChange:function(v,u){},onRevokeChoice:function(){},onNoCookieLaw:function(u,v){},onCustomize:function(){},content:{header:"Cookies used on the website!",message:"This website uses cookies to ensure you get the best experience on our website.",dismiss:"Got it!",allow:"Allow cookies",deny:"Decline",customize:"Customize",link:"Learn more",href:"https://www.advsol.com/legal",close:"❌",target:"_blank",policy:"Cookie Policy"},elements:{header:'<span class="cc-header">{{header}}</span> ',message:'<span id="cookieconsent:desc" class="cc-message">{{message}}</span>',messagelink:'<span id="cookieconsent:desc" class="cc-message">{{message}} <a aria-label="learn more about cookies" role=button tabindex="0" class="cc-link" href="{{href}}" rel="noopener noreferrer nofollow" target="{{target}}">{{link}}</a></span>',dismiss:'<a aria-label="dismiss cookie message" role=button tabindex="0" class="cc-btn cc-dismiss">{{dismiss}}</a>',allow:'<a aria-label="allow cookies" role=button tabindex="0" class="cc-btn cc-allow">{{allow}}</a>',deny:'<a aria-label="deny cookies" role=button tabindex="0" class="cc-btn cc-deny">{{deny}}</a>',customize:'<a aria-label="customize cookie preferences" role=button tabindex="0" class="cc-btn cc-customize">{{customize}}</a>',link:'<a aria-label="learn more about cookies" role=button tabindex="0" class="cc-link" href="{{href}}" rel="noopener noreferrer nofollow" target="{{target}}">{{link}}</a>',close:'<span aria-label="dismiss cookie message" role=button tabindex="0" class="cc-close">{{close}}</span>'},window:'<div role="dialog" aria-live="polite" aria-label="cookieconsent" aria-describedby="cookieconsent:desc" class="cc-window {{classes}}"><!--googleoff: all-->{{children}}<!--googleon: all--></div>',revokeBtn:'<div class="cc-revoke {{classes}}">{{policy}}</div>',compliance:{info:'<div class="cc-compliance">{{dismiss}}</div>',"opt-in":'<div class="cc-compliance">{{customize}}{{deny}}{{allow}}</div>',"opt-out":'<div class="cc-compliance">{{customize}}{{deny}}{{allow}}</div>',"default":'<div class="cc-compliance">{{customize}}{{deny}}{{allow}}</div>'},type:"info",layouts:{basic:"{{messagelink}}{{compliance}}","basic-close":"{{messagelink}}{{compliance}}{{close}}","basic-header":"{{header}}{{message}}{{link}}{{compliance}}"},layout:"basic",position:"bottom",theme:"block",staticc:false,palette:null,revokable:false,animateRevokable:true,showLink:true,dismissOnScroll:false,dismissOnTimeout:false,dismissOnWindowClick:false,ignoreClicksFrom:["cc-revoke","cc-btn"],autoOpen:true,autoAttach:true,whitelistPage:[],blacklistPage:[],overrideHTML:null}; 98function m(){this.initialise.apply(this,arguments);}m.prototype.initialise=function(w){if(this.options){this.destroy();}b.deepExtend((this.options={}),p);if(b.isPlainObject(w)){b.deepExtend(this.options,w);}if(f.call(this)){this.options.enabled=false;}if(n(this.options.blacklistPage,location.pathname)){this.options.enabled=false;}if(n(this.options.whitelistPage,location.pathname)){this.options.enabled=true;}var x=this.options.window.replace("{{classes}}",h.call(this).join(" ")).replace("{{children}}",i.call(this));var v=this.options.overrideHTML;if(typeof v=="string"&&v.length){x=v;}if(this.options.staticc){var u=t.call(this,'<div class="cc-grower">'+x+"</div>");u.style.display="";this.element=u.firstChild;this.element.style.display="none";b.addClass(this.element,"cc-invisible");}else{this.element=t.call(this,x);}g.call(this);k.call(this);if(this.options.autoOpen){this.autoOpen();}};m.prototype.destroy=function(){if(this.onButtonClick&&this.element){this.element.removeEventListener("click",this.onButtonClick);this.onButtonClick=null;}
98if(this.dismissTimeout){clearTimeout(this.dismissTimeout);this.dismissTimeout=null;}if(this.onWindowScroll){window.removeEventListener("scroll",this.onWindowScroll);this.onWindowScroll=null;}if(this.onWindowClick){window.removeEventListener("click",this.onWindowClick);this.onWindowClick=null;}if(this.onMouseMove){window.removeEventListener("mousemove",this.onMouseMove);this.onMouseMove=null;}if(this.element&&this.element.parentNode){this.element.parentNode.removeChild(this.element);}this.element=null;if(this.revokeBtn&&this.revokeBtn.parentNode){this.revokeBtn.parentNode.removeChild(this.revokeBtn);}this.revokeBtn=null;r(this.options.palette);this.options=null;};m.prototype.open=function(u){if(!this.element){return;}if(!this.isOpen()){if(a.hasTransition){this.fadeIn();}else{this.element.style.display="";}if(this.options.revokable){this.toggleRevokeButton();}this.options.onPopupOpen.call(this);}return this;};m.prototype.close=function(u){if(!this.element){return; 99}if(this.isOpen()){if(a.hasTransition){this.fadeOut();}else{this.element.style.display="none";}if(u&&this.options.revokable){this.toggleRevokeButton(true);}this.options.onPopupClose.call(this);}return this;};m.prototype.fadeIn=function(){var v=this.element;if(!a.hasTransition||!v){return;}if(this.afterTransition){d.call(this,v);}if(b.hasClass(v,"cc-invisible")){v.style.display="";if(this.options.staticc){var u=this.element.clientHeight;this.element.parentNode.style.maxHeight=u+"px";}var w=20;this.openingTimeout=setTimeout(s.bind(this,v),w);}};m.prototype.fadeOut=function(){var u=this.element;if(!a.hasTransition||!u){return;}if(this.openingTimeout){clearTimeout(this.openingTimeout);s.bind(this,u);}if(!b.hasClass(u,"cc-invisible")){if(this.options.staticc){this.element.parentNode.style.maxHeight="";}this.afterTransition=d.bind(this,u);u.addEventListener(a.transitionEnd,this.afterTransition);b.addClass(u,"cc-invisible");}};m.prototype.isOpen=function(){return(this.element&&this.element.style.display==""&&(a.hasTransition?!b.hasClass(this.element,"cc-invisible"):true));};m.prototype.toggleRevokeButton=function(u){if(this.revokeBtn){this.revokeBtn.style.display=u?"":"none";}};m.prototype.revokeChoice=function(u){this.options.enabled=true;this.clearStatus();this.options.onRevokeChoice.call(this);if(!u){this.autoOpen();}};m.prototype.hasAnswered=function(u){return Object.keys(a.status).indexOf(this.getStatus())>=0;};m.prototype.hasConsented=function(u){var v=this.getStatus();return v==a.status.allow||v==a.status.dismiss;};m.prototype.autoOpen=function(u){if(!this.hasAnswered()&&this.options.enabled){this.open();}else{if(this.hasAnswered()&&this.options.revokable){this.toggleRevokeButton(true);}}};m.prototype.setStatus=function(u){var v=this.options.cookie;var x=b.getCookie(v.name);var w=Object.keys(a.status).indexOf(x)>=0;if(Object.keys(a.status).indexOf(u)>=0){b.setCookie(v.name,u,v.expiryDays,v.domain,v.path,v.secure);this.options.onStatusChange.call(this,u,w);}else{this.clearStatus(); 100}};m.prototype.getStatus=function(){return b.getCookie(this.options.cookie.name);};m.prototype.clearStatus=function(){var u=this.options.cookie;b.setCookie(u.name,"",-1,u.domain,u.path);};function s(u){this.openingTimeout=null;b.removeClass(u,"cc-invisible");}function d(u){u.style.display="none";u.removeEventListener(a.transitionEnd,this.afterTransition);this.afterTransition=null;}function f(){var x=this.options.onInitialise.bind(this);if(!window.navigator.cookieEnabled){x(a.status.deny);return true;}if(window.CookiesOK||window.navigator.CookiesOK){x(a.status.allow);return true;}var v=Object.keys(a.status);var w=this.getStatus();var u=v.indexOf(w)>=0;if(u){x(w);}return u;}function l(){var u=this.options.position.split("-");var v=[];u.forEach(function(w){v.push("cc-"+w);});return v;}function h(){var x=this.options;var w=x.position=="top"||x.position=="bottom"?"banner":"floating";if(b.isMobile()){w="floating";}var u=["cc-"+w,"cc-type-"+x.type,"cc-theme-"+x.theme];if(x.staticc){u.push("cc-static");}u.push.apply(u,l.call(this));var v=e.call(this,this.options.palette);if(this.customStyleSelector){u.push(this.customStyleSelector);}return u;}function i(){var w={};var x=this.options;if(!x.showLink){x.elements.link="";x.elements.messagelink=x.elements.message;}
100Object.keys(x.elements).forEach(function(y){w[y]=b.interpolateString(x.elements[y],function(z){var A=x.content[z];return z&&typeof A=="string"&&A.length?A:"";});});var u=x.compliance[x.type];if(!u){u=x.compliance.info;}w.compliance=b.interpolateString(u,function(y){return w[y];});var v=x.layouts[x.layout];if(!v){v=x.layouts.basic;}return b.interpolateString(v,function(y){return w[y];});}function t(w){var u=this.options;var x=document.createElement("div");var v=u.container&&u.container.nodeType===1?u.container:document.body;x.innerHTML=w;var y=x.children[0];y.style.display="none";if(b.hasClass(y,"cc-window")&&a.hasTransition){b.addClass(y,"cc-invisible");}this.onButtonClick=j.bind(this);y.addEventListener("click",this.onButtonClick); 101if(u.autoAttach){if(!v.firstChild){v.appendChild(y);}else{v.insertBefore(y,v.firstChild);}}return y;}function j(v){var w=b.traverseDOMPath(v.target,"cc-btn")||v.target;if(b.hasClass(w,"cc-btn")){var u=w.className.match(new RegExp("\\bcc-("+c.join("|")+")\\b"));var x=(u&&u[1])||false;if(x){this.setStatus(x);this.close(true);}}if(b.hasClass(w,"cc-close")){this.setStatus(a.status.dismiss);this.close(true);}if(b.hasClass(w,"cc-revoke")){this.revokeChoice();}if(b.hasClass(w,"cc-customize")){this.options.onCustomize.call(this);}}function e(x){var u=b.hash(JSON.stringify(x));var w="cc-color-override-"+u;var v=b.isPlainObject(x);this.customStyleSelector=v?w:null;if(v){q(u,x,"."+w);}return v;}function q(w,z,A){if(a.customStyles[w]){++a.customStyles[w].references;return;}var y={};var B=z.popup;var v=z.button;var D=z.highlight;if(B){B.text=B.text?B.text:b.getContrast(B.background);B.link=B.link?B.link:B.text;y[A+".cc-window"]=["color: "+B.text,"background-color: "+B.background];y[A+".cc-revoke"]=["color: "+B.text,"background-color: "+B.background];y[A+" .cc-link,"+A+" .cc-link:active,"+A+" .cc-link:visited"]=["color: "+B.link];if(v){v.text=v.text?v.text:b.getContrast(v.background);v.border=v.border?v.border:"transparent";y[A+" .cc-btn"]=["color: "+v.text,"border-color: "+v.border,"background-color: "+v.background];if(v.padding){y[A+" .cc-btn"].push("padding: "+v.padding);}if(v.background!="transparent"){y[A+" .cc-btn:hover, "+A+" .cc-btn:focus"]=["background-color: "+(v.hover||o(v.background))];}if(D){D.text=D.text?D.text:b.getContrast(D.background);D.border=D.border?D.border:"transparent";y[A+" .cc-highlight .cc-btn:first-child"]=["color: "+D.text,"border-color: "+D.border,"background-color: "+D.background];}else{y[A+" .cc-highlight .cc-btn:first-child"]=["color: "+B.text];}}}var x=document.createElement("style");document.head.appendChild(x);a.customStyles[w]={references:1,element:x.sheet};var u=-1;for(var C in y){if(y.hasOwnProperty(C)){x.sheet.insertRule(C+"{"+y[C].join(";")+"}",++u); 102}}}function o(u){u=b.normaliseHex(u);if(u=="000000"){return"#222";}return b.getLuminance(u);}function r(x){if(b.isPlainObject(x)){var u=b.hash(JSON.stringify(x));var v=a.customStyles[u];if(v&&!--v.references){var w=v.element.ownerNode;if(w&&w.parentNode){w.parentNode.removeChild(w);}a.customStyles[u]=null;}}}function n(u,w){for(var v=0,y=u.length;v<y;++v){var x=u[v];if((x instanceof RegExp&&x.test(w))||(typeof x=="string"&&x.length&&x===w)){return true;}}return false;}function g(){var x=this.setStatus.bind(this);var z=this.close.bind(this);var v=this.options.dismissOnTimeout;if(typeof v=="number"&&v>=0){this.dismissTimeout=window.setTimeout(function(){x(a.status.dismiss);z(true);},Math.floor(v));}var A=this.options.dismissOnScroll;if(typeof A=="number"&&A>=0){var B=function(C){if(window.pageYOffset>Math.floor(A)){x(a.status.dismiss);z(true);window.removeEventListener("scroll",B);this.onWindowScroll=null;}};if(this.options.enabled){this.onWindowScroll=B;window.addEventListener("scroll",B);}}var y=this.options.dismissOnWindowClick;var w=this.options.ignoreClicksFrom;if(y){var u=function(G){var E=false;var D=G.path.length;var H=w.length;for(var F=0;F<D;F++){if(E){continue;}for(var C=0;C<H;C++){if(E){continue;}E=b.hasClass(G.path[F],w[C]);}}if(!E){x(a.status.dismiss);z(true);window.removeEventListener("click",u);window.removeEventListener("touchend",u);this.onWindowClick=null;}}.bind(this);if(this.options.enabled){this.onWindowClick=u;window.addEventListener("click",u);window.addEventListener("touchend",u);}}}function k(){if(this.options.type!="info"){this.options.revokable=true;}if(b.isMobile()){this.options.animateRevokable=false;}if(this.options.revokable){var w=l.call(this);if(this.options.animateRevokable){w.push("cc-animate");}if(this.customStyleSelector){w.push(this.customStyleSelector);}var v=this.options.revokeBtn.replace("{{classes}}",w.join(" ")).replace("{{policy}}",this.options.content.policy);this.revokeBtn=t.call(this,v);var x=this.revokeBtn;if(this.options.animateRevokable){var u=false; 103var y=b.throttle(function(z){var A=false;var B=20;var C=window.innerHeight-20;
103if(b.hasClass(x,"cc-top")&&z.clientY<B){A=true;}if(b.hasClass(x,"cc-bottom")&&z.clientY>C){A=true;}if(A){if(!b.hasClass(x,"cc-active")){b.addClass(x,"cc-active");}}else{if(b.hasClass(x,"cc-active")){b.removeClass(x,"cc-active");}}},200);this.onMouseMove=y;window.addEventListener("mousemove",y);}}}return m;})();a.Location=(function(){var g={timeout:5000,services:["ipinfo"],serviceDefinitions:{ipinfo:function(){return{url:"//ipinfo.io",headers:["Accept: application/json"],callback:function(i,l){try{var k=JSON.parse(l);return k.error?h(k):{code:k.country};}catch(j){return h({error:"Invalid response ("+j+")"});}}};},ipinfodb:function(i){return{url:"//api.ipinfodb.com/v3/ip-country/?key={api_key}&format=json&callback={callback}",isScript:true,callback:function(j,m){try{var l=JSON.parse(m);return l.statusCode=="ERROR"?h({error:l.statusMessage}):{code:l.countryCode};}catch(k){return h({error:"Invalid response ("+k+")"});}}};},maxmind:function(){return{url:"//js.maxmind.com/js/apis/geoip2/v2.1/geoip2.js",isScript:true,callback:function(i){if(!window.geoip2){i(new Error("Unexpected response format. The downloaded script should have exported `geoip2` to the global scope"));return;}geoip2.country(function(j){try{i({code:j.country.iso_code});}catch(k){i(h(k));}},function(j){i(h(j));});}};}}};function d(i){b.deepExtend((this.options={}),g);if(b.isPlainObject(i)){b.deepExtend(this.options,i);}this.currentServiceIndex=-1;}d.prototype.getNextService=function(){var i;do{i=this.getServiceByIdx(++this.currentServiceIndex);}while(this.currentServiceIndex<this.options.services.length&&!i);return i;};d.prototype.getServiceByIdx=function(j){var k=this.options.services[j];if(typeof k==="function"){var i=k();if(i.name){b.deepExtend(i,this.options.serviceDefinitions[i.name](i));}return i;}if(typeof k==="string"){return this.options.serviceDefinitions[k]();}if(b.isPlainObject(k)){return this.options.serviceDefinitions[k.name](k); 104}return null;};d.prototype.locate=function(k,i){var j=this.getNextService();if(!j){i(new Error("No services to run"));return;}this.callbackComplete=k;this.callbackError=i;this.runService(j,this.runNextServiceOnError.bind(this));};d.prototype.setupUrl=function(i){var j=this.getCurrentServiceOpts();return i.url.replace(/\{(.*?)\}/g,function(m,k){if(k==="callback"){var l="callback"+Date.now();window[l]=function(n){i.__JSONP_DATA=JSON.stringify(n);};return l;}if(k in j.interpolateUrl){return j.interpolateUrl[k];}});};d.prototype.runService=function(i,l){var k=this;if(!i||!i.url||!i.callback){return;}var j=i.isScript?f:e;var m=this.setupUrl(i);j(m,function(o){var n=o?o.responseText:"";if(i.__JSONP_DATA){n=i.__JSONP_DATA;delete i.__JSONP_DATA;}k.runServiceCallback.call(k,l,i,n);},this.options.timeout,i.data,i.headers);};d.prototype.runServiceCallback=function(j,n,k){var i=this;var m=function(o){if(!l){i.onServiceResult.call(i,j,o);}};var l=n.callback(m,k);if(l){this.onServiceResult.call(this,j,l);}};d.prototype.onServiceResult=function(i,j){if(j instanceof Error||(j&&j.error)){i.call(this,j,null);}else{i.call(this,null,j);}};d.prototype.runNextServiceOnError=function(i,k){if(i){this.logError(i);var j=this.getNextService();if(j){this.runService(j,this.runNextServiceOnError.bind(this));}else{this.completeService.call(this,this.callbackError,new Error("All services failed"));}}else{this.completeService.call(this,this.callbackComplete,k);}};d.prototype.getCurrentServiceOpts=function(){var i=this.options.services[this.currentServiceIndex];if(typeof i=="string"){return{name:i};}if(typeof i=="function"){return i();}if(b.isPlainObject(i)){return i;}return{};};d.prototype.completeService=function(i,j){this.currentServiceIndex=-1;i&&i(j);};d.prototype.logError=function(i){var k=this.currentServiceIndex;var j=this.getServiceByIdx(k);console.warn("The service["+k+"] ("+j.url+") responded with the following error",i);};function f(l,m,k){var j,i=document.createElement("script");i.type="text/"+(l.type||"javascript"); 105i.src=l.src||l;i.async=false;i.onreadystatechange=i.onload=function(){var n=i.readyState;clearTimeout(j);if(!m.done&&(!n||/loaded|complete/.test(n))){m.done=true;m();i.onreadystatechange=i.onload=null;}};document.body.appendChild(i);j=setTimeout(function(){m.done=true;m();i.onreadystatechange=i.onload=null;},k);}function e(p,s,o,n,m){var j=new (window.XMLHttpRequest||window.ActiveXObject)("MSXML2.XMLHTTP.3.0");j.open(n?"POST":"GET",p,1);j.setRequestHeader("Content-type","application/x-www-form-urlencoded");if(Array.isArray(m)){for(var q=0,r=m.length;q<r;++q){var k=m[q].split(":",2);j.setRequestHeader(k[0].replace(/^\s+|\s+$/g,""),k[1].replace(/^\s+|\s+$/g,""));}}if(typeof s=="function"){j.onreadystatechange=function(){if(j.readyState>3){s(j);}};}j.send(n);}function h(i){return new Error("Error ["+(i.code||"UNKNOWN")+"]: "+i.error);}return d;})();a.Law=(function(){var d={regionalLaw:true,hasLaw:["AT","BE","BG","HR","CZ","CY","DK","EE","FI","FR","DE","EL","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","SK","ES","SE","GB","UK","GR","EU"],revokable:["HR","CY","DK","EE","FR","DE","LV","LT","NL","PT","ES"],explicitAction:["HR","IT","ES"]};function e(f){this.initialise.apply(this,arguments);}e.prototype.initialise=function(f){b.deepExtend((this.options={}),d);if(b.isPlainObject(f)){b.deepExtend(this.options,f);}};e.prototype.get=function(f){var g=this.options;return{hasLaw:g.hasLaw.indexOf(f)>=0,revokable:g.revokable.indexOf(f)>=0,explicitAction:g.explicitAction.indexOf(f)>=0};};e.prototype.applyLaw=function(g,h){var f=this.get(h);if(!f.hasLaw){g.enabled=false;if(typeof g.onNoCookieLaw==="function"){g.onNoCookieLaw(h,f);}}if(this.options.regionalLaw){if(f.revokable){g.revokable=true;}if(f.explicitAction){g.dismissOnScroll=false;g.dismissOnTimeout=false;}}return g;};return e;})();a.initialise=function(g,j,f){var h=new a.Law(g.law);if(!j){j=function(){};}if(!f){f=function(){};}var e=Object.keys(a.status);var i=b.getCookie(g.cookie.name);var d=e.indexOf(i)>=0;if(d){j(new a.Popup(g)); 106return;}a.getCountryCode(g,function(k){delete g.law;delete g.location;if(k.code){g=h.applyLaw(g,k.code);}j(new a.Popup(g));},function(k){delete g.law;delete g.location;f(k,new a.Popup(g));});};a.getCountryCode=function(g,f,d){if(g.law&&g.law.countryCode){f({code:g.law.countryCode});return;}if(g.location){var e=new a.Location(g.location);e.locate(function(h){f(h||{});},d);return;}f({});};a.utils=b;a.hasInitialised=true;window.cookieconsent=a;})(window.cookieconsent||{});function CookieConsentProperties(){this.ShowLink=null;this.Message=null;this.Allow=null;this.Deny=null;this.Link=null;this.Href=null;this.Position=null;this.Static=null;this.Customize="Customize";this.Policy="Cookie Preferences";this.DialogTitle="Cookie Preferences";this.EssentialLabel="Essential";this.EssentialDescription="These cookies are required for the website to function properly. They enable core features such as page navigation, secure login, form submission, and access to protected areas.";this.FunctionalLabel="Functional";this.FunctionalDescription="Functional cookies allow the site to remember your preferences and improve your experience. They may store settings like language choice, display preferences, or saved items so you have a smoother and more personalized experience.";this.AnalyticsLabel="Analytics and statistics";this.AnalyticsDescription="Analytical cookies help us understand how visitors interact with our website by collecting anonymous data about page views, traffic sources, and general usage patterns.";this.MarketingLabel="Marketing";this.MarketingDescription="These cookies are used to deliver relevant advertising and measure campaign effectiveness. They may track how you interact with ads and personalize marketing content.";this.LearnMoreText="Learn more about our cookie policy";this.SaveButtonText="Save";this.AcceptAllButtonText="Accept All";}function SetUpCookieWarning(a){window.cookieconsent.initialise({revokable:true,onStatusChange:function(d){console.log(this.hasConsented()?"enable cookies":"disable cookies"); 107if(this._prefsWrittenByDialog){this._prefsWrittenByDialog=false;return;}var e=this.options.cookie;var b=d==="allow";
107window.cookieconsent.utils.setCookie("cookie_preferences",encodeURIComponent(JSON.stringify({functional:b,analytics:b,marketing:b})),e.expiryDays,e.domain,e.path,e.secure);},onRevokeChoice:function(){},onCustomize:function(){openCookieCustomizationDialog(this,a);},law:{regionalLaw:false},location:false,showLink:true,elements:{messagelink:'<span id="cookieconsent:desc" class="cc-message">{{message}} <a aria-label="learn more about cookies" tabindex="0" class="cc-link" href="{{href}}" target="_blank" rel="noopener noreferrer">{{link}}</a></span>'},content:{message:a.Message,allow:a.Allow||"Accept All",deny:a.Deny||"Reject All",customize:a.Customize||"Customize",link:a.Link,href:a.Href||"https://www.advsol.com/legal",policy:a.Policy||"Cookie Preferences"},compliance:{"default":'<div class="cc-compliance">{{customize}}{{deny}}{{allow}}</div>'},position:a.Position,staticc:a.Static,type:"default",cookie:{expiryDays:90,name:"cookieconsent_selection",secure:true}});}function openCookieCustomizationDialog(c,h){var g=document.createElement("div");g.className="modal in cc-preferences-modal";g.setAttribute("role","dialog");g.setAttribute("aria-label","Cookie Preferences");g.style.display="block";var b=document.createElement("div");b.className="modal-backdrop in cc-preferences-backdrop";var k=(h&&h.Href)||"https://www.advsol.com/legal";var j=c.options.cookie;var d=null;var a=window.cookieconsent.utils.getCookie("cookie_preferences");if(a){try{d=JSON.parse(decodeURIComponent(a));}catch(f){d=null;}}g.innerHTML='<div class="modal-dialog modal-dialog-centered"><div class="modal-content"><div class="modal-header"><button type="button" class="close" aria-label="Close">×</button><h2 class="modal-title">'+h.DialogTitle+'</h2></div><div class="modal-body"><div class="cc-cookie-category"><label><input type="checkbox" id="cc-essential" checked disabled> <strong>'+h.EssentialLabel+'</strong></label><p class="small">'+h.EssentialDescription+'</p></div><div class="cc-cookie-category"><label><input type="checkbox" id="cc-functional"> <strong>'+h.FunctionalLabel+'</strong></label><p class="small">'+h.FunctionalDescription+'</p></div><div class="cc-cookie-category"><label><input type="checkbox" id="cc-analytics"> <strong>'+h.AnalyticsLabel+'</strong></label><p class="small">'+h.AnalyticsDescription+'</p></div><div class="cc-cookie-category"><label><input type="checkbox" id="cc-marketing"> <strong>'+h.MarketingLabel+'</strong></label><p class="small">'+h.MarketingDescription+"</p></div>"+(k?'<a href="'+k+'" target="_blank" rel="noopener noreferrer">'+h.LearnMoreText+"</a>":"")+'</div><div class="modal-footer"><button id="cc-save-preferences" type="button" class="TextButton SecondaryButton">'+h.SaveButtonText+'</button><button id="cc-accept-all-custom" type="button" class="TextButton PrimaryButton">'+h.AcceptAllButtonText+"</button></div></div></div>"; 108document.body.appendChild(b);document.body.appendChild(g);document.body.classList.add("modal-open");if(d){document.getElementById("cc-functional").checked=!!d.functional;document.getElementById("cc-analytics").checked=!!d.analytics;document.getElementById("cc-marketing").checked=!!d.marketing;}function i(){if(g.parentNode){document.body.removeChild(g);}if(b.parentNode){document.body.removeChild(b);}document.body.classList.remove("modal-open");}g.querySelector(".close").addEventListener("click",i);document.getElementById("cc-save-preferences").addEventListener("click",function(){var e={functional:document.getElementById("cc-functional").checked,analytics:document.getElementById("cc-analytics").checked,marketing:document.getElementById("cc-marketing").checked};window.cookieconsent.utils.setCookie("cookie_preferences",encodeURIComponent(JSON.stringify(e)),j.expiryDays,j.domain,j.path,j.secure);var l=e.functional&&e.analytics&&e.marketing;c._prefsWrittenByDialog=true;c.setStatus(l?"allow":"deny");c.close(true);i();});document.getElementById("cc-accept-all-custom").addEventListener("click",function(){var e={functional:true,analytics:true,marketing:true};window.cookieconsent.utils.setCookie("cookie_preferences",encodeURIComponent(JSON.stringify(e)),j.expiryDays,j.domain,j.path,j.secure);c._prefsWrittenByDialog=true;c.setStatus("allow");c.close(true);i();});g.addEventListener("click",function(l){if(l.target===g){i();}});}(function($){$.fn.simplePaginate=function(options){var defaults={paginateElement:"li",hashPage:"page",elementsPerPage:10,effect:"default",firstButton:true,firstButtonText:"<<",lastButton:true,lastButtonText:">>",prevButton:true,prevButtonText:"<",nextButton:true,nextButtonText:">",hidePaginationNumbers:false,uniqueId:"id1",pagerLocation:"text-center"};return this.each(function(instance){var plugin={};
108plugin.el=$(this);plugin.el.addClass("simplePaginateList");plugin.settings={pages:0,objElements:Object,currentPage:1};var getNbOfPages=function(){return Math.ceil(plugin.settings.objElements.length/plugin.settings.elementsPerPage);};var displayNav=function(){htmlNav='<ul class="pagination '+plugin.settings.pagerLocation+' simplePaginateNav">';if(plugin.settings.firstButton){htmlNav+='<li class="page-item"><a href="#'+plugin.settings.hashPage+':1" title="First page" rel="1" class="page-link first">'+plugin.settings.firstButtonText+"</a></li>";}if(plugin.settings.prevButton){htmlNav+='<li class="page-item"><a href="" title="Previous" rel="" class="page-link prev">'+plugin.settings.prevButtonText+"</a></li>";}if(!plugin.settings.hidePaginationNumbers||plugin.settings.hidePaginationNumbers=="false"){for(i=1;i<=plugin.settings.pages;i++){htmlNav+='<li class="page-item"><a href="#'+plugin.settings.hashPage+":"+i+'" title="Page '+i+'" rel="'+i+'" class="page-link page">'+i+"</a></li>";}}else{htmlNav+='<li class="page-item disabled text-center"><a class="page-link" style="min-width:75px;"><span id="'+plugin.settings.uniqueId+'count">1</span> of '+plugin.settings.pages+"</a></li>";}if(plugin.settings.nextButton){htmlNav+='<li class="page-item"><a href="" title="Next" rel="" class="page-link next">'+plugin.settings.nextButtonText+"</a></li>";}if(plugin.settings.lastButton){htmlNav+='<li class="page-item"><a href="#'+plugin.settings.hashPage+":"+plugin.settings.pages+'" title="Last page" rel="'+plugin.settings.pages+'" class="page-link last">'+plugin.settings.lastButtonText+"</a></li>"; 109}htmlNav+="</ul>";plugin.nav=$(htmlNav);plugin.el.after(plugin.nav);var elSelector="#"+plugin.el.get(0).id+" + ";$(elSelector+" .simplePaginateNav a.page,"+elSelector+" .simplePaginateNav a.first,"+elSelector+" .simplePaginateNav a.last").on("click",function(e){e.preventDefault();displayPage($(this).attr("rel"));});$(elSelector+" .simplePaginateNav a.prev").on("click",function(e){e.preventDefault();page=plugin.settings.currentPage>1?parseInt(plugin.settings.currentPage)-1:1;displayPage(page);});$(elSelector+" .simplePaginateNav a.next").on("click",function(e){e.preventDefault();page=plugin.settings.currentPage<plugin.settings.pages?parseInt(plugin.settings.currentPage)+1:plugin.settings.pages;displayPage(page);});};var displayPage=function(page,forceEffect){if(plugin.settings.currentPage!=page){plugin.settings.currentPage=parseInt(page);offsetStart=(page-1)*plugin.settings.elementsPerPage;offsetEnd=page*plugin.settings.elementsPerPage;if(typeof(forceEffect)!="undefined"){eval("transition_"+forceEffect+"("+offsetStart+", "+offsetEnd+")");}else{eval("transition_"+plugin.settings.effect+"("+offsetStart+", "+offsetEnd+")");}plugin.nav.find(".current").removeClass("current");plugin.nav.find("a.page:eq("+(page-1)+")").addClass("current");if(!plugin.settings.hidePaginationNumbers||plugin.settings.hidePaginationNumbers=="false"){plugin.nav.find(".page-item").removeClass("active");plugin.nav.find(".page-link").closest("li").eq(page).addClass("active");}switch(plugin.settings.currentPage){case 1:$(".simplePaginateNav a",plugin).removeClass("disabled");$(".simplePaginateNav a.first, .simplePaginateNav a.prev",plugin).addClass("disabled");break;case plugin.settings.pages:$(".simplePaginateNav a",plugin).removeClass("disabled");$(".simplePaginateNav a.last, .simplePaginateNav a.next",plugin).addClass("disabled");break;default:$(".simplePaginateNav a",plugin).removeClass("disabled");break;}var uId="#"+plugin.settings.uniqueId+"count";$(uId).text("");$(uId).text(page);}};var transition_default=function(offsetStart,offsetEnd){plugin.currentElements.hide(); 110plugin.currentElements=plugin.settings.objElements.slice(offsetStart,offsetEnd).clone();plugin.el.html(plugin.currentElements);plugin.currentElements.show();};plugin.settings=$.extend({},defaults,options);plugin.currentElements=$([]);plugin.settings.objElements=plugin.el.find(plugin.settings.paginateElement);plugin.settings.pages=getNbOfPages();if(plugin.settings.pages>1){plugin.el.html();displayNav();page=1;if(document.location.hash.indexOf("#"+plugin.settings.hashPage+":")!=-1){page=parseInt(document.location.hash.replace("#"+plugin.settings.hashPage+":",""));if(page.length<=0||page<1||page>plugin.settings.pages){page=1;}}displayPage(page,"default");}});};})(jQuery);/* Copyright (c) 2011 Piotr Rochala (http://rocha.la) 111 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 112 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. 113 * 114 * Version: 1.3.8 115 * 116 */ 117(function(a){a.fn.extend({slimScroll:function(d){var c={width:"auto",height:"250px",size:"7px",color:"#000",position:"right",distance:"1px",start:"top",opacity:0.4,alwaysVisible:false,disableFadeOut:false,railVisible:false,railColor:"#333",railOpacity:0.2,railDraggable:true,railClass:"slimScrollRail",barClass:"slimScrollBar",wrapperClass:"slimScrollDiv",allowPageScroll:false,wheelStep:20,touchScrollStep:200,borderRadius:"7px",railBorderRadius:"7px"};var b=a.extend(c,d);this.each(function(){var r,q,v,y,f,e,z,E,u="<div></div>",k=30,o=false;var C=a(this);if(C.parent().hasClass(b.wrapperClass)){var l=C.scrollTop();m=C.siblings("."+b.barClass);D=C.siblings("."+b.railClass);x();if(a.isPlainObject(d)){if("height" in d&&d.height=="auto"){C.parent().css("height","auto");C.css("height","auto");var s=C.parent().parent().height();C.parent().css("height",s);C.css("height",s);}else{if("height" in d){var A=d.height;C.parent().css("height",A);C.css("height",A);}}if("scrollTo" in d){l=parseInt(b.scrollTo);}
117else{if("scrollBy" in d){l+=parseInt(b.scrollBy);}else{if("destroy" in d){m.remove();D.remove();C.unwrap();return;}}}p(l,false,true);}return;}else{if(a.isPlainObject(d)){if("destroy" in d){return;}}}b.height=(b.height=="auto")?C.parent().height():b.height;var g=a(u).addClass(b.wrapperClass).css({position:"relative",overflow:"hidden",width:b.width,height:b.height});C.css({overflow:"hidden",width:b.width,height:b.height});var D=a(u).addClass(b.railClass).css({width:b.size,height:"100%",position:"absolute",top:0,display:(b.alwaysVisible&&b.railVisible)?"block":"none","border-radius":b.railBorderRadius,background:b.railColor,opacity:b.railOpacity,zIndex:90});var m=a(u).addClass(b.barClass).css({background:b.color,width:b.size,position:"absolute",top:0,opacity:b.opacity,display:b.alwaysVisible?"block":"none","border-radius":b.borderRadius,BorderRadius:b.borderRadius,MozBorderRadius:b.borderRadius,WebkitBorderRadius:b.borderRadius,zIndex:99}); 118var i=(b.position=="right")?{right:b.distance}:{left:b.distance};D.css(i);m.css(i);C.wrap(g);C.parent().append(m);C.parent().append(D);if(b.railDraggable){m.bind("mousedown",function(h){var F=a(document);v=true;t=parseFloat(m.css("top"));pageY=h.pageY;F.bind("mousemove.slimscroll",function(G){currTop=t+G.pageY-pageY;m.css("top",currTop);p(0,m.position().top,false);});F.bind("mouseup.slimscroll",function(G){v=false;n();F.unbind(".slimscroll");});return false;}).bind("selectstart.slimscroll",function(h){h.stopPropagation();h.preventDefault();return false;});}D.hover(function(){j();},function(){n();});m.hover(function(){q=true;},function(){q=false;});C.hover(function(){r=true;j();n();},function(){r=false;n();});C.bind("touchstart",function(h,F){if(h.originalEvent.touches.length){f=h.originalEvent.touches[0].pageY;}});C.bind("touchmove",function(h){if(!o){h.originalEvent.preventDefault();}if(h.originalEvent.touches.length){var F=(f-h.originalEvent.touches[0].pageY)/b.touchScrollStep;p(F,true);f=h.originalEvent.touches[0].pageY;}});x();if(b.start==="bottom"){m.css({top:C.outerHeight()-m.outerHeight()});p(0,true);}else{if(b.start!=="top"){p(a(b.start).position().top,null,true);if(!b.alwaysVisible){m.hide();}}}B(this);function w(h){if(!r){return;}var h=h||window.event;var G=0;if(h.wheelDelta){G=-h.wheelDelta/120;}if(h.detail){G=h.detail/3;}var F=h.target||h.srcTarget||h.srcElement;if(a(F).closest("."+b.wrapperClass).is(C.parent())){p(G,true);}if(h.preventDefault&&!o){h.preventDefault();}if(!o){h.returnValue=false;}}function p(I,F,G){o=false;var h=I;var H=C.outerHeight()-m.outerHeight();if(F){h=parseInt(m.css("top"))+I*parseInt(b.wheelStep)/100*m.outerHeight();h=Math.min(Math.max(h,0),H);h=(I>0)?Math.ceil(h):Math.floor(h);m.css({top:h+"px"});}z=parseInt(m.css("top"))/(C.outerHeight()-m.outerHeight());h=z*(C[0].scrollHeight-C.outerHeight());if(G){h=I;var J=h/C[0].scrollHeight*C.outerHeight();J=Math.min(Math.max(J,0),H);m.css({top:J+"px"});}C.scrollTop(h);C.trigger("slimscrolling",~~h); 119j();n();}function B(h){if(window.addEventListener){h.addEventListener("DOMMouseScroll",w,false);h.addEventListener("mousewheel",w,false);}else{document.attachEvent("onmousewheel",w);}}function x(){e=Math.max((C.outerHeight()/C[0].scrollHeight)*C.outerHeight(),k);m.css({height:e+"px"});var h=e==C.outerHeight()?"none":"block";m.css({display:h});}function j(){x();clearTimeout(y);if(z==~~z){o=b.allowPageScroll;if(E!=z){var h=(~~z==0)?"top":"bottom";C.trigger("slimscroll",h);}}else{o=false;}E=z;if(e>=C.outerHeight()){o=true;return;}m.stop(true,true).fadeIn("fast");if(b.railVisible){D.stop(true,true).fadeIn("fast");}}function n(){if(!b.alwaysVisible){y=setTimeout(function(){if(!(b.disableFadeOut&&r)&&!q&&!v){m.fadeOut("slow");D.fadeOut("slow");}},1000);}}});return this;}});a.fn.extend({slimscroll:a.fn.slimScroll});})(jQuery);if(!this.JSON){this.JSON={};}(function(){function f(n){return n<10?"0"+n:n;}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null;};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf();};}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];
vendor: 2,084 bytes, lines 119-120
119return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4);})+'"':'"'+string+'"';}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key);}if(typeof rep==="function"){value=rep.call(holder,key,value);}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null";}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||"null";}v=partial.length===0?"[]":gap?"[\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"]":"["+partial.join(",")+"]";gap=mind;return v;}if(rep&&typeof rep==="object"){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==="string"){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v);}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value); 120if(v){partial.push(quote(k)+(gap?": ":":")+v);}}}}v=partial.length===0?"{}":gap?"{\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"}":"{"+partial.join(",")+"}";gap=mind;return v;}}if(typeof JSON.stringify!=="function"){JSON.stringify=function(value,replacer,space){var i;gap="";indent="";if(typeof space==="number"){for(i=0;i<space;i+=1){indent+=" ";}}else{if(typeof space==="string"){indent=space;}}rep=replacer;if(replacer&&typeof replacer!=="function"&&(typeof replacer!=="object"||typeof replacer.length!=="number")){throw new Error("JSON.stringify");}return str("",{"":value});};}if(typeof JSON.parse!=="function"){JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==="object"){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v;}else{delete value[k];}}}}return reviver.call(holder,key,value);}text=String(text);cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCo
120deAt(0).toString(16)).slice(-4);});}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof reviver==="function"?walk({"":j},""):j;}throw new SyntaxError("JSON.parse");};}}());(function(){var D={shift:1,ctrl:2,alt:4,meta:8};var m={launch:[{key:"\\",modifier:D.alt},{key:"s",modifier:D.alt}],up:["ArrowUp"],down:["ArrowDown"],pageup:["PageUp"],pagedown:["PageDown"],navigate:["Enter"]};var y=m.up.concat(m.down,m.navigate,m.pageup,m.pagedown);var L=10;var ac="\t";var C="\\t";var f=" > ";var r=null;var J=null;var H=null;var V=null;var B=F();var i=0;var ab=[];var k=false;var X;var q=0;var z="";var b=null;var I=null;var a=null;var w=-1;if(window!==window.parent){return;}document.addEventListener("keydown",function(ae){if(K(ae,m.launch)){ae.stopPropagation();ae.preventDefault();if(k){G();}else{Y();}}});function P(){try{if(typeof GetRadWindowManager==="function"){var af=GetRadWindowManager().get_windows();return af.some(function(ag){return ag.isVisible();});}}catch(ae){}return false;}function Y(){if(P()){return;}if(!d()){return;}if(!r){ad();}jQuery(r).modal("show");}function G(){jQuery(r).modal("hide");}function u(){k=true;J.focus();}function W(){k=false;E();}function E(){J.value="";z="";I=null;a=null;w=-1;i=0;clearTimeout(b);for(var ae=0;ae<ab.length;ae++){ab[ae].className="";ab[ae].style.display="none";}H.style.visibility="hidden";V.style.visibility="hidden";}function ad(){r=document.createElement("div");r.id="__NavSearchModal";r.className="modal fade";r.setAttribute("role","dialog");r.setAttribute("tabindex","-1");r.setAttribute("aria-modal","true");r.setAttribute("aria-label",B.title);var ak=document.createElement("div");ak.className="modal-dialog modal-dialog-top";var ai=document.createElement("div");ai.className="modal-content";var al=document.createElement("div");al.className="modal-header border-0";al.innerHTML='<h4 aria-hidden="true" class="modal-title FloatLeft">'+Z(B.title)+'</h4><button type="button" data-dismiss="modal" class="close" aria-label="'+Z(B.close)+'"><span aria-hidden="true">×</span></button>';ai.appendChild(al);var ae=document.createElement("div");ae.className="nav-search-component modal-body";J=document.createElement("input"); 121J.type="text";J.id="__NavSearchInput";J.className="nav-search-input InputXLarge FullWidth";J.autocomplete="off";J.setAttribute("aria-label",B.input);ae.appendChild(J);H=document.createElement("div");H.className="nav-search-scroll-indicator";H.style.visibility="hidden";H.setAttribute("aria-hidden","true");var ah=document.createElement("a");ah.className="sysicon sysicon-move-up";ah.setAttribute("href","#");ah.innerHTML='<span class="text-hide">'+Z(B.scrollUp)+"</span>";H.appendChild(ah);ah.addEventListener("click",function(an){an.preventDefault();U(-1);});ae.appendChild(H);var am=document.createElement("div");am.id="__NavSearchResults";am.className="nav-search-results-wrapper";for(var af=0;af<L;af++){var aj=document.createElement("a");aj.style.display="none";aj.setAttribute("data-result-index",af);am.appendChild(aj);ab.push(aj);aj.addEventListener("focus",t);aj.addEventListener("keydown",function(an){if(!k){return;}T(an);});aj.addEventListener("keyup",function(an){if(!k){return;}R(an);});}am.addEventListener("wheel",S,{passive:false});ae.appendChild(am);V=document.createElement("div");V.className="nav-search-scroll-indicator";V.style.visibility="hidden";V.setAttribute("aria-hidden","true");var ag=document.createElement("a");ag.className="sysicon sysicon-move-down";ag.setAttribute("href","#");ag.innerHTML='<span class="text-hide">'+Z(B.scrollDown)+"</span>";V.appendChild(ag);ag.addEventListener("click",function(an){an.preventDefault();U(1);});ae.appendChild(V);ai.appendChild(ae);ak.appendChild(ai);r.appendChild(ak);document.body.appendChild(r);jQuery(r).on("shown.bs.modal",u);jQuery(r).on("hidden.bs.modal",W);J.addEventListener("keyup",function(an){if(!k){return;}R(an);});J.addEventListener("keydown",function(an){if(!k){return;}T(an);});}function t(ae){if(!k){return;}n(parseInt(ae.target.getAttribute("data-result-index")));}function S(af){af.preventDefault();if(!a||a.length===0){return;}var ae=af.deltaY;var ag=ae>0?1:(ae<0?-1:0);if(ag===0){return;}U(ag);}function T(ae){if(K(ae,m.down)){ae.stopPropagation(); 122ae.preventDefault();c(1,true);return;}if(K(ae,m.up)){ae.stopPropagation();ae.preventDefault();c(-1,true);return;}if(K(ae,m.pagedown)){ae.stopPropagation();ae.preventDefault();aa(1,true);return;}if(K(ae,m.pageup)){ae.stopPropagation();ae.preventDefault();aa(-1,true);return;}if(K(ae,m.navigate)){ae.stopPropagation();ae.preventDefault();g();return;}}function R(ae){if(K(ae,y)){ae.stopPropagation();ae.preventDefault();return;}if(J.value!==z){ae.stopPropagation();clearTimeout(b);b=setTimeout(s,150);}}function c(af,ag){if(!a||a.length===0){return;}if(w<0){n(af===1?0:a.length-1,ag);return;}var ae=w+af;if(af===1&&ae>=a.length){if(i+a.length<I.length){i++;o();n(a.length-1,ag);}}else{if(af===-1&&ae<0){if(i>0){i--;o();n(0,ag);}}else{n(ae,ag);}}}function U(af,ah){if(!a||a.length===0){return;}var ag=af===1?i+a.length<I.length:i>0;if(!ag){return;}var ai=w>=0?i+w:-1;i+=af;o();if(ai>=0){var ae=ai-i;if(ae<0){n(0,ah);}else{if(ae>=a.length){n(a.length-1,ah);}else{n(ae,ah);}}}}function aa(ag,ai){if(!a||a.length===0){return;}var af=a.length-1;if(af<=0){return;}var ah=i;
122if(ag===1){i=Math.min(i+af,Math.max(0,I.length-L));}else{i=Math.max(i-af,0);}var ae=i!==ah;if(ae){o();n(ag===1?0:a.length-1,ai);}else{n(ag===1?a.length-1:0,ai);}}function g(){if(w<0||w>=a.length){return;}var ae=X[a[w].index].target;G();window.location.href=ae;}function s(){z=J.value;I=x(J.value,X)||[];O();if(typeof document.ariaNotify=="function"){document.ariaNotify(""+I.length+B.matches);}}function x(ak,ag){ak=ak.replace(/\s+/g," ").trim();ak=e(ak);if(ak.length===0){return;}var af=[];var ai=v(ak);var am=ak.indexOf(" ")!==-1;var aj=!am&&ak.length>1&&ak.length<=4;var ah=am?ai.split(" "):null;var ae=aj?ak.split("").map(v):null;af.push(j(ag,new RegExp("(?:^|"+C+")("+ai+")$","ig")));af.push(j(ag,new RegExp("\\b("+ai+")\\b[^"+C+"]*$","ig")));af.push(j(ag,new RegExp("\\b("+ai+")[^"+C+"]*$","ig")));if(am){af.push(j(ag,new RegExp(ah.reduce(function(an,ao){return an+"\\b("+ao+")[^"+C+"]*";},"")+"$","ig")));}if(aj){af.push(j(ag,new RegExp(ae.reduce(function(ao,an){return ao+"\\b("+an+")[^"+C+"]*"; 123},"")+"$","ig")));}af.push(j(ag,new RegExp("("+ai+")[^"+C+"]*$","ig")));if(am){af.push(j(ag,new RegExp(ah.reduce(function(an,ao){return an+"\\b[^"+C+"]*("+ao+")[^"+C+"]*";},"")+"$","ig")));}af.push(j(ag,new RegExp("\\b("+ai+")\\b.*"+C,"ig")));af.push(j(ag,new RegExp("\\b("+ai+").*"+C,"ig")));if(am){af.push(j(ag,new RegExp(ah.reduce(function(an,ao){return an+"\\b("+ao+")[^"+C+"]*";},"")+C,"ig")));}if(aj){af.push(j(ag,new RegExp(ae.reduce(function(ao,an){return ao+"\\b("+an+")[^"+C+"]*";},"")+C,"ig")));}if(am){af.push(j(ag,new RegExp(ah.reduce(function(an,ao){return an+"\\b("+ao+").*";},""),"ig")));}if(aj){af.push(j(ag,new RegExp(ae.reduce(function(ao,an){return ao+"\\b("+an+").*";},""),"ig")));}if(am){var al=ah.reduce(function(an,ao){return an+"(?=.*\\b"+ao+")";},"^");af.push(j(ag,new RegExp(al,"ig")));}return A(af);}function O(){i=0;o();n(0);}function o(){a=[];for(var ai=0;ai<ab.length&&(i+ai)<I.length;ai++){var ah=I[i+ai];ab[ai].style.display="block";ab[ai].textContent=X[ah.index].displayPath;ab[ai].setAttribute("href",X[ah.index].target);a.push(ah);}for(var ae=a.length;ae<ab.length;ae++){ab[ae].style.display="none";}var ag=i>0;var af=i+a.length<I.length;H.style.visibility=ag?"visible":"hidden";H.setAttribute("aria-hidden",ag?"false":"true");V.style.visibility=af?"visible":"hidden";V.setAttribute("aria-hidden",af?"false":"true");}function n(af,ae){if(a.length===0||af>=a.length){af=-1;}if(w>=0){ab[w].className="";}w=af;if(af>=0){ab[af].className="nav-search-results-highlighted-item";if(ae&&ab.indexOf(document.activeElement)>=0){ab[af].focus();}}}function v(ae){return ae.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");}function j(ae,af){return ae.filter(function(ag){return ag.searchPath.match(af);}).map(function(ag){return{index:ag.index};});}function A(ag){var ai={};var ak=[];for(var aj=0;aj<ag.length;aj++){var ah=ag[aj];for(var ae=0;ae<ah.length;ae++){var af=ah[ae];if(!ai.hasOwnProperty(af.index)){ai[af.index]=true;ak.push(af);}}}return ak;}function K(af,ae){if(af.isComposing||af.keyCode===229){return false; 124}for(var ag=0;ag<ae.length;ag++){var aj=ae[ag];var ai=typeof aj==="object"?aj.key:aj;var ah=typeof aj==="object"?aj.modifier:0;if(af.key===ai&&!!(ah&D.shift)===af.shiftKey&&!!(ah&D.ctrl)===af.ctrlKey&&!!(ah&D.alt)===af.altKey&&!!(ah&D.meta)===af.metaKey){return true;}}return false;}var l=function(ae){return ae.get_nodes();};var p=function(af,ae){return af.getNode(ae);};var M=function(ae){return ae.get_items();};var N=function(af,ae){return af.getItem(ae);};function d(){if(!(window.Asi&&window.Asi.NavSearch&&window.Asi.NavSearch.Controls&&window.Asi.NavSearch.Controls.length>0)){return false;}if(window.Asi.NavSearch.Controls.length===q){return true;}X=[];for(var ai=0;ai<window.Asi.NavSearch.Controls.length;ai++){var ak=window.Asi.NavSearch.Controls[ai];var ah=h(ak);if(ah==="RadTreeView"){var ae=l(ak);for(var af=0;af<ae.get_count();af++){Q(p(ae,af),[],l,p);}}else{if(ah==="RadMenu"){var aj=M(ak);for(var ag=0;ag<aj.get_count();ag++){Q(N(aj,ag),[],M,N);}}}}q=window.Asi.NavSearch.Controls.length;return true;}function h(ae){if(typeof Telerik!=="undefined"&&Telerik&&Telerik.Web&&Telerik.Web.UI&&Telerik.Web.UI.RadTreeView&&typeof Telerik.Web.UI.RadTreeView.isInstanceOfType==="function"&&Telerik.Web.UI.RadTreeView.isInstanceOfType(ae)){return"RadTreeView";}if(typeof Telerik!=="undefined"&&Telerik&&Telerik.Web&&Telerik.Web.UI&&Telerik.Web.UI.RadMenu&&typeof Telerik.Web.UI.RadMenu.isInstanceOfType==="function"&&Telerik.Web.UI.RadMenu.isInstanceOfType(ae)){return"RadMenu";}return"unknown";}function Q(an,ae,aj,ag){if(!(an.get_enabled()&&an.get_visible())){return;}var ah=an.get_textElement();var ai=ah?ah.innerText.replace(/\s+/g," ").trim():"";var al=ae.concat([ai]);var ak=aj(an);if(ak&&ak.get_count()>0){for(var af=0;af<ak.get_count();af++){Q(ag(ak,af),al,aj,ag);}return;}var am=an.get_navigateUrl();if(!(am&&ai)){return;}X.push({index:X.length,displayPath:al.join(f),searchPath:e(al.join(ac)),target:am});}
124function e(ae){return ae.normalize("NFD").replace(/[\u0300-\u036f]/g,"");}function Z(ae){return ae.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"); 125}function F(){var af={title:"Find a page",close:"Close",input:"Type to search",scrollUp:"Scroll up",scrollDown:"Scroll down",matches:"matches"};var ae=document.getElementById("__NavSearchTranslations");if(!ae){return af;}var ag=ae.value.split("\t");if(ag.length!==6){return af;}af.title=ag[0];af.close=ag[1];af.input=ag[2];af.scrollUp=ag[3];af.scrollDown=ag[4];af.matches=ag[5];return af;}}());function isArray(a){if(a.constructor.toString().indexOf("Array")==-1){return false;}else{return true;}}function OnObjectBrowserLoad(){if(jQuery(".ObjectBrowserContentItem")!=null&&jQuery("[tabindex='0'].ObjectBrowserContentItem").length===0){jQuery(".ObjectBrowserContentItem").first().attr("tabindex","0");}if(jQuery(".ObjectBrowserWrapper .rtLI")!=null&&jQuery(".ObjectBrowserWrapper .rtLI > div[tabindex='0']").length===0){if(jQuery(".TreeNodeSelect")){jQuery(".TreeNodeSelect").attr("tabindex","0");}else{jQuery(".ObjectBrowserWrapper .rtLI > div").first().attr("tabindex","0");}}}jQuery(document).ready(function(){Sys.WebForms.PageRequestManager.getInstance().add_endRequest(OnObjectBrowserLoad);});function DocumentObject(b,g,d,i,a,j,h,e,f,k,c,l){this.HierarchyKey=b;this.DocumentVersionKey=g;this.DocumentTypeCode=d;this.DocumentName=i;this.RelatedDocumentVersionKey=a;this.RelatedDocumentTypeCode=j;this.RelatedHierarchyKey=h;this.ParentName=e;this.CanPaste=f;this.CanCopy=k;this.CanCut=c;this.IsContainer=l;}function ObjectBrowserClass(){this.EmptyGuid="";this.ClickedNode="";this.SelectRowLastId="";this.TreeViewOnLoad=function(sender,eventArgs){var treeview=$find(this.RadTreeViewClientID);if(treeview!=null){var selectedNode=treeview.get_selectedNode();selectedNode=treeview.findNodeByValue(this.ClickedNode);if(selectedNode!=null){var nodeElement=selectedNode.get_element();var treeViewElement=treeview.get_element();var nodeOffsetTop=treeview._getTotalOffsetTop(nodeElement);var treeOffsetTop=treeview._getTotalOffsetTop(treeViewElement);var relativeOffsetTop=nodeOffsetTop-treeOffsetTop;window.setTimeout(function(){treeViewElement.scrollTop=relativeOffsetTop;},500);}}};this.DocumentObjectFromNode=function(node){if(!node){return null;}return new DocumentObject(node.get_value(),node.get_attributes().getAttribute("DocumentVersionKey"),node.get_attributes().getAttribute("data-DocumentTypeCode"),node.get_attributes().getAttribute("data-DocumentName"),null,null,null,node.get_parent()!=node.get_treeView()?node.get_parent().get_text():"",eval(node.get_attributes().getAttribute("data-CanPaste")),eval(node.get_attributes().getAttribute("data-CanCopy")),eval(node.get_attributes().getAttribute("data-CanCut")),eval(node.get_attributes().getAttribute("data-IsContainer"))); 126};this.DocumentObjectFromRow=function(row){return new DocumentObject(row.getAttribute("data-HierarchyKey"),row.id,row.getAttribute("data-DocumentTypeCode"),row.getAttribute("data-DocumentName"),row.getAttribute("RelatedDocumentVersionkey"),row.getAttribute("data-RelatedDocumentTypeCode"),row.getAttribute("data-RelatedHierarchyKey"),row.getAttribute("data-ParentName"),eval(row.getAttribute("data-CanPaste")),eval(row.getAttribute("data-CanCopy")),eval(row.getAttribute("data-CanCut")),eval(row.getAttribute("IsContainer")));};this.GetSelectedItems=function(useFolderIfNoRowsSelected){var selectedRows=this.GetSelectedRows();var selectedItems=[];if(selectedRows&&selectedRows.length>0){for(var i=0;i<selectedRows.length;i++){selectedItems.push(this.DocumentObjectFromRow(selectedRows[i]));}}else{if(useFolderIfNoRowsSelected){var selectedNode=this.GetSelectedNode();if(selectedNode){var currentFolder=this.DocumentObjectFromNode(selectedNode);selectedItems.push(currentFolder);}}}return selectedItems;};this.GeneralClick=function(menuItem){var selectedNode=this.GetSelectedNode();var currentFolder=null;if(selectedNode){currentFolder=this.DocumentObjectFromNode(selectedNode);}var selectedItems=this.GetSelectedItems(true);if(menuItem.get_attributes().getAttribute("DocumentType")!==null){this.PerformAction(menuItem.get_value(),selectedItems,currentFolder,menuItem.get_attributes().getAttribute("DocumentType"));}else{this.PerformAction(menuItem.get_value(),selectedItems,currentFolder);}};this.MenuClick=function(sender,args){var numItems=args._item.get_items().length;if(numItems){this.MenuClose();}if(args._item.get_value()&&args._item.get_value().length>0){this.GeneralClick(args._item);if(window.event){window.event.returnValue=false;}return false;}return true;};this.GetDocumentVersionKeysString=function(selectedItems,optional){var selectedItemKeys="";if(selectedItems){for(var i=0;i<selectedItems.length;
126i++){if(optional&&selectedItems[i].DocumentTypeCode=="DBB"){selectedItemKeys+=","+selectedItems[i].DocumentVersionKey+"|"+selectedItems[i].DocumentName; 127}else{selectedItemKeys+=","+selectedItems[i].DocumentVersionKey;}}}return selectedItemKeys.substr(1);};this.GetHierarchyKeysString=function(selectedItems){var selectedItemKeys="";if(selectedItems){for(var i=0;i<selectedItems.length;i++){selectedItemKeys+=","+selectedItems[i].HierarchyKey;}}return selectedItemKeys.substr(1);};this.EditAction=null;this.ExecuteAction=null;this.DownloadAction=null;this.SelectAction=null;this.ImportAction=null;this.VersionsAction=null;this.PreviewAction=null;this.SelectAndReturnValueAction=null;this.ExportAction=null;this.SubmitAction=null;this.PublishAction=null;this.RequestDeleteAction=null;this.DeleteAction=null;this.PurgeAction=null;this.NewAction=null;this.CutAction=null;this.CopyAction=null;this.PasteAction=null;this.RefreshAction=null;this.SelectAllAction=null;this.PurgeAllAction=null;this.UndoAction=null;this.RadTreeViewClientID=null;this.PerformAction=function(action,selectedItems,currentFolder,type){var i=0;this.SetSelectedKeys(selectedItems);action=action.toLowerCase();switch(action){case this.EditAction:case this.ExecuteAction:case this.SelectAction:case this.ImportAction:case this.VersionsAction:this.ShowActionForm(action,selectedItems,currentFolder,true);break;case this.DownloadAction:case this.PreviewAction:this.ShowActionForm(action,selectedItems,currentFolder,true);this.UpdateMenu();break;case this.SelectAndReturnValueAction:this.SelectAndReturnValue();break;case this.ExportAction:case this.SubmitAction:case this.PublishAction:this.ShowActionForm(action,selectedItems,currentFolder,false);break;case this.RequestDeleteAction:this.ShowActionForm(action,selectedItems,currentFolder,false,"Are you sure you want to request deletion of the selected object(s)?");break;case this.DeleteAction:var deleteMessage="";for(i=0;i<selectedItems.length;i++){if(deleteMessage!==null){deleteMessage+=selectedItems[i].DocumentName;if(selectedItems.length>1&&i!==selectedItems.length-1){deleteMessage+=", ";}}}this.ShowActionForm(action,selectedItems,currentFolder,false,"Are you sure you want to delete "+deleteMessage+" and all of their children?"); 128var ob=this;var newDialogWindowClose=function(dialogWindow){try{var currentHierarchyKey=$("CurrentHierarchyKey").value;var selectedKeys=$("SelectedKeys").value;if(dialogWindow.IsDirty&&selectedKeys!==null&¤tHierarchyKey!==null&&selectedKeys==currentHierarchyKey){var tree=$find(ob.RadTreeViewClientID);var sn=tree.get_selectedNode();if(sn.get_parent()!=sn.get_treeView()){var selectedKey=sn.get_parent().get_value();ob.SelectNode(selectedKey);$("CurrentHierarchyKey").value=selectedKey;}}if(dialogWindow.IsDirty){ob.RefreshNode();}}finally{ob.DialogWindowClose=window.oldDialogWindowClose;window.oldDialogWindowClose=null;}};window.oldDialogWindowClose=this.DialogWindowClose;this.DialogWindowClose=newDialogWindowClose;break;case this.PurgeAction:if(!selectedItems||selectedItems.length===0||selectedItems[0].DocumentName===undefined){alert(this.MessageNothingSelected);return;}var purgeMessage="";for(i=0;i<selectedItems.length;i++){if(purgeMessage!==null){purgeMessage+=selectedItems[i].DocumentName;if(selectedItems.length>1&&i!==selectedItems.length-1){purgeMessage+=", ";}}}this.ShowActionForm(action,selectedItems,currentFolder,false,"Are you sure you want to PERMANENTLY delete "+purgeMessage+" and all of their children? You will not be able to undo this operation.");var obj=this;var newDialogWindowClose1=function(dialogWindow){try{var currentHierarchyKey=$("CurrentHierarchyKey").value;var selectedKeys=$("SelectedKeys").value;if(dialogWindow.IsDirty&&selectedKeys!==null&¤tHierarchyKey!==null&&selectedKeys==currentHierarchyKey){var tree=$find(obj.RadTreeViewClientID);var sn=tree.get_selectedNode();if(sn.get_parent()!=sn.get_treeView()){var selectedKey=sn.get_parent().get_value();obj.SelectNode(selectedKey);$("CurrentHierarchyKey").value=selectedKey;}}if(dialogWindow.IsDirty){obj.RefreshNode();}}
128finally{obj.DialogWindowClose=window.oldDialogWindowClose;window.oldDialogWindowClose=null;}};window.oldDialogWindowClose=this.DialogWindowClose;this.DialogWindowClose=newDialogWindowClose1; 129break;case this.NewAction:if(!type||!type.length){return;}this.ShowNewForm(currentFolder,type);break;case this.CutAction:if(!selectedItems||selectedItems.length===0){alert(this.MessageNothingSelected);return;}var cutCopyMessage="Cut: ";for(i=0;i<selectedItems.length;i++){if(!selectedItems[i].CanCut){alert("Cannot move "+selectedItems[i].DocumentName+". Operation cancelled.");return;}if(cutCopyMessage!==null&&i<2){cutCopyMessage+=selectedItems[i].DocumentName;if(selectedItems.length>1&&i===0){cutCopyMessage+=", ";}}}if(selectedItems.length>2){cutCopyMessage+=" and "+(selectedItems.length-2)+" more item";if(selectedItems.length>3){cutCopyMessage+="s";}}showStatusMessage(cutCopyMessage,"Success");this.SetValueToClipboard(this.GetHierarchyKeysString(selectedItems));this.SetDocTypeToClipboard(selectedItems[0].DocumentTypeCode);document.getElementById("ClipboardCutCopy").value=action;break;case this.CopyAction:if(!selectedItems||selectedItems.length===0){alert(this.MessageNothingSelected);return;}cutCopyMessage="Copied: ";for(i=0;i<selectedItems.length;i++){if(!selectedItems[i].CanCopy){alert("Cannot copy "+selectedItems[i].DocumentName+". Operation cancelled.");return;}if(cutCopyMessage!==null&&i<2){cutCopyMessage+=selectedItems[i].DocumentName;if(selectedItems.length>1&&i===0){cutCopyMessage+=", ";}}}if(selectedItems.length>2){cutCopyMessage+=" and "+(selectedItems.length-2)+" more item";if(selectedItems.length>3){cutCopyMessage+="s";}}showStatusMessage(cutCopyMessage,"Success");this.SetValueToClipboard(this.GetHierarchyKeysString(selectedItems));this.SetDocTypeToClipboard(selectedItems[0].DocumentTypeCode);document.getElementById("ClipboardCutCopy").value=action;break;case this.PasteAction:this.PasteObjects(selectedItems);break;case this.RefreshAction:this.RefreshNode();break;case this.SelectAllAction:this.SelectAllRows();break;case this.PurgeAllAction:if(!confirm("Are you sure you want to PERMANENTLY delete the contents of the recycle bin? You will not be able to undo this operation.")){return; 130}this.SelectAllRows();var selectedRows=this.GetSelectedRows();selectedItems=[];if(selectedRows&&selectedRows.length>0){for(i=0;i<selectedRows.length;i++){selectedItems.push(this.DocumentObjectFromRow(selectedRows[i]));}}this.ShowActionForm(this.PurgeAction,selectedItems,currentFolder,false,null);break;}};this.MainMenuClientID=null;this.MenuClose=function(){var menu=document.getElementById(this.MainMenuClientID);menu.Close();};this.SetValueToClipboard=function(clipboardValue){document.getElementById("Clipboard").value=clipboardValue;};this.SetDocTypeToClipboard=function(firstClipboardDocumentType){document.getElementById("DocumentTypeClipboard").value=firstClipboardDocumentType;};this.SetSelectedKeys=function(selectedItems){document.getElementById("SelectedKeys").value=this.GetHierarchyKeysString(selectedItems);};this.MessageNothingSelected=null;this.MessageMoreThanOneSelected=null;this.ClipboardOperationTargetHierarchyKey=null;this.PasteObjects=function(selectedItems){if(!selectedItems||!selectedItems.length){alert(this.MessageNothingSelected);return false;}else{if(selectedItems.length>1){alert(this.MessageMoreThanOneSelected);return false;}}var selectedItem=selectedItems[0];if(selectedItem.CanPaste){document.getElementById("SelectedKeys").value=document.getElementById("Clipboard").value;this.ClipboardOperationTargetHierarchyKey=selectedItem.HierarchyKey;var pasteItemDocumentType="";var docType=document.getElementById("DocumentTypeClipboard").value;if(docType!=""&&docType!=null){pasteItemDocumentType=docType;}else{pasteItemDocumentType=selectedItem.DocumentTypeCode;}if(pasteItemDocumentType=="WEB"){document.getElementById(this.NewDocNameID).value="";this.ShowRenameDialog();}else{var ob=this;PageMethods.CheckForPasteConflict(document.getElementById("SelectedKeys").value,selectedItem.HierarchyKey,function(showConflictDialog,userContext,methodName){ob.CheckForPasteConflict_Succeeded(showConflictDialog,userContext,methodName);},function(error,userContext,methodName){ob.OnFailed(error,userContext,methodName); 131});}}};this.DocumentExistsMessage=null;this.MoveObjectsButtonID=null;this.CopyObjectsButtonID=null;this.ConflictingPathResolutionSkip=null;this.CheckForPasteConflict_Succeeded=function(showConflictDialog,userContext,methodName){if(showConflictDialog){var ob=this;ShowDialog_NoReturnValue(gWebRoot+"/iMIS/BSA/ConflictResolution.aspx",null,500,500,this.DocumentExistsMessage,null,null,function(dialogWindow){ob.ConflictDialog_Close(dialogWindow);},"ObjectBrowserDialog",false,false,function(dialogWindow){ob.DialogWindowCallback(dialogWindow);});return;}document.getElementById("ConflictResolution").value="";var controlUniqueID=document.getElementById("ClipboardCutCopy").value=="cut"?this.MoveObjectsButtonID:this.CopyObjectsButtonID;InitiatePostBack(controlUniqueID,this.ClipboardOperationTargetHierarchyKey);};this.ConflictDialog_Close=function(dialogWindow){var dialogResult=dialogWindow.result;if(!dialogResult||dialogResult==this.ConflictingPathResolutionSkip){return;}document.getElementById("ConflictResolution").value=dialogResult;var controlUniqueID=document.getElementById("ClipboardCutCopy").value=="cut"?this.MoveObjectsButtonID:this.CopyObjectsButtonID;InitiatePostBack(controlUniqueID,this.ClipboardOperationTargetHierarchyKey);};this.refreshRequested=false;this.RefreshFolderButtonID=null;this.DialogWindowCallback=function(dialogWindow){if(this.refreshRequested&&dialogWindow.IsDirty){this.RefreshNode();}};
131this.DialogWindowClose=function(dialogWindow){if(this.refreshRequested&&dialogWindow.IsDirty){this.RefreshNode();}};this.RefreshNode=function(){this.refreshRequested=false;var selectedNode=this.GetSelectedNode();var menu=null;try{menu=this.MainMenuClientID;}catch(exc){}if(menu){this.DisableMenuItems(menu);}if(selectedNode){InitiatePostBack(this.RefreshFolderButtonID,selectedNode.get_value());}else{InitiatePostBack(this.RefreshFolderButtonID);}};this.NewDocNameID=null;this.ShowRenameDialog=function(){var ob=this;var win=ShowDialog(gWebRoot+"/iMIS/ContentManagement/CopyWebsite.aspx",null,500,400,"Copy website",null,null,function(dialogWindow){ob.ShowRenameDialogCallback(dialogWindow); 132},"Copy website",false,false,function(dialogWindow){ob.DialogWindowClose(dialogWindow);});win.set_modal(true);setTimeout(function(){win.setActive(true);},0);};this.ShowRenameDialogCallback=function(radWindow){if(!radWindow.result||this.NewDocNameID==undefined||this.NewDocNameID==null){return;}document.getElementById(this.NewDocNameID).value="";document.getElementById(this.NewDocNameID).value=radWindow.result;if(radWindow.result!=""&radWindow.result!=null){radWindow.result="";radWindow.DestroyOnClose=true;radWindow.close();InitiatePostBack(this.CopyObjectsButtonID,this.ClipboardOperationTargetHierarchyKey);}};this.ShowMenu=false;this.UpdateMenuButtonID=null;this.UpdateMenu=function(){if(this.ShowMenu){this.SetSelectedKeys(this.GetSelectedItems(true));InitiatePostBack(this.UpdateMenuButtonID);}};this.DisableMenuItems=function(menu){if(!menu){return;}var children=menu.Items;if(!children||!children.length){return;}for(var i=0;i<children.length;++i){var child=children[i];child.Disable();this.DisableMenuItems(child);}};this.AllowMultiSelect=false;this.AllowSingleClickAction=false;this.RowClick=function(rowObject,e){if(e!==null&&IsCtrl(e)&&this.AllowMultiSelect){if(this.IsSelected(rowObject)){this.DeselectRow(rowObject);}else{this.SelectRow(rowObject);}}else{if(e!==null&&IsShift(e)&&this.AllowMultiSelect){var grid=rowObject.parentNode.parentNode;var selectedRows=this.GetSelectedRows(grid);this.DeselectAllRows(grid);if(selectedRows!==null&&selectedRows.length>0){var lastSelectedRow=selectedRows[0],i=0;if(lastSelectedRow.rowIndex<rowObject.rowIndex){for(i=lastSelectedRow.rowIndex;i<rowObject.rowIndex;i++){this.SelectRow(grid.rows[i],true);}}else{for(i=lastSelectedRow.rowIndex;i>rowObject.rowIndex;i--){this.SelectRow(grid.rows[i],true);}}}this.SelectRow(rowObject);}else{this.DeselectAllRows(rowObject.parentNode.parentNode);this.SelectRow(rowObject,false);}}jQuery("[tabindex='0'].ObjectBrowserContentItem").each(function(){jQuery(this).attr("tabindex","-1");});rowObject.setAttribute("tabindex","0"); 133if(this.AllowSingleClickAction){this.SelectAndReturnValue();return;}};this.ShowHierarchyTree=false;this.SelectNodeButtonID=null;this.DoubleClickAction=null;this.RowKeyDown=function(rowObject,e,isRecycle){if(e.keyCode===37||e.keyCode===38||e.keyCode===39||e.keyCode===40){var nextElem=null;if(e.keyCode===37||e.keyCode===39){this.RowClick(rowObject,e);}if(e.keyCode===38){nextElem=rowObject.previousElementSibling;}if(e.keyCode===40){nextElem=rowObject.nextElementSibling;}if(nextElem!=null){nextElem.focus();this.RowClick(nextElem,e);}else{return false;}}else{if(e.keyCode===13){this.RowDblClick(rowObject,e,isRecycle);}else{return false;}}};this.TreeViewKeyPress=function(sender,eventArgs){var key=eventArgs.get_domEvent().keyCode;if(key<37||key>40){return;}var tree=$find(this.RadTreeViewClientID);var node=tree.get_selectedNode();var nextNode;if(key===38||key===40){var nodes=tree.get_allNodes();for(var i=0;i<nodes.length;i++){if(nodes[i]===node){if(key===38){nextNode=nodes[i-1];}else{nextNode=nodes[i+1];}break;}}}else{if(key===37){if(node.get_expanded()){return;}nextNode=node.get_parent();}else{if(key===39){if(!node.get_expanded()){return;}nextNode=node.get_allNodes()[0];}}}if(nextNode==null){return;}jQuery(".ObjectBrowserWrapper .rtLI > div[tabindex='0']").each(function(){jQuery(this).removeAttr("tabindex");});nextNode.set_selected(true);
133var child=nextNode.get_element().firstChild;child.setAttribute("tabindex","0");child.focus();};this.RowDblClick=function(rowObject,e,isRecycle){if(isRecycle=="true"){alert("Items within the Recycle Bin cannot be viewed. \nYou must Revert the item.");return false;}var selectedItems=this.GetSelectedItems(false);if(selectedItems.length===0){return false;}if(selectedItems[0].DocumentTypeCode=="FOL"||selectedItems[0].DocumentTypeCode=="CFL"||(selectedItems[0].DocumentTypeCode=="SRT"&&selectedItems[0].RelatedDocumentTypeCode=="FOL")){var selectedKey;if(selectedItems[0].DocumentTypeCode!="SRT"){selectedKey=selectedItems[0].HierarchyKey;}else{selectedKey=selectedItems[0].RelatedHierarchyKey; 134}if(this.ShowHierarchyTree){var ob=this;window.setTimeout(function(){ob.SelectNode(selectedKey);},50);}else{$("CurrentHierarchyKey").value=selectedKey;InitiatePostBack(this.SelectNodeButtonID,selectedKey);}}else{var currentNode=this.GetSelectedNode();var currentFolder=null;if(currentNode){currentFolder=this.DocumentObjectFromNode(currentNode);}this.PerformAction(this.DoubleClickAction,selectedItems,currentFolder);}if(window.event){window.event.returnValue=false;}else{return false;}};this.RowContextMenu=function(index,e){var isSelected=this.Rows[index].Control.getAttribute("Selected");if(isSelected&&isSelected!="1"){this.SelectRow(this.Rows[index].Control,false);}};this.ContentListID=null;this.GetSelectedRows=function(grid){if(!grid){grid=document.getElementById(this.ContentListID);}var result=[];if(grid){var allRows=grid.rows;for(var i=0;i<allRows.length;i++){if(this.IsSelected(allRows[i])){result.push(allRows[i]);}}}return result;};this.IsSelected=function(rowObject){return hasClass(rowObject,"selected");};this.SelectRow=function(rowObject,suppressEvent){if(rowObject==null){return;}var row=jQuery(rowObject);if(row!=null&&row.css("display")!=undefined&&row.css("display")=="none"){return;}addClass(rowObject,"selected");rowObject.setAttribute("aria-selected","true");if(this.SelectRowLastId===rowObject.id){this.UpdateMenu();return;}this.SelectRowLastId=rowObject.id;if(!suppressEvent){this.UpdateSummary(rowObject.parentNode.parentNode);this.UpdateEdit(rowObject.parentNode.parentNode);this.UpdateMenu();}};this.SelectDefaultDocument=function(){var defaultSelectedKey=$("DefaultSelectedDocumentKey").value;if(defaultSelectedKey){this.RowClick($(defaultSelectedKey),null);}};this.DeselectRow=function(rowObject,suppressEvent){removeClass(rowObject,"selected");rowObject.removeAttribute("aria-selected");if(!suppressEvent){var selectedRows=this.GetSelectedRows(rowObject.parentNode.parentNode);if(selectedRows.length==1){this.SelectRow(selectedRows[0]);}else{this.UpdateSummary(rowObject.parentNode.parentNode); 135this.UpdateEdit(rowObject.parentNode.parentNode);this.UpdateMenu();}}};this.ShowEdit=false;this.ShowSummary=false;this.EditFrameClientID=null;this.ContentEditFrameClientID=null;this.BlankUrl=null;this.SingleClickAction=null;this.UpdateEdit=function(grid){if(this.ShowEdit){var editFrame=document.getElementById(this.EditFrameClientID);if(!editFrame){return;}var selectedRows=this.GetSelectedRows(grid);if(selectedRows.length==1){var item=this.DocumentObjectFromRow(selectedRows[0]);this.LoadEditPane(item,this.SingleClickAction,"E");}else{this.LoadEditPane_Succeeded(this.BlankUrl,null,null);var message="";if(!selectedRows.length){message="Select an item to edit.";}else{if(!this.ShowSummary){message="<b>"+selectedRows.length+"</b> items selected";}}var ob=this;window.setTimeout(function(){ob.WriteEditFrameMessage(message);},50);}}};this.UpdateSummary=function(grid){if(this.ShowSummary){var selectedRows=this.GetSelectedRows(grid);if(selectedRows.length==1){var item=this.DocumentObjectFromRow(selectedRows[0]);this.LoadSummaryPane(item,this.SingleClickAction,"E");}else{this.LoadSummaryPane_Succeeded(this.BlankUrl,null,null);var message="";if(!selectedRows.length){message="Select an item to view its summary information.";}else{message="<b>"+selectedRows.length+"</b> items selected";}var ob=this;window.setTimeout(function(){ob.WriteSummaryFrameMessage(message);},50);}}};this.SummaryFrameClientID=null;this.WriteSummaryFrameMessage=function(message){var summaryFrame=document.querySelectorAll('[id$="_SummaryFrame"]');summaryFrame=summaryFrame[0];if(summaryFrame.contentWindow){summaryFrame.contentWindow.document.open();summaryFrame.contentWindow.document.writeln(message);summaryFrame.contentWindow.document.close();}};this.WriteEditFrameMessage=function(message){var editFrame=document.getElementById(this.EditFrameClientID);if(editFrame.contentWindow){editFrame.contentWindow.document.open();editFrame.contentWindow.document.writeln(message);editFrame.contentWindow.document.close();}};this.SelectAllRows=function(grid){if(!grid){grid=$(this.ContentListID); 136}var allRows=grid.rows;for(var i=0;i<allRows.length-1;i++){this.SelectRow(allRows[i],true);}this.SelectRow(allRows[i],false);};this.DeselectAllRows=function(grid){var selectedRows=this.GetSelectedRows(grid);if(!selectedRows.length){return;}for(var i=0;i<selectedRows.length;i++){this.DeselectRow(selectedRows[i],true);}};this.SelectNode=function(hierarchyKey){var selectedNode=this.GetSelectedNode();if(selectedNode){selectedNode.unselect();}var treeView=$find(this.RadTreeViewClientID);var node=treeView.findNodeByValue(hierarchyKey);if(node!=null){node.select();node.expand();$("CurrentHierarchyKey").value=node.get_value();InitiatePostBack(this.SelectNodeButtonID,node.get_value());}};this.GetSelectedNode=function(){try{var treeViewInstance=$find(this.RadTreeViewClientID);if(treeViewInstance.get_selectedNode()){return treeViewInstance.get_selectedNode();}}catch(e){}return null;};this.TreeViewBeforeClick=function(sender,eventArgs){var node=eventArgs.get_node();if(!node.get_enabled()){eventArgs.set_cancel(true);}};this.TreeViewAfterClick=function(sender,eventArgs){var node=eventArgs.get_node();if(this.ClickedNode==node.get_value()){return;}$("CurrentHierarchyKey").value=node.get_value();this.ClickedNode=node.get_value();InitiatePostBack(this.SelectNodeButtonID,node.get_value());};this.ShowNonContainersInHierarchyTree=false;this.TreeViewBeforeDoubleClick=function(sender,eventArgs){var node=eventArgs.get_node();if(this.ShowNonContainersInHierarchyTree){if(!(node.get_attributes().getAttribute("data-DocumentTypeCode")=="FOL"||node.get_attributes().getAttribute("data-DocumentTypeCode")=="CFL"||(node.get_attributes().getAttribute("data-DocumentTypeCode")=="SRT"&&node.get_attributes().getAttribute("data-RelatedDocumentTypeCode")=="FOL"))){var currentNode=this.GetSelectedNode();var currentFolder=null;if(currentNode){currentFolder=this.DocumentObjectFromNode(currentNode);}this.PerformAction(this.DoubleClickAction,[currentFolder],currentFolder);}}};this.SelectNodeCollapsedButtonID=null; 137this.TreeViewAfterToggle=function(sender,eventArgs){var node=eventArgs.get_node();var selectedNode=this.GetSelectedNode();if(selectedNode){var ancestorNode=selectedNode.get_parent();while(ancestorNode){if(node==ancestorNode){selectedNode.unselect();node.select();$("CurrentHierarchyKey").value=node.get_value();InitiatePostBack(this.SelectNodeCollapsedButtonID,node.get_value());break;}ancestorNode=ancestorNode.get_parent();}}};this.ScrollToSelectedNode=function(){var selectedNode=this.GetSelectedNode();if(selectedNode){window.setTimeout(function(){selectedNode.scrollIntoView();},50);}};this.PathSeparator="/";this.GetCurrentPath=function(){var selectedNode=this.GetSelectedNode();if(selectedNode){var result=selectedNode.get_attributes().getAttribute("data-DocumentName");while(selectedNode.get_parent()!=selectedNode.get_treeView()){selectedNode=selectedNode.get_parent();result=selectedNode.get_attributes().getAttribute("data-DocumentName")+this.PathSeparator+result;}return result;}return"";};this.HierarchyAddTypeAfterAsSibling="";this.HierarchyAddTypeBeforeAsSibling="";this.HierarchyAddTypeAsLastChild="";this.TreeViewDrop=function(e,eventArgs){var destNode=eventArgs.get_destNode();var dropPosition=eventArgs.get_dropPosition();if(!destNode){return false;}
137if(typeof(destNode._element._item)!=="undefined"){var isRoot=destNode._element._item._isFirstRootNode();if(isRoot){dropPosition="over";}}var isCtrl=IsCtrl(e);var addType;switch(dropPosition){case"below":addType=this.HierarchyAddTypeAfterAsSibling;break;case"above":addType=this.HierarchyAddTypeBeforeAsSibling;break;default:addType=this.HierarchyAddTypeAsLastChild;break;}$("HierarchyAddType").value=addType;var selectedItem=this.DocumentObjectFromNode(destNode);if($("SelectedKeys").value.length===0){alert("Error: Nothing set in SelectedKeys");}else{if(selectedItem.CanPaste){var sourceKey=$("SelectedKeys").value;if(selectedItem.HierarchyKey==sourceKey){return false;}document.getElementById("ClipboardCutCopy").value=isCtrl?"copy":"cut"; 138this.ClipboardOperationTargetHierarchyKey=selectedItem.HierarchyKey;var ob=this;PageMethods.CheckForPasteConflict(document.getElementById("SelectedKeys").value,selectedItem.HierarchyKey,function(showConflictDialog,userContext,methodName){ob.CheckForPasteConflict_Succeeded(showConflictDialog,userContext,methodName);},function(error,userContext,methodName){ob.OnFailed(error,userContext,methodName);});}}var refreshButton=document.querySelectorAll('[id$="_RefreshFolderButton"]');if(refreshButton!=null){setTimeout(function(){refreshButton[0].click();},750);}return false;};this.TreeViewDrag=function(sender,eventArgs){var sourceNode=eventArgs.get_node();if(window.event&&window.event.button==2){return;}document.getElementById("SelectedKeys").value="";var doc=this.DocumentObjectFromNode(sourceNode);if(doc&&(doc.CanCopy||doc.CanCut)){document.getElementById("SelectedKeys").value=doc.HierarchyKey;}};this.GridContextMenuClick=function(sender,args){var selectedRows=this.GetSelectedRows();var selectedItems=[];if(selectedRows&&selectedRows.length>0){for(var i=0;i<selectedRows.length;i++){selectedItems.push(this.DocumentObjectFromRow(selectedRows[i]));}}var ob=this;window.setTimeout(function(){ob.PerformAction(args._item.get_value(),selectedItems,null);},150);};this.TreeViewContextMenuClick=function(sender,args){var selectedFolder=this.DocumentObjectFromNode(this.GetSelectedNode());var selectedItems=new Array(selectedFolder);var ob=this;if(args._menuItem._attributes&&args._menuItem._attributes.getAttribute("DocumentType")){window.setTimeout(function(){ob.PerformAction(args._menuItem.get_value(),selectedItems,selectedFolder,args._menuItem._attributes.getAttribute("DocumentType"));},150);}else{window.setTimeout(function(){ob.PerformAction(args._menuItem.get_value(),selectedItems,selectedFolder);},150);}};this._startX=0;this._startY=0;this._dragElement=null;this._dragStarted=false;this._clickTarget=null;this._fireRowClick=false;this.RowMouseDown=function(target,e,isRecycle,canDragAndDrop){if(!e){e=window.event; 139}this._clickTarget=target;if((e.button==1&&window.event)||e.button===0){this._startX=e.clientX;this._startY=e.clientY;var thisClassInstance=this;if(isRecycle=="false"&&canDragAndDrop=="true"){document.onmousemove=function(e){thisClassInstance.OnMouseMove(e);};}document.onmouseup=function(e){thisClassInstance.OnMouseUp(e);};document.onselectstart=function(){return false;};if(!IsCtrl(e)&&!this.IsSelected(target)){this.RowClick(target,e);}else{this._fireRowClick=true;}return false;}};this.OnMouseMove=function(e){if(window.event){e=window.event;}else{return;}if(!this.ShowMenu){return;}if(!this._dragStarted){if(Math.abs(e.clientX-this._startX)>3||Math.abs(e.clientY-this._startY)>3){this._dragStarted=true;this._dragElement=document.createElement("div");this._dragElement.className="dragContainer";document.body.appendChild(this._dragElement);if(!this.IsSelected(this._clickTarget)){this.SelectRow(this._clickTarget);}var dragElements=this.GetSelectedRows(this._clickTarget.parentNode.parentNode);var docItems=[];for(var i=0;i<dragElements.length;i++){var doc=this.DocumentObjectFromRow(dragElements[i]);if(doc.CanCopy||doc.CanCut){docItems.push(doc);}else{_DebugTrace("Drag not allowed: "+dragElements.innerText);continue;}var clone=dragElements[i].cells[0].cloneNode(true);clone.className="dragItem";this._dragElement.appendChild(clone);}$("SelectedKeys").value="";$("SelectedKeys").value=this.GetHierarchyKeysString(docItems);}}if(this._dragStarted&&this._dragElement&&this._dragElement.childNodes.length){this._dragElement.style.left=(e.clientX+10)+"px";this._dragElement.style.top=(e.clientY+5)+"px";}};this.OnMouseUp=function(e){if(window.event){e=window.event;}if(this._dragStarted&&this._dragElement&&this._dragElement.childNodes.length>0){var tree=$find(this.RadTreeViewClientID);var treeId=this.RadTreeViewClientID;var inTree=false;var parent=null;if(e.srcElement==null){parent=e.target;}else{parent=e.srcElement;}var nodeLI=null;while(parent){if(!nodeLI&&parent.tagName=="LI"&&parent.className.substring(0,4)=="rtLI"){nodeLI=parent; 140}
140if(parent.id==treeId){inTree=true;break;}parent=parent.parentNode;}if(inTree){var nodes=tree.get_allNodes();var node=null;for(var i=0;i<nodes.length;i++){if(nodes[i].get_element()==nodeLI){node=nodes[i];break;}}if(node){var targetHierarchyKey=node.get_value();var canPaste=node.get_attributes().getAttribute("data-CanPaste")=="true";if(targetHierarchyKey&&canPaste){var sourceKey=$("SelectedKeys").value;if(sourceKey.length===0){alert("Error: Nothing set in SelectedKeys");}else{if(sourceKey.indexOf(targetHierarchyKey)>-1){alert("Error: Cannot drop an item onto itself");}else{document.getElementById("ClipboardCutCopy").value=IsCtrl(e)?"copy":"cut";this.ClipboardOperationTargetHierarchyKey=targetHierarchyKey;var ob=this;PageMethods.CheckForPasteConflict(document.getElementById("SelectedKeys").value,targetHierarchyKey,function(showConflictDialog,userContext,methodName){ob.CheckForPasteConflict_Succeeded(showConflictDialog,userContext,methodName);},function(error,userContext,methodName){ob.OnFailed(error,userContext,methodName);});}}}}}}else{if(this._fireRowClick){this.RowClick(this._clickTarget,e);}}if(this._dragElement){document.body.removeChild(this._dragElement);}this._dragElement=null;this._dragStarted=false;this._clickTarget=null;this._fireRowClick=false;document.onmousemove=null;document.onmouseup=null;document.onselectstart=null;};this.KeyboardShortcut=function(e){var keyNum;var keyChar;var isCtrl=IsCtrl(e);var isAlt=false;if(window.event){e=window.event;keyNum=e.keyCode;isAlt=e.altKey;}else{if(e.which){keyNum=e.which;isAlt=(e.modifiers&Event.ALT_MASK==Event.ALT_MASK);}}if(keyNum==17||keyNum==18){return;}keyChar=String.fromCharCode(keyNum).toLowerCase();var action=null;if(isCtrl){switch(keyChar){case"c":action=this.CopyAction;break;case"x":action=this.CutAction;break;case"v":action=this.PasteAction;break;case"z":action=this.UndoAction;break;case"r":action=this.RefreshAction;break;case"a":action=this.SelectAllAction;break;case"e":action=this.EditAction;break;case"p":action=this.SelectAction; 141break;}}else{switch(keyNum){case 45:action=this.NewAction;break;case 46:action=this.DeleteAction;break;}}if(action){var currentFolder=null;var selectedItems=[];var selectedRows=this.GetSelectedRows();if(selectedRows&&selectedRows.length>0){for(var i=0;i<selectedRows.length;i++){selectedItems.push(this.DocumentObjectFromRow(selectedRows[i]));}}else{var selectedNode=this.GetSelectedNode();if(selectedNode){currentFolder=this.DocumentObjectFromNode(selectedNode);selectedItems.push(currentFolder);}}if(window.event){window.event.returnValue=false;}return this.PerformAction(action,selectedItems,currentFolder);}return true;};this.actionSelectedItems=null;this.actionCurrentFolder=null;this.ShowActionForm=function(action,selectedItems,currentFolder,singleSelect,confirmMessage){if(!selectedItems||selectedItems.length===0){alert(this.MessageNothingSelected);return;}if(singleSelect&&selectedItems.length>1){alert(this.MessageMoreThanOneSelected);return;}if(confirmMessage&&confirmMessage.length>0){if(action=="delete"&&this.ExistsBO(selectedItems)){confirmMessage="Are you sure you want to delete the following child branch from the specified root business object?\n";for(var i=0;i<selectedItems.length;i++){if(selectedItems[i].DocumentTypeCode=="DBB"){confirmMessage+="\n\t\t"+selectedItems[i].DocumentName+" (a branch of "+selectedItems[i].ParentName+" )";}else{confirmMessage+="\n\t\t"+selectedItems[i].DocumentName+" (a root business object)";}}confirmMessage+='\n\nThis will permanently remove the specified branch and set the status of the root business object and any remaining branches to "Working". The changes will not affect the live system until you publish the root business object.\n\nPress OK to delete the specified branch, or Cancel to leave the business object unchanged.';}if(!confirm(confirmMessage)){return;}}var item=selectedItems[0];var type=item.DocumentTypeCode;this.actionSelectedItems=selectedItems;this.actionCurrentFolder=currentFolder;var currentFolderHierarchyKey=$("CurrentHierarchyKey").value; 142if(currentFolder){currentFolderHierarchyKey=currentFolder.HierarchyKey;}var pageInstanceKey=$get("PageInstanceKey");if(pageInstanceKey){pageInstanceKey=pageInstanceKey.value;}else{pageInstanceKey=this.NewGuid();}var websiteKey=gWebsiteKey;if(!websiteKey){websiteKey=this.EmptyGuid;}var ob=this;actionLink=PageMethods.GetWindowProperties(action,"E",type,item.HierarchyKey,item.DocumentVersionKey,currentFolderHierarchyKey,selectedItems.length,this.CloseOnCommit(type,action),websiteKey,pageInstanceKey,function(result,userContext,methodName){ob.GetWindowProperties_Succeeded(result,userContext,methodName);},function(error,userContext,methodName){ob.OnFailed(error,userContext,methodName);});};this.ExistsBO=function(selectedItems){for(var i=0;i<selectedItems.length;
142i++){if(selectedItems[i].DocumentTypeCode=="DBB"||selectedItems[i].DocumentTypeCode=="BOD"){return true;}}return false;};this.CloseOnCommit=function(type,action){return action==this.NewAction&&type!="BOD";};this.ShowNewForm=function(currentFolder,type){var currentFolderHierarchyKey=$("CurrentHierarchyKey").value;if(currentFolder){currentFolderHierarchyKey=currentFolder.HierarchyKey;}var pageInstanceKey=$get("PageInstanceKey");if(pageInstanceKey){pageInstanceKey=pageInstanceKey.value;}else{pageInstanceKey=this.NewGuid();}var websiteKey=gWebsiteKey;if(!websiteKey){websiteKey=this.EmptyGuid;}var ob=this;actionLink=PageMethods.GetWindowProperties(this.NewAction,"E",type,this.EmptyGuid,this.EmptyGuid,currentFolderHierarchyKey,1,this.CloseOnCommit(type,this.NewAction),websiteKey,pageInstanceKey,function(result,userContext,methodName){ob.GetWindowProperties_Succeeded(result,userContext,methodName);},function(error,userContext,methodName){ob.OnFailed(error,userContext,methodName);});};this.refreshRequested=false;this.AllowUpwardNavigation=false;this.MaxFileUploadSize=0;this.EmbeddedMode=false;this.GetWindowProperties_Succeeded=function(result,userContext,methodName){var documentKeys=null;var url=result.Url;if(url=="about:blank"){return; 143}if(this.actionSelectedItems&&this.actionSelectedItems.length>0){if(result.WindowName=="DELETE"){documentKeys=this.GetDocumentVersionKeysString(this.actionSelectedItems,true);}else{documentKeys=this.GetDocumentVersionKeysString(this.actionSelectedItems,false);}if(url.indexOf("{1}")>-1&&this.actionSelectedItems.length==1){url=url.replace("{1}",this.actionSelectedItems[0].DocumentName);}}else{if(this.actionCurrentFolder){documentKeys=this.actionCurrentFolder.DocumentVersionKey;}}this.refreshRequested=result.RefreshRequested;if(!this.AllowUpwardNavigation){url+="&iAllowUpwardNavigation=False";}if(!this.ShowHierarchyTree){url+="&iShowFolderTree=False";}url+="&MaxFileUploadSize="+this.MaxFileUploadSize;if(result.WindowName=="EXECUTE"&&this.EmbeddedMode){window.location.href=url+"&EmbeddedMode=True";}else{if(result.NewWindow){var newWindow=window.open(url,"_blank");newWindow.focus();}else{if(result.RedirectWindow){window.location.href=url;}else{if(url.indexOf("?")===0){return;}else{var ob=this;win=ShowDialog(url,documentKeys,result.Width,result.Height,document.title,result.IconUrl,null,function(dialogWindow){ob.DialogWindowCallback(dialogWindow);},"ObjectBrowserDialog",false,false,function(dialogWindow){ob.DialogWindowClose(dialogWindow);});if(result.CloseImmediately){win.Close();}}}}}};this.SelectAndReturnValue=function(){this.SelectAndReturnValueWithOption(false);};this.SelectContent=null;this.SelectContainer=null;this.FilenameClientID=null;this.DialogMode=false;this.WindowClientScript=null;this.ShowFilename=false;this.SelectRowButtonClientID=null;this._mode="";this.SelectAndReturnValueWithOption=function(useFolderIfNoRowsSelected){var result,selectedRows;var selectedDocumentName;var selectedDocumentType=null;var addressControlPath;var selectedItems=this.GetSelectedItems(useFolderIfNoRowsSelected);if(this._mode==this.SelectContent){if(!selectedItems||selectedItems.length===0){alert(this.MessageNothingSelected);return;}result=this.GetDocumentVersionKeysString(selectedItems,false); 144selectedDocumentName=selectedItems[0].DocumentName;selectedDocumentType=selectedItems[0].DocumentTypeCode;}else{if(this._mode==this.SelectContainer){var selectedNode=this.GetSelectedNode();if(selectedNode){result=selectedNode.get_value();selectedDocumentName=selectedNode.get_text();}else{result=$("CurrentHierarchyKey").value;selectedRows=this.GetSelectedRows();var selectedDocument=null;if(selectedRows&&selectedRows.length&&selectedRows.length==1){selectedDocument=this.DocumentObjectFromRow(selectedRows[0]);if(selectedDocument.IsContainer){result=selectedDocument.HierarchyKey;}}if(!result||trim(result)===""){result=this.FindURLParameter("FolderHierarchyKey");}selectedDocumentName=trim(document.getElementById(this.FilenameClientID).value);addressControlPath=trim(document.getElementById(this.AddressClientID).value);}}}if(this.DialogMode){var oWindow=this.WindowClientScript;oWindow.SelectedDocumentName=trim(selectedDocumentName);selectedRows=this.GetSelectedRows();if(selectedRows&&selectedRows.length>
1440){oWindow.UserSelectedAPathAndFile=true;oWindow.SelectedDocumentPath=trim(this.GetCurrentPath()+this.PathSeparator+selectedDocumentName);}else{oWindow.SelectedDocumentPath=trim(this.GetCurrentPath());if(oWindow.SelectedDocumentPath=="undefined"||oWindow.SelectedDocumentPath==""&&addressControlPath!=null){oWindow.SelectedDocumentPath=addressControlPath;}oWindow.SelectedDocumentVersionKey=trim(this.GetDocumentVersionKeysString(selectedItems,false));}if(this.ShowFilename){oWindow.Filename=trim(document.getElementById(this.FilenameClientID).value);}if(this.DocumentTypeCode){oWindow.DocumentTypeCode=this.DocumentTypeCode;}if(selectedDocumentType!=null){oWindow.SelectedDocumentType=selectedDocumentType;}oWindow.result=result;oWindow.close();}else{this.SetSelectedKeys(selectedItems);var selectRowButton=document.getElementById(this.SelectRowButtonClientID);selectRowButton.click();}};this.CloseDialogWindow=function(){var oWindow=this.WindowClientScript;if(oWindow){CloseRadWindow();}}; 145this.OnFailed=function(error,userContext,methodName){if(error){if(error._statusCode===401){alert("Your session has timed out, or there was an authentication error. Please sign in again.");}else{alert("Action failed ("+methodName+"): "+error._message);}}else{alert("Action failed without an error message ("+methodName+").");}};this.LoadSummaryPane=function(item,action,templateType){var pageInstanceKey=$get("PageInstanceKey");if(pageInstanceKey){pageInstanceKey=pageInstanceKey.value;}else{pageInstanceKey=this.NewGuid();}var websiteKey=gWebsiteKey;if(!websiteKey){websiteKey=this.EmptyGuid;}if(item.DocumentTypeCode==="COM"){return;}var ob=this;PageMethods.GetActionLink(action,templateType,item.DocumentTypeCode,item.HierarchyKey,item.DocumentVersionKey,this.EmptyGuid,1,false,websiteKey,pageInstanceKey,function(result,userContext,methodName){ob.LoadSummaryPane_Succeeded(result,userContext,methodName);},function(error,userContext,methodName){ob.OnFailed(error,userContext,methodName);});};this.LoadSummaryPane_Succeeded=function(result,userContext,methodName){var summaryFrame=document.querySelectorAll('[id$="_SummaryFrame"]');summaryFrame=summaryFrame[0];if(summaryFrame!=null&&summaryFrame.src.toLowerCase()!=result.toString().toLowerCase()){summaryFrame.src=result;}};this.LoadEditPane=function(item,action,templateType){var pageInstanceKey=$get("PageInstanceKey");if(pageInstanceKey){pageInstanceKey=pageInstanceKey.value;}else{pageInstanceKey=this.NewGuid();}var websiteKey=gWebsiteKey;if(!websiteKey){websiteKey=this.EmptyGuid;}var ob=this;PageMethods.GetActionLink(action,templateType,item.DocumentTypeCode,item.HierarchyKey,item.DocumentVersionKey,this.EmptyGuid,1,false,websiteKey,pageInstanceKey,function(result,userContext,methodName){ob.LoadEditPane_Succeeded(result,userContext,methodName);},function(error,userContext,methodName){ob.OnFailed(error,userContext,methodName);});};this.ObjectBrowserEmbeddedModeToken="";this.LoadEditPane_Succeeded=function(result,userContext,methodName){var contentItemKey=FindURLParameter("ContentItemKey"); 146var defaultPanel=FindURLParameter("DefaultPanel");if(contentItemKey){result+="&ContentItemKey="+contentItemKey;}if(defaultPanel){result+="&DefaultPanel="+defaultPanel;}result+="&"+this.ObjectBrowserEmbeddedModeToken+"=true";var contentEditFrame=document.getElementById(this.ContentEditFrameClientID);contentEditFrame.src=result;};this.SubPage_Committed=function(){if(this.ShowHierarchyTree){this.RefreshNode();}};this.MainMenu_ItemClose=function(menu,eventArgs){};this.FindDescendantElement=function(node,tagNameToLookFor,classNameToLookFor){var checkFunction,i;if(isArray(tagNameToLookFor)){for(i=0;i<tagNameToLookFor.length;++i){tagNameToLookFor[i]=tagNameToLookFor[i].toLowerCase();}checkFunction=function(tagName){return jQuery.inArray(tagName,tagNameToLookFor)>-1;};}else{checkFunction=function(tagName){return !tagNameToLookFor||tagNameToLookFor.toLowerCase()==iterator.tagName.toLowerCase();};}var queue=[node];var idx=0;while(true){var iterator=queue[idx++];if(!iterator){break;}if(!iterator.tagName){continue;}if(checkFunction(iterator.tagName.toLowerCase())){if(!classNameToLookFor||classNameToLookFor.length===0||jQuery.inArray(classNameToLookFor.toLowerCase(),iterator.className.toLowerCase().split(" ")>-1)){return iterator;}}for(i=0;i<iterator.childNodes.length;++i){queue.push(iterator.childNodes[i]);}if(idx>=queue.length){break;}}return null;};this.NewGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(c){var r=Math.random()*16|0,v=c=="x"?r:(r&3|8);return v.toString(16);}).toUpperCase();};this.ObjectQuickFindTextBoxID=null;this.ClearObjectQuickFindTextBox=function(){jQuery("#"+this.ObjectQuickFindTextBoxID).val("");};this.RemoveMainMenuElementTabIndex=function(){var clientId=this.MainMenuClientID;if(clientId!=null&&jQuery("#"+clientId).attr("tabindex")!==undefined){jQuery("#"+clientId).removeAttr("tabindex");}};this.ResetClickedNode=function(){this.ClickedNode="";};}function searchTable(b){var a=jQuery('table[ID $= "ContentList"]');a.find("tr").each(function(d,e){var c=jQuery(e).find("td"); 147if(c.length>0){var f=false;c.each(function(h,g){var i=new RegExp(b,"i");if(i.test(jQuery(g).text())){f=true;return false;}});if(f==true){jQuery(e).show();}else{jQuery(e).hide();}}});}function isMobile(){if(navigator.userAgent.match(/Mobi/)){return true;}
147if("screen" in window&&window.screen.width<1366){return true;}var a=navigator.connection||navigator.mozConnection||navigator.webkitConnection;if(a&&a.type==="cellular"){return true;}return false;}function PageNavR_OnClientLoadHandler(a){var b=a.get_element();if(b){b.removeAttribute("tabindex");}PageNavR_AddTabEventHandlers();PageNavR_LoadMenu(a);}function PageNavR_AddTabEventHandlers(){jQuery("a.rmLink.rmRootLink").on("keydown",function(a){if([9,40].indexOf(a.keyCode)===-1||a.shiftKey===true){return;}var b=jQuery(this);if(b.hasClass("rmExpanded")&&b.parent("li").find("li.rmItem").find("a.rmLink").length!==0){a.preventDefault();var c=b.parent("li").find(".rmSlide");if(c.length>0){document.activeElement.blur();c.find("li.rmItem").first().find("a.rmLink").first().focus();}}});jQuery("li.rmItem").not("li.rmItem.rmFirst.rmLast.rmTemplate.MegaDropDownMenuOuter").on("keyup",function(b){if([9].indexOf(b.keyCode)===-1||b.shiftKey===true){return;}var c=jQuery(this).prev();var a=$find(c.parents("div.RadMenu").attr("id"));if(c.find("a.rmLink.rmRootLink").hasClass("rmExpanded")){var d=c.children("a.rmLink.rmRootLink.rmExpanded").children("span.rmText.rmExpandDown").text();var f=a.findItemByText(d);f.close();}});jQuery("li.rmItem.rmLast").find("div.rmSlide").find("li.rsmItem").last().on("keydown",function(b){if([9].indexOf(b.keyCode)===-1||b.shiftKey===true){return;}var c=jQuery(this);var a=$find(c.parents("div.RadMenu").attr("id"));if(c.closest("div.rmSlide").prev().hasClass("rmExpanded")){var d=c.parents("div.rmSlide").prev().children("span.rmText.rmExpandDown").text();var f=a.findItemByText(d);f.close();}});}function PageNavR_LoadMenu(a){var c=".map";if(location.search){var b=new URLSearchParams(location.search);if(b.get("PreviewMode")==="True"){c=".preview";}}var d=window.gWebRoot+"/navigationmaps/"+a.get_attributes().getAttribute("PerspectiveId")+c+"?version="+a.get_attributes().getAttribute("Version");if(window.gCurrentCultureCode){d=d+"&culture="+window.gCurrentCultureCode;}jQuery.getJSON(d,function(e){var j=a.get_element().classList.contains("MegaDropDownMenuOuter");var g=a.get_attributes().getAttribute("MaxDataBindDepth");var f=toRadMenuItems(e.RootNode.Nodes,a.get_attributes().getAttribute("NavigationArea"),j,g,1); 148for(var h=0;h<f.length;h++){a.get_items().add(f[h]);}if(j){toMegaDropDownMenu(a.get_element);}initializeMenuLocationHighlight();if(f&&f.length>0){for(var h=0;h<f.length;h++){initializePostDomAttributes(f[h]);}RegisterControlForNavSearch(a);}});}function PageNavR_OnItemClosed(a){var b=getMenuHighlightLocation();if(b){setMenuLocationHighlight(b);}}function PageNavR_OnItemOpened(a,c){var b=jQuery(c._item.get_element);b.addClass("rmFocused rmSelected");}function toRadMenuItems(e,l,k,c,h){var d=new Array();var f=0;for(var b=0;b<e.length;b++){var a=e[b];var g=a.Area!=null?a.Area:0;if(!a.IsHidden&&(g===0||g===1||g===-2147483648||(g&l)>0)){d[f++]=toRadMenuItem(a,k,c,h,l);}}return d;}function toRadMenuItem(a,f,b,e,g){var c=new Telerik.Web.UI.RadMenuItem();if(a.IsSeparator&&f){c.set_text("MegaDropDownMenuSeparator");}else{c.set_text(a.Text);}c.set_navigateUrl(nodeNavigationUrl(a,true));if(a.ImageUrl){c.set_imageUrl(a.ImageUrl.replace("~/",window.gWebRoot+"/"));}if(a.CssClass){c.set_cssClass(a.CssClass);}if(a.Target){c.asiTargetAttr=a.Target;}if(a.LongDesc){c.asiLongDescAttr=a.LongDesc;}if(a.Nodes&&e<b){if(e>1){c.set_cssClass(c.get_cssClass()+" rmExpandRight");}e++;for(var d=0;d<a.Nodes.length;d++){if(a.Nodes[d].Area==undefined){a.Nodes[d].Area=g;}if(!a.Nodes[d].IsHidden&&(a.Nodes[d].Area==g)){c.get_items().add(toRadMenuItem(a.Nodes[d],f,b,e,g));}}}return c;}function PageNavR_OnClientItemClicking(a,b){var c=b._item._properties._data.navigateUrl;if(c){window.sessionStorage.setItem("LastNavigationUrl:",c);}b._item.set_selectedCssClass("rmSelected");}function MenuLI_OnClick(a){window.sessionStorage.setItem("LastNavigationUrl:",a);}function toMegaDropDownMenu(b){jQuery("div.MainMenu.MegaDropDownMenuOuter > .rmRootGroup > .rmItem").has(".rmLevel1").addClass("rmOneLevel");jQuery("div.MainMenu.MegaDropDownMenuOuter > .rmRootGroup > .rmItem").has(".rmLevel2").removeClass("rmOneLevel").addClass("rmTwoLevels");jQuery("div.MainMenu.MegaDropDownMenuOuter > .rmRootGroup > .rmItem").has(".rmLevel3").removeClass("rmTwoLevels").addClass("rmThreeLevels"); 149var a=jQuery("div.MainMenu.MegaDropDownMenuOuter > .rmRootGroup > .rmItem .rmItem .rmItem").has('span:contains("MegaDropDownMenuSeparator")').add("div.MainMenu.MegaDropDownMenuOuter > .rmRootGroup > .rmItem .rmItem").has('span:contains("MegaDropDownMenuSeparator")');if(a){a.addClass("MegaDropDownMenuSeparator");a.find("span").text("");a.find("a").attr("title","Menu Break");a.find("a").attr("aria-hidden","true");}}function initializePostDomAttributes(b){if(!b){return;}
149var a=jQuery(b.get_element());if(b.asiTargetAttr){a.find("a.rmLink").first().attr("target",b.asiTargetAttr);}if(b.asiLongDescAttr){a.find("a.rmLink").first().attr("title",b.asiLongDescAttr);}var c=b.get_items();if(c&&c.get_count()>0){for(var d=0;d<c.get_count();d++){initializePostDomAttributes(c.getItem(d));}}}function initializeMenuLocationHighlight(){var a=getMenuHighlightLocation();if(a){clearMainNavigationHighlight();setMenuLocationHighlight(a);}else{jQuery(".rmRootLink").removeClass("rmSelected rmFocused");}}function getMenuHighlightLocation(){var a=getNavigationLocation();if(!a){return;}return findLevel1NavigationItem(a);}function setMenuLocationHighlight(a){a.addClass("rmSelected");}function getNavigationLocation(){var a=window.sessionStorage.getItem("LastNavigationUrl:");var b=window.location.pathname;if((!a&&b)||(b==="/")){return b;}if(a&&b){if(trimQuery(a)===b){return a;}else{if(isNavLocation(b)){return b;}}}return;}function clearMainNavigationHighlight(){jQuery(".rmRootLink").removeClass("rmSelected");}function findLevel1NavigationItem(b){var e=jQuery('a.rmLink[href*="'+b+'"]');if(!e){return;}if(b==="/"){var d=e.filter("[href*=Default]");if(d&&d.length===1){return d;}return;}var a=e.filter(".rmRootLink");if(a&&a.length===1){return a.first();}var c=e.filter(".rmLink");if(c&&c.length===1){return findNavRootLink(e.first());}return;}function findNavRootLink(c){var a=c.parent();if(!a||a.length<=0||a.is(":root")){return;}var b=a.find("a.rmRootLink");if(b.length>=1){return b;}return findNavRootLink(a); 150}function isNavLocation(a){var c=jQuery('a.rmLink[href*="'+a+'"]');if(!c){return false;}var b=c.filter(".rmLink");if(b&&b.length===1){return true;}return false;}function trimQuery(a){if(a.indexOf("?")>0){return a.substring(0,a.indexOf("?"));}return a;}function RegisterControlForNavSearch(a){window.Asi=window.Asi||{};window.Asi.NavSearch=window.Asi.NavSearch||{};window.Asi.NavSearch.Controls=window.Asi.NavSearch.Controls||[];window.Asi.NavSearch.Controls.push(a);}function NodeBreadcrumb(b,a){this.data=b;this.next=a;}function ClientNavigationMatches(b,h,d,c,f,a,e,g){this.urlHKey=b;this.urlPath=h;this.lastClickedHKey=d;this.lastClickedPath=c;this.matchHKeyFromUrl=f;this.matchPathFromUrl=a;this.matchHKeyFromLastClick=e;this.matchPathFromLastClick=g;}function SubNavigation_OnClientNodeClicked(a,d){var c=d.get_domEvent();if(c.type==="keydown"){return;}var b=d.get_node();b.toggle();}function SubNavigation_OnClientLoad(a){SubNavigation_LoadTree(a);}function SubNavigation_LoadTree(a){jQuery.ajax({cache:!IsIE(),dataType:"json",url:navigationMapUrl(a.get_attributes().getAttribute("PerspectiveId"),a.get_attributes().getAttribute("Version")),success:function(d){var u="";var j=false;var n;var l;var g=breadCrumbList(d);var m=(a.get_attributes().getAttribute("NavigateOnClick")&&a.get_attributes().getAttribute("NavigateOnClick").toLowerCase()!=="false");var h=a.get_attributes().getAttribute("StartingNodeOffset");if(g){var r=0;var q=0;if(h){q=h;var o=g;while(o.next){if(o.data&&o.data.Nodes){r++;}o=o.next;}while(h-->=0){if(g.next){g=g.next;}}}var p=(g.data&&g.data.Nodes)?g.data.Nodes:g.data;if(r>=q&&p&&p.length){n=toRadNodes(p,a.get_attributes().getAttribute("NavigationArea"),m);u=g.data.Text;}else{u=g.Text;j=(!g.IsHidden)&&(g.Nodes&&g.Nodes.length>0);}}else{if((!h||h==0)&&d.RootNode.Nodes){n=toRadNodes(d.RootNode.Nodes,a.get_attributes().getAttribute("NavigationArea"),m);}else{l="True";}}if(n&&n.length>0){a.addNodesTo(a,n);if(g){var e=g;while(e.next){e=e.next;}var s=e.data.NavigateUrl.replace("~/",window.gWebRoot+"/");if(s){var b=a.findNodeByUrl(s);selectAndExpandNode(b,a);j=true;}}RegisterControlForNavSearch(a);}AddPostDomAttributes(n);var i=a.get_attributes().getAttribute("data-asiIsHomeDisplayPage");if(i&&i==="True"){selectAndExpandHomeNode(a,d);window.sessionStorage.removeItem("LastNavigationUrl:");}l=l||a.get_attributes().getAttribute("HideSecondaryNav");l=l&&l==="True";j=j&&!i&&!l;SubNavigation_AppendSideBarClasses(j,a.get_attributes().getAttribute("WrapperContainerId")); 151SubNavigation_SetNavigationTitle(u,a.get_attributes().getAttribute("SubNavTitleContainerId"));
151$telerik.$(a.get_element()).find(".rtIn").on("focus",function(v){var w=a._extractNodeFromDomElement(this);w.select();});var f=jQuery("div.AsiObjectBrowserContentSplitter").attr("data-radClientId");if(f){var k=$telerik.findControl(document.documentElement,f);if(k.get_element().getBoundingClientRect().left<a.get_element().getBoundingClientRect().left){var t=k.get_element().parentElement.previousElementSibling;var c;if(t){while(!c){if(t.className.indexOf("Toolbar")>=0){c=t;}t=t.previousElementSibling;if(!t){break;}}}if(c){k.set_width(c.getBoundingClientRect().width);}else{k.set_width(k.get_width()-a.get_element().offsetWidth-23);}}}}});}function IsIE(){var d=window.navigator.userAgent;var c=d.indexOf("Trident/");if(c>0){var a=d.indexOf("rv:");var b=parseInt(d.substring(a+3,d.indexOf(".",a)),10);return b===11;}return false;}function selectAndExpandHomeNode(c,a){var b=findHomePageRecursive(a.RootNode.Nodes);if(b){var d=c.get_allNodes();selectAndExpandNode(findRadTreeNodeByClientNodeId(d,b.Id),c);}}function selectAndExpandNode(c,a){if(c){c.select();c.expand();addChildIsSelected(c);var b=c.get_parent();while(b&&b.get_parent()&&b!==a){b.expand();if(b.get_level()>=0&&b.get_level()<c.get_level()){addChildIsSelectedWrapper(b);}b=b.get_parent();}}}function addChildIsSelectedWrapper(a){var d=a.get_element().children;for(var b=0;b<d.length;b++){var c=d[b];if(c.tagName==="DIV"){c.classList.add("child-is-selected-wrapper");}}}function addChildIsSelected(a){a.get_linkElement().classList.add("child-is-selected");}function BreadCrumb_load(a,c){var b=jQuery("#masterMainBreadcrumb");if(b.length<=0||b.children("nav").length>0){return;}jQuery.getJSON(navigationMapUrl(a,c),function(d){var f=breadCrumbList(d);var e=findHomePageRecursive(d.RootNode.Nodes);assembleBreadcrumbControl(b,f,e);});}function assembleBreadcrumbControl(g,a,f){if(!a||!a.next){return;}var c=findBreadcrumbNodes(a,f);if(!c||c.length<=1){return; 152}var d=breadcrumbNavElement();var e=breadcrumbListElement();for(var b=0;b<c.length;b++){e.appendChild(toBreadcrumbLink(c[b],b<c.length-1));}d.appendChild(e);g.append(d);}function toBreadcrumbLink(a,c){var b,e,d;b=document.createElement("li");if(c){b.setAttribute("class","breadcrumb-item");e=document.createElement("a");var f=nodeNavigationUrl(a,true);if(!f||f===""){f="javascipt:;";}e.setAttribute("href",f);if(a.Target){e.setAttribute("target",a.Target);}}else{b.setAttribute("class","breadcrumb-item active");b.setAttribute("aria-current","page");}d=document.createTextNode(a.BreadCrumb?a.BreadCrumb:a.Text);if(e){e.appendChild(d);b.appendChild(e);}else{b.appendChild(d);}return b;}function breadcrumbListElement(){var a=document.createElement("ol");a.setAttribute("id","asi_BreadCrumb");a.setAttribute("class","breadcrumb");return a;}function breadcrumbNavElement(){var a=document.createElement("nav");a.setAttribute("id","asi_BreadCrumbNav");a.setAttribute("aria-label","breadcrumb");a.setAttribute("role","navigation");return a;}function findBreadcrumbNodes(b,d){var c=[d];var a=b.next;while(a.next){a=a.next;if(a.data&&a.data.Text&&a.data.Id!==d.Id){c.push(a.data);}}if(a.Text&&a.Id!==d.Id){c.push(a);}return c;}function navigationMapUrl(a,e){var c=".map";if(location.search){var b=getParameterByName(".preview");if(b==="True"){c=".preview";}}var d=window.gWebRoot+"/navigationmaps/"+a+c+"?version="+e;if(window.gCurrentCultureCode){d=d+"&culture="+window.gCurrentCultureCode;}return d;}function breadCrumbList(a){var c,b;var d=findMatchingCondition(a);if(d.matchHKeyFromUrl){c=d.urlHKey;}else{if(d.matchPathFromUrl){b=d.urlPath;}else{if(d.matchHKeyFromLastClick){c=d.lastClickedHKey;}else{if(d.matchPathFromLastClick){b=d.lastClickedPath;}}}}if(!c&&!b){return;}if(c){return findByHKey(a.RootNode,c);}return findByNavigateUrl(a.RootNode,b);}function findMatchingCondition(a){var b=new URLSearchParams(window.location.search);var d=window.sessionStorage.getItem("LastNavigationUrl:");var c={urlHKey:b.get("hkey"),urlPath:window.location.pathname,lastClickedHKey:returnHKey(d),lackClickedPath:truncatedNavigateUrl(d)}; 153if(a.RootNode.Nodes){return findClientNavigationMatches(a.RootNode,c);}return c;}function findClientNavigationMatches(a,b){for(var c=0;c<a.Nodes.length;c++){updateMatches(a.Nodes[c],b);if(a.Nodes[c].Nodes&&a.Nodes[c].Nodes.length>0){findClientNavigationMatches(a.Nodes[c],b);}}return b;}function updateMatches(b,a){if(!b||!a||a.matchHKeyFromUrl){return;}if(b.hasOwnProperty("NavigateUrl")&&returnHKey(b.NavigateUrl)===a.urlHKey){a.matchHKeyFromUrl=true;}else{if(b.hasOwnProperty("NavigateUrl")&&truncatedNavigateUrl(b.NavigateUrl)===a.urlPath){a.matchPathFromUrl=true;}else{if(b.hasOwnProperty("NavigateUrl")&&returnHKey(b.NavigateUrl)===a.lastClickedHKey){a.matchHKeyFromLastClick=true;}else{if(b.hasOwnProperty("NavigateUrl")&&truncatedNavigateUrl(b.NavigateUrl)===a.lastClickedPath){a.matchPathFromLastClick=true;}}}}}function findByHKey(d,c){if(!d){return false;}if(d.hasOwnProperty("NavigateUrl")&&returnHKey(d.NavigateUrl)===c){return new NodeBreadcrumb(d,null);}var b,a;for(a in d){if(d.hasOwnProperty(a)&&typeof d[a]==="object"){b=findByHKey(d[a],c);if(b){if(b.data&&b.data.Text){b.data.Expanded="true";}return new NodeBreadcrumb(d,b);}}}return b;}function findByNavigateUrl(d,c){if(!d){return false;}if(c.indexOf("?")>0){c=c.substring(0,c.indexOf("?"));}if(d.hasOwnProperty("NavigateUrl")&&truncatedNavigateUrl(d.NavigateUrl)===c){return new NodeBreadcrumb(d,null);}var b,a;for(a in d){if(d.hasOwnProperty(a)&&typeof d[a]==="object"){b=findByNavigateUrl(d[a],c);if(b){return new NodeBreadcrumb(d,b);}}}return b;}function returnHKey(a){if(a){if(a.indexOf("hkey")!==-1){return a.substring(a.indexOf("hkey=")+5,a.indexOf("hkey=")+42);}}}function findLastNavigationUrlHkey(){var a=window.sessionStorage.getItem("LastNavigationUrl:");return returnHKey(a);}function truncatedNavigateUrl(a){if(a){a=a.replace("~/",window.gWebRoot+"/");return a.substring(0,a.indexOf("?"));}}function toRadNodes(d,c,b){var e=new Array();var f=0;if(!d.length){e[f++]=toRadNode(d,b);}else{for(var h=0;h<d.length;h++){var a=d[h]; 154var g=a.Area!=null?a.Area:0;if(!a.IsHidden&&(g===0||(g&c)>0)){e[f++]=toRadNode(a,b);}}}return e;}function toRadNode(a,c){var b=new Telerik.Web.UI.RadTreeNode();b.set_text(a.Text);b.set_navigateUrl(nodeNavigationUrl(a,c));if(a.ImageUrl){b.set_imageUrl(a.ImageUrl.replace("~/",window.gWebRoot+"/"));}b.set_expanded(a.Expanded);b.set_cssClass(a.CssClass);b.set_contentCssClass(a.ContentCssClass);b.set_target(a.Target);if(a.LongDesc){b.get_attributes().setAttribute("data-linkDescription",a.LongDesc);}b.get_attributes().setAttribute("data-asiClientNodeId",a.Id);if(a.Nodes){for(var d=0;d<a.Nodes.length;
154d++){if(!a.Nodes[d].IsHidden){b.get_nodes().add(toRadNode(a.Nodes[d]));}}}return b;}function AddPostDomAttributes(b){if(!b){return;}for(var f=0;f<b.length;f++){var d=b[f];var e=d.get_attributes();var c=d.get_element();if(e.getAttribute("data-asiClientNodeId")){c.setAttribute("data-asiClientNodeId",e.getAttribute("data-asiClientNodeId"));}if(e.getAttribute("data-linkDescription")){var a=d.get_linkElement();if(a){a.setAttribute("title",e.getAttribute("data-linkDescription"));}else{c.setAttribute("title",e.getAttribute("data-linkDescription"));}}}}function nodeNavigationUrl(a,b){if(a.NavigateUrl){if(a.NavigateUrl==="javascript:;"){if(b&&a.Nodes){for(var c=0;c<a.Nodes.length;c++){var d=a.Nodes[c];if(d.NavigateUrl){return d.NavigateUrl.replace("~/",window.gWebRoot+"/");}}}else{return a.NavigateUrl;}}else{return a.NavigateUrl.replace("~/",window.gWebRoot+"/");}}}function SubNavigation_OnClientNodeClicking(a,b){var c=b.get_node().get_navigateUrl();if(c){window.sessionStorage.setItem("LastNavigationUrl:",c);}}function SubNavigation_AppendSideBarClasses(d,c){if(c===null||c==""){return;}var b=jQuery("#"+c);var e=b.find(".col-secondary");if(b.length<=0||e.length<=0){return;}if(b.hasClass("has-community-sidebar")){d=true;}if(d===true){e.removeClass("d-none");var a=e.hasClass("cs-right")?"col-on-right":"col-on-left";b.addClass("has-secondary-col "+a);}else{if(!e.hasClass("d-none")){e.addClass("d-none"); 155}}if(d==="undefined"||!d){b.removeClass("has-secondary-col");b.removeClass("col-on-right");b.removeClass("col-on-left");}}function SubNavigation_SetNavigationTitle(a,b){if(a!==""){jQuery("#"+b).append(a).show();}else{jQuery("#"+b).hide();}}function findHomePageRecursive(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.IsHomePage){return c;}if(c.Nodes&&c.Nodes.length>0){c=findHomePageRecursive(c.Nodes);if(c){return c;}}}return;}function findRadTreeNodeByClientNodeId(b,d){for(var c=0;c<b.length;c++){var e=b[c];var a=e.get_attributes().getAttribute("data-asiClientNodeId");if(a&&a===d){return e;}}return;}function RegisterControlForNavSearch(a){window.Asi=window.Asi||{};window.Asi.NavSearch=window.Asi.NavSearch||{};window.Asi.NavSearch.Controls=window.Asi.NavSearch.Controls||[];window.Asi.NavSearch.Controls.push(a);}jQuery(document).ready(function(){if(window.self!==window.top){return;}if(window["Asi.timeoutPopup.disable"]===true){return;}if(window["Asi.timeoutPopup.running"]===true){return;}window["Asi.timeoutPopup.running"]=true;var i=(function(){var P=["LoginRedirect","IsJsTimeout","returnurl"];var O=window.location.pathname.toLowerCase();var N=false;P.forEach(function(Q){if(O.indexOf(Q)!==-1){N=true;return;}});return N;}());if(i){return;}var v="";if(document.getElementById("__ClientContext")){var M=JSON.parse(document.getElementById("__ClientContext").value);v=M.virtualDir;}var j,g;var p=false;if(document.getElementById("timeoutsoonmsg")){var L=atob(document.getElementById("timeoutsoonmsg").value);}if(document.getElementById("timeoutsoonstaysignintxt")){var q=atob(document.getElementById("timeoutsoonstaysignintxt").value);}if(document.getElementById("timeoutsoonlogouttxt")){var G=atob(document.getElementById("timeoutsoonlogouttxt").value);}var C=120;var y=20;var r=C;var n={Verbose:0,Information:1,Warning:2,Error:3,Critical:4};var w="timeoutPopup.js:";var x=false;var s=0;var D=15000;var B=0;var F=0;var d=0;var b=0;function u(N){r=Math.max(Math.min((N*60)*0.2,C),y);}jQuery('<div class="modal fade" style="z-index:2147483647" id="timeoutModal" tabindex="-1" role="dialog" aria-labelledby="signOutMesssageText"><div class="modal-dialog" role="document"><div class="modal-content"><div class="modal-body"><div id="signOutMesssageText">'+L.replace("[SecondsRemaining]","")+'</div></div><div class="modal-footer"> <button id="btnTimeoutModalSignOut" type="button" class="TextButton" >Sign Out</button><button id="btnTimeoutModalStaySignedIn" type="button" class="TextButton PrimaryButton" >Stay Signed In</button><button id="btnTimeoutModalRefresh" type="button" class="TextButton PrimaryButton" style="display:none;" >Refresh</button></div></div></div>').appendTo(jQuery("body"));var o=jQuery("#btnTimeoutModalSignOut");var I=jQuery("#btnTimeoutModalStaySignedIn");var K=jQuery("#btnTimeoutModalRefresh"); 156o.on("click",{isTimeout:false},z);I.on("click",m);K.on("click",f);if(G){o.html(G);}if(q){I.html(q);}var h={countdownTimer:null,IsOpen:false,Open:function(N){N=Math.floor(N);if(jQuery("#timeoutModal")!==undefined){l("MODAL.Open(): Opening modal with "+N+" seconds remaining.",n.Information,{wasAlreadyOpen:this.IsOpen});window.clearInterval(h.countdownTimer);if(!this.IsOpen){this.IsOpen=true;jQuery("#timeoutModal").modal({keyboard:false,backdrop:"static",show:true});}h.EnableButtons();k(N);if(N>0){this.countdownTimer=window.setInterval(function(){N--;k(N);if(N<=0){window.clearInterval(h.countdownTimer);}},1000);}}},Close:function(){if(!this.IsOpen){return;}this.IsOpen=false;window.clearInterval(this.countdownTimer);if(jQuery("#timeoutModal")!==undefined){jQuery("#timeoutModal").modal("hide");}},DisableButtons:function(){o.prop("disabled",true);I.prop("disabled",true);}
156,EnableButtons:function(){o.prop("disabled",false);I.prop("disabled",false);},ShowRefreshButton:function(){o.hide();I.hide();K.show();}};function k(O){var P=document.getElementById("signOutMesssageText");var N=L.replace("[SecondsRemaining]",O);P.innerHTML=N;}a("initialize");function e(O){var N=O-r;if(N<0){N=0;}return N;}function A(O,N){if(N>2147483647){N=2147483632;}return window.setTimeout(O,N);}function a(N){B++;if(B>3){x=true;}l("timeoutCheck(): timeoutCheck() called "+B+" times. Called by "+N+".",n.Information,{caller:N});t();H(function(Q){l("timeoutCheck(): getSessionData() callback called.",n.Information,{data:Q});if(Q.failed===true){E("timeoutCheck(): getSessionData() failed. Hard stop, no logical path forward.",n.Information);if(h.IsOpen){h.ShowRefreshButton();}return;}if(Q.StillGoodSeconds<=1){z({isTimeout:true});return;}if(typeof(Q.ExpireMinutes)!=="number"){return;}if(Q.ExpireMinutes<1){return;}u(Q.ExpireMinutes);var O=Q.StillGoodSeconds*1000;l("timeoutCheck(): Setting TIMEOUT_TIMER for "+O+" ms.",n.Information);j=A(function(){a("TIMEOUT_TIMER");},O);if(Q.StillGoodSeconds<=r){h.Open(Q.StillGoodSeconds); 157}else{h.Close();}if(!h.IsOpen){var P=e(Q.StillGoodSeconds)*1000;l("timeoutCheck(): Setting WARNING_TIMER for "+P+" ms.",n.Information);g=A(function(){a("WARNING_TIMER");},P);}});}function H(P,N){if(typeof(N)!=="number"){N=0;}F++;var O=N>0?" This was a retry.":"";l("getSessionData(): getSessionData() called "+F+" times."+O,n.Information);jQuery.ajax({type:"POST",url:(v+"/SessionInfo/GetSessionInfoFromCookie").replace("//","/"),timeout:D,headers:{"X-NoRefreshSession":"true"}}).done(function(S,Q,R){l("getSessionData(): Request to GetSessionInfoFromCookie succeeded.",n.Information,{data:S,jqXHR_status:R?R.status:undefined,textStatus:Q});if(S&&S.IsDesktop){return;}if(S===null||(S===void 0)||typeof(S.StillGoodSeconds)!=="number"){if(p){S={StillGoodSeconds:0};}else{l("getSessionData(): Request to GetSessionInfoFromCookie returned invalid data. Hard stop, no logical path forward.",n.Information);return;}}p=true;P(S);}).fail(function(S,R,Q){x=true;if(N<1&&c(S,R)){E("getSessionData(): Request to GetSessionInfoFromCookie failed with timeout. Retrying.",n.Information,{jqXHR_status:S?S.status:undefined,textStatus:R});H(P,++N);return;}E("getSessionData(): Request to GetSessionInfoFromCookie failed. Not retrying. Execute callback and indicate failure.",n.Information,{jqXHR_status:S?S.status:undefined,textStatus:R});P({failed:true});});}function z(P,N){if(typeof(N)!=="number"){N=0;}d++;if(d>1){x=true;}var O=N>0?" This was a retry.":"";l("logOut(): logOut() called "+d+" times."+O,n.Information);t();h.DisableButtons();jQuery.ajax({type:"POST",timeout:D,url:(v+"/SessionInfo/ForceSignout").replace("//","/"),}).done(function(){if(document.getElementById("logoutUrl")){var R=atob(document.getElementById("logoutUrl").value);}var Q=R;if(P.isTimeout===true){var T=jQuery.param({IsJsTimeout:true});var S=R.lastIndexOf("?");if(S!==-1){Q=R.slice(0,S+1)+T+"&"+R.slice(S+1);}else{Q+="?"+T;}}l("logOut(): Redirecting to "+Q+".",n.Information,{redirectUrl:Q,isTimeout:P.isTimeout});location.href=Q;}).fail(function(S,R,Q){x=true; 158if(N<1&&c(S,R)){E("logOut(): Request to ForceSignout failed with timeout. Retrying.",n.Information,{jqXHR_status:S?S.status:undefined,textStatus:R});z(P,++N);return;}E("logOut(): Request to ForceSignout failed. Not retrying. Hard stop, no logical path forward.",n.Information,{jqXHR_status:S?S.status:undefined,textStatus:R});if(h.IsOpen){h.ShowRefreshButton();}});}function m(N){if(typeof(N)!=="number"){N=0;}b++;if(b>1){x=true;}var O=N>0?" This was a retry.":"";l("staySignedIn(): staySignedIn() called "+b+" times."+O,n.Information);t();h.DisableButtons();jQuery.ajax({url:(v+"/SessionInfo/StaySignedIn").replace("//","/"),type:"POST",timeout:D,headers:{"X-NoRefreshSession":"true"}}).done(function(){a("staySignedIn");}).fail(function(R,Q,P){x=true;if(N<1&&c(R,Q)){E("staySignedIn(): Request to StaySignedIn failed with timeout. Retrying.",n.Information,{jqXHR_status:R?R.status:undefined,textStatus:Q});m(++N);return;}E("staySignedIn(): Request to StaySignedIn failed. Not retrying. Hard stop, no logical path forward.",n.Information,{jqXHR_status:R?R.status:undefined,textStatus:Q});if(h.IsOpen){h.ShowRefreshButton();}});}function f(){window.location.href=window.location.href;}function t(){window.clearTimeout(j);window.clearTimeout(g);}function c(O,N){if(N==="timeout"){return true;}if(O&&(O.status===408||O.status==504)){return true;}return false;}function l(P,O,N){if(x){E(P,O,N);}}function E(R,P,O){if(!J()){return;}if(!O){O={};}O.url=window.location.href;O.referrer=document.referrer;try{var N=w+" #"+s+++" "+R;appInsights.trackTrace({message:N,severityLevel:P,properties:O});}
vendor: 3,390 bytes, lines 158-159
158catch(Q){console.warn("Error logging to AppInsights with TrackTrace",Q);}}function J(){return typeof(appInsights)!=="undefined"&&appInsights;}});(function(n){var g=(n.URLSearchParams&&n.URLSearchParams.prototype.get)?n.URLSearchParams:null,t=g&&(new g({a:1})).toString()==="a=1",r=g&&(new g("s=%2B").get("s")==="+"),e="__URLSearchParams__",f=g?(function(){var u=new g();u.append("s"," &");return u.toString()==="s=+%26";})():true,k=o.prototype,m=!!(n.Symbol&&n.Symbol.iterator);if(g&&t&&r&&f){return;}function o(u){u=u||"";if(u instanceof URLSearchParams||u instanceof o){u=u.toString();}this[e]=b(u);}k.append=function(u,v){q(this[e],u,v);};k["delete"]=function(u){delete this[e][u];};k.get=function(v){var u=this[e];return this.has(v)?u[v][0]:null;};k.getAll=function(v){var u=this[e];return this.has(v)?u[v].slice(0):[];};k.has=function(u){return a(this[e],u);};k.set=function h(u,v){this[e][u]=[""+v];};k.toString=function(){var u=this[e],v=[],x,z,w,y;for(z in u){w=i(z);for(x=0,y=u[z];x<y.length;x++){v.push(w+"="+i(y[x]));}}return v.join("&");};var j=!r;var s=(!j&&g&&!t&&n.Proxy);Object.defineProperty(n,"URLSearchParams",{value:(s?new Proxy(g,{construct:function(u,v){return new u((new o(v[0]).toString()));}}):o)});var c=n.URLSearchParams.prototype;c.polyfill=true;c.forEach=c.forEach||function(w,u){var v=b(this.toString());Object.getOwnPropertyNames(v).forEach(function(x){v[x].forEach(function(y){w.call(u,y,x,this);},this);},this);};c.sort=c.sort||function(){var u=b(this.toString()),v=[],z,A,y;for(z in u){v.push(z);}v.sort();for(A=0;A<v.length;A++){this["delete"](v[A]);}for(A=0;A<v.length;A++){var x=v[A],w=u[x];for(y=0;y<w.length;y++){this.append(x,w[y]);}}};c.keys=c.keys||function(){var u=[];this.forEach(function(w,v){u.push(v);});return d(u);};c.values=c.values||function(){var u=[];this.forEach(function(v){u.push(v);});return d(u);};c.entries=c.entries||function(){var u=[];this.forEach(function(w,v){u.push([v,w]);});return d(u);};if(m){c[n.Symbol.iterator]=c[n.Symbol.iterator]||c.entries;}function i(v){var u={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(v).replace(/[!'\(\)~]|%20|%00/g,function(w){return u[w]; 159});}function p(u){return u.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/ig,function(v){return decodeURIComponent(v);});}function d(v){var u={next:function(){var w=v.shift();return{done:w===undefined,value:w};}};if(m){u[n.Symbol.iterator]=function(){return u;};}return u;}function b(A){var u={};if(typeof A==="object"){if(l(A)){for(var v=0;v<A.length;v++){var w=A[v];if(l(w)&&w.length===2){q(u,w[0],w[1]);}else{throw new TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements");}}}else{for(var B in A){if(A.hasOwnProperty(B)){q(u,B,A[B]);}}}}else{if(A.indexOf("?")===0){A=A.slice(1);}var y=A.split("&");for(var x=0;x<y.length;x++){var z=y[x],C=z.indexOf("=");if(-1<C){q(u,p(z.slice(0,C)),p(z.slice(C+1)));}else{if(z){q(u,p(z),"");}}}}return u;}function q(u,v,x){var w=typeof x==="string"?x:(x!==null&&x!==undefined&&typeof x.toString==="function"?x.toString():JSON.stringify(x));if(a(u,v)){u[v].push(w);}else{u[v]=[w];}}function l(u){return !!u&&"[object Array]"===Object.prototype.toString.call(u);}function a(v,u){return Object.prototype.hasOwnProperty.call(v,u);}})(typeof global!=="undefined"?global:(typeof window!=="undefined"?window:this));
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.