text: /*
  YUI 3.12.0 (build 8655935)
  Copyright 2013 Yahoo! Inc. All rights reserved.
  Licensed under the BSD License.
  http://yuilibrary.com/license/
  */
  
  if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
  if (!__coverage__['build/tabview-base/tabview-base.js']) {
     __coverage__['build/tabview-base/tabview-base.js'] = {"path":"build/tabview-base/tabview-base.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":24},"end":{"line":1,"column":43}}},"2":{"name":"(anonymous_2)","line":11,"loc":{"start":{"line":11,"column":18},"end":{"line":11,"column":29}}},"3":{"name":"(anonymous_3)","line":38,"loc":{"start":{"line":38,"column":10},"end":{"line":38,"column":27}}},"4":{"name":"(anonymous_4)","line":45,"loc":{"start":{"line":45,"column":20},"end":{"line":45,"column":36}}},"5":{"name":"(anonymous_5)","line":48,"loc":{"start":{"line":48,"column":46},"end":{"line":48,"column":68}}},"6":{"name":"(anonymous_6)","line":66,"loc":{"start":{"line":66,"column":13},"end":{"line":66,"column":29}}},"7":{"name":"(anonymous_7)","line":92,"loc":{"start":{"line":92,"column":15},"end":{"line":92,"column":26}}},"8":{"name":"(anonymous_8)","line":103,"loc":{"start":{"line":103,"column":21},"end":{"line":103,"column":32}}},"9":{"name":"(anonymous_9)","line":104,"loc":{"start":{"line":104,"column":82},"end":{"line":104,"column":97}}},"10":{"name":"(anonymous_10)","line":112,"loc":{"start":{"line":112,"column":13},"end":{"line":112,"column":24}}},"11":{"name":"(anonymous_11)","line":121,"loc":{"start":{"line":121,"column":16},"end":{"line":121,"column":27}}},"12":{"name":"(anonymous_12)","line":131,"loc":{"start":{"line":131,"column":16},"end":{"line":131,"column":28}}},"13":{"name":"(anonymous_13)","line":136,"loc":{"start":{"line":136,"column":13},"end":{"line":136,"column":24}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":144,"column":72}},"2":{"start":{"line":3,"column":0},"end":{"line":13,"column":6}},"3":{"start":{"line":12,"column":8},"end":{"line":12,"column":41}},"4":{"start":{"line":15,"column":0},"end":{"line":15,"column":33}},"5":{"start":{"line":16,"column":0},"end":{"line":25,"column":2}},"6":{"start":{"line":26,"column":0},"end":{"line":35,"column":2}},"7":{"start":{"line":37,"column":0},"end":{"line":139,"column":3}},"8":{"start":{"line":39,"column":8},"end":{"line":39,"column":37}},"9":{"start":{"line":40,"column":8},"end":{"line":40,"column":55}},"10":{"start":{"line":42,"column":8},"end":{"line":42,"column":23}},"11":{"start":{"line":46,"column":8},"end":{"line":46,"column":52}},"12":{"start":{"line":48,"column":8},"end":{"line":61,"column":23}},"13":{"start":{"line":50,"column":12},"end":{"line":60,"column":13}},"14":{"start":{"line":51,"column":16},"end":{"line":51,"column":45}},"15":{"start":{"line":53,"column":16},"end":{"line":55,"column":17}},"16":{"start":{"line":54,"column":20},"end":{"line":54,"column":48}},"17":{"start":{"line":57,"column":16},"end":{"line":59,"column":17}},"18":{"start":{"line":58,"column":20},"end":{"line":58,"column":55}},"19":{"start":{"line":63,"column":8},"end":{"line":63,"column":49}},"20":{"start":{"line":67,"column":8},"end":{"line":73,"column":65}},"21":{"start":{"line":75,"column":8},"end":{"line":77,"column":9}},"22":{"start":{"line":76,"column":12},"end":{"line":76,"column":57}},"23":{"start":{"line":79,"column":8},"end":{"line":81,"column":9}},"24":{"start":{"line":80,"column":12},"end":{"line":80,"column":62}},"25":{"start":{"line":83,"column":8},"end":{"line":85,"column":9}},"26":{"start":{"line":84,"column":12},"end":{"line":84,"column":54}},"27":{"start":{"line":87,"column":8},"end":{"line":89,"column":9}},"28":{"start":{"line":88,"column":12},"end":{"line":88,"column":59}},"29":{"start":{"line":93,"column":8},"end":{"line":97,"column":67}},"30":{"start":{"line":99,"column":8},"end":{"line":99,"column":34}},"31":{"start":{"line":104,"column":8},"end":{"line":108,"column":11}},"32":{"start":{"line":105,"column":12},"end":{"line":107,"column":13}},"33":{"start":{"line":106,"column":16},"end":{"line":106,"column":30}},"34":{"start":{"line":113,"column":8},"end":{"line":113,"column":31}},"35":{"start":{"line":114,"column":8},"end":{"line":114,"column":30}},"36":{"start":{"line":115,"column":8},"end":{"line":115,"column":25}},"37":{"start":{"line":116,"column":8},"end":{"line":116,"column":26}},"38":{"start":{"line":124,"column":8},"end":{"line":128,"column":10}},"39":{"start":{"line":132,"column":8},"end":{"line":132,"column":27}},"40":{"start":{"line":133,"column":8},"end":{"line":133,"column":90}},"41":{"start":{"line":137,"column":8},"end":{"line":137,"column":45}},"42":{"start":{"line":141,"column":0},"end":{"line":141,"column":28}}},"branchMap":{"1":{"line":39,"type":"binary-expr","locations":[{"start":{"line":39,"column":17},"end":{"line":39,"column":23}},{"start":{"line":39,"column":27},"end":{"line":39,"column":36}}]},"2":{"line":40,"type":"binary-expr","locations":[{"start":{"line":40,"column":21},"end":{"line":40,"column":32}},{"start":{"line":40,"column":36},"end":{"line":40,"column":54}}]},"3":{"line":50,"type":"if","locations":[{"start":{"line":50,"column":12},"end":{"line":50,"column":12}},{"start":{"line":50,"column":12},"end":{"line":50,"column":12}}]},"4":{"line":53,"type":"if","locations":[{"start":{"line":53,"column":16},"end":{"line":53,"column":16}},{"start":{"line":53,"column":16},"end":{"line":53,"column":16}}]},"5":{"line":57,"type":"if","locations":[{"start":{"line":57,"column":16},"end":{"line":57,"column":16}},{"start":{"line":57,"column":16},"end":{"line":57,"column":16}}]},"6":{"line":75,"type":"if","locations":[{"start":{"line":75,"column":8},"end":{"line":75,"column":8}},{"start":{"line":75,"column":8},"end":{"line":75,"column":8}}]},"7":{"line":79,"type":"if","locations":[{"start":{"line":79,"column":8},"end":{"line":79,"column":8}},{"start":{"line":79,"column":8},"end":{"line":79,"column":8}}]},"8":{"line":83,"type":"if","locations":[{"start":{"line":83,"column":8},"end":{"line":83,"column":8}},{"start":{"line":83,"column":8},"end":{"line":83,"column":8}}]},"9":{"line":87,"type":"if","locations":[{"start":{"line":87,"column":8},"end":{"line":87,"column":8}},{"start":{"line":87,"column":8},"end":{"line":87,"column":8}}]},"10":{"line":96,"type":"cond-expr","locations":[{"start":{"line":97,"column":20},"end":{"line":97,"column":62}},{"start":{"line":97,"column":65},"end":{"line":97,"column":66}}]},"11":{"line":105,"type":"if","locations":[{"start":{"line":105,"column":12},"end":{"line":105,"column":12}},{"start":{"line":105,"column":12},"end":{"line":105,"column":12}}]}},"code":["(function () { YUI.add('tabview-base', function (Y, NAME) {","","var getClassName = Y.ClassNameManager.getClassName,","    TABVIEW = 'tabview',","    TAB = 'tab',","    PANEL = 'panel',","    SELECTED = 'selected',","    EMPTY_OBJ = {},","    DOT = '.',","","    TabviewBase = function() {","        this.init.apply(this, arguments);","    };","","TabviewBase.NAME = 'tabviewBase';","TabviewBase._classNames = {","    tabview: getClassName(TABVIEW),","    tabviewPanel: getClassName(TABVIEW, PANEL),","    tabviewList: getClassName(TABVIEW, 'list'),","    tab: getClassName(TAB),","    tabLabel: getClassName(TAB, 'label'),","    tabPanel: getClassName(TAB, PANEL),","    selectedTab: getClassName(TAB, SELECTED),","    selectedPanel: getClassName(TAB, PANEL, SELECTED)","};","TabviewBase._queries = {","    tabview: DOT + TabviewBase._classNames.tabview,","    tabviewList: '> ul',","    tab: '> ul > li',","    tabLabel: '> ul > li > a',","    tabviewPanel: '> div',","    tabPanel: '> div > div',","    selectedTab: '> ul > ' + DOT + TabviewBase._classNames.selectedTab,","    selectedPanel: '> div ' + DOT + TabviewBase._classNames.selectedPanel","};","","Y.mix(TabviewBase.prototype, {","    init: function(config) {","        config = config || EMPTY_OBJ;","        this._node = config.host || Y.one(config.node);","","        this.refresh();","    },","","    initClassNames: function(index) {","        var _classNames = Y.TabviewBase._classNames;","","        Y.Object.each(Y.TabviewBase._queries, function(query, name) {","            // this === tabview._node","            if (_classNames[name]) {","                var result = this.all(query);","","                if (index !== undefined) {","                    result = result.item(index);","                }","","                if (result) {","                    result.addClass(_classNames[name]);","                }","            }","        }, this._node);","","        this._node.addClass(_classNames.tabview);","    },","","    _select: function(index) {","        var _classNames = Y.TabviewBase._classNames,","            _queries = Y.TabviewBase._queries,","            node = this._node,","            oldItem = node.one(_queries.selectedTab),","            oldContent = node.one(_queries.selectedPanel),","            newItem = node.all(_queries.tab).item(index),","            newContent = node.all(_queries.tabPanel).item(index);","","        if (oldItem) {","            oldItem.removeClass(_classNames.selectedTab);","        }","","        if (oldContent) {","            oldContent.removeClass(_classNames.selectedPanel);","        }","","        if (newItem) {","            newItem.addClass(_classNames.selectedTab);","        }","","        if (newContent) {","            newContent.addClass(_classNames.selectedPanel);","        }","    },","","    initState: function() {","        var _queries = Y.TabviewBase._queries,","            node = this._node,","            activeNode = node.one(_queries.selectedTab),","            activeIndex = activeNode ?","                    node.all(_queries.tab).indexOf(activeNode) : 0;","","        this._select(activeIndex);","    },","","    // collapse extra space between list-items","    _scrubTextNodes: function() {","        this._node.one(Y.TabviewBase._queries.tabviewList).get('childNodes').each(function(node) {","            if (node.get('nodeType') === 3) { // text node","                node.remove();","            }","        });","    },","","    // base renderer only enlivens existing markup","    refresh: function() {","        this._scrubTextNodes();","        this.initClassNames();","        this.initState();","        this.initEvents();","    },","","    tabEventName: 'click',","","    initEvents: function() {","        // TODO: detach prefix for delegate?","        // this._node.delegate('tabview|' + this.tabEventName),","        this._node.delegate(this.tabEventName,","            this.onTabEvent,","            Y.TabviewBase._queries.tab,","            this","        );","    },","","    onTabEvent: function(e) {","        e.preventDefault();","        this._select(this._node.all(Y.TabviewBase._queries.tab).indexOf(e.currentTarget));","    },","","    destroy: function() {","        this._node.detach(this.tabEventName);","    }","});","","Y.TabviewBase = TabviewBase;","","","}, '3.12.0', {\"requires\": [\"node-event-delegate\", \"classnamemanager\"]});","","}());"]};
  }
  var __cov_dlpEYNgH$_x24F0fhVKX$A = __coverage__['build/tabview-base/tabview-base.js'];
  __cov_dlpEYNgH$_x24F0fhVKX$A.s['1']++;YUI.add('tabview-base',function(Y,NAME){__cov_dlpEYNgH$_x24F0fhVKX$A.f['1']++;__cov_dlpEYNgH$_x24F0fhVKX$A.s['2']++;var getClassName=Y.ClassNameManager.getClassName,TABVIEW='tabview',TAB='tab',PANEL='panel',SELECTED='selected',EMPTY_OBJ={},DOT='.',TabviewBase=function(){__cov_dlpEYNgH$_x24F0fhVKX$A.f['2']++;__cov_dlpEYNgH$_x24F0fhVKX$A.s['3']++;this.init.apply(this,arguments);};__cov_dlpEYNgH$_x24F0fhVKX$A.s['4']++;TabviewBase.NAME='tabviewBase';__cov_dlpEYNgH$_x24F0fhVKX$A.s['5']++;TabviewBase._classNames={tabview:getClassName(TABVIEW),tabviewPanel:getClassName(TABVIEW,PANEL),tabviewList:getClassName(TABVIEW,'list'),tab:getClassName(TAB),tabLabel:getClassName(TAB,'label'),tabPanel:getClassName(TAB,PANEL),selectedTab:getClassName(TAB,SELECTED),selectedPanel:getClassName(TAB,PANEL,SELECTED)};__cov_dlpEYNgH$_x24F0fhVKX$A.s['6']++;TabviewBase._queries={tabview:DOT+TabviewBase._classNames.tabview,tabviewList:'> ul',tab:'> ul > li',tabLabel:'> ul > li > a',tabviewPanel:'> div',tabPanel:'> div > div',selectedTab:'> ul > '+DOT+TabviewBase._classNames.selectedTab,selectedPanel:'> div '+DOT+TabviewBase._classNames.selectedPanel};__cov_dlpEYNgH$_x24F0fhVKX$A.s['7']++;Y.mix(TabviewBase.prototype,{init:function(config){__cov_dlpEYNgH$_x24F0fhVKX$A.f['3']++;__cov_dlpEYNgH$_x24F0fhVKX$A.s['8']++;config=(__cov_dlpEYNgH$_x24F0fhVKX$A.b['1'][0]++,config)||(__cov_dlpEYNgH$_x24F0fhVKX$A.b['1'][1]++,EMPTY_OBJ);__cov_dlpEYNgH$_x24F0fhVKX$A.s['9']++;this._node=(__cov_dlpEYNgH$_x24F0fhVKX$A.b['2'][0]++,config.host)||(__cov_dlpEYNgH$_x24F0fhVKX$A.b['2'][1]++,Y.one(config.node));__cov_dlpEYNgH$_x24F0fhVKX$A.s['10']++;this.refresh();},initClassNames:function(index){__cov_dlpEYNgH$_x24F0fhVKX$A.f['4']++;__cov_dlpEYNgH$_x24F0fhVKX$A.s['11']++;var _classNames=Y.TabviewBase._classNames;__cov_dlpEYNgH$_x24F0fhVKX$A.s['12']++;Y.Object.each(Y.TabviewBase._queries,function(query,name){__cov_dlpEYNgH$_x24F0fhVKX$A.f['5']++;__cov_dlpEYNgH$_x24F0fhVKX$A.s['13']++;if(_classNames[name]){__cov_dlpEYNgH$_x24F0fhVKX$A.b['3'][0]++;__cov_dlpEYNgH$_x24F0fhVKX$A.s['14']++;var result=this.all(query);__cov_dlpEYNgH$_x24F0fhVKX$A.s['15']++;if(index!==undefined){__cov_dlpEYNgH$_x24F0fhVKX$A.b['4'][0]++;__cov_dlpEYNgH$_x24F0fhVKX$A.s['16']++;result=result.item(index);}else{__cov_dlpEYNgH$_x24F0fhVKX$A.b['4'][1]++;}__cov_dlpEYNgH$_x24F0fhVKX$A.s['17']++;if(result){__cov_dlpEYNgH$_x24F0fhVKX$A.b['5'][0]++;__cov_dlpEYNgH$_x24F0fhVKX$A.s['18']++;result.addClass(_classNames[name]);}else{__cov_dlpEYNgH$_x24F0fhVKX$A.b['5'][1]++;}}else{__cov_dlpEYNgH$_x24F0fhVKX$A.b['3'][1]++;}},this._node);__cov_dlpEYNgH$_x24F0fhVKX$A.s['19']++;this._node.addClass(_classNames.tabview);},_select:function(index){__cov_dlpEYNgH$_x24F0fhVKX$A.f['6']++;__cov_dlpEYNgH$_x24F0fhVKX$A.s['20']++;var _classNames=Y.TabviewBase._classNames,_queries=Y.TabviewBase._queries,node=this._node,oldItem=node.one(_queries.selectedTab),oldContent=node.one(_queries.selectedPanel),newItem=node.all(_queries.tab).item(index),newContent=node.all(_queries.tabPanel).item(index);__cov_dlpEYNgH$_x24F0fhVKX$A.s['21']++;if(oldItem){__cov_dlpEYNgH$_x24F0fhVKX$A.b['6'][0]++;__cov_dlpEYNgH$_x24F0fhVKX$A.s['22']++;oldItem.removeClass(_classNames.selectedTab);}else{__cov_dlpEYNgH$_x24F0fhVKX$A.b['6'][1]++;}__cov_dlpEYNgH$_x24F0fhVKX$A.s['23']++;if(oldContent){__cov_dlpEYNgH$_x24F0fhVKX$A.b['7'][0]++;__cov_dlpEYNgH$_x24F0fhVKX$A.s['24']++;oldContent.removeClass(_classNames.selectedPanel);}else{__cov_dlpEYNgH$_x24F0fhVKX$A.b['7'][1]++;}__cov_dlpEYNgH$_x24F0fhVKX$A.s['25']++;if(newItem){__cov_dlpEYNgH$_x24F0fhVKX$A.b['8'][0]++;__cov_dlpEYNgH$_x24F0fhVKX$A.s['26']++;newItem.addClass(_classNames.selectedTab);}else{__cov_dlpEYNgH$_x24F0fhVKX$A.b['8'][1]++;}__cov_dlpEYNgH$_x24F0fhVKX$A.s['27']++;if(newContent){__cov_dlpEYNgH$_x24F0fhVKX$A.b['9'][0]++;__cov_dlpEYNgH$_x24F0fhVKX$A.s['28']++;newContent.addClass(_classNames.selectedPanel);}else{__cov_dlpEYNgH$_x24F0fhVKX$A.b['9'][1]++;}},initState:function(){__cov_dlpEYNgH$_x24F0fhVKX$A.f['7']++;__cov_dlpEYNgH$_x24F0fhVKX$A.s['29']++;var _queries=Y.TabviewBase._queries,node=this._node,activeNode=node.one(_queries.selectedTab),activeIndex=activeNode?(__cov_dlpEYNgH$_x24F0fhVKX$A.b['10'][0]++,node.all(_queries.tab).indexOf(activeNode)):(__cov_dlpEYNgH$_x24F0fhVKX$A.b['10'][1]++,0);__cov_dlpEYNgH$_x24F0fhVKX$A.s['30']++;this._select(activeIndex);},_scrubTextNodes:function(){__cov_dlpEYNgH$_x24F0fhVKX$A.f['8']++;__cov_dlpEYNgH$_x24F0fhVKX$A.s['31']++;this._node.one(Y.TabviewBase._queries.tabviewList).get('childNodes').each(function(node){__cov_dlpEYNgH$_x24F0fhVKX$A.f['9']++;__cov_dlpEYNgH$_x24F0fhVKX$A.s['32']++;if(node.get('nodeType')===3){__cov_dlpEYNgH$_x24F0fhVKX$A.b['11'][0]++;__cov_dlpEYNgH$_x24F0fhVKX$A.s['33']++;node.remove();}else{__cov_dlpEYNgH$_x24F0fhVKX$A.b['11'][1]++;}});},refresh:function(){__cov_dlpEYNgH$_x24F0fhVKX$A.f['10']++;__cov_dlpEYNgH$_x24F0fhVKX$A.s['34']++;this._scrubTextNodes();__cov_dlpEYNgH$_x24F0fhVKX$A.s['35']++;this.initClassNames();__cov_dlpEYNgH$_x24F0fhVKX$A.s['36']++;this.initState();__cov_dlpEYNgH$_x24F0fhVKX$A.s['37']++;this.initEvents();},tabEventName:'click',initEvents:function(){__cov_dlpEYNgH$_x24F0fhVKX$A.f['11']++;__cov_dlpEYNgH$_x24F0fhVKX$A.s['38']++;this._node.delegate(this.tabEventName,this.onTabEvent,Y.TabviewBase._queries.tab,this);},onTabEvent:function(e){__cov_dlpEYNgH$_x24F0fhVKX$A.f['12']++;__cov_dlpEYNgH$_x24F0fhVKX$A.s['39']++;e.preventDefault();__cov_dlpEYNgH$_x24F0fhVKX$A.s['40']++;this._select(this._node.all(Y.TabviewBase._queries.tab).indexOf(e.currentTarget));},destroy:function(){__cov_dlpEYNgH$_x24F0fhVKX$A.f['13']++;__cov_dlpEYNgH$_x24F0fhVKX$A.s['41']++;this._node.detach(this.tabEventName);}});__cov_dlpEYNgH$_x24F0fhVKX$A.s['42']++;Y.TabviewBase=TabviewBase;},'3.12.0',{'requires':['node-event-delegate','classnamemanager']});
  