(function(n,t,i){n.techsmith=n.techsmith||{};var r="/Content/Images/profile-avatar-default.png";n.techsmith.AccountWidget=i.View.extend({events:{"click .account-widget-toggle":"toggleWidget"},initialize:function(){this.widgetIsShown=!1,this.updateProfileInformation(this.model.techSmithId)},toggleWidget:function(n){n.preventDefault(),this.widgetIsShown?this.$el.find(".account-widget-container").fadeOut(200):this.$el.find(".account-widget-container").fadeIn(200),this.widgetIsShown=!this.widgetIsShown},updateProfileInformation:function(n){var i=this;t.ajax({type:"GET",url:i.model.accountPageUrl+"/api/v1/profiles/"+n+"/default",success:function(n){n.displayName?i.setProfileWidgetDisplayName(n.displayName):i.setProfileWidgetDisplayName("Unknown User"),n.profileImageUrl?i.setProfileWidgetImage(n.profileImageUrl):i.setProfileWidgetImage(r)},error:function(){i.setProfileWidgetDisplayName("Unknown User"),i.setProfileWidgetImage(r)}})},setProfileWidgetDisplayName:function(n){this.$el.find(".account-widget-body-details-name").text(n)},setProfileWidgetImage:function(n){var i=new Image;i.onload=function(){t(".account-profile-small-image").attr("src",n),t(".account-profile-large-image").attr("src",n)},i.onerror=function(){t(".account-profile-small-image").attr("src",r),t(".account-profile-large-image").attr("src",r)},i.onabort=function(){t(".account-profile-small-image").attr("src",r),t(".account-profile-large-image").attr("src",r)},i.src=n}})})(window,$,Backbone),window.techsmith=window.techsmith||{},techsmith.gaq=typeof _gaq=="undefined"?undefined:_gaq,function(n,t){n.techsmith=n.techsmith||{},n.techsmith.AnalyticsWrapper=function(){return{recordEventWithoutBounce:function(n,i,r,u){t&&t.push(["_trackEvent",n,i,r,u,!0])},setCrossDomainLinks:function(){if(t!==undefined){var n=t.length?!1:!0,i=document.domain;$.each(["de.techsmith.",".techsmith.de/","jp.techsmith.",".techsmith.co.jp",".tsc-",".custhelp.com"],function(){var r=this.toString(),u=$("a[href*='"+r+"']").not(".not-cross-domain, a[href*='"+i+"']");u.click(function(){if(n)return t.push(["_link",$(this).attr("href")]),!1})})}}}}()}(window,techsmith.gaq),function(n,t,i){n.techsmith=n.techsmith||{},n.techsmith.notify=n.techsmith.notify||{};var r=1e4;n.techsmith.notify.showPageLoadError=function(n,t){var i=new techsmith.MessageModel({message:n}),r=new techsmith.MessageView({model:i});t.append(r.render().el)},n.techsmith.notify.log=function(n){t.log(n,"",0)},n.techsmith.notify.logWithTimeout=function(n,i){i=i||r,t.log(n,"",i)},n.techsmith.notify.success=function(n){t.success(n,0)},n.techsmith.notify.successWithTimeout=function(n,i){i=i||r,t.success(n,i)},n.techsmith.notify.error=function(n){t.error(n,0)},n.techsmith.notify.errorWithTimeout=function(n,i){i=i||r,t.error(n,"",i)},n.techsmith.notify.alert=function(i){t.set({labels:{ok:n.techsmith.strings.common.ok}}),t.alert(i)},n.techsmith.notify.confirm=function(r,u,f,e){typeof e=="undefined"&&(e={ok:n.techsmith.strings.common.ok,cancel:n.techsmith.strings.common.cancel}),t.set({labels:{ok:e.ok,cancel:e.cancel},buttonReverse:!0}),t.confirm(r,function(n){n?i.isFunction(u)&&u():i.isFunction(f)&&f()})},n.techsmith.notify.alertWithHeader=function(t,r){n.techsmith.notify.alert("");var u='<p class="confirmHeader">'+t+'<\/p><p class="confirmMessage">'+r+"<\/p>";i(".alertify-message").append(i.parseHTML(u))},n.techsmith.notify.confirmWithHeader=function(t,r,u,f,e){n.techsmith.notify.confirm("",u,f,e);var o='<p class="confirmHeader">'+t+'<\/p><p class="confirmMessage">'+r+"<\/p>";i(".alertify-message").append(i.parseHTML(o))}}(window,alertify,jQuery),function(n,t){n.techsmith=n.techsmith||{},n.techsmith.enableKeepAlive=function(){n.setInterval(function(){t.get("/Home/KeepAlive")},6e4)}}(window,jQuery),function(n,t){"use strict";n.LegacyUploadMediaView=Backbone.View.extend({events:{'change input[type="file"]':"fileSelected"},initialize:function(){_(this).bindAll("render","fileSelected"),this.render()},render:function(){var n=t.templates.legacyMediaUpload,i=n({});$(this.el).append(i)},fileSelected:function(t){var u,f;$("#uploadError").remove();var i=0,r=this.$('input[type="file"]');if(n.ActiveXObject)try{u=new ActiveXObject("Scripting.FileSystemObject"),f=u.getFile(r.val()),i=f.size}catch(t){}else i=t.target.files[0].size;i>104857600&&(r.replaceWith(r.clone().val("")),$(this.el).before($("<h3>").prop("id","uploadError").text("Files cannot be over 100MB, please try again.").css("color","#A80000")))}})}(window,Handlebars),function(n,t){n.techsmith=n.techsmith||{},n.techsmith.MessageModel=t.Model.extend({})}(window,Backbone),function(n,t,i){n.techsmith=n.techsmith||{},n.techsmith.MessageView=i.View.extend({className:"error-message",model:techsmith.MessageModel,initialize:function(){Handlebars.registerHelper("message",function(){return new Handlebars.SafeString(this.message)}),this.template=Handlebars.templates.message},render:function(){return this.$el.html(this.template(this.model.attributes)),this}})}(window,$,Backbone),function(n){n.techsmith=n.techsmith||{},n.techsmith.QuestionConstants=function(){function t(){var n,i=document.createElement("fakeelement"),t={OTransition:"oTransitionEnd",MSTransition:"msTransitionEnd",msTransition:"transitionend",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd",transition:"transitionEnd"};for(n in t)if(i.style[n]!==undefined)return t[n];return undefined}var n;return n=t(),{Type:{FillInTheBlank:"FillInTheBlank",ShortAnswer:"ShortAnswer",MultipleChoice:"MultipleChoice",TrueFalse:"TrueFalse"},MaxAllowedCharacters:750,NoTouchClass:"no-touch",TransitionEvent:n}}()}(window,jQuery),function(n,t,i){n.techsmith=n.techsmith||{},n.techsmith.scrollIntoView=function(r,u,f,e){var o=i(n),p=o.height()-u,s=o.scrollTop()+u,c=p+s,l=i(r).offset(),a=l.top-f,v=l.top+i(r).height()+f,h=0,y;a<s?h=a-s:v>c&&(h=v-c),y=o.scrollTop()+h,typeof e=="undefined"&&(e=0),i(t).scrollTo(y,{axis:"y",duration:e})}}(window,document,jQuery),function(n,t,i){n.techsmith=n.techsmith||{},n.techsmith.ScrollToElementButtonView=i.View.extend({tagName:"div",className:"back-to-top-button",events:{click:"onClick"},initialize:function(){_(this).bindAll("onScroll"),this.template=t.templates.scrollToElementButton,this.labelText=this.options.labelText,this.focusSelector=this.options.focusSelector,this.threshold=parseInt(this.options.threshold),this.disable()},enable:function(){$(n).on("scroll.scrollToElement",this.onScroll);this.onScroll()},disable:function(){$(n).off("scroll.scrollToElement"),this.$el.fadeOut()},close:function(){$(n).off("scroll.scrollToElement")},onScroll:function(){$(n).scrollTop()>this.threshold?this.$el.fadeIn():this.$el.fadeOut()},onClick:function(){if(this.focusSelector&&this.focusSelector.length>0){var t=$(this.focusSelector);$(document).scrollTo(t,{offset:-($(n).height()/2),axis:"y",duration:500})}else $("body,html").animate({scrollTop:0},500);return n.techsmith.AnalyticsWrapper.recordEventWithoutBounce("Reports Page, Viewer Tab","Clicked on Return Button"),!1},render:function(){var n=this.template({labelText:this.labelText});return this.$el.html(n),this.$el.hide(),this}})}(window,Handlebars,Backbone),function(n){"use strict";n.UploadMediaview=Backbone.View.extend({events:{"dragenter #uploadArea":"noopHandler","dragexit #uploadArea":"noopHandler","dragover #uploadArea":"noopHandler","drop #uploadArea":"drop"},initialize:function(){this.render()},handleReaderLoad:function(n){var t=[location.protocol,"//",location.host,location.pathname].join("");t=t+"/UploadFile",$.ajax({url:t,data:n.target.result,cache:!1,contentType:"multipart/form-data",processData:!1,type:"POST",success:function(n){techsmith.notify.alert(n)}})},handleFiles:function(n){var i=n[0],t=new FileReader;t.onload=this.handleReaderLoad,t.readAsBinaryString(i)},noopHandler:function(n){n.stopPropagation(),n.preventDefault()},drop:function(n){var t,i;n.stopPropagation(),n.preventDefault(),t=n.originalEvent.dataTransfer.files,t&&t.length>0&&(i=t.length,i>0&&this.handleFiles(t))},render:function(){var n=$("#media_upload_template").html(),t=Handlebars.compile(n),i=t({uploadMessage:"Upload it!"});$(this.el).append(i)}})}(window)