1!function(e){e(".more-settings .more-button").on("click",(function(){let t=e(this),a=t.find(".more-text"),n=t.parent(".more-settings"),o=n.find(".more-content");n.hasClass("opened")?o.slideUp(400,(function(){t.detach().prependTo(".more-settings"),a.html(a.data("expand")),n.removeClass("opened")})):(t.detach().appendTo(".more-settings"),a.html(a.data("collapse")),o.slideDown(),n.addClass("opened"))})),e(".questions-form").on("submit",(function(t){t.preventDefault();let a=e(this),n=a.siblings(".results-container"),o=a.find('[name="region"]'),s=Object.fromEntries(new FormData(t.target).entries()),i=s.region;if("SELECT"===o.prop("tagName")){let e=o.find("option:first-child");s.region=s.region??e.val(),i=o.find(":selected").data("name")??e.data("name")}e.ajax({type:"GET",url:CpmCalculator.restUrl+"/calculate",data:{formData:s,additionalData:{template:a.data("template"),region:i}},dataType:"json",beforeSend:()=>{n.html(""),a.find(".calculator-submit").addClass("loading").attr("disabled",!0)},success:e=>{n.html(e.content)},error:e=>{alert(e.responseJSON.content)},complete:()=>{a.find(".calculator-submit").removeClass("loading").attr("disabled",!1)}})}))}(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.