(function(){// During the rave-navigation.js build, this file is added to the top. // Create an inner self-executing function that will be run with the global scope // On browsers, this is 'window'. Everywhere else should use 'this' if available. // Need to run eval('this') "indirectly" by having eval returned by (1,eval). OBVIOUSLY :) var _window = (1, eval)('this'); (function (global, factory) { // dynamically determine how 'rave' variable should be loaded depeneding on loader type var _rave; if (typeof module === "object" && typeof module.exports === "object" && typeof require == "function") { // CommonJS/node.js var rave = require("rave"); var navigation = factory(global,rave); module.exports = rave; } else if (typeof define === "function" && define.amd) { // AMD define(['rave'], function(rave) { return factory(global,rave); }); } else { // probably loading via script tag. run as is, setting stuff on rave factory(global,global['rave']); } }(_window, function (_global, _rave) {function gb(){return function(ob){return ob}}function q(){return function(){}}function w(ob){return function(U){this[ob]=U}}function x(ob){return function(){return this[ob]}}function A(ob){return function(){return ob}} var a="undefined"!==typeof _global?_global:(0,eval)("this"),b="undefined"!==typeof _rave?_rave:a.rave,a={},c=b._.com_ibm_rave_core_nativeImpl_Declare,d=b.internal.Selector,e=b.internal.RaveContextManager,f=b.internal.SelectorDelegate,g=a.FocusController={};g.previousLevelFocusableNode=function(a){for(;(a= a.rave_getParentNode())&&!(0<=g.yd(a)););return a};g.nextLevelFocusableNode=function(a){var b=g.firstChild(a),b=g.nextFocusableNodeFromStart(b);if(!b){var c=0;a=a.rave_getChildNodes();for(var d=a.length;cd)for(;e;e=e.rave_getPreviousSibling()){if(0<=g.yd(e))return e}else if(e=g.Wn(e,d,!1))return e;return g.dC(c,b&&0!=d?d:2147483647)};g.nextFocusableNodeFromStart=function(a){return g.hr(a,null)};g.nextFocusableNode=function(a){return g.hr(a,a)};g.hr=function(a,b){if(b){var c=g.yd(b);if(0>c)for(var d=b.rave_getNextSibling();d;d=d.rave_getNextSibling()){if(0<=g.yd(d))return d}else if(d=g.Wn(b.rave_getNextSibling(),c,!0))return d;if(0==c)return null}c=g.firstChild(a?a.rave_getParentNode():null); return(d=g.bC(c,b?g.yd(b):0))?d:g.Wn(c,0,!0)};g.yd=function(a){a=a.rave_getProperty(h.NAVIGATION_INDEX_KEY);return null!=a?~~a:0};g.Wn=function(a,b,c){for(;a;a=c?a.rave_getNextSibling():a.rave_getPreviousSibling())if(g.yd(a)==b)return a;return null};g.bC=function(a,b){for(var c,d=2147483647,e=a;e;e=e.rave_getNextSibling()){var f=g.yd(e);f>b&&fd&&(d=f,c=e)}return c};g.firstChild=function(a){var b; a&&a.rave_hasChildNodes()&&(b=a.rave_getChildNodes()[0]);return b};g.lastChild=function(a){var b;a&&a.rave_hasChildNodes()&&(a=a.rave_getChildNodes(),b=a[a.length-1]);return b};var h=a.NavigationConstants={};h.SELECTOR_ID="raveNavigation";h.NAVIGATION_INDEX_KEY="__raveNavigationIndex__";var k=a.KeyBinding=c({_$functionClassMethod:function(){function a(b){if(null!==b||1