function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}var labelType,useGradients,nativeTextSupport,animate,icicle;function icicle_init(e){controls(),(icicle=new $jit.Icicle({injectInto:"infovis",animate:animate,offset:1,cushion:!1,constrained:!0,levelsToShow:3,Tips:{enable:!0,type:"Native",offsetX:20,offsetY:20,onShow:function(e,t){var i=0;t.eachSubnode((function(){i++})),prettyPath=t.id.substring(5).replace(/:/g,"/"),prettyPath=prettyPath.replace(/\^/g," <b>Size:</b> "),prettyPath=prettyPath.replace(/~/g," "),e.innerHTML='<div class="tip-title"><b>Path:</b> '+prettyPath+'</div><div class="tip-text">'+i+" subdirectories</div>"}},Events:{enable:!0,onMouseEnter:function(e){e.setData("border","#33dddd"),icicle.fx.plotNode(e,icicle.canvas),icicle.labels.plotLabel(icicle.canvas,e,icicle.controller)},onMouseLeave:function(e){e.removeData("border"),icicle.fx.plot()},onClick:function(e){e&&(icicle.tips.hide(),icicle.events.hoveredNode&&this.onMouseLeave(icicle.events.hoveredNode),icicle.enter(e))},onRightClick:function(){icicle.tips.hide(),icicle.events.hoveredNode&&this.onMouseLeave(icicle.events.hoveredNode),icicle.out()}},Label:{type:labelType},onCreateLabel:function(e,t){e.innerHTML=t.name;var i=e.style;i.fontSize="0.9em",i.display="",i.cursor="pointer",i.color="#333",i.overflow="hidden"},onPlaceLabel:function(e,t){var i=e.style,n=t.getData("width"),o=t.getData("height");n<7||o<7?i.display="none":(i.display="",i.width=n+"px",i.height=o+"px")}})).loadJSON(jQuery.parseJSON(e)),icicle.refresh()}function controls(){var e=$jit,t=e.id("update");e.util.addEvent(t,"click",(function(){icicle.out()}));var i=e.id("s-orientation");e.util.addEvent(i,"change",(function(){icicle.layout.orientation=i[i.selectedIndex].value,icicle.refresh()}));var n=e.id("i-levels-to-show");e.util.addEvent(n,"change",(function(){var e=n.selectedIndex;0==e?icicle.config.constrained=!1:(icicle.config.constrained=!0,icicle.config.levelsToShow=e),icicle.refresh()}))}function strrchr(e,t){return"string"!=typeof t&&(t=String.fromCharCode(parseInt(t,10))),t=t.charAt(0),pos=e.lastIndexOf(t),-1!==pos&&e.substr(pos)}!function(){var e=navigator.userAgent,t=e.match(/iPhone/i)||e.match(/iPad/i),i="undefined"==typeof HTMLCanvasElement?"undefined":_typeof(HTMLCanvasElement),n="object"==i||"function"==i,o=n&&"function"==typeof document.createElement("canvas").getContext("2d").fillText;nativeTextSupport="Native"==(labelType=!n||o&&!t?"Native":"HTML"),useGradients=n,animate=!(t||!n)}();
