@storybook/components 7.0.0-alpha.1 → 7.0.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{GlobalScrollAreaStyles-SBQA32UJ.mjs → GlobalScrollAreaStyles-5MYDB36S.mjs} +1 -1
- package/dist/{OverlayScrollbars-XXHHIFRP.mjs → OverlayScrollbars-GXD6IR4B.mjs} +1 -1
- package/dist/WithTooltip-3ZGNZXVO.mjs +9 -0
- package/dist/chunk-37LBAZBN.mjs +161 -0
- package/dist/{chunk-B5E6VV27.mjs → chunk-7IK3EOFL.mjs} +1 -1
- package/dist/{chunk-4HFE7HIP.mjs → chunk-DF422II4.mjs} +1 -1
- package/dist/chunk-IONIU25V.mjs +5 -0
- package/dist/{syntaxhighlighter-RDO7V73N.mjs → chunk-NS5PSNOW.mjs} +6 -6
- package/dist/chunk-PJYBQ6PQ.mjs +1 -0
- package/dist/{formatter-5ZDRIBVE.mjs → formatter-7QCQCGUB.mjs} +59 -59
- package/dist/html.d.ts +0 -1
- package/dist/html.js +19 -202
- package/dist/html.mjs +2 -2
- package/dist/index.d.ts +29 -342
- package/dist/index.js +215 -275
- package/dist/index.mjs +1 -1
- package/dist/syntaxhighlighter-4PNAP6ZV.mjs +1 -0
- package/package.json +9 -7
- package/dist/Color-GC2EERLU.mjs +0 -1
- package/dist/WithTooltip-2JKU54KI.mjs +0 -9
- package/dist/chunk-HK5F4PFQ.mjs +0 -1
- package/dist/chunk-IE3SZHMD.mjs +0 -1
- package/dist/chunk-MGIUKE7Y.mjs +0 -149
- package/dist/chunk-SEEBCDLS.mjs +0 -5
- package/dist/chunk-X32VMURG.mjs +0 -73
- package/dist/chunk-XFP3TTPB.mjs +0 -1
- package/dist/chunk-YLDU3KBJ.mjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{e as l,h as f}from"./chunk-PJYBQ6PQ.mjs";var n=l((s,i)=>{f();var e;typeof window<"u"?e=window:typeof global<"u"?e=global:typeof self<"u"?e=self:e={};i.exports=e});export{n as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as h,
|
|
1
|
+
import{c as h,h as l}from"./chunk-PJYBQ6PQ.mjs";l();function v(o){for(var f=[],i=1;i<arguments.length;i++)f[i-1]=arguments[i];var n=Array.from(typeof o=="string"?[o]:o);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var d=n.reduce(function(t,u){var a=u.match(/\n([\t ]+|(?!\s).)/g);return a?t.concat(a.map(function(g){var r,e;return(e=(r=g.match(/[\t ]/g))===null||r===void 0?void 0:r.length)!==null&&e!==void 0?e:0})):t},[]);if(d.length){var s=new RegExp(`
|
|
2
2
|
[ ]{`+Math.min.apply(Math,d)+"}","g");n=n.map(function(t){return t.replace(s,`
|
|
3
3
|
`)})}n[0]=n[0].replace(/^\r?\n/,"");var c=n[0];return f.forEach(function(t,u){var a=c.match(/(?:^|\n)( *)$/),g=a?a[1]:"",r=t;typeof t=="string"&&t.includes(`
|
|
4
4
|
`)&&(r=String(t).split(`
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{c as o,h as a}from"./chunk-PJYBQ6PQ.mjs";a();function Ue(){return Ue=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ue.apply(this,arguments)}o(Ue,"_extends");a();function zt(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,p;for(p=0;p<n.length;p++)i=n[p],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}o(zt,"_objectWithoutPropertiesLoose");a();var N="top",W="bottom",T="right",B="left",xe="auto",oe=[N,W,T,B],Z="start",se="end",xt="clippingParents",Ve="viewport",ye="popper",yt="reference",Ge=oe.reduce(function(t,e){return t.concat([e+"-"+Z,e+"-"+se])},[]),He=[].concat(oe,[xe]).reduce(function(t,e){return t.concat([e,e+"-"+Z,e+"-"+se])},[]),Ut="beforeRead",Gt="read",Jt="afterRead",Kt="beforeMain",_t="main",Qt="afterMain",Zt="beforeWrite",er="write",tr="afterWrite",Ae=[Ut,Gt,Jt,Kt,_t,Qt,Zt,er,tr];a();a();a();function H(t){return t?(t.nodeName||"").toLowerCase():null}o(H,"getNodeName");a();a();function j(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}o(j,"getWindow");function _(t){var e=j(t).Element;return t instanceof e||t instanceof Element}o(_,"isElement");function C(t){var e=j(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}o(C,"isHTMLElement");function be(t){if(typeof ShadowRoot>"u")return!1;var e=j(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}o(be,"isShadowRoot");function rr(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},i=e.attributes[r]||{},p=e.elements[r];!C(p)||!H(p)||(Object.assign(p.style,n),Object.keys(i).forEach(function(s){var f=i[s];f===!1?p.removeAttribute(s):p.setAttribute(s,f===!0?"":f)}))})}o(rr,"applyStyles");function or(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var i=e.elements[n],p=e.attributes[n]||{},s=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),f=s.reduce(function(c,d){return c[d]="",c},{});!C(i)||!H(i)||(Object.assign(i.style,f),Object.keys(p).forEach(function(c){i.removeAttribute(c)}))})}}o(or,"effect");var bt={name:"applyStyles",enabled:!0,phase:"write",fn:rr,effect:or,requires:["computeStyles"]};a();a();function L(t){return t.split("-")[0]}o(L,"getBasePlacement");a();a();a();var G=Math.max,fe=Math.min,ee=Math.round;function Y(t,e){e===void 0&&(e=!1);var r=t.getBoundingClientRect(),n=1,i=1;if(C(t)&&e){var p=t.offsetHeight,s=t.offsetWidth;s>0&&(n=ee(r.width)/s||1),p>0&&(i=ee(r.height)/p||1)}return{width:r.width/n,height:r.height/i,top:r.top/i,right:r.right/n,bottom:r.bottom/i,left:r.left/n,x:r.left/n,y:r.top/i}}o(Y,"getBoundingClientRect");function le(t){var e=Y(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}o(le,"getLayoutRect");a();function De(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&be(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}o(De,"contains");a();a();function I(t){return j(t).getComputedStyle(t)}o(I,"getComputedStyle");a();function Je(t){return["table","td","th"].indexOf(H(t))>=0}o(Je,"isTableElement");a();a();function q(t){return((_(t)?t.ownerDocument:t.document)||window.document).documentElement}o(q,"getDocumentElement");function te(t){return H(t)==="html"?t:t.assignedSlot||t.parentNode||(be(t)?t.host:null)||q(t)}o(te,"getParentNode");function wt(t){return!C(t)||I(t).position==="fixed"?null:t.offsetParent}o(wt,"getTrueOffsetParent");function nr(t){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&C(t)){var n=I(t);if(n.position==="fixed")return null}var i=te(t);for(be(i)&&(i=i.host);C(i)&&["html","body"].indexOf(H(i))<0;){var p=I(i);if(p.transform!=="none"||p.perspective!=="none"||p.contain==="paint"||["transform","perspective"].indexOf(p.willChange)!==-1||e&&p.willChange==="filter"||e&&p.filter&&p.filter!=="none")return i;i=i.parentNode}return null}o(nr,"getContainingBlock");function J(t){for(var e=j(t),r=wt(t);r&&Je(r)&&I(r).position==="static";)r=wt(r);return r&&(H(r)==="html"||H(r)==="body"&&I(r).position==="static")?e:r||nr(t)||e}o(J,"getOffsetParent");a();function ce(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}o(ce,"getMainAxisFromPlacement");a();function me(t,e,r){return G(t,fe(e,r))}o(me,"within");function Ot(t,e,r){var n=me(t,e,r);return n>r?r:n}o(Ot,"withinMaxClamp");a();a();function Ne(){return{top:0,right:0,bottom:0,left:0}}o(Ne,"getFreshSideObject");function Be(t){return Object.assign({},Ne(),t)}o(Be,"mergePaddingObject");a();function je(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}o(je,"expandToHashMap");var ir=o(function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,Be(typeof e!="number"?e:je(e,oe))},"toPaddingObject");function ar(t){var e,r=t.state,n=t.name,i=t.options,p=r.elements.arrow,s=r.modifiersData.popperOffsets,f=L(r.placement),c=ce(f),d=[B,T].indexOf(f)>=0,l=d?"height":"width";if(!(!p||!s)){var b=ir(i.padding,r),M=le(p),v=c==="y"?N:B,P=c==="y"?W:T,g=r.rects.reference[l]+r.rects.reference[c]-s[c]-r.rects.popper[l],y=s[c]-r.rects.reference[c],R=J(p),A=R?c==="y"?R.clientHeight||0:R.clientWidth||0:0,S=g/2-y/2,h=b[v],w=A-M[l]-b[P],x=A/2-M[l]/2+S,E=me(h,x,w),D=c;r.modifiersData[n]=(e={},e[D]=E,e.centerOffset=E-x,e)}}o(ar,"arrow");function pr(t){var e=t.state,r=t.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;if(i!=null&&!(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i))){if(process.env.NODE_ENV!=="production"&&(C(i)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),!De(e.elements.popper,i)){process.env.NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}e.elements.arrow=i}}o(pr,"effect");var Et={name:"arrow",enabled:!0,phase:"main",fn:ar,effect:pr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};a();a();function z(t){return t.split("-")[1]}o(z,"getVariation");var sr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function fr(t){var e=t.x,r=t.y,n=window,i=n.devicePixelRatio||1;return{x:ee(e*i)/i||0,y:ee(r*i)/i||0}}o(fr,"roundOffsetsByDPR");function Pt(t){var e,r=t.popper,n=t.popperRect,i=t.placement,p=t.variation,s=t.offsets,f=t.position,c=t.gpuAcceleration,d=t.adaptive,l=t.roundOffsets,b=t.isFixed,M=s.x,v=M===void 0?0:M,P=s.y,g=P===void 0?0:P,y=typeof l=="function"?l({x:v,y:g}):{x:v,y:g};v=y.x,g=y.y;var R=s.hasOwnProperty("x"),A=s.hasOwnProperty("y"),S=B,h=N,w=window;if(d){var x=J(r),E="clientHeight",D="clientWidth";if(x===j(r)&&(x=q(r),I(x).position!=="static"&&f==="absolute"&&(E="scrollHeight",D="scrollWidth")),x=x,i===N||(i===B||i===T)&&p===se){h=W;var k=b&&x===w&&w.visualViewport?w.visualViewport.height:x[E];g-=k-n.height,g*=c?1:-1}if(i===B||(i===N||i===W)&&p===se){S=T;var V=b&&x===w&&w.visualViewport?w.visualViewport.width:x[D];v-=V-n.width,v*=c?1:-1}}var O=Object.assign({position:f},d&&sr),$=l===!0?fr({x:v,y:g}):{x:v,y:g};if(v=$.x,g=$.y,c){var F;return Object.assign({},O,(F={},F[h]=A?"0":"",F[S]=R?"0":"",F.transform=(w.devicePixelRatio||1)<=1?"translate("+v+"px, "+g+"px)":"translate3d("+v+"px, "+g+"px, 0)",F))}return Object.assign({},O,(e={},e[h]=A?g+"px":"",e[S]=R?v+"px":"",e.transform="",e))}o(Pt,"mapToStyles");function lr(t){var e=t.state,r=t.options,n=r.gpuAcceleration,i=n===void 0?!0:n,p=r.adaptive,s=p===void 0?!0:p,f=r.roundOffsets,c=f===void 0?!0:f;if(process.env.NODE_ENV!=="production"){var d=I(e.elements.popper).transitionProperty||"";s&&["transform","top","right","bottom","left"].some(function(b){return d.indexOf(b)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
|
|
2
|
+
|
|
3
|
+
`,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
|
|
4
|
+
|
|
5
|
+
`,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var l={placement:L(e.placement),variation:z(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Pt(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Pt(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}o(lr,"computeStyles");var St={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:lr,data:{}};a();var Ie={passive:!0};function cr(t){var e=t.state,r=t.instance,n=t.options,i=n.scroll,p=i===void 0?!0:i,s=n.resize,f=s===void 0?!0:s,c=j(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return p&&d.forEach(function(l){l.addEventListener("scroll",r.update,Ie)}),f&&c.addEventListener("resize",r.update,Ie),function(){p&&d.forEach(function(l){l.removeEventListener("scroll",r.update,Ie)}),f&&c.removeEventListener("resize",r.update,Ie)}}o(cr,"effect");var Rt={name:"eventListeners",enabled:!0,phase:"write",fn:o(function(){},"fn"),effect:cr,data:{}};a();a();var mr={left:"right",right:"left",bottom:"top",top:"bottom"};function we(t){return t.replace(/left|right|bottom|top/g,function(e){return mr[e]})}o(we,"getOppositePlacement");a();var ur={start:"end",end:"start"};function qe(t){return t.replace(/start|end/g,function(e){return ur[e]})}o(qe,"getOppositeVariationPlacement");a();a();a();a();a();function ue(t){var e=j(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}o(ue,"getWindowScroll");function de(t){return Y(q(t)).left+ue(t).scrollLeft}o(de,"getWindowScrollBarX");function Ke(t){var e=j(t),r=q(t),n=e.visualViewport,i=r.clientWidth,p=r.clientHeight,s=0,f=0;return n&&(i=n.width,p=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=n.offsetLeft,f=n.offsetTop)),{width:i,height:p,x:s+de(t),y:f}}o(Ke,"getViewportRect");a();function _e(t){var e,r=q(t),n=ue(t),i=(e=t.ownerDocument)==null?void 0:e.body,p=G(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=G(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),f=-n.scrollLeft+de(t),c=-n.scrollTop;return I(i||r).direction==="rtl"&&(f+=G(r.clientWidth,i?i.clientWidth:0)-p),{width:p,height:s,x:f,y:c}}o(_e,"getDocumentRect");a();a();a();function ve(t){var e=I(t),r=e.overflow,n=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}o(ve,"isScrollParent");function $e(t){return["html","body","#document"].indexOf(H(t))>=0?t.ownerDocument.body:C(t)&&ve(t)?t:$e(te(t))}o($e,"getScrollParent");function ne(t,e){var r;e===void 0&&(e=[]);var n=$e(t),i=n===((r=t.ownerDocument)==null?void 0:r.body),p=j(n),s=i?[p].concat(p.visualViewport||[],ve(n)?n:[]):n,f=e.concat(s);return i?f:f.concat(ne(te(s)))}o(ne,"listScrollParents");a();function Oe(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}o(Oe,"rectToClientRect");function dr(t){var e=Y(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}o(dr,"getInnerBoundingClientRect");function At(t,e){return e===Ve?Oe(Ke(t)):_(e)?dr(e):Oe(_e(q(t)))}o(At,"getClientRectFromMixedType");function vr(t){var e=ne(te(t)),r=["absolute","fixed"].indexOf(I(t).position)>=0,n=r&&C(t)?J(t):t;return _(n)?e.filter(function(i){return _(i)&&De(i,n)&&H(i)!=="body"}):[]}o(vr,"getClippingParents");function Qe(t,e,r){var n=e==="clippingParents"?vr(t):[].concat(e),i=[].concat(n,[r]),p=i[0],s=i.reduce(function(f,c){var d=At(t,c);return f.top=G(d.top,f.top),f.right=fe(d.right,f.right),f.bottom=fe(d.bottom,f.bottom),f.left=G(d.left,f.left),f},At(t,p));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}o(Qe,"getClippingRect");a();function Ce(t){var e=t.reference,r=t.element,n=t.placement,i=n?L(n):null,p=n?z(n):null,s=e.x+e.width/2-r.width/2,f=e.y+e.height/2-r.height/2,c;switch(i){case N:c={x:s,y:e.y-r.height};break;case W:c={x:s,y:e.y+e.height};break;case T:c={x:e.x+e.width,y:f};break;case B:c={x:e.x-r.width,y:f};break;default:c={x:e.x,y:e.y}}var d=i?ce(i):null;if(d!=null){var l=d==="y"?"height":"width";switch(p){case Z:c[d]=c[d]-(e[l]/2-r[l]/2);break;case se:c[d]=c[d]+(e[l]/2-r[l]/2);break;default:}}return c}o(Ce,"computeOffsets");function K(t,e){e===void 0&&(e={});var r=e,n=r.placement,i=n===void 0?t.placement:n,p=r.boundary,s=p===void 0?xt:p,f=r.rootBoundary,c=f===void 0?Ve:f,d=r.elementContext,l=d===void 0?ye:d,b=r.altBoundary,M=b===void 0?!1:b,v=r.padding,P=v===void 0?0:v,g=Be(typeof P!="number"?P:je(P,oe)),y=l===ye?yt:ye,R=t.rects.popper,A=t.elements[M?y:l],S=Qe(_(A)?A:A.contextElement||q(t.elements.popper),s,c),h=Y(t.elements.reference),w=Ce({reference:h,element:R,strategy:"absolute",placement:i}),x=Oe(Object.assign({},R,w)),E=l===ye?x:h,D={top:S.top-E.top+g.top,bottom:E.bottom-S.bottom+g.bottom,left:S.left-E.left+g.left,right:E.right-S.right+g.right},k=t.modifiersData.offset;if(l===ye&&k){var V=k[i];Object.keys(D).forEach(function(O){var $=[T,W].indexOf(O)>=0?1:-1,F=[N,W].indexOf(O)>=0?"y":"x";D[O]+=V[F]*$})}return D}o(K,"detectOverflow");a();function Ze(t,e){e===void 0&&(e={});var r=e,n=r.placement,i=r.boundary,p=r.rootBoundary,s=r.padding,f=r.flipVariations,c=r.allowedAutoPlacements,d=c===void 0?He:c,l=z(n),b=l?f?Ge:Ge.filter(function(P){return z(P)===l}):oe,M=b.filter(function(P){return d.indexOf(P)>=0});M.length===0&&(M=b,process.env.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var v=M.reduce(function(P,g){return P[g]=K(t,{placement:g,boundary:i,rootBoundary:p,padding:s})[L(g)],P},{});return Object.keys(v).sort(function(P,g){return v[P]-v[g]})}o(Ze,"computeAutoPlacement");function gr(t){if(L(t)===xe)return[];var e=we(t);return[qe(t),e,qe(e)]}o(gr,"getExpandedFallbackPlacements");function hr(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var i=r.mainAxis,p=i===void 0?!0:i,s=r.altAxis,f=s===void 0?!0:s,c=r.fallbackPlacements,d=r.padding,l=r.boundary,b=r.rootBoundary,M=r.altBoundary,v=r.flipVariations,P=v===void 0?!0:v,g=r.allowedAutoPlacements,y=e.options.placement,R=L(y),A=R===y,S=c||(A||!P?[we(y)]:gr(y)),h=[y].concat(S).reduce(function(he,re){return he.concat(L(re)===xe?Ze(e,{placement:re,boundary:l,rootBoundary:b,padding:d,flipVariations:P,allowedAutoPlacements:g}):re)},[]),w=e.rects.reference,x=e.rects.popper,E=new Map,D=!0,k=h[0],V=0;V<h.length;V++){var O=h[V],$=L(O),F=z(O)===Z,Ee=[N,W].indexOf($)>=0,Pe=Ee?"width":"height",X=K(e,{placement:O,boundary:l,rootBoundary:b,altBoundary:M,padding:d}),U=Ee?F?T:B:F?W:N;w[Pe]>x[Pe]&&(U=we(U));var Me=we(U),ie=[];if(p&&ie.push(X[$]<=0),f&&ie.push(X[U]<=0,X[Me]<=0),ie.every(function(he){return he})){k=O,D=!1;break}E.set(O,ie)}if(D)for(var Te=P?3:1,Fe=o(function(re){var Re=h.find(function(We){var ae=E.get(We);if(ae)return ae.slice(0,re).every(function(Xe){return Xe})});if(Re)return k=Re,"break"},"_loop"),Se=Te;Se>0;Se--){var Le=Fe(Se);if(Le==="break")break}e.placement!==k&&(e.modifiersData[n]._skip=!0,e.placement=k,e.reset=!0)}}o(hr,"flip");var Dt={name:"flip",enabled:!0,phase:"main",fn:hr,requiresIfExists:["offset"],data:{_skip:!1}};a();function Nt(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}o(Nt,"getSideOffsets");function Bt(t){return[N,T,W,B].some(function(e){return t[e]>=0})}o(Bt,"isAnySideFullyClipped");function xr(t){var e=t.state,r=t.name,n=e.rects.reference,i=e.rects.popper,p=e.modifiersData.preventOverflow,s=K(e,{elementContext:"reference"}),f=K(e,{altBoundary:!0}),c=Nt(s,n),d=Nt(f,i,p),l=Bt(c),b=Bt(d);e.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:l,hasPopperEscaped:b},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":b})}o(xr,"hide");var jt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:xr};a();function yr(t,e,r){var n=L(t),i=[B,N].indexOf(n)>=0?-1:1,p=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,s=p[0],f=p[1];return s=s||0,f=(f||0)*i,[B,T].indexOf(n)>=0?{x:f,y:s}:{x:s,y:f}}o(yr,"distanceAndSkiddingToXY");function br(t){var e=t.state,r=t.options,n=t.name,i=r.offset,p=i===void 0?[0,0]:i,s=He.reduce(function(l,b){return l[b]=yr(b,e.rects,p),l},{}),f=s[e.placement],c=f.x,d=f.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=d),e.modifiersData[n]=s}o(br,"offset");var Ct={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:br};a();function wr(t){var e=t.state,r=t.name;e.modifiersData[r]=Ce({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}o(wr,"popperOffsets");var Mt={name:"popperOffsets",enabled:!0,phase:"read",fn:wr,data:{}};a();a();function et(t){return t==="x"?"y":"x"}o(et,"getAltAxis");function Or(t){var e=t.state,r=t.options,n=t.name,i=r.mainAxis,p=i===void 0?!0:i,s=r.altAxis,f=s===void 0?!1:s,c=r.boundary,d=r.rootBoundary,l=r.altBoundary,b=r.padding,M=r.tether,v=M===void 0?!0:M,P=r.tetherOffset,g=P===void 0?0:P,y=K(e,{boundary:c,rootBoundary:d,padding:b,altBoundary:l}),R=L(e.placement),A=z(e.placement),S=!A,h=ce(R),w=et(h),x=e.modifiersData.popperOffsets,E=e.rects.reference,D=e.rects.popper,k=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,V=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),O=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,$={x:0,y:0};if(!!x){if(p){var F,Ee=h==="y"?N:B,Pe=h==="y"?W:T,X=h==="y"?"height":"width",U=x[h],Me=U+y[Ee],ie=U-y[Pe],Te=v?-D[X]/2:0,Fe=A===Z?E[X]:D[X],Se=A===Z?-D[X]:-E[X],Le=e.elements.arrow,he=v&&Le?le(Le):{width:0,height:0},re=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Ne(),Re=re[Ee],We=re[Pe],ae=me(0,E[X],he[X]),Xe=S?E[X]/2-Te-ae-Re-V.mainAxis:Fe-ae-Re-V.mainAxis,It=S?-E[X]/2+Te+ae+We+V.mainAxis:Se+ae+We+V.mainAxis,Ye=e.elements.arrow&&J(e.elements.arrow),qt=Ye?h==="y"?Ye.clientTop||0:Ye.clientLeft||0:0,ft=(F=O==null?void 0:O[h])!=null?F:0,$t=U+Xe-ft-qt,Ft=U+It-ft,lt=me(v?fe(Me,$t):Me,U,v?G(ie,Ft):ie);x[h]=lt,$[h]=lt-U}if(f){var ct,Xt=h==="x"?N:B,Yt=h==="x"?W:T,pe=x[w],ke=w==="y"?"height":"width",mt=pe+y[Xt],ut=pe-y[Yt],ze=[N,B].indexOf(R)!==-1,dt=(ct=O==null?void 0:O[w])!=null?ct:0,vt=ze?mt:pe-E[ke]-D[ke]-dt+V.altAxis,gt=ze?pe+E[ke]+D[ke]-dt-V.altAxis:ut,ht=v&&ze?Ot(vt,pe,gt):me(v?vt:mt,pe,v?gt:ut);x[w]=ht,$[w]=ht-pe}e.modifiersData[n]=$}}o(Or,"preventOverflow");var Tt={name:"preventOverflow",enabled:!0,phase:"main",fn:Or,requiresIfExists:["offset"]};a();a();a();a();function tt(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}o(tt,"getHTMLElementScroll");function rt(t){return t===j(t)||!C(t)?ue(t):tt(t)}o(rt,"getNodeScroll");function Er(t){var e=t.getBoundingClientRect(),r=ee(e.width)/t.offsetWidth||1,n=ee(e.height)/t.offsetHeight||1;return r!==1||n!==1}o(Er,"isElementScaled");function ot(t,e,r){r===void 0&&(r=!1);var n=C(e),i=C(e)&&Er(e),p=q(e),s=Y(t,i),f={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((H(e)!=="body"||ve(p))&&(f=rt(e)),C(e)?(c=Y(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):p&&(c.x=de(p))),{x:s.left+f.scrollLeft-c.x,y:s.top+f.scrollTop-c.y,width:s.width,height:s.height}}o(ot,"getCompositeRect");a();function Pr(t){var e=new Map,r=new Set,n=[];t.forEach(function(p){e.set(p.name,p)});function i(p){r.add(p.name);var s=[].concat(p.requires||[],p.requiresIfExists||[]);s.forEach(function(f){if(!r.has(f)){var c=e.get(f);c&&i(c)}}),n.push(p)}return o(i,"sort"),t.forEach(function(p){r.has(p.name)||i(p)}),n}o(Pr,"order");function nt(t){var e=Pr(t);return Ae.reduce(function(r,n){return r.concat(e.filter(function(i){return i.phase===n}))},[])}o(nt,"orderModifiers");a();function it(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}o(it,"debounce");a();a();function Q(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return[].concat(r).reduce(function(i,p){return i.replace(/%s/,p)},t)}o(Q,"format");var ge='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Sr='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',Lt=["name","enabled","phase","fn","effect","requires","options"];function at(t){t.forEach(function(e){[].concat(Object.keys(e),Lt).filter(function(r,n,i){return i.indexOf(r)===n}).forEach(function(r){switch(r){case"name":typeof e.name!="string"&&console.error(Q(ge,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":typeof e.enabled!="boolean"&&console.error(Q(ge,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":Ae.indexOf(e.phase)<0&&console.error(Q(ge,e.name,'"phase"',"either "+Ae.join(", "),'"'+String(e.phase)+'"'));break;case"fn":typeof e.fn!="function"&&console.error(Q(ge,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":e.effect!=null&&typeof e.effect!="function"&&console.error(Q(ge,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":e.requires!=null&&!Array.isArray(e.requires)&&console.error(Q(ge,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error(Q(ge,e.name,'"requiresIfExists"','"array"','"'+String(e.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+e.name+'" modifier, valid properties are '+Lt.map(function(n){return'"'+n+'"'}).join(", ")+'; but "'+r+'" was provided.')}e.requires&&e.requires.forEach(function(n){t.find(function(i){return i.name===n})==null&&console.error(Q(Sr,String(e.name),n,n))})})})}o(at,"validateModifiers");a();function pt(t,e){var r=new Set;return t.filter(function(n){var i=e(n);if(!r.has(i))return r.add(i),!0})}o(pt,"uniqueBy");a();function st(t){var e=t.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}o(st,"mergeByName");var Wt="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Rr="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",kt={placement:"bottom",modifiers:[],strategy:"absolute"};function Vt(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}o(Vt,"areValidElements");function Ht(t){t===void 0&&(t={});var e=t,r=e.defaultModifiers,n=r===void 0?[]:r,i=e.defaultOptions,p=i===void 0?kt:i;return o(function(f,c,d){d===void 0&&(d=p);var l={placement:"bottom",orderedModifiers:[],options:Object.assign({},kt,p),modifiersData:{},elements:{reference:f,popper:c},attributes:{},styles:{}},b=[],M=!1,v={state:l,setOptions:o(function(R){var A=typeof R=="function"?R(l.options):R;g(),l.options=Object.assign({},p,l.options,A),l.scrollParents={reference:_(f)?ne(f):f.contextElement?ne(f.contextElement):[],popper:ne(c)};var S=nt(st([].concat(n,l.options.modifiers)));if(l.orderedModifiers=S.filter(function(O){return O.enabled}),process.env.NODE_ENV!=="production"){var h=pt([].concat(S,l.options.modifiers),function(O){var $=O.name;return $});if(at(h),L(l.options.placement)===xe){var w=l.orderedModifiers.find(function(O){var $=O.name;return $==="flip"});w||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var x=I(c),E=x.marginTop,D=x.marginRight,k=x.marginBottom,V=x.marginLeft;[E,D,k,V].some(function(O){return parseFloat(O)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return P(),v.update()},"setOptions"),forceUpdate:o(function(){if(!M){var R=l.elements,A=R.reference,S=R.popper;if(!Vt(A,S)){process.env.NODE_ENV!=="production"&&console.error(Wt);return}l.rects={reference:ot(A,J(S),l.options.strategy==="fixed"),popper:le(S)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(O){return l.modifiersData[O.name]=Object.assign({},O.data)});for(var h=0,w=0;w<l.orderedModifiers.length;w++){if(process.env.NODE_ENV!=="production"&&(h+=1,h>100)){console.error(Rr);break}if(l.reset===!0){l.reset=!1,w=-1;continue}var x=l.orderedModifiers[w],E=x.fn,D=x.options,k=D===void 0?{}:D,V=x.name;typeof E=="function"&&(l=E({state:l,options:k,name:V,instance:v})||l)}}},"forceUpdate"),update:it(function(){return new Promise(function(y){v.forceUpdate(),y(l)})}),destroy:o(function(){g(),M=!0},"destroy")};if(!Vt(f,c))return process.env.NODE_ENV!=="production"&&console.error(Wt),v;v.setOptions(d).then(function(y){!M&&d.onFirstUpdate&&d.onFirstUpdate(y)});function P(){l.orderedModifiers.forEach(function(y){var R=y.name,A=y.options,S=A===void 0?{}:A,h=y.effect;if(typeof h=="function"){var w=h({state:l,name:R,instance:v,options:S}),x=o(function(){},"noopFn");b.push(w||x)}})}o(P,"runModifierEffects");function g(){b.forEach(function(y){return y()}),b=[]}return o(g,"cleanupModifierEffects"),v},"createPopper")}o(Ht,"popperGenerator");a();var Ar=[Rt,Mt,St,bt,Ct,Dt,Tt,Et,jt],Dr=Ht({defaultModifiers:Ar});export{Ue as a,zt as b,xe as c,Dr as d};
|