if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/uploader-html5/uploader-html5.js']) {
   __coverage__['build/uploader-html5/uploader-html5.js'] = {"path":"build/uploader-html5/uploader-html5.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},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0,0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0,0,0,0,0,0,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,0,0],"31":[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,"31":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":26},"end":{"line":1,"column":45}}},"2":{"name":"UploaderHTML5","line":25,"loc":{"start":{"line":25,"column":0},"end":{"line":25,"column":31}}},"3":{"name":"(anonymous_3)","line":73,"loc":{"start":{"line":73,"column":18},"end":{"line":73,"column":30}}},"4":{"name":"(anonymous_4)","line":244,"loc":{"start":{"line":244,"column":15},"end":{"line":244,"column":27}}},"5":{"name":"(anonymous_5)","line":261,"loc":{"start":{"line":261,"column":13},"end":{"line":261,"column":25}}},"6":{"name":"(anonymous_6)","line":274,"loc":{"start":{"line":274,"column":37},"end":{"line":274,"column":51}}},"7":{"name":"(anonymous_7)","line":288,"loc":{"start":{"line":288,"column":23},"end":{"line":288,"column":35}}},"8":{"name":"(anonymous_8)","line":305,"loc":{"start":{"line":305,"column":20},"end":{"line":305,"column":37}}},"9":{"name":"(anonymous_9)","line":332,"loc":{"start":{"line":332,"column":24},"end":{"line":332,"column":36}}},"10":{"name":"(anonymous_10)","line":343,"loc":{"start":{"line":343,"column":22},"end":{"line":343,"column":39}}},"11":{"name":"(anonymous_11)","line":365,"loc":{"start":{"line":365,"column":41},"end":{"line":365,"column":58}}},"12":{"name":"(anonymous_12)","line":373,"loc":{"start":{"line":373,"column":41},"end":{"line":373,"column":58}}},"13":{"name":"(anonymous_13)","line":399,"loc":{"start":{"line":399,"column":22},"end":{"line":399,"column":44}}},"14":{"name":"(anonymous_14)","line":415,"loc":{"start":{"line":415,"column":24},"end":{"line":415,"column":36}}},"15":{"name":"(anonymous_15)","line":431,"loc":{"start":{"line":431,"column":22},"end":{"line":431,"column":34}}},"16":{"name":"(anonymous_16)","line":448,"loc":{"start":{"line":448,"column":22},"end":{"line":448,"column":34}}},"17":{"name":"(anonymous_17)","line":468,"loc":{"start":{"line":468,"column":19},"end":{"line":468,"column":34}}},"18":{"name":"(anonymous_18)","line":478,"loc":{"start":{"line":478,"column":19},"end":{"line":478,"column":34}}},"19":{"name":"(anonymous_19)","line":493,"loc":{"start":{"line":493,"column":22},"end":{"line":493,"column":36}}},"20":{"name":"(anonymous_20)","line":499,"loc":{"start":{"line":499,"column":27},"end":{"line":499,"column":44}}},"21":{"name":"(anonymous_21)","line":507,"loc":{"start":{"line":507,"column":27},"end":{"line":507,"column":44}}},"22":{"name":"(anonymous_22)","line":532,"loc":{"start":{"line":532,"column":26},"end":{"line":532,"column":43}}},"23":{"name":"(anonymous_23)","line":568,"loc":{"start":{"line":568,"column":27},"end":{"line":568,"column":39}}},"24":{"name":"(anonymous_24)","line":584,"loc":{"start":{"line":584,"column":13},"end":{"line":584,"column":44}}},"25":{"name":"(anonymous_25)","line":612,"loc":{"start":{"line":612,"column":16},"end":{"line":612,"column":41}}},"26":{"name":"(anonymous_26)","line":625,"loc":{"start":{"line":625,"column":18},"end":{"line":625,"column":50}}},"27":{"name":"(anonymous_27)","line":653,"loc":{"start":{"line":653,"column":25},"end":{"line":653,"column":41}}},"28":{"name":"(anonymous_28)","line":762,"loc":{"start":{"line":762,"column":20},"end":{"line":762,"column":35}}},"29":{"name":"(anonymous_29)","line":794,"loc":{"start":{"line":794,"column":23},"end":{"line":794,"column":44}}},"30":{"name":"(anonymous_30)","line":905,"loc":{"start":{"line":905,"column":21},"end":{"line":905,"column":33}}},"31":{"name":"(anonymous_31)","line":923,"loc":{"start":{"line":923,"column":23},"end":{"line":923,"column":44}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":983,"column":111}},"2":{"start":{"line":14,"column":0},"end":{"line":15,"column":38}},"3":{"start":{"line":25,"column":0},"end":{"line":27,"column":1}},"4":{"start":{"line":26,"column":2},"end":{"line":26,"column":65}},"5":{"start":{"line":31,"column":0},"end":{"line":977,"column":3}},"6":{"start":{"line":75,"column":4},"end":{"line":75,"column":32}},"7":{"start":{"line":76,"column":4},"end":{"line":76,"column":22}},"8":{"start":{"line":77,"column":4},"end":{"line":77,"column":31}},"9":{"start":{"line":78,"column":4},"end":{"line":78,"column":24}},"10":{"start":{"line":94,"column":4},"end":{"line":94,"column":31}},"11":{"start":{"line":102,"column":4},"end":{"line":102,"column":32}},"12":{"start":{"line":117,"column":4},"end":{"line":117,"column":36}},"13":{"start":{"line":138,"column":4},"end":{"line":138,"column":35}},"14":{"start":{"line":155,"column":4},"end":{"line":155,"column":40}},"15":{"start":{"line":172,"column":4},"end":{"line":172,"column":35}},"16":{"start":{"line":180,"column":4},"end":{"line":180,"column":39}},"17":{"start":{"line":199,"column":4},"end":{"line":199,"column":32}},"18":{"start":{"line":207,"column":4},"end":{"line":207,"column":30}},"19":{"start":{"line":215,"column":4},"end":{"line":215,"column":29}},"20":{"start":{"line":223,"column":4},"end":{"line":223,"column":30}},"21":{"start":{"line":231,"column":4},"end":{"line":231,"column":25}},"22":{"start":{"line":245,"column":7},"end":{"line":247,"column":53}},"23":{"start":{"line":249,"column":7},"end":{"line":249,"column":58}},"24":{"start":{"line":250,"column":7},"end":{"line":250,"column":36}},"25":{"start":{"line":251,"column":7},"end":{"line":251,"column":83}},"26":{"start":{"line":252,"column":7},"end":{"line":252,"column":47}},"27":{"start":{"line":263,"column":8},"end":{"line":263,"column":33}},"28":{"start":{"line":264,"column":8},"end":{"line":264,"column":33}},"29":{"start":{"line":265,"column":8},"end":{"line":265,"column":31}},"30":{"start":{"line":266,"column":8},"end":{"line":266,"column":29}},"31":{"start":{"line":267,"column":8},"end":{"line":267,"column":31}},"32":{"start":{"line":269,"column":8},"end":{"line":269,"column":72}},"33":{"start":{"line":270,"column":8},"end":{"line":270,"column":68}},"34":{"start":{"line":271,"column":8},"end":{"line":271,"column":64}},"35":{"start":{"line":272,"column":8},"end":{"line":272,"column":76}},"36":{"start":{"line":273,"column":8},"end":{"line":273,"column":70}},"37":{"start":{"line":274,"column":8},"end":{"line":274,"column":129}},"38":{"start":{"line":274,"column":52},"end":{"line":274,"column":120}},"39":{"start":{"line":275,"column":8},"end":{"line":275,"column":70}},"40":{"start":{"line":277,"column":8},"end":{"line":277,"column":76}},"41":{"start":{"line":289,"column":8},"end":{"line":289,"column":42}},"42":{"start":{"line":290,"column":8},"end":{"line":290,"column":84}},"43":{"start":{"line":291,"column":8},"end":{"line":291,"column":60}},"44":{"start":{"line":292,"column":8},"end":{"line":292,"column":70}},"45":{"start":{"line":293,"column":8},"end":{"line":293,"column":33}},"46":{"start":{"line":294,"column":8},"end":{"line":294,"column":31}},"47":{"start":{"line":306,"column":8},"end":{"line":306,"column":42}},"48":{"start":{"line":308,"column":8},"end":{"line":313,"column":9}},"49":{"start":{"line":309,"column":12},"end":{"line":309,"column":60}},"50":{"start":{"line":310,"column":12},"end":{"line":310,"column":65}},"51":{"start":{"line":311,"column":12},"end":{"line":311,"column":64}},"52":{"start":{"line":312,"column":12},"end":{"line":312,"column":65}},"53":{"start":{"line":315,"column":8},"end":{"line":315,"column":49}},"54":{"start":{"line":317,"column":8},"end":{"line":322,"column":9}},"55":{"start":{"line":318,"column":12},"end":{"line":318,"column":58}},"56":{"start":{"line":319,"column":12},"end":{"line":319,"column":63}},"57":{"start":{"line":320,"column":12},"end":{"line":320,"column":62}},"58":{"start":{"line":321,"column":12},"end":{"line":321,"column":63}},"59":{"start":{"line":333,"column":7},"end":{"line":333,"column":104}},"60":{"start":{"line":345,"column":7},"end":{"line":345,"column":31}},"61":{"start":{"line":346,"column":7},"end":{"line":346,"column":30}},"62":{"start":{"line":348,"column":7},"end":{"line":387,"column":8}},"63":{"start":{"line":350,"column":18},"end":{"line":350,"column":41}},"64":{"start":{"line":351,"column":16},"end":{"line":351,"column":22}},"65":{"start":{"line":353,"column":18},"end":{"line":353,"column":40}},"66":{"start":{"line":354,"column":16},"end":{"line":354,"column":22}},"67":{"start":{"line":356,"column":18},"end":{"line":356,"column":41}},"68":{"start":{"line":357,"column":16},"end":{"line":357,"column":22}},"69":{"start":{"line":360,"column":19},"end":{"line":362,"column":67}},"70":{"start":{"line":364,"column":19},"end":{"line":376,"column":20}},"71":{"start":{"line":365,"column":24},"end":{"line":370,"column":27}},"72":{"start":{"line":366,"column":26},"end":{"line":366,"column":63}},"73":{"start":{"line":367,"column":26},"end":{"line":369,"column":27}},"74":{"start":{"line":368,"column":30},"end":{"line":368,"column":56}},"75":{"start":{"line":373,"column":24},"end":{"line":375,"column":27}},"76":{"start":{"line":374,"column":30},"end":{"line":374,"column":71}},"77":{"start":{"line":378,"column":19},"end":{"line":383,"column":20}},"78":{"start":{"line":379,"column":19},"end":{"line":379,"column":55}},"79":{"start":{"line":380,"column":19},"end":{"line":381,"column":101}},"80":{"start":{"line":382,"column":19},"end":{"line":382,"column":68}},"81":{"start":{"line":385,"column":19},"end":{"line":385,"column":37}},"82":{"start":{"line":386,"column":16},"end":{"line":386,"column":22}},"83":{"start":{"line":400,"column":8},"end":{"line":405,"column":9}},"84":{"start":{"line":401,"column":12},"end":{"line":401,"column":88}},"85":{"start":{"line":404,"column":12},"end":{"line":404,"column":91}},"86":{"start":{"line":416,"column":12},"end":{"line":421,"column":13}},"87":{"start":{"line":417,"column":16},"end":{"line":417,"column":65}},"88":{"start":{"line":420,"column":16},"end":{"line":420,"column":57}},"89":{"start":{"line":432,"column":12},"end":{"line":437,"column":13}},"90":{"start":{"line":433,"column":16},"end":{"line":433,"column":86}},"91":{"start":{"line":436,"column":16},"end":{"line":436,"column":55}},"92":{"start":{"line":449,"column":8},"end":{"line":459,"column":9}},"93":{"start":{"line":450,"column":10},"end":{"line":450,"column":35}},"94":{"start":{"line":451,"column":10},"end":{"line":451,"column":50}},"95":{"start":{"line":452,"column":10},"end":{"line":452,"column":79}},"96":{"start":{"line":454,"column":13},"end":{"line":459,"column":9}},"97":{"start":{"line":455,"column":10},"end":{"line":455,"column":39}},"98":{"start":{"line":456,"column":10},"end":{"line":456,"column":37}},"99":{"start":{"line":457,"column":10},"end":{"line":457,"column":49}},"100":{"start":{"line":458,"column":10},"end":{"line":458,"column":78}},"101":{"start":{"line":469,"column":8},"end":{"line":469,"column":39}},"102":{"start":{"line":479,"column":8},"end":{"line":479,"column":38}},"103":{"start":{"line":480,"column":8},"end":{"line":480,"column":39}},"104":{"start":{"line":494,"column":7},"end":{"line":496,"column":55}},"105":{"start":{"line":498,"column":7},"end":{"line":510,"column":8}},"106":{"start":{"line":499,"column":10},"end":{"line":504,"column":13}},"107":{"start":{"line":500,"column":12},"end":{"line":500,"column":49}},"108":{"start":{"line":501,"column":12},"end":{"line":503,"column":13}},"109":{"start":{"line":502,"column":16},"end":{"line":502,"column":42}},"110":{"start":{"line":507,"column":10},"end":{"line":509,"column":13}},"111":{"start":{"line":508,"column":16},"end":{"line":508,"column":57}},"112":{"start":{"line":512,"column":7},"end":{"line":519,"column":8}},"113":{"start":{"line":513,"column":11},"end":{"line":513,"column":47}},"114":{"start":{"line":515,"column":11},"end":{"line":516,"column":94}},"115":{"start":{"line":518,"column":11},"end":{"line":518,"column":60}},"116":{"start":{"line":521,"column":7},"end":{"line":521,"column":31}},"117":{"start":{"line":534,"column":4},"end":{"line":559,"column":5}},"118":{"start":{"line":536,"column":19},"end":{"line":536,"column":55}},"119":{"start":{"line":537,"column":16},"end":{"line":537,"column":22}},"120":{"start":{"line":539,"column":19},"end":{"line":539,"column":54}},"121":{"start":{"line":540,"column":16},"end":{"line":540,"column":22}},"122":{"start":{"line":542,"column":19},"end":{"line":542,"column":59}},"123":{"start":{"line":543,"column":16},"end":{"line":543,"column":22}},"124":{"start":{"line":545,"column":19},"end":{"line":545,"column":54}},"125":{"start":{"line":546,"column":16},"end":{"line":546,"column":22}},"126":{"start":{"line":548,"column":19},"end":{"line":548,"column":37}},"127":{"start":{"line":549,"column":19},"end":{"line":549,"column":58}},"128":{"start":{"line":550,"column":16},"end":{"line":550,"column":22}},"129":{"start":{"line":553,"column":19},"end":{"line":553,"column":51}},"130":{"start":{"line":554,"column":16},"end":{"line":554,"column":22}},"131":{"start":{"line":557,"column":19},"end":{"line":557,"column":52}},"132":{"start":{"line":558,"column":16},"end":{"line":558,"column":22}},"133":{"start":{"line":569,"column":6},"end":{"line":569,"column":58}},"134":{"start":{"line":570,"column":12},"end":{"line":572,"column":13}},"135":{"start":{"line":571,"column":16},"end":{"line":571,"column":36}},"136":{"start":{"line":586,"column":8},"end":{"line":588,"column":36}},"137":{"start":{"line":590,"column":12},"end":{"line":590,"column":85}},"138":{"start":{"line":592,"column":8},"end":{"line":601,"column":9}},"139":{"start":{"line":594,"column":12},"end":{"line":594,"column":67}},"140":{"start":{"line":595,"column":12},"end":{"line":595,"column":70}},"141":{"start":{"line":596,"column":12},"end":{"line":596,"column":70}},"142":{"start":{"line":597,"column":12},"end":{"line":597,"column":67}},"143":{"start":{"line":598,"column":12},"end":{"line":598,"column":68}},"144":{"start":{"line":600,"column":12},"end":{"line":600,"column":77}},"145":{"start":{"line":613,"column":8},"end":{"line":613,"column":62}},"146":{"start":{"line":626,"column":7},"end":{"line":656,"column":8}},"147":{"start":{"line":627,"column":8},"end":{"line":628,"column":63}},"148":{"start":{"line":630,"column":11},"end":{"line":639,"column":50}},"149":{"start":{"line":640,"column":11},"end":{"line":640,"column":72}},"150":{"start":{"line":641,"column":11},"end":{"line":641,"column":75}},"151":{"start":{"line":642,"column":11},"end":{"line":642,"column":80}},"152":{"start":{"line":643,"column":11},"end":{"line":643,"column":75}},"153":{"start":{"line":644,"column":11},"end":{"line":644,"column":79}},"154":{"start":{"line":645,"column":11},"end":{"line":645,"column":73}},"155":{"start":{"line":646,"column":11},"end":{"line":646,"column":72}},"156":{"start":{"line":647,"column":11},"end":{"line":647,"column":36}},"157":{"start":{"line":649,"column":11},"end":{"line":649,"column":36}},"158":{"start":{"line":651,"column":12},"end":{"line":656,"column":8}},"159":{"start":{"line":652,"column":11},"end":{"line":652,"column":76}},"160":{"start":{"line":653,"column":11},"end":{"line":655,"column":20}},"161":{"start":{"line":654,"column":13},"end":{"line":654,"column":47}},"162":{"start":{"line":763,"column":16},"end":{"line":763,"column":34}},"163":{"start":{"line":795,"column":17},"end":{"line":795,"column":164}},"164":{"start":{"line":906,"column":16},"end":{"line":907,"column":120}},"165":{"start":{"line":924,"column":16},"end":{"line":924,"column":46}},"166":{"start":{"line":979,"column":0},"end":{"line":979,"column":38}}},"branchMap":{"1":{"line":306,"type":"binary-expr","locations":[{"start":{"line":306,"column":17},"end":{"line":306,"column":22}},{"start":{"line":306,"column":26},"end":{"line":306,"column":41}}]},"2":{"line":308,"type":"if","locations":[{"start":{"line":308,"column":8},"end":{"line":308,"column":8}},{"start":{"line":308,"column":8},"end":{"line":308,"column":8}}]},"3":{"line":317,"type":"if","locations":[{"start":{"line":317,"column":8},"end":{"line":317,"column":8}},{"start":{"line":317,"column":8},"end":{"line":317,"column":8}}]},"4":{"line":348,"type":"switch","locations":[{"start":{"line":350,"column":18},"end":{"line":351,"column":22}},{"start":{"line":353,"column":18},"end":{"line":354,"column":22}},{"start":{"line":356,"column":18},"end":{"line":357,"column":22}},{"start":{"line":360,"column":19},"end":{"line":386,"column":22}}]},"5":{"line":364,"type":"if","locations":[{"start":{"line":364,"column":19},"end":{"line":364,"column":19}},{"start":{"line":364,"column":19},"end":{"line":364,"column":19}}]},"6":{"line":367,"type":"if","locations":[{"start":{"line":367,"column":26},"end":{"line":367,"column":26}},{"start":{"line":367,"column":26},"end":{"line":367,"column":26}}]},"7":{"line":378,"type":"if","locations":[{"start":{"line":378,"column":19},"end":{"line":378,"column":19}},{"start":{"line":378,"column":19},"end":{"line":378,"column":19}}]},"8":{"line":381,"type":"cond-expr","locations":[{"start":{"line":381,"column":57},"end":{"line":381,"column":85}},{"start":{"line":381,"column":88},"end":{"line":381,"column":99}}]},"9":{"line":400,"type":"if","locations":[{"start":{"line":400,"column":8},"end":{"line":400,"column":8}},{"start":{"line":400,"column":8},"end":{"line":400,"column":8}}]},"10":{"line":416,"type":"if","locations":[{"start":{"line":416,"column":12},"end":{"line":416,"column":12}},{"start":{"line":416,"column":12},"end":{"line":416,"column":12}}]},"11":{"line":432,"type":"if","locations":[{"start":{"line":432,"column":12},"end":{"line":432,"column":12}},{"start":{"line":432,"column":12},"end":{"line":432,"column":12}}]},"12":{"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}}]},"13":{"line":449,"type":"binary-expr","locations":[{"start":{"line":449,"column":12},"end":{"line":449,"column":31}},{"start":{"line":449,"column":35},"end":{"line":449,"column":63}}]},"14":{"line":454,"type":"if","locations":[{"start":{"line":454,"column":13},"end":{"line":454,"column":13}},{"start":{"line":454,"column":13},"end":{"line":454,"column":13}}]},"15":{"line":454,"type":"binary-expr","locations":[{"start":{"line":454,"column":17},"end":{"line":454,"column":37}},{"start":{"line":454,"column":41},"end":{"line":454,"column":60}}]},"16":{"line":498,"type":"if","locations":[{"start":{"line":498,"column":7},"end":{"line":498,"column":7}},{"start":{"line":498,"column":7},"end":{"line":498,"column":7}}]},"17":{"line":501,"type":"if","locations":[{"start":{"line":501,"column":12},"end":{"line":501,"column":12}},{"start":{"line":501,"column":12},"end":{"line":501,"column":12}}]},"18":{"line":512,"type":"if","locations":[{"start":{"line":512,"column":7},"end":{"line":512,"column":7}},{"start":{"line":512,"column":7},"end":{"line":512,"column":7}}]},"19":{"line":516,"type":"cond-expr","locations":[{"start":{"line":516,"column":49},"end":{"line":516,"column":77}},{"start":{"line":516,"column":80},"end":{"line":516,"column":91}}]},"20":{"line":534,"type":"switch","locations":[{"start":{"line":536,"column":19},"end":{"line":537,"column":22}},{"start":{"line":539,"column":19},"end":{"line":540,"column":22}},{"start":{"line":542,"column":19},"end":{"line":543,"column":22}},{"start":{"line":545,"column":19},"end":{"line":546,"column":22}},{"start":{"line":548,"column":19},"end":{"line":550,"column":22}},{"start":{"line":552,"column":16},"end":{"line":552,"column":16}},{"start":{"line":553,"column":19},"end":{"line":554,"column":22}},{"start":{"line":556,"column":16},"end":{"line":556,"column":16}},{"start":{"line":557,"column":19},"end":{"line":558,"column":22}}]},"21":{"line":570,"type":"if","locations":[{"start":{"line":570,"column":12},"end":{"line":570,"column":12}},{"start":{"line":570,"column":12},"end":{"line":570,"column":12}}]},"22":{"line":586,"type":"binary-expr","locations":[{"start":{"line":586,"column":24},"end":{"line":586,"column":27}},{"start":{"line":586,"column":31},"end":{"line":586,"column":52}}]},"23":{"line":587,"type":"binary-expr","locations":[{"start":{"line":587,"column":23},"end":{"line":587,"column":31}},{"start":{"line":587,"column":35},"end":{"line":587,"column":62}}]},"24":{"line":590,"type":"cond-expr","locations":[{"start":{"line":590,"column":57},"end":{"line":590,"column":73}},{"start":{"line":590,"column":76},"end":{"line":590,"column":84}}]},"25":{"line":592,"type":"if","locations":[{"start":{"line":592,"column":8},"end":{"line":592,"column":8}},{"start":{"line":592,"column":8},"end":{"line":592,"column":8}}]},"26":{"line":626,"type":"if","locations":[{"start":{"line":626,"column":7},"end":{"line":626,"column":7}},{"start":{"line":626,"column":7},"end":{"line":626,"column":7}}]},"27":{"line":627,"type":"binary-expr","locations":[{"start":{"line":627,"column":24},"end":{"line":627,"column":27}},{"start":{"line":627,"column":31},"end":{"line":627,"column":52}}]},"28":{"line":628,"type":"binary-expr","locations":[{"start":{"line":628,"column":23},"end":{"line":628,"column":31}},{"start":{"line":628,"column":35},"end":{"line":628,"column":62}}]},"29":{"line":651,"type":"if","locations":[{"start":{"line":651,"column":12},"end":{"line":651,"column":12}},{"start":{"line":651,"column":12},"end":{"line":651,"column":12}}]},"30":{"line":795,"type":"binary-expr","locations":[{"start":{"line":795,"column":25},"end":{"line":795,"column":55}},{"start":{"line":795,"column":59},"end":{"line":795,"column":85}},{"start":{"line":795,"column":89},"end":{"line":795,"column":123}},{"start":{"line":795,"column":127},"end":{"line":795,"column":162}}]},"31":{"line":924,"type":"binary-expr","locations":[{"start":{"line":924,"column":24},"end":{"line":924,"column":32}},{"start":{"line":924,"column":36},"end":{"line":924,"column":44}}]}},"code":["(function () { FOO.add('uploader-html5', function (F, NAME) {","","","    /**","     * This module provides a UI for file selection and multiple file upload capability using","     * HTML5 XMLHTTPRequest Level 2 as a transport engine.","     * The supported features include: automatic upload queue management, upload progress","     * tracking, drag-and-drop support, server response retrieval and error reporting.","     *","     * @module uploader-html5","     */     ","","// Shorthands for the external modules","var  substitute  = Y.substitute,","     UploaderQueue = Y.Uploader.Queue;","","    /**","     * This module provides a UI for file selection and multiple file upload capability using","     * HTML5 XMLHTTPRequest Level 2 as a transport engine.","     * @class UploaderHTML5","     * @extends Widget","     * @constructor","     */","","function UploaderHTML5(config) {","  UploaderHTML5.superclass.constructor.apply ( this, arguments );","}","","","","Y.UploaderHTML5 = Y.extend( UploaderHTML5, Y.Widget, {","","   /**","    * Stored reference to the instance of the file input field used to ","    * initiate the file selection dialog.","    *","    * @property _fileInputField","    * @type {Node}","    * @protected","    */","    _fileInputField: null,","","   /**","    * Stored reference to the click event binding of the `Select Files`","    * button.","    *","    * @property _buttonBinding","    * @type {EventHandle}","    * @protected","    */","    _buttonBinding: null,","","   /**","    * Stored reference to the instance of Uploader.Queue used to manage","    * the upload process. This is a read-only property that only exists","    * during an active upload process. Only one queue can be active at","    * a time; if an upload start is attempted while a queue is active,","    * it will be ignored.","    *","    * @property queue","    * @type {Y.Uploader.Queue}","    */","    queue: null,","","    // Y.UploaderHTML5 prototype","","    /**","     * Construction logic executed during UploaderHTML5 instantiation.","     *","     * @method initializer","     * @protected","     */","    initializer : function () {","","    this._fileInputField = null;","    this.queue = null;","    this._buttonBinding = null;","    this._fileList = [];","","  // Publish available events","","   /**","    * Signals that files have been selected. ","    *","    * @event fileselect","    * @param event {Event} The event object for the `fileselect` with the","    *                      following payload:","    *  <dl>","    *      <dt>fileList</dt>","    *          <dd>An `Array` of files selected by the user, encapsulated","    *              in Y.FileHTML5 objects.</dd>","    *  </dl>","    */","    this.publish(\"fileselect\");","","   /**","    * Signals that an upload of multiple files has been started. ","    *","    * @event uploadstart","    * @param event {Event} The event object for the `uploadstart`.","    */","    this.publish(\"uploadstart\");","","   /**","    * Signals that an upload of a specific file has started. ","    *","    * @event fileuploadstart","    * @param event {Event} The event object for the `fileuploadstart` with the","    *                      following payload:","    *  <dl>","    *      <dt>file</dt>","    *          <dd>A reference to the Y.File that dispatched the event.</dd>","    *      <dt>originEvent</dt>","    *          <dd>The original event dispatched by Y.File.</dd>","    *  </dl>","    */","    this.publish(\"fileuploadstart\");","","   /**","    * Reports on upload progress of a specific file. ","    *","    * @event uploadprogress","    * @param event {Event} The event object for the `uploadprogress` with the","    *                      following payload:","    *  <dl>","    *      <dt>file</dt>","    *          <dd>The pointer to the instance of `Y.File` that dispatched the event.</dd>","    *      <dt>bytesLoaded</dt>","    *          <dd>The number of bytes of the file that has been uploaded</dd>","    *      <dt>bytesTotal</dt>","    *          <dd>The total number of bytes in the file</dd>","    *      <dt>percentLoaded</dt>","    *          <dd>The fraction of the file that has been uploaded, out of 100</dd>","    *      <dt>originEvent</dt>","    *          <dd>The original event dispatched by the HTML5 uploader</dd>","    *  </dl>","    */","    this.publish(\"uploadprogress\");","","   /**","    * Reports on the total upload progress of the file list. ","    *","    * @event totaluploadprogress","    * @param event {Event} The event object for the `totaluploadprogress` with the","    *                      following payload:","    *  <dl>","    *      <dt>bytesLoaded</dt>","    *          <dd>The number of bytes of the file list that has been uploaded</dd>","    *      <dt>bytesTotal</dt>","    *          <dd>The total number of bytes in the file list</dd>","    *      <dt>percentLoaded</dt>","    *          <dd>The fraction of the file list that has been uploaded, out of 100</dd>","    *  </dl>","    */","    this.publish(\"totaluploadprogress\");","","   /**","    * Signals that a single file upload has been completed. ","    *","    * @event uploadcomplete","    * @param event {Event} The event object for the `uploadcomplete` with the","    *                      following payload:","    *  <dl>","    *      <dt>file</dt>","    *          <dd>The pointer to the instance of `Y.File` whose upload has been completed.</dd>","    *      <dt>originEvent</dt>","    *          <dd>The original event fired by the SWF Uploader</dd>","    *      <dt>data</dt>","    *          <dd>Data returned by the server.</dd>","    *  </dl>","    */","    this.publish(\"uploadcomplete\");","","   /**","    * Signals that the upload process of the entire file list has been completed. ","    *","    * @event alluploadscomplete","    * @param event {Event} The event object for the `alluploadscomplete`.","    */","    this.publish(\"alluploadscomplete\");","","   /**","    * Signals that a error has occurred in a specific file's upload process. ","    *","    * @event uploaderror","    * @param event {Event} The event object for the `uploaderror` with the","    *                      following payload:","    *  <dl>","    *      <dt>originEvent</dt>","    *          <dd>The original error event fired by the HTML5 Uploader. </dd>","    *      <dt>file</dt>","    *          <dd>The pointer at the instance of Y.File that returned the error.</dd>    ","    *      <dt>status</dt>","    *          <dd>The status reported by the XMLHttpRequest object.</dd>","    *      <dt>statusText</dt>","    *          <dd>The statusText reported by the XMLHttpRequest object.</dd>       ","    *  </dl>","    */","    this.publish(\"uploaderror\");","","   /**","    * Signals that a dragged object has entered into the uploader's associated drag-and-drop area. ","    *","    * @event dragenter","    * @param event {Event} The event object for the `dragenter`.","    */","    this.publish(\"dragenter\");","","   /**","    * Signals that an object has been dragged over the uploader's associated drag-and-drop area. ","    *","    * @event dragover","    * @param event {Event} The event object for the `dragover`.","    */","    this.publish(\"dragover\");","","   /**","    * Signals that an object has been dragged off of the uploader's associated drag-and-drop area. ","    *","    * @event dragleave","    * @param event {Event} The event object for the `dragleave`.","    */","    this.publish(\"dragleave\");","","   /**","    * Signals that an object has been dropped over the uploader's associated drag-and-drop area. ","    *","    * @event drop","    * @param event {Event} The event object for the `drop`.","    */","    this.publish(\"drop\");","                ","    },","","    /**","     * Create the DOM structure for the UploaderHTML5.","     * UploaderHTML5's DOM structure consists of a \"Select Files\" button that can ","     * be replaced by the developer's widget of choice; and a hidden file input field","     * that is used to instantiate the File Select dialog.","     *","     * @method renderUI","     * @protected","     */","    renderUI : function () {","       var boundingBox = this.get(\"boundingBox\"),","           contentBox = this.get('contentBox'),","           selButton = this.get(\"selectFilesButton\");","","       selButton.setStyles({width:\"100%\", height:\"100%\"});","       contentBox.append(selButton);","       this._fileInputField = Y.Node.create(UploaderHTML5.HTML5FILEFIELD_TEMPLATE);","       contentBox.append(this._fileInputField);","    },","","    /**","     * Binds to the UploaderHTML5 UI and subscribes to the necessary events.","     *","     * @method bindUI","     * @protected","     */","    bindUI : function () {","","        this._bindSelectButton();","        this._setMultipleFiles();","        this._setFileFilters();","        this._bindDropArea();","        this._triggerEnabled();","","        this.after(\"multipleFilesChange\", this._setMultipleFiles, this);","        this.after(\"fileFiltersChange\", this._setFileFilters, this);","        this.after(\"enabledChange\", this._triggerEnabled, this);","        this.after(\"selectFilesButtonChange\", this._bindSelectButton, this);","        this.after(\"dragAndDropAreaChange\", this._bindDropArea, this);","        this.after(\"tabIndexChange\", function (ev) {this.get(\"selectFilesButton\").set(\"tabIndex\", this.get(\"tabIndex\"));}, this);","        this._fileInputField.on(\"change\", this._updateFileList, this);","","        this.get(\"selectFilesButton\").set(\"tabIndex\", this.get(\"tabIndex\"));","    },","","","    /**","     * Recreates the file field to null out the previous list of files and","     * thus allow for an identical file list selection.","     * ","     * @method _rebindFileField","     * @protected","     */","    _rebindFileField : function () {","        this._fileInputField.remove(true);","        this._fileInputField = Y.Node.create(UploaderHTML5.HTML5FILEFIELD_TEMPLATE);","        this.get(\"contentBox\").append(this._fileInputField);","        this._fileInputField.on(\"change\", this._updateFileList, this);","        this._setMultipleFiles();","        this._setFileFilters();","    },","","","    /**","     * Binds the specified drop area's drag and drop events to the","     * uploader's custom handler.","     * ","     * @method _bindDropArea","     * @protected","     */","    _bindDropArea : function (event) {","        var ev = event || {prevVal: null};","","        if (ev.prevVal !== null) {","            ev.prevVal.detach('drop', this._ddEventHandler);","            ev.prevVal.detach('dragenter', this._ddEventHandler);","            ev.prevVal.detach('dragover', this._ddEventHandler);","            ev.prevVal.detach('dragleave', this._ddEventHandler);","        }","","        var ddArea = this.get(\"dragAndDropArea\");","","        if (ddArea !== null) {","            ddArea.on('drop', this._ddEventHandler, this);","            ddArea.on('dragenter', this._ddEventHandler, this);","            ddArea.on('dragover', this._ddEventHandler, this);","            ddArea.on('dragleave', this._ddEventHandler, this);","        }","    },","","    /**","     * Binds the instantiation of the file select dialog to the current file select","     * control.","     * ","     * @method _bindSelectButton","     * @protected","     */","    _bindSelectButton : function () {","       this._buttonBinding = this.get(\"selectFilesButton\").on(\"click\", this.openFileSelectDialog, this);","    },","","    /**","     * Handles the drag and drop events from the uploader's specified drop","     * area.","     * ","     * @method _ddEventHandler","     * @protected","     */","    _ddEventHandler : function (event) {","","       event.stopPropagation();","       event.preventDefault();  ","                          ","       switch (event.type) {","                case \"dragenter\":","                  this.fire(\"dragenter\"); ","                break;","                case \"dragover\":","                  this.fire(\"dragover\");","                break;","                case \"dragleave\": ","                  this.fire(\"dragleave\");","                break;","                case \"drop\":","","                   var newfiles = event._event.dataTransfer.files,","                       parsedFiles = [],","                       filterFunc = this.get(\"fileFilterFunction\");","              ","                   if (filterFunc) {","                        Y.each(newfiles, function (value) {","                          var newfile = new Y.FileHTML5(value);","                          if (filterFunc(newfile)) {","                              parsedFiles.push(newfile);","                          }","                        });","                   }","                   else {","                        Y.each(newfiles, function (value) {","                              parsedFiles.push(new Y.FileHTML5(value));","                        });","                   }","","                   if (parsedFiles.length > 0) {","                   var oldfiles = this.get(\"fileList\");","                   this.set(\"fileList\", ","                            this.get(\"appendNewFiles\") ? oldfiles.concat(parsedFiles) : parsedFiles);","                   this.fire(\"fileselect\", {fileList: parsedFiles});","                   }","","                   this.fire(\"drop\");","                break;","       }","    },","","    /**","     * Adds or removes a specified state CSS class to the underlying uploader button. ","     *","     * @method _setButtonClass","     * @protected","     * @param state {String} The name of the state enumerated in `buttonClassNames` attribute","     * from which to derive the needed class name.","     * @param add {Boolean} A Boolean indicating whether to add or remove the class.","     */","    _setButtonClass : function (state, add) {","        if (add) {","            this.get(\"selectFilesButton\").addClass(this.get(\"buttonClassNames\")[state]);","        }","        else {","            this.get(\"selectFilesButton\").removeClass(this.get(\"buttonClassNames\")[state]);","        }","    },","","    /**","     * Syncs the state of the `multipleFiles` attribute between this class","     * and the file input field.","     * ","     * @method _setMultipleFiles","     * @protected","     */","    _setMultipleFiles : function () {","            if (this.get(\"multipleFiles\") === true) {","                this._fileInputField.set(\"multiple\", \"multiple\");","            }","            else {","                this._fileInputField.set(\"multiple\", \"\");","            }","    },","","    /**","     * Syncs the state of the `fileFilters` attribute between this class","     * and the file input field.","     * ","     * @method _setFileFilters","     * @protected","     */","    _setFileFilters : function () {","            if (this.get(\"fileFilters\").length > 0) {","                this._fileInputField.set(\"accept\", this.get(\"fileFilters\").join(\",\"));","            }","            else {","                this._fileInputField.set(\"accept\", \"\");","            }","    },","","","    /**","     * Syncs the state of the `enabled` attribute between this class","     * and the underlying button.","     * ","     * @method _triggerEnabled","     * @private","     */","    _triggerEnabled : function () {","        if (this.get(\"enabled\") && this._buttonBinding === null) {","          this._bindSelectButton();","          this._setButtonClass(\"disabled\", false);","          this.get(\"selectFilesButton\").setAttribute(\"aria-disabled\", \"false\");","        }","        else if (!this.get(\"enabled\") && this._buttonBinding) {","          this._buttonBinding.detach();","          this._buttonBinding = null;","          this._setButtonClass(\"disabled\", true);","          this.get(\"selectFilesButton\").setAttribute(\"aria-disabled\", \"true\");","        }","    },","","  /**","   * Getter for the `fileList` attribute","   * ","   * @method _getFileList","   * @private","   */","    _getFileList : function (arr) {","        return this._fileList.concat();","    },","","  /**","   * Setter for the `fileList` attribute","   * ","   * @method _setFileList","   * @private","   */","    _setFileList : function (val) {","        this._fileList = val.concat();","        return this._fileList.concat();","    },","","    /**","     * Adjusts the content of the `fileList` based on the results of file selection","     * and the `appendNewFiles` attribute. If the `appendNewFiles` attribute is true,","     * then selected files are appended to the existing list; otherwise, the list is","     * cleared and populated with the newly selected files.","     * ","     * @method _updateFileList","     * @param ev {Event} The file selection event received from the uploader.","     * @protected","     */","    _updateFileList : function (ev) {","       var newfiles = ev.target.getDOMNode().files,","           parsedFiles = [],","           filterFunc = this.get(\"fileFilterFunction\");","","       if (filterFunc) {","          Y.each(newfiles, function (value) {","            var newfile = new Y.FileHTML5(value);","            if (filterFunc(newfile)) {","                parsedFiles.push(newfile);","            }","          });","       }","       else {","          Y.each(newfiles, function (value) {","                parsedFiles.push(new Y.FileHTML5(value));","          });","       }","","       if (parsedFiles.length > 0) {","           var oldfiles = this.get(\"fileList\");","","           this.set(\"fileList\", ","                    this.get(\"appendNewFiles\") ? oldfiles.concat(parsedFiles) : parsedFiles );","","           this.fire(\"fileselect\", {fileList: parsedFiles});","       }","","       this._rebindFileField();","    },","","","    /**","     * Handles and retransmits events fired by `Y.File` and `Y.Uploader.Queue`.","     * ","     * @method _uploadEventHandler","     * @param event The event dispatched during the upload process.","     * @protected","     */","    _uploadEventHandler : function (event) {","    ","    switch (event.type) {","                case \"file:uploadstart\":","                   this.fire(\"fileuploadstart\", event);","                break;","                case \"file:uploadprogress\":","                   this.fire(\"uploadprogress\", event);","                break;","                case \"uploaderqueue:totaluploadprogress\":","                   this.fire(\"totaluploadprogress\", event);","                break;","                case \"file:uploadcomplete\":","                   this.fire(\"uploadcomplete\", event);","                break;","                case \"uploaderqueue:alluploadscomplete\":","                   this.queue = null;","                   this.fire(\"alluploadscomplete\", event);","                break;","                case \"file:uploaderror\":","                case \"uploaderqueue:uploaderror\":","                   this.fire(\"uploaderror\", event);","                break;","                case \"file:uploadcancel\":","                case \"uploaderqueue:uploadcancel\":","                   this.fire(\"uploadcancel\", event);","                break;","    }   ","","    },","","    /**","     * Opens the File Selection dialog by simulating a click on the file input field.","     * ","     * @method openFileSelectDialog","     */","    openFileSelectDialog : function () {","      var fileDomNode = this._fileInputField.getDOMNode();","            if (fileDomNode.click) {","                fileDomNode.click();","            }   ","    },","","   /**","    * Starts the upload of a specific file.","    *","    * @method upload","    * @param file {Y.File} Reference to the instance of the file to be uploaded.","    * @param url {String} The URL to upload the file to.","    * @param postVars {Object} (optional) A set of key-value pairs to send as variables along with the file upload HTTP request.","    *                          If not specified, the values from the attribute `postVarsPerFile` are used instead. ","    */","    upload : function (file, url, postvars) {","        ","        var uploadURL = url || this.get(\"uploadURL\"),","            postVars = postvars || this.get(\"postVarsPerFile\"),","            fileId = file.get(\"id\");","","            postVars = postVars.hasOwnProperty(fileId) ? postVars[fileId] : postVars;","","        if (file instanceof Y.FileHTML5) {","           ","            file.on(\"uploadstart\", this._uploadEventHandler, this);","            file.on(\"uploadprogress\", this._uploadEventHandler, this);","            file.on(\"uploadcomplete\", this._uploadEventHandler, this);","            file.on(\"uploaderror\", this._uploadEventHandler, this);","            file.on(\"uploadcancel\", this._uploadEventHandler, this);","","            file.startUpload(uploadURL, postVars, this.get(\"fileFieldName\"));","        }","    },","","   /**","    * Starts the upload of all files on the file list, using an automated queue.","    *","    * @method uploadAll","    * @param url {String} The URL to upload the files to.","    * @param postVars {Object} (optional) A set of key-value pairs to send as variables along with the file upload HTTP request.","    *                          If not specified, the values from the attribute `postVarsPerFile` are used instead. ","    */","    uploadAll : function (url, postvars) {","        this.uploadThese(this.get(\"fileList\"), url, postvars);","    },","","   /**","    * Starts the upload of the files specified in the first argument, using an automated queue.","    *","    * @method uploadThese","    * @param files {Array} The list of files to upload.","    * @param url {String} The URL to upload the files to.","    * @param postVars {Object} (optional) A set of key-value pairs to send as variables along with the file upload HTTP request.","    *                          If not specified, the values from the attribute `postVarsPerFile` are used instead. ","    */","    uploadThese : function (files, url, postvars) {","       if (!this.queue) {","        var uploadURL = url || this.get(\"uploadURL\"),","            postVars = postvars || this.get(\"postVarsPerFile\");","","           this.queue = new UploaderQueue({simUploads: this.get(\"simLimit\"), ","                                           errorAction: this.get(\"errorAction\"),","                                           fileFieldName: this.get(\"fileFieldName\"),","                                           fileList: files,","                                           uploadURL: uploadURL,","                                           perFileParameters: postVars,","                                           retryCount: this.get(\"retryCount\"),","                                           uploadHeaders: this.get(\"uploadHeaders\"),","                                           withCredentials: this.get(\"withCredentials\")","                                               });","           this.queue.on(\"uploadstart\", this._uploadEventHandler, this);","           this.queue.on(\"uploadprogress\", this._uploadEventHandler, this);","           this.queue.on(\"totaluploadprogress\", this._uploadEventHandler, this);","           this.queue.on(\"uploadcomplete\", this._uploadEventHandler, this);","           this.queue.on(\"alluploadscomplete\", this._uploadEventHandler, this);","           this.queue.on(\"uploadcancel\", this._uploadEventHandler, this);","           this.queue.on(\"uploaderror\", this._uploadEventHandler, this);","           this.queue.startUpload();  ","           ","           this.fire(\"uploadstart\"); ","       }","       else if (this.queue._currentState === UploaderQueue.UPLOADING) {","           this.queue.set(\"perFileParameters\", this.get(\"postVarsPerFile\"));","           Y.each(files, function (file) {","             this.queue.addToQueueBottom(file);","           }, this);","       }","    }","},","","{","   /**","    * The template for the hidden file input field container. The file input field will only","    * accept clicks if its visibility is set to hidden (and will not if it's `display` value","    * is set to `none`)","    *","    * @property HTML5FILEFIELD_TEMPLATE","    * @type {String}","    * @static","    */","    HTML5FILEFIELD_TEMPLATE: \"<input type='file' style='visibility:hidden; width:0px; height: 0px;'>\",","  ","  /**","   * The template for the \"Select Files\" button.","   *","   * @property SELECT_FILES_BUTTON","   * @type {String}","   * @static","   * @default \"<button type='button' class='yui3-button' role='button' aria-label='{selectButtonLabel}' tabindex='{tabIndex}'>{selectButtonLabel}</button>\"","   */  ","    SELECT_FILES_BUTTON: \"<button type='button' class='yui3-button' role='button' aria-label='{selectButtonLabel}' tabindex='{tabIndex}'>{selectButtonLabel}</button>\",","","    /**","    * The static property reflecting the type of uploader that `Y.Uploader`","    * aliases. The UploaderHTML5 value is `\"html5\"`.","    * ","    * @property TYPE","    * @type {String}","    * @static","    */","    TYPE: \"html5\",","","    /**","     * The identity of the widget.","     *","     * @property NAME","     * @type String","     * @default 'uploader'","     * @readOnly","     * @protected","     * @static","     */","    NAME: \"uploader\",","","    /**","     * Static property used to define the default attribute configuration of","     * the Widget.","     *","     * @property ATTRS","     * @type {Object}","     * @protected","     * @static","     */","    ATTRS: {","","        /**","         * A Boolean indicating whether newly selected files should be appended ","         * to the existing file list, or whether they should replace it.","         *","         * @attribute appendNewFiles","         * @type {Boolean}","         * @default true","         */","        appendNewFiles : {","            value: true","        },","","        /**","         * The names of CSS classes that correspond to different button states","         * of the \"Select Files\" control. These classes are assigned to the ","         * \"Select Files\" control based on the configuration of the uploader.","         * Currently, the only class name used is that corresponding to the ","         * `disabled` state of the uploader. Other button states should be managed","         * directly via CSS selectors.","         * <ul>","         *   <li> <strong>`disabled`</strong>: the class corresponding to the disabled state","         *      of the \"Select Files\" button.</li>","         * </ul>","         * @attribute buttonClassNames","         * @type {Object}","         * @default {","         *            disabled: \"yui3-button-disabled\"","         *          }","         */","        buttonClassNames: {","            value: {","                \"hover\": \"yui3-button-hover\",","                \"active\": \"yui3-button-active\",","                \"disabled\": \"yui3-button-disabled\",","                \"focus\": \"yui3-button-selected\"","            }","        },","","        /**","         * The node that serves as the drop target for files.","         *","         * @attribute dragAndDropArea","         * @type {Node}","         * @default null","         */","        dragAndDropArea: {","            value: null,","            setter: function (val) {","                return Y.one(val);","            }","        },","","        /**","         * A Boolean indicating whether the uploader is enabled or disabled for user input.","         *","         * @attribute enabled","         * @type {Boolean}","         * @default true","         */","        enabled : {","            value: true","        },","","        /**","         * The action  performed when an upload error occurs for a specific file being uploaded.","         * The possible values are: ","         * <ul>","         *   <li> <strong>`UploaderQueue.CONTINUE`</strong>: the error is ignored and the upload process is continued.</li>","         *   <li> <strong>`UploaderQueue.STOP`</strong>: the upload process is stopped as soon as any other parallel file","         *     uploads are finished.</li>","         *   <li> <strong>`UploaderQueue.RESTART_ASAP`</strong>: the file is added back to the front of the queue.</li>","         *   <li> <strong>`UploaderQueue.RESTART_AFTER`</strong>: the file is added to the back of the queue.</li>","         * </ul>","         * @attribute errorAction","         * @type {String}","         * @default UploaderQueue.CONTINUE","         */","        errorAction: {","            value: \"continue\",","            validator: function (val, name) {","                 return (val === UploaderQueue.CONTINUE || val === UploaderQueue.STOP || val === UploaderQueue.RESTART_ASAP || val === UploaderQueue.RESTART_AFTER);           }","        },","","        /**","         * An array indicating what fileFilters should be applied to the file","         * selection dialog. Each element in the array should be a string","         * indicating the Media (MIME) type for the files that should be supported","         * for selection. The Media type strings should be properly formatted","         * or this parameter will be ignored. Examples of valid strings include: ","         * \"audio/*\", \"video/*\", \"application/pdf\", etc. More information","         * on valid Media type strings is available here: ","         * http://www.iana.org/assignments/media-types/index.html","         * @attribute fileFilters","         * @type {Array}","         * @default []","         */","        fileFilters: {","          value: []","        },","","        /**","         * A filtering function that is applied to every file selected by the user.","         * The function receives the `Y.File` object and must return a Boolean value.","         * If a `false` value is returned, the file in question is not added to the","         * list of files to be uploaded.","         * Use this function to put limits on file sizes or check the file names for","         * correct extension, but make sure that a server-side check is also performed,","         * since any client-side restrictions are only advisory and can be circumvented.","         *","         * @attribute fileFilterFunction","         * @type {Function}","         * @default null","         */","        fileFilterFunction: {","          value: null","        },","","        /**","         * A String specifying what should be the POST field name for the file","         * content in the upload request.","         *","         * @attribute fileFieldName","         * @type {String}","         * @default Filedata","         */","        fileFieldName: {","            value: \"Filedata\"   ","        },","","        /**","         * The array of files to be uploaded. All elements in the array","         * must be instances of `Y.File` and be instantiated with an instance","         * of native JavaScript File() class.","         *","         * @attribute fileList","         * @type {Array}","         * @default []","         */","        fileList: {","            value: [],","            getter: \"_getFileList\",","            setter: \"_setFileList\"","        },","","        /**","         * A Boolean indicating whether multiple file selection is enabled.","         *","         * @attribute multipleFiles","         * @type {Boolean}","         * @default false","         */","        multipleFiles: {","            value: false","        },","","        /**","         * An object, keyed by `fileId`, containing sets of key-value pairs","         * that should be passed as POST variables along with each corresponding","         * file. This attribute is only used if no POST variables are specifed","         * in the upload method call.","         *","         * @attribute postVarsPerFile","         * @type {Object}","         * @default {}","         */","        postVarsPerFile: {","            value: {}","        },","","        /**","         * The label for the \"Select Files\" widget. This is the value that replaces the","         * `{selectButtonLabel}` token in the `SELECT_FILES_BUTTON` template.","         * ","         * @attribute selectButtonLabel","         * @type {String}","         * @default \"Select Files\"","         */","        selectButtonLabel: {","            value: \"Select Files\"","        },","","        /**","         * The widget that serves as the \"Select Files control for the file uploader","         * ","         *","         * @attribute selectFilesButton","         * @type {Node | Widget}","         * @default A standard HTML button with YUI CSS Button skin.","         */","        selectFilesButton : {","            valueFn: function () {","                return Y.Node.create(substitute(Y.UploaderHTML5.SELECT_FILES_BUTTON, {selectButtonLabel: this.get(\"selectButtonLabel\"),","                                                                                      tabIndex: this.get(\"tabIndex\")}));","            }","        },","","        /**","         * The number of files that can be uploaded","         * simultaneously if the automatic queue management","         * is used. This value can be in the range between 2","         * and 5.","         *","         * @attribute simLimit","         * @type {Number}","         * @default 2","         */","        simLimit: {","            value: 2,","            validator: function (val, name) {","                return (val >= 1 && val <= 5);","            }","        },","","        /**","         * The URL to which file upload requested are POSTed. Only used if a different url is not passed to the upload method call.","         *","         * @attribute uploadURL","         * @type {String}","         * @default \"\"","         */","        uploadURL: {","            value: \"\"","        },","","        /**","         * Additional HTTP headers that should be included","         * in the upload request.","         *","         *","         * @attribute uploadHeaders","         * @type {Object}","         * @default {}","         */  ","        uploadHeaders: {","           value: {}","        },","","        /**","         * A Boolean that specifies whether the file should be","         * uploaded with the appropriate user credentials for the","         * domain. ","         *","         * @attribute withCredentials","         * @type {Boolean}","         * @default true","         */  ","        withCredentials: {","           value: true","        },","","        /**","         * The number of times to try re-uploading a file that failed to upload before","         * cancelling its upload.","         *","         * @attribute retryCount","         * @type {Number}","         * @default 3","         */ ","         retryCount: {","           value: 3","         }","    }","});","","Y.UploaderHTML5.Queue = UploaderQueue;","","","","}, '@VERSION@', {\"requires\": [\"widget\", \"node-event-simulate\", \"substitute\", \"file-html5\", \"uploader-queue\"]});","","}());"]};
}
var __cov_zwf1_QVq8mCq9AZuBcyV_g = __coverage__['build/uploader-html5/uploader-html5.js'];
__cov_zwf1_QVq8mCq9AZuBcyV_g.s['1']++;FOO.add('uploader-html5',function(F,NAME){__cov_zwf1_QVq8mCq9AZuBcyV_g.f['1']++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['2']++;var substitute=Y.substitute,UploaderQueue=Y.Uploader.Queue;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['3']++;function UploaderHTML5(config){__cov_zwf1_QVq8mCq9AZuBcyV_g.f['2']++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['4']++;UploaderHTML5.superclass.constructor.apply(this,arguments);}__cov_zwf1_QVq8mCq9AZuBcyV_g.s['5']++;Y.UploaderHTML5=Y.extend(UploaderHTML5,Y.Widget,{_fileInputField:null,_buttonBinding:null,queue:null,initializer:function(){__cov_zwf1_QVq8mCq9AZuBcyV_g.f['3']++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['6']++;this._fileInputField=null;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['7']++;this.queue=null;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['8']++;this._buttonBinding=null;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['9']++;this._fileList=[];__cov_zwf1_QVq8mCq9AZuBcyV_g.s['10']++;this.publish('fileselect');__cov_zwf1_QVq8mCq9AZuBcyV_g.s['11']++;this.publish('uploadstart');__cov_zwf1_QVq8mCq9AZuBcyV_g.s['12']++;this.publish('fileuploadstart');__cov_zwf1_QVq8mCq9AZuBcyV_g.s['13']++;this.publish('uploadprogress');__cov_zwf1_QVq8mCq9AZuBcyV_g.s['14']++;this.publish('totaluploadprogress');__cov_zwf1_QVq8mCq9AZuBcyV_g.s['15']++;this.publish('uploadcomplete');__cov_zwf1_QVq8mCq9AZuBcyV_g.s['16']++;this.publish('alluploadscomplete');__cov_zwf1_QVq8mCq9AZuBcyV_g.s['17']++;this.publish('uploaderror');__cov_zwf1_QVq8mCq9AZuBcyV_g.s['18']++;this.publish('dragenter');__cov_zwf1_QVq8mCq9AZuBcyV_g.s['19']++;this.publish('dragover');__cov_zwf1_QVq8mCq9AZuBcyV_g.s['20']++;this.publish('dragleave');__cov_zwf1_QVq8mCq9AZuBcyV_g.s['21']++;this.publish('drop');},renderUI:function(){__cov_zwf1_QVq8mCq9AZuBcyV_g.f['4']++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['22']++;var boundingBox=this.get('boundingBox'),contentBox=this.get('contentBox'),selButton=this.get('selectFilesButton');__cov_zwf1_QVq8mCq9AZuBcyV_g.s['23']++;selButton.setStyles({width:'100%',height:'100%'});__cov_zwf1_QVq8mCq9AZuBcyV_g.s['24']++;contentBox.append(selButton);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['25']++;this._fileInputField=Y.Node.create(UploaderHTML5.HTML5FILEFIELD_TEMPLATE);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['26']++;contentBox.append(this._fileInputField);},bindUI:function(){__cov_zwf1_QVq8mCq9AZuBcyV_g.f['5']++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['27']++;this._bindSelectButton();__cov_zwf1_QVq8mCq9AZuBcyV_g.s['28']++;this._setMultipleFiles();__cov_zwf1_QVq8mCq9AZuBcyV_g.s['29']++;this._setFileFilters();__cov_zwf1_QVq8mCq9AZuBcyV_g.s['30']++;this._bindDropArea();__cov_zwf1_QVq8mCq9AZuBcyV_g.s['31']++;this._triggerEnabled();__cov_zwf1_QVq8mCq9AZuBcyV_g.s['32']++;this.after('multipleFilesChange',this._setMultipleFiles,this);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['33']++;this.after('fileFiltersChange',this._setFileFilters,this);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['34']++;this.after('enabledChange',this._triggerEnabled,this);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['35']++;this.after('selectFilesButtonChange',this._bindSelectButton,this);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['36']++;this.after('dragAndDropAreaChange',this._bindDropArea,this);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['37']++;this.after('tabIndexChange',function(ev){__cov_zwf1_QVq8mCq9AZuBcyV_g.f['6']++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['38']++;this.get('selectFilesButton').set('tabIndex',this.get('tabIndex'));},this);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['39']++;this._fileInputField.on('change',this._updateFileList,this);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['40']++;this.get('selectFilesButton').set('tabIndex',this.get('tabIndex'));},_rebindFileField:function(){__cov_zwf1_QVq8mCq9AZuBcyV_g.f['7']++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['41']++;this._fileInputField.remove(true);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['42']++;this._fileInputField=Y.Node.create(UploaderHTML5.HTML5FILEFIELD_TEMPLATE);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['43']++;this.get('contentBox').append(this._fileInputField);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['44']++;this._fileInputField.on('change',this._updateFileList,this);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['45']++;this._setMultipleFiles();__cov_zwf1_QVq8mCq9AZuBcyV_g.s['46']++;this._setFileFilters();},_bindDropArea:function(event){__cov_zwf1_QVq8mCq9AZuBcyV_g.f['8']++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['47']++;var ev=(__cov_zwf1_QVq8mCq9AZuBcyV_g.b['1'][0]++,event)||(__cov_zwf1_QVq8mCq9AZuBcyV_g.b['1'][1]++,{prevVal:null});__cov_zwf1_QVq8mCq9AZuBcyV_g.s['48']++;if(ev.prevVal!==null){__cov_zwf1_QVq8mCq9AZuBcyV_g.b['2'][0]++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['49']++;ev.prevVal.detach('drop',this._ddEventHandler);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['50']++;ev.prevVal.detach('dragenter',this._ddEventHandler);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['51']++;ev.prevVal.detach('dragover',this._ddEventHandler);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['52']++;ev.prevVal.detach('dragleave',this._ddEventHandler);}else{__cov_zwf1_QVq8mCq9AZuBcyV_g.b['2'][1]++;}__cov_zwf1_QVq8mCq9AZuBcyV_g.s['53']++;var ddArea=this.get('dragAndDropArea');__cov_zwf1_QVq8mCq9AZuBcyV_g.s['54']++;if(ddArea!==null){__cov_zwf1_QVq8mCq9AZuBcyV_g.b['3'][0]++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['55']++;ddArea.on('drop',this._ddEventHandler,this);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['56']++;ddArea.on('dragenter',this._ddEventHandler,this);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['57']++;ddArea.on('dragover',this._ddEventHandler,this);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['58']++;ddArea.on('dragleave',this._ddEventHandler,this);}else{__cov_zwf1_QVq8mCq9AZuBcyV_g.b['3'][1]++;}},_bindSelectButton:function(){__cov_zwf1_QVq8mCq9AZuBcyV_g.f['9']++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['59']++;this._buttonBinding=this.get('selectFilesButton').on('click',this.openFileSelectDialog,this);},_ddEventHandler:function(event){__cov_zwf1_QVq8mCq9AZuBcyV_g.f['10']++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['60']++;event.stopPropagation();__cov_zwf1_QVq8mCq9AZuBcyV_g.s['61']++;event.preventDefault();__cov_zwf1_QVq8mCq9AZuBcyV_g.s['62']++;switch(event.type){case'dragenter':__cov_zwf1_QVq8mCq9AZuBcyV_g.b['4'][0]++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['63']++;this.fire('dragenter');__cov_zwf1_QVq8mCq9AZuBcyV_g.s['64']++;break;case'dragover':__cov_zwf1_QVq8mCq9AZuBcyV_g.b['4'][1]++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['65']++;this.fire('dragover');__cov_zwf1_QVq8mCq9AZuBcyV_g.s['66']++;break;case'dragleave':__cov_zwf1_QVq8mCq9AZuBcyV_g.b['4'][2]++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['67']++;this.fire('dragleave');__cov_zwf1_QVq8mCq9AZuBcyV_g.s['68']++;break;case'drop':__cov_zwf1_QVq8mCq9AZuBcyV_g.b['4'][3]++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['69']++;var newfiles=event._event.dataTransfer.files,parsedFiles=[],filterFunc=this.get('fileFilterFunction');__cov_zwf1_QVq8mCq9AZuBcyV_g.s['70']++;if(filterFunc){__cov_zwf1_QVq8mCq9AZuBcyV_g.b['5'][0]++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['71']++;Y.each(newfiles,function(value){__cov_zwf1_QVq8mCq9AZuBcyV_g.f['11']++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['72']++;var newfile=new Y.FileHTML5(value);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['73']++;if(filterFunc(newfile)){__cov_zwf1_QVq8mCq9AZuBcyV_g.b['6'][0]++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['74']++;parsedFiles.push(newfile);}else{__cov_zwf1_QVq8mCq9AZuBcyV_g.b['6'][1]++;}});}else{__cov_zwf1_QVq8mCq9AZuBcyV_g.b['5'][1]++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['75']++;Y.each(newfiles,function(value){__cov_zwf1_QVq8mCq9AZuBcyV_g.f['12']++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['76']++;parsedFiles.push(new Y.FileHTML5(value));});}__cov_zwf1_QVq8mCq9AZuBcyV_g.s['77']++;if(parsedFiles.length>0){__cov_zwf1_QVq8mCq9AZuBcyV_g.b['7'][0]++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['78']++;var oldfiles=this.get('fileList');__cov_zwf1_QVq8mCq9AZuBcyV_g.s['79']++;this.set('fileList',this.get('appendNewFiles')?(__cov_zwf1_QVq8mCq9AZuBcyV_g.b['8'][0]++,oldfiles.concat(parsedFiles)):(__cov_zwf1_QVq8mCq9AZuBcyV_g.b['8'][1]++,parsedFiles));__cov_zwf1_QVq8mCq9AZuBcyV_g.s['80']++;this.fire('fileselect',{fileList:parsedFiles});}else{__cov_zwf1_QVq8mCq9AZuBcyV_g.b['7'][1]++;}__cov_zwf1_QVq8mCq9AZuBcyV_g.s['81']++;this.fire('drop');__cov_zwf1_QVq8mCq9AZuBcyV_g.s['82']++;break;}},_setButtonClass:function(state,add){__cov_zwf1_QVq8mCq9AZuBcyV_g.f['13']++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['83']++;if(add){__cov_zwf1_QVq8mCq9AZuBcyV_g.b['9'][0]++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['84']++;this.get('selectFilesButton').addClass(this.get('buttonClassNames')[state]);}else{__cov_zwf1_QVq8mCq9AZuBcyV_g.b['9'][1]++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['85']++;this.get('selectFilesButton').removeClass(this.get('buttonClassNames')[state]);}},_setMultipleFiles:function(){__cov_zwf1_QVq8mCq9AZuBcyV_g.f['14']++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['86']++;if(this.get('multipleFiles')===true){__cov_zwf1_QVq8mCq9AZuBcyV_g.b['10'][0]++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['87']++;this._fileInputField.set('multiple','multiple');}else{__cov_zwf1_QVq8mCq9AZuBcyV_g.b['10'][1]++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['88']++;this._fileInputField.set('multiple','');}},_setFileFilters:function(){__cov_zwf1_QVq8mCq9AZuBcyV_g.f['15']++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['89']++;if(this.get('fileFilters').length>0){__cov_zwf1_QVq8mCq9AZuBcyV_g.b['11'][0]++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['90']++;this._fileInputField.set('accept',this.get('fileFilters').join(','));}else{__cov_zwf1_QVq8mCq9AZuBcyV_g.b['11'][1]++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['91']++;this._fileInputField.set('accept','');}},_triggerEnabled:function(){__cov_zwf1_QVq8mCq9AZuBcyV_g.f['16']++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['92']++;if((__cov_zwf1_QVq8mCq9AZuBcyV_g.b['13'][0]++,this.get('enabled'))&&(__cov_zwf1_QVq8mCq9AZuBcyV_g.b['13'][1]++,this._buttonBinding===null)){__cov_zwf1_QVq8mCq9AZuBcyV_g.b['12'][0]++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['93']++;this._bindSelectButton();__cov_zwf1_QVq8mCq9AZuBcyV_g.s['94']++;this._setButtonClass('disabled',false);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['95']++;this.get('selectFilesButton').setAttribute('aria-disabled','false');}else{__cov_zwf1_QVq8mCq9AZuBcyV_g.b['12'][1]++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['96']++;if((__cov_zwf1_QVq8mCq9AZuBcyV_g.b['15'][0]++,!this.get('enabled'))&&(__cov_zwf1_QVq8mCq9AZuBcyV_g.b['15'][1]++,this._buttonBinding)){__cov_zwf1_QVq8mCq9AZuBcyV_g.b['14'][0]++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['97']++;this._buttonBinding.detach();__cov_zwf1_QVq8mCq9AZuBcyV_g.s['98']++;this._buttonBinding=null;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['99']++;this._setButtonClass('disabled',true);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['100']++;this.get('selectFilesButton').setAttribute('aria-disabled','true');}else{__cov_zwf1_QVq8mCq9AZuBcyV_g.b['14'][1]++;}}},_getFileList:function(arr){__cov_zwf1_QVq8mCq9AZuBcyV_g.f['17']++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['101']++;return this._fileList.concat();},_setFileList:function(val){__cov_zwf1_QVq8mCq9AZuBcyV_g.f['18']++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['102']++;this._fileList=val.concat();__cov_zwf1_QVq8mCq9AZuBcyV_g.s['103']++;return this._fileList.concat();},_updateFileList:function(ev){__cov_zwf1_QVq8mCq9AZuBcyV_g.f['19']++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['104']++;var newfiles=ev.target.getDOMNode().files,parsedFiles=[],filterFunc=this.get('fileFilterFunction');__cov_zwf1_QVq8mCq9AZuBcyV_g.s['105']++;if(filterFunc){__cov_zwf1_QVq8mCq9AZuBcyV_g.b['16'][0]++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['106']++;Y.each(newfiles,function(value){__cov_zwf1_QVq8mCq9AZuBcyV_g.f['20']++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['107']++;var newfile=new Y.FileHTML5(value);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['108']++;if(filterFunc(newfile)){__cov_zwf1_QVq8mCq9AZuBcyV_g.b['17'][0]++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['109']++;parsedFiles.push(newfile);}else{__cov_zwf1_QVq8mCq9AZuBcyV_g.b['17'][1]++;}});}else{__cov_zwf1_QVq8mCq9AZuBcyV_g.b['16'][1]++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['110']++;Y.each(newfiles,function(value){__cov_zwf1_QVq8mCq9AZuBcyV_g.f['21']++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['111']++;parsedFiles.push(new Y.FileHTML5(value));});}__cov_zwf1_QVq8mCq9AZuBcyV_g.s['112']++;if(parsedFiles.length>0){__cov_zwf1_QVq8mCq9AZuBcyV_g.b['18'][0]++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['113']++;var oldfiles=this.get('fileList');__cov_zwf1_QVq8mCq9AZuBcyV_g.s['114']++;this.set('fileList',this.get('appendNewFiles')?(__cov_zwf1_QVq8mCq9AZuBcyV_g.b['19'][0]++,oldfiles.concat(parsedFiles)):(__cov_zwf1_QVq8mCq9AZuBcyV_g.b['19'][1]++,parsedFiles));__cov_zwf1_QVq8mCq9AZuBcyV_g.s['115']++;this.fire('fileselect',{fileList:parsedFiles});}else{__cov_zwf1_QVq8mCq9AZuBcyV_g.b['18'][1]++;}__cov_zwf1_QVq8mCq9AZuBcyV_g.s['116']++;this._rebindFileField();},_uploadEventHandler:function(event){__cov_zwf1_QVq8mCq9AZuBcyV_g.f['22']++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['117']++;switch(event.type){case'file:uploadstart':__cov_zwf1_QVq8mCq9AZuBcyV_g.b['20'][0]++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['118']++;this.fire('fileuploadstart',event);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['119']++;break;case'file:uploadprogress':__cov_zwf1_QVq8mCq9AZuBcyV_g.b['20'][1]++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['120']++;this.fire('uploadprogress',event);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['121']++;break;case'uploaderqueue:totaluploadprogress':__cov_zwf1_QVq8mCq9AZuBcyV_g.b['20'][2]++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['122']++;this.fire('totaluploadprogress',event);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['123']++;break;case'file:uploadcomplete':__cov_zwf1_QVq8mCq9AZuBcyV_g.b['20'][3]++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['124']++;this.fire('uploadcomplete',event);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['125']++;break;case'uploaderqueue:alluploadscomplete':__cov_zwf1_QVq8mCq9AZuBcyV_g.b['20'][4]++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['126']++;this.queue=null;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['127']++;this.fire('alluploadscomplete',event);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['128']++;break;case'file:uploaderror':__cov_zwf1_QVq8mCq9AZuBcyV_g.b['20'][5]++;case'uploaderqueue:uploaderror':__cov_zwf1_QVq8mCq9AZuBcyV_g.b['20'][6]++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['129']++;this.fire('uploaderror',event);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['130']++;break;case'file:uploadcancel':__cov_zwf1_QVq8mCq9AZuBcyV_g.b['20'][7]++;case'uploaderqueue:uploadcancel':__cov_zwf1_QVq8mCq9AZuBcyV_g.b['20'][8]++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['131']++;this.fire('uploadcancel',event);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['132']++;break;}},openFileSelectDialog:function(){__cov_zwf1_QVq8mCq9AZuBcyV_g.f['23']++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['133']++;var fileDomNode=this._fileInputField.getDOMNode();__cov_zwf1_QVq8mCq9AZuBcyV_g.s['134']++;if(fileDomNode.click){__cov_zwf1_QVq8mCq9AZuBcyV_g.b['21'][0]++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['135']++;fileDomNode.click();}else{__cov_zwf1_QVq8mCq9AZuBcyV_g.b['21'][1]++;}},upload:function(file,url,postvars){__cov_zwf1_QVq8mCq9AZuBcyV_g.f['24']++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['136']++;var uploadURL=(__cov_zwf1_QVq8mCq9AZuBcyV_g.b['22'][0]++,url)||(__cov_zwf1_QVq8mCq9AZuBcyV_g.b['22'][1]++,this.get('uploadURL')),postVars=(__cov_zwf1_QVq8mCq9AZuBcyV_g.b['23'][0]++,postvars)||(__cov_zwf1_QVq8mCq9AZuBcyV_g.b['23'][1]++,this.get('postVarsPerFile')),fileId=file.get('id');__cov_zwf1_QVq8mCq9AZuBcyV_g.s['137']++;postVars=postVars.hasOwnProperty(fileId)?(__cov_zwf1_QVq8mCq9AZuBcyV_g.b['24'][0]++,postVars[fileId]):(__cov_zwf1_QVq8mCq9AZuBcyV_g.b['24'][1]++,postVars);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['138']++;if(file instanceof Y.FileHTML5){__cov_zwf1_QVq8mCq9AZuBcyV_g.b['25'][0]++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['139']++;file.on('uploadstart',this._uploadEventHandler,this);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['140']++;file.on('uploadprogress',this._uploadEventHandler,this);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['141']++;file.on('uploadcomplete',this._uploadEventHandler,this);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['142']++;file.on('uploaderror',this._uploadEventHandler,this);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['143']++;file.on('uploadcancel',this._uploadEventHandler,this);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['144']++;file.startUpload(uploadURL,postVars,this.get('fileFieldName'));}else{__cov_zwf1_QVq8mCq9AZuBcyV_g.b['25'][1]++;}},uploadAll:function(url,postvars){__cov_zwf1_QVq8mCq9AZuBcyV_g.f['25']++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['145']++;this.uploadThese(this.get('fileList'),url,postvars);},uploadThese:function(files,url,postvars){__cov_zwf1_QVq8mCq9AZuBcyV_g.f['26']++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['146']++;if(!this.queue){__cov_zwf1_QVq8mCq9AZuBcyV_g.b['26'][0]++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['147']++;var uploadURL=(__cov_zwf1_QVq8mCq9AZuBcyV_g.b['27'][0]++,url)||(__cov_zwf1_QVq8mCq9AZuBcyV_g.b['27'][1]++,this.get('uploadURL')),postVars=(__cov_zwf1_QVq8mCq9AZuBcyV_g.b['28'][0]++,postvars)||(__cov_zwf1_QVq8mCq9AZuBcyV_g.b['28'][1]++,this.get('postVarsPerFile'));__cov_zwf1_QVq8mCq9AZuBcyV_g.s['148']++;this.queue=new UploaderQueue({simUploads:this.get('simLimit'),errorAction:this.get('errorAction'),fileFieldName:this.get('fileFieldName'),fileList:files,uploadURL:uploadURL,perFileParameters:postVars,retryCount:this.get('retryCount'),uploadHeaders:this.get('uploadHeaders'),withCredentials:this.get('withCredentials')});__cov_zwf1_QVq8mCq9AZuBcyV_g.s['149']++;this.queue.on('uploadstart',this._uploadEventHandler,this);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['150']++;this.queue.on('uploadprogress',this._uploadEventHandler,this);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['151']++;this.queue.on('totaluploadprogress',this._uploadEventHandler,this);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['152']++;this.queue.on('uploadcomplete',this._uploadEventHandler,this);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['153']++;this.queue.on('alluploadscomplete',this._uploadEventHandler,this);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['154']++;this.queue.on('uploadcancel',this._uploadEventHandler,this);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['155']++;this.queue.on('uploaderror',this._uploadEventHandler,this);__cov_zwf1_QVq8mCq9AZuBcyV_g.s['156']++;this.queue.startUpload();__cov_zwf1_QVq8mCq9AZuBcyV_g.s['157']++;this.fire('uploadstart');}else{__cov_zwf1_QVq8mCq9AZuBcyV_g.b['26'][1]++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['158']++;if(this.queue._currentState===UploaderQueue.UPLOADING){__cov_zwf1_QVq8mCq9AZuBcyV_g.b['29'][0]++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['159']++;this.queue.set('perFileParameters',this.get('postVarsPerFile'));__cov_zwf1_QVq8mCq9AZuBcyV_g.s['160']++;Y.each(files,function(file){__cov_zwf1_QVq8mCq9AZuBcyV_g.f['27']++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['161']++;this.queue.addToQueueBottom(file);},this);}else{__cov_zwf1_QVq8mCq9AZuBcyV_g.b['29'][1]++;}}}},{HTML5FILEFIELD_TEMPLATE:'<input type=\'file\' style=\'visibility:hidden; width:0px; height: 0px;\'>',SELECT_FILES_BUTTON:'<button type=\'button\' class=\'yui3-button\' role=\'button\' aria-label=\'{selectButtonLabel}\' tabindex=\'{tabIndex}\'>{selectButtonLabel}</button>',TYPE:'html5',NAME:'uploader',ATTRS:{appendNewFiles:{value:true},buttonClassNames:{value:{'hover':'yui3-button-hover','active':'yui3-button-active','disabled':'yui3-button-disabled','focus':'yui3-button-selected'}},dragAndDropArea:{value:null,setter:function(val){__cov_zwf1_QVq8mCq9AZuBcyV_g.f['28']++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['162']++;return Y.one(val);}},enabled:{value:true},errorAction:{value:'continue',validator:function(val,name){__cov_zwf1_QVq8mCq9AZuBcyV_g.f['29']++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['163']++;return(__cov_zwf1_QVq8mCq9AZuBcyV_g.b['30'][0]++,val===UploaderQueue.CONTINUE)||(__cov_zwf1_QVq8mCq9AZuBcyV_g.b['30'][1]++,val===UploaderQueue.STOP)||(__cov_zwf1_QVq8mCq9AZuBcyV_g.b['30'][2]++,val===UploaderQueue.RESTART_ASAP)||(__cov_zwf1_QVq8mCq9AZuBcyV_g.b['30'][3]++,val===UploaderQueue.RESTART_AFTER);}},fileFilters:{value:[]},fileFilterFunction:{value:null},fileFieldName:{value:'Filedata'},fileList:{value:[],getter:'_getFileList',setter:'_setFileList'},multipleFiles:{value:false},postVarsPerFile:{value:{}},selectButtonLabel:{value:'Select Files'},selectFilesButton:{valueFn:function(){__cov_zwf1_QVq8mCq9AZuBcyV_g.f['30']++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['164']++;return Y.Node.create(substitute(Y.UploaderHTML5.SELECT_FILES_BUTTON,{selectButtonLabel:this.get('selectButtonLabel'),tabIndex:this.get('tabIndex')}));}},simLimit:{value:2,validator:function(val,name){__cov_zwf1_QVq8mCq9AZuBcyV_g.f['31']++;__cov_zwf1_QVq8mCq9AZuBcyV_g.s['165']++;return(__cov_zwf1_QVq8mCq9AZuBcyV_g.b['31'][0]++,val>=1)&&(__cov_zwf1_QVq8mCq9AZuBcyV_g.b['31'][1]++,val<=5);}},uploadURL:{value:''},uploadHeaders:{value:{}},withCredentials:{value:true},retryCount:{value:3}}});__cov_zwf1_QVq8mCq9AZuBcyV_g.s['166']++;Y.UploaderHTML5.Queue=UploaderQueue;},'@VERSION@',{'requires':['widget','node-event-simulate','substitute','file-html5','uploader-queue']});
