NOBUG: Fixed file access permissions
[moodle.git] / lib / yuilib / 3.13.0 / datatable-body / datatable-body-coverage.js
blob831d5b975a89f9eee4d15b862f2377f0cd808735
1 /*
2 YUI 3.13.0 (build 508226d)
3 Copyright 2013 Yahoo! Inc. All rights reserved.
4 Licensed under the BSD License.
5 http://yuilibrary.com/license/
6 */
8 if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
9 if (!__coverage__['build/datatable-body/datatable-body.js']) {
10    __coverage__['build/datatable-body/datatable-body.js'] = {"path":"build/datatable-body/datatable-body.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,"170":0,"171":0,"172":0,"173":0,"174":0,"175":0,"176":0,"177":0,"178":0,"179":0,"180":0,"181":0,"182":0,"183":0,"184":0,"185":0,"186":0,"187":0,"188":0,"189":0,"190":0,"191":0,"192":0,"193":0,"194":0,"195":0,"196":0,"197":0,"198":0,"199":0,"200":0,"201":0,"202":0,"203":0,"204":0,"205":0,"206":0,"207":0,"208":0,"209":0,"210":0,"211":0,"212":0,"213":0,"214":0,"215":0,"216":0,"217":0,"218":0,"219":0,"220":0,"221":0,"222":0,"223":0,"224":0,"225":0,"226":0,"227":0,"228":0,"229":0,"230":0,"231":0,"232":0,"233":0,"234":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,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,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],"50":[0,0],"51":[0,0,0,0],"52":[0,0],"53":[0,0],"54":[0,0],"55":[0,0],"56":[0,0,0,0],"57":[0,0],"58":[0,0],"59":[0,0],"60":[0,0],"61":[0,0],"62":[0,0],"63":[0,0],"64":[0,0],"65":[0,0],"66":[0,0],"67":[0,0],"68":[0,0],"69":[0,0],"70":[0,0],"71":[0,0],"72":[0,0],"73":[0,0],"74":[0,0],"75":[0,0],"76":[0,0],"77":[0,0],"78":[0,0],"79":[0,0],"80":[0,0],"81":[0,0,0],"82":[0,0],"83":[0,0],"84":[0,0],"85":[0,0],"86":[0,0],"87":[0,0],"88":[0,0],"89":[0,0],"90":[0,0],"91":[0,0],"92":[0,0],"93":[0,0],"94":[0,0],"95":[0,0],"96":[0,0],"97":[0,0],"98":[0,0],"99":[0,0],"100":[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,"28":0,"29":0,"30":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":26},"end":{"line":1,"column":45}}},"2":{"name":"(anonymous_2)","line":214,"loc":{"start":{"line":214,"column":13},"end":{"line":214,"column":36}}},"3":{"name":"(anonymous_3)","line":267,"loc":{"start":{"line":267,"column":18},"end":{"line":267,"column":30}}},"4":{"name":"(anonymous_4)","line":292,"loc":{"start":{"line":292,"column":15},"end":{"line":292,"column":31}}},"5":{"name":"(anonymous_5)","line":304,"loc":{"start":{"line":304,"column":36},"end":{"line":304,"column":52}}},"6":{"name":"(anonymous_6)","line":326,"loc":{"start":{"line":326,"column":12},"end":{"line":326,"column":26}}},"7":{"name":"(anonymous_7)","line":433,"loc":{"start":{"line":433,"column":12},"end":{"line":433,"column":24}}},"8":{"name":"(anonymous_8)","line":469,"loc":{"start":{"line":469,"column":16},"end":{"line":469,"column":47}}},"9":{"name":"(anonymous_9)","line":497,"loc":{"start":{"line":497,"column":17},"end":{"line":497,"column":45}}},"10":{"name":"(anonymous_10)","line":578,"loc":{"start":{"line":578,"column":15},"end":{"line":578,"column":31}}},"11":{"name":"(anonymous_11)","line":592,"loc":{"start":{"line":592,"column":34},"end":{"line":592,"column":50}}},"12":{"name":"(anonymous_12)","line":618,"loc":{"start":{"line":618,"column":25},"end":{"line":618,"column":37}}},"13":{"name":"(anonymous_13)","line":632,"loc":{"start":{"line":632,"column":22},"end":{"line":632,"column":35}}},"14":{"name":"(anonymous_14)","line":704,"loc":{"start":{"line":704,"column":15},"end":{"line":704,"column":32}}},"15":{"name":"(anonymous_15)","line":715,"loc":{"start":{"line":715,"column":34},"end":{"line":715,"column":46}}},"16":{"name":"(anonymous_16)","line":728,"loc":{"start":{"line":728,"column":30},"end":{"line":728,"column":48}}},"17":{"name":"(anonymous_17)","line":753,"loc":{"start":{"line":753,"column":27},"end":{"line":753,"column":39}}},"18":{"name":"(anonymous_18)","line":777,"loc":{"start":{"line":777,"column":26},"end":{"line":777,"column":56}}},"19":{"name":"(anonymous_19)","line":794,"loc":{"start":{"line":794,"column":22},"end":{"line":794,"column":47}}},"20":{"name":"(anonymous_20)","line":841,"loc":{"start":{"line":841,"column":12},"end":{"line":841,"column":24}}},"21":{"name":"(anonymous_21)","line":872,"loc":{"start":{"line":872,"column":21},"end":{"line":872,"column":44}}},"22":{"name":"(anonymous_22)","line":877,"loc":{"start":{"line":877,"column":22},"end":{"line":877,"column":46}}},"23":{"name":"(anonymous_23)","line":920,"loc":{"start":{"line":920,"column":20},"end":{"line":920,"column":57}}},"24":{"name":"(anonymous_24)","line":983,"loc":{"start":{"line":983,"column":18},"end":{"line":983,"column":33}}},"25":{"name":"(anonymous_25)","line":1017,"loc":{"start":{"line":1017,"column":24},"end":{"line":1017,"column":47}}},"26":{"name":"(anonymous_26)","line":1067,"loc":{"start":{"line":1067,"column":28},"end":{"line":1067,"column":51}}},"27":{"name":"(anonymous_27)","line":1098,"loc":{"start":{"line":1098,"column":22},"end":{"line":1098,"column":34}}},"28":{"name":"(anonymous_28)","line":1111,"loc":{"start":{"line":1111,"column":16},"end":{"line":1111,"column":28}}},"29":{"name":"(anonymous_29)","line":1135,"loc":{"start":{"line":1135,"column":15},"end":{"line":1135,"column":35}}},"30":{"name":"(anonymous_30)","line":1161,"loc":{"start":{"line":1161,"column":17},"end":{"line":1161,"column":35}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1204,"column":75}},"2":{"start":{"line":11,"column":0},"end":{"line":21,"column":40}},"3":{"start":{"line":116,"column":0},"end":{"line":1201,"column":3}},"4":{"start":{"line":215,"column":8},"end":{"line":216,"column":45}},"5":{"start":{"line":218,"column":8},"end":{"line":247,"column":9}},"6":{"start":{"line":219,"column":12},"end":{"line":224,"column":13}},"7":{"start":{"line":220,"column":16},"end":{"line":220,"column":58}},"8":{"start":{"line":221,"column":16},"end":{"line":221,"column":64}},"9":{"start":{"line":222,"column":19},"end":{"line":224,"column":13}},"10":{"start":{"line":223,"column":16},"end":{"line":223,"column":76}},"11":{"start":{"line":226,"column":12},"end":{"line":246,"column":13}},"12":{"start":{"line":227,"column":16},"end":{"line":227,"column":66}},"13":{"start":{"line":228,"column":16},"end":{"line":236,"column":17}},"14":{"start":{"line":230,"column":20},"end":{"line":235,"column":21}},"15":{"start":{"line":231,"column":41},"end":{"line":231,"column":57}},"16":{"start":{"line":231,"column":58},"end":{"line":231,"column":64}},"17":{"start":{"line":232,"column":41},"end":{"line":232,"column":56}},"18":{"start":{"line":232,"column":57},"end":{"line":232,"column":63}},"19":{"start":{"line":233,"column":41},"end":{"line":233,"column":56}},"20":{"start":{"line":233,"column":57},"end":{"line":233,"column":63}},"21":{"start":{"line":234,"column":41},"end":{"line":234,"column":57}},"22":{"start":{"line":234,"column":58},"end":{"line":234,"column":64}},"23":{"start":{"line":238,"column":16},"end":{"line":245,"column":17}},"24":{"start":{"line":239,"column":20},"end":{"line":240,"column":58}},"25":{"start":{"line":241,"column":20},"end":{"line":241,"column":62}},"26":{"start":{"line":243,"column":20},"end":{"line":243,"column":61}},"27":{"start":{"line":244,"column":20},"end":{"line":244,"column":67}},"28":{"start":{"line":249,"column":8},"end":{"line":249,"column":28}},"29":{"start":{"line":268,"column":8},"end":{"line":269,"column":17}},"30":{"start":{"line":271,"column":8},"end":{"line":278,"column":9}},"31":{"start":{"line":272,"column":12},"end":{"line":272,"column":60}},"32":{"start":{"line":274,"column":12},"end":{"line":274,"column":38}},"33":{"start":{"line":275,"column":12},"end":{"line":275,"column":48}},"34":{"start":{"line":276,"column":12},"end":{"line":277,"column":49}},"35":{"start":{"line":293,"column":8},"end":{"line":296,"column":19}},"36":{"start":{"line":298,"column":8},"end":{"line":311,"column":9}},"37":{"start":{"line":299,"column":12},"end":{"line":301,"column":13}},"38":{"start":{"line":300,"column":16},"end":{"line":300,"column":45}},"39":{"start":{"line":303,"column":12},"end":{"line":310,"column":13}},"40":{"start":{"line":304,"column":16},"end":{"line":306,"column":25}},"41":{"start":{"line":305,"column":20},"end":{"line":305,"column":67}},"42":{"start":{"line":308,"column":16},"end":{"line":309,"column":72}},"43":{"start":{"line":313,"column":8},"end":{"line":313,"column":30}},"44":{"start":{"line":327,"column":8},"end":{"line":328,"column":23}},"45":{"start":{"line":330,"column":8},"end":{"line":338,"column":9}},"46":{"start":{"line":331,"column":12},"end":{"line":333,"column":13}},"47":{"start":{"line":332,"column":16},"end":{"line":332,"column":73}},"48":{"start":{"line":335,"column":12},"end":{"line":337,"column":36}},"49":{"start":{"line":340,"column":8},"end":{"line":340,"column":19}},"50":{"start":{"line":434,"column":8},"end":{"line":438,"column":65}},"51":{"start":{"line":441,"column":8},"end":{"line":441,"column":45}},"52":{"start":{"line":443,"column":8},"end":{"line":447,"column":9}},"53":{"start":{"line":444,"column":12},"end":{"line":444,"column":61}},"54":{"start":{"line":446,"column":12},"end":{"line":446,"column":58}},"55":{"start":{"line":449,"column":8},"end":{"line":451,"column":9}},"56":{"start":{"line":450,"column":12},"end":{"line":450,"column":37}},"57":{"start":{"line":453,"column":8},"end":{"line":453,"column":22}},"58":{"start":{"line":455,"column":8},"end":{"line":455,"column":20}},"59":{"start":{"line":470,"column":8},"end":{"line":473,"column":14}},"60":{"start":{"line":475,"column":8},"end":{"line":479,"column":9}},"61":{"start":{"line":476,"column":12},"end":{"line":476,"column":45}},"62":{"start":{"line":477,"column":12},"end":{"line":477,"column":79}},"63":{"start":{"line":478,"column":12},"end":{"line":478,"column":42}},"64":{"start":{"line":481,"column":8},"end":{"line":481,"column":20}},"65":{"start":{"line":498,"column":8},"end":{"line":501,"column":34}},"66":{"start":{"line":503,"column":8},"end":{"line":503,"column":34}},"67":{"start":{"line":505,"column":8},"end":{"line":505,"column":48}},"68":{"start":{"line":506,"column":8},"end":{"line":506,"column":44}},"69":{"start":{"line":509,"column":8},"end":{"line":564,"column":9}},"70":{"start":{"line":510,"column":12},"end":{"line":518,"column":14}},"71":{"start":{"line":520,"column":12},"end":{"line":520,"column":62}},"72":{"start":{"line":522,"column":12},"end":{"line":529,"column":13}},"73":{"start":{"line":528,"column":16},"end":{"line":528,"column":35}},"74":{"start":{"line":531,"column":15},"end":{"line":564,"column":9}},"75":{"start":{"line":532,"column":12},"end":{"line":534,"column":13}},"76":{"start":{"line":533,"column":16},"end":{"line":533,"column":60}},"77":{"start":{"line":536,"column":12},"end":{"line":536,"column":51}},"78":{"start":{"line":538,"column":12},"end":{"line":556,"column":13}},"79":{"start":{"line":539,"column":16},"end":{"line":547,"column":18}},"80":{"start":{"line":550,"column":16},"end":{"line":550,"column":76}},"81":{"start":{"line":553,"column":16},"end":{"line":555,"column":17}},"82":{"start":{"line":554,"column":20},"end":{"line":554,"column":50}},"83":{"start":{"line":558,"column":12},"end":{"line":560,"column":13}},"84":{"start":{"line":559,"column":16},"end":{"line":559,"column":51}},"85":{"start":{"line":563,"column":12},"end":{"line":563,"column":64}},"86":{"start":{"line":566,"column":8},"end":{"line":566,"column":71}},"87":{"start":{"line":568,"column":8},"end":{"line":568,"column":20}},"88":{"start":{"line":579,"column":8},"end":{"line":584,"column":9}},"89":{"start":{"line":581,"column":12},"end":{"line":583,"column":17}},"90":{"start":{"line":586,"column":8},"end":{"line":588,"column":9}},"91":{"start":{"line":587,"column":12},"end":{"line":587,"column":46}},"92":{"start":{"line":589,"column":8},"end":{"line":590,"column":23}},"93":{"start":{"line":592,"column":8},"end":{"line":597,"column":11}},"94":{"start":{"line":593,"column":12},"end":{"line":596,"column":13}},"95":{"start":{"line":594,"column":16},"end":{"line":594,"column":27}},"96":{"start":{"line":595,"column":16},"end":{"line":595,"column":28}},"97":{"start":{"line":599,"column":8},"end":{"line":599,"column":19}},"98":{"start":{"line":619,"column":8},"end":{"line":619,"column":22}},"99":{"start":{"line":633,"column":8},"end":{"line":641,"column":16}},"100":{"start":{"line":643,"column":8},"end":{"line":655,"column":9}},"101":{"start":{"line":644,"column":12},"end":{"line":644,"column":33}},"102":{"start":{"line":650,"column":12},"end":{"line":654,"column":13}},"103":{"start":{"line":651,"column":16},"end":{"line":651,"column":30}},"104":{"start":{"line":652,"column":16},"end":{"line":652,"column":45}},"105":{"start":{"line":653,"column":16},"end":{"line":653,"column":23}},"106":{"start":{"line":658,"column":8},"end":{"line":686,"column":9}},"107":{"start":{"line":660,"column":16},"end":{"line":666,"column":17}},"108":{"start":{"line":661,"column":20},"end":{"line":661,"column":41}},"109":{"start":{"line":662,"column":20},"end":{"line":662,"column":34}},"110":{"start":{"line":663,"column":20},"end":{"line":665,"column":21}},"111":{"start":{"line":664,"column":24},"end":{"line":664,"column":42}},"112":{"start":{"line":667,"column":16},"end":{"line":667,"column":74}},"113":{"start":{"line":668,"column":16},"end":{"line":668,"column":22}},"114":{"start":{"line":671,"column":16},"end":{"line":671,"column":75}},"115":{"start":{"line":674,"column":16},"end":{"line":674,"column":57}},"116":{"start":{"line":675,"column":16},"end":{"line":675,"column":86}},"117":{"start":{"line":676,"column":16},"end":{"line":676,"column":50}},"118":{"start":{"line":677,"column":16},"end":{"line":677,"column":38}},"119":{"start":{"line":678,"column":16},"end":{"line":678,"column":22}},"120":{"start":{"line":680,"column":16},"end":{"line":680,"column":48}},"121":{"start":{"line":682,"column":16},"end":{"line":682,"column":42}},"122":{"start":{"line":683,"column":16},"end":{"line":683,"column":22}},"123":{"start":{"line":685,"column":16},"end":{"line":685,"column":30}},"124":{"start":{"line":690,"column":8},"end":{"line":690,"column":37}},"125":{"start":{"line":705,"column":8},"end":{"line":706,"column":17}},"126":{"start":{"line":709,"column":8},"end":{"line":709,"column":39}},"127":{"start":{"line":711,"column":8},"end":{"line":739,"column":9}},"128":{"start":{"line":712,"column":12},"end":{"line":712,"column":24}},"129":{"start":{"line":714,"column":12},"end":{"line":736,"column":14}},"130":{"start":{"line":717,"column":20},"end":{"line":720,"column":21}},"131":{"start":{"line":718,"column":24},"end":{"line":718,"column":50}},"132":{"start":{"line":719,"column":24},"end":{"line":719,"column":31}},"133":{"start":{"line":722,"column":20},"end":{"line":724,"column":57}},"134":{"start":{"line":726,"column":20},"end":{"line":730,"column":27}},"135":{"start":{"line":729,"column":28},"end":{"line":729,"column":86}},"136":{"start":{"line":732,"column":20},"end":{"line":732,"column":46}},"137":{"start":{"line":738,"column":12},"end":{"line":738,"column":53}},"138":{"start":{"line":754,"column":8},"end":{"line":754,"column":41}},"139":{"start":{"line":756,"column":8},"end":{"line":760,"column":9}},"140":{"start":{"line":757,"column":12},"end":{"line":757,"column":40}},"141":{"start":{"line":758,"column":12},"end":{"line":758,"column":38}},"142":{"start":{"line":759,"column":12},"end":{"line":759,"column":26}},"143":{"start":{"line":762,"column":8},"end":{"line":764,"column":9}},"144":{"start":{"line":763,"column":12},"end":{"line":763,"column":26}},"145":{"start":{"line":778,"column":8},"end":{"line":782,"column":25}},"146":{"start":{"line":785,"column":8},"end":{"line":789,"column":9}},"147":{"start":{"line":786,"column":12},"end":{"line":788,"column":13}},"148":{"start":{"line":787,"column":16},"end":{"line":787,"column":35}},"149":{"start":{"line":791,"column":8},"end":{"line":831,"column":9}},"150":{"start":{"line":792,"column":12},"end":{"line":792,"column":43}},"151":{"start":{"line":794,"column":12},"end":{"line":830,"column":15}},"152":{"start":{"line":795,"column":16},"end":{"line":801,"column":56}},"153":{"start":{"line":804,"column":16},"end":{"line":829,"column":17}},"154":{"start":{"line":805,"column":20},"end":{"line":805,"column":50}},"155":{"start":{"line":806,"column":20},"end":{"line":828,"column":21}},"156":{"start":{"line":807,"column":24},"end":{"line":807,"column":57}},"157":{"start":{"line":809,"column":24},"end":{"line":827,"column":25}},"158":{"start":{"line":810,"column":28},"end":{"line":810,"column":84}},"159":{"start":{"line":811,"column":28},"end":{"line":811,"column":52}},"160":{"start":{"line":813,"column":28},"end":{"line":813,"column":66}},"161":{"start":{"line":814,"column":28},"end":{"line":814,"column":55}},"162":{"start":{"line":815,"column":28},"end":{"line":815,"column":79}},"163":{"start":{"line":817,"column":28},"end":{"line":817,"column":78}},"164":{"start":{"line":819,"column":28},"end":{"line":826,"column":29}},"165":{"start":{"line":825,"column":32},"end":{"line":825,"column":51}},"166":{"start":{"line":842,"column":8},"end":{"line":844,"column":59}},"167":{"start":{"line":846,"column":8},"end":{"line":849,"column":9}},"168":{"start":{"line":847,"column":12},"end":{"line":848,"column":51}},"169":{"start":{"line":851,"column":8},"end":{"line":855,"column":9}},"170":{"start":{"line":852,"column":12},"end":{"line":854,"column":48}},"171":{"start":{"line":873,"column":8},"end":{"line":874,"column":22}},"172":{"start":{"line":876,"column":8},"end":{"line":880,"column":9}},"173":{"start":{"line":877,"column":12},"end":{"line":879,"column":21}},"174":{"start":{"line":878,"column":16},"end":{"line":878,"column":71}},"175":{"start":{"line":882,"column":8},"end":{"line":882,"column":20}},"176":{"start":{"line":921,"column":8},"end":{"line":929,"column":53}},"177":{"start":{"line":931,"column":8},"end":{"line":969,"column":9}},"178":{"start":{"line":932,"column":12},"end":{"line":932,"column":35}},"179":{"start":{"line":933,"column":12},"end":{"line":933,"column":34}},"180":{"start":{"line":934,"column":12},"end":{"line":934,"column":39}},"181":{"start":{"line":936,"column":12},"end":{"line":936,"column":46}},"182":{"start":{"line":938,"column":12},"end":{"line":959,"column":13}},"183":{"start":{"line":939,"column":16},"end":{"line":947,"column":18}},"184":{"start":{"line":950,"column":16},"end":{"line":950,"column":67}},"185":{"start":{"line":953,"column":16},"end":{"line":955,"column":17}},"186":{"start":{"line":954,"column":20},"end":{"line":954,"column":48}},"187":{"start":{"line":957,"column":16},"end":{"line":957,"column":71}},"188":{"start":{"line":958,"column":16},"end":{"line":958,"column":64}},"189":{"start":{"line":962,"column":12},"end":{"line":968,"column":13}},"190":{"start":{"line":963,"column":16},"end":{"line":965,"column":17}},"191":{"start":{"line":964,"column":20},"end":{"line":964,"column":53}},"192":{"start":{"line":967,"column":16},"end":{"line":967,"column":74}},"193":{"start":{"line":972,"column":8},"end":{"line":972,"column":63}},"194":{"start":{"line":974,"column":8},"end":{"line":974,"column":55}},"195":{"start":{"line":984,"column":8},"end":{"line":985,"column":22}},"196":{"start":{"line":987,"column":8},"end":{"line":1000,"column":9}},"197":{"start":{"line":990,"column":12},"end":{"line":992,"column":13}},"198":{"start":{"line":991,"column":16},"end":{"line":991,"column":28}},"199":{"start":{"line":996,"column":12},"end":{"line":999,"column":13}},"200":{"start":{"line":998,"column":16},"end":{"line":998,"column":24}},"201":{"start":{"line":1002,"column":8},"end":{"line":1002,"column":21}},"202":{"start":{"line":1018,"column":8},"end":{"line":1020,"column":69}},"203":{"start":{"line":1022,"column":8},"end":{"line":1022,"column":49}},"204":{"start":{"line":1024,"column":8},"end":{"line":1051,"column":9}},"205":{"start":{"line":1025,"column":12},"end":{"line":1025,"column":37}},"206":{"start":{"line":1026,"column":12},"end":{"line":1026,"column":30}},"207":{"start":{"line":1027,"column":12},"end":{"line":1027,"column":37}},"208":{"start":{"line":1028,"column":12},"end":{"line":1028,"column":41}},"209":{"start":{"line":1030,"column":12},"end":{"line":1031,"column":72}},"210":{"start":{"line":1033,"column":12},"end":{"line":1040,"column":14}},"211":{"start":{"line":1041,"column":12},"end":{"line":1043,"column":13}},"212":{"start":{"line":1042,"column":16},"end":{"line":1042,"column":94}},"213":{"start":{"line":1045,"column":12},"end":{"line":1048,"column":13}},"214":{"start":{"line":1047,"column":16},"end":{"line":1047,"column":41}},"215":{"start":{"line":1050,"column":12},"end":{"line":1050,"column":80}},"216":{"start":{"line":1053,"column":8},"end":{"line":1055,"column":11}},"217":{"start":{"line":1068,"column":8},"end":{"line":1072,"column":16}},"218":{"start":{"line":1074,"column":8},"end":{"line":1085,"column":9}},"219":{"start":{"line":1075,"column":12},"end":{"line":1075,"column":33}},"220":{"start":{"line":1076,"column":12},"end":{"line":1076,"column":38}},"221":{"start":{"line":1078,"column":12},"end":{"line":1084,"column":13}},"222":{"start":{"line":1079,"column":16},"end":{"line":1083,"column":17}},"223":{"start":{"line":1080,"column":20},"end":{"line":1080,"column":49}},"224":{"start":{"line":1081,"column":23},"end":{"line":1083,"column":17}},"225":{"start":{"line":1082,"column":20},"end":{"line":1082,"column":90}},"226":{"start":{"line":1087,"column":8},"end":{"line":1087,"column":27}},"227":{"start":{"line":1099,"column":8},"end":{"line":1101,"column":12}},"228":{"start":{"line":1112,"column":8},"end":{"line":1112,"column":73}},"229":{"start":{"line":1136,"column":8},"end":{"line":1136,"column":75}},"230":{"start":{"line":1162,"column":8},"end":{"line":1162,"column":32}},"231":{"start":{"line":1164,"column":8},"end":{"line":1167,"column":10}},"232":{"start":{"line":1168,"column":8},"end":{"line":1168,"column":25}},"233":{"start":{"line":1170,"column":8},"end":{"line":1170,"column":51}},"234":{"start":{"line":1171,"column":8},"end":{"line":1171,"column":52}}},"branchMap":{"1":{"line":218,"type":"if","locations":[{"start":{"line":218,"column":8},"end":{"line":218,"column":8}},{"start":{"line":218,"column":8},"end":{"line":218,"column":8}}]},"2":{"line":218,"type":"binary-expr","locations":[{"start":{"line":218,"column":12},"end":{"line":218,"column":16}},{"start":{"line":218,"column":20},"end":{"line":218,"column":25}}]},"3":{"line":219,"type":"if","locations":[{"start":{"line":219,"column":12},"end":{"line":219,"column":12}},{"start":{"line":219,"column":12},"end":{"line":219,"column":12}}]},"4":{"line":221,"type":"binary-expr","locations":[{"start":{"line":221,"column":23},"end":{"line":221,"column":26}},{"start":{"line":221,"column":30},"end":{"line":221,"column":63}}]},"5":{"line":222,"type":"if","locations":[{"start":{"line":222,"column":19},"end":{"line":222,"column":19}},{"start":{"line":222,"column":19},"end":{"line":222,"column":19}}]},"6":{"line":226,"type":"if","locations":[{"start":{"line":226,"column":12},"end":{"line":226,"column":12}},{"start":{"line":226,"column":12},"end":{"line":226,"column":12}}]},"7":{"line":226,"type":"binary-expr","locations":[{"start":{"line":226,"column":16},"end":{"line":226,"column":20}},{"start":{"line":226,"column":24},"end":{"line":226,"column":29}}]},"8":{"line":228,"type":"if","locations":[{"start":{"line":228,"column":16},"end":{"line":228,"column":16}},{"start":{"line":228,"column":16},"end":{"line":228,"column":16}}]},"9":{"line":230,"type":"switch","locations":[{"start":{"line":231,"column":24},"end":{"line":231,"column":64}},{"start":{"line":232,"column":24},"end":{"line":232,"column":63}},{"start":{"line":233,"column":24},"end":{"line":233,"column":63}},{"start":{"line":234,"column":24},"end":{"line":234,"column":64}}]},"10":{"line":238,"type":"if","locations":[{"start":{"line":238,"column":16},"end":{"line":238,"column":16}},{"start":{"line":238,"column":16},"end":{"line":238,"column":16}}]},"11":{"line":244,"type":"binary-expr","locations":[{"start":{"line":244,"column":28},"end":{"line":244,"column":31}},{"start":{"line":244,"column":35},"end":{"line":244,"column":66}}]},"12":{"line":249,"type":"binary-expr","locations":[{"start":{"line":249,"column":15},"end":{"line":249,"column":19}},{"start":{"line":249,"column":23},"end":{"line":249,"column":27}}]},"13":{"line":271,"type":"if","locations":[{"start":{"line":271,"column":8},"end":{"line":271,"column":8}},{"start":{"line":271,"column":8},"end":{"line":271,"column":8}}]},"14":{"line":271,"type":"binary-expr","locations":[{"start":{"line":271,"column":12},"end":{"line":271,"column":16}},{"start":{"line":271,"column":20},"end":{"line":271,"column":37}}]},"15":{"line":298,"type":"if","locations":[{"start":{"line":298,"column":8},"end":{"line":298,"column":8}},{"start":{"line":298,"column":8},"end":{"line":298,"column":8}}]},"16":{"line":299,"type":"if","locations":[{"start":{"line":299,"column":12},"end":{"line":299,"column":12}},{"start":{"line":299,"column":12},"end":{"line":299,"column":12}}]},"17":{"line":303,"type":"if","locations":[{"start":{"line":303,"column":12},"end":{"line":303,"column":12}},{"start":{"line":303,"column":12},"end":{"line":303,"column":12}}]},"18":{"line":308,"type":"binary-expr","locations":[{"start":{"line":308,"column":25},"end":{"line":308,"column":28}},{"start":{"line":309,"column":20},"end":{"line":309,"column":71}}]},"19":{"line":313,"type":"binary-expr","locations":[{"start":{"line":313,"column":15},"end":{"line":313,"column":21}},{"start":{"line":313,"column":25},"end":{"line":313,"column":29}}]},"20":{"line":330,"type":"if","locations":[{"start":{"line":330,"column":8},"end":{"line":330,"column":8}},{"start":{"line":330,"column":8},"end":{"line":330,"column":8}}]},"21":{"line":331,"type":"if","locations":[{"start":{"line":331,"column":12},"end":{"line":331,"column":12}},{"start":{"line":331,"column":12},"end":{"line":331,"column":12}}]},"22":{"line":332,"type":"binary-expr","locations":[{"start":{"line":332,"column":21},"end":{"line":332,"column":66}},{"start":{"line":332,"column":70},"end":{"line":332,"column":72}}]},"23":{"line":332,"type":"cond-expr","locations":[{"start":{"line":332,"column":42},"end":{"line":332,"column":60}},{"start":{"line":332,"column":63},"end":{"line":332,"column":65}}]},"24":{"line":335,"type":"cond-expr","locations":[{"start":{"line":336,"column":16},"end":{"line":336,"column":46}},{"start":{"line":337,"column":16},"end":{"line":337,"column":35}}]},"25":{"line":437,"type":"binary-expr","locations":[{"start":{"line":437,"column":22},"end":{"line":437,"column":36}},{"start":{"line":438,"column":23},"end":{"line":438,"column":63}}]},"26":{"line":443,"type":"if","locations":[{"start":{"line":443,"column":8},"end":{"line":443,"column":8}},{"start":{"line":443,"column":8},"end":{"line":443,"column":8}}]},"27":{"line":449,"type":"if","locations":[{"start":{"line":449,"column":8},"end":{"line":449,"column":8}},{"start":{"line":449,"column":8},"end":{"line":449,"column":8}}]},"28":{"line":477,"type":"binary-expr","locations":[{"start":{"line":477,"column":58},"end":{"line":477,"column":65}},{"start":{"line":477,"column":69},"end":{"line":477,"column":76}}]},"29":{"line":505,"type":"binary-expr","locations":[{"start":{"line":505,"column":8},"end":{"line":505,"column":13}},{"start":{"line":505,"column":18},"end":{"line":505,"column":46}}]},"30":{"line":506,"type":"binary-expr","locations":[{"start":{"line":506,"column":8},"end":{"line":506,"column":11}},{"start":{"line":506,"column":16},"end":{"line":506,"column":42}}]},"31":{"line":509,"type":"if","locations":[{"start":{"line":509,"column":8},"end":{"line":509,"column":8}},{"start":{"line":509,"column":8},"end":{"line":509,"column":8}}]},"32":{"line":511,"type":"binary-expr","locations":[{"start":{"line":511,"column":22},"end":{"line":511,"column":64}},{"start":{"line":511,"column":68},"end":{"line":511,"column":72}}]},"33":{"line":522,"type":"if","locations":[{"start":{"line":522,"column":12},"end":{"line":522,"column":12}},{"start":{"line":522,"column":12},"end":{"line":522,"column":12}}]},"34":{"line":531,"type":"if","locations":[{"start":{"line":531,"column":15},"end":{"line":531,"column":15}},{"start":{"line":531,"column":15},"end":{"line":531,"column":15}}]},"35":{"line":532,"type":"if","locations":[{"start":{"line":532,"column":12},"end":{"line":532,"column":12}},{"start":{"line":532,"column":12},"end":{"line":532,"column":12}}]},"36":{"line":536,"type":"binary-expr","locations":[{"start":{"line":536,"column":26},"end":{"line":536,"column":42}},{"start":{"line":536,"column":46},"end":{"line":536,"column":50}}]},"37":{"line":538,"type":"if","locations":[{"start":{"line":538,"column":12},"end":{"line":538,"column":12}},{"start":{"line":538,"column":12},"end":{"line":538,"column":12}}]},"38":{"line":553,"type":"if","locations":[{"start":{"line":553,"column":16},"end":{"line":553,"column":16}},{"start":{"line":553,"column":16},"end":{"line":553,"column":16}}]},"39":{"line":558,"type":"if","locations":[{"start":{"line":558,"column":12},"end":{"line":558,"column":12}},{"start":{"line":558,"column":12},"end":{"line":558,"column":12}}]},"40":{"line":558,"type":"binary-expr","locations":[{"start":{"line":558,"column":16},"end":{"line":558,"column":37}},{"start":{"line":558,"column":41},"end":{"line":558,"column":57}},{"start":{"line":558,"column":61},"end":{"line":558,"column":75}}]},"41":{"line":559,"type":"binary-expr","locations":[{"start":{"line":559,"column":26},"end":{"line":559,"column":44}},{"start":{"line":559,"column":48},"end":{"line":559,"column":50}}]},"42":{"line":563,"type":"binary-expr","locations":[{"start":{"line":563,"column":22},"end":{"line":563,"column":35}},{"start":{"line":563,"column":39},"end":{"line":563,"column":57}},{"start":{"line":563,"column":61},"end":{"line":563,"column":63}}]},"43":{"line":566,"type":"cond-expr","locations":[{"start":{"line":566,"column":37},"end":{"line":566,"column":44}},{"start":{"line":566,"column":47},"end":{"line":566,"column":69}}]},"44":{"line":579,"type":"if","locations":[{"start":{"line":579,"column":8},"end":{"line":579,"column":8}},{"start":{"line":579,"column":8},"end":{"line":579,"column":8}}]},"45":{"line":586,"type":"if","locations":[{"start":{"line":586,"column":8},"end":{"line":586,"column":8}},{"start":{"line":586,"column":8},"end":{"line":586,"column":8}}]},"46":{"line":593,"type":"if","locations":[{"start":{"line":593,"column":12},"end":{"line":593,"column":12}},{"start":{"line":593,"column":12},"end":{"line":593,"column":12}}]},"47":{"line":593,"type":"binary-expr","locations":[{"start":{"line":593,"column":17},"end":{"line":593,"column":25}},{"start":{"line":593,"column":29},"end":{"line":593,"column":37}}]},"48":{"line":633,"type":"binary-expr","locations":[{"start":{"line":633,"column":20},"end":{"line":633,"column":57}},{"start":{"line":633,"column":61},"end":{"line":633,"column":63}}]},"49":{"line":637,"type":"binary-expr","locations":[{"start":{"line":637,"column":22},"end":{"line":637,"column":31}},{"start":{"line":637,"column":35},"end":{"line":637,"column":59}}]},"50":{"line":650,"type":"if","locations":[{"start":{"line":650,"column":12},"end":{"line":650,"column":12}},{"start":{"line":650,"column":12},"end":{"line":650,"column":12}}]},"51":{"line":658,"type":"switch","locations":[{"start":{"line":659,"column":12},"end":{"line":668,"column":22}},{"start":{"line":669,"column":12},"end":{"line":678,"column":22}},{"start":{"line":679,"column":12},"end":{"line":683,"column":22}},{"start":{"line":684,"column":12},"end":{"line":685,"column":30}}]},"52":{"line":663,"type":"if","locations":[{"start":{"line":663,"column":20},"end":{"line":663,"column":20}},{"start":{"line":663,"column":20},"end":{"line":663,"column":20}}]},"53":{"line":663,"type":"binary-expr","locations":[{"start":{"line":663,"column":24},"end":{"line":663,"column":37}},{"start":{"line":663,"column":41},"end":{"line":663,"column":56}}]},"54":{"line":711,"type":"if","locations":[{"start":{"line":711,"column":8},"end":{"line":711,"column":8}},{"start":{"line":711,"column":8},"end":{"line":711,"column":8}}]},"55":{"line":717,"type":"if","locations":[{"start":{"line":717,"column":20},"end":{"line":717,"column":20}},{"start":{"line":717,"column":20},"end":{"line":717,"column":20}}]},"56":{"line":717,"type":"binary-expr","locations":[{"start":{"line":717,"column":24},"end":{"line":717,"column":29}},{"start":{"line":717,"column":33},"end":{"line":717,"column":52}},{"start":{"line":717,"column":56},"end":{"line":717,"column":71}},{"start":{"line":717,"column":75},"end":{"line":717,"column":98}}]},"57":{"line":729,"type":"cond-expr","locations":[{"start":{"line":729,"column":74},"end":{"line":729,"column":78}},{"start":{"line":729,"column":81},"end":{"line":729,"column":84}}]},"58":{"line":756,"type":"if","locations":[{"start":{"line":756,"column":8},"end":{"line":756,"column":8}},{"start":{"line":756,"column":8},"end":{"line":756,"column":8}}]},"59":{"line":762,"type":"if","locations":[{"start":{"line":762,"column":8},"end":{"line":762,"column":8}},{"start":{"line":762,"column":8},"end":{"line":762,"column":8}}]},"60":{"line":778,"type":"binary-expr","locations":[{"start":{"line":778,"column":19},"end":{"line":778,"column":28}},{"start":{"line":778,"column":32},"end":{"line":778,"column":36}}]},"61":{"line":786,"type":"if","locations":[{"start":{"line":786,"column":12},"end":{"line":786,"column":12}},{"start":{"line":786,"column":12},"end":{"line":786,"column":12}}]},"62":{"line":791,"type":"if","locations":[{"start":{"line":791,"column":8},"end":{"line":791,"column":8}},{"start":{"line":791,"column":8},"end":{"line":791,"column":8}}]},"63":{"line":791,"type":"binary-expr","locations":[{"start":{"line":791,"column":12},"end":{"line":791,"column":16}},{"start":{"line":791,"column":20},"end":{"line":791,"column":37}}]},"64":{"line":804,"type":"if","locations":[{"start":{"line":804,"column":16},"end":{"line":804,"column":16}},{"start":{"line":804,"column":16},"end":{"line":804,"column":16}}]},"65":{"line":809,"type":"if","locations":[{"start":{"line":809,"column":24},"end":{"line":809,"column":24}},{"start":{"line":809,"column":24},"end":{"line":809,"column":24}}]},"66":{"line":811,"type":"binary-expr","locations":[{"start":{"line":811,"column":34},"end":{"line":811,"column":41}},{"start":{"line":811,"column":45},"end":{"line":811,"column":51}}]},"67":{"line":815,"type":"binary-expr","locations":[{"start":{"line":815,"column":50},"end":{"line":815,"column":70}},{"start":{"line":815,"column":74},"end":{"line":815,"column":78}}]},"68":{"line":819,"type":"if","locations":[{"start":{"line":819,"column":28},"end":{"line":819,"column":28}},{"start":{"line":819,"column":28},"end":{"line":819,"column":28}}]},"69":{"line":846,"type":"if","locations":[{"start":{"line":846,"column":8},"end":{"line":846,"column":8}},{"start":{"line":846,"column":8},"end":{"line":846,"column":8}}]},"70":{"line":851,"type":"if","locations":[{"start":{"line":851,"column":8},"end":{"line":851,"column":8}},{"start":{"line":851,"column":8},"end":{"line":851,"column":8}}]},"71":{"line":851,"type":"binary-expr","locations":[{"start":{"line":851,"column":12},"end":{"line":851,"column":21}},{"start":{"line":851,"column":25},"end":{"line":851,"column":44}}]},"72":{"line":876,"type":"if","locations":[{"start":{"line":876,"column":8},"end":{"line":876,"column":8}},{"start":{"line":876,"column":8},"end":{"line":876,"column":8}}]},"73":{"line":926,"type":"cond-expr","locations":[{"start":{"line":926,"column":40},"end":{"line":926,"column":54}},{"start":{"line":926,"column":57},"end":{"line":926,"column":72}}]},"74":{"line":928,"type":"binary-expr","locations":[{"start":{"line":928,"column":19},"end":{"line":928,"column":28}},{"start":{"line":928,"column":32},"end":{"line":928,"column":36}}]},"75":{"line":934,"type":"binary-expr","locations":[{"start":{"line":934,"column":20},"end":{"line":934,"column":27}},{"start":{"line":934,"column":31},"end":{"line":934,"column":38}}]},"76":{"line":938,"type":"if","locations":[{"start":{"line":938,"column":12},"end":{"line":938,"column":12}},{"start":{"line":938,"column":12},"end":{"line":938,"column":12}}]},"77":{"line":953,"type":"if","locations":[{"start":{"line":953,"column":16},"end":{"line":953,"column":16}},{"start":{"line":953,"column":16},"end":{"line":953,"column":16}}]},"78":{"line":962,"type":"if","locations":[{"start":{"line":962,"column":12},"end":{"line":962,"column":12}},{"start":{"line":962,"column":12},"end":{"line":962,"column":12}}]},"79":{"line":962,"type":"binary-expr","locations":[{"start":{"line":962,"column":16},"end":{"line":962,"column":45}},{"start":{"line":962,"column":49},"end":{"line":962,"column":77}}]},"80":{"line":963,"type":"if","locations":[{"start":{"line":963,"column":16},"end":{"line":963,"column":16}},{"start":{"line":963,"column":16},"end":{"line":963,"column":16}}]},"81":{"line":963,"type":"binary-expr","locations":[{"start":{"line":963,"column":20},"end":{"line":963,"column":39}},{"start":{"line":963,"column":43},"end":{"line":963,"column":57}},{"start":{"line":963,"column":61},"end":{"line":963,"column":73}}]},"82":{"line":964,"type":"binary-expr","locations":[{"start":{"line":964,"column":28},"end":{"line":964,"column":46}},{"start":{"line":964,"column":50},"end":{"line":964,"column":52}}]},"83":{"line":967,"type":"cond-expr","locations":[{"start":{"line":967,"column":48},"end":{"line":967,"column":53}},{"start":{"line":967,"column":56},"end":{"line":967,"column":73}}]},"84":{"line":987,"type":"if","locations":[{"start":{"line":987,"column":8},"end":{"line":987,"column":8}},{"start":{"line":987,"column":8},"end":{"line":987,"column":8}}]},"85":{"line":987,"type":"binary-expr","locations":[{"start":{"line":987,"column":12},"end":{"line":987,"column":17}},{"start":{"line":987,"column":21},"end":{"line":987,"column":24}}]},"86":{"line":990,"type":"if","locations":[{"start":{"line":990,"column":12},"end":{"line":990,"column":12}},{"start":{"line":990,"column":12},"end":{"line":990,"column":12}}]},"87":{"line":1027,"type":"binary-expr","locations":[{"start":{"line":1027,"column":22},"end":{"line":1027,"column":29}},{"start":{"line":1027,"column":33},"end":{"line":1027,"column":36}}]},"88":{"line":1030,"type":"cond-expr","locations":[{"start":{"line":1031,"column":24},"end":{"line":1031,"column":66}},{"start":{"line":1031,"column":69},"end":{"line":1031,"column":71}}]},"89":{"line":1030,"type":"binary-expr","locations":[{"start":{"line":1030,"column":23},"end":{"line":1030,"column":35}},{"start":{"line":1030,"column":39},"end":{"line":1030,"column":41}}]},"90":{"line":1037,"type":"binary-expr","locations":[{"start":{"line":1037,"column":28},"end":{"line":1037,"column":41}},{"start":{"line":1037,"column":45},"end":{"line":1037,"column":47}}]},"91":{"line":1041,"type":"if","locations":[{"start":{"line":1041,"column":12},"end":{"line":1041,"column":12}},{"start":{"line":1041,"column":12},"end":{"line":1041,"column":12}}]},"92":{"line":1041,"type":"binary-expr","locations":[{"start":{"line":1041,"column":16},"end":{"line":1041,"column":26}},{"start":{"line":1041,"column":30},"end":{"line":1041,"column":43}}]},"93":{"line":1045,"type":"if","locations":[{"start":{"line":1045,"column":12},"end":{"line":1045,"column":12}},{"start":{"line":1045,"column":12},"end":{"line":1045,"column":12}}]},"94":{"line":1050,"type":"binary-expr","locations":[{"start":{"line":1050,"column":33},"end":{"line":1050,"column":49}},{"start":{"line":1050,"column":53},"end":{"line":1050,"column":65}}]},"95":{"line":1078,"type":"if","locations":[{"start":{"line":1078,"column":12},"end":{"line":1078,"column":12}},{"start":{"line":1078,"column":12},"end":{"line":1078,"column":12}}]},"96":{"line":1078,"type":"binary-expr","locations":[{"start":{"line":1078,"column":16},"end":{"line":1078,"column":33}},{"start":{"line":1078,"column":37},"end":{"line":1078,"column":46}}]},"97":{"line":1079,"type":"if","locations":[{"start":{"line":1079,"column":16},"end":{"line":1079,"column":16}},{"start":{"line":1079,"column":16},"end":{"line":1079,"column":16}}]},"98":{"line":1081,"type":"if","locations":[{"start":{"line":1081,"column":23},"end":{"line":1081,"column":23}},{"start":{"line":1081,"column":23},"end":{"line":1081,"column":23}}]},"99":{"line":1082,"type":"binary-expr","locations":[{"start":{"line":1082,"column":66},"end":{"line":1082,"column":75}},{"start":{"line":1082,"column":79},"end":{"line":1082,"column":83}}]},"100":{"line":1136,"type":"binary-expr","locations":[{"start":{"line":1136,"column":15},"end":{"line":1136,"column":36}},{"start":{"line":1136,"column":41},"end":{"line":1136,"column":73}}]}},"code":["(function () { YUI.add('datatable-body', function (Y, NAME) {","","/**","View class responsible for rendering the `<tbody>` section of a table. Used as","the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes.","","@module datatable","@submodule datatable-body","@since 3.5.0","**/","var Lang             = Y.Lang,","    isArray          = Lang.isArray,","    isNumber         = Lang.isNumber,","    isString         = Lang.isString,","    fromTemplate     = Lang.sub,","    htmlEscape       = Y.Escape.html,","    toArray          = Y.Array,","    bind             = Y.bind,","    YObject          = Y.Object,","    valueRegExp      = /\\{value\\}/g,","    EV_CONTENT_UPDATE = 'contentUpdate';","","/**","View class responsible for rendering the `<tbody>` section of a table. Used as","the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes.","","Translates the provided `modelList` into a rendered `<tbody>` based on the data","in the constituent Models, altered or amended by any special column","configurations.","","The `columns` configuration, passed to the constructor, determines which","columns will be rendered.","","The rendering process involves constructing an HTML template for a complete row","of data, built by concatenating a customized copy of the instance's","`CELL_TEMPLATE` into the `ROW_TEMPLATE` once for each column.  This template is","then populated with values from each Model in the `modelList`, aggregating a","complete HTML string of all row and column data.  A `<tbody>` Node is then created from the markup and any column `nodeFormatter`s are applied.","","Supported properties of the column objects include:","","  * `key` - Used to link a column to an attribute in a Model.","  * `name` - Used for columns that don't relate to an attribute in the Model","    (`formatter` or `nodeFormatter` only) if the implementer wants a","    predictable name to refer to in their CSS.","  * `cellTemplate` - Overrides the instance's `CELL_TEMPLATE` for cells in this","    column only.","  * `formatter` - Used to customize or override the content value from the","    Model.  These do not have access to the cell or row Nodes and should","    return string (HTML) content.","  * `nodeFormatter` - Used to provide content for a cell as well as perform any","    custom modifications on the cell or row Node that could not be performed by","    `formatter`s.  Should be used sparingly for better performance.","  * `emptyCellValue` - String (HTML) value to use if the Model data for a","    column, or the content generated by a `formatter`, is the empty string,","    `null`, or `undefined`.","  * `allowHTML` - Set to `true` if a column value, `formatter`, or","    `emptyCellValue` can contain HTML.  This defaults to `false` to protect","    against XSS.","  * `className` - Space delimited CSS classes to add to all `<td>`s in a column.","","A column `formatter` can be:","","  * a function, as described below.","  * a string which can be:","      * the name of a pre-defined formatter function","        which can be located in the `Y.DataTable.BodyView.Formatters` hash using the","        value of the `formatter` property as the index.","      * A template that can use the `{value}` placeholder to include the value","        for the current cell or the name of any field in the underlaying model","        also enclosed in curly braces.  Any number and type of these placeholders","        can be used.","","Column `formatter`s are passed an object (`o`) with the following properties:","","  * `value` - The current value of the column's associated attribute, if any.","  * `data` - An object map of Model keys to their current values.","  * `record` - The Model instance.","  * `column` - The column configuration object for the current column.","  * `className` - Initially empty string to allow `formatter`s to add CSS","    classes to the cell's `<td>`.","  * `rowIndex` - The zero-based row number.","  * `rowClass` - Initially empty string to allow `formatter`s to add CSS","    classes to the cell's containing row `<tr>`.","","They may return a value or update `o.value` to assign specific HTML content.  A","returned value has higher precedence.","","Column `nodeFormatter`s are passed an object (`o`) with the following","properties:","","  * `value` - The current value of the column's associated attribute, if any.","  * `td` - The `<td>` Node instance.","  * `cell` - The `<div>` liner Node instance if present, otherwise, the `<td>`.","    When adding content to the cell, prefer appending into this property.","  * `data` - An object map of Model keys to their current values.","  * `record` - The Model instance.","  * `column` - The column configuration object for the current column.","  * `rowIndex` - The zero-based row number.","","They are expected to inject content into the cell's Node directly, including","any \"empty\" cell content.  Each `nodeFormatter` will have access through the","Node API to all cells and rows in the `<tbody>`, but not to the `<table>`, as","it will not be attached yet.","","If a `nodeFormatter` returns `false`, the `o.td` and `o.cell` Nodes will be","`destroy()`ed to remove them from the Node cache and free up memory.  The DOM","elements will remain as will any content added to them.  _It is highly","advisable to always return `false` from your `nodeFormatter`s_.","","@class BodyView","@namespace DataTable","@extends View","@since 3.5.0","**/","Y.namespace('DataTable').BodyView = Y.Base.create('tableBody', Y.View, [], {","    // -- Instance properties -------------------------------------------------","","    /**","    HTML template used to create table cells.","","    @property CELL_TEMPLATE","    @type {HTML}","    @default '<td {headers} class=\"{className}\">{content}</td>'","    @since 3.5.0","    **/","    CELL_TEMPLATE: '<td {headers} class=\"{className}\">{content}</td>',","","    /**","    CSS class applied to even rows.  This is assigned at instantiation.","","    For DataTable, this will be `yui3-datatable-even`.","","    @property CLASS_EVEN","    @type {String}","    @default 'yui3-table-even'","    @since 3.5.0","    **/","    //CLASS_EVEN: null","","    /**","    CSS class applied to odd rows.  This is assigned at instantiation.","","    When used by DataTable instances, this will be `yui3-datatable-odd`.","","    @property CLASS_ODD","    @type {String}","    @default 'yui3-table-odd'","    @since 3.5.0","    **/","    //CLASS_ODD: null","","    /**","    HTML template used to create table rows.","","    @property ROW_TEMPLATE","    @type {HTML}","    @default '<tr id=\"{rowId}\" data-yui3-record=\"{clientId}\" class=\"{rowClass}\">{content}</tr>'","    @since 3.5.0","    **/","    ROW_TEMPLATE : '<tr id=\"{rowId}\" data-yui3-record=\"{clientId}\" class=\"{rowClass}\">{content}</tr>',","","    /**","    The object that serves as the source of truth for column and row data.","    This property is assigned at instantiation from the `host` property of","    the configuration object passed to the constructor.","","    @property host","    @type {Object}","    @default (initially unset)","    @since 3.5.0","    **/","    //TODO: should this be protected?","    //host: null,","","    /**","    HTML templates used to create the `<tbody>` containing the table rows.","","    @property TBODY_TEMPLATE","    @type {HTML}","    @default '<tbody class=\"{className}\">{content}</tbody>'","    @since 3.6.0","    **/","    TBODY_TEMPLATE: '<tbody class=\"{className}\"></tbody>',","","    // -- Public methods ------------------------------------------------------","","    /**","    Returns the `<td>` Node from the given row and column index.  Alternately,","    the `seed` can be a Node.  If so, the nearest ancestor cell is returned.","    If the `seed` is a cell, it is returned.  If there is no cell at the given","    coordinates, `null` is returned.","","    Optionally, include an offset array or string to return a cell near the","    cell identified by the `seed`.  The offset can be an array containing the","    number of rows to shift followed by the number of columns to shift, or one","    of \"above\", \"below\", \"next\", or \"previous\".","","    <pre><code>// Previous cell in the previous row","    var cell = table.getCell(e.target, [-1, -1]);","","    // Next cell","    var cell = table.getCell(e.target, 'next');","    var cell = table.getCell(e.target, [0, 1];</pre></code>","","    @method getCell","    @param {Number[]|Node} seed Array of row and column indexes, or a Node that","        is either the cell itself or a descendant of one.","    @param {Number[]|String} [shift] Offset by which to identify the returned","        cell Node","    @return {Node}","    @since 3.5.0","    **/","    getCell: function (seed, shift) {","        var tbody = this.tbodyNode,","            row, cell, index, rowIndexOffset;","","        if (seed && tbody) {","            if (isArray(seed)) {","                row = tbody.get('children').item(seed[0]);","                cell = row && row.get('children').item(seed[1]);","            } else if (Y.instanceOf(seed, Y.Node)) {","                cell = seed.ancestor('.' + this.getClassName('cell'), true);","            }","","            if (cell && shift) {","                rowIndexOffset = tbody.get('firstChild.rowIndex');","                if (isString(shift)) {","                    // TODO this should be a static object map","                    switch (shift) {","                        case 'above'   : shift = [-1, 0]; break;","                        case 'below'   : shift = [1, 0]; break;","                        case 'next'    : shift = [0, 1]; break;","                        case 'previous': shift = [0, -1]; break;","                    }","                }","","                if (isArray(shift)) {","                    index = cell.get('parentNode.rowIndex') +","                                shift[0] - rowIndexOffset;","                    row   = tbody.get('children').item(index);","","                    index = cell.get('cellIndex') + shift[1];","                    cell  = row && row.get('children').item(index);","                }","            }","        }","","        return cell || null;","    },","","    /**","    Returns the generated CSS classname based on the input.  If the `host`","    attribute is configured, it will attempt to relay to its `getClassName`","    or use its static `NAME` property as a string base.","","    If `host` is absent or has neither method nor `NAME`, a CSS classname","    will be generated using this class's `NAME`.","","    @method getClassName","    @param {String} token* Any number of token strings to assemble the","        classname from.","    @return {String}","    @protected","    @since 3.5.0","    **/","    getClassName: function () {","        var host = this.host,","            args;","","        if (host && host.getClassName) {","            return host.getClassName.apply(host, arguments);","        } else {","            args = toArray(arguments);","            args.unshift(this.constructor.NAME);","            return Y.ClassNameManager.getClassName","                .apply(Y.ClassNameManager, args);","        }","    },","","    /**","    Returns the Model associated to the row Node or id provided. Passing the","    Node or id for a descendant of the row also works.","","    If no Model can be found, `null` is returned.","","    @method getRecord","    @param {String|Node} seed Row Node or `id`, or one for a descendant of a row","    @return {Model}","    @since 3.5.0","    **/","    getRecord: function (seed) {","        var modelList = this.get('modelList'),","            tbody     = this.tbodyNode,","            row       = null,","            record;","","        if (tbody) {","            if (isString(seed)) {","                seed = tbody.one('#' + seed);","            }","","            if (Y.instanceOf(seed, Y.Node)) {","                row = seed.ancestor(function (node) {","                    return node.get('parentNode').compareTo(tbody);","                }, true);","","                record = row &&","                    modelList.getByClientId(row.getData('yui3-record'));","            }","        }","","        return record || null;","    },","","    /**","    Returns the `<tr>` Node from the given row index, Model, or Model's","    `clientId`.  If the rows haven't been rendered yet, or if the row can't be","    found by the input, `null` is returned.","","    @method getRow","    @param {Number|String|Model} id Row index, Model instance, or clientId","    @return {Node}","    @since 3.5.0","    **/","    getRow: function (id) {","        var tbody = this.tbodyNode,","            row = null;","","        if (tbody) {","            if (id) {","                id = this._idMap[id.get ? id.get('clientId') : id] || id;","            }","","            row = isNumber(id) ?","                tbody.get('children').item(id) :","                tbody.one('#' + id);","        }","","        return row;","    },","","    /**","    Creates the table's `<tbody>` content by assembling markup generated by","    populating the `ROW\\_TEMPLATE`, and `CELL\\_TEMPLATE` templates with content","    from the `columns` and `modelList` attributes.","","    The rendering process happens in three stages:","","    1. A row template is assembled from the `columns` attribute (see","       `_createRowTemplate`)","","    2. An HTML string is built up by concatenating the application of the data in","       each Model in the `modelList` to the row template. For cells with","       `formatter`s, the function is called to generate cell content. Cells","       with `nodeFormatter`s are ignored. For all other cells, the data value","       from the Model attribute for the given column key is used.  The","       accumulated row markup is then inserted into the container.","","    3. If any column is configured with a `nodeFormatter`, the `modelList` is","       iterated again to apply the `nodeFormatter`s.","","    Supported properties of the column objects include:","","      * `key` - Used to link a column to an attribute in a Model.","      * `name` - Used for columns that don't relate to an attribute in the Model","        (`formatter` or `nodeFormatter` only) if the implementer wants a","        predictable name to refer to in their CSS.","      * `cellTemplate` - Overrides the instance's `CELL_TEMPLATE` for cells in","        this column only.","      * `formatter` - Used to customize or override the content value from the","        Model.  These do not have access to the cell or row Nodes and should","        return string (HTML) content.","      * `nodeFormatter` - Used to provide content for a cell as well as perform","        any custom modifications on the cell or row Node that could not be","        performed by `formatter`s.  Should be used sparingly for better","        performance.","      * `emptyCellValue` - String (HTML) value to use if the Model data for a","        column, or the content generated by a `formatter`, is the empty string,","        `null`, or `undefined`.","      * `allowHTML` - Set to `true` if a column value, `formatter`, or","        `emptyCellValue` can contain HTML.  This defaults to `false` to protect","        against XSS.","      * `className` - Space delimited CSS classes to add to all `<td>`s in a","        column.","","    Column `formatter`s are passed an object (`o`) with the following","    properties:","","      * `value` - The current value of the column's associated attribute, if","        any.","      * `data` - An object map of Model keys to their current values.","      * `record` - The Model instance.","      * `column` - The column configuration object for the current column.","      * `className` - Initially empty string to allow `formatter`s to add CSS","        classes to the cell's `<td>`.","      * `rowIndex` - The zero-based row number.","      * `rowClass` - Initially empty string to allow `formatter`s to add CSS","        classes to the cell's containing row `<tr>`.","","    They may return a value or update `o.value` to assign specific HTML","    content.  A returned value has higher precedence.","","    Column `nodeFormatter`s are passed an object (`o`) with the following","    properties:","","      * `value` - The current value of the column's associated attribute, if","        any.","      * `td` - The `<td>` Node instance.","      * `cell` - The `<div>` liner Node instance if present, otherwise, the","        `<td>`.  When adding content to the cell, prefer appending into this","        property.","      * `data` - An object map of Model keys to their current values.","      * `record` - The Model instance.","      * `column` - The column configuration object for the current column.","      * `rowIndex` - The zero-based row number.","","    They are expected to inject content into the cell's Node directly, including","    any \"empty\" cell content.  Each `nodeFormatter` will have access through the","    Node API to all cells and rows in the `<tbody>`, but not to the `<table>`,","    as it will not be attached yet.","","    If a `nodeFormatter` returns `false`, the `o.td` and `o.cell` Nodes will be","    `destroy()`ed to remove them from the Node cache and free up memory.  The","    DOM elements will remain as will any content added to them.  _It is highly","    advisable to always return `false` from your `nodeFormatter`s_.","","    @method render","    @return {BodyView} The instance","    @chainable","    @since 3.5.0","    **/","    render: function () {","        var table   = this.get('container'),","            data    = this.get('modelList'),","            displayCols = this.get('columns'),","            tbody   = this.tbodyNode ||","                      (this.tbodyNode = this._createTBodyNode());","","        // Needed for mutation","        this._createRowTemplate(displayCols);","","        if (data) {","            tbody.setHTML(this._createDataHTML(displayCols));","","            this._applyNodeFormatters(tbody, displayCols);","        }","","        if (tbody.get('parentNode') !== table) {","            table.appendChild(tbody);","        }","","        this.bindUI();","","        return this;","    },","","    /**","     Refreshes the provided row against the provided model and the Array of","     columns to be updated.","","     @method refreshRow","     @param {Y.Node} row","     @param {Y.Model} model Y.Model representation of the row","     @param {String[]} colKeys Array of column keys","","     @chainable","     */","    refreshRow: function (row, model, colKeys) {","        var col,","            cell,","            len = colKeys.length,","            i;","","        for (i = 0; i < len; i++) {","            col = this.getColumn(colKeys[i]);","            cell = row.one('.' + this.getClassName('col', col._id || col.key));","            this.refreshCell(cell, model);","        }","","        return this;","    },","","    /**","     Refreshes the given cell with the provided model data and the provided","     column configuration.","","     Uses the provided column formatter if aviable.","","     @method refreshCell","     @param {Y.Node} cell Y.Node pointer to the cell element to be updated","     @param {Y.Model} [model] Y.Model representation of the row","     @param {Object} [col] Column configuration object for the cell","","     @chainable","     */","    refreshCell: function (cell, model, col) {","        var content,","            formatterFn,","            formatterData,","            data = model.toJSON();","","        cell = this.getCell(cell);","        /* jshint -W030 */","        model || (model = this.getRecord(cell));","        col || (col = this.getColumn(cell));","        /* jshint +W030 */","","        if (col.nodeFormatter) {","            formatterData = {","                cell: cell.one('.' + this.getClassName('liner')) || cell,","                column: col,","                data: data,","                record: model,","                rowIndex: this._getRowIndex(cell.ancestor('tr')),","                td: cell,","                value: data[col.key]","            };","","            keep = col.nodeFormatter.call(host,formatterData);","","            if (keep === false) {","                // Remove from the Node cache to reduce","                // memory footprint.  This also purges events,","                // which you shouldn't be scoping to a cell","                // anyway.  You've been warned.  Incidentally,","                // you should always return false. Just sayin.","                cell.destroy(true);","            }","","        } else if (col.formatter) {","            if (!col._formatterFn) {","                col = this._setColumnsFormatterFn([col])[0];","            }","","            formatterFn = col._formatterFn || null;","","            if (formatterFn) {","                formatterData = {","                    value    : data[col.key],","                    data     : data,","                    column   : col,","                    record   : model,","                    className: '',","                    rowClass : '',","                    rowIndex : this._getRowIndex(cell.ancestor('tr'))","                };","","                // Formatters can either return a value ...","                content = formatterFn.call(this.get('host'), formatterData);","","                // ... or update the value property of the data obj passed","                if (content === undefined) {","                    content = formatterData.value;","                }","            }","","            if (content === undefined || content === null || content === '') {","                content = col.emptyCellValue || '';","            }","","        } else {","            content = data[col.key] || col.emptyCellValue || '';","        }","","        cell.setHTML(col.allowHTML ? content : Y.Escape.html(content));","","        return this;","    },","","    /**","     Returns column data from this.get('columns'). If a Y.Node is provided as","     the key, will try to determine the key from the classname","     @method getColumn","     @param {String|Y.Node} name","     @return {Object} Returns column configuration","     */","    getColumn: function (name) {","        if (Y.instanceOf(name, Y.Node)) {","            // get column name from node","            name = name.get('className').match(","                new RegExp( this.getClassName('col') +'-([^ ]*)' )","            )[1];","        }","","        if (this.host) {","            return this.host._columnMap[name];","        }","        var displayCols = this.get('columns'),","            col = null;","","        Y.Array.some(displayCols, function (_col) {","            if ((_col._id || _col.key) === name) {","                col = _col;","                return true;","            }","        });","","        return col;","    },","","    // -- Protected and private methods ---------------------------------------","    /**","    Handles changes in the source's columns attribute.  Redraws the table data.","","    @method _afterColumnsChange","    @param {EventFacade} e The `columnsChange` event object","    @protected","    @since 3.5.0","    **/","    // TODO: Preserve existing DOM","    // This will involve parsing and comparing the old and new column configs","    // and reacting to four types of changes:","    // 1. formatter, nodeFormatter, emptyCellValue changes","    // 2. column deletions","    // 3. column additions","    // 4. column moves (preserve cells)","    _afterColumnsChange: function () {","        this.render();","    },","","    /**","    Handles modelList changes, including additions, deletions, and updates.","","    Modifies the existing table DOM accordingly.","","    @method _afterDataChange","    @param {EventFacade} e The `change` event from the ModelList","    @protected","    @since 3.5.0","    **/","    _afterDataChange: function (e) {","        var type = (e.type.match(/:(add|change|remove)$/) || [])[1],","            index = e.index,","            displayCols = this.get('columns'),","            col,","            changed = e.changed && Y.Object.keys(e.changed),","            key,","            row,","            i,","            len;","","        for (i = 0, len = displayCols.length; i < len; i++ ) {","            col = displayCols[i];","","            // since nodeFormatters typcially make changes outside of it's","            // cell, we need to see if there are any columns that have a","            // nodeFormatter and if so, we need to do a full render() of the","            // tbody","            if (col.hasOwnProperty('nodeFormatter')) {","                this.render();","                this.fire(EV_CONTENT_UPDATE);","                return;","            }","        }","","        // TODO: if multiple rows are being added/remove/swapped, can we avoid the restriping?","        switch (type) {","            case 'change':","                for (i = 0, len = displayCols.length; i < len; i++) {","                    col = displayCols[i];","                    key = col.key;","                    if (col.formatter && !e.changed[key]) {","                        changed.push(key);","                    }","                }","                this.refreshRow(this.getRow(e.target), e.target, changed);","                break;","            case 'add':","                // we need to make sure we don't have an index larger than the data we have","                index =  Math.min(index, this.get('modelList').size() - 1);","","                // updates the columns with formatter functions","                this._setColumnsFormatterFn(displayCols);","                row = Y.Node.create(this._createRowHTML(e.model, index, displayCols));","                this.tbodyNode.insert(row, index);","                this._restripe(index);","                break;","            case 'remove':","                this.getRow(index).remove(true);","                // we removed a row, so we need to back up our index to stripe","                this._restripe(index - 1);","                break;","            default:","                this.render();","        }","","        // Event fired to tell users when we are done updating after the data","        // was changed","        this.fire(EV_CONTENT_UPDATE);","    },","","    /**","     Toggles the odd/even classname of the row after the given index. This method","     is used to update rows after a row is inserted into or removed from the table.","     Note this event is delayed so the table is only restriped once when multiple","     rows are updated at one time.","","     @protected","     @method _restripe","     @param {Number} [index] Index of row to start restriping after","     @since 3.11.0","     */","    _restripe: function (index) {","        var task = this._restripeTask,","            self;","","        // index|0 to force int, avoid NaN. Math.max() to avoid neg indexes.","        index = Math.max((index|0), 0);","","        if (!task) {","            self = this;","","            this._restripeTask = {","                timer: setTimeout(function () {","                    // Check for self existence before continuing","                    if (!self || self.get('destroy') || !self.tbodyNode || !self.tbodyNode.inDoc()) {","                        self._restripeTask = null;","                        return;","                    }","","                    var odd  = [self.CLASS_ODD, self.CLASS_EVEN],","                        even = [self.CLASS_EVEN, self.CLASS_ODD],","                        index = self._restripeTask.index;","","                    self.tbodyNode.get('childNodes')","                        .slice(index)","                        .each(function (row, i) { // TODO: each vs batch","                            row.replaceClass.apply(row, (index + i) % 2 ? even : odd);","                        });","","                    self._restripeTask = null;","                }, 0),","","                index: index","            };","        } else {","            task.index = Math.min(task.index, index);","        }","","    },","","    /**","    Handles replacement of the modelList.","","    Rerenders the `<tbody>` contents.","","    @method _afterModelListChange","    @param {EventFacade} e The `modelListChange` event","    @protected","    @since 3.6.0","    **/","    _afterModelListChange: function () {","        var handles = this._eventHandles;","","        if (handles.dataChange) {","            handles.dataChange.detach();","            delete handles.dataChange;","            this.bindUI();","        }","","        if (this.tbodyNode) {","            this.render();","        }","    },","","    /**","    Iterates the `modelList`, and calls any `nodeFormatter`s found in the","    `columns` param on the appropriate cell Nodes in the `tbody`.","","    @method _applyNodeFormatters","    @param {Node} tbody The `<tbody>` Node whose columns to update","    @param {Object[]} displayCols The column configurations","    @protected","    @since 3.5.0","    **/","    _applyNodeFormatters: function (tbody, displayCols) {","        var host = this.host || this,","            data = this.get('modelList'),","            formatters = [],","            linerQuery = '.' + this.getClassName('liner'),","            rows, i, len;","","        // Only iterate the ModelList again if there are nodeFormatters","        for (i = 0, len = displayCols.length; i < len; ++i) {","            if (displayCols[i].nodeFormatter) {","                formatters.push(i);","            }","        }","","        if (data && formatters.length) {","            rows = tbody.get('childNodes');","","            data.each(function (record, index) {","                var formatterData = {","                        data      : record.toJSON(),","                        record    : record,","                        rowIndex  : index","                    },","                    row = rows.item(index),","                    i, len, col, key, cells, cell, keep;","","","                if (row) {","                    cells = row.get('childNodes');","                    for (i = 0, len = formatters.length; i < len; ++i) {","                        cell = cells.item(formatters[i]);","","                        if (cell) {","                            col = formatterData.column = displayCols[formatters[i]];","                            key = col.key || col.id;","","                            formatterData.value = record.get(key);","                            formatterData.td    = cell;","                            formatterData.cell  = cell.one(linerQuery) || cell;","","                            keep = col.nodeFormatter.call(host,formatterData);","","                            if (keep === false) {","                                // Remove from the Node cache to reduce","                                // memory footprint.  This also purges events,","                                // which you shouldn't be scoping to a cell","                                // anyway.  You've been warned.  Incidentally,","                                // you should always return false. Just sayin.","                                cell.destroy(true);","                            }","                        }","                    }","                }","            });","        }","    },","","    /**","    Binds event subscriptions from the UI and the host (if assigned).","","    @method bindUI","    @protected","    @since 3.5.0","    **/","    bindUI: function () {","        var handles     = this._eventHandles,","            modelList   = this.get('modelList'),","            changeEvent = modelList.model.NAME + ':change';","","        if (!handles.columnsChange) {","            handles.columnsChange = this.after('columnsChange',","                bind('_afterColumnsChange', this));","        }","","        if (modelList && !handles.dataChange) {","            handles.dataChange = modelList.after(","                ['add', 'remove', 'reset', changeEvent],","                bind('_afterDataChange', this));","        }","    },","","    /**","    Iterates the `modelList` and applies each Model to the `_rowTemplate`,","    allowing any column `formatter` or `emptyCellValue` to override cell","    content for the appropriate column.  The aggregated HTML string is","    returned.","","    @method _createDataHTML","    @param {Object[]} displayCols The column configurations to customize the","                generated cell content or class names","    @return {HTML} The markup for all Models in the `modelList`, each applied","                to the `_rowTemplate`","    @protected","    @since 3.5.0","    **/","    _createDataHTML: function (displayCols) {","        var data = this.get('modelList'),","            html = '';","","        if (data) {","            data.each(function (model, index) {","                html += this._createRowHTML(model, index, displayCols);","            }, this);","        }","","        return html;","    },","","    /**","    Applies the data of a given Model, modified by any column formatters and","    supplemented by other template values to the instance's `_rowTemplate` (see","    `_createRowTemplate`).  The generated string is then returned.","","    The data from Model's attributes is fetched by `toJSON` and this data","    object is appended with other properties to supply values to {placeholders}","    in the template.  For a template generated from a Model with 'foo' and 'bar'","    attributes, the data object would end up with the following properties","    before being used to populate the `_rowTemplate`:","","      * `clientID` - From Model, used the assign the `<tr>`'s 'id' attribute.","      * `foo` - The value to populate the 'foo' column cell content.  This","        value will be the value stored in the Model's `foo` attribute, or the","        result of the column's `formatter` if assigned.  If the value is '',","        `null`, or `undefined`, and the column's `emptyCellValue` is assigned,","        that value will be used.","      * `bar` - Same for the 'bar' column cell content.","      * `foo-className` - String of CSS classes to apply to the `<td>`.","      * `bar-className` - Same.","      * `rowClass`      - String of CSS classes to apply to the `<tr>`. This","        will be the odd/even class per the specified index plus any additional","        classes assigned by column formatters (via `o.rowClass`).","","    Because this object is available to formatters, any additional properties","    can be added to fill in custom {placeholders} in the `_rowTemplate`.","","    @method _createRowHTML","    @param {Model} model The Model instance to apply to the row template","    @param {Number} index The index the row will be appearing","    @param {Object[]} displayCols The column configurations","    @return {HTML} The markup for the provided Model, less any `nodeFormatter`s","    @protected","    @since 3.5.0","    **/","    _createRowHTML: function (model, index, displayCols) {","        var data     = model.toJSON(),","            clientId = model.get('clientId'),","            values   = {","                rowId   : this._getRowId(clientId),","                clientId: clientId,","                rowClass: (index % 2) ? this.CLASS_ODD : this.CLASS_EVEN","            },","            host = this.host || this,","            i, len, col, token, value, formatterData;","","        for (i = 0, len = displayCols.length; i < len; ++i) {","            col   = displayCols[i];","            value = data[col.key];","            token = col._id || col.key;","","            values[token + '-className'] = '';","","            if (col._formatterFn) {","                formatterData = {","                    value    : value,","                    data     : data,","                    column   : col,","                    record   : model,","                    className: '',","                    rowClass : '',","                    rowIndex : index","                };","","                // Formatters can either return a value","                value = col._formatterFn.call(host, formatterData);","","                // or update the value property of the data obj passed","                if (value === undefined) {","                    value = formatterData.value;","                }","","                values[token + '-className'] = formatterData.className;","                values.rowClass += ' ' + formatterData.rowClass;","            }","","            // if the token missing OR is the value a legit value","            if (!values.hasOwnProperty(token) || data.hasOwnProperty(col.key)) {","                if (value === undefined || value === null || value === '') {","                    value = col.emptyCellValue || '';","                }","","                values[token] = col.allowHTML ? value : htmlEscape(value);","            }","        }","","        // replace consecutive whitespace with a single space","        values.rowClass = values.rowClass.replace(/\\s+/g, ' ');","","        return fromTemplate(this._rowTemplate, values);","    },","","    /**","     Locates the row within the tbodyNode and returns the found index, or Null","     if it is not found in the tbodyNode","     @param {Y.Node} row","     @return {Number} Index of row in tbodyNode","     */","    _getRowIndex: function (row) {","        var tbody = this.tbodyNode,","            index = 1;","","        if (tbody && row) {","","            //if row is not in the tbody, return","            if (row.ancestor('tbody') !== tbody) {","                return null;","            }","","            // increment until we no longer have a previous node","            /*jshint boss: true*/","            while (row = row.previous()) { // NOTE: assignment","            /*jshint boss: false*/","                index++;","            }","        }","","        return index;","    },","","    /**","    Creates a custom HTML template string for use in generating the markup for","    individual table rows with {placeholder}s to capture data from the Models","    in the `modelList` attribute or from column `formatter`s.","","    Assigns the `_rowTemplate` property.","","    @method _createRowTemplate","    @param {Object[]} displayCols Array of column configuration objects","    @protected","    @since 3.5.0","    **/","    _createRowTemplate: function (displayCols) {","        var html         = '',","            cellTemplate = this.CELL_TEMPLATE,","            i, len, col, key, token, headers, tokenValues, formatter;","","        this._setColumnsFormatterFn(displayCols);","","        for (i = 0, len = displayCols.length; i < len; ++i) {","            col     = displayCols[i];","            key     = col.key;","            token   = col._id || key;","            formatter = col._formatterFn;","            // Only include headers if there are more than one","            headers = (col._headers || []).length > 1 ?","                        'headers=\"' + col._headers.join(' ') + '\"' : '';","","            tokenValues = {","                content  : '{' + token + '}',","                headers  : headers,","                className: this.getClassName('col', token) + ' ' +","                           (col.className || '') + ' ' +","                           this.getClassName('cell') +","                           ' {' + token + '-className}'","            };","            if (!formatter && col.formatter) {","                tokenValues.content = col.formatter.replace(valueRegExp, tokenValues.content);","            }","","            if (col.nodeFormatter) {","                // Defer all node decoration to the formatter","                tokenValues.content = '';","            }","","            html += fromTemplate(col.cellTemplate || cellTemplate, tokenValues);","        }","","        this._rowTemplate = fromTemplate(this.ROW_TEMPLATE, {","            content: html","        });","    },","","    /**","     Parses the columns array and defines the column's _formatterFn if there","     is a formatter available on the column","     @protected","     @method _setColumnsFormatterFn","     @param {Object[]} displayCols Array of column configuration objects","","     @return {Object[]} Returns modified displayCols configuration Array","     */","    _setColumnsFormatterFn: function (displayCols) {","        var Formatters = Y.DataTable.BodyView.Formatters,","            formatter,","            col,","            i,","            len;","","        for (i = 0, len = displayCols.length; i < len; i++) {","            col = displayCols[i];","            formatter = col.formatter;","","            if (!col._formatterFn && formatter) {","                if (Lang.isFunction(formatter)) {","                    col._formatterFn = formatter;","                } else if (formatter in Formatters) {","                    col._formatterFn = Formatters[formatter].call(this.host || this, col);","                }","            }","        }","","        return displayCols;","    },","","    /**","    Creates the `<tbody>` node that will store the data rows.","","    @method _createTBodyNode","    @return {Node}","    @protected","    @since 3.6.0","    **/","    _createTBodyNode: function () {","        return Y.Node.create(fromTemplate(this.TBODY_TEMPLATE, {","            className: this.getClassName('data')","        }));","    },","","    /**","    Destroys the instance.","","    @method destructor","    @protected","    @since 3.5.0","    **/","    destructor: function () {","        (new Y.EventHandle(YObject.values(this._eventHandles))).detach();","    },","","    /**","    Holds the event subscriptions needing to be detached when the instance is","    `destroy()`ed.","","    @property _eventHandles","    @type {Object}","    @default undefined (initially unset)","    @protected","    @since 3.5.0","    **/","    //_eventHandles: null,","","    /**","    Returns the row ID associated with a Model's clientId.","","    @method _getRowId","    @param {String} clientId The Model clientId","    @return {String}","    @protected","    **/","    _getRowId: function (clientId) {","        return this._idMap[clientId] || (this._idMap[clientId] = Y.guid());","    },","","    /**","    Map of Model clientIds to row ids.","","    @property _idMap","    @type {Object}","    @protected","    **/","    //_idMap,","","    /**","    Initializes the instance. Reads the following configuration properties in","    addition to the instance attributes:","","      * `columns` - (REQUIRED) The initial column information","      * `host`    - The object to serve as source of truth for column info and","                    for generating class names","","    @method initializer","    @param {Object} config Configuration data","    @protected","    @since 3.5.0","    **/","    initializer: function (config) {","        this.host = config.host;","","        this._eventHandles = {","            modelListChange: this.after('modelListChange',","                bind('_afterModelListChange', this))","        };","        this._idMap = {};","","        this.CLASS_ODD  = this.getClassName('odd');","        this.CLASS_EVEN = this.getClassName('even');","","    }","","    /**","    The HTML template used to create a full row of markup for a single Model in","    the `modelList` plus any customizations defined in the column","    configurations.","","    @property _rowTemplate","    @type {HTML}","    @default (initially unset)","    @protected","    @since 3.5.0","    **/","    //_rowTemplate: null","},{","    /**","    Hash of formatting functions for cell contents.","","    This property can be populated with a hash of formatting functions by the developer","    or a set of pre-defined functions can be loaded via the `datatable-formatters` module.","","    See: [DataTable.BodyView.Formatters](./DataTable.BodyView.Formatters.html)","    @property Formatters","    @type Object","    @since 3.8.0","    @static","    **/","    Formatters: {}","});","","","}, '3.13.0', {\"requires\": [\"datatable-core\", \"view\", \"classnamemanager\"]});","","}());"]};
12 var __cov_lwdQmRpEAfazeg1nWBy89g = __coverage__['build/datatable-body/datatable-body.js'];
13 __cov_lwdQmRpEAfazeg1nWBy89g.s['1']++;YUI.add('datatable-body',function(Y,NAME){__cov_lwdQmRpEAfazeg1nWBy89g.f['1']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['2']++;var Lang=Y.Lang,isArray=Lang.isArray,isNumber=Lang.isNumber,isString=Lang.isString,fromTemplate=Lang.sub,htmlEscape=Y.Escape.html,toArray=Y.Array,bind=Y.bind,YObject=Y.Object,valueRegExp=/\{value\}/g,EV_CONTENT_UPDATE='contentUpdate';__cov_lwdQmRpEAfazeg1nWBy89g.s['3']++;Y.namespace('DataTable').BodyView=Y.Base.create('tableBody',Y.View,[],{CELL_TEMPLATE:'<td {headers} class="{className}">{content}</td>',ROW_TEMPLATE:'<tr id="{rowId}" data-yui3-record="{clientId}" class="{rowClass}">{content}</tr>',TBODY_TEMPLATE:'<tbody class="{className}"></tbody>',getCell:function(seed,shift){__cov_lwdQmRpEAfazeg1nWBy89g.f['2']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['4']++;var tbody=this.tbodyNode,row,cell,index,rowIndexOffset;__cov_lwdQmRpEAfazeg1nWBy89g.s['5']++;if((__cov_lwdQmRpEAfazeg1nWBy89g.b['2'][0]++,seed)&&(__cov_lwdQmRpEAfazeg1nWBy89g.b['2'][1]++,tbody)){__cov_lwdQmRpEAfazeg1nWBy89g.b['1'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['6']++;if(isArray(seed)){__cov_lwdQmRpEAfazeg1nWBy89g.b['3'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['7']++;row=tbody.get('children').item(seed[0]);__cov_lwdQmRpEAfazeg1nWBy89g.s['8']++;cell=(__cov_lwdQmRpEAfazeg1nWBy89g.b['4'][0]++,row)&&(__cov_lwdQmRpEAfazeg1nWBy89g.b['4'][1]++,row.get('children').item(seed[1]));}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['3'][1]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['9']++;if(Y.instanceOf(seed,Y.Node)){__cov_lwdQmRpEAfazeg1nWBy89g.b['5'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['10']++;cell=seed.ancestor('.'+this.getClassName('cell'),true);}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['5'][1]++;}}__cov_lwdQmRpEAfazeg1nWBy89g.s['11']++;if((__cov_lwdQmRpEAfazeg1nWBy89g.b['7'][0]++,cell)&&(__cov_lwdQmRpEAfazeg1nWBy89g.b['7'][1]++,shift)){__cov_lwdQmRpEAfazeg1nWBy89g.b['6'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['12']++;rowIndexOffset=tbody.get('firstChild.rowIndex');__cov_lwdQmRpEAfazeg1nWBy89g.s['13']++;if(isString(shift)){__cov_lwdQmRpEAfazeg1nWBy89g.b['8'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['14']++;switch(shift){case'above':__cov_lwdQmRpEAfazeg1nWBy89g.b['9'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['15']++;shift=[-1,0];__cov_lwdQmRpEAfazeg1nWBy89g.s['16']++;break;case'below':__cov_lwdQmRpEAfazeg1nWBy89g.b['9'][1]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['17']++;shift=[1,0];__cov_lwdQmRpEAfazeg1nWBy89g.s['18']++;break;case'next':__cov_lwdQmRpEAfazeg1nWBy89g.b['9'][2]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['19']++;shift=[0,1];__cov_lwdQmRpEAfazeg1nWBy89g.s['20']++;break;case'previous':__cov_lwdQmRpEAfazeg1nWBy89g.b['9'][3]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['21']++;shift=[0,-1];__cov_lwdQmRpEAfazeg1nWBy89g.s['22']++;break;}}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['8'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['23']++;if(isArray(shift)){__cov_lwdQmRpEAfazeg1nWBy89g.b['10'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['24']++;index=cell.get('parentNode.rowIndex')+shift[0]-rowIndexOffset;__cov_lwdQmRpEAfazeg1nWBy89g.s['25']++;row=tbody.get('children').item(index);__cov_lwdQmRpEAfazeg1nWBy89g.s['26']++;index=cell.get('cellIndex')+shift[1];__cov_lwdQmRpEAfazeg1nWBy89g.s['27']++;cell=(__cov_lwdQmRpEAfazeg1nWBy89g.b['11'][0]++,row)&&(__cov_lwdQmRpEAfazeg1nWBy89g.b['11'][1]++,row.get('children').item(index));}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['10'][1]++;}}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['6'][1]++;}}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['1'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['28']++;return(__cov_lwdQmRpEAfazeg1nWBy89g.b['12'][0]++,cell)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['12'][1]++,null);},getClassName:function(){__cov_lwdQmRpEAfazeg1nWBy89g.f['3']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['29']++;var host=this.host,args;__cov_lwdQmRpEAfazeg1nWBy89g.s['30']++;if((__cov_lwdQmRpEAfazeg1nWBy89g.b['14'][0]++,host)&&(__cov_lwdQmRpEAfazeg1nWBy89g.b['14'][1]++,host.getClassName)){__cov_lwdQmRpEAfazeg1nWBy89g.b['13'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['31']++;return host.getClassName.apply(host,arguments);}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['13'][1]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['32']++;args=toArray(arguments);__cov_lwdQmRpEAfazeg1nWBy89g.s['33']++;args.unshift(this.constructor.NAME);__cov_lwdQmRpEAfazeg1nWBy89g.s['34']++;return Y.ClassNameManager.getClassName.apply(Y.ClassNameManager,args);}},getRecord:function(seed){__cov_lwdQmRpEAfazeg1nWBy89g.f['4']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['35']++;var modelList=this.get('modelList'),tbody=this.tbodyNode,row=null,record;__cov_lwdQmRpEAfazeg1nWBy89g.s['36']++;if(tbody){__cov_lwdQmRpEAfazeg1nWBy89g.b['15'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['37']++;if(isString(seed)){__cov_lwdQmRpEAfazeg1nWBy89g.b['16'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['38']++;seed=tbody.one('#'+seed);}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['16'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['39']++;if(Y.instanceOf(seed,Y.Node)){__cov_lwdQmRpEAfazeg1nWBy89g.b['17'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['40']++;row=seed.ancestor(function(node){__cov_lwdQmRpEAfazeg1nWBy89g.f['5']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['41']++;return node.get('parentNode').compareTo(tbody);},true);__cov_lwdQmRpEAfazeg1nWBy89g.s['42']++;record=(__cov_lwdQmRpEAfazeg1nWBy89g.b['18'][0]++,row)&&(__cov_lwdQmRpEAfazeg1nWBy89g.b['18'][1]++,modelList.getByClientId(row.getData('yui3-record')));}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['17'][1]++;}}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['15'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['43']++;return(__cov_lwdQmRpEAfazeg1nWBy89g.b['19'][0]++,record)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['19'][1]++,null);},getRow:function(id){__cov_lwdQmRpEAfazeg1nWBy89g.f['6']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['44']++;var tbody=this.tbodyNode,row=null;__cov_lwdQmRpEAfazeg1nWBy89g.s['45']++;if(tbody){__cov_lwdQmRpEAfazeg1nWBy89g.b['20'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['46']++;if(id){__cov_lwdQmRpEAfazeg1nWBy89g.b['21'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['47']++;id=(__cov_lwdQmRpEAfazeg1nWBy89g.b['22'][0]++,this._idMap[id.get?(__cov_lwdQmRpEAfazeg1nWBy89g.b['23'][0]++,id.get('clientId')):(__cov_lwdQmRpEAfazeg1nWBy89g.b['23'][1]++,id)])||(__cov_lwdQmRpEAfazeg1nWBy89g.b['22'][1]++,id);}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['21'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['48']++;row=isNumber(id)?(__cov_lwdQmRpEAfazeg1nWBy89g.b['24'][0]++,tbody.get('children').item(id)):(__cov_lwdQmRpEAfazeg1nWBy89g.b['24'][1]++,tbody.one('#'+id));}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['20'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['49']++;return row;},render:function(){__cov_lwdQmRpEAfazeg1nWBy89g.f['7']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['50']++;var table=this.get('container'),data=this.get('modelList'),displayCols=this.get('columns'),tbody=(__cov_lwdQmRpEAfazeg1nWBy89g.b['25'][0]++,this.tbodyNode)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['25'][1]++,this.tbodyNode=this._createTBodyNode());__cov_lwdQmRpEAfazeg1nWBy89g.s['51']++;this._createRowTemplate(displayCols);__cov_lwdQmRpEAfazeg1nWBy89g.s['52']++;if(data){__cov_lwdQmRpEAfazeg1nWBy89g.b['26'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['53']++;tbody.setHTML(this._createDataHTML(displayCols));__cov_lwdQmRpEAfazeg1nWBy89g.s['54']++;this._applyNodeFormatters(tbody,displayCols);}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['26'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['55']++;if(tbody.get('parentNode')!==table){__cov_lwdQmRpEAfazeg1nWBy89g.b['27'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['56']++;table.appendChild(tbody);}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['27'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['57']++;this.bindUI();__cov_lwdQmRpEAfazeg1nWBy89g.s['58']++;return this;},refreshRow:function(row,model,colKeys){__cov_lwdQmRpEAfazeg1nWBy89g.f['8']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['59']++;var col,cell,len=colKeys.length,i;__cov_lwdQmRpEAfazeg1nWBy89g.s['60']++;for(i=0;i<len;i++){__cov_lwdQmRpEAfazeg1nWBy89g.s['61']++;col=this.getColumn(colKeys[i]);__cov_lwdQmRpEAfazeg1nWBy89g.s['62']++;cell=row.one('.'+this.getClassName('col',(__cov_lwdQmRpEAfazeg1nWBy89g.b['28'][0]++,col._id)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['28'][1]++,col.key)));__cov_lwdQmRpEAfazeg1nWBy89g.s['63']++;this.refreshCell(cell,model);}__cov_lwdQmRpEAfazeg1nWBy89g.s['64']++;return this;},refreshCell:function(cell,model,col){__cov_lwdQmRpEAfazeg1nWBy89g.f['9']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['65']++;var content,formatterFn,formatterData,data=model.toJSON();__cov_lwdQmRpEAfazeg1nWBy89g.s['66']++;cell=this.getCell(cell);__cov_lwdQmRpEAfazeg1nWBy89g.s['67']++;(__cov_lwdQmRpEAfazeg1nWBy89g.b['29'][0]++,model)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['29'][1]++,model=this.getRecord(cell));__cov_lwdQmRpEAfazeg1nWBy89g.s['68']++;(__cov_lwdQmRpEAfazeg1nWBy89g.b['30'][0]++,col)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['30'][1]++,col=this.getColumn(cell));__cov_lwdQmRpEAfazeg1nWBy89g.s['69']++;if(col.nodeFormatter){__cov_lwdQmRpEAfazeg1nWBy89g.b['31'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['70']++;formatterData={cell:(__cov_lwdQmRpEAfazeg1nWBy89g.b['32'][0]++,cell.one('.'+this.getClassName('liner')))||(__cov_lwdQmRpEAfazeg1nWBy89g.b['32'][1]++,cell),column:col,data:data,record:model,rowIndex:this._getRowIndex(cell.ancestor('tr')),td:cell,value:data[col.key]};__cov_lwdQmRpEAfazeg1nWBy89g.s['71']++;keep=col.nodeFormatter.call(host,formatterData);__cov_lwdQmRpEAfazeg1nWBy89g.s['72']++;if(keep===false){__cov_lwdQmRpEAfazeg1nWBy89g.b['33'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['73']++;cell.destroy(true);}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['33'][1]++;}}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['31'][1]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['74']++;if(col.formatter){__cov_lwdQmRpEAfazeg1nWBy89g.b['34'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['75']++;if(!col._formatterFn){__cov_lwdQmRpEAfazeg1nWBy89g.b['35'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['76']++;col=this._setColumnsFormatterFn([col])[0];}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['35'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['77']++;formatterFn=(__cov_lwdQmRpEAfazeg1nWBy89g.b['36'][0]++,col._formatterFn)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['36'][1]++,null);__cov_lwdQmRpEAfazeg1nWBy89g.s['78']++;if(formatterFn){__cov_lwdQmRpEAfazeg1nWBy89g.b['37'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['79']++;formatterData={value:data[col.key],data:data,column:col,record:model,className:'',rowClass:'',rowIndex:this._getRowIndex(cell.ancestor('tr'))};__cov_lwdQmRpEAfazeg1nWBy89g.s['80']++;content=formatterFn.call(this.get('host'),formatterData);__cov_lwdQmRpEAfazeg1nWBy89g.s['81']++;if(content===undefined){__cov_lwdQmRpEAfazeg1nWBy89g.b['38'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['82']++;content=formatterData.value;}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['38'][1]++;}}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['37'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['83']++;if((__cov_lwdQmRpEAfazeg1nWBy89g.b['40'][0]++,content===undefined)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['40'][1]++,content===null)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['40'][2]++,content==='')){__cov_lwdQmRpEAfazeg1nWBy89g.b['39'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['84']++;content=(__cov_lwdQmRpEAfazeg1nWBy89g.b['41'][0]++,col.emptyCellValue)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['41'][1]++,'');}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['39'][1]++;}}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['34'][1]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['85']++;content=(__cov_lwdQmRpEAfazeg1nWBy89g.b['42'][0]++,data[col.key])||(__cov_lwdQmRpEAfazeg1nWBy89g.b['42'][1]++,col.emptyCellValue)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['42'][2]++,'');}}__cov_lwdQmRpEAfazeg1nWBy89g.s['86']++;cell.setHTML(col.allowHTML?(__cov_lwdQmRpEAfazeg1nWBy89g.b['43'][0]++,content):(__cov_lwdQmRpEAfazeg1nWBy89g.b['43'][1]++,Y.Escape.html(content)));__cov_lwdQmRpEAfazeg1nWBy89g.s['87']++;return this;},getColumn:function(name){__cov_lwdQmRpEAfazeg1nWBy89g.f['10']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['88']++;if(Y.instanceOf(name,Y.Node)){__cov_lwdQmRpEAfazeg1nWBy89g.b['44'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['89']++;name=name.get('className').match(new RegExp(this.getClassName('col')+'-([^ ]*)'))[1];}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['44'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['90']++;if(this.host){__cov_lwdQmRpEAfazeg1nWBy89g.b['45'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['91']++;return this.host._columnMap[name];}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['45'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['92']++;var displayCols=this.get('columns'),col=null;__cov_lwdQmRpEAfazeg1nWBy89g.s['93']++;Y.Array.some(displayCols,function(_col){__cov_lwdQmRpEAfazeg1nWBy89g.f['11']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['94']++;if(((__cov_lwdQmRpEAfazeg1nWBy89g.b['47'][0]++,_col._id)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['47'][1]++,_col.key))===name){__cov_lwdQmRpEAfazeg1nWBy89g.b['46'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['95']++;col=_col;__cov_lwdQmRpEAfazeg1nWBy89g.s['96']++;return true;}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['46'][1]++;}});__cov_lwdQmRpEAfazeg1nWBy89g.s['97']++;return col;},_afterColumnsChange:function(){__cov_lwdQmRpEAfazeg1nWBy89g.f['12']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['98']++;this.render();},_afterDataChange:function(e){__cov_lwdQmRpEAfazeg1nWBy89g.f['13']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['99']++;var type=((__cov_lwdQmRpEAfazeg1nWBy89g.b['48'][0]++,e.type.match(/:(add|change|remove)$/))||(__cov_lwdQmRpEAfazeg1nWBy89g.b['48'][1]++,[]))[1],index=e.index,displayCols=this.get('columns'),col,changed=(__cov_lwdQmRpEAfazeg1nWBy89g.b['49'][0]++,e.changed)&&(__cov_lwdQmRpEAfazeg1nWBy89g.b['49'][1]++,Y.Object.keys(e.changed)),key,row,i,len;__cov_lwdQmRpEAfazeg1nWBy89g.s['100']++;for(i=0,len=displayCols.length;i<len;i++){__cov_lwdQmRpEAfazeg1nWBy89g.s['101']++;col=displayCols[i];__cov_lwdQmRpEAfazeg1nWBy89g.s['102']++;if(col.hasOwnProperty('nodeFormatter')){__cov_lwdQmRpEAfazeg1nWBy89g.b['50'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['103']++;this.render();__cov_lwdQmRpEAfazeg1nWBy89g.s['104']++;this.fire(EV_CONTENT_UPDATE);__cov_lwdQmRpEAfazeg1nWBy89g.s['105']++;return;}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['50'][1]++;}}__cov_lwdQmRpEAfazeg1nWBy89g.s['106']++;switch(type){case'change':__cov_lwdQmRpEAfazeg1nWBy89g.b['51'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['107']++;for(i=0,len=displayCols.length;i<len;i++){__cov_lwdQmRpEAfazeg1nWBy89g.s['108']++;col=displayCols[i];__cov_lwdQmRpEAfazeg1nWBy89g.s['109']++;key=col.key;__cov_lwdQmRpEAfazeg1nWBy89g.s['110']++;if((__cov_lwdQmRpEAfazeg1nWBy89g.b['53'][0]++,col.formatter)&&(__cov_lwdQmRpEAfazeg1nWBy89g.b['53'][1]++,!e.changed[key])){__cov_lwdQmRpEAfazeg1nWBy89g.b['52'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['111']++;changed.push(key);}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['52'][1]++;}}__cov_lwdQmRpEAfazeg1nWBy89g.s['112']++;this.refreshRow(this.getRow(e.target),e.target,changed);__cov_lwdQmRpEAfazeg1nWBy89g.s['113']++;break;case'add':__cov_lwdQmRpEAfazeg1nWBy89g.b['51'][1]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['114']++;index=Math.min(index,this.get('modelList').size()-1);__cov_lwdQmRpEAfazeg1nWBy89g.s['115']++;this._setColumnsFormatterFn(displayCols);__cov_lwdQmRpEAfazeg1nWBy89g.s['116']++;row=Y.Node.create(this._createRowHTML(e.model,index,displayCols));__cov_lwdQmRpEAfazeg1nWBy89g.s['117']++;this.tbodyNode.insert(row,index);__cov_lwdQmRpEAfazeg1nWBy89g.s['118']++;this._restripe(index);__cov_lwdQmRpEAfazeg1nWBy89g.s['119']++;break;case'remove':__cov_lwdQmRpEAfazeg1nWBy89g.b['51'][2]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['120']++;this.getRow(index).remove(true);__cov_lwdQmRpEAfazeg1nWBy89g.s['121']++;this._restripe(index-1);__cov_lwdQmRpEAfazeg1nWBy89g.s['122']++;break;default:__cov_lwdQmRpEAfazeg1nWBy89g.b['51'][3]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['123']++;this.render();}__cov_lwdQmRpEAfazeg1nWBy89g.s['124']++;this.fire(EV_CONTENT_UPDATE);},_restripe:function(index){__cov_lwdQmRpEAfazeg1nWBy89g.f['14']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['125']++;var task=this._restripeTask,self;__cov_lwdQmRpEAfazeg1nWBy89g.s['126']++;index=Math.max(index|0,0);__cov_lwdQmRpEAfazeg1nWBy89g.s['127']++;if(!task){__cov_lwdQmRpEAfazeg1nWBy89g.b['54'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['128']++;self=this;__cov_lwdQmRpEAfazeg1nWBy89g.s['129']++;this._restripeTask={timer:setTimeout(function(){__cov_lwdQmRpEAfazeg1nWBy89g.f['15']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['130']++;if((__cov_lwdQmRpEAfazeg1nWBy89g.b['56'][0]++,!self)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['56'][1]++,self.get('destroy'))||(__cov_lwdQmRpEAfazeg1nWBy89g.b['56'][2]++,!self.tbodyNode)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['56'][3]++,!self.tbodyNode.inDoc())){__cov_lwdQmRpEAfazeg1nWBy89g.b['55'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['131']++;self._restripeTask=null;__cov_lwdQmRpEAfazeg1nWBy89g.s['132']++;return;}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['55'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['133']++;var odd=[self.CLASS_ODD,self.CLASS_EVEN],even=[self.CLASS_EVEN,self.CLASS_ODD],index=self._restripeTask.index;__cov_lwdQmRpEAfazeg1nWBy89g.s['134']++;self.tbodyNode.get('childNodes').slice(index).each(function(row,i){__cov_lwdQmRpEAfazeg1nWBy89g.f['16']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['135']++;row.replaceClass.apply(row,(index+i)%2?(__cov_lwdQmRpEAfazeg1nWBy89g.b['57'][0]++,even):(__cov_lwdQmRpEAfazeg1nWBy89g.b['57'][1]++,odd));});__cov_lwdQmRpEAfazeg1nWBy89g.s['136']++;self._restripeTask=null;},0),index:index};}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['54'][1]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['137']++;task.index=Math.min(task.index,index);}},_afterModelListChange:function(){__cov_lwdQmRpEAfazeg1nWBy89g.f['17']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['138']++;var handles=this._eventHandles;__cov_lwdQmRpEAfazeg1nWBy89g.s['139']++;if(handles.dataChange){__cov_lwdQmRpEAfazeg1nWBy89g.b['58'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['140']++;handles.dataChange.detach();__cov_lwdQmRpEAfazeg1nWBy89g.s['141']++;delete handles.dataChange;__cov_lwdQmRpEAfazeg1nWBy89g.s['142']++;this.bindUI();}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['58'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['143']++;if(this.tbodyNode){__cov_lwdQmRpEAfazeg1nWBy89g.b['59'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['144']++;this.render();}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['59'][1]++;}},_applyNodeFormatters:function(tbody,displayCols){__cov_lwdQmRpEAfazeg1nWBy89g.f['18']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['145']++;var host=(__cov_lwdQmRpEAfazeg1nWBy89g.b['60'][0]++,this.host)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['60'][1]++,this),data=this.get('modelList'),formatters=[],linerQuery='.'+this.getClassName('liner'),rows,i,len;__cov_lwdQmRpEAfazeg1nWBy89g.s['146']++;for(i=0,len=displayCols.length;i<len;++i){__cov_lwdQmRpEAfazeg1nWBy89g.s['147']++;if(displayCols[i].nodeFormatter){__cov_lwdQmRpEAfazeg1nWBy89g.b['61'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['148']++;formatters.push(i);}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['61'][1]++;}}__cov_lwdQmRpEAfazeg1nWBy89g.s['149']++;if((__cov_lwdQmRpEAfazeg1nWBy89g.b['63'][0]++,data)&&(__cov_lwdQmRpEAfazeg1nWBy89g.b['63'][1]++,formatters.length)){__cov_lwdQmRpEAfazeg1nWBy89g.b['62'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['150']++;rows=tbody.get('childNodes');__cov_lwdQmRpEAfazeg1nWBy89g.s['151']++;data.each(function(record,index){__cov_lwdQmRpEAfazeg1nWBy89g.f['19']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['152']++;var formatterData={data:record.toJSON(),record:record,rowIndex:index},row=rows.item(index),i,len,col,key,cells,cell,keep;__cov_lwdQmRpEAfazeg1nWBy89g.s['153']++;if(row){__cov_lwdQmRpEAfazeg1nWBy89g.b['64'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['154']++;cells=row.get('childNodes');__cov_lwdQmRpEAfazeg1nWBy89g.s['155']++;for(i=0,len=formatters.length;i<len;++i){__cov_lwdQmRpEAfazeg1nWBy89g.s['156']++;cell=cells.item(formatters[i]);__cov_lwdQmRpEAfazeg1nWBy89g.s['157']++;if(cell){__cov_lwdQmRpEAfazeg1nWBy89g.b['65'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['158']++;col=formatterData.column=displayCols[formatters[i]];__cov_lwdQmRpEAfazeg1nWBy89g.s['159']++;key=(__cov_lwdQmRpEAfazeg1nWBy89g.b['66'][0]++,col.key)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['66'][1]++,col.id);__cov_lwdQmRpEAfazeg1nWBy89g.s['160']++;formatterData.value=record.get(key);__cov_lwdQmRpEAfazeg1nWBy89g.s['161']++;formatterData.td=cell;__cov_lwdQmRpEAfazeg1nWBy89g.s['162']++;formatterData.cell=(__cov_lwdQmRpEAfazeg1nWBy89g.b['67'][0]++,cell.one(linerQuery))||(__cov_lwdQmRpEAfazeg1nWBy89g.b['67'][1]++,cell);__cov_lwdQmRpEAfazeg1nWBy89g.s['163']++;keep=col.nodeFormatter.call(host,formatterData);__cov_lwdQmRpEAfazeg1nWBy89g.s['164']++;if(keep===false){__cov_lwdQmRpEAfazeg1nWBy89g.b['68'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['165']++;cell.destroy(true);}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['68'][1]++;}}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['65'][1]++;}}}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['64'][1]++;}});}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['62'][1]++;}},bindUI:function(){__cov_lwdQmRpEAfazeg1nWBy89g.f['20']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['166']++;var handles=this._eventHandles,modelList=this.get('modelList'),changeEvent=modelList.model.NAME+':change';__cov_lwdQmRpEAfazeg1nWBy89g.s['167']++;if(!handles.columnsChange){__cov_lwdQmRpEAfazeg1nWBy89g.b['69'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['168']++;handles.columnsChange=this.after('columnsChange',bind('_afterColumnsChange',this));}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['69'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['169']++;if((__cov_lwdQmRpEAfazeg1nWBy89g.b['71'][0]++,modelList)&&(__cov_lwdQmRpEAfazeg1nWBy89g.b['71'][1]++,!handles.dataChange)){__cov_lwdQmRpEAfazeg1nWBy89g.b['70'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['170']++;handles.dataChange=modelList.after(['add','remove','reset',changeEvent],bind('_afterDataChange',this));}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['70'][1]++;}},_createDataHTML:function(displayCols){__cov_lwdQmRpEAfazeg1nWBy89g.f['21']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['171']++;var data=this.get('modelList'),html='';__cov_lwdQmRpEAfazeg1nWBy89g.s['172']++;if(data){__cov_lwdQmRpEAfazeg1nWBy89g.b['72'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['173']++;data.each(function(model,index){__cov_lwdQmRpEAfazeg1nWBy89g.f['22']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['174']++;html+=this._createRowHTML(model,index,displayCols);},this);}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['72'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['175']++;return html;},_createRowHTML:function(model,index,displayCols){__cov_lwdQmRpEAfazeg1nWBy89g.f['23']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['176']++;var data=model.toJSON(),clientId=model.get('clientId'),values={rowId:this._getRowId(clientId),clientId:clientId,rowClass:index%2?(__cov_lwdQmRpEAfazeg1nWBy89g.b['73'][0]++,this.CLASS_ODD):(__cov_lwdQmRpEAfazeg1nWBy89g.b['73'][1]++,this.CLASS_EVEN)},host=(__cov_lwdQmRpEAfazeg1nWBy89g.b['74'][0]++,this.host)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['74'][1]++,this),i,len,col,token,value,formatterData;__cov_lwdQmRpEAfazeg1nWBy89g.s['177']++;for(i=0,len=displayCols.length;i<len;++i){__cov_lwdQmRpEAfazeg1nWBy89g.s['178']++;col=displayCols[i];__cov_lwdQmRpEAfazeg1nWBy89g.s['179']++;value=data[col.key];__cov_lwdQmRpEAfazeg1nWBy89g.s['180']++;token=(__cov_lwdQmRpEAfazeg1nWBy89g.b['75'][0]++,col._id)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['75'][1]++,col.key);__cov_lwdQmRpEAfazeg1nWBy89g.s['181']++;values[token+'-className']='';__cov_lwdQmRpEAfazeg1nWBy89g.s['182']++;if(col._formatterFn){__cov_lwdQmRpEAfazeg1nWBy89g.b['76'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['183']++;formatterData={value:value,data:data,column:col,record:model,className:'',rowClass:'',rowIndex:index};__cov_lwdQmRpEAfazeg1nWBy89g.s['184']++;value=col._formatterFn.call(host,formatterData);__cov_lwdQmRpEAfazeg1nWBy89g.s['185']++;if(value===undefined){__cov_lwdQmRpEAfazeg1nWBy89g.b['77'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['186']++;value=formatterData.value;}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['77'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['187']++;values[token+'-className']=formatterData.className;__cov_lwdQmRpEAfazeg1nWBy89g.s['188']++;values.rowClass+=' '+formatterData.rowClass;}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['76'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['189']++;if((__cov_lwdQmRpEAfazeg1nWBy89g.b['79'][0]++,!values.hasOwnProperty(token))||(__cov_lwdQmRpEAfazeg1nWBy89g.b['79'][1]++,data.hasOwnProperty(col.key))){__cov_lwdQmRpEAfazeg1nWBy89g.b['78'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['190']++;if((__cov_lwdQmRpEAfazeg1nWBy89g.b['81'][0]++,value===undefined)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['81'][1]++,value===null)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['81'][2]++,value==='')){__cov_lwdQmRpEAfazeg1nWBy89g.b['80'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['191']++;value=(__cov_lwdQmRpEAfazeg1nWBy89g.b['82'][0]++,col.emptyCellValue)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['82'][1]++,'');}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['80'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['192']++;values[token]=col.allowHTML?(__cov_lwdQmRpEAfazeg1nWBy89g.b['83'][0]++,value):(__cov_lwdQmRpEAfazeg1nWBy89g.b['83'][1]++,htmlEscape(value));}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['78'][1]++;}}__cov_lwdQmRpEAfazeg1nWBy89g.s['193']++;values.rowClass=values.rowClass.replace(/\s+/g,' ');__cov_lwdQmRpEAfazeg1nWBy89g.s['194']++;return fromTemplate(this._rowTemplate,values);},_getRowIndex:function(row){__cov_lwdQmRpEAfazeg1nWBy89g.f['24']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['195']++;var tbody=this.tbodyNode,index=1;__cov_lwdQmRpEAfazeg1nWBy89g.s['196']++;if((__cov_lwdQmRpEAfazeg1nWBy89g.b['85'][0]++,tbody)&&(__cov_lwdQmRpEAfazeg1nWBy89g.b['85'][1]++,row)){__cov_lwdQmRpEAfazeg1nWBy89g.b['84'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['197']++;if(row.ancestor('tbody')!==tbody){__cov_lwdQmRpEAfazeg1nWBy89g.b['86'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['198']++;return null;}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['86'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['199']++;while(row=row.previous()){__cov_lwdQmRpEAfazeg1nWBy89g.s['200']++;index++;}}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['84'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['201']++;return index;},_createRowTemplate:function(displayCols){__cov_lwdQmRpEAfazeg1nWBy89g.f['25']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['202']++;var html='',cellTemplate=this.CELL_TEMPLATE,i,len,col,key,token,headers,tokenValues,formatter;__cov_lwdQmRpEAfazeg1nWBy89g.s['203']++;this._setColumnsFormatterFn(displayCols);__cov_lwdQmRpEAfazeg1nWBy89g.s['204']++;for(i=0,len=displayCols.length;i<len;++i){__cov_lwdQmRpEAfazeg1nWBy89g.s['205']++;col=displayCols[i];__cov_lwdQmRpEAfazeg1nWBy89g.s['206']++;key=col.key;__cov_lwdQmRpEAfazeg1nWBy89g.s['207']++;token=(__cov_lwdQmRpEAfazeg1nWBy89g.b['87'][0]++,col._id)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['87'][1]++,key);__cov_lwdQmRpEAfazeg1nWBy89g.s['208']++;formatter=col._formatterFn;__cov_lwdQmRpEAfazeg1nWBy89g.s['209']++;headers=((__cov_lwdQmRpEAfazeg1nWBy89g.b['89'][0]++,col._headers)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['89'][1]++,[])).length>1?(__cov_lwdQmRpEAfazeg1nWBy89g.b['88'][0]++,'headers="'+col._headers.join(' ')+'"'):(__cov_lwdQmRpEAfazeg1nWBy89g.b['88'][1]++,'');__cov_lwdQmRpEAfazeg1nWBy89g.s['210']++;tokenValues={content:'{'+token+'}',headers:headers,className:this.getClassName('col',token)+' '+((__cov_lwdQmRpEAfazeg1nWBy89g.b['90'][0]++,col.className)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['90'][1]++,''))+' '+this.getClassName('cell')+' {'+token+'-className}'};__cov_lwdQmRpEAfazeg1nWBy89g.s['211']++;if((__cov_lwdQmRpEAfazeg1nWBy89g.b['92'][0]++,!formatter)&&(__cov_lwdQmRpEAfazeg1nWBy89g.b['92'][1]++,col.formatter)){__cov_lwdQmRpEAfazeg1nWBy89g.b['91'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['212']++;tokenValues.content=col.formatter.replace(valueRegExp,tokenValues.content);}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['91'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['213']++;if(col.nodeFormatter){__cov_lwdQmRpEAfazeg1nWBy89g.b['93'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['214']++;tokenValues.content='';}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['93'][1]++;}__cov_lwdQmRpEAfazeg1nWBy89g.s['215']++;html+=fromTemplate((__cov_lwdQmRpEAfazeg1nWBy89g.b['94'][0]++,col.cellTemplate)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['94'][1]++,cellTemplate),tokenValues);}__cov_lwdQmRpEAfazeg1nWBy89g.s['216']++;this._rowTemplate=fromTemplate(this.ROW_TEMPLATE,{content:html});},_setColumnsFormatterFn:function(displayCols){__cov_lwdQmRpEAfazeg1nWBy89g.f['26']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['217']++;var Formatters=Y.DataTable.BodyView.Formatters,formatter,col,i,len;__cov_lwdQmRpEAfazeg1nWBy89g.s['218']++;for(i=0,len=displayCols.length;i<len;i++){__cov_lwdQmRpEAfazeg1nWBy89g.s['219']++;col=displayCols[i];__cov_lwdQmRpEAfazeg1nWBy89g.s['220']++;formatter=col.formatter;__cov_lwdQmRpEAfazeg1nWBy89g.s['221']++;if((__cov_lwdQmRpEAfazeg1nWBy89g.b['96'][0]++,!col._formatterFn)&&(__cov_lwdQmRpEAfazeg1nWBy89g.b['96'][1]++,formatter)){__cov_lwdQmRpEAfazeg1nWBy89g.b['95'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['222']++;if(Lang.isFunction(formatter)){__cov_lwdQmRpEAfazeg1nWBy89g.b['97'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['223']++;col._formatterFn=formatter;}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['97'][1]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['224']++;if(formatter in Formatters){__cov_lwdQmRpEAfazeg1nWBy89g.b['98'][0]++;__cov_lwdQmRpEAfazeg1nWBy89g.s['225']++;col._formatterFn=Formatters[formatter].call((__cov_lwdQmRpEAfazeg1nWBy89g.b['99'][0]++,this.host)||(__cov_lwdQmRpEAfazeg1nWBy89g.b['99'][1]++,this),col);}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['98'][1]++;}}}else{__cov_lwdQmRpEAfazeg1nWBy89g.b['95'][1]++;}}__cov_lwdQmRpEAfazeg1nWBy89g.s['226']++;return displayCols;},_createTBodyNode:function(){__cov_lwdQmRpEAfazeg1nWBy89g.f['27']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['227']++;return Y.Node.create(fromTemplate(this.TBODY_TEMPLATE,{className:this.getClassName('data')}));},destructor:function(){__cov_lwdQmRpEAfazeg1nWBy89g.f['28']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['228']++;new Y.EventHandle(YObject.values(this._eventHandles)).detach();},_getRowId:function(clientId){__cov_lwdQmRpEAfazeg1nWBy89g.f['29']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['229']++;return(__cov_lwdQmRpEAfazeg1nWBy89g.b['100'][0]++,this._idMap[clientId])||(__cov_lwdQmRpEAfazeg1nWBy89g.b['100'][1]++,this._idMap[clientId]=Y.guid());},initializer:function(config){__cov_lwdQmRpEAfazeg1nWBy89g.f['30']++;__cov_lwdQmRpEAfazeg1nWBy89g.s['230']++;this.host=config.host;__cov_lwdQmRpEAfazeg1nWBy89g.s['231']++;this._eventHandles={modelListChange:this.after('modelListChange',bind('_afterModelListChange',this))};__cov_lwdQmRpEAfazeg1nWBy89g.s['232']++;this._idMap={};__cov_lwdQmRpEAfazeg1nWBy89g.s['233']++;this.CLASS_ODD=this.getClassName('odd');__cov_lwdQmRpEAfazeg1nWBy89g.s['234']++;this.CLASS_EVEN=this.getClassName('even');}},{Formatters:{}});},'3.13.0',{'requires':['datatable-core','view','classnamemanager']});