/
www
/
wwwroot
/
alo88.autos
/
wp-content
/
plugins
/
wp-content-crawler
/
app
/
public
/
node_modules
/
tether
/
dist
/
js
/
Upload File
HOME
/*! tether 2.0.0-beta.5 */ function t(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function e(t){return"string"==typeof t}function o(t){return void 0===t}function i(t,e){e.split(" ").forEach((function(e){e.trim()&&t.classList.add(e)}))}function n(t,e,i){return void 0===t&&(t=""),o(e)||o(e[t])?i?i+"-"+t:t:!1===e[t]?"":e[t]}function s(t,e){e.split(" ").forEach((function(e){e.trim()&&t.classList.remove(e)}))}function r(t,e,o){o.forEach((function(o){-1===e.indexOf(o)&&t.classList.contains(o)&&s(t,o)})),e.forEach((function(e){t.classList.contains(e)||i(t,e)}))}var a=[];function h(t){a.push(t)}function l(){for(var t;t=a.pop();)t()}var f=null;function p(t){void 0===t&&(t={});var e=[];return Array.prototype.push.apply(e,arguments),e.slice(1).forEach((function(e){if(e)for(var o in e)({}).hasOwnProperty.call(e,o)&&(t[o]=e[o])})),t}function d(){if(f)return f;var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");p(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);var o=t.offsetWidth;e.style.overflow="scroll";var i=t.offsetWidth;o===i&&(i=e.clientWidth),document.body.removeChild(e);var n=o-i;return f={width:n,height:n}}var c,u=(c=0,function(){return++c}),m={},g=null;function v(t,e){var i;e===document?(i=document,e=document.documentElement):i=e.ownerDocument;var n=i.documentElement,s=b(e),r=function(t){var e=g;e&&t.contains(e)||((e=document.createElement("div")).setAttribute("data-tether-id",u()),p(e.style,{top:0,left:0,position:"absolute"}),t.appendChild(e),g=e);var i=e.getAttribute("data-tether-id");o(m[i])&&(m[i]=b(e),h((function(){delete m[i]})));return m[i]}(t);return s.top-=r.top,s.left-=r.left,o(s.width)&&(s.width=document.body.scrollWidth-s.left-s.right),o(s.height)&&(s.height=document.body.scrollHeight-s.top-s.bottom),s.top=s.top-n.clientTop,s.left=s.left-n.clientLeft,s.right=i.body.clientWidth-s.width-s.left,s.bottom=i.body.clientHeight-s.height-s.top,s}function b(t){var e=t.getBoundingClientRect(),o={};for(var i in e)o[i]=e[i];try{if(t.ownerDocument!==document){var n=t.ownerDocument.defaultView.frameElement;if(n){var s=b(n);o.top+=s.top,o.bottom+=s.top,o.left+=s.left,o.right+=s.left}}}catch(t){}return o}var w={position:function(t){var e=this,o=t.top,i=t.left,s=this.cache("element-bounds",(function(){return v(e.element)})),a=s.height,l=s.width,f=this.getTargetBounds(),p=o+a,d=i+l,c=[];o<=f.bottom&&p>=f.top&&["left","right"].forEach((function(t){var e=f[t];e!==i&&e!==d||c.push(t)})),i<=f.right&&d>=f.left&&["top","bottom"].forEach((function(t){var e=f[t];e!==o&&e!==p||c.push(t)}));var u=this.options,m=u.classes,g=u.classPrefix;return this.all.push(n("abutted",m,g)),["left","top","right","bottom"].forEach((function(t){e.all.push(n("abutted",m,g)+"-"+t)})),c.length&&this.add.push(n("abutted",m,g)),c.forEach((function(t){e.add.push(n("abutted",m,g)+"-"+t)})),h((function(){!1!==e.options.addTargetClasses&&r(e.target,e.add,e.all),r(e.element,e.add,e.all)})),!0}},y=["left","top","right","bottom"];var E={position:function(t){var i=this,s=t.top,a=t.left,l=t.targetAttachment;if(!this.options.constraints)return!0;var f=this.cache("element-bounds",(function(){return v(i.bodyElement,i.element)})),d=f.height,c=f.width;if(0===c&&0===d&&!o(this.lastSize)){var u=this.lastSize;c=u.width,d=u.height}var m=this.cache("target-bounds",(function(){return i.getTargetBounds()})),g=m.height,b=m.width,w=this.options,E=w.classes,O=w.classPrefix,x=function(t,e,o){var i=[n("pinned",t,e),n("out-of-bounds",t,e)];return o.forEach((function(t){var e=t.outOfBoundsClass,o=t.pinnedClass;e&&i.push(e),o&&i.push(o)})),i.forEach((function(t){["left","top","right","bottom"].forEach((function(e){i.push(t+"-"+e)}))})),i}(E,O,this.options.constraints),C=[],T=p({},l),P=p({},this.attachment);return this.options.constraints.forEach((function(t){var r,h,f=t.to,p=t.attachment,u=t.pin;if(o(p)&&(p=""),p.indexOf(" ")>=0){var m=p.split(" ");h=m[0],r=m[1]}else r=h=p;var w=function(t,e,i){if(!i)return null;if("scrollParent"===i?i=e.scrollParents[0]:"window"===i&&(i=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),i===document&&(i=i.documentElement),!o(i.nodeType)){var n=i,s=v(t,i),r=s,a=getComputedStyle(i);if(i=[r.left,r.top,s.width+r.left,s.height+r.top],n.ownerDocument!==document){var h=n.ownerDocument.defaultView;i[0]+=h.pageXOffset,i[1]+=h.pageYOffset,i[2]+=h.pageXOffset,i[3]+=h.pageYOffset}y.forEach((function(t,e){"Top"===(t=t[0].toUpperCase()+t.substr(1))||"Left"===t?i[e]+=parseFloat(a["border"+t+"Width"]):i[e]-=parseFloat(a["border"+t+"Width"])}))}return i}(i.bodyElement,i,f);"target"!==h&&"both"!==h||(s<w[1]&&"top"===T.top&&(s+=g,T.top="bottom"),s+d>w[3]&&"bottom"===T.top&&(s-=g,T.top="top")),"together"===h&&(s=function(t,e,o,i,n,s){return"top"===t.top&&("bottom"===e.top&&s<o[1]?(s+=n,t.top="bottom",s+=i,e.top="top"):"top"===e.top&&s+i>o[3]&&s-(i-n)>=o[1]&&(s-=i-n,t.top="bottom",e.top="bottom")),"bottom"===t.top&&("top"===e.top&&s+i>o[3]?(s-=n,t.top="top",s-=i,e.top="bottom"):"bottom"===e.top&&s<o[1]&&s+(2*i-n)<=o[3]&&(s+=i-n,t.top="top",e.top="top")),"middle"===t.top&&(s+i>o[3]&&"top"===e.top?(s-=i,e.top="bottom"):s<o[1]&&"bottom"===e.top&&(s+=i,e.top="top")),s}(T,P,w,d,g,s)),"target"!==r&&"both"!==r||(a<w[0]&&"left"===T.left&&(a+=b,T.left="right"),a+c>w[2]&&"right"===T.left&&(a-=b,T.left="left")),"together"===r&&(a=function(t,e,o,i,n,s){return s<o[0]&&"left"===t.left?"right"===e.left?(s+=n,t.left="right",s+=i,e.left="left"):"left"===e.left&&(s+=n,t.left="right",s-=i,e.left="right"):s+i>o[2]&&"right"===t.left?"left"===e.left?(s-=n,t.left="left",s-=i,e.left="right"):"right"===e.left&&(s-=n,t.left="left",s+=i,e.left="left"):"center"===t.left&&(s+i>o[2]&&"left"===e.left?(s-=i,e.left="right"):s<o[0]&&"right"===e.left&&(s+=i,e.left="left")),s}(T,P,w,c,b,a)),"element"!==h&&"both"!==h||(s<w[1]&&"bottom"===P.top&&(s+=d,P.top="top"),s+d>w[3]&&"top"===P.top&&(s-=d,P.top="bottom")),"element"!==r&&"both"!==r||(a<w[0]&&("right"===P.left?(a+=c,P.left="left"):"center"===P.left&&(a+=c/2,P.left="left")),a+c>w[2]&&("left"===P.left?(a-=c,P.left="right"):"center"===P.left&&(a-=c/2,P.left="right"))),e(u)?u=u.split(",").map((function(t){return t.trim()})):!0===u&&(u=["top","left","right","bottom"]);var x,A=[],W=[];(a=function(t,e,o,i,n,s){return t<e[0]&&(i.indexOf("left")>=0?(t=e[0],n.push("left")):s.push("left")),t+o>e[2]&&(i.indexOf("right")>=0?(t=e[2]-o,n.push("right")):s.push("right")),t}(a,w,c,u=u||[],A,W),s=function(t,e,o,i,n,s){return t<e[1]&&(i.indexOf("top")>=0?(t=e[1],n.push("top")):s.push("top")),t+o>e[3]&&(i.indexOf("bottom")>=0?(t=e[3]-o,n.push("bottom")):s.push("bottom")),t}(s,w,d,u,A,W),A.length)&&(x=o(i.options.pinnedClass)?n("pinned",E,O):i.options.pinnedClass,C.push(x),A.forEach((function(t){C.push(x+"-"+t)})));!function(t,e,i,s,r){var a;t.length&&(a=o(r)?n("out-of-bounds",i,s):r,e.push(a),t.forEach((function(t){e.push(a+"-"+t)})))}(W,C,E,O,i.options.outOfBoundsClass),(A.indexOf("left")>=0||A.indexOf("right")>=0)&&(P.left=T.left=!1),(A.indexOf("top")>=0||A.indexOf("bottom")>=0)&&(P.top=T.top=!1),T.top===l.top&&T.left===l.left&&P.top===i.attachment.top&&P.left===i.attachment.left||(i.updateAttachClasses(P,T),i.trigger("update",{attachment:P,targetAttachment:T}))})),h((function(){!1!==i.options.addTargetClasses&&r(i.target,C,x),r(i.element,C,x)})),{top:s,left:a}}},O={position:function(t){var o=t.top,i=t.left;if(this.options.shift){var n,s,r=this.options.shift;if("function"==typeof r&&(r=r.call(this,{top:o,left:i})),e(r)){(r=r.split(" "))[1]=r[1]||r[0];var a=r;n=a[0],s=a[1],n=parseFloat(n,10),s=parseFloat(s,10)}else{var h=[r.top,r.left];n=h[0],s=h[1]}return{top:o+=n,left:i+=s}}}},x=function(){function t(){}var e=t.prototype;return e.on=function(t,e,i,n){return void 0===n&&(n=!1),o(this.bindings)&&(this.bindings={}),o(this.bindings[t])&&(this.bindings[t]=[]),this.bindings[t].push({handler:e,ctx:i,once:n}),this},e.once=function(t,e,o){return this.on(t,e,o,!0)},e.off=function(t,e){var i=this;return o(this.bindings)||o(this.bindings[t])?this:(o(e)?delete this.bindings[t]:this.bindings[t].forEach((function(o,n){o.handler===e&&i.bindings[t].splice(n,1)})),this)},e.trigger=function(t){for(var e=this,i=arguments.length,n=new Array(i>1?i-1:0),s=1;s<i;s++)n[s-1]=arguments[s];return!o(this.bindings)&&this.bindings[t]&&this.bindings[t].forEach((function(o,i){var s=o.ctx,r=o.handler,a=o.once,h=s||e;r.apply(h,n),a&&e.bindings[t].splice(i,1)})),this},t}(),C={center:"center",left:"right",right:"left"},T={middle:"middle",top:"bottom",bottom:"top"},P={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"};function A(){for(var t={top:0,left:0},o=arguments.length,i=new Array(o),n=0;n<o;n++)i[n]=arguments[n];return i.forEach((function(o){var i=o.top,n=o.left;e(i)&&(i=parseFloat(i)),e(n)&&(n=parseFloat(n)),t.top+=i,t.left+=n})),t}function W(t){var e=t.left,i=t.top;return o(P[t.left])||(e=P[t.left]),o(P[t.top])||(i=P[t.top]),{left:e,top:i}}function _(t,o){return e(t.left)&&-1!==t.left.indexOf("%")&&(t.left=parseFloat(t.left)/100*o.width),e(t.top)&&-1!==t.top.indexOf("%")&&(t.top=parseFloat(t.top)/100*o.height),t}function M(t){var e=t.split(" ");return{top:e[0],left:e[1]}}function z(t){return t.offsetParent||document.documentElement}var F={modules:[E,w,O]};var L,Y,S,X,H=function(){if(o(document))return"";for(var t=document.createElement("div"),e=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],i=0;i<e.length;++i){var n=e[i];if(void 0!==t.style[n])return n}}(),D=[],B=function(){D.forEach((function(t){t.position(!1)})),l()};function k(){return performance.now()}L=null,Y=null,S=null,X=function t(){if(!o(Y)&&Y>16)return Y=Math.min(Y-16,250),void(S=setTimeout(t,250));!o(L)&&k()-L<10||(null!=S&&(clearTimeout(S),S=null),L=k(),B(),Y=k()-L)},o(window)||o(window.addEventListener)||["resize","scroll","touchmove"].forEach((function(t){window.addEventListener(t,X)}));var N=function(a){var f,c;function u(e){var i;return(i=a.call(this)||this).position=i.position.bind(t(i)),D.push(t(i)),i.history=[],i.setOptions(e,!1),F.modules.forEach((function(e){o(e.initialize)||e.initialize.call(t(i))})),i.position(),i}c=a,(f=u).prototype=Object.create(c.prototype),f.prototype.constructor=f,f.__proto__=c;var m=u.prototype;return m.setOptions=function(t,i){var n=this;void 0===i&&(i=!0);var s={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether",bodyElement:document.body};this.options=p(s,t);var r=this.options,a=r.element,h=r.target,l=r.targetModifier,f=r.bodyElement;if(this.element=a,this.target=h,this.targetModifier=l,"string"==typeof f&&(f=document.querySelector(f)),this.bodyElement=f,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach((function(t){if(o(n[t]))throw new Error("Tether Error: Both element and target must be defined");o(n[t].jquery)?e(n[t])&&(n[t]=document.querySelector(n[t])):n[t]=n[t][0]})),this._addClasses(),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=M(this.options.targetAttachment),this.attachment=M(this.options.attachment),this.offset=M(this.options.offset),this.targetOffset=M(this.options.targetOffset),o(this.scrollParents)||this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=function(t){var e=(getComputedStyle(t)||{}).position,i=[];if("fixed"===e)return[t];for(var n=t;(n=n.parentNode)&&n&&1===n.nodeType;){var s=void 0;try{s=getComputedStyle(n)}catch(t){}if(o(s)||null===s)return i.push(n),i;var r=s,a=r.overflow,h=r.overflowX,l=r.overflowY;/(auto|scroll|overlay)/.test(a+l+h)&&("absolute"!==e||["relative","absolute","fixed"].indexOf(s.position)>=0)&&i.push(n)}return i.push(t.ownerDocument.body),t.ownerDocument!==document&&i.push(t.ownerDocument.defaultView),i}(this.target),!1!==this.options.enabled&&this.enable(i)},m.getTargetBounds=function(){return o(this.targetModifier)?v(this.bodyElement,this.target):"visible"===this.targetModifier?function(t,e){if(e===document.body)return{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth};var o=v(t,e),i={height:o.height,width:o.width,top:o.top,left:o.left};return i.height=Math.min(i.height,o.height-(pageYOffset-o.top)),i.height=Math.min(i.height,o.height-(o.top+o.height-(pageYOffset+innerHeight))),i.height=Math.min(innerHeight,i.height),i.height-=2,i.width=Math.min(i.width,o.width-(pageXOffset-o.left)),i.width=Math.min(i.width,o.width-(o.left+o.width-(pageXOffset+innerWidth))),i.width=Math.min(innerWidth,i.width),i.width-=2,i.top<pageYOffset&&(i.top=pageYOffset),i.left<pageXOffset&&(i.left=pageXOffset),i}(this.bodyElement,this.target):"scroll-handle"===this.targetModifier?function(t,e){var o,i=e.scrollTop,n=e===document.body;n?(e=document.documentElement,o={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):o=v(t,e);var s=getComputedStyle(e),r=0;(e.scrollWidth>e.clientWidth||[s.overflow,s.overflowX].indexOf("scroll")>=0||!n)&&(r=15);var a=o.height-parseFloat(s.borderTopWidth)-parseFloat(s.borderBottomWidth)-r,h={width:15,height:.975*a*(a/e.scrollHeight),left:o.left+o.width-parseFloat(s.borderLeftWidth)-15},l=0;a<408&&n&&(l=-11e-5*Math.pow(a,2)-.00727*a+22.58),n||(h.height=Math.max(h.height,24));var f=i/(e.scrollHeight-a);return h.top=f*(a-h.height-l)+o.top+parseFloat(s.borderTopWidth),n&&(h.height=Math.max(h.height,24)),h}(this.bodyElement,this.target):void 0},m.clearCache=function(){this._cache={}},m.cache=function(t,e){return o(this._cache)&&(this._cache={}),o(this._cache[t])&&(this._cache[t]=e.call(this)),this._cache[t]},m.enable=function(t){var e=this;void 0===t&&(t=!0);var o=this.options,s=o.classes,r=o.classPrefix;!1!==this.options.addTargetClasses&&i(this.target,n("enabled",s,r)),i(this.element,n("enabled",s,r)),this.enabled=!0,this.scrollParents.forEach((function(t){t!==e.target.ownerDocument&&t.addEventListener("scroll",e.position)})),t&&this.position()},m.disable=function(){var t=this,e=this.options,i=e.classes,r=e.classPrefix;s(this.target,n("enabled",i,r)),s(this.element,n("enabled",i,r)),this.enabled=!1,o(this.scrollParents)||this.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.position)}))},m.destroy=function(){var t,e=this;this.disable(),this._removeClasses(),D.forEach((function(t,o){t===e&&D.splice(o,1)})),0===D.length&&(t=this.bodyElement,g&&t.removeChild(g),g=null)},m.updateAttachClasses=function(t,e){var i=this;t=t||this.attachment,e=e||this.targetAttachment;var s=this.options,a=s.classes,l=s.classPrefix;!o(this._addAttachClasses)&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),o(this._addAttachClasses)&&(this._addAttachClasses=[]),this.add=this._addAttachClasses,t.top&&this.add.push(n("element-attached",a,l)+"-"+t.top),t.left&&this.add.push(n("element-attached",a,l)+"-"+t.left),e.top&&this.add.push(n("target-attached",a,l)+"-"+e.top),e.left&&this.add.push(n("target-attached",a,l)+"-"+e.left),this.all=[],["left","top","bottom","right","middle","center"].forEach((function(t){i.all.push(n("element-attached",a,l)+"-"+t),i.all.push(n("target-attached",a,l)+"-"+t)})),h((function(){o(i._addAttachClasses)||(r(i.element,i._addAttachClasses,i.all),!1!==i.options.addTargetClasses&&r(i.target,i._addAttachClasses,i.all),delete i._addAttachClasses)}))},m.position=function(t){var e=this;if(void 0===t&&(t=!0),this.enabled){this.clearCache();var i=function(t,e){var o=t.left,i=t.top;return"auto"===o&&(o=C[e.left]),"auto"===i&&(i=T[e.top]),{left:o,top:i}}(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,i);var n=this.cache("element-bounds",(function(){return v(e.bodyElement,e.element)})),s=n.width,r=n.height;if(0!==s||0!==r||o(this.lastSize))this.lastSize={width:s,height:r};else{var a=this.lastSize;s=a.width,r=a.height}var h=this.cache("target-bounds",(function(){return e.getTargetBounds()})),f=h,p=_(W(this.attachment),{width:s,height:r}),c=_(W(i),f),u=_(this.offset,{width:s,height:r}),m=_(this.targetOffset,f);p=A(p,u),c=A(c,m);for(var g=h.left+c.left-p.left,b=h.top+c.top-p.top,w=0;w<F.modules.length;++w){var y=F.modules[w].position.call(this,{left:g,top:b,targetAttachment:i,targetPos:h,elementPos:n,offset:p,targetOffset:c,manualOffset:u,manualTargetOffset:m,scrollbarSize:E,attachment:this.attachment});if(!1===y)return!1;o(y)||"object"!=typeof y||(b=y.top,g=y.left)}var E,O={page:{top:b,left:g},viewport:{top:b-pageYOffset,bottom:pageYOffset-b-r+innerHeight,left:g-pageXOffset,right:pageXOffset-g-s+innerWidth}},x=this.target.ownerDocument,P=x.defaultView;if(P.innerHeight>x.documentElement.clientHeight&&(E=this.cache("scrollbar-size",d),O.viewport.bottom-=E.height),P.innerWidth>x.documentElement.clientWidth&&(E=this.cache("scrollbar-size",d),O.viewport.right-=E.width),-1!==["","static"].indexOf(x.body.style.position)&&-1!==["","static"].indexOf(x.body.parentElement.style.position)||(O.page.bottom=x.body.scrollHeight-b-r,O.page.right=x.body.scrollWidth-g-s),!o(this.options.optimizations)&&!1!==this.options.optimizations.moveElement&&o(this.targetModifier)){var M=this.cache("target-offsetparent",(function(){return z(e.target)})),L=this.cache("target-offsetparent-bounds",(function(){return v(e.bodyElement,M)})),Y=getComputedStyle(M),S=L,X={};if(["Top","Left","Bottom","Right"].forEach((function(t){X[t.toLowerCase()]=parseFloat(Y["border"+t+"Width"])})),L.right=x.body.scrollWidth-L.left-S.width+X.right,L.bottom=x.body.scrollHeight-L.top-S.height+X.bottom,O.page.top>=L.top+X.top&&O.page.bottom>=L.bottom&&O.page.left>=L.left+X.left&&O.page.right>=L.right){var H=M.scrollLeft,D=M.scrollTop;O.offset={top:O.page.top-L.top+D-X.top,left:O.page.left-L.left+H-X.left}}}return this.move(O),this.history.unshift(O),this.history.length>3&&this.history.pop(),t&&l(),!0}},m.move=function(t){var e=this;if(!o(this.element.parentNode)){var i,n,s,r={};for(var a in t)for(var l in r[a]={},t[a]){for(var f=!1,d=0;d<this.history.length;++d){var c=this.history[d];if(!(o(c[a])||(i=c[a][l],n=t[a][l],s=void 0,void 0===s&&(s=1),i+s>=n&&n>=i-s))){f=!0;break}}f||(r[a][l]=!0)}var u={top:"",left:"",right:"",bottom:""},m=function(t,i){var n,s;!1!==(!o(e.options.optimizations)?e.options.optimizations.gpu:null)?(t.top?(u.top=0,n=i.top):(u.bottom=0,n=-i.bottom),t.left?(u.left=0,s=i.left):(u.right=0,s=-i.right),"number"==typeof window.devicePixelRatio&&devicePixelRatio%1==0&&(s=Math.round(s*devicePixelRatio)/devicePixelRatio,n=Math.round(n*devicePixelRatio)/devicePixelRatio),u[H]="translateX("+s+"px) translateY("+n+"px)","msTransform"!==H&&(u[H]+=" translateZ(0)")):(t.top?u.top=i.top+"px":u.bottom=i.bottom+"px",t.left?u.left=i.left+"px":u.right=i.right+"px")},g=!0;!o(this.options.optimizations)&&!1===this.options.optimizations.allowPositionFixed&&(g=!1);var v,b,w=!1;if((r.page.top||r.page.bottom)&&(r.page.left||r.page.right))u.position="absolute",m(r.page,t.page);else if(g&&(r.viewport.top||r.viewport.bottom)&&(r.viewport.left||r.viewport.right))u.position="fixed",m(r.viewport,t.viewport);else if(!o(r.offset)&&r.offset.top&&r.offset.left){u.position="absolute";var y=this.cache("target-offsetparent",(function(){return z(e.target)}));z(this.element)!==y&&h((function(){e.element.parentNode.removeChild(e.element),y.appendChild(e.element)})),m(r.offset,t.offset),w=!0}else u.position="absolute",m({top:!0,left:!0},t.page);if(!w)if(this.options.bodyElement)this.element.parentNode!==this.options.bodyElement&&this.options.bodyElement.appendChild(this.element);else{for(var E=!0,O=this.element.parentNode;O&&1===O.nodeType&&"BODY"!==O.tagName&&(b=void 0,((b=(v=O).ownerDocument).fullscreenElement||b.webkitFullscreenElement||b.mozFullScreenElement||b.msFullscreenElement)!==v);){if("static"!==getComputedStyle(O).position){E=!1;break}O=O.parentNode}E||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var x={},C=!1;for(var T in u){var P=u[T];this.element.style[T]!==P&&(C=!0,x[T]=P)}C&&h((function(){p(e.element.style,x),e.trigger("repositioned")}))}},m._addClasses=function(){var t=this.options,e=t.classes,o=t.classPrefix;i(this.element,n("element",e,o)),!1!==this.options.addTargetClasses&&i(this.target,n("target",e,o))},m._removeClasses=function(){var t=this,e=this.options,o=e.classes,i=e.classPrefix;s(this.element,n("element",o,i)),!1!==this.options.addTargetClasses&&s(this.target,n("target",o,i)),this.all.forEach((function(e){t.element.classList.remove(e),t.target.classList.remove(e)}))},u}(x);N.modules=[],F.position=B;var R=p(N,F);R.modules.push({initialize:function(){var t=this,e=this.options,o=e.classes,i=e.classPrefix;this.markers={},["target","element"].forEach((function(e){var s=document.createElement("div");s.className=n(e+"-marker",o,i);var r=document.createElement("div");r.className=n("marker-dot",o,i),s.appendChild(r),t[e].appendChild(s),t.markers[e]={dot:r,el:s}}))},position:function(t){var o={element:t.manualOffset,target:t.manualTargetOffset};for(var i in o){var n=o[i];for(var s in n){var r=n[s];(!e(r)||-1===r.indexOf("%")&&-1===r.indexOf("px"))&&(r+="px"),this.markers[i].dot.style[s]!==r&&(this.markers[i].dot.style[s]=r)}}return!0}});export default R; //# sourceMappingURL=tether.esm.min.js.map