thrownewError(componentName.toUpperCase()+": "+("Option \""+property+"\" provided type \""+valueType+"\"")+("but expected type \""+expectedTypes+"\"."));
}
}
}
},
findShadowRoot:functionfindShadowRoot(element){
if(!document.documentElement.attachShadow){
returnnull;
}// Can find the shadow root otherwise it'll return the document
if(typeofelement.getRootNode==='function'){
varroot=element.getRootNode();
returnrootinstanceofShadowRoot?root:null;
}
if(elementinstanceofShadowRoot){
returnelement;
}// when we don't find a shadow root
if(!element.parentNode){
returnnull;
}
returnUtil.findShadowRoot(element.parentNode);
},
jQueryDetection:functionjQueryDetection(){
if(typeof$__default['default']==='undefined'){
thrownewTypeError('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.');