!function(e,t){"object"==typeofexports&&"object"==typeofmodule?module.exports=t():"function"==typeofdefine&&define.amd?define([],t):"object"==typeofexports?exports.Omi=t():e.Omi=t()}(this,function(){returnfunction(e){functiont(r){if(n[r])returnn[r].exports;vari=n[r]={exports:{},id:r,loaded:!1};returne[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}varn={};returnt.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";functionr(e){returne&&e.__esModule?e:{"default":e}}vari=n(1),o=r(i),a=n(11),s=r(a),l=n(5),u=r(l),c=n(10),d=r(c);s["default"].prefix("o"),o["default"].template=s["default"],o["default"].Store=d["default"],o["default"].Component=u["default"],window.Omi?e.exports=window.Omi:(window.Omi=o["default"],e.exports=o["default"])},function(e,t){"use strict";functionn(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functionr(e,t){if(!e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeoft?"undefined":a(t))&&"function"!=typeoft?e:t}functioni(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function, not "+("undefined"==typeoft?"undefined":a(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}functiono(e){vart=[];for(varnine)e.hasOwnProperty(n)&&t.push({key:n,value:e[n]});returnt}vara="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe},s={};s.instances={},s._instanceId=0,s.getInstanceId=function(){returns._instanceId++},s.customTags=[],s.mapping={},s.STYLEPREFIX="omi_style_",s.STYLESCOPEDPREFIX="omi_scoped_",s.style={},s.componentConstructor={},"function"!=typeofObject.assign&&(Object.assign=function(e){if(null==e)thrownewTypeError("Cannot convert undefined or null to object");e=Object(e);for(vart=1;t<arguments.length;t++){varn=arguments[t];if(null!=n)for(varrinn)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}returne}),function(){vare=Array.prototype.slice;try{e.call(document.documentElement)}catch(t){Array.prototype.slice=function(t,n){if(n="undefined"!=typeofn?n:this.length,"[object Array]"===Object.prototype.toString.call(this))returne.call(this,t,n);varr,i,o=[],a=this.length,s=t||0;s=s>=0?s:a+s;varl=n?n:a;if(n<0&&(l=a+n),i=l-s,i>0)if(o=newArray(i),this.charAt)for(r=0;r<i;r++)o[r]=this.charAt(s+r);elsefor(r=0;r<i;r++)o[r]=this[s+r];returno}}}();varl=function(){functione(e,t){for(varn=0;n<t.length;n++){varr=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}returnfunction(t,n,r){returnn&&e(t.prototype,n),r&&e(t,r),t}}();s.create=function(e,t,a){varu=t,c=s.Component;returnarguments.length>2&&(u=a,c=t),s.componentConstructor[e]=function(t){functiona(t,i){returnn(this,a),this.___omi_constructor_name=e,r(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,t,i))}returni(a,t),l(a,o(u)),a}(c),s.customTags.push(e),s.componentConstructor[e]},s.createStore=function(e){vart=function(t){functiona(t,i){returnn(this,a),this.data=t,e.methods.install&&e.methods.install.call(this),r(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,t,i))}returni(a,t),l(a,o(e.methods)),a}(s.Store);returnnewt(e.data,!0)},s.mixIndex=function(e,t){for(varn=e.length,r=t||"index",i=0;i<n;i++){varo=e[i];"object"===("undefined"==typeofo?"undefined":a(o))?o[r]=i:(e[i]={value:o},e[i][r]=i)}returne},s.$=function(e,t){returnt?t.querySelector(e):document.querySelector(e)},s.$$=function(e,t){returnt?Array.prototype.slice.call(t.querySelectorAll(e)):Array.prototype.slice.call(document.querySelectorAll(e))},s.getClassFromString=function(e){if(e.indexOf(".")!==-1){for(vart=e.split("."),n=t.length,r=window[t[0]],i=1;i<n;i++)r=r[t[i]];returnr}returns.componentConstructor[e]},s.makeH
}},{key:"addView",value:function(e){for(vart=!1,n=0,r=this.instances.length;n<r;n++)if(this.instances[n].id===e.id){t=!0;break}t||this.instances.push(e)}},{key:"beReady",value:function(){this.isReady=!0,this.readyHandlers.forEach(function(e){returne()})}},{key:"update",value:function(){this._mergeInstances(),this._mergeSelfInstances(),this.instances.forEach(function(e){returne.update()}),this.updateSelfInstances.forEach(function(e){returne.updateSelf()})}},{key:"_mergeSelfInstances",value:function(){vare=this,t=[];this.updateSelfInstances.forEach(function(n){e._checkSelfUpdateInstance(n)||t.push(n)}),this.updateSelfInstances=t}},{key:"_mergeInstances",value:function(){vare=this,t=[];this.idArr=[],this.instances.forEach(function(t){e.idArr.push(t.id)}),this.instances.forEach(function(n){n.parent?e._isSubInstance(n)||t.push(n):t.push(n)}),this.instances=t}},{key:"_checkSelfUpdateInstance",value:function(e){returnthis.idArr.indexOf(e.id)!==-1||(e.parent?this._checkSelfUpdateInstance(e.parent):void0)}},{key:"_isSubInstance",value:function(e){returnthis.idArr.indexOf(e.parent.id)!==-1||(e.parent.parent?this._isSubInstance(e.parent):void0)}}]),e}();t["default"]=i},function(e,t,n){varr,i;(function(e){"use strict";varn="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe};!function(){Array.prototype.map||(Array.prototype.map=function(e){for(vart=[],n=0;n<this.length;n++){varr=this[n];[].push(e&&e.call(r,r,n))}returnt}),String.prototype.trim||(String.prototype.trim=function(){returnthis.replace(/^\s*|\s*$/g,"")});varo=function(e){for(vart=[],n=0;n<e.length;n++)t.push(e[n]);returnt},a=/\{\{([^\}]*)\}\}/g,s="soda",l=newRegExp("^"+s+"-"),u=function(e){returnnewRegExp("(^|\\s+)"+e+"(\\s+|$)","g")},c=function(e,t){returne.className?void(e.className.match(u(t))||(e.className+=" "+t)):void(e.className=t)},d=function(e){returnnull!==e&&void0!==e&&""!==e&&"undefined"!=typeofe},f=function(e,t){k.lastIndex=0;varn=t.replace(k,function(t){return"undefined"==typeofe[t]?t:e[t]});if("true"===t)return!0;if("false"===t)return!1;varr=functioni(t,r){varo=r.indexOf(".");if(o>-1){vara=r.substr(0,o);if(r=r.substr(o+1),"undefined"!=typeofe[a]&&C.test(a)&&(a=e[a]),"undefined"!=typeoft[a])returni(t[a],r);vars={name:n,data:e};returnL("nullvalue",{type:"nullattr",data:s},s),""}"undefined"!=typeofe[r]&&C.test(r)&&(r=e[r]);varl;if("undefined"!=typeoft[r])l=t[r];else{vars={name:n,data:e};L("nullvalue",{type:"nullvalue",data:s},s),l=""}returnl};returnr(e,t)},h=/"([^"]*)"|'([^']*)'/g,p=/[a-zA-Z_\$]+[\w\$]*(?:\s*\.\s*(?:[a-zA-Z_\$]+[\w\$]*|\d+))*/g,_=/[a-zA-Z_\$]+[\w\$]*(?:\s*\.\s*(?:[a-zA-Z_\$]+[\w\$]*|\d+))*/,m=/\[([^\[\]]*)\]/g,v=/\[([^\[\]]*)\]/,y=/\|\|/g,g="OR_OPERATOR",b=function(){return"$$"+~~(1e6*Math.random())},S="_$C$_",C=/^_\$C\$_/,k=/_\$C\$_[^\.]+/g,x=function(){returnS+~~(1e6*Math.random())},T=functionH(e,t){e=e.replace(y,g).split("|");for(varn=0;n<e.length;n++)e[n]=(e[n].replace(newRegExp(g,"g"),"||")||"").trim();varr=e[0]||"",i=e.slice(1);for(r=r.replace(h,function(e,n,r){vari=b();returnt[i]=n||r,i});v.test(r);)m.lastIndex=0,r=r.replace(m,function(e,n){varr=x(),i=H(n,t);returnt[r]=i,"."+r});r=r.replace(p,function(e){return"getValue(scope,'"+e.trim()+"')"});varo=functions(){vare=i.shift();if(e){for(vare=e.split(":"),t=e.slice(1)||[],n=e[0]||"",o=0;o<t.length;o++)_.test(t[o])&&(t[o]="getValue(scope,'"+t[o]+"')");w[n]&&(t.unshift(r),t=t.join(","),r="sodaFilterMap['"+n+"']("+t+")"),s()}};o();vara=newFunction("getValue","sodaFilterMap","return function sodaExp(scope){ return "+r+"}")(f,w);returna(t)},E=functionP(e,t){3===e.nodeType&&(e.nodeValue=e.nodeValue.replace(a,function(e,n){returnT(n,t)})),e.attributes&&(D.map(function(n){varr=n.name,i=n.opt;e.getAttribute(r)&&e.parentNode&&i.link(t,e,e.attributes)}),[].map.call(e.attributes,function(n){if(!A[n.name])if(l.test(n.name)){varr=n.name.replace(l,"");if(r&&n.value){vari=n.value.replace(a,fun