function Tick(){hasChanges&&SaveDraft(!1);window.setTimeout("Tick()",5e3)}function SaveDraft(n){hasChanges=!1;$("#SubmissionForm").data("changed",!0);var i=$(":input:not([name$=Label]):not([name^=PayPal])").serialize(),t=!1;$.ajax({type:"POST",cache:!1,dataType:"json",async:!0,url:"/submit/savedraft?aid="+getQueryParam("aid")+"&"+$.now(),data:i+"&button="+n,success:function(i){i=="reload"&&(bootbox.alert("<span role='alert' aria-atomic='true'>There is a problem loading your user account. You may have signed out of this account or signed in as a different user. This page will be reloaded.<\/span>"),window.location.reload());t=i==!0;n?t?SBM.ShowNotification("Draft saved."):SBM.ShowNotification("There was a problem saving the draft. Please try again.","error"):($("#draft-will-save-text")[t?"addClass":"removeClass"]("hidden"),$("#draft-autosaved-text")[t?"removeClass":"addClass"]("hidden"))},error:function(){}})}function getQueryParam(n){var t=new RegExp("[?&]"+encodeURIComponent(n)+"=([^&]*)").exec(location.search);return t?decodeURIComponent(t[1]):""}!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof exports?module.exports=n:n(jQuery)}(function(n){function u(r){var u=r||window.event,w=c.call(arguments,1),l=0,s=0,e=0,a=0,b=0,k=0,v,y,p;if(r=n.event.fix(u),r.type="mousewheel","detail"in u&&(e=-1*u.detail),"wheelDelta"in u&&(e=u.wheelDelta),"wheelDeltaY"in u&&(e=u.wheelDeltaY),"wheelDeltaX"in u&&(s=-1*u.wheelDeltaX),"axis"in u&&u.axis===u.HORIZONTAL_AXIS&&(s=-1*e,e=0),l=0===e?s:e,"deltaY"in u&&(e=-1*u.deltaY,l=e),"deltaX"in u&&(s=u.deltaX,0===e&&(l=-1*s)),0!==e||0!==s)return 1===u.deltaMode?(v=n.data(this,"mousewheel-line-height"),l*=v,e*=v,s*=v):2===u.deltaMode&&(y=n.data(this,"mousewheel-page-height"),l*=y,e*=y,s*=y),(a=Math.max(Math.abs(e),Math.abs(s)),(!t||t>a)&&(t=a,o(u,a)&&(t/=40)),o(u,a)&&(l/=40,s/=40,e/=40),l=Math[l>=1?"floor":"ceil"](l/t),s=Math[s>=1?"floor":"ceil"](s/t),e=Math[e>=1?"floor":"ceil"](e/t),i.settings.normalizeOffset&&this.getBoundingClientRect)&&(p=this.getBoundingClientRect(),b=r.clientX-p.left,k=r.clientY-p.top),r.deltaX=s,r.deltaY=e,r.deltaFactor=t,r.offsetX=b,r.offsetY=k,r.deltaMode=0,w.unshift(r,l,s,e),f&&clearTimeout(f),f=setTimeout(h,200),(n.event.dispatch||n.event.handle).apply(this,w)}function h(){t=null}function o(n,t){return i.settings.adjustOldDeltas&&"mousewheel"===n.type&&t%120==0}var f,t,s=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],r="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],c=Array.prototype.slice,e,i;if(n.event.fixHooks)for(e=s.length;e;)n.event.fixHooks[s[--e]]=n.event.mouseHooks;i=n.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=r.length;t;)this.addEventListener(r[--t],u,!1);else this.onmousewheel=u;n.data(this,"mousewheel-line-height",i.getLineHeight(this));n.data(this,"mousewheel-page-height",i.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=r.length;t;)this.removeEventListener(r[--t],u,!1);else this.onmousewheel=null;n.removeData(this,"mousewheel-line-height");n.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var r=n(t),i=r["offsetParent"in n.fn?"offsetParent":"parent"]();return i.length||(i=n("body")),parseInt(i.css("fontSize"),10)||parseInt(r.css("fontSize"),10)||16},getPageHeight:function(t){return n(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};n.fn.extend({mousewheel:function(n){return n?this.bind("mousewheel",n):this.trigger("mousewheel")},unmousewheel:function(n){return this.unbind("mousewheel",n)}})}),function(n){n.fn.AttachDropdownOnClickFN=function(t){return this.each(function(){new n.AttachDropdownOnClickFN(this,t)})};n.AttachDropdownOnClickFN=function(t,i){var r=this;if(r.$el=n(t),r.el=t,this.dropdownMenu=r.$el.find(".dropdown-menu"),!this.dropdownMenu.length)return console.error("$.AttachDropdownOnClickFN: no .dropdown-menu child element found under element:"),console.error(t),undefined;if(this.hiddenInput=this.dropdownMenu.siblings(".submit-value"),!this.hiddenInput.length)return console.error("$.AttachDropdownOnClickFN: no .submit-value element found under element:"),console.error(t),undefined;if(this.dropdownStyle=this.dropdownMenu.hasClass("check")?"check":this.dropdownMenu.hasClass("checkbox")?"checkbox":"default",r.$el.hasClass("divider"))return undefined;r.$el.data("AttachDropdownOnClickFN",r);r.init=function(){r.options=n.extend({},n.AttachDropdownOnClickFN.defaultOptions,i);r.clickFN=null;switch(this.dropdownStyle){case"checkbox":case"check":r.clickFN=this.dropdownStyle==="check"?this.DropdownClickFNCheck:this.DropdownClickFNCheckBox;r.dropdownMenu.find("li.sbm-menu-item").on("click",null,r,r.clickFN);r.dropdownMenu.find("li.select-all").data("submit-value",r.options.TextForSelectAll).find(".text-01").html(r.options.TextForSelectAll);r.dropdownMenu.find("li.select-none").data("submit-value",r.options.TextForSelectNone).find(".text-01").html(r.options.TextForSelectNone);break;case"default":default:r.clickFN=this.DropdownClickFNDefault;r.dropdownMenu.find("li.sbm-menu-item").on("click",null,r,this.DropdownClickFNDefault);r.options.PlaceholderClass!==null&&r.dropdownMenu.siblings(".dropdown-toggle").find(".dropdown-value")[r.hiddenInput.val()===""?"addClass":"removeClass"](r.options.PlaceholderClass)}r.$el.on("keydown",null,r,this.KeypressFN);(r.dropdownStyle==="check"||r.dropdownStyle==="checkbox")&&r.SetToggleButtonText()};r.PreClick=function(t){return this.$el.hasClass("dropdown-header")||this.$el.hasClass("divider")?!1:r.options.Click&&(r.options.Click.call(n(t.currentTarget||t.srcElement).first(),t),r.options.PreventDefaultClick===!0)?!1:!0};r.PostClick=function(n){r.$el.trigger("SBMDropdownClickItem",n)};r.SetToggleButtonText=function(n){var i,u,t;i=r.options.Storage==="hidden-input"?r.hiddenInput.val().match(/\|/g):r.hiddenInput.find("option:selected");u=i?i.length:0;t=r.dropdownMenu.siblings("button.dropdown-toggle");u>1?t.find(".dropdown-value").html(r.options.TextForMultipleSelections):u===1?t.find(".dropdown-value").html(r.dropdownMenu.find(".selected").text().trim()):t.find(".dropdown-value").html(r.options.TextForNoneSelected);(SBM.controlPressed||r.dropdownStyle==="checkbox")&&typeof n!="undefined"&&typeof n.stopPropagation=="function"&&n.stopPropagation()};r.Val=function(n){var t=r.dropdownMenu.find(".sbm-menu-item[data-submit-value='"+n+"']"),i;t.length&&(r.hiddenInput.val(n),i=r.dropdownMenu.siblings("button.dropdown-toggle").find(".dropdown-value"),i.html(t.text()))};r.init()};n.AttachDropdownOnClickFN.prototype.KeypressFN=function(n){var t=n.data,i;switch(n.keyCode){case 38:i=t.dropdownMenu.find("li div:focus");t.$el.hasClass("open")||t.$el.trigger("show.bs.dropdown");setTimeout(function(){if(i.length){var n=i.parent().prevAll(":not(.divider)").first();n.length==0&&i.parent().parent().hasClass("scroll-area")&&(n=i.parent().parent().prevAll(":not(.divider)").first());n.children("div").first().focus()}else t.$el.hasClass("dropup")?t.dropdownMenu.find("li:not(.done):not(.divider)").last().children("div").first().focus():t.dropdownMenu.find("li").first().children("div").first().focus()},0);break;case 40:i=t.dropdownMenu.find("li div:focus");t.$el.hasClass("open")||t.$el.trigger("show.bs.dropdown");setTimeout(function(){if(i.length){var n=i.parent().nextAll(":not(.divider)").first();n.hasClass("scroll-area")&&(n=n.children("li").first());n.children("div").first().focus()}else t.dropdownMenu.find("li").first().children("div").first().focus()},0);break;case 13:i=t.dropdownMenu.find("li div:focus");i.length?(n.currentTarget=i.parent()[0],t.clickFN(n),t.$el.removeClass("open"),setTimeout(function(){t.$el.find("button").first().focus()},0)):setTimeout(function(){t.dropdownMenu.find("li").first().children("div").focus()},0)}};n.AttachDropdownOnClickFN.prototype.DropdownClickFNDefault=function(t){var i=t.data,r,u;i.PreClick(t)===!0&&(r=n(t.currentTarget||t.srcElement),i.hiddenInput.val(r.data("submit-value")),u=i.dropdownMenu.siblings("button.dropdown-toggle").find(".dropdown-value"),u.html(r.find(".text-01").text()),i.options.PlaceholderClass!==null&&u[i.hiddenInput.val()===""?"addClass":"removeClass"](i.options.PlaceholderClass),i.PostClick())};n.AttachDropdownOnClickFN.prototype.DropdownClickFNCheck=function(t){function e(t){n(t).addClass("selected");n(t).find(".right-icon.check").addClass("submitticon-check ")}var i=t.data,r,f,u;i.PreClick()===!0&&(r=n(t.currentTarget?t.currentTarget:t.srcElement),f={},i.options.ItemsForSelectingAll[r.data("submit-value")]?(u="",r.siblings(":not(.selected):not(.divider):not(.dropdown-header)").each(function(t,o){n(o).data("submit-value")==r.data("submit-value")||f[n(o).data("submit-value")]||(i.options.Storage=="hidden-input"?u=u+n(o).data("submit-value")+"|":i.hiddenInput.find("option[value='"+n(o).data("submit-value")+"']").prop("selected",!0),e(o))}),i.options.Storage=="hidden-input"&&i.hiddenInput.val(i.hiddenInput.val()+u)):r.hasClass("selected")?(r.removeClass("selected"),r.find(".right-icon").removeClass("submitticon-check"),i.options.Storage=="hidden-input"?i.hiddenInput.val(i.hiddenInput.val().replace(r.data("submit-value")+"|","")):i.hiddenInput.find("option[value='"+r.data("submit-value")+"']").prop("selected",!1)):(e(t.currentTarget),i.options.Storage=="hidden-input"?i.hiddenInput.val(i.hiddenInput.val()+r.data("submit-value")+"|"):i.hiddenInput.find("option[value='"+r.data("submit-value")+"']").prop("selected",!0)),(i.dropdownStyle==="check"||i.dropdownStyle==="checkbox")&&i.SetToggleButtonText(t),i.PostClick())};n.AttachDropdownOnClickFN.prototype.DropdownClickFNCheckBox=function(t){function s(t){n(t).addClass("selected");n(t).find("span.submitticon-checkbox-check").addClass("checked")}var i=t.data,r,e,u,f,o;i.PreClick()===!0&&(r=n(t.currentTarget?t.currentTarget:t.srcElement),e={},i.options.ItemsForSelectingAll[r.data("submit-value")]?(u="",r.siblings(".scroll-area").find(".sbm-menu-item:not(.selected):not(.divider):not(.dropdown-header)").each(function(t,f){n(f).data("submit-value")==r.data("submit-value")||e[n(f).data("submit-value")]||(i.options.Storage=="hidden-input"?u=u+n(f).data("submit-value")+"|":i.hiddenInput.find("option[value='"+n(f).data("submit-value")+"']").prop("selected",!0),s(f))}),i.options.Storage=="hidden-input"&&i.hiddenInput.val(i.hiddenInput.val()+u)):i.options.ItemsForSelectingNone[r.data("submit-value")]?(r.siblings(".scroll-area").find(".sbm-menu-item.selected:not(.divider):not(.dropdown-header)").each(function(t,u){n(u).data("submit-value")==r.data("submit-value")||e[n(u).data("submit-value")]||(n(u).removeClass("selected"),n(u).find("span.submitticon-checkbox-check").removeClass("checked"),i.options.Storage=="hidden-input"?i.hiddenInput.val(i.hiddenInput.val().replace(n(u).data("submit-value")+"|","")):i.hiddenInput.find("option[value='"+n(u).data("submit-value")+"']").prop("selected",!1))}),i.options.Storage=="hidden-input"&&i.hiddenInput.val(i.hiddenInput.val()+u)):r.hasClass("done")?(f=r.closest(".temporary-dropup"),o=r.closest(".temporary-dropdown"),(f.length||o.length)&&(f.length?f.removeClass("open"):o.removeClass("open"))):r.hasClass("selected")?(r.removeClass("selected"),r.find("span.submitticon-checkbox-check").removeClass("checked"),i.options.Storage=="hidden-input"?i.hiddenInput.val(i.hiddenInput.val().replace(r.data("submit-value")+"|","")):i.hiddenInput.find("option[value='"+r.data("submit-value")+"']").prop("selected",!1)):(s(t.currentTarget),i.options.Storage=="hidden-input"?i.hiddenInput.val(i.hiddenInput.val()+r.data("submit-value")+"|"):i.hiddenInput.find("option[value='"+r.data("submit-value")+"']").prop("selected",!0)),(i.dropdownStyle==="check"||i.dropdownStyle==="checkbox")&&i.SetToggleButtonText(t),i.PostClick())};n.AttachDropdownOnClickFN.StorageHiddenInput="hidden-input";n.AttachDropdownOnClickFN.StorageMultiSelect="multi-input";n.AttachDropdownOnClickFN.defaultOptions={Click:null,PreventDefaultClick:!1,ItemsForSelectingAll:{"All Actions":!0,"any label":!0},ItemsForSelectingNone:{"No Actions":!0},TextForNoneSelected:"No Actions",TextForMultipleSelections:"Multiple Actions",TextForSelectAll:"All Actions",TextForSelectNone:"No Actions",Storage:n.AttachDropdownOnClickFN.StorageHiddenInput,PlaceholderClass:null};n.fn.AttachCheckBoxOnClickFN=function(t){return this.each(function(){new n.AttachCheckBoxOnClickFN(this,t)})};n.AttachCheckBoxOnClickFN=function(t,i){var r=this;r.$el=n(t);r.el=t;r.$el.prop("checked",!1);this.checkBox=r.$el.closest(".submitticon-checkbox-check");this.hiddenInput=r.$el.find("input.submit-value");r.$el.data("AttachCheckBoxOnClickFN",r);r.init=function(){r.options=n.extend({},n.AttachCheckBoxOnClickFN.defaultOptions,i);r.$el.on("click",null,r,this.CheckBoxClickFN)};r.PreClick=function(n){return r.options.Click&&(r.options.Click(n),r.options.PreventDefaultClick===!0)?!1:!0};r.PostClick=function(){};r.init()};n.AttachCheckBoxOnClickFN.prototype.CheckBoxClickFN=function(n){var t=n.data,i=t.$el.find(".submitticon-checkbox-check").hasClass("checked");(t.hiddenInput.val(i?"False":"True"),t.$el.prop("checked",!i),t.$el.trigger("SBMCheckBoxClick",n),t.PreClick(n)===!0)&&(i?t.$el.find(".submitticon-checkbox-check").removeClass("checked"):t.$el.find(".submitticon-checkbox-check").addClass("checked"),t.PostClick())};n.AttachCheckBoxOnClickFN.defaultOptions={Click:null,PreventDefaultClick:!1};n.fn.NoMouseWheel=function(t){var i={remove:function(){n(this).off("mousewheel DOMMouseScroll")}};return i[t]?this.each(function(n,r){i[t].apply(r,Array.prototype.slice.call(arguments,1))}):this.each(function(){new n.NoMouseWheel(this,t)})};n.NoMouseWheel=function(t,i){var r=this;r.$el=n(t);r.el=t;r.$el.data("NoMouseWheel",r);r.init=function(){r.options=n.extend({},n.NoMouseWheel.defaultOptions,i);r.$el.on("mousewheel DOMMouseScroll",null,r,this.MouseWheelScrollFN)};r.init()};n.NoMouseWheel.prototype.MouseWheelScrollFN=function(t){var r=t.data,i;n(r).trigger("SBMNoMouweSheel",t);i=null;t.type==="mousewheel"?i=t.originalEvent.wheelDelta*-1:t.type==="DOMMouseScroll"&&(i=40*t.originalEvent.detail);i&&(t.preventDefault(),r.$el.scrollTop(i+r.$el.scrollTop()))};n.NoMouseWheel.defaultOptions={Click:null,PreventDefaultClick:!1};n.fn.PseudoSortable=function(t){return this.each(function(){new n.PseudoSortable(this,t)})};n.PseudoSortable=function(t){function o(n){i!=undefined&&i===n.currentTarget&&(r=r==="asc"?"desc":"asc");i=n.currentTarget;s(n.currentTarget)}function s(){u=n(i).index();var t=n(i).data("sort").toLowerCase();f.sort(function(i,f){var e=n(n(i).find(".pseudo-cell")[u]).text(),o=n(n(f).find(".pseudo-cell")[u]).text(),s,h;switch(t){case"date":if(s=e.split(/\//g),h=o.split(/\//g),s.length==3&&h.length==3)try{e=new Date(e).getTime();o=new Date(o).getTime()}catch(c){console.error(c)}break;case"int":e=parseInt(e);isNaN(e)?e=null:!1;o=parseInt(o);isNaN(o)?o=null:!1}return r=="asc"?e<o?-1:e==o?0:1:e<o?1:e==o?0:-1});n(e).children(".pseudo-row").first().after(f)}var e=t,r="asc",i,u,f=n(t).children(".pseudo-row").get();f.shift();n(t).children(".pseudo-row").first().children(".pseudo-cell").each(function(t,i){n(i).on("click",o)})}}(jQuery);jQuery.fn.extend({insertAtCaret:function(n){return this.each(function(){if(document.selection)this.focus(),sel=document.selection.createRange(),sel.text=n,this.focus();else if(this.selectionStart||this.selectionStart==="0"){var t=this.selectionStart,i=this.selectionEnd,r=this.scrollTop;this.value=this.value.substring(0,t)+n+this.value.substring(i,this.value.length);this.focus();this.selectionStart=t+n.length;this.selectionEnd=t+n.length;this.scrollTop=r}else this.value+=n,this.focus()})}});$.fn.shiftSelectable=function(){var n,t=this;t.click(function(i){if(!n){n=this;return}if(i.shiftKey){var r=t.index(this),u=t.index(n);t.slice(Math.min(r,u),Math.max(r,u)+1).attr("checked",n.checked).trigger("change")}n=this})};Function.prototype.bindThis||(Function.prototype.bindThis=function(){var t=this,n=Array.prototype.slice.call(arguments),i=n.shift();return function(){return t.apply(i,n.concat(Array.prototype.slice.call(arguments)))}});var SBM,SBMSingleton=function(n){function i(){function h(t,i){var r=window.innerWidth,u;return r<500?"bottom":(u=n(i).offset().left,r-u>400)?"right":"left"}function f(t){var i=n(t.currentTarget||t.srcElement),o=elHeight=e(i),u,f;o<r?(upHeight=s(i),upHeight>o?(i.hasClass("temporary-dropup")||i.removeClass("dropdown").addClass("dropup temporary-dropup"),elHeight=upHeight):i.hasClass("temporary-dropup")&&i.addClass("dropdown").removeClass("dropup temporary-dropup")):i.hasClass("temporary-dropup")&&i.addClass("dropdown").removeClass("dropup temporary-dropup");u=i.find(".dropdown-menu");u.css("max-height",elHeight);u.hasClass("checkbox")&&(f=0,u.addClass("invisible block").children(":not(.scroll-area)").each(function(t,i){f+=n(i).height()}),u.removeClass("invisible block").find(".scroll-area").css("max-height",elHeight-f))}function e(t){return n(window).height()-t.offset().top-t.height()+n(window).scrollTop()}function o(t){var i=n(t.currentTarget),o=elHeight=s(i),f,u;o<r?(f=e(i),f>o&&(i.hasClass("temporary-dropdown")||i.removeClass("dropup").addClass("dropdown temporary-dropdown"),elHeight=f)):i.hasClass("temporary-dropdown")&&i.addClass("dropup").removeClass("dropdown temporary-dropdown");u=i.find(".dropdown-menu");u.css("max-height",elHeight);u.hasClass("checkbox")&&u.find(".scroll-area").css("max-height",elHeight-135)}function s(t){return t.offset().top-n(window).scrollTop()}function u(){n(".multicheck").multiselect({buttonWidth:"280",maxHeight:400,includeSelectAllOption:!0,selectAllText:"Select All",selectAllValue:"-ALL-",buttonText:function(t){var i,r;return t.length==0?'None selected <b class="caret"><\/b>':t.length>1?t.length+' selected  <b class="caret"><\/b>':(i="",t.each(function(){i+=n(this).text()+", "}),i.length>30?(r=i.substr(0,30)+".....",r+' <b class="caret"><\/b>'):i.substr(0,i.length-2)+' <b class="caret"><\/b>')}})}var t,i,r;if(typeof console=="undefined"&&(console={log:function(){}}),t=!1,typeof n.fn.fancybox=="undefined"&&(console.error("SBM requires jquery.fancybox"),t=!0),typeof n.fn.multiselect=="undefined"&&(console.error("SBM requires jquery.multiselect"),t=!0),t)return undefined;n.ajaxSettings.traditional=!0;n("a.fancybox").fancybox({openEffect:"none",closeEffect:"none",prevEffect:"none",nextEffect:"none"});img1=new Image;img1.src="/Public/Images/loading-horizontal-sm.gif";n("body").on("click","a.load-modal",function(t){t.preventDefault();$modal=n("#ajax-modal");var r=n(this).data("url"),i=n(this).data("init");$modal.load(r,function(){$modal.modal();n.validator.unobtrusive.parse(n("#ajax-modal"));u();UpdateValidations();typeof window[i]=="function"?window[i]():typeof eval(i)=="function"&&eval(i+"()")})});n(".select-all").click(function(t){t.preventDefault();var i=n(this).attr("data-elemid");n("#"+i).find("option").each(function(){n(this).attr("selected","selected")})});n(".select-none").click(function(t){t.preventDefault();var i=n(this).attr("data-elemid");n("#"+i).find("option").each(function(){n(this).removeAttr("selected")})});n("input.click-select").on("click",function(){n(this).select()});n("a#dash-link").click(function(n){n.preventDefault()});n(".datepicker-selects").datepicker({todayHighlight:!0,constrainInput:!0,changeMonth:!0,changeYear:!0,yearRange:(new Date).getFullYear()-100+":"+(new Date).getFullYear()});n("body").on("click","input.datepicker",function(){n(this).datepicker({todayHighlight:!0,constrainInput:!0,autoclose:!0}).focus()});n("i.enablecalandar").datepicker({todayHighlight:!0,constrainInput:!0,autoclose:!0}).on("changeDate",function(t){var r=n(this).context.parentElement,i;r=n(r).context.previousElementSibling;i=new Date(t.date);i.setDate(i.getDate()+1);n(r).val(i.toLocaleDateString());n("i.enablecalandar").datepicker("hide")});u();n("body").on("click","a.delete",function(t){t.preventDefault();var r=n(this).attr("href"),i="Are you sure you want to delete this item?";n(this).data("message")&&(i=n(this).data("message"));bootbox.confirm(i,function(n){n&&(window.location=r)})});n("body").on("click",".confirm",function(t){t.preventDefault();var r=n(this).attr("href"),i="Are you sure?";n(this).data("message")&&(i=n(this).data("message"));bootbox.confirm(i,function(n){n&&(window.location=r)})});n('[data-js="system-message"]').on("click",'[data-js="close-system-message"]',function(t){var i=n(this).parent();t.preventDefault();n.get("/content/dismisssystemmessages",function(){i.slideUp(function(){i.remove()})})});n(document).keydown(function(n){n.which=="17"&&(SBM.controlPressed=!0,n.stopPropagation())});n(document).keyup(function(){SBM.controlPressed=!1});n(".dropdown").on("show.bs.dropdown",f);n(".dropup").on("show.bs.dropdown",o);n("ul.dropdown-menu:not(.checkbox)").NoMouseWheel();n("ul.dropdown-menu.checkbox .scroll-area").NoMouseWheel();n("a[data-toggle=tooltip]").tooltip();n(".dropdown-menu-form").on("click",function(n){n.stopPropagation()});n("a.dropdown-toggle").on("click",function(n){n.preventDefault()});return n(".dropdown-menu-form input[type=checkbox]").change(function(){n(this).is(":checked")?n(this).closest("li").addClass("selected"):n(this).closest("li").removeClass("selected")}),n("[data-rel=clickover]").clickover({global_close:!0}),n("[data-rel=popoverx]").popover({fire_on:"hover",hover_delay_close:500}),n("[data-rel=tooltip]").tooltip(),i=function(t){t.preventDefault();n('[data-toggle="modal"]').unbind("click");var r=n(this).data("url");n.get(r,function(t){var i=n(t);i.modal({backdrop:"static",show:!0});i.one("shown.bs.modal",function(){i.parent().on("click",function(t){n(t.target).is(i)&&i.modal("hide")})})}).complete(function(){n('[data-toggle="modal"]').bind("click",i)})},n('[data-toggle="modal"]').bind("click",i),n("[data-rel=popover]").popover({placement:h,content:function(){return n(this).next(".popover-content").html()}}),r=200,{controlPressed:null,InitHeader:function(t,i,r,u,f){t==""?(n("#header-text-01").addClass("hidden"),n("#sbm-header .text-02").css("margin-top","66px")):n("#header-text-01").html(t);n("#header-text-02").html(i).addClass(r);n("#sbm-header .nav-01 button#"+f).addClass("selected");n("#sbm-header .nav-01 #page-dropdown #page-selector .dropdown-value").text(u);n("#sbm-header .nav-01 #page-dropdown .dropdown-menu li > div").each(function(t,i){n(i).text()==u&&n(i).parent().remove()})},AlphabeticalFirstFit:function(t,i){var r=20;n(t).each(function(t,u){var o=n(u).find(".pseudo-cell").first(),s=n(u).find(".pseudo-cell").last(),h=o.height()/2,f=0,c=n(u).find(i).toArray(),e=!1;n.each(c,function(t,i){if(e)s.append(i);else{var u=n(i).height()+r;f+u>h&&(e=!0);f+=u}})})},FirstFitDecreasing:function(t,i){function r(t,i){var r=n(t).height(),u=n(i).height();return r>u?-1:r<u?1:0}n(t).each(function(t,u){var s=n(u).find(".pseudo-cell").first(),h=n(u).find(".pseudo-cell").last(),f=0,e=0,o=n(u).find(i).remove().toArray();o.sort(r);n.each(o,function(t,i){f<=e?(s.append(i),f+=n(i).height()):(h.append(i),e+=n(i).height())})})},DoVoid:function(){return},SizeBSDropDownMenu:function(n){f(n)},SizeBSDropUpMenu:function(n){o(n)},StartLoading:function(t){var i=t?t:"loading...",r='<div id = "global-loading">'+i+"<\/div>";n("#global-loading").remove();n("body").append(r)},StopLoading:function(){n("#global-loading").remove()},ShowNotification:function(t,i){i||(i="info");n("#notifier").notify({type:i,fadeOut:{enabled:!0},message:{html:"<strong>"+t+"<\/strong>"}}).show()},ShowModalNotification:function(t,i){i||(i="info");n("#modal-notifier").notify({type:i,fadeOut:{enabled:!1},message:{html:"<strong>"+t+"<\/strong>"}}).show()},SetupMultiselect:function(){u()},getMultiCheckboxValues:function(t){var r=n(t).multiselect("getChecked"),i=[];return n.each(r,function(t,r){i[t]=n(r).attr("title")}),i.join(", ")},DoBlockUI:function(t){t||(t="Please wait ...");n.blockUI({css:{border:"none",padding:"15px",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px",opacity:.5,color:"#fff"},message:'<div class="message"><img src="/Public/Images/loading-horizontal-sm.gif" /> '+t+"<\/div>"})},getParameterByName:function(n){n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i="[\\?&]"+n+"=([^&#]*)",r=new RegExp(i),t=r.exec(window.location.href);return t==null?"":decodeURIComponent(t[1].replace(/\+/g," "))},ReadableFileSize:function(n){for(var t=0;n>=1024;)n/=1024,++t;return n.toFixed(2)+" "+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][t]},AddLabelDetails:function(t,i,r){var u,f;jQuery.ajaxSettings.traditional=!0;u=[];u.push(t);f={submissions:u,labelid:i,labelname:r};n(".LabelsLoading").show();n.post("/BatchLabel",f,function(n){if(n==!1){OnLoadingComplete();return}UpdateSubmissionDetails()},"json")},UpdateSubmissionDetails:function(){var t=n("#SubmissionID").val();t&&(n("#pageHistory").load("/SubmissionHistoryFeed/"+t,function(){SetUpToolTips()}),n("#SubmissionGeneralInfo").load("/SubmissionGeneralInfo/"+t,function(){SetUpSubmissionDetails()}),n("#SubmissionEditActionsToolbar").load("/SubmissionEditActionsToolbar/"+t,function(){SetUpSubmissionDetails()}))},DoDetailsAssign:function(t,i,r){var u,e,f,o,s;n(r).find("input[type=button]").attr("disabled","disabled");n("object").hide();DoBlockUI();u=[];i?u.push(i):(e=n(r).find("li.option input[type=checkbox]:checked"),n.each(e,function(){u.push(n(this).val())}));f=[];f.push(t);o=n(r).find("#Note").val();s={staff:u,submissions:f,note:o};n.post("/AssignSubmission",s,function(){CloseAndResetAssignMenu();UpdateSubmissionDetails()},"json")},Pluralize:function(n,t){return n>1?n+(" "+t+"s"):"1 "+t},SetUpSubmissionDetails:function(){SetUpToolTips();SetUpAssignMenu();SetUpStatusMenu();SetUpLabels();SetUpFullscreenToggle();n.unblockUI();n("object").show();n(".LabelsLoading").hide()},SetUpCategoryDropdown:function(){n(".SubmissionCategory").unbind("hover");n(".SubmissionCategory").hover(function(){n(this).css("cursor","pointer");n(this).css("text-decoration","underline")},function(){n(this).css("cursor","default");n(this).css("text-decoration","none")});n(".SubmissionCategory").click(function(){var i=n(this).parent().find(".SubmissionCategoryList"),t=n(i).find("select"),r=n(t).val();n(this).hide();n(i).show();n(t).unbind("change");n(t).change(function(){if(confirm("Are you sure?")){var t=n(this).find("option:selected").text(),i=n(this).val(),u={ProductID:i,Name:t};n.post("/UpdateSubmissionCategory/"+n("#SubmissionID").val(),u,function(u){u=="True"||u=="true"?(n(".SubmissionCategoryList").hide(),n(".SubmissionCategory").text(t),n(".SubmissionCategory").show(),n(".SubmissionCategoryDropdown").val(i)):(alert("There was a problem changing the category."),n(".SubmissionCategoryList").hide(),n(".SubmissionCategory").show(),n(".SubmissionCategoryDropdown").val(r))})}else n(".SubmissionCategoryList").hide(),n(".SubmissionCategory").show(),n(".SubmissionCategoryDropdown").val(r)})});n(".CancelCategories").unbind("click");n(".CancelCategories").click(function(){n(".SubmissionCategoryList").hide();n(".SubmissionCategory").show()})},SetUpStatusMenu:function(){jQuery.ajaxSettings.traditional=!0;n(".StatusLink").unbind("hover");n(".StatusLink").hover(function(){n(this).css("cursor","pointer");n(this).css("text-decoration","underline")},function(){n(this).css("cursor","default");n(this).css("text-decoration","none")});n(".StatusLink").unbind("click");n(".StatusLink").click(function(t){var i=n(this).parent().find(".status_menu");n(i).css("left",n(this).position().left);n(i).css("top",n(this).position().top+30);n(i).css("display")=="none"?(n(document).trigger("hideCluetip"),n(i).show()):n(i).hide();t.preventDefault();t.stopPropagation()})},StartLoading:function(t){var i="loading...",r;t&&(i=t);r='<div id="global-loading">'+i+"<\/div>";n("#global-loading").remove();n("body").append(r)},StopLoading:function(){n("#global-loading").remove()},ShowTab:function(t){var r=n("#SubmissionEditTabs").find(t),u,i;n("#SubmissionEditTabs li").removeClass("active");n(r).addClass("active");u=n(r).attr("id").replace("tab","page");i=n("#"+u);n(i).attr("data-url")&&(n(i).hide(),n(i).load(n(i).attr("data-url"),function(){}));n(".page").hide();n(i).show()},LoadSubmittableForm:function(){var t=n("#Submission_SubmittableID").val();t>0?(n("#Submittable_Title").val("unused"),n("#Submittable_File").val(""),n("#SubmittableForm").hide(),n(".disableDuringUpload").removeAttr("disabled")):(n("#SubmittableForm input").val(""),n("#SubmittableForm").show(),n(".disableDuringUpload").attr("disabled","disabled"))},RestrictInputToNumbersAndLettersAndSpacesAllowingBackspaceAndTabAndEnter:function(t,i){var r=i.keyCode?i.keyCode:i.which;((r<48||r>57)&&(r<65||r>90)&&(r<97||r>122)&&(i.keyCode<37||i.keyCode>40)&&r!=8&&r!=9&&r!=13&&r!=23&&r!=32&&r!=33&&r!=35&&r!=38&&r!=45&&r!=46&&r!=47&&r!=39&&r!=64||n(t).val().length==0&&r==32)&&i.preventDefault()},ConfirmSubmissionResponse:function(t,i){var h=n("#SubmissionStatusID").val(),c=n("#ResponseBody").val().trim(),r=n("#StatusAction").val().toLowerCase(),e=n("#SubmissionCount").val(),s=n("#ResponseID").val(),o=function(r,u,f,e){var o=n.validator.format(n.validator.format("You are about to {0}{1} {2} {3}{4}{5}. Are you sure?",r.indexOf("mark ")==0?"mark":r,u?" "+u:"",f==1&&t?t:f,"submission{0}",r.indexOf("mark ")==0?" as '"+r.substr(r.lastIndexOf(" ")+1)+"'":"",e?" and "+e:""),f==1?"":"s",f==1?" an":"");window.bootbox.confirm(o,i)},u="",f="";h==99&&(u="for");c.length?(r!="email"?f="send{1} email response{0} to the submitter{0}":(r="send an email",u="regarding"),o(r,u,e,f)):!s.length||s>0?window.bootbox.confirm("WARNING: YOUR RESPONSE EMAIL DOES NOT CONTAIN ANY TEXT.\n\nThe default system response message will be sent. Are you sure you wish to proceed?",function(n){n&&o(r,u,e,f)}):o(r,u,e,f)},InitWYSIWYG:function(t){n(t).wysihtml5({"font-styles":!0,emphasis:!0,lists:!0,html:!0,link:!0,image:!1,color:!1,blockquote:!1,stylesheets:["/public/assets/styles/bootstrap3-wysihtml5-editor.css"]})}}}var t;return{getInstance:function(){return t||(t=i()),t}}}(jQuery);$(document).ready(function(){SBM=SBMSingleton.getInstance()});!function(n,t){typeof module!="undefined"&&module.exports?module.exports=t():typeof define=="function"&&define.amd?define(t):this[n]=t()}("bowser",function(){function i(t){function r(n){var i=t.match(n);return i&&i.length>1&&i[1]||""}function a(n){var i=t.match(n);return i&&i.length>1&&i[2]||""}var e=r(/(ipod|iphone|ipad)/i).toLowerCase(),v=/like android/i.test(t),o=!v&&/android/i.test(t),y=/CrOS/.test(t),s=r(/edge\/(\d+(\.\d+)?)/i),f=r(/version\/(\d+(\.\d+)?)/i),c=/tablet/i.test(t),l=!c&&/[^-]mobi/i.test(t),i,u,h;return/opera|opr/i.test(t)?i={name:"Opera",opera:n,version:f||r(/(?:opera|opr)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(t)?i={name:"Yandex Browser",yandexbrowser:n,version:f||r(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/windows phone/i.test(t)?(i={name:"Windows Phone",windowsphone:n},s?(i.msedge=n,i.version=s):(i.msie=n,i.version=r(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(t)?i={name:"Internet Explorer",msie:n,version:r(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:y?i={name:"Chrome",chromeBook:n,chrome:n,version:r(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/chrome.+? edge/i.test(t)?i={name:"Microsoft Edge",msedge:n,version:s}:/chrome|crios|crmo/i.test(t)?i={name:"Chrome",chrome:n,version:r(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:e?(i={name:e=="iphone"?"iPhone":e=="ipad"?"iPad":"iPod"},f&&(i.version=f)):/sailfish/i.test(t)?i={name:"Sailfish",sailfish:n,version:r(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(t)?i={name:"SeaMonkey",seamonkey:n,version:r(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel/i.test(t)?(i={name:"Firefox",firefox:n,version:r(/(?:firefox|iceweasel)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(t)&&(i.firefoxos=n)):/silk/i.test(t)?i={name:"Amazon Silk",silk:n,version:r(/silk\/(\d+(\.\d+)?)/i)}:o?i={name:"Android",version:f}:/phantom/i.test(t)?i={name:"PhantomJS",phantom:n,version:r(/phantomjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(t)||/rim\stablet/i.test(t)?i={name:"BlackBerry",blackberry:n,version:f||r(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:/(web|hpw)os/i.test(t)?(i={name:"WebOS",webos:n,version:f||r(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(t)&&(i.touchpad=n)):i=/bada/i.test(t)?{name:"Bada",bada:n,version:r(/dolfin\/(\d+(\.\d+)?)/i)}:/tizen/i.test(t)?{name:"Tizen",tizen:n,version:r(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||f}:/safari/i.test(t)?{name:"Safari",safari:n,version:f}:{name:r(/^(.*)\/(.*) /),version:a(/^(.*)\/(.*) /)},!i.msedge&&/(apple)?webkit/i.test(t)?(i.name=i.name||"Webkit",i.webkit=n,!i.version&&f&&(i.version=f)):!i.opera&&/gecko\//i.test(t)&&(i.name=i.name||"Gecko",i.gecko=n,i.version=i.version||r(/gecko\/(\d+(\.\d+)?)/i)),!i.msedge&&(o||i.silk)?i.android=n:e&&(i[e]=n,i.ios=n),u="",i.windowsphone?u=r(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):e?(u=r(/os (\d+([_\s]\d+)*) like mac os x/i),u=u.replace(/[_\s]/g,".")):o?u=r(/android[ \/-](\d+(\.\d+)*)/i):i.webos?u=r(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):i.blackberry?u=r(/rim\stablet\sos\s(\d+(\.\d+)*)/i):i.bada?u=r(/bada\/(\d+(\.\d+)*)/i):i.tizen&&(u=r(/tizen[\/\s](\d+(\.\d+)*)/i)),u&&(i.osversion=u),h=u.split(".")[0],c||e=="ipad"||o&&(h==3||h==4&&!l)||i.silk?i.tablet=n:(l||e=="iphone"||e=="ipod"||o||i.blackberry||i.webos||i.bada)&&(i.mobile=n),i.msedge||i.msie&&i.version>=10||i.yandexbrowser&&i.version>=15||i.chrome&&i.version>=20||i.firefox&&i.version>=20||i.safari&&i.version>=6||i.opera&&i.version>=10||i.ios&&i.osversion&&i.osversion.split(".")[0]>=6||i.blackberry&&i.version>=10.1?i.a=n:i.msie&&i.version<10||i.chrome&&i.version<20||i.firefox&&i.version<20||i.safari&&i.version<6||i.opera&&i.version<10||i.ios&&i.osversion&&i.osversion.split(".")[0]<6?i.c=n:i.x=n,i}var n=!0,t=i(typeof navigator!="undefined"?navigator.userAgent:"");return t.test=function(n){for(var r,i=0;i<n.length;++i)if(r=n[i],typeof r=="string"&&r in t)return!0;return!1},t._detect=i,t});hasChanges=!1;jQuery.fn.center=function(){return this.css("position","absolute"),this.css("top",($(window).height()-this.height())/2+$(window).scrollTop()-50+"px"),this.css("left",($(window).width()-this.width())/2+$(window).scrollLeft()+"px"),this};$(function(){function i(){return($("#SAMLDomains").val()||"").split(",")}function r(n){n.preventDefault();$("#submitbutton").removeAttr("disabled")}function c(){var n=$("iframe");n.length>0&&n.each(function(n,t){$(t).attr({allowfullscreen:null,allowtransparency:null,frameborder:null,scrolling:null,allow:null})})}function l(n){if(n=="success"){var t=$("#returnUrl").val();t?location.href=t:location.reload()}else $("#LoginMessage").html(n),$("#LoginMessage").show(),$.unblockUI()}function a(n){$("#LoginMessage").html(n);$("#LoginMessage").show();$.unblockUI()}function s(n){if($(n).length!=0){var t=$(n).closest("div").find(".embedly-preview");$(t).length!=0&&($(t).hide().html(""),$.embedly($(n).val(),{key:"1b9ffe6e688f43fc92778d85e689491c",maxHeight:200,maxWidth:350,urlRe:/((http:\/\/(.*yfrog\..*\/.*|www\.flickr\.com\/photos\/.*|flic\.kr\/.*|twitpic\.com\/.*|www\.twitpic\.com\/.*|twitpic\.com\/photos\/.*|www\.twitpic\.com\/photos\/.*|.*imgur\.com\/.*|twitgoo\.com\/.*|i.*\.photobucket\.com\/albums\/.*|s.*\.photobucket\.com\/albums\/.*|media\.photobucket\.com\/image\/.*|www\.mobypicture\.com\/user\/.*\/view\/.*|moby\.to\/.*|xkcd\.com\/.*|www\.xkcd\.com\/.*|imgs\.xkcd\.com\/.*|www\.asofterworld\.com\/index\.php\?id=.*|www\.asofterworld\.com\/.*\.jpg|asofterworld\.com\/.*\.jpg|www\.qwantz\.com\/index\.php\?comic=.*|23hq\.com\/.*\/photo\/.*|www\.23hq\.com\/.*\/photo\/.*|.*dribbble\.com\/shots\/.*|drbl\.in\/.*|.*\.smugmug\.com\/.*|.*\.smugmug\.com\/.*#.*|picasaweb\.google\.com.*\/.*\/.*#.*|picasaweb\.google\.com.*\/lh\/photo\/.*|picasaweb\.google\.com.*\/.*\/.*|img\.ly\/.*|www\.tinypic\.com\/view\.php.*|tinypic\.com\/view\.php.*|www\.tinypic\.com\/player\.php.*|tinypic\.com\/player\.php.*|www\.tinypic\.com\/r\/.*\/.*|tinypic\.com\/r\/.*\/.*|.*\.tinypic\.com\/.*\.jpg|.*\.tinypic\.com\/.*\.png|meadd\.com\/.*\/.*|meadd\.com\/.*|.*\.deviantart\.com\/art\/.*|.*\.deviantart\.com\/gallery\/.*|.*\.deviantart\.com\/#\/.*|fav\.me\/.*|.*\.deviantart\.com|.*\.deviantart\.com\/gallery|.*\.deviantart\.com\/.*\/.*\.jpg|.*\.deviantart\.com\/.*\/.*\.gif|.*\.deviantart\.net\/.*\/.*\.jpg|.*\.deviantart\.net\/.*\/.*\.gif|www\.fotopedia\.com\/.*\/.*|fotopedia\.com\/.*\/.*|photozou\.jp\/photo\/show\/.*\/.*|photozou\.jp\/photo\/photo_only\/.*\/.*|instagr\.am\/p\/.*|instagram\.com\/p\/.*|skitch\.com\/.*\/.*\/.*|img\.skitch\.com\/.*|www\.questionablecontent\.net\/|questionablecontent\.net\/|www\.questionablecontent\.net\/view\.php.*|questionablecontent\.net\/view\.php.*|questionablecontent\.net\/comics\/.*\.png|www\.questionablecontent\.net\/comics\/.*\.png|twitrpix\.com\/.*|.*\.twitrpix\.com\/.*|www\.someecards\.com\/.*\/.*|someecards\.com\/.*\/.*|some\.ly\/.*|www\.some\.ly\/.*|pikchur\.com\/.*|achewood\.com\/.*|www\.achewood\.com\/.*|achewood\.com\/index\.php.*|www\.achewood\.com\/index\.php.*|www\.whosay\.com\/.*\/content\/.*|www\.whosay\.com\/.*\/photos\/.*|www\.whosay\.com\/.*\/videos\/.*|say\.ly\/.*|ow\.ly\/i\/.*|mlkshk\.com\/p\/.*|lockerz\.com\/s\/.*|pics\.lockerz\.com\/s\/.*|d\.pr\/i\/.*|www\.eyeem\.com\/p\/.*|www\.eyeem\.com\/a\/.*|www\.eyeem\.com\/u\/.*|giphy\.com\/gifs\/.*|gph\.is\/.*|frontback\.me\/p\/.*|www\.fotokritik\.com\/.*\/.*|fotokritik\.com\/.*\/.*|vid\.me\/.*|galeri\.uludagsozluk\.com\/.*|gfycat\.com\/.*|tochka\.net\/.*|.*\.tochka\.net\/.*|4cook\.net\/recipe\/.*|gist\.github\.com\/.*|www\.crunchbase\.com\/.*\/.*|crunchbase\.com\/.*\/.*|www\.slideshare\.net\/.*\/.*|www\.slideshare\.net\/mobile\/.*\/.*|.*\.slideshare\.net\/.*\/.*|slidesha\.re\/.*|scribd\.com\/doc\/.*|www\.scribd\.com\/doc\/.*|scribd\.com\/mobile\/documents\/.*|www\.scribd\.com\/mobile\/documents\/.*|screenr\.com\/.*|polldaddy\.com\/community\/poll\/.*|polldaddy\.com\/poll\/.*|answers\.polldaddy\.com\/poll\/.*|www\.howcast\.com\/videos\/.*|www\.screencast\.com\/.*\/media\/.*|screencast\.com\/.*\/media\/.*|www\.screencast\.com\/t\/.*|screencast\.com\/t\/.*|issuu\.com\/.*\/docs\/.*|www\.kickstarter\.com\/projects\/.*\/.*|www\.scrapblog\.com\/viewer\/viewer\.aspx.*|foursquare\.com\/.*|www\.foursquare\.com\/.*|4sq\.com\/.*|linkedin\.com\/in\/.*|linkedin\.com\/pub\/.*|.*\.linkedin\.com\/in\/.*|.*\.linkedin\.com\/pub\/.*|linkedin\.com\/in\/.*|linkedin\.com\/company\/.*|.*\.linkedin\.com\/company\/.*|www\.sliderocket\.com\/.*|sliderocket\.com\/.*|app\.sliderocket\.com\/.*|portal\.sliderocket\.com\/.*|beta-sliderocket\.com\/.*|maps\.google\.com\/maps\?.*|maps\.google\.com\/\?.*|maps\.google\.com\/maps\/ms\?.*|my\.opera\.com\/.*\/albums\/show\.dml\?id=.*|my\.opera\.com\/.*\/albums\/showpic\.dml\?album=.*&picture=.*|tumblr\.com\/.*|.*\.tumblr\.com\/post\/.*|www\.polleverywhere\.com\/polls\/.*|www\.polleverywhere\.com\/multiple_choice_polls\/.*|www\.polleverywhere\.com\/free_text_polls\/.*|www\.quantcast\.com\/wd:.*|www\.quantcast\.com\/.*|siteanalytics\.compete\.com\/.*|.*\.status\.net\/notice\/.*|identi\.ca\/notice\/.*|www\.studivz\.net\/Profile\/.*|www\.studivz\.net\/l\/.*|www\.studivz\.net\/Groups\/Overview\/.*|www\.studivz\.net\/Gadgets\/Info\/.*|www\.studivz\.net\/Gadgets\/Install\/.*|www\.studivz\.net\/.*|www\.meinvz\.net\/Profile\/.*|www\.meinvz\.net\/l\/.*|www\.meinvz\.net\/Groups\/Overview\/.*|www\.meinvz\.net\/Gadgets\/Info\/.*|www\.meinvz\.net\/Gadgets\/Install\/.*|www\.meinvz\.net\/.*|www\.schuelervz\.net\/Profile\/.*|www\.schuelervz\.net\/l\/.*|www\.schuelervz\.net\/Groups\/Overview\/.*|www\.schuelervz\.net\/Gadgets\/Info\/.*|www\.schuelervz\.net\/Gadgets\/Install\/.*|www\.schuelervz\.net\/.*|myloc\.me\/.*|pastebin\.com\/.*|pastie\.org\/.*|www\.pastie\.org\/.*|redux\.com\/stream\/item\/.*\/.*|redux\.com\/f\/.*\/.*|www\.redux\.com\/stream\/item\/.*\/.*|www\.redux\.com\/f\/.*\/.*|cl\.ly\/.*|cl\.ly\/.*\/content|speakerdeck\.com\/.*\/.*|www\.kiva\.org\/lend\/.*|www\.timetoast\.com\/timelines\/.*|storify\.com\/.*\/.*|.*meetup\.com\/.*|meetu\.ps\/.*|www\.dailymile\.com\/people\/.*\/entries\/.*|.*\.kinomap\.com\/.*|www\.metacdn\.com\/r\/c\/.*\/.*|www\.metacdn\.com\/r\/m\/.*\/.*|prezi\.com\/.*\/.*|.*\.uservoice\.com\/.*\/suggestions\/.*|formspring\.me\/.*|www\.formspring\.me\/.*|formspring\.me\/.*\/q\/.*|www\.formspring\.me\/.*\/q\/.*|twitlonger\.com\/show\/.*|www\.twitlonger\.com\/show\/.*|tl\.gd\/.*|www\.qwiki\.com\/q\/.*|crocodoc\.com\/.*|.*\.crocodoc\.com\/.*|www\.wikipedia\.org\/wiki\/.*|.*\.wikipedia\.org\/wiki\/.*|www\.wikimedia\.org\/wiki\/File.*|360\.io\/.*|www\.behance\.net\/gallery\/.*|behance\.net\/gallery\/.*|www\.jdsupra\.com\/legalnews\/.*|jdsupra\.com\/legalnews\/.*|minilogs\.com\/.*|www\.minilogs\.com\/.*|jsfiddle\.net\/.*|ponga\.com\/.*|list\.ly\/list\/.*|crowdmap\.com\/post\/.*|.*\.crowdmap\.com\/post\/.*|crowdmap\.com\/map\/.*|.*\.crowdmap\.com\/map\/.*|ifttt\.com\/recipes\/.*|weavly\.com\/watch\/.*|www\.weavly\.com\/watch\/.*|tagmotion\.com\/tree\/.*|www\.tagmotion\.com\/tree\/.*|public\.talely\.com\/.*\/.*|polarb\.com\/.*|.*\.polarb\.com\/.*|on\.bubb\.li\/.*|bubb\.li\/.*|.*\.bubb\.li\/.*|embed\.imajize\.com\/.*|giflike\.com\/a\/.*|www\.giflike\.com\/a\/.*|i\.giflike\.com\/.*|rapidengage\.com\/s\/.*|infomous\.com\/node\/.*|stepic\.org\/.*|chirb\.it\/.*|beta\.polstir\.com\/.*\/.*|polstir\.com\/.*\/.*|www\.gettyimages\.com\/detail\/photo\/.*|gty\.im\/.*|isnare\.com\/.*|www\.isnare\.com\/.*|www\.branchtrack\.com\/projects\/.*|jsbin\.com\/.*\/.*|jsbin\.com\/.*|wedgi\.es\/.*|public\.chartblocks\.com\/c\/.*|radd\.it\/r\/.*|radd\.it\/comments\/.*|radd\.it\/user\/.*|radd\.it\/playlists\/.*|radd\.it\/magic\/.*|vibi\.com\/videocard\/.*|kastio\.com\/webcasts\/.*|.*\.kastio\.com\/webcasts\/.*|megavisor\.com\/view\/.*|megavisor\.com\/en\/view\/.*|bunkrapp\.com\/.*\/.*|.*\.cartodb\.com\/.*\/.*|flowvella\.com\/s\/.*|fr\.peoplbrain\.com\/tutoriaux\/.*|codepicnic\.com\/bites\/.*|codepicnic\.com\/consoles\/.*|tr\.instela\.com\/.*|codepen\.io\/.*\/pen\/.*|codepen\.io\/.*\/pen\/.*|www\.vtility\.net\/virtualtour\/.*|quora\.com\/.*|www\.quora\.com\/.*|tunein\.com\/radio\/.*|.*amazon\..*\/gp\/product\/.*|.*amazon\..*\/.*\/dp\/.*|.*amazon\..*\/dp\/.*|.*amazon\..*\/o\/ASIN\/.*|.*amazon\..*\/gp\/offer-listing\/.*|.*amazon\..*\/.*\/ASIN\/.*|.*amazon\..*\/gp\/product\/images\/.*|.*amazon\..*\/gp\/aw\/d\/.*|www\.amzn\.com\/.*|amzn\.com\/.*|www\.shopstyle\.com\/browse.*|www\.shopstyle\.com\/action\/apiVisitRetailer.*|api\.shopstyle\.com\/action\/apiVisitRetailer.*|www\.shopstyle\.com\/action\/viewLook.*|itunes\.apple\.com\/.*|shoplocket\.com\/products\/.*|etsy\.com\/listing\/.*|www\.etsy\.com\/listing\/.*|fiverr\.com\/.*\/.*|www\.fiverr\.com\/.*\/.*|.*youtube\.com\/watch.*|.*\.youtube\.com\/v\/.*|youtu\.be\/.*|.*\.youtube\.com\/user\/.*|.*\.youtube\.com\/.*#.*\/.*|m\.youtube\.com\/watch.*|m\.youtube\.com\/index.*|.*\.youtube\.com\/profile.*|.*\.youtube\.com\/view_play_list.*|.*\.youtube\.com\/playlist.*|www\.youtube\.com\/embed\/.*|youtube\.com\/gif.*|www\.youtube\.com\/gif.*|.*twitch\.tv\/.*|.*twitch\.tv\/.*\/b\/.*|www\.ustream\.tv\/recorded\/.*|www\.ustream\.tv\/channel\/.*|www\.ustream\.tv\/.*|ustre\.am\/.*|qik\.com\/video\/.*|qik\.com\/.*|qik\.ly\/.*|.*revision3\.com\/.*|.*\.dailymotion\.com\/video\/.*|.*\.dailymotion\.com\/.*\/video\/.*|collegehumor\.com\/video:.*|collegehumor\.com\/video\/.*|www\.collegehumor\.com\/video:.*|www\.collegehumor\.com\/video\/.*|telly\.com\/.*|www\.telly\.com\/.*|break\.com\/.*\/.*|www\.break\.com\/.*\/.*|vids\.myspace\.com\/index\.cfm\?fuseaction=vids\.individual&videoid.*|www\.myspace\.com\/index\.cfm\?fuseaction=.*&videoid.*|www\.metacafe\.com\/watch\/.*|www\.metacafe\.com\/w\/.*|blip\.tv\/.*\/.*|.*\.blip\.tv\/.*\/.*|video\.google\.com\/videoplay\?.*|.*viddler\.com\/v\/.*|liveleak\.com\/view\?.*|www\.liveleak\.com\/view\?.*|animoto\.com\/play\/.*|dotsub\.com\/view\/.*|www\.overstream\.net\/view\.php\?oid=.*|www\.livestream\.com\/.*|new\.livestream\.com\/.*|www\.worldstarhiphop\.com\/videos\/video.*\.php\?v=.*|worldstarhiphop\.com\/videos\/video.*\.php\?v=.*|bambuser\.com\/v\/.*|bambuser\.com\/channel\/.*|bambuser\.com\/channel\/.*\/broadcast\/.*|www\.schooltube\.com\/video\/.*\/.*|bigthink\.com\/ideas\/.*|bigthink\.com\/series\/.*|sendables\.jibjab\.com\/view\/.*|sendables\.jibjab\.com\/originals\/.*|jibjab\.com\/view\/.*|www\.xtranormal\.com\/watch\/.*|socialcam\.com\/v\/.*|www\.socialcam\.com\/v\/.*|v\.youku\.com\/v_show\/.*|v\.youku\.com\/v_playlist\/.*|www\.snotr\.com\/video\/.*|snotr\.com\/video\/.*|www\.clipfish\.de\/.*\/.*\/video\/.*|www\.myvideo\.de\/watch\/.*|www\.vzaar\.com\/videos\/.*|vzaar\.com\/videos\/.*|www\.vzaar\.tv\/.*|vzaar\.tv\/.*|vzaar\.me\/.*|.*\.vzaar\.me\/.*|coub\.com\/view\/.*|coub\.com\/embed\/.*|www\.streamio\.com\/api\/v1\/.*|streamio\.com\/api\/v1\/.*|vine\.co\/v\/.*|www\.vine\.co\/v\/.*|www\.viddy\.com\/video\/.*|www\.viddy\.com\/.*\/v\/.*|www\.tudou\.com\/programs\/view\/.*|tudou\.com\/programs\/view\/.*|sproutvideo\.com\/videos\/.*|embed\.minoto-video\.com\/.*|iframe\.minoto-video\.com\/.*|play\.minoto-video\.com\/.*|dashboard\.minoto-video\.com\/main\/video\/details\/.*|api\.minoto-video\.com\/publishers\/.*\/videos\/.*|www\.brainshark\.com\/.*\/.*|brainshark\.com\/.*\/.*|23video\.com\/.*|.*\.23video\.com\/.*|goanimate\.com\/videos\/.*|brainsonic\.com\/.*|.*\.brainsonic\.com\/.*|lustich\.de\/videos\/.*|web\.tv\/.*|.*\.web\.tv\/.*|mynet\.com\/video\/.*|www\.mynet\.com\/video\/|izlesene\.com\/video\/.*|www\.izlesene\.com\/video\/|alkislarlayasiyorum\.com\/.*|www\.alkislarlayasiyorum\.com\/.*|59saniye\.com\/.*|www\.59saniye\.com\/.*|zie\.nl\/video\/.*|www\.zie\.nl\/video\/.*|app\.ustudio\.com\/embed\/.*\/.*|bale\.io\/.*|www\.allego\.com\/.*|clipter\.com\/c\/.*|sendvid\.com\/.*|www\.snappytv\.com\/.*|snappytv\.com\/.*|www\.whitehouse\.gov\/photos-and-video\/video\/.*|www\.whitehouse\.gov\/video\/.*|wh\.gov\/photos-and-video\/video\/.*|wh\.gov\/video\/.*|www\.hulu\.com\/watch.*|www\.hulu\.com\/w\/.*|www\.hulu\.com\/embed\/.*|hulu\.com\/watch.*|hulu\.com\/w\/.*|.*crackle\.com\/c\/.*|www\.funnyordie\.com\/videos\/.*|www\.funnyordie\.com\/m\/.*|funnyordie\.com\/videos\/.*|funnyordie\.com\/m\/.*|www\.vimeo\.com\/groups\/.*\/videos\/.*|www\.vimeo\.com\/.*|vimeo\.com\/groups\/.*\/videos\/.*|vimeo\.com\/.*|vimeo\.com\/m\/#\/.*|player\.vimeo\.com\/.*|www\.ted\.com\/talks\/.*\.html.*|www\.ted\.com\/talks\/lang\/.*\/.*\.html.*|www\.ted\.com\/index\.php\/talks\/.*\.html.*|www\.ted\.com\/index\.php\/talks\/lang\/.*\/.*\.html.*|www\.ted\.com\/talks\/|.*nfb\.ca\/film\/.*|thedailyshow\.cc\.com\/videos\/.*|www\.thedailyshow\.com\/watch\/.*|www\.thedailyshow\.com\/full-episodes\/.*|www\.thedailyshow\.com\/collection\/.*\/.*\/.*|yahoo\.com\/movies\/.*|.*\.yahoo\.com\/movies\/.*|thecolbertreport\.cc\.com\/videos\/.*|www\.colbertnation\.com\/the-colbert-report-collections\/.*|www\.colbertnation\.com\/full-episodes\/.*|www\.colbertnation\.com\/the-colbert-report-videos\/.*|www\.comedycentral\.com\/videos\/index\.jhtml\?.*|www\.theonion\.com\/video\/.*|theonion\.com\/video\/.*|wordpress\.tv\/.*\/.*\/.*\/.*\/|www\.traileraddict\.com\/trailer\/.*|www\.traileraddict\.com\/clip\/.*|www\.traileraddict\.com\/poster\/.*|www\.trailerspy\.com\/trailer\/.*\/.*|www\.trailerspy\.com\/trailer\/.*|www\.trailerspy\.com\/view_video\.php.*|fora\.tv\/.*\/.*\/.*\/.*|www\.spike\.com\/video\/.*|www\.gametrailers\.com\/video.*|gametrailers\.com\/video.*|www\.koldcast\.tv\/video\/.*|www\.koldcast\.tv\/#video:.*|mixergy\.com\/.*|video\.pbs\.org\/video\/.*|www\.zapiks\.com\/.*|www\.trutv\.com\/video\/.*|www\.nzonscreen\.com\/title\/.*|nzonscreen\.com\/title\/.*|app\.wistia\.com\/embed\/medias\/.*|wistia\.com\/.*|.*\.wistia\.com\/.*|.*\.wi\.st\/.*|wi\.st\/.*|confreaks\.net\/videos\/.*|www\.confreaks\.net\/videos\/.*|confreaks\.com\/videos\/.*|www\.confreaks\.com\/videos\/.*|video\.allthingsd\.com\/video\/.*|videos\.nymag\.com\/.*|aniboom\.com\/animation-video\/.*|www\.aniboom\.com\/animation-video\/.*|grindtv\.com\/.*\/video\/.*|www\.grindtv\.com\/.*\/video\/.*|ifood\.tv\/recipe\/.*|ifood\.tv\/video\/.*|ifood\.tv\/channel\/user\/.*|www\.ifood\.tv\/recipe\/.*|www\.ifood\.tv\/video\/.*|www\.ifood\.tv\/channel\/user\/.*|logotv\.com\/video\/.*|www\.logotv\.com\/video\/.*|lonelyplanet\.com\/Clip\.aspx\?.*|www\.lonelyplanet\.com\/Clip\.aspx\?.*|streetfire\.net\/video\/.*\.htm.*|www\.streetfire\.net\/video\/.*\.htm.*|sciencestage\.com\/v\/.*\.html|sciencestage\.com\/a\/.*\.html|www\.sciencestage\.com\/v\/.*\.html|www\.sciencestage\.com\/a\/.*\.html|link\.brightcove\.com\/services\/player\/bcpid.*|bcove\.me\/.*|wirewax\.com\/.*|www\.wirewax\.com\/.*|canalplus\.fr\/.*|www\.canalplus\.fr\/.*|www\.vevo\.com\/watch\/.*|www\.vevo\.com\/video\/.*|pixorial\.com\/watch\/.*|www\.pixorial\.com\/watch\/.*|spreecast\.com\/events\/.*|www\.spreecast\.com\/events\/.*|showme\.com\/sh\/.*|www\.showme\.com\/sh\/.*|.*\.looplogic\.com\/.*|on\.aol\.com\/video\/.*|on\.aol\.com\/playlist\/.*|videodetective\.com\/.*\/.*|www\.videodetective\.com\/.*\/.*|khanacademy\.org\/.*|www\.khanacademy\.org\/.*|.*vidyard\.com\/.*|www\.veoh\.com\/watch\/.*|veoh\.com\/watch\/.*|.*\.univision\.com\/.*\/video\/.*|.*\.vidcaster\.com\/.*|muzu\.tv\/.*|www\.muzu\.tv\/.*|vube\.com\/.*\/.*|www\.vube\.com\/.*\/.*|.*boxofficebuz\.com\/video\/.*|www\.godtube\.com\/featured\/video\/.*|godtube\.com\/featured\/video\/.*|www\.godtube\.com\/watch\/.*|godtube\.com\/watch\/.*|mediamatters\.org\/mmtv\/.*|www\.clikthrough\.com\/theater\/video\/.*|www\.clipsyndicate\.com\/video\/playlist\/.*\/.*|www\.srf\.ch\/play\/.*\/.*\/.*\/.*\?id=.*|www\.mpora\.com\/videos\/.*|mpora\.com\/videos\/.*|vice\.com\/.*|www\.vice\.com\/.*|videodonor\.com\/video\/.*|api\.lovelive\.tv\/v1\/.*|www\.hurriyettv\.com\/.*|www\.hurriyettv\.com\/.*|video\.uludagsozluk\.com\/.*|www\.ign\.com\/videos\/.*|ign\.com\/videos\/.*|www\.askmen\.com\/video\/.*|askmen\.com\/video\/.*|video\.esri\.com\/.*|www\.zapkolik\.com\/video\/.*|.*\.iplayerhd\.com\/playerframe\/.*|.*\.iplayerhd\.com\/player\/video\/.*|espn\.go\.com\/video\/clip.*|espn\.go\.com\/.*\/story.*|abcnews\.com\/.*\/video\/.*|abcnews\.com\/video\/playerIndex.*|abcnews\.go\.com\/.*\/video\/.*|abcnews\.go\.com\/video\/playerIndex.*|washingtonpost\.com\/wp-dyn\/.*\/video\/.*\/.*\/.*\/.*|www\.washingtonpost\.com\/wp-dyn\/.*\/video\/.*\/.*\/.*\/.*|www\.boston\.com\/video.*|boston\.com\/video.*|www\.boston\.com\/.*video.*|boston\.com\/.*video.*|www\.facebook\.com\/photo\.php.*|www\.facebook\.com\/video\.php.*|www\.facebook\.com\/.*\/posts\/.*|fb\.me\/.*|www\.facebook\.com\/.*\/photos\/.*|cnbc\.com\/id\/.*\?.*video.*|www\.cnbc\.com\/id\/.*\?.*video.*|cnbc\.com\/id\/.*\/play\/1\/video\/.*|www\.cnbc\.com\/id\/.*\/play\/1\/video\/.*|cbsnews\.com\/video\/watch\/.*|plus\.google\.com\/.*|www\.google\.com\/profiles\/.*|google\.com\/profiles\/.*|www\.cnn\.com\/video\/.*|edition\.cnn\.com\/video\/.*|money\.cnn\.com\/video\/.*|today\.msnbc\.msn\.com\/id\/.*\/vp\/.*|www\.msnbc\.msn\.com\/id\/.*\/vp\/.*|www\.msnbc\.msn\.com\/id\/.*\/ns\/.*|today\.msnbc\.msn\.com\/id\/.*\/ns\/.*|msnbc\.msn\.com\/.*\/watch\/.*|www\.msnbc\.msn\.com\/.*\/watch\/.*|nbcnews\.com\/.*|www\.nbcnews\.com\/.*|multimedia\.foxsports\.com\/m\/video\/.*\/.*|msn\.foxsports\.com\/video.*|www\.globalpost\.com\/video\/.*|www\.globalpost\.com\/dispatch\/.*|theguardian\.com\/.*\/video\/.*\/.*\/.*\/.*|www\.theguardian\.com\/.*\/video\/.*\/.*\/.*\/.*|guardian\.co\.uk\/.*\/video\/.*\/.*\/.*\/.*|www\.guardian\.co\.uk\/.*\/video\/.*\/.*\/.*\/.*|bravotv\.com\/.*\/.*\/videos\/.*|www\.bravotv\.com\/.*\/.*\/videos\/.*|dsc\.discovery\.com\/videos\/.*|animal\.discovery\.com\/videos\/.*|health\.discovery\.com\/videos\/.*|investigation\.discovery\.com\/videos\/.*|military\.discovery\.com\/videos\/.*|planetgreen\.discovery\.com\/videos\/.*|science\.discovery\.com\/videos\/.*|tlc\.discovery\.com\/videos\/.*|video\.forbes\.com\/fvn\/.*|distrify\.com\/film\/.*|muvi\.es\/.*|video\.foxnews\.com\/v\/.*|video\.foxbusiness\.com\/v\/.*|www\.reuters\.com\/video\/.*|reuters\.com\/video\/.*|live\.huffingtonpost\.com\/r\/segment\/.*\/.*|video\.nytimes\.com\/video\/.*|www\.nytimes\.com\/video\/.*\/.*|nyti\.ms\/.*|www\.vol\.at\/video\/.*|vol\.at\/video\/.*|www\.spiegel\.de\/video\/.*|spiegel\.de\/video\/.*|www\.zeit\.de\/video\/.*|zeit\.de\/video\/.*|www\.rts\.ch\/play\/tv\/.*|soundcloud\.com\/.*|soundcloud\.com\/.*\/.*|soundcloud\.com\/.*\/sets\/.*|soundcloud\.com\/groups\/.*|snd\.sc\/.*|open\.spotify\.com\/.*|spoti\.fi\/.*|play\.spotify\.com\/.*|www\.last\.fm\/music\/.*|www\.last\.fm\/music\/+videos\/.*|www\.last\.fm\/music\/+images\/.*|www\.last\.fm\/music\/.*\/_\/.*|www\.last\.fm\/music\/.*\/.*|www\.mixcloud\.com\/.*\/.*\/|www\.radionomy\.com\/.*\/radio\/.*|radionomy\.com\/.*\/radio\/.*|www\.hark\.com\/clips\/.*|www\.rdio\.com\/#\/artist\/.*\/album\/.*|www\.rdio\.com\/artist\/.*\/album\/.*|www\.zero-inch\.com\/.*|.*\.bandcamp\.com\/|.*\.bandcamp\.com\/track\/.*|.*\.bandcamp\.com\/album\/.*|freemusicarchive\.org\/music\/.*|www\.freemusicarchive\.org\/music\/.*|freemusicarchive\.org\/curator\/.*|www\.freemusicarchive\.org\/curator\/.*|www\.npr\.org\/.*\/.*\/.*\/.*\/.*|www\.npr\.org\/.*\/.*\/.*\/.*\/.*\/.*|www\.npr\.org\/.*\/.*\/.*\/.*\/.*\/.*\/.*|www\.npr\.org\/templates\/story\/story\.php.*|huffduffer\.com\/.*\/.*|www\.audioboom\.com\/boos\/.*|audioboom\.com\/boos\/.*|boo\.fm\/b.*|www\.xiami\.com\/song\/.*|xiami\.com\/song\/.*|www\.saynow\.com\/playMsg\.html.*|www\.saynow\.com\/playMsg\.html.*|grooveshark\.com\/.*|radioreddit\.com\/songs.*|www\.radioreddit\.com\/songs.*|radioreddit\.com\/\?q=songs.*|www\.radioreddit\.com\/\?q=songs.*|www\.gogoyoko\.com\/song\/.*|hypem\.com\/premiere\/.*|bop\.fm\/s\/.*\/.*|clyp\.it\/.*|www\.dnbradio\.com\/.*|dnbradio\.com\/.*))|(https:\/\/(picasaweb\.google\.com.*\/.*\/.*#.*|youtu\.be\/.*|picasaweb\.google\.com.*\/lh\/photo\/.*|picasaweb\.google\.com.*\/.*\/.*|skitch\.com\/.*\/.*\/.*|img\.skitch\.com\/.*|vidd\.me\/.*|vid\.me\/.*|gfycat\.com\/.*|gist\.github\.com\/.*|foursquare\.com\/.*|www\.foursquare\.com\/.*|maps\.google\.com\/maps\?.*|maps\.google\.com\/\?.*|maps\.google\.com\/maps\/ms\?.*|speakerdeck\.com\/.*\/.*|storify\.com\/.*\/.*|crocodoc\.com\/.*|.*\.crocodoc\.com\/.*|urtak\.com\/u\/.*|urtak\.com\/clr\/.*|ganxy\.com\/.*|www\.ganxy\.com\/.*|sketchfab\.com\/models\/.*|sketchfab\.com\/show\/.*|ifttt\.com\/recipes\/.*|cloudup\.com\/.*|hackpad\.com\/.*|rapidengage\.com\/s\/.*|stepic\.org\/.*|readtapestry\.com\/s\/.*\/|chirb\.it\/.*|medium\.com\/.*|medium\.com\/.*\/.*|www\.branchtrack\.com\/projects\/.*|www\.wedgies\.com\/question\/.*|public\.chartblocks\.com\/c\/.*|megavisor\.com\/view\/.*|megavisor\.com\/en\/view\/.*|bunkrapp\.com\/.*\/.*|portfolium\.com\/entry\/.*|.*\.cartodb\.com\/.*\/.*|flowvella\.com\/s\/.*|fr\.peoplbrain\.com\/tutoriaux\/.*|codepicnic\.com\/bites\/.*|codepicnic\.com\/consoles\/.*|tr\.instela\.com\/.*|quora\.com\/.*|www\.quora\.com\/.*|tunein\.com\/radio\/.*|itunes\.apple\.com\/.*|.*youtube\.com\/watch.*|.*\.youtube\.com\/v\/.*|.*\.youtube\.com\/playlist.*|www\.youtube\.com\/embed\/.*|youtube\.com\/gif.*|www\.youtube\.com\/gif.*|screen\.yahoo\.com\/.*\/.*|www\.streamio\.com\/api\/v1\/.*|streamio\.com\/api\/v1\/.*|vine\.co\/v\/.*|www\.vine\.co\/v\/.*|mixbit\.com\/v\/.*|www\.brainshark\.com\/.*\/.*|brainshark\.com\/.*\/.*|23video\.com\/.*|.*\.23video\.com\/.*|brainsonic\.com\/.*|.*\.brainsonic\.com\/.*|www\.reelhouse\.org\/.*|reelhouse\.org\/.*|www\.allego\.com\/.*|clipter\.com\/c\/.*|app\.devhv\.com\/oembed\/.*|sendvid\.com\/.*|clipmine\.com\/video\/.*|clipmine\.com\/embed\/.*|www\.vimeo\.com\/.*|vimeo\.com\/.*|player\.vimeo\.com\/.*|yahoo\.com\/movies\/.*|.*\.yahoo\.com\/movies\/.*|app\.wistia\.com\/embed\/medias\/.*|wistia\.com\/.*|.*\.wistia\.com\/.*|.*\.wi\.st\/.*|wi\.st\/.*|.*\.looplogic\.com\/.*|khanacademy\.org\/.*|www\.khanacademy\.org\/.*|.*vidyard\.com\/.*|.*\.stream\.co\.jp\/apiservice\/.*|.*\.stream\.ne\.jp\/apiservice\/.*|api\.lovelive\.tv\/v1\/.*|video\.esri\.com\/.*|mix\.office\.com\/watch\/.*|mix\.office\.com\/mix\/.*|mix\.office\.com\/embed\/.*|mix\.office\.com\/MyMixes\/Details\/.*|.*\.iplayerhd\.com\/playerframe\/.*|.*\.iplayerhd\.com\/player\/video\/.*|www\.facebook\.com\/photo\.php.*|www\.facebook\.com\/video\.php.*|www\.facebook\.com\/.*\/posts\/.*|fb\.me\/.*|www\.facebook\.com\/.*\/photos\/.*|plus\.google\.com\/.*|soundcloud\.com\/.*|soundcloud\.com\/.*\/.*|soundcloud\.com\/.*\/sets\/.*|soundcloud\.com\/groups\/.*|open\.spotify\.com\/.*|play\.spotify\.com\/.*|bop\.fm\/s\/.*\/.*|bop\.fm\/p\/.*|bop\.fm\/a\/.*|clyp\.it\/.*|sfx\.io\/.*)))/i,secure:!0,frame:!0,success:function(n){n.type!="link"&&n.code!=null?$(t).html(n.code).fadeIn():n.type!="link"&&$(t).html(n.html).fadeIn()}}))}}function v(n){typeof Stripe!="undefined"&&($("#StripeToken").val(""),Stripe.setPublishableKey(n))}function y(){var n=$("#stripe-credit-card-number").val(),t=$("#stripe-credit-card-month").val(),i=$("#stripe-credit-card-expiration-year").val(),r=$("#stripe-credit-card-cvc").val(),u=$("#StripeCustomerToken").val();Stripe.card.createToken({number:n,cvc:r,exp_month:t,exp_year:i},p)}function p(n,t){if(n!==200){console.error("status and response:",n,t);bootbox.alert("<span role='alert' aria-atomic='true'>"+t.error.message+"<\/span>");$.unblockUI();return}$("#StripeToken").val(t.id);$("#SubmissionForm").submit()}var o,n,t;window.setTimeout("Tick()",5e3);window.renderLargeSelects();window.renderInternationalPhoneFields();var u=$("#new-saved-card-form").length>0,h=$("#StripeToken").length>0,f=$("#stripe-publishable-key").val(),e=!1;u&&h&&$(".validate-stripe-card").each(function(){$(this).rules("add","stripecard")});f&&(e=!0,v(f),o=$("input[name='use-card']"),$("input[name='use-card']").length&&o.rules("add",{ccselection:!0}));$("#content .category.panel-btn").not(".subLimitEnabled").on("click",function(n){var t=$(n.currentTarget||n.srcElement).data("go");typeof t!="undefined"?window.location.href=t:console&&console.error("path undefined")});$("button[data-toggle=collapse]").on("click",function(n){n.preventDefault();n.stopPropagation();$(this).closest(".dropdown").toggleClass("open");$($(this).data("target")).collapse("toggle")});$("#pay-paypal").click(function(n){SaveDraft(!1);n.preventDefault();SBM.DoBlockUI();var t=$(this).attr("href");$.post(t,$("form").serialize(),function(n){window.location.href=n})});$("#location-filter").on("change",function(){var n=$(this).val();$("div.category").show();n&&$("div.category:not('."+n+"')").hide()});$("a.expand-guidelines").click(function(n){var t=$(this).closest(".category").find(".category-description");$(t).slideToggle(100);$(this).text($(this).text()=="+ Show Guidelines"?"- Hide Guidelines":$(this).text()=="- Hide Guidelines"?"+ Show Guidelines":$(this).text()=="+ Show Job Description"?"- Hide Job Description":"+ Show Job Description");n.preventDefault()});n=$("#account");$(n).find("> form").attr({role:"tabpanel","aria-hidden":"true"}).hide();t=n.find("ul.nav-tabs").attr({role:"tablist"});$(t).find("li > a").each(function(i){var r=$(this),u="tab-"+r.attr("href").slice(1);r.attr({id:u,role:"tab","aria-selected":"false",tabindex:"-1"}).parent().attr("role","presentation");$(n).find(".tabPanel").eq(i).attr("aria-labelledby",u);r.click(function(i){i.preventDefault();$(t).find("> li.current").removeClass("current").find("> a").attr({"aria-selected":"false",tabindex:"-1"});$(n).find(".tabPanel:visible").attr("aria-hidden","true").hide();$(n).find(".tabPanel").eq(r.parent().index()).attr("aria-hidden","false").show();r.attr({"aria-selected":"true",tabindex:"0"}).parent().addClass("current");r.focus()})});$(t).delegate("a","keydown",function(n){var i=$(this);switch(n.which){case 37:case 38:i.parent().prev().length!=0?i.parent().prev().find("> a").click():$(t).find("li:last > a").click();break;case 39:case 40:i.parent().next().length!=0?i.parent().next().find("> a").click():$(t).find("li:first > a").click()}});$(n).find(".tabPanel:first").attr("aria-hidden","false").show();$(t).find("li:first").addClass("current").find(" > a").attr({"aria-selected":"true",tabindex:"0"});$("a.login").click(function(n){var t=$("#login_form");if(t.length)t.center(),t.show(),$("#LoginUsername").focus(),$("#grey_out").css({display:"block",opacity:.7,width:$(document).width(),height:$(document).height()});else{$("#tab-sign-in-form").click();t=$("#sign-in-form");var i=t.offset().top,r=t.height(),u=$(window).height(),f=r<u?i-(u/2-r/2):i;$("html, body").animate({scrollTop:f},700);$("#LoginUsername").focus()}n.preventDefault()});$("a.cancel").click(function(n){$("#login_form").hide();$("#grey_out").hide();n.preventDefault()});$("#SMMUser_Email").on("input",function(n){window.saml.togglePasswordForSamlEmail(i(),n.target,".signup-password")});$("#sign-up-form").submit(function(){var n=$("#SMMUser_Email").val();if(window.saml.trySamlSingleSignOn(i(),n,window.location.href))return!1});$("#LoginUsername").on("input",function(n){window.saml.togglePasswordForSamlEmail(i(),n.target,".login-password")});$("#LoginForm").submit(function(n){n.preventDefault();$("#LoginMessage").html('<img src="/Public/Images/loading-circular-sm.gif" alt="" />');var t=$("#LoginUsername").val(),r=$("#LoginPassword").val();if(window.saml.trySamlSingleSignOn(i(),t,window.location.href))return!1;$.ajax({url:"/account/login",type:"post",dataType:"json",data:{username:t,password:r,rememberMe:!1},success:l,error:a})});$("input.embedly").bind("input propertychange",function(){s(this)});$("input.embedly").each(function(){s(this)});$("body").on("keypress","#SubmissionForm input[type!='button'][type!='hidden']",function(n){if(n.which==13)return!1});$("body").on("change","#SubmissionForm :input",function(){hasChanges=!0});$("#draftbutton").click(function(){SaveDraft(!0)});$("#submitbutton").click(function(){setTimeout(function(){var n=$(".field-validation-error").first().parent().parent();n.has("input")&&n.find("input:first").focus();n.has("textarea")&&n.find("textarea").focus()},20)});$(window).on("load",function(){var n=$(".paymentContainer input:checkbox"),i=$(".product-fee-container").length>0||$("#submission-fee").text().replace(/[^0-9-.]/g,"")!=="0.00",t=$("#payment-form-area");n.is(":checked")||i||t.hide();i||n.change(function(){n.is(":checked")?t.show():t.hide()});c()});$(".dropdown-toggle").attr({"aria-haspopup":!0});$(".dropdown-menu").attr({"aria-expanded":!1});$(document).on("shown.bs.dropdown",function(n){var t=$(n.target);t.find(".dropdown-menu").attr("aria-expanded",!0);setTimeout(function(){t.find(".dropdown-menu li:first-child a").focus()},10)});$(document).on("hidden.bs.dropdown",function(n){var t=$(n.target);t.find(".dropdown-menu").attr("aria-expanded",!1);t.find(".dropdown-toggle").focus()});$("#SubmissionForm").submit(function(n){var l,f,i,d,c;if($("#submitbutton").attr("disabled","disabled"),window.UpdateValidations(),window.SetupFormValidations(),l=$("#SubmissionForm"),f=l.valid(),$("#Terms").length>0&&f&&$("#Terms").is(":checked")==!1&&(bootbox.alert("<span role='alert' aria-atomic='true'>You must check the box verifying that you agree to the Terms Of Use.<\/span>"),$("#SubmissionForm").valid(!1),r(n)),f&&$("#upload-required").val()==="true"&&$("#upload-list li").length==0&&bootbox.alert("<span role='alert' aria-atomic='true'>You must attach a file.<\/span>"),$(".upload-control").not(".field-hidden").each(function(){if(f&&$(this).find(".upload-required").val()==="true"&&$(this).find(".upload-list li").length===0){var n=$(this).find(".file-list-cors").attr("id").replace("fid-",""),t="#CustomField_ID"+n+"_Label",i=$(t).val();return bootbox.alert("<span role='alert' aria-atomic='true'>The '"+i+"' field is required. You must attach a file.<\/span>"),f=!1,!1}$("li[data-size=0]").each(function(){var n=$(this).find(".filename").text();return bootbox.alert("<span role='alert' aria-atomic='true'><strong>"+n+"<\/strong> is 0 bytes. Please remove the file and try again.<\/span>"),f=!1,!1})}),!f)return r(n),!1;SBM.DoBlockUI();var t=$("#ProductPriceID-container span.dropdown-value").text(),o=0,a=0,s=$("#Discount"),v=s.length?parseFloat(s.val()):0,p=s.length?parseFloat(s.data("min-fee")):0;if(t){var g=t.substr(0,t.indexOf(" ")>0?t.indexOf(" "):t.length).replace(/[^0-9\.]+/g,""),w=parseFloat(g),b=isNaN(w)?0:w;$("#submission-fee").html(t.substr(0,1)+b.toFixed(2));$("input.payment-addon-checkbox:checked:enabled").each(function(n,t){var i=parseFloat(t.getAttribute("data-payment-addon-price"),10)||0;o+=i});i=b+o-v;i<p&&(i=0);a=$("#currently-selected-price-amount").html(t.substr(0,1)+i.toFixed(2)+" "+/([a-zA-Z]+)/.exec(t)[1])}else{var h="$0.00",k=0,nt=$("#FeeCurrencyCode").val()||"";$("#submission-fee").html()&&(h=$("#submission-fee").html(),k=parseFloat(h.substr(1,h.length),10));$("input.payment-addon-checkbox:checked").each(function(n,t){var i=parseFloat(t.getAttribute("data-payment-addon-price"),10)||0;o+=i});i=k+o-v;i<p&&(i=0);a=$("#currently-selected-price-amount").html(h.substr(0,1)+i.toFixed(2)+" "+nt).val}return d=$("#StripeToken").val(),c=$("input[name='use-card']:checked").val(),e&&!d&&!u&&(!c||c&&c=="new-card")&&$("#currently-selected-price-amount").text().substr(1,$("#currently-selected-price-amount").text().length).replace(/[a-zA-Z\s]/g,"")>0?(r(n),n.stopPropagation(),y(),!1):void 0});$(".terms-link").on("click",function(){$(this).prop("disabled",!0);that=this;var n=$("#ajax-modal"),t=$(this).data("url");n.load(t,{},function(){$(that).prop("disabled",!1);n.modal()})})})