
'use strict';require('earlgrey-runtime/6');let $targ$0;let $targ$1;let $targ$2;let $targ$8;let path$0;let dom$0;let jq$0;let elements$0;let BucheElement$0;let LogEntry$0;let BucheLog$0;let buche__minus__install$0;if((typeof(document)==="undefined")){$targ$0=undefined;(global["document"]=$targ$0);(void 0);}if((typeof(HTMLElement)==="undefined")){$targ$1=undefined;(global["HTMLElement"]=$targ$1);(void 0);}if((typeof(customElements)==="undefined")){$targ$2=undefined;(global["custom-elements"]=$targ$2);(void 0);}path$0=require("path");dom$0=require("earlgrey-runtime/std/dom");jq$0=require("jquery");elements$0=require("../../elements");BucheElement$0=getProperty(elements$0,"BucheElement","elements");LogEntry$0=(class LogEntry extends HTMLElement{ constructor(){let __at___$0;let self$0;super();__at___$0=this;self$0=this;return undefined;}});BucheLog$0=(class BucheLog extends BucheElement$0{ attributeDefaults(){let __at___$1;let self$1;__at___$1=this;self$1=this;return ({"limit":1000});} attributeSpec(){let accum$0;let __at___$2;let self$2;__at___$2=this;self$2=this;accum$0=({});(accum$0["limit"]=(function limit(temp$0$0){let t0$0;let bridge$$3999$0;let bridge$$3998$0;let bridge$$3997$0;let lim$0;let ph$0$0;t0$0=temp$0$0;lim$0=t0$0;ph$0$0=t0$0;bridge$$3997$0=ph$0$0;if((((bridge$$3998$0=bridge$$3997$0),(((bridge$$3999$0=bridge$$3998$0),((bridge$$3999$0==="0")||(bridge$$3999$0==="none")))||(bridge$$3998$0==="null")))||(bridge$$3997$0==="infinity"))){return Infinity;}else{return lim$0;}}));return accum$0;} constructor(){let $targ$3;let $targ$4;let $targ$5;let $targ$6;let __at___$3;let self$3;super();__at___$3=this;self$3=this;$targ$3=jq$0(__at___$3);(__at___$3["jqarea"]=$targ$3);$targ$4=true;(__at___$3["scrolledDown"]=$targ$4);$targ$5=0;(__at___$3["len"]=$targ$5);$targ$6=(function(e$0){let a$0;let $targ$7;a$0=__at___$3.jqarea;$targ$7=equal((a$0[0].scrollHeight-a$0.scrollTop()),a$0.outerHeight());(__at___$3["scrolledDown"]=$targ$7);return (void 0);});(__at___$3["onscroll"]=$targ$6);return undefined;} _add(ch$0){let f$0;let __at___$4;let self$4;__at___$4=this;self$4=this;__at___$4._appendChild(ch$0);(__at___$4["len"]=(__at___$4.len+1));$0:while((__at___$4.len>__at___$4.config.limit)){__at___$4.removeChild(__at___$4.childNodes[0]);(__at___$4["len"]=(__at___$4.len-1));}if(__at___$4.scrolledDown){f$0=(function f(){return __at___$4.jqarea.scrollTop(__at___$4.scrollHeight);});return setTimeout(f$0,0);}} pushChild(temp$1$0){let t0$1;let ch$1;let ph$1$0;let __at___$5;let self$5;__at___$5=this;self$5=this;t0$1=temp$1$0;ch$1=t0$1;ph$1$0=t0$1;if(getChecker(LogEntry$0)(ph$1$0)){return __at___$5._add(ch$1);}else{return __at___$5._add(dom$0(ENode(["log-entry"],({}),ch$1)));}}});buche__minus__install$0=(function bucheInstall(){customElements.define("buche-log",BucheLog$0);customElements.define("log-entry",LogEntry$0);return document.head.appendChild(dom$0(ENode(["link"],({"type":"text/css","rel":"stylesheet","href":path$0.join(__dirname,"style.css")}),[])));});$targ$8=buche__minus__install$0;(exports["bucheInstall"]=$targ$8);(void 0);
//# sourceMappingURL=index.js.map

