throwtypeoftarget==='string'?newError('Target element "'+target+'" not found.'):newTypeError('Target must be a Number/Selector/HTMLElement/VueComponent, received '+type(target)+' instead.');
}
vartotalOffset=0;
while(el){
totalOffset+=el.offsetTop;
el=el.offsetParent;
}
returntotalOffset;
}
functiongetContainer(container){
varel=$(container);
if(el)returnel;
throwtypeofcontainer==='string'?newError('Container element "'+container+'" not found.'):newTypeError('Container must be a Selector/HTMLElement/VueComponent, received '+type(container)+' instead.');