Ubuntu

­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­ /*! tether 1.4.4 */ (function(a,b){if(typeof define==="function"&&define.amd){define([],b)}else{if(typeof exports==="object"){module.exports=b()}else{a.Tether=b()}}}(this,function(){var h=(function(){function W(aa,Y){for(var X=0;X=0){af.push(ag)}}}af.push(X.ownerDocument.body);if(X.ownerDocument!==document){af.push(X.ownerDocument.defaultView)}return af}var g=(function(){var W=0;return function(){return ++W}})();var H={};var u=function u(){var W=G;if(!W||!document.body.contains(W)){W=document.createElement("div");W.setAttribute("data-tether-id",g());o(W.style,{top:0,left:0,position:"absolute"});document.body.appendChild(W);G=W}var X=W.getAttribute("data-tether-id");if(typeof H[X]==="undefined"){H[X]=b(W);e(function(){delete H[X]})}return H[X]};function R(){if(G){document.body.removeChild(G)}G=null}function k(X){var Z=undefined;if(X===document){Z=document;X=document.documentElement}else{Z=X.ownerDocument}var aa=Z.documentElement;var Y=b(X);var W=u();Y.top-=W.top;Y.left-=W.left;if(typeof Y.width==="undefined"){Y.width=document.body.scrollWidth-Y.left-Y.right}if(typeof Y.height==="undefined"){Y.height=document.body.scrollHeight-Y.top-Y.bottom}Y.top=Y.top-aa.clientTop;Y.left=Y.left-aa.clientLeft;Y.right=Z.body.clientWidth-Y.width-Y.left;Y.bottom=Z.body.clientHeight-Y.height-Y.top;return Y}function j(W){return W.offsetParent||document.documentElement}var C=null;function m(){if(C){return C}var X=document.createElement("div");X.style.width="100%";X.style.height="200px";var Y=document.createElement("div");o(Y.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"});Y.appendChild(X);document.body.appendChild(Y);var aa=X.offsetWidth;Y.style.overflow="scroll";var W=X.offsetWidth;if(aa===W){W=Y.clientWidth}document.body.removeChild(Y);var Z=aa-W;C={width:Z,height:Z};return C}function o(){var X=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];var W=[];Array.prototype.push.apply(W,arguments);W.slice(1).forEach(function(Z){if(Z){for(var Y in Z){if(({}).hasOwnProperty.call(Z,Y)){X[Y]=Z[Y]}}}});return X}function r(Y,W){if(typeof Y.classList!=="undefined"){W.split(" ").forEach(function(aa){if(aa.trim()){Y.classList.remove(aa)}})}else{var Z=new RegExp("(^| )"+W.split(" ").join("|")+"( |$)","gi");var X=S(Y).replace(Z," ");w(Y,X)}}function y(Y,X){if(typeof Y.classList!=="undefined"){X.split(" ").forEach(function(Z){if(Z.trim()){Y.classList.add(Z)}})}else{r(Y,X);var W=S(Y)+(" "+X);w(Y,W)}}function L(Y,W){if(typeof Y.classList!=="undefined"){return Y.classList.contains(W)}var X=S(Y);return new RegExp("(^| )"+W+"( |$)","gi").test(X)}function S(W){if(W.className instanceof W.ownerDocument.defaultView.SVGAnimatedString){return W.className.baseVal}return W.className}function w(X,W){X.setAttribute("class",W)}function A(X,Y,W){W.forEach(function(Z){if(Y.indexOf(Z)===-1&&L(X,Z)){r(X,Z)}});Y.forEach(function(Z){if(!L(X,Z)){y(X,Z)}})}var E=[];var e=function e(W){E.push(W)};var n=function n(){var W=undefined;while(W=E.pop()){W()}};var i=(function(){function Y(){K(this,Y)}h(Y,[{key:"on",value:function W(ae,ad,ab){var ac=arguments.length<=3||arguments[3]===undefined?false:arguments[3];if(typeof this.bindings==="undefined"){this.bindings={}}if(typeof this.bindings[ae]==="undefined"){this.bindings[ae]=[]}this.bindings[ae].push({handler:ad,ctx:ab,once:ac})}},{key:"once",value:function Z(ad,ac,ab){this.on(ad,ac,ab,true)}},{key:"off",value:function aa(ad,ac){if(typeof this.bindings==="undefined"||typeof this.bindings[ad]==="undefined"){return}if(typeof ac==="undefined"){delete this.bindings[ad]}else{var ab=0;while(ab1?ai-1:0),ac=1;ac=W&&W>=X-Y}var x=(function(){if(typeof document==="undefined"){return""}var Z=document.createElement("div");var Y=["transform","WebkitTransform","OTransform","MozTransform","msTransform"];for(var X=0;X16){Z=Math.min(Z-16,250);W=setTimeout(X,250);return}if(typeof Y!=="undefined"&&M()-Y<10){return}if(W!=null){clearTimeout(W);W=null}Y=M();J();Z=M()-Y};if(typeof window!=="undefined"&&typeof window.addEventListener!=="undefined"){["resize","scroll","touchmove"].forEach(function(aa){window.addEventListener(aa,X)})}})();var v={center:"center",left:"right",right:"left"};var T={middle:"middle",top:"bottom",bottom:"top"};var z={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"};var l=function l(Z,W){var Y=Z.left;var X=Z.top;if(Y==="auto"){Y=v[W.left]}if(X==="auto"){X=T[W.top]}return{left:Y,top:X}};var a=function a(Y){var X=Y.left;var W=Y.top;if(typeof z[Y.left]!=="undefined"){X=z[Y.left]}if(typeof z[Y.top]!=="undefined"){W=z[Y.top]}return{left:X,top:W}};function D(){var X={top:0,left:0};for(var W=arguments.length,Z=Array(W),Y=0;Yao.clientWidth||[ak.overflow,ak.overflowX].indexOf("scroll")>=0||this.target!==document.body;var al=0;if(am){al=15}var ar=aj.height-parseFloat(ak.borderTopWidth)-parseFloat(ak.borderBottomWidth)-al;var an={width:15,height:ar*0.975*(ar/ao.scrollHeight),left:aj.left+aj.width-parseFloat(ak.borderLeftWidth)-15};var aq=0;if(ar<408&&this.target===document.body){aq=-0.00011*Math.pow(ar,2)-0.00727*ar+22.58}if(this.target!==document.body){an.height=Math.max(an.height,24)}var ap=this.target.scrollTop/(ao.scrollHeight-ar);an.top=ap*(ar-an.height-aq)+aj.top+parseFloat(ak.borderTopWidth);if(this.target===document.body){an.height=Math.max(an.height,24)}return an}}}else{return k(this.target)}}},{key:"clearCache",value:function ad(){this._cache={}}},{key:"cache",value:function W(ak,aj){if(typeof this._cache==="undefined"){this._cache={}}if(typeof this._cache[ak]==="undefined"){this._cache[ak]=aj.call(this)}return this._cache[ak]}},{key:"enable",value:function ab(){var aj=this;var ak=arguments.length<=0||arguments[0]===undefined?true:arguments[0];if(!(this.options.addTargetClasses===false)){y(this.target,this.getClass("enabled"))}y(this.element,this.getClass("enabled"));this.enabled=true;this.scrollParents.forEach(function(al){if(al!==aj.target.ownerDocument){al.addEventListener("scroll",aj.position)}});if(ak){this.position()}}},{key:"disable",value:function Z(){var aj=this;r(this.target,this.getClass("enabled"));r(this.element,this.getClass("enabled"));this.enabled=false;if(typeof this.scrollParents!=="undefined"){this.scrollParents.forEach(function(ak){ak.removeEventListener("scroll",aj.position)})}}},{key:"destroy",value:function af(){var aj=this;this.disable();p.forEach(function(ak,al){if(ak===aj){p.splice(al,1)}});if(p.length===0){R()}}},{key:"updateAttachClasses",value:function ac(an,ak){var aj=this;an=an||this.attachment;ak=ak||this.targetAttachment;var am=["left","top","bottom","right","middle","center"];if(typeof this._addAttachClasses!=="undefined"&&this._addAttachClasses.length){this._addAttachClasses.splice(0,this._addAttachClasses.length)}if(typeof this._addAttachClasses==="undefined"){this._addAttachClasses=[]}var ao=this._addAttachClasses;if(an.top){ao.push(this.getClass("element-attached")+"-"+an.top)}if(an.left){ao.push(this.getClass("element-attached")+"-"+an.left)}if(ak.top){ao.push(this.getClass("target-attached")+"-"+ak.top)}if(ak.left){ao.push(this.getClass("target-attached")+"-"+ak.left)}var al=[];am.forEach(function(ap){al.push(aj.getClass("element-attached")+"-"+ap);al.push(aj.getClass("target-attached")+"-"+ap)});e(function(){if(!(typeof aj._addAttachClasses!=="undefined")){return}A(aj.element,aj._addAttachClasses,al);if(!(aj.options.addTargetClasses===false)){A(aj.target,aj._addAttachClasses,al)}delete aj._addAttachClasses})}},{key:"position",value:function aa(){var ax=this;var aD=arguments.length<=0||arguments[0]===undefined?true:arguments[0];if(!this.enabled){return}this.clearCache();var av=l(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,av);var aA=this.cache("element-bounds",function(){return k(ax.element)});var aw=aA.width;var ar=aA.height;if(aw===0&&ar===0&&typeof this.lastSize!=="undefined"){var ao=this.lastSize;aw=ao.width;ar=ao.height}else{this.lastSize={width:aw,height:ar}}var ak=this.cache("target-bounds",function(){return ax.getTargetBounds()});var aj=ak;var an=t(a(this.attachment),{width:aw,height:ar});var aC=t(a(av),aj);var ap=t(this.offset,{width:aw,height:ar});var at=t(this.targetOffset,aj);an=D(an,ap);aC=D(aC,at);var al=ak.left+aC.left-an.left;var aq=ak.top+aC.top-an.top;for(var aB=0;aBaF.documentElement.clientHeight){az=this.cache("scrollbar-size",m);au.viewport.bottom-=az.height}if(am.innerWidth>aF.documentElement.clientWidth){az=this.cache("scrollbar-size",m);au.viewport.right-=az.width}if(["","static"].indexOf(aF.body.style.position)===-1||["","static"].indexOf(aF.body.parentElement.style.position)===-1){au.page.bottom=aF.body.scrollHeight-aq-ar;au.page.right=aF.body.scrollWidth-al-aw}if(typeof this.options.optimizations!=="undefined"&&this.options.optimizations.moveElement!==false&&!(typeof this.targetModifier!=="undefined")){(function(){var aK=ax.cache("target-offsetparent",function(){return j(ax.target)});var aG=ax.cache("target-offsetparent-bounds",function(){return k(aK)});var aJ=getComputedStyle(aK);var aH=aG;var aI={};["Top","Left","Bottom","Right"].forEach(function(aN){aI[aN.toLowerCase()]=parseFloat(aJ["border"+aN+"Width"])});aG.right=aF.body.scrollWidth-aG.left-aH.width+aI.right;aG.bottom=aF.body.scrollHeight-aG.top-aH.height+aI.bottom;if(au.page.top>=aG.top+aI.top&&au.page.bottom>=aG.bottom){if(au.page.left>=aG.left+aI.left&&au.page.right>=aG.right){var aL=aK.scrollTop;var aM=aK.scrollLeft;au.offset={top:au.page.top-aG.top+aL-aI.top,left:au.page.left-aG.left+aM-aI.left}}}})()}this.move(au);this.history.unshift(au);if(this.history.length>3){this.history.pop()}if(aD){n()}return true}},{key:"move",value:function X(av){var an=this;if(!(typeof this.element.parentNode!=="undefined")){return}var aw={};for(var at in av){aw[at]={};for(var ay in av[at]){var aA=false;for(var ap=0;ap=0){var av=at.split(" ");var ax=I(av,2);ap=ax[0];aq=ax[1]}else{aq=ap=at}var am=q(ae,au);if(ap==="target"||ap==="both"){if(aiam[3]&&ag.top==="bottom"){ai-=ad;ag.top="top"}}if(ap==="together"){if(ag.top==="top"){if(aj.top==="bottom"&&aiam[3]&&ai-(al-ad)>=am[1]){ai-=al-ad;ag.top="bottom";aj.top="bottom"}}}if(ag.top==="bottom"){if(aj.top==="top"&&ai+al>am[3]){ai-=ad;ag.top="top";ai-=al;aj.top="bottom"}else{if(aj.top==="bottom"&&aiam[3]&&aj.top==="top"){ai-=al;aj.top="bottom"}else{if(aiam[2]&&ag.left==="right"){aa-=ah;ag.left="left"}}if(aq==="together"){if(aaam[2]&&ag.left==="right"){if(aj.left==="left"){aa-=ah;ag.left="left";aa-=X;aj.left="right"}else{if(aj.left==="right"){aa-=ah;ag.left="left";aa+=X;aj.left="left"}}}else{if(ag.left==="center"){if(aa+X>am[2]&&aj.left==="left"){aa-=X;aj.left="right"}else{if(aaam[3]&&aj.top==="top"){ai-=al;aj.top="bottom"}}if(aq==="element"||aq==="both"){if(aaam[2]){if(aj.left==="left"){aa-=X;aj.left="right"}else{if(aj.left==="center"){aa-=X/2;aj.left="right"}}}}if(typeof an==="string"){an=an.split(",").map(function(ay){return ay.trim()})}else{if(an===true){an=["top","left","right","bottom"]}}an=an||[];var aw=[];var ar=[];if(ai=0){ai=am[1];aw.push("top")}else{ar.push("top")}}if(ai+al>am[3]){if(an.indexOf("bottom")>=0){ai=am[3]-al;aw.push("bottom")}else{ar.push("bottom")}}if(aa=0){aa=am[0];aw.push("left")}else{ar.push("left")}}if(aa+X>am[2]){if(an.indexOf("right")>=0){aa=am[2]-X;aw.push("right")}else{ar.push("right")}}if(aw.length){(function(){var ay=undefined;if(typeof ae.options.pinnedClass!=="undefined"){ay=ae.options.pinnedClass}else{ay=ae.getClass("pinned")}W.push(ay);aw.forEach(function(az){W.push(ay+"-"+az)})})()}if(ar.length){(function(){var ay=undefined;if(typeof ae.options.outOfBoundsClass!=="undefined"){ay=ae.options.outOfBoundsClass}else{ay=ae.getClass("out-of-bounds")}W.push(ay);ar.forEach(function(az){W.push(ay+"-"+az)})})()}if(aw.indexOf("left")>=0||aw.indexOf("right")>=0){aj.left=ag.left=false}if(aw.indexOf("top")>=0||aw.indexOf("bottom")>=0){aj.top=ag.top=false}if(ag.top!==af.top||ag.left!==af.left||aj.top!==ae.attachment.top||aj.left!==ae.attachment.left){ae.updateAttachClasses(aj,ag);ae.trigger("update",{attachment:aj,targetAttachment:ag})}});e(function(){if(!(ae.options.addTargetClasses===false)){A(ae.target,W,Y)}A(ae.element,W,Y)});return{top:ai,left:aa}}});"use strict";var F=V.Utils;var k=F.getBounds;var A=F.updateClasses;var e=F.defer;V.modules.push({position:function J(ad){var ae=this;var af=ad.top;var ac=ad.left;var ab=this.cache("element-bounds",function(){return k(ae.element)});var ai=ab.height;var Y=ab.width;var ah=this.getTargetBounds();var W=af+ai;var ag=ac+Y;var aj=[];if(af<=ah.bottom&&W>=ah.top){["left","right"].forEach(function(ak){var al=ah[ak];if(al===ac||al===ag){aj.push(ak)}})}if(ac<=ah.right&&ag>=ah.left){["top","bottom"].forEach(function(ak){var al=ah[ak];if(al===af||al===W){aj.push(ak)}})}var aa=[];var X=[];var Z=["left","top","right","bottom"];aa.push(this.getClass("abutted"));Z.forEach(function(ak){aa.push(ae.getClass("abutted")+"-"+ak)});if(aj.length){X.push(this.getClass("abutted"))}aj.forEach(function(ak){X.push(ae.getClass("abutted")+"-"+ak)});e(function(){if(!(ae.options.addTargetClasses===false)){A(ae.target,X,aa)}A(ae.element,X,aa)});return true}});"use strict";var I=(function(){function W(ab,aa){var ae=[];var X=true;var ad=false;var ac=undefined;try{for(var Z=ab[Symbol.iterator](),af;!(X=(af=Z.next()).done);X=true){ae.push(af.value);if(aa&&ae.length===aa){break}}}catch(Y){ad=true;ac=Y}finally{try{if(!X&&Z["return"]){Z["return"]()}}finally{if(ad){throw ac}}}return ae}return function(X,Y){if(Array.isArray(X)){return X}else{if(Symbol.iterator in Object(X)){return W(X,Y)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}})();V.modules.push({position:function J(Z){var ac=Z.top;var ab=Z.left;if(!this.options.shift){return}var W=this.options.shift;if(typeof this.options.shift==="function"){W=this.options.shift.call(this,{top:ac,left:ab})}var aa=undefined,ad=undefined;if(typeof W==="string"){W=W.split(" ");W[1]=W[1]||W[0];var Y=W;var X=I(Y,2);aa=X[0];ad=X[1];aa=parseFloat(aa,10);ad=parseFloat(ad,10)}else{aa=W.top;ad=W.left}ac+=aa;ab+=ad;return{top:ac,left:ab}}});return f}));