{"ScriptPreparationCode":"!function (b, c, d, e) {\r\n\r\n /*\r\n * init function (internal use)\r\n * a = selector, dom element or function\r\n */\r\n function i(a) {\r\n c.push.apply(this, a \u0026\u0026 a.nodeType ? [a] : \u0027\u0027 \u002B a === a ? b.querySelectorAll(a) : e)\r\n }\r\n\r\n /*\r\n * $ main function\r\n * a = css selector, dom object, or function\r\n * http://www.dustindiaz.com/smallest-domready-ever\r\n * returns instance or executes function on ready\r\n */\r\n K = function (a) {\r\n return /^f/.test(typeof a) ? /c/.test(b.readyState) ? a() : K(b).on(\u0027DOMContentLoaded\u0027, a) : new i(a)\r\n }\r\n\r\n // set ki prototype\r\n K[d] = i[d] = K.fn = i.fn = {\r\n\r\n // default length\r\n length: 0,\r\n\r\n /*\r\n * on method\r\n * a = string event type i.e \u0027click\u0027\r\n * b = function\r\n * return this\r\n */\r\n on: function (a, b) {\r\n return this.each(function (c) {\r\n c.addEventListener(a, b)\r\n })\r\n },\r\n\r\n /*\r\n * off method\r\n * a = string event type i.e \u0027click\u0027\r\n * b = function\r\n * return this\r\n */\r\n off: function (a, b) {\r\n return this.each(function (c) {\r\n c.removeEventListener(a, b)\r\n })\r\n },\r\n\r\n /*\r\n * each method\r\n * use native forEach to iterate collection\r\n * a = the function to call on each iteration\r\n * b = the this value for that function\r\n */\r\n each: function (a, b) {\r\n c.forEach.call(this, a, b)\r\n return this\r\n },\r\n\r\n // for some reason is needed to get an array-like\r\n // representation instead of an object\r\n splice: c.splice\r\n }\r\n}(document, [], \u0027prototype\u0027);\r\n\r\nwindow.S = function(s) {\r\n return document[{\r\n \u0027#\u0027: \u0027getElementById\u0027,\r\n \u0027.\u0027: \u0027getElementsByClassName\u0027,\r\n \u0027@\u0027: \u0027getElementsByName\u0027,\r\n \u0027=\u0027: \u0027getElementsByTagName\u0027}[s[0]]\r\n || \u0027querySelectorAll\u0027](s.slice(1))\r\n};\r\n\r\n(function(){var d=function(a,b){b=b\u0026\u0026b.first||b||document;if(\u0022function\u0022==typeof a)\u0022loading\u0022==b.readyState?b.addEventListener(\u0022DOMContentLoaded\u0022,a):a();else{var c=Object.create(d.fn),e;if(\u0022object\u0022==typeof a)if(\u0022length\u0022in a)for(c.length=a.length,e=0;e\u003Ca.length;e\u002B\u002B)c[e]=a[e];else c[0]=a,c.length=1;else if(a)if(e=a.match(/\u003C(.\u002B)\u003E/))c[0]=b.createElement(e[1]),c.length=1;else{var f=b.querySelectorAll(a);c.length=f.length;for(e=0;e\u003Cf.length;e\u002B\u002B)c[e]=f[e]}else c[0]=b.createDocumentFragment(),c.length=1;return c}};\r\nd.fn=Object.create(Array.prototype,{first:{get:function(){return this[0]}},eq:{value:function(a){return d(this[a||0])}},on:{value:function(a,b){for(var c=0;c\u003Cthis.length;c\u002B\u002B)this[c].addEventListener(a,b);return this}},off:{value:function(a,b){for(var c=0;c\u003Cthis.length;c\u002B\u002B)this[c].removeEventListener(a,b);return this}},addClass:{value:function(a){for(var b=0;b\u003Cthis.length;b\u002B\u002B)d.fn.hasClass.call({first:this[b]},a)||(this[b].className\u002B=\u0022 \u0022\u002Ba);return this}},removeClass:{value:function(a){for(var b=0;b\u003C\r\nthis.length;b\u002B\u002B)this[b].className=this[b].className.replace(a,\u0022\u0022);return this}},hasClass:{value:function(a){return\u0022\u0022!=this.first.className\u0026\u0026(new RegExp(\u0022\\\\b\u0022\u002Ba\u002B\u0022\\\\b\u0022)).test(this.first.className)}},prop:{value:function(a,b){if(\u0022undefined\u0022==typeof b)return this.first[a];for(var c=0;c\u003Cthis.length;c\u002B\u002B)this[c][a]=b;return this}},attr:{value:function(a,b){if(\u0022undefined\u0022==typeof b)return this.first.getAttribute(a);for(var c=0;c\u003Cthis.length;c\u002B\u002B)this[c].setAttribute(a,b);return this}},removeAttr:{value:function(a){for(var b=\r\n0;b\u003Cthis.length;b\u002B\u002B)this[b].removeAttribute(a);return this}},val:{value:function(a){var b=this.first,c=\u0022value\u0022;switch(b.tagName){case \u0022SELECT\u0022:c=\u0022selectedIndex\u0022;break;case \u0022OPTION\u0022:c=\u0022selected\u0022;break;case \u0022INPUT\u0022:if(\u0022checkbox\u0022==b.type||\u0022radio\u0022==b.type)c=\u0022checked\u0022}return this.prop(c,a)}},append:{value:function(a){a=d(a);for(var b=a.length,c=0;c\u003Cb;c\u002B\u002B)this.first.appendChild(a[c].first||a[c]);return this}},before:{value:function(a){this.first.parentElement.insertBefore(d().append(a).first,this.first);\r\nreturn this}},parent:{value:function(){return d(this.first.parentNode)}},clone:{value:function(){return d(this.first.cloneNode(!0))}},remove:{value:function(){for(var a=0;a\u003Cthis.length;a\u002B\u002B)this[a].parentNode.removeChild(this[a]);return this}},find:{value:function(a){return d(a,this.first)}},closest:{value:function(a){var b=this.first;do if(b[d.matches](a))return d(b);while(b=b.parentElement);return null}},is:{value:function(a){return d(this.filter(function(b){return b[d.matches](a)}))}},css:{value:function(a,\r\nb){if(\u0022undefined\u0022==typeof b)return this.first.style[a];for(var c=0;c\u003Cthis.length;c\u002B\u002B)this[c].style[a]=b;return this}},html:{value:function(a){return this.prop(\u0022innerHTML\u0022,a)}},text:{value:function(a){return this.prop(\u0022textContent\u0022,a)}}});d.miq=\u00221.10.0\u0022;d.ajaxCallback=function(a,b,c,d){var f=new XMLHttpRequest;f.onreadystatechange=function(){var a;if(4==f.readyState)if(200==f.status){switch(d.dataType){case \u0022xml\u0022:a=f.responseXML;break;case \u0022json\u0022:a=JSON.parse(f.responseText);break;default:a=f.responseText}b(a)}else c\u0026\u0026\r\nc(\u0022Ajax error: \u0022\u002Bf.status)};f.open(d.method||\u0022GET\u0022,a,!0);if(d.headers)for(var g in d.headers)f.setRequestHeader(g,d.headers[g]);f.send(d.data||\u0022\u0022)};d.ajax=function(a,b){return new Promise(function(c,e){d.ajaxCallback(a,c,e,b)})};d.matches=[\u0022matches\u0022,\u0022webkitMatchesSelector\u0022,\u0022mozMatchesSelector\u0022,\u0022msMatchesSelector\u0022].filter(function(a){return a in document.documentElement})[0];\u0022function\u0022===typeof define\u0026\u0026define.amd?define(function(){return d}):\u0022object\u0022===typeof module\u0026\u0026module.exports?module.exports=\r\nd:\u0022undefined\u0022==typeof $\u0026\u0026($=d);window.miq=d})();\r\n\r\nlet p = null;","TestCases":[{"Name":"jQuery","Code":"jQuery(\u0027#test\u0027).attr(\u0027x\u0027,\u0027Okay\u0027);","IsDeferred":false},{"Name":"Zepto","Code":"Zepto(\u0027#test\u0027).attr(\u0027x\u0027,\u0027Okay\u0027);","IsDeferred":false},{"Name":"Blissful","Code":"Bliss(\u0027#test\u0027).setAttribute(\u0027x\u0027,\u0027Okay\u0027);","IsDeferred":false},{"Name":"Umbrella","Code":"u(\u0027#test\u0027).attr(\u0027x\u0027,\u0027Okay\u0027);","IsDeferred":false},{"Name":"Cash","Code":"cash(\u0027#test\u0027).attr(\u0027x\u0027,\u0027Okay\u0027);","IsDeferred":false},{"Name":"Dom7","Code":"Dom7(\u0027#test\u0027).attr(\u0027x\u0027,\u0027Okay\u0027);","IsDeferred":false},{"Name":"Miq","Code":"miq(\u0027#test\u0027).attr(\u0027x\u0027,\u0027Okay\u0027);","IsDeferred":false},{"Name":"Ki","Code":"K(\u0027#test\u0027)[0].setAttribute(\u0027x\u0027,\u0027Okay\u0027);","IsDeferred":false},{"Name":"Salt.js","Code":"S(\u0027#test\u0027).setAttribute(\u0027x\u0027,\u0027Okay\u0027);","IsDeferred":false},{"Name":"querySelector","Code":"document.querySelector(\u0027#test\u0027).setAttribute(\u0027x\u0027,\u0027Okay\u0027);","IsDeferred":false},{"Name":"getElementById","Code":"document.getElementById(\u0027test\u0027).setAttribute(\u0027x\u0027,\u0027Okay\u0027);","IsDeferred":false},{"Name":"querySelectorAll","Code":"document.querySelectorAll(\u0027#test\u0027)[0].setAttribute(\u0027x\u0027,\u0027Okay\u0027);","IsDeferred":false},{"Name":"window array","Code":"window[\u0027test\u0027].setAttribute(\u0027x\u0027,\u0027Okay\u0027);","IsDeferred":false}]}