From cac5802316452f36dd370760c3957b4b81721623 Mon Sep 17 00:00:00 2001 From: John Lindal Date: Fri, 11 Jan 2019 19:38:30 -0800 Subject: [PATCH 1/9] convert node maps to WeakMaps --- src/charts/tests/unit/assets/series-tests.js | 2 +- src/event/tests/manual/mouseenter.html | 2 +- src/node/js/node-core.js | 18 ++++++++---------- src/node/js/node-pluginhost.js | 7 ++++--- src/node/js/nodelist.js | 9 ++++----- src/node/tests/unit/node.html | 4 ++-- src/widget/js/Widget.js | 20 ++++++++------------ 7 files changed, 28 insertions(+), 34 deletions(-) diff --git a/src/charts/tests/unit/assets/series-tests.js b/src/charts/tests/unit/assets/series-tests.js index 5da8ddafefd..fff1412e651 100644 --- a/src/charts/tests/unit/assets/series-tests.js +++ b/src/charts/tests/unit/assets/series-tests.js @@ -189,7 +189,7 @@ YUI.add('series-tests', function(Y) { //clear out the Node references while(nodeReferences.length > 0) { - instance = instances[nodeReferences.shift()]; + instance = instances.get(nodeReferences.shift()); if(instance) { instance.destroy(); diff --git a/src/event/tests/manual/mouseenter.html b/src/event/tests/manual/mouseenter.html index d1bbf07a2ab..bafcf25c5a9 100644 --- a/src/event/tests/manual/mouseenter.html +++ b/src/event/tests/manual/mouseenter.html @@ -186,7 +186,7 @@ document.getElementById('memsize').onclick = function () { //memsnap(); //console.log(count); - console.log(Y.Object.keys(Y.Node._instances).length); + //console.log(Y.Object.keys(Y.Node._instances).length); }; }); diff --git a/src/node/js/node-core.js b/src/node/js/node-core.js index dc4c0105fcc..b34eb51a40d 100644 --- a/src/node/js/node-core.js +++ b/src/node/js/node-core.js @@ -46,7 +46,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 (Y_Node._instances.has(node) && Y_Node._instances.get(node)._node !== node) { node[UID] = null; // unset existing uid to prevent collision (via clone or hack) } @@ -130,7 +130,7 @@ Y_Node.HIDE_TRANSITION = 'fadeOut'; * @static * */ -Y_Node._instances = {}; +Y_Node._instances = new WeakMap(); /** * Retrieves the DOM node bound to a Node instance @@ -273,8 +273,7 @@ Y_Node.importMethod = function(host, name, altName) { */ Y_Node.one = function(node) { var instance = null, - cachedNode, - uid; + cachedNode; if (node) { if (typeof node == 'string') { @@ -287,13 +286,12 @@ 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 + instance = Y_Node._instances.get(node); // 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 + Y_Node._instances.set(node, instance); // cache node } } } @@ -745,7 +743,7 @@ Y.mix(Y_Node.prototype, { if (recursive) { Y.NodeList.each(this.all('*'), function(node) { - instance = Y_Node._instances[node[UID]]; + instance = Y_Node._instances.get(node._node); if (instance) { instance.destroy(); } else { // purge in case added by other means @@ -754,10 +752,10 @@ Y.mix(Y_Node.prototype, { }); } + Y_Node._instances.delete(this._node); + this._node = null; this._stateProxy = null; - - delete Y_Node._instances[this._yuid]; }, /** diff --git a/src/node/js/node-pluginhost.js b/src/node/js/node-pluginhost.js index 58ef2c8aefe..0262cfe8311 100644 --- a/src/node/js/node-pluginhost.js +++ b/src/node/js/node-pluginhost.js @@ -38,9 +38,10 @@ 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); -}); +// TODO: Some way to fix this? WeakMap is not iterable. +//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/src/node/js/nodelist.js b/src/node/js/nodelist.js index 9f764dbb8ea..50066c67063 100644 --- a/src/node/js/nodelist.js +++ b/src/node/js/nodelist.js @@ -75,8 +75,7 @@ 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 instance = Y.Node._instances.get(node), ctx, result; @@ -178,7 +177,7 @@ Y.mix(NodeList.prototype, { var nodelist = this; Y.Array.each(this._nodes, function(node, index) { - var instance = Y.Node._instances[node[UID]]; + var instance = Y.Node._instances.get(node); if (!instance) { instance = NodeList._getTempNode(node); } @@ -420,7 +419,7 @@ NodeList.prototype.get = function(attr) { val; if (nodes[0]) { - instance = Y.Node._instances[nodes[0]._yuid] || getTemp(nodes[0]); + instance = Y.Node._instances.get(nodes[0]) || getTemp(nodes[0]); val = instance._get(attr); if (val && val.nodeType) { isNodeList = true; @@ -428,7 +427,7 @@ NodeList.prototype.get = function(attr) { } Y.Array.each(nodes, function(node) { - instance = Y.Node._instances[node._yuid]; + instance = Y.Node._instances.get(node); if (!instance) { instance = getTemp(node); diff --git a/src/node/tests/unit/node.html b/src/node/tests/unit/node.html index 9d583a690a5..a6ebbead1a6 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._instances.get(node._node)); Assert.areEqual(Y.one('#test-caching'), node); node.remove(true); }, @@ -1760,7 +1760,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._instances.get(node._node)); }, 'should return false if node is removed': function () { diff --git a/src/widget/js/Widget.js b/src/widget/js/Widget.js index 95068fe50ac..5fa37ad52bc 100644 --- a/src/widget/js/Widget.js +++ b/src/widget/js/Widget.js @@ -62,8 +62,8 @@ var L = Y.Lang, WEBKIT = Y.UA.webkit, - // Widget nodeid-to-instance map. - _instances = {}; + // Widget node-to-instance map. + _instances = new WeakMap(); /** * A base class for widgets, providing: @@ -346,7 +346,7 @@ Widget.getByNode = function(node) { if (node) { node = node.ancestor("." + widgetMarker, true); if (node) { - widget = _instances[Y.stamp(node, true)]; + widget = _instances.get(node); } } @@ -391,7 +391,7 @@ Y.extend(Widget, Y.Base, { var bb = this.get(BOUNDING_BOX); if (bb instanceof Node) { - this._mapInstance(Y.stamp(bb)); + this._mapInstance(bb); } /** @@ -413,11 +413,11 @@ Y.extend(Widget, Y.Base, { * This method can be used to populate the instance with lazily created boundingBox Node references. * * @method _mapInstance - * @param {String} The boundingBox id + * @param {Node} The boundingBox * @protected */ - _mapInstance : function(id) { - _instances[id] = this; + _mapInstance : function(node) { + _instances.set(node, this); }, /** @@ -435,11 +435,7 @@ Y.extend(Widget, Y.Base, { bbGuid; if (boundingBox instanceof Node) { - bbGuid = Y.stamp(boundingBox,true); - - if (bbGuid in _instances) { - delete _instances[bbGuid]; - } + _instances.delete(boundingBox); this._destroyBox(); } From d154bc652826fe5baf4d1675fe055415a440364e Mon Sep 17 00:00:00 2001 From: John Lindal Date: Fri, 11 Jan 2019 19:38:42 -0800 Subject: [PATCH 2/9] upgrade build system --- bin/grover_patch_wrapper.js | 219 ++++++++++++++++++ bin/travis-ci | 32 +++ .../gesture-simulate-coverage.js | 2 +- build/node-core/node-core-coverage.js | 4 +- build/node-core/node-core-debug.js | 27 +-- build/node-core/node-core-min.js | 4 +- build/node-core/node-core.js | 27 +-- .../node-pluginhost-coverage.js | 4 +- .../node-pluginhost/node-pluginhost-debug.js | 7 +- build/node-pluginhost/node-pluginhost-min.js | 2 +- build/node-pluginhost/node-pluginhost.js | 7 +- .../paginator-core/paginator-core-coverage.js | 2 +- build/widget-base/widget-base-coverage.js | 4 +- build/widget-base/widget-base-debug.js | 20 +- build/widget-base/widget-base-min.js | 4 +- build/widget-base/widget-base.js | 20 +- package.json | 2 +- 17 files changed, 313 insertions(+), 74 deletions(-) create mode 100644 bin/grover_patch_wrapper.js create mode 100755 bin/travis-ci diff --git a/bin/grover_patch_wrapper.js b/bin/grover_patch_wrapper.js new file mode 100644 index 00000000000..ab0094f7f02 --- /dev/null +++ b/bin/grover_patch_wrapper.js @@ -0,0 +1,219 @@ +/* +Wrapper for PhantomJS and YUITest +*/ + +/*jslint browser: true */ +/*global phantom */ + +var system = require('system'); + +/* +TODO -- +onError: Handle JS errors and throw a YUITest error +Timeout: Specify a timeout (override too) to kill a test +*/ +var waitTimer, + waitCounter = 0, + testTimer, + file = system.args[1], + timeout = parseInt(system.args[2], 10), + exited = false, + debug = false, //Internal debugging of wrapper + logConsole = (system.args[3] === 'true' ? true : false), + log = function(a, b) { + b = (typeof b === 'undefined') ? '' : b; + if (debug) { + console.log(a, b); + } + }, + consoleInfo = []; + +var injectGetYUITest = function() { + window.TestResults = null; + window.getYUITest = function() { + return window.YUITest; + }; + + window.getYUITestResults = function() { + if (window.TestResults) { + return window.TestResults; + } + var YUITest = window.getYUITest(), json, cover; + if (YUITest) { + json = YUITest.Runner.getResults(YUITest.Format.JSON); + cover = YUITest.Runner.getCoverage(); + + if (json && cover) { + json = JSON.parse(json); + json.coverage = cover; + json = JSON.stringify(json); + + } + if (json && window.__coverage__) { + json = JSON.parse(json); + json.coverageType = 'istanbul'; + json.coverage = window.__coverage__; + json = JSON.stringify(json); + } + return json; + } + }; + +}; +var startTest = function(page, cb) { + log('Checking for YUITest'); + testTimer = setInterval(function() { + //console.log('Checking..'); + var status = page.evaluate(function() { + var t = window.getYUITest(), + i, name; + if (t) { + for (i in t) { + if (t.hasOwnProperty(i)) { + name = i.replace('Test', ''); + t[name] = t[i]; + } + } + } + return (t ? true : false); + }); + log('Tester: ', status); + if (status) { + clearInterval(testTimer); + cb(status); + } + }, 50); +}; + +var throwError = function(msg, trace) { + log('throwError executed'); + var json = { + passed: 0, + failed: 1, + total: 1, + ignored: 0, + name: file, + error: msg + }; + if (trace) { + trace.forEach(function(item) { + json.error += '\n' + item.file + ':' + item.line; + }); + } + if (!exited) { + console.log(JSON.stringify(json)); + } + exited = true; + phantom.exit(1); +}; + +var waitForResults = function(page, cb) { + + waitTimer = setInterval(function() { + waitCounter++; + log('Waiting on Results', waitCounter); + var status = page.evaluate(function() { + return window.getYUITestResults(); + }); + if (status) { + clearInterval(waitTimer); + log('Found Results'); + cb(status); + return; + } else { + log('NO RESULTS'); + } + + }, 150); + +}; + +var executeTest = function(file, cb) { + log('executing tests in ', file); + var page = require('webpage').create(); + + page.settings.javascriptEnabled = true; + page.settings.localToRemoteUrlAccessEnabled = true; + page.settings.loadImages = true; + page.settings.loadPlugins = true; + page.viewportSize = { + width: 1024, + height: 768 + }; + + if (debug) { + page.onConsoleMessage = function(msg) { + console.log('[console.log]', msg); + }; + } + if (logConsole) { + page.onConsoleMessage = function() { + var args = [], i = 0; + for (i = 0; i < arguments.length; i++) { + args.push(arguments[i]); + } + consoleInfo.push({ + type: 'console.log', + 'arguments': args + }); + }; + page.onAlert = function(msg) { + consoleInfo.push({ + type: 'window.alert', + 'arguments': [msg] + }); + }; + } + page.onError = function(msg, trace) { + throwError(msg, trace); + }; + + log('Opening File', file); + page.open(file, function(status) { + log('Opened File', file); + if (status === 'fail') { + throwError('Phantom failed to load this page'); + } + log('Status: ', status); + log('Injecting getYUITest'); + page.evaluate(injectGetYUITest); + + startTest(page, function() { + log('YUITest Found..'); + waitForResults(page, function(results) { + log('YUITest Results Returned'); + cb(page, results); + }); + }); + }); +}; + + +if (system.args.length < 2) { + console.log('Please provide some test files to execute'); + phantom.exit(1); +} + +if (isNaN(timeout)) { + timeout = 60; //Default to one minute before failing the test +} +setTimeout(function() { + throwError('Script Timeout'); +}, (timeout * 1000)); + +executeTest(file, function(page, results) { + log('executeTest callback fired'); + if (!exited) { + var json = JSON.parse(results); + if (typeof json === 'object') { + json.consoleInfo = consoleInfo; + } + if (Array.isArray(json)) { + json[0].consoleInfo = console.Info; + } + results = JSON.stringify(json); + console.log(results); + } + exited = true; + phantom.exit(); +}); diff --git a/bin/travis-ci b/bin/travis-ci new file mode 100755 index 00000000000..aa3adc1f011 --- /dev/null +++ b/bin/travis-ci @@ -0,0 +1,32 @@ +#!/bin/bash + +echo ===; +whoami; +echo ===; + +YOGI=`readlink -f $(which yogi)`; +YOGI=${YOGI%/*}; +cp -f ./bin/grover_patch_wrapper.js $YOGI/../node_modules/grover/lib/wrapper/wrapper.js; + +echo patched grover; +echo ===; + +# build everything + +for d in src/*; do + if [[ ! -f $d/build.json ]]; then continue; fi + + pushd $d + if ! yogi build --no-lint; then exit 1; fi + popd +done + +# test everything after all modules have been built + +for d in src/*; do + if [[ ! -d $d/tests/unit ]]; then continue; fi + + pushd $d + if ! yogi test; then exit 1; fi + popd +done diff --git a/build/gesture-simulate/gesture-simulate-coverage.js b/build/gesture-simulate/gesture-simulate-coverage.js index e7794082ccc..0e583afceca 100644 --- a/build/gesture-simulate/gesture-simulate-coverage.js +++ b/build/gesture-simulate/gesture-simulate-coverage.js @@ -3,4 +3,4 @@ if (!__coverage__['build/gesture-simulate/gesture-simulate.js']) { __coverage__['build/gesture-simulate/gesture-simulate.js'] = {"path":"build/gesture-simulate/gesture-simulate.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},"b":{"1":[0,0,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,0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0,0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0],"28":[0,0],"29":[0,0],"30":[0,0],"31":[0,0],"32":[0,0],"33":[0,0],"34":[0,0],"35":[0,0],"36":[0,0],"37":[0,0],"38":[0,0],"39":[0,0],"40":[0,0],"41":[0,0],"42":[0,0],"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],"54":[0,0],"55":[0,0],"56":[0,0],"57":[0,0],"58":[0,0],"59":[0,0],"60":[0,0,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,0,0,0,0],"81":[0,0],"82":[0,0],"83":[0,0],"84":[0,0],"85":[0,0,0,0,0,0,0],"86":[0,0],"87":[0,0],"88":[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},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":28},"end":{"line":1,"column":47}}},"2":{"name":"Simulations","line":83,"loc":{"start":{"line":83,"column":0},"end":{"line":83,"column":27}}},"3":{"name":"(anonymous_3)","line":107,"loc":{"start":{"line":107,"column":15},"end":{"line":107,"column":29}}},"4":{"name":"(anonymous_4)","line":120,"loc":{"start":{"line":120,"column":15},"end":{"line":120,"column":26}}},"5":{"name":"(anonymous_5)","line":160,"loc":{"start":{"line":160,"column":28},"end":{"line":160,"column":44}}},"6":{"name":"(anonymous_6)","line":202,"loc":{"start":{"line":202,"column":12},"end":{"line":202,"column":84}}},"7":{"name":"(anonymous_7)","line":249,"loc":{"start":{"line":249,"column":11},"end":{"line":249,"column":83}}},"8":{"name":"(anonymous_8)","line":324,"loc":{"start":{"line":324,"column":16},"end":{"line":324,"column":27}}},"9":{"name":"(anonymous_9)","line":383,"loc":{"start":{"line":383,"column":20},"end":{"line":383,"column":35}}},"10":{"name":"(anonymous_10)","line":446,"loc":{"start":{"line":446,"column":16},"end":{"line":446,"column":27}}},"11":{"name":"(anonymous_11)","line":528,"loc":{"start":{"line":528,"column":9},"end":{"line":528,"column":49}}},"12":{"name":"(anonymous_12)","line":560,"loc":{"start":{"line":560,"column":21},"end":{"line":560,"column":32}}},"13":{"name":"(anonymous_13)","line":568,"loc":{"start":{"line":568,"column":19},"end":{"line":568,"column":30}}},"14":{"name":"(anonymous_14)","line":592,"loc":{"start":{"line":592,"column":20},"end":{"line":592,"column":31}}},"15":{"name":"(anonymous_15)","line":633,"loc":{"start":{"line":633,"column":11},"end":{"line":633,"column":57}}},"16":{"name":"(anonymous_16)","line":698,"loc":{"start":{"line":698,"column":10},"end":{"line":698,"column":39}}},"17":{"name":"(anonymous_17)","line":753,"loc":{"start":{"line":753,"column":11},"end":{"line":753,"column":40}}},"18":{"name":"(anonymous_18)","line":800,"loc":{"start":{"line":800,"column":16},"end":{"line":800,"column":27}}},"19":{"name":"(anonymous_19)","line":826,"loc":{"start":{"line":826,"column":20},"end":{"line":826,"column":35}}},"20":{"name":"(anonymous_20)","line":856,"loc":{"start":{"line":856,"column":16},"end":{"line":856,"column":27}}},"21":{"name":"(anonymous_21)","line":879,"loc":{"start":{"line":879,"column":16},"end":{"line":879,"column":27}}},"22":{"name":"(anonymous_22)","line":923,"loc":{"start":{"line":923,"column":24},"end":{"line":923,"column":35}}},"23":{"name":"(anonymous_23)","line":942,"loc":{"start":{"line":942,"column":22},"end":{"line":942,"column":44}}},"24":{"name":"(anonymous_24)","line":955,"loc":{"start":{"line":955,"column":36},"end":{"line":955,"column":52}}},"25":{"name":"(anonymous_25)","line":981,"loc":{"start":{"line":981,"column":36},"end":{"line":981,"column":52}}},"26":{"name":"(anonymous_26)","line":1002,"loc":{"start":{"line":1002,"column":33},"end":{"line":1002,"column":45}}},"27":{"name":"(anonymous_27)","line":1022,"loc":{"start":{"line":1022,"column":20},"end":{"line":1022,"column":52}}},"28":{"name":"(anonymous_28)","line":1074,"loc":{"start":{"line":1074,"column":20},"end":{"line":1074,"column":69}}},"29":{"name":"(anonymous_29)","line":1262,"loc":{"start":{"line":1262,"column":26},"end":{"line":1262,"column":60}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1321,"column":80}},"2":{"start":{"line":10,"column":0},"end":{"line":80,"column":17}},"3":{"start":{"line":83,"column":0},"end":{"line":95,"column":1}},"4":{"start":{"line":84,"column":4},"end":{"line":86,"column":5}},"5":{"start":{"line":85,"column":8},"end":{"line":85,"column":46}},"6":{"start":{"line":87,"column":4},"end":{"line":87,"column":21}},"7":{"start":{"line":88,"column":4},"end":{"line":88,"column":42}},"8":{"start":{"line":90,"column":4},"end":{"line":91,"column":31}},"9":{"start":{"line":93,"column":4},"end":{"line":93,"column":43}},"10":{"start":{"line":94,"column":4},"end":{"line":94,"column":43}},"11":{"start":{"line":97,"column":0},"end":{"line":1079,"column":2}},"12":{"start":{"line":108,"column":8},"end":{"line":108,"column":35}},"13":{"start":{"line":121,"column":8},"end":{"line":123,"column":19}},"14":{"start":{"line":126,"column":8},"end":{"line":146,"column":9}},"15":{"start":{"line":127,"column":12},"end":{"line":127,"column":57}},"16":{"start":{"line":129,"column":12},"end":{"line":134,"column":13}},"17":{"start":{"line":130,"column":16},"end":{"line":130,"column":39}},"18":{"start":{"line":133,"column":16},"end":{"line":133,"column":62}},"19":{"start":{"line":136,"column":12},"end":{"line":141,"column":13}},"20":{"start":{"line":137,"column":16},"end":{"line":137,"column":37}},"21":{"start":{"line":140,"column":16},"end":{"line":140,"column":61}},"22":{"start":{"line":143,"column":12},"end":{"line":143,"column":45}},"23":{"start":{"line":144,"column":12},"end":{"line":144,"column":33}},"24":{"start":{"line":145,"column":12},"end":{"line":145,"column":35}},"25":{"start":{"line":148,"column":8},"end":{"line":148,"column":31}},"26":{"start":{"line":162,"column":8},"end":{"line":162,"column":19}},"27":{"start":{"line":164,"column":8},"end":{"line":174,"column":9}},"28":{"start":{"line":165,"column":12},"end":{"line":165,"column":47}},"29":{"start":{"line":167,"column":12},"end":{"line":170,"column":13}},"30":{"start":{"line":168,"column":16},"end":{"line":168,"column":42}},"31":{"start":{"line":169,"column":16},"end":{"line":169,"column":36}},"32":{"start":{"line":172,"column":12},"end":{"line":172,"column":51}},"33":{"start":{"line":173,"column":12},"end":{"line":173,"column":51}},"34":{"start":{"line":176,"column":8},"end":{"line":176,"column":21}},"35":{"start":{"line":203,"column":8},"end":{"line":205,"column":27}},"36":{"start":{"line":207,"column":8},"end":{"line":212,"column":9}},"37":{"start":{"line":208,"column":12},"end":{"line":209,"column":71}},"38":{"start":{"line":210,"column":12},"end":{"line":210,"column":24}},"39":{"start":{"line":211,"column":12},"end":{"line":211,"column":24}},"40":{"start":{"line":215,"column":8},"end":{"line":217,"column":9}},"41":{"start":{"line":216,"column":12},"end":{"line":216,"column":55}},"42":{"start":{"line":219,"column":8},"end":{"line":219,"column":66}},"43":{"start":{"line":250,"column":8},"end":{"line":264,"column":22}},"44":{"start":{"line":266,"column":8},"end":{"line":266,"column":53}},"45":{"start":{"line":268,"column":8},"end":{"line":270,"column":9}},"46":{"start":{"line":269,"column":12},"end":{"line":269,"column":72}},"47":{"start":{"line":272,"column":8},"end":{"line":274,"column":9}},"48":{"start":{"line":273,"column":12},"end":{"line":273,"column":47}},"49":{"start":{"line":276,"column":8},"end":{"line":283,"column":9}},"50":{"start":{"line":277,"column":12},"end":{"line":277,"column":24}},"51":{"start":{"line":279,"column":12},"end":{"line":279,"column":30}},"52":{"start":{"line":280,"column":12},"end":{"line":282,"column":13}},"53":{"start":{"line":281,"column":16},"end":{"line":281,"column":29}},"54":{"start":{"line":285,"column":8},"end":{"line":287,"column":9}},"55":{"start":{"line":286,"column":12},"end":{"line":286,"column":27}},"56":{"start":{"line":289,"column":8},"end":{"line":289,"column":49}},"57":{"start":{"line":290,"column":8},"end":{"line":290,"column":40}},"58":{"start":{"line":293,"column":8},"end":{"line":293,"column":28}},"59":{"start":{"line":294,"column":8},"end":{"line":294,"column":28}},"60":{"start":{"line":296,"column":8},"end":{"line":296,"column":25}},"61":{"start":{"line":297,"column":8},"end":{"line":297,"column":34}},"62":{"start":{"line":300,"column":8},"end":{"line":303,"column":10}},"63":{"start":{"line":304,"column":8},"end":{"line":307,"column":10}},"64":{"start":{"line":310,"column":8},"end":{"line":313,"column":10}},"65":{"start":{"line":314,"column":8},"end":{"line":317,"column":10}},"66":{"start":{"line":319,"column":8},"end":{"line":319,"column":25}},"67":{"start":{"line":320,"column":8},"end":{"line":320,"column":41}},"68":{"start":{"line":323,"column":8},"end":{"line":375,"column":11}},"69":{"start":{"line":325,"column":16},"end":{"line":325,"column":51}},"70":{"start":{"line":328,"column":16},"end":{"line":333,"column":18}},"71":{"start":{"line":334,"column":16},"end":{"line":339,"column":18}},"72":{"start":{"line":340,"column":16},"end":{"line":344,"column":29}},"73":{"start":{"line":347,"column":16},"end":{"line":352,"column":18}},"74":{"start":{"line":354,"column":16},"end":{"line":360,"column":27}},"75":{"start":{"line":362,"column":16},"end":{"line":371,"column":17}},"76":{"start":{"line":367,"column":20},"end":{"line":370,"column":31}},"77":{"start":{"line":378,"column":8},"end":{"line":378,"column":46}},"78":{"start":{"line":379,"column":8},"end":{"line":379,"column":40}},"79":{"start":{"line":380,"column":8},"end":{"line":380,"column":53}},"80":{"start":{"line":381,"column":8},"end":{"line":381,"column":47}},"81":{"start":{"line":383,"column":8},"end":{"line":434,"column":10}},"82":{"start":{"line":384,"column":12},"end":{"line":391,"column":47}},"83":{"start":{"line":394,"column":12},"end":{"line":399,"column":14}},"84":{"start":{"line":400,"column":12},"end":{"line":405,"column":14}},"85":{"start":{"line":406,"column":12},"end":{"line":410,"column":25}},"86":{"start":{"line":413,"column":12},"end":{"line":418,"column":14}},"87":{"start":{"line":420,"column":12},"end":{"line":426,"column":23}},"88":{"start":{"line":428,"column":12},"end":{"line":433,"column":13}},"89":{"start":{"line":429,"column":16},"end":{"line":432,"column":27}},"90":{"start":{"line":436,"column":8},"end":{"line":442,"column":9}},"91":{"start":{"line":437,"column":12},"end":{"line":441,"column":15}},"92":{"start":{"line":445,"column":8},"end":{"line":493,"column":11}},"93":{"start":{"line":447,"column":16},"end":{"line":448,"column":51}},"94":{"start":{"line":451,"column":16},"end":{"line":456,"column":18}},"95":{"start":{"line":457,"column":16},"end":{"line":462,"column":18}},"96":{"start":{"line":463,"column":16},"end":{"line":467,"column":29}},"97":{"start":{"line":470,"column":16},"end":{"line":475,"column":18}},"98":{"start":{"line":477,"column":16},"end":{"line":482,"column":17}},"99":{"start":{"line":478,"column":20},"end":{"line":481,"column":31}},"100":{"start":{"line":484,"column":16},"end":{"line":490,"column":27}},"101":{"start":{"line":495,"column":8},"end":{"line":506,"column":9}},"102":{"start":{"line":496,"column":12},"end":{"line":505,"column":15}},"103":{"start":{"line":508,"column":8},"end":{"line":508,"column":25}},"104":{"start":{"line":529,"column":8},"end":{"line":535,"column":21}},"105":{"start":{"line":537,"column":8},"end":{"line":537,"column":51}},"106":{"start":{"line":539,"column":8},"end":{"line":541,"column":9}},"107":{"start":{"line":540,"column":12},"end":{"line":540,"column":22}},"108":{"start":{"line":543,"column":8},"end":{"line":545,"column":9}},"109":{"start":{"line":544,"column":12},"end":{"line":544,"column":37}},"110":{"start":{"line":547,"column":8},"end":{"line":549,"column":9}},"111":{"start":{"line":548,"column":12},"end":{"line":548,"column":39}},"112":{"start":{"line":551,"column":8},"end":{"line":556,"column":10}},"113":{"start":{"line":558,"column":8},"end":{"line":558,"column":75}},"114":{"start":{"line":560,"column":8},"end":{"line":566,"column":10}},"115":{"start":{"line":561,"column":12},"end":{"line":565,"column":23}},"116":{"start":{"line":568,"column":8},"end":{"line":574,"column":10}},"117":{"start":{"line":569,"column":12},"end":{"line":573,"column":23}},"118":{"start":{"line":576,"column":8},"end":{"line":588,"column":9}},"119":{"start":{"line":577,"column":12},"end":{"line":581,"column":15}},"120":{"start":{"line":583,"column":12},"end":{"line":587,"column":15}},"121":{"start":{"line":590,"column":8},"end":{"line":597,"column":9}},"122":{"start":{"line":591,"column":12},"end":{"line":596,"column":15}},"123":{"start":{"line":593,"column":20},"end":{"line":593,"column":76}},"124":{"start":{"line":599,"column":8},"end":{"line":610,"column":9}},"125":{"start":{"line":600,"column":12},"end":{"line":609,"column":15}},"126":{"start":{"line":612,"column":8},"end":{"line":612,"column":25}},"127":{"start":{"line":634,"column":8},"end":{"line":634,"column":17}},"128":{"start":{"line":636,"column":8},"end":{"line":636,"column":51}},"129":{"start":{"line":638,"column":8},"end":{"line":645,"column":9}},"130":{"start":{"line":639,"column":12},"end":{"line":639,"column":26}},"131":{"start":{"line":641,"column":12},"end":{"line":641,"column":38}},"132":{"start":{"line":642,"column":12},"end":{"line":644,"column":13}},"133":{"start":{"line":643,"column":16},"end":{"line":643,"column":66}},"134":{"start":{"line":647,"column":8},"end":{"line":649,"column":9}},"135":{"start":{"line":648,"column":12},"end":{"line":648,"column":47}},"136":{"start":{"line":651,"column":8},"end":{"line":657,"column":9}},"137":{"start":{"line":652,"column":12},"end":{"line":652,"column":47}},"138":{"start":{"line":654,"column":12},"end":{"line":656,"column":13}},"139":{"start":{"line":655,"column":16},"end":{"line":655,"column":55}},"140":{"start":{"line":664,"column":8},"end":{"line":666,"column":9}},"141":{"start":{"line":665,"column":12},"end":{"line":665,"column":70}},"142":{"start":{"line":668,"column":8},"end":{"line":674,"column":10}},"143":{"start":{"line":676,"column":8},"end":{"line":676,"column":39}},"144":{"start":{"line":699,"column":8},"end":{"line":699,"column":26}},"145":{"start":{"line":701,"column":8},"end":{"line":722,"column":9}},"146":{"start":{"line":702,"column":12},"end":{"line":706,"column":14}},"147":{"start":{"line":709,"column":12},"end":{"line":713,"column":13}},"148":{"start":{"line":710,"column":16},"end":{"line":710,"column":61}},"149":{"start":{"line":712,"column":16},"end":{"line":712,"column":69}},"150":{"start":{"line":715,"column":12},"end":{"line":717,"column":13}},"151":{"start":{"line":716,"column":16},"end":{"line":716,"column":52}},"152":{"start":{"line":719,"column":12},"end":{"line":721,"column":13}},"153":{"start":{"line":720,"column":16},"end":{"line":720,"column":31}},"154":{"start":{"line":724,"column":8},"end":{"line":730,"column":9}},"155":{"start":{"line":725,"column":12},"end":{"line":725,"column":46}},"156":{"start":{"line":727,"column":12},"end":{"line":729,"column":13}},"157":{"start":{"line":728,"column":16},"end":{"line":728,"column":54}},"158":{"start":{"line":732,"column":8},"end":{"line":735,"column":10}},"159":{"start":{"line":737,"column":8},"end":{"line":737,"column":48}},"160":{"start":{"line":754,"column":8},"end":{"line":759,"column":22}},"161":{"start":{"line":761,"column":8},"end":{"line":767,"column":9}},"162":{"start":{"line":762,"column":12},"end":{"line":762,"column":46}},"163":{"start":{"line":764,"column":12},"end":{"line":766,"column":13}},"164":{"start":{"line":765,"column":16},"end":{"line":765,"column":54}},"165":{"start":{"line":769,"column":8},"end":{"line":793,"column":9}},"166":{"start":{"line":770,"column":12},"end":{"line":779,"column":14}},"167":{"start":{"line":781,"column":12},"end":{"line":786,"column":13}},"168":{"start":{"line":782,"column":16},"end":{"line":785,"column":18}},"169":{"start":{"line":787,"column":12},"end":{"line":792,"column":13}},"170":{"start":{"line":788,"column":16},"end":{"line":791,"column":18}},"171":{"start":{"line":795,"column":8},"end":{"line":795,"column":49}},"172":{"start":{"line":796,"column":8},"end":{"line":796,"column":40}},"173":{"start":{"line":799,"column":8},"end":{"line":819,"column":11}},"174":{"start":{"line":801,"column":16},"end":{"line":809,"column":23}},"175":{"start":{"line":811,"column":16},"end":{"line":815,"column":27}},"176":{"start":{"line":822,"column":8},"end":{"line":822,"column":46}},"177":{"start":{"line":823,"column":8},"end":{"line":823,"column":52}},"178":{"start":{"line":824,"column":8},"end":{"line":824,"column":52}},"179":{"start":{"line":826,"column":8},"end":{"line":844,"column":10}},"180":{"start":{"line":827,"column":12},"end":{"line":837,"column":19}},"181":{"start":{"line":839,"column":12},"end":{"line":843,"column":23}},"182":{"start":{"line":846,"column":8},"end":{"line":852,"column":9}},"183":{"start":{"line":847,"column":12},"end":{"line":851,"column":15}},"184":{"start":{"line":855,"column":8},"end":{"line":875,"column":11}},"185":{"start":{"line":857,"column":16},"end":{"line":865,"column":23}},"186":{"start":{"line":867,"column":16},"end":{"line":871,"column":27}},"187":{"start":{"line":878,"column":8},"end":{"line":898,"column":11}},"188":{"start":{"line":880,"column":16},"end":{"line":889,"column":19}},"189":{"start":{"line":891,"column":16},"end":{"line":895,"column":27}},"190":{"start":{"line":900,"column":8},"end":{"line":911,"column":9}},"191":{"start":{"line":901,"column":12},"end":{"line":910,"column":15}},"192":{"start":{"line":913,"column":8},"end":{"line":913,"column":25}},"193":{"start":{"line":924,"column":8},"end":{"line":926,"column":9}},"194":{"start":{"line":925,"column":12},"end":{"line":925,"column":55}},"195":{"start":{"line":928,"column":8},"end":{"line":928,"column":30}},"196":{"start":{"line":949,"column":8},"end":{"line":951,"column":24}},"197":{"start":{"line":953,"column":8},"end":{"line":1008,"column":9}},"198":{"start":{"line":954,"column":12},"end":{"line":1005,"column":13}},"199":{"start":{"line":955,"column":16},"end":{"line":967,"column":19}},"200":{"start":{"line":956,"column":20},"end":{"line":956,"column":65}},"201":{"start":{"line":956,"column":43},"end":{"line":956,"column":64}},"202":{"start":{"line":957,"column":20},"end":{"line":957,"column":55}},"203":{"start":{"line":957,"column":38},"end":{"line":957,"column":54}},"204":{"start":{"line":958,"column":20},"end":{"line":958,"column":55}},"205":{"start":{"line":958,"column":38},"end":{"line":958,"column":54}},"206":{"start":{"line":959,"column":20},"end":{"line":959,"column":59}},"207":{"start":{"line":959,"column":40},"end":{"line":959,"column":58}},"208":{"start":{"line":960,"column":20},"end":{"line":960,"column":59}},"209":{"start":{"line":960,"column":40},"end":{"line":960,"column":58}},"210":{"start":{"line":962,"column":20},"end":{"line":966,"column":55}},"211":{"start":{"line":969,"column":16},"end":{"line":969,"column":78}},"212":{"start":{"line":970,"column":19},"end":{"line":1005,"column":13}},"213":{"start":{"line":971,"column":16},"end":{"line":971,"column":79}},"214":{"start":{"line":980,"column":16},"end":{"line":980,"column":31}},"215":{"start":{"line":981,"column":16},"end":{"line":1000,"column":19}},"216":{"start":{"line":982,"column":20},"end":{"line":982,"column":65}},"217":{"start":{"line":982,"column":43},"end":{"line":982,"column":64}},"218":{"start":{"line":983,"column":20},"end":{"line":983,"column":60}},"219":{"start":{"line":983,"column":41},"end":{"line":983,"column":59}},"220":{"start":{"line":984,"column":20},"end":{"line":984,"column":60}},"221":{"start":{"line":984,"column":41},"end":{"line":984,"column":59}},"222":{"start":{"line":985,"column":20},"end":{"line":985,"column":58}},"223":{"start":{"line":985,"column":41},"end":{"line":985,"column":57}},"224":{"start":{"line":986,"column":20},"end":{"line":986,"column":58}},"225":{"start":{"line":986,"column":41},"end":{"line":986,"column":57}},"226":{"start":{"line":987,"column":20},"end":{"line":987,"column":60}},"227":{"start":{"line":987,"column":41},"end":{"line":987,"column":59}},"228":{"start":{"line":988,"column":20},"end":{"line":988,"column":60}},"229":{"start":{"line":988,"column":41},"end":{"line":988,"column":59}},"230":{"start":{"line":990,"column":20},"end":{"line":999,"column":23}},"231":{"start":{"line":1002,"column":16},"end":{"line":1004,"column":18}},"232":{"start":{"line":1003,"column":20},"end":{"line":1003,"column":40}},"233":{"start":{"line":1007,"column":12},"end":{"line":1007,"column":57}},"234":{"start":{"line":1010,"column":8},"end":{"line":1010,"column":25}},"235":{"start":{"line":1023,"column":8},"end":{"line":1023,"column":20}},"236":{"start":{"line":1025,"column":8},"end":{"line":1063,"column":9}},"237":{"start":{"line":1026,"column":12},"end":{"line":1059,"column":13}},"238":{"start":{"line":1027,"column":16},"end":{"line":1027,"column":56}},"239":{"start":{"line":1031,"column":16},"end":{"line":1058,"column":17}},"240":{"start":{"line":1032,"column":20},"end":{"line":1036,"column":28}},"241":{"start":{"line":1038,"column":20},"end":{"line":1038,"column":39}},"242":{"start":{"line":1039,"column":20},"end":{"line":1039,"column":49}},"243":{"start":{"line":1042,"column":20},"end":{"line":1042,"column":92}},"244":{"start":{"line":1044,"column":20},"end":{"line":1049,"column":29}},"245":{"start":{"line":1051,"column":20},"end":{"line":1051,"column":60}},"246":{"start":{"line":1053,"column":20},"end":{"line":1055,"column":21}},"247":{"start":{"line":1054,"column":24},"end":{"line":1054,"column":71}},"248":{"start":{"line":1057,"column":20},"end":{"line":1057,"column":136}},"249":{"start":{"line":1062,"column":12},"end":{"line":1062,"column":52}},"250":{"start":{"line":1075,"column":8},"end":{"line":1077,"column":61}},"251":{"start":{"line":1084,"column":0},"end":{"line":1084,"column":34}},"252":{"start":{"line":1091,"column":0},"end":{"line":1091,"column":40}},"253":{"start":{"line":1096,"column":0},"end":{"line":1096,"column":44}},"254":{"start":{"line":1262,"column":0},"end":{"line":1318,"column":2}},"255":{"start":{"line":1264,"column":4},"end":{"line":1264,"column":23}},"256":{"start":{"line":1266,"column":4},"end":{"line":1266,"column":44}},"257":{"start":{"line":1267,"column":4},"end":{"line":1267,"column":30}},"258":{"start":{"line":1269,"column":4},"end":{"line":1272,"column":5}},"259":{"start":{"line":1270,"column":8},"end":{"line":1270,"column":21}},"260":{"start":{"line":1271,"column":8},"end":{"line":1271,"column":21}},"261":{"start":{"line":1274,"column":4},"end":{"line":1274,"column":28}},"262":{"start":{"line":1276,"column":4},"end":{"line":1317,"column":5}},"263":{"start":{"line":1277,"column":8},"end":{"line":1314,"column":9}},"264":{"start":{"line":1280,"column":16},"end":{"line":1280,"column":87}},"265":{"start":{"line":1281,"column":16},"end":{"line":1281,"column":22}},"266":{"start":{"line":1283,"column":16},"end":{"line":1283,"column":46}},"267":{"start":{"line":1284,"column":16},"end":{"line":1284,"column":22}},"268":{"start":{"line":1286,"column":16},"end":{"line":1292,"column":17}},"269":{"start":{"line":1287,"column":20},"end":{"line":1287,"column":55}},"270":{"start":{"line":1288,"column":23},"end":{"line":1292,"column":17}},"271":{"start":{"line":1289,"column":20},"end":{"line":1289,"column":59}},"272":{"start":{"line":1290,"column":23},"end":{"line":1292,"column":17}},"273":{"start":{"line":1291,"column":20},"end":{"line":1291,"column":59}},"274":{"start":{"line":1293,"column":16},"end":{"line":1293,"column":60}},"275":{"start":{"line":1294,"column":16},"end":{"line":1294,"column":22}},"276":{"start":{"line":1298,"column":16},"end":{"line":1298,"column":61}},"277":{"start":{"line":1299,"column":16},"end":{"line":1299,"column":22}},"278":{"start":{"line":1301,"column":16},"end":{"line":1302,"column":38}},"279":{"start":{"line":1303,"column":16},"end":{"line":1303,"column":22}},"280":{"start":{"line":1307,"column":16},"end":{"line":1308,"column":71}},"281":{"start":{"line":1309,"column":16},"end":{"line":1309,"column":22}},"282":{"start":{"line":1311,"column":16},"end":{"line":1312,"column":71}},"283":{"start":{"line":1313,"column":16},"end":{"line":1313,"column":22}},"284":{"start":{"line":1316,"column":8},"end":{"line":1316,"column":68}}},"branchMap":{"1":{"line":13,"type":"binary-expr","locations":[{"start":{"line":13,"column":23},"end":{"line":13,"column":35}},{"start":{"line":13,"column":40},"end":{"line":13,"column":70}},{"start":{"line":13,"column":76},"end":{"line":13,"column":93}},{"start":{"line":13,"column":97},"end":{"line":13,"column":130}}]},"2":{"line":13,"type":"binary-expr","locations":[{"start":{"line":13,"column":99},"end":{"line":13,"column":110}},{"start":{"line":13,"column":114},"end":{"line":13,"column":129}}]},"3":{"line":84,"type":"if","locations":[{"start":{"line":84,"column":4},"end":{"line":84,"column":4}},{"start":{"line":84,"column":4},"end":{"line":84,"column":4}}]},"4":{"line":126,"type":"if","locations":[{"start":{"line":126,"column":8},"end":{"line":126,"column":8}},{"start":{"line":126,"column":8},"end":{"line":126,"column":8}}]},"5":{"line":129,"type":"if","locations":[{"start":{"line":129,"column":12},"end":{"line":129,"column":12}},{"start":{"line":129,"column":12},"end":{"line":129,"column":12}}]},"6":{"line":136,"type":"if","locations":[{"start":{"line":136,"column":12},"end":{"line":136,"column":12}},{"start":{"line":136,"column":12},"end":{"line":136,"column":12}}]},"7":{"line":164,"type":"if","locations":[{"start":{"line":164,"column":8},"end":{"line":164,"column":8}},{"start":{"line":164,"column":8},"end":{"line":164,"column":8}}]},"8":{"line":164,"type":"binary-expr","locations":[{"start":{"line":164,"column":11},"end":{"line":164,"column":33}},{"start":{"line":164,"column":37},"end":{"line":164,"column":55}}]},"9":{"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}}]},"10":{"line":207,"type":"if","locations":[{"start":{"line":207,"column":8},"end":{"line":207,"column":8}},{"start":{"line":207,"column":8},"end":{"line":207,"column":8}}]},"11":{"line":207,"type":"binary-expr","locations":[{"start":{"line":207,"column":11},"end":{"line":207,"column":31}},{"start":{"line":207,"column":35},"end":{"line":207,"column":55}},{"start":{"line":207,"column":59},"end":{"line":207,"column":63}},{"start":{"line":207,"column":67},"end":{"line":207,"column":71}}]},"12":{"line":208,"type":"cond-expr","locations":[{"start":{"line":209,"column":16},"end":{"line":209,"column":41}},{"start":{"line":209,"column":44},"end":{"line":209,"column":70}}]},"13":{"line":215,"type":"if","locations":[{"start":{"line":215,"column":8},"end":{"line":215,"column":8}},{"start":{"line":215,"column":8},"end":{"line":215,"column":8}}]},"14":{"line":268,"type":"if","locations":[{"start":{"line":268,"column":8},"end":{"line":268,"column":8}},{"start":{"line":268,"column":8},"end":{"line":268,"column":8}}]},"15":{"line":268,"type":"binary-expr","locations":[{"start":{"line":268,"column":11},"end":{"line":268,"column":31}},{"start":{"line":268,"column":35},"end":{"line":268,"column":55}},{"start":{"line":268,"column":59},"end":{"line":268,"column":63}},{"start":{"line":268,"column":67},"end":{"line":268,"column":71}}]},"16":{"line":272,"type":"if","locations":[{"start":{"line":272,"column":8},"end":{"line":272,"column":8}},{"start":{"line":272,"column":8},"end":{"line":272,"column":8}}]},"17":{"line":272,"type":"binary-expr","locations":[{"start":{"line":272,"column":11},"end":{"line":272,"column":37}},{"start":{"line":272,"column":41},"end":{"line":272,"column":54}}]},"18":{"line":276,"type":"if","locations":[{"start":{"line":276,"column":8},"end":{"line":276,"column":8}},{"start":{"line":276,"column":8},"end":{"line":276,"column":8}}]},"19":{"line":285,"type":"if","locations":[{"start":{"line":285,"column":8},"end":{"line":285,"column":8}},{"start":{"line":285,"column":8},"end":{"line":285,"column":8}}]},"20":{"line":362,"type":"if","locations":[{"start":{"line":362,"column":16},"end":{"line":362,"column":16}},{"start":{"line":362,"column":16},"end":{"line":362,"column":16}}]},"21":{"line":428,"type":"if","locations":[{"start":{"line":428,"column":12},"end":{"line":428,"column":12}},{"start":{"line":428,"column":12},"end":{"line":428,"column":12}}]},"22":{"line":477,"type":"if","locations":[{"start":{"line":477,"column":16},"end":{"line":477,"column":16}},{"start":{"line":477,"column":16},"end":{"line":477,"column":16}}]},"23":{"line":495,"type":"if","locations":[{"start":{"line":495,"column":8},"end":{"line":495,"column":8}},{"start":{"line":495,"column":8},"end":{"line":495,"column":8}}]},"24":{"line":495,"type":"binary-expr","locations":[{"start":{"line":495,"column":11},"end":{"line":495,"column":13}},{"start":{"line":495,"column":17},"end":{"line":495,"column":38}}]},"25":{"line":539,"type":"if","locations":[{"start":{"line":539,"column":8},"end":{"line":539,"column":8}},{"start":{"line":539,"column":8},"end":{"line":539,"column":8}}]},"26":{"line":539,"type":"binary-expr","locations":[{"start":{"line":539,"column":11},"end":{"line":539,"column":34}},{"start":{"line":539,"column":38},"end":{"line":539,"column":47}}]},"27":{"line":543,"type":"if","locations":[{"start":{"line":543,"column":8},"end":{"line":543,"column":8}},{"start":{"line":543,"column":8},"end":{"line":543,"column":8}}]},"28":{"line":547,"type":"if","locations":[{"start":{"line":547,"column":8},"end":{"line":547,"column":8}},{"start":{"line":547,"column":8},"end":{"line":547,"column":8}}]},"29":{"line":580,"type":"cond-expr","locations":[{"start":{"line":580,"column":36},"end":{"line":580,"column":37}},{"start":{"line":580,"column":40},"end":{"line":580,"column":45}}]},"30":{"line":590,"type":"if","locations":[{"start":{"line":590,"column":8},"end":{"line":590,"column":8}},{"start":{"line":590,"column":8},"end":{"line":590,"column":8}}]},"31":{"line":590,"type":"binary-expr","locations":[{"start":{"line":590,"column":11},"end":{"line":590,"column":20}},{"start":{"line":590,"column":24},"end":{"line":590,"column":39}}]},"32":{"line":599,"type":"if","locations":[{"start":{"line":599,"column":8},"end":{"line":599,"column":8}},{"start":{"line":599,"column":8},"end":{"line":599,"column":8}}]},"33":{"line":599,"type":"binary-expr","locations":[{"start":{"line":599,"column":11},"end":{"line":599,"column":13}},{"start":{"line":599,"column":17},"end":{"line":599,"column":38}}]},"34":{"line":638,"type":"if","locations":[{"start":{"line":638,"column":8},"end":{"line":638,"column":8}},{"start":{"line":638,"column":8},"end":{"line":638,"column":8}}]},"35":{"line":642,"type":"if","locations":[{"start":{"line":642,"column":12},"end":{"line":642,"column":12}},{"start":{"line":642,"column":12},"end":{"line":642,"column":12}}]},"36":{"line":642,"type":"binary-expr","locations":[{"start":{"line":642,"column":15},"end":{"line":642,"column":30}},{"start":{"line":642,"column":34},"end":{"line":642,"column":49}}]},"37":{"line":647,"type":"if","locations":[{"start":{"line":647,"column":8},"end":{"line":647,"column":8}},{"start":{"line":647,"column":8},"end":{"line":647,"column":8}}]},"38":{"line":651,"type":"if","locations":[{"start":{"line":651,"column":8},"end":{"line":651,"column":8}},{"start":{"line":651,"column":8},"end":{"line":651,"column":8}}]},"39":{"line":654,"type":"if","locations":[{"start":{"line":654,"column":12},"end":{"line":654,"column":12}},{"start":{"line":654,"column":12},"end":{"line":654,"column":12}}]},"40":{"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}}]},"41":{"line":671,"type":"cond-expr","locations":[{"start":{"line":671,"column":36},"end":{"line":671,"column":53}},{"start":{"line":671,"column":56},"end":{"line":671,"column":64}}]},"42":{"line":672,"type":"cond-expr","locations":[{"start":{"line":672,"column":36},"end":{"line":672,"column":53}},{"start":{"line":672,"column":56},"end":{"line":672,"column":64}}]},"43":{"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}}]},"44":{"line":709,"type":"if","locations":[{"start":{"line":709,"column":12},"end":{"line":709,"column":12}},{"start":{"line":709,"column":12},"end":{"line":709,"column":12}}]},"45":{"line":715,"type":"if","locations":[{"start":{"line":715,"column":12},"end":{"line":715,"column":12}},{"start":{"line":715,"column":12},"end":{"line":715,"column":12}}]},"46":{"line":719,"type":"if","locations":[{"start":{"line":719,"column":12},"end":{"line":719,"column":12}},{"start":{"line":719,"column":12},"end":{"line":719,"column":12}}]},"47":{"line":724,"type":"if","locations":[{"start":{"line":724,"column":8},"end":{"line":724,"column":8}},{"start":{"line":724,"column":8},"end":{"line":724,"column":8}}]},"48":{"line":727,"type":"if","locations":[{"start":{"line":727,"column":12},"end":{"line":727,"column":12}},{"start":{"line":727,"column":12},"end":{"line":727,"column":12}}]},"49":{"line":761,"type":"if","locations":[{"start":{"line":761,"column":8},"end":{"line":761,"column":8}},{"start":{"line":761,"column":8},"end":{"line":761,"column":8}}]},"50":{"line":764,"type":"if","locations":[{"start":{"line":764,"column":12},"end":{"line":764,"column":12}},{"start":{"line":764,"column":12},"end":{"line":764,"column":12}}]},"51":{"line":769,"type":"if","locations":[{"start":{"line":769,"column":8},"end":{"line":769,"column":8}},{"start":{"line":769,"column":8},"end":{"line":769,"column":8}}]},"52":{"line":781,"type":"if","locations":[{"start":{"line":781,"column":12},"end":{"line":781,"column":12}},{"start":{"line":781,"column":12},"end":{"line":781,"column":12}}]},"53":{"line":787,"type":"if","locations":[{"start":{"line":787,"column":12},"end":{"line":787,"column":12}},{"start":{"line":787,"column":12},"end":{"line":787,"column":12}}]},"54":{"line":900,"type":"if","locations":[{"start":{"line":900,"column":8},"end":{"line":900,"column":8}},{"start":{"line":900,"column":8},"end":{"line":900,"column":8}}]},"55":{"line":900,"type":"binary-expr","locations":[{"start":{"line":900,"column":11},"end":{"line":900,"column":13}},{"start":{"line":900,"column":17},"end":{"line":900,"column":38}}]},"56":{"line":924,"type":"if","locations":[{"start":{"line":924,"column":8},"end":{"line":924,"column":8}},{"start":{"line":924,"column":8},"end":{"line":924,"column":8}}]},"57":{"line":953,"type":"if","locations":[{"start":{"line":953,"column":8},"end":{"line":953,"column":8}},{"start":{"line":953,"column":8},"end":{"line":953,"column":8}}]},"58":{"line":953,"type":"binary-expr","locations":[{"start":{"line":953,"column":11},"end":{"line":953,"column":24}},{"start":{"line":953,"column":28},"end":{"line":953,"column":55}}]},"59":{"line":954,"type":"if","locations":[{"start":{"line":954,"column":12},"end":{"line":954,"column":12}},{"start":{"line":954,"column":12},"end":{"line":954,"column":12}}]},"60":{"line":954,"type":"binary-expr","locations":[{"start":{"line":954,"column":15},"end":{"line":954,"column":27}},{"start":{"line":954,"column":31},"end":{"line":954,"column":50}},{"start":{"line":954,"column":54},"end":{"line":954,"column":62}},{"start":{"line":954,"column":66},"end":{"line":954,"column":81}}]},"61":{"line":956,"type":"if","locations":[{"start":{"line":956,"column":20},"end":{"line":956,"column":20}},{"start":{"line":956,"column":20},"end":{"line":956,"column":20}}]},"62":{"line":957,"type":"if","locations":[{"start":{"line":957,"column":20},"end":{"line":957,"column":20}},{"start":{"line":957,"column":20},"end":{"line":957,"column":20}}]},"63":{"line":958,"type":"if","locations":[{"start":{"line":958,"column":20},"end":{"line":958,"column":20}},{"start":{"line":958,"column":20},"end":{"line":958,"column":20}}]},"64":{"line":959,"type":"if","locations":[{"start":{"line":959,"column":20},"end":{"line":959,"column":20}},{"start":{"line":959,"column":20},"end":{"line":959,"column":20}}]},"65":{"line":960,"type":"if","locations":[{"start":{"line":960,"column":20},"end":{"line":960,"column":20}},{"start":{"line":960,"column":20},"end":{"line":960,"column":20}}]},"66":{"line":970,"type":"if","locations":[{"start":{"line":970,"column":19},"end":{"line":970,"column":19}},{"start":{"line":970,"column":19},"end":{"line":970,"column":19}}]},"67":{"line":970,"type":"binary-expr","locations":[{"start":{"line":970,"column":22},"end":{"line":970,"column":30}},{"start":{"line":970,"column":34},"end":{"line":970,"column":48}}]},"68":{"line":982,"type":"if","locations":[{"start":{"line":982,"column":20},"end":{"line":982,"column":20}},{"start":{"line":982,"column":20},"end":{"line":982,"column":20}}]},"69":{"line":983,"type":"if","locations":[{"start":{"line":983,"column":20},"end":{"line":983,"column":20}},{"start":{"line":983,"column":20},"end":{"line":983,"column":20}}]},"70":{"line":984,"type":"if","locations":[{"start":{"line":984,"column":20},"end":{"line":984,"column":20}},{"start":{"line":984,"column":20},"end":{"line":984,"column":20}}]},"71":{"line":985,"type":"if","locations":[{"start":{"line":985,"column":20},"end":{"line":985,"column":20}},{"start":{"line":985,"column":20},"end":{"line":985,"column":20}}]},"72":{"line":986,"type":"if","locations":[{"start":{"line":986,"column":20},"end":{"line":986,"column":20}},{"start":{"line":986,"column":20},"end":{"line":986,"column":20}}]},"73":{"line":987,"type":"if","locations":[{"start":{"line":987,"column":20},"end":{"line":987,"column":20}},{"start":{"line":987,"column":20},"end":{"line":987,"column":20}}]},"74":{"line":988,"type":"if","locations":[{"start":{"line":988,"column":20},"end":{"line":988,"column":20}},{"start":{"line":988,"column":20},"end":{"line":988,"column":20}}]},"75":{"line":1025,"type":"if","locations":[{"start":{"line":1025,"column":8},"end":{"line":1025,"column":8}},{"start":{"line":1025,"column":8},"end":{"line":1025,"column":8}}]},"76":{"line":1026,"type":"if","locations":[{"start":{"line":1026,"column":12},"end":{"line":1026,"column":12}},{"start":{"line":1026,"column":12},"end":{"line":1026,"column":12}}]},"77":{"line":1031,"type":"if","locations":[{"start":{"line":1031,"column":16},"end":{"line":1031,"column":16}},{"start":{"line":1031,"column":16},"end":{"line":1031,"column":16}}]},"78":{"line":1042,"type":"cond-expr","locations":[{"start":{"line":1042,"column":51},"end":{"line":1042,"column":73}},{"start":{"line":1042,"column":76},"end":{"line":1042,"column":91}}]},"79":{"line":1053,"type":"if","locations":[{"start":{"line":1053,"column":20},"end":{"line":1053,"column":20}},{"start":{"line":1053,"column":20},"end":{"line":1053,"column":20}}]},"80":{"line":1075,"type":"binary-expr","locations":[{"start":{"line":1075,"column":16},"end":{"line":1075,"column":23}},{"start":{"line":1075,"column":28},"end":{"line":1075,"column":47}},{"start":{"line":1076,"column":13},"end":{"line":1076,"column":26}},{"start":{"line":1076,"column":31},"end":{"line":1076,"column":56}},{"start":{"line":1077,"column":13},"end":{"line":1077,"column":27}},{"start":{"line":1077,"column":32},"end":{"line":1077,"column":58}}]},"81":{"line":1269,"type":"if","locations":[{"start":{"line":1269,"column":4},"end":{"line":1269,"column":4}},{"start":{"line":1269,"column":4},"end":{"line":1269,"column":4}}]},"82":{"line":1269,"type":"binary-expr","locations":[{"start":{"line":1269,"column":7},"end":{"line":1269,"column":10}},{"start":{"line":1269,"column":14},"end":{"line":1269,"column":40}}]},"83":{"line":1274,"type":"binary-expr","locations":[{"start":{"line":1274,"column":14},"end":{"line":1274,"column":21}},{"start":{"line":1274,"column":25},"end":{"line":1274,"column":27}}]},"84":{"line":1276,"type":"if","locations":[{"start":{"line":1276,"column":4},"end":{"line":1276,"column":4}},{"start":{"line":1276,"column":4},"end":{"line":1276,"column":4}}]},"85":{"line":1277,"type":"switch","locations":[{"start":{"line":1279,"column":12},"end":{"line":1281,"column":22}},{"start":{"line":1282,"column":12},"end":{"line":1284,"column":22}},{"start":{"line":1285,"column":12},"end":{"line":1294,"column":22}},{"start":{"line":1297,"column":12},"end":{"line":1299,"column":22}},{"start":{"line":1300,"column":12},"end":{"line":1303,"column":22}},{"start":{"line":1306,"column":12},"end":{"line":1309,"column":22}},{"start":{"line":1310,"column":12},"end":{"line":1313,"column":22}}]},"86":{"line":1286,"type":"if","locations":[{"start":{"line":1286,"column":16},"end":{"line":1286,"column":16}},{"start":{"line":1286,"column":16},"end":{"line":1286,"column":16}}]},"87":{"line":1288,"type":"if","locations":[{"start":{"line":1288,"column":23},"end":{"line":1288,"column":23}},{"start":{"line":1288,"column":23},"end":{"line":1288,"column":23}}]},"88":{"line":1290,"type":"if","locations":[{"start":{"line":1290,"column":23},"end":{"line":1290,"column":23}},{"start":{"line":1290,"column":23},"end":{"line":1290,"column":23}}]}},"code":["(function () { YUI.add('gesture-simulate', function (Y, NAME) {","","/**"," * Simulate high-level user gestures by generating a set of native DOM events."," *"," * @module gesture-simulate"," * @requires event-simulate, async-queue, node-screen"," */","","var NAME = \"gesture-simulate\",",""," // phantomjs check may be temporary, until we determine if it really support touch all the way through, like it claims to (http://code.google.com/p/phantomjs/issues/detail?id=375)"," SUPPORTS_TOUCH = ((Y.config.win && (\"ontouchstart\" in Y.config.win)) && !(Y.UA.phantomjs) && !(Y.UA.chrome && Y.UA.chrome < 6)),",""," gestureNames = {"," tap: 1,"," doubletap: 1,"," press: 1,"," move: 1,"," flick: 1,"," pinch: 1,"," rotate: 1"," },",""," touchEvents = {"," touchstart: 1,"," touchmove: 1,"," touchend: 1,"," touchcancel: 1"," },",""," document = Y.config.doc,"," emptyTouchList,",""," EVENT_INTERVAL = 20, // 20ms"," START_PAGEX, // will be adjusted to the node element center"," START_PAGEY, // will be adjusted to the node element center",""," // defaults that user can override."," DEFAULTS = {"," // tap gestures"," HOLD_TAP: 10, // 10ms"," DELAY_TAP: 10, // 10ms",""," // press gesture"," HOLD_PRESS: 3000, // 3sec"," MIN_HOLD_PRESS: 1000, // 1sec"," MAX_HOLD_PRESS: 60000, // 1min",""," // move gesture"," DISTANCE_MOVE: 200, // 200 pixels"," DURATION_MOVE: 1000, // 1sec"," MAX_DURATION_MOVE: 5000,// 5sec",""," // flick gesture"," MIN_VELOCITY_FLICK: 1.3,"," DISTANCE_FLICK: 200, // 200 pixels"," DURATION_FLICK: 1000, // 1sec"," MAX_DURATION_FLICK: 5000,// 5sec",""," // pinch/rotation"," DURATION_PINCH: 1000 // 1sec"," },",""," TOUCH_START = 'touchstart',"," TOUCH_MOVE = 'touchmove',"," TOUCH_END = 'touchend',",""," GESTURE_START = 'gesturestart',"," GESTURE_CHANGE = 'gesturechange',"," GESTURE_END = 'gestureend',",""," MOUSE_UP = 'mouseup',"," MOUSE_MOVE = 'mousemove',"," MOUSE_DOWN = 'mousedown',"," MOUSE_CLICK = 'click',"," MOUSE_DBLCLICK = 'dblclick',",""," X_AXIS = 'x',"," Y_AXIS = 'y';","","","function Simulations(node) {"," if(!node) {"," Y.error(NAME+': invalid target node');"," }"," this.node = node;"," this.target = Y.Node.getDOMNode(node);",""," var startXY = this.node.getXY(),"," dims = this._getDims();",""," START_PAGEX = startXY[0] + (dims[0])/2;"," START_PAGEY = startXY[1] + (dims[1])/2;","}","","Simulations.prototype = {",""," /**"," * Helper method to convert a degree to a radian."," *"," * @method _toRadian"," * @private"," * @param {Number} deg A degree to be converted to a radian."," * @return {Number} The degree in radian."," */"," _toRadian: function(deg) {"," return deg * (Math.PI/180);"," },",""," /**"," * Helper method to get height/width while accounting for"," * rotation/scale transforms where possible by using the"," * bounding client rectangle height/width instead of the"," * offsetWidth/Height which region uses."," * @method _getDims"," * @private"," * @return {Array} Array with [height, width]"," */"," _getDims : function() {"," var region,"," width,"," height;",""," // Ideally, this should be in DOM somewhere."," if (this.target.getBoundingClientRect) {"," region = this.target.getBoundingClientRect();",""," if (\"height\" in region) {"," height = region.height;"," } else {"," // IE7,8 has getBCR, but no height."," height = Math.abs(region.bottom - region.top);"," }",""," if (\"width\" in region) {"," width = region.width;"," } else {"," // IE7,8 has getBCR, but no width."," width = Math.abs(region.right - region.left);"," }"," } else {"," region = this.node.get(\"region\");"," width = region.width;"," height = region.height;"," }",""," return [width, height];"," },",""," /**"," * Helper method to convert a point relative to the node element into"," * the point in the page coordination."," *"," * @method _calculateDefaultPoint"," * @private"," * @param {Array} point A point relative to the node element."," * @return {Array} The same point in the page coordination."," */"," _calculateDefaultPoint: function(point) {",""," var height;",""," if(!Y.Lang.isArray(point) || point.length === 0) {"," point = [START_PAGEX, START_PAGEY];"," } else {"," if(point.length == 1) {"," height = this._getDims[1];"," point[1] = height/2;"," }"," // convert to page(viewport) coordination"," point[0] = this.node.getX() + point[0];"," point[1] = this.node.getY() + point[1];"," }",""," return point;"," },",""," /**"," * The \"rotate\" and \"pinch\" methods are essencially same with the exact same"," * arguments. Only difference is the required parameters. The rotate method"," * requires \"rotation\" parameter while the pinch method requires \"startRadius\""," * and \"endRadius\" parameters."," *"," * @method rotate"," * @param {Function} cb The callback to execute when the gesture simulation"," * is completed."," * @param {Array} center A center point where the pinch gesture of two fingers"," * should happen. It is relative to the top left corner of the target"," * node element."," * @param {Number} startRadius A radius of start circle where 2 fingers are"," * on when the gesture starts. This is optional. The default is a fourth of"," * either target node width or height whichever is smaller."," * @param {Number} endRadius A radius of end circle where 2 fingers will be on when"," * the pinch or spread gestures are completed. This is optional."," * The default is a fourth of either target node width or height whichever is less."," * @param {Number} duration A duration of the gesture in millisecond."," * @param {Number} start A start angle(0 degree at 12 o'clock) where the"," * gesture should start. Default is 0."," * @param {Number} rotation A rotation in degree. It is required."," */"," rotate: function(cb, center, startRadius, endRadius, duration, start, rotation) {"," var radius,"," r1 = startRadius, // optional"," r2 = endRadius; // optional",""," if(!Y.Lang.isNumber(r1) || !Y.Lang.isNumber(r2) || r1<0 || r2<0) {"," radius = (this.target.offsetWidth < this.target.offsetHeight)?"," this.target.offsetWidth/4 : this.target.offsetHeight/4;"," r1 = radius;"," r2 = radius;"," }",""," // required"," if(!Y.Lang.isNumber(rotation)) {"," Y.error(NAME+'Invalid rotation detected.');"," }",""," this.pinch(cb, center, r1, r2, duration, start, rotation);"," },",""," /**"," * The \"rotate\" and \"pinch\" methods are essencially same with the exact same"," * arguments. Only difference is the required parameters. The rotate method"," * requires \"rotation\" parameter while the pinch method requires \"startRadius\""," * and \"endRadius\" parameters."," *"," * The \"pinch\" gesture can simulate various 2 finger gestures such as pinch,"," * spread and/or rotation. The \"startRadius\" and \"endRadius\" are required."," * If endRadius is larger than startRadius, it becomes a spread gesture"," * otherwise a pinch gesture."," *"," * @method pinch"," * @param {Function} cb The callback to execute when the gesture simulation"," * is completed."," * @param {Array} center A center point where the pinch gesture of two fingers"," * should happen. It is relative to the top left corner of the target"," * node element."," * @param {Number} startRadius A radius of start circle where 2 fingers are"," * on when the gesture starts. This paramenter is required."," * @param {Number} endRadius A radius of end circle where 2 fingers will be on when"," * the pinch or spread gestures are completed. This parameter is required."," * @param {Number} duration A duration of the gesture in millisecond."," * @param {Number} start A start angle(0 degree at 12 o'clock) where the"," * gesture should start. Default is 0."," * @param {Number} rotation If rotation is desired during the pinch or"," * spread gestures, this parameter can be used. Default is 0 degree."," */"," pinch: function(cb, center, startRadius, endRadius, duration, start, rotation) {"," var eventQueue,"," i,"," interval = EVENT_INTERVAL,"," touches,"," id = 0,"," r1 = startRadius, // required"," r2 = endRadius, // required"," radiusPerStep,"," centerX, centerY,"," startScale, endScale, scalePerStep,"," startRot, endRot, rotPerStep,"," path1 = {start: [], end: []}, // paths for 1st and 2nd fingers."," path2 = {start: [], end: []},"," steps,"," touchMove;",""," center = this._calculateDefaultPoint(center);",""," if(!Y.Lang.isNumber(r1) || !Y.Lang.isNumber(r2) || r1<0 || r2<0) {"," Y.error(NAME+'Invalid startRadius and endRadius detected.');"," }",""," if(!Y.Lang.isNumber(duration) || duration <= 0) {"," duration = DEFAULTS.DURATION_PINCH;"," }",""," if(!Y.Lang.isNumber(start)) {"," start = 0.0;"," } else {"," start = start%360;"," while(start < 0) {"," start += 360;"," }"," }",""," if(!Y.Lang.isNumber(rotation)) {"," rotation = 0.0;"," }",""," Y.AsyncQueue.defaults.timeout = interval;"," eventQueue = new Y.AsyncQueue();",""," // range determination"," centerX = center[0];"," centerY = center[1];",""," startRot = start;"," endRot = start + rotation;",""," // 1st finger path"," path1.start = ["," centerX + r1*Math.sin(this._toRadian(startRot)),"," centerY - r1*Math.cos(this._toRadian(startRot))"," ];"," path1.end = ["," centerX + r2*Math.sin(this._toRadian(endRot)),"," centerY - r2*Math.cos(this._toRadian(endRot))"," ];",""," // 2nd finger path"," path2.start = ["," centerX - r1*Math.sin(this._toRadian(startRot)),"," centerY + r1*Math.cos(this._toRadian(startRot))"," ];"," path2.end = ["," centerX - r2*Math.sin(this._toRadian(endRot)),"," centerY + r2*Math.cos(this._toRadian(endRot))"," ];",""," startScale = 1.0;"," endScale = endRadius/startRadius;",""," // touch/gesture start"," eventQueue.add({"," fn: function() {"," var coord1, coord2, coord, touches;",""," // coordinate for each touch object."," coord1 = {"," pageX: path1.start[0],"," pageY: path1.start[1],"," clientX: path1.start[0],"," clientY: path1.start[1]"," };"," coord2 = {"," pageX: path2.start[0],"," pageY: path2.start[1],"," clientX: path2.start[0],"," clientY: path2.start[1]"," };"," touches = this._createTouchList([Y.merge({"," identifier: (id++)"," }, coord1), Y.merge({"," identifier: (id++)"," }, coord2)]);",""," // coordinate for top level event"," coord = {"," pageX: (path1.start[0] + path2.start[0])/2,"," pageY: (path1.start[0] + path2.start[1])/2,"," clientX: (path1.start[0] + path2.start[0])/2,"," clientY: (path1.start[0] + path2.start[1])/2"," };",""," this._simulateEvent(this.target, TOUCH_START, Y.merge({"," touches: touches,"," targetTouches: touches,"," changedTouches: touches,"," scale: startScale,"," rotation: startRot"," }, coord));",""," if(Y.UA.ios >= 2.0) {"," /* gesture starts when the 2nd finger touch starts."," * The implementation will fire 1 touch start event for both fingers,"," * simulating 2 fingers touched on the screen at the same time."," */"," this._simulateEvent(this.target, GESTURE_START, Y.merge({"," scale: startScale,"," rotation: startRot"," }, coord));"," }"," },"," timeout: 0,"," context: this"," });",""," // gesture change"," steps = Math.floor(duration/interval);"," radiusPerStep = (r2 - r1)/steps;"," scalePerStep = (endScale - startScale)/steps;"," rotPerStep = (endRot - startRot)/steps;",""," touchMove = function(step) {"," var radius = r1 + (radiusPerStep)*step,"," px1 = centerX + radius*Math.sin(this._toRadian(startRot + rotPerStep*step)),"," py1 = centerY - radius*Math.cos(this._toRadian(startRot + rotPerStep*step)),"," px2 = centerX - radius*Math.sin(this._toRadian(startRot + rotPerStep*step)),"," py2 = centerY + radius*Math.cos(this._toRadian(startRot + rotPerStep*step)),"," px = (px1+px2)/2,"," py = (py1+py2)/2,"," coord1, coord2, coord, touches;",""," // coordinate for each touch object."," coord1 = {"," pageX: px1,"," pageY: py1,"," clientX: px1,"," clientY: py1"," };"," coord2 = {"," pageX: px2,"," pageY: py2,"," clientX: px2,"," clientY: py2"," };"," touches = this._createTouchList([Y.merge({"," identifier: (id++)"," }, coord1), Y.merge({"," identifier: (id++)"," }, coord2)]);",""," // coordinate for top level event"," coord = {"," pageX: px,"," pageY: py,"," clientX: px,"," clientY: py"," };",""," this._simulateEvent(this.target, TOUCH_MOVE, Y.merge({"," touches: touches,"," targetTouches: touches,"," changedTouches: touches,"," scale: startScale + scalePerStep*step,"," rotation: startRot + rotPerStep*step"," }, coord));",""," if(Y.UA.ios >= 2.0) {"," this._simulateEvent(this.target, GESTURE_CHANGE, Y.merge({"," scale: startScale + scalePerStep*step,"," rotation: startRot + rotPerStep*step"," }, coord));"," }"," };",""," for (i=0; i < steps; i++) {"," eventQueue.add({"," fn: touchMove,"," args: [i],"," context: this"," });"," }",""," // gesture end"," eventQueue.add({"," fn: function() {"," var emptyTouchList = this._getEmptyTouchList(),"," coord1, coord2, coord, touches;",""," // coordinate for each touch object."," coord1 = {"," pageX: path1.end[0],"," pageY: path1.end[1],"," clientX: path1.end[0],"," clientY: path1.end[1]"," };"," coord2 = {"," pageX: path2.end[0],"," pageY: path2.end[1],"," clientX: path2.end[0],"," clientY: path2.end[1]"," };"," touches = this._createTouchList([Y.merge({"," identifier: (id++)"," }, coord1), Y.merge({"," identifier: (id++)"," }, coord2)]);",""," // coordinate for top level event"," coord = {"," pageX: (path1.end[0] + path2.end[0])/2,"," pageY: (path1.end[0] + path2.end[1])/2,"," clientX: (path1.end[0] + path2.end[0])/2,"," clientY: (path1.end[0] + path2.end[1])/2"," };",""," if(Y.UA.ios >= 2.0) {"," this._simulateEvent(this.target, GESTURE_END, Y.merge({"," scale: endScale,"," rotation: endRot"," }, coord));"," }",""," this._simulateEvent(this.target, TOUCH_END, Y.merge({"," touches: emptyTouchList,"," targetTouches: emptyTouchList,"," changedTouches: touches,"," scale: endScale,"," rotation: endRot"," }, coord));"," },"," context: this"," });",""," if(cb && Y.Lang.isFunction(cb)) {"," eventQueue.add({"," fn: cb,",""," // by default, the callback runs the node context where"," // simulateGesture method is called."," context: this.node",""," //TODO: Use args to pass error object as 1st param if there is an error."," //args:"," });"," }",""," eventQueue.run();"," },",""," /**"," * The \"tap\" gesture can be used for various single touch point gestures"," * such as single tap, N number of taps, long press. The default is a single"," * tap."," *"," * @method tap"," * @param {Function} cb The callback to execute when the gesture simulation"," * is completed."," * @param {Array} point A point(relative to the top left corner of the"," * target node element) where the tap gesture should start. The default"," * is the center of the taget node."," * @param {Number} times The number of taps. Default is 1."," * @param {Number} hold The hold time in milliseconds between \"touchstart\" and"," * \"touchend\" event generation. Default is 10ms."," * @param {Number} delay The time gap in millisecond between taps if this"," * gesture has more than 1 tap. Default is 10ms."," */"," tap: function(cb, point, times, hold, delay) {"," var eventQueue = new Y.AsyncQueue(),"," emptyTouchList = this._getEmptyTouchList(),"," touches,"," coord,"," i,"," touchStart,"," touchEnd;",""," point = this._calculateDefaultPoint(point);",""," if(!Y.Lang.isNumber(times) || times < 1) {"," times = 1;"," }",""," if(!Y.Lang.isNumber(hold)) {"," hold = DEFAULTS.HOLD_TAP;"," }",""," if(!Y.Lang.isNumber(delay)) {"," delay = DEFAULTS.DELAY_TAP;"," }",""," coord = {"," pageX: point[0],"," pageY: point[1],"," clientX: point[0],"," clientY: point[1]"," };",""," touches = this._createTouchList([Y.merge({identifier: 0}, coord)]);",""," touchStart = function() {"," this._simulateEvent(this.target, TOUCH_START, Y.merge({"," touches: touches,"," targetTouches: touches,"," changedTouches: touches"," }, coord));"," };",""," touchEnd = function() {"," this._simulateEvent(this.target, TOUCH_END, Y.merge({"," touches: emptyTouchList,"," targetTouches: emptyTouchList,"," changedTouches: touches"," }, coord));"," };",""," for (i=0; i < times; i++) {"," eventQueue.add({"," fn: touchStart,"," context: this,"," timeout: (i === 0)? 0 : delay"," });",""," eventQueue.add({"," fn: touchEnd,"," context: this,"," timeout: hold"," });"," }",""," if(times > 1 && !SUPPORTS_TOUCH) {"," eventQueue.add({"," fn: function() {"," this._simulateEvent(this.target, MOUSE_DBLCLICK, coord);"," },"," context: this"," });"," }",""," if(cb && Y.Lang.isFunction(cb)) {"," eventQueue.add({"," fn: cb,",""," // by default, the callback runs the node context where"," // simulateGesture method is called."," context: this.node",""," //TODO: Use args to pass error object as 1st param if there is an error."," //args:"," });"," }",""," eventQueue.run();"," },",""," /**"," * The \"flick\" gesture is a specialized \"move\" that has some velocity"," * and the movement always runs either x or y axis. The velocity is calculated"," * with \"distance\" and \"duration\" arguments. If the calculated velocity is"," * below than the minimum velocity, the given duration will be ignored and"," * new duration will be created to make a valid flick gesture."," *"," * @method flick"," * @param {Function} cb The callback to execute when the gesture simulation"," * is completed."," * @param {Array} point A point(relative to the top left corner of the"," * target node element) where the flick gesture should start. The default"," * is the center of the taget node."," * @param {String} axis Either \"x\" or \"y\"."," * @param {Number} distance A distance in pixels to flick."," * @param {Number} duration A duration of the gesture in millisecond."," *"," */"," flick: function(cb, point, axis, distance, duration) {"," var path;",""," point = this._calculateDefaultPoint(point);",""," if(!Y.Lang.isString(axis)) {"," axis = X_AXIS;"," } else {"," axis = axis.toLowerCase();"," if(axis !== X_AXIS && axis !== Y_AXIS) {"," Y.error(NAME+'(flick): Only x or y axis allowed');"," }"," }",""," if(!Y.Lang.isNumber(distance)) {"," distance = DEFAULTS.DISTANCE_FLICK;"," }",""," if(!Y.Lang.isNumber(duration)){"," duration = DEFAULTS.DURATION_FLICK; // ms"," } else {"," if(duration > DEFAULTS.MAX_DURATION_FLICK) {"," duration = DEFAULTS.MAX_DURATION_FLICK;"," }"," }",""," /*"," * Check if too slow for a flick."," * Adjust duration if the calculated velocity is less than"," * the minimum velcocity to be claimed as a flick."," */"," if(Math.abs(distance)/duration < DEFAULTS.MIN_VELOCITY_FLICK) {"," duration = Math.abs(distance)/DEFAULTS.MIN_VELOCITY_FLICK;"," }",""," path = {"," start: Y.clone(point),"," end: ["," (axis === X_AXIS) ? point[0]+distance : point[0],"," (axis === Y_AXIS) ? point[1]+distance : point[1]"," ]"," };",""," this._move(cb, path, duration);"," },",""," /**"," * The \"move\" gesture simulate the movement of any direction between"," * the straight line of start and end point for the given duration."," * The path argument is an object with \"point\", \"xdist\" and \"ydist\" properties."," * The \"point\" property is an array with x and y coordinations(relative to the"," * top left corner of the target node element) while \"xdist\" and \"ydist\""," * properties are used for the distance along the x and y axis. A negative"," * distance number can be used to drag either left or up direction."," *"," * If no arguments are given, it will simulate the default move, which"," * is moving 200 pixels from the center of the element to the positive X-axis"," * direction for 1 sec."," *"," * @method move"," * @param {Function} cb The callback to execute when the gesture simulation"," * is completed."," * @param {Object} path An object with \"point\", \"xdist\" and \"ydist\"."," * @param {Number} duration A duration of the gesture in millisecond."," */"," move: function(cb, path, duration) {"," var convertedPath;",""," if(!Y.Lang.isObject(path)) {"," path = {"," point: this._calculateDefaultPoint([]),"," xdist: DEFAULTS.DISTANCE_MOVE,"," ydist: 0"," };"," } else {"," // convert to the page coordination"," if(!Y.Lang.isArray(path.point)) {"," path.point = this._calculateDefaultPoint([]);"," } else {"," path.point = this._calculateDefaultPoint(path.point);"," }",""," if(!Y.Lang.isNumber(path.xdist)) {"," path.xdist = DEFAULTS.DISTANCE_MOVE;"," }",""," if(!Y.Lang.isNumber(path.ydist)) {"," path.ydist = 0;"," }"," }",""," if(!Y.Lang.isNumber(duration)){"," duration = DEFAULTS.DURATION_MOVE; // ms"," } else {"," if(duration > DEFAULTS.MAX_DURATION_MOVE) {"," duration = DEFAULTS.MAX_DURATION_MOVE;"," }"," }",""," convertedPath = {"," start: Y.clone(path.point),"," end: [path.point[0]+path.xdist, path.point[1]+path.ydist]"," };",""," this._move(cb, convertedPath, duration);"," },",""," /**"," * A base method on top of \"move\" and \"flick\" methods. The method takes"," * the path with start/end properties and duration to generate a set of"," * touch events for the movement gesture."," *"," * @method _move"," * @private"," * @param {Function} cb The callback to execute when the gesture simulation"," * is completed."," * @param {Object} path An object with \"start\" and \"end\" properties. Each"," * property should be an array with x and y coordination (e.g. start: [100, 50])"," * @param {Number} duration A duration of the gesture in millisecond."," */"," _move: function(cb, path, duration) {"," var eventQueue,"," i,"," interval = EVENT_INTERVAL,"," steps, stepX, stepY,"," id = 0,"," touchMove;",""," if(!Y.Lang.isNumber(duration)){"," duration = DEFAULTS.DURATION_MOVE; // ms"," } else {"," if(duration > DEFAULTS.MAX_DURATION_MOVE) {"," duration = DEFAULTS.MAX_DURATION_MOVE;"," }"," }",""," if(!Y.Lang.isObject(path)) {"," path = {"," start: ["," START_PAGEX,"," START_PAGEY"," ],"," end: ["," START_PAGEX + DEFAULTS.DISTANCE_MOVE,"," START_PAGEY"," ]"," };"," } else {"," if(!Y.Lang.isArray(path.start)) {"," path.start = ["," START_PAGEX,"," START_PAGEY"," ];"," }"," if(!Y.Lang.isArray(path.end)) {"," path.end = ["," START_PAGEX + DEFAULTS.DISTANCE_MOVE,"," START_PAGEY"," ];"," }"," }",""," Y.AsyncQueue.defaults.timeout = interval;"," eventQueue = new Y.AsyncQueue();",""," // start"," eventQueue.add({"," fn: function() {"," var coord = {"," pageX: path.start[0],"," pageY: path.start[1],"," clientX: path.start[0],"," clientY: path.start[1]"," },"," touches = this._createTouchList(["," Y.merge({identifier: (id++)}, coord)"," ]);",""," this._simulateEvent(this.target, TOUCH_START, Y.merge({"," touches: touches,"," targetTouches: touches,"," changedTouches: touches"," }, coord));"," },"," timeout: 0,"," context: this"," });",""," // move"," steps = Math.floor(duration/interval);"," stepX = (path.end[0] - path.start[0])/steps;"," stepY = (path.end[1] - path.start[1])/steps;",""," touchMove = function(step) {"," var px = path.start[0]+(stepX * step),"," py = path.start[1]+(stepY * step),"," coord = {"," pageX: px,"," pageY: py,"," clientX: px,"," clientY: py"," },"," touches = this._createTouchList(["," Y.merge({identifier: (id++)}, coord)"," ]);",""," this._simulateEvent(this.target, TOUCH_MOVE, Y.merge({"," touches: touches,"," targetTouches: touches,"," changedTouches: touches"," }, coord));"," };",""," for (i=0; i < steps; i++) {"," eventQueue.add({"," fn: touchMove,"," args: [i],"," context: this"," });"," }",""," // last move"," eventQueue.add({"," fn: function() {"," var coord = {"," pageX: path.end[0],"," pageY: path.end[1],"," clientX: path.end[0],"," clientY: path.end[1]"," },"," touches = this._createTouchList(["," Y.merge({identifier: id}, coord)"," ]);",""," this._simulateEvent(this.target, TOUCH_MOVE, Y.merge({"," touches: touches,"," targetTouches: touches,"," changedTouches: touches"," }, coord));"," },"," timeout: 0,"," context: this"," });",""," // end"," eventQueue.add({"," fn: function() {"," var coord = {"," pageX: path.end[0],"," pageY: path.end[1],"," clientX: path.end[0],"," clientY: path.end[1]"," },"," emptyTouchList = this._getEmptyTouchList(),"," touches = this._createTouchList(["," Y.merge({identifier: id}, coord)"," ]);",""," this._simulateEvent(this.target, TOUCH_END, Y.merge({"," touches: emptyTouchList,"," targetTouches: emptyTouchList,"," changedTouches: touches"," }, coord));"," },"," context: this"," });",""," if(cb && Y.Lang.isFunction(cb)) {"," eventQueue.add({"," fn: cb,",""," // by default, the callback runs the node context where"," // simulateGesture method is called."," context: this.node",""," //TODO: Use args to pass error object as 1st param if there is an error."," //args:"," });"," }",""," eventQueue.run();"," },",""," /**"," * Helper method to return a singleton instance of empty touch list."," *"," * @method _getEmptyTouchList"," * @private"," * @return {TouchList | Array} An empty touch list object."," */"," _getEmptyTouchList: function() {"," if(!emptyTouchList) {"," emptyTouchList = this._createTouchList([]);"," }",""," return emptyTouchList;"," },",""," /**"," * Helper method to convert an array with touch points to TouchList object as"," * defined in http://www.w3.org/TR/touch-events/"," *"," * @method _createTouchList"," * @private"," * @param {Array} touchPoints"," * @return {TouchList | Array} If underlaying platform support creating touch list"," * a TouchList object will be returned otherwise a fake Array object"," * will be returned."," */"," _createTouchList: function(touchPoints) {"," /*"," * Android 4.0.3 emulator:"," * Native touch api supported starting in version 4.0 (Ice Cream Sandwich)."," * However the support seems limited. In Android 4.0.3 emulator, I got"," * \"TouchList is not defined\"."," */"," var touches = [],"," touchList,"," self = this;",""," if(!!touchPoints && Y.Lang.isArray(touchPoints)) {"," if(Y.UA.android && Y.UA.android >= 4.0 || Y.UA.ios && Y.UA.ios >= 2.0) {"," Y.each(touchPoints, function(point) {"," if(!point.identifier) {point.identifier = 0;}"," if(!point.pageX) {point.pageX = 0;}"," if(!point.pageY) {point.pageY = 0;}"," if(!point.screenX) {point.screenX = 0;}"," if(!point.screenY) {point.screenY = 0;}",""," touches.push(document.createTouch(Y.config.win,"," self.target,"," point.identifier,"," point.pageX, point.pageY,"," point.screenX, point.screenY));"," });",""," touchList = document.createTouchList.apply(document, touches);"," } else if(Y.UA.ios && Y.UA.ios < 2.0) {"," Y.error(NAME+': No touch event simulation framework present.');"," } else {"," // this will inclide android(Y.UA.android && Y.UA.android < 4.0)"," // and desktops among all others.",""," /*"," * Touch APIs are broken in androids older than 4.0. We will use"," * simulated touch apis for these versions."," */"," touchList = [];"," Y.each(touchPoints, function(point) {"," if(!point.identifier) {point.identifier = 0;}"," if(!point.clientX) {point.clientX = 0;}"," if(!point.clientY) {point.clientY = 0;}"," if(!point.pageX) {point.pageX = 0;}"," if(!point.pageY) {point.pageY = 0;}"," if(!point.screenX) {point.screenX = 0;}"," if(!point.screenY) {point.screenY = 0;}",""," touchList.push({"," target: self.target,"," identifier: point.identifier,"," clientX: point.clientX,"," clientY: point.clientY,"," pageX: point.pageX,"," pageY: point.pageY,"," screenX: point.screenX,"," screenY: point.screenY"," });"," });",""," touchList.item = function(i) {"," return touchList[i];"," };"," }"," } else {"," Y.error(NAME+': Invalid touchPoints passed');"," }",""," return touchList;"," },",""," /**"," * @method _simulateEvent"," * @private"," * @param {HTMLElement} target The DOM element that's the target of the event."," * @param {String} type The type of event or name of the supported gesture to simulate"," * (i.e., \"click\", \"doubletap\", \"flick\")."," * @param {Object} options (Optional) Extra options to copy onto the event object."," * For gestures, options are used to refine the gesture behavior."," */"," _simulateEvent: function(target, type, options) {"," var touches;",""," if (touchEvents[type]) {"," if(SUPPORTS_TOUCH) {"," Y.Event.simulate(target, type, options);"," } else {"," // simulate using mouse events if touch is not applicable on this platform."," // but only single touch event can be simulated."," if(this._isSingleTouch(options.touches, options.targetTouches, options.changedTouches)) {"," type = {"," touchstart: MOUSE_DOWN,"," touchmove: MOUSE_MOVE,"," touchend: MOUSE_UP"," }[type];",""," options.button = 0;"," options.relatedTarget = null; // since we are not using mouseover event.",""," // touchend has none in options.touches."," touches = (type === MOUSE_UP)? options.changedTouches : options.touches;",""," options = Y.mix(options, {"," screenX: touches.item(0).screenX,"," screenY: touches.item(0).screenY,"," clientX: touches.item(0).clientX,"," clientY: touches.item(0).clientY"," }, true);",""," Y.Event.simulate(target, type, options);",""," if(type == MOUSE_UP) {"," Y.Event.simulate(target, MOUSE_CLICK, options);"," }"," } else {"," Y.error(\"_simulateEvent(): Event '\" + type + \"' has multi touch objects that can't be simulated in your platform.\");"," }"," }"," } else {"," // pass thru for all non touch events"," Y.Event.simulate(target, type, options);"," }"," },",""," /**"," * Helper method to check the single touch."," * @method _isSingleTouch"," * @private"," * @param {TouchList} touches"," * @param {TouchList} targetTouches"," * @param {TouchList} changedTouches"," */"," _isSingleTouch: function(touches, targetTouches, changedTouches) {"," return (touches && (touches.length <= 1)) &&"," (targetTouches && (targetTouches.length <= 1)) &&"," (changedTouches && (changedTouches.length <= 1));"," }","};","","/*"," * A gesture simulation class."," */","Y.GestureSimulation = Simulations;","","/*"," * Various simulation default behavior properties. If user override"," * Y.GestureSimulation.defaults, overriden values will be used and this"," * should be done before the gesture simulation."," */","Y.GestureSimulation.defaults = DEFAULTS;","","/*"," * The high level gesture names that YUI knows how to simulate."," */","Y.GestureSimulation.GESTURES = gestureNames;","","/**"," * Simulates the higher user level gesture of the given name on a target."," * This method generates a set of low level touch events(Apple specific gesture"," * events as well for the iOS platforms) asynchronously. Note that gesture"," * simulation is relying on `Y.Event.simulate()` method to generate"," * the touch events under the hood. The `Y.Event.simulate()` method"," * itself is a synchronous method."," *"," * Users are suggested to use `Node.simulateGesture()` method which"," * basically calls this method internally. Supported gestures are `tap`,"," * `doubletap`, `press`, `move`, `flick`, `pinch` and `rotate`."," *"," * The `pinch` gesture is used to simulate the pinching and spreading of two"," * fingers. During a pinch simulation, rotation is also possible. Essentially"," * `pinch` and `rotate` simulations share the same base implementation to allow"," * both pinching and rotation at the same time. The only difference is `pinch`"," * requires `start` and `end` option properties while `rotate` requires `rotation`"," * option property."," *"," * The `pinch` and `rotate` gestures can be described as placing 2 fingers along a"," * circle. Pinching and spreading can be described by start and end circles while"," * rotation occurs on a single circle. If the radius of the start circle is greater"," * than the end circle, the gesture becomes a pinch, otherwise it is a spread spread."," *"," * @example"," *"," * var node = Y.one(\"#target\");"," *"," * // double tap example"," * node.simulateGesture(\"doubletap\", function() {"," * // my callback function"," * });"," *"," * // flick example from the center of the node, move 50 pixels down for 50ms)"," * node.simulateGesture(\"flick\", {"," * axis: y,"," * distance: -100"," * duration: 50"," * }, function() {"," * // my callback function"," * });"," *"," * // simulate rotating a node 75 degrees counter-clockwise"," * node.simulateGesture(\"rotate\", {"," * rotation: -75"," * });"," *"," * // simulate a pinch and a rotation at the same time."," * // fingers start on a circle of radius 100 px, placed at top/bottom"," * // fingers end on a circle of radius 50px, placed at right/left"," * node.simulateGesture(\"pinch\", {"," * r1: 100,"," * r2: 50,"," * start: 0"," * rotation: 90"," * });"," *"," * @method simulateGesture"," * @param {HTMLElement|Node} node The YUI node or HTML element that's the target"," * of the event."," * @param {String} name The name of the supported gesture to simulate. The"," * supported gesture name is one of \"tap\", \"doubletap\", \"press\", \"move\","," * \"flick\", \"pinch\" and \"rotate\"."," * @param {Object} [options] Extra options used to define the gesture behavior:"," *"," * Valid options properties for the `tap` gesture:"," *"," * @param {Array} [options.point] (Optional) Indicates the [x,y] coordinates"," * where the tap should be simulated. Default is the center of the node"," * element."," * @param {Number} [options.hold=10] (Optional) The hold time in milliseconds."," * This is the time between `touchstart` and `touchend` event generation."," * @param {Number} [options.times=1] (Optional) Indicates the number of taps."," * @param {Number} [options.delay=10] (Optional) The number of milliseconds"," * before the next tap simulation happens. This is valid only when `times`"," * is more than 1."," *"," * Valid options properties for the `doubletap` gesture:"," *"," * @param {Array} [options.point] (Optional) Indicates the [x,y] coordinates"," * where the doubletap should be simulated. Default is the center of the"," * node element."," *"," * Valid options properties for the `press` gesture:"," *"," * @param {Array} [options.point] (Optional) Indicates the [x,y] coordinates"," * where the press should be simulated. Default is the center of the node"," * element."," * @param {Number} [options.hold=3000] (Optional) The hold time in milliseconds."," * This is the time between `touchstart` and `touchend` event generation."," * Default is 3000ms (3 seconds)."," *"," * Valid options properties for the `move` gesture:"," *"," * @param {Object} [options.path] (Optional) Indicates the path of the finger"," * movement. It's an object with three optional properties: `point`,"," * `xdist` and `ydist`."," * @param {Array} [options.path.point] A starting point of the gesture."," * Default is the center of the node element."," * @param {Number} [options.path.xdist=200] A distance to move in pixels"," * along the X axis. A negative distance value indicates moving left."," * @param {Number} [options.path.ydist=0] A distance to move in pixels"," * along the Y axis. A negative distance value indicates moving up."," * @param {Number} [options.duration=1000] (Optional) The duration of the"," * gesture in milliseconds."," *"," * Valid options properties for the `flick` gesture:"," *"," * @param {Array} [options.point] (Optional) Indicates the [x, y] coordinates"," * where the flick should be simulated. Default is the center of the"," * node element."," * @param {String} [options.axis='x'] (Optional) Valid values are either"," * \"x\" or \"y\". Indicates axis to move along. The flick can move to one of"," * 4 directions(left, right, up and down)."," * @param {Number} [options.distance=200] (Optional) Distance to move in pixels"," * @param {Number} [options.duration=1000] (Optional) The duration of the"," * gesture in milliseconds. User given value could be automatically"," * adjusted by the framework if it is below the minimum velocity to be"," * a flick gesture."," *"," * Valid options properties for the `pinch` gesture:"," *"," * @param {Array} [options.center] (Optional) The center of the circle where"," * two fingers are placed. Default is the center of the node element."," * @param {Number} [options.r1] (Required) Pixel radius of the start circle"," * where 2 fingers will be on when the gesture starts. The circles are"," * centered at the center of the element."," * @param {Number} [options.r2] (Required) Pixel radius of the end circle"," * when this gesture ends."," * @param {Number} [options.duration=1000] (Optional) The duration of the"," * gesture in milliseconds."," * @param {Number} [options.start=0] (Optional) Starting degree of the first"," * finger. The value is relative to the path of the north. Default is 0"," * (i.e., 12:00 on a clock)."," * @param {Number} [options.rotation=0] (Optional) Degrees to rotate from"," * the starting degree. A negative value means rotation to the"," * counter-clockwise direction."," *"," * Valid options properties for the `rotate` gesture:"," *"," * @param {Array} [options.center] (Optional) The center of the circle where"," * two fingers are placed. Default is the center of the node element."," * @param {Number} [options.r1] (Optional) Pixel radius of the start circle"," * where 2 fingers will be on when the gesture starts. The circles are"," * centered at the center of the element. Default is a fourth of the node"," * element width or height, whichever is smaller."," * @param {Number} [options.r2] (Optional) Pixel radius of the end circle"," * when this gesture ends. Default is a fourth of the node element width or"," * height, whichever is smaller."," * @param {Number} [options.duration=1000] (Optional) The duration of the"," * gesture in milliseconds."," * @param {Number} [options.start=0] (Optional) Starting degree of the first"," * finger. The value is relative to the path of the north. Default is 0"," * (i.e., 12:00 on a clock)."," * @param {Number} [options.rotation] (Required) Degrees to rotate from"," * the starting degree. A negative value means rotation to the"," * counter-clockwise direction."," *"," * @param {Function} [cb] The callback to execute when the asynchronouse gesture"," * simulation is completed."," * @param {Error} cb.err An error object if the simulation is failed."," * @for Event"," * @static"," */","Y.Event.simulateGesture = function(node, name, options, cb) {",""," node = Y.one(node);",""," var sim = new Y.GestureSimulation(node);"," name = name.toLowerCase();",""," if(!cb && Y.Lang.isFunction(options)) {"," cb = options;"," options = {};"," }",""," options = options || {};",""," if (gestureNames[name]) {"," switch(name) {"," // single-touch: point gestures"," case 'tap':"," sim.tap(cb, options.point, options.times, options.hold, options.delay);"," break;"," case 'doubletap':"," sim.tap(cb, options.point, 2);"," break;"," case 'press':"," if(!Y.Lang.isNumber(options.hold)) {"," options.hold = DEFAULTS.HOLD_PRESS;"," } else if(options.hold < DEFAULTS.MIN_HOLD_PRESS) {"," options.hold = DEFAULTS.MIN_HOLD_PRESS;"," } else if(options.hold > DEFAULTS.MAX_HOLD_PRESS) {"," options.hold = DEFAULTS.MAX_HOLD_PRESS;"," }"," sim.tap(cb, options.point, 1, options.hold);"," break;",""," // single-touch: move gestures"," case 'move':"," sim.move(cb, options.path, options.duration);"," break;"," case 'flick':"," sim.flick(cb, options.point, options.axis, options.distance,"," options.duration);"," break;",""," // multi-touch: pinch/rotation gestures"," case 'pinch':"," sim.pinch(cb, options.center, options.r1, options.r2,"," options.duration, options.start, options.rotation);"," break;"," case 'rotate':"," sim.rotate(cb, options.center, options.r1, options.r2,"," options.duration, options.start, options.rotation);"," break;"," }"," } else {"," Y.error(NAME+': Not a supported gesture simulation: '+name);"," }","};","","","}, '@VERSION@', {\"requires\": [\"async-queue\", \"event-simulate\", \"node-screen\"]});","","}());"]}; } var __cov_Pnir5n5eMyUAdYMTNF7KVA = __coverage__['build/gesture-simulate/gesture-simulate.js']; -__cov_Pnir5n5eMyUAdYMTNF7KVA.s['1']++;YUI.add('gesture-simulate',function(Y,NAME){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['1']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['2']++;var NAME='gesture-simulate',SUPPORTS_TOUCH=(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['1'][0]++,Y.config.win)&&(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['1'][1]++,'ontouchstart'in Y.config.win)&&(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['1'][2]++,!Y.UA.phantomjs)&&(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['1'][3]++,!((__cov_Pnir5n5eMyUAdYMTNF7KVA.b['2'][0]++,Y.UA.chrome)&&(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['2'][1]++,Y.UA.chrome<6))),gestureNames={tap:1,doubletap:1,press:1,move:1,flick:1,pinch:1,rotate:1},touchEvents={touchstart:1,touchmove:1,touchend:1,touchcancel:1},document=Y.config.doc,emptyTouchList,EVENT_INTERVAL=20,START_PAGEX,START_PAGEY,DEFAULTS={HOLD_TAP:10,DELAY_TAP:10,HOLD_PRESS:3000,MIN_HOLD_PRESS:1000,MAX_HOLD_PRESS:60000,DISTANCE_MOVE:200,DURATION_MOVE:1000,MAX_DURATION_MOVE:5000,MIN_VELOCITY_FLICK:1.3,DISTANCE_FLICK:200,DURATION_FLICK:1000,MAX_DURATION_FLICK:5000,DURATION_PINCH:1000},TOUCH_START='touchstart',TOUCH_MOVE='touchmove',TOUCH_END='touchend',GESTURE_START='gesturestart',GESTURE_CHANGE='gesturechange',GESTURE_END='gestureend',MOUSE_UP='mouseup',MOUSE_MOVE='mousemove',MOUSE_DOWN='mousedown',MOUSE_CLICK='click',MOUSE_DBLCLICK='dblclick',X_AXIS='x',Y_AXIS='y';__cov_Pnir5n5eMyUAdYMTNF7KVA.s['3']++;function Simulations(node){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['2']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['4']++;if(!node){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['3'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['5']++;Y.error(NAME+': invalid target node');}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['3'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['6']++;this.node=node;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['7']++;this.target=Y.Node.getDOMNode(node);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['8']++;var startXY=this.node.getXY(),dims=this._getDims();__cov_Pnir5n5eMyUAdYMTNF7KVA.s['9']++;START_PAGEX=startXY[0]+dims[0]/2;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['10']++;START_PAGEY=startXY[1]+dims[1]/2;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['11']++;Simulations.prototype={_toRadian:function(deg){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['3']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['12']++;return deg*(Math.PI/180);},_getDims:function(){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['4']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['13']++;var region,width,height;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['14']++;if(this.target.getBoundingClientRect){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['4'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['15']++;region=this.target.getBoundingClientRect();__cov_Pnir5n5eMyUAdYMTNF7KVA.s['16']++;if('height'in region){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['5'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['17']++;height=region.height;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['5'][1]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['18']++;height=Math.abs(region.bottom-region.top);}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['19']++;if('width'in region){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['6'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['20']++;width=region.width;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['6'][1]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['21']++;width=Math.abs(region.right-region.left);}}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['4'][1]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['22']++;region=this.node.get('region');__cov_Pnir5n5eMyUAdYMTNF7KVA.s['23']++;width=region.width;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['24']++;height=region.height;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['25']++;return[width,height];},_calculateDefaultPoint:function(point){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['5']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['26']++;var height;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['27']++;if((__cov_Pnir5n5eMyUAdYMTNF7KVA.b['8'][0]++,!Y.Lang.isArray(point))||(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['8'][1]++,point.length===0)){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['7'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['28']++;point=[START_PAGEX,START_PAGEY];}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['7'][1]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['29']++;if(point.length==1){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['9'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['30']++;height=this._getDims[1];__cov_Pnir5n5eMyUAdYMTNF7KVA.s['31']++;point[1]=height/2;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['9'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['32']++;point[0]=this.node.getX()+point[0];__cov_Pnir5n5eMyUAdYMTNF7KVA.s['33']++;point[1]=this.node.getY()+point[1];}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['34']++;return point;},rotate:function(cb,center,startRadius,endRadius,duration,start,rotation){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['6']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['35']++;var radius,r1=startRadius,r2=endRadius;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['36']++;if((__cov_Pnir5n5eMyUAdYMTNF7KVA.b['11'][0]++,!Y.Lang.isNumber(r1))||(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['11'][1]++,!Y.Lang.isNumber(r2))||(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['11'][2]++,r1<0)||(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['11'][3]++,r2<0)){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['10'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['37']++;radius=this.target.offsetWidth=2){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['20'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['76']++;this._simulateEvent(this.target,GESTURE_START,Y.merge({scale:startScale,rotation:startRot},coord));}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['20'][1]++;}},timeout:0,context:this});__cov_Pnir5n5eMyUAdYMTNF7KVA.s['77']++;steps=Math.floor(duration/ interval);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['78']++;radiusPerStep=(r2-r1)/steps;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['79']++;scalePerStep=(endScale-startScale)/steps;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['80']++;rotPerStep=(endRot-startRot)/steps;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['81']++;touchMove=function(step){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['9']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['82']++;var radius=r1+radiusPerStep*step,px1=centerX+radius*Math.sin(this._toRadian(startRot+rotPerStep*step)),py1=centerY-radius*Math.cos(this._toRadian(startRot+rotPerStep*step)),px2=centerX-radius*Math.sin(this._toRadian(startRot+rotPerStep*step)),py2=centerY+radius*Math.cos(this._toRadian(startRot+rotPerStep*step)),px=(px1+px2)/2,py=(py1+py2)/2,coord1,coord2,coord,touches;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['83']++;coord1={pageX:px1,pageY:py1,clientX:px1,clientY:py1};__cov_Pnir5n5eMyUAdYMTNF7KVA.s['84']++;coord2={pageX:px2,pageY:py2,clientX:px2,clientY:py2};__cov_Pnir5n5eMyUAdYMTNF7KVA.s['85']++;touches=this._createTouchList([Y.merge({identifier:id++},coord1),Y.merge({identifier:id++},coord2)]);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['86']++;coord={pageX:px,pageY:py,clientX:px,clientY:py};__cov_Pnir5n5eMyUAdYMTNF7KVA.s['87']++;this._simulateEvent(this.target,TOUCH_MOVE,Y.merge({touches:touches,targetTouches:touches,changedTouches:touches,scale:startScale+scalePerStep*step,rotation:startRot+rotPerStep*step},coord));__cov_Pnir5n5eMyUAdYMTNF7KVA.s['88']++;if(Y.UA.ios>=2){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['21'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['89']++;this._simulateEvent(this.target,GESTURE_CHANGE,Y.merge({scale:startScale+scalePerStep*step,rotation:startRot+rotPerStep*step},coord));}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['21'][1]++;}};__cov_Pnir5n5eMyUAdYMTNF7KVA.s['90']++;for(i=0;i=2){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['22'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['99']++;this._simulateEvent(this.target,GESTURE_END,Y.merge({scale:endScale,rotation:endRot},coord));}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['22'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['100']++;this._simulateEvent(this.target,TOUCH_END,Y.merge({touches:emptyTouchList,targetTouches:emptyTouchList,changedTouches:touches,scale:endScale,rotation:endRot},coord));},context:this});__cov_Pnir5n5eMyUAdYMTNF7KVA.s['101']++;if((__cov_Pnir5n5eMyUAdYMTNF7KVA.b['24'][0]++,cb)&&(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['24'][1]++,Y.Lang.isFunction(cb))){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['23'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['102']++;eventQueue.add({fn:cb,context:this.node});}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['23'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['103']++;eventQueue.run();},tap:function(cb,point,times,hold,delay){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['11']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['104']++;var eventQueue=new Y.AsyncQueue(),emptyTouchList=this._getEmptyTouchList(),touches,coord,i,touchStart,touchEnd;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['105']++;point=this._calculateDefaultPoint(point);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['106']++;if((__cov_Pnir5n5eMyUAdYMTNF7KVA.b['26'][0]++,!Y.Lang.isNumber(times))||(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['26'][1]++,times<1)){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['25'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['107']++;times=1;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['25'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['108']++;if(!Y.Lang.isNumber(hold)){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['27'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['109']++;hold=DEFAULTS.HOLD_TAP;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['27'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['110']++;if(!Y.Lang.isNumber(delay)){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['28'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['111']++;delay=DEFAULTS.DELAY_TAP;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['28'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['112']++;coord={pageX:point[0],pageY:point[1],clientX:point[0],clientY:point[1]};__cov_Pnir5n5eMyUAdYMTNF7KVA.s['113']++;touches=this._createTouchList([Y.merge({identifier:0},coord)]);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['114']++;touchStart=function(){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['12']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['115']++;this._simulateEvent(this.target,TOUCH_START,Y.merge({touches:touches,targetTouches:touches,changedTouches:touches},coord));};__cov_Pnir5n5eMyUAdYMTNF7KVA.s['116']++;touchEnd=function(){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['13']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['117']++;this._simulateEvent(this.target,TOUCH_END,Y.merge({touches:emptyTouchList,targetTouches:emptyTouchList,changedTouches:touches},coord));};__cov_Pnir5n5eMyUAdYMTNF7KVA.s['118']++;for(i=0;i1)&&(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['31'][1]++,!SUPPORTS_TOUCH)){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['30'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['122']++;eventQueue.add({fn:function(){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['14']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['123']++;this._simulateEvent(this.target,MOUSE_DBLCLICK,coord);},context:this});}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['30'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['124']++;if((__cov_Pnir5n5eMyUAdYMTNF7KVA.b['33'][0]++,cb)&&(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['33'][1]++,Y.Lang.isFunction(cb))){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['32'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['125']++;eventQueue.add({fn:cb,context:this.node});}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['32'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['126']++;eventQueue.run();},flick:function(cb,point,axis,distance,duration){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['15']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['127']++;var path;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['128']++;point=this._calculateDefaultPoint(point);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['129']++;if(!Y.Lang.isString(axis)){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['34'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['130']++;axis=X_AXIS;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['34'][1]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['131']++;axis=axis.toLowerCase();__cov_Pnir5n5eMyUAdYMTNF7KVA.s['132']++;if((__cov_Pnir5n5eMyUAdYMTNF7KVA.b['36'][0]++,axis!==X_AXIS)&&(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['36'][1]++,axis!==Y_AXIS)){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['35'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['133']++;Y.error(NAME+'(flick): Only x or y axis allowed');}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['35'][1]++;}}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['134']++;if(!Y.Lang.isNumber(distance)){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['37'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['135']++;distance=DEFAULTS.DISTANCE_FLICK;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['37'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['136']++;if(!Y.Lang.isNumber(duration)){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['38'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['137']++;duration=DEFAULTS.DURATION_FLICK;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['38'][1]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['138']++;if(duration>DEFAULTS.MAX_DURATION_FLICK){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['39'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['139']++;duration=DEFAULTS.MAX_DURATION_FLICK;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['39'][1]++;}}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['140']++;if(Math.abs(distance)/durationDEFAULTS.MAX_DURATION_MOVE){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['48'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['157']++;duration=DEFAULTS.MAX_DURATION_MOVE;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['48'][1]++;}}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['158']++;convertedPath={start:Y.clone(path.point),end:[path.point[0]+path.xdist,path.point[1]+path.ydist]};__cov_Pnir5n5eMyUAdYMTNF7KVA.s['159']++;this._move(cb,convertedPath,duration);},_move:function(cb,path,duration){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['17']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['160']++;var eventQueue,i,interval=EVENT_INTERVAL,steps,stepX,stepY,id=0,touchMove;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['161']++;if(!Y.Lang.isNumber(duration)){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['49'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['162']++;duration=DEFAULTS.DURATION_MOVE;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['49'][1]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['163']++;if(duration>DEFAULTS.MAX_DURATION_MOVE){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['50'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['164']++;duration=DEFAULTS.MAX_DURATION_MOVE;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['50'][1]++;}}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['165']++;if(!Y.Lang.isObject(path)){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['51'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['166']++;path={start:[START_PAGEX,START_PAGEY],end:[START_PAGEX+DEFAULTS.DISTANCE_MOVE,START_PAGEY]};}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['51'][1]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['167']++;if(!Y.Lang.isArray(path.start)){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['52'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['168']++;path.start=[START_PAGEX,START_PAGEY];}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['52'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['169']++;if(!Y.Lang.isArray(path.end)){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['53'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['170']++;path.end=[START_PAGEX+DEFAULTS.DISTANCE_MOVE,START_PAGEY];}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['53'][1]++;}}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['171']++;Y.AsyncQueue.defaults.timeout=interval;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['172']++;eventQueue=new Y.AsyncQueue();__cov_Pnir5n5eMyUAdYMTNF7KVA.s['173']++;eventQueue.add({fn:function(){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['18']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['174']++;var coord={pageX:path.start[0],pageY:path.start[1],clientX:path.start[0],clientY:path.start[1]},touches=this._createTouchList([Y.merge({identifier:id++},coord)]);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['175']++;this._simulateEvent(this.target,TOUCH_START,Y.merge({touches:touches,targetTouches:touches,changedTouches:touches},coord));},timeout:0,context:this});__cov_Pnir5n5eMyUAdYMTNF7KVA.s['176']++;steps=Math.floor(duration/ interval);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['177']++;stepX=(path.end[0]-path.start[0])/steps;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['178']++;stepY=(path.end[1]-path.start[1])/steps;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['179']++;touchMove=function(step){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['19']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['180']++;var px=path.start[0]+stepX*step,py=path.start[1]+stepY*step,coord={pageX:px,pageY:py,clientX:px,clientY:py},touches=this._createTouchList([Y.merge({identifier:id++},coord)]);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['181']++;this._simulateEvent(this.target,TOUCH_MOVE,Y.merge({touches:touches,targetTouches:touches,changedTouches:touches},coord));};__cov_Pnir5n5eMyUAdYMTNF7KVA.s['182']++;for(i=0;i=4)||(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['60'][2]++,Y.UA.ios)&&(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['60'][3]++,Y.UA.ios>=2)){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['59'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['199']++;Y.each(touchPoints,function(point){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['24']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['200']++;if(!point.identifier){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['61'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['201']++;point.identifier=0;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['61'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['202']++;if(!point.pageX){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['62'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['203']++;point.pageX=0;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['62'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['204']++;if(!point.pageY){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['63'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['205']++;point.pageY=0;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['63'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['206']++;if(!point.screenX){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['64'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['207']++;point.screenX=0;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['64'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['208']++;if(!point.screenY){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['65'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['209']++;point.screenY=0;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['65'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['210']++;touches.push(document.createTouch(Y.config.win,self.target,point.identifier,point.pageX,point.pageY,point.screenX,point.screenY));});__cov_Pnir5n5eMyUAdYMTNF7KVA.s['211']++;touchList=document.createTouchList.apply(document,touches);}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['59'][1]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['212']++;if((__cov_Pnir5n5eMyUAdYMTNF7KVA.b['67'][0]++,Y.UA.ios)&&(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['67'][1]++,Y.UA.ios<2)){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['66'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['213']++;Y.error(NAME+': No touch event simulation framework present.');}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['66'][1]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['214']++;touchList=[];__cov_Pnir5n5eMyUAdYMTNF7KVA.s['215']++;Y.each(touchPoints,function(point){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['25']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['216']++;if(!point.identifier){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['68'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['217']++;point.identifier=0;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['68'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['218']++;if(!point.clientX){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['69'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['219']++;point.clientX=0;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['69'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['220']++;if(!point.clientY){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['70'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['221']++;point.clientY=0;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['70'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['222']++;if(!point.pageX){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['71'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['223']++;point.pageX=0;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['71'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['224']++;if(!point.pageY){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['72'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['225']++;point.pageY=0;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['72'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['226']++;if(!point.screenX){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['73'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['227']++;point.screenX=0;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['73'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['228']++;if(!point.screenY){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['74'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['229']++;point.screenY=0;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['74'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['230']++;touchList.push({target:self.target,identifier:point.identifier,clientX:point.clientX,clientY:point.clientY,pageX:point.pageX,pageY:point.pageY,screenX:point.screenX,screenY:point.screenY});});__cov_Pnir5n5eMyUAdYMTNF7KVA.s['231']++;touchList.item=function(i){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['26']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['232']++;return touchList[i];};}}}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['57'][1]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['233']++;Y.error(NAME+': Invalid touchPoints passed');}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['234']++;return touchList;},_simulateEvent:function(target,type,options){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['27']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['235']++;var touches;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['236']++;if(touchEvents[type]){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['75'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['237']++;if(SUPPORTS_TOUCH){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['76'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['238']++;Y.Event.simulate(target,type,options);}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['76'][1]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['239']++;if(this._isSingleTouch(options.touches,options.targetTouches,options.changedTouches)){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['77'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['240']++;type={touchstart:MOUSE_DOWN,touchmove:MOUSE_MOVE,touchend:MOUSE_UP}[type];__cov_Pnir5n5eMyUAdYMTNF7KVA.s['241']++;options.button=0;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['242']++;options.relatedTarget=null;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['243']++;touches=type===MOUSE_UP?(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['78'][0]++,options.changedTouches):(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['78'][1]++,options.touches);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['244']++;options=Y.mix(options,{screenX:touches.item(0).screenX,screenY:touches.item(0).screenY,clientX:touches.item(0).clientX,clientY:touches.item(0).clientY},true);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['245']++;Y.Event.simulate(target,type,options);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['246']++;if(type==MOUSE_UP){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['79'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['247']++;Y.Event.simulate(target,MOUSE_CLICK,options);}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['79'][1]++;}}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['77'][1]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['248']++;Y.error('_simulateEvent(): Event \''+type+'\' has multi touch objects that can\'t be simulated in your platform.');}}}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['75'][1]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['249']++;Y.Event.simulate(target,type,options);}},_isSingleTouch:function(touches,targetTouches,changedTouches){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['28']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['250']++;return(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['80'][0]++,touches)&&(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['80'][1]++,touches.length<=1)&&((__cov_Pnir5n5eMyUAdYMTNF7KVA.b['80'][2]++,targetTouches)&&(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['80'][3]++,targetTouches.length<=1))&&((__cov_Pnir5n5eMyUAdYMTNF7KVA.b['80'][4]++,changedTouches)&&(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['80'][5]++,changedTouches.length<=1));}};__cov_Pnir5n5eMyUAdYMTNF7KVA.s['251']++;Y.GestureSimulation=Simulations;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['252']++;Y.GestureSimulation.defaults=DEFAULTS;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['253']++;Y.GestureSimulation.GESTURES=gestureNames;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['254']++;Y.Event.simulateGesture=function(node,name,options,cb){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['29']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['255']++;node=Y.one(node);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['256']++;var sim=new Y.GestureSimulation(node);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['257']++;name=name.toLowerCase();__cov_Pnir5n5eMyUAdYMTNF7KVA.s['258']++;if((__cov_Pnir5n5eMyUAdYMTNF7KVA.b['82'][0]++,!cb)&&(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['82'][1]++,Y.Lang.isFunction(options))){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['81'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['259']++;cb=options;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['260']++;options={};}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['81'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['261']++;options=(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['83'][0]++,options)||(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['83'][1]++,{});__cov_Pnir5n5eMyUAdYMTNF7KVA.s['262']++;if(gestureNames[name]){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['84'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['263']++;switch(name){case'tap':__cov_Pnir5n5eMyUAdYMTNF7KVA.b['85'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['264']++;sim.tap(cb,options.point,options.times,options.hold,options.delay);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['265']++;break;case'doubletap':__cov_Pnir5n5eMyUAdYMTNF7KVA.b['85'][1]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['266']++;sim.tap(cb,options.point,2);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['267']++;break;case'press':__cov_Pnir5n5eMyUAdYMTNF7KVA.b['85'][2]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['268']++;if(!Y.Lang.isNumber(options.hold)){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['86'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['269']++;options.hold=DEFAULTS.HOLD_PRESS;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['86'][1]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['270']++;if(options.holdDEFAULTS.MAX_HOLD_PRESS){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['88'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['273']++;options.hold=DEFAULTS.MAX_HOLD_PRESS;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['88'][1]++;}}}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['274']++;sim.tap(cb,options.point,1,options.hold);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['275']++;break;case'move':__cov_Pnir5n5eMyUAdYMTNF7KVA.b['85'][3]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['276']++;sim.move(cb,options.path,options.duration);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['277']++;break;case'flick':__cov_Pnir5n5eMyUAdYMTNF7KVA.b['85'][4]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['278']++;sim.flick(cb,options.point,options.axis,options.distance,options.duration);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['279']++;break;case'pinch':__cov_Pnir5n5eMyUAdYMTNF7KVA.b['85'][5]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['280']++;sim.pinch(cb,options.center,options.r1,options.r2,options.duration,options.start,options.rotation);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['281']++;break;case'rotate':__cov_Pnir5n5eMyUAdYMTNF7KVA.b['85'][6]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['282']++;sim.rotate(cb,options.center,options.r1,options.r2,options.duration,options.start,options.rotation);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['283']++;break;}}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['84'][1]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['284']++;Y.error(NAME+': Not a supported gesture simulation: '+name);}};},'@VERSION@',{'requires':['async-queue','event-simulate','node-screen']}); +__cov_Pnir5n5eMyUAdYMTNF7KVA.s['1']++;YUI.add('gesture-simulate',function(Y,NAME){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['1']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['2']++;var NAME='gesture-simulate',SUPPORTS_TOUCH=(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['1'][0]++,Y.config.win)&&(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['1'][1]++,'ontouchstart'in Y.config.win)&&(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['1'][2]++,!Y.UA.phantomjs)&&(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['1'][3]++,!((__cov_Pnir5n5eMyUAdYMTNF7KVA.b['2'][0]++,Y.UA.chrome)&&(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['2'][1]++,Y.UA.chrome<6))),gestureNames={tap:1,doubletap:1,press:1,move:1,flick:1,pinch:1,rotate:1},touchEvents={touchstart:1,touchmove:1,touchend:1,touchcancel:1},document=Y.config.doc,emptyTouchList,EVENT_INTERVAL=20,START_PAGEX,START_PAGEY,DEFAULTS={HOLD_TAP:10,DELAY_TAP:10,HOLD_PRESS:3000,MIN_HOLD_PRESS:1000,MAX_HOLD_PRESS:60000,DISTANCE_MOVE:200,DURATION_MOVE:1000,MAX_DURATION_MOVE:5000,MIN_VELOCITY_FLICK:1.3,DISTANCE_FLICK:200,DURATION_FLICK:1000,MAX_DURATION_FLICK:5000,DURATION_PINCH:1000},TOUCH_START='touchstart',TOUCH_MOVE='touchmove',TOUCH_END='touchend',GESTURE_START='gesturestart',GESTURE_CHANGE='gesturechange',GESTURE_END='gestureend',MOUSE_UP='mouseup',MOUSE_MOVE='mousemove',MOUSE_DOWN='mousedown',MOUSE_CLICK='click',MOUSE_DBLCLICK='dblclick',X_AXIS='x',Y_AXIS='y';__cov_Pnir5n5eMyUAdYMTNF7KVA.s['3']++;function Simulations(node){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['2']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['4']++;if(!node){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['3'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['5']++;Y.error(NAME+': invalid target node');}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['3'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['6']++;this.node=node;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['7']++;this.target=Y.Node.getDOMNode(node);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['8']++;var startXY=this.node.getXY(),dims=this._getDims();__cov_Pnir5n5eMyUAdYMTNF7KVA.s['9']++;START_PAGEX=startXY[0]+dims[0]/2;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['10']++;START_PAGEY=startXY[1]+dims[1]/2;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['11']++;Simulations.prototype={_toRadian:function(deg){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['3']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['12']++;return deg*(Math.PI/180);},_getDims:function(){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['4']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['13']++;var region,width,height;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['14']++;if(this.target.getBoundingClientRect){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['4'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['15']++;region=this.target.getBoundingClientRect();__cov_Pnir5n5eMyUAdYMTNF7KVA.s['16']++;if('height'in region){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['5'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['17']++;height=region.height;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['5'][1]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['18']++;height=Math.abs(region.bottom-region.top);}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['19']++;if('width'in region){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['6'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['20']++;width=region.width;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['6'][1]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['21']++;width=Math.abs(region.right-region.left);}}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['4'][1]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['22']++;region=this.node.get('region');__cov_Pnir5n5eMyUAdYMTNF7KVA.s['23']++;width=region.width;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['24']++;height=region.height;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['25']++;return[width,height];},_calculateDefaultPoint:function(point){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['5']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['26']++;var height;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['27']++;if((__cov_Pnir5n5eMyUAdYMTNF7KVA.b['8'][0]++,!Y.Lang.isArray(point))||(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['8'][1]++,point.length===0)){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['7'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['28']++;point=[START_PAGEX,START_PAGEY];}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['7'][1]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['29']++;if(point.length==1){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['9'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['30']++;height=this._getDims[1];__cov_Pnir5n5eMyUAdYMTNF7KVA.s['31']++;point[1]=height/2;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['9'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['32']++;point[0]=this.node.getX()+point[0];__cov_Pnir5n5eMyUAdYMTNF7KVA.s['33']++;point[1]=this.node.getY()+point[1];}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['34']++;return point;},rotate:function(cb,center,startRadius,endRadius,duration,start,rotation){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['6']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['35']++;var radius,r1=startRadius,r2=endRadius;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['36']++;if((__cov_Pnir5n5eMyUAdYMTNF7KVA.b['11'][0]++,!Y.Lang.isNumber(r1))||(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['11'][1]++,!Y.Lang.isNumber(r2))||(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['11'][2]++,r1<0)||(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['11'][3]++,r2<0)){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['10'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['37']++;radius=this.target.offsetWidth=2){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['20'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['76']++;this._simulateEvent(this.target,GESTURE_START,Y.merge({scale:startScale,rotation:startRot},coord));}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['20'][1]++;}},timeout:0,context:this});__cov_Pnir5n5eMyUAdYMTNF7KVA.s['77']++;steps=Math.floor(duration/interval);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['78']++;radiusPerStep=(r2-r1)/steps;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['79']++;scalePerStep=(endScale-startScale)/steps;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['80']++;rotPerStep=(endRot-startRot)/steps;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['81']++;touchMove=function(step){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['9']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['82']++;var radius=r1+radiusPerStep*step,px1=centerX+radius*Math.sin(this._toRadian(startRot+rotPerStep*step)),py1=centerY-radius*Math.cos(this._toRadian(startRot+rotPerStep*step)),px2=centerX-radius*Math.sin(this._toRadian(startRot+rotPerStep*step)),py2=centerY+radius*Math.cos(this._toRadian(startRot+rotPerStep*step)),px=(px1+px2)/2,py=(py1+py2)/2,coord1,coord2,coord,touches;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['83']++;coord1={pageX:px1,pageY:py1,clientX:px1,clientY:py1};__cov_Pnir5n5eMyUAdYMTNF7KVA.s['84']++;coord2={pageX:px2,pageY:py2,clientX:px2,clientY:py2};__cov_Pnir5n5eMyUAdYMTNF7KVA.s['85']++;touches=this._createTouchList([Y.merge({identifier:id++},coord1),Y.merge({identifier:id++},coord2)]);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['86']++;coord={pageX:px,pageY:py,clientX:px,clientY:py};__cov_Pnir5n5eMyUAdYMTNF7KVA.s['87']++;this._simulateEvent(this.target,TOUCH_MOVE,Y.merge({touches:touches,targetTouches:touches,changedTouches:touches,scale:startScale+scalePerStep*step,rotation:startRot+rotPerStep*step},coord));__cov_Pnir5n5eMyUAdYMTNF7KVA.s['88']++;if(Y.UA.ios>=2){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['21'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['89']++;this._simulateEvent(this.target,GESTURE_CHANGE,Y.merge({scale:startScale+scalePerStep*step,rotation:startRot+rotPerStep*step},coord));}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['21'][1]++;}};__cov_Pnir5n5eMyUAdYMTNF7KVA.s['90']++;for(i=0;i=2){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['22'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['99']++;this._simulateEvent(this.target,GESTURE_END,Y.merge({scale:endScale,rotation:endRot},coord));}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['22'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['100']++;this._simulateEvent(this.target,TOUCH_END,Y.merge({touches:emptyTouchList,targetTouches:emptyTouchList,changedTouches:touches,scale:endScale,rotation:endRot},coord));},context:this});__cov_Pnir5n5eMyUAdYMTNF7KVA.s['101']++;if((__cov_Pnir5n5eMyUAdYMTNF7KVA.b['24'][0]++,cb)&&(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['24'][1]++,Y.Lang.isFunction(cb))){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['23'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['102']++;eventQueue.add({fn:cb,context:this.node});}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['23'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['103']++;eventQueue.run();},tap:function(cb,point,times,hold,delay){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['11']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['104']++;var eventQueue=new Y.AsyncQueue(),emptyTouchList=this._getEmptyTouchList(),touches,coord,i,touchStart,touchEnd;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['105']++;point=this._calculateDefaultPoint(point);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['106']++;if((__cov_Pnir5n5eMyUAdYMTNF7KVA.b['26'][0]++,!Y.Lang.isNumber(times))||(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['26'][1]++,times<1)){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['25'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['107']++;times=1;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['25'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['108']++;if(!Y.Lang.isNumber(hold)){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['27'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['109']++;hold=DEFAULTS.HOLD_TAP;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['27'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['110']++;if(!Y.Lang.isNumber(delay)){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['28'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['111']++;delay=DEFAULTS.DELAY_TAP;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['28'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['112']++;coord={pageX:point[0],pageY:point[1],clientX:point[0],clientY:point[1]};__cov_Pnir5n5eMyUAdYMTNF7KVA.s['113']++;touches=this._createTouchList([Y.merge({identifier:0},coord)]);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['114']++;touchStart=function(){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['12']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['115']++;this._simulateEvent(this.target,TOUCH_START,Y.merge({touches:touches,targetTouches:touches,changedTouches:touches},coord));};__cov_Pnir5n5eMyUAdYMTNF7KVA.s['116']++;touchEnd=function(){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['13']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['117']++;this._simulateEvent(this.target,TOUCH_END,Y.merge({touches:emptyTouchList,targetTouches:emptyTouchList,changedTouches:touches},coord));};__cov_Pnir5n5eMyUAdYMTNF7KVA.s['118']++;for(i=0;i1)&&(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['31'][1]++,!SUPPORTS_TOUCH)){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['30'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['122']++;eventQueue.add({fn:function(){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['14']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['123']++;this._simulateEvent(this.target,MOUSE_DBLCLICK,coord);},context:this});}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['30'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['124']++;if((__cov_Pnir5n5eMyUAdYMTNF7KVA.b['33'][0]++,cb)&&(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['33'][1]++,Y.Lang.isFunction(cb))){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['32'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['125']++;eventQueue.add({fn:cb,context:this.node});}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['32'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['126']++;eventQueue.run();},flick:function(cb,point,axis,distance,duration){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['15']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['127']++;var path;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['128']++;point=this._calculateDefaultPoint(point);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['129']++;if(!Y.Lang.isString(axis)){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['34'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['130']++;axis=X_AXIS;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['34'][1]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['131']++;axis=axis.toLowerCase();__cov_Pnir5n5eMyUAdYMTNF7KVA.s['132']++;if((__cov_Pnir5n5eMyUAdYMTNF7KVA.b['36'][0]++,axis!==X_AXIS)&&(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['36'][1]++,axis!==Y_AXIS)){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['35'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['133']++;Y.error(NAME+'(flick): Only x or y axis allowed');}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['35'][1]++;}}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['134']++;if(!Y.Lang.isNumber(distance)){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['37'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['135']++;distance=DEFAULTS.DISTANCE_FLICK;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['37'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['136']++;if(!Y.Lang.isNumber(duration)){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['38'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['137']++;duration=DEFAULTS.DURATION_FLICK;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['38'][1]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['138']++;if(duration>DEFAULTS.MAX_DURATION_FLICK){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['39'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['139']++;duration=DEFAULTS.MAX_DURATION_FLICK;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['39'][1]++;}}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['140']++;if(Math.abs(distance)/durationDEFAULTS.MAX_DURATION_MOVE){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['48'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['157']++;duration=DEFAULTS.MAX_DURATION_MOVE;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['48'][1]++;}}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['158']++;convertedPath={start:Y.clone(path.point),end:[path.point[0]+path.xdist,path.point[1]+path.ydist]};__cov_Pnir5n5eMyUAdYMTNF7KVA.s['159']++;this._move(cb,convertedPath,duration);},_move:function(cb,path,duration){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['17']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['160']++;var eventQueue,i,interval=EVENT_INTERVAL,steps,stepX,stepY,id=0,touchMove;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['161']++;if(!Y.Lang.isNumber(duration)){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['49'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['162']++;duration=DEFAULTS.DURATION_MOVE;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['49'][1]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['163']++;if(duration>DEFAULTS.MAX_DURATION_MOVE){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['50'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['164']++;duration=DEFAULTS.MAX_DURATION_MOVE;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['50'][1]++;}}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['165']++;if(!Y.Lang.isObject(path)){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['51'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['166']++;path={start:[START_PAGEX,START_PAGEY],end:[START_PAGEX+DEFAULTS.DISTANCE_MOVE,START_PAGEY]};}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['51'][1]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['167']++;if(!Y.Lang.isArray(path.start)){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['52'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['168']++;path.start=[START_PAGEX,START_PAGEY];}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['52'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['169']++;if(!Y.Lang.isArray(path.end)){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['53'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['170']++;path.end=[START_PAGEX+DEFAULTS.DISTANCE_MOVE,START_PAGEY];}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['53'][1]++;}}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['171']++;Y.AsyncQueue.defaults.timeout=interval;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['172']++;eventQueue=new Y.AsyncQueue();__cov_Pnir5n5eMyUAdYMTNF7KVA.s['173']++;eventQueue.add({fn:function(){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['18']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['174']++;var coord={pageX:path.start[0],pageY:path.start[1],clientX:path.start[0],clientY:path.start[1]},touches=this._createTouchList([Y.merge({identifier:id++},coord)]);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['175']++;this._simulateEvent(this.target,TOUCH_START,Y.merge({touches:touches,targetTouches:touches,changedTouches:touches},coord));},timeout:0,context:this});__cov_Pnir5n5eMyUAdYMTNF7KVA.s['176']++;steps=Math.floor(duration/interval);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['177']++;stepX=(path.end[0]-path.start[0])/steps;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['178']++;stepY=(path.end[1]-path.start[1])/steps;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['179']++;touchMove=function(step){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['19']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['180']++;var px=path.start[0]+stepX*step,py=path.start[1]+stepY*step,coord={pageX:px,pageY:py,clientX:px,clientY:py},touches=this._createTouchList([Y.merge({identifier:id++},coord)]);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['181']++;this._simulateEvent(this.target,TOUCH_MOVE,Y.merge({touches:touches,targetTouches:touches,changedTouches:touches},coord));};__cov_Pnir5n5eMyUAdYMTNF7KVA.s['182']++;for(i=0;i=4)||(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['60'][2]++,Y.UA.ios)&&(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['60'][3]++,Y.UA.ios>=2)){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['59'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['199']++;Y.each(touchPoints,function(point){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['24']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['200']++;if(!point.identifier){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['61'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['201']++;point.identifier=0;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['61'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['202']++;if(!point.pageX){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['62'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['203']++;point.pageX=0;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['62'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['204']++;if(!point.pageY){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['63'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['205']++;point.pageY=0;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['63'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['206']++;if(!point.screenX){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['64'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['207']++;point.screenX=0;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['64'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['208']++;if(!point.screenY){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['65'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['209']++;point.screenY=0;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['65'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['210']++;touches.push(document.createTouch(Y.config.win,self.target,point.identifier,point.pageX,point.pageY,point.screenX,point.screenY));});__cov_Pnir5n5eMyUAdYMTNF7KVA.s['211']++;touchList=document.createTouchList.apply(document,touches);}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['59'][1]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['212']++;if((__cov_Pnir5n5eMyUAdYMTNF7KVA.b['67'][0]++,Y.UA.ios)&&(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['67'][1]++,Y.UA.ios<2)){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['66'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['213']++;Y.error(NAME+': No touch event simulation framework present.');}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['66'][1]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['214']++;touchList=[];__cov_Pnir5n5eMyUAdYMTNF7KVA.s['215']++;Y.each(touchPoints,function(point){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['25']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['216']++;if(!point.identifier){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['68'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['217']++;point.identifier=0;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['68'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['218']++;if(!point.clientX){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['69'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['219']++;point.clientX=0;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['69'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['220']++;if(!point.clientY){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['70'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['221']++;point.clientY=0;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['70'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['222']++;if(!point.pageX){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['71'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['223']++;point.pageX=0;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['71'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['224']++;if(!point.pageY){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['72'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['225']++;point.pageY=0;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['72'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['226']++;if(!point.screenX){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['73'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['227']++;point.screenX=0;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['73'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['228']++;if(!point.screenY){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['74'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['229']++;point.screenY=0;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['74'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['230']++;touchList.push({target:self.target,identifier:point.identifier,clientX:point.clientX,clientY:point.clientY,pageX:point.pageX,pageY:point.pageY,screenX:point.screenX,screenY:point.screenY});});__cov_Pnir5n5eMyUAdYMTNF7KVA.s['231']++;touchList.item=function(i){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['26']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['232']++;return touchList[i];};}}}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['57'][1]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['233']++;Y.error(NAME+': Invalid touchPoints passed');}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['234']++;return touchList;},_simulateEvent:function(target,type,options){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['27']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['235']++;var touches;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['236']++;if(touchEvents[type]){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['75'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['237']++;if(SUPPORTS_TOUCH){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['76'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['238']++;Y.Event.simulate(target,type,options);}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['76'][1]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['239']++;if(this._isSingleTouch(options.touches,options.targetTouches,options.changedTouches)){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['77'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['240']++;type={touchstart:MOUSE_DOWN,touchmove:MOUSE_MOVE,touchend:MOUSE_UP}[type];__cov_Pnir5n5eMyUAdYMTNF7KVA.s['241']++;options.button=0;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['242']++;options.relatedTarget=null;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['243']++;touches=type===MOUSE_UP?(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['78'][0]++,options.changedTouches):(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['78'][1]++,options.touches);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['244']++;options=Y.mix(options,{screenX:touches.item(0).screenX,screenY:touches.item(0).screenY,clientX:touches.item(0).clientX,clientY:touches.item(0).clientY},true);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['245']++;Y.Event.simulate(target,type,options);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['246']++;if(type==MOUSE_UP){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['79'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['247']++;Y.Event.simulate(target,MOUSE_CLICK,options);}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['79'][1]++;}}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['77'][1]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['248']++;Y.error('_simulateEvent(): Event \''+type+'\' has multi touch objects that can\'t be simulated in your platform.');}}}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['75'][1]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['249']++;Y.Event.simulate(target,type,options);}},_isSingleTouch:function(touches,targetTouches,changedTouches){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['28']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['250']++;return(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['80'][0]++,touches)&&(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['80'][1]++,touches.length<=1)&&((__cov_Pnir5n5eMyUAdYMTNF7KVA.b['80'][2]++,targetTouches)&&(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['80'][3]++,targetTouches.length<=1))&&((__cov_Pnir5n5eMyUAdYMTNF7KVA.b['80'][4]++,changedTouches)&&(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['80'][5]++,changedTouches.length<=1));}};__cov_Pnir5n5eMyUAdYMTNF7KVA.s['251']++;Y.GestureSimulation=Simulations;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['252']++;Y.GestureSimulation.defaults=DEFAULTS;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['253']++;Y.GestureSimulation.GESTURES=gestureNames;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['254']++;Y.Event.simulateGesture=function(node,name,options,cb){__cov_Pnir5n5eMyUAdYMTNF7KVA.f['29']++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['255']++;node=Y.one(node);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['256']++;var sim=new Y.GestureSimulation(node);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['257']++;name=name.toLowerCase();__cov_Pnir5n5eMyUAdYMTNF7KVA.s['258']++;if((__cov_Pnir5n5eMyUAdYMTNF7KVA.b['82'][0]++,!cb)&&(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['82'][1]++,Y.Lang.isFunction(options))){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['81'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['259']++;cb=options;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['260']++;options={};}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['81'][1]++;}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['261']++;options=(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['83'][0]++,options)||(__cov_Pnir5n5eMyUAdYMTNF7KVA.b['83'][1]++,{});__cov_Pnir5n5eMyUAdYMTNF7KVA.s['262']++;if(gestureNames[name]){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['84'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['263']++;switch(name){case'tap':__cov_Pnir5n5eMyUAdYMTNF7KVA.b['85'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['264']++;sim.tap(cb,options.point,options.times,options.hold,options.delay);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['265']++;break;case'doubletap':__cov_Pnir5n5eMyUAdYMTNF7KVA.b['85'][1]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['266']++;sim.tap(cb,options.point,2);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['267']++;break;case'press':__cov_Pnir5n5eMyUAdYMTNF7KVA.b['85'][2]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['268']++;if(!Y.Lang.isNumber(options.hold)){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['86'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['269']++;options.hold=DEFAULTS.HOLD_PRESS;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['86'][1]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['270']++;if(options.holdDEFAULTS.MAX_HOLD_PRESS){__cov_Pnir5n5eMyUAdYMTNF7KVA.b['88'][0]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['273']++;options.hold=DEFAULTS.MAX_HOLD_PRESS;}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['88'][1]++;}}}__cov_Pnir5n5eMyUAdYMTNF7KVA.s['274']++;sim.tap(cb,options.point,1,options.hold);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['275']++;break;case'move':__cov_Pnir5n5eMyUAdYMTNF7KVA.b['85'][3]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['276']++;sim.move(cb,options.path,options.duration);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['277']++;break;case'flick':__cov_Pnir5n5eMyUAdYMTNF7KVA.b['85'][4]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['278']++;sim.flick(cb,options.point,options.axis,options.distance,options.duration);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['279']++;break;case'pinch':__cov_Pnir5n5eMyUAdYMTNF7KVA.b['85'][5]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['280']++;sim.pinch(cb,options.center,options.r1,options.r2,options.duration,options.start,options.rotation);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['281']++;break;case'rotate':__cov_Pnir5n5eMyUAdYMTNF7KVA.b['85'][6]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['282']++;sim.rotate(cb,options.center,options.r1,options.r2,options.duration,options.start,options.rotation);__cov_Pnir5n5eMyUAdYMTNF7KVA.s['283']++;break;}}else{__cov_Pnir5n5eMyUAdYMTNF7KVA.b['84'][1]++;__cov_Pnir5n5eMyUAdYMTNF7KVA.s['284']++;Y.error(NAME+': Not a supported gesture simulation: '+name);}};},'@VERSION@',{'requires':['async-queue','event-simulate','node-screen']}); diff --git a/build/node-core/node-core-coverage.js b/build/node-core/node-core-coverage.js index d7476b98113..17ed43a3dd3 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":961,"loc":{"start":{"line":961,"column":24},"end":{"line":961,"column":54}}},"55":{"name":"(anonymous_55)","line":966,"loc":{"start":{"line":966,"column":27},"end":{"line":966,"column":39}}},"56":{"name":"(anonymous_56)","line":972,"loc":{"start":{"line":972,"column":24},"end":{"line":972,"column":39}}},"57":{"name":"(anonymous_57)","line":985,"loc":{"start":{"line":985,"column":13},"end":{"line":985,"column":44}}},"58":{"name":"(anonymous_58)","line":988,"loc":{"start":{"line":988,"column":18},"end":{"line":988,"column":33}}},"59":{"name":"(anonymous_59)","line":1005,"loc":{"start":{"line":1005,"column":10},"end":{"line":1005,"column":26}}},"60":{"name":"(anonymous_60)","line":1018,"loc":{"start":{"line":1018,"column":10},"end":{"line":1018,"column":32}}},"61":{"name":"(anonymous_61)","line":1020,"loc":{"start":{"line":1020,"column":34},"end":{"line":1020,"column":56}}},"62":{"name":"(anonymous_62)","line":1027,"loc":{"start":{"line":1027,"column":11},"end":{"line":1027,"column":33}}},"63":{"name":"(anonymous_63)","line":1030,"loc":{"start":{"line":1030,"column":34},"end":{"line":1030,"column":56}}},"64":{"name":"(anonymous_64)","line":1050,"loc":{"start":{"line":1050,"column":10},"end":{"line":1050,"column":32}}},"65":{"name":"(anonymous_65)","line":1052,"loc":{"start":{"line":1052,"column":41},"end":{"line":1052,"column":63}}},"66":{"name":"(anonymous_66)","line":1064,"loc":{"start":{"line":1064,"column":12},"end":{"line":1064,"column":23}}},"67":{"name":"(anonymous_67)","line":1075,"loc":{"start":{"line":1075,"column":13},"end":{"line":1075,"column":28}}},"68":{"name":"(anonymous_68)","line":1086,"loc":{"start":{"line":1086,"column":12},"end":{"line":1086,"column":31}}},"69":{"name":"(anonymous_69)","line":1100,"loc":{"start":{"line":1100,"column":13},"end":{"line":1100,"column":28}}},"70":{"name":"(anonymous_70)","line":1103,"loc":{"start":{"line":1103,"column":28},"end":{"line":1103,"column":46}}},"71":{"name":"(anonymous_71)","line":1118,"loc":{"start":{"line":1118,"column":9},"end":{"line":1118,"column":20}}},"72":{"name":"(anonymous_72)","line":1128,"loc":{"start":{"line":1128,"column":10},"end":{"line":1128,"column":21}}},"73":{"name":"(anonymous_73)","line":1132,"loc":{"start":{"line":1132,"column":16},"end":{"line":1132,"column":27}}},"74":{"name":"(anonymous_74)","line":1140,"loc":{"start":{"line":1140,"column":13},"end":{"line":1140,"column":24}}},"75":{"name":"(anonymous_75)","line":1164,"loc":{"start":{"line":1164,"column":10},"end":{"line":1164,"column":21}}},"76":{"name":"(anonymous_76)","line":1173,"loc":{"start":{"line":1173,"column":13},"end":{"line":1173,"column":24}}},"77":{"name":"(anonymous_77)","line":1177,"loc":{"start":{"line":1177,"column":14},"end":{"line":1177,"column":25}}},"78":{"name":"(anonymous_78)","line":1206,"loc":{"start":{"line":1206,"column":17},"end":{"line":1206,"column":28}}},"79":{"name":"(anonymous_79)","line":1264,"loc":{"start":{"line":1264,"column":25},"end":{"line":1264,"column":40}}},"80":{"name":"(anonymous_80)","line":1280,"loc":{"start":{"line":1280,"column":24},"end":{"line":1280,"column":39}}},"81":{"name":"(anonymous_81)","line":1300,"loc":{"start":{"line":1300,"column":8},"end":{"line":1300,"column":24}}},"82":{"name":"(anonymous_82)","line":1370,"loc":{"start":{"line":1370,"column":28},"end":{"line":1370,"column":59}}},"83":{"name":"(anonymous_83)","line":1371,"loc":{"start":{"line":1371,"column":33},"end":{"line":1371,"column":44}}},"84":{"name":"(anonymous_84)","line":1491,"loc":{"start":{"line":1491,"column":3},"end":{"line":1491,"column":20}}},"85":{"name":"(anonymous_85)","line":1492,"loc":{"start":{"line":1492,"column":31},"end":{"line":1492,"column":58}}},"86":{"name":"(anonymous_86)","line":1505,"loc":{"start":{"line":1505,"column":35},"end":{"line":1505,"column":50}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1622,"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":961,"column":0},"end":{"line":970,"column":2}},"283":{"start":{"line":962,"column":4},"end":{"line":969,"column":5}},"284":{"start":{"line":963,"column":8},"end":{"line":963,"column":34}},"285":{"start":{"line":964,"column":8},"end":{"line":964,"column":48}},"286":{"start":{"line":966,"column":8},"end":{"line":968,"column":11}},"287":{"start":{"line":967,"column":12},"end":{"line":967,"column":43}},"288":{"start":{"line":972,"column":0},"end":{"line":982,"column":2}},"289":{"start":{"line":973,"column":4},"end":{"line":973,"column":33}},"290":{"start":{"line":974,"column":4},"end":{"line":977,"column":5}},"291":{"start":{"line":975,"column":8},"end":{"line":975,"column":43}},"292":{"start":{"line":976,"column":8},"end":{"line":976,"column":33}},"293":{"start":{"line":979,"column":4},"end":{"line":979,"column":21}},"294":{"start":{"line":980,"column":4},"end":{"line":980,"column":27}},"295":{"start":{"line":981,"column":4},"end":{"line":981,"column":15}},"296":{"start":{"line":984,"column":0},"end":{"line":1209,"column":9}},"297":{"start":{"line":986,"column":8},"end":{"line":986,"column":39}},"298":{"start":{"line":988,"column":8},"end":{"line":993,"column":11}},"299":{"start":{"line":989,"column":12},"end":{"line":989,"column":53}},"300":{"start":{"line":990,"column":12},"end":{"line":992,"column":13}},"301":{"start":{"line":991,"column":16},"end":{"line":991,"column":30}},"302":{"start":{"line":995,"column":8},"end":{"line":995,"column":19}},"303":{"start":{"line":1006,"column":8},"end":{"line":1006,"column":49}},"304":{"start":{"line":1019,"column":8},"end":{"line":1019,"column":28}},"305":{"start":{"line":1020,"column":8},"end":{"line":1023,"column":11}},"306":{"start":{"line":1021,"column":12},"end":{"line":1021,"column":31}},"307":{"start":{"line":1022,"column":12},"end":{"line":1022,"column":67}},"308":{"start":{"line":1024,"column":8},"end":{"line":1024,"column":24}},"309":{"start":{"line":1028,"column":8},"end":{"line":1028,"column":28}},"310":{"start":{"line":1030,"column":8},"end":{"line":1037,"column":11}},"311":{"start":{"line":1031,"column":12},"end":{"line":1031,"column":56}},"312":{"start":{"line":1032,"column":12},"end":{"line":1034,"column":13}},"313":{"start":{"line":1033,"column":16},"end":{"line":1033,"column":55}},"314":{"start":{"line":1036,"column":12},"end":{"line":1036,"column":75}},"315":{"start":{"line":1038,"column":8},"end":{"line":1038,"column":24}},"316":{"start":{"line":1051,"column":8},"end":{"line":1051,"column":28}},"317":{"start":{"line":1052,"column":8},"end":{"line":1056,"column":11}},"318":{"start":{"line":1053,"column":12},"end":{"line":1053,"column":31}},"319":{"start":{"line":1054,"column":12},"end":{"line":1054,"column":38}},"320":{"start":{"line":1055,"column":12},"end":{"line":1055,"column":59}},"321":{"start":{"line":1065,"column":8},"end":{"line":1065,"column":50}},"322":{"start":{"line":1076,"column":8},"end":{"line":1076,"column":69}},"323":{"start":{"line":1087,"column":8},"end":{"line":1087,"column":63}},"324":{"start":{"line":1101,"column":8},"end":{"line":1101,"column":19}},"325":{"start":{"line":1102,"column":8},"end":{"line":1102,"column":23}},"326":{"start":{"line":1103,"column":8},"end":{"line":1107,"column":11}},"327":{"start":{"line":1104,"column":12},"end":{"line":1106,"column":13}},"328":{"start":{"line":1105,"column":16},"end":{"line":1105,"column":33}},"329":{"start":{"line":1109,"column":8},"end":{"line":1109,"column":28}},"330":{"start":{"line":1119,"column":8},"end":{"line":1119,"column":34}},"331":{"start":{"line":1129,"column":8},"end":{"line":1129,"column":31}},"332":{"start":{"line":1141,"column":8},"end":{"line":1144,"column":35}},"333":{"start":{"line":1146,"column":8},"end":{"line":1154,"column":9}},"334":{"start":{"line":1147,"column":12},"end":{"line":1151,"column":13}},"335":{"start":{"line":1148,"column":16},"end":{"line":1150,"column":17}},"336":{"start":{"line":1149,"column":20},"end":{"line":1149,"column":50}},"337":{"start":{"line":1153,"column":12},"end":{"line":1153,"column":56}},"338":{"start":{"line":1156,"column":8},"end":{"line":1156,"column":20}},"339":{"start":{"line":1165,"column":8},"end":{"line":1165,"column":34}},"340":{"start":{"line":1174,"column":8},"end":{"line":1174,"column":38}},"341":{"start":{"line":1178,"column":8},"end":{"line":1181,"column":17}},"342":{"start":{"line":1183,"column":8},"end":{"line":1197,"column":9}},"343":{"start":{"line":1184,"column":12},"end":{"line":1184,"column":28}},"344":{"start":{"line":1185,"column":12},"end":{"line":1185,"column":35}},"345":{"start":{"line":1186,"column":12},"end":{"line":1188,"column":13}},"346":{"start":{"line":1187,"column":16},"end":{"line":1187,"column":37}},"347":{"start":{"line":1190,"column":12},"end":{"line":1192,"column":13}},"348":{"start":{"line":1191,"column":16},"end":{"line":1191,"column":62}},"349":{"start":{"line":1194,"column":12},"end":{"line":1196,"column":13}},"350":{"start":{"line":1195,"column":16},"end":{"line":1195,"column":57}},"351":{"start":{"line":1198,"column":8},"end":{"line":1198,"column":31}},"352":{"start":{"line":1207,"column":8},"end":{"line":1207,"column":27}},"353":{"start":{"line":1211,"column":0},"end":{"line":1255,"column":3}},"354":{"start":{"line":1264,"column":0},"end":{"line":1296,"column":2}},"355":{"start":{"line":1265,"column":4},"end":{"line":1270,"column":12}},"356":{"start":{"line":1272,"column":4},"end":{"line":1278,"column":5}},"357":{"start":{"line":1273,"column":8},"end":{"line":1273,"column":74}},"358":{"start":{"line":1274,"column":8},"end":{"line":1274,"column":34}},"359":{"start":{"line":1275,"column":8},"end":{"line":1277,"column":9}},"360":{"start":{"line":1276,"column":12},"end":{"line":1276,"column":30}},"361":{"start":{"line":1280,"column":4},"end":{"line":1293,"column":7}},"362":{"start":{"line":1281,"column":8},"end":{"line":1281,"column":49}},"363":{"start":{"line":1283,"column":8},"end":{"line":1285,"column":9}},"364":{"start":{"line":1284,"column":12},"end":{"line":1284,"column":37}},"365":{"start":{"line":1287,"column":8},"end":{"line":1287,"column":34}},"366":{"start":{"line":1288,"column":8},"end":{"line":1290,"column":9}},"367":{"start":{"line":1289,"column":12},"end":{"line":1289,"column":49}},"368":{"start":{"line":1292,"column":8},"end":{"line":1292,"column":22}},"369":{"start":{"line":1295,"column":4},"end":{"line":1295,"column":43}},"370":{"start":{"line":1298,"column":0},"end":{"line":1298,"column":22}},"371":{"start":{"line":1300,"column":0},"end":{"line":1302,"column":2}},"372":{"start":{"line":1301,"column":4},"end":{"line":1301,"column":31}},"373":{"start":{"line":1304,"column":0},"end":{"line":1304,"column":19}},"374":{"start":{"line":1310,"column":0},"end":{"line":1367,"column":6}},"375":{"start":{"line":1370,"column":0},"end":{"line":1391,"column":3}},"376":{"start":{"line":1371,"column":4},"end":{"line":1390,"column":6}},"377":{"start":{"line":1372,"column":8},"end":{"line":1375,"column":16}},"378":{"start":{"line":1377,"column":8},"end":{"line":1379,"column":9}},"379":{"start":{"line":1378,"column":12},"end":{"line":1378,"column":54}},"380":{"start":{"line":1381,"column":8},"end":{"line":1381,"column":56}},"381":{"start":{"line":1383,"column":8},"end":{"line":1387,"column":9}},"382":{"start":{"line":1384,"column":12},"end":{"line":1384,"column":29}},"383":{"start":{"line":1386,"column":12},"end":{"line":1386,"column":39}},"384":{"start":{"line":1389,"column":8},"end":{"line":1389,"column":19}},"385":{"start":{"line":1397,"column":0},"end":{"line":1496,"column":3}},"386":{"start":{"line":1492,"column":4},"end":{"line":1495,"column":6}},"387":{"start":{"line":1493,"column":8},"end":{"line":1493,"column":56}},"388":{"start":{"line":1494,"column":8},"end":{"line":1494,"column":19}},"389":{"start":{"line":1505,"column":0},"end":{"line":1512,"column":2}},"390":{"start":{"line":1506,"column":4},"end":{"line":1506,"column":26}},"391":{"start":{"line":1507,"column":4},"end":{"line":1509,"column":5}},"392":{"start":{"line":1508,"column":8},"end":{"line":1508,"column":38}},"393":{"start":{"line":1511,"column":4},"end":{"line":1511,"column":16}},"394":{"start":{"line":1514,"column":0},"end":{"line":1564,"column":3}},"395":{"start":{"line":1566,"column":0},"end":{"line":1619,"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":962,"type":"if","locations":[{"start":{"line":962,"column":4},"end":{"line":962,"column":4}},{"start":{"line":962,"column":4},"end":{"line":962,"column":4}}]},"130":{"line":963,"type":"binary-expr","locations":[{"start":{"line":963,"column":18},"end":{"line":963,"column":25}},{"start":{"line":963,"column":29},"end":{"line":963,"column":33}}]},"131":{"line":974,"type":"if","locations":[{"start":{"line":974,"column":4},"end":{"line":974,"column":4}},{"start":{"line":974,"column":4},"end":{"line":974,"column":4}}]},"132":{"line":986,"type":"cond-expr","locations":[{"start":{"line":986,"column":29},"end":{"line":986,"column":31}},{"start":{"line":986,"column":34},"end":{"line":986,"column":38}}]},"133":{"line":990,"type":"if","locations":[{"start":{"line":990,"column":12},"end":{"line":990,"column":12}},{"start":{"line":990,"column":12},"end":{"line":990,"column":12}}]},"134":{"line":1006,"type":"binary-expr","locations":[{"start":{"line":1006,"column":22},"end":{"line":1006,"column":33}},{"start":{"line":1006,"column":37},"end":{"line":1006,"column":39}}]},"135":{"line":1022,"type":"binary-expr","locations":[{"start":{"line":1022,"column":27},"end":{"line":1022,"column":34}},{"start":{"line":1022,"column":38},"end":{"line":1022,"column":42}}]},"136":{"line":1032,"type":"if","locations":[{"start":{"line":1032,"column":12},"end":{"line":1032,"column":12}},{"start":{"line":1032,"column":12},"end":{"line":1032,"column":12}}]},"137":{"line":1036,"type":"binary-expr","locations":[{"start":{"line":1036,"column":27},"end":{"line":1036,"column":34}},{"start":{"line":1036,"column":38},"end":{"line":1036,"column":46}}]},"138":{"line":1054,"type":"binary-expr","locations":[{"start":{"line":1054,"column":22},"end":{"line":1054,"column":29}},{"start":{"line":1054,"column":33},"end":{"line":1054,"column":37}}]},"139":{"line":1101,"type":"binary-expr","locations":[{"start":{"line":1101,"column":12},"end":{"line":1101,"column":13}},{"start":{"line":1101,"column":17},"end":{"line":1101,"column":18}}]},"140":{"line":1104,"type":"if","locations":[{"start":{"line":1104,"column":12},"end":{"line":1104,"column":12}},{"start":{"line":1104,"column":12},"end":{"line":1104,"column":12}}]},"141":{"line":1146,"type":"if","locations":[{"start":{"line":1146,"column":8},"end":{"line":1146,"column":8}},{"start":{"line":1146,"column":8},"end":{"line":1146,"column":8}}]},"142":{"line":1147,"type":"if","locations":[{"start":{"line":1147,"column":12},"end":{"line":1147,"column":12}},{"start":{"line":1147,"column":12},"end":{"line":1147,"column":12}}]},"143":{"line":1148,"type":"if","locations":[{"start":{"line":1148,"column":16},"end":{"line":1148,"column":16}},{"start":{"line":1148,"column":16},"end":{"line":1148,"column":16}}]},"144":{"line":1148,"type":"binary-expr","locations":[{"start":{"line":1148,"column":20},"end":{"line":1148,"column":25}},{"start":{"line":1148,"column":29},"end":{"line":1148,"column":37}},{"start":{"line":1148,"column":41},"end":{"line":1148,"column":63}}]},"145":{"line":1183,"type":"if","locations":[{"start":{"line":1183,"column":8},"end":{"line":1183,"column":8}},{"start":{"line":1183,"column":8},"end":{"line":1183,"column":8}}]},"146":{"line":1183,"type":"binary-expr","locations":[{"start":{"line":1183,"column":12},"end":{"line":1183,"column":17}},{"start":{"line":1183,"column":21},"end":{"line":1183,"column":29}}]},"147":{"line":1186,"type":"if","locations":[{"start":{"line":1186,"column":12},"end":{"line":1186,"column":12}},{"start":{"line":1186,"column":12},"end":{"line":1186,"column":12}}]},"148":{"line":1190,"type":"if","locations":[{"start":{"line":1190,"column":12},"end":{"line":1190,"column":12}},{"start":{"line":1190,"column":12},"end":{"line":1190,"column":12}}]},"149":{"line":1194,"type":"if","locations":[{"start":{"line":1194,"column":12},"end":{"line":1194,"column":12}},{"start":{"line":1194,"column":12},"end":{"line":1194,"column":12}}]},"150":{"line":1198,"type":"binary-expr","locations":[{"start":{"line":1198,"column":15},"end":{"line":1198,"column":18}},{"start":{"line":1198,"column":22},"end":{"line":1198,"column":30}}]},"151":{"line":1272,"type":"if","locations":[{"start":{"line":1272,"column":4},"end":{"line":1272,"column":4}},{"start":{"line":1272,"column":4},"end":{"line":1272,"column":4}}]},"152":{"line":1273,"type":"binary-expr","locations":[{"start":{"line":1273,"column":19},"end":{"line":1273,"column":52}},{"start":{"line":1273,"column":56},"end":{"line":1273,"column":73}}]},"153":{"line":1275,"type":"if","locations":[{"start":{"line":1275,"column":8},"end":{"line":1275,"column":8}},{"start":{"line":1275,"column":8},"end":{"line":1275,"column":8}}]},"154":{"line":1275,"type":"binary-expr","locations":[{"start":{"line":1275,"column":12},"end":{"line":1275,"column":15}},{"start":{"line":1275,"column":19},"end":{"line":1275,"column":31}}]},"155":{"line":1283,"type":"if","locations":[{"start":{"line":1283,"column":8},"end":{"line":1283,"column":8}},{"start":{"line":1283,"column":8},"end":{"line":1283,"column":8}}]},"156":{"line":1288,"type":"if","locations":[{"start":{"line":1288,"column":8},"end":{"line":1288,"column":8}},{"start":{"line":1288,"column":8},"end":{"line":1288,"column":8}}]},"157":{"line":1295,"type":"cond-expr","locations":[{"start":{"line":1295,"column":26},"end":{"line":1295,"column":36}},{"start":{"line":1295,"column":39},"end":{"line":1295,"column":42}}]},"158":{"line":1378,"type":"binary-expr","locations":[{"start":{"line":1378,"column":22},"end":{"line":1378,"column":31}},{"start":{"line":1378,"column":35},"end":{"line":1378,"column":45}},{"start":{"line":1378,"column":49},"end":{"line":1378,"column":52}}]},"159":{"line":1383,"type":"if","locations":[{"start":{"line":1383,"column":8},"end":{"line":1383,"column":8}},{"start":{"line":1383,"column":8},"end":{"line":1383,"column":8}}]},"160":{"line":1507,"type":"if","locations":[{"start":{"line":1507,"column":4},"end":{"line":1507,"column":4}},{"start":{"line":1507,"column":4},"end":{"line":1507,"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 {"," }","};","","/**"," * Import the named method, or methods from the host onto NodeList."," *"," * @method importMethod"," * @static"," * @param {Object} host The object containing the methods to copy. Typically a prototype."," * @param {String|String[]} name The name, or an Array of names of the methods to import onto NodeList."," * @param {String} [altName] An alternative name to use for the method added to NodeList, which may differ from the name"," * of the original host object. Has no effect if name is an array of method names."," */","NodeList.importMethod = function(host, name, altName) {"," if (typeof name === 'string') {"," altName = altName || name;"," NodeList.addMethod(altName, 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},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0,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,0],"48":[0,0],"49":[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,0],"83":[0,0],"84":[0,0,0],"85":[0,0],"86":[0,0],"87":[0,0],"88":[0,0],"89":[0,0],"90":[0,0],"91":[0,0],"92":[0,0],"93":[0,0],"94":[0,0],"95":[0,0],"96":[0,0],"97":[0,0],"98":[0,0],"99":[0,0],"100":[0,0],"101":[0,0],"102":[0,0],"103":[0,0,0,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],"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,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,0],"155":[0,0],"156":[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":313,"loc":{"start":{"line":313,"column":24},"end":{"line":313,"column":44}}},"15":{"name":"(anonymous_15)","line":337,"loc":{"start":{"line":337,"column":24},"end":{"line":337,"column":39}}},"16":{"name":"(anonymous_16)","line":358,"loc":{"start":{"line":358,"column":14},"end":{"line":358,"column":25}}},"17":{"name":"(anonymous_17)","line":392,"loc":{"start":{"line":392,"column":9},"end":{"line":392,"column":24}}},"18":{"name":"(anonymous_18)","line":416,"loc":{"start":{"line":416,"column":10},"end":{"line":416,"column":25}}},"19":{"name":"(anonymous_19)","line":442,"loc":{"start":{"line":442,"column":9},"end":{"line":442,"column":29}}},"20":{"name":"(anonymous_20)","line":466,"loc":{"start":{"line":466,"column":14},"end":{"line":466,"column":32}}},"21":{"name":"(anonymous_21)","line":470,"loc":{"start":{"line":470,"column":35},"end":{"line":470,"column":50}}},"22":{"name":"(anonymous_22)","line":484,"loc":{"start":{"line":484,"column":14},"end":{"line":484,"column":30}}},"23":{"name":"(anonymous_23)","line":489,"loc":{"start":{"line":489,"column":32},"end":{"line":489,"column":47}}},"24":{"name":"(anonymous_24)","line":504,"loc":{"start":{"line":504,"column":15},"end":{"line":504,"column":33}}},"25":{"name":"(anonymous_25)","line":520,"loc":{"start":{"line":520,"column":11},"end":{"line":520,"column":25}}},"26":{"name":"(anonymous_26)","line":533,"loc":{"start":{"line":533,"column":13},"end":{"line":533,"column":26}}},"27":{"name":"(anonymous_27)","line":557,"loc":{"start":{"line":557,"column":14},"end":{"line":557,"column":45}}},"28":{"name":"(anonymous_28)","line":575,"loc":{"start":{"line":575,"column":15},"end":{"line":575,"column":46}}},"29":{"name":"(anonymous_29)","line":593,"loc":{"start":{"line":593,"column":14},"end":{"line":593,"column":32}}},"30":{"name":"(anonymous_30)","line":607,"loc":{"start":{"line":607,"column":10},"end":{"line":607,"column":28}}},"31":{"name":"(anonymous_31)","line":619,"loc":{"start":{"line":619,"column":14},"end":{"line":619,"column":27}}},"32":{"name":"(anonymous_32)","line":633,"loc":{"start":{"line":633,"column":9},"end":{"line":633,"column":28}}},"33":{"name":"(anonymous_33)","line":644,"loc":{"start":{"line":644,"column":9},"end":{"line":644,"column":28}}},"34":{"name":"(anonymous_34)","line":664,"loc":{"start":{"line":664,"column":10},"end":{"line":664,"column":29}}},"35":{"name":"(anonymous_35)","line":677,"loc":{"start":{"line":677,"column":12},"end":{"line":677,"column":30}}},"36":{"name":"(anonymous_36)","line":700,"loc":{"start":{"line":700,"column":13},"end":{"line":700,"column":31}}},"37":{"name":"(anonymous_37)","line":716,"loc":{"start":{"line":716,"column":18},"end":{"line":716,"column":42}}},"38":{"name":"(anonymous_38)","line":733,"loc":{"start":{"line":733,"column":13},"end":{"line":733,"column":33}}},"39":{"name":"(anonymous_39)","line":746,"loc":{"start":{"line":746,"column":43},"end":{"line":746,"column":58}}},"40":{"name":"(anonymous_40)","line":772,"loc":{"start":{"line":772,"column":12},"end":{"line":772,"column":44}}},"41":{"name":"(anonymous_41)","line":796,"loc":{"start":{"line":796,"column":8},"end":{"line":796,"column":28}}},"42":{"name":"(anonymous_42)","line":799,"loc":{"start":{"line":799,"column":8},"end":{"line":799,"column":28}}},"43":{"name":"(anonymous_43)","line":817,"loc":{"start":{"line":817,"column":15},"end":{"line":817,"column":32}}},"44":{"name":"(anonymous_44)","line":825,"loc":{"start":{"line":825,"column":16},"end":{"line":825,"column":27}}},"45":{"name":"(anonymous_45)","line":834,"loc":{"start":{"line":834,"column":11},"end":{"line":834,"column":22}}},"46":{"name":"(anonymous_46)","line":844,"loc":{"start":{"line":844,"column":16},"end":{"line":844,"column":27}}},"47":{"name":"(anonymous_47)","line":867,"loc":{"start":{"line":867,"column":15},"end":{"line":867,"column":31}}},"48":{"name":"(anonymous_48)","line":879,"loc":{"start":{"line":879,"column":32},"end":{"line":879,"column":47}}},"49":{"name":"(anonymous_49)","line":908,"loc":{"start":{"line":908,"column":23},"end":{"line":908,"column":42}}},"50":{"name":"(anonymous_50)","line":912,"loc":{"start":{"line":912,"column":16},"end":{"line":912,"column":48}}},"51":{"name":"(anonymous_51)","line":920,"loc":{"start":{"line":920,"column":21},"end":{"line":920,"column":49}}},"52":{"name":"(anonymous_52)","line":922,"loc":{"start":{"line":922,"column":35},"end":{"line":922,"column":46}}},"53":{"name":"(anonymous_53)","line":926,"loc":{"start":{"line":926,"column":38},"end":{"line":926,"column":53}}},"54":{"name":"(anonymous_54)","line":958,"loc":{"start":{"line":958,"column":24},"end":{"line":958,"column":54}}},"55":{"name":"(anonymous_55)","line":963,"loc":{"start":{"line":963,"column":27},"end":{"line":963,"column":39}}},"56":{"name":"(anonymous_56)","line":969,"loc":{"start":{"line":969,"column":24},"end":{"line":969,"column":39}}},"57":{"name":"(anonymous_57)","line":982,"loc":{"start":{"line":982,"column":13},"end":{"line":982,"column":44}}},"58":{"name":"(anonymous_58)","line":985,"loc":{"start":{"line":985,"column":18},"end":{"line":985,"column":33}}},"59":{"name":"(anonymous_59)","line":1002,"loc":{"start":{"line":1002,"column":10},"end":{"line":1002,"column":26}}},"60":{"name":"(anonymous_60)","line":1015,"loc":{"start":{"line":1015,"column":10},"end":{"line":1015,"column":32}}},"61":{"name":"(anonymous_61)","line":1017,"loc":{"start":{"line":1017,"column":34},"end":{"line":1017,"column":56}}},"62":{"name":"(anonymous_62)","line":1024,"loc":{"start":{"line":1024,"column":11},"end":{"line":1024,"column":33}}},"63":{"name":"(anonymous_63)","line":1027,"loc":{"start":{"line":1027,"column":34},"end":{"line":1027,"column":56}}},"64":{"name":"(anonymous_64)","line":1047,"loc":{"start":{"line":1047,"column":10},"end":{"line":1047,"column":32}}},"65":{"name":"(anonymous_65)","line":1049,"loc":{"start":{"line":1049,"column":41},"end":{"line":1049,"column":63}}},"66":{"name":"(anonymous_66)","line":1061,"loc":{"start":{"line":1061,"column":12},"end":{"line":1061,"column":23}}},"67":{"name":"(anonymous_67)","line":1072,"loc":{"start":{"line":1072,"column":13},"end":{"line":1072,"column":28}}},"68":{"name":"(anonymous_68)","line":1083,"loc":{"start":{"line":1083,"column":12},"end":{"line":1083,"column":31}}},"69":{"name":"(anonymous_69)","line":1097,"loc":{"start":{"line":1097,"column":13},"end":{"line":1097,"column":28}}},"70":{"name":"(anonymous_70)","line":1100,"loc":{"start":{"line":1100,"column":28},"end":{"line":1100,"column":46}}},"71":{"name":"(anonymous_71)","line":1115,"loc":{"start":{"line":1115,"column":9},"end":{"line":1115,"column":20}}},"72":{"name":"(anonymous_72)","line":1125,"loc":{"start":{"line":1125,"column":10},"end":{"line":1125,"column":21}}},"73":{"name":"(anonymous_73)","line":1129,"loc":{"start":{"line":1129,"column":16},"end":{"line":1129,"column":27}}},"74":{"name":"(anonymous_74)","line":1137,"loc":{"start":{"line":1137,"column":13},"end":{"line":1137,"column":24}}},"75":{"name":"(anonymous_75)","line":1161,"loc":{"start":{"line":1161,"column":10},"end":{"line":1161,"column":21}}},"76":{"name":"(anonymous_76)","line":1170,"loc":{"start":{"line":1170,"column":13},"end":{"line":1170,"column":24}}},"77":{"name":"(anonymous_77)","line":1174,"loc":{"start":{"line":1174,"column":14},"end":{"line":1174,"column":25}}},"78":{"name":"(anonymous_78)","line":1203,"loc":{"start":{"line":1203,"column":17},"end":{"line":1203,"column":28}}},"79":{"name":"(anonymous_79)","line":1261,"loc":{"start":{"line":1261,"column":25},"end":{"line":1261,"column":40}}},"80":{"name":"(anonymous_80)","line":1277,"loc":{"start":{"line":1277,"column":24},"end":{"line":1277,"column":39}}},"81":{"name":"(anonymous_81)","line":1297,"loc":{"start":{"line":1297,"column":8},"end":{"line":1297,"column":24}}},"82":{"name":"(anonymous_82)","line":1367,"loc":{"start":{"line":1367,"column":28},"end":{"line":1367,"column":59}}},"83":{"name":"(anonymous_83)","line":1368,"loc":{"start":{"line":1368,"column":33},"end":{"line":1368,"column":44}}},"84":{"name":"(anonymous_84)","line":1488,"loc":{"start":{"line":1488,"column":3},"end":{"line":1488,"column":20}}},"85":{"name":"(anonymous_85)","line":1489,"loc":{"start":{"line":1489,"column":31},"end":{"line":1489,"column":58}}},"86":{"name":"(anonymous_86)","line":1502,"loc":{"start":{"line":1502,"column":35},"end":{"line":1502,"column":50}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1619,"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":34}},"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":302,"column":2}},"78":{"start":{"line":276,"column":4},"end":{"line":277,"column":19}},"79":{"start":{"line":279,"column":4},"end":{"line":299,"column":5}},"80":{"start":{"line":280,"column":8},"end":{"line":287,"column":9}},"81":{"start":{"line":281,"column":12},"end":{"line":281,"column":44}},"82":{"start":{"line":282,"column":12},"end":{"line":284,"column":13}},"83":{"start":{"line":283,"column":16},"end":{"line":283,"column":28}},"84":{"start":{"line":285,"column":15},"end":{"line":287,"column":9}},"85":{"start":{"line":286,"column":12},"end":{"line":286,"column":24}},"86":{"start":{"line":289,"column":8},"end":{"line":298,"column":9}},"87":{"start":{"line":290,"column":12},"end":{"line":290,"column":51}},"88":{"start":{"line":291,"column":12},"end":{"line":291,"column":58}},"89":{"start":{"line":292,"column":12},"end":{"line":297,"column":13}},"90":{"start":{"line":293,"column":16},"end":{"line":293,"column":44}},"91":{"start":{"line":294,"column":16},"end":{"line":296,"column":17}},"92":{"start":{"line":295,"column":20},"end":{"line":295,"column":58}},"93":{"start":{"line":301,"column":4},"end":{"line":301,"column":20}},"94":{"start":{"line":313,"column":0},"end":{"line":327,"column":2}},"95":{"start":{"line":314,"column":4},"end":{"line":315,"column":16}},"96":{"start":{"line":317,"column":4},"end":{"line":324,"column":5}},"97":{"start":{"line":318,"column":8},"end":{"line":318,"column":23}},"98":{"start":{"line":319,"column":8},"end":{"line":319,"column":31}},"99":{"start":{"line":321,"column":8},"end":{"line":321,"column":43}},"100":{"start":{"line":322,"column":11},"end":{"line":324,"column":5}},"101":{"start":{"line":323,"column":8},"end":{"line":323,"column":25}},"102":{"start":{"line":326,"column":4},"end":{"line":326,"column":15}},"103":{"start":{"line":337,"column":0},"end":{"line":348,"column":2}},"104":{"start":{"line":338,"column":4},"end":{"line":339,"column":12}},"105":{"start":{"line":341,"column":4},"end":{"line":345,"column":5}},"106":{"start":{"line":342,"column":8},"end":{"line":342,"column":55}},"107":{"start":{"line":343,"column":11},"end":{"line":345,"column":5}},"108":{"start":{"line":344,"column":8},"end":{"line":344,"column":25}},"109":{"start":{"line":347,"column":4},"end":{"line":347,"column":15}},"110":{"start":{"line":350,"column":0},"end":{"line":847,"column":9}},"111":{"start":{"line":359,"column":8},"end":{"line":361,"column":33}},"112":{"start":{"line":363,"column":8},"end":{"line":379,"column":9}},"113":{"start":{"line":364,"column":12},"end":{"line":364,"column":36}},"114":{"start":{"line":365,"column":12},"end":{"line":365,"column":70}},"115":{"start":{"line":366,"column":12},"end":{"line":366,"column":91}},"116":{"start":{"line":367,"column":12},"end":{"line":367,"column":34}},"117":{"start":{"line":369,"column":12},"end":{"line":371,"column":13}},"118":{"start":{"line":370,"column":16},"end":{"line":370,"column":32}},"119":{"start":{"line":373,"column":12},"end":{"line":375,"column":13}},"120":{"start":{"line":374,"column":16},"end":{"line":374,"column":57}},"121":{"start":{"line":378,"column":12},"end":{"line":378,"column":35}},"122":{"start":{"line":380,"column":8},"end":{"line":380,"column":19}},"123":{"start":{"line":393,"column":8},"end":{"line":393,"column":16}},"124":{"start":{"line":395,"column":8},"end":{"line":399,"column":9}},"125":{"start":{"line":396,"column":12},"end":{"line":396,"column":38}},"126":{"start":{"line":398,"column":12},"end":{"line":398,"column":34}},"127":{"start":{"line":401,"column":8},"end":{"line":405,"column":9}},"128":{"start":{"line":402,"column":12},"end":{"line":402,"column":45}},"129":{"start":{"line":403,"column":15},"end":{"line":405,"column":9}},"130":{"start":{"line":404,"column":12},"end":{"line":404,"column":23}},"131":{"start":{"line":406,"column":8},"end":{"line":406,"column":19}},"132":{"start":{"line":417,"column":8},"end":{"line":418,"column":16}},"133":{"start":{"line":420,"column":8},"end":{"line":426,"column":9}},"134":{"start":{"line":421,"column":12},"end":{"line":421,"column":47}},"135":{"start":{"line":422,"column":15},"end":{"line":426,"column":9}},"136":{"start":{"line":423,"column":12},"end":{"line":423,"column":51}},"137":{"start":{"line":425,"column":12},"end":{"line":425,"column":63}},"138":{"start":{"line":428,"column":8},"end":{"line":428,"column":19}},"139":{"start":{"line":443,"column":8},"end":{"line":443,"column":44}},"140":{"start":{"line":445,"column":8},"end":{"line":455,"column":9}},"141":{"start":{"line":446,"column":12},"end":{"line":446,"column":49}},"142":{"start":{"line":448,"column":12},"end":{"line":454,"column":13}},"143":{"start":{"line":449,"column":16},"end":{"line":449,"column":56}},"144":{"start":{"line":450,"column":19},"end":{"line":454,"column":13}},"145":{"start":{"line":451,"column":16},"end":{"line":451,"column":51}},"146":{"start":{"line":453,"column":16},"end":{"line":453,"column":61}},"147":{"start":{"line":457,"column":8},"end":{"line":457,"column":20}},"148":{"start":{"line":467,"column":8},"end":{"line":473,"column":9}},"149":{"start":{"line":468,"column":12},"end":{"line":468,"column":36}},"150":{"start":{"line":470,"column":12},"end":{"line":472,"column":21}},"151":{"start":{"line":471,"column":16},"end":{"line":471,"column":31}},"152":{"start":{"line":475,"column":8},"end":{"line":475,"column":20}},"153":{"start":{"line":485,"column":8},"end":{"line":485,"column":21}},"154":{"start":{"line":486,"column":8},"end":{"line":492,"column":9}},"155":{"start":{"line":487,"column":12},"end":{"line":487,"column":34}},"156":{"start":{"line":489,"column":12},"end":{"line":491,"column":21}},"157":{"start":{"line":490,"column":16},"end":{"line":490,"column":37}},"158":{"start":{"line":494,"column":8},"end":{"line":494,"column":19}},"159":{"start":{"line":505,"column":8},"end":{"line":505,"column":30}},"160":{"start":{"line":507,"column":8},"end":{"line":509,"column":9}},"161":{"start":{"line":508,"column":12},"end":{"line":508,"column":36}},"162":{"start":{"line":510,"column":8},"end":{"line":510,"column":32}},"163":{"start":{"line":521,"column":8},"end":{"line":521,"column":30}},"164":{"start":{"line":523,"column":8},"end":{"line":528,"column":9}},"165":{"start":{"line":524,"column":12},"end":{"line":524,"column":66}},"166":{"start":{"line":525,"column":12},"end":{"line":527,"column":13}},"167":{"start":{"line":526,"column":16},"end":{"line":526,"column":65}},"168":{"start":{"line":530,"column":8},"end":{"line":530,"column":21}},"169":{"start":{"line":534,"column":8},"end":{"line":535,"column":55}},"170":{"start":{"line":536,"column":8},"end":{"line":540,"column":9}},"171":{"start":{"line":537,"column":12},"end":{"line":537,"column":29}},"172":{"start":{"line":539,"column":12},"end":{"line":539,"column":23}},"173":{"start":{"line":541,"column":8},"end":{"line":541,"column":19}},"174":{"start":{"line":559,"column":8},"end":{"line":562,"column":9}},"175":{"start":{"line":561,"column":12},"end":{"line":561,"column":30}},"176":{"start":{"line":564,"column":8},"end":{"line":564,"column":89}},"177":{"start":{"line":576,"column":8},"end":{"line":579,"column":9}},"178":{"start":{"line":578,"column":12},"end":{"line":578,"column":30}},"179":{"start":{"line":580,"column":8},"end":{"line":580,"column":90}},"180":{"start":{"line":594,"column":8},"end":{"line":594,"column":91}},"181":{"start":{"line":608,"column":8},"end":{"line":608,"column":87}},"182":{"start":{"line":620,"column":8},"end":{"line":620,"column":62}},"183":{"start":{"line":634,"column":8},"end":{"line":634,"column":67}},"184":{"start":{"line":645,"column":8},"end":{"line":645,"column":21}},"185":{"start":{"line":647,"column":8},"end":{"line":651,"column":9}},"186":{"start":{"line":648,"column":12},"end":{"line":648,"column":69}},"187":{"start":{"line":649,"column":12},"end":{"line":649,"column":39}},"188":{"start":{"line":650,"column":12},"end":{"line":650,"column":45}},"189":{"start":{"line":653,"column":8},"end":{"line":653,"column":37}},"190":{"start":{"line":665,"column":8},"end":{"line":665,"column":53}},"191":{"start":{"line":678,"column":8},"end":{"line":678,"column":30}},"192":{"start":{"line":680,"column":8},"end":{"line":682,"column":9}},"193":{"start":{"line":681,"column":12},"end":{"line":681,"column":46}},"194":{"start":{"line":684,"column":8},"end":{"line":686,"column":9}},"195":{"start":{"line":685,"column":12},"end":{"line":685,"column":27}},"196":{"start":{"line":688,"column":8},"end":{"line":688,"column":20}},"197":{"start":{"line":701,"column":8},"end":{"line":701,"column":30}},"198":{"start":{"line":702,"column":8},"end":{"line":704,"column":9}},"199":{"start":{"line":703,"column":12},"end":{"line":703,"column":45}},"200":{"start":{"line":705,"column":8},"end":{"line":705,"column":71}},"201":{"start":{"line":706,"column":8},"end":{"line":706,"column":20}},"202":{"start":{"line":717,"column":8},"end":{"line":719,"column":9}},"203":{"start":{"line":718,"column":12},"end":{"line":718,"column":38}},"204":{"start":{"line":721,"column":8},"end":{"line":721,"column":99}},"205":{"start":{"line":734,"column":8},"end":{"line":735,"column":21}},"206":{"start":{"line":737,"column":8},"end":{"line":737,"column":21}},"207":{"start":{"line":739,"column":8},"end":{"line":741,"column":9}},"208":{"start":{"line":740,"column":12},"end":{"line":740,"column":26}},"209":{"start":{"line":743,"column":8},"end":{"line":743,"column":25}},"210":{"start":{"line":745,"column":8},"end":{"line":754,"column":9}},"211":{"start":{"line":746,"column":12},"end":{"line":753,"column":15}},"212":{"start":{"line":747,"column":16},"end":{"line":747,"column":61}},"213":{"start":{"line":748,"column":16},"end":{"line":752,"column":17}},"214":{"start":{"line":749,"column":19},"end":{"line":749,"column":38}},"215":{"start":{"line":751,"column":20},"end":{"line":751,"column":47}},"216":{"start":{"line":756,"column":8},"end":{"line":756,"column":45}},"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":773,"column":8},"end":{"line":774,"column":16}},"220":{"start":{"line":776,"column":8},"end":{"line":778,"column":9}},"221":{"start":{"line":777,"column":12},"end":{"line":777,"column":24}},"222":{"start":{"line":780,"column":8},"end":{"line":782,"column":9}},"223":{"start":{"line":781,"column":12},"end":{"line":781,"column":24}},"224":{"start":{"line":784,"column":8},"end":{"line":784,"column":42}},"225":{"start":{"line":785,"column":8},"end":{"line":785,"column":42}},"226":{"start":{"line":797,"column":12},"end":{"line":797,"column":62}},"227":{"start":{"line":800,"column":12},"end":{"line":800,"column":53}},"228":{"start":{"line":801,"column":12},"end":{"line":803,"column":52}},"229":{"start":{"line":805,"column":12},"end":{"line":812,"column":13}},"230":{"start":{"line":806,"column":16},"end":{"line":806,"column":53}},"231":{"start":{"line":807,"column":19},"end":{"line":812,"column":13}},"232":{"start":{"line":808,"column":16},"end":{"line":808,"column":53}},"233":{"start":{"line":810,"column":16},"end":{"line":810,"column":62}},"234":{"start":{"line":811,"column":16},"end":{"line":811,"column":57}},"235":{"start":{"line":813,"column":12},"end":{"line":813,"column":24}},"236":{"start":{"line":818,"column":8},"end":{"line":818,"column":30}},"237":{"start":{"line":819,"column":8},"end":{"line":822,"column":65}},"238":{"start":{"line":826,"column":8},"end":{"line":826,"column":45}},"239":{"start":{"line":835,"column":8},"end":{"line":835,"column":54}},"240":{"start":{"line":836,"column":8},"end":{"line":836,"column":20}},"241":{"start":{"line":845,"column":8},"end":{"line":845,"column":26}},"242":{"start":{"line":849,"column":0},"end":{"line":849,"column":16}},"243":{"start":{"line":850,"column":0},"end":{"line":850,"column":19}},"244":{"start":{"line":867,"column":0},"end":{"line":896,"column":2}},"245":{"start":{"line":868,"column":4},"end":{"line":868,"column":17}},"246":{"start":{"line":870,"column":4},"end":{"line":888,"column":5}},"247":{"start":{"line":871,"column":8},"end":{"line":887,"column":9}},"248":{"start":{"line":872,"column":12},"end":{"line":872,"column":32}},"249":{"start":{"line":873,"column":12},"end":{"line":873,"column":44}},"250":{"start":{"line":874,"column":15},"end":{"line":887,"column":9}},"251":{"start":{"line":875,"column":12},"end":{"line":875,"column":28}},"252":{"start":{"line":876,"column":15},"end":{"line":887,"column":9}},"253":{"start":{"line":877,"column":12},"end":{"line":877,"column":34}},"254":{"start":{"line":878,"column":15},"end":{"line":887,"column":9}},"255":{"start":{"line":879,"column":12},"end":{"line":883,"column":15}},"256":{"start":{"line":880,"column":16},"end":{"line":882,"column":17}},"257":{"start":{"line":881,"column":20},"end":{"line":881,"column":41}},"258":{"start":{"line":884,"column":12},"end":{"line":884,"column":24}},"259":{"start":{"line":886,"column":12},"end":{"line":886,"column":44}},"260":{"start":{"line":895,"column":4},"end":{"line":895,"column":30}},"261":{"start":{"line":898,"column":0},"end":{"line":898,"column":27}},"262":{"start":{"line":908,"column":0},"end":{"line":910,"column":2}},"263":{"start":{"line":909,"column":4},"end":{"line":909,"column":70}},"264":{"start":{"line":912,"column":0},"end":{"line":918,"column":2}},"265":{"start":{"line":913,"column":4},"end":{"line":913,"column":32}},"266":{"start":{"line":914,"column":4},"end":{"line":917,"column":5}},"267":{"start":{"line":915,"column":8},"end":{"line":915,"column":53}},"268":{"start":{"line":920,"column":0},"end":{"line":946,"column":2}},"269":{"start":{"line":921,"column":4},"end":{"line":945,"column":5}},"270":{"start":{"line":922,"column":8},"end":{"line":943,"column":10}},"271":{"start":{"line":923,"column":12},"end":{"line":924,"column":33}},"272":{"start":{"line":926,"column":12},"end":{"line":939,"column":15}},"273":{"start":{"line":927,"column":16},"end":{"line":929,"column":27}},"274":{"start":{"line":931,"column":16},"end":{"line":933,"column":17}},"275":{"start":{"line":932,"column":20},"end":{"line":932,"column":59}},"276":{"start":{"line":934,"column":16},"end":{"line":934,"column":42}},"277":{"start":{"line":935,"column":16},"end":{"line":935,"column":45}},"278":{"start":{"line":936,"column":16},"end":{"line":938,"column":17}},"279":{"start":{"line":937,"column":20},"end":{"line":937,"column":45}},"280":{"start":{"line":942,"column":12},"end":{"line":942,"column":43}},"281":{"start":{"line":958,"column":0},"end":{"line":967,"column":2}},"282":{"start":{"line":959,"column":4},"end":{"line":966,"column":5}},"283":{"start":{"line":960,"column":8},"end":{"line":960,"column":34}},"284":{"start":{"line":961,"column":8},"end":{"line":961,"column":48}},"285":{"start":{"line":963,"column":8},"end":{"line":965,"column":11}},"286":{"start":{"line":964,"column":12},"end":{"line":964,"column":43}},"287":{"start":{"line":969,"column":0},"end":{"line":979,"column":2}},"288":{"start":{"line":970,"column":4},"end":{"line":970,"column":33}},"289":{"start":{"line":971,"column":4},"end":{"line":974,"column":5}},"290":{"start":{"line":972,"column":8},"end":{"line":972,"column":43}},"291":{"start":{"line":973,"column":8},"end":{"line":973,"column":33}},"292":{"start":{"line":976,"column":4},"end":{"line":976,"column":21}},"293":{"start":{"line":977,"column":4},"end":{"line":977,"column":27}},"294":{"start":{"line":978,"column":4},"end":{"line":978,"column":15}},"295":{"start":{"line":981,"column":0},"end":{"line":1206,"column":9}},"296":{"start":{"line":983,"column":8},"end":{"line":983,"column":39}},"297":{"start":{"line":985,"column":8},"end":{"line":990,"column":11}},"298":{"start":{"line":986,"column":12},"end":{"line":986,"column":53}},"299":{"start":{"line":987,"column":12},"end":{"line":989,"column":13}},"300":{"start":{"line":988,"column":16},"end":{"line":988,"column":30}},"301":{"start":{"line":992,"column":8},"end":{"line":992,"column":19}},"302":{"start":{"line":1003,"column":8},"end":{"line":1003,"column":49}},"303":{"start":{"line":1016,"column":8},"end":{"line":1016,"column":28}},"304":{"start":{"line":1017,"column":8},"end":{"line":1020,"column":11}},"305":{"start":{"line":1018,"column":12},"end":{"line":1018,"column":31}},"306":{"start":{"line":1019,"column":12},"end":{"line":1019,"column":67}},"307":{"start":{"line":1021,"column":8},"end":{"line":1021,"column":24}},"308":{"start":{"line":1025,"column":8},"end":{"line":1025,"column":28}},"309":{"start":{"line":1027,"column":8},"end":{"line":1034,"column":11}},"310":{"start":{"line":1028,"column":12},"end":{"line":1028,"column":55}},"311":{"start":{"line":1029,"column":12},"end":{"line":1031,"column":13}},"312":{"start":{"line":1030,"column":16},"end":{"line":1030,"column":55}},"313":{"start":{"line":1033,"column":12},"end":{"line":1033,"column":75}},"314":{"start":{"line":1035,"column":8},"end":{"line":1035,"column":24}},"315":{"start":{"line":1048,"column":8},"end":{"line":1048,"column":28}},"316":{"start":{"line":1049,"column":8},"end":{"line":1053,"column":11}},"317":{"start":{"line":1050,"column":12},"end":{"line":1050,"column":31}},"318":{"start":{"line":1051,"column":12},"end":{"line":1051,"column":38}},"319":{"start":{"line":1052,"column":12},"end":{"line":1052,"column":59}},"320":{"start":{"line":1062,"column":8},"end":{"line":1062,"column":50}},"321":{"start":{"line":1073,"column":8},"end":{"line":1073,"column":69}},"322":{"start":{"line":1084,"column":8},"end":{"line":1084,"column":63}},"323":{"start":{"line":1098,"column":8},"end":{"line":1098,"column":19}},"324":{"start":{"line":1099,"column":8},"end":{"line":1099,"column":23}},"325":{"start":{"line":1100,"column":8},"end":{"line":1104,"column":11}},"326":{"start":{"line":1101,"column":12},"end":{"line":1103,"column":13}},"327":{"start":{"line":1102,"column":16},"end":{"line":1102,"column":33}},"328":{"start":{"line":1106,"column":8},"end":{"line":1106,"column":28}},"329":{"start":{"line":1116,"column":8},"end":{"line":1116,"column":34}},"330":{"start":{"line":1126,"column":8},"end":{"line":1126,"column":31}},"331":{"start":{"line":1138,"column":8},"end":{"line":1141,"column":35}},"332":{"start":{"line":1143,"column":8},"end":{"line":1151,"column":9}},"333":{"start":{"line":1144,"column":12},"end":{"line":1148,"column":13}},"334":{"start":{"line":1145,"column":16},"end":{"line":1147,"column":17}},"335":{"start":{"line":1146,"column":20},"end":{"line":1146,"column":50}},"336":{"start":{"line":1150,"column":12},"end":{"line":1150,"column":56}},"337":{"start":{"line":1153,"column":8},"end":{"line":1153,"column":20}},"338":{"start":{"line":1162,"column":8},"end":{"line":1162,"column":34}},"339":{"start":{"line":1171,"column":8},"end":{"line":1171,"column":38}},"340":{"start":{"line":1175,"column":8},"end":{"line":1178,"column":17}},"341":{"start":{"line":1180,"column":8},"end":{"line":1194,"column":9}},"342":{"start":{"line":1181,"column":12},"end":{"line":1181,"column":28}},"343":{"start":{"line":1182,"column":12},"end":{"line":1182,"column":35}},"344":{"start":{"line":1183,"column":12},"end":{"line":1185,"column":13}},"345":{"start":{"line":1184,"column":16},"end":{"line":1184,"column":37}},"346":{"start":{"line":1187,"column":12},"end":{"line":1189,"column":13}},"347":{"start":{"line":1188,"column":16},"end":{"line":1188,"column":62}},"348":{"start":{"line":1191,"column":12},"end":{"line":1193,"column":13}},"349":{"start":{"line":1192,"column":16},"end":{"line":1192,"column":57}},"350":{"start":{"line":1195,"column":8},"end":{"line":1195,"column":31}},"351":{"start":{"line":1204,"column":8},"end":{"line":1204,"column":27}},"352":{"start":{"line":1208,"column":0},"end":{"line":1252,"column":3}},"353":{"start":{"line":1261,"column":0},"end":{"line":1293,"column":2}},"354":{"start":{"line":1262,"column":4},"end":{"line":1267,"column":12}},"355":{"start":{"line":1269,"column":4},"end":{"line":1275,"column":5}},"356":{"start":{"line":1270,"column":8},"end":{"line":1270,"column":72}},"357":{"start":{"line":1271,"column":8},"end":{"line":1271,"column":34}},"358":{"start":{"line":1272,"column":8},"end":{"line":1274,"column":9}},"359":{"start":{"line":1273,"column":12},"end":{"line":1273,"column":30}},"360":{"start":{"line":1277,"column":4},"end":{"line":1290,"column":7}},"361":{"start":{"line":1278,"column":8},"end":{"line":1278,"column":47}},"362":{"start":{"line":1280,"column":8},"end":{"line":1282,"column":9}},"363":{"start":{"line":1281,"column":12},"end":{"line":1281,"column":37}},"364":{"start":{"line":1284,"column":8},"end":{"line":1284,"column":34}},"365":{"start":{"line":1285,"column":8},"end":{"line":1287,"column":9}},"366":{"start":{"line":1286,"column":12},"end":{"line":1286,"column":49}},"367":{"start":{"line":1289,"column":8},"end":{"line":1289,"column":22}},"368":{"start":{"line":1292,"column":4},"end":{"line":1292,"column":43}},"369":{"start":{"line":1295,"column":0},"end":{"line":1295,"column":22}},"370":{"start":{"line":1297,"column":0},"end":{"line":1299,"column":2}},"371":{"start":{"line":1298,"column":4},"end":{"line":1298,"column":31}},"372":{"start":{"line":1301,"column":0},"end":{"line":1301,"column":19}},"373":{"start":{"line":1307,"column":0},"end":{"line":1364,"column":6}},"374":{"start":{"line":1367,"column":0},"end":{"line":1388,"column":3}},"375":{"start":{"line":1368,"column":4},"end":{"line":1387,"column":6}},"376":{"start":{"line":1369,"column":8},"end":{"line":1372,"column":16}},"377":{"start":{"line":1374,"column":8},"end":{"line":1376,"column":9}},"378":{"start":{"line":1375,"column":12},"end":{"line":1375,"column":54}},"379":{"start":{"line":1378,"column":8},"end":{"line":1378,"column":56}},"380":{"start":{"line":1380,"column":8},"end":{"line":1384,"column":9}},"381":{"start":{"line":1381,"column":12},"end":{"line":1381,"column":29}},"382":{"start":{"line":1383,"column":12},"end":{"line":1383,"column":39}},"383":{"start":{"line":1386,"column":8},"end":{"line":1386,"column":19}},"384":{"start":{"line":1394,"column":0},"end":{"line":1493,"column":3}},"385":{"start":{"line":1489,"column":4},"end":{"line":1492,"column":6}},"386":{"start":{"line":1490,"column":8},"end":{"line":1490,"column":56}},"387":{"start":{"line":1491,"column":8},"end":{"line":1491,"column":19}},"388":{"start":{"line":1502,"column":0},"end":{"line":1509,"column":2}},"389":{"start":{"line":1503,"column":4},"end":{"line":1503,"column":26}},"390":{"start":{"line":1504,"column":4},"end":{"line":1506,"column":5}},"391":{"start":{"line":1505,"column":8},"end":{"line":1505,"column":38}},"392":{"start":{"line":1508,"column":4},"end":{"line":1508,"column":16}},"393":{"start":{"line":1511,"column":0},"end":{"line":1561,"column":3}},"394":{"start":{"line":1563,"column":0},"end":{"line":1616,"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":39}},{"start":{"line":51,"column":43},"end":{"line":51,"column":85}}]},"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":279,"type":"if","locations":[{"start":{"line":279,"column":4},"end":{"line":279,"column":4}},{"start":{"line":279,"column":4},"end":{"line":279,"column":4}}]},"40":{"line":280,"type":"if","locations":[{"start":{"line":280,"column":8},"end":{"line":280,"column":8}},{"start":{"line":280,"column":8},"end":{"line":280,"column":8}}]},"41":{"line":282,"type":"if","locations":[{"start":{"line":282,"column":12},"end":{"line":282,"column":12}},{"start":{"line":282,"column":12},"end":{"line":282,"column":12}}]},"42":{"line":285,"type":"if","locations":[{"start":{"line":285,"column":15},"end":{"line":285,"column":15}},{"start":{"line":285,"column":15},"end":{"line":285,"column":15}}]},"43":{"line":289,"type":"if","locations":[{"start":{"line":289,"column":8},"end":{"line":289,"column":8}},{"start":{"line":289,"column":8},"end":{"line":289,"column":8}}]},"44":{"line":289,"type":"binary-expr","locations":[{"start":{"line":289,"column":12},"end":{"line":289,"column":25}},{"start":{"line":289,"column":29},"end":{"line":289,"column":49}}]},"45":{"line":291,"type":"cond-expr","locations":[{"start":{"line":291,"column":36},"end":{"line":291,"column":50}},{"start":{"line":291,"column":53},"end":{"line":291,"column":57}}]},"46":{"line":292,"type":"if","locations":[{"start":{"line":292,"column":12},"end":{"line":292,"column":12}},{"start":{"line":292,"column":12},"end":{"line":292,"column":12}}]},"47":{"line":292,"type":"binary-expr","locations":[{"start":{"line":292,"column":16},"end":{"line":292,"column":25}},{"start":{"line":292,"column":30},"end":{"line":292,"column":40}},{"start":{"line":292,"column":44},"end":{"line":292,"column":63}}]},"48":{"line":294,"type":"if","locations":[{"start":{"line":294,"column":16},"end":{"line":294,"column":16}},{"start":{"line":294,"column":16},"end":{"line":294,"column":16}}]},"49":{"line":317,"type":"if","locations":[{"start":{"line":317,"column":4},"end":{"line":317,"column":4}},{"start":{"line":317,"column":4},"end":{"line":317,"column":4}}]},"50":{"line":322,"type":"if","locations":[{"start":{"line":322,"column":11},"end":{"line":322,"column":11}},{"start":{"line":322,"column":11},"end":{"line":322,"column":11}}]},"51":{"line":341,"type":"if","locations":[{"start":{"line":341,"column":4},"end":{"line":341,"column":4}},{"start":{"line":341,"column":4},"end":{"line":341,"column":4}}]},"52":{"line":341,"type":"binary-expr","locations":[{"start":{"line":341,"column":8},"end":{"line":341,"column":20}},{"start":{"line":341,"column":24},"end":{"line":341,"column":46}}]},"53":{"line":343,"type":"if","locations":[{"start":{"line":343,"column":11},"end":{"line":343,"column":11}},{"start":{"line":343,"column":11},"end":{"line":343,"column":11}}]},"54":{"line":363,"type":"if","locations":[{"start":{"line":363,"column":8},"end":{"line":363,"column":8}},{"start":{"line":363,"column":8},"end":{"line":363,"column":8}}]},"55":{"line":365,"type":"cond-expr","locations":[{"start":{"line":365,"column":39},"end":{"line":365,"column":62}},{"start":{"line":365,"column":65},"end":{"line":365,"column":69}}]},"56":{"line":365,"type":"binary-expr","locations":[{"start":{"line":365,"column":18},"end":{"line":365,"column":23}},{"start":{"line":365,"column":27},"end":{"line":365,"column":35}}]},"57":{"line":366,"type":"cond-expr","locations":[{"start":{"line":366,"column":53},"end":{"line":366,"column":83}},{"start":{"line":366,"column":86},"end":{"line":366,"column":90}}]},"58":{"line":366,"type":"binary-expr","locations":[{"start":{"line":366,"column":25},"end":{"line":366,"column":30}},{"start":{"line":366,"column":34},"end":{"line":366,"column":49}}]},"59":{"line":369,"type":"if","locations":[{"start":{"line":369,"column":12},"end":{"line":369,"column":12}},{"start":{"line":369,"column":12},"end":{"line":369,"column":12}}]},"60":{"line":373,"type":"if","locations":[{"start":{"line":373,"column":12},"end":{"line":373,"column":12}},{"start":{"line":373,"column":12},"end":{"line":373,"column":12}}]},"61":{"line":395,"type":"if","locations":[{"start":{"line":395,"column":8},"end":{"line":395,"column":8}},{"start":{"line":395,"column":8},"end":{"line":395,"column":8}}]},"62":{"line":401,"type":"if","locations":[{"start":{"line":401,"column":8},"end":{"line":401,"column":8}},{"start":{"line":401,"column":8},"end":{"line":401,"column":8}}]},"63":{"line":403,"type":"if","locations":[{"start":{"line":403,"column":15},"end":{"line":403,"column":15}},{"start":{"line":403,"column":15},"end":{"line":403,"column":15}}]},"64":{"line":420,"type":"if","locations":[{"start":{"line":420,"column":8},"end":{"line":420,"column":8}},{"start":{"line":420,"column":8},"end":{"line":420,"column":8}}]},"65":{"line":420,"type":"binary-expr","locations":[{"start":{"line":420,"column":12},"end":{"line":420,"column":22}},{"start":{"line":420,"column":26},"end":{"line":420,"column":43}}]},"66":{"line":422,"type":"if","locations":[{"start":{"line":422,"column":15},"end":{"line":422,"column":15}},{"start":{"line":422,"column":15},"end":{"line":422,"column":15}}]},"67":{"line":445,"type":"if","locations":[{"start":{"line":445,"column":8},"end":{"line":445,"column":8}},{"start":{"line":445,"column":8},"end":{"line":445,"column":8}}]},"68":{"line":448,"type":"if","locations":[{"start":{"line":448,"column":12},"end":{"line":448,"column":12}},{"start":{"line":448,"column":12},"end":{"line":448,"column":12}}]},"69":{"line":448,"type":"binary-expr","locations":[{"start":{"line":448,"column":16},"end":{"line":448,"column":26}},{"start":{"line":448,"column":30},"end":{"line":448,"column":47}}]},"70":{"line":450,"type":"if","locations":[{"start":{"line":450,"column":19},"end":{"line":450,"column":19}},{"start":{"line":450,"column":19},"end":{"line":450,"column":19}}]},"71":{"line":467,"type":"if","locations":[{"start":{"line":467,"column":8},"end":{"line":467,"column":8}},{"start":{"line":467,"column":8},"end":{"line":467,"column":8}}]},"72":{"line":486,"type":"if","locations":[{"start":{"line":486,"column":8},"end":{"line":486,"column":8}},{"start":{"line":486,"column":8},"end":{"line":486,"column":8}}]},"73":{"line":507,"type":"if","locations":[{"start":{"line":507,"column":8},"end":{"line":507,"column":8}},{"start":{"line":507,"column":8},"end":{"line":507,"column":8}}]},"74":{"line":507,"type":"binary-expr","locations":[{"start":{"line":507,"column":12},"end":{"line":507,"column":19}},{"start":{"line":507,"column":23},"end":{"line":507,"column":36}}]},"75":{"line":523,"type":"if","locations":[{"start":{"line":523,"column":8},"end":{"line":523,"column":8}},{"start":{"line":523,"column":8},"end":{"line":523,"column":8}}]},"76":{"line":524,"type":"cond-expr","locations":[{"start":{"line":524,"column":26},"end":{"line":524,"column":42}},{"start":{"line":524,"column":45},"end":{"line":524,"column":65}}]},"77":{"line":524,"type":"binary-expr","locations":[{"start":{"line":524,"column":26},"end":{"line":524,"column":35}},{"start":{"line":524,"column":39},"end":{"line":524,"column":42}}]},"78":{"line":525,"type":"if","locations":[{"start":{"line":525,"column":12},"end":{"line":525,"column":12}},{"start":{"line":525,"column":12},"end":{"line":525,"column":12}}]},"79":{"line":536,"type":"if","locations":[{"start":{"line":536,"column":8},"end":{"line":536,"column":8}},{"start":{"line":536,"column":8},"end":{"line":536,"column":8}}]},"80":{"line":536,"type":"binary-expr","locations":[{"start":{"line":536,"column":12},"end":{"line":536,"column":15}},{"start":{"line":536,"column":19},"end":{"line":536,"column":44}}]},"81":{"line":559,"type":"if","locations":[{"start":{"line":559,"column":8},"end":{"line":559,"column":8}},{"start":{"line":559,"column":8},"end":{"line":559,"column":8}}]},"82":{"line":559,"type":"binary-expr","locations":[{"start":{"line":559,"column":12},"end":{"line":559,"column":34}},{"start":{"line":560,"column":17},"end":{"line":560,"column":44}},{"start":{"line":560,"column":48},"end":{"line":560,"column":77}}]},"83":{"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}}]},"84":{"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}}]},"85":{"line":647,"type":"if","locations":[{"start":{"line":647,"column":8},"end":{"line":647,"column":8}},{"start":{"line":647,"column":8},"end":{"line":647,"column":8}}]},"86":{"line":653,"type":"binary-expr","locations":[{"start":{"line":653,"column":15},"end":{"line":653,"column":23}},{"start":{"line":653,"column":27},"end":{"line":653,"column":36}}]},"87":{"line":680,"type":"if","locations":[{"start":{"line":680,"column":8},"end":{"line":680,"column":8}},{"start":{"line":680,"column":8},"end":{"line":680,"column":8}}]},"88":{"line":680,"type":"binary-expr","locations":[{"start":{"line":680,"column":12},"end":{"line":680,"column":16}},{"start":{"line":680,"column":20},"end":{"line":680,"column":35}}]},"89":{"line":684,"type":"if","locations":[{"start":{"line":684,"column":8},"end":{"line":684,"column":8}},{"start":{"line":684,"column":8},"end":{"line":684,"column":8}}]},"90":{"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}}]},"91":{"line":717,"type":"if","locations":[{"start":{"line":717,"column":8},"end":{"line":717,"column":8}},{"start":{"line":717,"column":8},"end":{"line":717,"column":8}}]},"92":{"line":734,"type":"cond-expr","locations":[{"start":{"line":734,"column":42},"end":{"line":734,"column":52}},{"start":{"line":734,"column":55},"end":{"line":734,"column":62}}]},"93":{"line":739,"type":"if","locations":[{"start":{"line":739,"column":8},"end":{"line":739,"column":8}},{"start":{"line":739,"column":8},"end":{"line":739,"column":8}}]},"94":{"line":745,"type":"if","locations":[{"start":{"line":745,"column":8},"end":{"line":745,"column":8}},{"start":{"line":745,"column":8},"end":{"line":745,"column":8}}]},"95":{"line":748,"type":"if","locations":[{"start":{"line":748,"column":16},"end":{"line":748,"column":16}},{"start":{"line":748,"column":16},"end":{"line":748,"column":16}}]},"96":{"line":776,"type":"if","locations":[{"start":{"line":776,"column":8},"end":{"line":776,"column":8}},{"start":{"line":776,"column":8},"end":{"line":776,"column":8}}]},"97":{"line":776,"type":"binary-expr","locations":[{"start":{"line":776,"column":12},"end":{"line":776,"column":13}},{"start":{"line":776,"column":17},"end":{"line":776,"column":24}}]},"98":{"line":780,"type":"if","locations":[{"start":{"line":780,"column":8},"end":{"line":780,"column":8}},{"start":{"line":780,"column":8},"end":{"line":780,"column":8}}]},"99":{"line":780,"type":"binary-expr","locations":[{"start":{"line":780,"column":12},"end":{"line":780,"column":13}},{"start":{"line":780,"column":17},"end":{"line":780,"column":24}}]},"100":{"line":795,"type":"cond-expr","locations":[{"start":{"line":796,"column":8},"end":{"line":798,"column":9}},{"start":{"line":799,"column":8},"end":{"line":814,"column":9}}]},"101":{"line":805,"type":"if","locations":[{"start":{"line":805,"column":12},"end":{"line":805,"column":12}},{"start":{"line":805,"column":12},"end":{"line":805,"column":12}}]},"102":{"line":807,"type":"if","locations":[{"start":{"line":807,"column":19},"end":{"line":807,"column":19}},{"start":{"line":807,"column":19},"end":{"line":807,"column":19}}]},"103":{"line":819,"type":"binary-expr","locations":[{"start":{"line":819,"column":18},"end":{"line":819,"column":22}},{"start":{"line":819,"column":26},"end":{"line":819,"column":40}},{"start":{"line":820,"column":16},"end":{"line":820,"column":48}},{"start":{"line":821,"column":13},"end":{"line":821,"column":46}},{"start":{"line":822,"column":16},"end":{"line":822,"column":62}}]},"104":{"line":870,"type":"if","locations":[{"start":{"line":870,"column":4},"end":{"line":870,"column":4}},{"start":{"line":870,"column":4},"end":{"line":870,"column":4}}]},"105":{"line":871,"type":"if","locations":[{"start":{"line":871,"column":8},"end":{"line":871,"column":8}},{"start":{"line":871,"column":8},"end":{"line":871,"column":8}}]},"106":{"line":874,"type":"if","locations":[{"start":{"line":874,"column":15},"end":{"line":874,"column":15}},{"start":{"line":874,"column":15},"end":{"line":874,"column":15}}]},"107":{"line":874,"type":"binary-expr","locations":[{"start":{"line":874,"column":19},"end":{"line":874,"column":33}},{"start":{"line":874,"column":37},"end":{"line":874,"column":58}}]},"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":878,"type":"if","locations":[{"start":{"line":878,"column":15},"end":{"line":878,"column":15}},{"start":{"line":878,"column":15},"end":{"line":878,"column":15}}]},"110":{"line":878,"type":"binary-expr","locations":[{"start":{"line":878,"column":19},"end":{"line":878,"column":27}},{"start":{"line":878,"column":31},"end":{"line":878,"column":45}}]},"111":{"line":880,"type":"if","locations":[{"start":{"line":880,"column":16},"end":{"line":880,"column":16}},{"start":{"line":880,"column":16},"end":{"line":880,"column":16}}]},"112":{"line":895,"type":"binary-expr","locations":[{"start":{"line":895,"column":18},"end":{"line":895,"column":23}},{"start":{"line":895,"column":27},"end":{"line":895,"column":29}}]},"113":{"line":909,"type":"cond-expr","locations":[{"start":{"line":909,"column":43},"end":{"line":909,"column":58}},{"start":{"line":909,"column":61},"end":{"line":909,"column":69}}]},"114":{"line":909,"type":"binary-expr","locations":[{"start":{"line":909,"column":12},"end":{"line":909,"column":20}},{"start":{"line":909,"column":24},"end":{"line":909,"column":39}}]},"115":{"line":914,"type":"if","locations":[{"start":{"line":914,"column":4},"end":{"line":914,"column":4}},{"start":{"line":914,"column":4},"end":{"line":914,"column":4}}]},"116":{"line":914,"type":"binary-expr","locations":[{"start":{"line":914,"column":8},"end":{"line":914,"column":13}},{"start":{"line":914,"column":17},"end":{"line":914,"column":29}}]},"117":{"line":915,"type":"binary-expr","locations":[{"start":{"line":915,"column":32},"end":{"line":915,"column":39}},{"start":{"line":915,"column":43},"end":{"line":915,"column":51}}]},"118":{"line":921,"type":"if","locations":[{"start":{"line":921,"column":4},"end":{"line":921,"column":4}},{"start":{"line":921,"column":4},"end":{"line":921,"column":4}}]},"119":{"line":921,"type":"binary-expr","locations":[{"start":{"line":921,"column":8},"end":{"line":921,"column":12}},{"start":{"line":921,"column":16},"end":{"line":921,"column":18}}]},"120":{"line":931,"type":"if","locations":[{"start":{"line":931,"column":16},"end":{"line":931,"column":16}},{"start":{"line":931,"column":16},"end":{"line":931,"column":16}}]},"121":{"line":934,"type":"binary-expr","locations":[{"start":{"line":934,"column":22},"end":{"line":934,"column":29}},{"start":{"line":934,"column":33},"end":{"line":934,"column":41}}]},"122":{"line":936,"type":"if","locations":[{"start":{"line":936,"column":16},"end":{"line":936,"column":16}},{"start":{"line":936,"column":16},"end":{"line":936,"column":16}}]},"123":{"line":936,"type":"binary-expr","locations":[{"start":{"line":936,"column":20},"end":{"line":936,"column":40}},{"start":{"line":936,"column":44},"end":{"line":936,"column":63}}]},"124":{"line":942,"type":"cond-expr","locations":[{"start":{"line":942,"column":32},"end":{"line":942,"column":35}},{"start":{"line":942,"column":38},"end":{"line":942,"column":42}}]},"125":{"line":959,"type":"if","locations":[{"start":{"line":959,"column":4},"end":{"line":959,"column":4}},{"start":{"line":959,"column":4},"end":{"line":959,"column":4}}]},"126":{"line":960,"type":"binary-expr","locations":[{"start":{"line":960,"column":18},"end":{"line":960,"column":25}},{"start":{"line":960,"column":29},"end":{"line":960,"column":33}}]},"127":{"line":971,"type":"if","locations":[{"start":{"line":971,"column":4},"end":{"line":971,"column":4}},{"start":{"line":971,"column":4},"end":{"line":971,"column":4}}]},"128":{"line":983,"type":"cond-expr","locations":[{"start":{"line":983,"column":29},"end":{"line":983,"column":31}},{"start":{"line":983,"column":34},"end":{"line":983,"column":38}}]},"129":{"line":987,"type":"if","locations":[{"start":{"line":987,"column":12},"end":{"line":987,"column":12}},{"start":{"line":987,"column":12},"end":{"line":987,"column":12}}]},"130":{"line":1003,"type":"binary-expr","locations":[{"start":{"line":1003,"column":22},"end":{"line":1003,"column":33}},{"start":{"line":1003,"column":37},"end":{"line":1003,"column":39}}]},"131":{"line":1019,"type":"binary-expr","locations":[{"start":{"line":1019,"column":27},"end":{"line":1019,"column":34}},{"start":{"line":1019,"column":38},"end":{"line":1019,"column":42}}]},"132":{"line":1029,"type":"if","locations":[{"start":{"line":1029,"column":12},"end":{"line":1029,"column":12}},{"start":{"line":1029,"column":12},"end":{"line":1029,"column":12}}]},"133":{"line":1033,"type":"binary-expr","locations":[{"start":{"line":1033,"column":27},"end":{"line":1033,"column":34}},{"start":{"line":1033,"column":38},"end":{"line":1033,"column":46}}]},"134":{"line":1051,"type":"binary-expr","locations":[{"start":{"line":1051,"column":22},"end":{"line":1051,"column":29}},{"start":{"line":1051,"column":33},"end":{"line":1051,"column":37}}]},"135":{"line":1098,"type":"binary-expr","locations":[{"start":{"line":1098,"column":12},"end":{"line":1098,"column":13}},{"start":{"line":1098,"column":17},"end":{"line":1098,"column":18}}]},"136":{"line":1101,"type":"if","locations":[{"start":{"line":1101,"column":12},"end":{"line":1101,"column":12}},{"start":{"line":1101,"column":12},"end":{"line":1101,"column":12}}]},"137":{"line":1143,"type":"if","locations":[{"start":{"line":1143,"column":8},"end":{"line":1143,"column":8}},{"start":{"line":1143,"column":8},"end":{"line":1143,"column":8}}]},"138":{"line":1144,"type":"if","locations":[{"start":{"line":1144,"column":12},"end":{"line":1144,"column":12}},{"start":{"line":1144,"column":12},"end":{"line":1144,"column":12}}]},"139":{"line":1145,"type":"if","locations":[{"start":{"line":1145,"column":16},"end":{"line":1145,"column":16}},{"start":{"line":1145,"column":16},"end":{"line":1145,"column":16}}]},"140":{"line":1145,"type":"binary-expr","locations":[{"start":{"line":1145,"column":20},"end":{"line":1145,"column":25}},{"start":{"line":1145,"column":29},"end":{"line":1145,"column":37}},{"start":{"line":1145,"column":41},"end":{"line":1145,"column":63}}]},"141":{"line":1180,"type":"if","locations":[{"start":{"line":1180,"column":8},"end":{"line":1180,"column":8}},{"start":{"line":1180,"column":8},"end":{"line":1180,"column":8}}]},"142":{"line":1180,"type":"binary-expr","locations":[{"start":{"line":1180,"column":12},"end":{"line":1180,"column":17}},{"start":{"line":1180,"column":21},"end":{"line":1180,"column":29}}]},"143":{"line":1183,"type":"if","locations":[{"start":{"line":1183,"column":12},"end":{"line":1183,"column":12}},{"start":{"line":1183,"column":12},"end":{"line":1183,"column":12}}]},"144":{"line":1187,"type":"if","locations":[{"start":{"line":1187,"column":12},"end":{"line":1187,"column":12}},{"start":{"line":1187,"column":12},"end":{"line":1187,"column":12}}]},"145":{"line":1191,"type":"if","locations":[{"start":{"line":1191,"column":12},"end":{"line":1191,"column":12}},{"start":{"line":1191,"column":12},"end":{"line":1191,"column":12}}]},"146":{"line":1195,"type":"binary-expr","locations":[{"start":{"line":1195,"column":15},"end":{"line":1195,"column":18}},{"start":{"line":1195,"column":22},"end":{"line":1195,"column":30}}]},"147":{"line":1269,"type":"if","locations":[{"start":{"line":1269,"column":4},"end":{"line":1269,"column":4}},{"start":{"line":1269,"column":4},"end":{"line":1269,"column":4}}]},"148":{"line":1270,"type":"binary-expr","locations":[{"start":{"line":1270,"column":19},"end":{"line":1270,"column":50}},{"start":{"line":1270,"column":54},"end":{"line":1270,"column":71}}]},"149":{"line":1272,"type":"if","locations":[{"start":{"line":1272,"column":8},"end":{"line":1272,"column":8}},{"start":{"line":1272,"column":8},"end":{"line":1272,"column":8}}]},"150":{"line":1272,"type":"binary-expr","locations":[{"start":{"line":1272,"column":12},"end":{"line":1272,"column":15}},{"start":{"line":1272,"column":19},"end":{"line":1272,"column":31}}]},"151":{"line":1280,"type":"if","locations":[{"start":{"line":1280,"column":8},"end":{"line":1280,"column":8}},{"start":{"line":1280,"column":8},"end":{"line":1280,"column":8}}]},"152":{"line":1285,"type":"if","locations":[{"start":{"line":1285,"column":8},"end":{"line":1285,"column":8}},{"start":{"line":1285,"column":8},"end":{"line":1285,"column":8}}]},"153":{"line":1292,"type":"cond-expr","locations":[{"start":{"line":1292,"column":26},"end":{"line":1292,"column":36}},{"start":{"line":1292,"column":39},"end":{"line":1292,"column":42}}]},"154":{"line":1375,"type":"binary-expr","locations":[{"start":{"line":1375,"column":22},"end":{"line":1375,"column":31}},{"start":{"line":1375,"column":35},"end":{"line":1375,"column":45}},{"start":{"line":1375,"column":49},"end":{"line":1375,"column":52}}]},"155":{"line":1380,"type":"if","locations":[{"start":{"line":1380,"column":8},"end":{"line":1380,"column":8}},{"start":{"line":1380,"column":8},"end":{"line":1380,"column":8}}]},"156":{"line":1504,"type":"if","locations":[{"start":{"line":1504,"column":4},"end":{"line":1504,"column":4}},{"start":{"line":1504,"column":4},"end":{"line":1504,"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 (Y_Node._instances.has(node) && Y_Node._instances.get(node)._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 = new WeakMap();","","/**"," * 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;",""," 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)"," instance = Y_Node._instances.get(node); // 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.set(node, 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.get(node._node);"," if (instance) {"," instance.destroy();"," } else { // purge in case added by other means"," Y.Event.purgeElement(node);"," }"," });"," }",""," Y_Node._instances.delete(this._node);",""," this._node = null;"," this._stateProxy = null;"," },",""," /**"," * 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 instance = Y.Node._instances.get(node),"," 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 {"," }","};","","/**"," * Import the named method, or methods from the host onto NodeList."," *"," * @method importMethod"," * @static"," * @param {Object} host The object containing the methods to copy. Typically a prototype."," * @param {String|String[]} name The name, or an Array of names of the methods to import onto NodeList."," * @param {String} [altName] An alternative name to use for the method added to NodeList, which may differ from the name"," * of the original host object. Has no effect if name is an array of method names."," */","NodeList.importMethod = function(host, name, altName) {"," if (typeof name === 'string') {"," altName = altName || name;"," NodeList.addMethod(altName, 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.get(node);"," 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.get(nodes[0]) || getTemp(nodes[0]);"," val = instance._get(attr);"," if (val && val.nodeType) {"," isNodeList = true;"," }"," }",""," Y.Array.each(nodes, function(node) {"," instance = Y.Node._instances.get(node);",""," 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(altName,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={},_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]++,Y_Node._instances.has(node))&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['6'][1]++,Y_Node._instances.get(node)._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=new WeakMap();__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;__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']++;instance=Y_Node._instances.get(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['88']++;cachedNode=instance?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['45'][0]++,instance._node):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['45'][1]++,null);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['89']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['47'][0]++,!instance)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['47'][1]++,cachedNode)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['47'][2]++,node!==cachedNode)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['46'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['90']++;instance=new Y_Node(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['91']++;if(node.nodeType!=11){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['48'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['92']++;Y_Node._instances.set(node,instance);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['48'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['46'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['43'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['39'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['93']++;return instance;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['94']++;Y_Node.DEFAULT_SETTER=function(name,val){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['14']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['95']++;var node=this._stateProxy,strPath;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['96']++;if(name.indexOf(DOT)>-1){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['49'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['97']++;strPath=name;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['98']++;name=name.split(DOT);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['99']++;Y.Object.setValue(node,name,val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['49'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['100']++;if(typeof node[name]!='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['50'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['101']++;node[name]=val;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['50'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['102']++;return val;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['103']++;Y_Node.DEFAULT_GETTER=function(name){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['15']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['104']++;var node=this._stateProxy,val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['105']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['52'][0]++,name.indexOf)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['52'][1]++,name.indexOf(DOT)>-1)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['51'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['106']++;val=Y.Object.getValue(node,name.split(DOT));}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['51'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['107']++;if(typeof node[name]!='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['53'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['108']++;val=node[name];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['53'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['109']++;return val;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['110']++;Y.mix(Y_Node.prototype,{DATA_PREFIX:'data-',toString:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['16']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['111']++;var str=this[UID]+': not bound to a node',node=this._node,attrs,id,className;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['112']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['54'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['113']++;attrs=node.attributes;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['114']++;id=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['56'][0]++,attrs)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['56'][1]++,attrs.id)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['55'][0]++,node.getAttribute('id')):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['55'][1]++,null);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['115']++;className=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['58'][0]++,attrs)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['58'][1]++,attrs.className)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['57'][0]++,node.getAttribute('className')):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['57'][1]++,null);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['116']++;str=node[NODE_NAME];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['117']++;if(id){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['59'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['118']++;str+='#'+id;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['59'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['119']++;if(className){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['60'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['120']++;str+='.'+className.replace(' ','.');}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['60'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['121']++;str+=' '+this[UID];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['54'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['122']++;return str;},get:function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['17']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['123']++;var val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['124']++;if(this._getAttr){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['61'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['125']++;val=this._getAttr(attr);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['61'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['126']++;val=this._get(attr);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['127']++;if(val){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['62'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['128']++;val=Y_Node.scrubVal(val,this);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['62'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['129']++;if(val===null){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['63'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['130']++;val=null;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['63'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['131']++;return val;},_get:function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['18']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['132']++;var attrConfig=Y_Node.ATTRS[attr],val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['133']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['65'][0]++,attrConfig)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['65'][1]++,attrConfig.getter)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['64'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['134']++;val=attrConfig.getter.call(this);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['64'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['135']++;if(Y_Node.re_aria.test(attr)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['66'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['136']++;val=this._node.getAttribute(attr,2);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['66'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['137']++;val=Y_Node.DEFAULT_GETTER.apply(this,arguments);}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['138']++;return val;},set:function(attr,val){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['19']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['139']++;var attrConfig=Y_Node.ATTRS[attr];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['140']++;if(this._setAttr){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['67'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['141']++;this._setAttr.apply(this,arguments);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['67'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['142']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['69'][0]++,attrConfig)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['69'][1]++,attrConfig.setter)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['68'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['143']++;attrConfig.setter.call(this,val,attr);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['68'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['144']++;if(Y_Node.re_aria.test(attr)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['70'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['145']++;this._node.setAttribute(attr,val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['70'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['146']++;Y_Node.DEFAULT_SETTER.apply(this,arguments);}}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['147']++;return this;},setAttrs:function(attrMap){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['20']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['148']++;if(this._setAttrs){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['71'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['149']++;this._setAttrs(attrMap);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['71'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['150']++;Y.Object.each(attrMap,function(v,n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['21']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['151']++;this.set(n,v);},this);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['152']++;return this;},getAttrs:function(attrs){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['22']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['153']++;var ret={};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['154']++;if(this._getAttrs){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['72'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['155']++;this._getAttrs(attrs);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['72'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['156']++;Y.Array.each(attrs,function(v,n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['23']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['157']++;ret[v]=this.get(v);},this);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['158']++;return ret;},compareTo:function(refNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['24']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['159']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['160']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['74'][0]++,refNode)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['74'][1]++,refNode._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['73'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['161']++;refNode=refNode._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['73'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['162']++;return node===refNode;},inDoc:function(doc){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['25']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['163']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['164']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['75'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['165']++;doc=doc?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['76'][0]++,(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['77'][0]++,doc._node)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['77'][1]++,doc)):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['76'][1]++,node[OWNER_DOCUMENT]);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['166']++;if(doc.documentElement){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['78'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['167']++;return Y_DOM.contains(doc.documentElement,node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['78'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['75'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['168']++;return false;},getById:function(id){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['26']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['169']++;var node=this._node,ret=Y_DOM.byId(id,node[OWNER_DOCUMENT]);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['170']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['80'][0]++,ret)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['80'][1]++,Y_DOM.contains(node,ret))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['79'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['171']++;ret=Y.one(ret);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['79'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['172']++;ret=null;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['173']++;return ret;},ancestor:function(fn,testSelf,stopFn){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['27']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['174']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['82'][0]++,arguments.length===2)&&((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['82'][1]++,typeof testSelf=='string')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['82'][2]++,typeof testSelf=='function'))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['81'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['175']++;stopFn=testSelf;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['81'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['176']++;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['177']++;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['178']++;stopFn=testSelf;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['83'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['179']++;return Y.all(Y_DOM.ancestors(this._node,_wrapFn(fn),testSelf,_wrapFn(stopFn)));},previous:function(fn,all){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['29']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['180']++;return Y.one(Y_DOM.elementByAxis(this._node,'previousSibling',_wrapFn(fn),all));},next:function(fn,all){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['30']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['181']++;return Y.one(Y_DOM.elementByAxis(this._node,'nextSibling',_wrapFn(fn),all));},siblings:function(fn){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['31']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['182']++;return Y.all(Y_DOM.siblings(this._node,_wrapFn(fn)));},one:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['32']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['183']++;return Y.one(Y.Selector.query(selector,this._node,true));},all:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['33']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['184']++;var nodelist;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['185']++;if(this._node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['85'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['186']++;nodelist=Y.all(Y.Selector.query(selector,this._node));__cov_LGqepiXuzGEZpz3IhlW0rQ.s['187']++;nodelist._query=selector;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['188']++;nodelist._queryRoot=this._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['85'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['189']++;return(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['86'][0]++,nodelist)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['86'][1]++,Y.all([]));},test:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['34']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['190']++;return Y.Selector.test(this._node,selector);},remove:function(destroy){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['35']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['191']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['192']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['88'][0]++,node)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['88'][1]++,node.parentNode)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['87'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['193']++;node.parentNode.removeChild(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['87'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['194']++;if(destroy){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['89'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['195']++;this.destroy();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['89'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['196']++;return this;},replace:function(newNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['36']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['197']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['198']++;if(typeof newNode=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['90'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['199']++;newNode=Y_Node.create(newNode);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['90'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['200']++;node.parentNode.replaceChild(Y_Node.getDOMNode(newNode),node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['201']++;return this;},replaceChild:function(node,refNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['37']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['202']++;if(typeof node=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['91'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['203']++;node=Y_DOM.create(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['91'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['204']++;return Y.one(this._node.replaceChild(Y_Node.getDOMNode(node),Y_Node.getDOMNode(refNode)));},destroy:function(recursive){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['38']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['205']++;var UID=Y.config.doc.uniqueID?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['92'][0]++,'uniqueID'):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['92'][1]++,'_yuid'),instance;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['206']++;this.purge();__cov_LGqepiXuzGEZpz3IhlW0rQ.s['207']++;if(this.unplug){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['93'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['208']++;this.unplug();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['93'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['209']++;this.clearData();__cov_LGqepiXuzGEZpz3IhlW0rQ.s['210']++;if(recursive){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['94'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['211']++;Y.NodeList.each(this.all('*'),function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['39']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['212']++;instance=Y_Node._instances.get(node._node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['213']++;if(instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['95'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['214']++;instance.destroy();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['95'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['215']++;Y.Event.purgeElement(node);}});}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['94'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['216']++;Y_Node._instances.delete(this._node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['217']++;this._node=null;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['218']++;this._stateProxy=null;},invoke:function(method,a,b,c,d,e){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['40']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['219']++;var node=this._node,ret;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['220']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['97'][0]++,a)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['97'][1]++,a._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['96'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['221']++;a=a._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['96'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['222']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['99'][0]++,b)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['99'][1]++,b._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['98'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['223']++;b=b._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['98'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['224']++;ret=node[method](a,b,c,d,e);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['225']++;return Y_Node.scrubVal(ret,this);},swap:Y.config.doc.documentElement.swapNode?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['100'][0]++,function(otherNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['41']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['226']++;this._node.swapNode(Y_Node.getDOMNode(otherNode));}):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['100'][1]++,function(otherNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['42']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['227']++;otherNode=Y_Node.getDOMNode(otherNode);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['228']++;var node=this._node,parent=otherNode.parentNode,nextSibling=otherNode.nextSibling;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['229']++;if(nextSibling===node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['101'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['230']++;parent.insertBefore(node,otherNode);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['101'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['231']++;if(otherNode===node.nextSibling){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['102'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['232']++;parent.insertBefore(otherNode,node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['102'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['233']++;node.parentNode.replaceChild(otherNode,node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['234']++;Y_DOM.addHTML(parent,node,nextSibling);}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['235']++;return this;}),hasMethod:function(method){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['43']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['236']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['237']++;return!!((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['103'][0]++,node)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['103'][1]++,method in node)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['103'][2]++,typeof node[method]!='unknown')&&((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['103'][3]++,typeof node[method]=='function')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['103'][4]++,String(node[method]).indexOf('function')===1)));},isFragment:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['44']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['238']++;return this.get('nodeType')===11;},empty:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['45']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['239']++;this.get('childNodes').remove().destroy(true);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['240']++;return this;},getDOMNode:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['46']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['241']++;return this._node;}},true);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['242']++;Y.Node=Y_Node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['243']++;Y.one=Y_Node.one;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['244']++;var NodeList=function(nodes){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['47']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['245']++;var tmp=[];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['246']++;if(nodes){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['104'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['247']++;if(typeof nodes==='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['105'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['248']++;this._query=nodes;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['249']++;nodes=Y.Selector.query(nodes);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['105'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['250']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['107'][0]++,nodes.nodeType)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['107'][1]++,Y_DOM.isWindow(nodes))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['106'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['251']++;nodes=[nodes];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['106'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['252']++;if(nodes._node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['108'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['253']++;nodes=[nodes._node];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['108'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['254']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['110'][0]++,nodes[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['110'][1]++,nodes[0]._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['109'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['255']++;Y.Array.each(nodes,function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['48']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['256']++;if(node._node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['111'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['257']++;tmp.push(node._node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['111'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['258']++;nodes=tmp;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['109'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['259']++;nodes=Y.Array(nodes,0,true);}}}}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['104'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['260']++;this._nodes=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['112'][0]++,nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['112'][1]++,[]);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['261']++;NodeList.NAME='NodeList';__cov_LGqepiXuzGEZpz3IhlW0rQ.s['262']++;NodeList.getDOMNodes=function(nodelist){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['49']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['263']++;return(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['114'][0]++,nodelist)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['114'][1]++,nodelist._nodes)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['113'][0]++,nodelist._nodes):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['113'][1]++,nodelist);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['264']++;NodeList.each=function(instance,fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['50']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['265']++;var nodes=instance._nodes;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['266']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['116'][0]++,nodes)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['116'][1]++,nodes.length)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['115'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['267']++;Y.Array.each(nodes,fn,(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['117'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['117'][1]++,instance));}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['115'][1]++;}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['268']++;NodeList.addMethod=function(name,fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['51']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['269']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['119'][0]++,name)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['119'][1]++,fn)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['118'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['270']++;NodeList.prototype[name]=function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['52']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['271']++;var ret=[],args=arguments;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['272']++;Y.Array.each(this._nodes,function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['53']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['273']++;var instance=Y.Node._instances.get(node),ctx,result;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['274']++;if(!instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['120'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['275']++;instance=NodeList._getTempNode(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['120'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['276']++;ctx=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['121'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['121'][1]++,instance);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['277']++;result=fn.apply(ctx,args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['278']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['123'][0]++,result!==undefined)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['123'][1]++,result!==instance)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['122'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['279']++;ret[ret.length]=result;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['122'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['280']++;return ret.length?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['124'][0]++,ret):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['124'][1]++,this);};}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['118'][1]++;}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['281']++;NodeList.importMethod=function(host,name,altName){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['54']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['282']++;if(typeof name==='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['125'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['283']++;altName=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['126'][0]++,altName)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['126'][1]++,name);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['284']++;NodeList.addMethod(altName,host[name]);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['125'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['285']++;Y.Array.each(name,function(n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['55']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['286']++;NodeList.importMethod(host,n);});}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['287']++;NodeList._getTempNode=function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['56']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['288']++;var tmp=NodeList._tempNode;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['289']++;if(!tmp){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['127'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['290']++;tmp=Y.Node.create('
');__cov_LGqepiXuzGEZpz3IhlW0rQ.s['291']++;NodeList._tempNode=tmp;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['127'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['292']++;tmp._node=node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['293']++;tmp._stateProxy=node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['294']++;return tmp;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['295']++;Y.mix(NodeList.prototype,{_invoke:function(method,args,getter){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['57']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['296']++;var ret=getter?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['128'][0]++,[]):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['128'][1]++,this);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['297']++;this.each(function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['58']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['298']++;var val=node[method].apply(node,args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['299']++;if(getter){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['129'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['300']++;ret.push(val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['129'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['301']++;return ret;},item:function(index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['59']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['302']++;return Y.one(((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['130'][0]++,this._nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['130'][1]++,[]))[index]);},each:function(fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['60']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['303']++;var instance=this;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['304']++;Y.Array.each(this._nodes,function(node,index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['61']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['305']++;node=Y.one(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['306']++;return fn.call((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['131'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['131'][1]++,node),node,index,instance);});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['307']++;return instance;},batch:function(fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['62']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['308']++;var nodelist=this;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['309']++;Y.Array.each(this._nodes,function(node,index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['63']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['310']++;var instance=Y.Node._instances.get(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['311']++;if(!instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['132'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['312']++;instance=NodeList._getTempNode(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['132'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['313']++;return fn.call((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['133'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['133'][1]++,instance),instance,index,nodelist);});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['314']++;return nodelist;},some:function(fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['64']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['315']++;var instance=this;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['316']++;return Y.Array.some(this._nodes,function(node,index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['65']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['317']++;node=Y.one(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['318']++;context=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['134'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['134'][1]++,node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['319']++;return fn.call(context,node,index,instance);});},toFrag:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['66']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['320']++;return Y.one(Y.DOM._nl2frag(this._nodes));},indexOf:function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['67']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['321']++;return Y.Array.indexOf(this._nodes,Y.Node.getDOMNode(node));},filter:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['68']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['322']++;return Y.all(Y.Selector.filter(this._nodes,selector));},modulus:function(n,r){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['69']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['323']++;r=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['135'][0]++,r)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['135'][1]++,0);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['324']++;var nodes=[];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['325']++;NodeList.each(this,function(node,i){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['70']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['326']++;if(i%n===r){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['136'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['327']++;nodes.push(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['136'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['328']++;return Y.all(nodes);},odd:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['71']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['329']++;return this.modulus(2,1);},even:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['72']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['330']++;return this.modulus(2);},destructor:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['73']++;},refresh:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['74']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['331']++;var doc,nodes=this._nodes,query=this._query,root=this._queryRoot;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['332']++;if(query){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['137'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['333']++;if(!root){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['138'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['334']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['140'][0]++,nodes)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['140'][1]++,nodes[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['140'][2]++,nodes[0].ownerDocument)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['139'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['335']++;root=nodes[0].ownerDocument;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['139'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['138'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['336']++;this._nodes=Y.Selector.query(query,root);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['137'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['337']++;return this;},size:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['75']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['338']++;return this._nodes.length;},isEmpty:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['76']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['339']++;return this._nodes.length<1;},toString:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['77']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['340']++;var str='',errorMsg=this[UID]+': not bound to any nodes',nodes=this._nodes,node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['341']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['142'][0]++,nodes)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['142'][1]++,nodes[0])){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['141'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['342']++;node=nodes[0];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['343']++;str+=node[NODE_NAME];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['344']++;if(node.id){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['143'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['345']++;str+='#'+node.id;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['143'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['346']++;if(node.className){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['144'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['347']++;str+='.'+node.className.replace(' ','.');}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['144'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['348']++;if(nodes.length>1){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['145'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['349']++;str+='...['+nodes.length+' items]';}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['145'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['141'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['350']++;return(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['146'][0]++,str)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['146'][1]++,errorMsg);},getDOMNodes:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['78']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['351']++;return this._nodes;}},true);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['352']++;NodeList.importMethod(Y.Node.prototype,['destroy','empty','remove','set']);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['353']++;NodeList.prototype.get=function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['79']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['354']++;var ret=[],nodes=this._nodes,isNodeList=false,getTemp=NodeList._getTempNode,instance,val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['355']++;if(nodes[0]){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['147'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['356']++;instance=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['148'][0]++,Y.Node._instances.get(nodes[0]))||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['148'][1]++,getTemp(nodes[0]));__cov_LGqepiXuzGEZpz3IhlW0rQ.s['357']++;val=instance._get(attr);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['358']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['150'][0]++,val)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['150'][1]++,val.nodeType)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['149'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['359']++;isNodeList=true;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['149'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['147'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['360']++;Y.Array.each(nodes,function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['80']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['361']++;instance=Y.Node._instances.get(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['362']++;if(!instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['151'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['363']++;instance=getTemp(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['151'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['364']++;val=instance._get(attr);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['365']++;if(!isNodeList){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['152'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['366']++;val=Y.Node.scrubVal(val,instance);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['152'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['367']++;ret.push(val);});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['368']++;return isNodeList?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['153'][0]++,Y.all(ret)):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['153'][1]++,ret);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['369']++;Y.NodeList=NodeList;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['370']++;Y.all=function(nodes){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['81']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['371']++;return new NodeList(nodes);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['372']++;Y.Node.all=Y.all;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['373']++;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['374']++;Y.Object.each(ArrayMethods,function(returnNodeList,name){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['82']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['375']++;Y_NodeList.prototype[name]=function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['83']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['376']++;var args=[],i=0,arg,ret;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['377']++;while(typeof(arg=arguments[i++])!='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.s['378']++;args.push((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['154'][0]++,arg._node)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['154'][1]++,arg._nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['154'][2]++,arg));}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['379']++;ret=ArrayProto[name].apply(this._nodes,args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['380']++;if(returnNodeList){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['155'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['381']++;ret=Y.all(ret);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['155'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['382']++;ret=Y.Node.scrubVal(ret);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['383']++;return ret;};});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['384']++;Y.Array.each(['removeChild','hasChildNodes','cloneNode','hasAttribute','scrollIntoView','getElementsByTagName','focus','blur','submit','reset','select','createCaption'],function(method){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['84']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['385']++;Y.Node.prototype[method]=function(arg1,arg2,arg3){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['85']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['386']++;var ret=this.invoke(method,arg1,arg2,arg3);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['387']++;return ret;};});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['388']++;Y.Node.prototype.removeAttribute=function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['86']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['389']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['390']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['156'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['391']++;node.removeAttribute(attr,0);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['156'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['392']++;return this;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['393']++;Y.Node.importMethod(Y.DOM,['contains','setAttribute','getAttribute','wrap','unwrap','generateID']);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['394']++;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 e6aba26750a..0bd59af4f93 100644 --- a/build/node-core/node-core-debug.js +++ b/build/node-core/node-core-debug.js @@ -48,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 (Y_Node._instances.has(node) && Y_Node._instances.get(node)._node !== node) { node[UID] = null; // unset existing uid to prevent collision (via clone or hack) } @@ -132,7 +132,7 @@ Y_Node.HIDE_TRANSITION = 'fadeOut'; * @static * */ -Y_Node._instances = {}; +Y_Node._instances = new WeakMap(); /** * Retrieves the DOM node bound to a Node instance @@ -275,8 +275,7 @@ Y_Node.importMethod = function(host, name, altName) { */ Y_Node.one = function(node) { var instance = null, - cachedNode, - uid; + cachedNode; if (node) { if (typeof node == 'string') { @@ -289,13 +288,12 @@ 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 + instance = Y_Node._instances.get(node); // 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 + Y_Node._instances.set(node, instance); // cache node } } } @@ -747,7 +745,7 @@ Y.mix(Y_Node.prototype, { if (recursive) { Y.NodeList.each(this.all('*'), function(node) { - instance = Y_Node._instances[node[UID]]; + instance = Y_Node._instances.get(node._node); if (instance) { instance.destroy(); } else { // purge in case added by other means @@ -756,10 +754,10 @@ Y.mix(Y_Node.prototype, { }); } + Y_Node._instances.delete(this._node); + this._node = null; this._stateProxy = null; - - delete Y_Node._instances[this._yuid]; }, /** @@ -928,8 +926,7 @@ 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 instance = Y.Node._instances.get(node), ctx, result; @@ -1031,7 +1028,7 @@ Y.mix(NodeList.prototype, { var nodelist = this; Y.Array.each(this._nodes, function(node, index) { - var instance = Y.Node._instances[node[UID]]; + var instance = Y.Node._instances.get(node); if (!instance) { instance = NodeList._getTempNode(node); } @@ -1273,7 +1270,7 @@ NodeList.prototype.get = function(attr) { val; if (nodes[0]) { - instance = Y.Node._instances[nodes[0]._yuid] || getTemp(nodes[0]); + instance = Y.Node._instances.get(nodes[0]) || getTemp(nodes[0]); val = instance._get(attr); if (val && val.nodeType) { isNodeList = true; @@ -1281,7 +1278,7 @@ NodeList.prototype.get = function(attr) { } Y.Array.each(nodes, function(node) { - instance = Y.Node._instances[node._yuid]; + instance = Y.Node._instances.get(node); if (!instance) { instance = getTemp(node); diff --git a/build/node-core/node-core-min.js b/build/node-core/node-core-min.js index a9db35941d4..8aa728ecdca 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(r,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=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];c._instances.has(t)&&c._instances.get(t)._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=new WeakMap,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;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)){n=c._instances.get(t),r=n?n._node:null;if(!n||r&&t!==r)n=new c(t),t.nodeType!=11&&c._instances.set(t,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.get(t._node),r?r.destroy():e.Event.purgeElement(t)}),c._instances.delete(this._node),this._node=null,this._stateProxy=null},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=e.Node._instances.get(s),u,a;o||(o=p._getTempNode(s)),u=r||o,a=n.apply(u,i),a!==undefined&&a!==o&&(t[t.length]=a)}),t.length?t:this})},p.importMethod=function(t,n,r){typeof n=="string"?(r=r||n,p.addMethod(r,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.get(i);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.get(r[0])||s(r[0]),u=o._get(t),u&&u.nodeType&&(i=!0)),e.Array.each(r,function(r){o=e.Node._instances.get(r),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"]}); diff --git a/build/node-core/node-core.js b/build/node-core/node-core.js index 369223f1ccd..f00949acdfe 100644 --- a/build/node-core/node-core.js +++ b/build/node-core/node-core.js @@ -48,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 (Y_Node._instances.has(node) && Y_Node._instances.get(node)._node !== node) { node[UID] = null; // unset existing uid to prevent collision (via clone or hack) } @@ -132,7 +132,7 @@ Y_Node.HIDE_TRANSITION = 'fadeOut'; * @static * */ -Y_Node._instances = {}; +Y_Node._instances = new WeakMap(); /** * Retrieves the DOM node bound to a Node instance @@ -274,8 +274,7 @@ Y_Node.importMethod = function(host, name, altName) { */ Y_Node.one = function(node) { var instance = null, - cachedNode, - uid; + cachedNode; if (node) { if (typeof node == 'string') { @@ -288,13 +287,12 @@ 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 + instance = Y_Node._instances.get(node); // 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 + Y_Node._instances.set(node, instance); // cache node } } } @@ -746,7 +744,7 @@ Y.mix(Y_Node.prototype, { if (recursive) { Y.NodeList.each(this.all('*'), function(node) { - instance = Y_Node._instances[node[UID]]; + instance = Y_Node._instances.get(node._node); if (instance) { instance.destroy(); } else { // purge in case added by other means @@ -755,10 +753,10 @@ Y.mix(Y_Node.prototype, { }); } + Y_Node._instances.delete(this._node); + this._node = null; this._stateProxy = null; - - delete Y_Node._instances[this._yuid]; }, /** @@ -926,8 +924,7 @@ 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 instance = Y.Node._instances.get(node), ctx, result; @@ -1028,7 +1025,7 @@ Y.mix(NodeList.prototype, { var nodelist = this; Y.Array.each(this._nodes, function(node, index) { - var instance = Y.Node._instances[node[UID]]; + var instance = Y.Node._instances.get(node); if (!instance) { instance = NodeList._getTempNode(node); } @@ -1270,7 +1267,7 @@ NodeList.prototype.get = function(attr) { val; if (nodes[0]) { - instance = Y.Node._instances[nodes[0]._yuid] || getTemp(nodes[0]); + instance = Y.Node._instances.get(nodes[0]) || getTemp(nodes[0]); val = instance._get(attr); if (val && val.nodeType) { isNodeList = true; @@ -1278,7 +1275,7 @@ NodeList.prototype.get = function(attr) { } Y.Array.each(nodes, function(node) { - instance = Y.Node._instances[node._yuid]; + instance = Y.Node._instances.get(node); if (!instance) { instance = getTemp(node); diff --git a/build/node-pluginhost/node-pluginhost-coverage.js b/build/node-pluginhost/node-pluginhost-coverage.js index 11f42059044..37b0d432e58 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":66,"loc":{"start":{"line":66,"column":28},"end":{"line":66,"column":39}}},"5":{"name":"(anonymous_5)","line":68,"loc":{"start":{"line":68,"column":26},"end":{"line":68,"column":41}}},"6":{"name":"(anonymous_6)","line":83,"loc":{"start":{"line":83,"column":30},"end":{"line":83,"column":41}}},"7":{"name":"(anonymous_7)","line":85,"loc":{"start":{"line":85,"column":26},"end":{"line":85,"column":41}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":92,"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":66,"column":0},"end":{"line":72,"column":2}},"14":{"start":{"line":67,"column":4},"end":{"line":67,"column":25}},"15":{"start":{"line":68,"column":4},"end":{"line":70,"column":7}},"16":{"start":{"line":69,"column":8},"end":{"line":69,"column":55}},"17":{"start":{"line":71,"column":4},"end":{"line":71,"column":16}},"18":{"start":{"line":83,"column":0},"end":{"line":89,"column":2}},"19":{"start":{"line":84,"column":4},"end":{"line":84,"column":25}},"20":{"start":{"line":85,"column":4},"end":{"line":87,"column":7}},"21":{"start":{"line":86,"column":8},"end":{"line":86,"column":57}},"22":{"start":{"line":88,"column":4},"end":{"line":88,"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","// TODO: Some way to fix this? WeakMap is not iterable.","//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\"]});","","}());"]}; } 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..ea1e9ff0539 100644 --- a/build/node-pluginhost/node-pluginhost-debug.js +++ b/build/node-pluginhost/node-pluginhost-debug.js @@ -40,9 +40,10 @@ 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); -}); +// TODO: Some way to fix this? WeakMap is not iterable. +//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..ea1e9ff0539 100644 --- a/build/node-pluginhost/node-pluginhost.js +++ b/build/node-pluginhost/node-pluginhost.js @@ -40,9 +40,10 @@ 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); -}); +// TODO: Some way to fix this? WeakMap is not iterable. +//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/paginator-core/paginator-core-coverage.js b/build/paginator-core/paginator-core-coverage.js index fdbd3a0d7b0..fa8099fa3d7 100644 --- a/build/paginator-core/paginator-core-coverage.js +++ b/build/paginator-core/paginator-core-coverage.js @@ -3,4 +3,4 @@ if (!__coverage__['build/paginator-core/paginator-core.js']) { __coverage__['build/paginator-core/paginator-core.js'] = {"path":"build/paginator-core/paginator-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},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[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":26},"end":{"line":1,"column":45}}},"2":{"name":"(anonymous_2)","line":25,"loc":{"start":{"line":25,"column":52},"end":{"line":25,"column":64}}},"3":{"name":"(anonymous_3)","line":81,"loc":{"start":{"line":81,"column":14},"end":{"line":81,"column":26}}},"4":{"name":"(anonymous_4)","line":95,"loc":{"start":{"line":95,"column":14},"end":{"line":95,"column":26}}},"5":{"name":"(anonymous_5)","line":109,"loc":{"start":{"line":109,"column":17},"end":{"line":109,"column":29}}},"6":{"name":"(anonymous_6)","line":121,"loc":{"start":{"line":121,"column":17},"end":{"line":121,"column":29}}},"7":{"name":"(anonymous_7)","line":137,"loc":{"start":{"line":137,"column":22},"end":{"line":137,"column":34}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":146,"column":40}},"2":{"start":{"line":25,"column":0},"end":{"line":25,"column":67}},"3":{"start":{"line":27,"column":0},"end":{"line":73,"column":2}},"4":{"start":{"line":75,"column":0},"end":{"line":142,"column":3}},"5":{"start":{"line":82,"column":8},"end":{"line":84,"column":9}},"6":{"start":{"line":83,"column":12},"end":{"line":83,"column":51}},"7":{"start":{"line":86,"column":8},"end":{"line":86,"column":20}},"8":{"start":{"line":96,"column":8},"end":{"line":98,"column":9}},"9":{"start":{"line":97,"column":12},"end":{"line":97,"column":51}},"10":{"start":{"line":100,"column":8},"end":{"line":100,"column":20}},"11":{"start":{"line":110,"column":8},"end":{"line":110,"column":36}},"12":{"start":{"line":122,"column":8},"end":{"line":122,"column":86}},"13":{"start":{"line":138,"column":8},"end":{"line":138,"column":52}},"14":{"start":{"line":140,"column":8},"end":{"line":140,"column":89}}},"branchMap":{"1":{"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}}]},"2":{"line":96,"type":"if","locations":[{"start":{"line":96,"column":8},"end":{"line":96,"column":8}},{"start":{"line":96,"column":8},"end":{"line":96,"column":8}}]},"3":{"line":122,"type":"binary-expr","locations":[{"start":{"line":122,"column":16},"end":{"line":122,"column":39}},{"start":{"line":122,"column":43},"end":{"line":122,"column":84}}]},"4":{"line":140,"type":"cond-expr","locations":[{"start":{"line":140,"column":36},"end":{"line":140,"column":37}},{"start":{"line":140,"column":40},"end":{"line":140,"column":88}}]}},"code":["(function () { YUI.add('paginator-core', function (Y, NAME) {","","/**"," Paginator's core functionality consists of keeping track of the current page"," being displayed and providing information for previous and next pages.",""," @module paginator"," @submodule paginator-core"," @since 3.11.0"," */","","/**"," _API docs for this extension are included in the Paginator class._",""," Class extension providing the core API and structure for the Paginator module.",""," Use this class extension with Widget or another Base-based superclass to"," create the basic Paginator model API and composing class structure.",""," @class Paginator.Core"," @for Paginator"," @since 3.11.0"," */","","var PaginatorCore = Y.namespace('Paginator').Core = function () {};","","PaginatorCore.ATTRS = {"," /**"," Current page count. First page is 1.",""," @attribute page"," @type Number"," @default 1"," **/"," page: {"," value: 1"," },",""," /**"," Total number of pages to display",""," @readOnly"," @attribute totalPages"," @type Number"," **/"," totalPages: {"," readOnly: true,"," getter: '_getTotalPagesFn'"," },",""," /**"," Maximum number of items per page. A value of negative one (-1) indicates"," all items on one page.",""," @attribute itemsPerPage"," @type Number"," @default 10"," **/"," itemsPerPage: {"," value: 10"," },",""," /**"," Total number of items in all pages.",""," @attribute totalItems"," @type Number"," @default 0"," **/"," totalItems: {"," value: 0"," }","};","","Y.mix(PaginatorCore.prototype, {"," /**"," Sets the page to the previous page in the set, if there is a previous page."," @method prevPage"," @chainable"," */"," prevPage: function () {"," if (this.hasPrevPage()) {"," this.set('page', this.get('page') - 1);"," }",""," return this;"," },",""," /**"," Sets the page to the next page in the set, if there is a next page.",""," @method nextPage"," @chainable"," */"," nextPage: function () {"," if (this.hasNextPage()) {"," this.set('page', this.get('page') + 1);"," }",""," return this;"," },",""," /**"," Returns True if there is a previous page in the set.",""," @method hasPrevPage"," @return {Boolean} `true` if there is a previous page, `false` otherwise."," */"," hasPrevPage: function () {"," return this.get('page') > 1;"," },",""," /**"," Returns True if there is a next page in the set.",""," If totalItems isn't set, assume there is always next page.",""," @method hasNextPage"," @return {Boolean} `true` if there is a next page, `false` otherwise."," */"," hasNextPage: function () {"," return (!this.get('totalItems') || this.get('page') < this.get('totalPages'));"," },","",""," //--- P R O T E C T E D",""," /**"," Returns the total number of pages based on the total number of"," items provided and the number of items per page",""," @protected"," @method _getTotalPagesFn"," @return {Number} Total number of pages based on total number of items and"," items per page or one if itemsPerPage is less than one"," */"," _getTotalPagesFn: function () {"," var itemsPerPage = this.get('itemsPerPage');",""," return (itemsPerPage < 1) ? 1 : Math.ceil(this.get('totalItems') / itemsPerPage);"," }","});","","","","}, '@VERSION@', {\"requires\": [\"base\"]});","","}());"]}; } var __cov_s65kVCjUVYd4xLZimuejTQ = __coverage__['build/paginator-core/paginator-core.js']; -__cov_s65kVCjUVYd4xLZimuejTQ.s['1']++;YUI.add('paginator-core',function(Y,NAME){__cov_s65kVCjUVYd4xLZimuejTQ.f['1']++;__cov_s65kVCjUVYd4xLZimuejTQ.s['2']++;var PaginatorCore=Y.namespace('Paginator').Core=function(){__cov_s65kVCjUVYd4xLZimuejTQ.f['2']++;};__cov_s65kVCjUVYd4xLZimuejTQ.s['3']++;PaginatorCore.ATTRS={page:{value:1},totalPages:{readOnly:true,getter:'_getTotalPagesFn'},itemsPerPage:{value:10},totalItems:{value:0}};__cov_s65kVCjUVYd4xLZimuejTQ.s['4']++;Y.mix(PaginatorCore.prototype,{prevPage:function(){__cov_s65kVCjUVYd4xLZimuejTQ.f['3']++;__cov_s65kVCjUVYd4xLZimuejTQ.s['5']++;if(this.hasPrevPage()){__cov_s65kVCjUVYd4xLZimuejTQ.b['1'][0]++;__cov_s65kVCjUVYd4xLZimuejTQ.s['6']++;this.set('page',this.get('page')-1);}else{__cov_s65kVCjUVYd4xLZimuejTQ.b['1'][1]++;}__cov_s65kVCjUVYd4xLZimuejTQ.s['7']++;return this;},nextPage:function(){__cov_s65kVCjUVYd4xLZimuejTQ.f['4']++;__cov_s65kVCjUVYd4xLZimuejTQ.s['8']++;if(this.hasNextPage()){__cov_s65kVCjUVYd4xLZimuejTQ.b['2'][0]++;__cov_s65kVCjUVYd4xLZimuejTQ.s['9']++;this.set('page',this.get('page')+1);}else{__cov_s65kVCjUVYd4xLZimuejTQ.b['2'][1]++;}__cov_s65kVCjUVYd4xLZimuejTQ.s['10']++;return this;},hasPrevPage:function(){__cov_s65kVCjUVYd4xLZimuejTQ.f['5']++;__cov_s65kVCjUVYd4xLZimuejTQ.s['11']++;return this.get('page')>1;},hasNextPage:function(){__cov_s65kVCjUVYd4xLZimuejTQ.f['6']++;__cov_s65kVCjUVYd4xLZimuejTQ.s['12']++;return(__cov_s65kVCjUVYd4xLZimuejTQ.b['3'][0]++,!this.get('totalItems'))||(__cov_s65kVCjUVYd4xLZimuejTQ.b['3'][1]++,this.get('page')1;},hasNextPage:function(){__cov_s65kVCjUVYd4xLZimuejTQ.f['6']++;__cov_s65kVCjUVYd4xLZimuejTQ.s['12']++;return(__cov_s65kVCjUVYd4xLZimuejTQ.b['3'][0]++,!this.get('totalItems'))||(__cov_s65kVCjUVYd4xLZimuejTQ.b['3'][1]++,this.get('page')
\","," CHANGE = \"Change\","," LOADING = \"loading\",",""," _UISET = \"_uiSet\",",""," EMPTY_STR = \"\","," EMPTY_FN = function() {},",""," TRUE = true,"," FALSE = false,",""," UI,"," ATTRS = {},"," UI_ATTRS = [VISIBLE, DISABLED, HEIGHT, WIDTH, FOCUSED, TAB_INDEX],",""," WEBKIT = Y.UA.webkit,",""," // Widget nodeid-to-instance map."," _instances = {};","","/**"," * A base class for widgets, providing:"," * "," *"," * @param config {Object} Object literal specifying widget configuration properties."," *"," * @class Widget"," * @constructor"," * @extends Base"," */","function Widget(config) {",""," // kweight"," var widget = this,"," parentNode,"," render,"," constructor = widget.constructor;",""," widget._strs = {};"," widget._cssPrefix = constructor.CSS_PREFIX || _getClassName(constructor.NAME.toLowerCase());",""," // We need a config for HTML_PARSER to work."," config = config || {};",""," Widget.superclass.constructor.call(widget, config);",""," render = widget.get(RENDER);",""," if (render) {"," // Render could be a node or boolean"," if (render !== TRUE) {"," parentNode = render;"," }"," widget.render(parentNode);"," }","}","","/**"," * Static property provides a string to identify the class."," *

"," * Currently used to apply class identifiers to the bounding box"," * and to classify events fired by the widget."," *

"," *"," * @property NAME"," * @type String"," * @static"," */","Widget.NAME = \"widget\";","","/**"," * Constant used to identify state changes originating from"," * the DOM (as opposed to the JavaScript model)."," *"," * @property UI_SRC"," * @type String"," * @static"," * @final"," */","UI = Widget.UI_SRC = \"ui\";","","/**"," * Static property used to define the default attribute"," * configuration for the Widget."," *"," * @property ATTRS"," * @type Object"," * @static"," */","Widget.ATTRS = ATTRS;","","// Trying to optimize kweight by setting up attrs this way saves about 0.4K min'd","","/**"," * @attribute id"," * @writeOnce"," * @default Generated using guid()"," * @type String"," */","","ATTRS[ID] = {"," valueFn: \"_guid\","," writeOnce: TRUE","};","","/**"," * Flag indicating whether or not this Widget"," * has been through the render lifecycle phase."," *"," * @attribute rendered"," * @readOnly"," * @default false"," * @type boolean"," */","ATTRS[RENDERED] = {"," value:FALSE,"," readOnly: TRUE","};","","/**"," * @attribute boundingBox"," * @description The outermost DOM node for the Widget, used for sizing and positioning"," * of a Widget as well as a containing element for any decorator elements used"," * for skinning."," * @type String | Node"," * @writeOnce"," */","ATTRS[BOUNDING_BOX] = {"," valueFn:\"_defaultBB\","," setter: \"_setBB\","," writeOnce: TRUE","};","","/**"," * @attribute contentBox"," * @description A DOM node that is a direct descendant of a Widget's bounding box that"," * houses its content."," * @type String | Node"," * @writeOnce"," */","ATTRS[CONTENT_BOX] = {"," valueFn:\"_defaultCB\","," setter: \"_setCB\","," writeOnce: TRUE","};","","/**"," * @attribute tabIndex"," * @description Number (between -32767 to 32767) indicating the widget's"," * position in the default tab flow. The value is used to set the"," * \"tabIndex\" attribute on the widget's bounding box. Negative values allow"," * the widget to receive DOM focus programmatically (by calling the focus"," * method), while being removed from the default tab flow. A value of"," * null removes the \"tabIndex\" attribute from the widget's bounding box."," * @type Number"," * @default null"," */","ATTRS[TAB_INDEX] = {"," value: null,"," validator: \"_validTabIndex\"","};","","/**"," * @attribute focused"," * @description Boolean indicating if the Widget, or one of its descendants,"," * has focus."," * @readOnly"," * @default false"," * @type boolean"," */","ATTRS[FOCUSED] = {"," value: FALSE,"," readOnly:TRUE","};","","/**"," * @attribute disabled"," * @description Boolean indicating if the Widget should be disabled. The disabled implementation"," * is left to the specific classes extending widget."," * @default false"," * @type boolean"," */","ATTRS[DISABLED] = {"," value: FALSE","};","","/**"," * @attribute visible"," * @description Boolean indicating whether or not the Widget is visible."," * @default TRUE"," * @type boolean"," */","ATTRS[VISIBLE] = {"," value: TRUE","};","","/**"," * @attribute height"," * @description String with units, or number, representing the height of the Widget. If a number is provided,"," * the default unit, defined by the Widgets DEF_UNIT, property is used."," * @default EMPTY_STR"," * @type {String | Number}"," */","ATTRS[HEIGHT] = {"," value: EMPTY_STR","};","","/**"," * @attribute width"," * @description String with units, or number, representing the width of the Widget. If a number is provided,"," * the default unit, defined by the Widgets DEF_UNIT, property is used."," * @default EMPTY_STR"," * @type {String | Number}"," */","ATTRS[WIDTH] = {"," value: EMPTY_STR","};","","/**"," * @attribute strings"," * @description Collection of strings used to label elements of the Widget's UI."," * @default null"," * @type Object"," */","ATTRS[STRINGS] = {"," value: {},"," setter: \"_strSetter\","," getter: \"_strGetter\"","};","","/**"," * Whether or not to render the widget automatically after init, and optionally, to which parent node."," *"," * @attribute render"," * @type boolean | Node"," * @writeOnce"," */","ATTRS[RENDER] = {"," value:FALSE,"," writeOnce:TRUE","};","","/**"," * The css prefix which the static Widget.getClassName method should use when constructing class names"," *"," * @property CSS_PREFIX"," * @type String"," * @default Widget.NAME.toLowerCase()"," * @private"," * @static"," */","Widget.CSS_PREFIX = _getClassName(Widget.NAME.toLowerCase());","","/**"," * Generate a standard prefixed classname for the Widget, prefixed by the default prefix defined"," * by the Y.config.classNamePrefix attribute used by ClassNameManager and"," * Widget.NAME.toLowerCase() (e.g. \"yui-widget-xxxxx-yyyyy\", based on default values for"," * the prefix and widget class name)."," *

"," * The instance based version of this method can be used to generate standard prefixed classnames,"," * based on the instances NAME, as opposed to Widget.NAME. This method should be used when you"," * need to use a constant class name across different types instances."," *

"," * @method getClassName"," * @param {String*} args* 0..n strings which should be concatenated, using the default separator defined by ClassNameManager, to create the class name"," */","Widget.getClassName = function() {"," // arguments needs to be array'fied to concat"," return _getClassName.apply(ClassNameManager, [Widget.CSS_PREFIX].concat(Y.Array(arguments), true));","};","","_getWidgetClassName = Widget.getClassName;","","/**"," * Returns the widget instance whose bounding box contains, or is, the given node."," *

"," * In the case of nested widgets, the nearest bounding box ancestor is used to"," * return the widget instance."," *

"," * @method getByNode"," * @static"," * @param node {Node | String} The node for which to return a Widget instance. If a selector"," * string is passed in, which selects more than one node, the first node found is used."," * @return {Widget} Widget instance, or null if not found."," */","Widget.getByNode = function(node) {"," var widget,"," widgetMarker = _getWidgetClassName();",""," node = Node.one(node);"," if (node) {"," node = node.ancestor(\".\" + widgetMarker, true);"," if (node) {"," widget = _instances[Y.stamp(node, true)];"," }"," }",""," return widget || null;","};","","Y.extend(Widget, Y.Base, {",""," /**"," * Returns a class name prefixed with the the value of the"," * YUI.config.classNamePrefix attribute + the instances NAME property."," * Uses YUI.config.classNameDelimiter attribute to delimit the provided strings."," * e.g."," * "," *
","     *    // returns \"yui-slider-foo-bar\", for a slider instance","     *    var scn = slider.getClassName('foo','bar');","     *","     *    // returns \"yui-overlay-foo-bar\", for an overlay instance","     *    var ocn = overlay.getClassName('foo','bar');","     * 
"," *
"," *"," * @method getClassName"," * @param {String} [classnames*] One or more classname bits to be joined and prefixed"," */"," getClassName: function () {"," return _getClassName.apply(ClassNameManager, [this._cssPrefix].concat(Y.Array(arguments), true));"," },",""," /**"," * Initializer lifecycle implementation for the Widget class. Registers the"," * widget instance, and runs through the Widget's HTML_PARSER definition."," *"," * @method initializer"," * @protected"," * @param config {Object} Configuration object literal for the widget"," */"," initializer: function(config) {",""," var bb = this.get(BOUNDING_BOX);",""," if (bb instanceof Node) {"," this._mapInstance(Y.stamp(bb));"," }",""," /**"," * Notification event, which widget implementations can fire, when"," * they change the content of the widget. This event has no default"," * behavior and cannot be prevented, so the \"on\" or \"after\""," * moments are effectively equivalent (with on listeners being invoked before"," * after listeners)."," *"," * @event widget:contentUpdate"," * @preventable false"," * @param {EventFacade} e The Event Facade"," */"," },",""," /**"," * Utility method used to add an entry to the boundingBox id to instance map."," *"," * This method can be used to populate the instance with lazily created boundingBox Node references."," *"," * @method _mapInstance"," * @param {String} The boundingBox id"," * @protected"," */"," _mapInstance : function(id) {"," _instances[id] = this;"," },",""," /**"," * Destructor lifecycle implementation for the Widget class. Purges events attached"," * to the bounding box and content box, removes them from the DOM and removes"," * the Widget from the list of registered widgets."," *"," * @method destructor"," * @protected"," */"," destructor: function() {",""," var boundingBox = this.get(BOUNDING_BOX),"," bbGuid;",""," if (boundingBox instanceof Node) {"," bbGuid = Y.stamp(boundingBox,true);",""," if (bbGuid in _instances) {"," delete _instances[bbGuid];"," }",""," this._destroyBox();"," }"," },",""," /**"," *

"," * Destroy lifecycle method. Fires the destroy"," * event, prior to invoking destructors for the"," * class hierarchy."," *"," * Overrides Base's implementation, to support arguments to destroy"," *

"," *

"," * Subscribers to the destroy"," * event can invoke preventDefault on the event object, to prevent destruction"," * from proceeding."," *

"," * @method destroy"," * @param destroyAllNodes {Boolean} If true, all nodes contained within the Widget are"," * removed and destroyed. Defaults to false due to potentially high run-time cost."," * @return {Widget} A reference to this object"," * @chainable"," */"," destroy: function(destroyAllNodes) {"," this._destroyAllNodes = destroyAllNodes;"," return Widget.superclass.destroy.apply(this);"," },",""," /**"," * Removes and destroys the widgets rendered boundingBox, contentBox,"," * and detaches bound UI events."," *"," * @method _destroyBox"," * @protected"," */"," _destroyBox : function() {",""," var boundingBox = this.get(BOUNDING_BOX),"," contentBox = this.get(CONTENT_BOX),"," deep = this._destroyAllNodes,"," same;",""," same = boundingBox && boundingBox.compareTo(contentBox);",""," if (this.UI_EVENTS) {"," this._destroyUIEvents();"," }",""," this._unbindUI(boundingBox);",""," if (contentBox) {"," if (deep) {"," contentBox.empty();"," }"," contentBox.remove(TRUE);"," }",""," if (!same) {"," if (deep) {"," boundingBox.empty();"," }"," boundingBox.remove(TRUE);"," }"," },",""," /**"," * Establishes the initial DOM for the widget. Invoking this"," * method will lead to the creating of all DOM elements for"," * the widget (or the manipulation of existing DOM elements"," * for the progressive enhancement use case)."," *

"," * This method should only be invoked once for an initialized"," * widget."," *

"," *

"," * It delegates to the widget specific renderer method to do"," * the actual work."," *

"," *"," * @method render"," * @chainable"," * @final"," * @param parentNode {Object | String} Optional. The Node under which the"," * Widget is to be rendered. This can be a Node instance or a CSS selector string."," *

"," * If the selector string returns more than one Node, the first node will be used"," * as the parentNode. NOTE: This argument is required if both the boundingBox and contentBox"," * are not currently in the document. If it's not provided, the Widget will be rendered"," * to the body of the current document in this case."," *

"," */"," render: function(parentNode) {",""," if (!this.get(DESTROYED) && !this.get(RENDERED)) {"," /**"," * Lifecycle event for the render phase, fired prior to rendering the UI"," * for the widget (prior to invoking the widget's renderer method)."," *

"," * Subscribers to the \"on\" moment of this event, will be notified"," * before the widget is rendered."," *

"," *

"," * Subscribers to the \"after\" moment of this event, will be notified"," * after rendering is complete."," *

"," *"," * @event render"," * @preventable _defRenderFn"," * @param {EventFacade} e The Event Facade"," */"," this.publish(RENDER, {"," queuable:FALSE,"," fireOnce:TRUE,"," defaultTargetOnly:TRUE,"," defaultFn: this._defRenderFn"," });",""," this.fire(RENDER, {parentNode: (parentNode) ? Node.one(parentNode) : null});"," }"," return this;"," },",""," /**"," * Default render handler"," *"," * @method _defRenderFn"," * @protected"," * @param {EventFacade} e The Event object"," * @param {Node} parentNode The parent node to render to, if passed in to the render method"," */"," _defRenderFn : function(e) {"," this._parentNode = e.parentNode;",""," this.renderer();"," this._set(RENDERED, TRUE);",""," this._removeLoadingClassNames();"," },",""," /**"," * Creates DOM (or manipulates DOM for progressive enhancement)"," * This method is invoked by render() and is not chained"," * automatically for the class hierarchy (unlike initializer, destructor)"," * so it should be chained manually for subclasses if required."," *"," * @method renderer"," * @protected"," */"," renderer: function() {"," // kweight"," var widget = this;",""," widget._renderUI();"," widget.renderUI();",""," widget._bindUI();"," widget.bindUI();",""," widget._syncUI();"," widget.syncUI();"," },",""," /**"," * Configures/Sets up listeners to bind Widget State to UI/DOM"," *"," * This method is not called by framework and is not chained"," * automatically for the class hierarchy."," *"," * @method bindUI"," * @protected"," */"," bindUI: EMPTY_FN,",""," /**"," * Adds nodes to the DOM"," *"," * This method is not called by framework and is not chained"," * automatically for the class hierarchy."," *"," * @method renderUI"," * @protected"," */"," renderUI: EMPTY_FN,",""," /**"," * Refreshes the rendered UI, based on Widget State"," *"," * This method is not called by framework and is not chained"," * automatically for the class hierarchy."," *"," * @method syncUI"," * @protected"," *"," */"," syncUI: EMPTY_FN,",""," /**"," * @method hide"," * @description Hides the Widget by setting the \"visible\" attribute to \"false\"."," * @chainable"," */"," hide: function() {"," return this.set(VISIBLE, FALSE);"," },",""," /**"," * @method show"," * @description Shows the Widget by setting the \"visible\" attribute to \"true\"."," * @chainable"," */"," show: function() {"," return this.set(VISIBLE, TRUE);"," },",""," /**"," * @method focus"," * @description Causes the Widget to receive the focus by setting the \"focused\""," * attribute to \"true\"."," * @chainable"," */"," focus: function () {"," return this._set(FOCUSED, TRUE);"," },",""," /**"," * @method blur"," * @description Causes the Widget to lose focus by setting the \"focused\" attribute"," * to \"false\""," * @chainable"," */"," blur: function () {"," return this._set(FOCUSED, FALSE);"," },",""," /**"," * @method enable"," * @description Set the Widget's \"disabled\" attribute to \"false\"."," * @chainable"," */"," enable: function() {"," return this.set(DISABLED, FALSE);"," },",""," /**"," * @method disable"," * @description Set the Widget's \"disabled\" attribute to \"true\"."," * @chainable"," */"," disable: function() {"," return this.set(DISABLED, TRUE);"," },",""," /**"," * @method _uiSizeCB"," * @protected"," * @param {boolean} expand"," */"," _uiSizeCB : function(expand) {"," this.get(CONTENT_BOX).toggleClass(_getWidgetClassName(CONTENT, \"expanded\"), expand);"," },",""," /**"," * Helper method to collect the boundingBox and contentBox and append to the provided parentNode, if not"," * already a child. The owner document of the boundingBox, or the owner document of the contentBox will be used"," * as the document into which the Widget is rendered if a parentNode is node is not provided. If both the boundingBox and"," * the contentBox are not currently in the document, and no parentNode is provided, the widget will be rendered"," * to the current document's body."," *"," * @method _renderBox"," * @private"," * @param {Node} parentNode The parentNode to render the widget to. If not provided, and both the boundingBox and"," * the contentBox are not currently in the document, the widget will be rendered to the current document's body."," */"," _renderBox: function(parentNode) {",""," // TODO: Performance Optimization [ More effective algo to reduce Node refs, compares, replaces? ]",""," var widget = this, // kweight"," contentBox = widget.get(CONTENT_BOX),"," boundingBox = widget.get(BOUNDING_BOX),"," srcNode = widget.get(SRC_NODE),"," defParentNode = widget.DEF_PARENT_NODE,",""," doc = (srcNode && srcNode.get(OWNER_DOCUMENT)) || boundingBox.get(OWNER_DOCUMENT) || contentBox.get(OWNER_DOCUMENT);",""," // If srcNode (assume it's always in doc), have contentBox take its place (widget render responsible for re-use of srcNode contents)"," if (srcNode && !srcNode.compareTo(contentBox) && !contentBox.inDoc(doc)) {"," srcNode.replace(contentBox);"," }",""," if (!boundingBox.compareTo(contentBox.get(PARENT_NODE)) && !boundingBox.compareTo(contentBox)) {"," // If contentBox box is already in the document, have boundingBox box take it's place"," if (contentBox.inDoc(doc)) {"," contentBox.replace(boundingBox);"," }"," boundingBox.appendChild(contentBox);"," }",""," parentNode = parentNode || (defParentNode && Node.one(defParentNode));",""," if (parentNode) {"," parentNode.appendChild(boundingBox);"," } else if (!boundingBox.inDoc(doc)) {"," Node.one(BODY).insert(boundingBox, 0);"," }"," },",""," /**"," * Setter for the boundingBox attribute"," *"," * @method _setBB"," * @private"," * @param {Node|String} node"," * @return Node"," */"," _setBB: function(node) {"," return this._setBox(this.get(ID), node, this.BOUNDING_TEMPLATE, true);"," },",""," /**"," * Setter for the contentBox attribute"," *"," * @method _setCB"," * @private"," * @param {Node|String} node"," * @return Node"," */"," _setCB: function(node) {"," return (this.CONTENT_TEMPLATE === null) ? this.get(BOUNDING_BOX) : this._setBox(null, node, this.CONTENT_TEMPLATE, false);"," },",""," /**"," * Returns the default value for the boundingBox attribute."," *"," * For the Widget class, this will most commonly be null (resulting in a new"," * boundingBox node instance being created), unless a srcNode was provided"," * and CONTENT_TEMPLATE is null, in which case it will be srcNode."," * This behavior was introduced in @VERSION@ to accomodate single-box widgets"," * whose BB & CB both point to srcNode (e.g. Y.Button)."," *"," * @method _defaultBB"," * @protected"," */"," _defaultBB : function() {"," var node = this.get(SRC_NODE),"," nullCT = (this.CONTENT_TEMPLATE === null);",""," return ((node && nullCT) ? node : null);"," },",""," /**"," * Returns the default value for the contentBox attribute."," *"," * For the Widget class, this will be the srcNode if provided, otherwise null (resulting in"," * a new contentBox node instance being created)"," *"," * @method _defaultCB"," * @protected"," */"," _defaultCB : function(node) {"," return this.get(SRC_NODE) || null;"," },",""," /**"," * Helper method to set the bounding/content box, or create it from"," * the provided template if not found."," *"," * @method _setBox"," * @private"," *"," * @param {String} id The node's id attribute"," * @param {Node|String} node The node reference"," * @param {String} template HTML string template for the node"," * @param {boolean} isBounding true if this is the boundingBox, false if it's the contentBox"," * @return {Node} The node"," */"," _setBox : function(id, node, template, isBounding) {",""," node = Node.one(node);",""," if (!node) {"," node = Node.create(template);",""," if (isBounding) {"," this._bbFromTemplate = true;"," } else {"," this._cbFromTemplate = true;"," }"," }",""," if (!node.get(ID)) {"," node.set(ID, id || Y.guid());"," }",""," return node;"," },",""," /**"," * Initializes the UI state for the Widget's bounding/content boxes."," *"," * @method _renderUI"," * @protected"," */"," _renderUI: function() {"," this._renderBoxClassNames();"," this._renderBox(this._parentNode);"," },",""," /**"," * Applies standard class names to the boundingBox and contentBox"," *"," * @method _renderBoxClassNames"," * @protected"," */"," _renderBoxClassNames : function() {"," var classes = this._getClasses(),"," cl,"," boundingBox = this.get(BOUNDING_BOX),"," i;",""," boundingBox.addClass(_getWidgetClassName());",""," // Start from Widget Sub Class"," for (i = classes.length-3; i >= 0; i--) {"," cl = classes[i];"," boundingBox.addClass(cl.CSS_PREFIX || _getClassName(cl.NAME.toLowerCase()));"," }",""," // Use instance based name for content box"," this.get(CONTENT_BOX).addClass(this.getClassName(CONTENT));"," },",""," /**"," * Removes class names representative of the widget's loading state from"," * the boundingBox."," *"," * @method _removeLoadingClassNames"," * @protected"," */"," _removeLoadingClassNames: function () {",""," var boundingBox = this.get(BOUNDING_BOX),"," contentBox = this.get(CONTENT_BOX),"," instClass = this.getClassName(LOADING),"," widgetClass = _getWidgetClassName(LOADING);",""," boundingBox.removeClass(widgetClass)"," .removeClass(instClass);",""," contentBox.removeClass(widgetClass)"," .removeClass(instClass);"," },",""," /**"," * Sets up DOM and CustomEvent listeners for the widget."," *"," * @method _bindUI"," * @protected"," */"," _bindUI: function() {"," this._bindAttrUI(this._UI_ATTRS.BIND);"," this._bindDOM();"," },",""," /**"," * @method _unbindUI"," * @protected"," */"," _unbindUI : function(boundingBox) {"," this._unbindDOM(boundingBox);"," },",""," /**"," * Sets up DOM listeners, on elements rendered by the widget."," *"," * @method _bindDOM"," * @protected"," */"," _bindDOM : function() {"," var oDocument = this.get(BOUNDING_BOX).get(OWNER_DOCUMENT),"," focusHandle = Widget._hDocFocus;",""," // Shared listener across all Widgets."," if (!focusHandle) {"," focusHandle = Widget._hDocFocus = oDocument.on(\"focus\", this._onDocFocus, this);"," focusHandle.listeners = {"," count: 0"," };"," }",""," focusHandle.listeners[Y.stamp(this, true)] = true;"," focusHandle.listeners.count++;",""," //\tFix for Webkit:"," //\tDocument doesn't receive focus in Webkit when the user mouses"," //\tdown on it, so the \"focused\" attribute won't get set to the"," //\tcorrect value. Keeping this instance based for now, potential better performance."," // Otherwise we'll end up looking up widgets from the DOM on every mousedown."," if (WEBKIT){"," this._hDocMouseDown = oDocument.on(\"mousedown\", this._onDocMouseDown, this);"," }"," },",""," /**"," * @method _unbindDOM"," * @protected"," */"," _unbindDOM : function(boundingBox) {",""," var focusHandle = Widget._hDocFocus,"," yuid = Y.stamp(this, true),"," focusListeners,"," mouseHandle = this._hDocMouseDown;",""," if (focusHandle) {",""," focusListeners = focusHandle.listeners;",""," if (focusListeners[yuid]) {"," delete focusListeners[yuid];"," focusListeners.count--;"," }",""," if (focusListeners.count === 0) {"," focusHandle.detach();"," Widget._hDocFocus = null;"," }"," }",""," if (WEBKIT && mouseHandle) {"," mouseHandle.detach();"," }"," },",""," /**"," * Updates the widget UI to reflect the attribute state."," *"," * @method _syncUI"," * @protected"," */"," _syncUI: function() {"," this._syncAttrUI(this._UI_ATTRS.SYNC);"," },",""," /**"," * Sets the height on the widget's bounding box element"," *"," * @method _uiSetHeight"," * @protected"," * @param {String | Number} val"," */"," _uiSetHeight: function(val) {"," this._uiSetDim(HEIGHT, val);"," this._uiSizeCB((val !== EMPTY_STR && val !== AUTO));"," },",""," /**"," * Sets the width on the widget's bounding box element"," *"," * @method _uiSetWidth"," * @protected"," * @param {String | Number} val"," */"," _uiSetWidth: function(val) {"," this._uiSetDim(WIDTH, val);"," },",""," /**"," * @method _uiSetDim"," * @private"," * @param {String} dim The dimension - \"width\" or \"height\""," * @param {Number | String} val The value to set"," */"," _uiSetDim: function(dimension, val) {"," this.get(BOUNDING_BOX).setStyle(dimension, L.isNumber(val) ? val + this.DEF_UNIT : val);"," },",""," /**"," * Sets the visible state for the UI"," *"," * @method _uiSetVisible"," * @protected"," * @param {boolean} val"," */"," _uiSetVisible: function(val) {"," this.get(BOUNDING_BOX).toggleClass(this.getClassName(HIDDEN), !val);"," },",""," /**"," * Sets the disabled state for the UI"," *"," * @method _uiSetDisabled"," * @protected"," * @param {boolean} val"," */"," _uiSetDisabled: function(val) {"," this.get(BOUNDING_BOX).toggleClass(this.getClassName(DISABLED), val);"," },",""," /**"," * Sets the focused state for the UI"," *"," * @method _uiSetFocused"," * @protected"," * @param {boolean} val"," * @param {string} src String representing the source that triggered an update to"," * the UI."," */"," _uiSetFocused: function(val, src) {"," var boundingBox = this.get(BOUNDING_BOX);"," boundingBox.toggleClass(this.getClassName(FOCUSED), val);",""," if (src !== UI) {"," if (val) {"," boundingBox.focus();"," } else {"," boundingBox.blur();"," }"," }"," },",""," /**"," * Set the tabIndex on the widget's rendered UI"," *"," * @method _uiSetTabIndex"," * @protected"," * @param Number"," */"," _uiSetTabIndex: function(index) {"," var boundingBox = this.get(BOUNDING_BOX);",""," if (L.isNumber(index)) {"," boundingBox.set(TAB_INDEX, index);"," } else {"," boundingBox.removeAttribute(TAB_INDEX);"," }"," },",""," /**"," * @method _onDocMouseDown"," * @description \"mousedown\" event handler for the owner document of the"," * widget's bounding box."," * @protected"," * @param {EventFacade} evt The event facade for the DOM focus event"," */"," _onDocMouseDown: function (evt) {"," if (this._domFocus) {"," this._onDocFocus(evt);"," }"," },",""," /**"," * DOM focus event handler, used to sync the state of the Widget with the DOM"," *"," * @method _onDocFocus"," * @protected"," * @param {EventFacade} evt The event facade for the DOM focus event"," */"," _onDocFocus: function (evt) {"," var widget = Widget.getByNode(evt.target),"," activeWidget = Widget._active;",""," if (activeWidget && (activeWidget !== widget)) {"," activeWidget._domFocus = false;"," activeWidget._set(FOCUSED, false, {src:UI});",""," Widget._active = null;"," }",""," if (widget) {"," widget._domFocus = true;"," widget._set(FOCUSED, true, {src:UI});",""," Widget._active = widget;"," }"," },",""," /**"," * Generic toString implementation for all widgets."," *"," * @method toString"," * @return {String} The default string value for the widget [ displays the NAME of the instance, and the unique id ]"," */"," toString: function() {"," // Using deprecated name prop for kweight squeeze."," return this.name + \"[\" + this.get(ID) + \"]\";"," },",""," /**"," * Default unit to use for dimension values"," *"," * @property DEF_UNIT"," * @type String"," */"," DEF_UNIT : \"px\",",""," /**"," * Default node to render the bounding box to. If not set,"," * will default to the current document body."," *"," * @property DEF_PARENT_NODE"," * @type String | Node"," */"," DEF_PARENT_NODE : null,",""," /**"," * Property defining the markup template for content box. If your Widget doesn't"," * need the dual boundingBox/contentBox structure, set CONTENT_TEMPLATE to null,"," * and contentBox and boundingBox will both point to the same Node."," *"," * @property CONTENT_TEMPLATE"," * @type String"," */"," CONTENT_TEMPLATE : DIV,",""," /**"," * Property defining the markup template for bounding box."," *"," * @property BOUNDING_TEMPLATE"," * @type String"," */"," BOUNDING_TEMPLATE : DIV,",""," /**"," * @method _guid"," * @protected"," */"," _guid : function() {"," return Y.guid();"," },",""," /**"," * @method _validTabIndex"," * @protected"," * @param {Number} tabIndex"," */"," _validTabIndex : function (tabIndex) {"," return (L.isNumber(tabIndex) || L.isNull(tabIndex));"," },",""," /**"," * Binds after listeners for the list of attributes provided"," *"," * @method _bindAttrUI"," * @private"," * @param {Array} attrs"," */"," _bindAttrUI : function(attrs) {"," var i,"," l = attrs.length;",""," for (i = 0; i < l; i++) {"," this.after(attrs[i] + CHANGE, this._setAttrUI);"," }"," },",""," /**"," * Invokes the _uiSet=ATTR NAME> method for the list of attributes provided"," *"," * @method _syncAttrUI"," * @private"," * @param {Array} attrs"," */"," _syncAttrUI : function(attrs) {"," var i, l = attrs.length, attr;"," for (i = 0; i < l; i++) {"," attr = attrs[i];"," this[_UISET + _toInitialCap(attr)](this.get(attr));"," }"," },",""," /**"," * @method _setAttrUI"," * @private"," * @param {EventFacade} e"," */"," _setAttrUI : function(e) {"," if (e.target === this) {"," this[_UISET + _toInitialCap(e.attrName)](e.newVal, e.src);"," }"," },",""," /**"," * The default setter for the strings attribute. Merges partial sets"," * into the full string set, to allow users to partial sets of strings"," *"," * @method _strSetter"," * @protected"," * @param {Object} strings"," * @return {String} The full set of strings to set"," */"," _strSetter : function(strings) {"," return Y.merge(this.get(STRINGS), strings);"," },",""," /**"," * Helper method to get a specific string value"," *"," * @deprecated Used by deprecated WidgetLocale implementations."," * @method getString"," * @param {String} key"," * @return {String} The string"," */"," getString : function(key) {"," return this.get(STRINGS)[key];"," },",""," /**"," * Helper method to get the complete set of strings for the widget"," *"," * @deprecated Used by deprecated WidgetLocale implementations."," * @method getStrings"," * @param {String} key"," * @return {String} The strings"," */"," getStrings : function() {"," return this.get(STRINGS);"," },",""," /**"," * The lists of UI attributes to bind and sync for widget's _bindUI and _syncUI implementations"," *"," * @property _UI_ATTRS"," * @type Object"," * @private"," */"," _UI_ATTRS : {"," BIND: UI_ATTRS,"," SYNC: UI_ATTRS"," }","});","","Y.Widget = Widget;","","","}, '@VERSION@', {"," \"requires\": ["," \"attribute\","," \"base-base\","," \"base-pluginhost\","," \"classnamemanager\","," \"event-focus\","," \"node-base\","," \"node-style\""," ],"," \"skinnable\": true","});","","}());"]}; + __coverage__['build/widget-base/widget-base.js'] = {"path":"build/widget-base/widget-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,"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},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0,0,0],"20":[0,0],"21":[0,0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0,0],"26":[0,0],"27":[0,0],"28":[0,0],"29":[0,0],"30":[0,0],"31":[0,0],"32":[0,0],"33":[0,0],"34":[0,0],"35":[0,0],"36":[0,0],"37":[0,0],"38":[0,0],"39":[0,0],"40":[0,0],"41":[0,0],"42":[0,0],"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],"54":[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},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":23},"end":{"line":1,"column":42}}},"2":{"name":"(anonymous_2)","line":24,"loc":{"start":{"line":24,"column":29},"end":{"line":24,"column":43}}},"3":{"name":"(anonymous_3)","line":56,"loc":{"start":{"line":56,"column":15},"end":{"line":56,"column":26}}},"4":{"name":"Widget","line":87,"loc":{"start":{"line":87,"column":0},"end":{"line":87,"column":24}}},"5":{"name":"(anonymous_5)","line":323,"loc":{"start":{"line":323,"column":22},"end":{"line":323,"column":33}}},"6":{"name":"(anonymous_6)","line":342,"loc":{"start":{"line":342,"column":19},"end":{"line":342,"column":34}}},"7":{"name":"(anonymous_7)","line":377,"loc":{"start":{"line":377,"column":18},"end":{"line":377,"column":30}}},"8":{"name":"(anonymous_8)","line":389,"loc":{"start":{"line":389,"column":17},"end":{"line":389,"column":34}}},"9":{"name":"(anonymous_9)","line":419,"loc":{"start":{"line":419,"column":19},"end":{"line":419,"column":34}}},"10":{"name":"(anonymous_10)","line":431,"loc":{"start":{"line":431,"column":16},"end":{"line":431,"column":27}}},"11":{"name":"(anonymous_11)","line":462,"loc":{"start":{"line":462,"column":13},"end":{"line":462,"column":39}}},"12":{"name":"(anonymous_12)","line":474,"loc":{"start":{"line":474,"column":18},"end":{"line":474,"column":29}}},"13":{"name":"(anonymous_13)","line":530,"loc":{"start":{"line":530,"column":12},"end":{"line":530,"column":33}}},"14":{"name":"(anonymous_14)","line":569,"loc":{"start":{"line":569,"column":19},"end":{"line":569,"column":31}}},"15":{"name":"(anonymous_15)","line":587,"loc":{"start":{"line":587,"column":14},"end":{"line":587,"column":25}}},"16":{"name":"(anonymous_16)","line":640,"loc":{"start":{"line":640,"column":10},"end":{"line":640,"column":21}}},"17":{"name":"(anonymous_17)","line":649,"loc":{"start":{"line":649,"column":10},"end":{"line":649,"column":21}}},"18":{"name":"(anonymous_18)","line":659,"loc":{"start":{"line":659,"column":11},"end":{"line":659,"column":23}}},"19":{"name":"(anonymous_19)","line":669,"loc":{"start":{"line":669,"column":10},"end":{"line":669,"column":22}}},"20":{"name":"(anonymous_20)","line":678,"loc":{"start":{"line":678,"column":12},"end":{"line":678,"column":23}}},"21":{"name":"(anonymous_21)","line":687,"loc":{"start":{"line":687,"column":13},"end":{"line":687,"column":24}}},"22":{"name":"(anonymous_22)","line":696,"loc":{"start":{"line":696,"column":16},"end":{"line":696,"column":33}}},"23":{"name":"(anonymous_23)","line":712,"loc":{"start":{"line":712,"column":16},"end":{"line":712,"column":37}}},"24":{"name":"(anonymous_24)","line":754,"loc":{"start":{"line":754,"column":12},"end":{"line":754,"column":27}}},"25":{"name":"(anonymous_25)","line":766,"loc":{"start":{"line":766,"column":12},"end":{"line":766,"column":27}}},"26":{"name":"(anonymous_26)","line":782,"loc":{"start":{"line":782,"column":17},"end":{"line":782,"column":28}}},"27":{"name":"(anonymous_27)","line":798,"loc":{"start":{"line":798,"column":17},"end":{"line":798,"column":32}}},"28":{"name":"(anonymous_28)","line":815,"loc":{"start":{"line":815,"column":14},"end":{"line":815,"column":55}}},"29":{"name":"(anonymous_29)","line":842,"loc":{"start":{"line":842,"column":15},"end":{"line":842,"column":26}}},"30":{"name":"(anonymous_30)","line":853,"loc":{"start":{"line":853,"column":27},"end":{"line":853,"column":38}}},"31":{"name":"(anonymous_31)","line":878,"loc":{"start":{"line":878,"column":30},"end":{"line":878,"column":42}}},"32":{"name":"(anonymous_32)","line":898,"loc":{"start":{"line":898,"column":13},"end":{"line":898,"column":24}}},"33":{"name":"(anonymous_33)","line":907,"loc":{"start":{"line":907,"column":16},"end":{"line":907,"column":38}}},"34":{"name":"(anonymous_34)","line":917,"loc":{"start":{"line":917,"column":15},"end":{"line":917,"column":26}}},"35":{"name":"(anonymous_35)","line":946,"loc":{"start":{"line":946,"column":17},"end":{"line":946,"column":39}}},"36":{"name":"(anonymous_36)","line":979,"loc":{"start":{"line":979,"column":13},"end":{"line":979,"column":24}}},"37":{"name":"(anonymous_37)","line":990,"loc":{"start":{"line":990,"column":18},"end":{"line":990,"column":32}}},"38":{"name":"(anonymous_38)","line":1002,"loc":{"start":{"line":1002,"column":17},"end":{"line":1002,"column":31}}},"39":{"name":"(anonymous_39)","line":1012,"loc":{"start":{"line":1012,"column":15},"end":{"line":1012,"column":40}}},"40":{"name":"(anonymous_40)","line":1023,"loc":{"start":{"line":1023,"column":19},"end":{"line":1023,"column":33}}},"41":{"name":"(anonymous_41)","line":1034,"loc":{"start":{"line":1034,"column":20},"end":{"line":1034,"column":34}}},"42":{"name":"(anonymous_42)","line":1047,"loc":{"start":{"line":1047,"column":19},"end":{"line":1047,"column":38}}},"43":{"name":"(anonymous_43)","line":1067,"loc":{"start":{"line":1067,"column":20},"end":{"line":1067,"column":36}}},"44":{"name":"(anonymous_44)","line":1084,"loc":{"start":{"line":1084,"column":21},"end":{"line":1084,"column":36}}},"45":{"name":"(anonymous_45)","line":1097,"loc":{"start":{"line":1097,"column":17},"end":{"line":1097,"column":32}}},"46":{"name":"(anonymous_46)","line":1122,"loc":{"start":{"line":1122,"column":14},"end":{"line":1122,"column":25}}},"47":{"name":"(anonymous_47)","line":1166,"loc":{"start":{"line":1166,"column":12},"end":{"line":1166,"column":23}}},"48":{"name":"(anonymous_48)","line":1175,"loc":{"start":{"line":1175,"column":21},"end":{"line":1175,"column":41}}},"49":{"name":"(anonymous_49)","line":1186,"loc":{"start":{"line":1186,"column":18},"end":{"line":1186,"column":34}}},"50":{"name":"(anonymous_50)","line":1202,"loc":{"start":{"line":1202,"column":18},"end":{"line":1202,"column":34}}},"51":{"name":"(anonymous_51)","line":1215,"loc":{"start":{"line":1215,"column":17},"end":{"line":1215,"column":29}}},"52":{"name":"(anonymous_52)","line":1230,"loc":{"start":{"line":1230,"column":17},"end":{"line":1230,"column":35}}},"53":{"name":"(anonymous_53)","line":1242,"loc":{"start":{"line":1242,"column":16},"end":{"line":1242,"column":30}}},"54":{"name":"(anonymous_54)","line":1254,"loc":{"start":{"line":1254,"column":17},"end":{"line":1254,"column":28}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1285,"column":3}},"2":{"start":{"line":16,"column":0},"end":{"line":68,"column":31}},"3":{"start":{"line":25,"column":8},"end":{"line":25,"column":68}},"4":{"start":{"line":87,"column":0},"end":{"line":112,"column":1}},"5":{"start":{"line":90,"column":4},"end":{"line":93,"column":41}},"6":{"start":{"line":95,"column":4},"end":{"line":95,"column":22}},"7":{"start":{"line":96,"column":4},"end":{"line":96,"column":96}},"8":{"start":{"line":99,"column":4},"end":{"line":99,"column":26}},"9":{"start":{"line":101,"column":4},"end":{"line":101,"column":55}},"10":{"start":{"line":103,"column":4},"end":{"line":103,"column":32}},"11":{"start":{"line":105,"column":4},"end":{"line":111,"column":5}},"12":{"start":{"line":107,"column":8},"end":{"line":109,"column":9}},"13":{"start":{"line":108,"column":12},"end":{"line":108,"column":32}},"14":{"start":{"line":110,"column":8},"end":{"line":110,"column":34}},"15":{"start":{"line":125,"column":0},"end":{"line":125,"column":23}},"16":{"start":{"line":136,"column":0},"end":{"line":136,"column":26}},"17":{"start":{"line":146,"column":0},"end":{"line":146,"column":21}},"18":{"start":{"line":157,"column":0},"end":{"line":160,"column":2}},"19":{"start":{"line":171,"column":0},"end":{"line":174,"column":2}},"20":{"start":{"line":184,"column":0},"end":{"line":188,"column":2}},"21":{"start":{"line":197,"column":0},"end":{"line":201,"column":2}},"22":{"start":{"line":214,"column":0},"end":{"line":217,"column":2}},"23":{"start":{"line":227,"column":0},"end":{"line":230,"column":2}},"24":{"start":{"line":239,"column":0},"end":{"line":241,"column":2}},"25":{"start":{"line":249,"column":0},"end":{"line":251,"column":2}},"26":{"start":{"line":260,"column":0},"end":{"line":262,"column":2}},"27":{"start":{"line":271,"column":0},"end":{"line":273,"column":2}},"28":{"start":{"line":281,"column":0},"end":{"line":285,"column":2}},"29":{"start":{"line":294,"column":0},"end":{"line":297,"column":2}},"30":{"start":{"line":308,"column":0},"end":{"line":308,"column":61}},"31":{"start":{"line":323,"column":0},"end":{"line":326,"column":2}},"32":{"start":{"line":325,"column":4},"end":{"line":325,"column":103}},"33":{"start":{"line":328,"column":0},"end":{"line":328,"column":42}},"34":{"start":{"line":342,"column":0},"end":{"line":355,"column":2}},"35":{"start":{"line":343,"column":4},"end":{"line":344,"column":45}},"36":{"start":{"line":346,"column":4},"end":{"line":346,"column":26}},"37":{"start":{"line":347,"column":4},"end":{"line":352,"column":5}},"38":{"start":{"line":348,"column":8},"end":{"line":348,"column":55}},"39":{"start":{"line":349,"column":8},"end":{"line":351,"column":9}},"40":{"start":{"line":350,"column":12},"end":{"line":350,"column":42}},"41":{"start":{"line":354,"column":4},"end":{"line":354,"column":26}},"42":{"start":{"line":357,"column":0},"end":{"line":1269,"column":3}},"43":{"start":{"line":378,"column":8},"end":{"line":378,"column":105}},"44":{"start":{"line":391,"column":8},"end":{"line":391,"column":40}},"45":{"start":{"line":393,"column":8},"end":{"line":395,"column":9}},"46":{"start":{"line":394,"column":12},"end":{"line":394,"column":34}},"47":{"start":{"line":420,"column":8},"end":{"line":420,"column":35}},"48":{"start":{"line":433,"column":8},"end":{"line":434,"column":19}},"49":{"start":{"line":436,"column":8},"end":{"line":440,"column":9}},"50":{"start":{"line":437,"column":12},"end":{"line":437,"column":43}},"51":{"start":{"line":439,"column":12},"end":{"line":439,"column":31}},"52":{"start":{"line":463,"column":8},"end":{"line":463,"column":48}},"53":{"start":{"line":464,"column":8},"end":{"line":464,"column":53}},"54":{"start":{"line":476,"column":8},"end":{"line":479,"column":17}},"55":{"start":{"line":481,"column":8},"end":{"line":481,"column":64}},"56":{"start":{"line":483,"column":8},"end":{"line":485,"column":9}},"57":{"start":{"line":484,"column":12},"end":{"line":484,"column":36}},"58":{"start":{"line":487,"column":8},"end":{"line":487,"column":36}},"59":{"start":{"line":489,"column":8},"end":{"line":494,"column":9}},"60":{"start":{"line":490,"column":12},"end":{"line":492,"column":13}},"61":{"start":{"line":491,"column":16},"end":{"line":491,"column":35}},"62":{"start":{"line":493,"column":12},"end":{"line":493,"column":36}},"63":{"start":{"line":496,"column":8},"end":{"line":501,"column":9}},"64":{"start":{"line":497,"column":12},"end":{"line":499,"column":13}},"65":{"start":{"line":498,"column":16},"end":{"line":498,"column":36}},"66":{"start":{"line":500,"column":12},"end":{"line":500,"column":37}},"67":{"start":{"line":532,"column":8},"end":{"line":557,"column":9}},"68":{"start":{"line":549,"column":12},"end":{"line":554,"column":15}},"69":{"start":{"line":556,"column":12},"end":{"line":556,"column":88}},"70":{"start":{"line":558,"column":8},"end":{"line":558,"column":20}},"71":{"start":{"line":570,"column":8},"end":{"line":570,"column":40}},"72":{"start":{"line":572,"column":8},"end":{"line":572,"column":24}},"73":{"start":{"line":573,"column":8},"end":{"line":573,"column":34}},"74":{"start":{"line":575,"column":8},"end":{"line":575,"column":40}},"75":{"start":{"line":589,"column":8},"end":{"line":589,"column":26}},"76":{"start":{"line":591,"column":8},"end":{"line":591,"column":27}},"77":{"start":{"line":592,"column":8},"end":{"line":592,"column":26}},"78":{"start":{"line":594,"column":8},"end":{"line":594,"column":25}},"79":{"start":{"line":595,"column":8},"end":{"line":595,"column":24}},"80":{"start":{"line":597,"column":8},"end":{"line":597,"column":25}},"81":{"start":{"line":598,"column":8},"end":{"line":598,"column":24}},"82":{"start":{"line":641,"column":8},"end":{"line":641,"column":40}},"83":{"start":{"line":650,"column":8},"end":{"line":650,"column":39}},"84":{"start":{"line":660,"column":8},"end":{"line":660,"column":40}},"85":{"start":{"line":670,"column":8},"end":{"line":670,"column":41}},"86":{"start":{"line":679,"column":8},"end":{"line":679,"column":41}},"87":{"start":{"line":688,"column":8},"end":{"line":688,"column":40}},"88":{"start":{"line":697,"column":8},"end":{"line":697,"column":92}},"89":{"start":{"line":716,"column":8},"end":{"line":722,"column":128}},"90":{"start":{"line":725,"column":8},"end":{"line":727,"column":9}},"91":{"start":{"line":726,"column":12},"end":{"line":726,"column":40}},"92":{"start":{"line":729,"column":8},"end":{"line":735,"column":9}},"93":{"start":{"line":731,"column":12},"end":{"line":733,"column":13}},"94":{"start":{"line":732,"column":16},"end":{"line":732,"column":48}},"95":{"start":{"line":734,"column":12},"end":{"line":734,"column":48}},"96":{"start":{"line":737,"column":8},"end":{"line":737,"column":78}},"97":{"start":{"line":739,"column":8},"end":{"line":743,"column":9}},"98":{"start":{"line":740,"column":12},"end":{"line":740,"column":48}},"99":{"start":{"line":741,"column":15},"end":{"line":743,"column":9}},"100":{"start":{"line":742,"column":12},"end":{"line":742,"column":50}},"101":{"start":{"line":755,"column":8},"end":{"line":755,"column":78}},"102":{"start":{"line":767,"column":8},"end":{"line":767,"column":130}},"103":{"start":{"line":783,"column":8},"end":{"line":784,"column":54}},"104":{"start":{"line":786,"column":8},"end":{"line":786,"column":48}},"105":{"start":{"line":799,"column":8},"end":{"line":799,"column":42}},"106":{"start":{"line":817,"column":8},"end":{"line":817,"column":30}},"107":{"start":{"line":819,"column":8},"end":{"line":827,"column":9}},"108":{"start":{"line":820,"column":12},"end":{"line":820,"column":41}},"109":{"start":{"line":822,"column":12},"end":{"line":826,"column":13}},"110":{"start":{"line":823,"column":16},"end":{"line":823,"column":44}},"111":{"start":{"line":825,"column":16},"end":{"line":825,"column":44}},"112":{"start":{"line":829,"column":8},"end":{"line":831,"column":9}},"113":{"start":{"line":830,"column":12},"end":{"line":830,"column":41}},"114":{"start":{"line":833,"column":8},"end":{"line":833,"column":20}},"115":{"start":{"line":843,"column":8},"end":{"line":843,"column":36}},"116":{"start":{"line":844,"column":8},"end":{"line":844,"column":42}},"117":{"start":{"line":854,"column":8},"end":{"line":857,"column":14}},"118":{"start":{"line":859,"column":8},"end":{"line":859,"column":52}},"119":{"start":{"line":862,"column":8},"end":{"line":865,"column":9}},"120":{"start":{"line":863,"column":12},"end":{"line":863,"column":28}},"121":{"start":{"line":864,"column":12},"end":{"line":864,"column":88}},"122":{"start":{"line":868,"column":8},"end":{"line":868,"column":67}},"123":{"start":{"line":880,"column":8},"end":{"line":883,"column":55}},"124":{"start":{"line":885,"column":8},"end":{"line":886,"column":43}},"125":{"start":{"line":888,"column":8},"end":{"line":889,"column":42}},"126":{"start":{"line":899,"column":8},"end":{"line":899,"column":46}},"127":{"start":{"line":900,"column":8},"end":{"line":900,"column":24}},"128":{"start":{"line":908,"column":8},"end":{"line":908,"column":37}},"129":{"start":{"line":918,"column":8},"end":{"line":919,"column":44}},"130":{"start":{"line":922,"column":8},"end":{"line":927,"column":9}},"131":{"start":{"line":923,"column":12},"end":{"line":923,"column":92}},"132":{"start":{"line":924,"column":12},"end":{"line":926,"column":14}},"133":{"start":{"line":929,"column":8},"end":{"line":929,"column":58}},"134":{"start":{"line":930,"column":8},"end":{"line":930,"column":38}},"135":{"start":{"line":937,"column":8},"end":{"line":939,"column":9}},"136":{"start":{"line":938,"column":12},"end":{"line":938,"column":88}},"137":{"start":{"line":948,"column":8},"end":{"line":951,"column":46}},"138":{"start":{"line":953,"column":8},"end":{"line":966,"column":9}},"139":{"start":{"line":955,"column":12},"end":{"line":955,"column":51}},"140":{"start":{"line":957,"column":12},"end":{"line":960,"column":13}},"141":{"start":{"line":958,"column":16},"end":{"line":958,"column":44}},"142":{"start":{"line":959,"column":16},"end":{"line":959,"column":39}},"143":{"start":{"line":962,"column":12},"end":{"line":965,"column":13}},"144":{"start":{"line":963,"column":16},"end":{"line":963,"column":37}},"145":{"start":{"line":964,"column":16},"end":{"line":964,"column":41}},"146":{"start":{"line":968,"column":8},"end":{"line":970,"column":9}},"147":{"start":{"line":969,"column":12},"end":{"line":969,"column":33}},"148":{"start":{"line":980,"column":8},"end":{"line":980,"column":46}},"149":{"start":{"line":991,"column":8},"end":{"line":991,"column":36}},"150":{"start":{"line":992,"column":8},"end":{"line":992,"column":60}},"151":{"start":{"line":1003,"column":8},"end":{"line":1003,"column":35}},"152":{"start":{"line":1013,"column":8},"end":{"line":1013,"column":96}},"153":{"start":{"line":1024,"column":8},"end":{"line":1024,"column":76}},"154":{"start":{"line":1035,"column":8},"end":{"line":1035,"column":77}},"155":{"start":{"line":1048,"column":9},"end":{"line":1048,"column":50}},"156":{"start":{"line":1049,"column":9},"end":{"line":1049,"column":66}},"157":{"start":{"line":1051,"column":9},"end":{"line":1057,"column":10}},"158":{"start":{"line":1052,"column":12},"end":{"line":1056,"column":13}},"159":{"start":{"line":1053,"column":16},"end":{"line":1053,"column":36}},"160":{"start":{"line":1055,"column":16},"end":{"line":1055,"column":35}},"161":{"start":{"line":1068,"column":8},"end":{"line":1068,"column":49}},"162":{"start":{"line":1070,"column":8},"end":{"line":1074,"column":9}},"163":{"start":{"line":1071,"column":12},"end":{"line":1071,"column":46}},"164":{"start":{"line":1073,"column":12},"end":{"line":1073,"column":51}},"165":{"start":{"line":1085,"column":8},"end":{"line":1087,"column":9}},"166":{"start":{"line":1086,"column":12},"end":{"line":1086,"column":34}},"167":{"start":{"line":1098,"column":8},"end":{"line":1099,"column":42}},"168":{"start":{"line":1101,"column":8},"end":{"line":1106,"column":9}},"169":{"start":{"line":1102,"column":12},"end":{"line":1102,"column":43}},"170":{"start":{"line":1103,"column":12},"end":{"line":1103,"column":56}},"171":{"start":{"line":1105,"column":12},"end":{"line":1105,"column":34}},"172":{"start":{"line":1108,"column":8},"end":{"line":1113,"column":9}},"173":{"start":{"line":1109,"column":12},"end":{"line":1109,"column":36}},"174":{"start":{"line":1110,"column":12},"end":{"line":1110,"column":49}},"175":{"start":{"line":1112,"column":12},"end":{"line":1112,"column":36}},"176":{"start":{"line":1124,"column":8},"end":{"line":1124,"column":52}},"177":{"start":{"line":1167,"column":8},"end":{"line":1167,"column":24}},"178":{"start":{"line":1176,"column":8},"end":{"line":1176,"column":60}},"179":{"start":{"line":1187,"column":8},"end":{"line":1188,"column":29}},"180":{"start":{"line":1190,"column":8},"end":{"line":1192,"column":9}},"181":{"start":{"line":1191,"column":12},"end":{"line":1191,"column":59}},"182":{"start":{"line":1203,"column":8},"end":{"line":1203,"column":38}},"183":{"start":{"line":1204,"column":8},"end":{"line":1207,"column":9}},"184":{"start":{"line":1205,"column":12},"end":{"line":1205,"column":28}},"185":{"start":{"line":1206,"column":12},"end":{"line":1206,"column":63}},"186":{"start":{"line":1216,"column":8},"end":{"line":1218,"column":9}},"187":{"start":{"line":1217,"column":12},"end":{"line":1217,"column":70}},"188":{"start":{"line":1231,"column":8},"end":{"line":1231,"column":51}},"189":{"start":{"line":1243,"column":8},"end":{"line":1243,"column":38}},"190":{"start":{"line":1255,"column":8},"end":{"line":1255,"column":33}},"191":{"start":{"line":1271,"column":0},"end":{"line":1271,"column":18}}},"branchMap":{"1":{"line":96,"type":"binary-expr","locations":[{"start":{"line":96,"column":24},"end":{"line":96,"column":46}},{"start":{"line":96,"column":50},"end":{"line":96,"column":95}}]},"2":{"line":99,"type":"binary-expr","locations":[{"start":{"line":99,"column":13},"end":{"line":99,"column":19}},{"start":{"line":99,"column":23},"end":{"line":99,"column":25}}]},"3":{"line":105,"type":"if","locations":[{"start":{"line":105,"column":4},"end":{"line":105,"column":4}},{"start":{"line":105,"column":4},"end":{"line":105,"column":4}}]},"4":{"line":107,"type":"if","locations":[{"start":{"line":107,"column":8},"end":{"line":107,"column":8}},{"start":{"line":107,"column":8},"end":{"line":107,"column":8}}]},"5":{"line":347,"type":"if","locations":[{"start":{"line":347,"column":4},"end":{"line":347,"column":4}},{"start":{"line":347,"column":4},"end":{"line":347,"column":4}}]},"6":{"line":349,"type":"if","locations":[{"start":{"line":349,"column":8},"end":{"line":349,"column":8}},{"start":{"line":349,"column":8},"end":{"line":349,"column":8}}]},"7":{"line":354,"type":"binary-expr","locations":[{"start":{"line":354,"column":11},"end":{"line":354,"column":17}},{"start":{"line":354,"column":21},"end":{"line":354,"column":25}}]},"8":{"line":393,"type":"if","locations":[{"start":{"line":393,"column":8},"end":{"line":393,"column":8}},{"start":{"line":393,"column":8},"end":{"line":393,"column":8}}]},"9":{"line":436,"type":"if","locations":[{"start":{"line":436,"column":8},"end":{"line":436,"column":8}},{"start":{"line":436,"column":8},"end":{"line":436,"column":8}}]},"10":{"line":481,"type":"binary-expr","locations":[{"start":{"line":481,"column":15},"end":{"line":481,"column":26}},{"start":{"line":481,"column":30},"end":{"line":481,"column":63}}]},"11":{"line":483,"type":"if","locations":[{"start":{"line":483,"column":8},"end":{"line":483,"column":8}},{"start":{"line":483,"column":8},"end":{"line":483,"column":8}}]},"12":{"line":489,"type":"if","locations":[{"start":{"line":489,"column":8},"end":{"line":489,"column":8}},{"start":{"line":489,"column":8},"end":{"line":489,"column":8}}]},"13":{"line":490,"type":"if","locations":[{"start":{"line":490,"column":12},"end":{"line":490,"column":12}},{"start":{"line":490,"column":12},"end":{"line":490,"column":12}}]},"14":{"line":496,"type":"if","locations":[{"start":{"line":496,"column":8},"end":{"line":496,"column":8}},{"start":{"line":496,"column":8},"end":{"line":496,"column":8}}]},"15":{"line":497,"type":"if","locations":[{"start":{"line":497,"column":12},"end":{"line":497,"column":12}},{"start":{"line":497,"column":12},"end":{"line":497,"column":12}}]},"16":{"line":532,"type":"if","locations":[{"start":{"line":532,"column":8},"end":{"line":532,"column":8}},{"start":{"line":532,"column":8},"end":{"line":532,"column":8}}]},"17":{"line":532,"type":"binary-expr","locations":[{"start":{"line":532,"column":12},"end":{"line":532,"column":32}},{"start":{"line":532,"column":36},"end":{"line":532,"column":55}}]},"18":{"line":556,"type":"cond-expr","locations":[{"start":{"line":556,"column":58},"end":{"line":556,"column":78}},{"start":{"line":556,"column":81},"end":{"line":556,"column":85}}]},"19":{"line":722,"type":"binary-expr","locations":[{"start":{"line":722,"column":19},"end":{"line":722,"column":26}},{"start":{"line":722,"column":30},"end":{"line":722,"column":57}},{"start":{"line":722,"column":62},"end":{"line":722,"column":93}},{"start":{"line":722,"column":97},"end":{"line":722,"column":127}}]},"20":{"line":725,"type":"if","locations":[{"start":{"line":725,"column":8},"end":{"line":725,"column":8}},{"start":{"line":725,"column":8},"end":{"line":725,"column":8}}]},"21":{"line":725,"type":"binary-expr","locations":[{"start":{"line":725,"column":12},"end":{"line":725,"column":19}},{"start":{"line":725,"column":23},"end":{"line":725,"column":53}},{"start":{"line":725,"column":57},"end":{"line":725,"column":79}}]},"22":{"line":729,"type":"if","locations":[{"start":{"line":729,"column":8},"end":{"line":729,"column":8}},{"start":{"line":729,"column":8},"end":{"line":729,"column":8}}]},"23":{"line":729,"type":"binary-expr","locations":[{"start":{"line":729,"column":12},"end":{"line":729,"column":63}},{"start":{"line":729,"column":67},"end":{"line":729,"column":101}}]},"24":{"line":731,"type":"if","locations":[{"start":{"line":731,"column":12},"end":{"line":731,"column":12}},{"start":{"line":731,"column":12},"end":{"line":731,"column":12}}]},"25":{"line":737,"type":"binary-expr","locations":[{"start":{"line":737,"column":21},"end":{"line":737,"column":31}},{"start":{"line":737,"column":36},"end":{"line":737,"column":49}},{"start":{"line":737,"column":53},"end":{"line":737,"column":76}}]},"26":{"line":739,"type":"if","locations":[{"start":{"line":739,"column":8},"end":{"line":739,"column":8}},{"start":{"line":739,"column":8},"end":{"line":739,"column":8}}]},"27":{"line":741,"type":"if","locations":[{"start":{"line":741,"column":15},"end":{"line":741,"column":15}},{"start":{"line":741,"column":15},"end":{"line":741,"column":15}}]},"28":{"line":767,"type":"cond-expr","locations":[{"start":{"line":767,"column":50},"end":{"line":767,"column":72}},{"start":{"line":767,"column":75},"end":{"line":767,"column":129}}]},"29":{"line":786,"type":"cond-expr","locations":[{"start":{"line":786,"column":35},"end":{"line":786,"column":39}},{"start":{"line":786,"column":42},"end":{"line":786,"column":46}}]},"30":{"line":786,"type":"binary-expr","locations":[{"start":{"line":786,"column":17},"end":{"line":786,"column":21}},{"start":{"line":786,"column":25},"end":{"line":786,"column":31}}]},"31":{"line":799,"type":"binary-expr","locations":[{"start":{"line":799,"column":15},"end":{"line":799,"column":33}},{"start":{"line":799,"column":37},"end":{"line":799,"column":41}}]},"32":{"line":819,"type":"if","locations":[{"start":{"line":819,"column":8},"end":{"line":819,"column":8}},{"start":{"line":819,"column":8},"end":{"line":819,"column":8}}]},"33":{"line":822,"type":"if","locations":[{"start":{"line":822,"column":12},"end":{"line":822,"column":12}},{"start":{"line":822,"column":12},"end":{"line":822,"column":12}}]},"34":{"line":829,"type":"if","locations":[{"start":{"line":829,"column":8},"end":{"line":829,"column":8}},{"start":{"line":829,"column":8},"end":{"line":829,"column":8}}]},"35":{"line":830,"type":"binary-expr","locations":[{"start":{"line":830,"column":25},"end":{"line":830,"column":27}},{"start":{"line":830,"column":31},"end":{"line":830,"column":39}}]},"36":{"line":864,"type":"binary-expr","locations":[{"start":{"line":864,"column":33},"end":{"line":864,"column":46}},{"start":{"line":864,"column":50},"end":{"line":864,"column":86}}]},"37":{"line":922,"type":"if","locations":[{"start":{"line":922,"column":8},"end":{"line":922,"column":8}},{"start":{"line":922,"column":8},"end":{"line":922,"column":8}}]},"38":{"line":937,"type":"if","locations":[{"start":{"line":937,"column":8},"end":{"line":937,"column":8}},{"start":{"line":937,"column":8},"end":{"line":937,"column":8}}]},"39":{"line":953,"type":"if","locations":[{"start":{"line":953,"column":8},"end":{"line":953,"column":8}},{"start":{"line":953,"column":8},"end":{"line":953,"column":8}}]},"40":{"line":957,"type":"if","locations":[{"start":{"line":957,"column":12},"end":{"line":957,"column":12}},{"start":{"line":957,"column":12},"end":{"line":957,"column":12}}]},"41":{"line":962,"type":"if","locations":[{"start":{"line":962,"column":12},"end":{"line":962,"column":12}},{"start":{"line":962,"column":12},"end":{"line":962,"column":12}}]},"42":{"line":968,"type":"if","locations":[{"start":{"line":968,"column":8},"end":{"line":968,"column":8}},{"start":{"line":968,"column":8},"end":{"line":968,"column":8}}]},"43":{"line":968,"type":"binary-expr","locations":[{"start":{"line":968,"column":12},"end":{"line":968,"column":18}},{"start":{"line":968,"column":22},"end":{"line":968,"column":33}}]},"44":{"line":992,"type":"binary-expr","locations":[{"start":{"line":992,"column":24},"end":{"line":992,"column":41}},{"start":{"line":992,"column":45},"end":{"line":992,"column":57}}]},"45":{"line":1013,"type":"cond-expr","locations":[{"start":{"line":1013,"column":69},"end":{"line":1013,"column":88}},{"start":{"line":1013,"column":91},"end":{"line":1013,"column":94}}]},"46":{"line":1051,"type":"if","locations":[{"start":{"line":1051,"column":9},"end":{"line":1051,"column":9}},{"start":{"line":1051,"column":9},"end":{"line":1051,"column":9}}]},"47":{"line":1052,"type":"if","locations":[{"start":{"line":1052,"column":12},"end":{"line":1052,"column":12}},{"start":{"line":1052,"column":12},"end":{"line":1052,"column":12}}]},"48":{"line":1070,"type":"if","locations":[{"start":{"line":1070,"column":8},"end":{"line":1070,"column":8}},{"start":{"line":1070,"column":8},"end":{"line":1070,"column":8}}]},"49":{"line":1085,"type":"if","locations":[{"start":{"line":1085,"column":8},"end":{"line":1085,"column":8}},{"start":{"line":1085,"column":8},"end":{"line":1085,"column":8}}]},"50":{"line":1101,"type":"if","locations":[{"start":{"line":1101,"column":8},"end":{"line":1101,"column":8}},{"start":{"line":1101,"column":8},"end":{"line":1101,"column":8}}]},"51":{"line":1101,"type":"binary-expr","locations":[{"start":{"line":1101,"column":12},"end":{"line":1101,"column":24}},{"start":{"line":1101,"column":29},"end":{"line":1101,"column":52}}]},"52":{"line":1108,"type":"if","locations":[{"start":{"line":1108,"column":8},"end":{"line":1108,"column":8}},{"start":{"line":1108,"column":8},"end":{"line":1108,"column":8}}]},"53":{"line":1176,"type":"binary-expr","locations":[{"start":{"line":1176,"column":16},"end":{"line":1176,"column":36}},{"start":{"line":1176,"column":40},"end":{"line":1176,"column":58}}]},"54":{"line":1216,"type":"if","locations":[{"start":{"line":1216,"column":8},"end":{"line":1216,"column":8}},{"start":{"line":1216,"column":8},"end":{"line":1216,"column":8}}]}},"code":["(function () { YUI.add('widget-base', function (Y, NAME) {","","/**"," * Provides the base Widget class, with HTML Parser support"," *"," * @module widget"," * @main widget"," */","","/**"," * Provides the base Widget class"," *"," * @module widget"," * @submodule widget-base"," */","var L = Y.Lang,"," Node = Y.Node,",""," ClassNameManager = Y.ClassNameManager,",""," _getClassName = ClassNameManager.getClassName,"," _getWidgetClassName,",""," _toInitialCap = Y.cached(function(str) {"," return str.substring(0, 1).toUpperCase() + str.substring(1);"," }),",""," // K-Weight, IE GC optimizations"," CONTENT = \"content\","," VISIBLE = \"visible\","," HIDDEN = \"hidden\","," DISABLED = \"disabled\","," FOCUSED = \"focused\","," WIDTH = \"width\","," HEIGHT = \"height\","," BOUNDING_BOX = \"boundingBox\","," CONTENT_BOX = \"contentBox\","," PARENT_NODE = \"parentNode\","," OWNER_DOCUMENT = \"ownerDocument\","," AUTO = \"auto\","," SRC_NODE = \"srcNode\","," BODY = \"body\","," TAB_INDEX = \"tabIndex\","," ID = \"id\","," RENDER = \"render\","," RENDERED = \"rendered\","," DESTROYED = \"destroyed\","," STRINGS = \"strings\","," DIV = \"
\","," CHANGE = \"Change\","," LOADING = \"loading\",",""," _UISET = \"_uiSet\",",""," EMPTY_STR = \"\","," EMPTY_FN = function() {},",""," TRUE = true,"," FALSE = false,",""," UI,"," ATTRS = {},"," UI_ATTRS = [VISIBLE, DISABLED, HEIGHT, WIDTH, FOCUSED, TAB_INDEX],",""," WEBKIT = Y.UA.webkit,",""," // Widget node-to-instance map."," _instances = new WeakMap();","","/**"," * A base class for widgets, providing:"," * "," *"," * @param config {Object} Object literal specifying widget configuration properties."," *"," * @class Widget"," * @constructor"," * @extends Base"," */","function Widget(config) {",""," // kweight"," var widget = this,"," parentNode,"," render,"," constructor = widget.constructor;",""," widget._strs = {};"," widget._cssPrefix = constructor.CSS_PREFIX || _getClassName(constructor.NAME.toLowerCase());",""," // We need a config for HTML_PARSER to work."," config = config || {};",""," Widget.superclass.constructor.call(widget, config);",""," render = widget.get(RENDER);",""," if (render) {"," // Render could be a node or boolean"," if (render !== TRUE) {"," parentNode = render;"," }"," widget.render(parentNode);"," }","}","","/**"," * Static property provides a string to identify the class."," *

"," * Currently used to apply class identifiers to the bounding box"," * and to classify events fired by the widget."," *

"," *"," * @property NAME"," * @type String"," * @static"," */","Widget.NAME = \"widget\";","","/**"," * Constant used to identify state changes originating from"," * the DOM (as opposed to the JavaScript model)."," *"," * @property UI_SRC"," * @type String"," * @static"," * @final"," */","UI = Widget.UI_SRC = \"ui\";","","/**"," * Static property used to define the default attribute"," * configuration for the Widget."," *"," * @property ATTRS"," * @type Object"," * @static"," */","Widget.ATTRS = ATTRS;","","// Trying to optimize kweight by setting up attrs this way saves about 0.4K min'd","","/**"," * @attribute id"," * @writeOnce"," * @default Generated using guid()"," * @type String"," */","","ATTRS[ID] = {"," valueFn: \"_guid\","," writeOnce: TRUE","};","","/**"," * Flag indicating whether or not this Widget"," * has been through the render lifecycle phase."," *"," * @attribute rendered"," * @readOnly"," * @default false"," * @type boolean"," */","ATTRS[RENDERED] = {"," value:FALSE,"," readOnly: TRUE","};","","/**"," * @attribute boundingBox"," * @description The outermost DOM node for the Widget, used for sizing and positioning"," * of a Widget as well as a containing element for any decorator elements used"," * for skinning."," * @type String | Node"," * @writeOnce"," */","ATTRS[BOUNDING_BOX] = {"," valueFn:\"_defaultBB\","," setter: \"_setBB\","," writeOnce: TRUE","};","","/**"," * @attribute contentBox"," * @description A DOM node that is a direct descendant of a Widget's bounding box that"," * houses its content."," * @type String | Node"," * @writeOnce"," */","ATTRS[CONTENT_BOX] = {"," valueFn:\"_defaultCB\","," setter: \"_setCB\","," writeOnce: TRUE","};","","/**"," * @attribute tabIndex"," * @description Number (between -32767 to 32767) indicating the widget's"," * position in the default tab flow. The value is used to set the"," * \"tabIndex\" attribute on the widget's bounding box. Negative values allow"," * the widget to receive DOM focus programmatically (by calling the focus"," * method), while being removed from the default tab flow. A value of"," * null removes the \"tabIndex\" attribute from the widget's bounding box."," * @type Number"," * @default null"," */","ATTRS[TAB_INDEX] = {"," value: null,"," validator: \"_validTabIndex\"","};","","/**"," * @attribute focused"," * @description Boolean indicating if the Widget, or one of its descendants,"," * has focus."," * @readOnly"," * @default false"," * @type boolean"," */","ATTRS[FOCUSED] = {"," value: FALSE,"," readOnly:TRUE","};","","/**"," * @attribute disabled"," * @description Boolean indicating if the Widget should be disabled. The disabled implementation"," * is left to the specific classes extending widget."," * @default false"," * @type boolean"," */","ATTRS[DISABLED] = {"," value: FALSE","};","","/**"," * @attribute visible"," * @description Boolean indicating whether or not the Widget is visible."," * @default TRUE"," * @type boolean"," */","ATTRS[VISIBLE] = {"," value: TRUE","};","","/**"," * @attribute height"," * @description String with units, or number, representing the height of the Widget. If a number is provided,"," * the default unit, defined by the Widgets DEF_UNIT, property is used."," * @default EMPTY_STR"," * @type {String | Number}"," */","ATTRS[HEIGHT] = {"," value: EMPTY_STR","};","","/**"," * @attribute width"," * @description String with units, or number, representing the width of the Widget. If a number is provided,"," * the default unit, defined by the Widgets DEF_UNIT, property is used."," * @default EMPTY_STR"," * @type {String | Number}"," */","ATTRS[WIDTH] = {"," value: EMPTY_STR","};","","/**"," * @attribute strings"," * @description Collection of strings used to label elements of the Widget's UI."," * @default null"," * @type Object"," */","ATTRS[STRINGS] = {"," value: {},"," setter: \"_strSetter\","," getter: \"_strGetter\"","};","","/**"," * Whether or not to render the widget automatically after init, and optionally, to which parent node."," *"," * @attribute render"," * @type boolean | Node"," * @writeOnce"," */","ATTRS[RENDER] = {"," value:FALSE,"," writeOnce:TRUE","};","","/**"," * The css prefix which the static Widget.getClassName method should use when constructing class names"," *"," * @property CSS_PREFIX"," * @type String"," * @default Widget.NAME.toLowerCase()"," * @private"," * @static"," */","Widget.CSS_PREFIX = _getClassName(Widget.NAME.toLowerCase());","","/**"," * Generate a standard prefixed classname for the Widget, prefixed by the default prefix defined"," * by the Y.config.classNamePrefix attribute used by ClassNameManager and"," * Widget.NAME.toLowerCase() (e.g. \"yui-widget-xxxxx-yyyyy\", based on default values for"," * the prefix and widget class name)."," *

"," * The instance based version of this method can be used to generate standard prefixed classnames,"," * based on the instances NAME, as opposed to Widget.NAME. This method should be used when you"," * need to use a constant class name across different types instances."," *

"," * @method getClassName"," * @param {String*} args* 0..n strings which should be concatenated, using the default separator defined by ClassNameManager, to create the class name"," */","Widget.getClassName = function() {"," // arguments needs to be array'fied to concat"," return _getClassName.apply(ClassNameManager, [Widget.CSS_PREFIX].concat(Y.Array(arguments), true));","};","","_getWidgetClassName = Widget.getClassName;","","/**"," * Returns the widget instance whose bounding box contains, or is, the given node."," *

"," * In the case of nested widgets, the nearest bounding box ancestor is used to"," * return the widget instance."," *

"," * @method getByNode"," * @static"," * @param node {Node | String} The node for which to return a Widget instance. If a selector"," * string is passed in, which selects more than one node, the first node found is used."," * @return {Widget} Widget instance, or null if not found."," */","Widget.getByNode = function(node) {"," var widget,"," widgetMarker = _getWidgetClassName();",""," node = Node.one(node);"," if (node) {"," node = node.ancestor(\".\" + widgetMarker, true);"," if (node) {"," widget = _instances.get(node);"," }"," }",""," return widget || null;","};","","Y.extend(Widget, Y.Base, {",""," /**"," * Returns a class name prefixed with the the value of the"," * YUI.config.classNamePrefix attribute + the instances NAME property."," * Uses YUI.config.classNameDelimiter attribute to delimit the provided strings."," * e.g."," * "," *
","     *    // returns \"yui-slider-foo-bar\", for a slider instance","     *    var scn = slider.getClassName('foo','bar');","     *","     *    // returns \"yui-overlay-foo-bar\", for an overlay instance","     *    var ocn = overlay.getClassName('foo','bar');","     * 
"," *
"," *"," * @method getClassName"," * @param {String} [classnames*] One or more classname bits to be joined and prefixed"," */"," getClassName: function () {"," return _getClassName.apply(ClassNameManager, [this._cssPrefix].concat(Y.Array(arguments), true));"," },",""," /**"," * Initializer lifecycle implementation for the Widget class. Registers the"," * widget instance, and runs through the Widget's HTML_PARSER definition."," *"," * @method initializer"," * @protected"," * @param config {Object} Configuration object literal for the widget"," */"," initializer: function(config) {",""," var bb = this.get(BOUNDING_BOX);",""," if (bb instanceof Node) {"," this._mapInstance(bb);"," }",""," /**"," * Notification event, which widget implementations can fire, when"," * they change the content of the widget. This event has no default"," * behavior and cannot be prevented, so the \"on\" or \"after\""," * moments are effectively equivalent (with on listeners being invoked before"," * after listeners)."," *"," * @event widget:contentUpdate"," * @preventable false"," * @param {EventFacade} e The Event Facade"," */"," },",""," /**"," * Utility method used to add an entry to the boundingBox id to instance map."," *"," * This method can be used to populate the instance with lazily created boundingBox Node references."," *"," * @method _mapInstance"," * @param {Node} The boundingBox"," * @protected"," */"," _mapInstance : function(node) {"," _instances.set(node, this);"," },",""," /**"," * Destructor lifecycle implementation for the Widget class. Purges events attached"," * to the bounding box and content box, removes them from the DOM and removes"," * the Widget from the list of registered widgets."," *"," * @method destructor"," * @protected"," */"," destructor: function() {",""," var boundingBox = this.get(BOUNDING_BOX),"," bbGuid;",""," if (boundingBox instanceof Node) {"," _instances.delete(boundingBox);",""," this._destroyBox();"," }"," },",""," /**"," *

"," * Destroy lifecycle method. Fires the destroy"," * event, prior to invoking destructors for the"," * class hierarchy."," *"," * Overrides Base's implementation, to support arguments to destroy"," *

"," *

"," * Subscribers to the destroy"," * event can invoke preventDefault on the event object, to prevent destruction"," * from proceeding."," *

"," * @method destroy"," * @param destroyAllNodes {Boolean} If true, all nodes contained within the Widget are"," * removed and destroyed. Defaults to false due to potentially high run-time cost."," * @return {Widget} A reference to this object"," * @chainable"," */"," destroy: function(destroyAllNodes) {"," this._destroyAllNodes = destroyAllNodes;"," return Widget.superclass.destroy.apply(this);"," },",""," /**"," * Removes and destroys the widgets rendered boundingBox, contentBox,"," * and detaches bound UI events."," *"," * @method _destroyBox"," * @protected"," */"," _destroyBox : function() {",""," var boundingBox = this.get(BOUNDING_BOX),"," contentBox = this.get(CONTENT_BOX),"," deep = this._destroyAllNodes,"," same;",""," same = boundingBox && boundingBox.compareTo(contentBox);",""," if (this.UI_EVENTS) {"," this._destroyUIEvents();"," }",""," this._unbindUI(boundingBox);",""," if (contentBox) {"," if (deep) {"," contentBox.empty();"," }"," contentBox.remove(TRUE);"," }",""," if (!same) {"," if (deep) {"," boundingBox.empty();"," }"," boundingBox.remove(TRUE);"," }"," },",""," /**"," * Establishes the initial DOM for the widget. Invoking this"," * method will lead to the creating of all DOM elements for"," * the widget (or the manipulation of existing DOM elements"," * for the progressive enhancement use case)."," *

"," * This method should only be invoked once for an initialized"," * widget."," *

"," *

"," * It delegates to the widget specific renderer method to do"," * the actual work."," *

"," *"," * @method render"," * @chainable"," * @final"," * @param parentNode {Object | String} Optional. The Node under which the"," * Widget is to be rendered. This can be a Node instance or a CSS selector string."," *

"," * If the selector string returns more than one Node, the first node will be used"," * as the parentNode. NOTE: This argument is required if both the boundingBox and contentBox"," * are not currently in the document. If it's not provided, the Widget will be rendered"," * to the body of the current document in this case."," *

"," */"," render: function(parentNode) {",""," if (!this.get(DESTROYED) && !this.get(RENDERED)) {"," /**"," * Lifecycle event for the render phase, fired prior to rendering the UI"," * for the widget (prior to invoking the widget's renderer method)."," *

"," * Subscribers to the \"on\" moment of this event, will be notified"," * before the widget is rendered."," *

"," *

"," * Subscribers to the \"after\" moment of this event, will be notified"," * after rendering is complete."," *

"," *"," * @event render"," * @preventable _defRenderFn"," * @param {EventFacade} e The Event Facade"," */"," this.publish(RENDER, {"," queuable:FALSE,"," fireOnce:TRUE,"," defaultTargetOnly:TRUE,"," defaultFn: this._defRenderFn"," });",""," this.fire(RENDER, {parentNode: (parentNode) ? Node.one(parentNode) : null});"," }"," return this;"," },",""," /**"," * Default render handler"," *"," * @method _defRenderFn"," * @protected"," * @param {EventFacade} e The Event object"," * @param {Node} parentNode The parent node to render to, if passed in to the render method"," */"," _defRenderFn : function(e) {"," this._parentNode = e.parentNode;",""," this.renderer();"," this._set(RENDERED, TRUE);",""," this._removeLoadingClassNames();"," },",""," /**"," * Creates DOM (or manipulates DOM for progressive enhancement)"," * This method is invoked by render() and is not chained"," * automatically for the class hierarchy (unlike initializer, destructor)"," * so it should be chained manually for subclasses if required."," *"," * @method renderer"," * @protected"," */"," renderer: function() {"," // kweight"," var widget = this;",""," widget._renderUI();"," widget.renderUI();",""," widget._bindUI();"," widget.bindUI();",""," widget._syncUI();"," widget.syncUI();"," },",""," /**"," * Configures/Sets up listeners to bind Widget State to UI/DOM"," *"," * This method is not called by framework and is not chained"," * automatically for the class hierarchy."," *"," * @method bindUI"," * @protected"," */"," bindUI: EMPTY_FN,",""," /**"," * Adds nodes to the DOM"," *"," * This method is not called by framework and is not chained"," * automatically for the class hierarchy."," *"," * @method renderUI"," * @protected"," */"," renderUI: EMPTY_FN,",""," /**"," * Refreshes the rendered UI, based on Widget State"," *"," * This method is not called by framework and is not chained"," * automatically for the class hierarchy."," *"," * @method syncUI"," * @protected"," *"," */"," syncUI: EMPTY_FN,",""," /**"," * @method hide"," * @description Hides the Widget by setting the \"visible\" attribute to \"false\"."," * @chainable"," */"," hide: function() {"," return this.set(VISIBLE, FALSE);"," },",""," /**"," * @method show"," * @description Shows the Widget by setting the \"visible\" attribute to \"true\"."," * @chainable"," */"," show: function() {"," return this.set(VISIBLE, TRUE);"," },",""," /**"," * @method focus"," * @description Causes the Widget to receive the focus by setting the \"focused\""," * attribute to \"true\"."," * @chainable"," */"," focus: function () {"," return this._set(FOCUSED, TRUE);"," },",""," /**"," * @method blur"," * @description Causes the Widget to lose focus by setting the \"focused\" attribute"," * to \"false\""," * @chainable"," */"," blur: function () {"," return this._set(FOCUSED, FALSE);"," },",""," /**"," * @method enable"," * @description Set the Widget's \"disabled\" attribute to \"false\"."," * @chainable"," */"," enable: function() {"," return this.set(DISABLED, FALSE);"," },",""," /**"," * @method disable"," * @description Set the Widget's \"disabled\" attribute to \"true\"."," * @chainable"," */"," disable: function() {"," return this.set(DISABLED, TRUE);"," },",""," /**"," * @method _uiSizeCB"," * @protected"," * @param {boolean} expand"," */"," _uiSizeCB : function(expand) {"," this.get(CONTENT_BOX).toggleClass(_getWidgetClassName(CONTENT, \"expanded\"), expand);"," },",""," /**"," * Helper method to collect the boundingBox and contentBox and append to the provided parentNode, if not"," * already a child. The owner document of the boundingBox, or the owner document of the contentBox will be used"," * as the document into which the Widget is rendered if a parentNode is node is not provided. If both the boundingBox and"," * the contentBox are not currently in the document, and no parentNode is provided, the widget will be rendered"," * to the current document's body."," *"," * @method _renderBox"," * @private"," * @param {Node} parentNode The parentNode to render the widget to. If not provided, and both the boundingBox and"," * the contentBox are not currently in the document, the widget will be rendered to the current document's body."," */"," _renderBox: function(parentNode) {",""," // TODO: Performance Optimization [ More effective algo to reduce Node refs, compares, replaces? ]",""," var widget = this, // kweight"," contentBox = widget.get(CONTENT_BOX),"," boundingBox = widget.get(BOUNDING_BOX),"," srcNode = widget.get(SRC_NODE),"," defParentNode = widget.DEF_PARENT_NODE,",""," doc = (srcNode && srcNode.get(OWNER_DOCUMENT)) || boundingBox.get(OWNER_DOCUMENT) || contentBox.get(OWNER_DOCUMENT);",""," // If srcNode (assume it's always in doc), have contentBox take its place (widget render responsible for re-use of srcNode contents)"," if (srcNode && !srcNode.compareTo(contentBox) && !contentBox.inDoc(doc)) {"," srcNode.replace(contentBox);"," }",""," if (!boundingBox.compareTo(contentBox.get(PARENT_NODE)) && !boundingBox.compareTo(contentBox)) {"," // If contentBox box is already in the document, have boundingBox box take it's place"," if (contentBox.inDoc(doc)) {"," contentBox.replace(boundingBox);"," }"," boundingBox.appendChild(contentBox);"," }",""," parentNode = parentNode || (defParentNode && Node.one(defParentNode));",""," if (parentNode) {"," parentNode.appendChild(boundingBox);"," } else if (!boundingBox.inDoc(doc)) {"," Node.one(BODY).insert(boundingBox, 0);"," }"," },",""," /**"," * Setter for the boundingBox attribute"," *"," * @method _setBB"," * @private"," * @param {Node|String} node"," * @return Node"," */"," _setBB: function(node) {"," return this._setBox(this.get(ID), node, this.BOUNDING_TEMPLATE, true);"," },",""," /**"," * Setter for the contentBox attribute"," *"," * @method _setCB"," * @private"," * @param {Node|String} node"," * @return Node"," */"," _setCB: function(node) {"," return (this.CONTENT_TEMPLATE === null) ? this.get(BOUNDING_BOX) : this._setBox(null, node, this.CONTENT_TEMPLATE, false);"," },",""," /**"," * Returns the default value for the boundingBox attribute."," *"," * For the Widget class, this will most commonly be null (resulting in a new"," * boundingBox node instance being created), unless a srcNode was provided"," * and CONTENT_TEMPLATE is null, in which case it will be srcNode."," * This behavior was introduced in @VERSION@ to accomodate single-box widgets"," * whose BB & CB both point to srcNode (e.g. Y.Button)."," *"," * @method _defaultBB"," * @protected"," */"," _defaultBB : function() {"," var node = this.get(SRC_NODE),"," nullCT = (this.CONTENT_TEMPLATE === null);",""," return ((node && nullCT) ? node : null);"," },",""," /**"," * Returns the default value for the contentBox attribute."," *"," * For the Widget class, this will be the srcNode if provided, otherwise null (resulting in"," * a new contentBox node instance being created)"," *"," * @method _defaultCB"," * @protected"," */"," _defaultCB : function(node) {"," return this.get(SRC_NODE) || null;"," },",""," /**"," * Helper method to set the bounding/content box, or create it from"," * the provided template if not found."," *"," * @method _setBox"," * @private"," *"," * @param {String} id The node's id attribute"," * @param {Node|String} node The node reference"," * @param {String} template HTML string template for the node"," * @param {boolean} isBounding true if this is the boundingBox, false if it's the contentBox"," * @return {Node} The node"," */"," _setBox : function(id, node, template, isBounding) {",""," node = Node.one(node);",""," if (!node) {"," node = Node.create(template);",""," if (isBounding) {"," this._bbFromTemplate = true;"," } else {"," this._cbFromTemplate = true;"," }"," }",""," if (!node.get(ID)) {"," node.set(ID, id || Y.guid());"," }",""," return node;"," },",""," /**"," * Initializes the UI state for the Widget's bounding/content boxes."," *"," * @method _renderUI"," * @protected"," */"," _renderUI: function() {"," this._renderBoxClassNames();"," this._renderBox(this._parentNode);"," },",""," /**"," * Applies standard class names to the boundingBox and contentBox"," *"," * @method _renderBoxClassNames"," * @protected"," */"," _renderBoxClassNames : function() {"," var classes = this._getClasses(),"," cl,"," boundingBox = this.get(BOUNDING_BOX),"," i;",""," boundingBox.addClass(_getWidgetClassName());",""," // Start from Widget Sub Class"," for (i = classes.length-3; i >= 0; i--) {"," cl = classes[i];"," boundingBox.addClass(cl.CSS_PREFIX || _getClassName(cl.NAME.toLowerCase()));"," }",""," // Use instance based name for content box"," this.get(CONTENT_BOX).addClass(this.getClassName(CONTENT));"," },",""," /**"," * Removes class names representative of the widget's loading state from"," * the boundingBox."," *"," * @method _removeLoadingClassNames"," * @protected"," */"," _removeLoadingClassNames: function () {",""," var boundingBox = this.get(BOUNDING_BOX),"," contentBox = this.get(CONTENT_BOX),"," instClass = this.getClassName(LOADING),"," widgetClass = _getWidgetClassName(LOADING);",""," boundingBox.removeClass(widgetClass)"," .removeClass(instClass);",""," contentBox.removeClass(widgetClass)"," .removeClass(instClass);"," },",""," /**"," * Sets up DOM and CustomEvent listeners for the widget."," *"," * @method _bindUI"," * @protected"," */"," _bindUI: function() {"," this._bindAttrUI(this._UI_ATTRS.BIND);"," this._bindDOM();"," },",""," /**"," * @method _unbindUI"," * @protected"," */"," _unbindUI : function(boundingBox) {"," this._unbindDOM(boundingBox);"," },",""," /**"," * Sets up DOM listeners, on elements rendered by the widget."," *"," * @method _bindDOM"," * @protected"," */"," _bindDOM : function() {"," var oDocument = this.get(BOUNDING_BOX).get(OWNER_DOCUMENT),"," focusHandle = Widget._hDocFocus;",""," // Shared listener across all Widgets."," if (!focusHandle) {"," focusHandle = Widget._hDocFocus = oDocument.on(\"focus\", this._onDocFocus, this);"," focusHandle.listeners = {"," count: 0"," };"," }",""," focusHandle.listeners[Y.stamp(this, true)] = true;"," focusHandle.listeners.count++;",""," //\tFix for Webkit:"," //\tDocument doesn't receive focus in Webkit when the user mouses"," //\tdown on it, so the \"focused\" attribute won't get set to the"," //\tcorrect value. Keeping this instance based for now, potential better performance."," // Otherwise we'll end up looking up widgets from the DOM on every mousedown."," if (WEBKIT){"," this._hDocMouseDown = oDocument.on(\"mousedown\", this._onDocMouseDown, this);"," }"," },",""," /**"," * @method _unbindDOM"," * @protected"," */"," _unbindDOM : function(boundingBox) {",""," var focusHandle = Widget._hDocFocus,"," yuid = Y.stamp(this, true),"," focusListeners,"," mouseHandle = this._hDocMouseDown;",""," if (focusHandle) {",""," focusListeners = focusHandle.listeners;",""," if (focusListeners[yuid]) {"," delete focusListeners[yuid];"," focusListeners.count--;"," }",""," if (focusListeners.count === 0) {"," focusHandle.detach();"," Widget._hDocFocus = null;"," }"," }",""," if (WEBKIT && mouseHandle) {"," mouseHandle.detach();"," }"," },",""," /**"," * Updates the widget UI to reflect the attribute state."," *"," * @method _syncUI"," * @protected"," */"," _syncUI: function() {"," this._syncAttrUI(this._UI_ATTRS.SYNC);"," },",""," /**"," * Sets the height on the widget's bounding box element"," *"," * @method _uiSetHeight"," * @protected"," * @param {String | Number} val"," */"," _uiSetHeight: function(val) {"," this._uiSetDim(HEIGHT, val);"," this._uiSizeCB((val !== EMPTY_STR && val !== AUTO));"," },",""," /**"," * Sets the width on the widget's bounding box element"," *"," * @method _uiSetWidth"," * @protected"," * @param {String | Number} val"," */"," _uiSetWidth: function(val) {"," this._uiSetDim(WIDTH, val);"," },",""," /**"," * @method _uiSetDim"," * @private"," * @param {String} dim The dimension - \"width\" or \"height\""," * @param {Number | String} val The value to set"," */"," _uiSetDim: function(dimension, val) {"," this.get(BOUNDING_BOX).setStyle(dimension, L.isNumber(val) ? val + this.DEF_UNIT : val);"," },",""," /**"," * Sets the visible state for the UI"," *"," * @method _uiSetVisible"," * @protected"," * @param {boolean} val"," */"," _uiSetVisible: function(val) {"," this.get(BOUNDING_BOX).toggleClass(this.getClassName(HIDDEN), !val);"," },",""," /**"," * Sets the disabled state for the UI"," *"," * @method _uiSetDisabled"," * @protected"," * @param {boolean} val"," */"," _uiSetDisabled: function(val) {"," this.get(BOUNDING_BOX).toggleClass(this.getClassName(DISABLED), val);"," },",""," /**"," * Sets the focused state for the UI"," *"," * @method _uiSetFocused"," * @protected"," * @param {boolean} val"," * @param {string} src String representing the source that triggered an update to"," * the UI."," */"," _uiSetFocused: function(val, src) {"," var boundingBox = this.get(BOUNDING_BOX);"," boundingBox.toggleClass(this.getClassName(FOCUSED), val);",""," if (src !== UI) {"," if (val) {"," boundingBox.focus();"," } else {"," boundingBox.blur();"," }"," }"," },",""," /**"," * Set the tabIndex on the widget's rendered UI"," *"," * @method _uiSetTabIndex"," * @protected"," * @param Number"," */"," _uiSetTabIndex: function(index) {"," var boundingBox = this.get(BOUNDING_BOX);",""," if (L.isNumber(index)) {"," boundingBox.set(TAB_INDEX, index);"," } else {"," boundingBox.removeAttribute(TAB_INDEX);"," }"," },",""," /**"," * @method _onDocMouseDown"," * @description \"mousedown\" event handler for the owner document of the"," * widget's bounding box."," * @protected"," * @param {EventFacade} evt The event facade for the DOM focus event"," */"," _onDocMouseDown: function (evt) {"," if (this._domFocus) {"," this._onDocFocus(evt);"," }"," },",""," /**"," * DOM focus event handler, used to sync the state of the Widget with the DOM"," *"," * @method _onDocFocus"," * @protected"," * @param {EventFacade} evt The event facade for the DOM focus event"," */"," _onDocFocus: function (evt) {"," var widget = Widget.getByNode(evt.target),"," activeWidget = Widget._active;",""," if (activeWidget && (activeWidget !== widget)) {"," activeWidget._domFocus = false;"," activeWidget._set(FOCUSED, false, {src:UI});",""," Widget._active = null;"," }",""," if (widget) {"," widget._domFocus = true;"," widget._set(FOCUSED, true, {src:UI});",""," Widget._active = widget;"," }"," },",""," /**"," * Generic toString implementation for all widgets."," *"," * @method toString"," * @return {String} The default string value for the widget [ displays the NAME of the instance, and the unique id ]"," */"," toString: function() {"," // Using deprecated name prop for kweight squeeze."," return this.name + \"[\" + this.get(ID) + \"]\";"," },",""," /**"," * Default unit to use for dimension values"," *"," * @property DEF_UNIT"," * @type String"," */"," DEF_UNIT : \"px\",",""," /**"," * Default node to render the bounding box to. If not set,"," * will default to the current document body."," *"," * @property DEF_PARENT_NODE"," * @type String | Node"," */"," DEF_PARENT_NODE : null,",""," /**"," * Property defining the markup template for content box. If your Widget doesn't"," * need the dual boundingBox/contentBox structure, set CONTENT_TEMPLATE to null,"," * and contentBox and boundingBox will both point to the same Node."," *"," * @property CONTENT_TEMPLATE"," * @type String"," */"," CONTENT_TEMPLATE : DIV,",""," /**"," * Property defining the markup template for bounding box."," *"," * @property BOUNDING_TEMPLATE"," * @type String"," */"," BOUNDING_TEMPLATE : DIV,",""," /**"," * @method _guid"," * @protected"," */"," _guid : function() {"," return Y.guid();"," },",""," /**"," * @method _validTabIndex"," * @protected"," * @param {Number} tabIndex"," */"," _validTabIndex : function (tabIndex) {"," return (L.isNumber(tabIndex) || L.isNull(tabIndex));"," },",""," /**"," * Binds after listeners for the list of attributes provided"," *"," * @method _bindAttrUI"," * @private"," * @param {Array} attrs"," */"," _bindAttrUI : function(attrs) {"," var i,"," l = attrs.length;",""," for (i = 0; i < l; i++) {"," this.after(attrs[i] + CHANGE, this._setAttrUI);"," }"," },",""," /**"," * Invokes the _uiSet=ATTR NAME> method for the list of attributes provided"," *"," * @method _syncAttrUI"," * @private"," * @param {Array} attrs"," */"," _syncAttrUI : function(attrs) {"," var i, l = attrs.length, attr;"," for (i = 0; i < l; i++) {"," attr = attrs[i];"," this[_UISET + _toInitialCap(attr)](this.get(attr));"," }"," },",""," /**"," * @method _setAttrUI"," * @private"," * @param {EventFacade} e"," */"," _setAttrUI : function(e) {"," if (e.target === this) {"," this[_UISET + _toInitialCap(e.attrName)](e.newVal, e.src);"," }"," },",""," /**"," * The default setter for the strings attribute. Merges partial sets"," * into the full string set, to allow users to partial sets of strings"," *"," * @method _strSetter"," * @protected"," * @param {Object} strings"," * @return {String} The full set of strings to set"," */"," _strSetter : function(strings) {"," return Y.merge(this.get(STRINGS), strings);"," },",""," /**"," * Helper method to get a specific string value"," *"," * @deprecated Used by deprecated WidgetLocale implementations."," * @method getString"," * @param {String} key"," * @return {String} The string"," */"," getString : function(key) {"," return this.get(STRINGS)[key];"," },",""," /**"," * Helper method to get the complete set of strings for the widget"," *"," * @deprecated Used by deprecated WidgetLocale implementations."," * @method getStrings"," * @param {String} key"," * @return {String} The strings"," */"," getStrings : function() {"," return this.get(STRINGS);"," },",""," /**"," * The lists of UI attributes to bind and sync for widget's _bindUI and _syncUI implementations"," *"," * @property _UI_ATTRS"," * @type Object"," * @private"," */"," _UI_ATTRS : {"," BIND: UI_ATTRS,"," SYNC: UI_ATTRS"," }","});","","Y.Widget = Widget;","","","}, '@VERSION@', {"," \"requires\": ["," \"attribute\","," \"base-base\","," \"base-pluginhost\","," \"classnamemanager\","," \"event-focus\","," \"node-base\","," \"node-style\""," ],"," \"skinnable\": true","});","","}());"]}; } var __cov_MzPaF1e83TZvr_uWaY6g9A = __coverage__['build/widget-base/widget-base.js']; -__cov_MzPaF1e83TZvr_uWaY6g9A.s['1']++;YUI.add('widget-base',function(Y,NAME){__cov_MzPaF1e83TZvr_uWaY6g9A.f['1']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['2']++;var L=Y.Lang,Node=Y.Node,ClassNameManager=Y.ClassNameManager,_getClassName=ClassNameManager.getClassName,_getWidgetClassName,_toInitialCap=Y.cached(function(str){__cov_MzPaF1e83TZvr_uWaY6g9A.f['2']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['3']++;return str.substring(0,1).toUpperCase()+str.substring(1);}),CONTENT='content',VISIBLE='visible',HIDDEN='hidden',DISABLED='disabled',FOCUSED='focused',WIDTH='width',HEIGHT='height',BOUNDING_BOX='boundingBox',CONTENT_BOX='contentBox',PARENT_NODE='parentNode',OWNER_DOCUMENT='ownerDocument',AUTO='auto',SRC_NODE='srcNode',BODY='body',TAB_INDEX='tabIndex',ID='id',RENDER='render',RENDERED='rendered',DESTROYED='destroyed',STRINGS='strings',DIV='
',CHANGE='Change',LOADING='loading',_UISET='_uiSet',EMPTY_STR='',EMPTY_FN=function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['3']++;},TRUE=true,FALSE=false,UI,ATTRS={},UI_ATTRS=[VISIBLE,DISABLED,HEIGHT,WIDTH,FOCUSED,TAB_INDEX],WEBKIT=Y.UA.webkit,_instances={};__cov_MzPaF1e83TZvr_uWaY6g9A.s['4']++;function Widget(config){__cov_MzPaF1e83TZvr_uWaY6g9A.f['4']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['5']++;var widget=this,parentNode,render,constructor=widget.constructor;__cov_MzPaF1e83TZvr_uWaY6g9A.s['6']++;widget._strs={};__cov_MzPaF1e83TZvr_uWaY6g9A.s['7']++;widget._cssPrefix=(__cov_MzPaF1e83TZvr_uWaY6g9A.b['1'][0]++,constructor.CSS_PREFIX)||(__cov_MzPaF1e83TZvr_uWaY6g9A.b['1'][1]++,_getClassName(constructor.NAME.toLowerCase()));__cov_MzPaF1e83TZvr_uWaY6g9A.s['8']++;config=(__cov_MzPaF1e83TZvr_uWaY6g9A.b['2'][0]++,config)||(__cov_MzPaF1e83TZvr_uWaY6g9A.b['2'][1]++,{});__cov_MzPaF1e83TZvr_uWaY6g9A.s['9']++;Widget.superclass.constructor.call(widget,config);__cov_MzPaF1e83TZvr_uWaY6g9A.s['10']++;render=widget.get(RENDER);__cov_MzPaF1e83TZvr_uWaY6g9A.s['11']++;if(render){__cov_MzPaF1e83TZvr_uWaY6g9A.b['3'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['12']++;if(render!==TRUE){__cov_MzPaF1e83TZvr_uWaY6g9A.b['4'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['13']++;parentNode=render;}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['4'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['14']++;widget.render(parentNode);}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['3'][1]++;}}__cov_MzPaF1e83TZvr_uWaY6g9A.s['15']++;Widget.NAME='widget';__cov_MzPaF1e83TZvr_uWaY6g9A.s['16']++;UI=Widget.UI_SRC='ui';__cov_MzPaF1e83TZvr_uWaY6g9A.s['17']++;Widget.ATTRS=ATTRS;__cov_MzPaF1e83TZvr_uWaY6g9A.s['18']++;ATTRS[ID]={valueFn:'_guid',writeOnce:TRUE};__cov_MzPaF1e83TZvr_uWaY6g9A.s['19']++;ATTRS[RENDERED]={value:FALSE,readOnly:TRUE};__cov_MzPaF1e83TZvr_uWaY6g9A.s['20']++;ATTRS[BOUNDING_BOX]={valueFn:'_defaultBB',setter:'_setBB',writeOnce:TRUE};__cov_MzPaF1e83TZvr_uWaY6g9A.s['21']++;ATTRS[CONTENT_BOX]={valueFn:'_defaultCB',setter:'_setCB',writeOnce:TRUE};__cov_MzPaF1e83TZvr_uWaY6g9A.s['22']++;ATTRS[TAB_INDEX]={value:null,validator:'_validTabIndex'};__cov_MzPaF1e83TZvr_uWaY6g9A.s['23']++;ATTRS[FOCUSED]={value:FALSE,readOnly:TRUE};__cov_MzPaF1e83TZvr_uWaY6g9A.s['24']++;ATTRS[DISABLED]={value:FALSE};__cov_MzPaF1e83TZvr_uWaY6g9A.s['25']++;ATTRS[VISIBLE]={value:TRUE};__cov_MzPaF1e83TZvr_uWaY6g9A.s['26']++;ATTRS[HEIGHT]={value:EMPTY_STR};__cov_MzPaF1e83TZvr_uWaY6g9A.s['27']++;ATTRS[WIDTH]={value:EMPTY_STR};__cov_MzPaF1e83TZvr_uWaY6g9A.s['28']++;ATTRS[STRINGS]={value:{},setter:'_strSetter',getter:'_strGetter'};__cov_MzPaF1e83TZvr_uWaY6g9A.s['29']++;ATTRS[RENDER]={value:FALSE,writeOnce:TRUE};__cov_MzPaF1e83TZvr_uWaY6g9A.s['30']++;Widget.CSS_PREFIX=_getClassName(Widget.NAME.toLowerCase());__cov_MzPaF1e83TZvr_uWaY6g9A.s['31']++;Widget.getClassName=function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['5']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['32']++;return _getClassName.apply(ClassNameManager,[Widget.CSS_PREFIX].concat(Y.Array(arguments),true));};__cov_MzPaF1e83TZvr_uWaY6g9A.s['33']++;_getWidgetClassName=Widget.getClassName;__cov_MzPaF1e83TZvr_uWaY6g9A.s['34']++;Widget.getByNode=function(node){__cov_MzPaF1e83TZvr_uWaY6g9A.f['6']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['35']++;var widget,widgetMarker=_getWidgetClassName();__cov_MzPaF1e83TZvr_uWaY6g9A.s['36']++;node=Node.one(node);__cov_MzPaF1e83TZvr_uWaY6g9A.s['37']++;if(node){__cov_MzPaF1e83TZvr_uWaY6g9A.b['5'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['38']++;node=node.ancestor('.'+widgetMarker,true);__cov_MzPaF1e83TZvr_uWaY6g9A.s['39']++;if(node){__cov_MzPaF1e83TZvr_uWaY6g9A.b['6'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['40']++;widget=_instances[Y.stamp(node,true)];}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['6'][1]++;}}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['5'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['41']++;return(__cov_MzPaF1e83TZvr_uWaY6g9A.b['7'][0]++,widget)||(__cov_MzPaF1e83TZvr_uWaY6g9A.b['7'][1]++,null);};__cov_MzPaF1e83TZvr_uWaY6g9A.s['42']++;Y.extend(Widget,Y.Base,{getClassName:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['7']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['43']++;return _getClassName.apply(ClassNameManager,[this._cssPrefix].concat(Y.Array(arguments),true));},initializer:function(config){__cov_MzPaF1e83TZvr_uWaY6g9A.f['8']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['44']++;var bb=this.get(BOUNDING_BOX);__cov_MzPaF1e83TZvr_uWaY6g9A.s['45']++;if(bb instanceof Node){__cov_MzPaF1e83TZvr_uWaY6g9A.b['8'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['46']++;this._mapInstance(Y.stamp(bb));}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['8'][1]++;}},_mapInstance:function(id){__cov_MzPaF1e83TZvr_uWaY6g9A.f['9']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['47']++;_instances[id]=this;},destructor:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['10']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['48']++;var boundingBox=this.get(BOUNDING_BOX),bbGuid;__cov_MzPaF1e83TZvr_uWaY6g9A.s['49']++;if(boundingBox instanceof Node){__cov_MzPaF1e83TZvr_uWaY6g9A.b['9'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['50']++;bbGuid=Y.stamp(boundingBox,true);__cov_MzPaF1e83TZvr_uWaY6g9A.s['51']++;if(bbGuid in _instances){__cov_MzPaF1e83TZvr_uWaY6g9A.b['10'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['52']++;delete _instances[bbGuid];}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['10'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['53']++;this._destroyBox();}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['9'][1]++;}},destroy:function(destroyAllNodes){__cov_MzPaF1e83TZvr_uWaY6g9A.f['11']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['54']++;this._destroyAllNodes=destroyAllNodes;__cov_MzPaF1e83TZvr_uWaY6g9A.s['55']++;return Widget.superclass.destroy.apply(this);},_destroyBox:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['12']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['56']++;var boundingBox=this.get(BOUNDING_BOX),contentBox=this.get(CONTENT_BOX),deep=this._destroyAllNodes,same;__cov_MzPaF1e83TZvr_uWaY6g9A.s['57']++;same=(__cov_MzPaF1e83TZvr_uWaY6g9A.b['11'][0]++,boundingBox)&&(__cov_MzPaF1e83TZvr_uWaY6g9A.b['11'][1]++,boundingBox.compareTo(contentBox));__cov_MzPaF1e83TZvr_uWaY6g9A.s['58']++;if(this.UI_EVENTS){__cov_MzPaF1e83TZvr_uWaY6g9A.b['12'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['59']++;this._destroyUIEvents();}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['12'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['60']++;this._unbindUI(boundingBox);__cov_MzPaF1e83TZvr_uWaY6g9A.s['61']++;if(contentBox){__cov_MzPaF1e83TZvr_uWaY6g9A.b['13'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['62']++;if(deep){__cov_MzPaF1e83TZvr_uWaY6g9A.b['14'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['63']++;contentBox.empty();}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['14'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['64']++;contentBox.remove(TRUE);}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['13'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['65']++;if(!same){__cov_MzPaF1e83TZvr_uWaY6g9A.b['15'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['66']++;if(deep){__cov_MzPaF1e83TZvr_uWaY6g9A.b['16'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['67']++;boundingBox.empty();}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['16'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['68']++;boundingBox.remove(TRUE);}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['15'][1]++;}},render:function(parentNode){__cov_MzPaF1e83TZvr_uWaY6g9A.f['13']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['69']++;if((__cov_MzPaF1e83TZvr_uWaY6g9A.b['18'][0]++,!this.get(DESTROYED))&&(__cov_MzPaF1e83TZvr_uWaY6g9A.b['18'][1]++,!this.get(RENDERED))){__cov_MzPaF1e83TZvr_uWaY6g9A.b['17'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['70']++;this.publish(RENDER,{queuable:FALSE,fireOnce:TRUE,defaultTargetOnly:TRUE,defaultFn:this._defRenderFn});__cov_MzPaF1e83TZvr_uWaY6g9A.s['71']++;this.fire(RENDER,{parentNode:parentNode?(__cov_MzPaF1e83TZvr_uWaY6g9A.b['19'][0]++,Node.one(parentNode)):(__cov_MzPaF1e83TZvr_uWaY6g9A.b['19'][1]++,null)});}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['17'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['72']++;return this;},_defRenderFn:function(e){__cov_MzPaF1e83TZvr_uWaY6g9A.f['14']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['73']++;this._parentNode=e.parentNode;__cov_MzPaF1e83TZvr_uWaY6g9A.s['74']++;this.renderer();__cov_MzPaF1e83TZvr_uWaY6g9A.s['75']++;this._set(RENDERED,TRUE);__cov_MzPaF1e83TZvr_uWaY6g9A.s['76']++;this._removeLoadingClassNames();},renderer:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['15']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['77']++;var widget=this;__cov_MzPaF1e83TZvr_uWaY6g9A.s['78']++;widget._renderUI();__cov_MzPaF1e83TZvr_uWaY6g9A.s['79']++;widget.renderUI();__cov_MzPaF1e83TZvr_uWaY6g9A.s['80']++;widget._bindUI();__cov_MzPaF1e83TZvr_uWaY6g9A.s['81']++;widget.bindUI();__cov_MzPaF1e83TZvr_uWaY6g9A.s['82']++;widget._syncUI();__cov_MzPaF1e83TZvr_uWaY6g9A.s['83']++;widget.syncUI();},bindUI:EMPTY_FN,renderUI:EMPTY_FN,syncUI:EMPTY_FN,hide:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['16']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['84']++;return this.set(VISIBLE,FALSE);},show:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['17']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['85']++;return this.set(VISIBLE,TRUE);},focus:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['18']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['86']++;return this._set(FOCUSED,TRUE);},blur:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['19']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['87']++;return this._set(FOCUSED,FALSE);},enable:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['20']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['88']++;return this.set(DISABLED,FALSE);},disable:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['21']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['89']++;return this.set(DISABLED,TRUE);},_uiSizeCB:function(expand){__cov_MzPaF1e83TZvr_uWaY6g9A.f['22']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['90']++;this.get(CONTENT_BOX).toggleClass(_getWidgetClassName(CONTENT,'expanded'),expand);},_renderBox:function(parentNode){__cov_MzPaF1e83TZvr_uWaY6g9A.f['23']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['91']++;var widget=this,contentBox=widget.get(CONTENT_BOX),boundingBox=widget.get(BOUNDING_BOX),srcNode=widget.get(SRC_NODE),defParentNode=widget.DEF_PARENT_NODE,doc=(__cov_MzPaF1e83TZvr_uWaY6g9A.b['20'][0]++,srcNode)&&(__cov_MzPaF1e83TZvr_uWaY6g9A.b['20'][1]++,srcNode.get(OWNER_DOCUMENT))||(__cov_MzPaF1e83TZvr_uWaY6g9A.b['20'][2]++,boundingBox.get(OWNER_DOCUMENT))||(__cov_MzPaF1e83TZvr_uWaY6g9A.b['20'][3]++,contentBox.get(OWNER_DOCUMENT));__cov_MzPaF1e83TZvr_uWaY6g9A.s['92']++;if((__cov_MzPaF1e83TZvr_uWaY6g9A.b['22'][0]++,srcNode)&&(__cov_MzPaF1e83TZvr_uWaY6g9A.b['22'][1]++,!srcNode.compareTo(contentBox))&&(__cov_MzPaF1e83TZvr_uWaY6g9A.b['22'][2]++,!contentBox.inDoc(doc))){__cov_MzPaF1e83TZvr_uWaY6g9A.b['21'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['93']++;srcNode.replace(contentBox);}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['21'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['94']++;if((__cov_MzPaF1e83TZvr_uWaY6g9A.b['24'][0]++,!boundingBox.compareTo(contentBox.get(PARENT_NODE)))&&(__cov_MzPaF1e83TZvr_uWaY6g9A.b['24'][1]++,!boundingBox.compareTo(contentBox))){__cov_MzPaF1e83TZvr_uWaY6g9A.b['23'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['95']++;if(contentBox.inDoc(doc)){__cov_MzPaF1e83TZvr_uWaY6g9A.b['25'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['96']++;contentBox.replace(boundingBox);}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['25'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['97']++;boundingBox.appendChild(contentBox);}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['23'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['98']++;parentNode=(__cov_MzPaF1e83TZvr_uWaY6g9A.b['26'][0]++,parentNode)||(__cov_MzPaF1e83TZvr_uWaY6g9A.b['26'][1]++,defParentNode)&&(__cov_MzPaF1e83TZvr_uWaY6g9A.b['26'][2]++,Node.one(defParentNode));__cov_MzPaF1e83TZvr_uWaY6g9A.s['99']++;if(parentNode){__cov_MzPaF1e83TZvr_uWaY6g9A.b['27'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['100']++;parentNode.appendChild(boundingBox);}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['27'][1]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['101']++;if(!boundingBox.inDoc(doc)){__cov_MzPaF1e83TZvr_uWaY6g9A.b['28'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['102']++;Node.one(BODY).insert(boundingBox,0);}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['28'][1]++;}}},_setBB:function(node){__cov_MzPaF1e83TZvr_uWaY6g9A.f['24']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['103']++;return this._setBox(this.get(ID),node,this.BOUNDING_TEMPLATE,true);},_setCB:function(node){__cov_MzPaF1e83TZvr_uWaY6g9A.f['25']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['104']++;return this.CONTENT_TEMPLATE===null?(__cov_MzPaF1e83TZvr_uWaY6g9A.b['29'][0]++,this.get(BOUNDING_BOX)):(__cov_MzPaF1e83TZvr_uWaY6g9A.b['29'][1]++,this._setBox(null,node,this.CONTENT_TEMPLATE,false));},_defaultBB:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['26']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['105']++;var node=this.get(SRC_NODE),nullCT=this.CONTENT_TEMPLATE===null;__cov_MzPaF1e83TZvr_uWaY6g9A.s['106']++;return(__cov_MzPaF1e83TZvr_uWaY6g9A.b['31'][0]++,node)&&(__cov_MzPaF1e83TZvr_uWaY6g9A.b['31'][1]++,nullCT)?(__cov_MzPaF1e83TZvr_uWaY6g9A.b['30'][0]++,node):(__cov_MzPaF1e83TZvr_uWaY6g9A.b['30'][1]++,null);},_defaultCB:function(node){__cov_MzPaF1e83TZvr_uWaY6g9A.f['27']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['107']++;return(__cov_MzPaF1e83TZvr_uWaY6g9A.b['32'][0]++,this.get(SRC_NODE))||(__cov_MzPaF1e83TZvr_uWaY6g9A.b['32'][1]++,null);},_setBox:function(id,node,template,isBounding){__cov_MzPaF1e83TZvr_uWaY6g9A.f['28']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['108']++;node=Node.one(node);__cov_MzPaF1e83TZvr_uWaY6g9A.s['109']++;if(!node){__cov_MzPaF1e83TZvr_uWaY6g9A.b['33'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['110']++;node=Node.create(template);__cov_MzPaF1e83TZvr_uWaY6g9A.s['111']++;if(isBounding){__cov_MzPaF1e83TZvr_uWaY6g9A.b['34'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['112']++;this._bbFromTemplate=true;}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['34'][1]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['113']++;this._cbFromTemplate=true;}}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['33'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['114']++;if(!node.get(ID)){__cov_MzPaF1e83TZvr_uWaY6g9A.b['35'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['115']++;node.set(ID,(__cov_MzPaF1e83TZvr_uWaY6g9A.b['36'][0]++,id)||(__cov_MzPaF1e83TZvr_uWaY6g9A.b['36'][1]++,Y.guid()));}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['35'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['116']++;return node;},_renderUI:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['29']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['117']++;this._renderBoxClassNames();__cov_MzPaF1e83TZvr_uWaY6g9A.s['118']++;this._renderBox(this._parentNode);},_renderBoxClassNames:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['30']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['119']++;var classes=this._getClasses(),cl,boundingBox=this.get(BOUNDING_BOX),i;__cov_MzPaF1e83TZvr_uWaY6g9A.s['120']++;boundingBox.addClass(_getWidgetClassName());__cov_MzPaF1e83TZvr_uWaY6g9A.s['121']++;for(i=classes.length-3;i>=0;i--){__cov_MzPaF1e83TZvr_uWaY6g9A.s['122']++;cl=classes[i];__cov_MzPaF1e83TZvr_uWaY6g9A.s['123']++;boundingBox.addClass((__cov_MzPaF1e83TZvr_uWaY6g9A.b['37'][0]++,cl.CSS_PREFIX)||(__cov_MzPaF1e83TZvr_uWaY6g9A.b['37'][1]++,_getClassName(cl.NAME.toLowerCase())));}__cov_MzPaF1e83TZvr_uWaY6g9A.s['124']++;this.get(CONTENT_BOX).addClass(this.getClassName(CONTENT));},_removeLoadingClassNames:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['31']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['125']++;var boundingBox=this.get(BOUNDING_BOX),contentBox=this.get(CONTENT_BOX),instClass=this.getClassName(LOADING),widgetClass=_getWidgetClassName(LOADING);__cov_MzPaF1e83TZvr_uWaY6g9A.s['126']++;boundingBox.removeClass(widgetClass).removeClass(instClass);__cov_MzPaF1e83TZvr_uWaY6g9A.s['127']++;contentBox.removeClass(widgetClass).removeClass(instClass);},_bindUI:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['32']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['128']++;this._bindAttrUI(this._UI_ATTRS.BIND);__cov_MzPaF1e83TZvr_uWaY6g9A.s['129']++;this._bindDOM();},_unbindUI:function(boundingBox){__cov_MzPaF1e83TZvr_uWaY6g9A.f['33']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['130']++;this._unbindDOM(boundingBox);},_bindDOM:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['34']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['131']++;var oDocument=this.get(BOUNDING_BOX).get(OWNER_DOCUMENT),focusHandle=Widget._hDocFocus;__cov_MzPaF1e83TZvr_uWaY6g9A.s['132']++;if(!focusHandle){__cov_MzPaF1e83TZvr_uWaY6g9A.b['38'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['133']++;focusHandle=Widget._hDocFocus=oDocument.on('focus',this._onDocFocus,this);__cov_MzPaF1e83TZvr_uWaY6g9A.s['134']++;focusHandle.listeners={count:0};}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['38'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['135']++;focusHandle.listeners[Y.stamp(this,true)]=true;__cov_MzPaF1e83TZvr_uWaY6g9A.s['136']++;focusHandle.listeners.count++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['137']++;if(WEBKIT){__cov_MzPaF1e83TZvr_uWaY6g9A.b['39'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['138']++;this._hDocMouseDown=oDocument.on('mousedown',this._onDocMouseDown,this);}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['39'][1]++;}},_unbindDOM:function(boundingBox){__cov_MzPaF1e83TZvr_uWaY6g9A.f['35']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['139']++;var focusHandle=Widget._hDocFocus,yuid=Y.stamp(this,true),focusListeners,mouseHandle=this._hDocMouseDown;__cov_MzPaF1e83TZvr_uWaY6g9A.s['140']++;if(focusHandle){__cov_MzPaF1e83TZvr_uWaY6g9A.b['40'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['141']++;focusListeners=focusHandle.listeners;__cov_MzPaF1e83TZvr_uWaY6g9A.s['142']++;if(focusListeners[yuid]){__cov_MzPaF1e83TZvr_uWaY6g9A.b['41'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['143']++;delete focusListeners[yuid];__cov_MzPaF1e83TZvr_uWaY6g9A.s['144']++;focusListeners.count--;}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['41'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['145']++;if(focusListeners.count===0){__cov_MzPaF1e83TZvr_uWaY6g9A.b['42'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['146']++;focusHandle.detach();__cov_MzPaF1e83TZvr_uWaY6g9A.s['147']++;Widget._hDocFocus=null;}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['42'][1]++;}}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['40'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['148']++;if((__cov_MzPaF1e83TZvr_uWaY6g9A.b['44'][0]++,WEBKIT)&&(__cov_MzPaF1e83TZvr_uWaY6g9A.b['44'][1]++,mouseHandle)){__cov_MzPaF1e83TZvr_uWaY6g9A.b['43'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['149']++;mouseHandle.detach();}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['43'][1]++;}},_syncUI:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['36']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['150']++;this._syncAttrUI(this._UI_ATTRS.SYNC);},_uiSetHeight:function(val){__cov_MzPaF1e83TZvr_uWaY6g9A.f['37']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['151']++;this._uiSetDim(HEIGHT,val);__cov_MzPaF1e83TZvr_uWaY6g9A.s['152']++;this._uiSizeCB((__cov_MzPaF1e83TZvr_uWaY6g9A.b['45'][0]++,val!==EMPTY_STR)&&(__cov_MzPaF1e83TZvr_uWaY6g9A.b['45'][1]++,val!==AUTO));},_uiSetWidth:function(val){__cov_MzPaF1e83TZvr_uWaY6g9A.f['38']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['153']++;this._uiSetDim(WIDTH,val);},_uiSetDim:function(dimension,val){__cov_MzPaF1e83TZvr_uWaY6g9A.f['39']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['154']++;this.get(BOUNDING_BOX).setStyle(dimension,L.isNumber(val)?(__cov_MzPaF1e83TZvr_uWaY6g9A.b['46'][0]++,val+this.DEF_UNIT):(__cov_MzPaF1e83TZvr_uWaY6g9A.b['46'][1]++,val));},_uiSetVisible:function(val){__cov_MzPaF1e83TZvr_uWaY6g9A.f['40']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['155']++;this.get(BOUNDING_BOX).toggleClass(this.getClassName(HIDDEN),!val);},_uiSetDisabled:function(val){__cov_MzPaF1e83TZvr_uWaY6g9A.f['41']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['156']++;this.get(BOUNDING_BOX).toggleClass(this.getClassName(DISABLED),val);},_uiSetFocused:function(val,src){__cov_MzPaF1e83TZvr_uWaY6g9A.f['42']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['157']++;var boundingBox=this.get(BOUNDING_BOX);__cov_MzPaF1e83TZvr_uWaY6g9A.s['158']++;boundingBox.toggleClass(this.getClassName(FOCUSED),val);__cov_MzPaF1e83TZvr_uWaY6g9A.s['159']++;if(src!==UI){__cov_MzPaF1e83TZvr_uWaY6g9A.b['47'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['160']++;if(val){__cov_MzPaF1e83TZvr_uWaY6g9A.b['48'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['161']++;boundingBox.focus();}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['48'][1]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['162']++;boundingBox.blur();}}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['47'][1]++;}},_uiSetTabIndex:function(index){__cov_MzPaF1e83TZvr_uWaY6g9A.f['43']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['163']++;var boundingBox=this.get(BOUNDING_BOX);__cov_MzPaF1e83TZvr_uWaY6g9A.s['164']++;if(L.isNumber(index)){__cov_MzPaF1e83TZvr_uWaY6g9A.b['49'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['165']++;boundingBox.set(TAB_INDEX,index);}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['49'][1]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['166']++;boundingBox.removeAttribute(TAB_INDEX);}},_onDocMouseDown:function(evt){__cov_MzPaF1e83TZvr_uWaY6g9A.f['44']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['167']++;if(this._domFocus){__cov_MzPaF1e83TZvr_uWaY6g9A.b['50'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['168']++;this._onDocFocus(evt);}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['50'][1]++;}},_onDocFocus:function(evt){__cov_MzPaF1e83TZvr_uWaY6g9A.f['45']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['169']++;var widget=Widget.getByNode(evt.target),activeWidget=Widget._active;__cov_MzPaF1e83TZvr_uWaY6g9A.s['170']++;if((__cov_MzPaF1e83TZvr_uWaY6g9A.b['52'][0]++,activeWidget)&&(__cov_MzPaF1e83TZvr_uWaY6g9A.b['52'][1]++,activeWidget!==widget)){__cov_MzPaF1e83TZvr_uWaY6g9A.b['51'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['171']++;activeWidget._domFocus=false;__cov_MzPaF1e83TZvr_uWaY6g9A.s['172']++;activeWidget._set(FOCUSED,false,{src:UI});__cov_MzPaF1e83TZvr_uWaY6g9A.s['173']++;Widget._active=null;}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['51'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['174']++;if(widget){__cov_MzPaF1e83TZvr_uWaY6g9A.b['53'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['175']++;widget._domFocus=true;__cov_MzPaF1e83TZvr_uWaY6g9A.s['176']++;widget._set(FOCUSED,true,{src:UI});__cov_MzPaF1e83TZvr_uWaY6g9A.s['177']++;Widget._active=widget;}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['53'][1]++;}},toString:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['46']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['178']++;return this.name+'['+this.get(ID)+']';},DEF_UNIT:'px',DEF_PARENT_NODE:null,CONTENT_TEMPLATE:DIV,BOUNDING_TEMPLATE:DIV,_guid:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['47']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['179']++;return Y.guid();},_validTabIndex:function(tabIndex){__cov_MzPaF1e83TZvr_uWaY6g9A.f['48']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['180']++;return(__cov_MzPaF1e83TZvr_uWaY6g9A.b['54'][0]++,L.isNumber(tabIndex))||(__cov_MzPaF1e83TZvr_uWaY6g9A.b['54'][1]++,L.isNull(tabIndex));},_bindAttrUI:function(attrs){__cov_MzPaF1e83TZvr_uWaY6g9A.f['49']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['181']++;var i,l=attrs.length;__cov_MzPaF1e83TZvr_uWaY6g9A.s['182']++;for(i=0;i=0;i--){__cov_MzPaF1e83TZvr_uWaY6g9A.s['120']++;cl=classes[i];__cov_MzPaF1e83TZvr_uWaY6g9A.s['121']++;boundingBox.addClass((__cov_MzPaF1e83TZvr_uWaY6g9A.b['36'][0]++,cl.CSS_PREFIX)||(__cov_MzPaF1e83TZvr_uWaY6g9A.b['36'][1]++,_getClassName(cl.NAME.toLowerCase())));}__cov_MzPaF1e83TZvr_uWaY6g9A.s['122']++;this.get(CONTENT_BOX).addClass(this.getClassName(CONTENT));},_removeLoadingClassNames:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['31']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['123']++;var boundingBox=this.get(BOUNDING_BOX),contentBox=this.get(CONTENT_BOX),instClass=this.getClassName(LOADING),widgetClass=_getWidgetClassName(LOADING);__cov_MzPaF1e83TZvr_uWaY6g9A.s['124']++;boundingBox.removeClass(widgetClass).removeClass(instClass);__cov_MzPaF1e83TZvr_uWaY6g9A.s['125']++;contentBox.removeClass(widgetClass).removeClass(instClass);},_bindUI:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['32']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['126']++;this._bindAttrUI(this._UI_ATTRS.BIND);__cov_MzPaF1e83TZvr_uWaY6g9A.s['127']++;this._bindDOM();},_unbindUI:function(boundingBox){__cov_MzPaF1e83TZvr_uWaY6g9A.f['33']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['128']++;this._unbindDOM(boundingBox);},_bindDOM:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['34']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['129']++;var oDocument=this.get(BOUNDING_BOX).get(OWNER_DOCUMENT),focusHandle=Widget._hDocFocus;__cov_MzPaF1e83TZvr_uWaY6g9A.s['130']++;if(!focusHandle){__cov_MzPaF1e83TZvr_uWaY6g9A.b['37'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['131']++;focusHandle=Widget._hDocFocus=oDocument.on('focus',this._onDocFocus,this);__cov_MzPaF1e83TZvr_uWaY6g9A.s['132']++;focusHandle.listeners={count:0};}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['37'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['133']++;focusHandle.listeners[Y.stamp(this,true)]=true;__cov_MzPaF1e83TZvr_uWaY6g9A.s['134']++;focusHandle.listeners.count++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['135']++;if(WEBKIT){__cov_MzPaF1e83TZvr_uWaY6g9A.b['38'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['136']++;this._hDocMouseDown=oDocument.on('mousedown',this._onDocMouseDown,this);}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['38'][1]++;}},_unbindDOM:function(boundingBox){__cov_MzPaF1e83TZvr_uWaY6g9A.f['35']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['137']++;var focusHandle=Widget._hDocFocus,yuid=Y.stamp(this,true),focusListeners,mouseHandle=this._hDocMouseDown;__cov_MzPaF1e83TZvr_uWaY6g9A.s['138']++;if(focusHandle){__cov_MzPaF1e83TZvr_uWaY6g9A.b['39'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['139']++;focusListeners=focusHandle.listeners;__cov_MzPaF1e83TZvr_uWaY6g9A.s['140']++;if(focusListeners[yuid]){__cov_MzPaF1e83TZvr_uWaY6g9A.b['40'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['141']++;delete focusListeners[yuid];__cov_MzPaF1e83TZvr_uWaY6g9A.s['142']++;focusListeners.count--;}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['40'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['143']++;if(focusListeners.count===0){__cov_MzPaF1e83TZvr_uWaY6g9A.b['41'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['144']++;focusHandle.detach();__cov_MzPaF1e83TZvr_uWaY6g9A.s['145']++;Widget._hDocFocus=null;}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['41'][1]++;}}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['39'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['146']++;if((__cov_MzPaF1e83TZvr_uWaY6g9A.b['43'][0]++,WEBKIT)&&(__cov_MzPaF1e83TZvr_uWaY6g9A.b['43'][1]++,mouseHandle)){__cov_MzPaF1e83TZvr_uWaY6g9A.b['42'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['147']++;mouseHandle.detach();}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['42'][1]++;}},_syncUI:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['36']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['148']++;this._syncAttrUI(this._UI_ATTRS.SYNC);},_uiSetHeight:function(val){__cov_MzPaF1e83TZvr_uWaY6g9A.f['37']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['149']++;this._uiSetDim(HEIGHT,val);__cov_MzPaF1e83TZvr_uWaY6g9A.s['150']++;this._uiSizeCB((__cov_MzPaF1e83TZvr_uWaY6g9A.b['44'][0]++,val!==EMPTY_STR)&&(__cov_MzPaF1e83TZvr_uWaY6g9A.b['44'][1]++,val!==AUTO));},_uiSetWidth:function(val){__cov_MzPaF1e83TZvr_uWaY6g9A.f['38']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['151']++;this._uiSetDim(WIDTH,val);},_uiSetDim:function(dimension,val){__cov_MzPaF1e83TZvr_uWaY6g9A.f['39']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['152']++;this.get(BOUNDING_BOX).setStyle(dimension,L.isNumber(val)?(__cov_MzPaF1e83TZvr_uWaY6g9A.b['45'][0]++,val+this.DEF_UNIT):(__cov_MzPaF1e83TZvr_uWaY6g9A.b['45'][1]++,val));},_uiSetVisible:function(val){__cov_MzPaF1e83TZvr_uWaY6g9A.f['40']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['153']++;this.get(BOUNDING_BOX).toggleClass(this.getClassName(HIDDEN),!val);},_uiSetDisabled:function(val){__cov_MzPaF1e83TZvr_uWaY6g9A.f['41']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['154']++;this.get(BOUNDING_BOX).toggleClass(this.getClassName(DISABLED),val);},_uiSetFocused:function(val,src){__cov_MzPaF1e83TZvr_uWaY6g9A.f['42']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['155']++;var boundingBox=this.get(BOUNDING_BOX);__cov_MzPaF1e83TZvr_uWaY6g9A.s['156']++;boundingBox.toggleClass(this.getClassName(FOCUSED),val);__cov_MzPaF1e83TZvr_uWaY6g9A.s['157']++;if(src!==UI){__cov_MzPaF1e83TZvr_uWaY6g9A.b['46'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['158']++;if(val){__cov_MzPaF1e83TZvr_uWaY6g9A.b['47'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['159']++;boundingBox.focus();}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['47'][1]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['160']++;boundingBox.blur();}}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['46'][1]++;}},_uiSetTabIndex:function(index){__cov_MzPaF1e83TZvr_uWaY6g9A.f['43']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['161']++;var boundingBox=this.get(BOUNDING_BOX);__cov_MzPaF1e83TZvr_uWaY6g9A.s['162']++;if(L.isNumber(index)){__cov_MzPaF1e83TZvr_uWaY6g9A.b['48'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['163']++;boundingBox.set(TAB_INDEX,index);}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['48'][1]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['164']++;boundingBox.removeAttribute(TAB_INDEX);}},_onDocMouseDown:function(evt){__cov_MzPaF1e83TZvr_uWaY6g9A.f['44']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['165']++;if(this._domFocus){__cov_MzPaF1e83TZvr_uWaY6g9A.b['49'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['166']++;this._onDocFocus(evt);}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['49'][1]++;}},_onDocFocus:function(evt){__cov_MzPaF1e83TZvr_uWaY6g9A.f['45']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['167']++;var widget=Widget.getByNode(evt.target),activeWidget=Widget._active;__cov_MzPaF1e83TZvr_uWaY6g9A.s['168']++;if((__cov_MzPaF1e83TZvr_uWaY6g9A.b['51'][0]++,activeWidget)&&(__cov_MzPaF1e83TZvr_uWaY6g9A.b['51'][1]++,activeWidget!==widget)){__cov_MzPaF1e83TZvr_uWaY6g9A.b['50'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['169']++;activeWidget._domFocus=false;__cov_MzPaF1e83TZvr_uWaY6g9A.s['170']++;activeWidget._set(FOCUSED,false,{src:UI});__cov_MzPaF1e83TZvr_uWaY6g9A.s['171']++;Widget._active=null;}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['50'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['172']++;if(widget){__cov_MzPaF1e83TZvr_uWaY6g9A.b['52'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['173']++;widget._domFocus=true;__cov_MzPaF1e83TZvr_uWaY6g9A.s['174']++;widget._set(FOCUSED,true,{src:UI});__cov_MzPaF1e83TZvr_uWaY6g9A.s['175']++;Widget._active=widget;}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['52'][1]++;}},toString:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['46']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['176']++;return this.name+'['+this.get(ID)+']';},DEF_UNIT:'px',DEF_PARENT_NODE:null,CONTENT_TEMPLATE:DIV,BOUNDING_TEMPLATE:DIV,_guid:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['47']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['177']++;return Y.guid();},_validTabIndex:function(tabIndex){__cov_MzPaF1e83TZvr_uWaY6g9A.f['48']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['178']++;return(__cov_MzPaF1e83TZvr_uWaY6g9A.b['53'][0]++,L.isNumber(tabIndex))||(__cov_MzPaF1e83TZvr_uWaY6g9A.b['53'][1]++,L.isNull(tabIndex));},_bindAttrUI:function(attrs){__cov_MzPaF1e83TZvr_uWaY6g9A.f['49']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['179']++;var i,l=attrs.length;__cov_MzPaF1e83TZvr_uWaY6g9A.s['180']++;for(i=0;i=0;r--)t=e[r],n.addClass(t.CSS_PREFIX||s(t.NAME.toLowerCase()));this.get(m).addClass(this.getClassName(a))},_removeLoadingClassNames:function(){var e=this.get(v),t=this.get(m),n=this.getClassName(O),r=o(O);e.removeClass(r).removeClass(n),t.removeClass(r).removeClass(n)},_bindUI:function(){this._bindAttrUI(this._UI_ATTRS.BIND),this._bindDOM()},_unbindUI:function(e){this._unbindDOM(e)},_bindDOM:function(){var t=this.get(v).get(y),n=R._hDocFocus;n||(n=R._hDocFocus=t.on("focus",this._onDocFocus,this),n.listeners={count:0}),n.listeners[e.stamp(this,!0)]=!0,n.listeners.count++,I&&(this._hDocMouseDown=t.on("mousedown",this._onDocMouseDown,this))},_unbindDOM:function(t){var n=R._hDocFocus,r=e.stamp(this,!0),i,s=this._hDocMouseDown;n&&(i=n.listeners,i[r]&&(delete i[r],i.count--),i.count===0&&(n.detach(),R._hDocFocus=null)),I&&s&&s.detach()},_syncUI:function(){this._syncAttrUI(this._UI_ATTRS.SYNC)},_uiSetHeight:function(e){this._uiSetDim(d,e),this._uiSizeCB(e!==_&&e!==b)},_uiSetWidth:function(e){this._uiSetDim(p,e)},_uiSetDim:function(e,t){this.get(v).setStyle(e,n.isNumber(t)?t+this.DEF_UNIT:t)},_uiSetVisible:function(e){this.get(v).toggleClass(this.getClassName(l),!e)},_uiSetDisabled:function(e){this.get(v).toggleClass(this.getClassName(c),e)},_uiSetFocused:function(e,t){var n=this.get(v);n.toggleClass(this.getClassName(h),e),t!==B&&(e?n.focus():n.blur())},_uiSetTabIndex:function(e){var t=this.get(v);n.isNumber(e)?t.set(S,e):t.removeAttribute(S)},_onDocMouseDown:function(e){this._domFocus&&this._onDocFocus(e)},_onDocFocus:function(e){var t=R.getByNode(e.target),n=R._active;n&&n!==t&&(n._domFocus=!1,n._set(h,!1,{src:B}),R._active=null),t&&(t._domFocus=!0,t._set(h,!0,{src:B}),R._active=t)},toString:function(){return this.name+"["+this.get(x)+"]"},DEF_UNIT:"px",DEF_PARENT_NODE:null,CONTENT_TEMPLATE:L,BOUNDING_TEMPLATE:L,_guid:function(){return e.guid()},_validTabIndex:function(e){return n.isNumber(e)||n.isNull(e)},_bindAttrUI:function(e){var t,n=e.length;for(t=0;t=0;r--)t=e[r],n.addClass(t.CSS_PREFIX||s(t.NAME.toLowerCase()));this.get(m).addClass(this.getClassName(a))},_removeLoadingClassNames:function(){var e=this.get(v),t=this.get(m),n=this.getClassName(O),r=o(O);e.removeClass(r).removeClass(n),t.removeClass(r).removeClass(n)},_bindUI:function(){this._bindAttrUI(this._UI_ATTRS.BIND),this._bindDOM()},_unbindUI:function(e){this._unbindDOM(e)},_bindDOM:function(){var t=this.get(v).get(y),n=R._hDocFocus;n||(n=R._hDocFocus=t.on("focus",this._onDocFocus,this),n.listeners={count:0}),n.listeners[e.stamp(this,!0)]=!0,n.listeners.count++,I&&(this._hDocMouseDown=t.on("mousedown",this._onDocMouseDown,this))},_unbindDOM:function(t){var n=R._hDocFocus,r=e.stamp(this,!0),i,s=this._hDocMouseDown;n&&(i=n.listeners,i[r]&&(delete i[r],i.count--),i.count===0&&(n.detach(),R._hDocFocus=null)),I&&s&&s.detach()},_syncUI:function(){this._syncAttrUI(this._UI_ATTRS.SYNC)},_uiSetHeight:function(e){this._uiSetDim(d,e),this._uiSizeCB(e!==_&&e!==b)},_uiSetWidth:function(e){this._uiSetDim(p,e)},_uiSetDim:function(e,t){this.get(v).setStyle(e,n.isNumber(t)?t+this.DEF_UNIT:t)},_uiSetVisible:function(e){this.get(v).toggleClass(this.getClassName(l),!e)},_uiSetDisabled:function(e){this.get(v).toggleClass(this.getClassName(c),e)},_uiSetFocused:function(e,t){var n=this.get(v);n.toggleClass(this.getClassName(h),e),t!==B&&(e?n.focus():n.blur())},_uiSetTabIndex:function(e){var t=this.get(v);n.isNumber(e)?t.set(S,e):t.removeAttribute(S)},_onDocMouseDown:function(e){this._domFocus&&this._onDocFocus(e)},_onDocFocus:function(e){var t=R.getByNode(e.target),n=R._active;n&&n!==t&&(n._domFocus=!1,n._set(h,!1,{src:B}),R._active=null),t&&(t._domFocus=!0,t._set(h,!0,{src:B}),R._active=t)},toString:function(){return this.name+"["+this.get(x)+"]"},DEF_UNIT:"px",DEF_PARENT_NODE:null,CONTENT_TEMPLATE:L,BOUNDING_TEMPLATE:L,_guid:function(){return e.guid()},_validTabIndex:function(e){return n.isNumber(e)||n.isNull(e)},_bindAttrUI:function(e){var t,n=e.length;for(t=0;t Date: Sun, 13 Jan 2019 09:28:00 -0800 Subject: [PATCH 3/9] define WeakMap for phantomjs --- build/node-core/node-core-coverage.js | 4 ++-- build/node-core/node-core-debug.js | 21 +++++++++++++++++++ build/node-core/node-core-min.js | 4 ++-- build/node-core/node-core.js | 21 +++++++++++++++++++ build/view-node-map/view-node-map-coverage.js | 4 ++-- build/view-node-map/view-node-map-debug.js | 12 ++++------- build/view-node-map/view-node-map-min.js | 2 +- build/view-node-map/view-node-map.js | 12 ++++------- src/app/js/view-extensions/view-node-map.js | 12 ++++------- src/node/js/node-core.js | 21 +++++++++++++++++++ 10 files changed, 82 insertions(+), 31 deletions(-) diff --git a/build/node-core/node-core-coverage.js b/build/node-core/node-core-coverage.js index 17ed43a3dd3..6a2055c20a5 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},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0,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,0],"48":[0,0],"49":[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,0],"83":[0,0],"84":[0,0,0],"85":[0,0],"86":[0,0],"87":[0,0],"88":[0,0],"89":[0,0],"90":[0,0],"91":[0,0],"92":[0,0],"93":[0,0],"94":[0,0],"95":[0,0],"96":[0,0],"97":[0,0],"98":[0,0],"99":[0,0],"100":[0,0],"101":[0,0],"102":[0,0],"103":[0,0,0,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],"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,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,0],"155":[0,0],"156":[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":313,"loc":{"start":{"line":313,"column":24},"end":{"line":313,"column":44}}},"15":{"name":"(anonymous_15)","line":337,"loc":{"start":{"line":337,"column":24},"end":{"line":337,"column":39}}},"16":{"name":"(anonymous_16)","line":358,"loc":{"start":{"line":358,"column":14},"end":{"line":358,"column":25}}},"17":{"name":"(anonymous_17)","line":392,"loc":{"start":{"line":392,"column":9},"end":{"line":392,"column":24}}},"18":{"name":"(anonymous_18)","line":416,"loc":{"start":{"line":416,"column":10},"end":{"line":416,"column":25}}},"19":{"name":"(anonymous_19)","line":442,"loc":{"start":{"line":442,"column":9},"end":{"line":442,"column":29}}},"20":{"name":"(anonymous_20)","line":466,"loc":{"start":{"line":466,"column":14},"end":{"line":466,"column":32}}},"21":{"name":"(anonymous_21)","line":470,"loc":{"start":{"line":470,"column":35},"end":{"line":470,"column":50}}},"22":{"name":"(anonymous_22)","line":484,"loc":{"start":{"line":484,"column":14},"end":{"line":484,"column":30}}},"23":{"name":"(anonymous_23)","line":489,"loc":{"start":{"line":489,"column":32},"end":{"line":489,"column":47}}},"24":{"name":"(anonymous_24)","line":504,"loc":{"start":{"line":504,"column":15},"end":{"line":504,"column":33}}},"25":{"name":"(anonymous_25)","line":520,"loc":{"start":{"line":520,"column":11},"end":{"line":520,"column":25}}},"26":{"name":"(anonymous_26)","line":533,"loc":{"start":{"line":533,"column":13},"end":{"line":533,"column":26}}},"27":{"name":"(anonymous_27)","line":557,"loc":{"start":{"line":557,"column":14},"end":{"line":557,"column":45}}},"28":{"name":"(anonymous_28)","line":575,"loc":{"start":{"line":575,"column":15},"end":{"line":575,"column":46}}},"29":{"name":"(anonymous_29)","line":593,"loc":{"start":{"line":593,"column":14},"end":{"line":593,"column":32}}},"30":{"name":"(anonymous_30)","line":607,"loc":{"start":{"line":607,"column":10},"end":{"line":607,"column":28}}},"31":{"name":"(anonymous_31)","line":619,"loc":{"start":{"line":619,"column":14},"end":{"line":619,"column":27}}},"32":{"name":"(anonymous_32)","line":633,"loc":{"start":{"line":633,"column":9},"end":{"line":633,"column":28}}},"33":{"name":"(anonymous_33)","line":644,"loc":{"start":{"line":644,"column":9},"end":{"line":644,"column":28}}},"34":{"name":"(anonymous_34)","line":664,"loc":{"start":{"line":664,"column":10},"end":{"line":664,"column":29}}},"35":{"name":"(anonymous_35)","line":677,"loc":{"start":{"line":677,"column":12},"end":{"line":677,"column":30}}},"36":{"name":"(anonymous_36)","line":700,"loc":{"start":{"line":700,"column":13},"end":{"line":700,"column":31}}},"37":{"name":"(anonymous_37)","line":716,"loc":{"start":{"line":716,"column":18},"end":{"line":716,"column":42}}},"38":{"name":"(anonymous_38)","line":733,"loc":{"start":{"line":733,"column":13},"end":{"line":733,"column":33}}},"39":{"name":"(anonymous_39)","line":746,"loc":{"start":{"line":746,"column":43},"end":{"line":746,"column":58}}},"40":{"name":"(anonymous_40)","line":772,"loc":{"start":{"line":772,"column":12},"end":{"line":772,"column":44}}},"41":{"name":"(anonymous_41)","line":796,"loc":{"start":{"line":796,"column":8},"end":{"line":796,"column":28}}},"42":{"name":"(anonymous_42)","line":799,"loc":{"start":{"line":799,"column":8},"end":{"line":799,"column":28}}},"43":{"name":"(anonymous_43)","line":817,"loc":{"start":{"line":817,"column":15},"end":{"line":817,"column":32}}},"44":{"name":"(anonymous_44)","line":825,"loc":{"start":{"line":825,"column":16},"end":{"line":825,"column":27}}},"45":{"name":"(anonymous_45)","line":834,"loc":{"start":{"line":834,"column":11},"end":{"line":834,"column":22}}},"46":{"name":"(anonymous_46)","line":844,"loc":{"start":{"line":844,"column":16},"end":{"line":844,"column":27}}},"47":{"name":"(anonymous_47)","line":867,"loc":{"start":{"line":867,"column":15},"end":{"line":867,"column":31}}},"48":{"name":"(anonymous_48)","line":879,"loc":{"start":{"line":879,"column":32},"end":{"line":879,"column":47}}},"49":{"name":"(anonymous_49)","line":908,"loc":{"start":{"line":908,"column":23},"end":{"line":908,"column":42}}},"50":{"name":"(anonymous_50)","line":912,"loc":{"start":{"line":912,"column":16},"end":{"line":912,"column":48}}},"51":{"name":"(anonymous_51)","line":920,"loc":{"start":{"line":920,"column":21},"end":{"line":920,"column":49}}},"52":{"name":"(anonymous_52)","line":922,"loc":{"start":{"line":922,"column":35},"end":{"line":922,"column":46}}},"53":{"name":"(anonymous_53)","line":926,"loc":{"start":{"line":926,"column":38},"end":{"line":926,"column":53}}},"54":{"name":"(anonymous_54)","line":958,"loc":{"start":{"line":958,"column":24},"end":{"line":958,"column":54}}},"55":{"name":"(anonymous_55)","line":963,"loc":{"start":{"line":963,"column":27},"end":{"line":963,"column":39}}},"56":{"name":"(anonymous_56)","line":969,"loc":{"start":{"line":969,"column":24},"end":{"line":969,"column":39}}},"57":{"name":"(anonymous_57)","line":982,"loc":{"start":{"line":982,"column":13},"end":{"line":982,"column":44}}},"58":{"name":"(anonymous_58)","line":985,"loc":{"start":{"line":985,"column":18},"end":{"line":985,"column":33}}},"59":{"name":"(anonymous_59)","line":1002,"loc":{"start":{"line":1002,"column":10},"end":{"line":1002,"column":26}}},"60":{"name":"(anonymous_60)","line":1015,"loc":{"start":{"line":1015,"column":10},"end":{"line":1015,"column":32}}},"61":{"name":"(anonymous_61)","line":1017,"loc":{"start":{"line":1017,"column":34},"end":{"line":1017,"column":56}}},"62":{"name":"(anonymous_62)","line":1024,"loc":{"start":{"line":1024,"column":11},"end":{"line":1024,"column":33}}},"63":{"name":"(anonymous_63)","line":1027,"loc":{"start":{"line":1027,"column":34},"end":{"line":1027,"column":56}}},"64":{"name":"(anonymous_64)","line":1047,"loc":{"start":{"line":1047,"column":10},"end":{"line":1047,"column":32}}},"65":{"name":"(anonymous_65)","line":1049,"loc":{"start":{"line":1049,"column":41},"end":{"line":1049,"column":63}}},"66":{"name":"(anonymous_66)","line":1061,"loc":{"start":{"line":1061,"column":12},"end":{"line":1061,"column":23}}},"67":{"name":"(anonymous_67)","line":1072,"loc":{"start":{"line":1072,"column":13},"end":{"line":1072,"column":28}}},"68":{"name":"(anonymous_68)","line":1083,"loc":{"start":{"line":1083,"column":12},"end":{"line":1083,"column":31}}},"69":{"name":"(anonymous_69)","line":1097,"loc":{"start":{"line":1097,"column":13},"end":{"line":1097,"column":28}}},"70":{"name":"(anonymous_70)","line":1100,"loc":{"start":{"line":1100,"column":28},"end":{"line":1100,"column":46}}},"71":{"name":"(anonymous_71)","line":1115,"loc":{"start":{"line":1115,"column":9},"end":{"line":1115,"column":20}}},"72":{"name":"(anonymous_72)","line":1125,"loc":{"start":{"line":1125,"column":10},"end":{"line":1125,"column":21}}},"73":{"name":"(anonymous_73)","line":1129,"loc":{"start":{"line":1129,"column":16},"end":{"line":1129,"column":27}}},"74":{"name":"(anonymous_74)","line":1137,"loc":{"start":{"line":1137,"column":13},"end":{"line":1137,"column":24}}},"75":{"name":"(anonymous_75)","line":1161,"loc":{"start":{"line":1161,"column":10},"end":{"line":1161,"column":21}}},"76":{"name":"(anonymous_76)","line":1170,"loc":{"start":{"line":1170,"column":13},"end":{"line":1170,"column":24}}},"77":{"name":"(anonymous_77)","line":1174,"loc":{"start":{"line":1174,"column":14},"end":{"line":1174,"column":25}}},"78":{"name":"(anonymous_78)","line":1203,"loc":{"start":{"line":1203,"column":17},"end":{"line":1203,"column":28}}},"79":{"name":"(anonymous_79)","line":1261,"loc":{"start":{"line":1261,"column":25},"end":{"line":1261,"column":40}}},"80":{"name":"(anonymous_80)","line":1277,"loc":{"start":{"line":1277,"column":24},"end":{"line":1277,"column":39}}},"81":{"name":"(anonymous_81)","line":1297,"loc":{"start":{"line":1297,"column":8},"end":{"line":1297,"column":24}}},"82":{"name":"(anonymous_82)","line":1367,"loc":{"start":{"line":1367,"column":28},"end":{"line":1367,"column":59}}},"83":{"name":"(anonymous_83)","line":1368,"loc":{"start":{"line":1368,"column":33},"end":{"line":1368,"column":44}}},"84":{"name":"(anonymous_84)","line":1488,"loc":{"start":{"line":1488,"column":3},"end":{"line":1488,"column":20}}},"85":{"name":"(anonymous_85)","line":1489,"loc":{"start":{"line":1489,"column":31},"end":{"line":1489,"column":58}}},"86":{"name":"(anonymous_86)","line":1502,"loc":{"start":{"line":1502,"column":35},"end":{"line":1502,"column":50}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1619,"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":34}},"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":302,"column":2}},"78":{"start":{"line":276,"column":4},"end":{"line":277,"column":19}},"79":{"start":{"line":279,"column":4},"end":{"line":299,"column":5}},"80":{"start":{"line":280,"column":8},"end":{"line":287,"column":9}},"81":{"start":{"line":281,"column":12},"end":{"line":281,"column":44}},"82":{"start":{"line":282,"column":12},"end":{"line":284,"column":13}},"83":{"start":{"line":283,"column":16},"end":{"line":283,"column":28}},"84":{"start":{"line":285,"column":15},"end":{"line":287,"column":9}},"85":{"start":{"line":286,"column":12},"end":{"line":286,"column":24}},"86":{"start":{"line":289,"column":8},"end":{"line":298,"column":9}},"87":{"start":{"line":290,"column":12},"end":{"line":290,"column":51}},"88":{"start":{"line":291,"column":12},"end":{"line":291,"column":58}},"89":{"start":{"line":292,"column":12},"end":{"line":297,"column":13}},"90":{"start":{"line":293,"column":16},"end":{"line":293,"column":44}},"91":{"start":{"line":294,"column":16},"end":{"line":296,"column":17}},"92":{"start":{"line":295,"column":20},"end":{"line":295,"column":58}},"93":{"start":{"line":301,"column":4},"end":{"line":301,"column":20}},"94":{"start":{"line":313,"column":0},"end":{"line":327,"column":2}},"95":{"start":{"line":314,"column":4},"end":{"line":315,"column":16}},"96":{"start":{"line":317,"column":4},"end":{"line":324,"column":5}},"97":{"start":{"line":318,"column":8},"end":{"line":318,"column":23}},"98":{"start":{"line":319,"column":8},"end":{"line":319,"column":31}},"99":{"start":{"line":321,"column":8},"end":{"line":321,"column":43}},"100":{"start":{"line":322,"column":11},"end":{"line":324,"column":5}},"101":{"start":{"line":323,"column":8},"end":{"line":323,"column":25}},"102":{"start":{"line":326,"column":4},"end":{"line":326,"column":15}},"103":{"start":{"line":337,"column":0},"end":{"line":348,"column":2}},"104":{"start":{"line":338,"column":4},"end":{"line":339,"column":12}},"105":{"start":{"line":341,"column":4},"end":{"line":345,"column":5}},"106":{"start":{"line":342,"column":8},"end":{"line":342,"column":55}},"107":{"start":{"line":343,"column":11},"end":{"line":345,"column":5}},"108":{"start":{"line":344,"column":8},"end":{"line":344,"column":25}},"109":{"start":{"line":347,"column":4},"end":{"line":347,"column":15}},"110":{"start":{"line":350,"column":0},"end":{"line":847,"column":9}},"111":{"start":{"line":359,"column":8},"end":{"line":361,"column":33}},"112":{"start":{"line":363,"column":8},"end":{"line":379,"column":9}},"113":{"start":{"line":364,"column":12},"end":{"line":364,"column":36}},"114":{"start":{"line":365,"column":12},"end":{"line":365,"column":70}},"115":{"start":{"line":366,"column":12},"end":{"line":366,"column":91}},"116":{"start":{"line":367,"column":12},"end":{"line":367,"column":34}},"117":{"start":{"line":369,"column":12},"end":{"line":371,"column":13}},"118":{"start":{"line":370,"column":16},"end":{"line":370,"column":32}},"119":{"start":{"line":373,"column":12},"end":{"line":375,"column":13}},"120":{"start":{"line":374,"column":16},"end":{"line":374,"column":57}},"121":{"start":{"line":378,"column":12},"end":{"line":378,"column":35}},"122":{"start":{"line":380,"column":8},"end":{"line":380,"column":19}},"123":{"start":{"line":393,"column":8},"end":{"line":393,"column":16}},"124":{"start":{"line":395,"column":8},"end":{"line":399,"column":9}},"125":{"start":{"line":396,"column":12},"end":{"line":396,"column":38}},"126":{"start":{"line":398,"column":12},"end":{"line":398,"column":34}},"127":{"start":{"line":401,"column":8},"end":{"line":405,"column":9}},"128":{"start":{"line":402,"column":12},"end":{"line":402,"column":45}},"129":{"start":{"line":403,"column":15},"end":{"line":405,"column":9}},"130":{"start":{"line":404,"column":12},"end":{"line":404,"column":23}},"131":{"start":{"line":406,"column":8},"end":{"line":406,"column":19}},"132":{"start":{"line":417,"column":8},"end":{"line":418,"column":16}},"133":{"start":{"line":420,"column":8},"end":{"line":426,"column":9}},"134":{"start":{"line":421,"column":12},"end":{"line":421,"column":47}},"135":{"start":{"line":422,"column":15},"end":{"line":426,"column":9}},"136":{"start":{"line":423,"column":12},"end":{"line":423,"column":51}},"137":{"start":{"line":425,"column":12},"end":{"line":425,"column":63}},"138":{"start":{"line":428,"column":8},"end":{"line":428,"column":19}},"139":{"start":{"line":443,"column":8},"end":{"line":443,"column":44}},"140":{"start":{"line":445,"column":8},"end":{"line":455,"column":9}},"141":{"start":{"line":446,"column":12},"end":{"line":446,"column":49}},"142":{"start":{"line":448,"column":12},"end":{"line":454,"column":13}},"143":{"start":{"line":449,"column":16},"end":{"line":449,"column":56}},"144":{"start":{"line":450,"column":19},"end":{"line":454,"column":13}},"145":{"start":{"line":451,"column":16},"end":{"line":451,"column":51}},"146":{"start":{"line":453,"column":16},"end":{"line":453,"column":61}},"147":{"start":{"line":457,"column":8},"end":{"line":457,"column":20}},"148":{"start":{"line":467,"column":8},"end":{"line":473,"column":9}},"149":{"start":{"line":468,"column":12},"end":{"line":468,"column":36}},"150":{"start":{"line":470,"column":12},"end":{"line":472,"column":21}},"151":{"start":{"line":471,"column":16},"end":{"line":471,"column":31}},"152":{"start":{"line":475,"column":8},"end":{"line":475,"column":20}},"153":{"start":{"line":485,"column":8},"end":{"line":485,"column":21}},"154":{"start":{"line":486,"column":8},"end":{"line":492,"column":9}},"155":{"start":{"line":487,"column":12},"end":{"line":487,"column":34}},"156":{"start":{"line":489,"column":12},"end":{"line":491,"column":21}},"157":{"start":{"line":490,"column":16},"end":{"line":490,"column":37}},"158":{"start":{"line":494,"column":8},"end":{"line":494,"column":19}},"159":{"start":{"line":505,"column":8},"end":{"line":505,"column":30}},"160":{"start":{"line":507,"column":8},"end":{"line":509,"column":9}},"161":{"start":{"line":508,"column":12},"end":{"line":508,"column":36}},"162":{"start":{"line":510,"column":8},"end":{"line":510,"column":32}},"163":{"start":{"line":521,"column":8},"end":{"line":521,"column":30}},"164":{"start":{"line":523,"column":8},"end":{"line":528,"column":9}},"165":{"start":{"line":524,"column":12},"end":{"line":524,"column":66}},"166":{"start":{"line":525,"column":12},"end":{"line":527,"column":13}},"167":{"start":{"line":526,"column":16},"end":{"line":526,"column":65}},"168":{"start":{"line":530,"column":8},"end":{"line":530,"column":21}},"169":{"start":{"line":534,"column":8},"end":{"line":535,"column":55}},"170":{"start":{"line":536,"column":8},"end":{"line":540,"column":9}},"171":{"start":{"line":537,"column":12},"end":{"line":537,"column":29}},"172":{"start":{"line":539,"column":12},"end":{"line":539,"column":23}},"173":{"start":{"line":541,"column":8},"end":{"line":541,"column":19}},"174":{"start":{"line":559,"column":8},"end":{"line":562,"column":9}},"175":{"start":{"line":561,"column":12},"end":{"line":561,"column":30}},"176":{"start":{"line":564,"column":8},"end":{"line":564,"column":89}},"177":{"start":{"line":576,"column":8},"end":{"line":579,"column":9}},"178":{"start":{"line":578,"column":12},"end":{"line":578,"column":30}},"179":{"start":{"line":580,"column":8},"end":{"line":580,"column":90}},"180":{"start":{"line":594,"column":8},"end":{"line":594,"column":91}},"181":{"start":{"line":608,"column":8},"end":{"line":608,"column":87}},"182":{"start":{"line":620,"column":8},"end":{"line":620,"column":62}},"183":{"start":{"line":634,"column":8},"end":{"line":634,"column":67}},"184":{"start":{"line":645,"column":8},"end":{"line":645,"column":21}},"185":{"start":{"line":647,"column":8},"end":{"line":651,"column":9}},"186":{"start":{"line":648,"column":12},"end":{"line":648,"column":69}},"187":{"start":{"line":649,"column":12},"end":{"line":649,"column":39}},"188":{"start":{"line":650,"column":12},"end":{"line":650,"column":45}},"189":{"start":{"line":653,"column":8},"end":{"line":653,"column":37}},"190":{"start":{"line":665,"column":8},"end":{"line":665,"column":53}},"191":{"start":{"line":678,"column":8},"end":{"line":678,"column":30}},"192":{"start":{"line":680,"column":8},"end":{"line":682,"column":9}},"193":{"start":{"line":681,"column":12},"end":{"line":681,"column":46}},"194":{"start":{"line":684,"column":8},"end":{"line":686,"column":9}},"195":{"start":{"line":685,"column":12},"end":{"line":685,"column":27}},"196":{"start":{"line":688,"column":8},"end":{"line":688,"column":20}},"197":{"start":{"line":701,"column":8},"end":{"line":701,"column":30}},"198":{"start":{"line":702,"column":8},"end":{"line":704,"column":9}},"199":{"start":{"line":703,"column":12},"end":{"line":703,"column":45}},"200":{"start":{"line":705,"column":8},"end":{"line":705,"column":71}},"201":{"start":{"line":706,"column":8},"end":{"line":706,"column":20}},"202":{"start":{"line":717,"column":8},"end":{"line":719,"column":9}},"203":{"start":{"line":718,"column":12},"end":{"line":718,"column":38}},"204":{"start":{"line":721,"column":8},"end":{"line":721,"column":99}},"205":{"start":{"line":734,"column":8},"end":{"line":735,"column":21}},"206":{"start":{"line":737,"column":8},"end":{"line":737,"column":21}},"207":{"start":{"line":739,"column":8},"end":{"line":741,"column":9}},"208":{"start":{"line":740,"column":12},"end":{"line":740,"column":26}},"209":{"start":{"line":743,"column":8},"end":{"line":743,"column":25}},"210":{"start":{"line":745,"column":8},"end":{"line":754,"column":9}},"211":{"start":{"line":746,"column":12},"end":{"line":753,"column":15}},"212":{"start":{"line":747,"column":16},"end":{"line":747,"column":61}},"213":{"start":{"line":748,"column":16},"end":{"line":752,"column":17}},"214":{"start":{"line":749,"column":19},"end":{"line":749,"column":38}},"215":{"start":{"line":751,"column":20},"end":{"line":751,"column":47}},"216":{"start":{"line":756,"column":8},"end":{"line":756,"column":45}},"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":773,"column":8},"end":{"line":774,"column":16}},"220":{"start":{"line":776,"column":8},"end":{"line":778,"column":9}},"221":{"start":{"line":777,"column":12},"end":{"line":777,"column":24}},"222":{"start":{"line":780,"column":8},"end":{"line":782,"column":9}},"223":{"start":{"line":781,"column":12},"end":{"line":781,"column":24}},"224":{"start":{"line":784,"column":8},"end":{"line":784,"column":42}},"225":{"start":{"line":785,"column":8},"end":{"line":785,"column":42}},"226":{"start":{"line":797,"column":12},"end":{"line":797,"column":62}},"227":{"start":{"line":800,"column":12},"end":{"line":800,"column":53}},"228":{"start":{"line":801,"column":12},"end":{"line":803,"column":52}},"229":{"start":{"line":805,"column":12},"end":{"line":812,"column":13}},"230":{"start":{"line":806,"column":16},"end":{"line":806,"column":53}},"231":{"start":{"line":807,"column":19},"end":{"line":812,"column":13}},"232":{"start":{"line":808,"column":16},"end":{"line":808,"column":53}},"233":{"start":{"line":810,"column":16},"end":{"line":810,"column":62}},"234":{"start":{"line":811,"column":16},"end":{"line":811,"column":57}},"235":{"start":{"line":813,"column":12},"end":{"line":813,"column":24}},"236":{"start":{"line":818,"column":8},"end":{"line":818,"column":30}},"237":{"start":{"line":819,"column":8},"end":{"line":822,"column":65}},"238":{"start":{"line":826,"column":8},"end":{"line":826,"column":45}},"239":{"start":{"line":835,"column":8},"end":{"line":835,"column":54}},"240":{"start":{"line":836,"column":8},"end":{"line":836,"column":20}},"241":{"start":{"line":845,"column":8},"end":{"line":845,"column":26}},"242":{"start":{"line":849,"column":0},"end":{"line":849,"column":16}},"243":{"start":{"line":850,"column":0},"end":{"line":850,"column":19}},"244":{"start":{"line":867,"column":0},"end":{"line":896,"column":2}},"245":{"start":{"line":868,"column":4},"end":{"line":868,"column":17}},"246":{"start":{"line":870,"column":4},"end":{"line":888,"column":5}},"247":{"start":{"line":871,"column":8},"end":{"line":887,"column":9}},"248":{"start":{"line":872,"column":12},"end":{"line":872,"column":32}},"249":{"start":{"line":873,"column":12},"end":{"line":873,"column":44}},"250":{"start":{"line":874,"column":15},"end":{"line":887,"column":9}},"251":{"start":{"line":875,"column":12},"end":{"line":875,"column":28}},"252":{"start":{"line":876,"column":15},"end":{"line":887,"column":9}},"253":{"start":{"line":877,"column":12},"end":{"line":877,"column":34}},"254":{"start":{"line":878,"column":15},"end":{"line":887,"column":9}},"255":{"start":{"line":879,"column":12},"end":{"line":883,"column":15}},"256":{"start":{"line":880,"column":16},"end":{"line":882,"column":17}},"257":{"start":{"line":881,"column":20},"end":{"line":881,"column":41}},"258":{"start":{"line":884,"column":12},"end":{"line":884,"column":24}},"259":{"start":{"line":886,"column":12},"end":{"line":886,"column":44}},"260":{"start":{"line":895,"column":4},"end":{"line":895,"column":30}},"261":{"start":{"line":898,"column":0},"end":{"line":898,"column":27}},"262":{"start":{"line":908,"column":0},"end":{"line":910,"column":2}},"263":{"start":{"line":909,"column":4},"end":{"line":909,"column":70}},"264":{"start":{"line":912,"column":0},"end":{"line":918,"column":2}},"265":{"start":{"line":913,"column":4},"end":{"line":913,"column":32}},"266":{"start":{"line":914,"column":4},"end":{"line":917,"column":5}},"267":{"start":{"line":915,"column":8},"end":{"line":915,"column":53}},"268":{"start":{"line":920,"column":0},"end":{"line":946,"column":2}},"269":{"start":{"line":921,"column":4},"end":{"line":945,"column":5}},"270":{"start":{"line":922,"column":8},"end":{"line":943,"column":10}},"271":{"start":{"line":923,"column":12},"end":{"line":924,"column":33}},"272":{"start":{"line":926,"column":12},"end":{"line":939,"column":15}},"273":{"start":{"line":927,"column":16},"end":{"line":929,"column":27}},"274":{"start":{"line":931,"column":16},"end":{"line":933,"column":17}},"275":{"start":{"line":932,"column":20},"end":{"line":932,"column":59}},"276":{"start":{"line":934,"column":16},"end":{"line":934,"column":42}},"277":{"start":{"line":935,"column":16},"end":{"line":935,"column":45}},"278":{"start":{"line":936,"column":16},"end":{"line":938,"column":17}},"279":{"start":{"line":937,"column":20},"end":{"line":937,"column":45}},"280":{"start":{"line":942,"column":12},"end":{"line":942,"column":43}},"281":{"start":{"line":958,"column":0},"end":{"line":967,"column":2}},"282":{"start":{"line":959,"column":4},"end":{"line":966,"column":5}},"283":{"start":{"line":960,"column":8},"end":{"line":960,"column":34}},"284":{"start":{"line":961,"column":8},"end":{"line":961,"column":48}},"285":{"start":{"line":963,"column":8},"end":{"line":965,"column":11}},"286":{"start":{"line":964,"column":12},"end":{"line":964,"column":43}},"287":{"start":{"line":969,"column":0},"end":{"line":979,"column":2}},"288":{"start":{"line":970,"column":4},"end":{"line":970,"column":33}},"289":{"start":{"line":971,"column":4},"end":{"line":974,"column":5}},"290":{"start":{"line":972,"column":8},"end":{"line":972,"column":43}},"291":{"start":{"line":973,"column":8},"end":{"line":973,"column":33}},"292":{"start":{"line":976,"column":4},"end":{"line":976,"column":21}},"293":{"start":{"line":977,"column":4},"end":{"line":977,"column":27}},"294":{"start":{"line":978,"column":4},"end":{"line":978,"column":15}},"295":{"start":{"line":981,"column":0},"end":{"line":1206,"column":9}},"296":{"start":{"line":983,"column":8},"end":{"line":983,"column":39}},"297":{"start":{"line":985,"column":8},"end":{"line":990,"column":11}},"298":{"start":{"line":986,"column":12},"end":{"line":986,"column":53}},"299":{"start":{"line":987,"column":12},"end":{"line":989,"column":13}},"300":{"start":{"line":988,"column":16},"end":{"line":988,"column":30}},"301":{"start":{"line":992,"column":8},"end":{"line":992,"column":19}},"302":{"start":{"line":1003,"column":8},"end":{"line":1003,"column":49}},"303":{"start":{"line":1016,"column":8},"end":{"line":1016,"column":28}},"304":{"start":{"line":1017,"column":8},"end":{"line":1020,"column":11}},"305":{"start":{"line":1018,"column":12},"end":{"line":1018,"column":31}},"306":{"start":{"line":1019,"column":12},"end":{"line":1019,"column":67}},"307":{"start":{"line":1021,"column":8},"end":{"line":1021,"column":24}},"308":{"start":{"line":1025,"column":8},"end":{"line":1025,"column":28}},"309":{"start":{"line":1027,"column":8},"end":{"line":1034,"column":11}},"310":{"start":{"line":1028,"column":12},"end":{"line":1028,"column":55}},"311":{"start":{"line":1029,"column":12},"end":{"line":1031,"column":13}},"312":{"start":{"line":1030,"column":16},"end":{"line":1030,"column":55}},"313":{"start":{"line":1033,"column":12},"end":{"line":1033,"column":75}},"314":{"start":{"line":1035,"column":8},"end":{"line":1035,"column":24}},"315":{"start":{"line":1048,"column":8},"end":{"line":1048,"column":28}},"316":{"start":{"line":1049,"column":8},"end":{"line":1053,"column":11}},"317":{"start":{"line":1050,"column":12},"end":{"line":1050,"column":31}},"318":{"start":{"line":1051,"column":12},"end":{"line":1051,"column":38}},"319":{"start":{"line":1052,"column":12},"end":{"line":1052,"column":59}},"320":{"start":{"line":1062,"column":8},"end":{"line":1062,"column":50}},"321":{"start":{"line":1073,"column":8},"end":{"line":1073,"column":69}},"322":{"start":{"line":1084,"column":8},"end":{"line":1084,"column":63}},"323":{"start":{"line":1098,"column":8},"end":{"line":1098,"column":19}},"324":{"start":{"line":1099,"column":8},"end":{"line":1099,"column":23}},"325":{"start":{"line":1100,"column":8},"end":{"line":1104,"column":11}},"326":{"start":{"line":1101,"column":12},"end":{"line":1103,"column":13}},"327":{"start":{"line":1102,"column":16},"end":{"line":1102,"column":33}},"328":{"start":{"line":1106,"column":8},"end":{"line":1106,"column":28}},"329":{"start":{"line":1116,"column":8},"end":{"line":1116,"column":34}},"330":{"start":{"line":1126,"column":8},"end":{"line":1126,"column":31}},"331":{"start":{"line":1138,"column":8},"end":{"line":1141,"column":35}},"332":{"start":{"line":1143,"column":8},"end":{"line":1151,"column":9}},"333":{"start":{"line":1144,"column":12},"end":{"line":1148,"column":13}},"334":{"start":{"line":1145,"column":16},"end":{"line":1147,"column":17}},"335":{"start":{"line":1146,"column":20},"end":{"line":1146,"column":50}},"336":{"start":{"line":1150,"column":12},"end":{"line":1150,"column":56}},"337":{"start":{"line":1153,"column":8},"end":{"line":1153,"column":20}},"338":{"start":{"line":1162,"column":8},"end":{"line":1162,"column":34}},"339":{"start":{"line":1171,"column":8},"end":{"line":1171,"column":38}},"340":{"start":{"line":1175,"column":8},"end":{"line":1178,"column":17}},"341":{"start":{"line":1180,"column":8},"end":{"line":1194,"column":9}},"342":{"start":{"line":1181,"column":12},"end":{"line":1181,"column":28}},"343":{"start":{"line":1182,"column":12},"end":{"line":1182,"column":35}},"344":{"start":{"line":1183,"column":12},"end":{"line":1185,"column":13}},"345":{"start":{"line":1184,"column":16},"end":{"line":1184,"column":37}},"346":{"start":{"line":1187,"column":12},"end":{"line":1189,"column":13}},"347":{"start":{"line":1188,"column":16},"end":{"line":1188,"column":62}},"348":{"start":{"line":1191,"column":12},"end":{"line":1193,"column":13}},"349":{"start":{"line":1192,"column":16},"end":{"line":1192,"column":57}},"350":{"start":{"line":1195,"column":8},"end":{"line":1195,"column":31}},"351":{"start":{"line":1204,"column":8},"end":{"line":1204,"column":27}},"352":{"start":{"line":1208,"column":0},"end":{"line":1252,"column":3}},"353":{"start":{"line":1261,"column":0},"end":{"line":1293,"column":2}},"354":{"start":{"line":1262,"column":4},"end":{"line":1267,"column":12}},"355":{"start":{"line":1269,"column":4},"end":{"line":1275,"column":5}},"356":{"start":{"line":1270,"column":8},"end":{"line":1270,"column":72}},"357":{"start":{"line":1271,"column":8},"end":{"line":1271,"column":34}},"358":{"start":{"line":1272,"column":8},"end":{"line":1274,"column":9}},"359":{"start":{"line":1273,"column":12},"end":{"line":1273,"column":30}},"360":{"start":{"line":1277,"column":4},"end":{"line":1290,"column":7}},"361":{"start":{"line":1278,"column":8},"end":{"line":1278,"column":47}},"362":{"start":{"line":1280,"column":8},"end":{"line":1282,"column":9}},"363":{"start":{"line":1281,"column":12},"end":{"line":1281,"column":37}},"364":{"start":{"line":1284,"column":8},"end":{"line":1284,"column":34}},"365":{"start":{"line":1285,"column":8},"end":{"line":1287,"column":9}},"366":{"start":{"line":1286,"column":12},"end":{"line":1286,"column":49}},"367":{"start":{"line":1289,"column":8},"end":{"line":1289,"column":22}},"368":{"start":{"line":1292,"column":4},"end":{"line":1292,"column":43}},"369":{"start":{"line":1295,"column":0},"end":{"line":1295,"column":22}},"370":{"start":{"line":1297,"column":0},"end":{"line":1299,"column":2}},"371":{"start":{"line":1298,"column":4},"end":{"line":1298,"column":31}},"372":{"start":{"line":1301,"column":0},"end":{"line":1301,"column":19}},"373":{"start":{"line":1307,"column":0},"end":{"line":1364,"column":6}},"374":{"start":{"line":1367,"column":0},"end":{"line":1388,"column":3}},"375":{"start":{"line":1368,"column":4},"end":{"line":1387,"column":6}},"376":{"start":{"line":1369,"column":8},"end":{"line":1372,"column":16}},"377":{"start":{"line":1374,"column":8},"end":{"line":1376,"column":9}},"378":{"start":{"line":1375,"column":12},"end":{"line":1375,"column":54}},"379":{"start":{"line":1378,"column":8},"end":{"line":1378,"column":56}},"380":{"start":{"line":1380,"column":8},"end":{"line":1384,"column":9}},"381":{"start":{"line":1381,"column":12},"end":{"line":1381,"column":29}},"382":{"start":{"line":1383,"column":12},"end":{"line":1383,"column":39}},"383":{"start":{"line":1386,"column":8},"end":{"line":1386,"column":19}},"384":{"start":{"line":1394,"column":0},"end":{"line":1493,"column":3}},"385":{"start":{"line":1489,"column":4},"end":{"line":1492,"column":6}},"386":{"start":{"line":1490,"column":8},"end":{"line":1490,"column":56}},"387":{"start":{"line":1491,"column":8},"end":{"line":1491,"column":19}},"388":{"start":{"line":1502,"column":0},"end":{"line":1509,"column":2}},"389":{"start":{"line":1503,"column":4},"end":{"line":1503,"column":26}},"390":{"start":{"line":1504,"column":4},"end":{"line":1506,"column":5}},"391":{"start":{"line":1505,"column":8},"end":{"line":1505,"column":38}},"392":{"start":{"line":1508,"column":4},"end":{"line":1508,"column":16}},"393":{"start":{"line":1511,"column":0},"end":{"line":1561,"column":3}},"394":{"start":{"line":1563,"column":0},"end":{"line":1616,"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":39}},{"start":{"line":51,"column":43},"end":{"line":51,"column":85}}]},"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":279,"type":"if","locations":[{"start":{"line":279,"column":4},"end":{"line":279,"column":4}},{"start":{"line":279,"column":4},"end":{"line":279,"column":4}}]},"40":{"line":280,"type":"if","locations":[{"start":{"line":280,"column":8},"end":{"line":280,"column":8}},{"start":{"line":280,"column":8},"end":{"line":280,"column":8}}]},"41":{"line":282,"type":"if","locations":[{"start":{"line":282,"column":12},"end":{"line":282,"column":12}},{"start":{"line":282,"column":12},"end":{"line":282,"column":12}}]},"42":{"line":285,"type":"if","locations":[{"start":{"line":285,"column":15},"end":{"line":285,"column":15}},{"start":{"line":285,"column":15},"end":{"line":285,"column":15}}]},"43":{"line":289,"type":"if","locations":[{"start":{"line":289,"column":8},"end":{"line":289,"column":8}},{"start":{"line":289,"column":8},"end":{"line":289,"column":8}}]},"44":{"line":289,"type":"binary-expr","locations":[{"start":{"line":289,"column":12},"end":{"line":289,"column":25}},{"start":{"line":289,"column":29},"end":{"line":289,"column":49}}]},"45":{"line":291,"type":"cond-expr","locations":[{"start":{"line":291,"column":36},"end":{"line":291,"column":50}},{"start":{"line":291,"column":53},"end":{"line":291,"column":57}}]},"46":{"line":292,"type":"if","locations":[{"start":{"line":292,"column":12},"end":{"line":292,"column":12}},{"start":{"line":292,"column":12},"end":{"line":292,"column":12}}]},"47":{"line":292,"type":"binary-expr","locations":[{"start":{"line":292,"column":16},"end":{"line":292,"column":25}},{"start":{"line":292,"column":30},"end":{"line":292,"column":40}},{"start":{"line":292,"column":44},"end":{"line":292,"column":63}}]},"48":{"line":294,"type":"if","locations":[{"start":{"line":294,"column":16},"end":{"line":294,"column":16}},{"start":{"line":294,"column":16},"end":{"line":294,"column":16}}]},"49":{"line":317,"type":"if","locations":[{"start":{"line":317,"column":4},"end":{"line":317,"column":4}},{"start":{"line":317,"column":4},"end":{"line":317,"column":4}}]},"50":{"line":322,"type":"if","locations":[{"start":{"line":322,"column":11},"end":{"line":322,"column":11}},{"start":{"line":322,"column":11},"end":{"line":322,"column":11}}]},"51":{"line":341,"type":"if","locations":[{"start":{"line":341,"column":4},"end":{"line":341,"column":4}},{"start":{"line":341,"column":4},"end":{"line":341,"column":4}}]},"52":{"line":341,"type":"binary-expr","locations":[{"start":{"line":341,"column":8},"end":{"line":341,"column":20}},{"start":{"line":341,"column":24},"end":{"line":341,"column":46}}]},"53":{"line":343,"type":"if","locations":[{"start":{"line":343,"column":11},"end":{"line":343,"column":11}},{"start":{"line":343,"column":11},"end":{"line":343,"column":11}}]},"54":{"line":363,"type":"if","locations":[{"start":{"line":363,"column":8},"end":{"line":363,"column":8}},{"start":{"line":363,"column":8},"end":{"line":363,"column":8}}]},"55":{"line":365,"type":"cond-expr","locations":[{"start":{"line":365,"column":39},"end":{"line":365,"column":62}},{"start":{"line":365,"column":65},"end":{"line":365,"column":69}}]},"56":{"line":365,"type":"binary-expr","locations":[{"start":{"line":365,"column":18},"end":{"line":365,"column":23}},{"start":{"line":365,"column":27},"end":{"line":365,"column":35}}]},"57":{"line":366,"type":"cond-expr","locations":[{"start":{"line":366,"column":53},"end":{"line":366,"column":83}},{"start":{"line":366,"column":86},"end":{"line":366,"column":90}}]},"58":{"line":366,"type":"binary-expr","locations":[{"start":{"line":366,"column":25},"end":{"line":366,"column":30}},{"start":{"line":366,"column":34},"end":{"line":366,"column":49}}]},"59":{"line":369,"type":"if","locations":[{"start":{"line":369,"column":12},"end":{"line":369,"column":12}},{"start":{"line":369,"column":12},"end":{"line":369,"column":12}}]},"60":{"line":373,"type":"if","locations":[{"start":{"line":373,"column":12},"end":{"line":373,"column":12}},{"start":{"line":373,"column":12},"end":{"line":373,"column":12}}]},"61":{"line":395,"type":"if","locations":[{"start":{"line":395,"column":8},"end":{"line":395,"column":8}},{"start":{"line":395,"column":8},"end":{"line":395,"column":8}}]},"62":{"line":401,"type":"if","locations":[{"start":{"line":401,"column":8},"end":{"line":401,"column":8}},{"start":{"line":401,"column":8},"end":{"line":401,"column":8}}]},"63":{"line":403,"type":"if","locations":[{"start":{"line":403,"column":15},"end":{"line":403,"column":15}},{"start":{"line":403,"column":15},"end":{"line":403,"column":15}}]},"64":{"line":420,"type":"if","locations":[{"start":{"line":420,"column":8},"end":{"line":420,"column":8}},{"start":{"line":420,"column":8},"end":{"line":420,"column":8}}]},"65":{"line":420,"type":"binary-expr","locations":[{"start":{"line":420,"column":12},"end":{"line":420,"column":22}},{"start":{"line":420,"column":26},"end":{"line":420,"column":43}}]},"66":{"line":422,"type":"if","locations":[{"start":{"line":422,"column":15},"end":{"line":422,"column":15}},{"start":{"line":422,"column":15},"end":{"line":422,"column":15}}]},"67":{"line":445,"type":"if","locations":[{"start":{"line":445,"column":8},"end":{"line":445,"column":8}},{"start":{"line":445,"column":8},"end":{"line":445,"column":8}}]},"68":{"line":448,"type":"if","locations":[{"start":{"line":448,"column":12},"end":{"line":448,"column":12}},{"start":{"line":448,"column":12},"end":{"line":448,"column":12}}]},"69":{"line":448,"type":"binary-expr","locations":[{"start":{"line":448,"column":16},"end":{"line":448,"column":26}},{"start":{"line":448,"column":30},"end":{"line":448,"column":47}}]},"70":{"line":450,"type":"if","locations":[{"start":{"line":450,"column":19},"end":{"line":450,"column":19}},{"start":{"line":450,"column":19},"end":{"line":450,"column":19}}]},"71":{"line":467,"type":"if","locations":[{"start":{"line":467,"column":8},"end":{"line":467,"column":8}},{"start":{"line":467,"column":8},"end":{"line":467,"column":8}}]},"72":{"line":486,"type":"if","locations":[{"start":{"line":486,"column":8},"end":{"line":486,"column":8}},{"start":{"line":486,"column":8},"end":{"line":486,"column":8}}]},"73":{"line":507,"type":"if","locations":[{"start":{"line":507,"column":8},"end":{"line":507,"column":8}},{"start":{"line":507,"column":8},"end":{"line":507,"column":8}}]},"74":{"line":507,"type":"binary-expr","locations":[{"start":{"line":507,"column":12},"end":{"line":507,"column":19}},{"start":{"line":507,"column":23},"end":{"line":507,"column":36}}]},"75":{"line":523,"type":"if","locations":[{"start":{"line":523,"column":8},"end":{"line":523,"column":8}},{"start":{"line":523,"column":8},"end":{"line":523,"column":8}}]},"76":{"line":524,"type":"cond-expr","locations":[{"start":{"line":524,"column":26},"end":{"line":524,"column":42}},{"start":{"line":524,"column":45},"end":{"line":524,"column":65}}]},"77":{"line":524,"type":"binary-expr","locations":[{"start":{"line":524,"column":26},"end":{"line":524,"column":35}},{"start":{"line":524,"column":39},"end":{"line":524,"column":42}}]},"78":{"line":525,"type":"if","locations":[{"start":{"line":525,"column":12},"end":{"line":525,"column":12}},{"start":{"line":525,"column":12},"end":{"line":525,"column":12}}]},"79":{"line":536,"type":"if","locations":[{"start":{"line":536,"column":8},"end":{"line":536,"column":8}},{"start":{"line":536,"column":8},"end":{"line":536,"column":8}}]},"80":{"line":536,"type":"binary-expr","locations":[{"start":{"line":536,"column":12},"end":{"line":536,"column":15}},{"start":{"line":536,"column":19},"end":{"line":536,"column":44}}]},"81":{"line":559,"type":"if","locations":[{"start":{"line":559,"column":8},"end":{"line":559,"column":8}},{"start":{"line":559,"column":8},"end":{"line":559,"column":8}}]},"82":{"line":559,"type":"binary-expr","locations":[{"start":{"line":559,"column":12},"end":{"line":559,"column":34}},{"start":{"line":560,"column":17},"end":{"line":560,"column":44}},{"start":{"line":560,"column":48},"end":{"line":560,"column":77}}]},"83":{"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}}]},"84":{"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}}]},"85":{"line":647,"type":"if","locations":[{"start":{"line":647,"column":8},"end":{"line":647,"column":8}},{"start":{"line":647,"column":8},"end":{"line":647,"column":8}}]},"86":{"line":653,"type":"binary-expr","locations":[{"start":{"line":653,"column":15},"end":{"line":653,"column":23}},{"start":{"line":653,"column":27},"end":{"line":653,"column":36}}]},"87":{"line":680,"type":"if","locations":[{"start":{"line":680,"column":8},"end":{"line":680,"column":8}},{"start":{"line":680,"column":8},"end":{"line":680,"column":8}}]},"88":{"line":680,"type":"binary-expr","locations":[{"start":{"line":680,"column":12},"end":{"line":680,"column":16}},{"start":{"line":680,"column":20},"end":{"line":680,"column":35}}]},"89":{"line":684,"type":"if","locations":[{"start":{"line":684,"column":8},"end":{"line":684,"column":8}},{"start":{"line":684,"column":8},"end":{"line":684,"column":8}}]},"90":{"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}}]},"91":{"line":717,"type":"if","locations":[{"start":{"line":717,"column":8},"end":{"line":717,"column":8}},{"start":{"line":717,"column":8},"end":{"line":717,"column":8}}]},"92":{"line":734,"type":"cond-expr","locations":[{"start":{"line":734,"column":42},"end":{"line":734,"column":52}},{"start":{"line":734,"column":55},"end":{"line":734,"column":62}}]},"93":{"line":739,"type":"if","locations":[{"start":{"line":739,"column":8},"end":{"line":739,"column":8}},{"start":{"line":739,"column":8},"end":{"line":739,"column":8}}]},"94":{"line":745,"type":"if","locations":[{"start":{"line":745,"column":8},"end":{"line":745,"column":8}},{"start":{"line":745,"column":8},"end":{"line":745,"column":8}}]},"95":{"line":748,"type":"if","locations":[{"start":{"line":748,"column":16},"end":{"line":748,"column":16}},{"start":{"line":748,"column":16},"end":{"line":748,"column":16}}]},"96":{"line":776,"type":"if","locations":[{"start":{"line":776,"column":8},"end":{"line":776,"column":8}},{"start":{"line":776,"column":8},"end":{"line":776,"column":8}}]},"97":{"line":776,"type":"binary-expr","locations":[{"start":{"line":776,"column":12},"end":{"line":776,"column":13}},{"start":{"line":776,"column":17},"end":{"line":776,"column":24}}]},"98":{"line":780,"type":"if","locations":[{"start":{"line":780,"column":8},"end":{"line":780,"column":8}},{"start":{"line":780,"column":8},"end":{"line":780,"column":8}}]},"99":{"line":780,"type":"binary-expr","locations":[{"start":{"line":780,"column":12},"end":{"line":780,"column":13}},{"start":{"line":780,"column":17},"end":{"line":780,"column":24}}]},"100":{"line":795,"type":"cond-expr","locations":[{"start":{"line":796,"column":8},"end":{"line":798,"column":9}},{"start":{"line":799,"column":8},"end":{"line":814,"column":9}}]},"101":{"line":805,"type":"if","locations":[{"start":{"line":805,"column":12},"end":{"line":805,"column":12}},{"start":{"line":805,"column":12},"end":{"line":805,"column":12}}]},"102":{"line":807,"type":"if","locations":[{"start":{"line":807,"column":19},"end":{"line":807,"column":19}},{"start":{"line":807,"column":19},"end":{"line":807,"column":19}}]},"103":{"line":819,"type":"binary-expr","locations":[{"start":{"line":819,"column":18},"end":{"line":819,"column":22}},{"start":{"line":819,"column":26},"end":{"line":819,"column":40}},{"start":{"line":820,"column":16},"end":{"line":820,"column":48}},{"start":{"line":821,"column":13},"end":{"line":821,"column":46}},{"start":{"line":822,"column":16},"end":{"line":822,"column":62}}]},"104":{"line":870,"type":"if","locations":[{"start":{"line":870,"column":4},"end":{"line":870,"column":4}},{"start":{"line":870,"column":4},"end":{"line":870,"column":4}}]},"105":{"line":871,"type":"if","locations":[{"start":{"line":871,"column":8},"end":{"line":871,"column":8}},{"start":{"line":871,"column":8},"end":{"line":871,"column":8}}]},"106":{"line":874,"type":"if","locations":[{"start":{"line":874,"column":15},"end":{"line":874,"column":15}},{"start":{"line":874,"column":15},"end":{"line":874,"column":15}}]},"107":{"line":874,"type":"binary-expr","locations":[{"start":{"line":874,"column":19},"end":{"line":874,"column":33}},{"start":{"line":874,"column":37},"end":{"line":874,"column":58}}]},"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":878,"type":"if","locations":[{"start":{"line":878,"column":15},"end":{"line":878,"column":15}},{"start":{"line":878,"column":15},"end":{"line":878,"column":15}}]},"110":{"line":878,"type":"binary-expr","locations":[{"start":{"line":878,"column":19},"end":{"line":878,"column":27}},{"start":{"line":878,"column":31},"end":{"line":878,"column":45}}]},"111":{"line":880,"type":"if","locations":[{"start":{"line":880,"column":16},"end":{"line":880,"column":16}},{"start":{"line":880,"column":16},"end":{"line":880,"column":16}}]},"112":{"line":895,"type":"binary-expr","locations":[{"start":{"line":895,"column":18},"end":{"line":895,"column":23}},{"start":{"line":895,"column":27},"end":{"line":895,"column":29}}]},"113":{"line":909,"type":"cond-expr","locations":[{"start":{"line":909,"column":43},"end":{"line":909,"column":58}},{"start":{"line":909,"column":61},"end":{"line":909,"column":69}}]},"114":{"line":909,"type":"binary-expr","locations":[{"start":{"line":909,"column":12},"end":{"line":909,"column":20}},{"start":{"line":909,"column":24},"end":{"line":909,"column":39}}]},"115":{"line":914,"type":"if","locations":[{"start":{"line":914,"column":4},"end":{"line":914,"column":4}},{"start":{"line":914,"column":4},"end":{"line":914,"column":4}}]},"116":{"line":914,"type":"binary-expr","locations":[{"start":{"line":914,"column":8},"end":{"line":914,"column":13}},{"start":{"line":914,"column":17},"end":{"line":914,"column":29}}]},"117":{"line":915,"type":"binary-expr","locations":[{"start":{"line":915,"column":32},"end":{"line":915,"column":39}},{"start":{"line":915,"column":43},"end":{"line":915,"column":51}}]},"118":{"line":921,"type":"if","locations":[{"start":{"line":921,"column":4},"end":{"line":921,"column":4}},{"start":{"line":921,"column":4},"end":{"line":921,"column":4}}]},"119":{"line":921,"type":"binary-expr","locations":[{"start":{"line":921,"column":8},"end":{"line":921,"column":12}},{"start":{"line":921,"column":16},"end":{"line":921,"column":18}}]},"120":{"line":931,"type":"if","locations":[{"start":{"line":931,"column":16},"end":{"line":931,"column":16}},{"start":{"line":931,"column":16},"end":{"line":931,"column":16}}]},"121":{"line":934,"type":"binary-expr","locations":[{"start":{"line":934,"column":22},"end":{"line":934,"column":29}},{"start":{"line":934,"column":33},"end":{"line":934,"column":41}}]},"122":{"line":936,"type":"if","locations":[{"start":{"line":936,"column":16},"end":{"line":936,"column":16}},{"start":{"line":936,"column":16},"end":{"line":936,"column":16}}]},"123":{"line":936,"type":"binary-expr","locations":[{"start":{"line":936,"column":20},"end":{"line":936,"column":40}},{"start":{"line":936,"column":44},"end":{"line":936,"column":63}}]},"124":{"line":942,"type":"cond-expr","locations":[{"start":{"line":942,"column":32},"end":{"line":942,"column":35}},{"start":{"line":942,"column":38},"end":{"line":942,"column":42}}]},"125":{"line":959,"type":"if","locations":[{"start":{"line":959,"column":4},"end":{"line":959,"column":4}},{"start":{"line":959,"column":4},"end":{"line":959,"column":4}}]},"126":{"line":960,"type":"binary-expr","locations":[{"start":{"line":960,"column":18},"end":{"line":960,"column":25}},{"start":{"line":960,"column":29},"end":{"line":960,"column":33}}]},"127":{"line":971,"type":"if","locations":[{"start":{"line":971,"column":4},"end":{"line":971,"column":4}},{"start":{"line":971,"column":4},"end":{"line":971,"column":4}}]},"128":{"line":983,"type":"cond-expr","locations":[{"start":{"line":983,"column":29},"end":{"line":983,"column":31}},{"start":{"line":983,"column":34},"end":{"line":983,"column":38}}]},"129":{"line":987,"type":"if","locations":[{"start":{"line":987,"column":12},"end":{"line":987,"column":12}},{"start":{"line":987,"column":12},"end":{"line":987,"column":12}}]},"130":{"line":1003,"type":"binary-expr","locations":[{"start":{"line":1003,"column":22},"end":{"line":1003,"column":33}},{"start":{"line":1003,"column":37},"end":{"line":1003,"column":39}}]},"131":{"line":1019,"type":"binary-expr","locations":[{"start":{"line":1019,"column":27},"end":{"line":1019,"column":34}},{"start":{"line":1019,"column":38},"end":{"line":1019,"column":42}}]},"132":{"line":1029,"type":"if","locations":[{"start":{"line":1029,"column":12},"end":{"line":1029,"column":12}},{"start":{"line":1029,"column":12},"end":{"line":1029,"column":12}}]},"133":{"line":1033,"type":"binary-expr","locations":[{"start":{"line":1033,"column":27},"end":{"line":1033,"column":34}},{"start":{"line":1033,"column":38},"end":{"line":1033,"column":46}}]},"134":{"line":1051,"type":"binary-expr","locations":[{"start":{"line":1051,"column":22},"end":{"line":1051,"column":29}},{"start":{"line":1051,"column":33},"end":{"line":1051,"column":37}}]},"135":{"line":1098,"type":"binary-expr","locations":[{"start":{"line":1098,"column":12},"end":{"line":1098,"column":13}},{"start":{"line":1098,"column":17},"end":{"line":1098,"column":18}}]},"136":{"line":1101,"type":"if","locations":[{"start":{"line":1101,"column":12},"end":{"line":1101,"column":12}},{"start":{"line":1101,"column":12},"end":{"line":1101,"column":12}}]},"137":{"line":1143,"type":"if","locations":[{"start":{"line":1143,"column":8},"end":{"line":1143,"column":8}},{"start":{"line":1143,"column":8},"end":{"line":1143,"column":8}}]},"138":{"line":1144,"type":"if","locations":[{"start":{"line":1144,"column":12},"end":{"line":1144,"column":12}},{"start":{"line":1144,"column":12},"end":{"line":1144,"column":12}}]},"139":{"line":1145,"type":"if","locations":[{"start":{"line":1145,"column":16},"end":{"line":1145,"column":16}},{"start":{"line":1145,"column":16},"end":{"line":1145,"column":16}}]},"140":{"line":1145,"type":"binary-expr","locations":[{"start":{"line":1145,"column":20},"end":{"line":1145,"column":25}},{"start":{"line":1145,"column":29},"end":{"line":1145,"column":37}},{"start":{"line":1145,"column":41},"end":{"line":1145,"column":63}}]},"141":{"line":1180,"type":"if","locations":[{"start":{"line":1180,"column":8},"end":{"line":1180,"column":8}},{"start":{"line":1180,"column":8},"end":{"line":1180,"column":8}}]},"142":{"line":1180,"type":"binary-expr","locations":[{"start":{"line":1180,"column":12},"end":{"line":1180,"column":17}},{"start":{"line":1180,"column":21},"end":{"line":1180,"column":29}}]},"143":{"line":1183,"type":"if","locations":[{"start":{"line":1183,"column":12},"end":{"line":1183,"column":12}},{"start":{"line":1183,"column":12},"end":{"line":1183,"column":12}}]},"144":{"line":1187,"type":"if","locations":[{"start":{"line":1187,"column":12},"end":{"line":1187,"column":12}},{"start":{"line":1187,"column":12},"end":{"line":1187,"column":12}}]},"145":{"line":1191,"type":"if","locations":[{"start":{"line":1191,"column":12},"end":{"line":1191,"column":12}},{"start":{"line":1191,"column":12},"end":{"line":1191,"column":12}}]},"146":{"line":1195,"type":"binary-expr","locations":[{"start":{"line":1195,"column":15},"end":{"line":1195,"column":18}},{"start":{"line":1195,"column":22},"end":{"line":1195,"column":30}}]},"147":{"line":1269,"type":"if","locations":[{"start":{"line":1269,"column":4},"end":{"line":1269,"column":4}},{"start":{"line":1269,"column":4},"end":{"line":1269,"column":4}}]},"148":{"line":1270,"type":"binary-expr","locations":[{"start":{"line":1270,"column":19},"end":{"line":1270,"column":50}},{"start":{"line":1270,"column":54},"end":{"line":1270,"column":71}}]},"149":{"line":1272,"type":"if","locations":[{"start":{"line":1272,"column":8},"end":{"line":1272,"column":8}},{"start":{"line":1272,"column":8},"end":{"line":1272,"column":8}}]},"150":{"line":1272,"type":"binary-expr","locations":[{"start":{"line":1272,"column":12},"end":{"line":1272,"column":15}},{"start":{"line":1272,"column":19},"end":{"line":1272,"column":31}}]},"151":{"line":1280,"type":"if","locations":[{"start":{"line":1280,"column":8},"end":{"line":1280,"column":8}},{"start":{"line":1280,"column":8},"end":{"line":1280,"column":8}}]},"152":{"line":1285,"type":"if","locations":[{"start":{"line":1285,"column":8},"end":{"line":1285,"column":8}},{"start":{"line":1285,"column":8},"end":{"line":1285,"column":8}}]},"153":{"line":1292,"type":"cond-expr","locations":[{"start":{"line":1292,"column":26},"end":{"line":1292,"column":36}},{"start":{"line":1292,"column":39},"end":{"line":1292,"column":42}}]},"154":{"line":1375,"type":"binary-expr","locations":[{"start":{"line":1375,"column":22},"end":{"line":1375,"column":31}},{"start":{"line":1375,"column":35},"end":{"line":1375,"column":45}},{"start":{"line":1375,"column":49},"end":{"line":1375,"column":52}}]},"155":{"line":1380,"type":"if","locations":[{"start":{"line":1380,"column":8},"end":{"line":1380,"column":8}},{"start":{"line":1380,"column":8},"end":{"line":1380,"column":8}}]},"156":{"line":1504,"type":"if","locations":[{"start":{"line":1504,"column":4},"end":{"line":1504,"column":4}},{"start":{"line":1504,"column":4},"end":{"line":1504,"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 (Y_Node._instances.has(node) && Y_Node._instances.get(node)._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 = new WeakMap();","","/**"," * 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;",""," 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)"," instance = Y_Node._instances.get(node); // 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.set(node, 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.get(node._node);"," if (instance) {"," instance.destroy();"," } else { // purge in case added by other means"," Y.Event.purgeElement(node);"," }"," });"," }",""," Y_Node._instances.delete(this._node);",""," this._node = null;"," this._stateProxy = null;"," },",""," /**"," * 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 instance = Y.Node._instances.get(node),"," 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 {"," }","};","","/**"," * Import the named method, or methods from the host onto NodeList."," *"," * @method importMethod"," * @static"," * @param {Object} host The object containing the methods to copy. Typically a prototype."," * @param {String|String[]} name The name, or an Array of names of the methods to import onto NodeList."," * @param {String} [altName] An alternative name to use for the method added to NodeList, which may differ from the name"," * of the original host object. Has no effect if name is an array of method names."," */","NodeList.importMethod = function(host, name, altName) {"," if (typeof name === 'string') {"," altName = altName || name;"," NodeList.addMethod(altName, 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.get(node);"," 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.get(nodes[0]) || getTemp(nodes[0]);"," val = instance._get(attr);"," if (val && val.nodeType) {"," isNodeList = true;"," }"," }",""," Y.Array.each(nodes, function(node) {"," instance = Y.Node._instances.get(node);",""," 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},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0,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,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,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,0],"157":[0,0],"158":[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,"87":0,"88":0,"89":0,"90":0,"91":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":129,"loc":{"start":{"line":129,"column":21},"end":{"line":129,"column":32}}},"8":{"name":"(anonymous_8)","line":133,"loc":{"start":{"line":133,"column":13},"end":{"line":133,"column":25}}},"9":{"name":"(anonymous_9)","line":136,"loc":{"start":{"line":136,"column":13},"end":{"line":136,"column":25}}},"10":{"name":"(anonymous_10)","line":139,"loc":{"start":{"line":139,"column":13},"end":{"line":139,"column":27}}},"11":{"name":"(anonymous_11)","line":142,"loc":{"start":{"line":142,"column":18},"end":{"line":142,"column":30}}},"12":{"name":"(anonymous_12)","line":167,"loc":{"start":{"line":167,"column":20},"end":{"line":167,"column":35}}},"13":{"name":"(anonymous_13)","line":185,"loc":{"start":{"line":185,"column":18},"end":{"line":185,"column":38}}},"14":{"name":"(anonymous_14)","line":215,"loc":{"start":{"line":215,"column":19},"end":{"line":215,"column":47}}},"15":{"name":"(anonymous_15)","line":217,"loc":{"start":{"line":217,"column":33},"end":{"line":217,"column":44}}},"16":{"name":"(anonymous_16)","line":254,"loc":{"start":{"line":254,"column":22},"end":{"line":254,"column":52}}},"17":{"name":"(anonymous_17)","line":259,"loc":{"start":{"line":259,"column":27},"end":{"line":259,"column":39}}},"18":{"name":"(anonymous_18)","line":296,"loc":{"start":{"line":296,"column":13},"end":{"line":296,"column":28}}},"19":{"name":"(anonymous_19)","line":334,"loc":{"start":{"line":334,"column":24},"end":{"line":334,"column":44}}},"20":{"name":"(anonymous_20)","line":358,"loc":{"start":{"line":358,"column":24},"end":{"line":358,"column":39}}},"21":{"name":"(anonymous_21)","line":379,"loc":{"start":{"line":379,"column":14},"end":{"line":379,"column":25}}},"22":{"name":"(anonymous_22)","line":413,"loc":{"start":{"line":413,"column":9},"end":{"line":413,"column":24}}},"23":{"name":"(anonymous_23)","line":437,"loc":{"start":{"line":437,"column":10},"end":{"line":437,"column":25}}},"24":{"name":"(anonymous_24)","line":463,"loc":{"start":{"line":463,"column":9},"end":{"line":463,"column":29}}},"25":{"name":"(anonymous_25)","line":487,"loc":{"start":{"line":487,"column":14},"end":{"line":487,"column":32}}},"26":{"name":"(anonymous_26)","line":491,"loc":{"start":{"line":491,"column":35},"end":{"line":491,"column":50}}},"27":{"name":"(anonymous_27)","line":505,"loc":{"start":{"line":505,"column":14},"end":{"line":505,"column":30}}},"28":{"name":"(anonymous_28)","line":510,"loc":{"start":{"line":510,"column":32},"end":{"line":510,"column":47}}},"29":{"name":"(anonymous_29)","line":525,"loc":{"start":{"line":525,"column":15},"end":{"line":525,"column":33}}},"30":{"name":"(anonymous_30)","line":541,"loc":{"start":{"line":541,"column":11},"end":{"line":541,"column":25}}},"31":{"name":"(anonymous_31)","line":554,"loc":{"start":{"line":554,"column":13},"end":{"line":554,"column":26}}},"32":{"name":"(anonymous_32)","line":578,"loc":{"start":{"line":578,"column":14},"end":{"line":578,"column":45}}},"33":{"name":"(anonymous_33)","line":596,"loc":{"start":{"line":596,"column":15},"end":{"line":596,"column":46}}},"34":{"name":"(anonymous_34)","line":614,"loc":{"start":{"line":614,"column":14},"end":{"line":614,"column":32}}},"35":{"name":"(anonymous_35)","line":628,"loc":{"start":{"line":628,"column":10},"end":{"line":628,"column":28}}},"36":{"name":"(anonymous_36)","line":640,"loc":{"start":{"line":640,"column":14},"end":{"line":640,"column":27}}},"37":{"name":"(anonymous_37)","line":654,"loc":{"start":{"line":654,"column":9},"end":{"line":654,"column":28}}},"38":{"name":"(anonymous_38)","line":665,"loc":{"start":{"line":665,"column":9},"end":{"line":665,"column":28}}},"39":{"name":"(anonymous_39)","line":685,"loc":{"start":{"line":685,"column":10},"end":{"line":685,"column":29}}},"40":{"name":"(anonymous_40)","line":698,"loc":{"start":{"line":698,"column":12},"end":{"line":698,"column":30}}},"41":{"name":"(anonymous_41)","line":721,"loc":{"start":{"line":721,"column":13},"end":{"line":721,"column":31}}},"42":{"name":"(anonymous_42)","line":737,"loc":{"start":{"line":737,"column":18},"end":{"line":737,"column":42}}},"43":{"name":"(anonymous_43)","line":754,"loc":{"start":{"line":754,"column":13},"end":{"line":754,"column":33}}},"44":{"name":"(anonymous_44)","line":767,"loc":{"start":{"line":767,"column":43},"end":{"line":767,"column":58}}},"45":{"name":"(anonymous_45)","line":793,"loc":{"start":{"line":793,"column":12},"end":{"line":793,"column":44}}},"46":{"name":"(anonymous_46)","line":817,"loc":{"start":{"line":817,"column":8},"end":{"line":817,"column":28}}},"47":{"name":"(anonymous_47)","line":820,"loc":{"start":{"line":820,"column":8},"end":{"line":820,"column":28}}},"48":{"name":"(anonymous_48)","line":838,"loc":{"start":{"line":838,"column":15},"end":{"line":838,"column":32}}},"49":{"name":"(anonymous_49)","line":846,"loc":{"start":{"line":846,"column":16},"end":{"line":846,"column":27}}},"50":{"name":"(anonymous_50)","line":855,"loc":{"start":{"line":855,"column":11},"end":{"line":855,"column":22}}},"51":{"name":"(anonymous_51)","line":865,"loc":{"start":{"line":865,"column":16},"end":{"line":865,"column":27}}},"52":{"name":"(anonymous_52)","line":888,"loc":{"start":{"line":888,"column":15},"end":{"line":888,"column":31}}},"53":{"name":"(anonymous_53)","line":900,"loc":{"start":{"line":900,"column":32},"end":{"line":900,"column":47}}},"54":{"name":"(anonymous_54)","line":929,"loc":{"start":{"line":929,"column":23},"end":{"line":929,"column":42}}},"55":{"name":"(anonymous_55)","line":933,"loc":{"start":{"line":933,"column":16},"end":{"line":933,"column":48}}},"56":{"name":"(anonymous_56)","line":941,"loc":{"start":{"line":941,"column":21},"end":{"line":941,"column":49}}},"57":{"name":"(anonymous_57)","line":943,"loc":{"start":{"line":943,"column":35},"end":{"line":943,"column":46}}},"58":{"name":"(anonymous_58)","line":947,"loc":{"start":{"line":947,"column":38},"end":{"line":947,"column":53}}},"59":{"name":"(anonymous_59)","line":979,"loc":{"start":{"line":979,"column":24},"end":{"line":979,"column":54}}},"60":{"name":"(anonymous_60)","line":984,"loc":{"start":{"line":984,"column":27},"end":{"line":984,"column":39}}},"61":{"name":"(anonymous_61)","line":990,"loc":{"start":{"line":990,"column":24},"end":{"line":990,"column":39}}},"62":{"name":"(anonymous_62)","line":1003,"loc":{"start":{"line":1003,"column":13},"end":{"line":1003,"column":44}}},"63":{"name":"(anonymous_63)","line":1006,"loc":{"start":{"line":1006,"column":18},"end":{"line":1006,"column":33}}},"64":{"name":"(anonymous_64)","line":1023,"loc":{"start":{"line":1023,"column":10},"end":{"line":1023,"column":26}}},"65":{"name":"(anonymous_65)","line":1036,"loc":{"start":{"line":1036,"column":10},"end":{"line":1036,"column":32}}},"66":{"name":"(anonymous_66)","line":1038,"loc":{"start":{"line":1038,"column":34},"end":{"line":1038,"column":56}}},"67":{"name":"(anonymous_67)","line":1045,"loc":{"start":{"line":1045,"column":11},"end":{"line":1045,"column":33}}},"68":{"name":"(anonymous_68)","line":1048,"loc":{"start":{"line":1048,"column":34},"end":{"line":1048,"column":56}}},"69":{"name":"(anonymous_69)","line":1068,"loc":{"start":{"line":1068,"column":10},"end":{"line":1068,"column":32}}},"70":{"name":"(anonymous_70)","line":1070,"loc":{"start":{"line":1070,"column":41},"end":{"line":1070,"column":63}}},"71":{"name":"(anonymous_71)","line":1082,"loc":{"start":{"line":1082,"column":12},"end":{"line":1082,"column":23}}},"72":{"name":"(anonymous_72)","line":1093,"loc":{"start":{"line":1093,"column":13},"end":{"line":1093,"column":28}}},"73":{"name":"(anonymous_73)","line":1104,"loc":{"start":{"line":1104,"column":12},"end":{"line":1104,"column":31}}},"74":{"name":"(anonymous_74)","line":1118,"loc":{"start":{"line":1118,"column":13},"end":{"line":1118,"column":28}}},"75":{"name":"(anonymous_75)","line":1121,"loc":{"start":{"line":1121,"column":28},"end":{"line":1121,"column":46}}},"76":{"name":"(anonymous_76)","line":1136,"loc":{"start":{"line":1136,"column":9},"end":{"line":1136,"column":20}}},"77":{"name":"(anonymous_77)","line":1146,"loc":{"start":{"line":1146,"column":10},"end":{"line":1146,"column":21}}},"78":{"name":"(anonymous_78)","line":1150,"loc":{"start":{"line":1150,"column":16},"end":{"line":1150,"column":27}}},"79":{"name":"(anonymous_79)","line":1158,"loc":{"start":{"line":1158,"column":13},"end":{"line":1158,"column":24}}},"80":{"name":"(anonymous_80)","line":1182,"loc":{"start":{"line":1182,"column":10},"end":{"line":1182,"column":21}}},"81":{"name":"(anonymous_81)","line":1191,"loc":{"start":{"line":1191,"column":13},"end":{"line":1191,"column":24}}},"82":{"name":"(anonymous_82)","line":1195,"loc":{"start":{"line":1195,"column":14},"end":{"line":1195,"column":25}}},"83":{"name":"(anonymous_83)","line":1224,"loc":{"start":{"line":1224,"column":17},"end":{"line":1224,"column":28}}},"84":{"name":"(anonymous_84)","line":1282,"loc":{"start":{"line":1282,"column":25},"end":{"line":1282,"column":40}}},"85":{"name":"(anonymous_85)","line":1298,"loc":{"start":{"line":1298,"column":24},"end":{"line":1298,"column":39}}},"86":{"name":"(anonymous_86)","line":1318,"loc":{"start":{"line":1318,"column":8},"end":{"line":1318,"column":24}}},"87":{"name":"(anonymous_87)","line":1388,"loc":{"start":{"line":1388,"column":28},"end":{"line":1388,"column":59}}},"88":{"name":"(anonymous_88)","line":1389,"loc":{"start":{"line":1389,"column":33},"end":{"line":1389,"column":44}}},"89":{"name":"(anonymous_89)","line":1509,"loc":{"start":{"line":1509,"column":3},"end":{"line":1509,"column":20}}},"90":{"name":"(anonymous_90)","line":1510,"loc":{"start":{"line":1510,"column":31},"end":{"line":1510,"column":58}}},"91":{"name":"(anonymous_91)","line":1523,"loc":{"start":{"line":1523,"column":35},"end":{"line":1523,"column":50}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1640,"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":127,"column":0},"end":{"line":146,"column":1}},"41":{"start":{"line":129,"column":4},"end":{"line":131,"column":6}},"42":{"start":{"line":130,"column":8},"end":{"line":130,"column":23}},"43":{"start":{"line":132,"column":4},"end":{"line":145,"column":6}},"44":{"start":{"line":134,"column":12},"end":{"line":134,"column":47}},"45":{"start":{"line":137,"column":12},"end":{"line":137,"column":32}},"46":{"start":{"line":140,"column":12},"end":{"line":140,"column":29}},"47":{"start":{"line":143,"column":12},"end":{"line":143,"column":32}},"48":{"start":{"line":156,"column":0},"end":{"line":156,"column":34}},"49":{"start":{"line":167,"column":0},"end":{"line":172,"column":2}},"50":{"start":{"line":168,"column":4},"end":{"line":170,"column":5}},"51":{"start":{"line":169,"column":8},"end":{"line":169,"column":59}},"52":{"start":{"line":171,"column":4},"end":{"line":171,"column":16}},"53":{"start":{"line":185,"column":0},"end":{"line":202,"column":2}},"54":{"start":{"line":186,"column":4},"end":{"line":199,"column":5}},"55":{"start":{"line":187,"column":9},"end":{"line":194,"column":9}},"56":{"start":{"line":188,"column":12},"end":{"line":193,"column":13}},"57":{"start":{"line":189,"column":16},"end":{"line":189,"column":33}},"58":{"start":{"line":190,"column":19},"end":{"line":193,"column":13}},"59":{"start":{"line":192,"column":16},"end":{"line":192,"column":33}},"60":{"start":{"line":195,"column":11},"end":{"line":199,"column":5}},"61":{"start":{"line":196,"column":8},"end":{"line":196,"column":19}},"62":{"start":{"line":197,"column":11},"end":{"line":199,"column":5}},"63":{"start":{"line":198,"column":8},"end":{"line":198,"column":19}},"64":{"start":{"line":201,"column":4},"end":{"line":201,"column":15}},"65":{"start":{"line":215,"column":0},"end":{"line":242,"column":2}},"66":{"start":{"line":216,"column":4},"end":{"line":241,"column":5}},"67":{"start":{"line":217,"column":8},"end":{"line":239,"column":10}},"68":{"start":{"line":218,"column":12},"end":{"line":220,"column":20}},"69":{"start":{"line":222,"column":12},"end":{"line":224,"column":13}},"70":{"start":{"line":223,"column":16},"end":{"line":223,"column":40}},"71":{"start":{"line":226,"column":12},"end":{"line":228,"column":13}},"72":{"start":{"line":227,"column":16},"end":{"line":227,"column":40}},"73":{"start":{"line":229,"column":12},"end":{"line":229,"column":37}},"74":{"start":{"line":231,"column":12},"end":{"line":231,"column":50}},"75":{"start":{"line":233,"column":12},"end":{"line":235,"column":13}},"76":{"start":{"line":234,"column":16},"end":{"line":234,"column":49}},"77":{"start":{"line":237,"column":12},"end":{"line":237,"column":56}},"78":{"start":{"line":238,"column":12},"end":{"line":238,"column":23}},"79":{"start":{"line":254,"column":0},"end":{"line":263,"column":2}},"80":{"start":{"line":255,"column":4},"end":{"line":262,"column":5}},"81":{"start":{"line":256,"column":8},"end":{"line":256,"column":34}},"82":{"start":{"line":257,"column":8},"end":{"line":257,"column":52}},"83":{"start":{"line":259,"column":8},"end":{"line":261,"column":11}},"84":{"start":{"line":260,"column":12},"end":{"line":260,"column":41}},"85":{"start":{"line":296,"column":0},"end":{"line":323,"column":2}},"86":{"start":{"line":297,"column":4},"end":{"line":298,"column":19}},"87":{"start":{"line":300,"column":4},"end":{"line":320,"column":5}},"88":{"start":{"line":301,"column":8},"end":{"line":308,"column":9}},"89":{"start":{"line":302,"column":12},"end":{"line":302,"column":44}},"90":{"start":{"line":303,"column":12},"end":{"line":305,"column":13}},"91":{"start":{"line":304,"column":16},"end":{"line":304,"column":28}},"92":{"start":{"line":306,"column":15},"end":{"line":308,"column":9}},"93":{"start":{"line":307,"column":12},"end":{"line":307,"column":24}},"94":{"start":{"line":310,"column":8},"end":{"line":319,"column":9}},"95":{"start":{"line":311,"column":12},"end":{"line":311,"column":51}},"96":{"start":{"line":312,"column":12},"end":{"line":312,"column":58}},"97":{"start":{"line":313,"column":12},"end":{"line":318,"column":13}},"98":{"start":{"line":314,"column":16},"end":{"line":314,"column":44}},"99":{"start":{"line":315,"column":16},"end":{"line":317,"column":17}},"100":{"start":{"line":316,"column":20},"end":{"line":316,"column":58}},"101":{"start":{"line":322,"column":4},"end":{"line":322,"column":20}},"102":{"start":{"line":334,"column":0},"end":{"line":348,"column":2}},"103":{"start":{"line":335,"column":4},"end":{"line":336,"column":16}},"104":{"start":{"line":338,"column":4},"end":{"line":345,"column":5}},"105":{"start":{"line":339,"column":8},"end":{"line":339,"column":23}},"106":{"start":{"line":340,"column":8},"end":{"line":340,"column":31}},"107":{"start":{"line":342,"column":8},"end":{"line":342,"column":43}},"108":{"start":{"line":343,"column":11},"end":{"line":345,"column":5}},"109":{"start":{"line":344,"column":8},"end":{"line":344,"column":25}},"110":{"start":{"line":347,"column":4},"end":{"line":347,"column":15}},"111":{"start":{"line":358,"column":0},"end":{"line":369,"column":2}},"112":{"start":{"line":359,"column":4},"end":{"line":360,"column":12}},"113":{"start":{"line":362,"column":4},"end":{"line":366,"column":5}},"114":{"start":{"line":363,"column":8},"end":{"line":363,"column":55}},"115":{"start":{"line":364,"column":11},"end":{"line":366,"column":5}},"116":{"start":{"line":365,"column":8},"end":{"line":365,"column":25}},"117":{"start":{"line":368,"column":4},"end":{"line":368,"column":15}},"118":{"start":{"line":371,"column":0},"end":{"line":868,"column":9}},"119":{"start":{"line":380,"column":8},"end":{"line":382,"column":33}},"120":{"start":{"line":384,"column":8},"end":{"line":400,"column":9}},"121":{"start":{"line":385,"column":12},"end":{"line":385,"column":36}},"122":{"start":{"line":386,"column":12},"end":{"line":386,"column":70}},"123":{"start":{"line":387,"column":12},"end":{"line":387,"column":91}},"124":{"start":{"line":388,"column":12},"end":{"line":388,"column":34}},"125":{"start":{"line":390,"column":12},"end":{"line":392,"column":13}},"126":{"start":{"line":391,"column":16},"end":{"line":391,"column":32}},"127":{"start":{"line":394,"column":12},"end":{"line":396,"column":13}},"128":{"start":{"line":395,"column":16},"end":{"line":395,"column":57}},"129":{"start":{"line":399,"column":12},"end":{"line":399,"column":35}},"130":{"start":{"line":401,"column":8},"end":{"line":401,"column":19}},"131":{"start":{"line":414,"column":8},"end":{"line":414,"column":16}},"132":{"start":{"line":416,"column":8},"end":{"line":420,"column":9}},"133":{"start":{"line":417,"column":12},"end":{"line":417,"column":38}},"134":{"start":{"line":419,"column":12},"end":{"line":419,"column":34}},"135":{"start":{"line":422,"column":8},"end":{"line":426,"column":9}},"136":{"start":{"line":423,"column":12},"end":{"line":423,"column":45}},"137":{"start":{"line":424,"column":15},"end":{"line":426,"column":9}},"138":{"start":{"line":425,"column":12},"end":{"line":425,"column":23}},"139":{"start":{"line":427,"column":8},"end":{"line":427,"column":19}},"140":{"start":{"line":438,"column":8},"end":{"line":439,"column":16}},"141":{"start":{"line":441,"column":8},"end":{"line":447,"column":9}},"142":{"start":{"line":442,"column":12},"end":{"line":442,"column":47}},"143":{"start":{"line":443,"column":15},"end":{"line":447,"column":9}},"144":{"start":{"line":444,"column":12},"end":{"line":444,"column":51}},"145":{"start":{"line":446,"column":12},"end":{"line":446,"column":63}},"146":{"start":{"line":449,"column":8},"end":{"line":449,"column":19}},"147":{"start":{"line":464,"column":8},"end":{"line":464,"column":44}},"148":{"start":{"line":466,"column":8},"end":{"line":476,"column":9}},"149":{"start":{"line":467,"column":12},"end":{"line":467,"column":49}},"150":{"start":{"line":469,"column":12},"end":{"line":475,"column":13}},"151":{"start":{"line":470,"column":16},"end":{"line":470,"column":56}},"152":{"start":{"line":471,"column":19},"end":{"line":475,"column":13}},"153":{"start":{"line":472,"column":16},"end":{"line":472,"column":51}},"154":{"start":{"line":474,"column":16},"end":{"line":474,"column":61}},"155":{"start":{"line":478,"column":8},"end":{"line":478,"column":20}},"156":{"start":{"line":488,"column":8},"end":{"line":494,"column":9}},"157":{"start":{"line":489,"column":12},"end":{"line":489,"column":36}},"158":{"start":{"line":491,"column":12},"end":{"line":493,"column":21}},"159":{"start":{"line":492,"column":16},"end":{"line":492,"column":31}},"160":{"start":{"line":496,"column":8},"end":{"line":496,"column":20}},"161":{"start":{"line":506,"column":8},"end":{"line":506,"column":21}},"162":{"start":{"line":507,"column":8},"end":{"line":513,"column":9}},"163":{"start":{"line":508,"column":12},"end":{"line":508,"column":34}},"164":{"start":{"line":510,"column":12},"end":{"line":512,"column":21}},"165":{"start":{"line":511,"column":16},"end":{"line":511,"column":37}},"166":{"start":{"line":515,"column":8},"end":{"line":515,"column":19}},"167":{"start":{"line":526,"column":8},"end":{"line":526,"column":30}},"168":{"start":{"line":528,"column":8},"end":{"line":530,"column":9}},"169":{"start":{"line":529,"column":12},"end":{"line":529,"column":36}},"170":{"start":{"line":531,"column":8},"end":{"line":531,"column":32}},"171":{"start":{"line":542,"column":8},"end":{"line":542,"column":30}},"172":{"start":{"line":544,"column":8},"end":{"line":549,"column":9}},"173":{"start":{"line":545,"column":12},"end":{"line":545,"column":66}},"174":{"start":{"line":546,"column":12},"end":{"line":548,"column":13}},"175":{"start":{"line":547,"column":16},"end":{"line":547,"column":65}},"176":{"start":{"line":551,"column":8},"end":{"line":551,"column":21}},"177":{"start":{"line":555,"column":8},"end":{"line":556,"column":55}},"178":{"start":{"line":557,"column":8},"end":{"line":561,"column":9}},"179":{"start":{"line":558,"column":12},"end":{"line":558,"column":29}},"180":{"start":{"line":560,"column":12},"end":{"line":560,"column":23}},"181":{"start":{"line":562,"column":8},"end":{"line":562,"column":19}},"182":{"start":{"line":580,"column":8},"end":{"line":583,"column":9}},"183":{"start":{"line":582,"column":12},"end":{"line":582,"column":30}},"184":{"start":{"line":585,"column":8},"end":{"line":585,"column":89}},"185":{"start":{"line":597,"column":8},"end":{"line":600,"column":9}},"186":{"start":{"line":599,"column":12},"end":{"line":599,"column":30}},"187":{"start":{"line":601,"column":8},"end":{"line":601,"column":90}},"188":{"start":{"line":615,"column":8},"end":{"line":615,"column":91}},"189":{"start":{"line":629,"column":8},"end":{"line":629,"column":87}},"190":{"start":{"line":641,"column":8},"end":{"line":641,"column":62}},"191":{"start":{"line":655,"column":8},"end":{"line":655,"column":67}},"192":{"start":{"line":666,"column":8},"end":{"line":666,"column":21}},"193":{"start":{"line":668,"column":8},"end":{"line":672,"column":9}},"194":{"start":{"line":669,"column":12},"end":{"line":669,"column":69}},"195":{"start":{"line":670,"column":12},"end":{"line":670,"column":39}},"196":{"start":{"line":671,"column":12},"end":{"line":671,"column":45}},"197":{"start":{"line":674,"column":8},"end":{"line":674,"column":37}},"198":{"start":{"line":686,"column":8},"end":{"line":686,"column":53}},"199":{"start":{"line":699,"column":8},"end":{"line":699,"column":30}},"200":{"start":{"line":701,"column":8},"end":{"line":703,"column":9}},"201":{"start":{"line":702,"column":12},"end":{"line":702,"column":46}},"202":{"start":{"line":705,"column":8},"end":{"line":707,"column":9}},"203":{"start":{"line":706,"column":12},"end":{"line":706,"column":27}},"204":{"start":{"line":709,"column":8},"end":{"line":709,"column":20}},"205":{"start":{"line":722,"column":8},"end":{"line":722,"column":30}},"206":{"start":{"line":723,"column":8},"end":{"line":725,"column":9}},"207":{"start":{"line":724,"column":12},"end":{"line":724,"column":45}},"208":{"start":{"line":726,"column":8},"end":{"line":726,"column":71}},"209":{"start":{"line":727,"column":8},"end":{"line":727,"column":20}},"210":{"start":{"line":738,"column":8},"end":{"line":740,"column":9}},"211":{"start":{"line":739,"column":12},"end":{"line":739,"column":38}},"212":{"start":{"line":742,"column":8},"end":{"line":742,"column":99}},"213":{"start":{"line":755,"column":8},"end":{"line":756,"column":21}},"214":{"start":{"line":758,"column":8},"end":{"line":758,"column":21}},"215":{"start":{"line":760,"column":8},"end":{"line":762,"column":9}},"216":{"start":{"line":761,"column":12},"end":{"line":761,"column":26}},"217":{"start":{"line":764,"column":8},"end":{"line":764,"column":25}},"218":{"start":{"line":766,"column":8},"end":{"line":775,"column":9}},"219":{"start":{"line":767,"column":12},"end":{"line":774,"column":15}},"220":{"start":{"line":768,"column":16},"end":{"line":768,"column":61}},"221":{"start":{"line":769,"column":16},"end":{"line":773,"column":17}},"222":{"start":{"line":770,"column":19},"end":{"line":770,"column":38}},"223":{"start":{"line":772,"column":20},"end":{"line":772,"column":47}},"224":{"start":{"line":777,"column":8},"end":{"line":777,"column":45}},"225":{"start":{"line":779,"column":8},"end":{"line":779,"column":26}},"226":{"start":{"line":780,"column":8},"end":{"line":780,"column":32}},"227":{"start":{"line":794,"column":8},"end":{"line":795,"column":16}},"228":{"start":{"line":797,"column":8},"end":{"line":799,"column":9}},"229":{"start":{"line":798,"column":12},"end":{"line":798,"column":24}},"230":{"start":{"line":801,"column":8},"end":{"line":803,"column":9}},"231":{"start":{"line":802,"column":12},"end":{"line":802,"column":24}},"232":{"start":{"line":805,"column":8},"end":{"line":805,"column":42}},"233":{"start":{"line":806,"column":8},"end":{"line":806,"column":42}},"234":{"start":{"line":818,"column":12},"end":{"line":818,"column":62}},"235":{"start":{"line":821,"column":12},"end":{"line":821,"column":53}},"236":{"start":{"line":822,"column":12},"end":{"line":824,"column":52}},"237":{"start":{"line":826,"column":12},"end":{"line":833,"column":13}},"238":{"start":{"line":827,"column":16},"end":{"line":827,"column":53}},"239":{"start":{"line":828,"column":19},"end":{"line":833,"column":13}},"240":{"start":{"line":829,"column":16},"end":{"line":829,"column":53}},"241":{"start":{"line":831,"column":16},"end":{"line":831,"column":62}},"242":{"start":{"line":832,"column":16},"end":{"line":832,"column":57}},"243":{"start":{"line":834,"column":12},"end":{"line":834,"column":24}},"244":{"start":{"line":839,"column":8},"end":{"line":839,"column":30}},"245":{"start":{"line":840,"column":8},"end":{"line":843,"column":65}},"246":{"start":{"line":847,"column":8},"end":{"line":847,"column":45}},"247":{"start":{"line":856,"column":8},"end":{"line":856,"column":54}},"248":{"start":{"line":857,"column":8},"end":{"line":857,"column":20}},"249":{"start":{"line":866,"column":8},"end":{"line":866,"column":26}},"250":{"start":{"line":870,"column":0},"end":{"line":870,"column":16}},"251":{"start":{"line":871,"column":0},"end":{"line":871,"column":19}},"252":{"start":{"line":888,"column":0},"end":{"line":917,"column":2}},"253":{"start":{"line":889,"column":4},"end":{"line":889,"column":17}},"254":{"start":{"line":891,"column":4},"end":{"line":909,"column":5}},"255":{"start":{"line":892,"column":8},"end":{"line":908,"column":9}},"256":{"start":{"line":893,"column":12},"end":{"line":893,"column":32}},"257":{"start":{"line":894,"column":12},"end":{"line":894,"column":44}},"258":{"start":{"line":895,"column":15},"end":{"line":908,"column":9}},"259":{"start":{"line":896,"column":12},"end":{"line":896,"column":28}},"260":{"start":{"line":897,"column":15},"end":{"line":908,"column":9}},"261":{"start":{"line":898,"column":12},"end":{"line":898,"column":34}},"262":{"start":{"line":899,"column":15},"end":{"line":908,"column":9}},"263":{"start":{"line":900,"column":12},"end":{"line":904,"column":15}},"264":{"start":{"line":901,"column":16},"end":{"line":903,"column":17}},"265":{"start":{"line":902,"column":20},"end":{"line":902,"column":41}},"266":{"start":{"line":905,"column":12},"end":{"line":905,"column":24}},"267":{"start":{"line":907,"column":12},"end":{"line":907,"column":44}},"268":{"start":{"line":916,"column":4},"end":{"line":916,"column":30}},"269":{"start":{"line":919,"column":0},"end":{"line":919,"column":27}},"270":{"start":{"line":929,"column":0},"end":{"line":931,"column":2}},"271":{"start":{"line":930,"column":4},"end":{"line":930,"column":70}},"272":{"start":{"line":933,"column":0},"end":{"line":939,"column":2}},"273":{"start":{"line":934,"column":4},"end":{"line":934,"column":32}},"274":{"start":{"line":935,"column":4},"end":{"line":938,"column":5}},"275":{"start":{"line":936,"column":8},"end":{"line":936,"column":53}},"276":{"start":{"line":941,"column":0},"end":{"line":967,"column":2}},"277":{"start":{"line":942,"column":4},"end":{"line":966,"column":5}},"278":{"start":{"line":943,"column":8},"end":{"line":964,"column":10}},"279":{"start":{"line":944,"column":12},"end":{"line":945,"column":33}},"280":{"start":{"line":947,"column":12},"end":{"line":960,"column":15}},"281":{"start":{"line":948,"column":16},"end":{"line":950,"column":27}},"282":{"start":{"line":952,"column":16},"end":{"line":954,"column":17}},"283":{"start":{"line":953,"column":20},"end":{"line":953,"column":59}},"284":{"start":{"line":955,"column":16},"end":{"line":955,"column":42}},"285":{"start":{"line":956,"column":16},"end":{"line":956,"column":45}},"286":{"start":{"line":957,"column":16},"end":{"line":959,"column":17}},"287":{"start":{"line":958,"column":20},"end":{"line":958,"column":45}},"288":{"start":{"line":963,"column":12},"end":{"line":963,"column":43}},"289":{"start":{"line":979,"column":0},"end":{"line":988,"column":2}},"290":{"start":{"line":980,"column":4},"end":{"line":987,"column":5}},"291":{"start":{"line":981,"column":8},"end":{"line":981,"column":34}},"292":{"start":{"line":982,"column":8},"end":{"line":982,"column":48}},"293":{"start":{"line":984,"column":8},"end":{"line":986,"column":11}},"294":{"start":{"line":985,"column":12},"end":{"line":985,"column":43}},"295":{"start":{"line":990,"column":0},"end":{"line":1000,"column":2}},"296":{"start":{"line":991,"column":4},"end":{"line":991,"column":33}},"297":{"start":{"line":992,"column":4},"end":{"line":995,"column":5}},"298":{"start":{"line":993,"column":8},"end":{"line":993,"column":43}},"299":{"start":{"line":994,"column":8},"end":{"line":994,"column":33}},"300":{"start":{"line":997,"column":4},"end":{"line":997,"column":21}},"301":{"start":{"line":998,"column":4},"end":{"line":998,"column":27}},"302":{"start":{"line":999,"column":4},"end":{"line":999,"column":15}},"303":{"start":{"line":1002,"column":0},"end":{"line":1227,"column":9}},"304":{"start":{"line":1004,"column":8},"end":{"line":1004,"column":39}},"305":{"start":{"line":1006,"column":8},"end":{"line":1011,"column":11}},"306":{"start":{"line":1007,"column":12},"end":{"line":1007,"column":53}},"307":{"start":{"line":1008,"column":12},"end":{"line":1010,"column":13}},"308":{"start":{"line":1009,"column":16},"end":{"line":1009,"column":30}},"309":{"start":{"line":1013,"column":8},"end":{"line":1013,"column":19}},"310":{"start":{"line":1024,"column":8},"end":{"line":1024,"column":49}},"311":{"start":{"line":1037,"column":8},"end":{"line":1037,"column":28}},"312":{"start":{"line":1038,"column":8},"end":{"line":1041,"column":11}},"313":{"start":{"line":1039,"column":12},"end":{"line":1039,"column":31}},"314":{"start":{"line":1040,"column":12},"end":{"line":1040,"column":67}},"315":{"start":{"line":1042,"column":8},"end":{"line":1042,"column":24}},"316":{"start":{"line":1046,"column":8},"end":{"line":1046,"column":28}},"317":{"start":{"line":1048,"column":8},"end":{"line":1055,"column":11}},"318":{"start":{"line":1049,"column":12},"end":{"line":1049,"column":55}},"319":{"start":{"line":1050,"column":12},"end":{"line":1052,"column":13}},"320":{"start":{"line":1051,"column":16},"end":{"line":1051,"column":55}},"321":{"start":{"line":1054,"column":12},"end":{"line":1054,"column":75}},"322":{"start":{"line":1056,"column":8},"end":{"line":1056,"column":24}},"323":{"start":{"line":1069,"column":8},"end":{"line":1069,"column":28}},"324":{"start":{"line":1070,"column":8},"end":{"line":1074,"column":11}},"325":{"start":{"line":1071,"column":12},"end":{"line":1071,"column":31}},"326":{"start":{"line":1072,"column":12},"end":{"line":1072,"column":38}},"327":{"start":{"line":1073,"column":12},"end":{"line":1073,"column":59}},"328":{"start":{"line":1083,"column":8},"end":{"line":1083,"column":50}},"329":{"start":{"line":1094,"column":8},"end":{"line":1094,"column":69}},"330":{"start":{"line":1105,"column":8},"end":{"line":1105,"column":63}},"331":{"start":{"line":1119,"column":8},"end":{"line":1119,"column":19}},"332":{"start":{"line":1120,"column":8},"end":{"line":1120,"column":23}},"333":{"start":{"line":1121,"column":8},"end":{"line":1125,"column":11}},"334":{"start":{"line":1122,"column":12},"end":{"line":1124,"column":13}},"335":{"start":{"line":1123,"column":16},"end":{"line":1123,"column":33}},"336":{"start":{"line":1127,"column":8},"end":{"line":1127,"column":28}},"337":{"start":{"line":1137,"column":8},"end":{"line":1137,"column":34}},"338":{"start":{"line":1147,"column":8},"end":{"line":1147,"column":31}},"339":{"start":{"line":1159,"column":8},"end":{"line":1162,"column":35}},"340":{"start":{"line":1164,"column":8},"end":{"line":1172,"column":9}},"341":{"start":{"line":1165,"column":12},"end":{"line":1169,"column":13}},"342":{"start":{"line":1166,"column":16},"end":{"line":1168,"column":17}},"343":{"start":{"line":1167,"column":20},"end":{"line":1167,"column":50}},"344":{"start":{"line":1171,"column":12},"end":{"line":1171,"column":56}},"345":{"start":{"line":1174,"column":8},"end":{"line":1174,"column":20}},"346":{"start":{"line":1183,"column":8},"end":{"line":1183,"column":34}},"347":{"start":{"line":1192,"column":8},"end":{"line":1192,"column":38}},"348":{"start":{"line":1196,"column":8},"end":{"line":1199,"column":17}},"349":{"start":{"line":1201,"column":8},"end":{"line":1215,"column":9}},"350":{"start":{"line":1202,"column":12},"end":{"line":1202,"column":28}},"351":{"start":{"line":1203,"column":12},"end":{"line":1203,"column":35}},"352":{"start":{"line":1204,"column":12},"end":{"line":1206,"column":13}},"353":{"start":{"line":1205,"column":16},"end":{"line":1205,"column":37}},"354":{"start":{"line":1208,"column":12},"end":{"line":1210,"column":13}},"355":{"start":{"line":1209,"column":16},"end":{"line":1209,"column":62}},"356":{"start":{"line":1212,"column":12},"end":{"line":1214,"column":13}},"357":{"start":{"line":1213,"column":16},"end":{"line":1213,"column":57}},"358":{"start":{"line":1216,"column":8},"end":{"line":1216,"column":31}},"359":{"start":{"line":1225,"column":8},"end":{"line":1225,"column":27}},"360":{"start":{"line":1229,"column":0},"end":{"line":1273,"column":3}},"361":{"start":{"line":1282,"column":0},"end":{"line":1314,"column":2}},"362":{"start":{"line":1283,"column":4},"end":{"line":1288,"column":12}},"363":{"start":{"line":1290,"column":4},"end":{"line":1296,"column":5}},"364":{"start":{"line":1291,"column":8},"end":{"line":1291,"column":72}},"365":{"start":{"line":1292,"column":8},"end":{"line":1292,"column":34}},"366":{"start":{"line":1293,"column":8},"end":{"line":1295,"column":9}},"367":{"start":{"line":1294,"column":12},"end":{"line":1294,"column":30}},"368":{"start":{"line":1298,"column":4},"end":{"line":1311,"column":7}},"369":{"start":{"line":1299,"column":8},"end":{"line":1299,"column":47}},"370":{"start":{"line":1301,"column":8},"end":{"line":1303,"column":9}},"371":{"start":{"line":1302,"column":12},"end":{"line":1302,"column":37}},"372":{"start":{"line":1305,"column":8},"end":{"line":1305,"column":34}},"373":{"start":{"line":1306,"column":8},"end":{"line":1308,"column":9}},"374":{"start":{"line":1307,"column":12},"end":{"line":1307,"column":49}},"375":{"start":{"line":1310,"column":8},"end":{"line":1310,"column":22}},"376":{"start":{"line":1313,"column":4},"end":{"line":1313,"column":43}},"377":{"start":{"line":1316,"column":0},"end":{"line":1316,"column":22}},"378":{"start":{"line":1318,"column":0},"end":{"line":1320,"column":2}},"379":{"start":{"line":1319,"column":4},"end":{"line":1319,"column":31}},"380":{"start":{"line":1322,"column":0},"end":{"line":1322,"column":19}},"381":{"start":{"line":1328,"column":0},"end":{"line":1385,"column":6}},"382":{"start":{"line":1388,"column":0},"end":{"line":1409,"column":3}},"383":{"start":{"line":1389,"column":4},"end":{"line":1408,"column":6}},"384":{"start":{"line":1390,"column":8},"end":{"line":1393,"column":16}},"385":{"start":{"line":1395,"column":8},"end":{"line":1397,"column":9}},"386":{"start":{"line":1396,"column":12},"end":{"line":1396,"column":54}},"387":{"start":{"line":1399,"column":8},"end":{"line":1399,"column":56}},"388":{"start":{"line":1401,"column":8},"end":{"line":1405,"column":9}},"389":{"start":{"line":1402,"column":12},"end":{"line":1402,"column":29}},"390":{"start":{"line":1404,"column":12},"end":{"line":1404,"column":39}},"391":{"start":{"line":1407,"column":8},"end":{"line":1407,"column":19}},"392":{"start":{"line":1415,"column":0},"end":{"line":1514,"column":3}},"393":{"start":{"line":1510,"column":4},"end":{"line":1513,"column":6}},"394":{"start":{"line":1511,"column":8},"end":{"line":1511,"column":56}},"395":{"start":{"line":1512,"column":8},"end":{"line":1512,"column":19}},"396":{"start":{"line":1523,"column":0},"end":{"line":1530,"column":2}},"397":{"start":{"line":1524,"column":4},"end":{"line":1524,"column":26}},"398":{"start":{"line":1525,"column":4},"end":{"line":1527,"column":5}},"399":{"start":{"line":1526,"column":8},"end":{"line":1526,"column":38}},"400":{"start":{"line":1529,"column":4},"end":{"line":1529,"column":16}},"401":{"start":{"line":1532,"column":0},"end":{"line":1582,"column":3}},"402":{"start":{"line":1584,"column":0},"end":{"line":1637,"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":39}},{"start":{"line":51,"column":43},"end":{"line":51,"column":85}}]},"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":127,"type":"if","locations":[{"start":{"line":127,"column":0},"end":{"line":127,"column":0}},{"start":{"line":127,"column":0},"end":{"line":127,"column":0}}]},"17":{"line":134,"type":"cond-expr","locations":[{"start":{"line":134,"column":34},"end":{"line":134,"column":38}},{"start":{"line":134,"column":41},"end":{"line":134,"column":46}}]},"18":{"line":168,"type":"if","locations":[{"start":{"line":168,"column":4},"end":{"line":168,"column":4}},{"start":{"line":168,"column":4},"end":{"line":168,"column":4}}]},"19":{"line":169,"type":"cond-expr","locations":[{"start":{"line":169,"column":33},"end":{"line":169,"column":37}},{"start":{"line":169,"column":40},"end":{"line":169,"column":58}}]},"20":{"line":169,"type":"binary-expr","locations":[{"start":{"line":169,"column":40},"end":{"line":169,"column":50}},{"start":{"line":169,"column":54},"end":{"line":169,"column":58}}]},"21":{"line":186,"type":"if","locations":[{"start":{"line":186,"column":4},"end":{"line":186,"column":4}},{"start":{"line":186,"column":4},"end":{"line":186,"column":4}}]},"22":{"line":187,"type":"if","locations":[{"start":{"line":187,"column":9},"end":{"line":187,"column":9}},{"start":{"line":187,"column":9},"end":{"line":187,"column":9}}]},"23":{"line":187,"type":"binary-expr","locations":[{"start":{"line":187,"column":13},"end":{"line":187,"column":35}},{"start":{"line":187,"column":39},"end":{"line":187,"column":63}}]},"24":{"line":188,"type":"if","locations":[{"start":{"line":188,"column":12},"end":{"line":188,"column":12}},{"start":{"line":188,"column":12},"end":{"line":188,"column":12}}]},"25":{"line":188,"type":"binary-expr","locations":[{"start":{"line":188,"column":16},"end":{"line":188,"column":32}},{"start":{"line":188,"column":36},"end":{"line":188,"column":55}}]},"26":{"line":190,"type":"if","locations":[{"start":{"line":190,"column":19},"end":{"line":190,"column":19}},{"start":{"line":190,"column":19},"end":{"line":190,"column":19}}]},"27":{"line":190,"type":"binary-expr","locations":[{"start":{"line":190,"column":24},"end":{"line":190,"column":32}},{"start":{"line":190,"column":36},"end":{"line":190,"column":47}},{"start":{"line":191,"column":21},"end":{"line":191,"column":27}},{"start":{"line":191,"column":31},"end":{"line":191,"column":48}}]},"28":{"line":195,"type":"if","locations":[{"start":{"line":195,"column":11},"end":{"line":195,"column":11}},{"start":{"line":195,"column":11},"end":{"line":195,"column":11}}]},"29":{"line":197,"type":"if","locations":[{"start":{"line":197,"column":11},"end":{"line":197,"column":11}},{"start":{"line":197,"column":11},"end":{"line":197,"column":11}}]},"30":{"line":216,"type":"if","locations":[{"start":{"line":216,"column":4},"end":{"line":216,"column":4}},{"start":{"line":216,"column":4},"end":{"line":216,"column":4}}]},"31":{"line":216,"type":"binary-expr","locations":[{"start":{"line":216,"column":8},"end":{"line":216,"column":12}},{"start":{"line":216,"column":16},"end":{"line":216,"column":18}},{"start":{"line":216,"column":22},"end":{"line":216,"column":45}}]},"32":{"line":222,"type":"if","locations":[{"start":{"line":222,"column":12},"end":{"line":222,"column":12}},{"start":{"line":222,"column":12},"end":{"line":222,"column":12}}]},"33":{"line":222,"type":"binary-expr","locations":[{"start":{"line":222,"column":16},"end":{"line":222,"column":23}},{"start":{"line":222,"column":27},"end":{"line":222,"column":40}}]},"34":{"line":226,"type":"if","locations":[{"start":{"line":226,"column":12},"end":{"line":226,"column":12}},{"start":{"line":226,"column":12},"end":{"line":226,"column":12}}]},"35":{"line":226,"type":"binary-expr","locations":[{"start":{"line":226,"column":16},"end":{"line":226,"column":23}},{"start":{"line":226,"column":27},"end":{"line":226,"column":40}}]},"36":{"line":231,"type":"binary-expr","locations":[{"start":{"line":231,"column":27},"end":{"line":231,"column":34}},{"start":{"line":231,"column":38},"end":{"line":231,"column":42}}]},"37":{"line":233,"type":"if","locations":[{"start":{"line":233,"column":12},"end":{"line":233,"column":12}},{"start":{"line":233,"column":12},"end":{"line":233,"column":12}}]},"38":{"line":237,"type":"binary-expr","locations":[{"start":{"line":237,"column":13},"end":{"line":237,"column":38}},{"start":{"line":237,"column":44},"end":{"line":237,"column":54}}]},"39":{"line":255,"type":"if","locations":[{"start":{"line":255,"column":4},"end":{"line":255,"column":4}},{"start":{"line":255,"column":4},"end":{"line":255,"column":4}}]},"40":{"line":256,"type":"binary-expr","locations":[{"start":{"line":256,"column":18},"end":{"line":256,"column":25}},{"start":{"line":256,"column":29},"end":{"line":256,"column":33}}]},"41":{"line":300,"type":"if","locations":[{"start":{"line":300,"column":4},"end":{"line":300,"column":4}},{"start":{"line":300,"column":4},"end":{"line":300,"column":4}}]},"42":{"line":301,"type":"if","locations":[{"start":{"line":301,"column":8},"end":{"line":301,"column":8}},{"start":{"line":301,"column":8},"end":{"line":301,"column":8}}]},"43":{"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}}]},"44":{"line":306,"type":"if","locations":[{"start":{"line":306,"column":15},"end":{"line":306,"column":15}},{"start":{"line":306,"column":15},"end":{"line":306,"column":15}}]},"45":{"line":310,"type":"if","locations":[{"start":{"line":310,"column":8},"end":{"line":310,"column":8}},{"start":{"line":310,"column":8},"end":{"line":310,"column":8}}]},"46":{"line":310,"type":"binary-expr","locations":[{"start":{"line":310,"column":12},"end":{"line":310,"column":25}},{"start":{"line":310,"column":29},"end":{"line":310,"column":49}}]},"47":{"line":312,"type":"cond-expr","locations":[{"start":{"line":312,"column":36},"end":{"line":312,"column":50}},{"start":{"line":312,"column":53},"end":{"line":312,"column":57}}]},"48":{"line":313,"type":"if","locations":[{"start":{"line":313,"column":12},"end":{"line":313,"column":12}},{"start":{"line":313,"column":12},"end":{"line":313,"column":12}}]},"49":{"line":313,"type":"binary-expr","locations":[{"start":{"line":313,"column":16},"end":{"line":313,"column":25}},{"start":{"line":313,"column":30},"end":{"line":313,"column":40}},{"start":{"line":313,"column":44},"end":{"line":313,"column":63}}]},"50":{"line":315,"type":"if","locations":[{"start":{"line":315,"column":16},"end":{"line":315,"column":16}},{"start":{"line":315,"column":16},"end":{"line":315,"column":16}}]},"51":{"line":338,"type":"if","locations":[{"start":{"line":338,"column":4},"end":{"line":338,"column":4}},{"start":{"line":338,"column":4},"end":{"line":338,"column":4}}]},"52":{"line":343,"type":"if","locations":[{"start":{"line":343,"column":11},"end":{"line":343,"column":11}},{"start":{"line":343,"column":11},"end":{"line":343,"column":11}}]},"53":{"line":362,"type":"if","locations":[{"start":{"line":362,"column":4},"end":{"line":362,"column":4}},{"start":{"line":362,"column":4},"end":{"line":362,"column":4}}]},"54":{"line":362,"type":"binary-expr","locations":[{"start":{"line":362,"column":8},"end":{"line":362,"column":20}},{"start":{"line":362,"column":24},"end":{"line":362,"column":46}}]},"55":{"line":364,"type":"if","locations":[{"start":{"line":364,"column":11},"end":{"line":364,"column":11}},{"start":{"line":364,"column":11},"end":{"line":364,"column":11}}]},"56":{"line":384,"type":"if","locations":[{"start":{"line":384,"column":8},"end":{"line":384,"column":8}},{"start":{"line":384,"column":8},"end":{"line":384,"column":8}}]},"57":{"line":386,"type":"cond-expr","locations":[{"start":{"line":386,"column":39},"end":{"line":386,"column":62}},{"start":{"line":386,"column":65},"end":{"line":386,"column":69}}]},"58":{"line":386,"type":"binary-expr","locations":[{"start":{"line":386,"column":18},"end":{"line":386,"column":23}},{"start":{"line":386,"column":27},"end":{"line":386,"column":35}}]},"59":{"line":387,"type":"cond-expr","locations":[{"start":{"line":387,"column":53},"end":{"line":387,"column":83}},{"start":{"line":387,"column":86},"end":{"line":387,"column":90}}]},"60":{"line":387,"type":"binary-expr","locations":[{"start":{"line":387,"column":25},"end":{"line":387,"column":30}},{"start":{"line":387,"column":34},"end":{"line":387,"column":49}}]},"61":{"line":390,"type":"if","locations":[{"start":{"line":390,"column":12},"end":{"line":390,"column":12}},{"start":{"line":390,"column":12},"end":{"line":390,"column":12}}]},"62":{"line":394,"type":"if","locations":[{"start":{"line":394,"column":12},"end":{"line":394,"column":12}},{"start":{"line":394,"column":12},"end":{"line":394,"column":12}}]},"63":{"line":416,"type":"if","locations":[{"start":{"line":416,"column":8},"end":{"line":416,"column":8}},{"start":{"line":416,"column":8},"end":{"line":416,"column":8}}]},"64":{"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}}]},"65":{"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}}]},"66":{"line":441,"type":"if","locations":[{"start":{"line":441,"column":8},"end":{"line":441,"column":8}},{"start":{"line":441,"column":8},"end":{"line":441,"column":8}}]},"67":{"line":441,"type":"binary-expr","locations":[{"start":{"line":441,"column":12},"end":{"line":441,"column":22}},{"start":{"line":441,"column":26},"end":{"line":441,"column":43}}]},"68":{"line":443,"type":"if","locations":[{"start":{"line":443,"column":15},"end":{"line":443,"column":15}},{"start":{"line":443,"column":15},"end":{"line":443,"column":15}}]},"69":{"line":466,"type":"if","locations":[{"start":{"line":466,"column":8},"end":{"line":466,"column":8}},{"start":{"line":466,"column":8},"end":{"line":466,"column":8}}]},"70":{"line":469,"type":"if","locations":[{"start":{"line":469,"column":12},"end":{"line":469,"column":12}},{"start":{"line":469,"column":12},"end":{"line":469,"column":12}}]},"71":{"line":469,"type":"binary-expr","locations":[{"start":{"line":469,"column":16},"end":{"line":469,"column":26}},{"start":{"line":469,"column":30},"end":{"line":469,"column":47}}]},"72":{"line":471,"type":"if","locations":[{"start":{"line":471,"column":19},"end":{"line":471,"column":19}},{"start":{"line":471,"column":19},"end":{"line":471,"column":19}}]},"73":{"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}}]},"74":{"line":507,"type":"if","locations":[{"start":{"line":507,"column":8},"end":{"line":507,"column":8}},{"start":{"line":507,"column":8},"end":{"line":507,"column":8}}]},"75":{"line":528,"type":"if","locations":[{"start":{"line":528,"column":8},"end":{"line":528,"column":8}},{"start":{"line":528,"column":8},"end":{"line":528,"column":8}}]},"76":{"line":528,"type":"binary-expr","locations":[{"start":{"line":528,"column":12},"end":{"line":528,"column":19}},{"start":{"line":528,"column":23},"end":{"line":528,"column":36}}]},"77":{"line":544,"type":"if","locations":[{"start":{"line":544,"column":8},"end":{"line":544,"column":8}},{"start":{"line":544,"column":8},"end":{"line":544,"column":8}}]},"78":{"line":545,"type":"cond-expr","locations":[{"start":{"line":545,"column":26},"end":{"line":545,"column":42}},{"start":{"line":545,"column":45},"end":{"line":545,"column":65}}]},"79":{"line":545,"type":"binary-expr","locations":[{"start":{"line":545,"column":26},"end":{"line":545,"column":35}},{"start":{"line":545,"column":39},"end":{"line":545,"column":42}}]},"80":{"line":546,"type":"if","locations":[{"start":{"line":546,"column":12},"end":{"line":546,"column":12}},{"start":{"line":546,"column":12},"end":{"line":546,"column":12}}]},"81":{"line":557,"type":"if","locations":[{"start":{"line":557,"column":8},"end":{"line":557,"column":8}},{"start":{"line":557,"column":8},"end":{"line":557,"column":8}}]},"82":{"line":557,"type":"binary-expr","locations":[{"start":{"line":557,"column":12},"end":{"line":557,"column":15}},{"start":{"line":557,"column":19},"end":{"line":557,"column":44}}]},"83":{"line":580,"type":"if","locations":[{"start":{"line":580,"column":8},"end":{"line":580,"column":8}},{"start":{"line":580,"column":8},"end":{"line":580,"column":8}}]},"84":{"line":580,"type":"binary-expr","locations":[{"start":{"line":580,"column":12},"end":{"line":580,"column":34}},{"start":{"line":581,"column":17},"end":{"line":581,"column":44}},{"start":{"line":581,"column":48},"end":{"line":581,"column":77}}]},"85":{"line":597,"type":"if","locations":[{"start":{"line":597,"column":8},"end":{"line":597,"column":8}},{"start":{"line":597,"column":8},"end":{"line":597,"column":8}}]},"86":{"line":597,"type":"binary-expr","locations":[{"start":{"line":597,"column":12},"end":{"line":597,"column":34}},{"start":{"line":598,"column":17},"end":{"line":598,"column":44}},{"start":{"line":598,"column":48},"end":{"line":598,"column":77}}]},"87":{"line":668,"type":"if","locations":[{"start":{"line":668,"column":8},"end":{"line":668,"column":8}},{"start":{"line":668,"column":8},"end":{"line":668,"column":8}}]},"88":{"line":674,"type":"binary-expr","locations":[{"start":{"line":674,"column":15},"end":{"line":674,"column":23}},{"start":{"line":674,"column":27},"end":{"line":674,"column":36}}]},"89":{"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}}]},"90":{"line":701,"type":"binary-expr","locations":[{"start":{"line":701,"column":12},"end":{"line":701,"column":16}},{"start":{"line":701,"column":20},"end":{"line":701,"column":35}}]},"91":{"line":705,"type":"if","locations":[{"start":{"line":705,"column":8},"end":{"line":705,"column":8}},{"start":{"line":705,"column":8},"end":{"line":705,"column":8}}]},"92":{"line":723,"type":"if","locations":[{"start":{"line":723,"column":8},"end":{"line":723,"column":8}},{"start":{"line":723,"column":8},"end":{"line":723,"column":8}}]},"93":{"line":738,"type":"if","locations":[{"start":{"line":738,"column":8},"end":{"line":738,"column":8}},{"start":{"line":738,"column":8},"end":{"line":738,"column":8}}]},"94":{"line":755,"type":"cond-expr","locations":[{"start":{"line":755,"column":42},"end":{"line":755,"column":52}},{"start":{"line":755,"column":55},"end":{"line":755,"column":62}}]},"95":{"line":760,"type":"if","locations":[{"start":{"line":760,"column":8},"end":{"line":760,"column":8}},{"start":{"line":760,"column":8},"end":{"line":760,"column":8}}]},"96":{"line":766,"type":"if","locations":[{"start":{"line":766,"column":8},"end":{"line":766,"column":8}},{"start":{"line":766,"column":8},"end":{"line":766,"column":8}}]},"97":{"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}}]},"98":{"line":797,"type":"if","locations":[{"start":{"line":797,"column":8},"end":{"line":797,"column":8}},{"start":{"line":797,"column":8},"end":{"line":797,"column":8}}]},"99":{"line":797,"type":"binary-expr","locations":[{"start":{"line":797,"column":12},"end":{"line":797,"column":13}},{"start":{"line":797,"column":17},"end":{"line":797,"column":24}}]},"100":{"line":801,"type":"if","locations":[{"start":{"line":801,"column":8},"end":{"line":801,"column":8}},{"start":{"line":801,"column":8},"end":{"line":801,"column":8}}]},"101":{"line":801,"type":"binary-expr","locations":[{"start":{"line":801,"column":12},"end":{"line":801,"column":13}},{"start":{"line":801,"column":17},"end":{"line":801,"column":24}}]},"102":{"line":816,"type":"cond-expr","locations":[{"start":{"line":817,"column":8},"end":{"line":819,"column":9}},{"start":{"line":820,"column":8},"end":{"line":835,"column":9}}]},"103":{"line":826,"type":"if","locations":[{"start":{"line":826,"column":12},"end":{"line":826,"column":12}},{"start":{"line":826,"column":12},"end":{"line":826,"column":12}}]},"104":{"line":828,"type":"if","locations":[{"start":{"line":828,"column":19},"end":{"line":828,"column":19}},{"start":{"line":828,"column":19},"end":{"line":828,"column":19}}]},"105":{"line":840,"type":"binary-expr","locations":[{"start":{"line":840,"column":18},"end":{"line":840,"column":22}},{"start":{"line":840,"column":26},"end":{"line":840,"column":40}},{"start":{"line":841,"column":16},"end":{"line":841,"column":48}},{"start":{"line":842,"column":13},"end":{"line":842,"column":46}},{"start":{"line":843,"column":16},"end":{"line":843,"column":62}}]},"106":{"line":891,"type":"if","locations":[{"start":{"line":891,"column":4},"end":{"line":891,"column":4}},{"start":{"line":891,"column":4},"end":{"line":891,"column":4}}]},"107":{"line":892,"type":"if","locations":[{"start":{"line":892,"column":8},"end":{"line":892,"column":8}},{"start":{"line":892,"column":8},"end":{"line":892,"column":8}}]},"108":{"line":895,"type":"if","locations":[{"start":{"line":895,"column":15},"end":{"line":895,"column":15}},{"start":{"line":895,"column":15},"end":{"line":895,"column":15}}]},"109":{"line":895,"type":"binary-expr","locations":[{"start":{"line":895,"column":19},"end":{"line":895,"column":33}},{"start":{"line":895,"column":37},"end":{"line":895,"column":58}}]},"110":{"line":897,"type":"if","locations":[{"start":{"line":897,"column":15},"end":{"line":897,"column":15}},{"start":{"line":897,"column":15},"end":{"line":897,"column":15}}]},"111":{"line":899,"type":"if","locations":[{"start":{"line":899,"column":15},"end":{"line":899,"column":15}},{"start":{"line":899,"column":15},"end":{"line":899,"column":15}}]},"112":{"line":899,"type":"binary-expr","locations":[{"start":{"line":899,"column":19},"end":{"line":899,"column":27}},{"start":{"line":899,"column":31},"end":{"line":899,"column":45}}]},"113":{"line":901,"type":"if","locations":[{"start":{"line":901,"column":16},"end":{"line":901,"column":16}},{"start":{"line":901,"column":16},"end":{"line":901,"column":16}}]},"114":{"line":916,"type":"binary-expr","locations":[{"start":{"line":916,"column":18},"end":{"line":916,"column":23}},{"start":{"line":916,"column":27},"end":{"line":916,"column":29}}]},"115":{"line":930,"type":"cond-expr","locations":[{"start":{"line":930,"column":43},"end":{"line":930,"column":58}},{"start":{"line":930,"column":61},"end":{"line":930,"column":69}}]},"116":{"line":930,"type":"binary-expr","locations":[{"start":{"line":930,"column":12},"end":{"line":930,"column":20}},{"start":{"line":930,"column":24},"end":{"line":930,"column":39}}]},"117":{"line":935,"type":"if","locations":[{"start":{"line":935,"column":4},"end":{"line":935,"column":4}},{"start":{"line":935,"column":4},"end":{"line":935,"column":4}}]},"118":{"line":935,"type":"binary-expr","locations":[{"start":{"line":935,"column":8},"end":{"line":935,"column":13}},{"start":{"line":935,"column":17},"end":{"line":935,"column":29}}]},"119":{"line":936,"type":"binary-expr","locations":[{"start":{"line":936,"column":32},"end":{"line":936,"column":39}},{"start":{"line":936,"column":43},"end":{"line":936,"column":51}}]},"120":{"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}}]},"121":{"line":942,"type":"binary-expr","locations":[{"start":{"line":942,"column":8},"end":{"line":942,"column":12}},{"start":{"line":942,"column":16},"end":{"line":942,"column":18}}]},"122":{"line":952,"type":"if","locations":[{"start":{"line":952,"column":16},"end":{"line":952,"column":16}},{"start":{"line":952,"column":16},"end":{"line":952,"column":16}}]},"123":{"line":955,"type":"binary-expr","locations":[{"start":{"line":955,"column":22},"end":{"line":955,"column":29}},{"start":{"line":955,"column":33},"end":{"line":955,"column":41}}]},"124":{"line":957,"type":"if","locations":[{"start":{"line":957,"column":16},"end":{"line":957,"column":16}},{"start":{"line":957,"column":16},"end":{"line":957,"column":16}}]},"125":{"line":957,"type":"binary-expr","locations":[{"start":{"line":957,"column":20},"end":{"line":957,"column":40}},{"start":{"line":957,"column":44},"end":{"line":957,"column":63}}]},"126":{"line":963,"type":"cond-expr","locations":[{"start":{"line":963,"column":32},"end":{"line":963,"column":35}},{"start":{"line":963,"column":38},"end":{"line":963,"column":42}}]},"127":{"line":980,"type":"if","locations":[{"start":{"line":980,"column":4},"end":{"line":980,"column":4}},{"start":{"line":980,"column":4},"end":{"line":980,"column":4}}]},"128":{"line":981,"type":"binary-expr","locations":[{"start":{"line":981,"column":18},"end":{"line":981,"column":25}},{"start":{"line":981,"column":29},"end":{"line":981,"column":33}}]},"129":{"line":992,"type":"if","locations":[{"start":{"line":992,"column":4},"end":{"line":992,"column":4}},{"start":{"line":992,"column":4},"end":{"line":992,"column":4}}]},"130":{"line":1004,"type":"cond-expr","locations":[{"start":{"line":1004,"column":29},"end":{"line":1004,"column":31}},{"start":{"line":1004,"column":34},"end":{"line":1004,"column":38}}]},"131":{"line":1008,"type":"if","locations":[{"start":{"line":1008,"column":12},"end":{"line":1008,"column":12}},{"start":{"line":1008,"column":12},"end":{"line":1008,"column":12}}]},"132":{"line":1024,"type":"binary-expr","locations":[{"start":{"line":1024,"column":22},"end":{"line":1024,"column":33}},{"start":{"line":1024,"column":37},"end":{"line":1024,"column":39}}]},"133":{"line":1040,"type":"binary-expr","locations":[{"start":{"line":1040,"column":27},"end":{"line":1040,"column":34}},{"start":{"line":1040,"column":38},"end":{"line":1040,"column":42}}]},"134":{"line":1050,"type":"if","locations":[{"start":{"line":1050,"column":12},"end":{"line":1050,"column":12}},{"start":{"line":1050,"column":12},"end":{"line":1050,"column":12}}]},"135":{"line":1054,"type":"binary-expr","locations":[{"start":{"line":1054,"column":27},"end":{"line":1054,"column":34}},{"start":{"line":1054,"column":38},"end":{"line":1054,"column":46}}]},"136":{"line":1072,"type":"binary-expr","locations":[{"start":{"line":1072,"column":22},"end":{"line":1072,"column":29}},{"start":{"line":1072,"column":33},"end":{"line":1072,"column":37}}]},"137":{"line":1119,"type":"binary-expr","locations":[{"start":{"line":1119,"column":12},"end":{"line":1119,"column":13}},{"start":{"line":1119,"column":17},"end":{"line":1119,"column":18}}]},"138":{"line":1122,"type":"if","locations":[{"start":{"line":1122,"column":12},"end":{"line":1122,"column":12}},{"start":{"line":1122,"column":12},"end":{"line":1122,"column":12}}]},"139":{"line":1164,"type":"if","locations":[{"start":{"line":1164,"column":8},"end":{"line":1164,"column":8}},{"start":{"line":1164,"column":8},"end":{"line":1164,"column":8}}]},"140":{"line":1165,"type":"if","locations":[{"start":{"line":1165,"column":12},"end":{"line":1165,"column":12}},{"start":{"line":1165,"column":12},"end":{"line":1165,"column":12}}]},"141":{"line":1166,"type":"if","locations":[{"start":{"line":1166,"column":16},"end":{"line":1166,"column":16}},{"start":{"line":1166,"column":16},"end":{"line":1166,"column":16}}]},"142":{"line":1166,"type":"binary-expr","locations":[{"start":{"line":1166,"column":20},"end":{"line":1166,"column":25}},{"start":{"line":1166,"column":29},"end":{"line":1166,"column":37}},{"start":{"line":1166,"column":41},"end":{"line":1166,"column":63}}]},"143":{"line":1201,"type":"if","locations":[{"start":{"line":1201,"column":8},"end":{"line":1201,"column":8}},{"start":{"line":1201,"column":8},"end":{"line":1201,"column":8}}]},"144":{"line":1201,"type":"binary-expr","locations":[{"start":{"line":1201,"column":12},"end":{"line":1201,"column":17}},{"start":{"line":1201,"column":21},"end":{"line":1201,"column":29}}]},"145":{"line":1204,"type":"if","locations":[{"start":{"line":1204,"column":12},"end":{"line":1204,"column":12}},{"start":{"line":1204,"column":12},"end":{"line":1204,"column":12}}]},"146":{"line":1208,"type":"if","locations":[{"start":{"line":1208,"column":12},"end":{"line":1208,"column":12}},{"start":{"line":1208,"column":12},"end":{"line":1208,"column":12}}]},"147":{"line":1212,"type":"if","locations":[{"start":{"line":1212,"column":12},"end":{"line":1212,"column":12}},{"start":{"line":1212,"column":12},"end":{"line":1212,"column":12}}]},"148":{"line":1216,"type":"binary-expr","locations":[{"start":{"line":1216,"column":15},"end":{"line":1216,"column":18}},{"start":{"line":1216,"column":22},"end":{"line":1216,"column":30}}]},"149":{"line":1290,"type":"if","locations":[{"start":{"line":1290,"column":4},"end":{"line":1290,"column":4}},{"start":{"line":1290,"column":4},"end":{"line":1290,"column":4}}]},"150":{"line":1291,"type":"binary-expr","locations":[{"start":{"line":1291,"column":19},"end":{"line":1291,"column":50}},{"start":{"line":1291,"column":54},"end":{"line":1291,"column":71}}]},"151":{"line":1293,"type":"if","locations":[{"start":{"line":1293,"column":8},"end":{"line":1293,"column":8}},{"start":{"line":1293,"column":8},"end":{"line":1293,"column":8}}]},"152":{"line":1293,"type":"binary-expr","locations":[{"start":{"line":1293,"column":12},"end":{"line":1293,"column":15}},{"start":{"line":1293,"column":19},"end":{"line":1293,"column":31}}]},"153":{"line":1301,"type":"if","locations":[{"start":{"line":1301,"column":8},"end":{"line":1301,"column":8}},{"start":{"line":1301,"column":8},"end":{"line":1301,"column":8}}]},"154":{"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}}]},"155":{"line":1313,"type":"cond-expr","locations":[{"start":{"line":1313,"column":26},"end":{"line":1313,"column":36}},{"start":{"line":1313,"column":39},"end":{"line":1313,"column":42}}]},"156":{"line":1396,"type":"binary-expr","locations":[{"start":{"line":1396,"column":22},"end":{"line":1396,"column":31}},{"start":{"line":1396,"column":35},"end":{"line":1396,"column":45}},{"start":{"line":1396,"column":49},"end":{"line":1396,"column":52}}]},"157":{"line":1401,"type":"if","locations":[{"start":{"line":1401,"column":8},"end":{"line":1401,"column":8}},{"start":{"line":1401,"column":8},"end":{"line":1401,"column":8}}]},"158":{"line":1525,"type":"if","locations":[{"start":{"line":1525,"column":4},"end":{"line":1525,"column":4}},{"start":{"line":1525,"column":4},"end":{"line":1525,"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 (Y_Node._instances.has(node) && Y_Node._instances.get(node)._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';","","if (!window.WeakMap)","{"," window.WeakMap = function() {"," this._map = {};"," };"," window.WeakMap.prototype = {"," has: function(k) {"," return this._map[k] ? true : false;"," },"," get: function(k) {"," return this._map[k];"," },"," set: function(k,v) {"," this._map[k] = v;"," },"," 'delete': function(k) {"," delete this._map[k];"," }"," };","}","","/**"," * A list of Node instances that have been created"," * @private"," * @type Object"," * @property _instances"," * @static"," *"," */","Y_Node._instances = new WeakMap();","","/**"," * 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;",""," 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)"," instance = Y_Node._instances.get(node); // 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.set(node, 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.get(node._node);"," if (instance) {"," instance.destroy();"," } else { // purge in case added by other means"," Y.Event.purgeElement(node);"," }"," });"," }",""," Y_Node._instances.delete(this._node);",""," this._node = null;"," this._stateProxy = null;"," },",""," /**"," * 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 instance = Y.Node._instances.get(node),"," 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 {"," }","};","","/**"," * Import the named method, or methods from the host onto NodeList."," *"," * @method importMethod"," * @static"," * @param {Object} host The object containing the methods to copy. Typically a prototype."," * @param {String|String[]} name The name, or an Array of names of the methods to import onto NodeList."," * @param {String} [altName] An alternative name to use for the method added to NodeList, which may differ from the name"," * of the original host object. Has no effect if name is an array of method names."," */","NodeList.importMethod = function(host, name, altName) {"," if (typeof name === 'string') {"," altName = altName || name;"," NodeList.addMethod(altName, 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.get(node);"," 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.get(nodes[0]) || getTemp(nodes[0]);"," val = instance._get(attr);"," if (val && val.nodeType) {"," isNodeList = true;"," }"," }",""," Y.Array.each(nodes, function(node) {"," instance = Y.Node._instances.get(node);",""," 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]++,Y_Node._instances.has(node))&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['6'][1]++,Y_Node._instances.get(node)._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=new WeakMap();__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;__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']++;instance=Y_Node._instances.get(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['88']++;cachedNode=instance?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['45'][0]++,instance._node):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['45'][1]++,null);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['89']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['47'][0]++,!instance)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['47'][1]++,cachedNode)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['47'][2]++,node!==cachedNode)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['46'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['90']++;instance=new Y_Node(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['91']++;if(node.nodeType!=11){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['48'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['92']++;Y_Node._instances.set(node,instance);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['48'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['46'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['43'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['39'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['93']++;return instance;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['94']++;Y_Node.DEFAULT_SETTER=function(name,val){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['14']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['95']++;var node=this._stateProxy,strPath;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['96']++;if(name.indexOf(DOT)>-1){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['49'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['97']++;strPath=name;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['98']++;name=name.split(DOT);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['99']++;Y.Object.setValue(node,name,val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['49'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['100']++;if(typeof node[name]!='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['50'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['101']++;node[name]=val;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['50'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['102']++;return val;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['103']++;Y_Node.DEFAULT_GETTER=function(name){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['15']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['104']++;var node=this._stateProxy,val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['105']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['52'][0]++,name.indexOf)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['52'][1]++,name.indexOf(DOT)>-1)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['51'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['106']++;val=Y.Object.getValue(node,name.split(DOT));}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['51'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['107']++;if(typeof node[name]!='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['53'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['108']++;val=node[name];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['53'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['109']++;return val;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['110']++;Y.mix(Y_Node.prototype,{DATA_PREFIX:'data-',toString:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['16']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['111']++;var str=this[UID]+': not bound to a node',node=this._node,attrs,id,className;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['112']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['54'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['113']++;attrs=node.attributes;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['114']++;id=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['56'][0]++,attrs)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['56'][1]++,attrs.id)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['55'][0]++,node.getAttribute('id')):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['55'][1]++,null);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['115']++;className=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['58'][0]++,attrs)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['58'][1]++,attrs.className)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['57'][0]++,node.getAttribute('className')):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['57'][1]++,null);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['116']++;str=node[NODE_NAME];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['117']++;if(id){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['59'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['118']++;str+='#'+id;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['59'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['119']++;if(className){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['60'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['120']++;str+='.'+className.replace(' ','.');}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['60'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['121']++;str+=' '+this[UID];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['54'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['122']++;return str;},get:function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['17']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['123']++;var val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['124']++;if(this._getAttr){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['61'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['125']++;val=this._getAttr(attr);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['61'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['126']++;val=this._get(attr);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['127']++;if(val){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['62'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['128']++;val=Y_Node.scrubVal(val,this);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['62'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['129']++;if(val===null){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['63'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['130']++;val=null;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['63'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['131']++;return val;},_get:function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['18']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['132']++;var attrConfig=Y_Node.ATTRS[attr],val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['133']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['65'][0]++,attrConfig)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['65'][1]++,attrConfig.getter)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['64'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['134']++;val=attrConfig.getter.call(this);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['64'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['135']++;if(Y_Node.re_aria.test(attr)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['66'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['136']++;val=this._node.getAttribute(attr,2);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['66'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['137']++;val=Y_Node.DEFAULT_GETTER.apply(this,arguments);}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['138']++;return val;},set:function(attr,val){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['19']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['139']++;var attrConfig=Y_Node.ATTRS[attr];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['140']++;if(this._setAttr){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['67'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['141']++;this._setAttr.apply(this,arguments);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['67'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['142']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['69'][0]++,attrConfig)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['69'][1]++,attrConfig.setter)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['68'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['143']++;attrConfig.setter.call(this,val,attr);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['68'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['144']++;if(Y_Node.re_aria.test(attr)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['70'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['145']++;this._node.setAttribute(attr,val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['70'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['146']++;Y_Node.DEFAULT_SETTER.apply(this,arguments);}}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['147']++;return this;},setAttrs:function(attrMap){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['20']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['148']++;if(this._setAttrs){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['71'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['149']++;this._setAttrs(attrMap);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['71'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['150']++;Y.Object.each(attrMap,function(v,n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['21']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['151']++;this.set(n,v);},this);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['152']++;return this;},getAttrs:function(attrs){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['22']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['153']++;var ret={};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['154']++;if(this._getAttrs){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['72'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['155']++;this._getAttrs(attrs);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['72'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['156']++;Y.Array.each(attrs,function(v,n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['23']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['157']++;ret[v]=this.get(v);},this);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['158']++;return ret;},compareTo:function(refNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['24']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['159']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['160']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['74'][0]++,refNode)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['74'][1]++,refNode._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['73'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['161']++;refNode=refNode._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['73'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['162']++;return node===refNode;},inDoc:function(doc){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['25']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['163']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['164']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['75'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['165']++;doc=doc?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['76'][0]++,(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['77'][0]++,doc._node)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['77'][1]++,doc)):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['76'][1]++,node[OWNER_DOCUMENT]);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['166']++;if(doc.documentElement){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['78'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['167']++;return Y_DOM.contains(doc.documentElement,node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['78'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['75'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['168']++;return false;},getById:function(id){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['26']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['169']++;var node=this._node,ret=Y_DOM.byId(id,node[OWNER_DOCUMENT]);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['170']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['80'][0]++,ret)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['80'][1]++,Y_DOM.contains(node,ret))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['79'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['171']++;ret=Y.one(ret);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['79'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['172']++;ret=null;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['173']++;return ret;},ancestor:function(fn,testSelf,stopFn){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['27']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['174']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['82'][0]++,arguments.length===2)&&((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['82'][1]++,typeof testSelf=='string')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['82'][2]++,typeof testSelf=='function'))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['81'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['175']++;stopFn=testSelf;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['81'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['176']++;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['177']++;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['178']++;stopFn=testSelf;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['83'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['179']++;return Y.all(Y_DOM.ancestors(this._node,_wrapFn(fn),testSelf,_wrapFn(stopFn)));},previous:function(fn,all){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['29']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['180']++;return Y.one(Y_DOM.elementByAxis(this._node,'previousSibling',_wrapFn(fn),all));},next:function(fn,all){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['30']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['181']++;return Y.one(Y_DOM.elementByAxis(this._node,'nextSibling',_wrapFn(fn),all));},siblings:function(fn){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['31']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['182']++;return Y.all(Y_DOM.siblings(this._node,_wrapFn(fn)));},one:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['32']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['183']++;return Y.one(Y.Selector.query(selector,this._node,true));},all:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['33']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['184']++;var nodelist;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['185']++;if(this._node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['85'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['186']++;nodelist=Y.all(Y.Selector.query(selector,this._node));__cov_LGqepiXuzGEZpz3IhlW0rQ.s['187']++;nodelist._query=selector;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['188']++;nodelist._queryRoot=this._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['85'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['189']++;return(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['86'][0]++,nodelist)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['86'][1]++,Y.all([]));},test:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['34']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['190']++;return Y.Selector.test(this._node,selector);},remove:function(destroy){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['35']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['191']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['192']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['88'][0]++,node)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['88'][1]++,node.parentNode)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['87'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['193']++;node.parentNode.removeChild(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['87'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['194']++;if(destroy){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['89'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['195']++;this.destroy();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['89'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['196']++;return this;},replace:function(newNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['36']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['197']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['198']++;if(typeof newNode=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['90'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['199']++;newNode=Y_Node.create(newNode);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['90'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['200']++;node.parentNode.replaceChild(Y_Node.getDOMNode(newNode),node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['201']++;return this;},replaceChild:function(node,refNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['37']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['202']++;if(typeof node=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['91'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['203']++;node=Y_DOM.create(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['91'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['204']++;return Y.one(this._node.replaceChild(Y_Node.getDOMNode(node),Y_Node.getDOMNode(refNode)));},destroy:function(recursive){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['38']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['205']++;var UID=Y.config.doc.uniqueID?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['92'][0]++,'uniqueID'):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['92'][1]++,'_yuid'),instance;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['206']++;this.purge();__cov_LGqepiXuzGEZpz3IhlW0rQ.s['207']++;if(this.unplug){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['93'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['208']++;this.unplug();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['93'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['209']++;this.clearData();__cov_LGqepiXuzGEZpz3IhlW0rQ.s['210']++;if(recursive){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['94'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['211']++;Y.NodeList.each(this.all('*'),function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['39']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['212']++;instance=Y_Node._instances.get(node._node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['213']++;if(instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['95'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['214']++;instance.destroy();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['95'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['215']++;Y.Event.purgeElement(node);}});}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['94'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['216']++;Y_Node._instances.delete(this._node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['217']++;this._node=null;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['218']++;this._stateProxy=null;},invoke:function(method,a,b,c,d,e){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['40']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['219']++;var node=this._node,ret;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['220']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['97'][0]++,a)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['97'][1]++,a._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['96'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['221']++;a=a._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['96'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['222']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['99'][0]++,b)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['99'][1]++,b._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['98'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['223']++;b=b._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['98'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['224']++;ret=node[method](a,b,c,d,e);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['225']++;return Y_Node.scrubVal(ret,this);},swap:Y.config.doc.documentElement.swapNode?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['100'][0]++,function(otherNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['41']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['226']++;this._node.swapNode(Y_Node.getDOMNode(otherNode));}):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['100'][1]++,function(otherNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['42']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['227']++;otherNode=Y_Node.getDOMNode(otherNode);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['228']++;var node=this._node,parent=otherNode.parentNode,nextSibling=otherNode.nextSibling;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['229']++;if(nextSibling===node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['101'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['230']++;parent.insertBefore(node,otherNode);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['101'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['231']++;if(otherNode===node.nextSibling){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['102'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['232']++;parent.insertBefore(otherNode,node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['102'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['233']++;node.parentNode.replaceChild(otherNode,node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['234']++;Y_DOM.addHTML(parent,node,nextSibling);}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['235']++;return this;}),hasMethod:function(method){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['43']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['236']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['237']++;return!!((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['103'][0]++,node)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['103'][1]++,method in node)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['103'][2]++,typeof node[method]!='unknown')&&((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['103'][3]++,typeof node[method]=='function')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['103'][4]++,String(node[method]).indexOf('function')===1)));},isFragment:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['44']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['238']++;return this.get('nodeType')===11;},empty:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['45']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['239']++;this.get('childNodes').remove().destroy(true);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['240']++;return this;},getDOMNode:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['46']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['241']++;return this._node;}},true);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['242']++;Y.Node=Y_Node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['243']++;Y.one=Y_Node.one;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['244']++;var NodeList=function(nodes){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['47']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['245']++;var tmp=[];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['246']++;if(nodes){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['104'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['247']++;if(typeof nodes==='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['105'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['248']++;this._query=nodes;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['249']++;nodes=Y.Selector.query(nodes);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['105'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['250']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['107'][0]++,nodes.nodeType)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['107'][1]++,Y_DOM.isWindow(nodes))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['106'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['251']++;nodes=[nodes];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['106'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['252']++;if(nodes._node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['108'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['253']++;nodes=[nodes._node];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['108'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['254']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['110'][0]++,nodes[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['110'][1]++,nodes[0]._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['109'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['255']++;Y.Array.each(nodes,function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['48']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['256']++;if(node._node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['111'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['257']++;tmp.push(node._node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['111'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['258']++;nodes=tmp;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['109'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['259']++;nodes=Y.Array(nodes,0,true);}}}}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['104'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['260']++;this._nodes=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['112'][0]++,nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['112'][1]++,[]);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['261']++;NodeList.NAME='NodeList';__cov_LGqepiXuzGEZpz3IhlW0rQ.s['262']++;NodeList.getDOMNodes=function(nodelist){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['49']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['263']++;return(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['114'][0]++,nodelist)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['114'][1]++,nodelist._nodes)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['113'][0]++,nodelist._nodes):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['113'][1]++,nodelist);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['264']++;NodeList.each=function(instance,fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['50']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['265']++;var nodes=instance._nodes;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['266']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['116'][0]++,nodes)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['116'][1]++,nodes.length)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['115'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['267']++;Y.Array.each(nodes,fn,(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['117'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['117'][1]++,instance));}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['115'][1]++;}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['268']++;NodeList.addMethod=function(name,fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['51']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['269']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['119'][0]++,name)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['119'][1]++,fn)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['118'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['270']++;NodeList.prototype[name]=function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['52']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['271']++;var ret=[],args=arguments;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['272']++;Y.Array.each(this._nodes,function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['53']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['273']++;var instance=Y.Node._instances.get(node),ctx,result;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['274']++;if(!instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['120'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['275']++;instance=NodeList._getTempNode(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['120'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['276']++;ctx=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['121'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['121'][1]++,instance);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['277']++;result=fn.apply(ctx,args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['278']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['123'][0]++,result!==undefined)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['123'][1]++,result!==instance)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['122'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['279']++;ret[ret.length]=result;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['122'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['280']++;return ret.length?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['124'][0]++,ret):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['124'][1]++,this);};}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['118'][1]++;}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['281']++;NodeList.importMethod=function(host,name,altName){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['54']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['282']++;if(typeof name==='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['125'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['283']++;altName=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['126'][0]++,altName)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['126'][1]++,name);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['284']++;NodeList.addMethod(altName,host[name]);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['125'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['285']++;Y.Array.each(name,function(n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['55']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['286']++;NodeList.importMethod(host,n);});}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['287']++;NodeList._getTempNode=function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['56']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['288']++;var tmp=NodeList._tempNode;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['289']++;if(!tmp){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['127'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['290']++;tmp=Y.Node.create('
');__cov_LGqepiXuzGEZpz3IhlW0rQ.s['291']++;NodeList._tempNode=tmp;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['127'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['292']++;tmp._node=node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['293']++;tmp._stateProxy=node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['294']++;return tmp;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['295']++;Y.mix(NodeList.prototype,{_invoke:function(method,args,getter){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['57']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['296']++;var ret=getter?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['128'][0]++,[]):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['128'][1]++,this);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['297']++;this.each(function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['58']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['298']++;var val=node[method].apply(node,args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['299']++;if(getter){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['129'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['300']++;ret.push(val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['129'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['301']++;return ret;},item:function(index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['59']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['302']++;return Y.one(((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['130'][0]++,this._nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['130'][1]++,[]))[index]);},each:function(fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['60']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['303']++;var instance=this;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['304']++;Y.Array.each(this._nodes,function(node,index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['61']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['305']++;node=Y.one(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['306']++;return fn.call((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['131'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['131'][1]++,node),node,index,instance);});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['307']++;return instance;},batch:function(fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['62']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['308']++;var nodelist=this;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['309']++;Y.Array.each(this._nodes,function(node,index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['63']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['310']++;var instance=Y.Node._instances.get(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['311']++;if(!instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['132'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['312']++;instance=NodeList._getTempNode(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['132'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['313']++;return fn.call((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['133'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['133'][1]++,instance),instance,index,nodelist);});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['314']++;return nodelist;},some:function(fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['64']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['315']++;var instance=this;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['316']++;return Y.Array.some(this._nodes,function(node,index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['65']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['317']++;node=Y.one(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['318']++;context=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['134'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['134'][1]++,node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['319']++;return fn.call(context,node,index,instance);});},toFrag:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['66']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['320']++;return Y.one(Y.DOM._nl2frag(this._nodes));},indexOf:function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['67']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['321']++;return Y.Array.indexOf(this._nodes,Y.Node.getDOMNode(node));},filter:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['68']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['322']++;return Y.all(Y.Selector.filter(this._nodes,selector));},modulus:function(n,r){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['69']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['323']++;r=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['135'][0]++,r)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['135'][1]++,0);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['324']++;var nodes=[];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['325']++;NodeList.each(this,function(node,i){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['70']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['326']++;if(i%n===r){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['136'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['327']++;nodes.push(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['136'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['328']++;return Y.all(nodes);},odd:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['71']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['329']++;return this.modulus(2,1);},even:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['72']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['330']++;return this.modulus(2);},destructor:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['73']++;},refresh:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['74']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['331']++;var doc,nodes=this._nodes,query=this._query,root=this._queryRoot;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['332']++;if(query){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['137'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['333']++;if(!root){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['138'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['334']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['140'][0]++,nodes)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['140'][1]++,nodes[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['140'][2]++,nodes[0].ownerDocument)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['139'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['335']++;root=nodes[0].ownerDocument;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['139'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['138'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['336']++;this._nodes=Y.Selector.query(query,root);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['137'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['337']++;return this;},size:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['75']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['338']++;return this._nodes.length;},isEmpty:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['76']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['339']++;return this._nodes.length<1;},toString:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['77']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['340']++;var str='',errorMsg=this[UID]+': not bound to any nodes',nodes=this._nodes,node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['341']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['142'][0]++,nodes)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['142'][1]++,nodes[0])){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['141'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['342']++;node=nodes[0];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['343']++;str+=node[NODE_NAME];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['344']++;if(node.id){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['143'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['345']++;str+='#'+node.id;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['143'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['346']++;if(node.className){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['144'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['347']++;str+='.'+node.className.replace(' ','.');}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['144'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['348']++;if(nodes.length>1){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['145'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['349']++;str+='...['+nodes.length+' items]';}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['145'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['141'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['350']++;return(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['146'][0]++,str)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['146'][1]++,errorMsg);},getDOMNodes:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['78']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['351']++;return this._nodes;}},true);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['352']++;NodeList.importMethod(Y.Node.prototype,['destroy','empty','remove','set']);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['353']++;NodeList.prototype.get=function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['79']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['354']++;var ret=[],nodes=this._nodes,isNodeList=false,getTemp=NodeList._getTempNode,instance,val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['355']++;if(nodes[0]){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['147'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['356']++;instance=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['148'][0]++,Y.Node._instances.get(nodes[0]))||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['148'][1]++,getTemp(nodes[0]));__cov_LGqepiXuzGEZpz3IhlW0rQ.s['357']++;val=instance._get(attr);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['358']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['150'][0]++,val)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['150'][1]++,val.nodeType)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['149'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['359']++;isNodeList=true;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['149'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['147'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['360']++;Y.Array.each(nodes,function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['80']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['361']++;instance=Y.Node._instances.get(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['362']++;if(!instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['151'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['363']++;instance=getTemp(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['151'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['364']++;val=instance._get(attr);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['365']++;if(!isNodeList){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['152'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['366']++;val=Y.Node.scrubVal(val,instance);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['152'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['367']++;ret.push(val);});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['368']++;return isNodeList?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['153'][0]++,Y.all(ret)):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['153'][1]++,ret);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['369']++;Y.NodeList=NodeList;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['370']++;Y.all=function(nodes){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['81']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['371']++;return new NodeList(nodes);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['372']++;Y.Node.all=Y.all;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['373']++;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['374']++;Y.Object.each(ArrayMethods,function(returnNodeList,name){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['82']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['375']++;Y_NodeList.prototype[name]=function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['83']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['376']++;var args=[],i=0,arg,ret;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['377']++;while(typeof(arg=arguments[i++])!='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.s['378']++;args.push((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['154'][0]++,arg._node)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['154'][1]++,arg._nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['154'][2]++,arg));}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['379']++;ret=ArrayProto[name].apply(this._nodes,args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['380']++;if(returnNodeList){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['155'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['381']++;ret=Y.all(ret);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['155'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['382']++;ret=Y.Node.scrubVal(ret);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['383']++;return ret;};});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['384']++;Y.Array.each(['removeChild','hasChildNodes','cloneNode','hasAttribute','scrollIntoView','getElementsByTagName','focus','blur','submit','reset','select','createCaption'],function(method){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['84']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['385']++;Y.Node.prototype[method]=function(arg1,arg2,arg3){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['85']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['386']++;var ret=this.invoke(method,arg1,arg2,arg3);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['387']++;return ret;};});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['388']++;Y.Node.prototype.removeAttribute=function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['86']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['389']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['390']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['156'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['391']++;node.removeAttribute(attr,0);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['156'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['392']++;return this;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['393']++;Y.Node.importMethod(Y.DOM,['contains','setAttribute','getAttribute','wrap','unwrap','generateID']);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['394']++;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={},_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]++,Y_Node._instances.has(node))&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['6'][1]++,Y_Node._instances.get(node)._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(!window.WeakMap){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['16'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['41']++;window.WeakMap=function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['7']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['42']++;this._map={};};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['43']++;window.WeakMap.prototype={has:function(k){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['8']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['44']++;return this._map[k]?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['17'][0]++,true):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['17'][1]++,false);},get:function(k){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['9']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['45']++;return this._map[k];},set:function(k,v){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['10']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['46']++;this._map[k]=v;},'delete':function(k){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['11']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['47']++;delete this._map[k];}};}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['16'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['48']++;Y_Node._instances=new WeakMap();__cov_LGqepiXuzGEZpz3IhlW0rQ.s['49']++;Y_Node.getDOMNode=function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['12']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['50']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['18'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['51']++;return node.nodeType?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['19'][0]++,node):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['19'][1]++,(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['20'][0]++,node._node)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['20'][1]++,null));}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['18'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['52']++;return null;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['53']++;Y_Node.scrubVal=function(val,node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['13']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['54']++;if(val){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['21'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['55']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['23'][0]++,typeof val=='object')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['23'][1]++,typeof val=='function')){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['22'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['56']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['25'][0]++,NODE_TYPE in val)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['25'][1]++,Y_DOM.isWindow(val))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['24'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['57']++;val=Y.one(val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['24'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['58']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['27'][0]++,val.item)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['27'][1]++,!val._nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['27'][2]++,val[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['27'][3]++,val[0][NODE_TYPE])){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['26'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['59']++;val=Y.all(val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['26'][1]++;}}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['22'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['21'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['60']++;if(typeof val==='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['28'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['61']++;val=node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['28'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['62']++;if(val===null){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['29'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['63']++;val=null;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['29'][1]++;}}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['64']++;return val;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['65']++;Y_Node.addMethod=function(name,fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['14']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['66']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['31'][0]++,name)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['31'][1]++,fn)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['31'][2]++,typeof fn=='function')){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['30'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['67']++;Y_Node.prototype[name]=function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['15']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['68']++;var args=_slice.call(arguments),node=this,ret;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['69']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['33'][0]++,args[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['33'][1]++,args[0]._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['32'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['70']++;args[0]=args[0]._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['32'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['71']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['35'][0]++,args[1])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['35'][1]++,args[1]._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['34'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['72']++;args[1]=args[1]._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['34'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['73']++;args.unshift(node._node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['74']++;ret=fn.apply((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['36'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['36'][1]++,node),args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['75']++;if(ret){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['37'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['76']++;ret=Y_Node.scrubVal(ret,node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['37'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['77']++;(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['38'][0]++,typeof ret!='undefined')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['38'][1]++,ret=node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['78']++;return ret;};}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['30'][1]++;}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['79']++;Y_Node.importMethod=function(host,name,altName){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['16']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['80']++;if(typeof name=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['39'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['81']++;altName=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['40'][0]++,altName)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['40'][1]++,name);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['82']++;Y_Node.addMethod(altName,host[name],host);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['39'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['83']++;Y.Array.each(name,function(n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['17']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['84']++;Y_Node.importMethod(host,n);});}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['85']++;Y_Node.one=function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['18']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['86']++;var instance=null,cachedNode;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['87']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['41'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['88']++;if(typeof node=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['42'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['89']++;node=Y_Node._fromString(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['90']++;if(!node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['43'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['91']++;return null;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['43'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['42'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['92']++;if(node.getDOMNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['44'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['93']++;return node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['44'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['94']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['46'][0]++,node.nodeType)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['46'][1]++,Y.DOM.isWindow(node))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['45'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['95']++;instance=Y_Node._instances.get(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['96']++;cachedNode=instance?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['47'][0]++,instance._node):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['47'][1]++,null);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['97']++;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['98']++;instance=new Y_Node(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['99']++;if(node.nodeType!=11){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['50'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['100']++;Y_Node._instances.set(node,instance);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['50'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['48'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['45'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['41'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['101']++;return instance;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['102']++;Y_Node.DEFAULT_SETTER=function(name,val){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['19']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['103']++;var node=this._stateProxy,strPath;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['104']++;if(name.indexOf(DOT)>-1){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['51'][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['51'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['108']++;if(typeof node[name]!='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['52'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['109']++;node[name]=val;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['52'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['110']++;return val;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['111']++;Y_Node.DEFAULT_GETTER=function(name){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['20']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['112']++;var node=this._stateProxy,val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['113']++;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['114']++;val=Y.Object.getValue(node,name.split(DOT));}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['53'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['115']++;if(typeof node[name]!='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['55'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['116']++;val=node[name];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['55'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['117']++;return val;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['118']++;Y.mix(Y_Node.prototype,{DATA_PREFIX:'data-',toString:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['21']++;__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['56'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['121']++;attrs=node.attributes;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['122']++;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['123']++;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['124']++;str=node[NODE_NAME];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['125']++;if(id){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['61'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['126']++;str+='#'+id;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['61'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['127']++;if(className){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['62'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['128']++;str+='.'+className.replace(' ','.');}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['62'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['129']++;str+=' '+this[UID];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['56'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['130']++;return str;},get:function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['22']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['131']++;var val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['132']++;if(this._getAttr){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['63'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['133']++;val=this._getAttr(attr);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['63'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['134']++;val=this._get(attr);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['135']++;if(val){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['64'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['136']++;val=Y_Node.scrubVal(val,this);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['64'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['137']++;if(val===null){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['65'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['138']++;val=null;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['65'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['139']++;return val;},_get:function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['23']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['140']++;var attrConfig=Y_Node.ATTRS[attr],val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['141']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['67'][0]++,attrConfig)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['67'][1]++,attrConfig.getter)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['66'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['142']++;val=attrConfig.getter.call(this);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['66'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['143']++;if(Y_Node.re_aria.test(attr)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['68'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['144']++;val=this._node.getAttribute(attr,2);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['68'][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['24']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['147']++;var attrConfig=Y_Node.ATTRS[attr];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['148']++;if(this._setAttr){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['69'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['149']++;this._setAttr.apply(this,arguments);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['69'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['150']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['71'][0]++,attrConfig)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['71'][1]++,attrConfig.setter)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['70'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['151']++;attrConfig.setter.call(this,val,attr);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['70'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['152']++;if(Y_Node.re_aria.test(attr)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['72'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['153']++;this._node.setAttribute(attr,val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['72'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['154']++;Y_Node.DEFAULT_SETTER.apply(this,arguments);}}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['155']++;return this;},setAttrs:function(attrMap){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['25']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['156']++;if(this._setAttrs){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['73'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['157']++;this._setAttrs(attrMap);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['73'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['158']++;Y.Object.each(attrMap,function(v,n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['26']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['159']++;this.set(n,v);},this);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['160']++;return this;},getAttrs:function(attrs){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['27']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['161']++;var ret={};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['162']++;if(this._getAttrs){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['74'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['163']++;this._getAttrs(attrs);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['74'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['164']++;Y.Array.each(attrs,function(v,n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['28']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['165']++;ret[v]=this.get(v);},this);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['166']++;return ret;},compareTo:function(refNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['29']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['167']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['168']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['76'][0]++,refNode)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['76'][1]++,refNode._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['75'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['169']++;refNode=refNode._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['75'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['170']++;return node===refNode;},inDoc:function(doc){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['30']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['171']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['172']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['77'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['173']++;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['174']++;if(doc.documentElement){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['80'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['175']++;return Y_DOM.contains(doc.documentElement,node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['80'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['77'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['176']++;return false;},getById:function(id){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['31']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['177']++;var node=this._node,ret=Y_DOM.byId(id,node[OWNER_DOCUMENT]);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['178']++;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['179']++;ret=Y.one(ret);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['81'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['180']++;ret=null;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['181']++;return ret;},ancestor:function(fn,testSelf,stopFn){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['32']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['182']++;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['183']++;stopFn=testSelf;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['83'][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['33']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['185']++;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['186']++;stopFn=testSelf;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['85'][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['34']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['188']++;return Y.one(Y_DOM.elementByAxis(this._node,'previousSibling',_wrapFn(fn),all));},next:function(fn,all){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['35']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['189']++;return Y.one(Y_DOM.elementByAxis(this._node,'nextSibling',_wrapFn(fn),all));},siblings:function(fn){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['36']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['190']++;return Y.all(Y_DOM.siblings(this._node,_wrapFn(fn)));},one:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['37']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['191']++;return Y.one(Y.Selector.query(selector,this._node,true));},all:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['38']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['192']++;var nodelist;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['193']++;if(this._node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['87'][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['87'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['197']++;return(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['88'][0]++,nodelist)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['88'][1]++,Y.all([]));},test:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['39']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['198']++;return Y.Selector.test(this._node,selector);},remove:function(destroy){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['40']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['199']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['200']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['90'][0]++,node)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['90'][1]++,node.parentNode)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['89'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['201']++;node.parentNode.removeChild(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['89'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['202']++;if(destroy){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['91'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['203']++;this.destroy();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['91'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['204']++;return this;},replace:function(newNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['41']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['205']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['206']++;if(typeof newNode=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['92'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['207']++;newNode=Y_Node.create(newNode);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['92'][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['42']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['210']++;if(typeof node=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['93'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['211']++;node=Y_DOM.create(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['93'][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['43']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['213']++;var UID=Y.config.doc.uniqueID?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['94'][0]++,'uniqueID'):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['94'][1]++,'_yuid'),instance;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['214']++;this.purge();__cov_LGqepiXuzGEZpz3IhlW0rQ.s['215']++;if(this.unplug){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['95'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['216']++;this.unplug();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['95'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['217']++;this.clearData();__cov_LGqepiXuzGEZpz3IhlW0rQ.s['218']++;if(recursive){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['96'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['219']++;Y.NodeList.each(this.all('*'),function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['44']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['220']++;instance=Y_Node._instances.get(node._node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['221']++;if(instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['97'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['222']++;instance.destroy();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['97'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['223']++;Y.Event.purgeElement(node);}});}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['96'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['224']++;Y_Node._instances.delete(this._node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['225']++;this._node=null;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['226']++;this._stateProxy=null;},invoke:function(method,a,b,c,d,e){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['45']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['227']++;var node=this._node,ret;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['228']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['99'][0]++,a)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['99'][1]++,a._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['98'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['229']++;a=a._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['98'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['230']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['101'][0]++,b)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['101'][1]++,b._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['100'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['231']++;b=b._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['100'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['232']++;ret=node[method](a,b,c,d,e);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['233']++;return Y_Node.scrubVal(ret,this);},swap:Y.config.doc.documentElement.swapNode?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['102'][0]++,function(otherNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['46']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['234']++;this._node.swapNode(Y_Node.getDOMNode(otherNode));}):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['102'][1]++,function(otherNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['47']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['235']++;otherNode=Y_Node.getDOMNode(otherNode);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['236']++;var node=this._node,parent=otherNode.parentNode,nextSibling=otherNode.nextSibling;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['237']++;if(nextSibling===node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['103'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['238']++;parent.insertBefore(node,otherNode);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['103'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['239']++;if(otherNode===node.nextSibling){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['104'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['240']++;parent.insertBefore(otherNode,node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['104'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['241']++;node.parentNode.replaceChild(otherNode,node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['242']++;Y_DOM.addHTML(parent,node,nextSibling);}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['243']++;return this;}),hasMethod:function(method){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['48']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['244']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['245']++;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['49']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['246']++;return this.get('nodeType')===11;},empty:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['50']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['247']++;this.get('childNodes').remove().destroy(true);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['248']++;return this;},getDOMNode:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['51']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['249']++;return this._node;}},true);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['250']++;Y.Node=Y_Node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['251']++;Y.one=Y_Node.one;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['252']++;var NodeList=function(nodes){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['52']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['253']++;var tmp=[];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['254']++;if(nodes){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['106'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['255']++;if(typeof nodes==='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['107'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['256']++;this._query=nodes;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['257']++;nodes=Y.Selector.query(nodes);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['107'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['258']++;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['259']++;nodes=[nodes];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['108'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['260']++;if(nodes._node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['110'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['261']++;nodes=[nodes._node];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['110'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['262']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['112'][0]++,nodes[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['112'][1]++,nodes[0]._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['111'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['263']++;Y.Array.each(nodes,function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['53']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['264']++;if(node._node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['113'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['265']++;tmp.push(node._node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['113'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['266']++;nodes=tmp;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['111'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['267']++;nodes=Y.Array(nodes,0,true);}}}}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['106'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['268']++;this._nodes=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['114'][0]++,nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['114'][1]++,[]);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['269']++;NodeList.NAME='NodeList';__cov_LGqepiXuzGEZpz3IhlW0rQ.s['270']++;NodeList.getDOMNodes=function(nodelist){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['54']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['271']++;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['272']++;NodeList.each=function(instance,fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['55']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['273']++;var nodes=instance._nodes;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['274']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['118'][0]++,nodes)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['118'][1]++,nodes.length)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['117'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['275']++;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['276']++;NodeList.addMethod=function(name,fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['56']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['277']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['121'][0]++,name)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['121'][1]++,fn)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['120'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['278']++;NodeList.prototype[name]=function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['57']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['279']++;var ret=[],args=arguments;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['280']++;Y.Array.each(this._nodes,function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['58']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['281']++;var instance=Y.Node._instances.get(node),ctx,result;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['282']++;if(!instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['122'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['283']++;instance=NodeList._getTempNode(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['122'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['284']++;ctx=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['123'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['123'][1]++,instance);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['285']++;result=fn.apply(ctx,args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['286']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['125'][0]++,result!==undefined)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['125'][1]++,result!==instance)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['124'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['287']++;ret[ret.length]=result;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['124'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['288']++;return ret.length?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['126'][0]++,ret):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['126'][1]++,this);};}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['120'][1]++;}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['289']++;NodeList.importMethod=function(host,name,altName){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['59']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['290']++;if(typeof name==='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['127'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['291']++;altName=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['128'][0]++,altName)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['128'][1]++,name);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['292']++;NodeList.addMethod(altName,host[name]);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['127'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['293']++;Y.Array.each(name,function(n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['60']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['294']++;NodeList.importMethod(host,n);});}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['295']++;NodeList._getTempNode=function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['61']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['296']++;var tmp=NodeList._tempNode;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['297']++;if(!tmp){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['129'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['298']++;tmp=Y.Node.create('
');__cov_LGqepiXuzGEZpz3IhlW0rQ.s['299']++;NodeList._tempNode=tmp;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['129'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['300']++;tmp._node=node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['301']++;tmp._stateProxy=node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['302']++;return tmp;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['303']++;Y.mix(NodeList.prototype,{_invoke:function(method,args,getter){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['62']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['304']++;var ret=getter?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['130'][0]++,[]):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['130'][1]++,this);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['305']++;this.each(function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['63']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['306']++;var val=node[method].apply(node,args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['307']++;if(getter){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['131'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['308']++;ret.push(val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['131'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['309']++;return ret;},item:function(index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['64']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['310']++;return Y.one(((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['132'][0]++,this._nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['132'][1]++,[]))[index]);},each:function(fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['65']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['311']++;var instance=this;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['312']++;Y.Array.each(this._nodes,function(node,index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['66']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['313']++;node=Y.one(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['314']++;return fn.call((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['133'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['133'][1]++,node),node,index,instance);});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['315']++;return instance;},batch:function(fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['67']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['316']++;var nodelist=this;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['317']++;Y.Array.each(this._nodes,function(node,index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['68']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['318']++;var instance=Y.Node._instances.get(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['319']++;if(!instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['134'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['320']++;instance=NodeList._getTempNode(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['134'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['321']++;return fn.call((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['135'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['135'][1]++,instance),instance,index,nodelist);});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['322']++;return nodelist;},some:function(fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['69']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['323']++;var instance=this;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['324']++;return Y.Array.some(this._nodes,function(node,index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['70']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['325']++;node=Y.one(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['326']++;context=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['136'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['136'][1]++,node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['327']++;return fn.call(context,node,index,instance);});},toFrag:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['71']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['328']++;return Y.one(Y.DOM._nl2frag(this._nodes));},indexOf:function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['72']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['329']++;return Y.Array.indexOf(this._nodes,Y.Node.getDOMNode(node));},filter:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['73']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['330']++;return Y.all(Y.Selector.filter(this._nodes,selector));},modulus:function(n,r){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['74']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['331']++;r=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['137'][0]++,r)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['137'][1]++,0);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['332']++;var nodes=[];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['333']++;NodeList.each(this,function(node,i){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['75']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['334']++;if(i%n===r){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['138'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['335']++;nodes.push(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['138'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['336']++;return Y.all(nodes);},odd:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['76']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['337']++;return this.modulus(2,1);},even:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['77']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['338']++;return this.modulus(2);},destructor:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['78']++;},refresh:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['79']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['339']++;var doc,nodes=this._nodes,query=this._query,root=this._queryRoot;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['340']++;if(query){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['139'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['341']++;if(!root){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['140'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['342']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['142'][0]++,nodes)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['142'][1]++,nodes[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['142'][2]++,nodes[0].ownerDocument)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['141'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['343']++;root=nodes[0].ownerDocument;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['141'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['140'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['344']++;this._nodes=Y.Selector.query(query,root);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['139'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['345']++;return this;},size:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['80']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['346']++;return this._nodes.length;},isEmpty:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['81']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['347']++;return this._nodes.length<1;},toString:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['82']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['348']++;var str='',errorMsg=this[UID]+': not bound to any nodes',nodes=this._nodes,node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['349']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['144'][0]++,nodes)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['144'][1]++,nodes[0])){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['143'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['350']++;node=nodes[0];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['351']++;str+=node[NODE_NAME];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['352']++;if(node.id){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['145'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['353']++;str+='#'+node.id;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['145'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['354']++;if(node.className){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['146'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['355']++;str+='.'+node.className.replace(' ','.');}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['146'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['356']++;if(nodes.length>1){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['147'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['357']++;str+='...['+nodes.length+' items]';}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['147'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['143'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['358']++;return(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['148'][0]++,str)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['148'][1]++,errorMsg);},getDOMNodes:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['83']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['359']++;return this._nodes;}},true);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['360']++;NodeList.importMethod(Y.Node.prototype,['destroy','empty','remove','set']);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['361']++;NodeList.prototype.get=function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['84']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['362']++;var ret=[],nodes=this._nodes,isNodeList=false,getTemp=NodeList._getTempNode,instance,val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['363']++;if(nodes[0]){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['149'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['364']++;instance=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['150'][0]++,Y.Node._instances.get(nodes[0]))||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['150'][1]++,getTemp(nodes[0]));__cov_LGqepiXuzGEZpz3IhlW0rQ.s['365']++;val=instance._get(attr);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['366']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['152'][0]++,val)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['152'][1]++,val.nodeType)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['151'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['367']++;isNodeList=true;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['151'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['149'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['368']++;Y.Array.each(nodes,function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['85']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['369']++;instance=Y.Node._instances.get(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['370']++;if(!instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['153'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['371']++;instance=getTemp(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['153'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['372']++;val=instance._get(attr);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['373']++;if(!isNodeList){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['154'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['374']++;val=Y.Node.scrubVal(val,instance);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['154'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['375']++;ret.push(val);});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['376']++;return isNodeList?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['155'][0]++,Y.all(ret)):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['155'][1]++,ret);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['377']++;Y.NodeList=NodeList;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['378']++;Y.all=function(nodes){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['86']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['379']++;return new NodeList(nodes);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['380']++;Y.Node.all=Y.all;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['381']++;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['382']++;Y.Object.each(ArrayMethods,function(returnNodeList,name){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['87']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['383']++;Y_NodeList.prototype[name]=function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['88']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['384']++;var args=[],i=0,arg,ret;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['385']++;while(typeof(arg=arguments[i++])!='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.s['386']++;args.push((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['156'][0]++,arg._node)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['156'][1]++,arg._nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['156'][2]++,arg));}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['387']++;ret=ArrayProto[name].apply(this._nodes,args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['388']++;if(returnNodeList){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['157'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['389']++;ret=Y.all(ret);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['157'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['390']++;ret=Y.Node.scrubVal(ret);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['391']++;return ret;};});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['392']++;Y.Array.each(['removeChild','hasChildNodes','cloneNode','hasAttribute','scrollIntoView','getElementsByTagName','focus','blur','submit','reset','select','createCaption'],function(method){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['89']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['393']++;Y.Node.prototype[method]=function(arg1,arg2,arg3){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['90']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['394']++;var ret=this.invoke(method,arg1,arg2,arg3);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['395']++;return ret;};});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['396']++;Y.Node.prototype.removeAttribute=function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['91']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['397']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['398']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['158'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['399']++;node.removeAttribute(attr,0);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['158'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['400']++;return this;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['401']++;Y.Node.importMethod(Y.DOM,['contains','setAttribute','getAttribute','wrap','unwrap','generateID']);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['402']++;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 0bd59af4f93..dd19ed23c51 100644 --- a/build/node-core/node-core-debug.js +++ b/build/node-core/node-core-debug.js @@ -124,6 +124,27 @@ Y_Node.re_aria = /^(?:role$|aria-)/; Y_Node.SHOW_TRANSITION = 'fadeIn'; Y_Node.HIDE_TRANSITION = 'fadeOut'; +if (!window.WeakMap) +{ + window.WeakMap = function() { + this._map = {}; + }; + window.WeakMap.prototype = { + has: function(k) { + return this._map[k] ? true : false; + }, + get: function(k) { + return this._map[k]; + }, + set: function(k,v) { + this._map[k] = v; + }, + 'delete': function(k) { + delete this._map[k]; + } + }; +} + /** * A list of Node instances that have been created * @private diff --git a/build/node-core/node-core-min.js b/build/node-core/node-core-min.js index 8aa728ecdca..3e1cd378396 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];c._instances.has(t)&&c._instances.get(t)._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=new WeakMap,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;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)){n=c._instances.get(t),r=n?n._node:null;if(!n||r&&t!==r)n=new c(t),t.nodeType!=11&&c._instances.set(t,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.get(t._node),r?r.destroy():e.Event.purgeElement(t)}),c._instances.delete(this._node),this._node=null,this._stateProxy=null},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=e.Node._instances.get(s),u,a;o||(o=p._getTempNode(s)),u=r||o,a=n.apply(u,i),a!==undefined&&a!==o&&(t[t.length]=a)}),t.length?t:this})},p.importMethod=function(t,n,r){typeof n=="string"?(r=r||n,p.addMethod(r,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.get(i);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.get(r[0])||s(r[0]),u=o._get(t),u&&u.nodeType&&(i=!0)),e.Array.each(r,function(r){o=e.Node._instances.get(r),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=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];c._instances.has(t)&&c._instances.get(t)._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",window.WeakMap||(window.WeakMap=function(){this._map={}},window.WeakMap.prototype={has:function(e){return this._map[e]?!0:!1},get:function(e){return this._map[e]},set:function(e,t){this._map[e]=t},"delete":function(e){delete this._map[e]}}),c._instances=new WeakMap,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;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)){n=c._instances.get(t),r=n?n._node:null;if(!n||r&&t!==r)n=new c(t),t.nodeType!=11&&c._instances.set(t,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.get(t._node),r?r.destroy():e.Event.purgeElement(t)}),c._instances.delete(this._node),this._node=null,this._stateProxy=null},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=e.Node._instances.get(s),u,a;o||(o=p._getTempNode(s)),u=r||o,a=n.apply(u,i),a!==undefined&&a!==o&&(t[t.length]=a)}),t.length?t:this})},p.importMethod=function(t,n,r){typeof n=="string"?(r=r||n,p.addMethod(r,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.get(i);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.get(r[0])||s(r[0]),u=o._get(t),u&&u.nodeType&&(i=!0)),e.Array.each(r,function(r){o=e.Node._instances.get(r),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"]}); diff --git a/build/node-core/node-core.js b/build/node-core/node-core.js index f00949acdfe..bab3cc5e11b 100644 --- a/build/node-core/node-core.js +++ b/build/node-core/node-core.js @@ -124,6 +124,27 @@ Y_Node.re_aria = /^(?:role$|aria-)/; Y_Node.SHOW_TRANSITION = 'fadeIn'; Y_Node.HIDE_TRANSITION = 'fadeOut'; +if (!window.WeakMap) +{ + window.WeakMap = function() { + this._map = {}; + }; + window.WeakMap.prototype = { + has: function(k) { + return this._map[k] ? true : false; + }, + get: function(k) { + return this._map[k]; + }, + set: function(k,v) { + this._map[k] = v; + }, + 'delete': function(k) { + delete this._map[k]; + } + }; +} + /** * A list of Node instances that have been created * @private diff --git a/build/view-node-map/view-node-map-coverage.js b/build/view-node-map/view-node-map-coverage.js index f08a372fb90..6a475b1f139 100644 --- a/build/view-node-map/view-node-map-coverage.js +++ b/build/view-node-map/view-node-map-coverage.js @@ -1,6 +1,6 @@ if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/view-node-map/view-node-map.js']) { - __coverage__['build/view-node-map/view-node-map.js'] = {"path":"build/view-node-map/view-node-map.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},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":25},"end":{"line":1,"column":44}}},"2":{"name":"NodeMap","line":29,"loc":{"start":{"line":29,"column":0},"end":{"line":29,"column":19}}},"3":{"name":"(anonymous_3)","line":54,"loc":{"start":{"line":54,"column":20},"end":{"line":54,"column":36}}},"4":{"name":"(anonymous_4)","line":57,"loc":{"start":{"line":57,"column":25},"end":{"line":57,"column":45}}},"5":{"name":"(anonymous_5)","line":68,"loc":{"start":{"line":68,"column":17},"end":{"line":68,"column":29}}},"6":{"name":"(anonymous_6)","line":72,"loc":{"start":{"line":72,"column":16},"end":{"line":72,"column":28}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":84,"column":40}},"2":{"start":{"line":13,"column":0},"end":{"line":14,"column":19}},"3":{"start":{"line":29,"column":0},"end":{"line":29,"column":21}},"4":{"start":{"line":34,"column":0},"end":{"line":34,"column":50}},"5":{"start":{"line":35,"column":0},"end":{"line":35,"column":38}},"6":{"start":{"line":54,"column":0},"end":{"line":62,"column":2}},"7":{"start":{"line":55,"column":4},"end":{"line":55,"column":13}},"8":{"start":{"line":57,"column":4},"end":{"line":59,"column":13}},"9":{"start":{"line":58,"column":8},"end":{"line":58,"column":68}},"10":{"start":{"line":61,"column":4},"end":{"line":61,"column":24}},"11":{"start":{"line":65,"column":0},"end":{"line":65,"column":31}},"12":{"start":{"line":67,"column":0},"end":{"line":79,"column":2}},"13":{"start":{"line":69,"column":8},"end":{"line":69,"column":57}},"14":{"start":{"line":73,"column":8},"end":{"line":73,"column":57}},"15":{"start":{"line":75,"column":8},"end":{"line":77,"column":9}},"16":{"start":{"line":76,"column":12},"end":{"line":76,"column":36}},"17":{"start":{"line":81,"column":0},"end":{"line":81,"column":25}}},"branchMap":{"1":{"line":34,"type":"binary-expr","locations":[{"start":{"line":34,"column":0},"end":{"line":34,"column":19}},{"start":{"line":34,"column":24},"end":{"line":34,"column":48}}]},"2":{"line":58,"type":"binary-expr","locations":[{"start":{"line":58,"column":16},"end":{"line":58,"column":57}},{"start":{"line":58,"column":62},"end":{"line":58,"column":67}}]},"3":{"line":61,"type":"binary-expr","locations":[{"start":{"line":61,"column":11},"end":{"line":61,"column":15}},{"start":{"line":61,"column":19},"end":{"line":61,"column":23}}]},"4":{"line":75,"type":"if","locations":[{"start":{"line":75,"column":8},"end":{"line":75,"column":8}},{"start":{"line":75,"column":8},"end":{"line":75,"column":8}}]}},"code":["(function () { YUI.add('view-node-map', function (Y, NAME) {","","/**","View extension that adds a static `getByNode()` method that returns the nearest","View instance associated with the given Node (similar to Widget's `getByNode()`","method).","","@module app","@submodule view-node-map","@since 3.5.0","**/","","var buildCfg = Y.namespace('View._buildCfg'),"," instances = {};","","/**","View extension that adds a static `getByNode()` method that returns the nearest","View instance associated with the given Node (similar to Widget's `getByNode()`","method).","","Note that it's important to call `destroy()` on a View instance using this","extension when you plan to stop using it. This ensures that all internal","references to that View are cleared to prevent memory leaks.","","@class View.NodeMap","@extensionfor View","@since 3.5.0","**/","function NodeMap() {}","","// Tells Base.create() to mix the static getByNode method into built classes.","// We're cheating and modifying Y.View here, because right now there's no better","// way to do it.","buildCfg.aggregates || (buildCfg.aggregates = []);","buildCfg.aggregates.push('getByNode');","","/**","Returns the nearest View instance associated with the given Node. The Node may","be a View container or any child of a View container.","","Note that only instances of Views that have the Y.View.NodeMap extension mixed","in will be returned. The base View class doesn't provide this functionality by","default due to the additional memory management overhead involved in maintaining","a mapping of Nodes to View instances.","","@method getByNode","@param {Node|HTMLElement|String} node Node instance, selector string, or"," HTMLElement.","@return {View} Closest View instance associated with the given Node, or `null`"," if no associated View instance was found.","@static","@since 3.5.0","**/","NodeMap.getByNode = function (node) {"," var view;",""," Y.one(node).ancestor(function (ancestor) {"," return (view = instances[Y.stamp(ancestor, true)]) || false;"," }, true);",""," return view || null;","};","","// To make this testable.","NodeMap._instances = instances;","","NodeMap.prototype = {"," initializer: function () {"," instances[Y.stamp(this.get('container'))] = this;"," },",""," destructor: function () {"," var stamp = Y.stamp(this.get('container'), true);",""," if (stamp in instances) {"," delete instances[stamp];"," }"," }","};","","Y.View.NodeMap = NodeMap;","","","}, '@VERSION@', {\"requires\": [\"view\"]});","","}());"]}; + __coverage__['build/view-node-map/view-node-map.js'] = {"path":"build/view-node-map/view-node-map.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},"b":{"1":[0,0],"2":[0,0],"3":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":25},"end":{"line":1,"column":44}}},"2":{"name":"NodeMap","line":29,"loc":{"start":{"line":29,"column":0},"end":{"line":29,"column":19}}},"3":{"name":"(anonymous_3)","line":54,"loc":{"start":{"line":54,"column":20},"end":{"line":54,"column":36}}},"4":{"name":"(anonymous_4)","line":57,"loc":{"start":{"line":57,"column":25},"end":{"line":57,"column":45}}},"5":{"name":"(anonymous_5)","line":68,"loc":{"start":{"line":68,"column":17},"end":{"line":68,"column":29}}},"6":{"name":"(anonymous_6)","line":72,"loc":{"start":{"line":72,"column":16},"end":{"line":72,"column":28}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":80,"column":40}},"2":{"start":{"line":13,"column":0},"end":{"line":14,"column":30}},"3":{"start":{"line":29,"column":0},"end":{"line":29,"column":21}},"4":{"start":{"line":34,"column":0},"end":{"line":34,"column":50}},"5":{"start":{"line":35,"column":0},"end":{"line":35,"column":38}},"6":{"start":{"line":54,"column":0},"end":{"line":62,"column":2}},"7":{"start":{"line":55,"column":4},"end":{"line":55,"column":13}},"8":{"start":{"line":57,"column":4},"end":{"line":59,"column":13}},"9":{"start":{"line":58,"column":8},"end":{"line":58,"column":57}},"10":{"start":{"line":61,"column":4},"end":{"line":61,"column":24}},"11":{"start":{"line":65,"column":0},"end":{"line":65,"column":31}},"12":{"start":{"line":67,"column":0},"end":{"line":75,"column":2}},"13":{"start":{"line":69,"column":8},"end":{"line":69,"column":51}},"14":{"start":{"line":73,"column":8},"end":{"line":73,"column":48}},"15":{"start":{"line":77,"column":0},"end":{"line":77,"column":25}}},"branchMap":{"1":{"line":34,"type":"binary-expr","locations":[{"start":{"line":34,"column":0},"end":{"line":34,"column":19}},{"start":{"line":34,"column":24},"end":{"line":34,"column":48}}]},"2":{"line":58,"type":"binary-expr","locations":[{"start":{"line":58,"column":16},"end":{"line":58,"column":46}},{"start":{"line":58,"column":51},"end":{"line":58,"column":56}}]},"3":{"line":61,"type":"binary-expr","locations":[{"start":{"line":61,"column":11},"end":{"line":61,"column":15}},{"start":{"line":61,"column":19},"end":{"line":61,"column":23}}]}},"code":["(function () { YUI.add('view-node-map', function (Y, NAME) {","","/**","View extension that adds a static `getByNode()` method that returns the nearest","View instance associated with the given Node (similar to Widget's `getByNode()`","method).","","@module app","@submodule view-node-map","@since 3.5.0","**/","","var buildCfg = Y.namespace('View._buildCfg'),"," instances = new WeakMap();","","/**","View extension that adds a static `getByNode()` method that returns the nearest","View instance associated with the given Node (similar to Widget's `getByNode()`","method).","","Note that it's important to call `destroy()` on a View instance using this","extension when you plan to stop using it. This ensures that all internal","references to that View are cleared to prevent memory leaks.","","@class View.NodeMap","@extensionfor View","@since 3.5.0","**/","function NodeMap() {}","","// Tells Base.create() to mix the static getByNode method into built classes.","// We're cheating and modifying Y.View here, because right now there's no better","// way to do it.","buildCfg.aggregates || (buildCfg.aggregates = []);","buildCfg.aggregates.push('getByNode');","","/**","Returns the nearest View instance associated with the given Node. The Node may","be a View container or any child of a View container.","","Note that only instances of Views that have the Y.View.NodeMap extension mixed","in will be returned. The base View class doesn't provide this functionality by","default due to the additional memory management overhead involved in maintaining","a mapping of Nodes to View instances.","","@method getByNode","@param {Node|HTMLElement|String} node Node instance, selector string, or"," HTMLElement.","@return {View} Closest View instance associated with the given Node, or `null`"," if no associated View instance was found.","@static","@since 3.5.0","**/","NodeMap.getByNode = function (node) {"," var view;",""," Y.one(node).ancestor(function (ancestor) {"," return (view = instances.get(ancestor)) || false;"," }, true);",""," return view || null;","};","","// To make this testable.","NodeMap._instances = instances;","","NodeMap.prototype = {"," initializer: function () {"," instances.set(this.get('container'), this);"," },",""," destructor: function () {"," instances.delete(this.get('container'));"," }","};","","Y.View.NodeMap = NodeMap;","","","}, '@VERSION@', {\"requires\": [\"view\"]});","","}());"]}; } var __cov_dcBad38U5f4bqwU1QIM7dA = __coverage__['build/view-node-map/view-node-map.js']; -__cov_dcBad38U5f4bqwU1QIM7dA.s['1']++;YUI.add('view-node-map',function(Y,NAME){__cov_dcBad38U5f4bqwU1QIM7dA.f['1']++;__cov_dcBad38U5f4bqwU1QIM7dA.s['2']++;var buildCfg=Y.namespace('View._buildCfg'),instances={};__cov_dcBad38U5f4bqwU1QIM7dA.s['3']++;function NodeMap(){__cov_dcBad38U5f4bqwU1QIM7dA.f['2']++;}__cov_dcBad38U5f4bqwU1QIM7dA.s['4']++;(__cov_dcBad38U5f4bqwU1QIM7dA.b['1'][0]++,buildCfg.aggregates)||(__cov_dcBad38U5f4bqwU1QIM7dA.b['1'][1]++,buildCfg.aggregates=[]);__cov_dcBad38U5f4bqwU1QIM7dA.s['5']++;buildCfg.aggregates.push('getByNode');__cov_dcBad38U5f4bqwU1QIM7dA.s['6']++;NodeMap.getByNode=function(node){__cov_dcBad38U5f4bqwU1QIM7dA.f['3']++;__cov_dcBad38U5f4bqwU1QIM7dA.s['7']++;var view;__cov_dcBad38U5f4bqwU1QIM7dA.s['8']++;Y.one(node).ancestor(function(ancestor){__cov_dcBad38U5f4bqwU1QIM7dA.f['4']++;__cov_dcBad38U5f4bqwU1QIM7dA.s['9']++;return(__cov_dcBad38U5f4bqwU1QIM7dA.b['2'][0]++,view=instances[Y.stamp(ancestor,true)])||(__cov_dcBad38U5f4bqwU1QIM7dA.b['2'][1]++,false);},true);__cov_dcBad38U5f4bqwU1QIM7dA.s['10']++;return(__cov_dcBad38U5f4bqwU1QIM7dA.b['3'][0]++,view)||(__cov_dcBad38U5f4bqwU1QIM7dA.b['3'][1]++,null);};__cov_dcBad38U5f4bqwU1QIM7dA.s['11']++;NodeMap._instances=instances;__cov_dcBad38U5f4bqwU1QIM7dA.s['12']++;NodeMap.prototype={initializer:function(){__cov_dcBad38U5f4bqwU1QIM7dA.f['5']++;__cov_dcBad38U5f4bqwU1QIM7dA.s['13']++;instances[Y.stamp(this.get('container'))]=this;},destructor:function(){__cov_dcBad38U5f4bqwU1QIM7dA.f['6']++;__cov_dcBad38U5f4bqwU1QIM7dA.s['14']++;var stamp=Y.stamp(this.get('container'),true);__cov_dcBad38U5f4bqwU1QIM7dA.s['15']++;if(stamp in instances){__cov_dcBad38U5f4bqwU1QIM7dA.b['4'][0]++;__cov_dcBad38U5f4bqwU1QIM7dA.s['16']++;delete instances[stamp];}else{__cov_dcBad38U5f4bqwU1QIM7dA.b['4'][1]++;}}};__cov_dcBad38U5f4bqwU1QIM7dA.s['17']++;Y.View.NodeMap=NodeMap;},'@VERSION@',{'requires':['view']}); +__cov_dcBad38U5f4bqwU1QIM7dA.s['1']++;YUI.add('view-node-map',function(Y,NAME){__cov_dcBad38U5f4bqwU1QIM7dA.f['1']++;__cov_dcBad38U5f4bqwU1QIM7dA.s['2']++;var buildCfg=Y.namespace('View._buildCfg'),instances=new WeakMap();__cov_dcBad38U5f4bqwU1QIM7dA.s['3']++;function NodeMap(){__cov_dcBad38U5f4bqwU1QIM7dA.f['2']++;}__cov_dcBad38U5f4bqwU1QIM7dA.s['4']++;(__cov_dcBad38U5f4bqwU1QIM7dA.b['1'][0]++,buildCfg.aggregates)||(__cov_dcBad38U5f4bqwU1QIM7dA.b['1'][1]++,buildCfg.aggregates=[]);__cov_dcBad38U5f4bqwU1QIM7dA.s['5']++;buildCfg.aggregates.push('getByNode');__cov_dcBad38U5f4bqwU1QIM7dA.s['6']++;NodeMap.getByNode=function(node){__cov_dcBad38U5f4bqwU1QIM7dA.f['3']++;__cov_dcBad38U5f4bqwU1QIM7dA.s['7']++;var view;__cov_dcBad38U5f4bqwU1QIM7dA.s['8']++;Y.one(node).ancestor(function(ancestor){__cov_dcBad38U5f4bqwU1QIM7dA.f['4']++;__cov_dcBad38U5f4bqwU1QIM7dA.s['9']++;return(__cov_dcBad38U5f4bqwU1QIM7dA.b['2'][0]++,view=instances.get(ancestor))||(__cov_dcBad38U5f4bqwU1QIM7dA.b['2'][1]++,false);},true);__cov_dcBad38U5f4bqwU1QIM7dA.s['10']++;return(__cov_dcBad38U5f4bqwU1QIM7dA.b['3'][0]++,view)||(__cov_dcBad38U5f4bqwU1QIM7dA.b['3'][1]++,null);};__cov_dcBad38U5f4bqwU1QIM7dA.s['11']++;NodeMap._instances=instances;__cov_dcBad38U5f4bqwU1QIM7dA.s['12']++;NodeMap.prototype={initializer:function(){__cov_dcBad38U5f4bqwU1QIM7dA.f['5']++;__cov_dcBad38U5f4bqwU1QIM7dA.s['13']++;instances.set(this.get('container'),this);},destructor:function(){__cov_dcBad38U5f4bqwU1QIM7dA.f['6']++;__cov_dcBad38U5f4bqwU1QIM7dA.s['14']++;instances.delete(this.get('container'));}};__cov_dcBad38U5f4bqwU1QIM7dA.s['15']++;Y.View.NodeMap=NodeMap;},'@VERSION@',{'requires':['view']}); diff --git a/build/view-node-map/view-node-map-debug.js b/build/view-node-map/view-node-map-debug.js index dde23377bfa..bc25533313b 100644 --- a/build/view-node-map/view-node-map-debug.js +++ b/build/view-node-map/view-node-map-debug.js @@ -11,7 +11,7 @@ method). **/ var buildCfg = Y.namespace('View._buildCfg'), - instances = {}; + instances = new WeakMap(); /** View extension that adds a static `getByNode()` method that returns the nearest @@ -55,7 +55,7 @@ NodeMap.getByNode = function (node) { var view; Y.one(node).ancestor(function (ancestor) { - return (view = instances[Y.stamp(ancestor, true)]) || false; + return (view = instances.get(ancestor)) || false; }, true); return view || null; @@ -66,15 +66,11 @@ NodeMap._instances = instances; NodeMap.prototype = { initializer: function () { - instances[Y.stamp(this.get('container'))] = this; + instances.set(this.get('container'), this); }, destructor: function () { - var stamp = Y.stamp(this.get('container'), true); - - if (stamp in instances) { - delete instances[stamp]; - } + instances.delete(this.get('container')); } }; diff --git a/build/view-node-map/view-node-map-min.js b/build/view-node-map/view-node-map-min.js index 1f0f3247d0c..bea30917538 100644 --- a/build/view-node-map/view-node-map-min.js +++ b/build/view-node-map/view-node-map-min.js @@ -1 +1 @@ -YUI.add("view-node-map",function(e,t){function i(){}var n=e.namespace("View._buildCfg"),r={};n.aggregates||(n.aggregates=[]),n.aggregates.push("getByNode"),i.getByNode=function(t){var n;return e.one(t).ancestor(function(t){return(n=r[e.stamp(t,!0)])||!1},!0),n||null},i._instances=r,i.prototype={initializer:function(){r[e.stamp(this.get("container"))]=this},destructor:function(){var t=e.stamp(this.get("container"),!0);t in r&&delete r[t]}},e.View.NodeMap=i},"@VERSION@",{requires:["view"]}); +YUI.add("view-node-map",function(e,t){function i(){}var n=e.namespace("View._buildCfg"),r=new WeakMap;n.aggregates||(n.aggregates=[]),n.aggregates.push("getByNode"),i.getByNode=function(t){var n;return e.one(t).ancestor(function(e){return(n=r.get(e))||!1},!0),n||null},i._instances=r,i.prototype={initializer:function(){r.set(this.get("container"),this)},destructor:function(){r.delete(this.get("container"))}},e.View.NodeMap=i},"@VERSION@",{requires:["view"]}); diff --git a/build/view-node-map/view-node-map.js b/build/view-node-map/view-node-map.js index dde23377bfa..bc25533313b 100644 --- a/build/view-node-map/view-node-map.js +++ b/build/view-node-map/view-node-map.js @@ -11,7 +11,7 @@ method). **/ var buildCfg = Y.namespace('View._buildCfg'), - instances = {}; + instances = new WeakMap(); /** View extension that adds a static `getByNode()` method that returns the nearest @@ -55,7 +55,7 @@ NodeMap.getByNode = function (node) { var view; Y.one(node).ancestor(function (ancestor) { - return (view = instances[Y.stamp(ancestor, true)]) || false; + return (view = instances.get(ancestor)) || false; }, true); return view || null; @@ -66,15 +66,11 @@ NodeMap._instances = instances; NodeMap.prototype = { initializer: function () { - instances[Y.stamp(this.get('container'))] = this; + instances.set(this.get('container'), this); }, destructor: function () { - var stamp = Y.stamp(this.get('container'), true); - - if (stamp in instances) { - delete instances[stamp]; - } + instances.delete(this.get('container')); } }; diff --git a/src/app/js/view-extensions/view-node-map.js b/src/app/js/view-extensions/view-node-map.js index 1c5759c0329..02deb679bba 100644 --- a/src/app/js/view-extensions/view-node-map.js +++ b/src/app/js/view-extensions/view-node-map.js @@ -9,7 +9,7 @@ method). **/ var buildCfg = Y.namespace('View._buildCfg'), - instances = {}; + instances = new WeakMap(); /** View extension that adds a static `getByNode()` method that returns the nearest @@ -53,7 +53,7 @@ NodeMap.getByNode = function (node) { var view; Y.one(node).ancestor(function (ancestor) { - return (view = instances[Y.stamp(ancestor, true)]) || false; + return (view = instances.get(ancestor)) || false; }, true); return view || null; @@ -64,15 +64,11 @@ NodeMap._instances = instances; NodeMap.prototype = { initializer: function () { - instances[Y.stamp(this.get('container'))] = this; + instances.set(this.get('container'), this); }, destructor: function () { - var stamp = Y.stamp(this.get('container'), true); - - if (stamp in instances) { - delete instances[stamp]; - } + instances.delete(this.get('container')); } }; diff --git a/src/node/js/node-core.js b/src/node/js/node-core.js index b34eb51a40d..0ed2d76a94c 100644 --- a/src/node/js/node-core.js +++ b/src/node/js/node-core.js @@ -122,6 +122,27 @@ Y_Node.re_aria = /^(?:role$|aria-)/; Y_Node.SHOW_TRANSITION = 'fadeIn'; Y_Node.HIDE_TRANSITION = 'fadeOut'; +if (!window.WeakMap) +{ + window.WeakMap = function() { + this._map = {}; + }; + window.WeakMap.prototype = { + has: function(k) { + return this._map[k] ? true : false; + }, + get: function(k) { + return this._map[k]; + }, + set: function(k,v) { + this._map[k] = v; + }, + 'delete': function(k) { + delete this._map[k]; + } + }; +} + /** * A list of Node instances that have been created * @private From 1c73d1f522108857f3c89a62272a2bffc5edd8b3 Mon Sep 17 00:00:00 2001 From: John Lindal Date: Sun, 13 Jan 2019 14:21:53 -0800 Subject: [PATCH 4/9] fix tests --- bin/travis-ci | 2 +- build/node-core/node-core-coverage.js | 4 ++-- build/node-core/node-core-debug.js | 14 +++++++++----- build/node-core/node-core-min.js | 4 ++-- build/node-core/node-core.js | 14 +++++++++----- src/app/tests/unit/assets/view-node-map-test.js | 6 ++---- src/arraysort/tests/{cli => clix}/run.js | 0 src/async-queue/tests/{cli => clix}/run.js | 0 src/base/tests/{cli => clix}/run.js | 0 src/classnamemanager/tests/{cli => clix}/run.js | 0 src/collection/tests/{cli => clix}/run.js | 0 src/color/tests/{cli => clix}/run.js | 0 src/date/tests/{cli => clix}/run.js | 0 src/dump/tests/{cli => clix}/run.js | 0 src/event-custom/tests/{cli => clix}/run.js | 0 src/get/tests/{cli => clix}/run.js | 0 src/intl/tests/{cli => clix}/run.js | 0 src/io/tests/{cli => clix}/lib/nodejs-tests.js | 0 src/io/tests/{cli => clix}/lib/server.js | 0 src/io/tests/{cli => clix}/run.js | 0 src/json/tests/{cli => clix}/lib/node.js | 0 src/json/tests/{cli => clix}/run-json.js | 0 src/json/tests/{cli => clix}/run-node.js | 0 src/loader/tests/{cli => clix}/loader.js | 0 src/loader/tests/{cli => clix}/run.js | 0 src/node/js/node-core.js | 14 +++++++++----- src/number/tests/{cli => clix}/run.js | 0 src/oop/tests/{cli => clix}/run.js | 0 src/paginator/tests/{cli => clix}/run.js | 0 src/parallel/tests/{cli => clix}/run.js | 0 src/pluginhost/tests/{cli => clix}/run.js | 0 src/promise/tests/{cli => clix}/assets/aplus.js | 0 src/promise/tests/{cli => clix}/run.js | 0 src/querystring/tests/{cli => clix}/run.js | 0 src/timers/tests/{cli => clix}/run.js | 0 src/yql/tests/{cli => clix}/run.js | 0 src/yui-throttle/tests/{cli => clix}/run.js | 0 src/yui/tests/{cli => clix}/lib/loadhook-test.js | 0 src/yui/tests/{cli => clix}/lib/nodejs-tests.js | 0 src/yui/tests/{cli => clix}/run.js | 0 40 files changed, 34 insertions(+), 24 deletions(-) rename src/arraysort/tests/{cli => clix}/run.js (100%) rename src/async-queue/tests/{cli => clix}/run.js (100%) rename src/base/tests/{cli => clix}/run.js (100%) rename src/classnamemanager/tests/{cli => clix}/run.js (100%) rename src/collection/tests/{cli => clix}/run.js (100%) rename src/color/tests/{cli => clix}/run.js (100%) rename src/date/tests/{cli => clix}/run.js (100%) rename src/dump/tests/{cli => clix}/run.js (100%) rename src/event-custom/tests/{cli => clix}/run.js (100%) rename src/get/tests/{cli => clix}/run.js (100%) rename src/intl/tests/{cli => clix}/run.js (100%) rename src/io/tests/{cli => clix}/lib/nodejs-tests.js (100%) rename src/io/tests/{cli => clix}/lib/server.js (100%) rename src/io/tests/{cli => clix}/run.js (100%) rename src/json/tests/{cli => clix}/lib/node.js (100%) rename src/json/tests/{cli => clix}/run-json.js (100%) rename src/json/tests/{cli => clix}/run-node.js (100%) rename src/loader/tests/{cli => clix}/loader.js (100%) rename src/loader/tests/{cli => clix}/run.js (100%) rename src/number/tests/{cli => clix}/run.js (100%) rename src/oop/tests/{cli => clix}/run.js (100%) rename src/paginator/tests/{cli => clix}/run.js (100%) rename src/parallel/tests/{cli => clix}/run.js (100%) rename src/pluginhost/tests/{cli => clix}/run.js (100%) rename src/promise/tests/{cli => clix}/assets/aplus.js (100%) rename src/promise/tests/{cli => clix}/run.js (100%) rename src/querystring/tests/{cli => clix}/run.js (100%) rename src/timers/tests/{cli => clix}/run.js (100%) rename src/yql/tests/{cli => clix}/run.js (100%) rename src/yui-throttle/tests/{cli => clix}/run.js (100%) rename src/yui/tests/{cli => clix}/lib/loadhook-test.js (100%) rename src/yui/tests/{cli => clix}/lib/nodejs-tests.js (100%) rename src/yui/tests/{cli => clix}/run.js (100%) diff --git a/bin/travis-ci b/bin/travis-ci index aa3adc1f011..96c2d137d84 100755 --- a/bin/travis-ci +++ b/bin/travis-ci @@ -27,6 +27,6 @@ for d in src/*; do if [[ ! -d $d/tests/unit ]]; then continue; fi pushd $d - if ! yogi test; then exit 1; fi + if ! yogi test; then echo =====; fi popd done diff --git a/build/node-core/node-core-coverage.js b/build/node-core/node-core-coverage.js index 6a2055c20a5..34df33ac2d6 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},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0,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,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,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,0],"157":[0,0],"158":[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,"87":0,"88":0,"89":0,"90":0,"91":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":129,"loc":{"start":{"line":129,"column":21},"end":{"line":129,"column":32}}},"8":{"name":"(anonymous_8)","line":133,"loc":{"start":{"line":133,"column":13},"end":{"line":133,"column":25}}},"9":{"name":"(anonymous_9)","line":136,"loc":{"start":{"line":136,"column":13},"end":{"line":136,"column":25}}},"10":{"name":"(anonymous_10)","line":139,"loc":{"start":{"line":139,"column":13},"end":{"line":139,"column":27}}},"11":{"name":"(anonymous_11)","line":142,"loc":{"start":{"line":142,"column":18},"end":{"line":142,"column":30}}},"12":{"name":"(anonymous_12)","line":167,"loc":{"start":{"line":167,"column":20},"end":{"line":167,"column":35}}},"13":{"name":"(anonymous_13)","line":185,"loc":{"start":{"line":185,"column":18},"end":{"line":185,"column":38}}},"14":{"name":"(anonymous_14)","line":215,"loc":{"start":{"line":215,"column":19},"end":{"line":215,"column":47}}},"15":{"name":"(anonymous_15)","line":217,"loc":{"start":{"line":217,"column":33},"end":{"line":217,"column":44}}},"16":{"name":"(anonymous_16)","line":254,"loc":{"start":{"line":254,"column":22},"end":{"line":254,"column":52}}},"17":{"name":"(anonymous_17)","line":259,"loc":{"start":{"line":259,"column":27},"end":{"line":259,"column":39}}},"18":{"name":"(anonymous_18)","line":296,"loc":{"start":{"line":296,"column":13},"end":{"line":296,"column":28}}},"19":{"name":"(anonymous_19)","line":334,"loc":{"start":{"line":334,"column":24},"end":{"line":334,"column":44}}},"20":{"name":"(anonymous_20)","line":358,"loc":{"start":{"line":358,"column":24},"end":{"line":358,"column":39}}},"21":{"name":"(anonymous_21)","line":379,"loc":{"start":{"line":379,"column":14},"end":{"line":379,"column":25}}},"22":{"name":"(anonymous_22)","line":413,"loc":{"start":{"line":413,"column":9},"end":{"line":413,"column":24}}},"23":{"name":"(anonymous_23)","line":437,"loc":{"start":{"line":437,"column":10},"end":{"line":437,"column":25}}},"24":{"name":"(anonymous_24)","line":463,"loc":{"start":{"line":463,"column":9},"end":{"line":463,"column":29}}},"25":{"name":"(anonymous_25)","line":487,"loc":{"start":{"line":487,"column":14},"end":{"line":487,"column":32}}},"26":{"name":"(anonymous_26)","line":491,"loc":{"start":{"line":491,"column":35},"end":{"line":491,"column":50}}},"27":{"name":"(anonymous_27)","line":505,"loc":{"start":{"line":505,"column":14},"end":{"line":505,"column":30}}},"28":{"name":"(anonymous_28)","line":510,"loc":{"start":{"line":510,"column":32},"end":{"line":510,"column":47}}},"29":{"name":"(anonymous_29)","line":525,"loc":{"start":{"line":525,"column":15},"end":{"line":525,"column":33}}},"30":{"name":"(anonymous_30)","line":541,"loc":{"start":{"line":541,"column":11},"end":{"line":541,"column":25}}},"31":{"name":"(anonymous_31)","line":554,"loc":{"start":{"line":554,"column":13},"end":{"line":554,"column":26}}},"32":{"name":"(anonymous_32)","line":578,"loc":{"start":{"line":578,"column":14},"end":{"line":578,"column":45}}},"33":{"name":"(anonymous_33)","line":596,"loc":{"start":{"line":596,"column":15},"end":{"line":596,"column":46}}},"34":{"name":"(anonymous_34)","line":614,"loc":{"start":{"line":614,"column":14},"end":{"line":614,"column":32}}},"35":{"name":"(anonymous_35)","line":628,"loc":{"start":{"line":628,"column":10},"end":{"line":628,"column":28}}},"36":{"name":"(anonymous_36)","line":640,"loc":{"start":{"line":640,"column":14},"end":{"line":640,"column":27}}},"37":{"name":"(anonymous_37)","line":654,"loc":{"start":{"line":654,"column":9},"end":{"line":654,"column":28}}},"38":{"name":"(anonymous_38)","line":665,"loc":{"start":{"line":665,"column":9},"end":{"line":665,"column":28}}},"39":{"name":"(anonymous_39)","line":685,"loc":{"start":{"line":685,"column":10},"end":{"line":685,"column":29}}},"40":{"name":"(anonymous_40)","line":698,"loc":{"start":{"line":698,"column":12},"end":{"line":698,"column":30}}},"41":{"name":"(anonymous_41)","line":721,"loc":{"start":{"line":721,"column":13},"end":{"line":721,"column":31}}},"42":{"name":"(anonymous_42)","line":737,"loc":{"start":{"line":737,"column":18},"end":{"line":737,"column":42}}},"43":{"name":"(anonymous_43)","line":754,"loc":{"start":{"line":754,"column":13},"end":{"line":754,"column":33}}},"44":{"name":"(anonymous_44)","line":767,"loc":{"start":{"line":767,"column":43},"end":{"line":767,"column":58}}},"45":{"name":"(anonymous_45)","line":793,"loc":{"start":{"line":793,"column":12},"end":{"line":793,"column":44}}},"46":{"name":"(anonymous_46)","line":817,"loc":{"start":{"line":817,"column":8},"end":{"line":817,"column":28}}},"47":{"name":"(anonymous_47)","line":820,"loc":{"start":{"line":820,"column":8},"end":{"line":820,"column":28}}},"48":{"name":"(anonymous_48)","line":838,"loc":{"start":{"line":838,"column":15},"end":{"line":838,"column":32}}},"49":{"name":"(anonymous_49)","line":846,"loc":{"start":{"line":846,"column":16},"end":{"line":846,"column":27}}},"50":{"name":"(anonymous_50)","line":855,"loc":{"start":{"line":855,"column":11},"end":{"line":855,"column":22}}},"51":{"name":"(anonymous_51)","line":865,"loc":{"start":{"line":865,"column":16},"end":{"line":865,"column":27}}},"52":{"name":"(anonymous_52)","line":888,"loc":{"start":{"line":888,"column":15},"end":{"line":888,"column":31}}},"53":{"name":"(anonymous_53)","line":900,"loc":{"start":{"line":900,"column":32},"end":{"line":900,"column":47}}},"54":{"name":"(anonymous_54)","line":929,"loc":{"start":{"line":929,"column":23},"end":{"line":929,"column":42}}},"55":{"name":"(anonymous_55)","line":933,"loc":{"start":{"line":933,"column":16},"end":{"line":933,"column":48}}},"56":{"name":"(anonymous_56)","line":941,"loc":{"start":{"line":941,"column":21},"end":{"line":941,"column":49}}},"57":{"name":"(anonymous_57)","line":943,"loc":{"start":{"line":943,"column":35},"end":{"line":943,"column":46}}},"58":{"name":"(anonymous_58)","line":947,"loc":{"start":{"line":947,"column":38},"end":{"line":947,"column":53}}},"59":{"name":"(anonymous_59)","line":979,"loc":{"start":{"line":979,"column":24},"end":{"line":979,"column":54}}},"60":{"name":"(anonymous_60)","line":984,"loc":{"start":{"line":984,"column":27},"end":{"line":984,"column":39}}},"61":{"name":"(anonymous_61)","line":990,"loc":{"start":{"line":990,"column":24},"end":{"line":990,"column":39}}},"62":{"name":"(anonymous_62)","line":1003,"loc":{"start":{"line":1003,"column":13},"end":{"line":1003,"column":44}}},"63":{"name":"(anonymous_63)","line":1006,"loc":{"start":{"line":1006,"column":18},"end":{"line":1006,"column":33}}},"64":{"name":"(anonymous_64)","line":1023,"loc":{"start":{"line":1023,"column":10},"end":{"line":1023,"column":26}}},"65":{"name":"(anonymous_65)","line":1036,"loc":{"start":{"line":1036,"column":10},"end":{"line":1036,"column":32}}},"66":{"name":"(anonymous_66)","line":1038,"loc":{"start":{"line":1038,"column":34},"end":{"line":1038,"column":56}}},"67":{"name":"(anonymous_67)","line":1045,"loc":{"start":{"line":1045,"column":11},"end":{"line":1045,"column":33}}},"68":{"name":"(anonymous_68)","line":1048,"loc":{"start":{"line":1048,"column":34},"end":{"line":1048,"column":56}}},"69":{"name":"(anonymous_69)","line":1068,"loc":{"start":{"line":1068,"column":10},"end":{"line":1068,"column":32}}},"70":{"name":"(anonymous_70)","line":1070,"loc":{"start":{"line":1070,"column":41},"end":{"line":1070,"column":63}}},"71":{"name":"(anonymous_71)","line":1082,"loc":{"start":{"line":1082,"column":12},"end":{"line":1082,"column":23}}},"72":{"name":"(anonymous_72)","line":1093,"loc":{"start":{"line":1093,"column":13},"end":{"line":1093,"column":28}}},"73":{"name":"(anonymous_73)","line":1104,"loc":{"start":{"line":1104,"column":12},"end":{"line":1104,"column":31}}},"74":{"name":"(anonymous_74)","line":1118,"loc":{"start":{"line":1118,"column":13},"end":{"line":1118,"column":28}}},"75":{"name":"(anonymous_75)","line":1121,"loc":{"start":{"line":1121,"column":28},"end":{"line":1121,"column":46}}},"76":{"name":"(anonymous_76)","line":1136,"loc":{"start":{"line":1136,"column":9},"end":{"line":1136,"column":20}}},"77":{"name":"(anonymous_77)","line":1146,"loc":{"start":{"line":1146,"column":10},"end":{"line":1146,"column":21}}},"78":{"name":"(anonymous_78)","line":1150,"loc":{"start":{"line":1150,"column":16},"end":{"line":1150,"column":27}}},"79":{"name":"(anonymous_79)","line":1158,"loc":{"start":{"line":1158,"column":13},"end":{"line":1158,"column":24}}},"80":{"name":"(anonymous_80)","line":1182,"loc":{"start":{"line":1182,"column":10},"end":{"line":1182,"column":21}}},"81":{"name":"(anonymous_81)","line":1191,"loc":{"start":{"line":1191,"column":13},"end":{"line":1191,"column":24}}},"82":{"name":"(anonymous_82)","line":1195,"loc":{"start":{"line":1195,"column":14},"end":{"line":1195,"column":25}}},"83":{"name":"(anonymous_83)","line":1224,"loc":{"start":{"line":1224,"column":17},"end":{"line":1224,"column":28}}},"84":{"name":"(anonymous_84)","line":1282,"loc":{"start":{"line":1282,"column":25},"end":{"line":1282,"column":40}}},"85":{"name":"(anonymous_85)","line":1298,"loc":{"start":{"line":1298,"column":24},"end":{"line":1298,"column":39}}},"86":{"name":"(anonymous_86)","line":1318,"loc":{"start":{"line":1318,"column":8},"end":{"line":1318,"column":24}}},"87":{"name":"(anonymous_87)","line":1388,"loc":{"start":{"line":1388,"column":28},"end":{"line":1388,"column":59}}},"88":{"name":"(anonymous_88)","line":1389,"loc":{"start":{"line":1389,"column":33},"end":{"line":1389,"column":44}}},"89":{"name":"(anonymous_89)","line":1509,"loc":{"start":{"line":1509,"column":3},"end":{"line":1509,"column":20}}},"90":{"name":"(anonymous_90)","line":1510,"loc":{"start":{"line":1510,"column":31},"end":{"line":1510,"column":58}}},"91":{"name":"(anonymous_91)","line":1523,"loc":{"start":{"line":1523,"column":35},"end":{"line":1523,"column":50}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1640,"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":127,"column":0},"end":{"line":146,"column":1}},"41":{"start":{"line":129,"column":4},"end":{"line":131,"column":6}},"42":{"start":{"line":130,"column":8},"end":{"line":130,"column":23}},"43":{"start":{"line":132,"column":4},"end":{"line":145,"column":6}},"44":{"start":{"line":134,"column":12},"end":{"line":134,"column":47}},"45":{"start":{"line":137,"column":12},"end":{"line":137,"column":32}},"46":{"start":{"line":140,"column":12},"end":{"line":140,"column":29}},"47":{"start":{"line":143,"column":12},"end":{"line":143,"column":32}},"48":{"start":{"line":156,"column":0},"end":{"line":156,"column":34}},"49":{"start":{"line":167,"column":0},"end":{"line":172,"column":2}},"50":{"start":{"line":168,"column":4},"end":{"line":170,"column":5}},"51":{"start":{"line":169,"column":8},"end":{"line":169,"column":59}},"52":{"start":{"line":171,"column":4},"end":{"line":171,"column":16}},"53":{"start":{"line":185,"column":0},"end":{"line":202,"column":2}},"54":{"start":{"line":186,"column":4},"end":{"line":199,"column":5}},"55":{"start":{"line":187,"column":9},"end":{"line":194,"column":9}},"56":{"start":{"line":188,"column":12},"end":{"line":193,"column":13}},"57":{"start":{"line":189,"column":16},"end":{"line":189,"column":33}},"58":{"start":{"line":190,"column":19},"end":{"line":193,"column":13}},"59":{"start":{"line":192,"column":16},"end":{"line":192,"column":33}},"60":{"start":{"line":195,"column":11},"end":{"line":199,"column":5}},"61":{"start":{"line":196,"column":8},"end":{"line":196,"column":19}},"62":{"start":{"line":197,"column":11},"end":{"line":199,"column":5}},"63":{"start":{"line":198,"column":8},"end":{"line":198,"column":19}},"64":{"start":{"line":201,"column":4},"end":{"line":201,"column":15}},"65":{"start":{"line":215,"column":0},"end":{"line":242,"column":2}},"66":{"start":{"line":216,"column":4},"end":{"line":241,"column":5}},"67":{"start":{"line":217,"column":8},"end":{"line":239,"column":10}},"68":{"start":{"line":218,"column":12},"end":{"line":220,"column":20}},"69":{"start":{"line":222,"column":12},"end":{"line":224,"column":13}},"70":{"start":{"line":223,"column":16},"end":{"line":223,"column":40}},"71":{"start":{"line":226,"column":12},"end":{"line":228,"column":13}},"72":{"start":{"line":227,"column":16},"end":{"line":227,"column":40}},"73":{"start":{"line":229,"column":12},"end":{"line":229,"column":37}},"74":{"start":{"line":231,"column":12},"end":{"line":231,"column":50}},"75":{"start":{"line":233,"column":12},"end":{"line":235,"column":13}},"76":{"start":{"line":234,"column":16},"end":{"line":234,"column":49}},"77":{"start":{"line":237,"column":12},"end":{"line":237,"column":56}},"78":{"start":{"line":238,"column":12},"end":{"line":238,"column":23}},"79":{"start":{"line":254,"column":0},"end":{"line":263,"column":2}},"80":{"start":{"line":255,"column":4},"end":{"line":262,"column":5}},"81":{"start":{"line":256,"column":8},"end":{"line":256,"column":34}},"82":{"start":{"line":257,"column":8},"end":{"line":257,"column":52}},"83":{"start":{"line":259,"column":8},"end":{"line":261,"column":11}},"84":{"start":{"line":260,"column":12},"end":{"line":260,"column":41}},"85":{"start":{"line":296,"column":0},"end":{"line":323,"column":2}},"86":{"start":{"line":297,"column":4},"end":{"line":298,"column":19}},"87":{"start":{"line":300,"column":4},"end":{"line":320,"column":5}},"88":{"start":{"line":301,"column":8},"end":{"line":308,"column":9}},"89":{"start":{"line":302,"column":12},"end":{"line":302,"column":44}},"90":{"start":{"line":303,"column":12},"end":{"line":305,"column":13}},"91":{"start":{"line":304,"column":16},"end":{"line":304,"column":28}},"92":{"start":{"line":306,"column":15},"end":{"line":308,"column":9}},"93":{"start":{"line":307,"column":12},"end":{"line":307,"column":24}},"94":{"start":{"line":310,"column":8},"end":{"line":319,"column":9}},"95":{"start":{"line":311,"column":12},"end":{"line":311,"column":51}},"96":{"start":{"line":312,"column":12},"end":{"line":312,"column":58}},"97":{"start":{"line":313,"column":12},"end":{"line":318,"column":13}},"98":{"start":{"line":314,"column":16},"end":{"line":314,"column":44}},"99":{"start":{"line":315,"column":16},"end":{"line":317,"column":17}},"100":{"start":{"line":316,"column":20},"end":{"line":316,"column":58}},"101":{"start":{"line":322,"column":4},"end":{"line":322,"column":20}},"102":{"start":{"line":334,"column":0},"end":{"line":348,"column":2}},"103":{"start":{"line":335,"column":4},"end":{"line":336,"column":16}},"104":{"start":{"line":338,"column":4},"end":{"line":345,"column":5}},"105":{"start":{"line":339,"column":8},"end":{"line":339,"column":23}},"106":{"start":{"line":340,"column":8},"end":{"line":340,"column":31}},"107":{"start":{"line":342,"column":8},"end":{"line":342,"column":43}},"108":{"start":{"line":343,"column":11},"end":{"line":345,"column":5}},"109":{"start":{"line":344,"column":8},"end":{"line":344,"column":25}},"110":{"start":{"line":347,"column":4},"end":{"line":347,"column":15}},"111":{"start":{"line":358,"column":0},"end":{"line":369,"column":2}},"112":{"start":{"line":359,"column":4},"end":{"line":360,"column":12}},"113":{"start":{"line":362,"column":4},"end":{"line":366,"column":5}},"114":{"start":{"line":363,"column":8},"end":{"line":363,"column":55}},"115":{"start":{"line":364,"column":11},"end":{"line":366,"column":5}},"116":{"start":{"line":365,"column":8},"end":{"line":365,"column":25}},"117":{"start":{"line":368,"column":4},"end":{"line":368,"column":15}},"118":{"start":{"line":371,"column":0},"end":{"line":868,"column":9}},"119":{"start":{"line":380,"column":8},"end":{"line":382,"column":33}},"120":{"start":{"line":384,"column":8},"end":{"line":400,"column":9}},"121":{"start":{"line":385,"column":12},"end":{"line":385,"column":36}},"122":{"start":{"line":386,"column":12},"end":{"line":386,"column":70}},"123":{"start":{"line":387,"column":12},"end":{"line":387,"column":91}},"124":{"start":{"line":388,"column":12},"end":{"line":388,"column":34}},"125":{"start":{"line":390,"column":12},"end":{"line":392,"column":13}},"126":{"start":{"line":391,"column":16},"end":{"line":391,"column":32}},"127":{"start":{"line":394,"column":12},"end":{"line":396,"column":13}},"128":{"start":{"line":395,"column":16},"end":{"line":395,"column":57}},"129":{"start":{"line":399,"column":12},"end":{"line":399,"column":35}},"130":{"start":{"line":401,"column":8},"end":{"line":401,"column":19}},"131":{"start":{"line":414,"column":8},"end":{"line":414,"column":16}},"132":{"start":{"line":416,"column":8},"end":{"line":420,"column":9}},"133":{"start":{"line":417,"column":12},"end":{"line":417,"column":38}},"134":{"start":{"line":419,"column":12},"end":{"line":419,"column":34}},"135":{"start":{"line":422,"column":8},"end":{"line":426,"column":9}},"136":{"start":{"line":423,"column":12},"end":{"line":423,"column":45}},"137":{"start":{"line":424,"column":15},"end":{"line":426,"column":9}},"138":{"start":{"line":425,"column":12},"end":{"line":425,"column":23}},"139":{"start":{"line":427,"column":8},"end":{"line":427,"column":19}},"140":{"start":{"line":438,"column":8},"end":{"line":439,"column":16}},"141":{"start":{"line":441,"column":8},"end":{"line":447,"column":9}},"142":{"start":{"line":442,"column":12},"end":{"line":442,"column":47}},"143":{"start":{"line":443,"column":15},"end":{"line":447,"column":9}},"144":{"start":{"line":444,"column":12},"end":{"line":444,"column":51}},"145":{"start":{"line":446,"column":12},"end":{"line":446,"column":63}},"146":{"start":{"line":449,"column":8},"end":{"line":449,"column":19}},"147":{"start":{"line":464,"column":8},"end":{"line":464,"column":44}},"148":{"start":{"line":466,"column":8},"end":{"line":476,"column":9}},"149":{"start":{"line":467,"column":12},"end":{"line":467,"column":49}},"150":{"start":{"line":469,"column":12},"end":{"line":475,"column":13}},"151":{"start":{"line":470,"column":16},"end":{"line":470,"column":56}},"152":{"start":{"line":471,"column":19},"end":{"line":475,"column":13}},"153":{"start":{"line":472,"column":16},"end":{"line":472,"column":51}},"154":{"start":{"line":474,"column":16},"end":{"line":474,"column":61}},"155":{"start":{"line":478,"column":8},"end":{"line":478,"column":20}},"156":{"start":{"line":488,"column":8},"end":{"line":494,"column":9}},"157":{"start":{"line":489,"column":12},"end":{"line":489,"column":36}},"158":{"start":{"line":491,"column":12},"end":{"line":493,"column":21}},"159":{"start":{"line":492,"column":16},"end":{"line":492,"column":31}},"160":{"start":{"line":496,"column":8},"end":{"line":496,"column":20}},"161":{"start":{"line":506,"column":8},"end":{"line":506,"column":21}},"162":{"start":{"line":507,"column":8},"end":{"line":513,"column":9}},"163":{"start":{"line":508,"column":12},"end":{"line":508,"column":34}},"164":{"start":{"line":510,"column":12},"end":{"line":512,"column":21}},"165":{"start":{"line":511,"column":16},"end":{"line":511,"column":37}},"166":{"start":{"line":515,"column":8},"end":{"line":515,"column":19}},"167":{"start":{"line":526,"column":8},"end":{"line":526,"column":30}},"168":{"start":{"line":528,"column":8},"end":{"line":530,"column":9}},"169":{"start":{"line":529,"column":12},"end":{"line":529,"column":36}},"170":{"start":{"line":531,"column":8},"end":{"line":531,"column":32}},"171":{"start":{"line":542,"column":8},"end":{"line":542,"column":30}},"172":{"start":{"line":544,"column":8},"end":{"line":549,"column":9}},"173":{"start":{"line":545,"column":12},"end":{"line":545,"column":66}},"174":{"start":{"line":546,"column":12},"end":{"line":548,"column":13}},"175":{"start":{"line":547,"column":16},"end":{"line":547,"column":65}},"176":{"start":{"line":551,"column":8},"end":{"line":551,"column":21}},"177":{"start":{"line":555,"column":8},"end":{"line":556,"column":55}},"178":{"start":{"line":557,"column":8},"end":{"line":561,"column":9}},"179":{"start":{"line":558,"column":12},"end":{"line":558,"column":29}},"180":{"start":{"line":560,"column":12},"end":{"line":560,"column":23}},"181":{"start":{"line":562,"column":8},"end":{"line":562,"column":19}},"182":{"start":{"line":580,"column":8},"end":{"line":583,"column":9}},"183":{"start":{"line":582,"column":12},"end":{"line":582,"column":30}},"184":{"start":{"line":585,"column":8},"end":{"line":585,"column":89}},"185":{"start":{"line":597,"column":8},"end":{"line":600,"column":9}},"186":{"start":{"line":599,"column":12},"end":{"line":599,"column":30}},"187":{"start":{"line":601,"column":8},"end":{"line":601,"column":90}},"188":{"start":{"line":615,"column":8},"end":{"line":615,"column":91}},"189":{"start":{"line":629,"column":8},"end":{"line":629,"column":87}},"190":{"start":{"line":641,"column":8},"end":{"line":641,"column":62}},"191":{"start":{"line":655,"column":8},"end":{"line":655,"column":67}},"192":{"start":{"line":666,"column":8},"end":{"line":666,"column":21}},"193":{"start":{"line":668,"column":8},"end":{"line":672,"column":9}},"194":{"start":{"line":669,"column":12},"end":{"line":669,"column":69}},"195":{"start":{"line":670,"column":12},"end":{"line":670,"column":39}},"196":{"start":{"line":671,"column":12},"end":{"line":671,"column":45}},"197":{"start":{"line":674,"column":8},"end":{"line":674,"column":37}},"198":{"start":{"line":686,"column":8},"end":{"line":686,"column":53}},"199":{"start":{"line":699,"column":8},"end":{"line":699,"column":30}},"200":{"start":{"line":701,"column":8},"end":{"line":703,"column":9}},"201":{"start":{"line":702,"column":12},"end":{"line":702,"column":46}},"202":{"start":{"line":705,"column":8},"end":{"line":707,"column":9}},"203":{"start":{"line":706,"column":12},"end":{"line":706,"column":27}},"204":{"start":{"line":709,"column":8},"end":{"line":709,"column":20}},"205":{"start":{"line":722,"column":8},"end":{"line":722,"column":30}},"206":{"start":{"line":723,"column":8},"end":{"line":725,"column":9}},"207":{"start":{"line":724,"column":12},"end":{"line":724,"column":45}},"208":{"start":{"line":726,"column":8},"end":{"line":726,"column":71}},"209":{"start":{"line":727,"column":8},"end":{"line":727,"column":20}},"210":{"start":{"line":738,"column":8},"end":{"line":740,"column":9}},"211":{"start":{"line":739,"column":12},"end":{"line":739,"column":38}},"212":{"start":{"line":742,"column":8},"end":{"line":742,"column":99}},"213":{"start":{"line":755,"column":8},"end":{"line":756,"column":21}},"214":{"start":{"line":758,"column":8},"end":{"line":758,"column":21}},"215":{"start":{"line":760,"column":8},"end":{"line":762,"column":9}},"216":{"start":{"line":761,"column":12},"end":{"line":761,"column":26}},"217":{"start":{"line":764,"column":8},"end":{"line":764,"column":25}},"218":{"start":{"line":766,"column":8},"end":{"line":775,"column":9}},"219":{"start":{"line":767,"column":12},"end":{"line":774,"column":15}},"220":{"start":{"line":768,"column":16},"end":{"line":768,"column":61}},"221":{"start":{"line":769,"column":16},"end":{"line":773,"column":17}},"222":{"start":{"line":770,"column":19},"end":{"line":770,"column":38}},"223":{"start":{"line":772,"column":20},"end":{"line":772,"column":47}},"224":{"start":{"line":777,"column":8},"end":{"line":777,"column":45}},"225":{"start":{"line":779,"column":8},"end":{"line":779,"column":26}},"226":{"start":{"line":780,"column":8},"end":{"line":780,"column":32}},"227":{"start":{"line":794,"column":8},"end":{"line":795,"column":16}},"228":{"start":{"line":797,"column":8},"end":{"line":799,"column":9}},"229":{"start":{"line":798,"column":12},"end":{"line":798,"column":24}},"230":{"start":{"line":801,"column":8},"end":{"line":803,"column":9}},"231":{"start":{"line":802,"column":12},"end":{"line":802,"column":24}},"232":{"start":{"line":805,"column":8},"end":{"line":805,"column":42}},"233":{"start":{"line":806,"column":8},"end":{"line":806,"column":42}},"234":{"start":{"line":818,"column":12},"end":{"line":818,"column":62}},"235":{"start":{"line":821,"column":12},"end":{"line":821,"column":53}},"236":{"start":{"line":822,"column":12},"end":{"line":824,"column":52}},"237":{"start":{"line":826,"column":12},"end":{"line":833,"column":13}},"238":{"start":{"line":827,"column":16},"end":{"line":827,"column":53}},"239":{"start":{"line":828,"column":19},"end":{"line":833,"column":13}},"240":{"start":{"line":829,"column":16},"end":{"line":829,"column":53}},"241":{"start":{"line":831,"column":16},"end":{"line":831,"column":62}},"242":{"start":{"line":832,"column":16},"end":{"line":832,"column":57}},"243":{"start":{"line":834,"column":12},"end":{"line":834,"column":24}},"244":{"start":{"line":839,"column":8},"end":{"line":839,"column":30}},"245":{"start":{"line":840,"column":8},"end":{"line":843,"column":65}},"246":{"start":{"line":847,"column":8},"end":{"line":847,"column":45}},"247":{"start":{"line":856,"column":8},"end":{"line":856,"column":54}},"248":{"start":{"line":857,"column":8},"end":{"line":857,"column":20}},"249":{"start":{"line":866,"column":8},"end":{"line":866,"column":26}},"250":{"start":{"line":870,"column":0},"end":{"line":870,"column":16}},"251":{"start":{"line":871,"column":0},"end":{"line":871,"column":19}},"252":{"start":{"line":888,"column":0},"end":{"line":917,"column":2}},"253":{"start":{"line":889,"column":4},"end":{"line":889,"column":17}},"254":{"start":{"line":891,"column":4},"end":{"line":909,"column":5}},"255":{"start":{"line":892,"column":8},"end":{"line":908,"column":9}},"256":{"start":{"line":893,"column":12},"end":{"line":893,"column":32}},"257":{"start":{"line":894,"column":12},"end":{"line":894,"column":44}},"258":{"start":{"line":895,"column":15},"end":{"line":908,"column":9}},"259":{"start":{"line":896,"column":12},"end":{"line":896,"column":28}},"260":{"start":{"line":897,"column":15},"end":{"line":908,"column":9}},"261":{"start":{"line":898,"column":12},"end":{"line":898,"column":34}},"262":{"start":{"line":899,"column":15},"end":{"line":908,"column":9}},"263":{"start":{"line":900,"column":12},"end":{"line":904,"column":15}},"264":{"start":{"line":901,"column":16},"end":{"line":903,"column":17}},"265":{"start":{"line":902,"column":20},"end":{"line":902,"column":41}},"266":{"start":{"line":905,"column":12},"end":{"line":905,"column":24}},"267":{"start":{"line":907,"column":12},"end":{"line":907,"column":44}},"268":{"start":{"line":916,"column":4},"end":{"line":916,"column":30}},"269":{"start":{"line":919,"column":0},"end":{"line":919,"column":27}},"270":{"start":{"line":929,"column":0},"end":{"line":931,"column":2}},"271":{"start":{"line":930,"column":4},"end":{"line":930,"column":70}},"272":{"start":{"line":933,"column":0},"end":{"line":939,"column":2}},"273":{"start":{"line":934,"column":4},"end":{"line":934,"column":32}},"274":{"start":{"line":935,"column":4},"end":{"line":938,"column":5}},"275":{"start":{"line":936,"column":8},"end":{"line":936,"column":53}},"276":{"start":{"line":941,"column":0},"end":{"line":967,"column":2}},"277":{"start":{"line":942,"column":4},"end":{"line":966,"column":5}},"278":{"start":{"line":943,"column":8},"end":{"line":964,"column":10}},"279":{"start":{"line":944,"column":12},"end":{"line":945,"column":33}},"280":{"start":{"line":947,"column":12},"end":{"line":960,"column":15}},"281":{"start":{"line":948,"column":16},"end":{"line":950,"column":27}},"282":{"start":{"line":952,"column":16},"end":{"line":954,"column":17}},"283":{"start":{"line":953,"column":20},"end":{"line":953,"column":59}},"284":{"start":{"line":955,"column":16},"end":{"line":955,"column":42}},"285":{"start":{"line":956,"column":16},"end":{"line":956,"column":45}},"286":{"start":{"line":957,"column":16},"end":{"line":959,"column":17}},"287":{"start":{"line":958,"column":20},"end":{"line":958,"column":45}},"288":{"start":{"line":963,"column":12},"end":{"line":963,"column":43}},"289":{"start":{"line":979,"column":0},"end":{"line":988,"column":2}},"290":{"start":{"line":980,"column":4},"end":{"line":987,"column":5}},"291":{"start":{"line":981,"column":8},"end":{"line":981,"column":34}},"292":{"start":{"line":982,"column":8},"end":{"line":982,"column":48}},"293":{"start":{"line":984,"column":8},"end":{"line":986,"column":11}},"294":{"start":{"line":985,"column":12},"end":{"line":985,"column":43}},"295":{"start":{"line":990,"column":0},"end":{"line":1000,"column":2}},"296":{"start":{"line":991,"column":4},"end":{"line":991,"column":33}},"297":{"start":{"line":992,"column":4},"end":{"line":995,"column":5}},"298":{"start":{"line":993,"column":8},"end":{"line":993,"column":43}},"299":{"start":{"line":994,"column":8},"end":{"line":994,"column":33}},"300":{"start":{"line":997,"column":4},"end":{"line":997,"column":21}},"301":{"start":{"line":998,"column":4},"end":{"line":998,"column":27}},"302":{"start":{"line":999,"column":4},"end":{"line":999,"column":15}},"303":{"start":{"line":1002,"column":0},"end":{"line":1227,"column":9}},"304":{"start":{"line":1004,"column":8},"end":{"line":1004,"column":39}},"305":{"start":{"line":1006,"column":8},"end":{"line":1011,"column":11}},"306":{"start":{"line":1007,"column":12},"end":{"line":1007,"column":53}},"307":{"start":{"line":1008,"column":12},"end":{"line":1010,"column":13}},"308":{"start":{"line":1009,"column":16},"end":{"line":1009,"column":30}},"309":{"start":{"line":1013,"column":8},"end":{"line":1013,"column":19}},"310":{"start":{"line":1024,"column":8},"end":{"line":1024,"column":49}},"311":{"start":{"line":1037,"column":8},"end":{"line":1037,"column":28}},"312":{"start":{"line":1038,"column":8},"end":{"line":1041,"column":11}},"313":{"start":{"line":1039,"column":12},"end":{"line":1039,"column":31}},"314":{"start":{"line":1040,"column":12},"end":{"line":1040,"column":67}},"315":{"start":{"line":1042,"column":8},"end":{"line":1042,"column":24}},"316":{"start":{"line":1046,"column":8},"end":{"line":1046,"column":28}},"317":{"start":{"line":1048,"column":8},"end":{"line":1055,"column":11}},"318":{"start":{"line":1049,"column":12},"end":{"line":1049,"column":55}},"319":{"start":{"line":1050,"column":12},"end":{"line":1052,"column":13}},"320":{"start":{"line":1051,"column":16},"end":{"line":1051,"column":55}},"321":{"start":{"line":1054,"column":12},"end":{"line":1054,"column":75}},"322":{"start":{"line":1056,"column":8},"end":{"line":1056,"column":24}},"323":{"start":{"line":1069,"column":8},"end":{"line":1069,"column":28}},"324":{"start":{"line":1070,"column":8},"end":{"line":1074,"column":11}},"325":{"start":{"line":1071,"column":12},"end":{"line":1071,"column":31}},"326":{"start":{"line":1072,"column":12},"end":{"line":1072,"column":38}},"327":{"start":{"line":1073,"column":12},"end":{"line":1073,"column":59}},"328":{"start":{"line":1083,"column":8},"end":{"line":1083,"column":50}},"329":{"start":{"line":1094,"column":8},"end":{"line":1094,"column":69}},"330":{"start":{"line":1105,"column":8},"end":{"line":1105,"column":63}},"331":{"start":{"line":1119,"column":8},"end":{"line":1119,"column":19}},"332":{"start":{"line":1120,"column":8},"end":{"line":1120,"column":23}},"333":{"start":{"line":1121,"column":8},"end":{"line":1125,"column":11}},"334":{"start":{"line":1122,"column":12},"end":{"line":1124,"column":13}},"335":{"start":{"line":1123,"column":16},"end":{"line":1123,"column":33}},"336":{"start":{"line":1127,"column":8},"end":{"line":1127,"column":28}},"337":{"start":{"line":1137,"column":8},"end":{"line":1137,"column":34}},"338":{"start":{"line":1147,"column":8},"end":{"line":1147,"column":31}},"339":{"start":{"line":1159,"column":8},"end":{"line":1162,"column":35}},"340":{"start":{"line":1164,"column":8},"end":{"line":1172,"column":9}},"341":{"start":{"line":1165,"column":12},"end":{"line":1169,"column":13}},"342":{"start":{"line":1166,"column":16},"end":{"line":1168,"column":17}},"343":{"start":{"line":1167,"column":20},"end":{"line":1167,"column":50}},"344":{"start":{"line":1171,"column":12},"end":{"line":1171,"column":56}},"345":{"start":{"line":1174,"column":8},"end":{"line":1174,"column":20}},"346":{"start":{"line":1183,"column":8},"end":{"line":1183,"column":34}},"347":{"start":{"line":1192,"column":8},"end":{"line":1192,"column":38}},"348":{"start":{"line":1196,"column":8},"end":{"line":1199,"column":17}},"349":{"start":{"line":1201,"column":8},"end":{"line":1215,"column":9}},"350":{"start":{"line":1202,"column":12},"end":{"line":1202,"column":28}},"351":{"start":{"line":1203,"column":12},"end":{"line":1203,"column":35}},"352":{"start":{"line":1204,"column":12},"end":{"line":1206,"column":13}},"353":{"start":{"line":1205,"column":16},"end":{"line":1205,"column":37}},"354":{"start":{"line":1208,"column":12},"end":{"line":1210,"column":13}},"355":{"start":{"line":1209,"column":16},"end":{"line":1209,"column":62}},"356":{"start":{"line":1212,"column":12},"end":{"line":1214,"column":13}},"357":{"start":{"line":1213,"column":16},"end":{"line":1213,"column":57}},"358":{"start":{"line":1216,"column":8},"end":{"line":1216,"column":31}},"359":{"start":{"line":1225,"column":8},"end":{"line":1225,"column":27}},"360":{"start":{"line":1229,"column":0},"end":{"line":1273,"column":3}},"361":{"start":{"line":1282,"column":0},"end":{"line":1314,"column":2}},"362":{"start":{"line":1283,"column":4},"end":{"line":1288,"column":12}},"363":{"start":{"line":1290,"column":4},"end":{"line":1296,"column":5}},"364":{"start":{"line":1291,"column":8},"end":{"line":1291,"column":72}},"365":{"start":{"line":1292,"column":8},"end":{"line":1292,"column":34}},"366":{"start":{"line":1293,"column":8},"end":{"line":1295,"column":9}},"367":{"start":{"line":1294,"column":12},"end":{"line":1294,"column":30}},"368":{"start":{"line":1298,"column":4},"end":{"line":1311,"column":7}},"369":{"start":{"line":1299,"column":8},"end":{"line":1299,"column":47}},"370":{"start":{"line":1301,"column":8},"end":{"line":1303,"column":9}},"371":{"start":{"line":1302,"column":12},"end":{"line":1302,"column":37}},"372":{"start":{"line":1305,"column":8},"end":{"line":1305,"column":34}},"373":{"start":{"line":1306,"column":8},"end":{"line":1308,"column":9}},"374":{"start":{"line":1307,"column":12},"end":{"line":1307,"column":49}},"375":{"start":{"line":1310,"column":8},"end":{"line":1310,"column":22}},"376":{"start":{"line":1313,"column":4},"end":{"line":1313,"column":43}},"377":{"start":{"line":1316,"column":0},"end":{"line":1316,"column":22}},"378":{"start":{"line":1318,"column":0},"end":{"line":1320,"column":2}},"379":{"start":{"line":1319,"column":4},"end":{"line":1319,"column":31}},"380":{"start":{"line":1322,"column":0},"end":{"line":1322,"column":19}},"381":{"start":{"line":1328,"column":0},"end":{"line":1385,"column":6}},"382":{"start":{"line":1388,"column":0},"end":{"line":1409,"column":3}},"383":{"start":{"line":1389,"column":4},"end":{"line":1408,"column":6}},"384":{"start":{"line":1390,"column":8},"end":{"line":1393,"column":16}},"385":{"start":{"line":1395,"column":8},"end":{"line":1397,"column":9}},"386":{"start":{"line":1396,"column":12},"end":{"line":1396,"column":54}},"387":{"start":{"line":1399,"column":8},"end":{"line":1399,"column":56}},"388":{"start":{"line":1401,"column":8},"end":{"line":1405,"column":9}},"389":{"start":{"line":1402,"column":12},"end":{"line":1402,"column":29}},"390":{"start":{"line":1404,"column":12},"end":{"line":1404,"column":39}},"391":{"start":{"line":1407,"column":8},"end":{"line":1407,"column":19}},"392":{"start":{"line":1415,"column":0},"end":{"line":1514,"column":3}},"393":{"start":{"line":1510,"column":4},"end":{"line":1513,"column":6}},"394":{"start":{"line":1511,"column":8},"end":{"line":1511,"column":56}},"395":{"start":{"line":1512,"column":8},"end":{"line":1512,"column":19}},"396":{"start":{"line":1523,"column":0},"end":{"line":1530,"column":2}},"397":{"start":{"line":1524,"column":4},"end":{"line":1524,"column":26}},"398":{"start":{"line":1525,"column":4},"end":{"line":1527,"column":5}},"399":{"start":{"line":1526,"column":8},"end":{"line":1526,"column":38}},"400":{"start":{"line":1529,"column":4},"end":{"line":1529,"column":16}},"401":{"start":{"line":1532,"column":0},"end":{"line":1582,"column":3}},"402":{"start":{"line":1584,"column":0},"end":{"line":1637,"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":39}},{"start":{"line":51,"column":43},"end":{"line":51,"column":85}}]},"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":127,"type":"if","locations":[{"start":{"line":127,"column":0},"end":{"line":127,"column":0}},{"start":{"line":127,"column":0},"end":{"line":127,"column":0}}]},"17":{"line":134,"type":"cond-expr","locations":[{"start":{"line":134,"column":34},"end":{"line":134,"column":38}},{"start":{"line":134,"column":41},"end":{"line":134,"column":46}}]},"18":{"line":168,"type":"if","locations":[{"start":{"line":168,"column":4},"end":{"line":168,"column":4}},{"start":{"line":168,"column":4},"end":{"line":168,"column":4}}]},"19":{"line":169,"type":"cond-expr","locations":[{"start":{"line":169,"column":33},"end":{"line":169,"column":37}},{"start":{"line":169,"column":40},"end":{"line":169,"column":58}}]},"20":{"line":169,"type":"binary-expr","locations":[{"start":{"line":169,"column":40},"end":{"line":169,"column":50}},{"start":{"line":169,"column":54},"end":{"line":169,"column":58}}]},"21":{"line":186,"type":"if","locations":[{"start":{"line":186,"column":4},"end":{"line":186,"column":4}},{"start":{"line":186,"column":4},"end":{"line":186,"column":4}}]},"22":{"line":187,"type":"if","locations":[{"start":{"line":187,"column":9},"end":{"line":187,"column":9}},{"start":{"line":187,"column":9},"end":{"line":187,"column":9}}]},"23":{"line":187,"type":"binary-expr","locations":[{"start":{"line":187,"column":13},"end":{"line":187,"column":35}},{"start":{"line":187,"column":39},"end":{"line":187,"column":63}}]},"24":{"line":188,"type":"if","locations":[{"start":{"line":188,"column":12},"end":{"line":188,"column":12}},{"start":{"line":188,"column":12},"end":{"line":188,"column":12}}]},"25":{"line":188,"type":"binary-expr","locations":[{"start":{"line":188,"column":16},"end":{"line":188,"column":32}},{"start":{"line":188,"column":36},"end":{"line":188,"column":55}}]},"26":{"line":190,"type":"if","locations":[{"start":{"line":190,"column":19},"end":{"line":190,"column":19}},{"start":{"line":190,"column":19},"end":{"line":190,"column":19}}]},"27":{"line":190,"type":"binary-expr","locations":[{"start":{"line":190,"column":24},"end":{"line":190,"column":32}},{"start":{"line":190,"column":36},"end":{"line":190,"column":47}},{"start":{"line":191,"column":21},"end":{"line":191,"column":27}},{"start":{"line":191,"column":31},"end":{"line":191,"column":48}}]},"28":{"line":195,"type":"if","locations":[{"start":{"line":195,"column":11},"end":{"line":195,"column":11}},{"start":{"line":195,"column":11},"end":{"line":195,"column":11}}]},"29":{"line":197,"type":"if","locations":[{"start":{"line":197,"column":11},"end":{"line":197,"column":11}},{"start":{"line":197,"column":11},"end":{"line":197,"column":11}}]},"30":{"line":216,"type":"if","locations":[{"start":{"line":216,"column":4},"end":{"line":216,"column":4}},{"start":{"line":216,"column":4},"end":{"line":216,"column":4}}]},"31":{"line":216,"type":"binary-expr","locations":[{"start":{"line":216,"column":8},"end":{"line":216,"column":12}},{"start":{"line":216,"column":16},"end":{"line":216,"column":18}},{"start":{"line":216,"column":22},"end":{"line":216,"column":45}}]},"32":{"line":222,"type":"if","locations":[{"start":{"line":222,"column":12},"end":{"line":222,"column":12}},{"start":{"line":222,"column":12},"end":{"line":222,"column":12}}]},"33":{"line":222,"type":"binary-expr","locations":[{"start":{"line":222,"column":16},"end":{"line":222,"column":23}},{"start":{"line":222,"column":27},"end":{"line":222,"column":40}}]},"34":{"line":226,"type":"if","locations":[{"start":{"line":226,"column":12},"end":{"line":226,"column":12}},{"start":{"line":226,"column":12},"end":{"line":226,"column":12}}]},"35":{"line":226,"type":"binary-expr","locations":[{"start":{"line":226,"column":16},"end":{"line":226,"column":23}},{"start":{"line":226,"column":27},"end":{"line":226,"column":40}}]},"36":{"line":231,"type":"binary-expr","locations":[{"start":{"line":231,"column":27},"end":{"line":231,"column":34}},{"start":{"line":231,"column":38},"end":{"line":231,"column":42}}]},"37":{"line":233,"type":"if","locations":[{"start":{"line":233,"column":12},"end":{"line":233,"column":12}},{"start":{"line":233,"column":12},"end":{"line":233,"column":12}}]},"38":{"line":237,"type":"binary-expr","locations":[{"start":{"line":237,"column":13},"end":{"line":237,"column":38}},{"start":{"line":237,"column":44},"end":{"line":237,"column":54}}]},"39":{"line":255,"type":"if","locations":[{"start":{"line":255,"column":4},"end":{"line":255,"column":4}},{"start":{"line":255,"column":4},"end":{"line":255,"column":4}}]},"40":{"line":256,"type":"binary-expr","locations":[{"start":{"line":256,"column":18},"end":{"line":256,"column":25}},{"start":{"line":256,"column":29},"end":{"line":256,"column":33}}]},"41":{"line":300,"type":"if","locations":[{"start":{"line":300,"column":4},"end":{"line":300,"column":4}},{"start":{"line":300,"column":4},"end":{"line":300,"column":4}}]},"42":{"line":301,"type":"if","locations":[{"start":{"line":301,"column":8},"end":{"line":301,"column":8}},{"start":{"line":301,"column":8},"end":{"line":301,"column":8}}]},"43":{"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}}]},"44":{"line":306,"type":"if","locations":[{"start":{"line":306,"column":15},"end":{"line":306,"column":15}},{"start":{"line":306,"column":15},"end":{"line":306,"column":15}}]},"45":{"line":310,"type":"if","locations":[{"start":{"line":310,"column":8},"end":{"line":310,"column":8}},{"start":{"line":310,"column":8},"end":{"line":310,"column":8}}]},"46":{"line":310,"type":"binary-expr","locations":[{"start":{"line":310,"column":12},"end":{"line":310,"column":25}},{"start":{"line":310,"column":29},"end":{"line":310,"column":49}}]},"47":{"line":312,"type":"cond-expr","locations":[{"start":{"line":312,"column":36},"end":{"line":312,"column":50}},{"start":{"line":312,"column":53},"end":{"line":312,"column":57}}]},"48":{"line":313,"type":"if","locations":[{"start":{"line":313,"column":12},"end":{"line":313,"column":12}},{"start":{"line":313,"column":12},"end":{"line":313,"column":12}}]},"49":{"line":313,"type":"binary-expr","locations":[{"start":{"line":313,"column":16},"end":{"line":313,"column":25}},{"start":{"line":313,"column":30},"end":{"line":313,"column":40}},{"start":{"line":313,"column":44},"end":{"line":313,"column":63}}]},"50":{"line":315,"type":"if","locations":[{"start":{"line":315,"column":16},"end":{"line":315,"column":16}},{"start":{"line":315,"column":16},"end":{"line":315,"column":16}}]},"51":{"line":338,"type":"if","locations":[{"start":{"line":338,"column":4},"end":{"line":338,"column":4}},{"start":{"line":338,"column":4},"end":{"line":338,"column":4}}]},"52":{"line":343,"type":"if","locations":[{"start":{"line":343,"column":11},"end":{"line":343,"column":11}},{"start":{"line":343,"column":11},"end":{"line":343,"column":11}}]},"53":{"line":362,"type":"if","locations":[{"start":{"line":362,"column":4},"end":{"line":362,"column":4}},{"start":{"line":362,"column":4},"end":{"line":362,"column":4}}]},"54":{"line":362,"type":"binary-expr","locations":[{"start":{"line":362,"column":8},"end":{"line":362,"column":20}},{"start":{"line":362,"column":24},"end":{"line":362,"column":46}}]},"55":{"line":364,"type":"if","locations":[{"start":{"line":364,"column":11},"end":{"line":364,"column":11}},{"start":{"line":364,"column":11},"end":{"line":364,"column":11}}]},"56":{"line":384,"type":"if","locations":[{"start":{"line":384,"column":8},"end":{"line":384,"column":8}},{"start":{"line":384,"column":8},"end":{"line":384,"column":8}}]},"57":{"line":386,"type":"cond-expr","locations":[{"start":{"line":386,"column":39},"end":{"line":386,"column":62}},{"start":{"line":386,"column":65},"end":{"line":386,"column":69}}]},"58":{"line":386,"type":"binary-expr","locations":[{"start":{"line":386,"column":18},"end":{"line":386,"column":23}},{"start":{"line":386,"column":27},"end":{"line":386,"column":35}}]},"59":{"line":387,"type":"cond-expr","locations":[{"start":{"line":387,"column":53},"end":{"line":387,"column":83}},{"start":{"line":387,"column":86},"end":{"line":387,"column":90}}]},"60":{"line":387,"type":"binary-expr","locations":[{"start":{"line":387,"column":25},"end":{"line":387,"column":30}},{"start":{"line":387,"column":34},"end":{"line":387,"column":49}}]},"61":{"line":390,"type":"if","locations":[{"start":{"line":390,"column":12},"end":{"line":390,"column":12}},{"start":{"line":390,"column":12},"end":{"line":390,"column":12}}]},"62":{"line":394,"type":"if","locations":[{"start":{"line":394,"column":12},"end":{"line":394,"column":12}},{"start":{"line":394,"column":12},"end":{"line":394,"column":12}}]},"63":{"line":416,"type":"if","locations":[{"start":{"line":416,"column":8},"end":{"line":416,"column":8}},{"start":{"line":416,"column":8},"end":{"line":416,"column":8}}]},"64":{"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}}]},"65":{"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}}]},"66":{"line":441,"type":"if","locations":[{"start":{"line":441,"column":8},"end":{"line":441,"column":8}},{"start":{"line":441,"column":8},"end":{"line":441,"column":8}}]},"67":{"line":441,"type":"binary-expr","locations":[{"start":{"line":441,"column":12},"end":{"line":441,"column":22}},{"start":{"line":441,"column":26},"end":{"line":441,"column":43}}]},"68":{"line":443,"type":"if","locations":[{"start":{"line":443,"column":15},"end":{"line":443,"column":15}},{"start":{"line":443,"column":15},"end":{"line":443,"column":15}}]},"69":{"line":466,"type":"if","locations":[{"start":{"line":466,"column":8},"end":{"line":466,"column":8}},{"start":{"line":466,"column":8},"end":{"line":466,"column":8}}]},"70":{"line":469,"type":"if","locations":[{"start":{"line":469,"column":12},"end":{"line":469,"column":12}},{"start":{"line":469,"column":12},"end":{"line":469,"column":12}}]},"71":{"line":469,"type":"binary-expr","locations":[{"start":{"line":469,"column":16},"end":{"line":469,"column":26}},{"start":{"line":469,"column":30},"end":{"line":469,"column":47}}]},"72":{"line":471,"type":"if","locations":[{"start":{"line":471,"column":19},"end":{"line":471,"column":19}},{"start":{"line":471,"column":19},"end":{"line":471,"column":19}}]},"73":{"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}}]},"74":{"line":507,"type":"if","locations":[{"start":{"line":507,"column":8},"end":{"line":507,"column":8}},{"start":{"line":507,"column":8},"end":{"line":507,"column":8}}]},"75":{"line":528,"type":"if","locations":[{"start":{"line":528,"column":8},"end":{"line":528,"column":8}},{"start":{"line":528,"column":8},"end":{"line":528,"column":8}}]},"76":{"line":528,"type":"binary-expr","locations":[{"start":{"line":528,"column":12},"end":{"line":528,"column":19}},{"start":{"line":528,"column":23},"end":{"line":528,"column":36}}]},"77":{"line":544,"type":"if","locations":[{"start":{"line":544,"column":8},"end":{"line":544,"column":8}},{"start":{"line":544,"column":8},"end":{"line":544,"column":8}}]},"78":{"line":545,"type":"cond-expr","locations":[{"start":{"line":545,"column":26},"end":{"line":545,"column":42}},{"start":{"line":545,"column":45},"end":{"line":545,"column":65}}]},"79":{"line":545,"type":"binary-expr","locations":[{"start":{"line":545,"column":26},"end":{"line":545,"column":35}},{"start":{"line":545,"column":39},"end":{"line":545,"column":42}}]},"80":{"line":546,"type":"if","locations":[{"start":{"line":546,"column":12},"end":{"line":546,"column":12}},{"start":{"line":546,"column":12},"end":{"line":546,"column":12}}]},"81":{"line":557,"type":"if","locations":[{"start":{"line":557,"column":8},"end":{"line":557,"column":8}},{"start":{"line":557,"column":8},"end":{"line":557,"column":8}}]},"82":{"line":557,"type":"binary-expr","locations":[{"start":{"line":557,"column":12},"end":{"line":557,"column":15}},{"start":{"line":557,"column":19},"end":{"line":557,"column":44}}]},"83":{"line":580,"type":"if","locations":[{"start":{"line":580,"column":8},"end":{"line":580,"column":8}},{"start":{"line":580,"column":8},"end":{"line":580,"column":8}}]},"84":{"line":580,"type":"binary-expr","locations":[{"start":{"line":580,"column":12},"end":{"line":580,"column":34}},{"start":{"line":581,"column":17},"end":{"line":581,"column":44}},{"start":{"line":581,"column":48},"end":{"line":581,"column":77}}]},"85":{"line":597,"type":"if","locations":[{"start":{"line":597,"column":8},"end":{"line":597,"column":8}},{"start":{"line":597,"column":8},"end":{"line":597,"column":8}}]},"86":{"line":597,"type":"binary-expr","locations":[{"start":{"line":597,"column":12},"end":{"line":597,"column":34}},{"start":{"line":598,"column":17},"end":{"line":598,"column":44}},{"start":{"line":598,"column":48},"end":{"line":598,"column":77}}]},"87":{"line":668,"type":"if","locations":[{"start":{"line":668,"column":8},"end":{"line":668,"column":8}},{"start":{"line":668,"column":8},"end":{"line":668,"column":8}}]},"88":{"line":674,"type":"binary-expr","locations":[{"start":{"line":674,"column":15},"end":{"line":674,"column":23}},{"start":{"line":674,"column":27},"end":{"line":674,"column":36}}]},"89":{"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}}]},"90":{"line":701,"type":"binary-expr","locations":[{"start":{"line":701,"column":12},"end":{"line":701,"column":16}},{"start":{"line":701,"column":20},"end":{"line":701,"column":35}}]},"91":{"line":705,"type":"if","locations":[{"start":{"line":705,"column":8},"end":{"line":705,"column":8}},{"start":{"line":705,"column":8},"end":{"line":705,"column":8}}]},"92":{"line":723,"type":"if","locations":[{"start":{"line":723,"column":8},"end":{"line":723,"column":8}},{"start":{"line":723,"column":8},"end":{"line":723,"column":8}}]},"93":{"line":738,"type":"if","locations":[{"start":{"line":738,"column":8},"end":{"line":738,"column":8}},{"start":{"line":738,"column":8},"end":{"line":738,"column":8}}]},"94":{"line":755,"type":"cond-expr","locations":[{"start":{"line":755,"column":42},"end":{"line":755,"column":52}},{"start":{"line":755,"column":55},"end":{"line":755,"column":62}}]},"95":{"line":760,"type":"if","locations":[{"start":{"line":760,"column":8},"end":{"line":760,"column":8}},{"start":{"line":760,"column":8},"end":{"line":760,"column":8}}]},"96":{"line":766,"type":"if","locations":[{"start":{"line":766,"column":8},"end":{"line":766,"column":8}},{"start":{"line":766,"column":8},"end":{"line":766,"column":8}}]},"97":{"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}}]},"98":{"line":797,"type":"if","locations":[{"start":{"line":797,"column":8},"end":{"line":797,"column":8}},{"start":{"line":797,"column":8},"end":{"line":797,"column":8}}]},"99":{"line":797,"type":"binary-expr","locations":[{"start":{"line":797,"column":12},"end":{"line":797,"column":13}},{"start":{"line":797,"column":17},"end":{"line":797,"column":24}}]},"100":{"line":801,"type":"if","locations":[{"start":{"line":801,"column":8},"end":{"line":801,"column":8}},{"start":{"line":801,"column":8},"end":{"line":801,"column":8}}]},"101":{"line":801,"type":"binary-expr","locations":[{"start":{"line":801,"column":12},"end":{"line":801,"column":13}},{"start":{"line":801,"column":17},"end":{"line":801,"column":24}}]},"102":{"line":816,"type":"cond-expr","locations":[{"start":{"line":817,"column":8},"end":{"line":819,"column":9}},{"start":{"line":820,"column":8},"end":{"line":835,"column":9}}]},"103":{"line":826,"type":"if","locations":[{"start":{"line":826,"column":12},"end":{"line":826,"column":12}},{"start":{"line":826,"column":12},"end":{"line":826,"column":12}}]},"104":{"line":828,"type":"if","locations":[{"start":{"line":828,"column":19},"end":{"line":828,"column":19}},{"start":{"line":828,"column":19},"end":{"line":828,"column":19}}]},"105":{"line":840,"type":"binary-expr","locations":[{"start":{"line":840,"column":18},"end":{"line":840,"column":22}},{"start":{"line":840,"column":26},"end":{"line":840,"column":40}},{"start":{"line":841,"column":16},"end":{"line":841,"column":48}},{"start":{"line":842,"column":13},"end":{"line":842,"column":46}},{"start":{"line":843,"column":16},"end":{"line":843,"column":62}}]},"106":{"line":891,"type":"if","locations":[{"start":{"line":891,"column":4},"end":{"line":891,"column":4}},{"start":{"line":891,"column":4},"end":{"line":891,"column":4}}]},"107":{"line":892,"type":"if","locations":[{"start":{"line":892,"column":8},"end":{"line":892,"column":8}},{"start":{"line":892,"column":8},"end":{"line":892,"column":8}}]},"108":{"line":895,"type":"if","locations":[{"start":{"line":895,"column":15},"end":{"line":895,"column":15}},{"start":{"line":895,"column":15},"end":{"line":895,"column":15}}]},"109":{"line":895,"type":"binary-expr","locations":[{"start":{"line":895,"column":19},"end":{"line":895,"column":33}},{"start":{"line":895,"column":37},"end":{"line":895,"column":58}}]},"110":{"line":897,"type":"if","locations":[{"start":{"line":897,"column":15},"end":{"line":897,"column":15}},{"start":{"line":897,"column":15},"end":{"line":897,"column":15}}]},"111":{"line":899,"type":"if","locations":[{"start":{"line":899,"column":15},"end":{"line":899,"column":15}},{"start":{"line":899,"column":15},"end":{"line":899,"column":15}}]},"112":{"line":899,"type":"binary-expr","locations":[{"start":{"line":899,"column":19},"end":{"line":899,"column":27}},{"start":{"line":899,"column":31},"end":{"line":899,"column":45}}]},"113":{"line":901,"type":"if","locations":[{"start":{"line":901,"column":16},"end":{"line":901,"column":16}},{"start":{"line":901,"column":16},"end":{"line":901,"column":16}}]},"114":{"line":916,"type":"binary-expr","locations":[{"start":{"line":916,"column":18},"end":{"line":916,"column":23}},{"start":{"line":916,"column":27},"end":{"line":916,"column":29}}]},"115":{"line":930,"type":"cond-expr","locations":[{"start":{"line":930,"column":43},"end":{"line":930,"column":58}},{"start":{"line":930,"column":61},"end":{"line":930,"column":69}}]},"116":{"line":930,"type":"binary-expr","locations":[{"start":{"line":930,"column":12},"end":{"line":930,"column":20}},{"start":{"line":930,"column":24},"end":{"line":930,"column":39}}]},"117":{"line":935,"type":"if","locations":[{"start":{"line":935,"column":4},"end":{"line":935,"column":4}},{"start":{"line":935,"column":4},"end":{"line":935,"column":4}}]},"118":{"line":935,"type":"binary-expr","locations":[{"start":{"line":935,"column":8},"end":{"line":935,"column":13}},{"start":{"line":935,"column":17},"end":{"line":935,"column":29}}]},"119":{"line":936,"type":"binary-expr","locations":[{"start":{"line":936,"column":32},"end":{"line":936,"column":39}},{"start":{"line":936,"column":43},"end":{"line":936,"column":51}}]},"120":{"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}}]},"121":{"line":942,"type":"binary-expr","locations":[{"start":{"line":942,"column":8},"end":{"line":942,"column":12}},{"start":{"line":942,"column":16},"end":{"line":942,"column":18}}]},"122":{"line":952,"type":"if","locations":[{"start":{"line":952,"column":16},"end":{"line":952,"column":16}},{"start":{"line":952,"column":16},"end":{"line":952,"column":16}}]},"123":{"line":955,"type":"binary-expr","locations":[{"start":{"line":955,"column":22},"end":{"line":955,"column":29}},{"start":{"line":955,"column":33},"end":{"line":955,"column":41}}]},"124":{"line":957,"type":"if","locations":[{"start":{"line":957,"column":16},"end":{"line":957,"column":16}},{"start":{"line":957,"column":16},"end":{"line":957,"column":16}}]},"125":{"line":957,"type":"binary-expr","locations":[{"start":{"line":957,"column":20},"end":{"line":957,"column":40}},{"start":{"line":957,"column":44},"end":{"line":957,"column":63}}]},"126":{"line":963,"type":"cond-expr","locations":[{"start":{"line":963,"column":32},"end":{"line":963,"column":35}},{"start":{"line":963,"column":38},"end":{"line":963,"column":42}}]},"127":{"line":980,"type":"if","locations":[{"start":{"line":980,"column":4},"end":{"line":980,"column":4}},{"start":{"line":980,"column":4},"end":{"line":980,"column":4}}]},"128":{"line":981,"type":"binary-expr","locations":[{"start":{"line":981,"column":18},"end":{"line":981,"column":25}},{"start":{"line":981,"column":29},"end":{"line":981,"column":33}}]},"129":{"line":992,"type":"if","locations":[{"start":{"line":992,"column":4},"end":{"line":992,"column":4}},{"start":{"line":992,"column":4},"end":{"line":992,"column":4}}]},"130":{"line":1004,"type":"cond-expr","locations":[{"start":{"line":1004,"column":29},"end":{"line":1004,"column":31}},{"start":{"line":1004,"column":34},"end":{"line":1004,"column":38}}]},"131":{"line":1008,"type":"if","locations":[{"start":{"line":1008,"column":12},"end":{"line":1008,"column":12}},{"start":{"line":1008,"column":12},"end":{"line":1008,"column":12}}]},"132":{"line":1024,"type":"binary-expr","locations":[{"start":{"line":1024,"column":22},"end":{"line":1024,"column":33}},{"start":{"line":1024,"column":37},"end":{"line":1024,"column":39}}]},"133":{"line":1040,"type":"binary-expr","locations":[{"start":{"line":1040,"column":27},"end":{"line":1040,"column":34}},{"start":{"line":1040,"column":38},"end":{"line":1040,"column":42}}]},"134":{"line":1050,"type":"if","locations":[{"start":{"line":1050,"column":12},"end":{"line":1050,"column":12}},{"start":{"line":1050,"column":12},"end":{"line":1050,"column":12}}]},"135":{"line":1054,"type":"binary-expr","locations":[{"start":{"line":1054,"column":27},"end":{"line":1054,"column":34}},{"start":{"line":1054,"column":38},"end":{"line":1054,"column":46}}]},"136":{"line":1072,"type":"binary-expr","locations":[{"start":{"line":1072,"column":22},"end":{"line":1072,"column":29}},{"start":{"line":1072,"column":33},"end":{"line":1072,"column":37}}]},"137":{"line":1119,"type":"binary-expr","locations":[{"start":{"line":1119,"column":12},"end":{"line":1119,"column":13}},{"start":{"line":1119,"column":17},"end":{"line":1119,"column":18}}]},"138":{"line":1122,"type":"if","locations":[{"start":{"line":1122,"column":12},"end":{"line":1122,"column":12}},{"start":{"line":1122,"column":12},"end":{"line":1122,"column":12}}]},"139":{"line":1164,"type":"if","locations":[{"start":{"line":1164,"column":8},"end":{"line":1164,"column":8}},{"start":{"line":1164,"column":8},"end":{"line":1164,"column":8}}]},"140":{"line":1165,"type":"if","locations":[{"start":{"line":1165,"column":12},"end":{"line":1165,"column":12}},{"start":{"line":1165,"column":12},"end":{"line":1165,"column":12}}]},"141":{"line":1166,"type":"if","locations":[{"start":{"line":1166,"column":16},"end":{"line":1166,"column":16}},{"start":{"line":1166,"column":16},"end":{"line":1166,"column":16}}]},"142":{"line":1166,"type":"binary-expr","locations":[{"start":{"line":1166,"column":20},"end":{"line":1166,"column":25}},{"start":{"line":1166,"column":29},"end":{"line":1166,"column":37}},{"start":{"line":1166,"column":41},"end":{"line":1166,"column":63}}]},"143":{"line":1201,"type":"if","locations":[{"start":{"line":1201,"column":8},"end":{"line":1201,"column":8}},{"start":{"line":1201,"column":8},"end":{"line":1201,"column":8}}]},"144":{"line":1201,"type":"binary-expr","locations":[{"start":{"line":1201,"column":12},"end":{"line":1201,"column":17}},{"start":{"line":1201,"column":21},"end":{"line":1201,"column":29}}]},"145":{"line":1204,"type":"if","locations":[{"start":{"line":1204,"column":12},"end":{"line":1204,"column":12}},{"start":{"line":1204,"column":12},"end":{"line":1204,"column":12}}]},"146":{"line":1208,"type":"if","locations":[{"start":{"line":1208,"column":12},"end":{"line":1208,"column":12}},{"start":{"line":1208,"column":12},"end":{"line":1208,"column":12}}]},"147":{"line":1212,"type":"if","locations":[{"start":{"line":1212,"column":12},"end":{"line":1212,"column":12}},{"start":{"line":1212,"column":12},"end":{"line":1212,"column":12}}]},"148":{"line":1216,"type":"binary-expr","locations":[{"start":{"line":1216,"column":15},"end":{"line":1216,"column":18}},{"start":{"line":1216,"column":22},"end":{"line":1216,"column":30}}]},"149":{"line":1290,"type":"if","locations":[{"start":{"line":1290,"column":4},"end":{"line":1290,"column":4}},{"start":{"line":1290,"column":4},"end":{"line":1290,"column":4}}]},"150":{"line":1291,"type":"binary-expr","locations":[{"start":{"line":1291,"column":19},"end":{"line":1291,"column":50}},{"start":{"line":1291,"column":54},"end":{"line":1291,"column":71}}]},"151":{"line":1293,"type":"if","locations":[{"start":{"line":1293,"column":8},"end":{"line":1293,"column":8}},{"start":{"line":1293,"column":8},"end":{"line":1293,"column":8}}]},"152":{"line":1293,"type":"binary-expr","locations":[{"start":{"line":1293,"column":12},"end":{"line":1293,"column":15}},{"start":{"line":1293,"column":19},"end":{"line":1293,"column":31}}]},"153":{"line":1301,"type":"if","locations":[{"start":{"line":1301,"column":8},"end":{"line":1301,"column":8}},{"start":{"line":1301,"column":8},"end":{"line":1301,"column":8}}]},"154":{"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}}]},"155":{"line":1313,"type":"cond-expr","locations":[{"start":{"line":1313,"column":26},"end":{"line":1313,"column":36}},{"start":{"line":1313,"column":39},"end":{"line":1313,"column":42}}]},"156":{"line":1396,"type":"binary-expr","locations":[{"start":{"line":1396,"column":22},"end":{"line":1396,"column":31}},{"start":{"line":1396,"column":35},"end":{"line":1396,"column":45}},{"start":{"line":1396,"column":49},"end":{"line":1396,"column":52}}]},"157":{"line":1401,"type":"if","locations":[{"start":{"line":1401,"column":8},"end":{"line":1401,"column":8}},{"start":{"line":1401,"column":8},"end":{"line":1401,"column":8}}]},"158":{"line":1525,"type":"if","locations":[{"start":{"line":1525,"column":4},"end":{"line":1525,"column":4}},{"start":{"line":1525,"column":4},"end":{"line":1525,"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 (Y_Node._instances.has(node) && Y_Node._instances.get(node)._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';","","if (!window.WeakMap)","{"," window.WeakMap = function() {"," this._map = {};"," };"," window.WeakMap.prototype = {"," has: function(k) {"," return this._map[k] ? true : false;"," },"," get: function(k) {"," return this._map[k];"," },"," set: function(k,v) {"," this._map[k] = v;"," },"," 'delete': function(k) {"," delete this._map[k];"," }"," };","}","","/**"," * A list of Node instances that have been created"," * @private"," * @type Object"," * @property _instances"," * @static"," *"," */","Y_Node._instances = new WeakMap();","","/**"," * 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;",""," 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)"," instance = Y_Node._instances.get(node); // 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.set(node, 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.get(node._node);"," if (instance) {"," instance.destroy();"," } else { // purge in case added by other means"," Y.Event.purgeElement(node);"," }"," });"," }",""," Y_Node._instances.delete(this._node);",""," this._node = null;"," this._stateProxy = null;"," },",""," /**"," * 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 instance = Y.Node._instances.get(node),"," 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 {"," }","};","","/**"," * Import the named method, or methods from the host onto NodeList."," *"," * @method importMethod"," * @static"," * @param {Object} host The object containing the methods to copy. Typically a prototype."," * @param {String|String[]} name The name, or an Array of names of the methods to import onto NodeList."," * @param {String} [altName] An alternative name to use for the method added to NodeList, which may differ from the name"," * of the original host object. Has no effect if name is an array of method names."," */","NodeList.importMethod = function(host, name, altName) {"," if (typeof name === 'string') {"," altName = altName || name;"," NodeList.addMethod(altName, 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.get(node);"," 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.get(nodes[0]) || getTemp(nodes[0]);"," val = instance._get(attr);"," if (val && val.nodeType) {"," isNodeList = true;"," }"," }",""," Y.Array.each(nodes, function(node) {"," instance = Y.Node._instances.get(node);",""," 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},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0],"28":[0,0],"29":[0,0],"30":[0,0,0,0],"31":[0,0],"32":[0,0],"33":[0,0],"34":[0,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,0],"88":[0,0],"89":[0,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],"106":[0,0],"107":[0,0],"108":[0,0,0,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],"145":[0,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]},"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,"87":0,"88":0,"89":0,"90":0,"91":0,"92":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":129,"loc":{"start":{"line":129,"column":21},"end":{"line":129,"column":32}}},"8":{"name":"(anonymous_8)","line":133,"loc":{"start":{"line":133,"column":13},"end":{"line":133,"column":25}}},"9":{"name":"(anonymous_9)","line":136,"loc":{"start":{"line":136,"column":13},"end":{"line":136,"column":25}}},"10":{"name":"(anonymous_10)","line":139,"loc":{"start":{"line":139,"column":13},"end":{"line":139,"column":27}}},"11":{"name":"(anonymous_11)","line":142,"loc":{"start":{"line":142,"column":18},"end":{"line":142,"column":30}}},"12":{"name":"(anonymous_12)","line":145,"loc":{"start":{"line":145,"column":15},"end":{"line":145,"column":27}}},"13":{"name":"(anonymous_13)","line":171,"loc":{"start":{"line":171,"column":20},"end":{"line":171,"column":35}}},"14":{"name":"(anonymous_14)","line":189,"loc":{"start":{"line":189,"column":18},"end":{"line":189,"column":38}}},"15":{"name":"(anonymous_15)","line":219,"loc":{"start":{"line":219,"column":19},"end":{"line":219,"column":47}}},"16":{"name":"(anonymous_16)","line":221,"loc":{"start":{"line":221,"column":33},"end":{"line":221,"column":44}}},"17":{"name":"(anonymous_17)","line":258,"loc":{"start":{"line":258,"column":22},"end":{"line":258,"column":52}}},"18":{"name":"(anonymous_18)","line":263,"loc":{"start":{"line":263,"column":27},"end":{"line":263,"column":39}}},"19":{"name":"(anonymous_19)","line":300,"loc":{"start":{"line":300,"column":13},"end":{"line":300,"column":28}}},"20":{"name":"(anonymous_20)","line":338,"loc":{"start":{"line":338,"column":24},"end":{"line":338,"column":44}}},"21":{"name":"(anonymous_21)","line":362,"loc":{"start":{"line":362,"column":24},"end":{"line":362,"column":39}}},"22":{"name":"(anonymous_22)","line":383,"loc":{"start":{"line":383,"column":14},"end":{"line":383,"column":25}}},"23":{"name":"(anonymous_23)","line":417,"loc":{"start":{"line":417,"column":9},"end":{"line":417,"column":24}}},"24":{"name":"(anonymous_24)","line":441,"loc":{"start":{"line":441,"column":10},"end":{"line":441,"column":25}}},"25":{"name":"(anonymous_25)","line":467,"loc":{"start":{"line":467,"column":9},"end":{"line":467,"column":29}}},"26":{"name":"(anonymous_26)","line":491,"loc":{"start":{"line":491,"column":14},"end":{"line":491,"column":32}}},"27":{"name":"(anonymous_27)","line":495,"loc":{"start":{"line":495,"column":35},"end":{"line":495,"column":50}}},"28":{"name":"(anonymous_28)","line":509,"loc":{"start":{"line":509,"column":14},"end":{"line":509,"column":30}}},"29":{"name":"(anonymous_29)","line":514,"loc":{"start":{"line":514,"column":32},"end":{"line":514,"column":47}}},"30":{"name":"(anonymous_30)","line":529,"loc":{"start":{"line":529,"column":15},"end":{"line":529,"column":33}}},"31":{"name":"(anonymous_31)","line":545,"loc":{"start":{"line":545,"column":11},"end":{"line":545,"column":25}}},"32":{"name":"(anonymous_32)","line":558,"loc":{"start":{"line":558,"column":13},"end":{"line":558,"column":26}}},"33":{"name":"(anonymous_33)","line":582,"loc":{"start":{"line":582,"column":14},"end":{"line":582,"column":45}}},"34":{"name":"(anonymous_34)","line":600,"loc":{"start":{"line":600,"column":15},"end":{"line":600,"column":46}}},"35":{"name":"(anonymous_35)","line":618,"loc":{"start":{"line":618,"column":14},"end":{"line":618,"column":32}}},"36":{"name":"(anonymous_36)","line":632,"loc":{"start":{"line":632,"column":10},"end":{"line":632,"column":28}}},"37":{"name":"(anonymous_37)","line":644,"loc":{"start":{"line":644,"column":14},"end":{"line":644,"column":27}}},"38":{"name":"(anonymous_38)","line":658,"loc":{"start":{"line":658,"column":9},"end":{"line":658,"column":28}}},"39":{"name":"(anonymous_39)","line":669,"loc":{"start":{"line":669,"column":9},"end":{"line":669,"column":28}}},"40":{"name":"(anonymous_40)","line":689,"loc":{"start":{"line":689,"column":10},"end":{"line":689,"column":29}}},"41":{"name":"(anonymous_41)","line":702,"loc":{"start":{"line":702,"column":12},"end":{"line":702,"column":30}}},"42":{"name":"(anonymous_42)","line":725,"loc":{"start":{"line":725,"column":13},"end":{"line":725,"column":31}}},"43":{"name":"(anonymous_43)","line":741,"loc":{"start":{"line":741,"column":18},"end":{"line":741,"column":42}}},"44":{"name":"(anonymous_44)","line":758,"loc":{"start":{"line":758,"column":13},"end":{"line":758,"column":33}}},"45":{"name":"(anonymous_45)","line":771,"loc":{"start":{"line":771,"column":43},"end":{"line":771,"column":58}}},"46":{"name":"(anonymous_46)","line":797,"loc":{"start":{"line":797,"column":12},"end":{"line":797,"column":44}}},"47":{"name":"(anonymous_47)","line":821,"loc":{"start":{"line":821,"column":8},"end":{"line":821,"column":28}}},"48":{"name":"(anonymous_48)","line":824,"loc":{"start":{"line":824,"column":8},"end":{"line":824,"column":28}}},"49":{"name":"(anonymous_49)","line":842,"loc":{"start":{"line":842,"column":15},"end":{"line":842,"column":32}}},"50":{"name":"(anonymous_50)","line":850,"loc":{"start":{"line":850,"column":16},"end":{"line":850,"column":27}}},"51":{"name":"(anonymous_51)","line":859,"loc":{"start":{"line":859,"column":11},"end":{"line":859,"column":22}}},"52":{"name":"(anonymous_52)","line":869,"loc":{"start":{"line":869,"column":16},"end":{"line":869,"column":27}}},"53":{"name":"(anonymous_53)","line":892,"loc":{"start":{"line":892,"column":15},"end":{"line":892,"column":31}}},"54":{"name":"(anonymous_54)","line":904,"loc":{"start":{"line":904,"column":32},"end":{"line":904,"column":47}}},"55":{"name":"(anonymous_55)","line":933,"loc":{"start":{"line":933,"column":23},"end":{"line":933,"column":42}}},"56":{"name":"(anonymous_56)","line":937,"loc":{"start":{"line":937,"column":16},"end":{"line":937,"column":48}}},"57":{"name":"(anonymous_57)","line":945,"loc":{"start":{"line":945,"column":21},"end":{"line":945,"column":49}}},"58":{"name":"(anonymous_58)","line":947,"loc":{"start":{"line":947,"column":35},"end":{"line":947,"column":46}}},"59":{"name":"(anonymous_59)","line":951,"loc":{"start":{"line":951,"column":38},"end":{"line":951,"column":53}}},"60":{"name":"(anonymous_60)","line":983,"loc":{"start":{"line":983,"column":24},"end":{"line":983,"column":54}}},"61":{"name":"(anonymous_61)","line":988,"loc":{"start":{"line":988,"column":27},"end":{"line":988,"column":39}}},"62":{"name":"(anonymous_62)","line":994,"loc":{"start":{"line":994,"column":24},"end":{"line":994,"column":39}}},"63":{"name":"(anonymous_63)","line":1007,"loc":{"start":{"line":1007,"column":13},"end":{"line":1007,"column":44}}},"64":{"name":"(anonymous_64)","line":1010,"loc":{"start":{"line":1010,"column":18},"end":{"line":1010,"column":33}}},"65":{"name":"(anonymous_65)","line":1027,"loc":{"start":{"line":1027,"column":10},"end":{"line":1027,"column":26}}},"66":{"name":"(anonymous_66)","line":1040,"loc":{"start":{"line":1040,"column":10},"end":{"line":1040,"column":32}}},"67":{"name":"(anonymous_67)","line":1042,"loc":{"start":{"line":1042,"column":34},"end":{"line":1042,"column":56}}},"68":{"name":"(anonymous_68)","line":1049,"loc":{"start":{"line":1049,"column":11},"end":{"line":1049,"column":33}}},"69":{"name":"(anonymous_69)","line":1052,"loc":{"start":{"line":1052,"column":34},"end":{"line":1052,"column":56}}},"70":{"name":"(anonymous_70)","line":1072,"loc":{"start":{"line":1072,"column":10},"end":{"line":1072,"column":32}}},"71":{"name":"(anonymous_71)","line":1074,"loc":{"start":{"line":1074,"column":41},"end":{"line":1074,"column":63}}},"72":{"name":"(anonymous_72)","line":1086,"loc":{"start":{"line":1086,"column":12},"end":{"line":1086,"column":23}}},"73":{"name":"(anonymous_73)","line":1097,"loc":{"start":{"line":1097,"column":13},"end":{"line":1097,"column":28}}},"74":{"name":"(anonymous_74)","line":1108,"loc":{"start":{"line":1108,"column":12},"end":{"line":1108,"column":31}}},"75":{"name":"(anonymous_75)","line":1122,"loc":{"start":{"line":1122,"column":13},"end":{"line":1122,"column":28}}},"76":{"name":"(anonymous_76)","line":1125,"loc":{"start":{"line":1125,"column":28},"end":{"line":1125,"column":46}}},"77":{"name":"(anonymous_77)","line":1140,"loc":{"start":{"line":1140,"column":9},"end":{"line":1140,"column":20}}},"78":{"name":"(anonymous_78)","line":1150,"loc":{"start":{"line":1150,"column":10},"end":{"line":1150,"column":21}}},"79":{"name":"(anonymous_79)","line":1154,"loc":{"start":{"line":1154,"column":16},"end":{"line":1154,"column":27}}},"80":{"name":"(anonymous_80)","line":1162,"loc":{"start":{"line":1162,"column":13},"end":{"line":1162,"column":24}}},"81":{"name":"(anonymous_81)","line":1186,"loc":{"start":{"line":1186,"column":10},"end":{"line":1186,"column":21}}},"82":{"name":"(anonymous_82)","line":1195,"loc":{"start":{"line":1195,"column":13},"end":{"line":1195,"column":24}}},"83":{"name":"(anonymous_83)","line":1199,"loc":{"start":{"line":1199,"column":14},"end":{"line":1199,"column":25}}},"84":{"name":"(anonymous_84)","line":1228,"loc":{"start":{"line":1228,"column":17},"end":{"line":1228,"column":28}}},"85":{"name":"(anonymous_85)","line":1286,"loc":{"start":{"line":1286,"column":25},"end":{"line":1286,"column":40}}},"86":{"name":"(anonymous_86)","line":1302,"loc":{"start":{"line":1302,"column":24},"end":{"line":1302,"column":39}}},"87":{"name":"(anonymous_87)","line":1322,"loc":{"start":{"line":1322,"column":8},"end":{"line":1322,"column":24}}},"88":{"name":"(anonymous_88)","line":1392,"loc":{"start":{"line":1392,"column":28},"end":{"line":1392,"column":59}}},"89":{"name":"(anonymous_89)","line":1393,"loc":{"start":{"line":1393,"column":33},"end":{"line":1393,"column":44}}},"90":{"name":"(anonymous_90)","line":1513,"loc":{"start":{"line":1513,"column":3},"end":{"line":1513,"column":20}}},"91":{"name":"(anonymous_91)","line":1514,"loc":{"start":{"line":1514,"column":31},"end":{"line":1514,"column":58}}},"92":{"name":"(anonymous_92)","line":1527,"loc":{"start":{"line":1527,"column":35},"end":{"line":1527,"column":50}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1644,"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":127,"column":0},"end":{"line":150,"column":1}},"41":{"start":{"line":129,"column":4},"end":{"line":131,"column":6}},"42":{"start":{"line":130,"column":8},"end":{"line":130,"column":23}},"43":{"start":{"line":132,"column":4},"end":{"line":149,"column":6}},"44":{"start":{"line":134,"column":12},"end":{"line":134,"column":61}},"45":{"start":{"line":137,"column":12},"end":{"line":137,"column":46}},"46":{"start":{"line":140,"column":12},"end":{"line":140,"column":43}},"47":{"start":{"line":143,"column":12},"end":{"line":143,"column":46}},"48":{"start":{"line":146,"column":12},"end":{"line":146,"column":37}},"49":{"start":{"line":146,"column":25},"end":{"line":146,"column":37}},"50":{"start":{"line":147,"column":12},"end":{"line":147,"column":74}},"51":{"start":{"line":160,"column":0},"end":{"line":160,"column":34}},"52":{"start":{"line":171,"column":0},"end":{"line":176,"column":2}},"53":{"start":{"line":172,"column":4},"end":{"line":174,"column":5}},"54":{"start":{"line":173,"column":8},"end":{"line":173,"column":59}},"55":{"start":{"line":175,"column":4},"end":{"line":175,"column":16}},"56":{"start":{"line":189,"column":0},"end":{"line":206,"column":2}},"57":{"start":{"line":190,"column":4},"end":{"line":203,"column":5}},"58":{"start":{"line":191,"column":9},"end":{"line":198,"column":9}},"59":{"start":{"line":192,"column":12},"end":{"line":197,"column":13}},"60":{"start":{"line":193,"column":16},"end":{"line":193,"column":33}},"61":{"start":{"line":194,"column":19},"end":{"line":197,"column":13}},"62":{"start":{"line":196,"column":16},"end":{"line":196,"column":33}},"63":{"start":{"line":199,"column":11},"end":{"line":203,"column":5}},"64":{"start":{"line":200,"column":8},"end":{"line":200,"column":19}},"65":{"start":{"line":201,"column":11},"end":{"line":203,"column":5}},"66":{"start":{"line":202,"column":8},"end":{"line":202,"column":19}},"67":{"start":{"line":205,"column":4},"end":{"line":205,"column":15}},"68":{"start":{"line":219,"column":0},"end":{"line":246,"column":2}},"69":{"start":{"line":220,"column":4},"end":{"line":245,"column":5}},"70":{"start":{"line":221,"column":8},"end":{"line":243,"column":10}},"71":{"start":{"line":222,"column":12},"end":{"line":224,"column":20}},"72":{"start":{"line":226,"column":12},"end":{"line":228,"column":13}},"73":{"start":{"line":227,"column":16},"end":{"line":227,"column":40}},"74":{"start":{"line":230,"column":12},"end":{"line":232,"column":13}},"75":{"start":{"line":231,"column":16},"end":{"line":231,"column":40}},"76":{"start":{"line":233,"column":12},"end":{"line":233,"column":37}},"77":{"start":{"line":235,"column":12},"end":{"line":235,"column":50}},"78":{"start":{"line":237,"column":12},"end":{"line":239,"column":13}},"79":{"start":{"line":238,"column":16},"end":{"line":238,"column":49}},"80":{"start":{"line":241,"column":12},"end":{"line":241,"column":56}},"81":{"start":{"line":242,"column":12},"end":{"line":242,"column":23}},"82":{"start":{"line":258,"column":0},"end":{"line":267,"column":2}},"83":{"start":{"line":259,"column":4},"end":{"line":266,"column":5}},"84":{"start":{"line":260,"column":8},"end":{"line":260,"column":34}},"85":{"start":{"line":261,"column":8},"end":{"line":261,"column":52}},"86":{"start":{"line":263,"column":8},"end":{"line":265,"column":11}},"87":{"start":{"line":264,"column":12},"end":{"line":264,"column":41}},"88":{"start":{"line":300,"column":0},"end":{"line":327,"column":2}},"89":{"start":{"line":301,"column":4},"end":{"line":302,"column":19}},"90":{"start":{"line":304,"column":4},"end":{"line":324,"column":5}},"91":{"start":{"line":305,"column":8},"end":{"line":312,"column":9}},"92":{"start":{"line":306,"column":12},"end":{"line":306,"column":44}},"93":{"start":{"line":307,"column":12},"end":{"line":309,"column":13}},"94":{"start":{"line":308,"column":16},"end":{"line":308,"column":28}},"95":{"start":{"line":310,"column":15},"end":{"line":312,"column":9}},"96":{"start":{"line":311,"column":12},"end":{"line":311,"column":24}},"97":{"start":{"line":314,"column":8},"end":{"line":323,"column":9}},"98":{"start":{"line":315,"column":12},"end":{"line":315,"column":51}},"99":{"start":{"line":316,"column":12},"end":{"line":316,"column":58}},"100":{"start":{"line":317,"column":12},"end":{"line":322,"column":13}},"101":{"start":{"line":318,"column":16},"end":{"line":318,"column":44}},"102":{"start":{"line":319,"column":16},"end":{"line":321,"column":17}},"103":{"start":{"line":320,"column":20},"end":{"line":320,"column":58}},"104":{"start":{"line":326,"column":4},"end":{"line":326,"column":20}},"105":{"start":{"line":338,"column":0},"end":{"line":352,"column":2}},"106":{"start":{"line":339,"column":4},"end":{"line":340,"column":16}},"107":{"start":{"line":342,"column":4},"end":{"line":349,"column":5}},"108":{"start":{"line":343,"column":8},"end":{"line":343,"column":23}},"109":{"start":{"line":344,"column":8},"end":{"line":344,"column":31}},"110":{"start":{"line":346,"column":8},"end":{"line":346,"column":43}},"111":{"start":{"line":347,"column":11},"end":{"line":349,"column":5}},"112":{"start":{"line":348,"column":8},"end":{"line":348,"column":25}},"113":{"start":{"line":351,"column":4},"end":{"line":351,"column":15}},"114":{"start":{"line":362,"column":0},"end":{"line":373,"column":2}},"115":{"start":{"line":363,"column":4},"end":{"line":364,"column":12}},"116":{"start":{"line":366,"column":4},"end":{"line":370,"column":5}},"117":{"start":{"line":367,"column":8},"end":{"line":367,"column":55}},"118":{"start":{"line":368,"column":11},"end":{"line":370,"column":5}},"119":{"start":{"line":369,"column":8},"end":{"line":369,"column":25}},"120":{"start":{"line":372,"column":4},"end":{"line":372,"column":15}},"121":{"start":{"line":375,"column":0},"end":{"line":872,"column":9}},"122":{"start":{"line":384,"column":8},"end":{"line":386,"column":33}},"123":{"start":{"line":388,"column":8},"end":{"line":404,"column":9}},"124":{"start":{"line":389,"column":12},"end":{"line":389,"column":36}},"125":{"start":{"line":390,"column":12},"end":{"line":390,"column":70}},"126":{"start":{"line":391,"column":12},"end":{"line":391,"column":91}},"127":{"start":{"line":392,"column":12},"end":{"line":392,"column":34}},"128":{"start":{"line":394,"column":12},"end":{"line":396,"column":13}},"129":{"start":{"line":395,"column":16},"end":{"line":395,"column":32}},"130":{"start":{"line":398,"column":12},"end":{"line":400,"column":13}},"131":{"start":{"line":399,"column":16},"end":{"line":399,"column":57}},"132":{"start":{"line":403,"column":12},"end":{"line":403,"column":35}},"133":{"start":{"line":405,"column":8},"end":{"line":405,"column":19}},"134":{"start":{"line":418,"column":8},"end":{"line":418,"column":16}},"135":{"start":{"line":420,"column":8},"end":{"line":424,"column":9}},"136":{"start":{"line":421,"column":12},"end":{"line":421,"column":38}},"137":{"start":{"line":423,"column":12},"end":{"line":423,"column":34}},"138":{"start":{"line":426,"column":8},"end":{"line":430,"column":9}},"139":{"start":{"line":427,"column":12},"end":{"line":427,"column":45}},"140":{"start":{"line":428,"column":15},"end":{"line":430,"column":9}},"141":{"start":{"line":429,"column":12},"end":{"line":429,"column":23}},"142":{"start":{"line":431,"column":8},"end":{"line":431,"column":19}},"143":{"start":{"line":442,"column":8},"end":{"line":443,"column":16}},"144":{"start":{"line":445,"column":8},"end":{"line":451,"column":9}},"145":{"start":{"line":446,"column":12},"end":{"line":446,"column":47}},"146":{"start":{"line":447,"column":15},"end":{"line":451,"column":9}},"147":{"start":{"line":448,"column":12},"end":{"line":448,"column":51}},"148":{"start":{"line":450,"column":12},"end":{"line":450,"column":63}},"149":{"start":{"line":453,"column":8},"end":{"line":453,"column":19}},"150":{"start":{"line":468,"column":8},"end":{"line":468,"column":44}},"151":{"start":{"line":470,"column":8},"end":{"line":480,"column":9}},"152":{"start":{"line":471,"column":12},"end":{"line":471,"column":49}},"153":{"start":{"line":473,"column":12},"end":{"line":479,"column":13}},"154":{"start":{"line":474,"column":16},"end":{"line":474,"column":56}},"155":{"start":{"line":475,"column":19},"end":{"line":479,"column":13}},"156":{"start":{"line":476,"column":16},"end":{"line":476,"column":51}},"157":{"start":{"line":478,"column":16},"end":{"line":478,"column":61}},"158":{"start":{"line":482,"column":8},"end":{"line":482,"column":20}},"159":{"start":{"line":492,"column":8},"end":{"line":498,"column":9}},"160":{"start":{"line":493,"column":12},"end":{"line":493,"column":36}},"161":{"start":{"line":495,"column":12},"end":{"line":497,"column":21}},"162":{"start":{"line":496,"column":16},"end":{"line":496,"column":31}},"163":{"start":{"line":500,"column":8},"end":{"line":500,"column":20}},"164":{"start":{"line":510,"column":8},"end":{"line":510,"column":21}},"165":{"start":{"line":511,"column":8},"end":{"line":517,"column":9}},"166":{"start":{"line":512,"column":12},"end":{"line":512,"column":34}},"167":{"start":{"line":514,"column":12},"end":{"line":516,"column":21}},"168":{"start":{"line":515,"column":16},"end":{"line":515,"column":37}},"169":{"start":{"line":519,"column":8},"end":{"line":519,"column":19}},"170":{"start":{"line":530,"column":8},"end":{"line":530,"column":30}},"171":{"start":{"line":532,"column":8},"end":{"line":534,"column":9}},"172":{"start":{"line":533,"column":12},"end":{"line":533,"column":36}},"173":{"start":{"line":535,"column":8},"end":{"line":535,"column":32}},"174":{"start":{"line":546,"column":8},"end":{"line":546,"column":30}},"175":{"start":{"line":548,"column":8},"end":{"line":553,"column":9}},"176":{"start":{"line":549,"column":12},"end":{"line":549,"column":66}},"177":{"start":{"line":550,"column":12},"end":{"line":552,"column":13}},"178":{"start":{"line":551,"column":16},"end":{"line":551,"column":65}},"179":{"start":{"line":555,"column":8},"end":{"line":555,"column":21}},"180":{"start":{"line":559,"column":8},"end":{"line":560,"column":55}},"181":{"start":{"line":561,"column":8},"end":{"line":565,"column":9}},"182":{"start":{"line":562,"column":12},"end":{"line":562,"column":29}},"183":{"start":{"line":564,"column":12},"end":{"line":564,"column":23}},"184":{"start":{"line":566,"column":8},"end":{"line":566,"column":19}},"185":{"start":{"line":584,"column":8},"end":{"line":587,"column":9}},"186":{"start":{"line":586,"column":12},"end":{"line":586,"column":30}},"187":{"start":{"line":589,"column":8},"end":{"line":589,"column":89}},"188":{"start":{"line":601,"column":8},"end":{"line":604,"column":9}},"189":{"start":{"line":603,"column":12},"end":{"line":603,"column":30}},"190":{"start":{"line":605,"column":8},"end":{"line":605,"column":90}},"191":{"start":{"line":619,"column":8},"end":{"line":619,"column":91}},"192":{"start":{"line":633,"column":8},"end":{"line":633,"column":87}},"193":{"start":{"line":645,"column":8},"end":{"line":645,"column":62}},"194":{"start":{"line":659,"column":8},"end":{"line":659,"column":67}},"195":{"start":{"line":670,"column":8},"end":{"line":670,"column":21}},"196":{"start":{"line":672,"column":8},"end":{"line":676,"column":9}},"197":{"start":{"line":673,"column":12},"end":{"line":673,"column":69}},"198":{"start":{"line":674,"column":12},"end":{"line":674,"column":39}},"199":{"start":{"line":675,"column":12},"end":{"line":675,"column":45}},"200":{"start":{"line":678,"column":8},"end":{"line":678,"column":37}},"201":{"start":{"line":690,"column":8},"end":{"line":690,"column":53}},"202":{"start":{"line":703,"column":8},"end":{"line":703,"column":30}},"203":{"start":{"line":705,"column":8},"end":{"line":707,"column":9}},"204":{"start":{"line":706,"column":12},"end":{"line":706,"column":46}},"205":{"start":{"line":709,"column":8},"end":{"line":711,"column":9}},"206":{"start":{"line":710,"column":12},"end":{"line":710,"column":27}},"207":{"start":{"line":713,"column":8},"end":{"line":713,"column":20}},"208":{"start":{"line":726,"column":8},"end":{"line":726,"column":30}},"209":{"start":{"line":727,"column":8},"end":{"line":729,"column":9}},"210":{"start":{"line":728,"column":12},"end":{"line":728,"column":45}},"211":{"start":{"line":730,"column":8},"end":{"line":730,"column":71}},"212":{"start":{"line":731,"column":8},"end":{"line":731,"column":20}},"213":{"start":{"line":742,"column":8},"end":{"line":744,"column":9}},"214":{"start":{"line":743,"column":12},"end":{"line":743,"column":38}},"215":{"start":{"line":746,"column":8},"end":{"line":746,"column":99}},"216":{"start":{"line":759,"column":8},"end":{"line":760,"column":21}},"217":{"start":{"line":762,"column":8},"end":{"line":762,"column":21}},"218":{"start":{"line":764,"column":8},"end":{"line":766,"column":9}},"219":{"start":{"line":765,"column":12},"end":{"line":765,"column":26}},"220":{"start":{"line":768,"column":8},"end":{"line":768,"column":25}},"221":{"start":{"line":770,"column":8},"end":{"line":779,"column":9}},"222":{"start":{"line":771,"column":12},"end":{"line":778,"column":15}},"223":{"start":{"line":772,"column":16},"end":{"line":772,"column":55}},"224":{"start":{"line":773,"column":16},"end":{"line":777,"column":17}},"225":{"start":{"line":774,"column":19},"end":{"line":774,"column":38}},"226":{"start":{"line":776,"column":20},"end":{"line":776,"column":47}},"227":{"start":{"line":781,"column":8},"end":{"line":781,"column":45}},"228":{"start":{"line":783,"column":8},"end":{"line":783,"column":26}},"229":{"start":{"line":784,"column":8},"end":{"line":784,"column":32}},"230":{"start":{"line":798,"column":8},"end":{"line":799,"column":16}},"231":{"start":{"line":801,"column":8},"end":{"line":803,"column":9}},"232":{"start":{"line":802,"column":12},"end":{"line":802,"column":24}},"233":{"start":{"line":805,"column":8},"end":{"line":807,"column":9}},"234":{"start":{"line":806,"column":12},"end":{"line":806,"column":24}},"235":{"start":{"line":809,"column":8},"end":{"line":809,"column":42}},"236":{"start":{"line":810,"column":8},"end":{"line":810,"column":42}},"237":{"start":{"line":822,"column":12},"end":{"line":822,"column":62}},"238":{"start":{"line":825,"column":12},"end":{"line":825,"column":53}},"239":{"start":{"line":826,"column":12},"end":{"line":828,"column":52}},"240":{"start":{"line":830,"column":12},"end":{"line":837,"column":13}},"241":{"start":{"line":831,"column":16},"end":{"line":831,"column":53}},"242":{"start":{"line":832,"column":19},"end":{"line":837,"column":13}},"243":{"start":{"line":833,"column":16},"end":{"line":833,"column":53}},"244":{"start":{"line":835,"column":16},"end":{"line":835,"column":62}},"245":{"start":{"line":836,"column":16},"end":{"line":836,"column":57}},"246":{"start":{"line":838,"column":12},"end":{"line":838,"column":24}},"247":{"start":{"line":843,"column":8},"end":{"line":843,"column":30}},"248":{"start":{"line":844,"column":8},"end":{"line":847,"column":65}},"249":{"start":{"line":851,"column":8},"end":{"line":851,"column":45}},"250":{"start":{"line":860,"column":8},"end":{"line":860,"column":54}},"251":{"start":{"line":861,"column":8},"end":{"line":861,"column":20}},"252":{"start":{"line":870,"column":8},"end":{"line":870,"column":26}},"253":{"start":{"line":874,"column":0},"end":{"line":874,"column":16}},"254":{"start":{"line":875,"column":0},"end":{"line":875,"column":19}},"255":{"start":{"line":892,"column":0},"end":{"line":921,"column":2}},"256":{"start":{"line":893,"column":4},"end":{"line":893,"column":17}},"257":{"start":{"line":895,"column":4},"end":{"line":913,"column":5}},"258":{"start":{"line":896,"column":8},"end":{"line":912,"column":9}},"259":{"start":{"line":897,"column":12},"end":{"line":897,"column":32}},"260":{"start":{"line":898,"column":12},"end":{"line":898,"column":44}},"261":{"start":{"line":899,"column":15},"end":{"line":912,"column":9}},"262":{"start":{"line":900,"column":12},"end":{"line":900,"column":28}},"263":{"start":{"line":901,"column":15},"end":{"line":912,"column":9}},"264":{"start":{"line":902,"column":12},"end":{"line":902,"column":34}},"265":{"start":{"line":903,"column":15},"end":{"line":912,"column":9}},"266":{"start":{"line":904,"column":12},"end":{"line":908,"column":15}},"267":{"start":{"line":905,"column":16},"end":{"line":907,"column":17}},"268":{"start":{"line":906,"column":20},"end":{"line":906,"column":41}},"269":{"start":{"line":909,"column":12},"end":{"line":909,"column":24}},"270":{"start":{"line":911,"column":12},"end":{"line":911,"column":44}},"271":{"start":{"line":920,"column":4},"end":{"line":920,"column":30}},"272":{"start":{"line":923,"column":0},"end":{"line":923,"column":27}},"273":{"start":{"line":933,"column":0},"end":{"line":935,"column":2}},"274":{"start":{"line":934,"column":4},"end":{"line":934,"column":70}},"275":{"start":{"line":937,"column":0},"end":{"line":943,"column":2}},"276":{"start":{"line":938,"column":4},"end":{"line":938,"column":32}},"277":{"start":{"line":939,"column":4},"end":{"line":942,"column":5}},"278":{"start":{"line":940,"column":8},"end":{"line":940,"column":53}},"279":{"start":{"line":945,"column":0},"end":{"line":971,"column":2}},"280":{"start":{"line":946,"column":4},"end":{"line":970,"column":5}},"281":{"start":{"line":947,"column":8},"end":{"line":968,"column":10}},"282":{"start":{"line":948,"column":12},"end":{"line":949,"column":33}},"283":{"start":{"line":951,"column":12},"end":{"line":964,"column":15}},"284":{"start":{"line":952,"column":16},"end":{"line":954,"column":27}},"285":{"start":{"line":956,"column":16},"end":{"line":958,"column":17}},"286":{"start":{"line":957,"column":20},"end":{"line":957,"column":59}},"287":{"start":{"line":959,"column":16},"end":{"line":959,"column":42}},"288":{"start":{"line":960,"column":16},"end":{"line":960,"column":45}},"289":{"start":{"line":961,"column":16},"end":{"line":963,"column":17}},"290":{"start":{"line":962,"column":20},"end":{"line":962,"column":45}},"291":{"start":{"line":967,"column":12},"end":{"line":967,"column":43}},"292":{"start":{"line":983,"column":0},"end":{"line":992,"column":2}},"293":{"start":{"line":984,"column":4},"end":{"line":991,"column":5}},"294":{"start":{"line":985,"column":8},"end":{"line":985,"column":34}},"295":{"start":{"line":986,"column":8},"end":{"line":986,"column":48}},"296":{"start":{"line":988,"column":8},"end":{"line":990,"column":11}},"297":{"start":{"line":989,"column":12},"end":{"line":989,"column":43}},"298":{"start":{"line":994,"column":0},"end":{"line":1004,"column":2}},"299":{"start":{"line":995,"column":4},"end":{"line":995,"column":33}},"300":{"start":{"line":996,"column":4},"end":{"line":999,"column":5}},"301":{"start":{"line":997,"column":8},"end":{"line":997,"column":43}},"302":{"start":{"line":998,"column":8},"end":{"line":998,"column":33}},"303":{"start":{"line":1001,"column":4},"end":{"line":1001,"column":21}},"304":{"start":{"line":1002,"column":4},"end":{"line":1002,"column":27}},"305":{"start":{"line":1003,"column":4},"end":{"line":1003,"column":15}},"306":{"start":{"line":1006,"column":0},"end":{"line":1231,"column":9}},"307":{"start":{"line":1008,"column":8},"end":{"line":1008,"column":39}},"308":{"start":{"line":1010,"column":8},"end":{"line":1015,"column":11}},"309":{"start":{"line":1011,"column":12},"end":{"line":1011,"column":53}},"310":{"start":{"line":1012,"column":12},"end":{"line":1014,"column":13}},"311":{"start":{"line":1013,"column":16},"end":{"line":1013,"column":30}},"312":{"start":{"line":1017,"column":8},"end":{"line":1017,"column":19}},"313":{"start":{"line":1028,"column":8},"end":{"line":1028,"column":49}},"314":{"start":{"line":1041,"column":8},"end":{"line":1041,"column":28}},"315":{"start":{"line":1042,"column":8},"end":{"line":1045,"column":11}},"316":{"start":{"line":1043,"column":12},"end":{"line":1043,"column":31}},"317":{"start":{"line":1044,"column":12},"end":{"line":1044,"column":67}},"318":{"start":{"line":1046,"column":8},"end":{"line":1046,"column":24}},"319":{"start":{"line":1050,"column":8},"end":{"line":1050,"column":28}},"320":{"start":{"line":1052,"column":8},"end":{"line":1059,"column":11}},"321":{"start":{"line":1053,"column":12},"end":{"line":1053,"column":55}},"322":{"start":{"line":1054,"column":12},"end":{"line":1056,"column":13}},"323":{"start":{"line":1055,"column":16},"end":{"line":1055,"column":55}},"324":{"start":{"line":1058,"column":12},"end":{"line":1058,"column":75}},"325":{"start":{"line":1060,"column":8},"end":{"line":1060,"column":24}},"326":{"start":{"line":1073,"column":8},"end":{"line":1073,"column":28}},"327":{"start":{"line":1074,"column":8},"end":{"line":1078,"column":11}},"328":{"start":{"line":1075,"column":12},"end":{"line":1075,"column":31}},"329":{"start":{"line":1076,"column":12},"end":{"line":1076,"column":38}},"330":{"start":{"line":1077,"column":12},"end":{"line":1077,"column":59}},"331":{"start":{"line":1087,"column":8},"end":{"line":1087,"column":50}},"332":{"start":{"line":1098,"column":8},"end":{"line":1098,"column":69}},"333":{"start":{"line":1109,"column":8},"end":{"line":1109,"column":63}},"334":{"start":{"line":1123,"column":8},"end":{"line":1123,"column":19}},"335":{"start":{"line":1124,"column":8},"end":{"line":1124,"column":23}},"336":{"start":{"line":1125,"column":8},"end":{"line":1129,"column":11}},"337":{"start":{"line":1126,"column":12},"end":{"line":1128,"column":13}},"338":{"start":{"line":1127,"column":16},"end":{"line":1127,"column":33}},"339":{"start":{"line":1131,"column":8},"end":{"line":1131,"column":28}},"340":{"start":{"line":1141,"column":8},"end":{"line":1141,"column":34}},"341":{"start":{"line":1151,"column":8},"end":{"line":1151,"column":31}},"342":{"start":{"line":1163,"column":8},"end":{"line":1166,"column":35}},"343":{"start":{"line":1168,"column":8},"end":{"line":1176,"column":9}},"344":{"start":{"line":1169,"column":12},"end":{"line":1173,"column":13}},"345":{"start":{"line":1170,"column":16},"end":{"line":1172,"column":17}},"346":{"start":{"line":1171,"column":20},"end":{"line":1171,"column":50}},"347":{"start":{"line":1175,"column":12},"end":{"line":1175,"column":56}},"348":{"start":{"line":1178,"column":8},"end":{"line":1178,"column":20}},"349":{"start":{"line":1187,"column":8},"end":{"line":1187,"column":34}},"350":{"start":{"line":1196,"column":8},"end":{"line":1196,"column":38}},"351":{"start":{"line":1200,"column":8},"end":{"line":1203,"column":17}},"352":{"start":{"line":1205,"column":8},"end":{"line":1219,"column":9}},"353":{"start":{"line":1206,"column":12},"end":{"line":1206,"column":28}},"354":{"start":{"line":1207,"column":12},"end":{"line":1207,"column":35}},"355":{"start":{"line":1208,"column":12},"end":{"line":1210,"column":13}},"356":{"start":{"line":1209,"column":16},"end":{"line":1209,"column":37}},"357":{"start":{"line":1212,"column":12},"end":{"line":1214,"column":13}},"358":{"start":{"line":1213,"column":16},"end":{"line":1213,"column":62}},"359":{"start":{"line":1216,"column":12},"end":{"line":1218,"column":13}},"360":{"start":{"line":1217,"column":16},"end":{"line":1217,"column":57}},"361":{"start":{"line":1220,"column":8},"end":{"line":1220,"column":31}},"362":{"start":{"line":1229,"column":8},"end":{"line":1229,"column":27}},"363":{"start":{"line":1233,"column":0},"end":{"line":1277,"column":3}},"364":{"start":{"line":1286,"column":0},"end":{"line":1318,"column":2}},"365":{"start":{"line":1287,"column":4},"end":{"line":1292,"column":12}},"366":{"start":{"line":1294,"column":4},"end":{"line":1300,"column":5}},"367":{"start":{"line":1295,"column":8},"end":{"line":1295,"column":72}},"368":{"start":{"line":1296,"column":8},"end":{"line":1296,"column":34}},"369":{"start":{"line":1297,"column":8},"end":{"line":1299,"column":9}},"370":{"start":{"line":1298,"column":12},"end":{"line":1298,"column":30}},"371":{"start":{"line":1302,"column":4},"end":{"line":1315,"column":7}},"372":{"start":{"line":1303,"column":8},"end":{"line":1303,"column":47}},"373":{"start":{"line":1305,"column":8},"end":{"line":1307,"column":9}},"374":{"start":{"line":1306,"column":12},"end":{"line":1306,"column":37}},"375":{"start":{"line":1309,"column":8},"end":{"line":1309,"column":34}},"376":{"start":{"line":1310,"column":8},"end":{"line":1312,"column":9}},"377":{"start":{"line":1311,"column":12},"end":{"line":1311,"column":49}},"378":{"start":{"line":1314,"column":8},"end":{"line":1314,"column":22}},"379":{"start":{"line":1317,"column":4},"end":{"line":1317,"column":43}},"380":{"start":{"line":1320,"column":0},"end":{"line":1320,"column":22}},"381":{"start":{"line":1322,"column":0},"end":{"line":1324,"column":2}},"382":{"start":{"line":1323,"column":4},"end":{"line":1323,"column":31}},"383":{"start":{"line":1326,"column":0},"end":{"line":1326,"column":19}},"384":{"start":{"line":1332,"column":0},"end":{"line":1389,"column":6}},"385":{"start":{"line":1392,"column":0},"end":{"line":1413,"column":3}},"386":{"start":{"line":1393,"column":4},"end":{"line":1412,"column":6}},"387":{"start":{"line":1394,"column":8},"end":{"line":1397,"column":16}},"388":{"start":{"line":1399,"column":8},"end":{"line":1401,"column":9}},"389":{"start":{"line":1400,"column":12},"end":{"line":1400,"column":54}},"390":{"start":{"line":1403,"column":8},"end":{"line":1403,"column":56}},"391":{"start":{"line":1405,"column":8},"end":{"line":1409,"column":9}},"392":{"start":{"line":1406,"column":12},"end":{"line":1406,"column":29}},"393":{"start":{"line":1408,"column":12},"end":{"line":1408,"column":39}},"394":{"start":{"line":1411,"column":8},"end":{"line":1411,"column":19}},"395":{"start":{"line":1419,"column":0},"end":{"line":1518,"column":3}},"396":{"start":{"line":1514,"column":4},"end":{"line":1517,"column":6}},"397":{"start":{"line":1515,"column":8},"end":{"line":1515,"column":56}},"398":{"start":{"line":1516,"column":8},"end":{"line":1516,"column":19}},"399":{"start":{"line":1527,"column":0},"end":{"line":1534,"column":2}},"400":{"start":{"line":1528,"column":4},"end":{"line":1528,"column":26}},"401":{"start":{"line":1529,"column":4},"end":{"line":1531,"column":5}},"402":{"start":{"line":1530,"column":8},"end":{"line":1530,"column":38}},"403":{"start":{"line":1533,"column":4},"end":{"line":1533,"column":16}},"404":{"start":{"line":1536,"column":0},"end":{"line":1586,"column":3}},"405":{"start":{"line":1588,"column":0},"end":{"line":1641,"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":39}},{"start":{"line":51,"column":43},"end":{"line":51,"column":85}}]},"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":127,"type":"if","locations":[{"start":{"line":127,"column":0},"end":{"line":127,"column":0}},{"start":{"line":127,"column":0},"end":{"line":127,"column":0}}]},"17":{"line":134,"type":"cond-expr","locations":[{"start":{"line":134,"column":48},"end":{"line":134,"column":52}},{"start":{"line":134,"column":55},"end":{"line":134,"column":60}}]},"18":{"line":146,"type":"if","locations":[{"start":{"line":146,"column":12},"end":{"line":146,"column":12}},{"start":{"line":146,"column":12},"end":{"line":146,"column":12}}]},"19":{"line":147,"type":"cond-expr","locations":[{"start":{"line":147,"column":54},"end":{"line":147,"column":64}},{"start":{"line":147,"column":67},"end":{"line":147,"column":73}}]},"20":{"line":147,"type":"binary-expr","locations":[{"start":{"line":147,"column":20},"end":{"line":147,"column":30}},{"start":{"line":147,"column":34},"end":{"line":147,"column":50}}]},"21":{"line":172,"type":"if","locations":[{"start":{"line":172,"column":4},"end":{"line":172,"column":4}},{"start":{"line":172,"column":4},"end":{"line":172,"column":4}}]},"22":{"line":173,"type":"cond-expr","locations":[{"start":{"line":173,"column":33},"end":{"line":173,"column":37}},{"start":{"line":173,"column":40},"end":{"line":173,"column":58}}]},"23":{"line":173,"type":"binary-expr","locations":[{"start":{"line":173,"column":40},"end":{"line":173,"column":50}},{"start":{"line":173,"column":54},"end":{"line":173,"column":58}}]},"24":{"line":190,"type":"if","locations":[{"start":{"line":190,"column":4},"end":{"line":190,"column":4}},{"start":{"line":190,"column":4},"end":{"line":190,"column":4}}]},"25":{"line":191,"type":"if","locations":[{"start":{"line":191,"column":9},"end":{"line":191,"column":9}},{"start":{"line":191,"column":9},"end":{"line":191,"column":9}}]},"26":{"line":191,"type":"binary-expr","locations":[{"start":{"line":191,"column":13},"end":{"line":191,"column":35}},{"start":{"line":191,"column":39},"end":{"line":191,"column":63}}]},"27":{"line":192,"type":"if","locations":[{"start":{"line":192,"column":12},"end":{"line":192,"column":12}},{"start":{"line":192,"column":12},"end":{"line":192,"column":12}}]},"28":{"line":192,"type":"binary-expr","locations":[{"start":{"line":192,"column":16},"end":{"line":192,"column":32}},{"start":{"line":192,"column":36},"end":{"line":192,"column":55}}]},"29":{"line":194,"type":"if","locations":[{"start":{"line":194,"column":19},"end":{"line":194,"column":19}},{"start":{"line":194,"column":19},"end":{"line":194,"column":19}}]},"30":{"line":194,"type":"binary-expr","locations":[{"start":{"line":194,"column":24},"end":{"line":194,"column":32}},{"start":{"line":194,"column":36},"end":{"line":194,"column":47}},{"start":{"line":195,"column":21},"end":{"line":195,"column":27}},{"start":{"line":195,"column":31},"end":{"line":195,"column":48}}]},"31":{"line":199,"type":"if","locations":[{"start":{"line":199,"column":11},"end":{"line":199,"column":11}},{"start":{"line":199,"column":11},"end":{"line":199,"column":11}}]},"32":{"line":201,"type":"if","locations":[{"start":{"line":201,"column":11},"end":{"line":201,"column":11}},{"start":{"line":201,"column":11},"end":{"line":201,"column":11}}]},"33":{"line":220,"type":"if","locations":[{"start":{"line":220,"column":4},"end":{"line":220,"column":4}},{"start":{"line":220,"column":4},"end":{"line":220,"column":4}}]},"34":{"line":220,"type":"binary-expr","locations":[{"start":{"line":220,"column":8},"end":{"line":220,"column":12}},{"start":{"line":220,"column":16},"end":{"line":220,"column":18}},{"start":{"line":220,"column":22},"end":{"line":220,"column":45}}]},"35":{"line":226,"type":"if","locations":[{"start":{"line":226,"column":12},"end":{"line":226,"column":12}},{"start":{"line":226,"column":12},"end":{"line":226,"column":12}}]},"36":{"line":226,"type":"binary-expr","locations":[{"start":{"line":226,"column":16},"end":{"line":226,"column":23}},{"start":{"line":226,"column":27},"end":{"line":226,"column":40}}]},"37":{"line":230,"type":"if","locations":[{"start":{"line":230,"column":12},"end":{"line":230,"column":12}},{"start":{"line":230,"column":12},"end":{"line":230,"column":12}}]},"38":{"line":230,"type":"binary-expr","locations":[{"start":{"line":230,"column":16},"end":{"line":230,"column":23}},{"start":{"line":230,"column":27},"end":{"line":230,"column":40}}]},"39":{"line":235,"type":"binary-expr","locations":[{"start":{"line":235,"column":27},"end":{"line":235,"column":34}},{"start":{"line":235,"column":38},"end":{"line":235,"column":42}}]},"40":{"line":237,"type":"if","locations":[{"start":{"line":237,"column":12},"end":{"line":237,"column":12}},{"start":{"line":237,"column":12},"end":{"line":237,"column":12}}]},"41":{"line":241,"type":"binary-expr","locations":[{"start":{"line":241,"column":13},"end":{"line":241,"column":38}},{"start":{"line":241,"column":44},"end":{"line":241,"column":54}}]},"42":{"line":259,"type":"if","locations":[{"start":{"line":259,"column":4},"end":{"line":259,"column":4}},{"start":{"line":259,"column":4},"end":{"line":259,"column":4}}]},"43":{"line":260,"type":"binary-expr","locations":[{"start":{"line":260,"column":18},"end":{"line":260,"column":25}},{"start":{"line":260,"column":29},"end":{"line":260,"column":33}}]},"44":{"line":304,"type":"if","locations":[{"start":{"line":304,"column":4},"end":{"line":304,"column":4}},{"start":{"line":304,"column":4},"end":{"line":304,"column":4}}]},"45":{"line":305,"type":"if","locations":[{"start":{"line":305,"column":8},"end":{"line":305,"column":8}},{"start":{"line":305,"column":8},"end":{"line":305,"column":8}}]},"46":{"line":307,"type":"if","locations":[{"start":{"line":307,"column":12},"end":{"line":307,"column":12}},{"start":{"line":307,"column":12},"end":{"line":307,"column":12}}]},"47":{"line":310,"type":"if","locations":[{"start":{"line":310,"column":15},"end":{"line":310,"column":15}},{"start":{"line":310,"column":15},"end":{"line":310,"column":15}}]},"48":{"line":314,"type":"if","locations":[{"start":{"line":314,"column":8},"end":{"line":314,"column":8}},{"start":{"line":314,"column":8},"end":{"line":314,"column":8}}]},"49":{"line":314,"type":"binary-expr","locations":[{"start":{"line":314,"column":12},"end":{"line":314,"column":25}},{"start":{"line":314,"column":29},"end":{"line":314,"column":49}}]},"50":{"line":316,"type":"cond-expr","locations":[{"start":{"line":316,"column":36},"end":{"line":316,"column":50}},{"start":{"line":316,"column":53},"end":{"line":316,"column":57}}]},"51":{"line":317,"type":"if","locations":[{"start":{"line":317,"column":12},"end":{"line":317,"column":12}},{"start":{"line":317,"column":12},"end":{"line":317,"column":12}}]},"52":{"line":317,"type":"binary-expr","locations":[{"start":{"line":317,"column":16},"end":{"line":317,"column":25}},{"start":{"line":317,"column":30},"end":{"line":317,"column":40}},{"start":{"line":317,"column":44},"end":{"line":317,"column":63}}]},"53":{"line":319,"type":"if","locations":[{"start":{"line":319,"column":16},"end":{"line":319,"column":16}},{"start":{"line":319,"column":16},"end":{"line":319,"column":16}}]},"54":{"line":342,"type":"if","locations":[{"start":{"line":342,"column":4},"end":{"line":342,"column":4}},{"start":{"line":342,"column":4},"end":{"line":342,"column":4}}]},"55":{"line":347,"type":"if","locations":[{"start":{"line":347,"column":11},"end":{"line":347,"column":11}},{"start":{"line":347,"column":11},"end":{"line":347,"column":11}}]},"56":{"line":366,"type":"if","locations":[{"start":{"line":366,"column":4},"end":{"line":366,"column":4}},{"start":{"line":366,"column":4},"end":{"line":366,"column":4}}]},"57":{"line":366,"type":"binary-expr","locations":[{"start":{"line":366,"column":8},"end":{"line":366,"column":20}},{"start":{"line":366,"column":24},"end":{"line":366,"column":46}}]},"58":{"line":368,"type":"if","locations":[{"start":{"line":368,"column":11},"end":{"line":368,"column":11}},{"start":{"line":368,"column":11},"end":{"line":368,"column":11}}]},"59":{"line":388,"type":"if","locations":[{"start":{"line":388,"column":8},"end":{"line":388,"column":8}},{"start":{"line":388,"column":8},"end":{"line":388,"column":8}}]},"60":{"line":390,"type":"cond-expr","locations":[{"start":{"line":390,"column":39},"end":{"line":390,"column":62}},{"start":{"line":390,"column":65},"end":{"line":390,"column":69}}]},"61":{"line":390,"type":"binary-expr","locations":[{"start":{"line":390,"column":18},"end":{"line":390,"column":23}},{"start":{"line":390,"column":27},"end":{"line":390,"column":35}}]},"62":{"line":391,"type":"cond-expr","locations":[{"start":{"line":391,"column":53},"end":{"line":391,"column":83}},{"start":{"line":391,"column":86},"end":{"line":391,"column":90}}]},"63":{"line":391,"type":"binary-expr","locations":[{"start":{"line":391,"column":25},"end":{"line":391,"column":30}},{"start":{"line":391,"column":34},"end":{"line":391,"column":49}}]},"64":{"line":394,"type":"if","locations":[{"start":{"line":394,"column":12},"end":{"line":394,"column":12}},{"start":{"line":394,"column":12},"end":{"line":394,"column":12}}]},"65":{"line":398,"type":"if","locations":[{"start":{"line":398,"column":12},"end":{"line":398,"column":12}},{"start":{"line":398,"column":12},"end":{"line":398,"column":12}}]},"66":{"line":420,"type":"if","locations":[{"start":{"line":420,"column":8},"end":{"line":420,"column":8}},{"start":{"line":420,"column":8},"end":{"line":420,"column":8}}]},"67":{"line":426,"type":"if","locations":[{"start":{"line":426,"column":8},"end":{"line":426,"column":8}},{"start":{"line":426,"column":8},"end":{"line":426,"column":8}}]},"68":{"line":428,"type":"if","locations":[{"start":{"line":428,"column":15},"end":{"line":428,"column":15}},{"start":{"line":428,"column":15},"end":{"line":428,"column":15}}]},"69":{"line":445,"type":"if","locations":[{"start":{"line":445,"column":8},"end":{"line":445,"column":8}},{"start":{"line":445,"column":8},"end":{"line":445,"column":8}}]},"70":{"line":445,"type":"binary-expr","locations":[{"start":{"line":445,"column":12},"end":{"line":445,"column":22}},{"start":{"line":445,"column":26},"end":{"line":445,"column":43}}]},"71":{"line":447,"type":"if","locations":[{"start":{"line":447,"column":15},"end":{"line":447,"column":15}},{"start":{"line":447,"column":15},"end":{"line":447,"column":15}}]},"72":{"line":470,"type":"if","locations":[{"start":{"line":470,"column":8},"end":{"line":470,"column":8}},{"start":{"line":470,"column":8},"end":{"line":470,"column":8}}]},"73":{"line":473,"type":"if","locations":[{"start":{"line":473,"column":12},"end":{"line":473,"column":12}},{"start":{"line":473,"column":12},"end":{"line":473,"column":12}}]},"74":{"line":473,"type":"binary-expr","locations":[{"start":{"line":473,"column":16},"end":{"line":473,"column":26}},{"start":{"line":473,"column":30},"end":{"line":473,"column":47}}]},"75":{"line":475,"type":"if","locations":[{"start":{"line":475,"column":19},"end":{"line":475,"column":19}},{"start":{"line":475,"column":19},"end":{"line":475,"column":19}}]},"76":{"line":492,"type":"if","locations":[{"start":{"line":492,"column":8},"end":{"line":492,"column":8}},{"start":{"line":492,"column":8},"end":{"line":492,"column":8}}]},"77":{"line":511,"type":"if","locations":[{"start":{"line":511,"column":8},"end":{"line":511,"column":8}},{"start":{"line":511,"column":8},"end":{"line":511,"column":8}}]},"78":{"line":532,"type":"if","locations":[{"start":{"line":532,"column":8},"end":{"line":532,"column":8}},{"start":{"line":532,"column":8},"end":{"line":532,"column":8}}]},"79":{"line":532,"type":"binary-expr","locations":[{"start":{"line":532,"column":12},"end":{"line":532,"column":19}},{"start":{"line":532,"column":23},"end":{"line":532,"column":36}}]},"80":{"line":548,"type":"if","locations":[{"start":{"line":548,"column":8},"end":{"line":548,"column":8}},{"start":{"line":548,"column":8},"end":{"line":548,"column":8}}]},"81":{"line":549,"type":"cond-expr","locations":[{"start":{"line":549,"column":26},"end":{"line":549,"column":42}},{"start":{"line":549,"column":45},"end":{"line":549,"column":65}}]},"82":{"line":549,"type":"binary-expr","locations":[{"start":{"line":549,"column":26},"end":{"line":549,"column":35}},{"start":{"line":549,"column":39},"end":{"line":549,"column":42}}]},"83":{"line":550,"type":"if","locations":[{"start":{"line":550,"column":12},"end":{"line":550,"column":12}},{"start":{"line":550,"column":12},"end":{"line":550,"column":12}}]},"84":{"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}}]},"85":{"line":561,"type":"binary-expr","locations":[{"start":{"line":561,"column":12},"end":{"line":561,"column":15}},{"start":{"line":561,"column":19},"end":{"line":561,"column":44}}]},"86":{"line":584,"type":"if","locations":[{"start":{"line":584,"column":8},"end":{"line":584,"column":8}},{"start":{"line":584,"column":8},"end":{"line":584,"column":8}}]},"87":{"line":584,"type":"binary-expr","locations":[{"start":{"line":584,"column":12},"end":{"line":584,"column":34}},{"start":{"line":585,"column":17},"end":{"line":585,"column":44}},{"start":{"line":585,"column":48},"end":{"line":585,"column":77}}]},"88":{"line":601,"type":"if","locations":[{"start":{"line":601,"column":8},"end":{"line":601,"column":8}},{"start":{"line":601,"column":8},"end":{"line":601,"column":8}}]},"89":{"line":601,"type":"binary-expr","locations":[{"start":{"line":601,"column":12},"end":{"line":601,"column":34}},{"start":{"line":602,"column":17},"end":{"line":602,"column":44}},{"start":{"line":602,"column":48},"end":{"line":602,"column":77}}]},"90":{"line":672,"type":"if","locations":[{"start":{"line":672,"column":8},"end":{"line":672,"column":8}},{"start":{"line":672,"column":8},"end":{"line":672,"column":8}}]},"91":{"line":678,"type":"binary-expr","locations":[{"start":{"line":678,"column":15},"end":{"line":678,"column":23}},{"start":{"line":678,"column":27},"end":{"line":678,"column":36}}]},"92":{"line":705,"type":"if","locations":[{"start":{"line":705,"column":8},"end":{"line":705,"column":8}},{"start":{"line":705,"column":8},"end":{"line":705,"column":8}}]},"93":{"line":705,"type":"binary-expr","locations":[{"start":{"line":705,"column":12},"end":{"line":705,"column":16}},{"start":{"line":705,"column":20},"end":{"line":705,"column":35}}]},"94":{"line":709,"type":"if","locations":[{"start":{"line":709,"column":8},"end":{"line":709,"column":8}},{"start":{"line":709,"column":8},"end":{"line":709,"column":8}}]},"95":{"line":727,"type":"if","locations":[{"start":{"line":727,"column":8},"end":{"line":727,"column":8}},{"start":{"line":727,"column":8},"end":{"line":727,"column":8}}]},"96":{"line":742,"type":"if","locations":[{"start":{"line":742,"column":8},"end":{"line":742,"column":8}},{"start":{"line":742,"column":8},"end":{"line":742,"column":8}}]},"97":{"line":759,"type":"cond-expr","locations":[{"start":{"line":759,"column":42},"end":{"line":759,"column":52}},{"start":{"line":759,"column":55},"end":{"line":759,"column":62}}]},"98":{"line":764,"type":"if","locations":[{"start":{"line":764,"column":8},"end":{"line":764,"column":8}},{"start":{"line":764,"column":8},"end":{"line":764,"column":8}}]},"99":{"line":770,"type":"if","locations":[{"start":{"line":770,"column":8},"end":{"line":770,"column":8}},{"start":{"line":770,"column":8},"end":{"line":770,"column":8}}]},"100":{"line":773,"type":"if","locations":[{"start":{"line":773,"column":16},"end":{"line":773,"column":16}},{"start":{"line":773,"column":16},"end":{"line":773,"column":16}}]},"101":{"line":801,"type":"if","locations":[{"start":{"line":801,"column":8},"end":{"line":801,"column":8}},{"start":{"line":801,"column":8},"end":{"line":801,"column":8}}]},"102":{"line":801,"type":"binary-expr","locations":[{"start":{"line":801,"column":12},"end":{"line":801,"column":13}},{"start":{"line":801,"column":17},"end":{"line":801,"column":24}}]},"103":{"line":805,"type":"if","locations":[{"start":{"line":805,"column":8},"end":{"line":805,"column":8}},{"start":{"line":805,"column":8},"end":{"line":805,"column":8}}]},"104":{"line":805,"type":"binary-expr","locations":[{"start":{"line":805,"column":12},"end":{"line":805,"column":13}},{"start":{"line":805,"column":17},"end":{"line":805,"column":24}}]},"105":{"line":820,"type":"cond-expr","locations":[{"start":{"line":821,"column":8},"end":{"line":823,"column":9}},{"start":{"line":824,"column":8},"end":{"line":839,"column":9}}]},"106":{"line":830,"type":"if","locations":[{"start":{"line":830,"column":12},"end":{"line":830,"column":12}},{"start":{"line":830,"column":12},"end":{"line":830,"column":12}}]},"107":{"line":832,"type":"if","locations":[{"start":{"line":832,"column":19},"end":{"line":832,"column":19}},{"start":{"line":832,"column":19},"end":{"line":832,"column":19}}]},"108":{"line":844,"type":"binary-expr","locations":[{"start":{"line":844,"column":18},"end":{"line":844,"column":22}},{"start":{"line":844,"column":26},"end":{"line":844,"column":40}},{"start":{"line":845,"column":16},"end":{"line":845,"column":48}},{"start":{"line":846,"column":13},"end":{"line":846,"column":46}},{"start":{"line":847,"column":16},"end":{"line":847,"column":62}}]},"109":{"line":895,"type":"if","locations":[{"start":{"line":895,"column":4},"end":{"line":895,"column":4}},{"start":{"line":895,"column":4},"end":{"line":895,"column":4}}]},"110":{"line":896,"type":"if","locations":[{"start":{"line":896,"column":8},"end":{"line":896,"column":8}},{"start":{"line":896,"column":8},"end":{"line":896,"column":8}}]},"111":{"line":899,"type":"if","locations":[{"start":{"line":899,"column":15},"end":{"line":899,"column":15}},{"start":{"line":899,"column":15},"end":{"line":899,"column":15}}]},"112":{"line":899,"type":"binary-expr","locations":[{"start":{"line":899,"column":19},"end":{"line":899,"column":33}},{"start":{"line":899,"column":37},"end":{"line":899,"column":58}}]},"113":{"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}}]},"114":{"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}}]},"115":{"line":903,"type":"binary-expr","locations":[{"start":{"line":903,"column":19},"end":{"line":903,"column":27}},{"start":{"line":903,"column":31},"end":{"line":903,"column":45}}]},"116":{"line":905,"type":"if","locations":[{"start":{"line":905,"column":16},"end":{"line":905,"column":16}},{"start":{"line":905,"column":16},"end":{"line":905,"column":16}}]},"117":{"line":920,"type":"binary-expr","locations":[{"start":{"line":920,"column":18},"end":{"line":920,"column":23}},{"start":{"line":920,"column":27},"end":{"line":920,"column":29}}]},"118":{"line":934,"type":"cond-expr","locations":[{"start":{"line":934,"column":43},"end":{"line":934,"column":58}},{"start":{"line":934,"column":61},"end":{"line":934,"column":69}}]},"119":{"line":934,"type":"binary-expr","locations":[{"start":{"line":934,"column":12},"end":{"line":934,"column":20}},{"start":{"line":934,"column":24},"end":{"line":934,"column":39}}]},"120":{"line":939,"type":"if","locations":[{"start":{"line":939,"column":4},"end":{"line":939,"column":4}},{"start":{"line":939,"column":4},"end":{"line":939,"column":4}}]},"121":{"line":939,"type":"binary-expr","locations":[{"start":{"line":939,"column":8},"end":{"line":939,"column":13}},{"start":{"line":939,"column":17},"end":{"line":939,"column":29}}]},"122":{"line":940,"type":"binary-expr","locations":[{"start":{"line":940,"column":32},"end":{"line":940,"column":39}},{"start":{"line":940,"column":43},"end":{"line":940,"column":51}}]},"123":{"line":946,"type":"if","locations":[{"start":{"line":946,"column":4},"end":{"line":946,"column":4}},{"start":{"line":946,"column":4},"end":{"line":946,"column":4}}]},"124":{"line":946,"type":"binary-expr","locations":[{"start":{"line":946,"column":8},"end":{"line":946,"column":12}},{"start":{"line":946,"column":16},"end":{"line":946,"column":18}}]},"125":{"line":956,"type":"if","locations":[{"start":{"line":956,"column":16},"end":{"line":956,"column":16}},{"start":{"line":956,"column":16},"end":{"line":956,"column":16}}]},"126":{"line":959,"type":"binary-expr","locations":[{"start":{"line":959,"column":22},"end":{"line":959,"column":29}},{"start":{"line":959,"column":33},"end":{"line":959,"column":41}}]},"127":{"line":961,"type":"if","locations":[{"start":{"line":961,"column":16},"end":{"line":961,"column":16}},{"start":{"line":961,"column":16},"end":{"line":961,"column":16}}]},"128":{"line":961,"type":"binary-expr","locations":[{"start":{"line":961,"column":20},"end":{"line":961,"column":40}},{"start":{"line":961,"column":44},"end":{"line":961,"column":63}}]},"129":{"line":967,"type":"cond-expr","locations":[{"start":{"line":967,"column":32},"end":{"line":967,"column":35}},{"start":{"line":967,"column":38},"end":{"line":967,"column":42}}]},"130":{"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}}]},"131":{"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}}]},"132":{"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}}]},"133":{"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}}]},"134":{"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}}]},"135":{"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}}]},"136":{"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}}]},"137":{"line":1054,"type":"if","locations":[{"start":{"line":1054,"column":12},"end":{"line":1054,"column":12}},{"start":{"line":1054,"column":12},"end":{"line":1054,"column":12}}]},"138":{"line":1058,"type":"binary-expr","locations":[{"start":{"line":1058,"column":27},"end":{"line":1058,"column":34}},{"start":{"line":1058,"column":38},"end":{"line":1058,"column":46}}]},"139":{"line":1076,"type":"binary-expr","locations":[{"start":{"line":1076,"column":22},"end":{"line":1076,"column":29}},{"start":{"line":1076,"column":33},"end":{"line":1076,"column":37}}]},"140":{"line":1123,"type":"binary-expr","locations":[{"start":{"line":1123,"column":12},"end":{"line":1123,"column":13}},{"start":{"line":1123,"column":17},"end":{"line":1123,"column":18}}]},"141":{"line":1126,"type":"if","locations":[{"start":{"line":1126,"column":12},"end":{"line":1126,"column":12}},{"start":{"line":1126,"column":12},"end":{"line":1126,"column":12}}]},"142":{"line":1168,"type":"if","locations":[{"start":{"line":1168,"column":8},"end":{"line":1168,"column":8}},{"start":{"line":1168,"column":8},"end":{"line":1168,"column":8}}]},"143":{"line":1169,"type":"if","locations":[{"start":{"line":1169,"column":12},"end":{"line":1169,"column":12}},{"start":{"line":1169,"column":12},"end":{"line":1169,"column":12}}]},"144":{"line":1170,"type":"if","locations":[{"start":{"line":1170,"column":16},"end":{"line":1170,"column":16}},{"start":{"line":1170,"column":16},"end":{"line":1170,"column":16}}]},"145":{"line":1170,"type":"binary-expr","locations":[{"start":{"line":1170,"column":20},"end":{"line":1170,"column":25}},{"start":{"line":1170,"column":29},"end":{"line":1170,"column":37}},{"start":{"line":1170,"column":41},"end":{"line":1170,"column":63}}]},"146":{"line":1205,"type":"if","locations":[{"start":{"line":1205,"column":8},"end":{"line":1205,"column":8}},{"start":{"line":1205,"column":8},"end":{"line":1205,"column":8}}]},"147":{"line":1205,"type":"binary-expr","locations":[{"start":{"line":1205,"column":12},"end":{"line":1205,"column":17}},{"start":{"line":1205,"column":21},"end":{"line":1205,"column":29}}]},"148":{"line":1208,"type":"if","locations":[{"start":{"line":1208,"column":12},"end":{"line":1208,"column":12}},{"start":{"line":1208,"column":12},"end":{"line":1208,"column":12}}]},"149":{"line":1212,"type":"if","locations":[{"start":{"line":1212,"column":12},"end":{"line":1212,"column":12}},{"start":{"line":1212,"column":12},"end":{"line":1212,"column":12}}]},"150":{"line":1216,"type":"if","locations":[{"start":{"line":1216,"column":12},"end":{"line":1216,"column":12}},{"start":{"line":1216,"column":12},"end":{"line":1216,"column":12}}]},"151":{"line":1220,"type":"binary-expr","locations":[{"start":{"line":1220,"column":15},"end":{"line":1220,"column":18}},{"start":{"line":1220,"column":22},"end":{"line":1220,"column":30}}]},"152":{"line":1294,"type":"if","locations":[{"start":{"line":1294,"column":4},"end":{"line":1294,"column":4}},{"start":{"line":1294,"column":4},"end":{"line":1294,"column":4}}]},"153":{"line":1295,"type":"binary-expr","locations":[{"start":{"line":1295,"column":19},"end":{"line":1295,"column":50}},{"start":{"line":1295,"column":54},"end":{"line":1295,"column":71}}]},"154":{"line":1297,"type":"if","locations":[{"start":{"line":1297,"column":8},"end":{"line":1297,"column":8}},{"start":{"line":1297,"column":8},"end":{"line":1297,"column":8}}]},"155":{"line":1297,"type":"binary-expr","locations":[{"start":{"line":1297,"column":12},"end":{"line":1297,"column":15}},{"start":{"line":1297,"column":19},"end":{"line":1297,"column":31}}]},"156":{"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}}]},"157":{"line":1310,"type":"if","locations":[{"start":{"line":1310,"column":8},"end":{"line":1310,"column":8}},{"start":{"line":1310,"column":8},"end":{"line":1310,"column":8}}]},"158":{"line":1317,"type":"cond-expr","locations":[{"start":{"line":1317,"column":26},"end":{"line":1317,"column":36}},{"start":{"line":1317,"column":39},"end":{"line":1317,"column":42}}]},"159":{"line":1400,"type":"binary-expr","locations":[{"start":{"line":1400,"column":22},"end":{"line":1400,"column":31}},{"start":{"line":1400,"column":35},"end":{"line":1400,"column":45}},{"start":{"line":1400,"column":49},"end":{"line":1400,"column":52}}]},"160":{"line":1405,"type":"if","locations":[{"start":{"line":1405,"column":8},"end":{"line":1405,"column":8}},{"start":{"line":1405,"column":8},"end":{"line":1405,"column":8}}]},"161":{"line":1529,"type":"if","locations":[{"start":{"line":1529,"column":4},"end":{"line":1529,"column":4}},{"start":{"line":1529,"column":4},"end":{"line":1529,"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 (Y_Node._instances.has(node) && Y_Node._instances.get(node)._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';","","if (!window.WeakMap)","{"," window.WeakMap = function() {"," this._map = {};"," };"," window.WeakMap.prototype = {"," has: function(k) {"," return this._map[ this._yuid(k) ] ? true : false;"," },"," get: function(k) {"," return this._map[ this._yuid(k) ];"," },"," set: function(k,v) {"," this._map[ this._yuid(k) ] = v;"," },"," 'delete': function(k) {"," delete this._map[ this._yuid(k) ];"," },"," _yuid: function(k) {"," if (k._node) k = k._node;"," return (k.uniqueID && k.nodeType !== 9) ? k.uniqueID : k[UID];"," }"," };","}","","/**"," * A list of Node instances that have been created"," * @private"," * @type Object"," * @property _instances"," * @static"," *"," */","Y_Node._instances = new WeakMap();","","/**"," * 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;",""," 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)"," instance = Y_Node._instances.get(node); // 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.set(node, 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.get(node);"," if (instance) {"," instance.destroy();"," } else { // purge in case added by other means"," Y.Event.purgeElement(node);"," }"," });"," }",""," Y_Node._instances.delete(this._node);",""," this._node = null;"," this._stateProxy = null;"," },",""," /**"," * 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 instance = Y.Node._instances.get(node),"," 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 {"," }","};","","/**"," * Import the named method, or methods from the host onto NodeList."," *"," * @method importMethod"," * @static"," * @param {Object} host The object containing the methods to copy. Typically a prototype."," * @param {String|String[]} name The name, or an Array of names of the methods to import onto NodeList."," * @param {String} [altName] An alternative name to use for the method added to NodeList, which may differ from the name"," * of the original host object. Has no effect if name is an array of method names."," */","NodeList.importMethod = function(host, name, altName) {"," if (typeof name === 'string') {"," altName = altName || name;"," NodeList.addMethod(altName, 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.get(node);"," 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.get(nodes[0]) || getTemp(nodes[0]);"," val = instance._get(attr);"," if (val && val.nodeType) {"," isNodeList = true;"," }"," }",""," Y.Array.each(nodes, function(node) {"," instance = Y.Node._instances.get(node);",""," 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]++,Y_Node._instances.has(node))&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['6'][1]++,Y_Node._instances.get(node)._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(!window.WeakMap){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['16'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['41']++;window.WeakMap=function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['7']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['42']++;this._map={};};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['43']++;window.WeakMap.prototype={has:function(k){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['8']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['44']++;return this._map[k]?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['17'][0]++,true):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['17'][1]++,false);},get:function(k){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['9']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['45']++;return this._map[k];},set:function(k,v){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['10']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['46']++;this._map[k]=v;},'delete':function(k){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['11']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['47']++;delete this._map[k];}};}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['16'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['48']++;Y_Node._instances=new WeakMap();__cov_LGqepiXuzGEZpz3IhlW0rQ.s['49']++;Y_Node.getDOMNode=function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['12']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['50']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['18'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['51']++;return node.nodeType?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['19'][0]++,node):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['19'][1]++,(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['20'][0]++,node._node)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['20'][1]++,null));}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['18'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['52']++;return null;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['53']++;Y_Node.scrubVal=function(val,node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['13']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['54']++;if(val){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['21'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['55']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['23'][0]++,typeof val=='object')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['23'][1]++,typeof val=='function')){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['22'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['56']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['25'][0]++,NODE_TYPE in val)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['25'][1]++,Y_DOM.isWindow(val))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['24'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['57']++;val=Y.one(val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['24'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['58']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['27'][0]++,val.item)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['27'][1]++,!val._nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['27'][2]++,val[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['27'][3]++,val[0][NODE_TYPE])){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['26'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['59']++;val=Y.all(val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['26'][1]++;}}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['22'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['21'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['60']++;if(typeof val==='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['28'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['61']++;val=node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['28'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['62']++;if(val===null){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['29'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['63']++;val=null;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['29'][1]++;}}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['64']++;return val;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['65']++;Y_Node.addMethod=function(name,fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['14']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['66']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['31'][0]++,name)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['31'][1]++,fn)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['31'][2]++,typeof fn=='function')){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['30'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['67']++;Y_Node.prototype[name]=function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['15']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['68']++;var args=_slice.call(arguments),node=this,ret;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['69']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['33'][0]++,args[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['33'][1]++,args[0]._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['32'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['70']++;args[0]=args[0]._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['32'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['71']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['35'][0]++,args[1])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['35'][1]++,args[1]._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['34'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['72']++;args[1]=args[1]._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['34'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['73']++;args.unshift(node._node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['74']++;ret=fn.apply((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['36'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['36'][1]++,node),args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['75']++;if(ret){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['37'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['76']++;ret=Y_Node.scrubVal(ret,node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['37'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['77']++;(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['38'][0]++,typeof ret!='undefined')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['38'][1]++,ret=node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['78']++;return ret;};}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['30'][1]++;}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['79']++;Y_Node.importMethod=function(host,name,altName){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['16']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['80']++;if(typeof name=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['39'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['81']++;altName=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['40'][0]++,altName)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['40'][1]++,name);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['82']++;Y_Node.addMethod(altName,host[name],host);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['39'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['83']++;Y.Array.each(name,function(n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['17']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['84']++;Y_Node.importMethod(host,n);});}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['85']++;Y_Node.one=function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['18']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['86']++;var instance=null,cachedNode;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['87']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['41'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['88']++;if(typeof node=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['42'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['89']++;node=Y_Node._fromString(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['90']++;if(!node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['43'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['91']++;return null;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['43'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['42'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['92']++;if(node.getDOMNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['44'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['93']++;return node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['44'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['94']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['46'][0]++,node.nodeType)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['46'][1]++,Y.DOM.isWindow(node))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['45'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['95']++;instance=Y_Node._instances.get(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['96']++;cachedNode=instance?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['47'][0]++,instance._node):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['47'][1]++,null);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['97']++;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['98']++;instance=new Y_Node(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['99']++;if(node.nodeType!=11){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['50'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['100']++;Y_Node._instances.set(node,instance);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['50'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['48'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['45'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['41'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['101']++;return instance;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['102']++;Y_Node.DEFAULT_SETTER=function(name,val){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['19']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['103']++;var node=this._stateProxy,strPath;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['104']++;if(name.indexOf(DOT)>-1){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['51'][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['51'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['108']++;if(typeof node[name]!='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['52'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['109']++;node[name]=val;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['52'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['110']++;return val;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['111']++;Y_Node.DEFAULT_GETTER=function(name){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['20']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['112']++;var node=this._stateProxy,val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['113']++;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['114']++;val=Y.Object.getValue(node,name.split(DOT));}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['53'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['115']++;if(typeof node[name]!='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['55'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['116']++;val=node[name];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['55'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['117']++;return val;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['118']++;Y.mix(Y_Node.prototype,{DATA_PREFIX:'data-',toString:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['21']++;__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['56'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['121']++;attrs=node.attributes;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['122']++;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['123']++;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['124']++;str=node[NODE_NAME];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['125']++;if(id){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['61'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['126']++;str+='#'+id;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['61'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['127']++;if(className){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['62'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['128']++;str+='.'+className.replace(' ','.');}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['62'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['129']++;str+=' '+this[UID];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['56'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['130']++;return str;},get:function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['22']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['131']++;var val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['132']++;if(this._getAttr){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['63'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['133']++;val=this._getAttr(attr);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['63'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['134']++;val=this._get(attr);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['135']++;if(val){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['64'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['136']++;val=Y_Node.scrubVal(val,this);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['64'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['137']++;if(val===null){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['65'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['138']++;val=null;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['65'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['139']++;return val;},_get:function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['23']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['140']++;var attrConfig=Y_Node.ATTRS[attr],val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['141']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['67'][0]++,attrConfig)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['67'][1]++,attrConfig.getter)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['66'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['142']++;val=attrConfig.getter.call(this);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['66'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['143']++;if(Y_Node.re_aria.test(attr)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['68'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['144']++;val=this._node.getAttribute(attr,2);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['68'][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['24']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['147']++;var attrConfig=Y_Node.ATTRS[attr];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['148']++;if(this._setAttr){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['69'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['149']++;this._setAttr.apply(this,arguments);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['69'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['150']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['71'][0]++,attrConfig)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['71'][1]++,attrConfig.setter)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['70'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['151']++;attrConfig.setter.call(this,val,attr);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['70'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['152']++;if(Y_Node.re_aria.test(attr)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['72'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['153']++;this._node.setAttribute(attr,val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['72'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['154']++;Y_Node.DEFAULT_SETTER.apply(this,arguments);}}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['155']++;return this;},setAttrs:function(attrMap){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['25']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['156']++;if(this._setAttrs){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['73'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['157']++;this._setAttrs(attrMap);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['73'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['158']++;Y.Object.each(attrMap,function(v,n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['26']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['159']++;this.set(n,v);},this);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['160']++;return this;},getAttrs:function(attrs){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['27']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['161']++;var ret={};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['162']++;if(this._getAttrs){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['74'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['163']++;this._getAttrs(attrs);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['74'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['164']++;Y.Array.each(attrs,function(v,n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['28']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['165']++;ret[v]=this.get(v);},this);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['166']++;return ret;},compareTo:function(refNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['29']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['167']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['168']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['76'][0]++,refNode)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['76'][1]++,refNode._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['75'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['169']++;refNode=refNode._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['75'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['170']++;return node===refNode;},inDoc:function(doc){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['30']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['171']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['172']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['77'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['173']++;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['174']++;if(doc.documentElement){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['80'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['175']++;return Y_DOM.contains(doc.documentElement,node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['80'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['77'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['176']++;return false;},getById:function(id){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['31']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['177']++;var node=this._node,ret=Y_DOM.byId(id,node[OWNER_DOCUMENT]);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['178']++;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['179']++;ret=Y.one(ret);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['81'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['180']++;ret=null;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['181']++;return ret;},ancestor:function(fn,testSelf,stopFn){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['32']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['182']++;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['183']++;stopFn=testSelf;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['83'][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['33']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['185']++;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['186']++;stopFn=testSelf;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['85'][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['34']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['188']++;return Y.one(Y_DOM.elementByAxis(this._node,'previousSibling',_wrapFn(fn),all));},next:function(fn,all){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['35']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['189']++;return Y.one(Y_DOM.elementByAxis(this._node,'nextSibling',_wrapFn(fn),all));},siblings:function(fn){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['36']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['190']++;return Y.all(Y_DOM.siblings(this._node,_wrapFn(fn)));},one:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['37']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['191']++;return Y.one(Y.Selector.query(selector,this._node,true));},all:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['38']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['192']++;var nodelist;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['193']++;if(this._node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['87'][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['87'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['197']++;return(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['88'][0]++,nodelist)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['88'][1]++,Y.all([]));},test:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['39']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['198']++;return Y.Selector.test(this._node,selector);},remove:function(destroy){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['40']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['199']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['200']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['90'][0]++,node)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['90'][1]++,node.parentNode)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['89'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['201']++;node.parentNode.removeChild(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['89'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['202']++;if(destroy){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['91'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['203']++;this.destroy();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['91'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['204']++;return this;},replace:function(newNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['41']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['205']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['206']++;if(typeof newNode=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['92'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['207']++;newNode=Y_Node.create(newNode);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['92'][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['42']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['210']++;if(typeof node=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['93'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['211']++;node=Y_DOM.create(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['93'][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['43']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['213']++;var UID=Y.config.doc.uniqueID?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['94'][0]++,'uniqueID'):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['94'][1]++,'_yuid'),instance;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['214']++;this.purge();__cov_LGqepiXuzGEZpz3IhlW0rQ.s['215']++;if(this.unplug){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['95'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['216']++;this.unplug();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['95'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['217']++;this.clearData();__cov_LGqepiXuzGEZpz3IhlW0rQ.s['218']++;if(recursive){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['96'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['219']++;Y.NodeList.each(this.all('*'),function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['44']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['220']++;instance=Y_Node._instances.get(node._node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['221']++;if(instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['97'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['222']++;instance.destroy();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['97'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['223']++;Y.Event.purgeElement(node);}});}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['96'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['224']++;Y_Node._instances.delete(this._node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['225']++;this._node=null;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['226']++;this._stateProxy=null;},invoke:function(method,a,b,c,d,e){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['45']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['227']++;var node=this._node,ret;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['228']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['99'][0]++,a)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['99'][1]++,a._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['98'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['229']++;a=a._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['98'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['230']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['101'][0]++,b)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['101'][1]++,b._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['100'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['231']++;b=b._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['100'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['232']++;ret=node[method](a,b,c,d,e);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['233']++;return Y_Node.scrubVal(ret,this);},swap:Y.config.doc.documentElement.swapNode?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['102'][0]++,function(otherNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['46']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['234']++;this._node.swapNode(Y_Node.getDOMNode(otherNode));}):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['102'][1]++,function(otherNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['47']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['235']++;otherNode=Y_Node.getDOMNode(otherNode);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['236']++;var node=this._node,parent=otherNode.parentNode,nextSibling=otherNode.nextSibling;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['237']++;if(nextSibling===node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['103'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['238']++;parent.insertBefore(node,otherNode);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['103'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['239']++;if(otherNode===node.nextSibling){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['104'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['240']++;parent.insertBefore(otherNode,node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['104'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['241']++;node.parentNode.replaceChild(otherNode,node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['242']++;Y_DOM.addHTML(parent,node,nextSibling);}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['243']++;return this;}),hasMethod:function(method){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['48']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['244']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['245']++;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['49']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['246']++;return this.get('nodeType')===11;},empty:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['50']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['247']++;this.get('childNodes').remove().destroy(true);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['248']++;return this;},getDOMNode:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['51']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['249']++;return this._node;}},true);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['250']++;Y.Node=Y_Node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['251']++;Y.one=Y_Node.one;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['252']++;var NodeList=function(nodes){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['52']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['253']++;var tmp=[];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['254']++;if(nodes){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['106'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['255']++;if(typeof nodes==='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['107'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['256']++;this._query=nodes;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['257']++;nodes=Y.Selector.query(nodes);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['107'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['258']++;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['259']++;nodes=[nodes];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['108'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['260']++;if(nodes._node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['110'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['261']++;nodes=[nodes._node];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['110'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['262']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['112'][0]++,nodes[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['112'][1]++,nodes[0]._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['111'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['263']++;Y.Array.each(nodes,function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['53']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['264']++;if(node._node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['113'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['265']++;tmp.push(node._node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['113'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['266']++;nodes=tmp;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['111'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['267']++;nodes=Y.Array(nodes,0,true);}}}}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['106'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['268']++;this._nodes=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['114'][0]++,nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['114'][1]++,[]);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['269']++;NodeList.NAME='NodeList';__cov_LGqepiXuzGEZpz3IhlW0rQ.s['270']++;NodeList.getDOMNodes=function(nodelist){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['54']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['271']++;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['272']++;NodeList.each=function(instance,fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['55']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['273']++;var nodes=instance._nodes;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['274']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['118'][0]++,nodes)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['118'][1]++,nodes.length)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['117'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['275']++;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['276']++;NodeList.addMethod=function(name,fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['56']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['277']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['121'][0]++,name)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['121'][1]++,fn)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['120'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['278']++;NodeList.prototype[name]=function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['57']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['279']++;var ret=[],args=arguments;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['280']++;Y.Array.each(this._nodes,function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['58']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['281']++;var instance=Y.Node._instances.get(node),ctx,result;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['282']++;if(!instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['122'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['283']++;instance=NodeList._getTempNode(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['122'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['284']++;ctx=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['123'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['123'][1]++,instance);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['285']++;result=fn.apply(ctx,args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['286']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['125'][0]++,result!==undefined)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['125'][1]++,result!==instance)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['124'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['287']++;ret[ret.length]=result;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['124'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['288']++;return ret.length?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['126'][0]++,ret):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['126'][1]++,this);};}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['120'][1]++;}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['289']++;NodeList.importMethod=function(host,name,altName){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['59']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['290']++;if(typeof name==='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['127'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['291']++;altName=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['128'][0]++,altName)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['128'][1]++,name);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['292']++;NodeList.addMethod(altName,host[name]);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['127'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['293']++;Y.Array.each(name,function(n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['60']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['294']++;NodeList.importMethod(host,n);});}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['295']++;NodeList._getTempNode=function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['61']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['296']++;var tmp=NodeList._tempNode;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['297']++;if(!tmp){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['129'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['298']++;tmp=Y.Node.create('
');__cov_LGqepiXuzGEZpz3IhlW0rQ.s['299']++;NodeList._tempNode=tmp;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['129'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['300']++;tmp._node=node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['301']++;tmp._stateProxy=node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['302']++;return tmp;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['303']++;Y.mix(NodeList.prototype,{_invoke:function(method,args,getter){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['62']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['304']++;var ret=getter?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['130'][0]++,[]):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['130'][1]++,this);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['305']++;this.each(function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['63']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['306']++;var val=node[method].apply(node,args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['307']++;if(getter){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['131'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['308']++;ret.push(val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['131'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['309']++;return ret;},item:function(index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['64']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['310']++;return Y.one(((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['132'][0]++,this._nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['132'][1]++,[]))[index]);},each:function(fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['65']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['311']++;var instance=this;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['312']++;Y.Array.each(this._nodes,function(node,index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['66']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['313']++;node=Y.one(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['314']++;return fn.call((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['133'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['133'][1]++,node),node,index,instance);});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['315']++;return instance;},batch:function(fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['67']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['316']++;var nodelist=this;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['317']++;Y.Array.each(this._nodes,function(node,index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['68']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['318']++;var instance=Y.Node._instances.get(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['319']++;if(!instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['134'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['320']++;instance=NodeList._getTempNode(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['134'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['321']++;return fn.call((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['135'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['135'][1]++,instance),instance,index,nodelist);});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['322']++;return nodelist;},some:function(fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['69']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['323']++;var instance=this;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['324']++;return Y.Array.some(this._nodes,function(node,index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['70']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['325']++;node=Y.one(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['326']++;context=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['136'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['136'][1]++,node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['327']++;return fn.call(context,node,index,instance);});},toFrag:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['71']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['328']++;return Y.one(Y.DOM._nl2frag(this._nodes));},indexOf:function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['72']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['329']++;return Y.Array.indexOf(this._nodes,Y.Node.getDOMNode(node));},filter:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['73']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['330']++;return Y.all(Y.Selector.filter(this._nodes,selector));},modulus:function(n,r){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['74']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['331']++;r=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['137'][0]++,r)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['137'][1]++,0);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['332']++;var nodes=[];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['333']++;NodeList.each(this,function(node,i){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['75']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['334']++;if(i%n===r){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['138'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['335']++;nodes.push(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['138'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['336']++;return Y.all(nodes);},odd:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['76']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['337']++;return this.modulus(2,1);},even:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['77']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['338']++;return this.modulus(2);},destructor:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['78']++;},refresh:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['79']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['339']++;var doc,nodes=this._nodes,query=this._query,root=this._queryRoot;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['340']++;if(query){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['139'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['341']++;if(!root){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['140'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['342']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['142'][0]++,nodes)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['142'][1]++,nodes[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['142'][2]++,nodes[0].ownerDocument)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['141'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['343']++;root=nodes[0].ownerDocument;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['141'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['140'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['344']++;this._nodes=Y.Selector.query(query,root);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['139'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['345']++;return this;},size:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['80']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['346']++;return this._nodes.length;},isEmpty:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['81']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['347']++;return this._nodes.length<1;},toString:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['82']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['348']++;var str='',errorMsg=this[UID]+': not bound to any nodes',nodes=this._nodes,node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['349']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['144'][0]++,nodes)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['144'][1]++,nodes[0])){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['143'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['350']++;node=nodes[0];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['351']++;str+=node[NODE_NAME];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['352']++;if(node.id){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['145'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['353']++;str+='#'+node.id;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['145'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['354']++;if(node.className){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['146'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['355']++;str+='.'+node.className.replace(' ','.');}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['146'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['356']++;if(nodes.length>1){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['147'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['357']++;str+='...['+nodes.length+' items]';}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['147'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['143'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['358']++;return(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['148'][0]++,str)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['148'][1]++,errorMsg);},getDOMNodes:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['83']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['359']++;return this._nodes;}},true);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['360']++;NodeList.importMethod(Y.Node.prototype,['destroy','empty','remove','set']);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['361']++;NodeList.prototype.get=function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['84']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['362']++;var ret=[],nodes=this._nodes,isNodeList=false,getTemp=NodeList._getTempNode,instance,val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['363']++;if(nodes[0]){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['149'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['364']++;instance=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['150'][0]++,Y.Node._instances.get(nodes[0]))||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['150'][1]++,getTemp(nodes[0]));__cov_LGqepiXuzGEZpz3IhlW0rQ.s['365']++;val=instance._get(attr);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['366']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['152'][0]++,val)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['152'][1]++,val.nodeType)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['151'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['367']++;isNodeList=true;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['151'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['149'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['368']++;Y.Array.each(nodes,function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['85']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['369']++;instance=Y.Node._instances.get(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['370']++;if(!instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['153'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['371']++;instance=getTemp(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['153'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['372']++;val=instance._get(attr);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['373']++;if(!isNodeList){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['154'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['374']++;val=Y.Node.scrubVal(val,instance);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['154'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['375']++;ret.push(val);});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['376']++;return isNodeList?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['155'][0]++,Y.all(ret)):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['155'][1]++,ret);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['377']++;Y.NodeList=NodeList;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['378']++;Y.all=function(nodes){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['86']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['379']++;return new NodeList(nodes);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['380']++;Y.Node.all=Y.all;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['381']++;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['382']++;Y.Object.each(ArrayMethods,function(returnNodeList,name){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['87']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['383']++;Y_NodeList.prototype[name]=function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['88']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['384']++;var args=[],i=0,arg,ret;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['385']++;while(typeof(arg=arguments[i++])!='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.s['386']++;args.push((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['156'][0]++,arg._node)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['156'][1]++,arg._nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['156'][2]++,arg));}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['387']++;ret=ArrayProto[name].apply(this._nodes,args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['388']++;if(returnNodeList){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['157'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['389']++;ret=Y.all(ret);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['157'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['390']++;ret=Y.Node.scrubVal(ret);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['391']++;return ret;};});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['392']++;Y.Array.each(['removeChild','hasChildNodes','cloneNode','hasAttribute','scrollIntoView','getElementsByTagName','focus','blur','submit','reset','select','createCaption'],function(method){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['89']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['393']++;Y.Node.prototype[method]=function(arg1,arg2,arg3){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['90']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['394']++;var ret=this.invoke(method,arg1,arg2,arg3);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['395']++;return ret;};});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['396']++;Y.Node.prototype.removeAttribute=function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['91']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['397']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['398']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['158'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['399']++;node.removeAttribute(attr,0);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['158'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['400']++;return this;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['401']++;Y.Node.importMethod(Y.DOM,['contains','setAttribute','getAttribute','wrap','unwrap','generateID']);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['402']++;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={},_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]++,Y_Node._instances.has(node))&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['6'][1]++,Y_Node._instances.get(node)._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(!window.WeakMap){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['16'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['41']++;window.WeakMap=function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['7']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['42']++;this._map={};};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['43']++;window.WeakMap.prototype={has:function(k){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['8']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['44']++;return this._map[this._yuid(k)]?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['17'][0]++,true):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['17'][1]++,false);},get:function(k){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['9']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['45']++;return this._map[this._yuid(k)];},set:function(k,v){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['10']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['46']++;this._map[this._yuid(k)]=v;},'delete':function(k){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['11']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['47']++;delete this._map[this._yuid(k)];},_yuid:function(k){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['12']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['48']++;if(k._node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['18'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['49']++;k=k._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['18'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['50']++;return(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['20'][0]++,k.uniqueID)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['20'][1]++,k.nodeType!==9)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['19'][0]++,k.uniqueID):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['19'][1]++,k[UID]);}};}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['16'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['51']++;Y_Node._instances=new WeakMap();__cov_LGqepiXuzGEZpz3IhlW0rQ.s['52']++;Y_Node.getDOMNode=function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['13']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['53']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['21'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['54']++;return node.nodeType?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['22'][0]++,node):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['22'][1]++,(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['23'][0]++,node._node)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['23'][1]++,null));}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['21'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['55']++;return null;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['56']++;Y_Node.scrubVal=function(val,node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['14']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['57']++;if(val){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['24'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['58']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['26'][0]++,typeof val=='object')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['26'][1]++,typeof val=='function')){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['25'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['59']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['28'][0]++,NODE_TYPE in val)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['28'][1]++,Y_DOM.isWindow(val))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['27'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['60']++;val=Y.one(val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['27'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['61']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['30'][0]++,val.item)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['30'][1]++,!val._nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['30'][2]++,val[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['30'][3]++,val[0][NODE_TYPE])){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['29'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['62']++;val=Y.all(val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['29'][1]++;}}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['25'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['24'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['63']++;if(typeof val==='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['31'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['64']++;val=node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['31'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['65']++;if(val===null){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['32'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['66']++;val=null;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['32'][1]++;}}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['67']++;return val;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['68']++;Y_Node.addMethod=function(name,fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['15']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['69']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['34'][0]++,name)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['34'][1]++,fn)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['34'][2]++,typeof fn=='function')){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['33'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['70']++;Y_Node.prototype[name]=function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['16']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['71']++;var args=_slice.call(arguments),node=this,ret;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['72']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['36'][0]++,args[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['36'][1]++,args[0]._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['35'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['73']++;args[0]=args[0]._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['35'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['74']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['38'][0]++,args[1])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['38'][1]++,args[1]._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['37'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['75']++;args[1]=args[1]._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['37'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['76']++;args.unshift(node._node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['77']++;ret=fn.apply((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['39'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['39'][1]++,node),args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['78']++;if(ret){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['40'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['79']++;ret=Y_Node.scrubVal(ret,node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['40'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['80']++;(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['41'][0]++,typeof ret!='undefined')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['41'][1]++,ret=node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['81']++;return ret;};}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['33'][1]++;}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['82']++;Y_Node.importMethod=function(host,name,altName){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['17']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['83']++;if(typeof name=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['42'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['84']++;altName=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['43'][0]++,altName)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['43'][1]++,name);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['85']++;Y_Node.addMethod(altName,host[name],host);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['42'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['86']++;Y.Array.each(name,function(n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['18']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['87']++;Y_Node.importMethod(host,n);});}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['88']++;Y_Node.one=function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['19']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['89']++;var instance=null,cachedNode;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['90']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['44'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['91']++;if(typeof node=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['45'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['92']++;node=Y_Node._fromString(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['93']++;if(!node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['46'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['94']++;return null;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['46'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['45'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['95']++;if(node.getDOMNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['47'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['96']++;return node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['47'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['97']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['49'][0]++,node.nodeType)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['49'][1]++,Y.DOM.isWindow(node))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['48'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['98']++;instance=Y_Node._instances.get(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['99']++;cachedNode=instance?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['50'][0]++,instance._node):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['50'][1]++,null);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['100']++;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['101']++;instance=new Y_Node(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['102']++;if(node.nodeType!=11){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['53'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['103']++;Y_Node._instances.set(node,instance);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['53'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['51'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['48'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['44'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['104']++;return instance;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['105']++;Y_Node.DEFAULT_SETTER=function(name,val){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['20']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['106']++;var node=this._stateProxy,strPath;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['107']++;if(name.indexOf(DOT)>-1){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['54'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['108']++;strPath=name;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['109']++;name=name.split(DOT);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['110']++;Y.Object.setValue(node,name,val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['54'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['111']++;if(typeof node[name]!='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['55'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['112']++;node[name]=val;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['55'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['113']++;return val;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['114']++;Y_Node.DEFAULT_GETTER=function(name){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['21']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['115']++;var node=this._stateProxy,val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['116']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['57'][0]++,name.indexOf)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['57'][1]++,name.indexOf(DOT)>-1)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['56'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['117']++;val=Y.Object.getValue(node,name.split(DOT));}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['56'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['118']++;if(typeof node[name]!='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['58'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['119']++;val=node[name];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['58'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['120']++;return val;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['121']++;Y.mix(Y_Node.prototype,{DATA_PREFIX:'data-',toString:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['22']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['122']++;var str=this[UID]+': not bound to a node',node=this._node,attrs,id,className;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['123']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['59'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['124']++;attrs=node.attributes;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['125']++;id=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['61'][0]++,attrs)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['61'][1]++,attrs.id)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['60'][0]++,node.getAttribute('id')):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['60'][1]++,null);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['126']++;className=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['63'][0]++,attrs)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['63'][1]++,attrs.className)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['62'][0]++,node.getAttribute('className')):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['62'][1]++,null);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['127']++;str=node[NODE_NAME];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['128']++;if(id){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['64'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['129']++;str+='#'+id;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['64'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['130']++;if(className){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['65'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['131']++;str+='.'+className.replace(' ','.');}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['65'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['132']++;str+=' '+this[UID];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['59'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['133']++;return str;},get:function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['23']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['134']++;var val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['135']++;if(this._getAttr){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['66'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['136']++;val=this._getAttr(attr);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['66'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['137']++;val=this._get(attr);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['138']++;if(val){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['67'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['139']++;val=Y_Node.scrubVal(val,this);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['67'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['140']++;if(val===null){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['68'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['141']++;val=null;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['68'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['142']++;return val;},_get:function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['24']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['143']++;var attrConfig=Y_Node.ATTRS[attr],val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['144']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['70'][0]++,attrConfig)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['70'][1]++,attrConfig.getter)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['69'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['145']++;val=attrConfig.getter.call(this);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['69'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['146']++;if(Y_Node.re_aria.test(attr)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['71'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['147']++;val=this._node.getAttribute(attr,2);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['71'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['148']++;val=Y_Node.DEFAULT_GETTER.apply(this,arguments);}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['149']++;return val;},set:function(attr,val){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['25']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['150']++;var attrConfig=Y_Node.ATTRS[attr];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['151']++;if(this._setAttr){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['72'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['152']++;this._setAttr.apply(this,arguments);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['72'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['153']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['74'][0]++,attrConfig)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['74'][1]++,attrConfig.setter)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['73'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['154']++;attrConfig.setter.call(this,val,attr);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['73'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['155']++;if(Y_Node.re_aria.test(attr)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['75'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['156']++;this._node.setAttribute(attr,val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['75'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['157']++;Y_Node.DEFAULT_SETTER.apply(this,arguments);}}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['158']++;return this;},setAttrs:function(attrMap){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['26']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['159']++;if(this._setAttrs){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['76'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['160']++;this._setAttrs(attrMap);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['76'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['161']++;Y.Object.each(attrMap,function(v,n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['27']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['162']++;this.set(n,v);},this);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['163']++;return this;},getAttrs:function(attrs){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['28']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['164']++;var ret={};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['165']++;if(this._getAttrs){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['77'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['166']++;this._getAttrs(attrs);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['77'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['167']++;Y.Array.each(attrs,function(v,n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['29']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['168']++;ret[v]=this.get(v);},this);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['169']++;return ret;},compareTo:function(refNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['30']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['170']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['171']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['79'][0]++,refNode)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['79'][1]++,refNode._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['78'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['172']++;refNode=refNode._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['78'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['173']++;return node===refNode;},inDoc:function(doc){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['31']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['174']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['175']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['80'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['176']++;doc=doc?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['81'][0]++,(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['82'][0]++,doc._node)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['82'][1]++,doc)):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['81'][1]++,node[OWNER_DOCUMENT]);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['177']++;if(doc.documentElement){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['83'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['178']++;return Y_DOM.contains(doc.documentElement,node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['83'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['80'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['179']++;return false;},getById:function(id){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['32']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['180']++;var node=this._node,ret=Y_DOM.byId(id,node[OWNER_DOCUMENT]);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['181']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['85'][0]++,ret)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['85'][1]++,Y_DOM.contains(node,ret))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['84'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['182']++;ret=Y.one(ret);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['84'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['183']++;ret=null;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['184']++;return ret;},ancestor:function(fn,testSelf,stopFn){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['33']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['185']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['87'][0]++,arguments.length===2)&&((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['87'][1]++,typeof testSelf=='string')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['87'][2]++,typeof testSelf=='function'))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['86'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['186']++;stopFn=testSelf;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['86'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['187']++;return Y.one(Y_DOM.ancestor(this._node,_wrapFn(fn),testSelf,_wrapFn(stopFn)));},ancestors:function(fn,testSelf,stopFn){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['34']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['188']++;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['189']++;stopFn=testSelf;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['88'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['190']++;return Y.all(Y_DOM.ancestors(this._node,_wrapFn(fn),testSelf,_wrapFn(stopFn)));},previous:function(fn,all){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['35']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['191']++;return Y.one(Y_DOM.elementByAxis(this._node,'previousSibling',_wrapFn(fn),all));},next:function(fn,all){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['36']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['192']++;return Y.one(Y_DOM.elementByAxis(this._node,'nextSibling',_wrapFn(fn),all));},siblings:function(fn){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['37']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['193']++;return Y.all(Y_DOM.siblings(this._node,_wrapFn(fn)));},one:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['38']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['194']++;return Y.one(Y.Selector.query(selector,this._node,true));},all:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['39']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['195']++;var nodelist;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['196']++;if(this._node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['90'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['197']++;nodelist=Y.all(Y.Selector.query(selector,this._node));__cov_LGqepiXuzGEZpz3IhlW0rQ.s['198']++;nodelist._query=selector;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['199']++;nodelist._queryRoot=this._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['90'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['200']++;return(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['91'][0]++,nodelist)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['91'][1]++,Y.all([]));},test:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['40']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['201']++;return Y.Selector.test(this._node,selector);},remove:function(destroy){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['41']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['202']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['203']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['93'][0]++,node)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['93'][1]++,node.parentNode)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['92'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['204']++;node.parentNode.removeChild(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['92'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['205']++;if(destroy){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['94'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['206']++;this.destroy();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['94'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['207']++;return this;},replace:function(newNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['42']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['208']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['209']++;if(typeof newNode=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['95'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['210']++;newNode=Y_Node.create(newNode);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['95'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['211']++;node.parentNode.replaceChild(Y_Node.getDOMNode(newNode),node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['212']++;return this;},replaceChild:function(node,refNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['43']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['213']++;if(typeof node=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['96'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['214']++;node=Y_DOM.create(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['96'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['215']++;return Y.one(this._node.replaceChild(Y_Node.getDOMNode(node),Y_Node.getDOMNode(refNode)));},destroy:function(recursive){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['44']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['216']++;var UID=Y.config.doc.uniqueID?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['97'][0]++,'uniqueID'):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['97'][1]++,'_yuid'),instance;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['217']++;this.purge();__cov_LGqepiXuzGEZpz3IhlW0rQ.s['218']++;if(this.unplug){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['98'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['219']++;this.unplug();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['98'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['220']++;this.clearData();__cov_LGqepiXuzGEZpz3IhlW0rQ.s['221']++;if(recursive){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['99'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['222']++;Y.NodeList.each(this.all('*'),function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['45']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['223']++;instance=Y_Node._instances.get(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['224']++;if(instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['100'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['225']++;instance.destroy();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['100'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['226']++;Y.Event.purgeElement(node);}});}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['99'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['227']++;Y_Node._instances.delete(this._node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['228']++;this._node=null;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['229']++;this._stateProxy=null;},invoke:function(method,a,b,c,d,e){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['46']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['230']++;var node=this._node,ret;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['231']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['102'][0]++,a)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['102'][1]++,a._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['101'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['232']++;a=a._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['101'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['233']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['104'][0]++,b)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['104'][1]++,b._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['103'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['234']++;b=b._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['103'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['235']++;ret=node[method](a,b,c,d,e);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['236']++;return Y_Node.scrubVal(ret,this);},swap:Y.config.doc.documentElement.swapNode?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['105'][0]++,function(otherNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['47']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['237']++;this._node.swapNode(Y_Node.getDOMNode(otherNode));}):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['105'][1]++,function(otherNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['48']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['238']++;otherNode=Y_Node.getDOMNode(otherNode);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['239']++;var node=this._node,parent=otherNode.parentNode,nextSibling=otherNode.nextSibling;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['240']++;if(nextSibling===node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['106'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['241']++;parent.insertBefore(node,otherNode);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['106'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['242']++;if(otherNode===node.nextSibling){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['107'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['243']++;parent.insertBefore(otherNode,node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['107'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['244']++;node.parentNode.replaceChild(otherNode,node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['245']++;Y_DOM.addHTML(parent,node,nextSibling);}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['246']++;return this;}),hasMethod:function(method){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['49']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['247']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['248']++;return!!((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['108'][0]++,node)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['108'][1]++,method in node)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['108'][2]++,typeof node[method]!='unknown')&&((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['108'][3]++,typeof node[method]=='function')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['108'][4]++,String(node[method]).indexOf('function')===1)));},isFragment:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['50']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['249']++;return this.get('nodeType')===11;},empty:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['51']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['250']++;this.get('childNodes').remove().destroy(true);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['251']++;return this;},getDOMNode:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['52']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['252']++;return this._node;}},true);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['253']++;Y.Node=Y_Node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['254']++;Y.one=Y_Node.one;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['255']++;var NodeList=function(nodes){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['53']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['256']++;var tmp=[];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['257']++;if(nodes){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['109'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['258']++;if(typeof nodes==='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['110'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['259']++;this._query=nodes;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['260']++;nodes=Y.Selector.query(nodes);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['110'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['261']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['112'][0]++,nodes.nodeType)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['112'][1]++,Y_DOM.isWindow(nodes))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['111'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['262']++;nodes=[nodes];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['111'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['263']++;if(nodes._node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['113'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['264']++;nodes=[nodes._node];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['113'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['265']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['115'][0]++,nodes[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['115'][1]++,nodes[0]._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['114'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['266']++;Y.Array.each(nodes,function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['54']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['267']++;if(node._node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['116'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['268']++;tmp.push(node._node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['116'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['269']++;nodes=tmp;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['114'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['270']++;nodes=Y.Array(nodes,0,true);}}}}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['109'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['271']++;this._nodes=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['117'][0]++,nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['117'][1]++,[]);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['272']++;NodeList.NAME='NodeList';__cov_LGqepiXuzGEZpz3IhlW0rQ.s['273']++;NodeList.getDOMNodes=function(nodelist){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['55']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['274']++;return(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['119'][0]++,nodelist)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['119'][1]++,nodelist._nodes)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['118'][0]++,nodelist._nodes):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['118'][1]++,nodelist);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['275']++;NodeList.each=function(instance,fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['56']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['276']++;var nodes=instance._nodes;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['277']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['121'][0]++,nodes)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['121'][1]++,nodes.length)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['120'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['278']++;Y.Array.each(nodes,fn,(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['122'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['122'][1]++,instance));}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['120'][1]++;}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['279']++;NodeList.addMethod=function(name,fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['57']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['280']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['124'][0]++,name)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['124'][1]++,fn)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['123'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['281']++;NodeList.prototype[name]=function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['58']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['282']++;var ret=[],args=arguments;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['283']++;Y.Array.each(this._nodes,function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['59']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['284']++;var instance=Y.Node._instances.get(node),ctx,result;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['285']++;if(!instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['125'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['286']++;instance=NodeList._getTempNode(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['125'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['287']++;ctx=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['126'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['126'][1]++,instance);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['288']++;result=fn.apply(ctx,args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['289']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['128'][0]++,result!==undefined)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['128'][1]++,result!==instance)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['127'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['290']++;ret[ret.length]=result;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['127'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['291']++;return ret.length?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['129'][0]++,ret):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['129'][1]++,this);};}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['123'][1]++;}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['292']++;NodeList.importMethod=function(host,name,altName){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['60']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['293']++;if(typeof name==='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['130'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['294']++;altName=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['131'][0]++,altName)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['131'][1]++,name);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['295']++;NodeList.addMethod(altName,host[name]);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['130'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['296']++;Y.Array.each(name,function(n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['61']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['297']++;NodeList.importMethod(host,n);});}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['298']++;NodeList._getTempNode=function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['62']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['299']++;var tmp=NodeList._tempNode;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['300']++;if(!tmp){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['132'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['301']++;tmp=Y.Node.create('
');__cov_LGqepiXuzGEZpz3IhlW0rQ.s['302']++;NodeList._tempNode=tmp;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['132'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['303']++;tmp._node=node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['304']++;tmp._stateProxy=node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['305']++;return tmp;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['306']++;Y.mix(NodeList.prototype,{_invoke:function(method,args,getter){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['63']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['307']++;var ret=getter?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['133'][0]++,[]):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['133'][1]++,this);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['308']++;this.each(function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['64']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['309']++;var val=node[method].apply(node,args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['310']++;if(getter){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['134'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['311']++;ret.push(val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['134'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['312']++;return ret;},item:function(index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['65']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['313']++;return Y.one(((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['135'][0]++,this._nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['135'][1]++,[]))[index]);},each:function(fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['66']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['314']++;var instance=this;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['315']++;Y.Array.each(this._nodes,function(node,index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['67']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['316']++;node=Y.one(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['317']++;return fn.call((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['136'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['136'][1]++,node),node,index,instance);});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['318']++;return instance;},batch:function(fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['68']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['319']++;var nodelist=this;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['320']++;Y.Array.each(this._nodes,function(node,index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['69']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['321']++;var instance=Y.Node._instances.get(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['322']++;if(!instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['137'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['323']++;instance=NodeList._getTempNode(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['137'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['324']++;return fn.call((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['138'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['138'][1]++,instance),instance,index,nodelist);});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['325']++;return nodelist;},some:function(fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['70']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['326']++;var instance=this;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['327']++;return Y.Array.some(this._nodes,function(node,index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['71']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['328']++;node=Y.one(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['329']++;context=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['139'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['139'][1]++,node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['330']++;return fn.call(context,node,index,instance);});},toFrag:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['72']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['331']++;return Y.one(Y.DOM._nl2frag(this._nodes));},indexOf:function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['73']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['332']++;return Y.Array.indexOf(this._nodes,Y.Node.getDOMNode(node));},filter:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['74']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['333']++;return Y.all(Y.Selector.filter(this._nodes,selector));},modulus:function(n,r){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['75']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['334']++;r=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['140'][0]++,r)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['140'][1]++,0);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['335']++;var nodes=[];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['336']++;NodeList.each(this,function(node,i){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['76']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['337']++;if(i%n===r){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['141'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['338']++;nodes.push(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['141'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['339']++;return Y.all(nodes);},odd:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['77']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['340']++;return this.modulus(2,1);},even:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['78']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['341']++;return this.modulus(2);},destructor:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['79']++;},refresh:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['80']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['342']++;var doc,nodes=this._nodes,query=this._query,root=this._queryRoot;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['343']++;if(query){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['142'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['344']++;if(!root){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['143'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['345']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['145'][0]++,nodes)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['145'][1]++,nodes[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['145'][2]++,nodes[0].ownerDocument)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['144'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['346']++;root=nodes[0].ownerDocument;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['144'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['143'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['347']++;this._nodes=Y.Selector.query(query,root);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['142'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['348']++;return this;},size:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['81']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['349']++;return this._nodes.length;},isEmpty:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['82']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['350']++;return this._nodes.length<1;},toString:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['83']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['351']++;var str='',errorMsg=this[UID]+': not bound to any nodes',nodes=this._nodes,node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['352']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['147'][0]++,nodes)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['147'][1]++,nodes[0])){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['146'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['353']++;node=nodes[0];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['354']++;str+=node[NODE_NAME];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['355']++;if(node.id){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['148'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['356']++;str+='#'+node.id;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['148'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['357']++;if(node.className){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['149'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['358']++;str+='.'+node.className.replace(' ','.');}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['149'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['359']++;if(nodes.length>1){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['150'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['360']++;str+='...['+nodes.length+' items]';}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['150'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['146'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['361']++;return(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['151'][0]++,str)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['151'][1]++,errorMsg);},getDOMNodes:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['84']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['362']++;return this._nodes;}},true);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['363']++;NodeList.importMethod(Y.Node.prototype,['destroy','empty','remove','set']);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['364']++;NodeList.prototype.get=function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['85']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['365']++;var ret=[],nodes=this._nodes,isNodeList=false,getTemp=NodeList._getTempNode,instance,val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['366']++;if(nodes[0]){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['152'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['367']++;instance=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['153'][0]++,Y.Node._instances.get(nodes[0]))||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['153'][1]++,getTemp(nodes[0]));__cov_LGqepiXuzGEZpz3IhlW0rQ.s['368']++;val=instance._get(attr);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['369']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['155'][0]++,val)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['155'][1]++,val.nodeType)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['154'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['370']++;isNodeList=true;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['154'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['152'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['371']++;Y.Array.each(nodes,function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['86']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['372']++;instance=Y.Node._instances.get(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['373']++;if(!instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['156'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['374']++;instance=getTemp(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['156'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['375']++;val=instance._get(attr);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['376']++;if(!isNodeList){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['157'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['377']++;val=Y.Node.scrubVal(val,instance);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['157'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['378']++;ret.push(val);});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['379']++;return isNodeList?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['158'][0]++,Y.all(ret)):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['158'][1]++,ret);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['380']++;Y.NodeList=NodeList;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['381']++;Y.all=function(nodes){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['87']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['382']++;return new NodeList(nodes);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['383']++;Y.Node.all=Y.all;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['384']++;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['385']++;Y.Object.each(ArrayMethods,function(returnNodeList,name){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['88']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['386']++;Y_NodeList.prototype[name]=function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['89']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['387']++;var args=[],i=0,arg,ret;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['388']++;while(typeof(arg=arguments[i++])!='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.s['389']++;args.push((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['159'][0]++,arg._node)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['159'][1]++,arg._nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['159'][2]++,arg));}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['390']++;ret=ArrayProto[name].apply(this._nodes,args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['391']++;if(returnNodeList){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['160'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['392']++;ret=Y.all(ret);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['160'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['393']++;ret=Y.Node.scrubVal(ret);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['394']++;return ret;};});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['395']++;Y.Array.each(['removeChild','hasChildNodes','cloneNode','hasAttribute','scrollIntoView','getElementsByTagName','focus','blur','submit','reset','select','createCaption'],function(method){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['90']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['396']++;Y.Node.prototype[method]=function(arg1,arg2,arg3){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['91']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['397']++;var ret=this.invoke(method,arg1,arg2,arg3);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['398']++;return ret;};});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['399']++;Y.Node.prototype.removeAttribute=function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['92']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['400']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['401']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['161'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['402']++;node.removeAttribute(attr,0);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['161'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['403']++;return this;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['404']++;Y.Node.importMethod(Y.DOM,['contains','setAttribute','getAttribute','wrap','unwrap','generateID']);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['405']++;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 dd19ed23c51..6b6bec985e1 100644 --- a/build/node-core/node-core-debug.js +++ b/build/node-core/node-core-debug.js @@ -131,16 +131,20 @@ if (!window.WeakMap) }; window.WeakMap.prototype = { has: function(k) { - return this._map[k] ? true : false; + return this._map[ this._yuid(k) ] ? true : false; }, get: function(k) { - return this._map[k]; + return this._map[ this._yuid(k) ]; }, set: function(k,v) { - this._map[k] = v; + this._map[ this._yuid(k) ] = v; }, 'delete': function(k) { - delete this._map[k]; + delete this._map[ this._yuid(k) ]; + }, + _yuid: function(k) { + if (k._node) k = k._node; + return (k.uniqueID && k.nodeType !== 9) ? k.uniqueID : k[UID]; } }; } @@ -766,7 +770,7 @@ Y.mix(Y_Node.prototype, { if (recursive) { Y.NodeList.each(this.all('*'), function(node) { - instance = Y_Node._instances.get(node._node); + instance = Y_Node._instances.get(node); if (instance) { instance.destroy(); } else { // purge in case added by other means diff --git a/build/node-core/node-core-min.js b/build/node-core/node-core-min.js index 3e1cd378396..dc067720feb 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];c._instances.has(t)&&c._instances.get(t)._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",window.WeakMap||(window.WeakMap=function(){this._map={}},window.WeakMap.prototype={has:function(e){return this._map[e]?!0:!1},get:function(e){return this._map[e]},set:function(e,t){this._map[e]=t},"delete":function(e){delete this._map[e]}}),c._instances=new WeakMap,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;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)){n=c._instances.get(t),r=n?n._node:null;if(!n||r&&t!==r)n=new c(t),t.nodeType!=11&&c._instances.set(t,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.get(t._node),r?r.destroy():e.Event.purgeElement(t)}),c._instances.delete(this._node),this._node=null,this._stateProxy=null},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=e.Node._instances.get(s),u,a;o||(o=p._getTempNode(s)),u=r||o,a=n.apply(u,i),a!==undefined&&a!==o&&(t[t.length]=a)}),t.length?t:this})},p.importMethod=function(t,n,r){typeof n=="string"?(r=r||n,p.addMethod(r,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.get(i);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.get(r[0])||s(r[0]),u=o._get(t),u&&u.nodeType&&(i=!0)),e.Array.each(r,function(r){o=e.Node._instances.get(r),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=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];c._instances.has(t)&&c._instances.get(t)._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",window.WeakMap||(window.WeakMap=function(){this._map={}},window.WeakMap.prototype={has:function(e){return this._map[this._yuid(e)]?!0:!1},get:function(e){return this._map[this._yuid(e)]},set:function(e,t){this._map[this._yuid(e)]=t},"delete":function(e){delete this._map[this._yuid(e)]},_yuid:function(e){return e._node&&(e=e._node),e.uniqueID&&e.nodeType!==9?e.uniqueID:e[u]}}),c._instances=new WeakMap,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;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)){n=c._instances.get(t),r=n?n._node:null;if(!n||r&&t!==r)n=new c(t),t.nodeType!=11&&c._instances.set(t,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.get(t),r?r.destroy():e.Event.purgeElement(t)}),c._instances.delete(this._node),this._node=null,this._stateProxy=null},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=e.Node._instances.get(s),u,a;o||(o=p._getTempNode(s)),u=r||o,a=n.apply(u,i),a!==undefined&&a!==o&&(t[t.length]=a)}),t.length?t:this})},p.importMethod=function(t,n,r){typeof n=="string"?(r=r||n,p.addMethod(r,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.get(i);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.get(r[0])||s(r[0]),u=o._get(t),u&&u.nodeType&&(i=!0)),e.Array.each(r,function(r){o=e.Node._instances.get(r),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"]}); diff --git a/build/node-core/node-core.js b/build/node-core/node-core.js index bab3cc5e11b..5f487fe6491 100644 --- a/build/node-core/node-core.js +++ b/build/node-core/node-core.js @@ -131,16 +131,20 @@ if (!window.WeakMap) }; window.WeakMap.prototype = { has: function(k) { - return this._map[k] ? true : false; + return this._map[ this._yuid(k) ] ? true : false; }, get: function(k) { - return this._map[k]; + return this._map[ this._yuid(k) ]; }, set: function(k,v) { - this._map[k] = v; + this._map[ this._yuid(k) ] = v; }, 'delete': function(k) { - delete this._map[k]; + delete this._map[ this._yuid(k) ]; + }, + _yuid: function(k) { + if (k._node) k = k._node; + return (k.uniqueID && k.nodeType !== 9) ? k.uniqueID : k[UID]; } }; } @@ -765,7 +769,7 @@ Y.mix(Y_Node.prototype, { if (recursive) { Y.NodeList.each(this.all('*'), function(node) { - instance = Y_Node._instances.get(node._node); + instance = Y_Node._instances.get(node); if (instance) { instance.destroy(); } else { // purge in case added by other means diff --git a/src/app/tests/unit/assets/view-node-map-test.js b/src/app/tests/unit/assets/view-node-map-test.js index b12c42d6bef..56d34e3b3a5 100644 --- a/src/app/tests/unit/assets/view-node-map-test.js +++ b/src/app/tests/unit/assets/view-node-map-test.js @@ -51,11 +51,9 @@ nodeMapSuite.add(new Y.Test.Case({ }, 'View should be removed from the instances map when destroy() is called': function () { - var key = Y.stamp(this.container, true); - - ObjectAssert.ownsKey(key, Y.View.NodeMap._instances, 'Node stamp should exist in the instances map.'); + Assert.isTrue(!!Y.View.NodeMap._instances.get(this.container), 'Node stamp should exist in the instances map.'); this.view.destroy(); - Assert.isFalse(key in Y.View.NodeMap._instances, 'Node stamp should not exist in the instances map after the instance is destroyed.'); + Assert.isFalse(!!Y.View.NodeMap._instances.get(this.container), 'Node stamp should not exist in the instances map after the instance is destroyed.'); this.view = null; } })); diff --git a/src/arraysort/tests/cli/run.js b/src/arraysort/tests/clix/run.js similarity index 100% rename from src/arraysort/tests/cli/run.js rename to src/arraysort/tests/clix/run.js diff --git a/src/async-queue/tests/cli/run.js b/src/async-queue/tests/clix/run.js similarity index 100% rename from src/async-queue/tests/cli/run.js rename to src/async-queue/tests/clix/run.js diff --git a/src/base/tests/cli/run.js b/src/base/tests/clix/run.js similarity index 100% rename from src/base/tests/cli/run.js rename to src/base/tests/clix/run.js diff --git a/src/classnamemanager/tests/cli/run.js b/src/classnamemanager/tests/clix/run.js similarity index 100% rename from src/classnamemanager/tests/cli/run.js rename to src/classnamemanager/tests/clix/run.js diff --git a/src/collection/tests/cli/run.js b/src/collection/tests/clix/run.js similarity index 100% rename from src/collection/tests/cli/run.js rename to src/collection/tests/clix/run.js diff --git a/src/color/tests/cli/run.js b/src/color/tests/clix/run.js similarity index 100% rename from src/color/tests/cli/run.js rename to src/color/tests/clix/run.js diff --git a/src/date/tests/cli/run.js b/src/date/tests/clix/run.js similarity index 100% rename from src/date/tests/cli/run.js rename to src/date/tests/clix/run.js diff --git a/src/dump/tests/cli/run.js b/src/dump/tests/clix/run.js similarity index 100% rename from src/dump/tests/cli/run.js rename to src/dump/tests/clix/run.js diff --git a/src/event-custom/tests/cli/run.js b/src/event-custom/tests/clix/run.js similarity index 100% rename from src/event-custom/tests/cli/run.js rename to src/event-custom/tests/clix/run.js diff --git a/src/get/tests/cli/run.js b/src/get/tests/clix/run.js similarity index 100% rename from src/get/tests/cli/run.js rename to src/get/tests/clix/run.js diff --git a/src/intl/tests/cli/run.js b/src/intl/tests/clix/run.js similarity index 100% rename from src/intl/tests/cli/run.js rename to src/intl/tests/clix/run.js diff --git a/src/io/tests/cli/lib/nodejs-tests.js b/src/io/tests/clix/lib/nodejs-tests.js similarity index 100% rename from src/io/tests/cli/lib/nodejs-tests.js rename to src/io/tests/clix/lib/nodejs-tests.js diff --git a/src/io/tests/cli/lib/server.js b/src/io/tests/clix/lib/server.js similarity index 100% rename from src/io/tests/cli/lib/server.js rename to src/io/tests/clix/lib/server.js diff --git a/src/io/tests/cli/run.js b/src/io/tests/clix/run.js similarity index 100% rename from src/io/tests/cli/run.js rename to src/io/tests/clix/run.js diff --git a/src/json/tests/cli/lib/node.js b/src/json/tests/clix/lib/node.js similarity index 100% rename from src/json/tests/cli/lib/node.js rename to src/json/tests/clix/lib/node.js diff --git a/src/json/tests/cli/run-json.js b/src/json/tests/clix/run-json.js similarity index 100% rename from src/json/tests/cli/run-json.js rename to src/json/tests/clix/run-json.js diff --git a/src/json/tests/cli/run-node.js b/src/json/tests/clix/run-node.js similarity index 100% rename from src/json/tests/cli/run-node.js rename to src/json/tests/clix/run-node.js diff --git a/src/loader/tests/cli/loader.js b/src/loader/tests/clix/loader.js similarity index 100% rename from src/loader/tests/cli/loader.js rename to src/loader/tests/clix/loader.js diff --git a/src/loader/tests/cli/run.js b/src/loader/tests/clix/run.js similarity index 100% rename from src/loader/tests/cli/run.js rename to src/loader/tests/clix/run.js diff --git a/src/node/js/node-core.js b/src/node/js/node-core.js index 0ed2d76a94c..a182bb7e194 100644 --- a/src/node/js/node-core.js +++ b/src/node/js/node-core.js @@ -129,16 +129,20 @@ if (!window.WeakMap) }; window.WeakMap.prototype = { has: function(k) { - return this._map[k] ? true : false; + return this._map[ this._yuid(k) ] ? true : false; }, get: function(k) { - return this._map[k]; + return this._map[ this._yuid(k) ]; }, set: function(k,v) { - this._map[k] = v; + this._map[ this._yuid(k) ] = v; }, 'delete': function(k) { - delete this._map[k]; + delete this._map[ this._yuid(k) ]; + }, + _yuid: function(k) { + if (k._node) k = k._node; + return (k.uniqueID && k.nodeType !== 9) ? k.uniqueID : k[UID]; } }; } @@ -764,7 +768,7 @@ Y.mix(Y_Node.prototype, { if (recursive) { Y.NodeList.each(this.all('*'), function(node) { - instance = Y_Node._instances.get(node._node); + instance = Y_Node._instances.get(node); if (instance) { instance.destroy(); } else { // purge in case added by other means diff --git a/src/number/tests/cli/run.js b/src/number/tests/clix/run.js similarity index 100% rename from src/number/tests/cli/run.js rename to src/number/tests/clix/run.js diff --git a/src/oop/tests/cli/run.js b/src/oop/tests/clix/run.js similarity index 100% rename from src/oop/tests/cli/run.js rename to src/oop/tests/clix/run.js diff --git a/src/paginator/tests/cli/run.js b/src/paginator/tests/clix/run.js similarity index 100% rename from src/paginator/tests/cli/run.js rename to src/paginator/tests/clix/run.js diff --git a/src/parallel/tests/cli/run.js b/src/parallel/tests/clix/run.js similarity index 100% rename from src/parallel/tests/cli/run.js rename to src/parallel/tests/clix/run.js diff --git a/src/pluginhost/tests/cli/run.js b/src/pluginhost/tests/clix/run.js similarity index 100% rename from src/pluginhost/tests/cli/run.js rename to src/pluginhost/tests/clix/run.js diff --git a/src/promise/tests/cli/assets/aplus.js b/src/promise/tests/clix/assets/aplus.js similarity index 100% rename from src/promise/tests/cli/assets/aplus.js rename to src/promise/tests/clix/assets/aplus.js diff --git a/src/promise/tests/cli/run.js b/src/promise/tests/clix/run.js similarity index 100% rename from src/promise/tests/cli/run.js rename to src/promise/tests/clix/run.js diff --git a/src/querystring/tests/cli/run.js b/src/querystring/tests/clix/run.js similarity index 100% rename from src/querystring/tests/cli/run.js rename to src/querystring/tests/clix/run.js diff --git a/src/timers/tests/cli/run.js b/src/timers/tests/clix/run.js similarity index 100% rename from src/timers/tests/cli/run.js rename to src/timers/tests/clix/run.js diff --git a/src/yql/tests/cli/run.js b/src/yql/tests/clix/run.js similarity index 100% rename from src/yql/tests/cli/run.js rename to src/yql/tests/clix/run.js diff --git a/src/yui-throttle/tests/cli/run.js b/src/yui-throttle/tests/clix/run.js similarity index 100% rename from src/yui-throttle/tests/cli/run.js rename to src/yui-throttle/tests/clix/run.js diff --git a/src/yui/tests/cli/lib/loadhook-test.js b/src/yui/tests/clix/lib/loadhook-test.js similarity index 100% rename from src/yui/tests/cli/lib/loadhook-test.js rename to src/yui/tests/clix/lib/loadhook-test.js diff --git a/src/yui/tests/cli/lib/nodejs-tests.js b/src/yui/tests/clix/lib/nodejs-tests.js similarity index 100% rename from src/yui/tests/cli/lib/nodejs-tests.js rename to src/yui/tests/clix/lib/nodejs-tests.js diff --git a/src/yui/tests/cli/run.js b/src/yui/tests/clix/run.js similarity index 100% rename from src/yui/tests/cli/run.js rename to src/yui/tests/clix/run.js From 4512fb05eb9681b4f297198395d6981851fba9e8 Mon Sep 17 00:00:00 2001 From: John Lindal Date: Sun, 13 Jan 2019 14:26:20 -0800 Subject: [PATCH 5/9] update travis-ci config --- .travis.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 49c9e60f482..321cd49411f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,8 @@ language: node_js node_js: - - "0.10" - - "0.11" + - lts/* script: - - grunt travis + - bin/travis-ci git: depth: 30 branches: From 7263e45efb3ce04acb621ad6addb58ba757b7099 Mon Sep 17 00:00:00 2001 From: John Lindal Date: Mon, 14 Jan 2019 14:28:25 -0800 Subject: [PATCH 6/9] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 77f98fa1aac..5dca09bb916 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ YUI 3: The Yahoo User Interface Library ======================================= -[![Build Status](https://travis-ci.org/yui/yui3.svg?branch=master)](https://travis-ci.org/yui/yui3) +[![Build Status](https://travis-ci.org/jafl/yui3.svg?branch=fix-node-gc-3)](https://travis-ci.org/jafl/yui3) YUI is a free, open source JavaScript and CSS framework for building richly interactive web applications. YUI is provided under a BSD license and is From adc684234513c9aeba02b58906b98df1ad428bde Mon Sep 17 00:00:00 2001 From: John Lindal Date: Mon, 14 Jan 2019 14:29:34 -0800 Subject: [PATCH 7/9] remove post-install cmd --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index 3d9067f3df6..2898c588efc 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,6 @@ "archiver": "0.4.10" }, "scripts": { - "postinstall": "grunt build", "test": "./bin/travis-ci" }, "licenses":[ From 98a816c00053b2ae815f54c54ad61214db9cac7b Mon Sep 17 00:00:00 2001 From: John Lindal Date: Mon, 14 Jan 2019 14:57:14 -0800 Subject: [PATCH 8/9] fix travis-ci build --- .travis.yml | 8 +++----- package.json | 12 ------------ 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/.travis.yml b/.travis.yml index 321cd49411f..392670a4b4b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,8 @@ language: node_js node_js: - - lts/* -script: - - bin/travis-ci -git: - depth: 30 + - 6.14.4 +before_install: + - npm install -g yogi branches: except: - live-docs diff --git a/package.json b/package.json index 2898c588efc..e14ede07594 100644 --- a/package.json +++ b/package.json @@ -14,18 +14,6 @@ "dependencies": { "request": "~2.40.0" }, - "devDependencies": { - "yogi": "~0.1.0", - "parserlib": "~0.2.2", - "grunt": "~0.4.1", - "grunt-cli": "~0.1.7", - "grunt-yui-contrib": "~0.0.20", - "grunt-lib-contrib": "~0.5.3", - "grunt-contrib-compress": "0.4.10", - "grunt-css-selectors": "~0.1.2", - "bower": "~1.2.8", - "archiver": "0.4.10" - }, "scripts": { "test": "./bin/travis-ci" }, From 5bc25ac2452726395f3840841acd23a94e21534b Mon Sep 17 00:00:00 2001 From: John Lindal Date: Mon, 14 Jan 2019 21:15:15 -0800 Subject: [PATCH 9/9] use Y.Node.WeakMap instead of defining global --- build/node-core/node-core-coverage.js | 4 ++-- build/node-core/node-core-debug.js | 12 ++++++++---- build/node-core/node-core-min.js | 4 ++-- build/node-core/node-core.js | 12 ++++++++---- build/view-node-map/view-node-map-coverage.js | 4 ++-- build/view-node-map/view-node-map-debug.js | 2 +- build/view-node-map/view-node-map-min.js | 2 +- build/view-node-map/view-node-map.js | 2 +- build/widget-base/widget-base-coverage.js | 4 ++-- build/widget-base/widget-base-debug.js | 2 +- build/widget-base/widget-base-min.js | 4 ++-- build/widget-base/widget-base.js | 2 +- src/app/js/view-extensions/view-node-map.js | 2 +- src/node/js/node-core.js | 12 ++++++++---- src/widget/js/Widget.js | 2 +- 15 files changed, 41 insertions(+), 29 deletions(-) diff --git a/build/node-core/node-core-coverage.js b/build/node-core/node-core-coverage.js index 34df33ac2d6..831a09be829 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},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0],"28":[0,0],"29":[0,0],"30":[0,0,0,0],"31":[0,0],"32":[0,0],"33":[0,0],"34":[0,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,0],"88":[0,0],"89":[0,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],"106":[0,0],"107":[0,0],"108":[0,0,0,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],"145":[0,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]},"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,"87":0,"88":0,"89":0,"90":0,"91":0,"92":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":129,"loc":{"start":{"line":129,"column":21},"end":{"line":129,"column":32}}},"8":{"name":"(anonymous_8)","line":133,"loc":{"start":{"line":133,"column":13},"end":{"line":133,"column":25}}},"9":{"name":"(anonymous_9)","line":136,"loc":{"start":{"line":136,"column":13},"end":{"line":136,"column":25}}},"10":{"name":"(anonymous_10)","line":139,"loc":{"start":{"line":139,"column":13},"end":{"line":139,"column":27}}},"11":{"name":"(anonymous_11)","line":142,"loc":{"start":{"line":142,"column":18},"end":{"line":142,"column":30}}},"12":{"name":"(anonymous_12)","line":145,"loc":{"start":{"line":145,"column":15},"end":{"line":145,"column":27}}},"13":{"name":"(anonymous_13)","line":171,"loc":{"start":{"line":171,"column":20},"end":{"line":171,"column":35}}},"14":{"name":"(anonymous_14)","line":189,"loc":{"start":{"line":189,"column":18},"end":{"line":189,"column":38}}},"15":{"name":"(anonymous_15)","line":219,"loc":{"start":{"line":219,"column":19},"end":{"line":219,"column":47}}},"16":{"name":"(anonymous_16)","line":221,"loc":{"start":{"line":221,"column":33},"end":{"line":221,"column":44}}},"17":{"name":"(anonymous_17)","line":258,"loc":{"start":{"line":258,"column":22},"end":{"line":258,"column":52}}},"18":{"name":"(anonymous_18)","line":263,"loc":{"start":{"line":263,"column":27},"end":{"line":263,"column":39}}},"19":{"name":"(anonymous_19)","line":300,"loc":{"start":{"line":300,"column":13},"end":{"line":300,"column":28}}},"20":{"name":"(anonymous_20)","line":338,"loc":{"start":{"line":338,"column":24},"end":{"line":338,"column":44}}},"21":{"name":"(anonymous_21)","line":362,"loc":{"start":{"line":362,"column":24},"end":{"line":362,"column":39}}},"22":{"name":"(anonymous_22)","line":383,"loc":{"start":{"line":383,"column":14},"end":{"line":383,"column":25}}},"23":{"name":"(anonymous_23)","line":417,"loc":{"start":{"line":417,"column":9},"end":{"line":417,"column":24}}},"24":{"name":"(anonymous_24)","line":441,"loc":{"start":{"line":441,"column":10},"end":{"line":441,"column":25}}},"25":{"name":"(anonymous_25)","line":467,"loc":{"start":{"line":467,"column":9},"end":{"line":467,"column":29}}},"26":{"name":"(anonymous_26)","line":491,"loc":{"start":{"line":491,"column":14},"end":{"line":491,"column":32}}},"27":{"name":"(anonymous_27)","line":495,"loc":{"start":{"line":495,"column":35},"end":{"line":495,"column":50}}},"28":{"name":"(anonymous_28)","line":509,"loc":{"start":{"line":509,"column":14},"end":{"line":509,"column":30}}},"29":{"name":"(anonymous_29)","line":514,"loc":{"start":{"line":514,"column":32},"end":{"line":514,"column":47}}},"30":{"name":"(anonymous_30)","line":529,"loc":{"start":{"line":529,"column":15},"end":{"line":529,"column":33}}},"31":{"name":"(anonymous_31)","line":545,"loc":{"start":{"line":545,"column":11},"end":{"line":545,"column":25}}},"32":{"name":"(anonymous_32)","line":558,"loc":{"start":{"line":558,"column":13},"end":{"line":558,"column":26}}},"33":{"name":"(anonymous_33)","line":582,"loc":{"start":{"line":582,"column":14},"end":{"line":582,"column":45}}},"34":{"name":"(anonymous_34)","line":600,"loc":{"start":{"line":600,"column":15},"end":{"line":600,"column":46}}},"35":{"name":"(anonymous_35)","line":618,"loc":{"start":{"line":618,"column":14},"end":{"line":618,"column":32}}},"36":{"name":"(anonymous_36)","line":632,"loc":{"start":{"line":632,"column":10},"end":{"line":632,"column":28}}},"37":{"name":"(anonymous_37)","line":644,"loc":{"start":{"line":644,"column":14},"end":{"line":644,"column":27}}},"38":{"name":"(anonymous_38)","line":658,"loc":{"start":{"line":658,"column":9},"end":{"line":658,"column":28}}},"39":{"name":"(anonymous_39)","line":669,"loc":{"start":{"line":669,"column":9},"end":{"line":669,"column":28}}},"40":{"name":"(anonymous_40)","line":689,"loc":{"start":{"line":689,"column":10},"end":{"line":689,"column":29}}},"41":{"name":"(anonymous_41)","line":702,"loc":{"start":{"line":702,"column":12},"end":{"line":702,"column":30}}},"42":{"name":"(anonymous_42)","line":725,"loc":{"start":{"line":725,"column":13},"end":{"line":725,"column":31}}},"43":{"name":"(anonymous_43)","line":741,"loc":{"start":{"line":741,"column":18},"end":{"line":741,"column":42}}},"44":{"name":"(anonymous_44)","line":758,"loc":{"start":{"line":758,"column":13},"end":{"line":758,"column":33}}},"45":{"name":"(anonymous_45)","line":771,"loc":{"start":{"line":771,"column":43},"end":{"line":771,"column":58}}},"46":{"name":"(anonymous_46)","line":797,"loc":{"start":{"line":797,"column":12},"end":{"line":797,"column":44}}},"47":{"name":"(anonymous_47)","line":821,"loc":{"start":{"line":821,"column":8},"end":{"line":821,"column":28}}},"48":{"name":"(anonymous_48)","line":824,"loc":{"start":{"line":824,"column":8},"end":{"line":824,"column":28}}},"49":{"name":"(anonymous_49)","line":842,"loc":{"start":{"line":842,"column":15},"end":{"line":842,"column":32}}},"50":{"name":"(anonymous_50)","line":850,"loc":{"start":{"line":850,"column":16},"end":{"line":850,"column":27}}},"51":{"name":"(anonymous_51)","line":859,"loc":{"start":{"line":859,"column":11},"end":{"line":859,"column":22}}},"52":{"name":"(anonymous_52)","line":869,"loc":{"start":{"line":869,"column":16},"end":{"line":869,"column":27}}},"53":{"name":"(anonymous_53)","line":892,"loc":{"start":{"line":892,"column":15},"end":{"line":892,"column":31}}},"54":{"name":"(anonymous_54)","line":904,"loc":{"start":{"line":904,"column":32},"end":{"line":904,"column":47}}},"55":{"name":"(anonymous_55)","line":933,"loc":{"start":{"line":933,"column":23},"end":{"line":933,"column":42}}},"56":{"name":"(anonymous_56)","line":937,"loc":{"start":{"line":937,"column":16},"end":{"line":937,"column":48}}},"57":{"name":"(anonymous_57)","line":945,"loc":{"start":{"line":945,"column":21},"end":{"line":945,"column":49}}},"58":{"name":"(anonymous_58)","line":947,"loc":{"start":{"line":947,"column":35},"end":{"line":947,"column":46}}},"59":{"name":"(anonymous_59)","line":951,"loc":{"start":{"line":951,"column":38},"end":{"line":951,"column":53}}},"60":{"name":"(anonymous_60)","line":983,"loc":{"start":{"line":983,"column":24},"end":{"line":983,"column":54}}},"61":{"name":"(anonymous_61)","line":988,"loc":{"start":{"line":988,"column":27},"end":{"line":988,"column":39}}},"62":{"name":"(anonymous_62)","line":994,"loc":{"start":{"line":994,"column":24},"end":{"line":994,"column":39}}},"63":{"name":"(anonymous_63)","line":1007,"loc":{"start":{"line":1007,"column":13},"end":{"line":1007,"column":44}}},"64":{"name":"(anonymous_64)","line":1010,"loc":{"start":{"line":1010,"column":18},"end":{"line":1010,"column":33}}},"65":{"name":"(anonymous_65)","line":1027,"loc":{"start":{"line":1027,"column":10},"end":{"line":1027,"column":26}}},"66":{"name":"(anonymous_66)","line":1040,"loc":{"start":{"line":1040,"column":10},"end":{"line":1040,"column":32}}},"67":{"name":"(anonymous_67)","line":1042,"loc":{"start":{"line":1042,"column":34},"end":{"line":1042,"column":56}}},"68":{"name":"(anonymous_68)","line":1049,"loc":{"start":{"line":1049,"column":11},"end":{"line":1049,"column":33}}},"69":{"name":"(anonymous_69)","line":1052,"loc":{"start":{"line":1052,"column":34},"end":{"line":1052,"column":56}}},"70":{"name":"(anonymous_70)","line":1072,"loc":{"start":{"line":1072,"column":10},"end":{"line":1072,"column":32}}},"71":{"name":"(anonymous_71)","line":1074,"loc":{"start":{"line":1074,"column":41},"end":{"line":1074,"column":63}}},"72":{"name":"(anonymous_72)","line":1086,"loc":{"start":{"line":1086,"column":12},"end":{"line":1086,"column":23}}},"73":{"name":"(anonymous_73)","line":1097,"loc":{"start":{"line":1097,"column":13},"end":{"line":1097,"column":28}}},"74":{"name":"(anonymous_74)","line":1108,"loc":{"start":{"line":1108,"column":12},"end":{"line":1108,"column":31}}},"75":{"name":"(anonymous_75)","line":1122,"loc":{"start":{"line":1122,"column":13},"end":{"line":1122,"column":28}}},"76":{"name":"(anonymous_76)","line":1125,"loc":{"start":{"line":1125,"column":28},"end":{"line":1125,"column":46}}},"77":{"name":"(anonymous_77)","line":1140,"loc":{"start":{"line":1140,"column":9},"end":{"line":1140,"column":20}}},"78":{"name":"(anonymous_78)","line":1150,"loc":{"start":{"line":1150,"column":10},"end":{"line":1150,"column":21}}},"79":{"name":"(anonymous_79)","line":1154,"loc":{"start":{"line":1154,"column":16},"end":{"line":1154,"column":27}}},"80":{"name":"(anonymous_80)","line":1162,"loc":{"start":{"line":1162,"column":13},"end":{"line":1162,"column":24}}},"81":{"name":"(anonymous_81)","line":1186,"loc":{"start":{"line":1186,"column":10},"end":{"line":1186,"column":21}}},"82":{"name":"(anonymous_82)","line":1195,"loc":{"start":{"line":1195,"column":13},"end":{"line":1195,"column":24}}},"83":{"name":"(anonymous_83)","line":1199,"loc":{"start":{"line":1199,"column":14},"end":{"line":1199,"column":25}}},"84":{"name":"(anonymous_84)","line":1228,"loc":{"start":{"line":1228,"column":17},"end":{"line":1228,"column":28}}},"85":{"name":"(anonymous_85)","line":1286,"loc":{"start":{"line":1286,"column":25},"end":{"line":1286,"column":40}}},"86":{"name":"(anonymous_86)","line":1302,"loc":{"start":{"line":1302,"column":24},"end":{"line":1302,"column":39}}},"87":{"name":"(anonymous_87)","line":1322,"loc":{"start":{"line":1322,"column":8},"end":{"line":1322,"column":24}}},"88":{"name":"(anonymous_88)","line":1392,"loc":{"start":{"line":1392,"column":28},"end":{"line":1392,"column":59}}},"89":{"name":"(anonymous_89)","line":1393,"loc":{"start":{"line":1393,"column":33},"end":{"line":1393,"column":44}}},"90":{"name":"(anonymous_90)","line":1513,"loc":{"start":{"line":1513,"column":3},"end":{"line":1513,"column":20}}},"91":{"name":"(anonymous_91)","line":1514,"loc":{"start":{"line":1514,"column":31},"end":{"line":1514,"column":58}}},"92":{"name":"(anonymous_92)","line":1527,"loc":{"start":{"line":1527,"column":35},"end":{"line":1527,"column":50}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1644,"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":127,"column":0},"end":{"line":150,"column":1}},"41":{"start":{"line":129,"column":4},"end":{"line":131,"column":6}},"42":{"start":{"line":130,"column":8},"end":{"line":130,"column":23}},"43":{"start":{"line":132,"column":4},"end":{"line":149,"column":6}},"44":{"start":{"line":134,"column":12},"end":{"line":134,"column":61}},"45":{"start":{"line":137,"column":12},"end":{"line":137,"column":46}},"46":{"start":{"line":140,"column":12},"end":{"line":140,"column":43}},"47":{"start":{"line":143,"column":12},"end":{"line":143,"column":46}},"48":{"start":{"line":146,"column":12},"end":{"line":146,"column":37}},"49":{"start":{"line":146,"column":25},"end":{"line":146,"column":37}},"50":{"start":{"line":147,"column":12},"end":{"line":147,"column":74}},"51":{"start":{"line":160,"column":0},"end":{"line":160,"column":34}},"52":{"start":{"line":171,"column":0},"end":{"line":176,"column":2}},"53":{"start":{"line":172,"column":4},"end":{"line":174,"column":5}},"54":{"start":{"line":173,"column":8},"end":{"line":173,"column":59}},"55":{"start":{"line":175,"column":4},"end":{"line":175,"column":16}},"56":{"start":{"line":189,"column":0},"end":{"line":206,"column":2}},"57":{"start":{"line":190,"column":4},"end":{"line":203,"column":5}},"58":{"start":{"line":191,"column":9},"end":{"line":198,"column":9}},"59":{"start":{"line":192,"column":12},"end":{"line":197,"column":13}},"60":{"start":{"line":193,"column":16},"end":{"line":193,"column":33}},"61":{"start":{"line":194,"column":19},"end":{"line":197,"column":13}},"62":{"start":{"line":196,"column":16},"end":{"line":196,"column":33}},"63":{"start":{"line":199,"column":11},"end":{"line":203,"column":5}},"64":{"start":{"line":200,"column":8},"end":{"line":200,"column":19}},"65":{"start":{"line":201,"column":11},"end":{"line":203,"column":5}},"66":{"start":{"line":202,"column":8},"end":{"line":202,"column":19}},"67":{"start":{"line":205,"column":4},"end":{"line":205,"column":15}},"68":{"start":{"line":219,"column":0},"end":{"line":246,"column":2}},"69":{"start":{"line":220,"column":4},"end":{"line":245,"column":5}},"70":{"start":{"line":221,"column":8},"end":{"line":243,"column":10}},"71":{"start":{"line":222,"column":12},"end":{"line":224,"column":20}},"72":{"start":{"line":226,"column":12},"end":{"line":228,"column":13}},"73":{"start":{"line":227,"column":16},"end":{"line":227,"column":40}},"74":{"start":{"line":230,"column":12},"end":{"line":232,"column":13}},"75":{"start":{"line":231,"column":16},"end":{"line":231,"column":40}},"76":{"start":{"line":233,"column":12},"end":{"line":233,"column":37}},"77":{"start":{"line":235,"column":12},"end":{"line":235,"column":50}},"78":{"start":{"line":237,"column":12},"end":{"line":239,"column":13}},"79":{"start":{"line":238,"column":16},"end":{"line":238,"column":49}},"80":{"start":{"line":241,"column":12},"end":{"line":241,"column":56}},"81":{"start":{"line":242,"column":12},"end":{"line":242,"column":23}},"82":{"start":{"line":258,"column":0},"end":{"line":267,"column":2}},"83":{"start":{"line":259,"column":4},"end":{"line":266,"column":5}},"84":{"start":{"line":260,"column":8},"end":{"line":260,"column":34}},"85":{"start":{"line":261,"column":8},"end":{"line":261,"column":52}},"86":{"start":{"line":263,"column":8},"end":{"line":265,"column":11}},"87":{"start":{"line":264,"column":12},"end":{"line":264,"column":41}},"88":{"start":{"line":300,"column":0},"end":{"line":327,"column":2}},"89":{"start":{"line":301,"column":4},"end":{"line":302,"column":19}},"90":{"start":{"line":304,"column":4},"end":{"line":324,"column":5}},"91":{"start":{"line":305,"column":8},"end":{"line":312,"column":9}},"92":{"start":{"line":306,"column":12},"end":{"line":306,"column":44}},"93":{"start":{"line":307,"column":12},"end":{"line":309,"column":13}},"94":{"start":{"line":308,"column":16},"end":{"line":308,"column":28}},"95":{"start":{"line":310,"column":15},"end":{"line":312,"column":9}},"96":{"start":{"line":311,"column":12},"end":{"line":311,"column":24}},"97":{"start":{"line":314,"column":8},"end":{"line":323,"column":9}},"98":{"start":{"line":315,"column":12},"end":{"line":315,"column":51}},"99":{"start":{"line":316,"column":12},"end":{"line":316,"column":58}},"100":{"start":{"line":317,"column":12},"end":{"line":322,"column":13}},"101":{"start":{"line":318,"column":16},"end":{"line":318,"column":44}},"102":{"start":{"line":319,"column":16},"end":{"line":321,"column":17}},"103":{"start":{"line":320,"column":20},"end":{"line":320,"column":58}},"104":{"start":{"line":326,"column":4},"end":{"line":326,"column":20}},"105":{"start":{"line":338,"column":0},"end":{"line":352,"column":2}},"106":{"start":{"line":339,"column":4},"end":{"line":340,"column":16}},"107":{"start":{"line":342,"column":4},"end":{"line":349,"column":5}},"108":{"start":{"line":343,"column":8},"end":{"line":343,"column":23}},"109":{"start":{"line":344,"column":8},"end":{"line":344,"column":31}},"110":{"start":{"line":346,"column":8},"end":{"line":346,"column":43}},"111":{"start":{"line":347,"column":11},"end":{"line":349,"column":5}},"112":{"start":{"line":348,"column":8},"end":{"line":348,"column":25}},"113":{"start":{"line":351,"column":4},"end":{"line":351,"column":15}},"114":{"start":{"line":362,"column":0},"end":{"line":373,"column":2}},"115":{"start":{"line":363,"column":4},"end":{"line":364,"column":12}},"116":{"start":{"line":366,"column":4},"end":{"line":370,"column":5}},"117":{"start":{"line":367,"column":8},"end":{"line":367,"column":55}},"118":{"start":{"line":368,"column":11},"end":{"line":370,"column":5}},"119":{"start":{"line":369,"column":8},"end":{"line":369,"column":25}},"120":{"start":{"line":372,"column":4},"end":{"line":372,"column":15}},"121":{"start":{"line":375,"column":0},"end":{"line":872,"column":9}},"122":{"start":{"line":384,"column":8},"end":{"line":386,"column":33}},"123":{"start":{"line":388,"column":8},"end":{"line":404,"column":9}},"124":{"start":{"line":389,"column":12},"end":{"line":389,"column":36}},"125":{"start":{"line":390,"column":12},"end":{"line":390,"column":70}},"126":{"start":{"line":391,"column":12},"end":{"line":391,"column":91}},"127":{"start":{"line":392,"column":12},"end":{"line":392,"column":34}},"128":{"start":{"line":394,"column":12},"end":{"line":396,"column":13}},"129":{"start":{"line":395,"column":16},"end":{"line":395,"column":32}},"130":{"start":{"line":398,"column":12},"end":{"line":400,"column":13}},"131":{"start":{"line":399,"column":16},"end":{"line":399,"column":57}},"132":{"start":{"line":403,"column":12},"end":{"line":403,"column":35}},"133":{"start":{"line":405,"column":8},"end":{"line":405,"column":19}},"134":{"start":{"line":418,"column":8},"end":{"line":418,"column":16}},"135":{"start":{"line":420,"column":8},"end":{"line":424,"column":9}},"136":{"start":{"line":421,"column":12},"end":{"line":421,"column":38}},"137":{"start":{"line":423,"column":12},"end":{"line":423,"column":34}},"138":{"start":{"line":426,"column":8},"end":{"line":430,"column":9}},"139":{"start":{"line":427,"column":12},"end":{"line":427,"column":45}},"140":{"start":{"line":428,"column":15},"end":{"line":430,"column":9}},"141":{"start":{"line":429,"column":12},"end":{"line":429,"column":23}},"142":{"start":{"line":431,"column":8},"end":{"line":431,"column":19}},"143":{"start":{"line":442,"column":8},"end":{"line":443,"column":16}},"144":{"start":{"line":445,"column":8},"end":{"line":451,"column":9}},"145":{"start":{"line":446,"column":12},"end":{"line":446,"column":47}},"146":{"start":{"line":447,"column":15},"end":{"line":451,"column":9}},"147":{"start":{"line":448,"column":12},"end":{"line":448,"column":51}},"148":{"start":{"line":450,"column":12},"end":{"line":450,"column":63}},"149":{"start":{"line":453,"column":8},"end":{"line":453,"column":19}},"150":{"start":{"line":468,"column":8},"end":{"line":468,"column":44}},"151":{"start":{"line":470,"column":8},"end":{"line":480,"column":9}},"152":{"start":{"line":471,"column":12},"end":{"line":471,"column":49}},"153":{"start":{"line":473,"column":12},"end":{"line":479,"column":13}},"154":{"start":{"line":474,"column":16},"end":{"line":474,"column":56}},"155":{"start":{"line":475,"column":19},"end":{"line":479,"column":13}},"156":{"start":{"line":476,"column":16},"end":{"line":476,"column":51}},"157":{"start":{"line":478,"column":16},"end":{"line":478,"column":61}},"158":{"start":{"line":482,"column":8},"end":{"line":482,"column":20}},"159":{"start":{"line":492,"column":8},"end":{"line":498,"column":9}},"160":{"start":{"line":493,"column":12},"end":{"line":493,"column":36}},"161":{"start":{"line":495,"column":12},"end":{"line":497,"column":21}},"162":{"start":{"line":496,"column":16},"end":{"line":496,"column":31}},"163":{"start":{"line":500,"column":8},"end":{"line":500,"column":20}},"164":{"start":{"line":510,"column":8},"end":{"line":510,"column":21}},"165":{"start":{"line":511,"column":8},"end":{"line":517,"column":9}},"166":{"start":{"line":512,"column":12},"end":{"line":512,"column":34}},"167":{"start":{"line":514,"column":12},"end":{"line":516,"column":21}},"168":{"start":{"line":515,"column":16},"end":{"line":515,"column":37}},"169":{"start":{"line":519,"column":8},"end":{"line":519,"column":19}},"170":{"start":{"line":530,"column":8},"end":{"line":530,"column":30}},"171":{"start":{"line":532,"column":8},"end":{"line":534,"column":9}},"172":{"start":{"line":533,"column":12},"end":{"line":533,"column":36}},"173":{"start":{"line":535,"column":8},"end":{"line":535,"column":32}},"174":{"start":{"line":546,"column":8},"end":{"line":546,"column":30}},"175":{"start":{"line":548,"column":8},"end":{"line":553,"column":9}},"176":{"start":{"line":549,"column":12},"end":{"line":549,"column":66}},"177":{"start":{"line":550,"column":12},"end":{"line":552,"column":13}},"178":{"start":{"line":551,"column":16},"end":{"line":551,"column":65}},"179":{"start":{"line":555,"column":8},"end":{"line":555,"column":21}},"180":{"start":{"line":559,"column":8},"end":{"line":560,"column":55}},"181":{"start":{"line":561,"column":8},"end":{"line":565,"column":9}},"182":{"start":{"line":562,"column":12},"end":{"line":562,"column":29}},"183":{"start":{"line":564,"column":12},"end":{"line":564,"column":23}},"184":{"start":{"line":566,"column":8},"end":{"line":566,"column":19}},"185":{"start":{"line":584,"column":8},"end":{"line":587,"column":9}},"186":{"start":{"line":586,"column":12},"end":{"line":586,"column":30}},"187":{"start":{"line":589,"column":8},"end":{"line":589,"column":89}},"188":{"start":{"line":601,"column":8},"end":{"line":604,"column":9}},"189":{"start":{"line":603,"column":12},"end":{"line":603,"column":30}},"190":{"start":{"line":605,"column":8},"end":{"line":605,"column":90}},"191":{"start":{"line":619,"column":8},"end":{"line":619,"column":91}},"192":{"start":{"line":633,"column":8},"end":{"line":633,"column":87}},"193":{"start":{"line":645,"column":8},"end":{"line":645,"column":62}},"194":{"start":{"line":659,"column":8},"end":{"line":659,"column":67}},"195":{"start":{"line":670,"column":8},"end":{"line":670,"column":21}},"196":{"start":{"line":672,"column":8},"end":{"line":676,"column":9}},"197":{"start":{"line":673,"column":12},"end":{"line":673,"column":69}},"198":{"start":{"line":674,"column":12},"end":{"line":674,"column":39}},"199":{"start":{"line":675,"column":12},"end":{"line":675,"column":45}},"200":{"start":{"line":678,"column":8},"end":{"line":678,"column":37}},"201":{"start":{"line":690,"column":8},"end":{"line":690,"column":53}},"202":{"start":{"line":703,"column":8},"end":{"line":703,"column":30}},"203":{"start":{"line":705,"column":8},"end":{"line":707,"column":9}},"204":{"start":{"line":706,"column":12},"end":{"line":706,"column":46}},"205":{"start":{"line":709,"column":8},"end":{"line":711,"column":9}},"206":{"start":{"line":710,"column":12},"end":{"line":710,"column":27}},"207":{"start":{"line":713,"column":8},"end":{"line":713,"column":20}},"208":{"start":{"line":726,"column":8},"end":{"line":726,"column":30}},"209":{"start":{"line":727,"column":8},"end":{"line":729,"column":9}},"210":{"start":{"line":728,"column":12},"end":{"line":728,"column":45}},"211":{"start":{"line":730,"column":8},"end":{"line":730,"column":71}},"212":{"start":{"line":731,"column":8},"end":{"line":731,"column":20}},"213":{"start":{"line":742,"column":8},"end":{"line":744,"column":9}},"214":{"start":{"line":743,"column":12},"end":{"line":743,"column":38}},"215":{"start":{"line":746,"column":8},"end":{"line":746,"column":99}},"216":{"start":{"line":759,"column":8},"end":{"line":760,"column":21}},"217":{"start":{"line":762,"column":8},"end":{"line":762,"column":21}},"218":{"start":{"line":764,"column":8},"end":{"line":766,"column":9}},"219":{"start":{"line":765,"column":12},"end":{"line":765,"column":26}},"220":{"start":{"line":768,"column":8},"end":{"line":768,"column":25}},"221":{"start":{"line":770,"column":8},"end":{"line":779,"column":9}},"222":{"start":{"line":771,"column":12},"end":{"line":778,"column":15}},"223":{"start":{"line":772,"column":16},"end":{"line":772,"column":55}},"224":{"start":{"line":773,"column":16},"end":{"line":777,"column":17}},"225":{"start":{"line":774,"column":19},"end":{"line":774,"column":38}},"226":{"start":{"line":776,"column":20},"end":{"line":776,"column":47}},"227":{"start":{"line":781,"column":8},"end":{"line":781,"column":45}},"228":{"start":{"line":783,"column":8},"end":{"line":783,"column":26}},"229":{"start":{"line":784,"column":8},"end":{"line":784,"column":32}},"230":{"start":{"line":798,"column":8},"end":{"line":799,"column":16}},"231":{"start":{"line":801,"column":8},"end":{"line":803,"column":9}},"232":{"start":{"line":802,"column":12},"end":{"line":802,"column":24}},"233":{"start":{"line":805,"column":8},"end":{"line":807,"column":9}},"234":{"start":{"line":806,"column":12},"end":{"line":806,"column":24}},"235":{"start":{"line":809,"column":8},"end":{"line":809,"column":42}},"236":{"start":{"line":810,"column":8},"end":{"line":810,"column":42}},"237":{"start":{"line":822,"column":12},"end":{"line":822,"column":62}},"238":{"start":{"line":825,"column":12},"end":{"line":825,"column":53}},"239":{"start":{"line":826,"column":12},"end":{"line":828,"column":52}},"240":{"start":{"line":830,"column":12},"end":{"line":837,"column":13}},"241":{"start":{"line":831,"column":16},"end":{"line":831,"column":53}},"242":{"start":{"line":832,"column":19},"end":{"line":837,"column":13}},"243":{"start":{"line":833,"column":16},"end":{"line":833,"column":53}},"244":{"start":{"line":835,"column":16},"end":{"line":835,"column":62}},"245":{"start":{"line":836,"column":16},"end":{"line":836,"column":57}},"246":{"start":{"line":838,"column":12},"end":{"line":838,"column":24}},"247":{"start":{"line":843,"column":8},"end":{"line":843,"column":30}},"248":{"start":{"line":844,"column":8},"end":{"line":847,"column":65}},"249":{"start":{"line":851,"column":8},"end":{"line":851,"column":45}},"250":{"start":{"line":860,"column":8},"end":{"line":860,"column":54}},"251":{"start":{"line":861,"column":8},"end":{"line":861,"column":20}},"252":{"start":{"line":870,"column":8},"end":{"line":870,"column":26}},"253":{"start":{"line":874,"column":0},"end":{"line":874,"column":16}},"254":{"start":{"line":875,"column":0},"end":{"line":875,"column":19}},"255":{"start":{"line":892,"column":0},"end":{"line":921,"column":2}},"256":{"start":{"line":893,"column":4},"end":{"line":893,"column":17}},"257":{"start":{"line":895,"column":4},"end":{"line":913,"column":5}},"258":{"start":{"line":896,"column":8},"end":{"line":912,"column":9}},"259":{"start":{"line":897,"column":12},"end":{"line":897,"column":32}},"260":{"start":{"line":898,"column":12},"end":{"line":898,"column":44}},"261":{"start":{"line":899,"column":15},"end":{"line":912,"column":9}},"262":{"start":{"line":900,"column":12},"end":{"line":900,"column":28}},"263":{"start":{"line":901,"column":15},"end":{"line":912,"column":9}},"264":{"start":{"line":902,"column":12},"end":{"line":902,"column":34}},"265":{"start":{"line":903,"column":15},"end":{"line":912,"column":9}},"266":{"start":{"line":904,"column":12},"end":{"line":908,"column":15}},"267":{"start":{"line":905,"column":16},"end":{"line":907,"column":17}},"268":{"start":{"line":906,"column":20},"end":{"line":906,"column":41}},"269":{"start":{"line":909,"column":12},"end":{"line":909,"column":24}},"270":{"start":{"line":911,"column":12},"end":{"line":911,"column":44}},"271":{"start":{"line":920,"column":4},"end":{"line":920,"column":30}},"272":{"start":{"line":923,"column":0},"end":{"line":923,"column":27}},"273":{"start":{"line":933,"column":0},"end":{"line":935,"column":2}},"274":{"start":{"line":934,"column":4},"end":{"line":934,"column":70}},"275":{"start":{"line":937,"column":0},"end":{"line":943,"column":2}},"276":{"start":{"line":938,"column":4},"end":{"line":938,"column":32}},"277":{"start":{"line":939,"column":4},"end":{"line":942,"column":5}},"278":{"start":{"line":940,"column":8},"end":{"line":940,"column":53}},"279":{"start":{"line":945,"column":0},"end":{"line":971,"column":2}},"280":{"start":{"line":946,"column":4},"end":{"line":970,"column":5}},"281":{"start":{"line":947,"column":8},"end":{"line":968,"column":10}},"282":{"start":{"line":948,"column":12},"end":{"line":949,"column":33}},"283":{"start":{"line":951,"column":12},"end":{"line":964,"column":15}},"284":{"start":{"line":952,"column":16},"end":{"line":954,"column":27}},"285":{"start":{"line":956,"column":16},"end":{"line":958,"column":17}},"286":{"start":{"line":957,"column":20},"end":{"line":957,"column":59}},"287":{"start":{"line":959,"column":16},"end":{"line":959,"column":42}},"288":{"start":{"line":960,"column":16},"end":{"line":960,"column":45}},"289":{"start":{"line":961,"column":16},"end":{"line":963,"column":17}},"290":{"start":{"line":962,"column":20},"end":{"line":962,"column":45}},"291":{"start":{"line":967,"column":12},"end":{"line":967,"column":43}},"292":{"start":{"line":983,"column":0},"end":{"line":992,"column":2}},"293":{"start":{"line":984,"column":4},"end":{"line":991,"column":5}},"294":{"start":{"line":985,"column":8},"end":{"line":985,"column":34}},"295":{"start":{"line":986,"column":8},"end":{"line":986,"column":48}},"296":{"start":{"line":988,"column":8},"end":{"line":990,"column":11}},"297":{"start":{"line":989,"column":12},"end":{"line":989,"column":43}},"298":{"start":{"line":994,"column":0},"end":{"line":1004,"column":2}},"299":{"start":{"line":995,"column":4},"end":{"line":995,"column":33}},"300":{"start":{"line":996,"column":4},"end":{"line":999,"column":5}},"301":{"start":{"line":997,"column":8},"end":{"line":997,"column":43}},"302":{"start":{"line":998,"column":8},"end":{"line":998,"column":33}},"303":{"start":{"line":1001,"column":4},"end":{"line":1001,"column":21}},"304":{"start":{"line":1002,"column":4},"end":{"line":1002,"column":27}},"305":{"start":{"line":1003,"column":4},"end":{"line":1003,"column":15}},"306":{"start":{"line":1006,"column":0},"end":{"line":1231,"column":9}},"307":{"start":{"line":1008,"column":8},"end":{"line":1008,"column":39}},"308":{"start":{"line":1010,"column":8},"end":{"line":1015,"column":11}},"309":{"start":{"line":1011,"column":12},"end":{"line":1011,"column":53}},"310":{"start":{"line":1012,"column":12},"end":{"line":1014,"column":13}},"311":{"start":{"line":1013,"column":16},"end":{"line":1013,"column":30}},"312":{"start":{"line":1017,"column":8},"end":{"line":1017,"column":19}},"313":{"start":{"line":1028,"column":8},"end":{"line":1028,"column":49}},"314":{"start":{"line":1041,"column":8},"end":{"line":1041,"column":28}},"315":{"start":{"line":1042,"column":8},"end":{"line":1045,"column":11}},"316":{"start":{"line":1043,"column":12},"end":{"line":1043,"column":31}},"317":{"start":{"line":1044,"column":12},"end":{"line":1044,"column":67}},"318":{"start":{"line":1046,"column":8},"end":{"line":1046,"column":24}},"319":{"start":{"line":1050,"column":8},"end":{"line":1050,"column":28}},"320":{"start":{"line":1052,"column":8},"end":{"line":1059,"column":11}},"321":{"start":{"line":1053,"column":12},"end":{"line":1053,"column":55}},"322":{"start":{"line":1054,"column":12},"end":{"line":1056,"column":13}},"323":{"start":{"line":1055,"column":16},"end":{"line":1055,"column":55}},"324":{"start":{"line":1058,"column":12},"end":{"line":1058,"column":75}},"325":{"start":{"line":1060,"column":8},"end":{"line":1060,"column":24}},"326":{"start":{"line":1073,"column":8},"end":{"line":1073,"column":28}},"327":{"start":{"line":1074,"column":8},"end":{"line":1078,"column":11}},"328":{"start":{"line":1075,"column":12},"end":{"line":1075,"column":31}},"329":{"start":{"line":1076,"column":12},"end":{"line":1076,"column":38}},"330":{"start":{"line":1077,"column":12},"end":{"line":1077,"column":59}},"331":{"start":{"line":1087,"column":8},"end":{"line":1087,"column":50}},"332":{"start":{"line":1098,"column":8},"end":{"line":1098,"column":69}},"333":{"start":{"line":1109,"column":8},"end":{"line":1109,"column":63}},"334":{"start":{"line":1123,"column":8},"end":{"line":1123,"column":19}},"335":{"start":{"line":1124,"column":8},"end":{"line":1124,"column":23}},"336":{"start":{"line":1125,"column":8},"end":{"line":1129,"column":11}},"337":{"start":{"line":1126,"column":12},"end":{"line":1128,"column":13}},"338":{"start":{"line":1127,"column":16},"end":{"line":1127,"column":33}},"339":{"start":{"line":1131,"column":8},"end":{"line":1131,"column":28}},"340":{"start":{"line":1141,"column":8},"end":{"line":1141,"column":34}},"341":{"start":{"line":1151,"column":8},"end":{"line":1151,"column":31}},"342":{"start":{"line":1163,"column":8},"end":{"line":1166,"column":35}},"343":{"start":{"line":1168,"column":8},"end":{"line":1176,"column":9}},"344":{"start":{"line":1169,"column":12},"end":{"line":1173,"column":13}},"345":{"start":{"line":1170,"column":16},"end":{"line":1172,"column":17}},"346":{"start":{"line":1171,"column":20},"end":{"line":1171,"column":50}},"347":{"start":{"line":1175,"column":12},"end":{"line":1175,"column":56}},"348":{"start":{"line":1178,"column":8},"end":{"line":1178,"column":20}},"349":{"start":{"line":1187,"column":8},"end":{"line":1187,"column":34}},"350":{"start":{"line":1196,"column":8},"end":{"line":1196,"column":38}},"351":{"start":{"line":1200,"column":8},"end":{"line":1203,"column":17}},"352":{"start":{"line":1205,"column":8},"end":{"line":1219,"column":9}},"353":{"start":{"line":1206,"column":12},"end":{"line":1206,"column":28}},"354":{"start":{"line":1207,"column":12},"end":{"line":1207,"column":35}},"355":{"start":{"line":1208,"column":12},"end":{"line":1210,"column":13}},"356":{"start":{"line":1209,"column":16},"end":{"line":1209,"column":37}},"357":{"start":{"line":1212,"column":12},"end":{"line":1214,"column":13}},"358":{"start":{"line":1213,"column":16},"end":{"line":1213,"column":62}},"359":{"start":{"line":1216,"column":12},"end":{"line":1218,"column":13}},"360":{"start":{"line":1217,"column":16},"end":{"line":1217,"column":57}},"361":{"start":{"line":1220,"column":8},"end":{"line":1220,"column":31}},"362":{"start":{"line":1229,"column":8},"end":{"line":1229,"column":27}},"363":{"start":{"line":1233,"column":0},"end":{"line":1277,"column":3}},"364":{"start":{"line":1286,"column":0},"end":{"line":1318,"column":2}},"365":{"start":{"line":1287,"column":4},"end":{"line":1292,"column":12}},"366":{"start":{"line":1294,"column":4},"end":{"line":1300,"column":5}},"367":{"start":{"line":1295,"column":8},"end":{"line":1295,"column":72}},"368":{"start":{"line":1296,"column":8},"end":{"line":1296,"column":34}},"369":{"start":{"line":1297,"column":8},"end":{"line":1299,"column":9}},"370":{"start":{"line":1298,"column":12},"end":{"line":1298,"column":30}},"371":{"start":{"line":1302,"column":4},"end":{"line":1315,"column":7}},"372":{"start":{"line":1303,"column":8},"end":{"line":1303,"column":47}},"373":{"start":{"line":1305,"column":8},"end":{"line":1307,"column":9}},"374":{"start":{"line":1306,"column":12},"end":{"line":1306,"column":37}},"375":{"start":{"line":1309,"column":8},"end":{"line":1309,"column":34}},"376":{"start":{"line":1310,"column":8},"end":{"line":1312,"column":9}},"377":{"start":{"line":1311,"column":12},"end":{"line":1311,"column":49}},"378":{"start":{"line":1314,"column":8},"end":{"line":1314,"column":22}},"379":{"start":{"line":1317,"column":4},"end":{"line":1317,"column":43}},"380":{"start":{"line":1320,"column":0},"end":{"line":1320,"column":22}},"381":{"start":{"line":1322,"column":0},"end":{"line":1324,"column":2}},"382":{"start":{"line":1323,"column":4},"end":{"line":1323,"column":31}},"383":{"start":{"line":1326,"column":0},"end":{"line":1326,"column":19}},"384":{"start":{"line":1332,"column":0},"end":{"line":1389,"column":6}},"385":{"start":{"line":1392,"column":0},"end":{"line":1413,"column":3}},"386":{"start":{"line":1393,"column":4},"end":{"line":1412,"column":6}},"387":{"start":{"line":1394,"column":8},"end":{"line":1397,"column":16}},"388":{"start":{"line":1399,"column":8},"end":{"line":1401,"column":9}},"389":{"start":{"line":1400,"column":12},"end":{"line":1400,"column":54}},"390":{"start":{"line":1403,"column":8},"end":{"line":1403,"column":56}},"391":{"start":{"line":1405,"column":8},"end":{"line":1409,"column":9}},"392":{"start":{"line":1406,"column":12},"end":{"line":1406,"column":29}},"393":{"start":{"line":1408,"column":12},"end":{"line":1408,"column":39}},"394":{"start":{"line":1411,"column":8},"end":{"line":1411,"column":19}},"395":{"start":{"line":1419,"column":0},"end":{"line":1518,"column":3}},"396":{"start":{"line":1514,"column":4},"end":{"line":1517,"column":6}},"397":{"start":{"line":1515,"column":8},"end":{"line":1515,"column":56}},"398":{"start":{"line":1516,"column":8},"end":{"line":1516,"column":19}},"399":{"start":{"line":1527,"column":0},"end":{"line":1534,"column":2}},"400":{"start":{"line":1528,"column":4},"end":{"line":1528,"column":26}},"401":{"start":{"line":1529,"column":4},"end":{"line":1531,"column":5}},"402":{"start":{"line":1530,"column":8},"end":{"line":1530,"column":38}},"403":{"start":{"line":1533,"column":4},"end":{"line":1533,"column":16}},"404":{"start":{"line":1536,"column":0},"end":{"line":1586,"column":3}},"405":{"start":{"line":1588,"column":0},"end":{"line":1641,"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":39}},{"start":{"line":51,"column":43},"end":{"line":51,"column":85}}]},"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":127,"type":"if","locations":[{"start":{"line":127,"column":0},"end":{"line":127,"column":0}},{"start":{"line":127,"column":0},"end":{"line":127,"column":0}}]},"17":{"line":134,"type":"cond-expr","locations":[{"start":{"line":134,"column":48},"end":{"line":134,"column":52}},{"start":{"line":134,"column":55},"end":{"line":134,"column":60}}]},"18":{"line":146,"type":"if","locations":[{"start":{"line":146,"column":12},"end":{"line":146,"column":12}},{"start":{"line":146,"column":12},"end":{"line":146,"column":12}}]},"19":{"line":147,"type":"cond-expr","locations":[{"start":{"line":147,"column":54},"end":{"line":147,"column":64}},{"start":{"line":147,"column":67},"end":{"line":147,"column":73}}]},"20":{"line":147,"type":"binary-expr","locations":[{"start":{"line":147,"column":20},"end":{"line":147,"column":30}},{"start":{"line":147,"column":34},"end":{"line":147,"column":50}}]},"21":{"line":172,"type":"if","locations":[{"start":{"line":172,"column":4},"end":{"line":172,"column":4}},{"start":{"line":172,"column":4},"end":{"line":172,"column":4}}]},"22":{"line":173,"type":"cond-expr","locations":[{"start":{"line":173,"column":33},"end":{"line":173,"column":37}},{"start":{"line":173,"column":40},"end":{"line":173,"column":58}}]},"23":{"line":173,"type":"binary-expr","locations":[{"start":{"line":173,"column":40},"end":{"line":173,"column":50}},{"start":{"line":173,"column":54},"end":{"line":173,"column":58}}]},"24":{"line":190,"type":"if","locations":[{"start":{"line":190,"column":4},"end":{"line":190,"column":4}},{"start":{"line":190,"column":4},"end":{"line":190,"column":4}}]},"25":{"line":191,"type":"if","locations":[{"start":{"line":191,"column":9},"end":{"line":191,"column":9}},{"start":{"line":191,"column":9},"end":{"line":191,"column":9}}]},"26":{"line":191,"type":"binary-expr","locations":[{"start":{"line":191,"column":13},"end":{"line":191,"column":35}},{"start":{"line":191,"column":39},"end":{"line":191,"column":63}}]},"27":{"line":192,"type":"if","locations":[{"start":{"line":192,"column":12},"end":{"line":192,"column":12}},{"start":{"line":192,"column":12},"end":{"line":192,"column":12}}]},"28":{"line":192,"type":"binary-expr","locations":[{"start":{"line":192,"column":16},"end":{"line":192,"column":32}},{"start":{"line":192,"column":36},"end":{"line":192,"column":55}}]},"29":{"line":194,"type":"if","locations":[{"start":{"line":194,"column":19},"end":{"line":194,"column":19}},{"start":{"line":194,"column":19},"end":{"line":194,"column":19}}]},"30":{"line":194,"type":"binary-expr","locations":[{"start":{"line":194,"column":24},"end":{"line":194,"column":32}},{"start":{"line":194,"column":36},"end":{"line":194,"column":47}},{"start":{"line":195,"column":21},"end":{"line":195,"column":27}},{"start":{"line":195,"column":31},"end":{"line":195,"column":48}}]},"31":{"line":199,"type":"if","locations":[{"start":{"line":199,"column":11},"end":{"line":199,"column":11}},{"start":{"line":199,"column":11},"end":{"line":199,"column":11}}]},"32":{"line":201,"type":"if","locations":[{"start":{"line":201,"column":11},"end":{"line":201,"column":11}},{"start":{"line":201,"column":11},"end":{"line":201,"column":11}}]},"33":{"line":220,"type":"if","locations":[{"start":{"line":220,"column":4},"end":{"line":220,"column":4}},{"start":{"line":220,"column":4},"end":{"line":220,"column":4}}]},"34":{"line":220,"type":"binary-expr","locations":[{"start":{"line":220,"column":8},"end":{"line":220,"column":12}},{"start":{"line":220,"column":16},"end":{"line":220,"column":18}},{"start":{"line":220,"column":22},"end":{"line":220,"column":45}}]},"35":{"line":226,"type":"if","locations":[{"start":{"line":226,"column":12},"end":{"line":226,"column":12}},{"start":{"line":226,"column":12},"end":{"line":226,"column":12}}]},"36":{"line":226,"type":"binary-expr","locations":[{"start":{"line":226,"column":16},"end":{"line":226,"column":23}},{"start":{"line":226,"column":27},"end":{"line":226,"column":40}}]},"37":{"line":230,"type":"if","locations":[{"start":{"line":230,"column":12},"end":{"line":230,"column":12}},{"start":{"line":230,"column":12},"end":{"line":230,"column":12}}]},"38":{"line":230,"type":"binary-expr","locations":[{"start":{"line":230,"column":16},"end":{"line":230,"column":23}},{"start":{"line":230,"column":27},"end":{"line":230,"column":40}}]},"39":{"line":235,"type":"binary-expr","locations":[{"start":{"line":235,"column":27},"end":{"line":235,"column":34}},{"start":{"line":235,"column":38},"end":{"line":235,"column":42}}]},"40":{"line":237,"type":"if","locations":[{"start":{"line":237,"column":12},"end":{"line":237,"column":12}},{"start":{"line":237,"column":12},"end":{"line":237,"column":12}}]},"41":{"line":241,"type":"binary-expr","locations":[{"start":{"line":241,"column":13},"end":{"line":241,"column":38}},{"start":{"line":241,"column":44},"end":{"line":241,"column":54}}]},"42":{"line":259,"type":"if","locations":[{"start":{"line":259,"column":4},"end":{"line":259,"column":4}},{"start":{"line":259,"column":4},"end":{"line":259,"column":4}}]},"43":{"line":260,"type":"binary-expr","locations":[{"start":{"line":260,"column":18},"end":{"line":260,"column":25}},{"start":{"line":260,"column":29},"end":{"line":260,"column":33}}]},"44":{"line":304,"type":"if","locations":[{"start":{"line":304,"column":4},"end":{"line":304,"column":4}},{"start":{"line":304,"column":4},"end":{"line":304,"column":4}}]},"45":{"line":305,"type":"if","locations":[{"start":{"line":305,"column":8},"end":{"line":305,"column":8}},{"start":{"line":305,"column":8},"end":{"line":305,"column":8}}]},"46":{"line":307,"type":"if","locations":[{"start":{"line":307,"column":12},"end":{"line":307,"column":12}},{"start":{"line":307,"column":12},"end":{"line":307,"column":12}}]},"47":{"line":310,"type":"if","locations":[{"start":{"line":310,"column":15},"end":{"line":310,"column":15}},{"start":{"line":310,"column":15},"end":{"line":310,"column":15}}]},"48":{"line":314,"type":"if","locations":[{"start":{"line":314,"column":8},"end":{"line":314,"column":8}},{"start":{"line":314,"column":8},"end":{"line":314,"column":8}}]},"49":{"line":314,"type":"binary-expr","locations":[{"start":{"line":314,"column":12},"end":{"line":314,"column":25}},{"start":{"line":314,"column":29},"end":{"line":314,"column":49}}]},"50":{"line":316,"type":"cond-expr","locations":[{"start":{"line":316,"column":36},"end":{"line":316,"column":50}},{"start":{"line":316,"column":53},"end":{"line":316,"column":57}}]},"51":{"line":317,"type":"if","locations":[{"start":{"line":317,"column":12},"end":{"line":317,"column":12}},{"start":{"line":317,"column":12},"end":{"line":317,"column":12}}]},"52":{"line":317,"type":"binary-expr","locations":[{"start":{"line":317,"column":16},"end":{"line":317,"column":25}},{"start":{"line":317,"column":30},"end":{"line":317,"column":40}},{"start":{"line":317,"column":44},"end":{"line":317,"column":63}}]},"53":{"line":319,"type":"if","locations":[{"start":{"line":319,"column":16},"end":{"line":319,"column":16}},{"start":{"line":319,"column":16},"end":{"line":319,"column":16}}]},"54":{"line":342,"type":"if","locations":[{"start":{"line":342,"column":4},"end":{"line":342,"column":4}},{"start":{"line":342,"column":4},"end":{"line":342,"column":4}}]},"55":{"line":347,"type":"if","locations":[{"start":{"line":347,"column":11},"end":{"line":347,"column":11}},{"start":{"line":347,"column":11},"end":{"line":347,"column":11}}]},"56":{"line":366,"type":"if","locations":[{"start":{"line":366,"column":4},"end":{"line":366,"column":4}},{"start":{"line":366,"column":4},"end":{"line":366,"column":4}}]},"57":{"line":366,"type":"binary-expr","locations":[{"start":{"line":366,"column":8},"end":{"line":366,"column":20}},{"start":{"line":366,"column":24},"end":{"line":366,"column":46}}]},"58":{"line":368,"type":"if","locations":[{"start":{"line":368,"column":11},"end":{"line":368,"column":11}},{"start":{"line":368,"column":11},"end":{"line":368,"column":11}}]},"59":{"line":388,"type":"if","locations":[{"start":{"line":388,"column":8},"end":{"line":388,"column":8}},{"start":{"line":388,"column":8},"end":{"line":388,"column":8}}]},"60":{"line":390,"type":"cond-expr","locations":[{"start":{"line":390,"column":39},"end":{"line":390,"column":62}},{"start":{"line":390,"column":65},"end":{"line":390,"column":69}}]},"61":{"line":390,"type":"binary-expr","locations":[{"start":{"line":390,"column":18},"end":{"line":390,"column":23}},{"start":{"line":390,"column":27},"end":{"line":390,"column":35}}]},"62":{"line":391,"type":"cond-expr","locations":[{"start":{"line":391,"column":53},"end":{"line":391,"column":83}},{"start":{"line":391,"column":86},"end":{"line":391,"column":90}}]},"63":{"line":391,"type":"binary-expr","locations":[{"start":{"line":391,"column":25},"end":{"line":391,"column":30}},{"start":{"line":391,"column":34},"end":{"line":391,"column":49}}]},"64":{"line":394,"type":"if","locations":[{"start":{"line":394,"column":12},"end":{"line":394,"column":12}},{"start":{"line":394,"column":12},"end":{"line":394,"column":12}}]},"65":{"line":398,"type":"if","locations":[{"start":{"line":398,"column":12},"end":{"line":398,"column":12}},{"start":{"line":398,"column":12},"end":{"line":398,"column":12}}]},"66":{"line":420,"type":"if","locations":[{"start":{"line":420,"column":8},"end":{"line":420,"column":8}},{"start":{"line":420,"column":8},"end":{"line":420,"column":8}}]},"67":{"line":426,"type":"if","locations":[{"start":{"line":426,"column":8},"end":{"line":426,"column":8}},{"start":{"line":426,"column":8},"end":{"line":426,"column":8}}]},"68":{"line":428,"type":"if","locations":[{"start":{"line":428,"column":15},"end":{"line":428,"column":15}},{"start":{"line":428,"column":15},"end":{"line":428,"column":15}}]},"69":{"line":445,"type":"if","locations":[{"start":{"line":445,"column":8},"end":{"line":445,"column":8}},{"start":{"line":445,"column":8},"end":{"line":445,"column":8}}]},"70":{"line":445,"type":"binary-expr","locations":[{"start":{"line":445,"column":12},"end":{"line":445,"column":22}},{"start":{"line":445,"column":26},"end":{"line":445,"column":43}}]},"71":{"line":447,"type":"if","locations":[{"start":{"line":447,"column":15},"end":{"line":447,"column":15}},{"start":{"line":447,"column":15},"end":{"line":447,"column":15}}]},"72":{"line":470,"type":"if","locations":[{"start":{"line":470,"column":8},"end":{"line":470,"column":8}},{"start":{"line":470,"column":8},"end":{"line":470,"column":8}}]},"73":{"line":473,"type":"if","locations":[{"start":{"line":473,"column":12},"end":{"line":473,"column":12}},{"start":{"line":473,"column":12},"end":{"line":473,"column":12}}]},"74":{"line":473,"type":"binary-expr","locations":[{"start":{"line":473,"column":16},"end":{"line":473,"column":26}},{"start":{"line":473,"column":30},"end":{"line":473,"column":47}}]},"75":{"line":475,"type":"if","locations":[{"start":{"line":475,"column":19},"end":{"line":475,"column":19}},{"start":{"line":475,"column":19},"end":{"line":475,"column":19}}]},"76":{"line":492,"type":"if","locations":[{"start":{"line":492,"column":8},"end":{"line":492,"column":8}},{"start":{"line":492,"column":8},"end":{"line":492,"column":8}}]},"77":{"line":511,"type":"if","locations":[{"start":{"line":511,"column":8},"end":{"line":511,"column":8}},{"start":{"line":511,"column":8},"end":{"line":511,"column":8}}]},"78":{"line":532,"type":"if","locations":[{"start":{"line":532,"column":8},"end":{"line":532,"column":8}},{"start":{"line":532,"column":8},"end":{"line":532,"column":8}}]},"79":{"line":532,"type":"binary-expr","locations":[{"start":{"line":532,"column":12},"end":{"line":532,"column":19}},{"start":{"line":532,"column":23},"end":{"line":532,"column":36}}]},"80":{"line":548,"type":"if","locations":[{"start":{"line":548,"column":8},"end":{"line":548,"column":8}},{"start":{"line":548,"column":8},"end":{"line":548,"column":8}}]},"81":{"line":549,"type":"cond-expr","locations":[{"start":{"line":549,"column":26},"end":{"line":549,"column":42}},{"start":{"line":549,"column":45},"end":{"line":549,"column":65}}]},"82":{"line":549,"type":"binary-expr","locations":[{"start":{"line":549,"column":26},"end":{"line":549,"column":35}},{"start":{"line":549,"column":39},"end":{"line":549,"column":42}}]},"83":{"line":550,"type":"if","locations":[{"start":{"line":550,"column":12},"end":{"line":550,"column":12}},{"start":{"line":550,"column":12},"end":{"line":550,"column":12}}]},"84":{"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}}]},"85":{"line":561,"type":"binary-expr","locations":[{"start":{"line":561,"column":12},"end":{"line":561,"column":15}},{"start":{"line":561,"column":19},"end":{"line":561,"column":44}}]},"86":{"line":584,"type":"if","locations":[{"start":{"line":584,"column":8},"end":{"line":584,"column":8}},{"start":{"line":584,"column":8},"end":{"line":584,"column":8}}]},"87":{"line":584,"type":"binary-expr","locations":[{"start":{"line":584,"column":12},"end":{"line":584,"column":34}},{"start":{"line":585,"column":17},"end":{"line":585,"column":44}},{"start":{"line":585,"column":48},"end":{"line":585,"column":77}}]},"88":{"line":601,"type":"if","locations":[{"start":{"line":601,"column":8},"end":{"line":601,"column":8}},{"start":{"line":601,"column":8},"end":{"line":601,"column":8}}]},"89":{"line":601,"type":"binary-expr","locations":[{"start":{"line":601,"column":12},"end":{"line":601,"column":34}},{"start":{"line":602,"column":17},"end":{"line":602,"column":44}},{"start":{"line":602,"column":48},"end":{"line":602,"column":77}}]},"90":{"line":672,"type":"if","locations":[{"start":{"line":672,"column":8},"end":{"line":672,"column":8}},{"start":{"line":672,"column":8},"end":{"line":672,"column":8}}]},"91":{"line":678,"type":"binary-expr","locations":[{"start":{"line":678,"column":15},"end":{"line":678,"column":23}},{"start":{"line":678,"column":27},"end":{"line":678,"column":36}}]},"92":{"line":705,"type":"if","locations":[{"start":{"line":705,"column":8},"end":{"line":705,"column":8}},{"start":{"line":705,"column":8},"end":{"line":705,"column":8}}]},"93":{"line":705,"type":"binary-expr","locations":[{"start":{"line":705,"column":12},"end":{"line":705,"column":16}},{"start":{"line":705,"column":20},"end":{"line":705,"column":35}}]},"94":{"line":709,"type":"if","locations":[{"start":{"line":709,"column":8},"end":{"line":709,"column":8}},{"start":{"line":709,"column":8},"end":{"line":709,"column":8}}]},"95":{"line":727,"type":"if","locations":[{"start":{"line":727,"column":8},"end":{"line":727,"column":8}},{"start":{"line":727,"column":8},"end":{"line":727,"column":8}}]},"96":{"line":742,"type":"if","locations":[{"start":{"line":742,"column":8},"end":{"line":742,"column":8}},{"start":{"line":742,"column":8},"end":{"line":742,"column":8}}]},"97":{"line":759,"type":"cond-expr","locations":[{"start":{"line":759,"column":42},"end":{"line":759,"column":52}},{"start":{"line":759,"column":55},"end":{"line":759,"column":62}}]},"98":{"line":764,"type":"if","locations":[{"start":{"line":764,"column":8},"end":{"line":764,"column":8}},{"start":{"line":764,"column":8},"end":{"line":764,"column":8}}]},"99":{"line":770,"type":"if","locations":[{"start":{"line":770,"column":8},"end":{"line":770,"column":8}},{"start":{"line":770,"column":8},"end":{"line":770,"column":8}}]},"100":{"line":773,"type":"if","locations":[{"start":{"line":773,"column":16},"end":{"line":773,"column":16}},{"start":{"line":773,"column":16},"end":{"line":773,"column":16}}]},"101":{"line":801,"type":"if","locations":[{"start":{"line":801,"column":8},"end":{"line":801,"column":8}},{"start":{"line":801,"column":8},"end":{"line":801,"column":8}}]},"102":{"line":801,"type":"binary-expr","locations":[{"start":{"line":801,"column":12},"end":{"line":801,"column":13}},{"start":{"line":801,"column":17},"end":{"line":801,"column":24}}]},"103":{"line":805,"type":"if","locations":[{"start":{"line":805,"column":8},"end":{"line":805,"column":8}},{"start":{"line":805,"column":8},"end":{"line":805,"column":8}}]},"104":{"line":805,"type":"binary-expr","locations":[{"start":{"line":805,"column":12},"end":{"line":805,"column":13}},{"start":{"line":805,"column":17},"end":{"line":805,"column":24}}]},"105":{"line":820,"type":"cond-expr","locations":[{"start":{"line":821,"column":8},"end":{"line":823,"column":9}},{"start":{"line":824,"column":8},"end":{"line":839,"column":9}}]},"106":{"line":830,"type":"if","locations":[{"start":{"line":830,"column":12},"end":{"line":830,"column":12}},{"start":{"line":830,"column":12},"end":{"line":830,"column":12}}]},"107":{"line":832,"type":"if","locations":[{"start":{"line":832,"column":19},"end":{"line":832,"column":19}},{"start":{"line":832,"column":19},"end":{"line":832,"column":19}}]},"108":{"line":844,"type":"binary-expr","locations":[{"start":{"line":844,"column":18},"end":{"line":844,"column":22}},{"start":{"line":844,"column":26},"end":{"line":844,"column":40}},{"start":{"line":845,"column":16},"end":{"line":845,"column":48}},{"start":{"line":846,"column":13},"end":{"line":846,"column":46}},{"start":{"line":847,"column":16},"end":{"line":847,"column":62}}]},"109":{"line":895,"type":"if","locations":[{"start":{"line":895,"column":4},"end":{"line":895,"column":4}},{"start":{"line":895,"column":4},"end":{"line":895,"column":4}}]},"110":{"line":896,"type":"if","locations":[{"start":{"line":896,"column":8},"end":{"line":896,"column":8}},{"start":{"line":896,"column":8},"end":{"line":896,"column":8}}]},"111":{"line":899,"type":"if","locations":[{"start":{"line":899,"column":15},"end":{"line":899,"column":15}},{"start":{"line":899,"column":15},"end":{"line":899,"column":15}}]},"112":{"line":899,"type":"binary-expr","locations":[{"start":{"line":899,"column":19},"end":{"line":899,"column":33}},{"start":{"line":899,"column":37},"end":{"line":899,"column":58}}]},"113":{"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}}]},"114":{"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}}]},"115":{"line":903,"type":"binary-expr","locations":[{"start":{"line":903,"column":19},"end":{"line":903,"column":27}},{"start":{"line":903,"column":31},"end":{"line":903,"column":45}}]},"116":{"line":905,"type":"if","locations":[{"start":{"line":905,"column":16},"end":{"line":905,"column":16}},{"start":{"line":905,"column":16},"end":{"line":905,"column":16}}]},"117":{"line":920,"type":"binary-expr","locations":[{"start":{"line":920,"column":18},"end":{"line":920,"column":23}},{"start":{"line":920,"column":27},"end":{"line":920,"column":29}}]},"118":{"line":934,"type":"cond-expr","locations":[{"start":{"line":934,"column":43},"end":{"line":934,"column":58}},{"start":{"line":934,"column":61},"end":{"line":934,"column":69}}]},"119":{"line":934,"type":"binary-expr","locations":[{"start":{"line":934,"column":12},"end":{"line":934,"column":20}},{"start":{"line":934,"column":24},"end":{"line":934,"column":39}}]},"120":{"line":939,"type":"if","locations":[{"start":{"line":939,"column":4},"end":{"line":939,"column":4}},{"start":{"line":939,"column":4},"end":{"line":939,"column":4}}]},"121":{"line":939,"type":"binary-expr","locations":[{"start":{"line":939,"column":8},"end":{"line":939,"column":13}},{"start":{"line":939,"column":17},"end":{"line":939,"column":29}}]},"122":{"line":940,"type":"binary-expr","locations":[{"start":{"line":940,"column":32},"end":{"line":940,"column":39}},{"start":{"line":940,"column":43},"end":{"line":940,"column":51}}]},"123":{"line":946,"type":"if","locations":[{"start":{"line":946,"column":4},"end":{"line":946,"column":4}},{"start":{"line":946,"column":4},"end":{"line":946,"column":4}}]},"124":{"line":946,"type":"binary-expr","locations":[{"start":{"line":946,"column":8},"end":{"line":946,"column":12}},{"start":{"line":946,"column":16},"end":{"line":946,"column":18}}]},"125":{"line":956,"type":"if","locations":[{"start":{"line":956,"column":16},"end":{"line":956,"column":16}},{"start":{"line":956,"column":16},"end":{"line":956,"column":16}}]},"126":{"line":959,"type":"binary-expr","locations":[{"start":{"line":959,"column":22},"end":{"line":959,"column":29}},{"start":{"line":959,"column":33},"end":{"line":959,"column":41}}]},"127":{"line":961,"type":"if","locations":[{"start":{"line":961,"column":16},"end":{"line":961,"column":16}},{"start":{"line":961,"column":16},"end":{"line":961,"column":16}}]},"128":{"line":961,"type":"binary-expr","locations":[{"start":{"line":961,"column":20},"end":{"line":961,"column":40}},{"start":{"line":961,"column":44},"end":{"line":961,"column":63}}]},"129":{"line":967,"type":"cond-expr","locations":[{"start":{"line":967,"column":32},"end":{"line":967,"column":35}},{"start":{"line":967,"column":38},"end":{"line":967,"column":42}}]},"130":{"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}}]},"131":{"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}}]},"132":{"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}}]},"133":{"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}}]},"134":{"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}}]},"135":{"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}}]},"136":{"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}}]},"137":{"line":1054,"type":"if","locations":[{"start":{"line":1054,"column":12},"end":{"line":1054,"column":12}},{"start":{"line":1054,"column":12},"end":{"line":1054,"column":12}}]},"138":{"line":1058,"type":"binary-expr","locations":[{"start":{"line":1058,"column":27},"end":{"line":1058,"column":34}},{"start":{"line":1058,"column":38},"end":{"line":1058,"column":46}}]},"139":{"line":1076,"type":"binary-expr","locations":[{"start":{"line":1076,"column":22},"end":{"line":1076,"column":29}},{"start":{"line":1076,"column":33},"end":{"line":1076,"column":37}}]},"140":{"line":1123,"type":"binary-expr","locations":[{"start":{"line":1123,"column":12},"end":{"line":1123,"column":13}},{"start":{"line":1123,"column":17},"end":{"line":1123,"column":18}}]},"141":{"line":1126,"type":"if","locations":[{"start":{"line":1126,"column":12},"end":{"line":1126,"column":12}},{"start":{"line":1126,"column":12},"end":{"line":1126,"column":12}}]},"142":{"line":1168,"type":"if","locations":[{"start":{"line":1168,"column":8},"end":{"line":1168,"column":8}},{"start":{"line":1168,"column":8},"end":{"line":1168,"column":8}}]},"143":{"line":1169,"type":"if","locations":[{"start":{"line":1169,"column":12},"end":{"line":1169,"column":12}},{"start":{"line":1169,"column":12},"end":{"line":1169,"column":12}}]},"144":{"line":1170,"type":"if","locations":[{"start":{"line":1170,"column":16},"end":{"line":1170,"column":16}},{"start":{"line":1170,"column":16},"end":{"line":1170,"column":16}}]},"145":{"line":1170,"type":"binary-expr","locations":[{"start":{"line":1170,"column":20},"end":{"line":1170,"column":25}},{"start":{"line":1170,"column":29},"end":{"line":1170,"column":37}},{"start":{"line":1170,"column":41},"end":{"line":1170,"column":63}}]},"146":{"line":1205,"type":"if","locations":[{"start":{"line":1205,"column":8},"end":{"line":1205,"column":8}},{"start":{"line":1205,"column":8},"end":{"line":1205,"column":8}}]},"147":{"line":1205,"type":"binary-expr","locations":[{"start":{"line":1205,"column":12},"end":{"line":1205,"column":17}},{"start":{"line":1205,"column":21},"end":{"line":1205,"column":29}}]},"148":{"line":1208,"type":"if","locations":[{"start":{"line":1208,"column":12},"end":{"line":1208,"column":12}},{"start":{"line":1208,"column":12},"end":{"line":1208,"column":12}}]},"149":{"line":1212,"type":"if","locations":[{"start":{"line":1212,"column":12},"end":{"line":1212,"column":12}},{"start":{"line":1212,"column":12},"end":{"line":1212,"column":12}}]},"150":{"line":1216,"type":"if","locations":[{"start":{"line":1216,"column":12},"end":{"line":1216,"column":12}},{"start":{"line":1216,"column":12},"end":{"line":1216,"column":12}}]},"151":{"line":1220,"type":"binary-expr","locations":[{"start":{"line":1220,"column":15},"end":{"line":1220,"column":18}},{"start":{"line":1220,"column":22},"end":{"line":1220,"column":30}}]},"152":{"line":1294,"type":"if","locations":[{"start":{"line":1294,"column":4},"end":{"line":1294,"column":4}},{"start":{"line":1294,"column":4},"end":{"line":1294,"column":4}}]},"153":{"line":1295,"type":"binary-expr","locations":[{"start":{"line":1295,"column":19},"end":{"line":1295,"column":50}},{"start":{"line":1295,"column":54},"end":{"line":1295,"column":71}}]},"154":{"line":1297,"type":"if","locations":[{"start":{"line":1297,"column":8},"end":{"line":1297,"column":8}},{"start":{"line":1297,"column":8},"end":{"line":1297,"column":8}}]},"155":{"line":1297,"type":"binary-expr","locations":[{"start":{"line":1297,"column":12},"end":{"line":1297,"column":15}},{"start":{"line":1297,"column":19},"end":{"line":1297,"column":31}}]},"156":{"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}}]},"157":{"line":1310,"type":"if","locations":[{"start":{"line":1310,"column":8},"end":{"line":1310,"column":8}},{"start":{"line":1310,"column":8},"end":{"line":1310,"column":8}}]},"158":{"line":1317,"type":"cond-expr","locations":[{"start":{"line":1317,"column":26},"end":{"line":1317,"column":36}},{"start":{"line":1317,"column":39},"end":{"line":1317,"column":42}}]},"159":{"line":1400,"type":"binary-expr","locations":[{"start":{"line":1400,"column":22},"end":{"line":1400,"column":31}},{"start":{"line":1400,"column":35},"end":{"line":1400,"column":45}},{"start":{"line":1400,"column":49},"end":{"line":1400,"column":52}}]},"160":{"line":1405,"type":"if","locations":[{"start":{"line":1405,"column":8},"end":{"line":1405,"column":8}},{"start":{"line":1405,"column":8},"end":{"line":1405,"column":8}}]},"161":{"line":1529,"type":"if","locations":[{"start":{"line":1529,"column":4},"end":{"line":1529,"column":4}},{"start":{"line":1529,"column":4},"end":{"line":1529,"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 (Y_Node._instances.has(node) && Y_Node._instances.get(node)._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';","","if (!window.WeakMap)","{"," window.WeakMap = function() {"," this._map = {};"," };"," window.WeakMap.prototype = {"," has: function(k) {"," return this._map[ this._yuid(k) ] ? true : false;"," },"," get: function(k) {"," return this._map[ this._yuid(k) ];"," },"," set: function(k,v) {"," this._map[ this._yuid(k) ] = v;"," },"," 'delete': function(k) {"," delete this._map[ this._yuid(k) ];"," },"," _yuid: function(k) {"," if (k._node) k = k._node;"," return (k.uniqueID && k.nodeType !== 9) ? k.uniqueID : k[UID];"," }"," };","}","","/**"," * A list of Node instances that have been created"," * @private"," * @type Object"," * @property _instances"," * @static"," *"," */","Y_Node._instances = new WeakMap();","","/**"," * 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;",""," 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)"," instance = Y_Node._instances.get(node); // 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.set(node, 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.get(node);"," if (instance) {"," instance.destroy();"," } else { // purge in case added by other means"," Y.Event.purgeElement(node);"," }"," });"," }",""," Y_Node._instances.delete(this._node);",""," this._node = null;"," this._stateProxy = null;"," },",""," /**"," * 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 instance = Y.Node._instances.get(node),"," 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 {"," }","};","","/**"," * Import the named method, or methods from the host onto NodeList."," *"," * @method importMethod"," * @static"," * @param {Object} host The object containing the methods to copy. Typically a prototype."," * @param {String|String[]} name The name, or an Array of names of the methods to import onto NodeList."," * @param {String} [altName] An alternative name to use for the method added to NodeList, which may differ from the name"," * of the original host object. Has no effect if name is an array of method names."," */","NodeList.importMethod = function(host, name, altName) {"," if (typeof name === 'string') {"," altName = altName || name;"," NodeList.addMethod(altName, 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.get(node);"," 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.get(nodes[0]) || getTemp(nodes[0]);"," val = instance._get(attr);"," if (val && val.nodeType) {"," isNodeList = true;"," }"," }",""," Y.Array.each(nodes, function(node) {"," instance = Y.Node._instances.get(node);",""," 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},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0],"28":[0,0],"29":[0,0],"30":[0,0,0,0],"31":[0,0],"32":[0,0],"33":[0,0],"34":[0,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,0],"88":[0,0],"89":[0,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],"106":[0,0],"107":[0,0],"108":[0,0,0,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],"145":[0,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]},"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,"87":0,"88":0,"89":0,"90":0,"91":0,"92":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":133,"loc":{"start":{"line":133,"column":21},"end":{"line":133,"column":32}}},"8":{"name":"(anonymous_8)","line":137,"loc":{"start":{"line":137,"column":13},"end":{"line":137,"column":25}}},"9":{"name":"(anonymous_9)","line":140,"loc":{"start":{"line":140,"column":13},"end":{"line":140,"column":25}}},"10":{"name":"(anonymous_10)","line":143,"loc":{"start":{"line":143,"column":13},"end":{"line":143,"column":27}}},"11":{"name":"(anonymous_11)","line":146,"loc":{"start":{"line":146,"column":18},"end":{"line":146,"column":30}}},"12":{"name":"(anonymous_12)","line":149,"loc":{"start":{"line":149,"column":15},"end":{"line":149,"column":27}}},"13":{"name":"(anonymous_13)","line":175,"loc":{"start":{"line":175,"column":20},"end":{"line":175,"column":35}}},"14":{"name":"(anonymous_14)","line":193,"loc":{"start":{"line":193,"column":18},"end":{"line":193,"column":38}}},"15":{"name":"(anonymous_15)","line":223,"loc":{"start":{"line":223,"column":19},"end":{"line":223,"column":47}}},"16":{"name":"(anonymous_16)","line":225,"loc":{"start":{"line":225,"column":33},"end":{"line":225,"column":44}}},"17":{"name":"(anonymous_17)","line":262,"loc":{"start":{"line":262,"column":22},"end":{"line":262,"column":52}}},"18":{"name":"(anonymous_18)","line":267,"loc":{"start":{"line":267,"column":27},"end":{"line":267,"column":39}}},"19":{"name":"(anonymous_19)","line":304,"loc":{"start":{"line":304,"column":13},"end":{"line":304,"column":28}}},"20":{"name":"(anonymous_20)","line":342,"loc":{"start":{"line":342,"column":24},"end":{"line":342,"column":44}}},"21":{"name":"(anonymous_21)","line":366,"loc":{"start":{"line":366,"column":24},"end":{"line":366,"column":39}}},"22":{"name":"(anonymous_22)","line":387,"loc":{"start":{"line":387,"column":14},"end":{"line":387,"column":25}}},"23":{"name":"(anonymous_23)","line":421,"loc":{"start":{"line":421,"column":9},"end":{"line":421,"column":24}}},"24":{"name":"(anonymous_24)","line":445,"loc":{"start":{"line":445,"column":10},"end":{"line":445,"column":25}}},"25":{"name":"(anonymous_25)","line":471,"loc":{"start":{"line":471,"column":9},"end":{"line":471,"column":29}}},"26":{"name":"(anonymous_26)","line":495,"loc":{"start":{"line":495,"column":14},"end":{"line":495,"column":32}}},"27":{"name":"(anonymous_27)","line":499,"loc":{"start":{"line":499,"column":35},"end":{"line":499,"column":50}}},"28":{"name":"(anonymous_28)","line":513,"loc":{"start":{"line":513,"column":14},"end":{"line":513,"column":30}}},"29":{"name":"(anonymous_29)","line":518,"loc":{"start":{"line":518,"column":32},"end":{"line":518,"column":47}}},"30":{"name":"(anonymous_30)","line":533,"loc":{"start":{"line":533,"column":15},"end":{"line":533,"column":33}}},"31":{"name":"(anonymous_31)","line":549,"loc":{"start":{"line":549,"column":11},"end":{"line":549,"column":25}}},"32":{"name":"(anonymous_32)","line":562,"loc":{"start":{"line":562,"column":13},"end":{"line":562,"column":26}}},"33":{"name":"(anonymous_33)","line":586,"loc":{"start":{"line":586,"column":14},"end":{"line":586,"column":45}}},"34":{"name":"(anonymous_34)","line":604,"loc":{"start":{"line":604,"column":15},"end":{"line":604,"column":46}}},"35":{"name":"(anonymous_35)","line":622,"loc":{"start":{"line":622,"column":14},"end":{"line":622,"column":32}}},"36":{"name":"(anonymous_36)","line":636,"loc":{"start":{"line":636,"column":10},"end":{"line":636,"column":28}}},"37":{"name":"(anonymous_37)","line":648,"loc":{"start":{"line":648,"column":14},"end":{"line":648,"column":27}}},"38":{"name":"(anonymous_38)","line":662,"loc":{"start":{"line":662,"column":9},"end":{"line":662,"column":28}}},"39":{"name":"(anonymous_39)","line":673,"loc":{"start":{"line":673,"column":9},"end":{"line":673,"column":28}}},"40":{"name":"(anonymous_40)","line":693,"loc":{"start":{"line":693,"column":10},"end":{"line":693,"column":29}}},"41":{"name":"(anonymous_41)","line":706,"loc":{"start":{"line":706,"column":12},"end":{"line":706,"column":30}}},"42":{"name":"(anonymous_42)","line":729,"loc":{"start":{"line":729,"column":13},"end":{"line":729,"column":31}}},"43":{"name":"(anonymous_43)","line":745,"loc":{"start":{"line":745,"column":18},"end":{"line":745,"column":42}}},"44":{"name":"(anonymous_44)","line":762,"loc":{"start":{"line":762,"column":13},"end":{"line":762,"column":33}}},"45":{"name":"(anonymous_45)","line":775,"loc":{"start":{"line":775,"column":43},"end":{"line":775,"column":58}}},"46":{"name":"(anonymous_46)","line":801,"loc":{"start":{"line":801,"column":12},"end":{"line":801,"column":44}}},"47":{"name":"(anonymous_47)","line":825,"loc":{"start":{"line":825,"column":8},"end":{"line":825,"column":28}}},"48":{"name":"(anonymous_48)","line":828,"loc":{"start":{"line":828,"column":8},"end":{"line":828,"column":28}}},"49":{"name":"(anonymous_49)","line":846,"loc":{"start":{"line":846,"column":15},"end":{"line":846,"column":32}}},"50":{"name":"(anonymous_50)","line":854,"loc":{"start":{"line":854,"column":16},"end":{"line":854,"column":27}}},"51":{"name":"(anonymous_51)","line":863,"loc":{"start":{"line":863,"column":11},"end":{"line":863,"column":22}}},"52":{"name":"(anonymous_52)","line":873,"loc":{"start":{"line":873,"column":16},"end":{"line":873,"column":27}}},"53":{"name":"(anonymous_53)","line":896,"loc":{"start":{"line":896,"column":15},"end":{"line":896,"column":31}}},"54":{"name":"(anonymous_54)","line":908,"loc":{"start":{"line":908,"column":32},"end":{"line":908,"column":47}}},"55":{"name":"(anonymous_55)","line":937,"loc":{"start":{"line":937,"column":23},"end":{"line":937,"column":42}}},"56":{"name":"(anonymous_56)","line":941,"loc":{"start":{"line":941,"column":16},"end":{"line":941,"column":48}}},"57":{"name":"(anonymous_57)","line":949,"loc":{"start":{"line":949,"column":21},"end":{"line":949,"column":49}}},"58":{"name":"(anonymous_58)","line":951,"loc":{"start":{"line":951,"column":35},"end":{"line":951,"column":46}}},"59":{"name":"(anonymous_59)","line":955,"loc":{"start":{"line":955,"column":38},"end":{"line":955,"column":53}}},"60":{"name":"(anonymous_60)","line":987,"loc":{"start":{"line":987,"column":24},"end":{"line":987,"column":54}}},"61":{"name":"(anonymous_61)","line":992,"loc":{"start":{"line":992,"column":27},"end":{"line":992,"column":39}}},"62":{"name":"(anonymous_62)","line":998,"loc":{"start":{"line":998,"column":24},"end":{"line":998,"column":39}}},"63":{"name":"(anonymous_63)","line":1011,"loc":{"start":{"line":1011,"column":13},"end":{"line":1011,"column":44}}},"64":{"name":"(anonymous_64)","line":1014,"loc":{"start":{"line":1014,"column":18},"end":{"line":1014,"column":33}}},"65":{"name":"(anonymous_65)","line":1031,"loc":{"start":{"line":1031,"column":10},"end":{"line":1031,"column":26}}},"66":{"name":"(anonymous_66)","line":1044,"loc":{"start":{"line":1044,"column":10},"end":{"line":1044,"column":32}}},"67":{"name":"(anonymous_67)","line":1046,"loc":{"start":{"line":1046,"column":34},"end":{"line":1046,"column":56}}},"68":{"name":"(anonymous_68)","line":1053,"loc":{"start":{"line":1053,"column":11},"end":{"line":1053,"column":33}}},"69":{"name":"(anonymous_69)","line":1056,"loc":{"start":{"line":1056,"column":34},"end":{"line":1056,"column":56}}},"70":{"name":"(anonymous_70)","line":1076,"loc":{"start":{"line":1076,"column":10},"end":{"line":1076,"column":32}}},"71":{"name":"(anonymous_71)","line":1078,"loc":{"start":{"line":1078,"column":41},"end":{"line":1078,"column":63}}},"72":{"name":"(anonymous_72)","line":1090,"loc":{"start":{"line":1090,"column":12},"end":{"line":1090,"column":23}}},"73":{"name":"(anonymous_73)","line":1101,"loc":{"start":{"line":1101,"column":13},"end":{"line":1101,"column":28}}},"74":{"name":"(anonymous_74)","line":1112,"loc":{"start":{"line":1112,"column":12},"end":{"line":1112,"column":31}}},"75":{"name":"(anonymous_75)","line":1126,"loc":{"start":{"line":1126,"column":13},"end":{"line":1126,"column":28}}},"76":{"name":"(anonymous_76)","line":1129,"loc":{"start":{"line":1129,"column":28},"end":{"line":1129,"column":46}}},"77":{"name":"(anonymous_77)","line":1144,"loc":{"start":{"line":1144,"column":9},"end":{"line":1144,"column":20}}},"78":{"name":"(anonymous_78)","line":1154,"loc":{"start":{"line":1154,"column":10},"end":{"line":1154,"column":21}}},"79":{"name":"(anonymous_79)","line":1158,"loc":{"start":{"line":1158,"column":16},"end":{"line":1158,"column":27}}},"80":{"name":"(anonymous_80)","line":1166,"loc":{"start":{"line":1166,"column":13},"end":{"line":1166,"column":24}}},"81":{"name":"(anonymous_81)","line":1190,"loc":{"start":{"line":1190,"column":10},"end":{"line":1190,"column":21}}},"82":{"name":"(anonymous_82)","line":1199,"loc":{"start":{"line":1199,"column":13},"end":{"line":1199,"column":24}}},"83":{"name":"(anonymous_83)","line":1203,"loc":{"start":{"line":1203,"column":14},"end":{"line":1203,"column":25}}},"84":{"name":"(anonymous_84)","line":1232,"loc":{"start":{"line":1232,"column":17},"end":{"line":1232,"column":28}}},"85":{"name":"(anonymous_85)","line":1290,"loc":{"start":{"line":1290,"column":25},"end":{"line":1290,"column":40}}},"86":{"name":"(anonymous_86)","line":1306,"loc":{"start":{"line":1306,"column":24},"end":{"line":1306,"column":39}}},"87":{"name":"(anonymous_87)","line":1326,"loc":{"start":{"line":1326,"column":8},"end":{"line":1326,"column":24}}},"88":{"name":"(anonymous_88)","line":1396,"loc":{"start":{"line":1396,"column":28},"end":{"line":1396,"column":59}}},"89":{"name":"(anonymous_89)","line":1397,"loc":{"start":{"line":1397,"column":33},"end":{"line":1397,"column":44}}},"90":{"name":"(anonymous_90)","line":1517,"loc":{"start":{"line":1517,"column":3},"end":{"line":1517,"column":20}}},"91":{"name":"(anonymous_91)","line":1518,"loc":{"start":{"line":1518,"column":31},"end":{"line":1518,"column":58}}},"92":{"name":"(anonymous_92)","line":1531,"loc":{"start":{"line":1531,"column":35},"end":{"line":1531,"column":50}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1648,"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":127,"column":0},"end":{"line":154,"column":1}},"41":{"start":{"line":129,"column":4},"end":{"line":129,"column":36}},"42":{"start":{"line":133,"column":4},"end":{"line":135,"column":6}},"43":{"start":{"line":134,"column":8},"end":{"line":134,"column":23}},"44":{"start":{"line":136,"column":4},"end":{"line":153,"column":6}},"45":{"start":{"line":138,"column":12},"end":{"line":138,"column":61}},"46":{"start":{"line":141,"column":12},"end":{"line":141,"column":46}},"47":{"start":{"line":144,"column":12},"end":{"line":144,"column":43}},"48":{"start":{"line":147,"column":12},"end":{"line":147,"column":46}},"49":{"start":{"line":150,"column":12},"end":{"line":150,"column":37}},"50":{"start":{"line":150,"column":25},"end":{"line":150,"column":37}},"51":{"start":{"line":151,"column":12},"end":{"line":151,"column":74}},"52":{"start":{"line":164,"column":0},"end":{"line":164,"column":41}},"53":{"start":{"line":175,"column":0},"end":{"line":180,"column":2}},"54":{"start":{"line":176,"column":4},"end":{"line":178,"column":5}},"55":{"start":{"line":177,"column":8},"end":{"line":177,"column":59}},"56":{"start":{"line":179,"column":4},"end":{"line":179,"column":16}},"57":{"start":{"line":193,"column":0},"end":{"line":210,"column":2}},"58":{"start":{"line":194,"column":4},"end":{"line":207,"column":5}},"59":{"start":{"line":195,"column":9},"end":{"line":202,"column":9}},"60":{"start":{"line":196,"column":12},"end":{"line":201,"column":13}},"61":{"start":{"line":197,"column":16},"end":{"line":197,"column":33}},"62":{"start":{"line":198,"column":19},"end":{"line":201,"column":13}},"63":{"start":{"line":200,"column":16},"end":{"line":200,"column":33}},"64":{"start":{"line":203,"column":11},"end":{"line":207,"column":5}},"65":{"start":{"line":204,"column":8},"end":{"line":204,"column":19}},"66":{"start":{"line":205,"column":11},"end":{"line":207,"column":5}},"67":{"start":{"line":206,"column":8},"end":{"line":206,"column":19}},"68":{"start":{"line":209,"column":4},"end":{"line":209,"column":15}},"69":{"start":{"line":223,"column":0},"end":{"line":250,"column":2}},"70":{"start":{"line":224,"column":4},"end":{"line":249,"column":5}},"71":{"start":{"line":225,"column":8},"end":{"line":247,"column":10}},"72":{"start":{"line":226,"column":12},"end":{"line":228,"column":20}},"73":{"start":{"line":230,"column":12},"end":{"line":232,"column":13}},"74":{"start":{"line":231,"column":16},"end":{"line":231,"column":40}},"75":{"start":{"line":234,"column":12},"end":{"line":236,"column":13}},"76":{"start":{"line":235,"column":16},"end":{"line":235,"column":40}},"77":{"start":{"line":237,"column":12},"end":{"line":237,"column":37}},"78":{"start":{"line":239,"column":12},"end":{"line":239,"column":50}},"79":{"start":{"line":241,"column":12},"end":{"line":243,"column":13}},"80":{"start":{"line":242,"column":16},"end":{"line":242,"column":49}},"81":{"start":{"line":245,"column":12},"end":{"line":245,"column":56}},"82":{"start":{"line":246,"column":12},"end":{"line":246,"column":23}},"83":{"start":{"line":262,"column":0},"end":{"line":271,"column":2}},"84":{"start":{"line":263,"column":4},"end":{"line":270,"column":5}},"85":{"start":{"line":264,"column":8},"end":{"line":264,"column":34}},"86":{"start":{"line":265,"column":8},"end":{"line":265,"column":52}},"87":{"start":{"line":267,"column":8},"end":{"line":269,"column":11}},"88":{"start":{"line":268,"column":12},"end":{"line":268,"column":41}},"89":{"start":{"line":304,"column":0},"end":{"line":331,"column":2}},"90":{"start":{"line":305,"column":4},"end":{"line":306,"column":19}},"91":{"start":{"line":308,"column":4},"end":{"line":328,"column":5}},"92":{"start":{"line":309,"column":8},"end":{"line":316,"column":9}},"93":{"start":{"line":310,"column":12},"end":{"line":310,"column":44}},"94":{"start":{"line":311,"column":12},"end":{"line":313,"column":13}},"95":{"start":{"line":312,"column":16},"end":{"line":312,"column":28}},"96":{"start":{"line":314,"column":15},"end":{"line":316,"column":9}},"97":{"start":{"line":315,"column":12},"end":{"line":315,"column":24}},"98":{"start":{"line":318,"column":8},"end":{"line":327,"column":9}},"99":{"start":{"line":319,"column":12},"end":{"line":319,"column":51}},"100":{"start":{"line":320,"column":12},"end":{"line":320,"column":58}},"101":{"start":{"line":321,"column":12},"end":{"line":326,"column":13}},"102":{"start":{"line":322,"column":16},"end":{"line":322,"column":44}},"103":{"start":{"line":323,"column":16},"end":{"line":325,"column":17}},"104":{"start":{"line":324,"column":20},"end":{"line":324,"column":58}},"105":{"start":{"line":330,"column":4},"end":{"line":330,"column":20}},"106":{"start":{"line":342,"column":0},"end":{"line":356,"column":2}},"107":{"start":{"line":343,"column":4},"end":{"line":344,"column":16}},"108":{"start":{"line":346,"column":4},"end":{"line":353,"column":5}},"109":{"start":{"line":347,"column":8},"end":{"line":347,"column":23}},"110":{"start":{"line":348,"column":8},"end":{"line":348,"column":31}},"111":{"start":{"line":350,"column":8},"end":{"line":350,"column":43}},"112":{"start":{"line":351,"column":11},"end":{"line":353,"column":5}},"113":{"start":{"line":352,"column":8},"end":{"line":352,"column":25}},"114":{"start":{"line":355,"column":4},"end":{"line":355,"column":15}},"115":{"start":{"line":366,"column":0},"end":{"line":377,"column":2}},"116":{"start":{"line":367,"column":4},"end":{"line":368,"column":12}},"117":{"start":{"line":370,"column":4},"end":{"line":374,"column":5}},"118":{"start":{"line":371,"column":8},"end":{"line":371,"column":55}},"119":{"start":{"line":372,"column":11},"end":{"line":374,"column":5}},"120":{"start":{"line":373,"column":8},"end":{"line":373,"column":25}},"121":{"start":{"line":376,"column":4},"end":{"line":376,"column":15}},"122":{"start":{"line":379,"column":0},"end":{"line":876,"column":9}},"123":{"start":{"line":388,"column":8},"end":{"line":390,"column":33}},"124":{"start":{"line":392,"column":8},"end":{"line":408,"column":9}},"125":{"start":{"line":393,"column":12},"end":{"line":393,"column":36}},"126":{"start":{"line":394,"column":12},"end":{"line":394,"column":70}},"127":{"start":{"line":395,"column":12},"end":{"line":395,"column":91}},"128":{"start":{"line":396,"column":12},"end":{"line":396,"column":34}},"129":{"start":{"line":398,"column":12},"end":{"line":400,"column":13}},"130":{"start":{"line":399,"column":16},"end":{"line":399,"column":32}},"131":{"start":{"line":402,"column":12},"end":{"line":404,"column":13}},"132":{"start":{"line":403,"column":16},"end":{"line":403,"column":57}},"133":{"start":{"line":407,"column":12},"end":{"line":407,"column":35}},"134":{"start":{"line":409,"column":8},"end":{"line":409,"column":19}},"135":{"start":{"line":422,"column":8},"end":{"line":422,"column":16}},"136":{"start":{"line":424,"column":8},"end":{"line":428,"column":9}},"137":{"start":{"line":425,"column":12},"end":{"line":425,"column":38}},"138":{"start":{"line":427,"column":12},"end":{"line":427,"column":34}},"139":{"start":{"line":430,"column":8},"end":{"line":434,"column":9}},"140":{"start":{"line":431,"column":12},"end":{"line":431,"column":45}},"141":{"start":{"line":432,"column":15},"end":{"line":434,"column":9}},"142":{"start":{"line":433,"column":12},"end":{"line":433,"column":23}},"143":{"start":{"line":435,"column":8},"end":{"line":435,"column":19}},"144":{"start":{"line":446,"column":8},"end":{"line":447,"column":16}},"145":{"start":{"line":449,"column":8},"end":{"line":455,"column":9}},"146":{"start":{"line":450,"column":12},"end":{"line":450,"column":47}},"147":{"start":{"line":451,"column":15},"end":{"line":455,"column":9}},"148":{"start":{"line":452,"column":12},"end":{"line":452,"column":51}},"149":{"start":{"line":454,"column":12},"end":{"line":454,"column":63}},"150":{"start":{"line":457,"column":8},"end":{"line":457,"column":19}},"151":{"start":{"line":472,"column":8},"end":{"line":472,"column":44}},"152":{"start":{"line":474,"column":8},"end":{"line":484,"column":9}},"153":{"start":{"line":475,"column":12},"end":{"line":475,"column":49}},"154":{"start":{"line":477,"column":12},"end":{"line":483,"column":13}},"155":{"start":{"line":478,"column":16},"end":{"line":478,"column":56}},"156":{"start":{"line":479,"column":19},"end":{"line":483,"column":13}},"157":{"start":{"line":480,"column":16},"end":{"line":480,"column":51}},"158":{"start":{"line":482,"column":16},"end":{"line":482,"column":61}},"159":{"start":{"line":486,"column":8},"end":{"line":486,"column":20}},"160":{"start":{"line":496,"column":8},"end":{"line":502,"column":9}},"161":{"start":{"line":497,"column":12},"end":{"line":497,"column":36}},"162":{"start":{"line":499,"column":12},"end":{"line":501,"column":21}},"163":{"start":{"line":500,"column":16},"end":{"line":500,"column":31}},"164":{"start":{"line":504,"column":8},"end":{"line":504,"column":20}},"165":{"start":{"line":514,"column":8},"end":{"line":514,"column":21}},"166":{"start":{"line":515,"column":8},"end":{"line":521,"column":9}},"167":{"start":{"line":516,"column":12},"end":{"line":516,"column":34}},"168":{"start":{"line":518,"column":12},"end":{"line":520,"column":21}},"169":{"start":{"line":519,"column":16},"end":{"line":519,"column":37}},"170":{"start":{"line":523,"column":8},"end":{"line":523,"column":19}},"171":{"start":{"line":534,"column":8},"end":{"line":534,"column":30}},"172":{"start":{"line":536,"column":8},"end":{"line":538,"column":9}},"173":{"start":{"line":537,"column":12},"end":{"line":537,"column":36}},"174":{"start":{"line":539,"column":8},"end":{"line":539,"column":32}},"175":{"start":{"line":550,"column":8},"end":{"line":550,"column":30}},"176":{"start":{"line":552,"column":8},"end":{"line":557,"column":9}},"177":{"start":{"line":553,"column":12},"end":{"line":553,"column":66}},"178":{"start":{"line":554,"column":12},"end":{"line":556,"column":13}},"179":{"start":{"line":555,"column":16},"end":{"line":555,"column":65}},"180":{"start":{"line":559,"column":8},"end":{"line":559,"column":21}},"181":{"start":{"line":563,"column":8},"end":{"line":564,"column":55}},"182":{"start":{"line":565,"column":8},"end":{"line":569,"column":9}},"183":{"start":{"line":566,"column":12},"end":{"line":566,"column":29}},"184":{"start":{"line":568,"column":12},"end":{"line":568,"column":23}},"185":{"start":{"line":570,"column":8},"end":{"line":570,"column":19}},"186":{"start":{"line":588,"column":8},"end":{"line":591,"column":9}},"187":{"start":{"line":590,"column":12},"end":{"line":590,"column":30}},"188":{"start":{"line":593,"column":8},"end":{"line":593,"column":89}},"189":{"start":{"line":605,"column":8},"end":{"line":608,"column":9}},"190":{"start":{"line":607,"column":12},"end":{"line":607,"column":30}},"191":{"start":{"line":609,"column":8},"end":{"line":609,"column":90}},"192":{"start":{"line":623,"column":8},"end":{"line":623,"column":91}},"193":{"start":{"line":637,"column":8},"end":{"line":637,"column":87}},"194":{"start":{"line":649,"column":8},"end":{"line":649,"column":62}},"195":{"start":{"line":663,"column":8},"end":{"line":663,"column":67}},"196":{"start":{"line":674,"column":8},"end":{"line":674,"column":21}},"197":{"start":{"line":676,"column":8},"end":{"line":680,"column":9}},"198":{"start":{"line":677,"column":12},"end":{"line":677,"column":69}},"199":{"start":{"line":678,"column":12},"end":{"line":678,"column":39}},"200":{"start":{"line":679,"column":12},"end":{"line":679,"column":45}},"201":{"start":{"line":682,"column":8},"end":{"line":682,"column":37}},"202":{"start":{"line":694,"column":8},"end":{"line":694,"column":53}},"203":{"start":{"line":707,"column":8},"end":{"line":707,"column":30}},"204":{"start":{"line":709,"column":8},"end":{"line":711,"column":9}},"205":{"start":{"line":710,"column":12},"end":{"line":710,"column":46}},"206":{"start":{"line":713,"column":8},"end":{"line":715,"column":9}},"207":{"start":{"line":714,"column":12},"end":{"line":714,"column":27}},"208":{"start":{"line":717,"column":8},"end":{"line":717,"column":20}},"209":{"start":{"line":730,"column":8},"end":{"line":730,"column":30}},"210":{"start":{"line":731,"column":8},"end":{"line":733,"column":9}},"211":{"start":{"line":732,"column":12},"end":{"line":732,"column":45}},"212":{"start":{"line":734,"column":8},"end":{"line":734,"column":71}},"213":{"start":{"line":735,"column":8},"end":{"line":735,"column":20}},"214":{"start":{"line":746,"column":8},"end":{"line":748,"column":9}},"215":{"start":{"line":747,"column":12},"end":{"line":747,"column":38}},"216":{"start":{"line":750,"column":8},"end":{"line":750,"column":99}},"217":{"start":{"line":763,"column":8},"end":{"line":764,"column":21}},"218":{"start":{"line":766,"column":8},"end":{"line":766,"column":21}},"219":{"start":{"line":768,"column":8},"end":{"line":770,"column":9}},"220":{"start":{"line":769,"column":12},"end":{"line":769,"column":26}},"221":{"start":{"line":772,"column":8},"end":{"line":772,"column":25}},"222":{"start":{"line":774,"column":8},"end":{"line":783,"column":9}},"223":{"start":{"line":775,"column":12},"end":{"line":782,"column":15}},"224":{"start":{"line":776,"column":16},"end":{"line":776,"column":55}},"225":{"start":{"line":777,"column":16},"end":{"line":781,"column":17}},"226":{"start":{"line":778,"column":19},"end":{"line":778,"column":38}},"227":{"start":{"line":780,"column":20},"end":{"line":780,"column":47}},"228":{"start":{"line":785,"column":8},"end":{"line":785,"column":45}},"229":{"start":{"line":787,"column":8},"end":{"line":787,"column":26}},"230":{"start":{"line":788,"column":8},"end":{"line":788,"column":32}},"231":{"start":{"line":802,"column":8},"end":{"line":803,"column":16}},"232":{"start":{"line":805,"column":8},"end":{"line":807,"column":9}},"233":{"start":{"line":806,"column":12},"end":{"line":806,"column":24}},"234":{"start":{"line":809,"column":8},"end":{"line":811,"column":9}},"235":{"start":{"line":810,"column":12},"end":{"line":810,"column":24}},"236":{"start":{"line":813,"column":8},"end":{"line":813,"column":42}},"237":{"start":{"line":814,"column":8},"end":{"line":814,"column":42}},"238":{"start":{"line":826,"column":12},"end":{"line":826,"column":62}},"239":{"start":{"line":829,"column":12},"end":{"line":829,"column":53}},"240":{"start":{"line":830,"column":12},"end":{"line":832,"column":52}},"241":{"start":{"line":834,"column":12},"end":{"line":841,"column":13}},"242":{"start":{"line":835,"column":16},"end":{"line":835,"column":53}},"243":{"start":{"line":836,"column":19},"end":{"line":841,"column":13}},"244":{"start":{"line":837,"column":16},"end":{"line":837,"column":53}},"245":{"start":{"line":839,"column":16},"end":{"line":839,"column":62}},"246":{"start":{"line":840,"column":16},"end":{"line":840,"column":57}},"247":{"start":{"line":842,"column":12},"end":{"line":842,"column":24}},"248":{"start":{"line":847,"column":8},"end":{"line":847,"column":30}},"249":{"start":{"line":848,"column":8},"end":{"line":851,"column":65}},"250":{"start":{"line":855,"column":8},"end":{"line":855,"column":45}},"251":{"start":{"line":864,"column":8},"end":{"line":864,"column":54}},"252":{"start":{"line":865,"column":8},"end":{"line":865,"column":20}},"253":{"start":{"line":874,"column":8},"end":{"line":874,"column":26}},"254":{"start":{"line":878,"column":0},"end":{"line":878,"column":16}},"255":{"start":{"line":879,"column":0},"end":{"line":879,"column":19}},"256":{"start":{"line":896,"column":0},"end":{"line":925,"column":2}},"257":{"start":{"line":897,"column":4},"end":{"line":897,"column":17}},"258":{"start":{"line":899,"column":4},"end":{"line":917,"column":5}},"259":{"start":{"line":900,"column":8},"end":{"line":916,"column":9}},"260":{"start":{"line":901,"column":12},"end":{"line":901,"column":32}},"261":{"start":{"line":902,"column":12},"end":{"line":902,"column":44}},"262":{"start":{"line":903,"column":15},"end":{"line":916,"column":9}},"263":{"start":{"line":904,"column":12},"end":{"line":904,"column":28}},"264":{"start":{"line":905,"column":15},"end":{"line":916,"column":9}},"265":{"start":{"line":906,"column":12},"end":{"line":906,"column":34}},"266":{"start":{"line":907,"column":15},"end":{"line":916,"column":9}},"267":{"start":{"line":908,"column":12},"end":{"line":912,"column":15}},"268":{"start":{"line":909,"column":16},"end":{"line":911,"column":17}},"269":{"start":{"line":910,"column":20},"end":{"line":910,"column":41}},"270":{"start":{"line":913,"column":12},"end":{"line":913,"column":24}},"271":{"start":{"line":915,"column":12},"end":{"line":915,"column":44}},"272":{"start":{"line":924,"column":4},"end":{"line":924,"column":30}},"273":{"start":{"line":927,"column":0},"end":{"line":927,"column":27}},"274":{"start":{"line":937,"column":0},"end":{"line":939,"column":2}},"275":{"start":{"line":938,"column":4},"end":{"line":938,"column":70}},"276":{"start":{"line":941,"column":0},"end":{"line":947,"column":2}},"277":{"start":{"line":942,"column":4},"end":{"line":942,"column":32}},"278":{"start":{"line":943,"column":4},"end":{"line":946,"column":5}},"279":{"start":{"line":944,"column":8},"end":{"line":944,"column":53}},"280":{"start":{"line":949,"column":0},"end":{"line":975,"column":2}},"281":{"start":{"line":950,"column":4},"end":{"line":974,"column":5}},"282":{"start":{"line":951,"column":8},"end":{"line":972,"column":10}},"283":{"start":{"line":952,"column":12},"end":{"line":953,"column":33}},"284":{"start":{"line":955,"column":12},"end":{"line":968,"column":15}},"285":{"start":{"line":956,"column":16},"end":{"line":958,"column":27}},"286":{"start":{"line":960,"column":16},"end":{"line":962,"column":17}},"287":{"start":{"line":961,"column":20},"end":{"line":961,"column":59}},"288":{"start":{"line":963,"column":16},"end":{"line":963,"column":42}},"289":{"start":{"line":964,"column":16},"end":{"line":964,"column":45}},"290":{"start":{"line":965,"column":16},"end":{"line":967,"column":17}},"291":{"start":{"line":966,"column":20},"end":{"line":966,"column":45}},"292":{"start":{"line":971,"column":12},"end":{"line":971,"column":43}},"293":{"start":{"line":987,"column":0},"end":{"line":996,"column":2}},"294":{"start":{"line":988,"column":4},"end":{"line":995,"column":5}},"295":{"start":{"line":989,"column":8},"end":{"line":989,"column":34}},"296":{"start":{"line":990,"column":8},"end":{"line":990,"column":48}},"297":{"start":{"line":992,"column":8},"end":{"line":994,"column":11}},"298":{"start":{"line":993,"column":12},"end":{"line":993,"column":43}},"299":{"start":{"line":998,"column":0},"end":{"line":1008,"column":2}},"300":{"start":{"line":999,"column":4},"end":{"line":999,"column":33}},"301":{"start":{"line":1000,"column":4},"end":{"line":1003,"column":5}},"302":{"start":{"line":1001,"column":8},"end":{"line":1001,"column":43}},"303":{"start":{"line":1002,"column":8},"end":{"line":1002,"column":33}},"304":{"start":{"line":1005,"column":4},"end":{"line":1005,"column":21}},"305":{"start":{"line":1006,"column":4},"end":{"line":1006,"column":27}},"306":{"start":{"line":1007,"column":4},"end":{"line":1007,"column":15}},"307":{"start":{"line":1010,"column":0},"end":{"line":1235,"column":9}},"308":{"start":{"line":1012,"column":8},"end":{"line":1012,"column":39}},"309":{"start":{"line":1014,"column":8},"end":{"line":1019,"column":11}},"310":{"start":{"line":1015,"column":12},"end":{"line":1015,"column":53}},"311":{"start":{"line":1016,"column":12},"end":{"line":1018,"column":13}},"312":{"start":{"line":1017,"column":16},"end":{"line":1017,"column":30}},"313":{"start":{"line":1021,"column":8},"end":{"line":1021,"column":19}},"314":{"start":{"line":1032,"column":8},"end":{"line":1032,"column":49}},"315":{"start":{"line":1045,"column":8},"end":{"line":1045,"column":28}},"316":{"start":{"line":1046,"column":8},"end":{"line":1049,"column":11}},"317":{"start":{"line":1047,"column":12},"end":{"line":1047,"column":31}},"318":{"start":{"line":1048,"column":12},"end":{"line":1048,"column":67}},"319":{"start":{"line":1050,"column":8},"end":{"line":1050,"column":24}},"320":{"start":{"line":1054,"column":8},"end":{"line":1054,"column":28}},"321":{"start":{"line":1056,"column":8},"end":{"line":1063,"column":11}},"322":{"start":{"line":1057,"column":12},"end":{"line":1057,"column":55}},"323":{"start":{"line":1058,"column":12},"end":{"line":1060,"column":13}},"324":{"start":{"line":1059,"column":16},"end":{"line":1059,"column":55}},"325":{"start":{"line":1062,"column":12},"end":{"line":1062,"column":75}},"326":{"start":{"line":1064,"column":8},"end":{"line":1064,"column":24}},"327":{"start":{"line":1077,"column":8},"end":{"line":1077,"column":28}},"328":{"start":{"line":1078,"column":8},"end":{"line":1082,"column":11}},"329":{"start":{"line":1079,"column":12},"end":{"line":1079,"column":31}},"330":{"start":{"line":1080,"column":12},"end":{"line":1080,"column":38}},"331":{"start":{"line":1081,"column":12},"end":{"line":1081,"column":59}},"332":{"start":{"line":1091,"column":8},"end":{"line":1091,"column":50}},"333":{"start":{"line":1102,"column":8},"end":{"line":1102,"column":69}},"334":{"start":{"line":1113,"column":8},"end":{"line":1113,"column":63}},"335":{"start":{"line":1127,"column":8},"end":{"line":1127,"column":19}},"336":{"start":{"line":1128,"column":8},"end":{"line":1128,"column":23}},"337":{"start":{"line":1129,"column":8},"end":{"line":1133,"column":11}},"338":{"start":{"line":1130,"column":12},"end":{"line":1132,"column":13}},"339":{"start":{"line":1131,"column":16},"end":{"line":1131,"column":33}},"340":{"start":{"line":1135,"column":8},"end":{"line":1135,"column":28}},"341":{"start":{"line":1145,"column":8},"end":{"line":1145,"column":34}},"342":{"start":{"line":1155,"column":8},"end":{"line":1155,"column":31}},"343":{"start":{"line":1167,"column":8},"end":{"line":1170,"column":35}},"344":{"start":{"line":1172,"column":8},"end":{"line":1180,"column":9}},"345":{"start":{"line":1173,"column":12},"end":{"line":1177,"column":13}},"346":{"start":{"line":1174,"column":16},"end":{"line":1176,"column":17}},"347":{"start":{"line":1175,"column":20},"end":{"line":1175,"column":50}},"348":{"start":{"line":1179,"column":12},"end":{"line":1179,"column":56}},"349":{"start":{"line":1182,"column":8},"end":{"line":1182,"column":20}},"350":{"start":{"line":1191,"column":8},"end":{"line":1191,"column":34}},"351":{"start":{"line":1200,"column":8},"end":{"line":1200,"column":38}},"352":{"start":{"line":1204,"column":8},"end":{"line":1207,"column":17}},"353":{"start":{"line":1209,"column":8},"end":{"line":1223,"column":9}},"354":{"start":{"line":1210,"column":12},"end":{"line":1210,"column":28}},"355":{"start":{"line":1211,"column":12},"end":{"line":1211,"column":35}},"356":{"start":{"line":1212,"column":12},"end":{"line":1214,"column":13}},"357":{"start":{"line":1213,"column":16},"end":{"line":1213,"column":37}},"358":{"start":{"line":1216,"column":12},"end":{"line":1218,"column":13}},"359":{"start":{"line":1217,"column":16},"end":{"line":1217,"column":62}},"360":{"start":{"line":1220,"column":12},"end":{"line":1222,"column":13}},"361":{"start":{"line":1221,"column":16},"end":{"line":1221,"column":57}},"362":{"start":{"line":1224,"column":8},"end":{"line":1224,"column":31}},"363":{"start":{"line":1233,"column":8},"end":{"line":1233,"column":27}},"364":{"start":{"line":1237,"column":0},"end":{"line":1281,"column":3}},"365":{"start":{"line":1290,"column":0},"end":{"line":1322,"column":2}},"366":{"start":{"line":1291,"column":4},"end":{"line":1296,"column":12}},"367":{"start":{"line":1298,"column":4},"end":{"line":1304,"column":5}},"368":{"start":{"line":1299,"column":8},"end":{"line":1299,"column":72}},"369":{"start":{"line":1300,"column":8},"end":{"line":1300,"column":34}},"370":{"start":{"line":1301,"column":8},"end":{"line":1303,"column":9}},"371":{"start":{"line":1302,"column":12},"end":{"line":1302,"column":30}},"372":{"start":{"line":1306,"column":4},"end":{"line":1319,"column":7}},"373":{"start":{"line":1307,"column":8},"end":{"line":1307,"column":47}},"374":{"start":{"line":1309,"column":8},"end":{"line":1311,"column":9}},"375":{"start":{"line":1310,"column":12},"end":{"line":1310,"column":37}},"376":{"start":{"line":1313,"column":8},"end":{"line":1313,"column":34}},"377":{"start":{"line":1314,"column":8},"end":{"line":1316,"column":9}},"378":{"start":{"line":1315,"column":12},"end":{"line":1315,"column":49}},"379":{"start":{"line":1318,"column":8},"end":{"line":1318,"column":22}},"380":{"start":{"line":1321,"column":4},"end":{"line":1321,"column":43}},"381":{"start":{"line":1324,"column":0},"end":{"line":1324,"column":22}},"382":{"start":{"line":1326,"column":0},"end":{"line":1328,"column":2}},"383":{"start":{"line":1327,"column":4},"end":{"line":1327,"column":31}},"384":{"start":{"line":1330,"column":0},"end":{"line":1330,"column":19}},"385":{"start":{"line":1336,"column":0},"end":{"line":1393,"column":6}},"386":{"start":{"line":1396,"column":0},"end":{"line":1417,"column":3}},"387":{"start":{"line":1397,"column":4},"end":{"line":1416,"column":6}},"388":{"start":{"line":1398,"column":8},"end":{"line":1401,"column":16}},"389":{"start":{"line":1403,"column":8},"end":{"line":1405,"column":9}},"390":{"start":{"line":1404,"column":12},"end":{"line":1404,"column":54}},"391":{"start":{"line":1407,"column":8},"end":{"line":1407,"column":56}},"392":{"start":{"line":1409,"column":8},"end":{"line":1413,"column":9}},"393":{"start":{"line":1410,"column":12},"end":{"line":1410,"column":29}},"394":{"start":{"line":1412,"column":12},"end":{"line":1412,"column":39}},"395":{"start":{"line":1415,"column":8},"end":{"line":1415,"column":19}},"396":{"start":{"line":1423,"column":0},"end":{"line":1522,"column":3}},"397":{"start":{"line":1518,"column":4},"end":{"line":1521,"column":6}},"398":{"start":{"line":1519,"column":8},"end":{"line":1519,"column":56}},"399":{"start":{"line":1520,"column":8},"end":{"line":1520,"column":19}},"400":{"start":{"line":1531,"column":0},"end":{"line":1538,"column":2}},"401":{"start":{"line":1532,"column":4},"end":{"line":1532,"column":26}},"402":{"start":{"line":1533,"column":4},"end":{"line":1535,"column":5}},"403":{"start":{"line":1534,"column":8},"end":{"line":1534,"column":38}},"404":{"start":{"line":1537,"column":4},"end":{"line":1537,"column":16}},"405":{"start":{"line":1540,"column":0},"end":{"line":1590,"column":3}},"406":{"start":{"line":1592,"column":0},"end":{"line":1645,"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":39}},{"start":{"line":51,"column":43},"end":{"line":51,"column":85}}]},"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":127,"type":"if","locations":[{"start":{"line":127,"column":0},"end":{"line":127,"column":0}},{"start":{"line":127,"column":0},"end":{"line":127,"column":0}}]},"17":{"line":138,"type":"cond-expr","locations":[{"start":{"line":138,"column":48},"end":{"line":138,"column":52}},{"start":{"line":138,"column":55},"end":{"line":138,"column":60}}]},"18":{"line":150,"type":"if","locations":[{"start":{"line":150,"column":12},"end":{"line":150,"column":12}},{"start":{"line":150,"column":12},"end":{"line":150,"column":12}}]},"19":{"line":151,"type":"cond-expr","locations":[{"start":{"line":151,"column":54},"end":{"line":151,"column":64}},{"start":{"line":151,"column":67},"end":{"line":151,"column":73}}]},"20":{"line":151,"type":"binary-expr","locations":[{"start":{"line":151,"column":20},"end":{"line":151,"column":30}},{"start":{"line":151,"column":34},"end":{"line":151,"column":50}}]},"21":{"line":176,"type":"if","locations":[{"start":{"line":176,"column":4},"end":{"line":176,"column":4}},{"start":{"line":176,"column":4},"end":{"line":176,"column":4}}]},"22":{"line":177,"type":"cond-expr","locations":[{"start":{"line":177,"column":33},"end":{"line":177,"column":37}},{"start":{"line":177,"column":40},"end":{"line":177,"column":58}}]},"23":{"line":177,"type":"binary-expr","locations":[{"start":{"line":177,"column":40},"end":{"line":177,"column":50}},{"start":{"line":177,"column":54},"end":{"line":177,"column":58}}]},"24":{"line":194,"type":"if","locations":[{"start":{"line":194,"column":4},"end":{"line":194,"column":4}},{"start":{"line":194,"column":4},"end":{"line":194,"column":4}}]},"25":{"line":195,"type":"if","locations":[{"start":{"line":195,"column":9},"end":{"line":195,"column":9}},{"start":{"line":195,"column":9},"end":{"line":195,"column":9}}]},"26":{"line":195,"type":"binary-expr","locations":[{"start":{"line":195,"column":13},"end":{"line":195,"column":35}},{"start":{"line":195,"column":39},"end":{"line":195,"column":63}}]},"27":{"line":196,"type":"if","locations":[{"start":{"line":196,"column":12},"end":{"line":196,"column":12}},{"start":{"line":196,"column":12},"end":{"line":196,"column":12}}]},"28":{"line":196,"type":"binary-expr","locations":[{"start":{"line":196,"column":16},"end":{"line":196,"column":32}},{"start":{"line":196,"column":36},"end":{"line":196,"column":55}}]},"29":{"line":198,"type":"if","locations":[{"start":{"line":198,"column":19},"end":{"line":198,"column":19}},{"start":{"line":198,"column":19},"end":{"line":198,"column":19}}]},"30":{"line":198,"type":"binary-expr","locations":[{"start":{"line":198,"column":24},"end":{"line":198,"column":32}},{"start":{"line":198,"column":36},"end":{"line":198,"column":47}},{"start":{"line":199,"column":21},"end":{"line":199,"column":27}},{"start":{"line":199,"column":31},"end":{"line":199,"column":48}}]},"31":{"line":203,"type":"if","locations":[{"start":{"line":203,"column":11},"end":{"line":203,"column":11}},{"start":{"line":203,"column":11},"end":{"line":203,"column":11}}]},"32":{"line":205,"type":"if","locations":[{"start":{"line":205,"column":11},"end":{"line":205,"column":11}},{"start":{"line":205,"column":11},"end":{"line":205,"column":11}}]},"33":{"line":224,"type":"if","locations":[{"start":{"line":224,"column":4},"end":{"line":224,"column":4}},{"start":{"line":224,"column":4},"end":{"line":224,"column":4}}]},"34":{"line":224,"type":"binary-expr","locations":[{"start":{"line":224,"column":8},"end":{"line":224,"column":12}},{"start":{"line":224,"column":16},"end":{"line":224,"column":18}},{"start":{"line":224,"column":22},"end":{"line":224,"column":45}}]},"35":{"line":230,"type":"if","locations":[{"start":{"line":230,"column":12},"end":{"line":230,"column":12}},{"start":{"line":230,"column":12},"end":{"line":230,"column":12}}]},"36":{"line":230,"type":"binary-expr","locations":[{"start":{"line":230,"column":16},"end":{"line":230,"column":23}},{"start":{"line":230,"column":27},"end":{"line":230,"column":40}}]},"37":{"line":234,"type":"if","locations":[{"start":{"line":234,"column":12},"end":{"line":234,"column":12}},{"start":{"line":234,"column":12},"end":{"line":234,"column":12}}]},"38":{"line":234,"type":"binary-expr","locations":[{"start":{"line":234,"column":16},"end":{"line":234,"column":23}},{"start":{"line":234,"column":27},"end":{"line":234,"column":40}}]},"39":{"line":239,"type":"binary-expr","locations":[{"start":{"line":239,"column":27},"end":{"line":239,"column":34}},{"start":{"line":239,"column":38},"end":{"line":239,"column":42}}]},"40":{"line":241,"type":"if","locations":[{"start":{"line":241,"column":12},"end":{"line":241,"column":12}},{"start":{"line":241,"column":12},"end":{"line":241,"column":12}}]},"41":{"line":245,"type":"binary-expr","locations":[{"start":{"line":245,"column":13},"end":{"line":245,"column":38}},{"start":{"line":245,"column":44},"end":{"line":245,"column":54}}]},"42":{"line":263,"type":"if","locations":[{"start":{"line":263,"column":4},"end":{"line":263,"column":4}},{"start":{"line":263,"column":4},"end":{"line":263,"column":4}}]},"43":{"line":264,"type":"binary-expr","locations":[{"start":{"line":264,"column":18},"end":{"line":264,"column":25}},{"start":{"line":264,"column":29},"end":{"line":264,"column":33}}]},"44":{"line":308,"type":"if","locations":[{"start":{"line":308,"column":4},"end":{"line":308,"column":4}},{"start":{"line":308,"column":4},"end":{"line":308,"column":4}}]},"45":{"line":309,"type":"if","locations":[{"start":{"line":309,"column":8},"end":{"line":309,"column":8}},{"start":{"line":309,"column":8},"end":{"line":309,"column":8}}]},"46":{"line":311,"type":"if","locations":[{"start":{"line":311,"column":12},"end":{"line":311,"column":12}},{"start":{"line":311,"column":12},"end":{"line":311,"column":12}}]},"47":{"line":314,"type":"if","locations":[{"start":{"line":314,"column":15},"end":{"line":314,"column":15}},{"start":{"line":314,"column":15},"end":{"line":314,"column":15}}]},"48":{"line":318,"type":"if","locations":[{"start":{"line":318,"column":8},"end":{"line":318,"column":8}},{"start":{"line":318,"column":8},"end":{"line":318,"column":8}}]},"49":{"line":318,"type":"binary-expr","locations":[{"start":{"line":318,"column":12},"end":{"line":318,"column":25}},{"start":{"line":318,"column":29},"end":{"line":318,"column":49}}]},"50":{"line":320,"type":"cond-expr","locations":[{"start":{"line":320,"column":36},"end":{"line":320,"column":50}},{"start":{"line":320,"column":53},"end":{"line":320,"column":57}}]},"51":{"line":321,"type":"if","locations":[{"start":{"line":321,"column":12},"end":{"line":321,"column":12}},{"start":{"line":321,"column":12},"end":{"line":321,"column":12}}]},"52":{"line":321,"type":"binary-expr","locations":[{"start":{"line":321,"column":16},"end":{"line":321,"column":25}},{"start":{"line":321,"column":30},"end":{"line":321,"column":40}},{"start":{"line":321,"column":44},"end":{"line":321,"column":63}}]},"53":{"line":323,"type":"if","locations":[{"start":{"line":323,"column":16},"end":{"line":323,"column":16}},{"start":{"line":323,"column":16},"end":{"line":323,"column":16}}]},"54":{"line":346,"type":"if","locations":[{"start":{"line":346,"column":4},"end":{"line":346,"column":4}},{"start":{"line":346,"column":4},"end":{"line":346,"column":4}}]},"55":{"line":351,"type":"if","locations":[{"start":{"line":351,"column":11},"end":{"line":351,"column":11}},{"start":{"line":351,"column":11},"end":{"line":351,"column":11}}]},"56":{"line":370,"type":"if","locations":[{"start":{"line":370,"column":4},"end":{"line":370,"column":4}},{"start":{"line":370,"column":4},"end":{"line":370,"column":4}}]},"57":{"line":370,"type":"binary-expr","locations":[{"start":{"line":370,"column":8},"end":{"line":370,"column":20}},{"start":{"line":370,"column":24},"end":{"line":370,"column":46}}]},"58":{"line":372,"type":"if","locations":[{"start":{"line":372,"column":11},"end":{"line":372,"column":11}},{"start":{"line":372,"column":11},"end":{"line":372,"column":11}}]},"59":{"line":392,"type":"if","locations":[{"start":{"line":392,"column":8},"end":{"line":392,"column":8}},{"start":{"line":392,"column":8},"end":{"line":392,"column":8}}]},"60":{"line":394,"type":"cond-expr","locations":[{"start":{"line":394,"column":39},"end":{"line":394,"column":62}},{"start":{"line":394,"column":65},"end":{"line":394,"column":69}}]},"61":{"line":394,"type":"binary-expr","locations":[{"start":{"line":394,"column":18},"end":{"line":394,"column":23}},{"start":{"line":394,"column":27},"end":{"line":394,"column":35}}]},"62":{"line":395,"type":"cond-expr","locations":[{"start":{"line":395,"column":53},"end":{"line":395,"column":83}},{"start":{"line":395,"column":86},"end":{"line":395,"column":90}}]},"63":{"line":395,"type":"binary-expr","locations":[{"start":{"line":395,"column":25},"end":{"line":395,"column":30}},{"start":{"line":395,"column":34},"end":{"line":395,"column":49}}]},"64":{"line":398,"type":"if","locations":[{"start":{"line":398,"column":12},"end":{"line":398,"column":12}},{"start":{"line":398,"column":12},"end":{"line":398,"column":12}}]},"65":{"line":402,"type":"if","locations":[{"start":{"line":402,"column":12},"end":{"line":402,"column":12}},{"start":{"line":402,"column":12},"end":{"line":402,"column":12}}]},"66":{"line":424,"type":"if","locations":[{"start":{"line":424,"column":8},"end":{"line":424,"column":8}},{"start":{"line":424,"column":8},"end":{"line":424,"column":8}}]},"67":{"line":430,"type":"if","locations":[{"start":{"line":430,"column":8},"end":{"line":430,"column":8}},{"start":{"line":430,"column":8},"end":{"line":430,"column":8}}]},"68":{"line":432,"type":"if","locations":[{"start":{"line":432,"column":15},"end":{"line":432,"column":15}},{"start":{"line":432,"column":15},"end":{"line":432,"column":15}}]},"69":{"line":449,"type":"if","locations":[{"start":{"line":449,"column":8},"end":{"line":449,"column":8}},{"start":{"line":449,"column":8},"end":{"line":449,"column":8}}]},"70":{"line":449,"type":"binary-expr","locations":[{"start":{"line":449,"column":12},"end":{"line":449,"column":22}},{"start":{"line":449,"column":26},"end":{"line":449,"column":43}}]},"71":{"line":451,"type":"if","locations":[{"start":{"line":451,"column":15},"end":{"line":451,"column":15}},{"start":{"line":451,"column":15},"end":{"line":451,"column":15}}]},"72":{"line":474,"type":"if","locations":[{"start":{"line":474,"column":8},"end":{"line":474,"column":8}},{"start":{"line":474,"column":8},"end":{"line":474,"column":8}}]},"73":{"line":477,"type":"if","locations":[{"start":{"line":477,"column":12},"end":{"line":477,"column":12}},{"start":{"line":477,"column":12},"end":{"line":477,"column":12}}]},"74":{"line":477,"type":"binary-expr","locations":[{"start":{"line":477,"column":16},"end":{"line":477,"column":26}},{"start":{"line":477,"column":30},"end":{"line":477,"column":47}}]},"75":{"line":479,"type":"if","locations":[{"start":{"line":479,"column":19},"end":{"line":479,"column":19}},{"start":{"line":479,"column":19},"end":{"line":479,"column":19}}]},"76":{"line":496,"type":"if","locations":[{"start":{"line":496,"column":8},"end":{"line":496,"column":8}},{"start":{"line":496,"column":8},"end":{"line":496,"column":8}}]},"77":{"line":515,"type":"if","locations":[{"start":{"line":515,"column":8},"end":{"line":515,"column":8}},{"start":{"line":515,"column":8},"end":{"line":515,"column":8}}]},"78":{"line":536,"type":"if","locations":[{"start":{"line":536,"column":8},"end":{"line":536,"column":8}},{"start":{"line":536,"column":8},"end":{"line":536,"column":8}}]},"79":{"line":536,"type":"binary-expr","locations":[{"start":{"line":536,"column":12},"end":{"line":536,"column":19}},{"start":{"line":536,"column":23},"end":{"line":536,"column":36}}]},"80":{"line":552,"type":"if","locations":[{"start":{"line":552,"column":8},"end":{"line":552,"column":8}},{"start":{"line":552,"column":8},"end":{"line":552,"column":8}}]},"81":{"line":553,"type":"cond-expr","locations":[{"start":{"line":553,"column":26},"end":{"line":553,"column":42}},{"start":{"line":553,"column":45},"end":{"line":553,"column":65}}]},"82":{"line":553,"type":"binary-expr","locations":[{"start":{"line":553,"column":26},"end":{"line":553,"column":35}},{"start":{"line":553,"column":39},"end":{"line":553,"column":42}}]},"83":{"line":554,"type":"if","locations":[{"start":{"line":554,"column":12},"end":{"line":554,"column":12}},{"start":{"line":554,"column":12},"end":{"line":554,"column":12}}]},"84":{"line":565,"type":"if","locations":[{"start":{"line":565,"column":8},"end":{"line":565,"column":8}},{"start":{"line":565,"column":8},"end":{"line":565,"column":8}}]},"85":{"line":565,"type":"binary-expr","locations":[{"start":{"line":565,"column":12},"end":{"line":565,"column":15}},{"start":{"line":565,"column":19},"end":{"line":565,"column":44}}]},"86":{"line":588,"type":"if","locations":[{"start":{"line":588,"column":8},"end":{"line":588,"column":8}},{"start":{"line":588,"column":8},"end":{"line":588,"column":8}}]},"87":{"line":588,"type":"binary-expr","locations":[{"start":{"line":588,"column":12},"end":{"line":588,"column":34}},{"start":{"line":589,"column":17},"end":{"line":589,"column":44}},{"start":{"line":589,"column":48},"end":{"line":589,"column":77}}]},"88":{"line":605,"type":"if","locations":[{"start":{"line":605,"column":8},"end":{"line":605,"column":8}},{"start":{"line":605,"column":8},"end":{"line":605,"column":8}}]},"89":{"line":605,"type":"binary-expr","locations":[{"start":{"line":605,"column":12},"end":{"line":605,"column":34}},{"start":{"line":606,"column":17},"end":{"line":606,"column":44}},{"start":{"line":606,"column":48},"end":{"line":606,"column":77}}]},"90":{"line":676,"type":"if","locations":[{"start":{"line":676,"column":8},"end":{"line":676,"column":8}},{"start":{"line":676,"column":8},"end":{"line":676,"column":8}}]},"91":{"line":682,"type":"binary-expr","locations":[{"start":{"line":682,"column":15},"end":{"line":682,"column":23}},{"start":{"line":682,"column":27},"end":{"line":682,"column":36}}]},"92":{"line":709,"type":"if","locations":[{"start":{"line":709,"column":8},"end":{"line":709,"column":8}},{"start":{"line":709,"column":8},"end":{"line":709,"column":8}}]},"93":{"line":709,"type":"binary-expr","locations":[{"start":{"line":709,"column":12},"end":{"line":709,"column":16}},{"start":{"line":709,"column":20},"end":{"line":709,"column":35}}]},"94":{"line":713,"type":"if","locations":[{"start":{"line":713,"column":8},"end":{"line":713,"column":8}},{"start":{"line":713,"column":8},"end":{"line":713,"column":8}}]},"95":{"line":731,"type":"if","locations":[{"start":{"line":731,"column":8},"end":{"line":731,"column":8}},{"start":{"line":731,"column":8},"end":{"line":731,"column":8}}]},"96":{"line":746,"type":"if","locations":[{"start":{"line":746,"column":8},"end":{"line":746,"column":8}},{"start":{"line":746,"column":8},"end":{"line":746,"column":8}}]},"97":{"line":763,"type":"cond-expr","locations":[{"start":{"line":763,"column":42},"end":{"line":763,"column":52}},{"start":{"line":763,"column":55},"end":{"line":763,"column":62}}]},"98":{"line":768,"type":"if","locations":[{"start":{"line":768,"column":8},"end":{"line":768,"column":8}},{"start":{"line":768,"column":8},"end":{"line":768,"column":8}}]},"99":{"line":774,"type":"if","locations":[{"start":{"line":774,"column":8},"end":{"line":774,"column":8}},{"start":{"line":774,"column":8},"end":{"line":774,"column":8}}]},"100":{"line":777,"type":"if","locations":[{"start":{"line":777,"column":16},"end":{"line":777,"column":16}},{"start":{"line":777,"column":16},"end":{"line":777,"column":16}}]},"101":{"line":805,"type":"if","locations":[{"start":{"line":805,"column":8},"end":{"line":805,"column":8}},{"start":{"line":805,"column":8},"end":{"line":805,"column":8}}]},"102":{"line":805,"type":"binary-expr","locations":[{"start":{"line":805,"column":12},"end":{"line":805,"column":13}},{"start":{"line":805,"column":17},"end":{"line":805,"column":24}}]},"103":{"line":809,"type":"if","locations":[{"start":{"line":809,"column":8},"end":{"line":809,"column":8}},{"start":{"line":809,"column":8},"end":{"line":809,"column":8}}]},"104":{"line":809,"type":"binary-expr","locations":[{"start":{"line":809,"column":12},"end":{"line":809,"column":13}},{"start":{"line":809,"column":17},"end":{"line":809,"column":24}}]},"105":{"line":824,"type":"cond-expr","locations":[{"start":{"line":825,"column":8},"end":{"line":827,"column":9}},{"start":{"line":828,"column":8},"end":{"line":843,"column":9}}]},"106":{"line":834,"type":"if","locations":[{"start":{"line":834,"column":12},"end":{"line":834,"column":12}},{"start":{"line":834,"column":12},"end":{"line":834,"column":12}}]},"107":{"line":836,"type":"if","locations":[{"start":{"line":836,"column":19},"end":{"line":836,"column":19}},{"start":{"line":836,"column":19},"end":{"line":836,"column":19}}]},"108":{"line":848,"type":"binary-expr","locations":[{"start":{"line":848,"column":18},"end":{"line":848,"column":22}},{"start":{"line":848,"column":26},"end":{"line":848,"column":40}},{"start":{"line":849,"column":16},"end":{"line":849,"column":48}},{"start":{"line":850,"column":13},"end":{"line":850,"column":46}},{"start":{"line":851,"column":16},"end":{"line":851,"column":62}}]},"109":{"line":899,"type":"if","locations":[{"start":{"line":899,"column":4},"end":{"line":899,"column":4}},{"start":{"line":899,"column":4},"end":{"line":899,"column":4}}]},"110":{"line":900,"type":"if","locations":[{"start":{"line":900,"column":8},"end":{"line":900,"column":8}},{"start":{"line":900,"column":8},"end":{"line":900,"column":8}}]},"111":{"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}}]},"112":{"line":903,"type":"binary-expr","locations":[{"start":{"line":903,"column":19},"end":{"line":903,"column":33}},{"start":{"line":903,"column":37},"end":{"line":903,"column":58}}]},"113":{"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}}]},"114":{"line":907,"type":"if","locations":[{"start":{"line":907,"column":15},"end":{"line":907,"column":15}},{"start":{"line":907,"column":15},"end":{"line":907,"column":15}}]},"115":{"line":907,"type":"binary-expr","locations":[{"start":{"line":907,"column":19},"end":{"line":907,"column":27}},{"start":{"line":907,"column":31},"end":{"line":907,"column":45}}]},"116":{"line":909,"type":"if","locations":[{"start":{"line":909,"column":16},"end":{"line":909,"column":16}},{"start":{"line":909,"column":16},"end":{"line":909,"column":16}}]},"117":{"line":924,"type":"binary-expr","locations":[{"start":{"line":924,"column":18},"end":{"line":924,"column":23}},{"start":{"line":924,"column":27},"end":{"line":924,"column":29}}]},"118":{"line":938,"type":"cond-expr","locations":[{"start":{"line":938,"column":43},"end":{"line":938,"column":58}},{"start":{"line":938,"column":61},"end":{"line":938,"column":69}}]},"119":{"line":938,"type":"binary-expr","locations":[{"start":{"line":938,"column":12},"end":{"line":938,"column":20}},{"start":{"line":938,"column":24},"end":{"line":938,"column":39}}]},"120":{"line":943,"type":"if","locations":[{"start":{"line":943,"column":4},"end":{"line":943,"column":4}},{"start":{"line":943,"column":4},"end":{"line":943,"column":4}}]},"121":{"line":943,"type":"binary-expr","locations":[{"start":{"line":943,"column":8},"end":{"line":943,"column":13}},{"start":{"line":943,"column":17},"end":{"line":943,"column":29}}]},"122":{"line":944,"type":"binary-expr","locations":[{"start":{"line":944,"column":32},"end":{"line":944,"column":39}},{"start":{"line":944,"column":43},"end":{"line":944,"column":51}}]},"123":{"line":950,"type":"if","locations":[{"start":{"line":950,"column":4},"end":{"line":950,"column":4}},{"start":{"line":950,"column":4},"end":{"line":950,"column":4}}]},"124":{"line":950,"type":"binary-expr","locations":[{"start":{"line":950,"column":8},"end":{"line":950,"column":12}},{"start":{"line":950,"column":16},"end":{"line":950,"column":18}}]},"125":{"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}}]},"126":{"line":963,"type":"binary-expr","locations":[{"start":{"line":963,"column":22},"end":{"line":963,"column":29}},{"start":{"line":963,"column":33},"end":{"line":963,"column":41}}]},"127":{"line":965,"type":"if","locations":[{"start":{"line":965,"column":16},"end":{"line":965,"column":16}},{"start":{"line":965,"column":16},"end":{"line":965,"column":16}}]},"128":{"line":965,"type":"binary-expr","locations":[{"start":{"line":965,"column":20},"end":{"line":965,"column":40}},{"start":{"line":965,"column":44},"end":{"line":965,"column":63}}]},"129":{"line":971,"type":"cond-expr","locations":[{"start":{"line":971,"column":32},"end":{"line":971,"column":35}},{"start":{"line":971,"column":38},"end":{"line":971,"column":42}}]},"130":{"line":988,"type":"if","locations":[{"start":{"line":988,"column":4},"end":{"line":988,"column":4}},{"start":{"line":988,"column":4},"end":{"line":988,"column":4}}]},"131":{"line":989,"type":"binary-expr","locations":[{"start":{"line":989,"column":18},"end":{"line":989,"column":25}},{"start":{"line":989,"column":29},"end":{"line":989,"column":33}}]},"132":{"line":1000,"type":"if","locations":[{"start":{"line":1000,"column":4},"end":{"line":1000,"column":4}},{"start":{"line":1000,"column":4},"end":{"line":1000,"column":4}}]},"133":{"line":1012,"type":"cond-expr","locations":[{"start":{"line":1012,"column":29},"end":{"line":1012,"column":31}},{"start":{"line":1012,"column":34},"end":{"line":1012,"column":38}}]},"134":{"line":1016,"type":"if","locations":[{"start":{"line":1016,"column":12},"end":{"line":1016,"column":12}},{"start":{"line":1016,"column":12},"end":{"line":1016,"column":12}}]},"135":{"line":1032,"type":"binary-expr","locations":[{"start":{"line":1032,"column":22},"end":{"line":1032,"column":33}},{"start":{"line":1032,"column":37},"end":{"line":1032,"column":39}}]},"136":{"line":1048,"type":"binary-expr","locations":[{"start":{"line":1048,"column":27},"end":{"line":1048,"column":34}},{"start":{"line":1048,"column":38},"end":{"line":1048,"column":42}}]},"137":{"line":1058,"type":"if","locations":[{"start":{"line":1058,"column":12},"end":{"line":1058,"column":12}},{"start":{"line":1058,"column":12},"end":{"line":1058,"column":12}}]},"138":{"line":1062,"type":"binary-expr","locations":[{"start":{"line":1062,"column":27},"end":{"line":1062,"column":34}},{"start":{"line":1062,"column":38},"end":{"line":1062,"column":46}}]},"139":{"line":1080,"type":"binary-expr","locations":[{"start":{"line":1080,"column":22},"end":{"line":1080,"column":29}},{"start":{"line":1080,"column":33},"end":{"line":1080,"column":37}}]},"140":{"line":1127,"type":"binary-expr","locations":[{"start":{"line":1127,"column":12},"end":{"line":1127,"column":13}},{"start":{"line":1127,"column":17},"end":{"line":1127,"column":18}}]},"141":{"line":1130,"type":"if","locations":[{"start":{"line":1130,"column":12},"end":{"line":1130,"column":12}},{"start":{"line":1130,"column":12},"end":{"line":1130,"column":12}}]},"142":{"line":1172,"type":"if","locations":[{"start":{"line":1172,"column":8},"end":{"line":1172,"column":8}},{"start":{"line":1172,"column":8},"end":{"line":1172,"column":8}}]},"143":{"line":1173,"type":"if","locations":[{"start":{"line":1173,"column":12},"end":{"line":1173,"column":12}},{"start":{"line":1173,"column":12},"end":{"line":1173,"column":12}}]},"144":{"line":1174,"type":"if","locations":[{"start":{"line":1174,"column":16},"end":{"line":1174,"column":16}},{"start":{"line":1174,"column":16},"end":{"line":1174,"column":16}}]},"145":{"line":1174,"type":"binary-expr","locations":[{"start":{"line":1174,"column":20},"end":{"line":1174,"column":25}},{"start":{"line":1174,"column":29},"end":{"line":1174,"column":37}},{"start":{"line":1174,"column":41},"end":{"line":1174,"column":63}}]},"146":{"line":1209,"type":"if","locations":[{"start":{"line":1209,"column":8},"end":{"line":1209,"column":8}},{"start":{"line":1209,"column":8},"end":{"line":1209,"column":8}}]},"147":{"line":1209,"type":"binary-expr","locations":[{"start":{"line":1209,"column":12},"end":{"line":1209,"column":17}},{"start":{"line":1209,"column":21},"end":{"line":1209,"column":29}}]},"148":{"line":1212,"type":"if","locations":[{"start":{"line":1212,"column":12},"end":{"line":1212,"column":12}},{"start":{"line":1212,"column":12},"end":{"line":1212,"column":12}}]},"149":{"line":1216,"type":"if","locations":[{"start":{"line":1216,"column":12},"end":{"line":1216,"column":12}},{"start":{"line":1216,"column":12},"end":{"line":1216,"column":12}}]},"150":{"line":1220,"type":"if","locations":[{"start":{"line":1220,"column":12},"end":{"line":1220,"column":12}},{"start":{"line":1220,"column":12},"end":{"line":1220,"column":12}}]},"151":{"line":1224,"type":"binary-expr","locations":[{"start":{"line":1224,"column":15},"end":{"line":1224,"column":18}},{"start":{"line":1224,"column":22},"end":{"line":1224,"column":30}}]},"152":{"line":1298,"type":"if","locations":[{"start":{"line":1298,"column":4},"end":{"line":1298,"column":4}},{"start":{"line":1298,"column":4},"end":{"line":1298,"column":4}}]},"153":{"line":1299,"type":"binary-expr","locations":[{"start":{"line":1299,"column":19},"end":{"line":1299,"column":50}},{"start":{"line":1299,"column":54},"end":{"line":1299,"column":71}}]},"154":{"line":1301,"type":"if","locations":[{"start":{"line":1301,"column":8},"end":{"line":1301,"column":8}},{"start":{"line":1301,"column":8},"end":{"line":1301,"column":8}}]},"155":{"line":1301,"type":"binary-expr","locations":[{"start":{"line":1301,"column":12},"end":{"line":1301,"column":15}},{"start":{"line":1301,"column":19},"end":{"line":1301,"column":31}}]},"156":{"line":1309,"type":"if","locations":[{"start":{"line":1309,"column":8},"end":{"line":1309,"column":8}},{"start":{"line":1309,"column":8},"end":{"line":1309,"column":8}}]},"157":{"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}}]},"158":{"line":1321,"type":"cond-expr","locations":[{"start":{"line":1321,"column":26},"end":{"line":1321,"column":36}},{"start":{"line":1321,"column":39},"end":{"line":1321,"column":42}}]},"159":{"line":1404,"type":"binary-expr","locations":[{"start":{"line":1404,"column":22},"end":{"line":1404,"column":31}},{"start":{"line":1404,"column":35},"end":{"line":1404,"column":45}},{"start":{"line":1404,"column":49},"end":{"line":1404,"column":52}}]},"160":{"line":1409,"type":"if","locations":[{"start":{"line":1409,"column":8},"end":{"line":1409,"column":8}},{"start":{"line":1409,"column":8},"end":{"line":1409,"column":8}}]},"161":{"line":1533,"type":"if","locations":[{"start":{"line":1533,"column":4},"end":{"line":1533,"column":4}},{"start":{"line":1533,"column":4},"end":{"line":1533,"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 (Y_Node._instances.has(node) && Y_Node._instances.get(node)._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';","","if (window.WeakMap)","{"," Y_Node.WeakMap = window.WeakMap;","}","else","{"," Y_Node.WeakMap = function() {"," this._map = {};"," };"," Y_Node.WeakMap.prototype = {"," has: function(k) {"," return this._map[ this._yuid(k) ] ? true : false;"," },"," get: function(k) {"," return this._map[ this._yuid(k) ];"," },"," set: function(k,v) {"," this._map[ this._yuid(k) ] = v;"," },"," 'delete': function(k) {"," delete this._map[ this._yuid(k) ];"," },"," _yuid: function(k) {"," if (k._node) k = k._node;"," return (k.uniqueID && k.nodeType !== 9) ? k.uniqueID : k[UID];"," }"," };","}","","/**"," * A list of Node instances that have been created"," * @private"," * @type Object"," * @property _instances"," * @static"," *"," */","Y_Node._instances = new Y_Node.WeakMap();","","/**"," * 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;",""," 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)"," instance = Y_Node._instances.get(node); // 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.set(node, 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.get(node);"," if (instance) {"," instance.destroy();"," } else { // purge in case added by other means"," Y.Event.purgeElement(node);"," }"," });"," }",""," Y_Node._instances.delete(this._node);",""," this._node = null;"," this._stateProxy = null;"," },",""," /**"," * 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 instance = Y.Node._instances.get(node),"," 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 {"," }","};","","/**"," * Import the named method, or methods from the host onto NodeList."," *"," * @method importMethod"," * @static"," * @param {Object} host The object containing the methods to copy. Typically a prototype."," * @param {String|String[]} name The name, or an Array of names of the methods to import onto NodeList."," * @param {String} [altName] An alternative name to use for the method added to NodeList, which may differ from the name"," * of the original host object. Has no effect if name is an array of method names."," */","NodeList.importMethod = function(host, name, altName) {"," if (typeof name === 'string') {"," altName = altName || name;"," NodeList.addMethod(altName, 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.get(node);"," 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.get(nodes[0]) || getTemp(nodes[0]);"," val = instance._get(attr);"," if (val && val.nodeType) {"," isNodeList = true;"," }"," }",""," Y.Array.each(nodes, function(node) {"," instance = Y.Node._instances.get(node);",""," 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]++,Y_Node._instances.has(node))&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['6'][1]++,Y_Node._instances.get(node)._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(!window.WeakMap){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['16'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['41']++;window.WeakMap=function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['7']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['42']++;this._map={};};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['43']++;window.WeakMap.prototype={has:function(k){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['8']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['44']++;return this._map[this._yuid(k)]?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['17'][0]++,true):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['17'][1]++,false);},get:function(k){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['9']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['45']++;return this._map[this._yuid(k)];},set:function(k,v){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['10']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['46']++;this._map[this._yuid(k)]=v;},'delete':function(k){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['11']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['47']++;delete this._map[this._yuid(k)];},_yuid:function(k){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['12']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['48']++;if(k._node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['18'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['49']++;k=k._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['18'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['50']++;return(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['20'][0]++,k.uniqueID)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['20'][1]++,k.nodeType!==9)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['19'][0]++,k.uniqueID):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['19'][1]++,k[UID]);}};}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['16'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['51']++;Y_Node._instances=new WeakMap();__cov_LGqepiXuzGEZpz3IhlW0rQ.s['52']++;Y_Node.getDOMNode=function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['13']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['53']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['21'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['54']++;return node.nodeType?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['22'][0]++,node):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['22'][1]++,(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['23'][0]++,node._node)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['23'][1]++,null));}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['21'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['55']++;return null;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['56']++;Y_Node.scrubVal=function(val,node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['14']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['57']++;if(val){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['24'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['58']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['26'][0]++,typeof val=='object')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['26'][1]++,typeof val=='function')){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['25'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['59']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['28'][0]++,NODE_TYPE in val)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['28'][1]++,Y_DOM.isWindow(val))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['27'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['60']++;val=Y.one(val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['27'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['61']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['30'][0]++,val.item)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['30'][1]++,!val._nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['30'][2]++,val[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['30'][3]++,val[0][NODE_TYPE])){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['29'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['62']++;val=Y.all(val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['29'][1]++;}}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['25'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['24'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['63']++;if(typeof val==='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['31'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['64']++;val=node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['31'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['65']++;if(val===null){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['32'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['66']++;val=null;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['32'][1]++;}}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['67']++;return val;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['68']++;Y_Node.addMethod=function(name,fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['15']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['69']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['34'][0]++,name)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['34'][1]++,fn)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['34'][2]++,typeof fn=='function')){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['33'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['70']++;Y_Node.prototype[name]=function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['16']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['71']++;var args=_slice.call(arguments),node=this,ret;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['72']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['36'][0]++,args[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['36'][1]++,args[0]._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['35'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['73']++;args[0]=args[0]._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['35'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['74']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['38'][0]++,args[1])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['38'][1]++,args[1]._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['37'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['75']++;args[1]=args[1]._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['37'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['76']++;args.unshift(node._node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['77']++;ret=fn.apply((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['39'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['39'][1]++,node),args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['78']++;if(ret){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['40'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['79']++;ret=Y_Node.scrubVal(ret,node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['40'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['80']++;(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['41'][0]++,typeof ret!='undefined')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['41'][1]++,ret=node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['81']++;return ret;};}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['33'][1]++;}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['82']++;Y_Node.importMethod=function(host,name,altName){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['17']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['83']++;if(typeof name=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['42'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['84']++;altName=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['43'][0]++,altName)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['43'][1]++,name);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['85']++;Y_Node.addMethod(altName,host[name],host);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['42'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['86']++;Y.Array.each(name,function(n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['18']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['87']++;Y_Node.importMethod(host,n);});}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['88']++;Y_Node.one=function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['19']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['89']++;var instance=null,cachedNode;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['90']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['44'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['91']++;if(typeof node=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['45'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['92']++;node=Y_Node._fromString(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['93']++;if(!node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['46'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['94']++;return null;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['46'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['45'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['95']++;if(node.getDOMNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['47'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['96']++;return node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['47'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['97']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['49'][0]++,node.nodeType)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['49'][1]++,Y.DOM.isWindow(node))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['48'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['98']++;instance=Y_Node._instances.get(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['99']++;cachedNode=instance?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['50'][0]++,instance._node):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['50'][1]++,null);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['100']++;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['101']++;instance=new Y_Node(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['102']++;if(node.nodeType!=11){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['53'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['103']++;Y_Node._instances.set(node,instance);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['53'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['51'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['48'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['44'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['104']++;return instance;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['105']++;Y_Node.DEFAULT_SETTER=function(name,val){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['20']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['106']++;var node=this._stateProxy,strPath;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['107']++;if(name.indexOf(DOT)>-1){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['54'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['108']++;strPath=name;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['109']++;name=name.split(DOT);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['110']++;Y.Object.setValue(node,name,val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['54'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['111']++;if(typeof node[name]!='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['55'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['112']++;node[name]=val;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['55'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['113']++;return val;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['114']++;Y_Node.DEFAULT_GETTER=function(name){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['21']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['115']++;var node=this._stateProxy,val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['116']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['57'][0]++,name.indexOf)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['57'][1]++,name.indexOf(DOT)>-1)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['56'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['117']++;val=Y.Object.getValue(node,name.split(DOT));}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['56'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['118']++;if(typeof node[name]!='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['58'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['119']++;val=node[name];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['58'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['120']++;return val;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['121']++;Y.mix(Y_Node.prototype,{DATA_PREFIX:'data-',toString:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['22']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['122']++;var str=this[UID]+': not bound to a node',node=this._node,attrs,id,className;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['123']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['59'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['124']++;attrs=node.attributes;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['125']++;id=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['61'][0]++,attrs)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['61'][1]++,attrs.id)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['60'][0]++,node.getAttribute('id')):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['60'][1]++,null);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['126']++;className=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['63'][0]++,attrs)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['63'][1]++,attrs.className)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['62'][0]++,node.getAttribute('className')):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['62'][1]++,null);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['127']++;str=node[NODE_NAME];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['128']++;if(id){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['64'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['129']++;str+='#'+id;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['64'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['130']++;if(className){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['65'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['131']++;str+='.'+className.replace(' ','.');}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['65'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['132']++;str+=' '+this[UID];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['59'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['133']++;return str;},get:function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['23']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['134']++;var val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['135']++;if(this._getAttr){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['66'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['136']++;val=this._getAttr(attr);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['66'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['137']++;val=this._get(attr);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['138']++;if(val){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['67'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['139']++;val=Y_Node.scrubVal(val,this);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['67'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['140']++;if(val===null){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['68'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['141']++;val=null;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['68'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['142']++;return val;},_get:function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['24']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['143']++;var attrConfig=Y_Node.ATTRS[attr],val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['144']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['70'][0]++,attrConfig)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['70'][1]++,attrConfig.getter)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['69'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['145']++;val=attrConfig.getter.call(this);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['69'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['146']++;if(Y_Node.re_aria.test(attr)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['71'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['147']++;val=this._node.getAttribute(attr,2);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['71'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['148']++;val=Y_Node.DEFAULT_GETTER.apply(this,arguments);}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['149']++;return val;},set:function(attr,val){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['25']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['150']++;var attrConfig=Y_Node.ATTRS[attr];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['151']++;if(this._setAttr){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['72'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['152']++;this._setAttr.apply(this,arguments);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['72'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['153']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['74'][0]++,attrConfig)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['74'][1]++,attrConfig.setter)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['73'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['154']++;attrConfig.setter.call(this,val,attr);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['73'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['155']++;if(Y_Node.re_aria.test(attr)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['75'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['156']++;this._node.setAttribute(attr,val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['75'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['157']++;Y_Node.DEFAULT_SETTER.apply(this,arguments);}}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['158']++;return this;},setAttrs:function(attrMap){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['26']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['159']++;if(this._setAttrs){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['76'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['160']++;this._setAttrs(attrMap);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['76'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['161']++;Y.Object.each(attrMap,function(v,n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['27']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['162']++;this.set(n,v);},this);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['163']++;return this;},getAttrs:function(attrs){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['28']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['164']++;var ret={};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['165']++;if(this._getAttrs){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['77'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['166']++;this._getAttrs(attrs);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['77'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['167']++;Y.Array.each(attrs,function(v,n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['29']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['168']++;ret[v]=this.get(v);},this);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['169']++;return ret;},compareTo:function(refNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['30']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['170']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['171']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['79'][0]++,refNode)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['79'][1]++,refNode._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['78'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['172']++;refNode=refNode._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['78'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['173']++;return node===refNode;},inDoc:function(doc){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['31']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['174']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['175']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['80'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['176']++;doc=doc?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['81'][0]++,(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['82'][0]++,doc._node)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['82'][1]++,doc)):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['81'][1]++,node[OWNER_DOCUMENT]);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['177']++;if(doc.documentElement){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['83'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['178']++;return Y_DOM.contains(doc.documentElement,node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['83'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['80'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['179']++;return false;},getById:function(id){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['32']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['180']++;var node=this._node,ret=Y_DOM.byId(id,node[OWNER_DOCUMENT]);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['181']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['85'][0]++,ret)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['85'][1]++,Y_DOM.contains(node,ret))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['84'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['182']++;ret=Y.one(ret);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['84'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['183']++;ret=null;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['184']++;return ret;},ancestor:function(fn,testSelf,stopFn){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['33']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['185']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['87'][0]++,arguments.length===2)&&((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['87'][1]++,typeof testSelf=='string')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['87'][2]++,typeof testSelf=='function'))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['86'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['186']++;stopFn=testSelf;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['86'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['187']++;return Y.one(Y_DOM.ancestor(this._node,_wrapFn(fn),testSelf,_wrapFn(stopFn)));},ancestors:function(fn,testSelf,stopFn){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['34']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['188']++;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['189']++;stopFn=testSelf;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['88'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['190']++;return Y.all(Y_DOM.ancestors(this._node,_wrapFn(fn),testSelf,_wrapFn(stopFn)));},previous:function(fn,all){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['35']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['191']++;return Y.one(Y_DOM.elementByAxis(this._node,'previousSibling',_wrapFn(fn),all));},next:function(fn,all){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['36']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['192']++;return Y.one(Y_DOM.elementByAxis(this._node,'nextSibling',_wrapFn(fn),all));},siblings:function(fn){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['37']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['193']++;return Y.all(Y_DOM.siblings(this._node,_wrapFn(fn)));},one:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['38']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['194']++;return Y.one(Y.Selector.query(selector,this._node,true));},all:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['39']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['195']++;var nodelist;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['196']++;if(this._node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['90'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['197']++;nodelist=Y.all(Y.Selector.query(selector,this._node));__cov_LGqepiXuzGEZpz3IhlW0rQ.s['198']++;nodelist._query=selector;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['199']++;nodelist._queryRoot=this._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['90'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['200']++;return(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['91'][0]++,nodelist)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['91'][1]++,Y.all([]));},test:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['40']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['201']++;return Y.Selector.test(this._node,selector);},remove:function(destroy){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['41']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['202']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['203']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['93'][0]++,node)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['93'][1]++,node.parentNode)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['92'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['204']++;node.parentNode.removeChild(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['92'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['205']++;if(destroy){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['94'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['206']++;this.destroy();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['94'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['207']++;return this;},replace:function(newNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['42']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['208']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['209']++;if(typeof newNode=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['95'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['210']++;newNode=Y_Node.create(newNode);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['95'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['211']++;node.parentNode.replaceChild(Y_Node.getDOMNode(newNode),node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['212']++;return this;},replaceChild:function(node,refNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['43']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['213']++;if(typeof node=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['96'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['214']++;node=Y_DOM.create(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['96'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['215']++;return Y.one(this._node.replaceChild(Y_Node.getDOMNode(node),Y_Node.getDOMNode(refNode)));},destroy:function(recursive){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['44']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['216']++;var UID=Y.config.doc.uniqueID?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['97'][0]++,'uniqueID'):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['97'][1]++,'_yuid'),instance;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['217']++;this.purge();__cov_LGqepiXuzGEZpz3IhlW0rQ.s['218']++;if(this.unplug){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['98'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['219']++;this.unplug();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['98'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['220']++;this.clearData();__cov_LGqepiXuzGEZpz3IhlW0rQ.s['221']++;if(recursive){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['99'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['222']++;Y.NodeList.each(this.all('*'),function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['45']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['223']++;instance=Y_Node._instances.get(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['224']++;if(instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['100'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['225']++;instance.destroy();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['100'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['226']++;Y.Event.purgeElement(node);}});}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['99'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['227']++;Y_Node._instances.delete(this._node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['228']++;this._node=null;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['229']++;this._stateProxy=null;},invoke:function(method,a,b,c,d,e){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['46']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['230']++;var node=this._node,ret;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['231']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['102'][0]++,a)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['102'][1]++,a._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['101'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['232']++;a=a._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['101'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['233']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['104'][0]++,b)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['104'][1]++,b._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['103'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['234']++;b=b._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['103'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['235']++;ret=node[method](a,b,c,d,e);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['236']++;return Y_Node.scrubVal(ret,this);},swap:Y.config.doc.documentElement.swapNode?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['105'][0]++,function(otherNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['47']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['237']++;this._node.swapNode(Y_Node.getDOMNode(otherNode));}):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['105'][1]++,function(otherNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['48']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['238']++;otherNode=Y_Node.getDOMNode(otherNode);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['239']++;var node=this._node,parent=otherNode.parentNode,nextSibling=otherNode.nextSibling;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['240']++;if(nextSibling===node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['106'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['241']++;parent.insertBefore(node,otherNode);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['106'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['242']++;if(otherNode===node.nextSibling){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['107'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['243']++;parent.insertBefore(otherNode,node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['107'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['244']++;node.parentNode.replaceChild(otherNode,node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['245']++;Y_DOM.addHTML(parent,node,nextSibling);}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['246']++;return this;}),hasMethod:function(method){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['49']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['247']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['248']++;return!!((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['108'][0]++,node)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['108'][1]++,method in node)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['108'][2]++,typeof node[method]!='unknown')&&((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['108'][3]++,typeof node[method]=='function')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['108'][4]++,String(node[method]).indexOf('function')===1)));},isFragment:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['50']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['249']++;return this.get('nodeType')===11;},empty:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['51']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['250']++;this.get('childNodes').remove().destroy(true);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['251']++;return this;},getDOMNode:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['52']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['252']++;return this._node;}},true);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['253']++;Y.Node=Y_Node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['254']++;Y.one=Y_Node.one;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['255']++;var NodeList=function(nodes){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['53']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['256']++;var tmp=[];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['257']++;if(nodes){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['109'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['258']++;if(typeof nodes==='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['110'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['259']++;this._query=nodes;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['260']++;nodes=Y.Selector.query(nodes);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['110'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['261']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['112'][0]++,nodes.nodeType)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['112'][1]++,Y_DOM.isWindow(nodes))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['111'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['262']++;nodes=[nodes];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['111'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['263']++;if(nodes._node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['113'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['264']++;nodes=[nodes._node];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['113'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['265']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['115'][0]++,nodes[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['115'][1]++,nodes[0]._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['114'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['266']++;Y.Array.each(nodes,function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['54']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['267']++;if(node._node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['116'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['268']++;tmp.push(node._node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['116'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['269']++;nodes=tmp;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['114'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['270']++;nodes=Y.Array(nodes,0,true);}}}}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['109'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['271']++;this._nodes=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['117'][0]++,nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['117'][1]++,[]);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['272']++;NodeList.NAME='NodeList';__cov_LGqepiXuzGEZpz3IhlW0rQ.s['273']++;NodeList.getDOMNodes=function(nodelist){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['55']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['274']++;return(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['119'][0]++,nodelist)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['119'][1]++,nodelist._nodes)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['118'][0]++,nodelist._nodes):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['118'][1]++,nodelist);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['275']++;NodeList.each=function(instance,fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['56']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['276']++;var nodes=instance._nodes;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['277']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['121'][0]++,nodes)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['121'][1]++,nodes.length)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['120'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['278']++;Y.Array.each(nodes,fn,(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['122'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['122'][1]++,instance));}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['120'][1]++;}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['279']++;NodeList.addMethod=function(name,fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['57']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['280']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['124'][0]++,name)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['124'][1]++,fn)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['123'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['281']++;NodeList.prototype[name]=function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['58']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['282']++;var ret=[],args=arguments;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['283']++;Y.Array.each(this._nodes,function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['59']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['284']++;var instance=Y.Node._instances.get(node),ctx,result;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['285']++;if(!instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['125'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['286']++;instance=NodeList._getTempNode(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['125'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['287']++;ctx=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['126'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['126'][1]++,instance);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['288']++;result=fn.apply(ctx,args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['289']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['128'][0]++,result!==undefined)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['128'][1]++,result!==instance)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['127'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['290']++;ret[ret.length]=result;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['127'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['291']++;return ret.length?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['129'][0]++,ret):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['129'][1]++,this);};}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['123'][1]++;}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['292']++;NodeList.importMethod=function(host,name,altName){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['60']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['293']++;if(typeof name==='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['130'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['294']++;altName=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['131'][0]++,altName)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['131'][1]++,name);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['295']++;NodeList.addMethod(altName,host[name]);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['130'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['296']++;Y.Array.each(name,function(n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['61']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['297']++;NodeList.importMethod(host,n);});}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['298']++;NodeList._getTempNode=function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['62']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['299']++;var tmp=NodeList._tempNode;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['300']++;if(!tmp){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['132'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['301']++;tmp=Y.Node.create('
');__cov_LGqepiXuzGEZpz3IhlW0rQ.s['302']++;NodeList._tempNode=tmp;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['132'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['303']++;tmp._node=node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['304']++;tmp._stateProxy=node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['305']++;return tmp;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['306']++;Y.mix(NodeList.prototype,{_invoke:function(method,args,getter){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['63']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['307']++;var ret=getter?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['133'][0]++,[]):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['133'][1]++,this);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['308']++;this.each(function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['64']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['309']++;var val=node[method].apply(node,args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['310']++;if(getter){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['134'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['311']++;ret.push(val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['134'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['312']++;return ret;},item:function(index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['65']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['313']++;return Y.one(((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['135'][0]++,this._nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['135'][1]++,[]))[index]);},each:function(fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['66']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['314']++;var instance=this;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['315']++;Y.Array.each(this._nodes,function(node,index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['67']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['316']++;node=Y.one(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['317']++;return fn.call((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['136'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['136'][1]++,node),node,index,instance);});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['318']++;return instance;},batch:function(fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['68']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['319']++;var nodelist=this;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['320']++;Y.Array.each(this._nodes,function(node,index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['69']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['321']++;var instance=Y.Node._instances.get(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['322']++;if(!instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['137'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['323']++;instance=NodeList._getTempNode(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['137'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['324']++;return fn.call((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['138'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['138'][1]++,instance),instance,index,nodelist);});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['325']++;return nodelist;},some:function(fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['70']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['326']++;var instance=this;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['327']++;return Y.Array.some(this._nodes,function(node,index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['71']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['328']++;node=Y.one(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['329']++;context=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['139'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['139'][1]++,node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['330']++;return fn.call(context,node,index,instance);});},toFrag:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['72']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['331']++;return Y.one(Y.DOM._nl2frag(this._nodes));},indexOf:function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['73']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['332']++;return Y.Array.indexOf(this._nodes,Y.Node.getDOMNode(node));},filter:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['74']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['333']++;return Y.all(Y.Selector.filter(this._nodes,selector));},modulus:function(n,r){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['75']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['334']++;r=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['140'][0]++,r)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['140'][1]++,0);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['335']++;var nodes=[];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['336']++;NodeList.each(this,function(node,i){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['76']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['337']++;if(i%n===r){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['141'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['338']++;nodes.push(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['141'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['339']++;return Y.all(nodes);},odd:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['77']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['340']++;return this.modulus(2,1);},even:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['78']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['341']++;return this.modulus(2);},destructor:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['79']++;},refresh:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['80']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['342']++;var doc,nodes=this._nodes,query=this._query,root=this._queryRoot;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['343']++;if(query){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['142'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['344']++;if(!root){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['143'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['345']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['145'][0]++,nodes)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['145'][1]++,nodes[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['145'][2]++,nodes[0].ownerDocument)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['144'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['346']++;root=nodes[0].ownerDocument;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['144'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['143'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['347']++;this._nodes=Y.Selector.query(query,root);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['142'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['348']++;return this;},size:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['81']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['349']++;return this._nodes.length;},isEmpty:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['82']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['350']++;return this._nodes.length<1;},toString:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['83']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['351']++;var str='',errorMsg=this[UID]+': not bound to any nodes',nodes=this._nodes,node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['352']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['147'][0]++,nodes)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['147'][1]++,nodes[0])){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['146'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['353']++;node=nodes[0];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['354']++;str+=node[NODE_NAME];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['355']++;if(node.id){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['148'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['356']++;str+='#'+node.id;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['148'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['357']++;if(node.className){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['149'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['358']++;str+='.'+node.className.replace(' ','.');}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['149'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['359']++;if(nodes.length>1){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['150'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['360']++;str+='...['+nodes.length+' items]';}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['150'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['146'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['361']++;return(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['151'][0]++,str)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['151'][1]++,errorMsg);},getDOMNodes:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['84']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['362']++;return this._nodes;}},true);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['363']++;NodeList.importMethod(Y.Node.prototype,['destroy','empty','remove','set']);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['364']++;NodeList.prototype.get=function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['85']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['365']++;var ret=[],nodes=this._nodes,isNodeList=false,getTemp=NodeList._getTempNode,instance,val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['366']++;if(nodes[0]){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['152'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['367']++;instance=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['153'][0]++,Y.Node._instances.get(nodes[0]))||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['153'][1]++,getTemp(nodes[0]));__cov_LGqepiXuzGEZpz3IhlW0rQ.s['368']++;val=instance._get(attr);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['369']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['155'][0]++,val)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['155'][1]++,val.nodeType)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['154'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['370']++;isNodeList=true;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['154'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['152'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['371']++;Y.Array.each(nodes,function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['86']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['372']++;instance=Y.Node._instances.get(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['373']++;if(!instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['156'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['374']++;instance=getTemp(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['156'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['375']++;val=instance._get(attr);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['376']++;if(!isNodeList){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['157'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['377']++;val=Y.Node.scrubVal(val,instance);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['157'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['378']++;ret.push(val);});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['379']++;return isNodeList?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['158'][0]++,Y.all(ret)):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['158'][1]++,ret);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['380']++;Y.NodeList=NodeList;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['381']++;Y.all=function(nodes){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['87']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['382']++;return new NodeList(nodes);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['383']++;Y.Node.all=Y.all;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['384']++;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['385']++;Y.Object.each(ArrayMethods,function(returnNodeList,name){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['88']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['386']++;Y_NodeList.prototype[name]=function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['89']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['387']++;var args=[],i=0,arg,ret;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['388']++;while(typeof(arg=arguments[i++])!='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.s['389']++;args.push((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['159'][0]++,arg._node)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['159'][1]++,arg._nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['159'][2]++,arg));}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['390']++;ret=ArrayProto[name].apply(this._nodes,args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['391']++;if(returnNodeList){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['160'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['392']++;ret=Y.all(ret);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['160'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['393']++;ret=Y.Node.scrubVal(ret);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['394']++;return ret;};});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['395']++;Y.Array.each(['removeChild','hasChildNodes','cloneNode','hasAttribute','scrollIntoView','getElementsByTagName','focus','blur','submit','reset','select','createCaption'],function(method){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['90']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['396']++;Y.Node.prototype[method]=function(arg1,arg2,arg3){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['91']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['397']++;var ret=this.invoke(method,arg1,arg2,arg3);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['398']++;return ret;};});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['399']++;Y.Node.prototype.removeAttribute=function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['92']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['400']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['401']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['161'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['402']++;node.removeAttribute(attr,0);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['161'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['403']++;return this;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['404']++;Y.Node.importMethod(Y.DOM,['contains','setAttribute','getAttribute','wrap','unwrap','generateID']);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['405']++;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={},_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]++,Y_Node._instances.has(node))&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['6'][1]++,Y_Node._instances.get(node)._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(window.WeakMap){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['16'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['41']++;Y_Node.WeakMap=window.WeakMap;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['16'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['42']++;Y_Node.WeakMap=function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['7']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['43']++;this._map={};};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['44']++;Y_Node.WeakMap.prototype={has:function(k){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['8']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['45']++;return this._map[this._yuid(k)]?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['17'][0]++,true):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['17'][1]++,false);},get:function(k){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['9']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['46']++;return this._map[this._yuid(k)];},set:function(k,v){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['10']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['47']++;this._map[this._yuid(k)]=v;},'delete':function(k){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['11']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['48']++;delete this._map[this._yuid(k)];},_yuid:function(k){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['12']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['49']++;if(k._node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['18'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['50']++;k=k._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['18'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['51']++;return(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['20'][0]++,k.uniqueID)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['20'][1]++,k.nodeType!==9)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['19'][0]++,k.uniqueID):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['19'][1]++,k[UID]);}};}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['52']++;Y_Node._instances=new Y_Node.WeakMap();__cov_LGqepiXuzGEZpz3IhlW0rQ.s['53']++;Y_Node.getDOMNode=function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['13']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['54']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['21'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['55']++;return node.nodeType?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['22'][0]++,node):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['22'][1]++,(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['23'][0]++,node._node)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['23'][1]++,null));}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['21'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['56']++;return null;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['57']++;Y_Node.scrubVal=function(val,node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['14']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['58']++;if(val){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['24'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['59']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['26'][0]++,typeof val=='object')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['26'][1]++,typeof val=='function')){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['25'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['60']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['28'][0]++,NODE_TYPE in val)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['28'][1]++,Y_DOM.isWindow(val))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['27'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['61']++;val=Y.one(val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['27'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['62']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['30'][0]++,val.item)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['30'][1]++,!val._nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['30'][2]++,val[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['30'][3]++,val[0][NODE_TYPE])){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['29'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['63']++;val=Y.all(val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['29'][1]++;}}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['25'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['24'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['64']++;if(typeof val==='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['31'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['65']++;val=node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['31'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['66']++;if(val===null){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['32'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['67']++;val=null;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['32'][1]++;}}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['68']++;return val;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['69']++;Y_Node.addMethod=function(name,fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['15']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['70']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['34'][0]++,name)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['34'][1]++,fn)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['34'][2]++,typeof fn=='function')){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['33'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['71']++;Y_Node.prototype[name]=function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['16']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['72']++;var args=_slice.call(arguments),node=this,ret;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['73']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['36'][0]++,args[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['36'][1]++,args[0]._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['35'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['74']++;args[0]=args[0]._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['35'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['75']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['38'][0]++,args[1])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['38'][1]++,args[1]._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['37'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['76']++;args[1]=args[1]._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['37'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['77']++;args.unshift(node._node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['78']++;ret=fn.apply((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['39'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['39'][1]++,node),args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['79']++;if(ret){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['40'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['80']++;ret=Y_Node.scrubVal(ret,node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['40'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['81']++;(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['41'][0]++,typeof ret!='undefined')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['41'][1]++,ret=node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['82']++;return ret;};}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['33'][1]++;}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['83']++;Y_Node.importMethod=function(host,name,altName){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['17']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['84']++;if(typeof name=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['42'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['85']++;altName=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['43'][0]++,altName)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['43'][1]++,name);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['86']++;Y_Node.addMethod(altName,host[name],host);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['42'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['87']++;Y.Array.each(name,function(n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['18']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['88']++;Y_Node.importMethod(host,n);});}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['89']++;Y_Node.one=function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['19']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['90']++;var instance=null,cachedNode;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['91']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['44'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['92']++;if(typeof node=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['45'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['93']++;node=Y_Node._fromString(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['94']++;if(!node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['46'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['95']++;return null;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['46'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['45'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['96']++;if(node.getDOMNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['47'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['97']++;return node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['47'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['98']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['49'][0]++,node.nodeType)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['49'][1]++,Y.DOM.isWindow(node))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['48'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['99']++;instance=Y_Node._instances.get(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['100']++;cachedNode=instance?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['50'][0]++,instance._node):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['50'][1]++,null);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['101']++;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['102']++;instance=new Y_Node(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['103']++;if(node.nodeType!=11){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['53'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['104']++;Y_Node._instances.set(node,instance);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['53'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['51'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['48'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['44'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['105']++;return instance;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['106']++;Y_Node.DEFAULT_SETTER=function(name,val){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['20']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['107']++;var node=this._stateProxy,strPath;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['108']++;if(name.indexOf(DOT)>-1){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['54'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['109']++;strPath=name;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['110']++;name=name.split(DOT);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['111']++;Y.Object.setValue(node,name,val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['54'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['112']++;if(typeof node[name]!='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['55'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['113']++;node[name]=val;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['55'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['114']++;return val;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['115']++;Y_Node.DEFAULT_GETTER=function(name){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['21']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['116']++;var node=this._stateProxy,val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['117']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['57'][0]++,name.indexOf)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['57'][1]++,name.indexOf(DOT)>-1)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['56'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['118']++;val=Y.Object.getValue(node,name.split(DOT));}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['56'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['119']++;if(typeof node[name]!='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['58'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['120']++;val=node[name];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['58'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['121']++;return val;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['122']++;Y.mix(Y_Node.prototype,{DATA_PREFIX:'data-',toString:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['22']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['123']++;var str=this[UID]+': not bound to a node',node=this._node,attrs,id,className;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['124']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['59'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['125']++;attrs=node.attributes;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['126']++;id=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['61'][0]++,attrs)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['61'][1]++,attrs.id)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['60'][0]++,node.getAttribute('id')):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['60'][1]++,null);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['127']++;className=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['63'][0]++,attrs)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['63'][1]++,attrs.className)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['62'][0]++,node.getAttribute('className')):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['62'][1]++,null);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['128']++;str=node[NODE_NAME];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['129']++;if(id){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['64'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['130']++;str+='#'+id;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['64'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['131']++;if(className){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['65'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['132']++;str+='.'+className.replace(' ','.');}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['65'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['133']++;str+=' '+this[UID];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['59'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['134']++;return str;},get:function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['23']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['135']++;var val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['136']++;if(this._getAttr){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['66'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['137']++;val=this._getAttr(attr);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['66'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['138']++;val=this._get(attr);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['139']++;if(val){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['67'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['140']++;val=Y_Node.scrubVal(val,this);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['67'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['141']++;if(val===null){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['68'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['142']++;val=null;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['68'][1]++;}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['143']++;return val;},_get:function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['24']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['144']++;var attrConfig=Y_Node.ATTRS[attr],val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['145']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['70'][0]++,attrConfig)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['70'][1]++,attrConfig.getter)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['69'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['146']++;val=attrConfig.getter.call(this);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['69'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['147']++;if(Y_Node.re_aria.test(attr)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['71'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['148']++;val=this._node.getAttribute(attr,2);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['71'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['149']++;val=Y_Node.DEFAULT_GETTER.apply(this,arguments);}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['150']++;return val;},set:function(attr,val){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['25']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['151']++;var attrConfig=Y_Node.ATTRS[attr];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['152']++;if(this._setAttr){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['72'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['153']++;this._setAttr.apply(this,arguments);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['72'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['154']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['74'][0]++,attrConfig)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['74'][1]++,attrConfig.setter)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['73'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['155']++;attrConfig.setter.call(this,val,attr);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['73'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['156']++;if(Y_Node.re_aria.test(attr)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['75'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['157']++;this._node.setAttribute(attr,val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['75'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['158']++;Y_Node.DEFAULT_SETTER.apply(this,arguments);}}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['159']++;return this;},setAttrs:function(attrMap){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['26']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['160']++;if(this._setAttrs){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['76'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['161']++;this._setAttrs(attrMap);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['76'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['162']++;Y.Object.each(attrMap,function(v,n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['27']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['163']++;this.set(n,v);},this);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['164']++;return this;},getAttrs:function(attrs){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['28']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['165']++;var ret={};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['166']++;if(this._getAttrs){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['77'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['167']++;this._getAttrs(attrs);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['77'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['168']++;Y.Array.each(attrs,function(v,n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['29']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['169']++;ret[v]=this.get(v);},this);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['170']++;return ret;},compareTo:function(refNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['30']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['171']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['172']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['79'][0]++,refNode)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['79'][1]++,refNode._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['78'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['173']++;refNode=refNode._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['78'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['174']++;return node===refNode;},inDoc:function(doc){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['31']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['175']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['176']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['80'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['177']++;doc=doc?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['81'][0]++,(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['82'][0]++,doc._node)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['82'][1]++,doc)):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['81'][1]++,node[OWNER_DOCUMENT]);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['178']++;if(doc.documentElement){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['83'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['179']++;return Y_DOM.contains(doc.documentElement,node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['83'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['80'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['180']++;return false;},getById:function(id){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['32']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['181']++;var node=this._node,ret=Y_DOM.byId(id,node[OWNER_DOCUMENT]);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['182']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['85'][0]++,ret)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['85'][1]++,Y_DOM.contains(node,ret))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['84'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['183']++;ret=Y.one(ret);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['84'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['184']++;ret=null;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['185']++;return ret;},ancestor:function(fn,testSelf,stopFn){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['33']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['186']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['87'][0]++,arguments.length===2)&&((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['87'][1]++,typeof testSelf=='string')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['87'][2]++,typeof testSelf=='function'))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['86'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['187']++;stopFn=testSelf;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['86'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['188']++;return Y.one(Y_DOM.ancestor(this._node,_wrapFn(fn),testSelf,_wrapFn(stopFn)));},ancestors:function(fn,testSelf,stopFn){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['34']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['189']++;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['190']++;stopFn=testSelf;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['88'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['191']++;return Y.all(Y_DOM.ancestors(this._node,_wrapFn(fn),testSelf,_wrapFn(stopFn)));},previous:function(fn,all){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['35']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['192']++;return Y.one(Y_DOM.elementByAxis(this._node,'previousSibling',_wrapFn(fn),all));},next:function(fn,all){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['36']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['193']++;return Y.one(Y_DOM.elementByAxis(this._node,'nextSibling',_wrapFn(fn),all));},siblings:function(fn){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['37']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['194']++;return Y.all(Y_DOM.siblings(this._node,_wrapFn(fn)));},one:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['38']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['195']++;return Y.one(Y.Selector.query(selector,this._node,true));},all:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['39']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['196']++;var nodelist;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['197']++;if(this._node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['90'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['198']++;nodelist=Y.all(Y.Selector.query(selector,this._node));__cov_LGqepiXuzGEZpz3IhlW0rQ.s['199']++;nodelist._query=selector;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['200']++;nodelist._queryRoot=this._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['90'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['201']++;return(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['91'][0]++,nodelist)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['91'][1]++,Y.all([]));},test:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['40']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['202']++;return Y.Selector.test(this._node,selector);},remove:function(destroy){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['41']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['203']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['204']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['93'][0]++,node)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['93'][1]++,node.parentNode)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['92'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['205']++;node.parentNode.removeChild(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['92'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['206']++;if(destroy){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['94'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['207']++;this.destroy();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['94'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['208']++;return this;},replace:function(newNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['42']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['209']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['210']++;if(typeof newNode=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['95'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['211']++;newNode=Y_Node.create(newNode);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['95'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['212']++;node.parentNode.replaceChild(Y_Node.getDOMNode(newNode),node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['213']++;return this;},replaceChild:function(node,refNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['43']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['214']++;if(typeof node=='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['96'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['215']++;node=Y_DOM.create(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['96'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['216']++;return Y.one(this._node.replaceChild(Y_Node.getDOMNode(node),Y_Node.getDOMNode(refNode)));},destroy:function(recursive){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['44']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['217']++;var UID=Y.config.doc.uniqueID?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['97'][0]++,'uniqueID'):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['97'][1]++,'_yuid'),instance;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['218']++;this.purge();__cov_LGqepiXuzGEZpz3IhlW0rQ.s['219']++;if(this.unplug){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['98'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['220']++;this.unplug();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['98'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['221']++;this.clearData();__cov_LGqepiXuzGEZpz3IhlW0rQ.s['222']++;if(recursive){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['99'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['223']++;Y.NodeList.each(this.all('*'),function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['45']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['224']++;instance=Y_Node._instances.get(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['225']++;if(instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['100'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['226']++;instance.destroy();}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['100'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['227']++;Y.Event.purgeElement(node);}});}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['99'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['228']++;Y_Node._instances.delete(this._node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['229']++;this._node=null;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['230']++;this._stateProxy=null;},invoke:function(method,a,b,c,d,e){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['46']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['231']++;var node=this._node,ret;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['232']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['102'][0]++,a)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['102'][1]++,a._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['101'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['233']++;a=a._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['101'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['234']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['104'][0]++,b)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['104'][1]++,b._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['103'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['235']++;b=b._node;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['103'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['236']++;ret=node[method](a,b,c,d,e);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['237']++;return Y_Node.scrubVal(ret,this);},swap:Y.config.doc.documentElement.swapNode?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['105'][0]++,function(otherNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['47']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['238']++;this._node.swapNode(Y_Node.getDOMNode(otherNode));}):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['105'][1]++,function(otherNode){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['48']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['239']++;otherNode=Y_Node.getDOMNode(otherNode);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['240']++;var node=this._node,parent=otherNode.parentNode,nextSibling=otherNode.nextSibling;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['241']++;if(nextSibling===node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['106'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['242']++;parent.insertBefore(node,otherNode);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['106'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['243']++;if(otherNode===node.nextSibling){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['107'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['244']++;parent.insertBefore(otherNode,node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['107'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['245']++;node.parentNode.replaceChild(otherNode,node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['246']++;Y_DOM.addHTML(parent,node,nextSibling);}}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['247']++;return this;}),hasMethod:function(method){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['49']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['248']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['249']++;return!!((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['108'][0]++,node)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['108'][1]++,method in node)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['108'][2]++,typeof node[method]!='unknown')&&((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['108'][3]++,typeof node[method]=='function')||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['108'][4]++,String(node[method]).indexOf('function')===1)));},isFragment:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['50']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['250']++;return this.get('nodeType')===11;},empty:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['51']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['251']++;this.get('childNodes').remove().destroy(true);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['252']++;return this;},getDOMNode:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['52']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['253']++;return this._node;}},true);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['254']++;Y.Node=Y_Node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['255']++;Y.one=Y_Node.one;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['256']++;var NodeList=function(nodes){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['53']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['257']++;var tmp=[];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['258']++;if(nodes){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['109'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['259']++;if(typeof nodes==='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['110'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['260']++;this._query=nodes;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['261']++;nodes=Y.Selector.query(nodes);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['110'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['262']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['112'][0]++,nodes.nodeType)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['112'][1]++,Y_DOM.isWindow(nodes))){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['111'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['263']++;nodes=[nodes];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['111'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['264']++;if(nodes._node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['113'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['265']++;nodes=[nodes._node];}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['113'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['266']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['115'][0]++,nodes[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['115'][1]++,nodes[0]._node)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['114'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['267']++;Y.Array.each(nodes,function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['54']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['268']++;if(node._node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['116'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['269']++;tmp.push(node._node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['116'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['270']++;nodes=tmp;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['114'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['271']++;nodes=Y.Array(nodes,0,true);}}}}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['109'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['272']++;this._nodes=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['117'][0]++,nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['117'][1]++,[]);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['273']++;NodeList.NAME='NodeList';__cov_LGqepiXuzGEZpz3IhlW0rQ.s['274']++;NodeList.getDOMNodes=function(nodelist){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['55']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['275']++;return(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['119'][0]++,nodelist)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['119'][1]++,nodelist._nodes)?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['118'][0]++,nodelist._nodes):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['118'][1]++,nodelist);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['276']++;NodeList.each=function(instance,fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['56']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['277']++;var nodes=instance._nodes;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['278']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['121'][0]++,nodes)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['121'][1]++,nodes.length)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['120'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['279']++;Y.Array.each(nodes,fn,(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['122'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['122'][1]++,instance));}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['120'][1]++;}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['280']++;NodeList.addMethod=function(name,fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['57']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['281']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['124'][0]++,name)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['124'][1]++,fn)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['123'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['282']++;NodeList.prototype[name]=function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['58']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['283']++;var ret=[],args=arguments;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['284']++;Y.Array.each(this._nodes,function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['59']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['285']++;var instance=Y.Node._instances.get(node),ctx,result;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['286']++;if(!instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['125'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['287']++;instance=NodeList._getTempNode(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['125'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['288']++;ctx=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['126'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['126'][1]++,instance);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['289']++;result=fn.apply(ctx,args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['290']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['128'][0]++,result!==undefined)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['128'][1]++,result!==instance)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['127'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['291']++;ret[ret.length]=result;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['127'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['292']++;return ret.length?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['129'][0]++,ret):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['129'][1]++,this);};}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['123'][1]++;}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['293']++;NodeList.importMethod=function(host,name,altName){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['60']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['294']++;if(typeof name==='string'){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['130'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['295']++;altName=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['131'][0]++,altName)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['131'][1]++,name);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['296']++;NodeList.addMethod(altName,host[name]);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['130'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['297']++;Y.Array.each(name,function(n){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['61']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['298']++;NodeList.importMethod(host,n);});}};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['299']++;NodeList._getTempNode=function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['62']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['300']++;var tmp=NodeList._tempNode;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['301']++;if(!tmp){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['132'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['302']++;tmp=Y.Node.create('
');__cov_LGqepiXuzGEZpz3IhlW0rQ.s['303']++;NodeList._tempNode=tmp;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['132'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['304']++;tmp._node=node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['305']++;tmp._stateProxy=node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['306']++;return tmp;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['307']++;Y.mix(NodeList.prototype,{_invoke:function(method,args,getter){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['63']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['308']++;var ret=getter?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['133'][0]++,[]):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['133'][1]++,this);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['309']++;this.each(function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['64']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['310']++;var val=node[method].apply(node,args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['311']++;if(getter){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['134'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['312']++;ret.push(val);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['134'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['313']++;return ret;},item:function(index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['65']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['314']++;return Y.one(((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['135'][0]++,this._nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['135'][1]++,[]))[index]);},each:function(fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['66']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['315']++;var instance=this;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['316']++;Y.Array.each(this._nodes,function(node,index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['67']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['317']++;node=Y.one(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['318']++;return fn.call((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['136'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['136'][1]++,node),node,index,instance);});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['319']++;return instance;},batch:function(fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['68']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['320']++;var nodelist=this;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['321']++;Y.Array.each(this._nodes,function(node,index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['69']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['322']++;var instance=Y.Node._instances.get(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['323']++;if(!instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['137'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['324']++;instance=NodeList._getTempNode(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['137'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['325']++;return fn.call((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['138'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['138'][1]++,instance),instance,index,nodelist);});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['326']++;return nodelist;},some:function(fn,context){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['70']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['327']++;var instance=this;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['328']++;return Y.Array.some(this._nodes,function(node,index){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['71']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['329']++;node=Y.one(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['330']++;context=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['139'][0]++,context)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['139'][1]++,node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['331']++;return fn.call(context,node,index,instance);});},toFrag:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['72']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['332']++;return Y.one(Y.DOM._nl2frag(this._nodes));},indexOf:function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['73']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['333']++;return Y.Array.indexOf(this._nodes,Y.Node.getDOMNode(node));},filter:function(selector){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['74']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['334']++;return Y.all(Y.Selector.filter(this._nodes,selector));},modulus:function(n,r){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['75']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['335']++;r=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['140'][0]++,r)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['140'][1]++,0);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['336']++;var nodes=[];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['337']++;NodeList.each(this,function(node,i){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['76']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['338']++;if(i%n===r){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['141'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['339']++;nodes.push(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['141'][1]++;}});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['340']++;return Y.all(nodes);},odd:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['77']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['341']++;return this.modulus(2,1);},even:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['78']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['342']++;return this.modulus(2);},destructor:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['79']++;},refresh:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['80']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['343']++;var doc,nodes=this._nodes,query=this._query,root=this._queryRoot;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['344']++;if(query){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['142'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['345']++;if(!root){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['143'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['346']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['145'][0]++,nodes)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['145'][1]++,nodes[0])&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['145'][2]++,nodes[0].ownerDocument)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['144'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['347']++;root=nodes[0].ownerDocument;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['144'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['143'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['348']++;this._nodes=Y.Selector.query(query,root);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['142'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['349']++;return this;},size:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['81']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['350']++;return this._nodes.length;},isEmpty:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['82']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['351']++;return this._nodes.length<1;},toString:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['83']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['352']++;var str='',errorMsg=this[UID]+': not bound to any nodes',nodes=this._nodes,node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['353']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['147'][0]++,nodes)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['147'][1]++,nodes[0])){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['146'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['354']++;node=nodes[0];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['355']++;str+=node[NODE_NAME];__cov_LGqepiXuzGEZpz3IhlW0rQ.s['356']++;if(node.id){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['148'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['357']++;str+='#'+node.id;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['148'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['358']++;if(node.className){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['149'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['359']++;str+='.'+node.className.replace(' ','.');}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['149'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['360']++;if(nodes.length>1){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['150'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['361']++;str+='...['+nodes.length+' items]';}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['150'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['146'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['362']++;return(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['151'][0]++,str)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['151'][1]++,errorMsg);},getDOMNodes:function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['84']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['363']++;return this._nodes;}},true);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['364']++;NodeList.importMethod(Y.Node.prototype,['destroy','empty','remove','set']);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['365']++;NodeList.prototype.get=function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['85']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['366']++;var ret=[],nodes=this._nodes,isNodeList=false,getTemp=NodeList._getTempNode,instance,val;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['367']++;if(nodes[0]){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['152'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['368']++;instance=(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['153'][0]++,Y.Node._instances.get(nodes[0]))||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['153'][1]++,getTemp(nodes[0]));__cov_LGqepiXuzGEZpz3IhlW0rQ.s['369']++;val=instance._get(attr);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['370']++;if((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['155'][0]++,val)&&(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['155'][1]++,val.nodeType)){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['154'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['371']++;isNodeList=true;}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['154'][1]++;}}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['152'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['372']++;Y.Array.each(nodes,function(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['86']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['373']++;instance=Y.Node._instances.get(node);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['374']++;if(!instance){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['156'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['375']++;instance=getTemp(node);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['156'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['376']++;val=instance._get(attr);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['377']++;if(!isNodeList){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['157'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['378']++;val=Y.Node.scrubVal(val,instance);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['157'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['379']++;ret.push(val);});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['380']++;return isNodeList?(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['158'][0]++,Y.all(ret)):(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['158'][1]++,ret);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['381']++;Y.NodeList=NodeList;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['382']++;Y.all=function(nodes){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['87']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['383']++;return new NodeList(nodes);};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['384']++;Y.Node.all=Y.all;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['385']++;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['386']++;Y.Object.each(ArrayMethods,function(returnNodeList,name){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['88']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['387']++;Y_NodeList.prototype[name]=function(){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['89']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['388']++;var args=[],i=0,arg,ret;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['389']++;while(typeof(arg=arguments[i++])!='undefined'){__cov_LGqepiXuzGEZpz3IhlW0rQ.s['390']++;args.push((__cov_LGqepiXuzGEZpz3IhlW0rQ.b['159'][0]++,arg._node)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['159'][1]++,arg._nodes)||(__cov_LGqepiXuzGEZpz3IhlW0rQ.b['159'][2]++,arg));}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['391']++;ret=ArrayProto[name].apply(this._nodes,args);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['392']++;if(returnNodeList){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['160'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['393']++;ret=Y.all(ret);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['160'][1]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['394']++;ret=Y.Node.scrubVal(ret);}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['395']++;return ret;};});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['396']++;Y.Array.each(['removeChild','hasChildNodes','cloneNode','hasAttribute','scrollIntoView','getElementsByTagName','focus','blur','submit','reset','select','createCaption'],function(method){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['90']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['397']++;Y.Node.prototype[method]=function(arg1,arg2,arg3){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['91']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['398']++;var ret=this.invoke(method,arg1,arg2,arg3);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['399']++;return ret;};});__cov_LGqepiXuzGEZpz3IhlW0rQ.s['400']++;Y.Node.prototype.removeAttribute=function(attr){__cov_LGqepiXuzGEZpz3IhlW0rQ.f['92']++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['401']++;var node=this._node;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['402']++;if(node){__cov_LGqepiXuzGEZpz3IhlW0rQ.b['161'][0]++;__cov_LGqepiXuzGEZpz3IhlW0rQ.s['403']++;node.removeAttribute(attr,0);}else{__cov_LGqepiXuzGEZpz3IhlW0rQ.b['161'][1]++;}__cov_LGqepiXuzGEZpz3IhlW0rQ.s['404']++;return this;};__cov_LGqepiXuzGEZpz3IhlW0rQ.s['405']++;Y.Node.importMethod(Y.DOM,['contains','setAttribute','getAttribute','wrap','unwrap','generateID']);__cov_LGqepiXuzGEZpz3IhlW0rQ.s['406']++;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 6b6bec985e1..934d18d3c29 100644 --- a/build/node-core/node-core-debug.js +++ b/build/node-core/node-core-debug.js @@ -124,12 +124,16 @@ Y_Node.re_aria = /^(?:role$|aria-)/; Y_Node.SHOW_TRANSITION = 'fadeIn'; Y_Node.HIDE_TRANSITION = 'fadeOut'; -if (!window.WeakMap) +if (window.WeakMap) { - window.WeakMap = function() { + Y_Node.WeakMap = window.WeakMap; +} +else +{ + Y_Node.WeakMap = function() { this._map = {}; }; - window.WeakMap.prototype = { + Y_Node.WeakMap.prototype = { has: function(k) { return this._map[ this._yuid(k) ] ? true : false; }, @@ -157,7 +161,7 @@ if (!window.WeakMap) * @static * */ -Y_Node._instances = new WeakMap(); +Y_Node._instances = new Y_Node.WeakMap(); /** * Retrieves the DOM node bound to a Node instance diff --git a/build/node-core/node-core-min.js b/build/node-core/node-core-min.js index dc067720feb..cb8c3b7dd60 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];c._instances.has(t)&&c._instances.get(t)._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",window.WeakMap||(window.WeakMap=function(){this._map={}},window.WeakMap.prototype={has:function(e){return this._map[this._yuid(e)]?!0:!1},get:function(e){return this._map[this._yuid(e)]},set:function(e,t){this._map[this._yuid(e)]=t},"delete":function(e){delete this._map[this._yuid(e)]},_yuid:function(e){return e._node&&(e=e._node),e.uniqueID&&e.nodeType!==9?e.uniqueID:e[u]}}),c._instances=new WeakMap,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;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)){n=c._instances.get(t),r=n?n._node:null;if(!n||r&&t!==r)n=new c(t),t.nodeType!=11&&c._instances.set(t,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.get(t),r?r.destroy():e.Event.purgeElement(t)}),c._instances.delete(this._node),this._node=null,this._stateProxy=null},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=e.Node._instances.get(s),u,a;o||(o=p._getTempNode(s)),u=r||o,a=n.apply(u,i),a!==undefined&&a!==o&&(t[t.length]=a)}),t.length?t:this})},p.importMethod=function(t,n,r){typeof n=="string"?(r=r||n,p.addMethod(r,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.get(i);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.get(r[0])||s(r[0]),u=o._get(t),u&&u.nodeType&&(i=!0)),e.Array.each(r,function(r){o=e.Node._instances.get(r),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=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];c._instances.has(t)&&c._instances.get(t)._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",window.WeakMap?c.WeakMap=window.WeakMap:(c.WeakMap=function(){this._map={}},c.WeakMap.prototype={has:function(e){return this._map[this._yuid(e)]?!0:!1},get:function(e){return this._map[this._yuid(e)]},set:function(e,t){this._map[this._yuid(e)]=t},"delete":function(e){delete this._map[this._yuid(e)]},_yuid:function(e){return e._node&&(e=e._node),e.uniqueID&&e.nodeType!==9?e.uniqueID:e[u]}}),c._instances=new c.WeakMap,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;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)){n=c._instances.get(t),r=n?n._node:null;if(!n||r&&t!==r)n=new c(t),t.nodeType!=11&&c._instances.set(t,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.get(t),r?r.destroy():e.Event.purgeElement(t)}),c._instances.delete(this._node),this._node=null,this._stateProxy=null},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=e.Node._instances.get(s),u,a;o||(o=p._getTempNode(s)),u=r||o,a=n.apply(u,i),a!==undefined&&a!==o&&(t[t.length]=a)}),t.length?t:this})},p.importMethod=function(t,n,r){typeof n=="string"?(r=r||n,p.addMethod(r,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.get(i);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.get(r[0])||s(r[0]),u=o._get(t),u&&u.nodeType&&(i=!0)),e.Array.each(r,function(r){o=e.Node._instances.get(r),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"]}); diff --git a/build/node-core/node-core.js b/build/node-core/node-core.js index 5f487fe6491..69062f8afbb 100644 --- a/build/node-core/node-core.js +++ b/build/node-core/node-core.js @@ -124,12 +124,16 @@ Y_Node.re_aria = /^(?:role$|aria-)/; Y_Node.SHOW_TRANSITION = 'fadeIn'; Y_Node.HIDE_TRANSITION = 'fadeOut'; -if (!window.WeakMap) +if (window.WeakMap) { - window.WeakMap = function() { + Y_Node.WeakMap = window.WeakMap; +} +else +{ + Y_Node.WeakMap = function() { this._map = {}; }; - window.WeakMap.prototype = { + Y_Node.WeakMap.prototype = { has: function(k) { return this._map[ this._yuid(k) ] ? true : false; }, @@ -157,7 +161,7 @@ if (!window.WeakMap) * @static * */ -Y_Node._instances = new WeakMap(); +Y_Node._instances = new Y_Node.WeakMap(); /** * Retrieves the DOM node bound to a Node instance diff --git a/build/view-node-map/view-node-map-coverage.js b/build/view-node-map/view-node-map-coverage.js index 6a475b1f139..e573c9ffa7d 100644 --- a/build/view-node-map/view-node-map-coverage.js +++ b/build/view-node-map/view-node-map-coverage.js @@ -1,6 +1,6 @@ if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/view-node-map/view-node-map.js']) { - __coverage__['build/view-node-map/view-node-map.js'] = {"path":"build/view-node-map/view-node-map.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},"b":{"1":[0,0],"2":[0,0],"3":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":25},"end":{"line":1,"column":44}}},"2":{"name":"NodeMap","line":29,"loc":{"start":{"line":29,"column":0},"end":{"line":29,"column":19}}},"3":{"name":"(anonymous_3)","line":54,"loc":{"start":{"line":54,"column":20},"end":{"line":54,"column":36}}},"4":{"name":"(anonymous_4)","line":57,"loc":{"start":{"line":57,"column":25},"end":{"line":57,"column":45}}},"5":{"name":"(anonymous_5)","line":68,"loc":{"start":{"line":68,"column":17},"end":{"line":68,"column":29}}},"6":{"name":"(anonymous_6)","line":72,"loc":{"start":{"line":72,"column":16},"end":{"line":72,"column":28}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":80,"column":40}},"2":{"start":{"line":13,"column":0},"end":{"line":14,"column":30}},"3":{"start":{"line":29,"column":0},"end":{"line":29,"column":21}},"4":{"start":{"line":34,"column":0},"end":{"line":34,"column":50}},"5":{"start":{"line":35,"column":0},"end":{"line":35,"column":38}},"6":{"start":{"line":54,"column":0},"end":{"line":62,"column":2}},"7":{"start":{"line":55,"column":4},"end":{"line":55,"column":13}},"8":{"start":{"line":57,"column":4},"end":{"line":59,"column":13}},"9":{"start":{"line":58,"column":8},"end":{"line":58,"column":57}},"10":{"start":{"line":61,"column":4},"end":{"line":61,"column":24}},"11":{"start":{"line":65,"column":0},"end":{"line":65,"column":31}},"12":{"start":{"line":67,"column":0},"end":{"line":75,"column":2}},"13":{"start":{"line":69,"column":8},"end":{"line":69,"column":51}},"14":{"start":{"line":73,"column":8},"end":{"line":73,"column":48}},"15":{"start":{"line":77,"column":0},"end":{"line":77,"column":25}}},"branchMap":{"1":{"line":34,"type":"binary-expr","locations":[{"start":{"line":34,"column":0},"end":{"line":34,"column":19}},{"start":{"line":34,"column":24},"end":{"line":34,"column":48}}]},"2":{"line":58,"type":"binary-expr","locations":[{"start":{"line":58,"column":16},"end":{"line":58,"column":46}},{"start":{"line":58,"column":51},"end":{"line":58,"column":56}}]},"3":{"line":61,"type":"binary-expr","locations":[{"start":{"line":61,"column":11},"end":{"line":61,"column":15}},{"start":{"line":61,"column":19},"end":{"line":61,"column":23}}]}},"code":["(function () { YUI.add('view-node-map', function (Y, NAME) {","","/**","View extension that adds a static `getByNode()` method that returns the nearest","View instance associated with the given Node (similar to Widget's `getByNode()`","method).","","@module app","@submodule view-node-map","@since 3.5.0","**/","","var buildCfg = Y.namespace('View._buildCfg'),"," instances = new WeakMap();","","/**","View extension that adds a static `getByNode()` method that returns the nearest","View instance associated with the given Node (similar to Widget's `getByNode()`","method).","","Note that it's important to call `destroy()` on a View instance using this","extension when you plan to stop using it. This ensures that all internal","references to that View are cleared to prevent memory leaks.","","@class View.NodeMap","@extensionfor View","@since 3.5.0","**/","function NodeMap() {}","","// Tells Base.create() to mix the static getByNode method into built classes.","// We're cheating and modifying Y.View here, because right now there's no better","// way to do it.","buildCfg.aggregates || (buildCfg.aggregates = []);","buildCfg.aggregates.push('getByNode');","","/**","Returns the nearest View instance associated with the given Node. The Node may","be a View container or any child of a View container.","","Note that only instances of Views that have the Y.View.NodeMap extension mixed","in will be returned. The base View class doesn't provide this functionality by","default due to the additional memory management overhead involved in maintaining","a mapping of Nodes to View instances.","","@method getByNode","@param {Node|HTMLElement|String} node Node instance, selector string, or"," HTMLElement.","@return {View} Closest View instance associated with the given Node, or `null`"," if no associated View instance was found.","@static","@since 3.5.0","**/","NodeMap.getByNode = function (node) {"," var view;",""," Y.one(node).ancestor(function (ancestor) {"," return (view = instances.get(ancestor)) || false;"," }, true);",""," return view || null;","};","","// To make this testable.","NodeMap._instances = instances;","","NodeMap.prototype = {"," initializer: function () {"," instances.set(this.get('container'), this);"," },",""," destructor: function () {"," instances.delete(this.get('container'));"," }","};","","Y.View.NodeMap = NodeMap;","","","}, '@VERSION@', {\"requires\": [\"view\"]});","","}());"]}; + __coverage__['build/view-node-map/view-node-map.js'] = {"path":"build/view-node-map/view-node-map.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},"b":{"1":[0,0],"2":[0,0],"3":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":25},"end":{"line":1,"column":44}}},"2":{"name":"NodeMap","line":29,"loc":{"start":{"line":29,"column":0},"end":{"line":29,"column":19}}},"3":{"name":"(anonymous_3)","line":54,"loc":{"start":{"line":54,"column":20},"end":{"line":54,"column":36}}},"4":{"name":"(anonymous_4)","line":57,"loc":{"start":{"line":57,"column":25},"end":{"line":57,"column":45}}},"5":{"name":"(anonymous_5)","line":68,"loc":{"start":{"line":68,"column":17},"end":{"line":68,"column":29}}},"6":{"name":"(anonymous_6)","line":72,"loc":{"start":{"line":72,"column":16},"end":{"line":72,"column":28}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":80,"column":40}},"2":{"start":{"line":13,"column":0},"end":{"line":14,"column":37}},"3":{"start":{"line":29,"column":0},"end":{"line":29,"column":21}},"4":{"start":{"line":34,"column":0},"end":{"line":34,"column":50}},"5":{"start":{"line":35,"column":0},"end":{"line":35,"column":38}},"6":{"start":{"line":54,"column":0},"end":{"line":62,"column":2}},"7":{"start":{"line":55,"column":4},"end":{"line":55,"column":13}},"8":{"start":{"line":57,"column":4},"end":{"line":59,"column":13}},"9":{"start":{"line":58,"column":8},"end":{"line":58,"column":57}},"10":{"start":{"line":61,"column":4},"end":{"line":61,"column":24}},"11":{"start":{"line":65,"column":0},"end":{"line":65,"column":31}},"12":{"start":{"line":67,"column":0},"end":{"line":75,"column":2}},"13":{"start":{"line":69,"column":8},"end":{"line":69,"column":51}},"14":{"start":{"line":73,"column":8},"end":{"line":73,"column":48}},"15":{"start":{"line":77,"column":0},"end":{"line":77,"column":25}}},"branchMap":{"1":{"line":34,"type":"binary-expr","locations":[{"start":{"line":34,"column":0},"end":{"line":34,"column":19}},{"start":{"line":34,"column":24},"end":{"line":34,"column":48}}]},"2":{"line":58,"type":"binary-expr","locations":[{"start":{"line":58,"column":16},"end":{"line":58,"column":46}},{"start":{"line":58,"column":51},"end":{"line":58,"column":56}}]},"3":{"line":61,"type":"binary-expr","locations":[{"start":{"line":61,"column":11},"end":{"line":61,"column":15}},{"start":{"line":61,"column":19},"end":{"line":61,"column":23}}]}},"code":["(function () { YUI.add('view-node-map', function (Y, NAME) {","","/**","View extension that adds a static `getByNode()` method that returns the nearest","View instance associated with the given Node (similar to Widget's `getByNode()`","method).","","@module app","@submodule view-node-map","@since 3.5.0","**/","","var buildCfg = Y.namespace('View._buildCfg'),"," instances = new Y.Node.WeakMap();","","/**","View extension that adds a static `getByNode()` method that returns the nearest","View instance associated with the given Node (similar to Widget's `getByNode()`","method).","","Note that it's important to call `destroy()` on a View instance using this","extension when you plan to stop using it. This ensures that all internal","references to that View are cleared to prevent memory leaks.","","@class View.NodeMap","@extensionfor View","@since 3.5.0","**/","function NodeMap() {}","","// Tells Base.create() to mix the static getByNode method into built classes.","// We're cheating and modifying Y.View here, because right now there's no better","// way to do it.","buildCfg.aggregates || (buildCfg.aggregates = []);","buildCfg.aggregates.push('getByNode');","","/**","Returns the nearest View instance associated with the given Node. The Node may","be a View container or any child of a View container.","","Note that only instances of Views that have the Y.View.NodeMap extension mixed","in will be returned. The base View class doesn't provide this functionality by","default due to the additional memory management overhead involved in maintaining","a mapping of Nodes to View instances.","","@method getByNode","@param {Node|HTMLElement|String} node Node instance, selector string, or"," HTMLElement.","@return {View} Closest View instance associated with the given Node, or `null`"," if no associated View instance was found.","@static","@since 3.5.0","**/","NodeMap.getByNode = function (node) {"," var view;",""," Y.one(node).ancestor(function (ancestor) {"," return (view = instances.get(ancestor)) || false;"," }, true);",""," return view || null;","};","","// To make this testable.","NodeMap._instances = instances;","","NodeMap.prototype = {"," initializer: function () {"," instances.set(this.get('container'), this);"," },",""," destructor: function () {"," instances.delete(this.get('container'));"," }","};","","Y.View.NodeMap = NodeMap;","","","}, '@VERSION@', {\"requires\": [\"view\"]});","","}());"]}; } var __cov_dcBad38U5f4bqwU1QIM7dA = __coverage__['build/view-node-map/view-node-map.js']; -__cov_dcBad38U5f4bqwU1QIM7dA.s['1']++;YUI.add('view-node-map',function(Y,NAME){__cov_dcBad38U5f4bqwU1QIM7dA.f['1']++;__cov_dcBad38U5f4bqwU1QIM7dA.s['2']++;var buildCfg=Y.namespace('View._buildCfg'),instances=new WeakMap();__cov_dcBad38U5f4bqwU1QIM7dA.s['3']++;function NodeMap(){__cov_dcBad38U5f4bqwU1QIM7dA.f['2']++;}__cov_dcBad38U5f4bqwU1QIM7dA.s['4']++;(__cov_dcBad38U5f4bqwU1QIM7dA.b['1'][0]++,buildCfg.aggregates)||(__cov_dcBad38U5f4bqwU1QIM7dA.b['1'][1]++,buildCfg.aggregates=[]);__cov_dcBad38U5f4bqwU1QIM7dA.s['5']++;buildCfg.aggregates.push('getByNode');__cov_dcBad38U5f4bqwU1QIM7dA.s['6']++;NodeMap.getByNode=function(node){__cov_dcBad38U5f4bqwU1QIM7dA.f['3']++;__cov_dcBad38U5f4bqwU1QIM7dA.s['7']++;var view;__cov_dcBad38U5f4bqwU1QIM7dA.s['8']++;Y.one(node).ancestor(function(ancestor){__cov_dcBad38U5f4bqwU1QIM7dA.f['4']++;__cov_dcBad38U5f4bqwU1QIM7dA.s['9']++;return(__cov_dcBad38U5f4bqwU1QIM7dA.b['2'][0]++,view=instances.get(ancestor))||(__cov_dcBad38U5f4bqwU1QIM7dA.b['2'][1]++,false);},true);__cov_dcBad38U5f4bqwU1QIM7dA.s['10']++;return(__cov_dcBad38U5f4bqwU1QIM7dA.b['3'][0]++,view)||(__cov_dcBad38U5f4bqwU1QIM7dA.b['3'][1]++,null);};__cov_dcBad38U5f4bqwU1QIM7dA.s['11']++;NodeMap._instances=instances;__cov_dcBad38U5f4bqwU1QIM7dA.s['12']++;NodeMap.prototype={initializer:function(){__cov_dcBad38U5f4bqwU1QIM7dA.f['5']++;__cov_dcBad38U5f4bqwU1QIM7dA.s['13']++;instances.set(this.get('container'),this);},destructor:function(){__cov_dcBad38U5f4bqwU1QIM7dA.f['6']++;__cov_dcBad38U5f4bqwU1QIM7dA.s['14']++;instances.delete(this.get('container'));}};__cov_dcBad38U5f4bqwU1QIM7dA.s['15']++;Y.View.NodeMap=NodeMap;},'@VERSION@',{'requires':['view']}); +__cov_dcBad38U5f4bqwU1QIM7dA.s['1']++;YUI.add('view-node-map',function(Y,NAME){__cov_dcBad38U5f4bqwU1QIM7dA.f['1']++;__cov_dcBad38U5f4bqwU1QIM7dA.s['2']++;var buildCfg=Y.namespace('View._buildCfg'),instances=new Y.Node.WeakMap();__cov_dcBad38U5f4bqwU1QIM7dA.s['3']++;function NodeMap(){__cov_dcBad38U5f4bqwU1QIM7dA.f['2']++;}__cov_dcBad38U5f4bqwU1QIM7dA.s['4']++;(__cov_dcBad38U5f4bqwU1QIM7dA.b['1'][0]++,buildCfg.aggregates)||(__cov_dcBad38U5f4bqwU1QIM7dA.b['1'][1]++,buildCfg.aggregates=[]);__cov_dcBad38U5f4bqwU1QIM7dA.s['5']++;buildCfg.aggregates.push('getByNode');__cov_dcBad38U5f4bqwU1QIM7dA.s['6']++;NodeMap.getByNode=function(node){__cov_dcBad38U5f4bqwU1QIM7dA.f['3']++;__cov_dcBad38U5f4bqwU1QIM7dA.s['7']++;var view;__cov_dcBad38U5f4bqwU1QIM7dA.s['8']++;Y.one(node).ancestor(function(ancestor){__cov_dcBad38U5f4bqwU1QIM7dA.f['4']++;__cov_dcBad38U5f4bqwU1QIM7dA.s['9']++;return(__cov_dcBad38U5f4bqwU1QIM7dA.b['2'][0]++,view=instances.get(ancestor))||(__cov_dcBad38U5f4bqwU1QIM7dA.b['2'][1]++,false);},true);__cov_dcBad38U5f4bqwU1QIM7dA.s['10']++;return(__cov_dcBad38U5f4bqwU1QIM7dA.b['3'][0]++,view)||(__cov_dcBad38U5f4bqwU1QIM7dA.b['3'][1]++,null);};__cov_dcBad38U5f4bqwU1QIM7dA.s['11']++;NodeMap._instances=instances;__cov_dcBad38U5f4bqwU1QIM7dA.s['12']++;NodeMap.prototype={initializer:function(){__cov_dcBad38U5f4bqwU1QIM7dA.f['5']++;__cov_dcBad38U5f4bqwU1QIM7dA.s['13']++;instances.set(this.get('container'),this);},destructor:function(){__cov_dcBad38U5f4bqwU1QIM7dA.f['6']++;__cov_dcBad38U5f4bqwU1QIM7dA.s['14']++;instances.delete(this.get('container'));}};__cov_dcBad38U5f4bqwU1QIM7dA.s['15']++;Y.View.NodeMap=NodeMap;},'@VERSION@',{'requires':['view']}); diff --git a/build/view-node-map/view-node-map-debug.js b/build/view-node-map/view-node-map-debug.js index bc25533313b..47be6c92273 100644 --- a/build/view-node-map/view-node-map-debug.js +++ b/build/view-node-map/view-node-map-debug.js @@ -11,7 +11,7 @@ method). **/ var buildCfg = Y.namespace('View._buildCfg'), - instances = new WeakMap(); + instances = new Y.Node.WeakMap(); /** View extension that adds a static `getByNode()` method that returns the nearest diff --git a/build/view-node-map/view-node-map-min.js b/build/view-node-map/view-node-map-min.js index bea30917538..772618c00cb 100644 --- a/build/view-node-map/view-node-map-min.js +++ b/build/view-node-map/view-node-map-min.js @@ -1 +1 @@ -YUI.add("view-node-map",function(e,t){function i(){}var n=e.namespace("View._buildCfg"),r=new WeakMap;n.aggregates||(n.aggregates=[]),n.aggregates.push("getByNode"),i.getByNode=function(t){var n;return e.one(t).ancestor(function(e){return(n=r.get(e))||!1},!0),n||null},i._instances=r,i.prototype={initializer:function(){r.set(this.get("container"),this)},destructor:function(){r.delete(this.get("container"))}},e.View.NodeMap=i},"@VERSION@",{requires:["view"]}); +YUI.add("view-node-map",function(e,t){function i(){}var n=e.namespace("View._buildCfg"),r=new e.Node.WeakMap;n.aggregates||(n.aggregates=[]),n.aggregates.push("getByNode"),i.getByNode=function(t){var n;return e.one(t).ancestor(function(e){return(n=r.get(e))||!1},!0),n||null},i._instances=r,i.prototype={initializer:function(){r.set(this.get("container"),this)},destructor:function(){r.delete(this.get("container"))}},e.View.NodeMap=i},"@VERSION@",{requires:["view"]}); diff --git a/build/view-node-map/view-node-map.js b/build/view-node-map/view-node-map.js index bc25533313b..47be6c92273 100644 --- a/build/view-node-map/view-node-map.js +++ b/build/view-node-map/view-node-map.js @@ -11,7 +11,7 @@ method). **/ var buildCfg = Y.namespace('View._buildCfg'), - instances = new WeakMap(); + instances = new Y.Node.WeakMap(); /** View extension that adds a static `getByNode()` method that returns the nearest diff --git a/build/widget-base/widget-base-coverage.js b/build/widget-base/widget-base-coverage.js index 94cd7ef4d11..f4f09db2b88 100644 --- a/build/widget-base/widget-base-coverage.js +++ b/build/widget-base/widget-base-coverage.js @@ -1,6 +1,6 @@ if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/widget-base/widget-base.js']) { - __coverage__['build/widget-base/widget-base.js'] = {"path":"build/widget-base/widget-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,"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},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0,0,0],"20":[0,0],"21":[0,0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0,0],"26":[0,0],"27":[0,0],"28":[0,0],"29":[0,0],"30":[0,0],"31":[0,0],"32":[0,0],"33":[0,0],"34":[0,0],"35":[0,0],"36":[0,0],"37":[0,0],"38":[0,0],"39":[0,0],"40":[0,0],"41":[0,0],"42":[0,0],"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],"54":[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},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":23},"end":{"line":1,"column":42}}},"2":{"name":"(anonymous_2)","line":24,"loc":{"start":{"line":24,"column":29},"end":{"line":24,"column":43}}},"3":{"name":"(anonymous_3)","line":56,"loc":{"start":{"line":56,"column":15},"end":{"line":56,"column":26}}},"4":{"name":"Widget","line":87,"loc":{"start":{"line":87,"column":0},"end":{"line":87,"column":24}}},"5":{"name":"(anonymous_5)","line":323,"loc":{"start":{"line":323,"column":22},"end":{"line":323,"column":33}}},"6":{"name":"(anonymous_6)","line":342,"loc":{"start":{"line":342,"column":19},"end":{"line":342,"column":34}}},"7":{"name":"(anonymous_7)","line":377,"loc":{"start":{"line":377,"column":18},"end":{"line":377,"column":30}}},"8":{"name":"(anonymous_8)","line":389,"loc":{"start":{"line":389,"column":17},"end":{"line":389,"column":34}}},"9":{"name":"(anonymous_9)","line":419,"loc":{"start":{"line":419,"column":19},"end":{"line":419,"column":34}}},"10":{"name":"(anonymous_10)","line":431,"loc":{"start":{"line":431,"column":16},"end":{"line":431,"column":27}}},"11":{"name":"(anonymous_11)","line":462,"loc":{"start":{"line":462,"column":13},"end":{"line":462,"column":39}}},"12":{"name":"(anonymous_12)","line":474,"loc":{"start":{"line":474,"column":18},"end":{"line":474,"column":29}}},"13":{"name":"(anonymous_13)","line":530,"loc":{"start":{"line":530,"column":12},"end":{"line":530,"column":33}}},"14":{"name":"(anonymous_14)","line":569,"loc":{"start":{"line":569,"column":19},"end":{"line":569,"column":31}}},"15":{"name":"(anonymous_15)","line":587,"loc":{"start":{"line":587,"column":14},"end":{"line":587,"column":25}}},"16":{"name":"(anonymous_16)","line":640,"loc":{"start":{"line":640,"column":10},"end":{"line":640,"column":21}}},"17":{"name":"(anonymous_17)","line":649,"loc":{"start":{"line":649,"column":10},"end":{"line":649,"column":21}}},"18":{"name":"(anonymous_18)","line":659,"loc":{"start":{"line":659,"column":11},"end":{"line":659,"column":23}}},"19":{"name":"(anonymous_19)","line":669,"loc":{"start":{"line":669,"column":10},"end":{"line":669,"column":22}}},"20":{"name":"(anonymous_20)","line":678,"loc":{"start":{"line":678,"column":12},"end":{"line":678,"column":23}}},"21":{"name":"(anonymous_21)","line":687,"loc":{"start":{"line":687,"column":13},"end":{"line":687,"column":24}}},"22":{"name":"(anonymous_22)","line":696,"loc":{"start":{"line":696,"column":16},"end":{"line":696,"column":33}}},"23":{"name":"(anonymous_23)","line":712,"loc":{"start":{"line":712,"column":16},"end":{"line":712,"column":37}}},"24":{"name":"(anonymous_24)","line":754,"loc":{"start":{"line":754,"column":12},"end":{"line":754,"column":27}}},"25":{"name":"(anonymous_25)","line":766,"loc":{"start":{"line":766,"column":12},"end":{"line":766,"column":27}}},"26":{"name":"(anonymous_26)","line":782,"loc":{"start":{"line":782,"column":17},"end":{"line":782,"column":28}}},"27":{"name":"(anonymous_27)","line":798,"loc":{"start":{"line":798,"column":17},"end":{"line":798,"column":32}}},"28":{"name":"(anonymous_28)","line":815,"loc":{"start":{"line":815,"column":14},"end":{"line":815,"column":55}}},"29":{"name":"(anonymous_29)","line":842,"loc":{"start":{"line":842,"column":15},"end":{"line":842,"column":26}}},"30":{"name":"(anonymous_30)","line":853,"loc":{"start":{"line":853,"column":27},"end":{"line":853,"column":38}}},"31":{"name":"(anonymous_31)","line":878,"loc":{"start":{"line":878,"column":30},"end":{"line":878,"column":42}}},"32":{"name":"(anonymous_32)","line":898,"loc":{"start":{"line":898,"column":13},"end":{"line":898,"column":24}}},"33":{"name":"(anonymous_33)","line":907,"loc":{"start":{"line":907,"column":16},"end":{"line":907,"column":38}}},"34":{"name":"(anonymous_34)","line":917,"loc":{"start":{"line":917,"column":15},"end":{"line":917,"column":26}}},"35":{"name":"(anonymous_35)","line":946,"loc":{"start":{"line":946,"column":17},"end":{"line":946,"column":39}}},"36":{"name":"(anonymous_36)","line":979,"loc":{"start":{"line":979,"column":13},"end":{"line":979,"column":24}}},"37":{"name":"(anonymous_37)","line":990,"loc":{"start":{"line":990,"column":18},"end":{"line":990,"column":32}}},"38":{"name":"(anonymous_38)","line":1002,"loc":{"start":{"line":1002,"column":17},"end":{"line":1002,"column":31}}},"39":{"name":"(anonymous_39)","line":1012,"loc":{"start":{"line":1012,"column":15},"end":{"line":1012,"column":40}}},"40":{"name":"(anonymous_40)","line":1023,"loc":{"start":{"line":1023,"column":19},"end":{"line":1023,"column":33}}},"41":{"name":"(anonymous_41)","line":1034,"loc":{"start":{"line":1034,"column":20},"end":{"line":1034,"column":34}}},"42":{"name":"(anonymous_42)","line":1047,"loc":{"start":{"line":1047,"column":19},"end":{"line":1047,"column":38}}},"43":{"name":"(anonymous_43)","line":1067,"loc":{"start":{"line":1067,"column":20},"end":{"line":1067,"column":36}}},"44":{"name":"(anonymous_44)","line":1084,"loc":{"start":{"line":1084,"column":21},"end":{"line":1084,"column":36}}},"45":{"name":"(anonymous_45)","line":1097,"loc":{"start":{"line":1097,"column":17},"end":{"line":1097,"column":32}}},"46":{"name":"(anonymous_46)","line":1122,"loc":{"start":{"line":1122,"column":14},"end":{"line":1122,"column":25}}},"47":{"name":"(anonymous_47)","line":1166,"loc":{"start":{"line":1166,"column":12},"end":{"line":1166,"column":23}}},"48":{"name":"(anonymous_48)","line":1175,"loc":{"start":{"line":1175,"column":21},"end":{"line":1175,"column":41}}},"49":{"name":"(anonymous_49)","line":1186,"loc":{"start":{"line":1186,"column":18},"end":{"line":1186,"column":34}}},"50":{"name":"(anonymous_50)","line":1202,"loc":{"start":{"line":1202,"column":18},"end":{"line":1202,"column":34}}},"51":{"name":"(anonymous_51)","line":1215,"loc":{"start":{"line":1215,"column":17},"end":{"line":1215,"column":29}}},"52":{"name":"(anonymous_52)","line":1230,"loc":{"start":{"line":1230,"column":17},"end":{"line":1230,"column":35}}},"53":{"name":"(anonymous_53)","line":1242,"loc":{"start":{"line":1242,"column":16},"end":{"line":1242,"column":30}}},"54":{"name":"(anonymous_54)","line":1254,"loc":{"start":{"line":1254,"column":17},"end":{"line":1254,"column":28}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1285,"column":3}},"2":{"start":{"line":16,"column":0},"end":{"line":68,"column":31}},"3":{"start":{"line":25,"column":8},"end":{"line":25,"column":68}},"4":{"start":{"line":87,"column":0},"end":{"line":112,"column":1}},"5":{"start":{"line":90,"column":4},"end":{"line":93,"column":41}},"6":{"start":{"line":95,"column":4},"end":{"line":95,"column":22}},"7":{"start":{"line":96,"column":4},"end":{"line":96,"column":96}},"8":{"start":{"line":99,"column":4},"end":{"line":99,"column":26}},"9":{"start":{"line":101,"column":4},"end":{"line":101,"column":55}},"10":{"start":{"line":103,"column":4},"end":{"line":103,"column":32}},"11":{"start":{"line":105,"column":4},"end":{"line":111,"column":5}},"12":{"start":{"line":107,"column":8},"end":{"line":109,"column":9}},"13":{"start":{"line":108,"column":12},"end":{"line":108,"column":32}},"14":{"start":{"line":110,"column":8},"end":{"line":110,"column":34}},"15":{"start":{"line":125,"column":0},"end":{"line":125,"column":23}},"16":{"start":{"line":136,"column":0},"end":{"line":136,"column":26}},"17":{"start":{"line":146,"column":0},"end":{"line":146,"column":21}},"18":{"start":{"line":157,"column":0},"end":{"line":160,"column":2}},"19":{"start":{"line":171,"column":0},"end":{"line":174,"column":2}},"20":{"start":{"line":184,"column":0},"end":{"line":188,"column":2}},"21":{"start":{"line":197,"column":0},"end":{"line":201,"column":2}},"22":{"start":{"line":214,"column":0},"end":{"line":217,"column":2}},"23":{"start":{"line":227,"column":0},"end":{"line":230,"column":2}},"24":{"start":{"line":239,"column":0},"end":{"line":241,"column":2}},"25":{"start":{"line":249,"column":0},"end":{"line":251,"column":2}},"26":{"start":{"line":260,"column":0},"end":{"line":262,"column":2}},"27":{"start":{"line":271,"column":0},"end":{"line":273,"column":2}},"28":{"start":{"line":281,"column":0},"end":{"line":285,"column":2}},"29":{"start":{"line":294,"column":0},"end":{"line":297,"column":2}},"30":{"start":{"line":308,"column":0},"end":{"line":308,"column":61}},"31":{"start":{"line":323,"column":0},"end":{"line":326,"column":2}},"32":{"start":{"line":325,"column":4},"end":{"line":325,"column":103}},"33":{"start":{"line":328,"column":0},"end":{"line":328,"column":42}},"34":{"start":{"line":342,"column":0},"end":{"line":355,"column":2}},"35":{"start":{"line":343,"column":4},"end":{"line":344,"column":45}},"36":{"start":{"line":346,"column":4},"end":{"line":346,"column":26}},"37":{"start":{"line":347,"column":4},"end":{"line":352,"column":5}},"38":{"start":{"line":348,"column":8},"end":{"line":348,"column":55}},"39":{"start":{"line":349,"column":8},"end":{"line":351,"column":9}},"40":{"start":{"line":350,"column":12},"end":{"line":350,"column":42}},"41":{"start":{"line":354,"column":4},"end":{"line":354,"column":26}},"42":{"start":{"line":357,"column":0},"end":{"line":1269,"column":3}},"43":{"start":{"line":378,"column":8},"end":{"line":378,"column":105}},"44":{"start":{"line":391,"column":8},"end":{"line":391,"column":40}},"45":{"start":{"line":393,"column":8},"end":{"line":395,"column":9}},"46":{"start":{"line":394,"column":12},"end":{"line":394,"column":34}},"47":{"start":{"line":420,"column":8},"end":{"line":420,"column":35}},"48":{"start":{"line":433,"column":8},"end":{"line":434,"column":19}},"49":{"start":{"line":436,"column":8},"end":{"line":440,"column":9}},"50":{"start":{"line":437,"column":12},"end":{"line":437,"column":43}},"51":{"start":{"line":439,"column":12},"end":{"line":439,"column":31}},"52":{"start":{"line":463,"column":8},"end":{"line":463,"column":48}},"53":{"start":{"line":464,"column":8},"end":{"line":464,"column":53}},"54":{"start":{"line":476,"column":8},"end":{"line":479,"column":17}},"55":{"start":{"line":481,"column":8},"end":{"line":481,"column":64}},"56":{"start":{"line":483,"column":8},"end":{"line":485,"column":9}},"57":{"start":{"line":484,"column":12},"end":{"line":484,"column":36}},"58":{"start":{"line":487,"column":8},"end":{"line":487,"column":36}},"59":{"start":{"line":489,"column":8},"end":{"line":494,"column":9}},"60":{"start":{"line":490,"column":12},"end":{"line":492,"column":13}},"61":{"start":{"line":491,"column":16},"end":{"line":491,"column":35}},"62":{"start":{"line":493,"column":12},"end":{"line":493,"column":36}},"63":{"start":{"line":496,"column":8},"end":{"line":501,"column":9}},"64":{"start":{"line":497,"column":12},"end":{"line":499,"column":13}},"65":{"start":{"line":498,"column":16},"end":{"line":498,"column":36}},"66":{"start":{"line":500,"column":12},"end":{"line":500,"column":37}},"67":{"start":{"line":532,"column":8},"end":{"line":557,"column":9}},"68":{"start":{"line":549,"column":12},"end":{"line":554,"column":15}},"69":{"start":{"line":556,"column":12},"end":{"line":556,"column":88}},"70":{"start":{"line":558,"column":8},"end":{"line":558,"column":20}},"71":{"start":{"line":570,"column":8},"end":{"line":570,"column":40}},"72":{"start":{"line":572,"column":8},"end":{"line":572,"column":24}},"73":{"start":{"line":573,"column":8},"end":{"line":573,"column":34}},"74":{"start":{"line":575,"column":8},"end":{"line":575,"column":40}},"75":{"start":{"line":589,"column":8},"end":{"line":589,"column":26}},"76":{"start":{"line":591,"column":8},"end":{"line":591,"column":27}},"77":{"start":{"line":592,"column":8},"end":{"line":592,"column":26}},"78":{"start":{"line":594,"column":8},"end":{"line":594,"column":25}},"79":{"start":{"line":595,"column":8},"end":{"line":595,"column":24}},"80":{"start":{"line":597,"column":8},"end":{"line":597,"column":25}},"81":{"start":{"line":598,"column":8},"end":{"line":598,"column":24}},"82":{"start":{"line":641,"column":8},"end":{"line":641,"column":40}},"83":{"start":{"line":650,"column":8},"end":{"line":650,"column":39}},"84":{"start":{"line":660,"column":8},"end":{"line":660,"column":40}},"85":{"start":{"line":670,"column":8},"end":{"line":670,"column":41}},"86":{"start":{"line":679,"column":8},"end":{"line":679,"column":41}},"87":{"start":{"line":688,"column":8},"end":{"line":688,"column":40}},"88":{"start":{"line":697,"column":8},"end":{"line":697,"column":92}},"89":{"start":{"line":716,"column":8},"end":{"line":722,"column":128}},"90":{"start":{"line":725,"column":8},"end":{"line":727,"column":9}},"91":{"start":{"line":726,"column":12},"end":{"line":726,"column":40}},"92":{"start":{"line":729,"column":8},"end":{"line":735,"column":9}},"93":{"start":{"line":731,"column":12},"end":{"line":733,"column":13}},"94":{"start":{"line":732,"column":16},"end":{"line":732,"column":48}},"95":{"start":{"line":734,"column":12},"end":{"line":734,"column":48}},"96":{"start":{"line":737,"column":8},"end":{"line":737,"column":78}},"97":{"start":{"line":739,"column":8},"end":{"line":743,"column":9}},"98":{"start":{"line":740,"column":12},"end":{"line":740,"column":48}},"99":{"start":{"line":741,"column":15},"end":{"line":743,"column":9}},"100":{"start":{"line":742,"column":12},"end":{"line":742,"column":50}},"101":{"start":{"line":755,"column":8},"end":{"line":755,"column":78}},"102":{"start":{"line":767,"column":8},"end":{"line":767,"column":130}},"103":{"start":{"line":783,"column":8},"end":{"line":784,"column":54}},"104":{"start":{"line":786,"column":8},"end":{"line":786,"column":48}},"105":{"start":{"line":799,"column":8},"end":{"line":799,"column":42}},"106":{"start":{"line":817,"column":8},"end":{"line":817,"column":30}},"107":{"start":{"line":819,"column":8},"end":{"line":827,"column":9}},"108":{"start":{"line":820,"column":12},"end":{"line":820,"column":41}},"109":{"start":{"line":822,"column":12},"end":{"line":826,"column":13}},"110":{"start":{"line":823,"column":16},"end":{"line":823,"column":44}},"111":{"start":{"line":825,"column":16},"end":{"line":825,"column":44}},"112":{"start":{"line":829,"column":8},"end":{"line":831,"column":9}},"113":{"start":{"line":830,"column":12},"end":{"line":830,"column":41}},"114":{"start":{"line":833,"column":8},"end":{"line":833,"column":20}},"115":{"start":{"line":843,"column":8},"end":{"line":843,"column":36}},"116":{"start":{"line":844,"column":8},"end":{"line":844,"column":42}},"117":{"start":{"line":854,"column":8},"end":{"line":857,"column":14}},"118":{"start":{"line":859,"column":8},"end":{"line":859,"column":52}},"119":{"start":{"line":862,"column":8},"end":{"line":865,"column":9}},"120":{"start":{"line":863,"column":12},"end":{"line":863,"column":28}},"121":{"start":{"line":864,"column":12},"end":{"line":864,"column":88}},"122":{"start":{"line":868,"column":8},"end":{"line":868,"column":67}},"123":{"start":{"line":880,"column":8},"end":{"line":883,"column":55}},"124":{"start":{"line":885,"column":8},"end":{"line":886,"column":43}},"125":{"start":{"line":888,"column":8},"end":{"line":889,"column":42}},"126":{"start":{"line":899,"column":8},"end":{"line":899,"column":46}},"127":{"start":{"line":900,"column":8},"end":{"line":900,"column":24}},"128":{"start":{"line":908,"column":8},"end":{"line":908,"column":37}},"129":{"start":{"line":918,"column":8},"end":{"line":919,"column":44}},"130":{"start":{"line":922,"column":8},"end":{"line":927,"column":9}},"131":{"start":{"line":923,"column":12},"end":{"line":923,"column":92}},"132":{"start":{"line":924,"column":12},"end":{"line":926,"column":14}},"133":{"start":{"line":929,"column":8},"end":{"line":929,"column":58}},"134":{"start":{"line":930,"column":8},"end":{"line":930,"column":38}},"135":{"start":{"line":937,"column":8},"end":{"line":939,"column":9}},"136":{"start":{"line":938,"column":12},"end":{"line":938,"column":88}},"137":{"start":{"line":948,"column":8},"end":{"line":951,"column":46}},"138":{"start":{"line":953,"column":8},"end":{"line":966,"column":9}},"139":{"start":{"line":955,"column":12},"end":{"line":955,"column":51}},"140":{"start":{"line":957,"column":12},"end":{"line":960,"column":13}},"141":{"start":{"line":958,"column":16},"end":{"line":958,"column":44}},"142":{"start":{"line":959,"column":16},"end":{"line":959,"column":39}},"143":{"start":{"line":962,"column":12},"end":{"line":965,"column":13}},"144":{"start":{"line":963,"column":16},"end":{"line":963,"column":37}},"145":{"start":{"line":964,"column":16},"end":{"line":964,"column":41}},"146":{"start":{"line":968,"column":8},"end":{"line":970,"column":9}},"147":{"start":{"line":969,"column":12},"end":{"line":969,"column":33}},"148":{"start":{"line":980,"column":8},"end":{"line":980,"column":46}},"149":{"start":{"line":991,"column":8},"end":{"line":991,"column":36}},"150":{"start":{"line":992,"column":8},"end":{"line":992,"column":60}},"151":{"start":{"line":1003,"column":8},"end":{"line":1003,"column":35}},"152":{"start":{"line":1013,"column":8},"end":{"line":1013,"column":96}},"153":{"start":{"line":1024,"column":8},"end":{"line":1024,"column":76}},"154":{"start":{"line":1035,"column":8},"end":{"line":1035,"column":77}},"155":{"start":{"line":1048,"column":9},"end":{"line":1048,"column":50}},"156":{"start":{"line":1049,"column":9},"end":{"line":1049,"column":66}},"157":{"start":{"line":1051,"column":9},"end":{"line":1057,"column":10}},"158":{"start":{"line":1052,"column":12},"end":{"line":1056,"column":13}},"159":{"start":{"line":1053,"column":16},"end":{"line":1053,"column":36}},"160":{"start":{"line":1055,"column":16},"end":{"line":1055,"column":35}},"161":{"start":{"line":1068,"column":8},"end":{"line":1068,"column":49}},"162":{"start":{"line":1070,"column":8},"end":{"line":1074,"column":9}},"163":{"start":{"line":1071,"column":12},"end":{"line":1071,"column":46}},"164":{"start":{"line":1073,"column":12},"end":{"line":1073,"column":51}},"165":{"start":{"line":1085,"column":8},"end":{"line":1087,"column":9}},"166":{"start":{"line":1086,"column":12},"end":{"line":1086,"column":34}},"167":{"start":{"line":1098,"column":8},"end":{"line":1099,"column":42}},"168":{"start":{"line":1101,"column":8},"end":{"line":1106,"column":9}},"169":{"start":{"line":1102,"column":12},"end":{"line":1102,"column":43}},"170":{"start":{"line":1103,"column":12},"end":{"line":1103,"column":56}},"171":{"start":{"line":1105,"column":12},"end":{"line":1105,"column":34}},"172":{"start":{"line":1108,"column":8},"end":{"line":1113,"column":9}},"173":{"start":{"line":1109,"column":12},"end":{"line":1109,"column":36}},"174":{"start":{"line":1110,"column":12},"end":{"line":1110,"column":49}},"175":{"start":{"line":1112,"column":12},"end":{"line":1112,"column":36}},"176":{"start":{"line":1124,"column":8},"end":{"line":1124,"column":52}},"177":{"start":{"line":1167,"column":8},"end":{"line":1167,"column":24}},"178":{"start":{"line":1176,"column":8},"end":{"line":1176,"column":60}},"179":{"start":{"line":1187,"column":8},"end":{"line":1188,"column":29}},"180":{"start":{"line":1190,"column":8},"end":{"line":1192,"column":9}},"181":{"start":{"line":1191,"column":12},"end":{"line":1191,"column":59}},"182":{"start":{"line":1203,"column":8},"end":{"line":1203,"column":38}},"183":{"start":{"line":1204,"column":8},"end":{"line":1207,"column":9}},"184":{"start":{"line":1205,"column":12},"end":{"line":1205,"column":28}},"185":{"start":{"line":1206,"column":12},"end":{"line":1206,"column":63}},"186":{"start":{"line":1216,"column":8},"end":{"line":1218,"column":9}},"187":{"start":{"line":1217,"column":12},"end":{"line":1217,"column":70}},"188":{"start":{"line":1231,"column":8},"end":{"line":1231,"column":51}},"189":{"start":{"line":1243,"column":8},"end":{"line":1243,"column":38}},"190":{"start":{"line":1255,"column":8},"end":{"line":1255,"column":33}},"191":{"start":{"line":1271,"column":0},"end":{"line":1271,"column":18}}},"branchMap":{"1":{"line":96,"type":"binary-expr","locations":[{"start":{"line":96,"column":24},"end":{"line":96,"column":46}},{"start":{"line":96,"column":50},"end":{"line":96,"column":95}}]},"2":{"line":99,"type":"binary-expr","locations":[{"start":{"line":99,"column":13},"end":{"line":99,"column":19}},{"start":{"line":99,"column":23},"end":{"line":99,"column":25}}]},"3":{"line":105,"type":"if","locations":[{"start":{"line":105,"column":4},"end":{"line":105,"column":4}},{"start":{"line":105,"column":4},"end":{"line":105,"column":4}}]},"4":{"line":107,"type":"if","locations":[{"start":{"line":107,"column":8},"end":{"line":107,"column":8}},{"start":{"line":107,"column":8},"end":{"line":107,"column":8}}]},"5":{"line":347,"type":"if","locations":[{"start":{"line":347,"column":4},"end":{"line":347,"column":4}},{"start":{"line":347,"column":4},"end":{"line":347,"column":4}}]},"6":{"line":349,"type":"if","locations":[{"start":{"line":349,"column":8},"end":{"line":349,"column":8}},{"start":{"line":349,"column":8},"end":{"line":349,"column":8}}]},"7":{"line":354,"type":"binary-expr","locations":[{"start":{"line":354,"column":11},"end":{"line":354,"column":17}},{"start":{"line":354,"column":21},"end":{"line":354,"column":25}}]},"8":{"line":393,"type":"if","locations":[{"start":{"line":393,"column":8},"end":{"line":393,"column":8}},{"start":{"line":393,"column":8},"end":{"line":393,"column":8}}]},"9":{"line":436,"type":"if","locations":[{"start":{"line":436,"column":8},"end":{"line":436,"column":8}},{"start":{"line":436,"column":8},"end":{"line":436,"column":8}}]},"10":{"line":481,"type":"binary-expr","locations":[{"start":{"line":481,"column":15},"end":{"line":481,"column":26}},{"start":{"line":481,"column":30},"end":{"line":481,"column":63}}]},"11":{"line":483,"type":"if","locations":[{"start":{"line":483,"column":8},"end":{"line":483,"column":8}},{"start":{"line":483,"column":8},"end":{"line":483,"column":8}}]},"12":{"line":489,"type":"if","locations":[{"start":{"line":489,"column":8},"end":{"line":489,"column":8}},{"start":{"line":489,"column":8},"end":{"line":489,"column":8}}]},"13":{"line":490,"type":"if","locations":[{"start":{"line":490,"column":12},"end":{"line":490,"column":12}},{"start":{"line":490,"column":12},"end":{"line":490,"column":12}}]},"14":{"line":496,"type":"if","locations":[{"start":{"line":496,"column":8},"end":{"line":496,"column":8}},{"start":{"line":496,"column":8},"end":{"line":496,"column":8}}]},"15":{"line":497,"type":"if","locations":[{"start":{"line":497,"column":12},"end":{"line":497,"column":12}},{"start":{"line":497,"column":12},"end":{"line":497,"column":12}}]},"16":{"line":532,"type":"if","locations":[{"start":{"line":532,"column":8},"end":{"line":532,"column":8}},{"start":{"line":532,"column":8},"end":{"line":532,"column":8}}]},"17":{"line":532,"type":"binary-expr","locations":[{"start":{"line":532,"column":12},"end":{"line":532,"column":32}},{"start":{"line":532,"column":36},"end":{"line":532,"column":55}}]},"18":{"line":556,"type":"cond-expr","locations":[{"start":{"line":556,"column":58},"end":{"line":556,"column":78}},{"start":{"line":556,"column":81},"end":{"line":556,"column":85}}]},"19":{"line":722,"type":"binary-expr","locations":[{"start":{"line":722,"column":19},"end":{"line":722,"column":26}},{"start":{"line":722,"column":30},"end":{"line":722,"column":57}},{"start":{"line":722,"column":62},"end":{"line":722,"column":93}},{"start":{"line":722,"column":97},"end":{"line":722,"column":127}}]},"20":{"line":725,"type":"if","locations":[{"start":{"line":725,"column":8},"end":{"line":725,"column":8}},{"start":{"line":725,"column":8},"end":{"line":725,"column":8}}]},"21":{"line":725,"type":"binary-expr","locations":[{"start":{"line":725,"column":12},"end":{"line":725,"column":19}},{"start":{"line":725,"column":23},"end":{"line":725,"column":53}},{"start":{"line":725,"column":57},"end":{"line":725,"column":79}}]},"22":{"line":729,"type":"if","locations":[{"start":{"line":729,"column":8},"end":{"line":729,"column":8}},{"start":{"line":729,"column":8},"end":{"line":729,"column":8}}]},"23":{"line":729,"type":"binary-expr","locations":[{"start":{"line":729,"column":12},"end":{"line":729,"column":63}},{"start":{"line":729,"column":67},"end":{"line":729,"column":101}}]},"24":{"line":731,"type":"if","locations":[{"start":{"line":731,"column":12},"end":{"line":731,"column":12}},{"start":{"line":731,"column":12},"end":{"line":731,"column":12}}]},"25":{"line":737,"type":"binary-expr","locations":[{"start":{"line":737,"column":21},"end":{"line":737,"column":31}},{"start":{"line":737,"column":36},"end":{"line":737,"column":49}},{"start":{"line":737,"column":53},"end":{"line":737,"column":76}}]},"26":{"line":739,"type":"if","locations":[{"start":{"line":739,"column":8},"end":{"line":739,"column":8}},{"start":{"line":739,"column":8},"end":{"line":739,"column":8}}]},"27":{"line":741,"type":"if","locations":[{"start":{"line":741,"column":15},"end":{"line":741,"column":15}},{"start":{"line":741,"column":15},"end":{"line":741,"column":15}}]},"28":{"line":767,"type":"cond-expr","locations":[{"start":{"line":767,"column":50},"end":{"line":767,"column":72}},{"start":{"line":767,"column":75},"end":{"line":767,"column":129}}]},"29":{"line":786,"type":"cond-expr","locations":[{"start":{"line":786,"column":35},"end":{"line":786,"column":39}},{"start":{"line":786,"column":42},"end":{"line":786,"column":46}}]},"30":{"line":786,"type":"binary-expr","locations":[{"start":{"line":786,"column":17},"end":{"line":786,"column":21}},{"start":{"line":786,"column":25},"end":{"line":786,"column":31}}]},"31":{"line":799,"type":"binary-expr","locations":[{"start":{"line":799,"column":15},"end":{"line":799,"column":33}},{"start":{"line":799,"column":37},"end":{"line":799,"column":41}}]},"32":{"line":819,"type":"if","locations":[{"start":{"line":819,"column":8},"end":{"line":819,"column":8}},{"start":{"line":819,"column":8},"end":{"line":819,"column":8}}]},"33":{"line":822,"type":"if","locations":[{"start":{"line":822,"column":12},"end":{"line":822,"column":12}},{"start":{"line":822,"column":12},"end":{"line":822,"column":12}}]},"34":{"line":829,"type":"if","locations":[{"start":{"line":829,"column":8},"end":{"line":829,"column":8}},{"start":{"line":829,"column":8},"end":{"line":829,"column":8}}]},"35":{"line":830,"type":"binary-expr","locations":[{"start":{"line":830,"column":25},"end":{"line":830,"column":27}},{"start":{"line":830,"column":31},"end":{"line":830,"column":39}}]},"36":{"line":864,"type":"binary-expr","locations":[{"start":{"line":864,"column":33},"end":{"line":864,"column":46}},{"start":{"line":864,"column":50},"end":{"line":864,"column":86}}]},"37":{"line":922,"type":"if","locations":[{"start":{"line":922,"column":8},"end":{"line":922,"column":8}},{"start":{"line":922,"column":8},"end":{"line":922,"column":8}}]},"38":{"line":937,"type":"if","locations":[{"start":{"line":937,"column":8},"end":{"line":937,"column":8}},{"start":{"line":937,"column":8},"end":{"line":937,"column":8}}]},"39":{"line":953,"type":"if","locations":[{"start":{"line":953,"column":8},"end":{"line":953,"column":8}},{"start":{"line":953,"column":8},"end":{"line":953,"column":8}}]},"40":{"line":957,"type":"if","locations":[{"start":{"line":957,"column":12},"end":{"line":957,"column":12}},{"start":{"line":957,"column":12},"end":{"line":957,"column":12}}]},"41":{"line":962,"type":"if","locations":[{"start":{"line":962,"column":12},"end":{"line":962,"column":12}},{"start":{"line":962,"column":12},"end":{"line":962,"column":12}}]},"42":{"line":968,"type":"if","locations":[{"start":{"line":968,"column":8},"end":{"line":968,"column":8}},{"start":{"line":968,"column":8},"end":{"line":968,"column":8}}]},"43":{"line":968,"type":"binary-expr","locations":[{"start":{"line":968,"column":12},"end":{"line":968,"column":18}},{"start":{"line":968,"column":22},"end":{"line":968,"column":33}}]},"44":{"line":992,"type":"binary-expr","locations":[{"start":{"line":992,"column":24},"end":{"line":992,"column":41}},{"start":{"line":992,"column":45},"end":{"line":992,"column":57}}]},"45":{"line":1013,"type":"cond-expr","locations":[{"start":{"line":1013,"column":69},"end":{"line":1013,"column":88}},{"start":{"line":1013,"column":91},"end":{"line":1013,"column":94}}]},"46":{"line":1051,"type":"if","locations":[{"start":{"line":1051,"column":9},"end":{"line":1051,"column":9}},{"start":{"line":1051,"column":9},"end":{"line":1051,"column":9}}]},"47":{"line":1052,"type":"if","locations":[{"start":{"line":1052,"column":12},"end":{"line":1052,"column":12}},{"start":{"line":1052,"column":12},"end":{"line":1052,"column":12}}]},"48":{"line":1070,"type":"if","locations":[{"start":{"line":1070,"column":8},"end":{"line":1070,"column":8}},{"start":{"line":1070,"column":8},"end":{"line":1070,"column":8}}]},"49":{"line":1085,"type":"if","locations":[{"start":{"line":1085,"column":8},"end":{"line":1085,"column":8}},{"start":{"line":1085,"column":8},"end":{"line":1085,"column":8}}]},"50":{"line":1101,"type":"if","locations":[{"start":{"line":1101,"column":8},"end":{"line":1101,"column":8}},{"start":{"line":1101,"column":8},"end":{"line":1101,"column":8}}]},"51":{"line":1101,"type":"binary-expr","locations":[{"start":{"line":1101,"column":12},"end":{"line":1101,"column":24}},{"start":{"line":1101,"column":29},"end":{"line":1101,"column":52}}]},"52":{"line":1108,"type":"if","locations":[{"start":{"line":1108,"column":8},"end":{"line":1108,"column":8}},{"start":{"line":1108,"column":8},"end":{"line":1108,"column":8}}]},"53":{"line":1176,"type":"binary-expr","locations":[{"start":{"line":1176,"column":16},"end":{"line":1176,"column":36}},{"start":{"line":1176,"column":40},"end":{"line":1176,"column":58}}]},"54":{"line":1216,"type":"if","locations":[{"start":{"line":1216,"column":8},"end":{"line":1216,"column":8}},{"start":{"line":1216,"column":8},"end":{"line":1216,"column":8}}]}},"code":["(function () { YUI.add('widget-base', function (Y, NAME) {","","/**"," * Provides the base Widget class, with HTML Parser support"," *"," * @module widget"," * @main widget"," */","","/**"," * Provides the base Widget class"," *"," * @module widget"," * @submodule widget-base"," */","var L = Y.Lang,"," Node = Y.Node,",""," ClassNameManager = Y.ClassNameManager,",""," _getClassName = ClassNameManager.getClassName,"," _getWidgetClassName,",""," _toInitialCap = Y.cached(function(str) {"," return str.substring(0, 1).toUpperCase() + str.substring(1);"," }),",""," // K-Weight, IE GC optimizations"," CONTENT = \"content\","," VISIBLE = \"visible\","," HIDDEN = \"hidden\","," DISABLED = \"disabled\","," FOCUSED = \"focused\","," WIDTH = \"width\","," HEIGHT = \"height\","," BOUNDING_BOX = \"boundingBox\","," CONTENT_BOX = \"contentBox\","," PARENT_NODE = \"parentNode\","," OWNER_DOCUMENT = \"ownerDocument\","," AUTO = \"auto\","," SRC_NODE = \"srcNode\","," BODY = \"body\","," TAB_INDEX = \"tabIndex\","," ID = \"id\","," RENDER = \"render\","," RENDERED = \"rendered\","," DESTROYED = \"destroyed\","," STRINGS = \"strings\","," DIV = \"
\","," CHANGE = \"Change\","," LOADING = \"loading\",",""," _UISET = \"_uiSet\",",""," EMPTY_STR = \"\","," EMPTY_FN = function() {},",""," TRUE = true,"," FALSE = false,",""," UI,"," ATTRS = {},"," UI_ATTRS = [VISIBLE, DISABLED, HEIGHT, WIDTH, FOCUSED, TAB_INDEX],",""," WEBKIT = Y.UA.webkit,",""," // Widget node-to-instance map."," _instances = new WeakMap();","","/**"," * A base class for widgets, providing:"," *
    "," *
  • The render lifecycle method, in addition to the init and destroy"," * lifecycle methods provide by Base
  • "," *
  • Abstract methods to support consistent MVC structure across"," * widgets: renderer, renderUI, bindUI, syncUI
  • "," *
  • Support for common widget attributes, such as boundingBox, contentBox, visible,"," * disabled, focused, strings
  • "," *
"," *"," * @param config {Object} Object literal specifying widget configuration properties."," *"," * @class Widget"," * @constructor"," * @extends Base"," */","function Widget(config) {",""," // kweight"," var widget = this,"," parentNode,"," render,"," constructor = widget.constructor;",""," widget._strs = {};"," widget._cssPrefix = constructor.CSS_PREFIX || _getClassName(constructor.NAME.toLowerCase());",""," // We need a config for HTML_PARSER to work."," config = config || {};",""," Widget.superclass.constructor.call(widget, config);",""," render = widget.get(RENDER);",""," if (render) {"," // Render could be a node or boolean"," if (render !== TRUE) {"," parentNode = render;"," }"," widget.render(parentNode);"," }","}","","/**"," * Static property provides a string to identify the class."," *

"," * Currently used to apply class identifiers to the bounding box"," * and to classify events fired by the widget."," *

"," *"," * @property NAME"," * @type String"," * @static"," */","Widget.NAME = \"widget\";","","/**"," * Constant used to identify state changes originating from"," * the DOM (as opposed to the JavaScript model)."," *"," * @property UI_SRC"," * @type String"," * @static"," * @final"," */","UI = Widget.UI_SRC = \"ui\";","","/**"," * Static property used to define the default attribute"," * configuration for the Widget."," *"," * @property ATTRS"," * @type Object"," * @static"," */","Widget.ATTRS = ATTRS;","","// Trying to optimize kweight by setting up attrs this way saves about 0.4K min'd","","/**"," * @attribute id"," * @writeOnce"," * @default Generated using guid()"," * @type String"," */","","ATTRS[ID] = {"," valueFn: \"_guid\","," writeOnce: TRUE","};","","/**"," * Flag indicating whether or not this Widget"," * has been through the render lifecycle phase."," *"," * @attribute rendered"," * @readOnly"," * @default false"," * @type boolean"," */","ATTRS[RENDERED] = {"," value:FALSE,"," readOnly: TRUE","};","","/**"," * @attribute boundingBox"," * @description The outermost DOM node for the Widget, used for sizing and positioning"," * of a Widget as well as a containing element for any decorator elements used"," * for skinning."," * @type String | Node"," * @writeOnce"," */","ATTRS[BOUNDING_BOX] = {"," valueFn:\"_defaultBB\","," setter: \"_setBB\","," writeOnce: TRUE","};","","/**"," * @attribute contentBox"," * @description A DOM node that is a direct descendant of a Widget's bounding box that"," * houses its content."," * @type String | Node"," * @writeOnce"," */","ATTRS[CONTENT_BOX] = {"," valueFn:\"_defaultCB\","," setter: \"_setCB\","," writeOnce: TRUE","};","","/**"," * @attribute tabIndex"," * @description Number (between -32767 to 32767) indicating the widget's"," * position in the default tab flow. The value is used to set the"," * \"tabIndex\" attribute on the widget's bounding box. Negative values allow"," * the widget to receive DOM focus programmatically (by calling the focus"," * method), while being removed from the default tab flow. A value of"," * null removes the \"tabIndex\" attribute from the widget's bounding box."," * @type Number"," * @default null"," */","ATTRS[TAB_INDEX] = {"," value: null,"," validator: \"_validTabIndex\"","};","","/**"," * @attribute focused"," * @description Boolean indicating if the Widget, or one of its descendants,"," * has focus."," * @readOnly"," * @default false"," * @type boolean"," */","ATTRS[FOCUSED] = {"," value: FALSE,"," readOnly:TRUE","};","","/**"," * @attribute disabled"," * @description Boolean indicating if the Widget should be disabled. The disabled implementation"," * is left to the specific classes extending widget."," * @default false"," * @type boolean"," */","ATTRS[DISABLED] = {"," value: FALSE","};","","/**"," * @attribute visible"," * @description Boolean indicating whether or not the Widget is visible."," * @default TRUE"," * @type boolean"," */","ATTRS[VISIBLE] = {"," value: TRUE","};","","/**"," * @attribute height"," * @description String with units, or number, representing the height of the Widget. If a number is provided,"," * the default unit, defined by the Widgets DEF_UNIT, property is used."," * @default EMPTY_STR"," * @type {String | Number}"," */","ATTRS[HEIGHT] = {"," value: EMPTY_STR","};","","/**"," * @attribute width"," * @description String with units, or number, representing the width of the Widget. If a number is provided,"," * the default unit, defined by the Widgets DEF_UNIT, property is used."," * @default EMPTY_STR"," * @type {String | Number}"," */","ATTRS[WIDTH] = {"," value: EMPTY_STR","};","","/**"," * @attribute strings"," * @description Collection of strings used to label elements of the Widget's UI."," * @default null"," * @type Object"," */","ATTRS[STRINGS] = {"," value: {},"," setter: \"_strSetter\","," getter: \"_strGetter\"","};","","/**"," * Whether or not to render the widget automatically after init, and optionally, to which parent node."," *"," * @attribute render"," * @type boolean | Node"," * @writeOnce"," */","ATTRS[RENDER] = {"," value:FALSE,"," writeOnce:TRUE","};","","/**"," * The css prefix which the static Widget.getClassName method should use when constructing class names"," *"," * @property CSS_PREFIX"," * @type String"," * @default Widget.NAME.toLowerCase()"," * @private"," * @static"," */","Widget.CSS_PREFIX = _getClassName(Widget.NAME.toLowerCase());","","/**"," * Generate a standard prefixed classname for the Widget, prefixed by the default prefix defined"," * by the Y.config.classNamePrefix attribute used by ClassNameManager and"," * Widget.NAME.toLowerCase() (e.g. \"yui-widget-xxxxx-yyyyy\", based on default values for"," * the prefix and widget class name)."," *

"," * The instance based version of this method can be used to generate standard prefixed classnames,"," * based on the instances NAME, as opposed to Widget.NAME. This method should be used when you"," * need to use a constant class name across different types instances."," *

"," * @method getClassName"," * @param {String*} args* 0..n strings which should be concatenated, using the default separator defined by ClassNameManager, to create the class name"," */","Widget.getClassName = function() {"," // arguments needs to be array'fied to concat"," return _getClassName.apply(ClassNameManager, [Widget.CSS_PREFIX].concat(Y.Array(arguments), true));","};","","_getWidgetClassName = Widget.getClassName;","","/**"," * Returns the widget instance whose bounding box contains, or is, the given node."," *

"," * In the case of nested widgets, the nearest bounding box ancestor is used to"," * return the widget instance."," *

"," * @method getByNode"," * @static"," * @param node {Node | String} The node for which to return a Widget instance. If a selector"," * string is passed in, which selects more than one node, the first node found is used."," * @return {Widget} Widget instance, or null if not found."," */","Widget.getByNode = function(node) {"," var widget,"," widgetMarker = _getWidgetClassName();",""," node = Node.one(node);"," if (node) {"," node = node.ancestor(\".\" + widgetMarker, true);"," if (node) {"," widget = _instances.get(node);"," }"," }",""," return widget || null;","};","","Y.extend(Widget, Y.Base, {",""," /**"," * Returns a class name prefixed with the the value of the"," * YUI.config.classNamePrefix attribute + the instances NAME property."," * Uses YUI.config.classNameDelimiter attribute to delimit the provided strings."," * e.g."," * "," *
","     *    // returns \"yui-slider-foo-bar\", for a slider instance","     *    var scn = slider.getClassName('foo','bar');","     *","     *    // returns \"yui-overlay-foo-bar\", for an overlay instance","     *    var ocn = overlay.getClassName('foo','bar');","     * 
"," *
"," *"," * @method getClassName"," * @param {String} [classnames*] One or more classname bits to be joined and prefixed"," */"," getClassName: function () {"," return _getClassName.apply(ClassNameManager, [this._cssPrefix].concat(Y.Array(arguments), true));"," },",""," /**"," * Initializer lifecycle implementation for the Widget class. Registers the"," * widget instance, and runs through the Widget's HTML_PARSER definition."," *"," * @method initializer"," * @protected"," * @param config {Object} Configuration object literal for the widget"," */"," initializer: function(config) {",""," var bb = this.get(BOUNDING_BOX);",""," if (bb instanceof Node) {"," this._mapInstance(bb);"," }",""," /**"," * Notification event, which widget implementations can fire, when"," * they change the content of the widget. This event has no default"," * behavior and cannot be prevented, so the \"on\" or \"after\""," * moments are effectively equivalent (with on listeners being invoked before"," * after listeners)."," *"," * @event widget:contentUpdate"," * @preventable false"," * @param {EventFacade} e The Event Facade"," */"," },",""," /**"," * Utility method used to add an entry to the boundingBox id to instance map."," *"," * This method can be used to populate the instance with lazily created boundingBox Node references."," *"," * @method _mapInstance"," * @param {Node} The boundingBox"," * @protected"," */"," _mapInstance : function(node) {"," _instances.set(node, this);"," },",""," /**"," * Destructor lifecycle implementation for the Widget class. Purges events attached"," * to the bounding box and content box, removes them from the DOM and removes"," * the Widget from the list of registered widgets."," *"," * @method destructor"," * @protected"," */"," destructor: function() {",""," var boundingBox = this.get(BOUNDING_BOX),"," bbGuid;",""," if (boundingBox instanceof Node) {"," _instances.delete(boundingBox);",""," this._destroyBox();"," }"," },",""," /**"," *

"," * Destroy lifecycle method. Fires the destroy"," * event, prior to invoking destructors for the"," * class hierarchy."," *"," * Overrides Base's implementation, to support arguments to destroy"," *

"," *

"," * Subscribers to the destroy"," * event can invoke preventDefault on the event object, to prevent destruction"," * from proceeding."," *

"," * @method destroy"," * @param destroyAllNodes {Boolean} If true, all nodes contained within the Widget are"," * removed and destroyed. Defaults to false due to potentially high run-time cost."," * @return {Widget} A reference to this object"," * @chainable"," */"," destroy: function(destroyAllNodes) {"," this._destroyAllNodes = destroyAllNodes;"," return Widget.superclass.destroy.apply(this);"," },",""," /**"," * Removes and destroys the widgets rendered boundingBox, contentBox,"," * and detaches bound UI events."," *"," * @method _destroyBox"," * @protected"," */"," _destroyBox : function() {",""," var boundingBox = this.get(BOUNDING_BOX),"," contentBox = this.get(CONTENT_BOX),"," deep = this._destroyAllNodes,"," same;",""," same = boundingBox && boundingBox.compareTo(contentBox);",""," if (this.UI_EVENTS) {"," this._destroyUIEvents();"," }",""," this._unbindUI(boundingBox);",""," if (contentBox) {"," if (deep) {"," contentBox.empty();"," }"," contentBox.remove(TRUE);"," }",""," if (!same) {"," if (deep) {"," boundingBox.empty();"," }"," boundingBox.remove(TRUE);"," }"," },",""," /**"," * Establishes the initial DOM for the widget. Invoking this"," * method will lead to the creating of all DOM elements for"," * the widget (or the manipulation of existing DOM elements"," * for the progressive enhancement use case)."," *

"," * This method should only be invoked once for an initialized"," * widget."," *

"," *

"," * It delegates to the widget specific renderer method to do"," * the actual work."," *

"," *"," * @method render"," * @chainable"," * @final"," * @param parentNode {Object | String} Optional. The Node under which the"," * Widget is to be rendered. This can be a Node instance or a CSS selector string."," *

"," * If the selector string returns more than one Node, the first node will be used"," * as the parentNode. NOTE: This argument is required if both the boundingBox and contentBox"," * are not currently in the document. If it's not provided, the Widget will be rendered"," * to the body of the current document in this case."," *

"," */"," render: function(parentNode) {",""," if (!this.get(DESTROYED) && !this.get(RENDERED)) {"," /**"," * Lifecycle event for the render phase, fired prior to rendering the UI"," * for the widget (prior to invoking the widget's renderer method)."," *

"," * Subscribers to the \"on\" moment of this event, will be notified"," * before the widget is rendered."," *

"," *

"," * Subscribers to the \"after\" moment of this event, will be notified"," * after rendering is complete."," *

"," *"," * @event render"," * @preventable _defRenderFn"," * @param {EventFacade} e The Event Facade"," */"," this.publish(RENDER, {"," queuable:FALSE,"," fireOnce:TRUE,"," defaultTargetOnly:TRUE,"," defaultFn: this._defRenderFn"," });",""," this.fire(RENDER, {parentNode: (parentNode) ? Node.one(parentNode) : null});"," }"," return this;"," },",""," /**"," * Default render handler"," *"," * @method _defRenderFn"," * @protected"," * @param {EventFacade} e The Event object"," * @param {Node} parentNode The parent node to render to, if passed in to the render method"," */"," _defRenderFn : function(e) {"," this._parentNode = e.parentNode;",""," this.renderer();"," this._set(RENDERED, TRUE);",""," this._removeLoadingClassNames();"," },",""," /**"," * Creates DOM (or manipulates DOM for progressive enhancement)"," * This method is invoked by render() and is not chained"," * automatically for the class hierarchy (unlike initializer, destructor)"," * so it should be chained manually for subclasses if required."," *"," * @method renderer"," * @protected"," */"," renderer: function() {"," // kweight"," var widget = this;",""," widget._renderUI();"," widget.renderUI();",""," widget._bindUI();"," widget.bindUI();",""," widget._syncUI();"," widget.syncUI();"," },",""," /**"," * Configures/Sets up listeners to bind Widget State to UI/DOM"," *"," * This method is not called by framework and is not chained"," * automatically for the class hierarchy."," *"," * @method bindUI"," * @protected"," */"," bindUI: EMPTY_FN,",""," /**"," * Adds nodes to the DOM"," *"," * This method is not called by framework and is not chained"," * automatically for the class hierarchy."," *"," * @method renderUI"," * @protected"," */"," renderUI: EMPTY_FN,",""," /**"," * Refreshes the rendered UI, based on Widget State"," *"," * This method is not called by framework and is not chained"," * automatically for the class hierarchy."," *"," * @method syncUI"," * @protected"," *"," */"," syncUI: EMPTY_FN,",""," /**"," * @method hide"," * @description Hides the Widget by setting the \"visible\" attribute to \"false\"."," * @chainable"," */"," hide: function() {"," return this.set(VISIBLE, FALSE);"," },",""," /**"," * @method show"," * @description Shows the Widget by setting the \"visible\" attribute to \"true\"."," * @chainable"," */"," show: function() {"," return this.set(VISIBLE, TRUE);"," },",""," /**"," * @method focus"," * @description Causes the Widget to receive the focus by setting the \"focused\""," * attribute to \"true\"."," * @chainable"," */"," focus: function () {"," return this._set(FOCUSED, TRUE);"," },",""," /**"," * @method blur"," * @description Causes the Widget to lose focus by setting the \"focused\" attribute"," * to \"false\""," * @chainable"," */"," blur: function () {"," return this._set(FOCUSED, FALSE);"," },",""," /**"," * @method enable"," * @description Set the Widget's \"disabled\" attribute to \"false\"."," * @chainable"," */"," enable: function() {"," return this.set(DISABLED, FALSE);"," },",""," /**"," * @method disable"," * @description Set the Widget's \"disabled\" attribute to \"true\"."," * @chainable"," */"," disable: function() {"," return this.set(DISABLED, TRUE);"," },",""," /**"," * @method _uiSizeCB"," * @protected"," * @param {boolean} expand"," */"," _uiSizeCB : function(expand) {"," this.get(CONTENT_BOX).toggleClass(_getWidgetClassName(CONTENT, \"expanded\"), expand);"," },",""," /**"," * Helper method to collect the boundingBox and contentBox and append to the provided parentNode, if not"," * already a child. The owner document of the boundingBox, or the owner document of the contentBox will be used"," * as the document into which the Widget is rendered if a parentNode is node is not provided. If both the boundingBox and"," * the contentBox are not currently in the document, and no parentNode is provided, the widget will be rendered"," * to the current document's body."," *"," * @method _renderBox"," * @private"," * @param {Node} parentNode The parentNode to render the widget to. If not provided, and both the boundingBox and"," * the contentBox are not currently in the document, the widget will be rendered to the current document's body."," */"," _renderBox: function(parentNode) {",""," // TODO: Performance Optimization [ More effective algo to reduce Node refs, compares, replaces? ]",""," var widget = this, // kweight"," contentBox = widget.get(CONTENT_BOX),"," boundingBox = widget.get(BOUNDING_BOX),"," srcNode = widget.get(SRC_NODE),"," defParentNode = widget.DEF_PARENT_NODE,",""," doc = (srcNode && srcNode.get(OWNER_DOCUMENT)) || boundingBox.get(OWNER_DOCUMENT) || contentBox.get(OWNER_DOCUMENT);",""," // If srcNode (assume it's always in doc), have contentBox take its place (widget render responsible for re-use of srcNode contents)"," if (srcNode && !srcNode.compareTo(contentBox) && !contentBox.inDoc(doc)) {"," srcNode.replace(contentBox);"," }",""," if (!boundingBox.compareTo(contentBox.get(PARENT_NODE)) && !boundingBox.compareTo(contentBox)) {"," // If contentBox box is already in the document, have boundingBox box take it's place"," if (contentBox.inDoc(doc)) {"," contentBox.replace(boundingBox);"," }"," boundingBox.appendChild(contentBox);"," }",""," parentNode = parentNode || (defParentNode && Node.one(defParentNode));",""," if (parentNode) {"," parentNode.appendChild(boundingBox);"," } else if (!boundingBox.inDoc(doc)) {"," Node.one(BODY).insert(boundingBox, 0);"," }"," },",""," /**"," * Setter for the boundingBox attribute"," *"," * @method _setBB"," * @private"," * @param {Node|String} node"," * @return Node"," */"," _setBB: function(node) {"," return this._setBox(this.get(ID), node, this.BOUNDING_TEMPLATE, true);"," },",""," /**"," * Setter for the contentBox attribute"," *"," * @method _setCB"," * @private"," * @param {Node|String} node"," * @return Node"," */"," _setCB: function(node) {"," return (this.CONTENT_TEMPLATE === null) ? this.get(BOUNDING_BOX) : this._setBox(null, node, this.CONTENT_TEMPLATE, false);"," },",""," /**"," * Returns the default value for the boundingBox attribute."," *"," * For the Widget class, this will most commonly be null (resulting in a new"," * boundingBox node instance being created), unless a srcNode was provided"," * and CONTENT_TEMPLATE is null, in which case it will be srcNode."," * This behavior was introduced in @VERSION@ to accomodate single-box widgets"," * whose BB & CB both point to srcNode (e.g. Y.Button)."," *"," * @method _defaultBB"," * @protected"," */"," _defaultBB : function() {"," var node = this.get(SRC_NODE),"," nullCT = (this.CONTENT_TEMPLATE === null);",""," return ((node && nullCT) ? node : null);"," },",""," /**"," * Returns the default value for the contentBox attribute."," *"," * For the Widget class, this will be the srcNode if provided, otherwise null (resulting in"," * a new contentBox node instance being created)"," *"," * @method _defaultCB"," * @protected"," */"," _defaultCB : function(node) {"," return this.get(SRC_NODE) || null;"," },",""," /**"," * Helper method to set the bounding/content box, or create it from"," * the provided template if not found."," *"," * @method _setBox"," * @private"," *"," * @param {String} id The node's id attribute"," * @param {Node|String} node The node reference"," * @param {String} template HTML string template for the node"," * @param {boolean} isBounding true if this is the boundingBox, false if it's the contentBox"," * @return {Node} The node"," */"," _setBox : function(id, node, template, isBounding) {",""," node = Node.one(node);",""," if (!node) {"," node = Node.create(template);",""," if (isBounding) {"," this._bbFromTemplate = true;"," } else {"," this._cbFromTemplate = true;"," }"," }",""," if (!node.get(ID)) {"," node.set(ID, id || Y.guid());"," }",""," return node;"," },",""," /**"," * Initializes the UI state for the Widget's bounding/content boxes."," *"," * @method _renderUI"," * @protected"," */"," _renderUI: function() {"," this._renderBoxClassNames();"," this._renderBox(this._parentNode);"," },",""," /**"," * Applies standard class names to the boundingBox and contentBox"," *"," * @method _renderBoxClassNames"," * @protected"," */"," _renderBoxClassNames : function() {"," var classes = this._getClasses(),"," cl,"," boundingBox = this.get(BOUNDING_BOX),"," i;",""," boundingBox.addClass(_getWidgetClassName());",""," // Start from Widget Sub Class"," for (i = classes.length-3; i >= 0; i--) {"," cl = classes[i];"," boundingBox.addClass(cl.CSS_PREFIX || _getClassName(cl.NAME.toLowerCase()));"," }",""," // Use instance based name for content box"," this.get(CONTENT_BOX).addClass(this.getClassName(CONTENT));"," },",""," /**"," * Removes class names representative of the widget's loading state from"," * the boundingBox."," *"," * @method _removeLoadingClassNames"," * @protected"," */"," _removeLoadingClassNames: function () {",""," var boundingBox = this.get(BOUNDING_BOX),"," contentBox = this.get(CONTENT_BOX),"," instClass = this.getClassName(LOADING),"," widgetClass = _getWidgetClassName(LOADING);",""," boundingBox.removeClass(widgetClass)"," .removeClass(instClass);",""," contentBox.removeClass(widgetClass)"," .removeClass(instClass);"," },",""," /**"," * Sets up DOM and CustomEvent listeners for the widget."," *"," * @method _bindUI"," * @protected"," */"," _bindUI: function() {"," this._bindAttrUI(this._UI_ATTRS.BIND);"," this._bindDOM();"," },",""," /**"," * @method _unbindUI"," * @protected"," */"," _unbindUI : function(boundingBox) {"," this._unbindDOM(boundingBox);"," },",""," /**"," * Sets up DOM listeners, on elements rendered by the widget."," *"," * @method _bindDOM"," * @protected"," */"," _bindDOM : function() {"," var oDocument = this.get(BOUNDING_BOX).get(OWNER_DOCUMENT),"," focusHandle = Widget._hDocFocus;",""," // Shared listener across all Widgets."," if (!focusHandle) {"," focusHandle = Widget._hDocFocus = oDocument.on(\"focus\", this._onDocFocus, this);"," focusHandle.listeners = {"," count: 0"," };"," }",""," focusHandle.listeners[Y.stamp(this, true)] = true;"," focusHandle.listeners.count++;",""," //\tFix for Webkit:"," //\tDocument doesn't receive focus in Webkit when the user mouses"," //\tdown on it, so the \"focused\" attribute won't get set to the"," //\tcorrect value. Keeping this instance based for now, potential better performance."," // Otherwise we'll end up looking up widgets from the DOM on every mousedown."," if (WEBKIT){"," this._hDocMouseDown = oDocument.on(\"mousedown\", this._onDocMouseDown, this);"," }"," },",""," /**"," * @method _unbindDOM"," * @protected"," */"," _unbindDOM : function(boundingBox) {",""," var focusHandle = Widget._hDocFocus,"," yuid = Y.stamp(this, true),"," focusListeners,"," mouseHandle = this._hDocMouseDown;",""," if (focusHandle) {",""," focusListeners = focusHandle.listeners;",""," if (focusListeners[yuid]) {"," delete focusListeners[yuid];"," focusListeners.count--;"," }",""," if (focusListeners.count === 0) {"," focusHandle.detach();"," Widget._hDocFocus = null;"," }"," }",""," if (WEBKIT && mouseHandle) {"," mouseHandle.detach();"," }"," },",""," /**"," * Updates the widget UI to reflect the attribute state."," *"," * @method _syncUI"," * @protected"," */"," _syncUI: function() {"," this._syncAttrUI(this._UI_ATTRS.SYNC);"," },",""," /**"," * Sets the height on the widget's bounding box element"," *"," * @method _uiSetHeight"," * @protected"," * @param {String | Number} val"," */"," _uiSetHeight: function(val) {"," this._uiSetDim(HEIGHT, val);"," this._uiSizeCB((val !== EMPTY_STR && val !== AUTO));"," },",""," /**"," * Sets the width on the widget's bounding box element"," *"," * @method _uiSetWidth"," * @protected"," * @param {String | Number} val"," */"," _uiSetWidth: function(val) {"," this._uiSetDim(WIDTH, val);"," },",""," /**"," * @method _uiSetDim"," * @private"," * @param {String} dim The dimension - \"width\" or \"height\""," * @param {Number | String} val The value to set"," */"," _uiSetDim: function(dimension, val) {"," this.get(BOUNDING_BOX).setStyle(dimension, L.isNumber(val) ? val + this.DEF_UNIT : val);"," },",""," /**"," * Sets the visible state for the UI"," *"," * @method _uiSetVisible"," * @protected"," * @param {boolean} val"," */"," _uiSetVisible: function(val) {"," this.get(BOUNDING_BOX).toggleClass(this.getClassName(HIDDEN), !val);"," },",""," /**"," * Sets the disabled state for the UI"," *"," * @method _uiSetDisabled"," * @protected"," * @param {boolean} val"," */"," _uiSetDisabled: function(val) {"," this.get(BOUNDING_BOX).toggleClass(this.getClassName(DISABLED), val);"," },",""," /**"," * Sets the focused state for the UI"," *"," * @method _uiSetFocused"," * @protected"," * @param {boolean} val"," * @param {string} src String representing the source that triggered an update to"," * the UI."," */"," _uiSetFocused: function(val, src) {"," var boundingBox = this.get(BOUNDING_BOX);"," boundingBox.toggleClass(this.getClassName(FOCUSED), val);",""," if (src !== UI) {"," if (val) {"," boundingBox.focus();"," } else {"," boundingBox.blur();"," }"," }"," },",""," /**"," * Set the tabIndex on the widget's rendered UI"," *"," * @method _uiSetTabIndex"," * @protected"," * @param Number"," */"," _uiSetTabIndex: function(index) {"," var boundingBox = this.get(BOUNDING_BOX);",""," if (L.isNumber(index)) {"," boundingBox.set(TAB_INDEX, index);"," } else {"," boundingBox.removeAttribute(TAB_INDEX);"," }"," },",""," /**"," * @method _onDocMouseDown"," * @description \"mousedown\" event handler for the owner document of the"," * widget's bounding box."," * @protected"," * @param {EventFacade} evt The event facade for the DOM focus event"," */"," _onDocMouseDown: function (evt) {"," if (this._domFocus) {"," this._onDocFocus(evt);"," }"," },",""," /**"," * DOM focus event handler, used to sync the state of the Widget with the DOM"," *"," * @method _onDocFocus"," * @protected"," * @param {EventFacade} evt The event facade for the DOM focus event"," */"," _onDocFocus: function (evt) {"," var widget = Widget.getByNode(evt.target),"," activeWidget = Widget._active;",""," if (activeWidget && (activeWidget !== widget)) {"," activeWidget._domFocus = false;"," activeWidget._set(FOCUSED, false, {src:UI});",""," Widget._active = null;"," }",""," if (widget) {"," widget._domFocus = true;"," widget._set(FOCUSED, true, {src:UI});",""," Widget._active = widget;"," }"," },",""," /**"," * Generic toString implementation for all widgets."," *"," * @method toString"," * @return {String} The default string value for the widget [ displays the NAME of the instance, and the unique id ]"," */"," toString: function() {"," // Using deprecated name prop for kweight squeeze."," return this.name + \"[\" + this.get(ID) + \"]\";"," },",""," /**"," * Default unit to use for dimension values"," *"," * @property DEF_UNIT"," * @type String"," */"," DEF_UNIT : \"px\",",""," /**"," * Default node to render the bounding box to. If not set,"," * will default to the current document body."," *"," * @property DEF_PARENT_NODE"," * @type String | Node"," */"," DEF_PARENT_NODE : null,",""," /**"," * Property defining the markup template for content box. If your Widget doesn't"," * need the dual boundingBox/contentBox structure, set CONTENT_TEMPLATE to null,"," * and contentBox and boundingBox will both point to the same Node."," *"," * @property CONTENT_TEMPLATE"," * @type String"," */"," CONTENT_TEMPLATE : DIV,",""," /**"," * Property defining the markup template for bounding box."," *"," * @property BOUNDING_TEMPLATE"," * @type String"," */"," BOUNDING_TEMPLATE : DIV,",""," /**"," * @method _guid"," * @protected"," */"," _guid : function() {"," return Y.guid();"," },",""," /**"," * @method _validTabIndex"," * @protected"," * @param {Number} tabIndex"," */"," _validTabIndex : function (tabIndex) {"," return (L.isNumber(tabIndex) || L.isNull(tabIndex));"," },",""," /**"," * Binds after listeners for the list of attributes provided"," *"," * @method _bindAttrUI"," * @private"," * @param {Array} attrs"," */"," _bindAttrUI : function(attrs) {"," var i,"," l = attrs.length;",""," for (i = 0; i < l; i++) {"," this.after(attrs[i] + CHANGE, this._setAttrUI);"," }"," },",""," /**"," * Invokes the _uiSet=ATTR NAME> method for the list of attributes provided"," *"," * @method _syncAttrUI"," * @private"," * @param {Array} attrs"," */"," _syncAttrUI : function(attrs) {"," var i, l = attrs.length, attr;"," for (i = 0; i < l; i++) {"," attr = attrs[i];"," this[_UISET + _toInitialCap(attr)](this.get(attr));"," }"," },",""," /**"," * @method _setAttrUI"," * @private"," * @param {EventFacade} e"," */"," _setAttrUI : function(e) {"," if (e.target === this) {"," this[_UISET + _toInitialCap(e.attrName)](e.newVal, e.src);"," }"," },",""," /**"," * The default setter for the strings attribute. Merges partial sets"," * into the full string set, to allow users to partial sets of strings"," *"," * @method _strSetter"," * @protected"," * @param {Object} strings"," * @return {String} The full set of strings to set"," */"," _strSetter : function(strings) {"," return Y.merge(this.get(STRINGS), strings);"," },",""," /**"," * Helper method to get a specific string value"," *"," * @deprecated Used by deprecated WidgetLocale implementations."," * @method getString"," * @param {String} key"," * @return {String} The string"," */"," getString : function(key) {"," return this.get(STRINGS)[key];"," },",""," /**"," * Helper method to get the complete set of strings for the widget"," *"," * @deprecated Used by deprecated WidgetLocale implementations."," * @method getStrings"," * @param {String} key"," * @return {String} The strings"," */"," getStrings : function() {"," return this.get(STRINGS);"," },",""," /**"," * The lists of UI attributes to bind and sync for widget's _bindUI and _syncUI implementations"," *"," * @property _UI_ATTRS"," * @type Object"," * @private"," */"," _UI_ATTRS : {"," BIND: UI_ATTRS,"," SYNC: UI_ATTRS"," }","});","","Y.Widget = Widget;","","","}, '@VERSION@', {"," \"requires\": ["," \"attribute\","," \"base-base\","," \"base-pluginhost\","," \"classnamemanager\","," \"event-focus\","," \"node-base\","," \"node-style\""," ],"," \"skinnable\": true","});","","}());"]}; + __coverage__['build/widget-base/widget-base.js'] = {"path":"build/widget-base/widget-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,"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},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0,0,0],"20":[0,0],"21":[0,0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0,0],"26":[0,0],"27":[0,0],"28":[0,0],"29":[0,0],"30":[0,0],"31":[0,0],"32":[0,0],"33":[0,0],"34":[0,0],"35":[0,0],"36":[0,0],"37":[0,0],"38":[0,0],"39":[0,0],"40":[0,0],"41":[0,0],"42":[0,0],"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],"54":[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},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":23},"end":{"line":1,"column":42}}},"2":{"name":"(anonymous_2)","line":24,"loc":{"start":{"line":24,"column":29},"end":{"line":24,"column":43}}},"3":{"name":"(anonymous_3)","line":56,"loc":{"start":{"line":56,"column":15},"end":{"line":56,"column":26}}},"4":{"name":"Widget","line":87,"loc":{"start":{"line":87,"column":0},"end":{"line":87,"column":24}}},"5":{"name":"(anonymous_5)","line":323,"loc":{"start":{"line":323,"column":22},"end":{"line":323,"column":33}}},"6":{"name":"(anonymous_6)","line":342,"loc":{"start":{"line":342,"column":19},"end":{"line":342,"column":34}}},"7":{"name":"(anonymous_7)","line":377,"loc":{"start":{"line":377,"column":18},"end":{"line":377,"column":30}}},"8":{"name":"(anonymous_8)","line":389,"loc":{"start":{"line":389,"column":17},"end":{"line":389,"column":34}}},"9":{"name":"(anonymous_9)","line":419,"loc":{"start":{"line":419,"column":19},"end":{"line":419,"column":34}}},"10":{"name":"(anonymous_10)","line":431,"loc":{"start":{"line":431,"column":16},"end":{"line":431,"column":27}}},"11":{"name":"(anonymous_11)","line":462,"loc":{"start":{"line":462,"column":13},"end":{"line":462,"column":39}}},"12":{"name":"(anonymous_12)","line":474,"loc":{"start":{"line":474,"column":18},"end":{"line":474,"column":29}}},"13":{"name":"(anonymous_13)","line":530,"loc":{"start":{"line":530,"column":12},"end":{"line":530,"column":33}}},"14":{"name":"(anonymous_14)","line":569,"loc":{"start":{"line":569,"column":19},"end":{"line":569,"column":31}}},"15":{"name":"(anonymous_15)","line":587,"loc":{"start":{"line":587,"column":14},"end":{"line":587,"column":25}}},"16":{"name":"(anonymous_16)","line":640,"loc":{"start":{"line":640,"column":10},"end":{"line":640,"column":21}}},"17":{"name":"(anonymous_17)","line":649,"loc":{"start":{"line":649,"column":10},"end":{"line":649,"column":21}}},"18":{"name":"(anonymous_18)","line":659,"loc":{"start":{"line":659,"column":11},"end":{"line":659,"column":23}}},"19":{"name":"(anonymous_19)","line":669,"loc":{"start":{"line":669,"column":10},"end":{"line":669,"column":22}}},"20":{"name":"(anonymous_20)","line":678,"loc":{"start":{"line":678,"column":12},"end":{"line":678,"column":23}}},"21":{"name":"(anonymous_21)","line":687,"loc":{"start":{"line":687,"column":13},"end":{"line":687,"column":24}}},"22":{"name":"(anonymous_22)","line":696,"loc":{"start":{"line":696,"column":16},"end":{"line":696,"column":33}}},"23":{"name":"(anonymous_23)","line":712,"loc":{"start":{"line":712,"column":16},"end":{"line":712,"column":37}}},"24":{"name":"(anonymous_24)","line":754,"loc":{"start":{"line":754,"column":12},"end":{"line":754,"column":27}}},"25":{"name":"(anonymous_25)","line":766,"loc":{"start":{"line":766,"column":12},"end":{"line":766,"column":27}}},"26":{"name":"(anonymous_26)","line":782,"loc":{"start":{"line":782,"column":17},"end":{"line":782,"column":28}}},"27":{"name":"(anonymous_27)","line":798,"loc":{"start":{"line":798,"column":17},"end":{"line":798,"column":32}}},"28":{"name":"(anonymous_28)","line":815,"loc":{"start":{"line":815,"column":14},"end":{"line":815,"column":55}}},"29":{"name":"(anonymous_29)","line":842,"loc":{"start":{"line":842,"column":15},"end":{"line":842,"column":26}}},"30":{"name":"(anonymous_30)","line":853,"loc":{"start":{"line":853,"column":27},"end":{"line":853,"column":38}}},"31":{"name":"(anonymous_31)","line":878,"loc":{"start":{"line":878,"column":30},"end":{"line":878,"column":42}}},"32":{"name":"(anonymous_32)","line":898,"loc":{"start":{"line":898,"column":13},"end":{"line":898,"column":24}}},"33":{"name":"(anonymous_33)","line":907,"loc":{"start":{"line":907,"column":16},"end":{"line":907,"column":38}}},"34":{"name":"(anonymous_34)","line":917,"loc":{"start":{"line":917,"column":15},"end":{"line":917,"column":26}}},"35":{"name":"(anonymous_35)","line":946,"loc":{"start":{"line":946,"column":17},"end":{"line":946,"column":39}}},"36":{"name":"(anonymous_36)","line":979,"loc":{"start":{"line":979,"column":13},"end":{"line":979,"column":24}}},"37":{"name":"(anonymous_37)","line":990,"loc":{"start":{"line":990,"column":18},"end":{"line":990,"column":32}}},"38":{"name":"(anonymous_38)","line":1002,"loc":{"start":{"line":1002,"column":17},"end":{"line":1002,"column":31}}},"39":{"name":"(anonymous_39)","line":1012,"loc":{"start":{"line":1012,"column":15},"end":{"line":1012,"column":40}}},"40":{"name":"(anonymous_40)","line":1023,"loc":{"start":{"line":1023,"column":19},"end":{"line":1023,"column":33}}},"41":{"name":"(anonymous_41)","line":1034,"loc":{"start":{"line":1034,"column":20},"end":{"line":1034,"column":34}}},"42":{"name":"(anonymous_42)","line":1047,"loc":{"start":{"line":1047,"column":19},"end":{"line":1047,"column":38}}},"43":{"name":"(anonymous_43)","line":1067,"loc":{"start":{"line":1067,"column":20},"end":{"line":1067,"column":36}}},"44":{"name":"(anonymous_44)","line":1084,"loc":{"start":{"line":1084,"column":21},"end":{"line":1084,"column":36}}},"45":{"name":"(anonymous_45)","line":1097,"loc":{"start":{"line":1097,"column":17},"end":{"line":1097,"column":32}}},"46":{"name":"(anonymous_46)","line":1122,"loc":{"start":{"line":1122,"column":14},"end":{"line":1122,"column":25}}},"47":{"name":"(anonymous_47)","line":1166,"loc":{"start":{"line":1166,"column":12},"end":{"line":1166,"column":23}}},"48":{"name":"(anonymous_48)","line":1175,"loc":{"start":{"line":1175,"column":21},"end":{"line":1175,"column":41}}},"49":{"name":"(anonymous_49)","line":1186,"loc":{"start":{"line":1186,"column":18},"end":{"line":1186,"column":34}}},"50":{"name":"(anonymous_50)","line":1202,"loc":{"start":{"line":1202,"column":18},"end":{"line":1202,"column":34}}},"51":{"name":"(anonymous_51)","line":1215,"loc":{"start":{"line":1215,"column":17},"end":{"line":1215,"column":29}}},"52":{"name":"(anonymous_52)","line":1230,"loc":{"start":{"line":1230,"column":17},"end":{"line":1230,"column":35}}},"53":{"name":"(anonymous_53)","line":1242,"loc":{"start":{"line":1242,"column":16},"end":{"line":1242,"column":30}}},"54":{"name":"(anonymous_54)","line":1254,"loc":{"start":{"line":1254,"column":17},"end":{"line":1254,"column":28}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1285,"column":3}},"2":{"start":{"line":16,"column":0},"end":{"line":68,"column":38}},"3":{"start":{"line":25,"column":8},"end":{"line":25,"column":68}},"4":{"start":{"line":87,"column":0},"end":{"line":112,"column":1}},"5":{"start":{"line":90,"column":4},"end":{"line":93,"column":41}},"6":{"start":{"line":95,"column":4},"end":{"line":95,"column":22}},"7":{"start":{"line":96,"column":4},"end":{"line":96,"column":96}},"8":{"start":{"line":99,"column":4},"end":{"line":99,"column":26}},"9":{"start":{"line":101,"column":4},"end":{"line":101,"column":55}},"10":{"start":{"line":103,"column":4},"end":{"line":103,"column":32}},"11":{"start":{"line":105,"column":4},"end":{"line":111,"column":5}},"12":{"start":{"line":107,"column":8},"end":{"line":109,"column":9}},"13":{"start":{"line":108,"column":12},"end":{"line":108,"column":32}},"14":{"start":{"line":110,"column":8},"end":{"line":110,"column":34}},"15":{"start":{"line":125,"column":0},"end":{"line":125,"column":23}},"16":{"start":{"line":136,"column":0},"end":{"line":136,"column":26}},"17":{"start":{"line":146,"column":0},"end":{"line":146,"column":21}},"18":{"start":{"line":157,"column":0},"end":{"line":160,"column":2}},"19":{"start":{"line":171,"column":0},"end":{"line":174,"column":2}},"20":{"start":{"line":184,"column":0},"end":{"line":188,"column":2}},"21":{"start":{"line":197,"column":0},"end":{"line":201,"column":2}},"22":{"start":{"line":214,"column":0},"end":{"line":217,"column":2}},"23":{"start":{"line":227,"column":0},"end":{"line":230,"column":2}},"24":{"start":{"line":239,"column":0},"end":{"line":241,"column":2}},"25":{"start":{"line":249,"column":0},"end":{"line":251,"column":2}},"26":{"start":{"line":260,"column":0},"end":{"line":262,"column":2}},"27":{"start":{"line":271,"column":0},"end":{"line":273,"column":2}},"28":{"start":{"line":281,"column":0},"end":{"line":285,"column":2}},"29":{"start":{"line":294,"column":0},"end":{"line":297,"column":2}},"30":{"start":{"line":308,"column":0},"end":{"line":308,"column":61}},"31":{"start":{"line":323,"column":0},"end":{"line":326,"column":2}},"32":{"start":{"line":325,"column":4},"end":{"line":325,"column":103}},"33":{"start":{"line":328,"column":0},"end":{"line":328,"column":42}},"34":{"start":{"line":342,"column":0},"end":{"line":355,"column":2}},"35":{"start":{"line":343,"column":4},"end":{"line":344,"column":45}},"36":{"start":{"line":346,"column":4},"end":{"line":346,"column":26}},"37":{"start":{"line":347,"column":4},"end":{"line":352,"column":5}},"38":{"start":{"line":348,"column":8},"end":{"line":348,"column":55}},"39":{"start":{"line":349,"column":8},"end":{"line":351,"column":9}},"40":{"start":{"line":350,"column":12},"end":{"line":350,"column":42}},"41":{"start":{"line":354,"column":4},"end":{"line":354,"column":26}},"42":{"start":{"line":357,"column":0},"end":{"line":1269,"column":3}},"43":{"start":{"line":378,"column":8},"end":{"line":378,"column":105}},"44":{"start":{"line":391,"column":8},"end":{"line":391,"column":40}},"45":{"start":{"line":393,"column":8},"end":{"line":395,"column":9}},"46":{"start":{"line":394,"column":12},"end":{"line":394,"column":34}},"47":{"start":{"line":420,"column":8},"end":{"line":420,"column":35}},"48":{"start":{"line":433,"column":8},"end":{"line":434,"column":19}},"49":{"start":{"line":436,"column":8},"end":{"line":440,"column":9}},"50":{"start":{"line":437,"column":12},"end":{"line":437,"column":43}},"51":{"start":{"line":439,"column":12},"end":{"line":439,"column":31}},"52":{"start":{"line":463,"column":8},"end":{"line":463,"column":48}},"53":{"start":{"line":464,"column":8},"end":{"line":464,"column":53}},"54":{"start":{"line":476,"column":8},"end":{"line":479,"column":17}},"55":{"start":{"line":481,"column":8},"end":{"line":481,"column":64}},"56":{"start":{"line":483,"column":8},"end":{"line":485,"column":9}},"57":{"start":{"line":484,"column":12},"end":{"line":484,"column":36}},"58":{"start":{"line":487,"column":8},"end":{"line":487,"column":36}},"59":{"start":{"line":489,"column":8},"end":{"line":494,"column":9}},"60":{"start":{"line":490,"column":12},"end":{"line":492,"column":13}},"61":{"start":{"line":491,"column":16},"end":{"line":491,"column":35}},"62":{"start":{"line":493,"column":12},"end":{"line":493,"column":36}},"63":{"start":{"line":496,"column":8},"end":{"line":501,"column":9}},"64":{"start":{"line":497,"column":12},"end":{"line":499,"column":13}},"65":{"start":{"line":498,"column":16},"end":{"line":498,"column":36}},"66":{"start":{"line":500,"column":12},"end":{"line":500,"column":37}},"67":{"start":{"line":532,"column":8},"end":{"line":557,"column":9}},"68":{"start":{"line":549,"column":12},"end":{"line":554,"column":15}},"69":{"start":{"line":556,"column":12},"end":{"line":556,"column":88}},"70":{"start":{"line":558,"column":8},"end":{"line":558,"column":20}},"71":{"start":{"line":570,"column":8},"end":{"line":570,"column":40}},"72":{"start":{"line":572,"column":8},"end":{"line":572,"column":24}},"73":{"start":{"line":573,"column":8},"end":{"line":573,"column":34}},"74":{"start":{"line":575,"column":8},"end":{"line":575,"column":40}},"75":{"start":{"line":589,"column":8},"end":{"line":589,"column":26}},"76":{"start":{"line":591,"column":8},"end":{"line":591,"column":27}},"77":{"start":{"line":592,"column":8},"end":{"line":592,"column":26}},"78":{"start":{"line":594,"column":8},"end":{"line":594,"column":25}},"79":{"start":{"line":595,"column":8},"end":{"line":595,"column":24}},"80":{"start":{"line":597,"column":8},"end":{"line":597,"column":25}},"81":{"start":{"line":598,"column":8},"end":{"line":598,"column":24}},"82":{"start":{"line":641,"column":8},"end":{"line":641,"column":40}},"83":{"start":{"line":650,"column":8},"end":{"line":650,"column":39}},"84":{"start":{"line":660,"column":8},"end":{"line":660,"column":40}},"85":{"start":{"line":670,"column":8},"end":{"line":670,"column":41}},"86":{"start":{"line":679,"column":8},"end":{"line":679,"column":41}},"87":{"start":{"line":688,"column":8},"end":{"line":688,"column":40}},"88":{"start":{"line":697,"column":8},"end":{"line":697,"column":92}},"89":{"start":{"line":716,"column":8},"end":{"line":722,"column":128}},"90":{"start":{"line":725,"column":8},"end":{"line":727,"column":9}},"91":{"start":{"line":726,"column":12},"end":{"line":726,"column":40}},"92":{"start":{"line":729,"column":8},"end":{"line":735,"column":9}},"93":{"start":{"line":731,"column":12},"end":{"line":733,"column":13}},"94":{"start":{"line":732,"column":16},"end":{"line":732,"column":48}},"95":{"start":{"line":734,"column":12},"end":{"line":734,"column":48}},"96":{"start":{"line":737,"column":8},"end":{"line":737,"column":78}},"97":{"start":{"line":739,"column":8},"end":{"line":743,"column":9}},"98":{"start":{"line":740,"column":12},"end":{"line":740,"column":48}},"99":{"start":{"line":741,"column":15},"end":{"line":743,"column":9}},"100":{"start":{"line":742,"column":12},"end":{"line":742,"column":50}},"101":{"start":{"line":755,"column":8},"end":{"line":755,"column":78}},"102":{"start":{"line":767,"column":8},"end":{"line":767,"column":130}},"103":{"start":{"line":783,"column":8},"end":{"line":784,"column":54}},"104":{"start":{"line":786,"column":8},"end":{"line":786,"column":48}},"105":{"start":{"line":799,"column":8},"end":{"line":799,"column":42}},"106":{"start":{"line":817,"column":8},"end":{"line":817,"column":30}},"107":{"start":{"line":819,"column":8},"end":{"line":827,"column":9}},"108":{"start":{"line":820,"column":12},"end":{"line":820,"column":41}},"109":{"start":{"line":822,"column":12},"end":{"line":826,"column":13}},"110":{"start":{"line":823,"column":16},"end":{"line":823,"column":44}},"111":{"start":{"line":825,"column":16},"end":{"line":825,"column":44}},"112":{"start":{"line":829,"column":8},"end":{"line":831,"column":9}},"113":{"start":{"line":830,"column":12},"end":{"line":830,"column":41}},"114":{"start":{"line":833,"column":8},"end":{"line":833,"column":20}},"115":{"start":{"line":843,"column":8},"end":{"line":843,"column":36}},"116":{"start":{"line":844,"column":8},"end":{"line":844,"column":42}},"117":{"start":{"line":854,"column":8},"end":{"line":857,"column":14}},"118":{"start":{"line":859,"column":8},"end":{"line":859,"column":52}},"119":{"start":{"line":862,"column":8},"end":{"line":865,"column":9}},"120":{"start":{"line":863,"column":12},"end":{"line":863,"column":28}},"121":{"start":{"line":864,"column":12},"end":{"line":864,"column":88}},"122":{"start":{"line":868,"column":8},"end":{"line":868,"column":67}},"123":{"start":{"line":880,"column":8},"end":{"line":883,"column":55}},"124":{"start":{"line":885,"column":8},"end":{"line":886,"column":43}},"125":{"start":{"line":888,"column":8},"end":{"line":889,"column":42}},"126":{"start":{"line":899,"column":8},"end":{"line":899,"column":46}},"127":{"start":{"line":900,"column":8},"end":{"line":900,"column":24}},"128":{"start":{"line":908,"column":8},"end":{"line":908,"column":37}},"129":{"start":{"line":918,"column":8},"end":{"line":919,"column":44}},"130":{"start":{"line":922,"column":8},"end":{"line":927,"column":9}},"131":{"start":{"line":923,"column":12},"end":{"line":923,"column":92}},"132":{"start":{"line":924,"column":12},"end":{"line":926,"column":14}},"133":{"start":{"line":929,"column":8},"end":{"line":929,"column":58}},"134":{"start":{"line":930,"column":8},"end":{"line":930,"column":38}},"135":{"start":{"line":937,"column":8},"end":{"line":939,"column":9}},"136":{"start":{"line":938,"column":12},"end":{"line":938,"column":88}},"137":{"start":{"line":948,"column":8},"end":{"line":951,"column":46}},"138":{"start":{"line":953,"column":8},"end":{"line":966,"column":9}},"139":{"start":{"line":955,"column":12},"end":{"line":955,"column":51}},"140":{"start":{"line":957,"column":12},"end":{"line":960,"column":13}},"141":{"start":{"line":958,"column":16},"end":{"line":958,"column":44}},"142":{"start":{"line":959,"column":16},"end":{"line":959,"column":39}},"143":{"start":{"line":962,"column":12},"end":{"line":965,"column":13}},"144":{"start":{"line":963,"column":16},"end":{"line":963,"column":37}},"145":{"start":{"line":964,"column":16},"end":{"line":964,"column":41}},"146":{"start":{"line":968,"column":8},"end":{"line":970,"column":9}},"147":{"start":{"line":969,"column":12},"end":{"line":969,"column":33}},"148":{"start":{"line":980,"column":8},"end":{"line":980,"column":46}},"149":{"start":{"line":991,"column":8},"end":{"line":991,"column":36}},"150":{"start":{"line":992,"column":8},"end":{"line":992,"column":60}},"151":{"start":{"line":1003,"column":8},"end":{"line":1003,"column":35}},"152":{"start":{"line":1013,"column":8},"end":{"line":1013,"column":96}},"153":{"start":{"line":1024,"column":8},"end":{"line":1024,"column":76}},"154":{"start":{"line":1035,"column":8},"end":{"line":1035,"column":77}},"155":{"start":{"line":1048,"column":9},"end":{"line":1048,"column":50}},"156":{"start":{"line":1049,"column":9},"end":{"line":1049,"column":66}},"157":{"start":{"line":1051,"column":9},"end":{"line":1057,"column":10}},"158":{"start":{"line":1052,"column":12},"end":{"line":1056,"column":13}},"159":{"start":{"line":1053,"column":16},"end":{"line":1053,"column":36}},"160":{"start":{"line":1055,"column":16},"end":{"line":1055,"column":35}},"161":{"start":{"line":1068,"column":8},"end":{"line":1068,"column":49}},"162":{"start":{"line":1070,"column":8},"end":{"line":1074,"column":9}},"163":{"start":{"line":1071,"column":12},"end":{"line":1071,"column":46}},"164":{"start":{"line":1073,"column":12},"end":{"line":1073,"column":51}},"165":{"start":{"line":1085,"column":8},"end":{"line":1087,"column":9}},"166":{"start":{"line":1086,"column":12},"end":{"line":1086,"column":34}},"167":{"start":{"line":1098,"column":8},"end":{"line":1099,"column":42}},"168":{"start":{"line":1101,"column":8},"end":{"line":1106,"column":9}},"169":{"start":{"line":1102,"column":12},"end":{"line":1102,"column":43}},"170":{"start":{"line":1103,"column":12},"end":{"line":1103,"column":56}},"171":{"start":{"line":1105,"column":12},"end":{"line":1105,"column":34}},"172":{"start":{"line":1108,"column":8},"end":{"line":1113,"column":9}},"173":{"start":{"line":1109,"column":12},"end":{"line":1109,"column":36}},"174":{"start":{"line":1110,"column":12},"end":{"line":1110,"column":49}},"175":{"start":{"line":1112,"column":12},"end":{"line":1112,"column":36}},"176":{"start":{"line":1124,"column":8},"end":{"line":1124,"column":52}},"177":{"start":{"line":1167,"column":8},"end":{"line":1167,"column":24}},"178":{"start":{"line":1176,"column":8},"end":{"line":1176,"column":60}},"179":{"start":{"line":1187,"column":8},"end":{"line":1188,"column":29}},"180":{"start":{"line":1190,"column":8},"end":{"line":1192,"column":9}},"181":{"start":{"line":1191,"column":12},"end":{"line":1191,"column":59}},"182":{"start":{"line":1203,"column":8},"end":{"line":1203,"column":38}},"183":{"start":{"line":1204,"column":8},"end":{"line":1207,"column":9}},"184":{"start":{"line":1205,"column":12},"end":{"line":1205,"column":28}},"185":{"start":{"line":1206,"column":12},"end":{"line":1206,"column":63}},"186":{"start":{"line":1216,"column":8},"end":{"line":1218,"column":9}},"187":{"start":{"line":1217,"column":12},"end":{"line":1217,"column":70}},"188":{"start":{"line":1231,"column":8},"end":{"line":1231,"column":51}},"189":{"start":{"line":1243,"column":8},"end":{"line":1243,"column":38}},"190":{"start":{"line":1255,"column":8},"end":{"line":1255,"column":33}},"191":{"start":{"line":1271,"column":0},"end":{"line":1271,"column":18}}},"branchMap":{"1":{"line":96,"type":"binary-expr","locations":[{"start":{"line":96,"column":24},"end":{"line":96,"column":46}},{"start":{"line":96,"column":50},"end":{"line":96,"column":95}}]},"2":{"line":99,"type":"binary-expr","locations":[{"start":{"line":99,"column":13},"end":{"line":99,"column":19}},{"start":{"line":99,"column":23},"end":{"line":99,"column":25}}]},"3":{"line":105,"type":"if","locations":[{"start":{"line":105,"column":4},"end":{"line":105,"column":4}},{"start":{"line":105,"column":4},"end":{"line":105,"column":4}}]},"4":{"line":107,"type":"if","locations":[{"start":{"line":107,"column":8},"end":{"line":107,"column":8}},{"start":{"line":107,"column":8},"end":{"line":107,"column":8}}]},"5":{"line":347,"type":"if","locations":[{"start":{"line":347,"column":4},"end":{"line":347,"column":4}},{"start":{"line":347,"column":4},"end":{"line":347,"column":4}}]},"6":{"line":349,"type":"if","locations":[{"start":{"line":349,"column":8},"end":{"line":349,"column":8}},{"start":{"line":349,"column":8},"end":{"line":349,"column":8}}]},"7":{"line":354,"type":"binary-expr","locations":[{"start":{"line":354,"column":11},"end":{"line":354,"column":17}},{"start":{"line":354,"column":21},"end":{"line":354,"column":25}}]},"8":{"line":393,"type":"if","locations":[{"start":{"line":393,"column":8},"end":{"line":393,"column":8}},{"start":{"line":393,"column":8},"end":{"line":393,"column":8}}]},"9":{"line":436,"type":"if","locations":[{"start":{"line":436,"column":8},"end":{"line":436,"column":8}},{"start":{"line":436,"column":8},"end":{"line":436,"column":8}}]},"10":{"line":481,"type":"binary-expr","locations":[{"start":{"line":481,"column":15},"end":{"line":481,"column":26}},{"start":{"line":481,"column":30},"end":{"line":481,"column":63}}]},"11":{"line":483,"type":"if","locations":[{"start":{"line":483,"column":8},"end":{"line":483,"column":8}},{"start":{"line":483,"column":8},"end":{"line":483,"column":8}}]},"12":{"line":489,"type":"if","locations":[{"start":{"line":489,"column":8},"end":{"line":489,"column":8}},{"start":{"line":489,"column":8},"end":{"line":489,"column":8}}]},"13":{"line":490,"type":"if","locations":[{"start":{"line":490,"column":12},"end":{"line":490,"column":12}},{"start":{"line":490,"column":12},"end":{"line":490,"column":12}}]},"14":{"line":496,"type":"if","locations":[{"start":{"line":496,"column":8},"end":{"line":496,"column":8}},{"start":{"line":496,"column":8},"end":{"line":496,"column":8}}]},"15":{"line":497,"type":"if","locations":[{"start":{"line":497,"column":12},"end":{"line":497,"column":12}},{"start":{"line":497,"column":12},"end":{"line":497,"column":12}}]},"16":{"line":532,"type":"if","locations":[{"start":{"line":532,"column":8},"end":{"line":532,"column":8}},{"start":{"line":532,"column":8},"end":{"line":532,"column":8}}]},"17":{"line":532,"type":"binary-expr","locations":[{"start":{"line":532,"column":12},"end":{"line":532,"column":32}},{"start":{"line":532,"column":36},"end":{"line":532,"column":55}}]},"18":{"line":556,"type":"cond-expr","locations":[{"start":{"line":556,"column":58},"end":{"line":556,"column":78}},{"start":{"line":556,"column":81},"end":{"line":556,"column":85}}]},"19":{"line":722,"type":"binary-expr","locations":[{"start":{"line":722,"column":19},"end":{"line":722,"column":26}},{"start":{"line":722,"column":30},"end":{"line":722,"column":57}},{"start":{"line":722,"column":62},"end":{"line":722,"column":93}},{"start":{"line":722,"column":97},"end":{"line":722,"column":127}}]},"20":{"line":725,"type":"if","locations":[{"start":{"line":725,"column":8},"end":{"line":725,"column":8}},{"start":{"line":725,"column":8},"end":{"line":725,"column":8}}]},"21":{"line":725,"type":"binary-expr","locations":[{"start":{"line":725,"column":12},"end":{"line":725,"column":19}},{"start":{"line":725,"column":23},"end":{"line":725,"column":53}},{"start":{"line":725,"column":57},"end":{"line":725,"column":79}}]},"22":{"line":729,"type":"if","locations":[{"start":{"line":729,"column":8},"end":{"line":729,"column":8}},{"start":{"line":729,"column":8},"end":{"line":729,"column":8}}]},"23":{"line":729,"type":"binary-expr","locations":[{"start":{"line":729,"column":12},"end":{"line":729,"column":63}},{"start":{"line":729,"column":67},"end":{"line":729,"column":101}}]},"24":{"line":731,"type":"if","locations":[{"start":{"line":731,"column":12},"end":{"line":731,"column":12}},{"start":{"line":731,"column":12},"end":{"line":731,"column":12}}]},"25":{"line":737,"type":"binary-expr","locations":[{"start":{"line":737,"column":21},"end":{"line":737,"column":31}},{"start":{"line":737,"column":36},"end":{"line":737,"column":49}},{"start":{"line":737,"column":53},"end":{"line":737,"column":76}}]},"26":{"line":739,"type":"if","locations":[{"start":{"line":739,"column":8},"end":{"line":739,"column":8}},{"start":{"line":739,"column":8},"end":{"line":739,"column":8}}]},"27":{"line":741,"type":"if","locations":[{"start":{"line":741,"column":15},"end":{"line":741,"column":15}},{"start":{"line":741,"column":15},"end":{"line":741,"column":15}}]},"28":{"line":767,"type":"cond-expr","locations":[{"start":{"line":767,"column":50},"end":{"line":767,"column":72}},{"start":{"line":767,"column":75},"end":{"line":767,"column":129}}]},"29":{"line":786,"type":"cond-expr","locations":[{"start":{"line":786,"column":35},"end":{"line":786,"column":39}},{"start":{"line":786,"column":42},"end":{"line":786,"column":46}}]},"30":{"line":786,"type":"binary-expr","locations":[{"start":{"line":786,"column":17},"end":{"line":786,"column":21}},{"start":{"line":786,"column":25},"end":{"line":786,"column":31}}]},"31":{"line":799,"type":"binary-expr","locations":[{"start":{"line":799,"column":15},"end":{"line":799,"column":33}},{"start":{"line":799,"column":37},"end":{"line":799,"column":41}}]},"32":{"line":819,"type":"if","locations":[{"start":{"line":819,"column":8},"end":{"line":819,"column":8}},{"start":{"line":819,"column":8},"end":{"line":819,"column":8}}]},"33":{"line":822,"type":"if","locations":[{"start":{"line":822,"column":12},"end":{"line":822,"column":12}},{"start":{"line":822,"column":12},"end":{"line":822,"column":12}}]},"34":{"line":829,"type":"if","locations":[{"start":{"line":829,"column":8},"end":{"line":829,"column":8}},{"start":{"line":829,"column":8},"end":{"line":829,"column":8}}]},"35":{"line":830,"type":"binary-expr","locations":[{"start":{"line":830,"column":25},"end":{"line":830,"column":27}},{"start":{"line":830,"column":31},"end":{"line":830,"column":39}}]},"36":{"line":864,"type":"binary-expr","locations":[{"start":{"line":864,"column":33},"end":{"line":864,"column":46}},{"start":{"line":864,"column":50},"end":{"line":864,"column":86}}]},"37":{"line":922,"type":"if","locations":[{"start":{"line":922,"column":8},"end":{"line":922,"column":8}},{"start":{"line":922,"column":8},"end":{"line":922,"column":8}}]},"38":{"line":937,"type":"if","locations":[{"start":{"line":937,"column":8},"end":{"line":937,"column":8}},{"start":{"line":937,"column":8},"end":{"line":937,"column":8}}]},"39":{"line":953,"type":"if","locations":[{"start":{"line":953,"column":8},"end":{"line":953,"column":8}},{"start":{"line":953,"column":8},"end":{"line":953,"column":8}}]},"40":{"line":957,"type":"if","locations":[{"start":{"line":957,"column":12},"end":{"line":957,"column":12}},{"start":{"line":957,"column":12},"end":{"line":957,"column":12}}]},"41":{"line":962,"type":"if","locations":[{"start":{"line":962,"column":12},"end":{"line":962,"column":12}},{"start":{"line":962,"column":12},"end":{"line":962,"column":12}}]},"42":{"line":968,"type":"if","locations":[{"start":{"line":968,"column":8},"end":{"line":968,"column":8}},{"start":{"line":968,"column":8},"end":{"line":968,"column":8}}]},"43":{"line":968,"type":"binary-expr","locations":[{"start":{"line":968,"column":12},"end":{"line":968,"column":18}},{"start":{"line":968,"column":22},"end":{"line":968,"column":33}}]},"44":{"line":992,"type":"binary-expr","locations":[{"start":{"line":992,"column":24},"end":{"line":992,"column":41}},{"start":{"line":992,"column":45},"end":{"line":992,"column":57}}]},"45":{"line":1013,"type":"cond-expr","locations":[{"start":{"line":1013,"column":69},"end":{"line":1013,"column":88}},{"start":{"line":1013,"column":91},"end":{"line":1013,"column":94}}]},"46":{"line":1051,"type":"if","locations":[{"start":{"line":1051,"column":9},"end":{"line":1051,"column":9}},{"start":{"line":1051,"column":9},"end":{"line":1051,"column":9}}]},"47":{"line":1052,"type":"if","locations":[{"start":{"line":1052,"column":12},"end":{"line":1052,"column":12}},{"start":{"line":1052,"column":12},"end":{"line":1052,"column":12}}]},"48":{"line":1070,"type":"if","locations":[{"start":{"line":1070,"column":8},"end":{"line":1070,"column":8}},{"start":{"line":1070,"column":8},"end":{"line":1070,"column":8}}]},"49":{"line":1085,"type":"if","locations":[{"start":{"line":1085,"column":8},"end":{"line":1085,"column":8}},{"start":{"line":1085,"column":8},"end":{"line":1085,"column":8}}]},"50":{"line":1101,"type":"if","locations":[{"start":{"line":1101,"column":8},"end":{"line":1101,"column":8}},{"start":{"line":1101,"column":8},"end":{"line":1101,"column":8}}]},"51":{"line":1101,"type":"binary-expr","locations":[{"start":{"line":1101,"column":12},"end":{"line":1101,"column":24}},{"start":{"line":1101,"column":29},"end":{"line":1101,"column":52}}]},"52":{"line":1108,"type":"if","locations":[{"start":{"line":1108,"column":8},"end":{"line":1108,"column":8}},{"start":{"line":1108,"column":8},"end":{"line":1108,"column":8}}]},"53":{"line":1176,"type":"binary-expr","locations":[{"start":{"line":1176,"column":16},"end":{"line":1176,"column":36}},{"start":{"line":1176,"column":40},"end":{"line":1176,"column":58}}]},"54":{"line":1216,"type":"if","locations":[{"start":{"line":1216,"column":8},"end":{"line":1216,"column":8}},{"start":{"line":1216,"column":8},"end":{"line":1216,"column":8}}]}},"code":["(function () { YUI.add('widget-base', function (Y, NAME) {","","/**"," * Provides the base Widget class, with HTML Parser support"," *"," * @module widget"," * @main widget"," */","","/**"," * Provides the base Widget class"," *"," * @module widget"," * @submodule widget-base"," */","var L = Y.Lang,"," Node = Y.Node,",""," ClassNameManager = Y.ClassNameManager,",""," _getClassName = ClassNameManager.getClassName,"," _getWidgetClassName,",""," _toInitialCap = Y.cached(function(str) {"," return str.substring(0, 1).toUpperCase() + str.substring(1);"," }),",""," // K-Weight, IE GC optimizations"," CONTENT = \"content\","," VISIBLE = \"visible\","," HIDDEN = \"hidden\","," DISABLED = \"disabled\","," FOCUSED = \"focused\","," WIDTH = \"width\","," HEIGHT = \"height\","," BOUNDING_BOX = \"boundingBox\","," CONTENT_BOX = \"contentBox\","," PARENT_NODE = \"parentNode\","," OWNER_DOCUMENT = \"ownerDocument\","," AUTO = \"auto\","," SRC_NODE = \"srcNode\","," BODY = \"body\","," TAB_INDEX = \"tabIndex\","," ID = \"id\","," RENDER = \"render\","," RENDERED = \"rendered\","," DESTROYED = \"destroyed\","," STRINGS = \"strings\","," DIV = \"
\","," CHANGE = \"Change\","," LOADING = \"loading\",",""," _UISET = \"_uiSet\",",""," EMPTY_STR = \"\","," EMPTY_FN = function() {},",""," TRUE = true,"," FALSE = false,",""," UI,"," ATTRS = {},"," UI_ATTRS = [VISIBLE, DISABLED, HEIGHT, WIDTH, FOCUSED, TAB_INDEX],",""," WEBKIT = Y.UA.webkit,",""," // Widget node-to-instance map."," _instances = new Y.Node.WeakMap();","","/**"," * A base class for widgets, providing:"," *
    "," *
  • The render lifecycle method, in addition to the init and destroy"," * lifecycle methods provide by Base
  • "," *
  • Abstract methods to support consistent MVC structure across"," * widgets: renderer, renderUI, bindUI, syncUI
  • "," *
  • Support for common widget attributes, such as boundingBox, contentBox, visible,"," * disabled, focused, strings
  • "," *
"," *"," * @param config {Object} Object literal specifying widget configuration properties."," *"," * @class Widget"," * @constructor"," * @extends Base"," */","function Widget(config) {",""," // kweight"," var widget = this,"," parentNode,"," render,"," constructor = widget.constructor;",""," widget._strs = {};"," widget._cssPrefix = constructor.CSS_PREFIX || _getClassName(constructor.NAME.toLowerCase());",""," // We need a config for HTML_PARSER to work."," config = config || {};",""," Widget.superclass.constructor.call(widget, config);",""," render = widget.get(RENDER);",""," if (render) {"," // Render could be a node or boolean"," if (render !== TRUE) {"," parentNode = render;"," }"," widget.render(parentNode);"," }","}","","/**"," * Static property provides a string to identify the class."," *

"," * Currently used to apply class identifiers to the bounding box"," * and to classify events fired by the widget."," *

"," *"," * @property NAME"," * @type String"," * @static"," */","Widget.NAME = \"widget\";","","/**"," * Constant used to identify state changes originating from"," * the DOM (as opposed to the JavaScript model)."," *"," * @property UI_SRC"," * @type String"," * @static"," * @final"," */","UI = Widget.UI_SRC = \"ui\";","","/**"," * Static property used to define the default attribute"," * configuration for the Widget."," *"," * @property ATTRS"," * @type Object"," * @static"," */","Widget.ATTRS = ATTRS;","","// Trying to optimize kweight by setting up attrs this way saves about 0.4K min'd","","/**"," * @attribute id"," * @writeOnce"," * @default Generated using guid()"," * @type String"," */","","ATTRS[ID] = {"," valueFn: \"_guid\","," writeOnce: TRUE","};","","/**"," * Flag indicating whether or not this Widget"," * has been through the render lifecycle phase."," *"," * @attribute rendered"," * @readOnly"," * @default false"," * @type boolean"," */","ATTRS[RENDERED] = {"," value:FALSE,"," readOnly: TRUE","};","","/**"," * @attribute boundingBox"," * @description The outermost DOM node for the Widget, used for sizing and positioning"," * of a Widget as well as a containing element for any decorator elements used"," * for skinning."," * @type String | Node"," * @writeOnce"," */","ATTRS[BOUNDING_BOX] = {"," valueFn:\"_defaultBB\","," setter: \"_setBB\","," writeOnce: TRUE","};","","/**"," * @attribute contentBox"," * @description A DOM node that is a direct descendant of a Widget's bounding box that"," * houses its content."," * @type String | Node"," * @writeOnce"," */","ATTRS[CONTENT_BOX] = {"," valueFn:\"_defaultCB\","," setter: \"_setCB\","," writeOnce: TRUE","};","","/**"," * @attribute tabIndex"," * @description Number (between -32767 to 32767) indicating the widget's"," * position in the default tab flow. The value is used to set the"," * \"tabIndex\" attribute on the widget's bounding box. Negative values allow"," * the widget to receive DOM focus programmatically (by calling the focus"," * method), while being removed from the default tab flow. A value of"," * null removes the \"tabIndex\" attribute from the widget's bounding box."," * @type Number"," * @default null"," */","ATTRS[TAB_INDEX] = {"," value: null,"," validator: \"_validTabIndex\"","};","","/**"," * @attribute focused"," * @description Boolean indicating if the Widget, or one of its descendants,"," * has focus."," * @readOnly"," * @default false"," * @type boolean"," */","ATTRS[FOCUSED] = {"," value: FALSE,"," readOnly:TRUE","};","","/**"," * @attribute disabled"," * @description Boolean indicating if the Widget should be disabled. The disabled implementation"," * is left to the specific classes extending widget."," * @default false"," * @type boolean"," */","ATTRS[DISABLED] = {"," value: FALSE","};","","/**"," * @attribute visible"," * @description Boolean indicating whether or not the Widget is visible."," * @default TRUE"," * @type boolean"," */","ATTRS[VISIBLE] = {"," value: TRUE","};","","/**"," * @attribute height"," * @description String with units, or number, representing the height of the Widget. If a number is provided,"," * the default unit, defined by the Widgets DEF_UNIT, property is used."," * @default EMPTY_STR"," * @type {String | Number}"," */","ATTRS[HEIGHT] = {"," value: EMPTY_STR","};","","/**"," * @attribute width"," * @description String with units, or number, representing the width of the Widget. If a number is provided,"," * the default unit, defined by the Widgets DEF_UNIT, property is used."," * @default EMPTY_STR"," * @type {String | Number}"," */","ATTRS[WIDTH] = {"," value: EMPTY_STR","};","","/**"," * @attribute strings"," * @description Collection of strings used to label elements of the Widget's UI."," * @default null"," * @type Object"," */","ATTRS[STRINGS] = {"," value: {},"," setter: \"_strSetter\","," getter: \"_strGetter\"","};","","/**"," * Whether or not to render the widget automatically after init, and optionally, to which parent node."," *"," * @attribute render"," * @type boolean | Node"," * @writeOnce"," */","ATTRS[RENDER] = {"," value:FALSE,"," writeOnce:TRUE","};","","/**"," * The css prefix which the static Widget.getClassName method should use when constructing class names"," *"," * @property CSS_PREFIX"," * @type String"," * @default Widget.NAME.toLowerCase()"," * @private"," * @static"," */","Widget.CSS_PREFIX = _getClassName(Widget.NAME.toLowerCase());","","/**"," * Generate a standard prefixed classname for the Widget, prefixed by the default prefix defined"," * by the Y.config.classNamePrefix attribute used by ClassNameManager and"," * Widget.NAME.toLowerCase() (e.g. \"yui-widget-xxxxx-yyyyy\", based on default values for"," * the prefix and widget class name)."," *

"," * The instance based version of this method can be used to generate standard prefixed classnames,"," * based on the instances NAME, as opposed to Widget.NAME. This method should be used when you"," * need to use a constant class name across different types instances."," *

"," * @method getClassName"," * @param {String*} args* 0..n strings which should be concatenated, using the default separator defined by ClassNameManager, to create the class name"," */","Widget.getClassName = function() {"," // arguments needs to be array'fied to concat"," return _getClassName.apply(ClassNameManager, [Widget.CSS_PREFIX].concat(Y.Array(arguments), true));","};","","_getWidgetClassName = Widget.getClassName;","","/**"," * Returns the widget instance whose bounding box contains, or is, the given node."," *

"," * In the case of nested widgets, the nearest bounding box ancestor is used to"," * return the widget instance."," *

"," * @method getByNode"," * @static"," * @param node {Node | String} The node for which to return a Widget instance. If a selector"," * string is passed in, which selects more than one node, the first node found is used."," * @return {Widget} Widget instance, or null if not found."," */","Widget.getByNode = function(node) {"," var widget,"," widgetMarker = _getWidgetClassName();",""," node = Node.one(node);"," if (node) {"," node = node.ancestor(\".\" + widgetMarker, true);"," if (node) {"," widget = _instances.get(node);"," }"," }",""," return widget || null;","};","","Y.extend(Widget, Y.Base, {",""," /**"," * Returns a class name prefixed with the the value of the"," * YUI.config.classNamePrefix attribute + the instances NAME property."," * Uses YUI.config.classNameDelimiter attribute to delimit the provided strings."," * e.g."," * "," *
","     *    // returns \"yui-slider-foo-bar\", for a slider instance","     *    var scn = slider.getClassName('foo','bar');","     *","     *    // returns \"yui-overlay-foo-bar\", for an overlay instance","     *    var ocn = overlay.getClassName('foo','bar');","     * 
"," *
"," *"," * @method getClassName"," * @param {String} [classnames*] One or more classname bits to be joined and prefixed"," */"," getClassName: function () {"," return _getClassName.apply(ClassNameManager, [this._cssPrefix].concat(Y.Array(arguments), true));"," },",""," /**"," * Initializer lifecycle implementation for the Widget class. Registers the"," * widget instance, and runs through the Widget's HTML_PARSER definition."," *"," * @method initializer"," * @protected"," * @param config {Object} Configuration object literal for the widget"," */"," initializer: function(config) {",""," var bb = this.get(BOUNDING_BOX);",""," if (bb instanceof Node) {"," this._mapInstance(bb);"," }",""," /**"," * Notification event, which widget implementations can fire, when"," * they change the content of the widget. This event has no default"," * behavior and cannot be prevented, so the \"on\" or \"after\""," * moments are effectively equivalent (with on listeners being invoked before"," * after listeners)."," *"," * @event widget:contentUpdate"," * @preventable false"," * @param {EventFacade} e The Event Facade"," */"," },",""," /**"," * Utility method used to add an entry to the boundingBox id to instance map."," *"," * This method can be used to populate the instance with lazily created boundingBox Node references."," *"," * @method _mapInstance"," * @param {Node} The boundingBox"," * @protected"," */"," _mapInstance : function(node) {"," _instances.set(node, this);"," },",""," /**"," * Destructor lifecycle implementation for the Widget class. Purges events attached"," * to the bounding box and content box, removes them from the DOM and removes"," * the Widget from the list of registered widgets."," *"," * @method destructor"," * @protected"," */"," destructor: function() {",""," var boundingBox = this.get(BOUNDING_BOX),"," bbGuid;",""," if (boundingBox instanceof Node) {"," _instances.delete(boundingBox);",""," this._destroyBox();"," }"," },",""," /**"," *

"," * Destroy lifecycle method. Fires the destroy"," * event, prior to invoking destructors for the"," * class hierarchy."," *"," * Overrides Base's implementation, to support arguments to destroy"," *

"," *

"," * Subscribers to the destroy"," * event can invoke preventDefault on the event object, to prevent destruction"," * from proceeding."," *

"," * @method destroy"," * @param destroyAllNodes {Boolean} If true, all nodes contained within the Widget are"," * removed and destroyed. Defaults to false due to potentially high run-time cost."," * @return {Widget} A reference to this object"," * @chainable"," */"," destroy: function(destroyAllNodes) {"," this._destroyAllNodes = destroyAllNodes;"," return Widget.superclass.destroy.apply(this);"," },",""," /**"," * Removes and destroys the widgets rendered boundingBox, contentBox,"," * and detaches bound UI events."," *"," * @method _destroyBox"," * @protected"," */"," _destroyBox : function() {",""," var boundingBox = this.get(BOUNDING_BOX),"," contentBox = this.get(CONTENT_BOX),"," deep = this._destroyAllNodes,"," same;",""," same = boundingBox && boundingBox.compareTo(contentBox);",""," if (this.UI_EVENTS) {"," this._destroyUIEvents();"," }",""," this._unbindUI(boundingBox);",""," if (contentBox) {"," if (deep) {"," contentBox.empty();"," }"," contentBox.remove(TRUE);"," }",""," if (!same) {"," if (deep) {"," boundingBox.empty();"," }"," boundingBox.remove(TRUE);"," }"," },",""," /**"," * Establishes the initial DOM for the widget. Invoking this"," * method will lead to the creating of all DOM elements for"," * the widget (or the manipulation of existing DOM elements"," * for the progressive enhancement use case)."," *

"," * This method should only be invoked once for an initialized"," * widget."," *

"," *

"," * It delegates to the widget specific renderer method to do"," * the actual work."," *

"," *"," * @method render"," * @chainable"," * @final"," * @param parentNode {Object | String} Optional. The Node under which the"," * Widget is to be rendered. This can be a Node instance or a CSS selector string."," *

"," * If the selector string returns more than one Node, the first node will be used"," * as the parentNode. NOTE: This argument is required if both the boundingBox and contentBox"," * are not currently in the document. If it's not provided, the Widget will be rendered"," * to the body of the current document in this case."," *

"," */"," render: function(parentNode) {",""," if (!this.get(DESTROYED) && !this.get(RENDERED)) {"," /**"," * Lifecycle event for the render phase, fired prior to rendering the UI"," * for the widget (prior to invoking the widget's renderer method)."," *

"," * Subscribers to the \"on\" moment of this event, will be notified"," * before the widget is rendered."," *

"," *

"," * Subscribers to the \"after\" moment of this event, will be notified"," * after rendering is complete."," *

"," *"," * @event render"," * @preventable _defRenderFn"," * @param {EventFacade} e The Event Facade"," */"," this.publish(RENDER, {"," queuable:FALSE,"," fireOnce:TRUE,"," defaultTargetOnly:TRUE,"," defaultFn: this._defRenderFn"," });",""," this.fire(RENDER, {parentNode: (parentNode) ? Node.one(parentNode) : null});"," }"," return this;"," },",""," /**"," * Default render handler"," *"," * @method _defRenderFn"," * @protected"," * @param {EventFacade} e The Event object"," * @param {Node} parentNode The parent node to render to, if passed in to the render method"," */"," _defRenderFn : function(e) {"," this._parentNode = e.parentNode;",""," this.renderer();"," this._set(RENDERED, TRUE);",""," this._removeLoadingClassNames();"," },",""," /**"," * Creates DOM (or manipulates DOM for progressive enhancement)"," * This method is invoked by render() and is not chained"," * automatically for the class hierarchy (unlike initializer, destructor)"," * so it should be chained manually for subclasses if required."," *"," * @method renderer"," * @protected"," */"," renderer: function() {"," // kweight"," var widget = this;",""," widget._renderUI();"," widget.renderUI();",""," widget._bindUI();"," widget.bindUI();",""," widget._syncUI();"," widget.syncUI();"," },",""," /**"," * Configures/Sets up listeners to bind Widget State to UI/DOM"," *"," * This method is not called by framework and is not chained"," * automatically for the class hierarchy."," *"," * @method bindUI"," * @protected"," */"," bindUI: EMPTY_FN,",""," /**"," * Adds nodes to the DOM"," *"," * This method is not called by framework and is not chained"," * automatically for the class hierarchy."," *"," * @method renderUI"," * @protected"," */"," renderUI: EMPTY_FN,",""," /**"," * Refreshes the rendered UI, based on Widget State"," *"," * This method is not called by framework and is not chained"," * automatically for the class hierarchy."," *"," * @method syncUI"," * @protected"," *"," */"," syncUI: EMPTY_FN,",""," /**"," * @method hide"," * @description Hides the Widget by setting the \"visible\" attribute to \"false\"."," * @chainable"," */"," hide: function() {"," return this.set(VISIBLE, FALSE);"," },",""," /**"," * @method show"," * @description Shows the Widget by setting the \"visible\" attribute to \"true\"."," * @chainable"," */"," show: function() {"," return this.set(VISIBLE, TRUE);"," },",""," /**"," * @method focus"," * @description Causes the Widget to receive the focus by setting the \"focused\""," * attribute to \"true\"."," * @chainable"," */"," focus: function () {"," return this._set(FOCUSED, TRUE);"," },",""," /**"," * @method blur"," * @description Causes the Widget to lose focus by setting the \"focused\" attribute"," * to \"false\""," * @chainable"," */"," blur: function () {"," return this._set(FOCUSED, FALSE);"," },",""," /**"," * @method enable"," * @description Set the Widget's \"disabled\" attribute to \"false\"."," * @chainable"," */"," enable: function() {"," return this.set(DISABLED, FALSE);"," },",""," /**"," * @method disable"," * @description Set the Widget's \"disabled\" attribute to \"true\"."," * @chainable"," */"," disable: function() {"," return this.set(DISABLED, TRUE);"," },",""," /**"," * @method _uiSizeCB"," * @protected"," * @param {boolean} expand"," */"," _uiSizeCB : function(expand) {"," this.get(CONTENT_BOX).toggleClass(_getWidgetClassName(CONTENT, \"expanded\"), expand);"," },",""," /**"," * Helper method to collect the boundingBox and contentBox and append to the provided parentNode, if not"," * already a child. The owner document of the boundingBox, or the owner document of the contentBox will be used"," * as the document into which the Widget is rendered if a parentNode is node is not provided. If both the boundingBox and"," * the contentBox are not currently in the document, and no parentNode is provided, the widget will be rendered"," * to the current document's body."," *"," * @method _renderBox"," * @private"," * @param {Node} parentNode The parentNode to render the widget to. If not provided, and both the boundingBox and"," * the contentBox are not currently in the document, the widget will be rendered to the current document's body."," */"," _renderBox: function(parentNode) {",""," // TODO: Performance Optimization [ More effective algo to reduce Node refs, compares, replaces? ]",""," var widget = this, // kweight"," contentBox = widget.get(CONTENT_BOX),"," boundingBox = widget.get(BOUNDING_BOX),"," srcNode = widget.get(SRC_NODE),"," defParentNode = widget.DEF_PARENT_NODE,",""," doc = (srcNode && srcNode.get(OWNER_DOCUMENT)) || boundingBox.get(OWNER_DOCUMENT) || contentBox.get(OWNER_DOCUMENT);",""," // If srcNode (assume it's always in doc), have contentBox take its place (widget render responsible for re-use of srcNode contents)"," if (srcNode && !srcNode.compareTo(contentBox) && !contentBox.inDoc(doc)) {"," srcNode.replace(contentBox);"," }",""," if (!boundingBox.compareTo(contentBox.get(PARENT_NODE)) && !boundingBox.compareTo(contentBox)) {"," // If contentBox box is already in the document, have boundingBox box take it's place"," if (contentBox.inDoc(doc)) {"," contentBox.replace(boundingBox);"," }"," boundingBox.appendChild(contentBox);"," }",""," parentNode = parentNode || (defParentNode && Node.one(defParentNode));",""," if (parentNode) {"," parentNode.appendChild(boundingBox);"," } else if (!boundingBox.inDoc(doc)) {"," Node.one(BODY).insert(boundingBox, 0);"," }"," },",""," /**"," * Setter for the boundingBox attribute"," *"," * @method _setBB"," * @private"," * @param {Node|String} node"," * @return Node"," */"," _setBB: function(node) {"," return this._setBox(this.get(ID), node, this.BOUNDING_TEMPLATE, true);"," },",""," /**"," * Setter for the contentBox attribute"," *"," * @method _setCB"," * @private"," * @param {Node|String} node"," * @return Node"," */"," _setCB: function(node) {"," return (this.CONTENT_TEMPLATE === null) ? this.get(BOUNDING_BOX) : this._setBox(null, node, this.CONTENT_TEMPLATE, false);"," },",""," /**"," * Returns the default value for the boundingBox attribute."," *"," * For the Widget class, this will most commonly be null (resulting in a new"," * boundingBox node instance being created), unless a srcNode was provided"," * and CONTENT_TEMPLATE is null, in which case it will be srcNode."," * This behavior was introduced in @VERSION@ to accomodate single-box widgets"," * whose BB & CB both point to srcNode (e.g. Y.Button)."," *"," * @method _defaultBB"," * @protected"," */"," _defaultBB : function() {"," var node = this.get(SRC_NODE),"," nullCT = (this.CONTENT_TEMPLATE === null);",""," return ((node && nullCT) ? node : null);"," },",""," /**"," * Returns the default value for the contentBox attribute."," *"," * For the Widget class, this will be the srcNode if provided, otherwise null (resulting in"," * a new contentBox node instance being created)"," *"," * @method _defaultCB"," * @protected"," */"," _defaultCB : function(node) {"," return this.get(SRC_NODE) || null;"," },",""," /**"," * Helper method to set the bounding/content box, or create it from"," * the provided template if not found."," *"," * @method _setBox"," * @private"," *"," * @param {String} id The node's id attribute"," * @param {Node|String} node The node reference"," * @param {String} template HTML string template for the node"," * @param {boolean} isBounding true if this is the boundingBox, false if it's the contentBox"," * @return {Node} The node"," */"," _setBox : function(id, node, template, isBounding) {",""," node = Node.one(node);",""," if (!node) {"," node = Node.create(template);",""," if (isBounding) {"," this._bbFromTemplate = true;"," } else {"," this._cbFromTemplate = true;"," }"," }",""," if (!node.get(ID)) {"," node.set(ID, id || Y.guid());"," }",""," return node;"," },",""," /**"," * Initializes the UI state for the Widget's bounding/content boxes."," *"," * @method _renderUI"," * @protected"," */"," _renderUI: function() {"," this._renderBoxClassNames();"," this._renderBox(this._parentNode);"," },",""," /**"," * Applies standard class names to the boundingBox and contentBox"," *"," * @method _renderBoxClassNames"," * @protected"," */"," _renderBoxClassNames : function() {"," var classes = this._getClasses(),"," cl,"," boundingBox = this.get(BOUNDING_BOX),"," i;",""," boundingBox.addClass(_getWidgetClassName());",""," // Start from Widget Sub Class"," for (i = classes.length-3; i >= 0; i--) {"," cl = classes[i];"," boundingBox.addClass(cl.CSS_PREFIX || _getClassName(cl.NAME.toLowerCase()));"," }",""," // Use instance based name for content box"," this.get(CONTENT_BOX).addClass(this.getClassName(CONTENT));"," },",""," /**"," * Removes class names representative of the widget's loading state from"," * the boundingBox."," *"," * @method _removeLoadingClassNames"," * @protected"," */"," _removeLoadingClassNames: function () {",""," var boundingBox = this.get(BOUNDING_BOX),"," contentBox = this.get(CONTENT_BOX),"," instClass = this.getClassName(LOADING),"," widgetClass = _getWidgetClassName(LOADING);",""," boundingBox.removeClass(widgetClass)"," .removeClass(instClass);",""," contentBox.removeClass(widgetClass)"," .removeClass(instClass);"," },",""," /**"," * Sets up DOM and CustomEvent listeners for the widget."," *"," * @method _bindUI"," * @protected"," */"," _bindUI: function() {"," this._bindAttrUI(this._UI_ATTRS.BIND);"," this._bindDOM();"," },",""," /**"," * @method _unbindUI"," * @protected"," */"," _unbindUI : function(boundingBox) {"," this._unbindDOM(boundingBox);"," },",""," /**"," * Sets up DOM listeners, on elements rendered by the widget."," *"," * @method _bindDOM"," * @protected"," */"," _bindDOM : function() {"," var oDocument = this.get(BOUNDING_BOX).get(OWNER_DOCUMENT),"," focusHandle = Widget._hDocFocus;",""," // Shared listener across all Widgets."," if (!focusHandle) {"," focusHandle = Widget._hDocFocus = oDocument.on(\"focus\", this._onDocFocus, this);"," focusHandle.listeners = {"," count: 0"," };"," }",""," focusHandle.listeners[Y.stamp(this, true)] = true;"," focusHandle.listeners.count++;",""," //\tFix for Webkit:"," //\tDocument doesn't receive focus in Webkit when the user mouses"," //\tdown on it, so the \"focused\" attribute won't get set to the"," //\tcorrect value. Keeping this instance based for now, potential better performance."," // Otherwise we'll end up looking up widgets from the DOM on every mousedown."," if (WEBKIT){"," this._hDocMouseDown = oDocument.on(\"mousedown\", this._onDocMouseDown, this);"," }"," },",""," /**"," * @method _unbindDOM"," * @protected"," */"," _unbindDOM : function(boundingBox) {",""," var focusHandle = Widget._hDocFocus,"," yuid = Y.stamp(this, true),"," focusListeners,"," mouseHandle = this._hDocMouseDown;",""," if (focusHandle) {",""," focusListeners = focusHandle.listeners;",""," if (focusListeners[yuid]) {"," delete focusListeners[yuid];"," focusListeners.count--;"," }",""," if (focusListeners.count === 0) {"," focusHandle.detach();"," Widget._hDocFocus = null;"," }"," }",""," if (WEBKIT && mouseHandle) {"," mouseHandle.detach();"," }"," },",""," /**"," * Updates the widget UI to reflect the attribute state."," *"," * @method _syncUI"," * @protected"," */"," _syncUI: function() {"," this._syncAttrUI(this._UI_ATTRS.SYNC);"," },",""," /**"," * Sets the height on the widget's bounding box element"," *"," * @method _uiSetHeight"," * @protected"," * @param {String | Number} val"," */"," _uiSetHeight: function(val) {"," this._uiSetDim(HEIGHT, val);"," this._uiSizeCB((val !== EMPTY_STR && val !== AUTO));"," },",""," /**"," * Sets the width on the widget's bounding box element"," *"," * @method _uiSetWidth"," * @protected"," * @param {String | Number} val"," */"," _uiSetWidth: function(val) {"," this._uiSetDim(WIDTH, val);"," },",""," /**"," * @method _uiSetDim"," * @private"," * @param {String} dim The dimension - \"width\" or \"height\""," * @param {Number | String} val The value to set"," */"," _uiSetDim: function(dimension, val) {"," this.get(BOUNDING_BOX).setStyle(dimension, L.isNumber(val) ? val + this.DEF_UNIT : val);"," },",""," /**"," * Sets the visible state for the UI"," *"," * @method _uiSetVisible"," * @protected"," * @param {boolean} val"," */"," _uiSetVisible: function(val) {"," this.get(BOUNDING_BOX).toggleClass(this.getClassName(HIDDEN), !val);"," },",""," /**"," * Sets the disabled state for the UI"," *"," * @method _uiSetDisabled"," * @protected"," * @param {boolean} val"," */"," _uiSetDisabled: function(val) {"," this.get(BOUNDING_BOX).toggleClass(this.getClassName(DISABLED), val);"," },",""," /**"," * Sets the focused state for the UI"," *"," * @method _uiSetFocused"," * @protected"," * @param {boolean} val"," * @param {string} src String representing the source that triggered an update to"," * the UI."," */"," _uiSetFocused: function(val, src) {"," var boundingBox = this.get(BOUNDING_BOX);"," boundingBox.toggleClass(this.getClassName(FOCUSED), val);",""," if (src !== UI) {"," if (val) {"," boundingBox.focus();"," } else {"," boundingBox.blur();"," }"," }"," },",""," /**"," * Set the tabIndex on the widget's rendered UI"," *"," * @method _uiSetTabIndex"," * @protected"," * @param Number"," */"," _uiSetTabIndex: function(index) {"," var boundingBox = this.get(BOUNDING_BOX);",""," if (L.isNumber(index)) {"," boundingBox.set(TAB_INDEX, index);"," } else {"," boundingBox.removeAttribute(TAB_INDEX);"," }"," },",""," /**"," * @method _onDocMouseDown"," * @description \"mousedown\" event handler for the owner document of the"," * widget's bounding box."," * @protected"," * @param {EventFacade} evt The event facade for the DOM focus event"," */"," _onDocMouseDown: function (evt) {"," if (this._domFocus) {"," this._onDocFocus(evt);"," }"," },",""," /**"," * DOM focus event handler, used to sync the state of the Widget with the DOM"," *"," * @method _onDocFocus"," * @protected"," * @param {EventFacade} evt The event facade for the DOM focus event"," */"," _onDocFocus: function (evt) {"," var widget = Widget.getByNode(evt.target),"," activeWidget = Widget._active;",""," if (activeWidget && (activeWidget !== widget)) {"," activeWidget._domFocus = false;"," activeWidget._set(FOCUSED, false, {src:UI});",""," Widget._active = null;"," }",""," if (widget) {"," widget._domFocus = true;"," widget._set(FOCUSED, true, {src:UI});",""," Widget._active = widget;"," }"," },",""," /**"," * Generic toString implementation for all widgets."," *"," * @method toString"," * @return {String} The default string value for the widget [ displays the NAME of the instance, and the unique id ]"," */"," toString: function() {"," // Using deprecated name prop for kweight squeeze."," return this.name + \"[\" + this.get(ID) + \"]\";"," },",""," /**"," * Default unit to use for dimension values"," *"," * @property DEF_UNIT"," * @type String"," */"," DEF_UNIT : \"px\",",""," /**"," * Default node to render the bounding box to. If not set,"," * will default to the current document body."," *"," * @property DEF_PARENT_NODE"," * @type String | Node"," */"," DEF_PARENT_NODE : null,",""," /**"," * Property defining the markup template for content box. If your Widget doesn't"," * need the dual boundingBox/contentBox structure, set CONTENT_TEMPLATE to null,"," * and contentBox and boundingBox will both point to the same Node."," *"," * @property CONTENT_TEMPLATE"," * @type String"," */"," CONTENT_TEMPLATE : DIV,",""," /**"," * Property defining the markup template for bounding box."," *"," * @property BOUNDING_TEMPLATE"," * @type String"," */"," BOUNDING_TEMPLATE : DIV,",""," /**"," * @method _guid"," * @protected"," */"," _guid : function() {"," return Y.guid();"," },",""," /**"," * @method _validTabIndex"," * @protected"," * @param {Number} tabIndex"," */"," _validTabIndex : function (tabIndex) {"," return (L.isNumber(tabIndex) || L.isNull(tabIndex));"," },",""," /**"," * Binds after listeners for the list of attributes provided"," *"," * @method _bindAttrUI"," * @private"," * @param {Array} attrs"," */"," _bindAttrUI : function(attrs) {"," var i,"," l = attrs.length;",""," for (i = 0; i < l; i++) {"," this.after(attrs[i] + CHANGE, this._setAttrUI);"," }"," },",""," /**"," * Invokes the _uiSet=ATTR NAME> method for the list of attributes provided"," *"," * @method _syncAttrUI"," * @private"," * @param {Array} attrs"," */"," _syncAttrUI : function(attrs) {"," var i, l = attrs.length, attr;"," for (i = 0; i < l; i++) {"," attr = attrs[i];"," this[_UISET + _toInitialCap(attr)](this.get(attr));"," }"," },",""," /**"," * @method _setAttrUI"," * @private"," * @param {EventFacade} e"," */"," _setAttrUI : function(e) {"," if (e.target === this) {"," this[_UISET + _toInitialCap(e.attrName)](e.newVal, e.src);"," }"," },",""," /**"," * The default setter for the strings attribute. Merges partial sets"," * into the full string set, to allow users to partial sets of strings"," *"," * @method _strSetter"," * @protected"," * @param {Object} strings"," * @return {String} The full set of strings to set"," */"," _strSetter : function(strings) {"," return Y.merge(this.get(STRINGS), strings);"," },",""," /**"," * Helper method to get a specific string value"," *"," * @deprecated Used by deprecated WidgetLocale implementations."," * @method getString"," * @param {String} key"," * @return {String} The string"," */"," getString : function(key) {"," return this.get(STRINGS)[key];"," },",""," /**"," * Helper method to get the complete set of strings for the widget"," *"," * @deprecated Used by deprecated WidgetLocale implementations."," * @method getStrings"," * @param {String} key"," * @return {String} The strings"," */"," getStrings : function() {"," return this.get(STRINGS);"," },",""," /**"," * The lists of UI attributes to bind and sync for widget's _bindUI and _syncUI implementations"," *"," * @property _UI_ATTRS"," * @type Object"," * @private"," */"," _UI_ATTRS : {"," BIND: UI_ATTRS,"," SYNC: UI_ATTRS"," }","});","","Y.Widget = Widget;","","","}, '@VERSION@', {"," \"requires\": ["," \"attribute\","," \"base-base\","," \"base-pluginhost\","," \"classnamemanager\","," \"event-focus\","," \"node-base\","," \"node-style\""," ],"," \"skinnable\": true","});","","}());"]}; } var __cov_MzPaF1e83TZvr_uWaY6g9A = __coverage__['build/widget-base/widget-base.js']; -__cov_MzPaF1e83TZvr_uWaY6g9A.s['1']++;YUI.add('widget-base',function(Y,NAME){__cov_MzPaF1e83TZvr_uWaY6g9A.f['1']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['2']++;var L=Y.Lang,Node=Y.Node,ClassNameManager=Y.ClassNameManager,_getClassName=ClassNameManager.getClassName,_getWidgetClassName,_toInitialCap=Y.cached(function(str){__cov_MzPaF1e83TZvr_uWaY6g9A.f['2']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['3']++;return str.substring(0,1).toUpperCase()+str.substring(1);}),CONTENT='content',VISIBLE='visible',HIDDEN='hidden',DISABLED='disabled',FOCUSED='focused',WIDTH='width',HEIGHT='height',BOUNDING_BOX='boundingBox',CONTENT_BOX='contentBox',PARENT_NODE='parentNode',OWNER_DOCUMENT='ownerDocument',AUTO='auto',SRC_NODE='srcNode',BODY='body',TAB_INDEX='tabIndex',ID='id',RENDER='render',RENDERED='rendered',DESTROYED='destroyed',STRINGS='strings',DIV='
',CHANGE='Change',LOADING='loading',_UISET='_uiSet',EMPTY_STR='',EMPTY_FN=function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['3']++;},TRUE=true,FALSE=false,UI,ATTRS={},UI_ATTRS=[VISIBLE,DISABLED,HEIGHT,WIDTH,FOCUSED,TAB_INDEX],WEBKIT=Y.UA.webkit,_instances=new WeakMap();__cov_MzPaF1e83TZvr_uWaY6g9A.s['4']++;function Widget(config){__cov_MzPaF1e83TZvr_uWaY6g9A.f['4']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['5']++;var widget=this,parentNode,render,constructor=widget.constructor;__cov_MzPaF1e83TZvr_uWaY6g9A.s['6']++;widget._strs={};__cov_MzPaF1e83TZvr_uWaY6g9A.s['7']++;widget._cssPrefix=(__cov_MzPaF1e83TZvr_uWaY6g9A.b['1'][0]++,constructor.CSS_PREFIX)||(__cov_MzPaF1e83TZvr_uWaY6g9A.b['1'][1]++,_getClassName(constructor.NAME.toLowerCase()));__cov_MzPaF1e83TZvr_uWaY6g9A.s['8']++;config=(__cov_MzPaF1e83TZvr_uWaY6g9A.b['2'][0]++,config)||(__cov_MzPaF1e83TZvr_uWaY6g9A.b['2'][1]++,{});__cov_MzPaF1e83TZvr_uWaY6g9A.s['9']++;Widget.superclass.constructor.call(widget,config);__cov_MzPaF1e83TZvr_uWaY6g9A.s['10']++;render=widget.get(RENDER);__cov_MzPaF1e83TZvr_uWaY6g9A.s['11']++;if(render){__cov_MzPaF1e83TZvr_uWaY6g9A.b['3'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['12']++;if(render!==TRUE){__cov_MzPaF1e83TZvr_uWaY6g9A.b['4'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['13']++;parentNode=render;}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['4'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['14']++;widget.render(parentNode);}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['3'][1]++;}}__cov_MzPaF1e83TZvr_uWaY6g9A.s['15']++;Widget.NAME='widget';__cov_MzPaF1e83TZvr_uWaY6g9A.s['16']++;UI=Widget.UI_SRC='ui';__cov_MzPaF1e83TZvr_uWaY6g9A.s['17']++;Widget.ATTRS=ATTRS;__cov_MzPaF1e83TZvr_uWaY6g9A.s['18']++;ATTRS[ID]={valueFn:'_guid',writeOnce:TRUE};__cov_MzPaF1e83TZvr_uWaY6g9A.s['19']++;ATTRS[RENDERED]={value:FALSE,readOnly:TRUE};__cov_MzPaF1e83TZvr_uWaY6g9A.s['20']++;ATTRS[BOUNDING_BOX]={valueFn:'_defaultBB',setter:'_setBB',writeOnce:TRUE};__cov_MzPaF1e83TZvr_uWaY6g9A.s['21']++;ATTRS[CONTENT_BOX]={valueFn:'_defaultCB',setter:'_setCB',writeOnce:TRUE};__cov_MzPaF1e83TZvr_uWaY6g9A.s['22']++;ATTRS[TAB_INDEX]={value:null,validator:'_validTabIndex'};__cov_MzPaF1e83TZvr_uWaY6g9A.s['23']++;ATTRS[FOCUSED]={value:FALSE,readOnly:TRUE};__cov_MzPaF1e83TZvr_uWaY6g9A.s['24']++;ATTRS[DISABLED]={value:FALSE};__cov_MzPaF1e83TZvr_uWaY6g9A.s['25']++;ATTRS[VISIBLE]={value:TRUE};__cov_MzPaF1e83TZvr_uWaY6g9A.s['26']++;ATTRS[HEIGHT]={value:EMPTY_STR};__cov_MzPaF1e83TZvr_uWaY6g9A.s['27']++;ATTRS[WIDTH]={value:EMPTY_STR};__cov_MzPaF1e83TZvr_uWaY6g9A.s['28']++;ATTRS[STRINGS]={value:{},setter:'_strSetter',getter:'_strGetter'};__cov_MzPaF1e83TZvr_uWaY6g9A.s['29']++;ATTRS[RENDER]={value:FALSE,writeOnce:TRUE};__cov_MzPaF1e83TZvr_uWaY6g9A.s['30']++;Widget.CSS_PREFIX=_getClassName(Widget.NAME.toLowerCase());__cov_MzPaF1e83TZvr_uWaY6g9A.s['31']++;Widget.getClassName=function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['5']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['32']++;return _getClassName.apply(ClassNameManager,[Widget.CSS_PREFIX].concat(Y.Array(arguments),true));};__cov_MzPaF1e83TZvr_uWaY6g9A.s['33']++;_getWidgetClassName=Widget.getClassName;__cov_MzPaF1e83TZvr_uWaY6g9A.s['34']++;Widget.getByNode=function(node){__cov_MzPaF1e83TZvr_uWaY6g9A.f['6']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['35']++;var widget,widgetMarker=_getWidgetClassName();__cov_MzPaF1e83TZvr_uWaY6g9A.s['36']++;node=Node.one(node);__cov_MzPaF1e83TZvr_uWaY6g9A.s['37']++;if(node){__cov_MzPaF1e83TZvr_uWaY6g9A.b['5'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['38']++;node=node.ancestor('.'+widgetMarker,true);__cov_MzPaF1e83TZvr_uWaY6g9A.s['39']++;if(node){__cov_MzPaF1e83TZvr_uWaY6g9A.b['6'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['40']++;widget=_instances.get(node);}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['6'][1]++;}}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['5'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['41']++;return(__cov_MzPaF1e83TZvr_uWaY6g9A.b['7'][0]++,widget)||(__cov_MzPaF1e83TZvr_uWaY6g9A.b['7'][1]++,null);};__cov_MzPaF1e83TZvr_uWaY6g9A.s['42']++;Y.extend(Widget,Y.Base,{getClassName:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['7']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['43']++;return _getClassName.apply(ClassNameManager,[this._cssPrefix].concat(Y.Array(arguments),true));},initializer:function(config){__cov_MzPaF1e83TZvr_uWaY6g9A.f['8']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['44']++;var bb=this.get(BOUNDING_BOX);__cov_MzPaF1e83TZvr_uWaY6g9A.s['45']++;if(bb instanceof Node){__cov_MzPaF1e83TZvr_uWaY6g9A.b['8'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['46']++;this._mapInstance(bb);}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['8'][1]++;}},_mapInstance:function(node){__cov_MzPaF1e83TZvr_uWaY6g9A.f['9']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['47']++;_instances.set(node,this);},destructor:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['10']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['48']++;var boundingBox=this.get(BOUNDING_BOX),bbGuid;__cov_MzPaF1e83TZvr_uWaY6g9A.s['49']++;if(boundingBox instanceof Node){__cov_MzPaF1e83TZvr_uWaY6g9A.b['9'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['50']++;_instances.delete(boundingBox);__cov_MzPaF1e83TZvr_uWaY6g9A.s['51']++;this._destroyBox();}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['9'][1]++;}},destroy:function(destroyAllNodes){__cov_MzPaF1e83TZvr_uWaY6g9A.f['11']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['52']++;this._destroyAllNodes=destroyAllNodes;__cov_MzPaF1e83TZvr_uWaY6g9A.s['53']++;return Widget.superclass.destroy.apply(this);},_destroyBox:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['12']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['54']++;var boundingBox=this.get(BOUNDING_BOX),contentBox=this.get(CONTENT_BOX),deep=this._destroyAllNodes,same;__cov_MzPaF1e83TZvr_uWaY6g9A.s['55']++;same=(__cov_MzPaF1e83TZvr_uWaY6g9A.b['10'][0]++,boundingBox)&&(__cov_MzPaF1e83TZvr_uWaY6g9A.b['10'][1]++,boundingBox.compareTo(contentBox));__cov_MzPaF1e83TZvr_uWaY6g9A.s['56']++;if(this.UI_EVENTS){__cov_MzPaF1e83TZvr_uWaY6g9A.b['11'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['57']++;this._destroyUIEvents();}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['11'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['58']++;this._unbindUI(boundingBox);__cov_MzPaF1e83TZvr_uWaY6g9A.s['59']++;if(contentBox){__cov_MzPaF1e83TZvr_uWaY6g9A.b['12'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['60']++;if(deep){__cov_MzPaF1e83TZvr_uWaY6g9A.b['13'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['61']++;contentBox.empty();}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['13'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['62']++;contentBox.remove(TRUE);}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['12'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['63']++;if(!same){__cov_MzPaF1e83TZvr_uWaY6g9A.b['14'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['64']++;if(deep){__cov_MzPaF1e83TZvr_uWaY6g9A.b['15'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['65']++;boundingBox.empty();}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['15'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['66']++;boundingBox.remove(TRUE);}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['14'][1]++;}},render:function(parentNode){__cov_MzPaF1e83TZvr_uWaY6g9A.f['13']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['67']++;if((__cov_MzPaF1e83TZvr_uWaY6g9A.b['17'][0]++,!this.get(DESTROYED))&&(__cov_MzPaF1e83TZvr_uWaY6g9A.b['17'][1]++,!this.get(RENDERED))){__cov_MzPaF1e83TZvr_uWaY6g9A.b['16'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['68']++;this.publish(RENDER,{queuable:FALSE,fireOnce:TRUE,defaultTargetOnly:TRUE,defaultFn:this._defRenderFn});__cov_MzPaF1e83TZvr_uWaY6g9A.s['69']++;this.fire(RENDER,{parentNode:parentNode?(__cov_MzPaF1e83TZvr_uWaY6g9A.b['18'][0]++,Node.one(parentNode)):(__cov_MzPaF1e83TZvr_uWaY6g9A.b['18'][1]++,null)});}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['16'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['70']++;return this;},_defRenderFn:function(e){__cov_MzPaF1e83TZvr_uWaY6g9A.f['14']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['71']++;this._parentNode=e.parentNode;__cov_MzPaF1e83TZvr_uWaY6g9A.s['72']++;this.renderer();__cov_MzPaF1e83TZvr_uWaY6g9A.s['73']++;this._set(RENDERED,TRUE);__cov_MzPaF1e83TZvr_uWaY6g9A.s['74']++;this._removeLoadingClassNames();},renderer:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['15']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['75']++;var widget=this;__cov_MzPaF1e83TZvr_uWaY6g9A.s['76']++;widget._renderUI();__cov_MzPaF1e83TZvr_uWaY6g9A.s['77']++;widget.renderUI();__cov_MzPaF1e83TZvr_uWaY6g9A.s['78']++;widget._bindUI();__cov_MzPaF1e83TZvr_uWaY6g9A.s['79']++;widget.bindUI();__cov_MzPaF1e83TZvr_uWaY6g9A.s['80']++;widget._syncUI();__cov_MzPaF1e83TZvr_uWaY6g9A.s['81']++;widget.syncUI();},bindUI:EMPTY_FN,renderUI:EMPTY_FN,syncUI:EMPTY_FN,hide:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['16']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['82']++;return this.set(VISIBLE,FALSE);},show:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['17']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['83']++;return this.set(VISIBLE,TRUE);},focus:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['18']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['84']++;return this._set(FOCUSED,TRUE);},blur:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['19']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['85']++;return this._set(FOCUSED,FALSE);},enable:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['20']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['86']++;return this.set(DISABLED,FALSE);},disable:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['21']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['87']++;return this.set(DISABLED,TRUE);},_uiSizeCB:function(expand){__cov_MzPaF1e83TZvr_uWaY6g9A.f['22']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['88']++;this.get(CONTENT_BOX).toggleClass(_getWidgetClassName(CONTENT,'expanded'),expand);},_renderBox:function(parentNode){__cov_MzPaF1e83TZvr_uWaY6g9A.f['23']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['89']++;var widget=this,contentBox=widget.get(CONTENT_BOX),boundingBox=widget.get(BOUNDING_BOX),srcNode=widget.get(SRC_NODE),defParentNode=widget.DEF_PARENT_NODE,doc=(__cov_MzPaF1e83TZvr_uWaY6g9A.b['19'][0]++,srcNode)&&(__cov_MzPaF1e83TZvr_uWaY6g9A.b['19'][1]++,srcNode.get(OWNER_DOCUMENT))||(__cov_MzPaF1e83TZvr_uWaY6g9A.b['19'][2]++,boundingBox.get(OWNER_DOCUMENT))||(__cov_MzPaF1e83TZvr_uWaY6g9A.b['19'][3]++,contentBox.get(OWNER_DOCUMENT));__cov_MzPaF1e83TZvr_uWaY6g9A.s['90']++;if((__cov_MzPaF1e83TZvr_uWaY6g9A.b['21'][0]++,srcNode)&&(__cov_MzPaF1e83TZvr_uWaY6g9A.b['21'][1]++,!srcNode.compareTo(contentBox))&&(__cov_MzPaF1e83TZvr_uWaY6g9A.b['21'][2]++,!contentBox.inDoc(doc))){__cov_MzPaF1e83TZvr_uWaY6g9A.b['20'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['91']++;srcNode.replace(contentBox);}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['20'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['92']++;if((__cov_MzPaF1e83TZvr_uWaY6g9A.b['23'][0]++,!boundingBox.compareTo(contentBox.get(PARENT_NODE)))&&(__cov_MzPaF1e83TZvr_uWaY6g9A.b['23'][1]++,!boundingBox.compareTo(contentBox))){__cov_MzPaF1e83TZvr_uWaY6g9A.b['22'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['93']++;if(contentBox.inDoc(doc)){__cov_MzPaF1e83TZvr_uWaY6g9A.b['24'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['94']++;contentBox.replace(boundingBox);}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['24'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['95']++;boundingBox.appendChild(contentBox);}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['22'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['96']++;parentNode=(__cov_MzPaF1e83TZvr_uWaY6g9A.b['25'][0]++,parentNode)||(__cov_MzPaF1e83TZvr_uWaY6g9A.b['25'][1]++,defParentNode)&&(__cov_MzPaF1e83TZvr_uWaY6g9A.b['25'][2]++,Node.one(defParentNode));__cov_MzPaF1e83TZvr_uWaY6g9A.s['97']++;if(parentNode){__cov_MzPaF1e83TZvr_uWaY6g9A.b['26'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['98']++;parentNode.appendChild(boundingBox);}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['26'][1]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['99']++;if(!boundingBox.inDoc(doc)){__cov_MzPaF1e83TZvr_uWaY6g9A.b['27'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['100']++;Node.one(BODY).insert(boundingBox,0);}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['27'][1]++;}}},_setBB:function(node){__cov_MzPaF1e83TZvr_uWaY6g9A.f['24']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['101']++;return this._setBox(this.get(ID),node,this.BOUNDING_TEMPLATE,true);},_setCB:function(node){__cov_MzPaF1e83TZvr_uWaY6g9A.f['25']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['102']++;return this.CONTENT_TEMPLATE===null?(__cov_MzPaF1e83TZvr_uWaY6g9A.b['28'][0]++,this.get(BOUNDING_BOX)):(__cov_MzPaF1e83TZvr_uWaY6g9A.b['28'][1]++,this._setBox(null,node,this.CONTENT_TEMPLATE,false));},_defaultBB:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['26']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['103']++;var node=this.get(SRC_NODE),nullCT=this.CONTENT_TEMPLATE===null;__cov_MzPaF1e83TZvr_uWaY6g9A.s['104']++;return(__cov_MzPaF1e83TZvr_uWaY6g9A.b['30'][0]++,node)&&(__cov_MzPaF1e83TZvr_uWaY6g9A.b['30'][1]++,nullCT)?(__cov_MzPaF1e83TZvr_uWaY6g9A.b['29'][0]++,node):(__cov_MzPaF1e83TZvr_uWaY6g9A.b['29'][1]++,null);},_defaultCB:function(node){__cov_MzPaF1e83TZvr_uWaY6g9A.f['27']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['105']++;return(__cov_MzPaF1e83TZvr_uWaY6g9A.b['31'][0]++,this.get(SRC_NODE))||(__cov_MzPaF1e83TZvr_uWaY6g9A.b['31'][1]++,null);},_setBox:function(id,node,template,isBounding){__cov_MzPaF1e83TZvr_uWaY6g9A.f['28']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['106']++;node=Node.one(node);__cov_MzPaF1e83TZvr_uWaY6g9A.s['107']++;if(!node){__cov_MzPaF1e83TZvr_uWaY6g9A.b['32'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['108']++;node=Node.create(template);__cov_MzPaF1e83TZvr_uWaY6g9A.s['109']++;if(isBounding){__cov_MzPaF1e83TZvr_uWaY6g9A.b['33'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['110']++;this._bbFromTemplate=true;}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['33'][1]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['111']++;this._cbFromTemplate=true;}}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['32'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['112']++;if(!node.get(ID)){__cov_MzPaF1e83TZvr_uWaY6g9A.b['34'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['113']++;node.set(ID,(__cov_MzPaF1e83TZvr_uWaY6g9A.b['35'][0]++,id)||(__cov_MzPaF1e83TZvr_uWaY6g9A.b['35'][1]++,Y.guid()));}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['34'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['114']++;return node;},_renderUI:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['29']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['115']++;this._renderBoxClassNames();__cov_MzPaF1e83TZvr_uWaY6g9A.s['116']++;this._renderBox(this._parentNode);},_renderBoxClassNames:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['30']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['117']++;var classes=this._getClasses(),cl,boundingBox=this.get(BOUNDING_BOX),i;__cov_MzPaF1e83TZvr_uWaY6g9A.s['118']++;boundingBox.addClass(_getWidgetClassName());__cov_MzPaF1e83TZvr_uWaY6g9A.s['119']++;for(i=classes.length-3;i>=0;i--){__cov_MzPaF1e83TZvr_uWaY6g9A.s['120']++;cl=classes[i];__cov_MzPaF1e83TZvr_uWaY6g9A.s['121']++;boundingBox.addClass((__cov_MzPaF1e83TZvr_uWaY6g9A.b['36'][0]++,cl.CSS_PREFIX)||(__cov_MzPaF1e83TZvr_uWaY6g9A.b['36'][1]++,_getClassName(cl.NAME.toLowerCase())));}__cov_MzPaF1e83TZvr_uWaY6g9A.s['122']++;this.get(CONTENT_BOX).addClass(this.getClassName(CONTENT));},_removeLoadingClassNames:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['31']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['123']++;var boundingBox=this.get(BOUNDING_BOX),contentBox=this.get(CONTENT_BOX),instClass=this.getClassName(LOADING),widgetClass=_getWidgetClassName(LOADING);__cov_MzPaF1e83TZvr_uWaY6g9A.s['124']++;boundingBox.removeClass(widgetClass).removeClass(instClass);__cov_MzPaF1e83TZvr_uWaY6g9A.s['125']++;contentBox.removeClass(widgetClass).removeClass(instClass);},_bindUI:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['32']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['126']++;this._bindAttrUI(this._UI_ATTRS.BIND);__cov_MzPaF1e83TZvr_uWaY6g9A.s['127']++;this._bindDOM();},_unbindUI:function(boundingBox){__cov_MzPaF1e83TZvr_uWaY6g9A.f['33']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['128']++;this._unbindDOM(boundingBox);},_bindDOM:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['34']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['129']++;var oDocument=this.get(BOUNDING_BOX).get(OWNER_DOCUMENT),focusHandle=Widget._hDocFocus;__cov_MzPaF1e83TZvr_uWaY6g9A.s['130']++;if(!focusHandle){__cov_MzPaF1e83TZvr_uWaY6g9A.b['37'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['131']++;focusHandle=Widget._hDocFocus=oDocument.on('focus',this._onDocFocus,this);__cov_MzPaF1e83TZvr_uWaY6g9A.s['132']++;focusHandle.listeners={count:0};}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['37'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['133']++;focusHandle.listeners[Y.stamp(this,true)]=true;__cov_MzPaF1e83TZvr_uWaY6g9A.s['134']++;focusHandle.listeners.count++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['135']++;if(WEBKIT){__cov_MzPaF1e83TZvr_uWaY6g9A.b['38'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['136']++;this._hDocMouseDown=oDocument.on('mousedown',this._onDocMouseDown,this);}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['38'][1]++;}},_unbindDOM:function(boundingBox){__cov_MzPaF1e83TZvr_uWaY6g9A.f['35']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['137']++;var focusHandle=Widget._hDocFocus,yuid=Y.stamp(this,true),focusListeners,mouseHandle=this._hDocMouseDown;__cov_MzPaF1e83TZvr_uWaY6g9A.s['138']++;if(focusHandle){__cov_MzPaF1e83TZvr_uWaY6g9A.b['39'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['139']++;focusListeners=focusHandle.listeners;__cov_MzPaF1e83TZvr_uWaY6g9A.s['140']++;if(focusListeners[yuid]){__cov_MzPaF1e83TZvr_uWaY6g9A.b['40'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['141']++;delete focusListeners[yuid];__cov_MzPaF1e83TZvr_uWaY6g9A.s['142']++;focusListeners.count--;}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['40'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['143']++;if(focusListeners.count===0){__cov_MzPaF1e83TZvr_uWaY6g9A.b['41'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['144']++;focusHandle.detach();__cov_MzPaF1e83TZvr_uWaY6g9A.s['145']++;Widget._hDocFocus=null;}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['41'][1]++;}}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['39'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['146']++;if((__cov_MzPaF1e83TZvr_uWaY6g9A.b['43'][0]++,WEBKIT)&&(__cov_MzPaF1e83TZvr_uWaY6g9A.b['43'][1]++,mouseHandle)){__cov_MzPaF1e83TZvr_uWaY6g9A.b['42'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['147']++;mouseHandle.detach();}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['42'][1]++;}},_syncUI:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['36']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['148']++;this._syncAttrUI(this._UI_ATTRS.SYNC);},_uiSetHeight:function(val){__cov_MzPaF1e83TZvr_uWaY6g9A.f['37']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['149']++;this._uiSetDim(HEIGHT,val);__cov_MzPaF1e83TZvr_uWaY6g9A.s['150']++;this._uiSizeCB((__cov_MzPaF1e83TZvr_uWaY6g9A.b['44'][0]++,val!==EMPTY_STR)&&(__cov_MzPaF1e83TZvr_uWaY6g9A.b['44'][1]++,val!==AUTO));},_uiSetWidth:function(val){__cov_MzPaF1e83TZvr_uWaY6g9A.f['38']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['151']++;this._uiSetDim(WIDTH,val);},_uiSetDim:function(dimension,val){__cov_MzPaF1e83TZvr_uWaY6g9A.f['39']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['152']++;this.get(BOUNDING_BOX).setStyle(dimension,L.isNumber(val)?(__cov_MzPaF1e83TZvr_uWaY6g9A.b['45'][0]++,val+this.DEF_UNIT):(__cov_MzPaF1e83TZvr_uWaY6g9A.b['45'][1]++,val));},_uiSetVisible:function(val){__cov_MzPaF1e83TZvr_uWaY6g9A.f['40']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['153']++;this.get(BOUNDING_BOX).toggleClass(this.getClassName(HIDDEN),!val);},_uiSetDisabled:function(val){__cov_MzPaF1e83TZvr_uWaY6g9A.f['41']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['154']++;this.get(BOUNDING_BOX).toggleClass(this.getClassName(DISABLED),val);},_uiSetFocused:function(val,src){__cov_MzPaF1e83TZvr_uWaY6g9A.f['42']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['155']++;var boundingBox=this.get(BOUNDING_BOX);__cov_MzPaF1e83TZvr_uWaY6g9A.s['156']++;boundingBox.toggleClass(this.getClassName(FOCUSED),val);__cov_MzPaF1e83TZvr_uWaY6g9A.s['157']++;if(src!==UI){__cov_MzPaF1e83TZvr_uWaY6g9A.b['46'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['158']++;if(val){__cov_MzPaF1e83TZvr_uWaY6g9A.b['47'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['159']++;boundingBox.focus();}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['47'][1]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['160']++;boundingBox.blur();}}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['46'][1]++;}},_uiSetTabIndex:function(index){__cov_MzPaF1e83TZvr_uWaY6g9A.f['43']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['161']++;var boundingBox=this.get(BOUNDING_BOX);__cov_MzPaF1e83TZvr_uWaY6g9A.s['162']++;if(L.isNumber(index)){__cov_MzPaF1e83TZvr_uWaY6g9A.b['48'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['163']++;boundingBox.set(TAB_INDEX,index);}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['48'][1]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['164']++;boundingBox.removeAttribute(TAB_INDEX);}},_onDocMouseDown:function(evt){__cov_MzPaF1e83TZvr_uWaY6g9A.f['44']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['165']++;if(this._domFocus){__cov_MzPaF1e83TZvr_uWaY6g9A.b['49'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['166']++;this._onDocFocus(evt);}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['49'][1]++;}},_onDocFocus:function(evt){__cov_MzPaF1e83TZvr_uWaY6g9A.f['45']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['167']++;var widget=Widget.getByNode(evt.target),activeWidget=Widget._active;__cov_MzPaF1e83TZvr_uWaY6g9A.s['168']++;if((__cov_MzPaF1e83TZvr_uWaY6g9A.b['51'][0]++,activeWidget)&&(__cov_MzPaF1e83TZvr_uWaY6g9A.b['51'][1]++,activeWidget!==widget)){__cov_MzPaF1e83TZvr_uWaY6g9A.b['50'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['169']++;activeWidget._domFocus=false;__cov_MzPaF1e83TZvr_uWaY6g9A.s['170']++;activeWidget._set(FOCUSED,false,{src:UI});__cov_MzPaF1e83TZvr_uWaY6g9A.s['171']++;Widget._active=null;}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['50'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['172']++;if(widget){__cov_MzPaF1e83TZvr_uWaY6g9A.b['52'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['173']++;widget._domFocus=true;__cov_MzPaF1e83TZvr_uWaY6g9A.s['174']++;widget._set(FOCUSED,true,{src:UI});__cov_MzPaF1e83TZvr_uWaY6g9A.s['175']++;Widget._active=widget;}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['52'][1]++;}},toString:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['46']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['176']++;return this.name+'['+this.get(ID)+']';},DEF_UNIT:'px',DEF_PARENT_NODE:null,CONTENT_TEMPLATE:DIV,BOUNDING_TEMPLATE:DIV,_guid:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['47']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['177']++;return Y.guid();},_validTabIndex:function(tabIndex){__cov_MzPaF1e83TZvr_uWaY6g9A.f['48']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['178']++;return(__cov_MzPaF1e83TZvr_uWaY6g9A.b['53'][0]++,L.isNumber(tabIndex))||(__cov_MzPaF1e83TZvr_uWaY6g9A.b['53'][1]++,L.isNull(tabIndex));},_bindAttrUI:function(attrs){__cov_MzPaF1e83TZvr_uWaY6g9A.f['49']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['179']++;var i,l=attrs.length;__cov_MzPaF1e83TZvr_uWaY6g9A.s['180']++;for(i=0;i=0;i--){__cov_MzPaF1e83TZvr_uWaY6g9A.s['120']++;cl=classes[i];__cov_MzPaF1e83TZvr_uWaY6g9A.s['121']++;boundingBox.addClass((__cov_MzPaF1e83TZvr_uWaY6g9A.b['36'][0]++,cl.CSS_PREFIX)||(__cov_MzPaF1e83TZvr_uWaY6g9A.b['36'][1]++,_getClassName(cl.NAME.toLowerCase())));}__cov_MzPaF1e83TZvr_uWaY6g9A.s['122']++;this.get(CONTENT_BOX).addClass(this.getClassName(CONTENT));},_removeLoadingClassNames:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['31']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['123']++;var boundingBox=this.get(BOUNDING_BOX),contentBox=this.get(CONTENT_BOX),instClass=this.getClassName(LOADING),widgetClass=_getWidgetClassName(LOADING);__cov_MzPaF1e83TZvr_uWaY6g9A.s['124']++;boundingBox.removeClass(widgetClass).removeClass(instClass);__cov_MzPaF1e83TZvr_uWaY6g9A.s['125']++;contentBox.removeClass(widgetClass).removeClass(instClass);},_bindUI:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['32']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['126']++;this._bindAttrUI(this._UI_ATTRS.BIND);__cov_MzPaF1e83TZvr_uWaY6g9A.s['127']++;this._bindDOM();},_unbindUI:function(boundingBox){__cov_MzPaF1e83TZvr_uWaY6g9A.f['33']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['128']++;this._unbindDOM(boundingBox);},_bindDOM:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['34']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['129']++;var oDocument=this.get(BOUNDING_BOX).get(OWNER_DOCUMENT),focusHandle=Widget._hDocFocus;__cov_MzPaF1e83TZvr_uWaY6g9A.s['130']++;if(!focusHandle){__cov_MzPaF1e83TZvr_uWaY6g9A.b['37'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['131']++;focusHandle=Widget._hDocFocus=oDocument.on('focus',this._onDocFocus,this);__cov_MzPaF1e83TZvr_uWaY6g9A.s['132']++;focusHandle.listeners={count:0};}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['37'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['133']++;focusHandle.listeners[Y.stamp(this,true)]=true;__cov_MzPaF1e83TZvr_uWaY6g9A.s['134']++;focusHandle.listeners.count++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['135']++;if(WEBKIT){__cov_MzPaF1e83TZvr_uWaY6g9A.b['38'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['136']++;this._hDocMouseDown=oDocument.on('mousedown',this._onDocMouseDown,this);}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['38'][1]++;}},_unbindDOM:function(boundingBox){__cov_MzPaF1e83TZvr_uWaY6g9A.f['35']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['137']++;var focusHandle=Widget._hDocFocus,yuid=Y.stamp(this,true),focusListeners,mouseHandle=this._hDocMouseDown;__cov_MzPaF1e83TZvr_uWaY6g9A.s['138']++;if(focusHandle){__cov_MzPaF1e83TZvr_uWaY6g9A.b['39'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['139']++;focusListeners=focusHandle.listeners;__cov_MzPaF1e83TZvr_uWaY6g9A.s['140']++;if(focusListeners[yuid]){__cov_MzPaF1e83TZvr_uWaY6g9A.b['40'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['141']++;delete focusListeners[yuid];__cov_MzPaF1e83TZvr_uWaY6g9A.s['142']++;focusListeners.count--;}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['40'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['143']++;if(focusListeners.count===0){__cov_MzPaF1e83TZvr_uWaY6g9A.b['41'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['144']++;focusHandle.detach();__cov_MzPaF1e83TZvr_uWaY6g9A.s['145']++;Widget._hDocFocus=null;}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['41'][1]++;}}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['39'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['146']++;if((__cov_MzPaF1e83TZvr_uWaY6g9A.b['43'][0]++,WEBKIT)&&(__cov_MzPaF1e83TZvr_uWaY6g9A.b['43'][1]++,mouseHandle)){__cov_MzPaF1e83TZvr_uWaY6g9A.b['42'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['147']++;mouseHandle.detach();}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['42'][1]++;}},_syncUI:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['36']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['148']++;this._syncAttrUI(this._UI_ATTRS.SYNC);},_uiSetHeight:function(val){__cov_MzPaF1e83TZvr_uWaY6g9A.f['37']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['149']++;this._uiSetDim(HEIGHT,val);__cov_MzPaF1e83TZvr_uWaY6g9A.s['150']++;this._uiSizeCB((__cov_MzPaF1e83TZvr_uWaY6g9A.b['44'][0]++,val!==EMPTY_STR)&&(__cov_MzPaF1e83TZvr_uWaY6g9A.b['44'][1]++,val!==AUTO));},_uiSetWidth:function(val){__cov_MzPaF1e83TZvr_uWaY6g9A.f['38']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['151']++;this._uiSetDim(WIDTH,val);},_uiSetDim:function(dimension,val){__cov_MzPaF1e83TZvr_uWaY6g9A.f['39']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['152']++;this.get(BOUNDING_BOX).setStyle(dimension,L.isNumber(val)?(__cov_MzPaF1e83TZvr_uWaY6g9A.b['45'][0]++,val+this.DEF_UNIT):(__cov_MzPaF1e83TZvr_uWaY6g9A.b['45'][1]++,val));},_uiSetVisible:function(val){__cov_MzPaF1e83TZvr_uWaY6g9A.f['40']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['153']++;this.get(BOUNDING_BOX).toggleClass(this.getClassName(HIDDEN),!val);},_uiSetDisabled:function(val){__cov_MzPaF1e83TZvr_uWaY6g9A.f['41']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['154']++;this.get(BOUNDING_BOX).toggleClass(this.getClassName(DISABLED),val);},_uiSetFocused:function(val,src){__cov_MzPaF1e83TZvr_uWaY6g9A.f['42']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['155']++;var boundingBox=this.get(BOUNDING_BOX);__cov_MzPaF1e83TZvr_uWaY6g9A.s['156']++;boundingBox.toggleClass(this.getClassName(FOCUSED),val);__cov_MzPaF1e83TZvr_uWaY6g9A.s['157']++;if(src!==UI){__cov_MzPaF1e83TZvr_uWaY6g9A.b['46'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['158']++;if(val){__cov_MzPaF1e83TZvr_uWaY6g9A.b['47'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['159']++;boundingBox.focus();}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['47'][1]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['160']++;boundingBox.blur();}}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['46'][1]++;}},_uiSetTabIndex:function(index){__cov_MzPaF1e83TZvr_uWaY6g9A.f['43']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['161']++;var boundingBox=this.get(BOUNDING_BOX);__cov_MzPaF1e83TZvr_uWaY6g9A.s['162']++;if(L.isNumber(index)){__cov_MzPaF1e83TZvr_uWaY6g9A.b['48'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['163']++;boundingBox.set(TAB_INDEX,index);}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['48'][1]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['164']++;boundingBox.removeAttribute(TAB_INDEX);}},_onDocMouseDown:function(evt){__cov_MzPaF1e83TZvr_uWaY6g9A.f['44']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['165']++;if(this._domFocus){__cov_MzPaF1e83TZvr_uWaY6g9A.b['49'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['166']++;this._onDocFocus(evt);}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['49'][1]++;}},_onDocFocus:function(evt){__cov_MzPaF1e83TZvr_uWaY6g9A.f['45']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['167']++;var widget=Widget.getByNode(evt.target),activeWidget=Widget._active;__cov_MzPaF1e83TZvr_uWaY6g9A.s['168']++;if((__cov_MzPaF1e83TZvr_uWaY6g9A.b['51'][0]++,activeWidget)&&(__cov_MzPaF1e83TZvr_uWaY6g9A.b['51'][1]++,activeWidget!==widget)){__cov_MzPaF1e83TZvr_uWaY6g9A.b['50'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['169']++;activeWidget._domFocus=false;__cov_MzPaF1e83TZvr_uWaY6g9A.s['170']++;activeWidget._set(FOCUSED,false,{src:UI});__cov_MzPaF1e83TZvr_uWaY6g9A.s['171']++;Widget._active=null;}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['50'][1]++;}__cov_MzPaF1e83TZvr_uWaY6g9A.s['172']++;if(widget){__cov_MzPaF1e83TZvr_uWaY6g9A.b['52'][0]++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['173']++;widget._domFocus=true;__cov_MzPaF1e83TZvr_uWaY6g9A.s['174']++;widget._set(FOCUSED,true,{src:UI});__cov_MzPaF1e83TZvr_uWaY6g9A.s['175']++;Widget._active=widget;}else{__cov_MzPaF1e83TZvr_uWaY6g9A.b['52'][1]++;}},toString:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['46']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['176']++;return this.name+'['+this.get(ID)+']';},DEF_UNIT:'px',DEF_PARENT_NODE:null,CONTENT_TEMPLATE:DIV,BOUNDING_TEMPLATE:DIV,_guid:function(){__cov_MzPaF1e83TZvr_uWaY6g9A.f['47']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['177']++;return Y.guid();},_validTabIndex:function(tabIndex){__cov_MzPaF1e83TZvr_uWaY6g9A.f['48']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['178']++;return(__cov_MzPaF1e83TZvr_uWaY6g9A.b['53'][0]++,L.isNumber(tabIndex))||(__cov_MzPaF1e83TZvr_uWaY6g9A.b['53'][1]++,L.isNull(tabIndex));},_bindAttrUI:function(attrs){__cov_MzPaF1e83TZvr_uWaY6g9A.f['49']++;__cov_MzPaF1e83TZvr_uWaY6g9A.s['179']++;var i,l=attrs.length;__cov_MzPaF1e83TZvr_uWaY6g9A.s['180']++;for(i=0;i=0;r--)t=e[r],n.addClass(t.CSS_PREFIX||s(t.NAME.toLowerCase()));this.get(m).addClass(this.getClassName(a))},_removeLoadingClassNames:function(){var e=this.get(v),t=this.get(m),n=this.getClassName(O),r=o(O);e.removeClass(r).removeClass(n),t.removeClass(r).removeClass(n)},_bindUI:function(){this._bindAttrUI(this._UI_ATTRS.BIND),this._bindDOM()},_unbindUI:function(e){this._unbindDOM(e)},_bindDOM:function(){var t=this.get(v).get(y),n=R._hDocFocus;n||(n=R._hDocFocus=t.on("focus",this._onDocFocus,this),n.listeners={count:0}),n.listeners[e.stamp(this,!0)]=!0,n.listeners.count++,I&&(this._hDocMouseDown=t.on("mousedown",this._onDocMouseDown,this))},_unbindDOM:function(t){var n=R._hDocFocus,r=e.stamp(this,!0),i,s=this._hDocMouseDown;n&&(i=n.listeners,i[r]&&(delete i[r],i.count--),i.count===0&&(n.detach(),R._hDocFocus=null)),I&&s&&s.detach()},_syncUI:function(){this._syncAttrUI(this._UI_ATTRS.SYNC)},_uiSetHeight:function(e){this._uiSetDim(d,e),this._uiSizeCB(e!==_&&e!==b)},_uiSetWidth:function(e){this._uiSetDim(p,e)},_uiSetDim:function(e,t){this.get(v).setStyle(e,n.isNumber(t)?t+this.DEF_UNIT:t)},_uiSetVisible:function(e){this.get(v).toggleClass(this.getClassName(l),!e)},_uiSetDisabled:function(e){this.get(v).toggleClass(this.getClassName(c),e)},_uiSetFocused:function(e,t){var n=this.get(v);n.toggleClass(this.getClassName(h),e),t!==B&&(e?n.focus():n.blur())},_uiSetTabIndex:function(e){var t=this.get(v);n.isNumber(e)?t.set(S,e):t.removeAttribute(S)},_onDocMouseDown:function(e){this._domFocus&&this._onDocFocus(e)},_onDocFocus:function(e){var t=R.getByNode(e.target),n=R._active;n&&n!==t&&(n._domFocus=!1,n._set(h,!1,{src:B}),R._active=null),t&&(t._domFocus=!0,t._set(h,!0,{src:B}),R._active=t)},toString:function(){return this.name+"["+this.get(x)+"]"},DEF_UNIT:"px",DEF_PARENT_NODE:null,CONTENT_TEMPLATE:L,BOUNDING_TEMPLATE:L,_guid:function(){return e.guid()},_validTabIndex:function(e){return n.isNumber(e)||n.isNull(e)},_bindAttrUI:function(e){var t,n=e.length;for(t=0;t=0;r--)t=e[r],n.addClass(t.CSS_PREFIX||s(t.NAME.toLowerCase()));this.get(m).addClass(this.getClassName(a))},_removeLoadingClassNames:function(){var e=this.get(v),t=this.get(m),n=this.getClassName(O),r=o(O);e.removeClass(r).removeClass(n),t.removeClass(r).removeClass(n)},_bindUI:function(){this._bindAttrUI(this._UI_ATTRS.BIND),this._bindDOM()},_unbindUI:function(e){this._unbindDOM(e)},_bindDOM:function(){var t=this.get(v).get(y),n=R._hDocFocus;n||(n=R._hDocFocus=t.on("focus",this._onDocFocus,this),n.listeners={count:0}),n.listeners[e.stamp(this,!0)]=!0,n.listeners.count++,I&&(this._hDocMouseDown=t.on("mousedown",this._onDocMouseDown,this))},_unbindDOM:function(t){var n=R._hDocFocus,r=e.stamp(this,!0),i,s=this._hDocMouseDown;n&&(i=n.listeners,i[r]&&(delete i[r],i.count--),i.count===0&&(n.detach(),R._hDocFocus=null)),I&&s&&s.detach()},_syncUI:function(){this._syncAttrUI(this._UI_ATTRS.SYNC)},_uiSetHeight:function(e){this._uiSetDim(d,e),this._uiSizeCB(e!==_&&e!==b)},_uiSetWidth:function(e){this._uiSetDim(p,e)},_uiSetDim:function(e,t){this.get(v).setStyle(e,n.isNumber(t)?t+this.DEF_UNIT:t)},_uiSetVisible:function(e){this.get(v).toggleClass(this.getClassName(l),!e)},_uiSetDisabled:function(e){this.get(v).toggleClass(this.getClassName(c),e)},_uiSetFocused:function(e,t){var n=this.get(v);n.toggleClass(this.getClassName(h),e),t!==B&&(e?n.focus():n.blur())},_uiSetTabIndex:function(e){var t=this.get(v);n.isNumber(e)?t.set(S,e):t.removeAttribute(S)},_onDocMouseDown:function(e){this._domFocus&&this._onDocFocus(e)},_onDocFocus:function(e){var t=R.getByNode(e.target),n=R._active;n&&n!==t&&(n._domFocus=!1,n._set(h,!1,{src:B}),R._active=null),t&&(t._domFocus=!0,t._set(h,!0,{src:B}),R._active=t)},toString:function(){return this.name+"["+this.get(x)+"]"},DEF_UNIT:"px",DEF_PARENT_NODE:null,CONTENT_TEMPLATE:L,BOUNDING_TEMPLATE:L,_guid:function(){return e.guid()},_validTabIndex:function(e){return n.isNumber(e)||n.isNull(e)},_bindAttrUI:function(e){var t,n=e.length;for(t=0;t