~michael.nelson/ubuntu-webcatalog/1267731-import-sca-apps-error

« back to all changes in this revision

Viewing changes to src/webcatalog/static/yui/3.10.3/build/tree/tree-coverage.js

  • Committer: Tarmac
  • Author(s): Stephen Stewart
  • Date: 2013-06-26 09:19:32 UTC
  • mfrom: (184.1.4 ubuntu-global-nav)
  • Revision ID: tarmac-20130626091932-8urtuli368k8p7ds
[r=beuno,jonas-drange] add ubuntu global nav to apps.ubuntu.com

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
YUI 3.10.3 (build 2fb5187)
 
3
Copyright 2013 Yahoo! Inc. All rights reserved.
 
4
Licensed under the BSD License.
 
5
http://yuilibrary.com/license/
 
6
*/
 
7
 
 
8
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
 
9
if (!__coverage__['build/tree/tree.js']) {
 
10
   __coverage__['build/tree/tree.js'] = {"path":"build/tree/tree.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,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":0,"116":0,"117":0,"118":0,"119":0,"120":0,"121":0,"122":0,"123":0,"124":0,"125":0,"126":0,"127":0,"128":0,"129":0,"130":0,"131":0,"132":0,"133":0,"134":0,"135":0,"136":0,"137":0,"138":0,"139":0,"140":0,"141":0,"142":0,"143":0,"144":0,"145":0,"146":0,"147":0,"148":0,"149":0,"150":0,"151":0,"152":0,"153":0,"154":0,"155":0,"156":0,"157":0,"158":0,"159":0,"160":0,"161":0,"162":0,"163":0,"164":0,"165":0,"166":0,"167":0,"168":0,"169":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],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0],"28":[0,0],"29":[0,0],"30":[0,0],"31":[0,0],"32":[0,0],"33":[0,0],"34":[0,0],"35":[0,0],"36":[0,0],"37":[0,0],"38":[0,0],"39":[0,0],"40":[0,0],"41":[0,0],"42":[0,0,0],"43":[0,0],"44":[0,0],"45":[0,0],"46":[0,0],"47":[0,0],"48":[0,0],"49":[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,"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},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":16},"end":{"line":1,"column":35}}},"2":{"name":"(anonymous_2)","line":162,"loc":{"start":{"line":162,"column":17},"end":{"line":162,"column":35}}},"3":{"name":"(anonymous_3)","line":184,"loc":{"start":{"line":184,"column":44},"end":{"line":184,"column":56}}},"4":{"name":"(anonymous_4)","line":195,"loc":{"start":{"line":195,"column":16},"end":{"line":195,"column":28}}},"5":{"name":"(anonymous_5)","line":226,"loc":{"start":{"line":226,"column":16},"end":{"line":226,"column":49}}},"6":{"name":"(anonymous_6)","line":250,"loc":{"start":{"line":250,"column":11},"end":{"line":250,"column":40}}},"7":{"name":"(anonymous_7)","line":271,"loc":{"start":{"line":271,"column":16},"end":{"line":271,"column":34}}},"8":{"name":"(anonymous_8)","line":314,"loc":{"start":{"line":314,"column":17},"end":{"line":314,"column":42}}},"9":{"name":"(anonymous_9)","line":365,"loc":{"start":{"line":365,"column":15},"end":{"line":365,"column":40}}},"10":{"name":"(anonymous_10)","line":401,"loc":{"start":{"line":401,"column":14},"end":{"line":401,"column":58}}},"11":{"name":"(anonymous_11)","line":411,"loc":{"start":{"line":411,"column":41},"end":{"line":411,"column":63}}},"12":{"name":"(anonymous_12)","line":429,"loc":{"start":{"line":429,"column":17},"end":{"line":429,"column":31}}},"13":{"name":"(anonymous_13)","line":460,"loc":{"start":{"line":460,"column":16},"end":{"line":460,"column":49}}},"14":{"name":"(anonymous_14)","line":530,"loc":{"start":{"line":530,"column":17},"end":{"line":530,"column":50}}},"15":{"name":"(anonymous_15)","line":555,"loc":{"start":{"line":555,"column":16},"end":{"line":555,"column":41}}},"16":{"name":"(anonymous_16)","line":579,"loc":{"start":{"line":579,"column":10},"end":{"line":579,"column":22}}},"17":{"name":"(anonymous_17)","line":589,"loc":{"start":{"line":589,"column":12},"end":{"line":589,"column":24}}},"18":{"name":"(anonymous_18)","line":627,"loc":{"start":{"line":627,"column":18},"end":{"line":627,"column":62}}},"19":{"name":"(anonymous_19)","line":668,"loc":{"start":{"line":668,"column":16},"end":{"line":668,"column":41}}},"20":{"name":"(anonymous_20)","line":707,"loc":{"start":{"line":707,"column":23},"end":{"line":707,"column":35}}},"21":{"name":"(anonymous_21)","line":730,"loc":{"start":{"line":730,"column":24},"end":{"line":730,"column":36}}},"22":{"name":"(anonymous_22)","line":763,"loc":{"start":{"line":763,"column":20},"end":{"line":763,"column":53}}},"23":{"name":"(anonymous_23)","line":796,"loc":{"start":{"line":796,"column":26},"end":{"line":796,"column":63}}},"24":{"name":"(anonymous_24)","line":807,"loc":{"start":{"line":807,"column":27},"end":{"line":807,"column":43}}},"25":{"name":"(anonymous_25)","line":823,"loc":{"start":{"line":823,"column":15},"end":{"line":823,"column":28}}},"26":{"name":"(anonymous_26)","line":840,"loc":{"start":{"line":840,"column":17},"end":{"line":840,"column":30}}},"27":{"name":"(anonymous_27)","line":854,"loc":{"start":{"line":854,"column":18},"end":{"line":854,"column":31}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":881,"column":56}},"2":{"start":{"line":39,"column":0},"end":{"line":77,"column":26}},"3":{"start":{"line":79,"column":0},"end":{"line":876,"column":3}},"4":{"start":{"line":163,"column":8},"end":{"line":163,"column":32}},"5":{"start":{"line":165,"column":8},"end":{"line":167,"column":9}},"6":{"start":{"line":166,"column":12},"end":{"line":166,"column":46}},"7":{"start":{"line":169,"column":8},"end":{"line":171,"column":9}},"8":{"start":{"line":170,"column":12},"end":{"line":170,"column":84}},"9":{"start":{"line":180,"column":8},"end":{"line":180,"column":50}},"10":{"start":{"line":181,"column":8},"end":{"line":181,"column":27}},"11":{"start":{"line":184,"column":8},"end":{"line":192,"column":11}},"12":{"start":{"line":185,"column":12},"end":{"line":185,"column":37}},"13":{"start":{"line":187,"column":12},"end":{"line":187,"column":56}},"14":{"start":{"line":189,"column":12},"end":{"line":191,"column":13}},"15":{"start":{"line":190,"column":16},"end":{"line":190,"column":77}},"16":{"start":{"line":196,"column":8},"end":{"line":196,"column":56}},"17":{"start":{"line":198,"column":8},"end":{"line":198,"column":31}},"18":{"start":{"line":199,"column":8},"end":{"line":199,"column":31}},"19":{"start":{"line":200,"column":8},"end":{"line":200,"column":31}},"20":{"start":{"line":201,"column":8},"end":{"line":201,"column":31}},"21":{"start":{"line":202,"column":8},"end":{"line":202,"column":31}},"22":{"start":{"line":227,"column":8},"end":{"line":230,"column":12}},"23":{"start":{"line":251,"column":8},"end":{"line":257,"column":11}},"24":{"start":{"line":273,"column":8},"end":{"line":273,"column":32}},"25":{"start":{"line":277,"column":8},"end":{"line":280,"column":9}},"26":{"start":{"line":278,"column":12},"end":{"line":278,"column":36}},"27":{"start":{"line":279,"column":12},"end":{"line":279,"column":26}},"28":{"start":{"line":283,"column":8},"end":{"line":291,"column":9}},"29":{"start":{"line":284,"column":12},"end":{"line":284,"column":30}},"30":{"start":{"line":286,"column":12},"end":{"line":288,"column":13}},"31":{"start":{"line":287,"column":16},"end":{"line":287,"column":67}},"32":{"start":{"line":290,"column":12},"end":{"line":290,"column":59}},"33":{"start":{"line":293,"column":8},"end":{"line":293,"column":53}},"34":{"start":{"line":295,"column":8},"end":{"line":295,"column":45}},"35":{"start":{"line":315,"column":8},"end":{"line":315,"column":26}},"36":{"start":{"line":317,"column":8},"end":{"line":317,"column":34}},"37":{"start":{"line":319,"column":8},"end":{"line":329,"column":9}},"38":{"start":{"line":320,"column":12},"end":{"line":320,"column":37}},"39":{"start":{"line":325,"column":12},"end":{"line":325,"column":32}},"40":{"start":{"line":328,"column":12},"end":{"line":328,"column":45}},"41":{"start":{"line":331,"column":8},"end":{"line":333,"column":9}},"42":{"start":{"line":332,"column":12},"end":{"line":332,"column":43}},"43":{"start":{"line":335,"column":8},"end":{"line":335,"column":30}},"44":{"start":{"line":336,"column":8},"end":{"line":336,"column":30}},"45":{"start":{"line":337,"column":8},"end":{"line":337,"column":43}},"46":{"start":{"line":338,"column":8},"end":{"line":338,"column":30}},"47":{"start":{"line":339,"column":8},"end":{"line":339,"column":30}},"48":{"start":{"line":340,"column":8},"end":{"line":340,"column":30}},"49":{"start":{"line":342,"column":8},"end":{"line":342,"column":38}},"50":{"start":{"line":344,"column":8},"end":{"line":344,"column":20}},"51":{"start":{"line":366,"column":8},"end":{"line":366,"column":25}},"52":{"start":{"line":368,"column":8},"end":{"line":370,"column":9}},"53":{"start":{"line":369,"column":12},"end":{"line":369,"column":69}},"54":{"start":{"line":372,"column":8},"end":{"line":372,"column":23}},"55":{"start":{"line":402,"column":8},"end":{"line":402,"column":25}},"56":{"start":{"line":405,"column":8},"end":{"line":409,"column":9}},"57":{"start":{"line":406,"column":12},"end":{"line":406,"column":32}},"58":{"start":{"line":407,"column":12},"end":{"line":407,"column":31}},"59":{"start":{"line":408,"column":12},"end":{"line":408,"column":26}},"60":{"start":{"line":411,"column":8},"end":{"line":416,"column":11}},"61":{"start":{"line":412,"column":12},"end":{"line":415,"column":13}},"62":{"start":{"line":413,"column":16},"end":{"line":413,"column":35}},"63":{"start":{"line":414,"column":16},"end":{"line":414,"column":43}},"64":{"start":{"line":418,"column":8},"end":{"line":418,"column":21}},"65":{"start":{"line":430,"column":8},"end":{"line":430,"column":33}},"66":{"start":{"line":461,"column":8},"end":{"line":461,"column":34}},"67":{"start":{"line":462,"column":8},"end":{"line":462,"column":44}},"68":{"start":{"line":476,"column":8},"end":{"line":488,"column":9}},"69":{"start":{"line":477,"column":12},"end":{"line":477,"column":30}},"70":{"start":{"line":479,"column":12},"end":{"line":485,"column":13}},"71":{"start":{"line":480,"column":16},"end":{"line":480,"column":73}},"72":{"start":{"line":482,"column":16},"end":{"line":484,"column":17}},"73":{"start":{"line":483,"column":20},"end":{"line":483,"column":39}},"74":{"start":{"line":487,"column":12},"end":{"line":487,"column":28}},"75":{"start":{"line":490,"column":8},"end":{"line":490,"column":37}},"76":{"start":{"line":492,"column":8},"end":{"line":492,"column":34}},"77":{"start":{"line":494,"column":8},"end":{"line":496,"column":9}},"78":{"start":{"line":495,"column":12},"end":{"line":495,"column":69}},"79":{"start":{"line":498,"column":8},"end":{"line":506,"column":11}},"80":{"start":{"line":508,"column":8},"end":{"line":508,"column":20}},"81":{"start":{"line":531,"column":8},"end":{"line":534,"column":12}},"82":{"start":{"line":556,"column":8},"end":{"line":556,"column":34}},"83":{"start":{"line":558,"column":8},"end":{"line":566,"column":11}},"84":{"start":{"line":568,"column":8},"end":{"line":568,"column":20}},"85":{"start":{"line":580,"column":8},"end":{"line":580,"column":40}},"86":{"start":{"line":590,"column":8},"end":{"line":590,"column":38}},"87":{"start":{"line":629,"column":8},"end":{"line":633,"column":9}},"88":{"start":{"line":630,"column":12},"end":{"line":630,"column":32}},"89":{"start":{"line":631,"column":12},"end":{"line":631,"column":31}},"90":{"start":{"line":632,"column":12},"end":{"line":632,"column":26}},"91":{"start":{"line":635,"column":8},"end":{"line":635,"column":34}},"92":{"start":{"line":637,"column":8},"end":{"line":638,"column":61}},"93":{"start":{"line":640,"column":8},"end":{"line":642,"column":9}},"94":{"start":{"line":641,"column":12},"end":{"line":641,"column":24}},"95":{"start":{"line":644,"column":8},"end":{"line":644,"column":37}},"96":{"start":{"line":646,"column":8},"end":{"line":654,"column":9}},"97":{"start":{"line":647,"column":12},"end":{"line":647,"column":80}},"98":{"start":{"line":649,"column":12},"end":{"line":653,"column":13}},"99":{"start":{"line":650,"column":16},"end":{"line":652,"column":17}},"100":{"start":{"line":651,"column":20},"end":{"line":651,"column":32}},"101":{"start":{"line":669,"column":8},"end":{"line":669,"column":32}},"102":{"start":{"line":671,"column":8},"end":{"line":673,"column":9}},"103":{"start":{"line":672,"column":12},"end":{"line":672,"column":19}},"104":{"start":{"line":675,"column":8},"end":{"line":677,"column":9}},"105":{"start":{"line":676,"column":12},"end":{"line":676,"column":62}},"106":{"start":{"line":679,"column":8},"end":{"line":679,"column":42}},"107":{"start":{"line":680,"column":8},"end":{"line":680,"column":41}},"108":{"start":{"line":685,"column":8},"end":{"line":689,"column":9}},"109":{"start":{"line":688,"column":12},"end":{"line":688,"column":50}},"110":{"start":{"line":691,"column":8},"end":{"line":691,"column":25}},"111":{"start":{"line":692,"column":8},"end":{"line":692,"column":38}},"112":{"start":{"line":708,"column":8},"end":{"line":710,"column":26}},"113":{"start":{"line":712,"column":8},"end":{"line":722,"column":9}},"114":{"start":{"line":714,"column":12},"end":{"line":714,"column":67}},"115":{"start":{"line":716,"column":12},"end":{"line":721,"column":13}},"116":{"start":{"line":717,"column":16},"end":{"line":717,"column":43}},"117":{"start":{"line":719,"column":16},"end":{"line":719,"column":68}},"118":{"start":{"line":720,"column":16},"end":{"line":720,"column":23}},"119":{"start":{"line":724,"column":8},"end":{"line":727,"column":9}},"120":{"start":{"line":725,"column":12},"end":{"line":725,"column":40}},"121":{"start":{"line":726,"column":12},"end":{"line":726,"column":19}},"122":{"start":{"line":730,"column":8},"end":{"line":738,"column":10}},"123":{"start":{"line":731,"column":12},"end":{"line":731,"column":59}},"124":{"start":{"line":733,"column":12},"end":{"line":733,"column":45}},"125":{"start":{"line":735,"column":12},"end":{"line":737,"column":13}},"126":{"start":{"line":736,"column":16},"end":{"line":736,"column":53}},"127":{"start":{"line":740,"column":8},"end":{"line":740,"column":43}},"128":{"start":{"line":742,"column":8},"end":{"line":744,"column":9}},"129":{"start":{"line":743,"column":12},"end":{"line":743,"column":78}},"130":{"start":{"line":746,"column":8},"end":{"line":746,"column":55}},"131":{"start":{"line":747,"column":8},"end":{"line":747,"column":40}},"132":{"start":{"line":764,"column":8},"end":{"line":776,"column":9}},"133":{"start":{"line":765,"column":12},"end":{"line":767,"column":13}},"134":{"start":{"line":766,"column":16},"end":{"line":766,"column":53}},"135":{"start":{"line":769,"column":12},"end":{"line":773,"column":13}},"136":{"start":{"line":770,"column":16},"end":{"line":772,"column":19}},"137":{"start":{"line":775,"column":12},"end":{"line":775,"column":36}},"138":{"start":{"line":778,"column":8},"end":{"line":778,"column":20}},"139":{"start":{"line":797,"column":8},"end":{"line":797,"column":38}},"140":{"start":{"line":808,"column":8},"end":{"line":809,"column":18}},"141":{"start":{"line":811,"column":8},"end":{"line":819,"column":9}},"142":{"start":{"line":812,"column":12},"end":{"line":812,"column":41}},"143":{"start":{"line":814,"column":12},"end":{"line":818,"column":13}},"144":{"start":{"line":815,"column":16},"end":{"line":815,"column":49}},"145":{"start":{"line":816,"column":16},"end":{"line":816,"column":44}},"146":{"start":{"line":817,"column":16},"end":{"line":817,"column":35}},"147":{"start":{"line":824,"column":8},"end":{"line":825,"column":30}},"148":{"start":{"line":828,"column":8},"end":{"line":830,"column":9}},"149":{"start":{"line":829,"column":12},"end":{"line":829,"column":45}},"150":{"start":{"line":833,"column":8},"end":{"line":833,"column":29}},"151":{"start":{"line":834,"column":8},"end":{"line":834,"column":49}},"152":{"start":{"line":836,"column":8},"end":{"line":836,"column":38}},"153":{"start":{"line":837,"column":8},"end":{"line":837,"column":38}},"154":{"start":{"line":841,"column":8},"end":{"line":841,"column":37}},"155":{"start":{"line":843,"column":8},"end":{"line":845,"column":9}},"156":{"start":{"line":844,"column":12},"end":{"line":844,"column":60}},"157":{"start":{"line":847,"column":8},"end":{"line":847,"column":27}},"158":{"start":{"line":848,"column":8},"end":{"line":848,"column":52}},"159":{"start":{"line":850,"column":8},"end":{"line":850,"column":36}},"160":{"start":{"line":851,"column":8},"end":{"line":851,"column":45}},"161":{"start":{"line":855,"column":8},"end":{"line":855,"column":26}},"162":{"start":{"line":857,"column":8},"end":{"line":865,"column":9}},"163":{"start":{"line":858,"column":12},"end":{"line":858,"column":51}},"164":{"start":{"line":859,"column":15},"end":{"line":865,"column":9}},"165":{"start":{"line":860,"column":12},"end":{"line":860,"column":45}},"166":{"start":{"line":861,"column":15},"end":{"line":865,"column":9}},"167":{"start":{"line":863,"column":12},"end":{"line":863,"column":66}},"168":{"start":{"line":864,"column":12},"end":{"line":864,"column":51}},"169":{"start":{"line":878,"column":0},"end":{"line":878,"column":29}}},"branchMap":{"1":{"line":163,"type":"binary-expr","locations":[{"start":{"line":163,"column":8},"end":{"line":163,"column":14}},{"start":{"line":163,"column":19},"end":{"line":163,"column":30}}]},"2":{"line":165,"type":"if","locations":[{"start":{"line":165,"column":8},"end":{"line":165,"column":8}},{"start":{"line":165,"column":8},"end":{"line":165,"column":8}}]},"3":{"line":169,"type":"if","locations":[{"start":{"line":169,"column":8},"end":{"line":169,"column":8}},{"start":{"line":169,"column":8},"end":{"line":169,"column":8}}]},"4":{"line":180,"type":"binary-expr","locations":[{"start":{"line":180,"column":8},"end":{"line":180,"column":23}},{"start":{"line":180,"column":28},"end":{"line":180,"column":48}}]},"5":{"line":189,"type":"if","locations":[{"start":{"line":189,"column":12},"end":{"line":189,"column":12}},{"start":{"line":189,"column":12},"end":{"line":189,"column":12}}]},"6":{"line":252,"type":"binary-expr","locations":[{"start":{"line":252,"column":38},"end":{"line":252,"column":46}},{"start":{"line":252,"column":50},"end":{"line":252,"column":70}}]},"7":{"line":253,"type":"binary-expr","locations":[{"start":{"line":253,"column":22},"end":{"line":253,"column":29}},{"start":{"line":253,"column":33},"end":{"line":253,"column":44}}]},"8":{"line":256,"type":"binary-expr","locations":[{"start":{"line":256,"column":23},"end":{"line":256,"column":30}},{"start":{"line":256,"column":34},"end":{"line":256,"column":48}}]},"9":{"line":273,"type":"binary-expr","locations":[{"start":{"line":273,"column":8},"end":{"line":273,"column":14}},{"start":{"line":273,"column":19},"end":{"line":273,"column":30}}]},"10":{"line":277,"type":"if","locations":[{"start":{"line":277,"column":8},"end":{"line":277,"column":8}},{"start":{"line":277,"column":8},"end":{"line":277,"column":8}}]},"11":{"line":283,"type":"if","locations":[{"start":{"line":283,"column":8},"end":{"line":283,"column":8}},{"start":{"line":283,"column":8},"end":{"line":283,"column":8}}]},"12":{"line":317,"type":"binary-expr","locations":[{"start":{"line":317,"column":8},"end":{"line":317,"column":15}},{"start":{"line":317,"column":20},"end":{"line":317,"column":32}}]},"13":{"line":331,"type":"if","locations":[{"start":{"line":331,"column":8},"end":{"line":331,"column":8}},{"start":{"line":331,"column":8},"end":{"line":331,"column":8}}]},"14":{"line":405,"type":"if","locations":[{"start":{"line":405,"column":8},"end":{"line":405,"column":8}},{"start":{"line":405,"column":8},"end":{"line":405,"column":8}}]},"15":{"line":412,"type":"if","locations":[{"start":{"line":412,"column":12},"end":{"line":412,"column":12}},{"start":{"line":412,"column":12},"end":{"line":412,"column":12}}]},"16":{"line":461,"type":"binary-expr","locations":[{"start":{"line":461,"column":8},"end":{"line":461,"column":15}},{"start":{"line":461,"column":20},"end":{"line":461,"column":32}}]},"17":{"line":462,"type":"binary-expr","locations":[{"start":{"line":462,"column":8},"end":{"line":462,"column":14}},{"start":{"line":462,"column":20},"end":{"line":462,"column":42}}]},"18":{"line":476,"type":"if","locations":[{"start":{"line":476,"column":8},"end":{"line":476,"column":8}},{"start":{"line":476,"column":8},"end":{"line":476,"column":8}}]},"19":{"line":476,"type":"binary-expr","locations":[{"start":{"line":476,"column":12},"end":{"line":476,"column":28}},{"start":{"line":476,"column":32},"end":{"line":476,"column":50}}]},"20":{"line":482,"type":"if","locations":[{"start":{"line":482,"column":16},"end":{"line":482,"column":16}},{"start":{"line":482,"column":16},"end":{"line":482,"column":16}}]},"21":{"line":494,"type":"if","locations":[{"start":{"line":494,"column":8},"end":{"line":494,"column":8}},{"start":{"line":494,"column":8},"end":{"line":494,"column":8}}]},"22":{"line":502,"type":"binary-expr","locations":[{"start":{"line":502,"column":20},"end":{"line":502,"column":31}},{"start":{"line":502,"column":35},"end":{"line":502,"column":43}}]},"23":{"line":556,"type":"binary-expr","locations":[{"start":{"line":556,"column":8},"end":{"line":556,"column":15}},{"start":{"line":556,"column":20},"end":{"line":556,"column":32}}]},"24":{"line":562,"type":"binary-expr","locations":[{"start":{"line":562,"column":21},"end":{"line":562,"column":32}},{"start":{"line":562,"column":36},"end":{"line":562,"column":44}}]},"25":{"line":629,"type":"if","locations":[{"start":{"line":629,"column":8},"end":{"line":629,"column":8}},{"start":{"line":629,"column":8},"end":{"line":629,"column":8}}]},"26":{"line":635,"type":"binary-expr","locations":[{"start":{"line":635,"column":8},"end":{"line":635,"column":15}},{"start":{"line":635,"column":20},"end":{"line":635,"column":32}}]},"27":{"line":640,"type":"if","locations":[{"start":{"line":640,"column":8},"end":{"line":640,"column":8}},{"start":{"line":640,"column":8},"end":{"line":640,"column":8}}]},"28":{"line":646,"type":"if","locations":[{"start":{"line":646,"column":8},"end":{"line":646,"column":8}},{"start":{"line":646,"column":8},"end":{"line":646,"column":8}}]},"29":{"line":646,"type":"binary-expr","locations":[{"start":{"line":646,"column":12},"end":{"line":646,"column":21}},{"start":{"line":646,"column":25},"end":{"line":646,"column":42}}]},"30":{"line":647,"type":"cond-expr","locations":[{"start":{"line":647,"column":43},"end":{"line":647,"column":50}},{"start":{"line":647,"column":53},"end":{"line":647,"column":79}}]},"31":{"line":650,"type":"if","locations":[{"start":{"line":650,"column":16},"end":{"line":650,"column":16}},{"start":{"line":650,"column":16},"end":{"line":650,"column":16}}]},"32":{"line":671,"type":"if","locations":[{"start":{"line":671,"column":8},"end":{"line":671,"column":8}},{"start":{"line":671,"column":8},"end":{"line":671,"column":8}}]},"33":{"line":685,"type":"if","locations":[{"start":{"line":685,"column":8},"end":{"line":685,"column":8}},{"start":{"line":685,"column":8},"end":{"line":685,"column":8}}]},"34":{"line":685,"type":"binary-expr","locations":[{"start":{"line":685,"column":12},"end":{"line":685,"column":46}},{"start":{"line":686,"column":19},"end":{"line":686,"column":57}}]},"35":{"line":712,"type":"if","locations":[{"start":{"line":712,"column":8},"end":{"line":712,"column":8}},{"start":{"line":712,"column":8},"end":{"line":712,"column":8}}]},"36":{"line":716,"type":"if","locations":[{"start":{"line":716,"column":12},"end":{"line":716,"column":12}},{"start":{"line":716,"column":12},"end":{"line":716,"column":12}}]},"37":{"line":724,"type":"if","locations":[{"start":{"line":724,"column":8},"end":{"line":724,"column":8}},{"start":{"line":724,"column":8},"end":{"line":724,"column":8}}]},"38":{"line":764,"type":"if","locations":[{"start":{"line":764,"column":8},"end":{"line":764,"column":8}},{"start":{"line":764,"column":8},"end":{"line":764,"column":8}}]},"39":{"line":764,"type":"binary-expr","locations":[{"start":{"line":764,"column":12},"end":{"line":764,"column":19}},{"start":{"line":764,"column":23},"end":{"line":764,"column":37}}]},"40":{"line":765,"type":"if","locations":[{"start":{"line":765,"column":12},"end":{"line":765,"column":12}},{"start":{"line":765,"column":12},"end":{"line":765,"column":12}}]},"41":{"line":769,"type":"if","locations":[{"start":{"line":769,"column":12},"end":{"line":769,"column":12}},{"start":{"line":769,"column":12},"end":{"line":769,"column":12}}]},"42":{"line":769,"type":"binary-expr","locations":[{"start":{"line":769,"column":16},"end":{"line":769,"column":23}},{"start":{"line":769,"column":27},"end":{"line":769,"column":44}},{"start":{"line":769,"column":48},"end":{"line":769,"column":70}}]},"43":{"line":811,"type":"if","locations":[{"start":{"line":811,"column":8},"end":{"line":811,"column":8}},{"start":{"line":811,"column":8},"end":{"line":811,"column":8}}]},"44":{"line":814,"type":"if","locations":[{"start":{"line":814,"column":12},"end":{"line":814,"column":12}},{"start":{"line":814,"column":12},"end":{"line":814,"column":12}}]},"45":{"line":828,"type":"if","locations":[{"start":{"line":828,"column":8},"end":{"line":828,"column":8}},{"start":{"line":828,"column":8},"end":{"line":828,"column":8}}]},"46":{"line":843,"type":"if","locations":[{"start":{"line":843,"column":8},"end":{"line":843,"column":8}},{"start":{"line":843,"column":8},"end":{"line":843,"column":8}}]},"47":{"line":857,"type":"if","locations":[{"start":{"line":857,"column":8},"end":{"line":857,"column":8}},{"start":{"line":857,"column":8},"end":{"line":857,"column":8}}]},"48":{"line":859,"type":"if","locations":[{"start":{"line":859,"column":15},"end":{"line":859,"column":15}},{"start":{"line":859,"column":15},"end":{"line":859,"column":15}}]},"49":{"line":861,"type":"if","locations":[{"start":{"line":861,"column":15},"end":{"line":861,"column":15}},{"start":{"line":861,"column":15},"end":{"line":861,"column":15}}]}},"code":["(function () { YUI.add('tree', function (Y, NAME) {","","/*jshint expr:true, onevar:false */","","/**","Provides a generic tree data structure and related functionality.","","A tree has a root node, which may contain any number of child nodes, which may","themselves contain child nodes, ad infinitum.","","Child nodes are lightweight function instances which delegate to the tree for","all significant functionality, so trees remain performant and memory-efficient","even with thousands and thousands of nodes.","","@module tree","@main tree","**/","","/**","The `Tree` class represents a generic tree data structure. A tree has a root","node, which may contain any number of child nodes, which may themselves contain","child nodes, ad infinitum.","","This class doesn't expose any UI, but is intended to be used as a data structure","or base class for other components. For example, the SmugMug TreeView gallery","module extends Tree and provides a TreeView UI.","","@class Tree","@param {Object} [config] Config options.","    @param {Object[]|Tree.Node[]} [config.nodes] Array of tree node config","        objects or `Tree.Node` instances to add to this tree at initialization","        time.","    @param {Object|Tree.Node} [config.rootNode] Node to use as the root node of","        this tree.","@constructor","@extends Base","**/","","var Lang = Y.Lang,","","    /**","    Fired when a node is added to this Tree. The `src` property will indicate","    how the node was added (\"append\", \"insert\", \"prepend\", etc.).","","    @event add","    @param {Number} index Index at which the node will be added.","    @param {Tree.Node} node Node being added.","    @param {Tree.Node} parent Parent node to which the node will be added.","    @param {String} src Source of the event (\"append\", \"insert\", \"prepend\",","        etc.).","    @preventable _defAddFn","    **/","    EVT_ADD = 'add',","","    /**","    Fired when this Tree is cleared.","","    @event clear","    @param {Tree.Node} rootNode New root node of this tree (the old root node is","        always destroyed when a tree is cleared).","    @param {String} src Source of the event.","    @preventable _defClearFn","    **/","    EVT_CLEAR = 'clear',","","    /**","    Fired when a node is removed from this Tree.","","    @event remove","    @param {Boolean} destroy Whether or not the node will be destroyed after","        being removed from this tree.","    @param {Tree.Node} node Node being removed.","    @param {Tree.Node} parent Parent node from which the node will be removed.","    @param {String} src Source of the event.","    @preventable _defRemoveFn","    **/","    EVT_REMOVE = 'remove';","","var Tree = Y.Base.create('tree', Y.Base, [], {","    // -- Public Properties ----------------------------------------------------","","    /**","    Reference to the `children` array of this Tree's `rootNode`.","","    This is a convenience property to allow you to type `tree.children` instead","    of `tree.rootNode.children`.","","    @property {Tree.Node[]} children","    @readOnly","    **/","","    /**","    The `Tree.Node` class or subclass that should be used for nodes created by","    this tree.","","    You may specify an actual class reference or a string that resolves to a","    class reference at runtime.","","    @property {String|Tree.Node} nodeClass","    @default Y.Tree.Node","    **/","    nodeClass: Y.Tree.Node,","","    /**","    Optional array containing one or more extension classes that should be mixed","    into the `nodeClass` when this Tree is instantiated. The resulting composed","    node class will be unique to this Tree instance and will not affect any","    other instances, nor will it modify the defined `nodeClass` itself.","","    This provides a late-binding extension mechanism for nodes that doesn't","    require them to extend `Y.Base`, which would incur a significant performance","    hit.","","    @property {Array} nodeExtensions","    @default []","    **/","    nodeExtensions: [],","","    /**","    Root node of this Tree.","","    @property {Tree.Node} rootNode","    @readOnly","    **/","","    // -- Protected Properties -------------------------------------------------","","    /**","    Simple way to type-check that this is a Tree instance.","","    @property {Boolean} _isYUITree","    @default true","    @protected","    **/","    _isYUITree: true,","","    /**","    Composed node class based on `nodeClass` that mixes in any extensions","    specified in `nodeExtensions`. If there are no extensions, this will just be","    a reference to `nodeClass`.","","    @property {Tree.Node} _nodeClass","    @protected","    **/","","    /**","    Mapping of node ids to node instances for nodes in this tree.","","    @property {Object} _nodeMap","    @protected","    **/","","    /**","    Default config object for the root node.","","    @property {Object} _rootNodeConfig","    @protected","    **/","    _rootNodeConfig: {canHaveChildren: true},","","    // -- Lifecycle ------------------------------------------------------------","    initializer: function (config) {","        config || (config = {});","","        if (config.nodeClass) {","            this.nodeClass = config.nodeClass;","        }","","        if (config.nodeExtensions) {","            this.nodeExtensions = this.nodeExtensions.concat(config.nodeExtensions);","        }","","        /**","        Hash of published custom events.","","        @property {Object} _published","        @default {}","        @protected","        **/","        this._published || (this._published = {});","        this._nodeMap = {};","","        // Allow all extensions to initialize, then finish up.","        this.onceAfter('initializedChange', function () {","            this._composeNodeClass();","","            this.clear(config.rootNode, {silent: true});","","            if (config.nodes) {","                this.insertNode(this.rootNode, config.nodes, {silent: true});","            }","        });","    },","","    destructor: function () {","        this.destroyNode(this.rootNode, {silent: true});","","        this.children   = null;","        this.rootNode   = null;","        this._nodeClass = null;","        this._nodeMap   = null;","        this._published = null;","    },","","    // -- Public Methods -------------------------------------------------------","","    /**","    Appends a node or array of nodes as the last child of the specified parent","    node.","","    If a node being appended is from another tree, it and all its children will","    be removed from that tree and moved to this one.","","    @method appendNode","    @param {Tree.Node} parent Parent node.","    @param {Object|Object[]|Tree.Node|Tree.Node[]} node Child node, node config","        object, array of child nodes, or array of node config objects to append","        to the given parent. Node config objects will automatically be converted","        into node instances.","    @param {Object} [options] Options.","        @param {Boolean} [options.silent=false] If `true`, the `add` event will","            be suppressed.","    @return {Tree.Node|Tree.Node[]} Node or array of nodes that were","        appended.","    **/","    appendNode: function (parent, node, options) {","        return this.insertNode(parent, node, Y.merge(options, {","            index: parent.children.length,","            src  : 'append'","        }));","    },","","    /**","    Clears this tree by destroying the root node and all its children. If a","    `rootNode` argument is provided, that node will become the root node of this","    tree; otherwise, a new root node will be created.","","    @method clear","    @param {Object|Tree.Node} [rootNode] If specified, this node will be used as","        the new root node.","    @param {Object} [options] Options.","        @param {Boolean} [options.silent=false] If `true`, the `clear` event","            will be suppressed.","        @param {String} [options.src] Source of the change, to be passed along","            to the event facade of the resulting event. This can be used to","            distinguish between changes triggered by a user and changes","            triggered programmatically, for example.","    @chainable","    **/","    clear: function (rootNode, options) {","        return this._fireTreeEvent(EVT_CLEAR, {","            rootNode: this.createNode(rootNode || this._rootNodeConfig),","            src     : options && options.src","        }, {","            defaultFn: this._defClearFn,","            silent   : options && options.silent","        });","    },","","    /**","    Creates and returns a new `Tree.Node` instance associated with (but not","    yet appended to) this tree.","","    @method createNode","    @param {Object|Tree.Node} [config] Node configuration. If a `Tree.Node`","        instance is specified instead of a config object, that node will be","        adopted into this tree (if it doesn't already belong to this tree) and","        removed from any other tree to which it belongs.","    @return {Tree.Node} New node.","    **/","    createNode: function (config) {","        /*jshint boss:true */","        config || (config = {});","","        // If `config` is already a node, just ensure it's in the node map and","        // return it.","        if (config._isYUITreeNode) {","            this._adoptNode(config);","            return config;","        }","","        // First, create nodes for any children of this node.","        if (config.children) {","            var children = [];","","            for (var i = 0, len = config.children.length; i < len; i++) {","                children.push(this.createNode(config.children[i]));","            }","","            config = Y.merge(config, {children: children});","        }","","        var node = new this._nodeClass(this, config);","","        return this._nodeMap[node.id] = node;","    },","","    /**","    Removes and destroys a node and all its child nodes. Once destroyed, a node","    is eligible for garbage collection and cannot be reused or re-added to the","    tree.","","    @method destroyNode","    @param {Tree.Node} node Node to destroy.","    @param {Object} [options] Options.","        @param {Boolean} [options.silent=false] If `true`, `remove` events will","            be suppressed.","        @param {String} [options.src] Source of the change, to be passed along","            to the event facade of the resulting events. This can be used to","            distinguish between changes triggered by a user and changes","            triggered programmatically, for example.","    @chainable","    **/","    destroyNode: function (node, options) {","        var child, i, len;","","        options || (options = {});","","        for (i = 0, len = node.children.length; i < len; i++) {","            child = node.children[i];","","            // Manually remove the child from its parent; this makes destroying","            // all children of the parent much faster since there's no splicing","            // involved.","            child.parent = null;","","            // Destroy the child.","            this.destroyNode(child, options);","        }","","        if (node.parent) {","            this.removeNode(node, options);","        }","","        node.children  = null;","        node.data      = null;","        node.state     = {destroyed: true};","        node.tree      = null;","        node._htmlNode = null;","        node._indexMap = null;","","        delete this._nodeMap[node.id];","","        return this;","    },","","    /**","    Removes all children from the specified node. The removed children will","    still be reusable unless the `destroy` option is truthy.","","    @method emptyNode","    @param {Tree.Node} node Node to empty.","    @param {Object} [options] Options.","        @param {Boolean} [options.destroy=false] If `true`, the children will","            also be destroyed, which makes them available for garbage collection","            and means they can't be reused.","        @param {Boolean} [options.silent=false] If `true`, `remove` events will","            be suppressed.","        @param {String} [options.src] Source of the change, to be passed along","            to the event facade of the resulting events. This can be used to","            distinguish between changes triggered by a user and changes","            triggered programmatically, for example.","    @return {Tree.Node[]} Array of removed child nodes.","    **/","    emptyNode: function (node, options) {","        var removed = [];","","        while (node.children.length) {","            removed.push(this.removeNode(node.children[0], options));","        }","","        return removed;","    },","","    /**","    Performs a depth-first traversal of _node_, passing it and each of its","    descendants to the specified _callback_, and returning the first node for","    which the callback returns a truthy value.","","    Traversal will stop as soon as a truthy value is returned from the callback.","","    See `traverseNode()` for more details on how depth-first traversal works.","","    @method findNode","    @param {Tree.Node} node Node to traverse.","    @param {Object} [options] Options.","        @param {Number} [options.depth] Depth limit. If specified, descendants","            will only be traversed to this depth before backtracking and moving","            on.","    @param {Function} callback Callback function to call with the traversed","        node and each of its descendants. If this function returns a truthy","        value, traversal will be stopped and the current node will be returned.","","        @param {Tree.Node} callback.node Node being traversed.","","    @param {Object} [thisObj] `this` object to use when executing _callback_.","    @return {Tree.Node|null} Returns the first node for which the _callback_","        returns a truthy value, or `null` if the callback never returns a truthy","        value.","    **/","    findNode: function (node, options, callback, thisObj) {","        var match = null;","","        // Allow callback as second argument.","        if (typeof options === 'function') {","            thisObj  = callback;","            callback = options;","            options  = {};","        }","","        this.traverseNode(node, options, function (descendant) {","            if (callback.call(thisObj, descendant)) {","                match = descendant;","                return Tree.STOP_TRAVERSAL;","            }","        });","","        return match;","    },","","    /**","    Returns the tree node with the specified id, or `undefined` if the node","    doesn't exist in this tree.","","    @method getNodeById","    @param {String} id Node id.","    @return {Tree.Node} Node, or `undefined` if not found.","    **/","    getNodeById: function (id) {","        return this._nodeMap[id];","    },","","    /**","    Inserts a node or array of nodes at the specified index under the given","    parent node, or appends them to the parent if no index is specified.","","    If a node being inserted is from another tree, it and all its children will","    be removed from that tree and moved to this one.","","    @method insertNode","    @param {Tree.Node} parent Parent node.","    @param {Object|Object[]|Tree.Node|Tree.Node[]} node Child node, node config","        object, array of child nodes, or array of node config objects to insert","        under the given parent. Node config objects will automatically be","        converted into node instances.","","    @param {Object} [options] Options.","        @param {Number} [options.index] Index at which to insert the child node.","            If not specified, the node will be appended as the last child of the","            parent.","        @param {Boolean} [options.silent=false] If `true`, the `add` event will","            be suppressed.","        @param {String} [options.src='insert'] Source of the change, to be","            passed along to the event facade of the resulting event. This can be","            used to distinguish between changes triggered by a user and changes","            triggered programmatically, for example.","","    @return {Tree.Node[]} Node or array of nodes that were inserted.","    **/","    insertNode: function (parent, node, options) {","        options || (options = {});","        parent  || (parent = this.rootNode);","","        // If `node` is an array, recurse to insert each node it contains.","        //","        // Note: If you're getting an exception here because `node` is null when","        // you've passed in a reference to some other node's `children` array,","        // that's happening because nodes must be removed from their current","        // parent before being added to the new one, and the `children` array is","        // being modified while the nodes are inserted.","        //","        // Solution: pass a copy of the other node's `children` array instead of","        // the original. Doing the copy operation here would have a negative","        // impact on performance, so you're on your own since this is such a","        // rare edge case.","        if ('length' in node && Lang.isArray(node)) {","            var inserted = [];","","            for (var i = 0, len = node.length; i < len; i++) {","                inserted.push(this.insertNode(parent, node[i], options));","","                if ('index' in options) {","                    options.index += 1;","                }","            }","","            return inserted;","        }","","        node = this.createNode(node);","","        var index = options.index;","","        if (typeof index === 'undefined') {","            index = this._getDefaultNodeIndex(parent, node, options);","        }","","        this._fireTreeEvent(EVT_ADD, {","            index : index,","            node  : node,","            parent: parent,","            src   : options.src || 'insert'","        }, {","            defaultFn: this._defAddFn,","            silent   : options.silent","        });","","        return node;","    },","","    /**","    Prepends a node or array of nodes at the beginning of the specified parent","    node.","","    If a node being prepended is from another tree, it and all its children will","    be removed from that tree and moved to this one.","","    @method prependNode","    @param {Tree.Node} parent Parent node.","    @param {Object|Object[]|Tree.Node|Tree.Node[]} node Child node,","        node config object, array of child nodes, or array of node config","        objects to prepend to the given parent. Node config objects will","        automatically be converted into node instances.","    @param {Object} [options] Options.","        @param {Boolean} [options.silent=false] If `true`, the `add` event will","            be suppressed.","    @return {Tree.Node|Tree.Node[]} Node or array of nodes that were","        prepended.","    **/","    prependNode: function (parent, node, options) {","        return this.insertNode(parent, node, Y.merge(options, {","            index: 0,","            src  : 'prepend'","        }));","    },","","    /**","    Removes the specified node from its parent node. The removed node will still","    be reusable unless the `destroy` option is truthy.","","    @method removeNode","    @param {Tree.Node} node Node to remove.","    @param {Object} [options] Options.","        @param {Boolean} [options.destroy=false] If `true`, the node and all its","            children will also be destroyed, which makes them available for","            garbage collection and means they can't be reused.","        @param {Boolean} [options.silent=false] If `true`, the `remove` event","            will be suppressed.","        @param {String} [options.src] Source of the change, to be passed along","            to the event facade of the resulting event. This can be used to","            distinguish between changes triggered by a user and changes","            triggered programmatically, for example.","    @return {Tree.Node} Node that was removed.","    **/","    removeNode: function (node, options) {","        options || (options = {});","","        this._fireTreeEvent(EVT_REMOVE, {","            destroy: !!options.destroy,","            node   : node,","            parent : node.parent,","            src    : options.src || 'remove'","        }, {","            defaultFn: this._defRemoveFn,","            silent   : options.silent","        });","","        return node;","    },","","    /**","    Returns the total number of nodes in this tree, at all levels.","","    Use `rootNode.children.length` to get only the number of top-level nodes.","","    @method size","    @return {Number} Total number of nodes in this tree.","    **/","    size: function () {","        return this.rootNode.size() + 1;","    },","","    /**","    Serializes this tree to an object suitable for use in JSON.","","    @method toJSON","    @return {Object} Serialized tree object.","    **/","    toJSON: function () {","        return this.rootNode.toJSON();","    },","","    /**","    Performs a depth-first traversal of _node_, passing it and each of its","    descendants to the specified _callback_.","","    If the callback function returns `Tree.STOP_TRAVERSAL`, traversal will be","    stopped immediately. Otherwise, it will continue until the deepest","    descendant of _node_ has been traversed, or until each branch has been","    traversed to the optional maximum depth limit.","","    Since traversal is depth-first, that means nodes are traversed like this:","","                1","              / | \\","             2  8  9","            / \\     \\","           3   7    10","         / | \\      / \\","        4  5  6    11 12","","    @method traverseNode","    @param {Tree.Node} node Node to traverse.","    @param {Object} [options] Options.","        @param {Number} [options.depth] Depth limit. If specified, descendants","            will only be traversed to this depth before backtracking and moving","            on.","    @param {Function} callback Callback function to call with the traversed","        node and each of its descendants.","","        @param {Tree.Node} callback.node Node being traversed.","","    @param {Object} [thisObj] `this` object to use when executing _callback_.","    @return {Mixed} Returns `Tree.STOP_TRAVERSAL` if traversal was stopped;","        otherwise returns `undefined`.","    **/","    traverseNode: function (node, options, callback, thisObj) {","        // Allow callback as second argument.","        if (typeof options === 'function') {","            thisObj  = callback;","            callback = options;","            options  = {};","        }","","        options || (options = {});","","        var stop      = Tree.STOP_TRAVERSAL,","            unlimited = typeof options.depth === 'undefined';","","        if (callback.call(thisObj, node) === stop) {","            return stop;","        }","","        var children = node.children;","","        if (unlimited || options.depth > 0) {","            var childOptions = unlimited ? options : {depth: options.depth - 1};","","            for (var i = 0, len = children.length; i < len; i++) {","                if (this.traverseNode(children[i], childOptions, callback, thisObj) === stop) {","                    return stop;","                }","            }","        }","    },","","    // -- Protected Methods ----------------------------------------------------","","    /**","    Moves the specified node and all its children from another tree to this","    tree.","","    @method _adoptNode","    @param {Tree.Node} node Node to adopt.","    @param {Object} [options] Options to pass along to `removeNode()`.","    @protected","    **/","    _adoptNode: function (node, options) {","        var oldTree = node.tree;","","        if (oldTree === this) {","            return;","        }","","        for (var i = 0, len = node.children.length; i < len; i++) {","            this._adoptNode(node.children[i], {silent: true});","        }","","        oldTree.removeNode(node, options);","        delete oldTree._nodeMap[node.id];","","        // If this node isn't an instance of this tree's composed _nodeClass,","        // then we need to recreate it to avoid potentially breaking things in","        // really weird ways.","        if (!(node instanceof this._nodeClass)","                || oldTree._nodeClass !== this._nodeClass) {","","            node = this.createNode(node.toJSON());","        }","","        node.tree = this;","        this._nodeMap[node.id] = node;","    },","","    /**","    Composes a custom late-bound tree node class (if necessary) based on the","    classes specified in this Tree's `nodeClass` and `nodeExtensions`","    properties.","","    The composed class is stored in this Tree's `_nodeClass` property. If","    composition wasn't necessary, then `_nodeClass` will just be a reference to","    `nodeClass`.","","    @method _composeNodeClass","    @protected","    **/","    _composeNodeClass: function () {","        var nodeClass      = this.nodeClass,","            nodeExtensions = this.nodeExtensions,","            composedClass;","","        if (typeof nodeClass === 'string') {","            // Look for a namespaced node class on `Y`.","            nodeClass = Y.Object.getValue(Y, nodeClass.split('.'));","","            if (nodeClass) {","                this.nodeClass = nodeClass;","            } else {","                Y.error('Tree: Node class not found: ' + nodeClass);","                return;","            }","        }","","        if (!nodeExtensions.length) {","            this._nodeClass = nodeClass;","            return;","        }","","        // Compose a new class by mixing extensions into nodeClass.","        composedClass = function () {","            var extensions = composedClass._nodeExtensions;","","            nodeClass.apply(this, arguments);","","            for (var i = 0, len = extensions.length; i < len; i++) {","                extensions[i].apply(this, arguments);","            }","        };","","        Y.extend(composedClass, nodeClass);","","        for (var i = 0, len = nodeExtensions.length; i < len; i++) {","            Y.mix(composedClass.prototype, nodeExtensions[i].prototype, true);","        }","","        composedClass._nodeExtensions = nodeExtensions;","        this._nodeClass = composedClass;","    },","","    /**","    Utility method for lazily publishing and firing events.","","    @method _fireTreeEvent","    @param {String} name Event name to fire.","    @param {Object} facade Event facade.","    @param {Object} [options] Options.","        @param {Function} [options.defaultFn] Default handler for this event.","        @param {Boolean} [options.silent=false] Whether the default handler","            should be executed directly without actually firing the event.","    @chainable","    @protected","    **/","    _fireTreeEvent: function (name, facade, options) {","        if (options && options.silent) {","            if (options.defaultFn) {","                options.defaultFn.call(this, facade);","            }","        } else {","            if (options && options.defaultFn && !this._published[name]) {","                this._published[name] = this.publish(name, {","                    defaultFn: options.defaultFn","                });","            }","","            this.fire(name, facade);","        }","","        return this;","    },","","    /**","    Returns the default insertion index that should be used when _node_ is","    inserted as a child of _parent_ without an explicit index.","","    The primary purpose of this method is to serve as a hook point for","    extensions and plugins that need to customize insertion order.","","    @method _getDefaultNodeIndex","    @param {Tree.Node} parent Parent node.","    @param {Tree.Node} node Node being inserted.","    @param {Object} [options] Options passed to `insertNode()`.","    @return {Number} Index at which _node_ should be inserted into _parent_'s","        `children` array.","    @protected","    **/","    _getDefaultNodeIndex: function (parent/*, node, options*/) {","        return parent.children.length;","    },","","    /**","    Removes the specified node from its parent node if it has one.","","    @method _removeNodeFromParent","    @param {Tree.Node} node Node to remove.","    @protected","    **/","    _removeNodeFromParent: function (node) {","        var parent = node.parent,","            index;","","        if (parent) {","            index = parent.indexOf(node);","","            if (index > -1) {","                parent.children.splice(index, 1);","                parent._isIndexStale = true;","                node.parent = null;","            }","        }","    },","","    // -- Default Event Handlers -----------------------------------------------","    _defAddFn: function (e) {","        var node   = e.node,","            parent = e.parent;","","        // Remove the node from its existing parent if it has one.","        if (node.parent) {","            this._removeNodeFromParent(node);","        }","","        // Add the node to its new parent at the desired index.","        node.parent = parent;","        parent.children.splice(e.index, 0, node);","","        parent.canHaveChildren = true;","        parent._isIndexStale   = true;","    },","","    _defClearFn: function (e) {","        var newRootNode = e.rootNode;","","        if (this.rootNode) {","            this.destroyNode(this.rootNode, {silent: true});","        }","","        this._nodeMap = {};","        this._nodeMap[newRootNode.id] = newRootNode;","","        this.rootNode = newRootNode;","        this.children = newRootNode.children;","    },","","    _defRemoveFn: function (e) {","        var node = e.node;","","        if (e.destroy) {","            this.destroyNode(node, {silent: true});","        } else if (e.parent) {","            this._removeNodeFromParent(node);","        } else if (this.rootNode === node) {","            // Guess we'll need a new root node!","            this.rootNode = this.createNode(this._rootNodeConfig);","            this.children = this.rootNode.children;","        }","    }","}, {","    /**","    Return this value from a `Tree#traverseNode()` or `Tree.Node#traverse()`","    callback to immediately stop traversal.","","    @property STOP_TRAVERSAL","    @static","    **/","    STOP_TRAVERSAL: {}","});","","Y.Tree = Y.mix(Tree, Y.Tree);","","","}, '3.10.3', {\"requires\": [\"base-build\", \"tree-node\"]});","","}());"]};
 
11
}
 
12
var __cov_E5qBLl7EORwMNPeXoqY$7g = __coverage__['build/tree/tree.js'];
 
13
__cov_E5qBLl7EORwMNPeXoqY$7g.s['1']++;YUI.add('tree',function(Y,NAME){__cov_E5qBLl7EORwMNPeXoqY$7g.f['1']++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['2']++;var Lang=Y.Lang,EVT_ADD='add',EVT_CLEAR='clear',EVT_REMOVE='remove';__cov_E5qBLl7EORwMNPeXoqY$7g.s['3']++;var Tree=Y.Base.create('tree',Y.Base,[],{nodeClass:Y.Tree.Node,nodeExtensions:[],_isYUITree:true,_rootNodeConfig:{canHaveChildren:true},initializer:function(config){__cov_E5qBLl7EORwMNPeXoqY$7g.f['2']++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['4']++;(__cov_E5qBLl7EORwMNPeXoqY$7g.b['1'][0]++,config)||(__cov_E5qBLl7EORwMNPeXoqY$7g.b['1'][1]++,config={});__cov_E5qBLl7EORwMNPeXoqY$7g.s['5']++;if(config.nodeClass){__cov_E5qBLl7EORwMNPeXoqY$7g.b['2'][0]++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['6']++;this.nodeClass=config.nodeClass;}else{__cov_E5qBLl7EORwMNPeXoqY$7g.b['2'][1]++;}__cov_E5qBLl7EORwMNPeXoqY$7g.s['7']++;if(config.nodeExtensions){__cov_E5qBLl7EORwMNPeXoqY$7g.b['3'][0]++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['8']++;this.nodeExtensions=this.nodeExtensions.concat(config.nodeExtensions);}else{__cov_E5qBLl7EORwMNPeXoqY$7g.b['3'][1]++;}__cov_E5qBLl7EORwMNPeXoqY$7g.s['9']++;(__cov_E5qBLl7EORwMNPeXoqY$7g.b['4'][0]++,this._published)||(__cov_E5qBLl7EORwMNPeXoqY$7g.b['4'][1]++,this._published={});__cov_E5qBLl7EORwMNPeXoqY$7g.s['10']++;this._nodeMap={};__cov_E5qBLl7EORwMNPeXoqY$7g.s['11']++;this.onceAfter('initializedChange',function(){__cov_E5qBLl7EORwMNPeXoqY$7g.f['3']++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['12']++;this._composeNodeClass();__cov_E5qBLl7EORwMNPeXoqY$7g.s['13']++;this.clear(config.rootNode,{silent:true});__cov_E5qBLl7EORwMNPeXoqY$7g.s['14']++;if(config.nodes){__cov_E5qBLl7EORwMNPeXoqY$7g.b['5'][0]++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['15']++;this.insertNode(this.rootNode,config.nodes,{silent:true});}else{__cov_E5qBLl7EORwMNPeXoqY$7g.b['5'][1]++;}});},destructor:function(){__cov_E5qBLl7EORwMNPeXoqY$7g.f['4']++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['16']++;this.destroyNode(this.rootNode,{silent:true});__cov_E5qBLl7EORwMNPeXoqY$7g.s['17']++;this.children=null;__cov_E5qBLl7EORwMNPeXoqY$7g.s['18']++;this.rootNode=null;__cov_E5qBLl7EORwMNPeXoqY$7g.s['19']++;this._nodeClass=null;__cov_E5qBLl7EORwMNPeXoqY$7g.s['20']++;this._nodeMap=null;__cov_E5qBLl7EORwMNPeXoqY$7g.s['21']++;this._published=null;},appendNode:function(parent,node,options){__cov_E5qBLl7EORwMNPeXoqY$7g.f['5']++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['22']++;return this.insertNode(parent,node,Y.merge(options,{index:parent.children.length,src:'append'}));},clear:function(rootNode,options){__cov_E5qBLl7EORwMNPeXoqY$7g.f['6']++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['23']++;return this._fireTreeEvent(EVT_CLEAR,{rootNode:this.createNode((__cov_E5qBLl7EORwMNPeXoqY$7g.b['6'][0]++,rootNode)||(__cov_E5qBLl7EORwMNPeXoqY$7g.b['6'][1]++,this._rootNodeConfig)),src:(__cov_E5qBLl7EORwMNPeXoqY$7g.b['7'][0]++,options)&&(__cov_E5qBLl7EORwMNPeXoqY$7g.b['7'][1]++,options.src)},{defaultFn:this._defClearFn,silent:(__cov_E5qBLl7EORwMNPeXoqY$7g.b['8'][0]++,options)&&(__cov_E5qBLl7EORwMNPeXoqY$7g.b['8'][1]++,options.silent)});},createNode:function(config){__cov_E5qBLl7EORwMNPeXoqY$7g.f['7']++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['24']++;(__cov_E5qBLl7EORwMNPeXoqY$7g.b['9'][0]++,config)||(__cov_E5qBLl7EORwMNPeXoqY$7g.b['9'][1]++,config={});__cov_E5qBLl7EORwMNPeXoqY$7g.s['25']++;if(config._isYUITreeNode){__cov_E5qBLl7EORwMNPeXoqY$7g.b['10'][0]++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['26']++;this._adoptNode(config);__cov_E5qBLl7EORwMNPeXoqY$7g.s['27']++;return config;}else{__cov_E5qBLl7EORwMNPeXoqY$7g.b['10'][1]++;}__cov_E5qBLl7EORwMNPeXoqY$7g.s['28']++;if(config.children){__cov_E5qBLl7EORwMNPeXoqY$7g.b['11'][0]++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['29']++;var children=[];__cov_E5qBLl7EORwMNPeXoqY$7g.s['30']++;for(var i=0,len=config.children.length;i<len;i++){__cov_E5qBLl7EORwMNPeXoqY$7g.s['31']++;children.push(this.createNode(config.children[i]));}__cov_E5qBLl7EORwMNPeXoqY$7g.s['32']++;config=Y.merge(config,{children:children});}else{__cov_E5qBLl7EORwMNPeXoqY$7g.b['11'][1]++;}__cov_E5qBLl7EORwMNPeXoqY$7g.s['33']++;var node=new this._nodeClass(this,config);__cov_E5qBLl7EORwMNPeXoqY$7g.s['34']++;return this._nodeMap[node.id]=node;},destroyNode:function(node,options){__cov_E5qBLl7EORwMNPeXoqY$7g.f['8']++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['35']++;var child,i,len;__cov_E5qBLl7EORwMNPeXoqY$7g.s['36']++;(__cov_E5qBLl7EORwMNPeXoqY$7g.b['12'][0]++,options)||(__cov_E5qBLl7EORwMNPeXoqY$7g.b['12'][1]++,options={});__cov_E5qBLl7EORwMNPeXoqY$7g.s['37']++;for(i=0,len=node.children.length;i<len;i++){__cov_E5qBLl7EORwMNPeXoqY$7g.s['38']++;child=node.children[i];__cov_E5qBLl7EORwMNPeXoqY$7g.s['39']++;child.parent=null;__cov_E5qBLl7EORwMNPeXoqY$7g.s['40']++;this.destroyNode(child,options);}__cov_E5qBLl7EORwMNPeXoqY$7g.s['41']++;if(node.parent){__cov_E5qBLl7EORwMNPeXoqY$7g.b['13'][0]++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['42']++;this.removeNode(node,options);}else{__cov_E5qBLl7EORwMNPeXoqY$7g.b['13'][1]++;}__cov_E5qBLl7EORwMNPeXoqY$7g.s['43']++;node.children=null;__cov_E5qBLl7EORwMNPeXoqY$7g.s['44']++;node.data=null;__cov_E5qBLl7EORwMNPeXoqY$7g.s['45']++;node.state={destroyed:true};__cov_E5qBLl7EORwMNPeXoqY$7g.s['46']++;node.tree=null;__cov_E5qBLl7EORwMNPeXoqY$7g.s['47']++;node._htmlNode=null;__cov_E5qBLl7EORwMNPeXoqY$7g.s['48']++;node._indexMap=null;__cov_E5qBLl7EORwMNPeXoqY$7g.s['49']++;delete this._nodeMap[node.id];__cov_E5qBLl7EORwMNPeXoqY$7g.s['50']++;return this;},emptyNode:function(node,options){__cov_E5qBLl7EORwMNPeXoqY$7g.f['9']++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['51']++;var removed=[];__cov_E5qBLl7EORwMNPeXoqY$7g.s['52']++;while(node.children.length){__cov_E5qBLl7EORwMNPeXoqY$7g.s['53']++;removed.push(this.removeNode(node.children[0],options));}__cov_E5qBLl7EORwMNPeXoqY$7g.s['54']++;return removed;},findNode:function(node,options,callback,thisObj){__cov_E5qBLl7EORwMNPeXoqY$7g.f['10']++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['55']++;var match=null;__cov_E5qBLl7EORwMNPeXoqY$7g.s['56']++;if(typeof options==='function'){__cov_E5qBLl7EORwMNPeXoqY$7g.b['14'][0]++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['57']++;thisObj=callback;__cov_E5qBLl7EORwMNPeXoqY$7g.s['58']++;callback=options;__cov_E5qBLl7EORwMNPeXoqY$7g.s['59']++;options={};}else{__cov_E5qBLl7EORwMNPeXoqY$7g.b['14'][1]++;}__cov_E5qBLl7EORwMNPeXoqY$7g.s['60']++;this.traverseNode(node,options,function(descendant){__cov_E5qBLl7EORwMNPeXoqY$7g.f['11']++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['61']++;if(callback.call(thisObj,descendant)){__cov_E5qBLl7EORwMNPeXoqY$7g.b['15'][0]++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['62']++;match=descendant;__cov_E5qBLl7EORwMNPeXoqY$7g.s['63']++;return Tree.STOP_TRAVERSAL;}else{__cov_E5qBLl7EORwMNPeXoqY$7g.b['15'][1]++;}});__cov_E5qBLl7EORwMNPeXoqY$7g.s['64']++;return match;},getNodeById:function(id){__cov_E5qBLl7EORwMNPeXoqY$7g.f['12']++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['65']++;return this._nodeMap[id];},insertNode:function(parent,node,options){__cov_E5qBLl7EORwMNPeXoqY$7g.f['13']++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['66']++;(__cov_E5qBLl7EORwMNPeXoqY$7g.b['16'][0]++,options)||(__cov_E5qBLl7EORwMNPeXoqY$7g.b['16'][1]++,options={});__cov_E5qBLl7EORwMNPeXoqY$7g.s['67']++;(__cov_E5qBLl7EORwMNPeXoqY$7g.b['17'][0]++,parent)||(__cov_E5qBLl7EORwMNPeXoqY$7g.b['17'][1]++,parent=this.rootNode);__cov_E5qBLl7EORwMNPeXoqY$7g.s['68']++;if((__cov_E5qBLl7EORwMNPeXoqY$7g.b['19'][0]++,'length'in node)&&(__cov_E5qBLl7EORwMNPeXoqY$7g.b['19'][1]++,Lang.isArray(node))){__cov_E5qBLl7EORwMNPeXoqY$7g.b['18'][0]++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['69']++;var inserted=[];__cov_E5qBLl7EORwMNPeXoqY$7g.s['70']++;for(var i=0,len=node.length;i<len;i++){__cov_E5qBLl7EORwMNPeXoqY$7g.s['71']++;inserted.push(this.insertNode(parent,node[i],options));__cov_E5qBLl7EORwMNPeXoqY$7g.s['72']++;if('index'in options){__cov_E5qBLl7EORwMNPeXoqY$7g.b['20'][0]++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['73']++;options.index+=1;}else{__cov_E5qBLl7EORwMNPeXoqY$7g.b['20'][1]++;}}__cov_E5qBLl7EORwMNPeXoqY$7g.s['74']++;return inserted;}else{__cov_E5qBLl7EORwMNPeXoqY$7g.b['18'][1]++;}__cov_E5qBLl7EORwMNPeXoqY$7g.s['75']++;node=this.createNode(node);__cov_E5qBLl7EORwMNPeXoqY$7g.s['76']++;var index=options.index;__cov_E5qBLl7EORwMNPeXoqY$7g.s['77']++;if(typeof index==='undefined'){__cov_E5qBLl7EORwMNPeXoqY$7g.b['21'][0]++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['78']++;index=this._getDefaultNodeIndex(parent,node,options);}else{__cov_E5qBLl7EORwMNPeXoqY$7g.b['21'][1]++;}__cov_E5qBLl7EORwMNPeXoqY$7g.s['79']++;this._fireTreeEvent(EVT_ADD,{index:index,node:node,parent:parent,src:(__cov_E5qBLl7EORwMNPeXoqY$7g.b['22'][0]++,options.src)||(__cov_E5qBLl7EORwMNPeXoqY$7g.b['22'][1]++,'insert')},{defaultFn:this._defAddFn,silent:options.silent});__cov_E5qBLl7EORwMNPeXoqY$7g.s['80']++;return node;},prependNode:function(parent,node,options){__cov_E5qBLl7EORwMNPeXoqY$7g.f['14']++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['81']++;return this.insertNode(parent,node,Y.merge(options,{index:0,src:'prepend'}));},removeNode:function(node,options){__cov_E5qBLl7EORwMNPeXoqY$7g.f['15']++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['82']++;(__cov_E5qBLl7EORwMNPeXoqY$7g.b['23'][0]++,options)||(__cov_E5qBLl7EORwMNPeXoqY$7g.b['23'][1]++,options={});__cov_E5qBLl7EORwMNPeXoqY$7g.s['83']++;this._fireTreeEvent(EVT_REMOVE,{destroy:!!options.destroy,node:node,parent:node.parent,src:(__cov_E5qBLl7EORwMNPeXoqY$7g.b['24'][0]++,options.src)||(__cov_E5qBLl7EORwMNPeXoqY$7g.b['24'][1]++,'remove')},{defaultFn:this._defRemoveFn,silent:options.silent});__cov_E5qBLl7EORwMNPeXoqY$7g.s['84']++;return node;},size:function(){__cov_E5qBLl7EORwMNPeXoqY$7g.f['16']++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['85']++;return this.rootNode.size()+1;},toJSON:function(){__cov_E5qBLl7EORwMNPeXoqY$7g.f['17']++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['86']++;return this.rootNode.toJSON();},traverseNode:function(node,options,callback,thisObj){__cov_E5qBLl7EORwMNPeXoqY$7g.f['18']++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['87']++;if(typeof options==='function'){__cov_E5qBLl7EORwMNPeXoqY$7g.b['25'][0]++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['88']++;thisObj=callback;__cov_E5qBLl7EORwMNPeXoqY$7g.s['89']++;callback=options;__cov_E5qBLl7EORwMNPeXoqY$7g.s['90']++;options={};}else{__cov_E5qBLl7EORwMNPeXoqY$7g.b['25'][1]++;}__cov_E5qBLl7EORwMNPeXoqY$7g.s['91']++;(__cov_E5qBLl7EORwMNPeXoqY$7g.b['26'][0]++,options)||(__cov_E5qBLl7EORwMNPeXoqY$7g.b['26'][1]++,options={});__cov_E5qBLl7EORwMNPeXoqY$7g.s['92']++;var stop=Tree.STOP_TRAVERSAL,unlimited=typeof options.depth==='undefined';__cov_E5qBLl7EORwMNPeXoqY$7g.s['93']++;if(callback.call(thisObj,node)===stop){__cov_E5qBLl7EORwMNPeXoqY$7g.b['27'][0]++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['94']++;return stop;}else{__cov_E5qBLl7EORwMNPeXoqY$7g.b['27'][1]++;}__cov_E5qBLl7EORwMNPeXoqY$7g.s['95']++;var children=node.children;__cov_E5qBLl7EORwMNPeXoqY$7g.s['96']++;if((__cov_E5qBLl7EORwMNPeXoqY$7g.b['29'][0]++,unlimited)||(__cov_E5qBLl7EORwMNPeXoqY$7g.b['29'][1]++,options.depth>0)){__cov_E5qBLl7EORwMNPeXoqY$7g.b['28'][0]++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['97']++;var childOptions=unlimited?(__cov_E5qBLl7EORwMNPeXoqY$7g.b['30'][0]++,options):(__cov_E5qBLl7EORwMNPeXoqY$7g.b['30'][1]++,{depth:options.depth-1});__cov_E5qBLl7EORwMNPeXoqY$7g.s['98']++;for(var i=0,len=children.length;i<len;i++){__cov_E5qBLl7EORwMNPeXoqY$7g.s['99']++;if(this.traverseNode(children[i],childOptions,callback,thisObj)===stop){__cov_E5qBLl7EORwMNPeXoqY$7g.b['31'][0]++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['100']++;return stop;}else{__cov_E5qBLl7EORwMNPeXoqY$7g.b['31'][1]++;}}}else{__cov_E5qBLl7EORwMNPeXoqY$7g.b['28'][1]++;}},_adoptNode:function(node,options){__cov_E5qBLl7EORwMNPeXoqY$7g.f['19']++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['101']++;var oldTree=node.tree;__cov_E5qBLl7EORwMNPeXoqY$7g.s['102']++;if(oldTree===this){__cov_E5qBLl7EORwMNPeXoqY$7g.b['32'][0]++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['103']++;return;}else{__cov_E5qBLl7EORwMNPeXoqY$7g.b['32'][1]++;}__cov_E5qBLl7EORwMNPeXoqY$7g.s['104']++;for(var i=0,len=node.children.length;i<len;i++){__cov_E5qBLl7EORwMNPeXoqY$7g.s['105']++;this._adoptNode(node.children[i],{silent:true});}__cov_E5qBLl7EORwMNPeXoqY$7g.s['106']++;oldTree.removeNode(node,options);__cov_E5qBLl7EORwMNPeXoqY$7g.s['107']++;delete oldTree._nodeMap[node.id];__cov_E5qBLl7EORwMNPeXoqY$7g.s['108']++;if((__cov_E5qBLl7EORwMNPeXoqY$7g.b['34'][0]++,!(node instanceof this._nodeClass))||(__cov_E5qBLl7EORwMNPeXoqY$7g.b['34'][1]++,oldTree._nodeClass!==this._nodeClass)){__cov_E5qBLl7EORwMNPeXoqY$7g.b['33'][0]++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['109']++;node=this.createNode(node.toJSON());}else{__cov_E5qBLl7EORwMNPeXoqY$7g.b['33'][1]++;}__cov_E5qBLl7EORwMNPeXoqY$7g.s['110']++;node.tree=this;__cov_E5qBLl7EORwMNPeXoqY$7g.s['111']++;this._nodeMap[node.id]=node;},_composeNodeClass:function(){__cov_E5qBLl7EORwMNPeXoqY$7g.f['20']++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['112']++;var nodeClass=this.nodeClass,nodeExtensions=this.nodeExtensions,composedClass;__cov_E5qBLl7EORwMNPeXoqY$7g.s['113']++;if(typeof nodeClass==='string'){__cov_E5qBLl7EORwMNPeXoqY$7g.b['35'][0]++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['114']++;nodeClass=Y.Object.getValue(Y,nodeClass.split('.'));__cov_E5qBLl7EORwMNPeXoqY$7g.s['115']++;if(nodeClass){__cov_E5qBLl7EORwMNPeXoqY$7g.b['36'][0]++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['116']++;this.nodeClass=nodeClass;}else{__cov_E5qBLl7EORwMNPeXoqY$7g.b['36'][1]++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['117']++;Y.error('Tree: Node class not found: '+nodeClass);__cov_E5qBLl7EORwMNPeXoqY$7g.s['118']++;return;}}else{__cov_E5qBLl7EORwMNPeXoqY$7g.b['35'][1]++;}__cov_E5qBLl7EORwMNPeXoqY$7g.s['119']++;if(!nodeExtensions.length){__cov_E5qBLl7EORwMNPeXoqY$7g.b['37'][0]++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['120']++;this._nodeClass=nodeClass;__cov_E5qBLl7EORwMNPeXoqY$7g.s['121']++;return;}else{__cov_E5qBLl7EORwMNPeXoqY$7g.b['37'][1]++;}__cov_E5qBLl7EORwMNPeXoqY$7g.s['122']++;composedClass=function(){__cov_E5qBLl7EORwMNPeXoqY$7g.f['21']++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['123']++;var extensions=composedClass._nodeExtensions;__cov_E5qBLl7EORwMNPeXoqY$7g.s['124']++;nodeClass.apply(this,arguments);__cov_E5qBLl7EORwMNPeXoqY$7g.s['125']++;for(var i=0,len=extensions.length;i<len;i++){__cov_E5qBLl7EORwMNPeXoqY$7g.s['126']++;extensions[i].apply(this,arguments);}};__cov_E5qBLl7EORwMNPeXoqY$7g.s['127']++;Y.extend(composedClass,nodeClass);__cov_E5qBLl7EORwMNPeXoqY$7g.s['128']++;for(var i=0,len=nodeExtensions.length;i<len;i++){__cov_E5qBLl7EORwMNPeXoqY$7g.s['129']++;Y.mix(composedClass.prototype,nodeExtensions[i].prototype,true);}__cov_E5qBLl7EORwMNPeXoqY$7g.s['130']++;composedClass._nodeExtensions=nodeExtensions;__cov_E5qBLl7EORwMNPeXoqY$7g.s['131']++;this._nodeClass=composedClass;},_fireTreeEvent:function(name,facade,options){__cov_E5qBLl7EORwMNPeXoqY$7g.f['22']++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['132']++;if((__cov_E5qBLl7EORwMNPeXoqY$7g.b['39'][0]++,options)&&(__cov_E5qBLl7EORwMNPeXoqY$7g.b['39'][1]++,options.silent)){__cov_E5qBLl7EORwMNPeXoqY$7g.b['38'][0]++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['133']++;if(options.defaultFn){__cov_E5qBLl7EORwMNPeXoqY$7g.b['40'][0]++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['134']++;options.defaultFn.call(this,facade);}else{__cov_E5qBLl7EORwMNPeXoqY$7g.b['40'][1]++;}}else{__cov_E5qBLl7EORwMNPeXoqY$7g.b['38'][1]++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['135']++;if((__cov_E5qBLl7EORwMNPeXoqY$7g.b['42'][0]++,options)&&(__cov_E5qBLl7EORwMNPeXoqY$7g.b['42'][1]++,options.defaultFn)&&(__cov_E5qBLl7EORwMNPeXoqY$7g.b['42'][2]++,!this._published[name])){__cov_E5qBLl7EORwMNPeXoqY$7g.b['41'][0]++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['136']++;this._published[name]=this.publish(name,{defaultFn:options.defaultFn});}else{__cov_E5qBLl7EORwMNPeXoqY$7g.b['41'][1]++;}__cov_E5qBLl7EORwMNPeXoqY$7g.s['137']++;this.fire(name,facade);}__cov_E5qBLl7EORwMNPeXoqY$7g.s['138']++;return this;},_getDefaultNodeIndex:function(parent){__cov_E5qBLl7EORwMNPeXoqY$7g.f['23']++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['139']++;return parent.children.length;},_removeNodeFromParent:function(node){__cov_E5qBLl7EORwMNPeXoqY$7g.f['24']++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['140']++;var parent=node.parent,index;__cov_E5qBLl7EORwMNPeXoqY$7g.s['141']++;if(parent){__cov_E5qBLl7EORwMNPeXoqY$7g.b['43'][0]++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['142']++;index=parent.indexOf(node);__cov_E5qBLl7EORwMNPeXoqY$7g.s['143']++;if(index>-1){__cov_E5qBLl7EORwMNPeXoqY$7g.b['44'][0]++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['144']++;parent.children.splice(index,1);__cov_E5qBLl7EORwMNPeXoqY$7g.s['145']++;parent._isIndexStale=true;__cov_E5qBLl7EORwMNPeXoqY$7g.s['146']++;node.parent=null;}else{__cov_E5qBLl7EORwMNPeXoqY$7g.b['44'][1]++;}}else{__cov_E5qBLl7EORwMNPeXoqY$7g.b['43'][1]++;}},_defAddFn:function(e){__cov_E5qBLl7EORwMNPeXoqY$7g.f['25']++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['147']++;var node=e.node,parent=e.parent;__cov_E5qBLl7EORwMNPeXoqY$7g.s['148']++;if(node.parent){__cov_E5qBLl7EORwMNPeXoqY$7g.b['45'][0]++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['149']++;this._removeNodeFromParent(node);}else{__cov_E5qBLl7EORwMNPeXoqY$7g.b['45'][1]++;}__cov_E5qBLl7EORwMNPeXoqY$7g.s['150']++;node.parent=parent;__cov_E5qBLl7EORwMNPeXoqY$7g.s['151']++;parent.children.splice(e.index,0,node);__cov_E5qBLl7EORwMNPeXoqY$7g.s['152']++;parent.canHaveChildren=true;__cov_E5qBLl7EORwMNPeXoqY$7g.s['153']++;parent._isIndexStale=true;},_defClearFn:function(e){__cov_E5qBLl7EORwMNPeXoqY$7g.f['26']++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['154']++;var newRootNode=e.rootNode;__cov_E5qBLl7EORwMNPeXoqY$7g.s['155']++;if(this.rootNode){__cov_E5qBLl7EORwMNPeXoqY$7g.b['46'][0]++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['156']++;this.destroyNode(this.rootNode,{silent:true});}else{__cov_E5qBLl7EORwMNPeXoqY$7g.b['46'][1]++;}__cov_E5qBLl7EORwMNPeXoqY$7g.s['157']++;this._nodeMap={};__cov_E5qBLl7EORwMNPeXoqY$7g.s['158']++;this._nodeMap[newRootNode.id]=newRootNode;__cov_E5qBLl7EORwMNPeXoqY$7g.s['159']++;this.rootNode=newRootNode;__cov_E5qBLl7EORwMNPeXoqY$7g.s['160']++;this.children=newRootNode.children;},_defRemoveFn:function(e){__cov_E5qBLl7EORwMNPeXoqY$7g.f['27']++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['161']++;var node=e.node;__cov_E5qBLl7EORwMNPeXoqY$7g.s['162']++;if(e.destroy){__cov_E5qBLl7EORwMNPeXoqY$7g.b['47'][0]++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['163']++;this.destroyNode(node,{silent:true});}else{__cov_E5qBLl7EORwMNPeXoqY$7g.b['47'][1]++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['164']++;if(e.parent){__cov_E5qBLl7EORwMNPeXoqY$7g.b['48'][0]++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['165']++;this._removeNodeFromParent(node);}else{__cov_E5qBLl7EORwMNPeXoqY$7g.b['48'][1]++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['166']++;if(this.rootNode===node){__cov_E5qBLl7EORwMNPeXoqY$7g.b['49'][0]++;__cov_E5qBLl7EORwMNPeXoqY$7g.s['167']++;this.rootNode=this.createNode(this._rootNodeConfig);__cov_E5qBLl7EORwMNPeXoqY$7g.s['168']++;this.children=this.rootNode.children;}else{__cov_E5qBLl7EORwMNPeXoqY$7g.b['49'][1]++;}}}}},{STOP_TRAVERSAL:{}});__cov_E5qBLl7EORwMNPeXoqY$7g.s['169']++;Y.Tree=Y.mix(Tree,Y.Tree);},'3.10.3',{'requires':['base-build','tree-node']});