!function(e,i){"use strict";var t={serializeform:function(e){var t,n,o=[];if("object"==typeof e&&"FORM"==e.nodeName)for(var i=e.elements.length,l=0;l<i;l++)if((t=e.elements[l]).name&&!t.disabled&&"button"!=t.type&&"file"!=t.type&&"hidden"!=t.type&&"reset"!=t.type&&"submit"!=t.type)if("select-multiple"==t.type){n=e.elements[l].options.length;for(var r=0;r<n;r++)t.options[r].selected&&(o[o.length]=encodeURIComponent(t.name)+"="+encodeURIComponent(t.options[r].value))}else("checkbox"!=t.type&&"radio"!=t.type||t.checked)&&(o[o.length]=encodeURIComponent(t.name)+"="+encodeURIComponent(t.value));return o.join("&").replace(/%20/g,"+")},capitalizeFirstLetter:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},loadScript:function(e,t,n){var o;if(void 0===n&&(n=!1),0<(o=i.querySelectorAll('script[src="'+e+'"]')).length){if(!n)return void("function"==typeof t&&t());o.forEach(function(e){e.remove()})}(o=i.createElement("script")).src=e,i.head.appendChild(o),"function"==typeof t&&(o.onload=function(){t()})},loadStyleSheet:function(e,t){if(0<i.querySelectorAll('link[href="'+e+'"]').length)"function"==typeof t&&t();else{var n=i.createElement("link");n.href=e,n.type="text/css",n.rel="stylesheet",i.getElementsByTagName("head")[0].prepend(n)}}};e.NRHelper=t}(window,document);

