From 798ea497a5e322ff414b4605ca9f1bf3ccf730a3 Mon Sep 17 00:00:00 2001 From: John Lindal Date: Wed, 12 Feb 2014 14:38:05 -0800 Subject: [PATCH 1/7] switch to storing instances on HTMLElement instead of global map --- src/event/tests/manual/mouseenter.html | 6 +++- src/node/js/node-core.js | 40 +++++++++++++++++++++----- src/node/js/nodelist.js | 39 +++++++++++++++++++++---- src/node/tests/unit/node.html | 4 +-- 4 files changed, 74 insertions(+), 15 deletions(-) diff --git a/src/event/tests/manual/mouseenter.html b/src/event/tests/manual/mouseenter.html index a55eab6648b..7f9931c2f36 100644 --- a/src/event/tests/manual/mouseenter.html +++ b/src/event/tests/manual/mouseenter.html @@ -186,7 +186,11 @@ document.getElementById('memsize').onclick = function () { //memsnap(); //console.log(count); - console.log(Y.Object.keys(Y.Node._instances).length); + if (Y.Node._instances) { + console.log(Y.Object.keys(Y.Node._instances).length); + } else { + console.log('Nothing to track, since Y.Node._instances is not used in this browser'); + } }; }); diff --git a/src/node/js/node-core.js b/src/node/js/node-core.js index dc4c0105fcc..b2dfe8a0785 100644 --- a/src/node/js/node-core.js +++ b/src/node/js/node-core.js @@ -28,6 +28,8 @@ var DOT = '.', UID = '_yuid', EMPTY_OBJ = {}, + use_instance_map = Y.UA.ie > 0, // define flag, in case other browsers need it, too + _slice = Array.prototype.slice, Y_DOM = Y.DOM, @@ -46,7 +48,7 @@ var DOT = '.', var uid = (node.nodeType !== 9) ? node.uniqueID : node[UID]; - if (uid && Y_Node._instances[uid] && Y_Node._instances[uid]._node !== node) { + if (use_instance_map && uid && Y_Node._instances[uid] && Y_Node._instances[uid]._node !== node) { node[UID] = null; // unset existing uid to prevent collision (via clone or hack) } @@ -123,14 +125,17 @@ Y_Node.SHOW_TRANSITION = 'fadeIn'; Y_Node.HIDE_TRANSITION = 'fadeOut'; /** - * A list of Node instances that have been created + * A list of Node instances that have been created. Only defined in browsers + * that already have broken GC, since this global map also breaks GC. * @private * @type Object * @property _instances * @static * */ -Y_Node._instances = {}; +if (use_instance_map) { + Y_Node._instances = {}; +} /** * Retrieves the DOM node bound to a Node instance @@ -288,12 +293,23 @@ Y_Node.one = function(node) { if (node.nodeType || Y.DOM.isWindow(node)) { // avoid bad input (numbers, boolean, etc) uid = (node.uniqueID && node.nodeType !== 9) ? node.uniqueID : node._yuid; - instance = Y_Node._instances[uid]; // reuse exising instances + if (use_instance_map) { + instance = Y_Node._instances[uid]; // reuse exising instances + } else { + instance = node._yui_instances && node._yui_instances[Y._yuid]; // reuse exising instances + } cachedNode = instance ? instance._node : null; if (!instance || (cachedNode && node !== cachedNode)) { // new Node when nodes don't match instance = new Y_Node(node); if (node.nodeType != 11) { // dont cache document fragment - Y_Node._instances[instance[UID]] = instance; // cache node + if (use_instance_map) { + Y_Node._instances[instance[UID]] = instance; // cache node + } else { + if (!node._yui_instances) { + node._yui_instances = {}; + } + node._yui_instances[Y._yuid] = instance; // cache node + } } } } @@ -745,7 +761,11 @@ Y.mix(Y_Node.prototype, { if (recursive) { Y.NodeList.each(this.all('*'), function(node) { - instance = Y_Node._instances[node[UID]]; + if (use_instance_map) { + instance = Y_Node._instances[node[UID]]; + } else { + instance = node._yui_instances && node._yui_instances[Y._yuid]; + } if (instance) { instance.destroy(); } else { // purge in case added by other means @@ -754,10 +774,16 @@ Y.mix(Y_Node.prototype, { }); } + if (this._node._yui_instances) { + delete this._node._yui_instances[Y._yuid]; + } + this._node = null; this._stateProxy = null; - delete Y_Node._instances[this._yuid]; + if (use_instance_map) { + delete Y_Node._instances[this._yuid]; + } }, /** diff --git a/src/node/js/nodelist.js b/src/node/js/nodelist.js index 0d605938cca..a8fec8189db 100644 --- a/src/node/js/nodelist.js +++ b/src/node/js/nodelist.js @@ -75,11 +75,18 @@ NodeList.addMethod = function(name, fn, context) { args = arguments; Y.Array.each(this._nodes, function(node) { - var UID = (node.uniqueID && node.nodeType !== 9 ) ? 'uniqueID' : '_yuid', - instance = Y.Node._instances[node[UID]], + var UID, + instance, ctx, result; + if (Y.Node._instances) { + UID = (node.uniqueID && node.nodeType !== 9 ) ? 'uniqueID' : '_yuid'; + instance = Y.Node._instances[node[UID]]; + } else { + instance = node._yui_instances && node._yui_instances[Y._yuid]; + } + if (!instance) { instance = NodeList._getTempNode(node); } @@ -168,7 +175,16 @@ Y.mix(NodeList.prototype, { var nodelist = this; Y.Array.each(this._nodes, function(node, index) { - var instance = Y.Node._instances[node[UID]]; + var UID, + instance; + + if (Y.Node._instances) { + UID = (node.uniqueID && node.nodeType !== 9 ) ? 'uniqueID' : '_yuid'; + instance = Y.Node._instances[node[UID]]; + } else { + instance = node._yui_instances && node._yui_instances[Y._yuid]; + } + if (!instance) { instance = NodeList._getTempNode(node); } @@ -406,11 +422,19 @@ NodeList.prototype.get = function(attr) { nodes = this._nodes, isNodeList = false, getTemp = NodeList._getTempNode, + UID, instance, val; if (nodes[0]) { - instance = Y.Node._instances[nodes[0]._yuid] || getTemp(nodes[0]); + if (Y.Node._instances) { + UID = (nodes[0].uniqueID && nodes[0].nodeType !== 9 ) ? 'uniqueID' : '_yuid'; + instance = Y.Node._instances[nodes[0][UID]]; + } else { + instance = nodes[0]._yui_instances && nodes[0]._yui_instances[Y._yuid]; + } + instance = instance || getTemp(nodes[0]); + val = instance._get(attr); if (val && val.nodeType) { isNodeList = true; @@ -418,7 +442,12 @@ NodeList.prototype.get = function(attr) { } Y.Array.each(nodes, function(node) { - instance = Y.Node._instances[node._yuid]; + if (Y.Node._instances) { + UID = (node.uniqueID && node.nodeType !== 9 ) ? 'uniqueID' : '_yuid'; + instance = Y.Node._instances[node[UID]]; + } else { + instance = node._yui_instances && node._yui_instances[Y._yuid]; + } if (!instance) { instance = getTemp(node); diff --git a/src/node/tests/unit/node.html b/src/node/tests/unit/node.html index 5a0738297df..82cee533bd6 100644 --- a/src/node/tests/unit/node.html +++ b/src/node/tests/unit/node.html @@ -226,7 +226,7 @@

test

'should cache node': function() { var node = Y.Node.create('
'); node.appendTo('body'); - Assert.areEqual(node, Y.Node._instances[node._yuid]); + Assert.areEqual(node, Y.Node.getDOMNode(node)._yui_instances[Y._yuid]); Assert.areEqual(Y.one('#test-caching'), node); node.remove(true); }, @@ -1761,7 +1761,7 @@

test

'should not cache document fragment': function() { var node = Y.Node.create('
foo
bar
'); - Assert.isUndefined(Y.Node._instances[node._yuid]); + Assert.isUndefined(Y.Node.getDOMNode(node)._yui_instances); }, 'should return false if node is removed': function () { From a741ae5a89886a7e61cb00bd4a972c8276f109f3 Mon Sep 17 00:00:00 2001 From: John Lindal Date: Wed, 12 Feb 2014 14:43:49 -0800 Subject: [PATCH 2/7] don't use _instances map in IE10 and up --- build/node-core/node-core-coverage.js | 4 +- build/node-core/node-core-debug.js | 79 +++++++++++++++++++++++---- build/node-core/node-core-min.js | 4 +- build/node-core/node-core.js | 79 +++++++++++++++++++++++---- src/node/js/node-core.js | 2 +- 5 files changed, 139 insertions(+), 29 deletions(-) diff --git a/build/node-core/node-core-coverage.js b/build/node-core/node-core-coverage.js index 9587d3b2125..8663833d30c 100644 --- a/build/node-core/node-core-coverage.js +++ b/build/node-core/node-core-coverage.js @@ -1,6 +1,6 @@ if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/node-core/node-core.js']) { - __coverage__['build/node-core/node-core.js'] = {"path":"build/node-core/node-core.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,"235":0,"236":0,"237":0,"238":0,"239":0,"240":0,"241":0,"242":0,"243":0,"244":0,"245":0,"246":0,"247":0,"248":0,"249":0,"250":0,"251":0,"252":0,"253":0,"254":0,"255":0,"256":0,"257":0,"258":0,"259":0,"260":0,"261":0,"262":0,"263":0,"264":0,"265":0,"266":0,"267":0,"268":0,"269":0,"270":0,"271":0,"272":0,"273":0,"274":0,"275":0,"276":0,"277":0,"278":0,"279":0,"280":0,"281":0,"282":0,"283":0,"284":0,"285":0,"286":0,"287":0,"288":0,"289":0,"290":0,"291":0,"292":0,"293":0,"294":0,"295":0,"296":0,"297":0,"298":0,"299":0,"300":0,"301":0,"302":0,"303":0,"304":0,"305":0,"306":0,"307":0,"308":0,"309":0,"310":0,"311":0,"312":0,"313":0,"314":0,"315":0,"316":0,"317":0,"318":0,"319":0,"320":0,"321":0,"322":0,"323":0,"324":0,"325":0,"326":0,"327":0,"328":0,"329":0,"330":0,"331":0,"332":0,"333":0,"334":0,"335":0,"336":0,"337":0,"338":0,"339":0,"340":0,"341":0,"342":0,"343":0,"344":0,"345":0,"346":0,"347":0,"348":0,"349":0,"350":0,"351":0,"352":0,"353":0,"354":0,"355":0,"356":0,"357":0,"358":0,"359":0,"360":0,"361":0,"362":0,"363":0,"364":0,"365":0,"366":0,"367":0,"368":0,"369":0,"370":0,"371":0,"372":0,"373":0,"374":0,"375":0,"376":0,"377":0,"378":0,"379":0,"380":0,"381":0,"382":0,"383":0,"384":0,"385":0,"386":0,"387":0,"388":0,"389":0,"390":0,"391":0,"392":0,"393":0,"394":0,"395":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0,0,0],"26":[0,0],"27":[0,0],"28":[0,0],"29":[0,0,0],"30":[0,0],"31":[0,0],"32":[0,0],"33":[0,0],"34":[0,0],"35":[0,0],"36":[0,0],"37":[0,0],"38":[0,0],"39":[0,0],"40":[0,0],"41":[0,0],"42":[0,0],"43":[0,0],"44":[0,0],"45":[0,0],"46":[0,0],"47":[0,0],"48":[0,0],"49":[0,0,0],"50":[0,0],"51":[0,0],"52":[0,0],"53":[0,0],"54":[0,0],"55":[0,0],"56":[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],"82":[0,0],"83":[0,0],"84":[0,0,0],"85":[0,0],"86":[0,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],"101":[0,0],"102":[0,0],"103":[0,0],"104":[0,0],"105":[0,0,0,0,0],"106":[0,0],"107":[0,0],"108":[0,0],"109":[0,0],"110":[0,0],"111":[0,0],"112":[0,0],"113":[0,0],"114":[0,0],"115":[0,0],"116":[0,0],"117":[0,0],"118":[0,0],"119":[0,0],"120":[0,0],"121":[0,0],"122":[0,0],"123":[0,0],"124":[0,0],"125":[0,0],"126":[0,0],"127":[0,0],"128":[0,0],"129":[0,0],"130":[0,0],"131":[0,0],"132":[0,0],"133":[0,0],"134":[0,0],"135":[0,0],"136":[0,0],"137":[0,0],"138":[0,0],"139":[0,0],"140":[0,0],"141":[0,0],"142":[0,0],"143":[0,0],"144":[0,0,0],"145":[0,0],"146":[0,0],"147":[0,0],"148":[0,0],"149":[0,0],"150":[0,0],"151":[0,0],"152":[0,0],"153":[0,0],"154":[0,0],"155":[0,0],"156":[0,0],"157":[0,0],"158":[0,0,0],"159":[0,0],"160":[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,"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},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":21},"end":{"line":1,"column":40}}},"2":{"name":"(anonymous_2)","line":37,"loc":{"start":{"line":37,"column":13},"end":{"line":37,"column":28}}},"3":{"name":"(anonymous_3)","line":78,"loc":{"start":{"line":78,"column":14},"end":{"line":78,"column":27}}},"4":{"name":"(anonymous_4)","line":82,"loc":{"start":{"line":82,"column":12},"end":{"line":82,"column":24}}},"5":{"name":"(anonymous_5)","line":85,"loc":{"start":{"line":85,"column":12},"end":{"line":85,"column":24}}},"6":{"name":"(anonymous_6)","line":97,"loc":{"start":{"line":97,"column":21},"end":{"line":97,"column":36}}},"7":{"name":"(anonymous_7)","line":146,"loc":{"start":{"line":146,"column":20},"end":{"line":146,"column":35}}},"8":{"name":"(anonymous_8)","line":164,"loc":{"start":{"line":164,"column":18},"end":{"line":164,"column":38}}},"9":{"name":"(anonymous_9)","line":194,"loc":{"start":{"line":194,"column":19},"end":{"line":194,"column":47}}},"10":{"name":"(anonymous_10)","line":196,"loc":{"start":{"line":196,"column":33},"end":{"line":196,"column":44}}},"11":{"name":"(anonymous_11)","line":233,"loc":{"start":{"line":233,"column":22},"end":{"line":233,"column":52}}},"12":{"name":"(anonymous_12)","line":238,"loc":{"start":{"line":238,"column":27},"end":{"line":238,"column":39}}},"13":{"name":"(anonymous_13)","line":275,"loc":{"start":{"line":275,"column":13},"end":{"line":275,"column":28}}},"14":{"name":"(anonymous_14)","line":315,"loc":{"start":{"line":315,"column":24},"end":{"line":315,"column":44}}},"15":{"name":"(anonymous_15)","line":339,"loc":{"start":{"line":339,"column":24},"end":{"line":339,"column":39}}},"16":{"name":"(anonymous_16)","line":360,"loc":{"start":{"line":360,"column":14},"end":{"line":360,"column":25}}},"17":{"name":"(anonymous_17)","line":394,"loc":{"start":{"line":394,"column":9},"end":{"line":394,"column":24}}},"18":{"name":"(anonymous_18)","line":418,"loc":{"start":{"line":418,"column":10},"end":{"line":418,"column":25}}},"19":{"name":"(anonymous_19)","line":444,"loc":{"start":{"line":444,"column":9},"end":{"line":444,"column":29}}},"20":{"name":"(anonymous_20)","line":468,"loc":{"start":{"line":468,"column":14},"end":{"line":468,"column":32}}},"21":{"name":"(anonymous_21)","line":472,"loc":{"start":{"line":472,"column":35},"end":{"line":472,"column":50}}},"22":{"name":"(anonymous_22)","line":486,"loc":{"start":{"line":486,"column":14},"end":{"line":486,"column":30}}},"23":{"name":"(anonymous_23)","line":491,"loc":{"start":{"line":491,"column":32},"end":{"line":491,"column":47}}},"24":{"name":"(anonymous_24)","line":506,"loc":{"start":{"line":506,"column":15},"end":{"line":506,"column":33}}},"25":{"name":"(anonymous_25)","line":522,"loc":{"start":{"line":522,"column":11},"end":{"line":522,"column":25}}},"26":{"name":"(anonymous_26)","line":535,"loc":{"start":{"line":535,"column":13},"end":{"line":535,"column":26}}},"27":{"name":"(anonymous_27)","line":559,"loc":{"start":{"line":559,"column":14},"end":{"line":559,"column":45}}},"28":{"name":"(anonymous_28)","line":577,"loc":{"start":{"line":577,"column":15},"end":{"line":577,"column":46}}},"29":{"name":"(anonymous_29)","line":595,"loc":{"start":{"line":595,"column":14},"end":{"line":595,"column":32}}},"30":{"name":"(anonymous_30)","line":609,"loc":{"start":{"line":609,"column":10},"end":{"line":609,"column":28}}},"31":{"name":"(anonymous_31)","line":621,"loc":{"start":{"line":621,"column":14},"end":{"line":621,"column":27}}},"32":{"name":"(anonymous_32)","line":635,"loc":{"start":{"line":635,"column":9},"end":{"line":635,"column":28}}},"33":{"name":"(anonymous_33)","line":646,"loc":{"start":{"line":646,"column":9},"end":{"line":646,"column":28}}},"34":{"name":"(anonymous_34)","line":666,"loc":{"start":{"line":666,"column":10},"end":{"line":666,"column":29}}},"35":{"name":"(anonymous_35)","line":679,"loc":{"start":{"line":679,"column":12},"end":{"line":679,"column":30}}},"36":{"name":"(anonymous_36)","line":702,"loc":{"start":{"line":702,"column":13},"end":{"line":702,"column":31}}},"37":{"name":"(anonymous_37)","line":718,"loc":{"start":{"line":718,"column":18},"end":{"line":718,"column":42}}},"38":{"name":"(anonymous_38)","line":735,"loc":{"start":{"line":735,"column":13},"end":{"line":735,"column":33}}},"39":{"name":"(anonymous_39)","line":748,"loc":{"start":{"line":748,"column":43},"end":{"line":748,"column":58}}},"40":{"name":"(anonymous_40)","line":774,"loc":{"start":{"line":774,"column":12},"end":{"line":774,"column":44}}},"41":{"name":"(anonymous_41)","line":798,"loc":{"start":{"line":798,"column":8},"end":{"line":798,"column":28}}},"42":{"name":"(anonymous_42)","line":801,"loc":{"start":{"line":801,"column":8},"end":{"line":801,"column":28}}},"43":{"name":"(anonymous_43)","line":819,"loc":{"start":{"line":819,"column":15},"end":{"line":819,"column":32}}},"44":{"name":"(anonymous_44)","line":827,"loc":{"start":{"line":827,"column":16},"end":{"line":827,"column":27}}},"45":{"name":"(anonymous_45)","line":836,"loc":{"start":{"line":836,"column":11},"end":{"line":836,"column":22}}},"46":{"name":"(anonymous_46)","line":846,"loc":{"start":{"line":846,"column":16},"end":{"line":846,"column":27}}},"47":{"name":"(anonymous_47)","line":869,"loc":{"start":{"line":869,"column":15},"end":{"line":869,"column":31}}},"48":{"name":"(anonymous_48)","line":881,"loc":{"start":{"line":881,"column":32},"end":{"line":881,"column":47}}},"49":{"name":"(anonymous_49)","line":910,"loc":{"start":{"line":910,"column":23},"end":{"line":910,"column":42}}},"50":{"name":"(anonymous_50)","line":914,"loc":{"start":{"line":914,"column":16},"end":{"line":914,"column":48}}},"51":{"name":"(anonymous_51)","line":922,"loc":{"start":{"line":922,"column":21},"end":{"line":922,"column":49}}},"52":{"name":"(anonymous_52)","line":924,"loc":{"start":{"line":924,"column":35},"end":{"line":924,"column":46}}},"53":{"name":"(anonymous_53)","line":928,"loc":{"start":{"line":928,"column":38},"end":{"line":928,"column":53}}},"54":{"name":"(anonymous_54)","line":951,"loc":{"start":{"line":951,"column":24},"end":{"line":951,"column":54}}},"55":{"name":"(anonymous_55)","line":956,"loc":{"start":{"line":956,"column":27},"end":{"line":956,"column":39}}},"56":{"name":"(anonymous_56)","line":962,"loc":{"start":{"line":962,"column":24},"end":{"line":962,"column":39}}},"57":{"name":"(anonymous_57)","line":975,"loc":{"start":{"line":975,"column":13},"end":{"line":975,"column":44}}},"58":{"name":"(anonymous_58)","line":978,"loc":{"start":{"line":978,"column":18},"end":{"line":978,"column":33}}},"59":{"name":"(anonymous_59)","line":995,"loc":{"start":{"line":995,"column":10},"end":{"line":995,"column":26}}},"60":{"name":"(anonymous_60)","line":1008,"loc":{"start":{"line":1008,"column":10},"end":{"line":1008,"column":32}}},"61":{"name":"(anonymous_61)","line":1010,"loc":{"start":{"line":1010,"column":34},"end":{"line":1010,"column":56}}},"62":{"name":"(anonymous_62)","line":1017,"loc":{"start":{"line":1017,"column":11},"end":{"line":1017,"column":33}}},"63":{"name":"(anonymous_63)","line":1020,"loc":{"start":{"line":1020,"column":34},"end":{"line":1020,"column":56}}},"64":{"name":"(anonymous_64)","line":1040,"loc":{"start":{"line":1040,"column":10},"end":{"line":1040,"column":32}}},"65":{"name":"(anonymous_65)","line":1042,"loc":{"start":{"line":1042,"column":41},"end":{"line":1042,"column":63}}},"66":{"name":"(anonymous_66)","line":1054,"loc":{"start":{"line":1054,"column":12},"end":{"line":1054,"column":23}}},"67":{"name":"(anonymous_67)","line":1065,"loc":{"start":{"line":1065,"column":13},"end":{"line":1065,"column":28}}},"68":{"name":"(anonymous_68)","line":1076,"loc":{"start":{"line":1076,"column":12},"end":{"line":1076,"column":31}}},"69":{"name":"(anonymous_69)","line":1090,"loc":{"start":{"line":1090,"column":13},"end":{"line":1090,"column":28}}},"70":{"name":"(anonymous_70)","line":1093,"loc":{"start":{"line":1093,"column":28},"end":{"line":1093,"column":46}}},"71":{"name":"(anonymous_71)","line":1108,"loc":{"start":{"line":1108,"column":9},"end":{"line":1108,"column":20}}},"72":{"name":"(anonymous_72)","line":1118,"loc":{"start":{"line":1118,"column":10},"end":{"line":1118,"column":21}}},"73":{"name":"(anonymous_73)","line":1122,"loc":{"start":{"line":1122,"column":16},"end":{"line":1122,"column":27}}},"74":{"name":"(anonymous_74)","line":1130,"loc":{"start":{"line":1130,"column":13},"end":{"line":1130,"column":24}}},"75":{"name":"(anonymous_75)","line":1154,"loc":{"start":{"line":1154,"column":10},"end":{"line":1154,"column":21}}},"76":{"name":"(anonymous_76)","line":1163,"loc":{"start":{"line":1163,"column":13},"end":{"line":1163,"column":24}}},"77":{"name":"(anonymous_77)","line":1167,"loc":{"start":{"line":1167,"column":14},"end":{"line":1167,"column":25}}},"78":{"name":"(anonymous_78)","line":1196,"loc":{"start":{"line":1196,"column":17},"end":{"line":1196,"column":28}}},"79":{"name":"(anonymous_79)","line":1254,"loc":{"start":{"line":1254,"column":25},"end":{"line":1254,"column":40}}},"80":{"name":"(anonymous_80)","line":1270,"loc":{"start":{"line":1270,"column":24},"end":{"line":1270,"column":39}}},"81":{"name":"(anonymous_81)","line":1290,"loc":{"start":{"line":1290,"column":8},"end":{"line":1290,"column":24}}},"82":{"name":"(anonymous_82)","line":1360,"loc":{"start":{"line":1360,"column":28},"end":{"line":1360,"column":59}}},"83":{"name":"(anonymous_83)","line":1361,"loc":{"start":{"line":1361,"column":33},"end":{"line":1361,"column":44}}},"84":{"name":"(anonymous_84)","line":1481,"loc":{"start":{"line":1481,"column":3},"end":{"line":1481,"column":20}}},"85":{"name":"(anonymous_85)","line":1482,"loc":{"start":{"line":1482,"column":31},"end":{"line":1482,"column":58}}},"86":{"name":"(anonymous_86)","line":1495,"loc":{"start":{"line":1495,"column":35},"end":{"line":1495,"column":50}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1612,"column":56}},"2":{"start":{"line":25,"column":0},"end":{"line":91,"column":6}},"3":{"start":{"line":38,"column":8},"end":{"line":40,"column":9}},"4":{"start":{"line":39,"column":12},"end":{"line":39,"column":36}},"5":{"start":{"line":42,"column":8},"end":{"line":47,"column":9}},"6":{"start":{"line":43,"column":12},"end":{"line":43,"column":44}},"7":{"start":{"line":44,"column":12},"end":{"line":46,"column":13}},"8":{"start":{"line":45,"column":16},"end":{"line":45,"column":28}},"9":{"start":{"line":49,"column":8},"end":{"line":49,"column":68}},"10":{"start":{"line":51,"column":8},"end":{"line":53,"column":9}},"11":{"start":{"line":52,"column":12},"end":{"line":52,"column":29}},"12":{"start":{"line":55,"column":8},"end":{"line":55,"column":35}},"13":{"start":{"line":56,"column":8},"end":{"line":58,"column":9}},"14":{"start":{"line":57,"column":12},"end":{"line":57,"column":27}},"15":{"start":{"line":60,"column":8},"end":{"line":60,"column":24}},"16":{"start":{"line":68,"column":8},"end":{"line":68,"column":26}},"17":{"start":{"line":70,"column":8},"end":{"line":70,"column":32}},"18":{"start":{"line":72,"column":8},"end":{"line":74,"column":9}},"19":{"start":{"line":73,"column":12},"end":{"line":73,"column":32}},"20":{"start":{"line":79,"column":8},"end":{"line":79,"column":23}},"21":{"start":{"line":80,"column":8},"end":{"line":88,"column":9}},"22":{"start":{"line":81,"column":12},"end":{"line":87,"column":14}},"23":{"start":{"line":83,"column":16},"end":{"line":83,"column":46}},"24":{"start":{"line":86,"column":16},"end":{"line":86,"column":36}},"25":{"start":{"line":90,"column":8},"end":{"line":90,"column":19}},"26":{"start":{"line":94,"column":0},"end":{"line":94,"column":18}},"27":{"start":{"line":95,"column":0},"end":{"line":95,"column":23}},"28":{"start":{"line":97,"column":0},"end":{"line":109,"column":2}},"29":{"start":{"line":98,"column":4},"end":{"line":106,"column":5}},"30":{"start":{"line":99,"column":8},"end":{"line":105,"column":9}},"31":{"start":{"line":100,"column":12},"end":{"line":100,"column":32}},"32":{"start":{"line":101,"column":15},"end":{"line":105,"column":9}},"33":{"start":{"line":102,"column":12},"end":{"line":102,"column":32}},"34":{"start":{"line":104,"column":12},"end":{"line":104,"column":54}},"35":{"start":{"line":108,"column":4},"end":{"line":108,"column":24}},"36":{"start":{"line":117,"column":0},"end":{"line":117,"column":21}},"37":{"start":{"line":122,"column":0},"end":{"line":122,"column":36}},"38":{"start":{"line":124,"column":0},"end":{"line":124,"column":34}},"39":{"start":{"line":125,"column":0},"end":{"line":125,"column":35}},"40":{"start":{"line":135,"column":0},"end":{"line":135,"column":23}},"41":{"start":{"line":146,"column":0},"end":{"line":151,"column":2}},"42":{"start":{"line":147,"column":4},"end":{"line":149,"column":5}},"43":{"start":{"line":148,"column":8},"end":{"line":148,"column":59}},"44":{"start":{"line":150,"column":4},"end":{"line":150,"column":16}},"45":{"start":{"line":164,"column":0},"end":{"line":181,"column":2}},"46":{"start":{"line":165,"column":4},"end":{"line":178,"column":5}},"47":{"start":{"line":166,"column":9},"end":{"line":173,"column":9}},"48":{"start":{"line":167,"column":12},"end":{"line":172,"column":13}},"49":{"start":{"line":168,"column":16},"end":{"line":168,"column":33}},"50":{"start":{"line":169,"column":19},"end":{"line":172,"column":13}},"51":{"start":{"line":171,"column":16},"end":{"line":171,"column":33}},"52":{"start":{"line":174,"column":11},"end":{"line":178,"column":5}},"53":{"start":{"line":175,"column":8},"end":{"line":175,"column":19}},"54":{"start":{"line":176,"column":11},"end":{"line":178,"column":5}},"55":{"start":{"line":177,"column":8},"end":{"line":177,"column":19}},"56":{"start":{"line":180,"column":4},"end":{"line":180,"column":15}},"57":{"start":{"line":194,"column":0},"end":{"line":221,"column":2}},"58":{"start":{"line":195,"column":4},"end":{"line":220,"column":5}},"59":{"start":{"line":196,"column":8},"end":{"line":218,"column":10}},"60":{"start":{"line":197,"column":12},"end":{"line":199,"column":20}},"61":{"start":{"line":201,"column":12},"end":{"line":203,"column":13}},"62":{"start":{"line":202,"column":16},"end":{"line":202,"column":40}},"63":{"start":{"line":205,"column":12},"end":{"line":207,"column":13}},"64":{"start":{"line":206,"column":16},"end":{"line":206,"column":40}},"65":{"start":{"line":208,"column":12},"end":{"line":208,"column":37}},"66":{"start":{"line":210,"column":12},"end":{"line":210,"column":50}},"67":{"start":{"line":212,"column":12},"end":{"line":214,"column":13}},"68":{"start":{"line":213,"column":16},"end":{"line":213,"column":49}},"69":{"start":{"line":216,"column":12},"end":{"line":216,"column":56}},"70":{"start":{"line":217,"column":12},"end":{"line":217,"column":23}},"71":{"start":{"line":233,"column":0},"end":{"line":242,"column":2}},"72":{"start":{"line":234,"column":4},"end":{"line":241,"column":5}},"73":{"start":{"line":235,"column":8},"end":{"line":235,"column":34}},"74":{"start":{"line":236,"column":8},"end":{"line":236,"column":52}},"75":{"start":{"line":238,"column":8},"end":{"line":240,"column":11}},"76":{"start":{"line":239,"column":12},"end":{"line":239,"column":41}},"77":{"start":{"line":275,"column":0},"end":{"line":304,"column":2}},"78":{"start":{"line":276,"column":4},"end":{"line":278,"column":12}},"79":{"start":{"line":280,"column":4},"end":{"line":301,"column":5}},"80":{"start":{"line":281,"column":8},"end":{"line":288,"column":9}},"81":{"start":{"line":282,"column":12},"end":{"line":282,"column":44}},"82":{"start":{"line":283,"column":12},"end":{"line":285,"column":13}},"83":{"start":{"line":284,"column":16},"end":{"line":284,"column":28}},"84":{"start":{"line":286,"column":15},"end":{"line":288,"column":9}},"85":{"start":{"line":287,"column":12},"end":{"line":287,"column":24}},"86":{"start":{"line":290,"column":8},"end":{"line":300,"column":9}},"87":{"start":{"line":291,"column":12},"end":{"line":291,"column":86}},"88":{"start":{"line":292,"column":12},"end":{"line":292,"column":46}},"89":{"start":{"line":293,"column":12},"end":{"line":293,"column":58}},"90":{"start":{"line":294,"column":12},"end":{"line":299,"column":13}},"91":{"start":{"line":295,"column":16},"end":{"line":295,"column":44}},"92":{"start":{"line":296,"column":16},"end":{"line":298,"column":17}},"93":{"start":{"line":297,"column":20},"end":{"line":297,"column":64}},"94":{"start":{"line":303,"column":4},"end":{"line":303,"column":20}},"95":{"start":{"line":315,"column":0},"end":{"line":329,"column":2}},"96":{"start":{"line":316,"column":4},"end":{"line":317,"column":16}},"97":{"start":{"line":319,"column":4},"end":{"line":326,"column":5}},"98":{"start":{"line":320,"column":8},"end":{"line":320,"column":23}},"99":{"start":{"line":321,"column":8},"end":{"line":321,"column":31}},"100":{"start":{"line":323,"column":8},"end":{"line":323,"column":43}},"101":{"start":{"line":324,"column":11},"end":{"line":326,"column":5}},"102":{"start":{"line":325,"column":8},"end":{"line":325,"column":25}},"103":{"start":{"line":328,"column":4},"end":{"line":328,"column":15}},"104":{"start":{"line":339,"column":0},"end":{"line":350,"column":2}},"105":{"start":{"line":340,"column":4},"end":{"line":341,"column":12}},"106":{"start":{"line":343,"column":4},"end":{"line":347,"column":5}},"107":{"start":{"line":344,"column":8},"end":{"line":344,"column":55}},"108":{"start":{"line":345,"column":11},"end":{"line":347,"column":5}},"109":{"start":{"line":346,"column":8},"end":{"line":346,"column":25}},"110":{"start":{"line":349,"column":4},"end":{"line":349,"column":15}},"111":{"start":{"line":352,"column":0},"end":{"line":849,"column":9}},"112":{"start":{"line":361,"column":8},"end":{"line":363,"column":33}},"113":{"start":{"line":365,"column":8},"end":{"line":381,"column":9}},"114":{"start":{"line":366,"column":12},"end":{"line":366,"column":36}},"115":{"start":{"line":367,"column":12},"end":{"line":367,"column":70}},"116":{"start":{"line":368,"column":12},"end":{"line":368,"column":91}},"117":{"start":{"line":369,"column":12},"end":{"line":369,"column":34}},"118":{"start":{"line":371,"column":12},"end":{"line":373,"column":13}},"119":{"start":{"line":372,"column":16},"end":{"line":372,"column":32}},"120":{"start":{"line":375,"column":12},"end":{"line":377,"column":13}},"121":{"start":{"line":376,"column":16},"end":{"line":376,"column":57}},"122":{"start":{"line":380,"column":12},"end":{"line":380,"column":35}},"123":{"start":{"line":382,"column":8},"end":{"line":382,"column":19}},"124":{"start":{"line":395,"column":8},"end":{"line":395,"column":16}},"125":{"start":{"line":397,"column":8},"end":{"line":401,"column":9}},"126":{"start":{"line":398,"column":12},"end":{"line":398,"column":38}},"127":{"start":{"line":400,"column":12},"end":{"line":400,"column":34}},"128":{"start":{"line":403,"column":8},"end":{"line":407,"column":9}},"129":{"start":{"line":404,"column":12},"end":{"line":404,"column":45}},"130":{"start":{"line":405,"column":15},"end":{"line":407,"column":9}},"131":{"start":{"line":406,"column":12},"end":{"line":406,"column":23}},"132":{"start":{"line":408,"column":8},"end":{"line":408,"column":19}},"133":{"start":{"line":419,"column":8},"end":{"line":420,"column":16}},"134":{"start":{"line":422,"column":8},"end":{"line":428,"column":9}},"135":{"start":{"line":423,"column":12},"end":{"line":423,"column":47}},"136":{"start":{"line":424,"column":15},"end":{"line":428,"column":9}},"137":{"start":{"line":425,"column":12},"end":{"line":425,"column":51}},"138":{"start":{"line":427,"column":12},"end":{"line":427,"column":63}},"139":{"start":{"line":430,"column":8},"end":{"line":430,"column":19}},"140":{"start":{"line":445,"column":8},"end":{"line":445,"column":44}},"141":{"start":{"line":447,"column":8},"end":{"line":457,"column":9}},"142":{"start":{"line":448,"column":12},"end":{"line":448,"column":49}},"143":{"start":{"line":450,"column":12},"end":{"line":456,"column":13}},"144":{"start":{"line":451,"column":16},"end":{"line":451,"column":56}},"145":{"start":{"line":452,"column":19},"end":{"line":456,"column":13}},"146":{"start":{"line":453,"column":16},"end":{"line":453,"column":51}},"147":{"start":{"line":455,"column":16},"end":{"line":455,"column":61}},"148":{"start":{"line":459,"column":8},"end":{"line":459,"column":20}},"149":{"start":{"line":469,"column":8},"end":{"line":475,"column":9}},"150":{"start":{"line":470,"column":12},"end":{"line":470,"column":36}},"151":{"start":{"line":472,"column":12},"end":{"line":474,"column":21}},"152":{"start":{"line":473,"column":16},"end":{"line":473,"column":31}},"153":{"start":{"line":477,"column":8},"end":{"line":477,"column":20}},"154":{"start":{"line":487,"column":8},"end":{"line":487,"column":21}},"155":{"start":{"line":488,"column":8},"end":{"line":494,"column":9}},"156":{"start":{"line":489,"column":12},"end":{"line":489,"column":34}},"157":{"start":{"line":491,"column":12},"end":{"line":493,"column":21}},"158":{"start":{"line":492,"column":16},"end":{"line":492,"column":37}},"159":{"start":{"line":496,"column":8},"end":{"line":496,"column":19}},"160":{"start":{"line":507,"column":8},"end":{"line":507,"column":30}},"161":{"start":{"line":509,"column":8},"end":{"line":511,"column":9}},"162":{"start":{"line":510,"column":12},"end":{"line":510,"column":36}},"163":{"start":{"line":512,"column":8},"end":{"line":512,"column":32}},"164":{"start":{"line":523,"column":8},"end":{"line":523,"column":30}},"165":{"start":{"line":525,"column":8},"end":{"line":530,"column":9}},"166":{"start":{"line":526,"column":12},"end":{"line":526,"column":66}},"167":{"start":{"line":527,"column":12},"end":{"line":529,"column":13}},"168":{"start":{"line":528,"column":16},"end":{"line":528,"column":65}},"169":{"start":{"line":532,"column":8},"end":{"line":532,"column":21}},"170":{"start":{"line":536,"column":8},"end":{"line":537,"column":55}},"171":{"start":{"line":538,"column":8},"end":{"line":542,"column":9}},"172":{"start":{"line":539,"column":12},"end":{"line":539,"column":29}},"173":{"start":{"line":541,"column":12},"end":{"line":541,"column":23}},"174":{"start":{"line":543,"column":8},"end":{"line":543,"column":19}},"175":{"start":{"line":561,"column":8},"end":{"line":564,"column":9}},"176":{"start":{"line":563,"column":12},"end":{"line":563,"column":30}},"177":{"start":{"line":566,"column":8},"end":{"line":566,"column":89}},"178":{"start":{"line":578,"column":8},"end":{"line":581,"column":9}},"179":{"start":{"line":580,"column":12},"end":{"line":580,"column":30}},"180":{"start":{"line":582,"column":8},"end":{"line":582,"column":90}},"181":{"start":{"line":596,"column":8},"end":{"line":596,"column":91}},"182":{"start":{"line":610,"column":8},"end":{"line":610,"column":87}},"183":{"start":{"line":622,"column":8},"end":{"line":622,"column":62}},"184":{"start":{"line":636,"column":8},"end":{"line":636,"column":67}},"185":{"start":{"line":647,"column":8},"end":{"line":647,"column":21}},"186":{"start":{"line":649,"column":8},"end":{"line":653,"column":9}},"187":{"start":{"line":650,"column":12},"end":{"line":650,"column":69}},"188":{"start":{"line":651,"column":12},"end":{"line":651,"column":39}},"189":{"start":{"line":652,"column":12},"end":{"line":652,"column":45}},"190":{"start":{"line":655,"column":8},"end":{"line":655,"column":37}},"191":{"start":{"line":667,"column":8},"end":{"line":667,"column":53}},"192":{"start":{"line":680,"column":8},"end":{"line":680,"column":30}},"193":{"start":{"line":682,"column":8},"end":{"line":684,"column":9}},"194":{"start":{"line":683,"column":12},"end":{"line":683,"column":46}},"195":{"start":{"line":686,"column":8},"end":{"line":688,"column":9}},"196":{"start":{"line":687,"column":12},"end":{"line":687,"column":27}},"197":{"start":{"line":690,"column":8},"end":{"line":690,"column":20}},"198":{"start":{"line":703,"column":8},"end":{"line":703,"column":30}},"199":{"start":{"line":704,"column":8},"end":{"line":706,"column":9}},"200":{"start":{"line":705,"column":12},"end":{"line":705,"column":45}},"201":{"start":{"line":707,"column":8},"end":{"line":707,"column":71}},"202":{"start":{"line":708,"column":8},"end":{"line":708,"column":20}},"203":{"start":{"line":719,"column":8},"end":{"line":721,"column":9}},"204":{"start":{"line":720,"column":12},"end":{"line":720,"column":38}},"205":{"start":{"line":723,"column":8},"end":{"line":723,"column":99}},"206":{"start":{"line":736,"column":8},"end":{"line":737,"column":21}},"207":{"start":{"line":739,"column":8},"end":{"line":739,"column":21}},"208":{"start":{"line":741,"column":8},"end":{"line":743,"column":9}},"209":{"start":{"line":742,"column":12},"end":{"line":742,"column":26}},"210":{"start":{"line":745,"column":8},"end":{"line":745,"column":25}},"211":{"start":{"line":747,"column":8},"end":{"line":756,"column":9}},"212":{"start":{"line":748,"column":12},"end":{"line":755,"column":15}},"213":{"start":{"line":749,"column":16},"end":{"line":749,"column":56}},"214":{"start":{"line":750,"column":16},"end":{"line":754,"column":17}},"215":{"start":{"line":751,"column":19},"end":{"line":751,"column":38}},"216":{"start":{"line":753,"column":20},"end":{"line":753,"column":47}},"217":{"start":{"line":758,"column":8},"end":{"line":758,"column":26}},"218":{"start":{"line":759,"column":8},"end":{"line":759,"column":32}},"219":{"start":{"line":761,"column":8},"end":{"line":761,"column":45}},"220":{"start":{"line":775,"column":8},"end":{"line":776,"column":16}},"221":{"start":{"line":778,"column":8},"end":{"line":780,"column":9}},"222":{"start":{"line":779,"column":12},"end":{"line":779,"column":24}},"223":{"start":{"line":782,"column":8},"end":{"line":784,"column":9}},"224":{"start":{"line":783,"column":12},"end":{"line":783,"column":24}},"225":{"start":{"line":786,"column":8},"end":{"line":786,"column":42}},"226":{"start":{"line":787,"column":8},"end":{"line":787,"column":42}},"227":{"start":{"line":799,"column":12},"end":{"line":799,"column":62}},"228":{"start":{"line":802,"column":12},"end":{"line":802,"column":53}},"229":{"start":{"line":803,"column":12},"end":{"line":805,"column":52}},"230":{"start":{"line":807,"column":12},"end":{"line":814,"column":13}},"231":{"start":{"line":808,"column":16},"end":{"line":808,"column":53}},"232":{"start":{"line":809,"column":19},"end":{"line":814,"column":13}},"233":{"start":{"line":810,"column":16},"end":{"line":810,"column":53}},"234":{"start":{"line":812,"column":16},"end":{"line":812,"column":62}},"235":{"start":{"line":813,"column":16},"end":{"line":813,"column":57}},"236":{"start":{"line":815,"column":12},"end":{"line":815,"column":24}},"237":{"start":{"line":820,"column":8},"end":{"line":820,"column":30}},"238":{"start":{"line":821,"column":8},"end":{"line":824,"column":65}},"239":{"start":{"line":828,"column":8},"end":{"line":828,"column":45}},"240":{"start":{"line":837,"column":8},"end":{"line":837,"column":54}},"241":{"start":{"line":838,"column":8},"end":{"line":838,"column":20}},"242":{"start":{"line":847,"column":8},"end":{"line":847,"column":26}},"243":{"start":{"line":851,"column":0},"end":{"line":851,"column":16}},"244":{"start":{"line":852,"column":0},"end":{"line":852,"column":19}},"245":{"start":{"line":869,"column":0},"end":{"line":898,"column":2}},"246":{"start":{"line":870,"column":4},"end":{"line":870,"column":17}},"247":{"start":{"line":872,"column":4},"end":{"line":890,"column":5}},"248":{"start":{"line":873,"column":8},"end":{"line":889,"column":9}},"249":{"start":{"line":874,"column":12},"end":{"line":874,"column":32}},"250":{"start":{"line":875,"column":12},"end":{"line":875,"column":44}},"251":{"start":{"line":876,"column":15},"end":{"line":889,"column":9}},"252":{"start":{"line":877,"column":12},"end":{"line":877,"column":28}},"253":{"start":{"line":878,"column":15},"end":{"line":889,"column":9}},"254":{"start":{"line":879,"column":12},"end":{"line":879,"column":34}},"255":{"start":{"line":880,"column":15},"end":{"line":889,"column":9}},"256":{"start":{"line":881,"column":12},"end":{"line":885,"column":15}},"257":{"start":{"line":882,"column":16},"end":{"line":884,"column":17}},"258":{"start":{"line":883,"column":20},"end":{"line":883,"column":41}},"259":{"start":{"line":886,"column":12},"end":{"line":886,"column":24}},"260":{"start":{"line":888,"column":12},"end":{"line":888,"column":44}},"261":{"start":{"line":897,"column":4},"end":{"line":897,"column":30}},"262":{"start":{"line":900,"column":0},"end":{"line":900,"column":27}},"263":{"start":{"line":910,"column":0},"end":{"line":912,"column":2}},"264":{"start":{"line":911,"column":4},"end":{"line":911,"column":70}},"265":{"start":{"line":914,"column":0},"end":{"line":920,"column":2}},"266":{"start":{"line":915,"column":4},"end":{"line":915,"column":32}},"267":{"start":{"line":916,"column":4},"end":{"line":919,"column":5}},"268":{"start":{"line":917,"column":8},"end":{"line":917,"column":53}},"269":{"start":{"line":922,"column":0},"end":{"line":949,"column":2}},"270":{"start":{"line":923,"column":4},"end":{"line":948,"column":5}},"271":{"start":{"line":924,"column":8},"end":{"line":946,"column":10}},"272":{"start":{"line":925,"column":12},"end":{"line":926,"column":33}},"273":{"start":{"line":928,"column":12},"end":{"line":942,"column":15}},"274":{"start":{"line":929,"column":16},"end":{"line":932,"column":27}},"275":{"start":{"line":934,"column":16},"end":{"line":936,"column":17}},"276":{"start":{"line":935,"column":20},"end":{"line":935,"column":59}},"277":{"start":{"line":937,"column":16},"end":{"line":937,"column":42}},"278":{"start":{"line":938,"column":16},"end":{"line":938,"column":45}},"279":{"start":{"line":939,"column":16},"end":{"line":941,"column":17}},"280":{"start":{"line":940,"column":20},"end":{"line":940,"column":45}},"281":{"start":{"line":945,"column":12},"end":{"line":945,"column":43}},"282":{"start":{"line":951,"column":0},"end":{"line":960,"column":2}},"283":{"start":{"line":952,"column":4},"end":{"line":959,"column":5}},"284":{"start":{"line":953,"column":8},"end":{"line":953,"column":34}},"285":{"start":{"line":954,"column":8},"end":{"line":954,"column":45}},"286":{"start":{"line":956,"column":8},"end":{"line":958,"column":11}},"287":{"start":{"line":957,"column":12},"end":{"line":957,"column":43}},"288":{"start":{"line":962,"column":0},"end":{"line":972,"column":2}},"289":{"start":{"line":963,"column":4},"end":{"line":963,"column":33}},"290":{"start":{"line":964,"column":4},"end":{"line":967,"column":5}},"291":{"start":{"line":965,"column":8},"end":{"line":965,"column":43}},"292":{"start":{"line":966,"column":8},"end":{"line":966,"column":33}},"293":{"start":{"line":969,"column":4},"end":{"line":969,"column":21}},"294":{"start":{"line":970,"column":4},"end":{"line":970,"column":27}},"295":{"start":{"line":971,"column":4},"end":{"line":971,"column":15}},"296":{"start":{"line":974,"column":0},"end":{"line":1199,"column":9}},"297":{"start":{"line":976,"column":8},"end":{"line":976,"column":39}},"298":{"start":{"line":978,"column":8},"end":{"line":983,"column":11}},"299":{"start":{"line":979,"column":12},"end":{"line":979,"column":53}},"300":{"start":{"line":980,"column":12},"end":{"line":982,"column":13}},"301":{"start":{"line":981,"column":16},"end":{"line":981,"column":30}},"302":{"start":{"line":985,"column":8},"end":{"line":985,"column":19}},"303":{"start":{"line":996,"column":8},"end":{"line":996,"column":49}},"304":{"start":{"line":1009,"column":8},"end":{"line":1009,"column":28}},"305":{"start":{"line":1010,"column":8},"end":{"line":1013,"column":11}},"306":{"start":{"line":1011,"column":12},"end":{"line":1011,"column":31}},"307":{"start":{"line":1012,"column":12},"end":{"line":1012,"column":67}},"308":{"start":{"line":1014,"column":8},"end":{"line":1014,"column":24}},"309":{"start":{"line":1018,"column":8},"end":{"line":1018,"column":28}},"310":{"start":{"line":1020,"column":8},"end":{"line":1027,"column":11}},"311":{"start":{"line":1021,"column":12},"end":{"line":1021,"column":56}},"312":{"start":{"line":1022,"column":12},"end":{"line":1024,"column":13}},"313":{"start":{"line":1023,"column":16},"end":{"line":1023,"column":55}},"314":{"start":{"line":1026,"column":12},"end":{"line":1026,"column":75}},"315":{"start":{"line":1028,"column":8},"end":{"line":1028,"column":24}},"316":{"start":{"line":1041,"column":8},"end":{"line":1041,"column":28}},"317":{"start":{"line":1042,"column":8},"end":{"line":1046,"column":11}},"318":{"start":{"line":1043,"column":12},"end":{"line":1043,"column":31}},"319":{"start":{"line":1044,"column":12},"end":{"line":1044,"column":38}},"320":{"start":{"line":1045,"column":12},"end":{"line":1045,"column":59}},"321":{"start":{"line":1055,"column":8},"end":{"line":1055,"column":50}},"322":{"start":{"line":1066,"column":8},"end":{"line":1066,"column":69}},"323":{"start":{"line":1077,"column":8},"end":{"line":1077,"column":63}},"324":{"start":{"line":1091,"column":8},"end":{"line":1091,"column":19}},"325":{"start":{"line":1092,"column":8},"end":{"line":1092,"column":23}},"326":{"start":{"line":1093,"column":8},"end":{"line":1097,"column":11}},"327":{"start":{"line":1094,"column":12},"end":{"line":1096,"column":13}},"328":{"start":{"line":1095,"column":16},"end":{"line":1095,"column":33}},"329":{"start":{"line":1099,"column":8},"end":{"line":1099,"column":28}},"330":{"start":{"line":1109,"column":8},"end":{"line":1109,"column":34}},"331":{"start":{"line":1119,"column":8},"end":{"line":1119,"column":31}},"332":{"start":{"line":1131,"column":8},"end":{"line":1134,"column":35}},"333":{"start":{"line":1136,"column":8},"end":{"line":1144,"column":9}},"334":{"start":{"line":1137,"column":12},"end":{"line":1141,"column":13}},"335":{"start":{"line":1138,"column":16},"end":{"line":1140,"column":17}},"336":{"start":{"line":1139,"column":20},"end":{"line":1139,"column":50}},"337":{"start":{"line":1143,"column":12},"end":{"line":1143,"column":56}},"338":{"start":{"line":1146,"column":8},"end":{"line":1146,"column":20}},"339":{"start":{"line":1155,"column":8},"end":{"line":1155,"column":34}},"340":{"start":{"line":1164,"column":8},"end":{"line":1164,"column":38}},"341":{"start":{"line":1168,"column":8},"end":{"line":1171,"column":17}},"342":{"start":{"line":1173,"column":8},"end":{"line":1187,"column":9}},"343":{"start":{"line":1174,"column":12},"end":{"line":1174,"column":28}},"344":{"start":{"line":1175,"column":12},"end":{"line":1175,"column":35}},"345":{"start":{"line":1176,"column":12},"end":{"line":1178,"column":13}},"346":{"start":{"line":1177,"column":16},"end":{"line":1177,"column":37}},"347":{"start":{"line":1180,"column":12},"end":{"line":1182,"column":13}},"348":{"start":{"line":1181,"column":16},"end":{"line":1181,"column":62}},"349":{"start":{"line":1184,"column":12},"end":{"line":1186,"column":13}},"350":{"start":{"line":1185,"column":16},"end":{"line":1185,"column":57}},"351":{"start":{"line":1188,"column":8},"end":{"line":1188,"column":31}},"352":{"start":{"line":1197,"column":8},"end":{"line":1197,"column":27}},"353":{"start":{"line":1201,"column":0},"end":{"line":1245,"column":3}},"354":{"start":{"line":1254,"column":0},"end":{"line":1286,"column":2}},"355":{"start":{"line":1255,"column":4},"end":{"line":1260,"column":12}},"356":{"start":{"line":1262,"column":4},"end":{"line":1268,"column":5}},"357":{"start":{"line":1263,"column":8},"end":{"line":1263,"column":74}},"358":{"start":{"line":1264,"column":8},"end":{"line":1264,"column":34}},"359":{"start":{"line":1265,"column":8},"end":{"line":1267,"column":9}},"360":{"start":{"line":1266,"column":12},"end":{"line":1266,"column":30}},"361":{"start":{"line":1270,"column":4},"end":{"line":1283,"column":7}},"362":{"start":{"line":1271,"column":8},"end":{"line":1271,"column":49}},"363":{"start":{"line":1273,"column":8},"end":{"line":1275,"column":9}},"364":{"start":{"line":1274,"column":12},"end":{"line":1274,"column":37}},"365":{"start":{"line":1277,"column":8},"end":{"line":1277,"column":34}},"366":{"start":{"line":1278,"column":8},"end":{"line":1280,"column":9}},"367":{"start":{"line":1279,"column":12},"end":{"line":1279,"column":49}},"368":{"start":{"line":1282,"column":8},"end":{"line":1282,"column":22}},"369":{"start":{"line":1285,"column":4},"end":{"line":1285,"column":43}},"370":{"start":{"line":1288,"column":0},"end":{"line":1288,"column":22}},"371":{"start":{"line":1290,"column":0},"end":{"line":1292,"column":2}},"372":{"start":{"line":1291,"column":4},"end":{"line":1291,"column":31}},"373":{"start":{"line":1294,"column":0},"end":{"line":1294,"column":19}},"374":{"start":{"line":1300,"column":0},"end":{"line":1357,"column":6}},"375":{"start":{"line":1360,"column":0},"end":{"line":1381,"column":3}},"376":{"start":{"line":1361,"column":4},"end":{"line":1380,"column":6}},"377":{"start":{"line":1362,"column":8},"end":{"line":1365,"column":16}},"378":{"start":{"line":1367,"column":8},"end":{"line":1369,"column":9}},"379":{"start":{"line":1368,"column":12},"end":{"line":1368,"column":54}},"380":{"start":{"line":1371,"column":8},"end":{"line":1371,"column":56}},"381":{"start":{"line":1373,"column":8},"end":{"line":1377,"column":9}},"382":{"start":{"line":1374,"column":12},"end":{"line":1374,"column":29}},"383":{"start":{"line":1376,"column":12},"end":{"line":1376,"column":39}},"384":{"start":{"line":1379,"column":8},"end":{"line":1379,"column":19}},"385":{"start":{"line":1387,"column":0},"end":{"line":1486,"column":3}},"386":{"start":{"line":1482,"column":4},"end":{"line":1485,"column":6}},"387":{"start":{"line":1483,"column":8},"end":{"line":1483,"column":56}},"388":{"start":{"line":1484,"column":8},"end":{"line":1484,"column":19}},"389":{"start":{"line":1495,"column":0},"end":{"line":1502,"column":2}},"390":{"start":{"line":1496,"column":4},"end":{"line":1496,"column":26}},"391":{"start":{"line":1497,"column":4},"end":{"line":1499,"column":5}},"392":{"start":{"line":1498,"column":8},"end":{"line":1498,"column":38}},"393":{"start":{"line":1501,"column":4},"end":{"line":1501,"column":16}},"394":{"start":{"line":1504,"column":0},"end":{"line":1554,"column":3}},"395":{"start":{"line":1556,"column":0},"end":{"line":1609,"column":3}}},"branchMap":{"1":{"line":38,"type":"if","locations":[{"start":{"line":38,"column":8},"end":{"line":38,"column":8}},{"start":{"line":38,"column":8},"end":{"line":38,"column":8}}]},"2":{"line":42,"type":"if","locations":[{"start":{"line":42,"column":8},"end":{"line":42,"column":8}},{"start":{"line":42,"column":8},"end":{"line":42,"column":8}}]},"3":{"line":44,"type":"if","locations":[{"start":{"line":44,"column":12},"end":{"line":44,"column":12}},{"start":{"line":44,"column":12},"end":{"line":44,"column":12}}]},"4":{"line":49,"type":"cond-expr","locations":[{"start":{"line":49,"column":42},"end":{"line":49,"column":55}},{"start":{"line":49,"column":58},"end":{"line":49,"column":67}}]},"5":{"line":51,"type":"if","locations":[{"start":{"line":51,"column":8},"end":{"line":51,"column":8}},{"start":{"line":51,"column":8},"end":{"line":51,"column":8}}]},"6":{"line":51,"type":"binary-expr","locations":[{"start":{"line":51,"column":12},"end":{"line":51,"column":15}},{"start":{"line":51,"column":19},"end":{"line":51,"column":41}},{"start":{"line":51,"column":45},"end":{"line":51,"column":82}}]},"7":{"line":55,"type":"binary-expr","locations":[{"start":{"line":55,"column":14},"end":{"line":55,"column":17}},{"start":{"line":55,"column":21},"end":{"line":55,"column":34}}]},"8":{"line":56,"type":"if","locations":[{"start":{"line":56,"column":8},"end":{"line":56,"column":8}},{"start":{"line":56,"column":8},"end":{"line":56,"column":8}}]},"9":{"line":72,"type":"if","locations":[{"start":{"line":72,"column":8},"end":{"line":72,"column":8}},{"start":{"line":72,"column":8},"end":{"line":72,"column":8}}]},"10":{"line":80,"type":"if","locations":[{"start":{"line":80,"column":8},"end":{"line":80,"column":8}},{"start":{"line":80,"column":8},"end":{"line":80,"column":8}}]},"11":{"line":81,"type":"cond-expr","locations":[{"start":{"line":82,"column":12},"end":{"line":84,"column":13}},{"start":{"line":85,"column":12},"end":{"line":87,"column":13}}]},"12":{"line":98,"type":"if","locations":[{"start":{"line":98,"column":4},"end":{"line":98,"column":4}},{"start":{"line":98,"column":4},"end":{"line":98,"column":4}}]},"13":{"line":99,"type":"if","locations":[{"start":{"line":99,"column":8},"end":{"line":99,"column":8}},{"start":{"line":99,"column":8},"end":{"line":99,"column":8}}]},"14":{"line":101,"type":"if","locations":[{"start":{"line":101,"column":15},"end":{"line":101,"column":15}},{"start":{"line":101,"column":15},"end":{"line":101,"column":15}}]},"15":{"line":108,"type":"binary-expr","locations":[{"start":{"line":108,"column":11},"end":{"line":108,"column":15}},{"start":{"line":108,"column":19},"end":{"line":108,"column":23}}]},"16":{"line":147,"type":"if","locations":[{"start":{"line":147,"column":4},"end":{"line":147,"column":4}},{"start":{"line":147,"column":4},"end":{"line":147,"column":4}}]},"17":{"line":148,"type":"cond-expr","locations":[{"start":{"line":148,"column":33},"end":{"line":148,"column":37}},{"start":{"line":148,"column":40},"end":{"line":148,"column":58}}]},"18":{"line":148,"type":"binary-expr","locations":[{"start":{"line":148,"column":40},"end":{"line":148,"column":50}},{"start":{"line":148,"column":54},"end":{"line":148,"column":58}}]},"19":{"line":165,"type":"if","locations":[{"start":{"line":165,"column":4},"end":{"line":165,"column":4}},{"start":{"line":165,"column":4},"end":{"line":165,"column":4}}]},"20":{"line":166,"type":"if","locations":[{"start":{"line":166,"column":9},"end":{"line":166,"column":9}},{"start":{"line":166,"column":9},"end":{"line":166,"column":9}}]},"21":{"line":166,"type":"binary-expr","locations":[{"start":{"line":166,"column":13},"end":{"line":166,"column":35}},{"start":{"line":166,"column":39},"end":{"line":166,"column":63}}]},"22":{"line":167,"type":"if","locations":[{"start":{"line":167,"column":12},"end":{"line":167,"column":12}},{"start":{"line":167,"column":12},"end":{"line":167,"column":12}}]},"23":{"line":167,"type":"binary-expr","locations":[{"start":{"line":167,"column":16},"end":{"line":167,"column":32}},{"start":{"line":167,"column":36},"end":{"line":167,"column":55}}]},"24":{"line":169,"type":"if","locations":[{"start":{"line":169,"column":19},"end":{"line":169,"column":19}},{"start":{"line":169,"column":19},"end":{"line":169,"column":19}}]},"25":{"line":169,"type":"binary-expr","locations":[{"start":{"line":169,"column":24},"end":{"line":169,"column":32}},{"start":{"line":169,"column":36},"end":{"line":169,"column":47}},{"start":{"line":170,"column":21},"end":{"line":170,"column":27}},{"start":{"line":170,"column":31},"end":{"line":170,"column":48}}]},"26":{"line":174,"type":"if","locations":[{"start":{"line":174,"column":11},"end":{"line":174,"column":11}},{"start":{"line":174,"column":11},"end":{"line":174,"column":11}}]},"27":{"line":176,"type":"if","locations":[{"start":{"line":176,"column":11},"end":{"line":176,"column":11}},{"start":{"line":176,"column":11},"end":{"line":176,"column":11}}]},"28":{"line":195,"type":"if","locations":[{"start":{"line":195,"column":4},"end":{"line":195,"column":4}},{"start":{"line":195,"column":4},"end":{"line":195,"column":4}}]},"29":{"line":195,"type":"binary-expr","locations":[{"start":{"line":195,"column":8},"end":{"line":195,"column":12}},{"start":{"line":195,"column":16},"end":{"line":195,"column":18}},{"start":{"line":195,"column":22},"end":{"line":195,"column":45}}]},"30":{"line":201,"type":"if","locations":[{"start":{"line":201,"column":12},"end":{"line":201,"column":12}},{"start":{"line":201,"column":12},"end":{"line":201,"column":12}}]},"31":{"line":201,"type":"binary-expr","locations":[{"start":{"line":201,"column":16},"end":{"line":201,"column":23}},{"start":{"line":201,"column":27},"end":{"line":201,"column":40}}]},"32":{"line":205,"type":"if","locations":[{"start":{"line":205,"column":12},"end":{"line":205,"column":12}},{"start":{"line":205,"column":12},"end":{"line":205,"column":12}}]},"33":{"line":205,"type":"binary-expr","locations":[{"start":{"line":205,"column":16},"end":{"line":205,"column":23}},{"start":{"line":205,"column":27},"end":{"line":205,"column":40}}]},"34":{"line":210,"type":"binary-expr","locations":[{"start":{"line":210,"column":27},"end":{"line":210,"column":34}},{"start":{"line":210,"column":38},"end":{"line":210,"column":42}}]},"35":{"line":212,"type":"if","locations":[{"start":{"line":212,"column":12},"end":{"line":212,"column":12}},{"start":{"line":212,"column":12},"end":{"line":212,"column":12}}]},"36":{"line":216,"type":"binary-expr","locations":[{"start":{"line":216,"column":13},"end":{"line":216,"column":38}},{"start":{"line":216,"column":44},"end":{"line":216,"column":54}}]},"37":{"line":234,"type":"if","locations":[{"start":{"line":234,"column":4},"end":{"line":234,"column":4}},{"start":{"line":234,"column":4},"end":{"line":234,"column":4}}]},"38":{"line":235,"type":"binary-expr","locations":[{"start":{"line":235,"column":18},"end":{"line":235,"column":25}},{"start":{"line":235,"column":29},"end":{"line":235,"column":33}}]},"39":{"line":280,"type":"if","locations":[{"start":{"line":280,"column":4},"end":{"line":280,"column":4}},{"start":{"line":280,"column":4},"end":{"line":280,"column":4}}]},"40":{"line":281,"type":"if","locations":[{"start":{"line":281,"column":8},"end":{"line":281,"column":8}},{"start":{"line":281,"column":8},"end":{"line":281,"column":8}}]},"41":{"line":283,"type":"if","locations":[{"start":{"line":283,"column":12},"end":{"line":283,"column":12}},{"start":{"line":283,"column":12},"end":{"line":283,"column":12}}]},"42":{"line":286,"type":"if","locations":[{"start":{"line":286,"column":15},"end":{"line":286,"column":15}},{"start":{"line":286,"column":15},"end":{"line":286,"column":15}}]},"43":{"line":290,"type":"if","locations":[{"start":{"line":290,"column":8},"end":{"line":290,"column":8}},{"start":{"line":290,"column":8},"end":{"line":290,"column":8}}]},"44":{"line":290,"type":"binary-expr","locations":[{"start":{"line":290,"column":12},"end":{"line":290,"column":25}},{"start":{"line":290,"column":29},"end":{"line":290,"column":49}}]},"45":{"line":291,"type":"cond-expr","locations":[{"start":{"line":291,"column":59},"end":{"line":291,"column":72}},{"start":{"line":291,"column":75},"end":{"line":291,"column":85}}]},"46":{"line":291,"type":"binary-expr","locations":[{"start":{"line":291,"column":19},"end":{"line":291,"column":32}},{"start":{"line":291,"column":36},"end":{"line":291,"column":55}}]},"47":{"line":293,"type":"cond-expr","locations":[{"start":{"line":293,"column":36},"end":{"line":293,"column":50}},{"start":{"line":293,"column":53},"end":{"line":293,"column":57}}]},"48":{"line":294,"type":"if","locations":[{"start":{"line":294,"column":12},"end":{"line":294,"column":12}},{"start":{"line":294,"column":12},"end":{"line":294,"column":12}}]},"49":{"line":294,"type":"binary-expr","locations":[{"start":{"line":294,"column":16},"end":{"line":294,"column":25}},{"start":{"line":294,"column":30},"end":{"line":294,"column":40}},{"start":{"line":294,"column":44},"end":{"line":294,"column":63}}]},"50":{"line":296,"type":"if","locations":[{"start":{"line":296,"column":16},"end":{"line":296,"column":16}},{"start":{"line":296,"column":16},"end":{"line":296,"column":16}}]},"51":{"line":319,"type":"if","locations":[{"start":{"line":319,"column":4},"end":{"line":319,"column":4}},{"start":{"line":319,"column":4},"end":{"line":319,"column":4}}]},"52":{"line":324,"type":"if","locations":[{"start":{"line":324,"column":11},"end":{"line":324,"column":11}},{"start":{"line":324,"column":11},"end":{"line":324,"column":11}}]},"53":{"line":343,"type":"if","locations":[{"start":{"line":343,"column":4},"end":{"line":343,"column":4}},{"start":{"line":343,"column":4},"end":{"line":343,"column":4}}]},"54":{"line":343,"type":"binary-expr","locations":[{"start":{"line":343,"column":8},"end":{"line":343,"column":20}},{"start":{"line":343,"column":24},"end":{"line":343,"column":46}}]},"55":{"line":345,"type":"if","locations":[{"start":{"line":345,"column":11},"end":{"line":345,"column":11}},{"start":{"line":345,"column":11},"end":{"line":345,"column":11}}]},"56":{"line":365,"type":"if","locations":[{"start":{"line":365,"column":8},"end":{"line":365,"column":8}},{"start":{"line":365,"column":8},"end":{"line":365,"column":8}}]},"57":{"line":367,"type":"cond-expr","locations":[{"start":{"line":367,"column":39},"end":{"line":367,"column":62}},{"start":{"line":367,"column":65},"end":{"line":367,"column":69}}]},"58":{"line":367,"type":"binary-expr","locations":[{"start":{"line":367,"column":18},"end":{"line":367,"column":23}},{"start":{"line":367,"column":27},"end":{"line":367,"column":35}}]},"59":{"line":368,"type":"cond-expr","locations":[{"start":{"line":368,"column":53},"end":{"line":368,"column":83}},{"start":{"line":368,"column":86},"end":{"line":368,"column":90}}]},"60":{"line":368,"type":"binary-expr","locations":[{"start":{"line":368,"column":25},"end":{"line":368,"column":30}},{"start":{"line":368,"column":34},"end":{"line":368,"column":49}}]},"61":{"line":371,"type":"if","locations":[{"start":{"line":371,"column":12},"end":{"line":371,"column":12}},{"start":{"line":371,"column":12},"end":{"line":371,"column":12}}]},"62":{"line":375,"type":"if","locations":[{"start":{"line":375,"column":12},"end":{"line":375,"column":12}},{"start":{"line":375,"column":12},"end":{"line":375,"column":12}}]},"63":{"line":397,"type":"if","locations":[{"start":{"line":397,"column":8},"end":{"line":397,"column":8}},{"start":{"line":397,"column":8},"end":{"line":397,"column":8}}]},"64":{"line":403,"type":"if","locations":[{"start":{"line":403,"column":8},"end":{"line":403,"column":8}},{"start":{"line":403,"column":8},"end":{"line":403,"column":8}}]},"65":{"line":405,"type":"if","locations":[{"start":{"line":405,"column":15},"end":{"line":405,"column":15}},{"start":{"line":405,"column":15},"end":{"line":405,"column":15}}]},"66":{"line":422,"type":"if","locations":[{"start":{"line":422,"column":8},"end":{"line":422,"column":8}},{"start":{"line":422,"column":8},"end":{"line":422,"column":8}}]},"67":{"line":422,"type":"binary-expr","locations":[{"start":{"line":422,"column":12},"end":{"line":422,"column":22}},{"start":{"line":422,"column":26},"end":{"line":422,"column":43}}]},"68":{"line":424,"type":"if","locations":[{"start":{"line":424,"column":15},"end":{"line":424,"column":15}},{"start":{"line":424,"column":15},"end":{"line":424,"column":15}}]},"69":{"line":447,"type":"if","locations":[{"start":{"line":447,"column":8},"end":{"line":447,"column":8}},{"start":{"line":447,"column":8},"end":{"line":447,"column":8}}]},"70":{"line":450,"type":"if","locations":[{"start":{"line":450,"column":12},"end":{"line":450,"column":12}},{"start":{"line":450,"column":12},"end":{"line":450,"column":12}}]},"71":{"line":450,"type":"binary-expr","locations":[{"start":{"line":450,"column":16},"end":{"line":450,"column":26}},{"start":{"line":450,"column":30},"end":{"line":450,"column":47}}]},"72":{"line":452,"type":"if","locations":[{"start":{"line":452,"column":19},"end":{"line":452,"column":19}},{"start":{"line":452,"column":19},"end":{"line":452,"column":19}}]},"73":{"line":469,"type":"if","locations":[{"start":{"line":469,"column":8},"end":{"line":469,"column":8}},{"start":{"line":469,"column":8},"end":{"line":469,"column":8}}]},"74":{"line":488,"type":"if","locations":[{"start":{"line":488,"column":8},"end":{"line":488,"column":8}},{"start":{"line":488,"column":8},"end":{"line":488,"column":8}}]},"75":{"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}}]},"76":{"line":509,"type":"binary-expr","locations":[{"start":{"line":509,"column":12},"end":{"line":509,"column":19}},{"start":{"line":509,"column":23},"end":{"line":509,"column":36}}]},"77":{"line":525,"type":"if","locations":[{"start":{"line":525,"column":8},"end":{"line":525,"column":8}},{"start":{"line":525,"column":8},"end":{"line":525,"column":8}}]},"78":{"line":526,"type":"cond-expr","locations":[{"start":{"line":526,"column":26},"end":{"line":526,"column":42}},{"start":{"line":526,"column":45},"end":{"line":526,"column":65}}]},"79":{"line":526,"type":"binary-expr","locations":[{"start":{"line":526,"column":26},"end":{"line":526,"column":35}},{"start":{"line":526,"column":39},"end":{"line":526,"column":42}}]},"80":{"line":527,"type":"if","locations":[{"start":{"line":527,"column":12},"end":{"line":527,"column":12}},{"start":{"line":527,"column":12},"end":{"line":527,"column":12}}]},"81":{"line":538,"type":"if","locations":[{"start":{"line":538,"column":8},"end":{"line":538,"column":8}},{"start":{"line":538,"column":8},"end":{"line":538,"column":8}}]},"82":{"line":538,"type":"binary-expr","locations":[{"start":{"line":538,"column":12},"end":{"line":538,"column":15}},{"start":{"line":538,"column":19},"end":{"line":538,"column":44}}]},"83":{"line":561,"type":"if","locations":[{"start":{"line":561,"column":8},"end":{"line":561,"column":8}},{"start":{"line":561,"column":8},"end":{"line":561,"column":8}}]},"84":{"line":561,"type":"binary-expr","locations":[{"start":{"line":561,"column":12},"end":{"line":561,"column":34}},{"start":{"line":562,"column":17},"end":{"line":562,"column":44}},{"start":{"line":562,"column":48},"end":{"line":562,"column":77}}]},"85":{"line":578,"type":"if","locations":[{"start":{"line":578,"column":8},"end":{"line":578,"column":8}},{"start":{"line":578,"column":8},"end":{"line":578,"column":8}}]},"86":{"line":578,"type":"binary-expr","locations":[{"start":{"line":578,"column":12},"end":{"line":578,"column":34}},{"start":{"line":579,"column":17},"end":{"line":579,"column":44}},{"start":{"line":579,"column":48},"end":{"line":579,"column":77}}]},"87":{"line":649,"type":"if","locations":[{"start":{"line":649,"column":8},"end":{"line":649,"column":8}},{"start":{"line":649,"column":8},"end":{"line":649,"column":8}}]},"88":{"line":655,"type":"binary-expr","locations":[{"start":{"line":655,"column":15},"end":{"line":655,"column":23}},{"start":{"line":655,"column":27},"end":{"line":655,"column":36}}]},"89":{"line":682,"type":"if","locations":[{"start":{"line":682,"column":8},"end":{"line":682,"column":8}},{"start":{"line":682,"column":8},"end":{"line":682,"column":8}}]},"90":{"line":682,"type":"binary-expr","locations":[{"start":{"line":682,"column":12},"end":{"line":682,"column":16}},{"start":{"line":682,"column":20},"end":{"line":682,"column":35}}]},"91":{"line":686,"type":"if","locations":[{"start":{"line":686,"column":8},"end":{"line":686,"column":8}},{"start":{"line":686,"column":8},"end":{"line":686,"column":8}}]},"92":{"line":704,"type":"if","locations":[{"start":{"line":704,"column":8},"end":{"line":704,"column":8}},{"start":{"line":704,"column":8},"end":{"line":704,"column":8}}]},"93":{"line":719,"type":"if","locations":[{"start":{"line":719,"column":8},"end":{"line":719,"column":8}},{"start":{"line":719,"column":8},"end":{"line":719,"column":8}}]},"94":{"line":736,"type":"cond-expr","locations":[{"start":{"line":736,"column":42},"end":{"line":736,"column":52}},{"start":{"line":736,"column":55},"end":{"line":736,"column":62}}]},"95":{"line":741,"type":"if","locations":[{"start":{"line":741,"column":8},"end":{"line":741,"column":8}},{"start":{"line":741,"column":8},"end":{"line":741,"column":8}}]},"96":{"line":747,"type":"if","locations":[{"start":{"line":747,"column":8},"end":{"line":747,"column":8}},{"start":{"line":747,"column":8},"end":{"line":747,"column":8}}]},"97":{"line":750,"type":"if","locations":[{"start":{"line":750,"column":16},"end":{"line":750,"column":16}},{"start":{"line":750,"column":16},"end":{"line":750,"column":16}}]},"98":{"line":778,"type":"if","locations":[{"start":{"line":778,"column":8},"end":{"line":778,"column":8}},{"start":{"line":778,"column":8},"end":{"line":778,"column":8}}]},"99":{"line":778,"type":"binary-expr","locations":[{"start":{"line":778,"column":12},"end":{"line":778,"column":13}},{"start":{"line":778,"column":17},"end":{"line":778,"column":24}}]},"100":{"line":782,"type":"if","locations":[{"start":{"line":782,"column":8},"end":{"line":782,"column":8}},{"start":{"line":782,"column":8},"end":{"line":782,"column":8}}]},"101":{"line":782,"type":"binary-expr","locations":[{"start":{"line":782,"column":12},"end":{"line":782,"column":13}},{"start":{"line":782,"column":17},"end":{"line":782,"column":24}}]},"102":{"line":797,"type":"cond-expr","locations":[{"start":{"line":798,"column":8},"end":{"line":800,"column":9}},{"start":{"line":801,"column":8},"end":{"line":816,"column":9}}]},"103":{"line":807,"type":"if","locations":[{"start":{"line":807,"column":12},"end":{"line":807,"column":12}},{"start":{"line":807,"column":12},"end":{"line":807,"column":12}}]},"104":{"line":809,"type":"if","locations":[{"start":{"line":809,"column":19},"end":{"line":809,"column":19}},{"start":{"line":809,"column":19},"end":{"line":809,"column":19}}]},"105":{"line":821,"type":"binary-expr","locations":[{"start":{"line":821,"column":18},"end":{"line":821,"column":22}},{"start":{"line":821,"column":26},"end":{"line":821,"column":40}},{"start":{"line":822,"column":16},"end":{"line":822,"column":48}},{"start":{"line":823,"column":13},"end":{"line":823,"column":46}},{"start":{"line":824,"column":16},"end":{"line":824,"column":62}}]},"106":{"line":872,"type":"if","locations":[{"start":{"line":872,"column":4},"end":{"line":872,"column":4}},{"start":{"line":872,"column":4},"end":{"line":872,"column":4}}]},"107":{"line":873,"type":"if","locations":[{"start":{"line":873,"column":8},"end":{"line":873,"column":8}},{"start":{"line":873,"column":8},"end":{"line":873,"column":8}}]},"108":{"line":876,"type":"if","locations":[{"start":{"line":876,"column":15},"end":{"line":876,"column":15}},{"start":{"line":876,"column":15},"end":{"line":876,"column":15}}]},"109":{"line":876,"type":"binary-expr","locations":[{"start":{"line":876,"column":19},"end":{"line":876,"column":33}},{"start":{"line":876,"column":37},"end":{"line":876,"column":58}}]},"110":{"line":878,"type":"if","locations":[{"start":{"line":878,"column":15},"end":{"line":878,"column":15}},{"start":{"line":878,"column":15},"end":{"line":878,"column":15}}]},"111":{"line":880,"type":"if","locations":[{"start":{"line":880,"column":15},"end":{"line":880,"column":15}},{"start":{"line":880,"column":15},"end":{"line":880,"column":15}}]},"112":{"line":880,"type":"binary-expr","locations":[{"start":{"line":880,"column":19},"end":{"line":880,"column":27}},{"start":{"line":880,"column":31},"end":{"line":880,"column":45}}]},"113":{"line":882,"type":"if","locations":[{"start":{"line":882,"column":16},"end":{"line":882,"column":16}},{"start":{"line":882,"column":16},"end":{"line":882,"column":16}}]},"114":{"line":897,"type":"binary-expr","locations":[{"start":{"line":897,"column":18},"end":{"line":897,"column":23}},{"start":{"line":897,"column":27},"end":{"line":897,"column":29}}]},"115":{"line":911,"type":"cond-expr","locations":[{"start":{"line":911,"column":43},"end":{"line":911,"column":58}},{"start":{"line":911,"column":61},"end":{"line":911,"column":69}}]},"116":{"line":911,"type":"binary-expr","locations":[{"start":{"line":911,"column":12},"end":{"line":911,"column":20}},{"start":{"line":911,"column":24},"end":{"line":911,"column":39}}]},"117":{"line":916,"type":"if","locations":[{"start":{"line":916,"column":4},"end":{"line":916,"column":4}},{"start":{"line":916,"column":4},"end":{"line":916,"column":4}}]},"118":{"line":916,"type":"binary-expr","locations":[{"start":{"line":916,"column":8},"end":{"line":916,"column":13}},{"start":{"line":916,"column":17},"end":{"line":916,"column":29}}]},"119":{"line":917,"type":"binary-expr","locations":[{"start":{"line":917,"column":32},"end":{"line":917,"column":39}},{"start":{"line":917,"column":43},"end":{"line":917,"column":51}}]},"120":{"line":923,"type":"if","locations":[{"start":{"line":923,"column":4},"end":{"line":923,"column":4}},{"start":{"line":923,"column":4},"end":{"line":923,"column":4}}]},"121":{"line":923,"type":"binary-expr","locations":[{"start":{"line":923,"column":8},"end":{"line":923,"column":12}},{"start":{"line":923,"column":16},"end":{"line":923,"column":18}}]},"122":{"line":929,"type":"cond-expr","locations":[{"start":{"line":929,"column":68},"end":{"line":929,"column":78}},{"start":{"line":929,"column":81},"end":{"line":929,"column":88}}]},"123":{"line":929,"type":"binary-expr","locations":[{"start":{"line":929,"column":27},"end":{"line":929,"column":40}},{"start":{"line":929,"column":44},"end":{"line":929,"column":63}}]},"124":{"line":934,"type":"if","locations":[{"start":{"line":934,"column":16},"end":{"line":934,"column":16}},{"start":{"line":934,"column":16},"end":{"line":934,"column":16}}]},"125":{"line":937,"type":"binary-expr","locations":[{"start":{"line":937,"column":22},"end":{"line":937,"column":29}},{"start":{"line":937,"column":33},"end":{"line":937,"column":41}}]},"126":{"line":939,"type":"if","locations":[{"start":{"line":939,"column":16},"end":{"line":939,"column":16}},{"start":{"line":939,"column":16},"end":{"line":939,"column":16}}]},"127":{"line":939,"type":"binary-expr","locations":[{"start":{"line":939,"column":20},"end":{"line":939,"column":40}},{"start":{"line":939,"column":44},"end":{"line":939,"column":63}}]},"128":{"line":945,"type":"cond-expr","locations":[{"start":{"line":945,"column":32},"end":{"line":945,"column":35}},{"start":{"line":945,"column":38},"end":{"line":945,"column":42}}]},"129":{"line":952,"type":"if","locations":[{"start":{"line":952,"column":4},"end":{"line":952,"column":4}},{"start":{"line":952,"column":4},"end":{"line":952,"column":4}}]},"130":{"line":953,"type":"binary-expr","locations":[{"start":{"line":953,"column":18},"end":{"line":953,"column":25}},{"start":{"line":953,"column":29},"end":{"line":953,"column":33}}]},"131":{"line":964,"type":"if","locations":[{"start":{"line":964,"column":4},"end":{"line":964,"column":4}},{"start":{"line":964,"column":4},"end":{"line":964,"column":4}}]},"132":{"line":976,"type":"cond-expr","locations":[{"start":{"line":976,"column":29},"end":{"line":976,"column":31}},{"start":{"line":976,"column":34},"end":{"line":976,"column":38}}]},"133":{"line":980,"type":"if","locations":[{"start":{"line":980,"column":12},"end":{"line":980,"column":12}},{"start":{"line":980,"column":12},"end":{"line":980,"column":12}}]},"134":{"line":996,"type":"binary-expr","locations":[{"start":{"line":996,"column":22},"end":{"line":996,"column":33}},{"start":{"line":996,"column":37},"end":{"line":996,"column":39}}]},"135":{"line":1012,"type":"binary-expr","locations":[{"start":{"line":1012,"column":27},"end":{"line":1012,"column":34}},{"start":{"line":1012,"column":38},"end":{"line":1012,"column":42}}]},"136":{"line":1022,"type":"if","locations":[{"start":{"line":1022,"column":12},"end":{"line":1022,"column":12}},{"start":{"line":1022,"column":12},"end":{"line":1022,"column":12}}]},"137":{"line":1026,"type":"binary-expr","locations":[{"start":{"line":1026,"column":27},"end":{"line":1026,"column":34}},{"start":{"line":1026,"column":38},"end":{"line":1026,"column":46}}]},"138":{"line":1044,"type":"binary-expr","locations":[{"start":{"line":1044,"column":22},"end":{"line":1044,"column":29}},{"start":{"line":1044,"column":33},"end":{"line":1044,"column":37}}]},"139":{"line":1091,"type":"binary-expr","locations":[{"start":{"line":1091,"column":12},"end":{"line":1091,"column":13}},{"start":{"line":1091,"column":17},"end":{"line":1091,"column":18}}]},"140":{"line":1094,"type":"if","locations":[{"start":{"line":1094,"column":12},"end":{"line":1094,"column":12}},{"start":{"line":1094,"column":12},"end":{"line":1094,"column":12}}]},"141":{"line":1136,"type":"if","locations":[{"start":{"line":1136,"column":8},"end":{"line":1136,"column":8}},{"start":{"line":1136,"column":8},"end":{"line":1136,"column":8}}]},"142":{"line":1137,"type":"if","locations":[{"start":{"line":1137,"column":12},"end":{"line":1137,"column":12}},{"start":{"line":1137,"column":12},"end":{"line":1137,"column":12}}]},"143":{"line":1138,"type":"if","locations":[{"start":{"line":1138,"column":16},"end":{"line":1138,"column":16}},{"start":{"line":1138,"column":16},"end":{"line":1138,"column":16}}]},"144":{"line":1138,"type":"binary-expr","locations":[{"start":{"line":1138,"column":20},"end":{"line":1138,"column":25}},{"start":{"line":1138,"column":29},"end":{"line":1138,"column":37}},{"start":{"line":1138,"column":41},"end":{"line":1138,"column":63}}]},"145":{"line":1173,"type":"if","locations":[{"start":{"line":1173,"column":8},"end":{"line":1173,"column":8}},{"start":{"line":1173,"column":8},"end":{"line":1173,"column":8}}]},"146":{"line":1173,"type":"binary-expr","locations":[{"start":{"line":1173,"column":12},"end":{"line":1173,"column":17}},{"start":{"line":1173,"column":21},"end":{"line":1173,"column":29}}]},"147":{"line":1176,"type":"if","locations":[{"start":{"line":1176,"column":12},"end":{"line":1176,"column":12}},{"start":{"line":1176,"column":12},"end":{"line":1176,"column":12}}]},"148":{"line":1180,"type":"if","locations":[{"start":{"line":1180,"column":12},"end":{"line":1180,"column":12}},{"start":{"line":1180,"column":12},"end":{"line":1180,"column":12}}]},"149":{"line":1184,"type":"if","locations":[{"start":{"line":1184,"column":12},"end":{"line":1184,"column":12}},{"start":{"line":1184,"column":12},"end":{"line":1184,"column":12}}]},"150":{"line":1188,"type":"binary-expr","locations":[{"start":{"line":1188,"column":15},"end":{"line":1188,"column":18}},{"start":{"line":1188,"column":22},"end":{"line":1188,"column":30}}]},"151":{"line":1262,"type":"if","locations":[{"start":{"line":1262,"column":4},"end":{"line":1262,"column":4}},{"start":{"line":1262,"column":4},"end":{"line":1262,"column":4}}]},"152":{"line":1263,"type":"binary-expr","locations":[{"start":{"line":1263,"column":19},"end":{"line":1263,"column":52}},{"start":{"line":1263,"column":56},"end":{"line":1263,"column":73}}]},"153":{"line":1265,"type":"if","locations":[{"start":{"line":1265,"column":8},"end":{"line":1265,"column":8}},{"start":{"line":1265,"column":8},"end":{"line":1265,"column":8}}]},"154":{"line":1265,"type":"binary-expr","locations":[{"start":{"line":1265,"column":12},"end":{"line":1265,"column":15}},{"start":{"line":1265,"column":19},"end":{"line":1265,"column":31}}]},"155":{"line":1273,"type":"if","locations":[{"start":{"line":1273,"column":8},"end":{"line":1273,"column":8}},{"start":{"line":1273,"column":8},"end":{"line":1273,"column":8}}]},"156":{"line":1278,"type":"if","locations":[{"start":{"line":1278,"column":8},"end":{"line":1278,"column":8}},{"start":{"line":1278,"column":8},"end":{"line":1278,"column":8}}]},"157":{"line":1285,"type":"cond-expr","locations":[{"start":{"line":1285,"column":26},"end":{"line":1285,"column":36}},{"start":{"line":1285,"column":39},"end":{"line":1285,"column":42}}]},"158":{"line":1368,"type":"binary-expr","locations":[{"start":{"line":1368,"column":22},"end":{"line":1368,"column":31}},{"start":{"line":1368,"column":35},"end":{"line":1368,"column":45}},{"start":{"line":1368,"column":49},"end":{"line":1368,"column":52}}]},"159":{"line":1373,"type":"if","locations":[{"start":{"line":1373,"column":8},"end":{"line":1373,"column":8}},{"start":{"line":1373,"column":8},"end":{"line":1373,"column":8}}]},"160":{"line":1497,"type":"if","locations":[{"start":{"line":1497,"column":4},"end":{"line":1497,"column":4}},{"start":{"line":1497,"column":4},"end":{"line":1497,"column":4}}]}},"code":["(function () { YUI.add('node-core', function (Y, NAME) {","","/**"," * The Node Utility provides a DOM-like interface for interacting with DOM nodes."," * @module node"," * @main node"," * @submodule node-core"," */","","/**"," * The Node class provides a wrapper for manipulating DOM Nodes."," * Node properties can be accessed via the set/get methods."," * Use `Y.one()` to retrieve Node instances."," *"," * NOTE: Node properties are accessed using"," * the set and get methods."," *"," * @class Node"," * @constructor"," * @param {HTMLElement} node the DOM node to be mapped to the Node instance."," * @uses EventTarget"," */","","// \"globals\"","var DOT = '.',"," NODE_NAME = 'nodeName',"," NODE_TYPE = 'nodeType',"," OWNER_DOCUMENT = 'ownerDocument',"," TAG_NAME = 'tagName',"," UID = '_yuid',"," EMPTY_OBJ = {},",""," _slice = Array.prototype.slice,",""," Y_DOM = Y.DOM,",""," Y_Node = function(node) {"," if (!this.getDOMNode) { // support optional \"new\""," return new Y_Node(node);"," }",""," if (typeof node == 'string') {"," node = Y_Node._fromString(node);"," if (!node) {"," return null; // NOTE: return"," }"," }",""," var uid = (node.nodeType !== 9) ? node.uniqueID : node[UID];",""," if (uid && Y_Node._instances[uid] && Y_Node._instances[uid]._node !== node) {"," node[UID] = null; // unset existing uid to prevent collision (via clone or hack)"," }",""," uid = uid || Y.stamp(node);"," if (!uid) { // stamp failed; likely IE non-HTMLElement"," uid = Y.guid();"," }",""," this[UID] = uid;",""," /**"," * The underlying DOM node bound to the Y.Node instance"," * @property _node"," * @type HTMLElement"," * @private"," */"," this._node = node;",""," this._stateProxy = node; // when augmented with Attribute",""," if (this._initPlugins) { // when augmented with Plugin.Host"," this._initPlugins();"," }"," },",""," // used with previous/next/ancestor tests"," _wrapFn = function(fn) {"," var ret = null;"," if (fn) {"," ret = (typeof fn == 'string') ?"," function(n) {"," return Y.Selector.test(n, fn);"," } :"," function(n) {"," return fn(Y.one(n));"," };"," }",""," return ret;"," };","// end \"globals\"","","Y_Node.ATTRS = {};","Y_Node.DOM_EVENTS = {};","","Y_Node._fromString = function(node) {"," if (node) {"," if (node.indexOf('doc') === 0) { // doc OR document"," node = Y.config.doc;"," } else if (node.indexOf('win') === 0) { // win OR window"," node = Y.config.win;"," } else {"," node = Y.Selector.query(node, null, true);"," }"," }",""," return node || null;","};","","/**"," * The name of the component"," * @static"," * @type String"," * @property NAME"," */","Y_Node.NAME = 'node';","","/*"," * The pattern used to identify ARIA attributes"," */","Y_Node.re_aria = /^(?:role$|aria-)/;","","Y_Node.SHOW_TRANSITION = 'fadeIn';","Y_Node.HIDE_TRANSITION = 'fadeOut';","","/**"," * A list of Node instances that have been created"," * @private"," * @type Object"," * @property _instances"," * @static"," *"," */","Y_Node._instances = {};","","/**"," * Retrieves the DOM node bound to a Node instance"," * @method getDOMNode"," * @static"," *"," * @param {Node|HTMLElement} node The Node instance or an HTMLElement"," * @return {HTMLElement} The DOM node bound to the Node instance. If a DOM node is passed"," * as the node argument, it is simply returned."," */","Y_Node.getDOMNode = function(node) {"," if (node) {"," return (node.nodeType) ? node : node._node || null;"," }"," return null;","};","","/**"," * Checks Node return values and wraps DOM Nodes as Y.Node instances"," * and DOM Collections / Arrays as Y.NodeList instances."," * Other return values just pass thru. If undefined is returned (e.g. no return)"," * then the Node instance is returned for chainability."," * @method scrubVal"," * @static"," *"," * @param {HTMLElement|HTMLElement[]|Node} node The Node instance or an HTMLElement"," * @return {Node | NodeList | Any} Depends on what is returned from the DOM node."," */","Y_Node.scrubVal = function(val, node) {"," if (val) { // only truthy values are risky"," if (typeof val == 'object' || typeof val == 'function') { // safari nodeList === function"," if (NODE_TYPE in val || Y_DOM.isWindow(val)) {// node || window"," val = Y.one(val);"," } else if ((val.item && !val._nodes) || // dom collection or Node instance"," (val[0] && val[0][NODE_TYPE])) { // array of DOM Nodes"," val = Y.all(val);"," }"," }"," } else if (typeof val === 'undefined') {"," val = node; // for chaining"," } else if (val === null) {"," val = null; // IE: DOM null not the same as null"," }",""," return val;","};","","/**"," * Adds methods to the Y.Node prototype, routing through scrubVal."," * @method addMethod"," * @static"," *"," * @param {String} name The name of the method to add"," * @param {Function} fn The function that becomes the method"," * @param {Object} context An optional context to call the method with"," * (defaults to the Node instance)"," * @return {any} Depends on what is returned from the DOM node."," */","Y_Node.addMethod = function(name, fn, context) {"," if (name && fn && typeof fn == 'function') {"," Y_Node.prototype[name] = function() {"," var args = _slice.call(arguments),"," node = this,"," ret;",""," if (args[0] && args[0]._node) {"," args[0] = args[0]._node;"," }",""," if (args[1] && args[1]._node) {"," args[1] = args[1]._node;"," }"," args.unshift(node._node);",""," ret = fn.apply(context || node, args);",""," if (ret) { // scrub truthy"," ret = Y_Node.scrubVal(ret, node);"," }",""," (typeof ret != 'undefined') || (ret = node);"," return ret;"," };"," } else {"," }","};","","/**"," * Imports utility methods to be added as Y.Node methods."," * @method importMethod"," * @static"," *"," * @param {Object} host The object that contains the method to import."," * @param {String} name The name of the method to import"," * @param {String} altName An optional name to use in place of the host name"," * @param {Object} context An optional context to call the method with"," */","Y_Node.importMethod = function(host, name, altName) {"," if (typeof name == 'string') {"," altName = altName || name;"," Y_Node.addMethod(altName, host[name], host);"," } else {"," Y.Array.each(name, function(n) {"," Y_Node.importMethod(host, n);"," });"," }","};","","/**"," * Retrieves a NodeList based on the given CSS selector."," * @method all"," *"," * @param {string} selector The CSS selector to test against."," * @return {NodeList} A NodeList instance for the matching HTMLCollection/Array."," * @for YUI"," */","","/**"," * Returns a single Node instance bound to the node or the"," * first element matching the given selector. Returns null if no match found."," * Note: For chaining purposes you may want to"," * use Y.all, which returns a NodeList when no match is found."," * @method one"," * @param {String | HTMLElement} node a node or Selector"," * @return {Node | null} a Node instance or null if no match found."," * @for YUI"," */","","/**"," * Returns a single Node instance bound to the node or the"," * first element matching the given selector. Returns null if no match found."," * Note: For chaining purposes you may want to"," * use Y.all, which returns a NodeList when no match is found."," * @method one"," * @static"," * @param {String | HTMLElement} node a node or Selector"," * @return {Node | null} a Node instance or null if no match found."," * @for Node"," */","Y_Node.one = function(node) {"," var instance = null,"," cachedNode,"," uid;",""," if (node) {"," if (typeof node == 'string') {"," node = Y_Node._fromString(node);"," if (!node) {"," return null; // NOTE: return"," }"," } else if (node.getDOMNode) {"," return node; // NOTE: return"," }",""," if (node.nodeType || Y.DOM.isWindow(node)) { // avoid bad input (numbers, boolean, etc)"," uid = (node.uniqueID && node.nodeType !== 9) ? node.uniqueID : node._yuid;"," instance = Y_Node._instances[uid]; // reuse exising instances"," cachedNode = instance ? instance._node : null;"," if (!instance || (cachedNode && node !== cachedNode)) { // new Node when nodes don't match"," instance = new Y_Node(node);"," if (node.nodeType != 11) { // dont cache document fragment"," Y_Node._instances[instance[UID]] = instance; // cache node"," }"," }"," }"," }",""," return instance;","};","","/**"," * The default setter for DOM properties"," * Called with instance context (this === the Node instance)"," * @method DEFAULT_SETTER"," * @static"," * @param {String} name The attribute/property being set"," * @param {any} val The value to be set"," * @return {any} The value"," */","Y_Node.DEFAULT_SETTER = function(name, val) {"," var node = this._stateProxy,"," strPath;",""," if (name.indexOf(DOT) > -1) {"," strPath = name;"," name = name.split(DOT);"," // only allow when defined on node"," Y.Object.setValue(node, name, val);"," } else if (typeof node[name] != 'undefined') { // pass thru DOM properties"," node[name] = val;"," }",""," return val;","};","","/**"," * The default getter for DOM properties"," * Called with instance context (this === the Node instance)"," * @method DEFAULT_GETTER"," * @static"," * @param {String} name The attribute/property to look up"," * @return {any} The current value"," */","Y_Node.DEFAULT_GETTER = function(name) {"," var node = this._stateProxy,"," val;",""," if (name.indexOf && name.indexOf(DOT) > -1) {"," val = Y.Object.getValue(node, name.split(DOT));"," } else if (typeof node[name] != 'undefined') { // pass thru from DOM"," val = node[name];"," }",""," return val;","};","","Y.mix(Y_Node.prototype, {"," DATA_PREFIX: 'data-',",""," /**"," * The method called when outputting Node instances as strings"," * @method toString"," * @return {String} A string representation of the Node instance"," */"," toString: function() {"," var str = this[UID] + ': not bound to a node',"," node = this._node,"," attrs, id, className;",""," if (node) {"," attrs = node.attributes;"," id = (attrs && attrs.id) ? node.getAttribute('id') : null;"," className = (attrs && attrs.className) ? node.getAttribute('className') : null;"," str = node[NODE_NAME];",""," if (id) {"," str += '#' + id;"," }",""," if (className) {"," str += '.' + className.replace(' ', '.');"," }",""," // TODO: add yuid?"," str += ' ' + this[UID];"," }"," return str;"," },",""," /**"," * Returns an attribute value on the Node instance."," * Unless pre-configured (via `Node.ATTRS`), get hands"," * off to the underlying DOM node. Only valid"," * attributes/properties for the node will be queried."," * @method get"," * @param {String} attr The attribute"," * @return {any} The current value of the attribute"," */"," get: function(attr) {"," var val;",""," if (this._getAttr) { // use Attribute imple"," val = this._getAttr(attr);"," } else {"," val = this._get(attr);"," }",""," if (val) {"," val = Y_Node.scrubVal(val, this);"," } else if (val === null) {"," val = null; // IE: DOM null is not true null (even though they ===)"," }"," return val;"," },",""," /**"," * Helper method for get."," * @method _get"," * @private"," * @param {String} attr The attribute"," * @return {any} The current value of the attribute"," */"," _get: function(attr) {"," var attrConfig = Y_Node.ATTRS[attr],"," val;",""," if (attrConfig && attrConfig.getter) {"," val = attrConfig.getter.call(this);"," } else if (Y_Node.re_aria.test(attr)) {"," val = this._node.getAttribute(attr, 2);"," } else {"," val = Y_Node.DEFAULT_GETTER.apply(this, arguments);"," }",""," return val;"," },",""," /**"," * Sets an attribute on the Node instance."," * Unless pre-configured (via Node.ATTRS), set hands"," * off to the underlying DOM node. Only valid"," * attributes/properties for the node will be set."," * To set custom attributes use setAttribute."," * @method set"," * @param {String} attr The attribute to be set."," * @param {any} val The value to set the attribute to."," * @chainable"," */"," set: function(attr, val) {"," var attrConfig = Y_Node.ATTRS[attr];",""," if (this._setAttr) { // use Attribute imple"," this._setAttr.apply(this, arguments);"," } else { // use setters inline"," if (attrConfig && attrConfig.setter) {"," attrConfig.setter.call(this, val, attr);"," } else if (Y_Node.re_aria.test(attr)) { // special case Aria"," this._node.setAttribute(attr, val);"," } else {"," Y_Node.DEFAULT_SETTER.apply(this, arguments);"," }"," }",""," return this;"," },",""," /**"," * Sets multiple attributes."," * @method setAttrs"," * @param {Object} attrMap an object of name/value pairs to set"," * @chainable"," */"," setAttrs: function(attrMap) {"," if (this._setAttrs) { // use Attribute imple"," this._setAttrs(attrMap);"," } else { // use setters inline"," Y.Object.each(attrMap, function(v, n) {"," this.set(n, v);"," }, this);"," }",""," return this;"," },",""," /**"," * Returns an object containing the values for the requested attributes."," * @method getAttrs"," * @param {Array} attrs an array of attributes to get values"," * @return {Object} An object with attribute name/value pairs."," */"," getAttrs: function(attrs) {"," var ret = {};"," if (this._getAttrs) { // use Attribute imple"," this._getAttrs(attrs);"," } else { // use setters inline"," Y.Array.each(attrs, function(v, n) {"," ret[v] = this.get(v);"," }, this);"," }",""," return ret;"," },",""," /**"," * Compares nodes to determine if they match."," * Node instances can be compared to each other and/or HTMLElements."," * @method compareTo"," * @param {HTMLElement | Node} refNode The reference node to compare to the node."," * @return {Boolean} True if the nodes match, false if they do not."," */"," compareTo: function(refNode) {"," var node = this._node;",""," if (refNode && refNode._node) {"," refNode = refNode._node;"," }"," return node === refNode;"," },",""," /**"," * Determines whether the node is appended to the document."," * @method inDoc"," * @param {Node|HTMLElement} doc optional An optional document to check against."," * Defaults to current document."," * @return {Boolean} Whether or not this node is appended to the document."," */"," inDoc: function(doc) {"," var node = this._node;",""," if (node) {"," doc = (doc) ? doc._node || doc : node[OWNER_DOCUMENT];"," if (doc.documentElement) {"," return Y_DOM.contains(doc.documentElement, node);"," }"," }",""," return false;"," },",""," getById: function(id) {"," var node = this._node,"," ret = Y_DOM.byId(id, node[OWNER_DOCUMENT]);"," if (ret && Y_DOM.contains(node, ret)) {"," ret = Y.one(ret);"," } else {"," ret = null;"," }"," return ret;"," },",""," /**"," * Returns the nearest ancestor that passes the test applied by supplied boolean method."," * @method ancestor"," * @param {String | Function} fn A selector string or boolean method for testing elements."," * If a function is used, it receives the current node being tested as the only argument."," * If fn is not passed as an argument, the parent node will be returned."," * @param {Boolean} testSelf optional Whether or not to include the element in the scan"," * @param {String | Function} stopFn optional A selector string or boolean"," * method to indicate when the search should stop. The search bails when the function"," * returns true or the selector matches."," * If a function is used, it receives the current node being tested as the only argument."," * @return {Node} The matching Node instance or null if not found"," */"," ancestor: function(fn, testSelf, stopFn) {"," // testSelf is optional, check for stopFn as 2nd arg"," if (arguments.length === 2 &&"," (typeof testSelf == 'string' || typeof testSelf == 'function')) {"," stopFn = testSelf;"," }",""," return Y.one(Y_DOM.ancestor(this._node, _wrapFn(fn), testSelf, _wrapFn(stopFn)));"," },",""," /**"," * Returns the ancestors that pass the test applied by supplied boolean method."," * @method ancestors"," * @param {String | Function} fn A selector string or boolean method for testing elements."," * @param {Boolean} testSelf optional Whether or not to include the element in the scan"," * If a function is used, it receives the current node being tested as the only argument."," * @return {NodeList} A NodeList instance containing the matching elements"," */"," ancestors: function(fn, testSelf, stopFn) {"," if (arguments.length === 2 &&"," (typeof testSelf == 'string' || typeof testSelf == 'function')) {"," stopFn = testSelf;"," }"," return Y.all(Y_DOM.ancestors(this._node, _wrapFn(fn), testSelf, _wrapFn(stopFn)));"," },",""," /**"," * Returns the previous matching sibling."," * Returns the nearest element node sibling if no method provided."," * @method previous"," * @param {String | Function} fn A selector or boolean method for testing elements."," * If a function is used, it receives the current node being tested as the only argument."," * @param {Boolean} [all] Whether text nodes as well as element nodes should be returned, or"," * just element nodes will be returned(default)"," * @return {Node} Node instance or null if not found"," */"," previous: function(fn, all) {"," return Y.one(Y_DOM.elementByAxis(this._node, 'previousSibling', _wrapFn(fn), all));"," },",""," /**"," * Returns the next matching sibling."," * Returns the nearest element node sibling if no method provided."," * @method next"," * @param {String | Function} fn A selector or boolean method for testing elements."," * If a function is used, it receives the current node being tested as the only argument."," * @param {Boolean} [all] Whether text nodes as well as element nodes should be returned, or"," * just element nodes will be returned(default)"," * @return {Node} Node instance or null if not found"," */"," next: function(fn, all) {"," return Y.one(Y_DOM.elementByAxis(this._node, 'nextSibling', _wrapFn(fn), all));"," },",""," /**"," * Returns all matching siblings."," * Returns all siblings if no method provided."," * @method siblings"," * @param {String | Function} fn A selector or boolean method for testing elements."," * If a function is used, it receives the current node being tested as the only argument."," * @return {NodeList} NodeList instance bound to found siblings"," */"," siblings: function(fn) {"," return Y.all(Y_DOM.siblings(this._node, _wrapFn(fn)));"," },",""," /**"," * Retrieves a single Node instance, the first element matching the given"," * CSS selector."," * Returns null if no match found."," * @method one"," *"," * @param {string} selector The CSS selector to test against."," * @return {Node | null} A Node instance for the matching HTMLElement or null"," * if no match found."," */"," one: function(selector) {"," return Y.one(Y.Selector.query(selector, this._node, true));"," },",""," /**"," * Retrieves a NodeList based on the given CSS selector."," * @method all"," *"," * @param {string} selector The CSS selector to test against."," * @return {NodeList} A NodeList instance for the matching HTMLCollection/Array."," */"," all: function(selector) {"," var nodelist;",""," if (this._node) {"," nodelist = Y.all(Y.Selector.query(selector, this._node));"," nodelist._query = selector;"," nodelist._queryRoot = this._node;"," }",""," return nodelist || Y.all([]);"," },",""," // TODO: allow fn test"," /**"," * Test if the supplied node matches the supplied selector."," * @method test"," *"," * @param {string} selector The CSS selector to test against."," * @return {boolean} Whether or not the node matches the selector."," */"," test: function(selector) {"," return Y.Selector.test(this._node, selector);"," },",""," /**"," * Removes the node from its parent."," * Shortcut for myNode.get('parentNode').removeChild(myNode);"," * @method remove"," * @param {Boolean} destroy whether or not to call destroy() on the node"," * after removal."," * @chainable"," *"," */"," remove: function(destroy) {"," var node = this._node;",""," if (node && node.parentNode) {"," node.parentNode.removeChild(node);"," }",""," if (destroy) {"," this.destroy();"," }",""," return this;"," },",""," /**"," * Replace the node with the other node. This is a DOM update only"," * and does not change the node bound to the Node instance."," * Shortcut for myNode.get('parentNode').replaceChild(newNode, myNode);"," * @method replace"," * @param {Node | HTMLElement} newNode Node to be inserted"," * @chainable"," *"," */"," replace: function(newNode) {"," var node = this._node;"," if (typeof newNode == 'string') {"," newNode = Y_Node.create(newNode);"," }"," node.parentNode.replaceChild(Y_Node.getDOMNode(newNode), node);"," return this;"," },",""," /**"," * @method replaceChild"," * @for Node"," * @param {String | HTMLElement | Node} node Node to be inserted"," * @param {HTMLElement | Node} refNode Node to be replaced"," * @return {Node} The replaced node"," */"," replaceChild: function(node, refNode) {"," if (typeof node == 'string') {"," node = Y_DOM.create(node);"," }",""," return Y.one(this._node.replaceChild(Y_Node.getDOMNode(node), Y_Node.getDOMNode(refNode)));"," },",""," /**"," * Nulls internal node references, removes any plugins and event listeners."," * Note that destroy() will not remove the node from its parent or from the DOM. For that"," * functionality, call remove(true)."," * @method destroy"," * @param {Boolean} recursivePurge (optional) Whether or not to remove listeners from the"," * node's subtree (default is false)"," *"," */"," destroy: function(recursive) {"," var UID = Y.config.doc.uniqueID ? 'uniqueID' : '_yuid',"," instance;",""," this.purge(); // TODO: only remove events add via this Node",""," if (this.unplug) { // may not be a PluginHost"," this.unplug();"," }",""," this.clearData();",""," if (recursive) {"," Y.NodeList.each(this.all('*'), function(node) {"," instance = Y_Node._instances[node[UID]];"," if (instance) {"," instance.destroy();"," } else { // purge in case added by other means"," Y.Event.purgeElement(node);"," }"," });"," }",""," this._node = null;"," this._stateProxy = null;",""," delete Y_Node._instances[this._yuid];"," },",""," /**"," * Invokes a method on the Node instance"," * @method invoke"," * @param {String} method The name of the method to invoke"," * @param {any} [args*] Arguments to invoke the method with."," * @return {any} Whatever the underly method returns."," * DOM Nodes and Collections return values"," * are converted to Node/NodeList instances."," *"," */"," invoke: function(method, a, b, c, d, e) {"," var node = this._node,"," ret;",""," if (a && a._node) {"," a = a._node;"," }",""," if (b && b._node) {"," b = b._node;"," }",""," ret = node[method](a, b, c, d, e);"," return Y_Node.scrubVal(ret, this);"," },",""," /**"," * @method swap"," * @description Swap DOM locations with the given node."," * This does not change which DOM node each Node instance refers to."," * @param {Node} otherNode The node to swap with"," * @chainable"," */"," swap: Y.config.doc.documentElement.swapNode ?"," function(otherNode) {"," this._node.swapNode(Y_Node.getDOMNode(otherNode));"," } :"," function(otherNode) {"," otherNode = Y_Node.getDOMNode(otherNode);"," var node = this._node,"," parent = otherNode.parentNode,"," nextSibling = otherNode.nextSibling;",""," if (nextSibling === node) {"," parent.insertBefore(node, otherNode);"," } else if (otherNode === node.nextSibling) {"," parent.insertBefore(otherNode, node);"," } else {"," node.parentNode.replaceChild(otherNode, node);"," Y_DOM.addHTML(parent, node, nextSibling);"," }"," return this;"," },","",""," hasMethod: function(method) {"," var node = this._node;"," return !!(node && method in node &&"," typeof node[method] != 'unknown' &&"," (typeof node[method] == 'function' ||"," String(node[method]).indexOf('function') === 1)); // IE reports as object, prepends space"," },",""," isFragment: function() {"," return (this.get('nodeType') === 11);"," },",""," /**"," * Removes and destroys all of the nodes within the node."," * @method empty"," * @chainable"," */"," empty: function() {"," this.get('childNodes').remove().destroy(true);"," return this;"," },",""," /**"," * Returns the DOM node bound to the Node instance"," * @method getDOMNode"," * @return {HTMLElement}"," */"," getDOMNode: function() {"," return this._node;"," }","}, true);","","Y.Node = Y_Node;","Y.one = Y_Node.one;","/**"," * The NodeList module provides support for managing collections of Nodes."," * @module node"," * @submodule node-core"," */","","/**"," * The NodeList class provides a wrapper for manipulating DOM NodeLists."," * NodeList properties can be accessed via the set/get methods."," * Use Y.all() to retrieve NodeList instances."," *"," * @class NodeList"," * @constructor"," * @param nodes {String|element|Node|Array} A selector, DOM element, Node, list of DOM elements, or list of Nodes with which to populate this NodeList."," */","","var NodeList = function(nodes) {"," var tmp = [];",""," if (nodes) {"," if (typeof nodes === 'string') { // selector query"," this._query = nodes;"," nodes = Y.Selector.query(nodes);"," } else if (nodes.nodeType || Y_DOM.isWindow(nodes)) { // domNode || window"," nodes = [nodes];"," } else if (nodes._node) { // Y.Node"," nodes = [nodes._node];"," } else if (nodes[0] && nodes[0]._node) { // allow array of Y.Nodes"," Y.Array.each(nodes, function(node) {"," if (node._node) {"," tmp.push(node._node);"," }"," });"," nodes = tmp;"," } else { // array of domNodes or domNodeList (no mixed array of Y.Node/domNodes)"," nodes = Y.Array(nodes, 0, true);"," }"," }",""," /**"," * The underlying array of DOM nodes bound to the Y.NodeList instance"," * @property _nodes"," * @private"," */"," this._nodes = nodes || [];","};","","NodeList.NAME = 'NodeList';","","/**"," * Retrieves the DOM nodes bound to a NodeList instance"," * @method getDOMNodes"," * @static"," *"," * @param {NodeList} nodelist The NodeList instance"," * @return {Array} The array of DOM nodes bound to the NodeList"," */","NodeList.getDOMNodes = function(nodelist) {"," return (nodelist && nodelist._nodes) ? nodelist._nodes : nodelist;","};","","NodeList.each = function(instance, fn, context) {"," var nodes = instance._nodes;"," if (nodes && nodes.length) {"," Y.Array.each(nodes, fn, context || instance);"," } else {"," }","};","","NodeList.addMethod = function(name, fn, context) {"," if (name && fn) {"," NodeList.prototype[name] = function() {"," var ret = [],"," args = arguments;",""," Y.Array.each(this._nodes, function(node) {"," var UID = (node.uniqueID && node.nodeType !== 9 ) ? 'uniqueID' : '_yuid',"," instance = Y.Node._instances[node[UID]],"," ctx,"," result;",""," if (!instance) {"," instance = NodeList._getTempNode(node);"," }"," ctx = context || instance;"," result = fn.apply(ctx, args);"," if (result !== undefined && result !== instance) {"," ret[ret.length] = result;"," }"," });",""," // TODO: remove tmp pointer"," return ret.length ? ret : this;"," };"," } else {"," }","};","","NodeList.importMethod = function(host, name, altName) {"," if (typeof name === 'string') {"," altName = altName || name;"," NodeList.addMethod(name, host[name]);"," } else {"," Y.Array.each(name, function(n) {"," NodeList.importMethod(host, n);"," });"," }","};","","NodeList._getTempNode = function(node) {"," var tmp = NodeList._tempNode;"," if (!tmp) {"," tmp = Y.Node.create('
');"," NodeList._tempNode = tmp;"," }",""," tmp._node = node;"," tmp._stateProxy = node;"," return tmp;","};","","Y.mix(NodeList.prototype, {"," _invoke: function(method, args, getter) {"," var ret = (getter) ? [] : this;",""," this.each(function(node) {"," var val = node[method].apply(node, args);"," if (getter) {"," ret.push(val);"," }"," });",""," return ret;"," },",""," /**"," * Retrieves the Node instance at the given index."," * @method item"," *"," * @param {Number} index The index of the target Node."," * @return {Node} The Node instance at the given index."," */"," item: function(index) {"," return Y.one((this._nodes || [])[index]);"," },",""," /**"," * Applies the given function to each Node in the NodeList."," * @method each"," * @param {Function} fn The function to apply. It receives 3 arguments:"," * the current node instance, the node's index, and the NodeList instance"," * @param {Object} context optional An optional context to apply the function with"," * Default context is the current Node instance"," * @chainable"," */"," each: function(fn, context) {"," var instance = this;"," Y.Array.each(this._nodes, function(node, index) {"," node = Y.one(node);"," return fn.call(context || node, node, index, instance);"," });"," return instance;"," },",""," batch: function(fn, context) {"," var nodelist = this;",""," Y.Array.each(this._nodes, function(node, index) {"," var instance = Y.Node._instances[node[UID]];"," if (!instance) {"," instance = NodeList._getTempNode(node);"," }",""," return fn.call(context || instance, instance, index, nodelist);"," });"," return nodelist;"," },",""," /**"," * Executes the function once for each node until a true value is returned."," * @method some"," * @param {Function} fn The function to apply. It receives 3 arguments:"," * the current node instance, the node's index, and the NodeList instance"," * @param {Object} context optional An optional context to execute the function from."," * Default context is the current Node instance"," * @return {Boolean} Whether or not the function returned true for any node."," */"," some: function(fn, context) {"," var instance = this;"," return Y.Array.some(this._nodes, function(node, index) {"," node = Y.one(node);"," context = context || node;"," return fn.call(context, node, index, instance);"," });"," },",""," /**"," * Creates a documenFragment from the nodes bound to the NodeList instance"," * @method toFrag"," * @return {Node} a Node instance bound to the documentFragment"," */"," toFrag: function() {"," return Y.one(Y.DOM._nl2frag(this._nodes));"," },",""," /**"," * Returns the index of the node in the NodeList instance"," * or -1 if the node isn't found."," * @method indexOf"," * @param {Node | HTMLElement} node the node to search for"," * @return {Number} the index of the node value or -1 if not found"," */"," indexOf: function(node) {"," return Y.Array.indexOf(this._nodes, Y.Node.getDOMNode(node));"," },",""," /**"," * Filters the NodeList instance down to only nodes matching the given selector."," * @method filter"," * @param {String} selector The selector to filter against"," * @return {NodeList} NodeList containing the updated collection"," * @see Selector"," */"," filter: function(selector) {"," return Y.all(Y.Selector.filter(this._nodes, selector));"," },","",""," /**"," * Creates a new NodeList containing all nodes at every n indices, where"," * remainder n % index equals r."," * (zero-based index)."," * @method modulus"," * @param {Number} n The offset to use (return every nth node)"," * @param {Number} r An optional remainder to use with the modulus operation (defaults to zero)"," * @return {NodeList} NodeList containing the updated collection"," */"," modulus: function(n, r) {"," r = r || 0;"," var nodes = [];"," NodeList.each(this, function(node, i) {"," if (i % n === r) {"," nodes.push(node);"," }"," });",""," return Y.all(nodes);"," },",""," /**"," * Creates a new NodeList containing all nodes at odd indices"," * (zero-based index)."," * @method odd"," * @return {NodeList} NodeList containing the updated collection"," */"," odd: function() {"," return this.modulus(2, 1);"," },",""," /**"," * Creates a new NodeList containing all nodes at even indices"," * (zero-based index), including zero."," * @method even"," * @return {NodeList} NodeList containing the updated collection"," */"," even: function() {"," return this.modulus(2);"," },",""," destructor: function() {"," },",""," /**"," * Reruns the initial query, when created using a selector query"," * @method refresh"," * @chainable"," */"," refresh: function() {"," var doc,"," nodes = this._nodes,"," query = this._query,"," root = this._queryRoot;",""," if (query) {"," if (!root) {"," if (nodes && nodes[0] && nodes[0].ownerDocument) {"," root = nodes[0].ownerDocument;"," }"," }",""," this._nodes = Y.Selector.query(query, root);"," }",""," return this;"," },",""," /**"," * Returns the current number of items in the NodeList."," * @method size"," * @return {Number} The number of items in the NodeList."," */"," size: function() {"," return this._nodes.length;"," },",""," /**"," * Determines if the instance is bound to any nodes"," * @method isEmpty"," * @return {Boolean} Whether or not the NodeList is bound to any nodes"," */"," isEmpty: function() {"," return this._nodes.length < 1;"," },",""," toString: function() {"," var str = '',"," errorMsg = this[UID] + ': not bound to any nodes',"," nodes = this._nodes,"," node;",""," if (nodes && nodes[0]) {"," node = nodes[0];"," str += node[NODE_NAME];"," if (node.id) {"," str += '#' + node.id;"," }",""," if (node.className) {"," str += '.' + node.className.replace(' ', '.');"," }",""," if (nodes.length > 1) {"," str += '...[' + nodes.length + ' items]';"," }"," }"," return str || errorMsg;"," },",""," /**"," * Returns the DOM node bound to the Node instance"," * @method getDOMNodes"," * @return {Array}"," */"," getDOMNodes: function() {"," return this._nodes;"," }","}, true);","","NodeList.importMethod(Y.Node.prototype, ["," /**"," * Called on each Node instance. Nulls internal node references,"," * removes any plugins and event listeners"," * @method destroy"," * @param {Boolean} recursivePurge (optional) Whether or not to"," * remove listeners from the node's subtree (default is false)"," * @see Node.destroy"," */"," 'destroy',",""," /**"," * Called on each Node instance. Removes and destroys all of the nodes"," * within the node"," * @method empty"," * @chainable"," * @see Node.empty"," */"," 'empty',",""," /**"," * Called on each Node instance. Removes the node from its parent."," * Shortcut for myNode.get('parentNode').removeChild(myNode);"," * @method remove"," * @param {Boolean} destroy whether or not to call destroy() on the node"," * after removal."," * @chainable"," * @see Node.remove"," */"," 'remove',",""," /**"," * Called on each Node instance. Sets an attribute on the Node instance."," * Unless pre-configured (via Node.ATTRS), set hands"," * off to the underlying DOM node. Only valid"," * attributes/properties for the node will be set."," * To set custom attributes use setAttribute."," * @method set"," * @param {String} attr The attribute to be set."," * @param {any} val The value to set the attribute to."," * @chainable"," * @see Node.set"," */"," 'set'","]);","","// one-off implementation to convert array of Nodes to NodeList","// e.g. Y.all('input').get('parentNode');","","/** Called on each Node instance"," * @method get"," * @see Node"," */","NodeList.prototype.get = function(attr) {"," var ret = [],"," nodes = this._nodes,"," isNodeList = false,"," getTemp = NodeList._getTempNode,"," instance,"," val;",""," if (nodes[0]) {"," instance = Y.Node._instances[nodes[0]._yuid] || getTemp(nodes[0]);"," val = instance._get(attr);"," if (val && val.nodeType) {"," isNodeList = true;"," }"," }",""," Y.Array.each(nodes, function(node) {"," instance = Y.Node._instances[node._yuid];",""," if (!instance) {"," instance = getTemp(node);"," }",""," val = instance._get(attr);"," if (!isNodeList) { // convert array of Nodes to NodeList"," val = Y.Node.scrubVal(val, instance);"," }",""," ret.push(val);"," });",""," return (isNodeList) ? Y.all(ret) : ret;","};","","Y.NodeList = NodeList;","","Y.all = function(nodes) {"," return new NodeList(nodes);","};","","Y.Node.all = Y.all;","/**"," * @module node"," * @submodule node-core"," */","","var Y_NodeList = Y.NodeList,"," ArrayProto = Array.prototype,"," ArrayMethods = {"," /** Returns a new NodeList combining the given NodeList(s)"," * @for NodeList"," * @method concat"," * @param {NodeList | Array} valueN Arrays/NodeLists and/or values to"," * concatenate to the resulting NodeList"," * @return {NodeList} A new NodeList comprised of this NodeList joined with the input."," */"," 'concat': 1,"," /** Removes the last from the NodeList and returns it."," * @for NodeList"," * @method pop"," * @return {Node | null} The last item in the NodeList, or null if the list is empty."," */"," 'pop': 0,"," /** Adds the given Node(s) to the end of the NodeList."," * @for NodeList"," * @method push"," * @param {Node | HTMLElement} nodes One or more nodes to add to the end of the NodeList."," */"," 'push': 0,"," /** Removes the first item from the NodeList and returns it."," * @for NodeList"," * @method shift"," * @return {Node | null} The first item in the NodeList, or null if the NodeList is empty."," */"," 'shift': 0,"," /** Returns a new NodeList comprising the Nodes in the given range."," * @for NodeList"," * @method slice"," * @param {Number} begin Zero-based index at which to begin extraction."," As a negative index, start indicates an offset from the end of the sequence. slice(-2) extracts the second-to-last element and the last element in the sequence."," * @param {Number} end Zero-based index at which to end extraction. slice extracts up to but not including end."," slice(1,4) extracts the second element through the fourth element (elements indexed 1, 2, and 3)."," As a negative index, end indicates an offset from the end of the sequence. slice(2,-1) extracts the third element through the second-to-last element in the sequence."," If end is omitted, slice extracts to the end of the sequence."," * @return {NodeList} A new NodeList comprised of this NodeList joined with the input."," */"," 'slice': 1,"," /** Changes the content of the NodeList, adding new elements while removing old elements."," * @for NodeList"," * @method splice"," * @param {Number} index Index at which to start changing the array. If negative, will begin that many elements from the end."," * @param {Number} howMany An integer indicating the number of old array elements to remove. If howMany is 0, no elements are removed. In this case, you should specify at least one new element. If no howMany parameter is specified (second syntax above, which is a SpiderMonkey extension), all elements after index are removed."," * {Node | HTMLElement| element1, ..., elementN"," The elements to add to the array. If you don't specify any elements, splice simply removes elements from the array."," * @return {NodeList} The element(s) removed."," */"," 'splice': 1,"," /** Adds the given Node(s) to the beginning of the NodeList."," * @for NodeList"," * @method unshift"," * @param {Node | HTMLElement} nodes One or more nodes to add to the NodeList."," */"," 'unshift': 0"," };","","","Y.Object.each(ArrayMethods, function(returnNodeList, name) {"," Y_NodeList.prototype[name] = function() {"," var args = [],"," i = 0,"," arg,"," ret;",""," while (typeof (arg = arguments[i++]) != 'undefined') { // use DOM nodes/nodeLists"," args.push(arg._node || arg._nodes || arg);"," }",""," ret = ArrayProto[name].apply(this._nodes, args);",""," if (returnNodeList) {"," ret = Y.all(ret);"," } else {"," ret = Y.Node.scrubVal(ret);"," }",""," return ret;"," };","});","/**"," * @module node"," * @submodule node-core"," */","","Y.Array.each(["," /**"," * Passes through to DOM method."," * @for Node"," * @method removeChild"," * @param {HTMLElement | Node} node Node to be removed"," * @return {Node} The removed node"," */"," 'removeChild',",""," /**"," * Passes through to DOM method."," * @method hasChildNodes"," * @return {Boolean} Whether or not the node has any childNodes"," */"," 'hasChildNodes',",""," /**"," * Passes through to DOM method."," * @method cloneNode"," * @param {Boolean} deep Whether or not to perform a deep clone, which includes"," * subtree and attributes"," * @return {Node} The clone"," */"," 'cloneNode',",""," /**"," * Passes through to DOM method."," * @method hasAttribute"," * @param {String} attribute The attribute to test for"," * @return {Boolean} Whether or not the attribute is present"," */"," 'hasAttribute',",""," /**"," * Passes through to DOM method."," * @method scrollIntoView"," * @chainable"," */"," 'scrollIntoView',",""," /**"," * Passes through to DOM method."," * @method getElementsByTagName"," * @param {String} tagName The tagName to collect"," * @return {NodeList} A NodeList representing the HTMLCollection"," */"," 'getElementsByTagName',",""," /**"," * Passes through to DOM method."," * @method focus"," * @chainable"," */"," 'focus',",""," /**"," * Passes through to DOM method."," * @method blur"," * @chainable"," */"," 'blur',",""," /**"," * Passes through to DOM method."," * Only valid on FORM elements"," * @method submit"," * @chainable"," */"," 'submit',",""," /**"," * Passes through to DOM method."," * Only valid on FORM elements"," * @method reset"," * @chainable"," */"," 'reset',",""," /**"," * Passes through to DOM method."," * @method select"," * @chainable"," */"," 'select',",""," /**"," * Passes through to DOM method."," * Only valid on TABLE elements"," * @method createCaption"," * @chainable"," */"," 'createCaption'","","], function(method) {"," Y.Node.prototype[method] = function(arg1, arg2, arg3) {"," var ret = this.invoke(method, arg1, arg2, arg3);"," return ret;"," };","});","","/**"," * Passes through to DOM method."," * @method removeAttribute"," * @param {String} attribute The attribute to be removed"," * @chainable"," */"," // one-off implementation due to IE returning boolean, breaking chaining","Y.Node.prototype.removeAttribute = function(attr) {"," var node = this._node;"," if (node) {"," node.removeAttribute(attr, 0); // comma zero for IE < 8 to force case-insensitive"," }",""," return this;","};","","Y.Node.importMethod(Y.DOM, ["," /**"," * Determines whether the node is an ancestor of another HTML element in the DOM hierarchy."," * @method contains"," * @param {Node | HTMLElement} needle The possible node or descendent"," * @return {Boolean} Whether or not this node is the needle its ancestor"," */"," 'contains',"," /**"," * Allows setting attributes on DOM nodes, normalizing in some cases."," * This passes through to the DOM node, allowing for custom attributes."," * @method setAttribute"," * @for Node"," * @chainable"," * @param {string} name The attribute name"," * @param {string} value The value to set"," */"," 'setAttribute',"," /**"," * Allows getting attributes on DOM nodes, normalizing in some cases."," * This passes through to the DOM node, allowing for custom attributes."," * @method getAttribute"," * @for Node"," * @param {string} name The attribute name"," * @return {string} The attribute value"," */"," 'getAttribute',",""," /**"," * Wraps the given HTML around the node."," * @method wrap"," * @param {String} html The markup to wrap around the node."," * @chainable"," * @for Node"," */"," 'wrap',",""," /**"," * Removes the node's parent node."," * @method unwrap"," * @chainable"," */"," 'unwrap',",""," /**"," * Applies a unique ID to the node if none exists"," * @method generateID"," * @return {String} The existing or generated ID"," */"," 'generateID'","]);","","Y.NodeList.importMethod(Y.Node.prototype, [","/**"," * Allows getting attributes on DOM nodes, normalizing in some cases."," * This passes through to the DOM node, allowing for custom attributes."," * @method getAttribute"," * @see Node"," * @for NodeList"," * @param {string} name The attribute name"," * @return {string} The attribute value"," */",""," 'getAttribute',","/**"," * Allows setting attributes on DOM nodes, normalizing in some cases."," * This passes through to the DOM node, allowing for custom attributes."," * @method setAttribute"," * @see Node"," * @for NodeList"," * @chainable"," * @param {string} name The attribute name"," * @param {string} value The value to set"," */"," 'setAttribute',","","/**"," * Allows for removing attributes on DOM nodes."," * This passes through to the DOM node, allowing for custom attributes."," * @method removeAttribute"," * @see Node"," * @for NodeList"," * @param {string} name The attribute to remove"," */"," 'removeAttribute',","/**"," * Removes the parent node from node in the list."," * @method unwrap"," * @chainable"," */"," 'unwrap',","/**"," * Wraps the given HTML around each node."," * @method wrap"," * @param {String} html The markup to wrap around the node."," * @chainable"," */"," 'wrap',","","/**"," * Applies a unique ID to each node if none exists"," * @method generateID"," * @return {String} The existing or generated ID"," */"," 'generateID'","]);","","","}, '@VERSION@', {\"requires\": [\"dom-core\", \"selector\"]});","","}());"]}; + __coverage__['build/node-core/node-core.js'] = {"path":"build/node-core/node-core.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,"235":0,"236":0,"237":0,"238":0,"239":0,"240":0,"241":0,"242":0,"243":0,"244":0,"245":0,"246":0,"247":0,"248":0,"249":0,"250":0,"251":0,"252":0,"253":0,"254":0,"255":0,"256":0,"257":0,"258":0,"259":0,"260":0,"261":0,"262":0,"263":0,"264":0,"265":0,"266":0,"267":0,"268":0,"269":0,"270":0,"271":0,"272":0,"273":0,"274":0,"275":0,"276":0,"277":0,"278":0,"279":0,"280":0,"281":0,"282":0,"283":0,"284":0,"285":0,"286":0,"287":0,"288":0,"289":0,"290":0,"291":0,"292":0,"293":0,"294":0,"295":0,"296":0,"297":0,"298":0,"299":0,"300":0,"301":0,"302":0,"303":0,"304":0,"305":0,"306":0,"307":0,"308":0,"309":0,"310":0,"311":0,"312":0,"313":0,"314":0,"315":0,"316":0,"317":0,"318":0,"319":0,"320":0,"321":0,"322":0,"323":0,"324":0,"325":0,"326":0,"327":0,"328":0,"329":0,"330":0,"331":0,"332":0,"333":0,"334":0,"335":0,"336":0,"337":0,"338":0,"339":0,"340":0,"341":0,"342":0,"343":0,"344":0,"345":0,"346":0,"347":0,"348":0,"349":0,"350":0,"351":0,"352":0,"353":0,"354":0,"355":0,"356":0,"357":0,"358":0,"359":0,"360":0,"361":0,"362":0,"363":0,"364":0,"365":0,"366":0,"367":0,"368":0,"369":0,"370":0,"371":0,"372":0,"373":0,"374":0,"375":0,"376":0,"377":0,"378":0,"379":0,"380":0,"381":0,"382":0,"383":0,"384":0,"385":0,"386":0,"387":0,"388":0,"389":0,"390":0,"391":0,"392":0,"393":0,"394":0,"395":0,"396":0,"397":0,"398":0,"399":0,"400":0,"401":0,"402":0,"403":0,"404":0,"405":0,"406":0,"407":0,"408":0,"409":0,"410":0,"411":0,"412":0,"413":0,"414":0,"415":0,"416":0,"417":0,"418":0,"419":0,"420":0,"421":0,"422":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0,0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0],"26":[0,0,0,0],"27":[0,0],"28":[0,0],"29":[0,0],"30":[0,0,0],"31":[0,0],"32":[0,0],"33":[0,0],"34":[0,0],"35":[0,0],"36":[0,0],"37":[0,0],"38":[0,0],"39":[0,0],"40":[0,0],"41":[0,0],"42":[0,0],"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],"52":[0,0,0],"53":[0,0],"54":[0,0],"55":[0,0],"56":[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],"82":[0,0],"83":[0,0],"84":[0,0],"85":[0,0],"86":[0,0],"87":[0,0],"88":[0,0],"89":[0,0,0],"90":[0,0],"91":[0,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],"101":[0,0],"102":[0,0],"103":[0,0],"104":[0,0],"105":[0,0],"106":[0,0],"107":[0,0],"108":[0,0],"109":[0,0],"110":[0,0],"111":[0,0],"112":[0,0],"113":[0,0],"114":[0,0,0,0,0],"115":[0,0],"116":[0,0],"117":[0,0],"118":[0,0],"119":[0,0],"120":[0,0],"121":[0,0],"122":[0,0],"123":[0,0],"124":[0,0],"125":[0,0],"126":[0,0],"127":[0,0],"128":[0,0],"129":[0,0],"130":[0,0],"131":[0,0],"132":[0,0],"133":[0,0],"134":[0,0],"135":[0,0],"136":[0,0],"137":[0,0],"138":[0,0],"139":[0,0],"140":[0,0],"141":[0,0],"142":[0,0],"143":[0,0],"144":[0,0],"145":[0,0],"146":[0,0],"147":[0,0],"148":[0,0],"149":[0,0],"150":[0,0],"151":[0,0],"152":[0,0],"153":[0,0],"154":[0,0],"155":[0,0],"156":[0,0],"157":[0,0],"158":[0,0],"159":[0,0,0],"160":[0,0],"161":[0,0],"162":[0,0],"163":[0,0],"164":[0,0],"165":[0,0],"166":[0,0],"167":[0,0],"168":[0,0],"169":[0,0],"170":[0,0],"171":[0,0],"172":[0,0],"173":[0,0],"174":[0,0],"175":[0,0],"176":[0,0],"177":[0,0],"178":[0,0],"179":[0,0],"180":[0,0],"181":[0,0,0],"182":[0,0],"183":[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,"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},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":21},"end":{"line":1,"column":40}}},"2":{"name":"(anonymous_2)","line":39,"loc":{"start":{"line":39,"column":13},"end":{"line":39,"column":28}}},"3":{"name":"(anonymous_3)","line":80,"loc":{"start":{"line":80,"column":14},"end":{"line":80,"column":27}}},"4":{"name":"(anonymous_4)","line":84,"loc":{"start":{"line":84,"column":12},"end":{"line":84,"column":24}}},"5":{"name":"(anonymous_5)","line":87,"loc":{"start":{"line":87,"column":12},"end":{"line":87,"column":24}}},"6":{"name":"(anonymous_6)","line":99,"loc":{"start":{"line":99,"column":21},"end":{"line":99,"column":36}}},"7":{"name":"(anonymous_7)","line":151,"loc":{"start":{"line":151,"column":20},"end":{"line":151,"column":35}}},"8":{"name":"(anonymous_8)","line":169,"loc":{"start":{"line":169,"column":18},"end":{"line":169,"column":38}}},"9":{"name":"(anonymous_9)","line":199,"loc":{"start":{"line":199,"column":19},"end":{"line":199,"column":47}}},"10":{"name":"(anonymous_10)","line":201,"loc":{"start":{"line":201,"column":33},"end":{"line":201,"column":44}}},"11":{"name":"(anonymous_11)","line":238,"loc":{"start":{"line":238,"column":22},"end":{"line":238,"column":52}}},"12":{"name":"(anonymous_12)","line":243,"loc":{"start":{"line":243,"column":27},"end":{"line":243,"column":39}}},"13":{"name":"(anonymous_13)","line":280,"loc":{"start":{"line":280,"column":13},"end":{"line":280,"column":28}}},"14":{"name":"(anonymous_14)","line":331,"loc":{"start":{"line":331,"column":24},"end":{"line":331,"column":44}}},"15":{"name":"(anonymous_15)","line":355,"loc":{"start":{"line":355,"column":24},"end":{"line":355,"column":39}}},"16":{"name":"(anonymous_16)","line":376,"loc":{"start":{"line":376,"column":14},"end":{"line":376,"column":25}}},"17":{"name":"(anonymous_17)","line":410,"loc":{"start":{"line":410,"column":9},"end":{"line":410,"column":24}}},"18":{"name":"(anonymous_18)","line":434,"loc":{"start":{"line":434,"column":10},"end":{"line":434,"column":25}}},"19":{"name":"(anonymous_19)","line":460,"loc":{"start":{"line":460,"column":9},"end":{"line":460,"column":29}}},"20":{"name":"(anonymous_20)","line":484,"loc":{"start":{"line":484,"column":14},"end":{"line":484,"column":32}}},"21":{"name":"(anonymous_21)","line":488,"loc":{"start":{"line":488,"column":35},"end":{"line":488,"column":50}}},"22":{"name":"(anonymous_22)","line":502,"loc":{"start":{"line":502,"column":14},"end":{"line":502,"column":30}}},"23":{"name":"(anonymous_23)","line":507,"loc":{"start":{"line":507,"column":32},"end":{"line":507,"column":47}}},"24":{"name":"(anonymous_24)","line":522,"loc":{"start":{"line":522,"column":15},"end":{"line":522,"column":33}}},"25":{"name":"(anonymous_25)","line":538,"loc":{"start":{"line":538,"column":11},"end":{"line":538,"column":25}}},"26":{"name":"(anonymous_26)","line":551,"loc":{"start":{"line":551,"column":13},"end":{"line":551,"column":26}}},"27":{"name":"(anonymous_27)","line":575,"loc":{"start":{"line":575,"column":14},"end":{"line":575,"column":45}}},"28":{"name":"(anonymous_28)","line":593,"loc":{"start":{"line":593,"column":15},"end":{"line":593,"column":46}}},"29":{"name":"(anonymous_29)","line":611,"loc":{"start":{"line":611,"column":14},"end":{"line":611,"column":32}}},"30":{"name":"(anonymous_30)","line":625,"loc":{"start":{"line":625,"column":10},"end":{"line":625,"column":28}}},"31":{"name":"(anonymous_31)","line":637,"loc":{"start":{"line":637,"column":14},"end":{"line":637,"column":27}}},"32":{"name":"(anonymous_32)","line":651,"loc":{"start":{"line":651,"column":9},"end":{"line":651,"column":28}}},"33":{"name":"(anonymous_33)","line":662,"loc":{"start":{"line":662,"column":9},"end":{"line":662,"column":28}}},"34":{"name":"(anonymous_34)","line":682,"loc":{"start":{"line":682,"column":10},"end":{"line":682,"column":29}}},"35":{"name":"(anonymous_35)","line":695,"loc":{"start":{"line":695,"column":12},"end":{"line":695,"column":30}}},"36":{"name":"(anonymous_36)","line":718,"loc":{"start":{"line":718,"column":13},"end":{"line":718,"column":31}}},"37":{"name":"(anonymous_37)","line":734,"loc":{"start":{"line":734,"column":18},"end":{"line":734,"column":42}}},"38":{"name":"(anonymous_38)","line":751,"loc":{"start":{"line":751,"column":13},"end":{"line":751,"column":33}}},"39":{"name":"(anonymous_39)","line":764,"loc":{"start":{"line":764,"column":43},"end":{"line":764,"column":58}}},"40":{"name":"(anonymous_40)","line":800,"loc":{"start":{"line":800,"column":12},"end":{"line":800,"column":44}}},"41":{"name":"(anonymous_41)","line":824,"loc":{"start":{"line":824,"column":8},"end":{"line":824,"column":28}}},"42":{"name":"(anonymous_42)","line":827,"loc":{"start":{"line":827,"column":8},"end":{"line":827,"column":28}}},"43":{"name":"(anonymous_43)","line":845,"loc":{"start":{"line":845,"column":15},"end":{"line":845,"column":32}}},"44":{"name":"(anonymous_44)","line":853,"loc":{"start":{"line":853,"column":16},"end":{"line":853,"column":27}}},"45":{"name":"(anonymous_45)","line":862,"loc":{"start":{"line":862,"column":11},"end":{"line":862,"column":22}}},"46":{"name":"(anonymous_46)","line":872,"loc":{"start":{"line":872,"column":16},"end":{"line":872,"column":27}}},"47":{"name":"(anonymous_47)","line":895,"loc":{"start":{"line":895,"column":15},"end":{"line":895,"column":31}}},"48":{"name":"(anonymous_48)","line":907,"loc":{"start":{"line":907,"column":32},"end":{"line":907,"column":47}}},"49":{"name":"(anonymous_49)","line":936,"loc":{"start":{"line":936,"column":23},"end":{"line":936,"column":42}}},"50":{"name":"(anonymous_50)","line":940,"loc":{"start":{"line":940,"column":16},"end":{"line":940,"column":48}}},"51":{"name":"(anonymous_51)","line":948,"loc":{"start":{"line":948,"column":21},"end":{"line":948,"column":49}}},"52":{"name":"(anonymous_52)","line":950,"loc":{"start":{"line":950,"column":35},"end":{"line":950,"column":46}}},"53":{"name":"(anonymous_53)","line":954,"loc":{"start":{"line":954,"column":38},"end":{"line":954,"column":53}}},"54":{"name":"(anonymous_54)","line":984,"loc":{"start":{"line":984,"column":24},"end":{"line":984,"column":54}}},"55":{"name":"(anonymous_55)","line":989,"loc":{"start":{"line":989,"column":27},"end":{"line":989,"column":39}}},"56":{"name":"(anonymous_56)","line":995,"loc":{"start":{"line":995,"column":24},"end":{"line":995,"column":39}}},"57":{"name":"(anonymous_57)","line":1008,"loc":{"start":{"line":1008,"column":13},"end":{"line":1008,"column":44}}},"58":{"name":"(anonymous_58)","line":1011,"loc":{"start":{"line":1011,"column":18},"end":{"line":1011,"column":33}}},"59":{"name":"(anonymous_59)","line":1028,"loc":{"start":{"line":1028,"column":10},"end":{"line":1028,"column":26}}},"60":{"name":"(anonymous_60)","line":1041,"loc":{"start":{"line":1041,"column":10},"end":{"line":1041,"column":32}}},"61":{"name":"(anonymous_61)","line":1043,"loc":{"start":{"line":1043,"column":34},"end":{"line":1043,"column":56}}},"62":{"name":"(anonymous_62)","line":1050,"loc":{"start":{"line":1050,"column":11},"end":{"line":1050,"column":33}}},"63":{"name":"(anonymous_63)","line":1053,"loc":{"start":{"line":1053,"column":34},"end":{"line":1053,"column":56}}},"64":{"name":"(anonymous_64)","line":1082,"loc":{"start":{"line":1082,"column":10},"end":{"line":1082,"column":32}}},"65":{"name":"(anonymous_65)","line":1084,"loc":{"start":{"line":1084,"column":41},"end":{"line":1084,"column":63}}},"66":{"name":"(anonymous_66)","line":1096,"loc":{"start":{"line":1096,"column":12},"end":{"line":1096,"column":23}}},"67":{"name":"(anonymous_67)","line":1107,"loc":{"start":{"line":1107,"column":13},"end":{"line":1107,"column":28}}},"68":{"name":"(anonymous_68)","line":1118,"loc":{"start":{"line":1118,"column":12},"end":{"line":1118,"column":31}}},"69":{"name":"(anonymous_69)","line":1132,"loc":{"start":{"line":1132,"column":13},"end":{"line":1132,"column":28}}},"70":{"name":"(anonymous_70)","line":1135,"loc":{"start":{"line":1135,"column":28},"end":{"line":1135,"column":46}}},"71":{"name":"(anonymous_71)","line":1150,"loc":{"start":{"line":1150,"column":9},"end":{"line":1150,"column":20}}},"72":{"name":"(anonymous_72)","line":1160,"loc":{"start":{"line":1160,"column":10},"end":{"line":1160,"column":21}}},"73":{"name":"(anonymous_73)","line":1164,"loc":{"start":{"line":1164,"column":16},"end":{"line":1164,"column":27}}},"74":{"name":"(anonymous_74)","line":1172,"loc":{"start":{"line":1172,"column":13},"end":{"line":1172,"column":24}}},"75":{"name":"(anonymous_75)","line":1196,"loc":{"start":{"line":1196,"column":10},"end":{"line":1196,"column":21}}},"76":{"name":"(anonymous_76)","line":1205,"loc":{"start":{"line":1205,"column":13},"end":{"line":1205,"column":24}}},"77":{"name":"(anonymous_77)","line":1209,"loc":{"start":{"line":1209,"column":14},"end":{"line":1209,"column":25}}},"78":{"name":"(anonymous_78)","line":1238,"loc":{"start":{"line":1238,"column":17},"end":{"line":1238,"column":28}}},"79":{"name":"(anonymous_79)","line":1296,"loc":{"start":{"line":1296,"column":25},"end":{"line":1296,"column":40}}},"80":{"name":"(anonymous_80)","line":1320,"loc":{"start":{"line":1320,"column":24},"end":{"line":1320,"column":39}}},"81":{"name":"(anonymous_81)","line":1345,"loc":{"start":{"line":1345,"column":8},"end":{"line":1345,"column":24}}},"82":{"name":"(anonymous_82)","line":1415,"loc":{"start":{"line":1415,"column":28},"end":{"line":1415,"column":59}}},"83":{"name":"(anonymous_83)","line":1416,"loc":{"start":{"line":1416,"column":33},"end":{"line":1416,"column":44}}},"84":{"name":"(anonymous_84)","line":1536,"loc":{"start":{"line":1536,"column":3},"end":{"line":1536,"column":20}}},"85":{"name":"(anonymous_85)","line":1537,"loc":{"start":{"line":1537,"column":31},"end":{"line":1537,"column":58}}},"86":{"name":"(anonymous_86)","line":1550,"loc":{"start":{"line":1550,"column":35},"end":{"line":1550,"column":50}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1667,"column":56}},"2":{"start":{"line":25,"column":0},"end":{"line":93,"column":6}},"3":{"start":{"line":40,"column":8},"end":{"line":42,"column":9}},"4":{"start":{"line":41,"column":12},"end":{"line":41,"column":36}},"5":{"start":{"line":44,"column":8},"end":{"line":49,"column":9}},"6":{"start":{"line":45,"column":12},"end":{"line":45,"column":44}},"7":{"start":{"line":46,"column":12},"end":{"line":48,"column":13}},"8":{"start":{"line":47,"column":16},"end":{"line":47,"column":28}},"9":{"start":{"line":51,"column":8},"end":{"line":51,"column":68}},"10":{"start":{"line":53,"column":8},"end":{"line":55,"column":9}},"11":{"start":{"line":54,"column":12},"end":{"line":54,"column":29}},"12":{"start":{"line":57,"column":8},"end":{"line":57,"column":35}},"13":{"start":{"line":58,"column":8},"end":{"line":60,"column":9}},"14":{"start":{"line":59,"column":12},"end":{"line":59,"column":27}},"15":{"start":{"line":62,"column":8},"end":{"line":62,"column":24}},"16":{"start":{"line":70,"column":8},"end":{"line":70,"column":26}},"17":{"start":{"line":72,"column":8},"end":{"line":72,"column":32}},"18":{"start":{"line":74,"column":8},"end":{"line":76,"column":9}},"19":{"start":{"line":75,"column":12},"end":{"line":75,"column":32}},"20":{"start":{"line":81,"column":8},"end":{"line":81,"column":23}},"21":{"start":{"line":82,"column":8},"end":{"line":90,"column":9}},"22":{"start":{"line":83,"column":12},"end":{"line":89,"column":14}},"23":{"start":{"line":85,"column":16},"end":{"line":85,"column":46}},"24":{"start":{"line":88,"column":16},"end":{"line":88,"column":36}},"25":{"start":{"line":92,"column":8},"end":{"line":92,"column":19}},"26":{"start":{"line":96,"column":0},"end":{"line":96,"column":18}},"27":{"start":{"line":97,"column":0},"end":{"line":97,"column":23}},"28":{"start":{"line":99,"column":0},"end":{"line":111,"column":2}},"29":{"start":{"line":100,"column":4},"end":{"line":108,"column":5}},"30":{"start":{"line":101,"column":8},"end":{"line":107,"column":9}},"31":{"start":{"line":102,"column":12},"end":{"line":102,"column":32}},"32":{"start":{"line":103,"column":15},"end":{"line":107,"column":9}},"33":{"start":{"line":104,"column":12},"end":{"line":104,"column":32}},"34":{"start":{"line":106,"column":12},"end":{"line":106,"column":54}},"35":{"start":{"line":110,"column":4},"end":{"line":110,"column":24}},"36":{"start":{"line":119,"column":0},"end":{"line":119,"column":21}},"37":{"start":{"line":124,"column":0},"end":{"line":124,"column":36}},"38":{"start":{"line":126,"column":0},"end":{"line":126,"column":34}},"39":{"start":{"line":127,"column":0},"end":{"line":127,"column":35}},"40":{"start":{"line":138,"column":0},"end":{"line":140,"column":1}},"41":{"start":{"line":139,"column":4},"end":{"line":139,"column":27}},"42":{"start":{"line":151,"column":0},"end":{"line":156,"column":2}},"43":{"start":{"line":152,"column":4},"end":{"line":154,"column":5}},"44":{"start":{"line":153,"column":8},"end":{"line":153,"column":59}},"45":{"start":{"line":155,"column":4},"end":{"line":155,"column":16}},"46":{"start":{"line":169,"column":0},"end":{"line":186,"column":2}},"47":{"start":{"line":170,"column":4},"end":{"line":183,"column":5}},"48":{"start":{"line":171,"column":9},"end":{"line":178,"column":9}},"49":{"start":{"line":172,"column":12},"end":{"line":177,"column":13}},"50":{"start":{"line":173,"column":16},"end":{"line":173,"column":33}},"51":{"start":{"line":174,"column":19},"end":{"line":177,"column":13}},"52":{"start":{"line":176,"column":16},"end":{"line":176,"column":33}},"53":{"start":{"line":179,"column":11},"end":{"line":183,"column":5}},"54":{"start":{"line":180,"column":8},"end":{"line":180,"column":19}},"55":{"start":{"line":181,"column":11},"end":{"line":183,"column":5}},"56":{"start":{"line":182,"column":8},"end":{"line":182,"column":19}},"57":{"start":{"line":185,"column":4},"end":{"line":185,"column":15}},"58":{"start":{"line":199,"column":0},"end":{"line":226,"column":2}},"59":{"start":{"line":200,"column":4},"end":{"line":225,"column":5}},"60":{"start":{"line":201,"column":8},"end":{"line":223,"column":10}},"61":{"start":{"line":202,"column":12},"end":{"line":204,"column":20}},"62":{"start":{"line":206,"column":12},"end":{"line":208,"column":13}},"63":{"start":{"line":207,"column":16},"end":{"line":207,"column":40}},"64":{"start":{"line":210,"column":12},"end":{"line":212,"column":13}},"65":{"start":{"line":211,"column":16},"end":{"line":211,"column":40}},"66":{"start":{"line":213,"column":12},"end":{"line":213,"column":37}},"67":{"start":{"line":215,"column":12},"end":{"line":215,"column":50}},"68":{"start":{"line":217,"column":12},"end":{"line":219,"column":13}},"69":{"start":{"line":218,"column":16},"end":{"line":218,"column":49}},"70":{"start":{"line":221,"column":12},"end":{"line":221,"column":56}},"71":{"start":{"line":222,"column":12},"end":{"line":222,"column":23}},"72":{"start":{"line":238,"column":0},"end":{"line":247,"column":2}},"73":{"start":{"line":239,"column":4},"end":{"line":246,"column":5}},"74":{"start":{"line":240,"column":8},"end":{"line":240,"column":34}},"75":{"start":{"line":241,"column":8},"end":{"line":241,"column":52}},"76":{"start":{"line":243,"column":8},"end":{"line":245,"column":11}},"77":{"start":{"line":244,"column":12},"end":{"line":244,"column":41}},"78":{"start":{"line":280,"column":0},"end":{"line":320,"column":2}},"79":{"start":{"line":281,"column":4},"end":{"line":283,"column":12}},"80":{"start":{"line":285,"column":4},"end":{"line":317,"column":5}},"81":{"start":{"line":286,"column":8},"end":{"line":293,"column":9}},"82":{"start":{"line":287,"column":12},"end":{"line":287,"column":44}},"83":{"start":{"line":288,"column":12},"end":{"line":290,"column":13}},"84":{"start":{"line":289,"column":16},"end":{"line":289,"column":28}},"85":{"start":{"line":291,"column":15},"end":{"line":293,"column":9}},"86":{"start":{"line":292,"column":12},"end":{"line":292,"column":24}},"87":{"start":{"line":295,"column":8},"end":{"line":316,"column":9}},"88":{"start":{"line":296,"column":12},"end":{"line":296,"column":86}},"89":{"start":{"line":297,"column":12},"end":{"line":301,"column":13}},"90":{"start":{"line":298,"column":16},"end":{"line":298,"column":50}},"91":{"start":{"line":300,"column":16},"end":{"line":300,"column":79}},"92":{"start":{"line":302,"column":12},"end":{"line":302,"column":58}},"93":{"start":{"line":303,"column":12},"end":{"line":315,"column":13}},"94":{"start":{"line":304,"column":16},"end":{"line":304,"column":44}},"95":{"start":{"line":305,"column":16},"end":{"line":314,"column":17}},"96":{"start":{"line":306,"column":20},"end":{"line":313,"column":21}},"97":{"start":{"line":307,"column":24},"end":{"line":307,"column":68}},"98":{"start":{"line":309,"column":24},"end":{"line":311,"column":25}},"99":{"start":{"line":310,"column":28},"end":{"line":310,"column":53}},"100":{"start":{"line":312,"column":24},"end":{"line":312,"column":64}},"101":{"start":{"line":319,"column":4},"end":{"line":319,"column":20}},"102":{"start":{"line":331,"column":0},"end":{"line":345,"column":2}},"103":{"start":{"line":332,"column":4},"end":{"line":333,"column":16}},"104":{"start":{"line":335,"column":4},"end":{"line":342,"column":5}},"105":{"start":{"line":336,"column":8},"end":{"line":336,"column":23}},"106":{"start":{"line":337,"column":8},"end":{"line":337,"column":31}},"107":{"start":{"line":339,"column":8},"end":{"line":339,"column":43}},"108":{"start":{"line":340,"column":11},"end":{"line":342,"column":5}},"109":{"start":{"line":341,"column":8},"end":{"line":341,"column":25}},"110":{"start":{"line":344,"column":4},"end":{"line":344,"column":15}},"111":{"start":{"line":355,"column":0},"end":{"line":366,"column":2}},"112":{"start":{"line":356,"column":4},"end":{"line":357,"column":12}},"113":{"start":{"line":359,"column":4},"end":{"line":363,"column":5}},"114":{"start":{"line":360,"column":8},"end":{"line":360,"column":55}},"115":{"start":{"line":361,"column":11},"end":{"line":363,"column":5}},"116":{"start":{"line":362,"column":8},"end":{"line":362,"column":25}},"117":{"start":{"line":365,"column":4},"end":{"line":365,"column":15}},"118":{"start":{"line":368,"column":0},"end":{"line":875,"column":9}},"119":{"start":{"line":377,"column":8},"end":{"line":379,"column":33}},"120":{"start":{"line":381,"column":8},"end":{"line":397,"column":9}},"121":{"start":{"line":382,"column":12},"end":{"line":382,"column":36}},"122":{"start":{"line":383,"column":12},"end":{"line":383,"column":70}},"123":{"start":{"line":384,"column":12},"end":{"line":384,"column":91}},"124":{"start":{"line":385,"column":12},"end":{"line":385,"column":34}},"125":{"start":{"line":387,"column":12},"end":{"line":389,"column":13}},"126":{"start":{"line":388,"column":16},"end":{"line":388,"column":32}},"127":{"start":{"line":391,"column":12},"end":{"line":393,"column":13}},"128":{"start":{"line":392,"column":16},"end":{"line":392,"column":57}},"129":{"start":{"line":396,"column":12},"end":{"line":396,"column":35}},"130":{"start":{"line":398,"column":8},"end":{"line":398,"column":19}},"131":{"start":{"line":411,"column":8},"end":{"line":411,"column":16}},"132":{"start":{"line":413,"column":8},"end":{"line":417,"column":9}},"133":{"start":{"line":414,"column":12},"end":{"line":414,"column":38}},"134":{"start":{"line":416,"column":12},"end":{"line":416,"column":34}},"135":{"start":{"line":419,"column":8},"end":{"line":423,"column":9}},"136":{"start":{"line":420,"column":12},"end":{"line":420,"column":45}},"137":{"start":{"line":421,"column":15},"end":{"line":423,"column":9}},"138":{"start":{"line":422,"column":12},"end":{"line":422,"column":23}},"139":{"start":{"line":424,"column":8},"end":{"line":424,"column":19}},"140":{"start":{"line":435,"column":8},"end":{"line":436,"column":16}},"141":{"start":{"line":438,"column":8},"end":{"line":444,"column":9}},"142":{"start":{"line":439,"column":12},"end":{"line":439,"column":47}},"143":{"start":{"line":440,"column":15},"end":{"line":444,"column":9}},"144":{"start":{"line":441,"column":12},"end":{"line":441,"column":51}},"145":{"start":{"line":443,"column":12},"end":{"line":443,"column":63}},"146":{"start":{"line":446,"column":8},"end":{"line":446,"column":19}},"147":{"start":{"line":461,"column":8},"end":{"line":461,"column":44}},"148":{"start":{"line":463,"column":8},"end":{"line":473,"column":9}},"149":{"start":{"line":464,"column":12},"end":{"line":464,"column":49}},"150":{"start":{"line":466,"column":12},"end":{"line":472,"column":13}},"151":{"start":{"line":467,"column":16},"end":{"line":467,"column":56}},"152":{"start":{"line":468,"column":19},"end":{"line":472,"column":13}},"153":{"start":{"line":469,"column":16},"end":{"line":469,"column":51}},"154":{"start":{"line":471,"column":16},"end":{"line":471,"column":61}},"155":{"start":{"line":475,"column":8},"end":{"line":475,"column":20}},"156":{"start":{"line":485,"column":8},"end":{"line":491,"column":9}},"157":{"start":{"line":486,"column":12},"end":{"line":486,"column":36}},"158":{"start":{"line":488,"column":12},"end":{"line":490,"column":21}},"159":{"start":{"line":489,"column":16},"end":{"line":489,"column":31}},"160":{"start":{"line":493,"column":8},"end":{"line":493,"column":20}},"161":{"start":{"line":503,"column":8},"end":{"line":503,"column":21}},"162":{"start":{"line":504,"column":8},"end":{"line":510,"column":9}},"163":{"start":{"line":505,"column":12},"end":{"line":505,"column":34}},"164":{"start":{"line":507,"column":12},"end":{"line":509,"column":21}},"165":{"start":{"line":508,"column":16},"end":{"line":508,"column":37}},"166":{"start":{"line":512,"column":8},"end":{"line":512,"column":19}},"167":{"start":{"line":523,"column":8},"end":{"line":523,"column":30}},"168":{"start":{"line":525,"column":8},"end":{"line":527,"column":9}},"169":{"start":{"line":526,"column":12},"end":{"line":526,"column":36}},"170":{"start":{"line":528,"column":8},"end":{"line":528,"column":32}},"171":{"start":{"line":539,"column":8},"end":{"line":539,"column":30}},"172":{"start":{"line":541,"column":8},"end":{"line":546,"column":9}},"173":{"start":{"line":542,"column":12},"end":{"line":542,"column":66}},"174":{"start":{"line":543,"column":12},"end":{"line":545,"column":13}},"175":{"start":{"line":544,"column":16},"end":{"line":544,"column":65}},"176":{"start":{"line":548,"column":8},"end":{"line":548,"column":21}},"177":{"start":{"line":552,"column":8},"end":{"line":553,"column":55}},"178":{"start":{"line":554,"column":8},"end":{"line":558,"column":9}},"179":{"start":{"line":555,"column":12},"end":{"line":555,"column":29}},"180":{"start":{"line":557,"column":12},"end":{"line":557,"column":23}},"181":{"start":{"line":559,"column":8},"end":{"line":559,"column":19}},"182":{"start":{"line":577,"column":8},"end":{"line":580,"column":9}},"183":{"start":{"line":579,"column":12},"end":{"line":579,"column":30}},"184":{"start":{"line":582,"column":8},"end":{"line":582,"column":89}},"185":{"start":{"line":594,"column":8},"end":{"line":597,"column":9}},"186":{"start":{"line":596,"column":12},"end":{"line":596,"column":30}},"187":{"start":{"line":598,"column":8},"end":{"line":598,"column":90}},"188":{"start":{"line":612,"column":8},"end":{"line":612,"column":91}},"189":{"start":{"line":626,"column":8},"end":{"line":626,"column":87}},"190":{"start":{"line":638,"column":8},"end":{"line":638,"column":62}},"191":{"start":{"line":652,"column":8},"end":{"line":652,"column":67}},"192":{"start":{"line":663,"column":8},"end":{"line":663,"column":21}},"193":{"start":{"line":665,"column":8},"end":{"line":669,"column":9}},"194":{"start":{"line":666,"column":12},"end":{"line":666,"column":69}},"195":{"start":{"line":667,"column":12},"end":{"line":667,"column":39}},"196":{"start":{"line":668,"column":12},"end":{"line":668,"column":45}},"197":{"start":{"line":671,"column":8},"end":{"line":671,"column":37}},"198":{"start":{"line":683,"column":8},"end":{"line":683,"column":53}},"199":{"start":{"line":696,"column":8},"end":{"line":696,"column":30}},"200":{"start":{"line":698,"column":8},"end":{"line":700,"column":9}},"201":{"start":{"line":699,"column":12},"end":{"line":699,"column":46}},"202":{"start":{"line":702,"column":8},"end":{"line":704,"column":9}},"203":{"start":{"line":703,"column":12},"end":{"line":703,"column":27}},"204":{"start":{"line":706,"column":8},"end":{"line":706,"column":20}},"205":{"start":{"line":719,"column":8},"end":{"line":719,"column":30}},"206":{"start":{"line":720,"column":8},"end":{"line":722,"column":9}},"207":{"start":{"line":721,"column":12},"end":{"line":721,"column":45}},"208":{"start":{"line":723,"column":8},"end":{"line":723,"column":71}},"209":{"start":{"line":724,"column":8},"end":{"line":724,"column":20}},"210":{"start":{"line":735,"column":8},"end":{"line":737,"column":9}},"211":{"start":{"line":736,"column":12},"end":{"line":736,"column":38}},"212":{"start":{"line":739,"column":8},"end":{"line":739,"column":99}},"213":{"start":{"line":752,"column":8},"end":{"line":753,"column":21}},"214":{"start":{"line":755,"column":8},"end":{"line":755,"column":21}},"215":{"start":{"line":757,"column":8},"end":{"line":759,"column":9}},"216":{"start":{"line":758,"column":12},"end":{"line":758,"column":26}},"217":{"start":{"line":761,"column":8},"end":{"line":761,"column":25}},"218":{"start":{"line":763,"column":8},"end":{"line":776,"column":9}},"219":{"start":{"line":764,"column":12},"end":{"line":775,"column":15}},"220":{"start":{"line":765,"column":16},"end":{"line":769,"column":17}},"221":{"start":{"line":766,"column":20},"end":{"line":766,"column":60}},"222":{"start":{"line":768,"column":20},"end":{"line":768,"column":83}},"223":{"start":{"line":770,"column":16},"end":{"line":774,"column":17}},"224":{"start":{"line":771,"column":19},"end":{"line":771,"column":38}},"225":{"start":{"line":773,"column":20},"end":{"line":773,"column":47}},"226":{"start":{"line":778,"column":8},"end":{"line":780,"column":9}},"227":{"start":{"line":779,"column":12},"end":{"line":779,"column":54}},"228":{"start":{"line":782,"column":8},"end":{"line":782,"column":26}},"229":{"start":{"line":783,"column":8},"end":{"line":783,"column":32}},"230":{"start":{"line":785,"column":8},"end":{"line":787,"column":9}},"231":{"start":{"line":786,"column":12},"end":{"line":786,"column":49}},"232":{"start":{"line":801,"column":8},"end":{"line":802,"column":16}},"233":{"start":{"line":804,"column":8},"end":{"line":806,"column":9}},"234":{"start":{"line":805,"column":12},"end":{"line":805,"column":24}},"235":{"start":{"line":808,"column":8},"end":{"line":810,"column":9}},"236":{"start":{"line":809,"column":12},"end":{"line":809,"column":24}},"237":{"start":{"line":812,"column":8},"end":{"line":812,"column":42}},"238":{"start":{"line":813,"column":8},"end":{"line":813,"column":42}},"239":{"start":{"line":825,"column":12},"end":{"line":825,"column":62}},"240":{"start":{"line":828,"column":12},"end":{"line":828,"column":53}},"241":{"start":{"line":829,"column":12},"end":{"line":831,"column":52}},"242":{"start":{"line":833,"column":12},"end":{"line":840,"column":13}},"243":{"start":{"line":834,"column":16},"end":{"line":834,"column":53}},"244":{"start":{"line":835,"column":19},"end":{"line":840,"column":13}},"245":{"start":{"line":836,"column":16},"end":{"line":836,"column":53}},"246":{"start":{"line":838,"column":16},"end":{"line":838,"column":62}},"247":{"start":{"line":839,"column":16},"end":{"line":839,"column":57}},"248":{"start":{"line":841,"column":12},"end":{"line":841,"column":24}},"249":{"start":{"line":846,"column":8},"end":{"line":846,"column":30}},"250":{"start":{"line":847,"column":8},"end":{"line":850,"column":65}},"251":{"start":{"line":854,"column":8},"end":{"line":854,"column":45}},"252":{"start":{"line":863,"column":8},"end":{"line":863,"column":54}},"253":{"start":{"line":864,"column":8},"end":{"line":864,"column":20}},"254":{"start":{"line":873,"column":8},"end":{"line":873,"column":26}},"255":{"start":{"line":877,"column":0},"end":{"line":877,"column":16}},"256":{"start":{"line":878,"column":0},"end":{"line":878,"column":19}},"257":{"start":{"line":895,"column":0},"end":{"line":924,"column":2}},"258":{"start":{"line":896,"column":4},"end":{"line":896,"column":17}},"259":{"start":{"line":898,"column":4},"end":{"line":916,"column":5}},"260":{"start":{"line":899,"column":8},"end":{"line":915,"column":9}},"261":{"start":{"line":900,"column":12},"end":{"line":900,"column":32}},"262":{"start":{"line":901,"column":12},"end":{"line":901,"column":44}},"263":{"start":{"line":902,"column":15},"end":{"line":915,"column":9}},"264":{"start":{"line":903,"column":12},"end":{"line":903,"column":28}},"265":{"start":{"line":904,"column":15},"end":{"line":915,"column":9}},"266":{"start":{"line":905,"column":12},"end":{"line":905,"column":34}},"267":{"start":{"line":906,"column":15},"end":{"line":915,"column":9}},"268":{"start":{"line":907,"column":12},"end":{"line":911,"column":15}},"269":{"start":{"line":908,"column":16},"end":{"line":910,"column":17}},"270":{"start":{"line":909,"column":20},"end":{"line":909,"column":41}},"271":{"start":{"line":912,"column":12},"end":{"line":912,"column":24}},"272":{"start":{"line":914,"column":12},"end":{"line":914,"column":44}},"273":{"start":{"line":923,"column":4},"end":{"line":923,"column":30}},"274":{"start":{"line":926,"column":0},"end":{"line":926,"column":27}},"275":{"start":{"line":936,"column":0},"end":{"line":938,"column":2}},"276":{"start":{"line":937,"column":4},"end":{"line":937,"column":70}},"277":{"start":{"line":940,"column":0},"end":{"line":946,"column":2}},"278":{"start":{"line":941,"column":4},"end":{"line":941,"column":32}},"279":{"start":{"line":942,"column":4},"end":{"line":945,"column":5}},"280":{"start":{"line":943,"column":8},"end":{"line":943,"column":53}},"281":{"start":{"line":948,"column":0},"end":{"line":982,"column":2}},"282":{"start":{"line":949,"column":4},"end":{"line":981,"column":5}},"283":{"start":{"line":950,"column":8},"end":{"line":979,"column":10}},"284":{"start":{"line":951,"column":12},"end":{"line":952,"column":33}},"285":{"start":{"line":954,"column":12},"end":{"line":975,"column":15}},"286":{"start":{"line":955,"column":16},"end":{"line":958,"column":27}},"287":{"start":{"line":960,"column":16},"end":{"line":965,"column":17}},"288":{"start":{"line":961,"column":20},"end":{"line":961,"column":89}},"289":{"start":{"line":962,"column":20},"end":{"line":962,"column":60}},"290":{"start":{"line":964,"column":20},"end":{"line":964,"column":83}},"291":{"start":{"line":967,"column":16},"end":{"line":969,"column":17}},"292":{"start":{"line":968,"column":20},"end":{"line":968,"column":59}},"293":{"start":{"line":970,"column":16},"end":{"line":970,"column":42}},"294":{"start":{"line":971,"column":16},"end":{"line":971,"column":45}},"295":{"start":{"line":972,"column":16},"end":{"line":974,"column":17}},"296":{"start":{"line":973,"column":20},"end":{"line":973,"column":45}},"297":{"start":{"line":978,"column":12},"end":{"line":978,"column":43}},"298":{"start":{"line":984,"column":0},"end":{"line":993,"column":2}},"299":{"start":{"line":985,"column":4},"end":{"line":992,"column":5}},"300":{"start":{"line":986,"column":8},"end":{"line":986,"column":34}},"301":{"start":{"line":987,"column":8},"end":{"line":987,"column":45}},"302":{"start":{"line":989,"column":8},"end":{"line":991,"column":11}},"303":{"start":{"line":990,"column":12},"end":{"line":990,"column":43}},"304":{"start":{"line":995,"column":0},"end":{"line":1005,"column":2}},"305":{"start":{"line":996,"column":4},"end":{"line":996,"column":33}},"306":{"start":{"line":997,"column":4},"end":{"line":1000,"column":5}},"307":{"start":{"line":998,"column":8},"end":{"line":998,"column":43}},"308":{"start":{"line":999,"column":8},"end":{"line":999,"column":33}},"309":{"start":{"line":1002,"column":4},"end":{"line":1002,"column":21}},"310":{"start":{"line":1003,"column":4},"end":{"line":1003,"column":27}},"311":{"start":{"line":1004,"column":4},"end":{"line":1004,"column":15}},"312":{"start":{"line":1007,"column":0},"end":{"line":1241,"column":9}},"313":{"start":{"line":1009,"column":8},"end":{"line":1009,"column":39}},"314":{"start":{"line":1011,"column":8},"end":{"line":1016,"column":11}},"315":{"start":{"line":1012,"column":12},"end":{"line":1012,"column":53}},"316":{"start":{"line":1013,"column":12},"end":{"line":1015,"column":13}},"317":{"start":{"line":1014,"column":16},"end":{"line":1014,"column":30}},"318":{"start":{"line":1018,"column":8},"end":{"line":1018,"column":19}},"319":{"start":{"line":1029,"column":8},"end":{"line":1029,"column":49}},"320":{"start":{"line":1042,"column":8},"end":{"line":1042,"column":28}},"321":{"start":{"line":1043,"column":8},"end":{"line":1046,"column":11}},"322":{"start":{"line":1044,"column":12},"end":{"line":1044,"column":31}},"323":{"start":{"line":1045,"column":12},"end":{"line":1045,"column":67}},"324":{"start":{"line":1047,"column":8},"end":{"line":1047,"column":24}},"325":{"start":{"line":1051,"column":8},"end":{"line":1051,"column":28}},"326":{"start":{"line":1053,"column":8},"end":{"line":1069,"column":11}},"327":{"start":{"line":1054,"column":12},"end":{"line":1055,"column":25}},"328":{"start":{"line":1057,"column":12},"end":{"line":1062,"column":13}},"329":{"start":{"line":1058,"column":16},"end":{"line":1058,"column":85}},"330":{"start":{"line":1059,"column":16},"end":{"line":1059,"column":56}},"331":{"start":{"line":1061,"column":16},"end":{"line":1061,"column":79}},"332":{"start":{"line":1064,"column":12},"end":{"line":1066,"column":13}},"333":{"start":{"line":1065,"column":16},"end":{"line":1065,"column":55}},"334":{"start":{"line":1068,"column":12},"end":{"line":1068,"column":75}},"335":{"start":{"line":1070,"column":8},"end":{"line":1070,"column":24}},"336":{"start":{"line":1083,"column":8},"end":{"line":1083,"column":28}},"337":{"start":{"line":1084,"column":8},"end":{"line":1088,"column":11}},"338":{"start":{"line":1085,"column":12},"end":{"line":1085,"column":31}},"339":{"start":{"line":1086,"column":12},"end":{"line":1086,"column":38}},"340":{"start":{"line":1087,"column":12},"end":{"line":1087,"column":59}},"341":{"start":{"line":1097,"column":8},"end":{"line":1097,"column":50}},"342":{"start":{"line":1108,"column":8},"end":{"line":1108,"column":69}},"343":{"start":{"line":1119,"column":8},"end":{"line":1119,"column":63}},"344":{"start":{"line":1133,"column":8},"end":{"line":1133,"column":19}},"345":{"start":{"line":1134,"column":8},"end":{"line":1134,"column":23}},"346":{"start":{"line":1135,"column":8},"end":{"line":1139,"column":11}},"347":{"start":{"line":1136,"column":12},"end":{"line":1138,"column":13}},"348":{"start":{"line":1137,"column":16},"end":{"line":1137,"column":33}},"349":{"start":{"line":1141,"column":8},"end":{"line":1141,"column":28}},"350":{"start":{"line":1151,"column":8},"end":{"line":1151,"column":34}},"351":{"start":{"line":1161,"column":8},"end":{"line":1161,"column":31}},"352":{"start":{"line":1173,"column":8},"end":{"line":1176,"column":35}},"353":{"start":{"line":1178,"column":8},"end":{"line":1186,"column":9}},"354":{"start":{"line":1179,"column":12},"end":{"line":1183,"column":13}},"355":{"start":{"line":1180,"column":16},"end":{"line":1182,"column":17}},"356":{"start":{"line":1181,"column":20},"end":{"line":1181,"column":50}},"357":{"start":{"line":1185,"column":12},"end":{"line":1185,"column":56}},"358":{"start":{"line":1188,"column":8},"end":{"line":1188,"column":20}},"359":{"start":{"line":1197,"column":8},"end":{"line":1197,"column":34}},"360":{"start":{"line":1206,"column":8},"end":{"line":1206,"column":38}},"361":{"start":{"line":1210,"column":8},"end":{"line":1213,"column":17}},"362":{"start":{"line":1215,"column":8},"end":{"line":1229,"column":9}},"363":{"start":{"line":1216,"column":12},"end":{"line":1216,"column":28}},"364":{"start":{"line":1217,"column":12},"end":{"line":1217,"column":35}},"365":{"start":{"line":1218,"column":12},"end":{"line":1220,"column":13}},"366":{"start":{"line":1219,"column":16},"end":{"line":1219,"column":37}},"367":{"start":{"line":1222,"column":12},"end":{"line":1224,"column":13}},"368":{"start":{"line":1223,"column":16},"end":{"line":1223,"column":62}},"369":{"start":{"line":1226,"column":12},"end":{"line":1228,"column":13}},"370":{"start":{"line":1227,"column":16},"end":{"line":1227,"column":57}},"371":{"start":{"line":1230,"column":8},"end":{"line":1230,"column":31}},"372":{"start":{"line":1239,"column":8},"end":{"line":1239,"column":27}},"373":{"start":{"line":1243,"column":0},"end":{"line":1287,"column":3}},"374":{"start":{"line":1296,"column":0},"end":{"line":1341,"column":2}},"375":{"start":{"line":1297,"column":4},"end":{"line":1303,"column":12}},"376":{"start":{"line":1305,"column":4},"end":{"line":1318,"column":5}},"377":{"start":{"line":1306,"column":8},"end":{"line":1311,"column":9}},"378":{"start":{"line":1307,"column":12},"end":{"line":1307,"column":89}},"379":{"start":{"line":1308,"column":12},"end":{"line":1308,"column":56}},"380":{"start":{"line":1310,"column":12},"end":{"line":1310,"column":83}},"381":{"start":{"line":1312,"column":8},"end":{"line":1312,"column":49}},"382":{"start":{"line":1314,"column":8},"end":{"line":1314,"column":34}},"383":{"start":{"line":1315,"column":8},"end":{"line":1317,"column":9}},"384":{"start":{"line":1316,"column":12},"end":{"line":1316,"column":30}},"385":{"start":{"line":1320,"column":4},"end":{"line":1338,"column":7}},"386":{"start":{"line":1321,"column":8},"end":{"line":1326,"column":9}},"387":{"start":{"line":1322,"column":12},"end":{"line":1322,"column":81}},"388":{"start":{"line":1323,"column":12},"end":{"line":1323,"column":52}},"389":{"start":{"line":1325,"column":12},"end":{"line":1325,"column":75}},"390":{"start":{"line":1328,"column":8},"end":{"line":1330,"column":9}},"391":{"start":{"line":1329,"column":12},"end":{"line":1329,"column":37}},"392":{"start":{"line":1332,"column":8},"end":{"line":1332,"column":34}},"393":{"start":{"line":1333,"column":8},"end":{"line":1335,"column":9}},"394":{"start":{"line":1334,"column":12},"end":{"line":1334,"column":49}},"395":{"start":{"line":1337,"column":8},"end":{"line":1337,"column":22}},"396":{"start":{"line":1340,"column":4},"end":{"line":1340,"column":43}},"397":{"start":{"line":1343,"column":0},"end":{"line":1343,"column":22}},"398":{"start":{"line":1345,"column":0},"end":{"line":1347,"column":2}},"399":{"start":{"line":1346,"column":4},"end":{"line":1346,"column":31}},"400":{"start":{"line":1349,"column":0},"end":{"line":1349,"column":19}},"401":{"start":{"line":1355,"column":0},"end":{"line":1412,"column":6}},"402":{"start":{"line":1415,"column":0},"end":{"line":1436,"column":3}},"403":{"start":{"line":1416,"column":4},"end":{"line":1435,"column":6}},"404":{"start":{"line":1417,"column":8},"end":{"line":1420,"column":16}},"405":{"start":{"line":1422,"column":8},"end":{"line":1424,"column":9}},"406":{"start":{"line":1423,"column":12},"end":{"line":1423,"column":54}},"407":{"start":{"line":1426,"column":8},"end":{"line":1426,"column":56}},"408":{"start":{"line":1428,"column":8},"end":{"line":1432,"column":9}},"409":{"start":{"line":1429,"column":12},"end":{"line":1429,"column":29}},"410":{"start":{"line":1431,"column":12},"end":{"line":1431,"column":39}},"411":{"start":{"line":1434,"column":8},"end":{"line":1434,"column":19}},"412":{"start":{"line":1442,"column":0},"end":{"line":1541,"column":3}},"413":{"start":{"line":1537,"column":4},"end":{"line":1540,"column":6}},"414":{"start":{"line":1538,"column":8},"end":{"line":1538,"column":56}},"415":{"start":{"line":1539,"column":8},"end":{"line":1539,"column":19}},"416":{"start":{"line":1550,"column":0},"end":{"line":1557,"column":2}},"417":{"start":{"line":1551,"column":4},"end":{"line":1551,"column":26}},"418":{"start":{"line":1552,"column":4},"end":{"line":1554,"column":5}},"419":{"start":{"line":1553,"column":8},"end":{"line":1553,"column":38}},"420":{"start":{"line":1556,"column":4},"end":{"line":1556,"column":16}},"421":{"start":{"line":1559,"column":0},"end":{"line":1609,"column":3}},"422":{"start":{"line":1611,"column":0},"end":{"line":1664,"column":3}}},"branchMap":{"1":{"line":40,"type":"if","locations":[{"start":{"line":40,"column":8},"end":{"line":40,"column":8}},{"start":{"line":40,"column":8},"end":{"line":40,"column":8}}]},"2":{"line":44,"type":"if","locations":[{"start":{"line":44,"column":8},"end":{"line":44,"column":8}},{"start":{"line":44,"column":8},"end":{"line":44,"column":8}}]},"3":{"line":46,"type":"if","locations":[{"start":{"line":46,"column":12},"end":{"line":46,"column":12}},{"start":{"line":46,"column":12},"end":{"line":46,"column":12}}]},"4":{"line":51,"type":"cond-expr","locations":[{"start":{"line":51,"column":42},"end":{"line":51,"column":55}},{"start":{"line":51,"column":58},"end":{"line":51,"column":67}}]},"5":{"line":53,"type":"if","locations":[{"start":{"line":53,"column":8},"end":{"line":53,"column":8}},{"start":{"line":53,"column":8},"end":{"line":53,"column":8}}]},"6":{"line":53,"type":"binary-expr","locations":[{"start":{"line":53,"column":12},"end":{"line":53,"column":28}},{"start":{"line":53,"column":32},"end":{"line":53,"column":35}},{"start":{"line":53,"column":39},"end":{"line":53,"column":61}},{"start":{"line":53,"column":65},"end":{"line":53,"column":102}}]},"7":{"line":57,"type":"binary-expr","locations":[{"start":{"line":57,"column":14},"end":{"line":57,"column":17}},{"start":{"line":57,"column":21},"end":{"line":57,"column":34}}]},"8":{"line":58,"type":"if","locations":[{"start":{"line":58,"column":8},"end":{"line":58,"column":8}},{"start":{"line":58,"column":8},"end":{"line":58,"column":8}}]},"9":{"line":74,"type":"if","locations":[{"start":{"line":74,"column":8},"end":{"line":74,"column":8}},{"start":{"line":74,"column":8},"end":{"line":74,"column":8}}]},"10":{"line":82,"type":"if","locations":[{"start":{"line":82,"column":8},"end":{"line":82,"column":8}},{"start":{"line":82,"column":8},"end":{"line":82,"column":8}}]},"11":{"line":83,"type":"cond-expr","locations":[{"start":{"line":84,"column":12},"end":{"line":86,"column":13}},{"start":{"line":87,"column":12},"end":{"line":89,"column":13}}]},"12":{"line":100,"type":"if","locations":[{"start":{"line":100,"column":4},"end":{"line":100,"column":4}},{"start":{"line":100,"column":4},"end":{"line":100,"column":4}}]},"13":{"line":101,"type":"if","locations":[{"start":{"line":101,"column":8},"end":{"line":101,"column":8}},{"start":{"line":101,"column":8},"end":{"line":101,"column":8}}]},"14":{"line":103,"type":"if","locations":[{"start":{"line":103,"column":15},"end":{"line":103,"column":15}},{"start":{"line":103,"column":15},"end":{"line":103,"column":15}}]},"15":{"line":110,"type":"binary-expr","locations":[{"start":{"line":110,"column":11},"end":{"line":110,"column":15}},{"start":{"line":110,"column":19},"end":{"line":110,"column":23}}]},"16":{"line":138,"type":"if","locations":[{"start":{"line":138,"column":0},"end":{"line":138,"column":0}},{"start":{"line":138,"column":0},"end":{"line":138,"column":0}}]},"17":{"line":152,"type":"if","locations":[{"start":{"line":152,"column":4},"end":{"line":152,"column":4}},{"start":{"line":152,"column":4},"end":{"line":152,"column":4}}]},"18":{"line":153,"type":"cond-expr","locations":[{"start":{"line":153,"column":33},"end":{"line":153,"column":37}},{"start":{"line":153,"column":40},"end":{"line":153,"column":58}}]},"19":{"line":153,"type":"binary-expr","locations":[{"start":{"line":153,"column":40},"end":{"line":153,"column":50}},{"start":{"line":153,"column":54},"end":{"line":153,"column":58}}]},"20":{"line":170,"type":"if","locations":[{"start":{"line":170,"column":4},"end":{"line":170,"column":4}},{"start":{"line":170,"column":4},"end":{"line":170,"column":4}}]},"21":{"line":171,"type":"if","locations":[{"start":{"line":171,"column":9},"end":{"line":171,"column":9}},{"start":{"line":171,"column":9},"end":{"line":171,"column":9}}]},"22":{"line":171,"type":"binary-expr","locations":[{"start":{"line":171,"column":13},"end":{"line":171,"column":35}},{"start":{"line":171,"column":39},"end":{"line":171,"column":63}}]},"23":{"line":172,"type":"if","locations":[{"start":{"line":172,"column":12},"end":{"line":172,"column":12}},{"start":{"line":172,"column":12},"end":{"line":172,"column":12}}]},"24":{"line":172,"type":"binary-expr","locations":[{"start":{"line":172,"column":16},"end":{"line":172,"column":32}},{"start":{"line":172,"column":36},"end":{"line":172,"column":55}}]},"25":{"line":174,"type":"if","locations":[{"start":{"line":174,"column":19},"end":{"line":174,"column":19}},{"start":{"line":174,"column":19},"end":{"line":174,"column":19}}]},"26":{"line":174,"type":"binary-expr","locations":[{"start":{"line":174,"column":24},"end":{"line":174,"column":32}},{"start":{"line":174,"column":36},"end":{"line":174,"column":47}},{"start":{"line":175,"column":21},"end":{"line":175,"column":27}},{"start":{"line":175,"column":31},"end":{"line":175,"column":48}}]},"27":{"line":179,"type":"if","locations":[{"start":{"line":179,"column":11},"end":{"line":179,"column":11}},{"start":{"line":179,"column":11},"end":{"line":179,"column":11}}]},"28":{"line":181,"type":"if","locations":[{"start":{"line":181,"column":11},"end":{"line":181,"column":11}},{"start":{"line":181,"column":11},"end":{"line":181,"column":11}}]},"29":{"line":200,"type":"if","locations":[{"start":{"line":200,"column":4},"end":{"line":200,"column":4}},{"start":{"line":200,"column":4},"end":{"line":200,"column":4}}]},"30":{"line":200,"type":"binary-expr","locations":[{"start":{"line":200,"column":8},"end":{"line":200,"column":12}},{"start":{"line":200,"column":16},"end":{"line":200,"column":18}},{"start":{"line":200,"column":22},"end":{"line":200,"column":45}}]},"31":{"line":206,"type":"if","locations":[{"start":{"line":206,"column":12},"end":{"line":206,"column":12}},{"start":{"line":206,"column":12},"end":{"line":206,"column":12}}]},"32":{"line":206,"type":"binary-expr","locations":[{"start":{"line":206,"column":16},"end":{"line":206,"column":23}},{"start":{"line":206,"column":27},"end":{"line":206,"column":40}}]},"33":{"line":210,"type":"if","locations":[{"start":{"line":210,"column":12},"end":{"line":210,"column":12}},{"start":{"line":210,"column":12},"end":{"line":210,"column":12}}]},"34":{"line":210,"type":"binary-expr","locations":[{"start":{"line":210,"column":16},"end":{"line":210,"column":23}},{"start":{"line":210,"column":27},"end":{"line":210,"column":40}}]},"35":{"line":215,"type":"binary-expr","locations":[{"start":{"line":215,"column":27},"end":{"line":215,"column":34}},{"start":{"line":215,"column":38},"end":{"line":215,"column":42}}]},"36":{"line":217,"type":"if","locations":[{"start":{"line":217,"column":12},"end":{"line":217,"column":12}},{"start":{"line":217,"column":12},"end":{"line":217,"column":12}}]},"37":{"line":221,"type":"binary-expr","locations":[{"start":{"line":221,"column":13},"end":{"line":221,"column":38}},{"start":{"line":221,"column":44},"end":{"line":221,"column":54}}]},"38":{"line":239,"type":"if","locations":[{"start":{"line":239,"column":4},"end":{"line":239,"column":4}},{"start":{"line":239,"column":4},"end":{"line":239,"column":4}}]},"39":{"line":240,"type":"binary-expr","locations":[{"start":{"line":240,"column":18},"end":{"line":240,"column":25}},{"start":{"line":240,"column":29},"end":{"line":240,"column":33}}]},"40":{"line":285,"type":"if","locations":[{"start":{"line":285,"column":4},"end":{"line":285,"column":4}},{"start":{"line":285,"column":4},"end":{"line":285,"column":4}}]},"41":{"line":286,"type":"if","locations":[{"start":{"line":286,"column":8},"end":{"line":286,"column":8}},{"start":{"line":286,"column":8},"end":{"line":286,"column":8}}]},"42":{"line":288,"type":"if","locations":[{"start":{"line":288,"column":12},"end":{"line":288,"column":12}},{"start":{"line":288,"column":12},"end":{"line":288,"column":12}}]},"43":{"line":291,"type":"if","locations":[{"start":{"line":291,"column":15},"end":{"line":291,"column":15}},{"start":{"line":291,"column":15},"end":{"line":291,"column":15}}]},"44":{"line":295,"type":"if","locations":[{"start":{"line":295,"column":8},"end":{"line":295,"column":8}},{"start":{"line":295,"column":8},"end":{"line":295,"column":8}}]},"45":{"line":295,"type":"binary-expr","locations":[{"start":{"line":295,"column":12},"end":{"line":295,"column":25}},{"start":{"line":295,"column":29},"end":{"line":295,"column":49}}]},"46":{"line":296,"type":"cond-expr","locations":[{"start":{"line":296,"column":59},"end":{"line":296,"column":72}},{"start":{"line":296,"column":75},"end":{"line":296,"column":85}}]},"47":{"line":296,"type":"binary-expr","locations":[{"start":{"line":296,"column":19},"end":{"line":296,"column":32}},{"start":{"line":296,"column":36},"end":{"line":296,"column":55}}]},"48":{"line":297,"type":"if","locations":[{"start":{"line":297,"column":12},"end":{"line":297,"column":12}},{"start":{"line":297,"column":12},"end":{"line":297,"column":12}}]},"49":{"line":300,"type":"binary-expr","locations":[{"start":{"line":300,"column":27},"end":{"line":300,"column":46}},{"start":{"line":300,"column":50},"end":{"line":300,"column":78}}]},"50":{"line":302,"type":"cond-expr","locations":[{"start":{"line":302,"column":36},"end":{"line":302,"column":50}},{"start":{"line":302,"column":53},"end":{"line":302,"column":57}}]},"51":{"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}}]},"52":{"line":303,"type":"binary-expr","locations":[{"start":{"line":303,"column":16},"end":{"line":303,"column":25}},{"start":{"line":303,"column":30},"end":{"line":303,"column":40}},{"start":{"line":303,"column":44},"end":{"line":303,"column":63}}]},"53":{"line":305,"type":"if","locations":[{"start":{"line":305,"column":16},"end":{"line":305,"column":16}},{"start":{"line":305,"column":16},"end":{"line":305,"column":16}}]},"54":{"line":306,"type":"if","locations":[{"start":{"line":306,"column":20},"end":{"line":306,"column":20}},{"start":{"line":306,"column":20},"end":{"line":306,"column":20}}]},"55":{"line":309,"type":"if","locations":[{"start":{"line":309,"column":24},"end":{"line":309,"column":24}},{"start":{"line":309,"column":24},"end":{"line":309,"column":24}}]},"56":{"line":335,"type":"if","locations":[{"start":{"line":335,"column":4},"end":{"line":335,"column":4}},{"start":{"line":335,"column":4},"end":{"line":335,"column":4}}]},"57":{"line":340,"type":"if","locations":[{"start":{"line":340,"column":11},"end":{"line":340,"column":11}},{"start":{"line":340,"column":11},"end":{"line":340,"column":11}}]},"58":{"line":359,"type":"if","locations":[{"start":{"line":359,"column":4},"end":{"line":359,"column":4}},{"start":{"line":359,"column":4},"end":{"line":359,"column":4}}]},"59":{"line":359,"type":"binary-expr","locations":[{"start":{"line":359,"column":8},"end":{"line":359,"column":20}},{"start":{"line":359,"column":24},"end":{"line":359,"column":46}}]},"60":{"line":361,"type":"if","locations":[{"start":{"line":361,"column":11},"end":{"line":361,"column":11}},{"start":{"line":361,"column":11},"end":{"line":361,"column":11}}]},"61":{"line":381,"type":"if","locations":[{"start":{"line":381,"column":8},"end":{"line":381,"column":8}},{"start":{"line":381,"column":8},"end":{"line":381,"column":8}}]},"62":{"line":383,"type":"cond-expr","locations":[{"start":{"line":383,"column":39},"end":{"line":383,"column":62}},{"start":{"line":383,"column":65},"end":{"line":383,"column":69}}]},"63":{"line":383,"type":"binary-expr","locations":[{"start":{"line":383,"column":18},"end":{"line":383,"column":23}},{"start":{"line":383,"column":27},"end":{"line":383,"column":35}}]},"64":{"line":384,"type":"cond-expr","locations":[{"start":{"line":384,"column":53},"end":{"line":384,"column":83}},{"start":{"line":384,"column":86},"end":{"line":384,"column":90}}]},"65":{"line":384,"type":"binary-expr","locations":[{"start":{"line":384,"column":25},"end":{"line":384,"column":30}},{"start":{"line":384,"column":34},"end":{"line":384,"column":49}}]},"66":{"line":387,"type":"if","locations":[{"start":{"line":387,"column":12},"end":{"line":387,"column":12}},{"start":{"line":387,"column":12},"end":{"line":387,"column":12}}]},"67":{"line":391,"type":"if","locations":[{"start":{"line":391,"column":12},"end":{"line":391,"column":12}},{"start":{"line":391,"column":12},"end":{"line":391,"column":12}}]},"68":{"line":413,"type":"if","locations":[{"start":{"line":413,"column":8},"end":{"line":413,"column":8}},{"start":{"line":413,"column":8},"end":{"line":413,"column":8}}]},"69":{"line":419,"type":"if","locations":[{"start":{"line":419,"column":8},"end":{"line":419,"column":8}},{"start":{"line":419,"column":8},"end":{"line":419,"column":8}}]},"70":{"line":421,"type":"if","locations":[{"start":{"line":421,"column":15},"end":{"line":421,"column":15}},{"start":{"line":421,"column":15},"end":{"line":421,"column":15}}]},"71":{"line":438,"type":"if","locations":[{"start":{"line":438,"column":8},"end":{"line":438,"column":8}},{"start":{"line":438,"column":8},"end":{"line":438,"column":8}}]},"72":{"line":438,"type":"binary-expr","locations":[{"start":{"line":438,"column":12},"end":{"line":438,"column":22}},{"start":{"line":438,"column":26},"end":{"line":438,"column":43}}]},"73":{"line":440,"type":"if","locations":[{"start":{"line":440,"column":15},"end":{"line":440,"column":15}},{"start":{"line":440,"column":15},"end":{"line":440,"column":15}}]},"74":{"line":463,"type":"if","locations":[{"start":{"line":463,"column":8},"end":{"line":463,"column":8}},{"start":{"line":463,"column":8},"end":{"line":463,"column":8}}]},"75":{"line":466,"type":"if","locations":[{"start":{"line":466,"column":12},"end":{"line":466,"column":12}},{"start":{"line":466,"column":12},"end":{"line":466,"column":12}}]},"76":{"line":466,"type":"binary-expr","locations":[{"start":{"line":466,"column":16},"end":{"line":466,"column":26}},{"start":{"line":466,"column":30},"end":{"line":466,"column":47}}]},"77":{"line":468,"type":"if","locations":[{"start":{"line":468,"column":19},"end":{"line":468,"column":19}},{"start":{"line":468,"column":19},"end":{"line":468,"column":19}}]},"78":{"line":485,"type":"if","locations":[{"start":{"line":485,"column":8},"end":{"line":485,"column":8}},{"start":{"line":485,"column":8},"end":{"line":485,"column":8}}]},"79":{"line":504,"type":"if","locations":[{"start":{"line":504,"column":8},"end":{"line":504,"column":8}},{"start":{"line":504,"column":8},"end":{"line":504,"column":8}}]},"80":{"line":525,"type":"if","locations":[{"start":{"line":525,"column":8},"end":{"line":525,"column":8}},{"start":{"line":525,"column":8},"end":{"line":525,"column":8}}]},"81":{"line":525,"type":"binary-expr","locations":[{"start":{"line":525,"column":12},"end":{"line":525,"column":19}},{"start":{"line":525,"column":23},"end":{"line":525,"column":36}}]},"82":{"line":541,"type":"if","locations":[{"start":{"line":541,"column":8},"end":{"line":541,"column":8}},{"start":{"line":541,"column":8},"end":{"line":541,"column":8}}]},"83":{"line":542,"type":"cond-expr","locations":[{"start":{"line":542,"column":26},"end":{"line":542,"column":42}},{"start":{"line":542,"column":45},"end":{"line":542,"column":65}}]},"84":{"line":542,"type":"binary-expr","locations":[{"start":{"line":542,"column":26},"end":{"line":542,"column":35}},{"start":{"line":542,"column":39},"end":{"line":542,"column":42}}]},"85":{"line":543,"type":"if","locations":[{"start":{"line":543,"column":12},"end":{"line":543,"column":12}},{"start":{"line":543,"column":12},"end":{"line":543,"column":12}}]},"86":{"line":554,"type":"if","locations":[{"start":{"line":554,"column":8},"end":{"line":554,"column":8}},{"start":{"line":554,"column":8},"end":{"line":554,"column":8}}]},"87":{"line":554,"type":"binary-expr","locations":[{"start":{"line":554,"column":12},"end":{"line":554,"column":15}},{"start":{"line":554,"column":19},"end":{"line":554,"column":44}}]},"88":{"line":577,"type":"if","locations":[{"start":{"line":577,"column":8},"end":{"line":577,"column":8}},{"start":{"line":577,"column":8},"end":{"line":577,"column":8}}]},"89":{"line":577,"type":"binary-expr","locations":[{"start":{"line":577,"column":12},"end":{"line":577,"column":34}},{"start":{"line":578,"column":17},"end":{"line":578,"column":44}},{"start":{"line":578,"column":48},"end":{"line":578,"column":77}}]},"90":{"line":594,"type":"if","locations":[{"start":{"line":594,"column":8},"end":{"line":594,"column":8}},{"start":{"line":594,"column":8},"end":{"line":594,"column":8}}]},"91":{"line":594,"type":"binary-expr","locations":[{"start":{"line":594,"column":12},"end":{"line":594,"column":34}},{"start":{"line":595,"column":17},"end":{"line":595,"column":44}},{"start":{"line":595,"column":48},"end":{"line":595,"column":77}}]},"92":{"line":665,"type":"if","locations":[{"start":{"line":665,"column":8},"end":{"line":665,"column":8}},{"start":{"line":665,"column":8},"end":{"line":665,"column":8}}]},"93":{"line":671,"type":"binary-expr","locations":[{"start":{"line":671,"column":15},"end":{"line":671,"column":23}},{"start":{"line":671,"column":27},"end":{"line":671,"column":36}}]},"94":{"line":698,"type":"if","locations":[{"start":{"line":698,"column":8},"end":{"line":698,"column":8}},{"start":{"line":698,"column":8},"end":{"line":698,"column":8}}]},"95":{"line":698,"type":"binary-expr","locations":[{"start":{"line":698,"column":12},"end":{"line":698,"column":16}},{"start":{"line":698,"column":20},"end":{"line":698,"column":35}}]},"96":{"line":702,"type":"if","locations":[{"start":{"line":702,"column":8},"end":{"line":702,"column":8}},{"start":{"line":702,"column":8},"end":{"line":702,"column":8}}]},"97":{"line":720,"type":"if","locations":[{"start":{"line":720,"column":8},"end":{"line":720,"column":8}},{"start":{"line":720,"column":8},"end":{"line":720,"column":8}}]},"98":{"line":735,"type":"if","locations":[{"start":{"line":735,"column":8},"end":{"line":735,"column":8}},{"start":{"line":735,"column":8},"end":{"line":735,"column":8}}]},"99":{"line":752,"type":"cond-expr","locations":[{"start":{"line":752,"column":42},"end":{"line":752,"column":52}},{"start":{"line":752,"column":55},"end":{"line":752,"column":62}}]},"100":{"line":757,"type":"if","locations":[{"start":{"line":757,"column":8},"end":{"line":757,"column":8}},{"start":{"line":757,"column":8},"end":{"line":757,"column":8}}]},"101":{"line":763,"type":"if","locations":[{"start":{"line":763,"column":8},"end":{"line":763,"column":8}},{"start":{"line":763,"column":8},"end":{"line":763,"column":8}}]},"102":{"line":765,"type":"if","locations":[{"start":{"line":765,"column":16},"end":{"line":765,"column":16}},{"start":{"line":765,"column":16},"end":{"line":765,"column":16}}]},"103":{"line":768,"type":"binary-expr","locations":[{"start":{"line":768,"column":31},"end":{"line":768,"column":50}},{"start":{"line":768,"column":54},"end":{"line":768,"column":82}}]},"104":{"line":770,"type":"if","locations":[{"start":{"line":770,"column":16},"end":{"line":770,"column":16}},{"start":{"line":770,"column":16},"end":{"line":770,"column":16}}]},"105":{"line":778,"type":"if","locations":[{"start":{"line":778,"column":8},"end":{"line":778,"column":8}},{"start":{"line":778,"column":8},"end":{"line":778,"column":8}}]},"106":{"line":785,"type":"if","locations":[{"start":{"line":785,"column":8},"end":{"line":785,"column":8}},{"start":{"line":785,"column":8},"end":{"line":785,"column":8}}]},"107":{"line":804,"type":"if","locations":[{"start":{"line":804,"column":8},"end":{"line":804,"column":8}},{"start":{"line":804,"column":8},"end":{"line":804,"column":8}}]},"108":{"line":804,"type":"binary-expr","locations":[{"start":{"line":804,"column":12},"end":{"line":804,"column":13}},{"start":{"line":804,"column":17},"end":{"line":804,"column":24}}]},"109":{"line":808,"type":"if","locations":[{"start":{"line":808,"column":8},"end":{"line":808,"column":8}},{"start":{"line":808,"column":8},"end":{"line":808,"column":8}}]},"110":{"line":808,"type":"binary-expr","locations":[{"start":{"line":808,"column":12},"end":{"line":808,"column":13}},{"start":{"line":808,"column":17},"end":{"line":808,"column":24}}]},"111":{"line":823,"type":"cond-expr","locations":[{"start":{"line":824,"column":8},"end":{"line":826,"column":9}},{"start":{"line":827,"column":8},"end":{"line":842,"column":9}}]},"112":{"line":833,"type":"if","locations":[{"start":{"line":833,"column":12},"end":{"line":833,"column":12}},{"start":{"line":833,"column":12},"end":{"line":833,"column":12}}]},"113":{"line":835,"type":"if","locations":[{"start":{"line":835,"column":19},"end":{"line":835,"column":19}},{"start":{"line":835,"column":19},"end":{"line":835,"column":19}}]},"114":{"line":847,"type":"binary-expr","locations":[{"start":{"line":847,"column":18},"end":{"line":847,"column":22}},{"start":{"line":847,"column":26},"end":{"line":847,"column":40}},{"start":{"line":848,"column":16},"end":{"line":848,"column":48}},{"start":{"line":849,"column":13},"end":{"line":849,"column":46}},{"start":{"line":850,"column":16},"end":{"line":850,"column":62}}]},"115":{"line":898,"type":"if","locations":[{"start":{"line":898,"column":4},"end":{"line":898,"column":4}},{"start":{"line":898,"column":4},"end":{"line":898,"column":4}}]},"116":{"line":899,"type":"if","locations":[{"start":{"line":899,"column":8},"end":{"line":899,"column":8}},{"start":{"line":899,"column":8},"end":{"line":899,"column":8}}]},"117":{"line":902,"type":"if","locations":[{"start":{"line":902,"column":15},"end":{"line":902,"column":15}},{"start":{"line":902,"column":15},"end":{"line":902,"column":15}}]},"118":{"line":902,"type":"binary-expr","locations":[{"start":{"line":902,"column":19},"end":{"line":902,"column":33}},{"start":{"line":902,"column":37},"end":{"line":902,"column":58}}]},"119":{"line":904,"type":"if","locations":[{"start":{"line":904,"column":15},"end":{"line":904,"column":15}},{"start":{"line":904,"column":15},"end":{"line":904,"column":15}}]},"120":{"line":906,"type":"if","locations":[{"start":{"line":906,"column":15},"end":{"line":906,"column":15}},{"start":{"line":906,"column":15},"end":{"line":906,"column":15}}]},"121":{"line":906,"type":"binary-expr","locations":[{"start":{"line":906,"column":19},"end":{"line":906,"column":27}},{"start":{"line":906,"column":31},"end":{"line":906,"column":45}}]},"122":{"line":908,"type":"if","locations":[{"start":{"line":908,"column":16},"end":{"line":908,"column":16}},{"start":{"line":908,"column":16},"end":{"line":908,"column":16}}]},"123":{"line":923,"type":"binary-expr","locations":[{"start":{"line":923,"column":18},"end":{"line":923,"column":23}},{"start":{"line":923,"column":27},"end":{"line":923,"column":29}}]},"124":{"line":937,"type":"cond-expr","locations":[{"start":{"line":937,"column":43},"end":{"line":937,"column":58}},{"start":{"line":937,"column":61},"end":{"line":937,"column":69}}]},"125":{"line":937,"type":"binary-expr","locations":[{"start":{"line":937,"column":12},"end":{"line":937,"column":20}},{"start":{"line":937,"column":24},"end":{"line":937,"column":39}}]},"126":{"line":942,"type":"if","locations":[{"start":{"line":942,"column":4},"end":{"line":942,"column":4}},{"start":{"line":942,"column":4},"end":{"line":942,"column":4}}]},"127":{"line":942,"type":"binary-expr","locations":[{"start":{"line":942,"column":8},"end":{"line":942,"column":13}},{"start":{"line":942,"column":17},"end":{"line":942,"column":29}}]},"128":{"line":943,"type":"binary-expr","locations":[{"start":{"line":943,"column":32},"end":{"line":943,"column":39}},{"start":{"line":943,"column":43},"end":{"line":943,"column":51}}]},"129":{"line":949,"type":"if","locations":[{"start":{"line":949,"column":4},"end":{"line":949,"column":4}},{"start":{"line":949,"column":4},"end":{"line":949,"column":4}}]},"130":{"line":949,"type":"binary-expr","locations":[{"start":{"line":949,"column":8},"end":{"line":949,"column":12}},{"start":{"line":949,"column":16},"end":{"line":949,"column":18}}]},"131":{"line":960,"type":"if","locations":[{"start":{"line":960,"column":16},"end":{"line":960,"column":16}},{"start":{"line":960,"column":16},"end":{"line":960,"column":16}}]},"132":{"line":961,"type":"cond-expr","locations":[{"start":{"line":961,"column":68},"end":{"line":961,"column":78}},{"start":{"line":961,"column":81},"end":{"line":961,"column":88}}]},"133":{"line":961,"type":"binary-expr","locations":[{"start":{"line":961,"column":27},"end":{"line":961,"column":40}},{"start":{"line":961,"column":44},"end":{"line":961,"column":63}}]},"134":{"line":964,"type":"binary-expr","locations":[{"start":{"line":964,"column":31},"end":{"line":964,"column":50}},{"start":{"line":964,"column":54},"end":{"line":964,"column":82}}]},"135":{"line":967,"type":"if","locations":[{"start":{"line":967,"column":16},"end":{"line":967,"column":16}},{"start":{"line":967,"column":16},"end":{"line":967,"column":16}}]},"136":{"line":970,"type":"binary-expr","locations":[{"start":{"line":970,"column":22},"end":{"line":970,"column":29}},{"start":{"line":970,"column":33},"end":{"line":970,"column":41}}]},"137":{"line":972,"type":"if","locations":[{"start":{"line":972,"column":16},"end":{"line":972,"column":16}},{"start":{"line":972,"column":16},"end":{"line":972,"column":16}}]},"138":{"line":972,"type":"binary-expr","locations":[{"start":{"line":972,"column":20},"end":{"line":972,"column":40}},{"start":{"line":972,"column":44},"end":{"line":972,"column":63}}]},"139":{"line":978,"type":"cond-expr","locations":[{"start":{"line":978,"column":32},"end":{"line":978,"column":35}},{"start":{"line":978,"column":38},"end":{"line":978,"column":42}}]},"140":{"line":985,"type":"if","locations":[{"start":{"line":985,"column":4},"end":{"line":985,"column":4}},{"start":{"line":985,"column":4},"end":{"line":985,"column":4}}]},"141":{"line":986,"type":"binary-expr","locations":[{"start":{"line":986,"column":18},"end":{"line":986,"column":25}},{"start":{"line":986,"column":29},"end":{"line":986,"column":33}}]},"142":{"line":997,"type":"if","locations":[{"start":{"line":997,"column":4},"end":{"line":997,"column":4}},{"start":{"line":997,"column":4},"end":{"line":997,"column":4}}]},"143":{"line":1009,"type":"cond-expr","locations":[{"start":{"line":1009,"column":29},"end":{"line":1009,"column":31}},{"start":{"line":1009,"column":34},"end":{"line":1009,"column":38}}]},"144":{"line":1013,"type":"if","locations":[{"start":{"line":1013,"column":12},"end":{"line":1013,"column":12}},{"start":{"line":1013,"column":12},"end":{"line":1013,"column":12}}]},"145":{"line":1029,"type":"binary-expr","locations":[{"start":{"line":1029,"column":22},"end":{"line":1029,"column":33}},{"start":{"line":1029,"column":37},"end":{"line":1029,"column":39}}]},"146":{"line":1045,"type":"binary-expr","locations":[{"start":{"line":1045,"column":27},"end":{"line":1045,"column":34}},{"start":{"line":1045,"column":38},"end":{"line":1045,"column":42}}]},"147":{"line":1057,"type":"if","locations":[{"start":{"line":1057,"column":12},"end":{"line":1057,"column":12}},{"start":{"line":1057,"column":12},"end":{"line":1057,"column":12}}]},"148":{"line":1058,"type":"cond-expr","locations":[{"start":{"line":1058,"column":64},"end":{"line":1058,"column":74}},{"start":{"line":1058,"column":77},"end":{"line":1058,"column":84}}]},"149":{"line":1058,"type":"binary-expr","locations":[{"start":{"line":1058,"column":23},"end":{"line":1058,"column":36}},{"start":{"line":1058,"column":40},"end":{"line":1058,"column":59}}]},"150":{"line":1061,"type":"binary-expr","locations":[{"start":{"line":1061,"column":27},"end":{"line":1061,"column":46}},{"start":{"line":1061,"column":50},"end":{"line":1061,"column":78}}]},"151":{"line":1064,"type":"if","locations":[{"start":{"line":1064,"column":12},"end":{"line":1064,"column":12}},{"start":{"line":1064,"column":12},"end":{"line":1064,"column":12}}]},"152":{"line":1068,"type":"binary-expr","locations":[{"start":{"line":1068,"column":27},"end":{"line":1068,"column":34}},{"start":{"line":1068,"column":38},"end":{"line":1068,"column":46}}]},"153":{"line":1086,"type":"binary-expr","locations":[{"start":{"line":1086,"column":22},"end":{"line":1086,"column":29}},{"start":{"line":1086,"column":33},"end":{"line":1086,"column":37}}]},"154":{"line":1133,"type":"binary-expr","locations":[{"start":{"line":1133,"column":12},"end":{"line":1133,"column":13}},{"start":{"line":1133,"column":17},"end":{"line":1133,"column":18}}]},"155":{"line":1136,"type":"if","locations":[{"start":{"line":1136,"column":12},"end":{"line":1136,"column":12}},{"start":{"line":1136,"column":12},"end":{"line":1136,"column":12}}]},"156":{"line":1178,"type":"if","locations":[{"start":{"line":1178,"column":8},"end":{"line":1178,"column":8}},{"start":{"line":1178,"column":8},"end":{"line":1178,"column":8}}]},"157":{"line":1179,"type":"if","locations":[{"start":{"line":1179,"column":12},"end":{"line":1179,"column":12}},{"start":{"line":1179,"column":12},"end":{"line":1179,"column":12}}]},"158":{"line":1180,"type":"if","locations":[{"start":{"line":1180,"column":16},"end":{"line":1180,"column":16}},{"start":{"line":1180,"column":16},"end":{"line":1180,"column":16}}]},"159":{"line":1180,"type":"binary-expr","locations":[{"start":{"line":1180,"column":20},"end":{"line":1180,"column":25}},{"start":{"line":1180,"column":29},"end":{"line":1180,"column":37}},{"start":{"line":1180,"column":41},"end":{"line":1180,"column":63}}]},"160":{"line":1215,"type":"if","locations":[{"start":{"line":1215,"column":8},"end":{"line":1215,"column":8}},{"start":{"line":1215,"column":8},"end":{"line":1215,"column":8}}]},"161":{"line":1215,"type":"binary-expr","locations":[{"start":{"line":1215,"column":12},"end":{"line":1215,"column":17}},{"start":{"line":1215,"column":21},"end":{"line":1215,"column":29}}]},"162":{"line":1218,"type":"if","locations":[{"start":{"line":1218,"column":12},"end":{"line":1218,"column":12}},{"start":{"line":1218,"column":12},"end":{"line":1218,"column":12}}]},"163":{"line":1222,"type":"if","locations":[{"start":{"line":1222,"column":12},"end":{"line":1222,"column":12}},{"start":{"line":1222,"column":12},"end":{"line":1222,"column":12}}]},"164":{"line":1226,"type":"if","locations":[{"start":{"line":1226,"column":12},"end":{"line":1226,"column":12}},{"start":{"line":1226,"column":12},"end":{"line":1226,"column":12}}]},"165":{"line":1230,"type":"binary-expr","locations":[{"start":{"line":1230,"column":15},"end":{"line":1230,"column":18}},{"start":{"line":1230,"column":22},"end":{"line":1230,"column":30}}]},"166":{"line":1305,"type":"if","locations":[{"start":{"line":1305,"column":4},"end":{"line":1305,"column":4}},{"start":{"line":1305,"column":4},"end":{"line":1305,"column":4}}]},"167":{"line":1306,"type":"if","locations":[{"start":{"line":1306,"column":8},"end":{"line":1306,"column":8}},{"start":{"line":1306,"column":8},"end":{"line":1306,"column":8}}]},"168":{"line":1307,"type":"cond-expr","locations":[{"start":{"line":1307,"column":68},"end":{"line":1307,"column":78}},{"start":{"line":1307,"column":81},"end":{"line":1307,"column":88}}]},"169":{"line":1307,"type":"binary-expr","locations":[{"start":{"line":1307,"column":19},"end":{"line":1307,"column":36}},{"start":{"line":1307,"column":40},"end":{"line":1307,"column":63}}]},"170":{"line":1310,"type":"binary-expr","locations":[{"start":{"line":1310,"column":23},"end":{"line":1310,"column":46}},{"start":{"line":1310,"column":50},"end":{"line":1310,"column":82}}]},"171":{"line":1312,"type":"binary-expr","locations":[{"start":{"line":1312,"column":19},"end":{"line":1312,"column":27}},{"start":{"line":1312,"column":31},"end":{"line":1312,"column":48}}]},"172":{"line":1315,"type":"if","locations":[{"start":{"line":1315,"column":8},"end":{"line":1315,"column":8}},{"start":{"line":1315,"column":8},"end":{"line":1315,"column":8}}]},"173":{"line":1315,"type":"binary-expr","locations":[{"start":{"line":1315,"column":12},"end":{"line":1315,"column":15}},{"start":{"line":1315,"column":19},"end":{"line":1315,"column":31}}]},"174":{"line":1321,"type":"if","locations":[{"start":{"line":1321,"column":8},"end":{"line":1321,"column":8}},{"start":{"line":1321,"column":8},"end":{"line":1321,"column":8}}]},"175":{"line":1322,"type":"cond-expr","locations":[{"start":{"line":1322,"column":60},"end":{"line":1322,"column":70}},{"start":{"line":1322,"column":73},"end":{"line":1322,"column":80}}]},"176":{"line":1322,"type":"binary-expr","locations":[{"start":{"line":1322,"column":19},"end":{"line":1322,"column":32}},{"start":{"line":1322,"column":36},"end":{"line":1322,"column":55}}]},"177":{"line":1325,"type":"binary-expr","locations":[{"start":{"line":1325,"column":23},"end":{"line":1325,"column":42}},{"start":{"line":1325,"column":46},"end":{"line":1325,"column":74}}]},"178":{"line":1328,"type":"if","locations":[{"start":{"line":1328,"column":8},"end":{"line":1328,"column":8}},{"start":{"line":1328,"column":8},"end":{"line":1328,"column":8}}]},"179":{"line":1333,"type":"if","locations":[{"start":{"line":1333,"column":8},"end":{"line":1333,"column":8}},{"start":{"line":1333,"column":8},"end":{"line":1333,"column":8}}]},"180":{"line":1340,"type":"cond-expr","locations":[{"start":{"line":1340,"column":26},"end":{"line":1340,"column":36}},{"start":{"line":1340,"column":39},"end":{"line":1340,"column":42}}]},"181":{"line":1423,"type":"binary-expr","locations":[{"start":{"line":1423,"column":22},"end":{"line":1423,"column":31}},{"start":{"line":1423,"column":35},"end":{"line":1423,"column":45}},{"start":{"line":1423,"column":49},"end":{"line":1423,"column":52}}]},"182":{"line":1428,"type":"if","locations":[{"start":{"line":1428,"column":8},"end":{"line":1428,"column":8}},{"start":{"line":1428,"column":8},"end":{"line":1428,"column":8}}]},"183":{"line":1552,"type":"if","locations":[{"start":{"line":1552,"column":4},"end":{"line":1552,"column":4}},{"start":{"line":1552,"column":4},"end":{"line":1552,"column":4}}]}},"code":["(function () { YUI.add('node-core', function (Y, NAME) {","","/**"," * The Node Utility provides a DOM-like interface for interacting with DOM nodes."," * @module node"," * @main node"," * @submodule node-core"," */","","/**"," * The Node class provides a wrapper for manipulating DOM Nodes."," * Node properties can be accessed via the set/get methods."," * Use `Y.one()` to retrieve Node instances."," *"," * NOTE: Node properties are accessed using"," * the set and get methods."," *"," * @class Node"," * @constructor"," * @param {HTMLElement} node the DOM node to be mapped to the Node instance."," * @uses EventTarget"," */","","// \"globals\"","var DOT = '.',"," NODE_NAME = 'nodeName',"," NODE_TYPE = 'nodeType',"," OWNER_DOCUMENT = 'ownerDocument',"," TAG_NAME = 'tagName',"," UID = '_yuid',"," EMPTY_OBJ = {},",""," use_instance_map = Y.UA.ie > 0, // define flag, in case other browsers need it, too",""," _slice = Array.prototype.slice,",""," Y_DOM = Y.DOM,",""," Y_Node = function(node) {"," if (!this.getDOMNode) { // support optional \"new\""," return new Y_Node(node);"," }",""," if (typeof node == 'string') {"," node = Y_Node._fromString(node);"," if (!node) {"," return null; // NOTE: return"," }"," }",""," var uid = (node.nodeType !== 9) ? node.uniqueID : node[UID];",""," if (use_instance_map && uid && Y_Node._instances[uid] && Y_Node._instances[uid]._node !== node) {"," node[UID] = null; // unset existing uid to prevent collision (via clone or hack)"," }",""," uid = uid || Y.stamp(node);"," if (!uid) { // stamp failed; likely IE non-HTMLElement"," uid = Y.guid();"," }",""," this[UID] = uid;",""," /**"," * The underlying DOM node bound to the Y.Node instance"," * @property _node"," * @type HTMLElement"," * @private"," */"," this._node = node;",""," this._stateProxy = node; // when augmented with Attribute",""," if (this._initPlugins) { // when augmented with Plugin.Host"," this._initPlugins();"," }"," },",""," // used with previous/next/ancestor tests"," _wrapFn = function(fn) {"," var ret = null;"," if (fn) {"," ret = (typeof fn == 'string') ?"," function(n) {"," return Y.Selector.test(n, fn);"," } :"," function(n) {"," return fn(Y.one(n));"," };"," }",""," return ret;"," };","// end \"globals\"","","Y_Node.ATTRS = {};","Y_Node.DOM_EVENTS = {};","","Y_Node._fromString = function(node) {"," if (node) {"," if (node.indexOf('doc') === 0) { // doc OR document"," node = Y.config.doc;"," } else if (node.indexOf('win') === 0) { // win OR window"," node = Y.config.win;"," } else {"," node = Y.Selector.query(node, null, true);"," }"," }",""," return node || null;","};","","/**"," * The name of the component"," * @static"," * @type String"," * @property NAME"," */","Y_Node.NAME = 'node';","","/*"," * The pattern used to identify ARIA attributes"," */","Y_Node.re_aria = /^(?:role$|aria-)/;","","Y_Node.SHOW_TRANSITION = 'fadeIn';","Y_Node.HIDE_TRANSITION = 'fadeOut';","","/**"," * A list of Node instances that have been created. Only defined in browsers"," * that already have broken GC, since this global map also breaks GC."," * @private"," * @type Object"," * @property _instances"," * @static"," *"," */","if (use_instance_map) {"," Y_Node._instances = {};","}","","/**"," * Retrieves the DOM node bound to a Node instance"," * @method getDOMNode"," * @static"," *"," * @param {Node|HTMLElement} node The Node instance or an HTMLElement"," * @return {HTMLElement} The DOM node bound to the Node instance. If a DOM node is passed"," * as the node argument, it is simply returned."," */","Y_Node.getDOMNode = function(node) {"," if (node) {"," return (node.nodeType) ? node : node._node || null;"," }"," return null;","};","","/**"," * Checks Node return values and wraps DOM Nodes as Y.Node instances"," * and DOM Collections / Arrays as Y.NodeList instances."," * Other return values just pass thru. If undefined is returned (e.g. no return)"," * then the Node instance is returned for chainability."," * @method scrubVal"," * @static"," *"," * @param {HTMLElement|HTMLElement[]|Node} node The Node instance or an HTMLElement"," * @return {Node | NodeList | Any} Depends on what is returned from the DOM node."," */","Y_Node.scrubVal = function(val, node) {"," if (val) { // only truthy values are risky"," if (typeof val == 'object' || typeof val == 'function') { // safari nodeList === function"," if (NODE_TYPE in val || Y_DOM.isWindow(val)) {// node || window"," val = Y.one(val);"," } else if ((val.item && !val._nodes) || // dom collection or Node instance"," (val[0] && val[0][NODE_TYPE])) { // array of DOM Nodes"," val = Y.all(val);"," }"," }"," } else if (typeof val === 'undefined') {"," val = node; // for chaining"," } else if (val === null) {"," val = null; // IE: DOM null not the same as null"," }",""," return val;","};","","/**"," * Adds methods to the Y.Node prototype, routing through scrubVal."," * @method addMethod"," * @static"," *"," * @param {String} name The name of the method to add"," * @param {Function} fn The function that becomes the method"," * @param {Object} context An optional context to call the method with"," * (defaults to the Node instance)"," * @return {any} Depends on what is returned from the DOM node."," */","Y_Node.addMethod = function(name, fn, context) {"," if (name && fn && typeof fn == 'function') {"," Y_Node.prototype[name] = function() {"," var args = _slice.call(arguments),"," node = this,"," ret;",""," if (args[0] && args[0]._node) {"," args[0] = args[0]._node;"," }",""," if (args[1] && args[1]._node) {"," args[1] = args[1]._node;"," }"," args.unshift(node._node);",""," ret = fn.apply(context || node, args);",""," if (ret) { // scrub truthy"," ret = Y_Node.scrubVal(ret, node);"," }",""," (typeof ret != 'undefined') || (ret = node);"," return ret;"," };"," } else {"," }","};","","/**"," * Imports utility methods to be added as Y.Node methods."," * @method importMethod"," * @static"," *"," * @param {Object} host The object that contains the method to import."," * @param {String} name The name of the method to import"," * @param {String} altName An optional name to use in place of the host name"," * @param {Object} context An optional context to call the method with"," */","Y_Node.importMethod = function(host, name, altName) {"," if (typeof name == 'string') {"," altName = altName || name;"," Y_Node.addMethod(altName, host[name], host);"," } else {"," Y.Array.each(name, function(n) {"," Y_Node.importMethod(host, n);"," });"," }","};","","/**"," * Retrieves a NodeList based on the given CSS selector."," * @method all"," *"," * @param {string} selector The CSS selector to test against."," * @return {NodeList} A NodeList instance for the matching HTMLCollection/Array."," * @for YUI"," */","","/**"," * Returns a single Node instance bound to the node or the"," * first element matching the given selector. Returns null if no match found."," * Note: For chaining purposes you may want to"," * use Y.all, which returns a NodeList when no match is found."," * @method one"," * @param {String | HTMLElement} node a node or Selector"," * @return {Node | null} a Node instance or null if no match found."," * @for YUI"," */","","/**"," * Returns a single Node instance bound to the node or the"," * first element matching the given selector. Returns null if no match found."," * Note: For chaining purposes you may want to"," * use Y.all, which returns a NodeList when no match is found."," * @method one"," * @static"," * @param {String | HTMLElement} node a node or Selector"," * @return {Node | null} a Node instance or null if no match found."," * @for Node"," */","Y_Node.one = function(node) {"," var instance = null,"," cachedNode,"," uid;",""," if (node) {"," if (typeof node == 'string') {"," node = Y_Node._fromString(node);"," if (!node) {"," return null; // NOTE: return"," }"," } else if (node.getDOMNode) {"," return node; // NOTE: return"," }",""," if (node.nodeType || Y.DOM.isWindow(node)) { // avoid bad input (numbers, boolean, etc)"," uid = (node.uniqueID && node.nodeType !== 9) ? node.uniqueID : node._yuid;"," if (use_instance_map) {"," instance = Y_Node._instances[uid]; // reuse exising instances"," } else {"," instance = node._yui_instances && node._yui_instances[Y._yuid]; // reuse exising instances"," }"," cachedNode = instance ? instance._node : null;"," if (!instance || (cachedNode && node !== cachedNode)) { // new Node when nodes don't match"," instance = new Y_Node(node);"," if (node.nodeType != 11) { // dont cache document fragment"," if (use_instance_map) {"," Y_Node._instances[instance[UID]] = instance; // cache node"," } else {"," if (!node._yui_instances) {"," node._yui_instances = {};"," }"," node._yui_instances[Y._yuid] = instance; // cache node"," }"," }"," }"," }"," }",""," return instance;","};","","/**"," * The default setter for DOM properties"," * Called with instance context (this === the Node instance)"," * @method DEFAULT_SETTER"," * @static"," * @param {String} name The attribute/property being set"," * @param {any} val The value to be set"," * @return {any} The value"," */","Y_Node.DEFAULT_SETTER = function(name, val) {"," var node = this._stateProxy,"," strPath;",""," if (name.indexOf(DOT) > -1) {"," strPath = name;"," name = name.split(DOT);"," // only allow when defined on node"," Y.Object.setValue(node, name, val);"," } else if (typeof node[name] != 'undefined') { // pass thru DOM properties"," node[name] = val;"," }",""," return val;","};","","/**"," * The default getter for DOM properties"," * Called with instance context (this === the Node instance)"," * @method DEFAULT_GETTER"," * @static"," * @param {String} name The attribute/property to look up"," * @return {any} The current value"," */","Y_Node.DEFAULT_GETTER = function(name) {"," var node = this._stateProxy,"," val;",""," if (name.indexOf && name.indexOf(DOT) > -1) {"," val = Y.Object.getValue(node, name.split(DOT));"," } else if (typeof node[name] != 'undefined') { // pass thru from DOM"," val = node[name];"," }",""," return val;","};","","Y.mix(Y_Node.prototype, {"," DATA_PREFIX: 'data-',",""," /**"," * The method called when outputting Node instances as strings"," * @method toString"," * @return {String} A string representation of the Node instance"," */"," toString: function() {"," var str = this[UID] + ': not bound to a node',"," node = this._node,"," attrs, id, className;",""," if (node) {"," attrs = node.attributes;"," id = (attrs && attrs.id) ? node.getAttribute('id') : null;"," className = (attrs && attrs.className) ? node.getAttribute('className') : null;"," str = node[NODE_NAME];",""," if (id) {"," str += '#' + id;"," }",""," if (className) {"," str += '.' + className.replace(' ', '.');"," }",""," // TODO: add yuid?"," str += ' ' + this[UID];"," }"," return str;"," },",""," /**"," * Returns an attribute value on the Node instance."," * Unless pre-configured (via `Node.ATTRS`), get hands"," * off to the underlying DOM node. Only valid"," * attributes/properties for the node will be queried."," * @method get"," * @param {String} attr The attribute"," * @return {any} The current value of the attribute"," */"," get: function(attr) {"," var val;",""," if (this._getAttr) { // use Attribute imple"," val = this._getAttr(attr);"," } else {"," val = this._get(attr);"," }",""," if (val) {"," val = Y_Node.scrubVal(val, this);"," } else if (val === null) {"," val = null; // IE: DOM null is not true null (even though they ===)"," }"," return val;"," },",""," /**"," * Helper method for get."," * @method _get"," * @private"," * @param {String} attr The attribute"," * @return {any} The current value of the attribute"," */"," _get: function(attr) {"," var attrConfig = Y_Node.ATTRS[attr],"," val;",""," if (attrConfig && attrConfig.getter) {"," val = attrConfig.getter.call(this);"," } else if (Y_Node.re_aria.test(attr)) {"," val = this._node.getAttribute(attr, 2);"," } else {"," val = Y_Node.DEFAULT_GETTER.apply(this, arguments);"," }",""," return val;"," },",""," /**"," * Sets an attribute on the Node instance."," * Unless pre-configured (via Node.ATTRS), set hands"," * off to the underlying DOM node. Only valid"," * attributes/properties for the node will be set."," * To set custom attributes use setAttribute."," * @method set"," * @param {String} attr The attribute to be set."," * @param {any} val The value to set the attribute to."," * @chainable"," */"," set: function(attr, val) {"," var attrConfig = Y_Node.ATTRS[attr];",""," if (this._setAttr) { // use Attribute imple"," this._setAttr.apply(this, arguments);"," } else { // use setters inline"," if (attrConfig && attrConfig.setter) {"," attrConfig.setter.call(this, val, attr);"," } else if (Y_Node.re_aria.test(attr)) { // special case Aria"," this._node.setAttribute(attr, val);"," } else {"," Y_Node.DEFAULT_SETTER.apply(this, arguments);"," }"," }",""," return this;"," },",""," /**"," * Sets multiple attributes."," * @method setAttrs"," * @param {Object} attrMap an object of name/value pairs to set"," * @chainable"," */"," setAttrs: function(attrMap) {"," if (this._setAttrs) { // use Attribute imple"," this._setAttrs(attrMap);"," } else { // use setters inline"," Y.Object.each(attrMap, function(v, n) {"," this.set(n, v);"," }, this);"," }",""," return this;"," },",""," /**"," * Returns an object containing the values for the requested attributes."," * @method getAttrs"," * @param {Array} attrs an array of attributes to get values"," * @return {Object} An object with attribute name/value pairs."," */"," getAttrs: function(attrs) {"," var ret = {};"," if (this._getAttrs) { // use Attribute imple"," this._getAttrs(attrs);"," } else { // use setters inline"," Y.Array.each(attrs, function(v, n) {"," ret[v] = this.get(v);"," }, this);"," }",""," return ret;"," },",""," /**"," * Compares nodes to determine if they match."," * Node instances can be compared to each other and/or HTMLElements."," * @method compareTo"," * @param {HTMLElement | Node} refNode The reference node to compare to the node."," * @return {Boolean} True if the nodes match, false if they do not."," */"," compareTo: function(refNode) {"," var node = this._node;",""," if (refNode && refNode._node) {"," refNode = refNode._node;"," }"," return node === refNode;"," },",""," /**"," * Determines whether the node is appended to the document."," * @method inDoc"," * @param {Node|HTMLElement} doc optional An optional document to check against."," * Defaults to current document."," * @return {Boolean} Whether or not this node is appended to the document."," */"," inDoc: function(doc) {"," var node = this._node;",""," if (node) {"," doc = (doc) ? doc._node || doc : node[OWNER_DOCUMENT];"," if (doc.documentElement) {"," return Y_DOM.contains(doc.documentElement, node);"," }"," }",""," return false;"," },",""," getById: function(id) {"," var node = this._node,"," ret = Y_DOM.byId(id, node[OWNER_DOCUMENT]);"," if (ret && Y_DOM.contains(node, ret)) {"," ret = Y.one(ret);"," } else {"," ret = null;"," }"," return ret;"," },",""," /**"," * Returns the nearest ancestor that passes the test applied by supplied boolean method."," * @method ancestor"," * @param {String | Function} fn A selector string or boolean method for testing elements."," * If a function is used, it receives the current node being tested as the only argument."," * If fn is not passed as an argument, the parent node will be returned."," * @param {Boolean} testSelf optional Whether or not to include the element in the scan"," * @param {String | Function} stopFn optional A selector string or boolean"," * method to indicate when the search should stop. The search bails when the function"," * returns true or the selector matches."," * If a function is used, it receives the current node being tested as the only argument."," * @return {Node} The matching Node instance or null if not found"," */"," ancestor: function(fn, testSelf, stopFn) {"," // testSelf is optional, check for stopFn as 2nd arg"," if (arguments.length === 2 &&"," (typeof testSelf == 'string' || typeof testSelf == 'function')) {"," stopFn = testSelf;"," }",""," return Y.one(Y_DOM.ancestor(this._node, _wrapFn(fn), testSelf, _wrapFn(stopFn)));"," },",""," /**"," * Returns the ancestors that pass the test applied by supplied boolean method."," * @method ancestors"," * @param {String | Function} fn A selector string or boolean method for testing elements."," * @param {Boolean} testSelf optional Whether or not to include the element in the scan"," * If a function is used, it receives the current node being tested as the only argument."," * @return {NodeList} A NodeList instance containing the matching elements"," */"," ancestors: function(fn, testSelf, stopFn) {"," if (arguments.length === 2 &&"," (typeof testSelf == 'string' || typeof testSelf == 'function')) {"," stopFn = testSelf;"," }"," return Y.all(Y_DOM.ancestors(this._node, _wrapFn(fn), testSelf, _wrapFn(stopFn)));"," },",""," /**"," * Returns the previous matching sibling."," * Returns the nearest element node sibling if no method provided."," * @method previous"," * @param {String | Function} fn A selector or boolean method for testing elements."," * If a function is used, it receives the current node being tested as the only argument."," * @param {Boolean} [all] Whether text nodes as well as element nodes should be returned, or"," * just element nodes will be returned(default)"," * @return {Node} Node instance or null if not found"," */"," previous: function(fn, all) {"," return Y.one(Y_DOM.elementByAxis(this._node, 'previousSibling', _wrapFn(fn), all));"," },",""," /**"," * Returns the next matching sibling."," * Returns the nearest element node sibling if no method provided."," * @method next"," * @param {String | Function} fn A selector or boolean method for testing elements."," * If a function is used, it receives the current node being tested as the only argument."," * @param {Boolean} [all] Whether text nodes as well as element nodes should be returned, or"," * just element nodes will be returned(default)"," * @return {Node} Node instance or null if not found"," */"," next: function(fn, all) {"," return Y.one(Y_DOM.elementByAxis(this._node, 'nextSibling', _wrapFn(fn), all));"," },",""," /**"," * Returns all matching siblings."," * Returns all siblings if no method provided."," * @method siblings"," * @param {String | Function} fn A selector or boolean method for testing elements."," * If a function is used, it receives the current node being tested as the only argument."," * @return {NodeList} NodeList instance bound to found siblings"," */"," siblings: function(fn) {"," return Y.all(Y_DOM.siblings(this._node, _wrapFn(fn)));"," },",""," /**"," * Retrieves a single Node instance, the first element matching the given"," * CSS selector."," * Returns null if no match found."," * @method one"," *"," * @param {string} selector The CSS selector to test against."," * @return {Node | null} A Node instance for the matching HTMLElement or null"," * if no match found."," */"," one: function(selector) {"," return Y.one(Y.Selector.query(selector, this._node, true));"," },",""," /**"," * Retrieves a NodeList based on the given CSS selector."," * @method all"," *"," * @param {string} selector The CSS selector to test against."," * @return {NodeList} A NodeList instance for the matching HTMLCollection/Array."," */"," all: function(selector) {"," var nodelist;",""," if (this._node) {"," nodelist = Y.all(Y.Selector.query(selector, this._node));"," nodelist._query = selector;"," nodelist._queryRoot = this._node;"," }",""," return nodelist || Y.all([]);"," },",""," // TODO: allow fn test"," /**"," * Test if the supplied node matches the supplied selector."," * @method test"," *"," * @param {string} selector The CSS selector to test against."," * @return {boolean} Whether or not the node matches the selector."," */"," test: function(selector) {"," return Y.Selector.test(this._node, selector);"," },",""," /**"," * Removes the node from its parent."," * Shortcut for myNode.get('parentNode').removeChild(myNode);"," * @method remove"," * @param {Boolean} destroy whether or not to call destroy() on the node"," * after removal."," * @chainable"," *"," */"," remove: function(destroy) {"," var node = this._node;",""," if (node && node.parentNode) {"," node.parentNode.removeChild(node);"," }",""," if (destroy) {"," this.destroy();"," }",""," return this;"," },",""," /**"," * Replace the node with the other node. This is a DOM update only"," * and does not change the node bound to the Node instance."," * Shortcut for myNode.get('parentNode').replaceChild(newNode, myNode);"," * @method replace"," * @param {Node | HTMLElement} newNode Node to be inserted"," * @chainable"," *"," */"," replace: function(newNode) {"," var node = this._node;"," if (typeof newNode == 'string') {"," newNode = Y_Node.create(newNode);"," }"," node.parentNode.replaceChild(Y_Node.getDOMNode(newNode), node);"," return this;"," },",""," /**"," * @method replaceChild"," * @for Node"," * @param {String | HTMLElement | Node} node Node to be inserted"," * @param {HTMLElement | Node} refNode Node to be replaced"," * @return {Node} The replaced node"," */"," replaceChild: function(node, refNode) {"," if (typeof node == 'string') {"," node = Y_DOM.create(node);"," }",""," return Y.one(this._node.replaceChild(Y_Node.getDOMNode(node), Y_Node.getDOMNode(refNode)));"," },",""," /**"," * Nulls internal node references, removes any plugins and event listeners."," * Note that destroy() will not remove the node from its parent or from the DOM. For that"," * functionality, call remove(true)."," * @method destroy"," * @param {Boolean} recursivePurge (optional) Whether or not to remove listeners from the"," * node's subtree (default is false)"," *"," */"," destroy: function(recursive) {"," var UID = Y.config.doc.uniqueID ? 'uniqueID' : '_yuid',"," instance;",""," this.purge(); // TODO: only remove events add via this Node",""," if (this.unplug) { // may not be a PluginHost"," this.unplug();"," }",""," this.clearData();",""," if (recursive) {"," Y.NodeList.each(this.all('*'), function(node) {"," if (use_instance_map) {"," instance = Y_Node._instances[node[UID]];"," } else {"," instance = node._yui_instances && node._yui_instances[Y._yuid];"," }"," if (instance) {"," instance.destroy();"," } else { // purge in case added by other means"," Y.Event.purgeElement(node);"," }"," });"," }",""," if (this._node._yui_instances) {"," delete this._node._yui_instances[Y._yuid];"," }",""," this._node = null;"," this._stateProxy = null;",""," if (use_instance_map) {"," delete Y_Node._instances[this._yuid];"," }"," },",""," /**"," * Invokes a method on the Node instance"," * @method invoke"," * @param {String} method The name of the method to invoke"," * @param {any} [args*] Arguments to invoke the method with."," * @return {any} Whatever the underly method returns."," * DOM Nodes and Collections return values"," * are converted to Node/NodeList instances."," *"," */"," invoke: function(method, a, b, c, d, e) {"," var node = this._node,"," ret;",""," if (a && a._node) {"," a = a._node;"," }",""," if (b && b._node) {"," b = b._node;"," }",""," ret = node[method](a, b, c, d, e);"," return Y_Node.scrubVal(ret, this);"," },",""," /**"," * @method swap"," * @description Swap DOM locations with the given node."," * This does not change which DOM node each Node instance refers to."," * @param {Node} otherNode The node to swap with"," * @chainable"," */"," swap: Y.config.doc.documentElement.swapNode ?"," function(otherNode) {"," this._node.swapNode(Y_Node.getDOMNode(otherNode));"," } :"," function(otherNode) {"," otherNode = Y_Node.getDOMNode(otherNode);"," var node = this._node,"," parent = otherNode.parentNode,"," nextSibling = otherNode.nextSibling;",""," if (nextSibling === node) {"," parent.insertBefore(node, otherNode);"," } else if (otherNode === node.nextSibling) {"," parent.insertBefore(otherNode, node);"," } else {"," node.parentNode.replaceChild(otherNode, node);"," Y_DOM.addHTML(parent, node, nextSibling);"," }"," return this;"," },","",""," hasMethod: function(method) {"," var node = this._node;"," return !!(node && method in node &&"," typeof node[method] != 'unknown' &&"," (typeof node[method] == 'function' ||"," String(node[method]).indexOf('function') === 1)); // IE reports as object, prepends space"," },",""," isFragment: function() {"," return (this.get('nodeType') === 11);"," },",""," /**"," * Removes and destroys all of the nodes within the node."," * @method empty"," * @chainable"," */"," empty: function() {"," this.get('childNodes').remove().destroy(true);"," return this;"," },",""," /**"," * Returns the DOM node bound to the Node instance"," * @method getDOMNode"," * @return {HTMLElement}"," */"," getDOMNode: function() {"," return this._node;"," }","}, true);","","Y.Node = Y_Node;","Y.one = Y_Node.one;","/**"," * The NodeList module provides support for managing collections of Nodes."," * @module node"," * @submodule node-core"," */","","/**"," * The NodeList class provides a wrapper for manipulating DOM NodeLists."," * NodeList properties can be accessed via the set/get methods."," * Use Y.all() to retrieve NodeList instances."," *"," * @class NodeList"," * @constructor"," * @param nodes {String|element|Node|Array} A selector, DOM element, Node, list of DOM elements, or list of Nodes with which to populate this NodeList."," */","","var NodeList = function(nodes) {"," var tmp = [];",""," if (nodes) {"," if (typeof nodes === 'string') { // selector query"," this._query = nodes;"," nodes = Y.Selector.query(nodes);"," } else if (nodes.nodeType || Y_DOM.isWindow(nodes)) { // domNode || window"," nodes = [nodes];"," } else if (nodes._node) { // Y.Node"," nodes = [nodes._node];"," } else if (nodes[0] && nodes[0]._node) { // allow array of Y.Nodes"," Y.Array.each(nodes, function(node) {"," if (node._node) {"," tmp.push(node._node);"," }"," });"," nodes = tmp;"," } else { // array of domNodes or domNodeList (no mixed array of Y.Node/domNodes)"," nodes = Y.Array(nodes, 0, true);"," }"," }",""," /**"," * The underlying array of DOM nodes bound to the Y.NodeList instance"," * @property _nodes"," * @private"," */"," this._nodes = nodes || [];","};","","NodeList.NAME = 'NodeList';","","/**"," * Retrieves the DOM nodes bound to a NodeList instance"," * @method getDOMNodes"," * @static"," *"," * @param {NodeList} nodelist The NodeList instance"," * @return {Array} The array of DOM nodes bound to the NodeList"," */","NodeList.getDOMNodes = function(nodelist) {"," return (nodelist && nodelist._nodes) ? nodelist._nodes : nodelist;","};","","NodeList.each = function(instance, fn, context) {"," var nodes = instance._nodes;"," if (nodes && nodes.length) {"," Y.Array.each(nodes, fn, context || instance);"," } else {"," }","};","","NodeList.addMethod = function(name, fn, context) {"," if (name && fn) {"," NodeList.prototype[name] = function() {"," var ret = [],"," args = arguments;",""," Y.Array.each(this._nodes, function(node) {"," var UID,"," instance,"," ctx,"," result;",""," if (Y.Node._instances) {"," UID = (node.uniqueID && node.nodeType !== 9 ) ? 'uniqueID' : '_yuid';"," instance = Y.Node._instances[node[UID]];"," } else {"," instance = node._yui_instances && node._yui_instances[Y._yuid];"," }",""," if (!instance) {"," instance = NodeList._getTempNode(node);"," }"," ctx = context || instance;"," result = fn.apply(ctx, args);"," if (result !== undefined && result !== instance) {"," ret[ret.length] = result;"," }"," });",""," // TODO: remove tmp pointer"," return ret.length ? ret : this;"," };"," } else {"," }","};","","NodeList.importMethod = function(host, name, altName) {"," if (typeof name === 'string') {"," altName = altName || name;"," NodeList.addMethod(name, host[name]);"," } else {"," Y.Array.each(name, function(n) {"," NodeList.importMethod(host, n);"," });"," }","};","","NodeList._getTempNode = function(node) {"," var tmp = NodeList._tempNode;"," if (!tmp) {"," tmp = Y.Node.create('
');"," NodeList._tempNode = tmp;"," }",""," tmp._node = node;"," tmp._stateProxy = node;"," return tmp;","};","","Y.mix(NodeList.prototype, {"," _invoke: function(method, args, getter) {"," var ret = (getter) ? [] : this;",""," this.each(function(node) {"," var val = node[method].apply(node, args);"," if (getter) {"," ret.push(val);"," }"," });",""," return ret;"," },",""," /**"," * Retrieves the Node instance at the given index."," * @method item"," *"," * @param {Number} index The index of the target Node."," * @return {Node} The Node instance at the given index."," */"," item: function(index) {"," return Y.one((this._nodes || [])[index]);"," },",""," /**"," * Applies the given function to each Node in the NodeList."," * @method each"," * @param {Function} fn The function to apply. It receives 3 arguments:"," * the current node instance, the node's index, and the NodeList instance"," * @param {Object} context optional An optional context to apply the function with"," * Default context is the current Node instance"," * @chainable"," */"," each: function(fn, context) {"," var instance = this;"," Y.Array.each(this._nodes, function(node, index) {"," node = Y.one(node);"," return fn.call(context || node, node, index, instance);"," });"," return instance;"," },",""," batch: function(fn, context) {"," var nodelist = this;",""," Y.Array.each(this._nodes, function(node, index) {"," var UID,"," instance;",""," if (Y.Node._instances) {"," UID = (node.uniqueID && node.nodeType !== 9 ) ? 'uniqueID' : '_yuid';"," instance = Y.Node._instances[node[UID]];"," } else {"," instance = node._yui_instances && node._yui_instances[Y._yuid];"," }",""," if (!instance) {"," instance = NodeList._getTempNode(node);"," }",""," return fn.call(context || instance, instance, index, nodelist);"," });"," return nodelist;"," },",""," /**"," * Executes the function once for each node until a true value is returned."," * @method some"," * @param {Function} fn The function to apply. It receives 3 arguments:"," * the current node instance, the node's index, and the NodeList instance"," * @param {Object} context optional An optional context to execute the function from."," * Default context is the current Node instance"," * @return {Boolean} Whether or not the function returned true for any node."," */"," some: function(fn, context) {"," var instance = this;"," return Y.Array.some(this._nodes, function(node, index) {"," node = Y.one(node);"," context = context || node;"," return fn.call(context, node, index, instance);"," });"," },",""," /**"," * Creates a documenFragment from the nodes bound to the NodeList instance"," * @method toFrag"," * @return {Node} a Node instance bound to the documentFragment"," */"," toFrag: function() {"," return Y.one(Y.DOM._nl2frag(this._nodes));"," },",""," /**"," * Returns the index of the node in the NodeList instance"," * or -1 if the node isn't found."," * @method indexOf"," * @param {Node | HTMLElement} node the node to search for"," * @return {Number} the index of the node value or -1 if not found"," */"," indexOf: function(node) {"," return Y.Array.indexOf(this._nodes, Y.Node.getDOMNode(node));"," },",""," /**"," * Filters the NodeList instance down to only nodes matching the given selector."," * @method filter"," * @param {String} selector The selector to filter against"," * @return {NodeList} NodeList containing the updated collection"," * @see Selector"," */"," filter: function(selector) {"," return Y.all(Y.Selector.filter(this._nodes, selector));"," },","",""," /**"," * Creates a new NodeList containing all nodes at every n indices, where"," * remainder n % index equals r."," * (zero-based index)."," * @method modulus"," * @param {Number} n The offset to use (return every nth node)"," * @param {Number} r An optional remainder to use with the modulus operation (defaults to zero)"," * @return {NodeList} NodeList containing the updated collection"," */"," modulus: function(n, r) {"," r = r || 0;"," var nodes = [];"," NodeList.each(this, function(node, i) {"," if (i % n === r) {"," nodes.push(node);"," }"," });",""," return Y.all(nodes);"," },",""," /**"," * Creates a new NodeList containing all nodes at odd indices"," * (zero-based index)."," * @method odd"," * @return {NodeList} NodeList containing the updated collection"," */"," odd: function() {"," return this.modulus(2, 1);"," },",""," /**"," * Creates a new NodeList containing all nodes at even indices"," * (zero-based index), including zero."," * @method even"," * @return {NodeList} NodeList containing the updated collection"," */"," even: function() {"," return this.modulus(2);"," },",""," destructor: function() {"," },",""," /**"," * Reruns the initial query, when created using a selector query"," * @method refresh"," * @chainable"," */"," refresh: function() {"," var doc,"," nodes = this._nodes,"," query = this._query,"," root = this._queryRoot;",""," if (query) {"," if (!root) {"," if (nodes && nodes[0] && nodes[0].ownerDocument) {"," root = nodes[0].ownerDocument;"," }"," }",""," this._nodes = Y.Selector.query(query, root);"," }",""," return this;"," },",""," /**"," * Returns the current number of items in the NodeList."," * @method size"," * @return {Number} The number of items in the NodeList."," */"," size: function() {"," return this._nodes.length;"," },",""," /**"," * Determines if the instance is bound to any nodes"," * @method isEmpty"," * @return {Boolean} Whether or not the NodeList is bound to any nodes"," */"," isEmpty: function() {"," return this._nodes.length < 1;"," },",""," toString: function() {"," var str = '',"," errorMsg = this[UID] + ': not bound to any nodes',"," nodes = this._nodes,"," node;",""," if (nodes && nodes[0]) {"," node = nodes[0];"," str += node[NODE_NAME];"," if (node.id) {"," str += '#' + node.id;"," }",""," if (node.className) {"," str += '.' + node.className.replace(' ', '.');"," }",""," if (nodes.length > 1) {"," str += '...[' + nodes.length + ' items]';"," }"," }"," return str || errorMsg;"," },",""," /**"," * Returns the DOM node bound to the Node instance"," * @method getDOMNodes"," * @return {Array}"," */"," getDOMNodes: function() {"," return this._nodes;"," }","}, true);","","NodeList.importMethod(Y.Node.prototype, ["," /**"," * Called on each Node instance. Nulls internal node references,"," * removes any plugins and event listeners"," * @method destroy"," * @param {Boolean} recursivePurge (optional) Whether or not to"," * remove listeners from the node's subtree (default is false)"," * @see Node.destroy"," */"," 'destroy',",""," /**"," * Called on each Node instance. Removes and destroys all of the nodes"," * within the node"," * @method empty"," * @chainable"," * @see Node.empty"," */"," 'empty',",""," /**"," * Called on each Node instance. Removes the node from its parent."," * Shortcut for myNode.get('parentNode').removeChild(myNode);"," * @method remove"," * @param {Boolean} destroy whether or not to call destroy() on the node"," * after removal."," * @chainable"," * @see Node.remove"," */"," 'remove',",""," /**"," * Called on each Node instance. Sets an attribute on the Node instance."," * Unless pre-configured (via Node.ATTRS), set hands"," * off to the underlying DOM node. Only valid"," * attributes/properties for the node will be set."," * To set custom attributes use setAttribute."," * @method set"," * @param {String} attr The attribute to be set."," * @param {any} val The value to set the attribute to."," * @chainable"," * @see Node.set"," */"," 'set'","]);","","// one-off implementation to convert array of Nodes to NodeList","// e.g. Y.all('input').get('parentNode');","","/** Called on each Node instance"," * @method get"," * @see Node"," */","NodeList.prototype.get = function(attr) {"," var ret = [],"," nodes = this._nodes,"," isNodeList = false,"," getTemp = NodeList._getTempNode,"," UID,"," instance,"," val;",""," if (nodes[0]) {"," if (Y.Node._instances) {"," UID = (nodes[0].uniqueID && nodes[0].nodeType !== 9 ) ? 'uniqueID' : '_yuid';"," instance = Y.Node._instances[nodes[0][UID]];"," } else {"," instance = nodes[0]._yui_instances && nodes[0]._yui_instances[Y._yuid];"," }"," instance = instance || getTemp(nodes[0]);",""," val = instance._get(attr);"," if (val && val.nodeType) {"," isNodeList = true;"," }"," }",""," Y.Array.each(nodes, function(node) {"," if (Y.Node._instances) {"," UID = (node.uniqueID && node.nodeType !== 9 ) ? 'uniqueID' : '_yuid';"," instance = Y.Node._instances[node[UID]];"," } else {"," instance = node._yui_instances && node._yui_instances[Y._yuid];"," }",""," if (!instance) {"," instance = getTemp(node);"," }",""," val = instance._get(attr);"," if (!isNodeList) { // convert array of Nodes to NodeList"," val = Y.Node.scrubVal(val, instance);"," }",""," ret.push(val);"," });",""," return (isNodeList) ? Y.all(ret) : ret;","};","","Y.NodeList = NodeList;","","Y.all = function(nodes) {"," return new NodeList(nodes);","};","","Y.Node.all = Y.all;","/**"," * @module node"," * @submodule node-core"," */","","var Y_NodeList = Y.NodeList,"," ArrayProto = Array.prototype,"," ArrayMethods = {"," /** Returns a new NodeList combining the given NodeList(s)"," * @for NodeList"," * @method concat"," * @param {NodeList | Array} valueN Arrays/NodeLists and/or values to"," * concatenate to the resulting NodeList"," * @return {NodeList} A new NodeList comprised of this NodeList joined with the input."," */"," 'concat': 1,"," /** Removes the last from the NodeList and returns it."," * @for NodeList"," * @method pop"," * @return {Node | null} The last item in the NodeList, or null if the list is empty."," */"," 'pop': 0,"," /** Adds the given Node(s) to the end of the NodeList."," * @for NodeList"," * @method push"," * @param {Node | HTMLElement} nodes One or more nodes to add to the end of the NodeList."," */"," 'push': 0,"," /** Removes the first item from the NodeList and returns it."," * @for NodeList"," * @method shift"," * @return {Node | null} The first item in the NodeList, or null if the NodeList is empty."," */"," 'shift': 0,"," /** Returns a new NodeList comprising the Nodes in the given range."," * @for NodeList"," * @method slice"," * @param {Number} begin Zero-based index at which to begin extraction."," As a negative index, start indicates an offset from the end of the sequence. slice(-2) extracts the second-to-last element and the last element in the sequence."," * @param {Number} end Zero-based index at which to end extraction. slice extracts up to but not including end."," slice(1,4) extracts the second element through the fourth element (elements indexed 1, 2, and 3)."," As a negative index, end indicates an offset from the end of the sequence. slice(2,-1) extracts the third element through the second-to-last element in the sequence."," If end is omitted, slice extracts to the end of the sequence."," * @return {NodeList} A new NodeList comprised of this NodeList joined with the input."," */"," 'slice': 1,"," /** Changes the content of the NodeList, adding new elements while removing old elements."," * @for NodeList"," * @method splice"," * @param {Number} index Index at which to start changing the array. If negative, will begin that many elements from the end."," * @param {Number} howMany An integer indicating the number of old array elements to remove. If howMany is 0, no elements are removed. In this case, you should specify at least one new element. If no howMany parameter is specified (second syntax above, which is a SpiderMonkey extension), all elements after index are removed."," * {Node | HTMLElement| element1, ..., elementN"," The elements to add to the array. If you don't specify any elements, splice simply removes elements from the array."," * @return {NodeList} The element(s) removed."," */"," 'splice': 1,"," /** Adds the given Node(s) to the beginning of the NodeList."," * @for NodeList"," * @method unshift"," * @param {Node | HTMLElement} nodes One or more nodes to add to the NodeList."," */"," 'unshift': 0"," };","","","Y.Object.each(ArrayMethods, function(returnNodeList, name) {"," Y_NodeList.prototype[name] = function() {"," var args = [],"," i = 0,"," arg,"," ret;",""," while (typeof (arg = arguments[i++]) != 'undefined') { // use DOM nodes/nodeLists"," args.push(arg._node || arg._nodes || arg);"," }",""," ret = ArrayProto[name].apply(this._nodes, args);",""," if (returnNodeList) {"," ret = Y.all(ret);"," } else {"," ret = Y.Node.scrubVal(ret);"," }",""," return ret;"," };","});","/**"," * @module node"," * @submodule node-core"," */","","Y.Array.each(["," /**"," * Passes through to DOM method."," * @for Node"," * @method removeChild"," * @param {HTMLElement | Node} node Node to be removed"," * @return {Node} The removed node"," */"," 'removeChild',",""," /**"," * Passes through to DOM method."," * @method hasChildNodes"," * @return {Boolean} Whether or not the node has any childNodes"," */"," 'hasChildNodes',",""," /**"," * Passes through to DOM method."," * @method cloneNode"," * @param {Boolean} deep Whether or not to perform a deep clone, which includes"," * subtree and attributes"," * @return {Node} The clone"," */"," 'cloneNode',",""," /**"," * Passes through to DOM method."," * @method hasAttribute"," * @param {String} attribute The attribute to test for"," * @return {Boolean} Whether or not the attribute is present"," */"," 'hasAttribute',",""," /**"," * Passes through to DOM method."," * @method scrollIntoView"," * @chainable"," */"," 'scrollIntoView',",""," /**"," * Passes through to DOM method."," * @method getElementsByTagName"," * @param {String} tagName The tagName to collect"," * @return {NodeList} A NodeList representing the HTMLCollection"," */"," 'getElementsByTagName',",""," /**"," * Passes through to DOM method."," * @method focus"," * @chainable"," */"," 'focus',",""," /**"," * Passes through to DOM method."," * @method blur"," * @chainable"," */"," 'blur',",""," /**"," * Passes through to DOM method."," * Only valid on FORM elements"," * @method submit"," * @chainable"," */"," 'submit',",""," /**"," * Passes through to DOM method."," * Only valid on FORM elements"," * @method reset"," * @chainable"," */"," 'reset',",""," /**"," * Passes through to DOM method."," * @method select"," * @chainable"," */"," 'select',",""," /**"," * Passes through to DOM method."," * Only valid on TABLE elements"," * @method createCaption"," * @chainable"," */"," 'createCaption'","","], function(method) {"," Y.Node.prototype[method] = function(arg1, arg2, arg3) {"," var ret = this.invoke(method, arg1, arg2, arg3);"," return ret;"," };","});","","/**"," * Passes through to DOM method."," * @method removeAttribute"," * @param {String} attribute The attribute to be removed"," * @chainable"," */"," // one-off implementation due to IE returning boolean, breaking chaining","Y.Node.prototype.removeAttribute = function(attr) {"," var node = this._node;"," if (node) {"," node.removeAttribute(attr, 0); // comma zero for IE < 8 to force case-insensitive"," }",""," return this;","};","","Y.Node.importMethod(Y.DOM, ["," /**"," * Determines whether the node is an ancestor of another HTML element in the DOM hierarchy."," * @method contains"," * @param {Node | HTMLElement} needle The possible node or descendent"," * @return {Boolean} Whether or not this node is the needle its ancestor"," */"," 'contains',"," /**"," * Allows setting attributes on DOM nodes, normalizing in some cases."," * This passes through to the DOM node, allowing for custom attributes."," * @method setAttribute"," * @for Node"," * @chainable"," * @param {string} name The attribute name"," * @param {string} value The value to set"," */"," 'setAttribute',"," /**"," * Allows getting attributes on DOM nodes, normalizing in some cases."," * This passes through to the DOM node, allowing for custom attributes."," * @method getAttribute"," * @for Node"," * @param {string} name The attribute name"," * @return {string} The attribute value"," */"," 'getAttribute',",""," /**"," * Wraps the given HTML around the node."," * @method wrap"," * @param {String} html The markup to wrap around the node."," * @chainable"," * @for Node"," */"," 'wrap',",""," /**"," * Removes the node's parent node."," * @method unwrap"," * @chainable"," */"," 'unwrap',",""," /**"," * Applies a unique ID to the node if none exists"," * @method generateID"," * @return {String} The existing or generated ID"," */"," 'generateID'","]);","","Y.NodeList.importMethod(Y.Node.prototype, [","/**"," * Allows getting attributes on DOM nodes, normalizing in some cases."," * This passes through to the DOM node, allowing for custom attributes."," * @method getAttribute"," * @see Node"," * @for NodeList"," * @param {string} name The attribute name"," * @return {string} The attribute value"," */",""," 'getAttribute',","/**"," * Allows setting attributes on DOM nodes, normalizing in some cases."," * This passes through to the DOM node, allowing for custom attributes."," * @method setAttribute"," * @see Node"," * @for NodeList"," * @chainable"," * @param {string} name The attribute name"," * @param {string} value The value to set"," */"," 'setAttribute',","","/**"," * Allows for removing attributes on DOM nodes."," * This passes through to the DOM node, allowing for custom attributes."," * @method removeAttribute"," * @see Node"," * @for NodeList"," * @param {string} name The attribute to remove"," */"," 'removeAttribute',","/**"," * Removes the parent node from node in the list."," * @method unwrap"," * @chainable"," */"," 'unwrap',","/**"," * Wraps the given HTML around each node."," * @method wrap"," * @param {String} html The markup to wrap around the node."," * @chainable"," */"," 'wrap',","","/**"," * Applies a unique ID to each node if none exists"," * @method generateID"," * @return {String} The existing or generated ID"," */"," 'generateID'","]);","","","}, '@VERSION@', {\"requires\": [\"dom-core\", \"selector\"]});","","}());"]}; } var __cov_LGqepiXuzGEZpz3IhlW0rQ = __coverage__['build/node-core/node-core.js']; -__cov_LGqepiXuzGEZpz3IhlW0rQ.s['1']++;YUI.add('node-core',function(Y,NAME){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['1']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['2']++;var DOT='.',NODE_NAME='nodeName',NODE_TYPE='nodeType',OWNER_DOCUMENT='ownerDocument',TAG_NAME='tagName',UID='_yuid',EMPTY_OBJ={},_slice=Array.prototype.slice,Y_DOM=Y.DOM,Y_Node=function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['2']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['3']++;if(!this.getDOMNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['1'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['4']++;return new Y_Node(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['1'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['5']++;if(typeof node=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['2'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['6']++;node=Y_Node._fromString(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['7']++;if(!node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['3'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['8']++;return null;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['3'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['2'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['9']++;var uid=node.nodeType!==9?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['4'][0]++,node.uniqueID):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['4'][1]++,node[UID]);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['10']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['6'][0]++,uid)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['6'][1]++,Y_Node._instances[uid])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['6'][2]++,Y_Node._instances[uid]._node!==node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['5'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['11']++;node[UID]=null;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['5'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['12']++;uid=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['7'][0]++,uid)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['7'][1]++,Y.stamp(node));__cov_LGqepiXuzGEZpz3IhlW0rQ.s['13']++;if(!uid){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['8'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['14']++;uid=Y.guid();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['8'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['15']++;this[UID]=uid;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['16']++;this._node=node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['17']++;this._stateProxy=node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['18']++;if(this._initPlugins){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['9'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['19']++;this._initPlugins();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['9'][1]++;}},_wrapFn=function(fn){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['3']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['20']++;var ret=null;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['21']++;if(fn){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['10'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['22']++;ret=typeof fn=='string'?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['11'][0]++,function(n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['4']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['23']++;return Y.Selector.test(n,fn);}):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['11'][1]++,function(n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['5']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['24']++;return fn(Y.one(n));});}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['10'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['25']++;return ret;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['26']++;Y_Node.ATTRS={};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['27']++;Y_Node.DOM_EVENTS={};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['28']++;Y_Node._fromString=function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['6']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['29']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['12'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['30']++;if(node.indexOf('doc')===0){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['13'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['31']++;node=Y.config.doc;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['13'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['32']++;if(node.indexOf('win')===0){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['14'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['33']++;node=Y.config.win;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['14'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['34']++;node=Y.Selector.query(node,null,true);}}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['12'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['35']++;return(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['15'][0]++,node)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['15'][1]++,null);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['36']++;Y_Node.NAME='node';__cov_LGqepiXuzGEZpz3IhlW0rQ.s['37']++;Y_Node.re_aria=/^(?:role$|aria-)/;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['38']++;Y_Node.SHOW_TRANSITION='fadeIn';__cov_LGqepiXuzGEZpz3IhlW0rQ.s['39']++;Y_Node.HIDE_TRANSITION='fadeOut';__cov_LGqepiXuzGEZpz3IhlW0rQ.s['40']++;Y_Node._instances={};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['41']++;Y_Node.getDOMNode=function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['7']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['42']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['16'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['43']++;return node.nodeType?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['17'][0]++,node):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['17'][1]++,(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['18'][0]++,node._node)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['18'][1]++,null));}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['16'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['44']++;return null;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['45']++;Y_Node.scrubVal=function(val,node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['8']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['46']++;if(val){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['19'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['47']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['21'][0]++,typeof val=='object')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['21'][1]++,typeof val=='function')){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['20'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['48']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['23'][0]++,NODE_TYPE in val)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['23'][1]++,Y_DOM.isWindow(val))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['22'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['49']++;val=Y.one(val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['22'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['50']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['25'][0]++,val.item)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['25'][1]++,!val._nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['25'][2]++,val[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['25'][3]++,val[0][NODE_TYPE])){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['24'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['51']++;val=Y.all(val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['24'][1]++;}}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['20'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['19'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['52']++;if(typeof val==='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['26'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['53']++;val=node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['26'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['54']++;if(val===null){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['27'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['55']++;val=null;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['27'][1]++;}}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['56']++;return val;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['57']++;Y_Node.addMethod=function(name,fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['9']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['58']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['29'][0]++,name)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['29'][1]++,fn)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['29'][2]++,typeof fn=='function')){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['28'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['59']++;Y_Node.prototype[name]=function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['10']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['60']++;var args=_slice.call(arguments),node=this,ret;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['61']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['31'][0]++,args[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['31'][1]++,args[0]._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['30'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['62']++;args[0]=args[0]._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['30'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['63']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['33'][0]++,args[1])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['33'][1]++,args[1]._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['32'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['64']++;args[1]=args[1]._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['32'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['65']++;args.unshift(node._node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['66']++;ret=fn.apply((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['34'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['34'][1]++,node),args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['67']++;if(ret){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['35'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['68']++;ret=Y_Node.scrubVal(ret,node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['35'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['69']++;(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['36'][0]++,typeof ret!='undefined')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['36'][1]++,ret=node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['70']++;return ret;};}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['28'][1]++;}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['71']++;Y_Node.importMethod=function(host,name,altName){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['11']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['72']++;if(typeof name=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['37'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['73']++;altName=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['38'][0]++,altName)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['38'][1]++,name);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['74']++;Y_Node.addMethod(altName,host[name],host);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['37'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['75']++;Y.Array.each(name,function(n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['12']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['76']++;Y_Node.importMethod(host,n);});}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['77']++;Y_Node.one=function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['13']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['78']++;var instance=null,cachedNode,uid;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['79']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['39'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['80']++;if(typeof node=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['40'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['81']++;node=Y_Node._fromString(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['82']++;if(!node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['41'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['83']++;return null;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['41'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['40'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['84']++;if(node.getDOMNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['42'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['85']++;return node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['42'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['86']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['44'][0]++,node.nodeType)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['44'][1]++,Y.DOM.isWindow(node))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['43'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['87']++;uid=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['46'][0]++,node.uniqueID)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['46'][1]++,node.nodeType!==9)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['45'][0]++,node.uniqueID):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['45'][1]++,node._yuid);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['88']++;instance=Y_Node._instances[uid];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['89']++;cachedNode=instance?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['47'][0]++,instance._node):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['47'][1]++,null);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['90']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['49'][0]++,!instance)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['49'][1]++,cachedNode)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['49'][2]++,node!==cachedNode)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['48'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['91']++;instance=new Y_Node(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['92']++;if(node.nodeType!=11){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['50'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['93']++;Y_Node._instances[instance[UID]]=instance;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['50'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['48'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['43'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['39'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['94']++;return instance;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['95']++;Y_Node.DEFAULT_SETTER=function(name,val){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['14']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['96']++;var node=this._stateProxy,strPath;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['97']++;if(name.indexOf(DOT)>-1){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['51'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['98']++;strPath=name;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['99']++;name=name.split(DOT);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['100']++;Y.Object.setValue(node,name,val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['51'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['101']++;if(typeof node[name]!='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['52'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['102']++;node[name]=val;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['52'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['103']++;return val;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['104']++;Y_Node.DEFAULT_GETTER=function(name){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['15']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['105']++;var node=this._stateProxy,val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['106']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['54'][0]++,name.indexOf)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['54'][1]++,name.indexOf(DOT)>-1)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['53'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['107']++;val=Y.Object.getValue(node,name.split(DOT));}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['53'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['108']++;if(typeof node[name]!='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['55'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['109']++;val=node[name];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['55'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['110']++;return val;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['111']++;Y.mix(Y_Node.prototype,{DATA_PREFIX:'data-',toString:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['16']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['112']++;var str=this[UID]+': not bound to a node',node=this._node,attrs,id,className;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['113']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['56'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['114']++;attrs=node.attributes;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['115']++;id=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['58'][0]++,attrs)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['58'][1]++,attrs.id)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['57'][0]++,node.getAttribute('id')):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['57'][1]++,null);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['116']++;className=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['60'][0]++,attrs)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['60'][1]++,attrs.className)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['59'][0]++,node.getAttribute('className')):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['59'][1]++,null);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['117']++;str=node[NODE_NAME];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['118']++;if(id){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['61'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['119']++;str+='#'+id;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['61'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['120']++;if(className){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['62'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['121']++;str+='.'+className.replace(' ','.');}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['62'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['122']++;str+=' '+this[UID];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['56'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['123']++;return str;},get:function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['17']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['124']++;var val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['125']++;if(this._getAttr){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['63'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['126']++;val=this._getAttr(attr);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['63'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['127']++;val=this._get(attr);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['128']++;if(val){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['64'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['129']++;val=Y_Node.scrubVal(val,this);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['64'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['130']++;if(val===null){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['65'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['131']++;val=null;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['65'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['132']++;return val;},_get:function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['18']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['133']++;var attrConfig=Y_Node.ATTRS[attr],val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['134']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['67'][0]++,attrConfig)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['67'][1]++,attrConfig.getter)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['66'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['135']++;val=attrConfig.getter.call(this);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['66'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['136']++;if(Y_Node.re_aria.test(attr)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['68'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['137']++;val=this._node.getAttribute(attr,2);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['68'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['138']++;val=Y_Node.DEFAULT_GETTER.apply(this,arguments);}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['139']++;return val;},set:function(attr,val){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['19']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['140']++;var attrConfig=Y_Node.ATTRS[attr];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['141']++;if(this._setAttr){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['69'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['142']++;this._setAttr.apply(this,arguments);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['69'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['143']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['71'][0]++,attrConfig)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['71'][1]++,attrConfig.setter)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['70'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['144']++;attrConfig.setter.call(this,val,attr);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['70'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['145']++;if(Y_Node.re_aria.test(attr)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['72'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['146']++;this._node.setAttribute(attr,val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['72'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['147']++;Y_Node.DEFAULT_SETTER.apply(this,arguments);}}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['148']++;return this;},setAttrs:function(attrMap){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['20']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['149']++;if(this._setAttrs){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['73'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['150']++;this._setAttrs(attrMap);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['73'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['151']++;Y.Object.each(attrMap,function(v,n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['21']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['152']++;this.set(n,v);},this);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['153']++;return this;},getAttrs:function(attrs){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['22']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['154']++;var ret={};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['155']++;if(this._getAttrs){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['74'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['156']++;this._getAttrs(attrs);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['74'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['157']++;Y.Array.each(attrs,function(v,n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['23']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['158']++;ret[v]=this.get(v);},this);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['159']++;return ret;},compareTo:function(refNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['24']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['160']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['161']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['76'][0]++,refNode)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['76'][1]++,refNode._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['75'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['162']++;refNode=refNode._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['75'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['163']++;return node===refNode;},inDoc:function(doc){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['25']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['164']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['165']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['77'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['166']++;doc=doc?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['78'][0]++,(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['79'][0]++,doc._node)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['79'][1]++,doc)):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['78'][1]++,node[OWNER_DOCUMENT]);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['167']++;if(doc.documentElement){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['80'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['168']++;return Y_DOM.contains(doc.documentElement,node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['80'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['77'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['169']++;return false;},getById:function(id){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['26']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['170']++;var node=this._node,ret=Y_DOM.byId(id,node[OWNER_DOCUMENT]);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['171']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['82'][0]++,ret)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['82'][1]++,Y_DOM.contains(node,ret))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['81'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['172']++;ret=Y.one(ret);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['81'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['173']++;ret=null;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['174']++;return ret;},ancestor:function(fn,testSelf,stopFn){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['27']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['175']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['84'][0]++,arguments.length===2)&&((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['84'][1]++,typeof testSelf=='string')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['84'][2]++,typeof testSelf=='function'))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['83'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['176']++;stopFn=testSelf;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['83'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['177']++;return Y.one(Y_DOM.ancestor(this._node,_wrapFn(fn),testSelf,_wrapFn(stopFn)));},ancestors:function(fn,testSelf,stopFn){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['28']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['178']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['86'][0]++,arguments.length===2)&&((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['86'][1]++,typeof testSelf=='string')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['86'][2]++,typeof testSelf=='function'))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['85'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['179']++;stopFn=testSelf;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['85'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['180']++;return Y.all(Y_DOM.ancestors(this._node,_wrapFn(fn),testSelf,_wrapFn(stopFn)));},previous:function(fn,all){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['29']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['181']++;return Y.one(Y_DOM.elementByAxis(this._node,'previousSibling',_wrapFn(fn),all));},next:function(fn,all){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['30']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['182']++;return Y.one(Y_DOM.elementByAxis(this._node,'nextSibling',_wrapFn(fn),all));},siblings:function(fn){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['31']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['183']++;return Y.all(Y_DOM.siblings(this._node,_wrapFn(fn)));},one:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['32']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['184']++;return Y.one(Y.Selector.query(selector,this._node,true));},all:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['33']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['185']++;var nodelist;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['186']++;if(this._node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['87'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['187']++;nodelist=Y.all(Y.Selector.query(selector,this._node));__cov_LGqepiXuzGEZpz3IhlW0rQ.s['188']++;nodelist._query=selector;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['189']++;nodelist._queryRoot=this._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['87'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['190']++;return(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['88'][0]++,nodelist)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['88'][1]++,Y.all([]));},test:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['34']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['191']++;return Y.Selector.test(this._node,selector);},remove:function(destroy){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['35']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['192']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['193']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['90'][0]++,node)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['90'][1]++,node.parentNode)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['89'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['194']++;node.parentNode.removeChild(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['89'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['195']++;if(destroy){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['91'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['196']++;this.destroy();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['91'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['197']++;return this;},replace:function(newNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['36']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['198']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['199']++;if(typeof newNode=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['92'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['200']++;newNode=Y_Node.create(newNode);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['92'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['201']++;node.parentNode.replaceChild(Y_Node.getDOMNode(newNode),node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['202']++;return this;},replaceChild:function(node,refNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['37']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['203']++;if(typeof node=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['93'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['204']++;node=Y_DOM.create(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['93'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['205']++;return Y.one(this._node.replaceChild(Y_Node.getDOMNode(node),Y_Node.getDOMNode(refNode)));},destroy:function(recursive){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['38']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['206']++;var UID=Y.config.doc.uniqueID?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['94'][0]++,'uniqueID'):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['94'][1]++,'_yuid'),instance;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['207']++;this.purge();__cov_LGqepiXuzGEZpz3IhlW0rQ.s['208']++;if(this.unplug){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['95'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['209']++;this.unplug();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['95'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['210']++;this.clearData();__cov_LGqepiXuzGEZpz3IhlW0rQ.s['211']++;if(recursive){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['96'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['212']++;Y.NodeList.each(this.all('*'),function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['39']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['213']++;instance=Y_Node._instances[node[UID]];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['214']++;if(instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['97'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['215']++;instance.destroy();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['97'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['216']++;Y.Event.purgeElement(node);}});}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['96'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['217']++;this._node=null;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['218']++;this._stateProxy=null;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['219']++;delete Y_Node._instances[this._yuid];},invoke:function(method,a,b,c,d,e){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['40']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['220']++;var node=this._node,ret;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['221']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['99'][0]++,a)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['99'][1]++,a._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['98'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['222']++;a=a._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['98'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['223']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['101'][0]++,b)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['101'][1]++,b._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['100'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['224']++;b=b._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['100'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['225']++;ret=node[method](a,b,c,d,e);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['226']++;return Y_Node.scrubVal(ret,this);},swap:Y.config.doc.documentElement.swapNode?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['102'][0]++,function(otherNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['41']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['227']++;this._node.swapNode(Y_Node.getDOMNode(otherNode));}):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['102'][1]++,function(otherNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['42']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['228']++;otherNode=Y_Node.getDOMNode(otherNode);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['229']++;var node=this._node,parent=otherNode.parentNode,nextSibling=otherNode.nextSibling;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['230']++;if(nextSibling===node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['103'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['231']++;parent.insertBefore(node,otherNode);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['103'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['232']++;if(otherNode===node.nextSibling){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['104'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['233']++;parent.insertBefore(otherNode,node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['104'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['234']++;node.parentNode.replaceChild(otherNode,node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['235']++;Y_DOM.addHTML(parent,node,nextSibling);}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['236']++;return this;}),hasMethod:function(method){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['43']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['237']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['238']++;return!!((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['105'][0]++,node)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['105'][1]++,method in node)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['105'][2]++,typeof node[method]!='unknown')&&((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['105'][3]++,typeof node[method]=='function')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['105'][4]++,String(node[method]).indexOf('function')===1)));},isFragment:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['44']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['239']++;return this.get('nodeType')===11;},empty:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['45']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['240']++;this.get('childNodes').remove().destroy(true);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['241']++;return this;},getDOMNode:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['46']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['242']++;return this._node;}},true);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['243']++;Y.Node=Y_Node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['244']++;Y.one=Y_Node.one;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['245']++;var NodeList=function(nodes){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['47']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['246']++;var tmp=[];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['247']++;if(nodes){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['106'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['248']++;if(typeof nodes==='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['107'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['249']++;this._query=nodes;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['250']++;nodes=Y.Selector.query(nodes);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['107'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['251']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['109'][0]++,nodes.nodeType)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['109'][1]++,Y_DOM.isWindow(nodes))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['108'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['252']++;nodes=[nodes];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['108'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['253']++;if(nodes._node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['110'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['254']++;nodes=[nodes._node];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['110'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['255']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['112'][0]++,nodes[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['112'][1]++,nodes[0]._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['111'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['256']++;Y.Array.each(nodes,function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['48']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['257']++;if(node._node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['113'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['258']++;tmp.push(node._node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['113'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['259']++;nodes=tmp;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['111'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['260']++;nodes=Y.Array(nodes,0,true);}}}}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['106'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['261']++;this._nodes=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['114'][0]++,nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['114'][1]++,[]);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['262']++;NodeList.NAME='NodeList';__cov_LGqepiXuzGEZpz3IhlW0rQ.s['263']++;NodeList.getDOMNodes=function(nodelist){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['49']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['264']++;return(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['116'][0]++,nodelist)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['116'][1]++,nodelist._nodes)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['115'][0]++,nodelist._nodes):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['115'][1]++,nodelist);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['265']++;NodeList.each=function(instance,fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['50']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['266']++;var nodes=instance._nodes;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['267']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['118'][0]++,nodes)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['118'][1]++,nodes.length)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['117'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['268']++;Y.Array.each(nodes,fn,(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['119'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['119'][1]++,instance));}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['117'][1]++;}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['269']++;NodeList.addMethod=function(name,fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['51']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['270']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['121'][0]++,name)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['121'][1]++,fn)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['120'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['271']++;NodeList.prototype[name]=function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['52']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['272']++;var ret=[],args=arguments;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['273']++;Y.Array.each(this._nodes,function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['53']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['274']++;var UID=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['123'][0]++,node.uniqueID)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['123'][1]++,node.nodeType!==9)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['122'][0]++,'uniqueID'):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['122'][1]++,'_yuid'),instance=Y.Node._instances[node[UID]],ctx,result;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['275']++;if(!instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['124'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['276']++;instance=NodeList._getTempNode(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['124'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['277']++;ctx=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['125'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['125'][1]++,instance);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['278']++;result=fn.apply(ctx,args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['279']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['127'][0]++,result!==undefined)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['127'][1]++,result!==instance)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['126'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['280']++;ret[ret.length]=result;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['126'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['281']++;return ret.length?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['128'][0]++,ret):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['128'][1]++,this);};}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['120'][1]++;}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['282']++;NodeList.importMethod=function(host,name,altName){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['54']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['283']++;if(typeof name==='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['129'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['284']++;altName=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['130'][0]++,altName)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['130'][1]++,name);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['285']++;NodeList.addMethod(name,host[name]);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['129'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['286']++;Y.Array.each(name,function(n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['55']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['287']++;NodeList.importMethod(host,n);});}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['288']++;NodeList._getTempNode=function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['56']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['289']++;var tmp=NodeList._tempNode;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['290']++;if(!tmp){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['131'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['291']++;tmp=Y.Node.create('
');__cov_LGqepiXuzGEZpz3IhlW0rQ.s['292']++;NodeList._tempNode=tmp;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['131'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['293']++;tmp._node=node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['294']++;tmp._stateProxy=node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['295']++;return tmp;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['296']++;Y.mix(NodeList.prototype,{_invoke:function(method,args,getter){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['57']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['297']++;var ret=getter?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['132'][0]++,[]):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['132'][1]++,this);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['298']++;this.each(function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['58']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['299']++;var val=node[method].apply(node,args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['300']++;if(getter){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['133'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['301']++;ret.push(val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['133'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['302']++;return ret;},item:function(index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['59']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['303']++;return Y.one(((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['134'][0]++,this._nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['134'][1]++,[]))[index]);},each:function(fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['60']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['304']++;var instance=this;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['305']++;Y.Array.each(this._nodes,function(node,index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['61']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['306']++;node=Y.one(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['307']++;return fn.call((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['135'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['135'][1]++,node),node,index,instance);});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['308']++;return instance;},batch:function(fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['62']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['309']++;var nodelist=this;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['310']++;Y.Array.each(this._nodes,function(node,index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['63']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['311']++;var instance=Y.Node._instances[node[UID]];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['312']++;if(!instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['136'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['313']++;instance=NodeList._getTempNode(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['136'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['314']++;return fn.call((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['137'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['137'][1]++,instance),instance,index,nodelist);});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['315']++;return nodelist;},some:function(fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['64']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['316']++;var instance=this;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['317']++;return Y.Array.some(this._nodes,function(node,index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['65']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['318']++;node=Y.one(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['319']++;context=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['138'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['138'][1]++,node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['320']++;return fn.call(context,node,index,instance);});},toFrag:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['66']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['321']++;return Y.one(Y.DOM._nl2frag(this._nodes));},indexOf:function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['67']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['322']++;return Y.Array.indexOf(this._nodes,Y.Node.getDOMNode(node));},filter:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['68']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['323']++;return Y.all(Y.Selector.filter(this._nodes,selector));},modulus:function(n,r){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['69']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['324']++;r=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['139'][0]++,r)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['139'][1]++,0);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['325']++;var nodes=[];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['326']++;NodeList.each(this,function(node,i){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['70']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['327']++;if(i%n===r){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['140'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['328']++;nodes.push(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['140'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['329']++;return Y.all(nodes);},odd:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['71']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['330']++;return this.modulus(2,1);},even:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['72']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['331']++;return this.modulus(2);},destructor:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['73']++;},refresh:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['74']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['332']++;var doc,nodes=this._nodes,query=this._query,root=this._queryRoot;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['333']++;if(query){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['141'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['334']++;if(!root){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['142'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['335']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['144'][0]++,nodes)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['144'][1]++,nodes[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['144'][2]++,nodes[0].ownerDocument)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['143'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['336']++;root=nodes[0].ownerDocument;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['143'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['142'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['337']++;this._nodes=Y.Selector.query(query,root);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['141'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['338']++;return this;},size:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['75']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['339']++;return this._nodes.length;},isEmpty:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['76']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['340']++;return this._nodes.length<1;},toString:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['77']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['341']++;var str='',errorMsg=this[UID]+': not bound to any nodes',nodes=this._nodes,node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['342']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['146'][0]++,nodes)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['146'][1]++,nodes[0])){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['145'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['343']++;node=nodes[0];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['344']++;str+=node[NODE_NAME];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['345']++;if(node.id){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['147'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['346']++;str+='#'+node.id;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['147'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['347']++;if(node.className){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['148'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['348']++;str+='.'+node.className.replace(' ','.');}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['148'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['349']++;if(nodes.length>1){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['149'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['350']++;str+='...['+nodes.length+' items]';}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['149'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['145'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['351']++;return(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['150'][0]++,str)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['150'][1]++,errorMsg);},getDOMNodes:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['78']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['352']++;return this._nodes;}},true);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['353']++;NodeList.importMethod(Y.Node.prototype,['destroy','empty','remove','set']);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['354']++;NodeList.prototype.get=function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['79']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['355']++;var ret=[],nodes=this._nodes,isNodeList=false,getTemp=NodeList._getTempNode,instance,val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['356']++;if(nodes[0]){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['151'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['357']++;instance=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['152'][0]++,Y.Node._instances[nodes[0]._yuid])||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['152'][1]++,getTemp(nodes[0]));__cov_LGqepiXuzGEZpz3IhlW0rQ.s['358']++;val=instance._get(attr);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['359']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['154'][0]++,val)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['154'][1]++,val.nodeType)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['153'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['360']++;isNodeList=true;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['153'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['151'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['361']++;Y.Array.each(nodes,function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['80']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['362']++;instance=Y.Node._instances[node._yuid];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['363']++;if(!instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['155'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['364']++;instance=getTemp(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['155'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['365']++;val=instance._get(attr);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['366']++;if(!isNodeList){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['156'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['367']++;val=Y.Node.scrubVal(val,instance);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['156'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['368']++;ret.push(val);});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['369']++;return isNodeList?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['157'][0]++,Y.all(ret)):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['157'][1]++,ret);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['370']++;Y.NodeList=NodeList;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['371']++;Y.all=function(nodes){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['81']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['372']++;return new NodeList(nodes);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['373']++;Y.Node.all=Y.all;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['374']++;var Y_NodeList=Y.NodeList,ArrayProto=Array.prototype,ArrayMethods={'concat':1,'pop':0,'push':0,'shift':0,'slice':1,'splice':1,'unshift':0};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['375']++;Y.Object.each(ArrayMethods,function(returnNodeList,name){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['82']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['376']++;Y_NodeList.prototype[name]=function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['83']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['377']++;var args=[],i=0,arg,ret;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['378']++;while(typeof(arg=arguments[i++])!='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.s['379']++;args.push((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['158'][0]++,arg._node)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['158'][1]++,arg._nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['158'][2]++,arg));}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['380']++;ret=ArrayProto[name].apply(this._nodes,args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['381']++;if(returnNodeList){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['159'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['382']++;ret=Y.all(ret);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['159'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['383']++;ret=Y.Node.scrubVal(ret);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['384']++;return ret;};});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['385']++;Y.Array.each(['removeChild','hasChildNodes','cloneNode','hasAttribute','scrollIntoView','getElementsByTagName','focus','blur','submit','reset','select','createCaption'],function(method){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['84']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['386']++;Y.Node.prototype[method]=function(arg1,arg2,arg3){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['85']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['387']++;var ret=this.invoke(method,arg1,arg2,arg3);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['388']++;return ret;};});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['389']++;Y.Node.prototype.removeAttribute=function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['86']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['390']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['391']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['160'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['392']++;node.removeAttribute(attr,0);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['160'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['393']++;return this;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['394']++;Y.Node.importMethod(Y.DOM,['contains','setAttribute','getAttribute','wrap','unwrap','generateID']);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['395']++;Y.NodeList.importMethod(Y.Node.prototype,['getAttribute','setAttribute','removeAttribute','unwrap','wrap','generateID']);},'@VERSION@',{'requires':['dom-core','selector']}); +__cov_LGqepiXuzGEZpz3IhlW0rQ.s['1']++;YUI.add('node-core',function(Y,NAME){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['1']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['2']++;var DOT='.',NODE_NAME='nodeName',NODE_TYPE='nodeType',OWNER_DOCUMENT='ownerDocument',TAG_NAME='tagName',UID='_yuid',EMPTY_OBJ={},use_instance_map=Y.UA.ie>0,_slice=Array.prototype.slice,Y_DOM=Y.DOM,Y_Node=function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['2']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['3']++;if(!this.getDOMNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['1'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['4']++;return new Y_Node(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['1'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['5']++;if(typeof node=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['2'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['6']++;node=Y_Node._fromString(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['7']++;if(!node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['3'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['8']++;return null;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['3'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['2'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['9']++;var uid=node.nodeType!==9?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['4'][0]++,node.uniqueID):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['4'][1]++,node[UID]);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['10']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['6'][0]++,use_instance_map)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['6'][1]++,uid)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['6'][2]++,Y_Node._instances[uid])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['6'][3]++,Y_Node._instances[uid]._node!==node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['5'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['11']++;node[UID]=null;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['5'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['12']++;uid=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['7'][0]++,uid)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['7'][1]++,Y.stamp(node));__cov_LGqepiXuzGEZpz3IhlW0rQ.s['13']++;if(!uid){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['8'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['14']++;uid=Y.guid();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['8'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['15']++;this[UID]=uid;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['16']++;this._node=node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['17']++;this._stateProxy=node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['18']++;if(this._initPlugins){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['9'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['19']++;this._initPlugins();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['9'][1]++;}},_wrapFn=function(fn){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['3']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['20']++;var ret=null;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['21']++;if(fn){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['10'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['22']++;ret=typeof fn=='string'?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['11'][0]++,function(n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['4']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['23']++;return Y.Selector.test(n,fn);}):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['11'][1]++,function(n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['5']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['24']++;return fn(Y.one(n));});}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['10'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['25']++;return ret;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['26']++;Y_Node.ATTRS={};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['27']++;Y_Node.DOM_EVENTS={};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['28']++;Y_Node._fromString=function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['6']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['29']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['12'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['30']++;if(node.indexOf('doc')===0){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['13'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['31']++;node=Y.config.doc;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['13'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['32']++;if(node.indexOf('win')===0){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['14'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['33']++;node=Y.config.win;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['14'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['34']++;node=Y.Selector.query(node,null,true);}}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['12'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['35']++;return(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['15'][0]++,node)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['15'][1]++,null);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['36']++;Y_Node.NAME='node';__cov_LGqepiXuzGEZpz3IhlW0rQ.s['37']++;Y_Node.re_aria=/^(?:role$|aria-)/;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['38']++;Y_Node.SHOW_TRANSITION='fadeIn';__cov_LGqepiXuzGEZpz3IhlW0rQ.s['39']++;Y_Node.HIDE_TRANSITION='fadeOut';__cov_LGqepiXuzGEZpz3IhlW0rQ.s['40']++;if(use_instance_map){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['16'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['41']++;Y_Node._instances={};}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['16'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['42']++;Y_Node.getDOMNode=function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['7']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['43']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['17'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['44']++;return node.nodeType?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['18'][0]++,node):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['18'][1]++,(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['19'][0]++,node._node)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['19'][1]++,null));}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['17'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['45']++;return null;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['46']++;Y_Node.scrubVal=function(val,node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['8']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['47']++;if(val){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['20'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['48']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['22'][0]++,typeof val=='object')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['22'][1]++,typeof val=='function')){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['21'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['49']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['24'][0]++,NODE_TYPE in val)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['24'][1]++,Y_DOM.isWindow(val))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['23'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['50']++;val=Y.one(val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['23'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['51']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['26'][0]++,val.item)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['26'][1]++,!val._nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['26'][2]++,val[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['26'][3]++,val[0][NODE_TYPE])){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['25'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['52']++;val=Y.all(val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['25'][1]++;}}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['21'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['20'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['53']++;if(typeof val==='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['27'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['54']++;val=node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['27'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['55']++;if(val===null){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['28'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['56']++;val=null;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['28'][1]++;}}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['57']++;return val;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['58']++;Y_Node.addMethod=function(name,fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['9']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['59']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['30'][0]++,name)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['30'][1]++,fn)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['30'][2]++,typeof fn=='function')){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['29'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['60']++;Y_Node.prototype[name]=function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['10']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['61']++;var args=_slice.call(arguments),node=this,ret;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['62']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['32'][0]++,args[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['32'][1]++,args[0]._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['31'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['63']++;args[0]=args[0]._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['31'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['64']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['34'][0]++,args[1])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['34'][1]++,args[1]._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['33'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['65']++;args[1]=args[1]._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['33'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['66']++;args.unshift(node._node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['67']++;ret=fn.apply((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['35'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['35'][1]++,node),args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['68']++;if(ret){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['36'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['69']++;ret=Y_Node.scrubVal(ret,node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['36'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['70']++;(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['37'][0]++,typeof ret!='undefined')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['37'][1]++,ret=node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['71']++;return ret;};}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['29'][1]++;}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['72']++;Y_Node.importMethod=function(host,name,altName){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['11']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['73']++;if(typeof name=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['38'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['74']++;altName=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['39'][0]++,altName)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['39'][1]++,name);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['75']++;Y_Node.addMethod(altName,host[name],host);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['38'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['76']++;Y.Array.each(name,function(n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['12']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['77']++;Y_Node.importMethod(host,n);});}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['78']++;Y_Node.one=function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['13']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['79']++;var instance=null,cachedNode,uid;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['80']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['40'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['81']++;if(typeof node=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['41'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['82']++;node=Y_Node._fromString(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['83']++;if(!node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['42'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['84']++;return null;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['42'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['41'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['85']++;if(node.getDOMNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['43'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['86']++;return node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['43'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['87']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['45'][0]++,node.nodeType)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['45'][1]++,Y.DOM.isWindow(node))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['44'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['88']++;uid=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['47'][0]++,node.uniqueID)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['47'][1]++,node.nodeType!==9)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['46'][0]++,node.uniqueID):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['46'][1]++,node._yuid);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['89']++;if(use_instance_map){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['48'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['90']++;instance=Y_Node._instances[uid];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['48'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['91']++;instance=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['49'][0]++,node._yui_instances)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['49'][1]++,node._yui_instances[Y._yuid]);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['92']++;cachedNode=instance?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['50'][0]++,instance._node):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['50'][1]++,null);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['93']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['52'][0]++,!instance)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['52'][1]++,cachedNode)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['52'][2]++,node!==cachedNode)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['51'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['94']++;instance=new Y_Node(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['95']++;if(node.nodeType!=11){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['53'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['96']++;if(use_instance_map){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['54'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['97']++;Y_Node._instances[instance[UID]]=instance;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['54'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['98']++;if(!node._yui_instances){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['55'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['99']++;node._yui_instances={};}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['55'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['100']++;node._yui_instances[Y._yuid]=instance;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['53'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['51'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['44'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['40'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['101']++;return instance;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['102']++;Y_Node.DEFAULT_SETTER=function(name,val){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['14']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['103']++;var node=this._stateProxy,strPath;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['104']++;if(name.indexOf(DOT)>-1){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['56'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['105']++;strPath=name;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['106']++;name=name.split(DOT);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['107']++;Y.Object.setValue(node,name,val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['56'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['108']++;if(typeof node[name]!='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['57'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['109']++;node[name]=val;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['57'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['110']++;return val;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['111']++;Y_Node.DEFAULT_GETTER=function(name){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['15']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['112']++;var node=this._stateProxy,val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['113']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['59'][0]++,name.indexOf)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['59'][1]++,name.indexOf(DOT)>-1)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['58'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['114']++;val=Y.Object.getValue(node,name.split(DOT));}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['58'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['115']++;if(typeof node[name]!='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['60'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['116']++;val=node[name];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['60'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['117']++;return val;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['118']++;Y.mix(Y_Node.prototype,{DATA_PREFIX:'data-',toString:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['16']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['119']++;var str=this[UID]+': not bound to a node',node=this._node,attrs,id,className;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['120']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['61'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['121']++;attrs=node.attributes;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['122']++;id=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['63'][0]++,attrs)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['63'][1]++,attrs.id)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['62'][0]++,node.getAttribute('id')):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['62'][1]++,null);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['123']++;className=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['65'][0]++,attrs)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['65'][1]++,attrs.className)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['64'][0]++,node.getAttribute('className')):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['64'][1]++,null);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['124']++;str=node[NODE_NAME];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['125']++;if(id){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['66'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['126']++;str+='#'+id;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['66'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['127']++;if(className){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['67'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['128']++;str+='.'+className.replace(' ','.');}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['67'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['129']++;str+=' '+this[UID];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['61'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['130']++;return str;},get:function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['17']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['131']++;var val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['132']++;if(this._getAttr){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['68'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['133']++;val=this._getAttr(attr);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['68'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['134']++;val=this._get(attr);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['135']++;if(val){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['69'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['136']++;val=Y_Node.scrubVal(val,this);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['69'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['137']++;if(val===null){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['70'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['138']++;val=null;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['70'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['139']++;return val;},_get:function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['18']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['140']++;var attrConfig=Y_Node.ATTRS[attr],val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['141']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['72'][0]++,attrConfig)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['72'][1]++,attrConfig.getter)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['71'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['142']++;val=attrConfig.getter.call(this);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['71'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['143']++;if(Y_Node.re_aria.test(attr)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['73'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['144']++;val=this._node.getAttribute(attr,2);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['73'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['145']++;val=Y_Node.DEFAULT_GETTER.apply(this,arguments);}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['146']++;return val;},set:function(attr,val){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['19']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['147']++;var attrConfig=Y_Node.ATTRS[attr];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['148']++;if(this._setAttr){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['74'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['149']++;this._setAttr.apply(this,arguments);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['74'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['150']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['76'][0]++,attrConfig)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['76'][1]++,attrConfig.setter)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['75'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['151']++;attrConfig.setter.call(this,val,attr);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['75'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['152']++;if(Y_Node.re_aria.test(attr)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['77'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['153']++;this._node.setAttribute(attr,val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['77'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['154']++;Y_Node.DEFAULT_SETTER.apply(this,arguments);}}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['155']++;return this;},setAttrs:function(attrMap){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['20']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['156']++;if(this._setAttrs){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['78'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['157']++;this._setAttrs(attrMap);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['78'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['158']++;Y.Object.each(attrMap,function(v,n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['21']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['159']++;this.set(n,v);},this);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['160']++;return this;},getAttrs:function(attrs){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['22']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['161']++;var ret={};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['162']++;if(this._getAttrs){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['79'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['163']++;this._getAttrs(attrs);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['79'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['164']++;Y.Array.each(attrs,function(v,n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['23']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['165']++;ret[v]=this.get(v);},this);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['166']++;return ret;},compareTo:function(refNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['24']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['167']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['168']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['81'][0]++,refNode)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['81'][1]++,refNode._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['80'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['169']++;refNode=refNode._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['80'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['170']++;return node===refNode;},inDoc:function(doc){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['25']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['171']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['172']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['82'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['173']++;doc=doc?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['83'][0]++,(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['84'][0]++,doc._node)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['84'][1]++,doc)):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['83'][1]++,node[OWNER_DOCUMENT]);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['174']++;if(doc.documentElement){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['85'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['175']++;return Y_DOM.contains(doc.documentElement,node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['85'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['82'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['176']++;return false;},getById:function(id){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['26']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['177']++;var node=this._node,ret=Y_DOM.byId(id,node[OWNER_DOCUMENT]);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['178']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['87'][0]++,ret)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['87'][1]++,Y_DOM.contains(node,ret))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['86'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['179']++;ret=Y.one(ret);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['86'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['180']++;ret=null;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['181']++;return ret;},ancestor:function(fn,testSelf,stopFn){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['27']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['182']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['89'][0]++,arguments.length===2)&&((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['89'][1]++,typeof testSelf=='string')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['89'][2]++,typeof testSelf=='function'))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['88'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['183']++;stopFn=testSelf;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['88'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['184']++;return Y.one(Y_DOM.ancestor(this._node,_wrapFn(fn),testSelf,_wrapFn(stopFn)));},ancestors:function(fn,testSelf,stopFn){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['28']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['185']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['91'][0]++,arguments.length===2)&&((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['91'][1]++,typeof testSelf=='string')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['91'][2]++,typeof testSelf=='function'))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['90'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['186']++;stopFn=testSelf;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['90'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['187']++;return Y.all(Y_DOM.ancestors(this._node,_wrapFn(fn),testSelf,_wrapFn(stopFn)));},previous:function(fn,all){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['29']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['188']++;return Y.one(Y_DOM.elementByAxis(this._node,'previousSibling',_wrapFn(fn),all));},next:function(fn,all){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['30']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['189']++;return Y.one(Y_DOM.elementByAxis(this._node,'nextSibling',_wrapFn(fn),all));},siblings:function(fn){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['31']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['190']++;return Y.all(Y_DOM.siblings(this._node,_wrapFn(fn)));},one:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['32']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['191']++;return Y.one(Y.Selector.query(selector,this._node,true));},all:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['33']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['192']++;var nodelist;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['193']++;if(this._node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['92'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['194']++;nodelist=Y.all(Y.Selector.query(selector,this._node));__cov_LGqepiXuzGEZpz3IhlW0rQ.s['195']++;nodelist._query=selector;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['196']++;nodelist._queryRoot=this._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['92'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['197']++;return(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['93'][0]++,nodelist)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['93'][1]++,Y.all([]));},test:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['34']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['198']++;return Y.Selector.test(this._node,selector);},remove:function(destroy){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['35']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['199']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['200']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['95'][0]++,node)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['95'][1]++,node.parentNode)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['94'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['201']++;node.parentNode.removeChild(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['94'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['202']++;if(destroy){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['96'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['203']++;this.destroy();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['96'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['204']++;return this;},replace:function(newNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['36']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['205']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['206']++;if(typeof newNode=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['97'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['207']++;newNode=Y_Node.create(newNode);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['97'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['208']++;node.parentNode.replaceChild(Y_Node.getDOMNode(newNode),node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['209']++;return this;},replaceChild:function(node,refNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['37']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['210']++;if(typeof node=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['98'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['211']++;node=Y_DOM.create(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['98'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['212']++;return Y.one(this._node.replaceChild(Y_Node.getDOMNode(node),Y_Node.getDOMNode(refNode)));},destroy:function(recursive){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['38']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['213']++;var UID=Y.config.doc.uniqueID?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['99'][0]++,'uniqueID'):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['99'][1]++,'_yuid'),instance;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['214']++;this.purge();__cov_LGqepiXuzGEZpz3IhlW0rQ.s['215']++;if(this.unplug){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['100'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['216']++;this.unplug();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['100'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['217']++;this.clearData();__cov_LGqepiXuzGEZpz3IhlW0rQ.s['218']++;if(recursive){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['101'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['219']++;Y.NodeList.each(this.all('*'),function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['39']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['220']++;if(use_instance_map){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['102'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['221']++;instance=Y_Node._instances[node[UID]];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['102'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['222']++;instance=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['103'][0]++,node._yui_instances)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['103'][1]++,node._yui_instances[Y._yuid]);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['223']++;if(instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['104'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['224']++;instance.destroy();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['104'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['225']++;Y.Event.purgeElement(node);}});}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['101'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['226']++;if(this._node._yui_instances){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['105'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['227']++;delete this._node._yui_instances[Y._yuid];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['105'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['228']++;this._node=null;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['229']++;this._stateProxy=null;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['230']++;if(use_instance_map){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['106'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['231']++;delete Y_Node._instances[this._yuid];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['106'][1]++;}},invoke:function(method,a,b,c,d,e){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['40']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['232']++;var node=this._node,ret;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['233']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['108'][0]++,a)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['108'][1]++,a._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['107'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['234']++;a=a._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['107'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['235']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['110'][0]++,b)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['110'][1]++,b._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['109'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['236']++;b=b._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['109'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['237']++;ret=node[method](a,b,c,d,e);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['238']++;return Y_Node.scrubVal(ret,this);},swap:Y.config.doc.documentElement.swapNode?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['111'][0]++,function(otherNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['41']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['239']++;this._node.swapNode(Y_Node.getDOMNode(otherNode));}):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['111'][1]++,function(otherNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['42']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['240']++;otherNode=Y_Node.getDOMNode(otherNode);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['241']++;var node=this._node,parent=otherNode.parentNode,nextSibling=otherNode.nextSibling;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['242']++;if(nextSibling===node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['112'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['243']++;parent.insertBefore(node,otherNode);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['112'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['244']++;if(otherNode===node.nextSibling){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['113'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['245']++;parent.insertBefore(otherNode,node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['113'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['246']++;node.parentNode.replaceChild(otherNode,node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['247']++;Y_DOM.addHTML(parent,node,nextSibling);}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['248']++;return this;}),hasMethod:function(method){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['43']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['249']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['250']++;return!!((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['114'][0]++,node)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['114'][1]++,method in node)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['114'][2]++,typeof node[method]!='unknown')&&((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['114'][3]++,typeof node[method]=='function')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['114'][4]++,String(node[method]).indexOf('function')===1)));},isFragment:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['44']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['251']++;return this.get('nodeType')===11;},empty:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['45']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['252']++;this.get('childNodes').remove().destroy(true);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['253']++;return this;},getDOMNode:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['46']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['254']++;return this._node;}},true);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['255']++;Y.Node=Y_Node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['256']++;Y.one=Y_Node.one;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['257']++;var NodeList=function(nodes){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['47']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['258']++;var tmp=[];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['259']++;if(nodes){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['115'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['260']++;if(typeof nodes==='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['116'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['261']++;this._query=nodes;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['262']++;nodes=Y.Selector.query(nodes);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['116'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['263']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['118'][0]++,nodes.nodeType)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['118'][1]++,Y_DOM.isWindow(nodes))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['117'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['264']++;nodes=[nodes];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['117'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['265']++;if(nodes._node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['119'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['266']++;nodes=[nodes._node];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['119'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['267']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['121'][0]++,nodes[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['121'][1]++,nodes[0]._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['120'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['268']++;Y.Array.each(nodes,function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['48']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['269']++;if(node._node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['122'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['270']++;tmp.push(node._node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['122'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['271']++;nodes=tmp;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['120'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['272']++;nodes=Y.Array(nodes,0,true);}}}}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['115'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['273']++;this._nodes=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['123'][0]++,nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['123'][1]++,[]);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['274']++;NodeList.NAME='NodeList';__cov_LGqepiXuzGEZpz3IhlW0rQ.s['275']++;NodeList.getDOMNodes=function(nodelist){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['49']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['276']++;return(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['125'][0]++,nodelist)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['125'][1]++,nodelist._nodes)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['124'][0]++,nodelist._nodes):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['124'][1]++,nodelist);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['277']++;NodeList.each=function(instance,fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['50']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['278']++;var nodes=instance._nodes;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['279']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['127'][0]++,nodes)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['127'][1]++,nodes.length)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['126'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['280']++;Y.Array.each(nodes,fn,(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['128'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['128'][1]++,instance));}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['126'][1]++;}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['281']++;NodeList.addMethod=function(name,fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['51']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['282']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['130'][0]++,name)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['130'][1]++,fn)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['129'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['283']++;NodeList.prototype[name]=function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['52']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['284']++;var ret=[],args=arguments;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['285']++;Y.Array.each(this._nodes,function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['53']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['286']++;var UID,instance,ctx,result;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['287']++;if(Y.Node._instances){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['131'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['288']++;UID=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['133'][0]++,node.uniqueID)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['133'][1]++,node.nodeType!==9)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['132'][0]++,'uniqueID'):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['132'][1]++,'_yuid');__cov_LGqepiXuzGEZpz3IhlW0rQ.s['289']++;instance=Y.Node._instances[node[UID]];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['131'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['290']++;instance=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['134'][0]++,node._yui_instances)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['134'][1]++,node._yui_instances[Y._yuid]);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['291']++;if(!instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['135'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['292']++;instance=NodeList._getTempNode(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['135'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['293']++;ctx=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['136'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['136'][1]++,instance);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['294']++;result=fn.apply(ctx,args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['295']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['138'][0]++,result!==undefined)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['138'][1]++,result!==instance)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['137'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['296']++;ret[ret.length]=result;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['137'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['297']++;return ret.length?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['139'][0]++,ret):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['139'][1]++,this);};}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['129'][1]++;}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['298']++;NodeList.importMethod=function(host,name,altName){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['54']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['299']++;if(typeof name==='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['140'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['300']++;altName=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['141'][0]++,altName)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['141'][1]++,name);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['301']++;NodeList.addMethod(name,host[name]);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['140'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['302']++;Y.Array.each(name,function(n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['55']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['303']++;NodeList.importMethod(host,n);});}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['304']++;NodeList._getTempNode=function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['56']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['305']++;var tmp=NodeList._tempNode;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['306']++;if(!tmp){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['142'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['307']++;tmp=Y.Node.create('
');__cov_LGqepiXuzGEZpz3IhlW0rQ.s['308']++;NodeList._tempNode=tmp;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['142'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['309']++;tmp._node=node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['310']++;tmp._stateProxy=node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['311']++;return tmp;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['312']++;Y.mix(NodeList.prototype,{_invoke:function(method,args,getter){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['57']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['313']++;var ret=getter?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['143'][0]++,[]):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['143'][1]++,this);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['314']++;this.each(function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['58']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['315']++;var val=node[method].apply(node,args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['316']++;if(getter){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['144'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['317']++;ret.push(val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['144'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['318']++;return ret;},item:function(index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['59']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['319']++;return Y.one(((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['145'][0]++,this._nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['145'][1]++,[]))[index]);},each:function(fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['60']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['320']++;var instance=this;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['321']++;Y.Array.each(this._nodes,function(node,index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['61']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['322']++;node=Y.one(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['323']++;return fn.call((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['146'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['146'][1]++,node),node,index,instance);});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['324']++;return instance;},batch:function(fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['62']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['325']++;var nodelist=this;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['326']++;Y.Array.each(this._nodes,function(node,index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['63']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['327']++;var UID,instance;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['328']++;if(Y.Node._instances){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['147'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['329']++;UID=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['149'][0]++,node.uniqueID)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['149'][1]++,node.nodeType!==9)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['148'][0]++,'uniqueID'):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['148'][1]++,'_yuid');__cov_LGqepiXuzGEZpz3IhlW0rQ.s['330']++;instance=Y.Node._instances[node[UID]];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['147'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['331']++;instance=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['150'][0]++,node._yui_instances)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['150'][1]++,node._yui_instances[Y._yuid]);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['332']++;if(!instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['151'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['333']++;instance=NodeList._getTempNode(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['151'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['334']++;return fn.call((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['152'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['152'][1]++,instance),instance,index,nodelist);});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['335']++;return nodelist;},some:function(fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['64']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['336']++;var instance=this;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['337']++;return Y.Array.some(this._nodes,function(node,index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['65']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['338']++;node=Y.one(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['339']++;context=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['153'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['153'][1]++,node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['340']++;return fn.call(context,node,index,instance);});},toFrag:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['66']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['341']++;return Y.one(Y.DOM._nl2frag(this._nodes));},indexOf:function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['67']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['342']++;return Y.Array.indexOf(this._nodes,Y.Node.getDOMNode(node));},filter:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['68']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['343']++;return Y.all(Y.Selector.filter(this._nodes,selector));},modulus:function(n,r){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['69']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['344']++;r=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['154'][0]++,r)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['154'][1]++,0);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['345']++;var nodes=[];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['346']++;NodeList.each(this,function(node,i){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['70']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['347']++;if(i%n===r){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['155'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['348']++;nodes.push(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['155'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['349']++;return Y.all(nodes);},odd:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['71']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['350']++;return this.modulus(2,1);},even:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['72']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['351']++;return this.modulus(2);},destructor:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['73']++;},refresh:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['74']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['352']++;var doc,nodes=this._nodes,query=this._query,root=this._queryRoot;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['353']++;if(query){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['156'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['354']++;if(!root){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['157'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['355']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['159'][0]++,nodes)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['159'][1]++,nodes[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['159'][2]++,nodes[0].ownerDocument)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['158'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['356']++;root=nodes[0].ownerDocument;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['158'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['157'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['357']++;this._nodes=Y.Selector.query(query,root);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['156'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['358']++;return this;},size:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['75']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['359']++;return this._nodes.length;},isEmpty:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['76']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['360']++;return this._nodes.length<1;},toString:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['77']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['361']++;var str='',errorMsg=this[UID]+': not bound to any nodes',nodes=this._nodes,node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['362']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['161'][0]++,nodes)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['161'][1]++,nodes[0])){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['160'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['363']++;node=nodes[0];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['364']++;str+=node[NODE_NAME];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['365']++;if(node.id){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['162'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['366']++;str+='#'+node.id;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['162'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['367']++;if(node.className){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['163'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['368']++;str+='.'+node.className.replace(' ','.');}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['163'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['369']++;if(nodes.length>1){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['164'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['370']++;str+='...['+nodes.length+' items]';}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['164'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['160'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['371']++;return(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['165'][0]++,str)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['165'][1]++,errorMsg);},getDOMNodes:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['78']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['372']++;return this._nodes;}},true);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['373']++;NodeList.importMethod(Y.Node.prototype,['destroy','empty','remove','set']);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['374']++;NodeList.prototype.get=function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['79']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['375']++;var ret=[],nodes=this._nodes,isNodeList=false,getTemp=NodeList._getTempNode,UID,instance,val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['376']++;if(nodes[0]){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['166'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['377']++;if(Y.Node._instances){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['167'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['378']++;UID=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['169'][0]++,nodes[0].uniqueID)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['169'][1]++,nodes[0].nodeType!==9)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['168'][0]++,'uniqueID'):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['168'][1]++,'_yuid');__cov_LGqepiXuzGEZpz3IhlW0rQ.s['379']++;instance=Y.Node._instances[nodes[0][UID]];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['167'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['380']++;instance=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['170'][0]++,nodes[0]._yui_instances)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['170'][1]++,nodes[0]._yui_instances[Y._yuid]);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['381']++;instance=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['171'][0]++,instance)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['171'][1]++,getTemp(nodes[0]));__cov_LGqepiXuzGEZpz3IhlW0rQ.s['382']++;val=instance._get(attr);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['383']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['173'][0]++,val)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['173'][1]++,val.nodeType)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['172'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['384']++;isNodeList=true;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['172'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['166'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['385']++;Y.Array.each(nodes,function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['80']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['386']++;if(Y.Node._instances){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['174'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['387']++;UID=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['176'][0]++,node.uniqueID)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['176'][1]++,node.nodeType!==9)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['175'][0]++,'uniqueID'):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['175'][1]++,'_yuid');__cov_LGqepiXuzGEZpz3IhlW0rQ.s['388']++;instance=Y.Node._instances[node[UID]];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['174'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['389']++;instance=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['177'][0]++,node._yui_instances)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['177'][1]++,node._yui_instances[Y._yuid]);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['390']++;if(!instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['178'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['391']++;instance=getTemp(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['178'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['392']++;val=instance._get(attr);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['393']++;if(!isNodeList){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['179'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['394']++;val=Y.Node.scrubVal(val,instance);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['179'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['395']++;ret.push(val);});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['396']++;return isNodeList?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['180'][0]++,Y.all(ret)):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['180'][1]++,ret);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['397']++;Y.NodeList=NodeList;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['398']++;Y.all=function(nodes){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['81']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['399']++;return new NodeList(nodes);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['400']++;Y.Node.all=Y.all;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['401']++;var Y_NodeList=Y.NodeList,ArrayProto=Array.prototype,ArrayMethods={'concat':1,'pop':0,'push':0,'shift':0,'slice':1,'splice':1,'unshift':0};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['402']++;Y.Object.each(ArrayMethods,function(returnNodeList,name){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['82']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['403']++;Y_NodeList.prototype[name]=function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['83']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['404']++;var args=[],i=0,arg,ret;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['405']++;while(typeof(arg=arguments[i++])!='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.s['406']++;args.push((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['181'][0]++,arg._node)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['181'][1]++,arg._nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['181'][2]++,arg));}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['407']++;ret=ArrayProto[name].apply(this._nodes,args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['408']++;if(returnNodeList){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['182'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['409']++;ret=Y.all(ret);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['182'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['410']++;ret=Y.Node.scrubVal(ret);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['411']++;return ret;};});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['412']++;Y.Array.each(['removeChild','hasChildNodes','cloneNode','hasAttribute','scrollIntoView','getElementsByTagName','focus','blur','submit','reset','select','createCaption'],function(method){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['84']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['413']++;Y.Node.prototype[method]=function(arg1,arg2,arg3){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['85']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['414']++;var ret=this.invoke(method,arg1,arg2,arg3);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['415']++;return ret;};});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['416']++;Y.Node.prototype.removeAttribute=function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['86']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['417']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['418']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['183'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['419']++;node.removeAttribute(attr,0);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['183'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['420']++;return this;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['421']++;Y.Node.importMethod(Y.DOM,['contains','setAttribute','getAttribute','wrap','unwrap','generateID']);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['422']++;Y.NodeList.importMethod(Y.Node.prototype,['getAttribute','setAttribute','removeAttribute','unwrap','wrap','generateID']);},'@VERSION@',{'requires':['dom-core','selector']}); diff --git a/build/node-core/node-core-debug.js b/build/node-core/node-core-debug.js index 756e3993bba..dac2465b655 100644 --- a/build/node-core/node-core-debug.js +++ b/build/node-core/node-core-debug.js @@ -30,6 +30,8 @@ var DOT = '.', UID = '_yuid', EMPTY_OBJ = {}, + use_instance_map = Y.UA.ie > 0, // define flag, in case other browsers need it, too + _slice = Array.prototype.slice, Y_DOM = Y.DOM, @@ -48,7 +50,7 @@ var DOT = '.', var uid = (node.nodeType !== 9) ? node.uniqueID : node[UID]; - if (uid && Y_Node._instances[uid] && Y_Node._instances[uid]._node !== node) { + if (use_instance_map && uid && Y_Node._instances[uid] && Y_Node._instances[uid]._node !== node) { node[UID] = null; // unset existing uid to prevent collision (via clone or hack) } @@ -125,14 +127,17 @@ Y_Node.SHOW_TRANSITION = 'fadeIn'; Y_Node.HIDE_TRANSITION = 'fadeOut'; /** - * A list of Node instances that have been created + * A list of Node instances that have been created. Only defined in browsers + * that already have broken GC, since this global map also breaks GC. * @private * @type Object * @property _instances * @static * */ -Y_Node._instances = {}; +if (use_instance_map) { + Y_Node._instances = {}; +} /** * Retrieves the DOM node bound to a Node instance @@ -290,12 +295,23 @@ Y_Node.one = function(node) { if (node.nodeType || Y.DOM.isWindow(node)) { // avoid bad input (numbers, boolean, etc) uid = (node.uniqueID && node.nodeType !== 9) ? node.uniqueID : node._yuid; - instance = Y_Node._instances[uid]; // reuse exising instances + if (use_instance_map) { + instance = Y_Node._instances[uid]; // reuse exising instances + } else { + instance = node._yui_instances && node._yui_instances[Y._yuid]; // reuse exising instances + } cachedNode = instance ? instance._node : null; if (!instance || (cachedNode && node !== cachedNode)) { // new Node when nodes don't match instance = new Y_Node(node); if (node.nodeType != 11) { // dont cache document fragment - Y_Node._instances[instance[UID]] = instance; // cache node + if (use_instance_map) { + Y_Node._instances[instance[UID]] = instance; // cache node + } else { + if (!node._yui_instances) { + node._yui_instances = {}; + } + node._yui_instances[Y._yuid] = instance; // cache node + } } } } @@ -747,7 +763,11 @@ Y.mix(Y_Node.prototype, { if (recursive) { Y.NodeList.each(this.all('*'), function(node) { - instance = Y_Node._instances[node[UID]]; + if (use_instance_map) { + instance = Y_Node._instances[node[UID]]; + } else { + instance = node._yui_instances && node._yui_instances[Y._yuid]; + } if (instance) { instance.destroy(); } else { // purge in case added by other means @@ -756,10 +776,16 @@ Y.mix(Y_Node.prototype, { }); } + if (this._node._yui_instances) { + delete this._node._yui_instances[Y._yuid]; + } + this._node = null; this._stateProxy = null; - delete Y_Node._instances[this._yuid]; + if (use_instance_map) { + delete Y_Node._instances[this._yuid]; + } }, /** @@ -928,11 +954,18 @@ NodeList.addMethod = function(name, fn, context) { args = arguments; Y.Array.each(this._nodes, function(node) { - var UID = (node.uniqueID && node.nodeType !== 9 ) ? 'uniqueID' : '_yuid', - instance = Y.Node._instances[node[UID]], + var UID, + instance, ctx, result; + if (Y.Node._instances) { + UID = (node.uniqueID && node.nodeType !== 9 ) ? 'uniqueID' : '_yuid'; + instance = Y.Node._instances[node[UID]]; + } else { + instance = node._yui_instances && node._yui_instances[Y._yuid]; + } + if (!instance) { instance = NodeList._getTempNode(node); } @@ -1021,7 +1054,16 @@ Y.mix(NodeList.prototype, { var nodelist = this; Y.Array.each(this._nodes, function(node, index) { - var instance = Y.Node._instances[node[UID]]; + var UID, + instance; + + if (Y.Node._instances) { + UID = (node.uniqueID && node.nodeType !== 9 ) ? 'uniqueID' : '_yuid'; + instance = Y.Node._instances[node[UID]]; + } else { + instance = node._yui_instances && node._yui_instances[Y._yuid]; + } + if (!instance) { instance = NodeList._getTempNode(node); } @@ -1259,11 +1301,19 @@ NodeList.prototype.get = function(attr) { nodes = this._nodes, isNodeList = false, getTemp = NodeList._getTempNode, + UID, instance, val; if (nodes[0]) { - instance = Y.Node._instances[nodes[0]._yuid] || getTemp(nodes[0]); + if (Y.Node._instances) { + UID = (nodes[0].uniqueID && nodes[0].nodeType !== 9 ) ? 'uniqueID' : '_yuid'; + instance = Y.Node._instances[nodes[0][UID]]; + } else { + instance = nodes[0]._yui_instances && nodes[0]._yui_instances[Y._yuid]; + } + instance = instance || getTemp(nodes[0]); + val = instance._get(attr); if (val && val.nodeType) { isNodeList = true; @@ -1271,7 +1321,12 @@ NodeList.prototype.get = function(attr) { } Y.Array.each(nodes, function(node) { - instance = Y.Node._instances[node._yuid]; + if (Y.Node._instances) { + UID = (node.uniqueID && node.nodeType !== 9 ) ? 'uniqueID' : '_yuid'; + instance = Y.Node._instances[node[UID]]; + } else { + instance = node._yui_instances && node._yui_instances[Y._yuid]; + } if (!instance) { instance = getTemp(node); diff --git a/build/node-core/node-core-min.js b/build/node-core/node-core-min.js index 324fed9af06..0556d889a76 100644 --- a/build/node-core/node-core-min.js +++ b/build/node-core/node-core-min.js @@ -1,2 +1,2 @@ -YUI.add("node-core",function(e,t){var n=".",r="nodeName",i="nodeType",s="ownerDocument",o="tagName",u="_yuid",a={},f=Array.prototype.slice,l=e.DOM,c=function(t){if(!this.getDOMNode)return new c(t);if(typeof t=="string"){t=c._fromString(t);if(!t)return null}var n=t.nodeType!==9?t.uniqueID:t[u];n&&c._instances[n]&&c._instances[n]._node!==t&&(t[u]=null),n=n||e.stamp(t),n||(n=e.guid()),this[u]=n,this._node=t,this._stateProxy=t,this._initPlugins&&this._initPlugins()},h=function(t){var n=null;return t&&(n=typeof t=="string"?function(n){return e.Selector.test(n,t)}:function(n){return t(e.one(n))}),n};c.ATTRS={},c.DOM_EVENTS={},c._fromString=function(t){return t&&(t.indexOf("doc")===0?t=e.config.doc:t.indexOf("win")===0?t=e.config.win:t=e.Selector.query(t,null,!0)),t||null},c.NAME="node",c.re_aria=/^(?:role$|aria-)/,c.SHOW_TRANSITION="fadeIn",c.HIDE_TRANSITION="fadeOut",c._instances={},c.getDOMNode=function(e){return e?e.nodeType?e:e._node||null:null},c.scrubVal=function(t,n){if(t){if(typeof t=="object"||typeof t=="function")if(i in t||l.isWindow(t))t=e.one(t);else if(t.item&&!t._nodes||t[0]&&t[0][i])t=e.all(t)}else typeof t=="undefined"?t=n:t===null&&(t=null);return t},c.addMethod=function(e,t,n){e&&t&&typeof t=="function"&&(c.prototype[e]=function(){var e=f.call(arguments),r=this,i;return e[0]&&e[0]._node&&(e[0]=e[0]._node),e[1]&&e[1]._node&&(e[1]=e[1]._node),e.unshift(r._node),i=t.apply(n||r,e),i&&(i=c.scrubVal(i,r)),typeof i!="undefined"||(i=r),i})},c.importMethod=function(t,n,r){typeof n=="string"?(r=r||n,c.addMethod(r,t[n],t)):e.Array.each(n,function(e){c.importMethod(t,e)})},c.one=function(t){var n=null,r,i;if(t){if(typeof t=="string"){t=c._fromString(t);if(!t)return null}else if(t.getDOMNode)return t;if(t.nodeType||e.DOM.isWindow(t)){i=t.uniqueID&&t.nodeType!==9?t.uniqueID:t._yuid,n=c._instances[i],r=n?n._node:null;if(!n||r&&t!==r)n=new c(t),t.nodeType!=11&&(c._instances[n[u]]=n)}}return n},c.DEFAULT_SETTER=function(t,r){var i=this._stateProxy,s;return t.indexOf(n)>-1?(s=t,t=t.split(n),e.Object.setValue(i,t,r)):typeof i[t]!="undefined"&&(i[t]=r),r},c.DEFAULT_GETTER=function(t){var r=this._stateProxy,i;return t.indexOf&&t.indexOf(n)>-1?i=e.Object.getValue(r,t.split(n)):typeof r[t]!="undefined"&&(i=r[t]),i},e.mix(c.prototype,{DATA_PREFIX:"data-",toString:function(){var e=this[u]+": not bound to a node",t=this._node,n,i,s;return t&&(n=t.attributes,i=n&&n.id?t.getAttribute("id"):null,s=n&&n.className?t.getAttribute("className"):null,e=t[r],i&&(e+="#"+i),s&&(e+="."+s.replace(" ",".")),e+=" "+this[u]),e},get:function(e){var t;return this._getAttr?t=this._getAttr(e):t=this._get(e),t?t=c.scrubVal(t,this):t===null&&(t=null),t},_get:function(e){var t=c.ATTRS[e],n;return t&&t.getter?n=t.getter.call(this):c.re_aria.test(e)?n=this._node.getAttribute(e,2):n=c.DEFAULT_GETTER.apply(this,arguments),n},set:function(e,t){var n=c.ATTRS[e];return this._setAttr?this._setAttr.apply(this,arguments):n&&n.setter?n.setter.call(this,t,e):c.re_aria.test(e)?this._node.setAttribute(e,t):c.DEFAULT_SETTER.apply(this,arguments),this},setAttrs:function(t){return this._setAttrs?this._setAttrs(t):e.Object.each(t,function(e,t){this.set(t,e)},this),this},getAttrs:function(t){var n={};return this._getAttrs?this._getAttrs(t):e.Array.each(t,function(e,t){n[e]=this.get(e)},this),n},compareTo:function(e){var t=this._node;return e&&e._node&&(e=e._node),t===e},inDoc:function(e){var t=this._node;if(t){e=e?e._node||e:t[s];if(e.documentElement)return l.contains(e.documentElement,t)}return!1},getById:function(t){var n=this._node,r=l.byId(t,n[s]);return r&&l.contains(n,r)?r=e.one(r):r=null,r},ancestor:function(t,n,r){return arguments.length===2&&(typeof n=="string"||typeof n=="function")&&(r=n),e.one(l.ancestor(this._node,h(t),n,h(r)))},ancestors:function(t,n,r){return arguments.length===2&&(typeof n=="string"||typeof n=="function")&&(r=n),e.all(l.ancestors(this._node,h(t),n,h(r)))},previous:function(t,n){return e.one(l.elementByAxis(this._node,"previousSibling",h(t),n))},next:function(t,n){return e.one(l.elementByAxis(this._node,"nextSibling",h(t),n))},siblings:function(t){return e.all(l.siblings(this._node,h(t)))},one:function(t){return e.one(e.Selector.query(t,this._node,!0))},all:function(t){var n;return this._node&&(n=e.all(e.Selector.query(t,this._node)),n._query=t,n._queryRoot=this._node),n||e.all([])},test:function(t){return e.Selector.test(this._node,t)},remove:function(e){var t=this._node;return t&&t.parentNode&&t.parentNode.removeChild(t),e&&this.destroy(),this},replace:function(e){var t=this._node;return typeof e=="string"&&(e=c.create(e)),t.parentNode.replaceChild(c.getDOMNode(e),t),this},replaceChild:function(t,n){return typeof t=="string"&&(t=l.create(t)),e.one(this._node.replaceChild(c.getDOMNode(t),c.getDOMNode(n)))},destroy:function(t){var n=e.config.doc.uniqueID?"uniqueID":"_yuid",r;this.purge(),this.unplug&&this.unplug(),this.clearData(),t&&e.NodeList.each(this.all("*"),function(t){r=c._instances[t[n]],r?r.destroy():e.Event.purgeElement(t)}),this._node=null,this._stateProxy=null,delete c._instances[this._yuid]},invoke:function(e,t,n,r,i,s){var o=this._node,u;return t&&t._node&&(t=t._node),n&&n._node&&(n=n._node),u=o[e](t,n,r,i,s),c.scrubVal(u,this)},swap:e.config.doc.documentElement.swapNode?function(e){this._node.swapNode(c.getDOMNode(e))}:function(e){e=c.getDOMNode(e);var t=this._node,n=e.parentNode,r=e.nextSibling;return r===t?n.insertBefore(t,e):e===t.nextSibling?n.insertBefore(e,t):(t.parentNode.replaceChild(e,t),l.addHTML(n,t,r)),this},hasMethod:function(e){var t=this._node;return!(!(t&&e in t&&typeof t[e]!="unknown")||typeof t[e]!="function"&&String(t[e]).indexOf("function")!==1)},isFragment:function(){return this.get("nodeType")===11},empty:function(){return this.get("childNodes").remove().destroy(!0),this},getDOMNode:function(){return this._node}},!0),e.Node=c,e.one=c.one;var p=function(t){var n=[];t&&(typeof t=="string"?(this._query=t,t=e.Selector.query(t)):t.nodeType||l.isWindow(t)?t=[t]:t._node?t=[t._node]: -t[0]&&t[0]._node?(e.Array.each(t,function(e){e._node&&n.push(e._node)}),t=n):t=e.Array(t,0,!0)),this._nodes=t||[]};p.NAME="NodeList",p.getDOMNodes=function(e){return e&&e._nodes?e._nodes:e},p.each=function(t,n,r){var i=t._nodes;i&&i.length&&e.Array.each(i,n,r||t)},p.addMethod=function(t,n,r){t&&n&&(p.prototype[t]=function(){var t=[],i=arguments;return e.Array.each(this._nodes,function(s){var o=s.uniqueID&&s.nodeType!==9?"uniqueID":"_yuid",u=e.Node._instances[s[o]],a,f;u||(u=p._getTempNode(s)),a=r||u,f=n.apply(a,i),f!==undefined&&f!==u&&(t[t.length]=f)}),t.length?t:this})},p.importMethod=function(t,n,r){typeof n=="string"?(r=r||n,p.addMethod(n,t[n])):e.Array.each(n,function(e){p.importMethod(t,e)})},p._getTempNode=function(t){var n=p._tempNode;return n||(n=e.Node.create("
"),p._tempNode=n),n._node=t,n._stateProxy=t,n},e.mix(p.prototype,{_invoke:function(e,t,n){var r=n?[]:this;return this.each(function(i){var s=i[e].apply(i,t);n&&r.push(s)}),r},item:function(t){return e.one((this._nodes||[])[t])},each:function(t,n){var r=this;return e.Array.each(this._nodes,function(i,s){return i=e.one(i),t.call(n||i,i,s,r)}),r},batch:function(t,n){var r=this;return e.Array.each(this._nodes,function(i,s){var o=e.Node._instances[i[u]];return o||(o=p._getTempNode(i)),t.call(n||o,o,s,r)}),r},some:function(t,n){var r=this;return e.Array.some(this._nodes,function(i,s){return i=e.one(i),n=n||i,t.call(n,i,s,r)})},toFrag:function(){return e.one(e.DOM._nl2frag(this._nodes))},indexOf:function(t){return e.Array.indexOf(this._nodes,e.Node.getDOMNode(t))},filter:function(t){return e.all(e.Selector.filter(this._nodes,t))},modulus:function(t,n){n=n||0;var r=[];return p.each(this,function(e,i){i%t===n&&r.push(e)}),e.all(r)},odd:function(){return this.modulus(2,1)},even:function(){return this.modulus(2)},destructor:function(){},refresh:function(){var t,n=this._nodes,r=this._query,i=this._queryRoot;return r&&(i||n&&n[0]&&n[0].ownerDocument&&(i=n[0].ownerDocument),this._nodes=e.Selector.query(r,i)),this},size:function(){return this._nodes.length},isEmpty:function(){return this._nodes.length<1},toString:function(){var e="",t=this[u]+": not bound to any nodes",n=this._nodes,i;return n&&n[0]&&(i=n[0],e+=i[r],i.id&&(e+="#"+i.id),i.className&&(e+="."+i.className.replace(" ",".")),n.length>1&&(e+="...["+n.length+" items]")),e||t},getDOMNodes:function(){return this._nodes}},!0),p.importMethod(e.Node.prototype,["destroy","empty","remove","set"]),p.prototype.get=function(t){var n=[],r=this._nodes,i=!1,s=p._getTempNode,o,u;return r[0]&&(o=e.Node._instances[r[0]._yuid]||s(r[0]),u=o._get(t),u&&u.nodeType&&(i=!0)),e.Array.each(r,function(r){o=e.Node._instances[r._yuid],o||(o=s(r)),u=o._get(t),i||(u=e.Node.scrubVal(u,o)),n.push(u)}),i?e.all(n):n},e.NodeList=p,e.all=function(e){return new p(e)},e.Node.all=e.all;var d=e.NodeList,v=Array.prototype,m={concat:1,pop:0,push:0,shift:0,slice:1,splice:1,unshift:0};e.Object.each(m,function(t,n){d.prototype[n]=function(){var r=[],i=0,s,o;while(typeof (s=arguments[i++])!="undefined")r.push(s._node||s._nodes||s);return o=v[n].apply(this._nodes,r),t?o=e.all(o):o=e.Node.scrubVal(o),o}}),e.Array.each(["removeChild","hasChildNodes","cloneNode","hasAttribute","scrollIntoView","getElementsByTagName","focus","blur","submit","reset","select","createCaption"],function(t){e.Node.prototype[t]=function(e,n,r){var i=this.invoke(t,e,n,r);return i}}),e.Node.prototype.removeAttribute=function(e){var t=this._node;return t&&t.removeAttribute(e,0),this},e.Node.importMethod(e.DOM,["contains","setAttribute","getAttribute","wrap","unwrap","generateID"]),e.NodeList.importMethod(e.Node.prototype,["getAttribute","setAttribute","removeAttribute","unwrap","wrap","generateID"])},"@VERSION@",{requires:["dom-core","selector"]}); +YUI.add("node-core",function(e,t){var n=".",r="nodeName",i="nodeType",s="ownerDocument",o="tagName",u="_yuid",a={},f=e.UA.ie>0,l=Array.prototype.slice,c=e.DOM,h=function(t){if(!this.getDOMNode)return new h(t);if(typeof t=="string"){t=h._fromString(t);if(!t)return null}var n=t.nodeType!==9?t.uniqueID:t[u];f&&n&&h._instances[n]&&h._instances[n]._node!==t&&(t[u]=null),n=n||e.stamp(t),n||(n=e.guid()),this[u]=n,this._node=t,this._stateProxy=t,this._initPlugins&&this._initPlugins()},p=function(t){var n=null;return t&&(n=typeof t=="string"?function(n){return e.Selector.test(n,t)}:function(n){return t(e.one(n))}),n};h.ATTRS={},h.DOM_EVENTS={},h._fromString=function(t){return t&&(t.indexOf("doc")===0?t=e.config.doc:t.indexOf("win")===0?t=e.config.win:t=e.Selector.query(t,null,!0)),t||null},h.NAME="node",h.re_aria=/^(?:role$|aria-)/,h.SHOW_TRANSITION="fadeIn",h.HIDE_TRANSITION="fadeOut",f&&(h._instances={}),h.getDOMNode=function(e){return e?e.nodeType?e:e._node||null:null},h.scrubVal=function(t,n){if(t){if(typeof t=="object"||typeof t=="function")if(i in t||c.isWindow(t))t=e.one(t);else if(t.item&&!t._nodes||t[0]&&t[0][i])t=e.all(t)}else typeof t=="undefined"?t=n:t===null&&(t=null);return t},h.addMethod=function(e,t,n){e&&t&&typeof t=="function"&&(h.prototype[e]=function(){var e=l.call(arguments),r=this,i;return e[0]&&e[0]._node&&(e[0]=e[0]._node),e[1]&&e[1]._node&&(e[1]=e[1]._node),e.unshift(r._node),i=t.apply(n||r,e),i&&(i=h.scrubVal(i,r)),typeof i!="undefined"||(i=r),i})},h.importMethod=function(t,n,r){typeof n=="string"?(r=r||n,h.addMethod(r,t[n],t)):e.Array.each(n,function(e){h.importMethod(t,e)})},h.one=function(t){var n=null,r,i;if(t){if(typeof t=="string"){t=h._fromString(t);if(!t)return null}else if(t.getDOMNode)return t;if(t.nodeType||e.DOM.isWindow(t)){i=t.uniqueID&&t.nodeType!==9?t.uniqueID:t._yuid,f?n=h._instances[i]:n=t._yui_instances&&t._yui_instances[e._yuid],r=n?n._node:null;if(!n||r&&t!==r)n=new h(t),t.nodeType!=11&&(f?h._instances[n[u]]=n:(t._yui_instances||(t._yui_instances={}),t._yui_instances[e._yuid]=n))}}return n},h.DEFAULT_SETTER=function(t,r){var i=this._stateProxy,s;return t.indexOf(n)>-1?(s=t,t=t.split(n),e.Object.setValue(i,t,r)):typeof i[t]!="undefined"&&(i[t]=r),r},h.DEFAULT_GETTER=function(t){var r=this._stateProxy,i;return t.indexOf&&t.indexOf(n)>-1?i=e.Object.getValue(r,t.split(n)):typeof r[t]!="undefined"&&(i=r[t]),i},e.mix(h.prototype,{DATA_PREFIX:"data-",toString:function(){var e=this[u]+": not bound to a node",t=this._node,n,i,s;return t&&(n=t.attributes,i=n&&n.id?t.getAttribute("id"):null,s=n&&n.className?t.getAttribute("className"):null,e=t[r],i&&(e+="#"+i),s&&(e+="."+s.replace(" ",".")),e+=" "+this[u]),e},get:function(e){var t;return this._getAttr?t=this._getAttr(e):t=this._get(e),t?t=h.scrubVal(t,this):t===null&&(t=null),t},_get:function(e){var t=h.ATTRS[e],n;return t&&t.getter?n=t.getter.call(this):h.re_aria.test(e)?n=this._node.getAttribute(e,2):n=h.DEFAULT_GETTER.apply(this,arguments),n},set:function(e,t){var n=h.ATTRS[e];return this._setAttr?this._setAttr.apply(this,arguments):n&&n.setter?n.setter.call(this,t,e):h.re_aria.test(e)?this._node.setAttribute(e,t):h.DEFAULT_SETTER.apply(this,arguments),this},setAttrs:function(t){return this._setAttrs?this._setAttrs(t):e.Object.each(t,function(e,t){this.set(t,e)},this),this},getAttrs:function(t){var n={};return this._getAttrs?this._getAttrs(t):e.Array.each(t,function(e,t){n[e]=this.get(e)},this),n},compareTo:function(e){var t=this._node;return e&&e._node&&(e=e._node),t===e},inDoc:function(e){var t=this._node;if(t){e=e?e._node||e:t[s];if(e.documentElement)return c.contains(e.documentElement,t)}return!1},getById:function(t){var n=this._node,r=c.byId(t,n[s]);return r&&c.contains(n,r)?r=e.one(r):r=null,r},ancestor:function(t,n,r){return arguments.length===2&&(typeof n=="string"||typeof n=="function")&&(r=n),e.one(c.ancestor(this._node,p(t),n,p(r)))},ancestors:function(t,n,r){return arguments.length===2&&(typeof n=="string"||typeof n=="function")&&(r=n),e.all(c.ancestors(this._node,p(t),n,p(r)))},previous:function(t,n){return e.one(c.elementByAxis(this._node,"previousSibling",p(t),n))},next:function(t,n){return e.one(c.elementByAxis(this._node,"nextSibling",p(t),n))},siblings:function(t){return e.all(c.siblings(this._node,p(t)))},one:function(t){return e.one(e.Selector.query(t,this._node,!0))},all:function(t){var n;return this._node&&(n=e.all(e.Selector.query(t,this._node)),n._query=t,n._queryRoot=this._node),n||e.all([])},test:function(t){return e.Selector.test(this._node,t)},remove:function(e){var t=this._node;return t&&t.parentNode&&t.parentNode.removeChild(t),e&&this.destroy(),this},replace:function(e){var t=this._node;return typeof e=="string"&&(e=h.create(e)),t.parentNode.replaceChild(h.getDOMNode(e),t),this},replaceChild:function(t,n){return typeof t=="string"&&(t=c.create(t)),e.one(this._node.replaceChild(h.getDOMNode(t),h.getDOMNode(n)))},destroy:function(t){var n=e.config.doc.uniqueID?"uniqueID":"_yuid",r;this.purge(),this.unplug&&this.unplug(),this.clearData(),t&&e.NodeList.each(this.all("*"),function(t){f?r=h._instances[t[n]]:r=t._yui_instances&&t._yui_instances[e._yuid],r?r.destroy():e.Event.purgeElement(t)}),this._node._yui_instances&&delete this._node._yui_instances[e._yuid],this._node=null,this._stateProxy=null,f&&delete h._instances[this._yuid]},invoke:function(e,t,n,r,i,s){var o=this._node,u;return t&&t._node&&(t=t._node),n&&n._node&&(n=n._node),u=o[e](t,n,r,i,s),h.scrubVal(u,this)},swap:e.config.doc.documentElement.swapNode?function(e){this._node.swapNode(h.getDOMNode(e))}:function(e){e=h.getDOMNode(e);var t=this._node,n=e.parentNode,r=e.nextSibling;return r===t?n.insertBefore(t,e):e===t.nextSibling?n.insertBefore(e,t):(t.parentNode.replaceChild(e,t),c.addHTML(n,t,r)),this},hasMethod:function(e){var t=this._node;return!(!(t&&e in t&&typeof t[e]!="unknown")||typeof t[e]!="function"&&String(t[e]).indexOf("function")!==1)},isFragment:function(){return this.get("nodeType")===11},empty:function(){return this +.get("childNodes").remove().destroy(!0),this},getDOMNode:function(){return this._node}},!0),e.Node=h,e.one=h.one;var d=function(t){var n=[];t&&(typeof t=="string"?(this._query=t,t=e.Selector.query(t)):t.nodeType||c.isWindow(t)?t=[t]:t._node?t=[t._node]:t[0]&&t[0]._node?(e.Array.each(t,function(e){e._node&&n.push(e._node)}),t=n):t=e.Array(t,0,!0)),this._nodes=t||[]};d.NAME="NodeList",d.getDOMNodes=function(e){return e&&e._nodes?e._nodes:e},d.each=function(t,n,r){var i=t._nodes;i&&i.length&&e.Array.each(i,n,r||t)},d.addMethod=function(t,n,r){t&&n&&(d.prototype[t]=function(){var t=[],i=arguments;return e.Array.each(this._nodes,function(s){var o,u,a,f;e.Node._instances?(o=s.uniqueID&&s.nodeType!==9?"uniqueID":"_yuid",u=e.Node._instances[s[o]]):u=s._yui_instances&&s._yui_instances[e._yuid],u||(u=d._getTempNode(s)),a=r||u,f=n.apply(a,i),f!==undefined&&f!==u&&(t[t.length]=f)}),t.length?t:this})},d.importMethod=function(t,n,r){typeof n=="string"?(r=r||n,d.addMethod(n,t[n])):e.Array.each(n,function(e){d.importMethod(t,e)})},d._getTempNode=function(t){var n=d._tempNode;return n||(n=e.Node.create("
"),d._tempNode=n),n._node=t,n._stateProxy=t,n},e.mix(d.prototype,{_invoke:function(e,t,n){var r=n?[]:this;return this.each(function(i){var s=i[e].apply(i,t);n&&r.push(s)}),r},item:function(t){return e.one((this._nodes||[])[t])},each:function(t,n){var r=this;return e.Array.each(this._nodes,function(i,s){return i=e.one(i),t.call(n||i,i,s,r)}),r},batch:function(t,n){var r=this;return e.Array.each(this._nodes,function(i,s){var o,u;return e.Node._instances?(o=i.uniqueID&&i.nodeType!==9?"uniqueID":"_yuid",u=e.Node._instances[i[o]]):u=i._yui_instances&&i._yui_instances[e._yuid],u||(u=d._getTempNode(i)),t.call(n||u,u,s,r)}),r},some:function(t,n){var r=this;return e.Array.some(this._nodes,function(i,s){return i=e.one(i),n=n||i,t.call(n,i,s,r)})},toFrag:function(){return e.one(e.DOM._nl2frag(this._nodes))},indexOf:function(t){return e.Array.indexOf(this._nodes,e.Node.getDOMNode(t))},filter:function(t){return e.all(e.Selector.filter(this._nodes,t))},modulus:function(t,n){n=n||0;var r=[];return d.each(this,function(e,i){i%t===n&&r.push(e)}),e.all(r)},odd:function(){return this.modulus(2,1)},even:function(){return this.modulus(2)},destructor:function(){},refresh:function(){var t,n=this._nodes,r=this._query,i=this._queryRoot;return r&&(i||n&&n[0]&&n[0].ownerDocument&&(i=n[0].ownerDocument),this._nodes=e.Selector.query(r,i)),this},size:function(){return this._nodes.length},isEmpty:function(){return this._nodes.length<1},toString:function(){var e="",t=this[u]+": not bound to any nodes",n=this._nodes,i;return n&&n[0]&&(i=n[0],e+=i[r],i.id&&(e+="#"+i.id),i.className&&(e+="."+i.className.replace(" ",".")),n.length>1&&(e+="...["+n.length+" items]")),e||t},getDOMNodes:function(){return this._nodes}},!0),d.importMethod(e.Node.prototype,["destroy","empty","remove","set"]),d.prototype.get=function(t){var n=[],r=this._nodes,i=!1,s=d._getTempNode,o,u,a;return r[0]&&(e.Node._instances?(o=r[0].uniqueID&&r[0].nodeType!==9?"uniqueID":"_yuid",u=e.Node._instances[r[0][o]]):u=r[0]._yui_instances&&r[0]._yui_instances[e._yuid],u=u||s(r[0]),a=u._get(t),a&&a.nodeType&&(i=!0)),e.Array.each(r,function(r){e.Node._instances?(o=r.uniqueID&&r.nodeType!==9?"uniqueID":"_yuid",u=e.Node._instances[r[o]]):u=r._yui_instances&&r._yui_instances[e._yuid],u||(u=s(r)),a=u._get(t),i||(a=e.Node.scrubVal(a,u)),n.push(a)}),i?e.all(n):n},e.NodeList=d,e.all=function(e){return new d(e)},e.Node.all=e.all;var v=e.NodeList,m=Array.prototype,g={concat:1,pop:0,push:0,shift:0,slice:1,splice:1,unshift:0};e.Object.each(g,function(t,n){v.prototype[n]=function(){var r=[],i=0,s,o;while(typeof (s=arguments[i++])!="undefined")r.push(s._node||s._nodes||s);return o=m[n].apply(this._nodes,r),t?o=e.all(o):o=e.Node.scrubVal(o),o}}),e.Array.each(["removeChild","hasChildNodes","cloneNode","hasAttribute","scrollIntoView","getElementsByTagName","focus","blur","submit","reset","select","createCaption"],function(t){e.Node.prototype[t]=function(e,n,r){var i=this.invoke(t,e,n,r);return i}}),e.Node.prototype.removeAttribute=function(e){var t=this._node;return t&&t.removeAttribute(e,0),this},e.Node.importMethod(e.DOM,["contains","setAttribute","getAttribute","wrap","unwrap","generateID"]),e.NodeList.importMethod(e.Node.prototype,["getAttribute","setAttribute","removeAttribute","unwrap","wrap","generateID"])},"@VERSION@",{requires:["dom-core","selector"]}); diff --git a/build/node-core/node-core.js b/build/node-core/node-core.js index 6c82319db89..4e9494d733c 100644 --- a/build/node-core/node-core.js +++ b/build/node-core/node-core.js @@ -30,6 +30,8 @@ var DOT = '.', UID = '_yuid', EMPTY_OBJ = {}, + use_instance_map = Y.UA.ie > 0, // define flag, in case other browsers need it, too + _slice = Array.prototype.slice, Y_DOM = Y.DOM, @@ -48,7 +50,7 @@ var DOT = '.', var uid = (node.nodeType !== 9) ? node.uniqueID : node[UID]; - if (uid && Y_Node._instances[uid] && Y_Node._instances[uid]._node !== node) { + if (use_instance_map && uid && Y_Node._instances[uid] && Y_Node._instances[uid]._node !== node) { node[UID] = null; // unset existing uid to prevent collision (via clone or hack) } @@ -125,14 +127,17 @@ Y_Node.SHOW_TRANSITION = 'fadeIn'; Y_Node.HIDE_TRANSITION = 'fadeOut'; /** - * A list of Node instances that have been created + * A list of Node instances that have been created. Only defined in browsers + * that already have broken GC, since this global map also breaks GC. * @private * @type Object * @property _instances * @static * */ -Y_Node._instances = {}; +if (use_instance_map) { + Y_Node._instances = {}; +} /** * Retrieves the DOM node bound to a Node instance @@ -289,12 +294,23 @@ Y_Node.one = function(node) { if (node.nodeType || Y.DOM.isWindow(node)) { // avoid bad input (numbers, boolean, etc) uid = (node.uniqueID && node.nodeType !== 9) ? node.uniqueID : node._yuid; - instance = Y_Node._instances[uid]; // reuse exising instances + if (use_instance_map) { + instance = Y_Node._instances[uid]; // reuse exising instances + } else { + instance = node._yui_instances && node._yui_instances[Y._yuid]; // reuse exising instances + } cachedNode = instance ? instance._node : null; if (!instance || (cachedNode && node !== cachedNode)) { // new Node when nodes don't match instance = new Y_Node(node); if (node.nodeType != 11) { // dont cache document fragment - Y_Node._instances[instance[UID]] = instance; // cache node + if (use_instance_map) { + Y_Node._instances[instance[UID]] = instance; // cache node + } else { + if (!node._yui_instances) { + node._yui_instances = {}; + } + node._yui_instances[Y._yuid] = instance; // cache node + } } } } @@ -746,7 +762,11 @@ Y.mix(Y_Node.prototype, { if (recursive) { Y.NodeList.each(this.all('*'), function(node) { - instance = Y_Node._instances[node[UID]]; + if (use_instance_map) { + instance = Y_Node._instances[node[UID]]; + } else { + instance = node._yui_instances && node._yui_instances[Y._yuid]; + } if (instance) { instance.destroy(); } else { // purge in case added by other means @@ -755,10 +775,16 @@ Y.mix(Y_Node.prototype, { }); } + if (this._node._yui_instances) { + delete this._node._yui_instances[Y._yuid]; + } + this._node = null; this._stateProxy = null; - delete Y_Node._instances[this._yuid]; + if (use_instance_map) { + delete Y_Node._instances[this._yuid]; + } }, /** @@ -926,11 +952,18 @@ NodeList.addMethod = function(name, fn, context) { args = arguments; Y.Array.each(this._nodes, function(node) { - var UID = (node.uniqueID && node.nodeType !== 9 ) ? 'uniqueID' : '_yuid', - instance = Y.Node._instances[node[UID]], + var UID, + instance, ctx, result; + if (Y.Node._instances) { + UID = (node.uniqueID && node.nodeType !== 9 ) ? 'uniqueID' : '_yuid'; + instance = Y.Node._instances[node[UID]]; + } else { + instance = node._yui_instances && node._yui_instances[Y._yuid]; + } + if (!instance) { instance = NodeList._getTempNode(node); } @@ -1018,7 +1051,16 @@ Y.mix(NodeList.prototype, { var nodelist = this; Y.Array.each(this._nodes, function(node, index) { - var instance = Y.Node._instances[node[UID]]; + var UID, + instance; + + if (Y.Node._instances) { + UID = (node.uniqueID && node.nodeType !== 9 ) ? 'uniqueID' : '_yuid'; + instance = Y.Node._instances[node[UID]]; + } else { + instance = node._yui_instances && node._yui_instances[Y._yuid]; + } + if (!instance) { instance = NodeList._getTempNode(node); } @@ -1256,11 +1298,19 @@ NodeList.prototype.get = function(attr) { nodes = this._nodes, isNodeList = false, getTemp = NodeList._getTempNode, + UID, instance, val; if (nodes[0]) { - instance = Y.Node._instances[nodes[0]._yuid] || getTemp(nodes[0]); + if (Y.Node._instances) { + UID = (nodes[0].uniqueID && nodes[0].nodeType !== 9 ) ? 'uniqueID' : '_yuid'; + instance = Y.Node._instances[nodes[0][UID]]; + } else { + instance = nodes[0]._yui_instances && nodes[0]._yui_instances[Y._yuid]; + } + instance = instance || getTemp(nodes[0]); + val = instance._get(attr); if (val && val.nodeType) { isNodeList = true; @@ -1268,7 +1318,12 @@ NodeList.prototype.get = function(attr) { } Y.Array.each(nodes, function(node) { - instance = Y.Node._instances[node._yuid]; + if (Y.Node._instances) { + UID = (node.uniqueID && node.nodeType !== 9 ) ? 'uniqueID' : '_yuid'; + instance = Y.Node._instances[node[UID]]; + } else { + instance = node._yui_instances && node._yui_instances[Y._yuid]; + } if (!instance) { instance = getTemp(node); diff --git a/src/node/js/node-core.js b/src/node/js/node-core.js index b2dfe8a0785..bc49e7d1261 100644 --- a/src/node/js/node-core.js +++ b/src/node/js/node-core.js @@ -28,7 +28,7 @@ var DOT = '.', UID = '_yuid', EMPTY_OBJ = {}, - use_instance_map = Y.UA.ie > 0, // define flag, in case other browsers need it, too + use_instance_map = 0 < Y.UA.ie && Y.UA.ie < 10, // define flag, in case other browsers need it, too _slice = Array.prototype.slice, From cd63b12bc2ffc4b9d0f3010eab1b0a37a9bb7313 Mon Sep 17 00:00:00 2001 From: John Lindal Date: Wed, 12 Feb 2014 15:19:56 -0800 Subject: [PATCH 3/7] consistently use UID; fix comments --- src/node/js/node-core.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/node/js/node-core.js b/src/node/js/node-core.js index bc49e7d1261..101da5a5d14 100644 --- a/src/node/js/node-core.js +++ b/src/node/js/node-core.js @@ -292,7 +292,7 @@ Y_Node.one = function(node) { } if (node.nodeType || Y.DOM.isWindow(node)) { // avoid bad input (numbers, boolean, etc) - uid = (node.uniqueID && node.nodeType !== 9) ? node.uniqueID : node._yuid; + uid = (node.uniqueID && node.nodeType !== 9) ? node.uniqueID : node[UID]; if (use_instance_map) { instance = Y_Node._instances[uid]; // reuse exising instances } else { @@ -301,7 +301,7 @@ Y_Node.one = function(node) { cachedNode = instance ? instance._node : null; if (!instance || (cachedNode && node !== cachedNode)) { // new Node when nodes don't match instance = new Y_Node(node); - if (node.nodeType != 11) { // dont cache document fragment + if (node.nodeType != 11) { // don't cache document fragment if (use_instance_map) { Y_Node._instances[instance[UID]] = instance; // cache node } else { @@ -391,7 +391,6 @@ Y.mix(Y_Node.prototype, { str += '.' + className.replace(' ', '.'); } - // TODO: add yuid? str += ' ' + this[UID]; } return str; @@ -782,7 +781,7 @@ Y.mix(Y_Node.prototype, { this._stateProxy = null; if (use_instance_map) { - delete Y_Node._instances[this._yuid]; + delete Y_Node._instances[this[UID]]; } }, From 154369001294ffb7dfc3924a14924fa85c50f975 Mon Sep 17 00:00:00 2001 From: John Lindal Date: Wed, 12 Feb 2014 15:30:35 -0800 Subject: [PATCH 4/7] only compute uid if needed --- src/node/js/node-core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/js/node-core.js b/src/node/js/node-core.js index 101da5a5d14..7513f0b3117 100644 --- a/src/node/js/node-core.js +++ b/src/node/js/node-core.js @@ -292,8 +292,8 @@ Y_Node.one = function(node) { } if (node.nodeType || Y.DOM.isWindow(node)) { // avoid bad input (numbers, boolean, etc) - uid = (node.uniqueID && node.nodeType !== 9) ? node.uniqueID : node[UID]; if (use_instance_map) { + uid = (node.uniqueID && node.nodeType !== 9) ? node.uniqueID : node[UID]; instance = Y_Node._instances[uid]; // reuse exising instances } else { instance = node._yui_instances && node._yui_instances[Y._yuid]; // reuse exising instances From 672f65169136c56a85521f1bcecb1ff9e11b7ad7 Mon Sep 17 00:00:00 2001 From: John Lindal Date: Wed, 12 Feb 2014 15:30:51 -0800 Subject: [PATCH 5/7] clean up terminology in code --- build/node-core/node-core-coverage.js | 4 ++-- build/node-core/node-core-debug.js | 31 +++++++++++++-------------- build/node-core/node-core-min.js | 4 ++-- build/node-core/node-core.js | 31 +++++++++++++-------------- src/node/js/nodelist.js | 22 +++++++++---------- 5 files changed, 45 insertions(+), 47 deletions(-) diff --git a/build/node-core/node-core-coverage.js b/build/node-core/node-core-coverage.js index 8663833d30c..1fe9e37377c 100644 --- a/build/node-core/node-core-coverage.js +++ b/build/node-core/node-core-coverage.js @@ -1,6 +1,6 @@ if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/node-core/node-core.js']) { - __coverage__['build/node-core/node-core.js'] = {"path":"build/node-core/node-core.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,"235":0,"236":0,"237":0,"238":0,"239":0,"240":0,"241":0,"242":0,"243":0,"244":0,"245":0,"246":0,"247":0,"248":0,"249":0,"250":0,"251":0,"252":0,"253":0,"254":0,"255":0,"256":0,"257":0,"258":0,"259":0,"260":0,"261":0,"262":0,"263":0,"264":0,"265":0,"266":0,"267":0,"268":0,"269":0,"270":0,"271":0,"272":0,"273":0,"274":0,"275":0,"276":0,"277":0,"278":0,"279":0,"280":0,"281":0,"282":0,"283":0,"284":0,"285":0,"286":0,"287":0,"288":0,"289":0,"290":0,"291":0,"292":0,"293":0,"294":0,"295":0,"296":0,"297":0,"298":0,"299":0,"300":0,"301":0,"302":0,"303":0,"304":0,"305":0,"306":0,"307":0,"308":0,"309":0,"310":0,"311":0,"312":0,"313":0,"314":0,"315":0,"316":0,"317":0,"318":0,"319":0,"320":0,"321":0,"322":0,"323":0,"324":0,"325":0,"326":0,"327":0,"328":0,"329":0,"330":0,"331":0,"332":0,"333":0,"334":0,"335":0,"336":0,"337":0,"338":0,"339":0,"340":0,"341":0,"342":0,"343":0,"344":0,"345":0,"346":0,"347":0,"348":0,"349":0,"350":0,"351":0,"352":0,"353":0,"354":0,"355":0,"356":0,"357":0,"358":0,"359":0,"360":0,"361":0,"362":0,"363":0,"364":0,"365":0,"366":0,"367":0,"368":0,"369":0,"370":0,"371":0,"372":0,"373":0,"374":0,"375":0,"376":0,"377":0,"378":0,"379":0,"380":0,"381":0,"382":0,"383":0,"384":0,"385":0,"386":0,"387":0,"388":0,"389":0,"390":0,"391":0,"392":0,"393":0,"394":0,"395":0,"396":0,"397":0,"398":0,"399":0,"400":0,"401":0,"402":0,"403":0,"404":0,"405":0,"406":0,"407":0,"408":0,"409":0,"410":0,"411":0,"412":0,"413":0,"414":0,"415":0,"416":0,"417":0,"418":0,"419":0,"420":0,"421":0,"422":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0,0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0],"26":[0,0,0,0],"27":[0,0],"28":[0,0],"29":[0,0],"30":[0,0,0],"31":[0,0],"32":[0,0],"33":[0,0],"34":[0,0],"35":[0,0],"36":[0,0],"37":[0,0],"38":[0,0],"39":[0,0],"40":[0,0],"41":[0,0],"42":[0,0],"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],"52":[0,0,0],"53":[0,0],"54":[0,0],"55":[0,0],"56":[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],"82":[0,0],"83":[0,0],"84":[0,0],"85":[0,0],"86":[0,0],"87":[0,0],"88":[0,0],"89":[0,0,0],"90":[0,0],"91":[0,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],"101":[0,0],"102":[0,0],"103":[0,0],"104":[0,0],"105":[0,0],"106":[0,0],"107":[0,0],"108":[0,0],"109":[0,0],"110":[0,0],"111":[0,0],"112":[0,0],"113":[0,0],"114":[0,0,0,0,0],"115":[0,0],"116":[0,0],"117":[0,0],"118":[0,0],"119":[0,0],"120":[0,0],"121":[0,0],"122":[0,0],"123":[0,0],"124":[0,0],"125":[0,0],"126":[0,0],"127":[0,0],"128":[0,0],"129":[0,0],"130":[0,0],"131":[0,0],"132":[0,0],"133":[0,0],"134":[0,0],"135":[0,0],"136":[0,0],"137":[0,0],"138":[0,0],"139":[0,0],"140":[0,0],"141":[0,0],"142":[0,0],"143":[0,0],"144":[0,0],"145":[0,0],"146":[0,0],"147":[0,0],"148":[0,0],"149":[0,0],"150":[0,0],"151":[0,0],"152":[0,0],"153":[0,0],"154":[0,0],"155":[0,0],"156":[0,0],"157":[0,0],"158":[0,0],"159":[0,0,0],"160":[0,0],"161":[0,0],"162":[0,0],"163":[0,0],"164":[0,0],"165":[0,0],"166":[0,0],"167":[0,0],"168":[0,0],"169":[0,0],"170":[0,0],"171":[0,0],"172":[0,0],"173":[0,0],"174":[0,0],"175":[0,0],"176":[0,0],"177":[0,0],"178":[0,0],"179":[0,0],"180":[0,0],"181":[0,0,0],"182":[0,0],"183":[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,"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},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":21},"end":{"line":1,"column":40}}},"2":{"name":"(anonymous_2)","line":39,"loc":{"start":{"line":39,"column":13},"end":{"line":39,"column":28}}},"3":{"name":"(anonymous_3)","line":80,"loc":{"start":{"line":80,"column":14},"end":{"line":80,"column":27}}},"4":{"name":"(anonymous_4)","line":84,"loc":{"start":{"line":84,"column":12},"end":{"line":84,"column":24}}},"5":{"name":"(anonymous_5)","line":87,"loc":{"start":{"line":87,"column":12},"end":{"line":87,"column":24}}},"6":{"name":"(anonymous_6)","line":99,"loc":{"start":{"line":99,"column":21},"end":{"line":99,"column":36}}},"7":{"name":"(anonymous_7)","line":151,"loc":{"start":{"line":151,"column":20},"end":{"line":151,"column":35}}},"8":{"name":"(anonymous_8)","line":169,"loc":{"start":{"line":169,"column":18},"end":{"line":169,"column":38}}},"9":{"name":"(anonymous_9)","line":199,"loc":{"start":{"line":199,"column":19},"end":{"line":199,"column":47}}},"10":{"name":"(anonymous_10)","line":201,"loc":{"start":{"line":201,"column":33},"end":{"line":201,"column":44}}},"11":{"name":"(anonymous_11)","line":238,"loc":{"start":{"line":238,"column":22},"end":{"line":238,"column":52}}},"12":{"name":"(anonymous_12)","line":243,"loc":{"start":{"line":243,"column":27},"end":{"line":243,"column":39}}},"13":{"name":"(anonymous_13)","line":280,"loc":{"start":{"line":280,"column":13},"end":{"line":280,"column":28}}},"14":{"name":"(anonymous_14)","line":331,"loc":{"start":{"line":331,"column":24},"end":{"line":331,"column":44}}},"15":{"name":"(anonymous_15)","line":355,"loc":{"start":{"line":355,"column":24},"end":{"line":355,"column":39}}},"16":{"name":"(anonymous_16)","line":376,"loc":{"start":{"line":376,"column":14},"end":{"line":376,"column":25}}},"17":{"name":"(anonymous_17)","line":410,"loc":{"start":{"line":410,"column":9},"end":{"line":410,"column":24}}},"18":{"name":"(anonymous_18)","line":434,"loc":{"start":{"line":434,"column":10},"end":{"line":434,"column":25}}},"19":{"name":"(anonymous_19)","line":460,"loc":{"start":{"line":460,"column":9},"end":{"line":460,"column":29}}},"20":{"name":"(anonymous_20)","line":484,"loc":{"start":{"line":484,"column":14},"end":{"line":484,"column":32}}},"21":{"name":"(anonymous_21)","line":488,"loc":{"start":{"line":488,"column":35},"end":{"line":488,"column":50}}},"22":{"name":"(anonymous_22)","line":502,"loc":{"start":{"line":502,"column":14},"end":{"line":502,"column":30}}},"23":{"name":"(anonymous_23)","line":507,"loc":{"start":{"line":507,"column":32},"end":{"line":507,"column":47}}},"24":{"name":"(anonymous_24)","line":522,"loc":{"start":{"line":522,"column":15},"end":{"line":522,"column":33}}},"25":{"name":"(anonymous_25)","line":538,"loc":{"start":{"line":538,"column":11},"end":{"line":538,"column":25}}},"26":{"name":"(anonymous_26)","line":551,"loc":{"start":{"line":551,"column":13},"end":{"line":551,"column":26}}},"27":{"name":"(anonymous_27)","line":575,"loc":{"start":{"line":575,"column":14},"end":{"line":575,"column":45}}},"28":{"name":"(anonymous_28)","line":593,"loc":{"start":{"line":593,"column":15},"end":{"line":593,"column":46}}},"29":{"name":"(anonymous_29)","line":611,"loc":{"start":{"line":611,"column":14},"end":{"line":611,"column":32}}},"30":{"name":"(anonymous_30)","line":625,"loc":{"start":{"line":625,"column":10},"end":{"line":625,"column":28}}},"31":{"name":"(anonymous_31)","line":637,"loc":{"start":{"line":637,"column":14},"end":{"line":637,"column":27}}},"32":{"name":"(anonymous_32)","line":651,"loc":{"start":{"line":651,"column":9},"end":{"line":651,"column":28}}},"33":{"name":"(anonymous_33)","line":662,"loc":{"start":{"line":662,"column":9},"end":{"line":662,"column":28}}},"34":{"name":"(anonymous_34)","line":682,"loc":{"start":{"line":682,"column":10},"end":{"line":682,"column":29}}},"35":{"name":"(anonymous_35)","line":695,"loc":{"start":{"line":695,"column":12},"end":{"line":695,"column":30}}},"36":{"name":"(anonymous_36)","line":718,"loc":{"start":{"line":718,"column":13},"end":{"line":718,"column":31}}},"37":{"name":"(anonymous_37)","line":734,"loc":{"start":{"line":734,"column":18},"end":{"line":734,"column":42}}},"38":{"name":"(anonymous_38)","line":751,"loc":{"start":{"line":751,"column":13},"end":{"line":751,"column":33}}},"39":{"name":"(anonymous_39)","line":764,"loc":{"start":{"line":764,"column":43},"end":{"line":764,"column":58}}},"40":{"name":"(anonymous_40)","line":800,"loc":{"start":{"line":800,"column":12},"end":{"line":800,"column":44}}},"41":{"name":"(anonymous_41)","line":824,"loc":{"start":{"line":824,"column":8},"end":{"line":824,"column":28}}},"42":{"name":"(anonymous_42)","line":827,"loc":{"start":{"line":827,"column":8},"end":{"line":827,"column":28}}},"43":{"name":"(anonymous_43)","line":845,"loc":{"start":{"line":845,"column":15},"end":{"line":845,"column":32}}},"44":{"name":"(anonymous_44)","line":853,"loc":{"start":{"line":853,"column":16},"end":{"line":853,"column":27}}},"45":{"name":"(anonymous_45)","line":862,"loc":{"start":{"line":862,"column":11},"end":{"line":862,"column":22}}},"46":{"name":"(anonymous_46)","line":872,"loc":{"start":{"line":872,"column":16},"end":{"line":872,"column":27}}},"47":{"name":"(anonymous_47)","line":895,"loc":{"start":{"line":895,"column":15},"end":{"line":895,"column":31}}},"48":{"name":"(anonymous_48)","line":907,"loc":{"start":{"line":907,"column":32},"end":{"line":907,"column":47}}},"49":{"name":"(anonymous_49)","line":936,"loc":{"start":{"line":936,"column":23},"end":{"line":936,"column":42}}},"50":{"name":"(anonymous_50)","line":940,"loc":{"start":{"line":940,"column":16},"end":{"line":940,"column":48}}},"51":{"name":"(anonymous_51)","line":948,"loc":{"start":{"line":948,"column":21},"end":{"line":948,"column":49}}},"52":{"name":"(anonymous_52)","line":950,"loc":{"start":{"line":950,"column":35},"end":{"line":950,"column":46}}},"53":{"name":"(anonymous_53)","line":954,"loc":{"start":{"line":954,"column":38},"end":{"line":954,"column":53}}},"54":{"name":"(anonymous_54)","line":984,"loc":{"start":{"line":984,"column":24},"end":{"line":984,"column":54}}},"55":{"name":"(anonymous_55)","line":989,"loc":{"start":{"line":989,"column":27},"end":{"line":989,"column":39}}},"56":{"name":"(anonymous_56)","line":995,"loc":{"start":{"line":995,"column":24},"end":{"line":995,"column":39}}},"57":{"name":"(anonymous_57)","line":1008,"loc":{"start":{"line":1008,"column":13},"end":{"line":1008,"column":44}}},"58":{"name":"(anonymous_58)","line":1011,"loc":{"start":{"line":1011,"column":18},"end":{"line":1011,"column":33}}},"59":{"name":"(anonymous_59)","line":1028,"loc":{"start":{"line":1028,"column":10},"end":{"line":1028,"column":26}}},"60":{"name":"(anonymous_60)","line":1041,"loc":{"start":{"line":1041,"column":10},"end":{"line":1041,"column":32}}},"61":{"name":"(anonymous_61)","line":1043,"loc":{"start":{"line":1043,"column":34},"end":{"line":1043,"column":56}}},"62":{"name":"(anonymous_62)","line":1050,"loc":{"start":{"line":1050,"column":11},"end":{"line":1050,"column":33}}},"63":{"name":"(anonymous_63)","line":1053,"loc":{"start":{"line":1053,"column":34},"end":{"line":1053,"column":56}}},"64":{"name":"(anonymous_64)","line":1082,"loc":{"start":{"line":1082,"column":10},"end":{"line":1082,"column":32}}},"65":{"name":"(anonymous_65)","line":1084,"loc":{"start":{"line":1084,"column":41},"end":{"line":1084,"column":63}}},"66":{"name":"(anonymous_66)","line":1096,"loc":{"start":{"line":1096,"column":12},"end":{"line":1096,"column":23}}},"67":{"name":"(anonymous_67)","line":1107,"loc":{"start":{"line":1107,"column":13},"end":{"line":1107,"column":28}}},"68":{"name":"(anonymous_68)","line":1118,"loc":{"start":{"line":1118,"column":12},"end":{"line":1118,"column":31}}},"69":{"name":"(anonymous_69)","line":1132,"loc":{"start":{"line":1132,"column":13},"end":{"line":1132,"column":28}}},"70":{"name":"(anonymous_70)","line":1135,"loc":{"start":{"line":1135,"column":28},"end":{"line":1135,"column":46}}},"71":{"name":"(anonymous_71)","line":1150,"loc":{"start":{"line":1150,"column":9},"end":{"line":1150,"column":20}}},"72":{"name":"(anonymous_72)","line":1160,"loc":{"start":{"line":1160,"column":10},"end":{"line":1160,"column":21}}},"73":{"name":"(anonymous_73)","line":1164,"loc":{"start":{"line":1164,"column":16},"end":{"line":1164,"column":27}}},"74":{"name":"(anonymous_74)","line":1172,"loc":{"start":{"line":1172,"column":13},"end":{"line":1172,"column":24}}},"75":{"name":"(anonymous_75)","line":1196,"loc":{"start":{"line":1196,"column":10},"end":{"line":1196,"column":21}}},"76":{"name":"(anonymous_76)","line":1205,"loc":{"start":{"line":1205,"column":13},"end":{"line":1205,"column":24}}},"77":{"name":"(anonymous_77)","line":1209,"loc":{"start":{"line":1209,"column":14},"end":{"line":1209,"column":25}}},"78":{"name":"(anonymous_78)","line":1238,"loc":{"start":{"line":1238,"column":17},"end":{"line":1238,"column":28}}},"79":{"name":"(anonymous_79)","line":1296,"loc":{"start":{"line":1296,"column":25},"end":{"line":1296,"column":40}}},"80":{"name":"(anonymous_80)","line":1320,"loc":{"start":{"line":1320,"column":24},"end":{"line":1320,"column":39}}},"81":{"name":"(anonymous_81)","line":1345,"loc":{"start":{"line":1345,"column":8},"end":{"line":1345,"column":24}}},"82":{"name":"(anonymous_82)","line":1415,"loc":{"start":{"line":1415,"column":28},"end":{"line":1415,"column":59}}},"83":{"name":"(anonymous_83)","line":1416,"loc":{"start":{"line":1416,"column":33},"end":{"line":1416,"column":44}}},"84":{"name":"(anonymous_84)","line":1536,"loc":{"start":{"line":1536,"column":3},"end":{"line":1536,"column":20}}},"85":{"name":"(anonymous_85)","line":1537,"loc":{"start":{"line":1537,"column":31},"end":{"line":1537,"column":58}}},"86":{"name":"(anonymous_86)","line":1550,"loc":{"start":{"line":1550,"column":35},"end":{"line":1550,"column":50}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1667,"column":56}},"2":{"start":{"line":25,"column":0},"end":{"line":93,"column":6}},"3":{"start":{"line":40,"column":8},"end":{"line":42,"column":9}},"4":{"start":{"line":41,"column":12},"end":{"line":41,"column":36}},"5":{"start":{"line":44,"column":8},"end":{"line":49,"column":9}},"6":{"start":{"line":45,"column":12},"end":{"line":45,"column":44}},"7":{"start":{"line":46,"column":12},"end":{"line":48,"column":13}},"8":{"start":{"line":47,"column":16},"end":{"line":47,"column":28}},"9":{"start":{"line":51,"column":8},"end":{"line":51,"column":68}},"10":{"start":{"line":53,"column":8},"end":{"line":55,"column":9}},"11":{"start":{"line":54,"column":12},"end":{"line":54,"column":29}},"12":{"start":{"line":57,"column":8},"end":{"line":57,"column":35}},"13":{"start":{"line":58,"column":8},"end":{"line":60,"column":9}},"14":{"start":{"line":59,"column":12},"end":{"line":59,"column":27}},"15":{"start":{"line":62,"column":8},"end":{"line":62,"column":24}},"16":{"start":{"line":70,"column":8},"end":{"line":70,"column":26}},"17":{"start":{"line":72,"column":8},"end":{"line":72,"column":32}},"18":{"start":{"line":74,"column":8},"end":{"line":76,"column":9}},"19":{"start":{"line":75,"column":12},"end":{"line":75,"column":32}},"20":{"start":{"line":81,"column":8},"end":{"line":81,"column":23}},"21":{"start":{"line":82,"column":8},"end":{"line":90,"column":9}},"22":{"start":{"line":83,"column":12},"end":{"line":89,"column":14}},"23":{"start":{"line":85,"column":16},"end":{"line":85,"column":46}},"24":{"start":{"line":88,"column":16},"end":{"line":88,"column":36}},"25":{"start":{"line":92,"column":8},"end":{"line":92,"column":19}},"26":{"start":{"line":96,"column":0},"end":{"line":96,"column":18}},"27":{"start":{"line":97,"column":0},"end":{"line":97,"column":23}},"28":{"start":{"line":99,"column":0},"end":{"line":111,"column":2}},"29":{"start":{"line":100,"column":4},"end":{"line":108,"column":5}},"30":{"start":{"line":101,"column":8},"end":{"line":107,"column":9}},"31":{"start":{"line":102,"column":12},"end":{"line":102,"column":32}},"32":{"start":{"line":103,"column":15},"end":{"line":107,"column":9}},"33":{"start":{"line":104,"column":12},"end":{"line":104,"column":32}},"34":{"start":{"line":106,"column":12},"end":{"line":106,"column":54}},"35":{"start":{"line":110,"column":4},"end":{"line":110,"column":24}},"36":{"start":{"line":119,"column":0},"end":{"line":119,"column":21}},"37":{"start":{"line":124,"column":0},"end":{"line":124,"column":36}},"38":{"start":{"line":126,"column":0},"end":{"line":126,"column":34}},"39":{"start":{"line":127,"column":0},"end":{"line":127,"column":35}},"40":{"start":{"line":138,"column":0},"end":{"line":140,"column":1}},"41":{"start":{"line":139,"column":4},"end":{"line":139,"column":27}},"42":{"start":{"line":151,"column":0},"end":{"line":156,"column":2}},"43":{"start":{"line":152,"column":4},"end":{"line":154,"column":5}},"44":{"start":{"line":153,"column":8},"end":{"line":153,"column":59}},"45":{"start":{"line":155,"column":4},"end":{"line":155,"column":16}},"46":{"start":{"line":169,"column":0},"end":{"line":186,"column":2}},"47":{"start":{"line":170,"column":4},"end":{"line":183,"column":5}},"48":{"start":{"line":171,"column":9},"end":{"line":178,"column":9}},"49":{"start":{"line":172,"column":12},"end":{"line":177,"column":13}},"50":{"start":{"line":173,"column":16},"end":{"line":173,"column":33}},"51":{"start":{"line":174,"column":19},"end":{"line":177,"column":13}},"52":{"start":{"line":176,"column":16},"end":{"line":176,"column":33}},"53":{"start":{"line":179,"column":11},"end":{"line":183,"column":5}},"54":{"start":{"line":180,"column":8},"end":{"line":180,"column":19}},"55":{"start":{"line":181,"column":11},"end":{"line":183,"column":5}},"56":{"start":{"line":182,"column":8},"end":{"line":182,"column":19}},"57":{"start":{"line":185,"column":4},"end":{"line":185,"column":15}},"58":{"start":{"line":199,"column":0},"end":{"line":226,"column":2}},"59":{"start":{"line":200,"column":4},"end":{"line":225,"column":5}},"60":{"start":{"line":201,"column":8},"end":{"line":223,"column":10}},"61":{"start":{"line":202,"column":12},"end":{"line":204,"column":20}},"62":{"start":{"line":206,"column":12},"end":{"line":208,"column":13}},"63":{"start":{"line":207,"column":16},"end":{"line":207,"column":40}},"64":{"start":{"line":210,"column":12},"end":{"line":212,"column":13}},"65":{"start":{"line":211,"column":16},"end":{"line":211,"column":40}},"66":{"start":{"line":213,"column":12},"end":{"line":213,"column":37}},"67":{"start":{"line":215,"column":12},"end":{"line":215,"column":50}},"68":{"start":{"line":217,"column":12},"end":{"line":219,"column":13}},"69":{"start":{"line":218,"column":16},"end":{"line":218,"column":49}},"70":{"start":{"line":221,"column":12},"end":{"line":221,"column":56}},"71":{"start":{"line":222,"column":12},"end":{"line":222,"column":23}},"72":{"start":{"line":238,"column":0},"end":{"line":247,"column":2}},"73":{"start":{"line":239,"column":4},"end":{"line":246,"column":5}},"74":{"start":{"line":240,"column":8},"end":{"line":240,"column":34}},"75":{"start":{"line":241,"column":8},"end":{"line":241,"column":52}},"76":{"start":{"line":243,"column":8},"end":{"line":245,"column":11}},"77":{"start":{"line":244,"column":12},"end":{"line":244,"column":41}},"78":{"start":{"line":280,"column":0},"end":{"line":320,"column":2}},"79":{"start":{"line":281,"column":4},"end":{"line":283,"column":12}},"80":{"start":{"line":285,"column":4},"end":{"line":317,"column":5}},"81":{"start":{"line":286,"column":8},"end":{"line":293,"column":9}},"82":{"start":{"line":287,"column":12},"end":{"line":287,"column":44}},"83":{"start":{"line":288,"column":12},"end":{"line":290,"column":13}},"84":{"start":{"line":289,"column":16},"end":{"line":289,"column":28}},"85":{"start":{"line":291,"column":15},"end":{"line":293,"column":9}},"86":{"start":{"line":292,"column":12},"end":{"line":292,"column":24}},"87":{"start":{"line":295,"column":8},"end":{"line":316,"column":9}},"88":{"start":{"line":296,"column":12},"end":{"line":296,"column":86}},"89":{"start":{"line":297,"column":12},"end":{"line":301,"column":13}},"90":{"start":{"line":298,"column":16},"end":{"line":298,"column":50}},"91":{"start":{"line":300,"column":16},"end":{"line":300,"column":79}},"92":{"start":{"line":302,"column":12},"end":{"line":302,"column":58}},"93":{"start":{"line":303,"column":12},"end":{"line":315,"column":13}},"94":{"start":{"line":304,"column":16},"end":{"line":304,"column":44}},"95":{"start":{"line":305,"column":16},"end":{"line":314,"column":17}},"96":{"start":{"line":306,"column":20},"end":{"line":313,"column":21}},"97":{"start":{"line":307,"column":24},"end":{"line":307,"column":68}},"98":{"start":{"line":309,"column":24},"end":{"line":311,"column":25}},"99":{"start":{"line":310,"column":28},"end":{"line":310,"column":53}},"100":{"start":{"line":312,"column":24},"end":{"line":312,"column":64}},"101":{"start":{"line":319,"column":4},"end":{"line":319,"column":20}},"102":{"start":{"line":331,"column":0},"end":{"line":345,"column":2}},"103":{"start":{"line":332,"column":4},"end":{"line":333,"column":16}},"104":{"start":{"line":335,"column":4},"end":{"line":342,"column":5}},"105":{"start":{"line":336,"column":8},"end":{"line":336,"column":23}},"106":{"start":{"line":337,"column":8},"end":{"line":337,"column":31}},"107":{"start":{"line":339,"column":8},"end":{"line":339,"column":43}},"108":{"start":{"line":340,"column":11},"end":{"line":342,"column":5}},"109":{"start":{"line":341,"column":8},"end":{"line":341,"column":25}},"110":{"start":{"line":344,"column":4},"end":{"line":344,"column":15}},"111":{"start":{"line":355,"column":0},"end":{"line":366,"column":2}},"112":{"start":{"line":356,"column":4},"end":{"line":357,"column":12}},"113":{"start":{"line":359,"column":4},"end":{"line":363,"column":5}},"114":{"start":{"line":360,"column":8},"end":{"line":360,"column":55}},"115":{"start":{"line":361,"column":11},"end":{"line":363,"column":5}},"116":{"start":{"line":362,"column":8},"end":{"line":362,"column":25}},"117":{"start":{"line":365,"column":4},"end":{"line":365,"column":15}},"118":{"start":{"line":368,"column":0},"end":{"line":875,"column":9}},"119":{"start":{"line":377,"column":8},"end":{"line":379,"column":33}},"120":{"start":{"line":381,"column":8},"end":{"line":397,"column":9}},"121":{"start":{"line":382,"column":12},"end":{"line":382,"column":36}},"122":{"start":{"line":383,"column":12},"end":{"line":383,"column":70}},"123":{"start":{"line":384,"column":12},"end":{"line":384,"column":91}},"124":{"start":{"line":385,"column":12},"end":{"line":385,"column":34}},"125":{"start":{"line":387,"column":12},"end":{"line":389,"column":13}},"126":{"start":{"line":388,"column":16},"end":{"line":388,"column":32}},"127":{"start":{"line":391,"column":12},"end":{"line":393,"column":13}},"128":{"start":{"line":392,"column":16},"end":{"line":392,"column":57}},"129":{"start":{"line":396,"column":12},"end":{"line":396,"column":35}},"130":{"start":{"line":398,"column":8},"end":{"line":398,"column":19}},"131":{"start":{"line":411,"column":8},"end":{"line":411,"column":16}},"132":{"start":{"line":413,"column":8},"end":{"line":417,"column":9}},"133":{"start":{"line":414,"column":12},"end":{"line":414,"column":38}},"134":{"start":{"line":416,"column":12},"end":{"line":416,"column":34}},"135":{"start":{"line":419,"column":8},"end":{"line":423,"column":9}},"136":{"start":{"line":420,"column":12},"end":{"line":420,"column":45}},"137":{"start":{"line":421,"column":15},"end":{"line":423,"column":9}},"138":{"start":{"line":422,"column":12},"end":{"line":422,"column":23}},"139":{"start":{"line":424,"column":8},"end":{"line":424,"column":19}},"140":{"start":{"line":435,"column":8},"end":{"line":436,"column":16}},"141":{"start":{"line":438,"column":8},"end":{"line":444,"column":9}},"142":{"start":{"line":439,"column":12},"end":{"line":439,"column":47}},"143":{"start":{"line":440,"column":15},"end":{"line":444,"column":9}},"144":{"start":{"line":441,"column":12},"end":{"line":441,"column":51}},"145":{"start":{"line":443,"column":12},"end":{"line":443,"column":63}},"146":{"start":{"line":446,"column":8},"end":{"line":446,"column":19}},"147":{"start":{"line":461,"column":8},"end":{"line":461,"column":44}},"148":{"start":{"line":463,"column":8},"end":{"line":473,"column":9}},"149":{"start":{"line":464,"column":12},"end":{"line":464,"column":49}},"150":{"start":{"line":466,"column":12},"end":{"line":472,"column":13}},"151":{"start":{"line":467,"column":16},"end":{"line":467,"column":56}},"152":{"start":{"line":468,"column":19},"end":{"line":472,"column":13}},"153":{"start":{"line":469,"column":16},"end":{"line":469,"column":51}},"154":{"start":{"line":471,"column":16},"end":{"line":471,"column":61}},"155":{"start":{"line":475,"column":8},"end":{"line":475,"column":20}},"156":{"start":{"line":485,"column":8},"end":{"line":491,"column":9}},"157":{"start":{"line":486,"column":12},"end":{"line":486,"column":36}},"158":{"start":{"line":488,"column":12},"end":{"line":490,"column":21}},"159":{"start":{"line":489,"column":16},"end":{"line":489,"column":31}},"160":{"start":{"line":493,"column":8},"end":{"line":493,"column":20}},"161":{"start":{"line":503,"column":8},"end":{"line":503,"column":21}},"162":{"start":{"line":504,"column":8},"end":{"line":510,"column":9}},"163":{"start":{"line":505,"column":12},"end":{"line":505,"column":34}},"164":{"start":{"line":507,"column":12},"end":{"line":509,"column":21}},"165":{"start":{"line":508,"column":16},"end":{"line":508,"column":37}},"166":{"start":{"line":512,"column":8},"end":{"line":512,"column":19}},"167":{"start":{"line":523,"column":8},"end":{"line":523,"column":30}},"168":{"start":{"line":525,"column":8},"end":{"line":527,"column":9}},"169":{"start":{"line":526,"column":12},"end":{"line":526,"column":36}},"170":{"start":{"line":528,"column":8},"end":{"line":528,"column":32}},"171":{"start":{"line":539,"column":8},"end":{"line":539,"column":30}},"172":{"start":{"line":541,"column":8},"end":{"line":546,"column":9}},"173":{"start":{"line":542,"column":12},"end":{"line":542,"column":66}},"174":{"start":{"line":543,"column":12},"end":{"line":545,"column":13}},"175":{"start":{"line":544,"column":16},"end":{"line":544,"column":65}},"176":{"start":{"line":548,"column":8},"end":{"line":548,"column":21}},"177":{"start":{"line":552,"column":8},"end":{"line":553,"column":55}},"178":{"start":{"line":554,"column":8},"end":{"line":558,"column":9}},"179":{"start":{"line":555,"column":12},"end":{"line":555,"column":29}},"180":{"start":{"line":557,"column":12},"end":{"line":557,"column":23}},"181":{"start":{"line":559,"column":8},"end":{"line":559,"column":19}},"182":{"start":{"line":577,"column":8},"end":{"line":580,"column":9}},"183":{"start":{"line":579,"column":12},"end":{"line":579,"column":30}},"184":{"start":{"line":582,"column":8},"end":{"line":582,"column":89}},"185":{"start":{"line":594,"column":8},"end":{"line":597,"column":9}},"186":{"start":{"line":596,"column":12},"end":{"line":596,"column":30}},"187":{"start":{"line":598,"column":8},"end":{"line":598,"column":90}},"188":{"start":{"line":612,"column":8},"end":{"line":612,"column":91}},"189":{"start":{"line":626,"column":8},"end":{"line":626,"column":87}},"190":{"start":{"line":638,"column":8},"end":{"line":638,"column":62}},"191":{"start":{"line":652,"column":8},"end":{"line":652,"column":67}},"192":{"start":{"line":663,"column":8},"end":{"line":663,"column":21}},"193":{"start":{"line":665,"column":8},"end":{"line":669,"column":9}},"194":{"start":{"line":666,"column":12},"end":{"line":666,"column":69}},"195":{"start":{"line":667,"column":12},"end":{"line":667,"column":39}},"196":{"start":{"line":668,"column":12},"end":{"line":668,"column":45}},"197":{"start":{"line":671,"column":8},"end":{"line":671,"column":37}},"198":{"start":{"line":683,"column":8},"end":{"line":683,"column":53}},"199":{"start":{"line":696,"column":8},"end":{"line":696,"column":30}},"200":{"start":{"line":698,"column":8},"end":{"line":700,"column":9}},"201":{"start":{"line":699,"column":12},"end":{"line":699,"column":46}},"202":{"start":{"line":702,"column":8},"end":{"line":704,"column":9}},"203":{"start":{"line":703,"column":12},"end":{"line":703,"column":27}},"204":{"start":{"line":706,"column":8},"end":{"line":706,"column":20}},"205":{"start":{"line":719,"column":8},"end":{"line":719,"column":30}},"206":{"start":{"line":720,"column":8},"end":{"line":722,"column":9}},"207":{"start":{"line":721,"column":12},"end":{"line":721,"column":45}},"208":{"start":{"line":723,"column":8},"end":{"line":723,"column":71}},"209":{"start":{"line":724,"column":8},"end":{"line":724,"column":20}},"210":{"start":{"line":735,"column":8},"end":{"line":737,"column":9}},"211":{"start":{"line":736,"column":12},"end":{"line":736,"column":38}},"212":{"start":{"line":739,"column":8},"end":{"line":739,"column":99}},"213":{"start":{"line":752,"column":8},"end":{"line":753,"column":21}},"214":{"start":{"line":755,"column":8},"end":{"line":755,"column":21}},"215":{"start":{"line":757,"column":8},"end":{"line":759,"column":9}},"216":{"start":{"line":758,"column":12},"end":{"line":758,"column":26}},"217":{"start":{"line":761,"column":8},"end":{"line":761,"column":25}},"218":{"start":{"line":763,"column":8},"end":{"line":776,"column":9}},"219":{"start":{"line":764,"column":12},"end":{"line":775,"column":15}},"220":{"start":{"line":765,"column":16},"end":{"line":769,"column":17}},"221":{"start":{"line":766,"column":20},"end":{"line":766,"column":60}},"222":{"start":{"line":768,"column":20},"end":{"line":768,"column":83}},"223":{"start":{"line":770,"column":16},"end":{"line":774,"column":17}},"224":{"start":{"line":771,"column":19},"end":{"line":771,"column":38}},"225":{"start":{"line":773,"column":20},"end":{"line":773,"column":47}},"226":{"start":{"line":778,"column":8},"end":{"line":780,"column":9}},"227":{"start":{"line":779,"column":12},"end":{"line":779,"column":54}},"228":{"start":{"line":782,"column":8},"end":{"line":782,"column":26}},"229":{"start":{"line":783,"column":8},"end":{"line":783,"column":32}},"230":{"start":{"line":785,"column":8},"end":{"line":787,"column":9}},"231":{"start":{"line":786,"column":12},"end":{"line":786,"column":49}},"232":{"start":{"line":801,"column":8},"end":{"line":802,"column":16}},"233":{"start":{"line":804,"column":8},"end":{"line":806,"column":9}},"234":{"start":{"line":805,"column":12},"end":{"line":805,"column":24}},"235":{"start":{"line":808,"column":8},"end":{"line":810,"column":9}},"236":{"start":{"line":809,"column":12},"end":{"line":809,"column":24}},"237":{"start":{"line":812,"column":8},"end":{"line":812,"column":42}},"238":{"start":{"line":813,"column":8},"end":{"line":813,"column":42}},"239":{"start":{"line":825,"column":12},"end":{"line":825,"column":62}},"240":{"start":{"line":828,"column":12},"end":{"line":828,"column":53}},"241":{"start":{"line":829,"column":12},"end":{"line":831,"column":52}},"242":{"start":{"line":833,"column":12},"end":{"line":840,"column":13}},"243":{"start":{"line":834,"column":16},"end":{"line":834,"column":53}},"244":{"start":{"line":835,"column":19},"end":{"line":840,"column":13}},"245":{"start":{"line":836,"column":16},"end":{"line":836,"column":53}},"246":{"start":{"line":838,"column":16},"end":{"line":838,"column":62}},"247":{"start":{"line":839,"column":16},"end":{"line":839,"column":57}},"248":{"start":{"line":841,"column":12},"end":{"line":841,"column":24}},"249":{"start":{"line":846,"column":8},"end":{"line":846,"column":30}},"250":{"start":{"line":847,"column":8},"end":{"line":850,"column":65}},"251":{"start":{"line":854,"column":8},"end":{"line":854,"column":45}},"252":{"start":{"line":863,"column":8},"end":{"line":863,"column":54}},"253":{"start":{"line":864,"column":8},"end":{"line":864,"column":20}},"254":{"start":{"line":873,"column":8},"end":{"line":873,"column":26}},"255":{"start":{"line":877,"column":0},"end":{"line":877,"column":16}},"256":{"start":{"line":878,"column":0},"end":{"line":878,"column":19}},"257":{"start":{"line":895,"column":0},"end":{"line":924,"column":2}},"258":{"start":{"line":896,"column":4},"end":{"line":896,"column":17}},"259":{"start":{"line":898,"column":4},"end":{"line":916,"column":5}},"260":{"start":{"line":899,"column":8},"end":{"line":915,"column":9}},"261":{"start":{"line":900,"column":12},"end":{"line":900,"column":32}},"262":{"start":{"line":901,"column":12},"end":{"line":901,"column":44}},"263":{"start":{"line":902,"column":15},"end":{"line":915,"column":9}},"264":{"start":{"line":903,"column":12},"end":{"line":903,"column":28}},"265":{"start":{"line":904,"column":15},"end":{"line":915,"column":9}},"266":{"start":{"line":905,"column":12},"end":{"line":905,"column":34}},"267":{"start":{"line":906,"column":15},"end":{"line":915,"column":9}},"268":{"start":{"line":907,"column":12},"end":{"line":911,"column":15}},"269":{"start":{"line":908,"column":16},"end":{"line":910,"column":17}},"270":{"start":{"line":909,"column":20},"end":{"line":909,"column":41}},"271":{"start":{"line":912,"column":12},"end":{"line":912,"column":24}},"272":{"start":{"line":914,"column":12},"end":{"line":914,"column":44}},"273":{"start":{"line":923,"column":4},"end":{"line":923,"column":30}},"274":{"start":{"line":926,"column":0},"end":{"line":926,"column":27}},"275":{"start":{"line":936,"column":0},"end":{"line":938,"column":2}},"276":{"start":{"line":937,"column":4},"end":{"line":937,"column":70}},"277":{"start":{"line":940,"column":0},"end":{"line":946,"column":2}},"278":{"start":{"line":941,"column":4},"end":{"line":941,"column":32}},"279":{"start":{"line":942,"column":4},"end":{"line":945,"column":5}},"280":{"start":{"line":943,"column":8},"end":{"line":943,"column":53}},"281":{"start":{"line":948,"column":0},"end":{"line":982,"column":2}},"282":{"start":{"line":949,"column":4},"end":{"line":981,"column":5}},"283":{"start":{"line":950,"column":8},"end":{"line":979,"column":10}},"284":{"start":{"line":951,"column":12},"end":{"line":952,"column":33}},"285":{"start":{"line":954,"column":12},"end":{"line":975,"column":15}},"286":{"start":{"line":955,"column":16},"end":{"line":958,"column":27}},"287":{"start":{"line":960,"column":16},"end":{"line":965,"column":17}},"288":{"start":{"line":961,"column":20},"end":{"line":961,"column":89}},"289":{"start":{"line":962,"column":20},"end":{"line":962,"column":60}},"290":{"start":{"line":964,"column":20},"end":{"line":964,"column":83}},"291":{"start":{"line":967,"column":16},"end":{"line":969,"column":17}},"292":{"start":{"line":968,"column":20},"end":{"line":968,"column":59}},"293":{"start":{"line":970,"column":16},"end":{"line":970,"column":42}},"294":{"start":{"line":971,"column":16},"end":{"line":971,"column":45}},"295":{"start":{"line":972,"column":16},"end":{"line":974,"column":17}},"296":{"start":{"line":973,"column":20},"end":{"line":973,"column":45}},"297":{"start":{"line":978,"column":12},"end":{"line":978,"column":43}},"298":{"start":{"line":984,"column":0},"end":{"line":993,"column":2}},"299":{"start":{"line":985,"column":4},"end":{"line":992,"column":5}},"300":{"start":{"line":986,"column":8},"end":{"line":986,"column":34}},"301":{"start":{"line":987,"column":8},"end":{"line":987,"column":45}},"302":{"start":{"line":989,"column":8},"end":{"line":991,"column":11}},"303":{"start":{"line":990,"column":12},"end":{"line":990,"column":43}},"304":{"start":{"line":995,"column":0},"end":{"line":1005,"column":2}},"305":{"start":{"line":996,"column":4},"end":{"line":996,"column":33}},"306":{"start":{"line":997,"column":4},"end":{"line":1000,"column":5}},"307":{"start":{"line":998,"column":8},"end":{"line":998,"column":43}},"308":{"start":{"line":999,"column":8},"end":{"line":999,"column":33}},"309":{"start":{"line":1002,"column":4},"end":{"line":1002,"column":21}},"310":{"start":{"line":1003,"column":4},"end":{"line":1003,"column":27}},"311":{"start":{"line":1004,"column":4},"end":{"line":1004,"column":15}},"312":{"start":{"line":1007,"column":0},"end":{"line":1241,"column":9}},"313":{"start":{"line":1009,"column":8},"end":{"line":1009,"column":39}},"314":{"start":{"line":1011,"column":8},"end":{"line":1016,"column":11}},"315":{"start":{"line":1012,"column":12},"end":{"line":1012,"column":53}},"316":{"start":{"line":1013,"column":12},"end":{"line":1015,"column":13}},"317":{"start":{"line":1014,"column":16},"end":{"line":1014,"column":30}},"318":{"start":{"line":1018,"column":8},"end":{"line":1018,"column":19}},"319":{"start":{"line":1029,"column":8},"end":{"line":1029,"column":49}},"320":{"start":{"line":1042,"column":8},"end":{"line":1042,"column":28}},"321":{"start":{"line":1043,"column":8},"end":{"line":1046,"column":11}},"322":{"start":{"line":1044,"column":12},"end":{"line":1044,"column":31}},"323":{"start":{"line":1045,"column":12},"end":{"line":1045,"column":67}},"324":{"start":{"line":1047,"column":8},"end":{"line":1047,"column":24}},"325":{"start":{"line":1051,"column":8},"end":{"line":1051,"column":28}},"326":{"start":{"line":1053,"column":8},"end":{"line":1069,"column":11}},"327":{"start":{"line":1054,"column":12},"end":{"line":1055,"column":25}},"328":{"start":{"line":1057,"column":12},"end":{"line":1062,"column":13}},"329":{"start":{"line":1058,"column":16},"end":{"line":1058,"column":85}},"330":{"start":{"line":1059,"column":16},"end":{"line":1059,"column":56}},"331":{"start":{"line":1061,"column":16},"end":{"line":1061,"column":79}},"332":{"start":{"line":1064,"column":12},"end":{"line":1066,"column":13}},"333":{"start":{"line":1065,"column":16},"end":{"line":1065,"column":55}},"334":{"start":{"line":1068,"column":12},"end":{"line":1068,"column":75}},"335":{"start":{"line":1070,"column":8},"end":{"line":1070,"column":24}},"336":{"start":{"line":1083,"column":8},"end":{"line":1083,"column":28}},"337":{"start":{"line":1084,"column":8},"end":{"line":1088,"column":11}},"338":{"start":{"line":1085,"column":12},"end":{"line":1085,"column":31}},"339":{"start":{"line":1086,"column":12},"end":{"line":1086,"column":38}},"340":{"start":{"line":1087,"column":12},"end":{"line":1087,"column":59}},"341":{"start":{"line":1097,"column":8},"end":{"line":1097,"column":50}},"342":{"start":{"line":1108,"column":8},"end":{"line":1108,"column":69}},"343":{"start":{"line":1119,"column":8},"end":{"line":1119,"column":63}},"344":{"start":{"line":1133,"column":8},"end":{"line":1133,"column":19}},"345":{"start":{"line":1134,"column":8},"end":{"line":1134,"column":23}},"346":{"start":{"line":1135,"column":8},"end":{"line":1139,"column":11}},"347":{"start":{"line":1136,"column":12},"end":{"line":1138,"column":13}},"348":{"start":{"line":1137,"column":16},"end":{"line":1137,"column":33}},"349":{"start":{"line":1141,"column":8},"end":{"line":1141,"column":28}},"350":{"start":{"line":1151,"column":8},"end":{"line":1151,"column":34}},"351":{"start":{"line":1161,"column":8},"end":{"line":1161,"column":31}},"352":{"start":{"line":1173,"column":8},"end":{"line":1176,"column":35}},"353":{"start":{"line":1178,"column":8},"end":{"line":1186,"column":9}},"354":{"start":{"line":1179,"column":12},"end":{"line":1183,"column":13}},"355":{"start":{"line":1180,"column":16},"end":{"line":1182,"column":17}},"356":{"start":{"line":1181,"column":20},"end":{"line":1181,"column":50}},"357":{"start":{"line":1185,"column":12},"end":{"line":1185,"column":56}},"358":{"start":{"line":1188,"column":8},"end":{"line":1188,"column":20}},"359":{"start":{"line":1197,"column":8},"end":{"line":1197,"column":34}},"360":{"start":{"line":1206,"column":8},"end":{"line":1206,"column":38}},"361":{"start":{"line":1210,"column":8},"end":{"line":1213,"column":17}},"362":{"start":{"line":1215,"column":8},"end":{"line":1229,"column":9}},"363":{"start":{"line":1216,"column":12},"end":{"line":1216,"column":28}},"364":{"start":{"line":1217,"column":12},"end":{"line":1217,"column":35}},"365":{"start":{"line":1218,"column":12},"end":{"line":1220,"column":13}},"366":{"start":{"line":1219,"column":16},"end":{"line":1219,"column":37}},"367":{"start":{"line":1222,"column":12},"end":{"line":1224,"column":13}},"368":{"start":{"line":1223,"column":16},"end":{"line":1223,"column":62}},"369":{"start":{"line":1226,"column":12},"end":{"line":1228,"column":13}},"370":{"start":{"line":1227,"column":16},"end":{"line":1227,"column":57}},"371":{"start":{"line":1230,"column":8},"end":{"line":1230,"column":31}},"372":{"start":{"line":1239,"column":8},"end":{"line":1239,"column":27}},"373":{"start":{"line":1243,"column":0},"end":{"line":1287,"column":3}},"374":{"start":{"line":1296,"column":0},"end":{"line":1341,"column":2}},"375":{"start":{"line":1297,"column":4},"end":{"line":1303,"column":12}},"376":{"start":{"line":1305,"column":4},"end":{"line":1318,"column":5}},"377":{"start":{"line":1306,"column":8},"end":{"line":1311,"column":9}},"378":{"start":{"line":1307,"column":12},"end":{"line":1307,"column":89}},"379":{"start":{"line":1308,"column":12},"end":{"line":1308,"column":56}},"380":{"start":{"line":1310,"column":12},"end":{"line":1310,"column":83}},"381":{"start":{"line":1312,"column":8},"end":{"line":1312,"column":49}},"382":{"start":{"line":1314,"column":8},"end":{"line":1314,"column":34}},"383":{"start":{"line":1315,"column":8},"end":{"line":1317,"column":9}},"384":{"start":{"line":1316,"column":12},"end":{"line":1316,"column":30}},"385":{"start":{"line":1320,"column":4},"end":{"line":1338,"column":7}},"386":{"start":{"line":1321,"column":8},"end":{"line":1326,"column":9}},"387":{"start":{"line":1322,"column":12},"end":{"line":1322,"column":81}},"388":{"start":{"line":1323,"column":12},"end":{"line":1323,"column":52}},"389":{"start":{"line":1325,"column":12},"end":{"line":1325,"column":75}},"390":{"start":{"line":1328,"column":8},"end":{"line":1330,"column":9}},"391":{"start":{"line":1329,"column":12},"end":{"line":1329,"column":37}},"392":{"start":{"line":1332,"column":8},"end":{"line":1332,"column":34}},"393":{"start":{"line":1333,"column":8},"end":{"line":1335,"column":9}},"394":{"start":{"line":1334,"column":12},"end":{"line":1334,"column":49}},"395":{"start":{"line":1337,"column":8},"end":{"line":1337,"column":22}},"396":{"start":{"line":1340,"column":4},"end":{"line":1340,"column":43}},"397":{"start":{"line":1343,"column":0},"end":{"line":1343,"column":22}},"398":{"start":{"line":1345,"column":0},"end":{"line":1347,"column":2}},"399":{"start":{"line":1346,"column":4},"end":{"line":1346,"column":31}},"400":{"start":{"line":1349,"column":0},"end":{"line":1349,"column":19}},"401":{"start":{"line":1355,"column":0},"end":{"line":1412,"column":6}},"402":{"start":{"line":1415,"column":0},"end":{"line":1436,"column":3}},"403":{"start":{"line":1416,"column":4},"end":{"line":1435,"column":6}},"404":{"start":{"line":1417,"column":8},"end":{"line":1420,"column":16}},"405":{"start":{"line":1422,"column":8},"end":{"line":1424,"column":9}},"406":{"start":{"line":1423,"column":12},"end":{"line":1423,"column":54}},"407":{"start":{"line":1426,"column":8},"end":{"line":1426,"column":56}},"408":{"start":{"line":1428,"column":8},"end":{"line":1432,"column":9}},"409":{"start":{"line":1429,"column":12},"end":{"line":1429,"column":29}},"410":{"start":{"line":1431,"column":12},"end":{"line":1431,"column":39}},"411":{"start":{"line":1434,"column":8},"end":{"line":1434,"column":19}},"412":{"start":{"line":1442,"column":0},"end":{"line":1541,"column":3}},"413":{"start":{"line":1537,"column":4},"end":{"line":1540,"column":6}},"414":{"start":{"line":1538,"column":8},"end":{"line":1538,"column":56}},"415":{"start":{"line":1539,"column":8},"end":{"line":1539,"column":19}},"416":{"start":{"line":1550,"column":0},"end":{"line":1557,"column":2}},"417":{"start":{"line":1551,"column":4},"end":{"line":1551,"column":26}},"418":{"start":{"line":1552,"column":4},"end":{"line":1554,"column":5}},"419":{"start":{"line":1553,"column":8},"end":{"line":1553,"column":38}},"420":{"start":{"line":1556,"column":4},"end":{"line":1556,"column":16}},"421":{"start":{"line":1559,"column":0},"end":{"line":1609,"column":3}},"422":{"start":{"line":1611,"column":0},"end":{"line":1664,"column":3}}},"branchMap":{"1":{"line":40,"type":"if","locations":[{"start":{"line":40,"column":8},"end":{"line":40,"column":8}},{"start":{"line":40,"column":8},"end":{"line":40,"column":8}}]},"2":{"line":44,"type":"if","locations":[{"start":{"line":44,"column":8},"end":{"line":44,"column":8}},{"start":{"line":44,"column":8},"end":{"line":44,"column":8}}]},"3":{"line":46,"type":"if","locations":[{"start":{"line":46,"column":12},"end":{"line":46,"column":12}},{"start":{"line":46,"column":12},"end":{"line":46,"column":12}}]},"4":{"line":51,"type":"cond-expr","locations":[{"start":{"line":51,"column":42},"end":{"line":51,"column":55}},{"start":{"line":51,"column":58},"end":{"line":51,"column":67}}]},"5":{"line":53,"type":"if","locations":[{"start":{"line":53,"column":8},"end":{"line":53,"column":8}},{"start":{"line":53,"column":8},"end":{"line":53,"column":8}}]},"6":{"line":53,"type":"binary-expr","locations":[{"start":{"line":53,"column":12},"end":{"line":53,"column":28}},{"start":{"line":53,"column":32},"end":{"line":53,"column":35}},{"start":{"line":53,"column":39},"end":{"line":53,"column":61}},{"start":{"line":53,"column":65},"end":{"line":53,"column":102}}]},"7":{"line":57,"type":"binary-expr","locations":[{"start":{"line":57,"column":14},"end":{"line":57,"column":17}},{"start":{"line":57,"column":21},"end":{"line":57,"column":34}}]},"8":{"line":58,"type":"if","locations":[{"start":{"line":58,"column":8},"end":{"line":58,"column":8}},{"start":{"line":58,"column":8},"end":{"line":58,"column":8}}]},"9":{"line":74,"type":"if","locations":[{"start":{"line":74,"column":8},"end":{"line":74,"column":8}},{"start":{"line":74,"column":8},"end":{"line":74,"column":8}}]},"10":{"line":82,"type":"if","locations":[{"start":{"line":82,"column":8},"end":{"line":82,"column":8}},{"start":{"line":82,"column":8},"end":{"line":82,"column":8}}]},"11":{"line":83,"type":"cond-expr","locations":[{"start":{"line":84,"column":12},"end":{"line":86,"column":13}},{"start":{"line":87,"column":12},"end":{"line":89,"column":13}}]},"12":{"line":100,"type":"if","locations":[{"start":{"line":100,"column":4},"end":{"line":100,"column":4}},{"start":{"line":100,"column":4},"end":{"line":100,"column":4}}]},"13":{"line":101,"type":"if","locations":[{"start":{"line":101,"column":8},"end":{"line":101,"column":8}},{"start":{"line":101,"column":8},"end":{"line":101,"column":8}}]},"14":{"line":103,"type":"if","locations":[{"start":{"line":103,"column":15},"end":{"line":103,"column":15}},{"start":{"line":103,"column":15},"end":{"line":103,"column":15}}]},"15":{"line":110,"type":"binary-expr","locations":[{"start":{"line":110,"column":11},"end":{"line":110,"column":15}},{"start":{"line":110,"column":19},"end":{"line":110,"column":23}}]},"16":{"line":138,"type":"if","locations":[{"start":{"line":138,"column":0},"end":{"line":138,"column":0}},{"start":{"line":138,"column":0},"end":{"line":138,"column":0}}]},"17":{"line":152,"type":"if","locations":[{"start":{"line":152,"column":4},"end":{"line":152,"column":4}},{"start":{"line":152,"column":4},"end":{"line":152,"column":4}}]},"18":{"line":153,"type":"cond-expr","locations":[{"start":{"line":153,"column":33},"end":{"line":153,"column":37}},{"start":{"line":153,"column":40},"end":{"line":153,"column":58}}]},"19":{"line":153,"type":"binary-expr","locations":[{"start":{"line":153,"column":40},"end":{"line":153,"column":50}},{"start":{"line":153,"column":54},"end":{"line":153,"column":58}}]},"20":{"line":170,"type":"if","locations":[{"start":{"line":170,"column":4},"end":{"line":170,"column":4}},{"start":{"line":170,"column":4},"end":{"line":170,"column":4}}]},"21":{"line":171,"type":"if","locations":[{"start":{"line":171,"column":9},"end":{"line":171,"column":9}},{"start":{"line":171,"column":9},"end":{"line":171,"column":9}}]},"22":{"line":171,"type":"binary-expr","locations":[{"start":{"line":171,"column":13},"end":{"line":171,"column":35}},{"start":{"line":171,"column":39},"end":{"line":171,"column":63}}]},"23":{"line":172,"type":"if","locations":[{"start":{"line":172,"column":12},"end":{"line":172,"column":12}},{"start":{"line":172,"column":12},"end":{"line":172,"column":12}}]},"24":{"line":172,"type":"binary-expr","locations":[{"start":{"line":172,"column":16},"end":{"line":172,"column":32}},{"start":{"line":172,"column":36},"end":{"line":172,"column":55}}]},"25":{"line":174,"type":"if","locations":[{"start":{"line":174,"column":19},"end":{"line":174,"column":19}},{"start":{"line":174,"column":19},"end":{"line":174,"column":19}}]},"26":{"line":174,"type":"binary-expr","locations":[{"start":{"line":174,"column":24},"end":{"line":174,"column":32}},{"start":{"line":174,"column":36},"end":{"line":174,"column":47}},{"start":{"line":175,"column":21},"end":{"line":175,"column":27}},{"start":{"line":175,"column":31},"end":{"line":175,"column":48}}]},"27":{"line":179,"type":"if","locations":[{"start":{"line":179,"column":11},"end":{"line":179,"column":11}},{"start":{"line":179,"column":11},"end":{"line":179,"column":11}}]},"28":{"line":181,"type":"if","locations":[{"start":{"line":181,"column":11},"end":{"line":181,"column":11}},{"start":{"line":181,"column":11},"end":{"line":181,"column":11}}]},"29":{"line":200,"type":"if","locations":[{"start":{"line":200,"column":4},"end":{"line":200,"column":4}},{"start":{"line":200,"column":4},"end":{"line":200,"column":4}}]},"30":{"line":200,"type":"binary-expr","locations":[{"start":{"line":200,"column":8},"end":{"line":200,"column":12}},{"start":{"line":200,"column":16},"end":{"line":200,"column":18}},{"start":{"line":200,"column":22},"end":{"line":200,"column":45}}]},"31":{"line":206,"type":"if","locations":[{"start":{"line":206,"column":12},"end":{"line":206,"column":12}},{"start":{"line":206,"column":12},"end":{"line":206,"column":12}}]},"32":{"line":206,"type":"binary-expr","locations":[{"start":{"line":206,"column":16},"end":{"line":206,"column":23}},{"start":{"line":206,"column":27},"end":{"line":206,"column":40}}]},"33":{"line":210,"type":"if","locations":[{"start":{"line":210,"column":12},"end":{"line":210,"column":12}},{"start":{"line":210,"column":12},"end":{"line":210,"column":12}}]},"34":{"line":210,"type":"binary-expr","locations":[{"start":{"line":210,"column":16},"end":{"line":210,"column":23}},{"start":{"line":210,"column":27},"end":{"line":210,"column":40}}]},"35":{"line":215,"type":"binary-expr","locations":[{"start":{"line":215,"column":27},"end":{"line":215,"column":34}},{"start":{"line":215,"column":38},"end":{"line":215,"column":42}}]},"36":{"line":217,"type":"if","locations":[{"start":{"line":217,"column":12},"end":{"line":217,"column":12}},{"start":{"line":217,"column":12},"end":{"line":217,"column":12}}]},"37":{"line":221,"type":"binary-expr","locations":[{"start":{"line":221,"column":13},"end":{"line":221,"column":38}},{"start":{"line":221,"column":44},"end":{"line":221,"column":54}}]},"38":{"line":239,"type":"if","locations":[{"start":{"line":239,"column":4},"end":{"line":239,"column":4}},{"start":{"line":239,"column":4},"end":{"line":239,"column":4}}]},"39":{"line":240,"type":"binary-expr","locations":[{"start":{"line":240,"column":18},"end":{"line":240,"column":25}},{"start":{"line":240,"column":29},"end":{"line":240,"column":33}}]},"40":{"line":285,"type":"if","locations":[{"start":{"line":285,"column":4},"end":{"line":285,"column":4}},{"start":{"line":285,"column":4},"end":{"line":285,"column":4}}]},"41":{"line":286,"type":"if","locations":[{"start":{"line":286,"column":8},"end":{"line":286,"column":8}},{"start":{"line":286,"column":8},"end":{"line":286,"column":8}}]},"42":{"line":288,"type":"if","locations":[{"start":{"line":288,"column":12},"end":{"line":288,"column":12}},{"start":{"line":288,"column":12},"end":{"line":288,"column":12}}]},"43":{"line":291,"type":"if","locations":[{"start":{"line":291,"column":15},"end":{"line":291,"column":15}},{"start":{"line":291,"column":15},"end":{"line":291,"column":15}}]},"44":{"line":295,"type":"if","locations":[{"start":{"line":295,"column":8},"end":{"line":295,"column":8}},{"start":{"line":295,"column":8},"end":{"line":295,"column":8}}]},"45":{"line":295,"type":"binary-expr","locations":[{"start":{"line":295,"column":12},"end":{"line":295,"column":25}},{"start":{"line":295,"column":29},"end":{"line":295,"column":49}}]},"46":{"line":296,"type":"cond-expr","locations":[{"start":{"line":296,"column":59},"end":{"line":296,"column":72}},{"start":{"line":296,"column":75},"end":{"line":296,"column":85}}]},"47":{"line":296,"type":"binary-expr","locations":[{"start":{"line":296,"column":19},"end":{"line":296,"column":32}},{"start":{"line":296,"column":36},"end":{"line":296,"column":55}}]},"48":{"line":297,"type":"if","locations":[{"start":{"line":297,"column":12},"end":{"line":297,"column":12}},{"start":{"line":297,"column":12},"end":{"line":297,"column":12}}]},"49":{"line":300,"type":"binary-expr","locations":[{"start":{"line":300,"column":27},"end":{"line":300,"column":46}},{"start":{"line":300,"column":50},"end":{"line":300,"column":78}}]},"50":{"line":302,"type":"cond-expr","locations":[{"start":{"line":302,"column":36},"end":{"line":302,"column":50}},{"start":{"line":302,"column":53},"end":{"line":302,"column":57}}]},"51":{"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}}]},"52":{"line":303,"type":"binary-expr","locations":[{"start":{"line":303,"column":16},"end":{"line":303,"column":25}},{"start":{"line":303,"column":30},"end":{"line":303,"column":40}},{"start":{"line":303,"column":44},"end":{"line":303,"column":63}}]},"53":{"line":305,"type":"if","locations":[{"start":{"line":305,"column":16},"end":{"line":305,"column":16}},{"start":{"line":305,"column":16},"end":{"line":305,"column":16}}]},"54":{"line":306,"type":"if","locations":[{"start":{"line":306,"column":20},"end":{"line":306,"column":20}},{"start":{"line":306,"column":20},"end":{"line":306,"column":20}}]},"55":{"line":309,"type":"if","locations":[{"start":{"line":309,"column":24},"end":{"line":309,"column":24}},{"start":{"line":309,"column":24},"end":{"line":309,"column":24}}]},"56":{"line":335,"type":"if","locations":[{"start":{"line":335,"column":4},"end":{"line":335,"column":4}},{"start":{"line":335,"column":4},"end":{"line":335,"column":4}}]},"57":{"line":340,"type":"if","locations":[{"start":{"line":340,"column":11},"end":{"line":340,"column":11}},{"start":{"line":340,"column":11},"end":{"line":340,"column":11}}]},"58":{"line":359,"type":"if","locations":[{"start":{"line":359,"column":4},"end":{"line":359,"column":4}},{"start":{"line":359,"column":4},"end":{"line":359,"column":4}}]},"59":{"line":359,"type":"binary-expr","locations":[{"start":{"line":359,"column":8},"end":{"line":359,"column":20}},{"start":{"line":359,"column":24},"end":{"line":359,"column":46}}]},"60":{"line":361,"type":"if","locations":[{"start":{"line":361,"column":11},"end":{"line":361,"column":11}},{"start":{"line":361,"column":11},"end":{"line":361,"column":11}}]},"61":{"line":381,"type":"if","locations":[{"start":{"line":381,"column":8},"end":{"line":381,"column":8}},{"start":{"line":381,"column":8},"end":{"line":381,"column":8}}]},"62":{"line":383,"type":"cond-expr","locations":[{"start":{"line":383,"column":39},"end":{"line":383,"column":62}},{"start":{"line":383,"column":65},"end":{"line":383,"column":69}}]},"63":{"line":383,"type":"binary-expr","locations":[{"start":{"line":383,"column":18},"end":{"line":383,"column":23}},{"start":{"line":383,"column":27},"end":{"line":383,"column":35}}]},"64":{"line":384,"type":"cond-expr","locations":[{"start":{"line":384,"column":53},"end":{"line":384,"column":83}},{"start":{"line":384,"column":86},"end":{"line":384,"column":90}}]},"65":{"line":384,"type":"binary-expr","locations":[{"start":{"line":384,"column":25},"end":{"line":384,"column":30}},{"start":{"line":384,"column":34},"end":{"line":384,"column":49}}]},"66":{"line":387,"type":"if","locations":[{"start":{"line":387,"column":12},"end":{"line":387,"column":12}},{"start":{"line":387,"column":12},"end":{"line":387,"column":12}}]},"67":{"line":391,"type":"if","locations":[{"start":{"line":391,"column":12},"end":{"line":391,"column":12}},{"start":{"line":391,"column":12},"end":{"line":391,"column":12}}]},"68":{"line":413,"type":"if","locations":[{"start":{"line":413,"column":8},"end":{"line":413,"column":8}},{"start":{"line":413,"column":8},"end":{"line":413,"column":8}}]},"69":{"line":419,"type":"if","locations":[{"start":{"line":419,"column":8},"end":{"line":419,"column":8}},{"start":{"line":419,"column":8},"end":{"line":419,"column":8}}]},"70":{"line":421,"type":"if","locations":[{"start":{"line":421,"column":15},"end":{"line":421,"column":15}},{"start":{"line":421,"column":15},"end":{"line":421,"column":15}}]},"71":{"line":438,"type":"if","locations":[{"start":{"line":438,"column":8},"end":{"line":438,"column":8}},{"start":{"line":438,"column":8},"end":{"line":438,"column":8}}]},"72":{"line":438,"type":"binary-expr","locations":[{"start":{"line":438,"column":12},"end":{"line":438,"column":22}},{"start":{"line":438,"column":26},"end":{"line":438,"column":43}}]},"73":{"line":440,"type":"if","locations":[{"start":{"line":440,"column":15},"end":{"line":440,"column":15}},{"start":{"line":440,"column":15},"end":{"line":440,"column":15}}]},"74":{"line":463,"type":"if","locations":[{"start":{"line":463,"column":8},"end":{"line":463,"column":8}},{"start":{"line":463,"column":8},"end":{"line":463,"column":8}}]},"75":{"line":466,"type":"if","locations":[{"start":{"line":466,"column":12},"end":{"line":466,"column":12}},{"start":{"line":466,"column":12},"end":{"line":466,"column":12}}]},"76":{"line":466,"type":"binary-expr","locations":[{"start":{"line":466,"column":16},"end":{"line":466,"column":26}},{"start":{"line":466,"column":30},"end":{"line":466,"column":47}}]},"77":{"line":468,"type":"if","locations":[{"start":{"line":468,"column":19},"end":{"line":468,"column":19}},{"start":{"line":468,"column":19},"end":{"line":468,"column":19}}]},"78":{"line":485,"type":"if","locations":[{"start":{"line":485,"column":8},"end":{"line":485,"column":8}},{"start":{"line":485,"column":8},"end":{"line":485,"column":8}}]},"79":{"line":504,"type":"if","locations":[{"start":{"line":504,"column":8},"end":{"line":504,"column":8}},{"start":{"line":504,"column":8},"end":{"line":504,"column":8}}]},"80":{"line":525,"type":"if","locations":[{"start":{"line":525,"column":8},"end":{"line":525,"column":8}},{"start":{"line":525,"column":8},"end":{"line":525,"column":8}}]},"81":{"line":525,"type":"binary-expr","locations":[{"start":{"line":525,"column":12},"end":{"line":525,"column":19}},{"start":{"line":525,"column":23},"end":{"line":525,"column":36}}]},"82":{"line":541,"type":"if","locations":[{"start":{"line":541,"column":8},"end":{"line":541,"column":8}},{"start":{"line":541,"column":8},"end":{"line":541,"column":8}}]},"83":{"line":542,"type":"cond-expr","locations":[{"start":{"line":542,"column":26},"end":{"line":542,"column":42}},{"start":{"line":542,"column":45},"end":{"line":542,"column":65}}]},"84":{"line":542,"type":"binary-expr","locations":[{"start":{"line":542,"column":26},"end":{"line":542,"column":35}},{"start":{"line":542,"column":39},"end":{"line":542,"column":42}}]},"85":{"line":543,"type":"if","locations":[{"start":{"line":543,"column":12},"end":{"line":543,"column":12}},{"start":{"line":543,"column":12},"end":{"line":543,"column":12}}]},"86":{"line":554,"type":"if","locations":[{"start":{"line":554,"column":8},"end":{"line":554,"column":8}},{"start":{"line":554,"column":8},"end":{"line":554,"column":8}}]},"87":{"line":554,"type":"binary-expr","locations":[{"start":{"line":554,"column":12},"end":{"line":554,"column":15}},{"start":{"line":554,"column":19},"end":{"line":554,"column":44}}]},"88":{"line":577,"type":"if","locations":[{"start":{"line":577,"column":8},"end":{"line":577,"column":8}},{"start":{"line":577,"column":8},"end":{"line":577,"column":8}}]},"89":{"line":577,"type":"binary-expr","locations":[{"start":{"line":577,"column":12},"end":{"line":577,"column":34}},{"start":{"line":578,"column":17},"end":{"line":578,"column":44}},{"start":{"line":578,"column":48},"end":{"line":578,"column":77}}]},"90":{"line":594,"type":"if","locations":[{"start":{"line":594,"column":8},"end":{"line":594,"column":8}},{"start":{"line":594,"column":8},"end":{"line":594,"column":8}}]},"91":{"line":594,"type":"binary-expr","locations":[{"start":{"line":594,"column":12},"end":{"line":594,"column":34}},{"start":{"line":595,"column":17},"end":{"line":595,"column":44}},{"start":{"line":595,"column":48},"end":{"line":595,"column":77}}]},"92":{"line":665,"type":"if","locations":[{"start":{"line":665,"column":8},"end":{"line":665,"column":8}},{"start":{"line":665,"column":8},"end":{"line":665,"column":8}}]},"93":{"line":671,"type":"binary-expr","locations":[{"start":{"line":671,"column":15},"end":{"line":671,"column":23}},{"start":{"line":671,"column":27},"end":{"line":671,"column":36}}]},"94":{"line":698,"type":"if","locations":[{"start":{"line":698,"column":8},"end":{"line":698,"column":8}},{"start":{"line":698,"column":8},"end":{"line":698,"column":8}}]},"95":{"line":698,"type":"binary-expr","locations":[{"start":{"line":698,"column":12},"end":{"line":698,"column":16}},{"start":{"line":698,"column":20},"end":{"line":698,"column":35}}]},"96":{"line":702,"type":"if","locations":[{"start":{"line":702,"column":8},"end":{"line":702,"column":8}},{"start":{"line":702,"column":8},"end":{"line":702,"column":8}}]},"97":{"line":720,"type":"if","locations":[{"start":{"line":720,"column":8},"end":{"line":720,"column":8}},{"start":{"line":720,"column":8},"end":{"line":720,"column":8}}]},"98":{"line":735,"type":"if","locations":[{"start":{"line":735,"column":8},"end":{"line":735,"column":8}},{"start":{"line":735,"column":8},"end":{"line":735,"column":8}}]},"99":{"line":752,"type":"cond-expr","locations":[{"start":{"line":752,"column":42},"end":{"line":752,"column":52}},{"start":{"line":752,"column":55},"end":{"line":752,"column":62}}]},"100":{"line":757,"type":"if","locations":[{"start":{"line":757,"column":8},"end":{"line":757,"column":8}},{"start":{"line":757,"column":8},"end":{"line":757,"column":8}}]},"101":{"line":763,"type":"if","locations":[{"start":{"line":763,"column":8},"end":{"line":763,"column":8}},{"start":{"line":763,"column":8},"end":{"line":763,"column":8}}]},"102":{"line":765,"type":"if","locations":[{"start":{"line":765,"column":16},"end":{"line":765,"column":16}},{"start":{"line":765,"column":16},"end":{"line":765,"column":16}}]},"103":{"line":768,"type":"binary-expr","locations":[{"start":{"line":768,"column":31},"end":{"line":768,"column":50}},{"start":{"line":768,"column":54},"end":{"line":768,"column":82}}]},"104":{"line":770,"type":"if","locations":[{"start":{"line":770,"column":16},"end":{"line":770,"column":16}},{"start":{"line":770,"column":16},"end":{"line":770,"column":16}}]},"105":{"line":778,"type":"if","locations":[{"start":{"line":778,"column":8},"end":{"line":778,"column":8}},{"start":{"line":778,"column":8},"end":{"line":778,"column":8}}]},"106":{"line":785,"type":"if","locations":[{"start":{"line":785,"column":8},"end":{"line":785,"column":8}},{"start":{"line":785,"column":8},"end":{"line":785,"column":8}}]},"107":{"line":804,"type":"if","locations":[{"start":{"line":804,"column":8},"end":{"line":804,"column":8}},{"start":{"line":804,"column":8},"end":{"line":804,"column":8}}]},"108":{"line":804,"type":"binary-expr","locations":[{"start":{"line":804,"column":12},"end":{"line":804,"column":13}},{"start":{"line":804,"column":17},"end":{"line":804,"column":24}}]},"109":{"line":808,"type":"if","locations":[{"start":{"line":808,"column":8},"end":{"line":808,"column":8}},{"start":{"line":808,"column":8},"end":{"line":808,"column":8}}]},"110":{"line":808,"type":"binary-expr","locations":[{"start":{"line":808,"column":12},"end":{"line":808,"column":13}},{"start":{"line":808,"column":17},"end":{"line":808,"column":24}}]},"111":{"line":823,"type":"cond-expr","locations":[{"start":{"line":824,"column":8},"end":{"line":826,"column":9}},{"start":{"line":827,"column":8},"end":{"line":842,"column":9}}]},"112":{"line":833,"type":"if","locations":[{"start":{"line":833,"column":12},"end":{"line":833,"column":12}},{"start":{"line":833,"column":12},"end":{"line":833,"column":12}}]},"113":{"line":835,"type":"if","locations":[{"start":{"line":835,"column":19},"end":{"line":835,"column":19}},{"start":{"line":835,"column":19},"end":{"line":835,"column":19}}]},"114":{"line":847,"type":"binary-expr","locations":[{"start":{"line":847,"column":18},"end":{"line":847,"column":22}},{"start":{"line":847,"column":26},"end":{"line":847,"column":40}},{"start":{"line":848,"column":16},"end":{"line":848,"column":48}},{"start":{"line":849,"column":13},"end":{"line":849,"column":46}},{"start":{"line":850,"column":16},"end":{"line":850,"column":62}}]},"115":{"line":898,"type":"if","locations":[{"start":{"line":898,"column":4},"end":{"line":898,"column":4}},{"start":{"line":898,"column":4},"end":{"line":898,"column":4}}]},"116":{"line":899,"type":"if","locations":[{"start":{"line":899,"column":8},"end":{"line":899,"column":8}},{"start":{"line":899,"column":8},"end":{"line":899,"column":8}}]},"117":{"line":902,"type":"if","locations":[{"start":{"line":902,"column":15},"end":{"line":902,"column":15}},{"start":{"line":902,"column":15},"end":{"line":902,"column":15}}]},"118":{"line":902,"type":"binary-expr","locations":[{"start":{"line":902,"column":19},"end":{"line":902,"column":33}},{"start":{"line":902,"column":37},"end":{"line":902,"column":58}}]},"119":{"line":904,"type":"if","locations":[{"start":{"line":904,"column":15},"end":{"line":904,"column":15}},{"start":{"line":904,"column":15},"end":{"line":904,"column":15}}]},"120":{"line":906,"type":"if","locations":[{"start":{"line":906,"column":15},"end":{"line":906,"column":15}},{"start":{"line":906,"column":15},"end":{"line":906,"column":15}}]},"121":{"line":906,"type":"binary-expr","locations":[{"start":{"line":906,"column":19},"end":{"line":906,"column":27}},{"start":{"line":906,"column":31},"end":{"line":906,"column":45}}]},"122":{"line":908,"type":"if","locations":[{"start":{"line":908,"column":16},"end":{"line":908,"column":16}},{"start":{"line":908,"column":16},"end":{"line":908,"column":16}}]},"123":{"line":923,"type":"binary-expr","locations":[{"start":{"line":923,"column":18},"end":{"line":923,"column":23}},{"start":{"line":923,"column":27},"end":{"line":923,"column":29}}]},"124":{"line":937,"type":"cond-expr","locations":[{"start":{"line":937,"column":43},"end":{"line":937,"column":58}},{"start":{"line":937,"column":61},"end":{"line":937,"column":69}}]},"125":{"line":937,"type":"binary-expr","locations":[{"start":{"line":937,"column":12},"end":{"line":937,"column":20}},{"start":{"line":937,"column":24},"end":{"line":937,"column":39}}]},"126":{"line":942,"type":"if","locations":[{"start":{"line":942,"column":4},"end":{"line":942,"column":4}},{"start":{"line":942,"column":4},"end":{"line":942,"column":4}}]},"127":{"line":942,"type":"binary-expr","locations":[{"start":{"line":942,"column":8},"end":{"line":942,"column":13}},{"start":{"line":942,"column":17},"end":{"line":942,"column":29}}]},"128":{"line":943,"type":"binary-expr","locations":[{"start":{"line":943,"column":32},"end":{"line":943,"column":39}},{"start":{"line":943,"column":43},"end":{"line":943,"column":51}}]},"129":{"line":949,"type":"if","locations":[{"start":{"line":949,"column":4},"end":{"line":949,"column":4}},{"start":{"line":949,"column":4},"end":{"line":949,"column":4}}]},"130":{"line":949,"type":"binary-expr","locations":[{"start":{"line":949,"column":8},"end":{"line":949,"column":12}},{"start":{"line":949,"column":16},"end":{"line":949,"column":18}}]},"131":{"line":960,"type":"if","locations":[{"start":{"line":960,"column":16},"end":{"line":960,"column":16}},{"start":{"line":960,"column":16},"end":{"line":960,"column":16}}]},"132":{"line":961,"type":"cond-expr","locations":[{"start":{"line":961,"column":68},"end":{"line":961,"column":78}},{"start":{"line":961,"column":81},"end":{"line":961,"column":88}}]},"133":{"line":961,"type":"binary-expr","locations":[{"start":{"line":961,"column":27},"end":{"line":961,"column":40}},{"start":{"line":961,"column":44},"end":{"line":961,"column":63}}]},"134":{"line":964,"type":"binary-expr","locations":[{"start":{"line":964,"column":31},"end":{"line":964,"column":50}},{"start":{"line":964,"column":54},"end":{"line":964,"column":82}}]},"135":{"line":967,"type":"if","locations":[{"start":{"line":967,"column":16},"end":{"line":967,"column":16}},{"start":{"line":967,"column":16},"end":{"line":967,"column":16}}]},"136":{"line":970,"type":"binary-expr","locations":[{"start":{"line":970,"column":22},"end":{"line":970,"column":29}},{"start":{"line":970,"column":33},"end":{"line":970,"column":41}}]},"137":{"line":972,"type":"if","locations":[{"start":{"line":972,"column":16},"end":{"line":972,"column":16}},{"start":{"line":972,"column":16},"end":{"line":972,"column":16}}]},"138":{"line":972,"type":"binary-expr","locations":[{"start":{"line":972,"column":20},"end":{"line":972,"column":40}},{"start":{"line":972,"column":44},"end":{"line":972,"column":63}}]},"139":{"line":978,"type":"cond-expr","locations":[{"start":{"line":978,"column":32},"end":{"line":978,"column":35}},{"start":{"line":978,"column":38},"end":{"line":978,"column":42}}]},"140":{"line":985,"type":"if","locations":[{"start":{"line":985,"column":4},"end":{"line":985,"column":4}},{"start":{"line":985,"column":4},"end":{"line":985,"column":4}}]},"141":{"line":986,"type":"binary-expr","locations":[{"start":{"line":986,"column":18},"end":{"line":986,"column":25}},{"start":{"line":986,"column":29},"end":{"line":986,"column":33}}]},"142":{"line":997,"type":"if","locations":[{"start":{"line":997,"column":4},"end":{"line":997,"column":4}},{"start":{"line":997,"column":4},"end":{"line":997,"column":4}}]},"143":{"line":1009,"type":"cond-expr","locations":[{"start":{"line":1009,"column":29},"end":{"line":1009,"column":31}},{"start":{"line":1009,"column":34},"end":{"line":1009,"column":38}}]},"144":{"line":1013,"type":"if","locations":[{"start":{"line":1013,"column":12},"end":{"line":1013,"column":12}},{"start":{"line":1013,"column":12},"end":{"line":1013,"column":12}}]},"145":{"line":1029,"type":"binary-expr","locations":[{"start":{"line":1029,"column":22},"end":{"line":1029,"column":33}},{"start":{"line":1029,"column":37},"end":{"line":1029,"column":39}}]},"146":{"line":1045,"type":"binary-expr","locations":[{"start":{"line":1045,"column":27},"end":{"line":1045,"column":34}},{"start":{"line":1045,"column":38},"end":{"line":1045,"column":42}}]},"147":{"line":1057,"type":"if","locations":[{"start":{"line":1057,"column":12},"end":{"line":1057,"column":12}},{"start":{"line":1057,"column":12},"end":{"line":1057,"column":12}}]},"148":{"line":1058,"type":"cond-expr","locations":[{"start":{"line":1058,"column":64},"end":{"line":1058,"column":74}},{"start":{"line":1058,"column":77},"end":{"line":1058,"column":84}}]},"149":{"line":1058,"type":"binary-expr","locations":[{"start":{"line":1058,"column":23},"end":{"line":1058,"column":36}},{"start":{"line":1058,"column":40},"end":{"line":1058,"column":59}}]},"150":{"line":1061,"type":"binary-expr","locations":[{"start":{"line":1061,"column":27},"end":{"line":1061,"column":46}},{"start":{"line":1061,"column":50},"end":{"line":1061,"column":78}}]},"151":{"line":1064,"type":"if","locations":[{"start":{"line":1064,"column":12},"end":{"line":1064,"column":12}},{"start":{"line":1064,"column":12},"end":{"line":1064,"column":12}}]},"152":{"line":1068,"type":"binary-expr","locations":[{"start":{"line":1068,"column":27},"end":{"line":1068,"column":34}},{"start":{"line":1068,"column":38},"end":{"line":1068,"column":46}}]},"153":{"line":1086,"type":"binary-expr","locations":[{"start":{"line":1086,"column":22},"end":{"line":1086,"column":29}},{"start":{"line":1086,"column":33},"end":{"line":1086,"column":37}}]},"154":{"line":1133,"type":"binary-expr","locations":[{"start":{"line":1133,"column":12},"end":{"line":1133,"column":13}},{"start":{"line":1133,"column":17},"end":{"line":1133,"column":18}}]},"155":{"line":1136,"type":"if","locations":[{"start":{"line":1136,"column":12},"end":{"line":1136,"column":12}},{"start":{"line":1136,"column":12},"end":{"line":1136,"column":12}}]},"156":{"line":1178,"type":"if","locations":[{"start":{"line":1178,"column":8},"end":{"line":1178,"column":8}},{"start":{"line":1178,"column":8},"end":{"line":1178,"column":8}}]},"157":{"line":1179,"type":"if","locations":[{"start":{"line":1179,"column":12},"end":{"line":1179,"column":12}},{"start":{"line":1179,"column":12},"end":{"line":1179,"column":12}}]},"158":{"line":1180,"type":"if","locations":[{"start":{"line":1180,"column":16},"end":{"line":1180,"column":16}},{"start":{"line":1180,"column":16},"end":{"line":1180,"column":16}}]},"159":{"line":1180,"type":"binary-expr","locations":[{"start":{"line":1180,"column":20},"end":{"line":1180,"column":25}},{"start":{"line":1180,"column":29},"end":{"line":1180,"column":37}},{"start":{"line":1180,"column":41},"end":{"line":1180,"column":63}}]},"160":{"line":1215,"type":"if","locations":[{"start":{"line":1215,"column":8},"end":{"line":1215,"column":8}},{"start":{"line":1215,"column":8},"end":{"line":1215,"column":8}}]},"161":{"line":1215,"type":"binary-expr","locations":[{"start":{"line":1215,"column":12},"end":{"line":1215,"column":17}},{"start":{"line":1215,"column":21},"end":{"line":1215,"column":29}}]},"162":{"line":1218,"type":"if","locations":[{"start":{"line":1218,"column":12},"end":{"line":1218,"column":12}},{"start":{"line":1218,"column":12},"end":{"line":1218,"column":12}}]},"163":{"line":1222,"type":"if","locations":[{"start":{"line":1222,"column":12},"end":{"line":1222,"column":12}},{"start":{"line":1222,"column":12},"end":{"line":1222,"column":12}}]},"164":{"line":1226,"type":"if","locations":[{"start":{"line":1226,"column":12},"end":{"line":1226,"column":12}},{"start":{"line":1226,"column":12},"end":{"line":1226,"column":12}}]},"165":{"line":1230,"type":"binary-expr","locations":[{"start":{"line":1230,"column":15},"end":{"line":1230,"column":18}},{"start":{"line":1230,"column":22},"end":{"line":1230,"column":30}}]},"166":{"line":1305,"type":"if","locations":[{"start":{"line":1305,"column":4},"end":{"line":1305,"column":4}},{"start":{"line":1305,"column":4},"end":{"line":1305,"column":4}}]},"167":{"line":1306,"type":"if","locations":[{"start":{"line":1306,"column":8},"end":{"line":1306,"column":8}},{"start":{"line":1306,"column":8},"end":{"line":1306,"column":8}}]},"168":{"line":1307,"type":"cond-expr","locations":[{"start":{"line":1307,"column":68},"end":{"line":1307,"column":78}},{"start":{"line":1307,"column":81},"end":{"line":1307,"column":88}}]},"169":{"line":1307,"type":"binary-expr","locations":[{"start":{"line":1307,"column":19},"end":{"line":1307,"column":36}},{"start":{"line":1307,"column":40},"end":{"line":1307,"column":63}}]},"170":{"line":1310,"type":"binary-expr","locations":[{"start":{"line":1310,"column":23},"end":{"line":1310,"column":46}},{"start":{"line":1310,"column":50},"end":{"line":1310,"column":82}}]},"171":{"line":1312,"type":"binary-expr","locations":[{"start":{"line":1312,"column":19},"end":{"line":1312,"column":27}},{"start":{"line":1312,"column":31},"end":{"line":1312,"column":48}}]},"172":{"line":1315,"type":"if","locations":[{"start":{"line":1315,"column":8},"end":{"line":1315,"column":8}},{"start":{"line":1315,"column":8},"end":{"line":1315,"column":8}}]},"173":{"line":1315,"type":"binary-expr","locations":[{"start":{"line":1315,"column":12},"end":{"line":1315,"column":15}},{"start":{"line":1315,"column":19},"end":{"line":1315,"column":31}}]},"174":{"line":1321,"type":"if","locations":[{"start":{"line":1321,"column":8},"end":{"line":1321,"column":8}},{"start":{"line":1321,"column":8},"end":{"line":1321,"column":8}}]},"175":{"line":1322,"type":"cond-expr","locations":[{"start":{"line":1322,"column":60},"end":{"line":1322,"column":70}},{"start":{"line":1322,"column":73},"end":{"line":1322,"column":80}}]},"176":{"line":1322,"type":"binary-expr","locations":[{"start":{"line":1322,"column":19},"end":{"line":1322,"column":32}},{"start":{"line":1322,"column":36},"end":{"line":1322,"column":55}}]},"177":{"line":1325,"type":"binary-expr","locations":[{"start":{"line":1325,"column":23},"end":{"line":1325,"column":42}},{"start":{"line":1325,"column":46},"end":{"line":1325,"column":74}}]},"178":{"line":1328,"type":"if","locations":[{"start":{"line":1328,"column":8},"end":{"line":1328,"column":8}},{"start":{"line":1328,"column":8},"end":{"line":1328,"column":8}}]},"179":{"line":1333,"type":"if","locations":[{"start":{"line":1333,"column":8},"end":{"line":1333,"column":8}},{"start":{"line":1333,"column":8},"end":{"line":1333,"column":8}}]},"180":{"line":1340,"type":"cond-expr","locations":[{"start":{"line":1340,"column":26},"end":{"line":1340,"column":36}},{"start":{"line":1340,"column":39},"end":{"line":1340,"column":42}}]},"181":{"line":1423,"type":"binary-expr","locations":[{"start":{"line":1423,"column":22},"end":{"line":1423,"column":31}},{"start":{"line":1423,"column":35},"end":{"line":1423,"column":45}},{"start":{"line":1423,"column":49},"end":{"line":1423,"column":52}}]},"182":{"line":1428,"type":"if","locations":[{"start":{"line":1428,"column":8},"end":{"line":1428,"column":8}},{"start":{"line":1428,"column":8},"end":{"line":1428,"column":8}}]},"183":{"line":1552,"type":"if","locations":[{"start":{"line":1552,"column":4},"end":{"line":1552,"column":4}},{"start":{"line":1552,"column":4},"end":{"line":1552,"column":4}}]}},"code":["(function () { YUI.add('node-core', function (Y, NAME) {","","/**"," * The Node Utility provides a DOM-like interface for interacting with DOM nodes."," * @module node"," * @main node"," * @submodule node-core"," */","","/**"," * The Node class provides a wrapper for manipulating DOM Nodes."," * Node properties can be accessed via the set/get methods."," * Use `Y.one()` to retrieve Node instances."," *"," * NOTE: Node properties are accessed using"," * the set and get methods."," *"," * @class Node"," * @constructor"," * @param {HTMLElement} node the DOM node to be mapped to the Node instance."," * @uses EventTarget"," */","","// \"globals\"","var DOT = '.',"," NODE_NAME = 'nodeName',"," NODE_TYPE = 'nodeType',"," OWNER_DOCUMENT = 'ownerDocument',"," TAG_NAME = 'tagName',"," UID = '_yuid',"," EMPTY_OBJ = {},",""," use_instance_map = Y.UA.ie > 0, // define flag, in case other browsers need it, too",""," _slice = Array.prototype.slice,",""," Y_DOM = Y.DOM,",""," Y_Node = function(node) {"," if (!this.getDOMNode) { // support optional \"new\""," return new Y_Node(node);"," }",""," if (typeof node == 'string') {"," node = Y_Node._fromString(node);"," if (!node) {"," return null; // NOTE: return"," }"," }",""," var uid = (node.nodeType !== 9) ? node.uniqueID : node[UID];",""," if (use_instance_map && uid && Y_Node._instances[uid] && Y_Node._instances[uid]._node !== node) {"," node[UID] = null; // unset existing uid to prevent collision (via clone or hack)"," }",""," uid = uid || Y.stamp(node);"," if (!uid) { // stamp failed; likely IE non-HTMLElement"," uid = Y.guid();"," }",""," this[UID] = uid;",""," /**"," * The underlying DOM node bound to the Y.Node instance"," * @property _node"," * @type HTMLElement"," * @private"," */"," this._node = node;",""," this._stateProxy = node; // when augmented with Attribute",""," if (this._initPlugins) { // when augmented with Plugin.Host"," this._initPlugins();"," }"," },",""," // used with previous/next/ancestor tests"," _wrapFn = function(fn) {"," var ret = null;"," if (fn) {"," ret = (typeof fn == 'string') ?"," function(n) {"," return Y.Selector.test(n, fn);"," } :"," function(n) {"," return fn(Y.one(n));"," };"," }",""," return ret;"," };","// end \"globals\"","","Y_Node.ATTRS = {};","Y_Node.DOM_EVENTS = {};","","Y_Node._fromString = function(node) {"," if (node) {"," if (node.indexOf('doc') === 0) { // doc OR document"," node = Y.config.doc;"," } else if (node.indexOf('win') === 0) { // win OR window"," node = Y.config.win;"," } else {"," node = Y.Selector.query(node, null, true);"," }"," }",""," return node || null;","};","","/**"," * The name of the component"," * @static"," * @type String"," * @property NAME"," */","Y_Node.NAME = 'node';","","/*"," * The pattern used to identify ARIA attributes"," */","Y_Node.re_aria = /^(?:role$|aria-)/;","","Y_Node.SHOW_TRANSITION = 'fadeIn';","Y_Node.HIDE_TRANSITION = 'fadeOut';","","/**"," * A list of Node instances that have been created. Only defined in browsers"," * that already have broken GC, since this global map also breaks GC."," * @private"," * @type Object"," * @property _instances"," * @static"," *"," */","if (use_instance_map) {"," Y_Node._instances = {};","}","","/**"," * Retrieves the DOM node bound to a Node instance"," * @method getDOMNode"," * @static"," *"," * @param {Node|HTMLElement} node The Node instance or an HTMLElement"," * @return {HTMLElement} The DOM node bound to the Node instance. If a DOM node is passed"," * as the node argument, it is simply returned."," */","Y_Node.getDOMNode = function(node) {"," if (node) {"," return (node.nodeType) ? node : node._node || null;"," }"," return null;","};","","/**"," * Checks Node return values and wraps DOM Nodes as Y.Node instances"," * and DOM Collections / Arrays as Y.NodeList instances."," * Other return values just pass thru. If undefined is returned (e.g. no return)"," * then the Node instance is returned for chainability."," * @method scrubVal"," * @static"," *"," * @param {HTMLElement|HTMLElement[]|Node} node The Node instance or an HTMLElement"," * @return {Node | NodeList | Any} Depends on what is returned from the DOM node."," */","Y_Node.scrubVal = function(val, node) {"," if (val) { // only truthy values are risky"," if (typeof val == 'object' || typeof val == 'function') { // safari nodeList === function"," if (NODE_TYPE in val || Y_DOM.isWindow(val)) {// node || window"," val = Y.one(val);"," } else if ((val.item && !val._nodes) || // dom collection or Node instance"," (val[0] && val[0][NODE_TYPE])) { // array of DOM Nodes"," val = Y.all(val);"," }"," }"," } else if (typeof val === 'undefined') {"," val = node; // for chaining"," } else if (val === null) {"," val = null; // IE: DOM null not the same as null"," }",""," return val;","};","","/**"," * Adds methods to the Y.Node prototype, routing through scrubVal."," * @method addMethod"," * @static"," *"," * @param {String} name The name of the method to add"," * @param {Function} fn The function that becomes the method"," * @param {Object} context An optional context to call the method with"," * (defaults to the Node instance)"," * @return {any} Depends on what is returned from the DOM node."," */","Y_Node.addMethod = function(name, fn, context) {"," if (name && fn && typeof fn == 'function') {"," Y_Node.prototype[name] = function() {"," var args = _slice.call(arguments),"," node = this,"," ret;",""," if (args[0] && args[0]._node) {"," args[0] = args[0]._node;"," }",""," if (args[1] && args[1]._node) {"," args[1] = args[1]._node;"," }"," args.unshift(node._node);",""," ret = fn.apply(context || node, args);",""," if (ret) { // scrub truthy"," ret = Y_Node.scrubVal(ret, node);"," }",""," (typeof ret != 'undefined') || (ret = node);"," return ret;"," };"," } else {"," }","};","","/**"," * Imports utility methods to be added as Y.Node methods."," * @method importMethod"," * @static"," *"," * @param {Object} host The object that contains the method to import."," * @param {String} name The name of the method to import"," * @param {String} altName An optional name to use in place of the host name"," * @param {Object} context An optional context to call the method with"," */","Y_Node.importMethod = function(host, name, altName) {"," if (typeof name == 'string') {"," altName = altName || name;"," Y_Node.addMethod(altName, host[name], host);"," } else {"," Y.Array.each(name, function(n) {"," Y_Node.importMethod(host, n);"," });"," }","};","","/**"," * Retrieves a NodeList based on the given CSS selector."," * @method all"," *"," * @param {string} selector The CSS selector to test against."," * @return {NodeList} A NodeList instance for the matching HTMLCollection/Array."," * @for YUI"," */","","/**"," * Returns a single Node instance bound to the node or the"," * first element matching the given selector. Returns null if no match found."," * Note: For chaining purposes you may want to"," * use Y.all, which returns a NodeList when no match is found."," * @method one"," * @param {String | HTMLElement} node a node or Selector"," * @return {Node | null} a Node instance or null if no match found."," * @for YUI"," */","","/**"," * Returns a single Node instance bound to the node or the"," * first element matching the given selector. Returns null if no match found."," * Note: For chaining purposes you may want to"," * use Y.all, which returns a NodeList when no match is found."," * @method one"," * @static"," * @param {String | HTMLElement} node a node or Selector"," * @return {Node | null} a Node instance or null if no match found."," * @for Node"," */","Y_Node.one = function(node) {"," var instance = null,"," cachedNode,"," uid;",""," if (node) {"," if (typeof node == 'string') {"," node = Y_Node._fromString(node);"," if (!node) {"," return null; // NOTE: return"," }"," } else if (node.getDOMNode) {"," return node; // NOTE: return"," }",""," if (node.nodeType || Y.DOM.isWindow(node)) { // avoid bad input (numbers, boolean, etc)"," uid = (node.uniqueID && node.nodeType !== 9) ? node.uniqueID : node._yuid;"," if (use_instance_map) {"," instance = Y_Node._instances[uid]; // reuse exising instances"," } else {"," instance = node._yui_instances && node._yui_instances[Y._yuid]; // reuse exising instances"," }"," cachedNode = instance ? instance._node : null;"," if (!instance || (cachedNode && node !== cachedNode)) { // new Node when nodes don't match"," instance = new Y_Node(node);"," if (node.nodeType != 11) { // dont cache document fragment"," if (use_instance_map) {"," Y_Node._instances[instance[UID]] = instance; // cache node"," } else {"," if (!node._yui_instances) {"," node._yui_instances = {};"," }"," node._yui_instances[Y._yuid] = instance; // cache node"," }"," }"," }"," }"," }",""," return instance;","};","","/**"," * The default setter for DOM properties"," * Called with instance context (this === the Node instance)"," * @method DEFAULT_SETTER"," * @static"," * @param {String} name The attribute/property being set"," * @param {any} val The value to be set"," * @return {any} The value"," */","Y_Node.DEFAULT_SETTER = function(name, val) {"," var node = this._stateProxy,"," strPath;",""," if (name.indexOf(DOT) > -1) {"," strPath = name;"," name = name.split(DOT);"," // only allow when defined on node"," Y.Object.setValue(node, name, val);"," } else if (typeof node[name] != 'undefined') { // pass thru DOM properties"," node[name] = val;"," }",""," return val;","};","","/**"," * The default getter for DOM properties"," * Called with instance context (this === the Node instance)"," * @method DEFAULT_GETTER"," * @static"," * @param {String} name The attribute/property to look up"," * @return {any} The current value"," */","Y_Node.DEFAULT_GETTER = function(name) {"," var node = this._stateProxy,"," val;",""," if (name.indexOf && name.indexOf(DOT) > -1) {"," val = Y.Object.getValue(node, name.split(DOT));"," } else if (typeof node[name] != 'undefined') { // pass thru from DOM"," val = node[name];"," }",""," return val;","};","","Y.mix(Y_Node.prototype, {"," DATA_PREFIX: 'data-',",""," /**"," * The method called when outputting Node instances as strings"," * @method toString"," * @return {String} A string representation of the Node instance"," */"," toString: function() {"," var str = this[UID] + ': not bound to a node',"," node = this._node,"," attrs, id, className;",""," if (node) {"," attrs = node.attributes;"," id = (attrs && attrs.id) ? node.getAttribute('id') : null;"," className = (attrs && attrs.className) ? node.getAttribute('className') : null;"," str = node[NODE_NAME];",""," if (id) {"," str += '#' + id;"," }",""," if (className) {"," str += '.' + className.replace(' ', '.');"," }",""," // TODO: add yuid?"," str += ' ' + this[UID];"," }"," return str;"," },",""," /**"," * Returns an attribute value on the Node instance."," * Unless pre-configured (via `Node.ATTRS`), get hands"," * off to the underlying DOM node. Only valid"," * attributes/properties for the node will be queried."," * @method get"," * @param {String} attr The attribute"," * @return {any} The current value of the attribute"," */"," get: function(attr) {"," var val;",""," if (this._getAttr) { // use Attribute imple"," val = this._getAttr(attr);"," } else {"," val = this._get(attr);"," }",""," if (val) {"," val = Y_Node.scrubVal(val, this);"," } else if (val === null) {"," val = null; // IE: DOM null is not true null (even though they ===)"," }"," return val;"," },",""," /**"," * Helper method for get."," * @method _get"," * @private"," * @param {String} attr The attribute"," * @return {any} The current value of the attribute"," */"," _get: function(attr) {"," var attrConfig = Y_Node.ATTRS[attr],"," val;",""," if (attrConfig && attrConfig.getter) {"," val = attrConfig.getter.call(this);"," } else if (Y_Node.re_aria.test(attr)) {"," val = this._node.getAttribute(attr, 2);"," } else {"," val = Y_Node.DEFAULT_GETTER.apply(this, arguments);"," }",""," return val;"," },",""," /**"," * Sets an attribute on the Node instance."," * Unless pre-configured (via Node.ATTRS), set hands"," * off to the underlying DOM node. Only valid"," * attributes/properties for the node will be set."," * To set custom attributes use setAttribute."," * @method set"," * @param {String} attr The attribute to be set."," * @param {any} val The value to set the attribute to."," * @chainable"," */"," set: function(attr, val) {"," var attrConfig = Y_Node.ATTRS[attr];",""," if (this._setAttr) { // use Attribute imple"," this._setAttr.apply(this, arguments);"," } else { // use setters inline"," if (attrConfig && attrConfig.setter) {"," attrConfig.setter.call(this, val, attr);"," } else if (Y_Node.re_aria.test(attr)) { // special case Aria"," this._node.setAttribute(attr, val);"," } else {"," Y_Node.DEFAULT_SETTER.apply(this, arguments);"," }"," }",""," return this;"," },",""," /**"," * Sets multiple attributes."," * @method setAttrs"," * @param {Object} attrMap an object of name/value pairs to set"," * @chainable"," */"," setAttrs: function(attrMap) {"," if (this._setAttrs) { // use Attribute imple"," this._setAttrs(attrMap);"," } else { // use setters inline"," Y.Object.each(attrMap, function(v, n) {"," this.set(n, v);"," }, this);"," }",""," return this;"," },",""," /**"," * Returns an object containing the values for the requested attributes."," * @method getAttrs"," * @param {Array} attrs an array of attributes to get values"," * @return {Object} An object with attribute name/value pairs."," */"," getAttrs: function(attrs) {"," var ret = {};"," if (this._getAttrs) { // use Attribute imple"," this._getAttrs(attrs);"," } else { // use setters inline"," Y.Array.each(attrs, function(v, n) {"," ret[v] = this.get(v);"," }, this);"," }",""," return ret;"," },",""," /**"," * Compares nodes to determine if they match."," * Node instances can be compared to each other and/or HTMLElements."," * @method compareTo"," * @param {HTMLElement | Node} refNode The reference node to compare to the node."," * @return {Boolean} True if the nodes match, false if they do not."," */"," compareTo: function(refNode) {"," var node = this._node;",""," if (refNode && refNode._node) {"," refNode = refNode._node;"," }"," return node === refNode;"," },",""," /**"," * Determines whether the node is appended to the document."," * @method inDoc"," * @param {Node|HTMLElement} doc optional An optional document to check against."," * Defaults to current document."," * @return {Boolean} Whether or not this node is appended to the document."," */"," inDoc: function(doc) {"," var node = this._node;",""," if (node) {"," doc = (doc) ? doc._node || doc : node[OWNER_DOCUMENT];"," if (doc.documentElement) {"," return Y_DOM.contains(doc.documentElement, node);"," }"," }",""," return false;"," },",""," getById: function(id) {"," var node = this._node,"," ret = Y_DOM.byId(id, node[OWNER_DOCUMENT]);"," if (ret && Y_DOM.contains(node, ret)) {"," ret = Y.one(ret);"," } else {"," ret = null;"," }"," return ret;"," },",""," /**"," * Returns the nearest ancestor that passes the test applied by supplied boolean method."," * @method ancestor"," * @param {String | Function} fn A selector string or boolean method for testing elements."," * If a function is used, it receives the current node being tested as the only argument."," * If fn is not passed as an argument, the parent node will be returned."," * @param {Boolean} testSelf optional Whether or not to include the element in the scan"," * @param {String | Function} stopFn optional A selector string or boolean"," * method to indicate when the search should stop. The search bails when the function"," * returns true or the selector matches."," * If a function is used, it receives the current node being tested as the only argument."," * @return {Node} The matching Node instance or null if not found"," */"," ancestor: function(fn, testSelf, stopFn) {"," // testSelf is optional, check for stopFn as 2nd arg"," if (arguments.length === 2 &&"," (typeof testSelf == 'string' || typeof testSelf == 'function')) {"," stopFn = testSelf;"," }",""," return Y.one(Y_DOM.ancestor(this._node, _wrapFn(fn), testSelf, _wrapFn(stopFn)));"," },",""," /**"," * Returns the ancestors that pass the test applied by supplied boolean method."," * @method ancestors"," * @param {String | Function} fn A selector string or boolean method for testing elements."," * @param {Boolean} testSelf optional Whether or not to include the element in the scan"," * If a function is used, it receives the current node being tested as the only argument."," * @return {NodeList} A NodeList instance containing the matching elements"," */"," ancestors: function(fn, testSelf, stopFn) {"," if (arguments.length === 2 &&"," (typeof testSelf == 'string' || typeof testSelf == 'function')) {"," stopFn = testSelf;"," }"," return Y.all(Y_DOM.ancestors(this._node, _wrapFn(fn), testSelf, _wrapFn(stopFn)));"," },",""," /**"," * Returns the previous matching sibling."," * Returns the nearest element node sibling if no method provided."," * @method previous"," * @param {String | Function} fn A selector or boolean method for testing elements."," * If a function is used, it receives the current node being tested as the only argument."," * @param {Boolean} [all] Whether text nodes as well as element nodes should be returned, or"," * just element nodes will be returned(default)"," * @return {Node} Node instance or null if not found"," */"," previous: function(fn, all) {"," return Y.one(Y_DOM.elementByAxis(this._node, 'previousSibling', _wrapFn(fn), all));"," },",""," /**"," * Returns the next matching sibling."," * Returns the nearest element node sibling if no method provided."," * @method next"," * @param {String | Function} fn A selector or boolean method for testing elements."," * If a function is used, it receives the current node being tested as the only argument."," * @param {Boolean} [all] Whether text nodes as well as element nodes should be returned, or"," * just element nodes will be returned(default)"," * @return {Node} Node instance or null if not found"," */"," next: function(fn, all) {"," return Y.one(Y_DOM.elementByAxis(this._node, 'nextSibling', _wrapFn(fn), all));"," },",""," /**"," * Returns all matching siblings."," * Returns all siblings if no method provided."," * @method siblings"," * @param {String | Function} fn A selector or boolean method for testing elements."," * If a function is used, it receives the current node being tested as the only argument."," * @return {NodeList} NodeList instance bound to found siblings"," */"," siblings: function(fn) {"," return Y.all(Y_DOM.siblings(this._node, _wrapFn(fn)));"," },",""," /**"," * Retrieves a single Node instance, the first element matching the given"," * CSS selector."," * Returns null if no match found."," * @method one"," *"," * @param {string} selector The CSS selector to test against."," * @return {Node | null} A Node instance for the matching HTMLElement or null"," * if no match found."," */"," one: function(selector) {"," return Y.one(Y.Selector.query(selector, this._node, true));"," },",""," /**"," * Retrieves a NodeList based on the given CSS selector."," * @method all"," *"," * @param {string} selector The CSS selector to test against."," * @return {NodeList} A NodeList instance for the matching HTMLCollection/Array."," */"," all: function(selector) {"," var nodelist;",""," if (this._node) {"," nodelist = Y.all(Y.Selector.query(selector, this._node));"," nodelist._query = selector;"," nodelist._queryRoot = this._node;"," }",""," return nodelist || Y.all([]);"," },",""," // TODO: allow fn test"," /**"," * Test if the supplied node matches the supplied selector."," * @method test"," *"," * @param {string} selector The CSS selector to test against."," * @return {boolean} Whether or not the node matches the selector."," */"," test: function(selector) {"," return Y.Selector.test(this._node, selector);"," },",""," /**"," * Removes the node from its parent."," * Shortcut for myNode.get('parentNode').removeChild(myNode);"," * @method remove"," * @param {Boolean} destroy whether or not to call destroy() on the node"," * after removal."," * @chainable"," *"," */"," remove: function(destroy) {"," var node = this._node;",""," if (node && node.parentNode) {"," node.parentNode.removeChild(node);"," }",""," if (destroy) {"," this.destroy();"," }",""," return this;"," },",""," /**"," * Replace the node with the other node. This is a DOM update only"," * and does not change the node bound to the Node instance."," * Shortcut for myNode.get('parentNode').replaceChild(newNode, myNode);"," * @method replace"," * @param {Node | HTMLElement} newNode Node to be inserted"," * @chainable"," *"," */"," replace: function(newNode) {"," var node = this._node;"," if (typeof newNode == 'string') {"," newNode = Y_Node.create(newNode);"," }"," node.parentNode.replaceChild(Y_Node.getDOMNode(newNode), node);"," return this;"," },",""," /**"," * @method replaceChild"," * @for Node"," * @param {String | HTMLElement | Node} node Node to be inserted"," * @param {HTMLElement | Node} refNode Node to be replaced"," * @return {Node} The replaced node"," */"," replaceChild: function(node, refNode) {"," if (typeof node == 'string') {"," node = Y_DOM.create(node);"," }",""," return Y.one(this._node.replaceChild(Y_Node.getDOMNode(node), Y_Node.getDOMNode(refNode)));"," },",""," /**"," * Nulls internal node references, removes any plugins and event listeners."," * Note that destroy() will not remove the node from its parent or from the DOM. For that"," * functionality, call remove(true)."," * @method destroy"," * @param {Boolean} recursivePurge (optional) Whether or not to remove listeners from the"," * node's subtree (default is false)"," *"," */"," destroy: function(recursive) {"," var UID = Y.config.doc.uniqueID ? 'uniqueID' : '_yuid',"," instance;",""," this.purge(); // TODO: only remove events add via this Node",""," if (this.unplug) { // may not be a PluginHost"," this.unplug();"," }",""," this.clearData();",""," if (recursive) {"," Y.NodeList.each(this.all('*'), function(node) {"," if (use_instance_map) {"," instance = Y_Node._instances[node[UID]];"," } else {"," instance = node._yui_instances && node._yui_instances[Y._yuid];"," }"," if (instance) {"," instance.destroy();"," } else { // purge in case added by other means"," Y.Event.purgeElement(node);"," }"," });"," }",""," if (this._node._yui_instances) {"," delete this._node._yui_instances[Y._yuid];"," }",""," this._node = null;"," this._stateProxy = null;",""," if (use_instance_map) {"," delete Y_Node._instances[this._yuid];"," }"," },",""," /**"," * Invokes a method on the Node instance"," * @method invoke"," * @param {String} method The name of the method to invoke"," * @param {any} [args*] Arguments to invoke the method with."," * @return {any} Whatever the underly method returns."," * DOM Nodes and Collections return values"," * are converted to Node/NodeList instances."," *"," */"," invoke: function(method, a, b, c, d, e) {"," var node = this._node,"," ret;",""," if (a && a._node) {"," a = a._node;"," }",""," if (b && b._node) {"," b = b._node;"," }",""," ret = node[method](a, b, c, d, e);"," return Y_Node.scrubVal(ret, this);"," },",""," /**"," * @method swap"," * @description Swap DOM locations with the given node."," * This does not change which DOM node each Node instance refers to."," * @param {Node} otherNode The node to swap with"," * @chainable"," */"," swap: Y.config.doc.documentElement.swapNode ?"," function(otherNode) {"," this._node.swapNode(Y_Node.getDOMNode(otherNode));"," } :"," function(otherNode) {"," otherNode = Y_Node.getDOMNode(otherNode);"," var node = this._node,"," parent = otherNode.parentNode,"," nextSibling = otherNode.nextSibling;",""," if (nextSibling === node) {"," parent.insertBefore(node, otherNode);"," } else if (otherNode === node.nextSibling) {"," parent.insertBefore(otherNode, node);"," } else {"," node.parentNode.replaceChild(otherNode, node);"," Y_DOM.addHTML(parent, node, nextSibling);"," }"," return this;"," },","",""," hasMethod: function(method) {"," var node = this._node;"," return !!(node && method in node &&"," typeof node[method] != 'unknown' &&"," (typeof node[method] == 'function' ||"," String(node[method]).indexOf('function') === 1)); // IE reports as object, prepends space"," },",""," isFragment: function() {"," return (this.get('nodeType') === 11);"," },",""," /**"," * Removes and destroys all of the nodes within the node."," * @method empty"," * @chainable"," */"," empty: function() {"," this.get('childNodes').remove().destroy(true);"," return this;"," },",""," /**"," * Returns the DOM node bound to the Node instance"," * @method getDOMNode"," * @return {HTMLElement}"," */"," getDOMNode: function() {"," return this._node;"," }","}, true);","","Y.Node = Y_Node;","Y.one = Y_Node.one;","/**"," * The NodeList module provides support for managing collections of Nodes."," * @module node"," * @submodule node-core"," */","","/**"," * The NodeList class provides a wrapper for manipulating DOM NodeLists."," * NodeList properties can be accessed via the set/get methods."," * Use Y.all() to retrieve NodeList instances."," *"," * @class NodeList"," * @constructor"," * @param nodes {String|element|Node|Array} A selector, DOM element, Node, list of DOM elements, or list of Nodes with which to populate this NodeList."," */","","var NodeList = function(nodes) {"," var tmp = [];",""," if (nodes) {"," if (typeof nodes === 'string') { // selector query"," this._query = nodes;"," nodes = Y.Selector.query(nodes);"," } else if (nodes.nodeType || Y_DOM.isWindow(nodes)) { // domNode || window"," nodes = [nodes];"," } else if (nodes._node) { // Y.Node"," nodes = [nodes._node];"," } else if (nodes[0] && nodes[0]._node) { // allow array of Y.Nodes"," Y.Array.each(nodes, function(node) {"," if (node._node) {"," tmp.push(node._node);"," }"," });"," nodes = tmp;"," } else { // array of domNodes or domNodeList (no mixed array of Y.Node/domNodes)"," nodes = Y.Array(nodes, 0, true);"," }"," }",""," /**"," * The underlying array of DOM nodes bound to the Y.NodeList instance"," * @property _nodes"," * @private"," */"," this._nodes = nodes || [];","};","","NodeList.NAME = 'NodeList';","","/**"," * Retrieves the DOM nodes bound to a NodeList instance"," * @method getDOMNodes"," * @static"," *"," * @param {NodeList} nodelist The NodeList instance"," * @return {Array} The array of DOM nodes bound to the NodeList"," */","NodeList.getDOMNodes = function(nodelist) {"," return (nodelist && nodelist._nodes) ? nodelist._nodes : nodelist;","};","","NodeList.each = function(instance, fn, context) {"," var nodes = instance._nodes;"," if (nodes && nodes.length) {"," Y.Array.each(nodes, fn, context || instance);"," } else {"," }","};","","NodeList.addMethod = function(name, fn, context) {"," if (name && fn) {"," NodeList.prototype[name] = function() {"," var ret = [],"," args = arguments;",""," Y.Array.each(this._nodes, function(node) {"," var UID,"," instance,"," ctx,"," result;",""," if (Y.Node._instances) {"," UID = (node.uniqueID && node.nodeType !== 9 ) ? 'uniqueID' : '_yuid';"," instance = Y.Node._instances[node[UID]];"," } else {"," instance = node._yui_instances && node._yui_instances[Y._yuid];"," }",""," if (!instance) {"," instance = NodeList._getTempNode(node);"," }"," ctx = context || instance;"," result = fn.apply(ctx, args);"," if (result !== undefined && result !== instance) {"," ret[ret.length] = result;"," }"," });",""," // TODO: remove tmp pointer"," return ret.length ? ret : this;"," };"," } else {"," }","};","","NodeList.importMethod = function(host, name, altName) {"," if (typeof name === 'string') {"," altName = altName || name;"," NodeList.addMethod(name, host[name]);"," } else {"," Y.Array.each(name, function(n) {"," NodeList.importMethod(host, n);"," });"," }","};","","NodeList._getTempNode = function(node) {"," var tmp = NodeList._tempNode;"," if (!tmp) {"," tmp = Y.Node.create('
');"," NodeList._tempNode = tmp;"," }",""," tmp._node = node;"," tmp._stateProxy = node;"," return tmp;","};","","Y.mix(NodeList.prototype, {"," _invoke: function(method, args, getter) {"," var ret = (getter) ? [] : this;",""," this.each(function(node) {"," var val = node[method].apply(node, args);"," if (getter) {"," ret.push(val);"," }"," });",""," return ret;"," },",""," /**"," * Retrieves the Node instance at the given index."," * @method item"," *"," * @param {Number} index The index of the target Node."," * @return {Node} The Node instance at the given index."," */"," item: function(index) {"," return Y.one((this._nodes || [])[index]);"," },",""," /**"," * Applies the given function to each Node in the NodeList."," * @method each"," * @param {Function} fn The function to apply. It receives 3 arguments:"," * the current node instance, the node's index, and the NodeList instance"," * @param {Object} context optional An optional context to apply the function with"," * Default context is the current Node instance"," * @chainable"," */"," each: function(fn, context) {"," var instance = this;"," Y.Array.each(this._nodes, function(node, index) {"," node = Y.one(node);"," return fn.call(context || node, node, index, instance);"," });"," return instance;"," },",""," batch: function(fn, context) {"," var nodelist = this;",""," Y.Array.each(this._nodes, function(node, index) {"," var UID,"," instance;",""," if (Y.Node._instances) {"," UID = (node.uniqueID && node.nodeType !== 9 ) ? 'uniqueID' : '_yuid';"," instance = Y.Node._instances[node[UID]];"," } else {"," instance = node._yui_instances && node._yui_instances[Y._yuid];"," }",""," if (!instance) {"," instance = NodeList._getTempNode(node);"," }",""," return fn.call(context || instance, instance, index, nodelist);"," });"," return nodelist;"," },",""," /**"," * Executes the function once for each node until a true value is returned."," * @method some"," * @param {Function} fn The function to apply. It receives 3 arguments:"," * the current node instance, the node's index, and the NodeList instance"," * @param {Object} context optional An optional context to execute the function from."," * Default context is the current Node instance"," * @return {Boolean} Whether or not the function returned true for any node."," */"," some: function(fn, context) {"," var instance = this;"," return Y.Array.some(this._nodes, function(node, index) {"," node = Y.one(node);"," context = context || node;"," return fn.call(context, node, index, instance);"," });"," },",""," /**"," * Creates a documenFragment from the nodes bound to the NodeList instance"," * @method toFrag"," * @return {Node} a Node instance bound to the documentFragment"," */"," toFrag: function() {"," return Y.one(Y.DOM._nl2frag(this._nodes));"," },",""," /**"," * Returns the index of the node in the NodeList instance"," * or -1 if the node isn't found."," * @method indexOf"," * @param {Node | HTMLElement} node the node to search for"," * @return {Number} the index of the node value or -1 if not found"," */"," indexOf: function(node) {"," return Y.Array.indexOf(this._nodes, Y.Node.getDOMNode(node));"," },",""," /**"," * Filters the NodeList instance down to only nodes matching the given selector."," * @method filter"," * @param {String} selector The selector to filter against"," * @return {NodeList} NodeList containing the updated collection"," * @see Selector"," */"," filter: function(selector) {"," return Y.all(Y.Selector.filter(this._nodes, selector));"," },","",""," /**"," * Creates a new NodeList containing all nodes at every n indices, where"," * remainder n % index equals r."," * (zero-based index)."," * @method modulus"," * @param {Number} n The offset to use (return every nth node)"," * @param {Number} r An optional remainder to use with the modulus operation (defaults to zero)"," * @return {NodeList} NodeList containing the updated collection"," */"," modulus: function(n, r) {"," r = r || 0;"," var nodes = [];"," NodeList.each(this, function(node, i) {"," if (i % n === r) {"," nodes.push(node);"," }"," });",""," return Y.all(nodes);"," },",""," /**"," * Creates a new NodeList containing all nodes at odd indices"," * (zero-based index)."," * @method odd"," * @return {NodeList} NodeList containing the updated collection"," */"," odd: function() {"," return this.modulus(2, 1);"," },",""," /**"," * Creates a new NodeList containing all nodes at even indices"," * (zero-based index), including zero."," * @method even"," * @return {NodeList} NodeList containing the updated collection"," */"," even: function() {"," return this.modulus(2);"," },",""," destructor: function() {"," },",""," /**"," * Reruns the initial query, when created using a selector query"," * @method refresh"," * @chainable"," */"," refresh: function() {"," var doc,"," nodes = this._nodes,"," query = this._query,"," root = this._queryRoot;",""," if (query) {"," if (!root) {"," if (nodes && nodes[0] && nodes[0].ownerDocument) {"," root = nodes[0].ownerDocument;"," }"," }",""," this._nodes = Y.Selector.query(query, root);"," }",""," return this;"," },",""," /**"," * Returns the current number of items in the NodeList."," * @method size"," * @return {Number} The number of items in the NodeList."," */"," size: function() {"," return this._nodes.length;"," },",""," /**"," * Determines if the instance is bound to any nodes"," * @method isEmpty"," * @return {Boolean} Whether or not the NodeList is bound to any nodes"," */"," isEmpty: function() {"," return this._nodes.length < 1;"," },",""," toString: function() {"," var str = '',"," errorMsg = this[UID] + ': not bound to any nodes',"," nodes = this._nodes,"," node;",""," if (nodes && nodes[0]) {"," node = nodes[0];"," str += node[NODE_NAME];"," if (node.id) {"," str += '#' + node.id;"," }",""," if (node.className) {"," str += '.' + node.className.replace(' ', '.');"," }",""," if (nodes.length > 1) {"," str += '...[' + nodes.length + ' items]';"," }"," }"," return str || errorMsg;"," },",""," /**"," * Returns the DOM node bound to the Node instance"," * @method getDOMNodes"," * @return {Array}"," */"," getDOMNodes: function() {"," return this._nodes;"," }","}, true);","","NodeList.importMethod(Y.Node.prototype, ["," /**"," * Called on each Node instance. Nulls internal node references,"," * removes any plugins and event listeners"," * @method destroy"," * @param {Boolean} recursivePurge (optional) Whether or not to"," * remove listeners from the node's subtree (default is false)"," * @see Node.destroy"," */"," 'destroy',",""," /**"," * Called on each Node instance. Removes and destroys all of the nodes"," * within the node"," * @method empty"," * @chainable"," * @see Node.empty"," */"," 'empty',",""," /**"," * Called on each Node instance. Removes the node from its parent."," * Shortcut for myNode.get('parentNode').removeChild(myNode);"," * @method remove"," * @param {Boolean} destroy whether or not to call destroy() on the node"," * after removal."," * @chainable"," * @see Node.remove"," */"," 'remove',",""," /**"," * Called on each Node instance. Sets an attribute on the Node instance."," * Unless pre-configured (via Node.ATTRS), set hands"," * off to the underlying DOM node. Only valid"," * attributes/properties for the node will be set."," * To set custom attributes use setAttribute."," * @method set"," * @param {String} attr The attribute to be set."," * @param {any} val The value to set the attribute to."," * @chainable"," * @see Node.set"," */"," 'set'","]);","","// one-off implementation to convert array of Nodes to NodeList","// e.g. Y.all('input').get('parentNode');","","/** Called on each Node instance"," * @method get"," * @see Node"," */","NodeList.prototype.get = function(attr) {"," var ret = [],"," nodes = this._nodes,"," isNodeList = false,"," getTemp = NodeList._getTempNode,"," UID,"," instance,"," val;",""," if (nodes[0]) {"," if (Y.Node._instances) {"," UID = (nodes[0].uniqueID && nodes[0].nodeType !== 9 ) ? 'uniqueID' : '_yuid';"," instance = Y.Node._instances[nodes[0][UID]];"," } else {"," instance = nodes[0]._yui_instances && nodes[0]._yui_instances[Y._yuid];"," }"," instance = instance || getTemp(nodes[0]);",""," val = instance._get(attr);"," if (val && val.nodeType) {"," isNodeList = true;"," }"," }",""," Y.Array.each(nodes, function(node) {"," if (Y.Node._instances) {"," UID = (node.uniqueID && node.nodeType !== 9 ) ? 'uniqueID' : '_yuid';"," instance = Y.Node._instances[node[UID]];"," } else {"," instance = node._yui_instances && node._yui_instances[Y._yuid];"," }",""," if (!instance) {"," instance = getTemp(node);"," }",""," val = instance._get(attr);"," if (!isNodeList) { // convert array of Nodes to NodeList"," val = Y.Node.scrubVal(val, instance);"," }",""," ret.push(val);"," });",""," return (isNodeList) ? Y.all(ret) : ret;","};","","Y.NodeList = NodeList;","","Y.all = function(nodes) {"," return new NodeList(nodes);","};","","Y.Node.all = Y.all;","/**"," * @module node"," * @submodule node-core"," */","","var Y_NodeList = Y.NodeList,"," ArrayProto = Array.prototype,"," ArrayMethods = {"," /** Returns a new NodeList combining the given NodeList(s)"," * @for NodeList"," * @method concat"," * @param {NodeList | Array} valueN Arrays/NodeLists and/or values to"," * concatenate to the resulting NodeList"," * @return {NodeList} A new NodeList comprised of this NodeList joined with the input."," */"," 'concat': 1,"," /** Removes the last from the NodeList and returns it."," * @for NodeList"," * @method pop"," * @return {Node | null} The last item in the NodeList, or null if the list is empty."," */"," 'pop': 0,"," /** Adds the given Node(s) to the end of the NodeList."," * @for NodeList"," * @method push"," * @param {Node | HTMLElement} nodes One or more nodes to add to the end of the NodeList."," */"," 'push': 0,"," /** Removes the first item from the NodeList and returns it."," * @for NodeList"," * @method shift"," * @return {Node | null} The first item in the NodeList, or null if the NodeList is empty."," */"," 'shift': 0,"," /** Returns a new NodeList comprising the Nodes in the given range."," * @for NodeList"," * @method slice"," * @param {Number} begin Zero-based index at which to begin extraction."," As a negative index, start indicates an offset from the end of the sequence. slice(-2) extracts the second-to-last element and the last element in the sequence."," * @param {Number} end Zero-based index at which to end extraction. slice extracts up to but not including end."," slice(1,4) extracts the second element through the fourth element (elements indexed 1, 2, and 3)."," As a negative index, end indicates an offset from the end of the sequence. slice(2,-1) extracts the third element through the second-to-last element in the sequence."," If end is omitted, slice extracts to the end of the sequence."," * @return {NodeList} A new NodeList comprised of this NodeList joined with the input."," */"," 'slice': 1,"," /** Changes the content of the NodeList, adding new elements while removing old elements."," * @for NodeList"," * @method splice"," * @param {Number} index Index at which to start changing the array. If negative, will begin that many elements from the end."," * @param {Number} howMany An integer indicating the number of old array elements to remove. If howMany is 0, no elements are removed. In this case, you should specify at least one new element. If no howMany parameter is specified (second syntax above, which is a SpiderMonkey extension), all elements after index are removed."," * {Node | HTMLElement| element1, ..., elementN"," The elements to add to the array. If you don't specify any elements, splice simply removes elements from the array."," * @return {NodeList} The element(s) removed."," */"," 'splice': 1,"," /** Adds the given Node(s) to the beginning of the NodeList."," * @for NodeList"," * @method unshift"," * @param {Node | HTMLElement} nodes One or more nodes to add to the NodeList."," */"," 'unshift': 0"," };","","","Y.Object.each(ArrayMethods, function(returnNodeList, name) {"," Y_NodeList.prototype[name] = function() {"," var args = [],"," i = 0,"," arg,"," ret;",""," while (typeof (arg = arguments[i++]) != 'undefined') { // use DOM nodes/nodeLists"," args.push(arg._node || arg._nodes || arg);"," }",""," ret = ArrayProto[name].apply(this._nodes, args);",""," if (returnNodeList) {"," ret = Y.all(ret);"," } else {"," ret = Y.Node.scrubVal(ret);"," }",""," return ret;"," };","});","/**"," * @module node"," * @submodule node-core"," */","","Y.Array.each(["," /**"," * Passes through to DOM method."," * @for Node"," * @method removeChild"," * @param {HTMLElement | Node} node Node to be removed"," * @return {Node} The removed node"," */"," 'removeChild',",""," /**"," * Passes through to DOM method."," * @method hasChildNodes"," * @return {Boolean} Whether or not the node has any childNodes"," */"," 'hasChildNodes',",""," /**"," * Passes through to DOM method."," * @method cloneNode"," * @param {Boolean} deep Whether or not to perform a deep clone, which includes"," * subtree and attributes"," * @return {Node} The clone"," */"," 'cloneNode',",""," /**"," * Passes through to DOM method."," * @method hasAttribute"," * @param {String} attribute The attribute to test for"," * @return {Boolean} Whether or not the attribute is present"," */"," 'hasAttribute',",""," /**"," * Passes through to DOM method."," * @method scrollIntoView"," * @chainable"," */"," 'scrollIntoView',",""," /**"," * Passes through to DOM method."," * @method getElementsByTagName"," * @param {String} tagName The tagName to collect"," * @return {NodeList} A NodeList representing the HTMLCollection"," */"," 'getElementsByTagName',",""," /**"," * Passes through to DOM method."," * @method focus"," * @chainable"," */"," 'focus',",""," /**"," * Passes through to DOM method."," * @method blur"," * @chainable"," */"," 'blur',",""," /**"," * Passes through to DOM method."," * Only valid on FORM elements"," * @method submit"," * @chainable"," */"," 'submit',",""," /**"," * Passes through to DOM method."," * Only valid on FORM elements"," * @method reset"," * @chainable"," */"," 'reset',",""," /**"," * Passes through to DOM method."," * @method select"," * @chainable"," */"," 'select',",""," /**"," * Passes through to DOM method."," * Only valid on TABLE elements"," * @method createCaption"," * @chainable"," */"," 'createCaption'","","], function(method) {"," Y.Node.prototype[method] = function(arg1, arg2, arg3) {"," var ret = this.invoke(method, arg1, arg2, arg3);"," return ret;"," };","});","","/**"," * Passes through to DOM method."," * @method removeAttribute"," * @param {String} attribute The attribute to be removed"," * @chainable"," */"," // one-off implementation due to IE returning boolean, breaking chaining","Y.Node.prototype.removeAttribute = function(attr) {"," var node = this._node;"," if (node) {"," node.removeAttribute(attr, 0); // comma zero for IE < 8 to force case-insensitive"," }",""," return this;","};","","Y.Node.importMethod(Y.DOM, ["," /**"," * Determines whether the node is an ancestor of another HTML element in the DOM hierarchy."," * @method contains"," * @param {Node | HTMLElement} needle The possible node or descendent"," * @return {Boolean} Whether or not this node is the needle its ancestor"," */"," 'contains',"," /**"," * Allows setting attributes on DOM nodes, normalizing in some cases."," * This passes through to the DOM node, allowing for custom attributes."," * @method setAttribute"," * @for Node"," * @chainable"," * @param {string} name The attribute name"," * @param {string} value The value to set"," */"," 'setAttribute',"," /**"," * Allows getting attributes on DOM nodes, normalizing in some cases."," * This passes through to the DOM node, allowing for custom attributes."," * @method getAttribute"," * @for Node"," * @param {string} name The attribute name"," * @return {string} The attribute value"," */"," 'getAttribute',",""," /**"," * Wraps the given HTML around the node."," * @method wrap"," * @param {String} html The markup to wrap around the node."," * @chainable"," * @for Node"," */"," 'wrap',",""," /**"," * Removes the node's parent node."," * @method unwrap"," * @chainable"," */"," 'unwrap',",""," /**"," * Applies a unique ID to the node if none exists"," * @method generateID"," * @return {String} The existing or generated ID"," */"," 'generateID'","]);","","Y.NodeList.importMethod(Y.Node.prototype, [","/**"," * Allows getting attributes on DOM nodes, normalizing in some cases."," * This passes through to the DOM node, allowing for custom attributes."," * @method getAttribute"," * @see Node"," * @for NodeList"," * @param {string} name The attribute name"," * @return {string} The attribute value"," */",""," 'getAttribute',","/**"," * Allows setting attributes on DOM nodes, normalizing in some cases."," * This passes through to the DOM node, allowing for custom attributes."," * @method setAttribute"," * @see Node"," * @for NodeList"," * @chainable"," * @param {string} name The attribute name"," * @param {string} value The value to set"," */"," 'setAttribute',","","/**"," * Allows for removing attributes on DOM nodes."," * This passes through to the DOM node, allowing for custom attributes."," * @method removeAttribute"," * @see Node"," * @for NodeList"," * @param {string} name The attribute to remove"," */"," 'removeAttribute',","/**"," * Removes the parent node from node in the list."," * @method unwrap"," * @chainable"," */"," 'unwrap',","/**"," * Wraps the given HTML around each node."," * @method wrap"," * @param {String} html The markup to wrap around the node."," * @chainable"," */"," 'wrap',","","/**"," * Applies a unique ID to each node if none exists"," * @method generateID"," * @return {String} The existing or generated ID"," */"," 'generateID'","]);","","","}, '@VERSION@', {\"requires\": [\"dom-core\", \"selector\"]});","","}());"]}; + __coverage__['build/node-core/node-core.js'] = {"path":"build/node-core/node-core.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,"235":0,"236":0,"237":0,"238":0,"239":0,"240":0,"241":0,"242":0,"243":0,"244":0,"245":0,"246":0,"247":0,"248":0,"249":0,"250":0,"251":0,"252":0,"253":0,"254":0,"255":0,"256":0,"257":0,"258":0,"259":0,"260":0,"261":0,"262":0,"263":0,"264":0,"265":0,"266":0,"267":0,"268":0,"269":0,"270":0,"271":0,"272":0,"273":0,"274":0,"275":0,"276":0,"277":0,"278":0,"279":0,"280":0,"281":0,"282":0,"283":0,"284":0,"285":0,"286":0,"287":0,"288":0,"289":0,"290":0,"291":0,"292":0,"293":0,"294":0,"295":0,"296":0,"297":0,"298":0,"299":0,"300":0,"301":0,"302":0,"303":0,"304":0,"305":0,"306":0,"307":0,"308":0,"309":0,"310":0,"311":0,"312":0,"313":0,"314":0,"315":0,"316":0,"317":0,"318":0,"319":0,"320":0,"321":0,"322":0,"323":0,"324":0,"325":0,"326":0,"327":0,"328":0,"329":0,"330":0,"331":0,"332":0,"333":0,"334":0,"335":0,"336":0,"337":0,"338":0,"339":0,"340":0,"341":0,"342":0,"343":0,"344":0,"345":0,"346":0,"347":0,"348":0,"349":0,"350":0,"351":0,"352":0,"353":0,"354":0,"355":0,"356":0,"357":0,"358":0,"359":0,"360":0,"361":0,"362":0,"363":0,"364":0,"365":0,"366":0,"367":0,"368":0,"369":0,"370":0,"371":0,"372":0,"373":0,"374":0,"375":0,"376":0,"377":0,"378":0,"379":0,"380":0,"381":0,"382":0,"383":0,"384":0,"385":0,"386":0,"387":0,"388":0,"389":0,"390":0,"391":0,"392":0,"393":0,"394":0,"395":0,"396":0,"397":0,"398":0,"399":0,"400":0,"401":0,"402":0,"403":0,"404":0,"405":0,"406":0,"407":0,"408":0,"409":0,"410":0,"411":0,"412":0,"413":0,"414":0,"415":0,"416":0,"417":0,"418":0,"419":0,"420":0,"421":0,"422":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0,0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0,0,0],"28":[0,0],"29":[0,0],"30":[0,0],"31":[0,0,0],"32":[0,0],"33":[0,0],"34":[0,0],"35":[0,0],"36":[0,0],"37":[0,0],"38":[0,0],"39":[0,0],"40":[0,0],"41":[0,0],"42":[0,0],"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],"52":[0,0],"53":[0,0,0],"54":[0,0],"55":[0,0],"56":[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],"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,0],"91":[0,0],"92":[0,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],"101":[0,0],"102":[0,0],"103":[0,0],"104":[0,0],"105":[0,0],"106":[0,0],"107":[0,0],"108":[0,0],"109":[0,0],"110":[0,0],"111":[0,0],"112":[0,0],"113":[0,0],"114":[0,0],"115":[0,0,0,0,0],"116":[0,0],"117":[0,0],"118":[0,0],"119":[0,0],"120":[0,0],"121":[0,0],"122":[0,0],"123":[0,0],"124":[0,0],"125":[0,0],"126":[0,0],"127":[0,0],"128":[0,0],"129":[0,0],"130":[0,0],"131":[0,0],"132":[0,0],"133":[0,0],"134":[0,0],"135":[0,0],"136":[0,0],"137":[0,0],"138":[0,0],"139":[0,0],"140":[0,0],"141":[0,0],"142":[0,0],"143":[0,0],"144":[0,0],"145":[0,0],"146":[0,0],"147":[0,0],"148":[0,0],"149":[0,0],"150":[0,0],"151":[0,0],"152":[0,0],"153":[0,0],"154":[0,0],"155":[0,0],"156":[0,0],"157":[0,0],"158":[0,0],"159":[0,0],"160":[0,0,0],"161":[0,0],"162":[0,0],"163":[0,0],"164":[0,0],"165":[0,0],"166":[0,0],"167":[0,0],"168":[0,0],"169":[0,0],"170":[0,0],"171":[0,0],"172":[0,0],"173":[0,0],"174":[0,0],"175":[0,0],"176":[0,0],"177":[0,0],"178":[0,0],"179":[0,0],"180":[0,0],"181":[0,0],"182":[0,0,0],"183":[0,0],"184":[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,"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},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":21},"end":{"line":1,"column":40}}},"2":{"name":"(anonymous_2)","line":39,"loc":{"start":{"line":39,"column":13},"end":{"line":39,"column":28}}},"3":{"name":"(anonymous_3)","line":80,"loc":{"start":{"line":80,"column":14},"end":{"line":80,"column":27}}},"4":{"name":"(anonymous_4)","line":84,"loc":{"start":{"line":84,"column":12},"end":{"line":84,"column":24}}},"5":{"name":"(anonymous_5)","line":87,"loc":{"start":{"line":87,"column":12},"end":{"line":87,"column":24}}},"6":{"name":"(anonymous_6)","line":99,"loc":{"start":{"line":99,"column":21},"end":{"line":99,"column":36}}},"7":{"name":"(anonymous_7)","line":151,"loc":{"start":{"line":151,"column":20},"end":{"line":151,"column":35}}},"8":{"name":"(anonymous_8)","line":169,"loc":{"start":{"line":169,"column":18},"end":{"line":169,"column":38}}},"9":{"name":"(anonymous_9)","line":199,"loc":{"start":{"line":199,"column":19},"end":{"line":199,"column":47}}},"10":{"name":"(anonymous_10)","line":201,"loc":{"start":{"line":201,"column":33},"end":{"line":201,"column":44}}},"11":{"name":"(anonymous_11)","line":238,"loc":{"start":{"line":238,"column":22},"end":{"line":238,"column":52}}},"12":{"name":"(anonymous_12)","line":243,"loc":{"start":{"line":243,"column":27},"end":{"line":243,"column":39}}},"13":{"name":"(anonymous_13)","line":280,"loc":{"start":{"line":280,"column":13},"end":{"line":280,"column":28}}},"14":{"name":"(anonymous_14)","line":331,"loc":{"start":{"line":331,"column":24},"end":{"line":331,"column":44}}},"15":{"name":"(anonymous_15)","line":355,"loc":{"start":{"line":355,"column":24},"end":{"line":355,"column":39}}},"16":{"name":"(anonymous_16)","line":376,"loc":{"start":{"line":376,"column":14},"end":{"line":376,"column":25}}},"17":{"name":"(anonymous_17)","line":409,"loc":{"start":{"line":409,"column":9},"end":{"line":409,"column":24}}},"18":{"name":"(anonymous_18)","line":433,"loc":{"start":{"line":433,"column":10},"end":{"line":433,"column":25}}},"19":{"name":"(anonymous_19)","line":459,"loc":{"start":{"line":459,"column":9},"end":{"line":459,"column":29}}},"20":{"name":"(anonymous_20)","line":483,"loc":{"start":{"line":483,"column":14},"end":{"line":483,"column":32}}},"21":{"name":"(anonymous_21)","line":487,"loc":{"start":{"line":487,"column":35},"end":{"line":487,"column":50}}},"22":{"name":"(anonymous_22)","line":501,"loc":{"start":{"line":501,"column":14},"end":{"line":501,"column":30}}},"23":{"name":"(anonymous_23)","line":506,"loc":{"start":{"line":506,"column":32},"end":{"line":506,"column":47}}},"24":{"name":"(anonymous_24)","line":521,"loc":{"start":{"line":521,"column":15},"end":{"line":521,"column":33}}},"25":{"name":"(anonymous_25)","line":537,"loc":{"start":{"line":537,"column":11},"end":{"line":537,"column":25}}},"26":{"name":"(anonymous_26)","line":550,"loc":{"start":{"line":550,"column":13},"end":{"line":550,"column":26}}},"27":{"name":"(anonymous_27)","line":574,"loc":{"start":{"line":574,"column":14},"end":{"line":574,"column":45}}},"28":{"name":"(anonymous_28)","line":592,"loc":{"start":{"line":592,"column":15},"end":{"line":592,"column":46}}},"29":{"name":"(anonymous_29)","line":610,"loc":{"start":{"line":610,"column":14},"end":{"line":610,"column":32}}},"30":{"name":"(anonymous_30)","line":624,"loc":{"start":{"line":624,"column":10},"end":{"line":624,"column":28}}},"31":{"name":"(anonymous_31)","line":636,"loc":{"start":{"line":636,"column":14},"end":{"line":636,"column":27}}},"32":{"name":"(anonymous_32)","line":650,"loc":{"start":{"line":650,"column":9},"end":{"line":650,"column":28}}},"33":{"name":"(anonymous_33)","line":661,"loc":{"start":{"line":661,"column":9},"end":{"line":661,"column":28}}},"34":{"name":"(anonymous_34)","line":681,"loc":{"start":{"line":681,"column":10},"end":{"line":681,"column":29}}},"35":{"name":"(anonymous_35)","line":694,"loc":{"start":{"line":694,"column":12},"end":{"line":694,"column":30}}},"36":{"name":"(anonymous_36)","line":717,"loc":{"start":{"line":717,"column":13},"end":{"line":717,"column":31}}},"37":{"name":"(anonymous_37)","line":733,"loc":{"start":{"line":733,"column":18},"end":{"line":733,"column":42}}},"38":{"name":"(anonymous_38)","line":750,"loc":{"start":{"line":750,"column":13},"end":{"line":750,"column":33}}},"39":{"name":"(anonymous_39)","line":763,"loc":{"start":{"line":763,"column":43},"end":{"line":763,"column":58}}},"40":{"name":"(anonymous_40)","line":799,"loc":{"start":{"line":799,"column":12},"end":{"line":799,"column":44}}},"41":{"name":"(anonymous_41)","line":823,"loc":{"start":{"line":823,"column":8},"end":{"line":823,"column":28}}},"42":{"name":"(anonymous_42)","line":826,"loc":{"start":{"line":826,"column":8},"end":{"line":826,"column":28}}},"43":{"name":"(anonymous_43)","line":844,"loc":{"start":{"line":844,"column":15},"end":{"line":844,"column":32}}},"44":{"name":"(anonymous_44)","line":852,"loc":{"start":{"line":852,"column":16},"end":{"line":852,"column":27}}},"45":{"name":"(anonymous_45)","line":861,"loc":{"start":{"line":861,"column":11},"end":{"line":861,"column":22}}},"46":{"name":"(anonymous_46)","line":871,"loc":{"start":{"line":871,"column":16},"end":{"line":871,"column":27}}},"47":{"name":"(anonymous_47)","line":894,"loc":{"start":{"line":894,"column":15},"end":{"line":894,"column":31}}},"48":{"name":"(anonymous_48)","line":906,"loc":{"start":{"line":906,"column":32},"end":{"line":906,"column":47}}},"49":{"name":"(anonymous_49)","line":935,"loc":{"start":{"line":935,"column":23},"end":{"line":935,"column":42}}},"50":{"name":"(anonymous_50)","line":939,"loc":{"start":{"line":939,"column":16},"end":{"line":939,"column":48}}},"51":{"name":"(anonymous_51)","line":947,"loc":{"start":{"line":947,"column":21},"end":{"line":947,"column":49}}},"52":{"name":"(anonymous_52)","line":949,"loc":{"start":{"line":949,"column":35},"end":{"line":949,"column":46}}},"53":{"name":"(anonymous_53)","line":953,"loc":{"start":{"line":953,"column":38},"end":{"line":953,"column":53}}},"54":{"name":"(anonymous_54)","line":983,"loc":{"start":{"line":983,"column":24},"end":{"line":983,"column":54}}},"55":{"name":"(anonymous_55)","line":988,"loc":{"start":{"line":988,"column":27},"end":{"line":988,"column":39}}},"56":{"name":"(anonymous_56)","line":994,"loc":{"start":{"line":994,"column":24},"end":{"line":994,"column":39}}},"57":{"name":"(anonymous_57)","line":1007,"loc":{"start":{"line":1007,"column":13},"end":{"line":1007,"column":44}}},"58":{"name":"(anonymous_58)","line":1010,"loc":{"start":{"line":1010,"column":18},"end":{"line":1010,"column":33}}},"59":{"name":"(anonymous_59)","line":1027,"loc":{"start":{"line":1027,"column":10},"end":{"line":1027,"column":26}}},"60":{"name":"(anonymous_60)","line":1040,"loc":{"start":{"line":1040,"column":10},"end":{"line":1040,"column":32}}},"61":{"name":"(anonymous_61)","line":1042,"loc":{"start":{"line":1042,"column":34},"end":{"line":1042,"column":56}}},"62":{"name":"(anonymous_62)","line":1049,"loc":{"start":{"line":1049,"column":11},"end":{"line":1049,"column":33}}},"63":{"name":"(anonymous_63)","line":1052,"loc":{"start":{"line":1052,"column":34},"end":{"line":1052,"column":56}}},"64":{"name":"(anonymous_64)","line":1081,"loc":{"start":{"line":1081,"column":10},"end":{"line":1081,"column":32}}},"65":{"name":"(anonymous_65)","line":1083,"loc":{"start":{"line":1083,"column":41},"end":{"line":1083,"column":63}}},"66":{"name":"(anonymous_66)","line":1095,"loc":{"start":{"line":1095,"column":12},"end":{"line":1095,"column":23}}},"67":{"name":"(anonymous_67)","line":1106,"loc":{"start":{"line":1106,"column":13},"end":{"line":1106,"column":28}}},"68":{"name":"(anonymous_68)","line":1117,"loc":{"start":{"line":1117,"column":12},"end":{"line":1117,"column":31}}},"69":{"name":"(anonymous_69)","line":1131,"loc":{"start":{"line":1131,"column":13},"end":{"line":1131,"column":28}}},"70":{"name":"(anonymous_70)","line":1134,"loc":{"start":{"line":1134,"column":28},"end":{"line":1134,"column":46}}},"71":{"name":"(anonymous_71)","line":1149,"loc":{"start":{"line":1149,"column":9},"end":{"line":1149,"column":20}}},"72":{"name":"(anonymous_72)","line":1159,"loc":{"start":{"line":1159,"column":10},"end":{"line":1159,"column":21}}},"73":{"name":"(anonymous_73)","line":1163,"loc":{"start":{"line":1163,"column":16},"end":{"line":1163,"column":27}}},"74":{"name":"(anonymous_74)","line":1171,"loc":{"start":{"line":1171,"column":13},"end":{"line":1171,"column":24}}},"75":{"name":"(anonymous_75)","line":1195,"loc":{"start":{"line":1195,"column":10},"end":{"line":1195,"column":21}}},"76":{"name":"(anonymous_76)","line":1204,"loc":{"start":{"line":1204,"column":13},"end":{"line":1204,"column":24}}},"77":{"name":"(anonymous_77)","line":1208,"loc":{"start":{"line":1208,"column":14},"end":{"line":1208,"column":25}}},"78":{"name":"(anonymous_78)","line":1237,"loc":{"start":{"line":1237,"column":17},"end":{"line":1237,"column":28}}},"79":{"name":"(anonymous_79)","line":1295,"loc":{"start":{"line":1295,"column":25},"end":{"line":1295,"column":40}}},"80":{"name":"(anonymous_80)","line":1319,"loc":{"start":{"line":1319,"column":24},"end":{"line":1319,"column":39}}},"81":{"name":"(anonymous_81)","line":1344,"loc":{"start":{"line":1344,"column":8},"end":{"line":1344,"column":24}}},"82":{"name":"(anonymous_82)","line":1414,"loc":{"start":{"line":1414,"column":28},"end":{"line":1414,"column":59}}},"83":{"name":"(anonymous_83)","line":1415,"loc":{"start":{"line":1415,"column":33},"end":{"line":1415,"column":44}}},"84":{"name":"(anonymous_84)","line":1535,"loc":{"start":{"line":1535,"column":3},"end":{"line":1535,"column":20}}},"85":{"name":"(anonymous_85)","line":1536,"loc":{"start":{"line":1536,"column":31},"end":{"line":1536,"column":58}}},"86":{"name":"(anonymous_86)","line":1549,"loc":{"start":{"line":1549,"column":35},"end":{"line":1549,"column":50}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1666,"column":56}},"2":{"start":{"line":25,"column":0},"end":{"line":93,"column":6}},"3":{"start":{"line":40,"column":8},"end":{"line":42,"column":9}},"4":{"start":{"line":41,"column":12},"end":{"line":41,"column":36}},"5":{"start":{"line":44,"column":8},"end":{"line":49,"column":9}},"6":{"start":{"line":45,"column":12},"end":{"line":45,"column":44}},"7":{"start":{"line":46,"column":12},"end":{"line":48,"column":13}},"8":{"start":{"line":47,"column":16},"end":{"line":47,"column":28}},"9":{"start":{"line":51,"column":8},"end":{"line":51,"column":68}},"10":{"start":{"line":53,"column":8},"end":{"line":55,"column":9}},"11":{"start":{"line":54,"column":12},"end":{"line":54,"column":29}},"12":{"start":{"line":57,"column":8},"end":{"line":57,"column":35}},"13":{"start":{"line":58,"column":8},"end":{"line":60,"column":9}},"14":{"start":{"line":59,"column":12},"end":{"line":59,"column":27}},"15":{"start":{"line":62,"column":8},"end":{"line":62,"column":24}},"16":{"start":{"line":70,"column":8},"end":{"line":70,"column":26}},"17":{"start":{"line":72,"column":8},"end":{"line":72,"column":32}},"18":{"start":{"line":74,"column":8},"end":{"line":76,"column":9}},"19":{"start":{"line":75,"column":12},"end":{"line":75,"column":32}},"20":{"start":{"line":81,"column":8},"end":{"line":81,"column":23}},"21":{"start":{"line":82,"column":8},"end":{"line":90,"column":9}},"22":{"start":{"line":83,"column":12},"end":{"line":89,"column":14}},"23":{"start":{"line":85,"column":16},"end":{"line":85,"column":46}},"24":{"start":{"line":88,"column":16},"end":{"line":88,"column":36}},"25":{"start":{"line":92,"column":8},"end":{"line":92,"column":19}},"26":{"start":{"line":96,"column":0},"end":{"line":96,"column":18}},"27":{"start":{"line":97,"column":0},"end":{"line":97,"column":23}},"28":{"start":{"line":99,"column":0},"end":{"line":111,"column":2}},"29":{"start":{"line":100,"column":4},"end":{"line":108,"column":5}},"30":{"start":{"line":101,"column":8},"end":{"line":107,"column":9}},"31":{"start":{"line":102,"column":12},"end":{"line":102,"column":32}},"32":{"start":{"line":103,"column":15},"end":{"line":107,"column":9}},"33":{"start":{"line":104,"column":12},"end":{"line":104,"column":32}},"34":{"start":{"line":106,"column":12},"end":{"line":106,"column":54}},"35":{"start":{"line":110,"column":4},"end":{"line":110,"column":24}},"36":{"start":{"line":119,"column":0},"end":{"line":119,"column":21}},"37":{"start":{"line":124,"column":0},"end":{"line":124,"column":36}},"38":{"start":{"line":126,"column":0},"end":{"line":126,"column":34}},"39":{"start":{"line":127,"column":0},"end":{"line":127,"column":35}},"40":{"start":{"line":138,"column":0},"end":{"line":140,"column":1}},"41":{"start":{"line":139,"column":4},"end":{"line":139,"column":27}},"42":{"start":{"line":151,"column":0},"end":{"line":156,"column":2}},"43":{"start":{"line":152,"column":4},"end":{"line":154,"column":5}},"44":{"start":{"line":153,"column":8},"end":{"line":153,"column":59}},"45":{"start":{"line":155,"column":4},"end":{"line":155,"column":16}},"46":{"start":{"line":169,"column":0},"end":{"line":186,"column":2}},"47":{"start":{"line":170,"column":4},"end":{"line":183,"column":5}},"48":{"start":{"line":171,"column":9},"end":{"line":178,"column":9}},"49":{"start":{"line":172,"column":12},"end":{"line":177,"column":13}},"50":{"start":{"line":173,"column":16},"end":{"line":173,"column":33}},"51":{"start":{"line":174,"column":19},"end":{"line":177,"column":13}},"52":{"start":{"line":176,"column":16},"end":{"line":176,"column":33}},"53":{"start":{"line":179,"column":11},"end":{"line":183,"column":5}},"54":{"start":{"line":180,"column":8},"end":{"line":180,"column":19}},"55":{"start":{"line":181,"column":11},"end":{"line":183,"column":5}},"56":{"start":{"line":182,"column":8},"end":{"line":182,"column":19}},"57":{"start":{"line":185,"column":4},"end":{"line":185,"column":15}},"58":{"start":{"line":199,"column":0},"end":{"line":226,"column":2}},"59":{"start":{"line":200,"column":4},"end":{"line":225,"column":5}},"60":{"start":{"line":201,"column":8},"end":{"line":223,"column":10}},"61":{"start":{"line":202,"column":12},"end":{"line":204,"column":20}},"62":{"start":{"line":206,"column":12},"end":{"line":208,"column":13}},"63":{"start":{"line":207,"column":16},"end":{"line":207,"column":40}},"64":{"start":{"line":210,"column":12},"end":{"line":212,"column":13}},"65":{"start":{"line":211,"column":16},"end":{"line":211,"column":40}},"66":{"start":{"line":213,"column":12},"end":{"line":213,"column":37}},"67":{"start":{"line":215,"column":12},"end":{"line":215,"column":50}},"68":{"start":{"line":217,"column":12},"end":{"line":219,"column":13}},"69":{"start":{"line":218,"column":16},"end":{"line":218,"column":49}},"70":{"start":{"line":221,"column":12},"end":{"line":221,"column":56}},"71":{"start":{"line":222,"column":12},"end":{"line":222,"column":23}},"72":{"start":{"line":238,"column":0},"end":{"line":247,"column":2}},"73":{"start":{"line":239,"column":4},"end":{"line":246,"column":5}},"74":{"start":{"line":240,"column":8},"end":{"line":240,"column":34}},"75":{"start":{"line":241,"column":8},"end":{"line":241,"column":52}},"76":{"start":{"line":243,"column":8},"end":{"line":245,"column":11}},"77":{"start":{"line":244,"column":12},"end":{"line":244,"column":41}},"78":{"start":{"line":280,"column":0},"end":{"line":320,"column":2}},"79":{"start":{"line":281,"column":4},"end":{"line":283,"column":12}},"80":{"start":{"line":285,"column":4},"end":{"line":317,"column":5}},"81":{"start":{"line":286,"column":8},"end":{"line":293,"column":9}},"82":{"start":{"line":287,"column":12},"end":{"line":287,"column":44}},"83":{"start":{"line":288,"column":12},"end":{"line":290,"column":13}},"84":{"start":{"line":289,"column":16},"end":{"line":289,"column":28}},"85":{"start":{"line":291,"column":15},"end":{"line":293,"column":9}},"86":{"start":{"line":292,"column":12},"end":{"line":292,"column":24}},"87":{"start":{"line":295,"column":8},"end":{"line":316,"column":9}},"88":{"start":{"line":296,"column":12},"end":{"line":301,"column":13}},"89":{"start":{"line":297,"column":16},"end":{"line":297,"column":89}},"90":{"start":{"line":298,"column":16},"end":{"line":298,"column":50}},"91":{"start":{"line":300,"column":16},"end":{"line":300,"column":79}},"92":{"start":{"line":302,"column":12},"end":{"line":302,"column":58}},"93":{"start":{"line":303,"column":12},"end":{"line":315,"column":13}},"94":{"start":{"line":304,"column":16},"end":{"line":304,"column":44}},"95":{"start":{"line":305,"column":16},"end":{"line":314,"column":17}},"96":{"start":{"line":306,"column":20},"end":{"line":313,"column":21}},"97":{"start":{"line":307,"column":24},"end":{"line":307,"column":68}},"98":{"start":{"line":309,"column":24},"end":{"line":311,"column":25}},"99":{"start":{"line":310,"column":28},"end":{"line":310,"column":53}},"100":{"start":{"line":312,"column":24},"end":{"line":312,"column":64}},"101":{"start":{"line":319,"column":4},"end":{"line":319,"column":20}},"102":{"start":{"line":331,"column":0},"end":{"line":345,"column":2}},"103":{"start":{"line":332,"column":4},"end":{"line":333,"column":16}},"104":{"start":{"line":335,"column":4},"end":{"line":342,"column":5}},"105":{"start":{"line":336,"column":8},"end":{"line":336,"column":23}},"106":{"start":{"line":337,"column":8},"end":{"line":337,"column":31}},"107":{"start":{"line":339,"column":8},"end":{"line":339,"column":43}},"108":{"start":{"line":340,"column":11},"end":{"line":342,"column":5}},"109":{"start":{"line":341,"column":8},"end":{"line":341,"column":25}},"110":{"start":{"line":344,"column":4},"end":{"line":344,"column":15}},"111":{"start":{"line":355,"column":0},"end":{"line":366,"column":2}},"112":{"start":{"line":356,"column":4},"end":{"line":357,"column":12}},"113":{"start":{"line":359,"column":4},"end":{"line":363,"column":5}},"114":{"start":{"line":360,"column":8},"end":{"line":360,"column":55}},"115":{"start":{"line":361,"column":11},"end":{"line":363,"column":5}},"116":{"start":{"line":362,"column":8},"end":{"line":362,"column":25}},"117":{"start":{"line":365,"column":4},"end":{"line":365,"column":15}},"118":{"start":{"line":368,"column":0},"end":{"line":874,"column":9}},"119":{"start":{"line":377,"column":8},"end":{"line":379,"column":33}},"120":{"start":{"line":381,"column":8},"end":{"line":396,"column":9}},"121":{"start":{"line":382,"column":12},"end":{"line":382,"column":36}},"122":{"start":{"line":383,"column":12},"end":{"line":383,"column":70}},"123":{"start":{"line":384,"column":12},"end":{"line":384,"column":91}},"124":{"start":{"line":385,"column":12},"end":{"line":385,"column":34}},"125":{"start":{"line":387,"column":12},"end":{"line":389,"column":13}},"126":{"start":{"line":388,"column":16},"end":{"line":388,"column":32}},"127":{"start":{"line":391,"column":12},"end":{"line":393,"column":13}},"128":{"start":{"line":392,"column":16},"end":{"line":392,"column":57}},"129":{"start":{"line":395,"column":12},"end":{"line":395,"column":35}},"130":{"start":{"line":397,"column":8},"end":{"line":397,"column":19}},"131":{"start":{"line":410,"column":8},"end":{"line":410,"column":16}},"132":{"start":{"line":412,"column":8},"end":{"line":416,"column":9}},"133":{"start":{"line":413,"column":12},"end":{"line":413,"column":38}},"134":{"start":{"line":415,"column":12},"end":{"line":415,"column":34}},"135":{"start":{"line":418,"column":8},"end":{"line":422,"column":9}},"136":{"start":{"line":419,"column":12},"end":{"line":419,"column":45}},"137":{"start":{"line":420,"column":15},"end":{"line":422,"column":9}},"138":{"start":{"line":421,"column":12},"end":{"line":421,"column":23}},"139":{"start":{"line":423,"column":8},"end":{"line":423,"column":19}},"140":{"start":{"line":434,"column":8},"end":{"line":435,"column":16}},"141":{"start":{"line":437,"column":8},"end":{"line":443,"column":9}},"142":{"start":{"line":438,"column":12},"end":{"line":438,"column":47}},"143":{"start":{"line":439,"column":15},"end":{"line":443,"column":9}},"144":{"start":{"line":440,"column":12},"end":{"line":440,"column":51}},"145":{"start":{"line":442,"column":12},"end":{"line":442,"column":63}},"146":{"start":{"line":445,"column":8},"end":{"line":445,"column":19}},"147":{"start":{"line":460,"column":8},"end":{"line":460,"column":44}},"148":{"start":{"line":462,"column":8},"end":{"line":472,"column":9}},"149":{"start":{"line":463,"column":12},"end":{"line":463,"column":49}},"150":{"start":{"line":465,"column":12},"end":{"line":471,"column":13}},"151":{"start":{"line":466,"column":16},"end":{"line":466,"column":56}},"152":{"start":{"line":467,"column":19},"end":{"line":471,"column":13}},"153":{"start":{"line":468,"column":16},"end":{"line":468,"column":51}},"154":{"start":{"line":470,"column":16},"end":{"line":470,"column":61}},"155":{"start":{"line":474,"column":8},"end":{"line":474,"column":20}},"156":{"start":{"line":484,"column":8},"end":{"line":490,"column":9}},"157":{"start":{"line":485,"column":12},"end":{"line":485,"column":36}},"158":{"start":{"line":487,"column":12},"end":{"line":489,"column":21}},"159":{"start":{"line":488,"column":16},"end":{"line":488,"column":31}},"160":{"start":{"line":492,"column":8},"end":{"line":492,"column":20}},"161":{"start":{"line":502,"column":8},"end":{"line":502,"column":21}},"162":{"start":{"line":503,"column":8},"end":{"line":509,"column":9}},"163":{"start":{"line":504,"column":12},"end":{"line":504,"column":34}},"164":{"start":{"line":506,"column":12},"end":{"line":508,"column":21}},"165":{"start":{"line":507,"column":16},"end":{"line":507,"column":37}},"166":{"start":{"line":511,"column":8},"end":{"line":511,"column":19}},"167":{"start":{"line":522,"column":8},"end":{"line":522,"column":30}},"168":{"start":{"line":524,"column":8},"end":{"line":526,"column":9}},"169":{"start":{"line":525,"column":12},"end":{"line":525,"column":36}},"170":{"start":{"line":527,"column":8},"end":{"line":527,"column":32}},"171":{"start":{"line":538,"column":8},"end":{"line":538,"column":30}},"172":{"start":{"line":540,"column":8},"end":{"line":545,"column":9}},"173":{"start":{"line":541,"column":12},"end":{"line":541,"column":66}},"174":{"start":{"line":542,"column":12},"end":{"line":544,"column":13}},"175":{"start":{"line":543,"column":16},"end":{"line":543,"column":65}},"176":{"start":{"line":547,"column":8},"end":{"line":547,"column":21}},"177":{"start":{"line":551,"column":8},"end":{"line":552,"column":55}},"178":{"start":{"line":553,"column":8},"end":{"line":557,"column":9}},"179":{"start":{"line":554,"column":12},"end":{"line":554,"column":29}},"180":{"start":{"line":556,"column":12},"end":{"line":556,"column":23}},"181":{"start":{"line":558,"column":8},"end":{"line":558,"column":19}},"182":{"start":{"line":576,"column":8},"end":{"line":579,"column":9}},"183":{"start":{"line":578,"column":12},"end":{"line":578,"column":30}},"184":{"start":{"line":581,"column":8},"end":{"line":581,"column":89}},"185":{"start":{"line":593,"column":8},"end":{"line":596,"column":9}},"186":{"start":{"line":595,"column":12},"end":{"line":595,"column":30}},"187":{"start":{"line":597,"column":8},"end":{"line":597,"column":90}},"188":{"start":{"line":611,"column":8},"end":{"line":611,"column":91}},"189":{"start":{"line":625,"column":8},"end":{"line":625,"column":87}},"190":{"start":{"line":637,"column":8},"end":{"line":637,"column":62}},"191":{"start":{"line":651,"column":8},"end":{"line":651,"column":67}},"192":{"start":{"line":662,"column":8},"end":{"line":662,"column":21}},"193":{"start":{"line":664,"column":8},"end":{"line":668,"column":9}},"194":{"start":{"line":665,"column":12},"end":{"line":665,"column":69}},"195":{"start":{"line":666,"column":12},"end":{"line":666,"column":39}},"196":{"start":{"line":667,"column":12},"end":{"line":667,"column":45}},"197":{"start":{"line":670,"column":8},"end":{"line":670,"column":37}},"198":{"start":{"line":682,"column":8},"end":{"line":682,"column":53}},"199":{"start":{"line":695,"column":8},"end":{"line":695,"column":30}},"200":{"start":{"line":697,"column":8},"end":{"line":699,"column":9}},"201":{"start":{"line":698,"column":12},"end":{"line":698,"column":46}},"202":{"start":{"line":701,"column":8},"end":{"line":703,"column":9}},"203":{"start":{"line":702,"column":12},"end":{"line":702,"column":27}},"204":{"start":{"line":705,"column":8},"end":{"line":705,"column":20}},"205":{"start":{"line":718,"column":8},"end":{"line":718,"column":30}},"206":{"start":{"line":719,"column":8},"end":{"line":721,"column":9}},"207":{"start":{"line":720,"column":12},"end":{"line":720,"column":45}},"208":{"start":{"line":722,"column":8},"end":{"line":722,"column":71}},"209":{"start":{"line":723,"column":8},"end":{"line":723,"column":20}},"210":{"start":{"line":734,"column":8},"end":{"line":736,"column":9}},"211":{"start":{"line":735,"column":12},"end":{"line":735,"column":38}},"212":{"start":{"line":738,"column":8},"end":{"line":738,"column":99}},"213":{"start":{"line":751,"column":8},"end":{"line":752,"column":21}},"214":{"start":{"line":754,"column":8},"end":{"line":754,"column":21}},"215":{"start":{"line":756,"column":8},"end":{"line":758,"column":9}},"216":{"start":{"line":757,"column":12},"end":{"line":757,"column":26}},"217":{"start":{"line":760,"column":8},"end":{"line":760,"column":25}},"218":{"start":{"line":762,"column":8},"end":{"line":775,"column":9}},"219":{"start":{"line":763,"column":12},"end":{"line":774,"column":15}},"220":{"start":{"line":764,"column":16},"end":{"line":768,"column":17}},"221":{"start":{"line":765,"column":20},"end":{"line":765,"column":60}},"222":{"start":{"line":767,"column":20},"end":{"line":767,"column":83}},"223":{"start":{"line":769,"column":16},"end":{"line":773,"column":17}},"224":{"start":{"line":770,"column":19},"end":{"line":770,"column":38}},"225":{"start":{"line":772,"column":20},"end":{"line":772,"column":47}},"226":{"start":{"line":777,"column":8},"end":{"line":779,"column":9}},"227":{"start":{"line":778,"column":12},"end":{"line":778,"column":54}},"228":{"start":{"line":781,"column":8},"end":{"line":781,"column":26}},"229":{"start":{"line":782,"column":8},"end":{"line":782,"column":32}},"230":{"start":{"line":784,"column":8},"end":{"line":786,"column":9}},"231":{"start":{"line":785,"column":12},"end":{"line":785,"column":48}},"232":{"start":{"line":800,"column":8},"end":{"line":801,"column":16}},"233":{"start":{"line":803,"column":8},"end":{"line":805,"column":9}},"234":{"start":{"line":804,"column":12},"end":{"line":804,"column":24}},"235":{"start":{"line":807,"column":8},"end":{"line":809,"column":9}},"236":{"start":{"line":808,"column":12},"end":{"line":808,"column":24}},"237":{"start":{"line":811,"column":8},"end":{"line":811,"column":42}},"238":{"start":{"line":812,"column":8},"end":{"line":812,"column":42}},"239":{"start":{"line":824,"column":12},"end":{"line":824,"column":62}},"240":{"start":{"line":827,"column":12},"end":{"line":827,"column":53}},"241":{"start":{"line":828,"column":12},"end":{"line":830,"column":52}},"242":{"start":{"line":832,"column":12},"end":{"line":839,"column":13}},"243":{"start":{"line":833,"column":16},"end":{"line":833,"column":53}},"244":{"start":{"line":834,"column":19},"end":{"line":839,"column":13}},"245":{"start":{"line":835,"column":16},"end":{"line":835,"column":53}},"246":{"start":{"line":837,"column":16},"end":{"line":837,"column":62}},"247":{"start":{"line":838,"column":16},"end":{"line":838,"column":57}},"248":{"start":{"line":840,"column":12},"end":{"line":840,"column":24}},"249":{"start":{"line":845,"column":8},"end":{"line":845,"column":30}},"250":{"start":{"line":846,"column":8},"end":{"line":849,"column":65}},"251":{"start":{"line":853,"column":8},"end":{"line":853,"column":45}},"252":{"start":{"line":862,"column":8},"end":{"line":862,"column":54}},"253":{"start":{"line":863,"column":8},"end":{"line":863,"column":20}},"254":{"start":{"line":872,"column":8},"end":{"line":872,"column":26}},"255":{"start":{"line":876,"column":0},"end":{"line":876,"column":16}},"256":{"start":{"line":877,"column":0},"end":{"line":877,"column":19}},"257":{"start":{"line":894,"column":0},"end":{"line":923,"column":2}},"258":{"start":{"line":895,"column":4},"end":{"line":895,"column":17}},"259":{"start":{"line":897,"column":4},"end":{"line":915,"column":5}},"260":{"start":{"line":898,"column":8},"end":{"line":914,"column":9}},"261":{"start":{"line":899,"column":12},"end":{"line":899,"column":32}},"262":{"start":{"line":900,"column":12},"end":{"line":900,"column":44}},"263":{"start":{"line":901,"column":15},"end":{"line":914,"column":9}},"264":{"start":{"line":902,"column":12},"end":{"line":902,"column":28}},"265":{"start":{"line":903,"column":15},"end":{"line":914,"column":9}},"266":{"start":{"line":904,"column":12},"end":{"line":904,"column":34}},"267":{"start":{"line":905,"column":15},"end":{"line":914,"column":9}},"268":{"start":{"line":906,"column":12},"end":{"line":910,"column":15}},"269":{"start":{"line":907,"column":16},"end":{"line":909,"column":17}},"270":{"start":{"line":908,"column":20},"end":{"line":908,"column":41}},"271":{"start":{"line":911,"column":12},"end":{"line":911,"column":24}},"272":{"start":{"line":913,"column":12},"end":{"line":913,"column":44}},"273":{"start":{"line":922,"column":4},"end":{"line":922,"column":30}},"274":{"start":{"line":925,"column":0},"end":{"line":925,"column":27}},"275":{"start":{"line":935,"column":0},"end":{"line":937,"column":2}},"276":{"start":{"line":936,"column":4},"end":{"line":936,"column":70}},"277":{"start":{"line":939,"column":0},"end":{"line":945,"column":2}},"278":{"start":{"line":940,"column":4},"end":{"line":940,"column":32}},"279":{"start":{"line":941,"column":4},"end":{"line":944,"column":5}},"280":{"start":{"line":942,"column":8},"end":{"line":942,"column":53}},"281":{"start":{"line":947,"column":0},"end":{"line":981,"column":2}},"282":{"start":{"line":948,"column":4},"end":{"line":980,"column":5}},"283":{"start":{"line":949,"column":8},"end":{"line":978,"column":10}},"284":{"start":{"line":950,"column":12},"end":{"line":951,"column":33}},"285":{"start":{"line":953,"column":12},"end":{"line":974,"column":15}},"286":{"start":{"line":954,"column":16},"end":{"line":957,"column":27}},"287":{"start":{"line":959,"column":16},"end":{"line":964,"column":17}},"288":{"start":{"line":960,"column":20},"end":{"line":960,"column":94}},"289":{"start":{"line":961,"column":20},"end":{"line":961,"column":54}},"290":{"start":{"line":963,"column":20},"end":{"line":963,"column":83}},"291":{"start":{"line":966,"column":16},"end":{"line":968,"column":17}},"292":{"start":{"line":967,"column":20},"end":{"line":967,"column":59}},"293":{"start":{"line":969,"column":16},"end":{"line":969,"column":42}},"294":{"start":{"line":970,"column":16},"end":{"line":970,"column":45}},"295":{"start":{"line":971,"column":16},"end":{"line":973,"column":17}},"296":{"start":{"line":972,"column":20},"end":{"line":972,"column":45}},"297":{"start":{"line":977,"column":12},"end":{"line":977,"column":43}},"298":{"start":{"line":983,"column":0},"end":{"line":992,"column":2}},"299":{"start":{"line":984,"column":4},"end":{"line":991,"column":5}},"300":{"start":{"line":985,"column":8},"end":{"line":985,"column":34}},"301":{"start":{"line":986,"column":8},"end":{"line":986,"column":45}},"302":{"start":{"line":988,"column":8},"end":{"line":990,"column":11}},"303":{"start":{"line":989,"column":12},"end":{"line":989,"column":43}},"304":{"start":{"line":994,"column":0},"end":{"line":1004,"column":2}},"305":{"start":{"line":995,"column":4},"end":{"line":995,"column":33}},"306":{"start":{"line":996,"column":4},"end":{"line":999,"column":5}},"307":{"start":{"line":997,"column":8},"end":{"line":997,"column":43}},"308":{"start":{"line":998,"column":8},"end":{"line":998,"column":33}},"309":{"start":{"line":1001,"column":4},"end":{"line":1001,"column":21}},"310":{"start":{"line":1002,"column":4},"end":{"line":1002,"column":27}},"311":{"start":{"line":1003,"column":4},"end":{"line":1003,"column":15}},"312":{"start":{"line":1006,"column":0},"end":{"line":1240,"column":9}},"313":{"start":{"line":1008,"column":8},"end":{"line":1008,"column":39}},"314":{"start":{"line":1010,"column":8},"end":{"line":1015,"column":11}},"315":{"start":{"line":1011,"column":12},"end":{"line":1011,"column":53}},"316":{"start":{"line":1012,"column":12},"end":{"line":1014,"column":13}},"317":{"start":{"line":1013,"column":16},"end":{"line":1013,"column":30}},"318":{"start":{"line":1017,"column":8},"end":{"line":1017,"column":19}},"319":{"start":{"line":1028,"column":8},"end":{"line":1028,"column":49}},"320":{"start":{"line":1041,"column":8},"end":{"line":1041,"column":28}},"321":{"start":{"line":1042,"column":8},"end":{"line":1045,"column":11}},"322":{"start":{"line":1043,"column":12},"end":{"line":1043,"column":31}},"323":{"start":{"line":1044,"column":12},"end":{"line":1044,"column":67}},"324":{"start":{"line":1046,"column":8},"end":{"line":1046,"column":24}},"325":{"start":{"line":1050,"column":8},"end":{"line":1050,"column":28}},"326":{"start":{"line":1052,"column":8},"end":{"line":1068,"column":11}},"327":{"start":{"line":1053,"column":12},"end":{"line":1054,"column":25}},"328":{"start":{"line":1056,"column":12},"end":{"line":1061,"column":13}},"329":{"start":{"line":1057,"column":16},"end":{"line":1057,"column":90}},"330":{"start":{"line":1058,"column":16},"end":{"line":1058,"column":50}},"331":{"start":{"line":1060,"column":16},"end":{"line":1060,"column":79}},"332":{"start":{"line":1063,"column":12},"end":{"line":1065,"column":13}},"333":{"start":{"line":1064,"column":16},"end":{"line":1064,"column":55}},"334":{"start":{"line":1067,"column":12},"end":{"line":1067,"column":75}},"335":{"start":{"line":1069,"column":8},"end":{"line":1069,"column":24}},"336":{"start":{"line":1082,"column":8},"end":{"line":1082,"column":28}},"337":{"start":{"line":1083,"column":8},"end":{"line":1087,"column":11}},"338":{"start":{"line":1084,"column":12},"end":{"line":1084,"column":31}},"339":{"start":{"line":1085,"column":12},"end":{"line":1085,"column":38}},"340":{"start":{"line":1086,"column":12},"end":{"line":1086,"column":59}},"341":{"start":{"line":1096,"column":8},"end":{"line":1096,"column":50}},"342":{"start":{"line":1107,"column":8},"end":{"line":1107,"column":69}},"343":{"start":{"line":1118,"column":8},"end":{"line":1118,"column":63}},"344":{"start":{"line":1132,"column":8},"end":{"line":1132,"column":19}},"345":{"start":{"line":1133,"column":8},"end":{"line":1133,"column":23}},"346":{"start":{"line":1134,"column":8},"end":{"line":1138,"column":11}},"347":{"start":{"line":1135,"column":12},"end":{"line":1137,"column":13}},"348":{"start":{"line":1136,"column":16},"end":{"line":1136,"column":33}},"349":{"start":{"line":1140,"column":8},"end":{"line":1140,"column":28}},"350":{"start":{"line":1150,"column":8},"end":{"line":1150,"column":34}},"351":{"start":{"line":1160,"column":8},"end":{"line":1160,"column":31}},"352":{"start":{"line":1172,"column":8},"end":{"line":1175,"column":35}},"353":{"start":{"line":1177,"column":8},"end":{"line":1185,"column":9}},"354":{"start":{"line":1178,"column":12},"end":{"line":1182,"column":13}},"355":{"start":{"line":1179,"column":16},"end":{"line":1181,"column":17}},"356":{"start":{"line":1180,"column":20},"end":{"line":1180,"column":50}},"357":{"start":{"line":1184,"column":12},"end":{"line":1184,"column":56}},"358":{"start":{"line":1187,"column":8},"end":{"line":1187,"column":20}},"359":{"start":{"line":1196,"column":8},"end":{"line":1196,"column":34}},"360":{"start":{"line":1205,"column":8},"end":{"line":1205,"column":38}},"361":{"start":{"line":1209,"column":8},"end":{"line":1212,"column":17}},"362":{"start":{"line":1214,"column":8},"end":{"line":1228,"column":9}},"363":{"start":{"line":1215,"column":12},"end":{"line":1215,"column":28}},"364":{"start":{"line":1216,"column":12},"end":{"line":1216,"column":35}},"365":{"start":{"line":1217,"column":12},"end":{"line":1219,"column":13}},"366":{"start":{"line":1218,"column":16},"end":{"line":1218,"column":37}},"367":{"start":{"line":1221,"column":12},"end":{"line":1223,"column":13}},"368":{"start":{"line":1222,"column":16},"end":{"line":1222,"column":62}},"369":{"start":{"line":1225,"column":12},"end":{"line":1227,"column":13}},"370":{"start":{"line":1226,"column":16},"end":{"line":1226,"column":57}},"371":{"start":{"line":1229,"column":8},"end":{"line":1229,"column":31}},"372":{"start":{"line":1238,"column":8},"end":{"line":1238,"column":27}},"373":{"start":{"line":1242,"column":0},"end":{"line":1286,"column":3}},"374":{"start":{"line":1295,"column":0},"end":{"line":1340,"column":2}},"375":{"start":{"line":1296,"column":4},"end":{"line":1302,"column":12}},"376":{"start":{"line":1304,"column":4},"end":{"line":1317,"column":5}},"377":{"start":{"line":1305,"column":8},"end":{"line":1310,"column":9}},"378":{"start":{"line":1306,"column":12},"end":{"line":1306,"column":102}},"379":{"start":{"line":1307,"column":12},"end":{"line":1307,"column":46}},"380":{"start":{"line":1309,"column":12},"end":{"line":1309,"column":83}},"381":{"start":{"line":1311,"column":8},"end":{"line":1311,"column":49}},"382":{"start":{"line":1313,"column":8},"end":{"line":1313,"column":34}},"383":{"start":{"line":1314,"column":8},"end":{"line":1316,"column":9}},"384":{"start":{"line":1315,"column":12},"end":{"line":1315,"column":30}},"385":{"start":{"line":1319,"column":4},"end":{"line":1337,"column":7}},"386":{"start":{"line":1320,"column":8},"end":{"line":1325,"column":9}},"387":{"start":{"line":1321,"column":12},"end":{"line":1321,"column":86}},"388":{"start":{"line":1322,"column":12},"end":{"line":1322,"column":46}},"389":{"start":{"line":1324,"column":12},"end":{"line":1324,"column":75}},"390":{"start":{"line":1327,"column":8},"end":{"line":1329,"column":9}},"391":{"start":{"line":1328,"column":12},"end":{"line":1328,"column":37}},"392":{"start":{"line":1331,"column":8},"end":{"line":1331,"column":34}},"393":{"start":{"line":1332,"column":8},"end":{"line":1334,"column":9}},"394":{"start":{"line":1333,"column":12},"end":{"line":1333,"column":49}},"395":{"start":{"line":1336,"column":8},"end":{"line":1336,"column":22}},"396":{"start":{"line":1339,"column":4},"end":{"line":1339,"column":43}},"397":{"start":{"line":1342,"column":0},"end":{"line":1342,"column":22}},"398":{"start":{"line":1344,"column":0},"end":{"line":1346,"column":2}},"399":{"start":{"line":1345,"column":4},"end":{"line":1345,"column":31}},"400":{"start":{"line":1348,"column":0},"end":{"line":1348,"column":19}},"401":{"start":{"line":1354,"column":0},"end":{"line":1411,"column":6}},"402":{"start":{"line":1414,"column":0},"end":{"line":1435,"column":3}},"403":{"start":{"line":1415,"column":4},"end":{"line":1434,"column":6}},"404":{"start":{"line":1416,"column":8},"end":{"line":1419,"column":16}},"405":{"start":{"line":1421,"column":8},"end":{"line":1423,"column":9}},"406":{"start":{"line":1422,"column":12},"end":{"line":1422,"column":54}},"407":{"start":{"line":1425,"column":8},"end":{"line":1425,"column":56}},"408":{"start":{"line":1427,"column":8},"end":{"line":1431,"column":9}},"409":{"start":{"line":1428,"column":12},"end":{"line":1428,"column":29}},"410":{"start":{"line":1430,"column":12},"end":{"line":1430,"column":39}},"411":{"start":{"line":1433,"column":8},"end":{"line":1433,"column":19}},"412":{"start":{"line":1441,"column":0},"end":{"line":1540,"column":3}},"413":{"start":{"line":1536,"column":4},"end":{"line":1539,"column":6}},"414":{"start":{"line":1537,"column":8},"end":{"line":1537,"column":56}},"415":{"start":{"line":1538,"column":8},"end":{"line":1538,"column":19}},"416":{"start":{"line":1549,"column":0},"end":{"line":1556,"column":2}},"417":{"start":{"line":1550,"column":4},"end":{"line":1550,"column":26}},"418":{"start":{"line":1551,"column":4},"end":{"line":1553,"column":5}},"419":{"start":{"line":1552,"column":8},"end":{"line":1552,"column":38}},"420":{"start":{"line":1555,"column":4},"end":{"line":1555,"column":16}},"421":{"start":{"line":1558,"column":0},"end":{"line":1608,"column":3}},"422":{"start":{"line":1610,"column":0},"end":{"line":1663,"column":3}}},"branchMap":{"1":{"line":33,"type":"binary-expr","locations":[{"start":{"line":33,"column":23},"end":{"line":33,"column":34}},{"start":{"line":33,"column":38},"end":{"line":33,"column":50}}]},"2":{"line":40,"type":"if","locations":[{"start":{"line":40,"column":8},"end":{"line":40,"column":8}},{"start":{"line":40,"column":8},"end":{"line":40,"column":8}}]},"3":{"line":44,"type":"if","locations":[{"start":{"line":44,"column":8},"end":{"line":44,"column":8}},{"start":{"line":44,"column":8},"end":{"line":44,"column":8}}]},"4":{"line":46,"type":"if","locations":[{"start":{"line":46,"column":12},"end":{"line":46,"column":12}},{"start":{"line":46,"column":12},"end":{"line":46,"column":12}}]},"5":{"line":51,"type":"cond-expr","locations":[{"start":{"line":51,"column":42},"end":{"line":51,"column":55}},{"start":{"line":51,"column":58},"end":{"line":51,"column":67}}]},"6":{"line":53,"type":"if","locations":[{"start":{"line":53,"column":8},"end":{"line":53,"column":8}},{"start":{"line":53,"column":8},"end":{"line":53,"column":8}}]},"7":{"line":53,"type":"binary-expr","locations":[{"start":{"line":53,"column":12},"end":{"line":53,"column":28}},{"start":{"line":53,"column":32},"end":{"line":53,"column":35}},{"start":{"line":53,"column":39},"end":{"line":53,"column":61}},{"start":{"line":53,"column":65},"end":{"line":53,"column":102}}]},"8":{"line":57,"type":"binary-expr","locations":[{"start":{"line":57,"column":14},"end":{"line":57,"column":17}},{"start":{"line":57,"column":21},"end":{"line":57,"column":34}}]},"9":{"line":58,"type":"if","locations":[{"start":{"line":58,"column":8},"end":{"line":58,"column":8}},{"start":{"line":58,"column":8},"end":{"line":58,"column":8}}]},"10":{"line":74,"type":"if","locations":[{"start":{"line":74,"column":8},"end":{"line":74,"column":8}},{"start":{"line":74,"column":8},"end":{"line":74,"column":8}}]},"11":{"line":82,"type":"if","locations":[{"start":{"line":82,"column":8},"end":{"line":82,"column":8}},{"start":{"line":82,"column":8},"end":{"line":82,"column":8}}]},"12":{"line":83,"type":"cond-expr","locations":[{"start":{"line":84,"column":12},"end":{"line":86,"column":13}},{"start":{"line":87,"column":12},"end":{"line":89,"column":13}}]},"13":{"line":100,"type":"if","locations":[{"start":{"line":100,"column":4},"end":{"line":100,"column":4}},{"start":{"line":100,"column":4},"end":{"line":100,"column":4}}]},"14":{"line":101,"type":"if","locations":[{"start":{"line":101,"column":8},"end":{"line":101,"column":8}},{"start":{"line":101,"column":8},"end":{"line":101,"column":8}}]},"15":{"line":103,"type":"if","locations":[{"start":{"line":103,"column":15},"end":{"line":103,"column":15}},{"start":{"line":103,"column":15},"end":{"line":103,"column":15}}]},"16":{"line":110,"type":"binary-expr","locations":[{"start":{"line":110,"column":11},"end":{"line":110,"column":15}},{"start":{"line":110,"column":19},"end":{"line":110,"column":23}}]},"17":{"line":138,"type":"if","locations":[{"start":{"line":138,"column":0},"end":{"line":138,"column":0}},{"start":{"line":138,"column":0},"end":{"line":138,"column":0}}]},"18":{"line":152,"type":"if","locations":[{"start":{"line":152,"column":4},"end":{"line":152,"column":4}},{"start":{"line":152,"column":4},"end":{"line":152,"column":4}}]},"19":{"line":153,"type":"cond-expr","locations":[{"start":{"line":153,"column":33},"end":{"line":153,"column":37}},{"start":{"line":153,"column":40},"end":{"line":153,"column":58}}]},"20":{"line":153,"type":"binary-expr","locations":[{"start":{"line":153,"column":40},"end":{"line":153,"column":50}},{"start":{"line":153,"column":54},"end":{"line":153,"column":58}}]},"21":{"line":170,"type":"if","locations":[{"start":{"line":170,"column":4},"end":{"line":170,"column":4}},{"start":{"line":170,"column":4},"end":{"line":170,"column":4}}]},"22":{"line":171,"type":"if","locations":[{"start":{"line":171,"column":9},"end":{"line":171,"column":9}},{"start":{"line":171,"column":9},"end":{"line":171,"column":9}}]},"23":{"line":171,"type":"binary-expr","locations":[{"start":{"line":171,"column":13},"end":{"line":171,"column":35}},{"start":{"line":171,"column":39},"end":{"line":171,"column":63}}]},"24":{"line":172,"type":"if","locations":[{"start":{"line":172,"column":12},"end":{"line":172,"column":12}},{"start":{"line":172,"column":12},"end":{"line":172,"column":12}}]},"25":{"line":172,"type":"binary-expr","locations":[{"start":{"line":172,"column":16},"end":{"line":172,"column":32}},{"start":{"line":172,"column":36},"end":{"line":172,"column":55}}]},"26":{"line":174,"type":"if","locations":[{"start":{"line":174,"column":19},"end":{"line":174,"column":19}},{"start":{"line":174,"column":19},"end":{"line":174,"column":19}}]},"27":{"line":174,"type":"binary-expr","locations":[{"start":{"line":174,"column":24},"end":{"line":174,"column":32}},{"start":{"line":174,"column":36},"end":{"line":174,"column":47}},{"start":{"line":175,"column":21},"end":{"line":175,"column":27}},{"start":{"line":175,"column":31},"end":{"line":175,"column":48}}]},"28":{"line":179,"type":"if","locations":[{"start":{"line":179,"column":11},"end":{"line":179,"column":11}},{"start":{"line":179,"column":11},"end":{"line":179,"column":11}}]},"29":{"line":181,"type":"if","locations":[{"start":{"line":181,"column":11},"end":{"line":181,"column":11}},{"start":{"line":181,"column":11},"end":{"line":181,"column":11}}]},"30":{"line":200,"type":"if","locations":[{"start":{"line":200,"column":4},"end":{"line":200,"column":4}},{"start":{"line":200,"column":4},"end":{"line":200,"column":4}}]},"31":{"line":200,"type":"binary-expr","locations":[{"start":{"line":200,"column":8},"end":{"line":200,"column":12}},{"start":{"line":200,"column":16},"end":{"line":200,"column":18}},{"start":{"line":200,"column":22},"end":{"line":200,"column":45}}]},"32":{"line":206,"type":"if","locations":[{"start":{"line":206,"column":12},"end":{"line":206,"column":12}},{"start":{"line":206,"column":12},"end":{"line":206,"column":12}}]},"33":{"line":206,"type":"binary-expr","locations":[{"start":{"line":206,"column":16},"end":{"line":206,"column":23}},{"start":{"line":206,"column":27},"end":{"line":206,"column":40}}]},"34":{"line":210,"type":"if","locations":[{"start":{"line":210,"column":12},"end":{"line":210,"column":12}},{"start":{"line":210,"column":12},"end":{"line":210,"column":12}}]},"35":{"line":210,"type":"binary-expr","locations":[{"start":{"line":210,"column":16},"end":{"line":210,"column":23}},{"start":{"line":210,"column":27},"end":{"line":210,"column":40}}]},"36":{"line":215,"type":"binary-expr","locations":[{"start":{"line":215,"column":27},"end":{"line":215,"column":34}},{"start":{"line":215,"column":38},"end":{"line":215,"column":42}}]},"37":{"line":217,"type":"if","locations":[{"start":{"line":217,"column":12},"end":{"line":217,"column":12}},{"start":{"line":217,"column":12},"end":{"line":217,"column":12}}]},"38":{"line":221,"type":"binary-expr","locations":[{"start":{"line":221,"column":13},"end":{"line":221,"column":38}},{"start":{"line":221,"column":44},"end":{"line":221,"column":54}}]},"39":{"line":239,"type":"if","locations":[{"start":{"line":239,"column":4},"end":{"line":239,"column":4}},{"start":{"line":239,"column":4},"end":{"line":239,"column":4}}]},"40":{"line":240,"type":"binary-expr","locations":[{"start":{"line":240,"column":18},"end":{"line":240,"column":25}},{"start":{"line":240,"column":29},"end":{"line":240,"column":33}}]},"41":{"line":285,"type":"if","locations":[{"start":{"line":285,"column":4},"end":{"line":285,"column":4}},{"start":{"line":285,"column":4},"end":{"line":285,"column":4}}]},"42":{"line":286,"type":"if","locations":[{"start":{"line":286,"column":8},"end":{"line":286,"column":8}},{"start":{"line":286,"column":8},"end":{"line":286,"column":8}}]},"43":{"line":288,"type":"if","locations":[{"start":{"line":288,"column":12},"end":{"line":288,"column":12}},{"start":{"line":288,"column":12},"end":{"line":288,"column":12}}]},"44":{"line":291,"type":"if","locations":[{"start":{"line":291,"column":15},"end":{"line":291,"column":15}},{"start":{"line":291,"column":15},"end":{"line":291,"column":15}}]},"45":{"line":295,"type":"if","locations":[{"start":{"line":295,"column":8},"end":{"line":295,"column":8}},{"start":{"line":295,"column":8},"end":{"line":295,"column":8}}]},"46":{"line":295,"type":"binary-expr","locations":[{"start":{"line":295,"column":12},"end":{"line":295,"column":25}},{"start":{"line":295,"column":29},"end":{"line":295,"column":49}}]},"47":{"line":296,"type":"if","locations":[{"start":{"line":296,"column":12},"end":{"line":296,"column":12}},{"start":{"line":296,"column":12},"end":{"line":296,"column":12}}]},"48":{"line":297,"type":"cond-expr","locations":[{"start":{"line":297,"column":63},"end":{"line":297,"column":76}},{"start":{"line":297,"column":79},"end":{"line":297,"column":88}}]},"49":{"line":297,"type":"binary-expr","locations":[{"start":{"line":297,"column":23},"end":{"line":297,"column":36}},{"start":{"line":297,"column":40},"end":{"line":297,"column":59}}]},"50":{"line":300,"type":"binary-expr","locations":[{"start":{"line":300,"column":27},"end":{"line":300,"column":46}},{"start":{"line":300,"column":50},"end":{"line":300,"column":78}}]},"51":{"line":302,"type":"cond-expr","locations":[{"start":{"line":302,"column":36},"end":{"line":302,"column":50}},{"start":{"line":302,"column":53},"end":{"line":302,"column":57}}]},"52":{"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}}]},"53":{"line":303,"type":"binary-expr","locations":[{"start":{"line":303,"column":16},"end":{"line":303,"column":25}},{"start":{"line":303,"column":30},"end":{"line":303,"column":40}},{"start":{"line":303,"column":44},"end":{"line":303,"column":63}}]},"54":{"line":305,"type":"if","locations":[{"start":{"line":305,"column":16},"end":{"line":305,"column":16}},{"start":{"line":305,"column":16},"end":{"line":305,"column":16}}]},"55":{"line":306,"type":"if","locations":[{"start":{"line":306,"column":20},"end":{"line":306,"column":20}},{"start":{"line":306,"column":20},"end":{"line":306,"column":20}}]},"56":{"line":309,"type":"if","locations":[{"start":{"line":309,"column":24},"end":{"line":309,"column":24}},{"start":{"line":309,"column":24},"end":{"line":309,"column":24}}]},"57":{"line":335,"type":"if","locations":[{"start":{"line":335,"column":4},"end":{"line":335,"column":4}},{"start":{"line":335,"column":4},"end":{"line":335,"column":4}}]},"58":{"line":340,"type":"if","locations":[{"start":{"line":340,"column":11},"end":{"line":340,"column":11}},{"start":{"line":340,"column":11},"end":{"line":340,"column":11}}]},"59":{"line":359,"type":"if","locations":[{"start":{"line":359,"column":4},"end":{"line":359,"column":4}},{"start":{"line":359,"column":4},"end":{"line":359,"column":4}}]},"60":{"line":359,"type":"binary-expr","locations":[{"start":{"line":359,"column":8},"end":{"line":359,"column":20}},{"start":{"line":359,"column":24},"end":{"line":359,"column":46}}]},"61":{"line":361,"type":"if","locations":[{"start":{"line":361,"column":11},"end":{"line":361,"column":11}},{"start":{"line":361,"column":11},"end":{"line":361,"column":11}}]},"62":{"line":381,"type":"if","locations":[{"start":{"line":381,"column":8},"end":{"line":381,"column":8}},{"start":{"line":381,"column":8},"end":{"line":381,"column":8}}]},"63":{"line":383,"type":"cond-expr","locations":[{"start":{"line":383,"column":39},"end":{"line":383,"column":62}},{"start":{"line":383,"column":65},"end":{"line":383,"column":69}}]},"64":{"line":383,"type":"binary-expr","locations":[{"start":{"line":383,"column":18},"end":{"line":383,"column":23}},{"start":{"line":383,"column":27},"end":{"line":383,"column":35}}]},"65":{"line":384,"type":"cond-expr","locations":[{"start":{"line":384,"column":53},"end":{"line":384,"column":83}},{"start":{"line":384,"column":86},"end":{"line":384,"column":90}}]},"66":{"line":384,"type":"binary-expr","locations":[{"start":{"line":384,"column":25},"end":{"line":384,"column":30}},{"start":{"line":384,"column":34},"end":{"line":384,"column":49}}]},"67":{"line":387,"type":"if","locations":[{"start":{"line":387,"column":12},"end":{"line":387,"column":12}},{"start":{"line":387,"column":12},"end":{"line":387,"column":12}}]},"68":{"line":391,"type":"if","locations":[{"start":{"line":391,"column":12},"end":{"line":391,"column":12}},{"start":{"line":391,"column":12},"end":{"line":391,"column":12}}]},"69":{"line":412,"type":"if","locations":[{"start":{"line":412,"column":8},"end":{"line":412,"column":8}},{"start":{"line":412,"column":8},"end":{"line":412,"column":8}}]},"70":{"line":418,"type":"if","locations":[{"start":{"line":418,"column":8},"end":{"line":418,"column":8}},{"start":{"line":418,"column":8},"end":{"line":418,"column":8}}]},"71":{"line":420,"type":"if","locations":[{"start":{"line":420,"column":15},"end":{"line":420,"column":15}},{"start":{"line":420,"column":15},"end":{"line":420,"column":15}}]},"72":{"line":437,"type":"if","locations":[{"start":{"line":437,"column":8},"end":{"line":437,"column":8}},{"start":{"line":437,"column":8},"end":{"line":437,"column":8}}]},"73":{"line":437,"type":"binary-expr","locations":[{"start":{"line":437,"column":12},"end":{"line":437,"column":22}},{"start":{"line":437,"column":26},"end":{"line":437,"column":43}}]},"74":{"line":439,"type":"if","locations":[{"start":{"line":439,"column":15},"end":{"line":439,"column":15}},{"start":{"line":439,"column":15},"end":{"line":439,"column":15}}]},"75":{"line":462,"type":"if","locations":[{"start":{"line":462,"column":8},"end":{"line":462,"column":8}},{"start":{"line":462,"column":8},"end":{"line":462,"column":8}}]},"76":{"line":465,"type":"if","locations":[{"start":{"line":465,"column":12},"end":{"line":465,"column":12}},{"start":{"line":465,"column":12},"end":{"line":465,"column":12}}]},"77":{"line":465,"type":"binary-expr","locations":[{"start":{"line":465,"column":16},"end":{"line":465,"column":26}},{"start":{"line":465,"column":30},"end":{"line":465,"column":47}}]},"78":{"line":467,"type":"if","locations":[{"start":{"line":467,"column":19},"end":{"line":467,"column":19}},{"start":{"line":467,"column":19},"end":{"line":467,"column":19}}]},"79":{"line":484,"type":"if","locations":[{"start":{"line":484,"column":8},"end":{"line":484,"column":8}},{"start":{"line":484,"column":8},"end":{"line":484,"column":8}}]},"80":{"line":503,"type":"if","locations":[{"start":{"line":503,"column":8},"end":{"line":503,"column":8}},{"start":{"line":503,"column":8},"end":{"line":503,"column":8}}]},"81":{"line":524,"type":"if","locations":[{"start":{"line":524,"column":8},"end":{"line":524,"column":8}},{"start":{"line":524,"column":8},"end":{"line":524,"column":8}}]},"82":{"line":524,"type":"binary-expr","locations":[{"start":{"line":524,"column":12},"end":{"line":524,"column":19}},{"start":{"line":524,"column":23},"end":{"line":524,"column":36}}]},"83":{"line":540,"type":"if","locations":[{"start":{"line":540,"column":8},"end":{"line":540,"column":8}},{"start":{"line":540,"column":8},"end":{"line":540,"column":8}}]},"84":{"line":541,"type":"cond-expr","locations":[{"start":{"line":541,"column":26},"end":{"line":541,"column":42}},{"start":{"line":541,"column":45},"end":{"line":541,"column":65}}]},"85":{"line":541,"type":"binary-expr","locations":[{"start":{"line":541,"column":26},"end":{"line":541,"column":35}},{"start":{"line":541,"column":39},"end":{"line":541,"column":42}}]},"86":{"line":542,"type":"if","locations":[{"start":{"line":542,"column":12},"end":{"line":542,"column":12}},{"start":{"line":542,"column":12},"end":{"line":542,"column":12}}]},"87":{"line":553,"type":"if","locations":[{"start":{"line":553,"column":8},"end":{"line":553,"column":8}},{"start":{"line":553,"column":8},"end":{"line":553,"column":8}}]},"88":{"line":553,"type":"binary-expr","locations":[{"start":{"line":553,"column":12},"end":{"line":553,"column":15}},{"start":{"line":553,"column":19},"end":{"line":553,"column":44}}]},"89":{"line":576,"type":"if","locations":[{"start":{"line":576,"column":8},"end":{"line":576,"column":8}},{"start":{"line":576,"column":8},"end":{"line":576,"column":8}}]},"90":{"line":576,"type":"binary-expr","locations":[{"start":{"line":576,"column":12},"end":{"line":576,"column":34}},{"start":{"line":577,"column":17},"end":{"line":577,"column":44}},{"start":{"line":577,"column":48},"end":{"line":577,"column":77}}]},"91":{"line":593,"type":"if","locations":[{"start":{"line":593,"column":8},"end":{"line":593,"column":8}},{"start":{"line":593,"column":8},"end":{"line":593,"column":8}}]},"92":{"line":593,"type":"binary-expr","locations":[{"start":{"line":593,"column":12},"end":{"line":593,"column":34}},{"start":{"line":594,"column":17},"end":{"line":594,"column":44}},{"start":{"line":594,"column":48},"end":{"line":594,"column":77}}]},"93":{"line":664,"type":"if","locations":[{"start":{"line":664,"column":8},"end":{"line":664,"column":8}},{"start":{"line":664,"column":8},"end":{"line":664,"column":8}}]},"94":{"line":670,"type":"binary-expr","locations":[{"start":{"line":670,"column":15},"end":{"line":670,"column":23}},{"start":{"line":670,"column":27},"end":{"line":670,"column":36}}]},"95":{"line":697,"type":"if","locations":[{"start":{"line":697,"column":8},"end":{"line":697,"column":8}},{"start":{"line":697,"column":8},"end":{"line":697,"column":8}}]},"96":{"line":697,"type":"binary-expr","locations":[{"start":{"line":697,"column":12},"end":{"line":697,"column":16}},{"start":{"line":697,"column":20},"end":{"line":697,"column":35}}]},"97":{"line":701,"type":"if","locations":[{"start":{"line":701,"column":8},"end":{"line":701,"column":8}},{"start":{"line":701,"column":8},"end":{"line":701,"column":8}}]},"98":{"line":719,"type":"if","locations":[{"start":{"line":719,"column":8},"end":{"line":719,"column":8}},{"start":{"line":719,"column":8},"end":{"line":719,"column":8}}]},"99":{"line":734,"type":"if","locations":[{"start":{"line":734,"column":8},"end":{"line":734,"column":8}},{"start":{"line":734,"column":8},"end":{"line":734,"column":8}}]},"100":{"line":751,"type":"cond-expr","locations":[{"start":{"line":751,"column":42},"end":{"line":751,"column":52}},{"start":{"line":751,"column":55},"end":{"line":751,"column":62}}]},"101":{"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}}]},"102":{"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}}]},"103":{"line":764,"type":"if","locations":[{"start":{"line":764,"column":16},"end":{"line":764,"column":16}},{"start":{"line":764,"column":16},"end":{"line":764,"column":16}}]},"104":{"line":767,"type":"binary-expr","locations":[{"start":{"line":767,"column":31},"end":{"line":767,"column":50}},{"start":{"line":767,"column":54},"end":{"line":767,"column":82}}]},"105":{"line":769,"type":"if","locations":[{"start":{"line":769,"column":16},"end":{"line":769,"column":16}},{"start":{"line":769,"column":16},"end":{"line":769,"column":16}}]},"106":{"line":777,"type":"if","locations":[{"start":{"line":777,"column":8},"end":{"line":777,"column":8}},{"start":{"line":777,"column":8},"end":{"line":777,"column":8}}]},"107":{"line":784,"type":"if","locations":[{"start":{"line":784,"column":8},"end":{"line":784,"column":8}},{"start":{"line":784,"column":8},"end":{"line":784,"column":8}}]},"108":{"line":803,"type":"if","locations":[{"start":{"line":803,"column":8},"end":{"line":803,"column":8}},{"start":{"line":803,"column":8},"end":{"line":803,"column":8}}]},"109":{"line":803,"type":"binary-expr","locations":[{"start":{"line":803,"column":12},"end":{"line":803,"column":13}},{"start":{"line":803,"column":17},"end":{"line":803,"column":24}}]},"110":{"line":807,"type":"if","locations":[{"start":{"line":807,"column":8},"end":{"line":807,"column":8}},{"start":{"line":807,"column":8},"end":{"line":807,"column":8}}]},"111":{"line":807,"type":"binary-expr","locations":[{"start":{"line":807,"column":12},"end":{"line":807,"column":13}},{"start":{"line":807,"column":17},"end":{"line":807,"column":24}}]},"112":{"line":822,"type":"cond-expr","locations":[{"start":{"line":823,"column":8},"end":{"line":825,"column":9}},{"start":{"line":826,"column":8},"end":{"line":841,"column":9}}]},"113":{"line":832,"type":"if","locations":[{"start":{"line":832,"column":12},"end":{"line":832,"column":12}},{"start":{"line":832,"column":12},"end":{"line":832,"column":12}}]},"114":{"line":834,"type":"if","locations":[{"start":{"line":834,"column":19},"end":{"line":834,"column":19}},{"start":{"line":834,"column":19},"end":{"line":834,"column":19}}]},"115":{"line":846,"type":"binary-expr","locations":[{"start":{"line":846,"column":18},"end":{"line":846,"column":22}},{"start":{"line":846,"column":26},"end":{"line":846,"column":40}},{"start":{"line":847,"column":16},"end":{"line":847,"column":48}},{"start":{"line":848,"column":13},"end":{"line":848,"column":46}},{"start":{"line":849,"column":16},"end":{"line":849,"column":62}}]},"116":{"line":897,"type":"if","locations":[{"start":{"line":897,"column":4},"end":{"line":897,"column":4}},{"start":{"line":897,"column":4},"end":{"line":897,"column":4}}]},"117":{"line":898,"type":"if","locations":[{"start":{"line":898,"column":8},"end":{"line":898,"column":8}},{"start":{"line":898,"column":8},"end":{"line":898,"column":8}}]},"118":{"line":901,"type":"if","locations":[{"start":{"line":901,"column":15},"end":{"line":901,"column":15}},{"start":{"line":901,"column":15},"end":{"line":901,"column":15}}]},"119":{"line":901,"type":"binary-expr","locations":[{"start":{"line":901,"column":19},"end":{"line":901,"column":33}},{"start":{"line":901,"column":37},"end":{"line":901,"column":58}}]},"120":{"line":903,"type":"if","locations":[{"start":{"line":903,"column":15},"end":{"line":903,"column":15}},{"start":{"line":903,"column":15},"end":{"line":903,"column":15}}]},"121":{"line":905,"type":"if","locations":[{"start":{"line":905,"column":15},"end":{"line":905,"column":15}},{"start":{"line":905,"column":15},"end":{"line":905,"column":15}}]},"122":{"line":905,"type":"binary-expr","locations":[{"start":{"line":905,"column":19},"end":{"line":905,"column":27}},{"start":{"line":905,"column":31},"end":{"line":905,"column":45}}]},"123":{"line":907,"type":"if","locations":[{"start":{"line":907,"column":16},"end":{"line":907,"column":16}},{"start":{"line":907,"column":16},"end":{"line":907,"column":16}}]},"124":{"line":922,"type":"binary-expr","locations":[{"start":{"line":922,"column":18},"end":{"line":922,"column":23}},{"start":{"line":922,"column":27},"end":{"line":922,"column":29}}]},"125":{"line":936,"type":"cond-expr","locations":[{"start":{"line":936,"column":43},"end":{"line":936,"column":58}},{"start":{"line":936,"column":61},"end":{"line":936,"column":69}}]},"126":{"line":936,"type":"binary-expr","locations":[{"start":{"line":936,"column":12},"end":{"line":936,"column":20}},{"start":{"line":936,"column":24},"end":{"line":936,"column":39}}]},"127":{"line":941,"type":"if","locations":[{"start":{"line":941,"column":4},"end":{"line":941,"column":4}},{"start":{"line":941,"column":4},"end":{"line":941,"column":4}}]},"128":{"line":941,"type":"binary-expr","locations":[{"start":{"line":941,"column":8},"end":{"line":941,"column":13}},{"start":{"line":941,"column":17},"end":{"line":941,"column":29}}]},"129":{"line":942,"type":"binary-expr","locations":[{"start":{"line":942,"column":32},"end":{"line":942,"column":39}},{"start":{"line":942,"column":43},"end":{"line":942,"column":51}}]},"130":{"line":948,"type":"if","locations":[{"start":{"line":948,"column":4},"end":{"line":948,"column":4}},{"start":{"line":948,"column":4},"end":{"line":948,"column":4}}]},"131":{"line":948,"type":"binary-expr","locations":[{"start":{"line":948,"column":8},"end":{"line":948,"column":12}},{"start":{"line":948,"column":16},"end":{"line":948,"column":18}}]},"132":{"line":959,"type":"if","locations":[{"start":{"line":959,"column":16},"end":{"line":959,"column":16}},{"start":{"line":959,"column":16},"end":{"line":959,"column":16}}]},"133":{"line":960,"type":"cond-expr","locations":[{"start":{"line":960,"column":68},"end":{"line":960,"column":81}},{"start":{"line":960,"column":84},"end":{"line":960,"column":93}}]},"134":{"line":960,"type":"binary-expr","locations":[{"start":{"line":960,"column":27},"end":{"line":960,"column":40}},{"start":{"line":960,"column":44},"end":{"line":960,"column":63}}]},"135":{"line":963,"type":"binary-expr","locations":[{"start":{"line":963,"column":31},"end":{"line":963,"column":50}},{"start":{"line":963,"column":54},"end":{"line":963,"column":82}}]},"136":{"line":966,"type":"if","locations":[{"start":{"line":966,"column":16},"end":{"line":966,"column":16}},{"start":{"line":966,"column":16},"end":{"line":966,"column":16}}]},"137":{"line":969,"type":"binary-expr","locations":[{"start":{"line":969,"column":22},"end":{"line":969,"column":29}},{"start":{"line":969,"column":33},"end":{"line":969,"column":41}}]},"138":{"line":971,"type":"if","locations":[{"start":{"line":971,"column":16},"end":{"line":971,"column":16}},{"start":{"line":971,"column":16},"end":{"line":971,"column":16}}]},"139":{"line":971,"type":"binary-expr","locations":[{"start":{"line":971,"column":20},"end":{"line":971,"column":40}},{"start":{"line":971,"column":44},"end":{"line":971,"column":63}}]},"140":{"line":977,"type":"cond-expr","locations":[{"start":{"line":977,"column":32},"end":{"line":977,"column":35}},{"start":{"line":977,"column":38},"end":{"line":977,"column":42}}]},"141":{"line":984,"type":"if","locations":[{"start":{"line":984,"column":4},"end":{"line":984,"column":4}},{"start":{"line":984,"column":4},"end":{"line":984,"column":4}}]},"142":{"line":985,"type":"binary-expr","locations":[{"start":{"line":985,"column":18},"end":{"line":985,"column":25}},{"start":{"line":985,"column":29},"end":{"line":985,"column":33}}]},"143":{"line":996,"type":"if","locations":[{"start":{"line":996,"column":4},"end":{"line":996,"column":4}},{"start":{"line":996,"column":4},"end":{"line":996,"column":4}}]},"144":{"line":1008,"type":"cond-expr","locations":[{"start":{"line":1008,"column":29},"end":{"line":1008,"column":31}},{"start":{"line":1008,"column":34},"end":{"line":1008,"column":38}}]},"145":{"line":1012,"type":"if","locations":[{"start":{"line":1012,"column":12},"end":{"line":1012,"column":12}},{"start":{"line":1012,"column":12},"end":{"line":1012,"column":12}}]},"146":{"line":1028,"type":"binary-expr","locations":[{"start":{"line":1028,"column":22},"end":{"line":1028,"column":33}},{"start":{"line":1028,"column":37},"end":{"line":1028,"column":39}}]},"147":{"line":1044,"type":"binary-expr","locations":[{"start":{"line":1044,"column":27},"end":{"line":1044,"column":34}},{"start":{"line":1044,"column":38},"end":{"line":1044,"column":42}}]},"148":{"line":1056,"type":"if","locations":[{"start":{"line":1056,"column":12},"end":{"line":1056,"column":12}},{"start":{"line":1056,"column":12},"end":{"line":1056,"column":12}}]},"149":{"line":1057,"type":"cond-expr","locations":[{"start":{"line":1057,"column":64},"end":{"line":1057,"column":77}},{"start":{"line":1057,"column":80},"end":{"line":1057,"column":89}}]},"150":{"line":1057,"type":"binary-expr","locations":[{"start":{"line":1057,"column":23},"end":{"line":1057,"column":36}},{"start":{"line":1057,"column":40},"end":{"line":1057,"column":59}}]},"151":{"line":1060,"type":"binary-expr","locations":[{"start":{"line":1060,"column":27},"end":{"line":1060,"column":46}},{"start":{"line":1060,"column":50},"end":{"line":1060,"column":78}}]},"152":{"line":1063,"type":"if","locations":[{"start":{"line":1063,"column":12},"end":{"line":1063,"column":12}},{"start":{"line":1063,"column":12},"end":{"line":1063,"column":12}}]},"153":{"line":1067,"type":"binary-expr","locations":[{"start":{"line":1067,"column":27},"end":{"line":1067,"column":34}},{"start":{"line":1067,"column":38},"end":{"line":1067,"column":46}}]},"154":{"line":1085,"type":"binary-expr","locations":[{"start":{"line":1085,"column":22},"end":{"line":1085,"column":29}},{"start":{"line":1085,"column":33},"end":{"line":1085,"column":37}}]},"155":{"line":1132,"type":"binary-expr","locations":[{"start":{"line":1132,"column":12},"end":{"line":1132,"column":13}},{"start":{"line":1132,"column":17},"end":{"line":1132,"column":18}}]},"156":{"line":1135,"type":"if","locations":[{"start":{"line":1135,"column":12},"end":{"line":1135,"column":12}},{"start":{"line":1135,"column":12},"end":{"line":1135,"column":12}}]},"157":{"line":1177,"type":"if","locations":[{"start":{"line":1177,"column":8},"end":{"line":1177,"column":8}},{"start":{"line":1177,"column":8},"end":{"line":1177,"column":8}}]},"158":{"line":1178,"type":"if","locations":[{"start":{"line":1178,"column":12},"end":{"line":1178,"column":12}},{"start":{"line":1178,"column":12},"end":{"line":1178,"column":12}}]},"159":{"line":1179,"type":"if","locations":[{"start":{"line":1179,"column":16},"end":{"line":1179,"column":16}},{"start":{"line":1179,"column":16},"end":{"line":1179,"column":16}}]},"160":{"line":1179,"type":"binary-expr","locations":[{"start":{"line":1179,"column":20},"end":{"line":1179,"column":25}},{"start":{"line":1179,"column":29},"end":{"line":1179,"column":37}},{"start":{"line":1179,"column":41},"end":{"line":1179,"column":63}}]},"161":{"line":1214,"type":"if","locations":[{"start":{"line":1214,"column":8},"end":{"line":1214,"column":8}},{"start":{"line":1214,"column":8},"end":{"line":1214,"column":8}}]},"162":{"line":1214,"type":"binary-expr","locations":[{"start":{"line":1214,"column":12},"end":{"line":1214,"column":17}},{"start":{"line":1214,"column":21},"end":{"line":1214,"column":29}}]},"163":{"line":1217,"type":"if","locations":[{"start":{"line":1217,"column":12},"end":{"line":1217,"column":12}},{"start":{"line":1217,"column":12},"end":{"line":1217,"column":12}}]},"164":{"line":1221,"type":"if","locations":[{"start":{"line":1221,"column":12},"end":{"line":1221,"column":12}},{"start":{"line":1221,"column":12},"end":{"line":1221,"column":12}}]},"165":{"line":1225,"type":"if","locations":[{"start":{"line":1225,"column":12},"end":{"line":1225,"column":12}},{"start":{"line":1225,"column":12},"end":{"line":1225,"column":12}}]},"166":{"line":1229,"type":"binary-expr","locations":[{"start":{"line":1229,"column":15},"end":{"line":1229,"column":18}},{"start":{"line":1229,"column":22},"end":{"line":1229,"column":30}}]},"167":{"line":1304,"type":"if","locations":[{"start":{"line":1304,"column":4},"end":{"line":1304,"column":4}},{"start":{"line":1304,"column":4},"end":{"line":1304,"column":4}}]},"168":{"line":1305,"type":"if","locations":[{"start":{"line":1305,"column":8},"end":{"line":1305,"column":8}},{"start":{"line":1305,"column":8},"end":{"line":1305,"column":8}}]},"169":{"line":1306,"type":"cond-expr","locations":[{"start":{"line":1306,"column":68},"end":{"line":1306,"column":85}},{"start":{"line":1306,"column":88},"end":{"line":1306,"column":101}}]},"170":{"line":1306,"type":"binary-expr","locations":[{"start":{"line":1306,"column":19},"end":{"line":1306,"column":36}},{"start":{"line":1306,"column":40},"end":{"line":1306,"column":63}}]},"171":{"line":1309,"type":"binary-expr","locations":[{"start":{"line":1309,"column":23},"end":{"line":1309,"column":46}},{"start":{"line":1309,"column":50},"end":{"line":1309,"column":82}}]},"172":{"line":1311,"type":"binary-expr","locations":[{"start":{"line":1311,"column":19},"end":{"line":1311,"column":27}},{"start":{"line":1311,"column":31},"end":{"line":1311,"column":48}}]},"173":{"line":1314,"type":"if","locations":[{"start":{"line":1314,"column":8},"end":{"line":1314,"column":8}},{"start":{"line":1314,"column":8},"end":{"line":1314,"column":8}}]},"174":{"line":1314,"type":"binary-expr","locations":[{"start":{"line":1314,"column":12},"end":{"line":1314,"column":15}},{"start":{"line":1314,"column":19},"end":{"line":1314,"column":31}}]},"175":{"line":1320,"type":"if","locations":[{"start":{"line":1320,"column":8},"end":{"line":1320,"column":8}},{"start":{"line":1320,"column":8},"end":{"line":1320,"column":8}}]},"176":{"line":1321,"type":"cond-expr","locations":[{"start":{"line":1321,"column":60},"end":{"line":1321,"column":73}},{"start":{"line":1321,"column":76},"end":{"line":1321,"column":85}}]},"177":{"line":1321,"type":"binary-expr","locations":[{"start":{"line":1321,"column":19},"end":{"line":1321,"column":32}},{"start":{"line":1321,"column":36},"end":{"line":1321,"column":55}}]},"178":{"line":1324,"type":"binary-expr","locations":[{"start":{"line":1324,"column":23},"end":{"line":1324,"column":42}},{"start":{"line":1324,"column":46},"end":{"line":1324,"column":74}}]},"179":{"line":1327,"type":"if","locations":[{"start":{"line":1327,"column":8},"end":{"line":1327,"column":8}},{"start":{"line":1327,"column":8},"end":{"line":1327,"column":8}}]},"180":{"line":1332,"type":"if","locations":[{"start":{"line":1332,"column":8},"end":{"line":1332,"column":8}},{"start":{"line":1332,"column":8},"end":{"line":1332,"column":8}}]},"181":{"line":1339,"type":"cond-expr","locations":[{"start":{"line":1339,"column":26},"end":{"line":1339,"column":36}},{"start":{"line":1339,"column":39},"end":{"line":1339,"column":42}}]},"182":{"line":1422,"type":"binary-expr","locations":[{"start":{"line":1422,"column":22},"end":{"line":1422,"column":31}},{"start":{"line":1422,"column":35},"end":{"line":1422,"column":45}},{"start":{"line":1422,"column":49},"end":{"line":1422,"column":52}}]},"183":{"line":1427,"type":"if","locations":[{"start":{"line":1427,"column":8},"end":{"line":1427,"column":8}},{"start":{"line":1427,"column":8},"end":{"line":1427,"column":8}}]},"184":{"line":1551,"type":"if","locations":[{"start":{"line":1551,"column":4},"end":{"line":1551,"column":4}},{"start":{"line":1551,"column":4},"end":{"line":1551,"column":4}}]}},"code":["(function () { YUI.add('node-core', function (Y, NAME) {","","/**"," * The Node Utility provides a DOM-like interface for interacting with DOM nodes."," * @module node"," * @main node"," * @submodule node-core"," */","","/**"," * The Node class provides a wrapper for manipulating DOM Nodes."," * Node properties can be accessed via the set/get methods."," * Use `Y.one()` to retrieve Node instances."," *"," * NOTE: Node properties are accessed using"," * the set and get methods."," *"," * @class Node"," * @constructor"," * @param {HTMLElement} node the DOM node to be mapped to the Node instance."," * @uses EventTarget"," */","","// \"globals\"","var DOT = '.',"," NODE_NAME = 'nodeName',"," NODE_TYPE = 'nodeType',"," OWNER_DOCUMENT = 'ownerDocument',"," TAG_NAME = 'tagName',"," UID = '_yuid',"," EMPTY_OBJ = {},",""," use_instance_map = 0 < Y.UA.ie && Y.UA.ie < 10, // define flag, in case other browsers need it, too",""," _slice = Array.prototype.slice,",""," Y_DOM = Y.DOM,",""," Y_Node = function(node) {"," if (!this.getDOMNode) { // support optional \"new\""," return new Y_Node(node);"," }",""," if (typeof node == 'string') {"," node = Y_Node._fromString(node);"," if (!node) {"," return null; // NOTE: return"," }"," }",""," var uid = (node.nodeType !== 9) ? node.uniqueID : node[UID];",""," if (use_instance_map && uid && Y_Node._instances[uid] && Y_Node._instances[uid]._node !== node) {"," node[UID] = null; // unset existing uid to prevent collision (via clone or hack)"," }",""," uid = uid || Y.stamp(node);"," if (!uid) { // stamp failed; likely IE non-HTMLElement"," uid = Y.guid();"," }",""," this[UID] = uid;",""," /**"," * The underlying DOM node bound to the Y.Node instance"," * @property _node"," * @type HTMLElement"," * @private"," */"," this._node = node;",""," this._stateProxy = node; // when augmented with Attribute",""," if (this._initPlugins) { // when augmented with Plugin.Host"," this._initPlugins();"," }"," },",""," // used with previous/next/ancestor tests"," _wrapFn = function(fn) {"," var ret = null;"," if (fn) {"," ret = (typeof fn == 'string') ?"," function(n) {"," return Y.Selector.test(n, fn);"," } :"," function(n) {"," return fn(Y.one(n));"," };"," }",""," return ret;"," };","// end \"globals\"","","Y_Node.ATTRS = {};","Y_Node.DOM_EVENTS = {};","","Y_Node._fromString = function(node) {"," if (node) {"," if (node.indexOf('doc') === 0) { // doc OR document"," node = Y.config.doc;"," } else if (node.indexOf('win') === 0) { // win OR window"," node = Y.config.win;"," } else {"," node = Y.Selector.query(node, null, true);"," }"," }",""," return node || null;","};","","/**"," * The name of the component"," * @static"," * @type String"," * @property NAME"," */","Y_Node.NAME = 'node';","","/*"," * The pattern used to identify ARIA attributes"," */","Y_Node.re_aria = /^(?:role$|aria-)/;","","Y_Node.SHOW_TRANSITION = 'fadeIn';","Y_Node.HIDE_TRANSITION = 'fadeOut';","","/**"," * A list of Node instances that have been created. Only defined in browsers"," * that already have broken GC, since this global map also breaks GC."," * @private"," * @type Object"," * @property _instances"," * @static"," *"," */","if (use_instance_map) {"," Y_Node._instances = {};","}","","/**"," * Retrieves the DOM node bound to a Node instance"," * @method getDOMNode"," * @static"," *"," * @param {Node|HTMLElement} node The Node instance or an HTMLElement"," * @return {HTMLElement} The DOM node bound to the Node instance. If a DOM node is passed"," * as the node argument, it is simply returned."," */","Y_Node.getDOMNode = function(node) {"," if (node) {"," return (node.nodeType) ? node : node._node || null;"," }"," return null;","};","","/**"," * Checks Node return values and wraps DOM Nodes as Y.Node instances"," * and DOM Collections / Arrays as Y.NodeList instances."," * Other return values just pass thru. If undefined is returned (e.g. no return)"," * then the Node instance is returned for chainability."," * @method scrubVal"," * @static"," *"," * @param {HTMLElement|HTMLElement[]|Node} node The Node instance or an HTMLElement"," * @return {Node | NodeList | Any} Depends on what is returned from the DOM node."," */","Y_Node.scrubVal = function(val, node) {"," if (val) { // only truthy values are risky"," if (typeof val == 'object' || typeof val == 'function') { // safari nodeList === function"," if (NODE_TYPE in val || Y_DOM.isWindow(val)) {// node || window"," val = Y.one(val);"," } else if ((val.item && !val._nodes) || // dom collection or Node instance"," (val[0] && val[0][NODE_TYPE])) { // array of DOM Nodes"," val = Y.all(val);"," }"," }"," } else if (typeof val === 'undefined') {"," val = node; // for chaining"," } else if (val === null) {"," val = null; // IE: DOM null not the same as null"," }",""," return val;","};","","/**"," * Adds methods to the Y.Node prototype, routing through scrubVal."," * @method addMethod"," * @static"," *"," * @param {String} name The name of the method to add"," * @param {Function} fn The function that becomes the method"," * @param {Object} context An optional context to call the method with"," * (defaults to the Node instance)"," * @return {any} Depends on what is returned from the DOM node."," */","Y_Node.addMethod = function(name, fn, context) {"," if (name && fn && typeof fn == 'function') {"," Y_Node.prototype[name] = function() {"," var args = _slice.call(arguments),"," node = this,"," ret;",""," if (args[0] && args[0]._node) {"," args[0] = args[0]._node;"," }",""," if (args[1] && args[1]._node) {"," args[1] = args[1]._node;"," }"," args.unshift(node._node);",""," ret = fn.apply(context || node, args);",""," if (ret) { // scrub truthy"," ret = Y_Node.scrubVal(ret, node);"," }",""," (typeof ret != 'undefined') || (ret = node);"," return ret;"," };"," } else {"," }","};","","/**"," * Imports utility methods to be added as Y.Node methods."," * @method importMethod"," * @static"," *"," * @param {Object} host The object that contains the method to import."," * @param {String} name The name of the method to import"," * @param {String} altName An optional name to use in place of the host name"," * @param {Object} context An optional context to call the method with"," */","Y_Node.importMethod = function(host, name, altName) {"," if (typeof name == 'string') {"," altName = altName || name;"," Y_Node.addMethod(altName, host[name], host);"," } else {"," Y.Array.each(name, function(n) {"," Y_Node.importMethod(host, n);"," });"," }","};","","/**"," * Retrieves a NodeList based on the given CSS selector."," * @method all"," *"," * @param {string} selector The CSS selector to test against."," * @return {NodeList} A NodeList instance for the matching HTMLCollection/Array."," * @for YUI"," */","","/**"," * Returns a single Node instance bound to the node or the"," * first element matching the given selector. Returns null if no match found."," * Note: For chaining purposes you may want to"," * use Y.all, which returns a NodeList when no match is found."," * @method one"," * @param {String | HTMLElement} node a node or Selector"," * @return {Node | null} a Node instance or null if no match found."," * @for YUI"," */","","/**"," * Returns a single Node instance bound to the node or the"," * first element matching the given selector. Returns null if no match found."," * Note: For chaining purposes you may want to"," * use Y.all, which returns a NodeList when no match is found."," * @method one"," * @static"," * @param {String | HTMLElement} node a node or Selector"," * @return {Node | null} a Node instance or null if no match found."," * @for Node"," */","Y_Node.one = function(node) {"," var instance = null,"," cachedNode,"," uid;",""," if (node) {"," if (typeof node == 'string') {"," node = Y_Node._fromString(node);"," if (!node) {"," return null; // NOTE: return"," }"," } else if (node.getDOMNode) {"," return node; // NOTE: return"," }",""," if (node.nodeType || Y.DOM.isWindow(node)) { // avoid bad input (numbers, boolean, etc)"," if (use_instance_map) {"," uid = (node.uniqueID && node.nodeType !== 9) ? node.uniqueID : node[UID];"," instance = Y_Node._instances[uid]; // reuse exising instances"," } else {"," instance = node._yui_instances && node._yui_instances[Y._yuid]; // reuse exising instances"," }"," cachedNode = instance ? instance._node : null;"," if (!instance || (cachedNode && node !== cachedNode)) { // new Node when nodes don't match"," instance = new Y_Node(node);"," if (node.nodeType != 11) { // don't cache document fragment"," if (use_instance_map) {"," Y_Node._instances[instance[UID]] = instance; // cache node"," } else {"," if (!node._yui_instances) {"," node._yui_instances = {};"," }"," node._yui_instances[Y._yuid] = instance; // cache node"," }"," }"," }"," }"," }",""," return instance;","};","","/**"," * The default setter for DOM properties"," * Called with instance context (this === the Node instance)"," * @method DEFAULT_SETTER"," * @static"," * @param {String} name The attribute/property being set"," * @param {any} val The value to be set"," * @return {any} The value"," */","Y_Node.DEFAULT_SETTER = function(name, val) {"," var node = this._stateProxy,"," strPath;",""," if (name.indexOf(DOT) > -1) {"," strPath = name;"," name = name.split(DOT);"," // only allow when defined on node"," Y.Object.setValue(node, name, val);"," } else if (typeof node[name] != 'undefined') { // pass thru DOM properties"," node[name] = val;"," }",""," return val;","};","","/**"," * The default getter for DOM properties"," * Called with instance context (this === the Node instance)"," * @method DEFAULT_GETTER"," * @static"," * @param {String} name The attribute/property to look up"," * @return {any} The current value"," */","Y_Node.DEFAULT_GETTER = function(name) {"," var node = this._stateProxy,"," val;",""," if (name.indexOf && name.indexOf(DOT) > -1) {"," val = Y.Object.getValue(node, name.split(DOT));"," } else if (typeof node[name] != 'undefined') { // pass thru from DOM"," val = node[name];"," }",""," return val;","};","","Y.mix(Y_Node.prototype, {"," DATA_PREFIX: 'data-',",""," /**"," * The method called when outputting Node instances as strings"," * @method toString"," * @return {String} A string representation of the Node instance"," */"," toString: function() {"," var str = this[UID] + ': not bound to a node',"," node = this._node,"," attrs, id, className;",""," if (node) {"," attrs = node.attributes;"," id = (attrs && attrs.id) ? node.getAttribute('id') : null;"," className = (attrs && attrs.className) ? node.getAttribute('className') : null;"," str = node[NODE_NAME];",""," if (id) {"," str += '#' + id;"," }",""," if (className) {"," str += '.' + className.replace(' ', '.');"," }",""," str += ' ' + this[UID];"," }"," return str;"," },",""," /**"," * Returns an attribute value on the Node instance."," * Unless pre-configured (via `Node.ATTRS`), get hands"," * off to the underlying DOM node. Only valid"," * attributes/properties for the node will be queried."," * @method get"," * @param {String} attr The attribute"," * @return {any} The current value of the attribute"," */"," get: function(attr) {"," var val;",""," if (this._getAttr) { // use Attribute imple"," val = this._getAttr(attr);"," } else {"," val = this._get(attr);"," }",""," if (val) {"," val = Y_Node.scrubVal(val, this);"," } else if (val === null) {"," val = null; // IE: DOM null is not true null (even though they ===)"," }"," return val;"," },",""," /**"," * Helper method for get."," * @method _get"," * @private"," * @param {String} attr The attribute"," * @return {any} The current value of the attribute"," */"," _get: function(attr) {"," var attrConfig = Y_Node.ATTRS[attr],"," val;",""," if (attrConfig && attrConfig.getter) {"," val = attrConfig.getter.call(this);"," } else if (Y_Node.re_aria.test(attr)) {"," val = this._node.getAttribute(attr, 2);"," } else {"," val = Y_Node.DEFAULT_GETTER.apply(this, arguments);"," }",""," return val;"," },",""," /**"," * Sets an attribute on the Node instance."," * Unless pre-configured (via Node.ATTRS), set hands"," * off to the underlying DOM node. Only valid"," * attributes/properties for the node will be set."," * To set custom attributes use setAttribute."," * @method set"," * @param {String} attr The attribute to be set."," * @param {any} val The value to set the attribute to."," * @chainable"," */"," set: function(attr, val) {"," var attrConfig = Y_Node.ATTRS[attr];",""," if (this._setAttr) { // use Attribute imple"," this._setAttr.apply(this, arguments);"," } else { // use setters inline"," if (attrConfig && attrConfig.setter) {"," attrConfig.setter.call(this, val, attr);"," } else if (Y_Node.re_aria.test(attr)) { // special case Aria"," this._node.setAttribute(attr, val);"," } else {"," Y_Node.DEFAULT_SETTER.apply(this, arguments);"," }"," }",""," return this;"," },",""," /**"," * Sets multiple attributes."," * @method setAttrs"," * @param {Object} attrMap an object of name/value pairs to set"," * @chainable"," */"," setAttrs: function(attrMap) {"," if (this._setAttrs) { // use Attribute imple"," this._setAttrs(attrMap);"," } else { // use setters inline"," Y.Object.each(attrMap, function(v, n) {"," this.set(n, v);"," }, this);"," }",""," return this;"," },",""," /**"," * Returns an object containing the values for the requested attributes."," * @method getAttrs"," * @param {Array} attrs an array of attributes to get values"," * @return {Object} An object with attribute name/value pairs."," */"," getAttrs: function(attrs) {"," var ret = {};"," if (this._getAttrs) { // use Attribute imple"," this._getAttrs(attrs);"," } else { // use setters inline"," Y.Array.each(attrs, function(v, n) {"," ret[v] = this.get(v);"," }, this);"," }",""," return ret;"," },",""," /**"," * Compares nodes to determine if they match."," * Node instances can be compared to each other and/or HTMLElements."," * @method compareTo"," * @param {HTMLElement | Node} refNode The reference node to compare to the node."," * @return {Boolean} True if the nodes match, false if they do not."," */"," compareTo: function(refNode) {"," var node = this._node;",""," if (refNode && refNode._node) {"," refNode = refNode._node;"," }"," return node === refNode;"," },",""," /**"," * Determines whether the node is appended to the document."," * @method inDoc"," * @param {Node|HTMLElement} doc optional An optional document to check against."," * Defaults to current document."," * @return {Boolean} Whether or not this node is appended to the document."," */"," inDoc: function(doc) {"," var node = this._node;",""," if (node) {"," doc = (doc) ? doc._node || doc : node[OWNER_DOCUMENT];"," if (doc.documentElement) {"," return Y_DOM.contains(doc.documentElement, node);"," }"," }",""," return false;"," },",""," getById: function(id) {"," var node = this._node,"," ret = Y_DOM.byId(id, node[OWNER_DOCUMENT]);"," if (ret && Y_DOM.contains(node, ret)) {"," ret = Y.one(ret);"," } else {"," ret = null;"," }"," return ret;"," },",""," /**"," * Returns the nearest ancestor that passes the test applied by supplied boolean method."," * @method ancestor"," * @param {String | Function} fn A selector string or boolean method for testing elements."," * If a function is used, it receives the current node being tested as the only argument."," * If fn is not passed as an argument, the parent node will be returned."," * @param {Boolean} testSelf optional Whether or not to include the element in the scan"," * @param {String | Function} stopFn optional A selector string or boolean"," * method to indicate when the search should stop. The search bails when the function"," * returns true or the selector matches."," * If a function is used, it receives the current node being tested as the only argument."," * @return {Node} The matching Node instance or null if not found"," */"," ancestor: function(fn, testSelf, stopFn) {"," // testSelf is optional, check for stopFn as 2nd arg"," if (arguments.length === 2 &&"," (typeof testSelf == 'string' || typeof testSelf == 'function')) {"," stopFn = testSelf;"," }",""," return Y.one(Y_DOM.ancestor(this._node, _wrapFn(fn), testSelf, _wrapFn(stopFn)));"," },",""," /**"," * Returns the ancestors that pass the test applied by supplied boolean method."," * @method ancestors"," * @param {String | Function} fn A selector string or boolean method for testing elements."," * @param {Boolean} testSelf optional Whether or not to include the element in the scan"," * If a function is used, it receives the current node being tested as the only argument."," * @return {NodeList} A NodeList instance containing the matching elements"," */"," ancestors: function(fn, testSelf, stopFn) {"," if (arguments.length === 2 &&"," (typeof testSelf == 'string' || typeof testSelf == 'function')) {"," stopFn = testSelf;"," }"," return Y.all(Y_DOM.ancestors(this._node, _wrapFn(fn), testSelf, _wrapFn(stopFn)));"," },",""," /**"," * Returns the previous matching sibling."," * Returns the nearest element node sibling if no method provided."," * @method previous"," * @param {String | Function} fn A selector or boolean method for testing elements."," * If a function is used, it receives the current node being tested as the only argument."," * @param {Boolean} [all] Whether text nodes as well as element nodes should be returned, or"," * just element nodes will be returned(default)"," * @return {Node} Node instance or null if not found"," */"," previous: function(fn, all) {"," return Y.one(Y_DOM.elementByAxis(this._node, 'previousSibling', _wrapFn(fn), all));"," },",""," /**"," * Returns the next matching sibling."," * Returns the nearest element node sibling if no method provided."," * @method next"," * @param {String | Function} fn A selector or boolean method for testing elements."," * If a function is used, it receives the current node being tested as the only argument."," * @param {Boolean} [all] Whether text nodes as well as element nodes should be returned, or"," * just element nodes will be returned(default)"," * @return {Node} Node instance or null if not found"," */"," next: function(fn, all) {"," return Y.one(Y_DOM.elementByAxis(this._node, 'nextSibling', _wrapFn(fn), all));"," },",""," /**"," * Returns all matching siblings."," * Returns all siblings if no method provided."," * @method siblings"," * @param {String | Function} fn A selector or boolean method for testing elements."," * If a function is used, it receives the current node being tested as the only argument."," * @return {NodeList} NodeList instance bound to found siblings"," */"," siblings: function(fn) {"," return Y.all(Y_DOM.siblings(this._node, _wrapFn(fn)));"," },",""," /**"," * Retrieves a single Node instance, the first element matching the given"," * CSS selector."," * Returns null if no match found."," * @method one"," *"," * @param {string} selector The CSS selector to test against."," * @return {Node | null} A Node instance for the matching HTMLElement or null"," * if no match found."," */"," one: function(selector) {"," return Y.one(Y.Selector.query(selector, this._node, true));"," },",""," /**"," * Retrieves a NodeList based on the given CSS selector."," * @method all"," *"," * @param {string} selector The CSS selector to test against."," * @return {NodeList} A NodeList instance for the matching HTMLCollection/Array."," */"," all: function(selector) {"," var nodelist;",""," if (this._node) {"," nodelist = Y.all(Y.Selector.query(selector, this._node));"," nodelist._query = selector;"," nodelist._queryRoot = this._node;"," }",""," return nodelist || Y.all([]);"," },",""," // TODO: allow fn test"," /**"," * Test if the supplied node matches the supplied selector."," * @method test"," *"," * @param {string} selector The CSS selector to test against."," * @return {boolean} Whether or not the node matches the selector."," */"," test: function(selector) {"," return Y.Selector.test(this._node, selector);"," },",""," /**"," * Removes the node from its parent."," * Shortcut for myNode.get('parentNode').removeChild(myNode);"," * @method remove"," * @param {Boolean} destroy whether or not to call destroy() on the node"," * after removal."," * @chainable"," *"," */"," remove: function(destroy) {"," var node = this._node;",""," if (node && node.parentNode) {"," node.parentNode.removeChild(node);"," }",""," if (destroy) {"," this.destroy();"," }",""," return this;"," },",""," /**"," * Replace the node with the other node. This is a DOM update only"," * and does not change the node bound to the Node instance."," * Shortcut for myNode.get('parentNode').replaceChild(newNode, myNode);"," * @method replace"," * @param {Node | HTMLElement} newNode Node to be inserted"," * @chainable"," *"," */"," replace: function(newNode) {"," var node = this._node;"," if (typeof newNode == 'string') {"," newNode = Y_Node.create(newNode);"," }"," node.parentNode.replaceChild(Y_Node.getDOMNode(newNode), node);"," return this;"," },",""," /**"," * @method replaceChild"," * @for Node"," * @param {String | HTMLElement | Node} node Node to be inserted"," * @param {HTMLElement | Node} refNode Node to be replaced"," * @return {Node} The replaced node"," */"," replaceChild: function(node, refNode) {"," if (typeof node == 'string') {"," node = Y_DOM.create(node);"," }",""," return Y.one(this._node.replaceChild(Y_Node.getDOMNode(node), Y_Node.getDOMNode(refNode)));"," },",""," /**"," * Nulls internal node references, removes any plugins and event listeners."," * Note that destroy() will not remove the node from its parent or from the DOM. For that"," * functionality, call remove(true)."," * @method destroy"," * @param {Boolean} recursivePurge (optional) Whether or not to remove listeners from the"," * node's subtree (default is false)"," *"," */"," destroy: function(recursive) {"," var UID = Y.config.doc.uniqueID ? 'uniqueID' : '_yuid',"," instance;",""," this.purge(); // TODO: only remove events add via this Node",""," if (this.unplug) { // may not be a PluginHost"," this.unplug();"," }",""," this.clearData();",""," if (recursive) {"," Y.NodeList.each(this.all('*'), function(node) {"," if (use_instance_map) {"," instance = Y_Node._instances[node[UID]];"," } else {"," instance = node._yui_instances && node._yui_instances[Y._yuid];"," }"," if (instance) {"," instance.destroy();"," } else { // purge in case added by other means"," Y.Event.purgeElement(node);"," }"," });"," }",""," if (this._node._yui_instances) {"," delete this._node._yui_instances[Y._yuid];"," }",""," this._node = null;"," this._stateProxy = null;",""," if (use_instance_map) {"," delete Y_Node._instances[this[UID]];"," }"," },",""," /**"," * Invokes a method on the Node instance"," * @method invoke"," * @param {String} method The name of the method to invoke"," * @param {any} [args*] Arguments to invoke the method with."," * @return {any} Whatever the underly method returns."," * DOM Nodes and Collections return values"," * are converted to Node/NodeList instances."," *"," */"," invoke: function(method, a, b, c, d, e) {"," var node = this._node,"," ret;",""," if (a && a._node) {"," a = a._node;"," }",""," if (b && b._node) {"," b = b._node;"," }",""," ret = node[method](a, b, c, d, e);"," return Y_Node.scrubVal(ret, this);"," },",""," /**"," * @method swap"," * @description Swap DOM locations with the given node."," * This does not change which DOM node each Node instance refers to."," * @param {Node} otherNode The node to swap with"," * @chainable"," */"," swap: Y.config.doc.documentElement.swapNode ?"," function(otherNode) {"," this._node.swapNode(Y_Node.getDOMNode(otherNode));"," } :"," function(otherNode) {"," otherNode = Y_Node.getDOMNode(otherNode);"," var node = this._node,"," parent = otherNode.parentNode,"," nextSibling = otherNode.nextSibling;",""," if (nextSibling === node) {"," parent.insertBefore(node, otherNode);"," } else if (otherNode === node.nextSibling) {"," parent.insertBefore(otherNode, node);"," } else {"," node.parentNode.replaceChild(otherNode, node);"," Y_DOM.addHTML(parent, node, nextSibling);"," }"," return this;"," },","",""," hasMethod: function(method) {"," var node = this._node;"," return !!(node && method in node &&"," typeof node[method] != 'unknown' &&"," (typeof node[method] == 'function' ||"," String(node[method]).indexOf('function') === 1)); // IE reports as object, prepends space"," },",""," isFragment: function() {"," return (this.get('nodeType') === 11);"," },",""," /**"," * Removes and destroys all of the nodes within the node."," * @method empty"," * @chainable"," */"," empty: function() {"," this.get('childNodes').remove().destroy(true);"," return this;"," },",""," /**"," * Returns the DOM node bound to the Node instance"," * @method getDOMNode"," * @return {HTMLElement}"," */"," getDOMNode: function() {"," return this._node;"," }","}, true);","","Y.Node = Y_Node;","Y.one = Y_Node.one;","/**"," * The NodeList module provides support for managing collections of Nodes."," * @module node"," * @submodule node-core"," */","","/**"," * The NodeList class provides a wrapper for manipulating DOM NodeLists."," * NodeList properties can be accessed via the set/get methods."," * Use Y.all() to retrieve NodeList instances."," *"," * @class NodeList"," * @constructor"," * @param nodes {String|element|Node|Array} A selector, DOM element, Node, list of DOM elements, or list of Nodes with which to populate this NodeList."," */","","var NodeList = function(nodes) {"," var tmp = [];",""," if (nodes) {"," if (typeof nodes === 'string') { // selector query"," this._query = nodes;"," nodes = Y.Selector.query(nodes);"," } else if (nodes.nodeType || Y_DOM.isWindow(nodes)) { // domNode || window"," nodes = [nodes];"," } else if (nodes._node) { // Y.Node"," nodes = [nodes._node];"," } else if (nodes[0] && nodes[0]._node) { // allow array of Y.Nodes"," Y.Array.each(nodes, function(node) {"," if (node._node) {"," tmp.push(node._node);"," }"," });"," nodes = tmp;"," } else { // array of domNodes or domNodeList (no mixed array of Y.Node/domNodes)"," nodes = Y.Array(nodes, 0, true);"," }"," }",""," /**"," * The underlying array of DOM nodes bound to the Y.NodeList instance"," * @property _nodes"," * @private"," */"," this._nodes = nodes || [];","};","","NodeList.NAME = 'NodeList';","","/**"," * Retrieves the DOM nodes bound to a NodeList instance"," * @method getDOMNodes"," * @static"," *"," * @param {NodeList} nodelist The NodeList instance"," * @return {Array} The array of DOM nodes bound to the NodeList"," */","NodeList.getDOMNodes = function(nodelist) {"," return (nodelist && nodelist._nodes) ? nodelist._nodes : nodelist;","};","","NodeList.each = function(instance, fn, context) {"," var nodes = instance._nodes;"," if (nodes && nodes.length) {"," Y.Array.each(nodes, fn, context || instance);"," } else {"," }","};","","NodeList.addMethod = function(name, fn, context) {"," if (name && fn) {"," NodeList.prototype[name] = function() {"," var ret = [],"," args = arguments;",""," Y.Array.each(this._nodes, function(node) {"," var uid,"," instance,"," ctx,"," result;",""," if (Y.Node._instances) {"," uid = (node.uniqueID && node.nodeType !== 9 ) ? node.uniqueID : node[UID];"," instance = Y.Node._instances[uid];"," } else {"," instance = node._yui_instances && node._yui_instances[Y._yuid];"," }",""," if (!instance) {"," instance = NodeList._getTempNode(node);"," }"," ctx = context || instance;"," result = fn.apply(ctx, args);"," if (result !== undefined && result !== instance) {"," ret[ret.length] = result;"," }"," });",""," // TODO: remove tmp pointer"," return ret.length ? ret : this;"," };"," } else {"," }","};","","NodeList.importMethod = function(host, name, altName) {"," if (typeof name === 'string') {"," altName = altName || name;"," NodeList.addMethod(name, host[name]);"," } else {"," Y.Array.each(name, function(n) {"," NodeList.importMethod(host, n);"," });"," }","};","","NodeList._getTempNode = function(node) {"," var tmp = NodeList._tempNode;"," if (!tmp) {"," tmp = Y.Node.create('
');"," NodeList._tempNode = tmp;"," }",""," tmp._node = node;"," tmp._stateProxy = node;"," return tmp;","};","","Y.mix(NodeList.prototype, {"," _invoke: function(method, args, getter) {"," var ret = (getter) ? [] : this;",""," this.each(function(node) {"," var val = node[method].apply(node, args);"," if (getter) {"," ret.push(val);"," }"," });",""," return ret;"," },",""," /**"," * Retrieves the Node instance at the given index."," * @method item"," *"," * @param {Number} index The index of the target Node."," * @return {Node} The Node instance at the given index."," */"," item: function(index) {"," return Y.one((this._nodes || [])[index]);"," },",""," /**"," * Applies the given function to each Node in the NodeList."," * @method each"," * @param {Function} fn The function to apply. It receives 3 arguments:"," * the current node instance, the node's index, and the NodeList instance"," * @param {Object} context optional An optional context to apply the function with"," * Default context is the current Node instance"," * @chainable"," */"," each: function(fn, context) {"," var instance = this;"," Y.Array.each(this._nodes, function(node, index) {"," node = Y.one(node);"," return fn.call(context || node, node, index, instance);"," });"," return instance;"," },",""," batch: function(fn, context) {"," var nodelist = this;",""," Y.Array.each(this._nodes, function(node, index) {"," var uid,"," instance;",""," if (Y.Node._instances) {"," uid = (node.uniqueID && node.nodeType !== 9 ) ? node.uniqueID : node[UID];"," instance = Y.Node._instances[uid];"," } else {"," instance = node._yui_instances && node._yui_instances[Y._yuid];"," }",""," if (!instance) {"," instance = NodeList._getTempNode(node);"," }",""," return fn.call(context || instance, instance, index, nodelist);"," });"," return nodelist;"," },",""," /**"," * Executes the function once for each node until a true value is returned."," * @method some"," * @param {Function} fn The function to apply. It receives 3 arguments:"," * the current node instance, the node's index, and the NodeList instance"," * @param {Object} context optional An optional context to execute the function from."," * Default context is the current Node instance"," * @return {Boolean} Whether or not the function returned true for any node."," */"," some: function(fn, context) {"," var instance = this;"," return Y.Array.some(this._nodes, function(node, index) {"," node = Y.one(node);"," context = context || node;"," return fn.call(context, node, index, instance);"," });"," },",""," /**"," * Creates a documenFragment from the nodes bound to the NodeList instance"," * @method toFrag"," * @return {Node} a Node instance bound to the documentFragment"," */"," toFrag: function() {"," return Y.one(Y.DOM._nl2frag(this._nodes));"," },",""," /**"," * Returns the index of the node in the NodeList instance"," * or -1 if the node isn't found."," * @method indexOf"," * @param {Node | HTMLElement} node the node to search for"," * @return {Number} the index of the node value or -1 if not found"," */"," indexOf: function(node) {"," return Y.Array.indexOf(this._nodes, Y.Node.getDOMNode(node));"," },",""," /**"," * Filters the NodeList instance down to only nodes matching the given selector."," * @method filter"," * @param {String} selector The selector to filter against"," * @return {NodeList} NodeList containing the updated collection"," * @see Selector"," */"," filter: function(selector) {"," return Y.all(Y.Selector.filter(this._nodes, selector));"," },","",""," /**"," * Creates a new NodeList containing all nodes at every n indices, where"," * remainder n % index equals r."," * (zero-based index)."," * @method modulus"," * @param {Number} n The offset to use (return every nth node)"," * @param {Number} r An optional remainder to use with the modulus operation (defaults to zero)"," * @return {NodeList} NodeList containing the updated collection"," */"," modulus: function(n, r) {"," r = r || 0;"," var nodes = [];"," NodeList.each(this, function(node, i) {"," if (i % n === r) {"," nodes.push(node);"," }"," });",""," return Y.all(nodes);"," },",""," /**"," * Creates a new NodeList containing all nodes at odd indices"," * (zero-based index)."," * @method odd"," * @return {NodeList} NodeList containing the updated collection"," */"," odd: function() {"," return this.modulus(2, 1);"," },",""," /**"," * Creates a new NodeList containing all nodes at even indices"," * (zero-based index), including zero."," * @method even"," * @return {NodeList} NodeList containing the updated collection"," */"," even: function() {"," return this.modulus(2);"," },",""," destructor: function() {"," },",""," /**"," * Reruns the initial query, when created using a selector query"," * @method refresh"," * @chainable"," */"," refresh: function() {"," var doc,"," nodes = this._nodes,"," query = this._query,"," root = this._queryRoot;",""," if (query) {"," if (!root) {"," if (nodes && nodes[0] && nodes[0].ownerDocument) {"," root = nodes[0].ownerDocument;"," }"," }",""," this._nodes = Y.Selector.query(query, root);"," }",""," return this;"," },",""," /**"," * Returns the current number of items in the NodeList."," * @method size"," * @return {Number} The number of items in the NodeList."," */"," size: function() {"," return this._nodes.length;"," },",""," /**"," * Determines if the instance is bound to any nodes"," * @method isEmpty"," * @return {Boolean} Whether or not the NodeList is bound to any nodes"," */"," isEmpty: function() {"," return this._nodes.length < 1;"," },",""," toString: function() {"," var str = '',"," errorMsg = this[UID] + ': not bound to any nodes',"," nodes = this._nodes,"," node;",""," if (nodes && nodes[0]) {"," node = nodes[0];"," str += node[NODE_NAME];"," if (node.id) {"," str += '#' + node.id;"," }",""," if (node.className) {"," str += '.' + node.className.replace(' ', '.');"," }",""," if (nodes.length > 1) {"," str += '...[' + nodes.length + ' items]';"," }"," }"," return str || errorMsg;"," },",""," /**"," * Returns the DOM node bound to the Node instance"," * @method getDOMNodes"," * @return {Array}"," */"," getDOMNodes: function() {"," return this._nodes;"," }","}, true);","","NodeList.importMethod(Y.Node.prototype, ["," /**"," * Called on each Node instance. Nulls internal node references,"," * removes any plugins and event listeners"," * @method destroy"," * @param {Boolean} recursivePurge (optional) Whether or not to"," * remove listeners from the node's subtree (default is false)"," * @see Node.destroy"," */"," 'destroy',",""," /**"," * Called on each Node instance. Removes and destroys all of the nodes"," * within the node"," * @method empty"," * @chainable"," * @see Node.empty"," */"," 'empty',",""," /**"," * Called on each Node instance. Removes the node from its parent."," * Shortcut for myNode.get('parentNode').removeChild(myNode);"," * @method remove"," * @param {Boolean} destroy whether or not to call destroy() on the node"," * after removal."," * @chainable"," * @see Node.remove"," */"," 'remove',",""," /**"," * Called on each Node instance. Sets an attribute on the Node instance."," * Unless pre-configured (via Node.ATTRS), set hands"," * off to the underlying DOM node. Only valid"," * attributes/properties for the node will be set."," * To set custom attributes use setAttribute."," * @method set"," * @param {String} attr The attribute to be set."," * @param {any} val The value to set the attribute to."," * @chainable"," * @see Node.set"," */"," 'set'","]);","","// one-off implementation to convert array of Nodes to NodeList","// e.g. Y.all('input').get('parentNode');","","/** Called on each Node instance"," * @method get"," * @see Node"," */","NodeList.prototype.get = function(attr) {"," var ret = [],"," nodes = this._nodes,"," isNodeList = false,"," getTemp = NodeList._getTempNode,"," uid,"," instance,"," val;",""," if (nodes[0]) {"," if (Y.Node._instances) {"," uid = (nodes[0].uniqueID && nodes[0].nodeType !== 9 ) ? nodes[0].uniqueID : nodes[0][UID];"," instance = Y.Node._instances[uid];"," } else {"," instance = nodes[0]._yui_instances && nodes[0]._yui_instances[Y._yuid];"," }"," instance = instance || getTemp(nodes[0]);",""," val = instance._get(attr);"," if (val && val.nodeType) {"," isNodeList = true;"," }"," }",""," Y.Array.each(nodes, function(node) {"," if (Y.Node._instances) {"," uid = (node.uniqueID && node.nodeType !== 9 ) ? node.uniqueID : node[UID];"," instance = Y.Node._instances[uid];"," } else {"," instance = node._yui_instances && node._yui_instances[Y._yuid];"," }",""," if (!instance) {"," instance = getTemp(node);"," }",""," val = instance._get(attr);"," if (!isNodeList) { // convert array of Nodes to NodeList"," val = Y.Node.scrubVal(val, instance);"," }",""," ret.push(val);"," });",""," return (isNodeList) ? Y.all(ret) : ret;","};","","Y.NodeList = NodeList;","","Y.all = function(nodes) {"," return new NodeList(nodes);","};","","Y.Node.all = Y.all;","/**"," * @module node"," * @submodule node-core"," */","","var Y_NodeList = Y.NodeList,"," ArrayProto = Array.prototype,"," ArrayMethods = {"," /** Returns a new NodeList combining the given NodeList(s)"," * @for NodeList"," * @method concat"," * @param {NodeList | Array} valueN Arrays/NodeLists and/or values to"," * concatenate to the resulting NodeList"," * @return {NodeList} A new NodeList comprised of this NodeList joined with the input."," */"," 'concat': 1,"," /** Removes the last from the NodeList and returns it."," * @for NodeList"," * @method pop"," * @return {Node | null} The last item in the NodeList, or null if the list is empty."," */"," 'pop': 0,"," /** Adds the given Node(s) to the end of the NodeList."," * @for NodeList"," * @method push"," * @param {Node | HTMLElement} nodes One or more nodes to add to the end of the NodeList."," */"," 'push': 0,"," /** Removes the first item from the NodeList and returns it."," * @for NodeList"," * @method shift"," * @return {Node | null} The first item in the NodeList, or null if the NodeList is empty."," */"," 'shift': 0,"," /** Returns a new NodeList comprising the Nodes in the given range."," * @for NodeList"," * @method slice"," * @param {Number} begin Zero-based index at which to begin extraction."," As a negative index, start indicates an offset from the end of the sequence. slice(-2) extracts the second-to-last element and the last element in the sequence."," * @param {Number} end Zero-based index at which to end extraction. slice extracts up to but not including end."," slice(1,4) extracts the second element through the fourth element (elements indexed 1, 2, and 3)."," As a negative index, end indicates an offset from the end of the sequence. slice(2,-1) extracts the third element through the second-to-last element in the sequence."," If end is omitted, slice extracts to the end of the sequence."," * @return {NodeList} A new NodeList comprised of this NodeList joined with the input."," */"," 'slice': 1,"," /** Changes the content of the NodeList, adding new elements while removing old elements."," * @for NodeList"," * @method splice"," * @param {Number} index Index at which to start changing the array. If negative, will begin that many elements from the end."," * @param {Number} howMany An integer indicating the number of old array elements to remove. If howMany is 0, no elements are removed. In this case, you should specify at least one new element. If no howMany parameter is specified (second syntax above, which is a SpiderMonkey extension), all elements after index are removed."," * {Node | HTMLElement| element1, ..., elementN"," The elements to add to the array. If you don't specify any elements, splice simply removes elements from the array."," * @return {NodeList} The element(s) removed."," */"," 'splice': 1,"," /** Adds the given Node(s) to the beginning of the NodeList."," * @for NodeList"," * @method unshift"," * @param {Node | HTMLElement} nodes One or more nodes to add to the NodeList."," */"," 'unshift': 0"," };","","","Y.Object.each(ArrayMethods, function(returnNodeList, name) {"," Y_NodeList.prototype[name] = function() {"," var args = [],"," i = 0,"," arg,"," ret;",""," while (typeof (arg = arguments[i++]) != 'undefined') { // use DOM nodes/nodeLists"," args.push(arg._node || arg._nodes || arg);"," }",""," ret = ArrayProto[name].apply(this._nodes, args);",""," if (returnNodeList) {"," ret = Y.all(ret);"," } else {"," ret = Y.Node.scrubVal(ret);"," }",""," return ret;"," };","});","/**"," * @module node"," * @submodule node-core"," */","","Y.Array.each(["," /**"," * Passes through to DOM method."," * @for Node"," * @method removeChild"," * @param {HTMLElement | Node} node Node to be removed"," * @return {Node} The removed node"," */"," 'removeChild',",""," /**"," * Passes through to DOM method."," * @method hasChildNodes"," * @return {Boolean} Whether or not the node has any childNodes"," */"," 'hasChildNodes',",""," /**"," * Passes through to DOM method."," * @method cloneNode"," * @param {Boolean} deep Whether or not to perform a deep clone, which includes"," * subtree and attributes"," * @return {Node} The clone"," */"," 'cloneNode',",""," /**"," * Passes through to DOM method."," * @method hasAttribute"," * @param {String} attribute The attribute to test for"," * @return {Boolean} Whether or not the attribute is present"," */"," 'hasAttribute',",""," /**"," * Passes through to DOM method."," * @method scrollIntoView"," * @chainable"," */"," 'scrollIntoView',",""," /**"," * Passes through to DOM method."," * @method getElementsByTagName"," * @param {String} tagName The tagName to collect"," * @return {NodeList} A NodeList representing the HTMLCollection"," */"," 'getElementsByTagName',",""," /**"," * Passes through to DOM method."," * @method focus"," * @chainable"," */"," 'focus',",""," /**"," * Passes through to DOM method."," * @method blur"," * @chainable"," */"," 'blur',",""," /**"," * Passes through to DOM method."," * Only valid on FORM elements"," * @method submit"," * @chainable"," */"," 'submit',",""," /**"," * Passes through to DOM method."," * Only valid on FORM elements"," * @method reset"," * @chainable"," */"," 'reset',",""," /**"," * Passes through to DOM method."," * @method select"," * @chainable"," */"," 'select',",""," /**"," * Passes through to DOM method."," * Only valid on TABLE elements"," * @method createCaption"," * @chainable"," */"," 'createCaption'","","], function(method) {"," Y.Node.prototype[method] = function(arg1, arg2, arg3) {"," var ret = this.invoke(method, arg1, arg2, arg3);"," return ret;"," };","});","","/**"," * Passes through to DOM method."," * @method removeAttribute"," * @param {String} attribute The attribute to be removed"," * @chainable"," */"," // one-off implementation due to IE returning boolean, breaking chaining","Y.Node.prototype.removeAttribute = function(attr) {"," var node = this._node;"," if (node) {"," node.removeAttribute(attr, 0); // comma zero for IE < 8 to force case-insensitive"," }",""," return this;","};","","Y.Node.importMethod(Y.DOM, ["," /**"," * Determines whether the node is an ancestor of another HTML element in the DOM hierarchy."," * @method contains"," * @param {Node | HTMLElement} needle The possible node or descendent"," * @return {Boolean} Whether or not this node is the needle its ancestor"," */"," 'contains',"," /**"," * Allows setting attributes on DOM nodes, normalizing in some cases."," * This passes through to the DOM node, allowing for custom attributes."," * @method setAttribute"," * @for Node"," * @chainable"," * @param {string} name The attribute name"," * @param {string} value The value to set"," */"," 'setAttribute',"," /**"," * Allows getting attributes on DOM nodes, normalizing in some cases."," * This passes through to the DOM node, allowing for custom attributes."," * @method getAttribute"," * @for Node"," * @param {string} name The attribute name"," * @return {string} The attribute value"," */"," 'getAttribute',",""," /**"," * Wraps the given HTML around the node."," * @method wrap"," * @param {String} html The markup to wrap around the node."," * @chainable"," * @for Node"," */"," 'wrap',",""," /**"," * Removes the node's parent node."," * @method unwrap"," * @chainable"," */"," 'unwrap',",""," /**"," * Applies a unique ID to the node if none exists"," * @method generateID"," * @return {String} The existing or generated ID"," */"," 'generateID'","]);","","Y.NodeList.importMethod(Y.Node.prototype, [","/**"," * Allows getting attributes on DOM nodes, normalizing in some cases."," * This passes through to the DOM node, allowing for custom attributes."," * @method getAttribute"," * @see Node"," * @for NodeList"," * @param {string} name The attribute name"," * @return {string} The attribute value"," */",""," 'getAttribute',","/**"," * Allows setting attributes on DOM nodes, normalizing in some cases."," * This passes through to the DOM node, allowing for custom attributes."," * @method setAttribute"," * @see Node"," * @for NodeList"," * @chainable"," * @param {string} name The attribute name"," * @param {string} value The value to set"," */"," 'setAttribute',","","/**"," * Allows for removing attributes on DOM nodes."," * This passes through to the DOM node, allowing for custom attributes."," * @method removeAttribute"," * @see Node"," * @for NodeList"," * @param {string} name The attribute to remove"," */"," 'removeAttribute',","/**"," * Removes the parent node from node in the list."," * @method unwrap"," * @chainable"," */"," 'unwrap',","/**"," * Wraps the given HTML around each node."," * @method wrap"," * @param {String} html The markup to wrap around the node."," * @chainable"," */"," 'wrap',","","/**"," * Applies a unique ID to each node if none exists"," * @method generateID"," * @return {String} The existing or generated ID"," */"," 'generateID'","]);","","","}, '@VERSION@', {\"requires\": [\"dom-core\", \"selector\"]});","","}());"]}; } var __cov_LGqepiXuzGEZpz3IhlW0rQ = __coverage__['build/node-core/node-core.js']; -__cov_LGqepiXuzGEZpz3IhlW0rQ.s['1']++;YUI.add('node-core',function(Y,NAME){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['1']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['2']++;var DOT='.',NODE_NAME='nodeName',NODE_TYPE='nodeType',OWNER_DOCUMENT='ownerDocument',TAG_NAME='tagName',UID='_yuid',EMPTY_OBJ={},use_instance_map=Y.UA.ie>0,_slice=Array.prototype.slice,Y_DOM=Y.DOM,Y_Node=function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['2']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['3']++;if(!this.getDOMNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['1'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['4']++;return new Y_Node(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['1'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['5']++;if(typeof node=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['2'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['6']++;node=Y_Node._fromString(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['7']++;if(!node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['3'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['8']++;return null;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['3'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['2'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['9']++;var uid=node.nodeType!==9?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['4'][0]++,node.uniqueID):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['4'][1]++,node[UID]);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['10']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['6'][0]++,use_instance_map)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['6'][1]++,uid)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['6'][2]++,Y_Node._instances[uid])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['6'][3]++,Y_Node._instances[uid]._node!==node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['5'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['11']++;node[UID]=null;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['5'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['12']++;uid=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['7'][0]++,uid)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['7'][1]++,Y.stamp(node));__cov_LGqepiXuzGEZpz3IhlW0rQ.s['13']++;if(!uid){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['8'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['14']++;uid=Y.guid();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['8'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['15']++;this[UID]=uid;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['16']++;this._node=node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['17']++;this._stateProxy=node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['18']++;if(this._initPlugins){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['9'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['19']++;this._initPlugins();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['9'][1]++;}},_wrapFn=function(fn){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['3']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['20']++;var ret=null;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['21']++;if(fn){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['10'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['22']++;ret=typeof fn=='string'?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['11'][0]++,function(n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['4']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['23']++;return Y.Selector.test(n,fn);}):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['11'][1]++,function(n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['5']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['24']++;return fn(Y.one(n));});}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['10'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['25']++;return ret;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['26']++;Y_Node.ATTRS={};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['27']++;Y_Node.DOM_EVENTS={};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['28']++;Y_Node._fromString=function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['6']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['29']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['12'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['30']++;if(node.indexOf('doc')===0){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['13'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['31']++;node=Y.config.doc;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['13'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['32']++;if(node.indexOf('win')===0){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['14'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['33']++;node=Y.config.win;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['14'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['34']++;node=Y.Selector.query(node,null,true);}}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['12'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['35']++;return(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['15'][0]++,node)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['15'][1]++,null);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['36']++;Y_Node.NAME='node';__cov_LGqepiXuzGEZpz3IhlW0rQ.s['37']++;Y_Node.re_aria=/^(?:role$|aria-)/;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['38']++;Y_Node.SHOW_TRANSITION='fadeIn';__cov_LGqepiXuzGEZpz3IhlW0rQ.s['39']++;Y_Node.HIDE_TRANSITION='fadeOut';__cov_LGqepiXuzGEZpz3IhlW0rQ.s['40']++;if(use_instance_map){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['16'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['41']++;Y_Node._instances={};}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['16'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['42']++;Y_Node.getDOMNode=function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['7']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['43']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['17'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['44']++;return node.nodeType?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['18'][0]++,node):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['18'][1]++,(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['19'][0]++,node._node)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['19'][1]++,null));}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['17'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['45']++;return null;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['46']++;Y_Node.scrubVal=function(val,node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['8']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['47']++;if(val){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['20'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['48']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['22'][0]++,typeof val=='object')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['22'][1]++,typeof val=='function')){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['21'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['49']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['24'][0]++,NODE_TYPE in val)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['24'][1]++,Y_DOM.isWindow(val))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['23'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['50']++;val=Y.one(val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['23'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['51']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['26'][0]++,val.item)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['26'][1]++,!val._nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['26'][2]++,val[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['26'][3]++,val[0][NODE_TYPE])){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['25'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['52']++;val=Y.all(val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['25'][1]++;}}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['21'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['20'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['53']++;if(typeof val==='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['27'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['54']++;val=node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['27'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['55']++;if(val===null){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['28'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['56']++;val=null;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['28'][1]++;}}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['57']++;return val;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['58']++;Y_Node.addMethod=function(name,fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['9']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['59']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['30'][0]++,name)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['30'][1]++,fn)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['30'][2]++,typeof fn=='function')){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['29'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['60']++;Y_Node.prototype[name]=function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['10']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['61']++;var args=_slice.call(arguments),node=this,ret;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['62']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['32'][0]++,args[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['32'][1]++,args[0]._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['31'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['63']++;args[0]=args[0]._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['31'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['64']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['34'][0]++,args[1])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['34'][1]++,args[1]._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['33'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['65']++;args[1]=args[1]._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['33'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['66']++;args.unshift(node._node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['67']++;ret=fn.apply((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['35'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['35'][1]++,node),args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['68']++;if(ret){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['36'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['69']++;ret=Y_Node.scrubVal(ret,node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['36'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['70']++;(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['37'][0]++,typeof ret!='undefined')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['37'][1]++,ret=node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['71']++;return ret;};}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['29'][1]++;}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['72']++;Y_Node.importMethod=function(host,name,altName){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['11']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['73']++;if(typeof name=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['38'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['74']++;altName=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['39'][0]++,altName)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['39'][1]++,name);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['75']++;Y_Node.addMethod(altName,host[name],host);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['38'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['76']++;Y.Array.each(name,function(n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['12']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['77']++;Y_Node.importMethod(host,n);});}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['78']++;Y_Node.one=function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['13']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['79']++;var instance=null,cachedNode,uid;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['80']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['40'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['81']++;if(typeof node=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['41'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['82']++;node=Y_Node._fromString(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['83']++;if(!node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['42'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['84']++;return null;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['42'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['41'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['85']++;if(node.getDOMNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['43'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['86']++;return node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['43'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['87']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['45'][0]++,node.nodeType)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['45'][1]++,Y.DOM.isWindow(node))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['44'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['88']++;uid=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['47'][0]++,node.uniqueID)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['47'][1]++,node.nodeType!==9)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['46'][0]++,node.uniqueID):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['46'][1]++,node._yuid);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['89']++;if(use_instance_map){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['48'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['90']++;instance=Y_Node._instances[uid];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['48'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['91']++;instance=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['49'][0]++,node._yui_instances)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['49'][1]++,node._yui_instances[Y._yuid]);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['92']++;cachedNode=instance?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['50'][0]++,instance._node):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['50'][1]++,null);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['93']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['52'][0]++,!instance)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['52'][1]++,cachedNode)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['52'][2]++,node!==cachedNode)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['51'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['94']++;instance=new Y_Node(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['95']++;if(node.nodeType!=11){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['53'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['96']++;if(use_instance_map){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['54'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['97']++;Y_Node._instances[instance[UID]]=instance;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['54'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['98']++;if(!node._yui_instances){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['55'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['99']++;node._yui_instances={};}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['55'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['100']++;node._yui_instances[Y._yuid]=instance;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['53'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['51'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['44'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['40'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['101']++;return instance;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['102']++;Y_Node.DEFAULT_SETTER=function(name,val){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['14']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['103']++;var node=this._stateProxy,strPath;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['104']++;if(name.indexOf(DOT)>-1){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['56'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['105']++;strPath=name;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['106']++;name=name.split(DOT);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['107']++;Y.Object.setValue(node,name,val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['56'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['108']++;if(typeof node[name]!='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['57'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['109']++;node[name]=val;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['57'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['110']++;return val;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['111']++;Y_Node.DEFAULT_GETTER=function(name){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['15']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['112']++;var node=this._stateProxy,val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['113']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['59'][0]++,name.indexOf)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['59'][1]++,name.indexOf(DOT)>-1)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['58'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['114']++;val=Y.Object.getValue(node,name.split(DOT));}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['58'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['115']++;if(typeof node[name]!='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['60'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['116']++;val=node[name];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['60'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['117']++;return val;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['118']++;Y.mix(Y_Node.prototype,{DATA_PREFIX:'data-',toString:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['16']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['119']++;var str=this[UID]+': not bound to a node',node=this._node,attrs,id,className;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['120']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['61'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['121']++;attrs=node.attributes;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['122']++;id=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['63'][0]++,attrs)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['63'][1]++,attrs.id)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['62'][0]++,node.getAttribute('id')):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['62'][1]++,null);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['123']++;className=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['65'][0]++,attrs)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['65'][1]++,attrs.className)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['64'][0]++,node.getAttribute('className')):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['64'][1]++,null);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['124']++;str=node[NODE_NAME];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['125']++;if(id){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['66'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['126']++;str+='#'+id;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['66'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['127']++;if(className){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['67'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['128']++;str+='.'+className.replace(' ','.');}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['67'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['129']++;str+=' '+this[UID];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['61'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['130']++;return str;},get:function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['17']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['131']++;var val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['132']++;if(this._getAttr){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['68'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['133']++;val=this._getAttr(attr);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['68'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['134']++;val=this._get(attr);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['135']++;if(val){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['69'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['136']++;val=Y_Node.scrubVal(val,this);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['69'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['137']++;if(val===null){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['70'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['138']++;val=null;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['70'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['139']++;return val;},_get:function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['18']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['140']++;var attrConfig=Y_Node.ATTRS[attr],val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['141']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['72'][0]++,attrConfig)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['72'][1]++,attrConfig.getter)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['71'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['142']++;val=attrConfig.getter.call(this);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['71'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['143']++;if(Y_Node.re_aria.test(attr)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['73'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['144']++;val=this._node.getAttribute(attr,2);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['73'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['145']++;val=Y_Node.DEFAULT_GETTER.apply(this,arguments);}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['146']++;return val;},set:function(attr,val){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['19']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['147']++;var attrConfig=Y_Node.ATTRS[attr];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['148']++;if(this._setAttr){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['74'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['149']++;this._setAttr.apply(this,arguments);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['74'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['150']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['76'][0]++,attrConfig)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['76'][1]++,attrConfig.setter)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['75'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['151']++;attrConfig.setter.call(this,val,attr);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['75'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['152']++;if(Y_Node.re_aria.test(attr)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['77'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['153']++;this._node.setAttribute(attr,val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['77'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['154']++;Y_Node.DEFAULT_SETTER.apply(this,arguments);}}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['155']++;return this;},setAttrs:function(attrMap){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['20']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['156']++;if(this._setAttrs){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['78'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['157']++;this._setAttrs(attrMap);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['78'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['158']++;Y.Object.each(attrMap,function(v,n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['21']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['159']++;this.set(n,v);},this);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['160']++;return this;},getAttrs:function(attrs){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['22']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['161']++;var ret={};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['162']++;if(this._getAttrs){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['79'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['163']++;this._getAttrs(attrs);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['79'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['164']++;Y.Array.each(attrs,function(v,n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['23']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['165']++;ret[v]=this.get(v);},this);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['166']++;return ret;},compareTo:function(refNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['24']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['167']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['168']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['81'][0]++,refNode)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['81'][1]++,refNode._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['80'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['169']++;refNode=refNode._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['80'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['170']++;return node===refNode;},inDoc:function(doc){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['25']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['171']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['172']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['82'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['173']++;doc=doc?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['83'][0]++,(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['84'][0]++,doc._node)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['84'][1]++,doc)):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['83'][1]++,node[OWNER_DOCUMENT]);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['174']++;if(doc.documentElement){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['85'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['175']++;return Y_DOM.contains(doc.documentElement,node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['85'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['82'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['176']++;return false;},getById:function(id){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['26']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['177']++;var node=this._node,ret=Y_DOM.byId(id,node[OWNER_DOCUMENT]);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['178']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['87'][0]++,ret)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['87'][1]++,Y_DOM.contains(node,ret))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['86'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['179']++;ret=Y.one(ret);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['86'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['180']++;ret=null;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['181']++;return ret;},ancestor:function(fn,testSelf,stopFn){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['27']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['182']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['89'][0]++,arguments.length===2)&&((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['89'][1]++,typeof testSelf=='string')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['89'][2]++,typeof testSelf=='function'))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['88'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['183']++;stopFn=testSelf;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['88'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['184']++;return Y.one(Y_DOM.ancestor(this._node,_wrapFn(fn),testSelf,_wrapFn(stopFn)));},ancestors:function(fn,testSelf,stopFn){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['28']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['185']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['91'][0]++,arguments.length===2)&&((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['91'][1]++,typeof testSelf=='string')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['91'][2]++,typeof testSelf=='function'))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['90'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['186']++;stopFn=testSelf;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['90'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['187']++;return Y.all(Y_DOM.ancestors(this._node,_wrapFn(fn),testSelf,_wrapFn(stopFn)));},previous:function(fn,all){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['29']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['188']++;return Y.one(Y_DOM.elementByAxis(this._node,'previousSibling',_wrapFn(fn),all));},next:function(fn,all){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['30']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['189']++;return Y.one(Y_DOM.elementByAxis(this._node,'nextSibling',_wrapFn(fn),all));},siblings:function(fn){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['31']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['190']++;return Y.all(Y_DOM.siblings(this._node,_wrapFn(fn)));},one:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['32']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['191']++;return Y.one(Y.Selector.query(selector,this._node,true));},all:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['33']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['192']++;var nodelist;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['193']++;if(this._node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['92'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['194']++;nodelist=Y.all(Y.Selector.query(selector,this._node));__cov_LGqepiXuzGEZpz3IhlW0rQ.s['195']++;nodelist._query=selector;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['196']++;nodelist._queryRoot=this._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['92'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['197']++;return(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['93'][0]++,nodelist)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['93'][1]++,Y.all([]));},test:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['34']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['198']++;return Y.Selector.test(this._node,selector);},remove:function(destroy){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['35']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['199']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['200']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['95'][0]++,node)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['95'][1]++,node.parentNode)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['94'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['201']++;node.parentNode.removeChild(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['94'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['202']++;if(destroy){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['96'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['203']++;this.destroy();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['96'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['204']++;return this;},replace:function(newNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['36']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['205']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['206']++;if(typeof newNode=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['97'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['207']++;newNode=Y_Node.create(newNode);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['97'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['208']++;node.parentNode.replaceChild(Y_Node.getDOMNode(newNode),node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['209']++;return this;},replaceChild:function(node,refNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['37']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['210']++;if(typeof node=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['98'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['211']++;node=Y_DOM.create(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['98'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['212']++;return Y.one(this._node.replaceChild(Y_Node.getDOMNode(node),Y_Node.getDOMNode(refNode)));},destroy:function(recursive){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['38']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['213']++;var UID=Y.config.doc.uniqueID?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['99'][0]++,'uniqueID'):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['99'][1]++,'_yuid'),instance;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['214']++;this.purge();__cov_LGqepiXuzGEZpz3IhlW0rQ.s['215']++;if(this.unplug){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['100'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['216']++;this.unplug();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['100'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['217']++;this.clearData();__cov_LGqepiXuzGEZpz3IhlW0rQ.s['218']++;if(recursive){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['101'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['219']++;Y.NodeList.each(this.all('*'),function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['39']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['220']++;if(use_instance_map){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['102'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['221']++;instance=Y_Node._instances[node[UID]];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['102'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['222']++;instance=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['103'][0]++,node._yui_instances)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['103'][1]++,node._yui_instances[Y._yuid]);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['223']++;if(instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['104'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['224']++;instance.destroy();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['104'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['225']++;Y.Event.purgeElement(node);}});}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['101'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['226']++;if(this._node._yui_instances){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['105'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['227']++;delete this._node._yui_instances[Y._yuid];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['105'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['228']++;this._node=null;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['229']++;this._stateProxy=null;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['230']++;if(use_instance_map){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['106'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['231']++;delete Y_Node._instances[this._yuid];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['106'][1]++;}},invoke:function(method,a,b,c,d,e){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['40']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['232']++;var node=this._node,ret;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['233']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['108'][0]++,a)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['108'][1]++,a._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['107'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['234']++;a=a._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['107'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['235']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['110'][0]++,b)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['110'][1]++,b._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['109'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['236']++;b=b._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['109'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['237']++;ret=node[method](a,b,c,d,e);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['238']++;return Y_Node.scrubVal(ret,this);},swap:Y.config.doc.documentElement.swapNode?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['111'][0]++,function(otherNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['41']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['239']++;this._node.swapNode(Y_Node.getDOMNode(otherNode));}):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['111'][1]++,function(otherNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['42']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['240']++;otherNode=Y_Node.getDOMNode(otherNode);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['241']++;var node=this._node,parent=otherNode.parentNode,nextSibling=otherNode.nextSibling;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['242']++;if(nextSibling===node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['112'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['243']++;parent.insertBefore(node,otherNode);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['112'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['244']++;if(otherNode===node.nextSibling){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['113'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['245']++;parent.insertBefore(otherNode,node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['113'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['246']++;node.parentNode.replaceChild(otherNode,node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['247']++;Y_DOM.addHTML(parent,node,nextSibling);}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['248']++;return this;}),hasMethod:function(method){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['43']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['249']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['250']++;return!!((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['114'][0]++,node)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['114'][1]++,method in node)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['114'][2]++,typeof node[method]!='unknown')&&((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['114'][3]++,typeof node[method]=='function')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['114'][4]++,String(node[method]).indexOf('function')===1)));},isFragment:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['44']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['251']++;return this.get('nodeType')===11;},empty:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['45']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['252']++;this.get('childNodes').remove().destroy(true);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['253']++;return this;},getDOMNode:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['46']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['254']++;return this._node;}},true);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['255']++;Y.Node=Y_Node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['256']++;Y.one=Y_Node.one;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['257']++;var NodeList=function(nodes){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['47']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['258']++;var tmp=[];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['259']++;if(nodes){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['115'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['260']++;if(typeof nodes==='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['116'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['261']++;this._query=nodes;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['262']++;nodes=Y.Selector.query(nodes);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['116'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['263']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['118'][0]++,nodes.nodeType)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['118'][1]++,Y_DOM.isWindow(nodes))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['117'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['264']++;nodes=[nodes];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['117'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['265']++;if(nodes._node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['119'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['266']++;nodes=[nodes._node];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['119'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['267']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['121'][0]++,nodes[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['121'][1]++,nodes[0]._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['120'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['268']++;Y.Array.each(nodes,function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['48']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['269']++;if(node._node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['122'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['270']++;tmp.push(node._node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['122'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['271']++;nodes=tmp;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['120'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['272']++;nodes=Y.Array(nodes,0,true);}}}}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['115'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['273']++;this._nodes=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['123'][0]++,nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['123'][1]++,[]);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['274']++;NodeList.NAME='NodeList';__cov_LGqepiXuzGEZpz3IhlW0rQ.s['275']++;NodeList.getDOMNodes=function(nodelist){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['49']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['276']++;return(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['125'][0]++,nodelist)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['125'][1]++,nodelist._nodes)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['124'][0]++,nodelist._nodes):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['124'][1]++,nodelist);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['277']++;NodeList.each=function(instance,fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['50']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['278']++;var nodes=instance._nodes;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['279']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['127'][0]++,nodes)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['127'][1]++,nodes.length)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['126'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['280']++;Y.Array.each(nodes,fn,(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['128'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['128'][1]++,instance));}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['126'][1]++;}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['281']++;NodeList.addMethod=function(name,fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['51']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['282']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['130'][0]++,name)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['130'][1]++,fn)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['129'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['283']++;NodeList.prototype[name]=function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['52']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['284']++;var ret=[],args=arguments;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['285']++;Y.Array.each(this._nodes,function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['53']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['286']++;var UID,instance,ctx,result;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['287']++;if(Y.Node._instances){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['131'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['288']++;UID=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['133'][0]++,node.uniqueID)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['133'][1]++,node.nodeType!==9)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['132'][0]++,'uniqueID'):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['132'][1]++,'_yuid');__cov_LGqepiXuzGEZpz3IhlW0rQ.s['289']++;instance=Y.Node._instances[node[UID]];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['131'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['290']++;instance=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['134'][0]++,node._yui_instances)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['134'][1]++,node._yui_instances[Y._yuid]);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['291']++;if(!instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['135'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['292']++;instance=NodeList._getTempNode(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['135'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['293']++;ctx=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['136'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['136'][1]++,instance);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['294']++;result=fn.apply(ctx,args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['295']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['138'][0]++,result!==undefined)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['138'][1]++,result!==instance)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['137'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['296']++;ret[ret.length]=result;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['137'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['297']++;return ret.length?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['139'][0]++,ret):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['139'][1]++,this);};}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['129'][1]++;}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['298']++;NodeList.importMethod=function(host,name,altName){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['54']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['299']++;if(typeof name==='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['140'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['300']++;altName=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['141'][0]++,altName)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['141'][1]++,name);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['301']++;NodeList.addMethod(name,host[name]);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['140'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['302']++;Y.Array.each(name,function(n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['55']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['303']++;NodeList.importMethod(host,n);});}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['304']++;NodeList._getTempNode=function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['56']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['305']++;var tmp=NodeList._tempNode;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['306']++;if(!tmp){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['142'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['307']++;tmp=Y.Node.create('
');__cov_LGqepiXuzGEZpz3IhlW0rQ.s['308']++;NodeList._tempNode=tmp;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['142'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['309']++;tmp._node=node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['310']++;tmp._stateProxy=node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['311']++;return tmp;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['312']++;Y.mix(NodeList.prototype,{_invoke:function(method,args,getter){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['57']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['313']++;var ret=getter?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['143'][0]++,[]):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['143'][1]++,this);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['314']++;this.each(function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['58']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['315']++;var val=node[method].apply(node,args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['316']++;if(getter){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['144'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['317']++;ret.push(val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['144'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['318']++;return ret;},item:function(index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['59']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['319']++;return Y.one(((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['145'][0]++,this._nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['145'][1]++,[]))[index]);},each:function(fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['60']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['320']++;var instance=this;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['321']++;Y.Array.each(this._nodes,function(node,index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['61']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['322']++;node=Y.one(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['323']++;return fn.call((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['146'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['146'][1]++,node),node,index,instance);});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['324']++;return instance;},batch:function(fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['62']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['325']++;var nodelist=this;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['326']++;Y.Array.each(this._nodes,function(node,index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['63']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['327']++;var UID,instance;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['328']++;if(Y.Node._instances){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['147'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['329']++;UID=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['149'][0]++,node.uniqueID)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['149'][1]++,node.nodeType!==9)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['148'][0]++,'uniqueID'):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['148'][1]++,'_yuid');__cov_LGqepiXuzGEZpz3IhlW0rQ.s['330']++;instance=Y.Node._instances[node[UID]];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['147'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['331']++;instance=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['150'][0]++,node._yui_instances)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['150'][1]++,node._yui_instances[Y._yuid]);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['332']++;if(!instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['151'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['333']++;instance=NodeList._getTempNode(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['151'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['334']++;return fn.call((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['152'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['152'][1]++,instance),instance,index,nodelist);});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['335']++;return nodelist;},some:function(fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['64']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['336']++;var instance=this;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['337']++;return Y.Array.some(this._nodes,function(node,index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['65']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['338']++;node=Y.one(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['339']++;context=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['153'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['153'][1]++,node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['340']++;return fn.call(context,node,index,instance);});},toFrag:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['66']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['341']++;return Y.one(Y.DOM._nl2frag(this._nodes));},indexOf:function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['67']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['342']++;return Y.Array.indexOf(this._nodes,Y.Node.getDOMNode(node));},filter:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['68']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['343']++;return Y.all(Y.Selector.filter(this._nodes,selector));},modulus:function(n,r){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['69']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['344']++;r=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['154'][0]++,r)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['154'][1]++,0);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['345']++;var nodes=[];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['346']++;NodeList.each(this,function(node,i){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['70']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['347']++;if(i%n===r){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['155'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['348']++;nodes.push(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['155'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['349']++;return Y.all(nodes);},odd:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['71']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['350']++;return this.modulus(2,1);},even:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['72']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['351']++;return this.modulus(2);},destructor:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['73']++;},refresh:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['74']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['352']++;var doc,nodes=this._nodes,query=this._query,root=this._queryRoot;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['353']++;if(query){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['156'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['354']++;if(!root){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['157'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['355']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['159'][0]++,nodes)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['159'][1]++,nodes[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['159'][2]++,nodes[0].ownerDocument)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['158'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['356']++;root=nodes[0].ownerDocument;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['158'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['157'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['357']++;this._nodes=Y.Selector.query(query,root);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['156'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['358']++;return this;},size:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['75']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['359']++;return this._nodes.length;},isEmpty:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['76']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['360']++;return this._nodes.length<1;},toString:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['77']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['361']++;var str='',errorMsg=this[UID]+': not bound to any nodes',nodes=this._nodes,node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['362']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['161'][0]++,nodes)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['161'][1]++,nodes[0])){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['160'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['363']++;node=nodes[0];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['364']++;str+=node[NODE_NAME];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['365']++;if(node.id){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['162'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['366']++;str+='#'+node.id;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['162'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['367']++;if(node.className){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['163'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['368']++;str+='.'+node.className.replace(' ','.');}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['163'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['369']++;if(nodes.length>1){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['164'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['370']++;str+='...['+nodes.length+' items]';}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['164'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['160'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['371']++;return(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['165'][0]++,str)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['165'][1]++,errorMsg);},getDOMNodes:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['78']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['372']++;return this._nodes;}},true);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['373']++;NodeList.importMethod(Y.Node.prototype,['destroy','empty','remove','set']);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['374']++;NodeList.prototype.get=function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['79']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['375']++;var ret=[],nodes=this._nodes,isNodeList=false,getTemp=NodeList._getTempNode,UID,instance,val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['376']++;if(nodes[0]){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['166'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['377']++;if(Y.Node._instances){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['167'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['378']++;UID=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['169'][0]++,nodes[0].uniqueID)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['169'][1]++,nodes[0].nodeType!==9)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['168'][0]++,'uniqueID'):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['168'][1]++,'_yuid');__cov_LGqepiXuzGEZpz3IhlW0rQ.s['379']++;instance=Y.Node._instances[nodes[0][UID]];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['167'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['380']++;instance=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['170'][0]++,nodes[0]._yui_instances)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['170'][1]++,nodes[0]._yui_instances[Y._yuid]);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['381']++;instance=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['171'][0]++,instance)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['171'][1]++,getTemp(nodes[0]));__cov_LGqepiXuzGEZpz3IhlW0rQ.s['382']++;val=instance._get(attr);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['383']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['173'][0]++,val)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['173'][1]++,val.nodeType)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['172'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['384']++;isNodeList=true;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['172'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['166'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['385']++;Y.Array.each(nodes,function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['80']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['386']++;if(Y.Node._instances){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['174'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['387']++;UID=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['176'][0]++,node.uniqueID)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['176'][1]++,node.nodeType!==9)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['175'][0]++,'uniqueID'):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['175'][1]++,'_yuid');__cov_LGqepiXuzGEZpz3IhlW0rQ.s['388']++;instance=Y.Node._instances[node[UID]];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['174'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['389']++;instance=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['177'][0]++,node._yui_instances)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['177'][1]++,node._yui_instances[Y._yuid]);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['390']++;if(!instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['178'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['391']++;instance=getTemp(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['178'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['392']++;val=instance._get(attr);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['393']++;if(!isNodeList){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['179'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['394']++;val=Y.Node.scrubVal(val,instance);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['179'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['395']++;ret.push(val);});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['396']++;return isNodeList?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['180'][0]++,Y.all(ret)):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['180'][1]++,ret);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['397']++;Y.NodeList=NodeList;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['398']++;Y.all=function(nodes){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['81']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['399']++;return new NodeList(nodes);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['400']++;Y.Node.all=Y.all;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['401']++;var Y_NodeList=Y.NodeList,ArrayProto=Array.prototype,ArrayMethods={'concat':1,'pop':0,'push':0,'shift':0,'slice':1,'splice':1,'unshift':0};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['402']++;Y.Object.each(ArrayMethods,function(returnNodeList,name){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['82']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['403']++;Y_NodeList.prototype[name]=function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['83']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['404']++;var args=[],i=0,arg,ret;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['405']++;while(typeof(arg=arguments[i++])!='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.s['406']++;args.push((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['181'][0]++,arg._node)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['181'][1]++,arg._nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['181'][2]++,arg));}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['407']++;ret=ArrayProto[name].apply(this._nodes,args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['408']++;if(returnNodeList){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['182'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['409']++;ret=Y.all(ret);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['182'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['410']++;ret=Y.Node.scrubVal(ret);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['411']++;return ret;};});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['412']++;Y.Array.each(['removeChild','hasChildNodes','cloneNode','hasAttribute','scrollIntoView','getElementsByTagName','focus','blur','submit','reset','select','createCaption'],function(method){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['84']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['413']++;Y.Node.prototype[method]=function(arg1,arg2,arg3){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['85']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['414']++;var ret=this.invoke(method,arg1,arg2,arg3);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['415']++;return ret;};});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['416']++;Y.Node.prototype.removeAttribute=function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['86']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['417']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['418']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['183'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['419']++;node.removeAttribute(attr,0);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['183'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['420']++;return this;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['421']++;Y.Node.importMethod(Y.DOM,['contains','setAttribute','getAttribute','wrap','unwrap','generateID']);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['422']++;Y.NodeList.importMethod(Y.Node.prototype,['getAttribute','setAttribute','removeAttribute','unwrap','wrap','generateID']);},'@VERSION@',{'requires':['dom-core','selector']}); +__cov_LGqepiXuzGEZpz3IhlW0rQ.s['1']++;YUI.add('node-core',function(Y,NAME){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['1']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['2']++;var DOT='.',NODE_NAME='nodeName',NODE_TYPE='nodeType',OWNER_DOCUMENT='ownerDocument',TAG_NAME='tagName',UID='_yuid',EMPTY_OBJ={},use_instance_map=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['1'][0]++,0-1){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['57'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['105']++;strPath=name;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['106']++;name=name.split(DOT);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['107']++;Y.Object.setValue(node,name,val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['57'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['108']++;if(typeof node[name]!='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['58'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['109']++;node[name]=val;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['58'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['110']++;return val;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['111']++;Y_Node.DEFAULT_GETTER=function(name){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['15']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['112']++;var node=this._stateProxy,val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['113']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['60'][0]++,name.indexOf)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['60'][1]++,name.indexOf(DOT)>-1)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['59'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['114']++;val=Y.Object.getValue(node,name.split(DOT));}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['59'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['115']++;if(typeof node[name]!='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['61'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['116']++;val=node[name];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['61'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['117']++;return val;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['118']++;Y.mix(Y_Node.prototype,{DATA_PREFIX:'data-',toString:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['16']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['119']++;var str=this[UID]+': not bound to a node',node=this._node,attrs,id,className;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['120']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['62'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['121']++;attrs=node.attributes;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['122']++;id=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['64'][0]++,attrs)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['64'][1]++,attrs.id)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['63'][0]++,node.getAttribute('id')):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['63'][1]++,null);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['123']++;className=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['66'][0]++,attrs)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['66'][1]++,attrs.className)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['65'][0]++,node.getAttribute('className')):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['65'][1]++,null);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['124']++;str=node[NODE_NAME];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['125']++;if(id){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['67'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['126']++;str+='#'+id;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['67'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['127']++;if(className){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['68'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['128']++;str+='.'+className.replace(' ','.');}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['68'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['129']++;str+=' '+this[UID];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['62'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['130']++;return str;},get:function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['17']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['131']++;var val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['132']++;if(this._getAttr){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['69'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['133']++;val=this._getAttr(attr);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['69'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['134']++;val=this._get(attr);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['135']++;if(val){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['70'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['136']++;val=Y_Node.scrubVal(val,this);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['70'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['137']++;if(val===null){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['71'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['138']++;val=null;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['71'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['139']++;return val;},_get:function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['18']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['140']++;var attrConfig=Y_Node.ATTRS[attr],val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['141']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['73'][0]++,attrConfig)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['73'][1]++,attrConfig.getter)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['72'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['142']++;val=attrConfig.getter.call(this);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['72'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['143']++;if(Y_Node.re_aria.test(attr)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['74'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['144']++;val=this._node.getAttribute(attr,2);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['74'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['145']++;val=Y_Node.DEFAULT_GETTER.apply(this,arguments);}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['146']++;return val;},set:function(attr,val){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['19']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['147']++;var attrConfig=Y_Node.ATTRS[attr];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['148']++;if(this._setAttr){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['75'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['149']++;this._setAttr.apply(this,arguments);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['75'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['150']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['77'][0]++,attrConfig)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['77'][1]++,attrConfig.setter)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['76'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['151']++;attrConfig.setter.call(this,val,attr);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['76'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['152']++;if(Y_Node.re_aria.test(attr)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['78'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['153']++;this._node.setAttribute(attr,val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['78'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['154']++;Y_Node.DEFAULT_SETTER.apply(this,arguments);}}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['155']++;return this;},setAttrs:function(attrMap){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['20']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['156']++;if(this._setAttrs){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['79'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['157']++;this._setAttrs(attrMap);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['79'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['158']++;Y.Object.each(attrMap,function(v,n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['21']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['159']++;this.set(n,v);},this);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['160']++;return this;},getAttrs:function(attrs){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['22']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['161']++;var ret={};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['162']++;if(this._getAttrs){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['80'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['163']++;this._getAttrs(attrs);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['80'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['164']++;Y.Array.each(attrs,function(v,n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['23']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['165']++;ret[v]=this.get(v);},this);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['166']++;return ret;},compareTo:function(refNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['24']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['167']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['168']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['82'][0]++,refNode)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['82'][1]++,refNode._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['81'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['169']++;refNode=refNode._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['81'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['170']++;return node===refNode;},inDoc:function(doc){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['25']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['171']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['172']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['83'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['173']++;doc=doc?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['84'][0]++,(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['85'][0]++,doc._node)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['85'][1]++,doc)):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['84'][1]++,node[OWNER_DOCUMENT]);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['174']++;if(doc.documentElement){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['86'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['175']++;return Y_DOM.contains(doc.documentElement,node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['86'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['83'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['176']++;return false;},getById:function(id){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['26']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['177']++;var node=this._node,ret=Y_DOM.byId(id,node[OWNER_DOCUMENT]);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['178']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['88'][0]++,ret)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['88'][1]++,Y_DOM.contains(node,ret))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['87'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['179']++;ret=Y.one(ret);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['87'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['180']++;ret=null;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['181']++;return ret;},ancestor:function(fn,testSelf,stopFn){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['27']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['182']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['90'][0]++,arguments.length===2)&&((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['90'][1]++,typeof testSelf=='string')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['90'][2]++,typeof testSelf=='function'))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['89'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['183']++;stopFn=testSelf;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['89'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['184']++;return Y.one(Y_DOM.ancestor(this._node,_wrapFn(fn),testSelf,_wrapFn(stopFn)));},ancestors:function(fn,testSelf,stopFn){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['28']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['185']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['92'][0]++,arguments.length===2)&&((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['92'][1]++,typeof testSelf=='string')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['92'][2]++,typeof testSelf=='function'))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['91'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['186']++;stopFn=testSelf;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['91'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['187']++;return Y.all(Y_DOM.ancestors(this._node,_wrapFn(fn),testSelf,_wrapFn(stopFn)));},previous:function(fn,all){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['29']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['188']++;return Y.one(Y_DOM.elementByAxis(this._node,'previousSibling',_wrapFn(fn),all));},next:function(fn,all){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['30']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['189']++;return Y.one(Y_DOM.elementByAxis(this._node,'nextSibling',_wrapFn(fn),all));},siblings:function(fn){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['31']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['190']++;return Y.all(Y_DOM.siblings(this._node,_wrapFn(fn)));},one:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['32']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['191']++;return Y.one(Y.Selector.query(selector,this._node,true));},all:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['33']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['192']++;var nodelist;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['193']++;if(this._node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['93'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['194']++;nodelist=Y.all(Y.Selector.query(selector,this._node));__cov_LGqepiXuzGEZpz3IhlW0rQ.s['195']++;nodelist._query=selector;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['196']++;nodelist._queryRoot=this._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['93'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['197']++;return(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['94'][0]++,nodelist)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['94'][1]++,Y.all([]));},test:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['34']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['198']++;return Y.Selector.test(this._node,selector);},remove:function(destroy){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['35']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['199']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['200']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['96'][0]++,node)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['96'][1]++,node.parentNode)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['95'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['201']++;node.parentNode.removeChild(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['95'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['202']++;if(destroy){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['97'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['203']++;this.destroy();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['97'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['204']++;return this;},replace:function(newNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['36']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['205']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['206']++;if(typeof newNode=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['98'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['207']++;newNode=Y_Node.create(newNode);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['98'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['208']++;node.parentNode.replaceChild(Y_Node.getDOMNode(newNode),node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['209']++;return this;},replaceChild:function(node,refNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['37']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['210']++;if(typeof node=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['99'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['211']++;node=Y_DOM.create(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['99'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['212']++;return Y.one(this._node.replaceChild(Y_Node.getDOMNode(node),Y_Node.getDOMNode(refNode)));},destroy:function(recursive){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['38']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['213']++;var UID=Y.config.doc.uniqueID?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['100'][0]++,'uniqueID'):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['100'][1]++,'_yuid'),instance;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['214']++;this.purge();__cov_LGqepiXuzGEZpz3IhlW0rQ.s['215']++;if(this.unplug){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['101'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['216']++;this.unplug();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['101'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['217']++;this.clearData();__cov_LGqepiXuzGEZpz3IhlW0rQ.s['218']++;if(recursive){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['102'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['219']++;Y.NodeList.each(this.all('*'),function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['39']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['220']++;if(use_instance_map){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['103'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['221']++;instance=Y_Node._instances[node[UID]];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['103'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['222']++;instance=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['104'][0]++,node._yui_instances)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['104'][1]++,node._yui_instances[Y._yuid]);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['223']++;if(instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['105'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['224']++;instance.destroy();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['105'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['225']++;Y.Event.purgeElement(node);}});}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['102'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['226']++;if(this._node._yui_instances){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['106'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['227']++;delete this._node._yui_instances[Y._yuid];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['106'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['228']++;this._node=null;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['229']++;this._stateProxy=null;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['230']++;if(use_instance_map){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['107'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['231']++;delete Y_Node._instances[this[UID]];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['107'][1]++;}},invoke:function(method,a,b,c,d,e){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['40']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['232']++;var node=this._node,ret;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['233']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['109'][0]++,a)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['109'][1]++,a._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['108'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['234']++;a=a._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['108'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['235']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['111'][0]++,b)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['111'][1]++,b._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['110'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['236']++;b=b._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['110'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['237']++;ret=node[method](a,b,c,d,e);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['238']++;return Y_Node.scrubVal(ret,this);},swap:Y.config.doc.documentElement.swapNode?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['112'][0]++,function(otherNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['41']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['239']++;this._node.swapNode(Y_Node.getDOMNode(otherNode));}):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['112'][1]++,function(otherNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['42']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['240']++;otherNode=Y_Node.getDOMNode(otherNode);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['241']++;var node=this._node,parent=otherNode.parentNode,nextSibling=otherNode.nextSibling;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['242']++;if(nextSibling===node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['113'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['243']++;parent.insertBefore(node,otherNode);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['113'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['244']++;if(otherNode===node.nextSibling){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['114'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['245']++;parent.insertBefore(otherNode,node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['114'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['246']++;node.parentNode.replaceChild(otherNode,node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['247']++;Y_DOM.addHTML(parent,node,nextSibling);}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['248']++;return this;}),hasMethod:function(method){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['43']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['249']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['250']++;return!!((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['115'][0]++,node)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['115'][1]++,method in node)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['115'][2]++,typeof node[method]!='unknown')&&((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['115'][3]++,typeof node[method]=='function')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['115'][4]++,String(node[method]).indexOf('function')===1)));},isFragment:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['44']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['251']++;return this.get('nodeType')===11;},empty:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['45']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['252']++;this.get('childNodes').remove().destroy(true);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['253']++;return this;},getDOMNode:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['46']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['254']++;return this._node;}},true);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['255']++;Y.Node=Y_Node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['256']++;Y.one=Y_Node.one;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['257']++;var NodeList=function(nodes){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['47']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['258']++;var tmp=[];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['259']++;if(nodes){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['116'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['260']++;if(typeof nodes==='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['117'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['261']++;this._query=nodes;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['262']++;nodes=Y.Selector.query(nodes);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['117'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['263']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['119'][0]++,nodes.nodeType)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['119'][1]++,Y_DOM.isWindow(nodes))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['118'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['264']++;nodes=[nodes];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['118'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['265']++;if(nodes._node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['120'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['266']++;nodes=[nodes._node];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['120'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['267']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['122'][0]++,nodes[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['122'][1]++,nodes[0]._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['121'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['268']++;Y.Array.each(nodes,function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['48']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['269']++;if(node._node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['123'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['270']++;tmp.push(node._node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['123'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['271']++;nodes=tmp;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['121'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['272']++;nodes=Y.Array(nodes,0,true);}}}}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['116'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['273']++;this._nodes=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['124'][0]++,nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['124'][1]++,[]);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['274']++;NodeList.NAME='NodeList';__cov_LGqepiXuzGEZpz3IhlW0rQ.s['275']++;NodeList.getDOMNodes=function(nodelist){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['49']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['276']++;return(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['126'][0]++,nodelist)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['126'][1]++,nodelist._nodes)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['125'][0]++,nodelist._nodes):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['125'][1]++,nodelist);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['277']++;NodeList.each=function(instance,fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['50']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['278']++;var nodes=instance._nodes;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['279']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['128'][0]++,nodes)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['128'][1]++,nodes.length)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['127'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['280']++;Y.Array.each(nodes,fn,(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['129'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['129'][1]++,instance));}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['127'][1]++;}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['281']++;NodeList.addMethod=function(name,fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['51']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['282']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['131'][0]++,name)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['131'][1]++,fn)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['130'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['283']++;NodeList.prototype[name]=function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['52']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['284']++;var ret=[],args=arguments;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['285']++;Y.Array.each(this._nodes,function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['53']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['286']++;var uid,instance,ctx,result;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['287']++;if(Y.Node._instances){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['132'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['288']++;uid=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['134'][0]++,node.uniqueID)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['134'][1]++,node.nodeType!==9)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['133'][0]++,node.uniqueID):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['133'][1]++,node[UID]);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['289']++;instance=Y.Node._instances[uid];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['132'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['290']++;instance=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['135'][0]++,node._yui_instances)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['135'][1]++,node._yui_instances[Y._yuid]);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['291']++;if(!instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['136'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['292']++;instance=NodeList._getTempNode(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['136'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['293']++;ctx=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['137'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['137'][1]++,instance);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['294']++;result=fn.apply(ctx,args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['295']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['139'][0]++,result!==undefined)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['139'][1]++,result!==instance)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['138'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['296']++;ret[ret.length]=result;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['138'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['297']++;return ret.length?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['140'][0]++,ret):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['140'][1]++,this);};}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['130'][1]++;}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['298']++;NodeList.importMethod=function(host,name,altName){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['54']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['299']++;if(typeof name==='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['141'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['300']++;altName=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['142'][0]++,altName)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['142'][1]++,name);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['301']++;NodeList.addMethod(name,host[name]);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['141'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['302']++;Y.Array.each(name,function(n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['55']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['303']++;NodeList.importMethod(host,n);});}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['304']++;NodeList._getTempNode=function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['56']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['305']++;var tmp=NodeList._tempNode;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['306']++;if(!tmp){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['143'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['307']++;tmp=Y.Node.create('
');__cov_LGqepiXuzGEZpz3IhlW0rQ.s['308']++;NodeList._tempNode=tmp;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['143'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['309']++;tmp._node=node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['310']++;tmp._stateProxy=node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['311']++;return tmp;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['312']++;Y.mix(NodeList.prototype,{_invoke:function(method,args,getter){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['57']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['313']++;var ret=getter?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['144'][0]++,[]):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['144'][1]++,this);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['314']++;this.each(function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['58']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['315']++;var val=node[method].apply(node,args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['316']++;if(getter){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['145'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['317']++;ret.push(val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['145'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['318']++;return ret;},item:function(index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['59']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['319']++;return Y.one(((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['146'][0]++,this._nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['146'][1]++,[]))[index]);},each:function(fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['60']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['320']++;var instance=this;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['321']++;Y.Array.each(this._nodes,function(node,index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['61']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['322']++;node=Y.one(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['323']++;return fn.call((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['147'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['147'][1]++,node),node,index,instance);});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['324']++;return instance;},batch:function(fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['62']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['325']++;var nodelist=this;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['326']++;Y.Array.each(this._nodes,function(node,index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['63']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['327']++;var uid,instance;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['328']++;if(Y.Node._instances){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['148'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['329']++;uid=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['150'][0]++,node.uniqueID)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['150'][1]++,node.nodeType!==9)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['149'][0]++,node.uniqueID):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['149'][1]++,node[UID]);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['330']++;instance=Y.Node._instances[uid];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['148'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['331']++;instance=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['151'][0]++,node._yui_instances)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['151'][1]++,node._yui_instances[Y._yuid]);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['332']++;if(!instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['152'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['333']++;instance=NodeList._getTempNode(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['152'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['334']++;return fn.call((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['153'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['153'][1]++,instance),instance,index,nodelist);});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['335']++;return nodelist;},some:function(fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['64']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['336']++;var instance=this;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['337']++;return Y.Array.some(this._nodes,function(node,index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['65']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['338']++;node=Y.one(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['339']++;context=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['154'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['154'][1]++,node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['340']++;return fn.call(context,node,index,instance);});},toFrag:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['66']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['341']++;return Y.one(Y.DOM._nl2frag(this._nodes));},indexOf:function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['67']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['342']++;return Y.Array.indexOf(this._nodes,Y.Node.getDOMNode(node));},filter:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['68']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['343']++;return Y.all(Y.Selector.filter(this._nodes,selector));},modulus:function(n,r){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['69']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['344']++;r=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['155'][0]++,r)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['155'][1]++,0);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['345']++;var nodes=[];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['346']++;NodeList.each(this,function(node,i){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['70']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['347']++;if(i%n===r){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['156'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['348']++;nodes.push(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['156'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['349']++;return Y.all(nodes);},odd:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['71']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['350']++;return this.modulus(2,1);},even:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['72']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['351']++;return this.modulus(2);},destructor:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['73']++;},refresh:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['74']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['352']++;var doc,nodes=this._nodes,query=this._query,root=this._queryRoot;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['353']++;if(query){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['157'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['354']++;if(!root){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['158'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['355']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['160'][0]++,nodes)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['160'][1]++,nodes[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['160'][2]++,nodes[0].ownerDocument)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['159'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['356']++;root=nodes[0].ownerDocument;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['159'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['158'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['357']++;this._nodes=Y.Selector.query(query,root);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['157'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['358']++;return this;},size:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['75']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['359']++;return this._nodes.length;},isEmpty:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['76']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['360']++;return this._nodes.length<1;},toString:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['77']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['361']++;var str='',errorMsg=this[UID]+': not bound to any nodes',nodes=this._nodes,node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['362']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['162'][0]++,nodes)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['162'][1]++,nodes[0])){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['161'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['363']++;node=nodes[0];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['364']++;str+=node[NODE_NAME];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['365']++;if(node.id){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['163'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['366']++;str+='#'+node.id;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['163'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['367']++;if(node.className){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['164'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['368']++;str+='.'+node.className.replace(' ','.');}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['164'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['369']++;if(nodes.length>1){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['165'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['370']++;str+='...['+nodes.length+' items]';}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['165'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['161'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['371']++;return(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['166'][0]++,str)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['166'][1]++,errorMsg);},getDOMNodes:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['78']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['372']++;return this._nodes;}},true);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['373']++;NodeList.importMethod(Y.Node.prototype,['destroy','empty','remove','set']);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['374']++;NodeList.prototype.get=function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['79']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['375']++;var ret=[],nodes=this._nodes,isNodeList=false,getTemp=NodeList._getTempNode,uid,instance,val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['376']++;if(nodes[0]){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['167'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['377']++;if(Y.Node._instances){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['168'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['378']++;uid=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['170'][0]++,nodes[0].uniqueID)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['170'][1]++,nodes[0].nodeType!==9)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['169'][0]++,nodes[0].uniqueID):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['169'][1]++,nodes[0][UID]);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['379']++;instance=Y.Node._instances[uid];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['168'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['380']++;instance=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['171'][0]++,nodes[0]._yui_instances)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['171'][1]++,nodes[0]._yui_instances[Y._yuid]);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['381']++;instance=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['172'][0]++,instance)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['172'][1]++,getTemp(nodes[0]));__cov_LGqepiXuzGEZpz3IhlW0rQ.s['382']++;val=instance._get(attr);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['383']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['174'][0]++,val)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['174'][1]++,val.nodeType)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['173'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['384']++;isNodeList=true;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['173'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['167'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['385']++;Y.Array.each(nodes,function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['80']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['386']++;if(Y.Node._instances){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['175'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['387']++;uid=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['177'][0]++,node.uniqueID)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['177'][1]++,node.nodeType!==9)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['176'][0]++,node.uniqueID):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['176'][1]++,node[UID]);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['388']++;instance=Y.Node._instances[uid];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['175'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['389']++;instance=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['178'][0]++,node._yui_instances)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['178'][1]++,node._yui_instances[Y._yuid]);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['390']++;if(!instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['179'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['391']++;instance=getTemp(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['179'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['392']++;val=instance._get(attr);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['393']++;if(!isNodeList){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['180'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['394']++;val=Y.Node.scrubVal(val,instance);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['180'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['395']++;ret.push(val);});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['396']++;return isNodeList?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['181'][0]++,Y.all(ret)):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['181'][1]++,ret);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['397']++;Y.NodeList=NodeList;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['398']++;Y.all=function(nodes){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['81']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['399']++;return new NodeList(nodes);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['400']++;Y.Node.all=Y.all;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['401']++;var Y_NodeList=Y.NodeList,ArrayProto=Array.prototype,ArrayMethods={'concat':1,'pop':0,'push':0,'shift':0,'slice':1,'splice':1,'unshift':0};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['402']++;Y.Object.each(ArrayMethods,function(returnNodeList,name){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['82']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['403']++;Y_NodeList.prototype[name]=function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['83']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['404']++;var args=[],i=0,arg,ret;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['405']++;while(typeof(arg=arguments[i++])!='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.s['406']++;args.push((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['182'][0]++,arg._node)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['182'][1]++,arg._nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['182'][2]++,arg));}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['407']++;ret=ArrayProto[name].apply(this._nodes,args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['408']++;if(returnNodeList){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['183'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['409']++;ret=Y.all(ret);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['183'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['410']++;ret=Y.Node.scrubVal(ret);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['411']++;return ret;};});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['412']++;Y.Array.each(['removeChild','hasChildNodes','cloneNode','hasAttribute','scrollIntoView','getElementsByTagName','focus','blur','submit','reset','select','createCaption'],function(method){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['84']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['413']++;Y.Node.prototype[method]=function(arg1,arg2,arg3){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['85']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['414']++;var ret=this.invoke(method,arg1,arg2,arg3);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['415']++;return ret;};});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['416']++;Y.Node.prototype.removeAttribute=function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['86']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['417']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['418']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['184'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['419']++;node.removeAttribute(attr,0);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['184'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['420']++;return this;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['421']++;Y.Node.importMethod(Y.DOM,['contains','setAttribute','getAttribute','wrap','unwrap','generateID']);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['422']++;Y.NodeList.importMethod(Y.Node.prototype,['getAttribute','setAttribute','removeAttribute','unwrap','wrap','generateID']);},'@VERSION@',{'requires':['dom-core','selector']}); diff --git a/build/node-core/node-core-debug.js b/build/node-core/node-core-debug.js index dac2465b655..aaab6c08536 100644 --- a/build/node-core/node-core-debug.js +++ b/build/node-core/node-core-debug.js @@ -30,7 +30,7 @@ var DOT = '.', UID = '_yuid', EMPTY_OBJ = {}, - use_instance_map = Y.UA.ie > 0, // define flag, in case other browsers need it, too + use_instance_map = 0 < Y.UA.ie && Y.UA.ie < 10, // define flag, in case other browsers need it, too _slice = Array.prototype.slice, @@ -294,8 +294,8 @@ Y_Node.one = function(node) { } if (node.nodeType || Y.DOM.isWindow(node)) { // avoid bad input (numbers, boolean, etc) - uid = (node.uniqueID && node.nodeType !== 9) ? node.uniqueID : node._yuid; if (use_instance_map) { + uid = (node.uniqueID && node.nodeType !== 9) ? node.uniqueID : node[UID]; instance = Y_Node._instances[uid]; // reuse exising instances } else { instance = node._yui_instances && node._yui_instances[Y._yuid]; // reuse exising instances @@ -303,7 +303,7 @@ Y_Node.one = function(node) { cachedNode = instance ? instance._node : null; if (!instance || (cachedNode && node !== cachedNode)) { // new Node when nodes don't match instance = new Y_Node(node); - if (node.nodeType != 11) { // dont cache document fragment + if (node.nodeType != 11) { // don't cache document fragment if (use_instance_map) { Y_Node._instances[instance[UID]] = instance; // cache node } else { @@ -393,7 +393,6 @@ Y.mix(Y_Node.prototype, { str += '.' + className.replace(' ', '.'); } - // TODO: add yuid? str += ' ' + this[UID]; } return str; @@ -784,7 +783,7 @@ Y.mix(Y_Node.prototype, { this._stateProxy = null; if (use_instance_map) { - delete Y_Node._instances[this._yuid]; + delete Y_Node._instances[this[UID]]; } }, @@ -954,14 +953,14 @@ NodeList.addMethod = function(name, fn, context) { args = arguments; Y.Array.each(this._nodes, function(node) { - var UID, + var uid, instance, ctx, result; if (Y.Node._instances) { - UID = (node.uniqueID && node.nodeType !== 9 ) ? 'uniqueID' : '_yuid'; - instance = Y.Node._instances[node[UID]]; + uid = (node.uniqueID && node.nodeType !== 9 ) ? node.uniqueID : node[UID]; + instance = Y.Node._instances[uid]; } else { instance = node._yui_instances && node._yui_instances[Y._yuid]; } @@ -1054,12 +1053,12 @@ Y.mix(NodeList.prototype, { var nodelist = this; Y.Array.each(this._nodes, function(node, index) { - var UID, + var uid, instance; if (Y.Node._instances) { - UID = (node.uniqueID && node.nodeType !== 9 ) ? 'uniqueID' : '_yuid'; - instance = Y.Node._instances[node[UID]]; + uid = (node.uniqueID && node.nodeType !== 9 ) ? node.uniqueID : node[UID]; + instance = Y.Node._instances[uid]; } else { instance = node._yui_instances && node._yui_instances[Y._yuid]; } @@ -1301,14 +1300,14 @@ NodeList.prototype.get = function(attr) { nodes = this._nodes, isNodeList = false, getTemp = NodeList._getTempNode, - UID, + uid, instance, val; if (nodes[0]) { if (Y.Node._instances) { - UID = (nodes[0].uniqueID && nodes[0].nodeType !== 9 ) ? 'uniqueID' : '_yuid'; - instance = Y.Node._instances[nodes[0][UID]]; + uid = (nodes[0].uniqueID && nodes[0].nodeType !== 9 ) ? nodes[0].uniqueID : nodes[0][UID]; + instance = Y.Node._instances[uid]; } else { instance = nodes[0]._yui_instances && nodes[0]._yui_instances[Y._yuid]; } @@ -1322,8 +1321,8 @@ NodeList.prototype.get = function(attr) { Y.Array.each(nodes, function(node) { if (Y.Node._instances) { - UID = (node.uniqueID && node.nodeType !== 9 ) ? 'uniqueID' : '_yuid'; - instance = Y.Node._instances[node[UID]]; + uid = (node.uniqueID && node.nodeType !== 9 ) ? node.uniqueID : node[UID]; + instance = Y.Node._instances[uid]; } else { instance = node._yui_instances && node._yui_instances[Y._yuid]; } diff --git a/build/node-core/node-core-min.js b/build/node-core/node-core-min.js index 0556d889a76..a60379bc022 100644 --- a/build/node-core/node-core-min.js +++ b/build/node-core/node-core-min.js @@ -1,2 +1,2 @@ -YUI.add("node-core",function(e,t){var n=".",r="nodeName",i="nodeType",s="ownerDocument",o="tagName",u="_yuid",a={},f=e.UA.ie>0,l=Array.prototype.slice,c=e.DOM,h=function(t){if(!this.getDOMNode)return new h(t);if(typeof t=="string"){t=h._fromString(t);if(!t)return null}var n=t.nodeType!==9?t.uniqueID:t[u];f&&n&&h._instances[n]&&h._instances[n]._node!==t&&(t[u]=null),n=n||e.stamp(t),n||(n=e.guid()),this[u]=n,this._node=t,this._stateProxy=t,this._initPlugins&&this._initPlugins()},p=function(t){var n=null;return t&&(n=typeof t=="string"?function(n){return e.Selector.test(n,t)}:function(n){return t(e.one(n))}),n};h.ATTRS={},h.DOM_EVENTS={},h._fromString=function(t){return t&&(t.indexOf("doc")===0?t=e.config.doc:t.indexOf("win")===0?t=e.config.win:t=e.Selector.query(t,null,!0)),t||null},h.NAME="node",h.re_aria=/^(?:role$|aria-)/,h.SHOW_TRANSITION="fadeIn",h.HIDE_TRANSITION="fadeOut",f&&(h._instances={}),h.getDOMNode=function(e){return e?e.nodeType?e:e._node||null:null},h.scrubVal=function(t,n){if(t){if(typeof t=="object"||typeof t=="function")if(i in t||c.isWindow(t))t=e.one(t);else if(t.item&&!t._nodes||t[0]&&t[0][i])t=e.all(t)}else typeof t=="undefined"?t=n:t===null&&(t=null);return t},h.addMethod=function(e,t,n){e&&t&&typeof t=="function"&&(h.prototype[e]=function(){var e=l.call(arguments),r=this,i;return e[0]&&e[0]._node&&(e[0]=e[0]._node),e[1]&&e[1]._node&&(e[1]=e[1]._node),e.unshift(r._node),i=t.apply(n||r,e),i&&(i=h.scrubVal(i,r)),typeof i!="undefined"||(i=r),i})},h.importMethod=function(t,n,r){typeof n=="string"?(r=r||n,h.addMethod(r,t[n],t)):e.Array.each(n,function(e){h.importMethod(t,e)})},h.one=function(t){var n=null,r,i;if(t){if(typeof t=="string"){t=h._fromString(t);if(!t)return null}else if(t.getDOMNode)return t;if(t.nodeType||e.DOM.isWindow(t)){i=t.uniqueID&&t.nodeType!==9?t.uniqueID:t._yuid,f?n=h._instances[i]:n=t._yui_instances&&t._yui_instances[e._yuid],r=n?n._node:null;if(!n||r&&t!==r)n=new h(t),t.nodeType!=11&&(f?h._instances[n[u]]=n:(t._yui_instances||(t._yui_instances={}),t._yui_instances[e._yuid]=n))}}return n},h.DEFAULT_SETTER=function(t,r){var i=this._stateProxy,s;return t.indexOf(n)>-1?(s=t,t=t.split(n),e.Object.setValue(i,t,r)):typeof i[t]!="undefined"&&(i[t]=r),r},h.DEFAULT_GETTER=function(t){var r=this._stateProxy,i;return t.indexOf&&t.indexOf(n)>-1?i=e.Object.getValue(r,t.split(n)):typeof r[t]!="undefined"&&(i=r[t]),i},e.mix(h.prototype,{DATA_PREFIX:"data-",toString:function(){var e=this[u]+": not bound to a node",t=this._node,n,i,s;return t&&(n=t.attributes,i=n&&n.id?t.getAttribute("id"):null,s=n&&n.className?t.getAttribute("className"):null,e=t[r],i&&(e+="#"+i),s&&(e+="."+s.replace(" ",".")),e+=" "+this[u]),e},get:function(e){var t;return this._getAttr?t=this._getAttr(e):t=this._get(e),t?t=h.scrubVal(t,this):t===null&&(t=null),t},_get:function(e){var t=h.ATTRS[e],n;return t&&t.getter?n=t.getter.call(this):h.re_aria.test(e)?n=this._node.getAttribute(e,2):n=h.DEFAULT_GETTER.apply(this,arguments),n},set:function(e,t){var n=h.ATTRS[e];return this._setAttr?this._setAttr.apply(this,arguments):n&&n.setter?n.setter.call(this,t,e):h.re_aria.test(e)?this._node.setAttribute(e,t):h.DEFAULT_SETTER.apply(this,arguments),this},setAttrs:function(t){return this._setAttrs?this._setAttrs(t):e.Object.each(t,function(e,t){this.set(t,e)},this),this},getAttrs:function(t){var n={};return this._getAttrs?this._getAttrs(t):e.Array.each(t,function(e,t){n[e]=this.get(e)},this),n},compareTo:function(e){var t=this._node;return e&&e._node&&(e=e._node),t===e},inDoc:function(e){var t=this._node;if(t){e=e?e._node||e:t[s];if(e.documentElement)return c.contains(e.documentElement,t)}return!1},getById:function(t){var n=this._node,r=c.byId(t,n[s]);return r&&c.contains(n,r)?r=e.one(r):r=null,r},ancestor:function(t,n,r){return arguments.length===2&&(typeof n=="string"||typeof n=="function")&&(r=n),e.one(c.ancestor(this._node,p(t),n,p(r)))},ancestors:function(t,n,r){return arguments.length===2&&(typeof n=="string"||typeof n=="function")&&(r=n),e.all(c.ancestors(this._node,p(t),n,p(r)))},previous:function(t,n){return e.one(c.elementByAxis(this._node,"previousSibling",p(t),n))},next:function(t,n){return e.one(c.elementByAxis(this._node,"nextSibling",p(t),n))},siblings:function(t){return e.all(c.siblings(this._node,p(t)))},one:function(t){return e.one(e.Selector.query(t,this._node,!0))},all:function(t){var n;return this._node&&(n=e.all(e.Selector.query(t,this._node)),n._query=t,n._queryRoot=this._node),n||e.all([])},test:function(t){return e.Selector.test(this._node,t)},remove:function(e){var t=this._node;return t&&t.parentNode&&t.parentNode.removeChild(t),e&&this.destroy(),this},replace:function(e){var t=this._node;return typeof e=="string"&&(e=h.create(e)),t.parentNode.replaceChild(h.getDOMNode(e),t),this},replaceChild:function(t,n){return typeof t=="string"&&(t=c.create(t)),e.one(this._node.replaceChild(h.getDOMNode(t),h.getDOMNode(n)))},destroy:function(t){var n=e.config.doc.uniqueID?"uniqueID":"_yuid",r;this.purge(),this.unplug&&this.unplug(),this.clearData(),t&&e.NodeList.each(this.all("*"),function(t){f?r=h._instances[t[n]]:r=t._yui_instances&&t._yui_instances[e._yuid],r?r.destroy():e.Event.purgeElement(t)}),this._node._yui_instances&&delete this._node._yui_instances[e._yuid],this._node=null,this._stateProxy=null,f&&delete h._instances[this._yuid]},invoke:function(e,t,n,r,i,s){var o=this._node,u;return t&&t._node&&(t=t._node),n&&n._node&&(n=n._node),u=o[e](t,n,r,i,s),h.scrubVal(u,this)},swap:e.config.doc.documentElement.swapNode?function(e){this._node.swapNode(h.getDOMNode(e))}:function(e){e=h.getDOMNode(e);var t=this._node,n=e.parentNode,r=e.nextSibling;return r===t?n.insertBefore(t,e):e===t.nextSibling?n.insertBefore(e,t):(t.parentNode.replaceChild(e,t),c.addHTML(n,t,r)),this},hasMethod:function(e){var t=this._node;return!(!(t&&e in t&&typeof t[e]!="unknown")||typeof t[e]!="function"&&String(t[e]).indexOf("function")!==1)},isFragment:function(){return this.get("nodeType")===11},empty:function(){return this -.get("childNodes").remove().destroy(!0),this},getDOMNode:function(){return this._node}},!0),e.Node=h,e.one=h.one;var d=function(t){var n=[];t&&(typeof t=="string"?(this._query=t,t=e.Selector.query(t)):t.nodeType||c.isWindow(t)?t=[t]:t._node?t=[t._node]:t[0]&&t[0]._node?(e.Array.each(t,function(e){e._node&&n.push(e._node)}),t=n):t=e.Array(t,0,!0)),this._nodes=t||[]};d.NAME="NodeList",d.getDOMNodes=function(e){return e&&e._nodes?e._nodes:e},d.each=function(t,n,r){var i=t._nodes;i&&i.length&&e.Array.each(i,n,r||t)},d.addMethod=function(t,n,r){t&&n&&(d.prototype[t]=function(){var t=[],i=arguments;return e.Array.each(this._nodes,function(s){var o,u,a,f;e.Node._instances?(o=s.uniqueID&&s.nodeType!==9?"uniqueID":"_yuid",u=e.Node._instances[s[o]]):u=s._yui_instances&&s._yui_instances[e._yuid],u||(u=d._getTempNode(s)),a=r||u,f=n.apply(a,i),f!==undefined&&f!==u&&(t[t.length]=f)}),t.length?t:this})},d.importMethod=function(t,n,r){typeof n=="string"?(r=r||n,d.addMethod(n,t[n])):e.Array.each(n,function(e){d.importMethod(t,e)})},d._getTempNode=function(t){var n=d._tempNode;return n||(n=e.Node.create("
"),d._tempNode=n),n._node=t,n._stateProxy=t,n},e.mix(d.prototype,{_invoke:function(e,t,n){var r=n?[]:this;return this.each(function(i){var s=i[e].apply(i,t);n&&r.push(s)}),r},item:function(t){return e.one((this._nodes||[])[t])},each:function(t,n){var r=this;return e.Array.each(this._nodes,function(i,s){return i=e.one(i),t.call(n||i,i,s,r)}),r},batch:function(t,n){var r=this;return e.Array.each(this._nodes,function(i,s){var o,u;return e.Node._instances?(o=i.uniqueID&&i.nodeType!==9?"uniqueID":"_yuid",u=e.Node._instances[i[o]]):u=i._yui_instances&&i._yui_instances[e._yuid],u||(u=d._getTempNode(i)),t.call(n||u,u,s,r)}),r},some:function(t,n){var r=this;return e.Array.some(this._nodes,function(i,s){return i=e.one(i),n=n||i,t.call(n,i,s,r)})},toFrag:function(){return e.one(e.DOM._nl2frag(this._nodes))},indexOf:function(t){return e.Array.indexOf(this._nodes,e.Node.getDOMNode(t))},filter:function(t){return e.all(e.Selector.filter(this._nodes,t))},modulus:function(t,n){n=n||0;var r=[];return d.each(this,function(e,i){i%t===n&&r.push(e)}),e.all(r)},odd:function(){return this.modulus(2,1)},even:function(){return this.modulus(2)},destructor:function(){},refresh:function(){var t,n=this._nodes,r=this._query,i=this._queryRoot;return r&&(i||n&&n[0]&&n[0].ownerDocument&&(i=n[0].ownerDocument),this._nodes=e.Selector.query(r,i)),this},size:function(){return this._nodes.length},isEmpty:function(){return this._nodes.length<1},toString:function(){var e="",t=this[u]+": not bound to any nodes",n=this._nodes,i;return n&&n[0]&&(i=n[0],e+=i[r],i.id&&(e+="#"+i.id),i.className&&(e+="."+i.className.replace(" ",".")),n.length>1&&(e+="...["+n.length+" items]")),e||t},getDOMNodes:function(){return this._nodes}},!0),d.importMethod(e.Node.prototype,["destroy","empty","remove","set"]),d.prototype.get=function(t){var n=[],r=this._nodes,i=!1,s=d._getTempNode,o,u,a;return r[0]&&(e.Node._instances?(o=r[0].uniqueID&&r[0].nodeType!==9?"uniqueID":"_yuid",u=e.Node._instances[r[0][o]]):u=r[0]._yui_instances&&r[0]._yui_instances[e._yuid],u=u||s(r[0]),a=u._get(t),a&&a.nodeType&&(i=!0)),e.Array.each(r,function(r){e.Node._instances?(o=r.uniqueID&&r.nodeType!==9?"uniqueID":"_yuid",u=e.Node._instances[r[o]]):u=r._yui_instances&&r._yui_instances[e._yuid],u||(u=s(r)),a=u._get(t),i||(a=e.Node.scrubVal(a,u)),n.push(a)}),i?e.all(n):n},e.NodeList=d,e.all=function(e){return new d(e)},e.Node.all=e.all;var v=e.NodeList,m=Array.prototype,g={concat:1,pop:0,push:0,shift:0,slice:1,splice:1,unshift:0};e.Object.each(g,function(t,n){v.prototype[n]=function(){var r=[],i=0,s,o;while(typeof (s=arguments[i++])!="undefined")r.push(s._node||s._nodes||s);return o=m[n].apply(this._nodes,r),t?o=e.all(o):o=e.Node.scrubVal(o),o}}),e.Array.each(["removeChild","hasChildNodes","cloneNode","hasAttribute","scrollIntoView","getElementsByTagName","focus","blur","submit","reset","select","createCaption"],function(t){e.Node.prototype[t]=function(e,n,r){var i=this.invoke(t,e,n,r);return i}}),e.Node.prototype.removeAttribute=function(e){var t=this._node;return t&&t.removeAttribute(e,0),this},e.Node.importMethod(e.DOM,["contains","setAttribute","getAttribute","wrap","unwrap","generateID"]),e.NodeList.importMethod(e.Node.prototype,["getAttribute","setAttribute","removeAttribute","unwrap","wrap","generateID"])},"@VERSION@",{requires:["dom-core","selector"]}); +YUI.add("node-core",function(e,t){var n=".",r="nodeName",i="nodeType",s="ownerDocument",o="tagName",u="_yuid",a={},f=0-1?(s=t,t=t.split(n),e.Object.setValue(i,t,r)):typeof i[t]!="undefined"&&(i[t]=r),r},h.DEFAULT_GETTER=function(t){var r=this._stateProxy,i;return t.indexOf&&t.indexOf(n)>-1?i=e.Object.getValue(r,t.split(n)):typeof r[t]!="undefined"&&(i=r[t]),i},e.mix(h.prototype,{DATA_PREFIX:"data-",toString:function(){var e=this[u]+": not bound to a node",t=this._node,n,i,s;return t&&(n=t.attributes,i=n&&n.id?t.getAttribute("id"):null,s=n&&n.className?t.getAttribute("className"):null,e=t[r],i&&(e+="#"+i),s&&(e+="."+s.replace(" ",".")),e+=" "+this[u]),e},get:function(e){var t;return this._getAttr?t=this._getAttr(e):t=this._get(e),t?t=h.scrubVal(t,this):t===null&&(t=null),t},_get:function(e){var t=h.ATTRS[e],n;return t&&t.getter?n=t.getter.call(this):h.re_aria.test(e)?n=this._node.getAttribute(e,2):n=h.DEFAULT_GETTER.apply(this,arguments),n},set:function(e,t){var n=h.ATTRS[e];return this._setAttr?this._setAttr.apply(this,arguments):n&&n.setter?n.setter.call(this,t,e):h.re_aria.test(e)?this._node.setAttribute(e,t):h.DEFAULT_SETTER.apply(this,arguments),this},setAttrs:function(t){return this._setAttrs?this._setAttrs(t):e.Object.each(t,function(e,t){this.set(t,e)},this),this},getAttrs:function(t){var n={};return this._getAttrs?this._getAttrs(t):e.Array.each(t,function(e,t){n[e]=this.get(e)},this),n},compareTo:function(e){var t=this._node;return e&&e._node&&(e=e._node),t===e},inDoc:function(e){var t=this._node;if(t){e=e?e._node||e:t[s];if(e.documentElement)return c.contains(e.documentElement,t)}return!1},getById:function(t){var n=this._node,r=c.byId(t,n[s]);return r&&c.contains(n,r)?r=e.one(r):r=null,r},ancestor:function(t,n,r){return arguments.length===2&&(typeof n=="string"||typeof n=="function")&&(r=n),e.one(c.ancestor(this._node,p(t),n,p(r)))},ancestors:function(t,n,r){return arguments.length===2&&(typeof n=="string"||typeof n=="function")&&(r=n),e.all(c.ancestors(this._node,p(t),n,p(r)))},previous:function(t,n){return e.one(c.elementByAxis(this._node,"previousSibling",p(t),n))},next:function(t,n){return e.one(c.elementByAxis(this._node,"nextSibling",p(t),n))},siblings:function(t){return e.all(c.siblings(this._node,p(t)))},one:function(t){return e.one(e.Selector.query(t,this._node,!0))},all:function(t){var n;return this._node&&(n=e.all(e.Selector.query(t,this._node)),n._query=t,n._queryRoot=this._node),n||e.all([])},test:function(t){return e.Selector.test(this._node,t)},remove:function(e){var t=this._node;return t&&t.parentNode&&t.parentNode.removeChild(t),e&&this.destroy(),this},replace:function(e){var t=this._node;return typeof e=="string"&&(e=h.create(e)),t.parentNode.replaceChild(h.getDOMNode(e),t),this},replaceChild:function(t,n){return typeof t=="string"&&(t=c.create(t)),e.one(this._node.replaceChild(h.getDOMNode(t),h.getDOMNode(n)))},destroy:function(t){var n=e.config.doc.uniqueID?"uniqueID":"_yuid",r;this.purge(),this.unplug&&this.unplug(),this.clearData(),t&&e.NodeList.each(this.all("*"),function(t){f?r=h._instances[t[n]]:r=t._yui_instances&&t._yui_instances[e._yuid],r?r.destroy():e.Event.purgeElement(t)}),this._node._yui_instances&&delete this._node._yui_instances[e._yuid],this._node=null,this._stateProxy=null,f&&delete h._instances[this[n]]},invoke:function(e,t,n,r,i,s){var o=this._node,u;return t&&t._node&&(t=t._node),n&&n._node&&(n=n._node),u=o[e](t,n,r,i,s),h.scrubVal(u,this)},swap:e.config.doc.documentElement.swapNode?function(e){this._node.swapNode(h.getDOMNode(e))}:function(e){e=h.getDOMNode(e);var t=this._node,n=e.parentNode,r=e.nextSibling;return r===t?n.insertBefore(t,e):e===t.nextSibling?n.insertBefore(e,t):(t.parentNode.replaceChild(e,t),c.addHTML(n,t,r)),this},hasMethod:function(e){var t=this._node;return!(!(t&&e in t&&typeof t[e]!="unknown")||typeof t[e]!="function"&&String(t[e]).indexOf("function")!==1)},isFragment:function(){return this.get("nodeType")===11},empty:function( +){return this.get("childNodes").remove().destroy(!0),this},getDOMNode:function(){return this._node}},!0),e.Node=h,e.one=h.one;var d=function(t){var n=[];t&&(typeof t=="string"?(this._query=t,t=e.Selector.query(t)):t.nodeType||c.isWindow(t)?t=[t]:t._node?t=[t._node]:t[0]&&t[0]._node?(e.Array.each(t,function(e){e._node&&n.push(e._node)}),t=n):t=e.Array(t,0,!0)),this._nodes=t||[]};d.NAME="NodeList",d.getDOMNodes=function(e){return e&&e._nodes?e._nodes:e},d.each=function(t,n,r){var i=t._nodes;i&&i.length&&e.Array.each(i,n,r||t)},d.addMethod=function(t,n,r){t&&n&&(d.prototype[t]=function(){var t=[],i=arguments;return e.Array.each(this._nodes,function(s){var o,a,f,l;e.Node._instances?(o=s.uniqueID&&s.nodeType!==9?s.uniqueID:s[u],a=e.Node._instances[o]):a=s._yui_instances&&s._yui_instances[e._yuid],a||(a=d._getTempNode(s)),f=r||a,l=n.apply(f,i),l!==undefined&&l!==a&&(t[t.length]=l)}),t.length?t:this})},d.importMethod=function(t,n,r){typeof n=="string"?(r=r||n,d.addMethod(n,t[n])):e.Array.each(n,function(e){d.importMethod(t,e)})},d._getTempNode=function(t){var n=d._tempNode;return n||(n=e.Node.create("
"),d._tempNode=n),n._node=t,n._stateProxy=t,n},e.mix(d.prototype,{_invoke:function(e,t,n){var r=n?[]:this;return this.each(function(i){var s=i[e].apply(i,t);n&&r.push(s)}),r},item:function(t){return e.one((this._nodes||[])[t])},each:function(t,n){var r=this;return e.Array.each(this._nodes,function(i,s){return i=e.one(i),t.call(n||i,i,s,r)}),r},batch:function(t,n){var r=this;return e.Array.each(this._nodes,function(i,s){var o,a;return e.Node._instances?(o=i.uniqueID&&i.nodeType!==9?i.uniqueID:i[u],a=e.Node._instances[o]):a=i._yui_instances&&i._yui_instances[e._yuid],a||(a=d._getTempNode(i)),t.call(n||a,a,s,r)}),r},some:function(t,n){var r=this;return e.Array.some(this._nodes,function(i,s){return i=e.one(i),n=n||i,t.call(n,i,s,r)})},toFrag:function(){return e.one(e.DOM._nl2frag(this._nodes))},indexOf:function(t){return e.Array.indexOf(this._nodes,e.Node.getDOMNode(t))},filter:function(t){return e.all(e.Selector.filter(this._nodes,t))},modulus:function(t,n){n=n||0;var r=[];return d.each(this,function(e,i){i%t===n&&r.push(e)}),e.all(r)},odd:function(){return this.modulus(2,1)},even:function(){return this.modulus(2)},destructor:function(){},refresh:function(){var t,n=this._nodes,r=this._query,i=this._queryRoot;return r&&(i||n&&n[0]&&n[0].ownerDocument&&(i=n[0].ownerDocument),this._nodes=e.Selector.query(r,i)),this},size:function(){return this._nodes.length},isEmpty:function(){return this._nodes.length<1},toString:function(){var e="",t=this[u]+": not bound to any nodes",n=this._nodes,i;return n&&n[0]&&(i=n[0],e+=i[r],i.id&&(e+="#"+i.id),i.className&&(e+="."+i.className.replace(" ",".")),n.length>1&&(e+="...["+n.length+" items]")),e||t},getDOMNodes:function(){return this._nodes}},!0),d.importMethod(e.Node.prototype,["destroy","empty","remove","set"]),d.prototype.get=function(t){var n=[],r=this._nodes,i=!1,s=d._getTempNode,o,a,f;return r[0]&&(e.Node._instances?(o=r[0].uniqueID&&r[0].nodeType!==9?r[0].uniqueID:r[0][u],a=e.Node._instances[o]):a=r[0]._yui_instances&&r[0]._yui_instances[e._yuid],a=a||s(r[0]),f=a._get(t),f&&f.nodeType&&(i=!0)),e.Array.each(r,function(r){e.Node._instances?(o=r.uniqueID&&r.nodeType!==9?r.uniqueID:r[u],a=e.Node._instances[o]):a=r._yui_instances&&r._yui_instances[e._yuid],a||(a=s(r)),f=a._get(t),i||(f=e.Node.scrubVal(f,a)),n.push(f)}),i?e.all(n):n},e.NodeList=d,e.all=function(e){return new d(e)},e.Node.all=e.all;var v=e.NodeList,m=Array.prototype,g={concat:1,pop:0,push:0,shift:0,slice:1,splice:1,unshift:0};e.Object.each(g,function(t,n){v.prototype[n]=function(){var r=[],i=0,s,o;while(typeof (s=arguments[i++])!="undefined")r.push(s._node||s._nodes||s);return o=m[n].apply(this._nodes,r),t?o=e.all(o):o=e.Node.scrubVal(o),o}}),e.Array.each(["removeChild","hasChildNodes","cloneNode","hasAttribute","scrollIntoView","getElementsByTagName","focus","blur","submit","reset","select","createCaption"],function(t){e.Node.prototype[t]=function(e,n,r){var i=this.invoke(t,e,n,r);return i}}),e.Node.prototype.removeAttribute=function(e){var t=this._node;return t&&t.removeAttribute(e,0),this},e.Node.importMethod(e.DOM,["contains","setAttribute","getAttribute","wrap","unwrap","generateID"]),e.NodeList.importMethod(e.Node.prototype,["getAttribute","setAttribute","removeAttribute","unwrap","wrap","generateID"])},"@VERSION@",{requires:["dom-core","selector"]}); diff --git a/build/node-core/node-core.js b/build/node-core/node-core.js index 4e9494d733c..c807059ed17 100644 --- a/build/node-core/node-core.js +++ b/build/node-core/node-core.js @@ -30,7 +30,7 @@ var DOT = '.', UID = '_yuid', EMPTY_OBJ = {}, - use_instance_map = Y.UA.ie > 0, // define flag, in case other browsers need it, too + use_instance_map = 0 < Y.UA.ie && Y.UA.ie < 10, // define flag, in case other browsers need it, too _slice = Array.prototype.slice, @@ -293,8 +293,8 @@ Y_Node.one = function(node) { } if (node.nodeType || Y.DOM.isWindow(node)) { // avoid bad input (numbers, boolean, etc) - uid = (node.uniqueID && node.nodeType !== 9) ? node.uniqueID : node._yuid; if (use_instance_map) { + uid = (node.uniqueID && node.nodeType !== 9) ? node.uniqueID : node[UID]; instance = Y_Node._instances[uid]; // reuse exising instances } else { instance = node._yui_instances && node._yui_instances[Y._yuid]; // reuse exising instances @@ -302,7 +302,7 @@ Y_Node.one = function(node) { cachedNode = instance ? instance._node : null; if (!instance || (cachedNode && node !== cachedNode)) { // new Node when nodes don't match instance = new Y_Node(node); - if (node.nodeType != 11) { // dont cache document fragment + if (node.nodeType != 11) { // don't cache document fragment if (use_instance_map) { Y_Node._instances[instance[UID]] = instance; // cache node } else { @@ -392,7 +392,6 @@ Y.mix(Y_Node.prototype, { str += '.' + className.replace(' ', '.'); } - // TODO: add yuid? str += ' ' + this[UID]; } return str; @@ -783,7 +782,7 @@ Y.mix(Y_Node.prototype, { this._stateProxy = null; if (use_instance_map) { - delete Y_Node._instances[this._yuid]; + delete Y_Node._instances[this[UID]]; } }, @@ -952,14 +951,14 @@ NodeList.addMethod = function(name, fn, context) { args = arguments; Y.Array.each(this._nodes, function(node) { - var UID, + var uid, instance, ctx, result; if (Y.Node._instances) { - UID = (node.uniqueID && node.nodeType !== 9 ) ? 'uniqueID' : '_yuid'; - instance = Y.Node._instances[node[UID]]; + uid = (node.uniqueID && node.nodeType !== 9 ) ? node.uniqueID : node[UID]; + instance = Y.Node._instances[uid]; } else { instance = node._yui_instances && node._yui_instances[Y._yuid]; } @@ -1051,12 +1050,12 @@ Y.mix(NodeList.prototype, { var nodelist = this; Y.Array.each(this._nodes, function(node, index) { - var UID, + var uid, instance; if (Y.Node._instances) { - UID = (node.uniqueID && node.nodeType !== 9 ) ? 'uniqueID' : '_yuid'; - instance = Y.Node._instances[node[UID]]; + uid = (node.uniqueID && node.nodeType !== 9 ) ? node.uniqueID : node[UID]; + instance = Y.Node._instances[uid]; } else { instance = node._yui_instances && node._yui_instances[Y._yuid]; } @@ -1298,14 +1297,14 @@ NodeList.prototype.get = function(attr) { nodes = this._nodes, isNodeList = false, getTemp = NodeList._getTempNode, - UID, + uid, instance, val; if (nodes[0]) { if (Y.Node._instances) { - UID = (nodes[0].uniqueID && nodes[0].nodeType !== 9 ) ? 'uniqueID' : '_yuid'; - instance = Y.Node._instances[nodes[0][UID]]; + uid = (nodes[0].uniqueID && nodes[0].nodeType !== 9 ) ? nodes[0].uniqueID : nodes[0][UID]; + instance = Y.Node._instances[uid]; } else { instance = nodes[0]._yui_instances && nodes[0]._yui_instances[Y._yuid]; } @@ -1319,8 +1318,8 @@ NodeList.prototype.get = function(attr) { Y.Array.each(nodes, function(node) { if (Y.Node._instances) { - UID = (node.uniqueID && node.nodeType !== 9 ) ? 'uniqueID' : '_yuid'; - instance = Y.Node._instances[node[UID]]; + uid = (node.uniqueID && node.nodeType !== 9 ) ? node.uniqueID : node[UID]; + instance = Y.Node._instances[uid]; } else { instance = node._yui_instances && node._yui_instances[Y._yuid]; } diff --git a/src/node/js/nodelist.js b/src/node/js/nodelist.js index a8fec8189db..7f7ee8381e4 100644 --- a/src/node/js/nodelist.js +++ b/src/node/js/nodelist.js @@ -75,14 +75,14 @@ NodeList.addMethod = function(name, fn, context) { args = arguments; Y.Array.each(this._nodes, function(node) { - var UID, + var uid, instance, ctx, result; if (Y.Node._instances) { - UID = (node.uniqueID && node.nodeType !== 9 ) ? 'uniqueID' : '_yuid'; - instance = Y.Node._instances[node[UID]]; + uid = (node.uniqueID && node.nodeType !== 9 ) ? node.uniqueID : node[UID]; + instance = Y.Node._instances[uid]; } else { instance = node._yui_instances && node._yui_instances[Y._yuid]; } @@ -175,12 +175,12 @@ Y.mix(NodeList.prototype, { var nodelist = this; Y.Array.each(this._nodes, function(node, index) { - var UID, + var uid, instance; if (Y.Node._instances) { - UID = (node.uniqueID && node.nodeType !== 9 ) ? 'uniqueID' : '_yuid'; - instance = Y.Node._instances[node[UID]]; + uid = (node.uniqueID && node.nodeType !== 9 ) ? node.uniqueID : node[UID]; + instance = Y.Node._instances[uid]; } else { instance = node._yui_instances && node._yui_instances[Y._yuid]; } @@ -422,14 +422,14 @@ NodeList.prototype.get = function(attr) { nodes = this._nodes, isNodeList = false, getTemp = NodeList._getTempNode, - UID, + uid, instance, val; if (nodes[0]) { if (Y.Node._instances) { - UID = (nodes[0].uniqueID && nodes[0].nodeType !== 9 ) ? 'uniqueID' : '_yuid'; - instance = Y.Node._instances[nodes[0][UID]]; + uid = (nodes[0].uniqueID && nodes[0].nodeType !== 9 ) ? nodes[0].uniqueID : nodes[0][UID]; + instance = Y.Node._instances[uid]; } else { instance = nodes[0]._yui_instances && nodes[0]._yui_instances[Y._yuid]; } @@ -443,8 +443,8 @@ NodeList.prototype.get = function(attr) { Y.Array.each(nodes, function(node) { if (Y.Node._instances) { - UID = (node.uniqueID && node.nodeType !== 9 ) ? 'uniqueID' : '_yuid'; - instance = Y.Node._instances[node[UID]]; + uid = (node.uniqueID && node.nodeType !== 9 ) ? node.uniqueID : node[UID]; + instance = Y.Node._instances[uid]; } else { instance = node._yui_instances && node._yui_instances[Y._yuid]; } From 63033770401ca12e85473daee6dd62e4a5e160e3 Mon Sep 17 00:00:00 2001 From: John Lindal Date: Wed, 12 Feb 2014 15:48:34 -0800 Subject: [PATCH 6/7] update Y.Plugin.Host to work even if loaded after Y.Node's have been created --- build/node-pluginhost/node-pluginhost-coverage.js | 4 ++-- build/node-pluginhost/node-pluginhost-debug.js | 5 ----- build/node-pluginhost/node-pluginhost-min.js | 2 +- build/node-pluginhost/node-pluginhost.js | 5 ----- build/pluginhost-base/pluginhost-base-coverage.js | 4 ++-- build/pluginhost-base/pluginhost-base-debug.js | 11 ++++++++--- build/pluginhost-base/pluginhost-base-min.js | 2 +- build/pluginhost-base/pluginhost-base.js | 11 ++++++++--- src/node/js/node-pluginhost.js | 5 ----- src/node/tests/unit/assets/node-pluginhost-test.js | 6 +++++- src/pluginhost/js/PluginHost.js | 11 ++++++++--- 11 files changed, 35 insertions(+), 31 deletions(-) diff --git a/build/node-pluginhost/node-pluginhost-coverage.js b/build/node-pluginhost/node-pluginhost-coverage.js index 11f42059044..ab30faee94f 100644 --- a/build/node-pluginhost/node-pluginhost-coverage.js +++ b/build/node-pluginhost/node-pluginhost-coverage.js @@ -1,6 +1,6 @@ if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/node-pluginhost/node-pluginhost.js']) { - __coverage__['build/node-pluginhost/node-pluginhost.js'] = {"path":"build/node-pluginhost/node-pluginhost.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},"b":{},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":46}}},"2":{"name":"(anonymous_2)","line":18,"loc":{"start":{"line":18,"column":14},"end":{"line":18,"column":25}}},"3":{"name":"(anonymous_3)","line":33,"loc":{"start":{"line":33,"column":16},"end":{"line":33,"column":27}}},"4":{"name":"(anonymous_4)","line":43,"loc":{"start":{"line":43,"column":33},"end":{"line":43,"column":49}}},"5":{"name":"(anonymous_5)","line":65,"loc":{"start":{"line":65,"column":28},"end":{"line":65,"column":39}}},"6":{"name":"(anonymous_6)","line":67,"loc":{"start":{"line":67,"column":26},"end":{"line":67,"column":41}}},"7":{"name":"(anonymous_7)","line":82,"loc":{"start":{"line":82,"column":30},"end":{"line":82,"column":41}}},"8":{"name":"(anonymous_8)","line":84,"loc":{"start":{"line":84,"column":26},"end":{"line":84,"column":41}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":91,"column":59}},"2":{"start":{"line":18,"column":0},"end":{"line":23,"column":2}},"3":{"start":{"line":19,"column":4},"end":{"line":19,"column":34}},"4":{"start":{"line":20,"column":4},"end":{"line":20,"column":25}},"5":{"start":{"line":21,"column":4},"end":{"line":21,"column":43}},"6":{"start":{"line":22,"column":4},"end":{"line":22,"column":18}},"7":{"start":{"line":33,"column":0},"end":{"line":38,"column":2}},"8":{"start":{"line":34,"column":4},"end":{"line":34,"column":34}},"9":{"start":{"line":35,"column":4},"end":{"line":35,"column":25}},"10":{"start":{"line":36,"column":4},"end":{"line":36,"column":45}},"11":{"start":{"line":37,"column":4},"end":{"line":37,"column":18}},"12":{"start":{"line":40,"column":0},"end":{"line":40,"column":45}},"13":{"start":{"line":43,"column":0},"end":{"line":45,"column":3}},"14":{"start":{"line":44,"column":4},"end":{"line":44,"column":30}},"15":{"start":{"line":65,"column":0},"end":{"line":71,"column":2}},"16":{"start":{"line":66,"column":4},"end":{"line":66,"column":25}},"17":{"start":{"line":67,"column":4},"end":{"line":69,"column":7}},"18":{"start":{"line":68,"column":8},"end":{"line":68,"column":55}},"19":{"start":{"line":70,"column":4},"end":{"line":70,"column":16}},"20":{"start":{"line":82,"column":0},"end":{"line":88,"column":2}},"21":{"start":{"line":83,"column":4},"end":{"line":83,"column":25}},"22":{"start":{"line":84,"column":4},"end":{"line":86,"column":7}},"23":{"start":{"line":85,"column":8},"end":{"line":85,"column":57}},"24":{"start":{"line":87,"column":4},"end":{"line":87,"column":16}}},"branchMap":{},"code":["(function () { YUI.add('node-pluginhost', function (Y, NAME) {","","/**"," * @module node"," * @submodule node-pluginhost"," */","","/**"," * Registers plugins to be instantiated at the class level (plugins"," * which should be plugged into every instance of Node by default)."," *"," * @method plug"," * @static"," * @for Node"," * @param {Function | Array} plugin Either the plugin class, an array of plugin classes or an array of objects (with fn and cfg properties defined)"," * @param {Object} config (Optional) If plugin is the plugin class, the configuration for the plugin"," */","Y.Node.plug = function() {"," var args = Y.Array(arguments);"," args.unshift(Y.Node);"," Y.Plugin.Host.plug.apply(Y.Base, args);"," return Y.Node;","};","","/**"," * Unregisters any class level plugins which have been registered by the Node"," *"," * @method unplug"," * @static"," *"," * @param {Function | Array} plugin The plugin class, or an array of plugin classes"," */","Y.Node.unplug = function() {"," var args = Y.Array(arguments);"," args.unshift(Y.Node);"," Y.Plugin.Host.unplug.apply(Y.Base, args);"," return Y.Node;","};","","Y.mix(Y.Node, Y.Plugin.Host, false, null, 1);","","// run PluginHost constructor on cached Node instances","Y.Object.each(Y.Node._instances, function (node) {"," Y.Plugin.Host.apply(node);","});","","// allow batching of plug/unplug via NodeList","// doesn't use NodeList.importMethod because we need real Nodes (not tmpNode)","/**"," * Adds a plugin to each node in the NodeList."," * This will instantiate the plugin and attach it to the configured namespace on each node"," * @method plug"," * @for NodeList"," * @param P {Function | Object |Array} Accepts the plugin class, or an"," * object with a \"fn\" property specifying the plugin class and"," * a \"cfg\" property specifying the configuration for the Plugin."," *

"," * Additionally an Array can also be passed in, with the above function or"," * object values, allowing the user to add multiple plugins in a single call."," *

"," * @param config (Optional) If the first argument is the plugin class, the second argument"," * can be the configuration for the plugin."," * @chainable"," */","Y.NodeList.prototype.plug = function() {"," var args = arguments;"," Y.NodeList.each(this, function(node) {"," Y.Node.prototype.plug.apply(Y.one(node), args);"," });"," return this;","};","","/**"," * Removes a plugin from all nodes in the NodeList. This will destroy the"," * plugin instance and delete the namespace each node."," * @method unplug"," * @for NodeList"," * @param {String | Function} plugin The namespace of the plugin, or the plugin class with the static NS namespace property defined. If not provided,"," * all registered plugins are unplugged."," * @chainable"," */","Y.NodeList.prototype.unplug = function() {"," var args = arguments;"," Y.NodeList.each(this, function(node) {"," Y.Node.prototype.unplug.apply(Y.one(node), args);"," });"," return this;","};","","","}, '@VERSION@', {\"requires\": [\"node-base\", \"pluginhost\"]});","","}());"]}; + __coverage__['build/node-pluginhost/node-pluginhost.js'] = {"path":"build/node-pluginhost/node-pluginhost.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},"b":{},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":46}}},"2":{"name":"(anonymous_2)","line":18,"loc":{"start":{"line":18,"column":14},"end":{"line":18,"column":25}}},"3":{"name":"(anonymous_3)","line":33,"loc":{"start":{"line":33,"column":16},"end":{"line":33,"column":27}}},"4":{"name":"(anonymous_4)","line":60,"loc":{"start":{"line":60,"column":28},"end":{"line":60,"column":39}}},"5":{"name":"(anonymous_5)","line":62,"loc":{"start":{"line":62,"column":26},"end":{"line":62,"column":41}}},"6":{"name":"(anonymous_6)","line":77,"loc":{"start":{"line":77,"column":30},"end":{"line":77,"column":41}}},"7":{"name":"(anonymous_7)","line":79,"loc":{"start":{"line":79,"column":26},"end":{"line":79,"column":41}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":86,"column":59}},"2":{"start":{"line":18,"column":0},"end":{"line":23,"column":2}},"3":{"start":{"line":19,"column":4},"end":{"line":19,"column":34}},"4":{"start":{"line":20,"column":4},"end":{"line":20,"column":25}},"5":{"start":{"line":21,"column":4},"end":{"line":21,"column":43}},"6":{"start":{"line":22,"column":4},"end":{"line":22,"column":18}},"7":{"start":{"line":33,"column":0},"end":{"line":38,"column":2}},"8":{"start":{"line":34,"column":4},"end":{"line":34,"column":34}},"9":{"start":{"line":35,"column":4},"end":{"line":35,"column":25}},"10":{"start":{"line":36,"column":4},"end":{"line":36,"column":45}},"11":{"start":{"line":37,"column":4},"end":{"line":37,"column":18}},"12":{"start":{"line":40,"column":0},"end":{"line":40,"column":45}},"13":{"start":{"line":60,"column":0},"end":{"line":66,"column":2}},"14":{"start":{"line":61,"column":4},"end":{"line":61,"column":25}},"15":{"start":{"line":62,"column":4},"end":{"line":64,"column":7}},"16":{"start":{"line":63,"column":8},"end":{"line":63,"column":55}},"17":{"start":{"line":65,"column":4},"end":{"line":65,"column":16}},"18":{"start":{"line":77,"column":0},"end":{"line":83,"column":2}},"19":{"start":{"line":78,"column":4},"end":{"line":78,"column":25}},"20":{"start":{"line":79,"column":4},"end":{"line":81,"column":7}},"21":{"start":{"line":80,"column":8},"end":{"line":80,"column":57}},"22":{"start":{"line":82,"column":4},"end":{"line":82,"column":16}}},"branchMap":{},"code":["(function () { YUI.add('node-pluginhost', function (Y, NAME) {","","/**"," * @module node"," * @submodule node-pluginhost"," */","","/**"," * Registers plugins to be instantiated at the class level (plugins"," * which should be plugged into every instance of Node by default)."," *"," * @method plug"," * @static"," * @for Node"," * @param {Function | Array} plugin Either the plugin class, an array of plugin classes or an array of objects (with fn and cfg properties defined)"," * @param {Object} config (Optional) If plugin is the plugin class, the configuration for the plugin"," */","Y.Node.plug = function() {"," var args = Y.Array(arguments);"," args.unshift(Y.Node);"," Y.Plugin.Host.plug.apply(Y.Base, args);"," return Y.Node;","};","","/**"," * Unregisters any class level plugins which have been registered by the Node"," *"," * @method unplug"," * @static"," *"," * @param {Function | Array} plugin The plugin class, or an array of plugin classes"," */","Y.Node.unplug = function() {"," var args = Y.Array(arguments);"," args.unshift(Y.Node);"," Y.Plugin.Host.unplug.apply(Y.Base, args);"," return Y.Node;","};","","Y.mix(Y.Node, Y.Plugin.Host, false, null, 1);","","// allow batching of plug/unplug via NodeList","// doesn't use NodeList.importMethod because we need real Nodes (not tmpNode)","/**"," * Adds a plugin to each node in the NodeList."," * This will instantiate the plugin and attach it to the configured namespace on each node"," * @method plug"," * @for NodeList"," * @param P {Function | Object |Array} Accepts the plugin class, or an"," * object with a \"fn\" property specifying the plugin class and"," * a \"cfg\" property specifying the configuration for the Plugin."," *

"," * Additionally an Array can also be passed in, with the above function or"," * object values, allowing the user to add multiple plugins in a single call."," *

"," * @param config (Optional) If the first argument is the plugin class, the second argument"," * can be the configuration for the plugin."," * @chainable"," */","Y.NodeList.prototype.plug = function() {"," var args = arguments;"," Y.NodeList.each(this, function(node) {"," Y.Node.prototype.plug.apply(Y.one(node), args);"," });"," return this;","};","","/**"," * Removes a plugin from all nodes in the NodeList. This will destroy the"," * plugin instance and delete the namespace each node."," * @method unplug"," * @for NodeList"," * @param {String | Function} plugin The namespace of the plugin, or the plugin class with the static NS namespace property defined. If not provided,"," * all registered plugins are unplugged."," * @chainable"," */","Y.NodeList.prototype.unplug = function() {"," var args = arguments;"," Y.NodeList.each(this, function(node) {"," Y.Node.prototype.unplug.apply(Y.one(node), args);"," });"," return this;","};","","","}, '@VERSION@', {\"requires\": [\"node-base\", \"pluginhost\"]});","","}());"]}; } var __cov_pN6fN7fUiccsESbeOMj_ow = __coverage__['build/node-pluginhost/node-pluginhost.js']; -__cov_pN6fN7fUiccsESbeOMj_ow.s['1']++;YUI.add('node-pluginhost',function(Y,NAME){__cov_pN6fN7fUiccsESbeOMj_ow.f['1']++;__cov_pN6fN7fUiccsESbeOMj_ow.s['2']++;Y.Node.plug=function(){__cov_pN6fN7fUiccsESbeOMj_ow.f['2']++;__cov_pN6fN7fUiccsESbeOMj_ow.s['3']++;var args=Y.Array(arguments);__cov_pN6fN7fUiccsESbeOMj_ow.s['4']++;args.unshift(Y.Node);__cov_pN6fN7fUiccsESbeOMj_ow.s['5']++;Y.Plugin.Host.plug.apply(Y.Base,args);__cov_pN6fN7fUiccsESbeOMj_ow.s['6']++;return Y.Node;};__cov_pN6fN7fUiccsESbeOMj_ow.s['7']++;Y.Node.unplug=function(){__cov_pN6fN7fUiccsESbeOMj_ow.f['3']++;__cov_pN6fN7fUiccsESbeOMj_ow.s['8']++;var args=Y.Array(arguments);__cov_pN6fN7fUiccsESbeOMj_ow.s['9']++;args.unshift(Y.Node);__cov_pN6fN7fUiccsESbeOMj_ow.s['10']++;Y.Plugin.Host.unplug.apply(Y.Base,args);__cov_pN6fN7fUiccsESbeOMj_ow.s['11']++;return Y.Node;};__cov_pN6fN7fUiccsESbeOMj_ow.s['12']++;Y.mix(Y.Node,Y.Plugin.Host,false,null,1);__cov_pN6fN7fUiccsESbeOMj_ow.s['13']++;Y.Object.each(Y.Node._instances,function(node){__cov_pN6fN7fUiccsESbeOMj_ow.f['4']++;__cov_pN6fN7fUiccsESbeOMj_ow.s['14']++;Y.Plugin.Host.apply(node);});__cov_pN6fN7fUiccsESbeOMj_ow.s['15']++;Y.NodeList.prototype.plug=function(){__cov_pN6fN7fUiccsESbeOMj_ow.f['5']++;__cov_pN6fN7fUiccsESbeOMj_ow.s['16']++;var args=arguments;__cov_pN6fN7fUiccsESbeOMj_ow.s['17']++;Y.NodeList.each(this,function(node){__cov_pN6fN7fUiccsESbeOMj_ow.f['6']++;__cov_pN6fN7fUiccsESbeOMj_ow.s['18']++;Y.Node.prototype.plug.apply(Y.one(node),args);});__cov_pN6fN7fUiccsESbeOMj_ow.s['19']++;return this;};__cov_pN6fN7fUiccsESbeOMj_ow.s['20']++;Y.NodeList.prototype.unplug=function(){__cov_pN6fN7fUiccsESbeOMj_ow.f['7']++;__cov_pN6fN7fUiccsESbeOMj_ow.s['21']++;var args=arguments;__cov_pN6fN7fUiccsESbeOMj_ow.s['22']++;Y.NodeList.each(this,function(node){__cov_pN6fN7fUiccsESbeOMj_ow.f['8']++;__cov_pN6fN7fUiccsESbeOMj_ow.s['23']++;Y.Node.prototype.unplug.apply(Y.one(node),args);});__cov_pN6fN7fUiccsESbeOMj_ow.s['24']++;return this;};},'@VERSION@',{'requires':['node-base','pluginhost']}); +__cov_pN6fN7fUiccsESbeOMj_ow.s['1']++;YUI.add('node-pluginhost',function(Y,NAME){__cov_pN6fN7fUiccsESbeOMj_ow.f['1']++;__cov_pN6fN7fUiccsESbeOMj_ow.s['2']++;Y.Node.plug=function(){__cov_pN6fN7fUiccsESbeOMj_ow.f['2']++;__cov_pN6fN7fUiccsESbeOMj_ow.s['3']++;var args=Y.Array(arguments);__cov_pN6fN7fUiccsESbeOMj_ow.s['4']++;args.unshift(Y.Node);__cov_pN6fN7fUiccsESbeOMj_ow.s['5']++;Y.Plugin.Host.plug.apply(Y.Base,args);__cov_pN6fN7fUiccsESbeOMj_ow.s['6']++;return Y.Node;};__cov_pN6fN7fUiccsESbeOMj_ow.s['7']++;Y.Node.unplug=function(){__cov_pN6fN7fUiccsESbeOMj_ow.f['3']++;__cov_pN6fN7fUiccsESbeOMj_ow.s['8']++;var args=Y.Array(arguments);__cov_pN6fN7fUiccsESbeOMj_ow.s['9']++;args.unshift(Y.Node);__cov_pN6fN7fUiccsESbeOMj_ow.s['10']++;Y.Plugin.Host.unplug.apply(Y.Base,args);__cov_pN6fN7fUiccsESbeOMj_ow.s['11']++;return Y.Node;};__cov_pN6fN7fUiccsESbeOMj_ow.s['12']++;Y.mix(Y.Node,Y.Plugin.Host,false,null,1);__cov_pN6fN7fUiccsESbeOMj_ow.s['13']++;Y.NodeList.prototype.plug=function(){__cov_pN6fN7fUiccsESbeOMj_ow.f['4']++;__cov_pN6fN7fUiccsESbeOMj_ow.s['14']++;var args=arguments;__cov_pN6fN7fUiccsESbeOMj_ow.s['15']++;Y.NodeList.each(this,function(node){__cov_pN6fN7fUiccsESbeOMj_ow.f['5']++;__cov_pN6fN7fUiccsESbeOMj_ow.s['16']++;Y.Node.prototype.plug.apply(Y.one(node),args);});__cov_pN6fN7fUiccsESbeOMj_ow.s['17']++;return this;};__cov_pN6fN7fUiccsESbeOMj_ow.s['18']++;Y.NodeList.prototype.unplug=function(){__cov_pN6fN7fUiccsESbeOMj_ow.f['6']++;__cov_pN6fN7fUiccsESbeOMj_ow.s['19']++;var args=arguments;__cov_pN6fN7fUiccsESbeOMj_ow.s['20']++;Y.NodeList.each(this,function(node){__cov_pN6fN7fUiccsESbeOMj_ow.f['7']++;__cov_pN6fN7fUiccsESbeOMj_ow.s['21']++;Y.Node.prototype.unplug.apply(Y.one(node),args);});__cov_pN6fN7fUiccsESbeOMj_ow.s['22']++;return this;};},'@VERSION@',{'requires':['node-base','pluginhost']}); diff --git a/build/node-pluginhost/node-pluginhost-debug.js b/build/node-pluginhost/node-pluginhost-debug.js index ba1203d8489..ba98ad7e844 100644 --- a/build/node-pluginhost/node-pluginhost-debug.js +++ b/build/node-pluginhost/node-pluginhost-debug.js @@ -39,11 +39,6 @@ Y.Node.unplug = function() { Y.mix(Y.Node, Y.Plugin.Host, false, null, 1); -// run PluginHost constructor on cached Node instances -Y.Object.each(Y.Node._instances, function (node) { - Y.Plugin.Host.apply(node); -}); - // allow batching of plug/unplug via NodeList // doesn't use NodeList.importMethod because we need real Nodes (not tmpNode) /** diff --git a/build/node-pluginhost/node-pluginhost-min.js b/build/node-pluginhost/node-pluginhost-min.js index 2e8823981c6..bf0c7d3e840 100644 --- a/build/node-pluginhost/node-pluginhost-min.js +++ b/build/node-pluginhost/node-pluginhost-min.js @@ -1 +1 @@ -YUI.add("node-pluginhost",function(e,t){e.Node.plug=function(){var t=e.Array(arguments);return t.unshift(e.Node),e.Plugin.Host.plug.apply(e.Base,t),e.Node},e.Node.unplug=function(){var t=e.Array(arguments);return t.unshift(e.Node),e.Plugin.Host.unplug.apply(e.Base,t),e.Node},e.mix(e.Node,e.Plugin.Host,!1,null,1),e.Object.each(e.Node._instances,function(t){e.Plugin.Host.apply(t)}),e.NodeList.prototype.plug=function(){var t=arguments;return e.NodeList.each(this,function(n){e.Node.prototype.plug.apply(e.one(n),t)}),this},e.NodeList.prototype.unplug=function(){var t=arguments;return e.NodeList.each(this,function(n){e.Node.prototype.unplug.apply(e.one(n),t)}),this}},"@VERSION@",{requires:["node-base","pluginhost"]}); +YUI.add("node-pluginhost",function(e,t){e.Node.plug=function(){var t=e.Array(arguments);return t.unshift(e.Node),e.Plugin.Host.plug.apply(e.Base,t),e.Node},e.Node.unplug=function(){var t=e.Array(arguments);return t.unshift(e.Node),e.Plugin.Host.unplug.apply(e.Base,t),e.Node},e.mix(e.Node,e.Plugin.Host,!1,null,1),e.NodeList.prototype.plug=function(){var t=arguments;return e.NodeList.each(this,function(n){e.Node.prototype.plug.apply(e.one(n),t)}),this},e.NodeList.prototype.unplug=function(){var t=arguments;return e.NodeList.each(this,function(n){e.Node.prototype.unplug.apply(e.one(n),t)}),this}},"@VERSION@",{requires:["node-base","pluginhost"]}); diff --git a/build/node-pluginhost/node-pluginhost.js b/build/node-pluginhost/node-pluginhost.js index ba1203d8489..ba98ad7e844 100644 --- a/build/node-pluginhost/node-pluginhost.js +++ b/build/node-pluginhost/node-pluginhost.js @@ -39,11 +39,6 @@ Y.Node.unplug = function() { Y.mix(Y.Node, Y.Plugin.Host, false, null, 1); -// run PluginHost constructor on cached Node instances -Y.Object.each(Y.Node._instances, function (node) { - Y.Plugin.Host.apply(node); -}); - // allow batching of plug/unplug via NodeList // doesn't use NodeList.importMethod because we need real Nodes (not tmpNode) /** diff --git a/build/pluginhost-base/pluginhost-base-coverage.js b/build/pluginhost-base/pluginhost-base-coverage.js index 914eadeb5a5..65f63dab2d4 100644 --- a/build/pluginhost-base/pluginhost-base-coverage.js +++ b/build/pluginhost-base/pluginhost-base-coverage.js @@ -1,6 +1,6 @@ if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/pluginhost-base/pluginhost-base.js']) { - __coverage__['build/pluginhost-base/pluginhost-base.js'] = {"path":"build/pluginhost-base/pluginhost-base.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0,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]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":46}}},"2":{"name":"PluginHost","line":38,"loc":{"start":{"line":38,"column":4},"end":{"line":38,"column":26}}},"3":{"name":"(anonymous_3)","line":61,"loc":{"start":{"line":61,"column":14},"end":{"line":61,"column":39}}},"4":{"name":"(anonymous_4)","line":106,"loc":{"start":{"line":106,"column":16},"end":{"line":106,"column":33}}},"5":{"name":"(anonymous_5)","line":146,"loc":{"start":{"line":146,"column":20},"end":{"line":146,"column":33}}},"6":{"name":"(anonymous_6)","line":160,"loc":{"start":{"line":160,"column":22},"end":{"line":160,"column":39}}},"7":{"name":"(anonymous_7)","line":173,"loc":{"start":{"line":173,"column":25},"end":{"line":173,"column":36}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":181,"column":44}},"2":{"start":{"line":36,"column":4},"end":{"line":36,"column":19}},"3":{"start":{"line":38,"column":4},"end":{"line":40,"column":5}},"4":{"start":{"line":39,"column":8},"end":{"line":39,"column":27}},"5":{"start":{"line":42,"column":4},"end":{"line":176,"column":6}},"6":{"start":{"line":62,"column":12},"end":{"line":62,"column":26}},"7":{"start":{"line":64,"column":12},"end":{"line":92,"column":13}},"8":{"start":{"line":65,"column":16},"end":{"line":67,"column":17}},"9":{"start":{"line":66,"column":20},"end":{"line":66,"column":41}},"10":{"start":{"line":69,"column":16},"end":{"line":72,"column":17}},"11":{"start":{"line":70,"column":20},"end":{"line":70,"column":40}},"12":{"start":{"line":71,"column":20},"end":{"line":71,"column":39}},"13":{"start":{"line":75,"column":16},"end":{"line":91,"column":17}},"14":{"start":{"line":76,"column":20},"end":{"line":76,"column":35}},"15":{"start":{"line":78,"column":20},"end":{"line":78,"column":42}},"16":{"start":{"line":79,"column":20},"end":{"line":79,"column":39}},"17":{"start":{"line":81,"column":20},"end":{"line":90,"column":21}},"18":{"start":{"line":83,"column":24},"end":{"line":85,"column":25}},"19":{"start":{"line":84,"column":28},"end":{"line":84,"column":54}},"20":{"start":{"line":88,"column":24},"end":{"line":88,"column":54}},"21":{"start":{"line":89,"column":24},"end":{"line":89,"column":51}},"22":{"start":{"line":93,"column":12},"end":{"line":93,"column":24}},"23":{"start":{"line":107,"column":12},"end":{"line":108,"column":40}},"24":{"start":{"line":110,"column":12},"end":{"line":135,"column":13}},"25":{"start":{"line":111,"column":16},"end":{"line":116,"column":17}},"26":{"start":{"line":112,"column":20},"end":{"line":112,"column":35}},"27":{"start":{"line":113,"column":20},"end":{"line":115,"column":21}},"28":{"start":{"line":114,"column":24},"end":{"line":114,"column":34}},"29":{"start":{"line":118,"column":16},"end":{"line":128,"column":17}},"30":{"start":{"line":119,"column":20},"end":{"line":124,"column":21}},"31":{"start":{"line":120,"column":24},"end":{"line":122,"column":25}},"32":{"start":{"line":121,"column":28},"end":{"line":121,"column":47}},"33":{"start":{"line":123,"column":24},"end":{"line":123,"column":40}},"34":{"start":{"line":125,"column":20},"end":{"line":127,"column":21}},"35":{"start":{"line":126,"column":24},"end":{"line":126,"column":43}},"36":{"start":{"line":130,"column":16},"end":{"line":134,"column":17}},"37":{"start":{"line":131,"column":20},"end":{"line":133,"column":21}},"38":{"start":{"line":132,"column":24},"end":{"line":132,"column":40}},"39":{"start":{"line":136,"column":12},"end":{"line":136,"column":24}},"40":{"start":{"line":147,"column":12},"end":{"line":147,"column":51}},"41":{"start":{"line":161,"column":12},"end":{"line":161,"column":48}},"42":{"start":{"line":163,"column":12},"end":{"line":165,"column":13}},"43":{"start":{"line":164,"column":16},"end":{"line":164,"column":48}},"44":{"start":{"line":174,"column":12},"end":{"line":174,"column":26}},"45":{"start":{"line":178,"column":4},"end":{"line":178,"column":44}}},"branchMap":{"1":{"line":64,"type":"if","locations":[{"start":{"line":64,"column":12},"end":{"line":64,"column":12}},{"start":{"line":64,"column":12},"end":{"line":64,"column":12}}]},"2":{"line":69,"type":"if","locations":[{"start":{"line":69,"column":16},"end":{"line":69,"column":16}},{"start":{"line":69,"column":16},"end":{"line":69,"column":16}}]},"3":{"line":69,"type":"binary-expr","locations":[{"start":{"line":69,"column":20},"end":{"line":69,"column":26}},{"start":{"line":69,"column":30},"end":{"line":69,"column":51}}]},"4":{"line":75,"type":"if","locations":[{"start":{"line":75,"column":16},"end":{"line":75,"column":16}},{"start":{"line":75,"column":16},"end":{"line":75,"column":16}}]},"5":{"line":75,"type":"binary-expr","locations":[{"start":{"line":75,"column":20},"end":{"line":75,"column":26}},{"start":{"line":75,"column":30},"end":{"line":75,"column":39}}]},"6":{"line":78,"type":"binary-expr","locations":[{"start":{"line":78,"column":29},"end":{"line":78,"column":35}},{"start":{"line":78,"column":39},"end":{"line":78,"column":41}}]},"7":{"line":81,"type":"if","locations":[{"start":{"line":81,"column":20},"end":{"line":81,"column":20}},{"start":{"line":81,"column":20},"end":{"line":81,"column":20}}]},"8":{"line":83,"type":"if","locations":[{"start":{"line":83,"column":24},"end":{"line":83,"column":24}},{"start":{"line":83,"column":24},"end":{"line":83,"column":24}}]},"9":{"line":110,"type":"if","locations":[{"start":{"line":110,"column":12},"end":{"line":110,"column":12}},{"start":{"line":110,"column":12},"end":{"line":110,"column":12}}]},"10":{"line":111,"type":"if","locations":[{"start":{"line":111,"column":16},"end":{"line":111,"column":16}},{"start":{"line":111,"column":16},"end":{"line":111,"column":16}}]},"11":{"line":113,"type":"if","locations":[{"start":{"line":113,"column":20},"end":{"line":113,"column":20}},{"start":{"line":113,"column":20},"end":{"line":113,"column":20}}]},"12":{"line":113,"type":"binary-expr","locations":[{"start":{"line":113,"column":24},"end":{"line":113,"column":26}},{"start":{"line":113,"column":31},"end":{"line":113,"column":43}},{"start":{"line":113,"column":47},"end":{"line":113,"column":69}}]},"13":{"line":118,"type":"if","locations":[{"start":{"line":118,"column":16},"end":{"line":118,"column":16}},{"start":{"line":118,"column":16},"end":{"line":118,"column":16}}]},"14":{"line":119,"type":"if","locations":[{"start":{"line":119,"column":20},"end":{"line":119,"column":20}},{"start":{"line":119,"column":20},"end":{"line":119,"column":20}}]},"15":{"line":120,"type":"if","locations":[{"start":{"line":120,"column":24},"end":{"line":120,"column":24}},{"start":{"line":120,"column":24},"end":{"line":120,"column":24}}]},"16":{"line":125,"type":"if","locations":[{"start":{"line":125,"column":20},"end":{"line":125,"column":20}},{"start":{"line":125,"column":20},"end":{"line":125,"column":20}}]},"17":{"line":131,"type":"if","locations":[{"start":{"line":131,"column":20},"end":{"line":131,"column":20}},{"start":{"line":131,"column":20},"end":{"line":131,"column":20}}]},"18":{"line":147,"type":"binary-expr","locations":[{"start":{"line":147,"column":20},"end":{"line":147,"column":37}},{"start":{"line":147,"column":41},"end":{"line":147,"column":49}}]},"19":{"line":161,"type":"binary-expr","locations":[{"start":{"line":161,"column":28},"end":{"line":161,"column":41}},{"start":{"line":161,"column":45},"end":{"line":161,"column":47}}]},"20":{"line":163,"type":"if","locations":[{"start":{"line":163,"column":12},"end":{"line":163,"column":12}},{"start":{"line":163,"column":12},"end":{"line":163,"column":12}}]}},"code":["(function () { YUI.add('pluginhost-base', function (Y, NAME) {",""," /**"," * Provides the augmentable PluginHost interface, which can be added to any class."," * @module pluginhost"," */",""," /**"," * Provides the augmentable PluginHost interface, which can be added to any class."," * @module pluginhost-base"," */",""," /**"," *

"," * An augmentable class, which provides the augmented class with the ability to host plugins."," * It adds plug and unplug methods to the augmented class, which can"," * be used to add or remove plugins from instances of the class."," *

"," *"," *

Plugins can also be added through the constructor configuration object passed to the host class' constructor using"," * the \"plugins\" property. Supported values for the \"plugins\" property are those defined by the plug method."," *"," * For example the following code would add the AnimPlugin and IOPlugin to Overlay (the plugin host):"," *

"," * var o = new Overlay({plugins: [ AnimPlugin, {fn:IOPlugin, cfg:{section:\"header\"}}]});"," * "," *

"," *

"," * Plug.Host's protected _initPlugins and _destroyPlugins"," * methods should be invoked by the host class at the appropriate point in the host's lifecyle."," *

"," *"," * @class Plugin.Host"," */",""," var L = Y.Lang;",""," function PluginHost() {"," this._plugins = {};"," }",""," PluginHost.prototype = {",""," /**"," * Adds a plugin to the host object. This will instantiate the"," * plugin and attach it to the configured namespace on the host object."," *"," * @method plug"," * @chainable"," * @param P {Function | Object |Array} Accepts the plugin class, or an"," * object with a \"fn\" property specifying the plugin class and"," * a \"cfg\" property specifying the configuration for the Plugin."," *

"," * Additionally an Array can also be passed in, with the above function or"," * object values, allowing the user to add multiple plugins in a single call."," *

"," * @param config (Optional) If the first argument is the plugin class, the second argument"," * can be the configuration for the plugin."," * @return {Base} A reference to the host object"," */"," plug: function(Plugin, config) {"," var i, ln, ns;",""," if (L.isArray(Plugin)) {"," for (i = 0, ln = Plugin.length; i < ln; i++) {"," this.plug(Plugin[i]);"," }"," } else {"," if (Plugin && !L.isFunction(Plugin)) {"," config = Plugin.cfg;"," Plugin = Plugin.fn;"," }",""," // Plugin should be fn by now"," if (Plugin && Plugin.NS) {"," ns = Plugin.NS;",""," config = config || {};"," config.host = this;",""," if (this.hasPlugin(ns)) {"," // Update config"," if (this[ns].setAttrs) {"," this[ns].setAttrs(config);"," }"," } else {"," // Create new instance"," this[ns] = new Plugin(config);"," this._plugins[ns] = Plugin;"," }"," }"," }"," return this;"," },",""," /**"," * Removes a plugin from the host object. This will destroy the"," * plugin instance and delete the namespace from the host object."," *"," * @method unplug"," * @param {String | Function} plugin The namespace of the plugin, or the plugin class with the static NS namespace property defined. If not provided,"," * all registered plugins are unplugged."," * @return {Base} A reference to the host object"," * @chainable"," */"," unplug: function(plugin) {"," var ns = plugin,"," plugins = this._plugins;",""," if (plugin) {"," if (L.isFunction(plugin)) {"," ns = plugin.NS;"," if (ns && (!plugins[ns] || plugins[ns] !== plugin)) {"," ns = null;"," }"," }",""," if (ns) {"," if (this[ns]) {"," if (this[ns].destroy) {"," this[ns].destroy();"," }"," delete this[ns];"," }"," if (plugins[ns]) {"," delete plugins[ns];"," }"," }"," } else {"," for (ns in this._plugins) {"," if (this._plugins.hasOwnProperty(ns)) {"," this.unplug(ns);"," }"," }"," }"," return this;"," },",""," /**"," * Determines if a plugin has plugged into this host."," *"," * @method hasPlugin"," * @param {String} ns The plugin's namespace"," * @return {Plugin} Returns a truthy value (the plugin instance) if present, or undefined if not."," */"," hasPlugin : function(ns) {"," return (this._plugins[ns] && this[ns]);"," },",""," /**"," * Initializes static plugins registered on the host (using the"," * Base.plug static method) and any plugins passed to the"," * instance through the \"plugins\" configuration property."," *"," * @method _initPlugins"," * @param {Object} config The configuration object with property name/value pairs."," * @private"," */",""," _initPlugins: function(config) {"," this._plugins = this._plugins || {};",""," if (this._initConfigPlugins) {"," this._initConfigPlugins(config);"," }"," },",""," /**"," * Unplugs and destroys all plugins on the host"," * @method _destroyPlugins"," * @private"," */"," _destroyPlugins: function() {"," this.unplug();"," }"," };",""," Y.namespace(\"Plugin\").Host = PluginHost;","","","}, '@VERSION@', {\"requires\": [\"yui-base\"]});","","}());"]}; + __coverage__['build/pluginhost-base/pluginhost-base.js'] = {"path":"build/pluginhost-base/pluginhost-base.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0,0],"21":[0,0],"22":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":46}}},"2":{"name":"PluginHost","line":38,"loc":{"start":{"line":38,"column":4},"end":{"line":38,"column":26}}},"3":{"name":"(anonymous_3)","line":61,"loc":{"start":{"line":61,"column":14},"end":{"line":61,"column":39}}},"4":{"name":"(anonymous_4)","line":108,"loc":{"start":{"line":108,"column":16},"end":{"line":108,"column":33}}},"5":{"name":"(anonymous_5)","line":151,"loc":{"start":{"line":151,"column":20},"end":{"line":151,"column":33}}},"6":{"name":"(anonymous_6)","line":165,"loc":{"start":{"line":165,"column":22},"end":{"line":165,"column":39}}},"7":{"name":"(anonymous_7)","line":178,"loc":{"start":{"line":178,"column":25},"end":{"line":178,"column":36}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":186,"column":44}},"2":{"start":{"line":36,"column":4},"end":{"line":36,"column":19}},"3":{"start":{"line":38,"column":4},"end":{"line":40,"column":5}},"4":{"start":{"line":42,"column":4},"end":{"line":181,"column":6}},"5":{"start":{"line":62,"column":12},"end":{"line":62,"column":26}},"6":{"start":{"line":64,"column":12},"end":{"line":64,"column":48}},"7":{"start":{"line":66,"column":12},"end":{"line":94,"column":13}},"8":{"start":{"line":67,"column":16},"end":{"line":69,"column":17}},"9":{"start":{"line":68,"column":20},"end":{"line":68,"column":41}},"10":{"start":{"line":71,"column":16},"end":{"line":74,"column":17}},"11":{"start":{"line":72,"column":20},"end":{"line":72,"column":40}},"12":{"start":{"line":73,"column":20},"end":{"line":73,"column":39}},"13":{"start":{"line":77,"column":16},"end":{"line":93,"column":17}},"14":{"start":{"line":78,"column":20},"end":{"line":78,"column":35}},"15":{"start":{"line":80,"column":20},"end":{"line":80,"column":42}},"16":{"start":{"line":81,"column":20},"end":{"line":81,"column":39}},"17":{"start":{"line":83,"column":20},"end":{"line":92,"column":21}},"18":{"start":{"line":85,"column":24},"end":{"line":87,"column":25}},"19":{"start":{"line":86,"column":28},"end":{"line":86,"column":54}},"20":{"start":{"line":90,"column":24},"end":{"line":90,"column":54}},"21":{"start":{"line":91,"column":24},"end":{"line":91,"column":51}},"22":{"start":{"line":95,"column":12},"end":{"line":95,"column":24}},"23":{"start":{"line":109,"column":12},"end":{"line":110,"column":24}},"24":{"start":{"line":112,"column":12},"end":{"line":112,"column":48}},"25":{"start":{"line":113,"column":12},"end":{"line":113,"column":36}},"26":{"start":{"line":115,"column":12},"end":{"line":140,"column":13}},"27":{"start":{"line":116,"column":16},"end":{"line":121,"column":17}},"28":{"start":{"line":117,"column":20},"end":{"line":117,"column":35}},"29":{"start":{"line":118,"column":20},"end":{"line":120,"column":21}},"30":{"start":{"line":119,"column":24},"end":{"line":119,"column":34}},"31":{"start":{"line":123,"column":16},"end":{"line":133,"column":17}},"32":{"start":{"line":124,"column":20},"end":{"line":129,"column":21}},"33":{"start":{"line":125,"column":24},"end":{"line":127,"column":25}},"34":{"start":{"line":126,"column":28},"end":{"line":126,"column":47}},"35":{"start":{"line":128,"column":24},"end":{"line":128,"column":40}},"36":{"start":{"line":130,"column":20},"end":{"line":132,"column":21}},"37":{"start":{"line":131,"column":24},"end":{"line":131,"column":43}},"38":{"start":{"line":135,"column":16},"end":{"line":139,"column":17}},"39":{"start":{"line":136,"column":20},"end":{"line":138,"column":21}},"40":{"start":{"line":137,"column":24},"end":{"line":137,"column":40}},"41":{"start":{"line":141,"column":12},"end":{"line":141,"column":24}},"42":{"start":{"line":152,"column":12},"end":{"line":152,"column":68}},"43":{"start":{"line":166,"column":12},"end":{"line":166,"column":48}},"44":{"start":{"line":168,"column":12},"end":{"line":170,"column":13}},"45":{"start":{"line":169,"column":16},"end":{"line":169,"column":48}},"46":{"start":{"line":179,"column":12},"end":{"line":179,"column":26}},"47":{"start":{"line":183,"column":4},"end":{"line":183,"column":44}}},"branchMap":{"1":{"line":64,"type":"binary-expr","locations":[{"start":{"line":64,"column":28},"end":{"line":64,"column":41}},{"start":{"line":64,"column":45},"end":{"line":64,"column":47}}]},"2":{"line":66,"type":"if","locations":[{"start":{"line":66,"column":12},"end":{"line":66,"column":12}},{"start":{"line":66,"column":12},"end":{"line":66,"column":12}}]},"3":{"line":71,"type":"if","locations":[{"start":{"line":71,"column":16},"end":{"line":71,"column":16}},{"start":{"line":71,"column":16},"end":{"line":71,"column":16}}]},"4":{"line":71,"type":"binary-expr","locations":[{"start":{"line":71,"column":20},"end":{"line":71,"column":26}},{"start":{"line":71,"column":30},"end":{"line":71,"column":51}}]},"5":{"line":77,"type":"if","locations":[{"start":{"line":77,"column":16},"end":{"line":77,"column":16}},{"start":{"line":77,"column":16},"end":{"line":77,"column":16}}]},"6":{"line":77,"type":"binary-expr","locations":[{"start":{"line":77,"column":20},"end":{"line":77,"column":26}},{"start":{"line":77,"column":30},"end":{"line":77,"column":39}}]},"7":{"line":80,"type":"binary-expr","locations":[{"start":{"line":80,"column":29},"end":{"line":80,"column":35}},{"start":{"line":80,"column":39},"end":{"line":80,"column":41}}]},"8":{"line":83,"type":"if","locations":[{"start":{"line":83,"column":20},"end":{"line":83,"column":20}},{"start":{"line":83,"column":20},"end":{"line":83,"column":20}}]},"9":{"line":85,"type":"if","locations":[{"start":{"line":85,"column":24},"end":{"line":85,"column":24}},{"start":{"line":85,"column":24},"end":{"line":85,"column":24}}]},"10":{"line":112,"type":"binary-expr","locations":[{"start":{"line":112,"column":28},"end":{"line":112,"column":41}},{"start":{"line":112,"column":45},"end":{"line":112,"column":47}}]},"11":{"line":115,"type":"if","locations":[{"start":{"line":115,"column":12},"end":{"line":115,"column":12}},{"start":{"line":115,"column":12},"end":{"line":115,"column":12}}]},"12":{"line":116,"type":"if","locations":[{"start":{"line":116,"column":16},"end":{"line":116,"column":16}},{"start":{"line":116,"column":16},"end":{"line":116,"column":16}}]},"13":{"line":118,"type":"if","locations":[{"start":{"line":118,"column":20},"end":{"line":118,"column":20}},{"start":{"line":118,"column":20},"end":{"line":118,"column":20}}]},"14":{"line":118,"type":"binary-expr","locations":[{"start":{"line":118,"column":24},"end":{"line":118,"column":26}},{"start":{"line":118,"column":31},"end":{"line":118,"column":43}},{"start":{"line":118,"column":47},"end":{"line":118,"column":69}}]},"15":{"line":123,"type":"if","locations":[{"start":{"line":123,"column":16},"end":{"line":123,"column":16}},{"start":{"line":123,"column":16},"end":{"line":123,"column":16}}]},"16":{"line":124,"type":"if","locations":[{"start":{"line":124,"column":20},"end":{"line":124,"column":20}},{"start":{"line":124,"column":20},"end":{"line":124,"column":20}}]},"17":{"line":125,"type":"if","locations":[{"start":{"line":125,"column":24},"end":{"line":125,"column":24}},{"start":{"line":125,"column":24},"end":{"line":125,"column":24}}]},"18":{"line":130,"type":"if","locations":[{"start":{"line":130,"column":20},"end":{"line":130,"column":20}},{"start":{"line":130,"column":20},"end":{"line":130,"column":20}}]},"19":{"line":136,"type":"if","locations":[{"start":{"line":136,"column":20},"end":{"line":136,"column":20}},{"start":{"line":136,"column":20},"end":{"line":136,"column":20}}]},"20":{"line":152,"type":"binary-expr","locations":[{"start":{"line":152,"column":20},"end":{"line":152,"column":33}},{"start":{"line":152,"column":37},"end":{"line":152,"column":54}},{"start":{"line":152,"column":58},"end":{"line":152,"column":66}}]},"21":{"line":166,"type":"binary-expr","locations":[{"start":{"line":166,"column":28},"end":{"line":166,"column":41}},{"start":{"line":166,"column":45},"end":{"line":166,"column":47}}]},"22":{"line":168,"type":"if","locations":[{"start":{"line":168,"column":12},"end":{"line":168,"column":12}},{"start":{"line":168,"column":12},"end":{"line":168,"column":12}}]}},"code":["(function () { YUI.add('pluginhost-base', function (Y, NAME) {",""," /**"," * Provides the augmentable PluginHost interface, which can be added to any class."," * @module pluginhost"," */",""," /**"," * Provides the augmentable PluginHost interface, which can be added to any class."," * @module pluginhost-base"," */",""," /**"," *

"," * An augmentable class, which provides the augmented class with the ability to host plugins."," * It adds plug and unplug methods to the augmented class, which can"," * be used to add or remove plugins from instances of the class."," *

"," *"," *

Plugins can also be added through the constructor configuration object passed to the host class' constructor using"," * the \"plugins\" property. Supported values for the \"plugins\" property are those defined by the plug method."," *"," * For example the following code would add the AnimPlugin and IOPlugin to Overlay (the plugin host):"," *

"," * var o = new Overlay({plugins: [ AnimPlugin, {fn:IOPlugin, cfg:{section:\"header\"}}]});"," * "," *

"," *

"," * Plug.Host's protected _initPlugins and _destroyPlugins"," * methods should be invoked by the host class at the appropriate point in the host's lifecyle."," *

"," *"," * @class Plugin.Host"," */",""," var L = Y.Lang;",""," function PluginHost() {"," // do not initialize this._plugins, because Y.Node's may have been created before Y.PluginHost was loaded"," }",""," PluginHost.prototype = {",""," /**"," * Adds a plugin to the host object. This will instantiate the"," * plugin and attach it to the configured namespace on the host object."," *"," * @method plug"," * @chainable"," * @param P {Function | Object |Array} Accepts the plugin class, or an"," * object with a \"fn\" property specifying the plugin class and"," * a \"cfg\" property specifying the configuration for the Plugin."," *

"," * Additionally an Array can also be passed in, with the above function or"," * object values, allowing the user to add multiple plugins in a single call."," *

"," * @param config (Optional) If the first argument is the plugin class, the second argument"," * can be the configuration for the plugin."," * @return {Base} A reference to the host object"," */"," plug: function(Plugin, config) {"," var i, ln, ns;",""," this._plugins = this._plugins || {};",""," if (L.isArray(Plugin)) {"," for (i = 0, ln = Plugin.length; i < ln; i++) {"," this.plug(Plugin[i]);"," }"," } else {"," if (Plugin && !L.isFunction(Plugin)) {"," config = Plugin.cfg;"," Plugin = Plugin.fn;"," }",""," // Plugin should be fn by now"," if (Plugin && Plugin.NS) {"," ns = Plugin.NS;",""," config = config || {};"," config.host = this;",""," if (this.hasPlugin(ns)) {"," // Update config"," if (this[ns].setAttrs) {"," this[ns].setAttrs(config);"," }"," } else {"," // Create new instance"," this[ns] = new Plugin(config);"," this._plugins[ns] = Plugin;"," }"," }"," }"," return this;"," },",""," /**"," * Removes a plugin from the host object. This will destroy the"," * plugin instance and delete the namespace from the host object."," *"," * @method unplug"," * @param {String | Function} plugin The namespace of the plugin, or the plugin class with the static NS namespace property defined. If not provided,"," * all registered plugins are unplugged."," * @return {Base} A reference to the host object"," * @chainable"," */"," unplug: function(plugin) {"," var ns = plugin,"," plugins;",""," this._plugins = this._plugins || {};"," plugins = this._plugins;",""," if (plugin) {"," if (L.isFunction(plugin)) {"," ns = plugin.NS;"," if (ns && (!plugins[ns] || plugins[ns] !== plugin)) {"," ns = null;"," }"," }",""," if (ns) {"," if (this[ns]) {"," if (this[ns].destroy) {"," this[ns].destroy();"," }"," delete this[ns];"," }"," if (plugins[ns]) {"," delete plugins[ns];"," }"," }"," } else {"," for (ns in this._plugins) {"," if (this._plugins.hasOwnProperty(ns)) {"," this.unplug(ns);"," }"," }"," }"," return this;"," },",""," /**"," * Determines if a plugin has plugged into this host."," *"," * @method hasPlugin"," * @param {String} ns The plugin's namespace"," * @return {Plugin} Returns a truthy value (the plugin instance) if present, or undefined if not."," */"," hasPlugin : function(ns) {"," return (this._plugins && this._plugins[ns] && this[ns]);"," },",""," /**"," * Initializes static plugins registered on the host (using the"," * Base.plug static method) and any plugins passed to the"," * instance through the \"plugins\" configuration property."," *"," * @method _initPlugins"," * @param {Object} config The configuration object with property name/value pairs."," * @private"," */",""," _initPlugins: function(config) {"," this._plugins = this._plugins || {};",""," if (this._initConfigPlugins) {"," this._initConfigPlugins(config);"," }"," },",""," /**"," * Unplugs and destroys all plugins on the host"," * @method _destroyPlugins"," * @private"," */"," _destroyPlugins: function() {"," this.unplug();"," }"," };",""," Y.namespace(\"Plugin\").Host = PluginHost;","","","}, '@VERSION@', {\"requires\": [\"yui-base\"]});","","}());"]}; } var __cov_dDY1oPzWlroRs49oPPuh3Q = __coverage__['build/pluginhost-base/pluginhost-base.js']; -__cov_dDY1oPzWlroRs49oPPuh3Q.s['1']++;YUI.add('pluginhost-base',function(Y,NAME){__cov_dDY1oPzWlroRs49oPPuh3Q.f['1']++;__cov_dDY1oPzWlroRs49oPPuh3Q.s['2']++;var L=Y.Lang;__cov_dDY1oPzWlroRs49oPPuh3Q.s['3']++;function PluginHost(){__cov_dDY1oPzWlroRs49oPPuh3Q.f['2']++;__cov_dDY1oPzWlroRs49oPPuh3Q.s['4']++;this._plugins={};}__cov_dDY1oPzWlroRs49oPPuh3Q.s['5']++;PluginHost.prototype={plug:function(Plugin,config){__cov_dDY1oPzWlroRs49oPPuh3Q.f['3']++;__cov_dDY1oPzWlroRs49oPPuh3Q.s['6']++;var i,ln,ns;__cov_dDY1oPzWlroRs49oPPuh3Q.s['7']++;if(L.isArray(Plugin)){__cov_dDY1oPzWlroRs49oPPuh3Q.b['1'][0]++;__cov_dDY1oPzWlroRs49oPPuh3Q.s['8']++;for(i=0,ln=Plugin.length;i Date: Wed, 12 Feb 2014 15:51:44 -0800 Subject: [PATCH 7/7] fix unit tests to work with and without Y.Node._instances --- src/node/tests/unit/node.html | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/node/tests/unit/node.html b/src/node/tests/unit/node.html index 82cee533bd6..ebcb78511fb 100644 --- a/src/node/tests/unit/node.html +++ b/src/node/tests/unit/node.html @@ -226,7 +226,11 @@

test

'should cache node': function() { var node = Y.Node.create('
'); node.appendTo('body'); - Assert.areEqual(node, Y.Node.getDOMNode(node)._yui_instances[Y._yuid]); + if (Y.Node._instances) { + Assert.areEqual(node, Y.Node._instances[node._yuid]); + } else { + Assert.areEqual(node, Y.Node.getDOMNode(node)._yui_instances[Y._yuid]); + } Assert.areEqual(Y.one('#test-caching'), node); node.remove(true); }, @@ -1761,7 +1765,11 @@

test

'should not cache document fragment': function() { var node = Y.Node.create('
foo
bar
'); - Assert.isUndefined(Y.Node.getDOMNode(node)._yui_instances); + if (Y.Node._instances) { + Assert.isUndefined(Y.Node._instances[node._yuid]); + } else { + Assert.isUndefined(Y.Node.getDOMNode(node)._yui_instances); + } }, 'should return false if node is removed': function () {