",{id:n.id,rel:"stylesheet"}).appendTo("head").data("promise",t)).on("load",(function(){r.resolve(n)})).on("error",(function(){r.reject(n)})),o.attr("href",n.uri)),t})(r).then(i,s);break;case"js":(function(n){var r=e.Deferred(),t=r.promise(),o=e("#"+n.id);if(o.length)t=o.data("promise");else{var i=document.createElement("script");document.getElementsByTagName("head")[0].appendChild(i),(o=e(i).attr("id",n.id).data("promise",t)).on("load",(function(){r.resolve(n)})).on("error",(function(){r.reject(n)})),o.attr("src",n.uri)}return t})(r).then(i,s)}})),r.promise();function i(e){t-=1,a()}function s(e){o.push(e),t-=1,a()}function a(){0===t&&(o.length?r.reject(o):r.resolve())}}(n).then((function(){r.resolve()}),(function(e){console&&console.error,r.reject(e)})),r.promise()).then((function(){new WaFrontendLogin({$wrapper:e("#wa-login-form-wrapper67d8b18161667"),namespace:null,auth_type:"user_password",errors:[],messages:[],onetime_password_url:null,locale:{required:"Поле обязательное",login_required:"Логин обязателен",password_required:"Пароль обязателен",captcha_required:"Капча обязательна",sent_by_email:"(отправлен по email)",sent_by_sms:"(отправлен в SMS)"},is_json_mode:!0,need_redirects:!0,is_need_confirm:!1})}))}(jQuery);