!function(){var moduleFactory=function($){var module=this,exports=function(){$.fn.compare=function(element){try{element=element.jquery?element[0]:element}catch(e){return null}if(window.HTMLElement){var s=HTMLElement.prototype.toString.call(element);if("[xpconnect wrapped native prototype]"==s||"[object XULElement]"==s||"[object Window]"===s)return null}if(this[0].compareDocumentPosition)return this[0].compareDocumentPosition(element);if(this[0]==document&&element!=document)return 8;var number=(this[0]!==element&&this[0].contains(element)&&16)+(this[0]!=element&&element.contains(this[0])&&8),docEl=document.documentElement;
if(this[0].sourceIndex)number+=this[0].sourceIndex<element.sourceIndex&&4,number+=this[0].sourceIndex>element.sourceIndex&&2,number+=(this[0].ownerDocument!==element.ownerDocument||this[0]!=docEl&&this[0].sourceIndex<=0||element!=docEl&&element.sourceIndex<=0)&&1;else{var compare,range=document.createRange(),sourceRange=document.createRange();range.selectNode(this[0]),sourceRange.selectNode(element),compare=range.compareBoundaryPoints(Range.START_TO_START,sourceRange)}return number}};exports(),module.resolveWith(exports)
};dispatch("mvc/dom.compare").containing(moduleFactory).to("Foundry/2.1 Modules")}();