text: !function(){function overrideNodeMethod(prototype,methodName){var oldMethod=prototype[methodName];prototype[methodName]=function(query){var nodeList,gaveId=!1,gaveContainer=!1;return query.match(scopeRE)?(query=query.replace(scopeRE,""),this.parentNode||(container.appendChild(this),gaveContainer=!0),parentNode=this.parentNode,this.id||(this.id="rootedQuerySelector_id_"+(new Date).getTime(),gaveId=!0),nodeList=oldMethod.call(parentNode,"#"+this.id+" "+query),gaveId&&(this.id=""),gaveContainer&&container.removeChild(this),nodeList):oldMethod.call(this,query)}}if(!HTMLElement.prototype.querySelectorAll)throw new Error("rootedQuerySelectorAll: This polyfill can only be used with browsers that support querySelectorAll");var container=document.createElement("div");try{container.querySelectorAll(":scope *")}catch(e){var scopeRE=/^\s*:scope/gi;overrideNodeMethod(HTMLElement.prototype,"querySelector"),overrideNodeMethod(HTMLElement.prototype,"querySelectorAll")}}(),function(){var BrahmaStudioFactory,BrahmaStudioFactory=function(userConfig){var factoryConfig={};if("object"==typeof userConfig)for(var i in userConfig)userConfig.hasOwnProperty(i)&&(factoryConfig[i]=userConfig[i]);var Brahma=null,currentQuerySelector="function"==typeof Sizzle?1:0;Brahma=function(){if(this===window){var air=new Brahma;switch(arguments.length){case 1:var selector=arguments[0];switch(typeof selector){case"function":return selector.call(this,Brahma),Brahma(window);default:var elements=Brahma.nodeQuery.call(this,selector)}break;case 0:var selector="",elements=Brahma.nodeQuery.call(this,selector)}if("object"!=typeof elements&&"function"!=typeof elements||!elements.length)index=0;else for(var index=0;index<elements.length;index++)air[index]=elements[index];return air.context=index>1?document:index>0?elements[0].parentNode:null,air.length=index,air.selector=selector,air}},Brahma.ref=function(proto){function Ref(){}return Ref.prototype=proto||this,Ref.prototype.constructor=Ref,new Ref},Brahma.vector=Brahma.prototype={constructor:Brahma},Brahma.vector.version="1.4.2",Brahma.vector.brahma=!0,Brahma.document={ready:!1},Brahma.macros={},Brahma.macros.dom={},Brahma.macros.dom.pseusoQueryMatch=function(subject,pqs){switch(pqs){case"visible":return function(cstyle){return!("none"===cstyle.display||"hidden"===cstyle.visibility||0===parseInt(cstyle.opacity))}(window.getComputedStyle(subject))}},Brahma.macros.dom.pixelizeMargin=function(subject,direction){direction=direction.toLowerCase();var ml=window.getComputedStyle(subject)["margin"+String(direction.charAt(0)).toUpperCase()+direction.substr(1)];return Brahma.pixelize(ml,"left"===direction||"right"===direction?subject.parentNode.clientWidth:subject.parentNode.clientHeight)},Brahma.bench=function(subject,args,tieback){var elements=[];if("object"==typeof subject)if(subject instanceof Array||subject instanceof Brahma||jQuery&&subject instanceof jQuery)for(var i=0;i<subject.length;i++)elements.push(subject[i]);else for(var i in subject)subject.hasOwnProperty(i)&&(elements[i]=subject[i]);else elements=[subject];return tieback.call(subject,elements,args)},Brahma.nodeQuery=Brahma.vector.nodeQuery=function(query,root){var prefix;prefix=root?":scope ":"";var root=root||document;switch(typeof query){case"string":var queryExpr=/<([a-zA-Z0-9_]+) \/>/i,argsExpr=/\[([a-zA-Z0-9_\-]*)[ ]?=([ ]?[^\]]*)\]/i;if(query.indexOf("[")>-1&&argsExpr.exec(query)){query=query.replace(argsExpr,'[$1="$2"]')}if(null!==queryExpr.exec(query))return[document.createElement(result[1].toUpperCase())];if(0===query.length)return new Array;if(0===currentQuerySelector)try{return root.querySelectorAll(prefix+query)}catch(e){console.log("Brahma: querySelectorAll not support query: "+query)}else if(1===currentQuerySelector)return Sizzle(query,root);break;case"function":return[];case"object":if(query instanceof Array)return query;if(query==window)return[query];if(query.jquery){for(var elements=[],j=0;j<query.length;j++)elements.push(query[j]);return elements}if(query.brahma){for(var elements=[],j=0;j<query.length;j++)elements.push(query[j]);return elements}return[query];case"undefined":default:return[query]}},Brahma.camelize=function(text){return text.replace(/-([\da-z])/gi,function(all,letter){return letter.toUpperCase()})},Brahma.dasherize=function(text){return text.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},Brahma.millisify=function(sms){return"."===sms.charAt(0)?(d=10,sms=sms.substr(1)):d=1,"ms"===sms.substr(-2)?parseFloat(sms)/d:"s"===sms.substr(-1)?1e3*parseFloat(sms)/d:"h"===sms.substr(-1)?6e4*parseFloat(sms)/d:parseFloat(sms)/d},Brahma.pixelize=function(value,quantity){return"string"==typeof value?"%"===value.substr(-1)?quantity/100*value.substring(0,value.length-1):parseInt(value.split("px").join("")):value},Brahma.ref=function(proto){function Ref(){}Ref.prototype=proto;var test=new Ref;return test},Brahma.copyProps=function(target,source){for(var prop in source)source.hasOwnProperty(prop)&&(target[prop]=source[prop]);return target},Brahma.inherit=function(proto,extend){var o=Object.create(proto);for(var prop in proto)proto.hasOwnProperty(prop)&&null!==proto[prop]&&"object"==typeof proto[prop]&&(o[prop]="Ref"!==proto[prop].constructor.name?Brahma.clone(proto[prop]):proto[prop]);return extend&&(o=Brahma.copyProps(o,extend)),o},Brahma.clone=function(prototype){if(prototype instanceof Array){var clone=[];clone.length=prototype.length}else{if("object"!=typeof prototype)return prototype;var clone={}}for(var prop in prototype)prototype.hasOwnProperty(prop)&&(clone[prop]=null===prototype[prop]||"object"!=typeof prototype[prop]||"Ref"===prototype[prop].constructor.name?prototype[prop]:Brahma.clone(prototype[prop]));return clone},Brahma.extend=function(){var target=arguments[0],proto=arguments[1],recrusive=arguments.length>2?arguments[2]:!1;for(var i in proto){if(!proto.hasOwnProperty(i))break;switch(typeof proto[i]){case"undefined":case"null":target[i]=null;break;case"object":if(proto[i]instanceof Array)target[i]=[],Brahma.extend(target[i],proto[i]);else if(recrusive)"object"!=typeof target[i]&&(target[i]={}),Brahma.extend(target[i],proto[i]);else{target[i]={};for(var ii in proto[i])target[i][ii]=proto[i][ii]}break;case"boolean":case"number":case"string":case"function":target[i]=proto[i]}}return target},function(){for(var vendors=["ms","moz","webkit","o"],customRequestAnimationFrame=window.requestAnimationFrame,customCancelAnimationFrame=window.cancelAnimationFrame,x=0;x<vendors.length&&!window.requestAnimationFrame;++x)customRequestAnimationFrame=window[vendors[x]+"RequestAnimationFrame"],customCancelAnimationFrame=window[vendors[x]+"CancelAnimationFrame"]||window[vendors[x]+"CancelRequestAnimationFrame"];Brahma.frame=function(){customRequestAnimationFrame.apply(window,arguments)}}(),Brahma.parseCssDeclarations=function(cssDeclarations){if("string"!=typeof cssDeclarations)return{};var cssDeclarations=cssDeclarations.split("\n").join("").split("	").join("");if(cssDeclarations.length<1)return{};var cssDeclarations=cssDeclarations.split(";"),options={};for(var o in cssDeclarations)if(cssDeclarations.hasOwnProperty(o)){var op=function(s){return"string"==typeof s?s.trim():s}(cssDeclarations[o]).split(":");0!==op[0].length&&(options[op[0]]="true"===op[1]||"false"===op[1]?"true"===op[1]?!0:!1:op[1])}return options},Brahma.fao=function(){initial=null,internals=null,proto=null;for(var i=0;i<arguments.length;i++)"function"==typeof arguments[i]&&(initial=arguments[i]),"object"==typeof arguments[i]&&(arguments[i]instanceof Array?internals=arguments[i]:proto=arguments[i]);return[initial,internals,proto]},Brahma.die=function(a){throw"Dharma error: "+(a||"unknown error")},(Brahma.classes={})&&(Brahma.classes.module={constructor:function(){var name,internals;"string"==typeof arguments[0]?(name=arguments[0],internals=arguments[1]||[]):(name=!1,internals=arguments[0]||[]);var module=Brahma.inherit(Brahma.classes.module.proto);if(module.master=Brahma.ref(this),internals instanceof Array)for(var i=0;i<internals.length;i++){if("object"!=typeof Brahma.classes.module.internals[internals[i]])return Brahma.error("There in no internal `"+internals[i]+"`");Brahma.extend(module,Brahma.classes.module.internals[internals[i]].proto),"function"==typeof Brahma.classes.module.internals[internals[i]].initial&&Brahma.classes.module.internals[internals[i]].initial.call(this.modules[name])}return module},proto:function(){var proto={};return proto.prototype={modules:{},assing:function(dist){return Brahma.extend(this,dist),this}},proto}(),internals:{tie:{proto:{tie:function(cb){return cb.apply(this,arguments),this}}},fabrics:{proto:{fabrics:{},modules:{},fabric:function(name,internals,constructor,proto){return this.fabrics[name]={constructor:constructor||function(){},internals:internals,proto:proto||{}},this},create:function(fabricName,extend,args){if("function"==typeof extend){extend=Object(extend);var prototype=Brahma.industry.make("module",this.fabrics[fabricName].internals,this.fabrics[fabricName].proto);"object"!=typeof extend.prototype?extend.prototype=prototype:Brahma.extend(extend.prototype,prototype);var proto=function(){};proto.prototype=extend.prototype;var module=new proto;extend.apply(module,args)}else{var module=Brahma.industry.make("module",this.fabrics[fabricName].internals,this.fabrics[fabricName].proto);Brahma.copyProps(module,extend)}return module.master=Brahma.ref(this),this.fabrics[fabricName].constructor.apply(module,args||[]),module},module:function(globalName){var initial="function"==typeof arguments[2]?arguments[2]:"function"==typeof arguments[1]?arguments[1]:!1,data="object"==typeof arguments[1]?arguments[1]:"object"==typeof arguments[2]?arguments[2]:!1;return data||initial?(this.fabric(globalName,["events","fabrics"],initial,data||{}),this):("undefined"==typeof this.modules[globalName]&&(this.modules[globalName]=this.create(globalName)),this.modules[globalName])},make:function(internals){"use strict";var i,prop,construct,radical,initial="function"==typeof arguments[2]?arguments[2]:"function"==typeof arguments[1]?arguments[1]:function(){},data="object"==typeof arguments[1]?arguments[1]:"object"==typeof arguments[2]?arguments[2]:{},construct=function(){};for(construct.prototype={constructor:construct},i=0;i<internals.length;i++)if(Brahma.classes.module.internals[internals[i]])for(prop in Brahma.classes.module.internals[internals[i]])Brahma.classes.module.internals[internals[i]].hasOwnProperty(prop)&&"function"==typeof Brahma.classes.module.internals[internals[i]][prop]&&(construct.prototype[prop]=Object(Brahma.classes.module.internals[internals[i]][prop]));for(prop in data)data.hasOwnProperty(prop)&&"function"==typeof data[prop]&&(construct.prototype[prop]=Object(data[prop]));if("object"==typeof initial.prototype)for(prop in initial.prototype)initial.prototype.hasOwnProperty(prop)&&(construct.prototype[prop]=initial.prototype[prop]);for(radical=new construct,i=0;i<internals.length;i++)if(Brahma.classes.module.internals[internals[i]])for(prop in Brahma.classes.module.internals[internals[i]])Brahma.classes.module.internals[internals[i]].hasOwnProperty(prop)&&"function"!=typeof Brahma.classes.module.internals[internals[i]][prop]&&(radical[prop]="object"!=typeof Brahma.classes.module.internals[internals[i]][prop]||"Ref"!==Brahma.classes.module.internals[internals[i]][prop].constructor.name?Brahma.clone(Brahma.classes.module.internals[internals[i]][prop]):Brahma.classes.module.internals[internals[i]][prop]);for(prop in data)data.hasOwnProperty(prop)&&"function"!=typeof data[prop]&&(radical[prop]="object"!=typeof data[prop]||"Ref"!==data[prop].constructor.name?Brahma.clone(data[prop]):data[prop]);return initial.apply(radical),radical}}},"interface":{proto:{"interface":{},setInterface:function(data){this["interface"]={};var that=this;for(var i in data)!function(name,f){"function"==typeof f&&(that["interface"][name]=function(){return f.apply(that,arguments)})}(i,data[i]["function"]);return this}}},visual:{proto:{createVisual:function(constructor){var proto={dom:{},objects:{}};if("function"==typeof constructor){var construct=constructor;construct.prototype=proto,construct.prototype.module=this,construct.prototype.constructor=constructor,this.visual=new construct(this)}else this.visual=Brahma.extend(proto,constructor);this.visual.module=this}}},events:{proto:{eventListners:{},bind:function(e,callback,once){return"object"!=typeof this.eventListners[e]&&(this.eventListners[e]=[]),this.eventListners[e].push({callback:callback,once:once}),this},on:function(){return this.bind.apply(this,arguments),this},once:function(e,callback){return this.bind(e,callback,!0),this},trigger:function(){if("integer"==typeof arguments[0])var e=(arguments[0],arguments[1]),args=arguments.length>2?arguments[2]:[];else var e=arguments[0],args=arguments.length>1?arguments[1]:[];var response=!1;if("object"==typeof this.eventListners[e]&&this.eventListners[e].length>0){for(var todelete=[],i=0;i<this.eventListners[e].length;i++)"object"==typeof this.eventListners[e][i]&&("function"==typeof this.eventListners[e][i].callback&&(response=this.eventListners[e][i].callback.apply(this,args)),this.eventListners[e][i].once&&todelete.push(i));if(todelete.length>0)for(var i in todelete)this.eventListners[e].splice(todelete[i],1)}return response}}},controller:{proto:{controller:{},createController:function(a,b,c){var globalName,initial,data;if(arguments.length>2&&(globalName=a,initial=b,data=c),2==arguments.length&&(globalName=!1,initial=a,data=b),1==arguments.length&&(globalName=!1,initial=!1,data=a),"object"==typeof initial||"function"==typeof data){var x=initial;initial=data,data=x}return this.controller=Brahma.module(data||{}),this.controller.master=this,"function"==typeof initial&&initial.call(this.controller),globalName&&("object"!=typeof window.controllers&&(window.controllers={}),window.controllers[globalName]=this.controller),this.controller}}},assing:{assing:function(extra){Brahma.extend(this,extra,!0)}}}}),Brahma.extend(Brahma,Brahma.classes.module.internals.events.proto),Brahma.industry={make:function(className,internals,extend){var newObject=Brahma.classes[className].constructor.call(!1,internals||[]);if("object"==typeof extend)for(var i in extend)extend.hasOwnProperty(i)&&(newObject[i]="object"==typeof extend[i]?Brahma.inherit(extend[i]):extend[i]);return newObject}},Brahma.applications=Brahma.industry.make("module",["fabrics"]),Brahma.applications.fabric("default",["events","fabrics","tie"],function(){}),Brahma.applications.execute=function(){if("object"!=typeof Brahma.applications.modules[arguments[0]])throw"Brahma: require `"+arguments[0]+"` application. Please, download it.";var options=arguments.length>1&&"object"==typeof arguments[1]?arguments[1]:{},plug=Brahma.inherit(Brahma.applications.modules[arguments[0]]);if(plug.config=Brahma.extend(plug.config,options,!0),function(cfg){null!==cfg&&Brahma.copyProps(plug.config,Brahma.parseCssDeclarations(cfg))}.call(this,Brahma(this).data(Brahma.dasherize(arguments[0]))),"object"==typeof Brahma.applications.modules[arguments[0]].config)for(var prop in Brahma.applications.modules[arguments[0]].config)if(Brahma.applications.modules[arguments[0]].config.hasOwnProperty(prop)){var hyphenProp=arguments[0]+"-"+Brahma.dasherize(prop);null!==Brahma(this).data(hyphenProp)&&(plug.config[prop]=Brahma(this).data(hyphenProp))}if(plug.scope=plug.selector=this,plug.classname=arguments[0],"object"!=typeof Brahma(this)[0]._brahma&&(Brahma(this)[0]._brahma={handlers:{}}),Brahma(this)[0]._brahma.handlers[arguments[0]]=plug,"function"==typeof arguments[2]&&arguments[2].apply(plug),"function"==typeof plug.run)var result=plug.run();return"undefined"==typeof result?plug:result},Brahma.app=Brahma.application=Brahma.vector.app=Brahma.vector.application=function(){if(this===window||"function"==typeof this){var name=arguments[0];if(arguments.length>1)switch(typeof arguments[1]){case"object":var $data=arguments[1];break;case"string":var copy=arguments[1];$data="undefined"!=typeof Brahma.applications.modules[copy]?Brahma.extend({},Brahma.applications.modules[copy]):{},arguments.length>2&&"object"==typeof arguments[2]&&($data=Brahma.extend($data,arguments[2]))}else $data={};if(name&&"undefined"!=typeof Brahma.applications.modules[name])return Brahma.extend(Brahma.applications.modules[name],$data);var component=Brahma.applications.create("default",$data);return Brahma.applications.modules[name]=component,name?Brahma.applications.modules[name]:this}return Brahma.applications.execute.apply(Brahma(this).first(),arguments)},Brahma.application.run=function(appName){return Brahma(window).app(appName)},Brahma.vector.use=function(){return Brahma.bench(this,arguments,function(elem,args){for(var i=0;i<elem.length;i++)Brahma.applications.execute.apply(elem[i],args);return this})},Brahma.vector.getApp=function(appName){var ispatch="object"==typeof Brahma(this)[0]._brahma;return appName?ispatch&&Brahma(this)[0]._brahma.handlers[appName]?Brahma(this)[0]._brahma.handlers[appName]:!1:ispatch?Brahma(this)[0]._brahma.handlers:{}},Brahma.applications.fabric("module",["events","tie"],function(){}),Brahma.module=function(extend,args){return Brahma.applications.create("module",extend||{},args||[])},Brahma.vector.html=function(html){return"undefined"==typeof html?this.length<=0?null:this[0].innerHTML:Brahma.bench(this,arguments,function(elem){for(var q=0;q<elem.length;q++)elem[q].innerHTML=html;return this})},Brahma.vector.empty=function(){return Brahma.bench(this,arguments,function(elem){for(var q=0;q<elem.length;q++)elem[q].innerHTML="";return this})},Brahma.vector.remove=function(){return Brahma.bench(this,arguments,function(elem){for(var parent,q=0;q<elem.length;q++)parent=elem[q].parentNode,parent.removeChild(elem[q]);return parent})},Brahma.vector.hide=function(){return Brahma.bench(this,arguments,function(elem){for(var q=0;q<elem.length;q++){var currentDisplay=Brahma(elem[q]).css("display");"none"!==currentDisplay&&("undefined"==typeof elem[q].backupStyle&&(elem[q].backupStyle={}),elem[q].backupStyle.display=currentDisplay),Brahma(elem[q]).css("display","none")}return Brahma(elem)})},Brahma.vector.show=function(){return Brahma.bench(this,arguments,function(elem){for(var q=0;q<elem.length;q++)"undefined"!=typeof elem[q].backupStyle&&elem[q].backupStyle.display?Brahma(elem[q]).css("display",elem[q].backupStyle.display):Brahma(elem[q]).css("display","");return Brahma(elem)})},Brahma.vector.width=function(){if(this[0]===window){var w=window,d=document,e=d.documentElement,g=d.getElementsByTagName("body")[0];return w.innerWidth||e.clientWidth||g.clientWidth}return Brahma.bench(this,arguments,function(elem){return elem[0].offsetWidth})},Brahma.vector.height=function(){if(this[0]===window){var w=window,d=document,e=d.documentElement,g=d.getElementsByTagName("body")[0];return w.innerHeight||e.clientHeight||g.clientHeight}return Brahma.bench(this,arguments,function(elem){return elem[0].offsetHeight})},Brahma.vector.outerWidth=function(){return Brahma(this[0]).width()+Brahma.macros.dom.pixelizeMargin(this[0],"left")+Brahma.macros.dom.pixelizeMargin(this[0],"right")},Brahma.vector.outerHeight=function(){return Brahma(this[0]).height()+Brahma.macros.dom.pixelizeMargin(this[0],"top")+Brahma.macros.dom.pixelizeMargin(this[0],"bottom")},Brahma.vector.is=function(origq){var test,pqs,qs,nativetest=function(subject){return test=subject&&(subject.matches||subject.webkitMatchesSelector||subject.mozMatchesSelector||subject.msMatchesSelector),test&&test.call(subject,origq)?!0:!1};return function(p){qs=p[0].trim(),pqs=p[1]?p[1].trim():!1}(origq.split(":")),Brahma.bench(this,arguments,function(elem){if(0===elem.length)return!1;for(var q=0;q<elem.length;q++)try{if(!nativetest(elem[q]))return!1}catch(e){if(pqs&&!Brahma.macros.dom.pseusoQueryMatch(elem[q],pqs))return!1}return!0})},Brahma.vector.not=function(qs){var subject,test,eq,kit=[];return"array"!=typeof qs&&(qs=[qs]),Brahma.bench(this,arguments,function(elem){for(var q=0;q<elem.length;q++){subject=elem[q],test=subject&&(subject.matches||subject.webkitMatchesSelector||subject.mozMatchesSelector||subject.msMatchesSelector),eq=!1;for(var s=0;s<qs.length;s++)if(""!==qs[s]&&test&&test.call(subject,qs[s])){eq=!0;break}eq||kit.push(elem[q])}return Brahma(kit)})},Brahma.vector.first=function(){return Brahma.bench(this,arguments,function(elem){return Brahma(elem[0])})},Brahma.vector.replace=function(newElement,preserveData){return Brahma.bench(this,arguments,function(elem){for(var queue=[],i=0;i<elem.length;i++)!function(e){if(preserveData){var className=e.className,data={};if(Brahma.caniuse("dataset"))for(var d in e.dataset)e.dataset.hasOwnProperty(d)&&(data[d]=e.dataset[d]);else for(var d in e.attributes)e.attributes.hasOwnProperty(d)&&"data-"===e.attributes[d].name.substring(0,5)&&(data[e.attributes[d].name.substring(5)]=e.attributes[d].value)}if(queue.push(newElement.cloneNode()),e.parentNode.replaceChild(queue[queue.length-1],e),preserveData){if(Brahma.caniuse("dataset"))for(var d in data)queue[queue.length-1].dataset[d]=data[d];else for(var d in data)queue[queue.length-1].setAttribute("data-"+d,data[d]);queue[queue.length-1].className=className}}(elem[i]);return Brahma(queue)})},Brahma.vector.parent=function(search){var parent,ok;return Brahma.bench(this,arguments,function(elem){if(!(elem.length>0))return null;if(!search)return Brahma(elem[0].parentNode);for(parent=elem[0],ok=!1;;){if(parent=parent.parentNode,Brahma(parent).is(search))return Brahma(parent);if(null===parent||"BODY"===parent.nodeName)return!1}})},Brahma.vector.createNode=function(){return Brahma.bench(this,arguments,function(elem,args){var nodeName=args[0],attrs=args[1]||{},prepend=args[2]||!1,element=elem[0];try{var newElement=document.createElement(nodeName)}catch(e){Brahma.die("Not a valid name tag name `"+nodeName+"`("+nodeName.length+")")}prepend?function(){null!==element.firstChild?element.insertBefore(newElement,element.firstChild):element.appendChild(newElement)}():this[0].appendChild(newElement);for(var name in attrs)attrs.hasOwnProperty(name)&&newElement.setAttribute(name,attrs[name]);return Brahma([newElement])})},Brahma.vector.each=Brahma.each=function(){var subject,callback;this instanceof Brahma?(subject=this,callback=arguments[0]||!1):(subject=arguments[0],callback=arguments[1]),Brahma.bench(subject,[callback],function(elements,args){for(var callback="function"==typeof args[0]?args[0]:!1,index=0;index<elements.length;index++)callback&&callback.call(elements[index],elements[index],index)})},Brahma.vector.put=function(){var kit=[];return Brahma.bench(this,arguments,function(elem,args){Brahma(elem).each(function(element){switch(typeof args[0]){case"object":Brahma(args[0]).each(function(){element.appendChild(this)}),kit.push(element);break;case"string":var nodeName=args[0].trim().toUpperCase(),attrs=args[1]||{},newElement=Brahma(element).createNode(nodeName,attrs)[0];kit.push(newElement)}})}),Brahma(kit)},Brahma.vector.unshift=function(){var kit=[];return Brahma.bench(this,arguments,function(elem,args){Brahma(elem).each(function(element){switch(typeof args[0]){case"object":var newElement=Brahma(args[0])[0];null!==element.firstChild?element.insertBefore(newElement,element.firstChild):element.appendChild(newElement),kit.push(newElement);break;case"string":var nodeName=args[0].trim().toUpperCase(),attrs=args[1]||{},newElement=Brahma(element).createNode(nodeName,attrs,!0)[0];kit.push(newElement)}})}),Brahma(kit)},Brahma.vector.and=function(){return Brahma.bench(this,arguments,function(elem,args){if(elem.length>0){var parent=Brahma(elem[0].parentNode);return parent.put.apply(parent,args)}return null})},Brahma.vector.before=function(){var kit=[];return Brahma.bench(this,arguments,function(elem,args){Brahma(elem).each(function(element){switch(typeof args[0]){case"object":var newElement=args[0];break;case"string":var nodeName=args[0].trim().toUpperCase(),attrs=args[1]||{},newElement=Brahma(element).createNode(nodeName,attrs,!0)[0]}element.parentNode.insertBefore(newElement,element),kit.push(newElement)})}),Brahma(kit)},Brahma.vector.after=function(){return Brahma.bench(this,arguments,function(elem,args){if(elem.length>0){var newNode=Brahma(elem[0].parentNode).put.apply(Brahma(elem[0].parentNode),args);return elem[0].parentNode.insertBefore(newNode[0],elem[0].nextSibling),newNode}return null})},Brahma.vector.condition=function(condit,onTrue,onFalse){return condit?"function"==typeof onTrue?onTrue.call(this,condit):this:"function"==typeof onFalse?onFalse.call(this):this},Brahma.vector.wrapAll=function(){return Brahma.bench(this,arguments,function(elem,args){for(var wrap=Brahma(elem[0].parentNode),node=wrap.createNode.apply(wrap,args),i=0;i<elem.length;i++)Brahma(node).put(elem[i]);return node})},Brahma.vector.find=function(){return Brahma.bench(this,arguments,function(elem,args){var kit=[];return Brahma.each(elem,function(){var founds=Brahma.nodeQuery(args[0],this);if(founds.length)for(var i=0;i<founds.length;i++)kit.push(founds[i])}),Brahma(kit)})},Brahma.vector.tie=function(cb){return cb.call(this),this},Brahma.vector.condition=function(condition,ontrue,onfalse){if(condition){if("function"==typeof ontrue)return ontrue.call(this)}else if("function"==typeof onfalse)return onfalse.call(this);return this},Brahma.addEvent=function(elem,type,userEventHandler,once){var eventHandler;eventHandler=function(e){once&&(elem.addEventListener?elem.removeEventListener(type,eventHandler,!1):elem.attachEvent?element.detachEvent("on"+type,eventHandler):elem["on"+type]=null),function(r){return"boolean"==typeof r&&r===!1}(userEventHandler.apply(this,arguments))&&e.preventDefault()},null!=elem&&"undefined"!=typeof elem&&(elem.addEventListener?elem.addEventListener(type,eventHandler,!1):elem.attachEvent?elem.attachEvent("on"+type,eventHandler):elem["on"+type]=eventHandler)},Brahma.removeEvent=function(elem,type,userEventHandler){elem.addEventListener?elem.removeEventListener(type,userEventHandler||!1,!1):elem.attachEvent?element.detachEvent("on"+type,userEventHandler):elem["on"+type]=null},Brahma.vector.bind=function(){return Brahma.bench(this,arguments,function(elem,args){for(var events=args[0].split(" "),e=0;e<events.length;e++)if(""!==events[e])for(var i=0;i<elem.length;i++)Brahma.addEvent(elem[i],events[e],args[1],args[2]||!1);return this})},Brahma.vector.unbind=function(){return Brahma.bench(this,arguments,function(elem,args){for(var i=0;i<elem.length;i++)Brahma.removeEvent(elem[i],args[0],args[1]||!1);return this})},Brahma.vector.addClass=function(){return Brahma.bench(this,arguments,function(elem,args){for(var stylename=args[0],i=0;i<elem.length;i++){var st=elem[i].className.split(" ");st.indexOf(stylename)<0&&(st.push(stylename),elem[i].className=st.join(" "))}return this})},Brahma.vector.removeClass=function(){return Brahma.bench(this,arguments,function(elem,args){for(var stylename=args[0],i=0;i<elem.length;i++){var st=elem[i].className.split(" "),index=st.indexOf(stylename);index>-1&&(st.splice(index,1),elem[i].className=st.join(" "))}return this})},Brahma.vector.hasClass=function(){return Brahma.bench(this,arguments,function(elem,args){for(var stylename=args[0],i=0;i<elem.length;i++){var st=elem[i].className.split(" "),index=st.indexOf(stylename);if(index>-1)return!0}return!1})},Brahma.vector.css=function(){var data,polymorph=[];return"object"==typeof arguments[0]?arguments[0]instanceof Array?(polymorph=arguments[0],data=arguments[1]):data=arguments[0]:arguments.length>1?(data={},data[arguments[0]]=arguments[1]):data=arguments[0],Brahma.bench(this,[polymorph,data],function(elem,args){return"object"==typeof args[1]?(Brahma(elem).each(function(){for(var i in data){if(0!==polymorph.length)for(var p=0;p<polymorph.length;p++)this.style[polymorph[p]+i]=data[i];this.style[i]=data[i]}}),Brahma(elem)):elem[0].style[data]})},Brahma.vector.data=function(){return Brahma.bench(this,arguments,function(elem,args){for(var key=Brahma.camelize(args[0]),i=0;i<elem.length;i++){if(!(args.length>1))return Brahma.caniuse("dataset")?"undefined"!=typeof elem[i].dataset[key]?elem[i].dataset[key]:null:elem[i].getAttribute("data-"+args[0]);null===args[1]?Brahma.caniuse("dataset")?delete elem[i].dataset[key]:elem[i].removeAttribute("data-"+args[0]):Brahma.caniuse("dataset")?elem[i].dataset[key]=args[1]:elem[i].setAttribute("data-"+args[0],args[1])}return this})},Brahma.vector.attr=function(){return Brahma.bench(this,arguments,function(elem,args){if(args.length>0){switch(typeof args[0]){case"object":Brahma(elem).each(function(){for(var i in args[0])this.setAttribute(i,args[0][i])});break;case"string":return args.length>1?(Brahma(elem).each(function(){this.setAttribute(args[0],args[1])}),this):elem[0].getAttribute(args[0]);default:return elem[0].attributes}return Brahma(elem)}return elem[0].attributes})},Brahma.vector.removeAttr=function(){return Brahma.bench(this,arguments,function(elem,args){Brahma(elem).each(function(){this.removeAttribute(args[0])})})},Brahma.vector.scroll=function(){var doc=document.documentElement,left=(window.pageXOffset||doc.scrollLeft)-(doc.clientLeft||0),top=(window.pageYOffset||doc.scrollTop)-(doc.clientTop||0);return{left:left,top:top}},Brahma.vector.eq=function(index){return Brahma(this[index])},Brahma.cultivate=function(){return BrahmaStudioFactory(!1)},Brahma.caniuse=function(test){return Brahma.caniuse.info[test]&&"function"==typeof Brahma.caniuse.info[test]&&(Brahma.caniuse.info[test]=Brahma.caniuse.info[test]()),Brahma.caniuse.info[test]?Brahma.caniuse.info[test]:!1},Brahma.caniuse.info={dataset:"undefined"!=typeof document.createElement("div").dataset,translate3D:function(){for(var div=document.createElement("div"),ret=!1,properties=["perspectiveProperty","WebkitPerspective"],i=properties.length-1;i>=0;i--)ret=ret?ret:void 0!=div.style[properties[i]];if(ret){var st=document.createElement("style");st.textContent="@media (-webkit-transform-3d){#test3d{height:3px}}",document.getElementsByTagName("head")[0].appendChild(st),div.id="test3d",document.body.appendChild(div),ret=3===div.offsetHeight,st.parentNode.removeChild(st),div.parentNode.removeChild(div)}return ret},mobile:function(){for(var check=!1,i=0,iDevice=["iPad","iPhone","iPod"];i<iDevice.length;i++)if(navigator.platform===iDevice[i])return!0;return function(a){/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)&&(check=!0)}(navigator.userAgent||navigator.vendor||window.opera),check}},function(win,fn){var done=!1,top=!0,doc=win.document,root=doc.documentElement,add=doc.addEventListener?"addEventListener":"attachEvent",rem=doc.addEventListener?"removeEventListener":"detachEvent",pre=doc.addEventListener?"":"on",init=function(e){("readystatechange"!=e.type||"complete"==doc.readyState)&&(("load"==e.type?win:doc)[rem](pre+e.type,init,!1),!done&&(done=!0)&&fn.call(win,e.type||e))},poll=function(){try{root.doScroll("left")}catch(e){return void setTimeout(poll,50)}init("poll")};if("complete"==doc.readyState)fn.call(win,"lazy");else{if(doc.createEventObject&&root.doScroll){try{top=!win.frameElement}catch(e){}top&&poll()}doc[add](pre+"DOMContentLoaded",init,!1),doc[add](pre+"readystatechange",init,!1),win[add](pre+"load",init,!1)}}(window,function(){Brahma.document.ready=!0,Brahma.trigger("domReady")});var brahmaHTMLDoc=function(cb){Brahma.document.ready?cb.call(Brahma.document):Brahma.bind("DOMReady",cb)};return Brahma.extend(brahmaHTMLDoc,Brahma.classes.module.internals.events.proto),brahmaHTMLDoc.eventCatchers={},brahmaHTMLDoc.ready=!1,brahmaHTMLDoc._startEventListing=function(e){var d=this,e=e;switch("object"!=typeof this.eventCatchers[e]&&(this.eventCatchers[e]=[]),e){case"window.resize":window.onresize=function(){d.catchEvent(e,this,arguments)};break;case"document.keydown":document.onkeydown=function(){d.catchEvent(e,this,arguments)};break;case"document.keyup":document.onkeyup=function(){d.catchEvent(e,this,arguments)};break;default:var parts=e.split(".");Brahma(parts[0]).bind(parts[1],function(){d.catchEvent(e,this,arguments)
  })}},brahmaHTMLDoc.catchEvent=function(event,element,args){if(this.trigger(event,args),"object"==typeof this.eventCatchers[event])var etd=[];for(var c=0;c<this.eventCatchers[event].length;c++)"object"==typeof this.eventCatchers[event][c]&&"function"==typeof this.eventCatchers[event][c].trigger?this.eventCatchers[event][c].trigger(event,args):etd.push(c);etd.length>0&&function(c,etd){for(var nc=[],e=0;e<c.length;e++)etd.indexOf(e)<0&&nc.push(c[e]);c=nc}(this.eventCatchers[event],etd)},brahmaHTMLDoc.translateEvents=function(handler,events){"string"==typeof events&&(events=[events]);for(var e=0;e<events.length;e++)"object"!=typeof this.eventListners[e]&&function(e){var e=e;this._startEventListing(e)}.call(this,events[e]),this.eventCatchers[events[e]].push(handler)},brahmaHTMLDoc.zindex={max:0,all:[],recalc:function(){for(;!this.all[this.max]&&0!=this.max;)this.max--},get:function(count){for(var i=1;count>=i;i++)this.all[this.max+i]=!0;return this.max+=count,this.max-(count-1)},free:function(index,count){if("object"!=typeof index){if(indexes=[index],"number"==typeof count)for(var i=1;count>i;i++)indexes.push(index+i)}else var indexes=[index];for(var i=0;i<indexes.length;i++)brahmaHTMLDoc.zindex.all[indexes[i]]=!1;brahmaHTMLDoc.zindex.recalc()}},Brahma.document=brahmaHTMLDoc,Brahma.mutate=function(){return BrahmaStudioFactory()},Brahma};window.Brahma=window.Studio=BrahmaStudioFactory()}();