function appLoad(e,t){var n,r,o,s=[],p=[],i=[],a=document.scripts[0];function c(){0==--o&&"function"==typeof t&&t()}function d(){for(var e;i[0]&&"loaded"==i[0].readyState;)(e=i.shift()).onreadystatechange=null,a.parentNode.insertBefore(e,a)}for(e.forEach(function(e){"js"===e.split(".").pop()?s.push(e):"css"===e.split(".").pop()?p.push(e):s.push(e)}),o=s.length,p.length;n=s.shift();)(r=document.createElement("script")).onload=c,"async"in a?(r.async=!1,r.src=n,document.head.appendChild(r)):a.readyState?(i.push(r),r.onreadystatechange=d,r.src=n):document.head.appendChild(r);for(;href=p.shift();)link=document.createElement("link"),link.href=href,link.type="text/css",link.rel="stylesheet",document.head.appendChild(link)}var protocol=(location.protocol.match(/https?/i)||["http"])[0],domain="ktotam.pro",build_path="frontend/build/",KT={server_url:protocol+"://"+domain,conf:{typeview:"form",reference:"egrn",banertype:"300-250",wrapper:"body"},request:{token:"f9cc71efb6bd9da387e14640a7becb4d"},init:function(e){this.request.ref=e.ref,e.server_url=this.server_url,appLoad(["https://widget.cloudpayments.ru/bundles/checkout","https://pay.google.com/gp/p/js/pay.js",this.server_url+"/"+build_path+"css/widget3.css",this.server_url+"/"+build_path+"js/widget3.js"],function(){AppKt.init(e)})}};window.kt=KT;