text: var component_templates={},FormSketch={main:{prop:{},elements:[{type:"checkbox",caption:{ru:"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e",cn:"\u7528\u6cd5\u7684\u4e1c\u897f",en:"Usage someting"},style:"switch",checked:!1}]}};function createButton(a){var c=document.createElement("a");c.className=form_sketch__getClassName(a);c.innerHTML=form_sketch__getLocalStr(a.caption);c.href="#";return c}form_sketch__addType("button",createButton);"use strinct";
  var g_checkbox_styles={};function checkbox__AddStyle(a,c){g_checkbox_styles[a]=c}function checkbox__style_classic(a,c){var b=document.createElement("div");b.className="checkbox_v";b.innerHTML='<svg width="24px" height="24px" viewBox="0 0 24 24"><polyline points="4 10 10 18 20 6"></polyline></svg>';c.appendChild(b)}checkbox__AddStyle("classic",checkbox__style_classic);
  function createCheckbox(a){var c=document.createElement("label");c.className=form_sketch__getClassName(a);var b=document.createElement("span");b.innerHTML=form_sketch__getLocalStr(a.caption);c.appendChild(b);b=document.createElement("input");b.type="checkbox";b.className=form_sketch__getClassName(a,"input");b.checked=!!a.checked;b.disabled=!!a.disabled;c.appendChild(b);if(b=g_checkbox_styles[a.style])b(a,c);else throw"Checkbox \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0433\u043e \u0441\u0442\u0438\u043b\u044f - "+
  a.style;return c}form_sketch__addType("checkbox",createCheckbox);
  function checkbox__style_check(a,c){var b=document.createElement("div");b.className="checkbox_v";b.innerHTML='<svg width="24px" height="24px" viewBox="0 0 24 24"><path d="M 3 0 L 19 0 C 20.65685424949238 1.0145306266472667e-16 22 1.3431457505076199 22 3 L 22 19 C 22 20.65685424949238 20.65685424949238 22 19 22 L 3 22 C 1.3431457505076203 22 2.0290612532945335e-16 20.65685424949238 0 19 L 0 3 C -2.0290612532945335e-16 1.3431457505076203 1.3431457505076199 3.0435918799418e-16 3 0 Z" stroke-width="2" stroke="#000000" fill="none" selected="true" transform="matrix(1 0 0 1 0.960788 1.03335)"></path><polyline points="4 10 10 18 20 6"></polyline></svg>';c.appendChild(b)}
  checkbox__AddStyle("check_blue",checkbox__style_check);"use strinct";function checkbox__style_switch(a,c){var b=document.createElement("div");b.className=form_sketch__getClassName(a,"thumb");var d=document.createElement("div");d.className=form_sketch__getClassName(a,"track");d.appendChild(b);c.appendChild(d)}checkbox__AddStyle("switch",checkbox__style_switch);"use strinct";var g_create_functions={},g_current_locale="en";function form_sketch__addType(a,c){g_create_functions[a]=c}
  function form_sketch__revive(a){var c=form_sketch__getMeta("http-equiv","content-language");c&&(g_current_locale=c);c=document.createElement("div");c.id="form";try{for(var b=a.main.elements.length,d=0;d<b;d++){var f=a.main.elements[d],g=g_create_functions[f.type];if(g){var h=g(f);h&&c.appendChild(h)}else throw"\u042d\u043b\u0435\u043c\u0435\u043d\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0433\u043e \u0442\u0438\u043f\u0430 - %1. \u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043f\u0430\u043a\u0435\u0442 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043d\u0438\u043c.".replace("%1",
  f.type);}}catch(e){a="\u041e\u0428\u0418\u0411\u041a\u0410 \u0412\u042b\u041f\u041e\u041b\u041d\u0415\u041d\u0418\u042f \u0421\u0426\u0415\u041d\u0410\u0420\u0418\u042f!\n",a="string"==typeof e?a+e:a+("\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043e\u0448\u0438\u0431\u043a\u0438: "+e.name+"\n\u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435: "+e.message),alert(a)}document.body.appendChild(c)}
  function form_sketch__getClassName(a,c){var b=a.type+(c?"__"+c:"");return b+" "+b+"__"+(a.style?a.style:"classic")+(a.disabled?"-disabled":"")}function form_sketch__getLocalStr(a){return"string"==typeof a?a:a[g_current_locale]}"use strict";
  function web_get(a,c){var b=new XMLHttpRequest;b.open("GET",a,!0);b.onreadystatechange=function(){4==b.readyState&&(200==b.status?null!=c&&c(res.data):alert("\u041e\u0448\u0438\u0431\u043a\u0430 HTTP-\u0437\u0430\u043f\u0440\u043e\u0441\u0430! \u041a\u043e\u0434 \u043e\u0448\u0438\u0431\u043a\u0438: "+b.status+". "+b.responseText))};b.send()}
  function web_post_json(a,c,b){var d=new XMLHttpRequest;d.open("POST",a,!0);d.setRequestHeader("Content-Type","application/json");d.onreadystatechange=function(){if(4==d.readyState)if(200==d.status){var a=JSON.parse(d.responseText);"error"==a.status?alert(a.message):"warning"==a.status?alert(a.message):"success"!=a.status?alert("\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439 \u0441\u0442\u0430\u0442\u0443\u0441 \u043e\u0442\u0432\u0435\u0442\u0430: "+a.status):null!=b&&b(a.data)}else alert("\u041e\u0448\u0438\u0431\u043a\u0430 HTTP-\u0437\u0430\u043f\u0440\u043e\u0441\u0430! \u041a\u043e\u0434 \u043e\u0448\u0438\u0431\u043a\u0438: "+
  d.status+". "+d.responseText)};d.send(c)}function form_sketch__getMeta(a,c){for(var b=document.getElementsByTagName("meta"),d=0;d<b.length;d++)if(b[d].getAttribute(a)===c)return b[d].getAttribute("content");return""};
  