gotty/bindata/static/js/gotty.js

3 lines
1.3 MiB
JavaScript
Raw Normal View History

2022-03-28 22:05:51 +00:00
/*! For license information please see gotty.js.LICENSE.txt */
(()=>{var t={169:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Alert:()=>ve,Button:()=>_e,Carousel:()=>Te,Collapse:()=>Ye,Dropdown:()=>un,Modal:()=>Nn,Offcanvas:()=>Vn,Popover:()=>wr,ScrollSpy:()=>Lr,Tab:()=>Jr,Toast:()=>qr,Tooltip:()=>vr});var r={};n.r(r),n.d(r,{afterMain:()=>w,afterRead:()=>C,afterWrite:()=>B,applyStyles:()=>L,arrow:()=>V,auto:()=>l,basePlacements:()=>d,beforeMain:()=>_,beforeRead:()=>b,beforeWrite:()=>y,bottom:()=>i,clippingParents:()=>m,computeStyles:()=>et,createPopper:()=>$t,createPopperBase:()=>It,createPopperLite:()=>Pt,detectOverflow:()=>gt,end:()=>p,eventListeners:()=>rt,flip:()=>bt,hide:()=>_t,left:()=>s,main:()=>x,modifierPhases:()=>E,offset:()=>xt,placements:()=>g,popper:()=>f,popperGenerator:()=>Ot,popperOffsets:()=>wt,preventOverflow:()=>yt,read:()=>v,reference:()=>u,right:()=>a,start:()=>c,top:()=>o,variationPlacements:()=>h,viewport:()=>A,write:()=>k});var o="top",i="bottom",a="right",s="left",l="auto",d=[o,i,a,s],c="start",p="end",m="clippingParents",A="viewport",f="popper",u="reference",h=d.reduce((function(t,e){return t.concat([e+"-"+c,e+"-"+p])}),[]),g=[].concat(d,[l]).reduce((function(t,e){return t.concat([e,e+"-"+c,e+"-"+p])}),[]),b="beforeRead",v="read",C="afterRead",_="beforeMain",x="main",w="afterMain",y="beforeWrite",k="write",B="afterWrite",E=[b,v,C,_,x,w,y,k,B];function S(t){return t?(t.nodeName||"").toLowerCase():null}function O(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function I(t){return t instanceof O(t).Element||t instanceof Element}function $(t){return t instanceof O(t).HTMLElement||t instanceof HTMLElement}function P(t){return"undefined"!=typeof ShadowRoot&&(t instanceof O(t).ShadowRoot||t instanceof ShadowRoot)}const L={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},r=e.attributes[t]||{},o=e.elements[t];$(o)&&S(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(t){var e=r[t];!1===e?o.removeAttribute(t):o.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var r=e.elements[t],o=e.attributes[t]||{},i=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});$(r)&&S(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(t){r.removeAttribute(t)})))}))}},requires:["computeStyles"]};function D(t){return t.split("-")[0]}var M=Math.max,R=Math.min,T=Math.round;function F(t,e){void 0===e&&(e=!1);var n=t.getBoundingClientRect(),r=1,o=1;if($(t)&&e){var i=t.offsetHeight,a=t.offsetWidth;a>0&&(r=T(n.width)/a||1),i>0&&(o=T(n.height)/i||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function J(t){var e=F(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function z(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&P(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function j(t){return O(t).getComputedStyle(t)}function U(t){return["table","td","th"].indexOf(S(t))>=0}function H(t){return((I(t)?t.ownerDocument:t.document)||window.document).documentElement}function N(t){return"html"===S(t)?t:t.assignedSlot||t.parentNode||(P(t)?t.host:null)||H(t)}function W(t){return $(t)&&"fixed"!==j(t).position?t.offsetParent:null}function q(t){for(var e=O(t),n=W(t);n&&U(n)&&"static"===j(n).position;)n=W(n);return n&&("html"===S(n)||"body"===S(n)&&"static"===j(n).position)?e:n||function(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&$(t)&&"fixed"===
2022-03-28 22:05:51 +00:00
//# sourceMappingURL=gotty.js.map