gotty/bindata/static/js/gotty.js

3 lines
733 KiB
JavaScript
Raw Normal View History

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