function gtag(){dataLayer.push(arguments)}function initJQuery(){typeof jQuery=="undefined"?(jQueryScriptOutputted||(jQueryScriptOutputted=!0,document.write('<script type="text/javascript" src="="//ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"><\/script>')),setTimeout("initJQuery()",50)):$(function(){var n=$("#mce"),t,i,r,u,f;n!=undefined&&(t=n.attr("data-domain"),t!=undefined)&&(i=n.attr("data-subdomain"),i!=undefined)&&(r=n.attr("data-loginId"),r!=undefined)&&(u=n.attr("data-presenting"),f=u==undefined?0:u=="1"?1:0,getSessions(t,i,r,f))})}function loadData(n,t){$("#mce").hide();$.ajax({url:n+"?$format=json",data:t,success:display,error:errorCallback})}function alertResults(n){alert(n.d)}function errorCallback(n){alert(n.responseText)}function display(n){var t,i,r;n!=undefined&&(t=$("#mce"),t!=undefined)&&(n.length==0?(t.append("<div id='dccLogo'>"),t.append("<br /><a href='https://www.desertcodecamp.com/home'><img src='https://cdn.desertcodecamp.com/imgs/dcc-1080x1080-transparent-fb.png' alt='Desert Code Camp'/><\/a>"),t.append("<\/div>")):(t.append("<div id='dccMe'>"),i=t.attr("data-presenting"),r=i==undefined?"I'm attending ":i=="1"?"I'm teaching ":"I'm attending ",r+=n.length+" sessions at",t.append(r),t.append("<\/div>"),t.append("<div id='dccName'>"),t.append(n[0].Conference.Name),t.append("<\/div>"),t.append("<div id='dccLogo'>"),t.append("<br /><a href='"+n[0].Conference.ConferenceUrl+"/home'><img src='"+n[0].Conference.ConferenceUrl+n[0].Conference.FacebookImage+"' /><\/a>"),t.append("<\/div>"),t.append("<div id='dccSessions'>"),$.each(n,function(){var n="<a href='"+this.SessionUrl+"' target='_blank'>"+this.Name+"<\/a><br />";t.append(n)}),t.append("<\/div>")),styleIt(t),$("#mce").show())}function styleIt(n){n.width(175);n.css("border","#eeb420 1px solid");n.css("background-color","#feeebd");n.css("text-align","center");n.css("padding","10px")}function getSessions(n,t,i,r){var u="https://api.desertcodecamp.com/Session/",f;u+=r?"GetMyPresentationsByLogin":"GetMyInterestedInSessionsByLogin";f={subdomain:t,domain:n,userId:i};loadData(u,f)}function fixFbComments(){$(".fb-comments > span").width("100%");$(".fb-comments > span > iframe").width("100%")}function closeDatePanel(){const n=$("#DatePanel");n!==undefined&&n.length!==0&&n.hide()}function closeSideBar(){$("#SideBar").hide();$("#MainContent").removeClass("col-lg-10").addClass("col-lg-12")}function moveSideBarToBottom(){$("#MainContent").removeClass("col-lg-10").addClass("col-lg-12");$("#SideBar").removeClass("col-lg-2").addClass("col-lg-12")}function fallbackImage(n){let t=Math.round(n.width());t<=0&&(t=64);let i=Math.round(n.height());i<=0&&(i=32);const u=t+"x"+i;let r=n.attr("title");r||(r="X");const f=r.replace(/ /g,"+");n.attr("src","https://placehold.co/"+u+"/bebec5/333333?text="+f+"&font-family=OpenSans")}function editButtonFormatter(n){return"<a class='btn btn-primary' href='sponsoredit.aspx?sponsorid='"+n+"'><i class='fa fa-edit'><\/i>&nbsp;Edit<\/a>"}function logoFormatter(n){return"<img src='"+n+"' height='100' width='100' />"}function showHide(n,t){t?n.show():n.hide()}function sendInterest(n,t){var i=$("body> form").attr("data-user-id");$.ajax({type:"GET",url:"https://api.desertcodecamp.com/session/UpdateInterest",contentType:"application/json; charset=utf-8",data:{sessionId:n,userId:i,interested:t},dataType:"json",success:function(i){i?updateInterest(n,t):updateElement(n,"danger",!t)},error:function(){updateElement(n,"danger",!t)}})}function updateElement(n,t){var r=getElementBySessionId(n),i;r.parents("tr").addClass(t);t=="error"&&(i=bootbox.alert("<div class='alert alert-danger'>There was a problem saving your interest in the session!<\/div>"),setTimeout(function(){i.modal("hide")},4e3))}function getElementBySessionId(n){var t='table.sessionList tr span[data-session-id="'+n+'"]';return $(t)}function updateInterest(n,t){var i=getElementBySessionId(n);t?i.parents("tr").addClass("success"):i.parents("tr").removeClass("success")}function refreshInterest(){$("a[data-is-interested=1]").parent().parent().addClass("alert-success");$("a[data-is-interested=0]").parent().parent().removeClass("alert-success");$("a[data-is-interested=0]> i").removeClass("fa-check-circle").addClass("fa-circle");$("a[data-is-interested=1]> i").removeClass("fa-circle").addClass("fa-check-circle")}function refreshDetailsView(){$("a[data-isexpanded]").each(function(){toggleDetailView($(this))})}function toggleDetailView(n){var t=n.attr("data-isexpanded");t==="1"?(n.parent().parent().children("#RoomDetails").hide(),n.attr("data-isexpanded","0"),n.children("i").removeClass("fa-chevron-up").addClass("fa-chevron-down")):(n.parent().parent().children("#RoomDetails").show(),n.attr("data-isexpanded","1"),n.children("i").removeClass("fa-chevron-down").addClass("fa-chevron-up"))}function toggleSessionInterest(n){var t=n.attr("data-session-id"),i=n.attr("data-is-interested")==="1"?!1:!0;return n.button("saving"),sendInterest(t,i),!1}function sendInterest(n,t){var i=$("body> form").attr("data-user-id");$.ajax({type:"GET",url:"https://api.desertcodecamp.com/session/UpdateInterest",contentType:"application/json; charset=utf-8",data:{sessionId:n,userId:i,interested:t},dataType:"json",success:function(i){i&&updateInterest(n,t)},error:function(){updateButton(n,"alert-error",!t)}})}function updateButton(n,t){var i=getButtonBySessionId(n);i.parent().parent().parent().addClass(t);i.button("")}function getButtonBySessionId(n){var t='a[data-session-id="'+n+'"]';return $(t)}function updateInterest(n,t){var i=getButtonBySessionId(n);i.attr("data-is-interested",t?"1":"0");refreshInterest()}var jQueryScriptOutputted,prettyPrint;$.fn.bootstrapSwitch.defaults.size="small";$.fn.bootstrapSwitch.defaults.onColor="primary";$.fn.bootstrapSwitch.defaults.onText="Yes";$.fn.bootstrapSwitch.defaults.offText="No";window.dataLayer=window.dataLayer||[];gtag("js",new Date);gtag("config",conference.googleAnalyticsId);!function(n,t,i){function p(){i.onInit&&i.onInit(r)}var u=n.location,s="script",h="instrumentationKey",f="ingestionendpoint",c="disableExceptionTracking",l="ai.device.",a="toLowerCase",e="crossOrigin",v="POST",y="appInsightsSDK",o=i.name||"appInsights",r;(i.name||n[y])&&(n[y]=o);r=n[o]||function(r){function nt(n,t){var i={},r="Browser";return i[l+"id"]=r[a](),i[l+"type"]=r,i["ai.operation.name"]=u&&u.pathname||"_unknown_",i["ai.internal.sdkVersion"]="javascript:snippet_"+(o.sv||o.version),{time:function(){function t(n){var t=""+n;return 1===t.length&&(t="0"+t),t}var n=new Date;return n.getUTCFullYear()+"-"+t(1+n.getUTCMonth())+"-"+t(n.getUTCDate())+"T"+t(n.getUTCHours())+":"+t(n.getUTCMinutes())+":"+t(n.getUTCSeconds())+"."+((n.getUTCMilliseconds()/1e3).toFixed(3)+"").slice(2,5)+"Z"}(),iKey:n,name:"Microsoft.ApplicationInsights."+n.replace(/-/g,"")+"."+t,sampleRate:100,tags:i,data:{baseData:{ver:2}}}}function tt(n){for(;n.length;)!function(n){o[n]=function(){var t=arguments;g||o.queue.push(function(){o[n].apply(o,t)})}}(n.pop())}var g=!1,w=!1,o={initialize:!0,queue:[],sv:"5",version:2,config:r},b=r.url||i.src,k,ut,p,d;if(b){function c(){var e,s,k,d,tt,it,c,l,y,t,p;g=!0;o.queue=[];w||(w=!0,e=b,c=function(){var n={},s=r.connectionString,u,t,i,e,o;if(s)for(u=s.split(";"),t=0;t<u.length;t++)i=u[t].split("="),2===i.length&&(n[i[0][a]()]=i[1]);return n[f]||(e=n.endpointsuffix,o=e?n.location:null,n[f]="https://"+(o?o+".":"")+"dc."+(e||"services.visualstudio.com")),n}(),l=c[h]||r[h]||"",y=c[f],t=y?y+"/v2/track":r.endpointUrl,(p=[]).push((s="SDK LOAD Failure: Failed to load Application Insights SDK script (See stack for details)",k=e,d=t,(it=(tt=nt(l,"Exception")).data).baseType="ExceptionData",it.baseData.exceptions=[{typeName:"SDKLoadFailed",message:s.replace(/\./g,"-"),hasFullStack:!1,stack:s+"\nSnippet failed to load ["+k+"] -- Telemetry is disabled\nHelp Link: https://go.microsoft.com/fwlink/?linkid=2128109\nHost: "+(u&&u.pathname||"_unknown_")+"\nEndpoint: "+d,parsedStack:[]}],tt)),p.push(function(n,t,i,r){var f=nt(l,"Message"),e=f.data,u;return e.baseType="MessageData",u=e.baseData,u.message='AI (Internal): 99 message:"'+("SDK LOAD Failure: Failed to load Application Insights SDK script (See stack for details) ("+i+")").replace(/\"/g,"")+'"',u.properties={endpoint:r},f}(0,0,e,t)),function(t,r){var f,u;JSON&&(f=n.fetch,f&&!i.useXhr?f(r,{method:v,body:JSON.stringify(t),mode:"cors"}):XMLHttpRequest&&(u=new XMLHttpRequest,u.open(v,r),u.setRequestHeader("Content-type","application/json"),u.send(JSON.stringify(t))))}(p,t))}function l(n,t){w||setTimeout(function(){!t&&o.core||c()},500)}k=function(){var n=t.createElement(s),r;return n.src=b,r=i[e],!r&&""!==r||"undefined"==n[e]||(n[e]=r),n.onload=l,n.onerror=c,n.onreadystatechange=function(t,i){"loaded"!==n.readyState&&"complete"!==n.readyState||l(0,i)},n}();i.ld<0?t.getElementsByTagName("head")[0].appendChild(k):setTimeout(function(){t.getElementsByTagName(s)[0].parentNode.appendChild(k)},i.ld||0)}try{o.cookie=t.cookie}catch(ft){}var y="track",it="TrackPage",rt="TrackEvent";return tt([y+"Event",y+"PageView",y+"Exception",y+"Trace",y+"DependencyData",y+"Metric",y+"PageViewPerformance","start"+it,"stop"+it,"start"+rt,"stop"+rt,"addTelemetryInitializer","setAuthenticatedUserContext","clearAuthenticatedUserContext","flush"]),o.SeverityLevel={Verbose:0,Information:1,Warning:2,Error:3,Critical:4},ut=(r.extensionConfig||{}).ApplicationInsightsAnalytics||{},!0!==r[c]&&!0!==ut[c]&&(p="onerror",tt(["_"+p]),d=n[p],n[p]=function(n,t,i,r,u){var f=d&&d(n,t,i,r,u);return!0!==f&&o["_"+p]({message:n,url:t,lineNumber:i,columnNumber:r,error:u}),f},r.autoExceptionInstrumented=!0),o}(i.cfg);(n[o]=r).queue&&0===r.queue.length?(r.queue.push(p),r.trackPageView({})):p()}(window,document,{src:"https://js.monitor.azure.com/scripts/b/ai.2.min.js",crossOrigin:"anonymous",cfg:{connectionString:"CONNECTION_STRING"}});jQueryScriptOutputted=!1;initJQuery();$(document).ready(function(){$.ajaxSetup({cache:!0});$.getScript("//connect.facebook.net/en_US/all.js",function(){FB.init({appId:"153581934661915",status:!0,cookie:!0,xfbml:!0})});setTimeout(fixFbComments,5e3)}),function(){var n=Object.prototype.hasOwnProperty;(function(t){var r,u,f,i;return u=function(n,i,r){if(!t("meta[name="+n+"]").length||n==="msapplication-task")return i.length?t("<meta>",{name:n,content:i}).appendTo(r):void 0},i=function(){return!!window.external&&"msIsSiteMode"in window.external},r=function(n,t){try{return n()}catch(i){return t}},f={init:function(n){var i;return i={applicationName:document.title.toString(),favIcon:"http://"+location.host+"/favicon.ico",navColor:"",startUrl:"http://"+location.host,tooltip:document.title.toString(),window:"width=800;height=600",target:"",tasks:[]},n=t.extend({},i,n),this.each(function(){var i,r;return r=n.tasks,i=this,t("link[type^=image]").length===0&&t("<link />",{rel:"shortcut icon",type:"image/ico",href:n.favIcon}).appendTo(this),u("application-name",n.applicationName,this),u("msapplication-tooltip",n.tooltip,this),u("msapplication-starturl",n.startUrl,this),u("msapplication-navbutton-color",n.navColor,this),u("msapplication-window",n.window,this),t.each(r,function(n,t){return u("msapplication-task","name="+t.name+";action-uri="+t.action+";icon-uri="+t.icon+";window-type="+t.target,i)})})},enablePinning:function(n){return this.each(function(){return n=n||"Drag this image to your Windows 7 Taskbar to pin this site with IE9",t(this).addClass("msPinSite").attr({title:n})})},enableSiteMode:function(n){return n=n||"click",this.each(function(){return t(this).bind(n,function(n){n.preventDefault();try{return window.external.msAddSiteMode()}catch(t){}})})},pinTeaser:function(n){var r,u,i;return window.external.msIsSiteMode()&&this,i=t(this),u={type:"hangingChad",icon:document.location.pathname.slice(0,document.location.pathname.lastIndexOf("/"))+"/favicon.ico",pinText:"Drag this image to the taskbar to pin this site",secondaryText:"Simply drag the icon or tab to the taskbar to pin.",addStartLink:!1,linkText:"Click here to add this site to the start menu",sticky:!0,timeout:1e3,style:{linkColor:"rgb(0, 108, 172)",backgroundColor:"rgb(0, 108, 172)",textColor:"white",backgroundImage:null,leftBackgroundImage:null,rightBackgroundImage:null,closeButtonImage:null}},r={topHat:function(){var u,r;return i.addClass("pinify-topHat-container pinify-teaser").css("color",n.style.textColor),n.style.backgroundImage&&i.css("background-image",n.style.backgroundImage),u=t("<div>",{"class":"pinify-topHat-alignment"}).appendTo(i),r=t("<div>",{"class":"pinify-topHat-content"}).appendTo(u),t("<img>",{id:"pinify-topHat-logo",src:n.icon,alt:"Drag Me","class":"msPinSite"}).appendTo(r),t("<span>").addClass("pinify-topHat-text").text(n.pinText).appendTo(r)},brandedTopHat:function(){var r;return i.addClass("pinify-brandedTopHat-container pinify-teaser").css("color",n.style.textColor),n.style.backgoundImage&&i.css("background-image",n.style.backgroundImage),r=t("<div>",{"class":"pinify-brandedTopHat-content"}).appendTo(i),t("<img>",{id:"pinify-brandedTopHat-firstLogo",src:n.icon,alt:"Drag Me","class":"msPinSite"}).appendTo(r),t("<img>",{id:"pinify-brandedTopHat-secondLogo",src:n.icon,alt:"Drag Me","class":"msPinSite"}).appendTo(r),t("<img>",{id:"pinify-brandedTopHat-thirdLogo",src:n.icon,alt:"Drag Me","class":"msPinSite"}).appendTo(r),t("<div>",{"class":"pinify-mainText"}).text(n.pinText).appendTo(r),t("<div>",{"class":"pinify-brandedTopHat-secondaryText"}).text(n.secondaryText).appendTo(r)},doubleTopHat:function(){var f,u,e,r;return i.addClass("pinify-doubleTopHat-container pinify-teaser").css("color",n.style.textColor),u=t("<div>",{"class":"pinify-doubleTopHat-left"}).appendTo(i),n.style.leftBackgroundImage&&t(u).css("background-image",n.style.leftBackgoundImage),f=t("<div>",{id:"pinify-doubleTopHat-leftBar"}).appendTo(u),t("<img>",{id:"pinify-doubleTopHat-logo",src:n.icon,alt:"Drag Me","class":"msPinSite"}).appendTo(f),r=t("<div>",{"class":"pinify-doubleTopHat-right"}).appendTo(i),n.style.rightBackgroundImage&&t(r).css("background-image",n.style.rightBackgoundImage),t("<div>",{id:"pinify-doubleTopHat-rightBar"}).appendTo(r),e=t("<div>",{id:"pinify-doubleTopHat-rightBarMainContent"}).appendTo(r),t("<div>",{"class":"pinify-mainText"}).text(n.pinText).appendTo(e),t("<div>",{"class":"pinify-doubleTopHat-lighterText"}).text(n.secondaryText).appendTo(r)},hangingChad:function(){return i.hide(),i.css({color:n.style.textColor,"background-color":n.style.backgroundColor}).addClass("pinify-hanging-container pinify-teaser"),t("<img>",{src:n.icon,"class":"msPinSite"}).appendTo(i),t("<div>",{"class":"pinify-hanging-content"}).appendTo(i),t("<div>",{id:"pinify-pinText"}).text(n.pinText).appendTo(i),i.fadeIn("slow")}},n=t.extend({},u,n),this.each(function(){if(r[n.type](),n.sticky?t("<div>").addClass("pinify-closePin").click(function(){return t(".pinify-teaser").slideUp("slow"),i.slideUp("slow")}).appendTo(i):this.delay(n.timeout).fadeOut("slow"),n.addStartLink)return t("<a>").addClass("pinify-addSiteLink").attr("href","#").click(function(n){n.preventDefault();try{return window.external.msAddSiteMode()}catch(t){}}).css("color",n.linkColor).appendTo(i).text(n.linkText)})}},t.fn.pinify=function(n){return i()?f[n]?f[n].apply(this,Array.prototype.slice.call(arguments,1)):typeof n=="object"||!n?f.init.apply(this,arguments):t.error("Method "+n+" does not exist on jQuery.pinify"):this},t.pinify={firstRunState:function(n){return i()?(n&&(n=!1),r(function(){return window.external.msIsSiteModeFirstRun(n)},0)):0},isPinned:function(){return i()?r(function(){return window.external.msIsSiteMode()},!1):!1},addJumpList:function(n){var u;return i()?(u={title:"",items:[]},n=t.extend({},u,n),r(function(){var i;if(window.external.msIsSiteMode())return window.external.msSiteModeClearJumpList(),window.external.msSiteModeCreateJumpList(n.title),i=n.items,t.each(i,function(n,t){return window.external.msSiteModeAddJumpListItem(t.name,t.url,t.icon,t.target)}),window.external.msSiteModeShowJumpList()})):!1},clearJumpList:function(){return i()?r(function(){if(window.external.msIsSiteMode())return window.external.msSiteModeClearJumpList()}):this},addOverlay:function(n){var u;return i()?(u={title:"",icon:""},n=t.extend({},u,n),r(function(){if(window.external.msIsSiteMode())return window.external.msSiteModeClearIconOverlay(),window.external.msSiteModeSetIconOverlay(n.icon,n.title)})):this},clearOverlay:function(){return i()?r(function(){if(window.external.msIsSiteMode())return window.external.msSiteModeClearIconOverlay()}):this},flashTaskbar:function(){return i()?r(function(){if(window.external.msIsSiteMode())return window.external.msSiteModeActivate()}):this},createThumbbarButtons:function(u){var f;return i()?(f={buttons:[]},u=t.extend({},f,u),r(function(){var f,i,r;if(window.external.msIsSiteMode())return i=[],f=function(){function n(){}return n.prototype.button=null,n.prototype.alternateStyle=null,n.prototype.activeStyle=0,n.prototype.click=null,n.prototype.hidden=!1,n}(),r=function(n){var t,r;return t=i[n.buttonID],t.click(),t.alternateStyle?(r=t.activeStyle===0?t.alternateStyle:0,window.external.msSiteModeShowButtonStyle(t.button,r),t.activeStyle=r):void 0},t.each(u.buttons,function(n,t){var s,e,u,o;return(e=window.external.msSiteModeAddThumbBarButton(t.icon,t.name),t.alternateStyle&&(o=t.alternateStyle,s=window.external.msSiteModeAddButtonStyle(e,o.icon,o.name)),u=new f,u.button=e,u.alternateStyle=s,u.click=t.click,u.hidden=t.hidden||!1,i[e]=u,document.addEventListener)?document.addEventListener("msthumbnailclick",r,!1):document.attachEvent?document.attachEvent("onmsthumbnailclick",r):void 0}),window.onunload=function(){var t,r,u=[];for(t in i)n.call(i,t)&&(r=i[t],u.push(window.external.msSiteModeUpdateThumbBarButton(r.button,!0,!1)));return u},window.onload=function(){var t,r,u=[];for(t in i)n.call(i,t)&&(r=i[t],u.push(r.hidden?void 0:window.external.msSiteModeUpdateThumbBarButton(r.button,!0,!0)));return u},window.external.msSiteModeShowThumbBar()})):this}}})(jQuery)}.call(this);this.JSON||(this.JSON={}),function(){"use strict";function i(n){return n<10?"0"+n:n}function o(n){return e.lastIndex=0,e.test(n)?'"'+n.replace(e,function(n){var t=s[n];return typeof t=="string"?t:"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+n+'"'}function u(i,f){var c,l,s,a,v=n,h,e=f[i];e&&typeof e=="object"&&typeof e.toJSON=="function"&&(e=e.toJSON(i));typeof t=="function"&&(e=t.call(f,i,e));switch(typeof e){case"string":return o(e);case"number":return isFinite(e)?String(e):"null";case"boolean":case"null":return String(e);case"object":if(!e)return"null";if(n+=r,h=[],Object.prototype.toString.apply(e)==="[object Array]"){for(a=e.length,c=0;c<a;c+=1)h[c]=u(c,e)||"null";return s=h.length===0?"[]":n?"[\n"+n+h.join(",\n"+n)+"\n"+v+"]":"["+h.join(",")+"]",n=v,s}if(t&&typeof t=="object")for(a=t.length,c=0;c<a;c+=1)l=t[c],typeof l=="string"&&(s=u(l,e),s&&h.push(o(l)+(n?": ":":")+s));else for(l in e)Object.hasOwnProperty.call(e,l)&&(s=u(l,e),s&&h.push(o(l)+(n?": ":":")+s));return s=h.length===0?"{}":n?"{\n"+n+h.join(",\n"+n)+"\n"+v+"}":"{"+h.join(",")+"}",n=v,s}}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+i(this.getUTCMonth()+1)+"-"+i(this.getUTCDate())+"T"+i(this.getUTCHours())+":"+i(this.getUTCMinutes())+":"+i(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var f=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n,r,s={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},t;typeof JSON.stringify!="function"&&(JSON.stringify=function(i,f,e){var o;if(n="",r="",typeof e=="number")for(o=0;o<e;o+=1)r+=" ";else typeof e=="string"&&(r=e);if(t=f,f&&typeof f!="function"&&(typeof f!="object"||typeof f.length!="number"))throw new Error("JSON.stringify");return u("",{"":i})});typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){function walk(n,t){var r,u,i=n[t];if(i&&typeof i=="object")for(r in i)Object.hasOwnProperty.call(i,r)&&(u=walk(i,r),u!==undefined?i[r]=u:delete i[r]);return reviver.call(n,t,i)}var j;if(text=String(text),f.lastIndex=0,f.test(text)&&(text=text.replace(f,function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\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,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse");})}();prettyPrint=function(){var n={el:function(t,i){var u=document.createElement(t),r,f;i=n.merge({},i);i&&i.style&&(f=i.style,n.applyCSS(u,i.style),delete i.style);for(r in i)i.hasOwnProperty(r)&&(u[r]=i[r]);return u},applyCSS:function(n,t){for(var i in t)if(t.hasOwnProperty(i))try{n.style[i]=t[i]}catch(r){}},txt:function(n){return document.createTextNode(n)},row:function(t,i,r){r=r||"td";var e=n.count(t,null)+1,f=n.el("tr"),u,o={style:n.getStyles(r,i),colSpan:e,onmouseover:function(){var t=this.parentNode.childNodes;n.forEach(t,function(t){t.nodeName.toLowerCase()==="td"&&n.applyCSS(t,n.getStyles("td_hover",i))})},onmouseout:function(){var t=this.parentNode.childNodes;n.forEach(t,function(t){t.nodeName.toLowerCase()==="td"&&n.applyCSS(t,n.getStyles("td",i))})}};return n.forEach(t,function(t){t!==null&&(u=n.el(r,o),t.nodeType?u.appendChild(t):u.innerHTML=n.shorten(t.toString()),f.appendChild(u))}),f},hRow:function(t,i){return n.row(t,i,"th")},table:function(t,i){t=t||[];var r={thead:{style:n.getStyles("thead",i)},tbody:{style:n.getStyles("tbody",i)},table:{style:n.getStyles("table",i)}},u=n.el("table",r.table),f=n.el("thead",r.thead),e=n.el("tbody",r.tbody);return t.length&&(u.appendChild(f),f.appendChild(n.hRow(t,i))),u.appendChild(e),{node:u,tbody:e,thead:f,appendChild:function(n){this.tbody.appendChild(n)},addRow:function(t,r,u){return this.appendChild(n.row.call(n,t,r||i,u)),this}}},shorten:function(n){var t=40;return n=n.replace(/^\s\s*|\s\s*$|\n/g,""),n.length>t?n.substring(0,t-1)+"...":n},htmlentities:function(n){return n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},merge:function(t,i){var r,u,f,e;typeof t!="object"&&(t={});for(r in i)if(i.hasOwnProperty(r)){if(u=i[r],typeof u=="object"){t[r]=n.merge(t[r],u);continue}t[r]=u}for(f=2,e=arguments.length;f<e;f++)n.merge(t,arguments[f]);return t},count:function(n,t){for(var r=0,i=0,u=n.length;i<u;i++)n[i]===t&&r++;return r},thead:function(n){return n.getElementsByTagName("thead")[0]},forEach:function(n,t){for(var r=n.length,i=-1;r>++i;)if(t(n[i],i,n)===!1)break;return!0},type:function(n){try{if(n===null)return"null";if(n===undefined)return"undefined";var t=Object.prototype.toString.call(n).match(/\s(.+?)\]/)[1].toLowerCase();return n.nodeType?n.nodeType===1?"domelement":"domnode":/^(string|number|array|regexp|function|date|boolean)$/.test(t)?t:typeof n=="object"?n.jquery&&typeof n.jquery=="string"?"jquery":"object":n===window||n===document?"object":"default"}catch(i){return"default"}},within:function(n){return{is:function(t){for(var i in n)if(n[i]===t)return i;return""}}},common:{circRef:function(i,r){return n.expander("[POINTS BACK TO <strong>"+r+"<\/strong>]","Click to show this item anyway",function(){this.parentNode.appendChild(t(i,{maxDepth:1}))})},depthReached:function(i){return n.expander("[DEPTH REACHED]","Click to show this item anyway",function(){try{this.parentNode.appendChild(t(i,{maxDepth:1}))}catch(r){this.parentNode.appendChild(n.table(["ERROR OCCURED DURING OBJECT RETRIEVAL"],"error").addRow([r.message]).node)}})}},getStyles:function(i,r){return r=t.settings.styles[r]||{},n.merge({},t.settings.styles["default"][i],r[i])},expander:function(t,i,r){return n.el("a",{innerHTML:n.shorten(t)+' <b style="visibility:hidden;">[+]<\/b>',title:i,onmouseover:function(){this.getElementsByTagName("b")[0].style.visibility="visible"},onmouseout:function(){this.getElementsByTagName("b")[0].style.visibility="hidden"},onclick:function(){return this.style.display="none",r.call(this),!1},style:{cursor:"pointer"}})},stringify:function(t){var u=n.type(t),i,f=!0,r;if(u==="array")return i="[",n.forEach(t,function(t,r){i+=(r===0?"":", ")+n.stringify(t)}),i+"]";if(typeof t=="object"){i="{";for(r in t)t.hasOwnProperty(r)&&(i+=(f?"":", ")+r+":"+n.stringify(t[r]),f=!1);return i+"}"}return u==="regexp"?"/"+t.source+"/":u==="string"?'"'+t.replace(/"/g,'\\"')+'"':t.toString()},headerGradient:function(){var n=document.createElement("canvas"),t,i,r;return n.getContext?(t=n.getContext("2d"),n.height=30,n.width=1,i=t.createLinearGradient(0,0,0,30),i.addColorStop(0,"rgba(0,0,0,0)"),i.addColorStop(1,"rgba(0,0,0,0.25)"),t.fillStyle=i,t.fillRect(0,0,1,30),r=n.toDataURL&&n.toDataURL(),"url("+(r||"")+")"):""}()},t=function(i,r){var e;r=r||{};var u=n.merge({},t.config,r),o=n.el("div"),h=t.config,f={},s=!1;return t.settings=u,e={string:function(t){return n.txt('"'+n.shorten(t.replace(/"/g,'\\"'))+'"')},number:function(t){return n.txt(t)},regexp:function(t){var i=n.table(["RegExp",null],"regexp"),r=n.table(),f=n.expander("/"+t.source+"/","Click to show more",function(){this.parentNode.appendChild(i.node)});return r.addRow(["g",t.global]).addRow(["i",t.ignoreCase]).addRow(["m",t.multiline]),i.addRow(["source","/"+t.source+"/"]).addRow(["flags",r.node]).addRow(["lastIndex",t.lastIndex]),u.expanded?i.node:f},domelement:function(t){var i=n.table(["DOMElement",null],"domelement"),r=t.nodeName||"";return i.addRow(["tag","&lt;"+r.toLowerCase()+"&gt;"]),n.forEach(["id","className","innerHTML","src","href"],function(r){t[r]&&i.addRow([r,n.htmlentities(t[r])])}),u.expanded?i.node:n.expander("DOMElement ("+r.toLowerCase()+")","Click to show more",function(){this.parentNode.appendChild(i.node)})},domnode:function(t){var i=n.table(["DOMNode",null],"domelement"),r=n.htmlentities((t.data||"UNDEFINED").replace(/\n/g,"\\n"));return i.addRow(["nodeType",t.nodeType+" ("+t.nodeName+")"]).addRow(["data",r]),u.expanded?i.node:n.expander("DOMNode","Click to show more",function(){this.parentNode.appendChild(i.node)})},jquery:function(n,t,i){return e.array(n,t,i,!0)},object:function(t,i,r){var v=n.within(f).is(t),o,c,h,l,a,y;if(v)return n.common.circRef(t,v,u);if(f[r||"TOP"]=t,i===u.maxDepth)return n.common.depthReached(t,u);o=n.table(["Object",null],"object");c=!0;for(h in t)if(!t.hasOwnProperty||t.hasOwnProperty(h)){l=t[h];a=n.type(l);c=!1;try{o.addRow([h,e[a](l,i+1,h)],a)}catch(p){window.console&&window.console.log&&console.log(p.message)}}return c?o.addRow(["<small>[empty]<\/small>"]):o.thead.appendChild(n.hRow(["key","value"],"colHeader")),y=u.expanded||s?o.node:n.expander(n.stringify(t),"Click to show more",function(){this.parentNode.appendChild(o.node)}),s=!0,y},array:function(t,i,r,o){var h=n.within(f).is(t);if(h)return n.common.circRef(t,h);if(f[r||"TOP"]=t,i===u.maxDepth)return n.common.depthReached(t);var c=o?"jQuery":"Array",s=n.table([c+"("+t.length+")",null],o?"jquery":c.toLowerCase()),l=!0;return o&&s.addRow(["selector",t.selector]),n.forEach(t,function(t,r){l=!1;s.addRow([r,e[n.type(t)](t,i+1,r)])}),o||(l?s.addRow(["<small>[empty]<\/small>"]):s.thead.appendChild(n.hRow(["index","value"],"colHeader"))),u.expanded?s.node:n.expander(n.stringify(t),"Click to show more",function(){this.parentNode.appendChild(s.node)})},"function":function(t,i,r){var o=n.within(f).is(t);if(o)return n.common.circRef(t,o);f[r||"TOP"]=t;var e=n.table(["Function",null],"function"),c=n.table(["Arguments"]),s=t.toString().match(/\((.+?)\)/),h=t.toString().match(/\(.*?\)\s+?\{?([\S\s]+)/)[1].replace(/\}?$/,"");return e.addRow(["arguments",s?s[1].replace(/[^\w_,\s]/g,""):"<small>[none/native]<\/small>"]).addRow(["body",h]),u.expanded?e.node:n.expander("function(){...}","Click to see more about this function.",function(){this.parentNode.appendChild(e.node)})},date:function(t){var i=n.table(["Date",null],"date"),r=t.toString().split(/\s/);return i.addRow(["Time",r[4]]).addRow(["Date",r.slice(0,4).join("-")]),u.expanded?i.node:n.expander("Date (timestamp): "+ +t,"Click to see a little more info about this date",function(){this.parentNode.appendChild(i.node)})},boolean:function(t){return n.txt(t.toString().toUpperCase())},undefined:function(){return n.txt("UNDEFINED")},"null":function(){return n.txt("NULL")},"default":function(){return n.txt("prettyPrint: TypeNotFound Error")}},o.appendChild(e[u.forceObject?"object":n.type(i)](i,0)),o};return t.config={expanded:!0,forceObject:!1,maxDepth:3,styles:{array:{th:{backgroundColor:"#6DBD2A",color:"white"}},"function":{th:{backgroundColor:"#D82525"}},regexp:{th:{backgroundColor:"#E2F3FB",color:"#000"}},object:{th:{backgroundColor:"#1F96CF"}},jquery:{th:{backgroundColor:"#FBF315"}},error:{th:{backgroundColor:"red",color:"yellow"}},domelement:{th:{backgroundColor:"#F3801E"}},date:{th:{backgroundColor:"#A725D8"}},colHeader:{th:{backgroundColor:"#EEE",color:"#000",textTransform:"uppercase"}},"default":{table:{borderCollapse:"collapse",width:"100%"},td:{padding:"5px",fontSize:"12px",backgroundColor:"#FFF",color:"#222",border:"1px solid #000",verticalAlign:"top",fontFamily:'"Consolas","Lucida Console",Courier,mono',whiteSpace:"nowrap"},td_hover:{},th:{padding:"5px",fontSize:"12px",backgroundColor:"#222",color:"#EEE",textAlign:"left",border:"1px solid #000",verticalAlign:"top",fontFamily:'"Consolas","Lucida Console",Courier,mono',backgroundImage:n.headerGradient,backgroundRepeat:"repeat-x"}}}},t}();$(document).ready(function(){var n=new URI(window.location.href),t=n.subdomain();tinymce.init({selector:"textarea.tinymce",encoding:"xml",relative_urls:!1,remove_script_host:!1,document_base_url:t+".desertcodecamp.com/",plugins:"anchor, charmap, code, contextmenu, emoticons, hr, image, insertdatetime, link, lists, paste, preview, print, searchreplace, spellchecker, table, textcolor, wordcount",setup:function(n){n.on("SaveContent",function(n){var t=n.content.replace(/&#39/gi,"&apos");n.content=t})}})});$(document).ready(function(){$("#MainInput").validate({highlight:function(n){$(n).closest(".form-group").addClass("has-error")},unhighlight:function(n){$(n).closest(".form-group").removeClass("has-error")},errorElement:"span",errorClass:"help-block",errorPlacement:function(n,t){t.parent(".input-group").length?n.insertAfter(t.parent()):n.insertAfter(t)},submitHandler:function(n){n.submit()}})});$("img").one("error",function(){let n=$(this);fallbackImage(n)});$(document).ready(function(){$(".PopMe").popover({placement:"right",trigger:"hover",title:"Session Abstract",html:!0,container:"body",animation:!0});$(".TipMe").tooltip({placement:"right",delay:500});$(".TipMeTop").tooltip({placement:"top",delay:500});$("img").each(function(){const n=$(this);(this.naturalWidth===0||this.naturalHeight===0)&&fallbackImage(n)});$("div.btn-group[data-toggle-name]").each(function(){const n=$(this),i=n.attr("data-toggle-name"),t=$("#"+i);$("button",n).each(function(){const n=$(this);n.live("click",function(){t.val($(this).val())});n.val()===t.val()&&n.addClass("active")})});$(":checkbox").bootstrapSwitch();$("#loginDiv").find("fieldset").children(".has-error").length>0&&$("#loginDiv").modal("show");setTimeout(closeDatePanel,3e4)});$(document).ready(function(){function t(n){var t="<div class='row'>";return t+="<div class='col-xs-3'>",t+="<img class='img-thumbnail' src='"+n.ImageWithBlankUrl+"' title='"+n.DisplayName+"'/>",t+="<\/div>",t+="<div class='col-xs-9'>",t+="<h1>"+n.DisplayName+"<\/h1>",t+=$("<div />").html(n.Biography).text(),t+="<\/div>",t+"<\/div>"}function i(n){return n.DisplayName}var n="https://api.desertcodecamp.com/User/GetUser";$("#HiddenOwnerId").addClass("form-control").select2({placeholder:"Find a user",minimumInputLength:2,ajax:{url:"https://api.desertcodecamp.com/User/SearchForUser",dataType:"json",data:function(n){return{text:n}},results:function(n){return{results:n}}},initSelection:function(t,i){var r=$(t).val();r!=""&&$.ajax(n,{data:{userid:r},dataType:"json"}).done(function(n){i(n)})},id:function(n){return n.UserId},dropdownCssClass:"userItem",formatResult:t,formatSelection:i,escapeMarkup:function(n){return n}})});$(document).ready(function(){$("#loginName").rules("add",{required:!0,remote:{type:"GET",url:"https://api.desertcodecamp.com/user/IsLoginOkToUse",contentType:"application/json; charset=utf-8",dataType:"json",data:{login:function(){return $("#loginName").val()}}},messages:{required:"Please specify a login to use for this site.",remote:"This login is already in use for this site."}});$("#emailTextBox").rules("add",{required:!0,remote:{type:"GET",contentType:"application/json; charset=utf-8",dataType:"json",url:"https://api.desertcodecamp.com/user/IsEmailOkToUse",data:{email:function(){return $("#emailTextBox").val()}}},messages:{required:"Please specify an email address to use for this site.",remote:"This email address is already in use for this site."}})});$(document).ready(function(){$("#ApprovedSessionsCheckBox").on("switchChange.bootstrapSwitch",function(){showHide($(".session-approved"),$("#ApprovedSessionsCheckBox").is(":checked"))});$("#UnapprovedSessionsCheckBox").on("switchChange.bootstrapSwitch",function(){showHide($(".session-pending-approval"),$("#UnapprovedSessionsCheckBox").is(":checked"))})});$(document).ready(function(){$('table.sessionList tr input[type="checkbox"]').filter(":checked").parents("tr").addClass("success");$(".TipMe").tooltip();$(".switch-change").on("switchChange.bootstrapSwitch",function(n,t){var i=$(this).data("session-id");sendInterest(i,t)})});$(function(){refreshInterest();refreshDetailsView();$(".FixHeight> span").tooltip();$("a[data-is-interested]").click(function(n){n.preventDefault();toggleSessionInterest($(this))});$("a[data-isexpanded]").click(function(n){n.preventDefault();toggleDetailView($(this))});$("a[data-ispresenting=1]").parent().parent().addClass("alert-info")});$(document).ready(function(){$("#txtLogin").rules("add",{required:!0,remote:{type:"GET",url:"https://api.desertcodecamp.com/user/IsLoginOkToUseForUser",contentType:"application/json; charset=utf-8",crossDomain:"true",dataType:"json",data:{login:function(){return $("#txtLogin").val()},userId:function(){return $("#lblUserId").val()}}},messages:{required:"Please specify a login to use for this site.",remote:"This login is already in use for this site."}});$("#txtEmail").rules("add",{required:!0,remote:{type:"GET",url:"https://api.desertcodecamp.com/user/IsEmailOkToUseForUser",crossDomain:"true",contentType:"application/json; charset=utf-8",dataType:"json",data:{email:function(){return $("#txtEmail").val()},userId:function(){return $("#lblUserId").val()}}},messages:{required:"Please specify an email address to use for this site.",remote:"This email address is already in use for this site."}})})