text: "use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function _asyncToGenerator(t){return function(){var e=t.apply(this,arguments);return new Promise(function(t,n){return function r(o,i){try{var a=e[o](i),s=a.value}catch(t){return void n(t)}return a.done?void t(s):Promise.resolve(s).then(function(t){r("next",t)},function(t){r("throw",t)})}("next")})}}!function(t){function e(e){for(var r,o,s=e[0],c=e[1],l=e[2],f=0,d=[];f<s.length;f++)o=s[f],i[o]&&d.push(i[o][0]),i[o]=0;for(r in c)Object.prototype.hasOwnProperty.call(c,r)&&(t[r]=c[r]);for(u&&u(e);d.length;)d.shift()();return a.push.apply(a,l||[]),n()}function n(){for(var t,e=0;e<a.length;e++){for(var n,o=a[e],s=!0,c=1;c<o.length;c++)n=o[c],0!==i[n]&&(s=!1);s&&(a.splice(e--,1),t=r(r.s=o[0]))}return t}function r(e){if(o[e])return o[e].exports;var n=o[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,r),n.l=!0,n.exports}var o={},i={1:0},a=[];r.m=t,r.c=o,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===(void 0===t?"undefined":_typeof(t))&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="";var s=window.webpackJsonp=window.webpackJsonp||[],c=s.push.bind(s);s.push=e,s=s.slice();for(var l=0;l<s.length;l++)e(s[l]);var u=c;a.push([16,3,4]),n()}([,,,,,function(t,e,n){function r(t){return t?t.toArray?t.toArray():t:[]}function o(){}var i=n(0),a=n(4).Connect,s=n(2).Store,c=n(3).EventDispatcher,l=n(30).Frontmatter;o.prototype.__isFetching={default:{status:!1,id:-1},name:"isFetching"},o.prototype.isFetching=function(){return this._isFetching},o.prototype.setIsFetching=function(t){return this._isFetching=t,this},o.prototype._isFetching={status:!1,id:-1},o.prototype.fetchTree=_asyncToGenerator(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a.fetchData(s.docs.path+"tree.json",!0);case 2:return t.abrupt("return",s.tree=t.sent);case 3:case"end":return t.stop()}},t,this)})),o.prototype.removeNumbering=function(t){return t.replace(/^\d+\.\s*/,"")},o.prototype.create=function(t,e){var n=this;if(void 0===e&&(e={}),(e=Object.assign({},{},t)).alias=t.title||n.removeNumbering(t.name),"directory"==t.type){n.isFetching().status=!1,e.children=[];for(var o,c=0,u=r(t.children),f=u.length;c<f;c++)"meta.json"!==(o=u[c]).name&&(o.alias=o.title||n.removeNumbering(o.name),e.children.push(o));e.children.sort(function(t,e){if(t.order&&e.order){if(t.order<e.order)return-1;if(t.order>e.order)return 1}return 0})}else"file"==t.type&&(e.content="",e.loading=!0,n.isFetching().status=!0,n.isFetching().id=Date.now(),a.async(_asyncToGenerator(regeneratorRuntime.mark(function e(){var r,o,c;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.isFetching().id,e.next=3,a.fetchData(t.path);case 3:if(o=e.sent,o=l(o),!n.isFetching().status||n.isFetching().id!=r){e.next=13;break}return c=t.index,s.boxes[c+1]&&c++,s.boxes[c].loading=!1,s.boxes[c].content=o.body,n.isFetching().status=!1,e.abrupt("return",i.commit());case 13:case 14:case"end":return e.stop()}},e,this)}))));return e},o.prototype.load=function(t,e,n){void 0===e&&(e=-1),void 0===n&&(n=!0);var r=this.create(Object.assign(t,{},{index:e}));return-1<e&&s.boxes.splice(e+1,s.boxes.length-e+1),s.boxes.push(r),s.node=t,n&&(c.trigger("boxloaded"),i.commit()),r},o.prototype.remove=function(t){return s.boxes.splice(t+1,s.boxes.length-t+1),s.node=s.boxes[s.boxes.length-1],c.trigger("boxremoved")},o.prototype.search=function(t){var e=null;return function n(o){if(null==e&&(o.id==t&&(e=o),o.children)){for(var i=[],a=0,s=r(o.children),c=s.length;a<c;a++)i.push(n(s[a]));return i}}(s.tree),e},o.prototype.open=function(t,e){void 0===e&&(e=!0);var n=this.search(t);if(n){var i=n.path;i=(i=i.split(s.docs.root))[1].split("/"),s.boxes=[];for(var l,u=s.tree,f=0,d=r(i),p=d.length;f<p;f++){l=d[f];var h=null;if(u.length)for(var g,y=0,m=r(u),v=m.length;y<v;y++)(g=m[y]).name==l&&(h=g);else u.name==l&&(h=u);null!==h&&o.load(h,f,!1),h.children&&(u=h.children)}a.timeout(0,function(){if(e&&c.trigger("boxloaded"),!e)return c.trigger("syncscroll")})}else c.trigger("boxnotfound")},o.prototype.searchByKeyword=function(t){var e=this;if(""===t||1>=t.length)return[];var n=function(t,e){return-1<t.toLowerCase().indexOf(e.toLowerCase())},o=[];return function i(a){if("meta.json"!==a.name&&(n(a.name,t)||a.title&&n(a.title,t)||a.description&&n(a.description,t))&&(a.alias=a.title||e.removeNumbering(a.name),o.push(a)),a.children){for(var s=[],c=0,l=r(a.children),u=l.length;c<u;c++)s.push(i(l[c]));return s}}(s.tree),o};var o=e.Box=new o},,,function(t,e,n){var r=n(0),o=(n(4).Connect,n(2).Store,n(34).SyncScroll),i=r.defineTag("Scroller",function(t){t.prototype.domScroll=function(){return this._domScroll},t.prototype.setDomScroll=function(t){return this._domScroll=t,this},t.prototype.syncedScroller=function(){return this._syncedScroller},t.prototype.setSyncedScroller=function(t){return this._syncedScroller=t,this},t.prototype.mount=_asyncToGenerator(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this._domScroll=this.dom(),t.next=3,this.reset();case 3:if(!this._domScroll||!this._syncedScroller){t.next=5;break}return t.abrupt("return",o());case 5:case 6:case"end":return t.stop()}},t,this)})),t.prototype.reset=function(){}});e.Scroller=i},function(t,e,n){var r=n(0),o=n(2).Store,i=r.defineTag("ItemBox",function(t){t.prototype.index=function(){return this._index},t.prototype.setIndex=function(t){return this._index=t,this},t.prototype.box=function(){return this._box},t.prototype.setBox=function(t){return this._box=t,this},t.prototype.isLast=function(){return this._index==o.boxes.length-1}});e.ItemBox=i},,,,,,,function(t,e,n){var r=n(0),o=r.createElement;n(27);var i=n(28).Router,a=n(5).Box,s=n(2).Store,c=n(3).EventDispatcher,l=n(31).Navbar,u=n(32).SearchPanel,f=n(33).TopScroller,d=n(35).Breadcrumb,p=n(36).Boxes,h=r.defineTag("Home",function(t){t.prototype.build=function(){var t=this;return c.once("boxnotfound",function(){return t.router().go("/",{reload:!1})}),c.once("boxloaded",function(){return t.router().go("/"+s.node.id,{reload:!1})}),c.once("boxremoved",function(){return t.router().go("/"+s.node.id,{reload:!1})})},t.prototype.load=_asyncToGenerator(regeneratorRuntime.mark(function t(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(0!=(e=this.router().history().state.reload)&&(e=!0),!e){t.next=16;break}if(s.tree){t.next=7;break}return t.next=7,a.fetchTree();case 7:if(!this.params().id){t.next=12;break}return t.abrupt("return",a.open(this.params().id));case 12:return t.abrupt("return",a.load(s.tree));case 13:t.next=19;break;case 16:if(s.node.id==this.params().id){t.next=18;break}return t.abrupt("return",a.open(this.params().id,!1));case 18:case 19:case 20:case"end":return t.stop()}},t,this)})),t.prototype.render=function(){var t=this.$;return this.$open(0).setChildren(t.$=t.$||[o(l,t,0,this),o(u,t,1,this),o(f,t,2,this),o(d,t,3,this),o(p,t,4,this)],2).synced((t[0].end(),t[1].end(),t[2].end(),t[3].end(),t[4].end(),!0))}}),g=r.defineTag("App",function(t){t.prototype.build=function(){return this.setRouter(new i({mode:"hash"}))},t.prototype.render=function(){var t=this.$;return this.$open(0).setChildren(t.$=t.$||[o(h,t,0,this).setRoute("/"),o(h,t,1,this).setRoute("/:id")],2).synced((t[0].end(),t[1].end(),!0))}});r.mount(o(g).end())},,,,,,,,,,,,,,,function(t,e,n){var r=n(0),o=r.createElement,i=n(3).EventDispatcher,a=r.defineTag("Navbar",function(t){t.prototype.openSearchPanel=function(){return i.trigger("searchpanelopened")},t.prototype.render=function(){var t=this.$;return this.$open(0).setChildren(t[0]||o("nav",t,0,this).flag("navbar").flag("is-info").setContent(t[1]||o("div",t,1,0).flag("navbar-brand").setContent([o("div",t,2,1).flag("navbar-item").flag("is-logo").setContent(t[3]||o("a",t,3,2).setHref("").setContent(t[4]||o("img",t,4,3).setNestedAttr("attr","alt","Bulma: a modern CSS framework based on Flexbox"),2),2),o("div",t,5,1).flag("navbar-item").setContent(t[6]||o("a",t,6,5).flag("button").flag("has-background-link").flag("has-text-white").on$(0,["tap","prevent","openSearchPanel"],this).setContent([o("span",t,7,6).flag("icon").setContent(t[8]||o("i",t,8,7).flag("icon-search").setNestedAttr("attr","aria-hiden","true"),2),o("span",t,9,6).flag("caption").setText("Quick Search")],2),2),o("div",t,10,1).flag("navbar-item").setContent(t[11]||o("a",t,11,10).flag("button").flag("has-background-info").flag("has-text-white").setTarget("_blank").setHref("https://github.com/rmdwirizki/powerdir").setContent([o("span",t,12,11).flag("icon").flag("m-r-10").setContent(t[13]||o("object",t,13,12).setType("image/svg+xml"),2),o("span",t,14,11).flag("caption").setText("Source on Github")],2),2)],2),2),2).synced((t[3].end((t[4].setSrc(this.asset("logo-inverted.png")).end(),!0)),t[8].end(),t[11].end((t[13].setData(this.asset("github.svg")).end(),!0)),!0))}});e.Navbar=a},function(t,e,n){var r=n(0),o=r.createTagList,i=r.createElement,a=n(3).EventDispatcher,s=n(5).Box,c=(n(2).Store,r.defineTag("SearchPanel",function(t){t.prototype.__keyword={default:"",name:"keyword"},t.prototype.keyword=function(){return this._keyword},t.prototype.setKeyword=function(t){return this._keyword=t,this},t.prototype._keyword="",t.prototype.__results={default:[],name:"results"},t.prototype.results=function(){return this._results},t.prototype.setResults=function(t){return this._results=t,this},t.prototype._results=[],t.prototype.__isOpen={default:!1,name:"isOpen"},t.prototype.isOpen=function(){return this._isOpen},t.prototype.setIsOpen=function(t){return this._isOpen=t,this},t.prototype._isOpen=!1,t.prototype.build=function(){var t=this;return a.on("searchpanelopened",function(){t._isOpen=!0;var e=t.dom().querySelector("input");return setTimeout(function(){return e.focus()},100)})},t.prototype.closeSearchPanel=function(){return this._isOpen=!1},t.prototype.search=function(){var t=this;return setTimeout(function(){return t._results=s.searchByKeyword(t._keyword),r.commit()},0)},t.prototype.routeTo=function(t){return window.matchMedia("(max-width: 400px)").matches&&this.closeSearchPanel(),this.router().go("/"+t,{reload:!1})},t.prototype.render=function(){var t=this.$,e=this;return e.$open(0).flag("has-background-white-ter").flagIf("is-closed",!e.isOpen()).setChildren(t.$=t.$||[i("nav",t,0,e).flag("is-link").flag("navbar").setContent(t[1]||i("div",t,1,0).flag("navbar-menu").setContent([i("div",t,2,1).flag("navbar-start").setContent(t[3]||i("div",t,3,2).flag("navbar-item").setContent(t[4]||i("input",t,4,3).flag("input").on$(0,["keydown","search"],e).on$(1,["paste","search"],e).setType("text").setPlaceholder("Search...").setNestedAttr("attr","spellcheck","false"),2),2),i("div",t,5,1).flag("navbar-end").setContent(t[6]||i("div",t,6,5).flag("navbar-item").setContent(t[7]||i("a",t,7,6).flag("button").flag("has-background-info").flag("has-text-white-bis").on$(0,["tap","prevent","closeSearchPanel"],e).setContent([i("span",t,8,7).flag("icon").setContent(t[9]||i("i",t,9,8).flag("icon-cancel-circled").setNestedAttr("attr","aria-hiden","true"),2),i("span",t,10,7).setText("Close")],2),2),2)],2),2),i("div",t,11,e).flag("search-results")],2).synced((t[4].bindData(e,"keyword",[]).end(),t[9].end(),t[11].setContent(function(t){for(var n,r,o=0,a=function(t){return t?t.toArray?t.toArray():t:[]}(e.results()),s=t.taglen=a.length;o<s;o++)r=a[o],(n=t[o]||(n=i("a",t,o)).setContent(n.$.A||i("div",n.$,"A",n).flag("card").setContent(n.$.B||i("div",n.$,"B","A").flag("card-content"),2),2)).on$(0,["tap","prevent",["routeTo",r.id]],e).end((n.$.A.flagIf("has-background-grey-lighter",r.id==e.router().hash().substring(2)).end((n.$.B.setContent([(n.$.C||i("p",n.$,"C","B").flag("title").flag("is-size-6").setContent([i("span",n.$,"D","C").flag("panel-icon").flag("is-size-6").flag("m-t-5"),i("span",n.$,"G","C")],2)).end((n.$.D.setContent("directory"==r.type?(n.$.E||i("i",n.$,"E","D").flag("icon-folder").setNestedAttr("attr","aria-hidden","true")).end():"file"==r.type?(n.$.F||i("i",n.$,"F","D").flag("icon-book").setNestedAttr("attr","aria-hidden","true")).end():void 0,3),n.$.G.setContent(r.alias,3),!0)),r.description?(n.$.H||i("p",n.$,"H","B").flag("subtitle").flag("is-size-7").flag("m-t-5")).setContent(r.description,3):void 0],1),!0)),!0));return t}(t[12]||o(t,12,t[11])),4),!0))}}));e.SearchPanel=c},function(t,e,n){var r=n(0),o=r.createElement,i=n(2).Store,a=n(8).Scroller,s=r.defineTag("TopScroller",a,function(t){t.prototype.mount=function(){return this._syncedScroller=document.querySelector(".Boxes.Scroller"),t.__super__.mount.apply(this,arguments)},t.prototype.render=function(){var t=this.$;return this.$open(0).flag("syncscroll").setNestedAttr("attr","name","box-scroller").setChildren(t[0]||o("div",t,0,this).flag("inner-scroller"),2).synced((t[0].css("width",i.scroller.width).end(),!0))}});e.TopScroller=s},,function(t,e,n){var r=n(0),o=r.createTagList,i=r.createElement,a=n(5).Box,s=n(4).Connect,c=n(2).Store,l=n(3).EventDispatcher,u=r.defineTag("Breadcrumb",function(t){t.prototype.offsetWidth=function(){return this._offsetWidth},t.prototype.setOffsetWidth=function(t){return this._offsetWidth=t,this},t.prototype.domScroll=function(){return this._domScroll},t.prototype.setDomScroll=function(t){return this._domScroll=t,this},t.prototype.build=function(){var t=this;return l.on("boxloaded",function(){return t.updateScrollOffset()}),l.on("boxremoved",function(){return t.updateScrollOffset()})},t.prototype.mount=function(){return this._domScroll=this.querySelector(".breadcrumb").dom()},t.prototype.updateScrollOffset=_asyncToGenerator(regeneratorRuntime.mark(function t(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=this,t.next=3,s.timeout(100,function(){return e._offsetWidth=e._domScroll.offsetWidth});case 3:return t.abrupt("return",s.timeout(100,function(){return e._domScroll.scrollLeft=e._domScroll.scrollWidth-e._offsetWidth}));case 4:case"end":return t.stop()}},t,this)})),t.prototype.setActive=function(t){return a.remove(t)},t.prototype.render=function(){var t=this.$,e=this;return this.$open(0).setChildren(t[0]||i("nav",t,0,this).flag("breadcrumb").setNestedAttr("attr","aria-label","breadcrumbs").setContent(t[1]||i("ul",t,1,0),2),2).synced((t[0].end((t[1].setContent(function(t){for(var n,r,o=0,a=function(t){return t?t.toArray?t.toArray():t:[]}(c.boxes),s=t.taglen=a.length;o<s;o++)r=a[o],(n=t[o]||(n=i("li",t,o)).setContent(n.$.A||i("a",n.$,"A",n),2)).end((n.$.A.on$(0,["tap",["setActive",o]],e).setContent(["directory"==r.type?(n.$.B||i("i",n.$,"B","A").flag("icon-folder").flag("m-r-5").setNestedAttr("attr","aria-hidden","true")).end():"file"==r.type?(n.$.C||i("i",n.$,"C","A").flag("icon-book").flag("m-r-5").setNestedAttr("attr","aria-hidden","true")).end():void 0,r.alias],1),!0));return t}(t[2]||o(t,2,t[1])),4),!0)),!0))}});e.Breadcrumb=u},function(t,e,n){var r=n(0),o=(r.createTagList,r.createTagMap),i=r.createTagLoopResult,a=r.createElement,s=n(4).Connect,c=n(2).Store,l=n(3).EventDispatcher,u=n(37).HorizontalScroll,f=n(8).Scroller,d=n(38).ListItemBox,p=n(39).ReadItemBox,h=r.defineTag("Boxes",f,function(t){t.prototype.offsetWidth=function(){return this._offsetWidth},t.prototype.setOffsetWidth=function(t){return this._offsetWidth=t,this},t.prototype.build=function(){var t=this;return l.on("boxloaded",function(){return t.onboxloaded()}),l.on("boxremoved",function(){return t.onboxremoved()}),l.on("syncscroll",function(){return t.sync()})},t.prototype.mount=function(){return this._syncedScroller=document.querySelector(".TopScroller.Scroller"),t.__super__.mount.apply(this,arguments),u(this._domScroll)},t.prototype.sync=_asyncToGenerator(regeneratorRuntime.mark(function t(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=this,t.next=3,s.timeout(100,function(){return e._offsetWidth=e._domScroll.offsetWidth});case 3:return c.scroller.width=e._domScroll.scrollWidth,r.commit(),t.abrupt("return",s.timeout(100,function(){var t=e._domScroll.scrollWidth-e._offsetWidth;return e._domScroll.scrollLeft=t,e._syncedScroller.scrollLeft=t}));case 6:case"end":return t.stop()}},t,this)})),t.prototype.onboxloaded=function(){return this.sync()},t.prototype.onboxremoved=function(){return this.sync()},t.prototype.render=function(){var t=this.$;return this.$open(0).flag("container").flag("syncscroll").setNestedAttr("attr","name","box-scroller").setChildren(t[0]||a("div",t,0,this).flag("boxes").flag("is-flex"),2).synced((t[0].setContent(function(t,e,n){for(var r,o=0,i=function(t){return t?t.toArray?t.toArray():t:[]}(c.boxes),s=i.length;o<s;o++)"directory"==(r=i[o]).type?n.push((t[o]||a(d,t,o)).setBox(r).setIndex(o).end()):"file"==r.type&&n.push((e[o]||a(p,e,o)).setBox(r).setIndex(o).end());return n}(t[1]||o(t,1,t[0]),t[2]||o(t,2,t[0]),i()),5),!0))}});e.Boxes=h},,function(t,e,n){function r(t){return t?t.toArray?t.toArray():t:[]}var o=n(0),i=o.createTagList,a=o.createElement,s=n(5).Box,c=n(2).Store,l=n(9).ItemBox,u=o.defineTag("ListItemBox",l,function(t){t.prototype.__filter={default:"",name:"filter"},t.prototype.filter=function(){return this._filter},t.prototype.setFilter=function(t){return this._filter=t,this},t.prototype._filter="",t.prototype.generate=function(t,e){if(!this.isActive(t))return s.load(t,e)},t.prototype.isActive=function(t){if(c.boxes.length>this.index()+1)return t.name==c.boxes[this.index()+1].name},t.prototype.hasDescription=function(t){return!!t.description},t.prototype.clearFilter=function(){return this._filter="",this.filterList()},t.prototype.filterList=function(t){var e=this,n=function(t,e){return-1<t.toLowerCase().indexOf(e.toLowerCase())};return setTimeout(function(){for(var i,a=0,s=r(e.box().children),c=s.length;a<c;a++)(i=s[a]).hide=!n(i.name,t?t.target().value():e._filter),i.alias&&i.hide&&(i.hide=!n(i.alias,t.target().value())),i.description&&i.hide&&(i.hide=!n(i.description,t.target().value()));return o.commit()},0)},t.prototype.render=function(){var t=this.$,e=this;return e.$open(0).setChildren(t.$=t.$||[a("nav",t,0,e).flag("panel").flag("m-b-0"),a("div",t,10,e).flag("panel-container")],2).synced((t[0].setContent([(t[1]||a("p",t,1,0).flag("panel-heading")).flagIf("has-background-info",e.isLast()).flagIf("has-text-white",e.isLast()).setContent([t[2]||a("i",t,2,1).flag("icon-folder").setNestedAttr("attr","aria-hidden","true")," "+e.box().alias],1).end((t[2].end(),!0)),(t[3]||a("div",t,3,0).flag("panel-block").setContent(t[4]||a("p",t,4,3).flag("control").flag("has-icons-left").setContent([a("input",t,5,4).flag("input").flag("is-small").on$(0,["keydown","filterList"],e).on$(1,["paste","filterList"],e).setType("text").setPlaceholder("Filter"),a("span",t,6,4).flag("icon").flag("is-small").flag("is-left").setContent(t[7]||a("i",t,7,6).flag("icon-search").setNestedAttr("attr","aria-hiden","true"),2)],2),2)).flagIf("has-background-grey-lighter",""!==e.filter()).end((t[5].bindData(e,"filter",[]).end(),t[7].end(),!0)),""===e.filter()?void 0:(t[8]||a("div",t,8,0).flag("panel-block").flag("has-background-light").flag("is-size-7").css("justify-content","center").setContent(t[9]||a("a",t,9,8).flag("has-text-grey").on$(0,["tap","clearFilter"],e).setText("Clear Filter"),2)).end()],1),t[10].setContent(function(t){for(var n,o,i=0,s=r(e.box().children),c=t.taglen=s.length;i<c;i++)o=s[i],(n=t[i]||(n=a("a",t,i)).flag("panel-block")).flagIf("is-hidden",o.hide).flagIf("has-description",e.hasDescription(o)).flagIf("is-active",e.isActive(o)).on$(0,["tap",["generate",o,e.index()]],e).setContent([(n.$.A||a("span",n.$,"A",n).flag("panel-icon")).setContent("directory"==o.type?(n.$.B||a("i",n.$,"B","A").flag("icon-folder").setNestedAttr("attr","aria-hidden","true")).end():"file"==o.type?(n.$.C||a("i",n.$,"C","A").flag("icon-book").setNestedAttr("attr","aria-hidden","true")).end():void 0,3),(n.$.D||a("span",n.$,"D",n)).setContent(o.alias,3),o.description?(n.$.E||a("div",n.$,"E",n).setContent(n.$.F||a("small",n.$,"F","E"),2)).end((n.$.F.setContent(o.description,3),!0)):void 0],1);return t}(t[11]||i(t,11,t[10])),4),!0))}});e.ListItemBox=u},function(t,e,n){var r=n(0),o=r.createElement,i=n(9).ItemBox,a=n(40).Marked,s=r.defineTag("ReadItemBox",i,function(t){t.prototype.render=function(){var t=this.$;return this.$open(0).setChildren(t[0]||o("nav",t,0,this).flag("panel").flag("m-b-0").setContent([o("p",t,1,0).flag("panel-heading"),o("div",t,3,0).flag("panel-block").setContent([o("object",t,4,3).setType("image/svg+xml"),o("div",t,5,3).flag("content")],2)],2),2).synced((t[1].flagIf("has-background-info",this.isLast()).flagIf("has-text-white",this.isLast()).setContent([t[2]||o("i",t,2,1).flag("icon-book").setNestedAttr("attr","aria-hidden","true")," "+this.box().alias],1).end((t[2].end(),!0)),t[3].flagIf("is-loading",this.box().loading).end((t[4].flagIf("is-hidden",!this.box().loading).setData(this.asset("loader.svg")).end(),t[5].flagIf("is-hidden",this.box().loading).setHtml(a(this.box().content)).end(),!0)),!0))}});e.ReadItemBox=s}]);