define("qui/utils/Elements",{isInViewport:function(e){"use strict";var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},getComputedZIndex:function(e){"use strict";var t,n,r,i=0,o=e.getParents();for(t=0,r=o.length;r>t;t++)n=o[t].getStyle("zIndex"),"auto"!=n&&n>i&&(i=n);return i},getChildIndex:function(e){"use strict";return Array.prototype.indexOf.call(e.getParent().children,e)},getCursorPosition:function(e){"use strict";if("INPUT"!==e.nodeName)return null;if("selectionStart"in e)return e.selectionStart;if(document.selection){e.focus();var t=document.selection.createRange(),n=t.text.length;return t.moveStart("character",-e.value.length),t.text.length-n}return null},setCursorPosition:function(e,t){"use strict";if("INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)return null;if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),void n.select()}return e.selectionStart?(e.focus(),void e.setSelectionRange(t+1,t+1)):void e.focus()}});
//# sourceMappingURL=Elements.js.map