HEX
Server: Apache/2.4.54 (Debian)
System: Linux a5825d2beacc 4.15.0-197-generic #208-Ubuntu SMP Tue Nov 1 17:23:37 UTC 2022 x86_64
User: root (0)
PHP: 8.1.14
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/complianz-gdpr/shepherd/tether-shepherd/tether.min.js
/*! tether 0.6.5 */
(function(a,b){if(typeof define==="function"&&define.amd){define(b)}else{if(typeof exports==="object"){module.exports=b(require,exports,module)}else{a.Tether=b()}}}(this,function(b,a,c){(function(){var q,i,e,w,u,r,g,j,v,t,n,d,s,k,h,o,l,m={}.hasOwnProperty,f=[].indexOf||function(z){for(var y=0,x=this.length;y<x;y++){if(y in this&&this[y]===z){return y}}return -1},p=[].slice;if(this.Tether==null){this.Tether={modules:[]}}n=function(A){var z,x,D,y,B;x=getComputedStyle(A).position;if(x==="fixed"){return A}D=void 0;z=A;while(z=z.parentNode){try{y=getComputedStyle(z)}catch(C){}if(y==null){return z}if(/(auto|scroll)/.test(y.overflow+y["overflow-y"]+y["overflow-x"])){if(x!=="absolute"||((B=y.position)==="relative"||B==="absolute"||B==="fixed")){return z}}}return document.body};h=(function(){var x;x=0;return function(){return x++}})();l={};v=function(B){var C,y,z,x,A;z=B._tetherZeroElement;if(z==null){z=B.createElement("div");z.setAttribute("data-tether-id",h());u(z.style,{top:0,left:0,position:"absolute"});B.body.appendChild(z);B._tetherZeroElement=z}C=z.getAttribute("data-tether-id");if(l[C]==null){l[C]={};A=z.getBoundingClientRect();for(y in A){x=A[y];l[C][y]=x}e(function(){return l[C]=void 0})}return l[C]};s=null;g=function(A){var B,D,E,z,y,x,C;if(A===document){D=document;A=document.documentElement}else{D=A.ownerDocument}E=D.documentElement;B={};C=A.getBoundingClientRect();for(z in C){x=C[z];B[z]=x}y=v(D);B.top-=y.top;B.left-=y.left;if(B.width==null){B.width=document.body.scrollWidth-B.left-B.right}if(B.height==null){B.height=document.body.scrollHeight-B.top-B.bottom}B.top=B.top-E.clientTop;B.left=B.left-E.clientLeft;B.right=D.body.clientWidth-B.width-B.left;B.bottom=D.body.clientHeight-B.height-B.top;return B};j=function(x){return x.offsetParent||document.documentElement};t=function(){var y,z,A,B,x;y=document.createElement("div");y.style.width="100%";y.style.height="200px";z=document.createElement("div");u(z.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"});z.appendChild(y);document.body.appendChild(z);B=y.offsetWidth;z.style.overflow="scroll";x=y.offsetWidth;if(B===x){x=z.clientWidth}document.body.removeChild(z);A=B-x;return{width:A,height:A}};u=function(z){var y,A,D,E,C,x,B;if(z==null){z={}}y=[];Array.prototype.push.apply(y,arguments);B=y.slice(1);for(C=0,x=B.length;C<x;C++){D=B[C];if(D){for(A in D){if(!m.call(D,A)){continue}E=D[A];z[A]=E}}}return z};k=function(B,A){var z,D,y,C,x;if(B.classList!=null){C=A.split(" ");x=[];for(D=0,y=C.length;D<y;D++){z=C[D];if(z.trim()){x.push(B.classList.remove(z))}}return x}else{return B.className=B.className.replace(new RegExp("(^| )"+(A.split(" ").join("|"))+"( |$)","gi")," ")}};i=function(B,A){var z,D,y,C,x;if(B.classList!=null){C=A.split(" ");x=[];for(D=0,y=C.length;D<y;D++){z=C[D];if(z.trim()){x.push(B.classList.add(z))}}return x}else{k(B,A);return B.className+=" "+A}};d=function(y,x){if(y.classList!=null){return y.classList.contains(x)}else{return new RegExp("(^| )"+x+"( |$)","gi").test(y.className)}};o=function(y,E,D){var F,B,A,C,x,z;for(B=0,C=D.length;B<C;B++){F=D[B];if(f.call(E,F)<0){if(d(y,F)){k(y,F)}}}z=[];for(A=0,x=E.length;A<x;A++){F=E[A];if(!d(y,F)){z.push(i(y,F))}else{z.push(void 0)}}return z};w=[];e=function(x){return w.push(x)};r=function(){var y,x;x=[];while(y=w.pop()){x.push(y())}return x};q=(function(){function x(){}x.prototype.on=function(C,B,y,A){var z;if(A==null){A=false}if(this.bindings==null){this.bindings={}}if((z=this.bindings)[C]==null){z[C]=[]}return this.bindings[C].push({handler:B,ctx:y,once:A})};x.prototype.once=function(A,z,y){return this.on(A,z,y,true)};x.prototype.off=function(B,A){var z,C,y;if(((C=this.bindings)!=null?C[B]:void 0)==null){return}if(A==null){return delete this.bindings[B]}else{z=0;y=[];while(z<this.bindings[B].length){if(this.bindings[B][z].handler===A){y.push(this.bindings[B].splice(z,1))}else{y.push(z++)}}return y}};x.prototype.trigger=function(){var E,G,y,F,D,z,C,B,A;y=arguments[0],E=2<=arguments.length?p.call(arguments,1):[];if((C=this.bindings)!=null?C[y]:void 0){D=0;A=[];while(D<this.bindings[y].length){B=this.bindings[y][D],F=B.handler,G=B.ctx,z=B.once;F.apply(G!=null?G:this,E);if(z){A.push(this.bindings[y].splice(D,1))}else{A.push(D++)}}return A}};return x})();this.Tether.Utils={getScrollParent:n,getBounds:g,getOffsetParent:j,extend:u,addClass:i,removeClass:k,hasClass:d,updateClasses:o,defer:e,flush:r,uniqueId:h,Evented:q,getScrollBarSize:t}}).call(this);(function(){var B,C,F,j,m,E,G,k,f,D,z,i,o,r,A,s,e,d,n,p,v,H,q,g,u,t,y,x,l,w=[].slice,h=function(I,J){return function(){return I.apply(J,arguments)}};if(this.Tether==null){throw new Error("You must include the utils.js file before tether.js")}j=this.Tether;l=j.Utils,s=l.getScrollParent,e=l.getSize,r=l.getOuterSize,i=l.getBounds,o=l.getOffsetParent,D=l.extend,m=l.addClass,q=l.removeClass,t=l.updateClasses,f=l.defer,z=l.flush,A=l.getScrollBarSize;y=function(J,I,K){if(K==null){K=1}return(J+K>=I&&I>=J-K)};u=(function(){var L,K,M,J,I;L=document.createElement("div");I=["transform","webkitTransform","OTransform","MozTransform","msTransform"];for(M=0,J=I.length;M<J;M++){K=I[M];if(L.style[K]!==void 0){return K}}})();g=[];H=function(){var J,K,I;for(K=0,I=g.length;K<I;K++){J=g[K];J.position(false)}return z()};d=function(){var I;return(I=typeof performance!=="undefined"&&performance!==null?typeof performance.now==="function"?performance.now():void 0:void 0)!=null?I:+(new Date)};(function(){var I,Q,O,J,N,M,P,L,K;Q=null;O=null;J=null;N=function(){if((O!=null)&&O>16){O=Math.min(O-16,250);J=setTimeout(N,250);return}if((Q!=null)&&(d()-Q)<10){return}if(J!=null){clearTimeout(J);J=null}Q=d();H();return O=d()-Q};L=["resize","scroll","touchmove"];K=[];for(M=0,P=L.length;M<P;M++){I=L[M];K.push(window.addEventListener(I,N))}return K})();B={center:"center",left:"right",right:"left"};C={middle:"middle",top:"bottom",bottom:"top"};F={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"};k=function(L,I){var K,J;K=L.left,J=L.top;if(K==="auto"){K=B[I.left]}if(J==="auto"){J=C[I.top]}return{left:K,top:J}};G=function(J){var I,K;return{left:(I=F[J.left])!=null?I:J.left,top:(K=F[J.top])!=null?K:J.top}};E=function(){var O,L,K,N,M,J,I;L=1<=arguments.length?w.call(arguments,0):[];K={top:0,left:0};for(M=0,J=L.length;M<J;M++){I=L[M],N=I.top,O=I.left;if(typeof N==="string"){N=parseFloat(N,10)}if(typeof O==="string"){O=parseFloat(O,10)}K.top+=N;K.left+=O}return K};n=function(J,I){if(typeof J.left==="string"&&J.left.indexOf("%")!==-1){J.left=parseFloat(J.left,10)/100*I.width}if(typeof J.top==="string"&&J.top.indexOf("%")!==-1){J.top=parseFloat(J.top,10)/100*I.height}return J};p=v=function(J){var L,K,I;I=J.split(" "),K=I[0],L=I[1];return{top:K,left:L}};x=(function(){I.modules=[];function I(L){this.position=h(this.position,this);var M,N,K,J,O;g.push(this);this.history=[];this.setOptions(L,false);J=j.modules;for(N=0,K=J.length;N<K;N++){M=J[N];if((O=M.initialize)!=null){O.call(this)}}this.position()}I.prototype.getClass=function(K){var J,L;if((J=this.options.classes)!=null?J[K]:void 0){return this.options.classes[K]}else{if(((L=this.options.classes)!=null?L[K]:void 0)!==false){if(this.options.classPrefix){return""+this.options.classPrefix+"-"+K}else{return K}}else{return""}}};I.prototype.setOptions=function(M,K){var P,N,O,L,J,Q;this.options=M;if(K==null){K=true}P={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"};this.options=D(P,this.options);J=this.options,this.element=J.element,this.target=J.target,this.targetModifier=J.targetModifier;if(this.target==="viewport"){this.target=document.body;this.targetModifier="visible"}else{if(this.target==="scroll-handle"){this.target=document.body;this.targetModifier="scroll-handle"}}Q=["element","target"];for(O=0,L=Q.length;O<L;O++){N=Q[O];if(this[N]==null){throw new Error("Tether Error: Both element and target must be defined")}if(this[N].jquery!=null){this[N]=this[N][0]}else{if(typeof this[N]==="string"){this[N]=document.querySelector(this[N])}}}m(this.element,this.getClass("element"));m(this.target,this.getClass("target"));if(!this.options.attachment){throw new Error("Tether Error: You must provide an attachment")}this.targetAttachment=p(this.options.targetAttachment);this.attachment=p(this.options.attachment);this.offset=v(this.options.offset);this.targetOffset=v(this.options.targetOffset);if(this.scrollParent!=null){this.disable()}if(this.targetModifier==="scroll-handle"){this.scrollParent=this.target}else{this.scrollParent=s(this.target)}if(this.options.enabled!==false){return this.enable(K)}};I.prototype.getTargetBounds=function(){var J,P,M,R,N,L,Q,K,O;if(this.targetModifier!=null){switch(this.targetModifier){case"visible":if(this.target===document.body){return{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth}}else{J=i(this.target);N={height:J.height,width:J.width,top:J.top,left:J.left};N.height=Math.min(N.height,J.height-(pageYOffset-J.top));N.height=Math.min(N.height,J.height-((J.top+J.height)-(pageYOffset+innerHeight)));N.height=Math.min(innerHeight,N.height);N.height-=2;N.width=Math.min(N.width,J.width-(pageXOffset-J.left));N.width=Math.min(N.width,J.width-((J.left+J.width)-(pageXOffset+innerWidth)));N.width=Math.min(innerWidth,N.width);N.width-=2;if(N.top<pageYOffset){N.top=pageYOffset}if(N.left<pageXOffset){N.left=pageXOffset}return N}break;case"scroll-handle":O=this.target;if(O===document.body){O=document.documentElement;J={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}}else{J=i(O)}K=getComputedStyle(O);M=O.scrollWidth>O.clientWidth||"scroll"===[K.overflow,K.overflowX]||this.target!==document.body;L=0;if(M){L=15}R=J.height-parseFloat(K.borderTopWidth)-parseFloat(K.borderBottomWidth)-L;N={width:15,height:R*0.975*(R/O.scrollHeight),left:J.left+J.width-parseFloat(K.borderLeftWidth)-15};P=0;if(R<408&&this.target===document.body){P=-0.00011*Math.pow(R,2)-0.00727*R+22.58}if(this.target!==document.body){N.height=Math.max(N.height,24)}Q=this.target.scrollTop/(O.scrollHeight-R);N.top=Q*(R-N.height-P)+J.top+parseFloat(K.borderTopWidth);if(this.target===document.body){N.height=Math.max(N.height,24)}return N}}else{return i(this.target)}};I.prototype.clearCache=function(){return this._cache={}};I.prototype.cache=function(K,J){if(this._cache==null){this._cache={}}if(this._cache[K]==null){this._cache[K]=J.call(this)}return this._cache[K]};I.prototype.enable=function(J){if(J==null){J=true}m(this.target,this.getClass("enabled"));m(this.element,this.getClass("enabled"));this.enabled=true;if(this.scrollParent!==document){this.scrollParent.addEventListener("scroll",this.position)}if(J){return this.position()}};I.prototype.disable=function(){q(this.target,this.getClass("enabled"));q(this.element,this.getClass("enabled"));this.enabled=false;if(this.scrollParent!=null){return this.scrollParent.removeEventListener("scroll",this.position)}};I.prototype.destroy=function(){var M,L,N,K,J;this.disable();J=[];for(M=N=0,K=g.length;N<K;M=++N){L=g[M];if(L===this){g.splice(M,1);break}else{J.push(void 0)}}return J};I.prototype.updateAttachClasses=function(M,K){var U,T,R,L,P,O,S,J,N,Q=this;if(M==null){M=this.attachment}if(K==null){K=this.targetAttachment}L=["left","top","bottom","right","middle","center"];if((N=this._addAttachClasses)!=null?N.length:void 0){this._addAttachClasses.splice(0,this._addAttachClasses.length)}U=this._addAttachClasses!=null?this._addAttachClasses:this._addAttachClasses=[];if(M.top){U.push(""+(this.getClass("element-attached"))+"-"+M.top)}if(M.left){U.push(""+(this.getClass("element-attached"))+"-"+M.left)}if(K.top){U.push(""+(this.getClass("target-attached"))+"-"+K.top)}if(K.left){U.push(""+(this.getClass("target-attached"))+"-"+K.left)}T=[];for(P=0,S=L.length;P<S;P++){R=L[P];T.push(""+(this.getClass("element-attached"))+"-"+R)}for(O=0,J=L.length;O<J;O++){R=L[O];T.push(""+(this.getClass("target-attached"))+"-"+R)}return f(function(){if(Q._addAttachClasses==null){return}t(Q.element,Q._addAttachClasses,T);t(Q.target,Q._addAttachClasses,T);return Q._addAttachClasses=void 0})};I.prototype.position=function(ar){var Q,ak,M,R,ap,aj,N,O,an,ai,ah,ab,ac,W,al,ag,au,af,ad,K,ao,am,L,S,J,at,aq,ae,T,aa,Z,Y,X,V,U,P=this;if(ar==null){ar=true}if(!this.enabled){return}this.clearCache();K=k(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,K);Q=this.cache("element-bounds",function(){return i(P.element)});J=Q.width,M=Q.height;if(J===0&&M===0&&(this.lastSize!=null)){aa=this.lastSize,J=aa.width,M=aa.height}else{this.lastSize={width:J,height:M}}L=am=this.cache("target-bounds",function(){return P.getTargetBounds()});an=n(G(this.attachment),{width:J,height:M});ao=n(G(K),L);ap=n(this.offset,{width:J,height:M});aj=n(this.targetOffset,L);an=E(an,ap);ao=E(ao,aj);R=am.left+ao.left-an.left;S=am.top+ao.top-an.top;Z=j.modules;for(at=0,ae=Z.length;at<ae;at++){N=Z[at];al=N.position.call(this,{left:R,top:S,targetAttachment:K,targetPos:am,attachment:this.attachment,elementPos:Q,offset:an,targetOffset:ao,manualOffset:ap,manualTargetOffset:aj,scrollbarSize:af});if((al==null)||typeof al!=="object"){continue}else{if(al===false){return false}else{S=al.top,R=al.left}}}O={page:{top:S,left:R},viewport:{top:S-pageYOffset,bottom:pageYOffset-S-M+innerHeight,left:R-pageXOffset,right:pageXOffset-R-J+innerWidth}};if(document.body.scrollWidth>window.innerWidth){af=this.cache("scrollbar-size",A);O.viewport.bottom-=af.height}if(document.body.scrollHeight>window.innerHeight){af=this.cache("scrollbar-size",A);O.viewport.right-=af.width}if(((Y=document.body.style.position)!==""&&Y!=="static")||((X=document.body.parentElement.style.position)!==""&&X!=="static")){O.page.bottom=document.body.scrollHeight-S-M;O.page.right=document.body.scrollWidth-R-J}if(((V=this.options.optimizations)!=null?V.moveElement:void 0)!==false&&(this.targetModifier==null)){ah=this.cache("target-offsetparent",function(){return o(P.target)});W=this.cache("target-offsetparent-bounds",function(){return i(ah)});ac=getComputedStyle(ah);ak=getComputedStyle(this.element);ab=W;ai={};U=["Top","Left","Bottom","Right"];for(aq=0,T=U.length;aq<T;aq++){ad=U[aq];ai[ad.toLowerCase()]=parseFloat(ac["border"+ad+"Width"])}W.right=document.body.scrollWidth-W.left-ab.width+ai.right;W.bottom=document.body.scrollHeight-W.top-ab.height+ai.bottom;if(O.page.top>=(W.top+ai.top)&&O.page.bottom>=W.bottom){if(O.page.left>=(W.left+ai.left)&&O.page.right>=W.right){au=ah.scrollTop;ag=ah.scrollLeft;O.offset={top:O.page.top-W.top+au-ai.top,left:O.page.left-W.left+ag-ai.left}}}}this.move(O);this.history.unshift(O);if(this.history.length>3){this.history.pop()}if(ar){z()}return true};I.prototype.move=function(Z){var P,U,Q,aa,O,J,T,W,S,N,ab,X,R,K,Y,M,L,V=this;if(this.element.parentNode==null){return}W={};for(N in Z){W[N]={};for(aa in Z[N]){Q=false;M=this.history;for(K=0,Y=M.length;K<Y;K++){T=M[K];if(!y((L=T[N])!=null?L[aa]:void 0,Z[N][aa])){Q=true;break}}if(!Q){W[N][aa]=true}}}P={top:"",left:"",right:"",bottom:""};S=function(ag,af){var ae,ac,ad;if(((ad=V.options.optimizations)!=null?ad.gpu:void 0)!==false){if(ag.top){P.top=0;ac=af.top}else{P.bottom=0;ac=-af.bottom}if(ag.left){P.left=0;ae=af.left}else{P.right=0;ae=-af.right}P[u]="translateX("+(Math.round(ae))+"px) translateY("+(Math.round(ac))+"px)";if(u!=="msTransform"){return P[u]+=" translateZ(0)"}}else{if(ag.top){P.top=""+af.top+"px"}else{P.bottom=""+af.bottom+"px"}if(ag.left){return P.left=""+af.left+"px"}else{return P.right=""+af.right+"px"}}};O=false;if((W.page.top||W.page.bottom)&&(W.page.left||W.page.right)){P.position="absolute";S(W.page,Z.page)}else{if((W.viewport.top||W.viewport.bottom)&&(W.viewport.left||W.viewport.right)){P.position="fixed";S(W.viewport,Z.viewport)}else{if((W.offset!=null)&&W.offset.top&&W.offset.left){P.position="absolute";J=this.cache("target-offsetparent",function(){return o(V.target)});if(o(this.element)!==J){f(function(){V.element.parentNode.removeChild(V.element);return J.appendChild(V.element)})}S(W.offset,Z.offset);O=true}else{P.position="absolute";S({top:true,left:true},Z.page)}}}if(!O&&this.element.parentNode.tagName!=="BODY"){this.element.parentNode.removeChild(this.element);document.body.appendChild(this.element)}R={};X=false;for(aa in P){ab=P[aa];U=this.element.style[aa];if(U!==""&&ab!==""&&(aa==="top"||aa==="left"||aa==="bottom"||aa==="right")){U=parseFloat(U);ab=parseFloat(ab)}if(U!==ab){X=true;R[aa]=P[aa]}}if(X){return f(function(){return D(V.element.style,R)})}};return I})();j.position=H;this.Tether=D(x,j)}).call(this);(function(){var h,e,d,j,l,i,k,n,g,f,m=[].indexOf||function(q){for(var p=0,o=this.length;p<o;p++){if(p in this&&this[p]===q){return p}}return -1};f=this.Tether.Utils,k=f.getOuterSize,i=f.getBounds,n=f.getSize,j=f.extend,g=f.updateClasses,d=f.defer;e={left:"right",right:"left",top:"bottom",bottom:"top",middle:"middle"};h=["left","top","right","bottom"];l=function(o,v){var r,t,s,w,p,q,u;if(v==="scrollParent"){v=o.scrollParent}else{if(v==="window"){v=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]}}if(v===document){v=v.documentElement}if(v.nodeType!=null){t=w=i(v);p=getComputedStyle(v);v=[t.left,t.top,w.width+t.left,w.height+t.top];for(r=q=0,u=h.length;q<u;r=++q){s=h[r];s=s[0].toUpperCase()+s.substr(1);if(s==="Top"||s==="Left"){v[r]+=parseFloat(p["border"+s+"Width"])}else{v[r]-=parseFloat(p["border"+s+"Width"])}}}return v};this.Tether.modules.push({position:function(V){var Z,aa,T,Y,C,A,u,ak,aj,s,x,ah,W,ab,X,U,t,O,Q,S,q,w,r,P,al,y,o,ai,ag,af,ae,R,G,E,D,B,z,ad,ac,N,M,L,K,J,I,H,F,v=this;y=V.top,x=V.left,q=V.targetAttachment;if(!this.options.constraints){return true}O=function(ap){var an,ao,am,p;v.removeClass(ap);p=[];for(ao=0,am=h.length;ao<am;ao++){an=h[ao];p.push(v.removeClass(""+ap+"-"+an))}return p};N=this.cache("element-bounds",function(){return i(v.element)}),s=N.height,o=N.width;if(o===0&&s===0&&(this.lastSize!=null)){M=this.lastSize,o=M.width,s=M.height}r=this.cache("target-bounds",function(){return v.getTargetBounds()});w=r.height;P=r.width;S={};aj={};aa=[this.getClass("pinned"),this.getClass("out-of-bounds")];L=this.options.constraints;for(ai=0,R=L.length;ai<R;ai++){ak=L[ai];if(ak.outOfBoundsClass){aa.push(ak.outOfBoundsClass)}if(ak.pinnedClass){aa.push(ak.pinnedClass)}}for(ag=0,G=aa.length;ag<G;ag++){u=aa[ag];K=["left","top","right","bottom"];for(af=0,E=K.length;af<E;af++){Q=K[af];aa.push(""+u+"-"+Q)}}Z=[];S=j({},q);aj=j({},this.attachment);J=this.options.constraints;for(ae=0,D=J.length;ae<D;ae++){ak=J[ae];al=ak.to,T=ak.attachment,X=ak.pin;if(T==null){T=""}if(m.call(T," ")>=0){I=T.split(" "),A=I[0],C=I[1]}else{C=A=T}Y=l(this,al);if(A==="target"||A==="both"){if(y<Y[1]&&S.top==="top"){y+=w;S.top="bottom"}if(y+s>Y[3]&&S.top==="bottom"){y-=w;S.top="top"}}if(A==="together"){if(y<Y[1]&&S.top==="top"){if(aj.top==="bottom"){y+=w;S.top="bottom";y+=s;aj.top="top"}else{if(aj.top==="top"){y+=w;S.top="bottom";y-=s;aj.top="bottom"}}}if(y+s>Y[3]&&S.top==="bottom"){if(aj.top==="top"){y-=w;S.top="top";y-=s;aj.top="bottom"}else{if(aj.top==="bottom"){y-=w;S.top="top";y+=s;aj.top="top"}}}if(S.top==="middle"){if(y+s>Y[3]&&aj.top==="top"){y-=s;aj.top="bottom"}else{if(y<Y[1]&&aj.top==="bottom"){y+=s;aj.top="top"}}}}if(C==="target"||C==="both"){if(x<Y[0]&&S.left==="left"){x+=P;S.left="right"}if(x+o>Y[2]&&S.left==="right"){x-=P;S.left="left"}}if(C==="together"){if(x<Y[0]&&S.left==="left"){if(aj.left==="right"){x+=P;S.left="right";x+=o;aj.left="left"}else{if(aj.left==="left"){x+=P;S.left="right";x-=o;aj.left="right"}}}else{if(x+o>Y[2]&&S.left==="right"){if(aj.left==="left"){x-=P;S.left="left";x-=o;aj.left="right"}else{if(aj.left==="right"){x-=P;S.left="left";x+=o;aj.left="left"}}}else{if(S.left==="center"){if(x+o>Y[2]&&aj.left==="left"){x-=o;aj.left="right"}else{if(x<Y[0]&&aj.left==="right"){x+=o;aj.left="left"}}}}}}if(A==="element"||A==="both"){if(y<Y[1]&&aj.top==="bottom"){y+=s;aj.top="top"}if(y+s>Y[3]&&aj.top==="top"){y-=s;aj.top="bottom"}}if(C==="element"||C==="both"){if(x<Y[0]&&aj.left==="right"){x+=o;aj.left="left"}if(x+o>Y[2]&&aj.left==="left"){x-=o;aj.left="right"}}if(typeof X==="string"){X=(function(){var ao,am,an,p;an=X.split(",");p=[];for(am=0,ao=an.length;am<ao;am++){ab=an[am];p.push(ab.trim())}return p})()}else{if(X===true){X=["top","left","right","bottom"]}}X||(X=[]);U=[];ah=[];if(y<Y[1]){if(m.call(X,"top")>=0){y=Y[1];U.push("top")}else{ah.push("top")}}if(y+s>Y[3]){if(m.call(X,"bottom")>=0){y=Y[3]-s;U.push("bottom")}else{ah.push("bottom")}}if(x<Y[0]){if(m.call(X,"left")>=0){x=Y[0];U.push("left")}else{ah.push("left")}}if(x+o>Y[2]){if(m.call(X,"right")>=0){x=Y[2]-o;U.push("right")}else{ah.push("right")}}if(U.length){t=(H=this.options.pinnedClass)!=null?H:this.getClass("pinned");Z.push(t);for(ad=0,B=U.length;ad<B;ad++){Q=U[ad];Z.push(""+t+"-"+Q)}}if(ah.length){W=(F=this.options.outOfBoundsClass)!=null?F:this.getClass("out-of-bounds");Z.push(W);for(ac=0,z=ah.length;ac<z;ac++){Q=ah[ac];Z.push(""+W+"-"+Q)}}if(m.call(U,"left")>=0||m.call(U,"right")>=0){aj.left=S.left=false}if(m.call(U,"top")>=0||m.call(U,"bottom")>=0){aj.top=S.top=false}if(S.top!==q.top||S.left!==q.left||aj.top!==this.attachment.top||aj.left!==this.attachment.left){this.updateAttachClasses(aj,S)}}d(function(){g(v.target,Z,aa);return g(v.element,Z,aa)});return{top:y,left:x}}})}).call(this);(function(){var g,e,d,f;f=this.Tether.Utils,e=f.getBounds,d=f.updateClasses,g=f.defer;this.Tether.modules.push({position:function(v){var x,r,H,u,y,t,C,n,B,s,w,z,o,l,j,h,E,G,F,D,q,p,m,k,i,A=this;w=v.top,t=v.left;q=this.cache("element-bounds",function(){return e(A.element)}),y=q.height,z=q.width;s=this.getTargetBounds();u=w+y;C=t+z;x=[];if(w<=s.bottom&&u>=s.top){p=["left","right"];for(o=0,E=p.length;o<E;o++){n=p[o];if((m=s[n])===t||m===C){x.push(n)}}}if(t<=s.right&&C>=s.left){k=["top","bottom"];for(l=0,G=k.length;l<G;l++){n=k[l];if((i=s[n])===w||i===u){x.push(n)}}}H=[];r=[];B=["left","top","right","bottom"];H.push(this.getClass("abutted"));for(j=0,F=B.length;j<F;j++){n=B[j];H.push(""+(this.getClass("abutted"))+"-"+n)}if(x.length){r.push(this.getClass("abutted"))}for(h=0,D=x.length;h<D;h++){n=x[h];r.push(""+(this.getClass("abutted"))+"-"+n)}g(function(){d(A.target,r,H);return d(A.element,r,H)});return true}})}).call(this);(function(){this.Tether.modules.push({position:function(f){var j,d,e,k,i,h,g;h=f.top,j=f.left;if(!this.options.shift){return}d=function(l){if(typeof l==="function"){return l.call(this,{top:h,left:j})}else{return l}};e=d(this.options.shift);if(typeof e==="string"){e=e.split(" ");e[1]||(e[1]=e[0]);i=e[0],k=e[1];i=parseFloat(i,10);k=parseFloat(k,10)}else{g=[e.top,e.left],i=g[0],k=g[1]}h+=i;j+=k;return{top:h,left:j}}})}).call(this);return this.Tether}));