var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); var install = function(win) { win = win || this; var doc = win.document; var undefined = win.undefined; win.XPathExpression = function(expr) { if (!expr.length) { throw win.Error('no expression'); } var lexer = this.lexer = Lexer(expr); if (lexer.empty()) { throw win.Error('no expression'); } this.expr = BinaryExpr.parse(lexer); if (!lexer.empty()) { throw win.Error('bad token: ' + lexer.next()); } }; win.XPathExpression.prototype.evaluate = function(node, type) { return new win.XPathResult(this.expr.evaluate(new Ctx(node)), type); }; win.XPathResult = function (value, type) { if (type == 0) { switch (typeof value) { case 'object': type ++; // 4 case 'boolean': type ++; // 3 case 'string': type ++; // 2 case 'number': type ++; // 1 } } this.resultType = type; switch (type) { case 1: this.numberValue = value.isNodeSet ? value.number() : +value; return; case 2: this.stringValue = value.isNodeSet ? value.string() : '' + value; return; case 3: this.booleanValue = value.isNodeSet ? value.bool() : !! value; return; case 4: case 5: case 6: case 7: this.nodes = value.list(); this.snapshotLength = value.length; this.index = 0; this.invalidIteratorState = false; break; case 8: case 9: this.singleNodeValue = value.first(); return; } }; win.XPathResult.prototype.iterateNext = function() { return this.nodes[this.index++] }; win.XPathResult.prototype.snapshotItem = function(i) { return this.nodes[i] }; win.XPathResult.ANY_TYPE = 0; win.XPathResult.NUMBER_TYPE = 1; win.XPathResult.STRING_TYPE = 2; win.XPathResult.BOOLEAN_TYPE = 3; win.XPathResult.UNORDERED_NODE_ITERATOR_TYPE = 4; win.XPathResult.ORDERED_NODE_ITERATOR_TYPE = 5; win.XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE = 6; win.XPathResult.ORDERED_NODE_SNAPSHOT_TYPE = 7; win.XPathResult.ANY_UNORDERED_NODE_TYPE = 8; win.XPathResult.FIRST_ORDERED_NODE_TYPE = 9; doc.createExpression = function(expr) { return new win.XPathExpression(expr, null); }; doc.evaluate = function(expr, context, _, type) { return doc.createExpression(expr, null).evaluate(context, type); }; }; var win; if (config.targetFrame) { var frame = document.getElementById(config.targetFrame); if (frame) win = frame.contentWindow; } if (config.exportInstaller) { window.install = install; } if (!config.hasNative || !config.useNative) { install(win || window); } } /* FILE ARCHIVED ON 15:15:15 Mar 26, 2015 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 15:31:39 Sep 01, 2025. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 0.649 exclusion.robots: 0.036 exclusion.robots.policy: 0.022 esindex: 0.012 cdx.remote: 9.409 LoadShardBlock: 94.476 (3) PetaboxLoader3.datanode: 121.079 (5) load_resource: 281.517 (2) PetaboxLoader3.resolve: 185.31 (2) */