var BSS={_call:function(t,e,n,i){try{return t(e,n,i)}catch(r){console.error("While calling edi function",t,"with (e d i) parameters",e,n,i,"got: ",r)}},_get:function(t,e,n,i){return"function"==typeof t?this._call(t,e,n,i):t},_selectTarget:function(t,e,n,i){return"function"==typeof t?this._call(t,e,n,i):e.querySelector(t)},_selectTargets:function(t,e,n,i){return"function"==typeof t?this._call(t,e,n,i):e.querySelectorAll(t)},_hasTemplate:function(t){return void 0!==t.template&&null!=t.template},_getTemplate:function(t,e,n,i){var r=t.template,a="function"==typeof r?this._call(r,e,n,i):t.rootdocument.querySelector(r);if(null==a)throw"No template found "+r;return document.importNode(a.content,!0)},_setRootDocument:function(t,e){var n=e||this._get(t.rootdocument);return n=n||document,t.rootdocument=n,n},polyfill:function(){if(!("content"in document.createElement("template"))){var t=Array.prototype.slice.call(document.getElementsByTagName("template"));for(var e in t){var n=t[e],i=n.children,r=document.createDocumentFragment();n.style.display="none";var a=null;for(j=0;a=i[j];j++)r.appendChild(a);n.content=r}}},commit:function(t){this._bindingCache.commit(t)},clear:function(t){this._bindingCache.clear(t);var e=this._setRootDocument(t,t.rootdocument?t.rootdocument:document),n=this._selectTarget(t.target,e);n?n.innerHTML="":console.error("Target not found")},reapply:function(t){this._bindingCache.reapply(t)},apply:function(t,e){t.id||(t.id=1e12*Math.random()|0),this._bindingCache.clear(t);var n=this._setRootDocument(t,e);this._bind(t,t,t.rootdocument),this.reapply(t),null!=this._selectTarget(t.target,n)||console.error("Target not found",t.target)},_bindSingle:function(t,e,n,i,r,a){this._bindingCache.addApplyBinding(t,e,n,i,a),r&&this._bindingCache.addCommitBinding(t,e,n,r,a),this._registerEvents(t,n)},_bind:function(t,e,n,i,r,a){for(var o=this._selectTargets(t.target,n,i,a),c=0,s=o.length;c