!function(t,e){"function"==typeofdefine&&define.amd?define(e):"object"==typeofexports?module.exports=e(require,exports,module):t.Tether=e()}(this,function(t,e,o){"use strict";functioni(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}functionn(t){vare=t.getBoundingClientRect(),o={};for(variine)o[i]=e[i];if(t.ownerDocument!==document){varr=t.ownerDocument.defaultView.frameElement;if(r){vars=n(r);o.top+=s.top,o.bottom+=s.top,o.left+=s.left,o.right+=s.left}}returno}functionr(t){vare=getComputedStyle(t)||{},o=e.position,i=[];if("fixed"===o)return[t];for(varn=t;(n=n.parentNode)&&n&&1===n.nodeType;){varr=void0;try{r=getComputedStyle(n)}catch(s){}if("undefined"==typeofr||null===r)returni.push(n),i;vara=r,f=a.overflow,l=a.overflowX,h=a.overflowY;/(auto|scroll)/.test(f+h+l)&&("absolute"!==o||["relative","absolute","fixed"].indexOf(r.position)>=0)&&i.push(n)}returni.push(t.ownerDocument.body),t.ownerDocument!==document&&i.push(t.ownerDocument.defaultView),i}functions(){A&&document.body.removeChild(A),A=null}functiona(t){vare=void0;t===document?(e=document,t=document.documentElement):e=t.ownerDocument;varo=e.documentElement,i=n(t),r=P();returni.top-=r.top,i.left-=r.left,"undefined"==typeofi.width&&(i.width=document.body.scrollWidth-i.left-i.right),"undefined"==typeofi.height&&(i.height=document.body.scrollHeight-i.top-i.bottom),i.top=i.top-o.clientTop,i.left=i.left-o.clientLeft,i.right=e.body.clientWidth-i.width-i.left,i.bottom=e.body.clientHeight-i.height-i.top,i}functionf(t){returnt.offsetParent||document.documentElement}functionl(){if(M)returnM;vart=document.createElement("div");t.style.width="100%",t.style.height="200px";vare=document.createElement("div");h(e.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e);varo=t.offsetWidth;e.style.overflow="scroll";vari=t.offsetWidth;o===i&&(i=e.clientWidth),document.body.removeChild(e);varn=o-i;returnM={width:n,height:n}}functionh(){vart=arguments.length<=0||void0===arguments[0]?{}:arguments[0],e=[];returnArray.prototype.push.apply(e,arguments),e.slice(1).forEach(function(e){if(e)for(varoine)({}).hasOwnProperty.call(e,o)&&(t[o]=e[o])}),t}functiond(t,e){if("undefined"!=typeoft.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.remove(e)});else{varo=newRegExp("(^| )"+e.split(" ").join("|")+"( |$)","gi"),i=c(t).replace(o," ");g(t,i)}}functionp(t,e){if("undefined"!=typeoft.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.add(e)});else{d(t,e);varo=c(t)+(" "+e);g(t,o)}}functionu(t,e){if("undefined"!=typeoft.classList)returnt.classList.contains(e);varo=c(t);returnnewRegExp("(^| )"+e+"( |$)","gi").test(o)}functionc(t){returnt.classNameinstanceoft.ownerDocument.defaultView.SVGAnimatedString?t.className.baseVal:t.className}functiong(t,e){t.setAttribute("class",e)}functionm(t,e,o){o.forEach(function(o){e.indexOf(o)===-1&&u(t,o)&&d(t,o)}),e.forEach(function(e){u(t,e)||p(t,e)})}functioni(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}functionv(t,e){if("function"!=typeofe&&null!==e)thrownewTypeError("Super expression must either be null or a function, not "+typeofe);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}functiony(t,e){varo=arguments.length<=2||void0===arguments[2]?1:arguments[2];returnt+o>=e&&e>=t-o}functionb(){return"undefined"!=typeofperformance&&"undefined"!=typeofperformance.now?performance.now():+newDate}functionw(){for(vart={top:0,left:0},e=arguments.length,o=Array(e),i=0;i<e;i++)o[i]=arguments[i];returno.forEach(function(e){varo=e.top,i=e.left;"string"==typeofo&&(o=parseFloat(o,10)),"string"==typeofi&&(i=parseFloat(i,10)),t.top+=o,t.left+=i}),t}functionC(t,e){return"string"==typeoft.left&&t.left.indexOf("%")!==-1&&(t.left=parseFloat(t.left,10)/100*e.widt